@deepraxis/sdk 0.1.1-dev.ed5af3e → 0.1.1-dev.f5193c4
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/METHODS.md +396 -1
- package/README.md +1 -1
- package/dist/automation.d.ts +54 -0
- package/dist/core/client.d.ts +7 -1
- package/dist/core/client.js +3 -0
- package/dist/core/transport.d.ts +9 -0
- package/dist/core/transport.js +13 -2
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +925 -55
- package/dist/generated/sdk.gen.js +2890 -483
- package/dist/generated/types.gen.d.ts +45219 -31915
- package/dist/helpers/file-upload.d.ts +2 -2
- package/dist/helpers/sandbox-templates.d.ts +121 -0
- package/dist/helpers/sandbox-templates.js +60 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/operations.generated.d.ts +4321 -609
- package/dist/operations.generated.js +8131 -3514
- package/dist/resources.generated.d.ts +465 -37
- package/dist/resources.generated.js +242 -1
- package/package.json +1 -1
|
@@ -343,7 +343,7 @@ export const computersList = (options) => (options?.client ?? client).get({
|
|
|
343
343
|
/**
|
|
344
344
|
* Create Computer
|
|
345
345
|
*
|
|
346
|
-
* Create a durable computer: a named machine whose files outlive sessions, for personal agents.
|
|
346
|
+
* Create a durable computer: a named machine whose files outlive sessions, for general and personal agents.
|
|
347
347
|
*
|
|
348
348
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.
|
|
349
349
|
*/
|
|
@@ -706,7 +706,7 @@ export const stopSessionBackgroundTask = (options) => (options.client ?? client)
|
|
|
706
706
|
*
|
|
707
707
|
* Request session context compaction and retrieve an operation receipt.
|
|
708
708
|
*
|
|
709
|
-
* Available only on /agent/v1. The body may be omitted or {}. Optional instructions must be a string and is forwarded unchanged. Idempotency-Key is forwarded unchanged; a UUID is generated when absent. Returns { type: session_compaction, id, status, reason? }, where id is the operation ID. queued/running return 202; skipped/succeeded/failed return 200. Non-string instructions return 400 invalid_request_error. Missing or inaccessible managed sessions return 404 not_found_error.
|
|
709
|
+
* Available only on /agent/v1. The body may be omitted or {}. Optional instructions must be a string and is forwarded unchanged. Idempotency-Key is forwarded unchanged; a UUID is generated when absent. Returns { type: session_compaction, id, status, reason? }, where id is the operation ID. queued/running return 202; skipped/succeeded/failed/cancelled return 200. Non-string instructions return 400 invalid_request_error. Missing or inaccessible managed sessions return 404 not_found_error.
|
|
710
710
|
*/
|
|
711
711
|
export const compactSession = (options) => (options.client ?? client).post({
|
|
712
712
|
security: [{
|
|
@@ -750,7 +750,7 @@ export const getSessionCompaction = (options) => (options.client ?? client).get(
|
|
|
750
750
|
*
|
|
751
751
|
* Read session compaction history and summaries.
|
|
752
752
|
*
|
|
753
|
-
* Available only on /agent/v1. Returns { data: [...] }. Each entry contains type, id, event_id, trigger, status, model, compacted_message_count, input_tokens_before, input_tokens_after, summary, error and created_at, as recorded by the service. Missing or inaccessible managed sessions return 404 not_found_error.
|
|
753
|
+
* Available only on /agent/v1. Returns { data: [...], active }. active is the queued or running compaction ({ type: session_compaction, id, status, trigger: manual|auto|idle }), or null when none; manual work takes precedence. Each data entry contains type, id, event_id, trigger, status, model, compacted_message_count, input_tokens_before, input_tokens_after, summary, error and created_at, as recorded by the service. Missing or inaccessible managed sessions return 404 not_found_error.
|
|
754
754
|
*/
|
|
755
755
|
export const listSessionCompactions = (options) => (options.client ?? client).get({
|
|
756
756
|
security: [{
|
|
@@ -1092,7 +1092,7 @@ export const fileListFiles = (options) => (options?.client ?? client).get({
|
|
|
1092
1092
|
/**
|
|
1093
1093
|
* Upload file
|
|
1094
1094
|
*
|
|
1095
|
-
* Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data, assistants and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File(["Return within 23 days."], "policy.txt", { type: "text/plain" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–
|
|
1095
|
+
* Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data, assistants and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File(["Return within 23 days."], "policy.txt", { type: "text/plain" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–7776000). Without expiry, the file persists until deleted.
|
|
1096
1096
|
*/
|
|
1097
1097
|
export const fileCreateFile = (options) => (options.client ?? client).post({
|
|
1098
1098
|
...formDataBodySerializer,
|
|
@@ -1169,7 +1169,7 @@ export const fileRetrieveFileContent = (options) => (options.client ?? client).g
|
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Create an upload
|
|
1171
1171
|
*
|
|
1172
|
-
* Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, uploads accept at most
|
|
1172
|
+
* Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, uploads accept at most 20 GiB (21474836480 bytes) and only user_data, assistants and vision purposes. Send parts of at most 64000000 bytes; an unfinished upload waits for them for 7 days, so a client can create → send parts → query GET /file/v1/uploads/{upload_id} → resend only the missing parts → complete. Optional part_size fixes every part length and makes each numbered part retryable with identical bytes. expires_after applies to the resulting file (3600–7776000 seconds on this own face); without it the file persists until deleted.
|
|
1173
1173
|
*/
|
|
1174
1174
|
export const fileCreateUpload = (options) => (options.client ?? client).post({
|
|
1175
1175
|
security: [{
|
|
@@ -1187,7 +1187,7 @@ export const fileCreateUpload = (options) => (options.client ?? client).post({
|
|
|
1187
1187
|
/**
|
|
1188
1188
|
* Add an upload part
|
|
1189
1189
|
*
|
|
1190
|
-
* Send one nonempty part as the multipart data field, at most 64000000 bytes. Parts may arrive concurrently in any order. Use upload_id from create. For a fixed-size upload, supply part_number starting at 1 and exactly part_size bytes except for the final remainder; retry the same number with identical bytes to recover its part ID. Without part_size, each request creates a new part and part_number is ignored. Save the returned part IDs for complete.
|
|
1190
|
+
* Send one nonempty part as the multipart data field, at most 64000000 bytes. Parts may arrive concurrently in any order. Use upload_id from create. For a fixed-size upload, supply part_number starting at 1 and exactly part_size bytes except for the final remainder; retry the same number with identical bytes to recover its part ID, and query GET /file/v1/uploads/{upload_id} to see which numbers already arrived. Without part_size, each request creates a new part and part_number is ignored. Save the returned part IDs for complete.
|
|
1191
1191
|
*/
|
|
1192
1192
|
export const fileAddUploadPart = (options) => (options.client ?? client).post({
|
|
1193
1193
|
...formDataBodySerializer,
|
|
@@ -1206,7 +1206,7 @@ export const fileAddUploadPart = (options) => (options.client ?? client).post({
|
|
|
1206
1206
|
/**
|
|
1207
1207
|
* Complete an upload
|
|
1208
1208
|
*
|
|
1209
|
-
* Assemble the uploaded parts into a file. Supply upload_id from create and part_ids from addPart in file byte order; their sizes must total the declared bytes. Optional md5 verifies the assembled content. Retrying identical part_ids and normalized md5 returns the same result; different inputs return 409. Unlike OpenAI, completed can contain a file still processing (status uploaded). Poll files.retrieve using file.id until status processed (own face state active); error, expiry or 404 means processing failed and the file cannot be used.
|
|
1209
|
+
* Assemble the uploaded parts into a file. Supply upload_id from create and part_ids from addPart in file byte order; their sizes must total the declared bytes. When parts were lost, query GET /file/v1/uploads/{upload_id} and resend them before completing. Optional md5 verifies the assembled content. Retrying identical part_ids and normalized md5 returns the same result; different inputs return 409. Unlike OpenAI, completed can contain a file still processing (status uploaded). Poll files.retrieve using file.id until status processed (own face state active); error, expiry or 404 means processing failed and the file cannot be used.
|
|
1210
1210
|
*/
|
|
1211
1211
|
export const fileCompleteUpload = (options) => (options.client ?? client).post({
|
|
1212
1212
|
security: [{
|
|
@@ -1235,6 +1235,86 @@ export const fileCancelUpload = (options) => (options.client ?? client).post({
|
|
|
1235
1235
|
url: '/file/v1/uploads/{upload_id}/cancel',
|
|
1236
1236
|
...options
|
|
1237
1237
|
});
|
|
1238
|
+
/**
|
|
1239
|
+
* Retrieve an upload
|
|
1240
|
+
*
|
|
1241
|
+
* Read the state of an unfinished upload — its status, declared bytes, fixed part_size and the parts it already holds (received_parts, each with part_number, bytes and sha256). After a break or a failed part, call it to resend only the missing numbers, then complete. A cancelled or expired upload is refused; a completed one returns its file. A missing or other-organization upload returns 404.
|
|
1242
|
+
*/
|
|
1243
|
+
export const fileRetrieveUpload = (options) => (options.client ?? client).get({
|
|
1244
|
+
security: [{
|
|
1245
|
+
key: 'BearerAuth',
|
|
1246
|
+
scheme: 'bearer',
|
|
1247
|
+
type: 'http'
|
|
1248
|
+
}],
|
|
1249
|
+
url: '/file/v1/uploads/{upload_id}',
|
|
1250
|
+
...options
|
|
1251
|
+
});
|
|
1252
|
+
/**
|
|
1253
|
+
* Create a one-time upload URL
|
|
1254
|
+
*
|
|
1255
|
+
* Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide basename, exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid, wrong-action or cross-organization URLs return 404. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {"filename":"photo.png","bytes":2048,"content_type":"image/png"}.
|
|
1256
|
+
*/
|
|
1257
|
+
export const fileCreateSignedUpload = (options) => (options.client ?? client).post({
|
|
1258
|
+
security: [{
|
|
1259
|
+
key: 'BearerAuth',
|
|
1260
|
+
scheme: 'bearer',
|
|
1261
|
+
type: 'http'
|
|
1262
|
+
}, {
|
|
1263
|
+
key: 'ApiKeyAuth',
|
|
1264
|
+
name: 'X-API-Key',
|
|
1265
|
+
type: 'apiKey'
|
|
1266
|
+
}],
|
|
1267
|
+
url: '/file/v1/uploads/signed',
|
|
1268
|
+
...options,
|
|
1269
|
+
headers: {
|
|
1270
|
+
'Content-Type': 'application/json',
|
|
1271
|
+
...options.headers
|
|
1272
|
+
}
|
|
1273
|
+
});
|
|
1274
|
+
/**
|
|
1275
|
+
* Create a download URL
|
|
1276
|
+
*
|
|
1277
|
+
* Download a file's bytes to a local disk from a coding agent without sending them through the model. Use file_id from file creation or listing, then run curl -fsSL -o <filename> '<url>' locally with the returned URL; GET needs no Authorization header. The link is reusable until expiry and supports a single byte Range (for example Range: bytes=0-9 returns 206). Revoke it with files.contentLinks.revoke, passing the token after /c/ in the URL. Expired, revoked, invalid or cross-organization URLs return 404. Lifetime defaults to 900 seconds and is at most 604800 seconds. Issuance requires the same credential and file-read access as files.retrieveContent; a processing file returns 409 FILE_NOT_READY, so poll files.retrieve until active before retrying. A missing, expired or other-organization file returns 404. Each issuance creates a new link. OpenAI Files has no signed download URL; this follows S3 presigned GET semantics. Example body: {"ttl_seconds":3600}.
|
|
1278
|
+
*/
|
|
1279
|
+
export const fileCreateContentUrl = (options) => (options.client ?? client).post({
|
|
1280
|
+
security: [{
|
|
1281
|
+
key: 'BearerAuth',
|
|
1282
|
+
scheme: 'bearer',
|
|
1283
|
+
type: 'http'
|
|
1284
|
+
}, {
|
|
1285
|
+
key: 'ApiKeyAuth',
|
|
1286
|
+
name: 'X-API-Key',
|
|
1287
|
+
type: 'apiKey'
|
|
1288
|
+
}],
|
|
1289
|
+
url: '/file/v1/files/{file_id}/content_url',
|
|
1290
|
+
...options,
|
|
1291
|
+
headers: {
|
|
1292
|
+
'Content-Type': 'application/json',
|
|
1293
|
+
...options.headers
|
|
1294
|
+
}
|
|
1295
|
+
});
|
|
1296
|
+
/**
|
|
1297
|
+
* Revoke a file content link
|
|
1298
|
+
*
|
|
1299
|
+
* Stop a previously issued content link from reading a file. Obtain the link with files.contentUrl.create. Use file_id from file creation or listing and the token path component from a content URL (/c/<token>), not the complete URL. The caller must own the file and have write access; a read-only binding is refused. Revocation propagates through the capability deny list within 15 minutes; the file and other links remain available. Only current IAM capability tokens can be revoked; legacy content links expire at the migration deadline. Example body: {"token":"<token from /c/>"}.
|
|
1300
|
+
*/
|
|
1301
|
+
export const fileRevokeContentLink = (options) => (options.client ?? client).post({
|
|
1302
|
+
security: [{
|
|
1303
|
+
key: 'BearerAuth',
|
|
1304
|
+
scheme: 'bearer',
|
|
1305
|
+
type: 'http'
|
|
1306
|
+
}, {
|
|
1307
|
+
key: 'ApiKeyAuth',
|
|
1308
|
+
name: 'X-API-Key',
|
|
1309
|
+
type: 'apiKey'
|
|
1310
|
+
}],
|
|
1311
|
+
url: '/file/v1/files/{file_id}/content_links:revoke',
|
|
1312
|
+
...options,
|
|
1313
|
+
headers: {
|
|
1314
|
+
'Content-Type': 'application/json',
|
|
1315
|
+
...options.headers
|
|
1316
|
+
}
|
|
1317
|
+
});
|
|
1238
1318
|
/**
|
|
1239
1319
|
* Health Check
|
|
1240
1320
|
*
|
|
@@ -1269,6 +1349,18 @@ export const metaMethodsSearch = (options) => (options?.client ?? client).get({
|
|
|
1269
1349
|
*
|
|
1270
1350
|
*/
|
|
1271
1351
|
export const metaMethodsRetrieve = (options) => (options.client ?? client).get({ url: '/meta/v1/methods/{name}', ...options });
|
|
1352
|
+
/**
|
|
1353
|
+
* Read documentation Markdown
|
|
1354
|
+
*
|
|
1355
|
+
* Read a platform guide or reference before implementing an unfamiliar capability. Public; no API key required. Take path from praxis.meta.docs.search, or use developers/automation/guides/write-workflow. Append #heading-id to path to read only that section, including its subsections. Encode the hash as %23 over HTTP; SDK callers pass it in the path string. lang defaults to zh; en selects the English page. Unknown pages or anchors return DOC_NOT_FOUND; search again for a valid path.
|
|
1356
|
+
*/
|
|
1357
|
+
export const metaDocsRetrieve = (options) => (options.client ?? client).get({ url: '/meta/v1/docs/{path}', ...options });
|
|
1358
|
+
/**
|
|
1359
|
+
* Search platform documentation
|
|
1360
|
+
*
|
|
1361
|
+
* Find guides and references by keyword before reading them with praxis.meta.docs.retrieve. Public; no API key required. Matches documentation titles, headings and page text without case sensitivity; all query words must occur. q is required; limit defaults to 20 and accepts 1–50. lang defaults to zh or use en for English. Returns paths, page titles, canonical URLs and short matching snippets; no matches returns an empty array.
|
|
1362
|
+
*/
|
|
1363
|
+
export const metaDocsSearch = (options) => (options.client ?? client).get({ url: '/meta/v1/docs/search', ...options });
|
|
1272
1364
|
/**
|
|
1273
1365
|
* List Models
|
|
1274
1366
|
*
|
|
@@ -1377,6 +1469,28 @@ export const remixVideo = (options) => (options.client ?? client).post({
|
|
|
1377
1469
|
url: '/model/v1/videos/{video_id}/remix',
|
|
1378
1470
|
...options
|
|
1379
1471
|
});
|
|
1472
|
+
/**
|
|
1473
|
+
* Ask structured decision questions
|
|
1474
|
+
*
|
|
1475
|
+
* Ask typed questions about a state and get calibrated probabilities instead of generated text. Same request and response as TypeSafe System One. Use model ids from model.models.list declaring typesafe.systemone. Send one or more noul, choice or score questions; answers use the same question ids. Input tokens are charged at the catalog input price; output tokens are free. usage.cost and X-Praxis-Cost-Usd expose the same customer charge in USD. box questions and assets are unsupported and return 400: images are not supported. Unknown top-level fields pass unchanged to the native upstream.
|
|
1476
|
+
*/
|
|
1477
|
+
export const createSystemone = (options) => (options.client ?? client).post({
|
|
1478
|
+
security: [{
|
|
1479
|
+
key: 'BearerAuth',
|
|
1480
|
+
scheme: 'bearer',
|
|
1481
|
+
type: 'http'
|
|
1482
|
+
}, {
|
|
1483
|
+
key: 'ApiKeyAuth',
|
|
1484
|
+
name: 'X-API-Key',
|
|
1485
|
+
type: 'apiKey'
|
|
1486
|
+
}],
|
|
1487
|
+
url: '/model/v1/systemone',
|
|
1488
|
+
...options,
|
|
1489
|
+
headers: {
|
|
1490
|
+
'Content-Type': 'application/json',
|
|
1491
|
+
...options.headers
|
|
1492
|
+
}
|
|
1493
|
+
});
|
|
1380
1494
|
/**
|
|
1381
1495
|
* Transcribe audio
|
|
1382
1496
|
*
|
|
@@ -1888,6 +2002,24 @@ export const countResponseInputTokens = (options) => (options.client ?? client).
|
|
|
1888
2002
|
...options.headers
|
|
1889
2003
|
}
|
|
1890
2004
|
});
|
|
2005
|
+
/**
|
|
2006
|
+
* List organization members
|
|
2007
|
+
*
|
|
2008
|
+
* Concepts follow GitHub org members: find a person's user id, for example to assign an approver to an approval task. Lists only members of the organization behind your API key or runtime token, ordered by joined_at ascending (membership id breaks ties). Ask the user who should approve, then use that member's id. Emails are visible only within this organization. The request cannot select another organization. Pass next_page unchanged as page; null means the end. Read-only; no usage charge. Example: GET /organization/v1/members?limit=20.
|
|
2009
|
+
*/
|
|
2010
|
+
export const listOrganizationMembers = (options) => (options?.client ?? client).get({
|
|
2011
|
+
security: [{
|
|
2012
|
+
key: 'BearerAuth',
|
|
2013
|
+
scheme: 'bearer',
|
|
2014
|
+
type: 'http'
|
|
2015
|
+
}, {
|
|
2016
|
+
key: 'ApiKeyAuth',
|
|
2017
|
+
name: 'X-API-Key',
|
|
2018
|
+
type: 'apiKey'
|
|
2019
|
+
}],
|
|
2020
|
+
url: '/organization/v1/members',
|
|
2021
|
+
...options
|
|
2022
|
+
});
|
|
1891
2023
|
/**
|
|
1892
2024
|
* List your organization's feedback
|
|
1893
2025
|
*
|
|
@@ -2372,7 +2504,7 @@ export const makeSandboxDirectory = (options) => (options.client ?? client).post
|
|
|
2372
2504
|
/**
|
|
2373
2505
|
* Run a command in the sandbox
|
|
2374
2506
|
*
|
|
2375
|
-
* Execute a shell command and wait for stdout, stderr and exitCode. Supply cmd, optional cwd and envs, and timeoutMs (1–
|
|
2507
|
+
* Execute a shell command and wait for stdout, stderr and exitCode. Supply cmd, optional cwd and envs, and timeoutMs (1–3600000 milliseconds, default 600000, that is 10 minutes; E2B defaults to 60000). Unlike E2B, this endpoint is synchronous only: no background mode, callbacks or unlimited timeout (timeoutMs 0); output is bounded to 1 MiB including stream framing. Nonzero exit codes return 200 with the result. A timeout returns COMMAND_TIMEOUT (504); transport timeout does not confirm process termination, so do not blindly retry commands with side effects. Example body: {"cmd":"echo hi"}.
|
|
2376
2508
|
*/
|
|
2377
2509
|
export const runSandboxCommand = (options) => (options.client ?? client).post({
|
|
2378
2510
|
security: [{
|
|
@@ -2452,7 +2584,7 @@ export const sessionsUpdate = (options) => (options.client ?? client).post({
|
|
|
2452
2584
|
/**
|
|
2453
2585
|
* List agents
|
|
2454
2586
|
*
|
|
2455
|
-
* List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=personal for durable-computer agents
|
|
2587
|
+
* List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=general or kind=personal for durable-computer agents, kind=service for per-session environments, or kind=assume for external MCP clients. Pass next_page from the response as page to read the next page; a null next_page means the end.
|
|
2456
2588
|
*/
|
|
2457
2589
|
export const agentsList = (options) => (options?.client ?? client).get({
|
|
2458
2590
|
security: [{
|
|
@@ -2470,7 +2602,7 @@ export const agentsList = (options) => (options?.client ?? client).get({
|
|
|
2470
2602
|
/**
|
|
2471
2603
|
* Create agent
|
|
2472
2604
|
*
|
|
2473
|
-
* Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: "custom", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send "latest", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: "agent_toolset_20260401"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: "agent_toolset_20260401", default_config: {enabled: false}, configs: [{name: "codemode", enabled: true}, {name: "bash", enabled: true, permission_policy: {type: "always_ask"}}]}]; every tool not listed, including todo_write, enter_plan_mode, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 "model <id> is not in the model catalog" and an embedding, image or speech model returns 400 "model <id> cannot run an agent". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {"name":"helper","model":{"id":"deepseek-flash"},"tools":[{"type":"agent_toolset_20260401"}]}.
|
|
2605
|
+
* Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: "custom", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send "latest", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: "agent_toolset_20260401"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: "agent_toolset_20260401", default_config: {enabled: false}, configs: [{name: "codemode", enabled: true}, {name: "bash", enabled: true, permission_policy: {type: "always_ask"}}]}]; every tool not listed, including todo_write, enter_plan_mode, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 "model <id> is not in the model catalog" and an embedding, image or speech model returns 400 "model <id> cannot run an agent". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {"name":"helper","model":{"id":"deepseek-flash"},"tools":[{"type":"agent_toolset_20260401"}]}. For kind assume, provide name without model, models, subagent_model, subagents or multiagent; omit computer_id to register a new computer named after the agent without starting an instance, or provide an existing computer_id; vault_ids are accepted, bindings and environment_id are refused. Drive assume agents over MCP at /agent/v1/agents/{id}/mcp.
|
|
2474
2606
|
*/
|
|
2475
2607
|
export const agentsCreate = (options) => (options.client ?? client).post({
|
|
2476
2608
|
security: [{
|
|
@@ -2510,7 +2642,7 @@ export const agentsRetrieve = (options) => (options.client ?? client).get({
|
|
|
2510
2642
|
/**
|
|
2511
2643
|
* Update agent
|
|
2512
2644
|
*
|
|
2513
|
-
* Save configuration changes as a new immutable version. Send latest_version from a default retrieve or update response as the request version for optimistic concurrency; a stale value returns 409. apply defaults to true and makes the new version effective; apply false saves without changing active_version. The response contains the effective configuration, with version equal to active_version and latest_version naming the newest saved version. An unchanged configuration, including a note-only update, is a no-op returning 200 and the current effective version without creating or activating a version. version_note records up to 280 characters only when a configuration change creates a new version; null is equivalent to omission. Use agents.versions.apply to activate an existing saved version. Existing sessions and tokens keep their version. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: "custom", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send "latest", to use the skill's newest version when a session starts. type anthropic returns 400.
|
|
2645
|
+
* Save configuration changes as a new immutable version. Send latest_version from a default retrieve or update response as the request version for optimistic concurrency; a stale value returns 409. apply defaults to true and makes the new version effective; apply false saves without changing active_version. The response contains the effective configuration, with version equal to active_version and latest_version naming the newest saved version. An unchanged configuration, including a note-only update, is a no-op returning 200 and the current effective version without creating or activating a version. version_note records up to 280 characters only when a configuration change creates a new version; null is equivalent to omission. Use agents.versions.apply to activate an existing saved version. Existing sessions and tokens keep their version. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: "custom", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send "latest", to use the skill's newest version when a session starts. type anthropic returns 400. Assume agents reject model, models, subagent_model, subagents and multiagent on every update; other fields follow the general agent rules, with vault_ids also accepted.
|
|
2514
2646
|
*/
|
|
2515
2647
|
export const agentsUpdate = (options) => (options.client ?? client).post({
|
|
2516
2648
|
security: [{
|
|
@@ -2586,7 +2718,7 @@ export const sessionsList = (options) => (options?.client ?? client).get({
|
|
|
2586
2718
|
/**
|
|
2587
2719
|
* Create session
|
|
2588
2720
|
*
|
|
2589
|
-
* Create a session: one conversation with an agent. Pass agent as an agent id or {type:"agent", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (light for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:"agent_with_overrides", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:"limit", max_list_cost:{amount, currency:"USD"}} where amount is a positive decimal string of US dollars with at most 2 decimal places ("20.00" is USD 20.00); omitted budget defaults to "20.00" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.
|
|
2721
|
+
* Create a session: one conversation with an agent. Pass agent as an agent id or {type:"agent", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (light for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:"agent_with_overrides", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:"limit", max_list_cost:{amount, currency:"USD"}} where amount is a positive decimal string of US dollars with at most 2 decimal places ("20.00" is USD 20.00); omitted budget defaults to "20.00" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion. Assume agents return 400 INVALID_PARAMS; drive them over MCP at /agent/v1/agents/{id}/mcp instead.
|
|
2590
2722
|
*/
|
|
2591
2723
|
export const sessionsCreate = (options) => (options.client ?? client).post({
|
|
2592
2724
|
security: [{
|
|
@@ -2966,7 +3098,7 @@ export const deploymentsList = (options) => (options?.client ?? client).get({
|
|
|
2966
3098
|
/**
|
|
2967
3099
|
* Create deployment
|
|
2968
3100
|
*
|
|
2969
|
-
* Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for personal agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400.
|
|
3101
|
+
* Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general and personal agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400.
|
|
2970
3102
|
*/
|
|
2971
3103
|
export const deploymentsCreate = (options) => (options.client ?? client).post({
|
|
2972
3104
|
security: [{
|
|
@@ -3612,7 +3744,7 @@ export const applicationListGrants = (options) => (options.client ?? client).get
|
|
|
3612
3744
|
/**
|
|
3613
3745
|
* Create grant
|
|
3614
3746
|
*
|
|
3615
|
-
*
|
|
3747
|
+
* Record access to an organization-owned database or knowledge base, all organization files (files, id *), or models (models, id *, read only). Each resource and optional alias must be unique within this Worker. Foreign and missing resources both return RESOURCE_NOT_FOUND (404); an unavailable resource service returns PROVIDER_CAPACITY (503, retryable).
|
|
3616
3748
|
*/
|
|
3617
3749
|
export const applicationCreateGrant = (options) => (options.client ?? client).post({
|
|
3618
3750
|
security: [{
|
|
@@ -3757,7 +3889,7 @@ export const automationActionsGet = (options) => (options.client ?? client).get(
|
|
|
3757
3889
|
/**
|
|
3758
3890
|
* Update an action
|
|
3759
3891
|
*
|
|
3760
|
-
* Update after checking compatibility against the current and five recent revisions. Widening inputs and narrowing outputs are compatible, including length, item count, property count, type (integer/number), and multipleOf (the new input factor divides the old one; the reverse holds for outputs). dry_run=true returns only CompatResult and may omit If-Match; a supplied header is still checked, and * matches any existing representation. Normal updates require If-Match and return ActionDef with ETag; previews return no ETag. Omitted optional fields retain their existing values only for description and labels; when constructing a new revision, errors defaults to [], omitted annotations keys to false, timeout_ms to
|
|
3892
|
+
* Update after checking compatibility against the current and five recent revisions. Widening inputs and narrowing outputs are compatible, including length, item count, property count, type (integer/number), and multipleOf (the new input factor divides the old one; the reverse holds for outputs). dry_run=true returns only CompatResult and may omit If-Match; a supplied header is still checked, and * matches any existing representation. Normal updates require If-Match and return ActionDef with ETag; previews return no ETag. Omitted optional fields retain their existing values only for description and labels; when constructing a new revision, errors defaults to [], omitted annotations keys to false, timeout_ms to 300000, and message to null. Incompatible normal updates return 422 SCHEMA_INCOMPATIBLE with issues; unchanged contents retain the existing revision.
|
|
3761
3893
|
*/
|
|
3762
3894
|
export const automationActionsUpdate = (options) => (options.client ?? client).put({
|
|
3763
3895
|
security: [{
|
|
@@ -4200,7 +4332,7 @@ export const automationWorkflowsList = (options) => (options?.client ?? client).
|
|
|
4200
4332
|
/**
|
|
4201
4333
|
* Create a workflow
|
|
4202
4334
|
*
|
|
4203
|
-
* Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl ("1.0.3"), namespace, name and version, plus a do list of steps, for example document: {dsl: "1.0.3", namespace: demo, name: add, version: "1.0.0"} and do: [{first: {call: demo/add-one, with: {n: "${ .n }"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action
|
|
4335
|
+
* Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax. Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl ("1.0.3"), namespace, name and version, plus a do list of steps, for example document: {dsl: "1.0.3", namespace: demo, name: add, version: "1.0.0"} and do: [{first: {call: demo/add-one, with: {n: "${ .n }"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action 5 min (run-sandbox 6 h), workflow 24 h by default and 30 days at most, payload 1 MiB. Test the draft by sending its source and language=yaml to praxis.automation.runs.create. To pause for a person, call praxis/approval (it opens a human task; the step output is the decision); agents answer with praxis.automation.humanTasks.respond on behalf of their user. Guide: /docs/developers/automation/guides/approvals Guide: /docs/developers/automation/guides/write-workflow. Error details are in the errors[] of the response (pointer, detail, hint). Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. run.workflow accepts ns/name@range or {namespace, name, version, input}; run.script uses the same reference shape as a platform extension. Object namespace, name and version are required; version accepts an exact version, dist-tag or range, locked at publication. Object input defaults to {} and supports expressions; string references retain task-level with. run.await defaults to true and returns the child output. With false, the child uses detach and the task immediately returns {run_id}; parent cancellation does not cascade. Inline script.code returns DEFINITION_INVALID with a detail asking you to save a script and reference it first. raise.error retains its type URI, status, title and detail in the run error.
|
|
4204
4336
|
*/
|
|
4205
4337
|
export const automationWorkflowsCreate = (options) => (options.client ?? client).post({
|
|
4206
4338
|
security: [{
|
|
@@ -4240,7 +4372,7 @@ export const automationWorkflowsGet = (options) => (options.client ?? client).ge
|
|
|
4240
4372
|
/**
|
|
4241
4373
|
* Update a workflow draft
|
|
4242
4374
|
*
|
|
4243
|
-
* Update description, labels or draft with the current draft revision in If-Match, taken from draft.revision in the get-workflow response. Even metadata-only updates create a new draft revision. A mismatch returns 412 PRECONDITION_FAILED; read the draft again, merge and retry. The draft is not validated here, so check it with validate (kind=workflow) before publishing. Error details are in errors[].
|
|
4375
|
+
* Update description, labels or draft with the current draft revision in If-Match, taken from draft.revision in the get-workflow response. Even metadata-only updates create a new draft revision. A mismatch returns 412 PRECONDITION_FAILED; read the draft again, merge and retry. The draft is not validated here, so check it with validate (kind=workflow) before publishing. Error details are in errors[]. See the workflow syntax reference at https://deepraxis.com/docs/developers/automation/reference/workflow-syntax.
|
|
4244
4376
|
*/
|
|
4245
4377
|
export const automationWorkflowsPatch = (options) => (options.client ?? client).patch({
|
|
4246
4378
|
security: [{
|
|
@@ -4444,7 +4576,7 @@ export const automationWorkflowsSetDistTag = (options) => (options.client ?? cli
|
|
|
4444
4576
|
/**
|
|
4445
4577
|
* Validate a definition
|
|
4446
4578
|
*
|
|
4447
|
-
* Check source without executing it when you need diagnostics, inferred schemas or references. This is optional before praxis.automation.runs.create, which also validates source before execution. Actions, scripts and workflows are supported; results include validity without saving. Invalid source is reported with valid=false. Script/action output schemas are inferred from return types: Promise unwrapping, Record, intersections and Date. Unknown types yield an empty schema and a warning in warnings. Source diagnostics use /source or /implementation/source with 1-based line/column. For kind=action the same admission checks as action creation apply (no external imports, platform operations only as direct call(praxis/<api>.<op>, input) calls, no agent or automation calls), so source that validates is not rejected at creation. For kind=workflow the YAML needs document (dsl, namespace, name, version) and do; each problem is one entry in errors[] (pointer, detail, hint), so read the first one. A listen outside the supported subset (to.all, inside a fork) and emit are not reported here and fail with DEFINITION_INVALID only when a run is created.
|
|
4579
|
+
* Check source without executing it when you need diagnostics, inferred schemas or references. This is optional before praxis.automation.runs.create, which also validates source before execution. Actions, scripts and workflows are supported; results include validity without saving. Invalid source is reported with valid=false. Script/action output schemas are inferred from return types: Promise unwrapping, Record, intersections and Date. Unknown types yield an empty schema and a warning in warnings. Source diagnostics use /source or /implementation/source with 1-based line/column. For kind=action the same admission checks as action creation apply (no external imports, platform operations only as direct call(praxis/<api>.<op>, input) calls, no agent or automation calls), so source that validates is not rejected at creation. For kind=workflow the YAML needs document (dsl, namespace, name, version) and do; each problem is one entry in errors[] (pointer, detail, hint), so read the first one. A listen outside the supported subset (to.all, inside a fork) and emit are not reported here and fail with DEFINITION_INVALID only when a run is created. Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax.
|
|
4448
4580
|
*/
|
|
4449
4581
|
export const automationValidateValidate = (options) => (options.client ?? client).post({
|
|
4450
4582
|
security: [{
|
|
@@ -4532,7 +4664,7 @@ export const automationRunsList = (options) => (options?.client ?? client).get({
|
|
|
4532
4664
|
/**
|
|
4533
4665
|
* Run a published target or execute draft source
|
|
4534
4666
|
*
|
|
4535
|
-
* Execute a published script or workflow with target, or test unpublished code directly with source and language (ts for TypeScript, yaml for workflow YAML), without first saving or publishing a definition. Minimal script: `export default async ({ file_id }: { file_id: string }) => { const result = await call("ocr", { document: { type: "file", file_id } }); return result; }`; send it as source with language="ts", input={"file_id":"<uploaded file ID>"} and wait=0, using a PDF or image already uploaded to your account. To call a platform API directly in the same script, use the praxis SDK object, for example `praxis.model.ocr.create({ body: { model: "glm-ocr", document: { type: "file", file_id } } })`; Action IDs are strings passed to call(), not SDK methods such as praxis.ocr(...). praxis, call, invoke, console and codemode are module-scope bindings, not on globalThis, and need no import; invoke("namespace/name", input) starts a child run. target and source are mutually exclusive; target accepts ns/name@version, @tag or @range and defaults to latest when @ is omitted. Source/input validation precedes run creation, so a separate validate call is optional. input defaults to {} and must match the input schema and fit within 1 MiB. wait is 0–60 seconds (default 0): a terminal run returns 200, otherwise 202. Use the returned id with praxis.automation.runs.retrieve and inspect status, output and error; acceptance does not mean successful completion. For long-running, background or batch work, use wait: 0 and poll the run, or split work into child runs or a workflow; wait only controls the response wait and does not extend execution limits. Actions time out after
|
|
4667
|
+
* Execute a published script or workflow with target, or test unpublished code directly with source and language (ts for TypeScript, yaml for workflow YAML), without first saving or publishing a definition. Minimal script: `export default async ({ file_id }: { file_id: string }) => { const result = await call("ocr", { document: { type: "file", file_id } }); return result; }`; send it as source with language="ts", input={"file_id":"<uploaded file ID>"} and wait=0, using a PDF or image already uploaded to your account. To call a platform API directly in the same script, use the praxis SDK object, for example `praxis.model.ocr.create({ body: { model: "glm-ocr", document: { type: "file", file_id } } })`; Action IDs are strings passed to call(), not SDK methods such as praxis.ocr(...). praxis, call, invoke, console and codemode are module-scope bindings, not on globalThis, and need no import; invoke("namespace/name", input) starts a child run. target and source are mutually exclusive; target accepts ns/name@version, @tag or @range and defaults to latest when @ is omitted. Source/input validation precedes run creation, so a separate validate call is optional. input defaults to {} and must match the input schema and fit within 1 MiB. wait is 0–60 seconds (default 0): a terminal run returns 200, otherwise 202. Use the returned id with praxis.automation.runs.retrieve and inspect status, output and error; acceptance does not mean successful completion. For long-running, background or batch work, use wait: 0 and poll the run, or split work into child runs or a workflow; wait only controls the response wait and does not extend execution limits. Actions time out after 5 min (run-sandbox after 6 h); scripts have a 30 min wall-clock limit and a 30 s CPU limit; workflows default to 24 h and allow up to 30 days. Each run can start at most 1,000 child runs, with at most 100 active at once; nesting depth is limited to 10. Idempotency-Key is scoped to tenant, method and path for 24 hours, excluding wait from the fingerprint; replay returns the current run with Idempotent-Replayed: true, changed contents return 422 and an in-flight request returns 409. With language=yaml, source is a workflow YAML: the run input is . in the first step, and the shape is described in create workflow. Error details are in errors[] (pointer, detail, hint). New non-deterministic run IDs contain 78 characters, compared with 46 for legacy random IDs; treat IDs as opaque strings. Historical and deterministic IDs remain valid; same-millisecond order is not guaranteed.
|
|
4536
4668
|
*/
|
|
4537
4669
|
export const automationRunsCreate = (options) => (options.client ?? client).post({
|
|
4538
4670
|
security: [{
|
|
@@ -5139,31 +5271,57 @@ export const automationHumanTasksDelegate = (options) => (options.client ?? clie
|
|
|
5139
5271
|
}
|
|
5140
5272
|
});
|
|
5141
5273
|
/**
|
|
5142
|
-
* List
|
|
5274
|
+
* List script vault bindings
|
|
5143
5275
|
*
|
|
5144
|
-
*
|
|
5276
|
+
* Inspect the whole vaults attached to a saved script, including archived definitions, without reading secret values. Obtain ns and name from automation.scripts.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.
|
|
5145
5277
|
*/
|
|
5146
|
-
export const
|
|
5278
|
+
export const automationScriptsVaultsList = (options) => (options.client ?? client).get({
|
|
5147
5279
|
security: [{
|
|
5148
|
-
key: '
|
|
5280
|
+
key: 'BearerAuth',
|
|
5149
5281
|
scheme: 'bearer',
|
|
5150
5282
|
type: 'http'
|
|
5283
|
+
}, {
|
|
5284
|
+
key: 'ApiKeyAuth',
|
|
5285
|
+
name: 'X-API-Key',
|
|
5286
|
+
type: 'apiKey'
|
|
5151
5287
|
}],
|
|
5152
|
-
url: '/
|
|
5288
|
+
url: '/automation/v1/scripts/{ns}/{name}/vaults',
|
|
5153
5289
|
...options
|
|
5154
5290
|
});
|
|
5155
5291
|
/**
|
|
5156
|
-
*
|
|
5292
|
+
* Delete a script vault binding
|
|
5157
5293
|
*
|
|
5158
|
-
*
|
|
5294
|
+
* Remove the vault assignment from this saved script without deleting the vault or its secrets. Obtain aliases from automation.scripts.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.
|
|
5159
5295
|
*/
|
|
5160
|
-
export const
|
|
5296
|
+
export const automationScriptsVaultsDelete = (options) => (options.client ?? client).delete({
|
|
5161
5297
|
security: [{
|
|
5162
|
-
key: '
|
|
5298
|
+
key: 'BearerAuth',
|
|
5163
5299
|
scheme: 'bearer',
|
|
5164
5300
|
type: 'http'
|
|
5301
|
+
}, {
|
|
5302
|
+
key: 'ApiKeyAuth',
|
|
5303
|
+
name: 'X-API-Key',
|
|
5304
|
+
type: 'apiKey'
|
|
5165
5305
|
}],
|
|
5166
|
-
url: '/
|
|
5306
|
+
url: '/automation/v1/scripts/{ns}/{name}/vaults/{alias}',
|
|
5307
|
+
...options
|
|
5308
|
+
});
|
|
5309
|
+
/**
|
|
5310
|
+
* Set a script vault binding
|
|
5311
|
+
*
|
|
5312
|
+
* Attach an entire active vault in your organization to a saved script, or replace the vault at an existing alias. Obtain the vault ID or display name from praxis.vault.vaults.list; ambiguous names require an ID. Bindings are independent of published versions and survive archival. The same vault cannot be assigned to two aliases on one definition. Repeating the same assignment is idempotent. Example body: {"vault":"Production"}.
|
|
5313
|
+
*/
|
|
5314
|
+
export const automationScriptsVaultsSet = (options) => (options.client ?? client).put({
|
|
5315
|
+
security: [{
|
|
5316
|
+
key: 'BearerAuth',
|
|
5317
|
+
scheme: 'bearer',
|
|
5318
|
+
type: 'http'
|
|
5319
|
+
}, {
|
|
5320
|
+
key: 'ApiKeyAuth',
|
|
5321
|
+
name: 'X-API-Key',
|
|
5322
|
+
type: 'apiKey'
|
|
5323
|
+
}],
|
|
5324
|
+
url: '/automation/v1/scripts/{ns}/{name}/vaults/{alias}',
|
|
5167
5325
|
...options,
|
|
5168
5326
|
headers: {
|
|
5169
5327
|
'Content-Type': 'application/json',
|
|
@@ -5171,45 +5329,57 @@ export const databaseCreateDatabase = (options) => (options.client ?? client).po
|
|
|
5171
5329
|
}
|
|
5172
5330
|
});
|
|
5173
5331
|
/**
|
|
5174
|
-
*
|
|
5332
|
+
* List workflow vault bindings
|
|
5175
5333
|
*
|
|
5176
|
-
*
|
|
5334
|
+
* Inspect the whole vaults attached to a saved workflow, including archived definitions, without reading secret values. Obtain ns and name from automation.workflows.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.
|
|
5177
5335
|
*/
|
|
5178
|
-
export const
|
|
5336
|
+
export const automationWorkflowsVaultsList = (options) => (options.client ?? client).get({
|
|
5179
5337
|
security: [{
|
|
5180
|
-
key: '
|
|
5338
|
+
key: 'BearerAuth',
|
|
5181
5339
|
scheme: 'bearer',
|
|
5182
5340
|
type: 'http'
|
|
5341
|
+
}, {
|
|
5342
|
+
key: 'ApiKeyAuth',
|
|
5343
|
+
name: 'X-API-Key',
|
|
5344
|
+
type: 'apiKey'
|
|
5183
5345
|
}],
|
|
5184
|
-
url: '/
|
|
5346
|
+
url: '/automation/v1/workflows/{ns}/{name}/vaults',
|
|
5185
5347
|
...options
|
|
5186
5348
|
});
|
|
5187
5349
|
/**
|
|
5188
|
-
*
|
|
5350
|
+
* Delete a workflow vault binding
|
|
5189
5351
|
*
|
|
5190
|
-
*
|
|
5352
|
+
* Remove the vault assignment from this saved workflow without deleting the vault or its secrets. Obtain aliases from automation.workflows.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.
|
|
5191
5353
|
*/
|
|
5192
|
-
export const
|
|
5354
|
+
export const automationWorkflowsVaultsDelete = (options) => (options.client ?? client).delete({
|
|
5193
5355
|
security: [{
|
|
5194
|
-
key: '
|
|
5356
|
+
key: 'BearerAuth',
|
|
5195
5357
|
scheme: 'bearer',
|
|
5196
5358
|
type: 'http'
|
|
5359
|
+
}, {
|
|
5360
|
+
key: 'ApiKeyAuth',
|
|
5361
|
+
name: 'X-API-Key',
|
|
5362
|
+
type: 'apiKey'
|
|
5197
5363
|
}],
|
|
5198
|
-
url: '/
|
|
5364
|
+
url: '/automation/v1/workflows/{ns}/{name}/vaults/{alias}',
|
|
5199
5365
|
...options
|
|
5200
5366
|
});
|
|
5201
5367
|
/**
|
|
5202
|
-
*
|
|
5368
|
+
* Set a workflow vault binding
|
|
5203
5369
|
*
|
|
5204
|
-
*
|
|
5370
|
+
* Attach an entire active vault in your organization to a saved workflow, or replace the vault at an existing alias. Obtain the vault ID or display name from praxis.vault.vaults.list; ambiguous names require an ID. Bindings are independent of published versions and survive archival. The same vault cannot be assigned to two aliases on one definition. Repeating the same assignment is idempotent. Example body: {"vault":"Production"}.
|
|
5205
5371
|
*/
|
|
5206
|
-
export const
|
|
5372
|
+
export const automationWorkflowsVaultsSet = (options) => (options.client ?? client).put({
|
|
5207
5373
|
security: [{
|
|
5208
|
-
key: '
|
|
5374
|
+
key: 'BearerAuth',
|
|
5209
5375
|
scheme: 'bearer',
|
|
5210
5376
|
type: 'http'
|
|
5377
|
+
}, {
|
|
5378
|
+
key: 'ApiKeyAuth',
|
|
5379
|
+
name: 'X-API-Key',
|
|
5380
|
+
type: 'apiKey'
|
|
5211
5381
|
}],
|
|
5212
|
-
url: '/
|
|
5382
|
+
url: '/automation/v1/workflows/{ns}/{name}/vaults/{alias}',
|
|
5213
5383
|
...options,
|
|
5214
5384
|
headers: {
|
|
5215
5385
|
'Content-Type': 'application/json',
|
|
@@ -5217,59 +5387,81 @@ export const databaseUpdateDatabase = (options) => (options.client ?? client).pa
|
|
|
5217
5387
|
}
|
|
5218
5388
|
});
|
|
5219
5389
|
/**
|
|
5220
|
-
*
|
|
5390
|
+
* List canvases
|
|
5221
5391
|
*
|
|
5222
|
-
*
|
|
5392
|
+
* Discover canvases in the API key's organization and obtain ids for retrieval or editing. Results are ordered by updated_at from newest to oldest. limit is 1–100 and defaults to 50; omit cursor for the first page, then copy next_cursor into the next request until it is null. Deleted canvases are unavailable.
|
|
5223
5393
|
*/
|
|
5224
|
-
export const
|
|
5394
|
+
export const canvasListCanvases = (options) => (options?.client ?? client).get({
|
|
5225
5395
|
security: [{
|
|
5226
|
-
key: '
|
|
5396
|
+
key: 'canvas-bearerAuth',
|
|
5227
5397
|
scheme: 'bearer',
|
|
5228
5398
|
type: 'http'
|
|
5229
5399
|
}],
|
|
5230
|
-
url: '/
|
|
5400
|
+
url: '/canvas/v1/canvases',
|
|
5231
5401
|
...options
|
|
5232
5402
|
});
|
|
5233
5403
|
/**
|
|
5234
|
-
*
|
|
5404
|
+
* Create canvas
|
|
5235
5405
|
*
|
|
5236
|
-
*
|
|
5406
|
+
* Create a blank design canvas in the API key's organization before drawing with praxis.canvas.canvases.execute. Send an optional name of at most 200 characters; omitting name uses Untitled. Each successful call creates a new canvas and returns its id and viewer_url with HTTP 201; save the id for subsequent reads, edits and deletion.
|
|
5237
5407
|
*/
|
|
5238
|
-
export const
|
|
5408
|
+
export const canvasCreateCanvas = (options) => (options?.client ?? client).post({
|
|
5239
5409
|
security: [{
|
|
5240
|
-
key: '
|
|
5410
|
+
key: 'canvas-bearerAuth',
|
|
5241
5411
|
scheme: 'bearer',
|
|
5242
5412
|
type: 'http'
|
|
5243
5413
|
}],
|
|
5244
|
-
url: '/
|
|
5414
|
+
url: '/canvas/v1/canvases',
|
|
5415
|
+
...options,
|
|
5416
|
+
headers: {
|
|
5417
|
+
'Content-Type': 'application/json',
|
|
5418
|
+
...options?.headers
|
|
5419
|
+
}
|
|
5420
|
+
});
|
|
5421
|
+
/**
|
|
5422
|
+
* Delete canvas
|
|
5423
|
+
*
|
|
5424
|
+
* Permanently delete a canvas and its design content when it is no longer needed. Obtain canvas_id from create or list and confirm the target before calling; deletion cannot be undone. HTTP 200 confirms deletion with deleted=true. Subsequent access returns CANVAS_NOT_FOUND, as it does for a missing canvas or one outside the API key's organization.
|
|
5425
|
+
*/
|
|
5426
|
+
export const canvasDeleteCanvas = (options) => (options.client ?? client).delete({
|
|
5427
|
+
security: [{
|
|
5428
|
+
key: 'canvas-bearerAuth',
|
|
5429
|
+
scheme: 'bearer',
|
|
5430
|
+
type: 'http'
|
|
5431
|
+
}],
|
|
5432
|
+
url: '/canvas/v1/canvases/{canvas_id}',
|
|
5245
5433
|
...options
|
|
5246
5434
|
});
|
|
5247
5435
|
/**
|
|
5248
|
-
*
|
|
5436
|
+
* Retrieve canvas
|
|
5249
5437
|
*
|
|
5250
|
-
*
|
|
5438
|
+
* Inspect the current canvas before editing, like Pencil get_app_state. The response adds top-level node summaries in canvas order and reusable component ids to the canvas metadata. Use these ids in nodes.list, images.list or an execute script; use the returned version as expected_version to detect concurrent edits. Read full node content with nodes.list rather than guessing fields from these summaries.
|
|
5251
5439
|
*/
|
|
5252
|
-
export const
|
|
5440
|
+
export const canvasRetrieveCanvas = (options) => (options.client ?? client).get({
|
|
5253
5441
|
security: [{
|
|
5254
|
-
key: '
|
|
5442
|
+
key: 'canvas-bearerAuth',
|
|
5255
5443
|
scheme: 'bearer',
|
|
5256
5444
|
type: 'http'
|
|
5257
5445
|
}],
|
|
5258
|
-
url: '/
|
|
5446
|
+
url: '/canvas/v1/canvases/{canvas_id}',
|
|
5259
5447
|
...options
|
|
5260
5448
|
});
|
|
5261
5449
|
/**
|
|
5262
|
-
*
|
|
5450
|
+
* Update canvas
|
|
5263
5451
|
*
|
|
5264
|
-
*
|
|
5452
|
+
* Rename a canvas or move it to a collection without editing its design content. Use a canvas id from canvases.list and a collection id from collections.list. Send collection_id=null to make it uncategorized; omit either field to preserve its current value. A canvas belongs to at most one collection. The destination must belong to your organization. Renaming keeps the canvas version unchanged.
|
|
5265
5453
|
*/
|
|
5266
|
-
export const
|
|
5454
|
+
export const canvasUpdateCanvas = (options) => (options.client ?? client).patch({
|
|
5267
5455
|
security: [{
|
|
5268
|
-
key: '
|
|
5456
|
+
key: 'BearerAuth',
|
|
5269
5457
|
scheme: 'bearer',
|
|
5270
5458
|
type: 'http'
|
|
5459
|
+
}, {
|
|
5460
|
+
key: 'ApiKeyAuth',
|
|
5461
|
+
name: 'X-API-Key',
|
|
5462
|
+
type: 'apiKey'
|
|
5271
5463
|
}],
|
|
5272
|
-
url: '/
|
|
5464
|
+
url: '/canvas/v1/canvases/{canvas_id}',
|
|
5273
5465
|
...options,
|
|
5274
5466
|
headers: {
|
|
5275
5467
|
'Content-Type': 'application/json',
|
|
@@ -5277,45 +5469,67 @@ export const databaseCreateTable = (options) => (options.client ?? client).post(
|
|
|
5277
5469
|
}
|
|
5278
5470
|
});
|
|
5279
5471
|
/**
|
|
5280
|
-
*
|
|
5472
|
+
* Read canvas nodes
|
|
5281
5473
|
*
|
|
5282
|
-
*
|
|
5474
|
+
* Read node documents for inspection before changing individual nodes. Supply 1–100 comma-separated node ids from retrieve or execute, or instance paths such as a/b. depth is an integer at least 0; omit it for complete subtrees. Each requested id maps to a document wrapper or null if absent. Unlike Figma, document contains a Pencil .pen 2.21 node, not a Figma node. For top-level summaries use canvases.retrieve; for pixels use images.list.
|
|
5283
5475
|
*/
|
|
5284
|
-
export const
|
|
5476
|
+
export const canvasListNodes = (options) => (options.client ?? client).get({
|
|
5285
5477
|
security: [{
|
|
5286
|
-
key: '
|
|
5478
|
+
key: 'canvas-bearerAuth',
|
|
5287
5479
|
scheme: 'bearer',
|
|
5288
5480
|
type: 'http'
|
|
5289
5481
|
}],
|
|
5290
|
-
url: '/
|
|
5482
|
+
url: '/canvas/v1/canvases/{canvas_id}/nodes',
|
|
5291
5483
|
...options
|
|
5292
5484
|
});
|
|
5293
5485
|
/**
|
|
5294
|
-
*
|
|
5486
|
+
* Render canvas nodes
|
|
5295
5487
|
*
|
|
5296
|
-
*
|
|
5488
|
+
* Render 1–4 nodes to inspect the visual result of a design edit. Use ids from retrieve, execute.created or execute.screenshots; scale defaults to 1 and accepts 0.25–4, and png is the only supported format. Unlike Figma, images contains inline data:image/png;base64,... URLs, not hosted image URLs; a null entry means no image is available for that id. Use nodes.list for editable node content instead of pixels.
|
|
5297
5489
|
*/
|
|
5298
|
-
export const
|
|
5490
|
+
export const canvasListImages = (options) => (options.client ?? client).get({
|
|
5299
5491
|
security: [{
|
|
5300
|
-
key: '
|
|
5492
|
+
key: 'canvas-bearerAuth',
|
|
5301
5493
|
scheme: 'bearer',
|
|
5302
5494
|
type: 'http'
|
|
5303
5495
|
}],
|
|
5304
|
-
url: '/
|
|
5496
|
+
url: '/canvas/v1/canvases/{canvas_id}/images',
|
|
5305
5497
|
...options
|
|
5306
5498
|
});
|
|
5307
5499
|
/**
|
|
5308
|
-
*
|
|
5500
|
+
* Execute canvas script
|
|
5501
|
+
*
|
|
5502
|
+
* Draw or edit a canvas atomically with a synchronous Pencil execute script. First create a canvas with praxis.canvas.canvases.create and use its id as canvas_id; inspect an existing canvas with retrieve before modifying it. Send exactly one of script (new source) or edit_id (a failed script to patch using edits). Unlike Figma REST, :execute writes design content; nodes use Pencil .pen schema 2.21 (frame/group/rectangle/ellipse/polygon/path/text/icon/ref/note), not Figma node fields.
|
|
5503
|
+
*
|
|
5504
|
+
* The root variable is document. Synchronous functions are Insert / Copy / Update / Replace / Move / Delete / SetVariables / Get / GetVariables / FindEmptySpace / Print / TakeScreenshot; globals persist for the next call. A first frame needs only this body.script:
|
|
5505
|
+
*
|
|
5506
|
+
* ```js
|
|
5507
|
+
* const f = Insert(document, { type: "frame", name: "Hero", width: 1200, layout: "vertical", padding: 48, fill: "#FFFFFF" }); Insert(f, { type: "text", content: "Hello", fontSize: 32, fill: "#111111" }); Print(f)
|
|
5508
|
+
* ```
|
|
5509
|
+
*
|
|
5510
|
+
* Insert/Copy return the new node id; read the copy with Get(id) — copied descendants get new ids, so change them through Copy's third argument `descendants` keyed by the source node ids. To copy a page and change its title in the same script:
|
|
5511
|
+
*
|
|
5512
|
+
* ```js canvas-example="copy-page"
|
|
5513
|
+
* const page = Insert(document, {type:"frame",name:"Original",width:320,height:160,layout:"vertical",padding:16});
|
|
5514
|
+
* const title = Insert(page, {type:"text",name:"Title",content:"Original",fontSize:24});
|
|
5515
|
+
* const copy = Copy(page, document, {name:"Copy",x:360,descendants:{[title]:{content:"Updated"}}});
|
|
5516
|
+
* Print(copy); Print(Get(copy).children[0].content);
|
|
5517
|
+
* ```
|
|
5518
|
+
*
|
|
5519
|
+
* Use viewer_url to watch the result in Console. TakeScreenshot records node ids in screenshots; call images.list with those ids to fetch PNG data URLs. See the [Canvas execute reference](https://deepraxis.com/en/docs/api/native/canvas/execute) for request fields and results, and the [Canvas node reference](https://deepraxis.com/en/docs/developers/canvas/nodes) for node content.
|
|
5520
|
+
*
|
|
5521
|
+
* A successful write increments version by one. Optionally set expected_version to the version from retrieve or nodes.list; on 409 REVISION_CONFLICT read again, merge your intent and retry with the current version. Every script failure rolls back all writes. On 400 SCRIPT_ERROR, SCRIPT_LIMIT or OPS_REJECTED, use error.details.edit_id plus edits to repair and rerun the stored source without resending the entire script; details may include line, column and rejection. On 400 EDIT_EXPIRED the saved script is older than ten minutes: submit a corrected new script. On 429 CANVAS_BUSY, more than four calls are queued for this canvas: wait for pending calls before retrying.
|
|
5522
|
+
*
|
|
5523
|
+
* Execution errors include error.details.prints containing output printed before failure, with the same string-array shape and output limit as successful prints; rolled-back writes still create no version.
|
|
5309
5524
|
*
|
|
5310
|
-
* Renames a table and/or changes its description; send only the keys to change, and send description null to clear it. The new name must follow ^[a-z_][a-z0-9_]{0,62}$ and be unused (409 UNIQUE_VIOLATION); ids are stable, so renaming never rewrites row data. A body with no changes or values equal to the current ones does not bump schema_revision. Fields cannot be changed here; use databaseAddField, databaseUpdateField and databaseDeleteField.
|
|
5311
5525
|
*/
|
|
5312
|
-
export const
|
|
5526
|
+
export const canvasExecute = (options) => (options.client ?? client).post({
|
|
5313
5527
|
security: [{
|
|
5314
|
-
key: '
|
|
5528
|
+
key: 'canvas-bearerAuth',
|
|
5315
5529
|
scheme: 'bearer',
|
|
5316
5530
|
type: 'http'
|
|
5317
5531
|
}],
|
|
5318
|
-
url: '/
|
|
5532
|
+
url: '/canvas/v1/canvases/{canvas_id}:execute',
|
|
5319
5533
|
...options,
|
|
5320
5534
|
headers: {
|
|
5321
5535
|
'Content-Type': 'application/json',
|
|
@@ -5323,17 +5537,39 @@ export const databaseUpdateTable = (options) => (options.client ?? client).patch
|
|
|
5323
5537
|
}
|
|
5324
5538
|
});
|
|
5325
5539
|
/**
|
|
5326
|
-
*
|
|
5540
|
+
* List collections
|
|
5327
5541
|
*
|
|
5328
|
-
*
|
|
5542
|
+
* Find collections and ids for filtering or moving canvases. All organization collections are returned in name order in one response; next_cursor is always null. canvas_count excludes deleted canvases. total_count counts all live canvases, rather than collections, and uncategorized_count counts live canvases without a collection. Use canvases.list with collection_id to read a collection or none to read uncategorized canvases.
|
|
5329
5543
|
*/
|
|
5330
|
-
export const
|
|
5544
|
+
export const canvasListCollections = (options) => (options?.client ?? client).get({
|
|
5331
5545
|
security: [{
|
|
5332
|
-
key: '
|
|
5546
|
+
key: 'BearerAuth',
|
|
5333
5547
|
scheme: 'bearer',
|
|
5334
5548
|
type: 'http'
|
|
5549
|
+
}, {
|
|
5550
|
+
key: 'ApiKeyAuth',
|
|
5551
|
+
name: 'X-API-Key',
|
|
5552
|
+
type: 'apiKey'
|
|
5335
5553
|
}],
|
|
5336
|
-
url: '/
|
|
5554
|
+
url: '/canvas/v1/collections',
|
|
5555
|
+
...options
|
|
5556
|
+
});
|
|
5557
|
+
/**
|
|
5558
|
+
* Create collection
|
|
5559
|
+
*
|
|
5560
|
+
* Organize canvases by creating a one-level collection in your organization. Send a name of 1–100 characters after trimming; duplicate names are allowed. Each call creates a new collection, initially containing no canvases. Use canvases.update with its id as collection_id to move existing canvases into it. Collections cannot be nested and an organization can have at most 200.
|
|
5561
|
+
*/
|
|
5562
|
+
export const canvasCreateCollection = (options) => (options.client ?? client).post({
|
|
5563
|
+
security: [{
|
|
5564
|
+
key: 'BearerAuth',
|
|
5565
|
+
scheme: 'bearer',
|
|
5566
|
+
type: 'http'
|
|
5567
|
+
}, {
|
|
5568
|
+
key: 'ApiKeyAuth',
|
|
5569
|
+
name: 'X-API-Key',
|
|
5570
|
+
type: 'apiKey'
|
|
5571
|
+
}],
|
|
5572
|
+
url: '/canvas/v1/collections',
|
|
5337
5573
|
...options,
|
|
5338
5574
|
headers: {
|
|
5339
5575
|
'Content-Type': 'application/json',
|
|
@@ -5341,31 +5577,57 @@ export const databaseAddField = (options) => (options.client ?? client).post({
|
|
|
5341
5577
|
}
|
|
5342
5578
|
});
|
|
5343
5579
|
/**
|
|
5344
|
-
* Delete
|
|
5580
|
+
* Delete collection
|
|
5345
5581
|
*
|
|
5346
|
-
*
|
|
5582
|
+
* Remove a collection using an id from collections.list. All its canvases are preserved and become uncategorized, with collection_id set to null; read them using canvases.list with collection_id=none. The removed collection cannot be retrieved again, and repeating deletion returns COLLECTION_NOT_FOUND.
|
|
5347
5583
|
*/
|
|
5348
|
-
export const
|
|
5584
|
+
export const canvasDeleteCollection = (options) => (options.client ?? client).delete({
|
|
5349
5585
|
security: [{
|
|
5350
|
-
key: '
|
|
5586
|
+
key: 'BearerAuth',
|
|
5351
5587
|
scheme: 'bearer',
|
|
5352
5588
|
type: 'http'
|
|
5589
|
+
}, {
|
|
5590
|
+
key: 'ApiKeyAuth',
|
|
5591
|
+
name: 'X-API-Key',
|
|
5592
|
+
type: 'apiKey'
|
|
5353
5593
|
}],
|
|
5354
|
-
url: '/
|
|
5594
|
+
url: '/canvas/v1/collections/{collection_id}',
|
|
5355
5595
|
...options
|
|
5356
5596
|
});
|
|
5357
5597
|
/**
|
|
5358
|
-
*
|
|
5598
|
+
* Retrieve collection
|
|
5359
5599
|
*
|
|
5360
|
-
*
|
|
5600
|
+
* Inspect one collection and its current live canvas count using an id from collections.list or collections.create. The collection must belong to the API key organization. To read its canvases, pass the same id as collection_id to canvases.list; this response contains collection metadata only.
|
|
5361
5601
|
*/
|
|
5362
|
-
export const
|
|
5602
|
+
export const canvasRetrieveCollection = (options) => (options.client ?? client).get({
|
|
5363
5603
|
security: [{
|
|
5364
|
-
key: '
|
|
5604
|
+
key: 'BearerAuth',
|
|
5365
5605
|
scheme: 'bearer',
|
|
5366
5606
|
type: 'http'
|
|
5607
|
+
}, {
|
|
5608
|
+
key: 'ApiKeyAuth',
|
|
5609
|
+
name: 'X-API-Key',
|
|
5610
|
+
type: 'apiKey'
|
|
5367
5611
|
}],
|
|
5368
|
-
url: '/
|
|
5612
|
+
url: '/canvas/v1/collections/{collection_id}',
|
|
5613
|
+
...options
|
|
5614
|
+
});
|
|
5615
|
+
/**
|
|
5616
|
+
* Rename collection
|
|
5617
|
+
*
|
|
5618
|
+
* Change the display name of a collection from collections.list without changing its id or canvas assignments. Names contain 1–100 characters after trimming and may match another collection name. This operation does not move canvases; use canvases.update with collection_id for that.
|
|
5619
|
+
*/
|
|
5620
|
+
export const canvasUpdateCollection = (options) => (options.client ?? client).patch({
|
|
5621
|
+
security: [{
|
|
5622
|
+
key: 'BearerAuth',
|
|
5623
|
+
scheme: 'bearer',
|
|
5624
|
+
type: 'http'
|
|
5625
|
+
}, {
|
|
5626
|
+
key: 'ApiKeyAuth',
|
|
5627
|
+
name: 'X-API-Key',
|
|
5628
|
+
type: 'apiKey'
|
|
5629
|
+
}],
|
|
5630
|
+
url: '/canvas/v1/collections/{collection_id}',
|
|
5369
5631
|
...options,
|
|
5370
5632
|
headers: {
|
|
5371
5633
|
'Content-Type': 'application/json',
|
|
@@ -5373,93 +5635,127 @@ export const databaseUpdateField = (options) => (options.client ?? client).patch
|
|
|
5373
5635
|
}
|
|
5374
5636
|
});
|
|
5375
5637
|
/**
|
|
5376
|
-
* List
|
|
5638
|
+
* List canvas versions
|
|
5377
5639
|
*
|
|
5378
|
-
*
|
|
5640
|
+
* Inspect retained edits before restoring a canvas or reading historical nodes and images. Supply a canvas_id from canvases.list or create. Results include successful execute, import and restore commits since history was enabled, newest first. limit is 1–100 and defaults to 30; pass next_cursor as cursor until it is null. All versions from the last 30 days are retained unless the 256 MiB history budget requires pruning; the newest 100 versions are always retained regardless of age or size. earliest_restorable_version is the oldest readable and restorable version, including the state immediately before the first retained commit; null means no history has been recorded. Listing does not change the canvas.
|
|
5379
5641
|
*/
|
|
5380
|
-
export const
|
|
5642
|
+
export const canvasListVersions = (options) => (options.client ?? client).get({
|
|
5381
5643
|
security: [{
|
|
5382
|
-
key: '
|
|
5644
|
+
key: 'BearerAuth',
|
|
5383
5645
|
scheme: 'bearer',
|
|
5384
5646
|
type: 'http'
|
|
5647
|
+
}, {
|
|
5648
|
+
key: 'ApiKeyAuth',
|
|
5649
|
+
name: 'X-API-Key',
|
|
5650
|
+
type: 'apiKey'
|
|
5385
5651
|
}],
|
|
5386
|
-
url: '/
|
|
5652
|
+
url: '/canvas/v1/canvases/{canvas_id}/versions',
|
|
5387
5653
|
...options
|
|
5388
5654
|
});
|
|
5389
5655
|
/**
|
|
5390
|
-
*
|
|
5656
|
+
* Restore canvas version
|
|
5391
5657
|
*
|
|
5392
|
-
*
|
|
5658
|
+
* Recover a canvas after an unwanted edit by restoring a retained version from versions.list or its earliest_restorable_version. This replaces current nodes, variables and themes with the target state and creates one new version; history remains available, so restoring can itself be undone with another restore. Restoring the current version succeeds without creating a version. Optionally guard the write with expected_version from retrieve or nodes.list; if it is stale, inspect current state and retry with the new value. Repeating an unguarded request after another edit can create another restore version. Versions from before history was enabled or outside retention cannot be recovered. Connected viewers resync after a successful restore.
|
|
5393
5659
|
*/
|
|
5394
|
-
export const
|
|
5660
|
+
export const canvasRestoreCanvas = (options) => (options.client ?? client).post({
|
|
5395
5661
|
security: [{
|
|
5396
|
-
key: '
|
|
5662
|
+
key: 'BearerAuth',
|
|
5397
5663
|
scheme: 'bearer',
|
|
5398
5664
|
type: 'http'
|
|
5665
|
+
}, {
|
|
5666
|
+
key: 'ApiKeyAuth',
|
|
5667
|
+
name: 'X-API-Key',
|
|
5668
|
+
type: 'apiKey'
|
|
5399
5669
|
}],
|
|
5400
|
-
url: '/
|
|
5401
|
-
...options
|
|
5670
|
+
url: '/canvas/v1/canvases/{canvas_id}:restore',
|
|
5671
|
+
...options,
|
|
5672
|
+
headers: {
|
|
5673
|
+
'Content-Type': 'application/json',
|
|
5674
|
+
...options.headers
|
|
5675
|
+
}
|
|
5402
5676
|
});
|
|
5403
5677
|
/**
|
|
5404
|
-
*
|
|
5678
|
+
* List records
|
|
5405
5679
|
*
|
|
5406
|
-
*
|
|
5680
|
+
* Browse records of one object type and obtain ids for retrieval or edits. Discover objectType with schemas.list; select properties by internal names from properties.list. Omit after for the first page, then copy paging.next.after until no next page is returned. archived defaults to false; use objects.search for property filters.
|
|
5407
5681
|
*/
|
|
5408
|
-
export const
|
|
5682
|
+
export const crmObjectsList = (options) => (options.client ?? client).get({
|
|
5683
|
+
querySerializer: { parameters: {
|
|
5684
|
+
associations: { array: { explode: false } },
|
|
5685
|
+
properties: { array: { explode: false } },
|
|
5686
|
+
propertiesWithHistory: { array: { explode: false } }
|
|
5687
|
+
} },
|
|
5409
5688
|
security: [{
|
|
5410
|
-
key: '
|
|
5689
|
+
key: 'crm-bearerAuth',
|
|
5411
5690
|
scheme: 'bearer',
|
|
5412
5691
|
type: 'http'
|
|
5413
5692
|
}],
|
|
5414
|
-
url: '/
|
|
5693
|
+
url: '/crm/v1/objects/{objectType}',
|
|
5415
5694
|
...options
|
|
5416
5695
|
});
|
|
5417
5696
|
/**
|
|
5418
|
-
*
|
|
5697
|
+
* Create record
|
|
5419
5698
|
*
|
|
5420
|
-
*
|
|
5699
|
+
* Create a customer record with property values and optional initial associations. Discover objectType with schemas.list and allowed property names with properties.list; save the returned id for subsequent calls. Each call creates a record. Example for contacts: {"properties":{"email":"person@example.com"}}. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.
|
|
5421
5700
|
*/
|
|
5422
|
-
export const
|
|
5701
|
+
export const crmObjectsCreate = (options) => (options.client ?? client).post({
|
|
5423
5702
|
security: [{
|
|
5424
|
-
key: '
|
|
5703
|
+
key: 'crm-bearerAuth',
|
|
5425
5704
|
scheme: 'bearer',
|
|
5426
5705
|
type: 'http'
|
|
5427
5706
|
}],
|
|
5428
|
-
url: '/
|
|
5707
|
+
url: '/crm/v1/objects/{objectType}',
|
|
5708
|
+
...options,
|
|
5709
|
+
headers: {
|
|
5710
|
+
'Content-Type': 'application/json',
|
|
5711
|
+
...options.headers
|
|
5712
|
+
}
|
|
5713
|
+
});
|
|
5714
|
+
/**
|
|
5715
|
+
* Archive record
|
|
5716
|
+
*
|
|
5717
|
+
* Archive a record selected from objects.list or objects.search when it should leave active results. This removes it from normal lists without deleting its history; archived=true can be used to read archived records. Confirm objectType and objectId before calling. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Unlike HubSpot, this own-face archive returns HTTP 200 with a JSON refs body instead of HTTP 204.
|
|
5718
|
+
*/
|
|
5719
|
+
export const crmObjectsArchive = (options) => (options.client ?? client).delete({
|
|
5720
|
+
security: [{
|
|
5721
|
+
key: 'crm-bearerAuth',
|
|
5722
|
+
scheme: 'bearer',
|
|
5723
|
+
type: 'http'
|
|
5724
|
+
}],
|
|
5725
|
+
url: '/crm/v1/objects/{objectType}/{objectId}',
|
|
5429
5726
|
...options
|
|
5430
5727
|
});
|
|
5431
5728
|
/**
|
|
5432
|
-
*
|
|
5729
|
+
* Retrieve record
|
|
5433
5730
|
*
|
|
5434
|
-
*
|
|
5731
|
+
* Read one record by id from objects.list, objects.search or objects.create. Select property names with properties and associated object types with associations; use idProperty only when objectId is a value of that unique property. Use archived=true to inspect an archived record.
|
|
5435
5732
|
*/
|
|
5436
|
-
export const
|
|
5733
|
+
export const crmObjectsRetrieve = (options) => (options.client ?? client).get({
|
|
5734
|
+
querySerializer: { parameters: {
|
|
5735
|
+
associations: { array: { explode: false } },
|
|
5736
|
+
properties: { array: { explode: false } },
|
|
5737
|
+
propertiesWithHistory: { array: { explode: false } }
|
|
5738
|
+
} },
|
|
5437
5739
|
security: [{
|
|
5438
|
-
key: '
|
|
5740
|
+
key: 'crm-bearerAuth',
|
|
5439
5741
|
scheme: 'bearer',
|
|
5440
5742
|
type: 'http'
|
|
5441
5743
|
}],
|
|
5442
|
-
url: '/
|
|
5443
|
-
...options
|
|
5444
|
-
headers: {
|
|
5445
|
-
'Content-Type': 'application/json',
|
|
5446
|
-
...options.headers
|
|
5447
|
-
}
|
|
5744
|
+
url: '/crm/v1/objects/{objectType}/{objectId}',
|
|
5745
|
+
...options
|
|
5448
5746
|
});
|
|
5449
5747
|
/**
|
|
5450
|
-
*
|
|
5748
|
+
* Update record
|
|
5451
5749
|
*
|
|
5452
|
-
*
|
|
5453
|
-
* Rows are filled to the union of their keys with null; send Prefer: missing=default to use field defaults for missing keys.
|
|
5454
|
-
* The default is return=minimal: success returns HTTP 201 with an empty body. Send Prefer: return=representation to return the inserted rows. With resolution=merge-duplicates, a conflicting row keeps columns omitted from the request; supplied values replace the whole field value (including JSON objects), and explicit null clears a nullable field. With resolution=ignore-duplicates, a conflicting row is left unchanged. Without a conflict, both modes insert a new row using field defaults for omitted fields. In a batch, a key present in another row is filled with null when omitted in this row unless missing=default is set; that null can overwrite a value during merge. With missing=default, omitted keys stay omitted for conflict merges (existing values are preserved); new rows use defaults, or null when no default exists. Explicit null never invokes a default. Unlike Supabase, upsert conflicts can target only id or one unique field, not a composite key. Each table supports up to 1,000,000 rows.
|
|
5750
|
+
* Change only the supplied properties of a record selected from objects.list or objects.search. Omitted properties retain their values. Use property names from properties.list and valid stage ids from pipelines.retrieve. Stage-entry requirements must be satisfied by the resulting record; inspect 400 errors before retrying. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.
|
|
5455
5751
|
*/
|
|
5456
|
-
export const
|
|
5752
|
+
export const crmObjectsUpdate = (options) => (options.client ?? client).patch({
|
|
5457
5753
|
security: [{
|
|
5458
|
-
key: '
|
|
5754
|
+
key: 'crm-bearerAuth',
|
|
5459
5755
|
scheme: 'bearer',
|
|
5460
5756
|
type: 'http'
|
|
5461
5757
|
}],
|
|
5462
|
-
url: '/
|
|
5758
|
+
url: '/crm/v1/objects/{objectType}/{objectId}',
|
|
5463
5759
|
...options,
|
|
5464
5760
|
headers: {
|
|
5465
5761
|
'Content-Type': 'application/json',
|
|
@@ -5467,31 +5763,35 @@ export const databaseInsert = (options) => (options.client ?? client).post({
|
|
|
5467
5763
|
}
|
|
5468
5764
|
});
|
|
5469
5765
|
/**
|
|
5470
|
-
*
|
|
5766
|
+
* Search records
|
|
5471
5767
|
*
|
|
5472
|
-
*
|
|
5768
|
+
* Find records using text query, property filters and sort order rather than scanning a list. Obtain objectType from schemas.list and filter propertyName values from properties.list. Supply filterGroups, sorts, properties, limit and after; use empty arrays for no filters, sorts or property selection, and an empty after for the first page. Copy paging.next.after with the same query to continue. This operation reads records without changing them.
|
|
5473
5769
|
*/
|
|
5474
|
-
export const
|
|
5770
|
+
export const crmObjectsSearch = (options) => (options.client ?? client).post({
|
|
5475
5771
|
security: [{
|
|
5476
|
-
key: '
|
|
5772
|
+
key: 'crm-bearerAuth',
|
|
5477
5773
|
scheme: 'bearer',
|
|
5478
5774
|
type: 'http'
|
|
5479
5775
|
}],
|
|
5480
|
-
url: '/
|
|
5481
|
-
...options
|
|
5776
|
+
url: '/crm/v1/objects/{objectType}/search',
|
|
5777
|
+
...options,
|
|
5778
|
+
headers: {
|
|
5779
|
+
'Content-Type': 'application/json',
|
|
5780
|
+
...options.headers
|
|
5781
|
+
}
|
|
5482
5782
|
});
|
|
5483
5783
|
/**
|
|
5484
|
-
*
|
|
5784
|
+
* Batch read records
|
|
5485
5785
|
*
|
|
5486
|
-
*
|
|
5786
|
+
* Read a set of known record ids in one call; use objects.search to discover ids first. Supply inputs with ids plus requested properties; set idProperty only when the inputs use unique-property values rather than record ids.
|
|
5487
5787
|
*/
|
|
5488
|
-
export const
|
|
5788
|
+
export const crmObjectsBatchRead = (options) => (options.client ?? client).post({
|
|
5489
5789
|
security: [{
|
|
5490
|
-
key: '
|
|
5790
|
+
key: 'crm-bearerAuth',
|
|
5491
5791
|
scheme: 'bearer',
|
|
5492
5792
|
type: 'http'
|
|
5493
5793
|
}],
|
|
5494
|
-
url: '/
|
|
5794
|
+
url: '/crm/v1/objects/{objectType}/batch/read',
|
|
5495
5795
|
...options,
|
|
5496
5796
|
headers: {
|
|
5497
5797
|
'Content-Type': 'application/json',
|
|
@@ -5499,45 +5799,53 @@ export const knowledgeCreateVectorStore = (options) => (options.client ?? client
|
|
|
5499
5799
|
}
|
|
5500
5800
|
});
|
|
5501
5801
|
/**
|
|
5502
|
-
*
|
|
5802
|
+
* Batch create records
|
|
5503
5803
|
*
|
|
5504
|
-
*
|
|
5804
|
+
* Create several records of one object type using inputs with properties and optional associations. Obtain property names from properties.list; each successful input creates a record, so inspect per-item errors before resubmitting failed inputs. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.
|
|
5505
5805
|
*/
|
|
5506
|
-
export const
|
|
5806
|
+
export const crmObjectsBatchCreate = (options) => (options.client ?? client).post({
|
|
5507
5807
|
security: [{
|
|
5508
|
-
key: '
|
|
5808
|
+
key: 'crm-bearerAuth',
|
|
5509
5809
|
scheme: 'bearer',
|
|
5510
5810
|
type: 'http'
|
|
5511
5811
|
}],
|
|
5512
|
-
url: '/
|
|
5513
|
-
...options
|
|
5812
|
+
url: '/crm/v1/objects/{objectType}/batch/create',
|
|
5813
|
+
...options,
|
|
5814
|
+
headers: {
|
|
5815
|
+
'Content-Type': 'application/json',
|
|
5816
|
+
...options.headers
|
|
5817
|
+
}
|
|
5514
5818
|
});
|
|
5515
5819
|
/**
|
|
5516
|
-
*
|
|
5820
|
+
* Batch update records
|
|
5517
5821
|
*
|
|
5518
|
-
*
|
|
5822
|
+
* Apply distinct property patches to existing records identified by inputs[].id. Obtain ids from objects.list or objects.search and property names from properties.list. Omitted properties retain their values; inspect results and errors for each input. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.
|
|
5519
5823
|
*/
|
|
5520
|
-
export const
|
|
5824
|
+
export const crmObjectsBatchUpdate = (options) => (options.client ?? client).post({
|
|
5521
5825
|
security: [{
|
|
5522
|
-
key: '
|
|
5826
|
+
key: 'crm-bearerAuth',
|
|
5523
5827
|
scheme: 'bearer',
|
|
5524
5828
|
type: 'http'
|
|
5525
5829
|
}],
|
|
5526
|
-
url: '/
|
|
5527
|
-
...options
|
|
5830
|
+
url: '/crm/v1/objects/{objectType}/batch/update',
|
|
5831
|
+
...options,
|
|
5832
|
+
headers: {
|
|
5833
|
+
'Content-Type': 'application/json',
|
|
5834
|
+
...options.headers
|
|
5835
|
+
}
|
|
5528
5836
|
});
|
|
5529
5837
|
/**
|
|
5530
|
-
*
|
|
5838
|
+
* Batch upsert records
|
|
5531
5839
|
*
|
|
5532
|
-
*
|
|
5840
|
+
* Create records that do not yet exist or update matches using a unique property. Provide idProperty and its value in each input, plus properties; choose a property with hasUniqueValue from properties.list. Inspect each result to determine whether it was newly created. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.
|
|
5533
5841
|
*/
|
|
5534
|
-
export const
|
|
5842
|
+
export const crmObjectsBatchUpsert = (options) => (options.client ?? client).post({
|
|
5535
5843
|
security: [{
|
|
5536
|
-
key: '
|
|
5844
|
+
key: 'crm-bearerAuth',
|
|
5537
5845
|
scheme: 'bearer',
|
|
5538
5846
|
type: 'http'
|
|
5539
5847
|
}],
|
|
5540
|
-
url: '/
|
|
5848
|
+
url: '/crm/v1/objects/{objectType}/batch/upsert',
|
|
5541
5849
|
...options,
|
|
5542
5850
|
headers: {
|
|
5543
5851
|
'Content-Type': 'application/json',
|
|
@@ -5545,17 +5853,17 @@ export const knowledgeUpdateVectorStore = (options) => (options.client ?? client
|
|
|
5545
5853
|
}
|
|
5546
5854
|
});
|
|
5547
5855
|
/**
|
|
5548
|
-
*
|
|
5856
|
+
* Batch archive records
|
|
5549
5857
|
*
|
|
5550
|
-
*
|
|
5858
|
+
* Archive known records of one object type using inputs[].id from objects.list or objects.search. Archived records leave active lists but retain their history; confirm all ids before calling. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Unlike HubSpot, this own-face archive returns HTTP 200 with a JSON refs body instead of HTTP 204.
|
|
5551
5859
|
*/
|
|
5552
|
-
export const
|
|
5860
|
+
export const crmObjectsBatchArchive = (options) => (options.client ?? client).post({
|
|
5553
5861
|
security: [{
|
|
5554
|
-
key: '
|
|
5862
|
+
key: 'crm-bearerAuth',
|
|
5555
5863
|
scheme: 'bearer',
|
|
5556
5864
|
type: 'http'
|
|
5557
5865
|
}],
|
|
5558
|
-
url: '/
|
|
5866
|
+
url: '/crm/v1/objects/{objectType}/batch/archive',
|
|
5559
5867
|
...options,
|
|
5560
5868
|
headers: {
|
|
5561
5869
|
'Content-Type': 'application/json',
|
|
@@ -5563,31 +5871,31 @@ export const knowledgeSearchVectorStore = (options) => (options.client ?? client
|
|
|
5563
5871
|
}
|
|
5564
5872
|
});
|
|
5565
5873
|
/**
|
|
5566
|
-
* List
|
|
5874
|
+
* List properties
|
|
5567
5875
|
*
|
|
5568
|
-
*
|
|
5876
|
+
* Inspect the property definitions available for an object type before writing or filtering records. Obtain objectType from schemas.list; reuse each immutable name in record properties and filters. archived defaults to false.
|
|
5569
5877
|
*/
|
|
5570
|
-
export const
|
|
5878
|
+
export const crmPropertiesList = (options) => (options.client ?? client).get({
|
|
5571
5879
|
security: [{
|
|
5572
|
-
key: '
|
|
5880
|
+
key: 'crm-bearerAuth',
|
|
5573
5881
|
scheme: 'bearer',
|
|
5574
5882
|
type: 'http'
|
|
5575
5883
|
}],
|
|
5576
|
-
url: '/
|
|
5884
|
+
url: '/crm/v1/properties/{objectType}',
|
|
5577
5885
|
...options
|
|
5578
5886
|
});
|
|
5579
5887
|
/**
|
|
5580
|
-
*
|
|
5888
|
+
* Create property
|
|
5581
5889
|
*
|
|
5582
|
-
*
|
|
5890
|
+
* Define a property before setting its values on records. Choose objectType from schemas.list and groupName from properties.groups.list; provide an immutable internal name, display label, type and fieldType. Enumeration properties require their valid options. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.
|
|
5583
5891
|
*/
|
|
5584
|
-
export const
|
|
5892
|
+
export const crmPropertiesCreate = (options) => (options.client ?? client).post({
|
|
5585
5893
|
security: [{
|
|
5586
|
-
key: '
|
|
5894
|
+
key: 'crm-bearerAuth',
|
|
5587
5895
|
scheme: 'bearer',
|
|
5588
5896
|
type: 'http'
|
|
5589
5897
|
}],
|
|
5590
|
-
url: '/
|
|
5898
|
+
url: '/crm/v1/properties/{objectType}',
|
|
5591
5899
|
...options,
|
|
5592
5900
|
headers: {
|
|
5593
5901
|
'Content-Type': 'application/json',
|
|
@@ -5595,45 +5903,45 @@ export const knowledgeAttachFile = (options) => (options.client ?? client).post(
|
|
|
5595
5903
|
}
|
|
5596
5904
|
});
|
|
5597
5905
|
/**
|
|
5598
|
-
*
|
|
5906
|
+
* Archive property
|
|
5599
5907
|
*
|
|
5600
|
-
*
|
|
5908
|
+
* Archive a property definition selected by internal name from properties.list. Confirm that record entry and search flows no longer depend on it; archived definitions are excluded from normal property lists. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Unlike HubSpot, this own-face archive returns HTTP 200 with a JSON refs body instead of HTTP 204.
|
|
5601
5909
|
*/
|
|
5602
|
-
export const
|
|
5910
|
+
export const crmPropertiesArchive = (options) => (options.client ?? client).delete({
|
|
5603
5911
|
security: [{
|
|
5604
|
-
key: '
|
|
5912
|
+
key: 'crm-bearerAuth',
|
|
5605
5913
|
scheme: 'bearer',
|
|
5606
5914
|
type: 'http'
|
|
5607
5915
|
}],
|
|
5608
|
-
url: '/
|
|
5916
|
+
url: '/crm/v1/properties/{objectType}/{propertyName}',
|
|
5609
5917
|
...options
|
|
5610
5918
|
});
|
|
5611
5919
|
/**
|
|
5612
|
-
* Retrieve
|
|
5920
|
+
* Retrieve property
|
|
5613
5921
|
*
|
|
5614
|
-
*
|
|
5922
|
+
* Inspect the type, options and modification restrictions of a property before changing its definition or record values. Obtain propertyName from properties.list; it is the immutable internal name rather than the label.
|
|
5615
5923
|
*/
|
|
5616
|
-
export const
|
|
5924
|
+
export const crmPropertiesRetrieve = (options) => (options.client ?? client).get({
|
|
5617
5925
|
security: [{
|
|
5618
|
-
key: '
|
|
5926
|
+
key: 'crm-bearerAuth',
|
|
5619
5927
|
scheme: 'bearer',
|
|
5620
5928
|
type: 'http'
|
|
5621
5929
|
}],
|
|
5622
|
-
url: '/
|
|
5930
|
+
url: '/crm/v1/properties/{objectType}/{propertyName}',
|
|
5623
5931
|
...options
|
|
5624
5932
|
});
|
|
5625
5933
|
/**
|
|
5626
|
-
* Update
|
|
5934
|
+
* Update property
|
|
5627
5935
|
*
|
|
5628
|
-
*
|
|
5936
|
+
* Change editable settings of a property selected from properties.list, such as its label, group or options. Preserve the immutable internal name; inspect modificationMetadata before editing system-managed definitions. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.
|
|
5629
5937
|
*/
|
|
5630
|
-
export const
|
|
5938
|
+
export const crmPropertiesUpdate = (options) => (options.client ?? client).patch({
|
|
5631
5939
|
security: [{
|
|
5632
|
-
key: '
|
|
5940
|
+
key: 'crm-bearerAuth',
|
|
5633
5941
|
scheme: 'bearer',
|
|
5634
5942
|
type: 'http'
|
|
5635
5943
|
}],
|
|
5636
|
-
url: '/
|
|
5944
|
+
url: '/crm/v1/properties/{objectType}/{propertyName}',
|
|
5637
5945
|
...options,
|
|
5638
5946
|
headers: {
|
|
5639
5947
|
'Content-Type': 'application/json',
|
|
@@ -5641,31 +5949,31 @@ export const knowledgeUpdateFile = (options) => (options.client ?? client).post(
|
|
|
5641
5949
|
}
|
|
5642
5950
|
});
|
|
5643
5951
|
/**
|
|
5644
|
-
*
|
|
5952
|
+
* List property groups
|
|
5645
5953
|
*
|
|
5646
|
-
*
|
|
5954
|
+
* Discover property groups for an object type before creating or organizing property definitions. Obtain objectType from schemas.list and reuse a group name as groupName in properties.create or properties.update.
|
|
5647
5955
|
*/
|
|
5648
|
-
export const
|
|
5956
|
+
export const crmPropertiesGroupsList = (options) => (options.client ?? client).get({
|
|
5649
5957
|
security: [{
|
|
5650
|
-
key: '
|
|
5958
|
+
key: 'crm-bearerAuth',
|
|
5651
5959
|
scheme: 'bearer',
|
|
5652
5960
|
type: 'http'
|
|
5653
5961
|
}],
|
|
5654
|
-
url: '/
|
|
5962
|
+
url: '/crm/v1/properties/{objectType}/groups',
|
|
5655
5963
|
...options
|
|
5656
5964
|
});
|
|
5657
5965
|
/**
|
|
5658
|
-
* Create
|
|
5966
|
+
* Create property group
|
|
5659
5967
|
*
|
|
5660
|
-
*
|
|
5968
|
+
* Create a named group for related property definitions of one object type. Obtain objectType from schemas.list; choose a unique internal name and display label, then reuse the returned name as groupName when creating properties. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.
|
|
5661
5969
|
*/
|
|
5662
|
-
export const
|
|
5970
|
+
export const crmPropertiesGroupsCreate = (options) => (options.client ?? client).post({
|
|
5663
5971
|
security: [{
|
|
5664
|
-
key: '
|
|
5972
|
+
key: 'crm-bearerAuth',
|
|
5665
5973
|
scheme: 'bearer',
|
|
5666
5974
|
type: 'http'
|
|
5667
5975
|
}],
|
|
5668
|
-
url: '/
|
|
5976
|
+
url: '/crm/v1/properties/{objectType}/groups',
|
|
5669
5977
|
...options,
|
|
5670
5978
|
headers: {
|
|
5671
5979
|
'Content-Type': 'application/json',
|
|
@@ -5673,157 +5981,173 @@ export const knowledgeCreateFileBatch = (options) => (options.client ?? client).
|
|
|
5673
5981
|
}
|
|
5674
5982
|
});
|
|
5675
5983
|
/**
|
|
5676
|
-
*
|
|
5984
|
+
* List pipelines
|
|
5677
5985
|
*
|
|
5678
|
-
*
|
|
5986
|
+
* Discover pipelines and stage ids for records of one object type from schemas.list. Reuse pipeline and stage ids in record property updates or lead qualification. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is "true" (no further transition) or "false" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string "null" meaning unrestricted; praxis_required is a JSON-encoded array string of property names ("[]" means none) that must be non-empty on entry (boolean properties must be "true"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Example metadata: {"praxis_category":"open","praxis_terminal":"false","praxis_allowed_next":"[\"proposal\",\"lost\"]","praxis_required":"[\"budget\",\"decision_maker\"]"}.
|
|
5679
5987
|
*/
|
|
5680
|
-
export const
|
|
5988
|
+
export const crmPipelinesList = (options) => (options.client ?? client).get({
|
|
5681
5989
|
security: [{
|
|
5682
|
-
key: '
|
|
5990
|
+
key: 'crm-bearerAuth',
|
|
5683
5991
|
scheme: 'bearer',
|
|
5684
5992
|
type: 'http'
|
|
5685
5993
|
}],
|
|
5686
|
-
url: '/
|
|
5994
|
+
url: '/crm/v1/pipelines/{objectType}',
|
|
5687
5995
|
...options
|
|
5688
5996
|
});
|
|
5689
5997
|
/**
|
|
5690
|
-
*
|
|
5998
|
+
* Create pipeline
|
|
5691
5999
|
*
|
|
5692
|
-
*
|
|
6000
|
+
* Create a pipeline with its ordered stages for an object type from schemas.list. Provide a display label, displayOrder and initial stages, then use the returned ids when assigning records. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is "true" (no further transition) or "false" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string "null" meaning unrestricted; praxis_required is a JSON-encoded array string of property names ("[]" means none) that must be non-empty on entry (boolean properties must be "true"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Example metadata: {"praxis_category":"open","praxis_terminal":"false","praxis_allowed_next":"[\"proposal\",\"lost\"]","praxis_required":"[\"budget\",\"decision_maker\"]"}.
|
|
5693
6001
|
*/
|
|
5694
|
-
export const
|
|
6002
|
+
export const crmPipelinesCreate = (options) => (options.client ?? client).post({
|
|
5695
6003
|
security: [{
|
|
5696
|
-
key: '
|
|
6004
|
+
key: 'crm-bearerAuth',
|
|
5697
6005
|
scheme: 'bearer',
|
|
5698
6006
|
type: 'http'
|
|
5699
6007
|
}],
|
|
5700
|
-
url: '/
|
|
5701
|
-
...options
|
|
6008
|
+
url: '/crm/v1/pipelines/{objectType}',
|
|
6009
|
+
...options,
|
|
6010
|
+
headers: {
|
|
6011
|
+
'Content-Type': 'application/json',
|
|
6012
|
+
...options.headers
|
|
6013
|
+
}
|
|
5702
6014
|
});
|
|
5703
6015
|
/**
|
|
5704
|
-
*
|
|
6016
|
+
* Archive pipeline
|
|
5705
6017
|
*
|
|
5706
|
-
*
|
|
6018
|
+
* Archive a pipeline selected from pipelines.list when records no longer depend on it. Check current records and stage usage first; resolve references reported by validation before retrying. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is "true" (no further transition) or "false" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string "null" meaning unrestricted; praxis_required is a JSON-encoded array string of property names ("[]" means none) that must be non-empty on entry (boolean properties must be "true"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Unlike HubSpot, this own-face archive returns HTTP 200 with a JSON refs body instead of HTTP 204. Example metadata: {"praxis_category":"open","praxis_terminal":"false","praxis_allowed_next":"[\"proposal\",\"lost\"]","praxis_required":"[\"budget\",\"decision_maker\"]"}.
|
|
5707
6019
|
*/
|
|
5708
|
-
export const
|
|
6020
|
+
export const crmPipelinesArchive = (options) => (options.client ?? client).delete({
|
|
5709
6021
|
security: [{
|
|
5710
|
-
key: '
|
|
6022
|
+
key: 'crm-bearerAuth',
|
|
5711
6023
|
scheme: 'bearer',
|
|
5712
6024
|
type: 'http'
|
|
5713
6025
|
}],
|
|
5714
|
-
url: '/
|
|
6026
|
+
url: '/crm/v1/pipelines/{objectType}/{pipelineId}',
|
|
5715
6027
|
...options
|
|
5716
6028
|
});
|
|
5717
6029
|
/**
|
|
5718
|
-
*
|
|
6030
|
+
* Retrieve pipeline
|
|
5719
6031
|
*
|
|
5720
|
-
*
|
|
6032
|
+
* Inspect the stage ids and metadata of a pipeline before moving a record or editing its workflow. Obtain pipelineId from pipelines.list and use the returned stages array to select a destination. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is "true" (no further transition) or "false" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string "null" meaning unrestricted; praxis_required is a JSON-encoded array string of property names ("[]" means none) that must be non-empty on entry (boolean properties must be "true"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Example metadata: {"praxis_category":"open","praxis_terminal":"false","praxis_allowed_next":"[\"proposal\",\"lost\"]","praxis_required":"[\"budget\",\"decision_maker\"]"}.
|
|
5721
6033
|
*/
|
|
5722
|
-
export const
|
|
6034
|
+
export const crmPipelinesRetrieve = (options) => (options.client ?? client).get({
|
|
5723
6035
|
security: [{
|
|
5724
|
-
key: '
|
|
6036
|
+
key: 'crm-bearerAuth',
|
|
5725
6037
|
scheme: 'bearer',
|
|
5726
6038
|
type: 'http'
|
|
5727
6039
|
}],
|
|
5728
|
-
url: '/
|
|
6040
|
+
url: '/crm/v1/pipelines/{objectType}/{pipelineId}',
|
|
5729
6041
|
...options
|
|
5730
6042
|
});
|
|
5731
6043
|
/**
|
|
5732
|
-
*
|
|
6044
|
+
* Update pipeline
|
|
5733
6045
|
*
|
|
5734
|
-
*
|
|
6046
|
+
* Change editable pipeline settings selected by pipelineId from pipelines.list. Omit settings that should remain unchanged and inspect current stages with pipelines.retrieve before modifying the workflow. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is "true" (no further transition) or "false" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string "null" meaning unrestricted; praxis_required is a JSON-encoded array string of property names ("[]" means none) that must be non-empty on entry (boolean properties must be "true"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Example metadata: {"praxis_category":"open","praxis_terminal":"false","praxis_allowed_next":"[\"proposal\",\"lost\"]","praxis_required":"[\"budget\",\"decision_maker\"]"}.
|
|
5735
6047
|
*/
|
|
5736
|
-
export const
|
|
6048
|
+
export const crmPipelinesUpdate = (options) => (options.client ?? client).patch({
|
|
5737
6049
|
security: [{
|
|
5738
|
-
key: '
|
|
6050
|
+
key: 'crm-bearerAuth',
|
|
5739
6051
|
scheme: 'bearer',
|
|
5740
6052
|
type: 'http'
|
|
5741
6053
|
}],
|
|
5742
|
-
url: '/
|
|
5743
|
-
...options
|
|
6054
|
+
url: '/crm/v1/pipelines/{objectType}/{pipelineId}',
|
|
6055
|
+
...options,
|
|
6056
|
+
headers: {
|
|
6057
|
+
'Content-Type': 'application/json',
|
|
6058
|
+
...options.headers
|
|
6059
|
+
}
|
|
5744
6060
|
});
|
|
5745
6061
|
/**
|
|
5746
|
-
*
|
|
6062
|
+
* Create pipeline stage
|
|
5747
6063
|
*
|
|
5748
|
-
*
|
|
6064
|
+
* Add an ordered stage to a pipeline from pipelines.list. Provide its display label, displayOrder and metadata; save the returned stage id for record updates. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is "true" (no further transition) or "false" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string "null" meaning unrestricted; praxis_required is a JSON-encoded array string of property names ("[]" means none) that must be non-empty on entry (boolean properties must be "true"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Example metadata: {"praxis_category":"open","praxis_terminal":"false","praxis_allowed_next":"[\"proposal\",\"lost\"]","praxis_required":"[\"budget\",\"decision_maker\"]"}.
|
|
5749
6065
|
*/
|
|
5750
|
-
export const
|
|
6066
|
+
export const crmPipelinesStagesCreate = (options) => (options.client ?? client).post({
|
|
5751
6067
|
security: [{
|
|
5752
|
-
key: '
|
|
6068
|
+
key: 'crm-bearerAuth',
|
|
5753
6069
|
scheme: 'bearer',
|
|
5754
6070
|
type: 'http'
|
|
5755
6071
|
}],
|
|
5756
|
-
url: '/
|
|
5757
|
-
...options
|
|
6072
|
+
url: '/crm/v1/pipelines/{objectType}/{pipelineId}/stages',
|
|
6073
|
+
...options,
|
|
6074
|
+
headers: {
|
|
6075
|
+
'Content-Type': 'application/json',
|
|
6076
|
+
...options.headers
|
|
6077
|
+
}
|
|
5758
6078
|
});
|
|
5759
6079
|
/**
|
|
5760
|
-
*
|
|
6080
|
+
* Archive pipeline stage
|
|
5761
6081
|
*
|
|
5762
|
-
*
|
|
6082
|
+
* Archive a stage selected from pipelines.retrieve after checking record usage. A stage that still has records cannot be archived without resolving their assignment; move those records to an allowed stage first. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is "true" (no further transition) or "false" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string "null" meaning unrestricted; praxis_required is a JSON-encoded array string of property names ("[]" means none) that must be non-empty on entry (boolean properties must be "true"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Unlike HubSpot, this own-face archive returns HTTP 200 with a JSON refs body instead of HTTP 204. Example metadata: {"praxis_category":"open","praxis_terminal":"false","praxis_allowed_next":"[\"proposal\",\"lost\"]","praxis_required":"[\"budget\",\"decision_maker\"]"}.
|
|
5763
6083
|
*/
|
|
5764
|
-
export const
|
|
6084
|
+
export const crmPipelinesStagesArchive = (options) => (options.client ?? client).delete({
|
|
5765
6085
|
security: [{
|
|
5766
|
-
key: '
|
|
6086
|
+
key: 'crm-bearerAuth',
|
|
5767
6087
|
scheme: 'bearer',
|
|
5768
6088
|
type: 'http'
|
|
5769
6089
|
}],
|
|
5770
|
-
url: '/
|
|
6090
|
+
url: '/crm/v1/pipelines/{objectType}/{pipelineId}/stages/{stageId}',
|
|
5771
6091
|
...options
|
|
5772
6092
|
});
|
|
5773
6093
|
/**
|
|
5774
|
-
*
|
|
6094
|
+
* Update pipeline stage
|
|
5775
6095
|
*
|
|
5776
|
-
*
|
|
6096
|
+
* Change the label, order or metadata of a stage selected from pipelines.retrieve. Existing records must satisfy entry rules when subsequently moved; omitted settings retain their values. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is "true" (no further transition) or "false" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string "null" meaning unrestricted; praxis_required is a JSON-encoded array string of property names ("[]" means none) that must be non-empty on entry (boolean properties must be "true"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Example metadata: {"praxis_category":"open","praxis_terminal":"false","praxis_allowed_next":"[\"proposal\",\"lost\"]","praxis_required":"[\"budget\",\"decision_maker\"]"}.
|
|
5777
6097
|
*/
|
|
5778
|
-
export const
|
|
6098
|
+
export const crmPipelinesStagesUpdate = (options) => (options.client ?? client).patch({
|
|
5779
6099
|
security: [{
|
|
5780
|
-
key: '
|
|
6100
|
+
key: 'crm-bearerAuth',
|
|
5781
6101
|
scheme: 'bearer',
|
|
5782
6102
|
type: 'http'
|
|
5783
6103
|
}],
|
|
5784
|
-
url: '/
|
|
5785
|
-
...options
|
|
6104
|
+
url: '/crm/v1/pipelines/{objectType}/{pipelineId}/stages/{stageId}',
|
|
6105
|
+
...options,
|
|
6106
|
+
headers: {
|
|
6107
|
+
'Content-Type': 'application/json',
|
|
6108
|
+
...options.headers
|
|
6109
|
+
}
|
|
5786
6110
|
});
|
|
5787
6111
|
/**
|
|
5788
|
-
* List
|
|
6112
|
+
* List record associations
|
|
5789
6113
|
*
|
|
5790
|
-
*
|
|
6114
|
+
* Read records linked to a source record, including association labels and type ids. Obtain source and destination object types from schemas.list and objectId from objects.list or objects.search. Follow paging.next.after to continue reading associated records.
|
|
5791
6115
|
*/
|
|
5792
|
-
export const
|
|
6116
|
+
export const crmAssociationsList = (options) => (options.client ?? client).get({
|
|
5793
6117
|
security: [{
|
|
5794
|
-
key: '
|
|
6118
|
+
key: 'crm-bearerAuth',
|
|
5795
6119
|
scheme: 'bearer',
|
|
5796
6120
|
type: 'http'
|
|
5797
6121
|
}],
|
|
5798
|
-
url: '/
|
|
6122
|
+
url: '/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}',
|
|
5799
6123
|
...options
|
|
5800
6124
|
});
|
|
5801
6125
|
/**
|
|
5802
|
-
*
|
|
6126
|
+
* Remove association
|
|
5803
6127
|
*
|
|
5804
|
-
*
|
|
6128
|
+
* Remove the association between two existing records without archiving either record. Obtain the linked destination id from associations.list and confirm the source and destination object types before calling. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Unlike HubSpot, this own-face archive returns HTTP 200 with a JSON refs body instead of HTTP 204.
|
|
5805
6129
|
*/
|
|
5806
|
-
export const
|
|
6130
|
+
export const crmAssociationsRemove = (options) => (options.client ?? client).delete({
|
|
5807
6131
|
security: [{
|
|
5808
|
-
key: '
|
|
6132
|
+
key: 'crm-bearerAuth',
|
|
5809
6133
|
scheme: 'bearer',
|
|
5810
6134
|
type: 'http'
|
|
5811
6135
|
}],
|
|
5812
|
-
url: '/
|
|
6136
|
+
url: '/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}',
|
|
5813
6137
|
...options
|
|
5814
6138
|
});
|
|
5815
6139
|
/**
|
|
5816
|
-
* Create
|
|
6140
|
+
* Create labelled association
|
|
5817
6141
|
*
|
|
5818
|
-
*
|
|
6142
|
+
* Associate two existing records using the requested association category and type id. Obtain record ids from objects.list or objects.search; reuse known association type ids from associations.list. Send the association-spec array as the body; use associations.createDefault when no label is needed. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.
|
|
5819
6143
|
*/
|
|
5820
|
-
export const
|
|
6144
|
+
export const crmAssociationsCreate = (options) => (options.client ?? client).put({
|
|
5821
6145
|
security: [{
|
|
5822
|
-
key: '
|
|
6146
|
+
key: 'crm-bearerAuth',
|
|
5823
6147
|
scheme: 'bearer',
|
|
5824
6148
|
type: 'http'
|
|
5825
6149
|
}],
|
|
5826
|
-
url: '/
|
|
6150
|
+
url: '/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}',
|
|
5827
6151
|
...options,
|
|
5828
6152
|
headers: {
|
|
5829
6153
|
'Content-Type': 'application/json',
|
|
@@ -5831,45 +6155,45 @@ export const mediaCreateLibrary = (options) => (options.client ?? client).post({
|
|
|
5831
6155
|
}
|
|
5832
6156
|
});
|
|
5833
6157
|
/**
|
|
5834
|
-
*
|
|
6158
|
+
* Create default association
|
|
5835
6159
|
*
|
|
5836
|
-
*
|
|
6160
|
+
* Link two existing records with the default unlabelled association. Obtain each record id from objects.list or objects.search for its type. No request body is required; use associations.create to choose explicit association labels. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.
|
|
5837
6161
|
*/
|
|
5838
|
-
export const
|
|
6162
|
+
export const crmAssociationsCreateDefault = (options) => (options.client ?? client).put({
|
|
5839
6163
|
security: [{
|
|
5840
|
-
key: '
|
|
6164
|
+
key: 'crm-bearerAuth',
|
|
5841
6165
|
scheme: 'bearer',
|
|
5842
6166
|
type: 'http'
|
|
5843
6167
|
}],
|
|
5844
|
-
url: '/
|
|
6168
|
+
url: '/crm/v1/objects/{objectType}/{objectId}/associations/default/{toObjectType}/{toObjectId}',
|
|
5845
6169
|
...options
|
|
5846
6170
|
});
|
|
5847
6171
|
/**
|
|
5848
|
-
*
|
|
6172
|
+
* List object schemas
|
|
5849
6173
|
*
|
|
5850
|
-
*
|
|
6174
|
+
* Discover available object schemas, display labels, property definitions and association definitions. Reuse the object type identifier or name in record, property and pipeline operations. archived defaults to false; the include parameters control the definition and audit details returned.
|
|
5851
6175
|
*/
|
|
5852
|
-
export const
|
|
6176
|
+
export const crmSchemasList = (options) => (options?.client ?? client).get({
|
|
5853
6177
|
security: [{
|
|
5854
|
-
key: '
|
|
6178
|
+
key: 'crm-bearerAuth',
|
|
5855
6179
|
scheme: 'bearer',
|
|
5856
6180
|
type: 'http'
|
|
5857
6181
|
}],
|
|
5858
|
-
url: '/
|
|
6182
|
+
url: '/crm/v1/schemas',
|
|
5859
6183
|
...options
|
|
5860
6184
|
});
|
|
5861
6185
|
/**
|
|
5862
|
-
*
|
|
6186
|
+
* Create object schema
|
|
5863
6187
|
*
|
|
5864
|
-
*
|
|
6188
|
+
* Define a custom CRM object type before creating its records. Provide its immutable name, singular and plural labels, primaryDisplayProperty, properties and associated object types. Save the returned object type identifier for subsequent record and property operations. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.
|
|
5865
6189
|
*/
|
|
5866
|
-
export const
|
|
6190
|
+
export const crmSchemasCreate = (options) => (options.client ?? client).post({
|
|
5867
6191
|
security: [{
|
|
5868
|
-
key: '
|
|
6192
|
+
key: 'crm-bearerAuth',
|
|
5869
6193
|
scheme: 'bearer',
|
|
5870
6194
|
type: 'http'
|
|
5871
6195
|
}],
|
|
5872
|
-
url: '/
|
|
6196
|
+
url: '/crm/v1/schemas',
|
|
5873
6197
|
...options,
|
|
5874
6198
|
headers: {
|
|
5875
6199
|
'Content-Type': 'application/json',
|
|
@@ -5877,59 +6201,63 @@ export const mediaUpdateLibrary = (options) => (options.client ?? client).patch(
|
|
|
5877
6201
|
}
|
|
5878
6202
|
});
|
|
5879
6203
|
/**
|
|
5880
|
-
*
|
|
6204
|
+
* Qualify lead
|
|
5881
6205
|
*
|
|
5882
|
-
*
|
|
6206
|
+
* Qualify a lead with explicit contact, company and optional deal choices in one operation. Unlike HubSpot, CRM exposes these decisions as a single action because qualification coordinates several related record edits rather than editing only the lead stage. Obtain leadId from objects.list for leads and qualifiedStageId from its pipeline; choose a won stage and satisfy its required properties. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.
|
|
5883
6207
|
*/
|
|
5884
|
-
export const
|
|
6208
|
+
export const crmLeadsQualify = (options) => (options.client ?? client).post({
|
|
5885
6209
|
security: [{
|
|
5886
|
-
key: '
|
|
6210
|
+
key: 'crm-bearerAuth',
|
|
5887
6211
|
scheme: 'bearer',
|
|
5888
6212
|
type: 'http'
|
|
5889
6213
|
}],
|
|
5890
|
-
url: '/
|
|
5891
|
-
...options
|
|
6214
|
+
url: '/crm/v1/leads/{leadId}:qualify',
|
|
6215
|
+
...options,
|
|
6216
|
+
headers: {
|
|
6217
|
+
'Content-Type': 'application/json',
|
|
6218
|
+
...options.headers
|
|
6219
|
+
}
|
|
5892
6220
|
});
|
|
5893
6221
|
/**
|
|
5894
|
-
*
|
|
6222
|
+
* Revert change set
|
|
5895
6223
|
*
|
|
5896
|
-
*
|
|
6224
|
+
* Reverse property changes made by one earlier request. Unlike HubSpot, CRM exposes change-set reversal because agents need to undo a whole recorded action rather than manually reconstructing individual values. Supply the changeSetId recorded in property history. A later conflicting value prevents reversal with HTTP 409 CONFLICT; inspect current records before resolving the conflict. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.
|
|
5897
6225
|
*/
|
|
5898
|
-
export const
|
|
6226
|
+
export const crmChangesRevert = (options) => (options.client ?? client).post({
|
|
5899
6227
|
security: [{
|
|
5900
|
-
key: '
|
|
6228
|
+
key: 'crm-bearerAuth',
|
|
5901
6229
|
scheme: 'bearer',
|
|
5902
6230
|
type: 'http'
|
|
5903
6231
|
}],
|
|
5904
|
-
url: '/
|
|
6232
|
+
url: '/crm/v1/changes/{changeSetId}:revert',
|
|
5905
6233
|
...options
|
|
5906
6234
|
});
|
|
5907
6235
|
/**
|
|
5908
|
-
*
|
|
6236
|
+
* Retrieve record layout
|
|
5909
6237
|
*
|
|
5910
|
-
*
|
|
6238
|
+
* Read the shared record-page layout for an object type from schemas.list. Unlike HubSpot, CRM exposes this presentation as an API resource so people and agents can share the same record layout instead of relying on interface-only settings. The response orders summary tiles, sidebar properties and main-column sections.
|
|
5911
6239
|
*/
|
|
5912
|
-
export const
|
|
6240
|
+
export const crmLayoutsRetrieve = (options) => (options.client ?? client).get({
|
|
5913
6241
|
security: [{
|
|
5914
|
-
key: '
|
|
6242
|
+
key: 'crm-bearerAuth',
|
|
5915
6243
|
scheme: 'bearer',
|
|
5916
6244
|
type: 'http'
|
|
5917
6245
|
}],
|
|
5918
|
-
url: '/
|
|
6246
|
+
url: '/crm/v1/layouts/{objectType}',
|
|
5919
6247
|
...options
|
|
5920
6248
|
});
|
|
5921
6249
|
/**
|
|
5922
|
-
*
|
|
6250
|
+
* Update record layout
|
|
5923
6251
|
*
|
|
5924
|
-
*
|
|
6252
|
+
* Replace the shared record-page layout for an object type from schemas.list. Unlike HubSpot, CRM exposes this presentation as an API resource so agents can configure the same record view used by people. Send the complete layout with at most three summary tiles and property names from properties.list; omitted prior sections are removed. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.
|
|
5925
6253
|
*/
|
|
5926
|
-
export const
|
|
6254
|
+
export const crmLayoutsUpdate = (options) => (options.client ?? client).put({
|
|
5927
6255
|
security: [{
|
|
5928
|
-
key: '
|
|
6256
|
+
key: 'crm-bearerAuth',
|
|
5929
6257
|
scheme: 'bearer',
|
|
5930
6258
|
type: 'http'
|
|
5931
6259
|
}],
|
|
5932
|
-
url: '/
|
|
6260
|
+
url: '/crm/v1/layouts/{objectType}',
|
|
5933
6261
|
...options,
|
|
5934
6262
|
headers: {
|
|
5935
6263
|
'Content-Type': 'application/json',
|
|
@@ -5937,17 +6265,39 @@ export const mediaUploadAsset = (options) => (options.client ?? client).post({
|
|
|
5937
6265
|
}
|
|
5938
6266
|
});
|
|
5939
6267
|
/**
|
|
5940
|
-
*
|
|
6268
|
+
* List projects
|
|
5941
6269
|
*
|
|
5942
|
-
*
|
|
6270
|
+
* Discover projects owned by the API key organization and obtain project_id values. Results default to active projects ordered by updateTime descending; use filter state = "deleted" to find retained deleted projects for undelete. Continue with next_page_token as page_token until the token is absent.
|
|
5943
6271
|
*/
|
|
5944
|
-
export const
|
|
6272
|
+
export const cutListProjects = (options) => (options?.client ?? client).get({
|
|
5945
6273
|
security: [{
|
|
5946
|
-
key: '
|
|
6274
|
+
key: 'BearerAuth',
|
|
5947
6275
|
scheme: 'bearer',
|
|
5948
6276
|
type: 'http'
|
|
6277
|
+
}, {
|
|
6278
|
+
key: 'ApiKeyAuth',
|
|
6279
|
+
name: 'X-API-Key',
|
|
6280
|
+
type: 'apiKey'
|
|
5949
6281
|
}],
|
|
5950
|
-
url: '/
|
|
6282
|
+
url: '/cut/v1/projects',
|
|
6283
|
+
...options
|
|
6284
|
+
});
|
|
6285
|
+
/**
|
|
6286
|
+
* Create project
|
|
6287
|
+
*
|
|
6288
|
+
* Create a blank editing project in the API key organization before writing a script. First obtain accessible library ids from praxis.media; bindings must include exactly one read_write library with default_upload true. Each call creates a new project and returns HTTP 201; save its id for execute, state and timeline calls. All editing positions use seconds.
|
|
6289
|
+
*/
|
|
6290
|
+
export const cutCreateProject = (options) => (options.client ?? client).post({
|
|
6291
|
+
security: [{
|
|
6292
|
+
key: 'BearerAuth',
|
|
6293
|
+
scheme: 'bearer',
|
|
6294
|
+
type: 'http'
|
|
6295
|
+
}, {
|
|
6296
|
+
key: 'ApiKeyAuth',
|
|
6297
|
+
name: 'X-API-Key',
|
|
6298
|
+
type: 'apiKey'
|
|
6299
|
+
}],
|
|
6300
|
+
url: '/cut/v1/projects',
|
|
5951
6301
|
...options,
|
|
5952
6302
|
headers: {
|
|
5953
6303
|
'Content-Type': 'application/json',
|
|
@@ -5955,45 +6305,57 @@ export const mediaImportAsset = (options) => (options.client ?? client).post({
|
|
|
5955
6305
|
}
|
|
5956
6306
|
});
|
|
5957
6307
|
/**
|
|
5958
|
-
* Delete
|
|
6308
|
+
* Delete project
|
|
5959
6309
|
*
|
|
5960
|
-
*
|
|
6310
|
+
* Soft-delete a project selected from projects.list. The project is retained for seven days until purge_time and can be restored with undelete before that deadline. Deleted projects cannot be edited; list with filter state = "deleted" to locate retained projects.
|
|
5961
6311
|
*/
|
|
5962
|
-
export const
|
|
6312
|
+
export const cutDeleteProject = (options) => (options.client ?? client).delete({
|
|
5963
6313
|
security: [{
|
|
5964
|
-
key: '
|
|
6314
|
+
key: 'BearerAuth',
|
|
5965
6315
|
scheme: 'bearer',
|
|
5966
6316
|
type: 'http'
|
|
6317
|
+
}, {
|
|
6318
|
+
key: 'ApiKeyAuth',
|
|
6319
|
+
name: 'X-API-Key',
|
|
6320
|
+
type: 'apiKey'
|
|
5967
6321
|
}],
|
|
5968
|
-
url: '/
|
|
6322
|
+
url: '/cut/v1/projects/{project_id}',
|
|
5969
6323
|
...options
|
|
5970
6324
|
});
|
|
5971
6325
|
/**
|
|
5972
|
-
*
|
|
6326
|
+
* Retrieve project
|
|
5973
6327
|
*
|
|
5974
|
-
*
|
|
6328
|
+
* Inspect project metadata, settings and library bindings before editing. Copy id from projects.create or list; expand=timeline,exports,versions includes selected related resources. The expanded timeline uses seconds and the returned revision can guard a later execute call with expected_revision.
|
|
5975
6329
|
*/
|
|
5976
|
-
export const
|
|
6330
|
+
export const cutRetrieveProject = (options) => (options.client ?? client).get({
|
|
5977
6331
|
security: [{
|
|
5978
|
-
key: '
|
|
6332
|
+
key: 'BearerAuth',
|
|
5979
6333
|
scheme: 'bearer',
|
|
5980
6334
|
type: 'http'
|
|
6335
|
+
}, {
|
|
6336
|
+
key: 'ApiKeyAuth',
|
|
6337
|
+
name: 'X-API-Key',
|
|
6338
|
+
type: 'apiKey'
|
|
5981
6339
|
}],
|
|
5982
|
-
url: '/
|
|
6340
|
+
url: '/cut/v1/projects/{project_id}',
|
|
5983
6341
|
...options
|
|
5984
6342
|
});
|
|
5985
6343
|
/**
|
|
5986
|
-
* Update
|
|
6344
|
+
* Update project metadata
|
|
5987
6345
|
*
|
|
5988
|
-
*
|
|
6346
|
+
* Change the project display name or replace its labels by naming those fields in update_mask. Use execute for clip or track edits. Each successful update commits a new revision; labels are replaced as a whole when selected, so read and merge existing labels before overwriting them.
|
|
5989
6347
|
*/
|
|
5990
|
-
export const
|
|
6348
|
+
export const cutUpdateProject = (options) => (options.client ?? client).patch({
|
|
5991
6349
|
security: [{
|
|
5992
|
-
key: '
|
|
6350
|
+
key: 'BearerAuth',
|
|
5993
6351
|
scheme: 'bearer',
|
|
5994
6352
|
type: 'http'
|
|
6353
|
+
}, {
|
|
6354
|
+
key: 'ApiKeyAuth',
|
|
6355
|
+
name: 'X-API-Key',
|
|
6356
|
+
type: 'apiKey'
|
|
5995
6357
|
}],
|
|
5996
|
-
url: '/
|
|
6358
|
+
url: '/cut/v1/projects/{project_id}',
|
|
5997
6359
|
...options,
|
|
5998
6360
|
headers: {
|
|
5999
6361
|
'Content-Type': 'application/json',
|
|
@@ -6001,17 +6363,173 @@ export const mediaUpdateAsset = (options) => (options.client ?? client).patch({
|
|
|
6001
6363
|
}
|
|
6002
6364
|
});
|
|
6003
6365
|
/**
|
|
6004
|
-
*
|
|
6366
|
+
* Restore deleted project
|
|
6005
6367
|
*
|
|
6006
|
-
*
|
|
6368
|
+
* Return a retained deleted project to active state before its purge_time. Obtain project_id from projects.list filtered to deleted projects. This restores the project, not an older timeline revision; use versions.restore when reverting editing content.
|
|
6007
6369
|
*/
|
|
6008
|
-
export const
|
|
6370
|
+
export const cutUndeleteProject = (options) => (options.client ?? client).post({
|
|
6009
6371
|
security: [{
|
|
6010
|
-
key: '
|
|
6372
|
+
key: 'BearerAuth',
|
|
6011
6373
|
scheme: 'bearer',
|
|
6012
6374
|
type: 'http'
|
|
6375
|
+
}, {
|
|
6376
|
+
key: 'ApiKeyAuth',
|
|
6377
|
+
name: 'X-API-Key',
|
|
6378
|
+
type: 'apiKey'
|
|
6013
6379
|
}],
|
|
6014
|
-
url: '/
|
|
6380
|
+
url: '/cut/v1/projects/{project_id}:undelete',
|
|
6381
|
+
...options
|
|
6382
|
+
});
|
|
6383
|
+
/**
|
|
6384
|
+
* Execute editing script
|
|
6385
|
+
*
|
|
6386
|
+
* Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: `const t = AddTrack("video"); Insert(t, {type: "color", color: "#123456", start: 0, length: 3}); Print(t);`
|
|
6387
|
+
*
|
|
6388
|
+
* ### Script function reference
|
|
6389
|
+
*
|
|
6390
|
+
* Functions are synchronous globals; do not import them. `project` is the current project ID. TrackId and ClipId are strings returned by AddTrack and Insert or read from GetTimeline. JoinId is the string returned by Join or read from GetTimeline().joins. Reads see earlier writes in the same script.
|
|
6391
|
+
*
|
|
6392
|
+
* ```ts
|
|
6393
|
+
* GetTimeline(o?: { from?: number; to?: number; tracks?: TrackId[] }): TimelineView;
|
|
6394
|
+
* GetItem(id: ClipId): ItemView;
|
|
6395
|
+
* FindItems<T>(visit: (item: ItemView, ctx: { track: TrackView; index: number }) => T | undefined): T[];
|
|
6396
|
+
* GetMedia(ref: MediaRef): MediaInfo;
|
|
6397
|
+
* GetTranscript(ref: MediaRef, o?: { from?: number; to?: number }): Word[];
|
|
6398
|
+
* GetAnalysis(ref: MediaRef, kind: AnalysisKind): Segment[];
|
|
6399
|
+
* ListTransitions(): TransitionInfo[];
|
|
6400
|
+
* ListEffects(): EffectInfo[];
|
|
6401
|
+
* ListTextStyles(): TextStylePreset[];
|
|
6402
|
+
* ListTextTemplates(): TextTemplate[];
|
|
6403
|
+
* ListAnimations(): { id: string; version: number; phase: "in" | "out" | "loop"; target: "any" | "text"; name: string; description: string; defaultDuration: number; params: { name: string; type: string; values?: string[]; default?: string | number; min?: number; max?: number; description: string }[] }[];
|
|
6404
|
+
* ListFonts(): { family: string; weights: number[]; scripts: ("latin"|"cjk")[]; source: "bundled"|"catalog" }[];
|
|
6405
|
+
* Insert(track: TrackId, item: ItemInit, o?: { ripple?: boolean }): ClipId;
|
|
6406
|
+
* Update(id: ClipId, patch: ItemPatchView): void;
|
|
6407
|
+
* SetSpeed(id: ClipId, rate: number | { curve: { at: number; rate: number; ease?: Ease }[]; audio?: "mute" | "resample" }, o: { keep: "source" | "duration"; ripple?: boolean }): { length: number; sourceOut: number };
|
|
6408
|
+
* Delete(id: ClipId, o?: { ripple?: boolean }): void;
|
|
6409
|
+
* Join(left: ClipId, right: ClipId, o: { length?: number; effect: TransitionInput }): JoinId;
|
|
6410
|
+
* UpdateJoin(id: JoinId, patch: { length?: number; effect?: TransitionInput }): void;
|
|
6411
|
+
* DeleteJoin(id: JoinId): void;
|
|
6412
|
+
* Split(id: ClipId, at: number): ClipId;
|
|
6413
|
+
* Trim(id: ClipId, edge: "in" | "out", delta: number, o?: { ripple?: boolean }): void;
|
|
6414
|
+
* Move(id: ClipId, start: number, track?: TrackId): void;
|
|
6415
|
+
* RippleDeleteRange(from: number, to: number, tracks?: TrackId[]): void;
|
|
6416
|
+
* AddTrack(kind: "video" | "audio" | "caption", init?: { name?: string; role?: "voice" | "music" | "sfx" }, index?: number): TrackId;
|
|
6417
|
+
* UpdateTrack(id: TrackId, patch: TrackPatch): void;
|
|
6418
|
+
* DeleteTrack(id: TrackId): void;
|
|
6419
|
+
* SetSettings(patch: Partial<ProjectSettingsView>): void;
|
|
6420
|
+
* AddCaptionsFromTranscript(track: TrackId, source: ClipId, o?: { style?: Partial<CaptionStyle> & { preset?: string }; maxChars?: number }): ClipId[];
|
|
6421
|
+
* InsertTemplate(track: TrackId, o: { template: string; start: number; slots?: Record<string, string> }): ClipId[];
|
|
6422
|
+
* AlignCaptions(trackId: TrackId, script: string, options?: { resplit?: boolean; maxChars?: number }): { replaced: number; added: number; deleted: number };
|
|
6423
|
+
* ImportCaptions(trackId: TrackId, text: string, o?: { format?: "srt" | "vtt"; offset?: number }): ClipId[];
|
|
6424
|
+
* ExportCaptions(trackId: TrackId, o: { format: "srt" | "vtt" }): string;
|
|
6425
|
+
* SetMarker(at: number, label: string): string;
|
|
6426
|
+
* Print(...values: unknown[]): void;
|
|
6427
|
+
* Preview(at: number[]): void;
|
|
6428
|
+
* ```
|
|
6429
|
+
*
|
|
6430
|
+
* | Functions | Behavior and arguments |
|
|
6431
|
+
* | --- | --- |
|
|
6432
|
+
* | GetTimeline, GetItem | Read compact item views: id, track, type, start, end, length, optional media, playback, sourceIn/sourceOut, text, effects, blend and offline reason. GetTimeline returns duration, tracks (id, kind, name, index, locked, items), and joins (id, track, left, right, length in seconds, normalized effect). from/to and tracks narrow the items and joins; joins are selected by their overlap window. |
|
|
6433
|
+
* | ListEffects | Discover the shared visual-effect catalog with parameter types, ranges, defaults, cost and bounds. Effects are supported only on visual clips. |
|
|
6434
|
+
* | ListTransitions | Discover the shared validation catalog: each entry contains kind (effect ID), name, description and params. Each parameter has name, type (enum/number/integer), default, description, enum values or numeric min/max. Use the returned kind and parameter names inside effect. |
|
|
6435
|
+
* | ListAnimations | Discover animation presets. Each entry has id, version, phase (`in`, `out`, `loop`), target (`any`, `text`), name, description, defaultDuration (seconds), and params (name, type, values/default/min/max/description as applicable). A slot use is `{preset, duration?, ...params}`; duration is seconds. |
|
|
6436
|
+
* | FindItems | Visit items with their track and index; return undefined to omit an item, any other value to collect it. |
|
|
6437
|
+
* | GetMedia | Read metadata for `{libraryId, assetId}` in a bound library: kind, dimensions, fps, hasAudio and durationUs when available. durationUs is microseconds. |
|
|
6438
|
+
* | GetTranscript, GetAnalysis | Read available transcript words or silence/filler/scenes segments. Transcript filter from/to is seconds; returned word and segment from/to values are source microseconds (divide by 1,000,000 for editing). Words contain text and optional speaker/filler; segments may include label/confidence. Request analysis first if unavailable. |
|
|
6439
|
+
* | Insert, Update, Delete | Insert returns the new clip ID; Update changes supplied fields; Delete removes the clip. Optional ripple on Insert/Delete closes or opens space on the track. |
|
|
6440
|
+
* | SetSpeed | Change video/audio rate in 0.25–4; keep is required. A `{curve: [{at, rate, ease?}, ...], audio?: "mute" | "resample"}` rate is forward-only and holds output duration fixed; pitch preservation is unavailable. Scalar rates: source preserves consumed source and changes length; duration preserves output length. Returns actual length and sourceOut in seconds. Optional ripple explicitly shifts same-track followers when keeping source; otherwise overlaps are rejected. |
|
|
6441
|
+
* | Join, UpdateJoin, DeleteJoin | Join creates an overlap between two butt-adjacent visual clips on the same track and returns its ID. length defaults to 0.5 seconds; effect is required. The right clip and all same-track followers move left by length, shortening that track and potentially the project. UpdateJoin moves those followers by the difference in length; omitted fields are preserved. DeleteJoin moves them right to restore the butt cut. Other tracks stay in place. |
|
|
6442
|
+
* | Split, Trim, Move | Split at a timeline position and return the new right-hand clip ID. Trim changes the in or out edge by delta seconds. Move sets the timeline start and optionally a new track. |
|
|
6443
|
+
* | RippleDeleteRange | Delete a timeline interval and close its gap on the specified tracks, or all unlocked tracks when omitted. |
|
|
6444
|
+
* | AddTrack, UpdateTrack, DeleteTrack | Add video/audio/caption tracks; index selects layer order (0 is top). TrackPatch supports name, locked, hidden, muted, gainDb, audio role (`voice`, `music`, `sfx`) and style as appropriate to track kind. |
|
|
6445
|
+
* | SetSettings | Supply any of width/height (pixels), fps (frames per second), background (color). |
|
|
6446
|
+
* | AddCaptionsFromTranscript | Create captions from an audio/video clip's kept words. Optional maxChars is 1–1000, default 16; style updates the caption track. Returns caption IDs. |
|
|
6447
|
+
* | ImportCaptions, ExportCaptions | Import SRT or WebVTT text onto a caption track and export it back. format is inferred from a WEBVTT header when omitted. offset shifts imported cues in seconds. Import rejects more than 100000 bytes, more than 5000 cues, malformed or overlapping file cues with INVALID_CAPTION_FILE; overlap with existing timeline clips uses the normal OVERLAP rejection. Export sorts by timeline start and writes millisecond timecodes. |
|
|
6448
|
+
* | SetMarker | Add a label at a timeline time and return its ID. |
|
|
6449
|
+
* | Print, Preview | Print appends text to prints. Preview requests up to eight times total per execute and puts images in the result's frames. Each url is an inline PNG data URL, not an HTTP image link. Decode the base64 payload to save an image. Codemode returns at most four images per call; request at most four times there. |
|
|
6450
|
+
*
|
|
6451
|
+
* #### Joins between clips
|
|
6452
|
+
*
|
|
6453
|
+
* Endpoints may be video, image, text, color or shape; audio and caption are rejected. Require 0 < length < each endpoint's length. Each clip allows at most one incoming and one outgoing join; their summed lengths cannot exceed its length. Three-input overlaps, nonadjacent endpoints and cross-track joins are rejected with OPS_REJECTED. Read the rejection's code and message, shorten or remove conflicting joins, and retry the saved edit.
|
|
6454
|
+
*
|
|
6455
|
+
* TransitionInput is an object with kind plus the parameters returned by ListTransitions; omitted parameters use catalog defaults. Unknown kinds and invalid parameters return INVALID_TRANSITION_PARAM with available parameters. Effects: dissolve; dip color black/white default black; push and wipe direction left/right/up/down default left; wipe softness 0–1 default 0; iris centerX/centerY 0–1 default 0.5; blinds integer count 2–64 default 8 and orientation vertical/horizontal default vertical; blur radius 0–100 pixels at 1080-pixel frame height default 24; zoom direction in/out default in, amount 0.1–3 default 1, blur 0–1 default 0.5; clock direction clockwise/counterclockwise default clockwise, startAngle 0–360 degrees default 0 (twelve o'clock), softness 0–1 default 0; flash color white/black default white, intensity 0–1 default 1. Zoom blur uses up to eight radial samples per shot and is slower on server rendering. Join options and UpdateJoin patches accept only length and effect. Effect updates replace the effect object and apply defaults for omitted parameters.
|
|
6456
|
+
*
|
|
6457
|
+
* Minimal example on an existing visual track with adjacent clips left and right: `Print(ListTransitions()); const j = Join(left, right, {length: 0.5, effect: {kind: "dissolve"}}); Print(GetTimeline().joins); Preview([GetItem(right).start + 0.25]);` Use `UpdateJoin(j, {length: 0.8})` to adjust it in a later edit or `DeleteJoin(j)` to restore the cut. Preview uses server-rendered frames and includes joins. Per-clip transitionIn/transitionOut remain separate entrance/exit effects.
|
|
6458
|
+
*
|
|
6459
|
+
* #### Insert fields (ItemInit)
|
|
6460
|
+
*
|
|
6461
|
+
* Every item requires `type` and `start`. Times used for editing are seconds and snap to the project frame rate: start, length, sourceIn, fadeIn/fadeOut, transition length, keyframe at, reveal delay/stagger/duration. Keyframe and reveal times are relative to the clip start. Video/audio may omit length to use the remaining source duration; other types require length.
|
|
6462
|
+
*
|
|
6463
|
+
* | type | Required fields beyond type/start | Optional fields |
|
|
6464
|
+
* | --- | --- | --- |
|
|
6465
|
+
* | video | media | length, sourceIn, playback, volumeDb, transform, fit, blend, animate, animation, effects, mask, transitionIn, transitionOut |
|
|
6466
|
+
* | image | media, length | transform, fit, blend, animate, animation, effects, mask, transitionIn, transitionOut |
|
|
6467
|
+
* | text | text, length | style, transform, blend, reveal, animate, animation, effects, mask, transitionIn, transitionOut |
|
|
6468
|
+
* | color | color, length | transform, fill, blend, animate, animation, effects, mask, transitionIn, transitionOut |
|
|
6469
|
+
* | shape | shape, length, width, height, fill | radius, stroke, transform, blend, animate, animation, effects, mask, transitionIn, transitionOut |
|
|
6470
|
+
* | audio | media | length, sourceIn, playback, volumeDb, gain, fadeIn, fadeOut, duck |
|
|
6471
|
+
* | caption | text, length | — |
|
|
6472
|
+
*
|
|
6473
|
+
* Visual Insert/Update also accepts `blend`: `normal` (default), `screen`, `multiply`, `overlay`, or `add`; set it to null in Update to clear it. During a Join overlap, both inputs render with normal blending. Video tracks accept video/image/text/color/shape; audio and caption tracks accept their corresponding type. Media is `{libraryId: string, assetId: string}` from a bound library. sourceIn defaults to 0, volumeDb to 0 dB, audio fades to 0 seconds. fit defaults to contain: contain fits the whole image, cover fills and crops, fill stretches, none keeps native dimensions.
|
|
6474
|
+
*
|
|
6475
|
+
* | Field | Value |
|
|
6476
|
+
* | --- | --- |
|
|
6477
|
+
* | transform | Partial `{x, y, scale, rotation, opacity, crop, blur}`. x/y are normalized canvas center coordinates (default 0.5); scale 1 is fitted size; rotation is degrees (default 0); opacity is 0–1 (default 1). crop is `{top,right,bottom,left}`. blur is 0–100 pixels at 1080-pixel frame height. |
|
|
6478
|
+
* | style | Partial `{fontFamily, fontSize, fontWeight, color, fill, stroke, strokes, shadows, glow, background, align, maxWidth, position, margin}`. fill accepts a color or linear/radial gradient across the entire text bounding box. strokes draw outside to inside; at most 4, width 0–40. shadows accepts at most 4 `{color,x,y,blur}` entries; blur is 0–100. glow is `{color,radius,strength}` with radius 0–100 and strength 0–1. All dimensions use pixels at 1080 frame height and scale with the text. Glow and large shadow blur increase render time. Invalid colors or ranges return actionable INVALID_STYLE errors. `ListFonts()` discovers family, available weights, scripts and bundled/catalog source. Text and captions share the style fields; caption style additionally supports highlightColor and maxLines: 2. |
|
|
6479
|
+
* | animate | An object keyed by x, y, scale, rotation, opacity or blur. Each value is an array of `{at: number, value: number, ease?: Ease}` sorted by at with distinct frame-snapped times. Values hold before the first and after the last keyframe, overriding the static transform. |
|
|
6480
|
+
* | animation | `{in?: AnimationUse, out?: AnimationUse, loop?: AnimationUse}` on visual clips. Each use is `{preset: string, duration?: number, ...params}`; duration and parameter units follow `ListAnimations()`. Presets replace existing animate and reveal when applied. Update accepts `animation: null` to clear the preset and its generated effects. |
|
|
6481
|
+
* | Ease | linear, in, out, inOut, `{bezier: [x1,y1,x2,y2]}` or `{spring: {stiffness, damping, mass?}}`. Easing shapes the segment arriving at that keyframe; springs may overshoot. |
|
|
6482
|
+
* | reveal | `{by, delay?: number, stagger: number, duration: number, from: {y?, opacity?, scale?, blur?}, ease?: Ease}`. by selects char, word or line. Unit k starts at delay + k * stagger and takes duration seconds to reach its resting state; from.y is a fraction of font size. |
|
|
6483
|
+
* | fill | A color string (#RRGGBB or #RRGGBBAA), `{linear: {angle, stops: [{at,color}, ...]}}` or `{radial: {stops: [{at,color}, ...]}}`. Stop positions are 0–1; angle is degrees, 0 left to right. On color clips, fill replaces color when supplied. |
|
|
6484
|
+
* | shape, width, height, radius, stroke | shape is rect or ellipse. width/height are fractions of canvas width/height before scaling. radius rounds rect corners in pixels at 1080-pixel frame height. stroke is `{color: string, width: number}`. |
|
|
6485
|
+
* | transitionIn, transitionOut | `{kind, length: number}` at the clip's beginning/end. length is seconds. fade changes opacity; dissolve blends; push_left/push_right move horizontally; wipe_left reveals horizontally. |
|
|
6486
|
+
*
|
|
6487
|
+
* #### Visual effects
|
|
6488
|
+
*
|
|
6489
|
+
* `effects` is an ordered stack of at most 8 catalog entries. Call `ListEffects()` to discover the catalog; unknown kinds return `UNKNOWN_EFFECT`, invalid names/values/keyframes return `INVALID_EFFECT_PARAM`, and stacks over 8 return `TOO_MANY_EFFECTS`. Entries include blur, color adjustment, vignette, film grain, chromatic aberration, pixelate, glitch, shake, flash, light leak and built-in `lut` looks; user `.cube` LUTs are not supported. `speed` is cycles per second. Effects run on CPU during export and increase render time. Parameters are discovered with ListEffects(). Catalog entries expose their own parameters through ListEffects(), including `blur` (`radius` 0–100, default 24) and `color_adjust`: `brightness`, `contrast`, `temperature`, and `tint` each range -1–1 (default 0), while `saturation` ranges 0–2 (default 1). Disabled entries are skipped. `color_adjust` uses an SDR-only Rec.709 adjustment matrix with no color management.
|
|
6490
|
+
*
|
|
6491
|
+
* Numeric and integer effect parameters accept `keyframes: {parameter: [{at, value, ease?}, ...]}`; times are seconds relative to the clip, snap to frames like `animate`, must be strictly increasing and within clip duration, and values follow that parameter's catalog range. Omitted parameters use catalog defaults. Trim and Split preserve effect keyframes with the same clip-local behavior as `animate`. There are no custom shaders.
|
|
6492
|
+
*
|
|
6493
|
+
* `blend` applies to the completed visual layer after its content, effects and `transform.blur`; `add` maps to Skia Plus. The default `normal` path adds no blend layer. During Join overlaps, blending is forced to normal because each input is composed on transparency.
|
|
6494
|
+
*
|
|
6495
|
+
* #### Update fields (ItemPatchView)
|
|
6496
|
+
*
|
|
6497
|
+
* All fields are optional; use only fields relevant to the item's type. Supported fields: start, length, sourceIn, playback, volumeDb, transform, fit, text, style, color, fadeIn, fadeOut, duck, animate, reveal, animation, fill, stroke, shape, width, height, radius, transitionIn, transitionOut, effects, blend, mask, gain. Values and units match Insert; set effects or blend to null to clear them. Set animation to null to clear the preset; set animate or reveal to null to remove that effect. Applying a preset replaces existing animate/reveal. Do not set animation together with animate or reveal in one Insert/Update call. Omit a field to preserve it.
|
|
6498
|
+
*
|
|
6499
|
+
* #### Animation presets
|
|
6500
|
+
*
|
|
6501
|
+
* Discover the catalog with `ListAnimations()`. Its entries contain id, version, phase (`in`, `out`, `loop`), target (`any` or `text`), name, description, defaultDuration in seconds, and params. Slots may combine one in, one out and one loop preset. A loop runs only in the interval between in and out; if the same property is animated by multiple slots, loop occupies only that middle interval. Text-target presets are entrances. Their duration controls the rhythm per character/word/line, not the total reveal time. Out and loop presets apply to the whole clip, not per text unit.
|
|
6502
|
+
*
|
|
6503
|
+
* Presets replace the clip's existing animate and reveal when applied. The source preset is retained, so changing clip length or transform automatically regenerates its keyframes/reveal. If a clip becomes shorter, in/out durations shrink proportionally; when it grows, the requested durations are restored. Split keeps in on the left, out on the right, and loop on both. Writing animate or reveal directly detaches the preset; setting animation to null clears both source and generated effects. Insert/Update reject a call that supplies animation together with animate or reveal.
|
|
6504
|
+
*
|
|
6505
|
+
* Errors: UNKNOWN_ANIMATION (unknown preset), INVALID_ANIMATION_PARAM (invalid slot/parameter or frame/keyframe limit), ANIMATION_TOO_LONG (in+out exceed clip length), ANIMATION_TARGET_MISMATCH (text-only preset on a non-text or preset on non-visual clip), ANIMATION_PHASE_MISMATCH (preset in the wrong slot). Each animated property is limited to 600 keyframes; loop duration must be at least 4 frames. `ANIMATION_TOO_LONG` is avoided during later length changes by proportional fitting.
|
|
6506
|
+
*
|
|
6507
|
+
* #### Speed, reverse and freeze
|
|
6508
|
+
*
|
|
6509
|
+
* Video/audio Insert and Update accept playback as `{kind: "rate", rate: number, direction: "forward" | "reverse", audio: "preservePitch" | "resample" | "mute"}` or `{kind: "freeze"}`. Rate is finite and inclusive 0.25–4. Omitted playback defaults to 1× forward with preservePitch; supply the complete rate object when changing playback. preservePitch keeps pitch, resample changes pitch with speed, mute removes audio. Reverse requires explicit audio: "mute"; preservePitch/resample are rejected with UNSUPPORTED_PLAYBACK rather than silently muted. Freeze holds sourceIn and is silent. GetItem/GetTimeline echo playback and the source interval in seconds; sourceOut is exclusive even for reverse and equals sourceIn for freeze.
|
|
6510
|
+
*
|
|
6511
|
+
* Update of playback keeps output length unless length is also supplied. SetSpeed preserves direction/audio, rejects frozen and non-video/audio clips, and requires keep: "source" or "duration". keep: "source" computes round(consumed source / new rate × fps) frames, falling back to floor if rounding would exceed the source end; the returned length/sourceOut are actual frame-rounded seconds. keep: "duration" keeps output length and changes source consumption. Length conflicts fail with OVERLAP; move/shorten the conflicting clip, keep duration, or explicitly use ripple: true to shift following clips on the same track. Source overflow fails with OUT_OF_SOURCE; rate limits fail with RATE_OUT_OF_RANGE. Unknown playback fields and SetSpeed options are rejected with UNKNOWN_FIELD; options only accept keep and boolean ripple.
|
|
6512
|
+
*
|
|
6513
|
+
* Example for an existing four-second video/audio clip id: `Print(SetSpeed(id, 0.5, {keep: "source"})); Print(SetSpeed(id, 2, {keep: "source"}));` returns lengths 8 then 2, keeping the same source interval. Reverse: `Update(id, {playback: {kind: "rate", rate: 1, direction: "reverse", audio: "mute"}})`. Freeze: `Update(id, {playback: {kind: "freeze"}})`. Ensure enough source remains for the chosen length/rate. Browser reverse playback currently displays a placeholder; server-rendered Preview/frames and exports support reverse normally. Speed-adjusted audio is generated asynchronously after the edit transaction commits; exports wait for that audio before rendering.
|
|
6514
|
+
*
|
|
6515
|
+
* #### Script names versus HTTP response names
|
|
6516
|
+
*
|
|
6517
|
+
* Use camelCase inside scripts, including nested objects. HTTP request/response JSON outside script source uses snake_case. Map media.library_id → media.libraryId, media.asset_id → media.assetId, source_in → sourceIn, volume_db → volumeDb, fade_in/fade_out → fadeIn/fadeOut, transition_in/transition_out → transitionIn/transitionOut, font_family/font_size/font_weight/max_width → fontFamily/fontSize/fontWeight/maxWidth, gain_db → gainDb, highlight_color/max_lines → highlightColor/maxLines. Fields such as animate, reveal, fill, stroke, at and length retain their spelling. GetTimeline/GetItem already return camelCase compact views; the expanded retrieveTimeline HTTP response is not an Insert object.
|
|
6518
|
+
*
|
|
6519
|
+
* Unrecognized script fields fail with OPS_REJECTED and rejection code UNKNOWN_FIELD; snake_case mistakes suggest the corresponding camelCase name. The error message lists each rejection's #opIndex, code and reason. Correct the named fields and retry the saved edit; do not assume an ignored field applied an effect.
|
|
6520
|
+
*
|
|
6521
|
+
*/
|
|
6522
|
+
export const cutExecute = (options) => (options.client ?? client).post({
|
|
6523
|
+
security: [{
|
|
6524
|
+
key: 'BearerAuth',
|
|
6525
|
+
scheme: 'bearer',
|
|
6526
|
+
type: 'http'
|
|
6527
|
+
}, {
|
|
6528
|
+
key: 'ApiKeyAuth',
|
|
6529
|
+
name: 'X-API-Key',
|
|
6530
|
+
type: 'apiKey'
|
|
6531
|
+
}],
|
|
6532
|
+
url: '/cut/v1/projects/{project_id}:execute',
|
|
6015
6533
|
...options,
|
|
6016
6534
|
headers: {
|
|
6017
6535
|
'Content-Type': 'application/json',
|
|
@@ -6019,67 +6537,75 @@ export const mediaReprocessAsset = (options) => (options.client ?? client).post(
|
|
|
6019
6537
|
}
|
|
6020
6538
|
});
|
|
6021
6539
|
/**
|
|
6022
|
-
*
|
|
6540
|
+
* Read editing state
|
|
6023
6541
|
*
|
|
6024
|
-
*
|
|
6542
|
+
* Read lightweight project context before composing an execute script. Returns current revision, rendering settings, track counts, library bindings and offline media count without individual clips. For complete clip documents or a selected time range, read timeline instead.
|
|
6025
6543
|
*/
|
|
6026
|
-
export const
|
|
6544
|
+
export const cutRetrieveState = (options) => (options.client ?? client).get({
|
|
6027
6545
|
security: [{
|
|
6028
|
-
key: '
|
|
6546
|
+
key: 'BearerAuth',
|
|
6029
6547
|
scheme: 'bearer',
|
|
6030
6548
|
type: 'http'
|
|
6549
|
+
}, {
|
|
6550
|
+
key: 'ApiKeyAuth',
|
|
6551
|
+
name: 'X-API-Key',
|
|
6552
|
+
type: 'apiKey'
|
|
6031
6553
|
}],
|
|
6032
|
-
url: '/
|
|
6554
|
+
url: '/cut/v1/projects/{project_id}/state',
|
|
6033
6555
|
...options
|
|
6034
6556
|
});
|
|
6035
6557
|
/**
|
|
6036
|
-
*
|
|
6558
|
+
* Read project timeline
|
|
6037
6559
|
*
|
|
6038
|
-
*
|
|
6560
|
+
* Inspect clips and markers in a selected project range before editing. view=full returns structured tracks with all timeline positions in seconds; view=compact returns compact text for script context. from and to are seconds and tracks limits the selection to comma-separated track ids from state. Concurrent changes while preparing a full timeline return 409; retrieve the latest state and try the read again.
|
|
6039
6561
|
*/
|
|
6040
|
-
export const
|
|
6562
|
+
export const cutRetrieveTimeline = (options) => (options.client ?? client).get({
|
|
6041
6563
|
security: [{
|
|
6042
|
-
key: '
|
|
6564
|
+
key: 'BearerAuth',
|
|
6043
6565
|
scheme: 'bearer',
|
|
6044
6566
|
type: 'http'
|
|
6567
|
+
}, {
|
|
6568
|
+
key: 'ApiKeyAuth',
|
|
6569
|
+
name: 'X-API-Key',
|
|
6570
|
+
type: 'apiKey'
|
|
6045
6571
|
}],
|
|
6046
|
-
url: '/
|
|
6047
|
-
...options
|
|
6048
|
-
headers: {
|
|
6049
|
-
'Content-Type': 'application/json',
|
|
6050
|
-
...options.headers
|
|
6051
|
-
}
|
|
6572
|
+
url: '/cut/v1/projects/{project_id}/timeline',
|
|
6573
|
+
...options
|
|
6052
6574
|
});
|
|
6053
6575
|
/**
|
|
6054
|
-
*
|
|
6576
|
+
* Render preview frames
|
|
6055
6577
|
*
|
|
6056
|
-
*
|
|
6578
|
+
* Review the visual result at one or more project times without creating an export. Pass comma-separated seconds in at, such as 12,15.5; scale changes preview size and revision selects a committed project revision. Request at most eight times. Each returned url is an inline PNG data URL (data:image/png;base64,...), not a hosted HTTP image link. The default scale is 0.25; use 0.5 for subtitle layout inspection (1080×1920 renders at 540×960). The maximum is 0.5; values above it return INVALID_PARAMS. Actual width and height are returned per frame. PNGs above 2 MiB or responses above 4 MiB return RESPONSE_TOO_LARGE without silently lowering resolution. The response always includes warnings; FRAME_UNAVAILABLE means a source preview could not be obtained and an offline tile was drawn. Its message identifies a timeout, delivery capacity limit, or unavailable source and contains no source URL. Decode each image's base64 payload to save it. Codemode returns at most four images per call, so request at most four times when reviewing there.
|
|
6057
6579
|
*/
|
|
6058
|
-
export const
|
|
6580
|
+
export const cutListFrames = (options) => (options.client ?? client).get({
|
|
6059
6581
|
security: [{
|
|
6060
|
-
key: '
|
|
6582
|
+
key: 'BearerAuth',
|
|
6061
6583
|
scheme: 'bearer',
|
|
6062
6584
|
type: 'http'
|
|
6585
|
+
}, {
|
|
6586
|
+
key: 'ApiKeyAuth',
|
|
6587
|
+
name: 'X-API-Key',
|
|
6588
|
+
type: 'apiKey'
|
|
6063
6589
|
}],
|
|
6064
|
-
url: '/
|
|
6065
|
-
...options
|
|
6066
|
-
headers: {
|
|
6067
|
-
'Content-Type': 'application/json',
|
|
6068
|
-
...options.headers
|
|
6069
|
-
}
|
|
6590
|
+
url: '/cut/v1/projects/{project_id}/frames',
|
|
6591
|
+
...options
|
|
6070
6592
|
});
|
|
6071
6593
|
/**
|
|
6072
|
-
*
|
|
6594
|
+
* Analyze project media
|
|
6073
6595
|
*
|
|
6074
|
-
*
|
|
6596
|
+
* Request silence, filler-word or scene analysis for selected bound assets before editing. Omit media to select project sources; ranges returned in segments use source seconds. A pending result is not completion: use retry_after_sec before checking again, and inspect failed or unsupported asset results before deciding which edits are possible. Silence measures transcript-based speech pauses, not music or loudness. A completed transcript without words returns ready with empty segments and reason no_speech; no completed transcript returns unsupported with reason no_transcript. A failed transcription remains failed.
|
|
6075
6597
|
*/
|
|
6076
|
-
export const
|
|
6598
|
+
export const cutCreateAnalysis = (options) => (options.client ?? client).post({
|
|
6077
6599
|
security: [{
|
|
6078
|
-
key: '
|
|
6600
|
+
key: 'BearerAuth',
|
|
6079
6601
|
scheme: 'bearer',
|
|
6080
6602
|
type: 'http'
|
|
6603
|
+
}, {
|
|
6604
|
+
key: 'ApiKeyAuth',
|
|
6605
|
+
name: 'X-API-Key',
|
|
6606
|
+
type: 'apiKey'
|
|
6081
6607
|
}],
|
|
6082
|
-
url: '/
|
|
6608
|
+
url: '/cut/v1/projects/{project_id}/analysis',
|
|
6083
6609
|
...options,
|
|
6084
6610
|
headers: {
|
|
6085
6611
|
'Content-Type': 'application/json',
|
|
@@ -6087,17 +6613,39 @@ export const mediaSemanticSearch = (options) => (options.client ?? client).post(
|
|
|
6087
6613
|
}
|
|
6088
6614
|
});
|
|
6089
6615
|
/**
|
|
6090
|
-
*
|
|
6616
|
+
* List library bindings
|
|
6091
6617
|
*
|
|
6092
|
-
*
|
|
6618
|
+
* Discover the named media libraries available to this project before selecting source assets or an import/export destination. read bindings supply source assets; read_write bindings also accept uploads. Exactly one writable binding supplies the default upload destination.
|
|
6093
6619
|
*/
|
|
6094
|
-
export const
|
|
6620
|
+
export const cutListBindings = (options) => (options.client ?? client).get({
|
|
6095
6621
|
security: [{
|
|
6096
|
-
key: '
|
|
6622
|
+
key: 'BearerAuth',
|
|
6623
|
+
scheme: 'bearer',
|
|
6624
|
+
type: 'http'
|
|
6625
|
+
}, {
|
|
6626
|
+
key: 'ApiKeyAuth',
|
|
6627
|
+
name: 'X-API-Key',
|
|
6628
|
+
type: 'apiKey'
|
|
6629
|
+
}],
|
|
6630
|
+
url: '/cut/v1/projects/{project_id}/bindings',
|
|
6631
|
+
...options
|
|
6632
|
+
});
|
|
6633
|
+
/**
|
|
6634
|
+
* Bind media library
|
|
6635
|
+
*
|
|
6636
|
+
* Attach an accessible media library to an existing project under a unique name. Obtain library_id from praxis.media and choose read for source-only access or read_write for imports and exports. The project must retain exactly one read_write binding with default_upload true after the change.
|
|
6637
|
+
*/
|
|
6638
|
+
export const cutCreateBinding = (options) => (options.client ?? client).post({
|
|
6639
|
+
security: [{
|
|
6640
|
+
key: 'BearerAuth',
|
|
6097
6641
|
scheme: 'bearer',
|
|
6098
6642
|
type: 'http'
|
|
6643
|
+
}, {
|
|
6644
|
+
key: 'ApiKeyAuth',
|
|
6645
|
+
name: 'X-API-Key',
|
|
6646
|
+
type: 'apiKey'
|
|
6099
6647
|
}],
|
|
6100
|
-
url: '/
|
|
6648
|
+
url: '/cut/v1/projects/{project_id}/bindings',
|
|
6101
6649
|
...options,
|
|
6102
6650
|
headers: {
|
|
6103
6651
|
'Content-Type': 'application/json',
|
|
@@ -6105,31 +6653,39 @@ export const mediaSearch = (options) => (options.client ?? client).post({
|
|
|
6105
6653
|
}
|
|
6106
6654
|
});
|
|
6107
6655
|
/**
|
|
6108
|
-
*
|
|
6656
|
+
* Remove library binding
|
|
6109
6657
|
*
|
|
6110
|
-
*
|
|
6658
|
+
* Detach a library alias obtained from bindings.list after removing all timeline clips that reference its library. BINDING_IN_USE returns 409 while references remain; inspect timeline and edit those clips first. Removal must preserve the one writable default upload binding.
|
|
6111
6659
|
*/
|
|
6112
|
-
export const
|
|
6660
|
+
export const cutDeleteBinding = (options) => (options.client ?? client).delete({
|
|
6113
6661
|
security: [{
|
|
6114
|
-
key: '
|
|
6662
|
+
key: 'BearerAuth',
|
|
6115
6663
|
scheme: 'bearer',
|
|
6116
6664
|
type: 'http'
|
|
6665
|
+
}, {
|
|
6666
|
+
key: 'ApiKeyAuth',
|
|
6667
|
+
name: 'X-API-Key',
|
|
6668
|
+
type: 'apiKey'
|
|
6117
6669
|
}],
|
|
6118
|
-
url: '/
|
|
6670
|
+
url: '/cut/v1/projects/{project_id}/bindings/{name}',
|
|
6119
6671
|
...options
|
|
6120
6672
|
});
|
|
6121
6673
|
/**
|
|
6122
|
-
*
|
|
6674
|
+
* Import project media
|
|
6123
6675
|
*
|
|
6124
|
-
*
|
|
6676
|
+
* Import a URL, data URI or existing file into a writable project media library. Select binding from bindings.list or omit it to use default_upload. Save library_id and asset_id from the result and use them as libraryId and assetId inside execute script media references; overwrites follow the source asset latest version.
|
|
6125
6677
|
*/
|
|
6126
|
-
export const
|
|
6678
|
+
export const cutImportMedia = (options) => (options.client ?? client).post({
|
|
6127
6679
|
security: [{
|
|
6128
|
-
key: '
|
|
6680
|
+
key: 'BearerAuth',
|
|
6129
6681
|
scheme: 'bearer',
|
|
6130
6682
|
type: 'http'
|
|
6683
|
+
}, {
|
|
6684
|
+
key: 'ApiKeyAuth',
|
|
6685
|
+
name: 'X-API-Key',
|
|
6686
|
+
type: 'apiKey'
|
|
6131
6687
|
}],
|
|
6132
|
-
url: '/
|
|
6688
|
+
url: '/cut/v1/projects/{project_id}/media:import',
|
|
6133
6689
|
...options,
|
|
6134
6690
|
headers: {
|
|
6135
6691
|
'Content-Type': 'application/json',
|
|
@@ -6137,31 +6693,1800 @@ export const mediaCreateBatch = (options) => (options.client ?? client).post({
|
|
|
6137
6693
|
}
|
|
6138
6694
|
});
|
|
6139
6695
|
/**
|
|
6140
|
-
*
|
|
6696
|
+
* List project exports
|
|
6141
6697
|
*
|
|
6142
|
-
*
|
|
6698
|
+
* Find export jobs associated with this project before polling or canceling a render. Copy an export id into praxis.cut.exports.retrieve or cancel. Continue with next_page_token as page_token when present; queued or in-progress jobs have not produced a final media asset.
|
|
6143
6699
|
*/
|
|
6144
|
-
export const
|
|
6700
|
+
export const cutListExports = (options) => (options.client ?? client).get({
|
|
6145
6701
|
security: [{
|
|
6146
|
-
key: '
|
|
6702
|
+
key: 'BearerAuth',
|
|
6147
6703
|
scheme: 'bearer',
|
|
6148
6704
|
type: 'http'
|
|
6705
|
+
}, {
|
|
6706
|
+
key: 'ApiKeyAuth',
|
|
6707
|
+
name: 'X-API-Key',
|
|
6708
|
+
type: 'apiKey'
|
|
6149
6709
|
}],
|
|
6150
|
-
url: '/
|
|
6710
|
+
url: '/cut/v1/projects/{project_id}/exports',
|
|
6151
6711
|
...options
|
|
6152
6712
|
});
|
|
6153
6713
|
/**
|
|
6154
|
-
*
|
|
6714
|
+
* Create video export
|
|
6155
6715
|
*
|
|
6156
|
-
*
|
|
6716
|
+
* Start an asynchronous video export from the project into a writable bound media library. Choose binding from bindings.list or omit it for default_upload, and optionally select revision and output settings. HTTP 202 only accepts the job; poll praxis.cut.exports.retrieve using the returned id until status is done, failed or canceled. On done, asset identifies the video written back to praxis.media. Each call starts a job, so retrieve a known job before retrying a submission.
|
|
6157
6717
|
*/
|
|
6158
|
-
export const
|
|
6718
|
+
export const cutCreateExport = (options) => (options.client ?? client).post({
|
|
6159
6719
|
security: [{
|
|
6160
|
-
key: '
|
|
6720
|
+
key: 'BearerAuth',
|
|
6721
|
+
scheme: 'bearer',
|
|
6722
|
+
type: 'http'
|
|
6723
|
+
}, {
|
|
6724
|
+
key: 'ApiKeyAuth',
|
|
6725
|
+
name: 'X-API-Key',
|
|
6726
|
+
type: 'apiKey'
|
|
6727
|
+
}],
|
|
6728
|
+
url: '/cut/v1/projects/{project_id}/exports',
|
|
6729
|
+
...options,
|
|
6730
|
+
headers: {
|
|
6731
|
+
'Content-Type': 'application/json',
|
|
6732
|
+
...options.headers
|
|
6733
|
+
}
|
|
6734
|
+
});
|
|
6735
|
+
/**
|
|
6736
|
+
* Retrieve video export
|
|
6737
|
+
*
|
|
6738
|
+
* Poll an export id returned by projects.exports.create or list to observe render progress. queued, fetching, rendering, stitching and saving are in progress; done provides asset in the target library, failed provides error, and canceled means the job stopped. Only done confirms a usable output asset.
|
|
6739
|
+
*/
|
|
6740
|
+
export const cutRetrieveExport = (options) => (options.client ?? client).get({
|
|
6741
|
+
security: [{
|
|
6742
|
+
key: 'BearerAuth',
|
|
6743
|
+
scheme: 'bearer',
|
|
6744
|
+
type: 'http'
|
|
6745
|
+
}, {
|
|
6746
|
+
key: 'ApiKeyAuth',
|
|
6747
|
+
name: 'X-API-Key',
|
|
6748
|
+
type: 'apiKey'
|
|
6749
|
+
}],
|
|
6750
|
+
url: '/cut/v1/exports/{export_id}',
|
|
6751
|
+
...options
|
|
6752
|
+
});
|
|
6753
|
+
/**
|
|
6754
|
+
* Cancel video export
|
|
6755
|
+
*
|
|
6756
|
+
* Request cancellation of an export obtained from projects.exports.create or list when its output is no longer needed. Read the returned job status and retrieve it to confirm the terminal outcome; do not interpret a cancellation request as successful rendering.
|
|
6757
|
+
*/
|
|
6758
|
+
export const cutCancelExport = (options) => (options.client ?? client).post({
|
|
6759
|
+
security: [{
|
|
6760
|
+
key: 'BearerAuth',
|
|
6761
|
+
scheme: 'bearer',
|
|
6762
|
+
type: 'http'
|
|
6763
|
+
}, {
|
|
6764
|
+
key: 'ApiKeyAuth',
|
|
6765
|
+
name: 'X-API-Key',
|
|
6766
|
+
type: 'apiKey'
|
|
6767
|
+
}],
|
|
6768
|
+
url: '/cut/v1/exports/{export_id}:cancel',
|
|
6769
|
+
...options
|
|
6770
|
+
});
|
|
6771
|
+
/**
|
|
6772
|
+
* List saved versions
|
|
6773
|
+
*
|
|
6774
|
+
* Find saved timeline snapshots for this project and obtain version_id values for restore. A saved version records its original revision; restoring it creates a new current revision rather than rewinding the revision counter. Continue with next_page_token as page_token until absent.
|
|
6775
|
+
*/
|
|
6776
|
+
export const cutListVersions = (options) => (options.client ?? client).get({
|
|
6777
|
+
security: [{
|
|
6778
|
+
key: 'BearerAuth',
|
|
6779
|
+
scheme: 'bearer',
|
|
6780
|
+
type: 'http'
|
|
6781
|
+
}, {
|
|
6782
|
+
key: 'ApiKeyAuth',
|
|
6783
|
+
name: 'X-API-Key',
|
|
6784
|
+
type: 'apiKey'
|
|
6785
|
+
}],
|
|
6786
|
+
url: '/cut/v1/projects/{project_id}/versions',
|
|
6787
|
+
...options
|
|
6788
|
+
});
|
|
6789
|
+
/**
|
|
6790
|
+
* Save project version
|
|
6791
|
+
*
|
|
6792
|
+
* Save the current project timeline as a named recovery point before a substantial edit. Supply an optional label or send an empty object; keep the returned version id for versions.restore. Saving a version does not publish a rendered asset; use projects.exports.create for video output.
|
|
6793
|
+
*/
|
|
6794
|
+
export const cutCreateVersion = (options) => (options.client ?? client).post({
|
|
6795
|
+
security: [{
|
|
6796
|
+
key: 'BearerAuth',
|
|
6797
|
+
scheme: 'bearer',
|
|
6798
|
+
type: 'http'
|
|
6799
|
+
}, {
|
|
6800
|
+
key: 'ApiKeyAuth',
|
|
6801
|
+
name: 'X-API-Key',
|
|
6802
|
+
type: 'apiKey'
|
|
6803
|
+
}],
|
|
6804
|
+
url: '/cut/v1/projects/{project_id}/versions',
|
|
6805
|
+
...options,
|
|
6806
|
+
headers: {
|
|
6807
|
+
'Content-Type': 'application/json',
|
|
6808
|
+
...options.headers
|
|
6809
|
+
}
|
|
6810
|
+
});
|
|
6811
|
+
/**
|
|
6812
|
+
* Restore saved version
|
|
6813
|
+
*
|
|
6814
|
+
* Replace current editing content with a saved project snapshot selected from projects.versions.list. The restore commits a new transaction and revision while preserving the saved version for future use. Inspect the returned summary and timeline before further editing; a response revision conflict can follow a committed restore, so retrieve current state before retrying.
|
|
6815
|
+
*/
|
|
6816
|
+
export const cutRestoreVersion = (options) => (options.client ?? client).post({
|
|
6817
|
+
security: [{
|
|
6818
|
+
key: 'BearerAuth',
|
|
6819
|
+
scheme: 'bearer',
|
|
6820
|
+
type: 'http'
|
|
6821
|
+
}, {
|
|
6822
|
+
key: 'ApiKeyAuth',
|
|
6823
|
+
name: 'X-API-Key',
|
|
6824
|
+
type: 'apiKey'
|
|
6825
|
+
}],
|
|
6826
|
+
url: '/cut/v1/versions/{version_id}:restore',
|
|
6827
|
+
...options
|
|
6828
|
+
});
|
|
6829
|
+
/**
|
|
6830
|
+
* List databases
|
|
6831
|
+
*
|
|
6832
|
+
* Find databases owned by your tenant and obtain their ids for schema or row operations. Excludes deleting by default. status=active or status=deleting selects that state; invalid values return 400 INVALID_PARAMS.
|
|
6833
|
+
*/
|
|
6834
|
+
export const databaseListDatabases = (options) => (options?.client ?? client).get({
|
|
6835
|
+
security: [{
|
|
6836
|
+
key: 'database-bearerAuth',
|
|
6837
|
+
scheme: 'bearer',
|
|
6838
|
+
type: 'http'
|
|
6839
|
+
}],
|
|
6840
|
+
url: '/database/v1/databases',
|
|
6841
|
+
...options
|
|
6842
|
+
});
|
|
6843
|
+
/**
|
|
6844
|
+
* Create database
|
|
6845
|
+
*
|
|
6846
|
+
* Creates an empty database for the caller and returns it with status active (HTTP 201); add tables next with praxis.database.databases.tables.create. name is required and is 1–64 visible characters after trimming. labels are optional string tags (at most 64; each key starts with a lowercase letter and uses up to 63 characters of a-z 0-9 _ -; each value is up to 63 characters of a-z 0-9 _ -) that databaseListDatabases can filter on. If initialization fails the call returns 503 CAPACITY and the half-created database is left with status failed; retry by calling create again, which makes a new database. Unlike Supabase, this creates a SQLite-backed database without a PostgreSQL connection or SQL execution endpoint. Use a Praxis credential; access is scoped to its tenant, not to Supabase Auth users or RLS policies.
|
|
6847
|
+
*/
|
|
6848
|
+
export const databaseCreateDatabase = (options) => (options.client ?? client).post({
|
|
6849
|
+
security: [{
|
|
6850
|
+
key: 'database-bearerAuth',
|
|
6851
|
+
scheme: 'bearer',
|
|
6852
|
+
type: 'http'
|
|
6853
|
+
}],
|
|
6854
|
+
url: '/database/v1/databases',
|
|
6855
|
+
...options,
|
|
6856
|
+
headers: {
|
|
6857
|
+
'Content-Type': 'application/json',
|
|
6858
|
+
...options.headers
|
|
6859
|
+
}
|
|
6860
|
+
});
|
|
6861
|
+
/**
|
|
6862
|
+
* Delete database
|
|
6863
|
+
*
|
|
6864
|
+
* Soft-delete a database when it should stop accepting schema and row operations. Idempotently enters deleting with a seven-day purge_at. GET remains available; child operations return 409 until restored.
|
|
6865
|
+
*/
|
|
6866
|
+
export const databaseDeleteDatabase = (options) => (options.client ?? client).delete({
|
|
6867
|
+
security: [{
|
|
6868
|
+
key: 'database-bearerAuth',
|
|
6869
|
+
scheme: 'bearer',
|
|
6870
|
+
type: 'http'
|
|
6871
|
+
}],
|
|
6872
|
+
url: '/database/v1/databases/{database_id}',
|
|
6873
|
+
...options
|
|
6874
|
+
});
|
|
6875
|
+
/**
|
|
6876
|
+
* Get database
|
|
6877
|
+
*
|
|
6878
|
+
* Returns one database by id, including a database in the deleting state (purge_at then shows when it will be permanently removed). Call it before table or row operations to confirm status is active: schema and row calls on a deleting database return 409 DATABASE_INVALID_STATE. size_bytes is refreshed from live storage at most once every five seconds. A purged or unknown id returns 404 DATABASE_NOT_FOUND.
|
|
6879
|
+
*/
|
|
6880
|
+
export const databaseGetDatabase = (options) => (options.client ?? client).get({
|
|
6881
|
+
security: [{
|
|
6882
|
+
key: 'database-bearerAuth',
|
|
6883
|
+
scheme: 'bearer',
|
|
6884
|
+
type: 'http'
|
|
6885
|
+
}],
|
|
6886
|
+
url: '/database/v1/databases/{database_id}',
|
|
6887
|
+
...options
|
|
6888
|
+
});
|
|
6889
|
+
/**
|
|
6890
|
+
* Update database
|
|
6891
|
+
*
|
|
6892
|
+
* Renames an active database and/or replaces its labels; send only the keys you want to change. labels is replaced as a whole, not merged, so include every label you want to keep. A body without name or labels, or with values equal to the current ones, changes nothing and leaves updated_at as is. A database in the deleting state returns 409 DATABASE_INVALID_STATE; restore it first with databaseRestoreDatabase.
|
|
6893
|
+
*/
|
|
6894
|
+
export const databaseUpdateDatabase = (options) => (options.client ?? client).patch({
|
|
6895
|
+
security: [{
|
|
6896
|
+
key: 'database-bearerAuth',
|
|
6897
|
+
scheme: 'bearer',
|
|
6898
|
+
type: 'http'
|
|
6899
|
+
}],
|
|
6900
|
+
url: '/database/v1/databases/{database_id}',
|
|
6901
|
+
...options,
|
|
6902
|
+
headers: {
|
|
6903
|
+
'Content-Type': 'application/json',
|
|
6904
|
+
...options.headers
|
|
6905
|
+
}
|
|
6906
|
+
});
|
|
6907
|
+
/**
|
|
6908
|
+
* Restore database
|
|
6909
|
+
*
|
|
6910
|
+
* Recover a soft-deleted database within its seven-day recovery window. Restore before purge_at. An empty body is accepted. Active databases return 409; purged databases return 404.
|
|
6911
|
+
*/
|
|
6912
|
+
export const databaseRestoreDatabase = (options) => (options.client ?? client).post({
|
|
6913
|
+
security: [{
|
|
6914
|
+
key: 'database-bearerAuth',
|
|
6915
|
+
scheme: 'bearer',
|
|
6916
|
+
type: 'http'
|
|
6917
|
+
}],
|
|
6918
|
+
url: '/database/v1/databases/{database_id}/restore',
|
|
6919
|
+
...options
|
|
6920
|
+
});
|
|
6921
|
+
/**
|
|
6922
|
+
* Permanently purge database
|
|
6923
|
+
*
|
|
6924
|
+
* Immediately and irreversibly purges a deleting database. Active databases return 409; absent or already purged databases return 404.
|
|
6925
|
+
*/
|
|
6926
|
+
export const databasePurgeDatabase = (options) => (options.client ?? client).post({
|
|
6927
|
+
security: [{
|
|
6928
|
+
key: 'database-bearerAuth',
|
|
6929
|
+
scheme: 'bearer',
|
|
6930
|
+
type: 'http'
|
|
6931
|
+
}],
|
|
6932
|
+
url: '/database/v1/databases/{database_id}/purge',
|
|
6933
|
+
...options
|
|
6934
|
+
});
|
|
6935
|
+
/**
|
|
6936
|
+
* List tables
|
|
6937
|
+
*
|
|
6938
|
+
* Lists every table of an active database with its field definitions. A database holds at most 50 tables, so the single page contains all of them and next_cursor is always null. Use databaseGetTable instead when you also need row_count for one table.
|
|
6939
|
+
*/
|
|
6940
|
+
export const databaseListTables = (options) => (options.client ?? client).get({
|
|
6941
|
+
security: [{
|
|
6942
|
+
key: 'database-bearerAuth',
|
|
6943
|
+
scheme: 'bearer',
|
|
6944
|
+
type: 'http'
|
|
6945
|
+
}],
|
|
6946
|
+
url: '/database/v1/databases/{database_id}/tables',
|
|
6947
|
+
...options
|
|
6948
|
+
});
|
|
6949
|
+
/**
|
|
6950
|
+
* Create table
|
|
6951
|
+
*
|
|
6952
|
+
* Creates a table together with its initial fields in one call and returns it (HTTP 201) with generated tbl_ and fld_ ids. name must match ^[a-z_][a-z0-9_]{0,62}$ and be unused in this database (duplicate: 409 UNIQUE_VIOLATION). fields is required and may be an empty array; fields can also be added later with databaseAddField. Limits: 50 tables per database, 64 fields per table, and 16 indexed or unique fields per table; exceeding one returns 400 LIMIT_EXCEEDED. Fields default to indexed:false. Set indexed:true explicitly for fields used in filters or ordering. Only indexed:true or unique:true consumes one of the 16 indexed-or-unique field slots; a field with both consumes one slot. Unique fields still consume a slot even with indexed:false. Existing fields are unchanged. Minimal field example: {"name":"notes","type":"string","indexed":false}. Every row also has a system id column, which is not declared as a field. Insert data afterwards with databaseInsert. Unlike Supabase, define schema with this table API and the field APIs; PostgreSQL DDL and SQL migration files cannot be submitted. Each table supports up to 1,000,000 rows.
|
|
6953
|
+
*/
|
|
6954
|
+
export const databaseCreateTable = (options) => (options.client ?? client).post({
|
|
6955
|
+
security: [{
|
|
6956
|
+
key: 'database-bearerAuth',
|
|
6957
|
+
scheme: 'bearer',
|
|
6958
|
+
type: 'http'
|
|
6959
|
+
}],
|
|
6960
|
+
url: '/database/v1/databases/{database_id}/tables',
|
|
6961
|
+
...options,
|
|
6962
|
+
headers: {
|
|
6963
|
+
'Content-Type': 'application/json',
|
|
6964
|
+
...options.headers
|
|
6965
|
+
}
|
|
6966
|
+
});
|
|
6967
|
+
/**
|
|
6968
|
+
* Delete table
|
|
6969
|
+
*
|
|
6970
|
+
* Permanently drops a table with all of its rows; the deletion is immediate and has no recovery window or undo. Refused with 409 REFERENCE_RESTRICT while a link field of another table points at this table, so delete or change those fields first. Returns {deleted: true}. A table name can be reused afterwards.
|
|
6971
|
+
*/
|
|
6972
|
+
export const databaseDeleteTable = (options) => (options.client ?? client).delete({
|
|
6973
|
+
security: [{
|
|
6974
|
+
key: 'database-bearerAuth',
|
|
6975
|
+
scheme: 'bearer',
|
|
6976
|
+
type: 'http'
|
|
6977
|
+
}],
|
|
6978
|
+
url: '/database/v1/databases/{database_id}/tables/{table}',
|
|
6979
|
+
...options
|
|
6980
|
+
});
|
|
6981
|
+
/**
|
|
6982
|
+
* Get table
|
|
6983
|
+
*
|
|
6984
|
+
* Returns one table by id or name with its field definitions, schema_revision and row_count. row_count is only returned by this operation, not by list or create. Use field ids from this response for stable references because field names can be renamed; an unknown table returns 404 TABLE_NOT_FOUND.
|
|
6985
|
+
*/
|
|
6986
|
+
export const databaseGetTable = (options) => (options.client ?? client).get({
|
|
6987
|
+
security: [{
|
|
6988
|
+
key: 'database-bearerAuth',
|
|
6989
|
+
scheme: 'bearer',
|
|
6990
|
+
type: 'http'
|
|
6991
|
+
}],
|
|
6992
|
+
url: '/database/v1/databases/{database_id}/tables/{table}',
|
|
6993
|
+
...options
|
|
6994
|
+
});
|
|
6995
|
+
/**
|
|
6996
|
+
* Update table
|
|
6997
|
+
*
|
|
6998
|
+
* Renames a table and/or changes its description; send only the keys to change, and send description null to clear it. The new name must follow ^[a-z_][a-z0-9_]{0,62}$ and be unused (409 UNIQUE_VIOLATION); ids are stable, so renaming never rewrites row data. A body with no changes or values equal to the current ones does not bump schema_revision. Fields cannot be changed here; use databaseAddField, databaseUpdateField and databaseDeleteField.
|
|
6999
|
+
*/
|
|
7000
|
+
export const databaseUpdateTable = (options) => (options.client ?? client).patch({
|
|
7001
|
+
security: [{
|
|
7002
|
+
key: 'database-bearerAuth',
|
|
7003
|
+
scheme: 'bearer',
|
|
7004
|
+
type: 'http'
|
|
7005
|
+
}],
|
|
7006
|
+
url: '/database/v1/databases/{database_id}/tables/{table}',
|
|
7007
|
+
...options,
|
|
7008
|
+
headers: {
|
|
7009
|
+
'Content-Type': 'application/json',
|
|
7010
|
+
...options.headers
|
|
7011
|
+
}
|
|
7012
|
+
});
|
|
7013
|
+
/**
|
|
7014
|
+
* Add field
|
|
7015
|
+
*
|
|
7016
|
+
* Adds one field to an existing table and returns the updated table (HTTP 201). Required inputs are name (lowercase letters, digits and underscores; id and names starting with _ are reserved) and type (string, integer, number, boolean, datetime, json or link); json needs options.schema and link needs options.linked_table_id and options.multiple. Adding a required field to a table that already has rows needs a default, otherwise the call fails with 400 VALIDATION_FAILED; a default is written into every existing row. Fields default to indexed:false. Set indexed:true explicitly for fields used in filters or ordering. Only indexed:true or unique:true consumes one of the 16 indexed-or-unique field slots; a field with both consumes one slot. Unique fields still consume a slot even with indexed:false. Existing fields are unchanged. Minimal field example: {"name":"notes","type":"string","indexed":false}. JSON and link fields cannot be indexed. Limits: 64 fields and 16 indexed or unique fields per table (400 LIMIT_EXCEEDED). Unlike Supabase, schema evolution uses field definitions rather than ALTER TABLE statements or SQL migrations.
|
|
7017
|
+
*/
|
|
7018
|
+
export const databaseAddField = (options) => (options.client ?? client).post({
|
|
7019
|
+
security: [{
|
|
7020
|
+
key: 'database-bearerAuth',
|
|
7021
|
+
scheme: 'bearer',
|
|
7022
|
+
type: 'http'
|
|
7023
|
+
}],
|
|
7024
|
+
url: '/database/v1/databases/{database_id}/tables/{table}/fields',
|
|
7025
|
+
...options,
|
|
7026
|
+
headers: {
|
|
7027
|
+
'Content-Type': 'application/json',
|
|
7028
|
+
...options.headers
|
|
7029
|
+
}
|
|
7030
|
+
});
|
|
7031
|
+
/**
|
|
7032
|
+
* Delete field
|
|
7033
|
+
*
|
|
7034
|
+
* Deletes one field definition from a table and returns the updated table; the deletion is immediate and has no recovery window. Look the field up by id or name. The field's index, if any, is dropped with it, and the name can be reused afterwards. Unknown fields return 400 FIELD_NOT_FOUND.
|
|
7035
|
+
*/
|
|
7036
|
+
export const databaseDeleteField = (options) => (options.client ?? client).delete({
|
|
7037
|
+
security: [{
|
|
7038
|
+
key: 'database-bearerAuth',
|
|
7039
|
+
scheme: 'bearer',
|
|
7040
|
+
type: 'http'
|
|
7041
|
+
}],
|
|
7042
|
+
url: '/database/v1/databases/{database_id}/tables/{table}/fields/{field}',
|
|
7043
|
+
...options
|
|
7044
|
+
});
|
|
7045
|
+
/**
|
|
7046
|
+
* Update field
|
|
7047
|
+
*
|
|
7048
|
+
* Changes a field's name, description, required flag, indexed flag, default or json options.schema and returns the updated table. The field type, a link field's linked_table_id and the unique flag cannot be changed (400 FIELD_TYPE_IMMUTABLE or INVALID_PARAMS). Setting required to true fails with 400 VALIDATION_FAILED while existing rows hold null for the field. A new json schema constrains only later writes; existing rows are not revalidated. Renaming never rewrites row data, and a request that changes nothing does not bump schema_revision. Unlike Supabase, field types and uniqueness cannot be altered through SQL migrations; use the supported field settings described here.
|
|
7049
|
+
*/
|
|
7050
|
+
export const databaseUpdateField = (options) => (options.client ?? client).patch({
|
|
7051
|
+
security: [{
|
|
7052
|
+
key: 'database-bearerAuth',
|
|
7053
|
+
scheme: 'bearer',
|
|
7054
|
+
type: 'http'
|
|
7055
|
+
}],
|
|
7056
|
+
url: '/database/v1/databases/{database_id}/tables/{table}/fields/{field}',
|
|
7057
|
+
...options,
|
|
7058
|
+
headers: {
|
|
7059
|
+
'Content-Type': 'application/json',
|
|
7060
|
+
...options.headers
|
|
7061
|
+
}
|
|
7062
|
+
});
|
|
7063
|
+
/**
|
|
7064
|
+
* List events
|
|
7065
|
+
*
|
|
7066
|
+
* Read lifecycle and schema events, including while the database is deleting. next_cursor is an opaque string cursor (do not do arithmetic on it): pass it as after_seq for asc or before_seq for desc. Supplying both cursors returns 400 INVALID_PARAMS. Unlike Supabase Realtime, this is paged lifecycle and schema history, not a subscription or a row-change feed; row inserts, updates and deletes do not appear here.
|
|
7067
|
+
*/
|
|
7068
|
+
export const databaseListEvents = (options) => (options.client ?? client).get({
|
|
7069
|
+
security: [{
|
|
7070
|
+
key: 'database-bearerAuth',
|
|
7071
|
+
scheme: 'bearer',
|
|
7072
|
+
type: 'http'
|
|
7073
|
+
}],
|
|
7074
|
+
url: '/database/v1/databases/{database_id}/events',
|
|
7075
|
+
...options
|
|
7076
|
+
});
|
|
7077
|
+
/**
|
|
7078
|
+
* Delete rows
|
|
7079
|
+
*
|
|
7080
|
+
* Deletes the rows matched by the filter query parameters (the same filters as databaseSelect); with no filter every row of the table matches. Deletion is immediate and cannot be undone. A row that a link field of another table still references makes the whole call fail with 409 REFERENCE_RESTRICT and nothing is deleted. The default response is 204 with no body; send Prefer: return=representation to get HTTP 200 with the deleted rows.
|
|
7081
|
+
*/
|
|
7082
|
+
export const databaseDelete = (options) => (options.client ?? client).delete({
|
|
7083
|
+
security: [{
|
|
7084
|
+
key: 'database-bearerAuth',
|
|
7085
|
+
scheme: 'bearer',
|
|
7086
|
+
type: 'http'
|
|
7087
|
+
}],
|
|
7088
|
+
url: '/database/v1/databases/{database_id}/rest/{table}',
|
|
7089
|
+
...options
|
|
7090
|
+
});
|
|
7091
|
+
/**
|
|
7092
|
+
* Select rows
|
|
7093
|
+
*
|
|
7094
|
+
* Read matching rows with filters, selected columns and ordering. Returns at most 1000 rows per request, including when limit is omitted. Content-Range reports the actual returned interval and the total when count is requested. PATCH and DELETE are not subject to this read cap. Unlike Supabase, casts, aggregates, spread and join modifiers are unsupported. Each table supports up to 1,000,000 rows. Query budget: 8,000 ms with a shared 3,000,000-row safety ceiling. Create indexes on filtered or sorted fields, or narrow the request when it exceeds its budget. Synchronous SQLite aggregates use candidate-row throughput estimates before execution; deployed Workers freeze clocks during synchronous CPU work, so the timer is not a guaranteed server-side interrupt. Count preferences: without filters, exact, planned and estimated all use SQLite's exact b-tree count. With filters, exact counts within budget; planned skips counting and reports an unknown total (Content-Range: 0-24*); estimated attempts exact counting only when the preflight budget allows it, otherwise reports an unknown total. Preference-Applied echoes the requested count mode. Error table: QUERY_CANCELED / PostgREST 57014 is HTTP 500, retryable=false: Query timed out: index filtered or sorted fields, or narrow the range. DATABASE_INVALID_STATE is HTTP 409 for operations on a deleting database. Cleared or nonexistent databases return DATABASE_NOT_FOUND / HTTP 404. The count is an HTTP Content-Range response header, not a JSON property. Use praxis.database.count in the SDK or codemode to return { count: number | null }; a page length is not a total unless you know all matches fit in that page.
|
|
7095
|
+
*/
|
|
7096
|
+
export const databaseSelect = (options) => (options.client ?? client).get({
|
|
7097
|
+
security: [{
|
|
7098
|
+
key: 'database-bearerAuth',
|
|
7099
|
+
scheme: 'bearer',
|
|
7100
|
+
type: 'http'
|
|
7101
|
+
}],
|
|
7102
|
+
url: '/database/v1/databases/{database_id}/rest/{table}',
|
|
7103
|
+
...options
|
|
7104
|
+
});
|
|
7105
|
+
/**
|
|
7106
|
+
* Count rows
|
|
7107
|
+
*
|
|
7108
|
+
* Inspect the HTTP row count and range without retrieving row data; send Prefer: count=exact for a filtered count. Returns no body and does not fetch or serialize row data. A known count determines the interval using limit/offset or Range with a default and maximum page size of 1000. Without a count preference, or when the selected count mode cannot supply a total, Content-Range is **. Singular Accept still validates page cardinality. Unlike Supabase, planned and estimated counts do not use PostgreSQL planner estimates. Count preferences: without filters, exact, planned and estimated all use SQLite's exact b-tree count. With filters, exact counts within budget; planned skips counting and reports an unknown total (Content-Range: 0-24*); estimated attempts exact counting only when the preflight budget allows it, otherwise reports an unknown total. Preference-Applied echoes the requested count mode. Use praxis.database.count in the SDK or codemode to return { count: number | null } from this header without retrieving rows.
|
|
7109
|
+
*/
|
|
7110
|
+
export const databaseHead = (options) => (options.client ?? client).head({
|
|
7111
|
+
security: [{
|
|
7112
|
+
key: 'database-bearerAuth',
|
|
7113
|
+
scheme: 'bearer',
|
|
7114
|
+
type: 'http'
|
|
7115
|
+
}],
|
|
7116
|
+
url: '/database/v1/databases/{database_id}/rest/{table}',
|
|
7117
|
+
...options
|
|
7118
|
+
});
|
|
7119
|
+
/**
|
|
7120
|
+
* Update rows
|
|
7121
|
+
*
|
|
7122
|
+
* Updates the rows matched by the filter query parameters (the same filters as databaseSelect); with no filter every row of the table matches. The JSON object body lists only the fields to change, other fields keep their values, and id cannot be changed. Values are validated against the field types and the required and unique settings (400 VALIDATION_FAILED, 409 UNIQUE_VIOLATION). The default response is 204 with no body; send Prefer: return=representation to get HTTP 200 with the updated rows. Each changed row's _version increases by one.
|
|
7123
|
+
*/
|
|
7124
|
+
export const databaseUpdate = (options) => (options.client ?? client).patch({
|
|
7125
|
+
security: [{
|
|
7126
|
+
key: 'database-bearerAuth',
|
|
7127
|
+
scheme: 'bearer',
|
|
7128
|
+
type: 'http'
|
|
7129
|
+
}],
|
|
7130
|
+
url: '/database/v1/databases/{database_id}/rest/{table}',
|
|
7131
|
+
...options,
|
|
7132
|
+
headers: {
|
|
7133
|
+
'Content-Type': 'application/json',
|
|
7134
|
+
...options.headers
|
|
7135
|
+
}
|
|
7136
|
+
});
|
|
7137
|
+
/**
|
|
7138
|
+
* Insert rows
|
|
7139
|
+
*
|
|
7140
|
+
* Insert rows into an existing table after defining its fields; at most 500 rows per request. Each request is atomic: any failure rolls back the entire batch. There are no transactions across requests.
|
|
7141
|
+
* Rows are filled to the union of their keys with null; send Prefer: missing=default to use field defaults for missing keys.
|
|
7142
|
+
* The default is return=minimal: success returns HTTP 201 with an empty body. Send Prefer: return=representation to return the inserted rows. With resolution=merge-duplicates, a conflicting row keeps columns omitted from the request; supplied values replace the whole field value (including JSON objects), and explicit null clears a nullable field. With resolution=ignore-duplicates, a conflicting row is left unchanged. Without a conflict, both modes insert a new row using field defaults for omitted fields. In a batch, a key present in another row is filled with null when omitted in this row unless missing=default is set; that null can overwrite a value during merge. With missing=default, omitted keys stay omitted for conflict merges (existing values are preserved); new rows use defaults, or null when no default exists. Explicit null never invokes a default. Unlike Supabase, upsert conflicts can target only id or one unique field, not a composite key. Each table supports up to 1,000,000 rows.
|
|
7143
|
+
*/
|
|
7144
|
+
export const databaseInsert = (options) => (options.client ?? client).post({
|
|
7145
|
+
security: [{
|
|
7146
|
+
key: 'database-bearerAuth',
|
|
7147
|
+
scheme: 'bearer',
|
|
7148
|
+
type: 'http'
|
|
7149
|
+
}],
|
|
7150
|
+
url: '/database/v1/databases/{database_id}/rest/{table}',
|
|
7151
|
+
...options,
|
|
7152
|
+
headers: {
|
|
7153
|
+
'Content-Type': 'application/json',
|
|
7154
|
+
...options.headers
|
|
7155
|
+
}
|
|
7156
|
+
});
|
|
7157
|
+
/**
|
|
7158
|
+
* List knowledge bases
|
|
7159
|
+
*
|
|
7160
|
+
* Lists knowledge bases visible to the caller, newest first by default. Use last_id as after to read the next page; for example, ?limit=20.
|
|
7161
|
+
*/
|
|
7162
|
+
export const knowledgeListVectorStores = (options) => (options?.client ?? client).get({
|
|
7163
|
+
security: [{
|
|
7164
|
+
key: 'knowledge-bearerAuth',
|
|
7165
|
+
scheme: 'bearer',
|
|
7166
|
+
type: 'http'
|
|
7167
|
+
}],
|
|
7168
|
+
url: '/knowledge/v1/vector_stores',
|
|
7169
|
+
...options
|
|
7170
|
+
});
|
|
7171
|
+
/**
|
|
7172
|
+
* Create knowledge base
|
|
7173
|
+
*
|
|
7174
|
+
* Create a knowledge base, optionally starting ingestion of uploaded file_ids in the same call; no separate attachment or batch is needed for those files. Use the returned id with vectorStores.files.retrieve to poll each attachment until completed, failed or cancelled; store status=completed alone does not mean every file succeeded. PDF files accept up to 536870912 bytes (512 MiB), while other formats accept up to 52428800 bytes (50 MiB), constrained by Router conversion; every file is limited to 5000000 estimated tokens; each account holds up to 100 active/nondeleted stores. Minimal body: {"name":"Refund policies"}.
|
|
7175
|
+
*/
|
|
7176
|
+
export const knowledgeCreateVectorStore = (options) => (options.client ?? client).post({
|
|
7177
|
+
security: [{
|
|
7178
|
+
key: 'knowledge-bearerAuth',
|
|
7179
|
+
scheme: 'bearer',
|
|
7180
|
+
type: 'http'
|
|
7181
|
+
}],
|
|
7182
|
+
url: '/knowledge/v1/vector_stores',
|
|
7183
|
+
...options,
|
|
7184
|
+
headers: {
|
|
7185
|
+
'Content-Type': 'application/json',
|
|
7186
|
+
...options.headers
|
|
7187
|
+
}
|
|
7188
|
+
});
|
|
7189
|
+
/**
|
|
7190
|
+
* Delete knowledge base
|
|
7191
|
+
*
|
|
7192
|
+
* Remove a knowledge base from active use while keeping a recovery window. Unlike OpenAI vector stores, native DELETE returns the store with status=deleting and ISO purge_at, retains it for 7 days and is idempotent on repeat. Retrieve remains 200; object operations return 409. Use restore before purge_at to recover it, or purge to remove it irreversibly.
|
|
7193
|
+
*/
|
|
7194
|
+
export const knowledgeDeleteVectorStore = (options) => (options.client ?? client).delete({
|
|
7195
|
+
security: [{
|
|
7196
|
+
key: 'knowledge-bearerAuth',
|
|
7197
|
+
scheme: 'bearer',
|
|
7198
|
+
type: 'http'
|
|
7199
|
+
}],
|
|
7200
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
7201
|
+
...options
|
|
7202
|
+
});
|
|
7203
|
+
/**
|
|
7204
|
+
* Retrieve knowledge base
|
|
7205
|
+
*
|
|
7206
|
+
* Retrieves a knowledge base using an id returned by create or list. Add ?expand=files to include the first page of attached files. Soft-deleted stores remain readable with status=deleting until purged.
|
|
7207
|
+
*/
|
|
7208
|
+
export const knowledgeRetrieveVectorStore = (options) => (options.client ?? client).get({
|
|
7209
|
+
security: [{
|
|
7210
|
+
key: 'knowledge-bearerAuth',
|
|
7211
|
+
scheme: 'bearer',
|
|
7212
|
+
type: 'http'
|
|
7213
|
+
}],
|
|
7214
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
7215
|
+
...options
|
|
7216
|
+
});
|
|
7217
|
+
/**
|
|
7218
|
+
* Update knowledge base
|
|
7219
|
+
*
|
|
7220
|
+
* Updates an active knowledge base using its returned id. Omitted fields stay unchanged; metadata replaces the whole map. Example body: {"name":"Refund policies"}.
|
|
7221
|
+
*/
|
|
7222
|
+
export const knowledgeUpdateVectorStore = (options) => (options.client ?? client).post({
|
|
7223
|
+
security: [{
|
|
7224
|
+
key: 'knowledge-bearerAuth',
|
|
7225
|
+
scheme: 'bearer',
|
|
7226
|
+
type: 'http'
|
|
7227
|
+
}],
|
|
7228
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
7229
|
+
...options,
|
|
7230
|
+
headers: {
|
|
7231
|
+
'Content-Type': 'application/json',
|
|
7232
|
+
...options.headers
|
|
7233
|
+
}
|
|
7234
|
+
});
|
|
7235
|
+
/**
|
|
7236
|
+
* Search knowledge base
|
|
7237
|
+
*
|
|
7238
|
+
* Search ingested text to answer a question or find supporting passages. Native results contain one chunk each, so file_id can repeat; max_num_results counts chunks (1–50, default 10), while the compatible URL groups results by file. Unlike OpenAI vector stores, next_page is always null even when has_more is true. Only completed attachments are searchable. For keyword-only retrieval set ranking_options.hybrid_search to {"embedding_weight":0,"text_weight":1}; omit rewrite_query or set it to false to avoid query rewriting. Unlike OpenAI, ranker auto does not rerank; only default-2024-11-15 requests reranking. Set praxis.explain=true to inspect scores and use returned content[].chunk_id to retrieve a segment.
|
|
7239
|
+
*/
|
|
7240
|
+
export const knowledgeSearchVectorStore = (options) => (options.client ?? client).post({
|
|
7241
|
+
security: [{
|
|
7242
|
+
key: 'knowledge-bearerAuth',
|
|
7243
|
+
scheme: 'bearer',
|
|
7244
|
+
type: 'http'
|
|
7245
|
+
}],
|
|
7246
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/search',
|
|
7247
|
+
...options,
|
|
7248
|
+
headers: {
|
|
7249
|
+
'Content-Type': 'application/json',
|
|
7250
|
+
...options.headers
|
|
7251
|
+
}
|
|
7252
|
+
});
|
|
7253
|
+
/**
|
|
7254
|
+
* List files
|
|
7255
|
+
*
|
|
7256
|
+
* Lists attached files and their ingestion status, newest attachment first by default. Use last_id as after to continue; ?filter=failed selects files that can be retried.
|
|
7257
|
+
*/
|
|
7258
|
+
export const knowledgeListFiles = (options) => (options.client ?? client).get({
|
|
7259
|
+
security: [{
|
|
7260
|
+
key: 'knowledge-bearerAuth',
|
|
7261
|
+
scheme: 'bearer',
|
|
7262
|
+
type: 'http'
|
|
7263
|
+
}],
|
|
7264
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files',
|
|
7265
|
+
...options
|
|
7266
|
+
});
|
|
7267
|
+
/**
|
|
7268
|
+
* Add file
|
|
7269
|
+
*
|
|
7270
|
+
* Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching. PDF files accept up to 536870912 bytes (512 MiB), while other formats accept up to 52428800 bytes (50 MiB), constrained by Router conversion; every file is limited to 5000000 estimated tokens; chunk sizes use estimated tokens rather than a model tokenizer. Text, Markdown, CSV, JSON, HTML, PDF, DOCX, PPTX, XLSX and PNG/JPEG/GIF/WebP images can be extracted; audio and video uploads are not knowledge documents. Images may yield generated descriptions rather than verbatim OCR. auto chunking resolves to static 800/400; explicit sizes are 100–4096 with overlap at most half the size. Each store holds at most 10000 attached files. Reattaching the same file returns its existing record without applying new attributes or chunking; inspect last_error after failure.
|
|
7271
|
+
*/
|
|
7272
|
+
export const knowledgeAttachFile = (options) => (options.client ?? client).post({
|
|
7273
|
+
security: [{
|
|
7274
|
+
key: 'knowledge-bearerAuth',
|
|
7275
|
+
scheme: 'bearer',
|
|
7276
|
+
type: 'http'
|
|
7277
|
+
}],
|
|
7278
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files',
|
|
7279
|
+
...options,
|
|
7280
|
+
headers: {
|
|
7281
|
+
'Content-Type': 'application/json',
|
|
7282
|
+
...options.headers
|
|
7283
|
+
}
|
|
7284
|
+
});
|
|
7285
|
+
/**
|
|
7286
|
+
* Remove file
|
|
7287
|
+
*
|
|
7288
|
+
* Removes the file from search immediately; does not delete the original File.
|
|
7289
|
+
*/
|
|
7290
|
+
export const knowledgeRemoveFile = (options) => (options.client ?? client).delete({
|
|
7291
|
+
security: [{
|
|
7292
|
+
key: 'knowledge-bearerAuth',
|
|
7293
|
+
scheme: 'bearer',
|
|
7294
|
+
type: 'http'
|
|
7295
|
+
}],
|
|
7296
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}',
|
|
7297
|
+
...options
|
|
7298
|
+
});
|
|
7299
|
+
/**
|
|
7300
|
+
* Retrieve file
|
|
7301
|
+
*
|
|
7302
|
+
* Retrieves an attached file using the id returned by attachment or file listing. Poll this operation until status leaves in_progress to observe the ingestion outcome.
|
|
7303
|
+
*/
|
|
7304
|
+
export const knowledgeRetrieveFile = (options) => (options.client ?? client).get({
|
|
7305
|
+
security: [{
|
|
7306
|
+
key: 'knowledge-bearerAuth',
|
|
7307
|
+
scheme: 'bearer',
|
|
7308
|
+
type: 'http'
|
|
7309
|
+
}],
|
|
7310
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}',
|
|
7311
|
+
...options
|
|
7312
|
+
});
|
|
7313
|
+
/**
|
|
7314
|
+
* Update file attributes
|
|
7315
|
+
*
|
|
7316
|
+
* Replaces search-filter attributes of an existing attachment without reingesting its content. Use an attached file id. Example body: {"attributes":{"category":"refund"}}; null clears the attributes.
|
|
7317
|
+
*/
|
|
7318
|
+
export const knowledgeUpdateFile = (options) => (options.client ?? client).post({
|
|
7319
|
+
security: [{
|
|
7320
|
+
key: 'knowledge-bearerAuth',
|
|
7321
|
+
scheme: 'bearer',
|
|
7322
|
+
type: 'http'
|
|
7323
|
+
}],
|
|
7324
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}',
|
|
7325
|
+
...options,
|
|
7326
|
+
headers: {
|
|
7327
|
+
'Content-Type': 'application/json',
|
|
7328
|
+
...options.headers
|
|
7329
|
+
}
|
|
7330
|
+
});
|
|
7331
|
+
/**
|
|
7332
|
+
* Read extracted content
|
|
7333
|
+
*
|
|
7334
|
+
* Extracted text chunks may overlap. Image content can be a generated description rather than verbatim OCR.
|
|
7335
|
+
*/
|
|
7336
|
+
export const knowledgeRetrieveFileContent = (options) => (options.client ?? client).get({
|
|
7337
|
+
security: [{
|
|
7338
|
+
key: 'knowledge-bearerAuth',
|
|
7339
|
+
scheme: 'bearer',
|
|
7340
|
+
type: 'http'
|
|
7341
|
+
}],
|
|
7342
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/content',
|
|
7343
|
+
...options
|
|
7344
|
+
});
|
|
7345
|
+
/**
|
|
7346
|
+
* Create file batch
|
|
7347
|
+
*
|
|
7348
|
+
* Attaches existing Files as a batch for asynchronous ingestion. Supply exactly one of file_ids or files; files allows per-file settings. Existing attachments are reused. Read the returned batch id to monitor status.
|
|
7349
|
+
*/
|
|
7350
|
+
export const knowledgeCreateFileBatch = (options) => (options.client ?? client).post({
|
|
7351
|
+
security: [{
|
|
7352
|
+
key: 'knowledge-bearerAuth',
|
|
7353
|
+
scheme: 'bearer',
|
|
7354
|
+
type: 'http'
|
|
7355
|
+
}],
|
|
7356
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches',
|
|
7357
|
+
...options,
|
|
7358
|
+
headers: {
|
|
7359
|
+
'Content-Type': 'application/json',
|
|
7360
|
+
...options.headers
|
|
7361
|
+
}
|
|
7362
|
+
});
|
|
7363
|
+
/**
|
|
7364
|
+
* Retrieve file batch
|
|
7365
|
+
*
|
|
7366
|
+
* Retrieves a batch created in this knowledge base, including current status and file counts. Use the batch id returned by batch creation to monitor ingestion.
|
|
7367
|
+
*/
|
|
7368
|
+
export const knowledgeRetrieveFileBatch = (options) => (options.client ?? client).get({
|
|
7369
|
+
security: [{
|
|
7370
|
+
key: 'knowledge-bearerAuth',
|
|
7371
|
+
scheme: 'bearer',
|
|
7372
|
+
type: 'http'
|
|
7373
|
+
}],
|
|
7374
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}',
|
|
7375
|
+
...options
|
|
7376
|
+
});
|
|
7377
|
+
/**
|
|
7378
|
+
* Cancel file batch
|
|
7379
|
+
*
|
|
7380
|
+
* Cancels only in-progress batches and pending files. Completed, failed and cancelled batches return unchanged (200, idempotent).
|
|
7381
|
+
*/
|
|
7382
|
+
export const knowledgeCancelFileBatch = (options) => (options.client ?? client).post({
|
|
7383
|
+
security: [{
|
|
7384
|
+
key: 'knowledge-bearerAuth',
|
|
7385
|
+
scheme: 'bearer',
|
|
7386
|
+
type: 'http'
|
|
7387
|
+
}],
|
|
7388
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel',
|
|
7389
|
+
...options
|
|
7390
|
+
});
|
|
7391
|
+
/**
|
|
7392
|
+
* List batch files
|
|
7393
|
+
*
|
|
7394
|
+
* Lists files still attached from the identified batch, newest attachment first by default. Use the batch creation id and ?filter=failed to inspect failures; last_id is the next after cursor.
|
|
7395
|
+
*/
|
|
7396
|
+
export const knowledgeListBatchFiles = (options) => (options.client ?? client).get({
|
|
7397
|
+
security: [{
|
|
7398
|
+
key: 'knowledge-bearerAuth',
|
|
7399
|
+
scheme: 'bearer',
|
|
7400
|
+
type: 'http'
|
|
7401
|
+
}],
|
|
7402
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/files',
|
|
7403
|
+
...options
|
|
7404
|
+
});
|
|
7405
|
+
/**
|
|
7406
|
+
* Restore knowledge base
|
|
7407
|
+
*
|
|
7408
|
+
* Restores a deleting store within 7 days. Active stores return 409 VECTOR_STORE_INVALID_STATE; absent stores return 404. Empty body is allowed.
|
|
7409
|
+
*/
|
|
7410
|
+
export const knowledgeRestoreVectorStore = (options) => (options.client ?? client).post({
|
|
7411
|
+
security: [{
|
|
7412
|
+
key: 'knowledge-bearerAuth',
|
|
7413
|
+
scheme: 'bearer',
|
|
7414
|
+
type: 'http'
|
|
7415
|
+
}],
|
|
7416
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/restore',
|
|
7417
|
+
...options
|
|
7418
|
+
});
|
|
7419
|
+
/**
|
|
7420
|
+
* Permanently purge knowledge base
|
|
7421
|
+
*
|
|
7422
|
+
* Immediately and irreversibly clears a deleting store using the retention cleanup path. Active stores return 409; absent stores return 404. Empty body is allowed.
|
|
7423
|
+
*/
|
|
7424
|
+
export const knowledgePurgeVectorStore = (options) => (options.client ?? client).post({
|
|
7425
|
+
security: [{
|
|
7426
|
+
key: 'knowledge-bearerAuth',
|
|
7427
|
+
scheme: 'bearer',
|
|
7428
|
+
type: 'http'
|
|
7429
|
+
}],
|
|
7430
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/purge',
|
|
7431
|
+
...options
|
|
7432
|
+
});
|
|
7433
|
+
/**
|
|
7434
|
+
* Retry failed file
|
|
7435
|
+
*
|
|
7436
|
+
* Retries only failed files; other states return 409 FILE_INVALID_STATE. Retry after failure has not yet been observed in the documented run.
|
|
7437
|
+
*/
|
|
7438
|
+
export const knowledgeRetryFile = (options) => (options.client ?? client).post({
|
|
7439
|
+
security: [{
|
|
7440
|
+
key: 'knowledge-bearerAuth',
|
|
7441
|
+
scheme: 'bearer',
|
|
7442
|
+
type: 'http'
|
|
7443
|
+
}],
|
|
7444
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/retry',
|
|
7445
|
+
...options
|
|
7446
|
+
});
|
|
7447
|
+
/**
|
|
7448
|
+
* List file segments
|
|
7449
|
+
*
|
|
7450
|
+
* Lists the stored chunks of an attached file, ordered by increasing segment index by default. Use the attachment id and last_id as after to continue; returned chunk ids can be retrieved individually.
|
|
7451
|
+
*/
|
|
7452
|
+
export const knowledgeListSegments = (options) => (options.client ?? client).get({
|
|
7453
|
+
security: [{
|
|
7454
|
+
key: 'knowledge-bearerAuth',
|
|
7455
|
+
scheme: 'bearer',
|
|
7456
|
+
type: 'http'
|
|
7457
|
+
}],
|
|
7458
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/segments',
|
|
7459
|
+
...options
|
|
7460
|
+
});
|
|
7461
|
+
/**
|
|
7462
|
+
* Retrieve segment
|
|
7463
|
+
*
|
|
7464
|
+
* Retrieves one chunk and its term statistics. Take chunk_id from segment listing or native search content; the chunk must belong to this knowledge base.
|
|
7465
|
+
*/
|
|
7466
|
+
export const knowledgeRetrieveSegment = (options) => (options.client ?? client).get({
|
|
7467
|
+
security: [{
|
|
7468
|
+
key: 'knowledge-bearerAuth',
|
|
7469
|
+
scheme: 'bearer',
|
|
7470
|
+
type: 'http'
|
|
7471
|
+
}],
|
|
7472
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/segments/{chunk_id}',
|
|
7473
|
+
...options
|
|
7474
|
+
});
|
|
7475
|
+
/**
|
|
7476
|
+
* List events
|
|
7477
|
+
*
|
|
7478
|
+
* Reads events for this knowledge base in increasing sequence order, including while soft-deleted. Pass next_seq as after_seq to continue; null next_seq marks the current end. Example: ?after_seq=0&limit=20.
|
|
7479
|
+
*/
|
|
7480
|
+
export const knowledgeListEvents = (options) => (options.client ?? client).get({
|
|
7481
|
+
security: [{
|
|
7482
|
+
key: 'knowledge-bearerAuth',
|
|
7483
|
+
scheme: 'bearer',
|
|
7484
|
+
type: 'http'
|
|
7485
|
+
}],
|
|
7486
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/events',
|
|
7487
|
+
...options
|
|
7488
|
+
});
|
|
7489
|
+
/**
|
|
7490
|
+
* List libraries
|
|
7491
|
+
*
|
|
7492
|
+
* Read a caller-owned library’s current settings, usage and lifecycle status. A deleting library remains readable; missing, foreign or purged libraries return LIBRARY_NOT_FOUND.
|
|
7493
|
+
*/
|
|
7494
|
+
export const mediaListLibraries = (options) => (options?.client ?? client).get({
|
|
7495
|
+
security: [{
|
|
7496
|
+
key: 'media-BearerAuth',
|
|
7497
|
+
scheme: 'bearer',
|
|
7498
|
+
type: 'http'
|
|
7499
|
+
}],
|
|
7500
|
+
url: '/media/v1/libraries',
|
|
7501
|
+
...options
|
|
7502
|
+
});
|
|
7503
|
+
/**
|
|
7504
|
+
* Create library
|
|
7505
|
+
*
|
|
7506
|
+
* Create a library owned by the caller with a name, optional labels and understanding settings. Understanding is enabled by default; the returned id is used for subsequent asset operations.
|
|
7507
|
+
*/
|
|
7508
|
+
export const mediaCreateLibrary = (options) => (options.client ?? client).post({
|
|
7509
|
+
security: [{
|
|
7510
|
+
key: 'media-BearerAuth',
|
|
7511
|
+
scheme: 'bearer',
|
|
7512
|
+
type: 'http'
|
|
7513
|
+
}],
|
|
7514
|
+
url: '/media/v1/libraries',
|
|
7515
|
+
...options,
|
|
7516
|
+
headers: {
|
|
7517
|
+
'Content-Type': 'application/json',
|
|
7518
|
+
...options.headers
|
|
7519
|
+
}
|
|
7520
|
+
});
|
|
7521
|
+
/**
|
|
7522
|
+
* Create frame URLs
|
|
7523
|
+
*
|
|
7524
|
+
* Media creates JPEG frame URLs for inspecting one or more moments in a video without downloading the original. Obtain library_id from libraries and asset_id plus duration from assets. Send 1–20 integer microsecond timestamps strictly below duration, for example {"at_micros":[0,1000000],"width":640}. Only video assets are supported; audio and images return INVALID_PARAMS. Width defaults to 640 and accepts 160, 320 or 640. This read operation does not store a new asset or rerun understanding. Fetch each returned URL to obtain the frame; delivery usage follows media pricing. Authenticated links expire after 300 seconds; upload links remain public and permanent. Reissue expired links. Foreign libraries and assets return 404 without revealing their existence.
|
|
7525
|
+
*/
|
|
7526
|
+
export const mediaCreateFrameUrls = (options) => (options.client ?? client).post({
|
|
7527
|
+
security: [{
|
|
7528
|
+
key: 'media-BearerAuth',
|
|
7529
|
+
scheme: 'bearer',
|
|
7530
|
+
type: 'http'
|
|
7531
|
+
}],
|
|
7532
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/frames',
|
|
7533
|
+
...options,
|
|
7534
|
+
headers: {
|
|
7535
|
+
'Content-Type': 'application/json',
|
|
7536
|
+
...options.headers
|
|
7537
|
+
}
|
|
7538
|
+
});
|
|
7539
|
+
/**
|
|
7540
|
+
* Delete library
|
|
7541
|
+
*
|
|
7542
|
+
* Restore a deleting library before its purge_at deadline. The library becomes active again and deleted_at and purge_at are cleared; expired or non-deleting libraries cannot be restored.
|
|
7543
|
+
*/
|
|
7544
|
+
export const mediaDeleteLibrary = (options) => (options.client ?? client).delete({
|
|
7545
|
+
security: [{
|
|
7546
|
+
key: 'media-BearerAuth',
|
|
7547
|
+
scheme: 'bearer',
|
|
7548
|
+
type: 'http'
|
|
7549
|
+
}],
|
|
7550
|
+
url: '/media/v1/libraries/{library_id}',
|
|
7551
|
+
...options
|
|
7552
|
+
});
|
|
7553
|
+
/**
|
|
7554
|
+
* Get library
|
|
7555
|
+
*
|
|
7556
|
+
* Update an active library’s supplied settings. Labels replace the complete map; understanding settings and model roles merge with current values. Changing the embedding model is rejected while assets exist.
|
|
7557
|
+
*/
|
|
7558
|
+
export const mediaGetLibrary = (options) => (options.client ?? client).get({
|
|
7559
|
+
security: [{
|
|
7560
|
+
key: 'media-BearerAuth',
|
|
7561
|
+
scheme: 'bearer',
|
|
7562
|
+
type: 'http'
|
|
7563
|
+
}],
|
|
7564
|
+
url: '/media/v1/libraries/{library_id}',
|
|
7565
|
+
...options
|
|
7566
|
+
});
|
|
7567
|
+
/**
|
|
7568
|
+
* Update library
|
|
7569
|
+
*
|
|
7570
|
+
* Update an active library. Set hotwords for spelling evidence in subsequent transcripts; [] disables inferred vocabulary. Transcript understanding calls the timestamped ASR, optional reference ASR and correction model through the existing metered model path. Reprocess assets to apply new settings to existing transcripts.
|
|
7571
|
+
*/
|
|
7572
|
+
export const mediaUpdateLibrary = (options) => (options.client ?? client).patch({
|
|
7573
|
+
security: [{
|
|
7574
|
+
key: 'media-BearerAuth',
|
|
7575
|
+
scheme: 'bearer',
|
|
7576
|
+
type: 'http'
|
|
7577
|
+
}],
|
|
7578
|
+
url: '/media/v1/libraries/{library_id}',
|
|
7579
|
+
...options,
|
|
7580
|
+
headers: {
|
|
7581
|
+
'Content-Type': 'application/json',
|
|
7582
|
+
...options.headers
|
|
7583
|
+
}
|
|
7584
|
+
});
|
|
7585
|
+
/**
|
|
7586
|
+
* Restore library
|
|
7587
|
+
*
|
|
7588
|
+
* Permanently remove a library that is already deleting, without waiting for purge_at. Its assets and related resources are removed and cannot be restored; first soft-delete an active library.
|
|
7589
|
+
*/
|
|
7590
|
+
export const mediaRestoreLibrary = (options) => (options.client ?? client).post({
|
|
7591
|
+
security: [{
|
|
7592
|
+
key: 'media-BearerAuth',
|
|
7593
|
+
scheme: 'bearer',
|
|
7594
|
+
type: 'http'
|
|
7595
|
+
}],
|
|
7596
|
+
url: '/media/v1/libraries/{library_id}/restore',
|
|
7597
|
+
...options
|
|
7598
|
+
});
|
|
7599
|
+
/**
|
|
7600
|
+
* Purge library
|
|
7601
|
+
*
|
|
7602
|
+
* List assets in an active library, newest first, optionally filtering by exact folder and stored resource type. Continue using next_cursor; video includes audio-only assets.
|
|
7603
|
+
*/
|
|
7604
|
+
export const mediaPurgeLibrary = (options) => (options.client ?? client).post({
|
|
7605
|
+
security: [{
|
|
7606
|
+
key: 'media-BearerAuth',
|
|
7607
|
+
scheme: 'bearer',
|
|
7608
|
+
type: 'http'
|
|
7609
|
+
}],
|
|
7610
|
+
url: '/media/v1/libraries/{library_id}/purge',
|
|
7611
|
+
...options
|
|
7612
|
+
});
|
|
7613
|
+
/**
|
|
7614
|
+
* List assets
|
|
7615
|
+
*
|
|
7616
|
+
* Upload content into an active library and return a Cloudinary-compatible resource. Use file for a multipart file, data URI, public HTTPS URL or same-owner file identifier. Reusing public_id overwrites by default; overwrite=false returns the existing resource. Chunk uploads require both chunk headers.
|
|
7617
|
+
*/
|
|
7618
|
+
export const mediaListAssets = (options) => (options.client ?? client).get({
|
|
7619
|
+
security: [{
|
|
7620
|
+
key: 'media-BearerAuth',
|
|
7621
|
+
scheme: 'bearer',
|
|
7622
|
+
type: 'http'
|
|
7623
|
+
}],
|
|
7624
|
+
url: '/media/v1/libraries/{library_id}/assets',
|
|
7625
|
+
...options
|
|
7626
|
+
});
|
|
7627
|
+
/**
|
|
7628
|
+
* Upload asset
|
|
7629
|
+
*
|
|
7630
|
+
* For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
|
|
7631
|
+
*/
|
|
7632
|
+
export const mediaUploadAsset = (options) => (options.client ?? client).post({
|
|
7633
|
+
security: [{
|
|
7634
|
+
key: 'media-BearerAuth',
|
|
7635
|
+
scheme: 'bearer',
|
|
7636
|
+
type: 'http'
|
|
7637
|
+
}],
|
|
7638
|
+
url: '/media/v1/libraries/{library_id}/assets',
|
|
7639
|
+
...options,
|
|
7640
|
+
headers: {
|
|
7641
|
+
'Content-Type': 'application/json',
|
|
7642
|
+
...options.headers
|
|
7643
|
+
}
|
|
7644
|
+
});
|
|
7645
|
+
/**
|
|
7646
|
+
* Import file
|
|
7647
|
+
*
|
|
7648
|
+
* Copy a File into an independent Media asset. New assets default to organization-private delivery (type=authenticated); explicitly set type=upload for public originals and derivatives. Omitting type on overwrite preserves the current type. Deleting the source File does not delete this copy. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
|
|
7649
|
+
*/
|
|
7650
|
+
export const mediaImportAsset = (options) => (options.client ?? client).post({
|
|
7651
|
+
security: [{
|
|
7652
|
+
key: 'media-BearerAuth',
|
|
7653
|
+
scheme: 'bearer',
|
|
7654
|
+
type: 'http'
|
|
7655
|
+
}],
|
|
7656
|
+
url: '/media/v1/libraries/{library_id}/assets/import',
|
|
7657
|
+
...options,
|
|
7658
|
+
headers: {
|
|
7659
|
+
'Content-Type': 'application/json',
|
|
7660
|
+
...options.headers
|
|
7661
|
+
}
|
|
7662
|
+
});
|
|
7663
|
+
/**
|
|
7664
|
+
* Delete asset
|
|
7665
|
+
*
|
|
7666
|
+
* Queue reprocessing of the asset’s current version and return its updated state immediately. Omit kinds to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable completed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Replaced understandings become superseded, and processing finishes asynchronously.
|
|
7667
|
+
*/
|
|
7668
|
+
export const mediaDeleteAsset = (options) => (options.client ?? client).delete({
|
|
7669
|
+
security: [{
|
|
7670
|
+
key: 'media-BearerAuth',
|
|
7671
|
+
scheme: 'bearer',
|
|
7672
|
+
type: 'http'
|
|
7673
|
+
}],
|
|
7674
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}',
|
|
7675
|
+
...options
|
|
7676
|
+
});
|
|
7677
|
+
/**
|
|
7678
|
+
* Get asset
|
|
7679
|
+
*
|
|
7680
|
+
* Update an asset’s supplied metadata fields. Tags and context replace their current collections; an empty collection clears them. Moving asset_folder or changing display_name preserves public_id and delivery URLs.
|
|
7681
|
+
*/
|
|
7682
|
+
export const mediaGetAsset = (options) => (options.client ?? client).get({
|
|
7683
|
+
security: [{
|
|
7684
|
+
key: 'media-BearerAuth',
|
|
7685
|
+
scheme: 'bearer',
|
|
7686
|
+
type: 'http'
|
|
7687
|
+
}],
|
|
7688
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}',
|
|
7689
|
+
...options
|
|
7690
|
+
});
|
|
7691
|
+
/**
|
|
7692
|
+
* Update asset
|
|
7693
|
+
*
|
|
7694
|
+
* Delete an asset from the library so it is no longer readable, searchable or deliverable. This removes the asset rather than placing it in the library’s restoration window; a missing asset returns ASSET_NOT_FOUND.
|
|
7695
|
+
*/
|
|
7696
|
+
export const mediaUpdateAsset = (options) => (options.client ?? client).patch({
|
|
7697
|
+
security: [{
|
|
7698
|
+
key: 'media-BearerAuth',
|
|
7699
|
+
scheme: 'bearer',
|
|
7700
|
+
type: 'http'
|
|
7701
|
+
}],
|
|
7702
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}',
|
|
7703
|
+
...options,
|
|
7704
|
+
headers: {
|
|
7705
|
+
'Content-Type': 'application/json',
|
|
7706
|
+
...options.headers
|
|
7707
|
+
}
|
|
7708
|
+
});
|
|
7709
|
+
/**
|
|
7710
|
+
* Reprocess asset
|
|
7711
|
+
*
|
|
7712
|
+
* For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
|
|
7713
|
+
*/
|
|
7714
|
+
export const mediaReprocessAsset = (options) => (options.client ?? client).post({
|
|
7715
|
+
security: [{
|
|
7716
|
+
key: 'media-BearerAuth',
|
|
7717
|
+
scheme: 'bearer',
|
|
7718
|
+
type: 'http'
|
|
7719
|
+
}],
|
|
7720
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/reprocess',
|
|
7721
|
+
...options,
|
|
7722
|
+
headers: {
|
|
7723
|
+
'Content-Type': 'application/json',
|
|
7724
|
+
...options.headers
|
|
7725
|
+
}
|
|
7726
|
+
});
|
|
7727
|
+
/**
|
|
7728
|
+
* List understandings
|
|
7729
|
+
*
|
|
7730
|
+
* List understanding results for an asset, ordered by creation time. Use the cursor to continue; include_superseded also returns replaced records. The optional shots array contains current-version shot boundaries and per-shot captions, scene, location guesses, visible text and confidence flags; it is absent on legacy records. Location guesses and folder mismatch are unverified hints. Correction-enabled transcripts expose text_original, corrected text and a correction audit. Their timed data array remains suitable for subtitles. Reference failure is marked missing; correction failure returns the original verbatim. Model inference uses the existing metered model path.
|
|
7731
|
+
*/
|
|
7732
|
+
export const mediaListUnderstandings = (options) => (options.client ?? client).get({
|
|
7733
|
+
security: [{
|
|
7734
|
+
key: 'media-BearerAuth',
|
|
7735
|
+
scheme: 'bearer',
|
|
7736
|
+
type: 'http'
|
|
7737
|
+
}],
|
|
7738
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/understandings',
|
|
7739
|
+
...options
|
|
7740
|
+
});
|
|
7741
|
+
/**
|
|
7742
|
+
* Expression search
|
|
7743
|
+
*
|
|
7744
|
+
* Find visually similar assets using exactly one of asset_id or an inline base64 image. The library must support image search; an asset query needs a current image embedding and excludes that source asset from results.
|
|
7745
|
+
*/
|
|
7746
|
+
export const mediaExpressionSearch = (options) => (options.client ?? client).post({
|
|
7747
|
+
security: [{
|
|
7748
|
+
key: 'media-BearerAuth',
|
|
7749
|
+
scheme: 'bearer',
|
|
7750
|
+
type: 'http'
|
|
7751
|
+
}],
|
|
7752
|
+
url: '/media/v1/libraries/{library_id}/search/expression',
|
|
7753
|
+
...options,
|
|
7754
|
+
headers: {
|
|
7755
|
+
'Content-Type': 'application/json',
|
|
7756
|
+
...options.headers
|
|
7757
|
+
}
|
|
7758
|
+
});
|
|
7759
|
+
/**
|
|
7760
|
+
* Visual search
|
|
7761
|
+
*
|
|
7762
|
+
* Search assets with a nonblank text query and optional expression filter. Hybrid mode combines semantic and keyword matches; semantic mode uses vector similarity only. Results are ranked and limited by top_k.
|
|
7763
|
+
*/
|
|
7764
|
+
export const mediaVisualSearch = (options) => (options.client ?? client).post({
|
|
7765
|
+
security: [{
|
|
7766
|
+
key: 'media-BearerAuth',
|
|
7767
|
+
scheme: 'bearer',
|
|
7768
|
+
type: 'http'
|
|
7769
|
+
}],
|
|
7770
|
+
url: '/media/v1/libraries/{library_id}/search/visual',
|
|
7771
|
+
...options,
|
|
7772
|
+
headers: {
|
|
7773
|
+
'Content-Type': 'application/json',
|
|
7774
|
+
...options.headers
|
|
7775
|
+
}
|
|
7776
|
+
});
|
|
7777
|
+
/**
|
|
7778
|
+
* Semantic search
|
|
7779
|
+
*
|
|
7780
|
+
* Alias of semantic search. Search assets with a nonblank text query, optional expression filter and top_k; hybrid combines semantic and keyword matches, while semantic uses vector similarity only.
|
|
7781
|
+
*/
|
|
7782
|
+
export const mediaSemanticSearch = (options) => (options.client ?? client).post({
|
|
7783
|
+
security: [{
|
|
7784
|
+
key: 'media-BearerAuth',
|
|
7785
|
+
scheme: 'bearer',
|
|
7786
|
+
type: 'http'
|
|
7787
|
+
}],
|
|
7788
|
+
url: '/media/v1/libraries/{library_id}/search/semantic',
|
|
7789
|
+
...options,
|
|
7790
|
+
headers: {
|
|
7791
|
+
'Content-Type': 'application/json',
|
|
7792
|
+
...options.headers
|
|
7793
|
+
}
|
|
7794
|
+
});
|
|
7795
|
+
/**
|
|
7796
|
+
* Semantic search alias
|
|
7797
|
+
*
|
|
7798
|
+
* List all immediate child folders under parent, or under the root when parent is omitted. Counts include descendant assets. The result is unpaginated; limit and cursor are rejected.
|
|
7799
|
+
*/
|
|
7800
|
+
export const mediaSearch = (options) => (options.client ?? client).post({
|
|
7801
|
+
security: [{
|
|
7802
|
+
key: 'media-BearerAuth',
|
|
7803
|
+
scheme: 'bearer',
|
|
7804
|
+
type: 'http'
|
|
7805
|
+
}],
|
|
7806
|
+
url: '/media/v1/libraries/{library_id}/search',
|
|
7807
|
+
...options,
|
|
7808
|
+
headers: {
|
|
7809
|
+
'Content-Type': 'application/json',
|
|
7810
|
+
...options.headers
|
|
7811
|
+
}
|
|
7812
|
+
});
|
|
7813
|
+
/**
|
|
7814
|
+
* List folders
|
|
7815
|
+
*
|
|
7816
|
+
* undefined understood_count includes ready and partial assets; failed_count includes failed assets. Both accumulate descendants. counts_complete is false during historical backfill.
|
|
7817
|
+
*/
|
|
7818
|
+
export const mediaListFolders = (options) => (options.client ?? client).get({
|
|
7819
|
+
security: [{
|
|
7820
|
+
key: 'media-BearerAuth',
|
|
7821
|
+
scheme: 'bearer',
|
|
7822
|
+
type: 'http'
|
|
7823
|
+
}],
|
|
7824
|
+
url: '/media/v1/libraries/{library_id}/folders',
|
|
7825
|
+
...options
|
|
7826
|
+
});
|
|
7827
|
+
/**
|
|
7828
|
+
* Create batch
|
|
7829
|
+
*
|
|
7830
|
+
* Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {"action":"reprocess","selector":{"expression":"processing_state=failed AND failure_code=UPSTREAM_FAILED"}}. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
|
|
7831
|
+
*/
|
|
7832
|
+
export const mediaCreateBatch = (options) => (options.client ?? client).post({
|
|
7833
|
+
security: [{
|
|
7834
|
+
key: 'media-BearerAuth',
|
|
7835
|
+
scheme: 'bearer',
|
|
7836
|
+
type: 'http'
|
|
7837
|
+
}],
|
|
7838
|
+
url: '/media/v1/libraries/{library_id}/batches',
|
|
7839
|
+
...options,
|
|
7840
|
+
headers: {
|
|
7841
|
+
'Content-Type': 'application/json',
|
|
7842
|
+
...options.headers
|
|
7843
|
+
}
|
|
7844
|
+
});
|
|
7845
|
+
/**
|
|
7846
|
+
* Get batch
|
|
7847
|
+
*
|
|
7848
|
+
* Alias of batch creation. Apply one metadata or deletion action to ids or a frozen expression selection asynchronously; poll the returned job id to inspect completion and item failures.
|
|
7849
|
+
*/
|
|
7850
|
+
export const mediaGetBatch = (options) => (options.client ?? client).get({
|
|
7851
|
+
security: [{
|
|
7852
|
+
key: 'media-BearerAuth',
|
|
7853
|
+
scheme: 'bearer',
|
|
7854
|
+
type: 'http'
|
|
7855
|
+
}],
|
|
7856
|
+
url: '/media/v1/libraries/{library_id}/batches/{job_id}',
|
|
7857
|
+
...options
|
|
7858
|
+
});
|
|
7859
|
+
/**
|
|
7860
|
+
* Batch assets alias
|
|
7861
|
+
*
|
|
7862
|
+
* Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {"action":"reprocess","selector":{"expression":"processing_state=failed AND failure_code=UPSTREAM_FAILED"}}. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
|
|
7863
|
+
*/
|
|
7864
|
+
export const mediaBatchAssets = (options) => (options.client ?? client).post({
|
|
7865
|
+
security: [{
|
|
7866
|
+
key: 'media-BearerAuth',
|
|
7867
|
+
scheme: 'bearer',
|
|
7868
|
+
type: 'http'
|
|
7869
|
+
}],
|
|
7870
|
+
url: '/media/v1/libraries/{library_id}/assets:batch',
|
|
7871
|
+
...options,
|
|
7872
|
+
headers: {
|
|
7873
|
+
'Content-Type': 'application/json',
|
|
7874
|
+
...options.headers
|
|
7875
|
+
}
|
|
7876
|
+
});
|
|
7877
|
+
/**
|
|
7878
|
+
* Get job
|
|
7879
|
+
*
|
|
7880
|
+
* Read the current batch or video-generation Job status and progress. For generation, inspect outputs and failures, then save successful candidates before their preview and save window expires after 7 days.
|
|
7881
|
+
*/
|
|
7882
|
+
export const mediaGetJob = (options) => (options.client ?? client).get({
|
|
7883
|
+
security: [{
|
|
7884
|
+
key: 'media-BearerAuth',
|
|
7885
|
+
scheme: 'bearer',
|
|
7886
|
+
type: 'http'
|
|
7887
|
+
}],
|
|
7888
|
+
url: '/media/v1/libraries/{library_id}/jobs/{job_id}',
|
|
7889
|
+
...options
|
|
7890
|
+
});
|
|
7891
|
+
/**
|
|
7892
|
+
* List events
|
|
7893
|
+
*
|
|
7894
|
+
* Read library events in sequence order for observing asset writes and understanding progress. Obtain library_id from creation or listing; continue with after_seq for asc or before_seq for desc, without combining both. Use next_cursor when supplied. Reads do not start or retry understanding.
|
|
7895
|
+
*/
|
|
7896
|
+
export const mediaListEvents = (options) => (options.client ?? client).get({
|
|
7897
|
+
security: [{
|
|
7898
|
+
key: 'media-BearerAuth',
|
|
7899
|
+
scheme: 'bearer',
|
|
7900
|
+
type: 'http'
|
|
7901
|
+
}],
|
|
7902
|
+
url: '/media/v1/libraries/{library_id}/events',
|
|
7903
|
+
...options
|
|
7904
|
+
});
|
|
7905
|
+
/**
|
|
7906
|
+
* Create delivery token
|
|
7907
|
+
*
|
|
7908
|
+
* Issue a time-limited bearer token for originals and transformed authenticated assets in an active library. Use library_id from library creation or listing; read access is sufficient. Append token as the __cld_token__ query parameter on a matching delivery URL. The default ACL covers this library and the default lifetime is 900 seconds; narrow acl and expires_in before sharing. Anyone holding the token can read matching paths until expires_at.
|
|
7909
|
+
*/
|
|
7910
|
+
export const mediaCreateDeliveryToken = (options) => (options.client ?? client).post({
|
|
7911
|
+
security: [{
|
|
7912
|
+
key: 'media-BearerAuth',
|
|
7913
|
+
scheme: 'bearer',
|
|
7914
|
+
type: 'http'
|
|
7915
|
+
}],
|
|
7916
|
+
url: '/media/v1/libraries/{library_id}/delivery_tokens',
|
|
7917
|
+
...options,
|
|
7918
|
+
headers: {
|
|
7919
|
+
'Content-Type': 'application/json',
|
|
7920
|
+
...options.headers
|
|
7921
|
+
}
|
|
7922
|
+
});
|
|
7923
|
+
/**
|
|
7924
|
+
* Summarize understanding failures
|
|
7925
|
+
*
|
|
7926
|
+
* Inspect current understanding failures before retrying. Use library_id from library creation or listing. Groups include code, output kind, actual producer model, retryability and up to five sample asset IDs. At most 1024 detailed groups plus two overflow groups are returned; overflow groups separate retryable and unrecoverable entries and mark overflow=true. Unknown failure codes remain retryable. Historical counts are provisional while counts_complete is false. Example: GET /media/v1/libraries/lib_example/understandings/failure_summary.
|
|
7927
|
+
*/
|
|
7928
|
+
export const mediaUnderstandingFailureSummary = (options) => (options.client ?? client).get({
|
|
7929
|
+
security: [{
|
|
7930
|
+
key: 'media-BearerAuth',
|
|
7931
|
+
scheme: 'bearer',
|
|
7932
|
+
type: 'http'
|
|
7933
|
+
}],
|
|
7934
|
+
url: '/media/v1/libraries/{library_id}/understandings/failure_summary',
|
|
7935
|
+
...options
|
|
7936
|
+
});
|
|
7937
|
+
/**
|
|
7938
|
+
* List understanding results across a library
|
|
7939
|
+
*
|
|
7940
|
+
* Read current understanding entries across one library without fetching every asset separately. Use library_id from creation or listing. folder includes descendants; kinds is a comma-separated list of output kinds. Entries are ordered by asset_id and then understanding id. Continue with next_cursor and the same folder and kinds; limit defaults to 100 and cannot exceed 100. Superseded, deleted and old-version entries are excluded. During historical backfill, this method returns 503 CAPACITY rather than incomplete pages; poll failureSummary until counts_complete is true, then start pagination. Example: GET /media/v1/libraries/lib_example/understandings?folder=travel&kinds=caption,transcript&limit=100.
|
|
7941
|
+
*/
|
|
7942
|
+
export const mediaListUnderstandingsByLibrary = (options) => (options.client ?? client).get({
|
|
7943
|
+
security: [{
|
|
7944
|
+
key: 'media-BearerAuth',
|
|
7945
|
+
scheme: 'bearer',
|
|
7946
|
+
type: 'http'
|
|
7947
|
+
}],
|
|
7948
|
+
url: '/media/v1/libraries/{library_id}/understandings',
|
|
7949
|
+
...options
|
|
7950
|
+
});
|
|
7951
|
+
/**
|
|
7952
|
+
* Create video generation
|
|
7953
|
+
*
|
|
7954
|
+
* Create a video.generate job. Generation is charged per second. The response is 202 with a queued Job; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until terminal, then save successful outputs. Unsaved candidate Files expire after 7 days.
|
|
7955
|
+
*/
|
|
7956
|
+
export const mediaCreateGeneration = (options) => (options.client ?? client).post({
|
|
7957
|
+
security: [{
|
|
7958
|
+
key: 'media-BearerAuth',
|
|
7959
|
+
scheme: 'bearer',
|
|
7960
|
+
type: 'http'
|
|
7961
|
+
}],
|
|
7962
|
+
url: '/media/v1/libraries/{library_id}/generations',
|
|
7963
|
+
...options,
|
|
7964
|
+
headers: {
|
|
7965
|
+
'Content-Type': 'application/json',
|
|
7966
|
+
...options.headers
|
|
7967
|
+
}
|
|
7968
|
+
});
|
|
7969
|
+
/**
|
|
7970
|
+
* List jobs
|
|
7971
|
+
*
|
|
7972
|
+
* List batch and video-generation jobs in a library. Filter by status and continue with next_cursor. Poll a generation Job until terminal, then save successful candidate outputs before they expire after 7 days.
|
|
7973
|
+
*/
|
|
7974
|
+
export const mediaListJobs = (options) => (options.client ?? client).get({
|
|
7975
|
+
security: [{
|
|
7976
|
+
key: 'media-BearerAuth',
|
|
7977
|
+
scheme: 'bearer',
|
|
7978
|
+
type: 'http'
|
|
7979
|
+
}],
|
|
7980
|
+
url: '/media/v1/libraries/{library_id}/jobs',
|
|
7981
|
+
...options
|
|
7982
|
+
});
|
|
7983
|
+
/**
|
|
7984
|
+
* Cancel job
|
|
7985
|
+
*
|
|
7986
|
+
* Cancel a queued or running generation job. Already completed outputs remain available to save; poll or read the returned Job to confirm its status.
|
|
7987
|
+
*/
|
|
7988
|
+
export const mediaCancelJob = (options) => (options.client ?? client).post({
|
|
7989
|
+
security: [{
|
|
7990
|
+
key: 'media-BearerAuth',
|
|
7991
|
+
scheme: 'bearer',
|
|
7992
|
+
type: 'http'
|
|
7993
|
+
}],
|
|
7994
|
+
url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel',
|
|
7995
|
+
...options
|
|
7996
|
+
});
|
|
7997
|
+
/**
|
|
7998
|
+
* Save generation output
|
|
7999
|
+
*
|
|
8000
|
+
* Save a successful candidate as a library asset. Candidate outputs expire after 7 days; save before expiry. Generation is charged per second when the job runs, not when an output is saved.
|
|
8001
|
+
*/
|
|
8002
|
+
export const mediaSaveGenerationOutput = (options) => (options.client ?? client).post({
|
|
8003
|
+
security: [{
|
|
8004
|
+
key: 'media-BearerAuth',
|
|
8005
|
+
scheme: 'bearer',
|
|
8006
|
+
type: 'http'
|
|
8007
|
+
}],
|
|
8008
|
+
url: '/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save',
|
|
8009
|
+
...options,
|
|
8010
|
+
headers: {
|
|
8011
|
+
'Content-Type': 'application/json',
|
|
8012
|
+
...options.headers
|
|
8013
|
+
}
|
|
8014
|
+
});
|
|
8015
|
+
/**
|
|
8016
|
+
* Get generation capabilities
|
|
8017
|
+
*
|
|
8018
|
+
* Read supported text-to-video intent, default model, duration and aspect-ratio limits, per-library concurrency and candidate retention. Generation is charged per second; unsaved candidates expire after 7 days.
|
|
8019
|
+
*/
|
|
8020
|
+
export const mediaGetGenerationCapabilities = (options) => (options?.client ?? client).get({
|
|
8021
|
+
security: [{
|
|
8022
|
+
key: 'media-BearerAuth',
|
|
8023
|
+
scheme: 'bearer',
|
|
8024
|
+
type: 'http'
|
|
8025
|
+
}],
|
|
8026
|
+
url: '/media/v1/generation/capabilities',
|
|
8027
|
+
...options
|
|
8028
|
+
});
|
|
8029
|
+
/**
|
|
8030
|
+
* List types
|
|
8031
|
+
*
|
|
8032
|
+
* Read the node and relation types registered for this organization before writing, so a create names a type the graph accepts. Each entry is one registrant's registration with its owner, version and definitions. Types cannot be created at runtime; they are registered by the owning service at deploy time, so a type missing here is not available to write.
|
|
8033
|
+
*/
|
|
8034
|
+
export const ontologyListTypes = (options) => (options?.client ?? client).get({
|
|
8035
|
+
security: [{
|
|
8036
|
+
key: 'ontology-bearerAuth',
|
|
8037
|
+
scheme: 'bearer',
|
|
8038
|
+
type: 'http'
|
|
8039
|
+
}],
|
|
8040
|
+
url: '/ontology/v1/types',
|
|
8041
|
+
...options
|
|
8042
|
+
});
|
|
8043
|
+
/**
|
|
8044
|
+
* Register type
|
|
8045
|
+
*
|
|
8046
|
+
* Register a node or relation type for this organization. Not open yet — this call currently answers 501 NOT_IMPLEMENTED and writes nothing, because a registration is checked and stored by the deploy gate that ships the registering service, not by a runtime call. Until it opens, read the types already in force with praxis.ontology.types.list and create records only of those types.
|
|
8047
|
+
*/
|
|
8048
|
+
export const ontologyRegisterType = (options) => (options.client ?? client).post({
|
|
8049
|
+
security: [{
|
|
8050
|
+
key: 'ontology-bearerAuth',
|
|
8051
|
+
scheme: 'bearer',
|
|
8052
|
+
type: 'http'
|
|
8053
|
+
}],
|
|
8054
|
+
url: '/ontology/v1/types',
|
|
8055
|
+
...options,
|
|
8056
|
+
headers: {
|
|
8057
|
+
'Content-Type': 'application/json',
|
|
8058
|
+
...options.headers
|
|
8059
|
+
}
|
|
8060
|
+
});
|
|
8061
|
+
/**
|
|
8062
|
+
* Retrieve type
|
|
8063
|
+
*
|
|
8064
|
+
* Read one registered type's definition before writing a record of it, to learn whether it is a node or an edge, which endpoints an edge type admits, and which origins it accepts. The name comes from types.list; a name that is not registered answers ONTOLOGY_TYPE_UNKNOWN, and writes of that type are refused.
|
|
8065
|
+
*/
|
|
8066
|
+
export const ontologyRetrieveType = (options) => (options.client ?? client).get({
|
|
8067
|
+
security: [{
|
|
8068
|
+
key: 'ontology-bearerAuth',
|
|
8069
|
+
scheme: 'bearer',
|
|
8070
|
+
type: 'http'
|
|
8071
|
+
}],
|
|
8072
|
+
url: '/ontology/v1/types/{name}',
|
|
8073
|
+
...options
|
|
8074
|
+
});
|
|
8075
|
+
/**
|
|
8076
|
+
* List nodes
|
|
8077
|
+
*
|
|
8078
|
+
* Discover the entities in this organization's graph and obtain node ids for retrieval, updates and relations. Filter by type, by free text over names, aliases, descriptions and facts, or by owner; limit is 1–100 and defaults to 50. Omit cursor for the first page, then copy next_cursor into the next request until it is null. A node whose content belongs to somebody else comes back as a restricted entry carrying only its id, type and name.
|
|
8079
|
+
*/
|
|
8080
|
+
export const ontologyListNodes = (options) => (options?.client ?? client).get({
|
|
8081
|
+
security: [{
|
|
8082
|
+
key: 'ontology-bearerAuth',
|
|
8083
|
+
scheme: 'bearer',
|
|
8084
|
+
type: 'http'
|
|
8085
|
+
}],
|
|
8086
|
+
url: '/ontology/v1/nodes',
|
|
8087
|
+
...options
|
|
8088
|
+
});
|
|
8089
|
+
/**
|
|
8090
|
+
* Create node
|
|
8091
|
+
*
|
|
8092
|
+
* Record one entity in the graph, for a system mirroring a record it owns. type must already be registered and ref, when given, must match that type's ref_prefix. Send an Idempotency-Key header; repeating the same key with the same content returns the first result instead of creating a second node. This writes structure only — to give an agent something to remember, use POST /agent/v1/agents/{agent_id}/consolidations.
|
|
8093
|
+
*/
|
|
8094
|
+
export const ontologyCreateNode = (options) => (options.client ?? client).post({
|
|
8095
|
+
security: [{
|
|
8096
|
+
key: 'ontology-bearerAuth',
|
|
8097
|
+
scheme: 'bearer',
|
|
8098
|
+
type: 'http'
|
|
8099
|
+
}],
|
|
8100
|
+
url: '/ontology/v1/nodes',
|
|
8101
|
+
...options,
|
|
8102
|
+
headers: {
|
|
8103
|
+
'Content-Type': 'application/json',
|
|
8104
|
+
...options.headers
|
|
8105
|
+
}
|
|
8106
|
+
});
|
|
8107
|
+
/**
|
|
8108
|
+
* Retrieve node
|
|
8109
|
+
*
|
|
8110
|
+
* Read one node's content and, with expand=relations, every relation on and around it. as_of reads the node as it was at that time. A node id from another organization, or one that never existed, answers ONTOLOGY_NODE_NOT_FOUND; a node you may reach but not read returns restricted true with its name only.
|
|
8111
|
+
*/
|
|
8112
|
+
export const ontologyRetrieveNode = (options) => (options.client ?? client).get({
|
|
8113
|
+
security: [{
|
|
8114
|
+
key: 'ontology-bearerAuth',
|
|
8115
|
+
scheme: 'bearer',
|
|
8116
|
+
type: 'http'
|
|
8117
|
+
}],
|
|
8118
|
+
url: '/ontology/v1/nodes/{node_id}',
|
|
8119
|
+
...options
|
|
8120
|
+
});
|
|
8121
|
+
/**
|
|
8122
|
+
* Update node
|
|
8123
|
+
*
|
|
8124
|
+
* Change a node's name, aliases or description when the mirrored record was renamed, without touching its type or identity. Send only the fields to change; omitted fields keep their current values and an explicitly null description clears it. Repeating the same edit converges on the same node, so this needs no Idempotency-Key.
|
|
8125
|
+
*/
|
|
8126
|
+
export const ontologyUpdateNode = (options) => (options.client ?? client).patch({
|
|
8127
|
+
security: [{
|
|
8128
|
+
key: 'ontology-bearerAuth',
|
|
8129
|
+
scheme: 'bearer',
|
|
8130
|
+
type: 'http'
|
|
8131
|
+
}],
|
|
8132
|
+
url: '/ontology/v1/nodes/{node_id}',
|
|
8133
|
+
...options,
|
|
8134
|
+
headers: {
|
|
8135
|
+
'Content-Type': 'application/json',
|
|
8136
|
+
...options.headers
|
|
8137
|
+
}
|
|
8138
|
+
});
|
|
8139
|
+
/**
|
|
8140
|
+
* Merge node
|
|
8141
|
+
*
|
|
8142
|
+
* Fold a duplicate node into the node that should survive, when two records are discovered to be the same entity. The merged node's relations and aliases move to the survivor and later reads of the duplicate resolve to it. Send an Idempotency-Key header; repeating the same key replays the first result. Reversal is a staff operation, not available here.
|
|
8143
|
+
*/
|
|
8144
|
+
export const ontologyMergeNode = (options) => (options.client ?? client).post({
|
|
8145
|
+
security: [{
|
|
8146
|
+
key: 'ontology-bearerAuth',
|
|
8147
|
+
scheme: 'bearer',
|
|
8148
|
+
type: 'http'
|
|
8149
|
+
}],
|
|
8150
|
+
url: '/ontology/v1/nodes/{node_id}/merge',
|
|
8151
|
+
...options,
|
|
8152
|
+
headers: {
|
|
8153
|
+
'Content-Type': 'application/json',
|
|
8154
|
+
...options.headers
|
|
8155
|
+
}
|
|
8156
|
+
});
|
|
8157
|
+
/**
|
|
8158
|
+
* List relations
|
|
8159
|
+
*
|
|
8160
|
+
* Read the facts in the graph and obtain relation ids for retrieval, invalidation or spreading. Filter by endpoint node, by type and by direction; as_of reads the relations as they were then. Invalidated relations are omitted unless include_invalid is true. limit is 1–100 and defaults to 50; follow next_cursor until it is null.
|
|
8161
|
+
*/
|
|
8162
|
+
export const ontologyListRelations = (options) => (options?.client ?? client).get({
|
|
8163
|
+
security: [{
|
|
8164
|
+
key: 'ontology-bearerAuth',
|
|
8165
|
+
scheme: 'bearer',
|
|
8166
|
+
type: 'http'
|
|
8167
|
+
}],
|
|
8168
|
+
url: '/ontology/v1/relations',
|
|
8169
|
+
...options
|
|
8170
|
+
});
|
|
8171
|
+
/**
|
|
8172
|
+
* Create relation
|
|
8173
|
+
*
|
|
8174
|
+
* Record one fact between two existing nodes, for a system mirroring a relationship it owns. type must be registered and must admit these endpoints; fact states the relationship in one sentence. Send an Idempotency-Key header; repeating the same key returns the first result instead of writing a second relation. This writes structure only — to give an agent something to remember, use POST /agent/v1/agents/{agent_id}/consolidations.
|
|
8175
|
+
*/
|
|
8176
|
+
export const ontologyCreateRelation = (options) => (options.client ?? client).post({
|
|
8177
|
+
security: [{
|
|
8178
|
+
key: 'ontology-bearerAuth',
|
|
8179
|
+
scheme: 'bearer',
|
|
8180
|
+
type: 'http'
|
|
8181
|
+
}],
|
|
8182
|
+
url: '/ontology/v1/relations',
|
|
8183
|
+
...options,
|
|
8184
|
+
headers: {
|
|
8185
|
+
'Content-Type': 'application/json',
|
|
8186
|
+
...options.headers
|
|
8187
|
+
}
|
|
8188
|
+
});
|
|
8189
|
+
/**
|
|
8190
|
+
* Retrieve relation
|
|
8191
|
+
*
|
|
8192
|
+
* Read one relation's fact and both of its clocks — valid_at and invalid_at for when it was true in the world, created_at and expired_at for when it was recorded and retired. An id from another organization, or one that never existed, answers ONTOLOGY_EDGE_NOT_FOUND.
|
|
8193
|
+
*/
|
|
8194
|
+
export const ontologyRetrieveRelation = (options) => (options.client ?? client).get({
|
|
8195
|
+
security: [{
|
|
8196
|
+
key: 'ontology-bearerAuth',
|
|
8197
|
+
scheme: 'bearer',
|
|
8198
|
+
type: 'http'
|
|
8199
|
+
}],
|
|
8200
|
+
url: '/ontology/v1/relations/{relation_id}',
|
|
8201
|
+
...options
|
|
8202
|
+
});
|
|
8203
|
+
/**
|
|
8204
|
+
* Invalidate relation
|
|
8205
|
+
*
|
|
8206
|
+
* Mark a relation as no longer true from a world time, when the mirrored record changed. The relation is kept — invalid_at moves and the relation still reads at an earlier as_of, so history stays answerable. Send an Idempotency-Key header; repeating the same key replays the first result. There is no delete.
|
|
8207
|
+
*/
|
|
8208
|
+
export const ontologyInvalidateRelation = (options) => (options.client ?? client).post({
|
|
8209
|
+
security: [{
|
|
8210
|
+
key: 'ontology-bearerAuth',
|
|
8211
|
+
scheme: 'bearer',
|
|
8212
|
+
type: 'http'
|
|
8213
|
+
}],
|
|
8214
|
+
url: '/ontology/v1/relations/{relation_id}/invalidate',
|
|
8215
|
+
...options,
|
|
8216
|
+
headers: {
|
|
8217
|
+
'Content-Type': 'application/json',
|
|
8218
|
+
...options.headers
|
|
8219
|
+
}
|
|
8220
|
+
});
|
|
8221
|
+
/**
|
|
8222
|
+
* Apply changeset
|
|
8223
|
+
*
|
|
8224
|
+
* Apply a batch of node, relation and invalidation operations as one transaction, when a mirror has several records to write together and a partial write would leave the graph inconsistent. Every operation succeeds or none is applied. Send an Idempotency-Key header; the same key with the same content replays the first result, and the same key with different content is ONTOLOGY_CONFLICT.
|
|
8225
|
+
*/
|
|
8226
|
+
export const ontologyApplyChangeset = (options) => (options.client ?? client).post({
|
|
8227
|
+
security: [{
|
|
8228
|
+
key: 'ontology-bearerAuth',
|
|
8229
|
+
scheme: 'bearer',
|
|
8230
|
+
type: 'http'
|
|
8231
|
+
}],
|
|
8232
|
+
url: '/ontology/v1/changesets',
|
|
8233
|
+
...options,
|
|
8234
|
+
headers: {
|
|
8235
|
+
'Content-Type': 'application/json',
|
|
8236
|
+
...options.headers
|
|
8237
|
+
}
|
|
8238
|
+
});
|
|
8239
|
+
/**
|
|
8240
|
+
* Search nodes
|
|
8241
|
+
*
|
|
8242
|
+
* Resolve text to the nodes it most likely names, when a mirror holds a name and needs the node id it corresponds to. Results are ranked candidates, not an answer, each reporting whether the match came from the node's name, an alias, its description or a relation's fact. Narrow with types, and cap the result count with limit (1–50, default 20). This reads structure; it is not an agent recall — agents recall through POST /agent/v1/agents/{agent_id}/consolidations.
|
|
8243
|
+
*/
|
|
8244
|
+
export const ontologySearch = (options) => (options.client ?? client).post({
|
|
8245
|
+
security: [{
|
|
8246
|
+
key: 'ontology-bearerAuth',
|
|
8247
|
+
scheme: 'bearer',
|
|
8248
|
+
type: 'http'
|
|
8249
|
+
}],
|
|
8250
|
+
url: '/ontology/v1/search',
|
|
8251
|
+
...options,
|
|
8252
|
+
headers: {
|
|
8253
|
+
'Content-Type': 'application/json',
|
|
8254
|
+
...options.headers
|
|
8255
|
+
}
|
|
8256
|
+
});
|
|
8257
|
+
/**
|
|
8258
|
+
* List sandboxes (v2)
|
|
8259
|
+
*
|
|
8260
|
+
* List your running and paused sandboxes with paging and filters. Use it to find a sandboxID before connecting to, pausing or killing a sandbox. Filter by state, template (id or alias), name, metadata (key=value pairs joined with &) and startedAfter; order sorts by start time (default newest first); limit is 1 to 100 (default 100). When more results exist the response carries an x-next-token header; send it back as nextToken for the next page. To read one sandbox use getSandbox.
|
|
8261
|
+
*/
|
|
8262
|
+
export const getSandboxV1Sandboxes = (options) => (options?.client ?? client).get({
|
|
8263
|
+
querySerializer: { parameters: { state: { array: { explode: false } } } },
|
|
8264
|
+
security: [
|
|
8265
|
+
{
|
|
8266
|
+
key: 'sandbox-ApiKeyAuth',
|
|
8267
|
+
name: 'X-API-Key',
|
|
8268
|
+
type: 'apiKey'
|
|
8269
|
+
},
|
|
8270
|
+
{
|
|
8271
|
+
key: 'sandbox-AuthProviderBearerAuth',
|
|
8272
|
+
scheme: 'bearer',
|
|
8273
|
+
type: 'http'
|
|
8274
|
+
},
|
|
8275
|
+
{
|
|
8276
|
+
key: 'sandbox-AuthProviderTeamAuth',
|
|
8277
|
+
name: 'X-Team-ID',
|
|
8278
|
+
type: 'apiKey'
|
|
8279
|
+
},
|
|
8280
|
+
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
8281
|
+
{
|
|
8282
|
+
key: 'sandbox-AdminTeamAuth',
|
|
8283
|
+
name: 'X-Team-ID',
|
|
8284
|
+
type: 'apiKey'
|
|
8285
|
+
},
|
|
8286
|
+
{
|
|
8287
|
+
key: 'sandbox-AdminJWTAuth',
|
|
8288
|
+
scheme: 'bearer',
|
|
8289
|
+
type: 'http'
|
|
8290
|
+
}
|
|
8291
|
+
],
|
|
8292
|
+
url: '/sandbox/v1/sandboxes',
|
|
8293
|
+
...options
|
|
8294
|
+
});
|
|
8295
|
+
/**
|
|
8296
|
+
* Create sandbox (v2)
|
|
8297
|
+
*
|
|
8298
|
+
* Create a sandbox from the template. All system communication with the sandbox is secured.
|
|
8299
|
+
*/
|
|
8300
|
+
export const postSandboxV1Sandboxes = (options) => (options.client ?? client).post({
|
|
8301
|
+
security: [
|
|
8302
|
+
{
|
|
8303
|
+
key: 'sandbox-ApiKeyAuth',
|
|
8304
|
+
name: 'X-API-Key',
|
|
8305
|
+
type: 'apiKey'
|
|
8306
|
+
},
|
|
8307
|
+
{
|
|
8308
|
+
key: 'sandbox-AuthProviderBearerAuth',
|
|
8309
|
+
scheme: 'bearer',
|
|
8310
|
+
type: 'http'
|
|
8311
|
+
},
|
|
8312
|
+
{
|
|
8313
|
+
key: 'sandbox-AuthProviderTeamAuth',
|
|
8314
|
+
name: 'X-Team-ID',
|
|
8315
|
+
type: 'apiKey'
|
|
8316
|
+
},
|
|
8317
|
+
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
8318
|
+
{
|
|
8319
|
+
key: 'sandbox-AdminTeamAuth',
|
|
8320
|
+
name: 'X-Team-ID',
|
|
8321
|
+
type: 'apiKey'
|
|
8322
|
+
},
|
|
8323
|
+
{
|
|
8324
|
+
key: 'sandbox-AdminJWTAuth',
|
|
8325
|
+
scheme: 'bearer',
|
|
8326
|
+
type: 'http'
|
|
8327
|
+
}
|
|
8328
|
+
],
|
|
8329
|
+
url: '/sandbox/v1/sandboxes',
|
|
8330
|
+
...options,
|
|
8331
|
+
headers: {
|
|
8332
|
+
'Content-Type': 'application/json',
|
|
8333
|
+
...options.headers
|
|
8334
|
+
}
|
|
8335
|
+
});
|
|
8336
|
+
/**
|
|
8337
|
+
* Sandbox metrics
|
|
8338
|
+
*
|
|
8339
|
+
* Read CPU, memory and disk usage samples of a sandbox over a time window. Use it to size a sandbox or find out why it is slow. start and end are Unix timestamps in seconds; without them the recent samples are returned. An unknown id answers 404.
|
|
8340
|
+
*/
|
|
8341
|
+
export const getSandboxV1SandboxesBySandboxIdMetrics = (options) => (options.client ?? client).get({
|
|
8342
|
+
security: [
|
|
8343
|
+
{
|
|
8344
|
+
key: 'sandbox-ApiKeyAuth',
|
|
8345
|
+
name: 'X-API-Key',
|
|
8346
|
+
type: 'apiKey'
|
|
8347
|
+
},
|
|
8348
|
+
{
|
|
8349
|
+
key: 'sandbox-AuthProviderBearerAuth',
|
|
8350
|
+
scheme: 'bearer',
|
|
8351
|
+
type: 'http'
|
|
8352
|
+
},
|
|
8353
|
+
{
|
|
8354
|
+
key: 'sandbox-AuthProviderTeamAuth',
|
|
8355
|
+
name: 'X-Team-ID',
|
|
8356
|
+
type: 'apiKey'
|
|
8357
|
+
},
|
|
8358
|
+
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
8359
|
+
{
|
|
8360
|
+
key: 'sandbox-AdminTeamAuth',
|
|
8361
|
+
name: 'X-Team-ID',
|
|
8362
|
+
type: 'apiKey'
|
|
8363
|
+
},
|
|
8364
|
+
{
|
|
8365
|
+
key: 'sandbox-AdminJWTAuth',
|
|
8366
|
+
scheme: 'bearer',
|
|
8367
|
+
type: 'http'
|
|
8368
|
+
}
|
|
8369
|
+
],
|
|
8370
|
+
url: '/sandbox/v1/sandboxes/{sandboxID}/metrics',
|
|
8371
|
+
...options
|
|
8372
|
+
});
|
|
8373
|
+
/**
|
|
8374
|
+
* Pause sandbox
|
|
8375
|
+
*
|
|
8376
|
+
* Pause a running sandbox, keeping its files and memory so that connectSandbox can resume it later. Use it to stop paying for compute without losing state; to discard the sandbox use killSandbox. Success answers 204. A sandbox that is not running answers 409.
|
|
8377
|
+
*/
|
|
8378
|
+
export const postSandboxV1SandboxesBySandboxIdPause = (options) => (options.client ?? client).post({
|
|
8379
|
+
security: [
|
|
8380
|
+
{
|
|
8381
|
+
key: 'sandbox-ApiKeyAuth',
|
|
8382
|
+
name: 'X-API-Key',
|
|
8383
|
+
type: 'apiKey'
|
|
8384
|
+
},
|
|
8385
|
+
{
|
|
8386
|
+
key: 'sandbox-AuthProviderBearerAuth',
|
|
8387
|
+
scheme: 'bearer',
|
|
8388
|
+
type: 'http'
|
|
8389
|
+
},
|
|
8390
|
+
{
|
|
8391
|
+
key: 'sandbox-AuthProviderTeamAuth',
|
|
8392
|
+
name: 'X-Team-ID',
|
|
8393
|
+
type: 'apiKey'
|
|
8394
|
+
},
|
|
8395
|
+
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
8396
|
+
{
|
|
8397
|
+
key: 'sandbox-AdminTeamAuth',
|
|
8398
|
+
name: 'X-Team-ID',
|
|
8399
|
+
type: 'apiKey'
|
|
8400
|
+
},
|
|
8401
|
+
{
|
|
8402
|
+
key: 'sandbox-AdminJWTAuth',
|
|
8403
|
+
scheme: 'bearer',
|
|
8404
|
+
type: 'http'
|
|
8405
|
+
}
|
|
8406
|
+
],
|
|
8407
|
+
url: '/sandbox/v1/sandboxes/{sandboxID}/pause',
|
|
8408
|
+
...options,
|
|
8409
|
+
headers: {
|
|
8410
|
+
'Content-Type': 'application/json',
|
|
8411
|
+
...options.headers
|
|
8412
|
+
}
|
|
8413
|
+
});
|
|
8414
|
+
/**
|
|
8415
|
+
* Set sandbox timeout
|
|
8416
|
+
*
|
|
8417
|
+
* Set the timeout for the sandbox. The sandbox will expire x seconds from the time of the request. Calling this method multiple times overwrites the TTL, each time using the current timestamp as the starting point to measure the timeout duration.
|
|
8418
|
+
*/
|
|
8419
|
+
export const postSandboxV1SandboxesBySandboxIdTimeout = (options) => (options.client ?? client).post({
|
|
8420
|
+
security: [
|
|
8421
|
+
{
|
|
8422
|
+
key: 'sandbox-ApiKeyAuth',
|
|
8423
|
+
name: 'X-API-Key',
|
|
8424
|
+
type: 'apiKey'
|
|
8425
|
+
},
|
|
8426
|
+
{
|
|
8427
|
+
key: 'sandbox-AuthProviderBearerAuth',
|
|
8428
|
+
scheme: 'bearer',
|
|
8429
|
+
type: 'http'
|
|
8430
|
+
},
|
|
8431
|
+
{
|
|
8432
|
+
key: 'sandbox-AuthProviderTeamAuth',
|
|
8433
|
+
name: 'X-Team-ID',
|
|
8434
|
+
type: 'apiKey'
|
|
8435
|
+
},
|
|
8436
|
+
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
8437
|
+
{
|
|
8438
|
+
key: 'sandbox-AdminTeamAuth',
|
|
8439
|
+
name: 'X-Team-ID',
|
|
8440
|
+
type: 'apiKey'
|
|
8441
|
+
},
|
|
8442
|
+
{
|
|
8443
|
+
key: 'sandbox-AdminJWTAuth',
|
|
8444
|
+
scheme: 'bearer',
|
|
8445
|
+
type: 'http'
|
|
8446
|
+
}
|
|
8447
|
+
],
|
|
8448
|
+
url: '/sandbox/v1/sandboxes/{sandboxID}/timeout',
|
|
8449
|
+
...options,
|
|
8450
|
+
headers: {
|
|
8451
|
+
'Content-Type': 'application/json',
|
|
8452
|
+
...options.headers
|
|
8453
|
+
}
|
|
8454
|
+
});
|
|
8455
|
+
/**
|
|
8456
|
+
* Connect sandbox (v2)
|
|
8457
|
+
*
|
|
8458
|
+
* Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. The request body is optional; an omitted timeout defaults to 300 seconds.
|
|
8459
|
+
*/
|
|
8460
|
+
export const postSandboxV1SandboxesBySandboxIdConnect = (options) => (options.client ?? client).post({
|
|
8461
|
+
security: [
|
|
8462
|
+
{
|
|
8463
|
+
key: 'sandbox-ApiKeyAuth',
|
|
8464
|
+
name: 'X-API-Key',
|
|
8465
|
+
type: 'apiKey'
|
|
8466
|
+
},
|
|
8467
|
+
{
|
|
8468
|
+
key: 'sandbox-AuthProviderBearerAuth',
|
|
8469
|
+
scheme: 'bearer',
|
|
8470
|
+
type: 'http'
|
|
8471
|
+
},
|
|
8472
|
+
{
|
|
8473
|
+
key: 'sandbox-AuthProviderTeamAuth',
|
|
8474
|
+
name: 'X-Team-ID',
|
|
8475
|
+
type: 'apiKey'
|
|
8476
|
+
},
|
|
8477
|
+
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
8478
|
+
{
|
|
8479
|
+
key: 'sandbox-AdminTeamAuth',
|
|
8480
|
+
name: 'X-Team-ID',
|
|
8481
|
+
type: 'apiKey'
|
|
8482
|
+
},
|
|
8483
|
+
{
|
|
8484
|
+
key: 'sandbox-AdminJWTAuth',
|
|
6161
8485
|
scheme: 'bearer',
|
|
6162
8486
|
type: 'http'
|
|
6163
|
-
}
|
|
6164
|
-
|
|
8487
|
+
}
|
|
8488
|
+
],
|
|
8489
|
+
url: '/sandbox/v1/sandboxes/{sandboxID}/connect',
|
|
6165
8490
|
...options,
|
|
6166
8491
|
headers: {
|
|
6167
8492
|
'Content-Type': 'application/json',
|
|
@@ -6169,40 +8494,89 @@ export const mediaBatchAssets = (options) => (options.client ?? client).post({
|
|
|
6169
8494
|
}
|
|
6170
8495
|
});
|
|
6171
8496
|
/**
|
|
6172
|
-
*
|
|
8497
|
+
* List templates (v2)
|
|
6173
8498
|
*
|
|
6174
|
-
*
|
|
8499
|
+
* List official templates and all your custom templates, including waiting, building, ready and error builds. Custom templates appear first; each custom row describes its latest build, not necessarily the current ready build. Use templateID for build management and a ready template name when creating a sandbox. Own-face official distinguishes public catalog entries; sourceKind is omitted until a source is submitted and on official templates. Other organizations' templates are invisible.
|
|
6175
8500
|
*/
|
|
6176
|
-
export const
|
|
6177
|
-
security: [
|
|
6178
|
-
|
|
8501
|
+
export const listSandboxTemplates = (options) => (options?.client ?? client).get({
|
|
8502
|
+
security: [
|
|
8503
|
+
{
|
|
8504
|
+
key: 'sandbox-ApiKeyAuth',
|
|
8505
|
+
name: 'X-API-Key',
|
|
8506
|
+
type: 'apiKey'
|
|
8507
|
+
},
|
|
8508
|
+
{
|
|
8509
|
+
key: 'sandbox-AuthProviderBearerAuth',
|
|
6179
8510
|
scheme: 'bearer',
|
|
6180
8511
|
type: 'http'
|
|
6181
|
-
}
|
|
6182
|
-
|
|
8512
|
+
},
|
|
8513
|
+
{
|
|
8514
|
+
key: 'sandbox-AuthProviderTeamAuth',
|
|
8515
|
+
name: 'X-Team-ID',
|
|
8516
|
+
type: 'apiKey'
|
|
8517
|
+
},
|
|
8518
|
+
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
8519
|
+
{
|
|
8520
|
+
key: 'sandbox-AdminTeamAuth',
|
|
8521
|
+
name: 'X-Team-ID',
|
|
8522
|
+
type: 'apiKey'
|
|
8523
|
+
},
|
|
8524
|
+
{
|
|
8525
|
+
key: 'sandbox-AdminJWTAuth',
|
|
8526
|
+
scheme: 'bearer',
|
|
8527
|
+
type: 'http'
|
|
8528
|
+
}
|
|
8529
|
+
],
|
|
8530
|
+
url: '/sandbox/v1/templates',
|
|
6183
8531
|
...options
|
|
6184
8532
|
});
|
|
6185
8533
|
/**
|
|
6186
|
-
*
|
|
8534
|
+
* Create template (v3)
|
|
6187
8535
|
*
|
|
6188
|
-
*
|
|
8536
|
+
* Reserve a waiting build before submitting its source. Reusing a name in your organization allocates a new build on the same template. Returns templateID and buildID; start it with templates.builds.update, then poll templates.builds.status.list. A name:tag suffix and tags are assigned after successful publication. Example: {"name":"my-template","cpuCount":2,"memoryMB":2048}. The own face also accepts diskGb, a positive integer defaulting to 10 GiB.
|
|
6189
8537
|
*/
|
|
6190
|
-
export const
|
|
6191
|
-
security: [
|
|
6192
|
-
|
|
8538
|
+
export const requestTemplateBuild = (options) => (options.client ?? client).post({
|
|
8539
|
+
security: [
|
|
8540
|
+
{
|
|
8541
|
+
key: 'sandbox-ApiKeyAuth',
|
|
8542
|
+
name: 'X-API-Key',
|
|
8543
|
+
type: 'apiKey'
|
|
8544
|
+
},
|
|
8545
|
+
{
|
|
8546
|
+
key: 'sandbox-AuthProviderBearerAuth',
|
|
6193
8547
|
scheme: 'bearer',
|
|
6194
8548
|
type: 'http'
|
|
6195
|
-
}
|
|
6196
|
-
|
|
6197
|
-
|
|
8549
|
+
},
|
|
8550
|
+
{
|
|
8551
|
+
key: 'sandbox-AuthProviderTeamAuth',
|
|
8552
|
+
name: 'X-Team-ID',
|
|
8553
|
+
type: 'apiKey'
|
|
8554
|
+
},
|
|
8555
|
+
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
8556
|
+
{
|
|
8557
|
+
key: 'sandbox-AdminTeamAuth',
|
|
8558
|
+
name: 'X-Team-ID',
|
|
8559
|
+
type: 'apiKey'
|
|
8560
|
+
},
|
|
8561
|
+
{
|
|
8562
|
+
key: 'sandbox-AdminJWTAuth',
|
|
8563
|
+
scheme: 'bearer',
|
|
8564
|
+
type: 'http'
|
|
8565
|
+
}
|
|
8566
|
+
],
|
|
8567
|
+
url: '/sandbox/v1/templates',
|
|
8568
|
+
...options,
|
|
8569
|
+
headers: {
|
|
8570
|
+
'Content-Type': 'application/json',
|
|
8571
|
+
...options.headers
|
|
8572
|
+
}
|
|
6198
8573
|
});
|
|
6199
8574
|
/**
|
|
6200
|
-
* List
|
|
8575
|
+
* List team volumes
|
|
6201
8576
|
*
|
|
6202
|
-
* List
|
|
8577
|
+
* List the volumes of your team. Use it to find a volumeID before reading or deleting a volume, or to attach a volume to a sandbox by name when you create it.
|
|
6203
8578
|
*/
|
|
6204
|
-
export const
|
|
6205
|
-
querySerializer: { parameters: { state: { array: { explode: false } } } },
|
|
8579
|
+
export const getSandboxV1Volumes = (options) => (options?.client ?? client).get({
|
|
6206
8580
|
security: [
|
|
6207
8581
|
{
|
|
6208
8582
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6231,15 +8605,15 @@ export const getSandboxV1Sandboxes = (options) => (options?.client ?? client).ge
|
|
|
6231
8605
|
type: 'http'
|
|
6232
8606
|
}
|
|
6233
8607
|
],
|
|
6234
|
-
url: '/sandbox/v1/
|
|
8608
|
+
url: '/sandbox/v1/volumes',
|
|
6235
8609
|
...options
|
|
6236
8610
|
});
|
|
6237
8611
|
/**
|
|
6238
|
-
* Create
|
|
8612
|
+
* Create team volume
|
|
6239
8613
|
*
|
|
6240
|
-
* Create a
|
|
8614
|
+
* Create a team volume: persistent storage that can be mounted into sandboxes and outlives them. Send the volume name; the response returns the volume id and name. Use getVolume to read it back and deleteVolume to remove it.
|
|
6241
8615
|
*/
|
|
6242
|
-
export const
|
|
8616
|
+
export const postSandboxV1Volumes = (options) => (options.client ?? client).post({
|
|
6243
8617
|
security: [
|
|
6244
8618
|
{
|
|
6245
8619
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6268,7 +8642,7 @@ export const postSandboxV1Sandboxes = (options) => (options.client ?? client).po
|
|
|
6268
8642
|
type: 'http'
|
|
6269
8643
|
}
|
|
6270
8644
|
],
|
|
6271
|
-
url: '/sandbox/v1/
|
|
8645
|
+
url: '/sandbox/v1/volumes',
|
|
6272
8646
|
...options,
|
|
6273
8647
|
headers: {
|
|
6274
8648
|
'Content-Type': 'application/json',
|
|
@@ -6276,11 +8650,11 @@ export const postSandboxV1Sandboxes = (options) => (options.client ?? client).po
|
|
|
6276
8650
|
}
|
|
6277
8651
|
});
|
|
6278
8652
|
/**
|
|
6279
|
-
*
|
|
8653
|
+
* Delete team volume
|
|
6280
8654
|
*
|
|
6281
|
-
*
|
|
8655
|
+
* Delete a team volume and its data permanently. Use it only when no sandbox needs the volume any more; the data cannot be recovered. Success answers 204; an unknown id answers 404.
|
|
6282
8656
|
*/
|
|
6283
|
-
export const
|
|
8657
|
+
export const deleteSandboxV1VolumesByVolumeId = (options) => (options.client ?? client).delete({
|
|
6284
8658
|
security: [
|
|
6285
8659
|
{
|
|
6286
8660
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6309,15 +8683,15 @@ export const getSandboxV1SandboxesBySandboxIdMetrics = (options) => (options.cli
|
|
|
6309
8683
|
type: 'http'
|
|
6310
8684
|
}
|
|
6311
8685
|
],
|
|
6312
|
-
url: '/sandbox/v1/
|
|
8686
|
+
url: '/sandbox/v1/volumes/{volumeID}',
|
|
6313
8687
|
...options
|
|
6314
8688
|
});
|
|
6315
8689
|
/**
|
|
6316
|
-
*
|
|
8690
|
+
* Team volume
|
|
6317
8691
|
*
|
|
6318
|
-
*
|
|
8692
|
+
* Read one team volume by id. Use it to confirm a volume exists and to read its name before mounting it in a sandbox. An unknown id answers 404.
|
|
6319
8693
|
*/
|
|
6320
|
-
export const
|
|
8694
|
+
export const getSandboxV1VolumesByVolumeId = (options) => (options.client ?? client).get({
|
|
6321
8695
|
security: [
|
|
6322
8696
|
{
|
|
6323
8697
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6346,19 +8720,15 @@ export const postSandboxV1SandboxesBySandboxIdPause = (options) => (options.clie
|
|
|
6346
8720
|
type: 'http'
|
|
6347
8721
|
}
|
|
6348
8722
|
],
|
|
6349
|
-
url: '/sandbox/v1/
|
|
6350
|
-
...options
|
|
6351
|
-
headers: {
|
|
6352
|
-
'Content-Type': 'application/json',
|
|
6353
|
-
...options.headers
|
|
6354
|
-
}
|
|
8723
|
+
url: '/sandbox/v1/volumes/{volumeID}',
|
|
8724
|
+
...options
|
|
6355
8725
|
});
|
|
6356
8726
|
/**
|
|
6357
|
-
*
|
|
8727
|
+
* Fork sandbox
|
|
6358
8728
|
*
|
|
6359
|
-
*
|
|
8729
|
+
* Fork the sandbox: checkpoint the running sandbox in place (it is briefly paused, snapshotted with its full memory state, and resumed on its node, keeping its ID and expiration untouched) and create count new sandboxes from that snapshot. Returns one result per requested fork, each carrying either the created sandbox or the error that prevented it from starting. A non-201 status means the request failed before any fork was attempted.
|
|
6360
8730
|
*/
|
|
6361
|
-
export const
|
|
8731
|
+
export const postSandboxV1SandboxesBySandboxIdFork = (options) => (options.client ?? client).post({
|
|
6362
8732
|
security: [
|
|
6363
8733
|
{
|
|
6364
8734
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6387,7 +8757,7 @@ export const postSandboxV1SandboxesBySandboxIdTimeout = (options) => (options.cl
|
|
|
6387
8757
|
type: 'http'
|
|
6388
8758
|
}
|
|
6389
8759
|
],
|
|
6390
|
-
url: '/sandbox/v1/sandboxes/{sandboxID}/
|
|
8760
|
+
url: '/sandbox/v1/sandboxes/{sandboxID}/fork',
|
|
6391
8761
|
...options,
|
|
6392
8762
|
headers: {
|
|
6393
8763
|
'Content-Type': 'application/json',
|
|
@@ -6395,11 +8765,11 @@ export const postSandboxV1SandboxesBySandboxIdTimeout = (options) => (options.cl
|
|
|
6395
8765
|
}
|
|
6396
8766
|
});
|
|
6397
8767
|
/**
|
|
6398
|
-
*
|
|
8768
|
+
* Create snapshot
|
|
6399
8769
|
*
|
|
6400
|
-
*
|
|
8770
|
+
* Create a persistent snapshot from the sandbox's current state. Snapshots can be used to create new sandboxes and persist beyond the original sandbox's lifetime.
|
|
6401
8771
|
*/
|
|
6402
|
-
export const
|
|
8772
|
+
export const postSandboxV1SandboxesBySandboxIdSnapshots = (options) => (options.client ?? client).post({
|
|
6403
8773
|
security: [
|
|
6404
8774
|
{
|
|
6405
8775
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6428,7 +8798,7 @@ export const postSandboxV1SandboxesBySandboxIdConnect = (options) => (options.cl
|
|
|
6428
8798
|
type: 'http'
|
|
6429
8799
|
}
|
|
6430
8800
|
],
|
|
6431
|
-
url: '/sandbox/v1/sandboxes/{sandboxID}/
|
|
8801
|
+
url: '/sandbox/v1/sandboxes/{sandboxID}/snapshots',
|
|
6432
8802
|
...options,
|
|
6433
8803
|
headers: {
|
|
6434
8804
|
'Content-Type': 'application/json',
|
|
@@ -6436,11 +8806,11 @@ export const postSandboxV1SandboxesBySandboxIdConnect = (options) => (options.cl
|
|
|
6436
8806
|
}
|
|
6437
8807
|
});
|
|
6438
8808
|
/**
|
|
6439
|
-
* List
|
|
8809
|
+
* List snapshots
|
|
6440
8810
|
*
|
|
6441
|
-
* List the
|
|
8811
|
+
* List the snapshots you created, one cursor page at a time. Use it to find a snapshot id before you create a sandbox from it or delete it. Filter by sandboxID (the source sandbox) or by name or snapshot id, optionally tag-qualified; limit is 1 to 100 (default 100). When more results exist send the cursor from the response back as nextToken.
|
|
6442
8812
|
*/
|
|
6443
|
-
export const
|
|
8813
|
+
export const getSandboxV1Snapshots = (options) => (options?.client ?? client).get({
|
|
6444
8814
|
security: [
|
|
6445
8815
|
{
|
|
6446
8816
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6469,15 +8839,15 @@ export const getSandboxV1Templates = (options) => (options?.client ?? client).ge
|
|
|
6469
8839
|
type: 'http'
|
|
6470
8840
|
}
|
|
6471
8841
|
],
|
|
6472
|
-
url: '/sandbox/v1/
|
|
8842
|
+
url: '/sandbox/v1/snapshots',
|
|
6473
8843
|
...options
|
|
6474
8844
|
});
|
|
6475
8845
|
/**
|
|
6476
|
-
*
|
|
8846
|
+
* Delete template
|
|
6477
8847
|
*
|
|
6478
|
-
*
|
|
8848
|
+
* Delete one of your snapshots. Sandboxes already created from it keep running; no new sandbox can be created from it afterwards. Success answers 204. A snapshot that does not exist or belongs to someone else answers 404.
|
|
6479
8849
|
*/
|
|
6480
|
-
export const
|
|
8850
|
+
export const deleteSandboxV1SnapshotsBySnapshotId = (options) => (options.client ?? client).delete({
|
|
6481
8851
|
security: [
|
|
6482
8852
|
{
|
|
6483
8853
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6506,15 +8876,15 @@ export const getSandboxV1Volumes = (options) => (options?.client ?? client).get(
|
|
|
6506
8876
|
type: 'http'
|
|
6507
8877
|
}
|
|
6508
8878
|
],
|
|
6509
|
-
url: '/sandbox/v1/
|
|
8879
|
+
url: '/sandbox/v1/snapshots/{snapshotID}',
|
|
6510
8880
|
...options
|
|
6511
8881
|
});
|
|
6512
8882
|
/**
|
|
6513
|
-
*
|
|
8883
|
+
* Update sandbox network
|
|
6514
8884
|
*
|
|
6515
|
-
*
|
|
8885
|
+
* Update the network configuration for a running sandbox. Replaces the current egress rules with the provided configuration. Omitting field clears it.
|
|
6516
8886
|
*/
|
|
6517
|
-
export const
|
|
8887
|
+
export const putSandboxV1SandboxesBySandboxIdNetwork = (options) => (options.client ?? client).put({
|
|
6518
8888
|
security: [
|
|
6519
8889
|
{
|
|
6520
8890
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6543,7 +8913,7 @@ export const postSandboxV1Volumes = (options) => (options.client ?? client).post
|
|
|
6543
8913
|
type: 'http'
|
|
6544
8914
|
}
|
|
6545
8915
|
],
|
|
6546
|
-
url: '/sandbox/v1/
|
|
8916
|
+
url: '/sandbox/v1/sandboxes/{sandboxID}/network',
|
|
6547
8917
|
...options,
|
|
6548
8918
|
headers: {
|
|
6549
8919
|
'Content-Type': 'application/json',
|
|
@@ -6551,11 +8921,11 @@ export const postSandboxV1Volumes = (options) => (options.client ?? client).post
|
|
|
6551
8921
|
}
|
|
6552
8922
|
});
|
|
6553
8923
|
/**
|
|
6554
|
-
*
|
|
8924
|
+
* Sandbox logs (v2)
|
|
6555
8925
|
*
|
|
6556
|
-
*
|
|
8926
|
+
* Read the log lines of a sandbox. Use it to debug what ran inside a sandbox. cursor is a start timestamp in milliseconds, direction chooses forward or backward from it, level sets the lowest level to return, search is a case-sensitive substring filter (at most 256 characters) and limit caps the count (at most 1000, default 1000). To continue, pass the timestamp of the last entry as the next cursor.
|
|
6557
8927
|
*/
|
|
6558
|
-
export const
|
|
8928
|
+
export const getSandboxV1SandboxesBySandboxIdLogs = (options) => (options.client ?? client).get({
|
|
6559
8929
|
security: [
|
|
6560
8930
|
{
|
|
6561
8931
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6584,15 +8954,15 @@ export const deleteSandboxV1VolumesByVolumeId = (options) => (options.client ??
|
|
|
6584
8954
|
type: 'http'
|
|
6585
8955
|
}
|
|
6586
8956
|
],
|
|
6587
|
-
url: '/sandbox/v1/
|
|
8957
|
+
url: '/sandbox/v1/sandboxes/{sandboxID}/logs',
|
|
6588
8958
|
...options
|
|
6589
8959
|
});
|
|
6590
8960
|
/**
|
|
6591
|
-
*
|
|
8961
|
+
* Start template build (v2)
|
|
6592
8962
|
*
|
|
6593
|
-
*
|
|
8963
|
+
* Submit source for a waiting build returned by templates.create; returns 202 after queueing, not after successful publication. Unlike E2B, COPY is rejected (use RUN curl or git clone), fromTemplate accepts official catalog names only, and plaintext registry credentials are rejected. The own face also accepts dockerfile, mutually exclusive with fromImage/fromTemplate/steps, and fromImageRegistry vault references for nonofficial images. Poll templates.builds.status.list until ready or error. Example: {"fromImage":"node:22","steps":[{"type":"RUN","args":["echo hello"]}]}.
|
|
6594
8964
|
*/
|
|
6595
|
-
export const
|
|
8965
|
+
export const startTemplateBuild = (options) => (options.client ?? client).post({
|
|
6596
8966
|
security: [
|
|
6597
8967
|
{
|
|
6598
8968
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6621,15 +8991,19 @@ export const getSandboxV1VolumesByVolumeId = (options) => (options.client ?? cli
|
|
|
6621
8991
|
type: 'http'
|
|
6622
8992
|
}
|
|
6623
8993
|
],
|
|
6624
|
-
url: '/sandbox/v1/
|
|
6625
|
-
...options
|
|
8994
|
+
url: '/sandbox/v1/templates/{templateID}/builds/{buildID}',
|
|
8995
|
+
...options,
|
|
8996
|
+
headers: {
|
|
8997
|
+
'Content-Type': 'application/json',
|
|
8998
|
+
...options.headers
|
|
8999
|
+
}
|
|
6626
9000
|
});
|
|
6627
9001
|
/**
|
|
6628
|
-
*
|
|
9002
|
+
* Template build status
|
|
6629
9003
|
*
|
|
6630
|
-
*
|
|
9004
|
+
* Poll a build using templateID and buildID from templates.create. waiting means source has not been submitted; building includes queued work; ready permits sandbox creation; error is terminal, with reason when available. logsOffset counts previously read log entries, starting at zero; add logEntries.length after each response. limit is 0–100, default 100. level selects one log level; offsets then count entries at that level. Drain logs until an empty page, including after a terminal status.
|
|
6631
9005
|
*/
|
|
6632
|
-
export const
|
|
9006
|
+
export const getTemplateBuildStatus = (options) => (options.client ?? client).get({
|
|
6633
9007
|
security: [
|
|
6634
9008
|
{
|
|
6635
9009
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6658,19 +9032,15 @@ export const postSandboxV1SandboxesBySandboxIdFork = (options) => (options.clien
|
|
|
6658
9032
|
type: 'http'
|
|
6659
9033
|
}
|
|
6660
9034
|
],
|
|
6661
|
-
url: '/sandbox/v1/
|
|
6662
|
-
...options
|
|
6663
|
-
headers: {
|
|
6664
|
-
'Content-Type': 'application/json',
|
|
6665
|
-
...options.headers
|
|
6666
|
-
}
|
|
9035
|
+
url: '/sandbox/v1/templates/{templateID}/builds/{buildID}/status',
|
|
9036
|
+
...options
|
|
6667
9037
|
});
|
|
6668
9038
|
/**
|
|
6669
|
-
*
|
|
9039
|
+
* Delete template
|
|
6670
9040
|
*
|
|
6671
|
-
*
|
|
9041
|
+
* Permanently remove your template, its builds and tag assignments using templateID from templates.create. Active instances prevent deletion with 409; terminate them first. Unknown or other-organization IDs return 404. Snapshot IDs use snapshots.delete instead.
|
|
6672
9042
|
*/
|
|
6673
|
-
export const
|
|
9043
|
+
export const deleteUserTemplate = (options) => (options.client ?? client).delete({
|
|
6674
9044
|
security: [
|
|
6675
9045
|
{
|
|
6676
9046
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6699,19 +9069,15 @@ export const postSandboxV1SandboxesBySandboxIdSnapshots = (options) => (options.
|
|
|
6699
9069
|
type: 'http'
|
|
6700
9070
|
}
|
|
6701
9071
|
],
|
|
6702
|
-
url: '/sandbox/v1/
|
|
6703
|
-
...options
|
|
6704
|
-
headers: {
|
|
6705
|
-
'Content-Type': 'application/json',
|
|
6706
|
-
...options.headers
|
|
6707
|
-
}
|
|
9072
|
+
url: '/sandbox/v1/templates/{templateID}',
|
|
9073
|
+
...options
|
|
6708
9074
|
});
|
|
6709
9075
|
/**
|
|
6710
|
-
* List
|
|
9076
|
+
* List template builds
|
|
6711
9077
|
*
|
|
6712
|
-
*
|
|
9078
|
+
* Inspect your template and its newest builds using templateID from templates.create. Build states are waiting, building, ready or error. Use limit and the returned x-next-token header to page builds. Unknown or other-organization templates return 404.
|
|
6713
9079
|
*/
|
|
6714
|
-
export const
|
|
9080
|
+
export const getTemplateWithBuilds = (options) => (options.client ?? client).get({
|
|
6715
9081
|
security: [
|
|
6716
9082
|
{
|
|
6717
9083
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6740,15 +9106,15 @@ export const getSandboxV1Snapshots = (options) => (options?.client ?? client).ge
|
|
|
6740
9106
|
type: 'http'
|
|
6741
9107
|
}
|
|
6742
9108
|
],
|
|
6743
|
-
url: '/sandbox/v1/
|
|
9109
|
+
url: '/sandbox/v1/templates/{templateID}',
|
|
6744
9110
|
...options
|
|
6745
9111
|
});
|
|
6746
9112
|
/**
|
|
6747
|
-
* Delete template
|
|
9113
|
+
* Delete template tags
|
|
6748
9114
|
*
|
|
6749
|
-
*
|
|
9115
|
+
* Remove the specified tag labels from your template by name, for example {"name":"my-template","tags":["stable"]}. Builds remain available. Removing default means untagged sandbox creation no longer resolves this template. Unknown or other-organization names return 404. b<number> names are reserved read-only build aliases and cannot be assigned or deleted as tags.
|
|
6750
9116
|
*/
|
|
6751
|
-
export const
|
|
9117
|
+
export const deleteTemplateTags = (options) => (options.client ?? client).delete({
|
|
6752
9118
|
security: [
|
|
6753
9119
|
{
|
|
6754
9120
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6777,15 +9143,19 @@ export const deleteSandboxV1SnapshotsBySnapshotId = (options) => (options.client
|
|
|
6777
9143
|
type: 'http'
|
|
6778
9144
|
}
|
|
6779
9145
|
],
|
|
6780
|
-
url: '/sandbox/v1/
|
|
6781
|
-
...options
|
|
9146
|
+
url: '/sandbox/v1/templates/tags',
|
|
9147
|
+
...options,
|
|
9148
|
+
headers: {
|
|
9149
|
+
'Content-Type': 'application/json',
|
|
9150
|
+
...options.headers
|
|
9151
|
+
}
|
|
6782
9152
|
});
|
|
6783
9153
|
/**
|
|
6784
|
-
*
|
|
9154
|
+
* Assign template tags
|
|
6785
9155
|
*
|
|
6786
|
-
*
|
|
9156
|
+
* Assign tags to the ready build selected by target in name:tag format, for example {"target":"my-template:default","tags":["stable"]}. Names belong to your organization. Tags move an existing label to this build without rebuilding. Obtain available names from templates.list and tags from templates.tags.list. b<number> names are reserved read-only build aliases and cannot be assigned or deleted as tags. target also accepts name:b<number> to select a ready build by number, for example my-template:b1.
|
|
6787
9157
|
*/
|
|
6788
|
-
export const
|
|
9158
|
+
export const assignTemplateTags = (options) => (options.client ?? client).post({
|
|
6789
9159
|
security: [
|
|
6790
9160
|
{
|
|
6791
9161
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6814,7 +9184,7 @@ export const putSandboxV1SandboxesBySandboxIdNetwork = (options) => (options.cli
|
|
|
6814
9184
|
type: 'http'
|
|
6815
9185
|
}
|
|
6816
9186
|
],
|
|
6817
|
-
url: '/sandbox/v1/
|
|
9187
|
+
url: '/sandbox/v1/templates/tags',
|
|
6818
9188
|
...options,
|
|
6819
9189
|
headers: {
|
|
6820
9190
|
'Content-Type': 'application/json',
|
|
@@ -6822,11 +9192,11 @@ export const putSandboxV1SandboxesBySandboxIdNetwork = (options) => (options.cli
|
|
|
6822
9192
|
}
|
|
6823
9193
|
});
|
|
6824
9194
|
/**
|
|
6825
|
-
*
|
|
9195
|
+
* List template tags
|
|
6826
9196
|
*
|
|
6827
|
-
* Read the
|
|
9197
|
+
* Read the tag-to-build assignments for your template using templateID from templates.create. Only ready builds acquire tags. Use a returned tag with the template name as name:tag when creating a sandbox or assigning additional tags. Foreign IDs return 404.
|
|
6828
9198
|
*/
|
|
6829
|
-
export const
|
|
9199
|
+
export const listTemplateTags = (options) => (options.client ?? client).get({
|
|
6830
9200
|
security: [
|
|
6831
9201
|
{
|
|
6832
9202
|
key: 'sandbox-ApiKeyAuth',
|
|
@@ -6855,7 +9225,44 @@ export const getSandboxV1SandboxesBySandboxIdLogs = (options) => (options.client
|
|
|
6855
9225
|
type: 'http'
|
|
6856
9226
|
}
|
|
6857
9227
|
],
|
|
6858
|
-
url: '/sandbox/v1/
|
|
9228
|
+
url: '/sandbox/v1/templates/{templateID}/tags',
|
|
9229
|
+
...options
|
|
9230
|
+
});
|
|
9231
|
+
/**
|
|
9232
|
+
* Check template alias
|
|
9233
|
+
*
|
|
9234
|
+
* Resolve a name within your organization to its templateID before reading or managing builds. Use the bare template name, without a :tag suffix. Unknown and other-organization names return 404. The response public field is false for your private templates.
|
|
9235
|
+
*/
|
|
9236
|
+
export const resolveTemplateAlias = (options) => (options.client ?? client).get({
|
|
9237
|
+
security: [
|
|
9238
|
+
{
|
|
9239
|
+
key: 'sandbox-ApiKeyAuth',
|
|
9240
|
+
name: 'X-API-Key',
|
|
9241
|
+
type: 'apiKey'
|
|
9242
|
+
},
|
|
9243
|
+
{
|
|
9244
|
+
key: 'sandbox-AuthProviderBearerAuth',
|
|
9245
|
+
scheme: 'bearer',
|
|
9246
|
+
type: 'http'
|
|
9247
|
+
},
|
|
9248
|
+
{
|
|
9249
|
+
key: 'sandbox-AuthProviderTeamAuth',
|
|
9250
|
+
name: 'X-Team-ID',
|
|
9251
|
+
type: 'apiKey'
|
|
9252
|
+
},
|
|
9253
|
+
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
9254
|
+
{
|
|
9255
|
+
key: 'sandbox-AdminTeamAuth',
|
|
9256
|
+
name: 'X-Team-ID',
|
|
9257
|
+
type: 'apiKey'
|
|
9258
|
+
},
|
|
9259
|
+
{
|
|
9260
|
+
key: 'sandbox-AdminJWTAuth',
|
|
9261
|
+
scheme: 'bearer',
|
|
9262
|
+
type: 'http'
|
|
9263
|
+
}
|
|
9264
|
+
],
|
|
9265
|
+
url: '/sandbox/v1/templates/aliases/{alias}',
|
|
6859
9266
|
...options
|
|
6860
9267
|
});
|
|
6861
9268
|
/**
|
|
@@ -6947,7 +9354,7 @@ export const vaultListVaults = (options) => (options?.client ?? client).get({
|
|
|
6947
9354
|
/**
|
|
6948
9355
|
* Create vault
|
|
6949
9356
|
*
|
|
6950
|
-
* Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations.
|
|
9357
|
+
* Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations. Agent sessions and deployments accept up to 50 vault_ids and match their credentials against the session's MCP servers, so a stored static or oauth credential does serve as vault-backed MCP authentication; only environment_variable credentials are not yet placed, because the egress proxy ADR-058 §6 gives them is not built. Application vault references are also unavailable; praxis_vault_ref version bindings and secret writes with a vault source return 501, so creating a vault does not yet enable either consumer.
|
|
6951
9358
|
*/
|
|
6952
9359
|
export const vaultCreateVault = (options) => (options.client ?? client).post({
|
|
6953
9360
|
security: [{
|
|
@@ -7071,7 +9478,7 @@ export const vaultListSecrets = (options) => (options.client ?? client).get({
|
|
|
7071
9478
|
/**
|
|
7072
9479
|
* Create secret
|
|
7073
9480
|
*
|
|
7074
|
-
* Store a manually supplied token in an active vault for
|
|
9481
|
+
* Store a manually supplied token in an active vault. Omit allowed_hosts for name-based resolution only; host-based redemption never matches an empty host list. Unlike Anthropic credentials, this native operation takes name and value directly, with optional allowed_hosts and creates only static secrets; use praxis.vault.authorizations.create for OAuth. Its name must be unused by any non-archived secret in that vault; the response contains metadata but never the supplied value. Application praxis_vault_ref bindings declare vault_id and secret (the secret name), but currently return 501; do not copy the value into a plain-text binding or metadata as a substitute.
|
|
7075
9482
|
*/
|
|
7076
9483
|
export const vaultCreateSecret = (options) => (options.client ?? client).post({
|
|
7077
9484
|
security: [{
|
|
@@ -7089,7 +9496,7 @@ export const vaultCreateSecret = (options) => (options.client ?? client).post({
|
|
|
7089
9496
|
/**
|
|
7090
9497
|
* Import secrets
|
|
7091
9498
|
*
|
|
7092
|
-
* Import lines or dotenv text into an active vault, reporting success or failure for each entry. Existing names have their values replaced; their hosts change only when that line supplies allowed_hosts. Shared hosts apply only to newly created secrets.
|
|
9499
|
+
* Import lines or dotenv text into an active vault, reporting success or failure for each entry. Existing names have their values replaced; their hosts change only when that line supplies allowed_hosts. Shared hosts apply only to newly created secrets; if neither shared nor per-line hosts are supplied, new secrets use an empty host list for name-based resolution only.
|
|
7093
9500
|
*/
|
|
7094
9501
|
export const vaultImportSecrets = (options) => (options.client ?? client).post({
|
|
7095
9502
|
security: [{
|
|
@@ -7641,7 +10048,7 @@ export const ticketGetMilestones = (options) => (options?.client ?? client).get(
|
|
|
7641
10048
|
/**
|
|
7642
10049
|
* Create or add milestones
|
|
7643
10050
|
*
|
|
7644
|
-
* Create or add milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result.
|
|
10051
|
+
* Create or add milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
|
|
7645
10052
|
*/
|
|
7646
10053
|
export const ticketPostMilestones = (options) => (options.client ?? client).post({
|
|
7647
10054
|
security: [{
|
|
@@ -7663,7 +10070,7 @@ export const ticketPostMilestones = (options) => (options.client ?? client).post
|
|
|
7663
10070
|
/**
|
|
7664
10071
|
* Remove milestones
|
|
7665
10072
|
*
|
|
7666
|
-
* Remove milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result.
|
|
10073
|
+
* Remove milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
|
|
7667
10074
|
*/
|
|
7668
10075
|
export const ticketDeleteMilestonesNumber = (options) => (options.client ?? client).delete({
|
|
7669
10076
|
security: [{
|
|
@@ -7699,7 +10106,7 @@ export const ticketGetMilestonesNumber = (options) => (options.client ?? client)
|
|
|
7699
10106
|
/**
|
|
7700
10107
|
* Update milestones
|
|
7701
10108
|
*
|
|
7702
|
-
* Update milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result.
|
|
10109
|
+
* Update milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
|
|
7703
10110
|
*/
|
|
7704
10111
|
export const ticketPatchMilestonesNumber = (options) => (options.client ?? client).patch({
|
|
7705
10112
|
security: [{
|