Skip to content

Commit 67ef29e

Browse files
committed
ci: regenerated with OpenAPI Doc 0.4.0, Speakeasy CLI 1.257.1
1 parent ed069c8 commit 67ef29e

25 files changed

+276
-45
lines changed

.speakeasy/gen.lock

Lines changed: 11 additions & 5 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: fb8d80dde775dc830ade2c3c3fe88d18
4+
docChecksum: 2b280a7f12ab57c144a654766cc34af2
55
docVersion: 0.4.0
6-
speakeasyVersion: 1.253.3
7-
generationVersion: 2.306.3
8-
releaseVersion: 5.4.2
9-
configChecksum: e50f3bc009fa22423cfa73a14a4b53ee
6+
speakeasyVersion: 1.257.1
7+
generationVersion: 2.308.2
8+
releaseVersion: 5.4.3
9+
configChecksum: b7f280ce0cb3739a15dbb4151e70dc7d
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-csharp.git
1111
repoSubDirectory: .
1212
published: true
@@ -128,6 +128,9 @@ generatedFiles:
128128
- SpeakeasySDK/Models/Operations/QueryEventLogRequest.cs
129129
- SpeakeasySDK/Models/Operations/QueryEventLogResponse.cs
130130
- SpeakeasySDK/Models/Operations/GetOrganizationsResponse.cs
131+
- SpeakeasySDK/Models/Operations/GetChangesReportSignedUrlRequest.cs
132+
- SpeakeasySDK/Models/Operations/GetChangesReportSignedUrlSignedAccess.cs
133+
- SpeakeasySDK/Models/Operations/GetChangesReportSignedUrlResponse.cs
131134
- SpeakeasySDK/Models/Operations/GetLintingReportSignedUrlRequest.cs
132135
- SpeakeasySDK/Models/Operations/GetLintingReportSignedUrlSignedAccess.cs
133136
- SpeakeasySDK/Models/Operations/GetLintingReportSignedUrlResponse.cs
@@ -272,6 +275,9 @@ generatedFiles:
272275
- docs/Models/Operations/QueryEventLogRequest.md
273276
- docs/Models/Operations/QueryEventLogResponse.md
274277
- docs/Models/Operations/GetOrganizationsResponse.md
278+
- docs/Models/Operations/GetChangesReportSignedUrlRequest.md
279+
- docs/Models/Operations/GetChangesReportSignedUrlSignedAccess.md
280+
- docs/Models/Operations/GetChangesReportSignedUrlResponse.md
275281
- docs/Models/Operations/GetLintingReportSignedUrlRequest.md
276282
- docs/Models/Operations/GetLintingReportSignedUrlSignedAccess.md
277283
- docs/Models/Operations/GetLintingReportSignedUrlResponse.md

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ var res = await sdk.Apis.GetApisAsync(req);
103103

104104
### [Reports](docs/sdks/reports/README.md)
105105

