Skip to content

Commit 082f7a0

Browse files
committed
ci: regenerated with OpenAPI Doc 0.4.0, Speakeasy CLI 1.183.2
1 parent ee0d31b commit 082f7a0

File tree

18 files changed

+129
-40
lines changed

18 files changed

+129
-40
lines changed

.speakeasy/gen.lock

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: f73d2126-985b-4d69-88ee-b7c69254d8bf
33
management:
4-
docChecksum: c81aa4e807522359d28c09ee16d252ba
4+
docChecksum: 90bb5b2f880d4a86868122f9a6b08d40
55
docVersion: 0.4.0
66
speakeasyVersion: internal
7-
generationVersion: 2.258.0
8-
releaseVersion: 5.0.2
9-
configChecksum: e52374a18288e2218094e21db61361c9
7+
generationVersion: 2.262.2
8+
releaseVersion: 5.0.3
9+
configChecksum: 9a945d58feb93baa7c10cc9fa7ebeeb9
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.2
1616
examples: 2.81.3
17-
globalSecurity: 2.83.0
17+
globalSecurity: 2.83.1
1818
globalServerURLs: 2.82.2
1919
globals: 2.81.2
2020
inputOutputModels: 2.83.0
@@ -125,6 +125,7 @@ generatedFiles:
125125
- SpeakeasySDK/Models/Shared/ValueChange.cs
126126
- SpeakeasySDK/Models/Shared/SchemaDiff.cs
127127
- SpeakeasySDK/Models/Shared/AccessDetails.cs
128+
- SpeakeasySDK/Models/Shared/AccountType.cs
128129
- SpeakeasySDK/Models/Shared/ApiKeyDetails.cs
129130
- SpeakeasySDK/Models/Shared/UnboundedRequest.cs
130131
- SpeakeasySDK/Models/Shared/BoundedRequest.cs
@@ -219,6 +220,7 @@ generatedFiles:
219220
- docs/Models/Shared/ValueChange.md
220221
- docs/Models/Shared/SchemaDiff.md
221222
- docs/Models/Shared/AccessDetails.md
223+
- docs/Models/Shared/AccountType.md
222224
- docs/Models/Shared/ApiKeyDetails.md
223225
- docs/Models/Shared/UnboundedRequest.md
224226
- docs/Models/Shared/BoundedRequest.md

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ This SDK supports the following security scheme globally:
128128

129129
| Name | Type | Scheme |
130130
| -------- | -------- | -------- |
131-
| `apiKey` | apiKey | API key |
131+
| `APIKey` | apiKey | API key |
132132

