Skip to content

Commit 0775f13

Browse files
committed
ci: regenerated with OpenAPI Doc 0.4.0, Speakeasy CLI 1.213.0
1 parent f11eaca commit 0775f13

30 files changed

+73
-40
lines changed

.speakeasy/gen.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ id: f73d2126-985b-4d69-88ee-b7c69254d8bf
33
management:
44
docChecksum: 3d1ffb0cc7307a0362c5389c0fa1fdb5
55
docVersion: 0.4.0
6-
speakeasyVersion: 1.205.2
7-
generationVersion: 2.279.1
8-
releaseVersion: 5.1.0
9-
configChecksum: f7a98cf464bfb7da3e8ffda128cd350e
6+
speakeasyVersion: 1.213.0
7+
generationVersion: 2.283.1
8+
releaseVersion: 5.1.1
9+
configChecksum: 352bf745a0bad5794fafe4677635c66a
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-csharp.git
1111
repoSubDirectory: .
1212
published: true
1313
features:
1414
csharp:
1515
core: 3.4.3
1616
examples: 2.81.3
17-
globalSecurity: 2.83.3
17+
globalSecurity: 2.83.4
1818
globalServerURLs: 2.82.3
1919
globals: 2.81.2
2020
inputOutputModels: 2.83.0

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,4 +468,14 @@ Based on:
468468
### Generated
469469
- [csharp v5.1.0] .
470470
### Releases
471-
- [NuGet v5.1.0] https://www.nuget.org/packages/SpeakeasySDK/5.1.0 - .
471+
- [NuGet v5.1.0] https://www.nuget.org/packages/SpeakeasySDK/5.1.0 - .
472+
473+
## 2024-03-20 00:03:27
474+
### Changes
475+
Based on:
476+
- OpenAPI Doc 0.4.0 https://docs.speakeasyapi.dev/openapi.yaml
477+
- Speakeasy CLI 1.213.0 (2.283.1) https://github.com/speakeasy-api/speakeasy
478+
### Generated
479+
- [csharp v5.1.1] .
480+
### Releases
481+
- [NuGet v5.1.1] https://www.nuget.org/packages/SpeakeasySDK/5.1.1 - .

