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 @@ -100,16 +100,16 @@ public sealed partial class AdminApiKey
/// The redacted value of the API key<br/>
/// Example: sk-admin...def
/// </param>
/// <param name="value">
/// The value of the API key. Only shown on create.<br/>
/// Example: sk-admin-1234abcd
/// </param>
/// <param name="createdAt">
/// The Unix timestamp (in seconds) of when the API key was created<br/>
/// Example: 1711471533
/// </param>
/// <param name="lastUsedAt"></param>
/// <param name="owner"></param>
/// <param name="value">
/// The value of the API key. Only shown on create.<br/>
/// Example: sk-admin-1234abcd
/// </param>
/// <param name="lastUsedAt"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -127,10 +127,10 @@ public AdminApiKey(
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.RedactedValue = redactedValue ?? throw new global::System.ArgumentNullException(nameof(redactedValue));
this.CreatedAt = createdAt;
this.Owner = owner ?? throw new global::System.ArgumentNullException(nameof(owner));
this.Value = value;
this.CreatedAt = createdAt;
this.LastUsedAt = lastUsedAt;
this.Owner = owner ?? throw new global::System.ArgumentNullException(nameof(owner));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ public sealed partial class ApplyPatchCreateFileOperation
/// <summary>
/// Initializes a new instance of the <see cref="ApplyPatchCreateFileOperation" /> class.
/// </summary>
/// <param name="type">
/// Create a new file with the provided diff.<br/>
/// Default Value: create_file
/// </param>
/// <param name="path">
/// Path of the file to create.
/// </param>
/// <param name="diff">
/// Diff to apply.
/// </param>
/// <param name="type">
/// Create a new file with the provided diff.<br/>
/// Default Value: create_file
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -58,9 +58,9 @@ public ApplyPatchCreateFileOperation(
string diff,
global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType type = global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType.CreateFile)
{
this.Type = type;
this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path));
this.Diff = diff ?? throw new global::System.ArgumentNullException(nameof(diff));
this.Type = type;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ public sealed partial class ApplyPatchCreateFileOperationParam
/// <summary>
/// Initializes a new instance of the <see cref="ApplyPatchCreateFileOperationParam" /> class.
/// </summary>
/// <param name="type">
/// The operation type. Always `create_file`.<br/>
/// Default Value: create_file
/// </param>
/// <param name="path">
/// Path of the file to create relative to the workspace root.
/// </param>
/// <param name="diff">
/// Unified diff content to apply when creating the file.
/// </param>
/// <param name="type">
/// The operation type. Always `create_file`.<br/>
/// Default Value: create_file
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -58,9 +58,9 @@ public ApplyPatchCreateFileOperationParam(
string diff,
global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType type = global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType.CreateFile)
{
this.Type = type;
this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path));
this.Diff = diff ?? throw new global::System.ArgumentNullException(nameof(diff));
this.Type = type;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ public sealed partial class ApplyPatchDeleteFileOperation
/// <summary>
/// Initializes a new instance of the <see cref="ApplyPatchDeleteFileOperation" /> class.
/// </summary>
/// <param name="path">
/// Path of the file to delete.
/// </param>
/// <param name="type">
/// Delete the specified file.<br/>
/// Default Value: delete_file
/// </param>
/// <param name="path">
/// Path of the file to delete.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ApplyPatchDeleteFileOperation(
string path,
global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationType type = global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationType.DeleteFile)
{
this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path));
this.Type = type;
this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ public sealed partial class ApplyPatchDeleteFileOperationParam
/// <summary>
/// Initializes a new instance of the <see cref="ApplyPatchDeleteFileOperationParam" /> class.
/// </summary>
/// <param name="path">
/// Path of the file to delete relative to the workspace root.
/// </param>
/// <param name="type">
/// The operation type. Always `delete_file`.<br/>
/// Default Value: delete_file
/// </param>
/// <param name="path">
/// Path of the file to delete relative to the workspace root.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ApplyPatchDeleteFileOperationParam(
string path,
global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType type = global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType.DeleteFile)
{
this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path));
this.Type = type;
this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ public sealed partial class ApplyPatchToolCall
/// <summary>
/// Initializes a new instance of the <see cref="ApplyPatchToolCall" /> class.
/// </summary>
/// <param name="type">
/// The type of the item. Always `apply_patch_call`.<br/>
/// Default Value: apply_patch_call
/// </param>
/// <param name="id">
/// The unique ID of the apply patch tool call. Populated when this item is returned via API.
/// </param>
Expand All @@ -81,6 +77,10 @@ public sealed partial class ApplyPatchToolCall
/// <param name="createdBy">
/// The ID of the entity that created this tool call.
/// </param>
/// <param name="type">
/// The type of the item. Always `apply_patch_call`.<br/>
/// Default Value: apply_patch_call
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -92,11 +92,11 @@ public ApplyPatchToolCall(
string? createdBy,
global::tryAGI.OpenAI.ApplyPatchToolCallType type = global::tryAGI.OpenAI.ApplyPatchToolCallType.ApplyPatchCall)
{
this.Type = type;
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId));
this.Status = status;
this.Operation = operation;
this.Type = type;
this.CreatedBy = createdBy;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ public sealed partial class ApplyPatchToolCallItemParam
/// <summary>
/// Initializes a new instance of the <see cref="ApplyPatchToolCallItemParam" /> class.
/// </summary>
/// <param name="type">
/// The type of the item. Always `apply_patch_call`.<br/>
/// Default Value: apply_patch_call
/// </param>
/// <param name="id"></param>
/// <param name="callId">
/// The unique ID of the apply patch tool call generated by the model.
/// </param>
Expand All @@ -69,6 +64,11 @@ public sealed partial class ApplyPatchToolCallItemParam
/// <param name="operation">
/// The specific create, delete, or update instruction for the apply_patch tool call.
/// </param>
/// <param name="id"></param>
/// <param name="type">
/// The type of the item. Always `apply_patch_call`.<br/>
/// Default Value: apply_patch_call
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -79,11 +79,11 @@ public ApplyPatchToolCallItemParam(
string? id,
global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType type = global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType.ApplyPatchCall)
{
this.Type = type;
this.Id = id;
this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId));
this.Status = status;
this.Operation = operation;
this.Type = type;
this.Id = id;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ public sealed partial class ApplyPatchToolCallOutput
/// <summary>
/// Initializes a new instance of the <see cref="ApplyPatchToolCallOutput" /> class.
/// </summary>
/// <param name="type">
/// The type of the item. Always `apply_patch_call_output`.<br/>
/// Default Value: apply_patch_call_output
/// </param>
/// <param name="id">
/// The unique ID of the apply patch tool call output. Populated when this item is returned via API.
/// </param>
Expand All @@ -77,6 +73,10 @@ public sealed partial class ApplyPatchToolCallOutput
/// <param name="createdBy">
/// The ID of the entity that created this tool call output.
/// </param>
/// <param name="type">
/// The type of the item. Always `apply_patch_call_output`.<br/>
/// Default Value: apply_patch_call_output
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -88,10 +88,10 @@ public ApplyPatchToolCallOutput(
string? createdBy,
global::tryAGI.OpenAI.ApplyPatchToolCallOutputType type = global::tryAGI.OpenAI.ApplyPatchToolCallOutputType.ApplyPatchCallOutput)
{
this.Type = type;
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId));
this.Status = status;
this.Type = type;
this.Output = output;
this.CreatedBy = createdBy;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@ public sealed partial class ApplyPatchToolCallOutputItemParam
/// <summary>
/// Initializes a new instance of the <see cref="ApplyPatchToolCallOutputItemParam" /> class.
/// </summary>
/// <param name="type">
/// The type of the item. Always `apply_patch_call_output`.<br/>
/// Default Value: apply_patch_call_output
/// </param>
/// <param name="id"></param>
/// <param name="callId">
/// The unique ID of the apply patch tool call generated by the model.
/// </param>
/// <param name="status">
/// The status of the apply patch tool call output. One of `completed` or `failed`.
/// </param>
/// <param name="id"></param>
/// <param name="output"></param>
/// <param name="type">
/// The type of the item. Always `apply_patch_call_output`.<br/>
/// Default Value: apply_patch_call_output
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -75,10 +75,10 @@ public ApplyPatchToolCallOutputItemParam(
string? output,
global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType type = global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType.ApplyPatchCallOutput)
{
this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId));
this.Status = status;
this.Type = type;
this.Id = id;
this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId));
this.Status = status;
this.Output = output;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ public sealed partial class ApplyPatchUpdateFileOperation
/// <summary>
/// Initializes a new instance of the <see cref="ApplyPatchUpdateFileOperation" /> class.
/// </summary>
/// <param name="type">
/// Update an existing file with the provided diff.<br/>
/// Default Value: update_file
/// </param>
/// <param name="path">
/// Path of the file to update.
/// </param>
/// <param name="diff">
/// Diff to apply.
/// </param>
/// <param name="type">
/// Update an existing file with the provided diff.<br/>
/// Default Value: update_file
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -58,9 +58,9 @@ public ApplyPatchUpdateFileOperation(
string diff,
global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationType type = global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationType.UpdateFile)
{
this.Type = type;
this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path));
this.Diff = diff ?? throw new global::System.ArgumentNullException(nameof(diff));
this.Type = type;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ public sealed partial class ApplyPatchUpdateFileOperationParam
/// <summary>
/// Initializes a new instance of the <see cref="ApplyPatchUpdateFileOperationParam" /> class.
/// </summary>
/// <param name="type">
/// The operation type. Always `update_file`.<br/>
/// Default Value: update_file
/// </param>
/// <param name="path">
/// Path of the file to update relative to the workspace root.
/// </param>
/// <param name="diff">
/// Unified diff content to apply to the existing file.
/// </param>
/// <param name="type">
/// The operation type. Always `update_file`.<br/>
/// Default Value: update_file
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -58,9 +58,9 @@ public ApplyPatchUpdateFileOperationParam(
string diff,
global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType type = global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType.UpdateFile)
{
this.Type = type;
this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path));
this.Diff = diff ?? throw new global::System.ArgumentNullException(nameof(diff));
this.Type = type;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ public sealed partial class ApproximateLocation
/// <summary>
/// Initializes a new instance of the <see cref="ApproximateLocation" /> class.
/// </summary>
/// <param name="type">
/// The type of location approximation. Always `approximate`.<br/>
/// Default Value: approximate
/// </param>
/// <param name="country"></param>
/// <param name="region"></param>
/// <param name="city"></param>
/// <param name="timezone"></param>
/// <param name="type">
/// The type of location approximation. Always `approximate`.<br/>
/// Default Value: approximate
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand Down
Loading
Loading