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.
@@ -187,7 +187,7 @@ const resolveUrl = (url, queryParams = {})=>{
187
187
  }
188
188
  /**
189
189
  * @summary Fork Chat
190
- * @description Creates a new chat fork (duplicate) from a specific version within an existing chat. Useful for branching off alternate directions without modifying the original conversation.
190
+ * @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.
191
191
  * @link /chats/{chatId}/fork
192
192
  */ async function chatsFork({ pathParams, config } = {}) {
193
193
  const { client: request = client, ...requestConfig } = config ?? {};
@@ -1224,7 +1224,7 @@ const operationsByPath = {
1224
1224
  "POST /mcp-servers/{mcpServerId}/oauth/authorize": mcpServersCreateOAuthAuthorizationUrl
1225
1225
  };
1226
1226
  const operationsByTag = {
1227
- "chats": {
1227
+ chats: {
1228
1228
  chatsCreate,
1229
1229
  chatsFind,
1230
1230
  chatsInit,
@@ -1246,7 +1246,7 @@ const operationsByTag = {
1246
1246
  chatsResolveTask,
1247
1247
  chatsRestore
1248
1248
  },
1249
- "projects": {
1249
+ projects: {
1250
1250
  projectsGetByChatId,
1251
1251
  projectsFind,
1252
1252
  projectsCreate,
@@ -1260,7 +1260,7 @@ const operationsByTag = {
1260
1260
  projectsDeleteEnvVars,
1261
1261
  projectsGetEnvVar
1262
1262
  },
1263
- "deployments": {
1263
+ deployments: {
1264
1264
  deploymentsFind,
1265
1265
  deploymentsCreate,
1266
1266
  deploymentsGetById,
@@ -1268,32 +1268,32 @@ const operationsByTag = {
1268
1268
  deploymentsFindLogs,
1269
1269
  deploymentsFindErrors
1270
1270
  },
1271
- "hooks": {
1271
+ hooks: {
1272
1272
  hooksFind,
1273
1273
  hooksCreate,
1274
1274
  hooksGetById,
1275
1275
  hooksUpdate,
1276
1276
  hooksDelete
1277
1277
  },
1278
- "integrations": {
1278
+ integrations: {
1279
1279
  integrationsVercelProjectsFind,
1280
1280
  integrationsVercelProjectsCreate
1281
1281
  },
1282
- "ratelimits": {
1282
+ ratelimits: {
1283
1283
  rateLimitsFind
1284
1284
  },
1285
- "user": {
1285
+ user: {
1286
1286
  userGet,
1287
1287
  userGetBilling,
1288
1288
  userGetPlan,
1289
1289
  userGetScopes
1290
1290
  },
1291
- "reports": {
1291
+ reports: {
1292
1292
  reportsGetUsage,
1293
1293
  reportsGetAIUsage,
1294
1294
  reportsGetUserActivity
1295
1295
  },
1296
- "mcpservers": {
1296
+ mcpservers: {
1297
1297
  mcpServersFind,
1298
1298
  mcpServersCreate,
1299
1299
  mcpServersGetById,
@@ -1303,8 +1303,8 @@ const operationsByTag = {
1303
1303
  }
1304
1304
  };
1305
1305
  const tagDictionary = {
1306
- "chats": {
1307
- "POST": [
1306
+ chats: {
1307
+ POST: [
1308
1308
  "chatsCreate",
1309
1309
  "chatsInit",
1310
1310
  "chatsFork",
@@ -1315,7 +1315,7 @@ const tagDictionary = {
1315
1315
  "chatsResolveTask",
1316
1316
  "chatsRestore"
1317
1317
  ],
1318
- "GET": [
1318
+ GET: [
1319
1319
  "chatsFind",
1320
1320
  "chatsGetById",
1321
1321
  "chatsFindMessages",
@@ -1324,109 +1324,109 @@ const tagDictionary = {
1324
1324
  "chatsGetVersion",
1325
1325
  "chatsDownloadVersion"
1326
1326
  ],
1327
- "DELETE": [
1327
+ DELETE: [
1328
1328
  "chatsDelete"
1329
1329
  ],
1330
- "PATCH": [
1330
+ PATCH: [
1331
1331
  "chatsUpdate",
1332
1332
  "chatsUpdateVersion"
1333
1333
  ],
1334
- "PUT": [
1334
+ PUT: [
1335
1335
  "chatsFavorite"
1336
1336
  ]
1337
1337
  },
1338
- "projects": {
1339
- "GET": [
1338
+ projects: {
1339
+ GET: [
1340
1340
  "projectsGetByChatId",
1341
1341
  "projectsFind",
1342
1342
  "projectsGetById",
1343
1343
  "projectsFindEnvVars",
1344
1344
  "projectsGetEnvVar"
1345
1345
  ],
1346
- "POST": [
1346
+ POST: [
1347
1347
  "projectsCreate",
1348
1348
  "projectsAssign",
1349
1349
  "projectsCreateEnvVars",
1350
1350
  "projectsDeleteEnvVars"
1351
1351
  ],
1352
- "PATCH": [
1352
+ PATCH: [
1353
1353
  "projectsUpdate",
1354
1354
  "projectsUpdateEnvVars"
1355
1355
  ],
1356
- "DELETE": [
1356
+ DELETE: [
1357
1357
  "projectsDelete"
1358
1358
  ]
1359
1359
  },
1360
- "deployments": {
1361
- "GET": [
1360
+ deployments: {
1361
+ GET: [
1362
1362
  "deploymentsFind",
1363
1363
  "deploymentsGetById",
1364
1364
  "deploymentsFindLogs",
1365
1365
  "deploymentsFindErrors"
1366
1366
  ],
1367
- "POST": [
1367
+ POST: [
1368
1368
  "deploymentsCreate"
1369
1369
  ],
1370
- "DELETE": [
1370
+ DELETE: [
1371
1371
  "deploymentsDelete"
1372
1372
  ]
1373
1373
  },
1374
- "hooks": {
1375
- "GET": [
1374
+ hooks: {
1375
+ GET: [
1376
1376
  "hooksFind",
1377
1377
  "hooksGetById"
1378
1378
  ],
1379
- "POST": [
1379
+ POST: [
1380
1380
  "hooksCreate"
1381
1381
  ],
1382
- "PATCH": [
1382
+ PATCH: [
1383
1383
  "hooksUpdate"
1384
1384
  ],
1385
- "DELETE": [
1385
+ DELETE: [
1386
1386
  "hooksDelete"
1387
1387
  ]
1388
1388
  },
1389
- "integrations": {
1390
- "GET": [
1389
+ integrations: {
1390
+ GET: [
1391
1391
  "integrationsVercelProjectsFind"
1392
1392
  ],
1393
- "POST": [
1393
+ POST: [
1394
1394
  "integrationsVercelProjectsCreate"
1395
1395
  ]
1396
1396
  },
1397
- "ratelimits": {
1398
- "GET": [
1397
+ ratelimits: {
1398
+ GET: [
1399
1399
  "rateLimitsFind"
1400
1400
  ]
1401
1401
  },
1402
- "user": {
1403
- "GET": [
1402
+ user: {
1403
+ GET: [
1404
1404
  "userGet",
1405
1405
  "userGetBilling",
1406
1406
  "userGetPlan",
1407
1407
  "userGetScopes"
1408
1408
  ]
1409
1409
  },
1410
- "reports": {
1411
- "GET": [
1410
+ reports: {
1411
+ GET: [
1412
1412
  "reportsGetUsage",
1413
1413
  "reportsGetAIUsage",
1414
1414
  "reportsGetUserActivity"
1415
1415
  ]
1416
1416
  },
1417
- "mcpservers": {
1418
- "GET": [
1417
+ mcpservers: {
1418
+ GET: [
1419
1419
  "mcpServersFind",
1420
1420
  "mcpServersGetById"
1421
1421
  ],
1422
- "POST": [
1422
+ POST: [
1423
1423
  "mcpServersCreate",
1424
1424
  "mcpServersCreateOAuthAuthorizationUrl"
1425
1425
  ],
1426
- "PATCH": [
1426
+ PATCH: [
1427
1427
  "mcpServersUpdate"
1428
1428
  ],
1429
- "DELETE": [
1429
+ DELETE: [
1430
1430
  "mcpServersDelete"
1431
1431
  ]
1432
1432
  }
package/dist/effect.cjs CHANGED
@@ -191,7 +191,7 @@ const resolveUrl = (url, queryParams = {})=>{
191
191
  }
192
192
  /**
193
193
  * @summary Fork Chat
194
- * @description Creates a new chat fork (duplicate) from a specific version within an existing chat. Useful for branching off alternate directions without modifying the original conversation.
194
+ * @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.
195
195
  * @link /chats/{chatId}/fork
196
196
  */ async function chatsFork({ pathParams, config } = {}) {
197
197
  const { client: request = client, ...requestConfig } = config ?? {};
@@ -1228,7 +1228,7 @@ const operationsByPath = {
1228
1228
  "POST /mcp-servers/{mcpServerId}/oauth/authorize": mcpServersCreateOAuthAuthorizationUrl
1229
1229
  };
1230
1230
  const operationsByTag = {
1231
- "chats": {
1231
+ chats: {
1232
1232
  chatsCreate,
1233
1233
  chatsFind,
1234
1234
  chatsInit,
@@ -1250,7 +1250,7 @@ const operationsByTag = {
1250
1250
  chatsResolveTask,
1251
1251
  chatsRestore
1252
1252
  },
1253
- "projects": {
1253
+ projects: {
1254
1254
  projectsGetByChatId,
1255
1255
  projectsFind,
1256
1256
  projectsCreate,
@@ -1264,7 +1264,7 @@ const operationsByTag = {
1264
1264
  projectsDeleteEnvVars,
1265
1265
  projectsGetEnvVar
1266
1266
  },
1267
- "deployments": {
1267
+ deployments: {
1268
1268
  deploymentsFind,
1269
1269
  deploymentsCreate,
1270
1270
  deploymentsGetById,
@@ -1272,32 +1272,32 @@ const operationsByTag = {
1272
1272
  deploymentsFindLogs,
1273
1273
  deploymentsFindErrors
1274
1274
  },
1275
- "hooks": {
1275
+ hooks: {
1276
1276
  hooksFind,
1277
1277
  hooksCreate,
1278
1278
  hooksGetById,
1279
1279
  hooksUpdate,
1280
1280
  hooksDelete
1281
1281
  },
1282
- "integrations": {
1282
+ integrations: {
1283
1283
  integrationsVercelProjectsFind,
1284
1284
  integrationsVercelProjectsCreate
1285
1285
  },
1286
- "ratelimits": {
1286
+ ratelimits: {
1287
1287
  rateLimitsFind
1288
1288
  },
1289
- "user": {
1289
+ user: {
1290
1290
  userGet,
1291
1291
  userGetBilling,
1292
1292
  userGetPlan,
1293
1293
  userGetScopes
1294
1294
  },
1295
- "reports": {
1295
+ reports: {
1296
1296
  reportsGetUsage,
1297
1297
  reportsGetAIUsage,
1298
1298
  reportsGetUserActivity
1299
1299
  },
1300
- "mcpservers": {
1300
+ mcpservers: {
1301
1301
  mcpServersFind,
1302
1302
  mcpServersCreate,
1303
1303
  mcpServersGetById,