Skip to content

Commit 2a0f333

Browse files
committed
ci: regenerated with OpenAPI Doc 0.4.0, Speakeasy CLI 1.176.0
1 parent fa86927 commit 2a0f333

File tree

15 files changed

+63
-34
lines changed

15 files changed

+63
-34
lines changed

.speakeasy/gen.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: f73d2126-985b-4d69-88ee-b7c69254d8bf
33
management:
4-
docChecksum: dff663dce4f21ddf3fc2332b7d7be92b
4+
docChecksum: 557634d4bb5964b949ae70f79f40d856
55
docVersion: 0.4.0
66
speakeasyVersion: internal
7-
generationVersion: 2.250.16
8-
releaseVersion: 5.0.0
9-
configChecksum: 096aab2a7201348a8eae9afce9989c37
7+
generationVersion: 2.250.22
8+
releaseVersion: 5.0.1
9+
configChecksum: f1970ed44322201d4ca3e80f2cc82268
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-csharp.git
1111
repoSubDirectory: .
1212
published: true

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,4 +418,14 @@ Based on:
418418
### Generated
419419
- [csharp v5.0.0] .
420420
### Releases
421-
- [NuGet v5.0.0] https://www.nuget.org/packages/SpeakeasySDK/5.0.0 - .
421+
- [NuGet v5.0.0] https://www.nuget.org/packages/SpeakeasySDK/5.0.0 - .
422+
423+
## 2024-02-09 00:03:29
424+
### Changes
425+
Based on:
426+
- OpenAPI Doc 0.4.0 https://docs.speakeasyapi.dev/openapi.yaml
427+
- Speakeasy CLI 1.176.0 (2.250.22) https://github.com/speakeasy-api/speakeasy
428+
### Generated
429+
- [csharp v5.0.1] .
430+
### Releases
431+
- [NuGet v5.0.1] https://www.nuget.org/packages/SpeakeasySDK/5.0.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.0.0";
100-
private const string _sdkGenVersion = "2.250.16";
99+
private const string _sdkVersion = "5.0.1";
100+
private const string _sdkGenVersion = "2.250.22";
101101
private const string _openapiDocVersion = "0.4.0";
102-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.250.16 0.4.0 SpeakeasySDK";
102+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.1 2.250.22 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.0.0";
96-
private const string _sdkGenVersion = "2.250.16";
95+
private const string _sdkVersion = "5.0.1";
96+
private const string _sdkGenVersion = "2.250.22";
9797
private const string _openapiDocVersion = "0.4.0";
98-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.250.16 0.4.0 SpeakeasySDK";
98+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.1 2.250.22 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
@@ -37,10 +37,10 @@ public class Auth: IAuth
3737
{
3838
public SDKConfig SDKConfiguration { get; private set; }
3939
private const string _language = "csharp";
40-
private const string _sdkVersion = "5.0.0";
41-
private const string _sdkGenVersion = "2.250.16";
40+
private const string _sdkVersion = "5.0.1";
41+
private const string _sdkGenVersion = "2.250.22";
4242
private const string _openapiDocVersion = "0.4.0";
43-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.250.16 0.4.0 SpeakeasySDK";
43+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.1 2.250.22 0.4.0 SpeakeasySDK";
4444
private string _serverUrl = "";
4545
private ISpeakeasyHttpClient _defaultClient;
4646
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.0.0";
58-
private const string _sdkGenVersion = "2.250.16";
57+
private const string _sdkVersion = "5.0.1";
58+
private const string _sdkGenVersion = "2.250.22";
5959
private const string _openapiDocVersion = "0.4.0";
60-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.250.16 0.4.0 SpeakeasySDK";
60+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.1 2.250.22 0.4.0 SpeakeasySDK";
6161
private string _serverUrl = "";
6262
private ISpeakeasyHttpClient _defaultClient;
6363
private Func<Security>? _securitySource;

SpeakeasySDK/Events.cs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#nullable enable
1111
namespace SpeakeasySDK
1212
{
13+
using Newtonsoft.Json;
1314
using SpeakeasySDK.Models.Operations;
1415
using SpeakeasySDK.Models.Shared;
1516
using SpeakeasySDK.Utils;
@@ -41,10 +42,10 @@ public class Events: IEvents
4142
{
4243
public SDKConfig SDKConfiguration { get; private set; }
4344
private const string _language = "csharp";
44-
private const string _sdkVersion = "5.0.0";
45-
private const string _sdkGenVersion = "2.250.16";
45+
private const string _sdkVersion = "5.0.1";
46+
private const string _sdkGenVersion = "2.250.22";
4647
private const string _openapiDocVersion = "0.4.0";
47-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.250.16 0.4.0 SpeakeasySDK";
48+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.1 2.250.22 0.4.0 SpeakeasySDK";
4849
private string _serverUrl = "";
4950
private ISpeakeasyHttpClient _defaultClient;
5051
private Func<Security>? _securitySource;
@@ -95,6 +96,20 @@ public async Task<PostWorkspaceEventsResponse> PostWorkspaceEventsAsync(PostWork
9596
RawResponse = httpResponse
9697
};
9798

99+
if((response.StatusCode >= 200 && response.StatusCode < 300))
100+
{
101+
102+
return response;
103+
}
104+
if((response.StatusCode >= 500 && response.StatusCode < 600))
105+
{
106+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
107+
{
108+
response.Error = JsonConvert.DeserializeObject<Error>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
109+
}
110+
111+
return response;
112+
}
98113
return response;
99114
}
100115

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.0.0";
53-
private const string _sdkGenVersion = "2.250.16";
52+
private const string _sdkVersion = "5.0.1";
53+
private const string _sdkGenVersion = "2.250.22";
5454
private const string _openapiDocVersion = "0.4.0";
55-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.250.16 0.4.0 SpeakeasySDK";
55+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.1 2.250.22 0.4.0 SpeakeasySDK";
5656
private string _serverUrl = "";
5757
private ISpeakeasyHttpClient _defaultClient;
5858
private Func<Security>? _securitySource;

SpeakeasySDK/Models/Operations/PostWorkspaceEventsResponse.cs

Lines changed: 3 additions & 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.Shared;
1314
using System.Net.Http;
1415
using System;
1516

@@ -21,6 +22,8 @@ public class PostWorkspaceEventsResponse
2122
/// </summary>
2223
public string? ContentType { get; set; } = default!;
2324

25+
public Error? Error { get; set; }
26+
2427
/// <summary>
2528
/// HTTP response status code for this operation
2629
/// </summary>

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.0.0";
63-
private const string _sdkGenVersion = "2.250.16";
62+
private const string _sdkVersion = "5.0.1";
63+
private const string _sdkGenVersion = "2.250.22";
6464
private const string _openapiDocVersion = "0.4.0";
65-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.250.16 0.4.0 SpeakeasySDK";
65+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.1 2.250.22 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.0.0";
98-
private const string _sdkGenVersion = "2.250.16";
97+
private const string _sdkVersion = "5.0.1";
98+
private const string _sdkGenVersion = "2.250.22";
9999
private const string _openapiDocVersion = "0.4.0";
100-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.250.16 0.4.0 SpeakeasySDK";
100+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.1 2.250.22 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
@@ -107,10 +107,10 @@ public class Speakeasy: ISpeakeasy
107107
public SDKConfig SDKConfiguration { get; private set; }
108108

109109
private const string _language = "csharp";
110-
private const string _sdkVersion = "5.0.0";
111-
private const string _sdkGenVersion = "2.250.16";
110+
private const string _sdkVersion = "5.0.1";
111+
private const string _sdkGenVersion = "2.250.22";
112112
private const string _openapiDocVersion = "0.4.0";
113-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.250.16 0.4.0 SpeakeasySDK";
113+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.1 2.250.22 0.4.0 SpeakeasySDK";
114114
private string _serverUrl = "";
115115
private ISpeakeasyHttpClient _defaultClient;
116116
private Func<Security>? _securitySource;

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.0.0</Version>
5+
<Version>5.0.1</Version>
66
<Authors>Speakeasy</Authors>
77
<TargetFramework>net5.0</TargetFramework>
88
<Nullable>enable</Nullable>

docs/Models/Operations/PostWorkspaceEventsResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
| Field | Type | Required | Description |
77
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
88
| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
9+
| `Error` | [Error](../../Models/Shared/Error.md) | :heavy_minus_sign: | N/A |
910
| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
1011
| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ generation:
88
parameterOrderingFeb2024: false
99
requestResponseComponentNamesFeb2024: false
1010
csharp:
11-
version: 5.0.0
11+
version: 5.0.1
1212
author: Speakeasy
1313
dotnetVersion: net5.0
1414
flattenGlobalSecurity: false

0 commit comments

Comments
 (0)