Skip to content

Commit 42410f7

Browse files
committed
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.207.1
1 parent 1e5df47 commit 42410f7

21 files changed

+345
-22
lines changed

.speakeasy/gen.lock

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 76b4d38c-5441-40d8-8002-c456a3ea1652
33
management:
4-
docChecksum: a2a29dc8a8df536c8b2553db26987fad
4+
docChecksum: bd5703227a0834ce8cffa01539ad4346
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.205.2
7-
generationVersion: 2.279.1
8-
releaseVersion: 0.11.0
9-
configChecksum: c7e1482b1d0492ec328470a6ca1158a4
6+
speakeasyVersion: 1.207.1
7+
generationVersion: 2.280.6
8+
releaseVersion: 0.11.1
9+
configChecksum: fcc79fdbd6611604fe7a36381ec8f363
1010
repoURL: https://github.com/ding-live/ding-csharp.git
1111
repoSubDirectory: .
1212
published: true
@@ -38,6 +38,7 @@ generatedFiles:
3838
- DingSDK.sln
3939
- DingSDK/Models/Requests/CheckResponse.cs
4040
- DingSDK/Models/Requests/CreateAuthenticationResponse.cs
41+
- DingSDK/Models/Requests/FeedbackResponse.cs
4142
- DingSDK/Models/Requests/RetryResponse.cs
4243
- DingSDK/Models/Requests/LookupRequest.cs
4344
- DingSDK/Models/Requests/LookupResponse.cs
@@ -50,6 +51,9 @@ generatedFiles:
5051
- DingSDK/Models/Components/CreateAuthenticationResponse.cs
5152
- DingSDK/Models/Components/DeviceType.cs
5253
- DingSDK/Models/Components/CreateAuthenticationRequest.cs
54+
- DingSDK/Models/Components/FeedbackResponse.cs
55+
- DingSDK/Models/Components/FeedbackRequestStatus.cs
56+
- DingSDK/Models/Components/FeedbackRequest.cs
5357
- DingSDK/Models/Components/RetryAuthenticationResponseStatus.cs
5458
- DingSDK/Models/Components/RetryAuthenticationResponse.cs
5559
- DingSDK/Models/Components/RetryAuthenticationRequest.cs
@@ -58,6 +62,7 @@ generatedFiles:
5862
- DingSDK/Models/Components/Security.cs
5963
- docs/Models/Requests/CheckResponse.md
6064
- docs/Models/Requests/CreateAuthenticationResponse.md
65+
- docs/Models/Requests/FeedbackResponse.md
6166
- docs/Models/Requests/RetryResponse.md
6267
- docs/Models/Requests/LookupRequest.md
6368
- docs/Models/Requests/LookupResponse.md
@@ -70,6 +75,9 @@ generatedFiles:
7075
- docs/Models/Components/CreateAuthenticationResponse.md
7176
- docs/Models/Components/DeviceType.md
7277
- docs/Models/Components/CreateAuthenticationRequest.md
78+
- docs/Models/Components/FeedbackResponse.md
79+
- docs/Models/Components/FeedbackRequestStatus.md
80+
- docs/Models/Components/FeedbackRequest.md
7381
- docs/Models/Components/RetryAuthenticationResponseStatus.md
7482
- docs/Models/Components/RetryAuthenticationResponse.md
7583
- docs/Models/Components/RetryAuthenticationRequest.md

DingSDK/Ding.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ public class Ding: IDing
6565
public SDKConfig SDKConfiguration { get; private set; }
6666

6767
private const string _language = "csharp";
68-
private const string _sdkVersion = "0.11.0";
69-
private const string _sdkGenVersion = "2.279.1";
68+
private const string _sdkVersion = "0.11.1";
69+
private const string _sdkGenVersion = "2.280.6";
7070
private const string _openapiDocVersion = "1.0.0";
71-
private const string _userAgent = "speakeasy-sdk/csharp 0.11.0 2.279.1 1.0.0 DingSDK";
71+
private const string _userAgent = "speakeasy-sdk/csharp 0.11.1 2.280.6 1.0.0 DingSDK";
7272
private string _serverUrl = "";
7373
private int _serverIndex = 0;
7474
private ISpeakeasyHttpClient _defaultClient;

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.11.0</Version>
5+
<Version>0.11.1</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.11.0";
42-
private const string _sdkGenVersion = "2.279.1";
41+
private const string _sdkVersion = "0.11.1";
42+
private const string _sdkGenVersion = "2.280.6";
4343
private const string _openapiDocVersion = "1.0.0";
44-
private const string _userAgent = "speakeasy-sdk/csharp 0.11.0 2.279.1 1.0.0 DingSDK";
44+
private const string _userAgent = "speakeasy-sdk/csharp 0.11.1 2.280.6 1.0.0 DingSDK";
4545
private string _serverUrl = "";
4646
private ISpeakeasyHttpClient _defaultClient;
4747
private Func<Security>? _securitySource;

