Skip to content

Commit 6ae1fb0

Browse files
authored
Merge pull request #15 from speakeasy-api/speakeasy-sdk-regen-1718116405
chore: 🐝 Update SDK - Generate
2 parents 9d09b76 + 54243a7 commit 6ae1fb0

File tree

228 files changed

+1319
-1273
lines changed

Some content is hidden

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

228 files changed

+1319
-1273
lines changed

.speakeasy/gen.lock

Lines changed: 212 additions & 212 deletions
Large diffs are not rendered by default.

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.300.1
1+
speakeasyVersion: 1.303.4
22
sources:
33
speakeasy:
44
sourceNamespace: speakeasy
5-
sourceRevisionDigest: sha256:81dfe70544c7661046cce71d816228095f7b7067c287c0a53821b809f0c49ed3
6-
sourceBlobDigest: sha256:b140ffbff4b14cb3dc8380f8f47a672ee911cf46cee03a3703633ddc16a06ae8
5+
sourceRevisionDigest: sha256:da62f2c7f2ad41b9a016b76317a8210b7d3eab4c77c84c8b5c379c8b4e3017dc
6+
sourceBlobDigest: sha256:5134f1d8c7889a2563e5a4187f62f6f8bab0df4ebce9fd67b46009154c828a46
77
tags:
88
- latest
99
- main
1010
targets:
1111
speakeasy-client-sdk-csharp:
1212
source: speakeasy
1313
sourceNamespace: speakeasy
14-
sourceRevisionDigest: sha256:81dfe70544c7661046cce71d816228095f7b7067c287c0a53821b809f0c49ed3
15-
sourceBlobDigest: sha256:b140ffbff4b14cb3dc8380f8f47a672ee911cf46cee03a3703633ddc16a06ae8
14+
sourceRevisionDigest: sha256:da62f2c7f2ad41b9a016b76317a8210b7d3eab4c77c84c8b5c379c8b4e3017dc
15+
sourceBlobDigest: sha256:5134f1d8c7889a2563e5a4187f62f6f8bab0df4ebce9fd67b46009154c828a46
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0

README.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
### Nuget
77

88
```bash
9-
dotnet add package SpeakeasySDK
9+
dotnet add package Speakeasy.Client.SDK
1010
```
1111
<!-- End SDK Installation [installation] -->
1212

@@ -16,12 +16,12 @@ dotnet add package SpeakeasySDK
1616
### Example
1717

1818
```csharp
19-
using SpeakeasySDK;
20-
using SpeakeasySDK.Models.Shared;
21-
using SpeakeasySDK.Models.Operations;
19+
using Speakeasy.Client.SDK;
20+
using Speakeasy.Client.SDK.Models.Shared;
21+
using Speakeasy.Client.SDK.Models.Operations;
2222
using System.Collections.Generic;
2323

24-
var sdk = new Speakeasy(security: new Security() {
24+
var sdk = new SpeakeasySDK(security: new Security() {
2525
APIKey = "<YOUR_API_KEY_HERE>",
2626
});
2727

@@ -166,11 +166,11 @@ This SDK supports the following security schemes globally:
166166

167167
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:
168168
```csharp
169-
using SpeakeasySDK;
170-
using SpeakeasySDK.Models.Shared;
171-
using SpeakeasySDK.Models.Operations;
169+
using Speakeasy.Client.SDK;
170+
using Speakeasy.Client.SDK.Models.Shared;
171+
using Speakeasy.Client.SDK.Models.Operations;
172172

