Skip to content

Commit 909ed1e

Browse files
committed
ci: regenerated with OpenAPI Doc 0.4.0 ., Speakeasy CLI 1.269.1
1 parent b946bdb commit 909ed1e

26 files changed

+334
-80
lines changed

.speakeasy/gen.lock

Lines changed: 10 additions & 6 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: 141a9989778e09b7c6bb43e496b49905
5-
docVersion: 0.4.0
6-
speakeasyVersion: 1.267.0
7-
generationVersion: 2.312.0
8-
releaseVersion: 5.4.5
9-
configChecksum: c312adcab0e9184fcb2e1a993f3a69cc
4+
docChecksum: 0df832386c1fcd5f74fb87fea6d0e2b7
5+
docVersion: 0.4.0 .
6+
speakeasyVersion: 1.269.1
7+
generationVersion: 2.312.1
8+
releaseVersion: 5.4.6
9+
configChecksum: 4da831e5e99086b6dabc40b3e72a17bf
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-csharp.git
1111
repoSubDirectory: .
1212
published: true
@@ -145,6 +145,8 @@ generatedFiles:
145145
- SpeakeasySDK/Models/Operations/RevokeEmbedAccessTokenResponse.cs
146146
- SpeakeasySDK/Models/Operations/GetWorkspaceEventsRequest.cs
147147
- SpeakeasySDK/Models/Operations/GetWorkspaceEventsResponse.cs
148+
- SpeakeasySDK/Models/Operations/GetWorkspaceEventsBySourceRevisionDigestRequest.cs
149+
- SpeakeasySDK/Models/Operations/GetWorkspaceEventsBySourceRevisionDigestResponse.cs
148150
- SpeakeasySDK/Models/Operations/GetWorkspaceTargetsRequest.cs
149151
- SpeakeasySDK/Models/Operations/GetWorkspaceTargetsResponse.cs
150152
- SpeakeasySDK/Models/Operations/PostWorkspaceEventsRequest.cs
@@ -293,6 +295,8 @@ generatedFiles:
293295
- docs/Models/Operations/RevokeEmbedAccessTokenResponse.md
294296
- docs/Models/Operations/GetWorkspaceEventsRequest.md
295297
- docs/Models/Operations/GetWorkspaceEventsResponse.md
298+
- docs/Models/Operations/GetWorkspaceEventsBySourceRevisionDigestRequest.md
299+
- docs/Models/Operations/GetWorkspaceEventsBySourceRevisionDigestResponse.md
296300
- docs/Models/Operations/GetWorkspaceTargetsRequest.md
297301
- docs/Models/Operations/GetWorkspaceTargetsResponse.md
298302
- docs/Models/Operations/PostWorkspaceEventsRequest.md

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ var res = await sdk.Apis.GetApisAsync(req);
116116
### [Events](docs/sdks/events/README.md)
117117

