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/index.mjs
CHANGED
|
@@ -189,7 +189,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
189
189
|
}
|
|
190
190
|
/**
|
|
191
191
|
* @summary Fork Chat
|
|
192
|
-
* @description Creates a new chat fork (duplicate) from a specific version within
|
|
192
|
+
* @description Creates a new chat fork (duplicate) from a specific version within a chat created through Platform API v1. To duplicate chats created in v0 web or Platform API v2, use POST /v2/chats/{chatId}/duplicate.
|
|
193
193
|
* @link /chats/{chatId}/fork
|
|
194
194
|
*/ async function chatsFork({ pathParams, config } = {}) {
|
|
195
195
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
@@ -1226,7 +1226,7 @@ const operationsByPath = {
|
|
|
1226
1226
|
"POST /mcp-servers/{mcpServerId}/oauth/authorize": mcpServersCreateOAuthAuthorizationUrl
|
|
1227
1227
|
};
|
|
1228
1228
|
const operationsByTag = {
|
|
1229
|
-
|
|
1229
|
+
chats: {
|
|
1230
1230
|
chatsCreate,
|
|
1231
1231
|
chatsFind,
|
|
1232
1232
|
chatsInit,
|
|
@@ -1248,7 +1248,7 @@ const operationsByTag = {
|
|
|
1248
1248
|
chatsResolveTask,
|
|
1249
1249
|
chatsRestore
|
|
1250
1250
|
},
|
|
1251
|
-
|
|
1251
|
+
projects: {
|
|
1252
1252
|
projectsGetByChatId,
|
|
1253
1253
|
projectsFind,
|
|
1254
1254
|
projectsCreate,
|
|
@@ -1262,7 +1262,7 @@ const operationsByTag = {
|
|
|
1262
1262
|
projectsDeleteEnvVars,
|
|
1263
1263
|
projectsGetEnvVar
|
|
1264
1264
|
},
|
|
1265
|
-
|
|
1265
|
+
deployments: {
|
|
1266
1266
|
deploymentsFind,
|
|
1267
1267
|
deploymentsCreate,
|
|
1268
1268
|
deploymentsGetById,
|
|
@@ -1270,32 +1270,32 @@ const operationsByTag = {
|
|
|
1270
1270
|
deploymentsFindLogs,
|
|
1271
1271
|
deploymentsFindErrors
|
|
1272
1272
|
},
|
|
1273
|
-
|
|
1273
|
+
hooks: {
|
|
1274
1274
|
hooksFind,
|
|
1275
1275
|
hooksCreate,
|
|
1276
1276
|
hooksGetById,
|
|
1277
1277
|
hooksUpdate,
|
|
1278
1278
|
hooksDelete
|
|
1279
1279
|
},
|
|
1280
|
-
|
|
1280
|
+
integrations: {
|
|
1281
1281
|
integrationsVercelProjectsFind,
|
|
1282
1282
|
integrationsVercelProjectsCreate
|
|
1283
1283
|
},
|
|
1284
|
-
|
|
1284
|
+
ratelimits: {
|
|
1285
1285
|
rateLimitsFind
|
|
1286
1286
|
},
|
|
1287
|
-
|
|
1287
|
+
user: {
|
|
1288
1288
|
userGet,
|
|
1289
1289
|
userGetBilling,
|
|
1290
1290
|
userGetPlan,
|
|
1291
1291
|
userGetScopes
|
|
1292
1292
|
},
|
|
1293
|
-
|
|
1293
|
+
reports: {
|
|
1294
1294
|
reportsGetUsage,
|
|
1295
1295
|
reportsGetAIUsage,
|
|
1296
1296
|
reportsGetUserActivity
|
|
1297
1297
|
},
|
|
1298
|
-
|
|
1298
|
+
mcpservers: {
|
|
1299
1299
|
mcpServersFind,
|
|
1300
1300
|
mcpServersCreate,
|
|
1301
1301
|
mcpServersGetById,
|
|
@@ -1305,8 +1305,8 @@ const operationsByTag = {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
};
|
|
1307
1307
|
const tagDictionary = {
|
|
1308
|
-
|
|
1309
|
-
|
|
1308
|
+
chats: {
|
|
1309
|
+
POST: [
|
|
1310
1310
|
"chatsCreate",
|
|
1311
1311
|
"chatsInit",
|
|
1312
1312
|
"chatsFork",
|
|
@@ -1317,7 +1317,7 @@ const tagDictionary = {
|
|
|
1317
1317
|
"chatsResolveTask",
|
|
1318
1318
|
"chatsRestore"
|
|
1319
1319
|
],
|
|
1320
|
-
|
|
1320
|
+
GET: [
|
|
1321
1321
|
"chatsFind",
|
|
1322
1322
|
"chatsGetById",
|
|
1323
1323
|
"chatsFindMessages",
|
|
@@ -1326,109 +1326,109 @@ const tagDictionary = {
|
|
|
1326
1326
|
"chatsGetVersion",
|
|
1327
1327
|
"chatsDownloadVersion"
|
|
1328
1328
|
],
|
|
1329
|
-
|
|
1329
|
+
DELETE: [
|
|
1330
1330
|
"chatsDelete"
|
|
1331
1331
|
],
|
|
1332
|
-
|
|
1332
|
+
PATCH: [
|
|
1333
1333
|
"chatsUpdate",
|
|
1334
1334
|
"chatsUpdateVersion"
|
|
1335
1335
|
],
|
|
1336
|
-
|
|
1336
|
+
PUT: [
|
|
1337
1337
|
"chatsFavorite"
|
|
1338
1338
|
]
|
|
1339
1339
|
},
|
|
1340
|
-
|
|
1341
|
-
|
|
1340
|
+
projects: {
|
|
1341
|
+
GET: [
|
|
1342
1342
|
"projectsGetByChatId",
|
|
1343
1343
|
"projectsFind",
|
|
1344
1344
|
"projectsGetById",
|
|
1345
1345
|
"projectsFindEnvVars",
|
|
1346
1346
|
"projectsGetEnvVar"
|
|
1347
1347
|
],
|
|
1348
|
-
|
|
1348
|
+
POST: [
|
|
1349
1349
|
"projectsCreate",
|
|
1350
1350
|
"projectsAssign",
|
|
1351
1351
|
"projectsCreateEnvVars",
|
|
1352
1352
|
"projectsDeleteEnvVars"
|
|
1353
1353
|
],
|
|
1354
|
-
|
|
1354
|
+
PATCH: [
|
|
1355
1355
|
"projectsUpdate",
|
|
1356
1356
|
"projectsUpdateEnvVars"
|
|
1357
1357
|
],
|
|
1358
|
-
|
|
1358
|
+
DELETE: [
|
|
1359
1359
|
"projectsDelete"
|
|
1360
1360
|
]
|
|
1361
1361
|
},
|
|
1362
|
-
|
|
1363
|
-
|
|
1362
|
+
deployments: {
|
|
1363
|
+
GET: [
|
|
1364
1364
|
"deploymentsFind",
|
|
1365
1365
|
"deploymentsGetById",
|
|
1366
1366
|
"deploymentsFindLogs",
|
|
1367
1367
|
"deploymentsFindErrors"
|
|
1368
1368
|
],
|
|
1369
|
-
|
|
1369
|
+
POST: [
|
|
1370
1370
|
"deploymentsCreate"
|
|
1371
1371
|
],
|
|
1372
|
-
|
|
1372
|
+
DELETE: [
|
|
1373
1373
|
"deploymentsDelete"
|
|
1374
1374
|
]
|
|
1375
1375
|
},
|
|
1376
|
-
|
|
1377
|
-
|
|
1376
|
+
hooks: {
|
|
1377
|
+
GET: [
|
|
1378
1378
|
"hooksFind",
|
|
1379
1379
|
"hooksGetById"
|
|
1380
1380
|
],
|
|
1381
|
-
|
|
1381
|
+
POST: [
|
|
1382
1382
|
"hooksCreate"
|
|
1383
1383
|
],
|
|
1384
|
-
|
|
1384
|
+
PATCH: [
|
|
1385
1385
|
"hooksUpdate"
|
|
1386
1386
|
],
|
|
1387
|
-
|
|
1387
|
+
DELETE: [
|
|
1388
1388
|
"hooksDelete"
|
|
1389
1389
|
]
|
|
1390
1390
|
},
|
|
1391
|
-
|
|
1392
|
-
|
|
1391
|
+
integrations: {
|
|
1392
|
+
GET: [
|
|
1393
1393
|
"integrationsVercelProjectsFind"
|
|
1394
1394
|
],
|
|
1395
|
-
|
|
1395
|
+
POST: [
|
|
1396
1396
|
"integrationsVercelProjectsCreate"
|
|
1397
1397
|
]
|
|
1398
1398
|
},
|
|
1399
|
-
|
|
1400
|
-
|
|
1399
|
+
ratelimits: {
|
|
1400
|
+
GET: [
|
|
1401
1401
|
"rateLimitsFind"
|
|
1402
1402
|
]
|
|
1403
1403
|
},
|
|
1404
|
-
|
|
1405
|
-
|
|
1404
|
+
user: {
|
|
1405
|
+
GET: [
|
|
1406
1406
|
"userGet",
|
|
1407
1407
|
"userGetBilling",
|
|
1408
1408
|
"userGetPlan",
|
|
1409
1409
|
"userGetScopes"
|
|
1410
1410
|
]
|
|
1411
1411
|
},
|
|
1412
|
-
|
|
1413
|
-
|
|
1412
|
+
reports: {
|
|
1413
|
+
GET: [
|
|
1414
1414
|
"reportsGetUsage",
|
|
1415
1415
|
"reportsGetAIUsage",
|
|
1416
1416
|
"reportsGetUserActivity"
|
|
1417
1417
|
]
|
|
1418
1418
|
},
|
|
1419
|
-
|
|
1420
|
-
|
|
1419
|
+
mcpservers: {
|
|
1420
|
+
GET: [
|
|
1421
1421
|
"mcpServersFind",
|
|
1422
1422
|
"mcpServersGetById"
|
|
1423
1423
|
],
|
|
1424
|
-
|
|
1424
|
+
POST: [
|
|
1425
1425
|
"mcpServersCreate",
|
|
1426
1426
|
"mcpServersCreateOAuthAuthorizationUrl"
|
|
1427
1427
|
],
|
|
1428
|
-
|
|
1428
|
+
PATCH: [
|
|
1429
1429
|
"mcpServersUpdate"
|
|
1430
1430
|
],
|
|
1431
|
-
|
|
1431
|
+
DELETE: [
|
|
1432
1432
|
"mcpServersDelete"
|
|
1433
1433
|
]
|
|
1434
1434
|
}
|
|
@@ -1483,59 +1483,59 @@ class V0Api {
|
|
|
1483
1483
|
|
|
1484
1484
|
// @ts-nocheck
|
|
1485
1485
|
const chatDetailSchema = z.object({
|
|
1486
|
-
|
|
1487
|
-
|
|
1486
|
+
id: z.string().describe("A unique identifier for the chat."),
|
|
1487
|
+
object: z.enum([
|
|
1488
1488
|
"chat"
|
|
1489
1489
|
]).describe("Fixed value identifying this object as a chat."),
|
|
1490
|
-
|
|
1491
|
-
|
|
1490
|
+
shareable: z.boolean().describe("Indicates whether the chat can be shared via public link."),
|
|
1491
|
+
privacy: z.enum([
|
|
1492
1492
|
"private",
|
|
1493
1493
|
"public",
|
|
1494
1494
|
"team",
|
|
1495
1495
|
"team-edit",
|
|
1496
1496
|
"unlisted"
|
|
1497
1497
|
]).describe("Defines the visibility of the chat—private, team-only, or public."),
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1498
|
+
name: z.string().optional().describe("An optional name assigned to the chat by the user."),
|
|
1499
|
+
title: z.string().optional().describe("Deprecated title field preserved for backward compatibility."),
|
|
1500
|
+
createdAt: z.iso.datetime().describe("The ISO timestamp representing when the chat was created."),
|
|
1501
|
+
updatedAt: z.string().optional().describe("The ISO timestamp of the last update to the chat."),
|
|
1502
|
+
favorite: z.boolean().describe("Indicates whether the chat is marked as a favorite."),
|
|
1503
|
+
authorId: z.string().describe("The ID of the user who created the chat."),
|
|
1504
|
+
projectId: z.string().optional().describe("Optional ID of the v0 project associated with this chat."),
|
|
1505
|
+
vercelProjectId: z.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
|
|
1506
|
+
webUrl: z.string().describe("Web URL to view this chat in the browser."),
|
|
1507
|
+
apiUrl: z.string().describe("API URL to access this chat via the API."),
|
|
1508
|
+
latestVersion: z.object({
|
|
1509
|
+
id: z.string().describe("A unique identifier for the version."),
|
|
1510
|
+
object: z.enum([
|
|
1511
1511
|
"version"
|
|
1512
1512
|
]).describe("Fixed value identifying this object as a version."),
|
|
1513
|
-
|
|
1513
|
+
status: z.enum([
|
|
1514
1514
|
"completed",
|
|
1515
1515
|
"failed",
|
|
1516
1516
|
"pending"
|
|
1517
1517
|
]).describe("The current status of the version generation process."),
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1518
|
+
demoUrl: z.string().optional().describe("Optional URL for previewing the generated output."),
|
|
1519
|
+
screenshotUrl: z.string().optional().describe("URL to retrieve a screenshot of this version."),
|
|
1520
|
+
createdAt: z.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
|
|
1521
|
+
updatedAt: z.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format."),
|
|
1522
|
+
files: z.array(z.object({
|
|
1523
|
+
object: z.enum([
|
|
1524
1524
|
"file"
|
|
1525
1525
|
]).describe("Fixed value identifying this object as a file."),
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1526
|
+
name: z.string().describe("The name of the file, including its extension."),
|
|
1527
|
+
content: z.string().describe("The full contents of the file as a raw string."),
|
|
1528
|
+
locked: z.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
|
|
1529
1529
|
}).strict()).describe("A list of files that were generated or included in this version.")
|
|
1530
1530
|
}).strict().optional().describe("Full details of the most recent generated version, if available."),
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1531
|
+
url: z.string().describe("The canonical URL to access this chat."),
|
|
1532
|
+
messages: z.array(z.object({
|
|
1533
|
+
id: z.string().describe("A unique identifier for the message."),
|
|
1534
|
+
object: z.enum([
|
|
1535
1535
|
"message"
|
|
1536
1536
|
]).describe("Fixed value identifying this object as a message."),
|
|
1537
|
-
|
|
1538
|
-
|
|
1537
|
+
content: z.string().describe("The main text content of the message."),
|
|
1538
|
+
experimentalContent: z.array(z.union([
|
|
1539
1539
|
z.tuple([
|
|
1540
1540
|
z.enum([
|
|
1541
1541
|
0
|
|
@@ -1547,68 +1547,68 @@ const chatDetailSchema = z.object({
|
|
|
1547
1547
|
1
|
|
1548
1548
|
]),
|
|
1549
1549
|
z.object({
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1550
|
+
toJSONSchema: z.string(),
|
|
1551
|
+
def: z.string(),
|
|
1552
|
+
type: z.string(),
|
|
1553
|
+
check: z.string(),
|
|
1554
|
+
with: z.string(),
|
|
1555
|
+
clone: z.string(),
|
|
1556
|
+
brand: z.string(),
|
|
1557
|
+
register: z.string(),
|
|
1558
|
+
parse: z.string(),
|
|
1559
|
+
safeParse: z.string(),
|
|
1560
|
+
parseAsync: z.string(),
|
|
1561
|
+
safeParseAsync: z.string(),
|
|
1562
|
+
spa: z.string(),
|
|
1563
|
+
encode: z.string(),
|
|
1564
|
+
decode: z.string(),
|
|
1565
|
+
encodeAsync: z.string(),
|
|
1566
|
+
decodeAsync: z.string(),
|
|
1567
|
+
safeEncode: z.string(),
|
|
1568
|
+
safeDecode: z.string(),
|
|
1569
|
+
safeEncodeAsync: z.string(),
|
|
1570
|
+
safeDecodeAsync: z.string(),
|
|
1571
|
+
refine: z.string(),
|
|
1572
|
+
superRefine: z.string(),
|
|
1573
|
+
overwrite: z.string(),
|
|
1574
|
+
optional: z.string(),
|
|
1575
|
+
exactOptional: z.string(),
|
|
1576
|
+
nullable: z.string(),
|
|
1577
|
+
nullish: z.string(),
|
|
1578
|
+
nonoptional: z.string(),
|
|
1579
|
+
array: z.string(),
|
|
1580
|
+
or: z.string(),
|
|
1581
|
+
and: z.string(),
|
|
1582
|
+
transform: z.string(),
|
|
1583
|
+
default: z.string(),
|
|
1584
|
+
prefault: z.string(),
|
|
1585
|
+
catch: z.string(),
|
|
1586
|
+
pipe: z.string(),
|
|
1587
|
+
readonly: z.string(),
|
|
1588
|
+
describe: z.string(),
|
|
1589
|
+
meta: z.string(),
|
|
1590
|
+
isOptional: z.string(),
|
|
1591
|
+
isNullable: z.string(),
|
|
1592
|
+
apply: z.string(),
|
|
1593
|
+
keyof: z.string(),
|
|
1594
|
+
catchall: z.string(),
|
|
1595
|
+
passthrough: z.string(),
|
|
1596
|
+
loose: z.string(),
|
|
1597
|
+
strict: z.string(),
|
|
1598
|
+
strip: z.string(),
|
|
1599
|
+
extend: z.string(),
|
|
1600
|
+
safeExtend: z.string(),
|
|
1601
|
+
merge: z.string(),
|
|
1602
|
+
pick: z.string(),
|
|
1603
|
+
omit: z.string(),
|
|
1604
|
+
partial: z.string(),
|
|
1605
|
+
required: z.string()
|
|
1606
1606
|
}).strict()
|
|
1607
1607
|
])
|
|
1608
1608
|
])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1609
|
+
createdAt: z.string().describe("The ISO timestamp representing when the message was created."),
|
|
1610
|
+
updatedAt: z.iso.datetime().optional().describe("The ISO timestamp representing when the message was last updated."),
|
|
1611
|
+
type: z.enum([
|
|
1612
1612
|
"added-environment-variables",
|
|
1613
1613
|
"added-integration",
|
|
1614
1614
|
"answered-questions",
|
|
@@ -1632,11 +1632,11 @@ const chatDetailSchema = z.object({
|
|
|
1632
1632
|
"reverted-block",
|
|
1633
1633
|
"sync-git"
|
|
1634
1634
|
]).describe("Indicates the format or category of the message, such as plain text or code."),
|
|
1635
|
-
|
|
1635
|
+
role: z.enum([
|
|
1636
1636
|
"assistant",
|
|
1637
1637
|
"user"
|
|
1638
1638
|
]).describe("Specifies whether the message was sent by the user or the assistant."),
|
|
1639
|
-
|
|
1639
|
+
finishReason: z.enum([
|
|
1640
1640
|
"content-filter",
|
|
1641
1641
|
"error",
|
|
1642
1642
|
"length",
|
|
@@ -1644,31 +1644,31 @@ const chatDetailSchema = z.object({
|
|
|
1644
1644
|
"stop",
|
|
1645
1645
|
"tool-calls"
|
|
1646
1646
|
]).optional().describe("The reason why the message generation finished."),
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1647
|
+
apiUrl: z.string().describe("API URL to access this message via the API."),
|
|
1648
|
+
authorId: z.null().describe("The ID of the user who sent the message."),
|
|
1649
|
+
parentId: z.null().optional().describe("The ID of the parent message."),
|
|
1650
|
+
attachments: z.array(z.object({
|
|
1651
|
+
url: z.string().describe("The URL where the attachment file can be accessed."),
|
|
1652
|
+
name: z.string().optional().describe("The original filename of the attachment."),
|
|
1653
|
+
contentType: z.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
|
|
1654
|
+
size: z.number().describe("The size of the attachment file in bytes."),
|
|
1655
|
+
content: z.string().optional().describe("The base64-encoded content of the attachment file, if available."),
|
|
1656
|
+
type: z.enum([
|
|
1657
1657
|
"figma",
|
|
1658
1658
|
"screenshot",
|
|
1659
1659
|
"zip"
|
|
1660
1660
|
]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
|
|
1661
1661
|
}).strict()).optional()
|
|
1662
1662
|
}).strict()).describe("All messages exchanged in the chat, including user and assistant entries."),
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1663
|
+
files: z.array(z.object({
|
|
1664
|
+
lang: z.string().describe("Programming language used in the file (e.g., JavaScript, Python)."),
|
|
1665
|
+
meta: z.object({}).catchall(z.string()).describe("A key-value map of metadata associated with the file (e.g., path, type)."),
|
|
1666
|
+
source: z.string().describe("The origin or identifier of the file source (e.g., path or upload label).")
|
|
1667
1667
|
}).strict()).optional().describe("Optional array of files associated with the chat context."),
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1668
|
+
demo: z.string().optional().describe("Deprecated demo URL used for previewing the chat result."),
|
|
1669
|
+
text: z.string().describe("The main user prompt or instruction that started the chat."),
|
|
1670
|
+
modelConfiguration: z.object({
|
|
1671
|
+
modelId: z.enum([
|
|
1672
1672
|
"v0-auto",
|
|
1673
1673
|
"v0-max",
|
|
1674
1674
|
"v0-max-fast",
|
|
@@ -1677,136 +1677,136 @@ const chatDetailSchema = z.object({
|
|
|
1677
1677
|
"v0-opus-4.7-fast",
|
|
1678
1678
|
"v0-pro"
|
|
1679
1679
|
]).optional().default("v0-pro").describe("Model to use for the generation. `v0-auto` is deprecated and falls back to `v0-pro`."),
|
|
1680
|
-
|
|
1681
|
-
|
|
1680
|
+
imageGenerations: z.boolean().optional().default(false).describe("Enables image generations to generate up to 5 images per version."),
|
|
1681
|
+
thinking: z.boolean().optional().default(false).describe("Enables thinking to generate a response in multiple steps.")
|
|
1682
1682
|
}).strict().optional().describe("The configuration used to generate responses in this chat."),
|
|
1683
|
-
|
|
1684
|
-
|
|
1683
|
+
permissions: z.object({
|
|
1684
|
+
write: z.boolean().describe("If true, the user has write access to the chat.")
|
|
1685
1685
|
}).strict(),
|
|
1686
|
-
|
|
1686
|
+
metadata: z.object({}).catchall(z.string()).describe("Arbitrary key-value data associated with this chat.")
|
|
1687
1687
|
}).strict().describe("Detailed representation of a chat, including its messages, files, versions, and model configuration.");
|
|
1688
1688
|
const chatSummarySchema = z.object({
|
|
1689
|
-
|
|
1690
|
-
|
|
1689
|
+
id: z.string().describe("A unique identifier for the chat."),
|
|
1690
|
+
object: z.enum([
|
|
1691
1691
|
"chat"
|
|
1692
1692
|
]).describe("Fixed value identifying this object as a chat."),
|
|
1693
|
-
|
|
1694
|
-
|
|
1693
|
+
shareable: z.boolean().describe("Indicates whether the chat can be shared via public link."),
|
|
1694
|
+
privacy: z.enum([
|
|
1695
1695
|
"private",
|
|
1696
1696
|
"public",
|
|
1697
1697
|
"team",
|
|
1698
1698
|
"team-edit",
|
|
1699
1699
|
"unlisted"
|
|
1700
1700
|
]).describe("Defines the visibility of the chat—private, team-only, or public."),
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1701
|
+
name: z.string().optional().describe("An optional name assigned to the chat by the user."),
|
|
1702
|
+
title: z.string().optional().describe("Deprecated title field preserved for backward compatibility."),
|
|
1703
|
+
createdAt: z.iso.datetime().describe("The ISO timestamp representing when the chat was created."),
|
|
1704
|
+
updatedAt: z.string().optional().describe("The ISO timestamp of the last update to the chat."),
|
|
1705
|
+
favorite: z.boolean().describe("Indicates whether the chat is marked as a favorite."),
|
|
1706
|
+
authorId: z.string().describe("The ID of the user who created the chat."),
|
|
1707
|
+
projectId: z.string().optional().describe("Optional ID of the v0 project associated with this chat."),
|
|
1708
|
+
vercelProjectId: z.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
|
|
1709
|
+
webUrl: z.string().describe("Web URL to view this chat in the browser."),
|
|
1710
|
+
apiUrl: z.string().describe("API URL to access this chat via the API."),
|
|
1711
|
+
latestVersion: z.object({
|
|
1712
|
+
id: z.string().describe("A unique identifier for the version."),
|
|
1713
|
+
object: z.enum([
|
|
1714
1714
|
"version"
|
|
1715
1715
|
]).describe("Fixed value identifying this object as a version."),
|
|
1716
|
-
|
|
1716
|
+
status: z.enum([
|
|
1717
1717
|
"completed",
|
|
1718
1718
|
"failed",
|
|
1719
1719
|
"pending"
|
|
1720
1720
|
]).describe("The current status of the version generation process."),
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1721
|
+
demoUrl: z.string().optional().describe("Optional URL for previewing the generated output."),
|
|
1722
|
+
screenshotUrl: z.string().optional().describe("URL to retrieve a screenshot of this version."),
|
|
1723
|
+
createdAt: z.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
|
|
1724
|
+
updatedAt: z.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
|
|
1725
1725
|
}).strict().optional().describe("The most recent generated version of the chat, if available.")
|
|
1726
1726
|
}).strict().describe("Summary of a chat, including metadata like privacy, author, latest version, and URLs.");
|
|
1727
1727
|
const deploymentDetailSchema = z.object({
|
|
1728
|
-
|
|
1729
|
-
|
|
1728
|
+
id: z.string().describe("A unique identifier for the deployment."),
|
|
1729
|
+
object: z.enum([
|
|
1730
1730
|
"deployment"
|
|
1731
1731
|
]).describe("Fixed value identifying this object as a deployment."),
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1732
|
+
inspectorUrl: z.string().describe("URL to the deployment inspector."),
|
|
1733
|
+
chatId: z.string().describe("The ID of the chat that this deployment is scoped to."),
|
|
1734
|
+
projectId: z.string().optional().describe("The ID of the project that this deployment is scoped to."),
|
|
1735
|
+
versionId: z.string().describe("The ID of the version that this deployment is scoped to."),
|
|
1736
|
+
apiUrl: z.url().describe("The API endpoint URL for accessing this deployment programmatically."),
|
|
1737
|
+
webUrl: z.url().describe("The web URL where the deployment can be viewed or managed.")
|
|
1738
1738
|
}).strict();
|
|
1739
1739
|
const deploymentSummarySchema = z.object({
|
|
1740
|
-
|
|
1741
|
-
|
|
1740
|
+
id: z.string().describe("A unique identifier for the deployment."),
|
|
1741
|
+
object: z.enum([
|
|
1742
1742
|
"deployment"
|
|
1743
1743
|
]).describe("Fixed value identifying this object as a deployment."),
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1744
|
+
inspectorUrl: z.string().describe("URL to the deployment inspector."),
|
|
1745
|
+
chatId: z.string().describe("The ID of the chat that this deployment is scoped to."),
|
|
1746
|
+
projectId: z.string().optional().describe("The ID of the project that this deployment is scoped to."),
|
|
1747
|
+
versionId: z.string().describe("The ID of the version that this deployment is scoped to."),
|
|
1748
|
+
apiUrl: z.url().describe("The API endpoint URL for accessing this deployment programmatically."),
|
|
1749
|
+
webUrl: z.url().describe("The web URL where the deployment can be viewed or managed.")
|
|
1750
1750
|
}).strict();
|
|
1751
1751
|
const environmentVariableDetailSchemaSchema = z.object({
|
|
1752
|
-
|
|
1753
|
-
|
|
1752
|
+
id: z.string().describe("A unique identifier for the environment variable."),
|
|
1753
|
+
object: z.enum([
|
|
1754
1754
|
"environment_variable"
|
|
1755
1755
|
]).describe("The object type."),
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1756
|
+
key: z.string().describe("The name of the environment variable."),
|
|
1757
|
+
value: z.string().describe("The value of the environment variable."),
|
|
1758
|
+
decrypted: z.boolean().describe("Whether the value is decrypted or encrypted."),
|
|
1759
|
+
createdAt: z.number().describe("The timestamp when the environment variable was created."),
|
|
1760
|
+
updatedAt: z.number().optional().describe("The timestamp when the environment variable was last updated.")
|
|
1761
1761
|
}).strict().describe("Detailed information for an environment variable including its value.");
|
|
1762
1762
|
const environmentVariableSummarySchemaSchema = z.object({
|
|
1763
|
-
|
|
1764
|
-
|
|
1763
|
+
id: z.string().describe("A unique identifier for the environment variable."),
|
|
1764
|
+
object: z.enum([
|
|
1765
1765
|
"environment_variable"
|
|
1766
1766
|
]).describe("The object type."),
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1767
|
+
key: z.string().describe("The name of the environment variable."),
|
|
1768
|
+
value: z.string().describe("The value of the environment variable."),
|
|
1769
|
+
decrypted: z.boolean().describe("Whether the value is decrypted or encrypted."),
|
|
1770
|
+
createdAt: z.number().describe("The timestamp when the environment variable was created."),
|
|
1771
|
+
updatedAt: z.number().optional().describe("The timestamp when the environment variable was last updated.")
|
|
1772
1772
|
}).strict().describe("Summary information for an environment variable.");
|
|
1773
1773
|
const environmentVariablesListSchemaSchema = z.object({
|
|
1774
|
-
|
|
1774
|
+
object: z.enum([
|
|
1775
1775
|
"list"
|
|
1776
1776
|
]).describe("Fixed value identifying this as a list response."),
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1777
|
+
data: z.array(z.object({
|
|
1778
|
+
id: z.string().describe("A unique identifier for the environment variable."),
|
|
1779
|
+
object: z.enum([
|
|
1780
1780
|
"environment_variable"
|
|
1781
1781
|
]).describe("The object type."),
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1782
|
+
key: z.string().describe("The name of the environment variable."),
|
|
1783
|
+
value: z.string().describe("The value of the environment variable."),
|
|
1784
|
+
decrypted: z.boolean().describe("Whether the value is decrypted or encrypted."),
|
|
1785
|
+
createdAt: z.number().describe("The timestamp when the environment variable was created."),
|
|
1786
|
+
updatedAt: z.number().optional().describe("The timestamp when the environment variable was last updated.")
|
|
1787
1787
|
}).strict()).describe("Array of environment variable details.")
|
|
1788
1788
|
}).strict().describe("List response containing environment variables.");
|
|
1789
1789
|
const fileDetailSchema = z.object({
|
|
1790
|
-
|
|
1790
|
+
object: z.enum([
|
|
1791
1791
|
"file"
|
|
1792
1792
|
]).describe("Fixed value identifying this object as a file."),
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1793
|
+
name: z.string().describe("The name of the file, including its extension."),
|
|
1794
|
+
content: z.string().describe("The full contents of the file as a raw string."),
|
|
1795
|
+
locked: z.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
|
|
1796
1796
|
}).strict().describe("Detailed representation of a file, including its content and lock status.");
|
|
1797
1797
|
const fileSummarySchema = z.object({
|
|
1798
|
-
|
|
1798
|
+
object: z.enum([
|
|
1799
1799
|
"file"
|
|
1800
1800
|
]).describe("Fixed value identifying this object as a file."),
|
|
1801
|
-
|
|
1801
|
+
name: z.string().describe("The name of the file, including its extension.")
|
|
1802
1802
|
}).strict().describe("Basic metadata about a file, such as its type and name.");
|
|
1803
1803
|
const hookDetailSchema = z.object({
|
|
1804
|
-
|
|
1805
|
-
|
|
1804
|
+
id: z.string().describe("A unique identifier for the webhook."),
|
|
1805
|
+
object: z.enum([
|
|
1806
1806
|
"hook"
|
|
1807
1807
|
]).describe("Fixed value identifying this object as a webhook."),
|
|
1808
|
-
|
|
1809
|
-
|
|
1808
|
+
name: z.string().describe("A user-defined name to label the webhook."),
|
|
1809
|
+
events: z.array(z.enum([
|
|
1810
1810
|
"chat.created",
|
|
1811
1811
|
"chat.deleted",
|
|
1812
1812
|
"chat.updated",
|
|
@@ -1815,15 +1815,15 @@ const hookDetailSchema = z.object({
|
|
|
1815
1815
|
"message.finished",
|
|
1816
1816
|
"message.updated"
|
|
1817
1817
|
])).describe("List of event types this webhook is subscribed to."),
|
|
1818
|
-
|
|
1819
|
-
|
|
1818
|
+
chatId: z.string().optional().describe("Optional ID of the chat that this webhook is scoped to."),
|
|
1819
|
+
url: z.string().describe("Target URL that receives event payloads for this webhook.")
|
|
1820
1820
|
}).strict().describe("Full configuration details for a webhook, including its scope and subscription.");
|
|
1821
1821
|
const hookEventDetailSchema = z.object({
|
|
1822
|
-
|
|
1823
|
-
|
|
1822
|
+
id: z.string().describe("A unique identifier for the webhook event log entry."),
|
|
1823
|
+
object: z.enum([
|
|
1824
1824
|
"hook_event"
|
|
1825
1825
|
]).describe("Fixed value identifying this object as a webhook event."),
|
|
1826
|
-
|
|
1826
|
+
event: z.enum([
|
|
1827
1827
|
"chat.created",
|
|
1828
1828
|
"chat.deleted",
|
|
1829
1829
|
"chat.updated",
|
|
@@ -1832,111 +1832,111 @@ const hookEventDetailSchema = z.object({
|
|
|
1832
1832
|
"message.finished",
|
|
1833
1833
|
"message.updated"
|
|
1834
1834
|
]).describe("The type of event that triggered the webhook."),
|
|
1835
|
-
|
|
1835
|
+
status: z.enum([
|
|
1836
1836
|
"error",
|
|
1837
1837
|
"pending",
|
|
1838
1838
|
"success"
|
|
1839
1839
|
]).optional().default("pending").describe("The delivery status of the webhook (e.g., delivered, failed)."),
|
|
1840
|
-
|
|
1840
|
+
createdAt: z.iso.datetime().describe("Timestamp of when the webhook event was triggered.")
|
|
1841
1841
|
}).strict().describe("Detailed record of a webhook event, including its type, status, and timestamp.");
|
|
1842
1842
|
const hookSummarySchema = z.object({
|
|
1843
|
-
|
|
1844
|
-
|
|
1843
|
+
id: z.string().describe("A unique identifier for the webhook."),
|
|
1844
|
+
object: z.enum([
|
|
1845
1845
|
"hook"
|
|
1846
1846
|
]).describe("Fixed value identifying this object as a webhook."),
|
|
1847
|
-
|
|
1847
|
+
name: z.string().describe("A user-defined name to label the webhook.")
|
|
1848
1848
|
}).strict().describe("Summary of a webhook, including its ID and display name.");
|
|
1849
1849
|
const integrationConnectionDetailSchemaSchema = z.object({
|
|
1850
|
-
|
|
1850
|
+
object: z.enum([
|
|
1851
1851
|
"integration_connection"
|
|
1852
1852
|
]).describe("The object type."),
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1853
|
+
id: z.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
|
|
1854
|
+
connected: z.boolean().describe("Whether the integration is connected to the project."),
|
|
1855
|
+
integration: z.object({
|
|
1856
|
+
id: z.string().describe("The ID of the integration."),
|
|
1857
|
+
object: z.enum([
|
|
1858
1858
|
"integration"
|
|
1859
1859
|
]).describe("The object type."),
|
|
1860
|
-
|
|
1861
|
-
|
|
1860
|
+
slug: z.string().describe("The slug of the integration."),
|
|
1861
|
+
name: z.string().describe("The name of the integration.")
|
|
1862
1862
|
}).strict().describe("Information about the connected integration."),
|
|
1863
|
-
|
|
1863
|
+
metadata: z.object({}).catchall(z.unknown()).optional().describe("Additional metadata about the integration connection.")
|
|
1864
1864
|
}).strict().describe("Detailed information about an integration connection to a project.");
|
|
1865
1865
|
const integrationConnectionListSchemaSchema = z.object({
|
|
1866
|
-
|
|
1866
|
+
object: z.enum([
|
|
1867
1867
|
"list"
|
|
1868
1868
|
]).describe("Fixed value identifying this as a list response."),
|
|
1869
|
-
|
|
1870
|
-
|
|
1869
|
+
data: z.array(z.object({
|
|
1870
|
+
object: z.enum([
|
|
1871
1871
|
"integration_connection"
|
|
1872
1872
|
]).describe("The object type."),
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1873
|
+
id: z.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
|
|
1874
|
+
connected: z.boolean().describe("Whether the integration is connected to the project."),
|
|
1875
|
+
integration: z.object({
|
|
1876
|
+
id: z.string().describe("The ID of the integration."),
|
|
1877
|
+
object: z.enum([
|
|
1878
1878
|
"integration"
|
|
1879
1879
|
]).describe("The object type."),
|
|
1880
|
-
|
|
1881
|
-
|
|
1880
|
+
slug: z.string().describe("The slug of the integration."),
|
|
1881
|
+
name: z.string().describe("The name of the integration.")
|
|
1882
1882
|
}).strict().describe("Information about the connected integration.")
|
|
1883
1883
|
}).strict()).describe("Array of integration connection summaries.")
|
|
1884
1884
|
}).strict().describe("List response containing integration connections.");
|
|
1885
1885
|
const integrationConnectionSummarySchemaSchema = z.object({
|
|
1886
|
-
|
|
1886
|
+
object: z.enum([
|
|
1887
1887
|
"integration_connection"
|
|
1888
1888
|
]).describe("The object type."),
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1889
|
+
id: z.string().describe("The unique ID of the integration connection (format: {projectId}_{integrationId})."),
|
|
1890
|
+
connected: z.boolean().describe("Whether the integration is connected to the project."),
|
|
1891
|
+
integration: z.object({
|
|
1892
|
+
id: z.string().describe("The ID of the integration."),
|
|
1893
|
+
object: z.enum([
|
|
1894
1894
|
"integration"
|
|
1895
1895
|
]).describe("The object type."),
|
|
1896
|
-
|
|
1897
|
-
|
|
1896
|
+
slug: z.string().describe("The slug of the integration."),
|
|
1897
|
+
name: z.string().describe("The name of the integration.")
|
|
1898
1898
|
}).strict().describe("Information about the connected integration.")
|
|
1899
1899
|
}).strict().describe("Summary information about an integration connection to a project.");
|
|
1900
1900
|
const integrationDetailSchemaSchema = z.object({
|
|
1901
|
-
|
|
1902
|
-
|
|
1901
|
+
id: z.string().describe("The ID of the integration."),
|
|
1902
|
+
object: z.enum([
|
|
1903
1903
|
"integration"
|
|
1904
1904
|
]).describe("The object type."),
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1905
|
+
slug: z.string().describe("The slug of the integration."),
|
|
1906
|
+
name: z.string().describe("The name of the integration."),
|
|
1907
|
+
description: z.string().describe("A short description of the integration."),
|
|
1908
|
+
iconUrl: z.string().describe("URL to the integration icon.")
|
|
1909
1909
|
}).strict().describe("Detailed information about an integration.");
|
|
1910
1910
|
const integrationListSchemaSchema = z.object({
|
|
1911
|
-
|
|
1911
|
+
object: z.enum([
|
|
1912
1912
|
"list"
|
|
1913
1913
|
]).describe("Fixed value identifying this as a list response."),
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1914
|
+
data: z.array(z.object({
|
|
1915
|
+
id: z.string().describe("The ID of the integration."),
|
|
1916
|
+
object: z.enum([
|
|
1917
1917
|
"integration"
|
|
1918
1918
|
]).describe("The object type."),
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1919
|
+
slug: z.string().describe("The slug of the integration."),
|
|
1920
|
+
name: z.string().describe("The name of the integration."),
|
|
1921
|
+
description: z.string().describe("A short description of the integration."),
|
|
1922
|
+
iconUrl: z.string().describe("URL to the integration icon.")
|
|
1923
1923
|
}).strict()).describe("Array of integration details.")
|
|
1924
1924
|
}).strict().describe("List of available integrations.");
|
|
1925
1925
|
const integrationSummarySchemaSchema = z.object({
|
|
1926
|
-
|
|
1927
|
-
|
|
1926
|
+
id: z.string().describe("The ID of the integration."),
|
|
1927
|
+
object: z.enum([
|
|
1928
1928
|
"integration"
|
|
1929
1929
|
]).describe("The object type."),
|
|
1930
|
-
|
|
1931
|
-
|
|
1930
|
+
slug: z.string().describe("The slug of the integration."),
|
|
1931
|
+
name: z.string().describe("The name of the integration.")
|
|
1932
1932
|
}).strict().describe("Basic information about an integration.");
|
|
1933
1933
|
const messageDetailSchema = z.object({
|
|
1934
|
-
|
|
1935
|
-
|
|
1934
|
+
id: z.string().describe("A unique identifier for the message."),
|
|
1935
|
+
object: z.enum([
|
|
1936
1936
|
"message"
|
|
1937
1937
|
]).describe("Fixed value identifying this object as a message."),
|
|
1938
|
-
|
|
1939
|
-
|
|
1938
|
+
content: z.string().describe("The main text content of the message."),
|
|
1939
|
+
experimentalContent: z.array(z.union([
|
|
1940
1940
|
z.tuple([
|
|
1941
1941
|
z.enum([
|
|
1942
1942
|
0
|
|
@@ -1948,68 +1948,68 @@ const messageDetailSchema = z.object({
|
|
|
1948
1948
|
1
|
|
1949
1949
|
]),
|
|
1950
1950
|
z.object({
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
1951
|
+
toJSONSchema: z.string(),
|
|
1952
|
+
def: z.string(),
|
|
1953
|
+
type: z.string(),
|
|
1954
|
+
check: z.string(),
|
|
1955
|
+
with: z.string(),
|
|
1956
|
+
clone: z.string(),
|
|
1957
|
+
brand: z.string(),
|
|
1958
|
+
register: z.string(),
|
|
1959
|
+
parse: z.string(),
|
|
1960
|
+
safeParse: z.string(),
|
|
1961
|
+
parseAsync: z.string(),
|
|
1962
|
+
safeParseAsync: z.string(),
|
|
1963
|
+
spa: z.string(),
|
|
1964
|
+
encode: z.string(),
|
|
1965
|
+
decode: z.string(),
|
|
1966
|
+
encodeAsync: z.string(),
|
|
1967
|
+
decodeAsync: z.string(),
|
|
1968
|
+
safeEncode: z.string(),
|
|
1969
|
+
safeDecode: z.string(),
|
|
1970
|
+
safeEncodeAsync: z.string(),
|
|
1971
|
+
safeDecodeAsync: z.string(),
|
|
1972
|
+
refine: z.string(),
|
|
1973
|
+
superRefine: z.string(),
|
|
1974
|
+
overwrite: z.string(),
|
|
1975
|
+
optional: z.string(),
|
|
1976
|
+
exactOptional: z.string(),
|
|
1977
|
+
nullable: z.string(),
|
|
1978
|
+
nullish: z.string(),
|
|
1979
|
+
nonoptional: z.string(),
|
|
1980
|
+
array: z.string(),
|
|
1981
|
+
or: z.string(),
|
|
1982
|
+
and: z.string(),
|
|
1983
|
+
transform: z.string(),
|
|
1984
|
+
default: z.string(),
|
|
1985
|
+
prefault: z.string(),
|
|
1986
|
+
catch: z.string(),
|
|
1987
|
+
pipe: z.string(),
|
|
1988
|
+
readonly: z.string(),
|
|
1989
|
+
describe: z.string(),
|
|
1990
|
+
meta: z.string(),
|
|
1991
|
+
isOptional: z.string(),
|
|
1992
|
+
isNullable: z.string(),
|
|
1993
|
+
apply: z.string(),
|
|
1994
|
+
keyof: z.string(),
|
|
1995
|
+
catchall: z.string(),
|
|
1996
|
+
passthrough: z.string(),
|
|
1997
|
+
loose: z.string(),
|
|
1998
|
+
strict: z.string(),
|
|
1999
|
+
strip: z.string(),
|
|
2000
|
+
extend: z.string(),
|
|
2001
|
+
safeExtend: z.string(),
|
|
2002
|
+
merge: z.string(),
|
|
2003
|
+
pick: z.string(),
|
|
2004
|
+
omit: z.string(),
|
|
2005
|
+
partial: z.string(),
|
|
2006
|
+
required: z.string()
|
|
2007
2007
|
}).strict()
|
|
2008
2008
|
])
|
|
2009
2009
|
])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2010
|
+
createdAt: z.string().describe("The ISO timestamp representing when the message was created."),
|
|
2011
|
+
updatedAt: z.iso.datetime().optional().describe("The ISO timestamp representing when the message was last updated."),
|
|
2012
|
+
type: z.enum([
|
|
2013
2013
|
"added-environment-variables",
|
|
2014
2014
|
"added-integration",
|
|
2015
2015
|
"answered-questions",
|
|
@@ -2033,11 +2033,11 @@ const messageDetailSchema = z.object({
|
|
|
2033
2033
|
"reverted-block",
|
|
2034
2034
|
"sync-git"
|
|
2035
2035
|
]).describe("Indicates the format or category of the message, such as plain text or code."),
|
|
2036
|
-
|
|
2036
|
+
role: z.enum([
|
|
2037
2037
|
"assistant",
|
|
2038
2038
|
"user"
|
|
2039
2039
|
]).describe("Specifies whether the message was sent by the user or the assistant."),
|
|
2040
|
-
|
|
2040
|
+
finishReason: z.enum([
|
|
2041
2041
|
"content-filter",
|
|
2042
2042
|
"error",
|
|
2043
2043
|
"length",
|
|
@@ -2045,30 +2045,30 @@ const messageDetailSchema = z.object({
|
|
|
2045
2045
|
"stop",
|
|
2046
2046
|
"tool-calls"
|
|
2047
2047
|
]).optional().describe("The reason why the message generation finished."),
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2048
|
+
apiUrl: z.string().describe("API URL to access this message via the API."),
|
|
2049
|
+
authorId: z.null().describe("The ID of the user who sent the message."),
|
|
2050
|
+
parentId: z.null().optional().describe("The ID of the parent message."),
|
|
2051
|
+
attachments: z.array(z.object({
|
|
2052
|
+
url: z.string().describe("The URL where the attachment file can be accessed."),
|
|
2053
|
+
name: z.string().optional().describe("The original filename of the attachment."),
|
|
2054
|
+
contentType: z.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
|
|
2055
|
+
size: z.number().describe("The size of the attachment file in bytes."),
|
|
2056
|
+
content: z.string().optional().describe("The base64-encoded content of the attachment file, if available."),
|
|
2057
|
+
type: z.enum([
|
|
2058
2058
|
"figma",
|
|
2059
2059
|
"screenshot",
|
|
2060
2060
|
"zip"
|
|
2061
2061
|
]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
|
|
2062
2062
|
}).strict()).optional(),
|
|
2063
|
-
|
|
2063
|
+
chatId: z.string().describe("The ID of the chat to which this message belongs.")
|
|
2064
2064
|
}).strict().describe("Detailed message object extending MessageSummary with chat metadata.");
|
|
2065
2065
|
const messageSummarySchema = z.object({
|
|
2066
|
-
|
|
2067
|
-
|
|
2066
|
+
id: z.string().describe("A unique identifier for the message."),
|
|
2067
|
+
object: z.enum([
|
|
2068
2068
|
"message"
|
|
2069
2069
|
]).describe("Fixed value identifying this object as a message."),
|
|
2070
|
-
|
|
2071
|
-
|
|
2070
|
+
content: z.string().describe("The main text content of the message."),
|
|
2071
|
+
experimentalContent: z.array(z.union([
|
|
2072
2072
|
z.tuple([
|
|
2073
2073
|
z.enum([
|
|
2074
2074
|
0
|
|
@@ -2080,68 +2080,68 @@ const messageSummarySchema = z.object({
|
|
|
2080
2080
|
1
|
|
2081
2081
|
]),
|
|
2082
2082
|
z.object({
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2083
|
+
toJSONSchema: z.string(),
|
|
2084
|
+
def: z.string(),
|
|
2085
|
+
type: z.string(),
|
|
2086
|
+
check: z.string(),
|
|
2087
|
+
with: z.string(),
|
|
2088
|
+
clone: z.string(),
|
|
2089
|
+
brand: z.string(),
|
|
2090
|
+
register: z.string(),
|
|
2091
|
+
parse: z.string(),
|
|
2092
|
+
safeParse: z.string(),
|
|
2093
|
+
parseAsync: z.string(),
|
|
2094
|
+
safeParseAsync: z.string(),
|
|
2095
|
+
spa: z.string(),
|
|
2096
|
+
encode: z.string(),
|
|
2097
|
+
decode: z.string(),
|
|
2098
|
+
encodeAsync: z.string(),
|
|
2099
|
+
decodeAsync: z.string(),
|
|
2100
|
+
safeEncode: z.string(),
|
|
2101
|
+
safeDecode: z.string(),
|
|
2102
|
+
safeEncodeAsync: z.string(),
|
|
2103
|
+
safeDecodeAsync: z.string(),
|
|
2104
|
+
refine: z.string(),
|
|
2105
|
+
superRefine: z.string(),
|
|
2106
|
+
overwrite: z.string(),
|
|
2107
|
+
optional: z.string(),
|
|
2108
|
+
exactOptional: z.string(),
|
|
2109
|
+
nullable: z.string(),
|
|
2110
|
+
nullish: z.string(),
|
|
2111
|
+
nonoptional: z.string(),
|
|
2112
|
+
array: z.string(),
|
|
2113
|
+
or: z.string(),
|
|
2114
|
+
and: z.string(),
|
|
2115
|
+
transform: z.string(),
|
|
2116
|
+
default: z.string(),
|
|
2117
|
+
prefault: z.string(),
|
|
2118
|
+
catch: z.string(),
|
|
2119
|
+
pipe: z.string(),
|
|
2120
|
+
readonly: z.string(),
|
|
2121
|
+
describe: z.string(),
|
|
2122
|
+
meta: z.string(),
|
|
2123
|
+
isOptional: z.string(),
|
|
2124
|
+
isNullable: z.string(),
|
|
2125
|
+
apply: z.string(),
|
|
2126
|
+
keyof: z.string(),
|
|
2127
|
+
catchall: z.string(),
|
|
2128
|
+
passthrough: z.string(),
|
|
2129
|
+
loose: z.string(),
|
|
2130
|
+
strict: z.string(),
|
|
2131
|
+
strip: z.string(),
|
|
2132
|
+
extend: z.string(),
|
|
2133
|
+
safeExtend: z.string(),
|
|
2134
|
+
merge: z.string(),
|
|
2135
|
+
pick: z.string(),
|
|
2136
|
+
omit: z.string(),
|
|
2137
|
+
partial: z.string(),
|
|
2138
|
+
required: z.string()
|
|
2139
2139
|
}).strict()
|
|
2140
2140
|
])
|
|
2141
2141
|
])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2142
|
+
createdAt: z.string().describe("The ISO timestamp representing when the message was created."),
|
|
2143
|
+
updatedAt: z.iso.datetime().optional().describe("The ISO timestamp representing when the message was last updated."),
|
|
2144
|
+
type: z.enum([
|
|
2145
2145
|
"added-environment-variables",
|
|
2146
2146
|
"added-integration",
|
|
2147
2147
|
"answered-questions",
|
|
@@ -2165,11 +2165,11 @@ const messageSummarySchema = z.object({
|
|
|
2165
2165
|
"reverted-block",
|
|
2166
2166
|
"sync-git"
|
|
2167
2167
|
]).describe("Indicates the format or category of the message, such as plain text or code."),
|
|
2168
|
-
|
|
2168
|
+
role: z.enum([
|
|
2169
2169
|
"assistant",
|
|
2170
2170
|
"user"
|
|
2171
2171
|
]).describe("Specifies whether the message was sent by the user or the assistant."),
|
|
2172
|
-
|
|
2172
|
+
finishReason: z.enum([
|
|
2173
2173
|
"content-filter",
|
|
2174
2174
|
"error",
|
|
2175
2175
|
"length",
|
|
@@ -2177,16 +2177,16 @@ const messageSummarySchema = z.object({
|
|
|
2177
2177
|
"stop",
|
|
2178
2178
|
"tool-calls"
|
|
2179
2179
|
]).optional().describe("The reason why the message generation finished."),
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2180
|
+
apiUrl: z.string().describe("API URL to access this message via the API."),
|
|
2181
|
+
authorId: z.null().describe("The ID of the user who sent the message."),
|
|
2182
|
+
parentId: z.null().optional().describe("The ID of the parent message."),
|
|
2183
|
+
attachments: z.array(z.object({
|
|
2184
|
+
url: z.string().describe("The URL where the attachment file can be accessed."),
|
|
2185
|
+
name: z.string().optional().describe("The original filename of the attachment."),
|
|
2186
|
+
contentType: z.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
|
|
2187
|
+
size: z.number().describe("The size of the attachment file in bytes."),
|
|
2188
|
+
content: z.string().optional().describe("The base64-encoded content of the attachment file, if available."),
|
|
2189
|
+
type: z.enum([
|
|
2190
2190
|
"figma",
|
|
2191
2191
|
"screenshot",
|
|
2192
2192
|
"zip"
|
|
@@ -2194,16 +2194,16 @@ const messageSummarySchema = z.object({
|
|
|
2194
2194
|
}).strict()).optional()
|
|
2195
2195
|
}).strict().describe("Summary of a single message within a chat, including role, content, type, timestamp, and API URL.");
|
|
2196
2196
|
const messageSummaryListSchema = z.object({
|
|
2197
|
-
|
|
2197
|
+
object: z.enum([
|
|
2198
2198
|
"list"
|
|
2199
2199
|
]).describe("Fixed value identifying this as a list response."),
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2200
|
+
data: z.array(z.object({
|
|
2201
|
+
id: z.string().describe("A unique identifier for the message."),
|
|
2202
|
+
object: z.enum([
|
|
2203
2203
|
"message"
|
|
2204
2204
|
]).describe("Fixed value identifying this object as a message."),
|
|
2205
|
-
|
|
2206
|
-
|
|
2205
|
+
content: z.string().describe("The main text content of the message."),
|
|
2206
|
+
experimentalContent: z.array(z.union([
|
|
2207
2207
|
z.tuple([
|
|
2208
2208
|
z.enum([
|
|
2209
2209
|
0
|
|
@@ -2215,68 +2215,68 @@ const messageSummaryListSchema = z.object({
|
|
|
2215
2215
|
1
|
|
2216
2216
|
]),
|
|
2217
2217
|
z.object({
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2218
|
+
toJSONSchema: z.string(),
|
|
2219
|
+
def: z.string(),
|
|
2220
|
+
type: z.string(),
|
|
2221
|
+
check: z.string(),
|
|
2222
|
+
with: z.string(),
|
|
2223
|
+
clone: z.string(),
|
|
2224
|
+
brand: z.string(),
|
|
2225
|
+
register: z.string(),
|
|
2226
|
+
parse: z.string(),
|
|
2227
|
+
safeParse: z.string(),
|
|
2228
|
+
parseAsync: z.string(),
|
|
2229
|
+
safeParseAsync: z.string(),
|
|
2230
|
+
spa: z.string(),
|
|
2231
|
+
encode: z.string(),
|
|
2232
|
+
decode: z.string(),
|
|
2233
|
+
encodeAsync: z.string(),
|
|
2234
|
+
decodeAsync: z.string(),
|
|
2235
|
+
safeEncode: z.string(),
|
|
2236
|
+
safeDecode: z.string(),
|
|
2237
|
+
safeEncodeAsync: z.string(),
|
|
2238
|
+
safeDecodeAsync: z.string(),
|
|
2239
|
+
refine: z.string(),
|
|
2240
|
+
superRefine: z.string(),
|
|
2241
|
+
overwrite: z.string(),
|
|
2242
|
+
optional: z.string(),
|
|
2243
|
+
exactOptional: z.string(),
|
|
2244
|
+
nullable: z.string(),
|
|
2245
|
+
nullish: z.string(),
|
|
2246
|
+
nonoptional: z.string(),
|
|
2247
|
+
array: z.string(),
|
|
2248
|
+
or: z.string(),
|
|
2249
|
+
and: z.string(),
|
|
2250
|
+
transform: z.string(),
|
|
2251
|
+
default: z.string(),
|
|
2252
|
+
prefault: z.string(),
|
|
2253
|
+
catch: z.string(),
|
|
2254
|
+
pipe: z.string(),
|
|
2255
|
+
readonly: z.string(),
|
|
2256
|
+
describe: z.string(),
|
|
2257
|
+
meta: z.string(),
|
|
2258
|
+
isOptional: z.string(),
|
|
2259
|
+
isNullable: z.string(),
|
|
2260
|
+
apply: z.string(),
|
|
2261
|
+
keyof: z.string(),
|
|
2262
|
+
catchall: z.string(),
|
|
2263
|
+
passthrough: z.string(),
|
|
2264
|
+
loose: z.string(),
|
|
2265
|
+
strict: z.string(),
|
|
2266
|
+
strip: z.string(),
|
|
2267
|
+
extend: z.string(),
|
|
2268
|
+
safeExtend: z.string(),
|
|
2269
|
+
merge: z.string(),
|
|
2270
|
+
pick: z.string(),
|
|
2271
|
+
omit: z.string(),
|
|
2272
|
+
partial: z.string(),
|
|
2273
|
+
required: z.string()
|
|
2274
2274
|
}).strict()
|
|
2275
2275
|
])
|
|
2276
2276
|
])).optional().describe("The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change."),
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2277
|
+
createdAt: z.string().describe("The ISO timestamp representing when the message was created."),
|
|
2278
|
+
updatedAt: z.iso.datetime().optional().describe("The ISO timestamp representing when the message was last updated."),
|
|
2279
|
+
type: z.enum([
|
|
2280
2280
|
"added-environment-variables",
|
|
2281
2281
|
"added-integration",
|
|
2282
2282
|
"answered-questions",
|
|
@@ -2300,11 +2300,11 @@ const messageSummaryListSchema = z.object({
|
|
|
2300
2300
|
"reverted-block",
|
|
2301
2301
|
"sync-git"
|
|
2302
2302
|
]).describe("Indicates the format or category of the message, such as plain text or code."),
|
|
2303
|
-
|
|
2303
|
+
role: z.enum([
|
|
2304
2304
|
"assistant",
|
|
2305
2305
|
"user"
|
|
2306
2306
|
]).describe("Specifies whether the message was sent by the user or the assistant."),
|
|
2307
|
-
|
|
2307
|
+
finishReason: z.enum([
|
|
2308
2308
|
"content-filter",
|
|
2309
2309
|
"error",
|
|
2310
2310
|
"length",
|
|
@@ -2312,365 +2312,365 @@ const messageSummaryListSchema = z.object({
|
|
|
2312
2312
|
"stop",
|
|
2313
2313
|
"tool-calls"
|
|
2314
2314
|
]).optional().describe("The reason why the message generation finished."),
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2315
|
+
apiUrl: z.string().describe("API URL to access this message via the API."),
|
|
2316
|
+
authorId: z.null().describe("The ID of the user who sent the message."),
|
|
2317
|
+
parentId: z.null().optional().describe("The ID of the parent message."),
|
|
2318
|
+
attachments: z.array(z.object({
|
|
2319
|
+
url: z.string().describe("The URL where the attachment file can be accessed."),
|
|
2320
|
+
name: z.string().optional().describe("The original filename of the attachment."),
|
|
2321
|
+
contentType: z.string().optional().describe("The MIME type of the attachment file (e.g., image/png, application/pdf)."),
|
|
2322
|
+
size: z.number().describe("The size of the attachment file in bytes."),
|
|
2323
|
+
content: z.string().optional().describe("The base64-encoded content of the attachment file, if available."),
|
|
2324
|
+
type: z.enum([
|
|
2325
2325
|
"figma",
|
|
2326
2326
|
"screenshot",
|
|
2327
2327
|
"zip"
|
|
2328
2328
|
]).optional().describe("Optional v0-specific attachment type for enhanced processing.")
|
|
2329
2329
|
}).strict()).optional()
|
|
2330
2330
|
}).strict()).describe("Array of message summaries in this page of results."),
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2331
|
+
pagination: z.object({
|
|
2332
|
+
hasMore: z.boolean().describe("Indicates if there are more results available beyond this page."),
|
|
2333
|
+
nextCursor: z.string().optional().describe("Cursor for fetching the next page of results."),
|
|
2334
|
+
nextUrl: z.string().optional().describe("API URL for retrieving the next page of results.")
|
|
2335
2335
|
}).strict().describe("Pagination metadata for navigating through multiple pages of results.")
|
|
2336
2336
|
}).strict().describe("List response containing multiple message summaries with cursor-based pagination.");
|
|
2337
2337
|
const notificationPreferenceSchemaSchema = z.object({
|
|
2338
|
-
|
|
2339
|
-
|
|
2338
|
+
liveActivity: z.boolean().describe("Whether the user wants to receive live activities."),
|
|
2339
|
+
pushNotifications: z.boolean().describe("Whether the user wants to receive push notifications.")
|
|
2340
2340
|
}).strict().describe("User preference for notification delivery methods.");
|
|
2341
2341
|
const productDetailSchemaSchema = z.object({
|
|
2342
|
-
|
|
2342
|
+
object: z.enum([
|
|
2343
2343
|
"product"
|
|
2344
2344
|
]).describe("The object type."),
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2345
|
+
id: z.string().describe("The unique ID of the product."),
|
|
2346
|
+
slug: z.string().describe("The URL-friendly slug of the product."),
|
|
2347
|
+
name: z.string().describe("The name of the product."),
|
|
2348
|
+
description: z.string().describe("A short description of the product."),
|
|
2349
|
+
iconUrl: z.string().describe("URL to the product icon."),
|
|
2350
|
+
v0Availability: z.enum([
|
|
2351
2351
|
"in-review",
|
|
2352
2352
|
"published"
|
|
2353
2353
|
]).optional().describe("The product's availability in v0. 'in-review' products only appear for teams with the review view and should be rendered as such."),
|
|
2354
|
-
|
|
2354
|
+
iconBackgroundColor: z.string().optional().describe("Background color for the product icon.")
|
|
2355
2355
|
}).strict().describe("Detailed information about a marketplace or store product.");
|
|
2356
2356
|
const productListSchemaSchema = z.object({
|
|
2357
|
-
|
|
2357
|
+
object: z.enum([
|
|
2358
2358
|
"list"
|
|
2359
2359
|
]).describe("Fixed value identifying this as a list response."),
|
|
2360
|
-
|
|
2361
|
-
|
|
2360
|
+
data: z.array(z.object({
|
|
2361
|
+
object: z.enum([
|
|
2362
2362
|
"product"
|
|
2363
2363
|
]).describe("The object type."),
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2364
|
+
id: z.string().describe("The unique ID of the product."),
|
|
2365
|
+
slug: z.string().describe("The URL-friendly slug of the product."),
|
|
2366
|
+
name: z.string().describe("The name of the product."),
|
|
2367
|
+
description: z.string().describe("A short description of the product."),
|
|
2368
|
+
iconUrl: z.string().describe("URL to the product icon."),
|
|
2369
|
+
v0Availability: z.enum([
|
|
2370
2370
|
"in-review",
|
|
2371
2371
|
"published"
|
|
2372
2372
|
]).optional().describe("The product's availability in v0. 'in-review' products only appear for teams with the review view and should be rendered as such.")
|
|
2373
2373
|
}).strict()).describe("Array of product summaries.")
|
|
2374
2374
|
}).strict().describe("List of available marketplace and store products.");
|
|
2375
2375
|
const productSummarySchemaSchema = z.object({
|
|
2376
|
-
|
|
2376
|
+
object: z.enum([
|
|
2377
2377
|
"product"
|
|
2378
2378
|
]).describe("The object type."),
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2379
|
+
id: z.string().describe("The unique ID of the product."),
|
|
2380
|
+
slug: z.string().describe("The URL-friendly slug of the product."),
|
|
2381
|
+
name: z.string().describe("The name of the product."),
|
|
2382
|
+
description: z.string().describe("A short description of the product."),
|
|
2383
|
+
iconUrl: z.string().describe("URL to the product icon."),
|
|
2384
|
+
v0Availability: z.enum([
|
|
2385
2385
|
"in-review",
|
|
2386
2386
|
"published"
|
|
2387
2387
|
]).optional().describe("The product's availability in v0. 'in-review' products only appear for teams with the review view and should be rendered as such.")
|
|
2388
2388
|
}).strict().describe("Summary information about a marketplace or store product.");
|
|
2389
2389
|
const projectDetailSchema = z.object({
|
|
2390
|
-
|
|
2391
|
-
|
|
2390
|
+
id: z.string().describe("A unique identifier for the project."),
|
|
2391
|
+
object: z.enum([
|
|
2392
2392
|
"project"
|
|
2393
2393
|
]).describe("Fixed value identifying this object as a project."),
|
|
2394
|
-
|
|
2395
|
-
|
|
2394
|
+
name: z.string().describe("The name of the project as defined by the user."),
|
|
2395
|
+
privacy: z.enum([
|
|
2396
2396
|
"private",
|
|
2397
2397
|
"team"
|
|
2398
2398
|
]).describe("The privacy setting for the project - either private or team."),
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2399
|
+
vercelProjectId: z.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
|
|
2400
|
+
createdAt: z.iso.datetime().describe("The ISO timestamp representing when the project was created."),
|
|
2401
|
+
updatedAt: z.iso.datetime().optional().describe("The ISO timestamp of the most recent update, if available."),
|
|
2402
|
+
apiUrl: z.url().describe("The API endpoint URL for accessing this project programmatically."),
|
|
2403
|
+
webUrl: z.url().describe("The web URL where the project can be viewed or managed."),
|
|
2404
|
+
description: z.string().optional().describe("The description of the project."),
|
|
2405
|
+
instructions: z.string().optional().describe("The instructions for the project."),
|
|
2406
|
+
chats: z.array(z.object({
|
|
2407
|
+
id: z.string().describe("A unique identifier for the chat."),
|
|
2408
|
+
object: z.enum([
|
|
2409
2409
|
"chat"
|
|
2410
2410
|
]).describe("Fixed value identifying this object as a chat."),
|
|
2411
|
-
|
|
2412
|
-
|
|
2411
|
+
shareable: z.boolean().describe("Indicates whether the chat can be shared via public link."),
|
|
2412
|
+
privacy: z.enum([
|
|
2413
2413
|
"private",
|
|
2414
2414
|
"public",
|
|
2415
2415
|
"team",
|
|
2416
2416
|
"team-edit",
|
|
2417
2417
|
"unlisted"
|
|
2418
2418
|
]).describe("Defines the visibility of the chat—private, team-only, or public."),
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2419
|
+
name: z.string().optional().describe("An optional name assigned to the chat by the user."),
|
|
2420
|
+
title: z.string().optional().describe("Deprecated title field preserved for backward compatibility."),
|
|
2421
|
+
createdAt: z.iso.datetime().describe("The ISO timestamp representing when the chat was created."),
|
|
2422
|
+
updatedAt: z.string().optional().describe("The ISO timestamp of the last update to the chat."),
|
|
2423
|
+
favorite: z.boolean().describe("Indicates whether the chat is marked as a favorite."),
|
|
2424
|
+
authorId: z.string().describe("The ID of the user who created the chat."),
|
|
2425
|
+
projectId: z.string().optional().describe("Optional ID of the v0 project associated with this chat."),
|
|
2426
|
+
vercelProjectId: z.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
|
|
2427
|
+
webUrl: z.string().describe("Web URL to view this chat in the browser."),
|
|
2428
|
+
apiUrl: z.string().describe("API URL to access this chat via the API."),
|
|
2429
|
+
latestVersion: z.object({
|
|
2430
|
+
id: z.string().describe("A unique identifier for the version."),
|
|
2431
|
+
object: z.enum([
|
|
2432
2432
|
"version"
|
|
2433
2433
|
]).describe("Fixed value identifying this object as a version."),
|
|
2434
|
-
|
|
2434
|
+
status: z.enum([
|
|
2435
2435
|
"completed",
|
|
2436
2436
|
"failed",
|
|
2437
2437
|
"pending"
|
|
2438
2438
|
]).describe("The current status of the version generation process."),
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2439
|
+
demoUrl: z.string().optional().describe("Optional URL for previewing the generated output."),
|
|
2440
|
+
screenshotUrl: z.string().optional().describe("URL to retrieve a screenshot of this version."),
|
|
2441
|
+
createdAt: z.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
|
|
2442
|
+
updatedAt: z.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
|
|
2443
2443
|
}).strict().optional().describe("The most recent generated version of the chat, if available.")
|
|
2444
2444
|
}).strict()).describe("List of all chats that are associated with this project.")
|
|
2445
2445
|
}).strict().describe("Full representation of a project, including its associated chats.");
|
|
2446
2446
|
const projectSummarySchema = z.object({
|
|
2447
|
-
|
|
2448
|
-
|
|
2447
|
+
id: z.string().describe("A unique identifier for the project."),
|
|
2448
|
+
object: z.enum([
|
|
2449
2449
|
"project"
|
|
2450
2450
|
]).describe("Fixed value identifying this object as a project."),
|
|
2451
|
-
|
|
2452
|
-
|
|
2451
|
+
name: z.string().describe("The name of the project as defined by the user."),
|
|
2452
|
+
privacy: z.enum([
|
|
2453
2453
|
"private",
|
|
2454
2454
|
"team"
|
|
2455
2455
|
]).describe("The privacy setting for the project - either private or team."),
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2456
|
+
vercelProjectId: z.string().optional().describe("Optional ID of the linked Vercel project, if connected."),
|
|
2457
|
+
createdAt: z.iso.datetime().describe("The ISO timestamp representing when the project was created."),
|
|
2458
|
+
updatedAt: z.iso.datetime().optional().describe("The ISO timestamp of the most recent update, if available."),
|
|
2459
|
+
apiUrl: z.url().describe("The API endpoint URL for accessing this project programmatically."),
|
|
2460
|
+
webUrl: z.url().describe("The web URL where the project can be viewed or managed.")
|
|
2461
2461
|
}).strict().describe("Summary of a project, including metadata, timestamps, and optional Vercel linkage.");
|
|
2462
2462
|
const scopeSummarySchema = z.object({
|
|
2463
|
-
|
|
2464
|
-
|
|
2463
|
+
id: z.string().describe("A unique identifier for the scope (e.g., user or team workspace)."),
|
|
2464
|
+
object: z.enum([
|
|
2465
2465
|
"scope"
|
|
2466
2466
|
]).describe("Fixed value identifying this object as a scope."),
|
|
2467
|
-
|
|
2467
|
+
name: z.string().optional().describe("An optional human-readable name for the scope.")
|
|
2468
2468
|
}).strict().describe("Basic information about a workspace or identity context for projects and chats.");
|
|
2469
2469
|
const searchResultItemSchema = z.object({
|
|
2470
|
-
|
|
2471
|
-
|
|
2470
|
+
id: z.string().describe("The unique ID of the item returned in the search result."),
|
|
2471
|
+
object: z.enum([
|
|
2472
2472
|
"chat",
|
|
2473
2473
|
"project"
|
|
2474
2474
|
]).describe("Type of item returned, either 'chat' or 'project'."),
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2475
|
+
name: z.string().describe("The display name of the item."),
|
|
2476
|
+
createdAt: z.iso.datetime().describe("The ISO timestamp representing when the item was created."),
|
|
2477
|
+
updatedAt: z.iso.datetime().optional().describe("The ISO timestamp of the last update to the item."),
|
|
2478
|
+
apiUrl: z.string().describe("API endpoint for accessing the item programmatically."),
|
|
2479
|
+
webUrl: z.string().describe("Web URL for viewing the item in the interface.")
|
|
2480
2480
|
}).strict().describe("Generic result returned from a search query, representing either a chat or a project.");
|
|
2481
2481
|
const userDetailSchemaSchema = z.object({
|
|
2482
|
-
|
|
2483
|
-
|
|
2482
|
+
id: z.string().describe("A unique identifier for the user."),
|
|
2483
|
+
object: z.enum([
|
|
2484
2484
|
"user"
|
|
2485
2485
|
]).describe("Fixed value identifying this object as a user."),
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2486
|
+
name: z.string().optional().describe("Optional full name of the user."),
|
|
2487
|
+
email: z.string().describe("The user's email address."),
|
|
2488
|
+
avatar: z.string().describe("URL to the user's avatar image."),
|
|
2489
|
+
createdAt: z.iso.datetime().describe("The ISO timestamp representing when the user was created."),
|
|
2490
|
+
updatedAt: z.iso.datetime().optional().describe("The ISO timestamp of the last update to the user.")
|
|
2491
2491
|
}).strict();
|
|
2492
2492
|
const userPreferencesPostResponseSchemaSchema = z.object({
|
|
2493
|
-
|
|
2493
|
+
object: z.enum([
|
|
2494
2494
|
"user_preferences"
|
|
2495
2495
|
]).describe("Object type identifier."),
|
|
2496
|
-
|
|
2496
|
+
preferences: z.union([
|
|
2497
2497
|
z.object({
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2498
|
+
notifications: z.object({
|
|
2499
|
+
liveActivity: z.boolean().describe("Whether the user wants to receive live activities."),
|
|
2500
|
+
pushNotifications: z.boolean().describe("Whether the user wants to receive push notifications.")
|
|
2501
2501
|
}).strict().describe("The user's preferred method for receiving notifications.")
|
|
2502
2502
|
}).strict(),
|
|
2503
2503
|
z.null()
|
|
2504
2504
|
]).describe("The updated preferences if successful, or null if failed.")
|
|
2505
2505
|
}).strict().describe("Response schema for updating user preferences.");
|
|
2506
2506
|
const userPreferencesResponseSchemaSchema = z.object({
|
|
2507
|
-
|
|
2507
|
+
object: z.enum([
|
|
2508
2508
|
"user_preferences"
|
|
2509
2509
|
]).describe("Object type identifier."),
|
|
2510
|
-
|
|
2510
|
+
preferences: z.union([
|
|
2511
2511
|
z.object({
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2512
|
+
notifications: z.object({
|
|
2513
|
+
liveActivity: z.boolean().describe("Whether the user wants to receive live activities."),
|
|
2514
|
+
pushNotifications: z.boolean().describe("Whether the user wants to receive push notifications.")
|
|
2515
2515
|
}).strict().describe("The user's preferred method for receiving notifications.")
|
|
2516
2516
|
}).strict(),
|
|
2517
2517
|
z.null()
|
|
2518
2518
|
]).describe("The user's current preferences, or null if errored.")
|
|
2519
2519
|
}).strict().describe("Response schema for retrieving user preferences.");
|
|
2520
2520
|
const userPreferencesSchemaSchema = z.object({
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2521
|
+
notifications: z.object({
|
|
2522
|
+
liveActivity: z.boolean().describe("Whether the user wants to receive live activities."),
|
|
2523
|
+
pushNotifications: z.boolean().describe("Whether the user wants to receive push notifications.")
|
|
2524
2524
|
}).strict().describe("The user's preferred method for receiving notifications.")
|
|
2525
2525
|
}).strict().describe("User preferences configuration including notification settings.");
|
|
2526
2526
|
const userSummarySchemaSchema = z.object({
|
|
2527
|
-
|
|
2528
|
-
|
|
2527
|
+
id: z.string().describe("A unique identifier for the user."),
|
|
2528
|
+
object: z.enum([
|
|
2529
2529
|
"user"
|
|
2530
2530
|
]).describe("Fixed value identifying this object as a user."),
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2531
|
+
name: z.string().optional().describe("Optional full name of the user."),
|
|
2532
|
+
email: z.string().describe("The user's email address."),
|
|
2533
|
+
avatar: z.string().describe("URL to the user's avatar image."),
|
|
2534
|
+
createdAt: z.iso.datetime().describe("The ISO timestamp representing when the user was created."),
|
|
2535
|
+
updatedAt: z.iso.datetime().optional().describe("The ISO timestamp of the last update to the user.")
|
|
2536
2536
|
}).strict().describe("Details of the authenticated user, including profile and contact information.");
|
|
2537
2537
|
const vercelProjectDetailSchema = z.object({
|
|
2538
|
-
|
|
2539
|
-
|
|
2538
|
+
id: z.string().describe("A unique identifier for the linked Vercel project."),
|
|
2539
|
+
object: z.enum([
|
|
2540
2540
|
"vercel_project"
|
|
2541
2541
|
]).describe("Fixed value identifying this object as a Vercel project."),
|
|
2542
|
-
|
|
2542
|
+
name: z.string().describe("The name of the Vercel project.")
|
|
2543
2543
|
}).strict();
|
|
2544
2544
|
const vercelProjectSummarySchema = z.object({
|
|
2545
|
-
|
|
2546
|
-
|
|
2545
|
+
id: z.string().describe("A unique identifier for the linked Vercel project."),
|
|
2546
|
+
object: z.enum([
|
|
2547
2547
|
"vercel_project"
|
|
2548
2548
|
]).describe("Fixed value identifying this object as a Vercel project."),
|
|
2549
|
-
|
|
2549
|
+
name: z.string().describe("The name of the Vercel project.")
|
|
2550
2550
|
}).strict().describe("Basic metadata about a Vercel project connected to a v0 project.");
|
|
2551
2551
|
const versionDetailSchema = z.object({
|
|
2552
|
-
|
|
2553
|
-
|
|
2552
|
+
id: z.string().describe("A unique identifier for the version."),
|
|
2553
|
+
object: z.enum([
|
|
2554
2554
|
"version"
|
|
2555
2555
|
]).describe("Fixed value identifying this object as a version."),
|
|
2556
|
-
|
|
2556
|
+
status: z.enum([
|
|
2557
2557
|
"completed",
|
|
2558
2558
|
"failed",
|
|
2559
2559
|
"pending"
|
|
2560
2560
|
]).describe("The current status of the version generation process."),
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2561
|
+
demoUrl: z.string().optional().describe("Optional URL for previewing the generated output."),
|
|
2562
|
+
screenshotUrl: z.string().optional().describe("URL to retrieve a screenshot of this version."),
|
|
2563
|
+
createdAt: z.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
|
|
2564
|
+
updatedAt: z.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format."),
|
|
2565
|
+
files: z.array(z.object({
|
|
2566
|
+
object: z.enum([
|
|
2567
2567
|
"file"
|
|
2568
2568
|
]).describe("Fixed value identifying this object as a file."),
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2569
|
+
name: z.string().describe("The name of the file, including its extension."),
|
|
2570
|
+
content: z.string().describe("The full contents of the file as a raw string."),
|
|
2571
|
+
locked: z.boolean().describe("Whether the file is locked to prevent AI from overwriting it during new version generation.")
|
|
2572
2572
|
}).strict()).describe("A list of files that were generated or included in this version.")
|
|
2573
2573
|
}).strict().describe("Detailed version data including file contents.");
|
|
2574
2574
|
const versionSummarySchema = z.object({
|
|
2575
|
-
|
|
2576
|
-
|
|
2575
|
+
id: z.string().describe("A unique identifier for the version."),
|
|
2576
|
+
object: z.enum([
|
|
2577
2577
|
"version"
|
|
2578
2578
|
]).describe("Fixed value identifying this object as a version."),
|
|
2579
|
-
|
|
2579
|
+
status: z.enum([
|
|
2580
2580
|
"completed",
|
|
2581
2581
|
"failed",
|
|
2582
2582
|
"pending"
|
|
2583
2583
|
]).describe("The current status of the version generation process."),
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2584
|
+
demoUrl: z.string().optional().describe("Optional URL for previewing the generated output."),
|
|
2585
|
+
screenshotUrl: z.string().optional().describe("URL to retrieve a screenshot of this version."),
|
|
2586
|
+
createdAt: z.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
|
|
2587
|
+
updatedAt: z.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
|
|
2588
2588
|
}).strict().describe("Summary of a generated version of a chat, including its status and optional demo link.");
|
|
2589
2589
|
const versionSummaryListSchema = z.object({
|
|
2590
|
-
|
|
2590
|
+
object: z.enum([
|
|
2591
2591
|
"list"
|
|
2592
2592
|
]).describe("Fixed value identifying this as a list response."),
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2593
|
+
data: z.array(z.object({
|
|
2594
|
+
id: z.string().describe("A unique identifier for the version."),
|
|
2595
|
+
object: z.enum([
|
|
2596
2596
|
"version"
|
|
2597
2597
|
]).describe("Fixed value identifying this object as a version."),
|
|
2598
|
-
|
|
2598
|
+
status: z.enum([
|
|
2599
2599
|
"completed",
|
|
2600
2600
|
"failed",
|
|
2601
2601
|
"pending"
|
|
2602
2602
|
]).describe("The current status of the version generation process."),
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2603
|
+
demoUrl: z.string().optional().describe("Optional URL for previewing the generated output."),
|
|
2604
|
+
screenshotUrl: z.string().optional().describe("URL to retrieve a screenshot of this version."),
|
|
2605
|
+
createdAt: z.iso.datetime().describe("The date and time when the version was created, in ISO 8601 format."),
|
|
2606
|
+
updatedAt: z.iso.datetime().optional().describe("The date and time when the version was last updated, in ISO 8601 format.")
|
|
2607
2607
|
}).strict()).describe("Array of version summaries in this page of results."),
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2608
|
+
pagination: z.object({
|
|
2609
|
+
hasMore: z.boolean().describe("Indicates if there are more results available beyond this page."),
|
|
2610
|
+
nextCursor: z.string().optional().describe("Cursor for fetching the next page of results."),
|
|
2611
|
+
nextUrl: z.string().optional().describe("API URL for retrieving the next page of results.")
|
|
2612
2612
|
}).strict().describe("Pagination metadata for navigating through multiple pages of results.")
|
|
2613
2613
|
}).strict().describe("List response containing multiple version summaries with cursor-based pagination.");
|
|
2614
2614
|
const unauthorizedErrorSchema = z.object({
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2615
|
+
error: z.object({
|
|
2616
|
+
message: z.string(),
|
|
2617
|
+
type: z.enum([
|
|
2618
2618
|
"unauthorized_error"
|
|
2619
2619
|
])
|
|
2620
2620
|
}).strict()
|
|
2621
2621
|
}).strict();
|
|
2622
2622
|
const forbiddenErrorSchema = z.object({
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2623
|
+
error: z.object({
|
|
2624
|
+
message: z.string(),
|
|
2625
|
+
type: z.enum([
|
|
2626
2626
|
"forbidden_error"
|
|
2627
2627
|
])
|
|
2628
2628
|
}).strict()
|
|
2629
2629
|
}).strict();
|
|
2630
2630
|
const notFoundErrorSchema = z.object({
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2631
|
+
error: z.object({
|
|
2632
|
+
message: z.string(),
|
|
2633
|
+
type: z.enum([
|
|
2634
2634
|
"not_found_error"
|
|
2635
2635
|
])
|
|
2636
2636
|
}).strict()
|
|
2637
2637
|
}).strict();
|
|
2638
2638
|
const conflictErrorSchema = z.object({
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2639
|
+
error: z.object({
|
|
2640
|
+
message: z.string(),
|
|
2641
|
+
type: z.enum([
|
|
2642
2642
|
"conflict_error"
|
|
2643
2643
|
])
|
|
2644
2644
|
}).strict()
|
|
2645
2645
|
}).strict();
|
|
2646
2646
|
const payloadTooLargeErrorSchema = z.object({
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2647
|
+
error: z.object({
|
|
2648
|
+
message: z.string(),
|
|
2649
|
+
type: z.enum([
|
|
2650
2650
|
"payload_too_large_error"
|
|
2651
2651
|
])
|
|
2652
2652
|
}).strict()
|
|
2653
2653
|
}).strict();
|
|
2654
2654
|
const unprocessableEntityErrorSchema = z.object({
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2655
|
+
error: z.object({
|
|
2656
|
+
message: z.string(),
|
|
2657
|
+
type: z.enum([
|
|
2658
2658
|
"unprocessable_entity_error"
|
|
2659
2659
|
])
|
|
2660
2660
|
}).strict()
|
|
2661
2661
|
}).strict();
|
|
2662
2662
|
const tooManyRequestsErrorSchema = z.object({
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2663
|
+
error: z.object({
|
|
2664
|
+
message: z.string(),
|
|
2665
|
+
type: z.enum([
|
|
2666
2666
|
"too_many_requests_error"
|
|
2667
2667
|
])
|
|
2668
2668
|
}).strict()
|
|
2669
2669
|
}).strict();
|
|
2670
2670
|
const internalServerErrorSchema = z.object({
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2671
|
+
error: z.object({
|
|
2672
|
+
message: z.string(),
|
|
2673
|
+
type: z.enum([
|
|
2674
2674
|
"internal_server_error"
|
|
2675
2675
|
])
|
|
2676
2676
|
}).strict()
|
|
@@ -2700,7 +2700,7 @@ const chatsFindQueryOffsetSchema = z.number().optional().default(0).describe("De
|
|
|
2700
2700
|
const chatsFindQueryIsFavoriteSchema = z.enum([
|
|
2701
2701
|
"true",
|
|
2702
2702
|
"false"
|
|
2703
|
-
]).optional().describe(
|
|
2703
|
+
]).optional().describe('Filters chats by their "favorite" status. Accepts `"true"` or `"false"` (as strings, not booleans).\n\n- `"true"`: returns only chats marked as favorites.\n- `"false"`: returns only non-favorite chats.');
|
|
2704
2704
|
const chatsFindQueryVercelProjectIdSchema = z.string().optional().describe("Filters chats by the linked Vercel project ID. Only returns chats associated with the specified Vercel project.");
|
|
2705
2705
|
const chatsFindQueryBranchSchema = z.string().optional().describe("Filters chats by the Git branch name. Only returns chats that have an active Git connection with the specified branch as the head.");
|
|
2706
2706
|
const chatsFindStatus200Schema = z.unknown();
|
|
@@ -3011,7 +3011,7 @@ const chatsDownloadVersionPathVersionIdSchema = z.string().describe("The unique
|
|
|
3011
3011
|
const chatsDownloadVersionQueryFormatSchema = z.enum([
|
|
3012
3012
|
"zip",
|
|
3013
3013
|
"tarball"
|
|
3014
|
-
]).optional().default("zip").describe(
|
|
3014
|
+
]).optional().default("zip").describe('The archive format for the download. Choose "zip" for broad compatibility or "tarball" for Unix/Linux systems.');
|
|
3015
3015
|
const chatsDownloadVersionQueryIncludeDefaultFilesSchema = z.enum([
|
|
3016
3016
|
"true",
|
|
3017
3017
|
"false"
|
|
@@ -3166,7 +3166,7 @@ const deploymentsCreateResponseSchema = z.union([
|
|
|
3166
3166
|
deploymentsCreateStatus429Schema,
|
|
3167
3167
|
deploymentsCreateStatus500Schema
|
|
3168
3168
|
]);
|
|
3169
|
-
const deploymentsGetByIdPathDeploymentIdSchema = z.string().describe(
|
|
3169
|
+
const deploymentsGetByIdPathDeploymentIdSchema = z.string().describe('Path parameter "deploymentId"');
|
|
3170
3170
|
const deploymentsGetByIdStatus200Schema = z.unknown();
|
|
3171
3171
|
const deploymentsGetByIdStatus401Schema = z.unknown();
|
|
3172
3172
|
const deploymentsGetByIdStatus403Schema = z.unknown();
|
|
@@ -3187,7 +3187,7 @@ const deploymentsGetByIdResponseSchema = z.union([
|
|
|
3187
3187
|
deploymentsGetByIdStatus429Schema,
|
|
3188
3188
|
deploymentsGetByIdStatus500Schema
|
|
3189
3189
|
]);
|
|
3190
|
-
const deploymentsDeletePathDeploymentIdSchema = z.string().describe(
|
|
3190
|
+
const deploymentsDeletePathDeploymentIdSchema = z.string().describe('Path parameter "deploymentId"');
|
|
3191
3191
|
const deploymentsDeleteStatus200Schema = z.unknown();
|
|
3192
3192
|
const deploymentsDeleteStatus401Schema = z.unknown();
|
|
3193
3193
|
const deploymentsDeleteStatus403Schema = z.unknown();
|
|
@@ -3768,11 +3768,11 @@ const chatsRestoreResponseSchema = z.union([
|
|
|
3768
3768
|
chatsRestoreStatus429Schema,
|
|
3769
3769
|
chatsRestoreStatus500Schema
|
|
3770
3770
|
]);
|
|
3771
|
-
const reportsGetUsageQueryStartDateSchema = z.iso.datetime().optional().describe(
|
|
3772
|
-
const reportsGetUsageQueryEndDateSchema = z.iso.datetime().optional().describe(
|
|
3773
|
-
const reportsGetUsageQueryChatIdSchema = z.string().optional().describe(
|
|
3774
|
-
const reportsGetUsageQueryMessageIdSchema = z.string().optional().describe(
|
|
3775
|
-
const reportsGetUsageQueryUserIdSchema = z.string().optional().describe(
|
|
3771
|
+
const reportsGetUsageQueryStartDateSchema = z.iso.datetime().optional().describe('Query parameter "startDate"');
|
|
3772
|
+
const reportsGetUsageQueryEndDateSchema = z.iso.datetime().optional().describe('Query parameter "endDate"');
|
|
3773
|
+
const reportsGetUsageQueryChatIdSchema = z.string().optional().describe('Query parameter "chatId"');
|
|
3774
|
+
const reportsGetUsageQueryMessageIdSchema = z.string().optional().describe('Query parameter "messageId"');
|
|
3775
|
+
const reportsGetUsageQueryUserIdSchema = z.string().optional().describe('Query parameter "userId"');
|
|
3776
3776
|
const reportsGetUsageQueryLimitSchema = z.number().min(1).max(150).optional().default(20).describe("Bounds the raw billing transactions scanned per ledger group and page. A page can contain more events than this value (large teams are scanned in parallel ledger groups), and a filtered page (chatId, userId, or messageId) can contain fewer or zero events while more data remains. Events are sorted newest-first within a page but not across pages on large teams. Always paginate with `pagination.hasMore` and `pagination.nextCursor` rather than stopping on an empty page.");
|
|
3777
3777
|
const reportsGetUsageQueryCursorSchema = z.string().optional().describe("Base64 encoded cursor containing pagination data");
|
|
3778
3778
|
const reportsGetUsageStatus200Schema = z.unknown();
|
|
@@ -3967,9 +3967,9 @@ const mcpServersCreateOAuthAuthorizationUrlResponseSchema = z.union([
|
|
|
3967
3967
|
]);
|
|
3968
3968
|
|
|
3969
3969
|
/**
|
|
3970
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3971
|
-
* Do not edit manually.
|
|
3972
|
-
*/ const chatDetailObjectEnum = {
|
|
3970
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3971
|
+
* Do not edit manually.
|
|
3972
|
+
*/ const chatDetailObjectEnum = {
|
|
3973
3973
|
chat: "chat"
|
|
3974
3974
|
};
|
|
3975
3975
|
const chatDetailPrivacyEnum = {
|