v0-api 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/schemas.cjs CHANGED
@@ -3,80 +3,81 @@ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  var z = require('zod');
4
4
 
5
5
  function _interopNamespace(e) {
6
- if (e && e.__esModule) return e;
7
- var n = Object.create(null);
8
- if (e) {
9
- Object.keys(e).forEach(function (k) {
10
- if (k !== 'default') {
11
- var d = Object.getOwnPropertyDescriptor(e, k);
12
- Object.defineProperty(n, k, d.get ? d : {
13
- enumerable: true,
14
- get: function () { return e[k]; }
15
- });
16
- }
17
- });
18
- }
19
- n.default = e;
20
- return n;
6
+ if (e && e.__esModule) return e;
7
+ var n = Object.create(null);
8
+ if (e) {
9
+ Object.keys(e).forEach(function (k) {
10
+ if (k !== 'default') {
11
+ var d = Object.getOwnPropertyDescriptor(e, k);
12
+ Object.defineProperty(n, k, d.get ? d : {
13
+ enumerable: true,
14
+ get: function () { return e[k]; }
15
+ });
16
+ }
17
+ });
18
+ }
19
+ n.default = e;
20
+ return n;
21
21
  }
22
22
 
23
23
  var z__namespace = /*#__PURE__*/_interopNamespace(z);
24
24
 
25
25
  // @ts-nocheck
