Skip to content

Commit 8517162

Browse files
authored
Merge pull request #23 from speakeasy-api/speakeasy-sdk-regen-1721164097
chore: 🐝 Update SDK - Generate
2 parents 03987a0 + c6f727b commit 8517162

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+988
-601
lines changed

.speakeasy/gen.lock

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: f73d2126-985b-4d69-88ee-b7c69254d8bf
33
management:
4-
docChecksum: e4cb9ecada8b35163db080ecaaf60fe3
4+
docChecksum: 638dbecd668cc1d7818c3b5aefd2d3e1
55
docVersion: 0.4.0 .
6-
speakeasyVersion: 1.326.0
7-
generationVersion: 2.359.0
8-
releaseVersion: 5.9.17
9-
configChecksum: 62c553205966650360abf9e55d158e1d
6+
speakeasyVersion: 1.337.1
7+
generationVersion: 2.373.2
8+
releaseVersion: 5.9.18
9+
configChecksum: e52bf93e62b87d2ad982f5f0a277c81b
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-csharp.git
1111
repoSubDirectory: .
1212
published: true
1313
features:
1414
csharp:
1515
additionalDependencies: 0.1.0
16-
core: 3.9.8
16+
core: 3.9.10
1717
deprecations: 2.81.2
1818
examples: 2.81.3
1919
globalSecurity: 2.83.4
@@ -38,6 +38,7 @@ generatedFiles:
3838
- SpeakeasySDK/Github.cs
3939
- SpeakeasySDK/Organizations.cs
4040
- SpeakeasySDK/Reports.cs
41+
- SpeakeasySDK/ShortURLs.cs
4142
- SpeakeasySDK/Suggest.cs
4243
- SpeakeasySDK/Embeds.cs
4344
- SpeakeasySDK/Events.cs
@@ -169,6 +170,8 @@ generatedFiles:
169170
- SpeakeasySDK/Models/Operations/UploadReportRequestBody.cs
170171
- SpeakeasySDK/Models/Operations/UploadReportUploadedReport.cs
171172
- SpeakeasySDK/Models/Operations/UploadReportResponse.cs
173+
- SpeakeasySDK/Models/Operations/CreateRequestBody.cs
174+
- SpeakeasySDK/Models/Operations/CreateResponse.cs
172175
- SpeakeasySDK/Models/Operations/ApplyOperationIDsRequestBody.cs
173176
- SpeakeasySDK/Models/Operations/ApplyOperationIDsRequest.cs
174177
- SpeakeasySDK/Models/Operations/ApplyOperationIDsResponse.cs
@@ -251,6 +254,7 @@ generatedFiles:
251254
- SpeakeasySDK/Models/Shared/Organization.cs
252255
- SpeakeasySDK/Models/Shared/Type.cs
253256
- SpeakeasySDK/Models/Shared/Report.cs
257+
- SpeakeasySDK/Models/Shared/ShortURL.cs
254258
- SpeakeasySDK/Models/Shared/SuggestedOperationIDs.cs
255259
- SpeakeasySDK/Models/Shared/DepthStyle.cs
256260
- SpeakeasySDK/Models/Shared/Style.cs
@@ -369,6 +373,8 @@ generatedFiles:
369373
- docs/Models/Operations/UploadReportRequestBody.md
370374
- docs/Models/Operations/UploadReportUploadedReport.md
371375
- docs/Models/Operations/UploadReportResponse.md
376+
- docs/Models/Operations/CreateRequestBody.md
377+
- docs/Models/Operations/CreateResponse.md
372378
- docs/Models/Operations/ApplyOperationIDsRequestBody.md
373379
- docs/Models/Operations/ApplyOperationIDsRequest.md
374380
- docs/Models/Operations/ApplyOperationIDsResponse.md
@@ -451,6 +457,7 @@ generatedFiles:
451457
- docs/Models/Shared/Organization.md
452458
- docs/Models/Shared/Type.md
453459
- docs/Models/Shared/Report.md
460+
- docs/Models/Shared/ShortURL.md
454461
- docs/Models/Shared/SuggestedOperationIDs.md
455462
- docs/Models/Shared/DepthStyle.md
456463
- docs/Models/Shared/Style.md
@@ -474,6 +481,7 @@ generatedFiles:
474481
- docs/sdks/github/README.md
475482
- docs/sdks/organizations/README.md
476483
- docs/sdks/reports/README.md
484+
- docs/sdks/shorturls/README.md
477485
- docs/sdks/suggest/README.md
478486
- docs/sdks/embeds/README.md
479487
- docs/sdks/events/README.md
@@ -482,3 +490,4 @@ generatedFiles:
482490
- .gitattributes
483491
- SpeakeasySDK/Hooks/SDKHooks.cs
484492
- SpeakeasySDK/Hooks/HookTypes.cs
493+
- CONTRIBUTING.md

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
speakeasyVersion: 1.326.0
1+
speakeasyVersion: 1.337.1
22
sources:
33
speakeasy:
44
sourceNamespace: speakeasy
5-
sourceRevisionDigest: sha256:7378df7a808386b029c618042065e28764b4d516fc3b712716c98defe3454a9e
6-
sourceBlobDigest: sha256:79442c5e9dfc890d427a51d8401f50a763f8820770a73c573fcd8268fd2dd362
5+
sourceRevisionDigest: sha256:38f5c1986dfc50aab438a74007e4f1a273f6579bd7e87d6097acc19dc960d77c
6+
sourceBlobDigest: sha256:d80c9fcd88fccc84edd84f8a0a5e15560de92d4666ad9e40c0ad09ea2409a558
77
tags:
88
- latest
99
- main
1010
targets:
1111
speakeasy-client-sdk-csharp:
1212
source: speakeasy
1313
sourceNamespace: speakeasy
14-
sourceRevisionDigest: sha256:7378df7a808386b029c618042065e28764b4d516fc3b712716c98defe3454a9e
15-
sourceBlobDigest: sha256:79442c5e9dfc890d427a51d8401f50a763f8820770a73c573fcd8268fd2dd362
14+
sourceRevisionDigest: sha256:38f5c1986dfc50aab438a74007e4f1a273f6579bd7e87d6097acc19dc960d77c
15+
sourceBlobDigest: sha256:d80c9fcd88fccc84edd84f8a0a5e15560de92d4666ad9e40c0ad09ea2409a558
1616
codeSamplesNamespace: code-samples-csharp-speakeasy-client-sdk-csharp
17-
codeSamplesRevisionDigest: sha256:d2af4c20c19434a1a06c1138ba42f31b0caf0417e52d2894f307c28bc597a997
17+
codeSamplesRevisionDigest: sha256:f5a108a07b3cc06932926e5718faecb6f1e0a10981789a428579008cdd825190
1818
outLocation: /github/workspace/repo
1919
workflow:
2020
workflowVersion: 1.0.0

CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contributing to This Repository
2+
3+
Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements.
4+
5+
## How to Report Issues
6+
7+
If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes:
8+
9+
- A clear and descriptive title
10+
- Steps to reproduce the issue
11+
- Expected and actual behavior
12+
- Any relevant logs, screenshots, or error messages
13+
- Information about your environment (e.g., operating system, software versions)
14+
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed
15+
16+
## Issue Triage and Upstream Fixes
17+
18+
We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code.
19+
20+
## Contact
21+
22+
If you have any questions or need further assistance, please feel free to reach out by opening an issue.
23+
24+
Thank you for your understanding and cooperation!
25+
26+
The Maintainers

NUGET.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
```csharp
1010
using SpeakeasySDK;
11-
using SpeakeasySDK.Models.Shared;
1211
using SpeakeasySDK.Models.Operations;
1312
using System.Collections.Generic;
13+
using SpeakeasySDK.Models.Shared;
1414

1515
var sdk = new SDK(security: new Security() {
1616
APIKey = "<YOUR_API_KEY_HERE>",
@@ -47,8 +47,8 @@ The following global parameter is available.
4747

4848
```csharp
4949
using SpeakeasySDK;
50-
using SpeakeasySDK.Models.Shared;
5150
using SpeakeasySDK.Models.Operations;
51+
using SpeakeasySDK.Models.Shared;
5252

