v0-api 0.3.1 → 1.0.16

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.
Files changed (43) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +13 -3
  3. package/dist/{components-eb0j7zgr.d.ts → components-lojiycjm.d.ts} +165 -284
  4. package/dist/components-lojiycjm.d.ts.map +1 -0
  5. package/dist/components-mcjsnuad.d.ts +894 -0
  6. package/dist/components-mcjsnuad.d.ts.map +1 -0
  7. package/dist/components.cjs +1567 -63
  8. package/dist/components.d.cts +1 -1
  9. package/dist/components.d.mts +1 -1
  10. package/dist/components.mjs +1509 -1
  11. package/dist/effect.cjs +131 -24
  12. package/dist/effect.d.cts +75 -5
  13. package/dist/effect.d.cts.map +1 -1
  14. package/dist/effect.d.mts +75 -5
  15. package/dist/effect.d.mts.map +1 -1
  16. package/dist/effect.mjs +125 -4
  17. package/dist/index.cjs +139 -23
  18. package/dist/index.d.cts +13 -8
  19. package/dist/index.d.cts.map +1 -1
  20. package/dist/index.d.mts +13 -8
  21. package/dist/index.d.mts.map +1 -1
  22. package/dist/index.d.ts +21676 -7155
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.mjs +30 -25
  25. package/dist/{schemas-mph32a3e.cjs → schemas-eef01xgn.cjs} +2004 -590
  26. package/dist/schemas-kunw251r.js +3825 -0
  27. package/dist/schemas.cjs +78 -1
  28. package/dist/schemas.d.cts +13169 -788
  29. package/dist/schemas.d.cts.map +1 -1
  30. package/dist/schemas.d.mts +13169 -788
  31. package/dist/schemas.d.mts.map +1 -1
  32. package/dist/schemas.mjs +1 -1
  33. package/dist/types.cjs +249 -10
  34. package/dist/types.d.cts +2943 -686
  35. package/dist/types.d.cts.map +1 -1
  36. package/dist/types.d.mts +2943 -686
  37. package/dist/types.d.mts.map +1 -1
  38. package/dist/types.mjs +215 -10
  39. package/package.json +18 -15
  40. package/dist/components-da0zh5te.cjs +0 -1497
  41. package/dist/components-eb0j7zgr.d.ts.map +0 -1
  42. package/dist/components-ja14lgg1.js +0 -1435
  43. package/dist/schemas-mkhkzrad.js +0 -2488
