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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public sealed partial class AddUploadPartRequest
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("data")]
[global::System.Text.Json.Serialization.JsonRequired]
public byte[] Data { get; set; } = default!;
public required byte[] Data { get; set; }

/// <summary>
/// The chunk of bytes for this Part.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("dataname")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Dataname { get; set; } = default!;
public required string Dataname { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed partial class AdminApiKey
/// <example>organization.admin_api_key</example>
[global::System.Text.Json.Serialization.JsonPropertyName("object")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Object { get; set; } = default!;
public required string Object { get; set; }

/// <summary>
/// The identifier, which can be referenced in API endpoints<br/>
Expand All @@ -24,7 +24,7 @@ public sealed partial class AdminApiKey
/// <example>key_abc</example>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Id { get; set; } = default!;
public required string Id { get; set; }

/// <summary>
/// The name of the API key<br/>
Expand All @@ -33,7 +33,7 @@ public sealed partial class AdminApiKey
/// <example>Administration Key</example>
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Name { get; set; } = default!;
public required string Name { get; set; }

/// <summary>
/// The redacted value of the API key<br/>
Expand All @@ -42,7 +42,7 @@ public sealed partial class AdminApiKey
/// <example>sk-admin...def</example>
[global::System.Text.Json.Serialization.JsonPropertyName("redacted_value")]
[global::System.Text.Json.Serialization.JsonRequired]
public string RedactedValue { get; set; } = default!;
public required string RedactedValue { get; set; }

/// <summary>
/// The value of the API key. Only shown on create.<br/>
Expand All @@ -60,7 +60,7 @@ public sealed partial class AdminApiKey
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.DateTimeOffset CreatedAt { get; set; } = default!;
public required global::System.DateTimeOffset CreatedAt { get; set; }

/// <summary>
///
Expand All @@ -73,7 +73,7 @@ public sealed partial class AdminApiKey
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("owner")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::tryAGI.OpenAI.AdminApiKeyOwner Owner { get; set; } = default!;
public required global::tryAGI.OpenAI.AdminApiKeyOwner Owner { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public sealed partial class AdminApiKeysCreateRequest
/// <example>New Admin Key</example>
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Name { get; set; } = default!;
public required string Name { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ public sealed partial class ApplyPatchCreateFileOperation
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("path")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Path { get; set; } = default!;
public required string Path { get; set; }

/// <summary>
/// Diff to apply.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("diff")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Diff { get; set; } = default!;
public required string Diff { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ public sealed partial class ApplyPatchCreateFileOperationParam
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("path")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Path { get; set; } = default!;
public required string Path { get; set; }

/// <summary>
/// Unified diff content to apply when creating the file.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("diff")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Diff { get; set; } = default!;
public required string Diff { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public sealed partial class ApplyPatchDeleteFileOperation
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("path")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Path { get; set; } = default!;
public required string Path { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public sealed partial class ApplyPatchDeleteFileOperationParam
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("path")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Path { get; set; } = default!;
public required string Path { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,30 @@ public sealed partial class ApplyPatchToolCall
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Id { get; set; } = default!;
public required string Id { get; set; }

/// <summary>
/// The unique ID of the apply patch tool call generated by the model.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("call_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string CallId { get; set; } = default!;
public required string CallId { get; set; }

/// <summary>
/// The status of the apply patch tool call. One of `in_progress` or `completed`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public global::tryAGI.OpenAI.ApplyPatchCallStatus Status { get; set; } = default!;
public required global::tryAGI.OpenAI.ApplyPatchCallStatus Status { get; set; }

/// <summary>
/// One of the create_file, delete_file, or update_file operations applied via apply_patch.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("operation")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OperationJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public global::tryAGI.OpenAI.Operation Operation { get; set; } = default!;
public required global::tryAGI.OpenAI.Operation Operation { get; set; }

/// <summary>
/// The ID of the entity that created this tool call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ public sealed partial class ApplyPatchToolCallItemParam
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("call_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string CallId { get; set; } = default!;
public required string CallId { get; set; }

/// <summary>
/// The status of the apply patch tool call. One of `in_progress` or `completed`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusParamJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public global::tryAGI.OpenAI.ApplyPatchCallStatusParam Status { get; set; } = default!;
public required global::tryAGI.OpenAI.ApplyPatchCallStatusParam Status { get; set; }

/// <summary>
/// The specific create, delete, or update instruction for the apply_patch tool call.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("operation")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public global::tryAGI.OpenAI.ApplyPatchOperationParam Operation { get; set; } = default!;
public required global::tryAGI.OpenAI.ApplyPatchOperationParam Operation { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@ public sealed partial class ApplyPatchToolCallOutput
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Id { get; set; } = default!;
public required string Id { get; set; }

/// <summary>
/// The unique ID of the apply patch tool call generated by the model.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("call_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string CallId { get; set; } = default!;
public required string CallId { get; set; }

/// <summary>
/// The status of the apply patch tool call output. One of `completed` or `failed`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public global::tryAGI.OpenAI.ApplyPatchCallOutputStatus Status { get; set; } = default!;
public required global::tryAGI.OpenAI.ApplyPatchCallOutputStatus Status { get; set; }

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ public sealed partial class ApplyPatchToolCallOutputItemParam
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("call_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string CallId { get; set; } = default!;
public required string CallId { get; set; }

/// <summary>
/// The status of the apply patch tool call output. One of `completed` or `failed`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusParamJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam Status { get; set; } = default!;
public required global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam Status { get; set; }

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ public sealed partial class ApplyPatchUpdateFileOperation
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("path")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Path { get; set; } = default!;
public required string Path { get; set; }

/// <summary>
/// Diff to apply.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("diff")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Diff { get; set; } = default!;
public required string Diff { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ public sealed partial class ApplyPatchUpdateFileOperationParam
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("path")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Path { get; set; } = default!;
public required string Path { get; set; }

/// <summary>
/// Unified diff content to apply to the existing file.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("diff")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Diff { get; set; } = default!;
public required string Diff { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,35 @@ public sealed partial class AssignedRoleDetails
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Id { get; set; } = default!;
public required string Id { get; set; }

/// <summary>
/// Name of the role.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Name { get; set; } = default!;
public required string Name { get; set; }

/// <summary>
/// Permissions associated with the role.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("permissions")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.Collections.Generic.IList<string> Permissions { get; set; } = default!;
public required global::System.Collections.Generic.IList<string> Permissions { get; set; }

/// <summary>
/// Resource type the role applies to.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("resource_type")]
[global::System.Text.Json.Serialization.JsonRequired]
public string ResourceType { get; set; } = default!;
public required string ResourceType { get; set; }

/// <summary>
/// Whether the role is predefined by OpenAI.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("predefined_role")]
[global::System.Text.Json.Serialization.JsonRequired]
public bool PredefinedRole { get; set; } = default!;
public required bool PredefinedRole { get; set; }

/// <summary>
/// Description of the role.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed partial class AssistantMessageItem
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Id { get; set; } = default!;
public required string Id { get; set; }

/// <summary>
/// Type discriminator that is always `chatkit.thread_item`.<br/>
Expand All @@ -30,14 +30,14 @@ public sealed partial class AssistantMessageItem
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.DateTimeOffset CreatedAt { get; set; } = default!;
public required global::System.DateTimeOffset CreatedAt { get; set; }

/// <summary>
/// Identifier of the parent thread.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("thread_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string ThreadId { get; set; } = default!;
public required string ThreadId { get; set; }

/// <summary>
/// Type discriminator that is always `chatkit.assistant_message`.<br/>
Expand All @@ -53,7 +53,7 @@ public sealed partial class AssistantMessageItem
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("content")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ResponseOutputText> Content { get; set; } = default!;
public required global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ResponseOutputText> Content { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed partial class AssistantObject
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
[global::System.Obsolete("This property marked as deprecated.")]
public string Id { get; set; } = default!;
public required string Id { get; set; }

/// <summary>
/// The object type, which is always `assistant`.
Expand All @@ -34,7 +34,7 @@ public sealed partial class AssistantObject
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
[global::System.Obsolete("This property marked as deprecated.")]
public global::System.DateTimeOffset CreatedAt { get; set; } = default!;
public required global::System.DateTimeOffset CreatedAt { get; set; }

/// <summary>
///
Expand All @@ -56,7 +56,7 @@ public sealed partial class AssistantObject
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonRequired]
[global::System.Obsolete("This property marked as deprecated.")]
public string Model { get; set; } = default!;
public required string Model { get; set; }

/// <summary>
///
Expand All @@ -72,7 +72,7 @@ public sealed partial class AssistantObject
[global::System.Text.Json.Serialization.JsonPropertyName("tools")]
[global::System.Text.Json.Serialization.JsonRequired]
[global::System.Obsolete("This property marked as deprecated.")]
public global::System.Collections.Generic.IList<global::tryAGI.OpenAI.OneOf<global::tryAGI.OpenAI.AssistantToolsCode, global::tryAGI.OpenAI.AssistantToolsFileSearch, global::tryAGI.OpenAI.AssistantToolsFunction>> Tools { get; set; } = default!;
public required global::System.Collections.Generic.IList<global::tryAGI.OpenAI.OneOf<global::tryAGI.OpenAI.AssistantToolsCode, global::tryAGI.OpenAI.AssistantToolsFileSearch, global::tryAGI.OpenAI.AssistantToolsFunction>> Tools { get; set; }

/// <summary>
///
Expand Down
Loading
Loading