v0-api 0.0.3 → 0.1.3

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 (79) hide show
  1. package/dist/components.cjs +1498 -0
  2. package/dist/components.d.cts +1011 -0
  3. package/dist/components.d.cts.map +1 -0
  4. package/dist/components.d.mts +1011 -0
  5. package/dist/components.d.mts.map +1 -0
  6. package/dist/components.mjs +1435 -0
  7. package/dist/effect.cjs +1334 -0
  8. package/dist/effect.d.cts +970 -0
  9. package/dist/effect.d.cts.map +1 -0
  10. package/dist/effect.d.mts +970 -0
  11. package/dist/effect.d.mts.map +1 -0
  12. package/dist/effect.mjs +1312 -0
  13. package/dist/index.cjs +5132 -0
  14. package/dist/index.d.cts +11385 -0
  15. package/dist/index.d.cts.map +1 -0
  16. package/dist/index.d.mts +11378 -228
  17. package/dist/index.d.mts.map +1 -0
  18. package/dist/index.d.ts +11378 -228
  19. package/dist/index.d.ts.map +1 -0
  20. package/dist/index.mjs +4311 -7
  21. package/dist/schemas.cjs +3229 -0
  22. package/dist/schemas.d.cts +1856 -0
  23. package/dist/schemas.d.cts.map +1 -0
  24. package/dist/schemas.d.mts +1856 -0
  25. package/dist/schemas.d.mts.map +1 -0
  26. package/dist/schemas.mjs +2488 -0
  27. package/dist/types.cjs +420 -0
  28. package/dist/types.d.cts +8429 -0
  29. package/dist/types.d.cts.map +1 -0
  30. package/dist/types.d.mts +8429 -0
  31. package/dist/types.d.mts.map +1 -0
  32. package/dist/types.mjs +343 -0
  33. package/package.json +84 -31
  34. package/README.md +0 -3
  35. package/dist/client.d.mts +0 -58
  36. package/dist/client.d.ts +0 -58
  37. package/dist/client.js +0 -53
  38. package/dist/client.mjs +0 -46
  39. package/dist/generated/components.d.mts +0 -353
  40. package/dist/generated/components.d.ts +0 -353
  41. package/dist/generated/components.js +0 -449
  42. package/dist/generated/components.mjs +0 -419
  43. package/dist/generated/mcp.d.mts +0 -261
  44. package/dist/generated/mcp.d.ts +0 -261
  45. package/dist/generated/mcp.js +0 -554
  46. package/dist/generated/mcp.mjs +0 -524
  47. package/dist/generated/schemas.d.mts +0 -1484
  48. package/dist/generated/schemas.d.ts +0 -1484
  49. package/dist/generated/schemas.js +0 -1133
  50. package/dist/generated/schemas.mjs +0 -1125
  51. package/dist/generated/types.d.mts +0 -1669
  52. package/dist/generated/types.d.ts +0 -1669
  53. package/dist/generated/types.js +0 -93
  54. package/dist/generated/types.mjs +0 -90
  55. package/dist/index.js +0 -49
  56. package/dist/mcp.d.mts +0 -1
  57. package/dist/mcp.d.ts +0 -1
  58. package/dist/mcp.js +0 -5
  59. package/dist/mcp.mjs +0 -1
  60. package/dist/utils/fetch.d.mts +0 -18
  61. package/dist/utils/fetch.d.ts +0 -18
  62. package/dist/utils/fetch.js +0 -8
  63. package/dist/utils/fetch.mjs +0 -5
  64. package/dist/utils/fetcher.d.mts +0 -22
  65. package/dist/utils/fetcher.d.ts +0 -22
  66. package/dist/utils/fetcher.js +0 -68
  67. package/dist/utils/fetcher.mjs +0 -65
  68. package/dist/utils/lang.d.mts +0 -1
  69. package/dist/utils/lang.d.ts +0 -1
  70. package/dist/utils/lang.js +0 -9
  71. package/dist/utils/lang.mjs +0 -6
  72. package/dist/utils/mcp.d.mts +0 -1
  73. package/dist/utils/mcp.d.ts +0 -1
  74. package/dist/utils/mcp.js +0 -2
  75. package/dist/utils/mcp.mjs +0 -1
  76. package/dist/utils/types.d.mts +0 -3
  77. package/dist/utils/types.d.ts +0 -3
  78. package/dist/utils/types.js +0 -2
  79. package/dist/utils/types.mjs +0 -1