SpeakeasySDK/ApiEndpoints.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ public class ApiEndpoints: IApiEndpoints
9696
{
9797
public SDKConfig SDKConfiguration { get; private set; }
9898
private const string _language = "csharp";
99-
private const string _sdkVersion = "5.1.0";
100-
private const string _sdkGenVersion = "2.279.1";
99+
private const string _sdkVersion = "5.1.1";
100+
private const string _sdkGenVersion = "2.283.1";
101101
private const string _openapiDocVersion = "0.4.0";
102-
private const string _userAgent = "speakeasy-sdk/csharp 5.1.0 2.279.1 0.4.0 SpeakeasySDK";
102+
private const string _userAgent = "speakeasy-sdk/csharp 5.1.1 2.283.1 0.4.0 SpeakeasySDK";
103103
private string _serverUrl = "";
104104
private ISpeakeasyHttpClient _defaultClient;
105105
private Func<Security>? _securitySource;

SpeakeasySDK/Apis.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ public class Apis: IApis
9292
{
9393
public SDKConfig SDKConfiguration { get; private set; }
9494
private const string _language = "csharp";
95-
private const string _sdkVersion = "5.1.0";
96-
private const string _sdkGenVersion = "2.279.1";
95+
private const string _sdkVersion = "5.1.1";
96+
private const string _sdkGenVersion = "2.283.1";
9797
private const string _openapiDocVersion = "0.4.0";
98-
private const string _userAgent = "speakeasy-sdk/csharp 5.1.0 2.279.1 0.4.0 SpeakeasySDK";
98+
private const string _userAgent = "speakeasy-sdk/csharp 5.1.1 2.283.1 0.4.0 SpeakeasySDK";
9999
private string _serverUrl = "";
100100
private ISpeakeasyHttpClient _defaultClient;
101101
private Func<Security>? _securitySource;

SpeakeasySDK/Auth.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ public class Auth: IAuth
5252
{
5353
public SDKConfig SDKConfiguration { get; private set; }
5454
private const string _language = "csharp";
55-
private const string _sdkVersion = "5.1.0";
56-
private const string _sdkGenVersion = "2.279.1";
55+
private const string _sdkVersion = "5.1.1";
56+
private const string _sdkGenVersion = "2.283.1";
5757
private const string _openapiDocVersion = "0.4.0";
58-
private const string _userAgent = "speakeasy-sdk/csharp 5.1.0 2.279.1 0.4.0 SpeakeasySDK";
58+
private const string _userAgent = "speakeasy-sdk/csharp 5.1.1 2.283.1 0.4.0 SpeakeasySDK";
5959
private string _serverUrl = "";
6060
private ISpeakeasyHttpClient _defaultClient;
6161
private Func<Security>? _securitySource;

SpeakeasySDK/Embeds.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ public class Embeds: IEmbeds
5454
{
5555
public SDKConfig SDKConfiguration { get; private set; }
5656
private const string _language = "csharp";
57-
private const string _sdkVersion = "5.1.0";
58-
private const string _sdkGenVersion = "2.279.1";
57+
private const string _sdkVersion = "5.1.1";
58+
private const string _sdkGenVersion = "2.283.1";
5959
private const string _openapiDocVersion = "0.4.0";
60-
private const string _userAgent = "speakeasy-sdk/csharp 5.1.0 2.279.1 0.4.0 SpeakeasySDK";
60+
private const string _userAgent = "speakeasy-sdk/csharp 5.1.1 2.283.1 0.4.0 SpeakeasySDK";
6161
private string _serverUrl = "";
6262
private ISpeakeasyHttpClient _defaultClient;
6363
private Func<Security>? _securitySource;

SpeakeasySDK/Events.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ public class Events: IEvents
5353
{
5454
public SDKConfig SDKConfiguration { get; private set; }
5555
private const string _language = "csharp";
56-
private const string _sdkVersion = "5.1.0";
57-
private const string _sdkGenVersion = "2.279.1";
56+
private const string _sdkVersion = "5.1.1";
57+
private const string _sdkGenVersion = "2.283.1";
5858
private const string _openapiDocVersion = "0.4.0";
59-
private const string _userAgent = "speakeasy-sdk/csharp 5.1.0 2.279.1 0.4.0 SpeakeasySDK";
59+
private const string _userAgent = "speakeasy-sdk/csharp 5.1.1 2.283.1 0.4.0 SpeakeasySDK";
6060
private string _serverUrl = "";
6161
private ISpeakeasyHttpClient _defaultClient;
6262
private Func<Security>? _securitySource;

SpeakeasySDK/Metadata.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ public class Metadata: IMetadata
4949
{
5050
public SDKConfig SDKConfiguration { get; private set; }
5151
private const string _language = "csharp";
52-
private const string _sdkVersion = "5.1.0";
53-
private const string _sdkGenVersion = "2.279.1";
52+
private const string _sdkVersion = "5.1.1";
53+
private const string _sdkGenVersion = "2.283.1";
5454
private const string _openapiDocVersion = "0.4.0";
55-
private const string _userAgent = "speakeasy-sdk/csharp 5.1.0 2.279.1 0.4.0 SpeakeasySDK";
55+
private const string _userAgent = "speakeasy-sdk/csharp 5.1.1 2.283.1 0.4.0 SpeakeasySDK";
5656
private string _serverUrl = "";
5757
private ISpeakeasyHttpClient _defaultClient;
5858
private Func<Security>? _securitySource;

SpeakeasySDK/Models/Operations/GetAllApiVersionsRequest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#nullable enable
1111
namespace SpeakeasySDK.Models.Operations
1212
{
13+
using SpeakeasySDK.Models.Operations;
1314
using SpeakeasySDK.Utils;
1415
using System.Collections.Generic;
1516

SpeakeasySDK/Models/Operations/GetApisRequest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#nullable enable
1111
namespace SpeakeasySDK.Models.Operations
1212
{
13+
using SpeakeasySDK.Models.Operations;
1314
using SpeakeasySDK.Utils;
1415
using System.Collections.Generic;
1516

SpeakeasySDK/Models/Operations/RegisterSchemaRequest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#nullable enable
1111
namespace SpeakeasySDK.Models.Operations
1212
{
13+
using SpeakeasySDK.Models.Operations;
1314
using SpeakeasySDK.Utils;
1415

1516
public class RegisterSchemaRequest

SpeakeasySDK/Models/Operations/RegisterSchemaRequestBody.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#nullable enable
1111
namespace SpeakeasySDK.Models.Operations
1212
{
13+
using SpeakeasySDK.Models.Operations;
1314
using SpeakeasySDK.Utils;
1415

1516
/// <summary>

SpeakeasySDK/Models/Shared/AccessDetails.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace SpeakeasySDK.Models.Shared
1212
{
1313
using Newtonsoft.Json;
14+
using SpeakeasySDK.Models.Shared;
1415

1516
public class AccessDetails
1617
{

SpeakeasySDK/Models/Shared/AccessToken.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace SpeakeasySDK.Models.Shared
1212
{
1313
using Newtonsoft.Json;
14+
using SpeakeasySDK.Models.Shared;
1415
using System.Collections.Generic;
1516

1617
/// <summary>

SpeakeasySDK/Models/Shared/ApiKeyDetails.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace SpeakeasySDK.Models.Shared
1212
{
1313
using Newtonsoft.Json;
14+
using SpeakeasySDK.Models.Shared;
1415

1516
public class ApiKeyDetails
1617
{

SpeakeasySDK/Models/Shared/BoundedRequest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace SpeakeasySDK.Models.Shared
1212
{
1313
using Newtonsoft.Json;
14+
using SpeakeasySDK.Models.Shared;
1415
using System.Collections.Generic;
1516
using System;
1617

SpeakeasySDK/Models/Shared/CliEvent.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace SpeakeasySDK.Models.Shared
1212
{
1313
using Newtonsoft.Json;
14+
using SpeakeasySDK.Models.Shared;
1415
using System;
1516

1617
public class CliEvent

SpeakeasySDK/Models/Shared/Filters.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace SpeakeasySDK.Models.Shared
1212
{
1313
using Newtonsoft.Json;
14+
using SpeakeasySDK.Models.Shared;
1415
using System.Collections.Generic;
1516

1617
/// <summary>

SpeakeasySDK/Models/Shared/Organization.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace SpeakeasySDK.Models.Shared
1212
{
1313
using Newtonsoft.Json;
14+
using SpeakeasySDK.Models.Shared;
1415
using System;
1516

1617
/// <summary>

SpeakeasySDK/Models/Shared/SchemaDiff.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace SpeakeasySDK.Models.Shared
1212
{
1313
using Newtonsoft.Json;
14+
using SpeakeasySDK.Models.Shared;
1415
using System.Collections.Generic;
1516

1617
/// <summary>

SpeakeasySDK/Models/Shared/TargetSDK.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace SpeakeasySDK.Models.Shared
1212
{
1313
using Newtonsoft.Json;
14+
using SpeakeasySDK.Models.Shared;
1415
using System;
1516

1617
public class TargetSDK

SpeakeasySDK/Organizations.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ public class Organizations: IOrganizations
3636
{
3737
public SDKConfig SDKConfiguration { get; private set; }
3838
private const string _language = "csharp";
39-
private const string _sdkVersion = "5.1.0";
40-
private const string _sdkGenVersion = "2.279.1";
39+
private const string _sdkVersion = "5.1.1";
40+
private const string _sdkGenVersion = "2.283.1";
4141
private const string _openapiDocVersion = "0.4.0";
42-
private const string _userAgent = "speakeasy-sdk/csharp 5.1.0 2.279.1 0.4.0 SpeakeasySDK";
42+
private const string _userAgent = "speakeasy-sdk/csharp 5.1.1 2.283.1 0.4.0 SpeakeasySDK";
4343
private string _serverUrl = "";
4444
private ISpeakeasyHttpClient _defaultClient;
4545
private Func<Security>? _securitySource;

SpeakeasySDK/Requests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public class Requests: IRequests
5959
{
6060
public SDKConfig SDKConfiguration { get; private set; }
6161
private const string _language = "csharp";
62-
private const string _sdkVersion = "5.1.0";
63-
private const string _sdkGenVersion = "2.279.1";
62+
private const string _sdkVersion = "5.1.1";
63+
private const string _sdkGenVersion = "2.283.1";
6464
private const string _openapiDocVersion = "0.4.0";
65-
private const string _userAgent = "speakeasy-sdk/csharp 5.1.0 2.279.1 0.4.0 SpeakeasySDK";
65+
private const string _userAgent = "speakeasy-sdk/csharp 5.1.1 2.283.1 0.4.0 SpeakeasySDK";
6666
private string _serverUrl = "";
6767
private ISpeakeasyHttpClient _defaultClient;
6868
private Func<Security>? _securitySource;

SpeakeasySDK/Schemas.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ public class Schemas: ISchemas
9494
{
9595
public SDKConfig SDKConfiguration { get; private set; }
9696
private const string _language = "csharp";
97-
private const string _sdkVersion = "5.1.0";
98-
private const string _sdkGenVersion = "2.279.1";
97+
private const string _sdkVersion = "5.1.1";
98+
private const string _sdkGenVersion = "2.283.1";
9999
private const string _openapiDocVersion = "0.4.0";
100-
private const string _userAgent = "speakeasy-sdk/csharp 5.1.0 2.279.1 0.4.0 SpeakeasySDK";
100+
private const string _userAgent = "speakeasy-sdk/csharp 5.1.1 2.283.1 0.4.0 SpeakeasySDK";
101101
private string _serverUrl = "";
102102
private ISpeakeasyHttpClient _defaultClient;
103103
private Func<Security>? _securitySource;

SpeakeasySDK/Speakeasy.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ public class Speakeasy: ISpeakeasy
120120
public SDKConfig SDKConfiguration { get; private set; }
121121

122122
private const string _language = "csharp";
123-
private const string _sdkVersion = "5.1.0";
124-
private const string _sdkGenVersion = "2.279.1";
123+
private const string _sdkVersion = "5.1.1";
124+
private const string _sdkGenVersion = "2.283.1";
125125
private const string _openapiDocVersion = "0.4.0";
126-
private const string _userAgent = "speakeasy-sdk/csharp 5.1.0 2.279.1 0.4.0 SpeakeasySDK";
126+
private const string _userAgent = "speakeasy-sdk/csharp 5.1.1 2.283.1 0.4.0 SpeakeasySDK";
127127
private string _serverUrl = "";
128128
private SDKConfig.Server? _server = null;
129129
private ISpeakeasyHttpClient _defaultClient;

SpeakeasySDK/SpeakeasySDK.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<IsPackable>true</IsPackable>
44
<PackageId>SpeakeasySDK</PackageId>
5-
<Version>5.1.0</Version>
5+
<Version>5.1.1</Version>
66
<Authors>Speakeasy</Authors>
77
<TargetFramework>net5.0</TargetFramework>
88
<Nullable>enable</Nullable>

SpeakeasySDK/Utils/BigIntSerializer.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ JsonSerializer serializer
4242
return null;
4343
}
4444

45-
return BigInteger.Parse(reader.Value.ToString()!);
45+
try {
46+
return BigInteger.Parse(reader.Value.ToString()!);
47+
} catch (System.FormatException ex) {
48+
throw new Newtonsoft.Json.JsonSerializationException("Could not parse BigInteger", ex);
49+
}
4650
}
4751

4852
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)

SpeakeasySDK/Utils/EnumSerializer.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@ JsonSerializer serializer
5252
throw new Exception($"Unable to find ToEnum method on {extensionType.FullName}");
5353
}
5454

55-
return method.Invoke(null, new[] { (string)reader.Value });
55+
try {
56+
return method.Invoke(null, new[] { (string)reader.Value });
57+
} catch(System.Reflection.TargetInvocationException e) {
58+
throw new Newtonsoft.Json.JsonSerializationException("Unable to convert value to enum", e);
59+
}
60+
5661
}
5762

5863
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)

SpeakeasySDK/Utils/Utilities.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public static JsonConverter[] GetJsonConverters(Type type, string format = "")
4040
{
4141
new IsoDateTimeSerializer(),
4242
new EnumSerializer(),
43+
new FlexibleObjectDeserializer()
4344
};
4445
}
4546

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ generation:
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
1212
csharp:
13-
version: 5.1.0
13+
version: 5.1.1
1414
author: Speakeasy
1515
dotnetVersion: net5.0
1616
flattenGlobalSecurity: false

0 commit comments

Comments
 (0)