Skip to content

Commit 2271f50

Browse files
committed
ci: regenerated with OpenAPI Doc 0.3.0, Speakeasy CLI 1.161.0
1 parent 973dd4f commit 2271f50

File tree

22 files changed

+114
-111
lines changed

22 files changed

+114
-111
lines changed

.speakeasy/gen.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ management:
44
docChecksum: ba638b2ad28966c596e28321a2003686
55
docVersion: 0.3.0
66
speakeasyVersion: internal
7-
generationVersion: 2.237.2
8-
releaseVersion: 2.3.1
9-
configChecksum: 80c8ab98feea932ef9ce06465f8c6375
7+
generationVersion: 2.245.1
8+
releaseVersion: 3.0.0
9+
configChecksum: 79f37e2d96bbb04a0e7c2f62b58e1b2c
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-csharp.git
1111
repoSubDirectory: .
1212
published: true
1313
features:
1414
csharp:
1515
core: 3.3.1
1616
examples: 2.81.3
17-
globalSecurity: 2.81.3
17+
globalSecurity: 2.82.0
1818
globalServerURLs: 2.82.2
1919
inputOutputModels: 2.83.0
20-
serverIDs: 2.82.0
20+
serverIDs: 2.82.1
2121
generatedFiles:
2222
- SpeakeasySDK/Apis.cs
2323
- SpeakeasySDK/ApiEndpoints.cs

README.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ using SpeakeasySDK.Models.Shared;
2121
using SpeakeasySDK.Models.Operations;
2222
using System.Collections.Generic;
2323