package/dist/index.mjs CHANGED
@@ -1,7 +1,4311 @@
1
- import * as Components from "./generated/components.mjs";
2
- import * as Schemas from "./generated/schemas.mjs";
3
- import * as Types from "./generated/types.mjs";
4
- const { operationsByPath, operationsByTag, tagDictionary, ...Fetchers } = Components;
5
- const Helpers = { operationsByPath, operationsByTag, tagDictionary };
6
- export * from "./client.mjs";
7
- export { Fetchers, Helpers, Schemas, Types };
1
+ import * as z from 'zod';
2
+
3
+ function notEmpty(value) {
4
+ return value !== null && value !== undefined;
5
+ }
6
+ function compactObject(obj) {
7
+ return Object.fromEntries(Object.entries(obj).filter(([, value])=>notEmpty(value)));
8
+ }
9
+
10
+ async function client({ url, method, body, headers, queryParams, signal, token = null, baseUrl = "", fetchImpl = fetch }) {
11
+ try {
12
+ const requestHeaders = compactObject({
13
+ "Content-Type": "application/json",
14
+ Authorization: token ? `Bearer ${token}` : undefined,
15
+ ...headers
16
+ });
17
+ /**
18
+ * As the fetch API is being used, when multipart/form-data is specified
19
+ * the Content-Type header must be deleted so that the browser can set
20
+ * the correct boundary.
21
+ * https://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects#sending_files_using_a_formdata_object
22
+ */ if (requestHeaders["Content-Type"]?.toLowerCase().includes("multipart/form-data")) {
23
+ delete requestHeaders["Content-Type"];
24
+ }
25
+ const payload = body instanceof FormData ? body : requestHeaders["Content-Type"] === "application/json" ? JSON.stringify(body) : body;
26
+ const fullUrl = `${baseUrl}${resolveUrl(url, queryParams)}`;
27
+ const response = await fetchImpl(fullUrl, {
28
+ signal,
29
+ method: method.toUpperCase(),
30
+ body: payload,
31
+ headers: requestHeaders
32
+ });
33
+ if (!response.ok) {
34
+ let error;
35
+ try {
36
+ error = await response.json();
37
+ } catch (e) {
38
+ error = {
39
+ status: "unknown",
40
+ payload: e instanceof Error ? `Unexpected error (${e.message})` : "Unexpected error"
41
+ };
42
+ }
43
+ throw error;
44
+ }
45
+ if (response.headers?.get("content-type")?.includes("json")) {
46
+ return await response.json();
47
+ } else {
48
+ // if it is not a json response, assume it is a blob and cast it to TData
49
+ return await response.text();
50
+ }
51
+ } catch (e) {
52
+ const errorObject = {
53
+ name: "unknown",
54
+ message: e?.message ? `${e?.message}` : "Network error"
55
+ };
56
+ throw errorObject;
57
+ }
58
+ }
59
+ const resolveUrl = (url, queryParams = {})=>{
60
+ let query = new URLSearchParams(queryParams).toString();
61
+ if (query) query = `?${query}`;
62
+ return url + query;
63
+ };
64
+
65
+ /**
66
+ * @summary Create Chat
67
+ * @description 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.
68
+ * @link /chats
69
+ */ async function chatsCreate({ config } = {}) {
70
+ const { client: request = client, ...requestConfig } = config ?? {};
71
+ const data = await request({
72
+ method: "POST",
73
+ url: `/chats`,
74
+ ...requestConfig,
75
+ headers: {
76
+ ...requestConfig.headers
77
+ }
78
+ });
79
+ return data;
80
+ }
81
+ /**
82
+ * @summary Find Chats
83
+ * @description Retrieves a list of existing chats, with support for pagination and filtering by favorite status, Vercel project, or Git branch. Helps manage and navigate chat history.
84
+ * @link /chats
85
+ */ async function chatsFind({ queryParams, config } = {}) {
86
+ const { client: request = client, ...requestConfig } = config ?? {};
87
+ const data = await request({
88
+ method: "GET",
89
+ url: `/chats`,
90
+ queryParams,
91
+ ...requestConfig,
92
+ headers: {
93
+ ...requestConfig.headers
94
+ }
95
+ });
96
+ return data;
97
+ }
98
+ /**
99
+ * @summary Initialize Chat
100
+ * @description Initializes a new chat from source content such as files, repositories, registries, or zip archives. Enables context-rich conversations based on code or assets.
101
+ * @link /chats/init
102
+ */ async function chatsInit({ config } = {}) {
103
+ const { client: request = client, ...requestConfig } = config ?? {};
104
+ const data = await request({
105
+ method: "POST",
106
+ url: `/chats/init`,
107
+ ...requestConfig,
108
+ headers: {
109
+ ...requestConfig.headers
110
+ }
111
+ });
112
+ return data;
113
+ }
114
+ /**
115
+ * @summary Delete Chat
116
+ * @description Deletes a specific chat based on the provided chatId. The chat and its contents are moved to trash and stop being retrievable immediately, then retained for 30 days before being permanently removed.
117
+ * @link /chats/{chatId}
118
+ */ async function chatsDelete({ pathParams, config } = {}) {
119
+ const { client: request = client, ...requestConfig } = config ?? {};
120
+ if (!pathParams.chatId) {
121
+ throw new Error(`Missing required path parameter: chatId`);
122
+ }
123
+ const data = await request({
124
+ method: "DELETE",
125
+ url: `/chats/${pathParams.chatId}`,
126
+ ...requestConfig,
127
+ headers: {
128
+ ...requestConfig.headers
129
+ }
130
+ });
131
+ return data;
132
+ }
133
+ /**
134
+ * @summary Get Chat
135
+ * @description Retrieves the full details of a specific chat using its `chatId`. Includes messages, metadata, and associated configuration.
136
+ * @link /chats/{chatId}
137
+ */ async function chatsGetById({ pathParams, config } = {}) {
138
+ const { client: request = client, ...requestConfig } = config ?? {};
139
+ if (!pathParams.chatId) {
140
+ throw new Error(`Missing required path parameter: chatId`);
141
+ }
142
+ const data = await request({
143
+ method: "GET",
144
+ url: `/chats/${pathParams.chatId}`,
145
+ ...requestConfig,
146
+ headers: {
147
+ ...requestConfig.headers
148
+ }
149
+ });
150
+ return data;
151
+ }
152
+ /**
153
+ * @summary Update Chat
154
+ * @description Updates the metadata of an existing chat using its `chatId`. Supports changes to the chat name and privacy setting.
155
+ * @link /chats/{chatId}
156
+ */ async function chatsUpdate({ pathParams, config } = {}) {
157
+ const { client: request = client, ...requestConfig } = config ?? {};
158
+ if (!pathParams.chatId) {
159
+ throw new Error(`Missing required path parameter: chatId`);
160
+ }
161
+ const data = await request({
162
+ method: "PATCH",
163
+ url: `/chats/${pathParams.chatId}`,
164
+ ...requestConfig,
165
+ headers: {
166
+ ...requestConfig.headers
167
+ }
168
+ });
169
+ return data;
170
+ }
171
+ /**
172
+ * @summary Favorite Chat
173
+ * @description Marks or unmarks a chat as a favorite using its `chatId`. This helps with organizing and quickly accessing important chats.
174
+ * @link /chats/{chatId}/favorite
175
+ */ async function chatsFavorite({ pathParams, config } = {}) {
176
+ const { client: request = client, ...requestConfig } = config ?? {};
177
+ if (!pathParams.chatId) {
178
+ throw new Error(`Missing required path parameter: chatId`);
179
+ }
180
+ const data = await request({
181
+ method: "PUT",
182
+ url: `/chats/${pathParams.chatId}/favorite`,
183
+ ...requestConfig,
184
+ headers: {
185
+ ...requestConfig.headers
186
+ }
187
+ });
188
+ return data;
189
+ }
190
+ /**
191
+ * @summary Fork Chat
192
+ * @description Creates a new chat fork (duplicate) from a specific version within an existing chat. Useful for branching off alternate directions without modifying the original conversation.
193
+ * @link /chats/{chatId}/fork
194
+ */ async function chatsFork({ pathParams, config } = {}) {
195
+ const { client: request = client, ...requestConfig } = config ?? {};
196
+ if (!pathParams.chatId) {
197
+ throw new Error(`Missing required path parameter: chatId`);
198
+ }
199
+ const data = await request({
200
+ method: "POST",
201
+ url: `/chats/${pathParams.chatId}/fork`,
202
+ ...requestConfig,
203
+ headers: {
204
+ ...requestConfig.headers
205
+ }
206
+ });
207
+ return data;
208
+ }
209
+ /**
210
+ * @summary Get Project by Chat ID
211
+ * @description Retrieves the v0 project associated with a given chat. Useful for determining the context or scope of a chat session.
212
+ * @link /chats/{chatId}/project
213
+ */ async function projectsGetByChatId({ pathParams, config } = {}) {
214
+ const { client: request = client, ...requestConfig } = config ?? {};
215
+ if (!pathParams.chatId) {
216
+ throw new Error(`Missing required path parameter: chatId`);
217
+ }
218
+ const data = await request({
219
+ method: "GET",
220
+ url: `/chats/${pathParams.chatId}/project`,
221
+ ...requestConfig,
222
+ headers: {
223
+ ...requestConfig.headers
224
+ }
225
+ });
226
+ return data;
227
+ }
228
+ /**
229
+ * @summary Find Chat Messages
230
+ * @description Retrieves a list of all messages for a specific chat, ordered by creation date (newest first). Supports cursor-based pagination and includes message content, role, and type information.
231
+ * @link /chats/{chatId}/messages
232
+ */ async function chatsFindMessages({ pathParams, queryParams, config } = {}) {
233
+ const { client: request = client, ...requestConfig } = config ?? {};
234
+ if (!pathParams.chatId) {
235
+ throw new Error(`Missing required path parameter: chatId`);
236
+ }
237
+ const data = await request({
238
+ method: "GET",
239
+ url: `/chats/${pathParams.chatId}/messages`,
240
+ queryParams,
241
+ ...requestConfig,
242
+ headers: {
243
+ ...requestConfig.headers
244
+ }
245
+ });
246
+ return data;
247
+ }
248
+ /**
249
+ * @summary Send Message
250
+ * @description Creates a new message in an existing chat. Triggers a model response using the provided prompt, with optional attachments and configuration settings.
251
+ * @link /chats/{chatId}/messages
252
+ */ async function chatsSendMessage({ pathParams, config } = {}) {
253
+ const { client: request = client, ...requestConfig } = config ?? {};
254
+ if (!pathParams.chatId) {
255
+ throw new Error(`Missing required path parameter: chatId`);
256
+ }
257
+ const data = await request({
258
+ method: "POST",
259
+ url: `/chats/${pathParams.chatId}/messages`,
260
+ ...requestConfig,
261
+ headers: {
262
+ ...requestConfig.headers
263
+ }
264
+ });
265
+ return data;
266
+ }
267
+ /**
268
+ * @summary Get Chat Message
269
+ * @description Retrieves detailed information about a specific message within a chat, including content, files, model configuration, and demo URLs.
270
+ * @link /chats/{chatId}/messages/{messageId}
271
+ */ async function chatsGetMessage({ pathParams, config } = {}) {
272
+ const { client: request = client, ...requestConfig } = config ?? {};
273
+ if (!pathParams.chatId) {
274
+ throw new Error(`Missing required path parameter: chatId`);
275
+ }
276
+ if (!pathParams.messageId) {
277
+ throw new Error(`Missing required path parameter: messageId`);
278
+ }
279
+ const data = await request({
280
+ method: "GET",
281
+ url: `/chats/${pathParams.chatId}/messages/${pathParams.messageId}`,
282
+ ...requestConfig,
283
+ headers: {
284
+ ...requestConfig.headers
285
+ }
286
+ });
287
+ return data;
288
+ }
289
+ /**
290
+ * @summary Find Chat Versions
291
+ * @description Retrieves a list of all versions (iterations) for a specific chat, ordered by creation date (newest first). Supports cursor-based pagination and includes version status and demo URLs.
292
+ * @link /chats/{chatId}/versions
293
+ */ async function chatsFindVersions({ pathParams, queryParams, config } = {}) {
294
+ const { client: request = client, ...requestConfig } = config ?? {};
295
+ if (!pathParams.chatId) {
296
+ throw new Error(`Missing required path parameter: chatId`);
297
+ }
298
+ const data = await request({
299
+ method: "GET",
300
+ url: `/chats/${pathParams.chatId}/versions`,
301
+ queryParams,
302
+ ...requestConfig,
303
+ headers: {
304
+ ...requestConfig.headers
305
+ }
306
+ });
307
+ return data;
308
+ }
309
+ /**
310
+ * @summary Get Chat Version
311
+ * @description Retrieves detailed information about a specific version of a chat, including all files with their content and lock status.
312
+ * @link /chats/{chatId}/versions/{versionId}
313
+ */ async function chatsGetVersion({ pathParams, queryParams, config } = {}) {
314
+ const { client: request = client, ...requestConfig } = config ?? {};
315
+ if (!pathParams.chatId) {
316
+ throw new Error(`Missing required path parameter: chatId`);
317
+ }
318
+ if (!pathParams.versionId) {
319
+ throw new Error(`Missing required path parameter: versionId`);
320
+ }
321
+ const data = await request({
322
+ method: "GET",
323
+ url: `/chats/${pathParams.chatId}/versions/${pathParams.versionId}`,
324
+ queryParams,
325
+ ...requestConfig,
326
+ headers: {
327
+ ...requestConfig.headers
328
+ }
329
+ });
330
+ return data;
331
+ }
332
+ /**
333
+ * @summary Update Chat Version Files
334
+ * @description Updates the source files of a specific chat version (block) manually. This allows editing generated files directly through the API.
335
+ * @link /chats/{chatId}/versions/{versionId}
336
+ */ async function chatsUpdateVersion({ pathParams, config } = {}) {
337
+ const { client: request = client, ...requestConfig } = config ?? {};
338
+ if (!pathParams.chatId) {
339
+ throw new Error(`Missing required path parameter: chatId`);
340
+ }
341
+ if (!pathParams.versionId) {
342
+ throw new Error(`Missing required path parameter: versionId`);
343
+ }
344
+ const data = await request({
345
+ method: "PATCH",
346
+ url: `/chats/${pathParams.chatId}/versions/${pathParams.versionId}`,
347
+ ...requestConfig,
348
+ headers: {
349
+ ...requestConfig.headers
350
+ }
351
+ });
352
+ return data;
353
+ }
354
+ /**
355
+ * @summary Download version files
356
+ * @description Download all files for a specific chat version as a zip or tarball archive. Use includeDefaultFiles=true to include all deployment files (package.json, configuration files, etc.) or false/omitted to return only the generated source files.
357
+ * @link /chats/{chatId}/versions/{versionId}/download
358
+ */ async function chatsDownloadVersion({ pathParams, queryParams, config } = {}) {
359
+ const { client: request = client, ...requestConfig } = config ?? {};
360
+ if (!pathParams.chatId) {
361
+ throw new Error(`Missing required path parameter: chatId`);
362
+ }
363
+ if (!pathParams.versionId) {
364
+ throw new Error(`Missing required path parameter: versionId`);
365
+ }
366
+ const data = await request({
367
+ method: "GET",
368
+ url: `/chats/${pathParams.chatId}/versions/${pathParams.versionId}/download`,
369
+ queryParams,
370
+ ...requestConfig,
371
+ headers: {
372
+ ...requestConfig.headers
373
+ }
374
+ });
375
+ return data;
376
+ }
377
+ /**
378
+ * @summary Delete Chat Version Files
379
+ * @description Deletes source files from a specific chat version (block). Files are removed from the version and a new source version is created.
380
+ * @link /chats/{chatId}/versions/{versionId}/files/delete
381
+ */ async function chatsDeleteVersionFiles({ pathParams, config } = {}) {
382
+ const { client: request = client, ...requestConfig } = config ?? {};
383
+ if (!pathParams.chatId) {
384
+ throw new Error(`Missing required path parameter: chatId`);
385
+ }
386
+ if (!pathParams.versionId) {
387
+ throw new Error(`Missing required path parameter: versionId`);
388
+ }
389
+ const data = await request({
390
+ method: "POST",
391
+ url: `/chats/${pathParams.chatId}/versions/${pathParams.versionId}/files/delete`,
392
+ ...requestConfig,
393
+ headers: {
394
+ ...requestConfig.headers
395
+ }
396
+ });
397
+ return data;
398
+ }
399
+ /**
400
+ * @summary Resume Message
401
+ * @description Reconnects to an active assistant message stream and returns it as Server-Sent Events. This does not restart or continue a stopped generation.
402
+ * @link /chats/{chatId}/messages/{messageId}/resume
403
+ */ async function chatsResume({ pathParams, config } = {}) {
404
+ const { client: request = client, ...requestConfig } = config ?? {};
405
+ if (!pathParams.chatId) {
406
+ throw new Error(`Missing required path parameter: chatId`);
407
+ }
408
+ if (!pathParams.messageId) {
409
+ throw new Error(`Missing required path parameter: messageId`);
410
+ }
411
+ const data = await request({
412
+ method: "POST",
413
+ url: `/chats/${pathParams.chatId}/messages/${pathParams.messageId}/resume`,
414
+ ...requestConfig,
415
+ headers: {
416
+ ...requestConfig.headers
417
+ }
418
+ });
419
+ return data;
420
+ }
421
+ /**
422
+ * @summary Stop Message
423
+ * @description Stops an in-flight message generation in a chat. Useful for cancelling a streaming response that is still being generated.
424
+ * @link /chats/{chatId}/messages/{messageId}/stop
425
+ */ async function chatsStop({ pathParams, config } = {}) {
426
+ const { client: request = client, ...requestConfig } = config ?? {};
427
+ if (!pathParams.chatId) {
428
+ throw new Error(`Missing required path parameter: chatId`);
429
+ }
430
+ if (!pathParams.messageId) {
431
+ throw new Error(`Missing required path parameter: messageId`);
432
+ }
433
+ const data = await request({
434
+ method: "POST",
435
+ url: `/chats/${pathParams.chatId}/messages/${pathParams.messageId}/stop`,
436
+ ...requestConfig,
437
+ headers: {
438
+ ...requestConfig.headers
439
+ }
440
+ });
441
+ return data;
442
+ }
443
+ /**
444
+ * @summary Resolve Task
445
+ * @description Resolves a pending task in a chat, continuing the conversation. The latest message in the active chat fork must be an assistant message currently blocked on a matching task (integration setup, plan approval, question answers, or permission grants).
446
+ * @link /chats/{chatId}/tasks/resolve
447
+ */ async function chatsResolveTask({ pathParams, config } = {}) {
448
+ const { client: request = client, ...requestConfig } = config ?? {};
449
+ if (!pathParams.chatId) {
450
+ throw new Error(`Missing required path parameter: chatId`);
451
+ }
452
+ const data = await request({
453
+ method: "POST",
454
+ url: `/chats/${pathParams.chatId}/tasks/resolve`,
455
+ ...requestConfig,
456
+ headers: {
457
+ ...requestConfig.headers
458
+ }
459
+ });
460
+ return data;
461
+ }
462
+ /**
463
+ * @summary Find Deployments
464
+ * @description Find deployments by project and chat IDs. This will return a list of deployments for the given project and chat IDs.
465
+ * @link /deployments
466
+ */ async function deploymentsFind({ queryParams, config } = {}) {
467
+ const { client: request = client, ...requestConfig } = config ?? {};
468
+ const data = await request({
469
+ method: "GET",
470
+ url: `/deployments`,
471
+ queryParams,
472
+ ...requestConfig,
473
+ headers: {
474
+ ...requestConfig.headers
475
+ }
476
+ });
477
+ return data;
478
+ }
479
+ /**
480
+ * @summary Create Deployment
481
+ * @description Create a new deployment for a specific chat and version. This will trigger a deployment to Vercel.
482
+ * @link /deployments
483
+ */ async function deploymentsCreate({ config } = {}) {
484
+ const { client: request = client, ...requestConfig } = config ?? {};
485
+ const data = await request({
486
+ method: "POST",
487
+ url: `/deployments`,
488
+ ...requestConfig,
489
+ headers: {
490
+ ...requestConfig.headers
491
+ }
492
+ });
493
+ return data;
494
+ }
495
+ /**
496
+ * @summary Get Deployment
497
+ * @description Get a deployment by ID. This will return the details of the deployment, including the inspector URL, chat ID, project ID, version ID, API URL, and web URL.
498
+ * @link /deployments/{deploymentId}
499
+ */ async function deploymentsGetById({ pathParams, config } = {}) {
500
+ const { client: request = client, ...requestConfig } = config ?? {};
501
+ if (!pathParams.deploymentId) {
502
+ throw new Error(`Missing required path parameter: deploymentId`);
503
+ }
504
+ const data = await request({
505
+ method: "GET",
506
+ url: `/deployments/${pathParams.deploymentId}`,
507
+ ...requestConfig,
508
+ headers: {
509
+ ...requestConfig.headers
510
+ }
511
+ });
512
+ return data;
513
+ }
514
+ /**
515
+ * @summary Delete Deployment
516
+ * @description Delete a deployment by ID. This will delete the deployment from Vercel.
517
+ * @link /deployments/{deploymentId}
518
+ */ async function deploymentsDelete({ pathParams, config } = {}) {
519
+ const { client: request = client, ...requestConfig } = config ?? {};
520
+ if (!pathParams.deploymentId) {
521
+ throw new Error(`Missing required path parameter: deploymentId`);
522
+ }
523
+ const data = await request({
524
+ method: "DELETE",
525
+ url: `/deployments/${pathParams.deploymentId}`,
526
+ ...requestConfig,
527
+ headers: {
528
+ ...requestConfig.headers
529
+ }
530
+ });
531
+ return data;
532
+ }
533
+ /**
534
+ * @summary Find Deployment Logs
535
+ * @description Retrieves logs for a specific deployment. Supports filtering by timestamp to fetch only recent logs.
536
+ * @link /deployments/{deploymentId}/logs
537
+ */ async function deploymentsFindLogs({ pathParams, queryParams, config } = {}) {
538
+ const { client: request = client, ...requestConfig } = config ?? {};
539
+ if (!pathParams.deploymentId) {
540
+ throw new Error(`Missing required path parameter: deploymentId`);
541
+ }
542
+ const data = await request({
543
+ method: "GET",
544
+ url: `/deployments/${pathParams.deploymentId}/logs`,
545
+ queryParams,
546
+ ...requestConfig,
547
+ headers: {
548
+ ...requestConfig.headers
549
+ }
550
+ });
551
+ return data;
552
+ }
553
+ /**
554
+ * @summary Find Deployment Errors
555
+ * @description Retrieves a list of errors that occurred during a specific deployment. Useful for diagnosing and debugging deployment issues.
556
+ * @link /deployments/{deploymentId}/errors
557
+ */ async function deploymentsFindErrors({ pathParams, config } = {}) {
558
+ const { client: request = client, ...requestConfig } = config ?? {};
559
+ if (!pathParams.deploymentId) {
560
+ throw new Error(`Missing required path parameter: deploymentId`);
561
+ }
562
+ const data = await request({
563
+ method: "GET",
564
+ url: `/deployments/${pathParams.deploymentId}/errors`,
565
+ ...requestConfig,
566
+ headers: {
567
+ ...requestConfig.headers
568
+ }
569
+ });
570
+ return data;
571
+ }
572
+ /**
573
+ * @summary Find Hooks
574
+ * @description Retrieves a list of existing hooks in your workspace. Useful for managing active webhooks tied to chat events or deployments.
575
+ * @link /hooks
576
+ */ async function hooksFind({ config } = {}) {
577
+ const { client: request = client, ...requestConfig } = config ?? {};
578
+ const data = await request({
579
+ method: "GET",
580
+ url: `/hooks`,
581
+ ...requestConfig,
582
+ headers: {
583
+ ...requestConfig.headers
584
+ }
585
+ });
586
+ return data;
587
+ }
588
+ /**
589
+ * @summary Create Hook
590
+ * @description Creates a new webhook that listens for specific events. Supports optional association with a chat.
591
+ * @link /hooks
592
+ */ async function hooksCreate({ config } = {}) {
593
+ const { client: request = client, ...requestConfig } = config ?? {};
594
+ const data = await request({
595
+ method: "POST",
596
+ url: `/hooks`,
597
+ ...requestConfig,
598
+ headers: {
599
+ ...requestConfig.headers
600
+ }
601
+ });
602
+ return data;
603
+ }
604
+ /**
605
+ * @summary Get Hook
606
+ * @description Retrieves the details of a specific webhook using its ID.
607
+ * @link /hooks/{hookId}
608
+ */ async function hooksGetById({ pathParams, config } = {}) {
609
+ const { client: request = client, ...requestConfig } = config ?? {};
610
+ if (!pathParams.hookId) {
611
+ throw new Error(`Missing required path parameter: hookId`);
612
+ }
613
+ const data = await request({
614
+ method: "GET",
615
+ url: `/hooks/${pathParams.hookId}`,
616
+ ...requestConfig,
617
+ headers: {
618
+ ...requestConfig.headers
619
+ }
620
+ });
621
+ return data;
622
+ }
623
+ /**
624
+ * @summary Update Hook
625
+ * @description Updates the configuration of an existing webhook, including its name, event subscriptions, or target URL.
626
+ * @link /hooks/{hookId}
627
+ */ async function hooksUpdate({ pathParams, config } = {}) {
628
+ const { client: request = client, ...requestConfig } = config ?? {};
629
+ if (!pathParams.hookId) {
630
+ throw new Error(`Missing required path parameter: hookId`);
631
+ }
632
+ const data = await request({
633
+ method: "PATCH",
634
+ url: `/hooks/${pathParams.hookId}`,
635
+ ...requestConfig,
636
+ headers: {
637
+ ...requestConfig.headers
638
+ }
639
+ });
640
+ return data;
641
+ }
642
+ /**
643
+ * @summary Delete Hook
644
+ * @description Deletes a webhook based on its ID. This action is irreversible.
645
+ * @link /hooks/{hookId}
646
+ */ async function hooksDelete({ pathParams, config } = {}) {
647
+ const { client: request = client, ...requestConfig } = config ?? {};
648
+ if (!pathParams.hookId) {
649
+ throw new Error(`Missing required path parameter: hookId`);
650
+ }
651
+ const data = await request({
652
+ method: "DELETE",
653
+ url: `/hooks/${pathParams.hookId}`,
654
+ ...requestConfig,
655
+ headers: {
656
+ ...requestConfig.headers
657
+ }
658
+ });
659
+ return data;
660
+ }
661
+ /**
662
+ * @summary Find Vercel Projects
663
+ * @description Retrieves a list of Vercel projects linked to your integration. Useful for associating chats, deployments, or hooks with specific Vercel projects.
664
+ * @link /integrations/vercel/projects
665
+ */ async function integrationsVercelProjectsFind({ config } = {}) {
666
+ const { client: request = client, ...requestConfig } = config ?? {};
667
+ const data = await request({
668
+ method: "GET",
669
+ url: `/integrations/vercel/projects`,
670
+ ...requestConfig,
671
+ headers: {
672
+ ...requestConfig.headers
673
+ }
674
+ });
675
+ return data;
676
+ }
677
+ /**
678
+ * @summary Create Vercel Project
679
+ * @description Links a Vercel project to an existing v0 project. Enables Vercel-related features and deployment integration within the v0 workspace.
680
+ * @link /integrations/vercel/projects
681
+ */ async function integrationsVercelProjectsCreate({ config } = {}) {
682
+ const { client: request = client, ...requestConfig } = config ?? {};
683
+ const data = await request({
684
+ method: "POST",
685
+ url: `/integrations/vercel/projects`,
686
+ ...requestConfig,
687
+ headers: {
688
+ ...requestConfig.headers
689
+ }
690
+ });
691
+ return data;
692
+ }
693
+ /**
694
+ * @summary Find Projects
695
+ * @description Returns a list of all v0 projects in your workspace. Useful for browsing or managing projects across different chats or use cases.
696
+ * @link /projects
697
+ */ async function projectsFind({ config } = {}) {
698
+ const { client: request = client, ...requestConfig } = config ?? {};
699
+ const data = await request({
700
+ method: "GET",
701
+ url: `/projects`,
702
+ ...requestConfig,
703
+ headers: {
704
+ ...requestConfig.headers
705
+ }
706
+ });
707
+ return data;
708
+ }
709
+ /**
710
+ * @summary Create Project
711
+ * @description Creates a new v0 project with an optional description, icon, environment variables, and instructions. Projects help organize chats and manage context.
712
+ * @link /projects
713
+ */ async function projectsCreate({ config } = {}) {
714
+ const { client: request = client, ...requestConfig } = config ?? {};
715
+ const data = await request({
716
+ method: "POST",
717
+ url: `/projects`,
718
+ ...requestConfig,
719
+ headers: {
720
+ ...requestConfig.headers
721
+ }
722
+ });
723
+ return data;
724
+ }
725
+ /**
726
+ * @summary Get Project by ID
727
+ * @description Retrieves the details of a specific v0 project by its ID.
728
+ * @link /projects/{projectId}
729
+ */ async function projectsGetById({ pathParams, config } = {}) {
730
+ const { client: request = client, ...requestConfig } = config ?? {};
731
+ if (!pathParams.projectId) {
732
+ throw new Error(`Missing required path parameter: projectId`);
733
+ }
734
+ const data = await request({
735
+ method: "GET",
736
+ url: `/projects/${pathParams.projectId}`,
737
+ ...requestConfig,
738
+ headers: {
739
+ ...requestConfig.headers
740
+ }
741
+ });
742
+ return data;
743
+ }
744
+ /**
745
+ * @summary Update Project
746
+ * @description Updates the metadata of an existing project using its `projectId`. Supports changes to the project name and privacy setting.
747
+ * @link /projects/{projectId}
748
+ */ async function projectsUpdate({ pathParams, config } = {}) {
749
+ const { client: request = client, ...requestConfig } = config ?? {};
750
+ if (!pathParams.projectId) {
751
+ throw new Error(`Missing required path parameter: projectId`);
752
+ }
753
+ const data = await request({
754
+ method: "PATCH",
755
+ url: `/projects/${pathParams.projectId}`,
756
+ ...requestConfig,
757
+ headers: {
758
+ ...requestConfig.headers
759
+ }
760
+ });
761
+ return data;
762
+ }
763
+ /**
764
+ * @summary Delete Project
765
+ * @description Deletes a specific project based on the provided projectId. This operation marks the project as deleted and is irreversible.
766
+ * @link /projects/{projectId}
767
+ */ async function projectsDelete({ pathParams, queryParams, config } = {}) {
768
+ const { client: request = client, ...requestConfig } = config ?? {};
769
+ if (!pathParams.projectId) {
770
+ throw new Error(`Missing required path parameter: projectId`);
771
+ }
772
+ const data = await request({
773
+ method: "DELETE",
774
+ url: `/projects/${pathParams.projectId}`,
775
+ queryParams,
776
+ ...requestConfig,
777
+ headers: {
778
+ ...requestConfig.headers
779
+ }
780
+ });
781
+ return data;
782
+ }
783
+ /**
784
+ * @summary Assign Project to Chat
785
+ * @description Links an existing v0 project to a specific chat. Helps group conversations under a shared project context.
786
+ * @link /projects/{projectId}/assign
787
+ */ async function projectsAssign({ pathParams, config } = {}) {
788
+ const { client: request = client, ...requestConfig } = config ?? {};
789
+ if (!pathParams.projectId) {
790
+ throw new Error(`Missing required path parameter: projectId`);
791
+ }
792
+ const data = await request({
793
+ method: "POST",
794
+ url: `/projects/${pathParams.projectId}/assign`,
795
+ ...requestConfig,
796
+ headers: {
797
+ ...requestConfig.headers
798
+ }
799
+ });
800
+ return data;
801
+ }
802
+ /**
803
+ * @summary Find Environment Variables
804
+ * @description Retrieves all environment variables for a given project.
805
+ * @link /projects/{projectId}/env-vars
806
+ */ async function projectsFindEnvVars({ pathParams, queryParams, config } = {}) {
807
+ const { client: request = client, ...requestConfig } = config ?? {};
808
+ if (!pathParams.projectId) {
809
+ throw new Error(`Missing required path parameter: projectId`);
810
+ }
811
+ const data = await request({
812
+ method: "GET",
813
+ url: `/projects/${pathParams.projectId}/env-vars`,
814
+ queryParams,
815
+ ...requestConfig,
816
+ headers: {
817
+ ...requestConfig.headers
818
+ }
819
+ });
820
+ return data;
821
+ }
822
+ /**
823
+ * @summary Create Environment Variables
824
+ * @description Creates new environment variables for a given project. This endpoint will fail if any of the specified environment variable keys already exist, unless upsert is set to true.
825
+ * @link /projects/{projectId}/env-vars
826
+ */ async function projectsCreateEnvVars({ pathParams, queryParams, config } = {}) {
827
+ const { client: request = client, ...requestConfig } = config ?? {};
828
+ if (!pathParams.projectId) {
829
+ throw new Error(`Missing required path parameter: projectId`);
830
+ }
831
+ const data = await request({
832
+ method: "POST",
833
+ url: `/projects/${pathParams.projectId}/env-vars`,
834
+ queryParams,
835
+ ...requestConfig,
836
+ headers: {
837
+ ...requestConfig.headers
838
+ }
839
+ });
840
+ return data;
841
+ }
842
+ /**
843
+ * @summary Update Environment Variables
844
+ * @description Updates multiple environment variables for a given project. Only the value of each environment variable can be updated.
845
+ * @link /projects/{projectId}/env-vars
846
+ */ async function projectsUpdateEnvVars({ pathParams, queryParams, config } = {}) {
847
+ const { client: request = client, ...requestConfig } = config ?? {};
848
+ if (!pathParams.projectId) {
849
+ throw new Error(`Missing required path parameter: projectId`);
850
+ }
851
+ const data = await request({
852
+ method: "PATCH",
853
+ url: `/projects/${pathParams.projectId}/env-vars`,
854
+ queryParams,
855
+ ...requestConfig,
856
+ headers: {
857
+ ...requestConfig.headers
858
+ }
859
+ });
860
+ return data;
861
+ }
862
+ /**
863
+ * @summary Delete Environment Variables
864
+ * @description Deletes multiple environment variables for a given project by their IDs.
865
+ * @link /projects/{projectId}/env-vars/delete
866
+ */ async function projectsDeleteEnvVars({ pathParams, config } = {}) {
867
+ const { client: request = client, ...requestConfig } = config ?? {};
868
+ if (!pathParams.projectId) {
869
+ throw new Error(`Missing required path parameter: projectId`);
870
+ }
871
+ const data = await request({
872
+ method: "POST",
873
+ url: `/projects/${pathParams.projectId}/env-vars/delete`,
874
+ ...requestConfig,
875
+ headers: {
876
+ ...requestConfig.headers
877
+ }
878
+ });
879
+ return data;
880
+ }
881
+ /**
882
+ * @summary Get Environment Variable
883
+ * @description Retrieves a specific environment variable for a given project by its ID, including its value.
884
+ * @link /projects/{projectId}/env-vars/{environmentVariableId}
885
+ */ async function projectsGetEnvVar({ pathParams, queryParams, config } = {}) {
886
+ const { client: request = client, ...requestConfig } = config ?? {};
887
+ if (!pathParams.projectId) {
888
+ throw new Error(`Missing required path parameter: projectId`);
889
+ }
890
+ if (!pathParams.environmentVariableId) {
891
+ throw new Error(`Missing required path parameter: environmentVariableId`);
892
+ }
893
+ const data = await request({
894
+ method: "GET",
895
+ url: `/projects/${pathParams.projectId}/env-vars/${pathParams.environmentVariableId}`,
896
+ queryParams,
897
+ ...requestConfig,
898
+ headers: {
899
+ ...requestConfig.headers
900
+ }
901
+ });
902
+ return data;
903
+ }
904
+ /**
905
+ * @summary Find Rate Limit
906
+ * @description Retrieves rate limit information for a given scope. Useful for monitoring usage limits and avoiding throttling.
907
+ * @link /rate-limits
908
+ */ async function rateLimitsFind({ queryParams, config } = {}) {
909
+ const { client: request = client, ...requestConfig } = config ?? {};
910
+ const data = await request({
911
+ method: "GET",
912
+ url: `/rate-limits`,
913
+ queryParams,
914
+ ...requestConfig,
915
+ headers: {
916
+ ...requestConfig.headers
917
+ }
918
+ });
919
+ return data;
920
+ }
921
+ /**
922
+ * @summary Get User
923
+ * @description Retrieves information about the authenticated user, including their ID, name, email, and account metadata.
924
+ * @link /user
925
+ */ async function userGet({ config } = {}) {
926
+ const { client: request = client, ...requestConfig } = config ?? {};
927
+ const data = await request({
928
+ method: "GET",
929
+ url: `/user`,
930
+ ...requestConfig,
931
+ headers: {
932
+ ...requestConfig.headers
933
+ }
934
+ });
935
+ return data;
936
+ }
937
+ /**
938
+ * @summary Get Billing
939
+ * @description Fetches billing usage and quota information for the authenticated user. Can be scoped to a specific context (e.g. project or namespace).
940
+ * @link /user/billing
941
+ */ async function userGetBilling({ queryParams, config } = {}) {
942
+ const { client: request = client, ...requestConfig } = config ?? {};
943
+ const data = await request({
944
+ method: "GET",
945
+ url: `/user/billing`,
946
+ queryParams,
947
+ ...requestConfig,
948
+ headers: {
949
+ ...requestConfig.headers
950
+ }
951
+ });
952
+ return data;
953
+ }
954
+ /**
955
+ * @summary Get Plan
956
+ * @description Returns the current subscription plan for the authenticated user, including tier details and feature limits.
957
+ * @link /user/plan
958
+ */ async function userGetPlan({ config } = {}) {
959
+ const { client: request = client, ...requestConfig } = config ?? {};
960
+ const data = await request({
961
+ method: "GET",
962
+ url: `/user/plan`,
963
+ ...requestConfig,
964
+ headers: {
965
+ ...requestConfig.headers
966
+ }
967
+ });
968
+ return data;
969
+ }
970
+ /**
971
+ * @summary Get User Scopes
972
+ * @description Retrieves all accessible scopes for the authenticated user, such as personal workspaces or shared teams.
973
+ * @link /user/scopes
974
+ */ async function userGetScopes({ config } = {}) {
975
+ const { client: request = client, ...requestConfig } = config ?? {};
976
+ const data = await request({
977
+ method: "GET",
978
+ url: `/user/scopes`,
979
+ ...requestConfig,
980
+ headers: {
981
+ ...requestConfig.headers
982
+ }
983
+ });
984
+ return data;
985
+ }
986
+ /**
987
+ * @summary Restore Block
988
+ * @description Restores a block to a specific version.
989
+ * @link /chats/{chatId}/versions/{versionId}/restore
990
+ */ async function chatsRestore({ pathParams, config } = {}) {
991
+ const { client: request = client, ...requestConfig } = config ?? {};
992
+ if (!pathParams.chatId) {
993
+ throw new Error(`Missing required path parameter: chatId`);
994
+ }
995
+ if (!pathParams.versionId) {
996
+ throw new Error(`Missing required path parameter: versionId`);
997
+ }
998
+ const data = await request({
999
+ method: "POST",
1000
+ url: `/chats/${pathParams.chatId}/versions/${pathParams.versionId}/restore`,
1001
+ ...requestConfig,
1002
+ headers: {
1003
+ ...requestConfig.headers
1004
+ }
1005
+ });
1006
+ return data;
1007
+ }
1008
+ /**
1009
+ * @summary Get Usage Report
1010
+ * @description Retrieves detailed usage events for the authenticated user or team, including costs, event types, models used, and metadata. Shows the same data as displayed in the usage dashboard. Can be filtered by chatId to show usage for a specific chat, or by userId to show usage for a specific user.
1011
+ * @link /reports/usage
1012
+ */ async function reportsGetUsage({ queryParams, config } = {}) {
1013
+ const { client: request = client, ...requestConfig } = config ?? {};
1014
+ const data = await request({
1015
+ method: "GET",
1016
+ url: `/reports/usage`,
1017
+ queryParams,
1018
+ ...requestConfig,
1019
+ headers: {
1020
+ ...requestConfig.headers
1021
+ }
1022
+ });
1023
+ return data;
1024
+ }
1025
+ /**
1026
+ * @summary Get AI Usage Report
1027
+ * @description Retrieves v0 AI usage events for the authenticated user or active team scope.
1028
+ * @link /reports/usage/ai
1029
+ */ async function reportsGetAIUsage({ queryParams, config } = {}) {
1030
+ const { client: request = client, ...requestConfig } = config ?? {};
1031
+ const data = await request({
1032
+ method: "GET",
1033
+ url: `/reports/usage/ai`,
1034
+ queryParams,
1035
+ ...requestConfig,
1036
+ headers: {
1037
+ ...requestConfig.headers
1038
+ }
1039
+ });
1040
+ return data;
1041
+ }
1042
+ /**
1043
+ * @summary Get User Activity Report
1044
+ * @description Retrieves aggregated user activity data for team members, including chat counts, message counts, and activity timestamps. Only available for Enterprise teams with OWNER or BILLING role. Shows the same data as displayed in the Usage settings for Enterprise teams.
1045
+ * @link /reports/user-activity
1046
+ */ async function reportsGetUserActivity({ queryParams, config } = {}) {
1047
+ const { client: request = client, ...requestConfig } = config ?? {};
1048
+ const data = await request({
1049
+ method: "GET",
1050
+ url: `/reports/user-activity`,
1051
+ queryParams,
1052
+ ...requestConfig,
1053
+ headers: {
1054
+ ...requestConfig.headers
1055
+ }
1056
+ });
1057
+ return data;
1058
+ }
1059
+ /**
1060
+ * @summary List MCP Servers
1061
+ * @description Retrieves all MCP servers configured for the authenticated user.
1062
+ * @link /mcp-servers
1063
+ */ async function mcpServersFind({ config } = {}) {
1064
+ const { client: request = client, ...requestConfig } = config ?? {};
1065
+ const data = await request({
1066
+ method: "GET",
1067
+ url: `/mcp-servers`,
1068
+ ...requestConfig,
1069
+ headers: {
1070
+ ...requestConfig.headers
1071
+ }
1072
+ });
1073
+ return data;
1074
+ }
1075
+ /**
1076
+ * @summary Create MCP Server
1077
+ * @description Creates a new MCP server configuration for the authenticated user. Supports OAuth, bearer token, custom headers, and unauthenticated servers.
1078
+ * @link /mcp-servers
1079
+ */ async function mcpServersCreate({ config } = {}) {
1080
+ const { client: request = client, ...requestConfig } = config ?? {};
1081
+ const data = await request({
1082
+ method: "POST",
1083
+ url: `/mcp-servers`,
1084
+ ...requestConfig,
1085
+ headers: {
1086
+ ...requestConfig.headers
1087
+ }
1088
+ });
1089
+ return data;
1090
+ }
1091
+ /**
1092
+ * @summary Get MCP Server
1093
+ * @description Retrieves the details of a specific MCP server by its ID.
1094
+ * @link /mcp-servers/{mcpServerId}
1095
+ */ async function mcpServersGetById({ pathParams, config } = {}) {
1096
+ const { client: request = client, ...requestConfig } = config ?? {};
1097
+ if (!pathParams.mcpServerId) {
1098
+ throw new Error(`Missing required path parameter: mcpServerId`);
1099
+ }
1100
+ const data = await request({
1101
+ method: "GET",
1102
+ url: `/mcp-servers/${pathParams.mcpServerId}`,
1103
+ ...requestConfig,
1104
+ headers: {
1105
+ ...requestConfig.headers
1106
+ }
1107
+ });
1108
+ return data;
1109
+ }
1110
+ /**
1111
+ * @summary Update MCP Server
1112
+ * @description Updates the configuration of an existing MCP server, including its name, URL, description, enabled status, and authentication settings.
1113
+ * @link /mcp-servers/{mcpServerId}
1114
+ */ async function mcpServersUpdate({ pathParams, config } = {}) {
1115
+ const { client: request = client, ...requestConfig } = config ?? {};
1116
+ if (!pathParams.mcpServerId) {
1117
+ throw new Error(`Missing required path parameter: mcpServerId`);
1118
+ }
1119
+ const data = await request({
1120
+ method: "PATCH",
1121
+ url: `/mcp-servers/${pathParams.mcpServerId}`,
1122
+ ...requestConfig,
1123
+ headers: {
1124
+ ...requestConfig.headers
1125
+ }
1126
+ });
1127
+ return data;
1128
+ }
1129
+ /**
1130
+ * @summary Delete MCP Server
1131
+ * @description Deletes an MCP server based on its ID. This action is irreversible and will also remove any associated OAuth tokens.
1132
+ * @link /mcp-servers/{mcpServerId}
1133
+ */ async function mcpServersDelete({ pathParams, config } = {}) {
1134
+ const { client: request = client, ...requestConfig } = config ?? {};
1135
+ if (!pathParams.mcpServerId) {
1136
+ throw new Error(`Missing required path parameter: mcpServerId`);
1137
+ }
1138
+ const data = await request({
1139
+ method: "DELETE",
1140
+ url: `/mcp-servers/${pathParams.mcpServerId}`,
1141
+ ...requestConfig,
1142
+ headers: {
1143
+ ...requestConfig.headers
1144
+ }
1145
+ });
1146
+ return data;
1147
+ }
1148
+ /**
1149
+ * @summary Create MCP Server OAuth Authorization URL
1150
+ * @description Creates an OAuth authorization URL for an OAuth MCP server. Redirect the user to the returned URL, and the Platform API OAuth callback will store the resulting tokens before redirecting to your returnUrl.
1151
+ * @link /mcp-servers/{mcpServerId}/oauth/authorize
1152
+ */ async function mcpServersCreateOAuthAuthorizationUrl({ pathParams, config } = {}) {
1153
+ const { client: request = client, ...requestConfig } = config ?? {};
1154
+ if (!pathParams.mcpServerId) {
1155
+ throw new Error(`Missing required path parameter: mcpServerId`);
1156
+ }
1157
+ const data = await request({
1158
+ method: "POST",
1159
+ url: `/mcp-servers/${pathParams.mcpServerId}/oauth/authorize`,
1160
+ ...requestConfig,
1161
+ headers: {
1162
+ ...requestConfig.headers
1163
+ }
1164
+ });
1165
+ return data;
1166
+ }
1167
+ const operationsByPath = {
1168
+ "POST /chats": chatsCreate,
1169
+ "GET /chats": chatsFind,
1170
+ "POST /chats/init": chatsInit,
1171
+ "DELETE /chats/{chatId}": chatsDelete,
1172
+ "GET /chats/{chatId}": chatsGetById,
1173
+ "PATCH /chats/{chatId}": chatsUpdate,
1174
+ "PUT /chats/{chatId}/favorite": chatsFavorite,
1175
+ "POST /chats/{chatId}/fork": chatsFork,
1176
+ "GET /chats/{chatId}/project": projectsGetByChatId,
1177
+ "GET /chats/{chatId}/messages": chatsFindMessages,
1178
+ "POST /chats/{chatId}/messages": chatsSendMessage,
1179
+ "GET /chats/{chatId}/messages/{messageId}": chatsGetMessage,
1180
+ "GET /chats/{chatId}/versions": chatsFindVersions,
1181
+ "GET /chats/{chatId}/versions/{versionId}": chatsGetVersion,
1182
+ "PATCH /chats/{chatId}/versions/{versionId}": chatsUpdateVersion,
1183
+ "GET /chats/{chatId}/versions/{versionId}/download": chatsDownloadVersion,
1184
+ "POST /chats/{chatId}/versions/{versionId}/files/delete": chatsDeleteVersionFiles,
1185
+ "POST /chats/{chatId}/messages/{messageId}/resume": chatsResume,
1186
+ "POST /chats/{chatId}/messages/{messageId}/stop": chatsStop,
1187
+ "POST /chats/{chatId}/tasks/resolve": chatsResolveTask,
1188
+ "GET /deployments": deploymentsFind,
1189
+ "POST /deployments": deploymentsCreate,
1190
+ "GET /deployments/{deploymentId}": deploymentsGetById,
1191
+ "DELETE /deployments/{deploymentId}": deploymentsDelete,
1192
+ "GET /deployments/{deploymentId}/logs": deploymentsFindLogs,
1193
+ "GET /deployments/{deploymentId}/errors": deploymentsFindErrors,
1194
+ "GET /hooks": hooksFind,
1195
+ "POST /hooks": hooksCreate,
1196
+ "GET /hooks/{hookId}": hooksGetById,
1197
+ "PATCH /hooks/{hookId}": hooksUpdate,
1198
+ "DELETE /hooks/{hookId}": hooksDelete,
1199
+ "GET /integrations/vercel/projects": integrationsVercelProjectsFind,
1200
+ "POST /integrations/vercel/projects": integrationsVercelProjectsCreate,
1201
+ "GET /projects": projectsFind,
1202
+ "POST /projects": projectsCreate,
1203
+ "GET /projects/{projectId}": projectsGetById,
1204
+ "PATCH /projects/{projectId}": projectsUpdate,
1205
+ "DELETE /projects/{projectId}": projectsDelete,
1206
+ "POST /projects/{projectId}/assign": projectsAssign,
1207
+ "GET /projects/{projectId}/env-vars": projectsFindEnvVars,
1208
+ "POST /projects/{projectId}/env-vars": projectsCreateEnvVars,
1209
+ "PATCH /projects/{projectId}/env-vars": projectsUpdateEnvVars,
1210
+ "POST /projects/{projectId}/env-vars/delete": projectsDeleteEnvVars,
1211
+ "GET /projects/{projectId}/env-vars/{environmentVariableId}": projectsGetEnvVar,
1212
+ "GET /rate-limits": rateLimitsFind,
1213
+ "GET /user": userGet,
1214
+ "GET /user/billing": userGetBilling,
1215
+ "GET /user/plan": userGetPlan,
1216
+ "GET /user/scopes": userGetScopes,
1217
+ "POST /chats/{chatId}/versions/{versionId}/restore": chatsRestore,
1218
+ "GET /reports/usage": reportsGetUsage,
1219
+ "GET /reports/usage/ai": reportsGetAIUsage,
1220
+ "GET /reports/user-activity": reportsGetUserActivity,
1221
+ "GET /mcp-servers": mcpServersFind,
1222
+ "POST /mcp-servers": mcpServersCreate,
1223
+ "GET /mcp-servers/{mcpServerId}": mcpServersGetById,
1224
+ "PATCH /mcp-servers/{mcpServerId}": mcpServersUpdate,
1225
+ "DELETE /mcp-servers/{mcpServerId}": mcpServersDelete,
1226
+ "POST /mcp-servers/{mcpServerId}/oauth/authorize": mcpServersCreateOAuthAuthorizationUrl
1227
+ };
1228
+ const operationsByTag = {
1229
+ "chats": {
1230
+ chatsCreate,
1231
+ chatsFind,
1232
+ chatsInit,
1233
+ chatsDelete,
1234
+ chatsGetById,
1235
+ chatsUpdate,
1236
+ chatsFavorite,
1237
+ chatsFork,
1238
+ chatsFindMessages,
1239
+ chatsSendMessage,
1240
+ chatsGetMessage,
1241
+ chatsFindVersions,
1242
+ chatsGetVersion,
1243
+ chatsUpdateVersion,
1244
+ chatsDownloadVersion,
1245
+ chatsDeleteVersionFiles,
1246
+ chatsResume,
1247
+ chatsStop,
1248
+ chatsResolveTask,
1249
+ chatsRestore
1250
+ },
1251
+ "projects": {
1252
+ projectsGetByChatId,
1253
+ projectsFind,
1254
+ projectsCreate,
1255
+ projectsGetById,
1256
+ projectsUpdate,
1257
+ projectsDelete,
1258
+ projectsAssign,
1259
+ projectsFindEnvVars,
1260
+ projectsCreateEnvVars,
1261
+ projectsUpdateEnvVars,
1262
+ projectsDeleteEnvVars,
1263
+ projectsGetEnvVar
1264
+ },
1265
+ "deployments": {
1266
+ deploymentsFind,
1267
+ deploymentsCreate,
1268
+ deploymentsGetById,
1269
+ deploymentsDelete,
1270
+ deploymentsFindLogs,
1271
+ deploymentsFindErrors
1272
+ },
1273
+ "hooks": {
1274
+ hooksFind,
1275
+ hooksCreate,
1276
+ hooksGetById,
1277
+ hooksUpdate,
1278
+ hooksDelete
1279
+ },
1280
+ "integrations": {
1281
+ integrationsVercelProjectsFind,
1282
+ integrationsVercelProjectsCreate
1283
+ },
1284
+ "ratelimits": {
1285
+ rateLimitsFind
1286
+ },
1287
+ "user": {
1288
+ userGet,
1289
+ userGetBilling,
1290
+ userGetPlan,
1291
+ userGetScopes
1292
+ },
1293
+ "reports": {
1294
+ reportsGetUsage,
1295
+ reportsGetAIUsage,
1296
+ reportsGetUserActivity
1297
+ },
1298
+ "mcpservers": {
1299
+ mcpServersFind,
1300
+ mcpServersCreate,
1301
+ mcpServersGetById,
1302
+ mcpServersUpdate,
1303
+ mcpServersDelete,
1304
+ mcpServersCreateOAuthAuthorizationUrl
1305
+ }
1306
+ };
1307
+ const tagDictionary = {
1308
+ "chats": {
1309
+ "POST": [
1310
+ "chatsCreate",
1311
+ "chatsInit",
1312
+ "chatsFork",
1313
+ "chatsSendMessage",
1314
+ "chatsDeleteVersionFiles",
1315
+ "chatsResume",
1316
+ "chatsStop",
1317
+ "chatsResolveTask",
1318
+ "chatsRestore"
1319
+ ],
1320
+ "GET": [
1321
+ "chatsFind",
1322
+ "chatsGetById",
1323
+ "chatsFindMessages",
1324
+ "chatsGetMessage",
1325
+ "chatsFindVersions",
1326
+ "chatsGetVersion",
1327
+ "chatsDownloadVersion"
1328
+ ],
1329
+ "DELETE": [
1330
+ "chatsDelete"
1331
+ ],
1332
+ "PATCH": [
1333
+ "chatsUpdate",
1334
+ "chatsUpdateVersion"
1335
+ ],
1336
+ "PUT": [
1337
+ "chatsFavorite"
1338
+ ]
1339
+ },
1340
+ "projects": {
1341
+ "GET": [
1342
+ "projectsGetByChatId",
1343
+ "projectsFind",
1344
+ "projectsGetById",
1345
+ "projectsFindEnvVars",
1346
+ "projectsGetEnvVar"
1347
+ ],
1348
+ "POST": [
1349
+ "projectsCreate",
1350
+ "projectsAssign",
1351
+ "projectsCreateEnvVars",
1352
+ "projectsDeleteEnvVars"
1353
+ ],
1354
+ "PATCH": [
1355
+ "projectsUpdate",
1356
+ "projectsUpdateEnvVars"
1357
+ ],
1358
+ "DELETE": [
1359
+ "projectsDelete"
1360
+ ]
1361
+ },
1362
+ "deployments": {
1363
+ "GET": [
1364
+ "deploymentsFind",
1365
+ "deploymentsGetById",
1366
+ "deploymentsFindLogs",
1367
+ "deploymentsFindErrors"
1368
+ ],
1369
+ "POST": [
1370
+ "deploymentsCreate"
1371
+ ],
1372
+ "DELETE": [
1373
+ "deploymentsDelete"
1374
+ ]
1375
+ },
1376
+ "hooks": {
1377
+ "GET": [
1378
+ "hooksFind",
1379
+ "hooksGetById"
1380
+ ],
1381
+ "POST": [
1382
+ "hooksCreate"
1383
+ ],
1384
+ "PATCH": [
1385
+ "hooksUpdate"
1386
+ ],
1387
+ "DELETE": [
1388
+ "hooksDelete"
1389
+ ]
1390
+ },
1391
+ "integrations": {
1392
+ "GET": [
1393
+ "integrationsVercelProjectsFind"
1394
+ ],
1395
+ "POST": [
1396
+ "integrationsVercelProjectsCreate"
1397
+ ]
1398
+ },
1399
+ "ratelimits": {
1400
+ "GET": [
1401
+ "rateLimitsFind"
1402
+ ]
1403
+ },
1404
+ "user": {
1405
+ "GET": [
1406
+ "userGet",
1407
+ "userGetBilling",
1408
+ "userGetPlan",
1409
+ "userGetScopes"
1410
+ ]
1411
+ },
1412
+ "reports": {
1413
+ "GET": [
1414
+ "reportsGetUsage",
1415
+ "reportsGetAIUsage",
1416
+ "reportsGetUserActivity"
1417
+ ]
1418
+ },
1419
+ "mcpservers": {
1420
+ "GET": [
1421
+ "mcpServersFind",
1422
+ "mcpServersGetById"
1423
+ ],
1424
+ "POST": [
1425
+ "mcpServersCreate",
1426
+ "mcpServersCreateOAuthAuthorizationUrl"
1427
+ ],
1428
+ "PATCH": [
1429
+ "mcpServersUpdate"
1430
+ ],
1431
+ "DELETE": [
1432
+ "mcpServersDelete"
1433
+ ]
1434
+ }
1435
+ };
1436
+
1437
+ class V0Api {
1438
+ constructor(options){
1439
+ this.token = options.token;
1440
+ this.fetch = options.fetch || fetch;
1441
+ if (!this.fetch) throw new Error("Fetch is required");
1442
+ }
1443
+ get api() {
1444
+ const getConfig = async ()=>({
1445
+ token: this.token,
1446
+ fetchImpl: this.fetch
1447
+ });
1448
+ return new Proxy({}, {
1449
+ get: (_target, namespace)=>{
1450
+ if (operationsByTag[namespace] === undefined) {
1451
+ return undefined;
1452
+ }
1453
+ return new Proxy({}, {
1454
+ get: (_target, operation)=>{
1455
+ if (operationsByTag[namespace][operation] === undefined) {
1456
+ return undefined;
1457
+ }
1458
+ const method = operationsByTag[namespace][operation];
1459
+ return async (params)=>{
1460
+ return await method({
1461
+ ...params,
1462
+ config: await getConfig()
1463
+ });
1464
+ };
1465
+ }
1466
+ });
1467
+ }
1468
+ });
1469
+ }
1470
+ async request(endpoint, params) {
1471
+ const [method = "", url = ""] = endpoint.split(" ");
1472
+ const extraParams = params || {};
1473
+ const result = await client({
1474
+ ...extraParams,
1475
+ method,
1476
+ url,
1477
+ token: this.token,
1478
+ fetchImpl: this.fetch
1479
+ });
1480
+ return result;
1481
+ }
1482
+ }
1483
+
1484
+ // @ts-nocheck
1485
+ const chatDetailSchema = z.object({
1486
+ "id": z.string().describe("A unique identifier for the chat."),
1487
+ "object": z.enum([
1488
+ "chat"
1489
+ ]).describe("Fixed value identifying this object as a chat."),
1490
+ "shareable": z.boolean().describe("Indicates whether the chat can be shared via public link."),
1491
+ "privacy": z.enum([
1492
+ "private",
1493
+ "public",
1494
+ "team",
1495
+ "team-edit",
1496
+ "unlisted"
1497
+ ]).describe("Defines the visibility of the chat—private, team-only, or public."),
1498
+ "name": z.string().optional().describe("An optional name assigned to the chat by the user."),
1499
+ "title": z.string().optional().describe("Deprecated title field preserved for backward compatibility."),
1500
+ "createdAt": z.iso.datetime().describe("The ISO timestamp representing when the chat was created."),
1501
+ "updatedAt": z.string().optional().describe("The ISO timestamp of the last update to the chat."),
1502
+ "favorite": z.boolean().describe("Indicates whether the chat is marked as a favorite."),
1503
+ "authorId": z.string().describe("The ID of the user who created the chat."),
1504
+ "projectId": z.string().optional().describe("Optional ID of the v0 project associated with this chat."),
1505
+ "vercelProjectId": z.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
1506
+ "webUrl": z.string().describe("Web URL to view this chat in the browser."),
1507
+ "apiUrl": z.string().describe("API URL to access this chat via the API."),
1508
+ "latestVersion": z.object({
1509
+ "id": z.string().describe("A unique identifier for the version."),
1510
+ "object": z.enum([
1511
+ "version"
1512
+ ]).describe("Fixed value identifying this object as a version."),
1513
+ "status": z.enum([
1514
+ "completed",
1515
+ "failed",
1516
+ "pending"
1517
+ ]).describe("The current status of the version generation process."),
1518
+ "demoUrl": z.string().optional().describe("Optional URL for previewing the generated output."),
1519
+ "screenshotUrl": z.string().optional().describe("URL to retrieve a screenshot of this version."),
1520
+ "createdAt": z.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
1521
+ "updatedAt": z.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format."),
1522
+ "files": z.array(z.object({
1523
+ "object": z.enum([
1524
+ "file"
1525
+ ]).describe("Fixed value identifying this object as a file."),
1526
+ "name": z.string().describe("The name of the file, including its extension."),
1527
+ "content": z.string().describe("The full contents of the file as a raw string."),
1528
+ "locked": z.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
1529
+ }).strict()).describe("A list of files that were generated or included in this version.")
1530
+ }).strict().optional().describe("Full details of the most recent generated version, if available."),
1531
+ "url": z.string().describe("The canonical URL to access this chat."),
1532
+ "messages": z.array(z.object({
1533
+ "id": z.string().describe("A unique identifier for the message."),
1534
+ "object": z.enum([
1535
+ "message"
1536
+ ]).describe("Fixed value identifying this object as a message."),
1537
+ "content": z.string().describe("The main text content of the message."),
1538
+ "experimentalContent": z.array(z.union([
1539
+ z.tuple([
1540
+ z.enum([
1541
+ 0
1542
+ ]),
1543
+ z.array(z.string())
1544
+ ]),
1545
+ z.tuple([
1546
+ z.enum([
1547
+ 1
1548
+ ]),
1549
+ z.object({
1550
+ "toJSONSchema": z.string(),
1551
+ "def": z.string(),
1552
+ "type": z.string(),
1553
+ "check": z.string(),
1554
+ "with": z.string(),
1555
+ "clone": z.string(),
1556
+ "brand": z.string(),
1557
+ "register": z.string(),
1558
+ "parse": z.string(),
1559
+ "safeParse": z.string(),
1560
+ "parseAsync": z.string(),
1561
+ "safeParseAsync": z.string(),
1562
+ "spa": z.string(),
1563
+ "encode": z.string(),
1564
+ "decode": z.string(),
1565
+ "encodeAsync": z.string(),
1566
+ "decodeAsync": z.string(),
1567
+ "safeEncode": z.string(),
1568
+ "safeDecode": z.string(),
1569
+ "safeEncodeAsync": z.string(),
1570
+ "safeDecodeAsync": z.string(),
1571
+ "refine": z.string(),
1572
+ "superRefine": z.string(),
1573
+ "overwrite": z.string(),
1574
+ "optional": z.string(),
1575
+ "exactOptional": z.string(),
1576
+ "nullable": z.string(),
1577
+ "nullish": z.string(),
1578
+ "nonoptional": z.string(),
1579
+ "array": z.string(),
1580
+ "or": z.string(),
1581
+ "and": z.string(),
1582
+ "transform": z.string(),
1583
+ "default": z.string(),
1584
+ "prefault": z.string(),
1585
+ "catch": z.string(),
1586
+ "pipe": z.string(),
1587
+ "readonly": z.string(),
1588
+ "describe": z.string(),
1589
+ "meta": z.string(),
1590
+ "isOptional": z.string(),
1591
+ "isNullable": z.string(),
1592
+ "apply": z.string(),
1593
+ "keyof": z.string(),
1594
+ "catchall": z.string(),
1595
+ "passthrough": z.string(),
1596
+ "loose": z.string(),
1597
+ "strict": z.string(),
1598
+ "strip": z.string(),
1599
+ "extend": z.string(),
1600
+ "safeExtend": z.string(),
1601
+ "merge": z.string(),
1602
+ "pick": z.string(),
1603
+ "omit": z.string(),
1604
+ "partial": z.string(),
1605
+ "required": z.string()
1606
+ }).strict()
1607
+ ])
1608
+ ])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
1609
+ "createdAt": z.string().describe("The ISO timestamp representing when the message was created."),
1610
+ "updatedAt": z.iso.datetime().optional().describe("The ISO timestamp representing when the message was last updated."),
1611
+ "type": z.enum([
1612
+ "added-environment-variables",
1613
+ "added-integration",
1614
+ "answered-questions",
1615
+ "auto-fix-with-v0",
1616
+ "cloned-repo",
1617
+ "deleted-file",
1618
+ "design-mode",
1619
+ "edited-file",
1620
+ "fix-cve",
1621
+ "fix-with-v0",
1622
+ "forked-block",
1623
+ "forked-chat",
1624
+ "manual-commit",
1625
+ "message",
1626
+ "moved-file",
1627
+ "open-in-v0",
1628
+ "pull-changes",
1629
+ "refinement",
1630
+ "renamed-file",
1631
+ "replace-src",
1632
+ "reverted-block",
1633
+ "sync-git"
1634
+ ]).describe("Indicates the format or category of the message, such as plain text or code."),
1635
+ "role": z.enum([
1636
+ "assistant",
1637
+ "user"
1638
+ ]).describe("Specifies whether the message was sent by the user or the assistant."),
1639
+ "finishReason": z.enum([
1640
+ "content-filter",
1641
+ "error",
1642
+ "length",
1643
+ "other",
1644
+ "stop",
1645
+ "tool-calls"
1646
+ ]).optional().describe("The reason why the message generation finished."),
1647
+ "apiUrl": z.string().describe("API URL to access this message via the API."),
1648
+ "authorId": z.null().describe("The ID of the user who sent the message."),
1649
+ "parentId": z.null().optional().describe("The ID of the parent message."),
1650
+ "attachments": z.array(z.object({
1651
+ "url": z.string().describe("The URL where the attachment file can be accessed."),
1652
+ "name": z.string().optional().describe("The original filename of the attachment."),
1653
+ "contentType": z.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
1654
+ "size": z.number().describe("The size of the attachment file in bytes."),
1655
+ "content": z.string().optional().describe("The base64-encoded content of the attachment file, if available."),
1656
+ "type": z.enum([
1657
+ "figma",
1658
+ "screenshot",
1659
+ "zip"
1660
+ ]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
1661
+ }).strict()).optional()
1662
+ }).strict()).describe("All messages exchanged in the chat, including user and assistant entries."),
1663
+ "files": z.array(z.object({
1664
+ "lang": z.string().describe("Programming language used in the file (e.g., JavaScript, Python)."),
1665
+ "meta": z.object({}).catchall(z.string()).describe("A key-value map of metadata associated with the file (e.g., path, type)."),
1666
+ "source": z.string().describe("The origin or identifier of the file source (e.g., path or upload label).")
1667
+ }).strict()).optional().describe("Optional array of files associated with the chat context."),
1668
+ "demo": z.string().optional().describe("Deprecated demo URL used for previewing the chat result."),
1669
+ "text": z.string().describe("The main user prompt or instruction that started the chat."),
1670
+ "modelConfiguration": z.object({
1671
+ "modelId": z.enum([
1672
+ "v0-auto",
1673
+ "v0-max",
1674
+ "v0-max-fast",
1675
+ "v0-mini",
1676
+ "v0-opus-4.7",
1677
+ "v0-opus-4.7-fast",
1678
+ "v0-pro"
1679
+ ]).optional().default("v0-pro").describe("Model to use for the generation. `v0-auto` is deprecated and falls back to `v0-pro`."),
1680
+ "imageGenerations": z.boolean().optional().default(false).describe("Enables image generations to generate up to 5 images per version."),
1681
+ "thinking": z.boolean().optional().default(false).describe("Enables thinking to generate a response in multiple steps.")
1682
+ }).strict().optional().describe("The configuration used to generate responses in this chat."),
1683
+ "permissions": z.object({
1684
+ "write": z.boolean().describe("If true, the user has write access to the chat.")
1685
+ }).strict(),
1686
+ "metadata": z.object({}).catchall(z.string()).describe("Arbitrary key-value data associated with this chat.")
1687
+ }).strict().describe("Detailed representation of a chat, including its messages, files, versions, and model configuration.");
1688
+ const chatSummarySchema = z.object({
1689
+ "id": z.string().describe("A unique identifier for the chat."),
1690
+ "object": z.enum([
1691
+ "chat"
1692
+ ]).describe("Fixed value identifying this object as a chat."),
1693
+ "shareable": z.boolean().describe("Indicates whether the chat can be shared via public link."),
1694
+ "privacy": z.enum([
1695
+ "private",
1696
+ "public",
1697
+ "team",
1698
+ "team-edit",
1699
+ "unlisted"
1700
+ ]).describe("Defines the visibility of the chat—private, team-only, or public."),
1701
+ "name": z.string().optional().describe("An optional name assigned to the chat by the user."),
1702
+ "title": z.string().optional().describe("Deprecated title field preserved for backward compatibility."),
1703
+ "createdAt": z.iso.datetime().describe("The ISO timestamp representing when the chat was created."),
1704
+ "updatedAt": z.string().optional().describe("The ISO timestamp of the last update to the chat."),
1705
+ "favorite": z.boolean().describe("Indicates whether the chat is marked as a favorite."),
1706
+ "authorId": z.string().describe("The ID of the user who created the chat."),
1707
+ "projectId": z.string().optional().describe("Optional ID of the v0 project associated with this chat."),
1708
+ "vercelProjectId": z.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
1709
+ "webUrl": z.string().describe("Web URL to view this chat in the browser."),
1710
+ "apiUrl": z.string().describe("API URL to access this chat via the API."),
1711
+ "latestVersion": z.object({
1712
+ "id": z.string().describe("A unique identifier for the version."),
1713
+ "object": z.enum([
1714
+ "version"
1715
+ ]).describe("Fixed value identifying this object as a version."),
1716
+ "status": z.enum([
1717
+ "completed",
1718
+ "failed",
1719
+ "pending"
1720
+ ]).describe("The current status of the version generation process."),
1721
+ "demoUrl": z.string().optional().describe("Optional URL for previewing the generated output."),
1722
+ "screenshotUrl": z.string().optional().describe("URL to retrieve a screenshot of this version."),
1723
+ "createdAt": z.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
1724
+ "updatedAt": z.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
1725
+ }).strict().optional().describe("The most recent generated version of the chat, if available.")
1726
+ }).strict().describe("Summary of a chat, including metadata like privacy, author, latest version, and URLs.");
1727
+ const deploymentDetailSchema = z.object({
1728
+ "id": z.string().describe("A unique identifier for the deployment."),
1729
+ "object": z.enum([
1730
+ "deployment"
1731
+ ]).describe("Fixed value identifying this object as a deployment."),
1732
+ "inspectorUrl": z.string().describe("URL to the deployment inspector."),
1733
+ "chatId": z.string().describe("The ID of the chat that this deployment is scoped to."),
1734
+ "projectId": z.string().optional().describe("The ID of the project that this deployment is scoped to."),
1735
+ "versionId": z.string().describe("The ID of the version that this deployment is scoped to."),
1736
+ "apiUrl": z.url().describe("The API endpoint URL for accessing this deployment programmatically."),
1737
+ "webUrl": z.url().describe("The web URL where the deployment can be viewed or managed.")
1738
+ }).strict();
1739
+ const deploymentSummarySchema = z.object({
1740
+ "id": z.string().describe("A unique identifier for the deployment."),
1741
+ "object": z.enum([
1742
+ "deployment"
1743
+ ]).describe("Fixed value identifying this object as a deployment."),
1744
+ "inspectorUrl": z.string().describe("URL to the deployment inspector."),
1745
+ "chatId": z.string().describe("The ID of the chat that this deployment is scoped to."),
1746
+ "projectId": z.string().optional().describe("The ID of the project that this deployment is scoped to."),
1747
+ "versionId": z.string().describe("The ID of the version that this deployment is scoped to."),
1748
+ "apiUrl": z.url().describe("The API endpoint URL for accessing this deployment programmatically."),
1749
+ "webUrl": z.url().describe("The web URL where the deployment can be viewed or managed.")
1750
+ }).strict();
1751
+ const environmentVariableDetailSchemaSchema = z.object({
1752
+ "id": z.string().describe("A unique identifier for the environment variable."),
1753
+ "object": z.enum([
1754
+ "environment_variable"
1755
+ ]).describe("The object type."),
1756
+ "key": z.string().describe("The name of the environment variable."),
1757
+ "value": z.string().describe("The value of the environment variable."),
1758
+ "decrypted": z.boolean().describe("Whether the value is decrypted or encrypted."),
1759
+ "createdAt": z.number().describe("The timestamp when the environment variable was created."),
1760
+ "updatedAt": z.number().optional().describe("The timestamp when the environment variable was last updated.")
1761
+ }).strict().describe("Detailed information for an environment variable including its value.");
1762
+ const environmentVariableSummarySchemaSchema = z.object({
1763
+ "id": z.string().describe("A unique identifier for the environment variable."),
1764
+ "object": z.enum([
1765
+ "environment_variable"
1766
+ ]).describe("The object type."),
1767
+ "key": z.string().describe("The name of the environment variable."),
1768
+ "value": z.string().describe("The value of the environment variable."),
1769
+ "decrypted": z.boolean().describe("Whether the value is decrypted or encrypted."),
1770
+ "createdAt": z.number().describe("The timestamp when the environment variable was created."),
1771
+ "updatedAt": z.number().optional().describe("The timestamp when the environment variable was last updated.")
1772
+ }).strict().describe("Summary information for an environment variable.");
1773
+ const environmentVariablesListSchemaSchema = z.object({
1774
+ "object": z.enum([
1775
+ "list"
1776
+ ]).describe("Fixed value identifying this as a list response."),
1777
+ "data": z.array(z.object({
1778
+ "id": z.string().describe("A unique identifier for the environment variable."),
1779
+ "object": z.enum([
1780
+ "environment_variable"
1781
+ ]).describe("The object type."),
1782
+ "key": z.string().describe("The name of the environment variable."),
1783
+ "value": z.string().describe("The value of the environment variable."),
1784
+ "decrypted": z.boolean().describe("Whether the value is decrypted or encrypted."),
1785
+ "createdAt": z.number().describe("The timestamp when the environment variable was created."),
1786
+ "updatedAt": z.number().optional().describe("The timestamp when the environment variable was last updated.")
1787
+ }).strict()).describe("Array of environment variable details.")
1788
+ }).strict().describe("List response containing environment variables.");
1789
+ const fileDetailSchema = z.object({
1790
+ "object": z.enum([
1791
+ "file"
1792
+ ]).describe("Fixed value identifying this object as a file."),
1793
+ "name": z.string().describe("The name of the file, including its extension."),
1794
+ "content": z.string().describe("The full contents of the file as a raw string."),
1795
+ "locked": z.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
1796
+ }).strict().describe("Detailed representation of a file, including its content and lock status.");
1797
+ const fileSummarySchema = z.object({
1798
+ "object": z.enum([
1799
+ "file"
1800
+ ]).describe("Fixed value identifying this object as a file."),
1801
+ "name": z.string().describe("The name of the file, including its extension.")
1802
+ }).strict().describe("Basic metadata about a file, such as its type and name.");
1803
+ const hookDetailSchema = z.object({
1804
+ "id": z.string().describe("A unique identifier for the webhook."),
1805
+ "object": z.enum([
1806
+ "hook"
1807
+ ]).describe("Fixed value identifying this object as a webhook."),
1808
+ "name": z.string().describe("A user-defined name to label the webhook."),
1809
+ "events": z.array(z.enum([
1810
+ "chat.created",
1811
+ "chat.deleted",
1812
+ "chat.updated",
1813
+ "message.created",
1814
+ "message.deleted",
1815
+ "message.finished",
1816
+ "message.updated"
1817
+ ])).describe("List of event types this webhook is subscribed to."),
1818
+ "chatId": z.string().optional().describe("Optional ID of the chat that this webhook is scoped to."),
1819
+ "url": z.string().describe("Target URL that receives event payloads for this webhook.")
1820
+ }).strict().describe("Full configuration details for a webhook, including its scope and subscription.");
1821
+ const hookEventDetailSchema = z.object({
1822
+ "id": z.string().describe("A unique identifier for the webhook event log entry."),
1823
+ "object": z.enum([
1824
+ "hook_event"
1825
+ ]).describe("Fixed value identifying this object as a webhook event."),
1826
+ "event": z.enum([
1827
+ "chat.created",
1828
+ "chat.deleted",
1829
+ "chat.updated",
1830
+ "message.created",
1831
+ "message.deleted",
1832
+ "message.finished",
1833
+ "message.updated"
1834
+ ]).describe("The type of event that triggered the webhook."),
1835
+ "status": z.enum([
1836
+ "error",
1837
+ "pending",
1838
+ "success"
1839
+ ]).optional().default("pending").describe("The delivery status of the webhook (e.g., delivered, failed)."),
1840
+ "createdAt": z.iso.datetime().describe("Timestamp of when the webhook event was triggered.")
1841
+ }).strict().describe("Detailed record of a webhook event, including its type, status, and timestamp.");
1842
+ const hookSummarySchema = z.object({
1843
+ "id": z.string().describe("A unique identifier for the webhook."),
1844
+ "object": z.enum([
1845
+ "hook"
1846
+ ]).describe("Fixed value identifying this object as a webhook."),
1847
+ "name": z.string().describe("A user-defined name to label the webhook.")
1848
+ }).strict().describe("Summary of a webhook, including its ID and display name.");
1849
+ const integrationConnectionDetailSchemaSchema = z.object({
1850
+ "object": z.enum([
1851
+ "integration_connection"
1852
+ ]).describe("The object type."),
1853
+ "id": z.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
1854
+ "connected": z.boolean().describe("Whether the integration is connected to the project."),
1855
+ "integration": z.object({
1856
+ "id": z.string().describe("The ID of the integration."),
1857
+ "object": z.enum([
1858
+ "integration"
1859
+ ]).describe("The object type."),
1860
+ "slug": z.string().describe("The slug of the integration."),
1861
+ "name": z.string().describe("The name of the integration.")
1862
+ }).strict().describe("Information about the connected integration."),
1863
+ "metadata": z.object({}).catchall(z.unknown()).optional().describe("Additional metadata about the integration connection.")
1864
+ }).strict().describe("Detailed information about an integration connection to a project.");
1865
+ const integrationConnectionListSchemaSchema = z.object({
1866
+ "object": z.enum([
1867
+ "list"
1868
+ ]).describe("Fixed value identifying this as a list response."),
1869
+ "data": z.array(z.object({
1870
+ "object": z.enum([
1871
+ "integration_connection"
1872
+ ]).describe("The object type."),
1873
+ "id": z.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
1874
+ "connected": z.boolean().describe("Whether the integration is connected to the project."),
1875
+ "integration": z.object({
1876
+ "id": z.string().describe("The ID of the integration."),
1877
+ "object": z.enum([
1878
+ "integration"
1879
+ ]).describe("The object type."),
1880
+ "slug": z.string().describe("The slug of the integration."),
1881
+ "name": z.string().describe("The name of the integration.")
1882
+ }).strict().describe("Information about the connected integration.")
1883
+ }).strict()).describe("Array of integration connection summaries.")
1884
+ }).strict().describe("List response containing integration connections.");
1885
+ const integrationConnectionSummarySchemaSchema = z.object({
1886
+ "object": z.enum([
1887
+ "integration_connection"
1888
+ ]).describe("The object type."),
1889
+ "id": z.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
1890
+ "connected": z.boolean().describe("Whether the integration is connected to the project."),
1891
+ "integration": z.object({
1892
+ "id": z.string().describe("The ID of the integration."),
1893
+ "object": z.enum([
1894
+ "integration"
1895
+ ]).describe("The object type."),
1896
+ "slug": z.string().describe("The slug of the integration."),
1897
+ "name": z.string().describe("The name of the integration.")
1898
+ }).strict().describe("Information about the connected integration.")
1899
+ }).strict().describe("Summary information about an integration connection to a project.");
1900
+ const integrationDetailSchemaSchema = z.object({
1901
+ "id": z.string().describe("The ID of the integration."),
1902
+ "object": z.enum([
1903
+ "integration"
1904
+ ]).describe("The object type."),
1905
+ "slug": z.string().describe("The slug of the integration."),
1906
+ "name": z.string().describe("The name of the integration."),
1907
+ "description": z.string().describe("A short description of the integration."),
1908
+ "iconUrl": z.string().describe("URL to the integration icon.")
1909
+ }).strict().describe("Detailed information about an integration.");
1910
+ const integrationListSchemaSchema = z.object({
1911
+ "object": z.enum([
1912
+ "list"
1913
+ ]).describe("Fixed value identifying this as a list response."),
1914
+ "data": z.array(z.object({
1915
+ "id": z.string().describe("The ID of the integration."),
1916
+ "object": z.enum([
1917
+ "integration"
1918
+ ]).describe("The object type."),
1919
+ "slug": z.string().describe("The slug of the integration."),
1920
+ "name": z.string().describe("The name of the integration."),
1921
+ "description": z.string().describe("A short description of the integration."),
1922
+ "iconUrl": z.string().describe("URL to the integration icon.")
1923
+ }).strict()).describe("Array of integration details.")
1924
+ }).strict().describe("List of available integrations.");
1925
+ const integrationSummarySchemaSchema = z.object({
1926
+ "id": z.string().describe("The ID of the integration."),
1927
+ "object": z.enum([
1928
+ "integration"
1929
+ ]).describe("The object type."),
1930
+ "slug": z.string().describe("The slug of the integration."),
1931
+ "name": z.string().describe("The name of the integration.")
1932
+ }).strict().describe("Basic information about an integration.");
1933
+ const messageDetailSchema = z.object({
1934
+ "id": z.string().describe("A unique identifier for the message."),
1935
+ "object": z.enum([
1936
+ "message"
1937
+ ]).describe("Fixed value identifying this object as a message."),
1938
+ "content": z.string().describe("The main text content of the message."),
1939
+ "experimentalContent": z.array(z.union([
1940
+ z.tuple([
1941
+ z.enum([
1942
+ 0
1943
+ ]),
1944
+ z.array(z.string())
1945
+ ]),
1946
+ z.tuple([
1947
+ z.enum([
1948
+ 1
1949
+ ]),
1950
+ z.object({
1951
+ "toJSONSchema": z.string(),
1952
+ "def": z.string(),
1953
+ "type": z.string(),
1954
+ "check": z.string(),
1955
+ "with": z.string(),
1956
+ "clone": z.string(),
1957
+ "brand": z.string(),
1958
+ "register": z.string(),
1959
+ "parse": z.string(),
1960
+ "safeParse": z.string(),
1961
+ "parseAsync": z.string(),
1962
+ "safeParseAsync": z.string(),
1963
+ "spa": z.string(),
1964
+ "encode": z.string(),
1965
+ "decode": z.string(),
1966
+ "encodeAsync": z.string(),
1967
+ "decodeAsync": z.string(),
1968
+ "safeEncode": z.string(),
1969
+ "safeDecode": z.string(),
1970
+ "safeEncodeAsync": z.string(),
1971
+ "safeDecodeAsync": z.string(),
1972
+ "refine": z.string(),
1973
+ "superRefine": z.string(),
1974
+ "overwrite": z.string(),
1975
+ "optional": z.string(),
1976
+ "exactOptional": z.string(),
1977
+ "nullable": z.string(),
1978
+ "nullish": z.string(),
1979
+ "nonoptional": z.string(),
1980
+ "array": z.string(),
1981
+ "or": z.string(),
1982
+ "and": z.string(),
1983
+ "transform": z.string(),
1984
+ "default": z.string(),
1985
+ "prefault": z.string(),
1986
+ "catch": z.string(),
1987
+ "pipe": z.string(),
1988
+ "readonly": z.string(),
1989
+ "describe": z.string(),
1990
+ "meta": z.string(),
1991
+ "isOptional": z.string(),
1992
+ "isNullable": z.string(),
1993
+ "apply": z.string(),
1994
+ "keyof": z.string(),
1995
+ "catchall": z.string(),
1996
+ "passthrough": z.string(),
1997
+ "loose": z.string(),
1998
+ "strict": z.string(),
1999
+ "strip": z.string(),
2000
+ "extend": z.string(),
2001
+ "safeExtend": z.string(),
2002
+ "merge": z.string(),
2003
+ "pick": z.string(),
2004
+ "omit": z.string(),
2005
+ "partial": z.string(),
2006
+ "required": z.string()
2007
+ }).strict()
2008
+ ])
2009
+ ])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
2010
+ "createdAt": z.string().describe("The ISO timestamp representing when the message was created."),
2011
+ "updatedAt": z.iso.datetime().optional().describe("The ISO timestamp representing when the message was last updated."),
2012
+ "type": z.enum([
2013
+ "added-environment-variables",
2014
+ "added-integration",
2015
+ "answered-questions",
2016
+ "auto-fix-with-v0",
2017
+ "cloned-repo",
2018
+ "deleted-file",
2019
+ "design-mode",
2020
+ "edited-file",
2021
+ "fix-cve",
2022
+ "fix-with-v0",
2023
+ "forked-block",
2024
+ "forked-chat",
2025
+ "manual-commit",
2026
+ "message",
2027
+ "moved-file",
2028
+ "open-in-v0",
2029
+ "pull-changes",
2030
+ "refinement",
2031
+ "renamed-file",
2032
+ "replace-src",
2033
+ "reverted-block",
2034
+ "sync-git"
2035
+ ]).describe("Indicates the format or category of the message, such as plain text or code."),
2036
+ "role": z.enum([
2037
+ "assistant",
2038
+ "user"
2039
+ ]).describe("Specifies whether the message was sent by the user or the assistant."),
2040
+ "finishReason": z.enum([
2041
+ "content-filter",
2042
+ "error",
2043
+ "length",
2044
+ "other",
2045
+ "stop",
2046
+ "tool-calls"
2047
+ ]).optional().describe("The reason why the message generation finished."),
2048
+ "apiUrl": z.string().describe("API URL to access this message via the API."),
2049
+ "authorId": z.null().describe("The ID of the user who sent the message."),
2050
+ "parentId": z.null().optional().describe("The ID of the parent message."),
2051
+ "attachments": z.array(z.object({
2052
+ "url": z.string().describe("The URL where the attachment file can be accessed."),
2053
+ "name": z.string().optional().describe("The original filename of the attachment."),
2054
+ "contentType": z.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
2055
+ "size": z.number().describe("The size of the attachment file in bytes."),
2056
+ "content": z.string().optional().describe("The base64-encoded content of the attachment file, if available."),
2057
+ "type": z.enum([
2058
+ "figma",
2059
+ "screenshot",
2060
+ "zip"
2061
+ ]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
2062
+ }).strict()).optional(),
2063
+ "chatId": z.string().describe("The ID of the chat to which this message belongs.")
2064
+ }).strict().describe("Detailed message object extending MessageSummary with chat metadata.");
2065
+ const messageSummarySchema = z.object({
2066
+ "id": z.string().describe("A unique identifier for the message."),
2067
+ "object": z.enum([
2068
+ "message"
2069
+ ]).describe("Fixed value identifying this object as a message."),
2070
+ "content": z.string().describe("The main text content of the message."),
2071
+ "experimentalContent": z.array(z.union([
2072
+ z.tuple([
2073
+ z.enum([
2074
+ 0
2075
+ ]),
2076
+ z.array(z.string())
2077
+ ]),
2078
+ z.tuple([
2079
+ z.enum([
2080
+ 1
2081
+ ]),
2082
+ z.object({
2083
+ "toJSONSchema": z.string(),
2084
+ "def": z.string(),
2085
+ "type": z.string(),
2086
+ "check": z.string(),
2087
+ "with": z.string(),
2088
+ "clone": z.string(),
2089
+ "brand": z.string(),
2090
+ "register": z.string(),
2091
+ "parse": z.string(),
2092
+ "safeParse": z.string(),
2093
+ "parseAsync": z.string(),
2094
+ "safeParseAsync": z.string(),
2095
+ "spa": z.string(),
2096
+ "encode": z.string(),
2097
+ "decode": z.string(),
2098
+ "encodeAsync": z.string(),
2099
+ "decodeAsync": z.string(),
2100
+ "safeEncode": z.string(),
2101
+ "safeDecode": z.string(),
2102
+ "safeEncodeAsync": z.string(),
2103
+ "safeDecodeAsync": z.string(),
2104
+ "refine": z.string(),
2105
+ "superRefine": z.string(),
2106
+ "overwrite": z.string(),
2107
+ "optional": z.string(),
2108
+ "exactOptional": z.string(),
2109
+ "nullable": z.string(),
2110
+ "nullish": z.string(),
2111
+ "nonoptional": z.string(),
2112
+ "array": z.string(),
2113
+ "or": z.string(),
2114
+ "and": z.string(),
2115
+ "transform": z.string(),
2116
+ "default": z.string(),
2117
+ "prefault": z.string(),
2118
+ "catch": z.string(),
2119
+ "pipe": z.string(),
2120
+ "readonly": z.string(),
2121
+ "describe": z.string(),
2122
+ "meta": z.string(),
2123
+ "isOptional": z.string(),
2124
+ "isNullable": z.string(),
2125
+ "apply": z.string(),
2126
+ "keyof": z.string(),
2127
+ "catchall": z.string(),
2128
+ "passthrough": z.string(),
2129
+ "loose": z.string(),
2130
+ "strict": z.string(),
2131
+ "strip": z.string(),
2132
+ "extend": z.string(),
2133
+ "safeExtend": z.string(),
2134
+ "merge": z.string(),
2135
+ "pick": z.string(),
2136
+ "omit": z.string(),
2137
+ "partial": z.string(),
2138
+ "required": z.string()
2139
+ }).strict()
2140
+ ])
2141
+ ])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
2142
+ "createdAt": z.string().describe("The ISO timestamp representing when the message was created."),
2143
+ "updatedAt": z.iso.datetime().optional().describe("The ISO timestamp representing when the message was last updated."),
2144
+ "type": z.enum([
2145
+ "added-environment-variables",
2146
+ "added-integration",
2147
+ "answered-questions",
2148
+ "auto-fix-with-v0",
2149
+ "cloned-repo",
2150
+ "deleted-file",
2151
+ "design-mode",
2152
+ "edited-file",
2153
+ "fix-cve",
2154
+ "fix-with-v0",
2155
+ "forked-block",
2156
+ "forked-chat",
2157
+ "manual-commit",
2158
+ "message",
2159
+ "moved-file",
2160
+ "open-in-v0",
2161
+ "pull-changes",
2162
+ "refinement",
2163
+ "renamed-file",
2164
+ "replace-src",
2165
+ "reverted-block",
2166
+ "sync-git"
2167
+ ]).describe("Indicates the format or category of the message, such as plain text or code."),
2168
+ "role": z.enum([
2169
+ "assistant",
2170
+ "user"
2171
+ ]).describe("Specifies whether the message was sent by the user or the assistant."),
2172
+ "finishReason": z.enum([
2173
+ "content-filter",
2174
+ "error",
2175
+ "length",
2176
+ "other",
2177
+ "stop",
2178
+ "tool-calls"
2179
+ ]).optional().describe("The reason why the message generation finished."),
2180
+ "apiUrl": z.string().describe("API URL to access this message via the API."),
2181
+ "authorId": z.null().describe("The ID of the user who sent the message."),
2182
+ "parentId": z.null().optional().describe("The ID of the parent message."),
2183
+ "attachments": z.array(z.object({
2184
+ "url": z.string().describe("The URL where the attachment file can be accessed."),
2185
+ "name": z.string().optional().describe("The original filename of the attachment."),
2186
+ "contentType": z.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
2187
+ "size": z.number().describe("The size of the attachment file in bytes."),
2188
+ "content": z.string().optional().describe("The base64-encoded content of the attachment file, if available."),
2189
+ "type": z.enum([
2190
+ "figma",
2191
+ "screenshot",
2192
+ "zip"
2193
+ ]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
2194
+ }).strict()).optional()
2195
+ }).strict().describe("Summary of a single message within a chat, including role, content, type, timestamp, and API URL.");
2196
+ const messageSummaryListSchema = z.object({
2197
+ "object": z.enum([
2198
+ "list"
2199
+ ]).describe("Fixed value identifying this as a list response."),
2200
+ "data": z.array(z.object({
2201
+ "id": z.string().describe("A unique identifier for the message."),
2202
+ "object": z.enum([
2203
+ "message"
2204
+ ]).describe("Fixed value identifying this object as a message."),
2205
+ "content": z.string().describe("The main text content of the message."),
2206
+ "experimentalContent": z.array(z.union([
2207
+ z.tuple([
2208
+ z.enum([
2209
+ 0
2210
+ ]),
2211
+ z.array(z.string())
2212
+ ]),
2213
+ z.tuple([
2214
+ z.enum([
2215
+ 1
2216
+ ]),
2217
+ z.object({
2218
+ "toJSONSchema": z.string(),
2219
+ "def": z.string(),
2220
+ "type": z.string(),
2221
+ "check": z.string(),
2222
+ "with": z.string(),
2223
+ "clone": z.string(),
2224
+ "brand": z.string(),
2225
+ "register": z.string(),
2226
+ "parse": z.string(),
2227
+ "safeParse": z.string(),
2228
+ "parseAsync": z.string(),
2229
+ "safeParseAsync": z.string(),
2230
+ "spa": z.string(),
2231
+ "encode": z.string(),
2232
+ "decode": z.string(),
2233
+ "encodeAsync": z.string(),
2234
+ "decodeAsync": z.string(),
2235
+ "safeEncode": z.string(),
2236
+ "safeDecode": z.string(),
2237
+ "safeEncodeAsync": z.string(),
2238
+ "safeDecodeAsync": z.string(),
2239
+ "refine": z.string(),
2240
+ "superRefine": z.string(),
2241
+ "overwrite": z.string(),
2242
+ "optional": z.string(),
2243
+ "exactOptional": z.string(),
2244
+ "nullable": z.string(),
2245
+ "nullish": z.string(),
2246
+ "nonoptional": z.string(),
2247
+ "array": z.string(),
2248
+ "or": z.string(),
2249
+ "and": z.string(),
2250
+ "transform": z.string(),
2251
+ "default": z.string(),
2252
+ "prefault": z.string(),
2253
+ "catch": z.string(),
2254
+ "pipe": z.string(),
2255
+ "readonly": z.string(),
2256
+ "describe": z.string(),
2257
+ "meta": z.string(),
2258
+ "isOptional": z.string(),
2259
+ "isNullable": z.string(),
2260
+ "apply": z.string(),
2261
+ "keyof": z.string(),
2262
+ "catchall": z.string(),
2263
+ "passthrough": z.string(),
2264
+ "loose": z.string(),
2265
+ "strict": z.string(),
2266
+ "strip": z.string(),
2267
+ "extend": z.string(),
2268
+ "safeExtend": z.string(),
2269
+ "merge": z.string(),
2270
+ "pick": z.string(),
2271
+ "omit": z.string(),
2272
+ "partial": z.string(),
2273
+ "required": z.string()
2274
+ }).strict()
2275
+ ])
2276
+ ])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
2277
+ "createdAt": z.string().describe("The ISO timestamp representing when the message was created."),
2278
+ "updatedAt": z.iso.datetime().optional().describe("The ISO timestamp representing when the message was last updated."),
2279
+ "type": z.enum([
2280
+ "added-environment-variables",
2281
+ "added-integration",
2282
+ "answered-questions",
2283
+ "auto-fix-with-v0",
2284
+ "cloned-repo",
2285
+ "deleted-file",
2286
+ "design-mode",
2287
+ "edited-file",
2288
+ "fix-cve",
2289
+ "fix-with-v0",
2290
+ "forked-block",
2291
+ "forked-chat",
2292
+ "manual-commit",
2293
+ "message",
2294
+ "moved-file",
2295
+ "open-in-v0",
2296
+ "pull-changes",
2297
+ "refinement",
2298
+ "renamed-file",
2299
+ "replace-src",
2300
+ "reverted-block",
2301
+ "sync-git"
2302
+ ]).describe("Indicates the format or category of the message, such as plain text or code."),
2303
+ "role": z.enum([
2304
+ "assistant",
2305
+ "user"
2306
+ ]).describe("Specifies whether the message was sent by the user or the assistant."),
2307
+ "finishReason": z.enum([
2308
+ "content-filter",
2309
+ "error",
2310
+ "length",
2311
+ "other",
2312
+ "stop",
2313
+ "tool-calls"
2314
+ ]).optional().describe("The reason why the message generation finished."),
2315
+ "apiUrl": z.string().describe("API URL to access this message via the API."),
2316
+ "authorId": z.null().describe("The ID of the user who sent the message."),
2317
+ "parentId": z.null().optional().describe("The ID of the parent message."),
2318
+ "attachments": z.array(z.object({
2319
+ "url": z.string().describe("The URL where the attachment file can be accessed."),
2320
+ "name": z.string().optional().describe("The original filename of the attachment."),
2321
+ "contentType": z.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
2322
+ "size": z.number().describe("The size of the attachment file in bytes."),
2323
+ "content": z.string().optional().describe("The base64-encoded content of the attachment file, if available."),
2324
+ "type": z.enum([
2325
+ "figma",
2326
+ "screenshot",
2327
+ "zip"
2328
+ ]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
2329
+ }).strict()).optional()
2330
+ }).strict()).describe("Array of message summaries in this page of results."),
2331
+ "pagination": z.object({
2332
+ "hasMore": z.boolean().describe("Indicates if there are more results available beyond this page."),
2333
+ "nextCursor": z.string().optional().describe("Cursor for fetching the next page of results."),
2334
+ "nextUrl": z.string().optional().describe("API URL for retrieving the next page of results.")
2335
+ }).strict().describe("Pagination metadata for navigating through multiple pages of results.")
2336
+ }).strict().describe("List response containing multiple message summaries with cursor-based pagination.");
2337
+ const notificationPreferenceSchemaSchema = z.object({
2338
+ "liveActivity": z.boolean().describe("Whether the user wants to receive live activities."),
2339
+ "pushNotifications": z.boolean().describe("Whether the user wants to receive push notifications.")
2340
+ }).strict().describe("User preference for notification delivery methods.");
2341
+ const productDetailSchemaSchema = z.object({
2342
+ "object": z.enum([
2343
+ "product"
2344
+ ]).describe("The object type."),
2345
+ "id": z.string().describe("The unique ID of the product."),
2346
+ "slug": z.string().describe("The URL-friendly slug of the product."),
2347
+ "name": z.string().describe("The name of the product."),
2348
+ "description": z.string().describe("A short description of the product."),
2349
+ "iconUrl": z.string().describe("URL to the product icon."),
2350
+ "v0Availability": z.enum([
2351
+ "in-review",
2352
+ "published"
2353
+ ]).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."),
2354
+ "iconBackgroundColor": z.string().optional().describe("Background color for the product icon.")
2355
+ }).strict().describe("Detailed information about a marketplace or store product.");
2356
+ const productListSchemaSchema = z.object({
2357
+ "object": z.enum([
2358
+ "list"
2359
+ ]).describe("Fixed value identifying this as a list response."),
2360
+ "data": z.array(z.object({
2361
+ "object": z.enum([
2362
+ "product"
2363
+ ]).describe("The object type."),
2364
+ "id": z.string().describe("The unique ID of the product."),
2365
+ "slug": z.string().describe("The URL-friendly slug of the product."),
2366
+ "name": z.string().describe("The name of the product."),
2367
+ "description": z.string().describe("A short description of the product."),
2368
+ "iconUrl": z.string().describe("URL to the product icon."),
2369
+ "v0Availability": z.enum([
2370
+ "in-review",
2371
+ "published"
2372
+ ]).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.")
2373
+ }).strict()).describe("Array of product summaries.")
2374
+ }).strict().describe("List of available marketplace and store products.");
2375
+ const productSummarySchemaSchema = z.object({
2376
+ "object": z.enum([
2377
+ "product"
2378
+ ]).describe("The object type."),
2379
+ "id": z.string().describe("The unique ID of the product."),
2380
+ "slug": z.string().describe("The URL-friendly slug of the product."),
2381
+ "name": z.string().describe("The name of the product."),
2382
+ "description": z.string().describe("A short description of the product."),
2383
+ "iconUrl": z.string().describe("URL to the product icon."),
2384
+ "v0Availability": z.enum([
2385
+ "in-review",
2386
+ "published"
2387
+ ]).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.")
2388
+ }).strict().describe("Summary information about a marketplace or store product.");
2389
+ const projectDetailSchema = z.object({
2390
+ "id": z.string().describe("A unique identifier for the project."),
2391
+ "object": z.enum([
2392
+ "project"
2393
+ ]).describe("Fixed value identifying this object as a project."),
2394
+ "name": z.string().describe("The name of the project as defined by the user."),
2395
+ "privacy": z.enum([
2396
+ "private",
2397
+ "team"
2398
+ ]).describe("The privacy setting for the project - either private or team."),
2399
+ "vercelProjectId": z.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
2400
+ "createdAt": z.iso.datetime().describe("The ISO timestamp representing when the project was created."),
2401
+ "updatedAt": z.iso.datetime().optional().describe("The ISO timestamp of the most recent update, if available."),
2402
+ "apiUrl": z.url().describe("The API endpoint URL for accessing this project programmatically."),
2403
+ "webUrl": z.url().describe("The web URL where the project can be viewed or managed."),
2404
+ "description": z.string().optional().describe("The description of the project."),
2405
+ "instructions": z.string().optional().describe("The instructions for the project."),
2406
+ "chats": z.array(z.object({
2407
+ "id": z.string().describe("A unique identifier for the chat."),
2408
+ "object": z.enum([
2409
+ "chat"
2410
+ ]).describe("Fixed value identifying this object as a chat."),
2411
+ "shareable": z.boolean().describe("Indicates whether the chat can be shared via public link."),
2412
+ "privacy": z.enum([
2413
+ "private",
2414
+ "public",
2415
+ "team",
2416
+ "team-edit",
2417
+ "unlisted"
2418
+ ]).describe("Defines the visibility of the chat—private, team-only, or public."),
2419
+ "name": z.string().optional().describe("An optional name assigned to the chat by the user."),
2420
+ "title": z.string().optional().describe("Deprecated title field preserved for backward compatibility."),
2421
+ "createdAt": z.iso.datetime().describe("The ISO timestamp representing when the chat was created."),
2422
+ "updatedAt": z.string().optional().describe("The ISO timestamp of the last update to the chat."),
2423
+ "favorite": z.boolean().describe("Indicates whether the chat is marked as a favorite."),
2424
+ "authorId": z.string().describe("The ID of the user who created the chat."),
2425
+ "projectId": z.string().optional().describe("Optional ID of the v0 project associated with this chat."),
2426
+ "vercelProjectId": z.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
2427
+ "webUrl": z.string().describe("Web URL to view this chat in the browser."),
2428
+ "apiUrl": z.string().describe("API URL to access this chat via the API."),
2429
+ "latestVersion": z.object({
2430
+ "id": z.string().describe("A unique identifier for the version."),
2431
+ "object": z.enum([
2432
+ "version"
2433
+ ]).describe("Fixed value identifying this object as a version."),
2434
+ "status": z.enum([
2435
+ "completed",
2436
+ "failed",
2437
+ "pending"
2438
+ ]).describe("The current status of the version generation process."),
2439
+ "demoUrl": z.string().optional().describe("Optional URL for previewing the generated output."),
2440
+ "screenshotUrl": z.string().optional().describe("URL to retrieve a screenshot of this version."),
2441
+ "createdAt": z.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
2442
+ "updatedAt": z.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
2443
+ }).strict().optional().describe("The most recent generated version of the chat, if available.")
2444
+ }).strict()).describe("List of all chats that are associated with this project.")
2445
+ }).strict().describe("Full representation of a project, including its associated chats.");
2446
+ const projectSummarySchema = z.object({
2447
+ "id": z.string().describe("A unique identifier for the project."),
2448
+ "object": z.enum([
2449
+ "project"
2450
+ ]).describe("Fixed value identifying this object as a project."),
2451
+ "name": z.string().describe("The name of the project as defined by the user."),
2452
+ "privacy": z.enum([
2453
+ "private",
2454
+ "team"
2455
+ ]).describe("The privacy setting for the project - either private or team."),
2456
+ "vercelProjectId": z.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
2457
+ "createdAt": z.iso.datetime().describe("The ISO timestamp representing when the project was created."),
2458
+ "updatedAt": z.iso.datetime().optional().describe("The ISO timestamp of the most recent update, if available."),
2459
+ "apiUrl": z.url().describe("The API endpoint URL for accessing this project programmatically."),
2460
+ "webUrl": z.url().describe("The web URL where the project can be viewed or managed.")
2461
+ }).strict().describe("Summary of a project, including metadata, timestamps, and optional Vercel linkage.");
2462
+ const scopeSummarySchema = z.object({
2463
+ "id": z.string().describe("A unique identifier for the scope (e.g., user or team workspace)."),
2464
+ "object": z.enum([
2465
+ "scope"
2466
+ ]).describe("Fixed value identifying this object as a scope."),
2467
+ "name": z.string().optional().describe("An optional human-readable name for the scope.")
2468
+ }).strict().describe("Basic information about a workspace or identity context for projects and chats.");
2469
+ const searchResultItemSchema = z.object({
2470
+ "id": z.string().describe("The unique ID of the item returned in the search result."),
2471
+ "object": z.enum([
2472
+ "chat",
2473
+ "project"
2474
+ ]).describe("Type of item returned, either 'chat' or 'project'."),
2475
+ "name": z.string().describe("The display name of the item."),
2476
+ "createdAt": z.iso.datetime().describe("The ISO timestamp representing when the item was created."),
2477
+ "updatedAt": z.iso.datetime().optional().describe("The ISO timestamp of the last update to the item."),
2478
+ "apiUrl": z.string().describe("API endpoint for accessing the item programmatically."),
2479
+ "webUrl": z.string().describe("Web URL for viewing the item in the interface.")
2480
+ }).strict().describe("Generic result returned from a search query, representing either a chat or a project.");
2481
+ const userDetailSchemaSchema = z.object({
2482
+ "id": z.string().describe("A unique identifier for the user."),
2483
+ "object": z.enum([
2484
+ "user"
2485
+ ]).describe("Fixed value identifying this object as a user."),
2486
+ "name": z.string().optional().describe("Optional full name of the user."),
2487
+ "email": z.string().describe("The user's email address."),
2488
+ "avatar": z.string().describe("URL to the user's avatar image."),
2489
+ "createdAt": z.iso.datetime().describe("The ISO timestamp representing when the user was created."),
2490
+ "updatedAt": z.iso.datetime().optional().describe("The ISO timestamp of the last update to the user.")
2491
+ }).strict();
2492
+ const userPreferencesPostResponseSchemaSchema = z.object({
2493
+ "object": z.enum([
2494
+ "user_preferences"
2495
+ ]).describe("Object type identifier."),
2496
+ "preferences": z.union([
2497
+ z.object({
2498
+ "notifications": z.object({
2499
+ "liveActivity": z.boolean().describe("Whether the user wants to receive live activities."),
2500
+ "pushNotifications": z.boolean().describe("Whether the user wants to receive push notifications.")
2501
+ }).strict().describe("The user's preferred method for receiving notifications.")
2502
+ }).strict(),
2503
+ z.null()
2504
+ ]).describe("The updated preferences if successful, or null if failed.")
2505
+ }).strict().describe("Response schema for updating user preferences.");
2506
+ const userPreferencesResponseSchemaSchema = z.object({
2507
+ "object": z.enum([
2508
+ "user_preferences"
2509
+ ]).describe("Object type identifier."),
2510
+ "preferences": z.union([
2511
+ z.object({
2512
+ "notifications": z.object({
2513
+ "liveActivity": z.boolean().describe("Whether the user wants to receive live activities."),
2514
+ "pushNotifications": z.boolean().describe("Whether the user wants to receive push notifications.")
2515
+ }).strict().describe("The user's preferred method for receiving notifications.")
2516
+ }).strict(),
2517
+ z.null()
2518
+ ]).describe("The user's current preferences, or null if errored.")
2519
+ }).strict().describe("Response schema for retrieving user preferences.");
2520
+ const userPreferencesSchemaSchema = z.object({
2521
+ "notifications": z.object({
2522
+ "liveActivity": z.boolean().describe("Whether the user wants to receive live activities."),
2523
+ "pushNotifications": z.boolean().describe("Whether the user wants to receive push notifications.")
2524
+ }).strict().describe("The user's preferred method for receiving notifications.")
2525
+ }).strict().describe("User preferences configuration including notification settings.");
2526
+ const userSummarySchemaSchema = z.object({
2527
+ "id": z.string().describe("A unique identifier for the user."),
2528
+ "object": z.enum([
2529
+ "user"
2530
+ ]).describe("Fixed value identifying this object as a user."),
2531
+ "name": z.string().optional().describe("Optional full name of the user."),
2532
+ "email": z.string().describe("The user's email address."),
2533
+ "avatar": z.string().describe("URL to the user's avatar image."),
2534
+ "createdAt": z.iso.datetime().describe("The ISO timestamp representing when the user was created."),
2535
+ "updatedAt": z.iso.datetime().optional().describe("The ISO timestamp of the last update to the user.")
2536
+ }).strict().describe("Details of the authenticated user, including profile and contact information.");
2537
+ const vercelProjectDetailSchema = z.object({
2538
+ "id": z.string().describe("A unique identifier for the linked Vercel project."),
2539
+ "object": z.enum([
2540
+ "vercel_project"
2541
+ ]).describe("Fixed value identifying this object as a Vercel project."),
2542
+ "name": z.string().describe("The name of the Vercel project.")
2543
+ }).strict();
2544
+ const vercelProjectSummarySchema = z.object({
2545
+ "id": z.string().describe("A unique identifier for the linked Vercel project."),
2546
+ "object": z.enum([
2547
+ "vercel_project"
2548
+ ]).describe("Fixed value identifying this object as a Vercel project."),
2549
+ "name": z.string().describe("The name of the Vercel project.")
2550
+ }).strict().describe("Basic metadata about a Vercel project connected to a v0 project.");
2551
+ const versionDetailSchema = z.object({
2552
+ "id": z.string().describe("A unique identifier for the version."),
2553
+ "object": z.enum([
2554
+ "version"
2555
+ ]).describe("Fixed value identifying this object as a version."),
2556
+ "status": z.enum([
2557
+ "completed",
2558
+ "failed",
2559
+ "pending"
2560
+ ]).describe("The current status of the version generation process."),
2561
+ "demoUrl": z.string().optional().describe("Optional URL for previewing the generated output."),
2562
+ "screenshotUrl": z.string().optional().describe("URL to retrieve a screenshot of this version."),
2563
+ "createdAt": z.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
2564
+ "updatedAt": z.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format."),
2565
+ "files": z.array(z.object({
2566
+ "object": z.enum([
2567
+ "file"
2568
+ ]).describe("Fixed value identifying this object as a file."),
2569
+ "name": z.string().describe("The name of the file, including its extension."),
2570
+ "content": z.string().describe("The full contents of the file as a raw string."),
2571
+ "locked": z.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
2572
+ }).strict()).describe("A list of files that were generated or included in this version.")
2573
+ }).strict().describe("Detailed version data including file contents.");
2574
+ const versionSummarySchema = z.object({
2575
+ "id": z.string().describe("A unique identifier for the version."),
2576
+ "object": z.enum([
2577
+ "version"
2578
+ ]).describe("Fixed value identifying this object as a version."),
2579
+ "status": z.enum([
2580
+ "completed",
2581
+ "failed",
2582
+ "pending"
2583
+ ]).describe("The current status of the version generation process."),
2584
+ "demoUrl": z.string().optional().describe("Optional URL for previewing the generated output."),
2585
+ "screenshotUrl": z.string().optional().describe("URL to retrieve a screenshot of this version."),
2586
+ "createdAt": z.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
2587
+ "updatedAt": z.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
2588
+ }).strict().describe("Summary of a generated version of a chat, including its status and optional demo link.");
2589
+ const versionSummaryListSchema = z.object({
2590
+ "object": z.enum([
2591
+ "list"
2592
+ ]).describe("Fixed value identifying this as a list response."),
2593
+ "data": z.array(z.object({
2594
+ "id": z.string().describe("A unique identifier for the version."),
2595
+ "object": z.enum([
2596
+ "version"
2597
+ ]).describe("Fixed value identifying this object as a version."),
2598
+ "status": z.enum([
2599
+ "completed",
2600
+ "failed",
2601
+ "pending"
2602
+ ]).describe("The current status of the version generation process."),
2603
+ "demoUrl": z.string().optional().describe("Optional URL for previewing the generated output."),
2604
+ "screenshotUrl": z.string().optional().describe("URL to retrieve a screenshot of this version."),
2605
+ "createdAt": z.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
2606
+ "updatedAt": z.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
2607
+ }).strict()).describe("Array of version summaries in this page of results."),
2608
+ "pagination": z.object({
2609
+ "hasMore": z.boolean().describe("Indicates if there are more results available beyond this page."),
2610
+ "nextCursor": z.string().optional().describe("Cursor for fetching the next page of results."),
2611
+ "nextUrl": z.string().optional().describe("API URL for retrieving the next page of results.")
2612
+ }).strict().describe("Pagination metadata for navigating through multiple pages of results.")
2613
+ }).strict().describe("List response containing multiple version summaries with cursor-based pagination.");
2614
+ const unauthorizedErrorSchema = z.object({
2615
+ "error": z.object({
2616
+ "message": z.string(),
2617
+ "type": z.enum([
2618
+ "unauthorized_error"
2619
+ ])
2620
+ }).strict()
2621
+ }).strict();
2622
+ const forbiddenErrorSchema = z.object({
2623
+ "error": z.object({
2624
+ "message": z.string(),
2625
+ "type": z.enum([
2626
+ "forbidden_error"
2627
+ ])
2628
+ }).strict()
2629
+ }).strict();
2630
+ const notFoundErrorSchema = z.object({
2631
+ "error": z.object({
2632
+ "message": z.string(),
2633
+ "type": z.enum([
2634
+ "not_found_error"
2635
+ ])
2636
+ }).strict()
2637
+ }).strict();
2638
+ const conflictErrorSchema = z.object({
2639
+ "error": z.object({
2640
+ "message": z.string(),
2641
+ "type": z.enum([
2642
+ "conflict_error"
2643
+ ])
2644
+ }).strict()
2645
+ }).strict();
2646
+ const payloadTooLargeErrorSchema = z.object({
2647
+ "error": z.object({
2648
+ "message": z.string(),
2649
+ "type": z.enum([
2650
+ "payload_too_large_error"
2651
+ ])
2652
+ }).strict()
2653
+ }).strict();
2654
+ const unprocessableEntityErrorSchema = z.object({
2655
+ "error": z.object({
2656
+ "message": z.string(),
2657
+ "type": z.enum([
2658
+ "unprocessable_entity_error"
2659
+ ])
2660
+ }).strict()
2661
+ }).strict();
2662
+ const tooManyRequestsErrorSchema = z.object({
2663
+ "error": z.object({
2664
+ "message": z.string(),
2665
+ "type": z.enum([
2666
+ "too_many_requests_error"
2667
+ ])
2668
+ }).strict()
2669
+ }).strict();
2670
+ const internalServerErrorSchema = z.object({
2671
+ "error": z.object({
2672
+ "message": z.string(),
2673
+ "type": z.enum([
2674
+ "internal_server_error"
2675
+ ])
2676
+ }).strict()
2677
+ }).strict();
2678
+ const chatsCreateStatus200Schema = z.unknown();
2679
+ const chatsCreateStatus401Schema = z.unknown();
2680
+ const chatsCreateStatus403Schema = z.unknown();
2681
+ const chatsCreateStatus404Schema = z.unknown();
2682
+ const chatsCreateStatus409Schema = z.unknown();
2683
+ const chatsCreateStatus413Schema = z.unknown();
2684
+ const chatsCreateStatus422Schema = z.unknown();
2685
+ const chatsCreateStatus429Schema = z.unknown();
2686
+ const chatsCreateStatus500Schema = z.unknown();
2687
+ const chatsCreateResponseSchema = z.union([
2688
+ chatsCreateStatus200Schema,
2689
+ chatsCreateStatus401Schema,
2690
+ chatsCreateStatus403Schema,
2691
+ chatsCreateStatus404Schema,
2692
+ chatsCreateStatus409Schema,
2693
+ chatsCreateStatus413Schema,
2694
+ chatsCreateStatus422Schema,
2695
+ chatsCreateStatus429Schema,
2696
+ chatsCreateStatus500Schema
2697
+ ]);
2698
+ 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.");
2699
+ 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.");
2700
+ const chatsFindQueryIsFavoriteSchema = z.enum([
2701
+ "true",
2702
+ "false"
2703
+ ]).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.");
2704
+ const chatsFindQueryVercelProjectIdSchema = z.string().optional().describe("Filters chats by the linked Vercel project ID. Only returns chats associated with the specified Vercel project.");
2705
+ 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.");
2706
+ const chatsFindStatus200Schema = z.unknown();
2707
+ const chatsFindStatus401Schema = z.unknown();
2708
+ const chatsFindStatus403Schema = z.unknown();
2709
+ const chatsFindStatus404Schema = z.unknown();
2710
+ const chatsFindStatus409Schema = z.unknown();
2711
+ const chatsFindStatus413Schema = z.unknown();
2712
+ const chatsFindStatus422Schema = z.unknown();
2713
+ const chatsFindStatus429Schema = z.unknown();
2714
+ const chatsFindStatus500Schema = z.unknown();
2715
+ const chatsFindResponseSchema = z.union([
2716
+ chatsFindStatus200Schema,
2717
+ chatsFindStatus401Schema,
2718
+ chatsFindStatus403Schema,
2719
+ chatsFindStatus404Schema,
2720
+ chatsFindStatus409Schema,
2721
+ chatsFindStatus413Schema,
2722
+ chatsFindStatus422Schema,
2723
+ chatsFindStatus429Schema,
2724
+ chatsFindStatus500Schema
2725
+ ]);
2726
+ const chatsInitStatus200Schema = z.unknown();
2727
+ const chatsInitStatus401Schema = z.unknown();
2728
+ const chatsInitStatus403Schema = z.unknown();
2729
+ const chatsInitStatus404Schema = z.unknown();
2730
+ const chatsInitStatus409Schema = z.unknown();
2731
+ const chatsInitStatus413Schema = z.unknown();
2732
+ const chatsInitStatus422Schema = z.unknown();
2733
+ const chatsInitStatus429Schema = z.unknown();
2734
+ const chatsInitStatus500Schema = z.unknown();
2735
+ const chatsInitResponseSchema = z.union([
2736
+ chatsInitStatus200Schema,
2737
+ chatsInitStatus401Schema,
2738
+ chatsInitStatus403Schema,
2739
+ chatsInitStatus404Schema,
2740
+ chatsInitStatus409Schema,
2741
+ chatsInitStatus413Schema,
2742
+ chatsInitStatus422Schema,
2743
+ chatsInitStatus429Schema,
2744
+ chatsInitStatus500Schema
2745
+ ]);
2746
+ const chatsDeletePathChatIdSchema = z.string().describe("The unique identifier of the chat to delete. This must be passed as a path parameter in the URL.");
2747
+ const chatsDeleteStatus200Schema = z.unknown();
2748
+ const chatsDeleteStatus401Schema = z.unknown();
2749
+ const chatsDeleteStatus403Schema = z.unknown();
2750
+ const chatsDeleteStatus404Schema = z.unknown();
2751
+ const chatsDeleteStatus409Schema = z.unknown();
2752
+ const chatsDeleteStatus413Schema = z.unknown();
2753
+ const chatsDeleteStatus422Schema = z.unknown();
2754
+ const chatsDeleteStatus429Schema = z.unknown();
2755
+ const chatsDeleteStatus500Schema = z.unknown();
2756
+ const chatsDeleteResponseSchema = z.union([
2757
+ chatsDeleteStatus200Schema,
2758
+ chatsDeleteStatus401Schema,
2759
+ chatsDeleteStatus403Schema,
2760
+ chatsDeleteStatus404Schema,
2761
+ chatsDeleteStatus409Schema,
2762
+ chatsDeleteStatus413Schema,
2763
+ chatsDeleteStatus422Schema,
2764
+ chatsDeleteStatus429Schema,
2765
+ chatsDeleteStatus500Schema
2766
+ ]);
2767
+ const chatsGetByIdPathChatIdSchema = z.string().describe("The unique identifier of the chat to retrieve. Must be provided as a path parameter.");
2768
+ const chatsGetByIdStatus200Schema = z.unknown();
2769
+ const chatsGetByIdStatus401Schema = z.unknown();
2770
+ const chatsGetByIdStatus403Schema = z.unknown();
2771
+ const chatsGetByIdStatus404Schema = z.unknown();
2772
+ const chatsGetByIdStatus409Schema = z.unknown();
2773
+ const chatsGetByIdStatus413Schema = z.unknown();
2774
+ const chatsGetByIdStatus422Schema = z.unknown();
2775
+ const chatsGetByIdStatus429Schema = z.unknown();
2776
+ const chatsGetByIdStatus500Schema = z.unknown();
2777
+ const chatsGetByIdResponseSchema = z.union([
2778
+ chatsGetByIdStatus200Schema,
2779
+ chatsGetByIdStatus401Schema,
2780
+ chatsGetByIdStatus403Schema,
2781
+ chatsGetByIdStatus404Schema,
2782
+ chatsGetByIdStatus409Schema,
2783
+ chatsGetByIdStatus413Schema,
2784
+ chatsGetByIdStatus422Schema,
2785
+ chatsGetByIdStatus429Schema,
2786
+ chatsGetByIdStatus500Schema
2787
+ ]);
2788
+ const chatsUpdatePathChatIdSchema = z.string().describe("The unique identifier of the chat to update. Provided as a path parameter.");
2789
+ const chatsUpdateStatus200Schema = z.unknown();
2790
+ const chatsUpdateStatus401Schema = z.unknown();
2791
+ const chatsUpdateStatus403Schema = z.unknown();
2792
+ const chatsUpdateStatus404Schema = z.unknown();
2793
+ const chatsUpdateStatus409Schema = z.unknown();
2794
+ const chatsUpdateStatus413Schema = z.unknown();
2795
+ const chatsUpdateStatus422Schema = z.unknown();
2796
+ const chatsUpdateStatus429Schema = z.unknown();
2797
+ const chatsUpdateStatus500Schema = z.unknown();
2798
+ const chatsUpdateResponseSchema = z.union([
2799
+ chatsUpdateStatus200Schema,
2800
+ chatsUpdateStatus401Schema,
2801
+ chatsUpdateStatus403Schema,
2802
+ chatsUpdateStatus404Schema,
2803
+ chatsUpdateStatus409Schema,
2804
+ chatsUpdateStatus413Schema,
2805
+ chatsUpdateStatus422Schema,
2806
+ chatsUpdateStatus429Schema,
2807
+ chatsUpdateStatus500Schema
2808
+ ]);
2809
+ const chatsFavoritePathChatIdSchema = z.string().describe("The unique identifier of the chat to update. Provided as a path parameter.");
2810
+ const chatsFavoriteStatus200Schema = z.unknown();
2811
+ const chatsFavoriteStatus401Schema = z.unknown();
2812
+ const chatsFavoriteStatus403Schema = z.unknown();
2813
+ const chatsFavoriteStatus404Schema = z.unknown();
2814
+ const chatsFavoriteStatus409Schema = z.unknown();
2815
+ const chatsFavoriteStatus413Schema = z.unknown();
2816
+ const chatsFavoriteStatus422Schema = z.unknown();
2817
+ const chatsFavoriteStatus429Schema = z.unknown();
2818
+ const chatsFavoriteStatus500Schema = z.unknown();
2819
+ const chatsFavoriteResponseSchema = z.union([
2820
+ chatsFavoriteStatus200Schema,
2821
+ chatsFavoriteStatus401Schema,
2822
+ chatsFavoriteStatus403Schema,
2823
+ chatsFavoriteStatus404Schema,
2824
+ chatsFavoriteStatus409Schema,
2825
+ chatsFavoriteStatus413Schema,
2826
+ chatsFavoriteStatus422Schema,
2827
+ chatsFavoriteStatus429Schema,
2828
+ chatsFavoriteStatus500Schema
2829
+ ]);
2830
+ const chatsForkPathChatIdSchema = z.string().describe("The unique identifier of the chat to fork. Provided as a path parameter.");
2831
+ const chatsForkStatus200Schema = z.unknown();
2832
+ const chatsForkStatus401Schema = z.unknown();
2833
+ const chatsForkStatus403Schema = z.unknown();
2834
+ const chatsForkStatus404Schema = z.unknown();
2835
+ const chatsForkStatus409Schema = z.unknown();
2836
+ const chatsForkStatus413Schema = z.unknown();
2837
+ const chatsForkStatus422Schema = z.unknown();
2838
+ const chatsForkStatus429Schema = z.unknown();
2839
+ const chatsForkStatus500Schema = z.unknown();
2840
+ const chatsForkResponseSchema = z.union([
2841
+ chatsForkStatus200Schema,
2842
+ chatsForkStatus401Schema,
2843
+ chatsForkStatus403Schema,
2844
+ chatsForkStatus404Schema,
2845
+ chatsForkStatus409Schema,
2846
+ chatsForkStatus413Schema,
2847
+ chatsForkStatus422Schema,
2848
+ chatsForkStatus429Schema,
2849
+ chatsForkStatus500Schema
2850
+ ]);
2851
+ const projectsGetByChatIdPathChatIdSchema = z.string().describe("The ID of the chat to retrieve the associated project for.");
2852
+ const projectsGetByChatIdStatus200Schema = z.unknown();
2853
+ const projectsGetByChatIdStatus401Schema = z.unknown();
2854
+ const projectsGetByChatIdStatus403Schema = z.unknown();
2855
+ const projectsGetByChatIdStatus404Schema = z.unknown();
2856
+ const projectsGetByChatIdStatus409Schema = z.unknown();
2857
+ const projectsGetByChatIdStatus413Schema = z.unknown();
2858
+ const projectsGetByChatIdStatus422Schema = z.unknown();
2859
+ const projectsGetByChatIdStatus429Schema = z.unknown();
2860
+ const projectsGetByChatIdStatus500Schema = z.unknown();
2861
+ const projectsGetByChatIdResponseSchema = z.union([
2862
+ projectsGetByChatIdStatus200Schema,
2863
+ projectsGetByChatIdStatus401Schema,
2864
+ projectsGetByChatIdStatus403Schema,
2865
+ projectsGetByChatIdStatus404Schema,
2866
+ projectsGetByChatIdStatus409Schema,
2867
+ projectsGetByChatIdStatus413Schema,
2868
+ projectsGetByChatIdStatus422Schema,
2869
+ projectsGetByChatIdStatus429Schema,
2870
+ projectsGetByChatIdStatus500Schema
2871
+ ]);
2872
+ const chatsFindMessagesPathChatIdSchema = z.string().describe("The unique identifier of the chat to retrieve messages for. Provided as a path parameter.");
2873
+ 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.");
2874
+ const chatsFindMessagesQueryCursorSchema = z.string().optional().describe("Base64 encoded cursor containing pagination data");
2875
+ const chatsFindMessagesStatus200Schema = z.unknown();
2876
+ const chatsFindMessagesStatus401Schema = z.unknown();
2877
+ const chatsFindMessagesStatus403Schema = z.unknown();
2878
+ const chatsFindMessagesStatus404Schema = z.unknown();
2879
+ const chatsFindMessagesStatus409Schema = z.unknown();
2880
+ const chatsFindMessagesStatus413Schema = z.unknown();
2881
+ const chatsFindMessagesStatus422Schema = z.unknown();
2882
+ const chatsFindMessagesStatus429Schema = z.unknown();
2883
+ const chatsFindMessagesStatus500Schema = z.unknown();
2884
+ const chatsFindMessagesResponseSchema = z.union([
2885
+ chatsFindMessagesStatus200Schema,
2886
+ chatsFindMessagesStatus401Schema,
2887
+ chatsFindMessagesStatus403Schema,
2888
+ chatsFindMessagesStatus404Schema,
2889
+ chatsFindMessagesStatus409Schema,
2890
+ chatsFindMessagesStatus413Schema,
2891
+ chatsFindMessagesStatus422Schema,
2892
+ chatsFindMessagesStatus429Schema,
2893
+ chatsFindMessagesStatus500Schema
2894
+ ]);
2895
+ const chatsSendMessagePathChatIdSchema = z.string().describe("The unique identifier of the chat to send the message to. Provided as a path parameter.");
2896
+ const chatsSendMessageStatus200Schema = z.unknown();
2897
+ const chatsSendMessageStatus401Schema = z.unknown();
2898
+ const chatsSendMessageStatus403Schema = z.unknown();
2899
+ const chatsSendMessageStatus404Schema = z.unknown();
2900
+ const chatsSendMessageStatus409Schema = z.unknown();
2901
+ const chatsSendMessageStatus413Schema = z.unknown();
2902
+ const chatsSendMessageStatus422Schema = z.unknown();
2903
+ const chatsSendMessageStatus429Schema = z.unknown();
2904
+ const chatsSendMessageStatus500Schema = z.unknown();
2905
+ const chatsSendMessageResponseSchema = z.union([
2906
+ chatsSendMessageStatus200Schema,
2907
+ chatsSendMessageStatus401Schema,
2908
+ chatsSendMessageStatus403Schema,
2909
+ chatsSendMessageStatus404Schema,
2910
+ chatsSendMessageStatus409Schema,
2911
+ chatsSendMessageStatus413Schema,
2912
+ chatsSendMessageStatus422Schema,
2913
+ chatsSendMessageStatus429Schema,
2914
+ chatsSendMessageStatus500Schema
2915
+ ]);
2916
+ const chatsGetMessagePathChatIdSchema = z.string().describe("The unique identifier of the chat containing the message. Provided as a path parameter.");
2917
+ const chatsGetMessagePathMessageIdSchema = z.string().describe("The unique identifier of the message to retrieve. Provided as a path parameter.");
2918
+ const chatsGetMessageStatus200Schema = z.unknown();
2919
+ const chatsGetMessageStatus401Schema = z.unknown();
2920
+ const chatsGetMessageStatus403Schema = z.unknown();
2921
+ const chatsGetMessageStatus404Schema = z.unknown();
2922
+ const chatsGetMessageStatus409Schema = z.unknown();
2923
+ const chatsGetMessageStatus413Schema = z.unknown();
2924
+ const chatsGetMessageStatus422Schema = z.unknown();
2925
+ const chatsGetMessageStatus429Schema = z.unknown();
2926
+ const chatsGetMessageStatus500Schema = z.unknown();
2927
+ const chatsGetMessageResponseSchema = z.union([
2928
+ chatsGetMessageStatus200Schema,
2929
+ chatsGetMessageStatus401Schema,
2930
+ chatsGetMessageStatus403Schema,
2931
+ chatsGetMessageStatus404Schema,
2932
+ chatsGetMessageStatus409Schema,
2933
+ chatsGetMessageStatus413Schema,
2934
+ chatsGetMessageStatus422Schema,
2935
+ chatsGetMessageStatus429Schema,
2936
+ chatsGetMessageStatus500Schema
2937
+ ]);
2938
+ const chatsFindVersionsPathChatIdSchema = z.string().describe("The unique identifier of the chat to retrieve versions for. Provided as a path parameter.");
2939
+ 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.");
2940
+ const chatsFindVersionsQueryCursorSchema = z.string().optional().describe("Base64 encoded cursor containing pagination data");
2941
+ const chatsFindVersionsStatus200Schema = z.unknown();
2942
+ const chatsFindVersionsStatus401Schema = z.unknown();
2943
+ const chatsFindVersionsStatus403Schema = z.unknown();
2944
+ const chatsFindVersionsStatus404Schema = z.unknown();
2945
+ const chatsFindVersionsStatus409Schema = z.unknown();
2946
+ const chatsFindVersionsStatus413Schema = z.unknown();
2947
+ const chatsFindVersionsStatus422Schema = z.unknown();
2948
+ const chatsFindVersionsStatus429Schema = z.unknown();
2949
+ const chatsFindVersionsStatus500Schema = z.unknown();
2950
+ const chatsFindVersionsResponseSchema = z.union([
2951
+ chatsFindVersionsStatus200Schema,
2952
+ chatsFindVersionsStatus401Schema,
2953
+ chatsFindVersionsStatus403Schema,
2954
+ chatsFindVersionsStatus404Schema,
2955
+ chatsFindVersionsStatus409Schema,
2956
+ chatsFindVersionsStatus413Schema,
2957
+ chatsFindVersionsStatus422Schema,
2958
+ chatsFindVersionsStatus429Schema,
2959
+ chatsFindVersionsStatus500Schema
2960
+ ]);
2961
+ const chatsGetVersionPathChatIdSchema = z.string().describe("The unique identifier of the chat containing the version. Provided as a path parameter.");
2962
+ const chatsGetVersionPathVersionIdSchema = z.string().describe("The unique identifier of the version to retrieve. Provided as a path parameter.");
2963
+ const chatsGetVersionQueryIncludeDefaultFilesSchema = z.enum([
2964
+ "true",
2965
+ "false"
2966
+ ]).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.");
2967
+ const chatsGetVersionStatus200Schema = z.unknown();
2968
+ const chatsGetVersionStatus401Schema = z.unknown();
2969
+ const chatsGetVersionStatus403Schema = z.unknown();
2970
+ const chatsGetVersionStatus404Schema = z.unknown();
2971
+ const chatsGetVersionStatus409Schema = z.unknown();
2972
+ const chatsGetVersionStatus413Schema = z.unknown();
2973
+ const chatsGetVersionStatus422Schema = z.unknown();
2974
+ const chatsGetVersionStatus429Schema = z.unknown();
2975
+ const chatsGetVersionStatus500Schema = z.unknown();
2976
+ const chatsGetVersionResponseSchema = z.union([
2977
+ chatsGetVersionStatus200Schema,
2978
+ chatsGetVersionStatus401Schema,
2979
+ chatsGetVersionStatus403Schema,
2980
+ chatsGetVersionStatus404Schema,
2981
+ chatsGetVersionStatus409Schema,
2982
+ chatsGetVersionStatus413Schema,
2983
+ chatsGetVersionStatus422Schema,
2984
+ chatsGetVersionStatus429Schema,
2985
+ chatsGetVersionStatus500Schema
2986
+ ]);
2987
+ const chatsUpdateVersionPathChatIdSchema = z.string().describe("The unique identifier of the chat containing the version to update. Provided as a path parameter.");
2988
+ const chatsUpdateVersionPathVersionIdSchema = z.string().describe("The unique identifier of the version (block) to update. Provided as a path parameter.");
2989
+ const chatsUpdateVersionStatus200Schema = z.unknown();
2990
+ const chatsUpdateVersionStatus401Schema = z.unknown();
2991
+ const chatsUpdateVersionStatus403Schema = z.unknown();
2992
+ const chatsUpdateVersionStatus404Schema = z.unknown();
2993
+ const chatsUpdateVersionStatus409Schema = z.unknown();
2994
+ const chatsUpdateVersionStatus413Schema = z.unknown();
2995
+ const chatsUpdateVersionStatus422Schema = z.unknown();
2996
+ const chatsUpdateVersionStatus429Schema = z.unknown();
2997
+ const chatsUpdateVersionStatus500Schema = z.unknown();
2998
+ const chatsUpdateVersionResponseSchema = z.union([
2999
+ chatsUpdateVersionStatus200Schema,
3000
+ chatsUpdateVersionStatus401Schema,
3001
+ chatsUpdateVersionStatus403Schema,
3002
+ chatsUpdateVersionStatus404Schema,
3003
+ chatsUpdateVersionStatus409Schema,
3004
+ chatsUpdateVersionStatus413Schema,
3005
+ chatsUpdateVersionStatus422Schema,
3006
+ chatsUpdateVersionStatus429Schema,
3007
+ chatsUpdateVersionStatus500Schema
3008
+ ]);
3009
+ const chatsDownloadVersionPathChatIdSchema = z.string().describe("The unique identifier of the chat containing the version. Provided as a path parameter.");
3010
+ const chatsDownloadVersionPathVersionIdSchema = z.string().describe("The unique identifier of the version to download. Provided as a path parameter.");
3011
+ const chatsDownloadVersionQueryFormatSchema = z.enum([
3012
+ "zip",
3013
+ "tarball"
3014
+ ]).optional().default("zip").describe("The archive format for the download. Choose \"zip\" for broad compatibility or \"tarball\" for Unix/Linux systems.");
3015
+ const chatsDownloadVersionQueryIncludeDefaultFilesSchema = z.enum([
3016
+ "true",
3017
+ "false"
3018
+ ]).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.");
3019
+ const chatsDownloadVersionStatus200Schema = z.unknown();
3020
+ const chatsDownloadVersionStatus401Schema = z.unknown();
3021
+ const chatsDownloadVersionStatus403Schema = z.unknown();
3022
+ const chatsDownloadVersionStatus404Schema = z.unknown();
3023
+ const chatsDownloadVersionStatus409Schema = z.unknown();
3024
+ const chatsDownloadVersionStatus413Schema = z.unknown();
3025
+ const chatsDownloadVersionStatus422Schema = z.unknown();
3026
+ const chatsDownloadVersionStatus429Schema = z.unknown();
3027
+ const chatsDownloadVersionStatus500Schema = z.unknown();
3028
+ const chatsDownloadVersionResponseSchema = z.union([
3029
+ chatsDownloadVersionStatus200Schema,
3030
+ chatsDownloadVersionStatus401Schema,
3031
+ chatsDownloadVersionStatus403Schema,
3032
+ chatsDownloadVersionStatus404Schema,
3033
+ chatsDownloadVersionStatus409Schema,
3034
+ chatsDownloadVersionStatus413Schema,
3035
+ chatsDownloadVersionStatus422Schema,
3036
+ chatsDownloadVersionStatus429Schema,
3037
+ chatsDownloadVersionStatus500Schema
3038
+ ]);
3039
+ const chatsDeleteVersionFilesPathChatIdSchema = z.string().describe("The unique identifier of the chat containing the version to delete files from.");
3040
+ const chatsDeleteVersionFilesPathVersionIdSchema = z.string().describe("The unique identifier of the version (block) to delete files from.");
3041
+ const chatsDeleteVersionFilesStatus200Schema = z.unknown();
3042
+ const chatsDeleteVersionFilesStatus401Schema = z.unknown();
3043
+ const chatsDeleteVersionFilesStatus403Schema = z.unknown();
3044
+ const chatsDeleteVersionFilesStatus404Schema = z.unknown();
3045
+ const chatsDeleteVersionFilesStatus409Schema = z.unknown();
3046
+ const chatsDeleteVersionFilesStatus413Schema = z.unknown();
3047
+ const chatsDeleteVersionFilesStatus422Schema = z.unknown();
3048
+ const chatsDeleteVersionFilesStatus429Schema = z.unknown();
3049
+ const chatsDeleteVersionFilesStatus500Schema = z.unknown();
3050
+ const chatsDeleteVersionFilesResponseSchema = z.union([
3051
+ chatsDeleteVersionFilesStatus200Schema,
3052
+ chatsDeleteVersionFilesStatus401Schema,
3053
+ chatsDeleteVersionFilesStatus403Schema,
3054
+ chatsDeleteVersionFilesStatus404Schema,
3055
+ chatsDeleteVersionFilesStatus409Schema,
3056
+ chatsDeleteVersionFilesStatus413Schema,
3057
+ chatsDeleteVersionFilesStatus422Schema,
3058
+ chatsDeleteVersionFilesStatus429Schema,
3059
+ chatsDeleteVersionFilesStatus500Schema
3060
+ ]);
3061
+ const chatsResumePathChatIdSchema = z.string().describe("The unique identifier of the chat containing the message to resume. Provided as a path parameter.");
3062
+ const chatsResumePathMessageIdSchema = z.string().describe("The identifier of the specific message to resume. Provided as a path parameter.");
3063
+ const chatsResumeStatus200Schema = z.unknown();
3064
+ const chatsResumeStatus401Schema = z.unknown();
3065
+ const chatsResumeStatus403Schema = z.unknown();
3066
+ const chatsResumeStatus404Schema = z.unknown();
3067
+ const chatsResumeStatus409Schema = z.unknown();
3068
+ const chatsResumeStatus413Schema = z.unknown();
3069
+ const chatsResumeStatus422Schema = z.unknown();
3070
+ const chatsResumeStatus429Schema = z.unknown();
3071
+ const chatsResumeStatus500Schema = z.unknown();
3072
+ const chatsResumeResponseSchema = z.union([
3073
+ chatsResumeStatus200Schema,
3074
+ chatsResumeStatus401Schema,
3075
+ chatsResumeStatus403Schema,
3076
+ chatsResumeStatus404Schema,
3077
+ chatsResumeStatus409Schema,
3078
+ chatsResumeStatus413Schema,
3079
+ chatsResumeStatus422Schema,
3080
+ chatsResumeStatus429Schema,
3081
+ chatsResumeStatus500Schema
3082
+ ]);
3083
+ const chatsStopPathChatIdSchema = z.string().describe("The unique identifier of the chat containing the message to stop. Provided as a path parameter.");
3084
+ const chatsStopPathMessageIdSchema = z.string().describe("The identifier of the specific message to stop. Provided as a path parameter.");
3085
+ const chatsStopStatus200Schema = z.unknown();
3086
+ const chatsStopStatus401Schema = z.unknown();
3087
+ const chatsStopStatus403Schema = z.unknown();
3088
+ const chatsStopStatus404Schema = z.unknown();
3089
+ const chatsStopStatus409Schema = z.unknown();
3090
+ const chatsStopStatus413Schema = z.unknown();
3091
+ const chatsStopStatus422Schema = z.unknown();
3092
+ const chatsStopStatus429Schema = z.unknown();
3093
+ const chatsStopStatus500Schema = z.unknown();
3094
+ const chatsStopResponseSchema = z.union([
3095
+ chatsStopStatus200Schema,
3096
+ chatsStopStatus401Schema,
3097
+ chatsStopStatus403Schema,
3098
+ chatsStopStatus404Schema,
3099
+ chatsStopStatus409Schema,
3100
+ chatsStopStatus413Schema,
3101
+ chatsStopStatus422Schema,
3102
+ chatsStopStatus429Schema,
3103
+ chatsStopStatus500Schema
3104
+ ]);
3105
+ const chatsResolveTaskPathChatIdSchema = z.string().describe("The unique identifier of the chat containing the pending task. Provided as a path parameter.");
3106
+ const chatsResolveTaskStatus200Schema = z.unknown();
3107
+ const chatsResolveTaskStatus401Schema = z.unknown();
3108
+ const chatsResolveTaskStatus403Schema = z.unknown();
3109
+ const chatsResolveTaskStatus404Schema = z.unknown();
3110
+ const chatsResolveTaskStatus409Schema = z.unknown();
3111
+ const chatsResolveTaskStatus413Schema = z.unknown();
3112
+ const chatsResolveTaskStatus422Schema = z.unknown();
3113
+ const chatsResolveTaskStatus429Schema = z.unknown();
3114
+ const chatsResolveTaskStatus500Schema = z.unknown();
3115
+ const chatsResolveTaskResponseSchema = z.union([
3116
+ chatsResolveTaskStatus200Schema,
3117
+ chatsResolveTaskStatus401Schema,
3118
+ chatsResolveTaskStatus403Schema,
3119
+ chatsResolveTaskStatus404Schema,
3120
+ chatsResolveTaskStatus409Schema,
3121
+ chatsResolveTaskStatus413Schema,
3122
+ chatsResolveTaskStatus422Schema,
3123
+ chatsResolveTaskStatus429Schema,
3124
+ chatsResolveTaskStatus500Schema
3125
+ ]);
3126
+ const deploymentsFindQueryProjectIdSchema = z.string().optional().describe("The ID of the project to find deployments for");
3127
+ const deploymentsFindQueryChatIdSchema = z.string().describe("The ID of the chat to find deployments for");
3128
+ const deploymentsFindQueryVersionIdSchema = z.string().describe("The ID of the version to find deployments for");
3129
+ const deploymentsFindStatus200Schema = z.unknown();
3130
+ const deploymentsFindStatus401Schema = z.unknown();
3131
+ const deploymentsFindStatus403Schema = z.unknown();
3132
+ const deploymentsFindStatus404Schema = z.unknown();
3133
+ const deploymentsFindStatus409Schema = z.unknown();
3134
+ const deploymentsFindStatus413Schema = z.unknown();
3135
+ const deploymentsFindStatus422Schema = z.unknown();
3136
+ const deploymentsFindStatus429Schema = z.unknown();
3137
+ const deploymentsFindStatus500Schema = z.unknown();
3138
+ const deploymentsFindResponseSchema = z.union([
3139
+ deploymentsFindStatus200Schema,
3140
+ deploymentsFindStatus401Schema,
3141
+ deploymentsFindStatus403Schema,
3142
+ deploymentsFindStatus404Schema,
3143
+ deploymentsFindStatus409Schema,
3144
+ deploymentsFindStatus413Schema,
3145
+ deploymentsFindStatus422Schema,
3146
+ deploymentsFindStatus429Schema,
3147
+ deploymentsFindStatus500Schema
3148
+ ]);
3149
+ const deploymentsCreateStatus200Schema = z.unknown();
3150
+ const deploymentsCreateStatus401Schema = z.unknown();
3151
+ const deploymentsCreateStatus403Schema = z.unknown();
3152
+ const deploymentsCreateStatus404Schema = z.unknown();
3153
+ const deploymentsCreateStatus409Schema = z.unknown();
3154
+ const deploymentsCreateStatus413Schema = z.unknown();
3155
+ const deploymentsCreateStatus422Schema = z.unknown();
3156
+ const deploymentsCreateStatus429Schema = z.unknown();
3157
+ const deploymentsCreateStatus500Schema = z.unknown();
3158
+ const deploymentsCreateResponseSchema = z.union([
3159
+ deploymentsCreateStatus200Schema,
3160
+ deploymentsCreateStatus401Schema,
3161
+ deploymentsCreateStatus403Schema,
3162
+ deploymentsCreateStatus404Schema,
3163
+ deploymentsCreateStatus409Schema,
3164
+ deploymentsCreateStatus413Schema,
3165
+ deploymentsCreateStatus422Schema,
3166
+ deploymentsCreateStatus429Schema,
3167
+ deploymentsCreateStatus500Schema
3168
+ ]);
3169
+ const deploymentsGetByIdPathDeploymentIdSchema = z.string().describe("Path parameter \"deploymentId\"");
3170
+ const deploymentsGetByIdStatus200Schema = z.unknown();
3171
+ const deploymentsGetByIdStatus401Schema = z.unknown();
3172
+ const deploymentsGetByIdStatus403Schema = z.unknown();
3173
+ const deploymentsGetByIdStatus404Schema = z.unknown();
3174
+ const deploymentsGetByIdStatus409Schema = z.unknown();
3175
+ const deploymentsGetByIdStatus413Schema = z.unknown();
3176
+ const deploymentsGetByIdStatus422Schema = z.unknown();
3177
+ const deploymentsGetByIdStatus429Schema = z.unknown();
3178
+ const deploymentsGetByIdStatus500Schema = z.unknown();
3179
+ const deploymentsGetByIdResponseSchema = z.union([
3180
+ deploymentsGetByIdStatus200Schema,
3181
+ deploymentsGetByIdStatus401Schema,
3182
+ deploymentsGetByIdStatus403Schema,
3183
+ deploymentsGetByIdStatus404Schema,
3184
+ deploymentsGetByIdStatus409Schema,
3185
+ deploymentsGetByIdStatus413Schema,
3186
+ deploymentsGetByIdStatus422Schema,
3187
+ deploymentsGetByIdStatus429Schema,
3188
+ deploymentsGetByIdStatus500Schema
3189
+ ]);
3190
+ const deploymentsDeletePathDeploymentIdSchema = z.string().describe("Path parameter \"deploymentId\"");
3191
+ const deploymentsDeleteStatus200Schema = z.unknown();
3192
+ const deploymentsDeleteStatus401Schema = z.unknown();
3193
+ const deploymentsDeleteStatus403Schema = z.unknown();
3194
+ const deploymentsDeleteStatus404Schema = z.unknown();
3195
+ const deploymentsDeleteStatus409Schema = z.unknown();
3196
+ const deploymentsDeleteStatus413Schema = z.unknown();
3197
+ const deploymentsDeleteStatus422Schema = z.unknown();
3198
+ const deploymentsDeleteStatus429Schema = z.unknown();
3199
+ const deploymentsDeleteStatus500Schema = z.unknown();
3200
+ const deploymentsDeleteResponseSchema = z.union([
3201
+ deploymentsDeleteStatus200Schema,
3202
+ deploymentsDeleteStatus401Schema,
3203
+ deploymentsDeleteStatus403Schema,
3204
+ deploymentsDeleteStatus404Schema,
3205
+ deploymentsDeleteStatus409Schema,
3206
+ deploymentsDeleteStatus413Schema,
3207
+ deploymentsDeleteStatus422Schema,
3208
+ deploymentsDeleteStatus429Schema,
3209
+ deploymentsDeleteStatus500Schema
3210
+ ]);
3211
+ const deploymentsFindLogsPathDeploymentIdSchema = z.string().describe("The unique identifier of the deployment to retrieve logs for. Provided as a path parameter.");
3212
+ const deploymentsFindLogsQuerySinceSchema = z.number().optional().describe("A UNIX timestamp (in seconds) used to filter logs. Returns only log entries generated after the specified time.");
3213
+ const deploymentsFindLogsStatus200Schema = z.unknown();
3214
+ const deploymentsFindLogsStatus401Schema = z.unknown();
3215
+ const deploymentsFindLogsStatus403Schema = z.unknown();
3216
+ const deploymentsFindLogsStatus404Schema = z.unknown();
3217
+ const deploymentsFindLogsStatus409Schema = z.unknown();
3218
+ const deploymentsFindLogsStatus413Schema = z.unknown();
3219
+ const deploymentsFindLogsStatus422Schema = z.unknown();
3220
+ const deploymentsFindLogsStatus429Schema = z.unknown();
3221
+ const deploymentsFindLogsStatus500Schema = z.unknown();
3222
+ const deploymentsFindLogsResponseSchema = z.union([
3223
+ deploymentsFindLogsStatus200Schema,
3224
+ deploymentsFindLogsStatus401Schema,
3225
+ deploymentsFindLogsStatus403Schema,
3226
+ deploymentsFindLogsStatus404Schema,
3227
+ deploymentsFindLogsStatus409Schema,
3228
+ deploymentsFindLogsStatus413Schema,
3229
+ deploymentsFindLogsStatus422Schema,
3230
+ deploymentsFindLogsStatus429Schema,
3231
+ deploymentsFindLogsStatus500Schema
3232
+ ]);
3233
+ const deploymentsFindErrorsPathDeploymentIdSchema = z.string().describe("The unique identifier of the deployment to inspect for errors. Provided as a path parameter.");
3234
+ const deploymentsFindErrorsStatus200Schema = z.unknown();
3235
+ const deploymentsFindErrorsStatus401Schema = z.unknown();
3236
+ const deploymentsFindErrorsStatus403Schema = z.unknown();
3237
+ const deploymentsFindErrorsStatus404Schema = z.unknown();
3238
+ const deploymentsFindErrorsStatus409Schema = z.unknown();
3239
+ const deploymentsFindErrorsStatus413Schema = z.unknown();
3240
+ const deploymentsFindErrorsStatus422Schema = z.unknown();
3241
+ const deploymentsFindErrorsStatus429Schema = z.unknown();
3242
+ const deploymentsFindErrorsStatus500Schema = z.unknown();
3243
+ const deploymentsFindErrorsResponseSchema = z.union([
3244
+ deploymentsFindErrorsStatus200Schema,
3245
+ deploymentsFindErrorsStatus401Schema,
3246
+ deploymentsFindErrorsStatus403Schema,
3247
+ deploymentsFindErrorsStatus404Schema,
3248
+ deploymentsFindErrorsStatus409Schema,
3249
+ deploymentsFindErrorsStatus413Schema,
3250
+ deploymentsFindErrorsStatus422Schema,
3251
+ deploymentsFindErrorsStatus429Schema,
3252
+ deploymentsFindErrorsStatus500Schema
3253
+ ]);
3254
+ const hooksFindStatus200Schema = z.unknown();
3255
+ const hooksFindStatus401Schema = z.unknown();
3256
+ const hooksFindStatus403Schema = z.unknown();
3257
+ const hooksFindStatus404Schema = z.unknown();
3258
+ const hooksFindStatus409Schema = z.unknown();
3259
+ const hooksFindStatus413Schema = z.unknown();
3260
+ const hooksFindStatus422Schema = z.unknown();
3261
+ const hooksFindStatus429Schema = z.unknown();
3262
+ const hooksFindStatus500Schema = z.unknown();
3263
+ const hooksFindResponseSchema = z.union([
3264
+ hooksFindStatus200Schema,
3265
+ hooksFindStatus401Schema,
3266
+ hooksFindStatus403Schema,
3267
+ hooksFindStatus404Schema,
3268
+ hooksFindStatus409Schema,
3269
+ hooksFindStatus413Schema,
3270
+ hooksFindStatus422Schema,
3271
+ hooksFindStatus429Schema,
3272
+ hooksFindStatus500Schema
3273
+ ]);
3274
+ const hooksCreateStatus200Schema = z.unknown();
3275
+ const hooksCreateStatus401Schema = z.unknown();
3276
+ const hooksCreateStatus403Schema = z.unknown();
3277
+ const hooksCreateStatus404Schema = z.unknown();
3278
+ const hooksCreateStatus409Schema = z.unknown();
3279
+ const hooksCreateStatus413Schema = z.unknown();
3280
+ const hooksCreateStatus422Schema = z.unknown();
3281
+ const hooksCreateStatus429Schema = z.unknown();
3282
+ const hooksCreateStatus500Schema = z.unknown();
3283
+ const hooksCreateResponseSchema = z.union([
3284
+ hooksCreateStatus200Schema,
3285
+ hooksCreateStatus401Schema,
3286
+ hooksCreateStatus403Schema,
3287
+ hooksCreateStatus404Schema,
3288
+ hooksCreateStatus409Schema,
3289
+ hooksCreateStatus413Schema,
3290
+ hooksCreateStatus422Schema,
3291
+ hooksCreateStatus429Schema,
3292
+ hooksCreateStatus500Schema
3293
+ ]);
3294
+ const hooksGetByIdPathHookIdSchema = z.string().describe("The unique identifier of the hook to retrieve.");
3295
+ const hooksGetByIdStatus200Schema = z.unknown();
3296
+ const hooksGetByIdStatus401Schema = z.unknown();
3297
+ const hooksGetByIdStatus403Schema = z.unknown();
3298
+ const hooksGetByIdStatus404Schema = z.unknown();
3299
+ const hooksGetByIdStatus409Schema = z.unknown();
3300
+ const hooksGetByIdStatus413Schema = z.unknown();
3301
+ const hooksGetByIdStatus422Schema = z.unknown();
3302
+ const hooksGetByIdStatus429Schema = z.unknown();
3303
+ const hooksGetByIdStatus500Schema = z.unknown();
3304
+ const hooksGetByIdResponseSchema = z.union([
3305
+ hooksGetByIdStatus200Schema,
3306
+ hooksGetByIdStatus401Schema,
3307
+ hooksGetByIdStatus403Schema,
3308
+ hooksGetByIdStatus404Schema,
3309
+ hooksGetByIdStatus409Schema,
3310
+ hooksGetByIdStatus413Schema,
3311
+ hooksGetByIdStatus422Schema,
3312
+ hooksGetByIdStatus429Schema,
3313
+ hooksGetByIdStatus500Schema
3314
+ ]);
3315
+ const hooksUpdatePathHookIdSchema = z.string().describe("The ID of the webhook to update. Provided as a path parameter.");
3316
+ const hooksUpdateStatus200Schema = z.unknown();
3317
+ const hooksUpdateStatus401Schema = z.unknown();
3318
+ const hooksUpdateStatus403Schema = z.unknown();
3319
+ const hooksUpdateStatus404Schema = z.unknown();
3320
+ const hooksUpdateStatus409Schema = z.unknown();
3321
+ const hooksUpdateStatus413Schema = z.unknown();
3322
+ const hooksUpdateStatus422Schema = z.unknown();
3323
+ const hooksUpdateStatus429Schema = z.unknown();
3324
+ const hooksUpdateStatus500Schema = z.unknown();
3325
+ const hooksUpdateResponseSchema = z.union([
3326
+ hooksUpdateStatus200Schema,
3327
+ hooksUpdateStatus401Schema,
3328
+ hooksUpdateStatus403Schema,
3329
+ hooksUpdateStatus404Schema,
3330
+ hooksUpdateStatus409Schema,
3331
+ hooksUpdateStatus413Schema,
3332
+ hooksUpdateStatus422Schema,
3333
+ hooksUpdateStatus429Schema,
3334
+ hooksUpdateStatus500Schema
3335
+ ]);
3336
+ const hooksDeletePathHookIdSchema = z.string().describe("The ID of the webhook to delete. Provided as a path parameter.");
3337
+ const hooksDeleteStatus200Schema = z.unknown();
3338
+ const hooksDeleteStatus401Schema = z.unknown();
3339
+ const hooksDeleteStatus403Schema = z.unknown();
3340
+ const hooksDeleteStatus404Schema = z.unknown();
3341
+ const hooksDeleteStatus409Schema = z.unknown();
3342
+ const hooksDeleteStatus413Schema = z.unknown();
3343
+ const hooksDeleteStatus422Schema = z.unknown();
3344
+ const hooksDeleteStatus429Schema = z.unknown();
3345
+ const hooksDeleteStatus500Schema = z.unknown();
3346
+ const hooksDeleteResponseSchema = z.union([
3347
+ hooksDeleteStatus200Schema,
3348
+ hooksDeleteStatus401Schema,
3349
+ hooksDeleteStatus403Schema,
3350
+ hooksDeleteStatus404Schema,
3351
+ hooksDeleteStatus409Schema,
3352
+ hooksDeleteStatus413Schema,
3353
+ hooksDeleteStatus422Schema,
3354
+ hooksDeleteStatus429Schema,
3355
+ hooksDeleteStatus500Schema
3356
+ ]);
3357
+ const integrationsVercelProjectsFindStatus200Schema = z.unknown();
3358
+ const integrationsVercelProjectsFindStatus401Schema = z.unknown();
3359
+ const integrationsVercelProjectsFindStatus403Schema = z.unknown();
3360
+ const integrationsVercelProjectsFindStatus404Schema = z.unknown();
3361
+ const integrationsVercelProjectsFindStatus409Schema = z.unknown();
3362
+ const integrationsVercelProjectsFindStatus413Schema = z.unknown();
3363
+ const integrationsVercelProjectsFindStatus422Schema = z.unknown();
3364
+ const integrationsVercelProjectsFindStatus429Schema = z.unknown();
3365
+ const integrationsVercelProjectsFindStatus500Schema = z.unknown();
3366
+ const integrationsVercelProjectsFindResponseSchema = z.union([
3367
+ integrationsVercelProjectsFindStatus200Schema,
3368
+ integrationsVercelProjectsFindStatus401Schema,
3369
+ integrationsVercelProjectsFindStatus403Schema,
3370
+ integrationsVercelProjectsFindStatus404Schema,
3371
+ integrationsVercelProjectsFindStatus409Schema,
3372
+ integrationsVercelProjectsFindStatus413Schema,
3373
+ integrationsVercelProjectsFindStatus422Schema,
3374
+ integrationsVercelProjectsFindStatus429Schema,
3375
+ integrationsVercelProjectsFindStatus500Schema
3376
+ ]);
3377
+ const integrationsVercelProjectsCreateStatus200Schema = z.unknown();
3378
+ const integrationsVercelProjectsCreateStatus401Schema = z.unknown();
3379
+ const integrationsVercelProjectsCreateStatus403Schema = z.unknown();
3380
+ const integrationsVercelProjectsCreateStatus404Schema = z.unknown();
3381
+ const integrationsVercelProjectsCreateStatus409Schema = z.unknown();
3382
+ const integrationsVercelProjectsCreateStatus413Schema = z.unknown();
3383
+ const integrationsVercelProjectsCreateStatus422Schema = z.unknown();
3384
+ const integrationsVercelProjectsCreateStatus429Schema = z.unknown();
3385
+ const integrationsVercelProjectsCreateStatus500Schema = z.unknown();
3386
+ const integrationsVercelProjectsCreateResponseSchema = z.union([
3387
+ integrationsVercelProjectsCreateStatus200Schema,
3388
+ integrationsVercelProjectsCreateStatus401Schema,
3389
+ integrationsVercelProjectsCreateStatus403Schema,
3390
+ integrationsVercelProjectsCreateStatus404Schema,
3391
+ integrationsVercelProjectsCreateStatus409Schema,
3392
+ integrationsVercelProjectsCreateStatus413Schema,
3393
+ integrationsVercelProjectsCreateStatus422Schema,
3394
+ integrationsVercelProjectsCreateStatus429Schema,
3395
+ integrationsVercelProjectsCreateStatus500Schema
3396
+ ]);
3397
+ const projectsFindStatus200Schema = z.unknown();
3398
+ const projectsFindStatus401Schema = z.unknown();
3399
+ const projectsFindStatus403Schema = z.unknown();
3400
+ const projectsFindStatus404Schema = z.unknown();
3401
+ const projectsFindStatus409Schema = z.unknown();
3402
+ const projectsFindStatus413Schema = z.unknown();
3403
+ const projectsFindStatus422Schema = z.unknown();
3404
+ const projectsFindStatus429Schema = z.unknown();
3405
+ const projectsFindStatus500Schema = z.unknown();
3406
+ const projectsFindResponseSchema = z.union([
3407
+ projectsFindStatus200Schema,
3408
+ projectsFindStatus401Schema,
3409
+ projectsFindStatus403Schema,
3410
+ projectsFindStatus404Schema,
3411
+ projectsFindStatus409Schema,
3412
+ projectsFindStatus413Schema,
3413
+ projectsFindStatus422Schema,
3414
+ projectsFindStatus429Schema,
3415
+ projectsFindStatus500Schema
3416
+ ]);
3417
+ const projectsCreateStatus200Schema = z.unknown();
3418
+ const projectsCreateStatus401Schema = z.unknown();
3419
+ const projectsCreateStatus403Schema = z.unknown();
3420
+ const projectsCreateStatus404Schema = z.unknown();
3421
+ const projectsCreateStatus409Schema = z.unknown();
3422
+ const projectsCreateStatus413Schema = z.unknown();
3423
+ const projectsCreateStatus422Schema = z.unknown();
3424
+ const projectsCreateStatus429Schema = z.unknown();
3425
+ const projectsCreateStatus500Schema = z.unknown();
3426
+ const projectsCreateResponseSchema = z.union([
3427
+ projectsCreateStatus200Schema,
3428
+ projectsCreateStatus401Schema,
3429
+ projectsCreateStatus403Schema,
3430
+ projectsCreateStatus404Schema,
3431
+ projectsCreateStatus409Schema,
3432
+ projectsCreateStatus413Schema,
3433
+ projectsCreateStatus422Schema,
3434
+ projectsCreateStatus429Schema,
3435
+ projectsCreateStatus500Schema
3436
+ ]);
3437
+ const projectsGetByIdPathProjectIdSchema = z.string().describe("The unique identifier of the project to retrieve.");
3438
+ const projectsGetByIdStatus200Schema = z.unknown();
3439
+ const projectsGetByIdStatus401Schema = z.unknown();
3440
+ const projectsGetByIdStatus403Schema = z.unknown();
3441
+ const projectsGetByIdStatus404Schema = z.unknown();
3442
+ const projectsGetByIdStatus409Schema = z.unknown();
3443
+ const projectsGetByIdStatus413Schema = z.unknown();
3444
+ const projectsGetByIdStatus422Schema = z.unknown();
3445
+ const projectsGetByIdStatus429Schema = z.unknown();
3446
+ const projectsGetByIdStatus500Schema = z.unknown();
3447
+ const projectsGetByIdResponseSchema = z.union([
3448
+ projectsGetByIdStatus200Schema,
3449
+ projectsGetByIdStatus401Schema,
3450
+ projectsGetByIdStatus403Schema,
3451
+ projectsGetByIdStatus404Schema,
3452
+ projectsGetByIdStatus409Schema,
3453
+ projectsGetByIdStatus413Schema,
3454
+ projectsGetByIdStatus422Schema,
3455
+ projectsGetByIdStatus429Schema,
3456
+ projectsGetByIdStatus500Schema
3457
+ ]);
3458
+ const projectsUpdatePathProjectIdSchema = z.string().describe("The unique identifier of the project to update. Provided as a path parameter.");
3459
+ const projectsUpdateStatus200Schema = z.unknown();
3460
+ const projectsUpdateStatus401Schema = z.unknown();
3461
+ const projectsUpdateStatus403Schema = z.unknown();
3462
+ const projectsUpdateStatus404Schema = z.unknown();
3463
+ const projectsUpdateStatus409Schema = z.unknown();
3464
+ const projectsUpdateStatus413Schema = z.unknown();
3465
+ const projectsUpdateStatus422Schema = z.unknown();
3466
+ const projectsUpdateStatus429Schema = z.unknown();
3467
+ const projectsUpdateStatus500Schema = z.unknown();
3468
+ const projectsUpdateResponseSchema = z.union([
3469
+ projectsUpdateStatus200Schema,
3470
+ projectsUpdateStatus401Schema,
3471
+ projectsUpdateStatus403Schema,
3472
+ projectsUpdateStatus404Schema,
3473
+ projectsUpdateStatus409Schema,
3474
+ projectsUpdateStatus413Schema,
3475
+ projectsUpdateStatus422Schema,
3476
+ projectsUpdateStatus429Schema,
3477
+ projectsUpdateStatus500Schema
3478
+ ]);
3479
+ const projectsDeletePathProjectIdSchema = z.string().describe("The unique identifier of the project to delete. This must be passed as a path parameter in the URL.");
3480
+ const projectsDeleteQueryDeleteAllChatsSchema = z.enum([
3481
+ "true",
3482
+ "false"
3483
+ ]).optional().default("false").describe("If true, deletes all the chats associated with the given project ID. Deleting is permanent. Defaults to false.");
3484
+ const projectsDeleteStatus200Schema = z.unknown();
3485
+ const projectsDeleteStatus401Schema = z.unknown();
3486
+ const projectsDeleteStatus403Schema = z.unknown();
3487
+ const projectsDeleteStatus404Schema = z.unknown();
3488
+ const projectsDeleteStatus409Schema = z.unknown();
3489
+ const projectsDeleteStatus413Schema = z.unknown();
3490
+ const projectsDeleteStatus422Schema = z.unknown();
3491
+ const projectsDeleteStatus429Schema = z.unknown();
3492
+ const projectsDeleteStatus500Schema = z.unknown();
3493
+ const projectsDeleteResponseSchema = z.union([
3494
+ projectsDeleteStatus200Schema,
3495
+ projectsDeleteStatus401Schema,
3496
+ projectsDeleteStatus403Schema,
3497
+ projectsDeleteStatus404Schema,
3498
+ projectsDeleteStatus409Schema,
3499
+ projectsDeleteStatus413Schema,
3500
+ projectsDeleteStatus422Schema,
3501
+ projectsDeleteStatus429Schema,
3502
+ projectsDeleteStatus500Schema
3503
+ ]);
3504
+ const projectsAssignPathProjectIdSchema = z.string().describe("The ID of the project to assign.");
3505
+ const projectsAssignStatus200Schema = z.unknown();
3506
+ const projectsAssignStatus401Schema = z.unknown();
3507
+ const projectsAssignStatus403Schema = z.unknown();
3508
+ const projectsAssignStatus404Schema = z.unknown();
3509
+ const projectsAssignStatus409Schema = z.unknown();
3510
+ const projectsAssignStatus413Schema = z.unknown();
3511
+ const projectsAssignStatus422Schema = z.unknown();
3512
+ const projectsAssignStatus429Schema = z.unknown();
3513
+ const projectsAssignStatus500Schema = z.unknown();
3514
+ const projectsAssignResponseSchema = z.union([
3515
+ projectsAssignStatus200Schema,
3516
+ projectsAssignStatus401Schema,
3517
+ projectsAssignStatus403Schema,
3518
+ projectsAssignStatus404Schema,
3519
+ projectsAssignStatus409Schema,
3520
+ projectsAssignStatus413Schema,
3521
+ projectsAssignStatus422Schema,
3522
+ projectsAssignStatus429Schema,
3523
+ projectsAssignStatus500Schema
3524
+ ]);
3525
+ const projectsFindEnvVarsPathProjectIdSchema = z.string().describe("The unique identifier of the project whose environment variables should be retrieved.");
3526
+ const projectsFindEnvVarsQueryDecryptedSchema = z.enum([
3527
+ "true",
3528
+ "false"
3529
+ ]).optional().describe("Whether to return decrypted values. Defaults to false (encrypted).");
3530
+ const projectsFindEnvVarsStatus200Schema = z.unknown();
3531
+ const projectsFindEnvVarsStatus401Schema = z.unknown();
3532
+ const projectsFindEnvVarsStatus403Schema = z.unknown();
3533
+ const projectsFindEnvVarsStatus404Schema = z.unknown();
3534
+ const projectsFindEnvVarsStatus409Schema = z.unknown();
3535
+ const projectsFindEnvVarsStatus413Schema = z.unknown();
3536
+ const projectsFindEnvVarsStatus422Schema = z.unknown();
3537
+ const projectsFindEnvVarsStatus429Schema = z.unknown();
3538
+ const projectsFindEnvVarsStatus500Schema = z.unknown();
3539
+ const projectsFindEnvVarsResponseSchema = z.union([
3540
+ projectsFindEnvVarsStatus200Schema,
3541
+ projectsFindEnvVarsStatus401Schema,
3542
+ projectsFindEnvVarsStatus403Schema,
3543
+ projectsFindEnvVarsStatus404Schema,
3544
+ projectsFindEnvVarsStatus409Schema,
3545
+ projectsFindEnvVarsStatus413Schema,
3546
+ projectsFindEnvVarsStatus422Schema,
3547
+ projectsFindEnvVarsStatus429Schema,
3548
+ projectsFindEnvVarsStatus500Schema
3549
+ ]);
3550
+ const projectsCreateEnvVarsPathProjectIdSchema = z.string().describe("The unique identifier of the project where environment variables should be created.");
3551
+ const projectsCreateEnvVarsQueryDecryptedSchema = z.enum([
3552
+ "true",
3553
+ "false"
3554
+ ]).optional().describe("Whether to return decrypted values. Defaults to false (encrypted).");
3555
+ const projectsCreateEnvVarsStatus200Schema = z.unknown();
3556
+ const projectsCreateEnvVarsStatus401Schema = z.unknown();
3557
+ const projectsCreateEnvVarsStatus403Schema = z.unknown();
3558
+ const projectsCreateEnvVarsStatus404Schema = z.unknown();
3559
+ const projectsCreateEnvVarsStatus409Schema = z.unknown();
3560
+ const projectsCreateEnvVarsStatus413Schema = z.unknown();
3561
+ const projectsCreateEnvVarsStatus422Schema = z.unknown();
3562
+ const projectsCreateEnvVarsStatus429Schema = z.unknown();
3563
+ const projectsCreateEnvVarsStatus500Schema = z.unknown();
3564
+ const projectsCreateEnvVarsResponseSchema = z.union([
3565
+ projectsCreateEnvVarsStatus200Schema,
3566
+ projectsCreateEnvVarsStatus401Schema,
3567
+ projectsCreateEnvVarsStatus403Schema,
3568
+ projectsCreateEnvVarsStatus404Schema,
3569
+ projectsCreateEnvVarsStatus409Schema,
3570
+ projectsCreateEnvVarsStatus413Schema,
3571
+ projectsCreateEnvVarsStatus422Schema,
3572
+ projectsCreateEnvVarsStatus429Schema,
3573
+ projectsCreateEnvVarsStatus500Schema
3574
+ ]);
3575
+ const projectsUpdateEnvVarsPathProjectIdSchema = z.string().describe("The unique identifier of the project whose environment variables should be updated.");
3576
+ const projectsUpdateEnvVarsQueryDecryptedSchema = z.enum([
3577
+ "true",
3578
+ "false"
3579
+ ]).optional().describe("Whether to return decrypted values. Defaults to false (encrypted).");
3580
+ const projectsUpdateEnvVarsStatus200Schema = z.unknown();
3581
+ const projectsUpdateEnvVarsStatus401Schema = z.unknown();
3582
+ const projectsUpdateEnvVarsStatus403Schema = z.unknown();
3583
+ const projectsUpdateEnvVarsStatus404Schema = z.unknown();
3584
+ const projectsUpdateEnvVarsStatus409Schema = z.unknown();
3585
+ const projectsUpdateEnvVarsStatus413Schema = z.unknown();
3586
+ const projectsUpdateEnvVarsStatus422Schema = z.unknown();
3587
+ const projectsUpdateEnvVarsStatus429Schema = z.unknown();
3588
+ const projectsUpdateEnvVarsStatus500Schema = z.unknown();
3589
+ const projectsUpdateEnvVarsResponseSchema = z.union([
3590
+ projectsUpdateEnvVarsStatus200Schema,
3591
+ projectsUpdateEnvVarsStatus401Schema,
3592
+ projectsUpdateEnvVarsStatus403Schema,
3593
+ projectsUpdateEnvVarsStatus404Schema,
3594
+ projectsUpdateEnvVarsStatus409Schema,
3595
+ projectsUpdateEnvVarsStatus413Schema,
3596
+ projectsUpdateEnvVarsStatus422Schema,
3597
+ projectsUpdateEnvVarsStatus429Schema,
3598
+ projectsUpdateEnvVarsStatus500Schema
3599
+ ]);
3600
+ const projectsDeleteEnvVarsPathProjectIdSchema = z.string().describe("The unique identifier of the project whose environment variables should be deleted.");
3601
+ const projectsDeleteEnvVarsStatus200Schema = z.unknown();
3602
+ const projectsDeleteEnvVarsStatus401Schema = z.unknown();
3603
+ const projectsDeleteEnvVarsStatus403Schema = z.unknown();
3604
+ const projectsDeleteEnvVarsStatus404Schema = z.unknown();
3605
+ const projectsDeleteEnvVarsStatus409Schema = z.unknown();
3606
+ const projectsDeleteEnvVarsStatus413Schema = z.unknown();
3607
+ const projectsDeleteEnvVarsStatus422Schema = z.unknown();
3608
+ const projectsDeleteEnvVarsStatus429Schema = z.unknown();
3609
+ const projectsDeleteEnvVarsStatus500Schema = z.unknown();
3610
+ const projectsDeleteEnvVarsResponseSchema = z.union([
3611
+ projectsDeleteEnvVarsStatus200Schema,
3612
+ projectsDeleteEnvVarsStatus401Schema,
3613
+ projectsDeleteEnvVarsStatus403Schema,
3614
+ projectsDeleteEnvVarsStatus404Schema,
3615
+ projectsDeleteEnvVarsStatus409Schema,
3616
+ projectsDeleteEnvVarsStatus413Schema,
3617
+ projectsDeleteEnvVarsStatus422Schema,
3618
+ projectsDeleteEnvVarsStatus429Schema,
3619
+ projectsDeleteEnvVarsStatus500Schema
3620
+ ]);
3621
+ const projectsGetEnvVarPathProjectIdSchema = z.string().describe("The unique identifier of the project that owns the environment variable.");
3622
+ const projectsGetEnvVarPathEnvironmentVariableIdSchema = z.string().describe("The unique identifier of the environment variable to retrieve.");
3623
+ const projectsGetEnvVarQueryDecryptedSchema = z.enum([
3624
+ "true",
3625
+ "false"
3626
+ ]).optional().describe("Whether to return decrypted values. Defaults to false (encrypted).");
3627
+ const projectsGetEnvVarStatus200Schema = z.unknown();
3628
+ const projectsGetEnvVarStatus401Schema = z.unknown();
3629
+ const projectsGetEnvVarStatus403Schema = z.unknown();
3630
+ const projectsGetEnvVarStatus404Schema = z.unknown();
3631
+ const projectsGetEnvVarStatus409Schema = z.unknown();
3632
+ const projectsGetEnvVarStatus413Schema = z.unknown();
3633
+ const projectsGetEnvVarStatus422Schema = z.unknown();
3634
+ const projectsGetEnvVarStatus429Schema = z.unknown();
3635
+ const projectsGetEnvVarStatus500Schema = z.unknown();
3636
+ const projectsGetEnvVarResponseSchema = z.union([
3637
+ projectsGetEnvVarStatus200Schema,
3638
+ projectsGetEnvVarStatus401Schema,
3639
+ projectsGetEnvVarStatus403Schema,
3640
+ projectsGetEnvVarStatus404Schema,
3641
+ projectsGetEnvVarStatus409Schema,
3642
+ projectsGetEnvVarStatus413Schema,
3643
+ projectsGetEnvVarStatus422Schema,
3644
+ projectsGetEnvVarStatus429Schema,
3645
+ projectsGetEnvVarStatus500Schema
3646
+ ]);
3647
+ const rateLimitsFindQueryScopeSchema = z.string().optional().describe("The context or namespace to check rate limits for (e.g., a project slug or feature area).");
3648
+ const rateLimitsFindStatus200Schema = z.unknown();
3649
+ const rateLimitsFindStatus401Schema = z.unknown();
3650
+ const rateLimitsFindStatus403Schema = z.unknown();
3651
+ const rateLimitsFindStatus404Schema = z.unknown();
3652
+ const rateLimitsFindStatus409Schema = z.unknown();
3653
+ const rateLimitsFindStatus413Schema = z.unknown();
3654
+ const rateLimitsFindStatus422Schema = z.unknown();
3655
+ const rateLimitsFindStatus429Schema = z.unknown();
3656
+ const rateLimitsFindStatus500Schema = z.unknown();
3657
+ const rateLimitsFindResponseSchema = z.union([
3658
+ rateLimitsFindStatus200Schema,
3659
+ rateLimitsFindStatus401Schema,
3660
+ rateLimitsFindStatus403Schema,
3661
+ rateLimitsFindStatus404Schema,
3662
+ rateLimitsFindStatus409Schema,
3663
+ rateLimitsFindStatus413Schema,
3664
+ rateLimitsFindStatus422Schema,
3665
+ rateLimitsFindStatus429Schema,
3666
+ rateLimitsFindStatus500Schema
3667
+ ]);
3668
+ const userGetStatus200Schema = z.unknown();
3669
+ const userGetStatus401Schema = z.unknown();
3670
+ const userGetStatus403Schema = z.unknown();
3671
+ const userGetStatus404Schema = z.unknown();
3672
+ const userGetStatus409Schema = z.unknown();
3673
+ const userGetStatus413Schema = z.unknown();
3674
+ const userGetStatus422Schema = z.unknown();
3675
+ const userGetStatus429Schema = z.unknown();
3676
+ const userGetStatus500Schema = z.unknown();
3677
+ const userGetResponseSchema = z.union([
3678
+ userGetStatus200Schema,
3679
+ userGetStatus401Schema,
3680
+ userGetStatus403Schema,
3681
+ userGetStatus404Schema,
3682
+ userGetStatus409Schema,
3683
+ userGetStatus413Schema,
3684
+ userGetStatus422Schema,
3685
+ userGetStatus429Schema,
3686
+ userGetStatus500Schema
3687
+ ]);
3688
+ const userGetBillingQueryScopeSchema = z.string().optional().describe("Filters billing data by a specific scope, such as a project ID or slug.");
3689
+ const userGetBillingStatus200Schema = z.unknown();
3690
+ const userGetBillingStatus401Schema = z.unknown();
3691
+ const userGetBillingStatus403Schema = z.unknown();
3692
+ const userGetBillingStatus404Schema = z.unknown();
3693
+ const userGetBillingStatus409Schema = z.unknown();
3694
+ const userGetBillingStatus413Schema = z.unknown();
3695
+ const userGetBillingStatus422Schema = z.unknown();
3696
+ const userGetBillingStatus429Schema = z.unknown();
3697
+ const userGetBillingStatus500Schema = z.unknown();
3698
+ const userGetBillingResponseSchema = z.union([
3699
+ userGetBillingStatus200Schema,
3700
+ userGetBillingStatus401Schema,
3701
+ userGetBillingStatus403Schema,
3702
+ userGetBillingStatus404Schema,
3703
+ userGetBillingStatus409Schema,
3704
+ userGetBillingStatus413Schema,
3705
+ userGetBillingStatus422Schema,
3706
+ userGetBillingStatus429Schema,
3707
+ userGetBillingStatus500Schema
3708
+ ]);
3709
+ const userGetPlanStatus200Schema = z.unknown();
3710
+ const userGetPlanStatus401Schema = z.unknown();
3711
+ const userGetPlanStatus403Schema = z.unknown();
3712
+ const userGetPlanStatus404Schema = z.unknown();
3713
+ const userGetPlanStatus409Schema = z.unknown();
3714
+ const userGetPlanStatus413Schema = z.unknown();
3715
+ const userGetPlanStatus422Schema = z.unknown();
3716
+ const userGetPlanStatus429Schema = z.unknown();
3717
+ const userGetPlanStatus500Schema = z.unknown();
3718
+ const userGetPlanResponseSchema = z.union([
3719
+ userGetPlanStatus200Schema,
3720
+ userGetPlanStatus401Schema,
3721
+ userGetPlanStatus403Schema,
3722
+ userGetPlanStatus404Schema,
3723
+ userGetPlanStatus409Schema,
3724
+ userGetPlanStatus413Schema,
3725
+ userGetPlanStatus422Schema,
3726
+ userGetPlanStatus429Schema,
3727
+ userGetPlanStatus500Schema
3728
+ ]);
3729
+ const userGetScopesStatus200Schema = z.unknown();
3730
+ const userGetScopesStatus401Schema = z.unknown();
3731
+ const userGetScopesStatus403Schema = z.unknown();
3732
+ const userGetScopesStatus404Schema = z.unknown();
3733
+ const userGetScopesStatus409Schema = z.unknown();
3734
+ const userGetScopesStatus413Schema = z.unknown();
3735
+ const userGetScopesStatus422Schema = z.unknown();
3736
+ const userGetScopesStatus429Schema = z.unknown();
3737
+ const userGetScopesStatus500Schema = z.unknown();
3738
+ const userGetScopesResponseSchema = z.union([
3739
+ userGetScopesStatus200Schema,
3740
+ userGetScopesStatus401Schema,
3741
+ userGetScopesStatus403Schema,
3742
+ userGetScopesStatus404Schema,
3743
+ userGetScopesStatus409Schema,
3744
+ userGetScopesStatus413Schema,
3745
+ userGetScopesStatus422Schema,
3746
+ userGetScopesStatus429Schema,
3747
+ userGetScopesStatus500Schema
3748
+ ]);
3749
+ const chatsRestorePathChatIdSchema = z.string().describe("The unique identifier of the chat containing the version to restore.");
3750
+ const chatsRestorePathVersionIdSchema = z.string().describe("The unique identifier of the version to restore.");
3751
+ const chatsRestoreStatus200Schema = z.unknown();
3752
+ const chatsRestoreStatus401Schema = z.unknown();
3753
+ const chatsRestoreStatus403Schema = z.unknown();
3754
+ const chatsRestoreStatus404Schema = z.unknown();
3755
+ const chatsRestoreStatus409Schema = z.unknown();
3756
+ const chatsRestoreStatus413Schema = z.unknown();
3757
+ const chatsRestoreStatus422Schema = z.unknown();
3758
+ const chatsRestoreStatus429Schema = z.unknown();
3759
+ const chatsRestoreStatus500Schema = z.unknown();
3760
+ const chatsRestoreResponseSchema = z.union([
3761
+ chatsRestoreStatus200Schema,
3762
+ chatsRestoreStatus401Schema,
3763
+ chatsRestoreStatus403Schema,
3764
+ chatsRestoreStatus404Schema,
3765
+ chatsRestoreStatus409Schema,
3766
+ chatsRestoreStatus413Schema,
3767
+ chatsRestoreStatus422Schema,
3768
+ chatsRestoreStatus429Schema,
3769
+ chatsRestoreStatus500Schema
3770
+ ]);
3771
+ const reportsGetUsageQueryStartDateSchema = z.iso.datetime().optional().describe("Query parameter \"startDate\"");
3772
+ const reportsGetUsageQueryEndDateSchema = z.iso.datetime().optional().describe("Query parameter \"endDate\"");
3773
+ const reportsGetUsageQueryChatIdSchema = z.string().optional().describe("Query parameter \"chatId\"");
3774
+ const reportsGetUsageQueryMessageIdSchema = z.string().optional().describe("Query parameter \"messageId\"");
3775
+ const reportsGetUsageQueryUserIdSchema = z.string().optional().describe("Query parameter \"userId\"");
3776
+ 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.");
3777
+ const reportsGetUsageQueryCursorSchema = z.string().optional().describe("Base64 encoded cursor containing pagination data");
3778
+ const reportsGetUsageStatus200Schema = z.unknown();
3779
+ const reportsGetUsageStatus401Schema = z.unknown();
3780
+ const reportsGetUsageStatus403Schema = z.unknown();
3781
+ const reportsGetUsageStatus404Schema = z.unknown();
3782
+ const reportsGetUsageStatus409Schema = z.unknown();
3783
+ const reportsGetUsageStatus413Schema = z.unknown();
3784
+ const reportsGetUsageStatus422Schema = z.unknown();
3785
+ const reportsGetUsageStatus429Schema = z.unknown();
3786
+ const reportsGetUsageStatus500Schema = z.unknown();
3787
+ const reportsGetUsageResponseSchema = z.union([
3788
+ reportsGetUsageStatus200Schema,
3789
+ reportsGetUsageStatus401Schema,
3790
+ reportsGetUsageStatus403Schema,
3791
+ reportsGetUsageStatus404Schema,
3792
+ reportsGetUsageStatus409Schema,
3793
+ reportsGetUsageStatus413Schema,
3794
+ reportsGetUsageStatus422Schema,
3795
+ reportsGetUsageStatus429Schema,
3796
+ reportsGetUsageStatus500Schema
3797
+ ]);
3798
+ const reportsGetAIUsageQueryStartSchema = z.iso.datetime().optional().describe("Inclusive start datetime filter.");
3799
+ const reportsGetAIUsageQueryEndSchema = z.iso.datetime().optional().describe("Exclusive end datetime filter.");
3800
+ const reportsGetAIUsageQueryCursorSchema = z.string().optional().describe("Opaque cursor returned by a previous request for forward pagination.");
3801
+ const reportsGetAIUsageQueryLimitSchema = z.int().min(1).max(5000).optional().default(1000).describe("Maximum number of rows to return.");
3802
+ const reportsGetAIUsageStatus200Schema = z.unknown();
3803
+ const reportsGetAIUsageStatus401Schema = z.unknown();
3804
+ const reportsGetAIUsageStatus403Schema = z.unknown();
3805
+ const reportsGetAIUsageStatus404Schema = z.unknown();
3806
+ const reportsGetAIUsageStatus409Schema = z.unknown();
3807
+ const reportsGetAIUsageStatus413Schema = z.unknown();
3808
+ const reportsGetAIUsageStatus422Schema = z.unknown();
3809
+ const reportsGetAIUsageStatus429Schema = z.unknown();
3810
+ const reportsGetAIUsageStatus500Schema = z.unknown();
3811
+ const reportsGetAIUsageResponseSchema = z.union([
3812
+ reportsGetAIUsageStatus200Schema,
3813
+ reportsGetAIUsageStatus401Schema,
3814
+ reportsGetAIUsageStatus403Schema,
3815
+ reportsGetAIUsageStatus404Schema,
3816
+ reportsGetAIUsageStatus409Schema,
3817
+ reportsGetAIUsageStatus413Schema,
3818
+ reportsGetAIUsageStatus422Schema,
3819
+ reportsGetAIUsageStatus429Schema,
3820
+ reportsGetAIUsageStatus500Schema
3821
+ ]);
3822
+ const reportsGetUserActivityQueryStartDateSchema = z.iso.datetime().optional().describe("Inclusive ISO timestamp lower bound for activity.");
3823
+ const reportsGetUserActivityQueryEndDateSchema = z.iso.datetime().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.");
3824
+ const reportsGetUserActivityStatus200Schema = z.unknown();
3825
+ const reportsGetUserActivityStatus401Schema = z.unknown();
3826
+ const reportsGetUserActivityStatus403Schema = z.unknown();
3827
+ const reportsGetUserActivityStatus404Schema = z.unknown();
3828
+ const reportsGetUserActivityStatus409Schema = z.unknown();
3829
+ const reportsGetUserActivityStatus413Schema = z.unknown();
3830
+ const reportsGetUserActivityStatus422Schema = z.unknown();
3831
+ const reportsGetUserActivityStatus429Schema = z.unknown();
3832
+ const reportsGetUserActivityStatus500Schema = z.unknown();
3833
+ const reportsGetUserActivityResponseSchema = z.union([
3834
+ reportsGetUserActivityStatus200Schema,
3835
+ reportsGetUserActivityStatus401Schema,
3836
+ reportsGetUserActivityStatus403Schema,
3837
+ reportsGetUserActivityStatus404Schema,
3838
+ reportsGetUserActivityStatus409Schema,
3839
+ reportsGetUserActivityStatus413Schema,
3840
+ reportsGetUserActivityStatus422Schema,
3841
+ reportsGetUserActivityStatus429Schema,
3842
+ reportsGetUserActivityStatus500Schema
3843
+ ]);
3844
+ const mcpServersFindStatus200Schema = z.unknown();
3845
+ const mcpServersFindStatus401Schema = z.unknown();
3846
+ const mcpServersFindStatus403Schema = z.unknown();
3847
+ const mcpServersFindStatus404Schema = z.unknown();
3848
+ const mcpServersFindStatus409Schema = z.unknown();
3849
+ const mcpServersFindStatus413Schema = z.unknown();
3850
+ const mcpServersFindStatus422Schema = z.unknown();
3851
+ const mcpServersFindStatus429Schema = z.unknown();
3852
+ const mcpServersFindStatus500Schema = z.unknown();
3853
+ const mcpServersFindResponseSchema = z.union([
3854
+ mcpServersFindStatus200Schema,
3855
+ mcpServersFindStatus401Schema,
3856
+ mcpServersFindStatus403Schema,
3857
+ mcpServersFindStatus404Schema,
3858
+ mcpServersFindStatus409Schema,
3859
+ mcpServersFindStatus413Schema,
3860
+ mcpServersFindStatus422Schema,
3861
+ mcpServersFindStatus429Schema,
3862
+ mcpServersFindStatus500Schema
3863
+ ]);
3864
+ const mcpServersCreateStatus200Schema = z.unknown();
3865
+ const mcpServersCreateStatus401Schema = z.unknown();
3866
+ const mcpServersCreateStatus403Schema = z.unknown();
3867
+ const mcpServersCreateStatus404Schema = z.unknown();
3868
+ const mcpServersCreateStatus409Schema = z.unknown();
3869
+ const mcpServersCreateStatus413Schema = z.unknown();
3870
+ const mcpServersCreateStatus422Schema = z.unknown();
3871
+ const mcpServersCreateStatus429Schema = z.unknown();
3872
+ const mcpServersCreateStatus500Schema = z.unknown();
3873
+ const mcpServersCreateResponseSchema = z.union([
3874
+ mcpServersCreateStatus200Schema,
3875
+ mcpServersCreateStatus401Schema,
3876
+ mcpServersCreateStatus403Schema,
3877
+ mcpServersCreateStatus404Schema,
3878
+ mcpServersCreateStatus409Schema,
3879
+ mcpServersCreateStatus413Schema,
3880
+ mcpServersCreateStatus422Schema,
3881
+ mcpServersCreateStatus429Schema,
3882
+ mcpServersCreateStatus500Schema
3883
+ ]);
3884
+ const mcpServersGetByIdPathMcpServerIdSchema = z.string().describe("The ID of the MCP server to retrieve.");
3885
+ const mcpServersGetByIdStatus200Schema = z.unknown();
3886
+ const mcpServersGetByIdStatus401Schema = z.unknown();
3887
+ const mcpServersGetByIdStatus403Schema = z.unknown();
3888
+ const mcpServersGetByIdStatus404Schema = z.unknown();
3889
+ const mcpServersGetByIdStatus409Schema = z.unknown();
3890
+ const mcpServersGetByIdStatus413Schema = z.unknown();
3891
+ const mcpServersGetByIdStatus422Schema = z.unknown();
3892
+ const mcpServersGetByIdStatus429Schema = z.unknown();
3893
+ const mcpServersGetByIdStatus500Schema = z.unknown();
3894
+ const mcpServersGetByIdResponseSchema = z.union([
3895
+ mcpServersGetByIdStatus200Schema,
3896
+ mcpServersGetByIdStatus401Schema,
3897
+ mcpServersGetByIdStatus403Schema,
3898
+ mcpServersGetByIdStatus404Schema,
3899
+ mcpServersGetByIdStatus409Schema,
3900
+ mcpServersGetByIdStatus413Schema,
3901
+ mcpServersGetByIdStatus422Schema,
3902
+ mcpServersGetByIdStatus429Schema,
3903
+ mcpServersGetByIdStatus500Schema
3904
+ ]);
3905
+ const mcpServersUpdatePathMcpServerIdSchema = z.string().describe("The ID of the MCP server to update.");
3906
+ const mcpServersUpdateStatus200Schema = z.unknown();
3907
+ const mcpServersUpdateStatus401Schema = z.unknown();
3908
+ const mcpServersUpdateStatus403Schema = z.unknown();
3909
+ const mcpServersUpdateStatus404Schema = z.unknown();
3910
+ const mcpServersUpdateStatus409Schema = z.unknown();
3911
+ const mcpServersUpdateStatus413Schema = z.unknown();
3912
+ const mcpServersUpdateStatus422Schema = z.unknown();
3913
+ const mcpServersUpdateStatus429Schema = z.unknown();
3914
+ const mcpServersUpdateStatus500Schema = z.unknown();
3915
+ const mcpServersUpdateResponseSchema = z.union([
3916
+ mcpServersUpdateStatus200Schema,
3917
+ mcpServersUpdateStatus401Schema,
3918
+ mcpServersUpdateStatus403Schema,
3919
+ mcpServersUpdateStatus404Schema,
3920
+ mcpServersUpdateStatus409Schema,
3921
+ mcpServersUpdateStatus413Schema,
3922
+ mcpServersUpdateStatus422Schema,
3923
+ mcpServersUpdateStatus429Schema,
3924
+ mcpServersUpdateStatus500Schema
3925
+ ]);
3926
+ const mcpServersDeletePathMcpServerIdSchema = z.string().describe("The ID of the MCP server to delete.");
3927
+ const mcpServersDeleteStatus200Schema = z.unknown();
3928
+ const mcpServersDeleteStatus401Schema = z.unknown();
3929
+ const mcpServersDeleteStatus403Schema = z.unknown();
3930
+ const mcpServersDeleteStatus404Schema = z.unknown();
3931
+ const mcpServersDeleteStatus409Schema = z.unknown();
3932
+ const mcpServersDeleteStatus413Schema = z.unknown();
3933
+ const mcpServersDeleteStatus422Schema = z.unknown();
3934
+ const mcpServersDeleteStatus429Schema = z.unknown();
3935
+ const mcpServersDeleteStatus500Schema = z.unknown();
3936
+ const mcpServersDeleteResponseSchema = z.union([
3937
+ mcpServersDeleteStatus200Schema,
3938
+ mcpServersDeleteStatus401Schema,
3939
+ mcpServersDeleteStatus403Schema,
3940
+ mcpServersDeleteStatus404Schema,
3941
+ mcpServersDeleteStatus409Schema,
3942
+ mcpServersDeleteStatus413Schema,
3943
+ mcpServersDeleteStatus422Schema,
3944
+ mcpServersDeleteStatus429Schema,
3945
+ mcpServersDeleteStatus500Schema
3946
+ ]);
3947
+ const mcpServersCreateOAuthAuthorizationUrlPathMcpServerIdSchema = z.string().describe("The ID of the OAuth MCP server to authorize.");
3948
+ const mcpServersCreateOAuthAuthorizationUrlStatus200Schema = z.unknown();
3949
+ const mcpServersCreateOAuthAuthorizationUrlStatus401Schema = z.unknown();
3950
+ const mcpServersCreateOAuthAuthorizationUrlStatus403Schema = z.unknown();
3951
+ const mcpServersCreateOAuthAuthorizationUrlStatus404Schema = z.unknown();
3952
+ const mcpServersCreateOAuthAuthorizationUrlStatus409Schema = z.unknown();
3953
+ const mcpServersCreateOAuthAuthorizationUrlStatus413Schema = z.unknown();
3954
+ const mcpServersCreateOAuthAuthorizationUrlStatus422Schema = z.unknown();
3955
+ const mcpServersCreateOAuthAuthorizationUrlStatus429Schema = z.unknown();
3956
+ const mcpServersCreateOAuthAuthorizationUrlStatus500Schema = z.unknown();
3957
+ const mcpServersCreateOAuthAuthorizationUrlResponseSchema = z.union([
3958
+ mcpServersCreateOAuthAuthorizationUrlStatus200Schema,
3959
+ mcpServersCreateOAuthAuthorizationUrlStatus401Schema,
3960
+ mcpServersCreateOAuthAuthorizationUrlStatus403Schema,
3961
+ mcpServersCreateOAuthAuthorizationUrlStatus404Schema,
3962
+ mcpServersCreateOAuthAuthorizationUrlStatus409Schema,
3963
+ mcpServersCreateOAuthAuthorizationUrlStatus413Schema,
3964
+ mcpServersCreateOAuthAuthorizationUrlStatus422Schema,
3965
+ mcpServersCreateOAuthAuthorizationUrlStatus429Schema,
3966
+ mcpServersCreateOAuthAuthorizationUrlStatus500Schema
3967
+ ]);
3968
+
3969
+ /**
3970
+ * Generated by Kubb (https://kubb.dev/).
3971
+ * Do not edit manually.
3972
+ */ const chatDetailObjectEnum = {
3973
+ chat: "chat"
3974
+ };
3975
+ const chatDetailPrivacyEnum = {
3976
+ private: "private",
3977
+ public: "public",
3978
+ team: "team",
3979
+ "team-edit": "team-edit",
3980
+ unlisted: "unlisted"
3981
+ };
3982
+ const chatDetailLatestVersionObjectEnum = {
3983
+ version: "version"
3984
+ };
3985
+ const chatDetailLatestVersionStatusEnum = {
3986
+ completed: "completed",
3987
+ failed: "failed",
3988
+ pending: "pending"
3989
+ };
3990
+ const objectEnum = {
3991
+ message: "message"
3992
+ };
3993
+ const typeEnum = {
3994
+ figma: "figma",
3995
+ screenshot: "screenshot",
3996
+ zip: "zip"
3997
+ };
3998
+ const roleEnum = {
3999
+ assistant: "assistant",
4000
+ user: "user"
4001
+ };
4002
+ const finishReasonEnum = {
4003
+ "content-filter": "content-filter",
4004
+ error: "error",
4005
+ length: "length",
4006
+ other: "other",
4007
+ stop: "stop",
4008
+ "tool-calls": "tool-calls"
4009
+ };
4010
+ const chatDetailModelConfigurationModelIdEnum = {
4011
+ "v0-auto": "v0-auto",
4012
+ "v0-max": "v0-max",
4013
+ "v0-max-fast": "v0-max-fast",
4014
+ "v0-mini": "v0-mini",
4015
+ "v0-opus-4.7": "v0-opus-4.7",
4016
+ "v0-opus-4.7-fast": "v0-opus-4.7-fast",
4017
+ "v0-pro": "v0-pro"
4018
+ };
4019
+ const chatSummaryObjectEnum = {
4020
+ chat: "chat"
4021
+ };
4022
+ const chatSummaryPrivacyEnum = {
4023
+ private: "private",
4024
+ public: "public",
4025
+ team: "team",
4026
+ "team-edit": "team-edit",
4027
+ unlisted: "unlisted"
4028
+ };
4029
+ const chatSummaryLatestVersionObjectEnum = {
4030
+ version: "version"
4031
+ };
4032
+ const chatSummaryLatestVersionStatusEnum = {
4033
+ completed: "completed",
4034
+ failed: "failed",
4035
+ pending: "pending"
4036
+ };
4037
+ const deploymentDetailObjectEnum = {
4038
+ deployment: "deployment"
4039
+ };
4040
+ const deploymentSummaryObjectEnum = {
4041
+ deployment: "deployment"
4042
+ };
4043
+ const environmentVariableDetailSchemaObjectEnum = {
4044
+ environment_variable: "environment_variable"
4045
+ };
4046
+ const environmentVariableSummarySchemaObjectEnum = {
4047
+ environment_variable: "environment_variable"
4048
+ };
4049
+ const environmentVariablesListSchemaObjectEnum = {
4050
+ list: "list"
4051
+ };
4052
+ const fileDetailObjectEnum = {
4053
+ file: "file"
4054
+ };
4055
+ const fileSummaryObjectEnum = {
4056
+ file: "file"
4057
+ };
4058
+ const hookDetailObjectEnum = {
4059
+ hook: "hook"
4060
+ };
4061
+ const hookDetailEventsEnum = {
4062
+ "chat.created": "chat.created",
4063
+ "chat.deleted": "chat.deleted",
4064
+ "chat.updated": "chat.updated",
4065
+ "message.created": "message.created",
4066
+ "message.deleted": "message.deleted",
4067
+ "message.finished": "message.finished",
4068
+ "message.updated": "message.updated"
4069
+ };
4070
+ const hookEventDetailObjectEnum = {
4071
+ hook_event: "hook_event"
4072
+ };
4073
+ const hookEventDetailEventEnum = {
4074
+ "chat.created": "chat.created",
4075
+ "chat.deleted": "chat.deleted",
4076
+ "chat.updated": "chat.updated",
4077
+ "message.created": "message.created",
4078
+ "message.deleted": "message.deleted",
4079
+ "message.finished": "message.finished",
4080
+ "message.updated": "message.updated"
4081
+ };
4082
+ const hookEventDetailStatusEnum = {
4083
+ error: "error",
4084
+ pending: "pending",
4085
+ success: "success"
4086
+ };
4087
+ const hookSummaryObjectEnum = {
4088
+ hook: "hook"
4089
+ };
4090
+ const integrationConnectionDetailSchemaObjectEnum = {
4091
+ integration_connection: "integration_connection"
4092
+ };
4093
+ const integrationConnectionDetailSchemaIntegrationObjectEnum = {
4094
+ integration: "integration"
4095
+ };
4096
+ const integrationConnectionListSchemaObjectEnum = {
4097
+ list: "list"
4098
+ };
4099
+ const integrationConnectionSummarySchemaObjectEnum = {
4100
+ integration_connection: "integration_connection"
4101
+ };
4102
+ const integrationConnectionSummarySchemaIntegrationObjectEnum = {
4103
+ integration: "integration"
4104
+ };
4105
+ const integrationDetailSchemaObjectEnum = {
4106
+ integration: "integration"
4107
+ };
4108
+ const integrationListSchemaObjectEnum = {
4109
+ list: "list"
4110
+ };
4111
+ const integrationSummarySchemaObjectEnum = {
4112
+ integration: "integration"
4113
+ };
4114
+ const messageDetailObjectEnum = {
4115
+ message: "message"
4116
+ };
4117
+ const messageDetailTypeEnum = {
4118
+ "added-environment-variables": "added-environment-variables",
4119
+ "added-integration": "added-integration",
4120
+ "answered-questions": "answered-questions",
4121
+ "auto-fix-with-v0": "auto-fix-with-v0",
4122
+ "cloned-repo": "cloned-repo",
4123
+ "deleted-file": "deleted-file",
4124
+ "design-mode": "design-mode",
4125
+ "edited-file": "edited-file",
4126
+ "fix-cve": "fix-cve",
4127
+ "fix-with-v0": "fix-with-v0",
4128
+ "forked-block": "forked-block",
4129
+ "forked-chat": "forked-chat",
4130
+ "manual-commit": "manual-commit",
4131
+ message: "message",
4132
+ "moved-file": "moved-file",
4133
+ "open-in-v0": "open-in-v0",
4134
+ "pull-changes": "pull-changes",
4135
+ refinement: "refinement",
4136
+ "renamed-file": "renamed-file",
4137
+ "replace-src": "replace-src",
4138
+ "reverted-block": "reverted-block",
4139
+ "sync-git": "sync-git"
4140
+ };
4141
+ const messageDetailRoleEnum = {
4142
+ assistant: "assistant",
4143
+ user: "user"
4144
+ };
4145
+ const messageDetailFinishReasonEnum = {
4146
+ "content-filter": "content-filter",
4147
+ error: "error",
4148
+ length: "length",
4149
+ other: "other",
4150
+ stop: "stop",
4151
+ "tool-calls": "tool-calls"
4152
+ };
4153
+ const messageSummaryObjectEnum = {
4154
+ message: "message"
4155
+ };
4156
+ const messageSummaryTypeEnum = {
4157
+ "added-environment-variables": "added-environment-variables",
4158
+ "added-integration": "added-integration",
4159
+ "answered-questions": "answered-questions",
4160
+ "auto-fix-with-v0": "auto-fix-with-v0",
4161
+ "cloned-repo": "cloned-repo",
4162
+ "deleted-file": "deleted-file",
4163
+ "design-mode": "design-mode",
4164
+ "edited-file": "edited-file",
4165
+ "fix-cve": "fix-cve",
4166
+ "fix-with-v0": "fix-with-v0",
4167
+ "forked-block": "forked-block",
4168
+ "forked-chat": "forked-chat",
4169
+ "manual-commit": "manual-commit",
4170
+ message: "message",
4171
+ "moved-file": "moved-file",
4172
+ "open-in-v0": "open-in-v0",
4173
+ "pull-changes": "pull-changes",
4174
+ refinement: "refinement",
4175
+ "renamed-file": "renamed-file",
4176
+ "replace-src": "replace-src",
4177
+ "reverted-block": "reverted-block",
4178
+ "sync-git": "sync-git"
4179
+ };
4180
+ const messageSummaryRoleEnum = {
4181
+ assistant: "assistant",
4182
+ user: "user"
4183
+ };
4184
+ const messageSummaryFinishReasonEnum = {
4185
+ "content-filter": "content-filter",
4186
+ error: "error",
4187
+ length: "length",
4188
+ other: "other",
4189
+ stop: "stop",
4190
+ "tool-calls": "tool-calls"
4191
+ };
4192
+ const messageSummaryListObjectEnum = {
4193
+ list: "list"
4194
+ };
4195
+ const productDetailSchemaObjectEnum = {
4196
+ product: "product"
4197
+ };
4198
+ const productDetailSchemaV0AvailabilityEnum = {
4199
+ "in-review": "in-review",
4200
+ published: "published"
4201
+ };
4202
+ const productListSchemaObjectEnum = {
4203
+ list: "list"
4204
+ };
4205
+ const V0AvailabilityEnum = {
4206
+ "in-review": "in-review",
4207
+ published: "published"
4208
+ };
4209
+ const productSummarySchemaObjectEnum = {
4210
+ product: "product"
4211
+ };
4212
+ const productSummarySchemaV0AvailabilityEnum = {
4213
+ "in-review": "in-review",
4214
+ published: "published"
4215
+ };
4216
+ const projectDetailObjectEnum = {
4217
+ project: "project"
4218
+ };
4219
+ const projectDetailPrivacyEnum = {
4220
+ private: "private",
4221
+ team: "team"
4222
+ };
4223
+ const privacyEnum = {
4224
+ private: "private",
4225
+ public: "public",
4226
+ team: "team",
4227
+ "team-edit": "team-edit",
4228
+ unlisted: "unlisted"
4229
+ };
4230
+ const statusEnum = {
4231
+ completed: "completed",
4232
+ failed: "failed",
4233
+ pending: "pending"
4234
+ };
4235
+ const projectSummaryObjectEnum = {
4236
+ project: "project"
4237
+ };
4238
+ const projectSummaryPrivacyEnum = {
4239
+ private: "private",
4240
+ team: "team"
4241
+ };
4242
+ const scopeSummaryObjectEnum = {
4243
+ scope: "scope"
4244
+ };
4245
+ const searchResultItemObjectEnum = {
4246
+ chat: "chat",
4247
+ project: "project"
4248
+ };
4249
+ const userDetailSchemaObjectEnum = {
4250
+ user: "user"
4251
+ };
4252
+ const userPreferencesPostResponseSchemaObjectEnum = {
4253
+ user_preferences: "user_preferences"
4254
+ };
4255
+ const userPreferencesResponseSchemaObjectEnum = {
4256
+ user_preferences: "user_preferences"
4257
+ };
4258
+ const userSummarySchemaObjectEnum = {
4259
+ user: "user"
4260
+ };
4261
+ const vercelProjectDetailObjectEnum = {
4262
+ vercel_project: "vercel_project"
4263
+ };
4264
+ const vercelProjectSummaryObjectEnum = {
4265
+ vercel_project: "vercel_project"
4266
+ };
4267
+ const versionDetailObjectEnum = {
4268
+ version: "version"
4269
+ };
4270
+ const versionDetailStatusEnum = {
4271
+ completed: "completed",
4272
+ failed: "failed",
4273
+ pending: "pending"
4274
+ };
4275
+ const versionSummaryObjectEnum = {
4276
+ version: "version"
4277
+ };
4278
+ const versionSummaryStatusEnum = {
4279
+ completed: "completed",
4280
+ failed: "failed",
4281
+ pending: "pending"
4282
+ };
4283
+ const versionSummaryListObjectEnum = {
4284
+ list: "list"
4285
+ };
4286
+ const unauthorizedErrorErrorTypeEnum = {
4287
+ unauthorized_error: "unauthorized_error"
4288
+ };
4289
+ const forbiddenErrorErrorTypeEnum = {
4290
+ forbidden_error: "forbidden_error"
4291
+ };
4292
+ const notFoundErrorErrorTypeEnum = {
4293
+ not_found_error: "not_found_error"
4294
+ };
4295
+ const conflictErrorErrorTypeEnum = {
4296
+ conflict_error: "conflict_error"
4297
+ };
4298
+ const payloadTooLargeErrorErrorTypeEnum = {
4299
+ payload_too_large_error: "payload_too_large_error"
4300
+ };
4301
+ const unprocessableEntityErrorErrorTypeEnum = {
4302
+ unprocessable_entity_error: "unprocessable_entity_error"
4303
+ };
4304
+ const tooManyRequestsErrorErrorTypeEnum = {
4305
+ too_many_requests_error: "too_many_requests_error"
4306
+ };
4307
+ const internalServerErrorErrorTypeEnum = {
4308
+ internal_server_error: "internal_server_error"
4309
+ };
4310
+
4311
+ export { V0Api, V0AvailabilityEnum, chatDetailLatestVersionObjectEnum, chatDetailLatestVersionStatusEnum, chatDetailModelConfigurationModelIdEnum, chatDetailObjectEnum, chatDetailPrivacyEnum, chatDetailSchema, chatSummaryLatestVersionObjectEnum, chatSummaryLatestVersionStatusEnum, chatSummaryObjectEnum, chatSummaryPrivacyEnum, chatSummarySchema, chatsCreateResponseSchema, chatsCreateStatus200Schema, chatsCreateStatus401Schema, chatsCreateStatus403Schema, chatsCreateStatus404Schema, chatsCreateStatus409Schema, chatsCreateStatus413Schema, chatsCreateStatus422Schema, chatsCreateStatus429Schema, chatsCreateStatus500Schema, chatsDeletePathChatIdSchema, chatsDeleteResponseSchema, chatsDeleteStatus200Schema, chatsDeleteStatus401Schema, chatsDeleteStatus403Schema, chatsDeleteStatus404Schema, chatsDeleteStatus409Schema, chatsDeleteStatus413Schema, chatsDeleteStatus422Schema, chatsDeleteStatus429Schema, chatsDeleteStatus500Schema, chatsDeleteVersionFilesPathChatIdSchema, chatsDeleteVersionFilesPathVersionIdSchema, chatsDeleteVersionFilesResponseSchema, chatsDeleteVersionFilesStatus200Schema, chatsDeleteVersionFilesStatus401Schema, chatsDeleteVersionFilesStatus403Schema, chatsDeleteVersionFilesStatus404Schema, chatsDeleteVersionFilesStatus409Schema, chatsDeleteVersionFilesStatus413Schema, chatsDeleteVersionFilesStatus422Schema, chatsDeleteVersionFilesStatus429Schema, chatsDeleteVersionFilesStatus500Schema, chatsDownloadVersionPathChatIdSchema, chatsDownloadVersionPathVersionIdSchema, chatsDownloadVersionQueryFormatSchema, chatsDownloadVersionQueryIncludeDefaultFilesSchema, chatsDownloadVersionResponseSchema, chatsDownloadVersionStatus200Schema, chatsDownloadVersionStatus401Schema, chatsDownloadVersionStatus403Schema, chatsDownloadVersionStatus404Schema, chatsDownloadVersionStatus409Schema, chatsDownloadVersionStatus413Schema, chatsDownloadVersionStatus422Schema, chatsDownloadVersionStatus429Schema, chatsDownloadVersionStatus500Schema, chatsFavoritePathChatIdSchema, chatsFavoriteResponseSchema, chatsFavoriteStatus200Schema, chatsFavoriteStatus401Schema, chatsFavoriteStatus403Schema, chatsFavoriteStatus404Schema, chatsFavoriteStatus409Schema, chatsFavoriteStatus413Schema, chatsFavoriteStatus422Schema, chatsFavoriteStatus429Schema, chatsFavoriteStatus500Schema, chatsFindMessagesPathChatIdSchema, chatsFindMessagesQueryCursorSchema, chatsFindMessagesQueryLimitSchema, chatsFindMessagesResponseSchema, chatsFindMessagesStatus200Schema, chatsFindMessagesStatus401Schema, chatsFindMessagesStatus403Schema, chatsFindMessagesStatus404Schema, chatsFindMessagesStatus409Schema, chatsFindMessagesStatus413Schema, chatsFindMessagesStatus422Schema, chatsFindMessagesStatus429Schema, chatsFindMessagesStatus500Schema, chatsFindQueryBranchSchema, chatsFindQueryIsFavoriteSchema, chatsFindQueryLimitSchema, chatsFindQueryOffsetSchema, chatsFindQueryVercelProjectIdSchema, chatsFindResponseSchema, chatsFindStatus200Schema, chatsFindStatus401Schema, chatsFindStatus403Schema, chatsFindStatus404Schema, chatsFindStatus409Schema, chatsFindStatus413Schema, chatsFindStatus422Schema, chatsFindStatus429Schema, chatsFindStatus500Schema, chatsFindVersionsPathChatIdSchema, chatsFindVersionsQueryCursorSchema, chatsFindVersionsQueryLimitSchema, chatsFindVersionsResponseSchema, chatsFindVersionsStatus200Schema, chatsFindVersionsStatus401Schema, chatsFindVersionsStatus403Schema, chatsFindVersionsStatus404Schema, chatsFindVersionsStatus409Schema, chatsFindVersionsStatus413Schema, chatsFindVersionsStatus422Schema, chatsFindVersionsStatus429Schema, chatsFindVersionsStatus500Schema, chatsForkPathChatIdSchema, chatsForkResponseSchema, chatsForkStatus200Schema, chatsForkStatus401Schema, chatsForkStatus403Schema, chatsForkStatus404Schema, chatsForkStatus409Schema, chatsForkStatus413Schema, chatsForkStatus422Schema, chatsForkStatus429Schema, chatsForkStatus500Schema, chatsGetByIdPathChatIdSchema, chatsGetByIdResponseSchema, chatsGetByIdStatus200Schema, chatsGetByIdStatus401Schema, chatsGetByIdStatus403Schema, chatsGetByIdStatus404Schema, chatsGetByIdStatus409Schema, chatsGetByIdStatus413Schema, chatsGetByIdStatus422Schema, chatsGetByIdStatus429Schema, chatsGetByIdStatus500Schema, chatsGetMessagePathChatIdSchema, chatsGetMessagePathMessageIdSchema, chatsGetMessageResponseSchema, chatsGetMessageStatus200Schema, chatsGetMessageStatus401Schema, chatsGetMessageStatus403Schema, chatsGetMessageStatus404Schema, chatsGetMessageStatus409Schema, chatsGetMessageStatus413Schema, chatsGetMessageStatus422Schema, chatsGetMessageStatus429Schema, chatsGetMessageStatus500Schema, chatsGetVersionPathChatIdSchema, chatsGetVersionPathVersionIdSchema, chatsGetVersionQueryIncludeDefaultFilesSchema, chatsGetVersionResponseSchema, chatsGetVersionStatus200Schema, chatsGetVersionStatus401Schema, chatsGetVersionStatus403Schema, chatsGetVersionStatus404Schema, chatsGetVersionStatus409Schema, chatsGetVersionStatus413Schema, chatsGetVersionStatus422Schema, chatsGetVersionStatus429Schema, chatsGetVersionStatus500Schema, chatsInitResponseSchema, chatsInitStatus200Schema, chatsInitStatus401Schema, chatsInitStatus403Schema, chatsInitStatus404Schema, chatsInitStatus409Schema, chatsInitStatus413Schema, chatsInitStatus422Schema, chatsInitStatus429Schema, chatsInitStatus500Schema, chatsResolveTaskPathChatIdSchema, chatsResolveTaskResponseSchema, chatsResolveTaskStatus200Schema, chatsResolveTaskStatus401Schema, chatsResolveTaskStatus403Schema, chatsResolveTaskStatus404Schema, chatsResolveTaskStatus409Schema, chatsResolveTaskStatus413Schema, chatsResolveTaskStatus422Schema, chatsResolveTaskStatus429Schema, chatsResolveTaskStatus500Schema, chatsRestorePathChatIdSchema, chatsRestorePathVersionIdSchema, chatsRestoreResponseSchema, chatsRestoreStatus200Schema, chatsRestoreStatus401Schema, chatsRestoreStatus403Schema, chatsRestoreStatus404Schema, chatsRestoreStatus409Schema, chatsRestoreStatus413Schema, chatsRestoreStatus422Schema, chatsRestoreStatus429Schema, chatsRestoreStatus500Schema, chatsResumePathChatIdSchema, chatsResumePathMessageIdSchema, chatsResumeResponseSchema, chatsResumeStatus200Schema, chatsResumeStatus401Schema, chatsResumeStatus403Schema, chatsResumeStatus404Schema, chatsResumeStatus409Schema, chatsResumeStatus413Schema, chatsResumeStatus422Schema, chatsResumeStatus429Schema, chatsResumeStatus500Schema, chatsSendMessagePathChatIdSchema, chatsSendMessageResponseSchema, chatsSendMessageStatus200Schema, chatsSendMessageStatus401Schema, chatsSendMessageStatus403Schema, chatsSendMessageStatus404Schema, chatsSendMessageStatus409Schema, chatsSendMessageStatus413Schema, chatsSendMessageStatus422Schema, chatsSendMessageStatus429Schema, chatsSendMessageStatus500Schema, chatsStopPathChatIdSchema, chatsStopPathMessageIdSchema, chatsStopResponseSchema, chatsStopStatus200Schema, chatsStopStatus401Schema, chatsStopStatus403Schema, chatsStopStatus404Schema, chatsStopStatus409Schema, chatsStopStatus413Schema, chatsStopStatus422Schema, chatsStopStatus429Schema, chatsStopStatus500Schema, chatsUpdatePathChatIdSchema, chatsUpdateResponseSchema, chatsUpdateStatus200Schema, chatsUpdateStatus401Schema, chatsUpdateStatus403Schema, chatsUpdateStatus404Schema, chatsUpdateStatus409Schema, chatsUpdateStatus413Schema, chatsUpdateStatus422Schema, chatsUpdateStatus429Schema, chatsUpdateStatus500Schema, chatsUpdateVersionPathChatIdSchema, chatsUpdateVersionPathVersionIdSchema, chatsUpdateVersionResponseSchema, chatsUpdateVersionStatus200Schema, chatsUpdateVersionStatus401Schema, chatsUpdateVersionStatus403Schema, chatsUpdateVersionStatus404Schema, chatsUpdateVersionStatus409Schema, chatsUpdateVersionStatus413Schema, chatsUpdateVersionStatus422Schema, chatsUpdateVersionStatus429Schema, chatsUpdateVersionStatus500Schema, conflictErrorErrorTypeEnum, conflictErrorSchema, deploymentDetailObjectEnum, deploymentDetailSchema, deploymentSummaryObjectEnum, deploymentSummarySchema, deploymentsCreateResponseSchema, deploymentsCreateStatus200Schema, deploymentsCreateStatus401Schema, deploymentsCreateStatus403Schema, deploymentsCreateStatus404Schema, deploymentsCreateStatus409Schema, deploymentsCreateStatus413Schema, deploymentsCreateStatus422Schema, deploymentsCreateStatus429Schema, deploymentsCreateStatus500Schema, deploymentsDeletePathDeploymentIdSchema, deploymentsDeleteResponseSchema, deploymentsDeleteStatus200Schema, deploymentsDeleteStatus401Schema, deploymentsDeleteStatus403Schema, deploymentsDeleteStatus404Schema, deploymentsDeleteStatus409Schema, deploymentsDeleteStatus413Schema, deploymentsDeleteStatus422Schema, deploymentsDeleteStatus429Schema, deploymentsDeleteStatus500Schema, deploymentsFindErrorsPathDeploymentIdSchema, deploymentsFindErrorsResponseSchema, deploymentsFindErrorsStatus200Schema, deploymentsFindErrorsStatus401Schema, deploymentsFindErrorsStatus403Schema, deploymentsFindErrorsStatus404Schema, deploymentsFindErrorsStatus409Schema, deploymentsFindErrorsStatus413Schema, deploymentsFindErrorsStatus422Schema, deploymentsFindErrorsStatus429Schema, deploymentsFindErrorsStatus500Schema, deploymentsFindLogsPathDeploymentIdSchema, deploymentsFindLogsQuerySinceSchema, deploymentsFindLogsResponseSchema, deploymentsFindLogsStatus200Schema, deploymentsFindLogsStatus401Schema, deploymentsFindLogsStatus403Schema, deploymentsFindLogsStatus404Schema, deploymentsFindLogsStatus409Schema, deploymentsFindLogsStatus413Schema, deploymentsFindLogsStatus422Schema, deploymentsFindLogsStatus429Schema, deploymentsFindLogsStatus500Schema, deploymentsFindQueryChatIdSchema, deploymentsFindQueryProjectIdSchema, deploymentsFindQueryVersionIdSchema, deploymentsFindResponseSchema, deploymentsFindStatus200Schema, deploymentsFindStatus401Schema, deploymentsFindStatus403Schema, deploymentsFindStatus404Schema, deploymentsFindStatus409Schema, deploymentsFindStatus413Schema, deploymentsFindStatus422Schema, deploymentsFindStatus429Schema, deploymentsFindStatus500Schema, deploymentsGetByIdPathDeploymentIdSchema, deploymentsGetByIdResponseSchema, deploymentsGetByIdStatus200Schema, deploymentsGetByIdStatus401Schema, deploymentsGetByIdStatus403Schema, deploymentsGetByIdStatus404Schema, deploymentsGetByIdStatus409Schema, deploymentsGetByIdStatus413Schema, deploymentsGetByIdStatus422Schema, deploymentsGetByIdStatus429Schema, deploymentsGetByIdStatus500Schema, environmentVariableDetailSchemaObjectEnum, environmentVariableDetailSchemaSchema, environmentVariableSummarySchemaObjectEnum, environmentVariableSummarySchemaSchema, environmentVariablesListSchemaObjectEnum, environmentVariablesListSchemaSchema, fileDetailObjectEnum, fileDetailSchema, fileSummaryObjectEnum, fileSummarySchema, finishReasonEnum, forbiddenErrorErrorTypeEnum, forbiddenErrorSchema, hookDetailEventsEnum, hookDetailObjectEnum, hookDetailSchema, hookEventDetailEventEnum, hookEventDetailObjectEnum, hookEventDetailSchema, hookEventDetailStatusEnum, hookSummaryObjectEnum, hookSummarySchema, hooksCreateResponseSchema, hooksCreateStatus200Schema, hooksCreateStatus401Schema, hooksCreateStatus403Schema, hooksCreateStatus404Schema, hooksCreateStatus409Schema, hooksCreateStatus413Schema, hooksCreateStatus422Schema, hooksCreateStatus429Schema, hooksCreateStatus500Schema, hooksDeletePathHookIdSchema, hooksDeleteResponseSchema, hooksDeleteStatus200Schema, hooksDeleteStatus401Schema, hooksDeleteStatus403Schema, hooksDeleteStatus404Schema, hooksDeleteStatus409Schema, hooksDeleteStatus413Schema, hooksDeleteStatus422Schema, hooksDeleteStatus429Schema, hooksDeleteStatus500Schema, hooksFindResponseSchema, hooksFindStatus200Schema, hooksFindStatus401Schema, hooksFindStatus403Schema, hooksFindStatus404Schema, hooksFindStatus409Schema, hooksFindStatus413Schema, hooksFindStatus422Schema, hooksFindStatus429Schema, hooksFindStatus500Schema, hooksGetByIdPathHookIdSchema, hooksGetByIdResponseSchema, hooksGetByIdStatus200Schema, hooksGetByIdStatus401Schema, hooksGetByIdStatus403Schema, hooksGetByIdStatus404Schema, hooksGetByIdStatus409Schema, hooksGetByIdStatus413Schema, hooksGetByIdStatus422Schema, hooksGetByIdStatus429Schema, hooksGetByIdStatus500Schema, hooksUpdatePathHookIdSchema, hooksUpdateResponseSchema, hooksUpdateStatus200Schema, hooksUpdateStatus401Schema, hooksUpdateStatus403Schema, hooksUpdateStatus404Schema, hooksUpdateStatus409Schema, hooksUpdateStatus413Schema, hooksUpdateStatus422Schema, hooksUpdateStatus429Schema, hooksUpdateStatus500Schema, integrationConnectionDetailSchemaIntegrationObjectEnum, integrationConnectionDetailSchemaObjectEnum, integrationConnectionDetailSchemaSchema, integrationConnectionListSchemaObjectEnum, integrationConnectionListSchemaSchema, integrationConnectionSummarySchemaIntegrationObjectEnum, integrationConnectionSummarySchemaObjectEnum, integrationConnectionSummarySchemaSchema, integrationDetailSchemaObjectEnum, integrationDetailSchemaSchema, integrationListSchemaObjectEnum, integrationListSchemaSchema, integrationSummarySchemaObjectEnum, integrationSummarySchemaSchema, integrationsVercelProjectsCreateResponseSchema, integrationsVercelProjectsCreateStatus200Schema, integrationsVercelProjectsCreateStatus401Schema, integrationsVercelProjectsCreateStatus403Schema, integrationsVercelProjectsCreateStatus404Schema, integrationsVercelProjectsCreateStatus409Schema, integrationsVercelProjectsCreateStatus413Schema, integrationsVercelProjectsCreateStatus422Schema, integrationsVercelProjectsCreateStatus429Schema, integrationsVercelProjectsCreateStatus500Schema, integrationsVercelProjectsFindResponseSchema, integrationsVercelProjectsFindStatus200Schema, integrationsVercelProjectsFindStatus401Schema, integrationsVercelProjectsFindStatus403Schema, integrationsVercelProjectsFindStatus404Schema, integrationsVercelProjectsFindStatus409Schema, integrationsVercelProjectsFindStatus413Schema, integrationsVercelProjectsFindStatus422Schema, integrationsVercelProjectsFindStatus429Schema, integrationsVercelProjectsFindStatus500Schema, internalServerErrorErrorTypeEnum, internalServerErrorSchema, mcpServersCreateOAuthAuthorizationUrlPathMcpServerIdSchema, mcpServersCreateOAuthAuthorizationUrlResponseSchema, mcpServersCreateOAuthAuthorizationUrlStatus200Schema, mcpServersCreateOAuthAuthorizationUrlStatus401Schema, mcpServersCreateOAuthAuthorizationUrlStatus403Schema, mcpServersCreateOAuthAuthorizationUrlStatus404Schema, mcpServersCreateOAuthAuthorizationUrlStatus409Schema, mcpServersCreateOAuthAuthorizationUrlStatus413Schema, mcpServersCreateOAuthAuthorizationUrlStatus422Schema, mcpServersCreateOAuthAuthorizationUrlStatus429Schema, mcpServersCreateOAuthAuthorizationUrlStatus500Schema, mcpServersCreateResponseSchema, mcpServersCreateStatus200Schema, mcpServersCreateStatus401Schema, mcpServersCreateStatus403Schema, mcpServersCreateStatus404Schema, mcpServersCreateStatus409Schema, mcpServersCreateStatus413Schema, mcpServersCreateStatus422Schema, mcpServersCreateStatus429Schema, mcpServersCreateStatus500Schema, mcpServersDeletePathMcpServerIdSchema, mcpServersDeleteResponseSchema, mcpServersDeleteStatus200Schema, mcpServersDeleteStatus401Schema, mcpServersDeleteStatus403Schema, mcpServersDeleteStatus404Schema, mcpServersDeleteStatus409Schema, mcpServersDeleteStatus413Schema, mcpServersDeleteStatus422Schema, mcpServersDeleteStatus429Schema, mcpServersDeleteStatus500Schema, mcpServersFindResponseSchema, mcpServersFindStatus200Schema, mcpServersFindStatus401Schema, mcpServersFindStatus403Schema, mcpServersFindStatus404Schema, mcpServersFindStatus409Schema, mcpServersFindStatus413Schema, mcpServersFindStatus422Schema, mcpServersFindStatus429Schema, mcpServersFindStatus500Schema, mcpServersGetByIdPathMcpServerIdSchema, mcpServersGetByIdResponseSchema, mcpServersGetByIdStatus200Schema, mcpServersGetByIdStatus401Schema, mcpServersGetByIdStatus403Schema, mcpServersGetByIdStatus404Schema, mcpServersGetByIdStatus409Schema, mcpServersGetByIdStatus413Schema, mcpServersGetByIdStatus422Schema, mcpServersGetByIdStatus429Schema, mcpServersGetByIdStatus500Schema, mcpServersUpdatePathMcpServerIdSchema, mcpServersUpdateResponseSchema, mcpServersUpdateStatus200Schema, mcpServersUpdateStatus401Schema, mcpServersUpdateStatus403Schema, mcpServersUpdateStatus404Schema, mcpServersUpdateStatus409Schema, mcpServersUpdateStatus413Schema, mcpServersUpdateStatus422Schema, mcpServersUpdateStatus429Schema, mcpServersUpdateStatus500Schema, messageDetailFinishReasonEnum, messageDetailObjectEnum, messageDetailRoleEnum, messageDetailSchema, messageDetailTypeEnum, messageSummaryFinishReasonEnum, messageSummaryListObjectEnum, messageSummaryListSchema, messageSummaryObjectEnum, messageSummaryRoleEnum, messageSummarySchema, messageSummaryTypeEnum, notFoundErrorErrorTypeEnum, notFoundErrorSchema, notificationPreferenceSchemaSchema, objectEnum, operationsByPath, operationsByTag, payloadTooLargeErrorErrorTypeEnum, payloadTooLargeErrorSchema, privacyEnum, productDetailSchemaObjectEnum, productDetailSchemaSchema, productDetailSchemaV0AvailabilityEnum, productListSchemaObjectEnum, productListSchemaSchema, productSummarySchemaObjectEnum, productSummarySchemaSchema, productSummarySchemaV0AvailabilityEnum, projectDetailObjectEnum, projectDetailPrivacyEnum, projectDetailSchema, projectSummaryObjectEnum, projectSummaryPrivacyEnum, projectSummarySchema, projectsAssignPathProjectIdSchema, projectsAssignResponseSchema, projectsAssignStatus200Schema, projectsAssignStatus401Schema, projectsAssignStatus403Schema, projectsAssignStatus404Schema, projectsAssignStatus409Schema, projectsAssignStatus413Schema, projectsAssignStatus422Schema, projectsAssignStatus429Schema, projectsAssignStatus500Schema, projectsCreateEnvVarsPathProjectIdSchema, projectsCreateEnvVarsQueryDecryptedSchema, projectsCreateEnvVarsResponseSchema, projectsCreateEnvVarsStatus200Schema, projectsCreateEnvVarsStatus401Schema, projectsCreateEnvVarsStatus403Schema, projectsCreateEnvVarsStatus404Schema, projectsCreateEnvVarsStatus409Schema, projectsCreateEnvVarsStatus413Schema, projectsCreateEnvVarsStatus422Schema, projectsCreateEnvVarsStatus429Schema, projectsCreateEnvVarsStatus500Schema, projectsCreateResponseSchema, projectsCreateStatus200Schema, projectsCreateStatus401Schema, projectsCreateStatus403Schema, projectsCreateStatus404Schema, projectsCreateStatus409Schema, projectsCreateStatus413Schema, projectsCreateStatus422Schema, projectsCreateStatus429Schema, projectsCreateStatus500Schema, projectsDeleteEnvVarsPathProjectIdSchema, projectsDeleteEnvVarsResponseSchema, projectsDeleteEnvVarsStatus200Schema, projectsDeleteEnvVarsStatus401Schema, projectsDeleteEnvVarsStatus403Schema, projectsDeleteEnvVarsStatus404Schema, projectsDeleteEnvVarsStatus409Schema, projectsDeleteEnvVarsStatus413Schema, projectsDeleteEnvVarsStatus422Schema, projectsDeleteEnvVarsStatus429Schema, projectsDeleteEnvVarsStatus500Schema, projectsDeletePathProjectIdSchema, projectsDeleteQueryDeleteAllChatsSchema, projectsDeleteResponseSchema, projectsDeleteStatus200Schema, projectsDeleteStatus401Schema, projectsDeleteStatus403Schema, projectsDeleteStatus404Schema, projectsDeleteStatus409Schema, projectsDeleteStatus413Schema, projectsDeleteStatus422Schema, projectsDeleteStatus429Schema, projectsDeleteStatus500Schema, projectsFindEnvVarsPathProjectIdSchema, projectsFindEnvVarsQueryDecryptedSchema, projectsFindEnvVarsResponseSchema, projectsFindEnvVarsStatus200Schema, projectsFindEnvVarsStatus401Schema, projectsFindEnvVarsStatus403Schema, projectsFindEnvVarsStatus404Schema, projectsFindEnvVarsStatus409Schema, projectsFindEnvVarsStatus413Schema, projectsFindEnvVarsStatus422Schema, projectsFindEnvVarsStatus429Schema, projectsFindEnvVarsStatus500Schema, projectsFindResponseSchema, projectsFindStatus200Schema, projectsFindStatus401Schema, projectsFindStatus403Schema, projectsFindStatus404Schema, projectsFindStatus409Schema, projectsFindStatus413Schema, projectsFindStatus422Schema, projectsFindStatus429Schema, projectsFindStatus500Schema, projectsGetByChatIdPathChatIdSchema, projectsGetByChatIdResponseSchema, projectsGetByChatIdStatus200Schema, projectsGetByChatIdStatus401Schema, projectsGetByChatIdStatus403Schema, projectsGetByChatIdStatus404Schema, projectsGetByChatIdStatus409Schema, projectsGetByChatIdStatus413Schema, projectsGetByChatIdStatus422Schema, projectsGetByChatIdStatus429Schema, projectsGetByChatIdStatus500Schema, projectsGetByIdPathProjectIdSchema, projectsGetByIdResponseSchema, projectsGetByIdStatus200Schema, projectsGetByIdStatus401Schema, projectsGetByIdStatus403Schema, projectsGetByIdStatus404Schema, projectsGetByIdStatus409Schema, projectsGetByIdStatus413Schema, projectsGetByIdStatus422Schema, projectsGetByIdStatus429Schema, projectsGetByIdStatus500Schema, projectsGetEnvVarPathEnvironmentVariableIdSchema, projectsGetEnvVarPathProjectIdSchema, projectsGetEnvVarQueryDecryptedSchema, projectsGetEnvVarResponseSchema, projectsGetEnvVarStatus200Schema, projectsGetEnvVarStatus401Schema, projectsGetEnvVarStatus403Schema, projectsGetEnvVarStatus404Schema, projectsGetEnvVarStatus409Schema, projectsGetEnvVarStatus413Schema, projectsGetEnvVarStatus422Schema, projectsGetEnvVarStatus429Schema, projectsGetEnvVarStatus500Schema, projectsUpdateEnvVarsPathProjectIdSchema, projectsUpdateEnvVarsQueryDecryptedSchema, projectsUpdateEnvVarsResponseSchema, projectsUpdateEnvVarsStatus200Schema, projectsUpdateEnvVarsStatus401Schema, projectsUpdateEnvVarsStatus403Schema, projectsUpdateEnvVarsStatus404Schema, projectsUpdateEnvVarsStatus409Schema, projectsUpdateEnvVarsStatus413Schema, projectsUpdateEnvVarsStatus422Schema, projectsUpdateEnvVarsStatus429Schema, projectsUpdateEnvVarsStatus500Schema, projectsUpdatePathProjectIdSchema, projectsUpdateResponseSchema, projectsUpdateStatus200Schema, projectsUpdateStatus401Schema, projectsUpdateStatus403Schema, projectsUpdateStatus404Schema, projectsUpdateStatus409Schema, projectsUpdateStatus413Schema, projectsUpdateStatus422Schema, projectsUpdateStatus429Schema, projectsUpdateStatus500Schema, rateLimitsFindQueryScopeSchema, rateLimitsFindResponseSchema, rateLimitsFindStatus200Schema, rateLimitsFindStatus401Schema, rateLimitsFindStatus403Schema, rateLimitsFindStatus404Schema, rateLimitsFindStatus409Schema, rateLimitsFindStatus413Schema, rateLimitsFindStatus422Schema, rateLimitsFindStatus429Schema, rateLimitsFindStatus500Schema, reportsGetAIUsageQueryCursorSchema, reportsGetAIUsageQueryEndSchema, reportsGetAIUsageQueryLimitSchema, reportsGetAIUsageQueryStartSchema, reportsGetAIUsageResponseSchema, reportsGetAIUsageStatus200Schema, reportsGetAIUsageStatus401Schema, reportsGetAIUsageStatus403Schema, reportsGetAIUsageStatus404Schema, reportsGetAIUsageStatus409Schema, reportsGetAIUsageStatus413Schema, reportsGetAIUsageStatus422Schema, reportsGetAIUsageStatus429Schema, reportsGetAIUsageStatus500Schema, reportsGetUsageQueryChatIdSchema, reportsGetUsageQueryCursorSchema, reportsGetUsageQueryEndDateSchema, reportsGetUsageQueryLimitSchema, reportsGetUsageQueryMessageIdSchema, reportsGetUsageQueryStartDateSchema, reportsGetUsageQueryUserIdSchema, reportsGetUsageResponseSchema, reportsGetUsageStatus200Schema, reportsGetUsageStatus401Schema, reportsGetUsageStatus403Schema, reportsGetUsageStatus404Schema, reportsGetUsageStatus409Schema, reportsGetUsageStatus413Schema, reportsGetUsageStatus422Schema, reportsGetUsageStatus429Schema, reportsGetUsageStatus500Schema, reportsGetUserActivityQueryEndDateSchema, reportsGetUserActivityQueryStartDateSchema, reportsGetUserActivityResponseSchema, reportsGetUserActivityStatus200Schema, reportsGetUserActivityStatus401Schema, reportsGetUserActivityStatus403Schema, reportsGetUserActivityStatus404Schema, reportsGetUserActivityStatus409Schema, reportsGetUserActivityStatus413Schema, reportsGetUserActivityStatus422Schema, reportsGetUserActivityStatus429Schema, reportsGetUserActivityStatus500Schema, roleEnum, scopeSummaryObjectEnum, scopeSummarySchema, searchResultItemObjectEnum, searchResultItemSchema, statusEnum, tagDictionary, tooManyRequestsErrorErrorTypeEnum, tooManyRequestsErrorSchema, typeEnum, unauthorizedErrorErrorTypeEnum, unauthorizedErrorSchema, unprocessableEntityErrorErrorTypeEnum, unprocessableEntityErrorSchema, userDetailSchemaObjectEnum, userDetailSchemaSchema, userGetBillingQueryScopeSchema, userGetBillingResponseSchema, userGetBillingStatus200Schema, userGetBillingStatus401Schema, userGetBillingStatus403Schema, userGetBillingStatus404Schema, userGetBillingStatus409Schema, userGetBillingStatus413Schema, userGetBillingStatus422Schema, userGetBillingStatus429Schema, userGetBillingStatus500Schema, userGetPlanResponseSchema, userGetPlanStatus200Schema, userGetPlanStatus401Schema, userGetPlanStatus403Schema, userGetPlanStatus404Schema, userGetPlanStatus409Schema, userGetPlanStatus413Schema, userGetPlanStatus422Schema, userGetPlanStatus429Schema, userGetPlanStatus500Schema, userGetResponseSchema, userGetScopesResponseSchema, userGetScopesStatus200Schema, userGetScopesStatus401Schema, userGetScopesStatus403Schema, userGetScopesStatus404Schema, userGetScopesStatus409Schema, userGetScopesStatus413Schema, userGetScopesStatus422Schema, userGetScopesStatus429Schema, userGetScopesStatus500Schema, userGetStatus200Schema, userGetStatus401Schema, userGetStatus403Schema, userGetStatus404Schema, userGetStatus409Schema, userGetStatus413Schema, userGetStatus422Schema, userGetStatus429Schema, userGetStatus500Schema, userPreferencesPostResponseSchemaObjectEnum, userPreferencesPostResponseSchemaSchema, userPreferencesResponseSchemaObjectEnum, userPreferencesResponseSchemaSchema, userPreferencesSchemaSchema, userSummarySchemaObjectEnum, userSummarySchemaSchema, vercelProjectDetailObjectEnum, vercelProjectDetailSchema, vercelProjectSummaryObjectEnum, vercelProjectSummarySchema, versionDetailObjectEnum, versionDetailSchema, versionDetailStatusEnum, versionSummaryListObjectEnum, versionSummaryListSchema, versionSummaryObjectEnum, versionSummarySchema, versionSummaryStatusEnum };