diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 6ca683b..5500498 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -4,18 +4,18 @@ management: docChecksum: 5e4ef027bc51f54368e8b1607b77c098 docVersion: 1.0.0 speakeasyVersion: internal - generationVersion: 2.225.2 - releaseVersion: 0.7.0 - configChecksum: d2b1de074685c0f57ee427f0c5271bb1 + generationVersion: 2.237.2 + releaseVersion: 0.7.1 + configChecksum: a72fe7dd5674374e3de2b364ac25fe95 repoURL: https://github.com/ding-live/ding-csharp.git repoSubDirectory: . published: true features: csharp: - core: 3.3.0 + core: 3.3.1 examples: 2.81.3 flattening: 2.81.1 - globalSecurity: 2.81.2 + globalSecurity: 2.81.3 globalServerURLs: 2.82.2 serverIDs: 2.82.0 generatedFiles: diff --git a/DingSDK/Ding.cs b/DingSDK/Ding.cs index 9ffc2c3..8c3209d 100644 --- a/DingSDK/Ding.cs +++ b/DingSDK/Ding.cs @@ -72,10 +72,10 @@ public class Ding: IDing public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.225.2"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "1.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.7.0 2.225.2 1.0.0 DingSDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.7.1 2.237.2 1.0.0 DingSDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/DingSDK/DingSDK.csproj b/DingSDK/DingSDK.csproj index 7e754cc..42880bb 100644 --- a/DingSDK/DingSDK.csproj +++ b/DingSDK/DingSDK.csproj @@ -2,7 +2,7 @@ true DingSDK - 0.7.0 + 0.7.1 Ding net5.0 enable diff --git a/DingSDK/Lookup.cs b/DingSDK/Lookup.cs index c175f3b..95438df 100644 --- a/DingSDK/Lookup.cs +++ b/DingSDK/Lookup.cs @@ -38,10 +38,10 @@ public class Lookup: ILookup { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.225.2"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "1.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.7.0 2.225.2 1.0.0 DingSDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.7.1 2.237.2 1.0.0 DingSDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/DingSDK/Models/Components/Code.cs b/DingSDK/Models/Components/Code.cs index 87a51f5..f8f543b 100644 --- a/DingSDK/Models/Components/Code.cs +++ b/DingSDK/Models/Components/Code.cs @@ -101,4 +101,5 @@ public static Code ToEnum(this string value) throw new Exception($"Unknown value {value} for enum Code"); } } + } \ No newline at end of file diff --git a/DingSDK/Models/Components/CreateCheckResponseStatus.cs b/DingSDK/Models/Components/CreateCheckResponseStatus.cs index e6beb2d..0ae0d5c 100644 --- a/DingSDK/Models/Components/CreateCheckResponseStatus.cs +++ b/DingSDK/Models/Components/CreateCheckResponseStatus.cs @@ -74,4 +74,5 @@ public static CreateCheckResponseStatus ToEnum(this string value) throw new Exception($"Unknown value {value} for enum CreateCheckResponseStatus"); } } + } \ No newline at end of file diff --git a/DingSDK/Models/Components/DeviceType.cs b/DingSDK/Models/Components/DeviceType.cs index 45dc7d3..daf7ee1 100644 --- a/DingSDK/Models/Components/DeviceType.cs +++ b/DingSDK/Models/Components/DeviceType.cs @@ -58,4 +58,5 @@ public static DeviceType ToEnum(this string value) throw new Exception($"Unknown value {value} for enum DeviceType"); } } + } \ No newline at end of file diff --git a/DingSDK/Models/Components/LineType.cs b/DingSDK/Models/Components/LineType.cs index 6514f71..be01fb6 100644 --- a/DingSDK/Models/Components/LineType.cs +++ b/DingSDK/Models/Components/LineType.cs @@ -74,4 +74,5 @@ public static LineType ToEnum(this string value) throw new Exception($"Unknown value {value} for enum LineType"); } } + } \ No newline at end of file diff --git a/DingSDK/Models/Components/RetryAuthenticationResponseStatus.cs b/DingSDK/Models/Components/RetryAuthenticationResponseStatus.cs index 1f489c9..27f52bd 100644 --- a/DingSDK/Models/Components/RetryAuthenticationResponseStatus.cs +++ b/DingSDK/Models/Components/RetryAuthenticationResponseStatus.cs @@ -74,4 +74,5 @@ public static RetryAuthenticationResponseStatus ToEnum(this string value) throw new Exception($"Unknown value {value} for enum RetryAuthenticationResponseStatus"); } } + } \ No newline at end of file diff --git a/DingSDK/Models/Components/Status.cs b/DingSDK/Models/Components/Status.cs index a77cd1f..597b30c 100644 --- a/DingSDK/Models/Components/Status.cs +++ b/DingSDK/Models/Components/Status.cs @@ -65,4 +65,5 @@ public static Status ToEnum(this string value) throw new Exception($"Unknown value {value} for enum Status"); } } + } \ No newline at end of file diff --git a/DingSDK/Otp.cs b/DingSDK/Otp.cs index e1bbb0d..c8e73be 100644 --- a/DingSDK/Otp.cs +++ b/DingSDK/Otp.cs @@ -48,10 +48,10 @@ public class Otp: IOtp { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.225.2"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.237.2"; private const string _openapiDocVersion = "1.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.7.0 2.225.2 1.0.0 DingSDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.7.1 2.237.2 1.0.0 DingSDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/DingSDK/Utils/SecuritySerializer.cs b/DingSDK/Utils/SecuritySerializer.cs index 6a004ff..73ad1d0 100644 --- a/DingSDK/Utils/SecuritySerializer.cs +++ b/DingSDK/Utils/SecuritySerializer.cs @@ -165,10 +165,10 @@ object value } break; case "openIdConnect": - client.AddHeader(valueMetadata.Name, Utilities.ValueToString(value)); + client.AddHeader(valueMetadata.Name, Utilities.PrefixBearer(Utilities.ValueToString(value))); break; case "oauth2": - client.AddHeader(valueMetadata.Name, Utilities.ValueToString(value)); + client.AddHeader(valueMetadata.Name, Utilities.PrefixBearer(Utilities.ValueToString(value))); break; case "http": switch (schemeMetadata.SubType) diff --git a/RELEASES.md b/RELEASES.md index 8f21fec..0d191e9 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -130,4 +130,14 @@ Based on: ### Generated - [csharp v0.7.0] . ### Releases -- [NuGet v0.7.0] https://www.nuget.org/packages/DingSDK/0.7.0 - . \ No newline at end of file +- [NuGet v0.7.0] https://www.nuget.org/packages/DingSDK/0.7.0 - . + +## 2024-01-19 00:17:20 +### Changes +Based on: +- OpenAPI Doc 1.0.0 +- Speakeasy CLI 1.147.0 (2.237.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v0.7.1] . +### Releases +- [NuGet v0.7.1] https://www.nuget.org/packages/DingSDK/0.7.1 - . \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 7da5785..712fe6d 100644 --- a/gen.yaml +++ b/gen.yaml @@ -6,7 +6,7 @@ generation: fixes: nameResolutionDec2023: false csharp: - version: 0.7.0 + version: 0.7.1 author: Ding dotnetVersion: net5.0 imports: