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