24-
var sdk = new Speakeasy(
25-
security: new Security() {
24+
var sdk = new Speakeasy(security: new Security() {
2625
APIKey = "<YOUR_API_KEY_HERE>",
2726
});
2827

@@ -128,6 +127,32 @@ You can override the default server globally by passing a server name to the `se
128127
The default server can also be overridden globally by passing a URL to the `serverUrl: str` optional parameter when initializing the SDK client instance. For example:
129128
<!-- End Server Selection [server] -->
130129

130+
<!-- Start Authentication [security] -->
131+
## Authentication
132+
133+
### Per-Client Security Schemes
134+
135+
This SDK supports the following security scheme globally:
136+
137+
| Name | Type | Scheme |
138+
| -------- | -------- | -------- |
139+
| `apiKey` | apiKey | API key |
140+
141+
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. For example:
142+
```csharp
143+
using SpeakeasySDK;
144+
using SpeakeasySDK.Models.Shared;
145+
146+
var sdk = new Speakeasy(security: new Security() {
147+
APIKey = "<YOUR_API_KEY_HERE>",
148+
});
149+
150+
var res = await sdk.ValidateApiKeyAsync();
151+
152+
// handle response
153+
```
154+
<!-- End Authentication [security] -->
155+
131156
<!-- Placeholder for Future Speakeasy SDK Sections -->
132157

133158

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,4 +388,14 @@ Based on:
388388
### Generated
389389
- [csharp v2.3.1] .
390390
### Releases
391-
- [NuGet v2.3.1] https://www.nuget.org/packages/SpeakeasySDK/2.3.1 - .
391+
- [NuGet v2.3.1] https://www.nuget.org/packages/SpeakeasySDK/2.3.1 - .
392+
393+
## 2024-02-01 00:03:48
394+
### Changes
395+
Based on:
396+
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
397+
- Speakeasy CLI 1.161.0 (2.245.1) https://github.com/speakeasy-api/speakeasy
398+
### Generated
399+
- [csharp v3.0.0] .
400+
### Releases
401+
- [NuGet v3.0.0] https://www.nuget.org/packages/SpeakeasySDK/3.0.0 - .

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 = "2.3.1";
100-
private const string _sdkGenVersion = "2.237.2";
99+
private const string _sdkVersion = "3.0.0";
100+
private const string _sdkGenVersion = "2.245.1";
101101
private const string _openapiDocVersion = "0.3.0";
102-
private const string _userAgent = "speakeasy-sdk/csharp 2.3.1 2.237.2 0.3.0 SpeakeasySDK";
102+
private const string _userAgent = "speakeasy-sdk/csharp 3.0.0 2.245.1 0.3.0 SpeakeasySDK";
103103
private string _serverUrl = "";
104104
private ISpeakeasyHttpClient _defaultClient;
105105
private ISpeakeasyHttpClient _securityClient;

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 = "2.3.1";
96-
private const string _sdkGenVersion = "2.237.2";
95+
private const string _sdkVersion = "3.0.0";
96+
private const string _sdkGenVersion = "2.245.1";
9797
private const string _openapiDocVersion = "0.3.0";
98-
private const string _userAgent = "speakeasy-sdk/csharp 2.3.1 2.237.2 0.3.0 SpeakeasySDK";
98+
private const string _userAgent = "speakeasy-sdk/csharp 3.0.0 2.245.1 0.3.0 SpeakeasySDK";
9999
private string _serverUrl = "";
100100
private ISpeakeasyHttpClient _defaultClient;
101101
private ISpeakeasyHttpClient _securityClient;

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 = "2.3.1";
58-
private const string _sdkGenVersion = "2.237.2";
57+
private const string _sdkVersion = "3.0.0";
58+
private const string _sdkGenVersion = "2.245.1";
5959
private const string _openapiDocVersion = "0.3.0";
60-
private const string _userAgent = "speakeasy-sdk/csharp 2.3.1 2.237.2 0.3.0 SpeakeasySDK";
60+
private const string _userAgent = "speakeasy-sdk/csharp 3.0.0 2.245.1 0.3.0 SpeakeasySDK";
6161
private string _serverUrl = "";
6262
private ISpeakeasyHttpClient _defaultClient;
6363
private ISpeakeasyHttpClient _securityClient;

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 = "2.3.1";
53-
private const string _sdkGenVersion = "2.237.2";
52+
private const string _sdkVersion = "3.0.0";
53+
private const string _sdkGenVersion = "2.245.1";
5454
private const string _openapiDocVersion = "0.3.0";
55-
private const string _userAgent = "speakeasy-sdk/csharp 2.3.1 2.237.2 0.3.0 SpeakeasySDK";
55+
private const string _userAgent = "speakeasy-sdk/csharp 3.0.0 2.245.1 0.3.0 SpeakeasySDK";
5656
private string _serverUrl = "";
5757
private ISpeakeasyHttpClient _defaultClient;
5858
private ISpeakeasyHttpClient _securityClient;

SpeakeasySDK/Plugins.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ public class Plugins: IPlugins
4949
{
5050
public SDKConfig SDKConfiguration { get; private set; }
5151
private const string _language = "csharp";
52-
private const string _sdkVersion = "2.3.1";
53-
private const string _sdkGenVersion = "2.237.2";
52+
private const string _sdkVersion = "3.0.0";
53+
private const string _sdkGenVersion = "2.245.1";
5454
private const string _openapiDocVersion = "0.3.0";
55-
private const string _userAgent = "speakeasy-sdk/csharp 2.3.1 2.237.2 0.3.0 SpeakeasySDK";
55+
private const string _userAgent = "speakeasy-sdk/csharp 3.0.0 2.245.1 0.3.0 SpeakeasySDK";
5656
private string _serverUrl = "";
5757
private ISpeakeasyHttpClient _defaultClient;
5858
private ISpeakeasyHttpClient _securityClient;

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 = "2.3.1";
63-
private const string _sdkGenVersion = "2.237.2";
62+
private const string _sdkVersion = "3.0.0";
63+
private const string _sdkGenVersion = "2.245.1";
6464
private const string _openapiDocVersion = "0.3.0";
65-
private const string _userAgent = "speakeasy-sdk/csharp 2.3.1 2.237.2 0.3.0 SpeakeasySDK";
65+
private const string _userAgent = "speakeasy-sdk/csharp 3.0.0 2.245.1 0.3.0 SpeakeasySDK";
6666
private string _serverUrl = "";
6767
private ISpeakeasyHttpClient _defaultClient;
6868
private ISpeakeasyHttpClient _securityClient;

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 = "2.3.1";
98-
private const string _sdkGenVersion = "2.237.2";
97+
private const string _sdkVersion = "3.0.0";
98+
private const string _sdkGenVersion = "2.245.1";
9999
private const string _openapiDocVersion = "0.3.0";
100-
private const string _userAgent = "speakeasy-sdk/csharp 2.3.1 2.237.2 0.3.0 SpeakeasySDK";
100+
private const string _userAgent = "speakeasy-sdk/csharp 3.0.0 2.245.1 0.3.0 SpeakeasySDK";
101101
private string _serverUrl = "";
102102
private ISpeakeasyHttpClient _defaultClient;
103103
private ISpeakeasyHttpClient _securityClient;

SpeakeasySDK/Speakeasy.cs

Lines changed: 11 additions & 8 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 = "2.3.1";
111-
private const string _sdkGenVersion = "2.237.2";
110+
private const string _sdkVersion = "3.0.0";
111+
private const string _sdkGenVersion = "2.245.1";
112112
private const string _openapiDocVersion = "0.3.0";
113-
private const string _userAgent = "speakeasy-sdk/csharp 2.3.1 2.237.2 0.3.0 SpeakeasySDK";
113+
private const string _userAgent = "speakeasy-sdk/csharp 3.0.0 2.245.1 0.3.0 SpeakeasySDK";
114114
private string _serverUrl = "";
115115
private ISpeakeasyHttpClient _defaultClient;
116116
private ISpeakeasyHttpClient _securityClient;
@@ -124,21 +124,24 @@ public class Speakeasy: ISpeakeasy
124124

125125
public Speakeasy(Security? security = null, string? server = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null)
126126
{
127-
if (serverUrl != null) {
128-
if (urlParams != null) {
127+
128+
if (serverUrl != null)
129+
{
130+
if (urlParams != null)
131+
{
129132
serverUrl = Utilities.TemplateUrl(serverUrl, urlParams);
130133
}
131134
_serverUrl = serverUrl;
132135
}
133136

134137
_defaultClient = new SpeakeasyHttpClient(client);
135138
_securityClient = _defaultClient;
136-
139+
137140
if(security != null)
138141
{
139142
_securityClient = SecuritySerializer.Apply(_defaultClient, security);
140143
}
141-
144+
142145
SDKConfiguration = new SDKConfig()
143146
{
144147
serverUrl = _serverUrl
@@ -184,4 +187,4 @@ public async Task<ValidateApiKeyResponse> ValidateApiKeyAsync()
184187
return response;
185188
}
186189
}
187-
}
190+
}

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

USAGE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ using SpeakeasySDK.Models.Shared;
55
using SpeakeasySDK.Models.Operations;
66
using System.Collections.Generic;
77

8-
var sdk = new Speakeasy(
9-
security: new Security() {
8+
var sdk = new Speakeasy(security: new Security() {
109
APIKey = "<YOUR_API_KEY_HERE>",
1110
});
1211

docs/sdks/apiendpoints/README.md

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ using SpeakeasySDK;
2727
using SpeakeasySDK.Models.Shared;
2828
using SpeakeasySDK.Models.Operations;
2929

30-
var sdk = new Speakeasy(
31-
security: new Security() {
30+
var sdk = new Speakeasy(security: new Security() {
3231
APIKey = "<YOUR_API_KEY_HERE>",
3332
});
3433

@@ -67,8 +66,7 @@ using SpeakeasySDK;
6766
using SpeakeasySDK.Models.Shared;
6867
using SpeakeasySDK.Models.Operations;
6968

70-
var sdk = new Speakeasy(
71-
security: new Security() {
69+
var sdk = new Speakeasy(security: new Security() {
7270
APIKey = "<YOUR_API_KEY_HERE>",
7371
});
7472

@@ -107,8 +105,7 @@ using SpeakeasySDK;
107105
using SpeakeasySDK.Models.Shared;
108106
using SpeakeasySDK.Models.Operations;
109107

110-
var sdk = new Speakeasy(
111-
security: new Security() {
108+
var sdk = new Speakeasy(security: new Security() {
112109
APIKey = "<YOUR_API_KEY_HERE>",
113110
});
114111

@@ -146,8 +143,7 @@ using SpeakeasySDK;
146143
using SpeakeasySDK.Models.Shared;
147144
using SpeakeasySDK.Models.Operations;
148145

149-
var sdk = new Speakeasy(
150-
security: new Security() {
146+
var sdk = new Speakeasy(security: new Security() {
151147
APIKey = "<YOUR_API_KEY_HERE>",
152148
});
153149

@@ -185,8 +181,7 @@ using SpeakeasySDK;
185181
using SpeakeasySDK.Models.Shared;
186182
using SpeakeasySDK.Models.Operations;
187183

188-
var sdk = new Speakeasy(
189-
security: new Security() {
184+
var sdk = new Speakeasy(security: new Security() {
190185
APIKey = "<YOUR_API_KEY_HERE>",
191186
});
192187

@@ -222,8 +217,7 @@ using SpeakeasySDK;
222217
using SpeakeasySDK.Models.Shared;
223218
using SpeakeasySDK.Models.Operations;
224219

225-
var sdk = new Speakeasy(
226-
security: new Security() {
220+
var sdk = new Speakeasy(security: new Security() {
227221
APIKey = "<YOUR_API_KEY_HERE>",
228222
});
229223

@@ -260,8 +254,7 @@ using SpeakeasySDK;
260254
using SpeakeasySDK.Models.Shared;
261255
using SpeakeasySDK.Models.Operations;
262256

263-
var sdk = new Speakeasy(
264-
security: new Security() {
257+
var sdk = new Speakeasy(security: new Security() {
265258
APIKey = "<YOUR_API_KEY_HERE>",
266259
});
267260

@@ -299,8 +292,7 @@ using SpeakeasySDK;
299292
using SpeakeasySDK.Models.Shared;
300293
using SpeakeasySDK.Models.Operations;
301294

302-
var sdk = new Speakeasy(
303-
security: new Security() {
295+
var sdk = new Speakeasy(security: new Security() {
304296
APIKey = "<YOUR_API_KEY_HERE>",
305297
});
306298

docs/sdks/apis/README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ using SpeakeasySDK;
2525
using SpeakeasySDK.Models.Shared;
2626
using SpeakeasySDK.Models.Operations;
2727

28-
var sdk = new Speakeasy(
29-
security: new Security() {
28+
var sdk = new Speakeasy(security: new Security() {
3029
APIKey = "<YOUR_API_KEY_HERE>",
3130
});
3231

@@ -64,8 +63,7 @@ using SpeakeasySDK;
6463
using SpeakeasySDK.Models.Shared;
6564
using SpeakeasySDK.Models.Operations;
6665

67-
var sdk = new Speakeasy(
68-
security: new Security() {
66+
var sdk = new Speakeasy(security: new Security() {
6967
APIKey = "<YOUR_API_KEY_HERE>",
7068
});
7169

@@ -102,8 +100,7 @@ using SpeakeasySDK;
102100
using SpeakeasySDK.Models.Shared;
103101
using SpeakeasySDK.Models.Operations;
104102

105-
var sdk = new Speakeasy(
106-
security: new Security() {
103+
var sdk = new Speakeasy(security: new Security() {
107104
APIKey = "<YOUR_API_KEY_HERE>",
108105
});
109106

@@ -142,8 +139,7 @@ using SpeakeasySDK.Models.Shared;
142139
using SpeakeasySDK.Models.Operations;
143140
using System.Collections.Generic;
144141

145-
var sdk = new Speakeasy(
146-
security: new Security() {
142+
var sdk = new Speakeasy(security: new Security() {
147143
APIKey = "<YOUR_API_KEY_HERE>",
148144
});
149145

@@ -189,8 +185,7 @@ using SpeakeasySDK.Models.Shared;
189185
using SpeakeasySDK.Models.Operations;
190186
using System.Collections.Generic;
191187

192-
var sdk = new Speakeasy(
193-
security: new Security() {
188+
var sdk = new Speakeasy(security: new Security() {
194189
APIKey = "<YOUR_API_KEY_HERE>",
195190
});
196191

@@ -235,8 +230,7 @@ using SpeakeasySDK.Models.Shared;
235230
using SpeakeasySDK.Models.Operations;
236231
using System.Collections.Generic;
237232

238-
var sdk = new Speakeasy(
239-
security: new Security() {
233+
var sdk = new Speakeasy(security: new Security() {
240234
APIKey = "<YOUR_API_KEY_HERE>",
241235
});
242236

0 commit comments

Comments
 (0)