Skip to content

Commit a5b913f

Browse files
committed
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.161.0
1 parent 1348292 commit a5b913f

File tree

11 files changed

+81
-43
lines changed

11 files changed

+81
-43
lines changed

.speakeasy/gen.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ management:
44
docChecksum: 5e4ef027bc51f54368e8b1607b77c098
55
docVersion: 1.0.0
66
speakeasyVersion: internal
7-
generationVersion: 2.237.2
8-
releaseVersion: 0.7.1
9-
configChecksum: a72fe7dd5674374e3de2b364ac25fe95
7+
generationVersion: 2.245.1
8+
releaseVersion: 0.8.0
9+
configChecksum: a3b53d305e76d23b2e279fcd869a504d
1010
repoURL: https://github.com/ding-live/ding-csharp.git
1111
repoSubDirectory: .
1212
published: true
@@ -15,9 +15,9 @@ features:
1515
core: 3.3.1
1616
examples: 2.81.3
1717
flattening: 2.81.1
18-
globalSecurity: 2.81.3
18+
globalSecurity: 2.82.0
1919
globalServerURLs: 2.82.2
20-
serverIDs: 2.82.0
20+
serverIDs: 2.82.1
2121
generatedFiles:
2222
- DingSDK/Otp.cs
2323
- DingSDK/Lookup.cs

DingSDK/Ding.cs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public class Ding: IDing
7272
public SDKConfig SDKConfiguration { get; private set; }
7373

7474
private const string _language = "csharp";
75-
private const string _sdkVersion = "0.7.1";
76-
private const string _sdkGenVersion = "2.237.2";
75+
private const string _sdkVersion = "0.8.0";
76+
private const string _sdkGenVersion = "2.245.1";
7777
private const string _openapiDocVersion = "1.0.0";
78-
private const string _userAgent = "speakeasy-sdk/csharp 0.7.1 2.237.2 1.0.0 DingSDK";
78+
private const string _userAgent = "speakeasy-sdk/csharp 0.8.0 2.245.1 1.0.0 DingSDK";
7979
private string _serverUrl = "";
8080
private ISpeakeasyHttpClient _defaultClient;
8181
private ISpeakeasyHttpClient _securityClient;
@@ -84,21 +84,24 @@ public class Ding: IDing
8484