26
26
  const chatDetailSchema = z__namespace.object({
27
- "id": z__namespace.string().describe("A unique identifier for the chat."),
28
- "object": z__namespace.enum([
27
+ id: z__namespace.string().describe("A unique identifier for the chat."),
28
+ object: z__namespace.enum([
29
29
  "chat"
30
30
  ]).describe("Fixed value identifying this object as a chat."),
31
- "shareable": z__namespace.boolean().describe("Indicates whether the chat can be shared via public link."),
32
- "privacy": z__namespace.enum([
31
+ shareable: z__namespace.boolean().describe("Indicates whether the chat can be shared via public link."),
32
+ privacy: z__namespace.enum([
33
33
  "private",
34
34
  "public",
35
35
  "team",
36
36
  "team-edit",
37
37
  "unlisted"
38
38
  ]).describe("Defines the visibility of the chat—private, team-only, or public."),
39
- "name": z__namespace.string().optional().describe("An optional name assigned to the chat by the user."),
40
- "title": z__namespace.string().optional().describe("Deprecated title field preserved for backward compatibility."),
41
- "createdAt": z__namespace.iso.datetime().describe("The ISO timestamp representing when the chat was created."),
42
- "updatedAt": z__namespace.string().optional().describe("The ISO timestamp of the last update to the chat."),
43
- "favorite": z__namespace.boolean().describe("Indicates whether the chat is marked as a favorite."),
44
- "authorId": z__namespace.string().describe("The ID of the user who created the chat."),
45
- "projectId": z__namespace.string().optional().describe("Optional ID of the v0 project associated with this chat."),
46
- "vercelProjectId": z__namespace.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
47
- "webUrl": z__namespace.string().describe("Web URL to view this chat in the browser."),
48
- "apiUrl": z__namespace.string().describe("API URL to access this chat via the API."),
49
- "latestVersion": z__namespace.object({
50
- "id": z__namespace.string().describe("A unique identifier for the version."),
51
- "object": z__namespace.enum([
39
+ name: z__namespace.string().optional().describe("An optional name assigned to the chat by the user."),
40
+ title: z__namespace.string().optional().describe("Deprecated title field preserved for backward compatibility."),
41
+ createdAt: z__namespace.iso.datetime().describe("The ISO timestamp representing when the chat was created."),
42
+ updatedAt: z__namespace.string().optional().describe("The ISO timestamp of the last update to the chat."),
43
+ favorite: z__namespace.boolean().describe("Indicates whether the chat is marked as a favorite."),
44
+ authorId: z__namespace.string().describe("The ID of the user who created the chat."),
45
+ projectId: z__namespace.string().optional().describe("Optional ID of the v0 project associated with this chat."),
46
+ vercelProjectId: z__namespace.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
47
+ webUrl: z__namespace.string().describe("Web URL to view this chat in the browser."),
48
+ apiUrl: z__namespace.string().describe("API URL to access this chat via the API."),
49
+ latestVersion: z__namespace.object({
50
+ id: z__namespace.string().describe("A unique identifier for the version."),
51
+ object: z__namespace.enum([
52
52
  "version"
53
53
  ]).describe("Fixed value identifying this object as a version."),
54
- "status": z__namespace.enum([
54
+ status: z__namespace.enum([
55
55
  "completed",
56
56
  "failed",
57
57
  "pending"
58
58
  ]).describe("The current status of the version generation process."),
59
- "demoUrl": z__namespace.string().optional().describe("Optional URL for previewing the generated output."),
60
- "screenshotUrl": z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
61
- "createdAt": z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
62
- "updatedAt": z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format."),
63
- "files": z__namespace.array(z__namespace.object({
64
- "object": z__namespace.enum([
59
+ demoUrl: z__namespace.string().optional().describe("Optional URL for previewing the generated output."),
60
+ screenshotUrl: z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
61
+ createdAt: z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
62
+ updatedAt: z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format."),
63
+ files: z__namespace.array(z__namespace.object({
64
+ object: z__namespace.enum([
65
65
  "file"
66
66
  ]).describe("Fixed value identifying this object as a file."),
67
- "name": z__namespace.string().describe("The name of the file, including its extension."),
68
- "content": z__namespace.string().describe("The full contents of the file as a raw string."),
69
- "locked": z__namespace.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
67
+ name: z__namespace.string().describe("The name of the file, including its extension."),
68
+ content: z__namespace.string().describe("The full contents of the file as a raw string."),
69
+ locked: z__namespace.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
70
70
  }).strict()).describe("A list of files that were generated or included in this version.")
71
71
  }).strict().optional().describe("Full details of the most recent generated version, if available."),
72
- "url": z__namespace.string().describe("The canonical URL to access this chat."),
73
- "messages": z__namespace.array(z__namespace.object({
74
- "id": z__namespace.string().describe("A unique identifier for the message."),
75
- "object": z__namespace.enum([
72
+ metadata: z__namespace.object({}).catchall(z__namespace.string()).describe("Arbitrary key-value data associated with this chat."),
73
+ url: z__namespace.string().describe("The canonical URL to access this chat."),
74
+ messages: z__namespace.array(z__namespace.object({
75
+ id: z__namespace.string().describe("A unique identifier for the message."),
76
+ object: z__namespace.enum([
76
77
  "message"
77
78
  ]).describe("Fixed value identifying this object as a message."),
78
- "content": z__namespace.string().describe("The main text content of the message."),
79
- "experimentalContent": z__namespace.array(z__namespace.union([
79
+ content: z__namespace.string().describe("The main text content of the message."),
80
+ experimentalContent: z__namespace.array(z__namespace.union([
80
81
  z__namespace.tuple([
81
82
  z__namespace.enum([
82
83
  0
@@ -88,68 +89,68 @@ const chatDetailSchema = z__namespace.object({
88
89
  1
89
90
  ]),
90
91
  z__namespace.object({
91
- "toJSONSchema": z__namespace.string(),
92
- "def": z__namespace.string(),
93
- "type": z__namespace.string(),
94
- "check": z__namespace.string(),
95
- "with": z__namespace.string(),
96
- "clone": z__namespace.string(),
97
- "brand": z__namespace.string(),
98
- "register": z__namespace.string(),
99
- "parse": z__namespace.string(),
100
- "safeParse": z__namespace.string(),
101
- "parseAsync": z__namespace.string(),
102
- "safeParseAsync": z__namespace.string(),
103
- "spa": z__namespace.string(),
104
- "encode": z__namespace.string(),
105
- "decode": z__namespace.string(),
106
- "encodeAsync": z__namespace.string(),
107
- "decodeAsync": z__namespace.string(),
108
- "safeEncode": z__namespace.string(),
109
- "safeDecode": z__namespace.string(),
110
- "safeEncodeAsync": z__namespace.string(),
111
- "safeDecodeAsync": z__namespace.string(),
112
- "refine": z__namespace.string(),
113
- "superRefine": z__namespace.string(),
114
- "overwrite": z__namespace.string(),
115
- "optional": z__namespace.string(),
116
- "exactOptional": z__namespace.string(),
117
- "nullable": z__namespace.string(),
118
- "nullish": z__namespace.string(),
119
- "nonoptional": z__namespace.string(),
120
- "array": z__namespace.string(),
121
- "or": z__namespace.string(),
122
- "and": z__namespace.string(),
123
- "transform": z__namespace.string(),
124
- "default": z__namespace.string(),
125
- "prefault": z__namespace.string(),
126
- "catch": z__namespace.string(),
127
- "pipe": z__namespace.string(),
128
- "readonly": z__namespace.string(),
129
- "describe": z__namespace.string(),
130
- "meta": z__namespace.string(),
131
- "isOptional": z__namespace.string(),
132
- "isNullable": z__namespace.string(),
133
- "apply": z__namespace.string(),
134
- "keyof": z__namespace.string(),
135
- "catchall": z__namespace.string(),
136
- "passthrough": z__namespace.string(),
137
- "loose": z__namespace.string(),
138
- "strict": z__namespace.string(),
139
- "strip": z__namespace.string(),
140
- "extend": z__namespace.string(),
141
- "safeExtend": z__namespace.string(),
142
- "merge": z__namespace.string(),
143
- "pick": z__namespace.string(),
144
- "omit": z__namespace.string(),
145
- "partial": z__namespace.string(),
146
- "required": z__namespace.string()
92
+ toJSONSchema: z__namespace.string(),
93
+ def: z__namespace.string(),
94
+ type: z__namespace.string(),
95
+ check: z__namespace.string(),
96
+ with: z__namespace.string(),
97
+ clone: z__namespace.string(),
98
+ brand: z__namespace.string(),
99
+ register: z__namespace.string(),
100
+ parse: z__namespace.string(),
101
+ safeParse: z__namespace.string(),
102
+ parseAsync: z__namespace.string(),
103
+ safeParseAsync: z__namespace.string(),
104
+ spa: z__namespace.string(),
105
+ encode: z__namespace.string(),
106
+ decode: z__namespace.string(),
107
+ encodeAsync: z__namespace.string(),
108
+ decodeAsync: z__namespace.string(),
109
+ safeEncode: z__namespace.string(),
110
+ safeDecode: z__namespace.string(),
111
+ safeEncodeAsync: z__namespace.string(),
112
+ safeDecodeAsync: z__namespace.string(),
113
+ refine: z__namespace.string(),
114
+ superRefine: z__namespace.string(),
115
+ overwrite: z__namespace.string(),
116
+ optional: z__namespace.string(),
117
+ exactOptional: z__namespace.string(),
118
+ nullable: z__namespace.string(),
119
+ nullish: z__namespace.string(),
120
+ nonoptional: z__namespace.string(),
121
+ array: z__namespace.string(),
122
+ or: z__namespace.string(),
123
+ and: z__namespace.string(),
124
+ transform: z__namespace.string(),
125
+ default: z__namespace.string(),
126
+ prefault: z__namespace.string(),
127
+ catch: z__namespace.string(),
128
+ pipe: z__namespace.string(),
129
+ readonly: z__namespace.string(),
130
+ describe: z__namespace.string(),
131
+ meta: z__namespace.string(),
132
+ isOptional: z__namespace.string(),
133
+ isNullable: z__namespace.string(),
134
+ apply: z__namespace.string(),
135
+ keyof: z__namespace.string(),
136
+ catchall: z__namespace.string(),
137
+ passthrough: z__namespace.string(),
138
+ loose: z__namespace.string(),
139
+ strict: z__namespace.string(),
140
+ strip: z__namespace.string(),
141
+ extend: z__namespace.string(),
142
+ safeExtend: z__namespace.string(),
143
+ merge: z__namespace.string(),
144
+ pick: z__namespace.string(),
145
+ omit: z__namespace.string(),
146
+ partial: z__namespace.string(),
147
+ required: z__namespace.string()
147
148
  }).strict()
148
149
  ])
149
150
  ])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
150
- "createdAt": z__namespace.string().describe("The ISO timestamp representing when the message was created."),
151
- "updatedAt": z__namespace.iso.datetime().optional().describe("The ISO timestamp representing when the message was last updated."),
152
- "type": z__namespace.enum([
151
+ createdAt: z__namespace.string().describe("The ISO timestamp representing when the message was created."),
152
+ updatedAt: z__namespace.iso.datetime().optional().describe("The ISO timestamp representing when the message was last updated."),
153
+ type: z__namespace.enum([
153
154
  "added-environment-variables",
154
155
  "added-integration",
155
156
  "answered-questions",
@@ -173,11 +174,11 @@ const chatDetailSchema = z__namespace.object({
173
174
  "reverted-block",
174
175
  "sync-git"
175
176
  ]).describe("Indicates the format or category of the message, such as plain text or code."),
176
- "role": z__namespace.enum([
177
+ role: z__namespace.enum([
177
178
  "assistant",
178
179
  "user"
179
180
  ]).describe("Specifies whether the message was sent by the user or the assistant."),
180
- "finishReason": z__namespace.enum([
181
+ finishReason: z__namespace.enum([
181
182
  "content-filter",
182
183
  "error",
183
184
  "length",
@@ -185,31 +186,31 @@ const chatDetailSchema = z__namespace.object({
185
186
  "stop",
186
187
  "tool-calls"
187
188
  ]).optional().describe("The reason why the message generation finished."),
188
- "apiUrl": z__namespace.string().describe("API URL to access this message via the API."),
189
- "authorId": z__namespace.null().describe("The ID of the user who sent the message."),
190
- "parentId": z__namespace.null().optional().describe("The ID of the parent message."),
191
- "attachments": z__namespace.array(z__namespace.object({
192
- "url": z__namespace.string().describe("The URL where the attachment file can be accessed."),
193
- "name": z__namespace.string().optional().describe("The original filename of the attachment."),
194
- "contentType": z__namespace.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
195
- "size": z__namespace.number().describe("The size of the attachment file in bytes."),
196
- "content": z__namespace.string().optional().describe("The base64-encoded content of the attachment file, if available."),
197
- "type": z__namespace.enum([
189
+ apiUrl: z__namespace.string().describe("API URL to access this message via the API."),
190
+ authorId: z__namespace.null().describe("The ID of the user who sent the message."),
191
+ parentId: z__namespace.null().optional().describe("The ID of the parent message."),
192
+ attachments: z__namespace.array(z__namespace.object({
193
+ url: z__namespace.string().describe("The URL where the attachment file can be accessed."),
194
+ name: z__namespace.string().optional().describe("The original filename of the attachment."),
195
+ contentType: z__namespace.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
196
+ size: z__namespace.number().describe("The size of the attachment file in bytes."),
197
+ content: z__namespace.string().optional().describe("The base64-encoded content of the attachment file, if available."),
198
+ type: z__namespace.enum([
198
199
  "figma",
199
200
  "screenshot",
200
201
  "zip"
201
202
  ]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
202
203
  }).strict()).optional()
203
204
  }).strict()).describe("All messages exchanged in the chat, including user and assistant entries."),
204
- "files": z__namespace.array(z__namespace.object({
205
- "lang": z__namespace.string().describe("Programming language used in the file (e.g., JavaScript, Python)."),
206
- "meta": z__namespace.object({}).catchall(z__namespace.string()).describe("A key-value map of metadata associated with the file (e.g., path, type)."),
207
- "source": z__namespace.string().describe("The origin or identifier of the file source (e.g., path or upload label).")
205
+ files: z__namespace.array(z__namespace.object({
206
+ lang: z__namespace.string().describe("Programming language used in the file (e.g., JavaScript, Python)."),
207
+ meta: z__namespace.object({}).catchall(z__namespace.string()).describe("A key-value map of metadata associated with the file (e.g., path, type)."),
208
+ source: z__namespace.string().describe("The origin or identifier of the file source (e.g., path or upload label).")
208
209
  }).strict()).optional().describe("Optional array of files associated with the chat context."),
209
- "demo": z__namespace.string().optional().describe("Deprecated demo URL used for previewing the chat result."),
210
- "text": z__namespace.string().describe("The main user prompt or instruction that started the chat."),
211
- "modelConfiguration": z__namespace.object({
212
- "modelId": z__namespace.enum([
210
+ demo: z__namespace.string().optional().describe("Deprecated demo URL used for previewing the chat result."),
211
+ text: z__namespace.string().describe("The main user prompt or instruction that started the chat."),
212
+ modelConfiguration: z__namespace.object({
213
+ modelId: z__namespace.enum([
213
214
  "v0-auto",
214
215
  "v0-max",
215
216
  "v0-max-fast",
@@ -218,136 +219,136 @@ const chatDetailSchema = z__namespace.object({
218
219
  "v0-opus-4.7-fast",
219
220
  "v0-pro"
220
221
  ]).optional().default("v0-pro").describe("Model to use for the generation. `v0-auto` is deprecated and falls back to `v0-pro`."),
221
- "imageGenerations": z__namespace.boolean().optional().default(false).describe("Enables image generations to generate up to 5 images per version."),
222
- "thinking": z__namespace.boolean().optional().default(false).describe("Enables thinking to generate a response in multiple steps.")
222
+ imageGenerations: z__namespace.boolean().optional().default(false).describe("Enables image generations to generate up to 5 images per version."),
223
+ thinking: z__namespace.boolean().optional().default(false).describe("Enables thinking to generate a response in multiple steps.")
223
224
  }).strict().optional().describe("The configuration used to generate responses in this chat."),
224
- "permissions": z__namespace.object({
225
- "write": z__namespace.boolean().describe("If true, the user has write access to the chat.")
226
- }).strict(),
227
- "metadata": z__namespace.object({}).catchall(z__namespace.string()).describe("Arbitrary key-value data associated with this chat.")
225
+ permissions: z__namespace.object({
226
+ write: z__namespace.boolean().describe("If true, the user has write access to the chat.")
227
+ }).strict()
228
228
  }).strict().describe("Detailed representation of a chat, including its messages, files, versions, and model configuration.");
229
229
  const chatSummarySchema = z__namespace.object({
230
- "id": z__namespace.string().describe("A unique identifier for the chat."),
231
- "object": z__namespace.enum([
230
+ id: z__namespace.string().describe("A unique identifier for the chat."),
231
+ object: z__namespace.enum([
232
232
  "chat"
233
233
  ]).describe("Fixed value identifying this object as a chat."),
234
- "shareable": z__namespace.boolean().describe("Indicates whether the chat can be shared via public link."),
235
- "privacy": z__namespace.enum([
234
+ shareable: z__namespace.boolean().describe("Indicates whether the chat can be shared via public link."),
235
+ privacy: z__namespace.enum([
236
236
  "private",
237
237
  "public",
238
238
  "team",
239
239
  "team-edit",
240
240
  "unlisted"
241
241
  ]).describe("Defines the visibility of the chat—private, team-only, or public."),
242
- "name": z__namespace.string().optional().describe("An optional name assigned to the chat by the user."),
243
- "title": z__namespace.string().optional().describe("Deprecated title field preserved for backward compatibility."),
244
- "createdAt": z__namespace.iso.datetime().describe("The ISO timestamp representing when the chat was created."),
245
- "updatedAt": z__namespace.string().optional().describe("The ISO timestamp of the last update to the chat."),
246
- "favorite": z__namespace.boolean().describe("Indicates whether the chat is marked as a favorite."),
247
- "authorId": z__namespace.string().describe("The ID of the user who created the chat."),
248
- "projectId": z__namespace.string().optional().describe("Optional ID of the v0 project associated with this chat."),
249
- "vercelProjectId": z__namespace.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
250
- "webUrl": z__namespace.string().describe("Web URL to view this chat in the browser."),
251
- "apiUrl": z__namespace.string().describe("API URL to access this chat via the API."),
252
- "latestVersion": z__namespace.object({
253
- "id": z__namespace.string().describe("A unique identifier for the version."),
254
- "object": z__namespace.enum([
242
+ name: z__namespace.string().optional().describe("An optional name assigned to the chat by the user."),
243
+ title: z__namespace.string().optional().describe("Deprecated title field preserved for backward compatibility."),
244
+ createdAt: z__namespace.iso.datetime().describe("The ISO timestamp representing when the chat was created."),
245
+ updatedAt: z__namespace.string().optional().describe("The ISO timestamp of the last update to the chat."),
246
+ favorite: z__namespace.boolean().describe("Indicates whether the chat is marked as a favorite."),
247
+ authorId: z__namespace.string().describe("The ID of the user who created the chat."),
248
+ projectId: z__namespace.string().optional().describe("Optional ID of the v0 project associated with this chat."),
249
+ vercelProjectId: z__namespace.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
250
+ webUrl: z__namespace.string().describe("Web URL to view this chat in the browser."),
251
+ apiUrl: z__namespace.string().describe("API URL to access this chat via the API."),
252
+ latestVersion: z__namespace.object({
253
+ id: z__namespace.string().describe("A unique identifier for the version."),
254
+ object: z__namespace.enum([
255
255
  "version"
256
256
  ]).describe("Fixed value identifying this object as a version."),
257
- "status": z__namespace.enum([
257
+ status: z__namespace.enum([
258
258
  "completed",
259
259
  "failed",
260
260
  "pending"
261
261
  ]).describe("The current status of the version generation process."),
262
- "demoUrl": z__namespace.string().optional().describe("Optional URL for previewing the generated output."),
263
- "screenshotUrl": z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
264
- "createdAt": z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
265
- "updatedAt": z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
266
- }).strict().optional().describe("The most recent generated version of the chat, if available.")
262
+ demoUrl: z__namespace.string().optional().describe("Optional URL for previewing the generated output."),
263
+ screenshotUrl: z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
264
+ createdAt: z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
265
+ updatedAt: z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
266
+ }).strict().optional().describe("The most recent generated version of the chat, if available."),
267
+ metadata: z__namespace.object({}).catchall(z__namespace.string()).describe("Arbitrary key-value data associated with this chat.")
267
268
  }).strict().describe("Summary of a chat, including metadata like privacy, author, latest version, and URLs.");
268
269
  const deploymentDetailSchema = z__namespace.object({
269
- "id": z__namespace.string().describe("A unique identifier for the deployment."),
270
- "object": z__namespace.enum([
270
+ id: z__namespace.string().describe("A unique identifier for the deployment."),
271
+ object: z__namespace.enum([
271
272
  "deployment"
272
273
  ]).describe("Fixed value identifying this object as a deployment."),
273
- "inspectorUrl": z__namespace.string().describe("URL to the deployment inspector."),
274
- "chatId": z__namespace.string().describe("The ID of the chat that this deployment is scoped to."),
275
- "projectId": z__namespace.string().optional().describe("The ID of the project that this deployment is scoped to."),
276
- "versionId": z__namespace.string().describe("The ID of the version that this deployment is scoped to."),
277
- "apiUrl": z__namespace.url().describe("The API endpoint URL for accessing this deployment programmatically."),
278
- "webUrl": z__namespace.url().describe("The web URL where the deployment can be viewed or managed.")
274
+ inspectorUrl: z__namespace.string().describe("URL to the deployment inspector."),
275
+ chatId: z__namespace.string().describe("The ID of the chat that this deployment is scoped to."),
276
+ projectId: z__namespace.string().optional().describe("The ID of the project that this deployment is scoped to."),
277
+ versionId: z__namespace.string().describe("The ID of the version that this deployment is scoped to."),
278
+ apiUrl: z__namespace.url().describe("The API endpoint URL for accessing this deployment programmatically."),
279
+ webUrl: z__namespace.url().describe("The web URL where the deployment can be viewed or managed.")
279
280
  }).strict();
280
281
  const deploymentSummarySchema = z__namespace.object({
281
- "id": z__namespace.string().describe("A unique identifier for the deployment."),
282
- "object": z__namespace.enum([
282
+ id: z__namespace.string().describe("A unique identifier for the deployment."),
283
+ object: z__namespace.enum([
283
284
  "deployment"
284
285
  ]).describe("Fixed value identifying this object as a deployment."),
285
- "inspectorUrl": z__namespace.string().describe("URL to the deployment inspector."),
286
- "chatId": z__namespace.string().describe("The ID of the chat that this deployment is scoped to."),
287
- "projectId": z__namespace.string().optional().describe("The ID of the project that this deployment is scoped to."),
288
- "versionId": z__namespace.string().describe("The ID of the version that this deployment is scoped to."),
289
- "apiUrl": z__namespace.url().describe("The API endpoint URL for accessing this deployment programmatically."),
290
- "webUrl": z__namespace.url().describe("The web URL where the deployment can be viewed or managed.")
286
+ inspectorUrl: z__namespace.string().describe("URL to the deployment inspector."),
287
+ chatId: z__namespace.string().describe("The ID of the chat that this deployment is scoped to."),
288
+ projectId: z__namespace.string().optional().describe("The ID of the project that this deployment is scoped to."),
289
+ versionId: z__namespace.string().describe("The ID of the version that this deployment is scoped to."),
290
+ apiUrl: z__namespace.url().describe("The API endpoint URL for accessing this deployment programmatically."),
291
+ webUrl: z__namespace.url().describe("The web URL where the deployment can be viewed or managed.")
291
292
  }).strict();
292
293
  const environmentVariableDetailSchemaSchema = z__namespace.object({
293
- "id": z__namespace.string().describe("A unique identifier for the environment variable."),
294
- "object": z__namespace.enum([
294
+ id: z__namespace.string().describe("A unique identifier for the environment variable."),
295
+ object: z__namespace.enum([
295
296
  "environment_variable"
296
297
  ]).describe("The object type."),
297
- "key": z__namespace.string().describe("The name of the environment variable."),
298
- "value": z__namespace.string().describe("The value of the environment variable."),
299
- "decrypted": z__namespace.boolean().describe("Whether the value is decrypted or encrypted."),
300
- "createdAt": z__namespace.number().describe("The timestamp when the environment variable was created."),
301
- "updatedAt": z__namespace.number().optional().describe("The timestamp when the environment variable was last updated.")
298
+ key: z__namespace.string().describe("The name of the environment variable."),
299
+ value: z__namespace.string().describe("The value of the environment variable."),
300
+ decrypted: z__namespace.boolean().describe("Whether the value is decrypted or encrypted."),
301
+ createdAt: z__namespace.number().describe("The timestamp when the environment variable was created."),
302
+ updatedAt: z__namespace.number().optional().describe("The timestamp when the environment variable was last updated.")
302
303
  }).strict().describe("Detailed information for an environment variable including its value.");
303
304
  const environmentVariableSummarySchemaSchema = z__namespace.object({
304
- "id": z__namespace.string().describe("A unique identifier for the environment variable."),
305
- "object": z__namespace.enum([
305
+ id: z__namespace.string().describe("A unique identifier for the environment variable."),
306
+ object: z__namespace.enum([
306
307
  "environment_variable"
307
308
  ]).describe("The object type."),
308
- "key": z__namespace.string().describe("The name of the environment variable."),
309
- "value": z__namespace.string().describe("The value of the environment variable."),
310
- "decrypted": z__namespace.boolean().describe("Whether the value is decrypted or encrypted."),
311
- "createdAt": z__namespace.number().describe("The timestamp when the environment variable was created."),
312
- "updatedAt": z__namespace.number().optional().describe("The timestamp when the environment variable was last updated.")
309
+ key: z__namespace.string().describe("The name of the environment variable."),
310
+ value: z__namespace.string().describe("The value of the environment variable."),
311
+ decrypted: z__namespace.boolean().describe("Whether the value is decrypted or encrypted."),
312
+ createdAt: z__namespace.number().describe("The timestamp when the environment variable was created."),
313
+ updatedAt: z__namespace.number().optional().describe("The timestamp when the environment variable was last updated.")
313
314
  }).strict().describe("Summary information for an environment variable.");
314
315
  const environmentVariablesListSchemaSchema = z__namespace.object({
315
- "object": z__namespace.enum([
316
+ object: z__namespace.enum([
316
317
  "list"
317
318
  ]).describe("Fixed value identifying this as a list response."),
318
- "data": z__namespace.array(z__namespace.object({
319
- "id": z__namespace.string().describe("A unique identifier for the environment variable."),
320
- "object": z__namespace.enum([
319
+ data: z__namespace.array(z__namespace.object({
320
+ id: z__namespace.string().describe("A unique identifier for the environment variable."),
321
+ object: z__namespace.enum([
321
322
  "environment_variable"
322
323
  ]).describe("The object type."),
323
- "key": z__namespace.string().describe("The name of the environment variable."),
324
- "value": z__namespace.string().describe("The value of the environment variable."),
325
- "decrypted": z__namespace.boolean().describe("Whether the value is decrypted or encrypted."),
326
- "createdAt": z__namespace.number().describe("The timestamp when the environment variable was created."),
327
- "updatedAt": z__namespace.number().optional().describe("The timestamp when the environment variable was last updated.")
324
+ key: z__namespace.string().describe("The name of the environment variable."),
325
+ value: z__namespace.string().describe("The value of the environment variable."),
326
+ decrypted: z__namespace.boolean().describe("Whether the value is decrypted or encrypted."),
327
+ createdAt: z__namespace.number().describe("The timestamp when the environment variable was created."),
328
+ updatedAt: z__namespace.number().optional().describe("The timestamp when the environment variable was last updated.")
328
329
  }).strict()).describe("Array of environment variable details.")
329
330
  }).strict().describe("List response containing environment variables.");
330
331
  const fileDetailSchema = z__namespace.object({
331
- "object": z__namespace.enum([
332
+ object: z__namespace.enum([
332
333
  "file"
333
334
  ]).describe("Fixed value identifying this object as a file."),
334
- "name": z__namespace.string().describe("The name of the file, including its extension."),
335
- "content": z__namespace.string().describe("The full contents of the file as a raw string."),
336
- "locked": z__namespace.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
335
+ name: z__namespace.string().describe("The name of the file, including its extension."),
336
+ content: z__namespace.string().describe("The full contents of the file as a raw string."),
337
+ locked: z__namespace.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
337
338
  }).strict().describe("Detailed representation of a file, including its content and lock status.");
338
339
  const fileSummarySchema = z__namespace.object({
339
- "object": z__namespace.enum([
340
+ object: z__namespace.enum([
340
341
  "file"
341
342
  ]).describe("Fixed value identifying this object as a file."),
342
- "name": z__namespace.string().describe("The name of the file, including its extension.")
343
+ name: z__namespace.string().describe("The name of the file, including its extension.")
343
344
  }).strict().describe("Basic metadata about a file, such as its type and name.");
344
345
  const hookDetailSchema = z__namespace.object({
345
- "id": z__namespace.string().describe("A unique identifier for the webhook."),
346
- "object": z__namespace.enum([
346
+ id: z__namespace.string().describe("A unique identifier for the webhook."),
347
+ object: z__namespace.enum([
347
348
  "hook"
348
349
  ]).describe("Fixed value identifying this object as a webhook."),
349
- "name": z__namespace.string().describe("A user-defined name to label the webhook."),
350
- "events": z__namespace.array(z__namespace.enum([
350
+ name: z__namespace.string().describe("A user-defined name to label the webhook."),
351
+ events: z__namespace.array(z__namespace.enum([
351
352
  "chat.created",
352
353
  "chat.deleted",
353
354
  "chat.updated",
@@ -356,15 +357,15 @@ const hookDetailSchema = z__namespace.object({
356
357
  "message.finished",
357
358
  "message.updated"
358
359
  ])).describe("List of event types this webhook is subscribed to."),
359
- "chatId": z__namespace.string().optional().describe("Optional ID of the chat that this webhook is scoped to."),
360
- "url": z__namespace.string().describe("Target URL that receives event payloads for this webhook.")
360
+ chatId: z__namespace.string().optional().describe("Optional ID of the chat that this webhook is scoped to."),
361
+ url: z__namespace.string().describe("Target URL that receives event payloads for this webhook.")
361
362
  }).strict().describe("Full configuration details for a webhook, including its scope and subscription.");
362
363
  const hookEventDetailSchema = z__namespace.object({
363
- "id": z__namespace.string().describe("A unique identifier for the webhook event log entry."),
364
- "object": z__namespace.enum([
364
+ id: z__namespace.string().describe("A unique identifier for the webhook event log entry."),
365
+ object: z__namespace.enum([
365
366
  "hook_event"
366
367
  ]).describe("Fixed value identifying this object as a webhook event."),
367
- "event": z__namespace.enum([
368
+ event: z__namespace.enum([
368
369
  "chat.created",
369
370
  "chat.deleted",
370
371
  "chat.updated",
@@ -373,111 +374,111 @@ const hookEventDetailSchema = z__namespace.object({
373
374
  "message.finished",
374
375
  "message.updated"
375
376
  ]).describe("The type of event that triggered the webhook."),
376
- "status": z__namespace.enum([
377
+ status: z__namespace.enum([
377
378
  "error",
378
379
  "pending",
379
380
  "success"
380
381
  ]).optional().default("pending").describe("The delivery status of the webhook (e.g., delivered, failed)."),
381
- "createdAt": z__namespace.iso.datetime().describe("Timestamp of when the webhook event was triggered.")
382
+ createdAt: z__namespace.iso.datetime().describe("Timestamp of when the webhook event was triggered.")
382
383
  }).strict().describe("Detailed record of a webhook event, including its type, status, and timestamp.");
383
384
  const hookSummarySchema = z__namespace.object({
384
- "id": z__namespace.string().describe("A unique identifier for the webhook."),
385
- "object": z__namespace.enum([
385
+ id: z__namespace.string().describe("A unique identifier for the webhook."),
386
+ object: z__namespace.enum([
386
387
  "hook"
387
388
  ]).describe("Fixed value identifying this object as a webhook."),
388
- "name": z__namespace.string().describe("A user-defined name to label the webhook.")
389
+ name: z__namespace.string().describe("A user-defined name to label the webhook.")
389
390
  }).strict().describe("Summary of a webhook, including its ID and display name.");
390
391
  const integrationConnectionDetailSchemaSchema = z__namespace.object({
391
- "object": z__namespace.enum([
392
+ object: z__namespace.enum([
392
393
  "integration_connection"
393
394
  ]).describe("The object type."),
394
- "id": z__namespace.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
395
- "connected": z__namespace.boolean().describe("Whether the integration is connected to the project."),
396
- "integration": z__namespace.object({
397
- "id": z__namespace.string().describe("The ID of the integration."),
398
- "object": z__namespace.enum([
395
+ id: z__namespace.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
396
+ connected: z__namespace.boolean().describe("Whether the integration is connected to the project."),
397
+ integration: z__namespace.object({
398
+ id: z__namespace.string().describe("The ID of the integration."),
399
+ object: z__namespace.enum([
399
400
  "integration"
400
401
  ]).describe("The object type."),
401
- "slug": z__namespace.string().describe("The slug of the integration."),
402
- "name": z__namespace.string().describe("The name of the integration.")
402
+ slug: z__namespace.string().describe("The slug of the integration."),
403
+ name: z__namespace.string().describe("The name of the integration.")
403
404
  }).strict().describe("Information about the connected integration."),
404
- "metadata": z__namespace.object({}).catchall(z__namespace.unknown()).optional().describe("Additional metadata about the integration connection.")
405
+ metadata: z__namespace.object({}).catchall(z__namespace.unknown()).optional().describe("Additional metadata about the integration connection.")
405
406
  }).strict().describe("Detailed information about an integration connection to a project.");
406
407
  const integrationConnectionListSchemaSchema = z__namespace.object({
407
- "object": z__namespace.enum([
408
+ object: z__namespace.enum([
408
409
  "list"
409
410
  ]).describe("Fixed value identifying this as a list response."),
410
- "data": z__namespace.array(z__namespace.object({
411
- "object": z__namespace.enum([
411
+ data: z__namespace.array(z__namespace.object({
412
+ object: z__namespace.enum([
412
413
  "integration_connection"
413
414
  ]).describe("The object type."),
414
- "id": z__namespace.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
415
- "connected": z__namespace.boolean().describe("Whether the integration is connected to the project."),
416
- "integration": z__namespace.object({
417
- "id": z__namespace.string().describe("The ID of the integration."),
418
- "object": z__namespace.enum([
415
+ id: z__namespace.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
416
+ connected: z__namespace.boolean().describe("Whether the integration is connected to the project."),
417
+ integration: z__namespace.object({
418
+ id: z__namespace.string().describe("The ID of the integration."),
419
+ object: z__namespace.enum([
419
420
  "integration"
420
421
  ]).describe("The object type."),
421
- "slug": z__namespace.string().describe("The slug of the integration."),
422
- "name": z__namespace.string().describe("The name of the integration.")
422
+ slug: z__namespace.string().describe("The slug of the integration."),
423
+ name: z__namespace.string().describe("The name of the integration.")
423
424
  }).strict().describe("Information about the connected integration.")
424
425
  }).strict()).describe("Array of integration connection summaries.")
425
426
  }).strict().describe("List response containing integration connections.");
426
427
  const integrationConnectionSummarySchemaSchema = z__namespace.object({
427
- "object": z__namespace.enum([
428
+ object: z__namespace.enum([
428
429
  "integration_connection"
429
430
  ]).describe("The object type."),
430
- "id": z__namespace.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
431
- "connected": z__namespace.boolean().describe("Whether the integration is connected to the project."),
432
- "integration": z__namespace.object({
433
- "id": z__namespace.string().describe("The ID of the integration."),
434
- "object": z__namespace.enum([
431
+ id: z__namespace.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
432
+ connected: z__namespace.boolean().describe("Whether the integration is connected to the project."),
433
+ integration: z__namespace.object({
434
+ id: z__namespace.string().describe("The ID of the integration."),
435
+ object: z__namespace.enum([
435
436
  "integration"
436
437
  ]).describe("The object type."),
437
- "slug": z__namespace.string().describe("The slug of the integration."),
438
- "name": z__namespace.string().describe("The name of the integration.")
438
+ slug: z__namespace.string().describe("The slug of the integration."),
439
+ name: z__namespace.string().describe("The name of the integration.")
439
440
  }).strict().describe("Information about the connected integration.")
440
441
  }).strict().describe("Summary information about an integration connection to a project.");
441
442
  const integrationDetailSchemaSchema = z__namespace.object({
442
- "id": z__namespace.string().describe("The ID of the integration."),
443
- "object": z__namespace.enum([
443
+ id: z__namespace.string().describe("The ID of the integration."),
444
+ object: z__namespace.enum([
444
445
  "integration"
445
446
  ]).describe("The object type."),
446
- "slug": z__namespace.string().describe("The slug of the integration."),
447
- "name": z__namespace.string().describe("The name of the integration."),
448
- "description": z__namespace.string().describe("A short description of the integration."),
449
- "iconUrl": z__namespace.string().describe("URL to the integration icon.")
447
+ slug: z__namespace.string().describe("The slug of the integration."),
448
+ name: z__namespace.string().describe("The name of the integration."),
449
+ description: z__namespace.string().describe("A short description of the integration."),
450
+ iconUrl: z__namespace.string().describe("URL to the integration icon.")
450
451
  }).strict().describe("Detailed information about an integration.");
451
452
  const integrationListSchemaSchema = z__namespace.object({
452
- "object": z__namespace.enum([
453
+ object: z__namespace.enum([
453
454
  "list"
454
455
  ]).describe("Fixed value identifying this as a list response."),
455
- "data": z__namespace.array(z__namespace.object({
456
- "id": z__namespace.string().describe("The ID of the integration."),
457
- "object": z__namespace.enum([
456
+ data: z__namespace.array(z__namespace.object({
457
+ id: z__namespace.string().describe("The ID of the integration."),
458
+ object: z__namespace.enum([
458
459
  "integration"
459
460
  ]).describe("The object type."),
460
- "slug": z__namespace.string().describe("The slug of the integration."),
461
- "name": z__namespace.string().describe("The name of the integration."),
462
- "description": z__namespace.string().describe("A short description of the integration."),
463
- "iconUrl": z__namespace.string().describe("URL to the integration icon.")
461
+ slug: z__namespace.string().describe("The slug of the integration."),
462
+ name: z__namespace.string().describe("The name of the integration."),
463
+ description: z__namespace.string().describe("A short description of the integration."),
464
+ iconUrl: z__namespace.string().describe("URL to the integration icon.")
464
465
  }).strict()).describe("Array of integration details.")
465
466
  }).strict().describe("List of available integrations.");
466
467
  const integrationSummarySchemaSchema = z__namespace.object({
467
- "id": z__namespace.string().describe("The ID of the integration."),
468
- "object": z__namespace.enum([
468
+ id: z__namespace.string().describe("The ID of the integration."),
469
+ object: z__namespace.enum([
469
470
  "integration"
470
471
  ]).describe("The object type."),
471
- "slug": z__namespace.string().describe("The slug of the integration."),
472
- "name": z__namespace.string().describe("The name of the integration.")
472
+ slug: z__namespace.string().describe("The slug of the integration."),
473
+ name: z__namespace.string().describe("The name of the integration.")
473
474
  }).strict().describe("Basic information about an integration.");
474
475
  const messageDetailSchema = z__namespace.object({
475
- "id": z__namespace.string().describe("A unique identifier for the message."),
476
- "object": z__namespace.enum([
476
+ id: z__namespace.string().describe("A unique identifier for the message."),
477
+ object: z__namespace.enum([
477
478
  "message"
478
479
  ]).describe("Fixed value identifying this object as a message."),
479
- "content": z__namespace.string().describe("The main text content of the message."),
480
- "experimentalContent": z__namespace.array(z__namespace.union([
480
+ content: z__namespace.string().describe("The main text content of the message."),
481
+ experimentalContent: z__namespace.array(z__namespace.union([
481
482
  z__namespace.tuple([
482
483
  z__namespace.enum([
483
484
  0
@@ -489,68 +490,68 @@ const messageDetailSchema = z__namespace.object({
489
490
  1
490
491
  ]),
491
492
  z__namespace.object({
492
- "toJSONSchema": z__namespace.string(),
493
- "def": z__namespace.string(),
494
- "type": z__namespace.string(),
495
- "check": z__namespace.string(),
496
- "with": z__namespace.string(),
497
- "clone": z__namespace.string(),
498
- "brand": z__namespace.string(),
499
- "register": z__namespace.string(),
500
- "parse": z__namespace.string(),
501
- "safeParse": z__namespace.string(),
502
- "parseAsync": z__namespace.string(),
503
- "safeParseAsync": z__namespace.string(),
504
- "spa": z__namespace.string(),
505
- "encode": z__namespace.string(),
506
- "decode": z__namespace.string(),
507
- "encodeAsync": z__namespace.string(),
508
- "decodeAsync": z__namespace.string(),
509
- "safeEncode": z__namespace.string(),
510
- "safeDecode": z__namespace.string(),
511
- "safeEncodeAsync": z__namespace.string(),
512
- "safeDecodeAsync": z__namespace.string(),
513
- "refine": z__namespace.string(),
514
- "superRefine": z__namespace.string(),
515
- "overwrite": z__namespace.string(),
516
- "optional": z__namespace.string(),
517
- "exactOptional": z__namespace.string(),
518
- "nullable": z__namespace.string(),
519
- "nullish": z__namespace.string(),
520
- "nonoptional": z__namespace.string(),
521
- "array": z__namespace.string(),
522
- "or": z__namespace.string(),
523
- "and": z__namespace.string(),
524
- "transform": z__namespace.string(),
525
- "default": z__namespace.string(),
526
- "prefault": z__namespace.string(),
527
- "catch": z__namespace.string(),
528
- "pipe": z__namespace.string(),
529
- "readonly": z__namespace.string(),
530
- "describe": z__namespace.string(),
531
- "meta": z__namespace.string(),
532
- "isOptional": z__namespace.string(),
533
- "isNullable": z__namespace.string(),
534
- "apply": z__namespace.string(),
535
- "keyof": z__namespace.string(),
536
- "catchall": z__namespace.string(),
537
- "passthrough": z__namespace.string(),
538
- "loose": z__namespace.string(),
539
- "strict": z__namespace.string(),
540
- "strip": z__namespace.string(),
541
- "extend": z__namespace.string(),
542
- "safeExtend": z__namespace.string(),
543
- "merge": z__namespace.string(),
544
- "pick": z__namespace.string(),
545
- "omit": z__namespace.string(),
546
- "partial": z__namespace.string(),
547
- "required": z__namespace.string()
493
+ toJSONSchema: z__namespace.string(),
494
+ def: z__namespace.string(),
495
+ type: z__namespace.string(),
496
+ check: z__namespace.string(),
497
+ with: z__namespace.string(),
498
+ clone: z__namespace.string(),
499
+ brand: z__namespace.string(),
500
+ register: z__namespace.string(),
501
+ parse: z__namespace.string(),
502
+ safeParse: z__namespace.string(),
503
+ parseAsync: z__namespace.string(),
504
+ safeParseAsync: z__namespace.string(),
505
+ spa: z__namespace.string(),
506
+ encode: z__namespace.string(),
507
+ decode: z__namespace.string(),
508
+ encodeAsync: z__namespace.string(),
509
+ decodeAsync: z__namespace.string(),
510
+ safeEncode: z__namespace.string(),
511
+ safeDecode: z__namespace.string(),
512
+ safeEncodeAsync: z__namespace.string(),
513
+ safeDecodeAsync: z__namespace.string(),
514
+ refine: z__namespace.string(),
515
+ superRefine: z__namespace.string(),
516
+ overwrite: z__namespace.string(),
517
+ optional: z__namespace.string(),
518
+ exactOptional: z__namespace.string(),
519
+ nullable: z__namespace.string(),
520
+ nullish: z__namespace.string(),
521
+ nonoptional: z__namespace.string(),
522
+ array: z__namespace.string(),
523
+ or: z__namespace.string(),
524
+ and: z__namespace.string(),
525
+ transform: z__namespace.string(),
526
+ default: z__namespace.string(),
527
+ prefault: z__namespace.string(),
528
+ catch: z__namespace.string(),
529
+ pipe: z__namespace.string(),
530
+ readonly: z__namespace.string(),
531
+ describe: z__namespace.string(),
532
+ meta: z__namespace.string(),
533
+ isOptional: z__namespace.string(),
534
+ isNullable: z__namespace.string(),
535
+ apply: z__namespace.string(),
536
+ keyof: z__namespace.string(),
537
+ catchall: z__namespace.string(),
538
+ passthrough: z__namespace.string(),
539
+ loose: z__namespace.string(),
540
+ strict: z__namespace.string(),
541
+ strip: z__namespace.string(),
542
+ extend: z__namespace.string(),
543
+ safeExtend: z__namespace.string(),
544
+ merge: z__namespace.string(),
545
+ pick: z__namespace.string(),
546
+ omit: z__namespace.string(),
547
+ partial: z__namespace.string(),
548
+ required: z__namespace.string()
548
549
  }).strict()
549
550
  ])
550
551
  ])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
551
- "createdAt": z__namespace.string().describe("The ISO timestamp representing when the message was created."),
552
- "updatedAt": z__namespace.iso.datetime().optional().describe("The ISO timestamp representing when the message was last updated."),
553
- "type": z__namespace.enum([
552
+ createdAt: z__namespace.string().describe("The ISO timestamp representing when the message was created."),
553
+ updatedAt: z__namespace.iso.datetime().optional().describe("The ISO timestamp representing when the message was last updated."),
554
+ type: z__namespace.enum([
554
555
  "added-environment-variables",
555
556
  "added-integration",
556
557
  "answered-questions",
@@ -574,11 +575,11 @@ const messageDetailSchema = z__namespace.object({
574
575
  "reverted-block",
575
576
  "sync-git"
576
577
  ]).describe("Indicates the format or category of the message, such as plain text or code."),
577
- "role": z__namespace.enum([
578
+ role: z__namespace.enum([
578
579
  "assistant",
579
580
  "user"
580
581
  ]).describe("Specifies whether the message was sent by the user or the assistant."),
581
- "finishReason": z__namespace.enum([
582
+ finishReason: z__namespace.enum([
582
583
  "content-filter",
583
584
  "error",
584
585
  "length",
@@ -586,30 +587,30 @@ const messageDetailSchema = z__namespace.object({
586
587
  "stop",
587
588
  "tool-calls"
588
589
  ]).optional().describe("The reason why the message generation finished."),
589
- "apiUrl": z__namespace.string().describe("API URL to access this message via the API."),
590
- "authorId": z__namespace.null().describe("The ID of the user who sent the message."),
591
- "parentId": z__namespace.null().optional().describe("The ID of the parent message."),
592
- "attachments": z__namespace.array(z__namespace.object({
593
- "url": z__namespace.string().describe("The URL where the attachment file can be accessed."),
594
- "name": z__namespace.string().optional().describe("The original filename of the attachment."),
595
- "contentType": z__namespace.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
596
- "size": z__namespace.number().describe("The size of the attachment file in bytes."),
597
- "content": z__namespace.string().optional().describe("The base64-encoded content of the attachment file, if available."),
598
- "type": z__namespace.enum([
590
+ apiUrl: z__namespace.string().describe("API URL to access this message via the API."),
591
+ authorId: z__namespace.null().describe("The ID of the user who sent the message."),
592
+ parentId: z__namespace.null().optional().describe("The ID of the parent message."),
593
+ attachments: z__namespace.array(z__namespace.object({
594
+ url: z__namespace.string().describe("The URL where the attachment file can be accessed."),
595
+ name: z__namespace.string().optional().describe("The original filename of the attachment."),
596
+ contentType: z__namespace.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
597
+ size: z__namespace.number().describe("The size of the attachment file in bytes."),
598
+ content: z__namespace.string().optional().describe("The base64-encoded content of the attachment file, if available."),
599
+ type: z__namespace.enum([
599
600
  "figma",
600
601
  "screenshot",
601
602
  "zip"
602
603
  ]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
603
604
  }).strict()).optional(),
604
- "chatId": z__namespace.string().describe("The ID of the chat to which this message belongs.")
605
+ chatId: z__namespace.string().describe("The ID of the chat to which this message belongs.")
605
606
  }).strict().describe("Detailed message object extending MessageSummary with chat metadata.");
606
607
  const messageSummarySchema = z__namespace.object({
607
- "id": z__namespace.string().describe("A unique identifier for the message."),
608
- "object": z__namespace.enum([
608
+ id: z__namespace.string().describe("A unique identifier for the message."),
609
+ object: z__namespace.enum([
609
610
  "message"
610
611
  ]).describe("Fixed value identifying this object as a message."),
611
- "content": z__namespace.string().describe("The main text content of the message."),
612
- "experimentalContent": z__namespace.array(z__namespace.union([
612
+ content: z__namespace.string().describe("The main text content of the message."),
613
+ experimentalContent: z__namespace.array(z__namespace.union([
613
614
  z__namespace.tuple([
614
615
  z__namespace.enum([
615
616
  0
@@ -621,68 +622,68 @@ const messageSummarySchema = z__namespace.object({
621
622
  1
622
623
  ]),
623
624
  z__namespace.object({
624
- "toJSONSchema": z__namespace.string(),
625
- "def": z__namespace.string(),
626
- "type": z__namespace.string(),
627
- "check": z__namespace.string(),
628
- "with": z__namespace.string(),
629
- "clone": z__namespace.string(),
630
- "brand": z__namespace.string(),
631
- "register": z__namespace.string(),
632
- "parse": z__namespace.string(),
633
- "safeParse": z__namespace.string(),
634
- "parseAsync": z__namespace.string(),
635
- "safeParseAsync": z__namespace.string(),
636
- "spa": z__namespace.string(),
637
- "encode": z__namespace.string(),
638
- "decode": z__namespace.string(),
639
- "encodeAsync": z__namespace.string(),
640
- "decodeAsync": z__namespace.string(),
641
- "safeEncode": z__namespace.string(),
642
- "safeDecode": z__namespace.string(),
643
- "safeEncodeAsync": z__namespace.string(),
644
- "safeDecodeAsync": z__namespace.string(),
645
- "refine": z__namespace.string(),
646
- "superRefine": z__namespace.string(),
647
- "overwrite": z__namespace.string(),
648
- "optional": z__namespace.string(),
649
- "exactOptional": z__namespace.string(),
650
- "nullable": z__namespace.string(),
651
- "nullish": z__namespace.string(),
652
- "nonoptional": z__namespace.string(),
653
- "array": z__namespace.string(),
654
- "or": z__namespace.string(),
655
- "and": z__namespace.string(),
656
- "transform": z__namespace.string(),
657
- "default": z__namespace.string(),
658
- "prefault": z__namespace.string(),
659
- "catch": z__namespace.string(),
660
- "pipe": z__namespace.string(),
661
- "readonly": z__namespace.string(),
662
- "describe": z__namespace.string(),
663
- "meta": z__namespace.string(),
664
- "isOptional": z__namespace.string(),
665
- "isNullable": z__namespace.string(),
666
- "apply": z__namespace.string(),
667
- "keyof": z__namespace.string(),
668
- "catchall": z__namespace.string(),
669
- "passthrough": z__namespace.string(),
670
- "loose": z__namespace.string(),
671
- "strict": z__namespace.string(),
672
- "strip": z__namespace.string(),
673
- "extend": z__namespace.string(),
674
- "safeExtend": z__namespace.string(),
675
- "merge": z__namespace.string(),
676
- "pick": z__namespace.string(),
677
- "omit": z__namespace.string(),
678
- "partial": z__namespace.string(),
679
- "required": z__namespace.string()
625
+ toJSONSchema: z__namespace.string(),
626
+ def: z__namespace.string(),
627
+ type: z__namespace.string(),
628
+ check: z__namespace.string(),
629
+ with: z__namespace.string(),
630
+ clone: z__namespace.string(),
631
+ brand: z__namespace.string(),
632
+ register: z__namespace.string(),
633
+ parse: z__namespace.string(),
634
+ safeParse: z__namespace.string(),
635
+ parseAsync: z__namespace.string(),
636
+ safeParseAsync: z__namespace.string(),
637
+ spa: z__namespace.string(),
638
+ encode: z__namespace.string(),
639
+ decode: z__namespace.string(),
640
+ encodeAsync: z__namespace.string(),
641
+ decodeAsync: z__namespace.string(),
642
+ safeEncode: z__namespace.string(),
643
+ safeDecode: z__namespace.string(),
644
+ safeEncodeAsync: z__namespace.string(),
645
+ safeDecodeAsync: z__namespace.string(),
646
+ refine: z__namespace.string(),
647
+ superRefine: z__namespace.string(),
648
+ overwrite: z__namespace.string(),
649
+ optional: z__namespace.string(),
650
+ exactOptional: z__namespace.string(),
651
+ nullable: z__namespace.string(),
652
+ nullish: z__namespace.string(),
653
+ nonoptional: z__namespace.string(),
654
+ array: z__namespace.string(),
655
+ or: z__namespace.string(),
656
+ and: z__namespace.string(),
657
+ transform: z__namespace.string(),
658
+ default: z__namespace.string(),
659
+ prefault: z__namespace.string(),
660
+ catch: z__namespace.string(),
661
+ pipe: z__namespace.string(),
662
+ readonly: z__namespace.string(),
663
+ describe: z__namespace.string(),
664
+ meta: z__namespace.string(),
665
+ isOptional: z__namespace.string(),
666
+ isNullable: z__namespace.string(),
667
+ apply: z__namespace.string(),
668
+ keyof: z__namespace.string(),
669
+ catchall: z__namespace.string(),
670
+ passthrough: z__namespace.string(),
671
+ loose: z__namespace.string(),
672
+ strict: z__namespace.string(),
673
+ strip: z__namespace.string(),
674
+ extend: z__namespace.string(),
675
+ safeExtend: z__namespace.string(),
676
+ merge: z__namespace.string(),
677
+ pick: z__namespace.string(),
678
+ omit: z__namespace.string(),
679
+ partial: z__namespace.string(),
680
+ required: z__namespace.string()
680
681
  }).strict()
681
682
  ])
682
683
  ])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
683
- "createdAt": z__namespace.string().describe("The ISO timestamp representing when the message was created."),
684
- "updatedAt": z__namespace.iso.datetime().optional().describe("The ISO timestamp representing when the message was last updated."),
685
- "type": z__namespace.enum([
684
+ createdAt: z__namespace.string().describe("The ISO timestamp representing when the message was created."),
685
+ updatedAt: z__namespace.iso.datetime().optional().describe("The ISO timestamp representing when the message was last updated."),
686
+ type: z__namespace.enum([
686
687
  "added-environment-variables",
687
688
  "added-integration",
688
689
  "answered-questions",
@@ -706,11 +707,11 @@ const messageSummarySchema = z__namespace.object({
706
707
  "reverted-block",
707
708
  "sync-git"
708
709
  ]).describe("Indicates the format or category of the message, such as plain text or code."),
709
- "role": z__namespace.enum([
710
+ role: z__namespace.enum([
710
711
  "assistant",
711
712
  "user"
712
713
  ]).describe("Specifies whether the message was sent by the user or the assistant."),
713
- "finishReason": z__namespace.enum([
714
+ finishReason: z__namespace.enum([
714
715
  "content-filter",
715
716
  "error",
716
717
  "length",
@@ -718,16 +719,16 @@ const messageSummarySchema = z__namespace.object({
718
719
  "stop",
719
720
  "tool-calls"
720
721
  ]).optional().describe("The reason why the message generation finished."),
721
- "apiUrl": z__namespace.string().describe("API URL to access this message via the API."),
722
- "authorId": z__namespace.null().describe("The ID of the user who sent the message."),
723
- "parentId": z__namespace.null().optional().describe("The ID of the parent message."),
724
- "attachments": z__namespace.array(z__namespace.object({
725
- "url": z__namespace.string().describe("The URL where the attachment file can be accessed."),
726
- "name": z__namespace.string().optional().describe("The original filename of the attachment."),
727
- "contentType": z__namespace.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
728
- "size": z__namespace.number().describe("The size of the attachment file in bytes."),
729
- "content": z__namespace.string().optional().describe("The base64-encoded content of the attachment file, if available."),
730
- "type": z__namespace.enum([
722
+ apiUrl: z__namespace.string().describe("API URL to access this message via the API."),
723
+ authorId: z__namespace.null().describe("The ID of the user who sent the message."),
724
+ parentId: z__namespace.null().optional().describe("The ID of the parent message."),
725
+ attachments: z__namespace.array(z__namespace.object({
726
+ url: z__namespace.string().describe("The URL where the attachment file can be accessed."),
727
+ name: z__namespace.string().optional().describe("The original filename of the attachment."),
728
+ contentType: z__namespace.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
729
+ size: z__namespace.number().describe("The size of the attachment file in bytes."),
730
+ content: z__namespace.string().optional().describe("The base64-encoded content of the attachment file, if available."),
731
+ type: z__namespace.enum([
731
732
  "figma",
732
733
  "screenshot",
733
734
  "zip"
@@ -735,16 +736,16 @@ const messageSummarySchema = z__namespace.object({
735
736
  }).strict()).optional()
736
737
  }).strict().describe("Summary of a single message within a chat, including role, content, type, timestamp, and API URL.");
737
738
  const messageSummaryListSchema = z__namespace.object({
738
- "object": z__namespace.enum([
739
+ object: z__namespace.enum([
739
740
  "list"
740
741
  ]).describe("Fixed value identifying this as a list response."),
741
- "data": z__namespace.array(z__namespace.object({
742
- "id": z__namespace.string().describe("A unique identifier for the message."),
743
- "object": z__namespace.enum([
742
+ data: z__namespace.array(z__namespace.object({
743
+ id: z__namespace.string().describe("A unique identifier for the message."),
744
+ object: z__namespace.enum([
744
745
  "message"
745
746
  ]).describe("Fixed value identifying this object as a message."),
746
- "content": z__namespace.string().describe("The main text content of the message."),
747
- "experimentalContent": z__namespace.array(z__namespace.union([
747
+ content: z__namespace.string().describe("The main text content of the message."),
748
+ experimentalContent: z__namespace.array(z__namespace.union([
748
749
  z__namespace.tuple([
749
750
  z__namespace.enum([
750
751
  0
@@ -756,68 +757,68 @@ const messageSummaryListSchema = z__namespace.object({
756
757
  1
757
758
  ]),
758
759
  z__namespace.object({
759
- "toJSONSchema": z__namespace.string(),
760
- "def": z__namespace.string(),
761
- "type": z__namespace.string(),
762
- "check": z__namespace.string(),
763
- "with": z__namespace.string(),
764
- "clone": z__namespace.string(),
765
- "brand": z__namespace.string(),
766
- "register": z__namespace.string(),
767
- "parse": z__namespace.string(),
768
- "safeParse": z__namespace.string(),
769
- "parseAsync": z__namespace.string(),
770
- "safeParseAsync": z__namespace.string(),
771
- "spa": z__namespace.string(),
772
- "encode": z__namespace.string(),
773
- "decode": z__namespace.string(),
774
- "encodeAsync": z__namespace.string(),
775
- "decodeAsync": z__namespace.string(),
776
- "safeEncode": z__namespace.string(),
777
- "safeDecode": z__namespace.string(),
778
- "safeEncodeAsync": z__namespace.string(),
779
- "safeDecodeAsync": z__namespace.string(),
780
- "refine": z__namespace.string(),
781
- "superRefine": z__namespace.string(),
782
- "overwrite": z__namespace.string(),
783
- "optional": z__namespace.string(),
784
- "exactOptional": z__namespace.string(),
785
- "nullable": z__namespace.string(),
786
- "nullish": z__namespace.string(),
787
- "nonoptional": z__namespace.string(),
788
- "array": z__namespace.string(),
789
- "or": z__namespace.string(),
790
- "and": z__namespace.string(),
791
- "transform": z__namespace.string(),
792
- "default": z__namespace.string(),
793
- "prefault": z__namespace.string(),
794
- "catch": z__namespace.string(),
795
- "pipe": z__namespace.string(),
796
- "readonly": z__namespace.string(),
797
- "describe": z__namespace.string(),
798
- "meta": z__namespace.string(),
799
- "isOptional": z__namespace.string(),
800
- "isNullable": z__namespace.string(),
801
- "apply": z__namespace.string(),
802
- "keyof": z__namespace.string(),
803
- "catchall": z__namespace.string(),
804
- "passthrough": z__namespace.string(),
805
- "loose": z__namespace.string(),
806
- "strict": z__namespace.string(),
807
- "strip": z__namespace.string(),
808
- "extend": z__namespace.string(),
809
- "safeExtend": z__namespace.string(),
810
- "merge": z__namespace.string(),
811
- "pick": z__namespace.string(),
812
- "omit": z__namespace.string(),
813
- "partial": z__namespace.string(),
814
- "required": z__namespace.string()
760
+ toJSONSchema: z__namespace.string(),
761
+ def: z__namespace.string(),
762
+ type: z__namespace.string(),
763
+ check: z__namespace.string(),
764
+ with: z__namespace.string(),
765
+ clone: z__namespace.string(),
766
+ brand: z__namespace.string(),
767
+ register: z__namespace.string(),
768
+ parse: z__namespace.string(),
769
+ safeParse: z__namespace.string(),
770
+ parseAsync: z__namespace.string(),
771
+ safeParseAsync: z__namespace.string(),
772
+ spa: z__namespace.string(),
773
+ encode: z__namespace.string(),
774
+ decode: z__namespace.string(),
775
+ encodeAsync: z__namespace.string(),
776
+ decodeAsync: z__namespace.string(),
777
+ safeEncode: z__namespace.string(),
778
+ safeDecode: z__namespace.string(),
779
+ safeEncodeAsync: z__namespace.string(),
780
+ safeDecodeAsync: z__namespace.string(),
781
+ refine: z__namespace.string(),
782
+ superRefine: z__namespace.string(),
783
+ overwrite: z__namespace.string(),
784
+ optional: z__namespace.string(),
785
+ exactOptional: z__namespace.string(),
786
+ nullable: z__namespace.string(),
787
+ nullish: z__namespace.string(),
788
+ nonoptional: z__namespace.string(),
789
+ array: z__namespace.string(),
790
+ or: z__namespace.string(),
791
+ and: z__namespace.string(),
792
+ transform: z__namespace.string(),
793
+ default: z__namespace.string(),
794
+ prefault: z__namespace.string(),
795
+ catch: z__namespace.string(),
796
+ pipe: z__namespace.string(),
797
+ readonly: z__namespace.string(),
798
+ describe: z__namespace.string(),
799
+ meta: z__namespace.string(),
800
+ isOptional: z__namespace.string(),
801
+ isNullable: z__namespace.string(),
802
+ apply: z__namespace.string(),
803
+ keyof: z__namespace.string(),
804
+ catchall: z__namespace.string(),
805
+ passthrough: z__namespace.string(),
806
+ loose: z__namespace.string(),
807
+ strict: z__namespace.string(),
808
+ strip: z__namespace.string(),
809
+ extend: z__namespace.string(),
810
+ safeExtend: z__namespace.string(),
811
+ merge: z__namespace.string(),
812
+ pick: z__namespace.string(),
813
+ omit: z__namespace.string(),
814
+ partial: z__namespace.string(),
815
+ required: z__namespace.string()
815
816
  }).strict()
816
817
  ])
817
818
  ])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
818
- "createdAt": z__namespace.string().describe("The ISO timestamp representing when the message was created."),
819
- "updatedAt": z__namespace.iso.datetime().optional().describe("The ISO timestamp representing when the message was last updated."),
820
- "type": z__namespace.enum([
819
+ createdAt: z__namespace.string().describe("The ISO timestamp representing when the message was created."),
820
+ updatedAt: z__namespace.iso.datetime().optional().describe("The ISO timestamp representing when the message was last updated."),
821
+ type: z__namespace.enum([
821
822
  "added-environment-variables",
822
823
  "added-integration",
823
824
  "answered-questions",
@@ -841,11 +842,11 @@ const messageSummaryListSchema = z__namespace.object({
841
842
  "reverted-block",
842
843
  "sync-git"
843
844
  ]).describe("Indicates the format or category of the message, such as plain text or code."),
844
- "role": z__namespace.enum([
845
+ role: z__namespace.enum([
845
846
  "assistant",
846
847
  "user"
847
848
  ]).describe("Specifies whether the message was sent by the user or the assistant."),
848
- "finishReason": z__namespace.enum([
849
+ finishReason: z__namespace.enum([
849
850
  "content-filter",
850
851
  "error",
851
852
  "length",
@@ -853,365 +854,366 @@ const messageSummaryListSchema = z__namespace.object({
853
854
  "stop",
854
855
  "tool-calls"
855
856
  ]).optional().describe("The reason why the message generation finished."),
856
- "apiUrl": z__namespace.string().describe("API URL to access this message via the API."),
857
- "authorId": z__namespace.null().describe("The ID of the user who sent the message."),
858
- "parentId": z__namespace.null().optional().describe("The ID of the parent message."),
859
- "attachments": z__namespace.array(z__namespace.object({
860
- "url": z__namespace.string().describe("The URL where the attachment file can be accessed."),
861
- "name": z__namespace.string().optional().describe("The original filename of the attachment."),
862
- "contentType": z__namespace.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
863
- "size": z__namespace.number().describe("The size of the attachment file in bytes."),
864
- "content": z__namespace.string().optional().describe("The base64-encoded content of the attachment file, if available."),
865
- "type": z__namespace.enum([
857
+ apiUrl: z__namespace.string().describe("API URL to access this message via the API."),
858
+ authorId: z__namespace.null().describe("The ID of the user who sent the message."),
859
+ parentId: z__namespace.null().optional().describe("The ID of the parent message."),
860
+ attachments: z__namespace.array(z__namespace.object({
861
+ url: z__namespace.string().describe("The URL where the attachment file can be accessed."),
862
+ name: z__namespace.string().optional().describe("The original filename of the attachment."),
863
+ contentType: z__namespace.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
864
+ size: z__namespace.number().describe("The size of the attachment file in bytes."),
865
+ content: z__namespace.string().optional().describe("The base64-encoded content of the attachment file, if available."),
866
+ type: z__namespace.enum([
866
867
  "figma",
867
868
  "screenshot",
868
869
  "zip"
869
870
  ]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
870
871
  }).strict()).optional()
871
872
  }).strict()).describe("Array of message summaries in this page of results."),
872
- "pagination": z__namespace.object({
873
- "hasMore": z__namespace.boolean().describe("Indicates if there are more results available beyond this page."),
874
- "nextCursor": z__namespace.string().optional().describe("Cursor for fetching the next page of results."),
875
- "nextUrl": z__namespace.string().optional().describe("API URL for retrieving the next page of results.")
873
+ pagination: z__namespace.object({
874
+ hasMore: z__namespace.boolean().describe("Indicates if there are more results available beyond this page."),
875
+ nextCursor: z__namespace.string().optional().describe("Cursor for fetching the next page of results."),
876
+ nextUrl: z__namespace.string().optional().describe("API URL for retrieving the next page of results.")
876
877
  }).strict().describe("Pagination metadata for navigating through multiple pages of results.")
877
878
  }).strict().describe("List response containing multiple message summaries with cursor-based pagination.");
878
879
  const notificationPreferenceSchemaSchema = z__namespace.object({
879
- "liveActivity": z__namespace.boolean().describe("Whether the user wants to receive live activities."),
880
- "pushNotifications": z__namespace.boolean().describe("Whether the user wants to receive push notifications.")
880
+ liveActivity: z__namespace.boolean().describe("Whether the user wants to receive live activities."),
881
+ pushNotifications: z__namespace.boolean().describe("Whether the user wants to receive push notifications.")
881
882
  }).strict().describe("User preference for notification delivery methods.");
882
883
  const productDetailSchemaSchema = z__namespace.object({
883
- "object": z__namespace.enum([
884
+ object: z__namespace.enum([
884
885
  "product"
885
886
  ]).describe("The object type."),
886
- "id": z__namespace.string().describe("The unique ID of the product."),
887
- "slug": z__namespace.string().describe("The URL-friendly slug of the product."),
888
- "name": z__namespace.string().describe("The name of the product."),
889
- "description": z__namespace.string().describe("A short description of the product."),
890
- "iconUrl": z__namespace.string().describe("URL to the product icon."),
891
- "v0Availability": z__namespace.enum([
887
+ id: z__namespace.string().describe("The unique ID of the product."),
888
+ slug: z__namespace.string().describe("The URL-friendly slug of the product."),
889
+ name: z__namespace.string().describe("The name of the product."),
890
+ description: z__namespace.string().describe("A short description of the product."),
891
+ iconUrl: z__namespace.string().describe("URL to the product icon."),
892
+ v0Availability: z__namespace.enum([
892
893
  "in-review",
893
894
  "published"
894
895
  ]).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."),
895
- "iconBackgroundColor": z__namespace.string().optional().describe("Background color for the product icon.")
896
+ iconBackgroundColor: z__namespace.string().optional().describe("Background color for the product icon.")
896
897
  }).strict().describe("Detailed information about a marketplace or store product.");
897
898
  const productListSchemaSchema = z__namespace.object({
898
- "object": z__namespace.enum([
899
+ object: z__namespace.enum([
899
900
  "list"
900
901
  ]).describe("Fixed value identifying this as a list response."),
901
- "data": z__namespace.array(z__namespace.object({
902
- "object": z__namespace.enum([
902
+ data: z__namespace.array(z__namespace.object({
903
+ object: z__namespace.enum([
903
904
  "product"
904
905
  ]).describe("The object type."),
905
- "id": z__namespace.string().describe("The unique ID of the product."),
906
- "slug": z__namespace.string().describe("The URL-friendly slug of the product."),
907
- "name": z__namespace.string().describe("The name of the product."),
908
- "description": z__namespace.string().describe("A short description of the product."),
909
- "iconUrl": z__namespace.string().describe("URL to the product icon."),
910
- "v0Availability": z__namespace.enum([
906
+ id: z__namespace.string().describe("The unique ID of the product."),
907
+ slug: z__namespace.string().describe("The URL-friendly slug of the product."),
908
+ name: z__namespace.string().describe("The name of the product."),
909
+ description: z__namespace.string().describe("A short description of the product."),
910
+ iconUrl: z__namespace.string().describe("URL to the product icon."),
911
+ v0Availability: z__namespace.enum([
911
912
  "in-review",
912
913
  "published"
913
914
  ]).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.")
914
915
  }).strict()).describe("Array of product summaries.")
915
916
  }).strict().describe("List of available marketplace and store products.");
916
917
  const productSummarySchemaSchema = z__namespace.object({
917
- "object": z__namespace.enum([
918
+ object: z__namespace.enum([
918
919
  "product"
919
920
  ]).describe("The object type."),
920
- "id": z__namespace.string().describe("The unique ID of the product."),
921
- "slug": z__namespace.string().describe("The URL-friendly slug of the product."),
922
- "name": z__namespace.string().describe("The name of the product."),
923
- "description": z__namespace.string().describe("A short description of the product."),
924
- "iconUrl": z__namespace.string().describe("URL to the product icon."),
925
- "v0Availability": z__namespace.enum([
921
+ id: z__namespace.string().describe("The unique ID of the product."),
922
+ slug: z__namespace.string().describe("The URL-friendly slug of the product."),
923
+ name: z__namespace.string().describe("The name of the product."),
924
+ description: z__namespace.string().describe("A short description of the product."),
925
+ iconUrl: z__namespace.string().describe("URL to the product icon."),
926
+ v0Availability: z__namespace.enum([
926
927
  "in-review",
927
928
  "published"
928
929
  ]).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.")
929
930
  }).strict().describe("Summary information about a marketplace or store product.");
930
931
  const projectDetailSchema = z__namespace.object({
931
- "id": z__namespace.string().describe("A unique identifier for the project."),
932
- "object": z__namespace.enum([
932
+ id: z__namespace.string().describe("A unique identifier for the project."),
933
+ object: z__namespace.enum([
933
934
  "project"
934
935
  ]).describe("Fixed value identifying this object as a project."),
935
- "name": z__namespace.string().describe("The name of the project as defined by the user."),
936
- "privacy": z__namespace.enum([
936
+ name: z__namespace.string().describe("The name of the project as defined by the user."),
937
+ privacy: z__namespace.enum([
937
938
  "private",
938
939
  "team"
939
940
  ]).describe("The privacy setting for the project - either private or team."),
940
- "vercelProjectId": z__namespace.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
941
- "createdAt": z__namespace.iso.datetime().describe("The ISO timestamp representing when the project was created."),
942
- "updatedAt": z__namespace.iso.datetime().optional().describe("The ISO timestamp of the most recent update, if available."),
943
- "apiUrl": z__namespace.url().describe("The API endpoint URL for accessing this project programmatically."),
944
- "webUrl": z__namespace.url().describe("The web URL where the project can be viewed or managed."),
945
- "description": z__namespace.string().optional().describe("The description of the project."),
946
- "instructions": z__namespace.string().optional().describe("The instructions for the project."),
947
- "chats": z__namespace.array(z__namespace.object({
948
- "id": z__namespace.string().describe("A unique identifier for the chat."),
949
- "object": z__namespace.enum([
941
+ vercelProjectId: z__namespace.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
942
+ createdAt: z__namespace.iso.datetime().describe("The ISO timestamp representing when the project was created."),
943
+ updatedAt: z__namespace.iso.datetime().optional().describe("The ISO timestamp of the most recent update, if available."),
944
+ apiUrl: z__namespace.url().describe("The API endpoint URL for accessing this project programmatically."),
945
+ webUrl: z__namespace.url().describe("The web URL where the project can be viewed or managed."),
946
+ description: z__namespace.string().optional().describe("The description of the project."),
947
+ instructions: z__namespace.string().optional().describe("The instructions for the project."),
948
+ chats: z__namespace.array(z__namespace.object({
949
+ id: z__namespace.string().describe("A unique identifier for the chat."),
950
+ object: z__namespace.enum([
950
951
  "chat"
951
952
  ]).describe("Fixed value identifying this object as a chat."),
952
- "shareable": z__namespace.boolean().describe("Indicates whether the chat can be shared via public link."),
953
- "privacy": z__namespace.enum([
953
+ shareable: z__namespace.boolean().describe("Indicates whether the chat can be shared via public link."),
954
+ privacy: z__namespace.enum([
954
955
  "private",
955
956
  "public",
956
957
  "team",
957
958
  "team-edit",
958
959
  "unlisted"
959
960
  ]).describe("Defines the visibility of the chat—private, team-only, or public."),
960
- "name": z__namespace.string().optional().describe("An optional name assigned to the chat by the user."),
961
- "title": z__namespace.string().optional().describe("Deprecated title field preserved for backward compatibility."),
962
- "createdAt": z__namespace.iso.datetime().describe("The ISO timestamp representing when the chat was created."),
963
- "updatedAt": z__namespace.string().optional().describe("The ISO timestamp of the last update to the chat."),
964
- "favorite": z__namespace.boolean().describe("Indicates whether the chat is marked as a favorite."),
965
- "authorId": z__namespace.string().describe("The ID of the user who created the chat."),
966
- "projectId": z__namespace.string().optional().describe("Optional ID of the v0 project associated with this chat."),
967
- "vercelProjectId": z__namespace.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
968
- "webUrl": z__namespace.string().describe("Web URL to view this chat in the browser."),
969
- "apiUrl": z__namespace.string().describe("API URL to access this chat via the API."),
970
- "latestVersion": z__namespace.object({
971
- "id": z__namespace.string().describe("A unique identifier for the version."),
972
- "object": z__namespace.enum([
961
+ name: z__namespace.string().optional().describe("An optional name assigned to the chat by the user."),
962
+ title: z__namespace.string().optional().describe("Deprecated title field preserved for backward compatibility."),
963
+ createdAt: z__namespace.iso.datetime().describe("The ISO timestamp representing when the chat was created."),
964
+ updatedAt: z__namespace.string().optional().describe("The ISO timestamp of the last update to the chat."),
965
+ favorite: z__namespace.boolean().describe("Indicates whether the chat is marked as a favorite."),
966
+ authorId: z__namespace.string().describe("The ID of the user who created the chat."),
967
+ projectId: z__namespace.string().optional().describe("Optional ID of the v0 project associated with this chat."),
968
+ vercelProjectId: z__namespace.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
969
+ webUrl: z__namespace.string().describe("Web URL to view this chat in the browser."),
970
+ apiUrl: z__namespace.string().describe("API URL to access this chat via the API."),
971
+ latestVersion: z__namespace.object({
972
+ id: z__namespace.string().describe("A unique identifier for the version."),
973
+ object: z__namespace.enum([
973
974
  "version"
974
975
  ]).describe("Fixed value identifying this object as a version."),
975
- "status": z__namespace.enum([
976
+ status: z__namespace.enum([
976
977
  "completed",
977
978
  "failed",
978
979
  "pending"
979
980
  ]).describe("The current status of the version generation process."),
980
- "demoUrl": z__namespace.string().optional().describe("Optional URL for previewing the generated output."),
981
- "screenshotUrl": z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
982
- "createdAt": z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
983
- "updatedAt": z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
984
- }).strict().optional().describe("The most recent generated version of the chat, if available.")
981
+ demoUrl: z__namespace.string().optional().describe("Optional URL for previewing the generated output."),
982
+ screenshotUrl: z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
983
+ createdAt: z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
984
+ updatedAt: z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
985
+ }).strict().optional().describe("The most recent generated version of the chat, if available."),
986
+ metadata: z__namespace.object({}).catchall(z__namespace.string()).describe("Arbitrary key-value data associated with this chat.")
985
987
  }).strict()).describe("List of all chats that are associated with this project.")
986
988
  }).strict().describe("Full representation of a project, including its associated chats.");
987
989
  const projectSummarySchema = z__namespace.object({
988
- "id": z__namespace.string().describe("A unique identifier for the project."),
989
- "object": z__namespace.enum([
990
+ id: z__namespace.string().describe("A unique identifier for the project."),
991
+ object: z__namespace.enum([
990
992
  "project"
991
993
  ]).describe("Fixed value identifying this object as a project."),
992
- "name": z__namespace.string().describe("The name of the project as defined by the user."),
993
- "privacy": z__namespace.enum([
994
+ name: z__namespace.string().describe("The name of the project as defined by the user."),
995
+ privacy: z__namespace.enum([
994
996
  "private",
995
997
  "team"
996
998
  ]).describe("The privacy setting for the project - either private or team."),
997
- "vercelProjectId": z__namespace.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
998
- "createdAt": z__namespace.iso.datetime().describe("The ISO timestamp representing when the project was created."),
999
- "updatedAt": z__namespace.iso.datetime().optional().describe("The ISO timestamp of the most recent update, if available."),
1000
- "apiUrl": z__namespace.url().describe("The API endpoint URL for accessing this project programmatically."),
1001
- "webUrl": z__namespace.url().describe("The web URL where the project can be viewed or managed.")
999
+ vercelProjectId: z__namespace.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
1000
+ createdAt: z__namespace.iso.datetime().describe("The ISO timestamp representing when the project was created."),
1001
+ updatedAt: z__namespace.iso.datetime().optional().describe("The ISO timestamp of the most recent update, if available."),
1002
+ apiUrl: z__namespace.url().describe("The API endpoint URL for accessing this project programmatically."),
1003
+ webUrl: z__namespace.url().describe("The web URL where the project can be viewed or managed.")
1002
1004
  }).strict().describe("Summary of a project, including metadata, timestamps, and optional Vercel linkage.");
1003
1005
  const scopeSummarySchema = z__namespace.object({
1004
- "id": z__namespace.string().describe("A unique identifier for the scope (e.g., user or team workspace)."),
1005
- "object": z__namespace.enum([
1006
+ id: z__namespace.string().describe("A unique identifier for the scope (e.g., user or team workspace)."),
1007
+ object: z__namespace.enum([
1006
1008
  "scope"
1007
1009
  ]).describe("Fixed value identifying this object as a scope."),
1008
- "name": z__namespace.string().optional().describe("An optional human-readable name for the scope.")
1010
+ name: z__namespace.string().optional().describe("An optional human-readable name for the scope.")
1009
1011
  }).strict().describe("Basic information about a workspace or identity context for projects and chats.");
1010
1012
  const searchResultItemSchema = z__namespace.object({
1011
- "id": z__namespace.string().describe("The unique ID of the item returned in the search result."),
1012
- "object": z__namespace.enum([
1013
+ id: z__namespace.string().describe("The unique ID of the item returned in the search result."),
1014
+ object: z__namespace.enum([
1013
1015
  "chat",
1014
1016
  "project"
1015
1017
  ]).describe("Type of item returned, either 'chat' or 'project'."),
1016
- "name": z__namespace.string().describe("The display name of the item."),
1017
- "createdAt": z__namespace.iso.datetime().describe("The ISO timestamp representing when the item was created."),
1018
- "updatedAt": z__namespace.iso.datetime().optional().describe("The ISO timestamp of the last update to the item."),
1019
- "apiUrl": z__namespace.string().describe("API endpoint for accessing the item programmatically."),
1020
- "webUrl": z__namespace.string().describe("Web URL for viewing the item in the interface.")
1018
+ name: z__namespace.string().describe("The display name of the item."),
1019
+ createdAt: z__namespace.iso.datetime().describe("The ISO timestamp representing when the item was created."),
1020
+ updatedAt: z__namespace.iso.datetime().optional().describe("The ISO timestamp of the last update to the item."),
1021
+ apiUrl: z__namespace.string().describe("API endpoint for accessing the item programmatically."),
1022
+ webUrl: z__namespace.string().describe("Web URL for viewing the item in the interface.")
1021
1023
  }).strict().describe("Generic result returned from a search query, representing either a chat or a project.");
1022
1024
  const userDetailSchemaSchema = z__namespace.object({
1023
- "id": z__namespace.string().describe("A unique identifier for the user."),
1024
- "object": z__namespace.enum([
1025
+ id: z__namespace.string().describe("A unique identifier for the user."),
1026
+ object: z__namespace.enum([
1025
1027
  "user"
1026
1028
  ]).describe("Fixed value identifying this object as a user."),
1027
- "name": z__namespace.string().optional().describe("Optional full name of the user."),
1028
- "email": z__namespace.string().describe("The user's email address."),
1029
- "avatar": z__namespace.string().describe("URL to the user's avatar image."),
1030
- "createdAt": z__namespace.iso.datetime().describe("The ISO timestamp representing when the user was created."),
1031
- "updatedAt": z__namespace.iso.datetime().optional().describe("The ISO timestamp of the last update to the user.")
1029
+ name: z__namespace.string().optional().describe("Optional full name of the user."),
1030
+ email: z__namespace.string().describe("The user's email address."),
1031
+ avatar: z__namespace.string().describe("URL to the user's avatar image."),
1032
+ createdAt: z__namespace.iso.datetime().describe("The ISO timestamp representing when the user was created."),
1033
+ updatedAt: z__namespace.iso.datetime().optional().describe("The ISO timestamp of the last update to the user.")
1032
1034
  }).strict();
1033
1035
  const userPreferencesPostResponseSchemaSchema = z__namespace.object({
1034
- "object": z__namespace.enum([
1036
+ object: z__namespace.enum([
1035
1037
  "user_preferences"
1036
1038
  ]).describe("Object type identifier."),
1037
- "preferences": z__namespace.union([
1039
+ preferences: z__namespace.union([
1038
1040
  z__namespace.object({
1039
- "notifications": z__namespace.object({
1040
- "liveActivity": z__namespace.boolean().describe("Whether the user wants to receive live activities."),
1041
- "pushNotifications": z__namespace.boolean().describe("Whether the user wants to receive push notifications.")
1041
+ notifications: z__namespace.object({
1042
+ liveActivity: z__namespace.boolean().describe("Whether the user wants to receive live activities."),
1043
+ pushNotifications: z__namespace.boolean().describe("Whether the user wants to receive push notifications.")
1042
1044
  }).strict().describe("The user's preferred method for receiving notifications.")
1043
1045
  }).strict(),
1044
1046
  z__namespace.null()
1045
1047
  ]).describe("The updated preferences if successful, or null if failed.")
1046
1048
  }).strict().describe("Response schema for updating user preferences.");
1047
1049
  const userPreferencesResponseSchemaSchema = z__namespace.object({
1048
- "object": z__namespace.enum([
1050
+ object: z__namespace.enum([
1049
1051
  "user_preferences"
1050
1052
  ]).describe("Object type identifier."),
1051
- "preferences": z__namespace.union([
1053
+ preferences: z__namespace.union([
1052
1054
  z__namespace.object({
1053
- "notifications": z__namespace.object({
1054
- "liveActivity": z__namespace.boolean().describe("Whether the user wants to receive live activities."),
1055
- "pushNotifications": z__namespace.boolean().describe("Whether the user wants to receive push notifications.")
1055
+ notifications: z__namespace.object({
1056
+ liveActivity: z__namespace.boolean().describe("Whether the user wants to receive live activities."),
1057
+ pushNotifications: z__namespace.boolean().describe("Whether the user wants to receive push notifications.")
1056
1058
  }).strict().describe("The user's preferred method for receiving notifications.")
1057
1059
  }).strict(),
1058
1060
  z__namespace.null()
1059
1061
  ]).describe("The user's current preferences, or null if errored.")
1060
1062
  }).strict().describe("Response schema for retrieving user preferences.");
1061
1063
  const userPreferencesSchemaSchema = z__namespace.object({
1062
- "notifications": z__namespace.object({
1063
- "liveActivity": z__namespace.boolean().describe("Whether the user wants to receive live activities."),
1064
- "pushNotifications": z__namespace.boolean().describe("Whether the user wants to receive push notifications.")
1064
+ notifications: z__namespace.object({
1065
+ liveActivity: z__namespace.boolean().describe("Whether the user wants to receive live activities."),
1066
+ pushNotifications: z__namespace.boolean().describe("Whether the user wants to receive push notifications.")
1065
1067
  }).strict().describe("The user's preferred method for receiving notifications.")
1066
1068
  }).strict().describe("User preferences configuration including notification settings.");
1067
1069
  const userSummarySchemaSchema = z__namespace.object({
1068
- "id": z__namespace.string().describe("A unique identifier for the user."),
1069
- "object": z__namespace.enum([
1070
+ id: z__namespace.string().describe("A unique identifier for the user."),
1071
+ object: z__namespace.enum([
1070
1072
  "user"
1071
1073
  ]).describe("Fixed value identifying this object as a user."),
1072
- "name": z__namespace.string().optional().describe("Optional full name of the user."),
1073
- "email": z__namespace.string().describe("The user's email address."),
1074
- "avatar": z__namespace.string().describe("URL to the user's avatar image."),
1075
- "createdAt": z__namespace.iso.datetime().describe("The ISO timestamp representing when the user was created."),
1076
- "updatedAt": z__namespace.iso.datetime().optional().describe("The ISO timestamp of the last update to the user.")
1074
+ name: z__namespace.string().optional().describe("Optional full name of the user."),
1075
+ email: z__namespace.string().describe("The user's email address."),
1076
+ avatar: z__namespace.string().describe("URL to the user's avatar image."),
1077
+ createdAt: z__namespace.iso.datetime().describe("The ISO timestamp representing when the user was created."),
1078
+ updatedAt: z__namespace.iso.datetime().optional().describe("The ISO timestamp of the last update to the user.")
1077
1079
  }).strict().describe("Details of the authenticated user, including profile and contact information.");
1078
1080
  const vercelProjectDetailSchema = z__namespace.object({
1079
- "id": z__namespace.string().describe("A unique identifier for the linked Vercel project."),
1080
- "object": z__namespace.enum([
1081
+ id: z__namespace.string().describe("A unique identifier for the linked Vercel project."),
1082
+ object: z__namespace.enum([
1081
1083
  "vercel_project"
1082
1084
  ]).describe("Fixed value identifying this object as a Vercel project."),
1083
- "name": z__namespace.string().describe("The name of the Vercel project.")
1085
+ name: z__namespace.string().describe("The name of the Vercel project.")
1084
1086
  }).strict();
1085
1087
  const vercelProjectSummarySchema = z__namespace.object({
1086
- "id": z__namespace.string().describe("A unique identifier for the linked Vercel project."),
1087
- "object": z__namespace.enum([
1088
+ id: z__namespace.string().describe("A unique identifier for the linked Vercel project."),
1089
+ object: z__namespace.enum([
1088
1090
  "vercel_project"
1089
1091
  ]).describe("Fixed value identifying this object as a Vercel project."),
1090
- "name": z__namespace.string().describe("The name of the Vercel project.")
1092
+ name: z__namespace.string().describe("The name of the Vercel project.")
1091
1093
  }).strict().describe("Basic metadata about a Vercel project connected to a v0 project.");
1092
1094
  const versionDetailSchema = z__namespace.object({
1093
- "id": z__namespace.string().describe("A unique identifier for the version."),
1094
- "object": z__namespace.enum([
1095
+ id: z__namespace.string().describe("A unique identifier for the version."),
1096
+ object: z__namespace.enum([
1095
1097
  "version"
1096
1098
  ]).describe("Fixed value identifying this object as a version."),
1097
- "status": z__namespace.enum([
1099
+ status: z__namespace.enum([
1098
1100
  "completed",
1099
1101
  "failed",
1100
1102
  "pending"
1101
1103
  ]).describe("The current status of the version generation process."),
1102
- "demoUrl": z__namespace.string().optional().describe("Optional URL for previewing the generated output."),
1103
- "screenshotUrl": z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
1104
- "createdAt": z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
1105
- "updatedAt": z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format."),
1106
- "files": z__namespace.array(z__namespace.object({
1107
- "object": z__namespace.enum([
1104
+ demoUrl: z__namespace.string().optional().describe("Optional URL for previewing the generated output."),
1105
+ screenshotUrl: z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
1106
+ createdAt: z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
1107
+ updatedAt: z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format."),
1108
+ files: z__namespace.array(z__namespace.object({
1109
+ object: z__namespace.enum([
1108
1110
  "file"
1109
1111
  ]).describe("Fixed value identifying this object as a file."),
1110
- "name": z__namespace.string().describe("The name of the file, including its extension."),
1111
- "content": z__namespace.string().describe("The full contents of the file as a raw string."),
1112
- "locked": z__namespace.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
1112
+ name: z__namespace.string().describe("The name of the file, including its extension."),
1113
+ content: z__namespace.string().describe("The full contents of the file as a raw string."),
1114
+ locked: z__namespace.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
1113
1115
  }).strict()).describe("A list of files that were generated or included in this version.")
1114
1116
  }).strict().describe("Detailed version data including file contents.");
1115
1117
  const versionSummarySchema = z__namespace.object({
1116
- "id": z__namespace.string().describe("A unique identifier for the version."),
1117
- "object": z__namespace.enum([
1118
+ id: z__namespace.string().describe("A unique identifier for the version."),
1119
+ object: z__namespace.enum([
1118
1120
  "version"
1119
1121
  ]).describe("Fixed value identifying this object as a version."),
1120
- "status": z__namespace.enum([
1122
+ status: z__namespace.enum([
1121
1123
  "completed",
1122
1124
  "failed",
1123
1125
  "pending"
1124
1126
  ]).describe("The current status of the version generation process."),
1125
- "demoUrl": z__namespace.string().optional().describe("Optional URL for previewing the generated output."),
1126
- "screenshotUrl": z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
1127
- "createdAt": z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
1128
- "updatedAt": z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
1127
+ demoUrl: z__namespace.string().optional().describe("Optional URL for previewing the generated output."),
1128
+ screenshotUrl: z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
1129
+ createdAt: z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
1130
+ updatedAt: z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
1129
1131
  }).strict().describe("Summary of a generated version of a chat, including its status and optional demo link.");
1130
1132
  const versionSummaryListSchema = z__namespace.object({
1131
- "object": z__namespace.enum([
1133
+ object: z__namespace.enum([
1132
1134
  "list"
1133
1135
  ]).describe("Fixed value identifying this as a list response."),
1134
- "data": z__namespace.array(z__namespace.object({
1135
- "id": z__namespace.string().describe("A unique identifier for the version."),
1136
- "object": z__namespace.enum([
1136
+ data: z__namespace.array(z__namespace.object({
1137
+ id: z__namespace.string().describe("A unique identifier for the version."),
1138
+ object: z__namespace.enum([
1137
1139
  "version"
1138
1140
  ]).describe("Fixed value identifying this object as a version."),
1139
- "status": z__namespace.enum([
1141
+ status: z__namespace.enum([
1140
1142
  "completed",
1141
1143
  "failed",
1142
1144
  "pending"
1143
1145
  ]).describe("The current status of the version generation process."),
1144
- "demoUrl": z__namespace.string().optional().describe("Optional URL for previewing the generated output."),
1145
- "screenshotUrl": z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
1146
- "createdAt": z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
1147
- "updatedAt": z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
1146
+ demoUrl: z__namespace.string().optional().describe("Optional URL for previewing the generated output."),
1147
+ screenshotUrl: z__namespace.string().optional().describe("URL to retrieve a screenshot of this version."),
1148
+ createdAt: z__namespace.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
1149
+ updatedAt: z__namespace.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
1148
1150
  }).strict()).describe("Array of version summaries in this page of results."),
1149
- "pagination": z__namespace.object({
1150
- "hasMore": z__namespace.boolean().describe("Indicates if there are more results available beyond this page."),
1151
- "nextCursor": z__namespace.string().optional().describe("Cursor for fetching the next page of results."),
1152
- "nextUrl": z__namespace.string().optional().describe("API URL for retrieving the next page of results.")
1151
+ pagination: z__namespace.object({
1152
+ hasMore: z__namespace.boolean().describe("Indicates if there are more results available beyond this page."),
1153
+ nextCursor: z__namespace.string().optional().describe("Cursor for fetching the next page of results."),
1154
+ nextUrl: z__namespace.string().optional().describe("API URL for retrieving the next page of results.")
1153
1155
  }).strict().describe("Pagination metadata for navigating through multiple pages of results.")
1154
1156
  }).strict().describe("List response containing multiple version summaries with cursor-based pagination.");
1155
1157
  const unauthorizedErrorSchema = z__namespace.object({
1156
- "error": z__namespace.object({
1157
- "message": z__namespace.string(),
1158
- "type": z__namespace.enum([
1158
+ error: z__namespace.object({
1159
+ message: z__namespace.string(),
1160
+ type: z__namespace.enum([
1159
1161
  "unauthorized_error"
1160
1162
  ])
1161
1163
  }).strict()
1162
1164
  }).strict();
1163
1165
  const forbiddenErrorSchema = z__namespace.object({
1164
- "error": z__namespace.object({
1165
- "message": z__namespace.string(),
1166
- "type": z__namespace.enum([
1166
+ error: z__namespace.object({
1167
+ message: z__namespace.string(),
1168
+ type: z__namespace.enum([
1167
1169
  "forbidden_error"
1168
1170
  ])
1169
1171
  }).strict()
1170
1172
  }).strict();
1171
1173
  const notFoundErrorSchema = z__namespace.object({
1172
- "error": z__namespace.object({
1173
- "message": z__namespace.string(),
1174
- "type": z__namespace.enum([
1174
+ error: z__namespace.object({
1175
+ message: z__namespace.string(),
1176
+ type: z__namespace.enum([
1175
1177
  "not_found_error"
1176
1178
  ])
1177
1179
  }).strict()
1178
1180
  }).strict();
1179
1181
  const conflictErrorSchema = z__namespace.object({
1180
- "error": z__namespace.object({
1181
- "message": z__namespace.string(),
1182
- "type": z__namespace.enum([
1182
+ error: z__namespace.object({
1183
+ message: z__namespace.string(),
1184
+ type: z__namespace.enum([
1183
1185
  "conflict_error"
1184
1186
  ])
1185
1187
  }).strict()
1186
1188
  }).strict();
1187
1189
  const payloadTooLargeErrorSchema = z__namespace.object({
1188
- "error": z__namespace.object({
1189
- "message": z__namespace.string(),
1190
- "type": z__namespace.enum([
1190
+ error: z__namespace.object({
1191
+ message: z__namespace.string(),
1192
+ type: z__namespace.enum([
1191
1193
  "payload_too_large_error"
1192
1194
  ])
1193
1195
  }).strict()
1194
1196
  }).strict();
1195
1197
  const unprocessableEntityErrorSchema = z__namespace.object({
1196
- "error": z__namespace.object({
1197
- "message": z__namespace.string(),
1198
- "type": z__namespace.enum([
1198
+ error: z__namespace.object({
1199
+ message: z__namespace.string(),
1200
+ type: z__namespace.enum([
1199
1201
  "unprocessable_entity_error"
1200
1202
  ])
1201
1203
  }).strict()
1202
1204
  }).strict();
1203
1205
  const tooManyRequestsErrorSchema = z__namespace.object({
1204
- "error": z__namespace.object({
1205
- "message": z__namespace.string(),
1206
- "type": z__namespace.enum([
1206
+ error: z__namespace.object({
1207
+ message: z__namespace.string(),
1208
+ type: z__namespace.enum([
1207
1209
  "too_many_requests_error"
1208
1210
  ])
1209
1211
  }).strict()
1210
1212
  }).strict();
1211
1213
  const internalServerErrorSchema = z__namespace.object({
1212
- "error": z__namespace.object({
1213
- "message": z__namespace.string(),
1214
- "type": z__namespace.enum([
1214
+ error: z__namespace.object({
1215
+ message: z__namespace.string(),
1216
+ type: z__namespace.enum([
1215
1217
  "internal_server_error"
1216
1218
  ])
1217
1219
  }).strict()
@@ -1241,9 +1243,10 @@ const chatsFindQueryOffsetSchema = z__namespace.number().optional().default(0).d
1241
1243
  const chatsFindQueryIsFavoriteSchema = z__namespace.enum([
1242
1244
  "true",
1243
1245
  "false"
1244
- ]).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.");
1246
+ ]).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.');
1245
1247
  const chatsFindQueryVercelProjectIdSchema = z__namespace.string().optional().describe("Filters chats by the linked Vercel project ID. Only returns chats associated with the specified Vercel project.");
1246
1248
  const chatsFindQueryBranchSchema = z__namespace.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.");
1249
+ const chatsFindQueryMetadataSchema = z__namespace.object({}).catchall(z__namespace.string().max(500)).optional().describe("Filters chats by metadata. Returns chats matching every supplied key-value pair.");
1247
1250
  const chatsFindStatus200Schema = z__namespace.unknown();
1248
1251
  const chatsFindStatus401Schema = z__namespace.unknown();
1249
1252
  const chatsFindStatus403Schema = z__namespace.unknown();
@@ -1552,7 +1555,7 @@ const chatsDownloadVersionPathVersionIdSchema = z__namespace.string().describe("
1552
1555
  const chatsDownloadVersionQueryFormatSchema = z__namespace.enum([
1553
1556
  "zip",
1554
1557
  "tarball"
1555
- ]).optional().default("zip").describe("The archive format for the download. Choose \"zip\" for broad compatibility or \"tarball\" for Unix/Linux systems.");
1558
+ ]).optional().default("zip").describe('The archive format for the download. Choose "zip" for broad compatibility or "tarball" for Unix/Linux systems.');
1556
1559
  const chatsDownloadVersionQueryIncludeDefaultFilesSchema = z__namespace.enum([
1557
1560
  "true",
1558
1561
  "false"
@@ -1707,7 +1710,7 @@ const deploymentsCreateResponseSchema = z__namespace.union([
1707
1710
  deploymentsCreateStatus429Schema,
1708
1711
  deploymentsCreateStatus500Schema
1709
1712
  ]);
1710
- const deploymentsGetByIdPathDeploymentIdSchema = z__namespace.string().describe("Path parameter \"deploymentId\"");
1713
+ const deploymentsGetByIdPathDeploymentIdSchema = z__namespace.string().describe('Path parameter "deploymentId"');
1711
1714
  const deploymentsGetByIdStatus200Schema = z__namespace.unknown();
1712
1715
  const deploymentsGetByIdStatus401Schema = z__namespace.unknown();
1713
1716
  const deploymentsGetByIdStatus403Schema = z__namespace.unknown();
@@ -1728,7 +1731,7 @@ const deploymentsGetByIdResponseSchema = z__namespace.union([
1728
1731
  deploymentsGetByIdStatus429Schema,
1729
1732
  deploymentsGetByIdStatus500Schema
1730
1733
  ]);
1731
- const deploymentsDeletePathDeploymentIdSchema = z__namespace.string().describe("Path parameter \"deploymentId\"");
1734
+ const deploymentsDeletePathDeploymentIdSchema = z__namespace.string().describe('Path parameter "deploymentId"');
1732
1735
  const deploymentsDeleteStatus200Schema = z__namespace.unknown();
1733
1736
  const deploymentsDeleteStatus401Schema = z__namespace.unknown();
1734
1737
  const deploymentsDeleteStatus403Schema = z__namespace.unknown();
@@ -2309,11 +2312,11 @@ const chatsRestoreResponseSchema = z__namespace.union([
2309
2312
  chatsRestoreStatus429Schema,
2310
2313
  chatsRestoreStatus500Schema
2311
2314
  ]);
2312
- const reportsGetUsageQueryStartDateSchema = z__namespace.iso.datetime().optional().describe("Query parameter \"startDate\"");
2313
- const reportsGetUsageQueryEndDateSchema = z__namespace.iso.datetime().optional().describe("Query parameter \"endDate\"");
2314
- const reportsGetUsageQueryChatIdSchema = z__namespace.string().optional().describe("Query parameter \"chatId\"");
2315
- const reportsGetUsageQueryMessageIdSchema = z__namespace.string().optional().describe("Query parameter \"messageId\"");
2316
- const reportsGetUsageQueryUserIdSchema = z__namespace.string().optional().describe("Query parameter \"userId\"");
2315
+ const reportsGetUsageQueryStartDateSchema = z__namespace.iso.datetime().optional().describe('Query parameter "startDate"');
2316
+ const reportsGetUsageQueryEndDateSchema = z__namespace.iso.datetime().optional().describe('Query parameter "endDate"');
2317
+ const reportsGetUsageQueryChatIdSchema = z__namespace.string().optional().describe('Query parameter "chatId"');
2318
+ const reportsGetUsageQueryMessageIdSchema = z__namespace.string().optional().describe('Query parameter "messageId"');
2319
+ const reportsGetUsageQueryUserIdSchema = z__namespace.string().optional().describe('Query parameter "userId"');
2317
2320
  const reportsGetUsageQueryLimitSchema = z__namespace.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.");
2318
2321
  const reportsGetUsageQueryCursorSchema = z__namespace.string().optional().describe("Base64 encoded cursor containing pagination data");
2319
2322
  const reportsGetUsageStatus200Schema = z__namespace.unknown();
@@ -2583,6 +2586,7 @@ exports.chatsFindMessagesStatus500Schema = chatsFindMessagesStatus500Schema;
2583
2586
  exports.chatsFindQueryBranchSchema = chatsFindQueryBranchSchema;
2584
2587
  exports.chatsFindQueryIsFavoriteSchema = chatsFindQueryIsFavoriteSchema;
2585
2588
  exports.chatsFindQueryLimitSchema = chatsFindQueryLimitSchema;
2589
+ exports.chatsFindQueryMetadataSchema = chatsFindQueryMetadataSchema;
2586
2590
  exports.chatsFindQueryOffsetSchema = chatsFindQueryOffsetSchema;
2587
2591
  exports.chatsFindQueryVercelProjectIdSchema = chatsFindQueryVercelProjectIdSchema;
2588
2592
  exports.chatsFindResponseSchema = chatsFindResponseSchema;