DingSDK/Models/Components/Code.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ namespace DingSDK.Models.Components
3030
/// * `invalid_os_version` - The provided OS version is invalid.<br/>
3131
/// * `invalid_device_model` - The provided device model is invalid.<br/>
3232
/// * `invalid_device_id` - The provided device ID is invalid.<br/>
33+
/// * `no_associated_auth_found` - The associated authentication was not found.<br/>
34+
/// * `duplicated_feedback_status` - Duplicated feedback status has found.<br/>
3335
/// * `invalid_template_id` - The provided template ID is invalid.<br/>
3436
///
3537
/// </remarks>
@@ -68,6 +70,10 @@ public enum Code
6870
InvalidDeviceModel,
6971
[JsonProperty("invalid_device_id")]
7072
InvalidDeviceId,
73+
[JsonProperty("no_associated_auth_found")]
74+
NoAssociatedAuthFound,
75+
[JsonProperty("duplicated_feedback_status")]
76+
DuplicatedFeedbackStatus,
7177
[JsonProperty("invalid_template_id")]
7278
InvalidTemplateId,
7379
}

DingSDK/Models/Components/ErrorResponse.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public class ErrorResponse
3232
/// * `invalid_os_version` - The provided OS version is invalid.<br/>
3333
/// * `invalid_device_model` - The provided device model is invalid.<br/>
3434
/// * `invalid_device_id` - The provided device ID is invalid.<br/>
35+
/// * `no_associated_auth_found` - The associated authentication was not found.<br/>
36+
/// * `duplicated_feedback_status` - Duplicated feedback status has found.<br/>
3537
/// * `invalid_template_id` - The provided template ID is invalid.<br/>
3638
///
3739
/// </remarks>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 DingSDK.Models.Components
12+
{
13+
using Newtonsoft.Json;
14+
15+
public class FeedbackRequest
16+
{
17+
18+
/// <summary>
19+
/// Your customer UUID, which can be found in the API settings in the dashboard.
20+
/// </summary>
21+
[JsonProperty("customer_uuid")]
22+
public string CustomerUuid { get; set; } = default!;
23+
24+
/// <summary>
25+
/// An E.164 formatted phone number.
26+
/// </summary>
27+
[JsonProperty("phone_number")]
28+
public string PhoneNumber { get; set; } = default!;
29+
30+
/// <summary>
31+
/// The type of the feedback.
32+
/// </summary>
33+
[JsonProperty("status")]
34+
public FeedbackRequestStatus Status { get; set; } = default!;
35+
}
36+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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 DingSDK.Models.Components
12+
{
13+
using Newtonsoft.Json;
14+
using System;
15+
16+
/// <summary>
17+
/// The type of the feedback.
18+
/// </summary>
19+
public enum FeedbackRequestStatus
20+
{
21+
[JsonProperty("onboarded")]
22+
Onboarded,
23+
}
24+
25+
public static class FeedbackRequestStatusExtension
26+
{
27+
public static string Value(this FeedbackRequestStatus value)
28+
{
29+
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
30+
}
31+
32+
public static FeedbackRequestStatus ToEnum(this string value)
33+
{
34+
foreach(var field in typeof(FeedbackRequestStatus).GetFields())
35+
{
36+
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
37+
if (attributes.Length == 0)
38+
{
39+
continue;
40+
}
41+
42+
var attribute = attributes[0] as JsonPropertyAttribute;
43+
if (attribute != null && attribute.PropertyName == value)
44+
{
45+
var enumVal = field.GetValue(null);
46+
47+
if (enumVal is FeedbackRequestStatus)
48+
{
49+
return (FeedbackRequestStatus)enumVal;
50+
}
51+
}
52+
}
53+
54+
throw new Exception($"Unknown value {value} for enum FeedbackRequestStatus");
55+
}
56+
}
57+
58+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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 DingSDK.Models.Components
12+
{
13+
using Newtonsoft.Json;
14+
15+
public class FeedbackResponse
16+
{
17+
18+
/// <summary>
19+
/// The UUID of the feedback.
20+
/// </summary>
21+
[JsonProperty("uuid")]
22+
public string? Uuid { get; set; }
23+
}
24+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 DingSDK.Models.Requests
12+
{
13+
using DingSDK.Models.Components;
14+
using System.Net.Http;
15+
using System;
16+
17+
public class FeedbackResponse
18+
{
19+
20+
/// <summary>
21+
/// HTTP response content type for this operation
22+
/// </summary>
23+
public string? ContentType { get; set; } = default!;
24+
25+
/// <summary>
26+
/// Bad Request
27+
/// </summary>
28+
public ErrorResponse? ErrorResponse { get; set; }
29+
30+
/// <summary>
31+
/// OK
32+
/// </summary>
33+
public Models.Components.FeedbackResponse? FeedbackResponseValue { get; set; }
34+
35+
/// <summary>
36+
/// HTTP response status code for this operation
37+
/// </summary>
38+
public int StatusCode { get; set; } = default!;
39+
40+
/// <summary>
41+
/// Raw HTTP response; suitable for custom response parsing
42+
/// </summary>
43+
public HttpResponseMessage RawResponse { get; set; } = default!;
44+
}
45+
}

0 commit comments

Comments
 (0)