5353
var sdk = new SDK(security: new Security() {
5454
APIKey = "<YOUR_API_KEY_HERE>",
@@ -72,8 +72,8 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
7272
To change the default retry strategy for a single API call, simply pass a `RetryConfig` to the call:
7373
```csharp
7474
using SpeakeasySDK;
75-
using SpeakeasySDK.Models.Shared;
7675
using SpeakeasySDK.Models.Operations;
76+
using SpeakeasySDK.Models.Shared;
7777

7878
var sdk = new SDK(security: new Security() {
7979
APIKey = "<YOUR_API_KEY_HERE>",
@@ -99,8 +99,8 @@ var res = await sdk.Auth.GetWorkspaceAccessAsync(req,
9999
If you'd like to override the default retry strategy for all operations that support retries, you can use the `RetryConfig` optional parameter when intitializing the SDK:
100100
```csharp
101101
using SpeakeasySDK;
102-
using SpeakeasySDK.Models.Shared;
103102
using SpeakeasySDK.Models.Operations;
103+
using SpeakeasySDK.Models.Shared;
104104

105105
var sdk = new SDK(
106106
retryConfig: new RetryConfig(
@@ -139,10 +139,10 @@ Handling errors in this SDK should largely match your expectations. All operati
139139

140140
```csharp
141141
using SpeakeasySDK;
142+
using SpeakeasySDK.Models.Operations;
142143
using SpeakeasySDK.Models.Shared;
143144
using System;
144145
using SpeakeasySDK.Models.Errors;
145-
using SpeakeasySDK.Models.Operations;
146146

147147
var sdk = new SDK(security: new Security() {
148148
APIKey = "<YOUR_API_KEY_HERE>",
@@ -205,8 +205,8 @@ This SDK supports the following security schemes globally:
205205
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example:
206206
```csharp
207207
using SpeakeasySDK;
208-
using SpeakeasySDK.Models.Shared;
209208
using SpeakeasySDK.Models.Operations;
209+
using SpeakeasySDK.Models.Shared;
210210

211211
var sdk = new SDK(security: new Security() {
212212
APIKey = "<YOUR_API_KEY_HERE>",

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ dotnet add reference path/to/SpeakeasySDK.csproj
2323

2424
```csharp
2525
using SpeakeasySDK;
26-
using SpeakeasySDK.Models.Shared;
2726
using SpeakeasySDK.Models.Operations;
2827
using System.Collections.Generic;
28+
using SpeakeasySDK.Models.Shared;
2929

3030
var sdk = new SDK(security: new Security() {
3131
APIKey = "<YOUR_API_KEY_HERE>",
@@ -127,6 +127,10 @@ var res = await sdk.Apis.GetApisAsync(req);
127127
* [GetLintingReportSignedUrl](docs/sdks/reports/README.md#getlintingreportsignedurl) - Get the signed access url for the linting reports for a particular document.
128128
* [UploadReport](docs/sdks/reports/README.md#uploadreport) - Upload a report.
129129

130+
### [ShortURLs](docs/sdks/shorturls/README.md)
131+
132+
* [Create](docs/sdks/shorturls/README.md#create) - Shorten a URL.
133+
130134
### [Suggest](docs/sdks/suggest/README.md)
131135

132136
* [ApplyOperationIDs](docs/sdks/suggest/README.md#applyoperationids) - Apply operation ID suggestions and download result.
@@ -182,8 +186,8 @@ This SDK supports the following security schemes globally:
182186
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example:
183187
```csharp
184188
using SpeakeasySDK;
185-
using SpeakeasySDK.Models.Shared;
186189
using SpeakeasySDK.Models.Operations;
190+
using SpeakeasySDK.Models.Shared;
187191

188192
var sdk = new SDK(security: new Security() {
189193
APIKey = "<YOUR_API_KEY_HERE>",
@@ -223,8 +227,8 @@ The following global parameter is available.
223227

224228
```csharp
225229
using SpeakeasySDK;
226-
using SpeakeasySDK.Models.Shared;
227230
using SpeakeasySDK.Models.Operations;
231+
using SpeakeasySDK.Models.Shared;
228232

229233
var sdk = new SDK(security: new Security() {
230234
APIKey = "<YOUR_API_KEY_HERE>",
@@ -254,10 +258,10 @@ Handling errors in this SDK should largely match your expectations. All operati
254258

255259
```csharp
256260
using SpeakeasySDK;
261+
using SpeakeasySDK.Models.Operations;
257262
using SpeakeasySDK.Models.Shared;
258263
using System;
259264
using SpeakeasySDK.Models.Errors;
260-
using SpeakeasySDK.Models.Operations;
261265

262266
var sdk = new SDK(security: new Security() {
263267
APIKey = "<YOUR_API_KEY_HERE>",
@@ -295,8 +299,8 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
295299
To change the default retry strategy for a single API call, simply pass a `RetryConfig` to the call:
296300
```csharp
297301
using SpeakeasySDK;
298-
using SpeakeasySDK.Models.Shared;
299302
using SpeakeasySDK.Models.Operations;
303+
using SpeakeasySDK.Models.Shared;
300304

301305
var sdk = new SDK(security: new Security() {
302306
APIKey = "<YOUR_API_KEY_HERE>",
@@ -322,8 +326,8 @@ var res = await sdk.Auth.GetWorkspaceAccessAsync(req,
322326
If you'd like to override the default retry strategy for all operations that support retries, you can use the `RetryConfig` optional parameter when intitializing the SDK:
323327
```csharp
324328
using SpeakeasySDK;
325-
using SpeakeasySDK.Models.Shared;
326329
using SpeakeasySDK.Models.Operations;
330+
using SpeakeasySDK.Models.Shared;
327331

328332
var sdk = new SDK(
329333
retryConfig: new RetryConfig(

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,4 +818,14 @@ Based on:
818818
### Generated
819819
- [csharp v5.9.17] .
820820
### Releases
821-
- [NuGet v5.9.17] https://www.nuget.org/packages/SpeakeasySDK/5.9.17 - .
821+
- [NuGet v5.9.17] https://www.nuget.org/packages/SpeakeasySDK/5.9.17 - .
822+
823+
## 2024-07-16 21:08:14
824+
### Changes
825+
Based on:
826+
- OpenAPI Doc
827+
- Speakeasy CLI 1.337.1 (2.373.2) https://github.com/speakeasy-api/speakeasy
828+
### Generated
829+
- [csharp v5.9.18] .
830+
### Releases
831+
- [NuGet v5.9.18] https://www.nuget.org/packages/SpeakeasySDK/5.9.18 - .

SpeakeasySDK/ApiEndpoints.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ public class ApiEndpoints: IApiEndpoints
9898
{
9999
public SDKConfig SDKConfiguration { get; private set; }
100100
private const string _language = "csharp";
101-
private const string _sdkVersion = "5.9.17";
102-
private const string _sdkGenVersion = "2.359.0";
101+
private const string _sdkVersion = "5.9.18";
102+
private const string _sdkGenVersion = "2.373.2";
103103
private const string _openapiDocVersion = "0.4.0 .";
104-
private const string _userAgent = "speakeasy-sdk/csharp 5.9.17 2.359.0 0.4.0 . SpeakeasySDK";
104+
private const string _userAgent = "speakeasy-sdk/csharp 5.9.18 2.373.2 0.4.0 . SpeakeasySDK";
105105
private string _serverUrl = "";
106106
private ISpeakeasyHttpClient _client;
107107
private Func<Security>? _securitySource;
@@ -170,7 +170,7 @@ public async Task<DeleteApiEndpointResponse> DeleteApiEndpointAsync(DeleteApiEnd
170170
StatusCode = responseStatusCode,
171171
ContentType = contentType,
172172
RawResponse = httpResponse
173-
};;
173+
};
174174
}
175175
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
176176
{
@@ -436,7 +436,6 @@ public async Task<GeneratePostmanCollectionForApiEndpointResponse> GeneratePostm
436436
{
437437
if(Utilities.IsContentTypeMatch("application/octet-stream", contentType))
438438
{
439-
440439
var response = new GeneratePostmanCollectionForApiEndpointResponse()
441440
{
442441
StatusCode = responseStatusCode,

SpeakeasySDK/Apis.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ public class Apis: IApis
9494
{
9595
public SDKConfig SDKConfiguration { get; private set; }
9696
private const string _language = "csharp";
97-
private const string _sdkVersion = "5.9.17";
98-
private const string _sdkGenVersion = "2.359.0";
97+
private const string _sdkVersion = "5.9.18";
98+
private const string _sdkGenVersion = "2.373.2";
9999
private const string _openapiDocVersion = "0.4.0 .";
100-
private const string _userAgent = "speakeasy-sdk/csharp 5.9.17 2.359.0 0.4.0 . SpeakeasySDK";
100+
private const string _userAgent = "speakeasy-sdk/csharp 5.9.18 2.373.2 0.4.0 . SpeakeasySDK";
101101
private string _serverUrl = "";
102102
private ISpeakeasyHttpClient _client;
103103
private Func<Security>? _securitySource;
@@ -166,7 +166,7 @@ public async Task<DeleteApiResponse> DeleteApiAsync(DeleteApiRequest request)
166166
StatusCode = responseStatusCode,
167167
ContentType = contentType,
168168
RawResponse = httpResponse
169-
};;
169+
};
170170
}
171171
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
172172
{
@@ -339,7 +339,6 @@ public async Task<GeneratePostmanCollectionResponse> GeneratePostmanCollectionAs
339339
{
340340
if(Utilities.IsContentTypeMatch("application/octet-stream", contentType))
341341
{
342-
343342
var response = new GeneratePostmanCollectionResponse()
344343
{
345344
StatusCode = responseStatusCode,

SpeakeasySDK/Artifacts.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ public class Artifacts: IArtifacts
6464
{
6565
public SDKConfig SDKConfiguration { get; private set; }
6666
private const string _language = "csharp";
67-
private const string _sdkVersion = "5.9.17";
68-
private const string _sdkGenVersion = "2.359.0";
67+
private const string _sdkVersion = "5.9.18";
68+
private const string _sdkGenVersion = "2.373.2";
6969
private const string _openapiDocVersion = "0.4.0 .";
70-
private const string _userAgent = "speakeasy-sdk/csharp 5.9.17 2.359.0 0.4.0 . SpeakeasySDK";
70+
private const string _userAgent = "speakeasy-sdk/csharp 5.9.18 2.373.2 0.4.0 . SpeakeasySDK";
7171
private string _serverUrl = "";
7272
private ISpeakeasyHttpClient _client;
7373
private Func<Security>? _securitySource;
@@ -133,7 +133,6 @@ public async Task<GetBlobResponse> GetBlobAsync(GetBlobRequest request)
133133
{
134134
if(Utilities.IsContentTypeMatch("application/octet-stream", contentType))
135135
{
136-
137136
var response = new GetBlobResponse()
138137
{
139138
StatusCode = responseStatusCode,
@@ -701,7 +700,7 @@ public async Task<PostTagsResponse> PostTagsAsync(PostTagsRequest request)
701700
StatusCode = responseStatusCode,
702701
ContentType = contentType,
703702
RawResponse = httpResponse
704-
};;
703+
};
705704
}
706705
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
707706
{

SpeakeasySDK/Auth.cs

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

0 commit comments

Comments
 (0)