@dexto/cloud-client 1.15.0-beta.0 → 1.15.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/v1.d.ts +3038 -299
- package/dist/generated/v1.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/generated/v1.d.ts
CHANGED
|
@@ -1162,6 +1162,266 @@ export interface paths {
|
|
|
1162
1162
|
patch?: never;
|
|
1163
1163
|
trace?: never;
|
|
1164
1164
|
};
|
|
1165
|
+
"/v1/skills": {
|
|
1166
|
+
parameters: {
|
|
1167
|
+
query?: never;
|
|
1168
|
+
header?: never;
|
|
1169
|
+
path?: never;
|
|
1170
|
+
cookie?: never;
|
|
1171
|
+
};
|
|
1172
|
+
/**
|
|
1173
|
+
* List Skills
|
|
1174
|
+
* @description List the Skills in the person's library, leaving out those they turned off. Takes a person's OAuth token with the skills:read scope, besides cloud:read or cloud:write as on every /v1 call, and no Dexto-Cloud-Project header; API keys can't read a person's Skills.
|
|
1175
|
+
*/
|
|
1176
|
+
get: operations["listSkills"];
|
|
1177
|
+
put?: never;
|
|
1178
|
+
post?: never;
|
|
1179
|
+
delete?: never;
|
|
1180
|
+
options?: never;
|
|
1181
|
+
head?: never;
|
|
1182
|
+
patch?: never;
|
|
1183
|
+
trace?: never;
|
|
1184
|
+
};
|
|
1185
|
+
"/v1/skills/{skill_id}/bundle": {
|
|
1186
|
+
parameters: {
|
|
1187
|
+
query?: never;
|
|
1188
|
+
header?: never;
|
|
1189
|
+
path?: never;
|
|
1190
|
+
cookie?: never;
|
|
1191
|
+
};
|
|
1192
|
+
/**
|
|
1193
|
+
* Download a Skill
|
|
1194
|
+
* @description Download the latest release of a Skill in the person's library as a tar archive, with SKILL.md at its root. Takes a person's OAuth token with the skills:read scope, besides cloud:read or cloud:write as on every /v1 call, and no Dexto-Cloud-Project header; API keys can't read a person's Skills.
|
|
1195
|
+
*/
|
|
1196
|
+
get: operations["downloadSkillBundle"];
|
|
1197
|
+
put?: never;
|
|
1198
|
+
post?: never;
|
|
1199
|
+
delete?: never;
|
|
1200
|
+
options?: never;
|
|
1201
|
+
head?: never;
|
|
1202
|
+
patch?: never;
|
|
1203
|
+
trace?: never;
|
|
1204
|
+
};
|
|
1205
|
+
"/v1/traces": {
|
|
1206
|
+
parameters: {
|
|
1207
|
+
query?: never;
|
|
1208
|
+
header?: never;
|
|
1209
|
+
path?: never;
|
|
1210
|
+
cookie?: never;
|
|
1211
|
+
};
|
|
1212
|
+
/**
|
|
1213
|
+
* List run traces
|
|
1214
|
+
* @description List the person's recent run traces, newest first. Spans are kept 30 days. Reads the person's own runs, in organizations they still belong to. Takes a person's OAuth token with the runs:read scope, besides cloud:read or cloud:write as on every /v1 call, which reads in the token's organization; or an API key with the runs:read permission, which reads as its person, in its organization when it is an organization key. No Dexto-Cloud-Project header. A token without runs:read gets 403 naming it in details.scope. 503 when trace storage is unavailable.
|
|
1215
|
+
*/
|
|
1216
|
+
get: operations["listRunTraces"];
|
|
1217
|
+
put?: never;
|
|
1218
|
+
post?: never;
|
|
1219
|
+
delete?: never;
|
|
1220
|
+
options?: never;
|
|
1221
|
+
head?: never;
|
|
1222
|
+
patch?: never;
|
|
1223
|
+
trace?: never;
|
|
1224
|
+
};
|
|
1225
|
+
"/v1/traces/{run_id}": {
|
|
1226
|
+
parameters: {
|
|
1227
|
+
query?: never;
|
|
1228
|
+
header?: never;
|
|
1229
|
+
path?: never;
|
|
1230
|
+
cookie?: never;
|
|
1231
|
+
};
|
|
1232
|
+
/**
|
|
1233
|
+
* Get a run trace
|
|
1234
|
+
* @description Read one run's trace: its spans and their events. An unknown run, or another person's, answers 404. Reads the person's own runs, in organizations they still belong to. Takes a person's OAuth token with the runs:read scope, besides cloud:read or cloud:write as on every /v1 call, which reads in the token's organization; or an API key with the runs:read permission, which reads as its person, in its organization when it is an organization key. No Dexto-Cloud-Project header. A token without runs:read gets 403 naming it in details.scope. 503 when trace storage is unavailable.
|
|
1235
|
+
*/
|
|
1236
|
+
get: operations["getRunTrace"];
|
|
1237
|
+
put?: never;
|
|
1238
|
+
post?: never;
|
|
1239
|
+
delete?: never;
|
|
1240
|
+
options?: never;
|
|
1241
|
+
head?: never;
|
|
1242
|
+
patch?: never;
|
|
1243
|
+
trace?: never;
|
|
1244
|
+
};
|
|
1245
|
+
"/v1/traces/{run_id}/spans": {
|
|
1246
|
+
parameters: {
|
|
1247
|
+
query?: never;
|
|
1248
|
+
header?: never;
|
|
1249
|
+
path?: never;
|
|
1250
|
+
cookie?: never;
|
|
1251
|
+
};
|
|
1252
|
+
/**
|
|
1253
|
+
* List run spans
|
|
1254
|
+
* @description List one run's spans, filtered by name and status. Reads the person's own runs, in organizations they still belong to. Takes a person's OAuth token with the runs:read scope, besides cloud:read or cloud:write as on every /v1 call, which reads in the token's organization; or an API key with the runs:read permission, which reads as its person, in its organization when it is an organization key. No Dexto-Cloud-Project header. A token without runs:read gets 403 naming it in details.scope. 503 when trace storage is unavailable.
|
|
1255
|
+
*/
|
|
1256
|
+
get: operations["listRunSpans"];
|
|
1257
|
+
put?: never;
|
|
1258
|
+
post?: never;
|
|
1259
|
+
delete?: never;
|
|
1260
|
+
options?: never;
|
|
1261
|
+
head?: never;
|
|
1262
|
+
patch?: never;
|
|
1263
|
+
trace?: never;
|
|
1264
|
+
};
|
|
1265
|
+
"/v1/synced_chats": {
|
|
1266
|
+
parameters: {
|
|
1267
|
+
query?: never;
|
|
1268
|
+
header?: never;
|
|
1269
|
+
path?: never;
|
|
1270
|
+
cookie?: never;
|
|
1271
|
+
};
|
|
1272
|
+
get?: never;
|
|
1273
|
+
put?: never;
|
|
1274
|
+
/**
|
|
1275
|
+
* Sync a CLI chat
|
|
1276
|
+
* @description Beta, may change. Copy a local CLI chat's messages into the person's private, read-only chat for it, creating it with the first batch. Send messages in order: a batch may repeat messages the chat holds, which must match after redaction. Dexto Cloud redacts every message again, so one the CLI missed is still stored redacted. 409 sync_gap names next_index when the batch starts past the chat's end; 409 sync_diverged names the index of a message that differs from the stored one, and the CLI stops syncing that chat. 409 chat_in_cloud while the chat continues in the cloud. A request is at most 8 MiB and a chat holds at most 2000 messages and 4000000 characters (413). Each person may hold 1000 synced chats per organization; a new chat over that limit is refused with 409 synced_chat_limit. Existing chats can still sync. Each person may sync 120 times a minute (429). Takes a person's OAuth token from the Dexto CLI with the chats:sync scope; a key can't.
|
|
1277
|
+
*/
|
|
1278
|
+
post: operations["syncChat"];
|
|
1279
|
+
delete?: never;
|
|
1280
|
+
options?: never;
|
|
1281
|
+
head?: never;
|
|
1282
|
+
patch?: never;
|
|
1283
|
+
trace?: never;
|
|
1284
|
+
};
|
|
1285
|
+
"/v1/synced_chats/{chat_id}": {
|
|
1286
|
+
parameters: {
|
|
1287
|
+
query?: never;
|
|
1288
|
+
header?: never;
|
|
1289
|
+
path?: never;
|
|
1290
|
+
cookie?: never;
|
|
1291
|
+
};
|
|
1292
|
+
get?: never;
|
|
1293
|
+
put?: never;
|
|
1294
|
+
post?: never;
|
|
1295
|
+
/**
|
|
1296
|
+
* Delete a synced chat
|
|
1297
|
+
* @description Beta, may change. Delete a chat synced from the CLI, with all its messages. Syncing the local chat again creates a new one. 409 chat_in_cloud while the chat continues in the cloud, and 409 move_in_progress, naming the move, while a move is open. Takes a person's OAuth token from the Dexto CLI with the chats:sync scope; a key can't.
|
|
1298
|
+
*/
|
|
1299
|
+
delete: operations["deleteSyncedChat"];
|
|
1300
|
+
options?: never;
|
|
1301
|
+
head?: never;
|
|
1302
|
+
patch?: never;
|
|
1303
|
+
trace?: never;
|
|
1304
|
+
};
|
|
1305
|
+
"/v1/synced_chats/{chat_id}/moves": {
|
|
1306
|
+
parameters: {
|
|
1307
|
+
query?: never;
|
|
1308
|
+
header?: never;
|
|
1309
|
+
path?: never;
|
|
1310
|
+
cookie?: never;
|
|
1311
|
+
};
|
|
1312
|
+
get?: never;
|
|
1313
|
+
put?: never;
|
|
1314
|
+
/**
|
|
1315
|
+
* Start moving a synced chat
|
|
1316
|
+
* @description Beta, may change. Start moving a synced chat. To the cloud: move it and its working tree to the chat's own cloud computer. Declare the branch, head commit, and the size and SHA-256 of the git bundle and of the patch of uncommitted changes, then PUT each to its URL and call uploaded. A bundle over 256 MiB or a patch over 32 MiB is refused with 413. 409 move_in_progress names the chat's open move; 409 chat_in_cloud means the chat is already in the cloud; 409 too_many_moves when 3 of the person's chats are already moving to the cloud. To local (`{"to":"local"}`): the chat in the cloud stops taking turns (409 chat_moving) while its computer exports the working tree, within about a minute: the commits after the head the CLI uploaded as a bundle, and the uncommitted changes as a patch without gitignored or secret-shaped files. The move is then ready, with export, or failed with export_failed or computer_unavailable and the chat back in the cloud; 409 chat_busy while a turn runs or messages wait in its queue, and 409 chat_local when the chat is not in the cloud. An open move expires an hour after it starts, and an expired or canceled move back puts the chat in the cloud again. 503 when this environment cannot take uploads.
|
|
1317
|
+
*/
|
|
1318
|
+
post: operations["startSyncedChatMove"];
|
|
1319
|
+
delete?: never;
|
|
1320
|
+
options?: never;
|
|
1321
|
+
head?: never;
|
|
1322
|
+
patch?: never;
|
|
1323
|
+
trace?: never;
|
|
1324
|
+
};
|
|
1325
|
+
"/v1/synced_chats/{chat_id}/moves/{move_id}": {
|
|
1326
|
+
parameters: {
|
|
1327
|
+
query?: never;
|
|
1328
|
+
header?: never;
|
|
1329
|
+
path?: never;
|
|
1330
|
+
cookie?: never;
|
|
1331
|
+
};
|
|
1332
|
+
/**
|
|
1333
|
+
* Get a synced chat move
|
|
1334
|
+
* @description Beta, may change. Read a move's status and failure, with fresh upload URLs while it awaits its upload, and its export with fresh download URLs once a move to local is ready.
|
|
1335
|
+
*/
|
|
1336
|
+
get: operations["getSyncedChatMove"];
|
|
1337
|
+
put?: never;
|
|
1338
|
+
post?: never;
|
|
1339
|
+
delete?: never;
|
|
1340
|
+
options?: never;
|
|
1341
|
+
head?: never;
|
|
1342
|
+
patch?: never;
|
|
1343
|
+
trace?: never;
|
|
1344
|
+
};
|
|
1345
|
+
"/v1/synced_chats/{chat_id}/moves/{move_id}/uploaded": {
|
|
1346
|
+
parameters: {
|
|
1347
|
+
query?: never;
|
|
1348
|
+
header?: never;
|
|
1349
|
+
path?: never;
|
|
1350
|
+
cookie?: never;
|
|
1351
|
+
};
|
|
1352
|
+
get?: never;
|
|
1353
|
+
put?: never;
|
|
1354
|
+
/**
|
|
1355
|
+
* Confirm a synced chat move's upload
|
|
1356
|
+
* @description Beta, may change. Tell Dexto Cloud both uploads finished. It checks each object's size and SHA-256 and that the patch changes no secret-shaped file, such as .env or ~/.ssh/*: the move is then importing, or failed with upload_mismatch or secret_path and its uploads deleted. The chat stays local until the import completes: the chat's computer then clones the bundle and applies the patch, refusing a secret-shaped file in the patch or in the head commit's tree, and the move becomes completed (the chat takes turns in the cloud) or failed with secret_path, import_failed, upload_mismatch or computer_unavailable. Poll the move to follow it. 409 move_not_awaiting_upload names the move's status.
|
|
1357
|
+
*/
|
|
1358
|
+
post: operations["confirmSyncedChatMoveUpload"];
|
|
1359
|
+
delete?: never;
|
|
1360
|
+
options?: never;
|
|
1361
|
+
head?: never;
|
|
1362
|
+
patch?: never;
|
|
1363
|
+
trace?: never;
|
|
1364
|
+
};
|
|
1365
|
+
"/v1/synced_chats/{chat_id}/moves/{move_id}/cancel": {
|
|
1366
|
+
parameters: {
|
|
1367
|
+
query?: never;
|
|
1368
|
+
header?: never;
|
|
1369
|
+
path?: never;
|
|
1370
|
+
cookie?: never;
|
|
1371
|
+
};
|
|
1372
|
+
get?: never;
|
|
1373
|
+
put?: never;
|
|
1374
|
+
/**
|
|
1375
|
+
* Cancel a synced chat move
|
|
1376
|
+
* @description Beta, may change. Abandon an open move: it is canceled, its uploads are deleted and the chat is where it was before the move. A move no longer open is returned unchanged.
|
|
1377
|
+
*/
|
|
1378
|
+
post: operations["cancelSyncedChatMove"];
|
|
1379
|
+
delete?: never;
|
|
1380
|
+
options?: never;
|
|
1381
|
+
head?: never;
|
|
1382
|
+
patch?: never;
|
|
1383
|
+
trace?: never;
|
|
1384
|
+
};
|
|
1385
|
+
"/v1/synced_chats/{chat_id}/moves/{move_id}/complete": {
|
|
1386
|
+
parameters: {
|
|
1387
|
+
query?: never;
|
|
1388
|
+
header?: never;
|
|
1389
|
+
path?: never;
|
|
1390
|
+
cookie?: never;
|
|
1391
|
+
};
|
|
1392
|
+
get?: never;
|
|
1393
|
+
put?: never;
|
|
1394
|
+
/**
|
|
1395
|
+
* Complete a synced chat move
|
|
1396
|
+
* @description Beta, may change. Finish a move back to local once the CLI applied its export: the move is completed and the chat is local again, read-only in Dexto Cloud, and sync resumes at sync_from_index, the index after its last message. 409 move_not_ready names the move's status.
|
|
1397
|
+
*/
|
|
1398
|
+
post: operations["completeSyncedChatMove"];
|
|
1399
|
+
delete?: never;
|
|
1400
|
+
options?: never;
|
|
1401
|
+
head?: never;
|
|
1402
|
+
patch?: never;
|
|
1403
|
+
trace?: never;
|
|
1404
|
+
};
|
|
1405
|
+
"/v1/synced_chats/{chat_id}/messages": {
|
|
1406
|
+
parameters: {
|
|
1407
|
+
query?: never;
|
|
1408
|
+
header?: never;
|
|
1409
|
+
path?: never;
|
|
1410
|
+
cookie?: never;
|
|
1411
|
+
};
|
|
1412
|
+
/**
|
|
1413
|
+
* List a moving chat's messages
|
|
1414
|
+
* @description Beta, may change. Read the messages of a chat moving back to local from from_index, in the sync message shape, at most 200 messages and 4 MiB of stored messages a page; next_from_index starts the next page. A message over 1 MiB, a tool output over 256 KiB, or tool outputs past 4 MiB a page come back as omitted markers. Only while a move back is open: 409 chat_not_returning otherwise.
|
|
1415
|
+
*/
|
|
1416
|
+
get: operations["listSyncedChatMessages"];
|
|
1417
|
+
put?: never;
|
|
1418
|
+
post?: never;
|
|
1419
|
+
delete?: never;
|
|
1420
|
+
options?: never;
|
|
1421
|
+
head?: never;
|
|
1422
|
+
patch?: never;
|
|
1423
|
+
trace?: never;
|
|
1424
|
+
};
|
|
1165
1425
|
"/v1/sites": {
|
|
1166
1426
|
parameters: {
|
|
1167
1427
|
query?: never;
|
|
@@ -1246,6 +1506,50 @@ export interface paths {
|
|
|
1246
1506
|
patch?: never;
|
|
1247
1507
|
trace?: never;
|
|
1248
1508
|
};
|
|
1509
|
+
"/v1/artifacts": {
|
|
1510
|
+
parameters: {
|
|
1511
|
+
query?: never;
|
|
1512
|
+
header?: never;
|
|
1513
|
+
path?: never;
|
|
1514
|
+
cookie?: never;
|
|
1515
|
+
};
|
|
1516
|
+
/**
|
|
1517
|
+
* List Artifacts
|
|
1518
|
+
* @description List the caller's Artifacts, newest first.
|
|
1519
|
+
*/
|
|
1520
|
+
get: operations["listArtifacts"];
|
|
1521
|
+
put?: never;
|
|
1522
|
+
/**
|
|
1523
|
+
* Publish an Artifact
|
|
1524
|
+
* @description Store HTML and share it with the caller's organization. Requires a user credential.
|
|
1525
|
+
*/
|
|
1526
|
+
post: operations["publishArtifact"];
|
|
1527
|
+
delete?: never;
|
|
1528
|
+
options?: never;
|
|
1529
|
+
head?: never;
|
|
1530
|
+
patch?: never;
|
|
1531
|
+
trace?: never;
|
|
1532
|
+
};
|
|
1533
|
+
"/v1/artifacts/{id}": {
|
|
1534
|
+
parameters: {
|
|
1535
|
+
query?: never;
|
|
1536
|
+
header?: never;
|
|
1537
|
+
path?: never;
|
|
1538
|
+
cookie?: never;
|
|
1539
|
+
};
|
|
1540
|
+
/**
|
|
1541
|
+
* Open an Artifact
|
|
1542
|
+
* @description Read a link to the caller's Artifact.
|
|
1543
|
+
*/
|
|
1544
|
+
get: operations["getArtifact"];
|
|
1545
|
+
put?: never;
|
|
1546
|
+
post?: never;
|
|
1547
|
+
delete?: never;
|
|
1548
|
+
options?: never;
|
|
1549
|
+
head?: never;
|
|
1550
|
+
patch?: never;
|
|
1551
|
+
trace?: never;
|
|
1552
|
+
};
|
|
1249
1553
|
"/v1/functions": {
|
|
1250
1554
|
parameters: {
|
|
1251
1555
|
query?: never;
|
|
@@ -13565,7 +13869,7 @@ export interface operations {
|
|
|
13565
13869
|
};
|
|
13566
13870
|
};
|
|
13567
13871
|
};
|
|
13568
|
-
|
|
13872
|
+
listSkills: {
|
|
13569
13873
|
parameters: {
|
|
13570
13874
|
query?: never;
|
|
13571
13875
|
header?: never;
|
|
@@ -13582,25 +13886,26 @@ export interface operations {
|
|
|
13582
13886
|
content: {
|
|
13583
13887
|
"application/json": {
|
|
13584
13888
|
data: {
|
|
13585
|
-
|
|
13586
|
-
backend_function_id: string | null;
|
|
13587
|
-
/** Format: date-time */
|
|
13588
|
-
created_at: string;
|
|
13889
|
+
description: string;
|
|
13589
13890
|
/** Format: uuid */
|
|
13590
13891
|
id: string;
|
|
13591
13892
|
/** @constant */
|
|
13592
|
-
object: "
|
|
13893
|
+
object: "skill";
|
|
13894
|
+
/** @description The latest release; the library holds only Skills that have one. */
|
|
13895
|
+
release: {
|
|
13896
|
+
/** @description Changes whenever the Skill's files change; use it as a cache key. */
|
|
13897
|
+
digest: string;
|
|
13898
|
+
version: string;
|
|
13899
|
+
};
|
|
13593
13900
|
slug: string;
|
|
13594
|
-
title: string;
|
|
13595
|
-
/** Format: date-time */
|
|
13596
|
-
updated_at: string;
|
|
13597
13901
|
/**
|
|
13598
|
-
*
|
|
13599
|
-
* @
|
|
13902
|
+
* @description A built-in Skill, or a written one.
|
|
13903
|
+
* @enum {string}
|
|
13600
13904
|
*/
|
|
13601
|
-
|
|
13602
|
-
|
|
13603
|
-
|
|
13905
|
+
source: "platform" | "user";
|
|
13906
|
+
title: string;
|
|
13907
|
+
/** @description Whose a written Skill is: the person's own, the organization's, or shared with them. Null for a built-in one. */
|
|
13908
|
+
visibility: ("organization" | "private" | "shared") | null;
|
|
13604
13909
|
}[];
|
|
13605
13910
|
/** @constant */
|
|
13606
13911
|
has_more: false;
|
|
@@ -13704,12 +14009,12 @@ export interface operations {
|
|
|
13704
14009
|
};
|
|
13705
14010
|
};
|
|
13706
14011
|
};
|
|
13707
|
-
|
|
14012
|
+
downloadSkillBundle: {
|
|
13708
14013
|
parameters: {
|
|
13709
14014
|
query?: never;
|
|
13710
14015
|
header?: never;
|
|
13711
14016
|
path: {
|
|
13712
|
-
|
|
14017
|
+
skill_id: string;
|
|
13713
14018
|
};
|
|
13714
14019
|
cookie?: never;
|
|
13715
14020
|
};
|
|
@@ -13721,54 +14026,7 @@ export interface operations {
|
|
|
13721
14026
|
[name: string]: unknown;
|
|
13722
14027
|
};
|
|
13723
14028
|
content: {
|
|
13724
|
-
"application/
|
|
13725
|
-
/** @description The Function the Site mounts to serve its server routes; null for none. */
|
|
13726
|
-
backend_function_id: string | null;
|
|
13727
|
-
/** Format: date-time */
|
|
13728
|
-
created_at: string;
|
|
13729
|
-
/** Format: uuid */
|
|
13730
|
-
id: string;
|
|
13731
|
-
/** @constant */
|
|
13732
|
-
object: "site";
|
|
13733
|
-
slug: string;
|
|
13734
|
-
title: string;
|
|
13735
|
-
/** Format: date-time */
|
|
13736
|
-
updated_at: string;
|
|
13737
|
-
/**
|
|
13738
|
-
* Format: uri
|
|
13739
|
-
* @description The Site's production URL.
|
|
13740
|
-
*/
|
|
13741
|
-
url: string;
|
|
13742
|
-
/** @enum {string} */
|
|
13743
|
-
visibility: "private" | "unlisted" | "public";
|
|
13744
|
-
/** @description The Site's newest deployments, at most 20. */
|
|
13745
|
-
deployments: {
|
|
13746
|
-
/** @description The deployment of the Site's Function this release serves; null for none. */
|
|
13747
|
-
backend_deployment_id: string | null;
|
|
13748
|
-
/**
|
|
13749
|
-
* @description production for the Site's live release; preview for any other.
|
|
13750
|
-
* @enum {string}
|
|
13751
|
-
*/
|
|
13752
|
-
channel: "preview" | "production";
|
|
13753
|
-
/** Format: date-time */
|
|
13754
|
-
created_at: string;
|
|
13755
|
-
/** Format: uuid */
|
|
13756
|
-
id: string;
|
|
13757
|
-
/** @constant */
|
|
13758
|
-
object: "site.deployment";
|
|
13759
|
-
/**
|
|
13760
|
-
* Format: uri
|
|
13761
|
-
* @description This deployment's own URL.
|
|
13762
|
-
*/
|
|
13763
|
-
preview_url: string;
|
|
13764
|
-
/** Format: uuid */
|
|
13765
|
-
site_id: string;
|
|
13766
|
-
/** @enum {string} */
|
|
13767
|
-
status: "failed" | "ready" | "retired";
|
|
13768
|
-
/** Format: date-time */
|
|
13769
|
-
updated_at: string;
|
|
13770
|
-
}[];
|
|
13771
|
-
};
|
|
14029
|
+
"application/x-tar": string;
|
|
13772
14030
|
};
|
|
13773
14031
|
};
|
|
13774
14032
|
/** @description Invalid JSON or request fields. */
|
|
@@ -13865,13 +14123,18 @@ export interface operations {
|
|
|
13865
14123
|
};
|
|
13866
14124
|
};
|
|
13867
14125
|
};
|
|
13868
|
-
|
|
14126
|
+
listRunTraces: {
|
|
13869
14127
|
parameters: {
|
|
13870
|
-
query?:
|
|
13871
|
-
|
|
13872
|
-
|
|
13873
|
-
|
|
14128
|
+
query?: {
|
|
14129
|
+
limit?: number;
|
|
14130
|
+
/** @description Only runs with a span in this recent period, such as 15m, 3h or 7d; at most 30d. */
|
|
14131
|
+
period?: string;
|
|
14132
|
+
/** @description Only runs of this chat. */
|
|
14133
|
+
session_id?: string;
|
|
14134
|
+
status?: "cancelled" | "completed" | "failed" | "queued" | "retrying" | "running" | "waiting_approval";
|
|
13874
14135
|
};
|
|
14136
|
+
header?: never;
|
|
14137
|
+
path?: never;
|
|
13875
14138
|
cookie?: never;
|
|
13876
14139
|
};
|
|
13877
14140
|
requestBody?: never;
|
|
@@ -13883,12 +14146,32 @@ export interface operations {
|
|
|
13883
14146
|
};
|
|
13884
14147
|
content: {
|
|
13885
14148
|
"application/json": {
|
|
14149
|
+
data: {
|
|
14150
|
+
/** @description From the first span's start to the last span's end. */
|
|
14151
|
+
duration_ms: number;
|
|
14152
|
+
/** @description Spans that failed. */
|
|
14153
|
+
error_count: number;
|
|
14154
|
+
event_count: number;
|
|
14155
|
+
/** Format: date-time */
|
|
14156
|
+
first_span_started_at: string;
|
|
14157
|
+
/** Format: date-time */
|
|
14158
|
+
last_span_started_at: string;
|
|
14159
|
+
/** @constant */
|
|
14160
|
+
object: "run_trace_summary";
|
|
14161
|
+
run_id: string;
|
|
14162
|
+
/** @description The chat the run belongs to. */
|
|
14163
|
+
session_id: string;
|
|
14164
|
+
span_count: number;
|
|
14165
|
+
/** @description Each span name in the run, once, sorted. */
|
|
14166
|
+
span_names: string[];
|
|
14167
|
+
/** @description The run's status: cancelled, completed, failed, queued, retrying, running, waiting_approval. New statuses may be added. */
|
|
14168
|
+
status: string;
|
|
14169
|
+
}[];
|
|
14170
|
+
/** @description More matched than `limit` returned. It reads the newest runs first, so old traces past them can be missed: narrow the period or filter. */
|
|
14171
|
+
has_more: boolean;
|
|
14172
|
+
next_after: null;
|
|
13886
14173
|
/** @constant */
|
|
13887
|
-
|
|
13888
|
-
/** Format: uuid */
|
|
13889
|
-
id: string;
|
|
13890
|
-
/** @constant */
|
|
13891
|
-
object: "site";
|
|
14174
|
+
object: "list";
|
|
13892
14175
|
};
|
|
13893
14176
|
};
|
|
13894
14177
|
};
|
|
@@ -13986,166 +14269,2243 @@ export interface operations {
|
|
|
13986
14269
|
};
|
|
13987
14270
|
};
|
|
13988
14271
|
};
|
|
13989
|
-
|
|
14272
|
+
getRunTrace: {
|
|
13990
14273
|
parameters: {
|
|
13991
|
-
query?:
|
|
13992
|
-
promote?: "true" | "false";
|
|
13993
|
-
provider?: "aws-lambda" | "cloudflare-workers" | "local";
|
|
13994
|
-
};
|
|
14274
|
+
query?: never;
|
|
13995
14275
|
header?: never;
|
|
13996
|
-
path
|
|
14276
|
+
path: {
|
|
14277
|
+
run_id: string;
|
|
14278
|
+
};
|
|
13997
14279
|
cookie?: never;
|
|
13998
14280
|
};
|
|
13999
|
-
requestBody
|
|
14000
|
-
|
|
14001
|
-
|
|
14002
|
-
|
|
14003
|
-
|
|
14004
|
-
|
|
14005
|
-
|
|
14006
|
-
|
|
14007
|
-
|
|
14008
|
-
|
|
14009
|
-
|
|
14010
|
-
|
|
14011
|
-
data?: {
|
|
14012
|
-
[key: string]: {
|
|
14013
|
-
access: {
|
|
14014
|
-
/**
|
|
14015
|
-
* @default private
|
|
14016
|
-
* @enum {string}
|
|
14017
|
-
*/
|
|
14018
|
-
create?: "owner" | "private" | "public" | "visitor";
|
|
14019
|
-
/**
|
|
14020
|
-
* @default private
|
|
14021
|
-
* @enum {string}
|
|
14022
|
-
*/
|
|
14023
|
-
delete?: "owner" | "private" | "public" | "visitor";
|
|
14024
|
-
/**
|
|
14025
|
-
* @default private
|
|
14026
|
-
* @enum {string}
|
|
14027
|
-
*/
|
|
14028
|
-
read?: "owner" | "private" | "public" | "visitor";
|
|
14029
|
-
/**
|
|
14030
|
-
* @default private
|
|
14031
|
-
* @enum {string}
|
|
14032
|
-
*/
|
|
14033
|
-
update?: "owner" | "private" | "public" | "visitor";
|
|
14034
|
-
};
|
|
14035
|
-
/** @constant */
|
|
14036
|
-
owner?: "visitor";
|
|
14037
|
-
schema: unknown;
|
|
14038
|
-
/** @default [] */
|
|
14039
|
-
seed?: unknown[];
|
|
14281
|
+
requestBody?: never;
|
|
14282
|
+
responses: {
|
|
14283
|
+
/** @description Successful response. */
|
|
14284
|
+
200: {
|
|
14285
|
+
headers: {
|
|
14286
|
+
[name: string]: unknown;
|
|
14287
|
+
};
|
|
14288
|
+
content: {
|
|
14289
|
+
"application/json": {
|
|
14290
|
+
events: {
|
|
14291
|
+
attributes: {
|
|
14292
|
+
[key: string]: components["schemas"]["JsonValue"];
|
|
14040
14293
|
};
|
|
14041
|
-
|
|
14042
|
-
|
|
14043
|
-
|
|
14044
|
-
|
|
14045
|
-
|
|
14046
|
-
|
|
14047
|
-
|
|
14294
|
+
id: string;
|
|
14295
|
+
name: string;
|
|
14296
|
+
/** @constant */
|
|
14297
|
+
object: "run_span_event";
|
|
14298
|
+
/** Format: date-time */
|
|
14299
|
+
occurred_at: string;
|
|
14300
|
+
run_id: string;
|
|
14301
|
+
run_span_id: string;
|
|
14302
|
+
}[];
|
|
14303
|
+
/** @description The trace reached its 500-span cap and may hold more; list them with /spans, filtered by name or status. */
|
|
14304
|
+
has_more: boolean;
|
|
14048
14305
|
/** @constant */
|
|
14049
|
-
|
|
14050
|
-
|
|
14051
|
-
|
|
14052
|
-
|
|
14053
|
-
|
|
14054
|
-
|
|
14055
|
-
* @description Give the Function its own DEXTO_API_KEY, which acts as its Cloud project with the permissions a project's deployed code needs.
|
|
14056
|
-
* @constant
|
|
14057
|
-
*/
|
|
14058
|
-
dextoApiKey?: true;
|
|
14059
|
-
environment: {
|
|
14060
|
-
secrets: {
|
|
14061
|
-
description: string;
|
|
14062
|
-
name: string;
|
|
14063
|
-
required: boolean;
|
|
14064
|
-
}[];
|
|
14065
|
-
variables: {
|
|
14066
|
-
name: string;
|
|
14067
|
-
value: string;
|
|
14068
|
-
}[];
|
|
14069
|
-
};
|
|
14070
|
-
healthcheck?: {
|
|
14071
|
-
expectedStatus: number;
|
|
14072
|
-
path: string;
|
|
14073
|
-
};
|
|
14074
|
-
/** @enum {string} */
|
|
14075
|
-
kind?: "http-api" | "mcp-server";
|
|
14076
|
-
modules: {
|
|
14077
|
-
contentBase64: string;
|
|
14078
|
-
/** @constant */
|
|
14079
|
-
mediaType?: "application/javascript+module";
|
|
14080
|
-
path: string;
|
|
14081
|
-
}[];
|
|
14082
|
-
publication: {
|
|
14083
|
-
interfaces: ("mcp" | "openapi")[];
|
|
14084
|
-
operations: string[];
|
|
14085
|
-
} | null;
|
|
14086
|
-
routes: {
|
|
14087
|
-
/** @constant */
|
|
14088
|
-
access: "public";
|
|
14089
|
-
pathPrefix: string;
|
|
14090
|
-
}[];
|
|
14091
|
-
runtime: {
|
|
14092
|
-
entrypoint: string;
|
|
14093
|
-
/** @constant */
|
|
14094
|
-
target: "dexto-fetch-v1";
|
|
14306
|
+
object: "run_trace";
|
|
14307
|
+
run_id: string;
|
|
14308
|
+
/** @description At most 500, by start time. */
|
|
14309
|
+
spans: {
|
|
14310
|
+
attributes: {
|
|
14311
|
+
[key: string]: components["schemas"]["JsonValue"];
|
|
14095
14312
|
};
|
|
14313
|
+
/** @description Milliseconds, with a fraction. */
|
|
14314
|
+
duration_ms: number;
|
|
14315
|
+
ended_at: string | null;
|
|
14316
|
+
error_code: string | null;
|
|
14317
|
+
error_message: string | null;
|
|
14318
|
+
/** @description The span's id; run_span_event.run_span_id names it. */
|
|
14319
|
+
id: string;
|
|
14320
|
+
name: string;
|
|
14096
14321
|
/** @constant */
|
|
14097
|
-
|
|
14098
|
-
|
|
14099
|
-
|
|
14100
|
-
|
|
14322
|
+
object: "run_span";
|
|
14323
|
+
parent_span_id: string | null;
|
|
14324
|
+
run_attempt_id: string | null;
|
|
14325
|
+
run_id: string;
|
|
14326
|
+
session_id: string | null;
|
|
14327
|
+
span_id: string;
|
|
14328
|
+
/** Format: date-time */
|
|
14329
|
+
started_at: string;
|
|
14330
|
+
/** @enum {string} */
|
|
14331
|
+
status: "completed" | "failed";
|
|
14332
|
+
trace_id: string;
|
|
14333
|
+
}[];
|
|
14101
14334
|
};
|
|
14102
|
-
/** @constant */
|
|
14103
|
-
schemaVersion: 1;
|
|
14104
|
-
slug: string;
|
|
14105
|
-
title: string;
|
|
14106
|
-
/**
|
|
14107
|
-
* @default unlisted
|
|
14108
|
-
* @enum {string}
|
|
14109
|
-
*/
|
|
14110
|
-
visibility?: "private" | "unlisted" | "public";
|
|
14111
|
-
assets: {
|
|
14112
|
-
contentBase64: string;
|
|
14113
|
-
mediaType?: string;
|
|
14114
|
-
path: string;
|
|
14115
|
-
}[];
|
|
14116
|
-
/** @default index.html */
|
|
14117
|
-
entrypoint?: string;
|
|
14118
|
-
/** @default true */
|
|
14119
|
-
spaFallback?: boolean;
|
|
14120
14335
|
};
|
|
14121
14336
|
};
|
|
14122
|
-
|
|
14123
|
-
|
|
14124
|
-
/** @description Created. */
|
|
14125
|
-
201: {
|
|
14337
|
+
/** @description Invalid JSON or request fields. */
|
|
14338
|
+
400: {
|
|
14126
14339
|
headers: {
|
|
14127
14340
|
[name: string]: unknown;
|
|
14128
14341
|
};
|
|
14129
14342
|
content: {
|
|
14130
|
-
"application/json":
|
|
14131
|
-
|
|
14132
|
-
|
|
14133
|
-
|
|
14134
|
-
|
|
14135
|
-
|
|
14136
|
-
|
|
14137
|
-
|
|
14138
|
-
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
|
|
14148
|
-
|
|
14343
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14344
|
+
};
|
|
14345
|
+
};
|
|
14346
|
+
/** @description Missing or invalid API key. */
|
|
14347
|
+
401: {
|
|
14348
|
+
headers: {
|
|
14349
|
+
[name: string]: unknown;
|
|
14350
|
+
};
|
|
14351
|
+
content: {
|
|
14352
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14353
|
+
};
|
|
14354
|
+
};
|
|
14355
|
+
/** @description The account has insufficient credits. */
|
|
14356
|
+
402: {
|
|
14357
|
+
headers: {
|
|
14358
|
+
[name: string]: unknown;
|
|
14359
|
+
};
|
|
14360
|
+
content: {
|
|
14361
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14362
|
+
};
|
|
14363
|
+
};
|
|
14364
|
+
/** @description The account cannot perform this operation. */
|
|
14365
|
+
403: {
|
|
14366
|
+
headers: {
|
|
14367
|
+
[name: string]: unknown;
|
|
14368
|
+
};
|
|
14369
|
+
content: {
|
|
14370
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14371
|
+
};
|
|
14372
|
+
};
|
|
14373
|
+
/** @description The requested resource was not found. */
|
|
14374
|
+
404: {
|
|
14375
|
+
headers: {
|
|
14376
|
+
[name: string]: unknown;
|
|
14377
|
+
};
|
|
14378
|
+
content: {
|
|
14379
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14380
|
+
};
|
|
14381
|
+
};
|
|
14382
|
+
/** @description The request conflicts with existing resource state. */
|
|
14383
|
+
409: {
|
|
14384
|
+
headers: {
|
|
14385
|
+
[name: string]: unknown;
|
|
14386
|
+
};
|
|
14387
|
+
content: {
|
|
14388
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14389
|
+
};
|
|
14390
|
+
};
|
|
14391
|
+
/** @description The account exceeded this operation's request rate. */
|
|
14392
|
+
429: {
|
|
14393
|
+
headers: {
|
|
14394
|
+
/** @description Seconds to wait before retrying. */
|
|
14395
|
+
"Retry-After"?: string;
|
|
14396
|
+
[name: string]: unknown;
|
|
14397
|
+
};
|
|
14398
|
+
content: {
|
|
14399
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14400
|
+
};
|
|
14401
|
+
};
|
|
14402
|
+
/** @description Unexpected Dexto failure. */
|
|
14403
|
+
500: {
|
|
14404
|
+
headers: {
|
|
14405
|
+
[name: string]: unknown;
|
|
14406
|
+
};
|
|
14407
|
+
content: {
|
|
14408
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14409
|
+
};
|
|
14410
|
+
};
|
|
14411
|
+
/** @description The upstream model provider failed. */
|
|
14412
|
+
502: {
|
|
14413
|
+
headers: {
|
|
14414
|
+
[name: string]: unknown;
|
|
14415
|
+
};
|
|
14416
|
+
content: {
|
|
14417
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14418
|
+
};
|
|
14419
|
+
};
|
|
14420
|
+
/** @description A required Dexto service is temporarily unavailable. */
|
|
14421
|
+
503: {
|
|
14422
|
+
headers: {
|
|
14423
|
+
[name: string]: unknown;
|
|
14424
|
+
};
|
|
14425
|
+
content: {
|
|
14426
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14427
|
+
};
|
|
14428
|
+
};
|
|
14429
|
+
};
|
|
14430
|
+
};
|
|
14431
|
+
listRunSpans: {
|
|
14432
|
+
parameters: {
|
|
14433
|
+
query?: {
|
|
14434
|
+
limit?: number;
|
|
14435
|
+
/** @description Only spans with exactly this name. */
|
|
14436
|
+
name?: string;
|
|
14437
|
+
/** @description started_at: by start time. duration: longest first. */
|
|
14438
|
+
sort?: "started_at" | "duration";
|
|
14439
|
+
status?: "completed" | "failed";
|
|
14440
|
+
};
|
|
14441
|
+
header?: never;
|
|
14442
|
+
path: {
|
|
14443
|
+
run_id: string;
|
|
14444
|
+
};
|
|
14445
|
+
cookie?: never;
|
|
14446
|
+
};
|
|
14447
|
+
requestBody?: never;
|
|
14448
|
+
responses: {
|
|
14449
|
+
/** @description Successful response. */
|
|
14450
|
+
200: {
|
|
14451
|
+
headers: {
|
|
14452
|
+
[name: string]: unknown;
|
|
14453
|
+
};
|
|
14454
|
+
content: {
|
|
14455
|
+
"application/json": {
|
|
14456
|
+
data: {
|
|
14457
|
+
attributes: {
|
|
14458
|
+
[key: string]: components["schemas"]["JsonValue"];
|
|
14459
|
+
};
|
|
14460
|
+
/** @description Milliseconds, with a fraction. */
|
|
14461
|
+
duration_ms: number;
|
|
14462
|
+
ended_at: string | null;
|
|
14463
|
+
error_code: string | null;
|
|
14464
|
+
error_message: string | null;
|
|
14465
|
+
/** @description The span's id; run_span_event.run_span_id names it. */
|
|
14466
|
+
id: string;
|
|
14467
|
+
name: string;
|
|
14468
|
+
/** @constant */
|
|
14469
|
+
object: "run_span";
|
|
14470
|
+
parent_span_id: string | null;
|
|
14471
|
+
run_attempt_id: string | null;
|
|
14472
|
+
run_id: string;
|
|
14473
|
+
session_id: string | null;
|
|
14474
|
+
span_id: string;
|
|
14475
|
+
/** Format: date-time */
|
|
14476
|
+
started_at: string;
|
|
14477
|
+
/** @enum {string} */
|
|
14478
|
+
status: "completed" | "failed";
|
|
14479
|
+
trace_id: string;
|
|
14480
|
+
}[];
|
|
14481
|
+
/** @description More matched than `limit` returned. It reads the newest runs first, so old traces past them can be missed: narrow the period or filter. */
|
|
14482
|
+
has_more: boolean;
|
|
14483
|
+
next_after: null;
|
|
14484
|
+
/** @constant */
|
|
14485
|
+
object: "list";
|
|
14486
|
+
};
|
|
14487
|
+
};
|
|
14488
|
+
};
|
|
14489
|
+
/** @description Invalid JSON or request fields. */
|
|
14490
|
+
400: {
|
|
14491
|
+
headers: {
|
|
14492
|
+
[name: string]: unknown;
|
|
14493
|
+
};
|
|
14494
|
+
content: {
|
|
14495
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14496
|
+
};
|
|
14497
|
+
};
|
|
14498
|
+
/** @description Missing or invalid API key. */
|
|
14499
|
+
401: {
|
|
14500
|
+
headers: {
|
|
14501
|
+
[name: string]: unknown;
|
|
14502
|
+
};
|
|
14503
|
+
content: {
|
|
14504
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14505
|
+
};
|
|
14506
|
+
};
|
|
14507
|
+
/** @description The account has insufficient credits. */
|
|
14508
|
+
402: {
|
|
14509
|
+
headers: {
|
|
14510
|
+
[name: string]: unknown;
|
|
14511
|
+
};
|
|
14512
|
+
content: {
|
|
14513
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14514
|
+
};
|
|
14515
|
+
};
|
|
14516
|
+
/** @description The account cannot perform this operation. */
|
|
14517
|
+
403: {
|
|
14518
|
+
headers: {
|
|
14519
|
+
[name: string]: unknown;
|
|
14520
|
+
};
|
|
14521
|
+
content: {
|
|
14522
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14523
|
+
};
|
|
14524
|
+
};
|
|
14525
|
+
/** @description The requested resource was not found. */
|
|
14526
|
+
404: {
|
|
14527
|
+
headers: {
|
|
14528
|
+
[name: string]: unknown;
|
|
14529
|
+
};
|
|
14530
|
+
content: {
|
|
14531
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14532
|
+
};
|
|
14533
|
+
};
|
|
14534
|
+
/** @description The request conflicts with existing resource state. */
|
|
14535
|
+
409: {
|
|
14536
|
+
headers: {
|
|
14537
|
+
[name: string]: unknown;
|
|
14538
|
+
};
|
|
14539
|
+
content: {
|
|
14540
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14541
|
+
};
|
|
14542
|
+
};
|
|
14543
|
+
/** @description The account exceeded this operation's request rate. */
|
|
14544
|
+
429: {
|
|
14545
|
+
headers: {
|
|
14546
|
+
/** @description Seconds to wait before retrying. */
|
|
14547
|
+
"Retry-After"?: string;
|
|
14548
|
+
[name: string]: unknown;
|
|
14549
|
+
};
|
|
14550
|
+
content: {
|
|
14551
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14552
|
+
};
|
|
14553
|
+
};
|
|
14554
|
+
/** @description Unexpected Dexto failure. */
|
|
14555
|
+
500: {
|
|
14556
|
+
headers: {
|
|
14557
|
+
[name: string]: unknown;
|
|
14558
|
+
};
|
|
14559
|
+
content: {
|
|
14560
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14561
|
+
};
|
|
14562
|
+
};
|
|
14563
|
+
/** @description The upstream model provider failed. */
|
|
14564
|
+
502: {
|
|
14565
|
+
headers: {
|
|
14566
|
+
[name: string]: unknown;
|
|
14567
|
+
};
|
|
14568
|
+
content: {
|
|
14569
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14570
|
+
};
|
|
14571
|
+
};
|
|
14572
|
+
/** @description A required Dexto service is temporarily unavailable. */
|
|
14573
|
+
503: {
|
|
14574
|
+
headers: {
|
|
14575
|
+
[name: string]: unknown;
|
|
14576
|
+
};
|
|
14577
|
+
content: {
|
|
14578
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14579
|
+
};
|
|
14580
|
+
};
|
|
14581
|
+
};
|
|
14582
|
+
};
|
|
14583
|
+
syncChat: {
|
|
14584
|
+
parameters: {
|
|
14585
|
+
query?: never;
|
|
14586
|
+
header?: never;
|
|
14587
|
+
path?: never;
|
|
14588
|
+
cookie?: never;
|
|
14589
|
+
};
|
|
14590
|
+
requestBody: {
|
|
14591
|
+
content: {
|
|
14592
|
+
"application/json": {
|
|
14593
|
+
cli_version?: string;
|
|
14594
|
+
cwd?: string;
|
|
14595
|
+
/** @description The index of the first message sent; messages are numbered from 0. */
|
|
14596
|
+
from_index: number;
|
|
14597
|
+
git_branch?: string;
|
|
14598
|
+
/** @description The chat's id on the machine; with the machine's id it names one synced chat. */
|
|
14599
|
+
local_chat_id: string;
|
|
14600
|
+
machine: {
|
|
14601
|
+
/**
|
|
14602
|
+
* Format: uuid
|
|
14603
|
+
* @description A random id the CLI keeps for this machine.
|
|
14604
|
+
*/
|
|
14605
|
+
id: string;
|
|
14606
|
+
name: string;
|
|
14607
|
+
};
|
|
14608
|
+
/** @description At most 200 consecutive messages from from_index. Only user and assistant messages: no system prompt, injected context or reasoning. */
|
|
14609
|
+
messages: {
|
|
14610
|
+
/** Format: date-time */
|
|
14611
|
+
created_at: string;
|
|
14612
|
+
index: number;
|
|
14613
|
+
parts: ({
|
|
14614
|
+
text: string;
|
|
14615
|
+
/** @constant */
|
|
14616
|
+
type: "text";
|
|
14617
|
+
} | {
|
|
14618
|
+
/** @description The call's input, cut to 4,000 characters. */
|
|
14619
|
+
input: string;
|
|
14620
|
+
name: string;
|
|
14621
|
+
/** @description The call's output, cut to 4,000 characters; null when it has none. */
|
|
14622
|
+
output: string | null;
|
|
14623
|
+
/** @description The file the call read or wrote, when it names one. Dexto Cloud replaces the input and output of a call on a secret-shaped file, such as .env or ~/.ssh/*, with one exclusion marker, and the output of a command that names one. */
|
|
14624
|
+
path: string | null;
|
|
14625
|
+
/** @constant */
|
|
14626
|
+
type: "tool";
|
|
14627
|
+
} | {
|
|
14628
|
+
mime_type: string;
|
|
14629
|
+
name: string;
|
|
14630
|
+
size_bytes: number;
|
|
14631
|
+
/** @constant */
|
|
14632
|
+
type: "attachment";
|
|
14633
|
+
})[];
|
|
14634
|
+
/** @enum {string} */
|
|
14635
|
+
role: "assistant" | "user";
|
|
14636
|
+
}[];
|
|
14637
|
+
title: string;
|
|
14638
|
+
};
|
|
14639
|
+
};
|
|
14640
|
+
};
|
|
14641
|
+
responses: {
|
|
14642
|
+
/** @description Successful response. */
|
|
14643
|
+
200: {
|
|
14644
|
+
headers: {
|
|
14645
|
+
[name: string]: unknown;
|
|
14646
|
+
};
|
|
14647
|
+
content: {
|
|
14648
|
+
"application/json": {
|
|
14649
|
+
/**
|
|
14650
|
+
* Format: uuid
|
|
14651
|
+
* @description The chat's id in Dexto Cloud.
|
|
14652
|
+
*/
|
|
14653
|
+
id: string;
|
|
14654
|
+
/** @description The index the next batch starts at: the number of messages the chat holds. */
|
|
14655
|
+
next_index: number;
|
|
14656
|
+
/** @constant */
|
|
14657
|
+
object: "synced_chat";
|
|
14658
|
+
/** @description How many secrets of each kind the chat's stored text has replaced, counted from its markers. */
|
|
14659
|
+
redactions: {
|
|
14660
|
+
[key: string]: number;
|
|
14661
|
+
};
|
|
14662
|
+
/**
|
|
14663
|
+
* @description unchanged: every message sent was already in the chat, as sent.
|
|
14664
|
+
* @enum {string}
|
|
14665
|
+
*/
|
|
14666
|
+
status: "appended" | "created" | "unchanged";
|
|
14667
|
+
/**
|
|
14668
|
+
* Format: uri
|
|
14669
|
+
* @description The chat in the Dexto dashboard.
|
|
14670
|
+
*/
|
|
14671
|
+
url: string;
|
|
14672
|
+
};
|
|
14673
|
+
};
|
|
14674
|
+
};
|
|
14675
|
+
/** @description Invalid JSON or request fields. */
|
|
14676
|
+
400: {
|
|
14677
|
+
headers: {
|
|
14678
|
+
[name: string]: unknown;
|
|
14679
|
+
};
|
|
14680
|
+
content: {
|
|
14681
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14682
|
+
};
|
|
14683
|
+
};
|
|
14684
|
+
/** @description Missing or invalid API key. */
|
|
14685
|
+
401: {
|
|
14686
|
+
headers: {
|
|
14687
|
+
[name: string]: unknown;
|
|
14688
|
+
};
|
|
14689
|
+
content: {
|
|
14690
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14691
|
+
};
|
|
14692
|
+
};
|
|
14693
|
+
/** @description The account has insufficient credits. */
|
|
14694
|
+
402: {
|
|
14695
|
+
headers: {
|
|
14696
|
+
[name: string]: unknown;
|
|
14697
|
+
};
|
|
14698
|
+
content: {
|
|
14699
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14700
|
+
};
|
|
14701
|
+
};
|
|
14702
|
+
/** @description The account cannot perform this operation. */
|
|
14703
|
+
403: {
|
|
14704
|
+
headers: {
|
|
14705
|
+
[name: string]: unknown;
|
|
14706
|
+
};
|
|
14707
|
+
content: {
|
|
14708
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14709
|
+
};
|
|
14710
|
+
};
|
|
14711
|
+
/** @description The requested resource was not found. */
|
|
14712
|
+
404: {
|
|
14713
|
+
headers: {
|
|
14714
|
+
[name: string]: unknown;
|
|
14715
|
+
};
|
|
14716
|
+
content: {
|
|
14717
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14718
|
+
};
|
|
14719
|
+
};
|
|
14720
|
+
/** @description The request conflicts with existing resource state. */
|
|
14721
|
+
409: {
|
|
14722
|
+
headers: {
|
|
14723
|
+
[name: string]: unknown;
|
|
14724
|
+
};
|
|
14725
|
+
content: {
|
|
14726
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14727
|
+
};
|
|
14728
|
+
};
|
|
14729
|
+
/** @description The account exceeded this operation's request rate. */
|
|
14730
|
+
429: {
|
|
14731
|
+
headers: {
|
|
14732
|
+
/** @description Seconds to wait before retrying. */
|
|
14733
|
+
"Retry-After"?: string;
|
|
14734
|
+
[name: string]: unknown;
|
|
14735
|
+
};
|
|
14736
|
+
content: {
|
|
14737
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14738
|
+
};
|
|
14739
|
+
};
|
|
14740
|
+
/** @description Unexpected Dexto failure. */
|
|
14741
|
+
500: {
|
|
14742
|
+
headers: {
|
|
14743
|
+
[name: string]: unknown;
|
|
14744
|
+
};
|
|
14745
|
+
content: {
|
|
14746
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14747
|
+
};
|
|
14748
|
+
};
|
|
14749
|
+
/** @description The upstream model provider failed. */
|
|
14750
|
+
502: {
|
|
14751
|
+
headers: {
|
|
14752
|
+
[name: string]: unknown;
|
|
14753
|
+
};
|
|
14754
|
+
content: {
|
|
14755
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14756
|
+
};
|
|
14757
|
+
};
|
|
14758
|
+
/** @description A required Dexto service is temporarily unavailable. */
|
|
14759
|
+
503: {
|
|
14760
|
+
headers: {
|
|
14761
|
+
[name: string]: unknown;
|
|
14762
|
+
};
|
|
14763
|
+
content: {
|
|
14764
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14765
|
+
};
|
|
14766
|
+
};
|
|
14767
|
+
};
|
|
14768
|
+
};
|
|
14769
|
+
deleteSyncedChat: {
|
|
14770
|
+
parameters: {
|
|
14771
|
+
query?: never;
|
|
14772
|
+
header?: never;
|
|
14773
|
+
path: {
|
|
14774
|
+
chat_id: string;
|
|
14775
|
+
};
|
|
14776
|
+
cookie?: never;
|
|
14777
|
+
};
|
|
14778
|
+
requestBody?: never;
|
|
14779
|
+
responses: {
|
|
14780
|
+
/** @description Successful response. */
|
|
14781
|
+
200: {
|
|
14782
|
+
headers: {
|
|
14783
|
+
[name: string]: unknown;
|
|
14784
|
+
};
|
|
14785
|
+
content: {
|
|
14786
|
+
"application/json": {
|
|
14787
|
+
/** @constant */
|
|
14788
|
+
deleted: true;
|
|
14789
|
+
/** Format: uuid */
|
|
14790
|
+
id: string;
|
|
14791
|
+
/** @constant */
|
|
14792
|
+
object: "synced_chat";
|
|
14793
|
+
};
|
|
14794
|
+
};
|
|
14795
|
+
};
|
|
14796
|
+
/** @description Invalid JSON or request fields. */
|
|
14797
|
+
400: {
|
|
14798
|
+
headers: {
|
|
14799
|
+
[name: string]: unknown;
|
|
14800
|
+
};
|
|
14801
|
+
content: {
|
|
14802
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14803
|
+
};
|
|
14804
|
+
};
|
|
14805
|
+
/** @description Missing or invalid API key. */
|
|
14806
|
+
401: {
|
|
14807
|
+
headers: {
|
|
14808
|
+
[name: string]: unknown;
|
|
14809
|
+
};
|
|
14810
|
+
content: {
|
|
14811
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14812
|
+
};
|
|
14813
|
+
};
|
|
14814
|
+
/** @description The account has insufficient credits. */
|
|
14815
|
+
402: {
|
|
14816
|
+
headers: {
|
|
14817
|
+
[name: string]: unknown;
|
|
14818
|
+
};
|
|
14819
|
+
content: {
|
|
14820
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14821
|
+
};
|
|
14822
|
+
};
|
|
14823
|
+
/** @description The account cannot perform this operation. */
|
|
14824
|
+
403: {
|
|
14825
|
+
headers: {
|
|
14826
|
+
[name: string]: unknown;
|
|
14827
|
+
};
|
|
14828
|
+
content: {
|
|
14829
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14830
|
+
};
|
|
14831
|
+
};
|
|
14832
|
+
/** @description The requested resource was not found. */
|
|
14833
|
+
404: {
|
|
14834
|
+
headers: {
|
|
14835
|
+
[name: string]: unknown;
|
|
14836
|
+
};
|
|
14837
|
+
content: {
|
|
14838
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14839
|
+
};
|
|
14840
|
+
};
|
|
14841
|
+
/** @description The request conflicts with existing resource state. */
|
|
14842
|
+
409: {
|
|
14843
|
+
headers: {
|
|
14844
|
+
[name: string]: unknown;
|
|
14845
|
+
};
|
|
14846
|
+
content: {
|
|
14847
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14848
|
+
};
|
|
14849
|
+
};
|
|
14850
|
+
/** @description The account exceeded this operation's request rate. */
|
|
14851
|
+
429: {
|
|
14852
|
+
headers: {
|
|
14853
|
+
/** @description Seconds to wait before retrying. */
|
|
14854
|
+
"Retry-After"?: string;
|
|
14855
|
+
[name: string]: unknown;
|
|
14856
|
+
};
|
|
14857
|
+
content: {
|
|
14858
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14859
|
+
};
|
|
14860
|
+
};
|
|
14861
|
+
/** @description Unexpected Dexto failure. */
|
|
14862
|
+
500: {
|
|
14863
|
+
headers: {
|
|
14864
|
+
[name: string]: unknown;
|
|
14865
|
+
};
|
|
14866
|
+
content: {
|
|
14867
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14868
|
+
};
|
|
14869
|
+
};
|
|
14870
|
+
/** @description The upstream model provider failed. */
|
|
14871
|
+
502: {
|
|
14872
|
+
headers: {
|
|
14873
|
+
[name: string]: unknown;
|
|
14874
|
+
};
|
|
14875
|
+
content: {
|
|
14876
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14877
|
+
};
|
|
14878
|
+
};
|
|
14879
|
+
/** @description A required Dexto service is temporarily unavailable. */
|
|
14880
|
+
503: {
|
|
14881
|
+
headers: {
|
|
14882
|
+
[name: string]: unknown;
|
|
14883
|
+
};
|
|
14884
|
+
content: {
|
|
14885
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
14886
|
+
};
|
|
14887
|
+
};
|
|
14888
|
+
};
|
|
14889
|
+
};
|
|
14890
|
+
startSyncedChatMove: {
|
|
14891
|
+
parameters: {
|
|
14892
|
+
query?: never;
|
|
14893
|
+
header?: never;
|
|
14894
|
+
path: {
|
|
14895
|
+
chat_id: string;
|
|
14896
|
+
};
|
|
14897
|
+
cookie?: never;
|
|
14898
|
+
};
|
|
14899
|
+
requestBody: {
|
|
14900
|
+
content: {
|
|
14901
|
+
"application/json": {
|
|
14902
|
+
/** @constant */
|
|
14903
|
+
to: "cloud";
|
|
14904
|
+
working_tree: {
|
|
14905
|
+
branch: string;
|
|
14906
|
+
/** @description `git bundle create - HEAD <branch>`, at most 256 MiB. */
|
|
14907
|
+
bundle: {
|
|
14908
|
+
/** @description The object's SHA-256, lowercase hex. */
|
|
14909
|
+
sha256: string;
|
|
14910
|
+
size_bytes: number;
|
|
14911
|
+
};
|
|
14912
|
+
head_commit: string;
|
|
14913
|
+
/** @description `git diff --binary HEAD` with untracked, non-ignored files marked intent-to-add, at most 32 MiB; null for a clean tree. */
|
|
14914
|
+
patch: {
|
|
14915
|
+
/** @description The object's SHA-256, lowercase hex. */
|
|
14916
|
+
sha256: string;
|
|
14917
|
+
size_bytes: number;
|
|
14918
|
+
} | null;
|
|
14919
|
+
};
|
|
14920
|
+
} | {
|
|
14921
|
+
/** @constant */
|
|
14922
|
+
to: "local";
|
|
14923
|
+
};
|
|
14924
|
+
};
|
|
14925
|
+
};
|
|
14926
|
+
responses: {
|
|
14927
|
+
/** @description Created. */
|
|
14928
|
+
201: {
|
|
14929
|
+
headers: {
|
|
14930
|
+
[name: string]: unknown;
|
|
14931
|
+
};
|
|
14932
|
+
content: {
|
|
14933
|
+
"application/json": {
|
|
14934
|
+
/** Format: uuid */
|
|
14935
|
+
chat_id: string;
|
|
14936
|
+
/** Format: date-time */
|
|
14937
|
+
created_at: string;
|
|
14938
|
+
/**
|
|
14939
|
+
* Format: date-time
|
|
14940
|
+
* @description An open move is expired at this time.
|
|
14941
|
+
*/
|
|
14942
|
+
expires_at: string;
|
|
14943
|
+
failure: ("computer_unavailable" | "export_failed" | "import_failed" | "secret_path" | "upload_mismatch") | null;
|
|
14944
|
+
/** Format: uuid */
|
|
14945
|
+
id: string;
|
|
14946
|
+
/** @constant */
|
|
14947
|
+
object: "synced_chat_move";
|
|
14948
|
+
/** @enum {string} */
|
|
14949
|
+
status: "awaiting_upload" | "importing" | "exporting" | "ready" | "completed" | "failed" | "canceled" | "expired";
|
|
14950
|
+
/** @enum {string} */
|
|
14951
|
+
to: "cloud" | "local";
|
|
14952
|
+
/** @description While a move to local is ready: fetch the bundle's HEAD into the branch, apply the patch, read the transcript, then call complete. Otherwise null. */
|
|
14953
|
+
export: {
|
|
14954
|
+
/** @description The branch the cloud repository is on. */
|
|
14955
|
+
branch: string;
|
|
14956
|
+
/** @description A fresh GET URL per object the export uploaded, valid for 15 minutes. No bundle when the cloud made no commit the CLI lacks; no patch when the tree is clean. */
|
|
14957
|
+
downloads: {
|
|
14958
|
+
/** Format: date-time */
|
|
14959
|
+
expires_at: string;
|
|
14960
|
+
/** @constant */
|
|
14961
|
+
method: "GET";
|
|
14962
|
+
/** @enum {string} */
|
|
14963
|
+
object: "bundle" | "patch";
|
|
14964
|
+
/** @description The object's SHA-256, lowercase hex: check it after the download. */
|
|
14965
|
+
sha256: string;
|
|
14966
|
+
size_bytes: number;
|
|
14967
|
+
/** Format: uri */
|
|
14968
|
+
url: string;
|
|
14969
|
+
}[];
|
|
14970
|
+
/** @description The cloud repository's head commit. */
|
|
14971
|
+
head_commit: string;
|
|
14972
|
+
/** @description The index of the chat's first message the CLI lacks: read the messages from here. */
|
|
14973
|
+
transcript_from_index: number;
|
|
14974
|
+
} | null;
|
|
14975
|
+
/** @description While awaiting_upload, a fresh PUT URL per declared object, valid for 15 minutes; otherwise empty. */
|
|
14976
|
+
uploads: {
|
|
14977
|
+
/** Format: date-time */
|
|
14978
|
+
expires_at: string;
|
|
14979
|
+
/** @description Send exactly these headers with the PUT; the URL signs them. */
|
|
14980
|
+
headers: {
|
|
14981
|
+
[key: string]: string;
|
|
14982
|
+
};
|
|
14983
|
+
/** @constant */
|
|
14984
|
+
method: "PUT";
|
|
14985
|
+
/** @enum {string} */
|
|
14986
|
+
object: "bundle" | "patch";
|
|
14987
|
+
/** Format: uri */
|
|
14988
|
+
url: string;
|
|
14989
|
+
}[];
|
|
14990
|
+
};
|
|
14991
|
+
};
|
|
14992
|
+
};
|
|
14993
|
+
/** @description Invalid JSON or request fields. */
|
|
14994
|
+
400: {
|
|
14995
|
+
headers: {
|
|
14996
|
+
[name: string]: unknown;
|
|
14997
|
+
};
|
|
14998
|
+
content: {
|
|
14999
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15000
|
+
};
|
|
15001
|
+
};
|
|
15002
|
+
/** @description Missing or invalid API key. */
|
|
15003
|
+
401: {
|
|
15004
|
+
headers: {
|
|
15005
|
+
[name: string]: unknown;
|
|
15006
|
+
};
|
|
15007
|
+
content: {
|
|
15008
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15009
|
+
};
|
|
15010
|
+
};
|
|
15011
|
+
/** @description The account has insufficient credits. */
|
|
15012
|
+
402: {
|
|
15013
|
+
headers: {
|
|
15014
|
+
[name: string]: unknown;
|
|
15015
|
+
};
|
|
15016
|
+
content: {
|
|
15017
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15018
|
+
};
|
|
15019
|
+
};
|
|
15020
|
+
/** @description The account cannot perform this operation. */
|
|
15021
|
+
403: {
|
|
15022
|
+
headers: {
|
|
15023
|
+
[name: string]: unknown;
|
|
15024
|
+
};
|
|
15025
|
+
content: {
|
|
15026
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15027
|
+
};
|
|
15028
|
+
};
|
|
15029
|
+
/** @description The requested resource was not found. */
|
|
15030
|
+
404: {
|
|
15031
|
+
headers: {
|
|
15032
|
+
[name: string]: unknown;
|
|
15033
|
+
};
|
|
15034
|
+
content: {
|
|
15035
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15036
|
+
};
|
|
15037
|
+
};
|
|
15038
|
+
/** @description The request conflicts with existing resource state. */
|
|
15039
|
+
409: {
|
|
15040
|
+
headers: {
|
|
15041
|
+
[name: string]: unknown;
|
|
15042
|
+
};
|
|
15043
|
+
content: {
|
|
15044
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15045
|
+
};
|
|
15046
|
+
};
|
|
15047
|
+
/** @description The account exceeded this operation's request rate. */
|
|
15048
|
+
429: {
|
|
15049
|
+
headers: {
|
|
15050
|
+
/** @description Seconds to wait before retrying. */
|
|
15051
|
+
"Retry-After"?: string;
|
|
15052
|
+
[name: string]: unknown;
|
|
15053
|
+
};
|
|
15054
|
+
content: {
|
|
15055
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15056
|
+
};
|
|
15057
|
+
};
|
|
15058
|
+
/** @description Unexpected Dexto failure. */
|
|
15059
|
+
500: {
|
|
15060
|
+
headers: {
|
|
15061
|
+
[name: string]: unknown;
|
|
15062
|
+
};
|
|
15063
|
+
content: {
|
|
15064
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15065
|
+
};
|
|
15066
|
+
};
|
|
15067
|
+
/** @description The upstream model provider failed. */
|
|
15068
|
+
502: {
|
|
15069
|
+
headers: {
|
|
15070
|
+
[name: string]: unknown;
|
|
15071
|
+
};
|
|
15072
|
+
content: {
|
|
15073
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15074
|
+
};
|
|
15075
|
+
};
|
|
15076
|
+
/** @description A required Dexto service is temporarily unavailable. */
|
|
15077
|
+
503: {
|
|
15078
|
+
headers: {
|
|
15079
|
+
[name: string]: unknown;
|
|
15080
|
+
};
|
|
15081
|
+
content: {
|
|
15082
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15083
|
+
};
|
|
15084
|
+
};
|
|
15085
|
+
};
|
|
15086
|
+
};
|
|
15087
|
+
getSyncedChatMove: {
|
|
15088
|
+
parameters: {
|
|
15089
|
+
query?: never;
|
|
15090
|
+
header?: never;
|
|
15091
|
+
path: {
|
|
15092
|
+
chat_id: string;
|
|
15093
|
+
move_id: string;
|
|
15094
|
+
};
|
|
15095
|
+
cookie?: never;
|
|
15096
|
+
};
|
|
15097
|
+
requestBody?: never;
|
|
15098
|
+
responses: {
|
|
15099
|
+
/** @description Successful response. */
|
|
15100
|
+
200: {
|
|
15101
|
+
headers: {
|
|
15102
|
+
[name: string]: unknown;
|
|
15103
|
+
};
|
|
15104
|
+
content: {
|
|
15105
|
+
"application/json": {
|
|
15106
|
+
/** Format: uuid */
|
|
15107
|
+
chat_id: string;
|
|
15108
|
+
/** Format: date-time */
|
|
15109
|
+
created_at: string;
|
|
15110
|
+
/**
|
|
15111
|
+
* Format: date-time
|
|
15112
|
+
* @description An open move is expired at this time.
|
|
15113
|
+
*/
|
|
15114
|
+
expires_at: string;
|
|
15115
|
+
failure: ("computer_unavailable" | "export_failed" | "import_failed" | "secret_path" | "upload_mismatch") | null;
|
|
15116
|
+
/** Format: uuid */
|
|
15117
|
+
id: string;
|
|
15118
|
+
/** @constant */
|
|
15119
|
+
object: "synced_chat_move";
|
|
15120
|
+
/** @enum {string} */
|
|
15121
|
+
status: "awaiting_upload" | "importing" | "exporting" | "ready" | "completed" | "failed" | "canceled" | "expired";
|
|
15122
|
+
/** @enum {string} */
|
|
15123
|
+
to: "cloud" | "local";
|
|
15124
|
+
/** @description While a move to local is ready: fetch the bundle's HEAD into the branch, apply the patch, read the transcript, then call complete. Otherwise null. */
|
|
15125
|
+
export: {
|
|
15126
|
+
/** @description The branch the cloud repository is on. */
|
|
15127
|
+
branch: string;
|
|
15128
|
+
/** @description A fresh GET URL per object the export uploaded, valid for 15 minutes. No bundle when the cloud made no commit the CLI lacks; no patch when the tree is clean. */
|
|
15129
|
+
downloads: {
|
|
15130
|
+
/** Format: date-time */
|
|
15131
|
+
expires_at: string;
|
|
15132
|
+
/** @constant */
|
|
15133
|
+
method: "GET";
|
|
15134
|
+
/** @enum {string} */
|
|
15135
|
+
object: "bundle" | "patch";
|
|
15136
|
+
/** @description The object's SHA-256, lowercase hex: check it after the download. */
|
|
15137
|
+
sha256: string;
|
|
15138
|
+
size_bytes: number;
|
|
15139
|
+
/** Format: uri */
|
|
15140
|
+
url: string;
|
|
15141
|
+
}[];
|
|
15142
|
+
/** @description The cloud repository's head commit. */
|
|
15143
|
+
head_commit: string;
|
|
15144
|
+
/** @description The index of the chat's first message the CLI lacks: read the messages from here. */
|
|
15145
|
+
transcript_from_index: number;
|
|
15146
|
+
} | null;
|
|
15147
|
+
/** @description While awaiting_upload, a fresh PUT URL per declared object, valid for 15 minutes; otherwise empty. */
|
|
15148
|
+
uploads: {
|
|
15149
|
+
/** Format: date-time */
|
|
15150
|
+
expires_at: string;
|
|
15151
|
+
/** @description Send exactly these headers with the PUT; the URL signs them. */
|
|
15152
|
+
headers: {
|
|
15153
|
+
[key: string]: string;
|
|
15154
|
+
};
|
|
15155
|
+
/** @constant */
|
|
15156
|
+
method: "PUT";
|
|
15157
|
+
/** @enum {string} */
|
|
15158
|
+
object: "bundle" | "patch";
|
|
15159
|
+
/** Format: uri */
|
|
15160
|
+
url: string;
|
|
15161
|
+
}[];
|
|
15162
|
+
};
|
|
15163
|
+
};
|
|
15164
|
+
};
|
|
15165
|
+
/** @description Invalid JSON or request fields. */
|
|
15166
|
+
400: {
|
|
15167
|
+
headers: {
|
|
15168
|
+
[name: string]: unknown;
|
|
15169
|
+
};
|
|
15170
|
+
content: {
|
|
15171
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15172
|
+
};
|
|
15173
|
+
};
|
|
15174
|
+
/** @description Missing or invalid API key. */
|
|
15175
|
+
401: {
|
|
15176
|
+
headers: {
|
|
15177
|
+
[name: string]: unknown;
|
|
15178
|
+
};
|
|
15179
|
+
content: {
|
|
15180
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15181
|
+
};
|
|
15182
|
+
};
|
|
15183
|
+
/** @description The account has insufficient credits. */
|
|
15184
|
+
402: {
|
|
15185
|
+
headers: {
|
|
15186
|
+
[name: string]: unknown;
|
|
15187
|
+
};
|
|
15188
|
+
content: {
|
|
15189
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15190
|
+
};
|
|
15191
|
+
};
|
|
15192
|
+
/** @description The account cannot perform this operation. */
|
|
15193
|
+
403: {
|
|
15194
|
+
headers: {
|
|
15195
|
+
[name: string]: unknown;
|
|
15196
|
+
};
|
|
15197
|
+
content: {
|
|
15198
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15199
|
+
};
|
|
15200
|
+
};
|
|
15201
|
+
/** @description The requested resource was not found. */
|
|
15202
|
+
404: {
|
|
15203
|
+
headers: {
|
|
15204
|
+
[name: string]: unknown;
|
|
15205
|
+
};
|
|
15206
|
+
content: {
|
|
15207
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15208
|
+
};
|
|
15209
|
+
};
|
|
15210
|
+
/** @description The request conflicts with existing resource state. */
|
|
15211
|
+
409: {
|
|
15212
|
+
headers: {
|
|
15213
|
+
[name: string]: unknown;
|
|
15214
|
+
};
|
|
15215
|
+
content: {
|
|
15216
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15217
|
+
};
|
|
15218
|
+
};
|
|
15219
|
+
/** @description The account exceeded this operation's request rate. */
|
|
15220
|
+
429: {
|
|
15221
|
+
headers: {
|
|
15222
|
+
/** @description Seconds to wait before retrying. */
|
|
15223
|
+
"Retry-After"?: string;
|
|
15224
|
+
[name: string]: unknown;
|
|
15225
|
+
};
|
|
15226
|
+
content: {
|
|
15227
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15228
|
+
};
|
|
15229
|
+
};
|
|
15230
|
+
/** @description Unexpected Dexto failure. */
|
|
15231
|
+
500: {
|
|
15232
|
+
headers: {
|
|
15233
|
+
[name: string]: unknown;
|
|
15234
|
+
};
|
|
15235
|
+
content: {
|
|
15236
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15237
|
+
};
|
|
15238
|
+
};
|
|
15239
|
+
/** @description The upstream model provider failed. */
|
|
15240
|
+
502: {
|
|
15241
|
+
headers: {
|
|
15242
|
+
[name: string]: unknown;
|
|
15243
|
+
};
|
|
15244
|
+
content: {
|
|
15245
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15246
|
+
};
|
|
15247
|
+
};
|
|
15248
|
+
/** @description A required Dexto service is temporarily unavailable. */
|
|
15249
|
+
503: {
|
|
15250
|
+
headers: {
|
|
15251
|
+
[name: string]: unknown;
|
|
15252
|
+
};
|
|
15253
|
+
content: {
|
|
15254
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15255
|
+
};
|
|
15256
|
+
};
|
|
15257
|
+
};
|
|
15258
|
+
};
|
|
15259
|
+
confirmSyncedChatMoveUpload: {
|
|
15260
|
+
parameters: {
|
|
15261
|
+
query?: never;
|
|
15262
|
+
header?: never;
|
|
15263
|
+
path: {
|
|
15264
|
+
chat_id: string;
|
|
15265
|
+
move_id: string;
|
|
15266
|
+
};
|
|
15267
|
+
cookie?: never;
|
|
15268
|
+
};
|
|
15269
|
+
requestBody?: never;
|
|
15270
|
+
responses: {
|
|
15271
|
+
/** @description Successful response. */
|
|
15272
|
+
200: {
|
|
15273
|
+
headers: {
|
|
15274
|
+
[name: string]: unknown;
|
|
15275
|
+
};
|
|
15276
|
+
content: {
|
|
15277
|
+
"application/json": {
|
|
15278
|
+
/** Format: uuid */
|
|
15279
|
+
chat_id: string;
|
|
15280
|
+
/** Format: date-time */
|
|
15281
|
+
created_at: string;
|
|
15282
|
+
/**
|
|
15283
|
+
* Format: date-time
|
|
15284
|
+
* @description An open move is expired at this time.
|
|
15285
|
+
*/
|
|
15286
|
+
expires_at: string;
|
|
15287
|
+
failure: ("computer_unavailable" | "export_failed" | "import_failed" | "secret_path" | "upload_mismatch") | null;
|
|
15288
|
+
/** Format: uuid */
|
|
15289
|
+
id: string;
|
|
15290
|
+
/** @constant */
|
|
15291
|
+
object: "synced_chat_move";
|
|
15292
|
+
/** @enum {string} */
|
|
15293
|
+
status: "awaiting_upload" | "importing" | "exporting" | "ready" | "completed" | "failed" | "canceled" | "expired";
|
|
15294
|
+
/** @enum {string} */
|
|
15295
|
+
to: "cloud" | "local";
|
|
15296
|
+
/** @description While a move to local is ready: fetch the bundle's HEAD into the branch, apply the patch, read the transcript, then call complete. Otherwise null. */
|
|
15297
|
+
export: {
|
|
15298
|
+
/** @description The branch the cloud repository is on. */
|
|
15299
|
+
branch: string;
|
|
15300
|
+
/** @description A fresh GET URL per object the export uploaded, valid for 15 minutes. No bundle when the cloud made no commit the CLI lacks; no patch when the tree is clean. */
|
|
15301
|
+
downloads: {
|
|
15302
|
+
/** Format: date-time */
|
|
15303
|
+
expires_at: string;
|
|
15304
|
+
/** @constant */
|
|
15305
|
+
method: "GET";
|
|
15306
|
+
/** @enum {string} */
|
|
15307
|
+
object: "bundle" | "patch";
|
|
15308
|
+
/** @description The object's SHA-256, lowercase hex: check it after the download. */
|
|
15309
|
+
sha256: string;
|
|
15310
|
+
size_bytes: number;
|
|
15311
|
+
/** Format: uri */
|
|
15312
|
+
url: string;
|
|
15313
|
+
}[];
|
|
15314
|
+
/** @description The cloud repository's head commit. */
|
|
15315
|
+
head_commit: string;
|
|
15316
|
+
/** @description The index of the chat's first message the CLI lacks: read the messages from here. */
|
|
15317
|
+
transcript_from_index: number;
|
|
15318
|
+
} | null;
|
|
15319
|
+
/** @description While awaiting_upload, a fresh PUT URL per declared object, valid for 15 minutes; otherwise empty. */
|
|
15320
|
+
uploads: {
|
|
15321
|
+
/** Format: date-time */
|
|
15322
|
+
expires_at: string;
|
|
15323
|
+
/** @description Send exactly these headers with the PUT; the URL signs them. */
|
|
15324
|
+
headers: {
|
|
15325
|
+
[key: string]: string;
|
|
15326
|
+
};
|
|
15327
|
+
/** @constant */
|
|
15328
|
+
method: "PUT";
|
|
15329
|
+
/** @enum {string} */
|
|
15330
|
+
object: "bundle" | "patch";
|
|
15331
|
+
/** Format: uri */
|
|
15332
|
+
url: string;
|
|
15333
|
+
}[];
|
|
15334
|
+
};
|
|
15335
|
+
};
|
|
15336
|
+
};
|
|
15337
|
+
/** @description Invalid JSON or request fields. */
|
|
15338
|
+
400: {
|
|
15339
|
+
headers: {
|
|
15340
|
+
[name: string]: unknown;
|
|
15341
|
+
};
|
|
15342
|
+
content: {
|
|
15343
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15344
|
+
};
|
|
15345
|
+
};
|
|
15346
|
+
/** @description Missing or invalid API key. */
|
|
15347
|
+
401: {
|
|
15348
|
+
headers: {
|
|
15349
|
+
[name: string]: unknown;
|
|
15350
|
+
};
|
|
15351
|
+
content: {
|
|
15352
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15353
|
+
};
|
|
15354
|
+
};
|
|
15355
|
+
/** @description The account has insufficient credits. */
|
|
15356
|
+
402: {
|
|
15357
|
+
headers: {
|
|
15358
|
+
[name: string]: unknown;
|
|
15359
|
+
};
|
|
15360
|
+
content: {
|
|
15361
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15362
|
+
};
|
|
15363
|
+
};
|
|
15364
|
+
/** @description The account cannot perform this operation. */
|
|
15365
|
+
403: {
|
|
15366
|
+
headers: {
|
|
15367
|
+
[name: string]: unknown;
|
|
15368
|
+
};
|
|
15369
|
+
content: {
|
|
15370
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15371
|
+
};
|
|
15372
|
+
};
|
|
15373
|
+
/** @description The requested resource was not found. */
|
|
15374
|
+
404: {
|
|
15375
|
+
headers: {
|
|
15376
|
+
[name: string]: unknown;
|
|
15377
|
+
};
|
|
15378
|
+
content: {
|
|
15379
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15380
|
+
};
|
|
15381
|
+
};
|
|
15382
|
+
/** @description The request conflicts with existing resource state. */
|
|
15383
|
+
409: {
|
|
15384
|
+
headers: {
|
|
15385
|
+
[name: string]: unknown;
|
|
15386
|
+
};
|
|
15387
|
+
content: {
|
|
15388
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15389
|
+
};
|
|
15390
|
+
};
|
|
15391
|
+
/** @description The account exceeded this operation's request rate. */
|
|
15392
|
+
429: {
|
|
15393
|
+
headers: {
|
|
15394
|
+
/** @description Seconds to wait before retrying. */
|
|
15395
|
+
"Retry-After"?: string;
|
|
15396
|
+
[name: string]: unknown;
|
|
15397
|
+
};
|
|
15398
|
+
content: {
|
|
15399
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15400
|
+
};
|
|
15401
|
+
};
|
|
15402
|
+
/** @description Unexpected Dexto failure. */
|
|
15403
|
+
500: {
|
|
15404
|
+
headers: {
|
|
15405
|
+
[name: string]: unknown;
|
|
15406
|
+
};
|
|
15407
|
+
content: {
|
|
15408
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15409
|
+
};
|
|
15410
|
+
};
|
|
15411
|
+
/** @description The upstream model provider failed. */
|
|
15412
|
+
502: {
|
|
15413
|
+
headers: {
|
|
15414
|
+
[name: string]: unknown;
|
|
15415
|
+
};
|
|
15416
|
+
content: {
|
|
15417
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15418
|
+
};
|
|
15419
|
+
};
|
|
15420
|
+
/** @description A required Dexto service is temporarily unavailable. */
|
|
15421
|
+
503: {
|
|
15422
|
+
headers: {
|
|
15423
|
+
[name: string]: unknown;
|
|
15424
|
+
};
|
|
15425
|
+
content: {
|
|
15426
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15427
|
+
};
|
|
15428
|
+
};
|
|
15429
|
+
};
|
|
15430
|
+
};
|
|
15431
|
+
cancelSyncedChatMove: {
|
|
15432
|
+
parameters: {
|
|
15433
|
+
query?: never;
|
|
15434
|
+
header?: never;
|
|
15435
|
+
path: {
|
|
15436
|
+
chat_id: string;
|
|
15437
|
+
move_id: string;
|
|
15438
|
+
};
|
|
15439
|
+
cookie?: never;
|
|
15440
|
+
};
|
|
15441
|
+
requestBody?: never;
|
|
15442
|
+
responses: {
|
|
15443
|
+
/** @description Successful response. */
|
|
15444
|
+
200: {
|
|
15445
|
+
headers: {
|
|
15446
|
+
[name: string]: unknown;
|
|
15447
|
+
};
|
|
15448
|
+
content: {
|
|
15449
|
+
"application/json": {
|
|
15450
|
+
/** Format: uuid */
|
|
15451
|
+
chat_id: string;
|
|
15452
|
+
/** Format: date-time */
|
|
15453
|
+
created_at: string;
|
|
15454
|
+
/**
|
|
15455
|
+
* Format: date-time
|
|
15456
|
+
* @description An open move is expired at this time.
|
|
15457
|
+
*/
|
|
15458
|
+
expires_at: string;
|
|
15459
|
+
failure: ("computer_unavailable" | "export_failed" | "import_failed" | "secret_path" | "upload_mismatch") | null;
|
|
15460
|
+
/** Format: uuid */
|
|
15461
|
+
id: string;
|
|
15462
|
+
/** @constant */
|
|
15463
|
+
object: "synced_chat_move";
|
|
15464
|
+
/** @enum {string} */
|
|
15465
|
+
status: "awaiting_upload" | "importing" | "exporting" | "ready" | "completed" | "failed" | "canceled" | "expired";
|
|
15466
|
+
/** @enum {string} */
|
|
15467
|
+
to: "cloud" | "local";
|
|
15468
|
+
/** @description While a move to local is ready: fetch the bundle's HEAD into the branch, apply the patch, read the transcript, then call complete. Otherwise null. */
|
|
15469
|
+
export: {
|
|
15470
|
+
/** @description The branch the cloud repository is on. */
|
|
15471
|
+
branch: string;
|
|
15472
|
+
/** @description A fresh GET URL per object the export uploaded, valid for 15 minutes. No bundle when the cloud made no commit the CLI lacks; no patch when the tree is clean. */
|
|
15473
|
+
downloads: {
|
|
15474
|
+
/** Format: date-time */
|
|
15475
|
+
expires_at: string;
|
|
15476
|
+
/** @constant */
|
|
15477
|
+
method: "GET";
|
|
15478
|
+
/** @enum {string} */
|
|
15479
|
+
object: "bundle" | "patch";
|
|
15480
|
+
/** @description The object's SHA-256, lowercase hex: check it after the download. */
|
|
15481
|
+
sha256: string;
|
|
15482
|
+
size_bytes: number;
|
|
15483
|
+
/** Format: uri */
|
|
15484
|
+
url: string;
|
|
15485
|
+
}[];
|
|
15486
|
+
/** @description The cloud repository's head commit. */
|
|
15487
|
+
head_commit: string;
|
|
15488
|
+
/** @description The index of the chat's first message the CLI lacks: read the messages from here. */
|
|
15489
|
+
transcript_from_index: number;
|
|
15490
|
+
} | null;
|
|
15491
|
+
/** @description While awaiting_upload, a fresh PUT URL per declared object, valid for 15 minutes; otherwise empty. */
|
|
15492
|
+
uploads: {
|
|
15493
|
+
/** Format: date-time */
|
|
15494
|
+
expires_at: string;
|
|
15495
|
+
/** @description Send exactly these headers with the PUT; the URL signs them. */
|
|
15496
|
+
headers: {
|
|
15497
|
+
[key: string]: string;
|
|
15498
|
+
};
|
|
15499
|
+
/** @constant */
|
|
15500
|
+
method: "PUT";
|
|
15501
|
+
/** @enum {string} */
|
|
15502
|
+
object: "bundle" | "patch";
|
|
15503
|
+
/** Format: uri */
|
|
15504
|
+
url: string;
|
|
15505
|
+
}[];
|
|
15506
|
+
};
|
|
15507
|
+
};
|
|
15508
|
+
};
|
|
15509
|
+
/** @description Invalid JSON or request fields. */
|
|
15510
|
+
400: {
|
|
15511
|
+
headers: {
|
|
15512
|
+
[name: string]: unknown;
|
|
15513
|
+
};
|
|
15514
|
+
content: {
|
|
15515
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15516
|
+
};
|
|
15517
|
+
};
|
|
15518
|
+
/** @description Missing or invalid API key. */
|
|
15519
|
+
401: {
|
|
15520
|
+
headers: {
|
|
15521
|
+
[name: string]: unknown;
|
|
15522
|
+
};
|
|
15523
|
+
content: {
|
|
15524
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15525
|
+
};
|
|
15526
|
+
};
|
|
15527
|
+
/** @description The account has insufficient credits. */
|
|
15528
|
+
402: {
|
|
15529
|
+
headers: {
|
|
15530
|
+
[name: string]: unknown;
|
|
15531
|
+
};
|
|
15532
|
+
content: {
|
|
15533
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15534
|
+
};
|
|
15535
|
+
};
|
|
15536
|
+
/** @description The account cannot perform this operation. */
|
|
15537
|
+
403: {
|
|
15538
|
+
headers: {
|
|
15539
|
+
[name: string]: unknown;
|
|
15540
|
+
};
|
|
15541
|
+
content: {
|
|
15542
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15543
|
+
};
|
|
15544
|
+
};
|
|
15545
|
+
/** @description The requested resource was not found. */
|
|
15546
|
+
404: {
|
|
15547
|
+
headers: {
|
|
15548
|
+
[name: string]: unknown;
|
|
15549
|
+
};
|
|
15550
|
+
content: {
|
|
15551
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15552
|
+
};
|
|
15553
|
+
};
|
|
15554
|
+
/** @description The request conflicts with existing resource state. */
|
|
15555
|
+
409: {
|
|
15556
|
+
headers: {
|
|
15557
|
+
[name: string]: unknown;
|
|
15558
|
+
};
|
|
15559
|
+
content: {
|
|
15560
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15561
|
+
};
|
|
15562
|
+
};
|
|
15563
|
+
/** @description The account exceeded this operation's request rate. */
|
|
15564
|
+
429: {
|
|
15565
|
+
headers: {
|
|
15566
|
+
/** @description Seconds to wait before retrying. */
|
|
15567
|
+
"Retry-After"?: string;
|
|
15568
|
+
[name: string]: unknown;
|
|
15569
|
+
};
|
|
15570
|
+
content: {
|
|
15571
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15572
|
+
};
|
|
15573
|
+
};
|
|
15574
|
+
/** @description Unexpected Dexto failure. */
|
|
15575
|
+
500: {
|
|
15576
|
+
headers: {
|
|
15577
|
+
[name: string]: unknown;
|
|
15578
|
+
};
|
|
15579
|
+
content: {
|
|
15580
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15581
|
+
};
|
|
15582
|
+
};
|
|
15583
|
+
/** @description The upstream model provider failed. */
|
|
15584
|
+
502: {
|
|
15585
|
+
headers: {
|
|
15586
|
+
[name: string]: unknown;
|
|
15587
|
+
};
|
|
15588
|
+
content: {
|
|
15589
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15590
|
+
};
|
|
15591
|
+
};
|
|
15592
|
+
/** @description A required Dexto service is temporarily unavailable. */
|
|
15593
|
+
503: {
|
|
15594
|
+
headers: {
|
|
15595
|
+
[name: string]: unknown;
|
|
15596
|
+
};
|
|
15597
|
+
content: {
|
|
15598
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15599
|
+
};
|
|
15600
|
+
};
|
|
15601
|
+
};
|
|
15602
|
+
};
|
|
15603
|
+
completeSyncedChatMove: {
|
|
15604
|
+
parameters: {
|
|
15605
|
+
query?: never;
|
|
15606
|
+
header?: never;
|
|
15607
|
+
path: {
|
|
15608
|
+
chat_id: string;
|
|
15609
|
+
move_id: string;
|
|
15610
|
+
};
|
|
15611
|
+
cookie?: never;
|
|
15612
|
+
};
|
|
15613
|
+
requestBody?: never;
|
|
15614
|
+
responses: {
|
|
15615
|
+
/** @description Successful response. */
|
|
15616
|
+
200: {
|
|
15617
|
+
headers: {
|
|
15618
|
+
[name: string]: unknown;
|
|
15619
|
+
};
|
|
15620
|
+
content: {
|
|
15621
|
+
"application/json": {
|
|
15622
|
+
/** Format: uuid */
|
|
15623
|
+
chat_id: string;
|
|
15624
|
+
/** Format: date-time */
|
|
15625
|
+
created_at: string;
|
|
15626
|
+
/**
|
|
15627
|
+
* Format: date-time
|
|
15628
|
+
* @description An open move is expired at this time.
|
|
15629
|
+
*/
|
|
15630
|
+
expires_at: string;
|
|
15631
|
+
failure: ("computer_unavailable" | "export_failed" | "import_failed" | "secret_path" | "upload_mismatch") | null;
|
|
15632
|
+
/** Format: uuid */
|
|
15633
|
+
id: string;
|
|
15634
|
+
/** @constant */
|
|
15635
|
+
object: "synced_chat_move";
|
|
15636
|
+
/** @enum {string} */
|
|
15637
|
+
status: "awaiting_upload" | "importing" | "exporting" | "ready" | "completed" | "failed" | "canceled" | "expired";
|
|
15638
|
+
/** @enum {string} */
|
|
15639
|
+
to: "cloud" | "local";
|
|
15640
|
+
/** @description While a move to local is ready: fetch the bundle's HEAD into the branch, apply the patch, read the transcript, then call complete. Otherwise null. */
|
|
15641
|
+
export: {
|
|
15642
|
+
/** @description The branch the cloud repository is on. */
|
|
15643
|
+
branch: string;
|
|
15644
|
+
/** @description A fresh GET URL per object the export uploaded, valid for 15 minutes. No bundle when the cloud made no commit the CLI lacks; no patch when the tree is clean. */
|
|
15645
|
+
downloads: {
|
|
15646
|
+
/** Format: date-time */
|
|
15647
|
+
expires_at: string;
|
|
15648
|
+
/** @constant */
|
|
15649
|
+
method: "GET";
|
|
15650
|
+
/** @enum {string} */
|
|
15651
|
+
object: "bundle" | "patch";
|
|
15652
|
+
/** @description The object's SHA-256, lowercase hex: check it after the download. */
|
|
15653
|
+
sha256: string;
|
|
15654
|
+
size_bytes: number;
|
|
15655
|
+
/** Format: uri */
|
|
15656
|
+
url: string;
|
|
15657
|
+
}[];
|
|
15658
|
+
/** @description The cloud repository's head commit. */
|
|
15659
|
+
head_commit: string;
|
|
15660
|
+
/** @description The index of the chat's first message the CLI lacks: read the messages from here. */
|
|
15661
|
+
transcript_from_index: number;
|
|
15662
|
+
} | null;
|
|
15663
|
+
/** @description While awaiting_upload, a fresh PUT URL per declared object, valid for 15 minutes; otherwise empty. */
|
|
15664
|
+
uploads: {
|
|
15665
|
+
/** Format: date-time */
|
|
15666
|
+
expires_at: string;
|
|
15667
|
+
/** @description Send exactly these headers with the PUT; the URL signs them. */
|
|
15668
|
+
headers: {
|
|
15669
|
+
[key: string]: string;
|
|
15670
|
+
};
|
|
15671
|
+
/** @constant */
|
|
15672
|
+
method: "PUT";
|
|
15673
|
+
/** @enum {string} */
|
|
15674
|
+
object: "bundle" | "patch";
|
|
15675
|
+
/** Format: uri */
|
|
15676
|
+
url: string;
|
|
15677
|
+
}[];
|
|
15678
|
+
};
|
|
15679
|
+
};
|
|
15680
|
+
};
|
|
15681
|
+
/** @description Invalid JSON or request fields. */
|
|
15682
|
+
400: {
|
|
15683
|
+
headers: {
|
|
15684
|
+
[name: string]: unknown;
|
|
15685
|
+
};
|
|
15686
|
+
content: {
|
|
15687
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15688
|
+
};
|
|
15689
|
+
};
|
|
15690
|
+
/** @description Missing or invalid API key. */
|
|
15691
|
+
401: {
|
|
15692
|
+
headers: {
|
|
15693
|
+
[name: string]: unknown;
|
|
15694
|
+
};
|
|
15695
|
+
content: {
|
|
15696
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15697
|
+
};
|
|
15698
|
+
};
|
|
15699
|
+
/** @description The account has insufficient credits. */
|
|
15700
|
+
402: {
|
|
15701
|
+
headers: {
|
|
15702
|
+
[name: string]: unknown;
|
|
15703
|
+
};
|
|
15704
|
+
content: {
|
|
15705
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15706
|
+
};
|
|
15707
|
+
};
|
|
15708
|
+
/** @description The account cannot perform this operation. */
|
|
15709
|
+
403: {
|
|
15710
|
+
headers: {
|
|
15711
|
+
[name: string]: unknown;
|
|
15712
|
+
};
|
|
15713
|
+
content: {
|
|
15714
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15715
|
+
};
|
|
15716
|
+
};
|
|
15717
|
+
/** @description The requested resource was not found. */
|
|
15718
|
+
404: {
|
|
15719
|
+
headers: {
|
|
15720
|
+
[name: string]: unknown;
|
|
15721
|
+
};
|
|
15722
|
+
content: {
|
|
15723
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15724
|
+
};
|
|
15725
|
+
};
|
|
15726
|
+
/** @description The request conflicts with existing resource state. */
|
|
15727
|
+
409: {
|
|
15728
|
+
headers: {
|
|
15729
|
+
[name: string]: unknown;
|
|
15730
|
+
};
|
|
15731
|
+
content: {
|
|
15732
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15733
|
+
};
|
|
15734
|
+
};
|
|
15735
|
+
/** @description The account exceeded this operation's request rate. */
|
|
15736
|
+
429: {
|
|
15737
|
+
headers: {
|
|
15738
|
+
/** @description Seconds to wait before retrying. */
|
|
15739
|
+
"Retry-After"?: string;
|
|
15740
|
+
[name: string]: unknown;
|
|
15741
|
+
};
|
|
15742
|
+
content: {
|
|
15743
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15744
|
+
};
|
|
15745
|
+
};
|
|
15746
|
+
/** @description Unexpected Dexto failure. */
|
|
15747
|
+
500: {
|
|
15748
|
+
headers: {
|
|
15749
|
+
[name: string]: unknown;
|
|
15750
|
+
};
|
|
15751
|
+
content: {
|
|
15752
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15753
|
+
};
|
|
15754
|
+
};
|
|
15755
|
+
/** @description The upstream model provider failed. */
|
|
15756
|
+
502: {
|
|
15757
|
+
headers: {
|
|
15758
|
+
[name: string]: unknown;
|
|
15759
|
+
};
|
|
15760
|
+
content: {
|
|
15761
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15762
|
+
};
|
|
15763
|
+
};
|
|
15764
|
+
/** @description A required Dexto service is temporarily unavailable. */
|
|
15765
|
+
503: {
|
|
15766
|
+
headers: {
|
|
15767
|
+
[name: string]: unknown;
|
|
15768
|
+
};
|
|
15769
|
+
content: {
|
|
15770
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15771
|
+
};
|
|
15772
|
+
};
|
|
15773
|
+
};
|
|
15774
|
+
};
|
|
15775
|
+
listSyncedChatMessages: {
|
|
15776
|
+
parameters: {
|
|
15777
|
+
query?: {
|
|
15778
|
+
/** @description The index of the first message to read; messages are numbered from 0. */
|
|
15779
|
+
from_index?: number;
|
|
15780
|
+
};
|
|
15781
|
+
header?: never;
|
|
15782
|
+
path: {
|
|
15783
|
+
chat_id: string;
|
|
15784
|
+
};
|
|
15785
|
+
cookie?: never;
|
|
15786
|
+
};
|
|
15787
|
+
requestBody?: never;
|
|
15788
|
+
responses: {
|
|
15789
|
+
/** @description Successful response. */
|
|
15790
|
+
200: {
|
|
15791
|
+
headers: {
|
|
15792
|
+
[name: string]: unknown;
|
|
15793
|
+
};
|
|
15794
|
+
content: {
|
|
15795
|
+
"application/json": {
|
|
15796
|
+
/** @description Messages from from_index in the sync message shape, redacted again. A message with nothing to show (a tool result, which comes with its call, a system line, or a host-only summary or reminder) is left out but keeps its index, and a deleted message leaves its index unused. */
|
|
15797
|
+
messages: {
|
|
15798
|
+
/** Format: date-time */
|
|
15799
|
+
created_at: string;
|
|
15800
|
+
index: number;
|
|
15801
|
+
parts: ({
|
|
15802
|
+
text: string;
|
|
15803
|
+
/** @constant */
|
|
15804
|
+
type: "text";
|
|
15805
|
+
} | {
|
|
15806
|
+
/** @description The call's input, cut to 4,000 characters. */
|
|
15807
|
+
input: string;
|
|
15808
|
+
name: string;
|
|
15809
|
+
/** @description The call's output, cut to 4,000 characters; null when it has none. */
|
|
15810
|
+
output: string | null;
|
|
15811
|
+
/** @description The file the call read or wrote, when it names one. Dexto Cloud replaces the input and output of a call on a secret-shaped file, such as .env or ~/.ssh/*, with one exclusion marker, and the output of a command that names one. */
|
|
15812
|
+
path: string | null;
|
|
15813
|
+
/** @constant */
|
|
15814
|
+
type: "tool";
|
|
15815
|
+
} | {
|
|
15816
|
+
mime_type: string;
|
|
15817
|
+
name: string;
|
|
15818
|
+
size_bytes: number;
|
|
15819
|
+
/** @constant */
|
|
15820
|
+
type: "attachment";
|
|
15821
|
+
})[];
|
|
15822
|
+
/** @enum {string} */
|
|
15823
|
+
role: "assistant" | "user";
|
|
15824
|
+
}[];
|
|
15825
|
+
/** @description Where the next page starts; null on the last page. */
|
|
15826
|
+
next_from_index: number | null;
|
|
15827
|
+
/** @constant */
|
|
15828
|
+
object: "synced_chat_transcript";
|
|
15829
|
+
/** @description The index after the chat's last message: where sync resumes once the move completes. */
|
|
15830
|
+
sync_from_index: number;
|
|
15831
|
+
};
|
|
15832
|
+
};
|
|
15833
|
+
};
|
|
15834
|
+
/** @description Invalid JSON or request fields. */
|
|
15835
|
+
400: {
|
|
15836
|
+
headers: {
|
|
15837
|
+
[name: string]: unknown;
|
|
15838
|
+
};
|
|
15839
|
+
content: {
|
|
15840
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15841
|
+
};
|
|
15842
|
+
};
|
|
15843
|
+
/** @description Missing or invalid API key. */
|
|
15844
|
+
401: {
|
|
15845
|
+
headers: {
|
|
15846
|
+
[name: string]: unknown;
|
|
15847
|
+
};
|
|
15848
|
+
content: {
|
|
15849
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15850
|
+
};
|
|
15851
|
+
};
|
|
15852
|
+
/** @description The account has insufficient credits. */
|
|
15853
|
+
402: {
|
|
15854
|
+
headers: {
|
|
15855
|
+
[name: string]: unknown;
|
|
15856
|
+
};
|
|
15857
|
+
content: {
|
|
15858
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15859
|
+
};
|
|
15860
|
+
};
|
|
15861
|
+
/** @description The account cannot perform this operation. */
|
|
15862
|
+
403: {
|
|
15863
|
+
headers: {
|
|
15864
|
+
[name: string]: unknown;
|
|
15865
|
+
};
|
|
15866
|
+
content: {
|
|
15867
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15868
|
+
};
|
|
15869
|
+
};
|
|
15870
|
+
/** @description The requested resource was not found. */
|
|
15871
|
+
404: {
|
|
15872
|
+
headers: {
|
|
15873
|
+
[name: string]: unknown;
|
|
15874
|
+
};
|
|
15875
|
+
content: {
|
|
15876
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15877
|
+
};
|
|
15878
|
+
};
|
|
15879
|
+
/** @description The request conflicts with existing resource state. */
|
|
15880
|
+
409: {
|
|
15881
|
+
headers: {
|
|
15882
|
+
[name: string]: unknown;
|
|
15883
|
+
};
|
|
15884
|
+
content: {
|
|
15885
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15886
|
+
};
|
|
15887
|
+
};
|
|
15888
|
+
/** @description The account exceeded this operation's request rate. */
|
|
15889
|
+
429: {
|
|
15890
|
+
headers: {
|
|
15891
|
+
/** @description Seconds to wait before retrying. */
|
|
15892
|
+
"Retry-After"?: string;
|
|
15893
|
+
[name: string]: unknown;
|
|
15894
|
+
};
|
|
15895
|
+
content: {
|
|
15896
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15897
|
+
};
|
|
15898
|
+
};
|
|
15899
|
+
/** @description Unexpected Dexto failure. */
|
|
15900
|
+
500: {
|
|
15901
|
+
headers: {
|
|
15902
|
+
[name: string]: unknown;
|
|
15903
|
+
};
|
|
15904
|
+
content: {
|
|
15905
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15906
|
+
};
|
|
15907
|
+
};
|
|
15908
|
+
/** @description The upstream model provider failed. */
|
|
15909
|
+
502: {
|
|
15910
|
+
headers: {
|
|
15911
|
+
[name: string]: unknown;
|
|
15912
|
+
};
|
|
15913
|
+
content: {
|
|
15914
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15915
|
+
};
|
|
15916
|
+
};
|
|
15917
|
+
/** @description A required Dexto service is temporarily unavailable. */
|
|
15918
|
+
503: {
|
|
15919
|
+
headers: {
|
|
15920
|
+
[name: string]: unknown;
|
|
15921
|
+
};
|
|
15922
|
+
content: {
|
|
15923
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15924
|
+
};
|
|
15925
|
+
};
|
|
15926
|
+
};
|
|
15927
|
+
};
|
|
15928
|
+
listSites: {
|
|
15929
|
+
parameters: {
|
|
15930
|
+
query?: never;
|
|
15931
|
+
header?: never;
|
|
15932
|
+
path?: never;
|
|
15933
|
+
cookie?: never;
|
|
15934
|
+
};
|
|
15935
|
+
requestBody?: never;
|
|
15936
|
+
responses: {
|
|
15937
|
+
/** @description Successful response. */
|
|
15938
|
+
200: {
|
|
15939
|
+
headers: {
|
|
15940
|
+
[name: string]: unknown;
|
|
15941
|
+
};
|
|
15942
|
+
content: {
|
|
15943
|
+
"application/json": {
|
|
15944
|
+
data: {
|
|
15945
|
+
/** @description The Function the Site mounts to serve its server routes; null for none. */
|
|
15946
|
+
backend_function_id: string | null;
|
|
15947
|
+
/** Format: date-time */
|
|
15948
|
+
created_at: string;
|
|
15949
|
+
/** Format: uuid */
|
|
15950
|
+
id: string;
|
|
15951
|
+
/** @constant */
|
|
15952
|
+
object: "site";
|
|
15953
|
+
slug: string;
|
|
15954
|
+
title: string;
|
|
15955
|
+
/** Format: date-time */
|
|
15956
|
+
updated_at: string;
|
|
15957
|
+
/**
|
|
15958
|
+
* Format: uri
|
|
15959
|
+
* @description The Site's production URL.
|
|
15960
|
+
*/
|
|
15961
|
+
url: string;
|
|
15962
|
+
/** @enum {string} */
|
|
15963
|
+
visibility: "private" | "unlisted" | "public";
|
|
15964
|
+
}[];
|
|
15965
|
+
/** @constant */
|
|
15966
|
+
has_more: false;
|
|
15967
|
+
next_after: null;
|
|
15968
|
+
/** @constant */
|
|
15969
|
+
object: "list";
|
|
15970
|
+
};
|
|
15971
|
+
};
|
|
15972
|
+
};
|
|
15973
|
+
/** @description Invalid JSON or request fields. */
|
|
15974
|
+
400: {
|
|
15975
|
+
headers: {
|
|
15976
|
+
[name: string]: unknown;
|
|
15977
|
+
};
|
|
15978
|
+
content: {
|
|
15979
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15980
|
+
};
|
|
15981
|
+
};
|
|
15982
|
+
/** @description Missing or invalid API key. */
|
|
15983
|
+
401: {
|
|
15984
|
+
headers: {
|
|
15985
|
+
[name: string]: unknown;
|
|
15986
|
+
};
|
|
15987
|
+
content: {
|
|
15988
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15989
|
+
};
|
|
15990
|
+
};
|
|
15991
|
+
/** @description The account has insufficient credits. */
|
|
15992
|
+
402: {
|
|
15993
|
+
headers: {
|
|
15994
|
+
[name: string]: unknown;
|
|
15995
|
+
};
|
|
15996
|
+
content: {
|
|
15997
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
15998
|
+
};
|
|
15999
|
+
};
|
|
16000
|
+
/** @description The account cannot perform this operation. */
|
|
16001
|
+
403: {
|
|
16002
|
+
headers: {
|
|
16003
|
+
[name: string]: unknown;
|
|
16004
|
+
};
|
|
16005
|
+
content: {
|
|
16006
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16007
|
+
};
|
|
16008
|
+
};
|
|
16009
|
+
/** @description The requested resource was not found. */
|
|
16010
|
+
404: {
|
|
16011
|
+
headers: {
|
|
16012
|
+
[name: string]: unknown;
|
|
16013
|
+
};
|
|
16014
|
+
content: {
|
|
16015
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16016
|
+
};
|
|
16017
|
+
};
|
|
16018
|
+
/** @description The request conflicts with existing resource state. */
|
|
16019
|
+
409: {
|
|
16020
|
+
headers: {
|
|
16021
|
+
[name: string]: unknown;
|
|
16022
|
+
};
|
|
16023
|
+
content: {
|
|
16024
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16025
|
+
};
|
|
16026
|
+
};
|
|
16027
|
+
/** @description The account exceeded this operation's request rate. */
|
|
16028
|
+
429: {
|
|
16029
|
+
headers: {
|
|
16030
|
+
/** @description Seconds to wait before retrying. */
|
|
16031
|
+
"Retry-After"?: string;
|
|
16032
|
+
[name: string]: unknown;
|
|
16033
|
+
};
|
|
16034
|
+
content: {
|
|
16035
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16036
|
+
};
|
|
16037
|
+
};
|
|
16038
|
+
/** @description Unexpected Dexto failure. */
|
|
16039
|
+
500: {
|
|
16040
|
+
headers: {
|
|
16041
|
+
[name: string]: unknown;
|
|
16042
|
+
};
|
|
16043
|
+
content: {
|
|
16044
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16045
|
+
};
|
|
16046
|
+
};
|
|
16047
|
+
/** @description The upstream model provider failed. */
|
|
16048
|
+
502: {
|
|
16049
|
+
headers: {
|
|
16050
|
+
[name: string]: unknown;
|
|
16051
|
+
};
|
|
16052
|
+
content: {
|
|
16053
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16054
|
+
};
|
|
16055
|
+
};
|
|
16056
|
+
/** @description A required Dexto service is temporarily unavailable. */
|
|
16057
|
+
503: {
|
|
16058
|
+
headers: {
|
|
16059
|
+
[name: string]: unknown;
|
|
16060
|
+
};
|
|
16061
|
+
content: {
|
|
16062
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16063
|
+
};
|
|
16064
|
+
};
|
|
16065
|
+
};
|
|
16066
|
+
};
|
|
16067
|
+
getSite: {
|
|
16068
|
+
parameters: {
|
|
16069
|
+
query?: never;
|
|
16070
|
+
header?: never;
|
|
16071
|
+
path: {
|
|
16072
|
+
site_id: string;
|
|
16073
|
+
};
|
|
16074
|
+
cookie?: never;
|
|
16075
|
+
};
|
|
16076
|
+
requestBody?: never;
|
|
16077
|
+
responses: {
|
|
16078
|
+
/** @description Successful response. */
|
|
16079
|
+
200: {
|
|
16080
|
+
headers: {
|
|
16081
|
+
[name: string]: unknown;
|
|
16082
|
+
};
|
|
16083
|
+
content: {
|
|
16084
|
+
"application/json": {
|
|
16085
|
+
/** @description The Function the Site mounts to serve its server routes; null for none. */
|
|
16086
|
+
backend_function_id: string | null;
|
|
16087
|
+
/** Format: date-time */
|
|
16088
|
+
created_at: string;
|
|
16089
|
+
/** Format: uuid */
|
|
16090
|
+
id: string;
|
|
16091
|
+
/** @constant */
|
|
16092
|
+
object: "site";
|
|
16093
|
+
slug: string;
|
|
16094
|
+
title: string;
|
|
16095
|
+
/** Format: date-time */
|
|
16096
|
+
updated_at: string;
|
|
16097
|
+
/**
|
|
16098
|
+
* Format: uri
|
|
16099
|
+
* @description The Site's production URL.
|
|
16100
|
+
*/
|
|
16101
|
+
url: string;
|
|
16102
|
+
/** @enum {string} */
|
|
16103
|
+
visibility: "private" | "unlisted" | "public";
|
|
16104
|
+
/** @description The Site's newest deployments, at most 20. */
|
|
16105
|
+
deployments: {
|
|
16106
|
+
/** @description The deployment of the Site's Function this release serves; null for none. */
|
|
16107
|
+
backend_deployment_id: string | null;
|
|
16108
|
+
/**
|
|
16109
|
+
* @description production for the Site's live release; preview for any other.
|
|
16110
|
+
* @enum {string}
|
|
16111
|
+
*/
|
|
16112
|
+
channel: "preview" | "production";
|
|
16113
|
+
/** Format: date-time */
|
|
16114
|
+
created_at: string;
|
|
16115
|
+
/** Format: uuid */
|
|
16116
|
+
id: string;
|
|
16117
|
+
/** @constant */
|
|
16118
|
+
object: "site.deployment";
|
|
16119
|
+
/**
|
|
16120
|
+
* Format: uri
|
|
16121
|
+
* @description This deployment's own URL.
|
|
16122
|
+
*/
|
|
16123
|
+
preview_url: string;
|
|
16124
|
+
/** Format: uuid */
|
|
16125
|
+
site_id: string;
|
|
16126
|
+
/** @enum {string} */
|
|
16127
|
+
status: "failed" | "ready" | "retired";
|
|
16128
|
+
/** Format: date-time */
|
|
16129
|
+
updated_at: string;
|
|
16130
|
+
}[];
|
|
16131
|
+
};
|
|
16132
|
+
};
|
|
16133
|
+
};
|
|
16134
|
+
/** @description Invalid JSON or request fields. */
|
|
16135
|
+
400: {
|
|
16136
|
+
headers: {
|
|
16137
|
+
[name: string]: unknown;
|
|
16138
|
+
};
|
|
16139
|
+
content: {
|
|
16140
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16141
|
+
};
|
|
16142
|
+
};
|
|
16143
|
+
/** @description Missing or invalid API key. */
|
|
16144
|
+
401: {
|
|
16145
|
+
headers: {
|
|
16146
|
+
[name: string]: unknown;
|
|
16147
|
+
};
|
|
16148
|
+
content: {
|
|
16149
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16150
|
+
};
|
|
16151
|
+
};
|
|
16152
|
+
/** @description The account has insufficient credits. */
|
|
16153
|
+
402: {
|
|
16154
|
+
headers: {
|
|
16155
|
+
[name: string]: unknown;
|
|
16156
|
+
};
|
|
16157
|
+
content: {
|
|
16158
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16159
|
+
};
|
|
16160
|
+
};
|
|
16161
|
+
/** @description The account cannot perform this operation. */
|
|
16162
|
+
403: {
|
|
16163
|
+
headers: {
|
|
16164
|
+
[name: string]: unknown;
|
|
16165
|
+
};
|
|
16166
|
+
content: {
|
|
16167
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16168
|
+
};
|
|
16169
|
+
};
|
|
16170
|
+
/** @description The requested resource was not found. */
|
|
16171
|
+
404: {
|
|
16172
|
+
headers: {
|
|
16173
|
+
[name: string]: unknown;
|
|
16174
|
+
};
|
|
16175
|
+
content: {
|
|
16176
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16177
|
+
};
|
|
16178
|
+
};
|
|
16179
|
+
/** @description The request conflicts with existing resource state. */
|
|
16180
|
+
409: {
|
|
16181
|
+
headers: {
|
|
16182
|
+
[name: string]: unknown;
|
|
16183
|
+
};
|
|
16184
|
+
content: {
|
|
16185
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16186
|
+
};
|
|
16187
|
+
};
|
|
16188
|
+
/** @description The account exceeded this operation's request rate. */
|
|
16189
|
+
429: {
|
|
16190
|
+
headers: {
|
|
16191
|
+
/** @description Seconds to wait before retrying. */
|
|
16192
|
+
"Retry-After"?: string;
|
|
16193
|
+
[name: string]: unknown;
|
|
16194
|
+
};
|
|
16195
|
+
content: {
|
|
16196
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16197
|
+
};
|
|
16198
|
+
};
|
|
16199
|
+
/** @description Unexpected Dexto failure. */
|
|
16200
|
+
500: {
|
|
16201
|
+
headers: {
|
|
16202
|
+
[name: string]: unknown;
|
|
16203
|
+
};
|
|
16204
|
+
content: {
|
|
16205
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16206
|
+
};
|
|
16207
|
+
};
|
|
16208
|
+
/** @description The upstream model provider failed. */
|
|
16209
|
+
502: {
|
|
16210
|
+
headers: {
|
|
16211
|
+
[name: string]: unknown;
|
|
16212
|
+
};
|
|
16213
|
+
content: {
|
|
16214
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16215
|
+
};
|
|
16216
|
+
};
|
|
16217
|
+
/** @description A required Dexto service is temporarily unavailable. */
|
|
16218
|
+
503: {
|
|
16219
|
+
headers: {
|
|
16220
|
+
[name: string]: unknown;
|
|
16221
|
+
};
|
|
16222
|
+
content: {
|
|
16223
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16224
|
+
};
|
|
16225
|
+
};
|
|
16226
|
+
};
|
|
16227
|
+
};
|
|
16228
|
+
deleteSite: {
|
|
16229
|
+
parameters: {
|
|
16230
|
+
query?: never;
|
|
16231
|
+
header?: never;
|
|
16232
|
+
path: {
|
|
16233
|
+
site_id: string;
|
|
16234
|
+
};
|
|
16235
|
+
cookie?: never;
|
|
16236
|
+
};
|
|
16237
|
+
requestBody?: never;
|
|
16238
|
+
responses: {
|
|
16239
|
+
/** @description Successful response. */
|
|
16240
|
+
200: {
|
|
16241
|
+
headers: {
|
|
16242
|
+
[name: string]: unknown;
|
|
16243
|
+
};
|
|
16244
|
+
content: {
|
|
16245
|
+
"application/json": {
|
|
16246
|
+
/** @constant */
|
|
16247
|
+
deleted: true;
|
|
16248
|
+
/** Format: uuid */
|
|
16249
|
+
id: string;
|
|
16250
|
+
/** @constant */
|
|
16251
|
+
object: "site";
|
|
16252
|
+
};
|
|
16253
|
+
};
|
|
16254
|
+
};
|
|
16255
|
+
/** @description Invalid JSON or request fields. */
|
|
16256
|
+
400: {
|
|
16257
|
+
headers: {
|
|
16258
|
+
[name: string]: unknown;
|
|
16259
|
+
};
|
|
16260
|
+
content: {
|
|
16261
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16262
|
+
};
|
|
16263
|
+
};
|
|
16264
|
+
/** @description Missing or invalid API key. */
|
|
16265
|
+
401: {
|
|
16266
|
+
headers: {
|
|
16267
|
+
[name: string]: unknown;
|
|
16268
|
+
};
|
|
16269
|
+
content: {
|
|
16270
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16271
|
+
};
|
|
16272
|
+
};
|
|
16273
|
+
/** @description The account has insufficient credits. */
|
|
16274
|
+
402: {
|
|
16275
|
+
headers: {
|
|
16276
|
+
[name: string]: unknown;
|
|
16277
|
+
};
|
|
16278
|
+
content: {
|
|
16279
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16280
|
+
};
|
|
16281
|
+
};
|
|
16282
|
+
/** @description The account cannot perform this operation. */
|
|
16283
|
+
403: {
|
|
16284
|
+
headers: {
|
|
16285
|
+
[name: string]: unknown;
|
|
16286
|
+
};
|
|
16287
|
+
content: {
|
|
16288
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16289
|
+
};
|
|
16290
|
+
};
|
|
16291
|
+
/** @description The requested resource was not found. */
|
|
16292
|
+
404: {
|
|
16293
|
+
headers: {
|
|
16294
|
+
[name: string]: unknown;
|
|
16295
|
+
};
|
|
16296
|
+
content: {
|
|
16297
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16298
|
+
};
|
|
16299
|
+
};
|
|
16300
|
+
/** @description The request conflicts with existing resource state. */
|
|
16301
|
+
409: {
|
|
16302
|
+
headers: {
|
|
16303
|
+
[name: string]: unknown;
|
|
16304
|
+
};
|
|
16305
|
+
content: {
|
|
16306
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16307
|
+
};
|
|
16308
|
+
};
|
|
16309
|
+
/** @description The account exceeded this operation's request rate. */
|
|
16310
|
+
429: {
|
|
16311
|
+
headers: {
|
|
16312
|
+
/** @description Seconds to wait before retrying. */
|
|
16313
|
+
"Retry-After"?: string;
|
|
16314
|
+
[name: string]: unknown;
|
|
16315
|
+
};
|
|
16316
|
+
content: {
|
|
16317
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16318
|
+
};
|
|
16319
|
+
};
|
|
16320
|
+
/** @description Unexpected Dexto failure. */
|
|
16321
|
+
500: {
|
|
16322
|
+
headers: {
|
|
16323
|
+
[name: string]: unknown;
|
|
16324
|
+
};
|
|
16325
|
+
content: {
|
|
16326
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16327
|
+
};
|
|
16328
|
+
};
|
|
16329
|
+
/** @description The upstream model provider failed. */
|
|
16330
|
+
502: {
|
|
16331
|
+
headers: {
|
|
16332
|
+
[name: string]: unknown;
|
|
16333
|
+
};
|
|
16334
|
+
content: {
|
|
16335
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16336
|
+
};
|
|
16337
|
+
};
|
|
16338
|
+
/** @description A required Dexto service is temporarily unavailable. */
|
|
16339
|
+
503: {
|
|
16340
|
+
headers: {
|
|
16341
|
+
[name: string]: unknown;
|
|
16342
|
+
};
|
|
16343
|
+
content: {
|
|
16344
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16345
|
+
};
|
|
16346
|
+
};
|
|
16347
|
+
};
|
|
16348
|
+
};
|
|
16349
|
+
deploySite: {
|
|
16350
|
+
parameters: {
|
|
16351
|
+
query?: {
|
|
16352
|
+
promote?: "true" | "false";
|
|
16353
|
+
provider?: "aws-lambda" | "cloudflare-workers" | "local";
|
|
16354
|
+
};
|
|
16355
|
+
header?: never;
|
|
16356
|
+
path?: never;
|
|
16357
|
+
cookie?: never;
|
|
16358
|
+
};
|
|
16359
|
+
requestBody: {
|
|
16360
|
+
content: {
|
|
16361
|
+
"application/json": {
|
|
16362
|
+
resources?: {
|
|
16363
|
+
auth?: {
|
|
16364
|
+
visitors?: {
|
|
16365
|
+
/** @constant */
|
|
16366
|
+
enabled: true;
|
|
16367
|
+
methods: "password"[];
|
|
16368
|
+
};
|
|
16369
|
+
};
|
|
16370
|
+
/** @default {} */
|
|
16371
|
+
data?: {
|
|
16372
|
+
[key: string]: {
|
|
16373
|
+
access: {
|
|
16374
|
+
/**
|
|
16375
|
+
* @default private
|
|
16376
|
+
* @enum {string}
|
|
16377
|
+
*/
|
|
16378
|
+
create?: "owner" | "private" | "public" | "visitor";
|
|
16379
|
+
/**
|
|
16380
|
+
* @default private
|
|
16381
|
+
* @enum {string}
|
|
16382
|
+
*/
|
|
16383
|
+
delete?: "owner" | "private" | "public" | "visitor";
|
|
16384
|
+
/**
|
|
16385
|
+
* @default private
|
|
16386
|
+
* @enum {string}
|
|
16387
|
+
*/
|
|
16388
|
+
read?: "owner" | "private" | "public" | "visitor";
|
|
16389
|
+
/**
|
|
16390
|
+
* @default private
|
|
16391
|
+
* @enum {string}
|
|
16392
|
+
*/
|
|
16393
|
+
update?: "owner" | "private" | "public" | "visitor";
|
|
16394
|
+
};
|
|
16395
|
+
/** @constant */
|
|
16396
|
+
owner?: "visitor";
|
|
16397
|
+
schema: unknown;
|
|
16398
|
+
/** @default [] */
|
|
16399
|
+
seed?: unknown[];
|
|
16400
|
+
};
|
|
16401
|
+
};
|
|
16402
|
+
version: 2 | 3;
|
|
16403
|
+
};
|
|
16404
|
+
runtime: {
|
|
16405
|
+
/** @constant */
|
|
16406
|
+
kind: "static";
|
|
16407
|
+
} | {
|
|
16408
|
+
/** @constant */
|
|
16409
|
+
kind: "worker";
|
|
16410
|
+
worker: {
|
|
16411
|
+
dexto?: {
|
|
16412
|
+
apiKeyScopes: ("drive:read" | "drive:write" | "agents:read" | "approvals:read" | "approvals:write" | "apps:write" | "artifacts:read" | "artifacts:write" | "capabilities:call" | "capabilities:read" | "chat:write" | "computers:read" | "computers:write" | "identity:read" | "identity:write" | "media:read" | "media:write" | "models:read" | "models:write" | "runs:read" | "runs:write" | "sessions:read" | "sessions:write" | "functions:invoke" | "functions:read" | "functions:write" | "sites:read" | "sites:write")[];
|
|
16413
|
+
};
|
|
16414
|
+
/**
|
|
16415
|
+
* @description Give the Function its own DEXTO_API_KEY, which acts as its Cloud project with the permissions a project's deployed code needs.
|
|
16416
|
+
* @constant
|
|
16417
|
+
*/
|
|
16418
|
+
dextoApiKey?: true;
|
|
16419
|
+
environment: {
|
|
16420
|
+
secrets: {
|
|
16421
|
+
description: string;
|
|
16422
|
+
name: string;
|
|
16423
|
+
required: boolean;
|
|
16424
|
+
}[];
|
|
16425
|
+
variables: {
|
|
16426
|
+
name: string;
|
|
16427
|
+
value: string;
|
|
16428
|
+
}[];
|
|
16429
|
+
};
|
|
16430
|
+
healthcheck?: {
|
|
16431
|
+
expectedStatus: number;
|
|
16432
|
+
path: string;
|
|
16433
|
+
};
|
|
16434
|
+
/** @enum {string} */
|
|
16435
|
+
kind?: "http-api" | "mcp-server";
|
|
16436
|
+
modules: {
|
|
16437
|
+
contentBase64: string;
|
|
16438
|
+
/** @constant */
|
|
16439
|
+
mediaType?: "application/javascript+module";
|
|
16440
|
+
path: string;
|
|
16441
|
+
}[];
|
|
16442
|
+
publication: {
|
|
16443
|
+
interfaces: ("mcp" | "openapi")[];
|
|
16444
|
+
operations: string[];
|
|
16445
|
+
} | null;
|
|
16446
|
+
routes: {
|
|
16447
|
+
/** @constant */
|
|
16448
|
+
access: "public";
|
|
16449
|
+
pathPrefix: string;
|
|
16450
|
+
}[];
|
|
16451
|
+
runtime: {
|
|
16452
|
+
entrypoint: string;
|
|
16453
|
+
/** @constant */
|
|
16454
|
+
target: "dexto-fetch-v1";
|
|
16455
|
+
};
|
|
16456
|
+
/** @constant */
|
|
16457
|
+
schemaVersion: 1;
|
|
16458
|
+
slug: string;
|
|
16459
|
+
title: string;
|
|
16460
|
+
};
|
|
16461
|
+
};
|
|
16462
|
+
/** @constant */
|
|
16463
|
+
schemaVersion: 1;
|
|
16464
|
+
slug: string;
|
|
16465
|
+
title: string;
|
|
16466
|
+
/**
|
|
16467
|
+
* @default unlisted
|
|
16468
|
+
* @enum {string}
|
|
16469
|
+
*/
|
|
16470
|
+
visibility?: "private" | "unlisted" | "public";
|
|
16471
|
+
assets: {
|
|
16472
|
+
contentBase64: string;
|
|
16473
|
+
mediaType?: string;
|
|
16474
|
+
path: string;
|
|
16475
|
+
}[];
|
|
16476
|
+
/** @default index.html */
|
|
16477
|
+
entrypoint?: string;
|
|
16478
|
+
/** @default true */
|
|
16479
|
+
spaFallback?: boolean;
|
|
16480
|
+
};
|
|
16481
|
+
};
|
|
16482
|
+
};
|
|
16483
|
+
responses: {
|
|
16484
|
+
/** @description Created. */
|
|
16485
|
+
201: {
|
|
16486
|
+
headers: {
|
|
16487
|
+
[name: string]: unknown;
|
|
16488
|
+
};
|
|
16489
|
+
content: {
|
|
16490
|
+
"application/json": {
|
|
16491
|
+
/** @description The Function a Site with server routes mounts; null for a static Site. */
|
|
16492
|
+
backend: {
|
|
16493
|
+
/** Format: uuid */
|
|
16494
|
+
deployment_id: string;
|
|
16495
|
+
/** @description The Function's own DEXTO_API_KEY, when its package sets dextoApiKey (or, in an older package, declares Dexto API scopes), with the scopes it gets. It is bound only when the caller's key or token holds every one; otherwise configured is false. */
|
|
16496
|
+
dexto: {
|
|
16497
|
+
configured: boolean;
|
|
16498
|
+
scopes: string[];
|
|
16499
|
+
} | null;
|
|
16500
|
+
/** Format: uuid */
|
|
16501
|
+
function_id: string;
|
|
16502
|
+
/** @enum {string} */
|
|
16503
|
+
provider: "aws-lambda" | "cloudflare-workers" | "local";
|
|
16504
|
+
secrets: {
|
|
16505
|
+
configured: boolean;
|
|
16506
|
+
description: string;
|
|
16507
|
+
name: string;
|
|
16508
|
+
required: boolean;
|
|
14149
16509
|
}[];
|
|
14150
16510
|
} | null;
|
|
14151
16511
|
/** @description Whether this deploy created the Site. */
|
|
@@ -14154,9 +16514,182 @@ export interface operations {
|
|
|
14154
16514
|
data_collections: {
|
|
14155
16515
|
/** Format: uuid */
|
|
14156
16516
|
id: string;
|
|
14157
|
-
name: string;
|
|
14158
|
-
seeded_records: number;
|
|
14159
|
-
}[];
|
|
16517
|
+
name: string;
|
|
16518
|
+
seeded_records: number;
|
|
16519
|
+
}[];
|
|
16520
|
+
deployment: {
|
|
16521
|
+
/** @description The deployment of the Site's Function this release serves; null for none. */
|
|
16522
|
+
backend_deployment_id: string | null;
|
|
16523
|
+
/**
|
|
16524
|
+
* @description production for the Site's live release; preview for any other.
|
|
16525
|
+
* @enum {string}
|
|
16526
|
+
*/
|
|
16527
|
+
channel: "preview" | "production";
|
|
16528
|
+
/** Format: date-time */
|
|
16529
|
+
created_at: string;
|
|
16530
|
+
/** Format: uuid */
|
|
16531
|
+
id: string;
|
|
16532
|
+
/** @constant */
|
|
16533
|
+
object: "site.deployment";
|
|
16534
|
+
/**
|
|
16535
|
+
* Format: uri
|
|
16536
|
+
* @description This deployment's own URL.
|
|
16537
|
+
*/
|
|
16538
|
+
preview_url: string;
|
|
16539
|
+
/** Format: uuid */
|
|
16540
|
+
site_id: string;
|
|
16541
|
+
/** @enum {string} */
|
|
16542
|
+
status: "failed" | "ready" | "retired";
|
|
16543
|
+
/** Format: date-time */
|
|
16544
|
+
updated_at: string;
|
|
16545
|
+
};
|
|
16546
|
+
/** @description Whether this is the Site's first deployment. */
|
|
16547
|
+
first_deployment: boolean;
|
|
16548
|
+
/** @constant */
|
|
16549
|
+
object: "site.deploy";
|
|
16550
|
+
promoted: boolean;
|
|
16551
|
+
site: {
|
|
16552
|
+
/** @description The Function the Site mounts to serve its server routes; null for none. */
|
|
16553
|
+
backend_function_id: string | null;
|
|
16554
|
+
/** Format: date-time */
|
|
16555
|
+
created_at: string;
|
|
16556
|
+
/** Format: uuid */
|
|
16557
|
+
id: string;
|
|
16558
|
+
/** @constant */
|
|
16559
|
+
object: "site";
|
|
16560
|
+
slug: string;
|
|
16561
|
+
title: string;
|
|
16562
|
+
/** Format: date-time */
|
|
16563
|
+
updated_at: string;
|
|
16564
|
+
/**
|
|
16565
|
+
* Format: uri
|
|
16566
|
+
* @description The Site's production URL.
|
|
16567
|
+
*/
|
|
16568
|
+
url: string;
|
|
16569
|
+
/** @enum {string} */
|
|
16570
|
+
visibility: "private" | "unlisted" | "public";
|
|
16571
|
+
};
|
|
16572
|
+
/**
|
|
16573
|
+
* Format: uri
|
|
16574
|
+
* @description The production URL when promoted; otherwise the deployment's preview URL.
|
|
16575
|
+
*/
|
|
16576
|
+
url: string;
|
|
16577
|
+
};
|
|
16578
|
+
};
|
|
16579
|
+
};
|
|
16580
|
+
/** @description Invalid JSON or request fields. */
|
|
16581
|
+
400: {
|
|
16582
|
+
headers: {
|
|
16583
|
+
[name: string]: unknown;
|
|
16584
|
+
};
|
|
16585
|
+
content: {
|
|
16586
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16587
|
+
};
|
|
16588
|
+
};
|
|
16589
|
+
/** @description Missing or invalid API key. */
|
|
16590
|
+
401: {
|
|
16591
|
+
headers: {
|
|
16592
|
+
[name: string]: unknown;
|
|
16593
|
+
};
|
|
16594
|
+
content: {
|
|
16595
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16596
|
+
};
|
|
16597
|
+
};
|
|
16598
|
+
/** @description The account has insufficient credits. */
|
|
16599
|
+
402: {
|
|
16600
|
+
headers: {
|
|
16601
|
+
[name: string]: unknown;
|
|
16602
|
+
};
|
|
16603
|
+
content: {
|
|
16604
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16605
|
+
};
|
|
16606
|
+
};
|
|
16607
|
+
/** @description The account cannot perform this operation. */
|
|
16608
|
+
403: {
|
|
16609
|
+
headers: {
|
|
16610
|
+
[name: string]: unknown;
|
|
16611
|
+
};
|
|
16612
|
+
content: {
|
|
16613
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16614
|
+
};
|
|
16615
|
+
};
|
|
16616
|
+
/** @description The requested resource was not found. */
|
|
16617
|
+
404: {
|
|
16618
|
+
headers: {
|
|
16619
|
+
[name: string]: unknown;
|
|
16620
|
+
};
|
|
16621
|
+
content: {
|
|
16622
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16623
|
+
};
|
|
16624
|
+
};
|
|
16625
|
+
/** @description The request conflicts with existing resource state. */
|
|
16626
|
+
409: {
|
|
16627
|
+
headers: {
|
|
16628
|
+
[name: string]: unknown;
|
|
16629
|
+
};
|
|
16630
|
+
content: {
|
|
16631
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16632
|
+
};
|
|
16633
|
+
};
|
|
16634
|
+
/** @description The account exceeded this operation's request rate. */
|
|
16635
|
+
429: {
|
|
16636
|
+
headers: {
|
|
16637
|
+
/** @description Seconds to wait before retrying. */
|
|
16638
|
+
"Retry-After"?: string;
|
|
16639
|
+
[name: string]: unknown;
|
|
16640
|
+
};
|
|
16641
|
+
content: {
|
|
16642
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16643
|
+
};
|
|
16644
|
+
};
|
|
16645
|
+
/** @description Unexpected Dexto failure. */
|
|
16646
|
+
500: {
|
|
16647
|
+
headers: {
|
|
16648
|
+
[name: string]: unknown;
|
|
16649
|
+
};
|
|
16650
|
+
content: {
|
|
16651
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16652
|
+
};
|
|
16653
|
+
};
|
|
16654
|
+
/** @description The upstream model provider failed. */
|
|
16655
|
+
502: {
|
|
16656
|
+
headers: {
|
|
16657
|
+
[name: string]: unknown;
|
|
16658
|
+
};
|
|
16659
|
+
content: {
|
|
16660
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16661
|
+
};
|
|
16662
|
+
};
|
|
16663
|
+
/** @description A required Dexto service is temporarily unavailable. */
|
|
16664
|
+
503: {
|
|
16665
|
+
headers: {
|
|
16666
|
+
[name: string]: unknown;
|
|
16667
|
+
};
|
|
16668
|
+
content: {
|
|
16669
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16670
|
+
};
|
|
16671
|
+
};
|
|
16672
|
+
};
|
|
16673
|
+
};
|
|
16674
|
+
promoteSiteDeployment: {
|
|
16675
|
+
parameters: {
|
|
16676
|
+
query?: never;
|
|
16677
|
+
header?: never;
|
|
16678
|
+
path: {
|
|
16679
|
+
site_id: string;
|
|
16680
|
+
deployment_id: string;
|
|
16681
|
+
};
|
|
16682
|
+
cookie?: never;
|
|
16683
|
+
};
|
|
16684
|
+
requestBody?: never;
|
|
16685
|
+
responses: {
|
|
16686
|
+
/** @description Successful response. */
|
|
16687
|
+
200: {
|
|
16688
|
+
headers: {
|
|
16689
|
+
[name: string]: unknown;
|
|
16690
|
+
};
|
|
16691
|
+
content: {
|
|
16692
|
+
"application/json": {
|
|
14160
16693
|
deployment: {
|
|
14161
16694
|
/** @description The deployment of the Site's Function this release serves; null for none. */
|
|
14162
16695
|
backend_deployment_id: string | null;
|
|
@@ -14183,11 +16716,8 @@ export interface operations {
|
|
|
14183
16716
|
/** Format: date-time */
|
|
14184
16717
|
updated_at: string;
|
|
14185
16718
|
};
|
|
14186
|
-
/** @description Whether this is the Site's first deployment. */
|
|
14187
|
-
first_deployment: boolean;
|
|
14188
16719
|
/** @constant */
|
|
14189
|
-
object: "site.
|
|
14190
|
-
promoted: boolean;
|
|
16720
|
+
object: "site.promotion";
|
|
14191
16721
|
site: {
|
|
14192
16722
|
/** @description The Function the Site mounts to serve its server routes; null for none. */
|
|
14193
16723
|
backend_function_id: string | null;
|
|
@@ -14196,24 +16726,151 @@ export interface operations {
|
|
|
14196
16726
|
/** Format: uuid */
|
|
14197
16727
|
id: string;
|
|
14198
16728
|
/** @constant */
|
|
14199
|
-
object: "site";
|
|
14200
|
-
slug: string;
|
|
16729
|
+
object: "site";
|
|
16730
|
+
slug: string;
|
|
16731
|
+
title: string;
|
|
16732
|
+
/** Format: date-time */
|
|
16733
|
+
updated_at: string;
|
|
16734
|
+
/**
|
|
16735
|
+
* Format: uri
|
|
16736
|
+
* @description The Site's production URL.
|
|
16737
|
+
*/
|
|
16738
|
+
url: string;
|
|
16739
|
+
/** @enum {string} */
|
|
16740
|
+
visibility: "private" | "unlisted" | "public";
|
|
16741
|
+
};
|
|
16742
|
+
/**
|
|
16743
|
+
* Format: uri
|
|
16744
|
+
* @description The Site's production URL.
|
|
16745
|
+
*/
|
|
16746
|
+
url: string;
|
|
16747
|
+
};
|
|
16748
|
+
};
|
|
16749
|
+
};
|
|
16750
|
+
/** @description Invalid JSON or request fields. */
|
|
16751
|
+
400: {
|
|
16752
|
+
headers: {
|
|
16753
|
+
[name: string]: unknown;
|
|
16754
|
+
};
|
|
16755
|
+
content: {
|
|
16756
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16757
|
+
};
|
|
16758
|
+
};
|
|
16759
|
+
/** @description Missing or invalid API key. */
|
|
16760
|
+
401: {
|
|
16761
|
+
headers: {
|
|
16762
|
+
[name: string]: unknown;
|
|
16763
|
+
};
|
|
16764
|
+
content: {
|
|
16765
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16766
|
+
};
|
|
16767
|
+
};
|
|
16768
|
+
/** @description The account has insufficient credits. */
|
|
16769
|
+
402: {
|
|
16770
|
+
headers: {
|
|
16771
|
+
[name: string]: unknown;
|
|
16772
|
+
};
|
|
16773
|
+
content: {
|
|
16774
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16775
|
+
};
|
|
16776
|
+
};
|
|
16777
|
+
/** @description The account cannot perform this operation. */
|
|
16778
|
+
403: {
|
|
16779
|
+
headers: {
|
|
16780
|
+
[name: string]: unknown;
|
|
16781
|
+
};
|
|
16782
|
+
content: {
|
|
16783
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16784
|
+
};
|
|
16785
|
+
};
|
|
16786
|
+
/** @description The requested resource was not found. */
|
|
16787
|
+
404: {
|
|
16788
|
+
headers: {
|
|
16789
|
+
[name: string]: unknown;
|
|
16790
|
+
};
|
|
16791
|
+
content: {
|
|
16792
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16793
|
+
};
|
|
16794
|
+
};
|
|
16795
|
+
/** @description The request conflicts with existing resource state. */
|
|
16796
|
+
409: {
|
|
16797
|
+
headers: {
|
|
16798
|
+
[name: string]: unknown;
|
|
16799
|
+
};
|
|
16800
|
+
content: {
|
|
16801
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16802
|
+
};
|
|
16803
|
+
};
|
|
16804
|
+
/** @description The account exceeded this operation's request rate. */
|
|
16805
|
+
429: {
|
|
16806
|
+
headers: {
|
|
16807
|
+
/** @description Seconds to wait before retrying. */
|
|
16808
|
+
"Retry-After"?: string;
|
|
16809
|
+
[name: string]: unknown;
|
|
16810
|
+
};
|
|
16811
|
+
content: {
|
|
16812
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16813
|
+
};
|
|
16814
|
+
};
|
|
16815
|
+
/** @description Unexpected Dexto failure. */
|
|
16816
|
+
500: {
|
|
16817
|
+
headers: {
|
|
16818
|
+
[name: string]: unknown;
|
|
16819
|
+
};
|
|
16820
|
+
content: {
|
|
16821
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16822
|
+
};
|
|
16823
|
+
};
|
|
16824
|
+
/** @description The upstream model provider failed. */
|
|
16825
|
+
502: {
|
|
16826
|
+
headers: {
|
|
16827
|
+
[name: string]: unknown;
|
|
16828
|
+
};
|
|
16829
|
+
content: {
|
|
16830
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16831
|
+
};
|
|
16832
|
+
};
|
|
16833
|
+
/** @description A required Dexto service is temporarily unavailable. */
|
|
16834
|
+
503: {
|
|
16835
|
+
headers: {
|
|
16836
|
+
[name: string]: unknown;
|
|
16837
|
+
};
|
|
16838
|
+
content: {
|
|
16839
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
16840
|
+
};
|
|
16841
|
+
};
|
|
16842
|
+
};
|
|
16843
|
+
};
|
|
16844
|
+
listArtifacts: {
|
|
16845
|
+
parameters: {
|
|
16846
|
+
query?: {
|
|
16847
|
+
after?: string;
|
|
16848
|
+
limit?: number;
|
|
16849
|
+
};
|
|
16850
|
+
header?: never;
|
|
16851
|
+
path?: never;
|
|
16852
|
+
cookie?: never;
|
|
16853
|
+
};
|
|
16854
|
+
requestBody?: never;
|
|
16855
|
+
responses: {
|
|
16856
|
+
/** @description Successful response. */
|
|
16857
|
+
200: {
|
|
16858
|
+
headers: {
|
|
16859
|
+
[name: string]: unknown;
|
|
16860
|
+
};
|
|
16861
|
+
content: {
|
|
16862
|
+
"application/json": {
|
|
16863
|
+
data: {
|
|
16864
|
+
id: string;
|
|
16865
|
+
/** @constant */
|
|
16866
|
+
object: "artifact";
|
|
14201
16867
|
title: string;
|
|
14202
|
-
|
|
14203
|
-
|
|
14204
|
-
|
|
14205
|
-
|
|
14206
|
-
|
|
14207
|
-
|
|
14208
|
-
url: string;
|
|
14209
|
-
/** @enum {string} */
|
|
14210
|
-
visibility: "private" | "unlisted" | "public";
|
|
14211
|
-
};
|
|
14212
|
-
/**
|
|
14213
|
-
* Format: uri
|
|
14214
|
-
* @description The production URL when promoted; otherwise the deployment's preview URL.
|
|
14215
|
-
*/
|
|
14216
|
-
url: string;
|
|
16868
|
+
url: string | null;
|
|
16869
|
+
}[];
|
|
16870
|
+
/** @constant */
|
|
16871
|
+
object: "list";
|
|
16872
|
+
has_more: boolean;
|
|
16873
|
+
next_after: string | null;
|
|
14217
16874
|
};
|
|
14218
16875
|
};
|
|
14219
16876
|
};
|
|
@@ -14311,13 +16968,144 @@ export interface operations {
|
|
|
14311
16968
|
};
|
|
14312
16969
|
};
|
|
14313
16970
|
};
|
|
14314
|
-
|
|
16971
|
+
publishArtifact: {
|
|
16972
|
+
parameters: {
|
|
16973
|
+
query?: never;
|
|
16974
|
+
header?: never;
|
|
16975
|
+
path?: never;
|
|
16976
|
+
cookie?: never;
|
|
16977
|
+
};
|
|
16978
|
+
requestBody: {
|
|
16979
|
+
content: {
|
|
16980
|
+
"application/json": {
|
|
16981
|
+
title: string;
|
|
16982
|
+
html: string;
|
|
16983
|
+
/** @default */
|
|
16984
|
+
summary?: string;
|
|
16985
|
+
/**
|
|
16986
|
+
* @default document
|
|
16987
|
+
* @enum {string}
|
|
16988
|
+
*/
|
|
16989
|
+
kind?: "document" | "plan" | "mockup" | "prototype" | "slide-deck" | "visualization" | "interactive" | "other";
|
|
16990
|
+
};
|
|
16991
|
+
};
|
|
16992
|
+
};
|
|
16993
|
+
responses: {
|
|
16994
|
+
/** @description Created. */
|
|
16995
|
+
201: {
|
|
16996
|
+
headers: {
|
|
16997
|
+
[name: string]: unknown;
|
|
16998
|
+
};
|
|
16999
|
+
content: {
|
|
17000
|
+
"application/json": {
|
|
17001
|
+
id: string;
|
|
17002
|
+
/** @constant */
|
|
17003
|
+
object: "artifact";
|
|
17004
|
+
title: string;
|
|
17005
|
+
url: string | null;
|
|
17006
|
+
};
|
|
17007
|
+
};
|
|
17008
|
+
};
|
|
17009
|
+
/** @description Invalid JSON or request fields. */
|
|
17010
|
+
400: {
|
|
17011
|
+
headers: {
|
|
17012
|
+
[name: string]: unknown;
|
|
17013
|
+
};
|
|
17014
|
+
content: {
|
|
17015
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
17016
|
+
};
|
|
17017
|
+
};
|
|
17018
|
+
/** @description Missing or invalid API key. */
|
|
17019
|
+
401: {
|
|
17020
|
+
headers: {
|
|
17021
|
+
[name: string]: unknown;
|
|
17022
|
+
};
|
|
17023
|
+
content: {
|
|
17024
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
17025
|
+
};
|
|
17026
|
+
};
|
|
17027
|
+
/** @description The account has insufficient credits. */
|
|
17028
|
+
402: {
|
|
17029
|
+
headers: {
|
|
17030
|
+
[name: string]: unknown;
|
|
17031
|
+
};
|
|
17032
|
+
content: {
|
|
17033
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
17034
|
+
};
|
|
17035
|
+
};
|
|
17036
|
+
/** @description The account cannot perform this operation. */
|
|
17037
|
+
403: {
|
|
17038
|
+
headers: {
|
|
17039
|
+
[name: string]: unknown;
|
|
17040
|
+
};
|
|
17041
|
+
content: {
|
|
17042
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
17043
|
+
};
|
|
17044
|
+
};
|
|
17045
|
+
/** @description The requested resource was not found. */
|
|
17046
|
+
404: {
|
|
17047
|
+
headers: {
|
|
17048
|
+
[name: string]: unknown;
|
|
17049
|
+
};
|
|
17050
|
+
content: {
|
|
17051
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
17052
|
+
};
|
|
17053
|
+
};
|
|
17054
|
+
/** @description The request conflicts with existing resource state. */
|
|
17055
|
+
409: {
|
|
17056
|
+
headers: {
|
|
17057
|
+
[name: string]: unknown;
|
|
17058
|
+
};
|
|
17059
|
+
content: {
|
|
17060
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
17061
|
+
};
|
|
17062
|
+
};
|
|
17063
|
+
/** @description The account exceeded this operation's request rate. */
|
|
17064
|
+
429: {
|
|
17065
|
+
headers: {
|
|
17066
|
+
/** @description Seconds to wait before retrying. */
|
|
17067
|
+
"Retry-After"?: string;
|
|
17068
|
+
[name: string]: unknown;
|
|
17069
|
+
};
|
|
17070
|
+
content: {
|
|
17071
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
17072
|
+
};
|
|
17073
|
+
};
|
|
17074
|
+
/** @description Unexpected Dexto failure. */
|
|
17075
|
+
500: {
|
|
17076
|
+
headers: {
|
|
17077
|
+
[name: string]: unknown;
|
|
17078
|
+
};
|
|
17079
|
+
content: {
|
|
17080
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
17081
|
+
};
|
|
17082
|
+
};
|
|
17083
|
+
/** @description The upstream model provider failed. */
|
|
17084
|
+
502: {
|
|
17085
|
+
headers: {
|
|
17086
|
+
[name: string]: unknown;
|
|
17087
|
+
};
|
|
17088
|
+
content: {
|
|
17089
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
17090
|
+
};
|
|
17091
|
+
};
|
|
17092
|
+
/** @description A required Dexto service is temporarily unavailable. */
|
|
17093
|
+
503: {
|
|
17094
|
+
headers: {
|
|
17095
|
+
[name: string]: unknown;
|
|
17096
|
+
};
|
|
17097
|
+
content: {
|
|
17098
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
17099
|
+
};
|
|
17100
|
+
};
|
|
17101
|
+
};
|
|
17102
|
+
};
|
|
17103
|
+
getArtifact: {
|
|
14315
17104
|
parameters: {
|
|
14316
17105
|
query?: never;
|
|
14317
17106
|
header?: never;
|
|
14318
17107
|
path: {
|
|
14319
|
-
|
|
14320
|
-
deployment_id: string;
|
|
17108
|
+
id: string;
|
|
14321
17109
|
};
|
|
14322
17110
|
cookie?: never;
|
|
14323
17111
|
};
|
|
@@ -14330,60 +17118,11 @@ export interface operations {
|
|
|
14330
17118
|
};
|
|
14331
17119
|
content: {
|
|
14332
17120
|
"application/json": {
|
|
14333
|
-
|
|
14334
|
-
/** @description The deployment of the Site's Function this release serves; null for none. */
|
|
14335
|
-
backend_deployment_id: string | null;
|
|
14336
|
-
/**
|
|
14337
|
-
* @description production for the Site's live release; preview for any other.
|
|
14338
|
-
* @enum {string}
|
|
14339
|
-
*/
|
|
14340
|
-
channel: "preview" | "production";
|
|
14341
|
-
/** Format: date-time */
|
|
14342
|
-
created_at: string;
|
|
14343
|
-
/** Format: uuid */
|
|
14344
|
-
id: string;
|
|
14345
|
-
/** @constant */
|
|
14346
|
-
object: "site.deployment";
|
|
14347
|
-
/**
|
|
14348
|
-
* Format: uri
|
|
14349
|
-
* @description This deployment's own URL.
|
|
14350
|
-
*/
|
|
14351
|
-
preview_url: string;
|
|
14352
|
-
/** Format: uuid */
|
|
14353
|
-
site_id: string;
|
|
14354
|
-
/** @enum {string} */
|
|
14355
|
-
status: "failed" | "ready" | "retired";
|
|
14356
|
-
/** Format: date-time */
|
|
14357
|
-
updated_at: string;
|
|
14358
|
-
};
|
|
17121
|
+
id: string;
|
|
14359
17122
|
/** @constant */
|
|
14360
|
-
object: "
|
|
14361
|
-
|
|
14362
|
-
|
|
14363
|
-
backend_function_id: string | null;
|
|
14364
|
-
/** Format: date-time */
|
|
14365
|
-
created_at: string;
|
|
14366
|
-
/** Format: uuid */
|
|
14367
|
-
id: string;
|
|
14368
|
-
/** @constant */
|
|
14369
|
-
object: "site";
|
|
14370
|
-
slug: string;
|
|
14371
|
-
title: string;
|
|
14372
|
-
/** Format: date-time */
|
|
14373
|
-
updated_at: string;
|
|
14374
|
-
/**
|
|
14375
|
-
* Format: uri
|
|
14376
|
-
* @description The Site's production URL.
|
|
14377
|
-
*/
|
|
14378
|
-
url: string;
|
|
14379
|
-
/** @enum {string} */
|
|
14380
|
-
visibility: "private" | "unlisted" | "public";
|
|
14381
|
-
};
|
|
14382
|
-
/**
|
|
14383
|
-
* Format: uri
|
|
14384
|
-
* @description The Site's production URL.
|
|
14385
|
-
*/
|
|
14386
|
-
url: string;
|
|
17123
|
+
object: "artifact";
|
|
17124
|
+
title: string;
|
|
17125
|
+
url: string | null;
|
|
14387
17126
|
};
|
|
14388
17127
|
};
|
|
14389
17128
|
};
|