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