Skip to content

Commit 87b3343

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#5)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent 2d9012c commit 87b3343

10 files changed

Lines changed: 39 additions & 39 deletions

src/libs/V0/Generated/V0.DeploymentsClient.DeploymentsCreate.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,9 +702,9 @@ partial void ProcessDeploymentsCreateResponseContent(
702702
/// <param name="cancellationToken">The token to cancel the operation with</param>
703703
/// <exception cref="global::System.InvalidOperationException"></exception>
704704
public async global::System.Threading.Tasks.Task<global::V0.DeploymentDetail> DeploymentsCreateAsync(
705-
string projectId,
706705
string chatId,
707706
string versionId,
707+
string? projectId = default,
708708
global::V0.AutoSDKRequestOptions? requestOptions = default,
709709
global::System.Threading.CancellationToken cancellationToken = default)
710710
{

src/libs/V0/Generated/V0.DeploymentsClient.DeploymentsFind.g.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ public partial class DeploymentsClient
2727
};
2828
partial void PrepareDeploymentsFindArguments(
2929
global::System.Net.Http.HttpClient httpClient,
30-
ref string projectId,
30+
ref string? projectId,
3131
ref string chatId,
3232
ref string versionId);
3333
partial void PrepareDeploymentsFindRequest(
3434
global::System.Net.Http.HttpClient httpClient,
3535
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
36-
string projectId,
36+
string? projectId,
3737
string chatId,
3838
string versionId);
3939
partial void ProcessDeploymentsFindResponse(
@@ -62,9 +62,9 @@ partial void ProcessDeploymentsFindResponseContent(
6262
/// <param name="cancellationToken">The token to cancel the operation with</param>
6363
/// <exception cref="global::V0.ApiException"></exception>
6464
public async global::System.Threading.Tasks.Task<global::V0.DeploymentsFindResponse> DeploymentsFindAsync(
65-
string projectId,
6665
string chatId,
6766
string versionId,
67+
string? projectId = default,
6868
global::V0.AutoSDKRequestOptions? requestOptions = default,
6969
global::System.Threading.CancellationToken cancellationToken = default)
7070
{
@@ -102,7 +102,7 @@ partial void ProcessDeploymentsFindResponseContent(
102102
path: "/deployments",
103103
baseUri: HttpClient.BaseAddress);
104104
__pathBuilder
105-
.AddRequiredParameter("projectId", projectId)
105+
.AddOptionalParameter("projectId", projectId)
106106
.AddRequiredParameter("chatId", chatId)
107107
.AddRequiredParameter("versionId", versionId)
108108
;
@@ -146,7 +146,7 @@ partial void ProcessDeploymentsFindResponseContent(
146146
PrepareDeploymentsFindRequest(
147147
httpClient: HttpClient,
148148
httpRequestMessage: __httpRequest,
149-
projectId: projectId!,
149+
projectId: projectId,
150150
chatId: chatId!,
151151
versionId: versionId!);
152152

src/libs/V0/Generated/V0.IDeploymentsClient.DeploymentsCreate.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ public partial interface IDeploymentsClient
2828
/// <param name="cancellationToken">The token to cancel the operation with</param>
2929
/// <exception cref="global::System.InvalidOperationException"></exception>
3030
global::System.Threading.Tasks.Task<global::V0.DeploymentDetail> DeploymentsCreateAsync(
31-
string projectId,
3231
string chatId,
3332
string versionId,
33+
string? projectId = default,
3434
global::V0.AutoSDKRequestOptions? requestOptions = default,
3535
global::System.Threading.CancellationToken cancellationToken = default);
3636
}

src/libs/V0/Generated/V0.IDeploymentsClient.DeploymentsFind.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public partial interface IDeploymentsClient
2121
/// <param name="cancellationToken">The token to cancel the operation with</param>
2222
/// <exception cref="global::V0.ApiException"></exception>
2323
global::System.Threading.Tasks.Task<global::V0.DeploymentsFindResponse> DeploymentsFindAsync(
24-
string projectId,
2524
string chatId,
2625
string versionId,
26+
string? projectId = default,
2727
global::V0.AutoSDKRequestOptions? requestOptions = default,
2828
global::System.Threading.CancellationToken cancellationToken = default);
2929
}

src/libs/V0/Generated/V0.Models.ChatsCreateRequestAttachment.g.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace V0
99
public sealed partial class ChatsCreateRequestAttachment
1010
{
1111
/// <summary>
12-
///
12+
/// The URL or data URI of the file or asset to include with the message.
1313
/// </summary>
1414
[global::System.Text.Json.Serialization.JsonPropertyName("url")]
1515
[global::System.Text.Json.Serialization.JsonRequired]
@@ -24,7 +24,9 @@ public sealed partial class ChatsCreateRequestAttachment
2424
/// <summary>
2525
/// Initializes a new instance of the <see cref="ChatsCreateRequestAttachment" /> class.
2626
/// </summary>
27-
/// <param name="url"></param>
27+
/// <param name="url">
28+
/// The URL or data URI of the file or asset to include with the message.
29+
/// </param>
2830
#if NET7_0_OR_GREATER
2931
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
3032
#endif

src/libs/V0/Generated/V0.Models.ChatsSendMessageRequestAttachment.g.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace V0
99
public sealed partial class ChatsSendMessageRequestAttachment
1010
{
1111
/// <summary>
12-
///
12+
/// The URL or data URI of the file or asset to include with the message.
1313
/// </summary>
1414
[global::System.Text.Json.Serialization.JsonPropertyName("url")]
1515
[global::System.Text.Json.Serialization.JsonRequired]
@@ -24,7 +24,9 @@ public sealed partial class ChatsSendMessageRequestAttachment
2424
/// <summary>
2525
/// Initializes a new instance of the <see cref="ChatsSendMessageRequestAttachment" /> class.
2626
/// </summary>
27-
/// <param name="url"></param>
27+
/// <param name="url">
28+
/// The URL or data URI of the file or asset to include with the message.
29+
/// </param>
2830
#if NET7_0_OR_GREATER
2931
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
3032
#endif

src/libs/V0/Generated/V0.Models.DeploymentDetail.g.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ public sealed partial class DeploymentDetail
4040
/// The ID of the project that this deployment is scoped to.
4141
/// </summary>
4242
[global::System.Text.Json.Serialization.JsonPropertyName("projectId")]
43-
[global::System.Text.Json.Serialization.JsonRequired]
44-
public required string ProjectId { get; set; }
43+
public string? ProjectId { get; set; }
4544

4645
/// <summary>
4746
/// The ID of the version that this deployment is scoped to.
@@ -82,9 +81,6 @@ public sealed partial class DeploymentDetail
8281
/// <param name="chatId">
8382
/// The ID of the chat that this deployment is scoped to.
8483
/// </param>
85-
/// <param name="projectId">
86-
/// The ID of the project that this deployment is scoped to.
87-
/// </param>
8884
/// <param name="versionId">
8985
/// The ID of the version that this deployment is scoped to.
9086
/// </param>
@@ -94,6 +90,9 @@ public sealed partial class DeploymentDetail
9490
/// <param name="webUrl">
9591
/// The web URL where the deployment can be viewed or managed.
9692
/// </param>
93+
/// <param name="projectId">
94+
/// The ID of the project that this deployment is scoped to.
95+
/// </param>
9796
/// <param name="object">
9897
/// Fixed value identifying this object as a deployment.
9998
/// </param>
@@ -104,17 +103,17 @@ public DeploymentDetail(
104103
string id,
105104
string inspectorUrl,
106105
string chatId,
107-
string projectId,
108106
string versionId,
109107
string apiUrl,
110108
string webUrl,
109+
string? projectId,
111110
string @object = "deployment")
112111
{
113112
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
114113
this.Object = @object;
115114
this.InspectorUrl = inspectorUrl ?? throw new global::System.ArgumentNullException(nameof(inspectorUrl));
116115
this.ChatId = chatId ?? throw new global::System.ArgumentNullException(nameof(chatId));
117-
this.ProjectId = projectId ?? throw new global::System.ArgumentNullException(nameof(projectId));
116+
this.ProjectId = projectId;
118117
this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId));
119118
this.ApiUrl = apiUrl ?? throw new global::System.ArgumentNullException(nameof(apiUrl));
120119
this.WebUrl = webUrl ?? throw new global::System.ArgumentNullException(nameof(webUrl));

src/libs/V0/Generated/V0.Models.DeploymentSummary.g.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ public sealed partial class DeploymentSummary
4040
/// The ID of the project that this deployment is scoped to.
4141
/// </summary>
4242
[global::System.Text.Json.Serialization.JsonPropertyName("projectId")]
43-
[global::System.Text.Json.Serialization.JsonRequired]
44-
public required string ProjectId { get; set; }
43+
public string? ProjectId { get; set; }
4544

4645
/// <summary>
4746
/// The ID of the version that this deployment is scoped to.
@@ -82,9 +81,6 @@ public sealed partial class DeploymentSummary
8281
/// <param name="chatId">
8382
/// The ID of the chat that this deployment is scoped to.
8483
/// </param>
85-
/// <param name="projectId">
86-
/// The ID of the project that this deployment is scoped to.
87-
/// </param>
8884
/// <param name="versionId">
8985
/// The ID of the version that this deployment is scoped to.
9086
/// </param>
@@ -94,6 +90,9 @@ public sealed partial class DeploymentSummary
9490
/// <param name="webUrl">
9591
/// The web URL where the deployment can be viewed or managed.
9692
/// </param>
93+
/// <param name="projectId">
94+
/// The ID of the project that this deployment is scoped to.
95+
/// </param>
9796
/// <param name="object">
9897
/// Fixed value identifying this object as a deployment.
9998
/// </param>
@@ -104,17 +103,17 @@ public DeploymentSummary(
104103
string id,
105104
string inspectorUrl,
106105
string chatId,
107-
string projectId,
108106
string versionId,
109107
string apiUrl,
110108
string webUrl,
109+
string? projectId,
111110
string @object = "deployment")
112111
{
113112
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
114113
this.Object = @object;
115114
this.InspectorUrl = inspectorUrl ?? throw new global::System.ArgumentNullException(nameof(inspectorUrl));
116115
this.ChatId = chatId ?? throw new global::System.ArgumentNullException(nameof(chatId));
117-
this.ProjectId = projectId ?? throw new global::System.ArgumentNullException(nameof(projectId));
116+
this.ProjectId = projectId;
118117
this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId));
119118
this.ApiUrl = apiUrl ?? throw new global::System.ArgumentNullException(nameof(apiUrl));
120119
this.WebUrl = webUrl ?? throw new global::System.ArgumentNullException(nameof(webUrl));

src/libs/V0/Generated/V0.Models.DeploymentsCreateRequest.g.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ public sealed partial class DeploymentsCreateRequest
1212
///
1313
/// </summary>
1414
[global::System.Text.Json.Serialization.JsonPropertyName("projectId")]
15-
[global::System.Text.Json.Serialization.JsonRequired]
16-
public required string ProjectId { get; set; }
15+
public string? ProjectId { get; set; }
1716

1817
/// <summary>
1918
///
@@ -38,18 +37,18 @@ public sealed partial class DeploymentsCreateRequest
3837
/// <summary>
3938
/// Initializes a new instance of the <see cref="DeploymentsCreateRequest" /> class.
4039
/// </summary>
41-
/// <param name="projectId"></param>
4240
/// <param name="chatId"></param>
4341
/// <param name="versionId"></param>
42+
/// <param name="projectId"></param>
4443
#if NET7_0_OR_GREATER
4544
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
4645
#endif
4746
public DeploymentsCreateRequest(
48-
string projectId,
4947
string chatId,
50-
string versionId)
48+
string versionId,
49+
string? projectId)
5150
{
52-
this.ProjectId = projectId ?? throw new global::System.ArgumentNullException(nameof(projectId));
51+
this.ProjectId = projectId;
5352
this.ChatId = chatId ?? throw new global::System.ArgumentNullException(nameof(chatId));
5453
this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId));
5554
}