@@ -0,0 +1,3825 @@
1
+ import * as z from 'zod';
2
+
3
+ // @ts-nocheck
4
+ const chatDetailSchema = z.strictObject({
5
+ id: z.string().describe("A unique identifier for the chat."),
6
+ object: z.enum([
7
+ "chat"
8
+ ]).describe("Fixed value identifying this object as a chat."),
9
+ shareable: z.boolean().describe("Indicates whether the chat can be shared via public link."),
10
+ privacy: z.enum([
11
+ "private",
12
+ "public",
13
+ "team",
14
+ "team-edit",
15
+ "unlisted"
16
+ ]).describe("Defines the visibility of the chat—private, team-only, or public."),
17
+ name: z.string().optional().describe("An optional name assigned to the chat by the user."),
18
+ title: z.string().optional().describe("Deprecated title field preserved for backward compatibility."),
19
+ createdAt: z.iso.datetime({
20
+ offset: true
21
+ }).describe("The ISO timestamp representing when the chat was created."),
22
+ updatedAt: z.string().optional().describe("The ISO timestamp of the last update to the chat."),
23
+ favorite: z.boolean().describe("Indicates whether the chat is marked as a favorite."),
24
+ authorId: z.string().describe("The ID of the user who created the chat."),
25
+ projectId: z.string().optional().describe("Optional ID of the v0 project associated with this chat."),
26
+ vercelProjectId: z.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
27
+ webUrl: z.string().describe("Web URL to view this chat in the browser."),
28
+ apiUrl: z.string().describe("API URL to access this chat via the API."),
29
+ latestVersion: z.strictObject({
30
+ id: z.string().describe("A unique identifier for the version."),
31
+ object: z.enum([
32
+ "version"
33
+ ]).describe("Fixed value identifying this object as a version."),
34
+ status: z.enum([
35
+ "completed",
36
+ "failed",
37
+ "pending"
38
+ ]).describe("The current status of the version generation process."),
39
+ demoUrl: z.string().optional().describe("Optional URL for previewing the generated output."),
40
+ screenshotUrl: z.string().optional().describe("URL to retrieve a screenshot of this version."),
41
+ createdAt: z.iso.datetime({
42
+ offset: true
43
+ }).describe("The date and time when the version was created, in ISO 8601 format."),
44
+ updatedAt: z.iso.datetime({
45
+ offset: true
46
+ }).optional().describe("The date and time when the version was last updated, in ISO 8601 format."),
47
+ files: z.array(z.strictObject({
48
+ object: z.enum([
49
+ "file"
50
+ ]).describe("Fixed value identifying this object as a file."),
51
+ name: z.string().describe("The name of the file, including its extension."),
52
+ content: z.string().describe("The full contents of the file as a raw string."),
53
+ locked: z.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
54
+ })).describe("A list of files that were generated or included in this version.")
55
+ }).optional().describe("Full details of the most recent generated version, if available."),
56
+ metadata: z.record(z.string(), z.string()).describe("Arbitrary key-value data associated with this chat."),
57
+ url: z.string().describe("The canonical URL to access this chat."),
58
+ messages: z.array(z.strictObject({
59
+ id: z.string().describe("A unique identifier for the message."),
60
+ object: z.enum([
61
+ "message"
62
+ ]).describe("Fixed value identifying this object as a message."),
63
+ content: z.string().describe("The main text content of the message."),
64
+ experimental_content: z.array(z.union([
65
+ z.tuple([
66
+ z.literal(0),
67
+ z.array(z.unknown())
68
+ ]),
69
+ z.tuple([
70
+ z.literal(1),
71
+ z.strictObject({
72
+ toJSONSchema: z.string(),
73
+ def: z.string(),
74
+ type: z.string(),
75
+ check: z.string(),
76
+ with: z.string(),
77
+ clone: z.string(),
78
+ brand: z.string(),
79
+ register: z.string(),
80
+ parse: z.string(),
81
+ safeParse: z.string(),
82
+ parseAsync: z.string(),
83
+ safeParseAsync: z.string(),
84
+ spa: z.string(),
85
+ encode: z.string(),
86
+ decode: z.string(),
87
+ encodeAsync: z.string(),
88
+ decodeAsync: z.string(),
89
+ safeEncode: z.string(),
90
+ safeDecode: z.string(),
91
+ safeEncodeAsync: z.string(),
92
+ safeDecodeAsync: z.string(),
93
+ refine: z.string(),
94
+ superRefine: z.string(),
95
+ overwrite: z.string(),
96
+ optional: z.string(),
97
+ exactOptional: z.string(),
98
+ nullable: z.string(),
99
+ nullish: z.string(),
100
+ nonoptional: z.string(),
101
+ array: z.string(),
102
+ or: z.string(),
103
+ and: z.string(),
104
+ transform: z.string(),
105
+ default: z.string(),
106
+ prefault: z.string(),
107
+ catch: z.string(),
108
+ pipe: z.string(),
109
+ readonly: z.string(),
110
+ describe: z.string(),
111
+ meta: z.string(),
112
+ isOptional: z.string(),
113
+ isNullable: z.string(),
114
+ apply: z.string(),
115
+ keyof: z.string(),
116
+ catchall: z.string(),
117
+ passthrough: z.string(),
118
+ loose: z.string(),
119
+ strict: z.string(),
120
+ strip: z.string(),
121
+ extend: z.string(),
122
+ safeExtend: z.string(),
123
+ merge: z.string(),
124
+ pick: z.string(),
125
+ omit: z.string(),
126
+ partial: z.string(),
127
+ required: z.string()
128
+ })
129
+ ])
130
+ ])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
131
+ createdAt: z.string().describe("The ISO timestamp representing when the message was created."),
132
+ updatedAt: z.iso.datetime({
133
+ offset: true
134
+ }).optional().describe("The ISO timestamp representing when the message was last updated."),
135
+ type: z.enum([
136
+ "added-environment-variables",
137
+ "added-integration",
138
+ "answered-questions",
139
+ "auto-fix-with-v0",
140
+ "cloned-repo",
141
+ "deleted-file",
142
+ "design-mode",
143
+ "edited-file",
144
+ "fix-cve",
145
+ "fix-with-v0",
146
+ "forked-block",
147
+ "forked-chat",
148
+ "manual-commit",
149
+ "message",
150
+ "moved-file",
151
+ "open-in-v0",
152
+ "pull-changes",
153
+ "refinement",
154
+ "renamed-file",
155
+ "replace-src",
156
+ "reverted-block",
157
+ "sync-git"
158
+ ]).describe("Indicates the format or category of the message, such as plain text or code."),
159
+ role: z.enum([
160
+ "assistant",
161
+ "user"
162
+ ]).describe("Specifies whether the message was sent by the user or the assistant."),
163
+ finishReason: z.enum([
164
+ "content-filter",
165
+ "error",
166
+ "length",
167
+ "other",
168
+ "stop",
169
+ "tool-calls"
170
+ ]).optional().describe("The reason why the message generation finished."),
171
+ apiUrl: z.string().describe("API URL to access this message via the API."),
172
+ authorId: z.string().nullable().describe("The ID of the user who sent the message."),
173
+ parentId: z.string().nullish().describe("The ID of the parent message."),
174
+ attachments: z.array(z.strictObject({
175
+ url: z.string().describe("The URL where the attachment file can be accessed."),
176
+ name: z.string().optional().describe("The original filename of the attachment."),
177
+ contentType: z.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
178
+ size: z.number().describe("The size of the attachment file in bytes."),
179
+ content: z.string().optional().describe("The base64-encoded content of the attachment file, if available."),
180
+ type: z.enum([
181
+ "figma",
182
+ "screenshot",
183
+ "zip"
184
+ ]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
185
+ })).optional()
186
+ })).describe("All messages exchanged in the chat, including user and assistant entries."),
187
+ files: z.array(z.strictObject({
188
+ lang: z.string().describe("Programming language used in the file (e.g., JavaScript, Python)."),
189
+ meta: z.record(z.string(), z.string()).describe("A key-value map of metadata associated with the file (e.g., path, type)."),
190
+ source: z.string().describe("The origin or identifier of the file source (e.g., path or upload label).")
191
+ })).optional().describe("Optional array of files associated with the chat context."),
192
+ demo: z.string().optional().describe("Deprecated demo URL used for previewing the chat result."),
193
+ text: z.string().describe("The main user prompt or instruction that started the chat."),
194
+ modelConfiguration: z.strictObject({
195
+ modelId: z.string().min(3).max(200).regex(/^[a-z0-9][a-z0-9._-]*\/[a-z0-9][a-z0-9._/-]*$/).optional().default("v0-pro").describe("Model to use for the generation. `v0-auto` is deprecated and falls back to `v0-pro`."),
196
+ imageGenerations: z.boolean().optional().default(false).describe("Enables image generations to generate up to 5 images per version."),
197
+ thinking: z.boolean().optional().default(false).describe("Enables thinking to generate a response in multiple steps."),
198
+ thinkingEffort: z.union([
199
+ z.enum([
200
+ "none",
201
+ "minimal",
202
+ "low",
203
+ "medium",
204
+ "high",
205
+ "max",
206
+ "xhigh"
207
+ ]),
208
+ z.null()
209
+ ]).optional(),
210
+ fast: z.boolean().optional()
211
+ }).optional().describe("The configuration used to generate responses in this chat."),
212
+ permissions: z.strictObject({
213
+ write: z.boolean().describe("If true, the user has write access to the chat.")
214
+ })
215
+ }).describe("Detailed representation of a chat, including its messages, files, versions, and model configuration.");
216
+ const chatSummarySchema = z.strictObject({
217
+ id: z.string().describe("A unique identifier for the chat."),
218
+ object: z.enum([
219
+ "chat"
220
+ ]).describe("Fixed value identifying this object as a chat."),
221
+ shareable: z.boolean().describe("Indicates whether the chat can be shared via public link."),
222
+ privacy: z.enum([
223
+ "private",
224
+ "public",
225
+ "team",
226
+ "team-edit",
227
+ "unlisted"
228
+ ]).describe("Defines the visibility of the chat—private, team-only, or public."),
229
+ name: z.string().optional().describe("An optional name assigned to the chat by the user."),
230
+ title: z.string().optional().describe("Deprecated title field preserved for backward compatibility."),
231
+ createdAt: z.iso.datetime({
232
+ offset: true
233
+ }).describe("The ISO timestamp representing when the chat was created."),
234
+ updatedAt: z.string().optional().describe("The ISO timestamp of the last update to the chat."),
235
+ favorite: z.boolean().describe("Indicates whether the chat is marked as a favorite."),
236
+ authorId: z.string().describe("The ID of the user who created the chat."),
237
+ projectId: z.string().optional().describe("Optional ID of the v0 project associated with this chat."),
238
+ vercelProjectId: z.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
239
+ webUrl: z.string().describe("Web URL to view this chat in the browser."),
240
+ apiUrl: z.string().describe("API URL to access this chat via the API."),
241
+ latestVersion: z.strictObject({
242
+ id: z.string().describe("A unique identifier for the version."),
243
+ object: z.enum([
244
+ "version"
245
+ ]).describe("Fixed value identifying this object as a version."),
246
+ status: z.enum([
247
+ "completed",
248
+ "failed",
249
+ "pending"
250
+ ]).describe("The current status of the version generation process."),
251
+ demoUrl: z.string().optional().describe("Optional URL for previewing the generated output."),
252
+ screenshotUrl: z.string().optional().describe("URL to retrieve a screenshot of this version."),
253
+ createdAt: z.iso.datetime({
254
+ offset: true
255
+ }).describe("The date and time when the version was created, in ISO 8601 format."),
256
+ updatedAt: z.iso.datetime({
257
+ offset: true
258
+ }).optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
259
+ }).optional().describe("The most recent generated version of the chat, if available."),
260
+ metadata: z.record(z.string(), z.string()).describe("Arbitrary key-value data associated with this chat.")
261
+ }).describe("Summary of a chat, including metadata like privacy, author, latest version, and URLs.");
262
+ const deploymentDetailSchema = z.strictObject({
263
+ id: z.string().describe("A unique identifier for the deployment."),
264
+ object: z.enum([
265
+ "deployment"
266
+ ]).describe("Fixed value identifying this object as a deployment."),
267
+ inspectorUrl: z.string().describe("URL to the deployment inspector."),
268
+ chatId: z.string().describe("The ID of the chat that this deployment is scoped to."),
269
+ projectId: z.string().optional().describe("The ID of the project that this deployment is scoped to."),
270
+ versionId: z.string().describe("The ID of the version that this deployment is scoped to."),
271
+ apiUrl: z.url().describe("The API endpoint URL for accessing this deployment programmatically."),
272
+ webUrl: z.url().describe("The web URL where the deployment can be viewed or managed.")
273
+ });
274
+ const deploymentSummarySchema = z.strictObject({
275
+ id: z.string().describe("A unique identifier for the deployment."),
276
+ object: z.enum([
277
+ "deployment"
278
+ ]).describe("Fixed value identifying this object as a deployment."),
279
+ inspectorUrl: z.string().describe("URL to the deployment inspector."),
280
+ chatId: z.string().describe("The ID of the chat that this deployment is scoped to."),
281
+ projectId: z.string().optional().describe("The ID of the project that this deployment is scoped to."),
282
+ versionId: z.string().describe("The ID of the version that this deployment is scoped to."),
283
+ apiUrl: z.url().describe("The API endpoint URL for accessing this deployment programmatically."),
284
+ webUrl: z.url().describe("The web URL where the deployment can be viewed or managed.")
285
+ });
286
+ const environmentVariableDetailSchemaSchema = z.strictObject({
287
+ id: z.string().describe("A unique identifier for the environment variable."),
288
+ object: z.enum([
289
+ "environment_variable"
290
+ ]).describe("The object type."),
291
+ key: z.string().describe("The name of the environment variable."),
292
+ value: z.string().describe("The value of the environment variable."),
293
+ decrypted: z.boolean().describe("Whether the value is decrypted or encrypted."),
294
+ createdAt: z.number().describe("The timestamp when the environment variable was created."),
295
+ updatedAt: z.number().optional().describe("The timestamp when the environment variable was last updated.")
296
+ }).describe("Detailed information for an environment variable including its value.");
297
+ const environmentVariableSummarySchemaSchema = z.strictObject({
298
+ id: z.string().describe("A unique identifier for the environment variable."),
299
+ object: z.enum([
300
+ "environment_variable"
301
+ ]).describe("The object type."),
302
+ key: z.string().describe("The name of the environment variable."),
303
+ value: z.string().describe("The value of the environment variable."),
304
+ decrypted: z.boolean().describe("Whether the value is decrypted or encrypted."),
305
+ createdAt: z.number().describe("The timestamp when the environment variable was created."),
306
+ updatedAt: z.number().optional().describe("The timestamp when the environment variable was last updated.")
307
+ }).describe("Summary information for an environment variable.");
308
+ const environmentVariablesListSchemaSchema = z.strictObject({
309
+ object: z.enum([
310
+ "list"
311
+ ]).describe("Fixed value identifying this as a list response."),
312
+ data: z.array(z.strictObject({
313
+ id: z.string().describe("A unique identifier for the environment variable."),
314
+ object: z.enum([
315
+ "environment_variable"
316
+ ]).describe("The object type."),
317
+ key: z.string().describe("The name of the environment variable."),
318
+ value: z.string().describe("The value of the environment variable."),
319
+ decrypted: z.boolean().describe("Whether the value is decrypted or encrypted."),
320
+ createdAt: z.number().describe("The timestamp when the environment variable was created."),
321
+ updatedAt: z.number().optional().describe("The timestamp when the environment variable was last updated.")
322
+ })).describe("Array of environment variable details.")
323
+ }).describe("List response containing environment variables.");
324
+ const fileDetailSchema = z.strictObject({
325
+ object: z.enum([
326
+ "file"
327
+ ]).describe("Fixed value identifying this object as a file."),
328
+ name: z.string().describe("The name of the file, including its extension."),
329
+ content: z.string().describe("The full contents of the file as a raw string."),
330
+ locked: z.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
331
+ }).describe("Detailed representation of a file, including its content and lock status.");
332
+ const fileSummarySchema = z.strictObject({
333
+ object: z.enum([
334
+ "file"
335
+ ]).describe("Fixed value identifying this object as a file."),
336
+ name: z.string().describe("The name of the file, including its extension.")
337
+ }).describe("Basic metadata about a file, such as its type and name.");
338
+ const hookDetailSchema = z.strictObject({
339
+ id: z.string().describe("A unique identifier for the webhook."),
340
+ object: z.enum([
341
+ "hook"
342
+ ]).describe("Fixed value identifying this object as a webhook."),
343
+ name: z.string().describe("A user-defined name to label the webhook."),
344
+ events: z.array(z.enum([
345
+ "chat.created",
346
+ "chat.deleted",
347
+ "chat.updated",
348
+ "message.created",
349
+ "message.deleted",
350
+ "message.finished",
351
+ "message.updated"
352
+ ])).describe("List of event types this webhook is subscribed to."),
353
+ chatId: z.string().optional().describe("Optional ID of the chat that this webhook is scoped to."),
354
+ url: z.string().describe("Target URL that receives event payloads for this webhook.")
355
+ }).describe("Full configuration details for a webhook, including its scope and subscription.");
356
+ const hookEventDetailSchema = z.strictObject({
357
+ id: z.string().describe("A unique identifier for the webhook event log entry."),
358
+ object: z.enum([
359
+ "hook_event"
360
+ ]).describe("Fixed value identifying this object as a webhook event."),
361
+ event: z.enum([
362
+ "chat.created",
363
+ "chat.deleted",
364
+ "chat.updated",
365
+ "message.created",
366
+ "message.deleted",
367
+ "message.finished",
368
+ "message.updated"
369
+ ]).describe("The type of event that triggered the webhook."),
370
+ status: z.enum([
371
+ "error",
372
+ "pending",
373
+ "success"
374
+ ]).optional().default("pending").describe("The delivery status of the webhook (e.g., delivered, failed)."),
375
+ createdAt: z.iso.datetime({
376
+ offset: true
377
+ }).describe("Timestamp of when the webhook event was triggered.")
378
+ }).describe("Detailed record of a webhook event, including its type, status, and timestamp.");
379
+ const hookSummarySchema = z.strictObject({
380
+ id: z.string().describe("A unique identifier for the webhook."),
381
+ object: z.enum([
382
+ "hook"
383
+ ]).describe("Fixed value identifying this object as a webhook."),
384
+ name: z.string().describe("A user-defined name to label the webhook.")
385
+ }).describe("Summary of a webhook, including its ID and display name.");
386
+ const integrationConnectionDetailSchemaSchema = z.strictObject({
387
+ object: z.enum([
388
+ "integration_connection"
389
+ ]).describe("The object type."),
390
+ id: z.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
391
+ connected: z.boolean().describe("Whether the integration is connected to the project."),
392
+ integration: z.strictObject({
393
+ id: z.string().describe("The ID of the integration."),
394
+ object: z.enum([
395
+ "integration"
396
+ ]).describe("The object type."),
397
+ slug: z.string().describe("The slug of the integration."),
398
+ name: z.string().describe("The name of the integration.")
399
+ }).describe("Information about the connected integration."),
400
+ metadata: z.record(z.string(), z.unknown()).optional().describe("Additional metadata about the integration connection.")
401
+ }).describe("Detailed information about an integration connection to a project.");
402
+ const integrationConnectionListSchemaSchema = z.strictObject({
403
+ object: z.enum([
404
+ "list"
405
+ ]).describe("Fixed value identifying this as a list response."),
406
+ data: z.array(z.strictObject({
407
+ object: z.enum([
408
+ "integration_connection"
409
+ ]).describe("The object type."),
410
+ id: z.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
411
+ connected: z.boolean().describe("Whether the integration is connected to the project."),
412
+ integration: z.strictObject({
413
+ id: z.string().describe("The ID of the integration."),
414
+ object: z.enum([
415
+ "integration"
416
+ ]).describe("The object type."),
417
+ slug: z.string().describe("The slug of the integration."),
418
+ name: z.string().describe("The name of the integration.")
419
+ }).describe("Information about the connected integration.")
420
+ })).describe("Array of integration connection summaries.")
421
+ }).describe("List response containing integration connections.");
422
+ const integrationConnectionSummarySchemaSchema = z.strictObject({
423
+ object: z.enum([
424
+ "integration_connection"
425
+ ]).describe("The object type."),
426
+ id: z.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
427
+ connected: z.boolean().describe("Whether the integration is connected to the project."),
428
+ integration: z.strictObject({
429
+ id: z.string().describe("The ID of the integration."),
430
+ object: z.enum([
431
+ "integration"
432
+ ]).describe("The object type."),
433
+ slug: z.string().describe("The slug of the integration."),
434
+ name: z.string().describe("The name of the integration.")
435
+ }).describe("Information about the connected integration.")
436
+ }).describe("Summary information about an integration connection to a project.");
437
+ const integrationDetailSchemaSchema = z.strictObject({
438
+ id: z.string().describe("The ID of the integration."),
439
+ object: z.enum([
440
+ "integration"
441
+ ]).describe("The object type."),
442
+ slug: z.string().describe("The slug of the integration."),
443
+ name: z.string().describe("The name of the integration."),
444
+ description: z.string().describe("A short description of the integration."),
445
+ iconUrl: z.string().describe("URL to the integration icon.")
446
+ }).describe("Detailed information about an integration.");
447
+ const integrationListSchemaSchema = z.strictObject({
448
+ object: z.enum([
449
+ "list"
450
+ ]).describe("Fixed value identifying this as a list response."),
451
+ data: z.array(z.strictObject({
452
+ id: z.string().describe("The ID of the integration."),
453
+ object: z.enum([
454
+ "integration"
455
+ ]).describe("The object type."),
456
+ slug: z.string().describe("The slug of the integration."),
457
+ name: z.string().describe("The name of the integration."),
458
+ description: z.string().describe("A short description of the integration."),
459
+ iconUrl: z.string().describe("URL to the integration icon.")
460
+ })).describe("Array of integration details.")
461
+ }).describe("List of available integrations.");
462
+ const integrationSummarySchemaSchema = z.strictObject({
463
+ id: z.string().describe("The ID of the integration."),
464
+ object: z.enum([
465
+ "integration"
466
+ ]).describe("The object type."),
467
+ slug: z.string().describe("The slug of the integration."),
468
+ name: z.string().describe("The name of the integration.")
469
+ }).describe("Basic information about an integration.");
470
+ const messageDetailSchema = z.strictObject({
471
+ id: z.string().describe("A unique identifier for the message."),
472
+ object: z.enum([
473
+ "message"
474
+ ]).describe("Fixed value identifying this object as a message."),
475
+ content: z.string().describe("The main text content of the message."),
476
+ experimental_content: z.array(z.union([
477
+ z.tuple([
478
+ z.literal(0),
479
+ z.array(z.unknown())
480
+ ]),
481
+ z.tuple([
482
+ z.literal(1),
483
+ z.strictObject({
484
+ toJSONSchema: z.string(),
485
+ def: z.string(),
486
+ type: z.string(),
487
+ check: z.string(),
488
+ with: z.string(),
489
+ clone: z.string(),
490
+ brand: z.string(),
491
+ register: z.string(),
492
+ parse: z.string(),
493
+ safeParse: z.string(),
494
+ parseAsync: z.string(),
495
+ safeParseAsync: z.string(),
496
+ spa: z.string(),
497
+ encode: z.string(),
498
+ decode: z.string(),
499
+ encodeAsync: z.string(),
500
+ decodeAsync: z.string(),
501
+ safeEncode: z.string(),
502
+ safeDecode: z.string(),
503
+ safeEncodeAsync: z.string(),
504
+ safeDecodeAsync: z.string(),
505
+ refine: z.string(),
506
+ superRefine: z.string(),
507
+ overwrite: z.string(),
508
+ optional: z.string(),
509
+ exactOptional: z.string(),
510
+ nullable: z.string(),
511
+ nullish: z.string(),
512
+ nonoptional: z.string(),
513
+ array: z.string(),
514
+ or: z.string(),
515
+ and: z.string(),
516
+ transform: z.string(),
517
+ default: z.string(),
518
+ prefault: z.string(),
519
+ catch: z.string(),
520
+ pipe: z.string(),
521
+ readonly: z.string(),
522
+ describe: z.string(),
523
+ meta: z.string(),
524
+ isOptional: z.string(),
525
+ isNullable: z.string(),
526
+ apply: z.string(),
527
+ keyof: z.string(),
528
+ catchall: z.string(),
529
+ passthrough: z.string(),
530
+ loose: z.string(),
531
+ strict: z.string(),
532
+ strip: z.string(),
533
+ extend: z.string(),
534
+ safeExtend: z.string(),
535
+ merge: z.string(),
536
+ pick: z.string(),
537
+ omit: z.string(),
538
+ partial: z.string(),
539
+ required: z.string()
540
+ })
541
+ ])
542
+ ])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
543
+ createdAt: z.string().describe("The ISO timestamp representing when the message was created."),
544
+ updatedAt: z.iso.datetime({
545
+ offset: true
546
+ }).optional().describe("The ISO timestamp representing when the message was last updated."),
547
+ type: z.enum([
548
+ "added-environment-variables",
549
+ "added-integration",
550
+ "answered-questions",
551
+ "auto-fix-with-v0",
552
+ "cloned-repo",
553
+ "deleted-file",
554
+ "design-mode",
555
+ "edited-file",
556
+ "fix-cve",
557
+ "fix-with-v0",
558
+ "forked-block",
559
+ "forked-chat",
560
+ "manual-commit",
561
+ "message",
562
+ "moved-file",
563
+ "open-in-v0",
564
+ "pull-changes",
565
+ "refinement",
566
+ "renamed-file",
567
+ "replace-src",
568
+ "reverted-block",
569
+ "sync-git"
570
+ ]).describe("Indicates the format or category of the message, such as plain text or code."),
571
+ role: z.enum([
572
+ "assistant",
573
+ "user"
574
+ ]).describe("Specifies whether the message was sent by the user or the assistant."),
575
+ finishReason: z.enum([
576
+ "content-filter",
577
+ "error",
578
+ "length",
579
+ "other",
580
+ "stop",
581
+ "tool-calls"
582
+ ]).optional().describe("The reason why the message generation finished."),
583
+ apiUrl: z.string().describe("API URL to access this message via the API."),
584
+ authorId: z.string().nullable().describe("The ID of the user who sent the message."),
585
+ parentId: z.string().nullish().describe("The ID of the parent message."),
586
+ attachments: z.array(z.strictObject({
587
+ url: z.string().describe("The URL where the attachment file can be accessed."),
588
+ name: z.string().optional().describe("The original filename of the attachment."),
589
+ contentType: z.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
590
+ size: z.number().describe("The size of the attachment file in bytes."),
591
+ content: z.string().optional().describe("The base64-encoded content of the attachment file, if available."),
592
+ type: z.enum([
593
+ "figma",
594
+ "screenshot",
595
+ "zip"
596
+ ]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
597
+ })).optional(),
598
+ chatId: z.string().describe("The ID of the chat to which this message belongs.")
599
+ }).describe("Detailed message object extending MessageSummary with chat metadata.");
600
+ const messageSummarySchema = z.strictObject({
601
+ id: z.string().describe("A unique identifier for the message."),
602
+ object: z.enum([
603
+ "message"
604
+ ]).describe("Fixed value identifying this object as a message."),
605
+ content: z.string().describe("The main text content of the message."),
606
+ experimental_content: z.array(z.union([
607
+ z.tuple([
608
+ z.literal(0),
609
+ z.array(z.unknown())
610
+ ]),
611
+ z.tuple([
612
+ z.literal(1),
613
+ z.strictObject({
614
+ toJSONSchema: z.string(),
615
+ def: z.string(),
616
+ type: z.string(),
617
+ check: z.string(),
618
+ with: z.string(),
619
+ clone: z.string(),
620
+ brand: z.string(),
621
+ register: z.string(),
622
+ parse: z.string(),
623
+ safeParse: z.string(),
624
+ parseAsync: z.string(),
625
+ safeParseAsync: z.string(),
626
+ spa: z.string(),
627
+ encode: z.string(),
628
+ decode: z.string(),
629
+ encodeAsync: z.string(),
630
+ decodeAsync: z.string(),
631
+ safeEncode: z.string(),
632
+ safeDecode: z.string(),
633
+ safeEncodeAsync: z.string(),
634
+ safeDecodeAsync: z.string(),
635
+ refine: z.string(),
636
+ superRefine: z.string(),
637
+ overwrite: z.string(),
638
+ optional: z.string(),
639
+ exactOptional: z.string(),
640
+ nullable: z.string(),
641
+ nullish: z.string(),
642
+ nonoptional: z.string(),
643
+ array: z.string(),
644
+ or: z.string(),
645
+ and: z.string(),
646
+ transform: z.string(),
647
+ default: z.string(),
648
+ prefault: z.string(),
649
+ catch: z.string(),
650
+ pipe: z.string(),
651
+ readonly: z.string(),
652
+ describe: z.string(),
653
+ meta: z.string(),
654
+ isOptional: z.string(),
655
+ isNullable: z.string(),
656
+ apply: z.string(),
657
+ keyof: z.string(),
658
+ catchall: z.string(),
659
+ passthrough: z.string(),
660
+ loose: z.string(),
661
+ strict: z.string(),
662
+ strip: z.string(),
663
+ extend: z.string(),
664
+ safeExtend: z.string(),
665
+ merge: z.string(),
666
+ pick: z.string(),
667
+ omit: z.string(),
668
+ partial: z.string(),
669
+ required: z.string()
670
+ })
671
+ ])
672
+ ])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
673
+ createdAt: z.string().describe("The ISO timestamp representing when the message was created."),
674
+ updatedAt: z.iso.datetime({
675
+ offset: true
676
+ }).optional().describe("The ISO timestamp representing when the message was last updated."),
677
+ type: z.enum([
678
+ "added-environment-variables",
679
+ "added-integration",
680
+ "answered-questions",
681
+ "auto-fix-with-v0",
682
+ "cloned-repo",
683
+ "deleted-file",
684
+ "design-mode",
685
+ "edited-file",
686
+ "fix-cve",
687
+ "fix-with-v0",
688
+ "forked-block",
689
+ "forked-chat",
690
+ "manual-commit",
691
+ "message",
692
+ "moved-file",
693
+ "open-in-v0",
694
+ "pull-changes",
695
+ "refinement",
696
+ "renamed-file",
697
+ "replace-src",
698
+ "reverted-block",
699
+ "sync-git"
700
+ ]).describe("Indicates the format or category of the message, such as plain text or code."),
701
+ role: z.enum([
702
+ "assistant",
703
+ "user"
704
+ ]).describe("Specifies whether the message was sent by the user or the assistant."),
705
+ finishReason: z.enum([
706
+ "content-filter",
707
+ "error",
708
+ "length",
709
+ "other",
710
+ "stop",
711
+ "tool-calls"
712
+ ]).optional().describe("The reason why the message generation finished."),
713
+ apiUrl: z.string().describe("API URL to access this message via the API."),
714
+ authorId: z.string().nullable().describe("The ID of the user who sent the message."),
715
+ parentId: z.string().nullish().describe("The ID of the parent message."),
716
+ attachments: z.array(z.strictObject({
717
+ url: z.string().describe("The URL where the attachment file can be accessed."),
718
+ name: z.string().optional().describe("The original filename of the attachment."),
719
+ contentType: z.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
720
+ size: z.number().describe("The size of the attachment file in bytes."),
721
+ content: z.string().optional().describe("The base64-encoded content of the attachment file, if available."),
722
+ type: z.enum([
723
+ "figma",
724
+ "screenshot",
725
+ "zip"
726
+ ]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
727
+ })).optional()
728
+ }).describe("Summary of a single message within a chat, including role, content, type, timestamp, and API URL.");
729
+ const messageSummaryListSchema = z.strictObject({
730
+ object: z.enum([
731
+ "list"
732
+ ]).describe("Fixed value identifying this as a list response."),
733
+ data: z.array(z.strictObject({
734
+ id: z.string().describe("A unique identifier for the message."),
735
+ object: z.enum([
736
+ "message"
737
+ ]).describe("Fixed value identifying this object as a message."),
738
+ content: z.string().describe("The main text content of the message."),
739
+ experimental_content: z.array(z.union([
740
+ z.tuple([
741
+ z.literal(0),
742
+ z.array(z.unknown())
743
+ ]),
744
+ z.tuple([
745
+ z.literal(1),
746
+ z.strictObject({
747
+ toJSONSchema: z.string(),
748
+ def: z.string(),
749
+ type: z.string(),
750
+ check: z.string(),
751
+ with: z.string(),
752
+ clone: z.string(),
753
+ brand: z.string(),
754
+ register: z.string(),
755
+ parse: z.string(),
756
+ safeParse: z.string(),
757
+ parseAsync: z.string(),
758
+ safeParseAsync: z.string(),
759
+ spa: z.string(),
760
+ encode: z.string(),
761
+ decode: z.string(),
762
+ encodeAsync: z.string(),
763
+ decodeAsync: z.string(),
764
+ safeEncode: z.string(),
765
+ safeDecode: z.string(),
766
+ safeEncodeAsync: z.string(),
767
+ safeDecodeAsync: z.string(),
768
+ refine: z.string(),
769
+ superRefine: z.string(),
770
+ overwrite: z.string(),
771
+ optional: z.string(),
772
+ exactOptional: z.string(),
773
+ nullable: z.string(),
774
+ nullish: z.string(),
775
+ nonoptional: z.string(),
776
+ array: z.string(),
777
+ or: z.string(),
778
+ and: z.string(),
779
+ transform: z.string(),
780
+ default: z.string(),
781
+ prefault: z.string(),
782
+ catch: z.string(),
783
+ pipe: z.string(),
784
+ readonly: z.string(),
785
+ describe: z.string(),
786
+ meta: z.string(),
787
+ isOptional: z.string(),
788
+ isNullable: z.string(),
789
+ apply: z.string(),
790
+ keyof: z.string(),
791
+ catchall: z.string(),
792
+ passthrough: z.string(),
793
+ loose: z.string(),
794
+ strict: z.string(),
795
+ strip: z.string(),
796
+ extend: z.string(),
797
+ safeExtend: z.string(),
798
+ merge: z.string(),
799
+ pick: z.string(),
800
+ omit: z.string(),
801
+ partial: z.string(),
802
+ required: z.string()
803
+ })
804
+ ])
805
+ ])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
806
+ createdAt: z.string().describe("The ISO timestamp representing when the message was created."),
807
+ updatedAt: z.iso.datetime({
808
+ offset: true
809
+ }).optional().describe("The ISO timestamp representing when the message was last updated."),
810
+ type: z.enum([
811
+ "added-environment-variables",
812
+ "added-integration",
813
+ "answered-questions",
814
+ "auto-fix-with-v0",
815
+ "cloned-repo",
816
+ "deleted-file",
817
+ "design-mode",
818
+ "edited-file",
819
+ "fix-cve",
820
+ "fix-with-v0",
821
+ "forked-block",
822
+ "forked-chat",
823
+ "manual-commit",
824
+ "message",
825
+ "moved-file",
826
+ "open-in-v0",
827
+ "pull-changes",
828
+ "refinement",
829
+ "renamed-file",
830
+ "replace-src",
831
+ "reverted-block",
832
+ "sync-git"
833
+ ]).describe("Indicates the format or category of the message, such as plain text or code."),
834
+ role: z.enum([
835
+ "assistant",
836
+ "user"
837
+ ]).describe("Specifies whether the message was sent by the user or the assistant."),
838
+ finishReason: z.enum([
839
+ "content-filter",
840
+ "error",
841
+ "length",
842
+ "other",
843
+ "stop",
844
+ "tool-calls"
845
+ ]).optional().describe("The reason why the message generation finished."),
846
+ apiUrl: z.string().describe("API URL to access this message via the API."),
847
+ authorId: z.string().nullable().describe("The ID of the user who sent the message."),
848
+ parentId: z.string().nullish().describe("The ID of the parent message."),
849
+ attachments: z.array(z.strictObject({
850
+ url: z.string().describe("The URL where the attachment file can be accessed."),
851
+ name: z.string().optional().describe("The original filename of the attachment."),
852
+ contentType: z.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
853
+ size: z.number().describe("The size of the attachment file in bytes."),
854
+ content: z.string().optional().describe("The base64-encoded content of the attachment file, if available."),
855
+ type: z.enum([
856
+ "figma",
857
+ "screenshot",
858
+ "zip"
859
+ ]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
860
+ })).optional()
861
+ })).describe("Array of message summaries in this page of results."),
862
+ pagination: z.strictObject({
863
+ hasMore: z.boolean().describe("Indicates if there are more results available beyond this page."),
864
+ nextCursor: z.string().optional().describe("Cursor for fetching the next page of results."),
865
+ nextUrl: z.string().optional().describe("API URL for retrieving the next page of results.")
866
+ }).describe("Pagination metadata for navigating through multiple pages of results.")
867
+ }).describe("List response containing multiple message summaries with cursor-based pagination.");
868
+ const notificationPreferenceSchemaSchema = z.strictObject({
869
+ liveActivity: z.boolean().describe("Whether the user wants to receive live activities."),
870
+ pushNotifications: z.boolean().describe("Whether the user wants to receive push notifications.")
871
+ }).describe("User preference for notification delivery methods.");
872
+ const productDetailSchemaSchema = z.strictObject({
873
+ object: z.enum([
874
+ "product"
875
+ ]).describe("The object type."),
876
+ id: z.string().describe("The unique ID of the product."),
877
+ slug: z.string().describe("The URL-friendly slug of the product."),
878
+ name: z.string().describe("The name of the product."),
879
+ description: z.string().describe("A short description of the product."),
880
+ iconUrl: z.string().describe("URL to the product icon."),
881
+ v0Availability: z.enum([
882
+ "in-review",
883
+ "published"
884
+ ]).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."),
885
+ iconBackgroundColor: z.string().optional().describe("Background color for the product icon.")
886
+ }).describe("Detailed information about a marketplace or store product.");
887
+ const productListSchemaSchema = z.strictObject({
888
+ object: z.enum([
889
+ "list"
890
+ ]).describe("Fixed value identifying this as a list response."),
891
+ data: z.array(z.strictObject({
892
+ object: z.enum([
893
+ "product"
894
+ ]).describe("The object type."),
895
+ id: z.string().describe("The unique ID of the product."),
896
+ slug: z.string().describe("The URL-friendly slug of the product."),
897
+ name: z.string().describe("The name of the product."),
898
+ description: z.string().describe("A short description of the product."),
899
+ iconUrl: z.string().describe("URL to the product icon."),
900
+ v0Availability: z.enum([
901
+ "in-review",
902
+ "published"
903
+ ]).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.")
904
+ })).describe("Array of product summaries.")
905
+ }).describe("List of available marketplace and store products.");
906
+ const productSummarySchemaSchema = z.strictObject({
907
+ object: z.enum([
908
+ "product"
909
+ ]).describe("The object type."),
910
+ id: z.string().describe("The unique ID of the product."),
911
+ slug: z.string().describe("The URL-friendly slug of the product."),
912
+ name: z.string().describe("The name of the product."),
913
+ description: z.string().describe("A short description of the product."),
914
+ iconUrl: z.string().describe("URL to the product icon."),
915
+ v0Availability: z.enum([
916
+ "in-review",
917
+ "published"
918
+ ]).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.")
919
+ }).describe("Summary information about a marketplace or store product.");
920
+ const projectDetailSchema = z.strictObject({
921
+ id: z.string().describe("A unique identifier for the project."),
922
+ object: z.enum([
923
+ "project"
924
+ ]).describe("Fixed value identifying this object as a project."),
925
+ name: z.string().describe("The name of the project as defined by the user."),
926
+ privacy: z.enum([
927
+ "private",
928
+ "team"
929
+ ]).describe("The privacy setting for the project - either private or team."),
930
+ vercelProjectId: z.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
931
+ createdAt: z.iso.datetime({
932
+ offset: true
933
+ }).describe("The ISO timestamp representing when the project was created."),
934
+ updatedAt: z.iso.datetime({
935
+ offset: true
936
+ }).optional().describe("The ISO timestamp of the most recent update, if available."),
937
+ apiUrl: z.url().describe("The API endpoint URL for accessing this project programmatically."),
938
+ webUrl: z.url().describe("The web URL where the project can be viewed or managed."),
939
+ description: z.string().optional().describe("The description of the project."),
940
+ instructions: z.string().optional().describe("The instructions for the project."),
941
+ chats: z.array(z.strictObject({
942
+ id: z.string().describe("A unique identifier for the chat."),
943
+ object: z.enum([
944
+ "chat"
945
+ ]).describe("Fixed value identifying this object as a chat."),
946
+ shareable: z.boolean().describe("Indicates whether the chat can be shared via public link."),
947
+ privacy: z.enum([
948
+ "private",
949
+ "public",
950
+ "team",
951
+ "team-edit",
952
+ "unlisted"
953
+ ]).describe("Defines the visibility of the chat—private, team-only, or public."),
954
+ name: z.string().optional().describe("An optional name assigned to the chat by the user."),
955
+ title: z.string().optional().describe("Deprecated title field preserved for backward compatibility."),
956
+ createdAt: z.iso.datetime({
957
+ offset: true
958
+ }).describe("The ISO timestamp representing when the chat was created."),
959
+ updatedAt: z.string().optional().describe("The ISO timestamp of the last update to the chat."),
960
+ favorite: z.boolean().describe("Indicates whether the chat is marked as a favorite."),
961
+ authorId: z.string().describe("The ID of the user who created the chat."),
962
+ projectId: z.string().optional().describe("Optional ID of the v0 project associated with this chat."),
963
+ vercelProjectId: z.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
964
+ webUrl: z.string().describe("Web URL to view this chat in the browser."),
965
+ apiUrl: z.string().describe("API URL to access this chat via the API."),
966
+ latestVersion: z.strictObject({
967
+ id: z.string().describe("A unique identifier for the version."),
968
+ object: z.enum([
969
+ "version"
970
+ ]).describe("Fixed value identifying this object as a version."),
971
+ status: z.enum([
972
+ "completed",
973
+ "failed",
974
+ "pending"
975
+ ]).describe("The current status of the version generation process."),
976
+ demoUrl: z.string().optional().describe("Optional URL for previewing the generated output."),
977
+ screenshotUrl: z.string().optional().describe("URL to retrieve a screenshot of this version."),
978
+ createdAt: z.iso.datetime({
979
+ offset: true
980
+ }).describe("The date and time when the version was created, in ISO 8601 format."),
981
+ updatedAt: z.iso.datetime({
982
+ offset: true
983
+ }).optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
984
+ }).optional().describe("The most recent generated version of the chat, if available."),
985
+ metadata: z.record(z.string(), z.string()).describe("Arbitrary key-value data associated with this chat.")
986
+ })).describe("List of all chats that are associated with this project.")
987
+ }).describe("Full representation of a project, including its associated chats.");
988
+ const projectSummarySchema = z.strictObject({
989
+ id: z.string().describe("A unique identifier for the project."),
990
+ object: z.enum([
991
+ "project"
992
+ ]).describe("Fixed value identifying this object as a project."),
993
+ name: z.string().describe("The name of the project as defined by the user."),
994
+ privacy: z.enum([
995
+ "private",
996
+ "team"
997
+ ]).describe("The privacy setting for the project - either private or team."),
998
+ vercelProjectId: z.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
999
+ createdAt: z.iso.datetime({
1000
+ offset: true
1001
+ }).describe("The ISO timestamp representing when the project was created."),
1002
+ updatedAt: z.iso.datetime({
1003
+ offset: true
1004
+ }).optional().describe("The ISO timestamp of the most recent update, if available."),
1005
+ apiUrl: z.url().describe("The API endpoint URL for accessing this project programmatically."),
1006
+ webUrl: z.url().describe("The web URL where the project can be viewed or managed.")
1007
+ }).describe("Summary of a project, including metadata, timestamps, and optional Vercel linkage.");
1008
+ const scopeSummarySchema = z.strictObject({
1009
+ id: z.string().describe("A unique identifier for the scope (e.g., user or team workspace)."),
1010
+ object: z.enum([
1011
+ "scope"
1012
+ ]).describe("Fixed value identifying this object as a scope."),
1013
+ name: z.string().optional().describe("An optional human-readable name for the scope.")
1014
+ }).describe("Basic information about a workspace or identity context for projects and chats.");
1015
+ const searchResultItemSchema = z.strictObject({
1016
+ id: z.string().describe("The unique ID of the item returned in the search result."),
1017
+ object: z.enum([
1018
+ "chat",
1019
+ "project"
1020
+ ]).describe("Type of item returned, either 'chat' or 'project'."),
1021
+ name: z.string().describe("The display name of the item."),
1022
+ createdAt: z.iso.datetime({
1023
+ offset: true
1024
+ }).describe("The ISO timestamp representing when the item was created."),
1025
+ updatedAt: z.iso.datetime({
1026
+ offset: true
1027
+ }).optional().describe("The ISO timestamp of the last update to the item."),
1028
+ apiUrl: z.string().describe("API endpoint for accessing the item programmatically."),
1029
+ webUrl: z.string().describe("Web URL for viewing the item in the interface.")
1030
+ }).describe("Generic result returned from a search query, representing either a chat or a project.");
1031
+ const userDetailSchemaSchema = z.strictObject({
1032
+ id: z.string().describe("A unique identifier for the user."),
1033
+ object: z.enum([
1034
+ "user"
1035
+ ]).describe("Fixed value identifying this object as a user."),
1036
+ name: z.string().optional().describe("Optional full name of the user."),
1037
+ email: z.string().describe("The user's email address."),
1038
+ avatar: z.string().describe("URL to the user's avatar image."),
1039
+ createdAt: z.iso.datetime({
1040
+ offset: true
1041
+ }).describe("The ISO timestamp representing when the user was created."),
1042
+ updatedAt: z.iso.datetime({
1043
+ offset: true
1044
+ }).optional().describe("The ISO timestamp of the last update to the user.")
1045
+ });
1046
+ const userPreferencesPostResponseSchemaSchema = z.strictObject({
1047
+ object: z.enum([
1048
+ "user_preferences"
1049
+ ]).describe("Object type identifier."),
1050
+ preferences: z.union([
1051
+ z.strictObject({
1052
+ notifications: z.strictObject({
1053
+ liveActivity: z.boolean().describe("Whether the user wants to receive live activities."),
1054
+ pushNotifications: z.boolean().describe("Whether the user wants to receive push notifications.")
1055
+ }).describe("The user's preferred method for receiving notifications.")
1056
+ }),
1057
+ z.null()
1058
+ ]).describe("The updated preferences if successful, or null if failed.")
1059
+ }).describe("Response schema for updating user preferences.");
1060
+ const userPreferencesResponseSchemaSchema = z.strictObject({
1061
+ object: z.enum([
1062
+ "user_preferences"
1063
+ ]).describe("Object type identifier."),
1064
+ preferences: z.union([
1065
+ z.strictObject({
1066
+ notifications: z.strictObject({
1067
+ liveActivity: z.boolean().describe("Whether the user wants to receive live activities."),
1068
+ pushNotifications: z.boolean().describe("Whether the user wants to receive push notifications.")
1069
+ }).describe("The user's preferred method for receiving notifications.")
1070
+ }),
1071
+ z.null()
1072
+ ]).describe("The user's current preferences, or null if errored.")
1073
+ }).describe("Response schema for retrieving user preferences.");
1074
+ const userPreferencesSchemaSchema = z.strictObject({
1075
+ notifications: z.strictObject({
1076
+ liveActivity: z.boolean().describe("Whether the user wants to receive live activities."),
1077
+ pushNotifications: z.boolean().describe("Whether the user wants to receive push notifications.")
1078
+ }).describe("The user's preferred method for receiving notifications.")
1079
+ }).describe("User preferences configuration including notification settings.");
1080
+ const userSummarySchemaSchema = z.strictObject({
1081
+ id: z.string().describe("A unique identifier for the user."),
1082
+ object: z.enum([
1083
+ "user"
1084
+ ]).describe("Fixed value identifying this object as a user."),
1085
+ name: z.string().optional().describe("Optional full name of the user."),
1086
+ email: z.string().describe("The user's email address."),
1087
+ avatar: z.string().describe("URL to the user's avatar image."),
1088
+ createdAt: z.iso.datetime({
1089
+ offset: true
1090
+ }).describe("The ISO timestamp representing when the user was created."),
1091
+ updatedAt: z.iso.datetime({
1092
+ offset: true
1093
+ }).optional().describe("The ISO timestamp of the last update to the user.")
1094
+ }).describe("Details of the authenticated user, including profile and contact information.");
1095
+ const vercelProjectDetailSchema = z.strictObject({
1096
+ id: z.string().describe("A unique identifier for the linked Vercel project."),
1097
+ object: z.enum([
1098
+ "vercel_project"
1099
+ ]).describe("Fixed value identifying this object as a Vercel project."),
1100
+ name: z.string().describe("The name of the Vercel project.")
1101
+ });
1102
+ const vercelProjectSummarySchema = z.strictObject({
1103
+ id: z.string().describe("A unique identifier for the linked Vercel project."),
1104
+ object: z.enum([
1105
+ "vercel_project"
1106
+ ]).describe("Fixed value identifying this object as a Vercel project."),
1107
+ name: z.string().describe("The name of the Vercel project.")
1108
+ }).describe("Basic metadata about a Vercel project connected to a v0 project.");
1109
+ const versionDetailSchema = z.strictObject({
1110
+ id: z.string().describe("A unique identifier for the version."),
1111
+ object: z.enum([
1112
+ "version"
1113
+ ]).describe("Fixed value identifying this object as a version."),
1114
+ status: z.enum([
1115
+ "completed",
1116
+ "failed",
1117
+ "pending"
1118
+ ]).describe("The current status of the version generation process."),
1119
+ demoUrl: z.string().optional().describe("Optional URL for previewing the generated output."),
1120
+ screenshotUrl: z.string().optional().describe("URL to retrieve a screenshot of this version."),
1121
+ createdAt: z.iso.datetime({
1122
+ offset: true
1123
+ }).describe("The date and time when the version was created, in ISO 8601 format."),
1124
+ updatedAt: z.iso.datetime({
1125
+ offset: true
1126
+ }).optional().describe("The date and time when the version was last updated, in ISO 8601 format."),
1127
+ files: z.array(z.strictObject({
1128
+ object: z.enum([
1129
+ "file"
1130
+ ]).describe("Fixed value identifying this object as a file."),
1131
+ name: z.string().describe("The name of the file, including its extension."),
1132
+ content: z.string().describe("The full contents of the file as a raw string."),
1133
+ locked: z.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
1134
+ })).describe("A list of files that were generated or included in this version.")
1135
+ }).describe("Detailed version data including file contents.");
1136
+ const versionSummarySchema = z.strictObject({
1137
+ id: z.string().describe("A unique identifier for the version."),
1138
+ object: z.enum([
1139
+ "version"
1140
+ ]).describe("Fixed value identifying this object as a version."),
1141
+ status: z.enum([
1142
+ "completed",
1143
+ "failed",
1144
+ "pending"
1145
+ ]).describe("The current status of the version generation process."),
1146
+ demoUrl: z.string().optional().describe("Optional URL for previewing the generated output."),
1147
+ screenshotUrl: z.string().optional().describe("URL to retrieve a screenshot of this version."),
1148
+ createdAt: z.iso.datetime({
1149
+ offset: true
1150
+ }).describe("The date and time when the version was created, in ISO 8601 format."),
1151
+ updatedAt: z.iso.datetime({
1152
+ offset: true
1153
+ }).optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
1154
+ }).describe("Summary of a generated version of a chat, including its status and optional demo link.");
1155
+ const versionSummaryListSchema = z.strictObject({
1156
+ object: z.enum([
1157
+ "list"
1158
+ ]).describe("Fixed value identifying this as a list response."),
1159
+ data: z.array(z.strictObject({
1160
+ id: z.string().describe("A unique identifier for the version."),
1161
+ object: z.enum([
1162
+ "version"
1163
+ ]).describe("Fixed value identifying this object as a version."),
1164
+ status: z.enum([
1165
+ "completed",
1166
+ "failed",
1167
+ "pending"
1168
+ ]).describe("The current status of the version generation process."),
1169
+ demoUrl: z.string().optional().describe("Optional URL for previewing the generated output."),
1170
+ screenshotUrl: z.string().optional().describe("URL to retrieve a screenshot of this version."),
1171
+ createdAt: z.iso.datetime({
1172
+ offset: true
1173
+ }).describe("The date and time when the version was created, in ISO 8601 format."),
1174
+ updatedAt: z.iso.datetime({
1175
+ offset: true
1176
+ }).optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
1177
+ })).describe("Array of version summaries in this page of results."),
1178
+ pagination: z.strictObject({
1179
+ hasMore: z.boolean().describe("Indicates if there are more results available beyond this page."),
1180
+ nextCursor: z.string().optional().describe("Cursor for fetching the next page of results."),
1181
+ nextUrl: z.string().optional().describe("API URL for retrieving the next page of results.")
1182
+ }).describe("Pagination metadata for navigating through multiple pages of results.")
1183
+ }).describe("List response containing multiple version summaries with cursor-based pagination.");
1184
+ const unauthorizedErrorSchema = z.strictObject({
1185
+ error: z.strictObject({
1186
+ message: z.string(),
1187
+ type: z.enum([
1188
+ "unauthorized_error"
1189
+ ])
1190
+ })
1191
+ });
1192
+ const forbiddenErrorSchema = z.strictObject({
1193
+ error: z.strictObject({
1194
+ message: z.string(),
1195
+ type: z.enum([
1196
+ "forbidden_error"
1197
+ ])
1198
+ })
1199
+ });
1200
+ const notFoundErrorSchema = z.strictObject({
1201
+ error: z.strictObject({
1202
+ message: z.string(),
1203
+ type: z.enum([
1204
+ "not_found_error"
1205
+ ])
1206
+ })
1207
+ });
1208
+ const conflictErrorSchema = z.strictObject({
1209
+ error: z.strictObject({
1210
+ message: z.string(),
1211
+ type: z.enum([
1212
+ "conflict_error"
1213
+ ])
1214
+ })
1215
+ });
1216
+ const payloadTooLargeErrorSchema = z.strictObject({
1217
+ error: z.strictObject({
1218
+ message: z.string(),
1219
+ type: z.enum([
1220
+ "payload_too_large_error"
1221
+ ])
1222
+ })
1223
+ });
1224
+ const unprocessableEntityErrorSchema = z.strictObject({
1225
+ error: z.strictObject({
1226
+ message: z.string(),
1227
+ type: z.enum([
1228
+ "unprocessable_entity_error"
1229
+ ])
1230
+ })
1231
+ });
1232
+ const tooManyRequestsErrorSchema = z.strictObject({
1233
+ error: z.strictObject({
1234
+ message: z.string(),
1235
+ type: z.enum([
1236
+ "too_many_requests_error"
1237
+ ])
1238
+ })
1239
+ });
1240
+ const internalServerErrorSchema = z.strictObject({
1241
+ error: z.strictObject({
1242
+ message: z.string(),
1243
+ type: z.enum([
1244
+ "internal_server_error"
1245
+ ])
1246
+ })
1247
+ });
1248
+ const chatsCreateStatus200Schema = chatDetailSchema.describe("Detailed representation of a chat, including its messages, files, versions, and model configuration.");
1249
+ const chatsCreateStatus401Schema = unauthorizedErrorSchema;
1250
+ const chatsCreateStatus403Schema = forbiddenErrorSchema;
1251
+ const chatsCreateStatus404Schema = notFoundErrorSchema;
1252
+ const chatsCreateStatus409Schema = conflictErrorSchema;
1253
+ const chatsCreateStatus413Schema = payloadTooLargeErrorSchema;
1254
+ const chatsCreateStatus422Schema = unprocessableEntityErrorSchema;
1255
+ const chatsCreateStatus429Schema = tooManyRequestsErrorSchema;
1256
+ const chatsCreateStatus500Schema = internalServerErrorSchema;
1257
+ const chatsCreateResponseSchema = chatsCreateStatus200Schema;
1258
+ const chatsCreateErrorSchema = z.union([
1259
+ chatsCreateStatus401Schema,
1260
+ chatsCreateStatus403Schema,
1261
+ chatsCreateStatus404Schema,
1262
+ chatsCreateStatus409Schema,
1263
+ chatsCreateStatus413Schema,
1264
+ chatsCreateStatus422Schema,
1265
+ chatsCreateStatus429Schema,
1266
+ chatsCreateStatus500Schema
1267
+ ]);
1268
+ const chatsCreateBodySchema = z.strictObject({
1269
+ message: z.string().describe("Creates a new chat using a user message, optional system context, and model configuration. Useful for prompting the model within the scope of a specific project."),
1270
+ attachments: z.array(z.strictObject({
1271
+ url: z.string().describe("The URL or data URI of the file or asset to include with the message.")
1272
+ })).optional().describe("A list of files or assets to be included in the conversation context. Useful when the chat or task requires referencing documents, images, or other resources."),
1273
+ system: z.string().optional().describe("Provides system-level context or background for the chat. This is typically used to specify frameworks, tools, or development environments relevant to the task."),
1274
+ chatPrivacy: z.enum([
1275
+ "private",
1276
+ "public",
1277
+ "team",
1278
+ "team-edit",
1279
+ "unlisted"
1280
+ ]).optional().default("private").describe("Determines the privacy setting of the chat. This can control whether the chat is visible only to the user, to team members, or is public."),
1281
+ projectId: z.string().optional().describe("Associates the chat with a specific project in your workspace. Helps organize and group related chats under a common project context."),
1282
+ modelConfiguration: z.strictObject({
1283
+ modelId: z.string().min(3).max(200).regex(/^[a-z0-9][a-z0-9._-]*\/[a-z0-9][a-z0-9._/-]*$/).optional().default("v0-pro").describe("Model to use for the generation. Use a v0 model ID, or an [AI Gateway](https://vercel.com/ai-gateway/models) model ID in `creator/model` format. Gateway models must support tool calling and Zero Data Retention, and are subject to team model policy; unsupported IDs are rejected. `v0-auto` is deprecated and falls back to `v0-pro`."),
1284
+ imageGenerations: z.boolean().optional().default(false).describe("Enables image generations to generate up to 5 images per version."),
1285
+ thinking: z.boolean().optional().default(false).describe("Enables thinking to generate a response in multiple steps."),
1286
+ thinkingEffort: z.union([
1287
+ z.enum([
1288
+ "none",
1289
+ "minimal",
1290
+ "low",
1291
+ "medium",
1292
+ "high",
1293
+ "max",
1294
+ "xhigh"
1295
+ ]),
1296
+ z.null()
1297
+ ]).optional(),
1298
+ fast: z.boolean().optional()
1299
+ }).optional().describe("Settings that control how the model behaves in the chat."),
1300
+ responseMode: z.enum([
1301
+ "async",
1302
+ "experimental_stream",
1303
+ "sync"
1304
+ ]).optional().default("sync").describe('Controls how the response is delivered.\n\n- `"sync"`: The response is returned immediately with the HTTP request.\n- `"async"`: Returns a message placeholder immediately; use getById to poll for completion status and final output.\n- `"experimental_stream"`: Returns content parts as Server-Sent Events for real-time streaming.'),
1305
+ designSystemId: z.string().nullish().describe("The ID of a design system to apply to this chat. Design systems provide consistent styling and components for generated UI."),
1306
+ mcpServerIds: z.array(z.string()).optional().describe("Array of MCP server IDs to enable for this chat. When provided, only the specified servers will be used. When omitted, falls back to the user's enabled MCP servers."),
1307
+ attachedSkillIds: z.array(z.string()).optional().describe("Array of skill IDs (from skills.sh) to attach to this chat. Backwards-compatible alias for `skills` entries of type `remote`. Maximum 3 skills per chat."),
1308
+ skills: z.array(z.discriminatedUnion("type", [
1309
+ z.strictObject({
1310
+ type: z.enum([
1311
+ "remote"
1312
+ ]).describe("Discriminator: a skills.sh skill."),
1313
+ id: z.string().describe("Skill ID from skills.sh.")
1314
+ }),
1315
+ z.strictObject({
1316
+ type: z.enum([
1317
+ "memory"
1318
+ ]).describe("Discriminator: a user- or team-scoped memory skill."),
1319
+ scope: z.enum([
1320
+ "user",
1321
+ "team"
1322
+ ]).describe("Whether the skill lives in user or team memory."),
1323
+ skillName: z.string().describe("Name of the memory skill to attach.")
1324
+ }),
1325
+ z.strictObject({
1326
+ type: z.enum([
1327
+ "project"
1328
+ ]).describe("Discriminator: a skill defined in the project repo."),
1329
+ skillName: z.string().describe("Name of the project skill to attach.")
1330
+ })
1331
+ ])).optional().describe("Skills to force-attach to this chat. Supports skills.sh (`remote`), user/team memory (`memory`), and project (`project`) skills. Merged with `attachedSkillIds`. Maximum 3 skills per chat."),
1332
+ metadata: z.record(z.string().min(1).max(40), z.string().max(500)).optional().default({}).describe("Arbitrary key-value data to attach to the chat. Useful for storing additional data about the chat, such as external user IDs.")
1333
+ });
1334
+ const chatsFindQueryLimitSchema = z.number().max(60).optional().default(60).describe("Specifies the maximum number of chat records to return in a single response. Useful for paginating results when there are many chats.");
1335
+ const chatsFindQueryOffsetSchema = z.number().optional().default(0).describe("Determines the starting point for pagination. Used in conjunction with limit to retrieve a specific page of chat results.");
1336
+ const chatsFindQueryIsFavoriteSchema = z.enum([
1337
+ "true",
1338
+ "false"
1339
+ ]).optional().describe('Filters chats by their "favorite" status. Accepts `"true"` or `"false"` (as strings, not booleans).\n\n- `"true"`: returns only chats marked as favorites.\n- `"false"`: returns only non-favorite chats.');
1340
+ const chatsFindQueryVercelProjectIdSchema = z.string().optional().describe("Filters chats by the linked Vercel project ID. Only returns chats associated with the specified Vercel project.");
1341
+ const chatsFindQueryBranchSchema = z.string().optional().describe("Filters chats by the Git branch name. Only returns chats that have an active Git connection with the specified branch as the head.");
1342
+ const chatsFindQueryMetadataSchema = z.record(z.string().min(1).max(40), z.string().max(500)).optional().describe("Filters chats by metadata. Returns chats matching every supplied key-value pair.");
1343
+ const chatsFindStatus200Schema = z.strictObject({
1344
+ object: z.enum([
1345
+ "list"
1346
+ ]),
1347
+ data: z.array(z.strictObject({
1348
+ id: z.string().describe("A unique identifier for the chat."),
1349
+ object: z.enum([
1350
+ "chat"
1351
+ ]).describe("Fixed value identifying this object as a chat."),
1352
+ shareable: z.boolean().describe("Indicates whether the chat can be shared via public link."),
1353
+ privacy: z.enum([
1354
+ "private",
1355
+ "public",
1356
+ "team",
1357
+ "team-edit",
1358
+ "unlisted"
1359
+ ]).describe("Defines the visibility of the chat—private, team-only, or public."),
1360
+ name: z.string().optional().describe("An optional name assigned to the chat by the user."),
1361
+ title: z.string().optional().describe("Deprecated title field preserved for backward compatibility."),
1362
+ createdAt: z.iso.datetime({
1363
+ offset: true
1364
+ }).describe("The ISO timestamp representing when the chat was created."),
1365
+ updatedAt: z.string().optional().describe("The ISO timestamp of the last update to the chat."),
1366
+ favorite: z.boolean().describe("Indicates whether the chat is marked as a favorite."),
1367
+ authorId: z.string().describe("The ID of the user who created the chat."),
1368
+ projectId: z.string().optional().describe("Optional ID of the v0 project associated with this chat."),
1369
+ vercelProjectId: z.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
1370
+ webUrl: z.string().describe("Web URL to view this chat in the browser."),
1371
+ apiUrl: z.string().describe("API URL to access this chat via the API."),
1372
+ latestVersion: z.strictObject({
1373
+ id: z.string().describe("A unique identifier for the version."),
1374
+ object: z.enum([
1375
+ "version"
1376
+ ]).describe("Fixed value identifying this object as a version."),
1377
+ status: z.enum([
1378
+ "completed",
1379
+ "failed",
1380
+ "pending"
1381
+ ]).describe("The current status of the version generation process."),
1382
+ demoUrl: z.string().optional().describe("Optional URL for previewing the generated output."),
1383
+ screenshotUrl: z.string().optional().describe("URL to retrieve a screenshot of this version."),
1384
+ createdAt: z.iso.datetime({
1385
+ offset: true
1386
+ }).describe("The date and time when the version was created, in ISO 8601 format."),
1387
+ updatedAt: z.iso.datetime({
1388
+ offset: true
1389
+ }).optional().describe("The date and time when the version was last updated, in ISO 8601 format."),
1390
+ darkScreenshotUrl: z.string().optional().describe("URL to retrieve a dark mode screenshot of this version.")
1391
+ }).optional().describe("The most recent generated version of the chat, if available."),
1392
+ metadata: z.record(z.string(), z.string()).describe("Arbitrary key-value data associated with this chat.")
1393
+ }))
1394
+ });
1395
+ const chatsFindStatus401Schema = unauthorizedErrorSchema;
1396
+ const chatsFindStatus403Schema = forbiddenErrorSchema;
1397
+ const chatsFindStatus404Schema = notFoundErrorSchema;
1398
+ const chatsFindStatus409Schema = conflictErrorSchema;
1399
+ const chatsFindStatus413Schema = payloadTooLargeErrorSchema;
1400
+ const chatsFindStatus422Schema = unprocessableEntityErrorSchema;
1401
+ const chatsFindStatus429Schema = tooManyRequestsErrorSchema;
1402
+ const chatsFindStatus500Schema = internalServerErrorSchema;
1403
+ const chatsFindResponseSchema = chatsFindStatus200Schema;
1404
+ const chatsFindErrorSchema = z.union([
1405
+ chatsFindStatus401Schema,
1406
+ chatsFindStatus403Schema,
1407
+ chatsFindStatus404Schema,
1408
+ chatsFindStatus409Schema,
1409
+ chatsFindStatus413Schema,
1410
+ chatsFindStatus422Schema,
1411
+ chatsFindStatus429Schema,
1412
+ chatsFindStatus500Schema
1413
+ ]);
1414
+ const chatsFindQuerySchema = z.object({
1415
+ limit: z.number().max(60).optional().default(60).describe("Specifies the maximum number of chat records to return in a single response. Useful for paginating results when there are many chats."),
1416
+ offset: z.number().optional().default(0).describe("Determines the starting point for pagination. Used in conjunction with limit to retrieve a specific page of chat results."),
1417
+ isFavorite: z.enum([
1418
+ "true",
1419
+ "false"
1420
+ ]).optional().describe('Filters chats by their "favorite" status. Accepts `"true"` or `"false"` (as strings, not booleans).\n\n- `"true"`: returns only chats marked as favorites.\n- `"false"`: returns only non-favorite chats.'),
1421
+ vercelProjectId: z.string().optional().describe("Filters chats by the linked Vercel project ID. Only returns chats associated with the specified Vercel project."),
1422
+ branch: z.string().optional().describe("Filters chats by the Git branch name. Only returns chats that have an active Git connection with the specified branch as the head."),
1423
+ metadata: z.record(z.string().min(1).max(40), z.string().max(500)).optional().describe("Filters chats by metadata. Returns chats matching every supplied key-value pair.")
1424
+ });
1425
+ const chatsInitStatus200Schema = chatDetailSchema.describe("Detailed representation of a chat, including its messages, files, versions, and model configuration.");
1426
+ const chatsInitStatus401Schema = unauthorizedErrorSchema;
1427
+ const chatsInitStatus403Schema = forbiddenErrorSchema;
1428
+ const chatsInitStatus404Schema = notFoundErrorSchema;
1429
+ const chatsInitStatus409Schema = conflictErrorSchema;
1430
+ const chatsInitStatus413Schema = payloadTooLargeErrorSchema;
1431
+ const chatsInitStatus422Schema = unprocessableEntityErrorSchema;
1432
+ const chatsInitStatus429Schema = tooManyRequestsErrorSchema;
1433
+ const chatsInitStatus500Schema = internalServerErrorSchema;
1434
+ const chatsInitResponseSchema = chatsInitStatus200Schema;
1435
+ const chatsInitErrorSchema = z.union([
1436
+ chatsInitStatus401Schema,
1437
+ chatsInitStatus403Schema,
1438
+ chatsInitStatus404Schema,
1439
+ chatsInitStatus409Schema,
1440
+ chatsInitStatus413Schema,
1441
+ chatsInitStatus422Schema,
1442
+ chatsInitStatus429Schema,
1443
+ chatsInitStatus500Schema
1444
+ ]);
1445
+ const chatsInitBodySchema = z.strictObject({
1446
+ name: z.string().optional().describe("A user-defined name for the chat. Helps identify or describe the purpose of the chat session in the UI or API responses."),
1447
+ chatPrivacy: z.enum([
1448
+ "public",
1449
+ "private",
1450
+ "team-edit",
1451
+ "team",
1452
+ "unlisted"
1453
+ ]).optional().default("private").describe("Controls the visibility of the chat. Defines whether the chat is private, shared with a team, or publicly accessible."),
1454
+ projectId: z.string().optional().describe("Associates the chat with a specific project. Useful for organizing and grouping chats in a workspace."),
1455
+ metadata: z.record(z.string().min(1).max(40), z.string().max(500)).optional().default({}).describe("Arbitrary key-value data to attach to the chat. Useful for storing additional data about the chat, such as external user IDs.")
1456
+ }).and(z.discriminatedUnion("type", [
1457
+ z.strictObject({
1458
+ type: z.enum([
1459
+ "files"
1460
+ ]).describe("Specifies the initialization method. For this endpoint, it defines the source of content being used to initialize the chat."),
1461
+ files: z.array(z.union([
1462
+ z.strictObject({
1463
+ name: z.string(),
1464
+ url: z.string(),
1465
+ locked: z.boolean().optional().describe("Whether to lock this file to prevent AI from overwriting it during generation")
1466
+ }),
1467
+ z.strictObject({
1468
+ name: z.string(),
1469
+ content: z.string(),
1470
+ locked: z.boolean().optional().describe("Whether to lock this file to prevent AI from overwriting it during generation")
1471
+ })
1472
+ ])).describe("An array of inline file objects used to initialize the chat. Each object must contain a file `name` and its `content`.")
1473
+ }),
1474
+ z.strictObject({
1475
+ type: z.enum([
1476
+ "repo"
1477
+ ]).describe("Specifies the initialization method. For this endpoint, it defines the source of content being used to initialize the chat."),
1478
+ repo: z.strictObject({
1479
+ url: z.string(),
1480
+ branch: z.string().max(250).optional()
1481
+ }).describe("Specifies a repository source for initialization. Supports both public and private GitHub repositories. For private repositories, ensure your GitHub account is connected through Vercel."),
1482
+ lockAllFiles: z.boolean().optional().describe("Whether to lock all files in the repository to prevent AI from overwriting them during generation")
1483
+ }),
1484
+ z.strictObject({
1485
+ type: z.enum([
1486
+ "registry"
1487
+ ]).describe("Specifies the initialization method. For this endpoint, it defines the source of content being used to initialize the chat."),
1488
+ registry: z.strictObject({
1489
+ url: z.string()
1490
+ }).describe("Allows initialization from a predefined component or code registry. Includes the registry source and identifier for the desired component/module."),
1491
+ lockAllFiles: z.boolean().optional().describe("Whether to lock all files from the registry to prevent AI from overwriting them during generation")
1492
+ }),
1493
+ z.strictObject({
1494
+ type: z.enum([
1495
+ "zip"
1496
+ ]).describe("Specifies the initialization method. For this endpoint, it defines the source of content being used to initialize the chat."),
1497
+ zip: z.strictObject({
1498
+ url: z.url()
1499
+ }).describe("Provides a zipped bundle of files as the input source. Typically includes a base64-encoded archive or a remote URL reference."),
1500
+ lockAllFiles: z.boolean().optional().describe("Whether to lock all files from the zip archive to prevent AI from overwriting them during generation")
1501
+ }),
1502
+ z.strictObject({
1503
+ type: z.enum([
1504
+ "template"
1505
+ ]).describe("Specifies the initialization method. For this endpoint, it defines the source of content being used to initialize the chat."),
1506
+ templateId: z.string().describe("The ID of the template to initialize the chat from. This should be a valid template ID from the v0 template system.")
1507
+ })
1508
+ ]));
1509
+ const chatsDeletePathChatIdSchema = z.string().describe("The unique identifier of the chat to delete. This must be passed as a path parameter in the URL.");
1510
+ const chatsDeleteStatus200Schema = z.strictObject({
1511
+ id: z.string(),
1512
+ object: z.enum([
1513
+ "chat"
1514
+ ]),
1515
+ deleted: z.literal(true)
1516
+ });
1517
+ const chatsDeleteStatus401Schema = unauthorizedErrorSchema;
1518
+ const chatsDeleteStatus403Schema = forbiddenErrorSchema;
1519
+ const chatsDeleteStatus404Schema = notFoundErrorSchema;
1520
+ const chatsDeleteStatus409Schema = conflictErrorSchema;
1521
+ const chatsDeleteStatus413Schema = payloadTooLargeErrorSchema;
1522
+ const chatsDeleteStatus422Schema = unprocessableEntityErrorSchema;
1523
+ const chatsDeleteStatus429Schema = tooManyRequestsErrorSchema;
1524
+ const chatsDeleteStatus500Schema = internalServerErrorSchema;
1525
+ const chatsDeleteResponseSchema = chatsDeleteStatus200Schema;
1526
+ const chatsDeleteErrorSchema = z.union([
1527
+ chatsDeleteStatus401Schema,
1528
+ chatsDeleteStatus403Schema,
1529
+ chatsDeleteStatus404Schema,
1530
+ chatsDeleteStatus409Schema,
1531
+ chatsDeleteStatus413Schema,
1532
+ chatsDeleteStatus422Schema,
1533
+ chatsDeleteStatus429Schema,
1534
+ chatsDeleteStatus500Schema
1535
+ ]);
1536
+ const chatsDeletePathSchema = z.object({
1537
+ chatId: z.string().describe("The unique identifier of the chat to delete. This must be passed as a path parameter in the URL.")
1538
+ });
1539
+ const chatsGetByIdPathChatIdSchema = z.string().describe("The unique identifier of the chat to retrieve. Must be provided as a path parameter.");
1540
+ const chatsGetByIdStatus200Schema = chatDetailSchema.describe("Detailed representation of a chat, including its messages, files, versions, and model configuration.");
1541
+ const chatsGetByIdStatus401Schema = unauthorizedErrorSchema;
1542
+ const chatsGetByIdStatus403Schema = forbiddenErrorSchema;
1543
+ const chatsGetByIdStatus404Schema = notFoundErrorSchema;
1544
+ const chatsGetByIdStatus409Schema = conflictErrorSchema;
1545
+ const chatsGetByIdStatus413Schema = payloadTooLargeErrorSchema;
1546
+ const chatsGetByIdStatus422Schema = unprocessableEntityErrorSchema;
1547
+ const chatsGetByIdStatus429Schema = tooManyRequestsErrorSchema;
1548
+ const chatsGetByIdStatus500Schema = internalServerErrorSchema;
1549
+ const chatsGetByIdResponseSchema = chatsGetByIdStatus200Schema;
1550
+ const chatsGetByIdErrorSchema = z.union([
1551
+ chatsGetByIdStatus401Schema,
1552
+ chatsGetByIdStatus403Schema,
1553
+ chatsGetByIdStatus404Schema,
1554
+ chatsGetByIdStatus409Schema,
1555
+ chatsGetByIdStatus413Schema,
1556
+ chatsGetByIdStatus422Schema,
1557
+ chatsGetByIdStatus429Schema,
1558
+ chatsGetByIdStatus500Schema
1559
+ ]);
1560
+ const chatsGetByIdPathSchema = z.object({
1561
+ chatId: z.string().describe("The unique identifier of the chat to retrieve. Must be provided as a path parameter.")
1562
+ });
1563
+ const chatsUpdatePathChatIdSchema = z.string().describe("The unique identifier of the chat to update. Provided as a path parameter.");
1564
+ const chatsUpdateStatus200Schema = chatDetailSchema.describe("Detailed representation of a chat, including its messages, files, versions, and model configuration.");
1565
+ const chatsUpdateStatus401Schema = unauthorizedErrorSchema;
1566
+ const chatsUpdateStatus403Schema = forbiddenErrorSchema;
1567
+ const chatsUpdateStatus404Schema = notFoundErrorSchema;
1568
+ const chatsUpdateStatus409Schema = conflictErrorSchema;
1569
+ const chatsUpdateStatus413Schema = payloadTooLargeErrorSchema;
1570
+ const chatsUpdateStatus422Schema = unprocessableEntityErrorSchema;
1571
+ const chatsUpdateStatus429Schema = tooManyRequestsErrorSchema;
1572
+ const chatsUpdateStatus500Schema = internalServerErrorSchema;
1573
+ const chatsUpdateResponseSchema = chatsUpdateStatus200Schema;
1574
+ const chatsUpdateErrorSchema = z.union([
1575
+ chatsUpdateStatus401Schema,
1576
+ chatsUpdateStatus403Schema,
1577
+ chatsUpdateStatus404Schema,
1578
+ chatsUpdateStatus409Schema,
1579
+ chatsUpdateStatus413Schema,
1580
+ chatsUpdateStatus422Schema,
1581
+ chatsUpdateStatus429Schema,
1582
+ chatsUpdateStatus500Schema
1583
+ ]);
1584
+ const chatsUpdateBodySchema = z.strictObject({
1585
+ name: z.string().optional().describe("A new name to assign to the chat. Helps with identification and organization."),
1586
+ privacy: z.enum([
1587
+ "private",
1588
+ "public",
1589
+ "team",
1590
+ "team-edit",
1591
+ "unlisted"
1592
+ ]).optional().describe("Sets the privacy level of the chat."),
1593
+ metadata: z.union([
1594
+ z.record(z.string().min(1).max(40), z.union([
1595
+ z.string().max(500),
1596
+ z.null()
1597
+ ])),
1598
+ z.null()
1599
+ ]).optional().describe("Arbitrary key-value data to attach to the chat. Useful for storing additional data about the chat, such as external user IDs. Metadata added will be merged with existing attributes. Pass `null` as the value to delete a specific key, or pass `null` instead of an object to delete all existing metadata.")
1600
+ });
1601
+ const chatsUpdatePathSchema = z.object({
1602
+ chatId: z.string().describe("The unique identifier of the chat to update. Provided as a path parameter.")
1603
+ });
1604
+ const chatsFavoritePathChatIdSchema = z.string().describe("The unique identifier of the chat to update. Provided as a path parameter.");
1605
+ const chatsFavoriteStatus200Schema = z.strictObject({
1606
+ id: z.string(),
1607
+ object: z.enum([
1608
+ "chat"
1609
+ ]),
1610
+ favorited: z.boolean()
1611
+ });
1612
+ const chatsFavoriteStatus401Schema = unauthorizedErrorSchema;
1613
+ const chatsFavoriteStatus403Schema = forbiddenErrorSchema;
1614
+ const chatsFavoriteStatus404Schema = notFoundErrorSchema;
1615
+ const chatsFavoriteStatus409Schema = conflictErrorSchema;
1616
+ const chatsFavoriteStatus413Schema = payloadTooLargeErrorSchema;
1617
+ const chatsFavoriteStatus422Schema = unprocessableEntityErrorSchema;
1618
+ const chatsFavoriteStatus429Schema = tooManyRequestsErrorSchema;
1619
+ const chatsFavoriteStatus500Schema = internalServerErrorSchema;
1620
+ const chatsFavoriteResponseSchema = chatsFavoriteStatus200Schema;
1621
+ const chatsFavoriteErrorSchema = z.union([
1622
+ chatsFavoriteStatus401Schema,
1623
+ chatsFavoriteStatus403Schema,
1624
+ chatsFavoriteStatus404Schema,
1625
+ chatsFavoriteStatus409Schema,
1626
+ chatsFavoriteStatus413Schema,
1627
+ chatsFavoriteStatus422Schema,
1628
+ chatsFavoriteStatus429Schema,
1629
+ chatsFavoriteStatus500Schema
1630
+ ]);
1631
+ const chatsFavoriteBodySchema = z.strictObject({
1632
+ isFavorite: z.boolean().describe('Specifies whether the chat should be marked as a favorite.\n\n- `"true"`: mark as favorite\n- `"false"`: remove from favorites')
1633
+ });
1634
+ const chatsFavoritePathSchema = z.object({
1635
+ chatId: z.string().describe("The unique identifier of the chat to update. Provided as a path parameter.")
1636
+ });
1637
+ const chatsForkPathChatIdSchema = z.string().describe("The unique identifier of the chat to fork. Provided as a path parameter.");
1638
+ const chatsForkStatus200Schema = chatDetailSchema.describe("Detailed representation of a chat, including its messages, files, versions, and model configuration.");
1639
+ const chatsForkStatus401Schema = unauthorizedErrorSchema;
1640
+ const chatsForkStatus403Schema = forbiddenErrorSchema;
1641
+ const chatsForkStatus404Schema = notFoundErrorSchema;
1642
+ const chatsForkStatus409Schema = conflictErrorSchema;
1643
+ const chatsForkStatus413Schema = payloadTooLargeErrorSchema;
1644
+ const chatsForkStatus422Schema = unprocessableEntityErrorSchema;
1645
+ const chatsForkStatus429Schema = tooManyRequestsErrorSchema;
1646
+ const chatsForkStatus500Schema = internalServerErrorSchema;
1647
+ const chatsForkResponseSchema = chatsForkStatus200Schema;
1648
+ const chatsForkErrorSchema = z.union([
1649
+ chatsForkStatus401Schema,
1650
+ chatsForkStatus403Schema,
1651
+ chatsForkStatus404Schema,
1652
+ chatsForkStatus409Schema,
1653
+ chatsForkStatus413Schema,
1654
+ chatsForkStatus422Schema,
1655
+ chatsForkStatus429Schema,
1656
+ chatsForkStatus500Schema
1657
+ ]);
1658
+ const chatsForkBodySchema = z.strictObject({
1659
+ versionId: z.string().max(32).optional().describe("The identifier of the specific chat version to fork from. If omitted, the latest version will be used."),
1660
+ privacy: z.enum([
1661
+ "private",
1662
+ "public",
1663
+ "team",
1664
+ "team-edit",
1665
+ "unlisted"
1666
+ ]).optional().default("private").describe("Determines the privacy setting of the forked chat. This can control whether the chat is visible only to the user, to team members, or is public.")
1667
+ });
1668
+ const chatsForkPathSchema = z.object({
1669
+ chatId: z.string().describe("The unique identifier of the chat to fork. Provided as a path parameter.")
1670
+ });
1671
+ const projectsGetByChatIdPathChatIdSchema = z.string().describe("The ID of the chat to retrieve the associated project for.");
1672
+ const projectsGetByChatIdStatus200Schema = projectDetailSchema.describe("Full representation of a project, including its associated chats.");
1673
+ const projectsGetByChatIdStatus401Schema = unauthorizedErrorSchema;
1674
+ const projectsGetByChatIdStatus403Schema = forbiddenErrorSchema;
1675
+ const projectsGetByChatIdStatus404Schema = notFoundErrorSchema;
1676
+ const projectsGetByChatIdStatus409Schema = conflictErrorSchema;
1677
+ const projectsGetByChatIdStatus413Schema = payloadTooLargeErrorSchema;
1678
+ const projectsGetByChatIdStatus422Schema = unprocessableEntityErrorSchema;
1679
+ const projectsGetByChatIdStatus429Schema = tooManyRequestsErrorSchema;
1680
+ const projectsGetByChatIdStatus500Schema = internalServerErrorSchema;
1681
+ const projectsGetByChatIdResponseSchema = projectsGetByChatIdStatus200Schema;
1682
+ const projectsGetByChatIdErrorSchema = z.union([
1683
+ projectsGetByChatIdStatus401Schema,
1684
+ projectsGetByChatIdStatus403Schema,
1685
+ projectsGetByChatIdStatus404Schema,
1686
+ projectsGetByChatIdStatus409Schema,
1687
+ projectsGetByChatIdStatus413Schema,
1688
+ projectsGetByChatIdStatus422Schema,
1689
+ projectsGetByChatIdStatus429Schema,
1690
+ projectsGetByChatIdStatus500Schema
1691
+ ]);
1692
+ const projectsGetByChatIdPathSchema = z.object({
1693
+ chatId: z.string().describe("The ID of the chat to retrieve the associated project for.")
1694
+ });
1695
+ const chatsFindMessagesPathChatIdSchema = z.string().describe("The unique identifier of the chat to retrieve messages for. Provided as a path parameter.");
1696
+ const chatsFindMessagesQueryLimitSchema = z.number().min(1).max(150).optional().default(20).describe("Specifies the maximum number of message records to return in a single response. Useful for paginating results when there are many messages.");
1697
+ const chatsFindMessagesQueryCursorSchema = z.string().optional().describe("Base64 encoded cursor containing pagination data");
1698
+ const chatsFindMessagesStatus200Schema = z.strictObject({
1699
+ object: z.enum([
1700
+ "list"
1701
+ ]),
1702
+ data: z.array(messageSummarySchema),
1703
+ pagination: z.strictObject({
1704
+ hasMore: z.boolean(),
1705
+ nextCursor: z.string().optional(),
1706
+ nextUrl: z.string().optional()
1707
+ })
1708
+ });
1709
+ const chatsFindMessagesStatus401Schema = unauthorizedErrorSchema;
1710
+ const chatsFindMessagesStatus403Schema = forbiddenErrorSchema;
1711
+ const chatsFindMessagesStatus404Schema = notFoundErrorSchema;
1712
+ const chatsFindMessagesStatus409Schema = conflictErrorSchema;
1713
+ const chatsFindMessagesStatus413Schema = payloadTooLargeErrorSchema;
1714
+ const chatsFindMessagesStatus422Schema = unprocessableEntityErrorSchema;
1715
+ const chatsFindMessagesStatus429Schema = tooManyRequestsErrorSchema;
1716
+ const chatsFindMessagesStatus500Schema = internalServerErrorSchema;
1717
+ const chatsFindMessagesResponseSchema = chatsFindMessagesStatus200Schema;
1718
+ const chatsFindMessagesErrorSchema = z.union([
1719
+ chatsFindMessagesStatus401Schema,
1720
+ chatsFindMessagesStatus403Schema,
1721
+ chatsFindMessagesStatus404Schema,
1722
+ chatsFindMessagesStatus409Schema,
1723
+ chatsFindMessagesStatus413Schema,
1724
+ chatsFindMessagesStatus422Schema,
1725
+ chatsFindMessagesStatus429Schema,
1726
+ chatsFindMessagesStatus500Schema
1727
+ ]);
1728
+ const chatsFindMessagesPathSchema = z.object({
1729
+ chatId: z.string().describe("The unique identifier of the chat to retrieve messages for. Provided as a path parameter.")
1730
+ });
1731
+ const chatsFindMessagesQuerySchema = z.object({
1732
+ limit: z.number().min(1).max(150).optional().default(20).describe("Specifies the maximum number of message records to return in a single response. Useful for paginating results when there are many messages."),
1733
+ cursor: z.string().optional().describe("Base64 encoded cursor containing pagination data")
1734
+ });
1735
+ const chatsSendMessagePathChatIdSchema = z.string().describe("The unique identifier of the chat to send the message to. Provided as a path parameter.");
1736
+ const chatsSendMessageStatus200Schema = chatDetailSchema.describe("Detailed representation of a chat, including its messages, files, versions, and model configuration.");
1737
+ const chatsSendMessageStatus401Schema = unauthorizedErrorSchema;
1738
+ const chatsSendMessageStatus403Schema = forbiddenErrorSchema;
1739
+ const chatsSendMessageStatus404Schema = notFoundErrorSchema;
1740
+ const chatsSendMessageStatus409Schema = conflictErrorSchema;
1741
+ const chatsSendMessageStatus413Schema = payloadTooLargeErrorSchema;
1742
+ const chatsSendMessageStatus422Schema = unprocessableEntityErrorSchema;
1743
+ const chatsSendMessageStatus429Schema = tooManyRequestsErrorSchema;
1744
+ const chatsSendMessageStatus500Schema = internalServerErrorSchema;
1745
+ const chatsSendMessageResponseSchema = chatsSendMessageStatus200Schema;
1746
+ const chatsSendMessageErrorSchema = z.union([
1747
+ chatsSendMessageStatus401Schema,
1748
+ chatsSendMessageStatus403Schema,
1749
+ chatsSendMessageStatus404Schema,
1750
+ chatsSendMessageStatus409Schema,
1751
+ chatsSendMessageStatus413Schema,
1752
+ chatsSendMessageStatus422Schema,
1753
+ chatsSendMessageStatus429Schema,
1754
+ chatsSendMessageStatus500Schema
1755
+ ]);
1756
+ const chatsSendMessageBodySchema = z.strictObject({
1757
+ message: z.string().describe("The prompt or instruction to send to the model as part of the chat."),
1758
+ attachments: z.array(z.strictObject({
1759
+ url: z.string().describe("The URL or data URI of the file or asset to include with the message.")
1760
+ })).optional().default([]).describe("A list of files or assets to include with the message."),
1761
+ system: z.string().optional().describe("Provides system-level context or background for the chat. This is typically used to specify frameworks, tools, or development environments relevant to the task."),
1762
+ modelConfiguration: z.strictObject({
1763
+ modelId: z.string().min(3).max(200).regex(/^[a-z0-9][a-z0-9._-]*\/[a-z0-9][a-z0-9._/-]*$/).optional().default("v0-pro").describe("Model to use for the generation. Use a v0 model ID, or an [AI Gateway](https://vercel.com/ai-gateway/models) model ID in `creator/model` format. Gateway models must support tool calling and Zero Data Retention, and are subject to team model policy; unsupported IDs are rejected. `v0-auto` is deprecated and falls back to `v0-pro`."),
1764
+ imageGenerations: z.boolean().optional().default(false).describe("Enables image generations to generate up to 5 images per version."),
1765
+ thinking: z.boolean().optional().default(false).describe("Enables thinking to generate a response in multiple steps."),
1766
+ thinkingEffort: z.union([
1767
+ z.enum([
1768
+ "none",
1769
+ "minimal",
1770
+ "low",
1771
+ "medium",
1772
+ "high",
1773
+ "max",
1774
+ "xhigh"
1775
+ ]),
1776
+ z.null()
1777
+ ]).optional(),
1778
+ fast: z.boolean().optional()
1779
+ }).optional().describe("Overrides for the model behavior."),
1780
+ responseMode: z.enum([
1781
+ "async",
1782
+ "experimental_stream",
1783
+ "sync"
1784
+ ]).optional().default("sync").describe('Controls how the response is delivered.\n\n- `"sync"`: The response is returned immediately with the HTTP request.\n- `"async"`: Returns a message placeholder immediately; use getById to poll for completion status and final output.\n- `"experimental_stream"`: Returns content parts as Server-Sent Events for real-time streaming.'),
1785
+ mcpServerIds: z.array(z.string()).optional().describe("Array of MCP server IDs to enable for this message. When provided, only the specified servers will be used. When omitted, falls back to the user's enabled MCP servers."),
1786
+ attachedSkillIds: z.array(z.string()).optional().describe("Array of skill IDs (from skills.sh) to attach to this message. Backwards-compatible alias for `skills` entries of type `remote`. Maximum 3 skills per chat."),
1787
+ skills: z.array(z.discriminatedUnion("type", [
1788
+ z.strictObject({
1789
+ type: z.enum([
1790
+ "remote"
1791
+ ]).describe("Discriminator: a skills.sh skill."),
1792
+ id: z.string().describe("Skill ID from skills.sh.")
1793
+ }),
1794
+ z.strictObject({
1795
+ type: z.enum([
1796
+ "memory"
1797
+ ]).describe("Discriminator: a user- or team-scoped memory skill."),
1798
+ scope: z.enum([
1799
+ "user",
1800
+ "team"
1801
+ ]).describe("Whether the skill lives in user or team memory."),
1802
+ skillName: z.string().describe("Name of the memory skill to attach.")
1803
+ }),
1804
+ z.strictObject({
1805
+ type: z.enum([
1806
+ "project"
1807
+ ]).describe("Discriminator: a skill defined in the project repo."),
1808
+ skillName: z.string().describe("Name of the project skill to attach.")
1809
+ })
1810
+ ])).optional().describe("Skills to force-attach to this message. Supports skills.sh (`remote`), user/team memory (`memory`), and project (`project`) skills. Merged with `attachedSkillIds`. Maximum 3 skills per chat."),
1811
+ action: z.strictObject({
1812
+ type: z.enum([
1813
+ "fix-with-v0"
1814
+ ])
1815
+ }).optional().describe("An optional action to perform. Use `fix-with-v0` to trigger automatic error fixing — the message should contain the error logs or context to fix.")
1816
+ });
1817
+ const chatsSendMessagePathSchema = z.object({
1818
+ chatId: z.string().describe("The unique identifier of the chat to send the message to. Provided as a path parameter.")
1819
+ });
1820
+ const chatsGetMessagePathChatIdSchema = z.string().describe("The unique identifier of the chat containing the message. Provided as a path parameter.");
1821
+ const chatsGetMessagePathMessageIdSchema = z.string().describe("The unique identifier of the message to retrieve. Provided as a path parameter.");
1822
+ const chatsGetMessageStatus200Schema = messageDetailSchema.describe("Detailed message object extending MessageSummary with chat metadata.");
1823
+ const chatsGetMessageStatus401Schema = unauthorizedErrorSchema;
1824
+ const chatsGetMessageStatus403Schema = forbiddenErrorSchema;
1825
+ const chatsGetMessageStatus404Schema = notFoundErrorSchema;
1826
+ const chatsGetMessageStatus409Schema = conflictErrorSchema;
1827
+ const chatsGetMessageStatus413Schema = payloadTooLargeErrorSchema;
1828
+ const chatsGetMessageStatus422Schema = unprocessableEntityErrorSchema;
1829
+ const chatsGetMessageStatus429Schema = tooManyRequestsErrorSchema;
1830
+ const chatsGetMessageStatus500Schema = internalServerErrorSchema;
1831
+ const chatsGetMessageResponseSchema = chatsGetMessageStatus200Schema;
1832
+ const chatsGetMessageErrorSchema = z.union([
1833
+ chatsGetMessageStatus401Schema,
1834
+ chatsGetMessageStatus403Schema,
1835
+ chatsGetMessageStatus404Schema,
1836
+ chatsGetMessageStatus409Schema,
1837
+ chatsGetMessageStatus413Schema,
1838
+ chatsGetMessageStatus422Schema,
1839
+ chatsGetMessageStatus429Schema,
1840
+ chatsGetMessageStatus500Schema
1841
+ ]);
1842
+ const chatsGetMessagePathSchema = z.object({
1843
+ chatId: z.string().describe("The unique identifier of the chat containing the message. Provided as a path parameter."),
1844
+ messageId: z.string().describe("The unique identifier of the message to retrieve. Provided as a path parameter.")
1845
+ });
1846
+ const chatsFindVersionsPathChatIdSchema = z.string().describe("The unique identifier of the chat to retrieve versions for. Provided as a path parameter.");
1847
+ const chatsFindVersionsQueryLimitSchema = z.number().min(1).max(150).optional().default(20).describe("Specifies the maximum number of version records to return in a single response. Useful for paginating results when there are many versions.");
1848
+ const chatsFindVersionsQueryCursorSchema = z.string().optional().describe("Base64 encoded cursor containing pagination data");
1849
+ const chatsFindVersionsStatus200Schema = z.strictObject({
1850
+ object: z.enum([
1851
+ "list"
1852
+ ]),
1853
+ data: z.array(versionSummarySchema),
1854
+ pagination: z.strictObject({
1855
+ hasMore: z.boolean(),
1856
+ nextCursor: z.string().optional(),
1857
+ nextUrl: z.string().optional()
1858
+ }),
1859
+ meta: z.strictObject({
1860
+ totalCount: z.number()
1861
+ })
1862
+ });
1863
+ const chatsFindVersionsStatus401Schema = unauthorizedErrorSchema;
1864
+ const chatsFindVersionsStatus403Schema = forbiddenErrorSchema;
1865
+ const chatsFindVersionsStatus404Schema = notFoundErrorSchema;
1866
+ const chatsFindVersionsStatus409Schema = conflictErrorSchema;
1867
+ const chatsFindVersionsStatus413Schema = payloadTooLargeErrorSchema;
1868
+ const chatsFindVersionsStatus422Schema = unprocessableEntityErrorSchema;
1869
+ const chatsFindVersionsStatus429Schema = tooManyRequestsErrorSchema;
1870
+ const chatsFindVersionsStatus500Schema = internalServerErrorSchema;
1871
+ const chatsFindVersionsResponseSchema = chatsFindVersionsStatus200Schema;
1872
+ const chatsFindVersionsErrorSchema = z.union([
1873
+ chatsFindVersionsStatus401Schema,
1874
+ chatsFindVersionsStatus403Schema,
1875
+ chatsFindVersionsStatus404Schema,
1876
+ chatsFindVersionsStatus409Schema,
1877
+ chatsFindVersionsStatus413Schema,
1878
+ chatsFindVersionsStatus422Schema,
1879
+ chatsFindVersionsStatus429Schema,
1880
+ chatsFindVersionsStatus500Schema
1881
+ ]);
1882
+ const chatsFindVersionsPathSchema = z.object({
1883
+ chatId: z.string().describe("The unique identifier of the chat to retrieve versions for. Provided as a path parameter.")
1884
+ });
1885
+ const chatsFindVersionsQuerySchema = z.object({
1886
+ limit: z.number().min(1).max(150).optional().default(20).describe("Specifies the maximum number of version records to return in a single response. Useful for paginating results when there are many versions."),
1887
+ cursor: z.string().optional().describe("Base64 encoded cursor containing pagination data")
1888
+ });
1889
+ const chatsGetVersionPathChatIdSchema = z.string().describe("The unique identifier of the chat containing the version. Provided as a path parameter.");
1890
+ const chatsGetVersionPathVersionIdSchema = z.string().describe("The unique identifier of the version to retrieve. Provided as a path parameter.");
1891
+ const chatsGetVersionQueryIncludeDefaultFilesSchema = z.enum([
1892
+ "true",
1893
+ "false"
1894
+ ]).optional().describe("When true, includes all default files (package.json, configuration files, etc.) that would be part of a ZIP download. When false or omitted, returns only the generated source files.");
1895
+ const chatsGetVersionStatus200Schema = versionDetailSchema.describe("Detailed version data including file contents.");
1896
+ const chatsGetVersionStatus401Schema = unauthorizedErrorSchema;
1897
+ const chatsGetVersionStatus403Schema = forbiddenErrorSchema;
1898
+ const chatsGetVersionStatus404Schema = notFoundErrorSchema;
1899
+ const chatsGetVersionStatus409Schema = conflictErrorSchema;
1900
+ const chatsGetVersionStatus413Schema = payloadTooLargeErrorSchema;
1901
+ const chatsGetVersionStatus422Schema = unprocessableEntityErrorSchema;
1902
+ const chatsGetVersionStatus429Schema = tooManyRequestsErrorSchema;
1903
+ const chatsGetVersionStatus500Schema = internalServerErrorSchema;
1904
+ const chatsGetVersionResponseSchema = chatsGetVersionStatus200Schema;
1905
+ const chatsGetVersionErrorSchema = z.union([
1906
+ chatsGetVersionStatus401Schema,
1907
+ chatsGetVersionStatus403Schema,
1908
+ chatsGetVersionStatus404Schema,
1909
+ chatsGetVersionStatus409Schema,
1910
+ chatsGetVersionStatus413Schema,
1911
+ chatsGetVersionStatus422Schema,
1912
+ chatsGetVersionStatus429Schema,
1913
+ chatsGetVersionStatus500Schema
1914
+ ]);
1915
+ const chatsGetVersionPathSchema = z.object({
1916
+ chatId: z.string().describe("The unique identifier of the chat containing the version. Provided as a path parameter."),
1917
+ versionId: z.string().describe("The unique identifier of the version to retrieve. Provided as a path parameter.")
1918
+ });
1919
+ const chatsGetVersionQuerySchema = z.object({
1920
+ includeDefaultFiles: z.enum([
1921
+ "true",
1922
+ "false"
1923
+ ]).optional().describe("When true, includes all default files (package.json, configuration files, etc.) that would be part of a ZIP download. When false or omitted, returns only the generated source files.")
1924
+ });
1925
+ const chatsUpdateVersionPathChatIdSchema = z.string().describe("The unique identifier of the chat containing the version to update. Provided as a path parameter.");
1926
+ const chatsUpdateVersionPathVersionIdSchema = z.string().describe("The unique identifier of the version (block) to update. Provided as a path parameter.");
1927
+ const chatsUpdateVersionStatus200Schema = versionDetailSchema.describe("Detailed version data including file contents.");
1928
+ const chatsUpdateVersionStatus401Schema = unauthorizedErrorSchema;
1929
+ const chatsUpdateVersionStatus403Schema = forbiddenErrorSchema;
1930
+ const chatsUpdateVersionStatus404Schema = notFoundErrorSchema;
1931
+ const chatsUpdateVersionStatus409Schema = conflictErrorSchema;
1932
+ const chatsUpdateVersionStatus413Schema = payloadTooLargeErrorSchema;
1933
+ const chatsUpdateVersionStatus422Schema = unprocessableEntityErrorSchema;
1934
+ const chatsUpdateVersionStatus429Schema = tooManyRequestsErrorSchema;
1935
+ const chatsUpdateVersionStatus500Schema = internalServerErrorSchema;
1936
+ const chatsUpdateVersionResponseSchema = chatsUpdateVersionStatus200Schema;
1937
+ const chatsUpdateVersionErrorSchema = z.union([
1938
+ chatsUpdateVersionStatus401Schema,
1939
+ chatsUpdateVersionStatus403Schema,
1940
+ chatsUpdateVersionStatus404Schema,
1941
+ chatsUpdateVersionStatus409Schema,
1942
+ chatsUpdateVersionStatus413Schema,
1943
+ chatsUpdateVersionStatus422Schema,
1944
+ chatsUpdateVersionStatus429Schema,
1945
+ chatsUpdateVersionStatus500Schema
1946
+ ]);
1947
+ const chatsUpdateVersionBodySchema = z.strictObject({
1948
+ files: z.array(z.strictObject({
1949
+ name: z.string().describe('The full file path including extension (e.g., "components/test.tsx")'),
1950
+ content: z.string().describe("The new content for the file"),
1951
+ locked: z.boolean().optional().describe("Whether to lock or unlock the file to prevent AI from overwriting it during generation")
1952
+ })).describe("Array of files to update with their new content")
1953
+ });
1954
+ const chatsUpdateVersionPathSchema = z.object({
1955
+ chatId: z.string().describe("The unique identifier of the chat containing the version to update. Provided as a path parameter."),
1956
+ versionId: z.string().describe("The unique identifier of the version (block) to update. Provided as a path parameter.")
1957
+ });
1958
+ const chatsDownloadVersionPathChatIdSchema = z.string().describe("The unique identifier of the chat containing the version. Provided as a path parameter.");
1959
+ const chatsDownloadVersionPathVersionIdSchema = z.string().describe("The unique identifier of the version to download. Provided as a path parameter.");
1960
+ const chatsDownloadVersionQueryFormatSchema = z.enum([
1961
+ "zip",
1962
+ "tarball"
1963
+ ]).optional().default("zip").describe('The archive format for the download. Choose "zip" for broad compatibility or "tarball" for Unix/Linux systems.');
1964
+ const chatsDownloadVersionQueryIncludeDefaultFilesSchema = z.enum([
1965
+ "true",
1966
+ "false"
1967
+ ]).optional().describe("When true, includes all default files (package.json, configuration files, etc.) that would be part of a complete deployment. When false or omitted, returns only the generated source files.");
1968
+ const chatsDownloadVersionStatus200Schema = z.instanceof(File).describe("ZIP archive containing the version files");
1969
+ const chatsDownloadVersionStatus401Schema = unauthorizedErrorSchema;
1970
+ const chatsDownloadVersionStatus403Schema = forbiddenErrorSchema;
1971
+ const chatsDownloadVersionStatus404Schema = notFoundErrorSchema;
1972
+ const chatsDownloadVersionStatus409Schema = conflictErrorSchema;
1973
+ const chatsDownloadVersionStatus413Schema = payloadTooLargeErrorSchema;
1974
+ const chatsDownloadVersionStatus422Schema = unprocessableEntityErrorSchema;
1975
+ const chatsDownloadVersionStatus429Schema = tooManyRequestsErrorSchema;
1976
+ const chatsDownloadVersionStatus500Schema = internalServerErrorSchema;
1977
+ const chatsDownloadVersionResponseSchema = chatsDownloadVersionStatus200Schema;
1978
+ const chatsDownloadVersionErrorSchema = z.union([
1979
+ chatsDownloadVersionStatus401Schema,
1980
+ chatsDownloadVersionStatus403Schema,
1981
+ chatsDownloadVersionStatus404Schema,
1982
+ chatsDownloadVersionStatus409Schema,
1983
+ chatsDownloadVersionStatus413Schema,
1984
+ chatsDownloadVersionStatus422Schema,
1985
+ chatsDownloadVersionStatus429Schema,
1986
+ chatsDownloadVersionStatus500Schema
1987
+ ]);
1988
+ const chatsDownloadVersionPathSchema = z.object({
1989
+ chatId: z.string().describe("The unique identifier of the chat containing the version. Provided as a path parameter."),
1990
+ versionId: z.string().describe("The unique identifier of the version to download. Provided as a path parameter.")
1991
+ });
1992
+ const chatsDownloadVersionQuerySchema = z.object({
1993
+ format: z.enum([
1994
+ "zip",
1995
+ "tarball"
1996
+ ]).optional().default("zip").describe('The archive format for the download. Choose "zip" for broad compatibility or "tarball" for Unix/Linux systems.'),
1997
+ includeDefaultFiles: z.enum([
1998
+ "true",
1999
+ "false"
2000
+ ]).optional().describe("When true, includes all default files (package.json, configuration files, etc.) that would be part of a complete deployment. When false or omitted, returns only the generated source files.")
2001
+ });
2002
+ const chatsDeleteVersionFilesPathChatIdSchema = z.string().describe("The unique identifier of the chat containing the version to delete files from.");
2003
+ const chatsDeleteVersionFilesPathVersionIdSchema = z.string().describe("The unique identifier of the version (block) to delete files from.");
2004
+ const chatsDeleteVersionFilesStatus200Schema = versionDetailSchema.describe("Detailed version data including file contents.");
2005
+ const chatsDeleteVersionFilesStatus401Schema = unauthorizedErrorSchema;
2006
+ const chatsDeleteVersionFilesStatus403Schema = forbiddenErrorSchema;
2007
+ const chatsDeleteVersionFilesStatus404Schema = notFoundErrorSchema;
2008
+ const chatsDeleteVersionFilesStatus409Schema = conflictErrorSchema;
2009
+ const chatsDeleteVersionFilesStatus413Schema = payloadTooLargeErrorSchema;
2010
+ const chatsDeleteVersionFilesStatus422Schema = unprocessableEntityErrorSchema;
2011
+ const chatsDeleteVersionFilesStatus429Schema = tooManyRequestsErrorSchema;
2012
+ const chatsDeleteVersionFilesStatus500Schema = internalServerErrorSchema;
2013
+ const chatsDeleteVersionFilesResponseSchema = chatsDeleteVersionFilesStatus200Schema;
2014
+ const chatsDeleteVersionFilesErrorSchema = z.union([
2015
+ chatsDeleteVersionFilesStatus401Schema,
2016
+ chatsDeleteVersionFilesStatus403Schema,
2017
+ chatsDeleteVersionFilesStatus404Schema,
2018
+ chatsDeleteVersionFilesStatus409Schema,
2019
+ chatsDeleteVersionFilesStatus413Schema,
2020
+ chatsDeleteVersionFilesStatus422Schema,
2021
+ chatsDeleteVersionFilesStatus429Schema,
2022
+ chatsDeleteVersionFilesStatus500Schema
2023
+ ]);
2024
+ const chatsDeleteVersionFilesBodySchema = z.strictObject({
2025
+ filePaths: z.array(z.string()).describe('Array of file paths to delete (e.g., ["components/test.tsx", "lib/utils.ts"])')
2026
+ });
2027
+ const chatsDeleteVersionFilesPathSchema = z.object({
2028
+ chatId: z.string().describe("The unique identifier of the chat containing the version to delete files from."),
2029
+ versionId: z.string().describe("The unique identifier of the version (block) to delete files from.")
2030
+ });
2031
+ const chatsResumePathChatIdSchema = z.string().describe("The unique identifier of the chat containing the message to resume. Provided as a path parameter.");
2032
+ const chatsResumePathMessageIdSchema = z.string().describe("The identifier of the specific message to resume. Provided as a path parameter.");
2033
+ const chatsResumeStatus200Schema = z.string().describe("A Server-Sent Events stream of chat and message delta events.");
2034
+ const chatsResumeStatus401Schema = unauthorizedErrorSchema;
2035
+ const chatsResumeStatus403Schema = forbiddenErrorSchema;
2036
+ const chatsResumeStatus404Schema = notFoundErrorSchema;
2037
+ const chatsResumeStatus409Schema = conflictErrorSchema;
2038
+ const chatsResumeStatus413Schema = payloadTooLargeErrorSchema;
2039
+ const chatsResumeStatus422Schema = unprocessableEntityErrorSchema;
2040
+ const chatsResumeStatus429Schema = tooManyRequestsErrorSchema;
2041
+ const chatsResumeStatus500Schema = internalServerErrorSchema;
2042
+ const chatsResumeResponseSchema = chatsResumeStatus200Schema;
2043
+ const chatsResumeErrorSchema = z.union([
2044
+ chatsResumeStatus401Schema,
2045
+ chatsResumeStatus403Schema,
2046
+ chatsResumeStatus404Schema,
2047
+ chatsResumeStatus409Schema,
2048
+ chatsResumeStatus413Schema,
2049
+ chatsResumeStatus422Schema,
2050
+ chatsResumeStatus429Schema,
2051
+ chatsResumeStatus500Schema
2052
+ ]);
2053
+ const chatsResumePathSchema = z.object({
2054
+ chatId: z.string().describe("The unique identifier of the chat containing the message to resume. Provided as a path parameter."),
2055
+ messageId: z.string().describe("The identifier of the specific message to resume. Provided as a path parameter.")
2056
+ });
2057
+ const chatsStopPathChatIdSchema = z.string().describe("The unique identifier of the chat containing the message to stop. Provided as a path parameter.");
2058
+ const chatsStopPathMessageIdSchema = z.string().describe("The identifier of the specific message to stop. Provided as a path parameter.");
2059
+ const chatsStopStatus200Schema = z.strictObject({
2060
+ success: z.literal(true)
2061
+ });
2062
+ const chatsStopStatus401Schema = unauthorizedErrorSchema;
2063
+ const chatsStopStatus403Schema = forbiddenErrorSchema;
2064
+ const chatsStopStatus404Schema = notFoundErrorSchema;
2065
+ const chatsStopStatus409Schema = conflictErrorSchema;
2066
+ const chatsStopStatus413Schema = payloadTooLargeErrorSchema;
2067
+ const chatsStopStatus422Schema = unprocessableEntityErrorSchema;
2068
+ const chatsStopStatus429Schema = tooManyRequestsErrorSchema;
2069
+ const chatsStopStatus500Schema = internalServerErrorSchema;
2070
+ const chatsStopResponseSchema = chatsStopStatus200Schema;
2071
+ const chatsStopErrorSchema = z.union([
2072
+ chatsStopStatus401Schema,
2073
+ chatsStopStatus403Schema,
2074
+ chatsStopStatus404Schema,
2075
+ chatsStopStatus409Schema,
2076
+ chatsStopStatus413Schema,
2077
+ chatsStopStatus422Schema,
2078
+ chatsStopStatus429Schema,
2079
+ chatsStopStatus500Schema
2080
+ ]);
2081
+ const chatsStopPathSchema = z.object({
2082
+ chatId: z.string().describe("The unique identifier of the chat containing the message to stop. Provided as a path parameter."),
2083
+ messageId: z.string().describe("The identifier of the specific message to stop. Provided as a path parameter.")
2084
+ });
2085
+ const chatsResolveTaskPathChatIdSchema = z.string().describe("The unique identifier of the chat containing the pending task. Provided as a path parameter.");
2086
+ const chatsResolveTaskStatus200Schema = chatDetailSchema.describe("Detailed representation of a chat, including its messages, files, versions, and model configuration.");
2087
+ const chatsResolveTaskStatus401Schema = unauthorizedErrorSchema;
2088
+ const chatsResolveTaskStatus403Schema = forbiddenErrorSchema;
2089
+ const chatsResolveTaskStatus404Schema = notFoundErrorSchema;
2090
+ const chatsResolveTaskStatus409Schema = conflictErrorSchema;
2091
+ const chatsResolveTaskStatus413Schema = payloadTooLargeErrorSchema;
2092
+ const chatsResolveTaskStatus422Schema = unprocessableEntityErrorSchema;
2093
+ const chatsResolveTaskStatus429Schema = tooManyRequestsErrorSchema;
2094
+ const chatsResolveTaskStatus500Schema = internalServerErrorSchema;
2095
+ const chatsResolveTaskResponseSchema = chatsResolveTaskStatus200Schema;
2096
+ const chatsResolveTaskErrorSchema = z.union([
2097
+ chatsResolveTaskStatus401Schema,
2098
+ chatsResolveTaskStatus403Schema,
2099
+ chatsResolveTaskStatus404Schema,
2100
+ chatsResolveTaskStatus409Schema,
2101
+ chatsResolveTaskStatus413Schema,
2102
+ chatsResolveTaskStatus422Schema,
2103
+ chatsResolveTaskStatus429Schema,
2104
+ chatsResolveTaskStatus500Schema
2105
+ ]);
2106
+ const chatsResolveTaskBodySchema = z.strictObject({
2107
+ task: z.discriminatedUnion("type", [
2108
+ z.strictObject({
2109
+ type: z.enum([
2110
+ "confirmed-steps"
2111
+ ]),
2112
+ connectedIntegrationNames: z.array(z.string().max(2052)).optional().default([]).describe('Names of integrations that were successfully connected (e.g. "Neon"). Pass an empty array to skip.'),
2113
+ connectedNpmRegistryIds: z.array(z.string().max(2052)).optional().default([]).describe("Deprecated. npm registry connections are no longer supported; this field is accepted for compatibility and ignored."),
2114
+ connectedMcpPresetNames: z.array(z.enum([
2115
+ "Linear",
2116
+ "Notion",
2117
+ "Context7",
2118
+ "Sentry",
2119
+ "Zapier",
2120
+ "Glean",
2121
+ "Hex",
2122
+ "Sanity",
2123
+ "Granola",
2124
+ "PostHog",
2125
+ "Contentful",
2126
+ "Mobbin",
2127
+ "Slack",
2128
+ "Nitrosend",
2129
+ "Datadog"
2130
+ ])).optional().default([]).describe('Names of MCP presets that were connected (e.g. "Linear", "Sentry"). Pass an empty array to skip.'),
2131
+ appliedScripts: z.array(z.string().min(1)).optional().default([]).describe("Names of scripts that were applied."),
2132
+ addedEnvVars: z.array(z.string().min(1)).optional().default([]).describe("Names of environment variables that were added.")
2133
+ }),
2134
+ z.strictObject({
2135
+ type: z.enum([
2136
+ "plan-exit-response"
2137
+ ]),
2138
+ status: z.enum([
2139
+ "approved",
2140
+ "rejected",
2141
+ "request-changes"
2142
+ ]).describe("Whether the plan is approved, rejected, or needs changes."),
2143
+ content: z.string().min(1).describe("Feedback or instructions for the agent.")
2144
+ }),
2145
+ z.strictObject({
2146
+ type: z.enum([
2147
+ "answered-questions"
2148
+ ]),
2149
+ answers: z.array(z.strictObject({
2150
+ questionId: z.string().min(1).describe("The ID of the question being answered."),
2151
+ questionText: z.string().min(1).describe("The text of the question being answered."),
2152
+ selectedLabels: z.array(z.string().min(1)).describe("The labels of the selected options. For single-select questions, pass one item."),
2153
+ customText: z.string().min(1).optional().describe('Free-form text input, used when the user selects "Other" or wants to add context.')
2154
+ })).describe("Answers to the questions the agent asked.")
2155
+ }),
2156
+ z.strictObject({
2157
+ type: z.enum([
2158
+ "confirmed-permissions"
2159
+ ]),
2160
+ permissions: z.array(z.strictObject({
2161
+ type: z.enum([
2162
+ "ALLOW_DYNAMIC_TOOL_STRICT"
2163
+ ]),
2164
+ toolName: z.string().min(1).describe("The name of the tool being permitted."),
2165
+ input: z.unknown().describe("The tool call input arguments. Pass the exact input from the stopped task."),
2166
+ toolDisplayName: z.union([
2167
+ z.string().min(1).max(100),
2168
+ z.null()
2169
+ ]).optional().describe("The tool's original human-readable name from the stopped task. Display-only; pass back unchanged. Capped at 100 characters, matching the cap applied when the name is ingested from the server."),
2170
+ taskNameActive: z.union([
2171
+ z.string().min(1),
2172
+ z.null()
2173
+ ]).optional().describe('Label shown while the tool is running (e.g. "Running migration").'),
2174
+ taskNameComplete: z.union([
2175
+ z.string().min(1),
2176
+ z.null()
2177
+ ]).optional().describe('Label shown after the tool completes (e.g. "Migration complete").'),
2178
+ userMessage: z.string().min(1).optional().describe("Optional message from the user about this permission.")
2179
+ })).describe("The permissions to grant. Pass the suggestedPermissions from the stopped task."),
2180
+ userMessage: z.string().min(1).optional().describe("Optional message from the user about the permission grant.")
2181
+ }),
2182
+ z.strictObject({
2183
+ type: z.enum([
2184
+ "vercel-connect-setup"
2185
+ ])
2186
+ }),
2187
+ z.strictObject({
2188
+ type: z.enum([
2189
+ "vercel-connect-authorization"
2190
+ ])
2191
+ })
2192
+ ]).describe("The task resolution data. Use this when the chat is waiting for user input on the matching task type."),
2193
+ responseMode: z.enum([
2194
+ "async",
2195
+ "experimental_stream",
2196
+ "sync"
2197
+ ]).optional().default("sync").describe('Controls how the response is delivered.\n\n- `"sync"`: The response is returned immediately with the HTTP request.\n- `"async"`: Returns a message placeholder immediately; use getById to poll for completion status and final output.\n- `"experimental_stream"`: Returns content parts as Server-Sent Events for real-time streaming.'),
2198
+ modelConfiguration: z.strictObject({
2199
+ modelId: z.string().min(3).max(200).regex(/^[a-z0-9][a-z0-9._-]*\/[a-z0-9][a-z0-9._/-]*$/).optional().default("v0-pro").describe("Model to use for the generation. Use a v0 model ID, or an [AI Gateway](https://vercel.com/ai-gateway/models) model ID in `creator/model` format. Gateway models must support tool calling and Zero Data Retention, and are subject to team model policy; unsupported IDs are rejected. `v0-auto` is deprecated and falls back to `v0-pro`."),
2200
+ imageGenerations: z.boolean().optional().default(false).describe("Enables image generations to generate up to 5 images per version."),
2201
+ thinking: z.boolean().optional().default(false).describe("Enables thinking to generate a response in multiple steps."),
2202
+ thinkingEffort: z.union([
2203
+ z.enum([
2204
+ "none",
2205
+ "minimal",
2206
+ "low",
2207
+ "medium",
2208
+ "high",
2209
+ "max",
2210
+ "xhigh"
2211
+ ]),
2212
+ z.null()
2213
+ ]).optional(),
2214
+ fast: z.boolean().optional()
2215
+ }).optional().describe("Overrides for the model behavior.")
2216
+ });
2217
+ const chatsResolveTaskPathSchema = z.object({
2218
+ chatId: z.string().describe("The unique identifier of the chat containing the pending task. Provided as a path parameter.")
2219
+ });
2220
+ const deploymentsFindQueryProjectIdSchema = z.string().optional().describe("The ID of the project to find deployments for");
2221
+ const deploymentsFindQueryChatIdSchema = z.string().describe("The ID of the chat to find deployments for");
2222
+ const deploymentsFindQueryVersionIdSchema = z.string().describe("The ID of the version to find deployments for");
2223
+ const deploymentsFindStatus200Schema = z.strictObject({
2224
+ object: z.enum([
2225
+ "list"
2226
+ ]),
2227
+ data: z.array(deploymentDetailSchema)
2228
+ });
2229
+ const deploymentsFindStatus401Schema = unauthorizedErrorSchema;
2230
+ const deploymentsFindStatus403Schema = forbiddenErrorSchema;
2231
+ const deploymentsFindStatus404Schema = notFoundErrorSchema;
2232
+ const deploymentsFindStatus409Schema = conflictErrorSchema;
2233
+ const deploymentsFindStatus413Schema = payloadTooLargeErrorSchema;
2234
+ const deploymentsFindStatus422Schema = unprocessableEntityErrorSchema;
2235
+ const deploymentsFindStatus429Schema = tooManyRequestsErrorSchema;
2236
+ const deploymentsFindStatus500Schema = internalServerErrorSchema;
2237
+ const deploymentsFindResponseSchema = deploymentsFindStatus200Schema;
2238
+ const deploymentsFindErrorSchema = z.union([
2239
+ deploymentsFindStatus401Schema,
2240
+ deploymentsFindStatus403Schema,
2241
+ deploymentsFindStatus404Schema,
2242
+ deploymentsFindStatus409Schema,
2243
+ deploymentsFindStatus413Schema,
2244
+ deploymentsFindStatus422Schema,
2245
+ deploymentsFindStatus429Schema,
2246
+ deploymentsFindStatus500Schema
2247
+ ]);
2248
+ const deploymentsFindQuerySchema = z.object({
2249
+ projectId: z.string().optional().describe("The ID of the project to find deployments for"),
2250
+ chatId: z.string().describe("The ID of the chat to find deployments for"),
2251
+ versionId: z.string().describe("The ID of the version to find deployments for")
2252
+ });
2253
+ const deploymentsCreateStatus200Schema = deploymentDetailSchema;
2254
+ const deploymentsCreateStatus401Schema = unauthorizedErrorSchema;
2255
+ const deploymentsCreateStatus403Schema = forbiddenErrorSchema;
2256
+ const deploymentsCreateStatus404Schema = notFoundErrorSchema;
2257
+ const deploymentsCreateStatus409Schema = conflictErrorSchema;
2258
+ const deploymentsCreateStatus413Schema = payloadTooLargeErrorSchema;
2259
+ const deploymentsCreateStatus422Schema = unprocessableEntityErrorSchema;
2260
+ const deploymentsCreateStatus429Schema = tooManyRequestsErrorSchema;
2261
+ const deploymentsCreateStatus500Schema = internalServerErrorSchema;
2262
+ const deploymentsCreateResponseSchema = deploymentsCreateStatus200Schema;
2263
+ const deploymentsCreateErrorSchema = z.union([
2264
+ deploymentsCreateStatus401Schema,
2265
+ deploymentsCreateStatus403Schema,
2266
+ deploymentsCreateStatus404Schema,
2267
+ deploymentsCreateStatus409Schema,
2268
+ deploymentsCreateStatus413Schema,
2269
+ deploymentsCreateStatus422Schema,
2270
+ deploymentsCreateStatus429Schema,
2271
+ deploymentsCreateStatus500Schema
2272
+ ]);
2273
+ const deploymentsCreateBodySchema = z.strictObject({
2274
+ projectId: z.string().optional(),
2275
+ chatId: z.string(),
2276
+ versionId: z.string()
2277
+ });
2278
+ const deploymentsGetByIdPathDeploymentIdSchema = z.string().describe('Path parameter "deploymentId"');
2279
+ const deploymentsGetByIdStatus200Schema = deploymentDetailSchema;
2280
+ const deploymentsGetByIdStatus401Schema = unauthorizedErrorSchema;
2281
+ const deploymentsGetByIdStatus403Schema = forbiddenErrorSchema;
2282
+ const deploymentsGetByIdStatus404Schema = notFoundErrorSchema;
2283
+ const deploymentsGetByIdStatus409Schema = conflictErrorSchema;
2284
+ const deploymentsGetByIdStatus413Schema = payloadTooLargeErrorSchema;
2285
+ const deploymentsGetByIdStatus422Schema = unprocessableEntityErrorSchema;
2286
+ const deploymentsGetByIdStatus429Schema = tooManyRequestsErrorSchema;
2287
+ const deploymentsGetByIdStatus500Schema = internalServerErrorSchema;
2288
+ const deploymentsGetByIdResponseSchema = deploymentsGetByIdStatus200Schema;
2289
+ const deploymentsGetByIdErrorSchema = z.union([
2290
+ deploymentsGetByIdStatus401Schema,
2291
+ deploymentsGetByIdStatus403Schema,
2292
+ deploymentsGetByIdStatus404Schema,
2293
+ deploymentsGetByIdStatus409Schema,
2294
+ deploymentsGetByIdStatus413Schema,
2295
+ deploymentsGetByIdStatus422Schema,
2296
+ deploymentsGetByIdStatus429Schema,
2297
+ deploymentsGetByIdStatus500Schema
2298
+ ]);
2299
+ const deploymentsGetByIdPathSchema = z.object({
2300
+ deploymentId: z.string().describe('Path parameter "deploymentId"')
2301
+ });
2302
+ const deploymentsDeletePathDeploymentIdSchema = z.string().describe('Path parameter "deploymentId"');
2303
+ const deploymentsDeleteStatus200Schema = z.strictObject({
2304
+ id: z.string(),
2305
+ object: z.enum([
2306
+ "deployment"
2307
+ ]),
2308
+ deleted: z.literal(true)
2309
+ });
2310
+ const deploymentsDeleteStatus401Schema = unauthorizedErrorSchema;
2311
+ const deploymentsDeleteStatus403Schema = forbiddenErrorSchema;
2312
+ const deploymentsDeleteStatus404Schema = notFoundErrorSchema;
2313
+ const deploymentsDeleteStatus409Schema = conflictErrorSchema;
2314
+ const deploymentsDeleteStatus413Schema = payloadTooLargeErrorSchema;
2315
+ const deploymentsDeleteStatus422Schema = unprocessableEntityErrorSchema;
2316
+ const deploymentsDeleteStatus429Schema = tooManyRequestsErrorSchema;
2317
+ const deploymentsDeleteStatus500Schema = internalServerErrorSchema;
2318
+ const deploymentsDeleteResponseSchema = deploymentsDeleteStatus200Schema;
2319
+ const deploymentsDeleteErrorSchema = z.union([
2320
+ deploymentsDeleteStatus401Schema,
2321
+ deploymentsDeleteStatus403Schema,
2322
+ deploymentsDeleteStatus404Schema,
2323
+ deploymentsDeleteStatus409Schema,
2324
+ deploymentsDeleteStatus413Schema,
2325
+ deploymentsDeleteStatus422Schema,
2326
+ deploymentsDeleteStatus429Schema,
2327
+ deploymentsDeleteStatus500Schema
2328
+ ]);
2329
+ const deploymentsDeletePathSchema = z.object({
2330
+ deploymentId: z.string().describe('Path parameter "deploymentId"')
2331
+ });
2332
+ const deploymentsFindLogsPathDeploymentIdSchema = z.string().describe("The unique identifier of the deployment to retrieve logs for. Provided as a path parameter.");
2333
+ const deploymentsFindLogsQuerySinceSchema = z.number().optional().describe("A UNIX timestamp (in seconds) used to filter logs. Returns only log entries generated after the specified time.");
2334
+ const deploymentsFindLogsStatus200Schema = z.strictObject({
2335
+ logs: z.array(z.strictObject({
2336
+ createdAt: z.string().describe("Log creation timestamp."),
2337
+ deploymentId: z.string().describe("Deployment ID."),
2338
+ id: z.string().describe("Log entry ID."),
2339
+ text: z.string().describe("Log message content."),
2340
+ type: z.enum([
2341
+ "stderr",
2342
+ "stdout"
2343
+ ]).describe("Output stream type."),
2344
+ level: z.enum([
2345
+ "error",
2346
+ "info",
2347
+ "warning"
2348
+ ]).optional().default("info").describe("Log severity level."),
2349
+ object: z.enum([
2350
+ "deployment_log"
2351
+ ]).describe("Object type identifier.")
2352
+ })).describe("Array of log entries."),
2353
+ nextSince: z.number().optional().describe("Timestamp for pagination."),
2354
+ object: z.enum([
2355
+ "list"
2356
+ ]).describe("Object type identifier.")
2357
+ });
2358
+ const deploymentsFindLogsStatus401Schema = unauthorizedErrorSchema;
2359
+ const deploymentsFindLogsStatus403Schema = forbiddenErrorSchema;
2360
+ const deploymentsFindLogsStatus404Schema = notFoundErrorSchema;
2361
+ const deploymentsFindLogsStatus409Schema = conflictErrorSchema;
2362
+ const deploymentsFindLogsStatus413Schema = payloadTooLargeErrorSchema;
2363
+ const deploymentsFindLogsStatus422Schema = unprocessableEntityErrorSchema;
2364
+ const deploymentsFindLogsStatus429Schema = tooManyRequestsErrorSchema;
2365
+ const deploymentsFindLogsStatus500Schema = internalServerErrorSchema;
2366
+ const deploymentsFindLogsResponseSchema = deploymentsFindLogsStatus200Schema;
2367
+ const deploymentsFindLogsErrorSchema = z.union([
2368
+ deploymentsFindLogsStatus401Schema,
2369
+ deploymentsFindLogsStatus403Schema,
2370
+ deploymentsFindLogsStatus404Schema,
2371
+ deploymentsFindLogsStatus409Schema,
2372
+ deploymentsFindLogsStatus413Schema,
2373
+ deploymentsFindLogsStatus422Schema,
2374
+ deploymentsFindLogsStatus429Schema,
2375
+ deploymentsFindLogsStatus500Schema
2376
+ ]);
2377
+ const deploymentsFindLogsPathSchema = z.object({
2378
+ deploymentId: z.string().describe("The unique identifier of the deployment to retrieve logs for. Provided as a path parameter.")
2379
+ });
2380
+ const deploymentsFindLogsQuerySchema = z.object({
2381
+ since: z.number().optional().describe("A UNIX timestamp (in seconds) used to filter logs. Returns only log entries generated after the specified time.")
2382
+ });
2383
+ const deploymentsFindErrorsPathDeploymentIdSchema = z.string().describe("The unique identifier of the deployment to inspect for errors. Provided as a path parameter.");
2384
+ const deploymentsFindErrorsStatus200Schema = z.strictObject({
2385
+ fullErrorText: z.string().optional(),
2386
+ errorType: z.string().optional(),
2387
+ formattedError: z.string().optional()
2388
+ });
2389
+ const deploymentsFindErrorsStatus401Schema = unauthorizedErrorSchema;
2390
+ const deploymentsFindErrorsStatus403Schema = forbiddenErrorSchema;
2391
+ const deploymentsFindErrorsStatus404Schema = notFoundErrorSchema;
2392
+ const deploymentsFindErrorsStatus409Schema = conflictErrorSchema;
2393
+ const deploymentsFindErrorsStatus413Schema = payloadTooLargeErrorSchema;
2394
+ const deploymentsFindErrorsStatus422Schema = unprocessableEntityErrorSchema;
2395
+ const deploymentsFindErrorsStatus429Schema = tooManyRequestsErrorSchema;
2396
+ const deploymentsFindErrorsStatus500Schema = internalServerErrorSchema;
2397
+ const deploymentsFindErrorsResponseSchema = deploymentsFindErrorsStatus200Schema;
2398
+ const deploymentsFindErrorsErrorSchema = z.union([
2399
+ deploymentsFindErrorsStatus401Schema,
2400
+ deploymentsFindErrorsStatus403Schema,
2401
+ deploymentsFindErrorsStatus404Schema,
2402
+ deploymentsFindErrorsStatus409Schema,
2403
+ deploymentsFindErrorsStatus413Schema,
2404
+ deploymentsFindErrorsStatus422Schema,
2405
+ deploymentsFindErrorsStatus429Schema,
2406
+ deploymentsFindErrorsStatus500Schema
2407
+ ]);
2408
+ const deploymentsFindErrorsPathSchema = z.object({
2409
+ deploymentId: z.string().describe("The unique identifier of the deployment to inspect for errors. Provided as a path parameter.")
2410
+ });
2411
+ const hooksFindStatus200Schema = z.strictObject({
2412
+ object: z.enum([
2413
+ "list"
2414
+ ]),
2415
+ data: z.array(hookSummarySchema)
2416
+ });
2417
+ const hooksFindStatus401Schema = unauthorizedErrorSchema;
2418
+ const hooksFindStatus403Schema = forbiddenErrorSchema;
2419
+ const hooksFindStatus404Schema = notFoundErrorSchema;
2420
+ const hooksFindStatus409Schema = conflictErrorSchema;
2421
+ const hooksFindStatus413Schema = payloadTooLargeErrorSchema;
2422
+ const hooksFindStatus422Schema = unprocessableEntityErrorSchema;
2423
+ const hooksFindStatus429Schema = tooManyRequestsErrorSchema;
2424
+ const hooksFindStatus500Schema = internalServerErrorSchema;
2425
+ const hooksFindResponseSchema = hooksFindStatus200Schema;
2426
+ const hooksFindErrorSchema = z.union([
2427
+ hooksFindStatus401Schema,
2428
+ hooksFindStatus403Schema,
2429
+ hooksFindStatus404Schema,
2430
+ hooksFindStatus409Schema,
2431
+ hooksFindStatus413Schema,
2432
+ hooksFindStatus422Schema,
2433
+ hooksFindStatus429Schema,
2434
+ hooksFindStatus500Schema
2435
+ ]);
2436
+ const hooksCreateStatus200Schema = hookDetailSchema.describe("Full configuration details for a webhook, including its scope and subscription.");
2437
+ const hooksCreateStatus401Schema = unauthorizedErrorSchema;
2438
+ const hooksCreateStatus403Schema = forbiddenErrorSchema;
2439
+ const hooksCreateStatus404Schema = notFoundErrorSchema;
2440
+ const hooksCreateStatus409Schema = conflictErrorSchema;
2441
+ const hooksCreateStatus413Schema = payloadTooLargeErrorSchema;
2442
+ const hooksCreateStatus422Schema = unprocessableEntityErrorSchema;
2443
+ const hooksCreateStatus429Schema = tooManyRequestsErrorSchema;
2444
+ const hooksCreateStatus500Schema = internalServerErrorSchema;
2445
+ const hooksCreateResponseSchema = hooksCreateStatus200Schema;
2446
+ const hooksCreateErrorSchema = z.union([
2447
+ hooksCreateStatus401Schema,
2448
+ hooksCreateStatus403Schema,
2449
+ hooksCreateStatus404Schema,
2450
+ hooksCreateStatus409Schema,
2451
+ hooksCreateStatus413Schema,
2452
+ hooksCreateStatus422Schema,
2453
+ hooksCreateStatus429Schema,
2454
+ hooksCreateStatus500Schema
2455
+ ]);
2456
+ const hooksCreateBodySchema = z.strictObject({
2457
+ name: z.string().describe("A human-readable name for the hook."),
2458
+ events: z.array(z.enum([
2459
+ "chat.created",
2460
+ "chat.deleted",
2461
+ "chat.updated",
2462
+ "message.created",
2463
+ "message.deleted",
2464
+ "message.finished",
2465
+ "message.updated"
2466
+ ])).describe("List of event types the hook should subscribe to."),
2467
+ chatId: z.string().optional().describe("The ID of a chat to scope the hook to."),
2468
+ url: z.url().describe("The target URL to receive the webhook payloads.")
2469
+ });
2470
+ const hooksGetByIdPathHookIdSchema = z.string().describe("The unique identifier of the hook to retrieve.");
2471
+ const hooksGetByIdStatus200Schema = hookDetailSchema.describe("Full configuration details for a webhook, including its scope and subscription.");
2472
+ const hooksGetByIdStatus401Schema = unauthorizedErrorSchema;
2473
+ const hooksGetByIdStatus403Schema = forbiddenErrorSchema;
2474
+ const hooksGetByIdStatus404Schema = notFoundErrorSchema;
2475
+ const hooksGetByIdStatus409Schema = conflictErrorSchema;
2476
+ const hooksGetByIdStatus413Schema = payloadTooLargeErrorSchema;
2477
+ const hooksGetByIdStatus422Schema = unprocessableEntityErrorSchema;
2478
+ const hooksGetByIdStatus429Schema = tooManyRequestsErrorSchema;
2479
+ const hooksGetByIdStatus500Schema = internalServerErrorSchema;
2480
+ const hooksGetByIdResponseSchema = hooksGetByIdStatus200Schema;
2481
+ const hooksGetByIdErrorSchema = z.union([
2482
+ hooksGetByIdStatus401Schema,
2483
+ hooksGetByIdStatus403Schema,
2484
+ hooksGetByIdStatus404Schema,
2485
+ hooksGetByIdStatus409Schema,
2486
+ hooksGetByIdStatus413Schema,
2487
+ hooksGetByIdStatus422Schema,
2488
+ hooksGetByIdStatus429Schema,
2489
+ hooksGetByIdStatus500Schema
2490
+ ]);
2491
+ const hooksGetByIdPathSchema = z.object({
2492
+ hookId: z.string().describe("The unique identifier of the hook to retrieve.")
2493
+ });
2494
+ const hooksUpdatePathHookIdSchema = z.string().describe("The ID of the webhook to update. Provided as a path parameter.");
2495
+ const hooksUpdateStatus200Schema = hookDetailSchema.describe("Full configuration details for a webhook, including its scope and subscription.");
2496
+ const hooksUpdateStatus401Schema = unauthorizedErrorSchema;
2497
+ const hooksUpdateStatus403Schema = forbiddenErrorSchema;
2498
+ const hooksUpdateStatus404Schema = notFoundErrorSchema;
2499
+ const hooksUpdateStatus409Schema = conflictErrorSchema;
2500
+ const hooksUpdateStatus413Schema = payloadTooLargeErrorSchema;
2501
+ const hooksUpdateStatus422Schema = unprocessableEntityErrorSchema;
2502
+ const hooksUpdateStatus429Schema = tooManyRequestsErrorSchema;
2503
+ const hooksUpdateStatus500Schema = internalServerErrorSchema;
2504
+ const hooksUpdateResponseSchema = hooksUpdateStatus200Schema;
2505
+ const hooksUpdateErrorSchema = z.union([
2506
+ hooksUpdateStatus401Schema,
2507
+ hooksUpdateStatus403Schema,
2508
+ hooksUpdateStatus404Schema,
2509
+ hooksUpdateStatus409Schema,
2510
+ hooksUpdateStatus413Schema,
2511
+ hooksUpdateStatus422Schema,
2512
+ hooksUpdateStatus429Schema,
2513
+ hooksUpdateStatus500Schema
2514
+ ]);
2515
+ const hooksUpdateBodySchema = z.strictObject({
2516
+ name: z.string().optional().describe("A new name for the hook."),
2517
+ events: z.array(z.enum([
2518
+ "chat.created",
2519
+ "chat.deleted",
2520
+ "chat.updated",
2521
+ "message.created",
2522
+ "message.deleted",
2523
+ "message.finished",
2524
+ "message.updated"
2525
+ ])).optional().describe("Updated list of event types to subscribe to."),
2526
+ url: z.url().optional().describe("A new URL to send webhook payloads to.")
2527
+ });
2528
+ const hooksUpdatePathSchema = z.object({
2529
+ hookId: z.string().describe("The ID of the webhook to update. Provided as a path parameter.")
2530
+ });
2531
+ const hooksDeletePathHookIdSchema = z.string().describe("The ID of the webhook to delete. Provided as a path parameter.");
2532
+ const hooksDeleteStatus200Schema = z.strictObject({
2533
+ id: z.string(),
2534
+ object: z.enum([
2535
+ "hook"
2536
+ ]),
2537
+ deleted: z.literal(true)
2538
+ });
2539
+ const hooksDeleteStatus401Schema = unauthorizedErrorSchema;
2540
+ const hooksDeleteStatus403Schema = forbiddenErrorSchema;
2541
+ const hooksDeleteStatus404Schema = notFoundErrorSchema;
2542
+ const hooksDeleteStatus409Schema = conflictErrorSchema;
2543
+ const hooksDeleteStatus413Schema = payloadTooLargeErrorSchema;
2544
+ const hooksDeleteStatus422Schema = unprocessableEntityErrorSchema;
2545
+ const hooksDeleteStatus429Schema = tooManyRequestsErrorSchema;
2546
+ const hooksDeleteStatus500Schema = internalServerErrorSchema;
2547
+ const hooksDeleteResponseSchema = hooksDeleteStatus200Schema;
2548
+ const hooksDeleteErrorSchema = z.union([
2549
+ hooksDeleteStatus401Schema,
2550
+ hooksDeleteStatus403Schema,
2551
+ hooksDeleteStatus404Schema,
2552
+ hooksDeleteStatus409Schema,
2553
+ hooksDeleteStatus413Schema,
2554
+ hooksDeleteStatus422Schema,
2555
+ hooksDeleteStatus429Schema,
2556
+ hooksDeleteStatus500Schema
2557
+ ]);
2558
+ const hooksDeletePathSchema = z.object({
2559
+ hookId: z.string().describe("The ID of the webhook to delete. Provided as a path parameter.")
2560
+ });
2561
+ const integrationsVercelProjectsFindStatus200Schema = z.strictObject({
2562
+ object: z.enum([
2563
+ "list"
2564
+ ]),
2565
+ data: z.array(vercelProjectSummarySchema)
2566
+ });
2567
+ const integrationsVercelProjectsFindStatus401Schema = unauthorizedErrorSchema;
2568
+ const integrationsVercelProjectsFindStatus403Schema = forbiddenErrorSchema;
2569
+ const integrationsVercelProjectsFindStatus404Schema = notFoundErrorSchema;
2570
+ const integrationsVercelProjectsFindStatus409Schema = conflictErrorSchema;
2571
+ const integrationsVercelProjectsFindStatus413Schema = payloadTooLargeErrorSchema;
2572
+ const integrationsVercelProjectsFindStatus422Schema = unprocessableEntityErrorSchema;
2573
+ const integrationsVercelProjectsFindStatus429Schema = tooManyRequestsErrorSchema;
2574
+ const integrationsVercelProjectsFindStatus500Schema = internalServerErrorSchema;
2575
+ const integrationsVercelProjectsFindResponseSchema = integrationsVercelProjectsFindStatus200Schema;
2576
+ const integrationsVercelProjectsFindErrorSchema = z.union([
2577
+ integrationsVercelProjectsFindStatus401Schema,
2578
+ integrationsVercelProjectsFindStatus403Schema,
2579
+ integrationsVercelProjectsFindStatus404Schema,
2580
+ integrationsVercelProjectsFindStatus409Schema,
2581
+ integrationsVercelProjectsFindStatus413Schema,
2582
+ integrationsVercelProjectsFindStatus422Schema,
2583
+ integrationsVercelProjectsFindStatus429Schema,
2584
+ integrationsVercelProjectsFindStatus500Schema
2585
+ ]);
2586
+ const integrationsVercelProjectsCreateStatus200Schema = vercelProjectDetailSchema;
2587
+ const integrationsVercelProjectsCreateStatus401Schema = unauthorizedErrorSchema;
2588
+ const integrationsVercelProjectsCreateStatus403Schema = forbiddenErrorSchema;
2589
+ const integrationsVercelProjectsCreateStatus404Schema = notFoundErrorSchema;
2590
+ const integrationsVercelProjectsCreateStatus409Schema = conflictErrorSchema;
2591
+ const integrationsVercelProjectsCreateStatus413Schema = payloadTooLargeErrorSchema;
2592
+ const integrationsVercelProjectsCreateStatus422Schema = unprocessableEntityErrorSchema;
2593
+ const integrationsVercelProjectsCreateStatus429Schema = tooManyRequestsErrorSchema;
2594
+ const integrationsVercelProjectsCreateStatus500Schema = internalServerErrorSchema;
2595
+ const integrationsVercelProjectsCreateResponseSchema = integrationsVercelProjectsCreateStatus200Schema;
2596
+ const integrationsVercelProjectsCreateErrorSchema = z.union([
2597
+ integrationsVercelProjectsCreateStatus401Schema,
2598
+ integrationsVercelProjectsCreateStatus403Schema,
2599
+ integrationsVercelProjectsCreateStatus404Schema,
2600
+ integrationsVercelProjectsCreateStatus409Schema,
2601
+ integrationsVercelProjectsCreateStatus413Schema,
2602
+ integrationsVercelProjectsCreateStatus422Schema,
2603
+ integrationsVercelProjectsCreateStatus429Schema,
2604
+ integrationsVercelProjectsCreateStatus500Schema
2605
+ ]);
2606
+ const integrationsVercelProjectsCreateBodySchema = z.strictObject({
2607
+ projectId: z.string().describe("The ID of the v0 project to link to the new Vercel project."),
2608
+ name: z.string().describe("The name to assign to the new Vercel project.")
2609
+ });
2610
+ const projectsFindStatus200Schema = z.strictObject({
2611
+ object: z.enum([
2612
+ "list"
2613
+ ]),
2614
+ data: z.array(projectSummarySchema)
2615
+ });
2616
+ const projectsFindStatus401Schema = unauthorizedErrorSchema;
2617
+ const projectsFindStatus403Schema = forbiddenErrorSchema;
2618
+ const projectsFindStatus404Schema = notFoundErrorSchema;
2619
+ const projectsFindStatus409Schema = conflictErrorSchema;
2620
+ const projectsFindStatus413Schema = payloadTooLargeErrorSchema;
2621
+ const projectsFindStatus422Schema = unprocessableEntityErrorSchema;
2622
+ const projectsFindStatus429Schema = tooManyRequestsErrorSchema;
2623
+ const projectsFindStatus500Schema = internalServerErrorSchema;
2624
+ const projectsFindResponseSchema = projectsFindStatus200Schema;
2625
+ const projectsFindErrorSchema = z.union([
2626
+ projectsFindStatus401Schema,
2627
+ projectsFindStatus403Schema,
2628
+ projectsFindStatus404Schema,
2629
+ projectsFindStatus409Schema,
2630
+ projectsFindStatus413Schema,
2631
+ projectsFindStatus422Schema,
2632
+ projectsFindStatus429Schema,
2633
+ projectsFindStatus500Schema
2634
+ ]);
2635
+ const projectsCreateStatus200Schema = projectDetailSchema.describe("Full representation of a project, including its associated chats.");
2636
+ const projectsCreateStatus401Schema = unauthorizedErrorSchema;
2637
+ const projectsCreateStatus403Schema = forbiddenErrorSchema;
2638
+ const projectsCreateStatus404Schema = notFoundErrorSchema;
2639
+ const projectsCreateStatus409Schema = conflictErrorSchema;
2640
+ const projectsCreateStatus413Schema = payloadTooLargeErrorSchema;
2641
+ const projectsCreateStatus422Schema = unprocessableEntityErrorSchema;
2642
+ const projectsCreateStatus429Schema = tooManyRequestsErrorSchema;
2643
+ const projectsCreateStatus500Schema = internalServerErrorSchema;
2644
+ const projectsCreateResponseSchema = projectsCreateStatus200Schema;
2645
+ const projectsCreateErrorSchema = z.union([
2646
+ projectsCreateStatus401Schema,
2647
+ projectsCreateStatus403Schema,
2648
+ projectsCreateStatus404Schema,
2649
+ projectsCreateStatus409Schema,
2650
+ projectsCreateStatus413Schema,
2651
+ projectsCreateStatus422Schema,
2652
+ projectsCreateStatus429Schema,
2653
+ projectsCreateStatus500Schema
2654
+ ]);
2655
+ const projectsCreateBodySchema = z.strictObject({
2656
+ name: z.string().max(255).describe("The name of the project."),
2657
+ description: z.string().max(1000).optional().describe("A brief summary of the project’s purpose."),
2658
+ icon: z.string().optional().default("icon-wand-sparkles").describe("An icon identifier to visually represent the project."),
2659
+ environmentVariables: z.array(z.strictObject({
2660
+ key: z.string().max(255),
2661
+ value: z.string().max(1000)
2662
+ })).optional().describe("A list of key-value pairs used to define runtime variables for the project."),
2663
+ instructions: z.string().max(2000).optional().describe("Guidance or goals that provide context for the model when working within the project."),
2664
+ vercelProjectId: z.string().optional().describe("The ID of an existing Vercel project to link to. If not provided, a new Vercel project will be created."),
2665
+ privacy: z.enum([
2666
+ "private",
2667
+ "team"
2668
+ ]).optional().describe('The privacy setting for the project. For user accounts, this is always "private". For team/enterprise accounts, this can be either "private" or "team".')
2669
+ });
2670
+ const projectsGetByIdPathProjectIdSchema = z.string().describe("The unique identifier of the project to retrieve.");
2671
+ const projectsGetByIdStatus200Schema = projectDetailSchema.describe("Full representation of a project, including its associated chats.");
2672
+ const projectsGetByIdStatus401Schema = unauthorizedErrorSchema;
2673
+ const projectsGetByIdStatus403Schema = forbiddenErrorSchema;
2674
+ const projectsGetByIdStatus404Schema = notFoundErrorSchema;
2675
+ const projectsGetByIdStatus409Schema = conflictErrorSchema;
2676
+ const projectsGetByIdStatus413Schema = payloadTooLargeErrorSchema;
2677
+ const projectsGetByIdStatus422Schema = unprocessableEntityErrorSchema;
2678
+ const projectsGetByIdStatus429Schema = tooManyRequestsErrorSchema;
2679
+ const projectsGetByIdStatus500Schema = internalServerErrorSchema;
2680
+ const projectsGetByIdResponseSchema = projectsGetByIdStatus200Schema;
2681
+ const projectsGetByIdErrorSchema = z.union([
2682
+ projectsGetByIdStatus401Schema,
2683
+ projectsGetByIdStatus403Schema,
2684
+ projectsGetByIdStatus404Schema,
2685
+ projectsGetByIdStatus409Schema,
2686
+ projectsGetByIdStatus413Schema,
2687
+ projectsGetByIdStatus422Schema,
2688
+ projectsGetByIdStatus429Schema,
2689
+ projectsGetByIdStatus500Schema
2690
+ ]);
2691
+ const projectsGetByIdPathSchema = z.object({
2692
+ projectId: z.string().describe("The unique identifier of the project to retrieve.")
2693
+ });
2694
+ const projectsUpdatePathProjectIdSchema = z.string().describe("The unique identifier of the project to update. Provided as a path parameter.");
2695
+ const projectsUpdateStatus200Schema = projectDetailSchema.describe("Full representation of a project, including its associated chats.");
2696
+ const projectsUpdateStatus401Schema = unauthorizedErrorSchema;
2697
+ const projectsUpdateStatus403Schema = forbiddenErrorSchema;
2698
+ const projectsUpdateStatus404Schema = notFoundErrorSchema;
2699
+ const projectsUpdateStatus409Schema = conflictErrorSchema;
2700
+ const projectsUpdateStatus413Schema = payloadTooLargeErrorSchema;
2701
+ const projectsUpdateStatus422Schema = unprocessableEntityErrorSchema;
2702
+ const projectsUpdateStatus429Schema = tooManyRequestsErrorSchema;
2703
+ const projectsUpdateStatus500Schema = internalServerErrorSchema;
2704
+ const projectsUpdateResponseSchema = projectsUpdateStatus200Schema;
2705
+ const projectsUpdateErrorSchema = z.union([
2706
+ projectsUpdateStatus401Schema,
2707
+ projectsUpdateStatus403Schema,
2708
+ projectsUpdateStatus404Schema,
2709
+ projectsUpdateStatus409Schema,
2710
+ projectsUpdateStatus413Schema,
2711
+ projectsUpdateStatus422Schema,
2712
+ projectsUpdateStatus429Schema,
2713
+ projectsUpdateStatus500Schema
2714
+ ]);
2715
+ const projectsUpdateBodySchema = z.strictObject({
2716
+ name: z.string().optional().describe("A new name to assign to the project. Helps with identification and organization."),
2717
+ description: z.string().optional().describe("A new description to assign to the project. Helps with identification and organization."),
2718
+ instructions: z.string().optional().describe("Guidance or goals that provide context for the model when working within the project."),
2719
+ privacy: z.enum([
2720
+ "private",
2721
+ "team"
2722
+ ]).optional().describe('The privacy setting for the project. For user accounts, this must be "private". For team/enterprise accounts, this can be either "private" or "team".')
2723
+ });
2724
+ const projectsUpdatePathSchema = z.object({
2725
+ projectId: z.string().describe("The unique identifier of the project to update. Provided as a path parameter.")
2726
+ });
2727
+ const projectsDeletePathProjectIdSchema = z.string().describe("The unique identifier of the project to delete. This must be passed as a path parameter in the URL.");
2728
+ const projectsDeleteQueryDeleteAllChatsSchema = z.enum([
2729
+ "true",
2730
+ "false"
2731
+ ]).optional().default("false").describe("If true, deletes all the chats associated with the given project ID. Deleting is permanent. Defaults to false.");
2732
+ const projectsDeleteStatus200Schema = z.strictObject({
2733
+ id: z.string().describe("The unique identifier of the deleted project."),
2734
+ object: z.enum([
2735
+ "project"
2736
+ ]).describe("Fixed value identifying this object as a project."),
2737
+ deleted: z.literal(true).describe("Confirmation that the project has been deleted.")
2738
+ });
2739
+ const projectsDeleteStatus401Schema = unauthorizedErrorSchema;
2740
+ const projectsDeleteStatus403Schema = forbiddenErrorSchema;
2741
+ const projectsDeleteStatus404Schema = notFoundErrorSchema;
2742
+ const projectsDeleteStatus409Schema = conflictErrorSchema;
2743
+ const projectsDeleteStatus413Schema = payloadTooLargeErrorSchema;
2744
+ const projectsDeleteStatus422Schema = unprocessableEntityErrorSchema;
2745
+ const projectsDeleteStatus429Schema = tooManyRequestsErrorSchema;
2746
+ const projectsDeleteStatus500Schema = internalServerErrorSchema;
2747
+ const projectsDeleteResponseSchema = projectsDeleteStatus200Schema;
2748
+ const projectsDeleteErrorSchema = z.union([
2749
+ projectsDeleteStatus401Schema,
2750
+ projectsDeleteStatus403Schema,
2751
+ projectsDeleteStatus404Schema,
2752
+ projectsDeleteStatus409Schema,
2753
+ projectsDeleteStatus413Schema,
2754
+ projectsDeleteStatus422Schema,
2755
+ projectsDeleteStatus429Schema,
2756
+ projectsDeleteStatus500Schema
2757
+ ]);
2758
+ const projectsDeletePathSchema = z.object({
2759
+ projectId: z.string().describe("The unique identifier of the project to delete. This must be passed as a path parameter in the URL.")
2760
+ });
2761
+ const projectsDeleteQuerySchema = z.object({
2762
+ deleteAllChats: z.enum([
2763
+ "true",
2764
+ "false"
2765
+ ]).optional().default("false").describe("If true, deletes all the chats associated with the given project ID. Deleting is permanent. Defaults to false.")
2766
+ });
2767
+ const projectsAssignPathProjectIdSchema = z.string().describe("The ID of the project to assign.");
2768
+ const projectsAssignStatus200Schema = z.strictObject({
2769
+ object: z.enum([
2770
+ "project"
2771
+ ]),
2772
+ id: z.string(),
2773
+ assigned: z.literal(true)
2774
+ });
2775
+ const projectsAssignStatus401Schema = unauthorizedErrorSchema;
2776
+ const projectsAssignStatus403Schema = forbiddenErrorSchema;
2777
+ const projectsAssignStatus404Schema = notFoundErrorSchema;
2778
+ const projectsAssignStatus409Schema = conflictErrorSchema;
2779
+ const projectsAssignStatus413Schema = payloadTooLargeErrorSchema;
2780
+ const projectsAssignStatus422Schema = unprocessableEntityErrorSchema;
2781
+ const projectsAssignStatus429Schema = tooManyRequestsErrorSchema;
2782
+ const projectsAssignStatus500Schema = internalServerErrorSchema;
2783
+ const projectsAssignResponseSchema = projectsAssignStatus200Schema;
2784
+ const projectsAssignErrorSchema = z.union([
2785
+ projectsAssignStatus401Schema,
2786
+ projectsAssignStatus403Schema,
2787
+ projectsAssignStatus404Schema,
2788
+ projectsAssignStatus409Schema,
2789
+ projectsAssignStatus413Schema,
2790
+ projectsAssignStatus422Schema,
2791
+ projectsAssignStatus429Schema,
2792
+ projectsAssignStatus500Schema
2793
+ ]);
2794
+ const projectsAssignBodySchema = z.strictObject({
2795
+ chatId: z.string().describe("The ID of the chat to assign the project to.")
2796
+ });
2797
+ const projectsAssignPathSchema = z.object({
2798
+ projectId: z.string().describe("The ID of the project to assign.")
2799
+ });
2800
+ const projectsFindEnvVarsPathProjectIdSchema = z.string().describe("The unique identifier of the project whose environment variables should be retrieved.");
2801
+ const projectsFindEnvVarsQueryDecryptedSchema = z.enum([
2802
+ "true",
2803
+ "false"
2804
+ ]).optional().describe("Whether to return decrypted values. Defaults to false (encrypted).");
2805
+ const projectsFindEnvVarsStatus200Schema = z.strictObject({
2806
+ object: z.enum([
2807
+ "list"
2808
+ ]),
2809
+ data: z.array(environmentVariableSummarySchemaSchema)
2810
+ });
2811
+ const projectsFindEnvVarsStatus401Schema = unauthorizedErrorSchema;
2812
+ const projectsFindEnvVarsStatus403Schema = forbiddenErrorSchema;
2813
+ const projectsFindEnvVarsStatus404Schema = notFoundErrorSchema;
2814
+ const projectsFindEnvVarsStatus409Schema = conflictErrorSchema;
2815
+ const projectsFindEnvVarsStatus413Schema = payloadTooLargeErrorSchema;
2816
+ const projectsFindEnvVarsStatus422Schema = unprocessableEntityErrorSchema;
2817
+ const projectsFindEnvVarsStatus429Schema = tooManyRequestsErrorSchema;
2818
+ const projectsFindEnvVarsStatus500Schema = internalServerErrorSchema;
2819
+ const projectsFindEnvVarsResponseSchema = projectsFindEnvVarsStatus200Schema;
2820
+ const projectsFindEnvVarsErrorSchema = z.union([
2821
+ projectsFindEnvVarsStatus401Schema,
2822
+ projectsFindEnvVarsStatus403Schema,
2823
+ projectsFindEnvVarsStatus404Schema,
2824
+ projectsFindEnvVarsStatus409Schema,
2825
+ projectsFindEnvVarsStatus413Schema,
2826
+ projectsFindEnvVarsStatus422Schema,
2827
+ projectsFindEnvVarsStatus429Schema,
2828
+ projectsFindEnvVarsStatus500Schema
2829
+ ]);
2830
+ const projectsFindEnvVarsPathSchema = z.object({
2831
+ projectId: z.string().describe("The unique identifier of the project whose environment variables should be retrieved.")
2832
+ });
2833
+ const projectsFindEnvVarsQuerySchema = z.object({
2834
+ decrypted: z.enum([
2835
+ "true",
2836
+ "false"
2837
+ ]).optional().describe("Whether to return decrypted values. Defaults to false (encrypted).")
2838
+ });
2839
+ const projectsCreateEnvVarsPathProjectIdSchema = z.string().describe("The unique identifier of the project where environment variables should be created.");
2840
+ const projectsCreateEnvVarsQueryDecryptedSchema = z.enum([
2841
+ "true",
2842
+ "false"
2843
+ ]).optional().describe("Whether to return decrypted values. Defaults to false (encrypted).");
2844
+ const projectsCreateEnvVarsStatus200Schema = z.strictObject({
2845
+ object: z.enum([
2846
+ "list"
2847
+ ]),
2848
+ data: z.array(environmentVariableSummarySchemaSchema)
2849
+ });
2850
+ const projectsCreateEnvVarsStatus401Schema = unauthorizedErrorSchema;
2851
+ const projectsCreateEnvVarsStatus403Schema = forbiddenErrorSchema;
2852
+ const projectsCreateEnvVarsStatus404Schema = notFoundErrorSchema;
2853
+ const projectsCreateEnvVarsStatus409Schema = conflictErrorSchema;
2854
+ const projectsCreateEnvVarsStatus413Schema = payloadTooLargeErrorSchema;
2855
+ const projectsCreateEnvVarsStatus422Schema = unprocessableEntityErrorSchema;
2856
+ const projectsCreateEnvVarsStatus429Schema = tooManyRequestsErrorSchema;
2857
+ const projectsCreateEnvVarsStatus500Schema = internalServerErrorSchema;
2858
+ const projectsCreateEnvVarsResponseSchema = projectsCreateEnvVarsStatus200Schema;
2859
+ const projectsCreateEnvVarsErrorSchema = z.union([
2860
+ projectsCreateEnvVarsStatus401Schema,
2861
+ projectsCreateEnvVarsStatus403Schema,
2862
+ projectsCreateEnvVarsStatus404Schema,
2863
+ projectsCreateEnvVarsStatus409Schema,
2864
+ projectsCreateEnvVarsStatus413Schema,
2865
+ projectsCreateEnvVarsStatus422Schema,
2866
+ projectsCreateEnvVarsStatus429Schema,
2867
+ projectsCreateEnvVarsStatus500Schema
2868
+ ]);
2869
+ const projectsCreateEnvVarsBodySchema = z.strictObject({
2870
+ environmentVariables: z.array(z.strictObject({
2871
+ key: z.string().min(1).describe("The name of the environment variable."),
2872
+ value: z.string().describe("The value of the environment variable.")
2873
+ })).describe("An array of environment variables to create with key and value fields."),
2874
+ upsert: z.boolean().optional().describe("Whether to overwrite existing environment variables with the same keys. Defaults to false.")
2875
+ });
2876
+ const projectsCreateEnvVarsPathSchema = z.object({
2877
+ projectId: z.string().describe("The unique identifier of the project where environment variables should be created.")
2878
+ });
2879
+ const projectsCreateEnvVarsQuerySchema = z.object({
2880
+ decrypted: z.enum([
2881
+ "true",
2882
+ "false"
2883
+ ]).optional().describe("Whether to return decrypted values. Defaults to false (encrypted).")
2884
+ });
2885
+ const projectsUpdateEnvVarsPathProjectIdSchema = z.string().describe("The unique identifier of the project whose environment variables should be updated.");
2886
+ const projectsUpdateEnvVarsQueryDecryptedSchema = z.enum([
2887
+ "true",
2888
+ "false"
2889
+ ]).optional().describe("Whether to return decrypted values. Defaults to false (encrypted).");
2890
+ const projectsUpdateEnvVarsStatus200Schema = z.strictObject({
2891
+ object: z.enum([
2892
+ "list"
2893
+ ]),
2894
+ data: z.array(environmentVariableSummarySchemaSchema)
2895
+ });
2896
+ const projectsUpdateEnvVarsStatus401Schema = unauthorizedErrorSchema;
2897
+ const projectsUpdateEnvVarsStatus403Schema = forbiddenErrorSchema;
2898
+ const projectsUpdateEnvVarsStatus404Schema = notFoundErrorSchema;
2899
+ const projectsUpdateEnvVarsStatus409Schema = conflictErrorSchema;
2900
+ const projectsUpdateEnvVarsStatus413Schema = payloadTooLargeErrorSchema;
2901
+ const projectsUpdateEnvVarsStatus422Schema = unprocessableEntityErrorSchema;
2902
+ const projectsUpdateEnvVarsStatus429Schema = tooManyRequestsErrorSchema;
2903
+ const projectsUpdateEnvVarsStatus500Schema = internalServerErrorSchema;
2904
+ const projectsUpdateEnvVarsResponseSchema = projectsUpdateEnvVarsStatus200Schema;
2905
+ const projectsUpdateEnvVarsErrorSchema = z.union([
2906
+ projectsUpdateEnvVarsStatus401Schema,
2907
+ projectsUpdateEnvVarsStatus403Schema,
2908
+ projectsUpdateEnvVarsStatus404Schema,
2909
+ projectsUpdateEnvVarsStatus409Schema,
2910
+ projectsUpdateEnvVarsStatus413Schema,
2911
+ projectsUpdateEnvVarsStatus422Schema,
2912
+ projectsUpdateEnvVarsStatus429Schema,
2913
+ projectsUpdateEnvVarsStatus500Schema
2914
+ ]);
2915
+ const projectsUpdateEnvVarsBodySchema = z.strictObject({
2916
+ environmentVariables: z.array(z.strictObject({
2917
+ id: z.string().describe("The unique identifier of the environment variable to update."),
2918
+ value: z.string().describe("The new value of the environment variable.")
2919
+ })).describe("An array of environment variables to update with id and value fields.")
2920
+ });
2921
+ const projectsUpdateEnvVarsPathSchema = z.object({
2922
+ projectId: z.string().describe("The unique identifier of the project whose environment variables should be updated.")
2923
+ });
2924
+ const projectsUpdateEnvVarsQuerySchema = z.object({
2925
+ decrypted: z.enum([
2926
+ "true",
2927
+ "false"
2928
+ ]).optional().describe("Whether to return decrypted values. Defaults to false (encrypted).")
2929
+ });
2930
+ const projectsDeleteEnvVarsPathProjectIdSchema = z.string().describe("The unique identifier of the project whose environment variables should be deleted.");
2931
+ const projectsDeleteEnvVarsStatus200Schema = z.strictObject({
2932
+ object: z.enum([
2933
+ "list"
2934
+ ]),
2935
+ data: z.array(z.strictObject({
2936
+ id: z.string(),
2937
+ object: z.enum([
2938
+ "environment_variable"
2939
+ ]),
2940
+ deleted: z.literal(true)
2941
+ }))
2942
+ });
2943
+ const projectsDeleteEnvVarsStatus401Schema = unauthorizedErrorSchema;
2944
+ const projectsDeleteEnvVarsStatus403Schema = forbiddenErrorSchema;
2945
+ const projectsDeleteEnvVarsStatus404Schema = notFoundErrorSchema;
2946
+ const projectsDeleteEnvVarsStatus409Schema = conflictErrorSchema;
2947
+ const projectsDeleteEnvVarsStatus413Schema = payloadTooLargeErrorSchema;
2948
+ const projectsDeleteEnvVarsStatus422Schema = unprocessableEntityErrorSchema;
2949
+ const projectsDeleteEnvVarsStatus429Schema = tooManyRequestsErrorSchema;
2950
+ const projectsDeleteEnvVarsStatus500Schema = internalServerErrorSchema;
2951
+ const projectsDeleteEnvVarsResponseSchema = projectsDeleteEnvVarsStatus200Schema;
2952
+ const projectsDeleteEnvVarsErrorSchema = z.union([
2953
+ projectsDeleteEnvVarsStatus401Schema,
2954
+ projectsDeleteEnvVarsStatus403Schema,
2955
+ projectsDeleteEnvVarsStatus404Schema,
2956
+ projectsDeleteEnvVarsStatus409Schema,
2957
+ projectsDeleteEnvVarsStatus413Schema,
2958
+ projectsDeleteEnvVarsStatus422Schema,
2959
+ projectsDeleteEnvVarsStatus429Schema,
2960
+ projectsDeleteEnvVarsStatus500Schema
2961
+ ]);
2962
+ const projectsDeleteEnvVarsBodySchema = z.strictObject({
2963
+ environmentVariableIds: z.array(z.string()).describe("An array of environment variable IDs to delete.")
2964
+ });
2965
+ const projectsDeleteEnvVarsPathSchema = z.object({
2966
+ projectId: z.string().describe("The unique identifier of the project whose environment variables should be deleted.")
2967
+ });
2968
+ const projectsGetEnvVarPathProjectIdSchema = z.string().describe("The unique identifier of the project that owns the environment variable.");
2969
+ const projectsGetEnvVarPathEnvironmentVariableIdSchema = z.string().describe("The unique identifier of the environment variable to retrieve.");
2970
+ const projectsGetEnvVarQueryDecryptedSchema = z.enum([
2971
+ "true",
2972
+ "false"
2973
+ ]).optional().describe("Whether to return decrypted values. Defaults to false (encrypted).");
2974
+ const projectsGetEnvVarStatus200Schema = z.strictObject({
2975
+ object: z.enum([
2976
+ "environment_variable"
2977
+ ]),
2978
+ data: environmentVariableDetailSchemaSchema.describe("Detailed information for an environment variable including its value.")
2979
+ });
2980
+ const projectsGetEnvVarStatus401Schema = unauthorizedErrorSchema;
2981
+ const projectsGetEnvVarStatus403Schema = forbiddenErrorSchema;
2982
+ const projectsGetEnvVarStatus404Schema = notFoundErrorSchema;
2983
+ const projectsGetEnvVarStatus409Schema = conflictErrorSchema;
2984
+ const projectsGetEnvVarStatus413Schema = payloadTooLargeErrorSchema;
2985
+ const projectsGetEnvVarStatus422Schema = unprocessableEntityErrorSchema;
2986
+ const projectsGetEnvVarStatus429Schema = tooManyRequestsErrorSchema;
2987
+ const projectsGetEnvVarStatus500Schema = internalServerErrorSchema;
2988
+ const projectsGetEnvVarResponseSchema = projectsGetEnvVarStatus200Schema;
2989
+ const projectsGetEnvVarErrorSchema = z.union([
2990
+ projectsGetEnvVarStatus401Schema,
2991
+ projectsGetEnvVarStatus403Schema,
2992
+ projectsGetEnvVarStatus404Schema,
2993
+ projectsGetEnvVarStatus409Schema,
2994
+ projectsGetEnvVarStatus413Schema,
2995
+ projectsGetEnvVarStatus422Schema,
2996
+ projectsGetEnvVarStatus429Schema,
2997
+ projectsGetEnvVarStatus500Schema
2998
+ ]);
2999
+ const projectsGetEnvVarPathSchema = z.object({
3000
+ projectId: z.string().describe("The unique identifier of the project that owns the environment variable."),
3001
+ environmentVariableId: z.string().describe("The unique identifier of the environment variable to retrieve.")
3002
+ });
3003
+ const projectsGetEnvVarQuerySchema = z.object({
3004
+ decrypted: z.enum([
3005
+ "true",
3006
+ "false"
3007
+ ]).optional().describe("Whether to return decrypted values. Defaults to false (encrypted).")
3008
+ });
3009
+ const rateLimitsFindQueryScopeSchema = z.string().optional().describe("The context or namespace to check rate limits for (e.g., a project slug or feature area).");
3010
+ const rateLimitsFindStatus200Schema = z.strictObject({
3011
+ remaining: z.number().optional(),
3012
+ reset: z.number().optional(),
3013
+ limit: z.number(),
3014
+ dailyLimit: z.strictObject({
3015
+ limit: z.number().describe("The maximum number of daily messages allowed for free users."),
3016
+ remaining: z.number().describe("The number of messages the user has remaining for the day."),
3017
+ reset: z.number().describe("Unix timestamp (in milliseconds) when the daily limit resets."),
3018
+ isWithinGracePeriod: z.boolean().describe("Whether the user is within the 48-hour grace period for new users, during which usage tracking is disabled.")
3019
+ }).optional().describe("Daily message limit information for free users.")
3020
+ });
3021
+ const rateLimitsFindStatus401Schema = unauthorizedErrorSchema;
3022
+ const rateLimitsFindStatus403Schema = forbiddenErrorSchema;
3023
+ const rateLimitsFindStatus404Schema = notFoundErrorSchema;
3024
+ const rateLimitsFindStatus409Schema = conflictErrorSchema;
3025
+ const rateLimitsFindStatus413Schema = payloadTooLargeErrorSchema;
3026
+ const rateLimitsFindStatus422Schema = unprocessableEntityErrorSchema;
3027
+ const rateLimitsFindStatus429Schema = tooManyRequestsErrorSchema;
3028
+ const rateLimitsFindStatus500Schema = internalServerErrorSchema;
3029
+ const rateLimitsFindResponseSchema = rateLimitsFindStatus200Schema;
3030
+ const rateLimitsFindErrorSchema = z.union([
3031
+ rateLimitsFindStatus401Schema,
3032
+ rateLimitsFindStatus403Schema,
3033
+ rateLimitsFindStatus404Schema,
3034
+ rateLimitsFindStatus409Schema,
3035
+ rateLimitsFindStatus413Schema,
3036
+ rateLimitsFindStatus422Schema,
3037
+ rateLimitsFindStatus429Schema,
3038
+ rateLimitsFindStatus500Schema
3039
+ ]);
3040
+ const rateLimitsFindQuerySchema = z.object({
3041
+ scope: z.string().optional().describe("The context or namespace to check rate limits for (e.g., a project slug or feature area).")
3042
+ });
3043
+ const userGetStatus200Schema = userSummarySchemaSchema.describe("Details of the authenticated user, including profile and contact information.");
3044
+ const userGetStatus401Schema = unauthorizedErrorSchema;
3045
+ const userGetStatus403Schema = forbiddenErrorSchema;
3046
+ const userGetStatus404Schema = notFoundErrorSchema;
3047
+ const userGetStatus409Schema = conflictErrorSchema;
3048
+ const userGetStatus413Schema = payloadTooLargeErrorSchema;
3049
+ const userGetStatus422Schema = unprocessableEntityErrorSchema;
3050
+ const userGetStatus429Schema = tooManyRequestsErrorSchema;
3051
+ const userGetStatus500Schema = internalServerErrorSchema;
3052
+ const userGetResponseSchema = userGetStatus200Schema;
3053
+ const userGetErrorSchema = z.union([
3054
+ userGetStatus401Schema,
3055
+ userGetStatus403Schema,
3056
+ userGetStatus404Schema,
3057
+ userGetStatus409Schema,
3058
+ userGetStatus413Schema,
3059
+ userGetStatus422Schema,
3060
+ userGetStatus429Schema,
3061
+ userGetStatus500Schema
3062
+ ]);
3063
+ const userGetBillingQueryScopeSchema = z.string().optional().describe("Filters billing data by a specific scope, such as a project ID or slug.");
3064
+ const userGetBillingStatus200Schema = z.discriminatedUnion("billingType", [
3065
+ z.strictObject({
3066
+ billingType: z.enum([
3067
+ "token"
3068
+ ]),
3069
+ data: z.strictObject({
3070
+ plan: z.string(),
3071
+ billingMode: z.enum([
3072
+ "test"
3073
+ ]).optional(),
3074
+ role: z.string(),
3075
+ billingCycle: z.strictObject({
3076
+ start: z.number(),
3077
+ end: z.number()
3078
+ }),
3079
+ balance: z.strictObject({
3080
+ remaining: z.number(),
3081
+ total: z.number()
3082
+ }),
3083
+ onDemand: z.strictObject({
3084
+ balance: z.number(),
3085
+ blocks: z.array(z.strictObject({
3086
+ expirationDate: z.number().optional(),
3087
+ effectiveDate: z.number(),
3088
+ originalBalance: z.number(),
3089
+ currentBalance: z.number()
3090
+ })).optional()
3091
+ })
3092
+ })
3093
+ }),
3094
+ z.strictObject({
3095
+ billingType: z.enum([
3096
+ "legacy"
3097
+ ]),
3098
+ data: z.strictObject({
3099
+ remaining: z.number().optional(),
3100
+ reset: z.number().optional(),
3101
+ limit: z.number()
3102
+ })
3103
+ })
3104
+ ]);
3105
+ const userGetBillingStatus401Schema = unauthorizedErrorSchema;
3106
+ const userGetBillingStatus403Schema = forbiddenErrorSchema;
3107
+ const userGetBillingStatus404Schema = notFoundErrorSchema;
3108
+ const userGetBillingStatus409Schema = conflictErrorSchema;
3109
+ const userGetBillingStatus413Schema = payloadTooLargeErrorSchema;
3110
+ const userGetBillingStatus422Schema = unprocessableEntityErrorSchema;
3111
+ const userGetBillingStatus429Schema = tooManyRequestsErrorSchema;
3112
+ const userGetBillingStatus500Schema = internalServerErrorSchema;
3113
+ const userGetBillingResponseSchema = userGetBillingStatus200Schema;
3114
+ const userGetBillingErrorSchema = z.union([
3115
+ userGetBillingStatus401Schema,
3116
+ userGetBillingStatus403Schema,
3117
+ userGetBillingStatus404Schema,
3118
+ userGetBillingStatus409Schema,
3119
+ userGetBillingStatus413Schema,
3120
+ userGetBillingStatus422Schema,
3121
+ userGetBillingStatus429Schema,
3122
+ userGetBillingStatus500Schema
3123
+ ]);
3124
+ const userGetBillingQuerySchema = z.object({
3125
+ scope: z.string().optional().describe("Filters billing data by a specific scope, such as a project ID or slug.")
3126
+ });
3127
+ const userGetPlanStatus200Schema = z.strictObject({
3128
+ object: z.enum([
3129
+ "plan"
3130
+ ]),
3131
+ plan: z.string(),
3132
+ billingCycle: z.strictObject({
3133
+ start: z.number(),
3134
+ end: z.number()
3135
+ }),
3136
+ balance: z.strictObject({
3137
+ remaining: z.number(),
3138
+ total: z.number()
3139
+ })
3140
+ });
3141
+ const userGetPlanStatus401Schema = unauthorizedErrorSchema;
3142
+ const userGetPlanStatus403Schema = forbiddenErrorSchema;
3143
+ const userGetPlanStatus404Schema = notFoundErrorSchema;
3144
+ const userGetPlanStatus409Schema = conflictErrorSchema;
3145
+ const userGetPlanStatus413Schema = payloadTooLargeErrorSchema;
3146
+ const userGetPlanStatus422Schema = unprocessableEntityErrorSchema;
3147
+ const userGetPlanStatus429Schema = tooManyRequestsErrorSchema;
3148
+ const userGetPlanStatus500Schema = internalServerErrorSchema;
3149
+ const userGetPlanResponseSchema = userGetPlanStatus200Schema;
3150
+ const userGetPlanErrorSchema = z.union([
3151
+ userGetPlanStatus401Schema,
3152
+ userGetPlanStatus403Schema,
3153
+ userGetPlanStatus404Schema,
3154
+ userGetPlanStatus409Schema,
3155
+ userGetPlanStatus413Schema,
3156
+ userGetPlanStatus422Schema,
3157
+ userGetPlanStatus429Schema,
3158
+ userGetPlanStatus500Schema
3159
+ ]);
3160
+ const userGetScopesStatus200Schema = z.strictObject({
3161
+ object: z.enum([
3162
+ "list"
3163
+ ]),
3164
+ data: z.array(scopeSummarySchema)
3165
+ });
3166
+ const userGetScopesStatus401Schema = unauthorizedErrorSchema;
3167
+ const userGetScopesStatus403Schema = forbiddenErrorSchema;
3168
+ const userGetScopesStatus404Schema = notFoundErrorSchema;
3169
+ const userGetScopesStatus409Schema = conflictErrorSchema;
3170
+ const userGetScopesStatus413Schema = payloadTooLargeErrorSchema;
3171
+ const userGetScopesStatus422Schema = unprocessableEntityErrorSchema;
3172
+ const userGetScopesStatus429Schema = tooManyRequestsErrorSchema;
3173
+ const userGetScopesStatus500Schema = internalServerErrorSchema;
3174
+ const userGetScopesResponseSchema = userGetScopesStatus200Schema;
3175
+ const userGetScopesErrorSchema = z.union([
3176
+ userGetScopesStatus401Schema,
3177
+ userGetScopesStatus403Schema,
3178
+ userGetScopesStatus404Schema,
3179
+ userGetScopesStatus409Schema,
3180
+ userGetScopesStatus413Schema,
3181
+ userGetScopesStatus422Schema,
3182
+ userGetScopesStatus429Schema,
3183
+ userGetScopesStatus500Schema
3184
+ ]);
3185
+ const chatsRestorePathChatIdSchema = z.string().describe("The unique identifier of the chat containing the version to restore.");
3186
+ const chatsRestorePathVersionIdSchema = z.string().describe("The unique identifier of the version to restore.");
3187
+ const chatsRestoreStatus200Schema = versionDetailSchema.describe("Detailed version data including file contents.");
3188
+ const chatsRestoreStatus401Schema = unauthorizedErrorSchema;
3189
+ const chatsRestoreStatus403Schema = forbiddenErrorSchema;
3190
+ const chatsRestoreStatus404Schema = notFoundErrorSchema;
3191
+ const chatsRestoreStatus409Schema = conflictErrorSchema;
3192
+ const chatsRestoreStatus413Schema = payloadTooLargeErrorSchema;
3193
+ const chatsRestoreStatus422Schema = unprocessableEntityErrorSchema;
3194
+ const chatsRestoreStatus429Schema = tooManyRequestsErrorSchema;
3195
+ const chatsRestoreStatus500Schema = internalServerErrorSchema;
3196
+ const chatsRestoreResponseSchema = chatsRestoreStatus200Schema;
3197
+ const chatsRestoreErrorSchema = z.union([
3198
+ chatsRestoreStatus401Schema,
3199
+ chatsRestoreStatus403Schema,
3200
+ chatsRestoreStatus404Schema,
3201
+ chatsRestoreStatus409Schema,
3202
+ chatsRestoreStatus413Schema,
3203
+ chatsRestoreStatus422Schema,
3204
+ chatsRestoreStatus429Schema,
3205
+ chatsRestoreStatus500Schema
3206
+ ]);
3207
+ const chatsRestorePathSchema = z.object({
3208
+ chatId: z.string().describe("The unique identifier of the chat containing the version to restore."),
3209
+ versionId: z.string().describe("The unique identifier of the version to restore.")
3210
+ });
3211
+ const reportsGetUsageQueryStartDateSchema = z.iso.datetime({
3212
+ offset: true
3213
+ }).optional().describe('Query parameter "startDate"');
3214
+ const reportsGetUsageQueryEndDateSchema = z.iso.datetime({
3215
+ offset: true
3216
+ }).optional().describe('Query parameter "endDate"');
3217
+ const reportsGetUsageQueryChatIdSchema = z.string().optional().describe('Query parameter "chatId"');
3218
+ const reportsGetUsageQueryMessageIdSchema = z.string().optional().describe('Query parameter "messageId"');
3219
+ const reportsGetUsageQueryUserIdSchema = z.string().optional().describe('Query parameter "userId"');
3220
+ const reportsGetUsageQueryLimitSchema = z.number().min(1).max(150).optional().default(20).describe("Bounds the raw billing transactions scanned per ledger group and page. A page can contain more events than this value (large teams are scanned in parallel ledger groups), and a filtered page (chatId, userId, or messageId) can contain fewer or zero events while more data remains. Events are sorted newest-first within a page but not across pages on large teams. Always paginate with `pagination.hasMore` and `pagination.nextCursor` rather than stopping on an empty page.");
3221
+ const reportsGetUsageQueryCursorSchema = z.string().optional().describe("Base64 encoded cursor containing pagination data");
3222
+ const reportsGetUsageStatus200Schema = z.strictObject({
3223
+ object: z.enum([
3224
+ "list"
3225
+ ]),
3226
+ data: z.array(z.strictObject({
3227
+ id: z.string(),
3228
+ object: z.enum([
3229
+ "usage_event"
3230
+ ]),
3231
+ type: z.enum([
3232
+ "api_request",
3233
+ "buy-template",
3234
+ "image_generation",
3235
+ "inline-edit",
3236
+ "manual_debit",
3237
+ "message",
3238
+ "refund_template_purchase",
3239
+ "reverse_template_sale"
3240
+ ]).optional(),
3241
+ promptCost: z.string().optional(),
3242
+ completionCost: z.string().optional(),
3243
+ costBreakdownStatus: z.enum([
3244
+ "estimated",
3245
+ "unavailable"
3246
+ ]).optional().describe("Whether the cost components are estimated or unavailable. Unavailable components are omitted; totalCost remains authoritative."),
3247
+ totalCost: z.string(),
3248
+ chatId: z.string().optional(),
3249
+ messageId: z.string().optional(),
3250
+ userId: z.string().optional().describe("Deprecated - use user object instead"),
3251
+ user: userSummarySchemaSchema.optional().describe("Details of the authenticated user, including profile and contact information."),
3252
+ createdAt: z.iso.datetime({
3253
+ offset: true
3254
+ }).describe("The ISO timestamp representing when the usage event was created.")
3255
+ })),
3256
+ pagination: z.strictObject({
3257
+ hasMore: z.boolean(),
3258
+ nextCursor: z.string().optional(),
3259
+ nextUrl: z.string().optional()
3260
+ }),
3261
+ meta: z.strictObject({
3262
+ totalCount: z.number().describe("Number of events in THIS page only, counted after events are rolled up per message. Not a total across the query, and not a page size — do not use it to track progress or to decide whether to stop paginating. Use `pagination.hasMore` for that.")
3263
+ })
3264
+ });
3265
+ const reportsGetUsageStatus401Schema = unauthorizedErrorSchema;
3266
+ const reportsGetUsageStatus403Schema = forbiddenErrorSchema;
3267
+ const reportsGetUsageStatus404Schema = notFoundErrorSchema;
3268
+ const reportsGetUsageStatus409Schema = conflictErrorSchema;
3269
+ const reportsGetUsageStatus413Schema = payloadTooLargeErrorSchema;
3270
+ const reportsGetUsageStatus422Schema = unprocessableEntityErrorSchema;
3271
+ const reportsGetUsageStatus429Schema = tooManyRequestsErrorSchema;
3272
+ const reportsGetUsageStatus500Schema = internalServerErrorSchema;
3273
+ const reportsGetUsageResponseSchema = reportsGetUsageStatus200Schema;
3274
+ const reportsGetUsageErrorSchema = z.union([
3275
+ reportsGetUsageStatus401Schema,
3276
+ reportsGetUsageStatus403Schema,
3277
+ reportsGetUsageStatus404Schema,
3278
+ reportsGetUsageStatus409Schema,
3279
+ reportsGetUsageStatus413Schema,
3280
+ reportsGetUsageStatus422Schema,
3281
+ reportsGetUsageStatus429Schema,
3282
+ reportsGetUsageStatus500Schema
3283
+ ]);
3284
+ const reportsGetUsageQuerySchema = z.object({
3285
+ startDate: z.iso.datetime({
3286
+ offset: true
3287
+ }).optional().describe('Query parameter "startDate"'),
3288
+ endDate: z.iso.datetime({
3289
+ offset: true
3290
+ }).optional().describe('Query parameter "endDate"'),
3291
+ chatId: z.string().optional().describe('Query parameter "chatId"'),
3292
+ messageId: z.string().optional().describe('Query parameter "messageId"'),
3293
+ userId: z.string().optional().describe('Query parameter "userId"'),
3294
+ limit: z.number().min(1).max(150).optional().default(20).describe("Bounds the raw billing transactions scanned per ledger group and page. A page can contain more events than this value (large teams are scanned in parallel ledger groups), and a filtered page (chatId, userId, or messageId) can contain fewer or zero events while more data remains. Events are sorted newest-first within a page but not across pages on large teams. Always paginate with `pagination.hasMore` and `pagination.nextCursor` rather than stopping on an empty page."),
3295
+ cursor: z.string().optional().describe("Base64 encoded cursor containing pagination data")
3296
+ });
3297
+ const reportsGetAIUsageQueryStartSchema = z.iso.datetime({
3298
+ offset: true
3299
+ }).optional().describe("Inclusive start datetime filter.");
3300
+ const reportsGetAIUsageQueryEndSchema = z.iso.datetime({
3301
+ offset: true
3302
+ }).optional().describe("Exclusive end datetime filter.");
3303
+ const reportsGetAIUsageQueryCursorSchema = z.string().optional().describe("Opaque cursor returned by a previous request for forward pagination.");
3304
+ const reportsGetAIUsageQueryLimitSchema = z.int().min(1).max(5000).optional().default(1000).describe("Maximum number of rows to return.");
3305
+ const reportsGetAIUsageStatus200Schema = z.strictObject({
3306
+ object: z.enum([
3307
+ "list"
3308
+ ]),
3309
+ data: z.array(z.strictObject({
3310
+ eventId: z.string(),
3311
+ modelId: z.string(),
3312
+ inputTokens: z.number(),
3313
+ outputTokens: z.number(),
3314
+ totalTokens: z.number(),
3315
+ cacheCreationInputTokens: z.number(),
3316
+ cacheCreationInputTokens1h: z.number().optional().default(0),
3317
+ cacheReadInputTokens: z.number(),
3318
+ timestamp: z.string(),
3319
+ requestId: z.string(),
3320
+ useCase: z.string(),
3321
+ chatId: z.string(),
3322
+ messageId: z.string(),
3323
+ userId: z.string(),
3324
+ userEmail: z.string()
3325
+ })),
3326
+ pagination: z.strictObject({
3327
+ nextCursor: z.string().nullable()
3328
+ }),
3329
+ dateRange: z.strictObject({
3330
+ start: z.string().nullable(),
3331
+ end: z.string().nullable()
3332
+ })
3333
+ });
3334
+ const reportsGetAIUsageStatus401Schema = unauthorizedErrorSchema;
3335
+ const reportsGetAIUsageStatus403Schema = forbiddenErrorSchema;
3336
+ const reportsGetAIUsageStatus404Schema = notFoundErrorSchema;
3337
+ const reportsGetAIUsageStatus409Schema = conflictErrorSchema;
3338
+ const reportsGetAIUsageStatus413Schema = payloadTooLargeErrorSchema;
3339
+ const reportsGetAIUsageStatus422Schema = unprocessableEntityErrorSchema;
3340
+ const reportsGetAIUsageStatus429Schema = tooManyRequestsErrorSchema;
3341
+ const reportsGetAIUsageStatus500Schema = internalServerErrorSchema;
3342
+ const reportsGetAIUsageResponseSchema = reportsGetAIUsageStatus200Schema;
3343
+ const reportsGetAIUsageErrorSchema = z.union([
3344
+ reportsGetAIUsageStatus401Schema,
3345
+ reportsGetAIUsageStatus403Schema,
3346
+ reportsGetAIUsageStatus404Schema,
3347
+ reportsGetAIUsageStatus409Schema,
3348
+ reportsGetAIUsageStatus413Schema,
3349
+ reportsGetAIUsageStatus422Schema,
3350
+ reportsGetAIUsageStatus429Schema,
3351
+ reportsGetAIUsageStatus500Schema
3352
+ ]);
3353
+ const reportsGetAIUsageQuerySchema = z.object({
3354
+ start: z.iso.datetime({
3355
+ offset: true
3356
+ }).optional().describe("Inclusive start datetime filter."),
3357
+ end: z.iso.datetime({
3358
+ offset: true
3359
+ }).optional().describe("Exclusive end datetime filter."),
3360
+ cursor: z.string().optional().describe("Opaque cursor returned by a previous request for forward pagination."),
3361
+ limit: z.int().min(1).max(5000).optional().default(1000).describe("Maximum number of rows to return.")
3362
+ });
3363
+ const reportsGetUserActivityQueryStartDateSchema = z.iso.datetime({
3364
+ offset: true
3365
+ }).optional().describe("Inclusive ISO timestamp lower bound for activity.");
3366
+ const reportsGetUserActivityQueryEndDateSchema = z.iso.datetime({
3367
+ offset: true
3368
+ }).optional().describe("Exclusive ISO timestamp upper bound for activity. Pass the end of the last day (e.g. 23:59:59.999) to include it.");
3369
+ const reportsGetUserActivityStatus200Schema = z.strictObject({
3370
+ object: z.enum([
3371
+ "list"
3372
+ ]),
3373
+ data: z.array(z.strictObject({
3374
+ id: z.string(),
3375
+ object: z.enum([
3376
+ "user_activity"
3377
+ ]),
3378
+ user: z.strictObject({
3379
+ id: z.string().describe("A unique identifier for the user."),
3380
+ object: z.enum([
3381
+ "user"
3382
+ ]).describe("Fixed value identifying this object as a user."),
3383
+ name: z.string().optional().describe("Optional full name of the user."),
3384
+ email: z.string().describe("The user's email address."),
3385
+ avatar: z.string().describe("URL to the user's avatar image."),
3386
+ createdAt: z.iso.datetime({
3387
+ offset: true
3388
+ }).describe("The ISO timestamp representing when the user was created."),
3389
+ updatedAt: z.iso.datetime({
3390
+ offset: true
3391
+ }).optional().describe("The ISO timestamp of the last update to the user."),
3392
+ teamV0Role: z.union([
3393
+ z.enum([
3394
+ "V0Builder",
3395
+ "V0Chatter",
3396
+ "V0Viewer"
3397
+ ]),
3398
+ z.null()
3399
+ ]).describe("The user's v0 role")
3400
+ }),
3401
+ chatCount: z.number().describe("Total number of chats created by the user"),
3402
+ messageCount: z.number().describe("Total number of messages sent by the user"),
3403
+ activeDays: z.number().describe("Number of distinct days the user was active"),
3404
+ firstActivity: z.union([
3405
+ z.iso.datetime({
3406
+ offset: true
3407
+ }),
3408
+ z.null()
3409
+ ]).describe("Timestamp of the user's first activity"),
3410
+ lastActivity: z.union([
3411
+ z.iso.datetime({
3412
+ offset: true
3413
+ }),
3414
+ z.null()
3415
+ ]).describe("Timestamp of the user's last activity")
3416
+ })),
3417
+ meta: z.strictObject({
3418
+ totalCount: z.number(),
3419
+ dateRange: z.strictObject({
3420
+ start: z.union([
3421
+ z.iso.datetime({
3422
+ offset: true
3423
+ }),
3424
+ z.null()
3425
+ ]),
3426
+ end: z.union([
3427
+ z.iso.datetime({
3428
+ offset: true
3429
+ }),
3430
+ z.null()
3431
+ ])
3432
+ })
3433
+ })
3434
+ });
3435
+ const reportsGetUserActivityStatus401Schema = unauthorizedErrorSchema;
3436
+ const reportsGetUserActivityStatus403Schema = forbiddenErrorSchema;
3437
+ const reportsGetUserActivityStatus404Schema = notFoundErrorSchema;
3438
+ const reportsGetUserActivityStatus409Schema = conflictErrorSchema;
3439
+ const reportsGetUserActivityStatus413Schema = payloadTooLargeErrorSchema;
3440
+ const reportsGetUserActivityStatus422Schema = unprocessableEntityErrorSchema;
3441
+ const reportsGetUserActivityStatus429Schema = tooManyRequestsErrorSchema;
3442
+ const reportsGetUserActivityStatus500Schema = internalServerErrorSchema;
3443
+ const reportsGetUserActivityResponseSchema = reportsGetUserActivityStatus200Schema;
3444
+ const reportsGetUserActivityErrorSchema = z.union([
3445
+ reportsGetUserActivityStatus401Schema,
3446
+ reportsGetUserActivityStatus403Schema,
3447
+ reportsGetUserActivityStatus404Schema,
3448
+ reportsGetUserActivityStatus409Schema,
3449
+ reportsGetUserActivityStatus413Schema,
3450
+ reportsGetUserActivityStatus422Schema,
3451
+ reportsGetUserActivityStatus429Schema,
3452
+ reportsGetUserActivityStatus500Schema
3453
+ ]);
3454
+ const reportsGetUserActivityQuerySchema = z.object({
3455
+ startDate: z.iso.datetime({
3456
+ offset: true
3457
+ }).optional().describe("Inclusive ISO timestamp lower bound for activity."),
3458
+ endDate: z.iso.datetime({
3459
+ offset: true
3460
+ }).optional().describe("Exclusive ISO timestamp upper bound for activity. Pass the end of the last day (e.g. 23:59:59.999) to include it.")
3461
+ });
3462
+ const mcpServersFindStatus200Schema = z.strictObject({
3463
+ object: z.enum([
3464
+ "list"
3465
+ ]),
3466
+ data: z.array(z.strictObject({
3467
+ object: z.enum([
3468
+ "mcp_server"
3469
+ ]).describe("The object type."),
3470
+ id: z.string().describe("The unique identifier for the MCP server."),
3471
+ name: z.string().describe("The display name of the MCP server."),
3472
+ url: z.url().describe("The URL of the MCP server."),
3473
+ description: z.string().optional().describe("An optional description of the MCP server."),
3474
+ enabled: z.boolean().describe("Whether the MCP server is enabled for use in chats."),
3475
+ auth: z.strictObject({
3476
+ type: z.enum([
3477
+ "bearer",
3478
+ "custom-headers",
3479
+ "none",
3480
+ "oauth"
3481
+ ]).describe("The type of authentication configured.")
3482
+ }).describe("Authentication type for the MCP server. Sensitive values like tokens and headers are not returned."),
3483
+ scope: z.enum([
3484
+ "team",
3485
+ "user"
3486
+ ]).describe("The scope of the MCP server (user or team)."),
3487
+ createdAt: z.iso.datetime({
3488
+ offset: true
3489
+ }).describe("The ISO timestamp when the MCP server was created."),
3490
+ updatedAt: z.iso.datetime({
3491
+ offset: true
3492
+ }).optional().describe("The ISO timestamp when the MCP server was last updated.")
3493
+ }))
3494
+ }).describe("List of MCP servers for the authenticated user.");
3495
+ const mcpServersFindStatus401Schema = unauthorizedErrorSchema;
3496
+ const mcpServersFindStatus403Schema = forbiddenErrorSchema;
3497
+ const mcpServersFindStatus404Schema = notFoundErrorSchema;
3498
+ const mcpServersFindStatus409Schema = conflictErrorSchema;
3499
+ const mcpServersFindStatus413Schema = payloadTooLargeErrorSchema;
3500
+ const mcpServersFindStatus422Schema = unprocessableEntityErrorSchema;
3501
+ const mcpServersFindStatus429Schema = tooManyRequestsErrorSchema;
3502
+ const mcpServersFindStatus500Schema = internalServerErrorSchema;
3503
+ const mcpServersFindResponseSchema = mcpServersFindStatus200Schema;
3504
+ const mcpServersFindErrorSchema = z.union([
3505
+ mcpServersFindStatus401Schema,
3506
+ mcpServersFindStatus403Schema,
3507
+ mcpServersFindStatus404Schema,
3508
+ mcpServersFindStatus409Schema,
3509
+ mcpServersFindStatus413Schema,
3510
+ mcpServersFindStatus422Schema,
3511
+ mcpServersFindStatus429Schema,
3512
+ mcpServersFindStatus500Schema
3513
+ ]);
3514
+ const mcpServersCreateStatus200Schema = z.strictObject({
3515
+ object: z.enum([
3516
+ "mcp_server"
3517
+ ]).describe("The object type."),
3518
+ id: z.string().describe("The unique identifier for the MCP server."),
3519
+ name: z.string().describe("The display name of the MCP server."),
3520
+ url: z.url().describe("The URL of the MCP server."),
3521
+ description: z.string().optional().describe("An optional description of the MCP server."),
3522
+ enabled: z.boolean().describe("Whether the MCP server is enabled for use in chats."),
3523
+ auth: z.strictObject({
3524
+ type: z.enum([
3525
+ "bearer",
3526
+ "custom-headers",
3527
+ "none",
3528
+ "oauth"
3529
+ ]).describe("The type of authentication configured.")
3530
+ }).describe("Authentication type for the MCP server. Sensitive values like tokens and headers are not returned."),
3531
+ scope: z.enum([
3532
+ "team",
3533
+ "user"
3534
+ ]).describe("The scope of the MCP server (user or team)."),
3535
+ createdAt: z.iso.datetime({
3536
+ offset: true
3537
+ }).describe("The ISO timestamp when the MCP server was created."),
3538
+ updatedAt: z.iso.datetime({
3539
+ offset: true
3540
+ }).optional().describe("The ISO timestamp when the MCP server was last updated.")
3541
+ }).describe("Summary information about an MCP server.");
3542
+ const mcpServersCreateStatus401Schema = unauthorizedErrorSchema;
3543
+ const mcpServersCreateStatus403Schema = forbiddenErrorSchema;
3544
+ const mcpServersCreateStatus404Schema = notFoundErrorSchema;
3545
+ const mcpServersCreateStatus409Schema = conflictErrorSchema;
3546
+ const mcpServersCreateStatus413Schema = payloadTooLargeErrorSchema;
3547
+ const mcpServersCreateStatus422Schema = unprocessableEntityErrorSchema;
3548
+ const mcpServersCreateStatus429Schema = tooManyRequestsErrorSchema;
3549
+ const mcpServersCreateStatus500Schema = internalServerErrorSchema;
3550
+ const mcpServersCreateResponseSchema = mcpServersCreateStatus200Schema;
3551
+ const mcpServersCreateErrorSchema = z.union([
3552
+ mcpServersCreateStatus401Schema,
3553
+ mcpServersCreateStatus403Schema,
3554
+ mcpServersCreateStatus404Schema,
3555
+ mcpServersCreateStatus409Schema,
3556
+ mcpServersCreateStatus413Schema,
3557
+ mcpServersCreateStatus422Schema,
3558
+ mcpServersCreateStatus429Schema,
3559
+ mcpServersCreateStatus500Schema
3560
+ ]);
3561
+ const mcpServersCreateBodySchema = z.strictObject({
3562
+ name: z.string().min(1).max(100).describe("The display name of the MCP server."),
3563
+ url: z.url().max(500).describe("The URL of the MCP server. Must be HTTPS in production."),
3564
+ description: z.string().max(500).optional().describe("An optional description of the MCP server."),
3565
+ enabled: z.boolean().optional().default(true).describe("Whether the MCP server is enabled. Defaults to true."),
3566
+ auth: z.discriminatedUnion("type", [
3567
+ z.strictObject({
3568
+ type: z.enum([
3569
+ "none"
3570
+ ]).describe("No authentication required.")
3571
+ }),
3572
+ z.strictObject({
3573
+ type: z.enum([
3574
+ "bearer"
3575
+ ]).describe("Bearer token authentication."),
3576
+ token: z.string().min(1).max(1000).describe("The bearer token for authentication.")
3577
+ }),
3578
+ z.strictObject({
3579
+ type: z.enum([
3580
+ "custom-headers"
3581
+ ]).describe("Custom headers authentication."),
3582
+ headers: z.record(z.string().max(100), z.string().max(500)).describe("Key-value pairs of custom headers to include in requests.")
3583
+ }),
3584
+ z.strictObject({
3585
+ type: z.enum([
3586
+ "oauth"
3587
+ ]).describe("OAuth 2.1 authentication."),
3588
+ config: z.strictObject({
3589
+ authorizationUrl: z.url().describe("The OAuth authorization endpoint URL."),
3590
+ tokenUrl: z.url().describe("The OAuth token endpoint URL."),
3591
+ registrationUrl: z.url().optional().describe("The optional dynamic client registration endpoint URL."),
3592
+ clientId: z.string().min(1).describe("The OAuth client ID."),
3593
+ clientSecret: z.string().optional().describe("The optional OAuth client secret. This value is stored securely and is never returned by the API."),
3594
+ scopes: z.array(z.string()).optional().default([]).describe("OAuth scopes to request during authorization."),
3595
+ usePKCE: z.boolean().optional().default(true).describe("Whether to use PKCE for the authorization code flow."),
3596
+ issuer: z.string().optional().describe("The optional issuer identifier for mix-up protection."),
3597
+ resource: z.string().optional().describe("The optional RFC 8707 resource indicator. For MCP servers, this is usually the MCP server URL."),
3598
+ clientIdMetadataDocumentSupported: z.boolean().optional().describe("Whether the authorization server supports Client ID Metadata Documents.")
3599
+ }).describe("OAuth configuration for the MCP server.")
3600
+ })
3601
+ ]).optional().default({
3602
+ type: "none"
3603
+ }).describe("Authentication configuration. Defaults to no authentication."),
3604
+ scope: z.enum([
3605
+ "team",
3606
+ "user"
3607
+ ]).optional().default("user").describe("The scope of the MCP server. Defaults to user.")
3608
+ });
3609
+ const mcpServersGetByIdPathMcpServerIdSchema = z.string().describe("The ID of the MCP server to retrieve.");
3610
+ const mcpServersGetByIdStatus200Schema = z.strictObject({
3611
+ object: z.enum([
3612
+ "mcp_server"
3613
+ ]).describe("The object type."),
3614
+ id: z.string().describe("The unique identifier for the MCP server."),
3615
+ name: z.string().describe("The display name of the MCP server."),
3616
+ url: z.url().describe("The URL of the MCP server."),
3617
+ description: z.string().optional().describe("An optional description of the MCP server."),
3618
+ enabled: z.boolean().describe("Whether the MCP server is enabled for use in chats."),
3619
+ auth: z.strictObject({
3620
+ type: z.enum([
3621
+ "bearer",
3622
+ "custom-headers",
3623
+ "none",
3624
+ "oauth"
3625
+ ]).describe("The type of authentication configured.")
3626
+ }).describe("Authentication type for the MCP server. Sensitive values like tokens and headers are not returned."),
3627
+ scope: z.enum([
3628
+ "team",
3629
+ "user"
3630
+ ]).describe("The scope of the MCP server (user or team)."),
3631
+ createdAt: z.iso.datetime({
3632
+ offset: true
3633
+ }).describe("The ISO timestamp when the MCP server was created."),
3634
+ updatedAt: z.iso.datetime({
3635
+ offset: true
3636
+ }).optional().describe("The ISO timestamp when the MCP server was last updated.")
3637
+ }).describe("Summary information about an MCP server.");
3638
+ const mcpServersGetByIdStatus401Schema = unauthorizedErrorSchema;
3639
+ const mcpServersGetByIdStatus403Schema = forbiddenErrorSchema;
3640
+ const mcpServersGetByIdStatus404Schema = notFoundErrorSchema;
3641
+ const mcpServersGetByIdStatus409Schema = conflictErrorSchema;
3642
+ const mcpServersGetByIdStatus413Schema = payloadTooLargeErrorSchema;
3643
+ const mcpServersGetByIdStatus422Schema = unprocessableEntityErrorSchema;
3644
+ const mcpServersGetByIdStatus429Schema = tooManyRequestsErrorSchema;
3645
+ const mcpServersGetByIdStatus500Schema = internalServerErrorSchema;
3646
+ const mcpServersGetByIdResponseSchema = mcpServersGetByIdStatus200Schema;
3647
+ const mcpServersGetByIdErrorSchema = z.union([
3648
+ mcpServersGetByIdStatus401Schema,
3649
+ mcpServersGetByIdStatus403Schema,
3650
+ mcpServersGetByIdStatus404Schema,
3651
+ mcpServersGetByIdStatus409Schema,
3652
+ mcpServersGetByIdStatus413Schema,
3653
+ mcpServersGetByIdStatus422Schema,
3654
+ mcpServersGetByIdStatus429Schema,
3655
+ mcpServersGetByIdStatus500Schema
3656
+ ]);
3657
+ const mcpServersGetByIdPathSchema = z.object({
3658
+ mcpServerId: z.string().describe("The ID of the MCP server to retrieve.")
3659
+ });
3660
+ const mcpServersUpdatePathMcpServerIdSchema = z.string().describe("The ID of the MCP server to update.");
3661
+ const mcpServersUpdateStatus200Schema = z.strictObject({
3662
+ object: z.enum([
3663
+ "mcp_server"
3664
+ ]).describe("The object type."),
3665
+ id: z.string().describe("The unique identifier for the MCP server."),
3666
+ name: z.string().describe("The display name of the MCP server."),
3667
+ url: z.url().describe("The URL of the MCP server."),
3668
+ description: z.string().optional().describe("An optional description of the MCP server."),
3669
+ enabled: z.boolean().describe("Whether the MCP server is enabled for use in chats."),
3670
+ auth: z.strictObject({
3671
+ type: z.enum([
3672
+ "bearer",
3673
+ "custom-headers",
3674
+ "none",
3675
+ "oauth"
3676
+ ]).describe("The type of authentication configured.")
3677
+ }).describe("Authentication type for the MCP server. Sensitive values like tokens and headers are not returned."),
3678
+ scope: z.enum([
3679
+ "team",
3680
+ "user"
3681
+ ]).describe("The scope of the MCP server (user or team)."),
3682
+ createdAt: z.iso.datetime({
3683
+ offset: true
3684
+ }).describe("The ISO timestamp when the MCP server was created."),
3685
+ updatedAt: z.iso.datetime({
3686
+ offset: true
3687
+ }).optional().describe("The ISO timestamp when the MCP server was last updated.")
3688
+ }).describe("Summary information about an MCP server.");
3689
+ const mcpServersUpdateStatus401Schema = unauthorizedErrorSchema;
3690
+ const mcpServersUpdateStatus403Schema = forbiddenErrorSchema;
3691
+ const mcpServersUpdateStatus404Schema = notFoundErrorSchema;
3692
+ const mcpServersUpdateStatus409Schema = conflictErrorSchema;
3693
+ const mcpServersUpdateStatus413Schema = payloadTooLargeErrorSchema;
3694
+ const mcpServersUpdateStatus422Schema = unprocessableEntityErrorSchema;
3695
+ const mcpServersUpdateStatus429Schema = tooManyRequestsErrorSchema;
3696
+ const mcpServersUpdateStatus500Schema = internalServerErrorSchema;
3697
+ const mcpServersUpdateResponseSchema = mcpServersUpdateStatus200Schema;
3698
+ const mcpServersUpdateErrorSchema = z.union([
3699
+ mcpServersUpdateStatus401Schema,
3700
+ mcpServersUpdateStatus403Schema,
3701
+ mcpServersUpdateStatus404Schema,
3702
+ mcpServersUpdateStatus409Schema,
3703
+ mcpServersUpdateStatus413Schema,
3704
+ mcpServersUpdateStatus422Schema,
3705
+ mcpServersUpdateStatus429Schema,
3706
+ mcpServersUpdateStatus500Schema
3707
+ ]);
3708
+ const mcpServersUpdateBodySchema = z.strictObject({
3709
+ name: z.string().min(1).max(100).optional().describe("The display name of the MCP server."),
3710
+ url: z.url().max(500).optional().describe("The URL of the MCP server."),
3711
+ description: z.string().max(500).optional().describe("An optional description of the MCP server."),
3712
+ enabled: z.boolean().optional().describe("Whether the MCP server is enabled."),
3713
+ auth: z.discriminatedUnion("type", [
3714
+ z.strictObject({
3715
+ type: z.enum([
3716
+ "none"
3717
+ ]).describe("No authentication required.")
3718
+ }),
3719
+ z.strictObject({
3720
+ type: z.enum([
3721
+ "bearer"
3722
+ ]).describe("Bearer token authentication."),
3723
+ token: z.string().min(1).max(1000).describe("The bearer token for authentication.")
3724
+ }),
3725
+ z.strictObject({
3726
+ type: z.enum([
3727
+ "custom-headers"
3728
+ ]).describe("Custom headers authentication."),
3729
+ headers: z.record(z.string().max(100), z.string().max(500)).describe("Key-value pairs of custom headers to include in requests.")
3730
+ }),
3731
+ z.strictObject({
3732
+ type: z.enum([
3733
+ "oauth"
3734
+ ]).describe("OAuth 2.1 authentication."),
3735
+ config: z.strictObject({
3736
+ authorizationUrl: z.url().describe("The OAuth authorization endpoint URL."),
3737
+ tokenUrl: z.url().describe("The OAuth token endpoint URL."),
3738
+ registrationUrl: z.url().optional().describe("The optional dynamic client registration endpoint URL."),
3739
+ clientId: z.string().min(1).describe("The OAuth client ID."),
3740
+ clientSecret: z.string().optional().describe("The optional OAuth client secret. This value is stored securely and is never returned by the API."),
3741
+ scopes: z.array(z.string()).optional().default([]).describe("OAuth scopes to request during authorization."),
3742
+ usePKCE: z.boolean().optional().default(true).describe("Whether to use PKCE for the authorization code flow."),
3743
+ issuer: z.string().optional().describe("The optional issuer identifier for mix-up protection."),
3744
+ resource: z.string().optional().describe("The optional RFC 8707 resource indicator. For MCP servers, this is usually the MCP server URL."),
3745
+ clientIdMetadataDocumentSupported: z.boolean().optional().describe("Whether the authorization server supports Client ID Metadata Documents.")
3746
+ }).describe("OAuth configuration for the MCP server.")
3747
+ })
3748
+ ]).optional().describe("Authentication configuration."),
3749
+ scope: z.enum([
3750
+ "team",
3751
+ "user"
3752
+ ]).optional().describe("The scope of the MCP server.")
3753
+ });
3754
+ const mcpServersUpdatePathSchema = z.object({
3755
+ mcpServerId: z.string().describe("The ID of the MCP server to update.")
3756
+ });
3757
+ const mcpServersDeletePathMcpServerIdSchema = z.string().describe("The ID of the MCP server to delete.");
3758
+ const mcpServersDeleteStatus200Schema = z.strictObject({
3759
+ object: z.enum([
3760
+ "mcp_server"
3761
+ ]),
3762
+ id: z.string().describe("The ID of the deleted MCP server."),
3763
+ deleted: z.literal(true).describe("Indicates the server was deleted.")
3764
+ });
3765
+ const mcpServersDeleteStatus401Schema = unauthorizedErrorSchema;
3766
+ const mcpServersDeleteStatus403Schema = forbiddenErrorSchema;
3767
+ const mcpServersDeleteStatus404Schema = notFoundErrorSchema;
3768
+ const mcpServersDeleteStatus409Schema = conflictErrorSchema;
3769
+ const mcpServersDeleteStatus413Schema = payloadTooLargeErrorSchema;
3770
+ const mcpServersDeleteStatus422Schema = unprocessableEntityErrorSchema;
3771
+ const mcpServersDeleteStatus429Schema = tooManyRequestsErrorSchema;
3772
+ const mcpServersDeleteStatus500Schema = internalServerErrorSchema;
3773
+ const mcpServersDeleteResponseSchema = mcpServersDeleteStatus200Schema;
3774
+ const mcpServersDeleteErrorSchema = z.union([
3775
+ mcpServersDeleteStatus401Schema,
3776
+ mcpServersDeleteStatus403Schema,
3777
+ mcpServersDeleteStatus404Schema,
3778
+ mcpServersDeleteStatus409Schema,
3779
+ mcpServersDeleteStatus413Schema,
3780
+ mcpServersDeleteStatus422Schema,
3781
+ mcpServersDeleteStatus429Schema,
3782
+ mcpServersDeleteStatus500Schema
3783
+ ]);
3784
+ const mcpServersDeletePathSchema = z.object({
3785
+ mcpServerId: z.string().describe("The ID of the MCP server to delete.")
3786
+ });
3787
+ const mcpServersCreateOAuthAuthorizationUrlPathMcpServerIdSchema = z.string().describe("The ID of the OAuth MCP server to authorize.");
3788
+ const mcpServersCreateOAuthAuthorizationUrlStatus200Schema = z.strictObject({
3789
+ object: z.enum([
3790
+ "mcp_server_oauth_authorization"
3791
+ ]).describe("The object type."),
3792
+ mcpServerId: z.string().describe("The MCP server being authorized."),
3793
+ url: z.url().describe("The provider authorization URL to redirect the user to."),
3794
+ state: z.string().describe("The OAuth state value. This expires after 5 minutes."),
3795
+ expiresAt: z.iso.datetime({
3796
+ offset: true
3797
+ }).describe("The ISO timestamp when the authorization URL expires.")
3798
+ });
3799
+ const mcpServersCreateOAuthAuthorizationUrlStatus401Schema = unauthorizedErrorSchema;
3800
+ const mcpServersCreateOAuthAuthorizationUrlStatus403Schema = forbiddenErrorSchema;
3801
+ const mcpServersCreateOAuthAuthorizationUrlStatus404Schema = notFoundErrorSchema;
3802
+ const mcpServersCreateOAuthAuthorizationUrlStatus409Schema = conflictErrorSchema;
3803
+ const mcpServersCreateOAuthAuthorizationUrlStatus413Schema = payloadTooLargeErrorSchema;
3804
+ const mcpServersCreateOAuthAuthorizationUrlStatus422Schema = unprocessableEntityErrorSchema;
3805
+ const mcpServersCreateOAuthAuthorizationUrlStatus429Schema = tooManyRequestsErrorSchema;
3806
+ const mcpServersCreateOAuthAuthorizationUrlStatus500Schema = internalServerErrorSchema;
3807
+ const mcpServersCreateOAuthAuthorizationUrlResponseSchema = mcpServersCreateOAuthAuthorizationUrlStatus200Schema;
3808
+ const mcpServersCreateOAuthAuthorizationUrlErrorSchema = z.union([
3809
+ mcpServersCreateOAuthAuthorizationUrlStatus401Schema,
3810
+ mcpServersCreateOAuthAuthorizationUrlStatus403Schema,
3811
+ mcpServersCreateOAuthAuthorizationUrlStatus404Schema,
3812
+ mcpServersCreateOAuthAuthorizationUrlStatus409Schema,
3813
+ mcpServersCreateOAuthAuthorizationUrlStatus413Schema,
3814
+ mcpServersCreateOAuthAuthorizationUrlStatus422Schema,
3815
+ mcpServersCreateOAuthAuthorizationUrlStatus429Schema,
3816
+ mcpServersCreateOAuthAuthorizationUrlStatus500Schema
3817
+ ]);
3818
+ const mcpServersCreateOAuthAuthorizationUrlBodySchema = z.strictObject({
3819
+ returnUrl: z.url().describe("An absolute URL in your application where v0 redirects after OAuth completes. HTTPS is required in production.")
3820
+ });
3821
+ const mcpServersCreateOAuthAuthorizationUrlPathSchema = z.object({
3822
+ mcpServerId: z.string().describe("The ID of the OAuth MCP server to authorize.")
3823
+ });
3824
+
3825
+ export { chatsDownloadVersionStatus404Schema as $, chatsDeleteStatus500Schema as A, chatsDeleteVersionFilesBodySchema as B, chatsDeleteVersionFilesErrorSchema as C, chatsDeleteVersionFilesPathChatIdSchema as D, chatsDeleteVersionFilesPathSchema as E, chatsDeleteVersionFilesPathVersionIdSchema as F, chatsDeleteVersionFilesResponseSchema as G, chatsDeleteVersionFilesStatus200Schema as H, chatsDeleteVersionFilesStatus401Schema as I, chatsDeleteVersionFilesStatus403Schema as J, chatsDeleteVersionFilesStatus404Schema as K, chatsDeleteVersionFilesStatus409Schema as L, chatsDeleteVersionFilesStatus413Schema as M, chatsDeleteVersionFilesStatus422Schema as N, chatsDeleteVersionFilesStatus429Schema as O, chatsDeleteVersionFilesStatus500Schema as P, chatsDownloadVersionErrorSchema as Q, chatsDownloadVersionPathChatIdSchema as R, chatsDownloadVersionPathSchema as S, chatsDownloadVersionPathVersionIdSchema as T, chatsDownloadVersionQueryFormatSchema as U, chatsDownloadVersionQueryIncludeDefaultFilesSchema as V, chatsDownloadVersionQuerySchema as W, chatsDownloadVersionResponseSchema as X, chatsDownloadVersionStatus200Schema as Y, chatsDownloadVersionStatus401Schema as Z, chatsDownloadVersionStatus403Schema as _, chatSummarySchema as a, chatsFindVersionsStatus404Schema as a$, chatsDownloadVersionStatus409Schema as a0, chatsDownloadVersionStatus413Schema as a1, chatsDownloadVersionStatus422Schema as a2, chatsDownloadVersionStatus429Schema as a3, chatsDownloadVersionStatus500Schema as a4, chatsFavoriteBodySchema as a5, chatsFavoriteErrorSchema as a6, chatsFavoritePathChatIdSchema as a7, chatsFavoritePathSchema as a8, chatsFavoriteResponseSchema as a9, chatsFindQueryBranchSchema as aA, chatsFindQueryIsFavoriteSchema as aB, chatsFindQueryLimitSchema as aC, chatsFindQueryMetadataSchema as aD, chatsFindQueryOffsetSchema as aE, chatsFindQuerySchema as aF, chatsFindQueryVercelProjectIdSchema as aG, chatsFindResponseSchema as aH, chatsFindStatus200Schema as aI, chatsFindStatus401Schema as aJ, chatsFindStatus403Schema as aK, chatsFindStatus404Schema as aL, chatsFindStatus409Schema as aM, chatsFindStatus413Schema as aN, chatsFindStatus422Schema as aO, chatsFindStatus429Schema as aP, chatsFindStatus500Schema as aQ, chatsFindVersionsErrorSchema as aR, chatsFindVersionsPathChatIdSchema as aS, chatsFindVersionsPathSchema as aT, chatsFindVersionsQueryCursorSchema as aU, chatsFindVersionsQueryLimitSchema as aV, chatsFindVersionsQuerySchema as aW, chatsFindVersionsResponseSchema as aX, chatsFindVersionsStatus200Schema as aY, chatsFindVersionsStatus401Schema as aZ, chatsFindVersionsStatus403Schema as a_, chatsFavoriteStatus200Schema as aa, chatsFavoriteStatus401Schema as ab, chatsFavoriteStatus403Schema as ac, chatsFavoriteStatus404Schema as ad, chatsFavoriteStatus409Schema as ae, chatsFavoriteStatus413Schema as af, chatsFavoriteStatus422Schema as ag, chatsFavoriteStatus429Schema as ah, chatsFavoriteStatus500Schema as ai, chatsFindErrorSchema as aj, chatsFindMessagesErrorSchema as ak, chatsFindMessagesPathChatIdSchema as al, chatsFindMessagesPathSchema as am, chatsFindMessagesQueryCursorSchema as an, chatsFindMessagesQueryLimitSchema as ao, chatsFindMessagesQuerySchema as ap, chatsFindMessagesResponseSchema as aq, chatsFindMessagesStatus200Schema as ar, chatsFindMessagesStatus401Schema as as, chatsFindMessagesStatus403Schema as at, chatsFindMessagesStatus404Schema as au, chatsFindMessagesStatus409Schema as av, chatsFindMessagesStatus413Schema as aw, chatsFindMessagesStatus422Schema as ax, chatsFindMessagesStatus429Schema as ay, chatsFindMessagesStatus500Schema as az, chatsCreateBodySchema as b, chatsInitErrorSchema as b$, chatsFindVersionsStatus409Schema as b0, chatsFindVersionsStatus413Schema as b1, chatsFindVersionsStatus422Schema as b2, chatsFindVersionsStatus429Schema as b3, chatsFindVersionsStatus500Schema as b4, chatsForkBodySchema as b5, chatsForkErrorSchema as b6, chatsForkPathChatIdSchema as b7, chatsForkPathSchema as b8, chatsForkResponseSchema as b9, chatsGetMessageResponseSchema as bA, chatsGetMessageStatus200Schema as bB, chatsGetMessageStatus401Schema as bC, chatsGetMessageStatus403Schema as bD, chatsGetMessageStatus404Schema as bE, chatsGetMessageStatus409Schema as bF, chatsGetMessageStatus413Schema as bG, chatsGetMessageStatus422Schema as bH, chatsGetMessageStatus429Schema as bI, chatsGetMessageStatus500Schema as bJ, chatsGetVersionErrorSchema as bK, chatsGetVersionPathChatIdSchema as bL, chatsGetVersionPathSchema as bM, chatsGetVersionPathVersionIdSchema as bN, chatsGetVersionQueryIncludeDefaultFilesSchema as bO, chatsGetVersionQuerySchema as bP, chatsGetVersionResponseSchema as bQ, chatsGetVersionStatus200Schema as bR, chatsGetVersionStatus401Schema as bS, chatsGetVersionStatus403Schema as bT, chatsGetVersionStatus404Schema as bU, chatsGetVersionStatus409Schema as bV, chatsGetVersionStatus413Schema as bW, chatsGetVersionStatus422Schema as bX, chatsGetVersionStatus429Schema as bY, chatsGetVersionStatus500Schema as bZ, chatsInitBodySchema as b_, chatsForkStatus200Schema as ba, chatsForkStatus401Schema as bb, chatsForkStatus403Schema as bc, chatsForkStatus404Schema as bd, chatsForkStatus409Schema as be, chatsForkStatus413Schema as bf, chatsForkStatus422Schema as bg, chatsForkStatus429Schema as bh, chatsForkStatus500Schema as bi, chatsGetByIdErrorSchema as bj, chatsGetByIdPathChatIdSchema as bk, chatsGetByIdPathSchema as bl, chatsGetByIdResponseSchema as bm, chatsGetByIdStatus200Schema as bn, chatsGetByIdStatus401Schema as bo, chatsGetByIdStatus403Schema as bp, chatsGetByIdStatus404Schema as bq, chatsGetByIdStatus409Schema as br, chatsGetByIdStatus413Schema as bs, chatsGetByIdStatus422Schema as bt, chatsGetByIdStatus429Schema as bu, chatsGetByIdStatus500Schema as bv, chatsGetMessageErrorSchema as bw, chatsGetMessagePathChatIdSchema as bx, chatsGetMessagePathMessageIdSchema as by, chatsGetMessagePathSchema as bz, chatDetailSchema as c, chatsSendMessageStatus422Schema as c$, chatsInitResponseSchema as c0, chatsInitStatus200Schema as c1, chatsInitStatus401Schema as c2, chatsInitStatus403Schema as c3, chatsInitStatus404Schema as c4, chatsInitStatus409Schema as c5, chatsInitStatus413Schema as c6, chatsInitStatus422Schema as c7, chatsInitStatus429Schema as c8, chatsInitStatus500Schema as c9, chatsRestoreStatus429Schema as cA, chatsRestoreStatus500Schema as cB, chatsResumeErrorSchema as cC, chatsResumePathChatIdSchema as cD, chatsResumePathMessageIdSchema as cE, chatsResumePathSchema as cF, chatsResumeResponseSchema as cG, chatsResumeStatus200Schema as cH, chatsResumeStatus401Schema as cI, chatsResumeStatus403Schema as cJ, chatsResumeStatus404Schema as cK, chatsResumeStatus409Schema as cL, chatsResumeStatus413Schema as cM, chatsResumeStatus422Schema as cN, chatsResumeStatus429Schema as cO, chatsResumeStatus500Schema as cP, chatsSendMessageBodySchema as cQ, chatsSendMessageErrorSchema as cR, chatsSendMessagePathChatIdSchema as cS, chatsSendMessagePathSchema as cT, chatsSendMessageResponseSchema as cU, chatsSendMessageStatus200Schema as cV, chatsSendMessageStatus401Schema as cW, chatsSendMessageStatus403Schema as cX, chatsSendMessageStatus404Schema as cY, chatsSendMessageStatus409Schema as cZ, chatsSendMessageStatus413Schema as c_, chatsResolveTaskBodySchema as ca, chatsResolveTaskErrorSchema as cb, chatsResolveTaskPathChatIdSchema as cc, chatsResolveTaskPathSchema as cd, chatsResolveTaskResponseSchema as ce, chatsResolveTaskStatus200Schema as cf, chatsResolveTaskStatus401Schema as cg, chatsResolveTaskStatus403Schema as ch, chatsResolveTaskStatus404Schema as ci, chatsResolveTaskStatus409Schema as cj, chatsResolveTaskStatus413Schema as ck, chatsResolveTaskStatus422Schema as cl, chatsResolveTaskStatus429Schema as cm, chatsResolveTaskStatus500Schema as cn, chatsRestoreErrorSchema as co, chatsRestorePathChatIdSchema as cp, chatsRestorePathSchema as cq, chatsRestorePathVersionIdSchema as cr, chatsRestoreResponseSchema as cs, chatsRestoreStatus200Schema as ct, chatsRestoreStatus401Schema as cu, chatsRestoreStatus403Schema as cv, chatsRestoreStatus404Schema as cw, chatsRestoreStatus409Schema as cx, chatsRestoreStatus413Schema as cy, chatsRestoreStatus422Schema as cz, chatsCreateErrorSchema as d, deploymentsDeletePathSchema as d$, chatsSendMessageStatus429Schema as d0, chatsSendMessageStatus500Schema as d1, chatsStopErrorSchema as d2, chatsStopPathChatIdSchema as d3, chatsStopPathMessageIdSchema as d4, chatsStopPathSchema as d5, chatsStopResponseSchema as d6, chatsStopStatus200Schema as d7, chatsStopStatus401Schema as d8, chatsStopStatus403Schema as d9, chatsUpdateVersionResponseSchema as dA, chatsUpdateVersionStatus200Schema as dB, chatsUpdateVersionStatus401Schema as dC, chatsUpdateVersionStatus403Schema as dD, chatsUpdateVersionStatus404Schema as dE, chatsUpdateVersionStatus409Schema as dF, chatsUpdateVersionStatus413Schema as dG, chatsUpdateVersionStatus422Schema as dH, chatsUpdateVersionStatus429Schema as dI, chatsUpdateVersionStatus500Schema as dJ, conflictErrorSchema as dK, deploymentDetailSchema as dL, deploymentSummarySchema as dM, deploymentsCreateBodySchema as dN, deploymentsCreateErrorSchema as dO, deploymentsCreateResponseSchema as dP, deploymentsCreateStatus200Schema as dQ, deploymentsCreateStatus401Schema as dR, deploymentsCreateStatus403Schema as dS, deploymentsCreateStatus404Schema as dT, deploymentsCreateStatus409Schema as dU, deploymentsCreateStatus413Schema as dV, deploymentsCreateStatus422Schema as dW, deploymentsCreateStatus429Schema as dX, deploymentsCreateStatus500Schema as dY, deploymentsDeleteErrorSchema as dZ, deploymentsDeletePathDeploymentIdSchema as d_, chatsStopStatus404Schema as da, chatsStopStatus409Schema as db, chatsStopStatus413Schema as dc, chatsStopStatus422Schema as dd, chatsStopStatus429Schema as de, chatsStopStatus500Schema as df, chatsUpdateBodySchema as dg, chatsUpdateErrorSchema as dh, chatsUpdatePathChatIdSchema as di, chatsUpdatePathSchema as dj, chatsUpdateResponseSchema as dk, chatsUpdateStatus200Schema as dl, chatsUpdateStatus401Schema as dm, chatsUpdateStatus403Schema as dn, chatsUpdateStatus404Schema as dp, chatsUpdateStatus409Schema as dq, chatsUpdateStatus413Schema as dr, chatsUpdateStatus422Schema as ds, chatsUpdateStatus429Schema as dt, chatsUpdateStatus500Schema as du, chatsUpdateVersionBodySchema as dv, chatsUpdateVersionErrorSchema as dw, chatsUpdateVersionPathChatIdSchema as dx, chatsUpdateVersionPathSchema as dy, chatsUpdateVersionPathVersionIdSchema as dz, chatsCreateResponseSchema as e, deploymentsGetByIdStatus422Schema as e$, deploymentsDeleteResponseSchema as e0, deploymentsDeleteStatus200Schema as e1, deploymentsDeleteStatus401Schema as e2, deploymentsDeleteStatus403Schema as e3, deploymentsDeleteStatus404Schema as e4, deploymentsDeleteStatus409Schema as e5, deploymentsDeleteStatus413Schema as e6, deploymentsDeleteStatus422Schema as e7, deploymentsDeleteStatus429Schema as e8, deploymentsDeleteStatus500Schema as e9, deploymentsFindLogsStatus422Schema as eA, deploymentsFindLogsStatus429Schema as eB, deploymentsFindLogsStatus500Schema as eC, deploymentsFindQueryChatIdSchema as eD, deploymentsFindQueryProjectIdSchema as eE, deploymentsFindQuerySchema as eF, deploymentsFindQueryVersionIdSchema as eG, deploymentsFindResponseSchema as eH, deploymentsFindStatus200Schema as eI, deploymentsFindStatus401Schema as eJ, deploymentsFindStatus403Schema as eK, deploymentsFindStatus404Schema as eL, deploymentsFindStatus409Schema as eM, deploymentsFindStatus413Schema as eN, deploymentsFindStatus422Schema as eO, deploymentsFindStatus429Schema as eP, deploymentsFindStatus500Schema as eQ, deploymentsGetByIdErrorSchema as eR, deploymentsGetByIdPathDeploymentIdSchema as eS, deploymentsGetByIdPathSchema as eT, deploymentsGetByIdResponseSchema as eU, deploymentsGetByIdStatus200Schema as eV, deploymentsGetByIdStatus401Schema as eW, deploymentsGetByIdStatus403Schema as eX, deploymentsGetByIdStatus404Schema as eY, deploymentsGetByIdStatus409Schema as eZ, deploymentsGetByIdStatus413Schema as e_, deploymentsFindErrorSchema as ea, deploymentsFindErrorsErrorSchema as eb, deploymentsFindErrorsPathDeploymentIdSchema as ec, deploymentsFindErrorsPathSchema as ed, deploymentsFindErrorsResponseSchema as ee, deploymentsFindErrorsStatus200Schema as ef, deploymentsFindErrorsStatus401Schema as eg, deploymentsFindErrorsStatus403Schema as eh, deploymentsFindErrorsStatus404Schema as ei, deploymentsFindErrorsStatus409Schema as ej, deploymentsFindErrorsStatus413Schema as ek, deploymentsFindErrorsStatus422Schema as el, deploymentsFindErrorsStatus429Schema as em, deploymentsFindErrorsStatus500Schema as en, deploymentsFindLogsErrorSchema as eo, deploymentsFindLogsPathDeploymentIdSchema as ep, deploymentsFindLogsPathSchema as eq, deploymentsFindLogsQuerySchema as er, deploymentsFindLogsQuerySinceSchema as es, deploymentsFindLogsResponseSchema as et, deploymentsFindLogsStatus200Schema as eu, deploymentsFindLogsStatus401Schema as ev, deploymentsFindLogsStatus403Schema as ew, deploymentsFindLogsStatus404Schema as ex, deploymentsFindLogsStatus409Schema as ey, deploymentsFindLogsStatus413Schema as ez, chatsCreateStatus200Schema as f, hooksUpdatePathSchema as f$, deploymentsGetByIdStatus429Schema as f0, deploymentsGetByIdStatus500Schema as f1, environmentVariableDetailSchemaSchema as f2, environmentVariableSummarySchemaSchema as f3, environmentVariablesListSchemaSchema as f4, fileDetailSchema as f5, fileSummarySchema as f6, forbiddenErrorSchema as f7, hookDetailSchema as f8, hookEventDetailSchema as f9, hooksFindErrorSchema as fA, hooksFindResponseSchema as fB, hooksFindStatus200Schema as fC, hooksFindStatus401Schema as fD, hooksFindStatus403Schema as fE, hooksFindStatus404Schema as fF, hooksFindStatus409Schema as fG, hooksFindStatus413Schema as fH, hooksFindStatus422Schema as fI, hooksFindStatus429Schema as fJ, hooksFindStatus500Schema as fK, hooksGetByIdErrorSchema as fL, hooksGetByIdPathHookIdSchema as fM, hooksGetByIdPathSchema as fN, hooksGetByIdResponseSchema as fO, hooksGetByIdStatus200Schema as fP, hooksGetByIdStatus401Schema as fQ, hooksGetByIdStatus403Schema as fR, hooksGetByIdStatus404Schema as fS, hooksGetByIdStatus409Schema as fT, hooksGetByIdStatus413Schema as fU, hooksGetByIdStatus422Schema as fV, hooksGetByIdStatus429Schema as fW, hooksGetByIdStatus500Schema as fX, hooksUpdateBodySchema as fY, hooksUpdateErrorSchema as fZ, hooksUpdatePathHookIdSchema as f_, hookSummarySchema as fa, hooksCreateBodySchema as fb, hooksCreateErrorSchema as fc, hooksCreateResponseSchema as fd, hooksCreateStatus200Schema as fe, hooksCreateStatus401Schema as ff, hooksCreateStatus403Schema as fg, hooksCreateStatus404Schema as fh, hooksCreateStatus409Schema as fi, hooksCreateStatus413Schema as fj, hooksCreateStatus422Schema as fk, hooksCreateStatus429Schema as fl, hooksCreateStatus500Schema as fm, hooksDeleteErrorSchema as fn, hooksDeletePathHookIdSchema as fo, hooksDeletePathSchema as fp, hooksDeleteResponseSchema as fq, hooksDeleteStatus200Schema as fr, hooksDeleteStatus401Schema as fs, hooksDeleteStatus403Schema as ft, hooksDeleteStatus404Schema as fu, hooksDeleteStatus409Schema as fv, hooksDeleteStatus413Schema as fw, hooksDeleteStatus422Schema as fx, hooksDeleteStatus429Schema as fy, hooksDeleteStatus500Schema as fz, chatsCreateStatus401Schema as g, mcpServersCreateStatus422Schema as g$, hooksUpdateResponseSchema as g0, hooksUpdateStatus200Schema as g1, hooksUpdateStatus401Schema as g2, hooksUpdateStatus403Schema as g3, hooksUpdateStatus404Schema as g4, hooksUpdateStatus409Schema as g5, hooksUpdateStatus413Schema as g6, hooksUpdateStatus422Schema as g7, hooksUpdateStatus429Schema as g8, hooksUpdateStatus500Schema as g9, integrationsVercelProjectsFindStatus422Schema as gA, integrationsVercelProjectsFindStatus429Schema as gB, integrationsVercelProjectsFindStatus500Schema as gC, internalServerErrorSchema as gD, mcpServersCreateBodySchema as gE, mcpServersCreateErrorSchema as gF, mcpServersCreateOAuthAuthorizationUrlBodySchema as gG, mcpServersCreateOAuthAuthorizationUrlErrorSchema as gH, mcpServersCreateOAuthAuthorizationUrlPathMcpServerIdSchema as gI, mcpServersCreateOAuthAuthorizationUrlPathSchema as gJ, mcpServersCreateOAuthAuthorizationUrlResponseSchema as gK, mcpServersCreateOAuthAuthorizationUrlStatus200Schema as gL, mcpServersCreateOAuthAuthorizationUrlStatus401Schema as gM, mcpServersCreateOAuthAuthorizationUrlStatus403Schema as gN, mcpServersCreateOAuthAuthorizationUrlStatus404Schema as gO, mcpServersCreateOAuthAuthorizationUrlStatus409Schema as gP, mcpServersCreateOAuthAuthorizationUrlStatus413Schema as gQ, mcpServersCreateOAuthAuthorizationUrlStatus422Schema as gR, mcpServersCreateOAuthAuthorizationUrlStatus429Schema as gS, mcpServersCreateOAuthAuthorizationUrlStatus500Schema as gT, mcpServersCreateResponseSchema as gU, mcpServersCreateStatus200Schema as gV, mcpServersCreateStatus401Schema as gW, mcpServersCreateStatus403Schema as gX, mcpServersCreateStatus404Schema as gY, mcpServersCreateStatus409Schema as gZ, mcpServersCreateStatus413Schema as g_, integrationConnectionDetailSchemaSchema as ga, integrationConnectionListSchemaSchema as gb, integrationConnectionSummarySchemaSchema as gc, integrationDetailSchemaSchema as gd, integrationListSchemaSchema as ge, integrationSummarySchemaSchema as gf, integrationsVercelProjectsCreateBodySchema as gg, integrationsVercelProjectsCreateErrorSchema as gh, integrationsVercelProjectsCreateResponseSchema as gi, integrationsVercelProjectsCreateStatus200Schema as gj, integrationsVercelProjectsCreateStatus401Schema as gk, integrationsVercelProjectsCreateStatus403Schema as gl, integrationsVercelProjectsCreateStatus404Schema as gm, integrationsVercelProjectsCreateStatus409Schema as gn, integrationsVercelProjectsCreateStatus413Schema as go, integrationsVercelProjectsCreateStatus422Schema as gp, integrationsVercelProjectsCreateStatus429Schema as gq, integrationsVercelProjectsCreateStatus500Schema as gr, integrationsVercelProjectsFindErrorSchema as gs, integrationsVercelProjectsFindResponseSchema as gt, integrationsVercelProjectsFindStatus200Schema as gu, integrationsVercelProjectsFindStatus401Schema as gv, integrationsVercelProjectsFindStatus403Schema as gw, integrationsVercelProjectsFindStatus404Schema as gx, integrationsVercelProjectsFindStatus409Schema as gy, integrationsVercelProjectsFindStatus413Schema as gz, chatsCreateStatus403Schema as h, projectSummarySchema as h$, mcpServersCreateStatus429Schema as h0, mcpServersCreateStatus500Schema as h1, mcpServersDeleteErrorSchema as h2, mcpServersDeletePathMcpServerIdSchema as h3, mcpServersDeletePathSchema as h4, mcpServersDeleteResponseSchema as h5, mcpServersDeleteStatus200Schema as h6, mcpServersDeleteStatus401Schema as h7, mcpServersDeleteStatus403Schema as h8, mcpServersDeleteStatus404Schema as h9, mcpServersGetByIdStatus422Schema as hA, mcpServersGetByIdStatus429Schema as hB, mcpServersGetByIdStatus500Schema as hC, mcpServersUpdateBodySchema as hD, mcpServersUpdateErrorSchema as hE, mcpServersUpdatePathMcpServerIdSchema as hF, mcpServersUpdatePathSchema as hG, mcpServersUpdateResponseSchema as hH, mcpServersUpdateStatus200Schema as hI, mcpServersUpdateStatus401Schema as hJ, mcpServersUpdateStatus403Schema as hK, mcpServersUpdateStatus404Schema as hL, mcpServersUpdateStatus409Schema as hM, mcpServersUpdateStatus413Schema as hN, mcpServersUpdateStatus422Schema as hO, mcpServersUpdateStatus429Schema as hP, mcpServersUpdateStatus500Schema as hQ, messageDetailSchema as hR, messageSummaryListSchema as hS, messageSummarySchema as hT, notFoundErrorSchema as hU, notificationPreferenceSchemaSchema as hV, payloadTooLargeErrorSchema as hW, productDetailSchemaSchema as hX, productListSchemaSchema as hY, productSummarySchemaSchema as hZ, projectDetailSchema as h_, mcpServersDeleteStatus409Schema as ha, mcpServersDeleteStatus413Schema as hb, mcpServersDeleteStatus422Schema as hc, mcpServersDeleteStatus429Schema as hd, mcpServersDeleteStatus500Schema as he, mcpServersFindErrorSchema as hf, mcpServersFindResponseSchema as hg, mcpServersFindStatus200Schema as hh, mcpServersFindStatus401Schema as hi, mcpServersFindStatus403Schema as hj, mcpServersFindStatus404Schema as hk, mcpServersFindStatus409Schema as hl, mcpServersFindStatus413Schema as hm, mcpServersFindStatus422Schema as hn, mcpServersFindStatus429Schema as ho, mcpServersFindStatus500Schema as hp, mcpServersGetByIdErrorSchema as hq, mcpServersGetByIdPathMcpServerIdSchema as hr, mcpServersGetByIdPathSchema as hs, mcpServersGetByIdResponseSchema as ht, mcpServersGetByIdStatus200Schema as hu, mcpServersGetByIdStatus401Schema as hv, mcpServersGetByIdStatus403Schema as hw, mcpServersGetByIdStatus404Schema as hx, mcpServersGetByIdStatus409Schema as hy, mcpServersGetByIdStatus413Schema as hz, chatsCreateStatus404Schema as i, projectsDeleteResponseSchema as i$, projectsAssignBodySchema as i0, projectsAssignErrorSchema as i1, projectsAssignPathProjectIdSchema as i2, projectsAssignPathSchema as i3, projectsAssignResponseSchema as i4, projectsAssignStatus200Schema as i5, projectsAssignStatus401Schema as i6, projectsAssignStatus403Schema as i7, projectsAssignStatus404Schema as i8, projectsAssignStatus409Schema as i9, projectsCreateStatus401Schema as iA, projectsCreateStatus403Schema as iB, projectsCreateStatus404Schema as iC, projectsCreateStatus409Schema as iD, projectsCreateStatus413Schema as iE, projectsCreateStatus422Schema as iF, projectsCreateStatus429Schema as iG, projectsCreateStatus500Schema as iH, projectsDeleteEnvVarsBodySchema as iI, projectsDeleteEnvVarsErrorSchema as iJ, projectsDeleteEnvVarsPathProjectIdSchema as iK, projectsDeleteEnvVarsPathSchema as iL, projectsDeleteEnvVarsResponseSchema as iM, projectsDeleteEnvVarsStatus200Schema as iN, projectsDeleteEnvVarsStatus401Schema as iO, projectsDeleteEnvVarsStatus403Schema as iP, projectsDeleteEnvVarsStatus404Schema as iQ, projectsDeleteEnvVarsStatus409Schema as iR, projectsDeleteEnvVarsStatus413Schema as iS, projectsDeleteEnvVarsStatus422Schema as iT, projectsDeleteEnvVarsStatus429Schema as iU, projectsDeleteEnvVarsStatus500Schema as iV, projectsDeleteErrorSchema as iW, projectsDeletePathProjectIdSchema as iX, projectsDeletePathSchema as iY, projectsDeleteQueryDeleteAllChatsSchema as iZ, projectsDeleteQuerySchema as i_, projectsAssignStatus413Schema as ia, projectsAssignStatus422Schema as ib, projectsAssignStatus429Schema as ic, projectsAssignStatus500Schema as id, projectsCreateBodySchema as ie, projectsCreateEnvVarsBodySchema as ig, projectsCreateEnvVarsErrorSchema as ih, projectsCreateEnvVarsPathProjectIdSchema as ii, projectsCreateEnvVarsPathSchema as ij, projectsCreateEnvVarsQueryDecryptedSchema as ik, projectsCreateEnvVarsQuerySchema as il, projectsCreateEnvVarsResponseSchema as im, projectsCreateEnvVarsStatus200Schema as io, projectsCreateEnvVarsStatus401Schema as ip, projectsCreateEnvVarsStatus403Schema as iq, projectsCreateEnvVarsStatus404Schema as ir, projectsCreateEnvVarsStatus409Schema as is, projectsCreateEnvVarsStatus413Schema as it, projectsCreateEnvVarsStatus422Schema as iu, projectsCreateEnvVarsStatus429Schema as iv, projectsCreateEnvVarsStatus500Schema as iw, projectsCreateErrorSchema as ix, projectsCreateResponseSchema as iy, projectsCreateStatus200Schema as iz, chatsCreateStatus409Schema as j, projectsGetEnvVarPathProjectIdSchema as j$, projectsDeleteStatus200Schema as j0, projectsDeleteStatus401Schema as j1, projectsDeleteStatus403Schema as j2, projectsDeleteStatus404Schema as j3, projectsDeleteStatus409Schema as j4, projectsDeleteStatus413Schema as j5, projectsDeleteStatus422Schema as j6, projectsDeleteStatus429Schema as j7, projectsDeleteStatus500Schema as j8, projectsFindEnvVarsErrorSchema as j9, projectsGetByChatIdPathChatIdSchema as jA, projectsGetByChatIdPathSchema as jB, projectsGetByChatIdResponseSchema as jC, projectsGetByChatIdStatus200Schema as jD, projectsGetByChatIdStatus401Schema as jE, projectsGetByChatIdStatus403Schema as jF, projectsGetByChatIdStatus404Schema as jG, projectsGetByChatIdStatus409Schema as jH, projectsGetByChatIdStatus413Schema as jI, projectsGetByChatIdStatus422Schema as jJ, projectsGetByChatIdStatus429Schema as jK, projectsGetByChatIdStatus500Schema as jL, projectsGetByIdErrorSchema as jM, projectsGetByIdPathProjectIdSchema as jN, projectsGetByIdPathSchema as jO, projectsGetByIdResponseSchema as jP, projectsGetByIdStatus200Schema as jQ, projectsGetByIdStatus401Schema as jR, projectsGetByIdStatus403Schema as jS, projectsGetByIdStatus404Schema as jT, projectsGetByIdStatus409Schema as jU, projectsGetByIdStatus413Schema as jV, projectsGetByIdStatus422Schema as jW, projectsGetByIdStatus429Schema as jX, projectsGetByIdStatus500Schema as jY, projectsGetEnvVarErrorSchema as jZ, projectsGetEnvVarPathEnvironmentVariableIdSchema as j_, projectsFindEnvVarsPathProjectIdSchema as ja, projectsFindEnvVarsPathSchema as jb, projectsFindEnvVarsQueryDecryptedSchema as jc, projectsFindEnvVarsQuerySchema as jd, projectsFindEnvVarsResponseSchema as je, projectsFindEnvVarsStatus200Schema as jf, projectsFindEnvVarsStatus401Schema as jg, projectsFindEnvVarsStatus403Schema as jh, projectsFindEnvVarsStatus404Schema as ji, projectsFindEnvVarsStatus409Schema as jj, projectsFindEnvVarsStatus413Schema as jk, projectsFindEnvVarsStatus422Schema as jl, projectsFindEnvVarsStatus429Schema as jm, projectsFindEnvVarsStatus500Schema as jn, projectsFindErrorSchema as jo, projectsFindResponseSchema as jp, projectsFindStatus200Schema as jq, projectsFindStatus401Schema as jr, projectsFindStatus403Schema as js, projectsFindStatus404Schema as jt, projectsFindStatus409Schema as ju, projectsFindStatus413Schema as jv, projectsFindStatus422Schema as jw, projectsFindStatus429Schema as jx, projectsFindStatus500Schema as jy, projectsGetByChatIdErrorSchema as jz, chatsCreateStatus413Schema as k, reportsGetAIUsageStatus200Schema as k$, projectsGetEnvVarPathSchema as k0, projectsGetEnvVarQueryDecryptedSchema as k1, projectsGetEnvVarQuerySchema as k2, projectsGetEnvVarResponseSchema as k3, projectsGetEnvVarStatus200Schema as k4, projectsGetEnvVarStatus401Schema as k5, projectsGetEnvVarStatus403Schema as k6, projectsGetEnvVarStatus404Schema as k7, projectsGetEnvVarStatus409Schema as k8, projectsGetEnvVarStatus413Schema as k9, projectsUpdateStatus403Schema as kA, projectsUpdateStatus404Schema as kB, projectsUpdateStatus409Schema as kC, projectsUpdateStatus413Schema as kD, projectsUpdateStatus422Schema as kE, projectsUpdateStatus429Schema as kF, projectsUpdateStatus500Schema as kG, rateLimitsFindErrorSchema as kH, rateLimitsFindQuerySchema as kI, rateLimitsFindQueryScopeSchema as kJ, rateLimitsFindResponseSchema as kK, rateLimitsFindStatus200Schema as kL, rateLimitsFindStatus401Schema as kM, rateLimitsFindStatus403Schema as kN, rateLimitsFindStatus404Schema as kO, rateLimitsFindStatus409Schema as kP, rateLimitsFindStatus413Schema as kQ, rateLimitsFindStatus422Schema as kR, rateLimitsFindStatus429Schema as kS, rateLimitsFindStatus500Schema as kT, reportsGetAIUsageErrorSchema as kU, reportsGetAIUsageQueryCursorSchema as kV, reportsGetAIUsageQueryEndSchema as kW, reportsGetAIUsageQueryLimitSchema as kX, reportsGetAIUsageQuerySchema as kY, reportsGetAIUsageQueryStartSchema as kZ, reportsGetAIUsageResponseSchema as k_, projectsGetEnvVarStatus422Schema as ka, projectsGetEnvVarStatus429Schema as kb, projectsGetEnvVarStatus500Schema as kc, projectsUpdateBodySchema as kd, projectsUpdateEnvVarsBodySchema as ke, projectsUpdateEnvVarsErrorSchema as kf, projectsUpdateEnvVarsPathProjectIdSchema as kg, projectsUpdateEnvVarsPathSchema as kh, projectsUpdateEnvVarsQueryDecryptedSchema as ki, projectsUpdateEnvVarsQuerySchema as kj, projectsUpdateEnvVarsResponseSchema as kk, projectsUpdateEnvVarsStatus200Schema as kl, projectsUpdateEnvVarsStatus401Schema as km, projectsUpdateEnvVarsStatus403Schema as kn, projectsUpdateEnvVarsStatus404Schema as ko, projectsUpdateEnvVarsStatus409Schema as kp, projectsUpdateEnvVarsStatus413Schema as kq, projectsUpdateEnvVarsStatus422Schema as kr, projectsUpdateEnvVarsStatus429Schema as ks, projectsUpdateEnvVarsStatus500Schema as kt, projectsUpdateErrorSchema as ku, projectsUpdatePathProjectIdSchema as kv, projectsUpdatePathSchema as kw, projectsUpdateResponseSchema as kx, projectsUpdateStatus200Schema as ky, projectsUpdateStatus401Schema as kz, chatsCreateStatus422Schema as l, userGetPlanStatus200Schema as l$, reportsGetAIUsageStatus401Schema as l0, reportsGetAIUsageStatus403Schema as l1, reportsGetAIUsageStatus404Schema as l2, reportsGetAIUsageStatus409Schema as l3, reportsGetAIUsageStatus413Schema as l4, reportsGetAIUsageStatus422Schema as l5, reportsGetAIUsageStatus429Schema as l6, reportsGetAIUsageStatus500Schema as l7, reportsGetUsageErrorSchema as l8, reportsGetUsageQueryChatIdSchema as l9, reportsGetUserActivityStatus409Schema as lA, reportsGetUserActivityStatus413Schema as lB, reportsGetUserActivityStatus422Schema as lC, reportsGetUserActivityStatus429Schema as lD, reportsGetUserActivityStatus500Schema as lE, scopeSummarySchema as lF, searchResultItemSchema as lG, tooManyRequestsErrorSchema as lH, unauthorizedErrorSchema as lI, unprocessableEntityErrorSchema as lJ, userDetailSchemaSchema as lK, userGetBillingErrorSchema as lL, userGetBillingQuerySchema as lM, userGetBillingQueryScopeSchema as lN, userGetBillingResponseSchema as lO, userGetBillingStatus200Schema as lP, userGetBillingStatus401Schema as lQ, userGetBillingStatus403Schema as lR, userGetBillingStatus404Schema as lS, userGetBillingStatus409Schema as lT, userGetBillingStatus413Schema as lU, userGetBillingStatus422Schema as lV, userGetBillingStatus429Schema as lW, userGetBillingStatus500Schema as lX, userGetErrorSchema as lY, userGetPlanErrorSchema as lZ, userGetPlanResponseSchema as l_, reportsGetUsageQueryCursorSchema as la, reportsGetUsageQueryEndDateSchema as lb, reportsGetUsageQueryLimitSchema as lc, reportsGetUsageQueryMessageIdSchema as ld, reportsGetUsageQuerySchema as le, reportsGetUsageQueryStartDateSchema as lf, reportsGetUsageQueryUserIdSchema as lg, reportsGetUsageResponseSchema as lh, reportsGetUsageStatus200Schema as li, reportsGetUsageStatus401Schema as lj, reportsGetUsageStatus403Schema as lk, reportsGetUsageStatus404Schema as ll, reportsGetUsageStatus409Schema as lm, reportsGetUsageStatus413Schema as ln, reportsGetUsageStatus422Schema as lo, reportsGetUsageStatus429Schema as lp, reportsGetUsageStatus500Schema as lq, reportsGetUserActivityErrorSchema as lr, reportsGetUserActivityQueryEndDateSchema as ls, reportsGetUserActivityQuerySchema as lt, reportsGetUserActivityQueryStartDateSchema as lu, reportsGetUserActivityResponseSchema as lv, reportsGetUserActivityStatus200Schema as lw, reportsGetUserActivityStatus401Schema as lx, reportsGetUserActivityStatus403Schema as ly, reportsGetUserActivityStatus404Schema as lz, chatsCreateStatus429Schema as m, userGetPlanStatus401Schema as m0, userGetPlanStatus403Schema as m1, userGetPlanStatus404Schema as m2, userGetPlanStatus409Schema as m3, userGetPlanStatus413Schema as m4, userGetPlanStatus422Schema as m5, userGetPlanStatus429Schema as m6, userGetPlanStatus500Schema as m7, userGetResponseSchema as m8, userGetScopesErrorSchema as m9, versionSummaryListSchema as mA, versionSummarySchema as mB, userGetScopesResponseSchema as ma, userGetScopesStatus200Schema as mb, userGetScopesStatus401Schema as mc, userGetScopesStatus403Schema as md, userGetScopesStatus404Schema as me, userGetScopesStatus409Schema as mf, userGetScopesStatus413Schema as mg, userGetScopesStatus422Schema as mh, userGetScopesStatus429Schema as mi, userGetScopesStatus500Schema as mj, userGetStatus200Schema as mk, userGetStatus401Schema as ml, userGetStatus403Schema as mm, userGetStatus404Schema as mn, userGetStatus409Schema as mo, userGetStatus413Schema as mp, userGetStatus422Schema as mq, userGetStatus429Schema as mr, userGetStatus500Schema as ms, userPreferencesPostResponseSchemaSchema as mt, userPreferencesResponseSchemaSchema as mu, userPreferencesSchemaSchema as mv, userSummarySchemaSchema as mw, vercelProjectDetailSchema as mx, vercelProjectSummarySchema as my, versionDetailSchema as mz, chatsCreateStatus500Schema as n, chatsDeleteErrorSchema as o, chatsDeletePathChatIdSchema as p, chatsDeletePathSchema as q, chatsDeleteResponseSchema as r, chatsDeleteStatus200Schema as s, chatsDeleteStatus401Schema as t, chatsDeleteStatus403Schema as u, chatsDeleteStatus404Schema as v, chatsDeleteStatus409Schema as w, chatsDeleteStatus413Schema as x, chatsDeleteStatus422Schema as y, chatsDeleteStatus429Schema as z };