@archastro/sdk 0.14.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/channels/api_chat_channel.d.ts +8 -0
- package/dist/channels/api_chat_channel.d.ts.map +1 -1
- package/dist/channels/api_chat_channel.js +17 -1
- package/dist/channels/api_chat_channel.js.map +1 -1
- package/dist/client.d.ts +6 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +7 -1
- package/dist/client.js.map +1 -1
- package/dist/effective-access.d.ts +34 -0
- package/dist/effective-access.d.ts.map +1 -0
- package/dist/effective-access.js +51 -0
- package/dist/effective-access.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/types/ai.d.ts +109 -109
- package/dist/types/ai.js +10 -10
- package/dist/types/ai.js.map +1 -1
- package/dist/types/automations.d.ts +15 -15
- package/dist/types/automations.js +6 -6
- package/dist/types/automations.js.map +1 -1
- package/dist/types/chat.d.ts +3005 -2434
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/chat.js +22 -4
- package/dist/types/chat.js.map +1 -1
- package/dist/types/common.d.ts +2703 -3254
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +235 -227
- package/dist/types/common.js.map +1 -1
- package/dist/types/config.d.ts +11 -11
- package/dist/types/config.js +3 -3
- package/dist/types/config.js.map +1 -1
- package/dist/types/events.d.ts +810 -0
- package/dist/types/events.d.ts.map +1 -0
- package/dist/types/events.js +77 -0
- package/dist/types/events.js.map +1 -0
- package/dist/types/expressions.d.ts +66 -0
- package/dist/types/expressions.d.ts.map +1 -0
- package/dist/types/expressions.js +27 -0
- package/dist/types/expressions.js.map +1 -0
- package/dist/types/extractions.d.ts +3 -3
- package/dist/types/extractions.js +2 -2
- package/dist/types/extractions.js.map +1 -1
- package/dist/types/graph.d.ts +34 -0
- package/dist/types/graph.d.ts.map +1 -0
- package/dist/types/graph.js +16 -0
- package/dist/types/graph.js.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +6 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/notifications.d.ts +3 -3
- package/dist/types/notifications.js +2 -2
- package/dist/types/notifications.js.map +1 -1
- package/dist/types/oauth.d.ts +5 -5
- package/dist/types/scripts.d.ts +800 -0
- package/dist/types/scripts.d.ts.map +1 -0
- package/dist/types/scripts.js +112 -0
- package/dist/types/scripts.js.map +1 -0
- package/dist/types/status.d.ts +8 -8
- package/dist/types/status.js +2 -2
- package/dist/types/status.js.map +1 -1
- package/dist/types/system.d.ts +2 -2
- package/dist/types/tasks.d.ts +12 -6
- package/dist/types/tasks.d.ts.map +1 -1
- package/dist/types/tasks.js +5 -3
- package/dist/types/tasks.js.map +1 -1
- package/dist/types/teams.d.ts +334 -334
- package/dist/types/teams.js +5 -5
- package/dist/types/teams.js.map +1 -1
- package/dist/types/threads.d.ts +242 -202
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/types/threads.js +6 -6
- package/dist/types/threads.js.map +1 -1
- package/dist/types/users.d.ts +50 -6
- package/dist/types/users.d.ts.map +1 -1
- package/dist/types/users.js +18 -3
- package/dist/types/users.js.map +1 -1
- package/dist/types/workflows.d.ts +544 -0
- package/dist/types/workflows.d.ts.map +1 -0
- package/dist/types/workflows.js +91 -0
- package/dist/types/workflows.js.map +1 -0
- package/dist/v1/resources/agents.d.ts +4 -3
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +1 -1
- package/dist/v1/resources/agents.js.map +1 -1
- package/dist/v1/resources/ai.d.ts +2 -2
- package/dist/v1/resources/ai.d.ts.map +1 -1
- package/dist/v1/resources/ai.js +1 -1
- package/dist/v1/resources/event_subscriptions.d.ts +1 -1
- package/dist/v1/resources/event_subscriptions.js +1 -1
- package/dist/v1/resources/index.d.ts +3 -0
- package/dist/v1/resources/index.d.ts.map +1 -1
- package/dist/v1/resources/index.js +4 -1
- package/dist/v1/resources/index.js.map +1 -1
- package/dist/v1/resources/scripts.d.ts +117 -0
- package/dist/v1/resources/scripts.d.ts.map +1 -0
- package/dist/v1/resources/scripts.js +116 -0
- package/dist/v1/resources/scripts.js.map +1 -0
- package/dist/v1/resources/ssh_keys.d.ts +13 -0
- package/dist/v1/resources/ssh_keys.d.ts.map +1 -0
- package/dist/v1/resources/ssh_keys.js +19 -0
- package/dist/v1/resources/ssh_keys.js.map +1 -0
- package/dist/v1/resources/tasks.d.ts +7 -0
- package/dist/v1/resources/tasks.d.ts.map +1 -1
- package/dist/v1/resources/tasks.js +4 -1
- package/dist/v1/resources/tasks.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +10 -0
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +1 -1
- package/dist/v1/resources/threads.d.ts +6 -0
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +1 -1
- package/dist/v1/resources/users.d.ts +66 -4
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +52 -3
- package/dist/v1/resources/users.js.map +1 -1
- package/dist/v1/resources/work_items.d.ts +1 -1
- package/dist/v1/resources/work_items.d.ts.map +1 -1
- package/dist/v1/resources/work_items.js +1 -1
- package/dist/v1/resources/workflows.d.ts +205 -0
- package/dist/v1/resources/workflows.d.ts.map +1 -0
- package/dist/v1/resources/workflows.js +205 -0
- package/dist/v1/resources/workflows.js.map +1 -0
- package/dist/v1.d.ts +6 -0
- package/dist/v1.d.ts.map +1 -1
- package/dist/v1.js +10 -1
- package/dist/v1.js.map +1 -1
- package/package.json +1 -1
package/dist/types/ai.d.ts
CHANGED
|
@@ -17,19 +17,19 @@ export declare const aIChatStreamDoneSchema: z.ZodObject<{
|
|
|
17
17
|
/** Number of model runs executed, including continuations triggered by tool calls. */
|
|
18
18
|
run_count: z.ZodOptional<z.ZodNumber>;
|
|
19
19
|
/** Aggregate token usage across every run in the completion (including tool-call continuations), keyed by model ID. */
|
|
20
|
-
total_usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
20
|
+
total_usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
|
|
21
21
|
/** Token usage for the final run, keyed by model ID. */
|
|
22
|
-
usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
22
|
+
usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
run_count?: number | undefined;
|
|
25
25
|
finish_reason?: string | undefined;
|
|
26
|
-
total_usage?: Record<string,
|
|
27
|
-
usage?: Record<string,
|
|
26
|
+
total_usage?: Record<string, {} | null> | undefined;
|
|
27
|
+
usage?: Record<string, {} | null> | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
run_count?: number | undefined;
|
|
30
30
|
finish_reason?: string | undefined;
|
|
31
|
-
total_usage?: Record<string,
|
|
32
|
-
usage?: Record<string,
|
|
31
|
+
total_usage?: Record<string, {} | null> | undefined;
|
|
32
|
+
usage?: Record<string, {} | null> | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
/** Terminal error event for a streaming chat completion (SSE `error` event). */
|
|
35
35
|
export interface AIChatStreamError {
|
|
@@ -59,7 +59,7 @@ export interface AIToolCall {
|
|
|
59
59
|
/** Runtime validator for {@link AIToolCall}. */
|
|
60
60
|
export declare const aIToolCallSchema: z.ZodObject<{
|
|
61
61
|
/** Arguments the model wants to pass to the tool, as a key-value map. Deserialize and validate these against the tool's input schema before executing. */
|
|
62
|
-
arguments: z.ZodRecord<z.ZodString, z.
|
|
62
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
63
63
|
/** Unique identifier for this tool call, assigned by the model. Use this value as `id` when submitting the corresponding tool result. */
|
|
64
64
|
id: z.ZodString;
|
|
65
65
|
/** Name of the tool or function the model wants to invoke, e.g. `"web_search"` or `"run_code"`. */
|
|
@@ -69,12 +69,12 @@ export declare const aIToolCallSchema: z.ZodObject<{
|
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
70
|
name: string;
|
|
71
71
|
id: string;
|
|
72
|
-
arguments: Record<string,
|
|
72
|
+
arguments: Record<string, {} | null>;
|
|
73
73
|
thought_signature?: string | undefined;
|
|
74
74
|
}, {
|
|
75
75
|
name: string;
|
|
76
76
|
id: string;
|
|
77
|
-
arguments: Record<string,
|
|
77
|
+
arguments: Record<string, {} | null>;
|
|
78
78
|
thought_signature?: string | undefined;
|
|
79
79
|
}>;
|
|
80
80
|
/** The result of executing a tool call, submitted back to the model as a tool-role message. Mirrors the OpenAI tool-result object format. */
|
|
@@ -97,17 +97,17 @@ export declare const aIToolResultSchema: z.ZodObject<{
|
|
|
97
97
|
/** Name of the tool or function that was executed, e.g. `"web_search"`. Must match the `name` from the corresponding `AIToolCall`. */
|
|
98
98
|
name: z.ZodString;
|
|
99
99
|
/** Structured result data from the tool execution. Shape varies by tool. `null` when the result is expressed as plain text in `content`. */
|
|
100
|
-
resolution: z.ZodOptional<z.
|
|
100
|
+
resolution: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
102
|
name: string;
|
|
103
103
|
id: string;
|
|
104
104
|
content?: string | undefined;
|
|
105
|
-
resolution?:
|
|
105
|
+
resolution?: {} | null | undefined;
|
|
106
106
|
}, {
|
|
107
107
|
name: string;
|
|
108
108
|
id: string;
|
|
109
109
|
content?: string | undefined;
|
|
110
|
-
resolution?:
|
|
110
|
+
resolution?: {} | null | undefined;
|
|
111
111
|
}>;
|
|
112
112
|
/** A single message in an AI conversation, following the OpenAI-compatible chat format. Used in both request inputs and completion responses. */
|
|
113
113
|
export interface AIMessage {
|
|
@@ -131,17 +131,17 @@ export declare const aIMessageSchema: z.ZodObject<{
|
|
|
131
131
|
/** Plain-text content of the message. Present for `system`, `user`, and `assistant` messages. `null` when the message body is expressed through `content_parts` or `tool_calls`. */
|
|
132
132
|
content: z.ZodOptional<z.ZodString>;
|
|
133
133
|
/** Multimodal content parts for the message, used when the body includes images or mixed media. Each part is a map with a `type` key (`"text"`, `"image_url"`, or `"image_data"`). `null` when `content` is set. */
|
|
134
|
-
content_parts: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.
|
|
134
|
+
content_parts: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>, "many">>;
|
|
135
135
|
/** Opaque token that can be passed on a subsequent request to resume this conversation from the current state. `null` when the provider does not support conversation resumption. */
|
|
136
136
|
resume_token: z.ZodOptional<z.ZodString>;
|
|
137
137
|
/** The speaker role for this message. One of `"system"`, `"user"`, `"assistant"`, or `"tool"`. */
|
|
138
138
|
role: z.ZodString;
|
|
139
139
|
/** Parsed structured data returned by the model when a JSON schema or structured-output mode was requested. Shape varies by the schema supplied at call time. `null` when structured output was not requested. */
|
|
140
|
-
structured_output: z.ZodOptional<z.
|
|
140
|
+
structured_output: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
141
141
|
/** Tool calls requested by the model in an `assistant` message. Present only on assistant messages that invoke one or more tools. `null` on all other message roles. */
|
|
142
142
|
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
143
143
|
/** Arguments the model wants to pass to the tool, as a key-value map. Deserialize and validate these against the tool's input schema before executing. */
|
|
144
|
-
arguments: z.ZodRecord<z.ZodString, z.
|
|
144
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
145
145
|
/** Unique identifier for this tool call, assigned by the model. Use this value as `id` when submitting the corresponding tool result. */
|
|
146
146
|
id: z.ZodString;
|
|
147
147
|
/** Name of the tool or function the model wants to invoke, e.g. `"web_search"` or `"run_code"`. */
|
|
@@ -151,12 +151,12 @@ export declare const aIMessageSchema: z.ZodObject<{
|
|
|
151
151
|
}, "strip", z.ZodTypeAny, {
|
|
152
152
|
name: string;
|
|
153
153
|
id: string;
|
|
154
|
-
arguments: Record<string,
|
|
154
|
+
arguments: Record<string, {} | null>;
|
|
155
155
|
thought_signature?: string | undefined;
|
|
156
156
|
}, {
|
|
157
157
|
name: string;
|
|
158
158
|
id: string;
|
|
159
|
-
arguments: Record<string,
|
|
159
|
+
arguments: Record<string, {} | null>;
|
|
160
160
|
thought_signature?: string | undefined;
|
|
161
161
|
}>, "many">>;
|
|
162
162
|
/** Tool execution results provided in a `tool` message. Each entry corresponds to a prior tool call by its `id`. `null` on all other message roles. */
|
|
@@ -168,53 +168,53 @@ export declare const aIMessageSchema: z.ZodObject<{
|
|
|
168
168
|
/** Name of the tool or function that was executed, e.g. `"web_search"`. Must match the `name` from the corresponding `AIToolCall`. */
|
|
169
169
|
name: z.ZodString;
|
|
170
170
|
/** Structured result data from the tool execution. Shape varies by tool. `null` when the result is expressed as plain text in `content`. */
|
|
171
|
-
resolution: z.ZodOptional<z.
|
|
171
|
+
resolution: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
172
172
|
}, "strip", z.ZodTypeAny, {
|
|
173
173
|
name: string;
|
|
174
174
|
id: string;
|
|
175
175
|
content?: string | undefined;
|
|
176
|
-
resolution?:
|
|
176
|
+
resolution?: {} | null | undefined;
|
|
177
177
|
}, {
|
|
178
178
|
name: string;
|
|
179
179
|
id: string;
|
|
180
180
|
content?: string | undefined;
|
|
181
|
-
resolution?:
|
|
181
|
+
resolution?: {} | null | undefined;
|
|
182
182
|
}>, "many">>;
|
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
|
184
184
|
role: string;
|
|
185
185
|
content?: string | undefined;
|
|
186
|
-
content_parts?: Record<string,
|
|
186
|
+
content_parts?: Record<string, {} | null>[] | undefined;
|
|
187
187
|
resume_token?: string | undefined;
|
|
188
|
-
structured_output?:
|
|
188
|
+
structured_output?: {} | null | undefined;
|
|
189
189
|
tool_calls?: {
|
|
190
190
|
name: string;
|
|
191
191
|
id: string;
|
|
192
|
-
arguments: Record<string,
|
|
192
|
+
arguments: Record<string, {} | null>;
|
|
193
193
|
thought_signature?: string | undefined;
|
|
194
194
|
}[] | undefined;
|
|
195
195
|
tool_results?: {
|
|
196
196
|
name: string;
|
|
197
197
|
id: string;
|
|
198
198
|
content?: string | undefined;
|
|
199
|
-
resolution?:
|
|
199
|
+
resolution?: {} | null | undefined;
|
|
200
200
|
}[] | undefined;
|
|
201
201
|
}, {
|
|
202
202
|
role: string;
|
|
203
203
|
content?: string | undefined;
|
|
204
|
-
content_parts?: Record<string,
|
|
204
|
+
content_parts?: Record<string, {} | null>[] | undefined;
|
|
205
205
|
resume_token?: string | undefined;
|
|
206
|
-
structured_output?:
|
|
206
|
+
structured_output?: {} | null | undefined;
|
|
207
207
|
tool_calls?: {
|
|
208
208
|
name: string;
|
|
209
209
|
id: string;
|
|
210
|
-
arguments: Record<string,
|
|
210
|
+
arguments: Record<string, {} | null>;
|
|
211
211
|
thought_signature?: string | undefined;
|
|
212
212
|
}[] | undefined;
|
|
213
213
|
tool_results?: {
|
|
214
214
|
name: string;
|
|
215
215
|
id: string;
|
|
216
216
|
content?: string | undefined;
|
|
217
|
-
resolution?:
|
|
217
|
+
resolution?: {} | null | undefined;
|
|
218
218
|
}[] | undefined;
|
|
219
219
|
}>;
|
|
220
220
|
/** The fully assembled assistant message for one run of a streaming chat completion (SSE `message_complete` event). */
|
|
@@ -235,17 +235,17 @@ export declare const aIChatStreamMessageCompleteSchema: z.ZodObject<{
|
|
|
235
235
|
/** Plain-text content of the message. Present for `system`, `user`, and `assistant` messages. `null` when the message body is expressed through `content_parts` or `tool_calls`. */
|
|
236
236
|
content: z.ZodOptional<z.ZodString>;
|
|
237
237
|
/** Multimodal content parts for the message, used when the body includes images or mixed media. Each part is a map with a `type` key (`"text"`, `"image_url"`, or `"image_data"`). `null` when `content` is set. */
|
|
238
|
-
content_parts: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.
|
|
238
|
+
content_parts: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>, "many">>;
|
|
239
239
|
/** Opaque token that can be passed on a subsequent request to resume this conversation from the current state. `null` when the provider does not support conversation resumption. */
|
|
240
240
|
resume_token: z.ZodOptional<z.ZodString>;
|
|
241
241
|
/** The speaker role for this message. One of `"system"`, `"user"`, `"assistant"`, or `"tool"`. */
|
|
242
242
|
role: z.ZodString;
|
|
243
243
|
/** Parsed structured data returned by the model when a JSON schema or structured-output mode was requested. Shape varies by the schema supplied at call time. `null` when structured output was not requested. */
|
|
244
|
-
structured_output: z.ZodOptional<z.
|
|
244
|
+
structured_output: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
245
245
|
/** Tool calls requested by the model in an `assistant` message. Present only on assistant messages that invoke one or more tools. `null` on all other message roles. */
|
|
246
246
|
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
247
247
|
/** Arguments the model wants to pass to the tool, as a key-value map. Deserialize and validate these against the tool's input schema before executing. */
|
|
248
|
-
arguments: z.ZodRecord<z.ZodString, z.
|
|
248
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
249
249
|
/** Unique identifier for this tool call, assigned by the model. Use this value as `id` when submitting the corresponding tool result. */
|
|
250
250
|
id: z.ZodString;
|
|
251
251
|
/** Name of the tool or function the model wants to invoke, e.g. `"web_search"` or `"run_code"`. */
|
|
@@ -255,12 +255,12 @@ export declare const aIChatStreamMessageCompleteSchema: z.ZodObject<{
|
|
|
255
255
|
}, "strip", z.ZodTypeAny, {
|
|
256
256
|
name: string;
|
|
257
257
|
id: string;
|
|
258
|
-
arguments: Record<string,
|
|
258
|
+
arguments: Record<string, {} | null>;
|
|
259
259
|
thought_signature?: string | undefined;
|
|
260
260
|
}, {
|
|
261
261
|
name: string;
|
|
262
262
|
id: string;
|
|
263
|
-
arguments: Record<string,
|
|
263
|
+
arguments: Record<string, {} | null>;
|
|
264
264
|
thought_signature?: string | undefined;
|
|
265
265
|
}>, "many">>;
|
|
266
266
|
/** Tool execution results provided in a `tool` message. Each entry corresponds to a prior tool call by its `id`. `null` on all other message roles. */
|
|
@@ -272,101 +272,101 @@ export declare const aIChatStreamMessageCompleteSchema: z.ZodObject<{
|
|
|
272
272
|
/** Name of the tool or function that was executed, e.g. `"web_search"`. Must match the `name` from the corresponding `AIToolCall`. */
|
|
273
273
|
name: z.ZodString;
|
|
274
274
|
/** Structured result data from the tool execution. Shape varies by tool. `null` when the result is expressed as plain text in `content`. */
|
|
275
|
-
resolution: z.ZodOptional<z.
|
|
275
|
+
resolution: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
276
276
|
}, "strip", z.ZodTypeAny, {
|
|
277
277
|
name: string;
|
|
278
278
|
id: string;
|
|
279
279
|
content?: string | undefined;
|
|
280
|
-
resolution?:
|
|
280
|
+
resolution?: {} | null | undefined;
|
|
281
281
|
}, {
|
|
282
282
|
name: string;
|
|
283
283
|
id: string;
|
|
284
284
|
content?: string | undefined;
|
|
285
|
-
resolution?:
|
|
285
|
+
resolution?: {} | null | undefined;
|
|
286
286
|
}>, "many">>;
|
|
287
287
|
}, "strip", z.ZodTypeAny, {
|
|
288
288
|
role: string;
|
|
289
289
|
content?: string | undefined;
|
|
290
|
-
content_parts?: Record<string,
|
|
290
|
+
content_parts?: Record<string, {} | null>[] | undefined;
|
|
291
291
|
resume_token?: string | undefined;
|
|
292
|
-
structured_output?:
|
|
292
|
+
structured_output?: {} | null | undefined;
|
|
293
293
|
tool_calls?: {
|
|
294
294
|
name: string;
|
|
295
295
|
id: string;
|
|
296
|
-
arguments: Record<string,
|
|
296
|
+
arguments: Record<string, {} | null>;
|
|
297
297
|
thought_signature?: string | undefined;
|
|
298
298
|
}[] | undefined;
|
|
299
299
|
tool_results?: {
|
|
300
300
|
name: string;
|
|
301
301
|
id: string;
|
|
302
302
|
content?: string | undefined;
|
|
303
|
-
resolution?:
|
|
303
|
+
resolution?: {} | null | undefined;
|
|
304
304
|
}[] | undefined;
|
|
305
305
|
}, {
|
|
306
306
|
role: string;
|
|
307
307
|
content?: string | undefined;
|
|
308
|
-
content_parts?: Record<string,
|
|
308
|
+
content_parts?: Record<string, {} | null>[] | undefined;
|
|
309
309
|
resume_token?: string | undefined;
|
|
310
|
-
structured_output?:
|
|
310
|
+
structured_output?: {} | null | undefined;
|
|
311
311
|
tool_calls?: {
|
|
312
312
|
name: string;
|
|
313
313
|
id: string;
|
|
314
|
-
arguments: Record<string,
|
|
314
|
+
arguments: Record<string, {} | null>;
|
|
315
315
|
thought_signature?: string | undefined;
|
|
316
316
|
}[] | undefined;
|
|
317
317
|
tool_results?: {
|
|
318
318
|
name: string;
|
|
319
319
|
id: string;
|
|
320
320
|
content?: string | undefined;
|
|
321
|
-
resolution?:
|
|
321
|
+
resolution?: {} | null | undefined;
|
|
322
322
|
}[] | undefined;
|
|
323
323
|
}>;
|
|
324
324
|
/** Token consumption for this run, keyed by model ID. `null` when usage data is unavailable. */
|
|
325
|
-
usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
325
|
+
usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
|
|
326
326
|
}, "strip", z.ZodTypeAny, {
|
|
327
327
|
message: {
|
|
328
328
|
role: string;
|
|
329
329
|
content?: string | undefined;
|
|
330
|
-
content_parts?: Record<string,
|
|
330
|
+
content_parts?: Record<string, {} | null>[] | undefined;
|
|
331
331
|
resume_token?: string | undefined;
|
|
332
|
-
structured_output?:
|
|
332
|
+
structured_output?: {} | null | undefined;
|
|
333
333
|
tool_calls?: {
|
|
334
334
|
name: string;
|
|
335
335
|
id: string;
|
|
336
|
-
arguments: Record<string,
|
|
336
|
+
arguments: Record<string, {} | null>;
|
|
337
337
|
thought_signature?: string | undefined;
|
|
338
338
|
}[] | undefined;
|
|
339
339
|
tool_results?: {
|
|
340
340
|
name: string;
|
|
341
341
|
id: string;
|
|
342
342
|
content?: string | undefined;
|
|
343
|
-
resolution?:
|
|
343
|
+
resolution?: {} | null | undefined;
|
|
344
344
|
}[] | undefined;
|
|
345
345
|
};
|
|
346
346
|
finish_reason?: string | undefined;
|
|
347
|
-
usage?: Record<string,
|
|
347
|
+
usage?: Record<string, {} | null> | undefined;
|
|
348
348
|
}, {
|
|
349
349
|
message: {
|
|
350
350
|
role: string;
|
|
351
351
|
content?: string | undefined;
|
|
352
|
-
content_parts?: Record<string,
|
|
352
|
+
content_parts?: Record<string, {} | null>[] | undefined;
|
|
353
353
|
resume_token?: string | undefined;
|
|
354
|
-
structured_output?:
|
|
354
|
+
structured_output?: {} | null | undefined;
|
|
355
355
|
tool_calls?: {
|
|
356
356
|
name: string;
|
|
357
357
|
id: string;
|
|
358
|
-
arguments: Record<string,
|
|
358
|
+
arguments: Record<string, {} | null>;
|
|
359
359
|
thought_signature?: string | undefined;
|
|
360
360
|
}[] | undefined;
|
|
361
361
|
tool_results?: {
|
|
362
362
|
name: string;
|
|
363
363
|
id: string;
|
|
364
364
|
content?: string | undefined;
|
|
365
|
-
resolution?:
|
|
365
|
+
resolution?: {} | null | undefined;
|
|
366
366
|
}[] | undefined;
|
|
367
367
|
};
|
|
368
368
|
finish_reason?: string | undefined;
|
|
369
|
-
usage?: Record<string,
|
|
369
|
+
usage?: Record<string, {} | null> | undefined;
|
|
370
370
|
}>;
|
|
371
371
|
/** Incremental assistant text emitted during a streaming chat completion (SSE `message_delta` event). */
|
|
372
372
|
export interface AIChatStreamMessageDelta {
|
|
@@ -474,17 +474,17 @@ export declare const aICompletionResultSchema: z.ZodObject<{
|
|
|
474
474
|
/** Plain-text content of the message. Present for `system`, `user`, and `assistant` messages. `null` when the message body is expressed through `content_parts` or `tool_calls`. */
|
|
475
475
|
content: z.ZodOptional<z.ZodString>;
|
|
476
476
|
/** Multimodal content parts for the message, used when the body includes images or mixed media. Each part is a map with a `type` key (`"text"`, `"image_url"`, or `"image_data"`). `null` when `content` is set. */
|
|
477
|
-
content_parts: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.
|
|
477
|
+
content_parts: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>, "many">>;
|
|
478
478
|
/** Opaque token that can be passed on a subsequent request to resume this conversation from the current state. `null` when the provider does not support conversation resumption. */
|
|
479
479
|
resume_token: z.ZodOptional<z.ZodString>;
|
|
480
480
|
/** The speaker role for this message. One of `"system"`, `"user"`, `"assistant"`, or `"tool"`. */
|
|
481
481
|
role: z.ZodString;
|
|
482
482
|
/** Parsed structured data returned by the model when a JSON schema or structured-output mode was requested. Shape varies by the schema supplied at call time. `null` when structured output was not requested. */
|
|
483
|
-
structured_output: z.ZodOptional<z.
|
|
483
|
+
structured_output: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
484
484
|
/** Tool calls requested by the model in an `assistant` message. Present only on assistant messages that invoke one or more tools. `null` on all other message roles. */
|
|
485
485
|
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
486
486
|
/** Arguments the model wants to pass to the tool, as a key-value map. Deserialize and validate these against the tool's input schema before executing. */
|
|
487
|
-
arguments: z.ZodRecord<z.ZodString, z.
|
|
487
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
488
488
|
/** Unique identifier for this tool call, assigned by the model. Use this value as `id` when submitting the corresponding tool result. */
|
|
489
489
|
id: z.ZodString;
|
|
490
490
|
/** Name of the tool or function the model wants to invoke, e.g. `"web_search"` or `"run_code"`. */
|
|
@@ -494,12 +494,12 @@ export declare const aICompletionResultSchema: z.ZodObject<{
|
|
|
494
494
|
}, "strip", z.ZodTypeAny, {
|
|
495
495
|
name: string;
|
|
496
496
|
id: string;
|
|
497
|
-
arguments: Record<string,
|
|
497
|
+
arguments: Record<string, {} | null>;
|
|
498
498
|
thought_signature?: string | undefined;
|
|
499
499
|
}, {
|
|
500
500
|
name: string;
|
|
501
501
|
id: string;
|
|
502
|
-
arguments: Record<string,
|
|
502
|
+
arguments: Record<string, {} | null>;
|
|
503
503
|
thought_signature?: string | undefined;
|
|
504
504
|
}>, "many">>;
|
|
505
505
|
/** Tool execution results provided in a `tool` message. Each entry corresponds to a prior tool call by its `id`. `null` on all other message roles. */
|
|
@@ -511,53 +511,53 @@ export declare const aICompletionResultSchema: z.ZodObject<{
|
|
|
511
511
|
/** Name of the tool or function that was executed, e.g. `"web_search"`. Must match the `name` from the corresponding `AIToolCall`. */
|
|
512
512
|
name: z.ZodString;
|
|
513
513
|
/** Structured result data from the tool execution. Shape varies by tool. `null` when the result is expressed as plain text in `content`. */
|
|
514
|
-
resolution: z.ZodOptional<z.
|
|
514
|
+
resolution: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
515
515
|
}, "strip", z.ZodTypeAny, {
|
|
516
516
|
name: string;
|
|
517
517
|
id: string;
|
|
518
518
|
content?: string | undefined;
|
|
519
|
-
resolution?:
|
|
519
|
+
resolution?: {} | null | undefined;
|
|
520
520
|
}, {
|
|
521
521
|
name: string;
|
|
522
522
|
id: string;
|
|
523
523
|
content?: string | undefined;
|
|
524
|
-
resolution?:
|
|
524
|
+
resolution?: {} | null | undefined;
|
|
525
525
|
}>, "many">>;
|
|
526
526
|
}, "strip", z.ZodTypeAny, {
|
|
527
527
|
role: string;
|
|
528
528
|
content?: string | undefined;
|
|
529
|
-
content_parts?: Record<string,
|
|
529
|
+
content_parts?: Record<string, {} | null>[] | undefined;
|
|
530
530
|
resume_token?: string | undefined;
|
|
531
|
-
structured_output?:
|
|
531
|
+
structured_output?: {} | null | undefined;
|
|
532
532
|
tool_calls?: {
|
|
533
533
|
name: string;
|
|
534
534
|
id: string;
|
|
535
|
-
arguments: Record<string,
|
|
535
|
+
arguments: Record<string, {} | null>;
|
|
536
536
|
thought_signature?: string | undefined;
|
|
537
537
|
}[] | undefined;
|
|
538
538
|
tool_results?: {
|
|
539
539
|
name: string;
|
|
540
540
|
id: string;
|
|
541
541
|
content?: string | undefined;
|
|
542
|
-
resolution?:
|
|
542
|
+
resolution?: {} | null | undefined;
|
|
543
543
|
}[] | undefined;
|
|
544
544
|
}, {
|
|
545
545
|
role: string;
|
|
546
546
|
content?: string | undefined;
|
|
547
|
-
content_parts?: Record<string,
|
|
547
|
+
content_parts?: Record<string, {} | null>[] | undefined;
|
|
548
548
|
resume_token?: string | undefined;
|
|
549
|
-
structured_output?:
|
|
549
|
+
structured_output?: {} | null | undefined;
|
|
550
550
|
tool_calls?: {
|
|
551
551
|
name: string;
|
|
552
552
|
id: string;
|
|
553
|
-
arguments: Record<string,
|
|
553
|
+
arguments: Record<string, {} | null>;
|
|
554
554
|
thought_signature?: string | undefined;
|
|
555
555
|
}[] | undefined;
|
|
556
556
|
tool_results?: {
|
|
557
557
|
name: string;
|
|
558
558
|
id: string;
|
|
559
559
|
content?: string | undefined;
|
|
560
|
-
resolution?:
|
|
560
|
+
resolution?: {} | null | undefined;
|
|
561
561
|
}[] | undefined;
|
|
562
562
|
}>;
|
|
563
563
|
/** The complete message history for the conversation, including all user, assistant, and tool messages in order. */
|
|
@@ -565,17 +565,17 @@ export declare const aICompletionResultSchema: z.ZodObject<{
|
|
|
565
565
|
/** Plain-text content of the message. Present for `system`, `user`, and `assistant` messages. `null` when the message body is expressed through `content_parts` or `tool_calls`. */
|
|
566
566
|
content: z.ZodOptional<z.ZodString>;
|
|
567
567
|
/** Multimodal content parts for the message, used when the body includes images or mixed media. Each part is a map with a `type` key (`"text"`, `"image_url"`, or `"image_data"`). `null` when `content` is set. */
|
|
568
|
-
content_parts: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.
|
|
568
|
+
content_parts: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>, "many">>;
|
|
569
569
|
/** Opaque token that can be passed on a subsequent request to resume this conversation from the current state. `null` when the provider does not support conversation resumption. */
|
|
570
570
|
resume_token: z.ZodOptional<z.ZodString>;
|
|
571
571
|
/** The speaker role for this message. One of `"system"`, `"user"`, `"assistant"`, or `"tool"`. */
|
|
572
572
|
role: z.ZodString;
|
|
573
573
|
/** Parsed structured data returned by the model when a JSON schema or structured-output mode was requested. Shape varies by the schema supplied at call time. `null` when structured output was not requested. */
|
|
574
|
-
structured_output: z.ZodOptional<z.
|
|
574
|
+
structured_output: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
575
575
|
/** Tool calls requested by the model in an `assistant` message. Present only on assistant messages that invoke one or more tools. `null` on all other message roles. */
|
|
576
576
|
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
577
577
|
/** Arguments the model wants to pass to the tool, as a key-value map. Deserialize and validate these against the tool's input schema before executing. */
|
|
578
|
-
arguments: z.ZodRecord<z.ZodString, z.
|
|
578
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
579
579
|
/** Unique identifier for this tool call, assigned by the model. Use this value as `id` when submitting the corresponding tool result. */
|
|
580
580
|
id: z.ZodString;
|
|
581
581
|
/** Name of the tool or function the model wants to invoke, e.g. `"web_search"` or `"run_code"`. */
|
|
@@ -585,12 +585,12 @@ export declare const aICompletionResultSchema: z.ZodObject<{
|
|
|
585
585
|
}, "strip", z.ZodTypeAny, {
|
|
586
586
|
name: string;
|
|
587
587
|
id: string;
|
|
588
|
-
arguments: Record<string,
|
|
588
|
+
arguments: Record<string, {} | null>;
|
|
589
589
|
thought_signature?: string | undefined;
|
|
590
590
|
}, {
|
|
591
591
|
name: string;
|
|
592
592
|
id: string;
|
|
593
|
-
arguments: Record<string,
|
|
593
|
+
arguments: Record<string, {} | null>;
|
|
594
594
|
thought_signature?: string | undefined;
|
|
595
595
|
}>, "many">>;
|
|
596
596
|
/** Tool execution results provided in a `tool` message. Each entry corresponds to a prior tool call by its `id`. `null` on all other message roles. */
|
|
@@ -602,139 +602,139 @@ export declare const aICompletionResultSchema: z.ZodObject<{
|
|
|
602
602
|
/** Name of the tool or function that was executed, e.g. `"web_search"`. Must match the `name` from the corresponding `AIToolCall`. */
|
|
603
603
|
name: z.ZodString;
|
|
604
604
|
/** Structured result data from the tool execution. Shape varies by tool. `null` when the result is expressed as plain text in `content`. */
|
|
605
|
-
resolution: z.ZodOptional<z.
|
|
605
|
+
resolution: z.ZodOptional<z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
606
606
|
}, "strip", z.ZodTypeAny, {
|
|
607
607
|
name: string;
|
|
608
608
|
id: string;
|
|
609
609
|
content?: string | undefined;
|
|
610
|
-
resolution?:
|
|
610
|
+
resolution?: {} | null | undefined;
|
|
611
611
|
}, {
|
|
612
612
|
name: string;
|
|
613
613
|
id: string;
|
|
614
614
|
content?: string | undefined;
|
|
615
|
-
resolution?:
|
|
615
|
+
resolution?: {} | null | undefined;
|
|
616
616
|
}>, "many">>;
|
|
617
617
|
}, "strip", z.ZodTypeAny, {
|
|
618
618
|
role: string;
|
|
619
619
|
content?: string | undefined;
|
|
620
|
-
content_parts?: Record<string,
|
|
620
|
+
content_parts?: Record<string, {} | null>[] | undefined;
|
|
621
621
|
resume_token?: string | undefined;
|
|
622
|
-
structured_output?:
|
|
622
|
+
structured_output?: {} | null | undefined;
|
|
623
623
|
tool_calls?: {
|
|
624
624
|
name: string;
|
|
625
625
|
id: string;
|
|
626
|
-
arguments: Record<string,
|
|
626
|
+
arguments: Record<string, {} | null>;
|
|
627
627
|
thought_signature?: string | undefined;
|
|
628
628
|
}[] | undefined;
|
|
629
629
|
tool_results?: {
|
|
630
630
|
name: string;
|
|
631
631
|
id: string;
|
|
632
632
|
content?: string | undefined;
|
|
633
|
-
resolution?:
|
|
633
|
+
resolution?: {} | null | undefined;
|
|
634
634
|
}[] | undefined;
|
|
635
635
|
}, {
|
|
636
636
|
role: string;
|
|
637
637
|
content?: string | undefined;
|
|
638
|
-
content_parts?: Record<string,
|
|
638
|
+
content_parts?: Record<string, {} | null>[] | undefined;
|
|
639
639
|
resume_token?: string | undefined;
|
|
640
|
-
structured_output?:
|
|
640
|
+
structured_output?: {} | null | undefined;
|
|
641
641
|
tool_calls?: {
|
|
642
642
|
name: string;
|
|
643
643
|
id: string;
|
|
644
|
-
arguments: Record<string,
|
|
644
|
+
arguments: Record<string, {} | null>;
|
|
645
645
|
thought_signature?: string | undefined;
|
|
646
646
|
}[] | undefined;
|
|
647
647
|
tool_results?: {
|
|
648
648
|
name: string;
|
|
649
649
|
id: string;
|
|
650
650
|
content?: string | undefined;
|
|
651
|
-
resolution?:
|
|
651
|
+
resolution?: {} | null | undefined;
|
|
652
652
|
}[] | undefined;
|
|
653
653
|
}>, "many">;
|
|
654
654
|
/** Token consumption breakdown keyed by model ID. Each value is a map with `"input_tokens"` and `"output_tokens"` counts. `null` when usage data is unavailable. */
|
|
655
|
-
token_usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
655
|
+
token_usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
|
|
656
656
|
}, "strip", z.ZodTypeAny, {
|
|
657
657
|
message: {
|
|
658
658
|
role: string;
|
|
659
659
|
content?: string | undefined;
|
|
660
|
-
content_parts?: Record<string,
|
|
660
|
+
content_parts?: Record<string, {} | null>[] | undefined;
|
|
661
661
|
resume_token?: string | undefined;
|
|
662
|
-
structured_output?:
|
|
662
|
+
structured_output?: {} | null | undefined;
|
|
663
663
|
tool_calls?: {
|
|
664
664
|
name: string;
|
|
665
665
|
id: string;
|
|
666
|
-
arguments: Record<string,
|
|
666
|
+
arguments: Record<string, {} | null>;
|
|
667
667
|
thought_signature?: string | undefined;
|
|
668
668
|
}[] | undefined;
|
|
669
669
|
tool_results?: {
|
|
670
670
|
name: string;
|
|
671
671
|
id: string;
|
|
672
672
|
content?: string | undefined;
|
|
673
|
-
resolution?:
|
|
673
|
+
resolution?: {} | null | undefined;
|
|
674
674
|
}[] | undefined;
|
|
675
675
|
};
|
|
676
676
|
messages: {
|
|
677
677
|
role: string;
|
|
678
678
|
content?: string | undefined;
|
|
679
|
-
content_parts?: Record<string,
|
|
679
|
+
content_parts?: Record<string, {} | null>[] | undefined;
|
|
680
680
|
resume_token?: string | undefined;
|
|
681
|
-
structured_output?:
|
|
681
|
+
structured_output?: {} | null | undefined;
|
|
682
682
|
tool_calls?: {
|
|
683
683
|
name: string;
|
|
684
684
|
id: string;
|
|
685
|
-
arguments: Record<string,
|
|
685
|
+
arguments: Record<string, {} | null>;
|
|
686
686
|
thought_signature?: string | undefined;
|
|
687
687
|
}[] | undefined;
|
|
688
688
|
tool_results?: {
|
|
689
689
|
name: string;
|
|
690
690
|
id: string;
|
|
691
691
|
content?: string | undefined;
|
|
692
|
-
resolution?:
|
|
692
|
+
resolution?: {} | null | undefined;
|
|
693
693
|
}[] | undefined;
|
|
694
694
|
}[];
|
|
695
695
|
finish_reason: string;
|
|
696
|
-
token_usage?: Record<string,
|
|
696
|
+
token_usage?: Record<string, {} | null> | undefined;
|
|
697
697
|
}, {
|
|
698
698
|
message: {
|
|
699
699
|
role: string;
|
|
700
700
|
content?: string | undefined;
|
|
701
|
-
content_parts?: Record<string,
|
|
701
|
+
content_parts?: Record<string, {} | null>[] | undefined;
|
|
702
702
|
resume_token?: string | undefined;
|
|
703
|
-
structured_output?:
|
|
703
|
+
structured_output?: {} | null | undefined;
|
|
704
704
|
tool_calls?: {
|
|
705
705
|
name: string;
|
|
706
706
|
id: string;
|
|
707
|
-
arguments: Record<string,
|
|
707
|
+
arguments: Record<string, {} | null>;
|
|
708
708
|
thought_signature?: string | undefined;
|
|
709
709
|
}[] | undefined;
|
|
710
710
|
tool_results?: {
|
|
711
711
|
name: string;
|
|
712
712
|
id: string;
|
|
713
713
|
content?: string | undefined;
|
|
714
|
-
resolution?:
|
|
714
|
+
resolution?: {} | null | undefined;
|
|
715
715
|
}[] | undefined;
|
|
716
716
|
};
|
|
717
717
|
messages: {
|
|
718
718
|
role: string;
|
|
719
719
|
content?: string | undefined;
|
|
720
|
-
content_parts?: Record<string,
|
|
720
|
+
content_parts?: Record<string, {} | null>[] | undefined;
|
|
721
721
|
resume_token?: string | undefined;
|
|
722
|
-
structured_output?:
|
|
722
|
+
structured_output?: {} | null | undefined;
|
|
723
723
|
tool_calls?: {
|
|
724
724
|
name: string;
|
|
725
725
|
id: string;
|
|
726
|
-
arguments: Record<string,
|
|
726
|
+
arguments: Record<string, {} | null>;
|
|
727
727
|
thought_signature?: string | undefined;
|
|
728
728
|
}[] | undefined;
|
|
729
729
|
tool_results?: {
|
|
730
730
|
name: string;
|
|
731
731
|
id: string;
|
|
732
732
|
content?: string | undefined;
|
|
733
|
-
resolution?:
|
|
733
|
+
resolution?: {} | null | undefined;
|
|
734
734
|
}[] | undefined;
|
|
735
735
|
}[];
|
|
736
736
|
finish_reason: string;
|
|
737
|
-
token_usage?: Record<string,
|
|
737
|
+
token_usage?: Record<string, {} | null> | undefined;
|
|
738
738
|
}>;
|
|
739
739
|
/** The result returned by an AI image generation or editing operation. Contains the generated image (as inline data or a URL) along with dimension, size, and usage metadata. */
|
|
740
740
|
export interface AIImageResult {
|
|
@@ -782,7 +782,7 @@ export declare const aIImageResultSchema: z.ZodObject<{
|
|
|
782
782
|
/** Canonical size string as returned by the provider, e.g. `"1024x1024"`. `null` when not reported. */
|
|
783
783
|
size: z.ZodOptional<z.ZodString>;
|
|
784
784
|
/** Provider-reported token and compute usage for the request. Structure varies by provider. `null` when usage data is unavailable. */
|
|
785
|
-
usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
785
|
+
usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
|
|
786
786
|
/** Width of the generated image in pixels. `null` when the provider does not report dimensions. */
|
|
787
787
|
width: z.ZodOptional<z.ZodNumber>;
|
|
788
788
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -791,7 +791,7 @@ export declare const aIImageResultSchema: z.ZodObject<{
|
|
|
791
791
|
width?: number | undefined;
|
|
792
792
|
image_url?: string | undefined;
|
|
793
793
|
size?: string | undefined;
|
|
794
|
-
usage?: Record<string,
|
|
794
|
+
usage?: Record<string, {} | null> | undefined;
|
|
795
795
|
aspect_ratio?: string | undefined;
|
|
796
796
|
image_data?: string | undefined;
|
|
797
797
|
image_size?: string | undefined;
|
|
@@ -803,7 +803,7 @@ export declare const aIImageResultSchema: z.ZodObject<{
|
|
|
803
803
|
width?: number | undefined;
|
|
804
804
|
image_url?: string | undefined;
|
|
805
805
|
size?: string | undefined;
|
|
806
|
-
usage?: Record<string,
|
|
806
|
+
usage?: Record<string, {} | null> | undefined;
|
|
807
807
|
aspect_ratio?: string | undefined;
|
|
808
808
|
image_data?: string | undefined;
|
|
809
809
|
image_size?: string | undefined;
|