173-
var sdk = new Speakeasy(security: new Security() {
173+
var sdk = new SpeakeasySDK(security: new Security() {
174174
APIKey = "<YOUR_API_KEY_HERE>",
175175
});
176176

@@ -207,11 +207,11 @@ The following global parameter is available.
207207
### Example
208208

209209
```csharp
210-
using SpeakeasySDK;
211-
using SpeakeasySDK.Models.Shared;
212-
using SpeakeasySDK.Models.Operations;
210+
using Speakeasy.Client.SDK;
211+
using Speakeasy.Client.SDK.Models.Shared;
212+
using Speakeasy.Client.SDK.Models.Operations;
213213

214-
var sdk = new Speakeasy(security: new Security() {
214+
var sdk = new SpeakeasySDK(security: new Security() {
215215
APIKey = "<YOUR_API_KEY_HERE>",
216216
});
217217

@@ -230,21 +230,21 @@ var res = await sdk.Events.GetWorkspaceEventsByTargetAsync(req);
230230

231231
Handling errors in this SDK should largely match your expectations. All operations return a response object or thow an exception. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate type.
232232

233-
| Error Object | Status Code | Content Type |
234-
| --------------------------------------- | --------------------------------------- | --------------------------------------- |
235-
| SpeakeasySDK.Models.Errors.Error | 5XX | application/json |
236-
| SpeakeasySDK.Models.Errors.SDKException | 4xx-5xx | */* |
233+
| Error Object | Status Code | Content Type |
234+
| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- |
235+
| Speakeasy.Client.SDK.Models.Errors.Error | 5XX | application/json |
236+
| Speakeasy.Client.SDK.Models.Errors.SDKException | 4xx-5xx | */* |
237237

238238
### Example
239239

240240
```csharp
241-
using SpeakeasySDK;
242-
using SpeakeasySDK.Models.Shared;
241+
using Speakeasy.Client.SDK;
242+
using Speakeasy.Client.SDK.Models.Shared;
243243
using System;
244-
using SpeakeasySDK.Models.Errors;
245-
using SpeakeasySDK.Models.Operations;
244+
using Speakeasy.Client.SDK.Models.Errors;
245+
using Speakeasy.Client.SDK.Models.Operations;
246246

247-
var sdk = new Speakeasy(security: new Security() {
247+
var sdk = new SpeakeasySDK(security: new Security() {
248248
APIKey = "<YOUR_API_KEY_HERE>",
249249
});
250250

@@ -263,7 +263,7 @@ catch (Exception ex)
263263
{
264264
// handle exception
265265
}
266-
else if (ex is SpeakeasySDK.Models.Errors.SDKException)
266+
else if (ex is Speakeasy.Client.SDK.Models.Errors.SDKException)
267267
{
268268
// handle exception
269269
}
@@ -279,11 +279,11 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
279279

280280
To change the default retry strategy for a single API call, simply pass a `RetryConfig` to the call:
281281
```csharp
282-
using SpeakeasySDK;
283-
using SpeakeasySDK.Models.Shared;
284-
using SpeakeasySDK.Models.Operations;
282+
using Speakeasy.Client.SDK;
283+
using Speakeasy.Client.SDK.Models.Shared;
284+
using Speakeasy.Client.SDK.Models.Operations;
285285

286-
var sdk = new Speakeasy(security: new Security() {
286+
var sdk = new SpeakeasySDK(security: new Security() {
287287
APIKey = "<YOUR_API_KEY_HERE>",
288288
});
289289

@@ -306,11 +306,11 @@ var res = await sdk.Auth.GetWorkspaceAccessAsync(req,
306306

307307
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:
308308
```csharp
309-
using SpeakeasySDK;
310-
using SpeakeasySDK.Models.Shared;
311-
using SpeakeasySDK.Models.Operations;
309+
using Speakeasy.Client.SDK;
310+
using Speakeasy.Client.SDK.Models.Shared;
311+
using Speakeasy.Client.SDK.Models.Operations;
312312

313-
var sdk = new Speakeasy(
313+
var sdk = new SpeakeasySDK(
314314
retryConfig: new RetryConfig(
315315
strategy: RetryConfig.RetryStrategy.BACKOFF,
316316
backoff: new BackoffStrategy(

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,4 +738,14 @@ Based on:
738738
### Generated
739739
- [csharp v5.9.6] .
740740
### Releases
741-
- [NuGet v5.9.6] https://www.nuget.org/packages/SpeakeasySDK/5.9.6 - .
741+
- [NuGet v5.9.6] https://www.nuget.org/packages/SpeakeasySDK/5.9.6 - .
742+
743+
## 2024-06-11 14:33:23
744+
### Changes
745+
Based on:
746+
- OpenAPI Doc
747+
- Speakeasy CLI 1.303.4 (2.340.2) https://github.com/speakeasy-api/speakeasy
748+
### Generated
749+
- [csharp v5.9.7] .
750+
### Releases
751+
- [NuGet v5.9.7] https://www.nuget.org/packages/Speakeasy.Client.SDK/5.9.7 - .

SpeakeasySDK.sln renamed to Speakeasy.Client.SDK.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpeakeasySDK", "SpeakeasySDK\SpeakeasySDK.csproj", "{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}"
3+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Speakeasy.Client.SDK", "Speakeasy\Client\SDK\Speakeasy.Client.SDK.csproj", "{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}"
44
EndProject
55

66
Global

SpeakeasySDK/ApiEndpoints.cs renamed to Speakeasy/Client/SDK/ApiEndpoints.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
// </auto-generated>
88
//------------------------------------------------------------------------------
99
#nullable enable
10-
namespace SpeakeasySDK
10+
namespace Speakeasy.Client.SDK
1111
{
1212
using Newtonsoft.Json;
13-
using SpeakeasySDK.Hooks;
14-
using SpeakeasySDK.Models.Errors;
15-
using SpeakeasySDK.Models.Operations;
16-
using SpeakeasySDK.Models.Shared;
17-
using SpeakeasySDK.Utils.Retries;
18-
using SpeakeasySDK.Utils;
13+
using Speakeasy.Client.SDK.Hooks;
14+
using Speakeasy.Client.SDK.Models.Errors;
15+
using Speakeasy.Client.SDK.Models.Operations;
16+
using Speakeasy.Client.SDK.Models.Shared;
17+
using Speakeasy.Client.SDK.Utils.Retries;
18+
using Speakeasy.Client.SDK.Utils;
1919
using System.Collections.Generic;
2020
using System.Net.Http.Headers;
2121
using System.Net.Http;
@@ -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.6";
102-
private const string _sdkGenVersion = "2.339.1";
101+
private const string _sdkVersion = "5.9.7";
102+
private const string _sdkGenVersion = "2.340.2";
103103
private const string _openapiDocVersion = "0.4.0 .";
104-
private const string _userAgent = "speakeasy-sdk/csharp 5.9.6 2.339.1 0.4.0 . SpeakeasySDK";
104+
private const string _userAgent = "speakeasy-sdk/csharp 5.9.7 2.340.2 0.4.0 . Speakeasy.Client.SDK";
105105
private string _serverUrl = "";
106106
private ISpeakeasyHttpClient _client;
107107
private Func<Security>? _securitySource;

SpeakeasySDK/Apis.cs renamed to Speakeasy/Client/SDK/Apis.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
// </auto-generated>
88
//------------------------------------------------------------------------------
99
#nullable enable
10-
namespace SpeakeasySDK
10+
namespace Speakeasy.Client.SDK
1111
{
1212
using Newtonsoft.Json;
13-
using SpeakeasySDK.Hooks;
14-
using SpeakeasySDK.Models.Errors;
15-
using SpeakeasySDK.Models.Operations;
16-
using SpeakeasySDK.Models.Shared;
17-
using SpeakeasySDK.Utils.Retries;
18-
using SpeakeasySDK.Utils;
13+
using Speakeasy.Client.SDK.Hooks;
14+
using Speakeasy.Client.SDK.Models.Errors;
15+
using Speakeasy.Client.SDK.Models.Operations;
16+
using Speakeasy.Client.SDK.Models.Shared;
17+
using Speakeasy.Client.SDK.Utils.Retries;
18+
using Speakeasy.Client.SDK.Utils;
1919
using System.Collections.Generic;
2020
using System.Net.Http.Headers;
2121
using System.Net.Http;
@@ -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.6";
98-
private const string _sdkGenVersion = "2.339.1";
97+
private const string _sdkVersion = "5.9.7";
98+
private const string _sdkGenVersion = "2.340.2";
9999
private const string _openapiDocVersion = "0.4.0 .";
100-
private const string _userAgent = "speakeasy-sdk/csharp 5.9.6 2.339.1 0.4.0 . SpeakeasySDK";
100+
private const string _userAgent = "speakeasy-sdk/csharp 5.9.7 2.340.2 0.4.0 . Speakeasy.Client.SDK";
101101
private string _serverUrl = "";
102102
private ISpeakeasyHttpClient _client;
103103
private Func<Security>? _securitySource;

SpeakeasySDK/Artifacts.cs renamed to Speakeasy/Client/SDK/Artifacts.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
// </auto-generated>
88
//------------------------------------------------------------------------------
99
#nullable enable
10-
namespace SpeakeasySDK
10+
namespace Speakeasy.Client.SDK
1111
{
1212
using Newtonsoft.Json;
13-
using SpeakeasySDK.Hooks;
14-
using SpeakeasySDK.Models.Errors;
15-
using SpeakeasySDK.Models.Operations;
16-
using SpeakeasySDK.Models.Shared;
17-
using SpeakeasySDK.Utils.Retries;
18-
using SpeakeasySDK.Utils;
13+
using Speakeasy.Client.SDK.Hooks;
14+
using Speakeasy.Client.SDK.Models.Errors;
15+
using Speakeasy.Client.SDK.Models.Operations;
16+
using Speakeasy.Client.SDK.Models.Shared;
17+
using Speakeasy.Client.SDK.Utils.Retries;
18+
using Speakeasy.Client.SDK.Utils;
1919
using System.Collections.Generic;
2020
using System.Net.Http.Headers;
2121
using System.Net.Http;
@@ -57,10 +57,10 @@ public class Artifacts: IArtifacts
5757
{
5858
public SDKConfig SDKConfiguration { get; private set; }
5959
private const string _language = "csharp";
60-
private const string _sdkVersion = "5.9.6";
61-
private const string _sdkGenVersion = "2.339.1";
60+
private const string _sdkVersion = "5.9.7";
61+
private const string _sdkGenVersion = "2.340.2";
6262
private const string _openapiDocVersion = "0.4.0 .";
63-
private const string _userAgent = "speakeasy-sdk/csharp 5.9.6 2.339.1 0.4.0 . SpeakeasySDK";
63+
private const string _userAgent = "speakeasy-sdk/csharp 5.9.7 2.340.2 0.4.0 . Speakeasy.Client.SDK";
6464
private string _serverUrl = "";
6565
private ISpeakeasyHttpClient _client;
6666
private Func<Security>? _securitySource;

SpeakeasySDK/Auth.cs renamed to Speakeasy/Client/SDK/Auth.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
// </auto-generated>
88
//------------------------------------------------------------------------------
99
#nullable enable
10-
namespace SpeakeasySDK
10+
namespace Speakeasy.Client.SDK
1111
{
1212
using Newtonsoft.Json;
13-
using SpeakeasySDK.Hooks;
14-
using SpeakeasySDK.Models.Errors;
15-
using SpeakeasySDK.Models.Operations;
16-
using SpeakeasySDK.Models.Shared;
17-
using SpeakeasySDK.Utils.Retries;
18-
using SpeakeasySDK.Utils;
13+
using Speakeasy.Client.SDK.Hooks;
14+
using Speakeasy.Client.SDK.Models.Errors;
15+
using Speakeasy.Client.SDK.Models.Operations;
16+
using Speakeasy.Client.SDK.Models.Shared;
17+
using Speakeasy.Client.SDK.Utils.Retries;
18+
using Speakeasy.Client.SDK.Utils;
1919
using System.Collections.Generic;
2020
using System.Net.Http.Headers;
2121
using System.Net.Http;
@@ -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.6";
64-
private const string _sdkGenVersion = "2.339.1";
63+
private const string _sdkVersion = "5.9.7";
64+
private const string _sdkGenVersion = "2.340.2";
6565
private const string _openapiDocVersion = "0.4.0 .";
66-
private const string _userAgent = "speakeasy-sdk/csharp 5.9.6 2.339.1 0.4.0 . SpeakeasySDK";
66+
private const string _userAgent = "speakeasy-sdk/csharp 5.9.7 2.340.2 0.4.0 . Speakeasy.Client.SDK";
6767
private string _serverUrl = "";
6868
private ISpeakeasyHttpClient _client;
6969
private Func<Security>? _securitySource;
@@ -308,7 +308,7 @@ public async Task<GetWorkspaceAccessResponse> GetWorkspaceAccessAsync(GetWorkspa
308308
var _httpRequest = await _client.CloneAsync(httpRequest);
309309
return await _client.SendAsync(_httpRequest);
310310
};
311-
var retries = new SpeakeasySDK.Utils.Retries.Retries(retrySend, retryConfig, statusCodes);
311+
var retries = new Speakeasy.Client.SDK.Utils.Retries.Retries(retrySend, retryConfig, statusCodes);
312312

313313
HttpResponseMessage httpResponse;
314314
try

SpeakeasySDK/Embeds.cs renamed to Speakeasy/Client/SDK/Embeds.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
// </auto-generated>
88
//------------------------------------------------------------------------------
99
#nullable enable
10-
namespace SpeakeasySDK
10+
namespace Speakeasy.Client.SDK
1111
{
1212
using Newtonsoft.Json;
13-
using SpeakeasySDK.Hooks;
14-
using SpeakeasySDK.Models.Errors;
15-
using SpeakeasySDK.Models.Operations;
16-
using SpeakeasySDK.Models.Shared;
17-
using SpeakeasySDK.Utils.Retries;
18-
using SpeakeasySDK.Utils;
13+
using Speakeasy.Client.SDK.Hooks;
14+
using Speakeasy.Client.SDK.Models.Errors;
15+
using Speakeasy.Client.SDK.Models.Operations;
16+
using Speakeasy.Client.SDK.Models.Shared;
17+
using Speakeasy.Client.SDK.Utils.Retries;
18+
using Speakeasy.Client.SDK.Utils;
1919
using System.Collections.Generic;
2020
using System.Net.Http.Headers;
2121
using System.Net.Http;
@@ -56,10 +56,10 @@ public class Embeds: IEmbeds
5656
{
5757
public SDKConfig SDKConfiguration { get; private set; }
5858
private const string _language = "csharp";
59-
private const string _sdkVersion = "5.9.6";
60-
private const string _sdkGenVersion = "2.339.1";
59+
private const string _sdkVersion = "5.9.7";
60+
private const string _sdkGenVersion = "2.340.2";
6161
private const string _openapiDocVersion = "0.4.0 .";
62-
private const string _userAgent = "speakeasy-sdk/csharp 5.9.6 2.339.1 0.4.0 . SpeakeasySDK";
62+
private const string _userAgent = "speakeasy-sdk/csharp 5.9.7 2.340.2 0.4.0 . Speakeasy.Client.SDK";
6363
private string _serverUrl = "";
6464
private ISpeakeasyHttpClient _client;
6565
private Func<Security>? _securitySource;

0 commit comments

Comments
 (0)