133133
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. For example:
134134
```csharp

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,4 +448,14 @@ Based on:
448448
### Generated
449449
- [csharp v5.0.2] .
450450
### Releases
451-
- [NuGet v5.0.2] https://www.nuget.org/packages/SpeakeasySDK/5.0.2 - .
451+
- [NuGet v5.0.2] https://www.nuget.org/packages/SpeakeasySDK/5.0.2 - .
452+
453+
## 2024-02-17 00:03:26
454+
### Changes
455+
Based on:
456+
- OpenAPI Doc 0.4.0 https://docs.speakeasyapi.dev/openapi.yaml
457+
- Speakeasy CLI 1.183.2 (2.262.2) https://github.com/speakeasy-api/speakeasy
458+
### Generated
459+
- [csharp v5.0.3] .
460+
### Releases
461+
- [NuGet v5.0.3] https://www.nuget.org/packages/SpeakeasySDK/5.0.3 - .

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 = "5.0.2";
100-
private const string _sdkGenVersion = "2.258.0";
99+
private const string _sdkVersion = "5.0.3";
100+
private const string _sdkGenVersion = "2.262.2";
101101
private const string _openapiDocVersion = "0.4.0";
102-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.2 2.258.0 0.4.0 SpeakeasySDK";
102+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.3 2.262.2 0.4.0 SpeakeasySDK";
103103
private string _serverUrl = "";
104104
private ISpeakeasyHttpClient _defaultClient;
105105
private Func<Security>? _securitySource;

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 = "5.0.2";
96-
private const string _sdkGenVersion = "2.258.0";
95+
private const string _sdkVersion = "5.0.3";
96+
private const string _sdkGenVersion = "2.262.2";
9797
private const string _openapiDocVersion = "0.4.0";
98-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.2 2.258.0 0.4.0 SpeakeasySDK";
98+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.3 2.262.2 0.4.0 SpeakeasySDK";
9999
private string _serverUrl = "";
100100
private ISpeakeasyHttpClient _defaultClient;
101101
private Func<Security>? _securitySource;

SpeakeasySDK/Auth.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public class Auth: IAuth
4747
{
4848
public SDKConfig SDKConfiguration { get; private set; }
4949
private const string _language = "csharp";
50-
private const string _sdkVersion = "5.0.2";
51-
private const string _sdkGenVersion = "2.258.0";
50+
private const string _sdkVersion = "5.0.3";
51+
private const string _sdkGenVersion = "2.262.2";
5252
private const string _openapiDocVersion = "0.4.0";
53-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.2 2.258.0 0.4.0 SpeakeasySDK";
53+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.3 2.262.2 0.4.0 SpeakeasySDK";
5454
private string _serverUrl = "";
5555
private ISpeakeasyHttpClient _defaultClient;
5656
private Func<Security>? _securitySource;

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 = "5.0.2";
58-
private const string _sdkGenVersion = "2.258.0";
57+
private const string _sdkVersion = "5.0.3";
58+
private const string _sdkGenVersion = "2.262.2";
5959
private const string _openapiDocVersion = "0.4.0";
60-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.2 2.258.0 0.4.0 SpeakeasySDK";
60+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.3 2.262.2 0.4.0 SpeakeasySDK";
6161
private string _serverUrl = "";
6262
private ISpeakeasyHttpClient _defaultClient;
6363
private Func<Security>? _securitySource;

SpeakeasySDK/Events.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public class Events: IEvents
4242
{
4343
public SDKConfig SDKConfiguration { get; private set; }
4444
private const string _language = "csharp";
45-
private const string _sdkVersion = "5.0.2";
46-
private const string _sdkGenVersion = "2.258.0";
45+
private const string _sdkVersion = "5.0.3";
46+
private const string _sdkGenVersion = "2.262.2";
4747
private const string _openapiDocVersion = "0.4.0";
48-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.2 2.258.0 0.4.0 SpeakeasySDK";
48+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.3 2.262.2 0.4.0 SpeakeasySDK";
4949
private string _serverUrl = "";
5050
private ISpeakeasyHttpClient _defaultClient;
5151
private Func<Security>? _securitySource;

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 = "5.0.2";
53-
private const string _sdkGenVersion = "2.258.0";
52+
private const string _sdkVersion = "5.0.3";
53+
private const string _sdkGenVersion = "2.262.2";
5454
private const string _openapiDocVersion = "0.4.0";
55-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.2 2.258.0 0.4.0 SpeakeasySDK";
55+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.3 2.262.2 0.4.0 SpeakeasySDK";
5656
private string _serverUrl = "";
5757
private ISpeakeasyHttpClient _defaultClient;
5858
private Func<Security>? _securitySource;
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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.Shared
12+
{
13+
using Newtonsoft.Json;
14+
using System;
15+
16+
public enum AccountType
17+
{
18+
[JsonProperty("free")]
19+
Free,
20+
[JsonProperty("scale-up")]
21+
ScaleUp,
22+
[JsonProperty("enterprise")]
23+
Enterprise,
24+
}
25+
26+
public static class AccountTypeExtension
27+
{
28+
public static string Value(this AccountType value)
29+
{
30+
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
31+
}
32+
33+
public static AccountType ToEnum(this string value)
34+
{
35+
foreach(var field in typeof(AccountType).GetFields())
36+
{
37+
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
38+
if (attributes.Length == 0)
39+
{
40+
continue;
41+
}
42+
43+
var attribute = attributes[0] as JsonPropertyAttribute;
44+
if (attribute != null && attribute.PropertyName == value)
45+
{
46+
var enumVal = field.GetValue(null);
47+
48+
if (enumVal is AccountType)
49+
{
50+
return (AccountType)enumVal;
51+
}
52+
}
53+
}
54+
55+
throw new Exception($"Unknown value {value} for enum AccountType");
56+
}
57+
}
58+
59+
}

SpeakeasySDK/Models/Shared/ApiKeyDetails.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ namespace SpeakeasySDK.Models.Shared
1515
public class ApiKeyDetails
1616
{
1717

18+
[JsonProperty("account_type")]
19+
public AccountType AccountType { get; set; } = default!;
20+
1821
[JsonProperty("generation_access_unlimited")]
1922
public bool? GenerationAccessUnlimited { get; set; }
2023

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 = "5.0.2";
63-
private const string _sdkGenVersion = "2.258.0";
62+
private const string _sdkVersion = "5.0.3";
63+
private const string _sdkGenVersion = "2.262.2";
6464
private const string _openapiDocVersion = "0.4.0";
65-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.2 2.258.0 0.4.0 SpeakeasySDK";
65+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.3 2.262.2 0.4.0 SpeakeasySDK";
6666
private string _serverUrl = "";
6767
private ISpeakeasyHttpClient _defaultClient;
6868
private Func<Security>? _securitySource;

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 = "5.0.2";
98-
private const string _sdkGenVersion = "2.258.0";
97+
private const string _sdkVersion = "5.0.3";
98+
private const string _sdkGenVersion = "2.262.2";
9999
private const string _openapiDocVersion = "0.4.0";
100-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.2 2.258.0 0.4.0 SpeakeasySDK";
100+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.3 2.262.2 0.4.0 SpeakeasySDK";
101101
private string _serverUrl = "";
102102
private ISpeakeasyHttpClient _defaultClient;
103103
private Func<Security>? _securitySource;

SpeakeasySDK/Speakeasy.cs

Lines changed: 7 additions & 3 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 = "5.0.2";
111-
private const string _sdkGenVersion = "2.258.0";
110+
private const string _sdkVersion = "5.0.3";
111+
private const string _sdkGenVersion = "2.262.2";
112112
private const string _openapiDocVersion = "0.4.0";
113-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.2 2.258.0 0.4.0 SpeakeasySDK";
113+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.3 2.262.2 0.4.0 SpeakeasySDK";
114114
private string _serverUrl = "";
115115
private ISpeakeasyHttpClient _defaultClient;
116116
private Func<Security>? _securitySource;
@@ -145,6 +145,10 @@ public Speakeasy(Security? security = null, Func<Security>? securitySource = nul
145145
{
146146
_securitySource = () => security;
147147
}
148+
else
149+
{
150+
throw new Exception("security and securitySource cannot both be null");
151+
}
148152

149153
SDKConfiguration = new SDKConfig()
150154
{

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

docs/Models/Shared/AccountType.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# AccountType
2+
3+
4+
## Values
5+
6+
| Name | Value |
7+
| ------------ | ------------ |
8+
| `Free` | free |
9+
| `ScaleUp` | scale-up |
10+
| `Enterprise` | enterprise |

docs/Models/Shared/ApiKeyDetails.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| --------------------------- | --------------------------- | --------------------------- | --------------------------- |
8-
| `GenerationAccessUnlimited` | *bool* | :heavy_minus_sign: | N/A |
9-
| `WorkspaceId` | *string* | :heavy_check_mark: | N/A |
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- |
8+
| `AccountType` | [AccountType](../../Models/Shared/AccountType.md) | :heavy_check_mark: | N/A |
9+
| `GenerationAccessUnlimited` | *bool* | :heavy_minus_sign: | N/A |
10+
| `WorkspaceId` | *string* | :heavy_check_mark: | N/A |

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ generation:
88
parameterOrderingFeb2024: false
99
requestResponseComponentNamesFeb2024: false
1010
csharp:
11-
version: 5.0.2
11+
version: 5.0.3
1212
author: Speakeasy
1313
dotnetVersion: net5.0
1414
flattenGlobalSecurity: false

0 commit comments

Comments
 (0)