118118
* [GetWorkspaceEvents](docs/sdks/events/README.md#getworkspaceevents) - Load recent events for a particular workspace
119+
* [GetWorkspaceEventsBySourceRevisionDigest](docs/sdks/events/README.md#getworkspaceeventsbysourcerevisiondigest) - Load events for a particular workspace and source revision digest
119120
* [GetWorkspaceTargets](docs/sdks/events/README.md#getworkspacetargets) - Load targets for a particular workspace
120121
* [PostWorkspaceEvents](docs/sdks/events/README.md#postworkspaceevents) - Post events for a specific workspace
121122
<!-- End Available Resources and Operations [operations] -->

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,4 +568,14 @@ Based on:
568568
### Generated
569569
- [csharp v5.4.5] .
570570
### Releases
571-
- [NuGet v5.4.5] https://www.nuget.org/packages/SpeakeasySDK/5.4.5 - .
571+
- [NuGet v5.4.5] https://www.nuget.org/packages/SpeakeasySDK/5.4.5 - .
572+
573+
## 2024-04-23 00:03:37
574+
### Changes
575+
Based on:
576+
- OpenAPI Doc 0.4.0 . https://docs.speakeasyapi.dev/openapi.yaml
577+
- Speakeasy CLI 1.269.1 (2.312.1) https://github.com/speakeasy-api/speakeasy
578+
### Generated
579+
- [csharp v5.4.6] .
580+
### Releases
581+
- [NuGet v5.4.6] https://www.nuget.org/packages/SpeakeasySDK/5.4.6 - .

SpeakeasySDK/ApiEndpoints.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ public class ApiEndpoints: IApiEndpoints
9797
{
9898
public SDKConfig SDKConfiguration { get; private set; }
9999
private const string _language = "csharp";
100-
private const string _sdkVersion = "5.4.5";
101-
private const string _sdkGenVersion = "2.312.0";
102-
private const string _openapiDocVersion = "0.4.0";
103-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.5 2.312.0 0.4.0 SpeakeasySDK";
100+
private const string _sdkVersion = "5.4.6";
101+
private const string _sdkGenVersion = "2.312.1";
102+
private const string _openapiDocVersion = "0.4.0 .";
103+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.6 2.312.1 0.4.0 . SpeakeasySDK";
104104
private string _serverUrl = "";
105105
private ISpeakeasyHttpClient _defaultClient;
106106
private Func<Security>? _securitySource;

SpeakeasySDK/Apis.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ public class Apis: IApis
9393
{
9494
public SDKConfig SDKConfiguration { get; private set; }
9595
private const string _language = "csharp";
96-
private const string _sdkVersion = "5.4.5";
97-
private const string _sdkGenVersion = "2.312.0";
98-
private const string _openapiDocVersion = "0.4.0";
99-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.5 2.312.0 0.4.0 SpeakeasySDK";
96+
private const string _sdkVersion = "5.4.6";
97+
private const string _sdkGenVersion = "2.312.1";
98+
private const string _openapiDocVersion = "0.4.0 .";
99+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.6 2.312.1 0.4.0 . SpeakeasySDK";
100100
private string _serverUrl = "";
101101
private ISpeakeasyHttpClient _defaultClient;
102102
private Func<Security>? _securitySource;

SpeakeasySDK/Artifacts.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ public class Artifacts: IArtifacts
5151
{
5252
public SDKConfig SDKConfiguration { get; private set; }
5353
private const string _language = "csharp";
54-
private const string _sdkVersion = "5.4.5";
55-
private const string _sdkGenVersion = "2.312.0";
56-
private const string _openapiDocVersion = "0.4.0";
57-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.5 2.312.0 0.4.0 SpeakeasySDK";
54+
private const string _sdkVersion = "5.4.6";
55+
private const string _sdkGenVersion = "2.312.1";
56+
private const string _openapiDocVersion = "0.4.0 .";
57+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.6 2.312.1 0.4.0 . SpeakeasySDK";
5858
private string _serverUrl = "";
5959
private ISpeakeasyHttpClient _defaultClient;
6060
private Func<Security>? _securitySource;

SpeakeasySDK/Auth.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public class Auth: IAuth
5959
{
6060
public SDKConfig SDKConfiguration { get; private set; }
6161
private const string _language = "csharp";
62-
private const string _sdkVersion = "5.4.5";
63-
private const string _sdkGenVersion = "2.312.0";
64-
private const string _openapiDocVersion = "0.4.0";
65-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.5 2.312.0 0.4.0 SpeakeasySDK";
62+
private const string _sdkVersion = "5.4.6";
63+
private const string _sdkGenVersion = "2.312.1";
64+
private const string _openapiDocVersion = "0.4.0 .";
65+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.6 2.312.1 0.4.0 . SpeakeasySDK";
6666
private string _serverUrl = "";
6767
private ISpeakeasyHttpClient _defaultClient;
6868
private Func<Security>? _securitySource;

SpeakeasySDK/Embeds.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ public class Embeds: IEmbeds
5555
{
5656
public SDKConfig SDKConfiguration { get; private set; }
5757
private const string _language = "csharp";
58-
private const string _sdkVersion = "5.4.5";
59-
private const string _sdkGenVersion = "2.312.0";
60-
private const string _openapiDocVersion = "0.4.0";
61-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.5 2.312.0 0.4.0 SpeakeasySDK";
58+
private const string _sdkVersion = "5.4.6";
59+
private const string _sdkGenVersion = "2.312.1";
60+
private const string _openapiDocVersion = "0.4.0 .";
61+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.6 2.312.1 0.4.0 . SpeakeasySDK";
6262
private string _serverUrl = "";
6363
private ISpeakeasyHttpClient _defaultClient;
6464
private Func<Security>? _securitySource;

SpeakeasySDK/Events.cs

Lines changed: 74 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public interface IEvents
3232
/// </summary>
3333
Task<GetWorkspaceEventsResponse> GetWorkspaceEventsAsync(GetWorkspaceEventsRequest request);
3434

35+
/// <summary>
36+
/// Load events for a particular workspace and source revision digest
37+
/// </summary>
38+
Task<GetWorkspaceEventsBySourceRevisionDigestResponse> GetWorkspaceEventsBySourceRevisionDigestAsync(GetWorkspaceEventsBySourceRevisionDigestRequest request);
39+
3540
/// <summary>
3641
/// Load targets for a particular workspace
3742
/// </summary>
@@ -54,10 +59,10 @@ public class Events: IEvents
5459
{
5560
public SDKConfig SDKConfiguration { get; private set; }
5661
private const string _language = "csharp";
57-
private const string _sdkVersion = "5.4.5";
58-
private const string _sdkGenVersion = "2.312.0";
59-
private const string _openapiDocVersion = "0.4.0";
60-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.5 2.312.0 0.4.0 SpeakeasySDK";
62+
private const string _sdkVersion = "5.4.6";
63+
private const string _sdkGenVersion = "2.312.1";
64+
private const string _openapiDocVersion = "0.4.0 .";
65+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.6 2.312.1 0.4.0 . SpeakeasySDK";
6166
private string _serverUrl = "";
6267
private ISpeakeasyHttpClient _defaultClient;
6368
private Func<Security>? _securitySource;
@@ -135,6 +140,71 @@ public async Task<GetWorkspaceEventsResponse> GetWorkspaceEventsAsync(GetWorkspa
135140
}
136141
}
137142

143+
public async Task<GetWorkspaceEventsBySourceRevisionDigestResponse> GetWorkspaceEventsBySourceRevisionDigestAsync(GetWorkspaceEventsBySourceRevisionDigestRequest request)
144+
{
145+
if (request == null)
146+
{
147+
request = new GetWorkspaceEventsBySourceRevisionDigestRequest();
148+
}
149+
request.WorkspaceID ??= SDKConfiguration.WorkspaceID;
150+
151+
string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails();
152+
var urlString = URLBuilder.Build(baseUrl, "/v1/workspace/{workspaceID}/events/source_revision_digest/{sourceRevisionDigest}", request);
153+
154+
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
155+
httpRequest.Headers.Add("user-agent", _userAgent);
156+
157+
var client = _defaultClient;
158+
if (_securitySource != null)
159+
{
160+
client = SecuritySerializer.Apply(_defaultClient, _securitySource);
161+
}
162+
163+
var httpResponse = await client.SendAsync(httpRequest);
164+
165+
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
166+
int responseStatusCode = (int)httpResponse.StatusCode;
167+
if(responseStatusCode == 200)
168+
{
169+
if(Utilities.IsContentTypeMatch("application/json", contentType))
170+
{
171+
var obj = ResponseBodyDeserializer.Deserialize<List<CliEvent>>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
172+
var response = new GetWorkspaceEventsBySourceRevisionDigestResponse()
173+
{
174+
StatusCode = responseStatusCode,
175+
ContentType = contentType,
176+
RawResponse = httpResponse
177+
};
178+
response.CliEventBatch = obj;
179+
return response;
180+
}
181+
else
182+
{
183+
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
184+
}
185+
}
186+
else if(responseStatusCode >= 400 && responseStatusCode < 500)
187+
{
188+
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
189+
}
190+
else if(responseStatusCode >= 500 && responseStatusCode < 600)
191+
{
192+
if(Utilities.IsContentTypeMatch("application/json", contentType))
193+
{
194+
var obj = ResponseBodyDeserializer.Deserialize<Error>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
195+
throw obj!;
196+
}
197+
else
198+
{
199+
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
200+
}
201+
}
202+
else
203+
{
204+
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
205+
}
206+
}
207+
138208
public async Task<GetWorkspaceTargetsResponse> GetWorkspaceTargetsAsync(GetWorkspaceTargetsRequest request)
139209
{
140210
if (request == null)

SpeakeasySDK/Metadata.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ public class Metadata: IMetadata
5050
{
5151
public SDKConfig SDKConfiguration { get; private set; }
5252
private const string _language = "csharp";
53-
private const string _sdkVersion = "5.4.5";
54-
private const string _sdkGenVersion = "2.312.0";
55-
private const string _openapiDocVersion = "0.4.0";
56-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.5 2.312.0 0.4.0 SpeakeasySDK";
53+
private const string _sdkVersion = "5.4.6";
54+
private const string _sdkGenVersion = "2.312.1";
55+
private const string _openapiDocVersion = "0.4.0 .";
56+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.6 2.312.1 0.4.0 . SpeakeasySDK";
5757
private string _serverUrl = "";
5858
private ISpeakeasyHttpClient _defaultClient;
5959
private Func<Security>? _securitySource;
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
//------------------------------------------------------------------------------
3+
// <auto-generated>
4+
// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
5+
//
6+
// Changes to this file may cause incorrect behavior and will be lost when
7+
// the code is regenerated.
8+
// </auto-generated>
9+
//------------------------------------------------------------------------------
10+
#nullable enable
11+
namespace SpeakeasySDK.Models.Operations
12+
{
13+
using SpeakeasySDK.Utils;
14+
15+
public class GetWorkspaceEventsBySourceRevisionDigestRequest
16+
{
17+
18+
/// <summary>
19+
/// Unique identifier of the source revision digest.
20+
/// </summary>
21+
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sourceRevisionDigest")]
22+
public string SourceRevisionDigest { get; set; } = default!;
23+
24+
/// <summary>
25+
/// Unique identifier of the workspace.
26+
/// </summary>
27+
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceID")]
28+
public string? WorkspaceID { get; set; }
29+
}
30+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
2+
//------------------------------------------------------------------------------
3+
// <auto-generated>
4+
// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
5+
//
6+
// Changes to this file may cause incorrect behavior and will be lost when
7+
// the code is regenerated.
8+
// </auto-generated>
9+
//------------------------------------------------------------------------------
10+
#nullable enable
11+
namespace SpeakeasySDK.Models.Operations
12+
{
13+
using SpeakeasySDK.Models.Shared;
14+
using SpeakeasySDK.Utils;
15+
using System.Collections.Generic;
16+
using System.Net.Http;
17+
using System;
18+
19+
public class GetWorkspaceEventsBySourceRevisionDigestResponse
20+
{
21+
22+
/// <summary>
23+
/// Success
24+
/// </summary>
25+
public List<CliEvent>? CliEventBatch { get; set; }
26+
27+
/// <summary>
28+
/// HTTP response content type for this operation
29+
/// </summary>
30+
public string? ContentType { get; set; } = default!;
31+
32+
/// <summary>
33+
/// HTTP response status code for this operation
34+
/// </summary>
35+
public int StatusCode { get; set; } = default!;
36+
37+
/// <summary>
38+
/// Raw HTTP response; suitable for custom response parsing
39+
/// </summary>
40+
public HttpResponseMessage RawResponse { get; set; } = default!;
41+
}
42+
}

0 commit comments

Comments
 (0)