v0-api 0.3.0 → 0.3.1
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.
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
var z__namespace = /*#__PURE__*/_interopNamespace(z);
|
|
22
22
|
|
|
23
23
|
// @ts-nocheck
|
|
24
|
-
const chatDetailSchema = z__namespace.
|
|
24
|
+
const chatDetailSchema = z__namespace.strictObject({
|
|
25
25
|
id: z__namespace.string().describe("A unique identifier for the chat."),
|
|
26
26
|
object: z__namespace.enum([
|
|
27
27
|
"chat"
|
|
@@ -44,7 +44,7 @@ const chatDetailSchema = z__namespace.object({
|
|
|
44
44
|
vercelProjectId: z__namespace.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
|
|
45
45
|
webUrl: z__namespace.string().describe("Web URL to view this chat in the browser."),
|
|
46
46
|
apiUrl: z__namespace.string().describe("API URL to access this chat via the API."),
|
|
47
|
-
latestVersion: z__namespace.
|
|
47
|
+
latestVersion: z__namespace.strictObject({
|
|
48
48
|
id: z__namespace.string().describe("A unique identifier for the version."),
|
|
49
49
|
object: z__namespace.enum([
|
|
50
50
|
"version"
|
|
@@ -58,18 +58,18 @@ const chatDetailSchema = z__namespace.object({
|
|
|
58
58
|
screenshotUrl: z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
|
|
59
59
|
createdAt: z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
|
|
60
60
|
updatedAt: z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format."),
|
|
61
|
-
files: z__namespace.array(z__namespace.
|
|
61
|
+
files: z__namespace.array(z__namespace.strictObject({
|
|
62
62
|
object: z__namespace.enum([
|
|
63
63
|
"file"
|
|
64
64
|
]).describe("Fixed value identifying this object as a file."),
|
|
65
65
|
name: z__namespace.string().describe("The name of the file, including its extension."),
|
|
66
66
|
content: z__namespace.string().describe("The full contents of the file as a raw string."),
|
|
67
67
|
locked: z__namespace.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
|
|
68
|
-
})
|
|
69
|
-
}).
|
|
68
|
+
})).describe("A list of files that were generated or included in this version.")
|
|
69
|
+
}).optional().describe("Full details of the most recent generated version, if available."),
|
|
70
70
|
metadata: z__namespace.object({}).catchall(z__namespace.string()).describe("Arbitrary key-value data associated with this chat."),
|
|
71
71
|
url: z__namespace.string().describe("The canonical URL to access this chat."),
|
|
72
|
-
messages: z__namespace.array(z__namespace.
|
|
72
|
+
messages: z__namespace.array(z__namespace.strictObject({
|
|
73
73
|
id: z__namespace.string().describe("A unique identifier for the message."),
|
|
74
74
|
object: z__namespace.enum([
|
|
75
75
|
"message"
|
|
@@ -82,7 +82,7 @@ const chatDetailSchema = z__namespace.object({
|
|
|
82
82
|
]),
|
|
83
83
|
z__namespace.tuple([
|
|
84
84
|
z__namespace.literal(1),
|
|
85
|
-
z__namespace.
|
|
85
|
+
z__namespace.strictObject({
|
|
86
86
|
toJSONSchema: z__namespace.string(),
|
|
87
87
|
def: z__namespace.string(),
|
|
88
88
|
type: z__namespace.string(),
|
|
@@ -139,7 +139,7 @@ const chatDetailSchema = z__namespace.object({
|
|
|
139
139
|
omit: z__namespace.string(),
|
|
140
140
|
partial: z__namespace.string(),
|
|
141
141
|
required: z__namespace.string()
|
|
142
|
-
})
|
|
142
|
+
})
|
|
143
143
|
])
|
|
144
144
|
])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
|
|
145
145
|
createdAt: z__namespace.string().describe("The ISO timestamp representing when the message was created."),
|
|
@@ -183,7 +183,7 @@ const chatDetailSchema = z__namespace.object({
|
|
|
183
183
|
apiUrl: z__namespace.string().describe("API URL to access this message via the API."),
|
|
184
184
|
authorId: z__namespace.string().nullable().describe("The ID of the user who sent the message."),
|
|
185
185
|
parentId: z__namespace.string().nullish().describe("The ID of the parent message."),
|
|
186
|
-
attachments: z__namespace.array(z__namespace.
|
|
186
|
+
attachments: z__namespace.array(z__namespace.strictObject({
|
|
187
187
|
url: z__namespace.string().describe("The URL where the attachment file can be accessed."),
|
|
188
188
|
name: z__namespace.string().optional().describe("The original filename of the attachment."),
|
|
189
189
|
contentType: z__namespace.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
|
|
@@ -194,16 +194,16 @@ const chatDetailSchema = z__namespace.object({
|
|
|
194
194
|
"screenshot",
|
|
195
195
|
"zip"
|
|
196
196
|
]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
|
|
197
|
-
})
|
|
198
|
-
})
|
|
199
|
-
files: z__namespace.array(z__namespace.
|
|
197
|
+
})).optional()
|
|
198
|
+
})).describe("All messages exchanged in the chat, including user and assistant entries."),
|
|
199
|
+
files: z__namespace.array(z__namespace.strictObject({
|
|
200
200
|
lang: z__namespace.string().describe("Programming language used in the file (e.g., JavaScript, Python)."),
|
|
201
201
|
meta: z__namespace.object({}).catchall(z__namespace.string()).describe("A key-value map of metadata associated with the file (e.g., path, type)."),
|
|
202
202
|
source: z__namespace.string().describe("The origin or identifier of the file source (e.g., path or upload label).")
|
|
203
|
-
})
|
|
203
|
+
})).optional().describe("Optional array of files associated with the chat context."),
|
|
204
204
|
demo: z__namespace.string().optional().describe("Deprecated demo URL used for previewing the chat result."),
|
|
205
205
|
text: z__namespace.string().describe("The main user prompt or instruction that started the chat."),
|
|
206
|
-
modelConfiguration: z__namespace.
|
|
206
|
+
modelConfiguration: z__namespace.strictObject({
|
|
207
207
|
modelId: z__namespace.enum([
|
|
208
208
|
"v0-auto",
|
|
209
209
|
"v0-max",
|
|
@@ -228,12 +228,12 @@ const chatDetailSchema = z__namespace.object({
|
|
|
228
228
|
z__namespace.null()
|
|
229
229
|
]).optional(),
|
|
230
230
|
fast: z__namespace.boolean().optional()
|
|
231
|
-
}).
|
|
232
|
-
permissions: z__namespace.
|
|
231
|
+
}).optional().describe("The configuration used to generate responses in this chat."),
|
|
232
|
+
permissions: z__namespace.strictObject({
|
|
233
233
|
write: z__namespace.boolean().describe("If true, the user has write access to the chat.")
|
|
234
|
-
})
|
|
235
|
-
}).
|
|
236
|
-
const chatSummarySchema = z__namespace.
|
|
234
|
+
})
|
|
235
|
+
}).describe("Detailed representation of a chat, including its messages, files, versions, and model configuration.");
|
|
236
|
+
const chatSummarySchema = z__namespace.strictObject({
|
|
237
237
|
id: z__namespace.string().describe("A unique identifier for the chat."),
|
|
238
238
|
object: z__namespace.enum([
|
|
239
239
|
"chat"
|
|
@@ -256,7 +256,7 @@ const chatSummarySchema = z__namespace.object({
|
|
|
256
256
|
vercelProjectId: z__namespace.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
|
|
257
257
|
webUrl: z__namespace.string().describe("Web URL to view this chat in the browser."),
|
|
258
258
|
apiUrl: z__namespace.string().describe("API URL to access this chat via the API."),
|
|
259
|
-
latestVersion: z__namespace.
|
|
259
|
+
latestVersion: z__namespace.strictObject({
|
|
260
260
|
id: z__namespace.string().describe("A unique identifier for the version."),
|
|
261
261
|
object: z__namespace.enum([
|
|
262
262
|
"version"
|
|
@@ -270,10 +270,10 @@ const chatSummarySchema = z__namespace.object({
|
|
|
270
270
|
screenshotUrl: z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
|
|
271
271
|
createdAt: z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
|
|
272
272
|
updatedAt: z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
|
|
273
|
-
}).
|
|
273
|
+
}).optional().describe("The most recent generated version of the chat, if available."),
|
|
274
274
|
metadata: z__namespace.object({}).catchall(z__namespace.string()).describe("Arbitrary key-value data associated with this chat.")
|
|
275
|
-
}).
|
|
276
|
-
const deploymentDetailSchema = z__namespace.
|
|
275
|
+
}).describe("Summary of a chat, including metadata like privacy, author, latest version, and URLs.");
|
|
276
|
+
const deploymentDetailSchema = z__namespace.strictObject({
|
|
277
277
|
id: z__namespace.string().describe("A unique identifier for the deployment."),
|
|
278
278
|
object: z__namespace.enum([
|
|
279
279
|
"deployment"
|
|
@@ -284,8 +284,8 @@ const deploymentDetailSchema = z__namespace.object({
|
|
|
284
284
|
versionId: z__namespace.string().describe("The ID of the version that this deployment is scoped to."),
|
|
285
285
|
apiUrl: z__namespace.url().describe("The API endpoint URL for accessing this deployment programmatically."),
|
|
286
286
|
webUrl: z__namespace.url().describe("The web URL where the deployment can be viewed or managed.")
|
|
287
|
-
})
|
|
288
|
-
const deploymentSummarySchema = z__namespace.
|
|
287
|
+
});
|
|
288
|
+
const deploymentSummarySchema = z__namespace.strictObject({
|
|
289
289
|
id: z__namespace.string().describe("A unique identifier for the deployment."),
|
|
290
290
|
object: z__namespace.enum([
|
|
291
291
|
"deployment"
|
|
@@ -296,8 +296,8 @@ const deploymentSummarySchema = z__namespace.object({
|
|
|
296
296
|
versionId: z__namespace.string().describe("The ID of the version that this deployment is scoped to."),
|
|
297
297
|
apiUrl: z__namespace.url().describe("The API endpoint URL for accessing this deployment programmatically."),
|
|
298
298
|
webUrl: z__namespace.url().describe("The web URL where the deployment can be viewed or managed.")
|
|
299
|
-
})
|
|
300
|
-
const environmentVariableDetailSchemaSchema = z__namespace.
|
|
299
|
+
});
|
|
300
|
+
const environmentVariableDetailSchemaSchema = z__namespace.strictObject({
|
|
301
301
|
id: z__namespace.string().describe("A unique identifier for the environment variable."),
|
|
302
302
|
object: z__namespace.enum([
|
|
303
303
|
"environment_variable"
|
|
@@ -307,8 +307,8 @@ const environmentVariableDetailSchemaSchema = z__namespace.object({
|
|
|
307
307
|
decrypted: z__namespace.boolean().describe("Whether the value is decrypted or encrypted."),
|
|
308
308
|
createdAt: z__namespace.number().describe("The timestamp when the environment variable was created."),
|
|
309
309
|
updatedAt: z__namespace.number().optional().describe("The timestamp when the environment variable was last updated.")
|
|
310
|
-
}).
|
|
311
|
-
const environmentVariableSummarySchemaSchema = z__namespace.
|
|
310
|
+
}).describe("Detailed information for an environment variable including its value.");
|
|
311
|
+
const environmentVariableSummarySchemaSchema = z__namespace.strictObject({
|
|
312
312
|
id: z__namespace.string().describe("A unique identifier for the environment variable."),
|
|
313
313
|
object: z__namespace.enum([
|
|
314
314
|
"environment_variable"
|
|
@@ -318,12 +318,12 @@ const environmentVariableSummarySchemaSchema = z__namespace.object({
|
|
|
318
318
|
decrypted: z__namespace.boolean().describe("Whether the value is decrypted or encrypted."),
|
|
319
319
|
createdAt: z__namespace.number().describe("The timestamp when the environment variable was created."),
|
|
320
320
|
updatedAt: z__namespace.number().optional().describe("The timestamp when the environment variable was last updated.")
|
|
321
|
-
}).
|
|
322
|
-
const environmentVariablesListSchemaSchema = z__namespace.
|
|
321
|
+
}).describe("Summary information for an environment variable.");
|
|
322
|
+
const environmentVariablesListSchemaSchema = z__namespace.strictObject({
|
|
323
323
|
object: z__namespace.enum([
|
|
324
324
|
"list"
|
|
325
325
|
]).describe("Fixed value identifying this as a list response."),
|
|
326
|
-
data: z__namespace.array(z__namespace.
|
|
326
|
+
data: z__namespace.array(z__namespace.strictObject({
|
|
327
327
|
id: z__namespace.string().describe("A unique identifier for the environment variable."),
|
|
328
328
|
object: z__namespace.enum([
|
|
329
329
|
"environment_variable"
|
|
@@ -333,23 +333,23 @@ const environmentVariablesListSchemaSchema = z__namespace.object({
|
|
|
333
333
|
decrypted: z__namespace.boolean().describe("Whether the value is decrypted or encrypted."),
|
|
334
334
|
createdAt: z__namespace.number().describe("The timestamp when the environment variable was created."),
|
|
335
335
|
updatedAt: z__namespace.number().optional().describe("The timestamp when the environment variable was last updated.")
|
|
336
|
-
})
|
|
337
|
-
}).
|
|
338
|
-
const fileDetailSchema = z__namespace.
|
|
336
|
+
})).describe("Array of environment variable details.")
|
|
337
|
+
}).describe("List response containing environment variables.");
|
|
338
|
+
const fileDetailSchema = z__namespace.strictObject({
|
|
339
339
|
object: z__namespace.enum([
|
|
340
340
|
"file"
|
|
341
341
|
]).describe("Fixed value identifying this object as a file."),
|
|
342
342
|
name: z__namespace.string().describe("The name of the file, including its extension."),
|
|
343
343
|
content: z__namespace.string().describe("The full contents of the file as a raw string."),
|
|
344
344
|
locked: z__namespace.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
|
|
345
|
-
}).
|
|
346
|
-
const fileSummarySchema = z__namespace.
|
|
345
|
+
}).describe("Detailed representation of a file, including its content and lock status.");
|
|
346
|
+
const fileSummarySchema = z__namespace.strictObject({
|
|
347
347
|
object: z__namespace.enum([
|
|
348
348
|
"file"
|
|
349
349
|
]).describe("Fixed value identifying this object as a file."),
|
|
350
350
|
name: z__namespace.string().describe("The name of the file, including its extension.")
|
|
351
|
-
}).
|
|
352
|
-
const hookDetailSchema = z__namespace.
|
|
351
|
+
}).describe("Basic metadata about a file, such as its type and name.");
|
|
352
|
+
const hookDetailSchema = z__namespace.strictObject({
|
|
353
353
|
id: z__namespace.string().describe("A unique identifier for the webhook."),
|
|
354
354
|
object: z__namespace.enum([
|
|
355
355
|
"hook"
|
|
@@ -366,8 +366,8 @@ const hookDetailSchema = z__namespace.object({
|
|
|
366
366
|
])).describe("List of event types this webhook is subscribed to."),
|
|
367
367
|
chatId: z__namespace.string().optional().describe("Optional ID of the chat that this webhook is scoped to."),
|
|
368
368
|
url: z__namespace.string().describe("Target URL that receives event payloads for this webhook.")
|
|
369
|
-
}).
|
|
370
|
-
const hookEventDetailSchema = z__namespace.
|
|
369
|
+
}).describe("Full configuration details for a webhook, including its scope and subscription.");
|
|
370
|
+
const hookEventDetailSchema = z__namespace.strictObject({
|
|
371
371
|
id: z__namespace.string().describe("A unique identifier for the webhook event log entry."),
|
|
372
372
|
object: z__namespace.enum([
|
|
373
373
|
"hook_event"
|
|
@@ -387,66 +387,66 @@ const hookEventDetailSchema = z__namespace.object({
|
|
|
387
387
|
"success"
|
|
388
388
|
]).optional().default("pending").describe("The delivery status of the webhook (e.g., delivered, failed)."),
|
|
389
389
|
createdAt: z__namespace.iso.datetime().describe("Timestamp of when the webhook event was triggered.")
|
|
390
|
-
}).
|
|
391
|
-
const hookSummarySchema = z__namespace.
|
|
390
|
+
}).describe("Detailed record of a webhook event, including its type, status, and timestamp.");
|
|
391
|
+
const hookSummarySchema = z__namespace.strictObject({
|
|
392
392
|
id: z__namespace.string().describe("A unique identifier for the webhook."),
|
|
393
393
|
object: z__namespace.enum([
|
|
394
394
|
"hook"
|
|
395
395
|
]).describe("Fixed value identifying this object as a webhook."),
|
|
396
396
|
name: z__namespace.string().describe("A user-defined name to label the webhook.")
|
|
397
|
-
}).
|
|
398
|
-
const integrationConnectionDetailSchemaSchema = z__namespace.
|
|
397
|
+
}).describe("Summary of a webhook, including its ID and display name.");
|
|
398
|
+
const integrationConnectionDetailSchemaSchema = z__namespace.strictObject({
|
|
399
399
|
object: z__namespace.enum([
|
|
400
400
|
"integration_connection"
|
|
401
401
|
]).describe("The object type."),
|
|
402
402
|
id: z__namespace.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
|
|
403
403
|
connected: z__namespace.boolean().describe("Whether the integration is connected to the project."),
|
|
404
|
-
integration: z__namespace.
|
|
404
|
+
integration: z__namespace.strictObject({
|
|
405
405
|
id: z__namespace.string().describe("The ID of the integration."),
|
|
406
406
|
object: z__namespace.enum([
|
|
407
407
|
"integration"
|
|
408
408
|
]).describe("The object type."),
|
|
409
409
|
slug: z__namespace.string().describe("The slug of the integration."),
|
|
410
410
|
name: z__namespace.string().describe("The name of the integration.")
|
|
411
|
-
}).
|
|
411
|
+
}).describe("Information about the connected integration."),
|
|
412
412
|
metadata: z__namespace.object({}).catchall(z__namespace.unknown()).optional().describe("Additional metadata about the integration connection.")
|
|
413
|
-
}).
|
|
414
|
-
const integrationConnectionListSchemaSchema = z__namespace.
|
|
413
|
+
}).describe("Detailed information about an integration connection to a project.");
|
|
414
|
+
const integrationConnectionListSchemaSchema = z__namespace.strictObject({
|
|
415
415
|
object: z__namespace.enum([
|
|
416
416
|
"list"
|
|
417
417
|
]).describe("Fixed value identifying this as a list response."),
|
|
418
|
-
data: z__namespace.array(z__namespace.
|
|
418
|
+
data: z__namespace.array(z__namespace.strictObject({
|
|
419
419
|
object: z__namespace.enum([
|
|
420
420
|
"integration_connection"
|
|
421
421
|
]).describe("The object type."),
|
|
422
422
|
id: z__namespace.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
|
|
423
423
|
connected: z__namespace.boolean().describe("Whether the integration is connected to the project."),
|
|
424
|
-
integration: z__namespace.
|
|
424
|
+
integration: z__namespace.strictObject({
|
|
425
425
|
id: z__namespace.string().describe("The ID of the integration."),
|
|
426
426
|
object: z__namespace.enum([
|
|
427
427
|
"integration"
|
|
428
428
|
]).describe("The object type."),
|
|
429
429
|
slug: z__namespace.string().describe("The slug of the integration."),
|
|
430
430
|
name: z__namespace.string().describe("The name of the integration.")
|
|
431
|
-
}).
|
|
432
|
-
})
|
|
433
|
-
}).
|
|
434
|
-
const integrationConnectionSummarySchemaSchema = z__namespace.
|
|
431
|
+
}).describe("Information about the connected integration.")
|
|
432
|
+
})).describe("Array of integration connection summaries.")
|
|
433
|
+
}).describe("List response containing integration connections.");
|
|
434
|
+
const integrationConnectionSummarySchemaSchema = z__namespace.strictObject({
|
|
435
435
|
object: z__namespace.enum([
|
|
436
436
|
"integration_connection"
|
|
437
437
|
]).describe("The object type."),
|
|
438
438
|
id: z__namespace.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
|
|
439
439
|
connected: z__namespace.boolean().describe("Whether the integration is connected to the project."),
|
|
440
|
-
integration: z__namespace.
|
|
440
|
+
integration: z__namespace.strictObject({
|
|
441
441
|
id: z__namespace.string().describe("The ID of the integration."),
|
|
442
442
|
object: z__namespace.enum([
|
|
443
443
|
"integration"
|
|
444
444
|
]).describe("The object type."),
|
|
445
445
|
slug: z__namespace.string().describe("The slug of the integration."),
|
|
446
446
|
name: z__namespace.string().describe("The name of the integration.")
|
|
447
|
-
}).
|
|
448
|
-
}).
|
|
449
|
-
const integrationDetailSchemaSchema = z__namespace.
|
|
447
|
+
}).describe("Information about the connected integration.")
|
|
448
|
+
}).describe("Summary information about an integration connection to a project.");
|
|
449
|
+
const integrationDetailSchemaSchema = z__namespace.strictObject({
|
|
450
450
|
id: z__namespace.string().describe("The ID of the integration."),
|
|
451
451
|
object: z__namespace.enum([
|
|
452
452
|
"integration"
|
|
@@ -455,12 +455,12 @@ const integrationDetailSchemaSchema = z__namespace.object({
|
|
|
455
455
|
name: z__namespace.string().describe("The name of the integration."),
|
|
456
456
|
description: z__namespace.string().describe("A short description of the integration."),
|
|
457
457
|
iconUrl: z__namespace.string().describe("URL to the integration icon.")
|
|
458
|
-
}).
|
|
459
|
-
const integrationListSchemaSchema = z__namespace.
|
|
458
|
+
}).describe("Detailed information about an integration.");
|
|
459
|
+
const integrationListSchemaSchema = z__namespace.strictObject({
|
|
460
460
|
object: z__namespace.enum([
|
|
461
461
|
"list"
|
|
462
462
|
]).describe("Fixed value identifying this as a list response."),
|
|
463
|
-
data: z__namespace.array(z__namespace.
|
|
463
|
+
data: z__namespace.array(z__namespace.strictObject({
|
|
464
464
|
id: z__namespace.string().describe("The ID of the integration."),
|
|
465
465
|
object: z__namespace.enum([
|
|
466
466
|
"integration"
|
|
@@ -469,17 +469,17 @@ const integrationListSchemaSchema = z__namespace.object({
|
|
|
469
469
|
name: z__namespace.string().describe("The name of the integration."),
|
|
470
470
|
description: z__namespace.string().describe("A short description of the integration."),
|
|
471
471
|
iconUrl: z__namespace.string().describe("URL to the integration icon.")
|
|
472
|
-
})
|
|
473
|
-
}).
|
|
474
|
-
const integrationSummarySchemaSchema = z__namespace.
|
|
472
|
+
})).describe("Array of integration details.")
|
|
473
|
+
}).describe("List of available integrations.");
|
|
474
|
+
const integrationSummarySchemaSchema = z__namespace.strictObject({
|
|
475
475
|
id: z__namespace.string().describe("The ID of the integration."),
|
|
476
476
|
object: z__namespace.enum([
|
|
477
477
|
"integration"
|
|
478
478
|
]).describe("The object type."),
|
|
479
479
|
slug: z__namespace.string().describe("The slug of the integration."),
|
|
480
480
|
name: z__namespace.string().describe("The name of the integration.")
|
|
481
|
-
}).
|
|
482
|
-
const messageDetailSchema = z__namespace.
|
|
481
|
+
}).describe("Basic information about an integration.");
|
|
482
|
+
const messageDetailSchema = z__namespace.strictObject({
|
|
483
483
|
id: z__namespace.string().describe("A unique identifier for the message."),
|
|
484
484
|
object: z__namespace.enum([
|
|
485
485
|
"message"
|
|
@@ -492,7 +492,7 @@ const messageDetailSchema = z__namespace.object({
|
|
|
492
492
|
]),
|
|
493
493
|
z__namespace.tuple([
|
|
494
494
|
z__namespace.literal(1),
|
|
495
|
-
z__namespace.
|
|
495
|
+
z__namespace.strictObject({
|
|
496
496
|
toJSONSchema: z__namespace.string(),
|
|
497
497
|
def: z__namespace.string(),
|
|
498
498
|
type: z__namespace.string(),
|
|
@@ -549,7 +549,7 @@ const messageDetailSchema = z__namespace.object({
|
|
|
549
549
|
omit: z__namespace.string(),
|
|
550
550
|
partial: z__namespace.string(),
|
|
551
551
|
required: z__namespace.string()
|
|
552
|
-
})
|
|
552
|
+
})
|
|
553
553
|
])
|
|
554
554
|
])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
|
|
555
555
|
createdAt: z__namespace.string().describe("The ISO timestamp representing when the message was created."),
|
|
@@ -593,7 +593,7 @@ const messageDetailSchema = z__namespace.object({
|
|
|
593
593
|
apiUrl: z__namespace.string().describe("API URL to access this message via the API."),
|
|
594
594
|
authorId: z__namespace.string().nullable().describe("The ID of the user who sent the message."),
|
|
595
595
|
parentId: z__namespace.string().nullish().describe("The ID of the parent message."),
|
|
596
|
-
attachments: z__namespace.array(z__namespace.
|
|
596
|
+
attachments: z__namespace.array(z__namespace.strictObject({
|
|
597
597
|
url: z__namespace.string().describe("The URL where the attachment file can be accessed."),
|
|
598
598
|
name: z__namespace.string().optional().describe("The original filename of the attachment."),
|
|
599
599
|
contentType: z__namespace.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
|
|
@@ -604,10 +604,10 @@ const messageDetailSchema = z__namespace.object({
|
|
|
604
604
|
"screenshot",
|
|
605
605
|
"zip"
|
|
606
606
|
]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
|
|
607
|
-
})
|
|
607
|
+
})).optional(),
|
|
608
608
|
chatId: z__namespace.string().describe("The ID of the chat to which this message belongs.")
|
|
609
|
-
}).
|
|
610
|
-
const messageSummarySchema = z__namespace.
|
|
609
|
+
}).describe("Detailed message object extending MessageSummary with chat metadata.");
|
|
610
|
+
const messageSummarySchema = z__namespace.strictObject({
|
|
611
611
|
id: z__namespace.string().describe("A unique identifier for the message."),
|
|
612
612
|
object: z__namespace.enum([
|
|
613
613
|
"message"
|
|
@@ -620,7 +620,7 @@ const messageSummarySchema = z__namespace.object({
|
|
|
620
620
|
]),
|
|
621
621
|
z__namespace.tuple([
|
|
622
622
|
z__namespace.literal(1),
|
|
623
|
-
z__namespace.
|
|
623
|
+
z__namespace.strictObject({
|
|
624
624
|
toJSONSchema: z__namespace.string(),
|
|
625
625
|
def: z__namespace.string(),
|
|
626
626
|
type: z__namespace.string(),
|
|
@@ -677,7 +677,7 @@ const messageSummarySchema = z__namespace.object({
|
|
|
677
677
|
omit: z__namespace.string(),
|
|
678
678
|
partial: z__namespace.string(),
|
|
679
679
|
required: z__namespace.string()
|
|
680
|
-
})
|
|
680
|
+
})
|
|
681
681
|
])
|
|
682
682
|
])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
|
|
683
683
|
createdAt: z__namespace.string().describe("The ISO timestamp representing when the message was created."),
|
|
@@ -721,7 +721,7 @@ const messageSummarySchema = z__namespace.object({
|
|
|
721
721
|
apiUrl: z__namespace.string().describe("API URL to access this message via the API."),
|
|
722
722
|
authorId: z__namespace.string().nullable().describe("The ID of the user who sent the message."),
|
|
723
723
|
parentId: z__namespace.string().nullish().describe("The ID of the parent message."),
|
|
724
|
-
attachments: z__namespace.array(z__namespace.
|
|
724
|
+
attachments: z__namespace.array(z__namespace.strictObject({
|
|
725
725
|
url: z__namespace.string().describe("The URL where the attachment file can be accessed."),
|
|
726
726
|
name: z__namespace.string().optional().describe("The original filename of the attachment."),
|
|
727
727
|
contentType: z__namespace.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
|
|
@@ -732,13 +732,13 @@ const messageSummarySchema = z__namespace.object({
|
|
|
732
732
|
"screenshot",
|
|
733
733
|
"zip"
|
|
734
734
|
]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
|
|
735
|
-
})
|
|
736
|
-
}).
|
|
737
|
-
const messageSummaryListSchema = z__namespace.
|
|
735
|
+
})).optional()
|
|
736
|
+
}).describe("Summary of a single message within a chat, including role, content, type, timestamp, and API URL.");
|
|
737
|
+
const messageSummaryListSchema = z__namespace.strictObject({
|
|
738
738
|
object: z__namespace.enum([
|
|
739
739
|
"list"
|
|
740
740
|
]).describe("Fixed value identifying this as a list response."),
|
|
741
|
-
data: z__namespace.array(z__namespace.
|
|
741
|
+
data: z__namespace.array(z__namespace.strictObject({
|
|
742
742
|
id: z__namespace.string().describe("A unique identifier for the message."),
|
|
743
743
|
object: z__namespace.enum([
|
|
744
744
|
"message"
|
|
@@ -751,7 +751,7 @@ const messageSummaryListSchema = z__namespace.object({
|
|
|
751
751
|
]),
|
|
752
752
|
z__namespace.tuple([
|
|
753
753
|
z__namespace.literal(1),
|
|
754
|
-
z__namespace.
|
|
754
|
+
z__namespace.strictObject({
|
|
755
755
|
toJSONSchema: z__namespace.string(),
|
|
756
756
|
def: z__namespace.string(),
|
|
757
757
|
type: z__namespace.string(),
|
|
@@ -808,7 +808,7 @@ const messageSummaryListSchema = z__namespace.object({
|
|
|
808
808
|
omit: z__namespace.string(),
|
|
809
809
|
partial: z__namespace.string(),
|
|
810
810
|
required: z__namespace.string()
|
|
811
|
-
})
|
|
811
|
+
})
|
|
812
812
|
])
|
|
813
813
|
])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
|
|
814
814
|
createdAt: z__namespace.string().describe("The ISO timestamp representing when the message was created."),
|
|
@@ -852,7 +852,7 @@ const messageSummaryListSchema = z__namespace.object({
|
|
|
852
852
|
apiUrl: z__namespace.string().describe("API URL to access this message via the API."),
|
|
853
853
|
authorId: z__namespace.string().nullable().describe("The ID of the user who sent the message."),
|
|
854
854
|
parentId: z__namespace.string().nullish().describe("The ID of the parent message."),
|
|
855
|
-
attachments: z__namespace.array(z__namespace.
|
|
855
|
+
attachments: z__namespace.array(z__namespace.strictObject({
|
|
856
856
|
url: z__namespace.string().describe("The URL where the attachment file can be accessed."),
|
|
857
857
|
name: z__namespace.string().optional().describe("The original filename of the attachment."),
|
|
858
858
|
contentType: z__namespace.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
|
|
@@ -863,19 +863,19 @@ const messageSummaryListSchema = z__namespace.object({
|
|
|
863
863
|
"screenshot",
|
|
864
864
|
"zip"
|
|
865
865
|
]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
|
|
866
|
-
})
|
|
867
|
-
})
|
|
868
|
-
pagination: z__namespace.
|
|
866
|
+
})).optional()
|
|
867
|
+
})).describe("Array of message summaries in this page of results."),
|
|
868
|
+
pagination: z__namespace.strictObject({
|
|
869
869
|
hasMore: z__namespace.boolean().describe("Indicates if there are more results available beyond this page."),
|
|
870
870
|
nextCursor: z__namespace.string().optional().describe("Cursor for fetching the next page of results."),
|
|
871
871
|
nextUrl: z__namespace.string().optional().describe("API URL for retrieving the next page of results.")
|
|
872
|
-
}).
|
|
873
|
-
}).
|
|
874
|
-
const notificationPreferenceSchemaSchema = z__namespace.
|
|
872
|
+
}).describe("Pagination metadata for navigating through multiple pages of results.")
|
|
873
|
+
}).describe("List response containing multiple message summaries with cursor-based pagination.");
|
|
874
|
+
const notificationPreferenceSchemaSchema = z__namespace.strictObject({
|
|
875
875
|
liveActivity: z__namespace.boolean().describe("Whether the user wants to receive live activities."),
|
|
876
876
|
pushNotifications: z__namespace.boolean().describe("Whether the user wants to receive push notifications.")
|
|
877
|
-
}).
|
|
878
|
-
const productDetailSchemaSchema = z__namespace.
|
|
877
|
+
}).describe("User preference for notification delivery methods.");
|
|
878
|
+
const productDetailSchemaSchema = z__namespace.strictObject({
|
|
879
879
|
object: z__namespace.enum([
|
|
880
880
|
"product"
|
|
881
881
|
]).describe("The object type."),
|
|
@@ -889,12 +889,12 @@ const productDetailSchemaSchema = z__namespace.object({
|
|
|
889
889
|
"published"
|
|
890
890
|
]).optional().describe("The product's availability in v0. 'in-review' products only appear for teams with the review view and should be rendered as such."),
|
|
891
891
|
iconBackgroundColor: z__namespace.string().optional().describe("Background color for the product icon.")
|
|
892
|
-
}).
|
|
893
|
-
const productListSchemaSchema = z__namespace.
|
|
892
|
+
}).describe("Detailed information about a marketplace or store product.");
|
|
893
|
+
const productListSchemaSchema = z__namespace.strictObject({
|
|
894
894
|
object: z__namespace.enum([
|
|
895
895
|
"list"
|
|
896
896
|
]).describe("Fixed value identifying this as a list response."),
|
|
897
|
-
data: z__namespace.array(z__namespace.
|
|
897
|
+
data: z__namespace.array(z__namespace.strictObject({
|
|
898
898
|
object: z__namespace.enum([
|
|
899
899
|
"product"
|
|
900
900
|
]).describe("The object type."),
|
|
@@ -907,9 +907,9 @@ const productListSchemaSchema = z__namespace.object({
|
|
|
907
907
|
"in-review",
|
|
908
908
|
"published"
|
|
909
909
|
]).optional().describe("The product's availability in v0. 'in-review' products only appear for teams with the review view and should be rendered as such.")
|
|
910
|
-
})
|
|
911
|
-
}).
|
|
912
|
-
const productSummarySchemaSchema = z__namespace.
|
|
910
|
+
})).describe("Array of product summaries.")
|
|
911
|
+
}).describe("List of available marketplace and store products.");
|
|
912
|
+
const productSummarySchemaSchema = z__namespace.strictObject({
|
|
913
913
|
object: z__namespace.enum([
|
|
914
914
|
"product"
|
|
915
915
|
]).describe("The object type."),
|
|
@@ -922,8 +922,8 @@ const productSummarySchemaSchema = z__namespace.object({
|
|
|
922
922
|
"in-review",
|
|
923
923
|
"published"
|
|
924
924
|
]).optional().describe("The product's availability in v0. 'in-review' products only appear for teams with the review view and should be rendered as such.")
|
|
925
|
-
}).
|
|
926
|
-
const projectDetailSchema = z__namespace.
|
|
925
|
+
}).describe("Summary information about a marketplace or store product.");
|
|
926
|
+
const projectDetailSchema = z__namespace.strictObject({
|
|
927
927
|
id: z__namespace.string().describe("A unique identifier for the project."),
|
|
928
928
|
object: z__namespace.enum([
|
|
929
929
|
"project"
|
|
@@ -940,7 +940,7 @@ const projectDetailSchema = z__namespace.object({
|
|
|
940
940
|
webUrl: z__namespace.url().describe("The web URL where the project can be viewed or managed."),
|
|
941
941
|
description: z__namespace.string().optional().describe("The description of the project."),
|
|
942
942
|
instructions: z__namespace.string().optional().describe("The instructions for the project."),
|
|
943
|
-
chats: z__namespace.array(z__namespace.
|
|
943
|
+
chats: z__namespace.array(z__namespace.strictObject({
|
|
944
944
|
id: z__namespace.string().describe("A unique identifier for the chat."),
|
|
945
945
|
object: z__namespace.enum([
|
|
946
946
|
"chat"
|
|
@@ -963,7 +963,7 @@ const projectDetailSchema = z__namespace.object({
|
|
|
963
963
|
vercelProjectId: z__namespace.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
|
|
964
964
|
webUrl: z__namespace.string().describe("Web URL to view this chat in the browser."),
|
|
965
965
|
apiUrl: z__namespace.string().describe("API URL to access this chat via the API."),
|
|
966
|
-
latestVersion: z__namespace.
|
|
966
|
+
latestVersion: z__namespace.strictObject({
|
|
967
967
|
id: z__namespace.string().describe("A unique identifier for the version."),
|
|
968
968
|
object: z__namespace.enum([
|
|
969
969
|
"version"
|
|
@@ -977,11 +977,11 @@ const projectDetailSchema = z__namespace.object({
|
|
|
977
977
|
screenshotUrl: z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
|
|
978
978
|
createdAt: z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
|
|
979
979
|
updatedAt: z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
|
|
980
|
-
}).
|
|
980
|
+
}).optional().describe("The most recent generated version of the chat, if available."),
|
|
981
981
|
metadata: z__namespace.object({}).catchall(z__namespace.string()).describe("Arbitrary key-value data associated with this chat.")
|
|
982
|
-
})
|
|
983
|
-
}).
|
|
984
|
-
const projectSummarySchema = z__namespace.
|
|
982
|
+
})).describe("List of all chats that are associated with this project.")
|
|
983
|
+
}).describe("Full representation of a project, including its associated chats.");
|
|
984
|
+
const projectSummarySchema = z__namespace.strictObject({
|
|
985
985
|
id: z__namespace.string().describe("A unique identifier for the project."),
|
|
986
986
|
object: z__namespace.enum([
|
|
987
987
|
"project"
|
|
@@ -996,15 +996,15 @@ const projectSummarySchema = z__namespace.object({
|
|
|
996
996
|
updatedAt: z__namespace.iso.datetime().optional().describe("The ISO timestamp of the most recent update, if available."),
|
|
997
997
|
apiUrl: z__namespace.url().describe("The API endpoint URL for accessing this project programmatically."),
|
|
998
998
|
webUrl: z__namespace.url().describe("The web URL where the project can be viewed or managed.")
|
|
999
|
-
}).
|
|
1000
|
-
const scopeSummarySchema = z__namespace.
|
|
999
|
+
}).describe("Summary of a project, including metadata, timestamps, and optional Vercel linkage.");
|
|
1000
|
+
const scopeSummarySchema = z__namespace.strictObject({
|
|
1001
1001
|
id: z__namespace.string().describe("A unique identifier for the scope (e.g., user or team workspace)."),
|
|
1002
1002
|
object: z__namespace.enum([
|
|
1003
1003
|
"scope"
|
|
1004
1004
|
]).describe("Fixed value identifying this object as a scope."),
|
|
1005
1005
|
name: z__namespace.string().optional().describe("An optional human-readable name for the scope.")
|
|
1006
|
-
}).
|
|
1007
|
-
const searchResultItemSchema = z__namespace.
|
|
1006
|
+
}).describe("Basic information about a workspace or identity context for projects and chats.");
|
|
1007
|
+
const searchResultItemSchema = z__namespace.strictObject({
|
|
1008
1008
|
id: z__namespace.string().describe("The unique ID of the item returned in the search result."),
|
|
1009
1009
|
object: z__namespace.enum([
|
|
1010
1010
|
"chat",
|
|
@@ -1015,8 +1015,8 @@ const searchResultItemSchema = z__namespace.object({
|
|
|
1015
1015
|
updatedAt: z__namespace.iso.datetime().optional().describe("The ISO timestamp of the last update to the item."),
|
|
1016
1016
|
apiUrl: z__namespace.string().describe("API endpoint for accessing the item programmatically."),
|
|
1017
1017
|
webUrl: z__namespace.string().describe("Web URL for viewing the item in the interface.")
|
|
1018
|
-
}).
|
|
1019
|
-
const userDetailSchemaSchema = z__namespace.
|
|
1018
|
+
}).describe("Generic result returned from a search query, representing either a chat or a project.");
|
|
1019
|
+
const userDetailSchemaSchema = z__namespace.strictObject({
|
|
1020
1020
|
id: z__namespace.string().describe("A unique identifier for the user."),
|
|
1021
1021
|
object: z__namespace.enum([
|
|
1022
1022
|
"user"
|
|
@@ -1026,42 +1026,42 @@ const userDetailSchemaSchema = z__namespace.object({
|
|
|
1026
1026
|
avatar: z__namespace.string().describe("URL to the user's avatar image."),
|
|
1027
1027
|
createdAt: z__namespace.iso.datetime().describe("The ISO timestamp representing when the user was created."),
|
|
1028
1028
|
updatedAt: z__namespace.iso.datetime().optional().describe("The ISO timestamp of the last update to the user.")
|
|
1029
|
-
})
|
|
1030
|
-
const userPreferencesPostResponseSchemaSchema = z__namespace.
|
|
1029
|
+
});
|
|
1030
|
+
const userPreferencesPostResponseSchemaSchema = z__namespace.strictObject({
|
|
1031
1031
|
object: z__namespace.enum([
|
|
1032
1032
|
"user_preferences"
|
|
1033
1033
|
]).describe("Object type identifier."),
|
|
1034
1034
|
preferences: z__namespace.union([
|
|
1035
|
-
z__namespace.
|
|
1036
|
-
notifications: z__namespace.
|
|
1035
|
+
z__namespace.strictObject({
|
|
1036
|
+
notifications: z__namespace.strictObject({
|
|
1037
1037
|
liveActivity: z__namespace.boolean().describe("Whether the user wants to receive live activities."),
|
|
1038
1038
|
pushNotifications: z__namespace.boolean().describe("Whether the user wants to receive push notifications.")
|
|
1039
|
-
}).
|
|
1040
|
-
})
|
|
1039
|
+
}).describe("The user's preferred method for receiving notifications.")
|
|
1040
|
+
}),
|
|
1041
1041
|
z__namespace.null()
|
|
1042
1042
|
]).describe("The updated preferences if successful, or null if failed.")
|
|
1043
|
-
}).
|
|
1044
|
-
const userPreferencesResponseSchemaSchema = z__namespace.
|
|
1043
|
+
}).describe("Response schema for updating user preferences.");
|
|
1044
|
+
const userPreferencesResponseSchemaSchema = z__namespace.strictObject({
|
|
1045
1045
|
object: z__namespace.enum([
|
|
1046
1046
|
"user_preferences"
|
|
1047
1047
|
]).describe("Object type identifier."),
|
|
1048
1048
|
preferences: z__namespace.union([
|
|
1049
|
-
z__namespace.
|
|
1050
|
-
notifications: z__namespace.
|
|
1049
|
+
z__namespace.strictObject({
|
|
1050
|
+
notifications: z__namespace.strictObject({
|
|
1051
1051
|
liveActivity: z__namespace.boolean().describe("Whether the user wants to receive live activities."),
|
|
1052
1052
|
pushNotifications: z__namespace.boolean().describe("Whether the user wants to receive push notifications.")
|
|
1053
|
-
}).
|
|
1054
|
-
})
|
|
1053
|
+
}).describe("The user's preferred method for receiving notifications.")
|
|
1054
|
+
}),
|
|
1055
1055
|
z__namespace.null()
|
|
1056
1056
|
]).describe("The user's current preferences, or null if errored.")
|
|
1057
|
-
}).
|
|
1058
|
-
const userPreferencesSchemaSchema = z__namespace.
|
|
1059
|
-
notifications: z__namespace.
|
|
1057
|
+
}).describe("Response schema for retrieving user preferences.");
|
|
1058
|
+
const userPreferencesSchemaSchema = z__namespace.strictObject({
|
|
1059
|
+
notifications: z__namespace.strictObject({
|
|
1060
1060
|
liveActivity: z__namespace.boolean().describe("Whether the user wants to receive live activities."),
|
|
1061
1061
|
pushNotifications: z__namespace.boolean().describe("Whether the user wants to receive push notifications.")
|
|
1062
|
-
}).
|
|
1063
|
-
}).
|
|
1064
|
-
const userSummarySchemaSchema = z__namespace.
|
|
1062
|
+
}).describe("The user's preferred method for receiving notifications.")
|
|
1063
|
+
}).describe("User preferences configuration including notification settings.");
|
|
1064
|
+
const userSummarySchemaSchema = z__namespace.strictObject({
|
|
1065
1065
|
id: z__namespace.string().describe("A unique identifier for the user."),
|
|
1066
1066
|
object: z__namespace.enum([
|
|
1067
1067
|
"user"
|
|
@@ -1071,22 +1071,22 @@ const userSummarySchemaSchema = z__namespace.object({
|
|
|
1071
1071
|
avatar: z__namespace.string().describe("URL to the user's avatar image."),
|
|
1072
1072
|
createdAt: z__namespace.iso.datetime().describe("The ISO timestamp representing when the user was created."),
|
|
1073
1073
|
updatedAt: z__namespace.iso.datetime().optional().describe("The ISO timestamp of the last update to the user.")
|
|
1074
|
-
}).
|
|
1075
|
-
const vercelProjectDetailSchema = z__namespace.
|
|
1074
|
+
}).describe("Details of the authenticated user, including profile and contact information.");
|
|
1075
|
+
const vercelProjectDetailSchema = z__namespace.strictObject({
|
|
1076
1076
|
id: z__namespace.string().describe("A unique identifier for the linked Vercel project."),
|
|
1077
1077
|
object: z__namespace.enum([
|
|
1078
1078
|
"vercel_project"
|
|
1079
1079
|
]).describe("Fixed value identifying this object as a Vercel project."),
|
|
1080
1080
|
name: z__namespace.string().describe("The name of the Vercel project.")
|
|
1081
|
-
})
|
|
1082
|
-
const vercelProjectSummarySchema = z__namespace.
|
|
1081
|
+
});
|
|
1082
|
+
const vercelProjectSummarySchema = z__namespace.strictObject({
|
|
1083
1083
|
id: z__namespace.string().describe("A unique identifier for the linked Vercel project."),
|
|
1084
1084
|
object: z__namespace.enum([
|
|
1085
1085
|
"vercel_project"
|
|
1086
1086
|
]).describe("Fixed value identifying this object as a Vercel project."),
|
|
1087
1087
|
name: z__namespace.string().describe("The name of the Vercel project.")
|
|
1088
|
-
}).
|
|
1089
|
-
const versionDetailSchema = z__namespace.
|
|
1088
|
+
}).describe("Basic metadata about a Vercel project connected to a v0 project.");
|
|
1089
|
+
const versionDetailSchema = z__namespace.strictObject({
|
|
1090
1090
|
id: z__namespace.string().describe("A unique identifier for the version."),
|
|
1091
1091
|
object: z__namespace.enum([
|
|
1092
1092
|
"version"
|
|
@@ -1100,16 +1100,16 @@ const versionDetailSchema = z__namespace.object({
|
|
|
1100
1100
|
screenshotUrl: z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
|
|
1101
1101
|
createdAt: z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
|
|
1102
1102
|
updatedAt: z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format."),
|
|
1103
|
-
files: z__namespace.array(z__namespace.
|
|
1103
|
+
files: z__namespace.array(z__namespace.strictObject({
|
|
1104
1104
|
object: z__namespace.enum([
|
|
1105
1105
|
"file"
|
|
1106
1106
|
]).describe("Fixed value identifying this object as a file."),
|
|
1107
1107
|
name: z__namespace.string().describe("The name of the file, including its extension."),
|
|
1108
1108
|
content: z__namespace.string().describe("The full contents of the file as a raw string."),
|
|
1109
1109
|
locked: z__namespace.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
|
|
1110
|
-
})
|
|
1111
|
-
}).
|
|
1112
|
-
const versionSummarySchema = z__namespace.
|
|
1110
|
+
})).describe("A list of files that were generated or included in this version.")
|
|
1111
|
+
}).describe("Detailed version data including file contents.");
|
|
1112
|
+
const versionSummarySchema = z__namespace.strictObject({
|
|
1113
1113
|
id: z__namespace.string().describe("A unique identifier for the version."),
|
|
1114
1114
|
object: z__namespace.enum([
|
|
1115
1115
|
"version"
|
|
@@ -1123,12 +1123,12 @@ const versionSummarySchema = z__namespace.object({
|
|
|
1123
1123
|
screenshotUrl: z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
|
|
1124
1124
|
createdAt: z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
|
|
1125
1125
|
updatedAt: z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
|
|
1126
|
-
}).
|
|
1127
|
-
const versionSummaryListSchema = z__namespace.
|
|
1126
|
+
}).describe("Summary of a generated version of a chat, including its status and optional demo link.");
|
|
1127
|
+
const versionSummaryListSchema = z__namespace.strictObject({
|
|
1128
1128
|
object: z__namespace.enum([
|
|
1129
1129
|
"list"
|
|
1130
1130
|
]).describe("Fixed value identifying this as a list response."),
|
|
1131
|
-
data: z__namespace.array(z__namespace.
|
|
1131
|
+
data: z__namespace.array(z__namespace.strictObject({
|
|
1132
1132
|
id: z__namespace.string().describe("A unique identifier for the version."),
|
|
1133
1133
|
object: z__namespace.enum([
|
|
1134
1134
|
"version"
|
|
@@ -1142,77 +1142,77 @@ const versionSummaryListSchema = z__namespace.object({
|
|
|
1142
1142
|
screenshotUrl: z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
|
|
1143
1143
|
createdAt: z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
|
|
1144
1144
|
updatedAt: z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
|
|
1145
|
-
})
|
|
1146
|
-
pagination: z__namespace.
|
|
1145
|
+
})).describe("Array of version summaries in this page of results."),
|
|
1146
|
+
pagination: z__namespace.strictObject({
|
|
1147
1147
|
hasMore: z__namespace.boolean().describe("Indicates if there are more results available beyond this page."),
|
|
1148
1148
|
nextCursor: z__namespace.string().optional().describe("Cursor for fetching the next page of results."),
|
|
1149
1149
|
nextUrl: z__namespace.string().optional().describe("API URL for retrieving the next page of results.")
|
|
1150
|
-
}).
|
|
1151
|
-
}).
|
|
1152
|
-
const unauthorizedErrorSchema = z__namespace.
|
|
1153
|
-
error: z__namespace.
|
|
1150
|
+
}).describe("Pagination metadata for navigating through multiple pages of results.")
|
|
1151
|
+
}).describe("List response containing multiple version summaries with cursor-based pagination.");
|
|
1152
|
+
const unauthorizedErrorSchema = z__namespace.strictObject({
|
|
1153
|
+
error: z__namespace.strictObject({
|
|
1154
1154
|
message: z__namespace.string(),
|
|
1155
1155
|
type: z__namespace.enum([
|
|
1156
1156
|
"unauthorized_error"
|
|
1157
1157
|
])
|
|
1158
|
-
})
|
|
1159
|
-
})
|
|
1160
|
-
const forbiddenErrorSchema = z__namespace.
|
|
1161
|
-
error: z__namespace.
|
|
1158
|
+
})
|
|
1159
|
+
});
|
|
1160
|
+
const forbiddenErrorSchema = z__namespace.strictObject({
|
|
1161
|
+
error: z__namespace.strictObject({
|
|
1162
1162
|
message: z__namespace.string(),
|
|
1163
1163
|
type: z__namespace.enum([
|
|
1164
1164
|
"forbidden_error"
|
|
1165
1165
|
])
|
|
1166
|
-
})
|
|
1167
|
-
})
|
|
1168
|
-
const notFoundErrorSchema = z__namespace.
|
|
1169
|
-
error: z__namespace.
|
|
1166
|
+
})
|
|
1167
|
+
});
|
|
1168
|
+
const notFoundErrorSchema = z__namespace.strictObject({
|
|
1169
|
+
error: z__namespace.strictObject({
|
|
1170
1170
|
message: z__namespace.string(),
|
|
1171
1171
|
type: z__namespace.enum([
|
|
1172
1172
|
"not_found_error"
|
|
1173
1173
|
])
|
|
1174
|
-
})
|
|
1175
|
-
})
|
|
1176
|
-
const conflictErrorSchema = z__namespace.
|
|
1177
|
-
error: z__namespace.
|
|
1174
|
+
})
|
|
1175
|
+
});
|
|
1176
|
+
const conflictErrorSchema = z__namespace.strictObject({
|
|
1177
|
+
error: z__namespace.strictObject({
|
|
1178
1178
|
message: z__namespace.string(),
|
|
1179
1179
|
type: z__namespace.enum([
|
|
1180
1180
|
"conflict_error"
|
|
1181
1181
|
])
|
|
1182
|
-
})
|
|
1183
|
-
})
|
|
1184
|
-
const payloadTooLargeErrorSchema = z__namespace.
|
|
1185
|
-
error: z__namespace.
|
|
1182
|
+
})
|
|
1183
|
+
});
|
|
1184
|
+
const payloadTooLargeErrorSchema = z__namespace.strictObject({
|
|
1185
|
+
error: z__namespace.strictObject({
|
|
1186
1186
|
message: z__namespace.string(),
|
|
1187
1187
|
type: z__namespace.enum([
|
|
1188
1188
|
"payload_too_large_error"
|
|
1189
1189
|
])
|
|
1190
|
-
})
|
|
1191
|
-
})
|
|
1192
|
-
const unprocessableEntityErrorSchema = z__namespace.
|
|
1193
|
-
error: z__namespace.
|
|
1190
|
+
})
|
|
1191
|
+
});
|
|
1192
|
+
const unprocessableEntityErrorSchema = z__namespace.strictObject({
|
|
1193
|
+
error: z__namespace.strictObject({
|
|
1194
1194
|
message: z__namespace.string(),
|
|
1195
1195
|
type: z__namespace.enum([
|
|
1196
1196
|
"unprocessable_entity_error"
|
|
1197
1197
|
])
|
|
1198
|
-
})
|
|
1199
|
-
})
|
|
1200
|
-
const tooManyRequestsErrorSchema = z__namespace.
|
|
1201
|
-
error: z__namespace.
|
|
1198
|
+
})
|
|
1199
|
+
});
|
|
1200
|
+
const tooManyRequestsErrorSchema = z__namespace.strictObject({
|
|
1201
|
+
error: z__namespace.strictObject({
|
|
1202
1202
|
message: z__namespace.string(),
|
|
1203
1203
|
type: z__namespace.enum([
|
|
1204
1204
|
"too_many_requests_error"
|
|
1205
1205
|
])
|
|
1206
|
-
})
|
|
1207
|
-
})
|
|
1208
|
-
const internalServerErrorSchema = z__namespace.
|
|
1209
|
-
error: z__namespace.
|
|
1206
|
+
})
|
|
1207
|
+
});
|
|
1208
|
+
const internalServerErrorSchema = z__namespace.strictObject({
|
|
1209
|
+
error: z__namespace.strictObject({
|
|
1210
1210
|
message: z__namespace.string(),
|
|
1211
1211
|
type: z__namespace.enum([
|
|
1212
1212
|
"internal_server_error"
|
|
1213
1213
|
])
|
|
1214
|
-
})
|
|
1215
|
-
})
|
|
1214
|
+
})
|
|
1215
|
+
});
|
|
1216
1216
|
const chatsCreateStatus200Schema = z__namespace.unknown();
|
|
1217
1217
|
const chatsCreateStatus401Schema = z__namespace.unknown();
|
|
1218
1218
|
const chatsCreateStatus403Schema = z__namespace.unknown();
|