src/libs/V0/openapi.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ paths:
3838
properties:
3939
url:
4040
type: string
41+
description: The URL or data URI of the file or asset to include with the message.
4142
required:
4243
- url
4344
additionalProperties: false
@@ -1191,6 +1192,7 @@ paths:
11911192
properties:
11921193
url:
11931194
type: string
1195+
description: The URL or data URI of the file or asset to include with the message.
11941196
required:
11951197
- url
11961198
additionalProperties: false
@@ -2445,10 +2447,10 @@ paths:
24452447
parameters:
24462448
- name: projectId
24472449
in: query
2448-
required: true
2450+
required: false
24492451
schema:
2450-
type: string
24512452
description: The ID of the project to find deployments for
2453+
type: string
24522454
description: The ID of the project to find deployments for
24532455
- name: chatId
24542456
in: query
@@ -2486,7 +2488,6 @@ paths:
24862488
versionId:
24872489
type: string
24882490
required:
2489-
- projectId
24902491
- chatId
24912492
- versionId
24922493
additionalProperties: false
@@ -7191,8 +7192,8 @@ components:
71917192
type: string
71927193
description: The ID of the chat that this deployment is scoped to.
71937194
projectId:
7194-
type: string
71957195
description: The ID of the project that this deployment is scoped to.
7196+
type: string
71967197
versionId:
71977198
type: string
71987199
description: The ID of the version that this deployment is scoped to.
@@ -7209,7 +7210,6 @@ components:
72097210
- object
72107211
- inspectorUrl
72117212
- chatId
7212-
- projectId
72137213
- versionId
72147214
- apiUrl
72157215
- webUrl
@@ -7231,8 +7231,8 @@ components:
72317231
type: string
72327232
description: The ID of the chat that this deployment is scoped to.
72337233
projectId:
7234-
type: string
72357234
description: The ID of the project that this deployment is scoped to.
7235+
type: string
72367236
versionId:
72377237
type: string
72387238
description: The ID of the version that this deployment is scoped to.
@@ -7249,7 +7249,6 @@ components:
72497249
- object
72507250
- inspectorUrl
72517251
- chatId
7252-
- projectId
72537252
- versionId
72547253
- apiUrl
72557254
- webUrl

0 commit comments

Comments
 (0)