106+
* [GetChangesReportSignedUrl](docs/sdks/reports/README.md#getchangesreportsignedurl) - Get the signed access url for the change reports for a particular document.
106107
* [GetLintingReportSignedUrl](docs/sdks/reports/README.md#getlintingreportsignedurl) - Get the signed access url for the linting reports for a particular document.
107108
* [UploadReport](docs/sdks/reports/README.md#uploadreport) - Upload a report.
108109

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,4 +538,14 @@ Based on:
538538
### Generated
539539
- [csharp v5.4.2] .
540540
### Releases
541-
- [NuGet v5.4.2] https://www.nuget.org/packages/SpeakeasySDK/5.4.2 - .
541+
- [NuGet v5.4.2] https://www.nuget.org/packages/SpeakeasySDK/5.4.2 - .
542+
543+
## 2024-04-18 00:03:36
544+
### Changes
545+
Based on:
546+
- OpenAPI Doc 0.4.0 https://docs.speakeasyapi.dev/openapi.yaml
547+
- Speakeasy CLI 1.257.1 (2.308.2) https://github.com/speakeasy-api/speakeasy
548+
### Generated
549+
- [csharp v5.4.3] .
550+
### Releases
551+
- [NuGet v5.4.3] https://www.nuget.org/packages/SpeakeasySDK/5.4.3 - .

SpeakeasySDK/ApiEndpoints.cs

Lines changed: 3 additions & 3 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.2";
101-
private const string _sdkGenVersion = "2.306.3";
100+
private const string _sdkVersion = "5.4.3";
101+
private const string _sdkGenVersion = "2.308.2";
102102
private const string _openapiDocVersion = "0.4.0";
103-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.2 2.306.3 0.4.0 SpeakeasySDK";
103+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.3 2.308.2 0.4.0 SpeakeasySDK";
104104
private string _serverUrl = "";
105105
private ISpeakeasyHttpClient _defaultClient;
106106
private Func<Security>? _securitySource;

SpeakeasySDK/Apis.cs

Lines changed: 3 additions & 3 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.2";
97-
private const string _sdkGenVersion = "2.306.3";
96+
private const string _sdkVersion = "5.4.3";
97+
private const string _sdkGenVersion = "2.308.2";
9898
private const string _openapiDocVersion = "0.4.0";
99-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.2 2.306.3 0.4.0 SpeakeasySDK";
99+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.3 2.308.2 0.4.0 SpeakeasySDK";
100100
private string _serverUrl = "";
101101
private ISpeakeasyHttpClient _defaultClient;
102102
private Func<Security>? _securitySource;

SpeakeasySDK/Artifacts.cs

Lines changed: 3 additions & 3 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.2";
55-
private const string _sdkGenVersion = "2.306.3";
54+
private const string _sdkVersion = "5.4.3";
55+
private const string _sdkGenVersion = "2.308.2";
5656
private const string _openapiDocVersion = "0.4.0";
57-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.2 2.306.3 0.4.0 SpeakeasySDK";
57+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.3 2.308.2 0.4.0 SpeakeasySDK";
5858
private string _serverUrl = "";
5959
private ISpeakeasyHttpClient _defaultClient;
6060
private Func<Security>? _securitySource;

SpeakeasySDK/Auth.cs

Lines changed: 3 additions & 3 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.2";
63-
private const string _sdkGenVersion = "2.306.3";
62+
private const string _sdkVersion = "5.4.3";
63+
private const string _sdkGenVersion = "2.308.2";
6464
private const string _openapiDocVersion = "0.4.0";
65-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.2 2.306.3 0.4.0 SpeakeasySDK";
65+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.3 2.308.2 0.4.0 SpeakeasySDK";
6666
private string _serverUrl = "";
6767
private ISpeakeasyHttpClient _defaultClient;
6868
private Func<Security>? _securitySource;

SpeakeasySDK/Embeds.cs

Lines changed: 3 additions & 3 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.2";
59-
private const string _sdkGenVersion = "2.306.3";
58+
private const string _sdkVersion = "5.4.3";
59+
private const string _sdkGenVersion = "2.308.2";
6060
private const string _openapiDocVersion = "0.4.0";
61-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.2 2.306.3 0.4.0 SpeakeasySDK";
61+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.3 2.308.2 0.4.0 SpeakeasySDK";
6262
private string _serverUrl = "";
6363
private ISpeakeasyHttpClient _defaultClient;
6464
private Func<Security>? _securitySource;

SpeakeasySDK/Events.cs

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

SpeakeasySDK/Metadata.cs

Lines changed: 3 additions & 3 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.2";
54-
private const string _sdkGenVersion = "2.306.3";
53+
private const string _sdkVersion = "5.4.3";
54+
private const string _sdkGenVersion = "2.308.2";
5555
private const string _openapiDocVersion = "0.4.0";
56-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.2 2.306.3 0.4.0 SpeakeasySDK";
56+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.3 2.308.2 0.4.0 SpeakeasySDK";
5757
private string _serverUrl = "";
5858
private ISpeakeasyHttpClient _defaultClient;
5959
private Func<Security>? _securitySource;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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 GetChangesReportSignedUrlRequest
16+
{
17+
18+
/// <summary>
19+
/// The checksum of the document to retrieve the signed access url for.
20+
/// </summary>
21+
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=documentChecksum")]
22+
public string DocumentChecksum { get; set; } = default!;
23+
}
24+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.Operations;
14+
using SpeakeasySDK.Utils;
15+
using System.Net.Http;
16+
using System;
17+
18+
public class GetChangesReportSignedUrlResponse
19+
{
20+
21+
/// <summary>
22+
/// HTTP response content type for this operation
23+
/// </summary>
24+
public string? ContentType { get; set; } = default!;
25+
26+
/// <summary>
27+
/// HTTP response status code for this operation
28+
/// </summary>
29+
public int StatusCode { get; set; } = default!;
30+
31+
/// <summary>
32+
/// Raw HTTP response; suitable for custom response parsing
33+
/// </summary>
34+
public HttpResponseMessage RawResponse { get; set; } = default!;
35+
36+
/// <summary>
37+
/// OK
38+
/// </summary>
39+
public GetChangesReportSignedUrlSignedAccess? SignedAccess { get; set; }
40+
}
41+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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 Newtonsoft.Json;
14+
using SpeakeasySDK.Utils;
15+
16+
/// <summary>
17+
/// OK
18+
/// </summary>
19+
public class GetChangesReportSignedUrlSignedAccess
20+
{
21+
22+
[JsonProperty("url")]
23+
public string Url { get; set; } = default!;
24+
}
25+
}

SpeakeasySDK/Organizations.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public class Organizations: IOrganizations
3737
{
3838
public SDKConfig SDKConfiguration { get; private set; }
3939
private const string _language = "csharp";
40-
private const string _sdkVersion = "5.4.2";
41-
private const string _sdkGenVersion = "2.306.3";
40+
private const string _sdkVersion = "5.4.3";
41+
private const string _sdkGenVersion = "2.308.2";
4242
private const string _openapiDocVersion = "0.4.0";
43-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.2 2.306.3 0.4.0 SpeakeasySDK";
43+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.3 2.308.2 0.4.0 SpeakeasySDK";
4444
private string _serverUrl = "";
4545
private ISpeakeasyHttpClient _defaultClient;
4646
private Func<Security>? _securitySource;

SpeakeasySDK/Reports.cs

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ namespace SpeakeasySDK
2727
public interface IReports
2828
{
2929

30+
/// <summary>
31+
/// Get the signed access url for the change reports for a particular document.
32+
/// </summary>
33+
Task<GetChangesReportSignedUrlResponse> GetChangesReportSignedUrlAsync(GetChangesReportSignedUrlRequest request);
34+
3035
/// <summary>
3136
/// Get the signed access url for the linting reports for a particular document.
3237
/// </summary>
@@ -45,10 +50,10 @@ public class Reports: IReports
4550
{
4651
public SDKConfig SDKConfiguration { get; private set; }
4752
private const string _language = "csharp";
48-
private const string _sdkVersion = "5.4.2";
49-
private const string _sdkGenVersion = "2.306.3";
53+
private const string _sdkVersion = "5.4.3";
54+
private const string _sdkGenVersion = "2.308.2";
5055
private const string _openapiDocVersion = "0.4.0";
51-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.2 2.306.3 0.4.0 SpeakeasySDK";
56+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.3 2.308.2 0.4.0 SpeakeasySDK";
5257
private string _serverUrl = "";
5358
private ISpeakeasyHttpClient _defaultClient;
5459
private Func<Security>? _securitySource;
@@ -61,6 +66,53 @@ public Reports(ISpeakeasyHttpClient defaultClient, Func<Security>? securitySourc
6166
SDKConfiguration = config;
6267
}
6368

69+
public async Task<GetChangesReportSignedUrlResponse> GetChangesReportSignedUrlAsync(GetChangesReportSignedUrlRequest request)
70+
{
71+
string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails();
72+
var urlString = URLBuilder.Build(baseUrl, "/v1/reports/changes/{documentChecksum}", request);
73+
74+
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
75+
httpRequest.Headers.Add("user-agent", _userAgent);
76+
77+
var client = _defaultClient;
78+
if (_securitySource != null)
79+
{
80+
client = SecuritySerializer.Apply(_defaultClient, _securitySource);
81+
}
82+
83+
var httpResponse = await client.SendAsync(httpRequest);
84+
85+
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
86+
int responseStatusCode = (int)httpResponse.StatusCode;
87+
if(responseStatusCode == 200)
88+
{
89+
if(Utilities.IsContentTypeMatch("application/json", contentType))
90+
{
91+
var obj = ResponseBodyDeserializer.Deserialize<GetChangesReportSignedUrlSignedAccess>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
92+
var response = new GetChangesReportSignedUrlResponse()
93+
{
94+
StatusCode = responseStatusCode,
95+
ContentType = contentType,
96+
RawResponse = httpResponse
97+
};
98+
response.SignedAccess = obj;
99+
return response;
100+
}
101+
else
102+
{
103+
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
104+
}
105+
}
106+
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
107+
{
108+
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
109+
}
110+
else
111+
{
112+
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
113+
}
114+
}
115+
64116
public async Task<GetLintingReportSignedUrlResponse> GetLintingReportSignedUrlAsync(GetLintingReportSignedUrlRequest request)
65117
{
66118
string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails();

SpeakeasySDK/Requests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ public class Requests: IRequests
6060
{
6161
public SDKConfig SDKConfiguration { get; private set; }
6262
private const string _language = "csharp";
63-
private const string _sdkVersion = "5.4.2";
64-
private const string _sdkGenVersion = "2.306.3";
63+
private const string _sdkVersion = "5.4.3";
64+
private const string _sdkGenVersion = "2.308.2";
6565
private const string _openapiDocVersion = "0.4.0";
66-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.2 2.306.3 0.4.0 SpeakeasySDK";
66+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.3 2.308.2 0.4.0 SpeakeasySDK";
6767
private string _serverUrl = "";
6868
private ISpeakeasyHttpClient _defaultClient;
6969
private Func<Security>? _securitySource;

SpeakeasySDK/Schemas.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ public class Schemas: ISchemas
9595
{
9696
public SDKConfig SDKConfiguration { get; private set; }
9797
private const string _language = "csharp";
98-
private const string _sdkVersion = "5.4.2";
99-
private const string _sdkGenVersion = "2.306.3";
98+
private const string _sdkVersion = "5.4.3";
99+
private const string _sdkGenVersion = "2.308.2";
100100
private const string _openapiDocVersion = "0.4.0";
101-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.2 2.306.3 0.4.0 SpeakeasySDK";
101+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.3 2.308.2 0.4.0 SpeakeasySDK";
102102
private string _serverUrl = "";
103103
private ISpeakeasyHttpClient _defaultClient;
104104
private Func<Security>? _securitySource;

SpeakeasySDK/Speakeasy.cs

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

129129
private const string _language = "csharp";
130-
private const string _sdkVersion = "5.4.2";
131-
private const string _sdkGenVersion = "2.306.3";
130+
private const string _sdkVersion = "5.4.3";
131+
private const string _sdkGenVersion = "2.308.2";
132132
private const string _openapiDocVersion = "0.4.0";
133-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.2 2.306.3 0.4.0 SpeakeasySDK";
133+
private const string _userAgent = "speakeasy-sdk/csharp 5.4.3 2.308.2 0.4.0 SpeakeasySDK";
134134
private string _serverUrl = "";
135135
private SDKConfig.Server? _server = null;
136136
private ISpeakeasyHttpClient _defaultClient;

0 commit comments

Comments
 (0)