8585
public Ding(Security? security = null, string? server = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null)
8686
{
87-
if (serverUrl != null) {
88-
if (urlParams != null) {
87+
88+
if (serverUrl != null)
89+
{
90+
if (urlParams != null)
91+
{
8992
serverUrl = Utilities.TemplateUrl(serverUrl, urlParams);
9093
}
9194
_serverUrl = serverUrl;
9295
}
9396

9497
_defaultClient = new SpeakeasyHttpClient(client);
9598
_securityClient = _defaultClient;
96-
99+
97100
if(security != null)
98101
{
99102
_securityClient = SecuritySerializer.Apply(_defaultClient, security);
100103
}
101-
104+
102105
SDKConfiguration = new SDKConfig()
103106
{
104107
serverUrl = _serverUrl
@@ -108,4 +111,4 @@ public Ding(Security? security = null, string? server = null, string? serverUrl
108111
Lookup = new Lookup(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
109112
}
110113
}
111-
}
114+
}

DingSDK/DingSDK.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>DingSDK</PackageId>
5-
<Version>0.7.1</Version>
5+
<Version>0.8.0</Version>
66
<Authors>Ding</Authors>
77
<TargetFramework>net5.0</TargetFramework>
88
<Nullable>enable</Nullable>

DingSDK/Lookup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ public class Lookup: ILookup
3838
{
3939
public SDKConfig SDKConfiguration { get; private set; }
4040
private const string _language = "csharp";
41-
private const string _sdkVersion = "0.7.1";
42-
private const string _sdkGenVersion = "2.237.2";
41+
private const string _sdkVersion = "0.8.0";
42+
private const string _sdkGenVersion = "2.245.1";
4343
private const string _openapiDocVersion = "1.0.0";
44-
private const string _userAgent = "speakeasy-sdk/csharp 0.7.1 2.237.2 1.0.0 DingSDK";
44+
private const string _userAgent = "speakeasy-sdk/csharp 0.8.0 2.245.1 1.0.0 DingSDK";
4545
private string _serverUrl = "";
4646
private ISpeakeasyHttpClient _defaultClient;
4747
private ISpeakeasyHttpClient _securityClient;

DingSDK/Otp.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ public class Otp: IOtp
4848
{
4949
public SDKConfig SDKConfiguration { get; private set; }
5050
private const string _language = "csharp";
51-
private const string _sdkVersion = "0.7.1";
52-
private const string _sdkGenVersion = "2.237.2";
51+
private const string _sdkVersion = "0.8.0";
52+
private const string _sdkGenVersion = "2.245.1";
5353
private const string _openapiDocVersion = "1.0.0";
54-
private const string _userAgent = "speakeasy-sdk/csharp 0.7.1 2.237.2 1.0.0 DingSDK";
54+
private const string _userAgent = "speakeasy-sdk/csharp 0.8.0 2.245.1 1.0.0 DingSDK";
5555
private string _serverUrl = "";
5656
private ISpeakeasyHttpClient _defaultClient;
5757
private ISpeakeasyHttpClient _securityClient;

README.md

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ Send an OTP code to a user's phone number.
2626
using DingSDK;
2727
using DingSDK.Models.Components;
2828

29-
var sdk = new Ding(
30-
security: new Security() {
29+
var sdk = new Ding(security: new Security() {
3130
APIKey = "YOUR_API_KEY",
3231
});
3332

@@ -50,8 +49,7 @@ Check that a code entered by a user is valid.
5049
using DingSDK;
5150
using DingSDK.Models.Components;
5251

53-
var sdk = new Ding(
54-
security: new Security() {
52+
var sdk = new Ding(security: new Security() {
5553
APIKey = "YOUR_API_KEY",
5654
});
5755

@@ -75,8 +73,7 @@ Perform a retry if a user has not received the code.
7573
using DingSDK;
7674
using DingSDK.Models.Components;
7775

78-
var sdk = new Ding(
79-
security: new Security() {
76+
var sdk = new Ding(security: new Security() {
8077
APIKey = "YOUR_API_KEY",
8178
});
8279

@@ -125,6 +122,38 @@ You can override the default server globally by passing a server name to the `se
125122
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:
126123
<!-- End Server Selection [server] -->
127124

125+
<!-- Start Authentication [security] -->
126+
## Authentication
127+
128+
### Per-Client Security Schemes
129+
130+
This SDK supports the following security scheme globally:
131+
132+
| Name | Type | Scheme |
133+
| -------- | -------- | -------- |
134+
| `apiKey` | apiKey | API key |
135+
136+
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. For example:
137+
```csharp
138+
using DingSDK;
139+
using DingSDK.Models.Components;
140+
141+
var sdk = new Ding(security: new Security() {
142+
APIKey = "YOUR_API_KEY",
143+
});
144+
145+
CreateCheckRequest req = new CreateCheckRequest() {
146+
AuthenticationUuid = "e0e7b0e9-739d-424b-922f-1c2cb48ab077",
147+
CheckCode = "123456",
148+
CustomerUuid = "8f1196d5-806e-4b71-9b24-5f96ec052808",
149+
};
150+
151+
var res = await sdk.Otp.CheckAsync(req);
152+
153+
// handle response
154+
```
155+
<!-- End Authentication [security] -->
156+
128157
<!-- Placeholder for Future Speakeasy SDK Sections -->
129158

130159
# Development

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,14 @@ Based on:
140140
### Generated
141141
- [csharp v0.7.1] .
142142
### Releases
143-
- [NuGet v0.7.1] https://www.nuget.org/packages/DingSDK/0.7.1 - .
143+
- [NuGet v0.7.1] https://www.nuget.org/packages/DingSDK/0.7.1 - .
144+
145+
## 2024-02-01 00:17:13
146+
### Changes
147+
Based on:
148+
- OpenAPI Doc 1.0.0
149+
- Speakeasy CLI 1.161.0 (2.245.1) https://github.com/speakeasy-api/speakeasy
150+
### Generated
151+
- [csharp v0.8.0] .
152+
### Releases
153+
- [NuGet v0.8.0] https://www.nuget.org/packages/DingSDK/0.8.0 - .

USAGE.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ Send an OTP code to a user's phone number.
88
using DingSDK;
99
using DingSDK.Models.Components;
1010

11-
var sdk = new Ding(
12-
security: new Security() {
11+
var sdk = new Ding(security: new Security() {
1312
APIKey = "YOUR_API_KEY",
1413
});
1514

@@ -32,8 +31,7 @@ Check that a code entered by a user is valid.
3231
using DingSDK;
3332
using DingSDK.Models.Components;
3433

35-
var sdk = new Ding(
36-
security: new Security() {
34+
var sdk = new Ding(security: new Security() {
3735
APIKey = "YOUR_API_KEY",
3836
});
3937

@@ -57,8 +55,7 @@ Perform a retry if a user has not received the code.
5755
using DingSDK;
5856
using DingSDK.Models.Components;
5957

60-
var sdk = new Ding(
61-
security: new Security() {
58+
var sdk = new Ding(security: new Security() {
6259
APIKey = "YOUR_API_KEY",
6360
});
6461

docs/sdks/lookup/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ using DingSDK;
2020
using DingSDK.Models.Components;
2121
using DingSDK.Models.Requests;
2222

23-
var sdk = new Ding(
24-
security: new Security() {
23+
var sdk = new Ding(security: new Security() {
2524
APIKey = "YOUR_API_KEY",
2625
});
2726

28-
var res = await sdk.Lookup.LookupAsync(CustomerUuid: "6e93aa15-9177-4d09-8395-b69ce50db1c8", PhoneNumber: "string");
27+
var res = await sdk.Lookup.LookupAsync(
28+
customerUuid: "6e93aa15-9177-4d09-8395-b69ce50db1c8",
29+
phoneNumber: "string");
2930

3031
// handle response
3132
```

docs/sdks/otp/README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ Check a code
2121
using DingSDK;
2222
using DingSDK.Models.Components;
2323

24-
var sdk = new Ding(
25-
security: new Security() {
24+
var sdk = new Ding(security: new Security() {
2625
APIKey = "YOUR_API_KEY",
2726
});
2827

@@ -59,8 +58,7 @@ Send a code
5958
using DingSDK;
6059
using DingSDK.Models.Components;
6160

62-
var sdk = new Ding(
63-
security: new Security() {
61+
var sdk = new Ding(security: new Security() {
6462
APIKey = "YOUR_API_KEY",
6563
});
6664

@@ -96,8 +94,7 @@ Perform a retry
9694
using DingSDK;
9795
using DingSDK.Models.Components;
9896

99-
var sdk = new Ding(
100-
security: new Security() {
97+
var sdk = new Ding(security: new Security() {
10198
APIKey = "YOUR_API_KEY",
10299
});
103100

0 commit comments

Comments
 (0)