Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -702,9 +702,9 @@ partial void ProcessDeploymentsCreateResponseContent(
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::V0.DeploymentDetail> DeploymentsCreateAsync(
string projectId,
string chatId,
string versionId,
string? projectId = default,
global::V0.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down
10 changes: 5 additions & 5 deletions src/libs/V0/Generated/V0.DeploymentsClient.DeploymentsFind.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ public partial class DeploymentsClient
};
partial void PrepareDeploymentsFindArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
ref string? projectId,
ref string chatId,
ref string versionId);
partial void PrepareDeploymentsFindRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string projectId,
string? projectId,
string chatId,
string versionId);
partial void ProcessDeploymentsFindResponse(
Expand Down Expand Up @@ -62,9 +62,9 @@ partial void ProcessDeploymentsFindResponseContent(
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::V0.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::V0.DeploymentsFindResponse> DeploymentsFindAsync(
string projectId,
string chatId,
string versionId,
string? projectId = default,
global::V0.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -102,7 +102,7 @@ partial void ProcessDeploymentsFindResponseContent(
path: "/deployments",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddRequiredParameter("projectId", projectId)
.AddOptionalParameter("projectId", projectId)
.AddRequiredParameter("chatId", chatId)
.AddRequiredParameter("versionId", versionId)
;
Expand Down Expand Up @@ -146,7 +146,7 @@ partial void ProcessDeploymentsFindResponseContent(
PrepareDeploymentsFindRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
projectId: projectId!,
projectId: projectId,
chatId: chatId!,
versionId: versionId!);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public partial interface IDeploymentsClient
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::V0.DeploymentDetail> DeploymentsCreateAsync(
string projectId,
string chatId,
string versionId,
string? projectId = default,
global::V0.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public partial interface IDeploymentsClient
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::V0.ApiException"></exception>
global::System.Threading.Tasks.Task<global::V0.DeploymentsFindResponse> DeploymentsFindAsync(
string projectId,
string chatId,
string versionId,
string? projectId = default,
global::V0.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace V0
public sealed partial class ChatsCreateRequestAttachment
{
/// <summary>
///
/// The URL or data URI of the file or asset to include with the message.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("url")]
[global::System.Text.Json.Serialization.JsonRequired]
Expand All @@ -24,7 +24,9 @@ public sealed partial class ChatsCreateRequestAttachment
/// <summary>
/// Initializes a new instance of the <see cref="ChatsCreateRequestAttachment" /> class.
/// </summary>
/// <param name="url"></param>
/// <param name="url">
/// The URL or data URI of the file or asset to include with the message.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace V0
public sealed partial class ChatsSendMessageRequestAttachment
{
/// <summary>
///
/// The URL or data URI of the file or asset to include with the message.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("url")]
[global::System.Text.Json.Serialization.JsonRequired]
Expand All @@ -24,7 +24,9 @@ public sealed partial class ChatsSendMessageRequestAttachment
/// <summary>
/// Initializes a new instance of the <see cref="ChatsSendMessageRequestAttachment" /> class.
/// </summary>
/// <param name="url"></param>
/// <param name="url">
/// The URL or data URI of the file or asset to include with the message.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand Down
13 changes: 6 additions & 7 deletions src/libs/V0/Generated/V0.Models.DeploymentDetail.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public sealed partial class DeploymentDetail
/// The ID of the project that this deployment is scoped to.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("projectId")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string ProjectId { get; set; }
public string? ProjectId { get; set; }

/// <summary>
/// The ID of the version that this deployment is scoped to.
Expand Down Expand Up @@ -82,9 +81,6 @@ public sealed partial class DeploymentDetail
/// <param name="chatId">
/// The ID of the chat that this deployment is scoped to.
/// </param>
/// <param name="projectId">
/// The ID of the project that this deployment is scoped to.
/// </param>
/// <param name="versionId">
/// The ID of the version that this deployment is scoped to.
/// </param>
Expand All @@ -94,6 +90,9 @@ public sealed partial class DeploymentDetail
/// <param name="webUrl">
/// The web URL where the deployment can be viewed or managed.
/// </param>
/// <param name="projectId">
/// The ID of the project that this deployment is scoped to.
/// </param>
/// <param name="object">
/// Fixed value identifying this object as a deployment.
/// </param>
Expand All @@ -104,17 +103,17 @@ public DeploymentDetail(
string id,
string inspectorUrl,
string chatId,
string projectId,
string versionId,
string apiUrl,
string webUrl,
string? projectId,
string @object = "deployment")
{
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
this.Object = @object;
this.InspectorUrl = inspectorUrl ?? throw new global::System.ArgumentNullException(nameof(inspectorUrl));
this.ChatId = chatId ?? throw new global::System.ArgumentNullException(nameof(chatId));
this.ProjectId = projectId ?? throw new global::System.ArgumentNullException(nameof(projectId));
this.ProjectId = projectId;
this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId));
this.ApiUrl = apiUrl ?? throw new global::System.ArgumentNullException(nameof(apiUrl));
this.WebUrl = webUrl ?? throw new global::System.ArgumentNullException(nameof(webUrl));
Expand Down
13 changes: 6 additions & 7 deletions src/libs/V0/Generated/V0.Models.DeploymentSummary.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public sealed partial class DeploymentSummary
/// The ID of the project that this deployment is scoped to.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("projectId")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string ProjectId { get; set; }
public string? ProjectId { get; set; }

/// <summary>
/// The ID of the version that this deployment is scoped to.
Expand Down Expand Up @@ -82,9 +81,6 @@ public sealed partial class DeploymentSummary
/// <param name="chatId">
/// The ID of the chat that this deployment is scoped to.
/// </param>
/// <param name="projectId">
/// The ID of the project that this deployment is scoped to.
/// </param>
/// <param name="versionId">
/// The ID of the version that this deployment is scoped to.
/// </param>
Expand All @@ -94,6 +90,9 @@ public sealed partial class DeploymentSummary
/// <param name="webUrl">
/// The web URL where the deployment can be viewed or managed.
/// </param>
/// <param name="projectId">
/// The ID of the project that this deployment is scoped to.
/// </param>
/// <param name="object">
/// Fixed value identifying this object as a deployment.
/// </param>
Expand All @@ -104,17 +103,17 @@ public DeploymentSummary(
string id,
string inspectorUrl,
string chatId,
string projectId,
string versionId,
string apiUrl,
string webUrl,
string? projectId,
string @object = "deployment")
{
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
this.Object = @object;
this.InspectorUrl = inspectorUrl ?? throw new global::System.ArgumentNullException(nameof(inspectorUrl));
this.ChatId = chatId ?? throw new global::System.ArgumentNullException(nameof(chatId));
this.ProjectId = projectId ?? throw new global::System.ArgumentNullException(nameof(projectId));
this.ProjectId = projectId;
this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId));
this.ApiUrl = apiUrl ?? throw new global::System.ArgumentNullException(nameof(apiUrl));
this.WebUrl = webUrl ?? throw new global::System.ArgumentNullException(nameof(webUrl));
Expand Down
11 changes: 5 additions & 6 deletions src/libs/V0/Generated/V0.Models.DeploymentsCreateRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public sealed partial class DeploymentsCreateRequest
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("projectId")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string ProjectId { get; set; }
public string? ProjectId { get; set; }

/// <summary>
///
Expand All @@ -38,18 +37,18 @@ public sealed partial class DeploymentsCreateRequest
/// <summary>
/// Initializes a new instance of the <see cref="DeploymentsCreateRequest" /> class.
/// </summary>
/// <param name="projectId"></param>
/// <param name="chatId"></param>
/// <param name="versionId"></param>
/// <param name="projectId"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public DeploymentsCreateRequest(
string projectId,
string chatId,
string versionId)
string versionId,
string? projectId)
{
this.ProjectId = projectId ?? throw new global::System.ArgumentNullException(nameof(projectId));
this.ProjectId = projectId;
this.ChatId = chatId ?? throw new global::System.ArgumentNullException(nameof(chatId));
this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId));
}
Expand Down
13 changes: 6 additions & 7 deletions src/libs/V0/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ paths:
properties:
url:
type: string
description: The URL or data URI of the file or asset to include with the message.
required:
- url
additionalProperties: false
Expand Down Expand Up @@ -1191,6 +1192,7 @@ paths:
properties:
url:
type: string
description: The URL or data URI of the file or asset to include with the message.
required:
- url
additionalProperties: false
Expand Down Expand Up @@ -2445,10 +2447,10 @@ paths:
parameters:
- name: projectId
in: query
required: true
required: false
schema:
type: string
description: The ID of the project to find deployments for
type: string
description: The ID of the project to find deployments for
- name: chatId
in: query
Expand Down Expand Up @@ -2486,7 +2488,6 @@ paths:
versionId:
type: string
required:
- projectId
- chatId
- versionId
additionalProperties: false
Expand Down Expand Up @@ -7191,8 +7192,8 @@ components:
type: string
description: The ID of the chat that this deployment is scoped to.
projectId:
type: string
description: The ID of the project that this deployment is scoped to.
type: string
versionId:
type: string
description: The ID of the version that this deployment is scoped to.
Expand All @@ -7209,7 +7210,6 @@ components:
- object
- inspectorUrl
- chatId
- projectId
- versionId
- apiUrl
- webUrl
Expand All @@ -7231,8 +7231,8 @@ components:
type: string
description: The ID of the chat that this deployment is scoped to.
projectId:
type: string
description: The ID of the project that this deployment is scoped to.
type: string
versionId:
type: string
description: The ID of the version that this deployment is scoped to.
Expand All @@ -7249,7 +7249,6 @@ components:
- object
- inspectorUrl
- chatId
- projectId
- versionId
- apiUrl
- webUrl
Expand Down