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 @@ -28,9 +28,8 @@ public sealed partial class AssistantMessageItem
/// Unix timestamp (in seconds) for when the item was created.
/// </summary>
[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 required global::System.DateTimeOffset CreatedAt { get; set; }
public required int CreatedAt { get; set; }

/// <summary>
/// Identifier of the parent thread.
Expand Down Expand Up @@ -89,7 +88,7 @@ public sealed partial class AssistantMessageItem
#endif
public AssistantMessageItem(
string id,
global::System.DateTimeOffset createdAt,
int createdAt,
string threadId,
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ResponseOutputText> content,
global::tryAGI.OpenAI.AssistantMessageItemObject @object = global::tryAGI.OpenAI.AssistantMessageItemObject.ChatkitThreadItem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ public sealed partial class ChatSessionResource
/// Unix timestamp (in seconds) for when the session expires.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("expires_at")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.DateTimeOffset ExpiresAt { get; set; }
public required int ExpiresAt { get; set; }

/// <summary>
/// Ephemeral client secret that authenticates session requests.
Expand Down Expand Up @@ -128,7 +127,7 @@ public sealed partial class ChatSessionResource
#endif
public ChatSessionResource(
string id,
global::System.DateTimeOffset expiresAt,
int expiresAt,
string clientSecret,
global::tryAGI.OpenAI.ChatkitWorkflow workflow,
string user,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ public sealed partial class ClientToolCallItem
/// Unix timestamp (in seconds) for when the item was created.
/// </summary>
[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 required global::System.DateTimeOffset CreatedAt { get; set; }
public required int CreatedAt { get; set; }

/// <summary>
/// Identifier of the parent thread.
Expand Down Expand Up @@ -127,7 +126,7 @@ public sealed partial class ClientToolCallItem
#endif
public ClientToolCallItem(
string id,
global::System.DateTimeOffset createdAt,
int createdAt,
string threadId,
global::tryAGI.OpenAI.ClientToolCallStatus status,
string callId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public sealed partial class ExpiresAfterParam
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("seconds")]
[global::System.Text.Json.Serialization.JsonRequired]
public required int Seconds { get; set; }
public required long Seconds { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand All @@ -44,7 +44,7 @@ public sealed partial class ExpiresAfterParam
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ExpiresAfterParam(
int seconds,
long seconds,
global::tryAGI.OpenAI.ExpiresAfterParamAnchor anchor = global::tryAGI.OpenAI.ExpiresAfterParamAnchor.CreatedAt)
{
this.Anchor = anchor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ public sealed partial class TaskGroupItem
/// Unix timestamp (in seconds) for when the item was created.
/// </summary>
[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 required global::System.DateTimeOffset CreatedAt { get; set; }
public required int CreatedAt { get; set; }

/// <summary>
/// Identifier of the parent thread.
Expand Down Expand Up @@ -89,7 +88,7 @@ public sealed partial class TaskGroupItem
#endif
public TaskGroupItem(
string id,
global::System.DateTimeOffset createdAt,
int createdAt,
string threadId,
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.TaskGroupTask> tasks,
global::tryAGI.OpenAI.TaskGroupItemObject @object = global::tryAGI.OpenAI.TaskGroupItemObject.ChatkitThreadItem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ public sealed partial class TaskItem
/// Unix timestamp (in seconds) for when the item was created.
/// </summary>
[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 required global::System.DateTimeOffset CreatedAt { get; set; }
public required int CreatedAt { get; set; }

/// <summary>
/// Identifier of the parent thread.
Expand Down Expand Up @@ -104,7 +103,7 @@ public sealed partial class TaskItem
#endif
public TaskItem(
string id,
global::System.DateTimeOffset createdAt,
int createdAt,
string threadId,
global::tryAGI.OpenAI.TaskType taskType,
string? heading,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ public sealed partial class ThreadResource
/// Unix timestamp (in seconds) for when the thread was created.
/// </summary>
[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 required global::System.DateTimeOffset CreatedAt { get; set; }
public required int CreatedAt { get; set; }

/// <summary>
///
Expand Down Expand Up @@ -85,7 +84,7 @@ public sealed partial class ThreadResource
#endif
public ThreadResource(
string id,
global::System.DateTimeOffset createdAt,
int createdAt,
global::tryAGI.OpenAI.Status status,
string user,
string? title,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ public sealed partial class UserMessageItem
/// Unix timestamp (in seconds) for when the item was created.
/// </summary>
[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 required global::System.DateTimeOffset CreatedAt { get; set; }
public required int CreatedAt { get; set; }

/// <summary>
/// Identifier of the parent thread.
Expand Down Expand Up @@ -104,7 +103,7 @@ public sealed partial class UserMessageItem
#endif
public UserMessageItem(
string id,
global::System.DateTimeOffset createdAt,
int createdAt,
string threadId,
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ContentItem4> content,
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.Attachment> attachments,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ public sealed partial class WidgetMessageItem
/// Unix timestamp (in seconds) for when the item was created.
/// </summary>
[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 required global::System.DateTimeOffset CreatedAt { get; set; }
public required int CreatedAt { get; set; }

/// <summary>
/// Identifier of the parent thread.
Expand Down Expand Up @@ -89,7 +88,7 @@ public sealed partial class WidgetMessageItem
#endif
public WidgetMessageItem(
string id,
global::System.DateTimeOffset createdAt,
int createdAt,
string threadId,
string widget,
global::tryAGI.OpenAI.WidgetMessageItemObject @object = global::tryAGI.OpenAI.WidgetMessageItemObject.ChatkitThreadItem,
Expand Down
11 changes: 11 additions & 0 deletions src/libs/tryAGI.OpenAI/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78250,6 +78250,7 @@ components:
x-stainless-const: true
expires_at:
type: integer
format: unixtime
description: Unix timestamp (in seconds) for when the session expires.
client_secret:
type: string
Expand Down Expand Up @@ -78368,6 +78369,7 @@ components:
type: integer
maximum: 600
minimum: 1
format: int64
description: Number of seconds after the anchor when the session expires.
type: object
required:
Expand Down Expand Up @@ -78545,6 +78547,7 @@ components:
preview_url:
anyOf:
- type: string
format: uri
description: Preview URL for rendering the attachment inline.
- type: 'null'
type: object
Expand Down Expand Up @@ -78602,6 +78605,7 @@ components:
x-stainless-const: true
created_at:
type: integer
format: unixtime
description: Unix timestamp (in seconds) for when the item was created.
thread_id:
type: string
Expand Down Expand Up @@ -78695,6 +78699,7 @@ components:
x-stainless-const: true
url:
type: string
format: uri
description: URL referenced by the annotation.
type: object
required:
Expand Down Expand Up @@ -78763,6 +78768,7 @@ components:
x-stainless-const: true
created_at:
type: integer
format: unixtime
description: Unix timestamp (in seconds) for when the item was created.
thread_id:
type: string
Expand Down Expand Up @@ -78803,6 +78809,7 @@ components:
x-stainless-const: true
created_at:
type: integer
format: unixtime
description: Unix timestamp (in seconds) for when the item was created.
thread_id:
type: string
Expand Down Expand Up @@ -78846,6 +78853,7 @@ components:
x-stainless-const: true
created_at:
type: integer
format: unixtime
description: Unix timestamp (in seconds) for when the item was created.
thread_id:
type: string
Expand Down Expand Up @@ -78909,6 +78917,7 @@ components:
x-stainless-const: true
created_at:
type: integer
format: unixtime
description: Unix timestamp (in seconds) for when the item was created.
thread_id:
type: string
Expand Down Expand Up @@ -78989,6 +78998,7 @@ components:
x-stainless-const: true
created_at:
type: integer
format: unixtime
description: Unix timestamp (in seconds) for when the item was created.
thread_id:
type: string
Expand Down Expand Up @@ -79134,6 +79144,7 @@ components:
x-stainless-const: true
created_at:
type: integer
format: unixtime
description: Unix timestamp (in seconds) for when the thread was created.
title:
anyOf:
Expand Down