@deepraxis/sdk 0.1.1-dev.2cf37ec → 0.1.1-dev.2d26f96
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 +298 -1
- package/README.md +2 -2
- package/dist/core/errors.d.ts +6 -0
- package/dist/core/errors.js +8 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +686 -47
- package/dist/generated/sdk.gen.js +2105 -632
- package/dist/generated/types.gen.d.ts +42177 -32067
- package/dist/operations.generated.d.ts +3990 -1230
- package/dist/operations.generated.js +4921 -1450
- package/dist/resources.generated.d.ts +207 -8
- package/dist/resources.generated.js +177 -0
- package/package.json +2 -2
|
@@ -513,6 +513,30 @@ export const computersFilesContent = (options) => (options.client ?? client).get
|
|
|
513
513
|
url: '/agent/v1/computers/{computer_id}/files/content',
|
|
514
514
|
...options
|
|
515
515
|
});
|
|
516
|
+
/**
|
|
517
|
+
* Convert a Computer Document to PDF
|
|
518
|
+
*
|
|
519
|
+
* Convert an Office document (docx, doc, ppt, pptx, rtf, odt; up to 16 MiB) to PDF inside a platform-owned ephemeral document sandbox, whatever machine family the computer itself runs on. Returns base64 PDF bytes.
|
|
520
|
+
*
|
|
521
|
+
* Praxis extension: the preview conversion endpoint. The browser never parses an untrusted document — LibreOffice runs only inside an ephemeral document-family sandbox and the converter instance is killed after use. The file stays tenant-owned; non-convertible types answer EXTENSION_NOT_CONVERTIBLE and a failed conversion answers CONVERSION_FAILED.
|
|
522
|
+
*/
|
|
523
|
+
export const computersFilesConvert = (options) => (options.client ?? client).post({
|
|
524
|
+
security: [{
|
|
525
|
+
key: 'BearerAuth',
|
|
526
|
+
scheme: 'bearer',
|
|
527
|
+
type: 'http'
|
|
528
|
+
}, {
|
|
529
|
+
key: 'ApiKeyAuth',
|
|
530
|
+
name: 'X-API-Key',
|
|
531
|
+
type: 'apiKey'
|
|
532
|
+
}],
|
|
533
|
+
url: '/agent/v1/computers/{computer_id}/files/convert',
|
|
534
|
+
...options,
|
|
535
|
+
headers: {
|
|
536
|
+
'Content-Type': 'application/json',
|
|
537
|
+
...options.headers
|
|
538
|
+
}
|
|
539
|
+
});
|
|
516
540
|
/**
|
|
517
541
|
* Connect computer
|
|
518
542
|
*
|
|
@@ -1092,7 +1116,7 @@ export const fileListFiles = (options) => (options?.client ?? client).get({
|
|
|
1092
1116
|
/**
|
|
1093
1117
|
* Upload file
|
|
1094
1118
|
*
|
|
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 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.
|
|
1119
|
+
* 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
1120
|
*/
|
|
1097
1121
|
export const fileCreateFile = (options) => (options.client ?? client).post({
|
|
1098
1122
|
...formDataBodySerializer,
|
|
@@ -1169,7 +1193,7 @@ export const fileRetrieveFileContent = (options) => (options.client ?? client).g
|
|
|
1169
1193
|
/**
|
|
1170
1194
|
* Create an upload
|
|
1171
1195
|
*
|
|
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
|
|
1196
|
+
* 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
1197
|
*/
|
|
1174
1198
|
export const fileCreateUpload = (options) => (options.client ?? client).post({
|
|
1175
1199
|
security: [{
|
|
@@ -1187,7 +1211,7 @@ export const fileCreateUpload = (options) => (options.client ?? client).post({
|
|
|
1187
1211
|
/**
|
|
1188
1212
|
* Add an upload part
|
|
1189
1213
|
*
|
|
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.
|
|
1214
|
+
* 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
1215
|
*/
|
|
1192
1216
|
export const fileAddUploadPart = (options) => (options.client ?? client).post({
|
|
1193
1217
|
...formDataBodySerializer,
|
|
@@ -1206,7 +1230,7 @@ export const fileAddUploadPart = (options) => (options.client ?? client).post({
|
|
|
1206
1230
|
/**
|
|
1207
1231
|
* Complete an upload
|
|
1208
1232
|
*
|
|
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.
|
|
1233
|
+
* 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
1234
|
*/
|
|
1211
1235
|
export const fileCompleteUpload = (options) => (options.client ?? client).post({
|
|
1212
1236
|
security: [{
|
|
@@ -1235,10 +1259,24 @@ export const fileCancelUpload = (options) => (options.client ?? client).post({
|
|
|
1235
1259
|
url: '/file/v1/uploads/{upload_id}/cancel',
|
|
1236
1260
|
...options
|
|
1237
1261
|
});
|
|
1262
|
+
/**
|
|
1263
|
+
* Retrieve an upload
|
|
1264
|
+
*
|
|
1265
|
+
* 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.
|
|
1266
|
+
*/
|
|
1267
|
+
export const fileRetrieveUpload = (options) => (options.client ?? client).get({
|
|
1268
|
+
security: [{
|
|
1269
|
+
key: 'BearerAuth',
|
|
1270
|
+
scheme: 'bearer',
|
|
1271
|
+
type: 'http'
|
|
1272
|
+
}],
|
|
1273
|
+
url: '/file/v1/uploads/{upload_id}',
|
|
1274
|
+
...options
|
|
1275
|
+
});
|
|
1238
1276
|
/**
|
|
1239
1277
|
* Create a one-time upload URL
|
|
1240
1278
|
*
|
|
1241
|
-
* Upload a local file of up to
|
|
1279
|
+
* 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"}.
|
|
1242
1280
|
*/
|
|
1243
1281
|
export const fileCreateSignedUpload = (options) => (options.client ?? client).post({
|
|
1244
1282
|
security: [{
|
|
@@ -1260,7 +1298,7 @@ export const fileCreateSignedUpload = (options) => (options.client ?? client).po
|
|
|
1260
1298
|
/**
|
|
1261
1299
|
* Create a download URL
|
|
1262
1300
|
*
|
|
1263
|
-
* 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
|
|
1301
|
+
* 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}.
|
|
1264
1302
|
*/
|
|
1265
1303
|
export const fileCreateContentUrl = (options) => (options.client ?? client).post({
|
|
1266
1304
|
security: [{
|
|
@@ -1282,7 +1320,7 @@ export const fileCreateContentUrl = (options) => (options.client ?? client).post
|
|
|
1282
1320
|
/**
|
|
1283
1321
|
* Revoke a file content link
|
|
1284
1322
|
*
|
|
1285
|
-
* 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
|
|
1323
|
+
* 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/>"}.
|
|
1286
1324
|
*/
|
|
1287
1325
|
export const fileRevokeContentLink = (options) => (options.client ?? client).post({
|
|
1288
1326
|
security: [{
|
|
@@ -1988,6 +2026,24 @@ export const countResponseInputTokens = (options) => (options.client ?? client).
|
|
|
1988
2026
|
...options.headers
|
|
1989
2027
|
}
|
|
1990
2028
|
});
|
|
2029
|
+
/**
|
|
2030
|
+
* List organization members
|
|
2031
|
+
*
|
|
2032
|
+
* 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.
|
|
2033
|
+
*/
|
|
2034
|
+
export const listOrganizationMembers = (options) => (options?.client ?? client).get({
|
|
2035
|
+
security: [{
|
|
2036
|
+
key: 'BearerAuth',
|
|
2037
|
+
scheme: 'bearer',
|
|
2038
|
+
type: 'http'
|
|
2039
|
+
}, {
|
|
2040
|
+
key: 'ApiKeyAuth',
|
|
2041
|
+
name: 'X-API-Key',
|
|
2042
|
+
type: 'apiKey'
|
|
2043
|
+
}],
|
|
2044
|
+
url: '/organization/v1/members',
|
|
2045
|
+
...options
|
|
2046
|
+
});
|
|
1991
2047
|
/**
|
|
1992
2048
|
* List your organization's feedback
|
|
1993
2049
|
*
|
|
@@ -5643,39 +5699,36 @@ export const canvasRestoreCanvas = (options) => (options.client ?? client).post(
|
|
|
5643
5699
|
}
|
|
5644
5700
|
});
|
|
5645
5701
|
/**
|
|
5646
|
-
* List
|
|
5702
|
+
* List records
|
|
5647
5703
|
*
|
|
5648
|
-
*
|
|
5704
|
+
* 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.
|
|
5649
5705
|
*/
|
|
5650
|
-
export const
|
|
5706
|
+
export const crmObjectsList = (options) => (options.client ?? client).get({
|
|
5707
|
+
querySerializer: { parameters: {
|
|
5708
|
+
associations: { array: { explode: false } },
|
|
5709
|
+
properties: { array: { explode: false } },
|
|
5710
|
+
propertiesWithHistory: { array: { explode: false } }
|
|
5711
|
+
} },
|
|
5651
5712
|
security: [{
|
|
5652
|
-
key: '
|
|
5713
|
+
key: 'crm-bearerAuth',
|
|
5653
5714
|
scheme: 'bearer',
|
|
5654
5715
|
type: 'http'
|
|
5655
|
-
}, {
|
|
5656
|
-
key: 'ApiKeyAuth',
|
|
5657
|
-
name: 'X-API-Key',
|
|
5658
|
-
type: 'apiKey'
|
|
5659
5716
|
}],
|
|
5660
|
-
url: '/
|
|
5717
|
+
url: '/crm/v1/objects/{objectType}',
|
|
5661
5718
|
...options
|
|
5662
5719
|
});
|
|
5663
5720
|
/**
|
|
5664
|
-
* Create
|
|
5721
|
+
* Create record
|
|
5665
5722
|
*
|
|
5666
|
-
* Create a
|
|
5723
|
+
* 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.
|
|
5667
5724
|
*/
|
|
5668
|
-
export const
|
|
5725
|
+
export const crmObjectsCreate = (options) => (options.client ?? client).post({
|
|
5669
5726
|
security: [{
|
|
5670
|
-
key: '
|
|
5727
|
+
key: 'crm-bearerAuth',
|
|
5671
5728
|
scheme: 'bearer',
|
|
5672
5729
|
type: 'http'
|
|
5673
|
-
}, {
|
|
5674
|
-
key: 'ApiKeyAuth',
|
|
5675
|
-
name: 'X-API-Key',
|
|
5676
|
-
type: 'apiKey'
|
|
5677
5730
|
}],
|
|
5678
|
-
url: '/
|
|
5731
|
+
url: '/crm/v1/objects/{objectType}',
|
|
5679
5732
|
...options,
|
|
5680
5733
|
headers: {
|
|
5681
5734
|
'Content-Type': 'application/json',
|
|
@@ -5683,57 +5736,50 @@ export const cutCreateProject = (options) => (options.client ?? client).post({
|
|
|
5683
5736
|
}
|
|
5684
5737
|
});
|
|
5685
5738
|
/**
|
|
5686
|
-
*
|
|
5739
|
+
* Archive record
|
|
5687
5740
|
*
|
|
5688
|
-
*
|
|
5741
|
+
* 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.
|
|
5689
5742
|
*/
|
|
5690
|
-
export const
|
|
5743
|
+
export const crmObjectsArchive = (options) => (options.client ?? client).delete({
|
|
5691
5744
|
security: [{
|
|
5692
|
-
key: '
|
|
5745
|
+
key: 'crm-bearerAuth',
|
|
5693
5746
|
scheme: 'bearer',
|
|
5694
5747
|
type: 'http'
|
|
5695
|
-
}, {
|
|
5696
|
-
key: 'ApiKeyAuth',
|
|
5697
|
-
name: 'X-API-Key',
|
|
5698
|
-
type: 'apiKey'
|
|
5699
5748
|
}],
|
|
5700
|
-
url: '/
|
|
5749
|
+
url: '/crm/v1/objects/{objectType}/{objectId}',
|
|
5701
5750
|
...options
|
|
5702
5751
|
});
|
|
5703
5752
|
/**
|
|
5704
|
-
* Retrieve
|
|
5753
|
+
* Retrieve record
|
|
5705
5754
|
*
|
|
5706
|
-
*
|
|
5755
|
+
* 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.
|
|
5707
5756
|
*/
|
|
5708
|
-
export const
|
|
5757
|
+
export const crmObjectsRetrieve = (options) => (options.client ?? client).get({
|
|
5758
|
+
querySerializer: { parameters: {
|
|
5759
|
+
associations: { array: { explode: false } },
|
|
5760
|
+
properties: { array: { explode: false } },
|
|
5761
|
+
propertiesWithHistory: { array: { explode: false } }
|
|
5762
|
+
} },
|
|
5709
5763
|
security: [{
|
|
5710
|
-
key: '
|
|
5764
|
+
key: 'crm-bearerAuth',
|
|
5711
5765
|
scheme: 'bearer',
|
|
5712
5766
|
type: 'http'
|
|
5713
|
-
}, {
|
|
5714
|
-
key: 'ApiKeyAuth',
|
|
5715
|
-
name: 'X-API-Key',
|
|
5716
|
-
type: 'apiKey'
|
|
5717
5767
|
}],
|
|
5718
|
-
url: '/
|
|
5768
|
+
url: '/crm/v1/objects/{objectType}/{objectId}',
|
|
5719
5769
|
...options
|
|
5720
5770
|
});
|
|
5721
5771
|
/**
|
|
5722
|
-
* Update
|
|
5772
|
+
* Update record
|
|
5723
5773
|
*
|
|
5724
|
-
* Change the
|
|
5774
|
+
* 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.
|
|
5725
5775
|
*/
|
|
5726
|
-
export const
|
|
5776
|
+
export const crmObjectsUpdate = (options) => (options.client ?? client).patch({
|
|
5727
5777
|
security: [{
|
|
5728
|
-
key: '
|
|
5778
|
+
key: 'crm-bearerAuth',
|
|
5729
5779
|
scheme: 'bearer',
|
|
5730
5780
|
type: 'http'
|
|
5731
|
-
}, {
|
|
5732
|
-
key: 'ApiKeyAuth',
|
|
5733
|
-
name: 'X-API-Key',
|
|
5734
|
-
type: 'apiKey'
|
|
5735
5781
|
}],
|
|
5736
|
-
url: '/
|
|
5782
|
+
url: '/crm/v1/objects/{objectType}/{objectId}',
|
|
5737
5783
|
...options,
|
|
5738
5784
|
headers: {
|
|
5739
5785
|
'Content-Type': 'application/json',
|
|
@@ -5741,45 +5787,35 @@ export const cutUpdateProject = (options) => (options.client ?? client).patch({
|
|
|
5741
5787
|
}
|
|
5742
5788
|
});
|
|
5743
5789
|
/**
|
|
5744
|
-
*
|
|
5790
|
+
* Search records
|
|
5745
5791
|
*
|
|
5746
|
-
*
|
|
5792
|
+
* 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.
|
|
5747
5793
|
*/
|
|
5748
|
-
export const
|
|
5794
|
+
export const crmObjectsSearch = (options) => (options.client ?? client).post({
|
|
5749
5795
|
security: [{
|
|
5750
|
-
key: '
|
|
5796
|
+
key: 'crm-bearerAuth',
|
|
5751
5797
|
scheme: 'bearer',
|
|
5752
5798
|
type: 'http'
|
|
5753
|
-
}, {
|
|
5754
|
-
key: 'ApiKeyAuth',
|
|
5755
|
-
name: 'X-API-Key',
|
|
5756
|
-
type: 'apiKey'
|
|
5757
5799
|
}],
|
|
5758
|
-
url: '/
|
|
5759
|
-
...options
|
|
5800
|
+
url: '/crm/v1/objects/{objectType}/search',
|
|
5801
|
+
...options,
|
|
5802
|
+
headers: {
|
|
5803
|
+
'Content-Type': 'application/json',
|
|
5804
|
+
...options.headers
|
|
5805
|
+
}
|
|
5760
5806
|
});
|
|
5761
5807
|
/**
|
|
5762
|
-
*
|
|
5808
|
+
* Batch read records
|
|
5763
5809
|
*
|
|
5764
|
-
*
|
|
5765
|
-
*
|
|
5766
|
-
* ```js
|
|
5767
|
-
* const t = AddTrack("video");
|
|
5768
|
-
* Insert(t, {type: "color", color: "#123456", start: 0, length: 3});
|
|
5769
|
-
* Print(t);
|
|
5770
|
-
* ```
|
|
5810
|
+
* 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.
|
|
5771
5811
|
*/
|
|
5772
|
-
export const
|
|
5812
|
+
export const crmObjectsBatchRead = (options) => (options.client ?? client).post({
|
|
5773
5813
|
security: [{
|
|
5774
|
-
key: '
|
|
5814
|
+
key: 'crm-bearerAuth',
|
|
5775
5815
|
scheme: 'bearer',
|
|
5776
5816
|
type: 'http'
|
|
5777
|
-
}, {
|
|
5778
|
-
key: 'ApiKeyAuth',
|
|
5779
|
-
name: 'X-API-Key',
|
|
5780
|
-
type: 'apiKey'
|
|
5781
5817
|
}],
|
|
5782
|
-
url: '/
|
|
5818
|
+
url: '/crm/v1/objects/{objectType}/batch/read',
|
|
5783
5819
|
...options,
|
|
5784
5820
|
headers: {
|
|
5785
5821
|
'Content-Type': 'application/json',
|
|
@@ -5787,75 +5823,71 @@ export const cutExecute = (options) => (options.client ?? client).post({
|
|
|
5787
5823
|
}
|
|
5788
5824
|
});
|
|
5789
5825
|
/**
|
|
5790
|
-
*
|
|
5826
|
+
* Batch create records
|
|
5791
5827
|
*
|
|
5792
|
-
*
|
|
5828
|
+
* 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.
|
|
5793
5829
|
*/
|
|
5794
|
-
export const
|
|
5830
|
+
export const crmObjectsBatchCreate = (options) => (options.client ?? client).post({
|
|
5795
5831
|
security: [{
|
|
5796
|
-
key: '
|
|
5832
|
+
key: 'crm-bearerAuth',
|
|
5797
5833
|
scheme: 'bearer',
|
|
5798
5834
|
type: 'http'
|
|
5799
|
-
}, {
|
|
5800
|
-
key: 'ApiKeyAuth',
|
|
5801
|
-
name: 'X-API-Key',
|
|
5802
|
-
type: 'apiKey'
|
|
5803
5835
|
}],
|
|
5804
|
-
url: '/
|
|
5805
|
-
...options
|
|
5836
|
+
url: '/crm/v1/objects/{objectType}/batch/create',
|
|
5837
|
+
...options,
|
|
5838
|
+
headers: {
|
|
5839
|
+
'Content-Type': 'application/json',
|
|
5840
|
+
...options.headers
|
|
5841
|
+
}
|
|
5806
5842
|
});
|
|
5807
5843
|
/**
|
|
5808
|
-
*
|
|
5844
|
+
* Batch update records
|
|
5809
5845
|
*
|
|
5810
|
-
*
|
|
5846
|
+
* 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.
|
|
5811
5847
|
*/
|
|
5812
|
-
export const
|
|
5848
|
+
export const crmObjectsBatchUpdate = (options) => (options.client ?? client).post({
|
|
5813
5849
|
security: [{
|
|
5814
|
-
key: '
|
|
5850
|
+
key: 'crm-bearerAuth',
|
|
5815
5851
|
scheme: 'bearer',
|
|
5816
5852
|
type: 'http'
|
|
5817
|
-
}, {
|
|
5818
|
-
key: 'ApiKeyAuth',
|
|
5819
|
-
name: 'X-API-Key',
|
|
5820
|
-
type: 'apiKey'
|
|
5821
5853
|
}],
|
|
5822
|
-
url: '/
|
|
5823
|
-
...options
|
|
5854
|
+
url: '/crm/v1/objects/{objectType}/batch/update',
|
|
5855
|
+
...options,
|
|
5856
|
+
headers: {
|
|
5857
|
+
'Content-Type': 'application/json',
|
|
5858
|
+
...options.headers
|
|
5859
|
+
}
|
|
5824
5860
|
});
|
|
5825
5861
|
/**
|
|
5826
|
-
*
|
|
5862
|
+
* Batch upsert records
|
|
5827
5863
|
*
|
|
5828
|
-
*
|
|
5864
|
+
* 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.
|
|
5829
5865
|
*/
|
|
5830
|
-
export const
|
|
5866
|
+
export const crmObjectsBatchUpsert = (options) => (options.client ?? client).post({
|
|
5831
5867
|
security: [{
|
|
5832
|
-
key: '
|
|
5868
|
+
key: 'crm-bearerAuth',
|
|
5833
5869
|
scheme: 'bearer',
|
|
5834
5870
|
type: 'http'
|
|
5835
|
-
}, {
|
|
5836
|
-
key: 'ApiKeyAuth',
|
|
5837
|
-
name: 'X-API-Key',
|
|
5838
|
-
type: 'apiKey'
|
|
5839
5871
|
}],
|
|
5840
|
-
url: '/
|
|
5841
|
-
...options
|
|
5872
|
+
url: '/crm/v1/objects/{objectType}/batch/upsert',
|
|
5873
|
+
...options,
|
|
5874
|
+
headers: {
|
|
5875
|
+
'Content-Type': 'application/json',
|
|
5876
|
+
...options.headers
|
|
5877
|
+
}
|
|
5842
5878
|
});
|
|
5843
5879
|
/**
|
|
5844
|
-
*
|
|
5880
|
+
* Batch archive records
|
|
5845
5881
|
*
|
|
5846
|
-
*
|
|
5882
|
+
* 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.
|
|
5847
5883
|
*/
|
|
5848
|
-
export const
|
|
5884
|
+
export const crmObjectsBatchArchive = (options) => (options.client ?? client).post({
|
|
5849
5885
|
security: [{
|
|
5850
|
-
key: '
|
|
5886
|
+
key: 'crm-bearerAuth',
|
|
5851
5887
|
scheme: 'bearer',
|
|
5852
5888
|
type: 'http'
|
|
5853
|
-
}, {
|
|
5854
|
-
key: 'ApiKeyAuth',
|
|
5855
|
-
name: 'X-API-Key',
|
|
5856
|
-
type: 'apiKey'
|
|
5857
5889
|
}],
|
|
5858
|
-
url: '/
|
|
5890
|
+
url: '/crm/v1/objects/{objectType}/batch/archive',
|
|
5859
5891
|
...options,
|
|
5860
5892
|
headers: {
|
|
5861
5893
|
'Content-Type': 'application/json',
|
|
@@ -5863,39 +5895,31 @@ export const cutCreateAnalysis = (options) => (options.client ?? client).post({
|
|
|
5863
5895
|
}
|
|
5864
5896
|
});
|
|
5865
5897
|
/**
|
|
5866
|
-
* List
|
|
5898
|
+
* List properties
|
|
5867
5899
|
*
|
|
5868
|
-
*
|
|
5900
|
+
* 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.
|
|
5869
5901
|
*/
|
|
5870
|
-
export const
|
|
5902
|
+
export const crmPropertiesList = (options) => (options.client ?? client).get({
|
|
5871
5903
|
security: [{
|
|
5872
|
-
key: '
|
|
5904
|
+
key: 'crm-bearerAuth',
|
|
5873
5905
|
scheme: 'bearer',
|
|
5874
5906
|
type: 'http'
|
|
5875
|
-
}, {
|
|
5876
|
-
key: 'ApiKeyAuth',
|
|
5877
|
-
name: 'X-API-Key',
|
|
5878
|
-
type: 'apiKey'
|
|
5879
5907
|
}],
|
|
5880
|
-
url: '/
|
|
5908
|
+
url: '/crm/v1/properties/{objectType}',
|
|
5881
5909
|
...options
|
|
5882
5910
|
});
|
|
5883
5911
|
/**
|
|
5884
|
-
*
|
|
5912
|
+
* Create property
|
|
5885
5913
|
*
|
|
5886
|
-
*
|
|
5914
|
+
* 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.
|
|
5887
5915
|
*/
|
|
5888
|
-
export const
|
|
5916
|
+
export const crmPropertiesCreate = (options) => (options.client ?? client).post({
|
|
5889
5917
|
security: [{
|
|
5890
|
-
key: '
|
|
5918
|
+
key: 'crm-bearerAuth',
|
|
5891
5919
|
scheme: 'bearer',
|
|
5892
5920
|
type: 'http'
|
|
5893
|
-
}, {
|
|
5894
|
-
key: 'ApiKeyAuth',
|
|
5895
|
-
name: 'X-API-Key',
|
|
5896
|
-
type: 'apiKey'
|
|
5897
5921
|
}],
|
|
5898
|
-
url: '/
|
|
5922
|
+
url: '/crm/v1/properties/{objectType}',
|
|
5899
5923
|
...options,
|
|
5900
5924
|
headers: {
|
|
5901
5925
|
'Content-Type': 'application/json',
|
|
@@ -5903,39 +5927,45 @@ export const cutCreateBinding = (options) => (options.client ?? client).post({
|
|
|
5903
5927
|
}
|
|
5904
5928
|
});
|
|
5905
5929
|
/**
|
|
5906
|
-
*
|
|
5930
|
+
* Archive property
|
|
5907
5931
|
*
|
|
5908
|
-
*
|
|
5932
|
+
* 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.
|
|
5909
5933
|
*/
|
|
5910
|
-
export const
|
|
5934
|
+
export const crmPropertiesArchive = (options) => (options.client ?? client).delete({
|
|
5911
5935
|
security: [{
|
|
5912
|
-
key: '
|
|
5936
|
+
key: 'crm-bearerAuth',
|
|
5913
5937
|
scheme: 'bearer',
|
|
5914
5938
|
type: 'http'
|
|
5915
|
-
}, {
|
|
5916
|
-
key: 'ApiKeyAuth',
|
|
5917
|
-
name: 'X-API-Key',
|
|
5918
|
-
type: 'apiKey'
|
|
5919
5939
|
}],
|
|
5920
|
-
url: '/
|
|
5940
|
+
url: '/crm/v1/properties/{objectType}/{propertyName}',
|
|
5921
5941
|
...options
|
|
5922
5942
|
});
|
|
5923
5943
|
/**
|
|
5924
|
-
*
|
|
5944
|
+
* Retrieve property
|
|
5925
5945
|
*
|
|
5926
|
-
*
|
|
5946
|
+
* 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.
|
|
5927
5947
|
*/
|
|
5928
|
-
export const
|
|
5948
|
+
export const crmPropertiesRetrieve = (options) => (options.client ?? client).get({
|
|
5929
5949
|
security: [{
|
|
5930
|
-
key: '
|
|
5950
|
+
key: 'crm-bearerAuth',
|
|
5931
5951
|
scheme: 'bearer',
|
|
5932
5952
|
type: 'http'
|
|
5933
|
-
}, {
|
|
5934
|
-
key: 'ApiKeyAuth',
|
|
5935
|
-
name: 'X-API-Key',
|
|
5936
|
-
type: 'apiKey'
|
|
5937
5953
|
}],
|
|
5938
|
-
url: '/
|
|
5954
|
+
url: '/crm/v1/properties/{objectType}/{propertyName}',
|
|
5955
|
+
...options
|
|
5956
|
+
});
|
|
5957
|
+
/**
|
|
5958
|
+
* Update property
|
|
5959
|
+
*
|
|
5960
|
+
* 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.
|
|
5961
|
+
*/
|
|
5962
|
+
export const crmPropertiesUpdate = (options) => (options.client ?? client).patch({
|
|
5963
|
+
security: [{
|
|
5964
|
+
key: 'crm-bearerAuth',
|
|
5965
|
+
scheme: 'bearer',
|
|
5966
|
+
type: 'http'
|
|
5967
|
+
}],
|
|
5968
|
+
url: '/crm/v1/properties/{objectType}/{propertyName}',
|
|
5939
5969
|
...options,
|
|
5940
5970
|
headers: {
|
|
5941
5971
|
'Content-Type': 'application/json',
|
|
@@ -5943,39 +5973,31 @@ export const cutImportMedia = (options) => (options.client ?? client).post({
|
|
|
5943
5973
|
}
|
|
5944
5974
|
});
|
|
5945
5975
|
/**
|
|
5946
|
-
* List
|
|
5976
|
+
* List property groups
|
|
5947
5977
|
*
|
|
5948
|
-
*
|
|
5978
|
+
* 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.
|
|
5949
5979
|
*/
|
|
5950
|
-
export const
|
|
5980
|
+
export const crmPropertiesGroupsList = (options) => (options.client ?? client).get({
|
|
5951
5981
|
security: [{
|
|
5952
|
-
key: '
|
|
5982
|
+
key: 'crm-bearerAuth',
|
|
5953
5983
|
scheme: 'bearer',
|
|
5954
5984
|
type: 'http'
|
|
5955
|
-
}, {
|
|
5956
|
-
key: 'ApiKeyAuth',
|
|
5957
|
-
name: 'X-API-Key',
|
|
5958
|
-
type: 'apiKey'
|
|
5959
5985
|
}],
|
|
5960
|
-
url: '/
|
|
5986
|
+
url: '/crm/v1/properties/{objectType}/groups',
|
|
5961
5987
|
...options
|
|
5962
5988
|
});
|
|
5963
5989
|
/**
|
|
5964
|
-
* Create
|
|
5990
|
+
* Create property group
|
|
5965
5991
|
*
|
|
5966
|
-
*
|
|
5992
|
+
* 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.
|
|
5967
5993
|
*/
|
|
5968
|
-
export const
|
|
5994
|
+
export const crmPropertiesGroupsCreate = (options) => (options.client ?? client).post({
|
|
5969
5995
|
security: [{
|
|
5970
|
-
key: '
|
|
5996
|
+
key: 'crm-bearerAuth',
|
|
5971
5997
|
scheme: 'bearer',
|
|
5972
5998
|
type: 'http'
|
|
5973
|
-
}, {
|
|
5974
|
-
key: 'ApiKeyAuth',
|
|
5975
|
-
name: 'X-API-Key',
|
|
5976
|
-
type: 'apiKey'
|
|
5977
5999
|
}],
|
|
5978
|
-
url: '/
|
|
6000
|
+
url: '/crm/v1/properties/{objectType}/groups',
|
|
5979
6001
|
...options,
|
|
5980
6002
|
headers: {
|
|
5981
6003
|
'Content-Type': 'application/json',
|
|
@@ -5983,75 +6005,31 @@ export const cutCreateExport = (options) => (options.client ?? client).post({
|
|
|
5983
6005
|
}
|
|
5984
6006
|
});
|
|
5985
6007
|
/**
|
|
5986
|
-
*
|
|
6008
|
+
* List pipelines
|
|
5987
6009
|
*
|
|
5988
|
-
*
|
|
6010
|
+
* 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\"]"}.
|
|
5989
6011
|
*/
|
|
5990
|
-
export const
|
|
6012
|
+
export const crmPipelinesList = (options) => (options.client ?? client).get({
|
|
5991
6013
|
security: [{
|
|
5992
|
-
key: '
|
|
6014
|
+
key: 'crm-bearerAuth',
|
|
5993
6015
|
scheme: 'bearer',
|
|
5994
6016
|
type: 'http'
|
|
5995
|
-
}, {
|
|
5996
|
-
key: 'ApiKeyAuth',
|
|
5997
|
-
name: 'X-API-Key',
|
|
5998
|
-
type: 'apiKey'
|
|
5999
6017
|
}],
|
|
6000
|
-
url: '/
|
|
6018
|
+
url: '/crm/v1/pipelines/{objectType}',
|
|
6001
6019
|
...options
|
|
6002
6020
|
});
|
|
6003
6021
|
/**
|
|
6004
|
-
*
|
|
6022
|
+
* Create pipeline
|
|
6005
6023
|
*
|
|
6006
|
-
*
|
|
6024
|
+
* 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\"]"}.
|
|
6007
6025
|
*/
|
|
6008
|
-
export const
|
|
6026
|
+
export const crmPipelinesCreate = (options) => (options.client ?? client).post({
|
|
6009
6027
|
security: [{
|
|
6010
|
-
key: '
|
|
6028
|
+
key: 'crm-bearerAuth',
|
|
6011
6029
|
scheme: 'bearer',
|
|
6012
6030
|
type: 'http'
|
|
6013
|
-
}, {
|
|
6014
|
-
key: 'ApiKeyAuth',
|
|
6015
|
-
name: 'X-API-Key',
|
|
6016
|
-
type: 'apiKey'
|
|
6017
6031
|
}],
|
|
6018
|
-
url: '/
|
|
6019
|
-
...options
|
|
6020
|
-
});
|
|
6021
|
-
/**
|
|
6022
|
-
* List saved versions
|
|
6023
|
-
*
|
|
6024
|
-
* 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.
|
|
6025
|
-
*/
|
|
6026
|
-
export const cutListVersions = (options) => (options.client ?? client).get({
|
|
6027
|
-
security: [{
|
|
6028
|
-
key: 'BearerAuth',
|
|
6029
|
-
scheme: 'bearer',
|
|
6030
|
-
type: 'http'
|
|
6031
|
-
}, {
|
|
6032
|
-
key: 'ApiKeyAuth',
|
|
6033
|
-
name: 'X-API-Key',
|
|
6034
|
-
type: 'apiKey'
|
|
6035
|
-
}],
|
|
6036
|
-
url: '/cut/v1/projects/{project_id}/versions',
|
|
6037
|
-
...options
|
|
6038
|
-
});
|
|
6039
|
-
/**
|
|
6040
|
-
* Save project version
|
|
6041
|
-
*
|
|
6042
|
-
* 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.
|
|
6043
|
-
*/
|
|
6044
|
-
export const cutCreateVersion = (options) => (options.client ?? client).post({
|
|
6045
|
-
security: [{
|
|
6046
|
-
key: 'BearerAuth',
|
|
6047
|
-
scheme: 'bearer',
|
|
6048
|
-
type: 'http'
|
|
6049
|
-
}, {
|
|
6050
|
-
key: 'ApiKeyAuth',
|
|
6051
|
-
name: 'X-API-Key',
|
|
6052
|
-
type: 'apiKey'
|
|
6053
|
-
}],
|
|
6054
|
-
url: '/cut/v1/projects/{project_id}/versions',
|
|
6032
|
+
url: '/crm/v1/pipelines/{objectType}',
|
|
6055
6033
|
...options,
|
|
6056
6034
|
headers: {
|
|
6057
6035
|
'Content-Type': 'application/json',
|
|
@@ -6059,49 +6037,45 @@ export const cutCreateVersion = (options) => (options.client ?? client).post({
|
|
|
6059
6037
|
}
|
|
6060
6038
|
});
|
|
6061
6039
|
/**
|
|
6062
|
-
*
|
|
6040
|
+
* Archive pipeline
|
|
6063
6041
|
*
|
|
6064
|
-
*
|
|
6042
|
+
* 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\"]"}.
|
|
6065
6043
|
*/
|
|
6066
|
-
export const
|
|
6044
|
+
export const crmPipelinesArchive = (options) => (options.client ?? client).delete({
|
|
6067
6045
|
security: [{
|
|
6068
|
-
key: '
|
|
6046
|
+
key: 'crm-bearerAuth',
|
|
6069
6047
|
scheme: 'bearer',
|
|
6070
6048
|
type: 'http'
|
|
6071
|
-
}, {
|
|
6072
|
-
key: 'ApiKeyAuth',
|
|
6073
|
-
name: 'X-API-Key',
|
|
6074
|
-
type: 'apiKey'
|
|
6075
6049
|
}],
|
|
6076
|
-
url: '/
|
|
6050
|
+
url: '/crm/v1/pipelines/{objectType}/{pipelineId}',
|
|
6077
6051
|
...options
|
|
6078
6052
|
});
|
|
6079
6053
|
/**
|
|
6080
|
-
*
|
|
6054
|
+
* Retrieve pipeline
|
|
6081
6055
|
*
|
|
6082
|
-
*
|
|
6056
|
+
* 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\"]"}.
|
|
6083
6057
|
*/
|
|
6084
|
-
export const
|
|
6058
|
+
export const crmPipelinesRetrieve = (options) => (options.client ?? client).get({
|
|
6085
6059
|
security: [{
|
|
6086
|
-
key: '
|
|
6060
|
+
key: 'crm-bearerAuth',
|
|
6087
6061
|
scheme: 'bearer',
|
|
6088
6062
|
type: 'http'
|
|
6089
6063
|
}],
|
|
6090
|
-
url: '/
|
|
6064
|
+
url: '/crm/v1/pipelines/{objectType}/{pipelineId}',
|
|
6091
6065
|
...options
|
|
6092
6066
|
});
|
|
6093
6067
|
/**
|
|
6094
|
-
*
|
|
6068
|
+
* Update pipeline
|
|
6095
6069
|
*
|
|
6096
|
-
*
|
|
6070
|
+
* 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\"]"}.
|
|
6097
6071
|
*/
|
|
6098
|
-
export const
|
|
6072
|
+
export const crmPipelinesUpdate = (options) => (options.client ?? client).patch({
|
|
6099
6073
|
security: [{
|
|
6100
|
-
key: '
|
|
6074
|
+
key: 'crm-bearerAuth',
|
|
6101
6075
|
scheme: 'bearer',
|
|
6102
6076
|
type: 'http'
|
|
6103
6077
|
}],
|
|
6104
|
-
url: '/
|
|
6078
|
+
url: '/crm/v1/pipelines/{objectType}/{pipelineId}',
|
|
6105
6079
|
...options,
|
|
6106
6080
|
headers: {
|
|
6107
6081
|
'Content-Type': 'application/json',
|
|
@@ -6109,45 +6083,49 @@ export const databaseCreateDatabase = (options) => (options.client ?? client).po
|
|
|
6109
6083
|
}
|
|
6110
6084
|
});
|
|
6111
6085
|
/**
|
|
6112
|
-
*
|
|
6086
|
+
* Create pipeline stage
|
|
6113
6087
|
*
|
|
6114
|
-
*
|
|
6088
|
+
* 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\"]"}.
|
|
6115
6089
|
*/
|
|
6116
|
-
export const
|
|
6090
|
+
export const crmPipelinesStagesCreate = (options) => (options.client ?? client).post({
|
|
6117
6091
|
security: [{
|
|
6118
|
-
key: '
|
|
6092
|
+
key: 'crm-bearerAuth',
|
|
6119
6093
|
scheme: 'bearer',
|
|
6120
6094
|
type: 'http'
|
|
6121
6095
|
}],
|
|
6122
|
-
url: '/
|
|
6123
|
-
...options
|
|
6096
|
+
url: '/crm/v1/pipelines/{objectType}/{pipelineId}/stages',
|
|
6097
|
+
...options,
|
|
6098
|
+
headers: {
|
|
6099
|
+
'Content-Type': 'application/json',
|
|
6100
|
+
...options.headers
|
|
6101
|
+
}
|
|
6124
6102
|
});
|
|
6125
6103
|
/**
|
|
6126
|
-
*
|
|
6104
|
+
* Archive pipeline stage
|
|
6127
6105
|
*
|
|
6128
|
-
*
|
|
6106
|
+
* 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\"]"}.
|
|
6129
6107
|
*/
|
|
6130
|
-
export const
|
|
6108
|
+
export const crmPipelinesStagesArchive = (options) => (options.client ?? client).delete({
|
|
6131
6109
|
security: [{
|
|
6132
|
-
key: '
|
|
6110
|
+
key: 'crm-bearerAuth',
|
|
6133
6111
|
scheme: 'bearer',
|
|
6134
6112
|
type: 'http'
|
|
6135
6113
|
}],
|
|
6136
|
-
url: '/
|
|
6114
|
+
url: '/crm/v1/pipelines/{objectType}/{pipelineId}/stages/{stageId}',
|
|
6137
6115
|
...options
|
|
6138
6116
|
});
|
|
6139
6117
|
/**
|
|
6140
|
-
* Update
|
|
6118
|
+
* Update pipeline stage
|
|
6141
6119
|
*
|
|
6142
|
-
*
|
|
6120
|
+
* 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\"]"}.
|
|
6143
6121
|
*/
|
|
6144
|
-
export const
|
|
6122
|
+
export const crmPipelinesStagesUpdate = (options) => (options.client ?? client).patch({
|
|
6145
6123
|
security: [{
|
|
6146
|
-
key: '
|
|
6124
|
+
key: 'crm-bearerAuth',
|
|
6147
6125
|
scheme: 'bearer',
|
|
6148
6126
|
type: 'http'
|
|
6149
6127
|
}],
|
|
6150
|
-
url: '/
|
|
6128
|
+
url: '/crm/v1/pipelines/{objectType}/{pipelineId}/stages/{stageId}',
|
|
6151
6129
|
...options,
|
|
6152
6130
|
headers: {
|
|
6153
6131
|
'Content-Type': 'application/json',
|
|
@@ -6155,59 +6133,45 @@ export const databaseUpdateDatabase = (options) => (options.client ?? client).pa
|
|
|
6155
6133
|
}
|
|
6156
6134
|
});
|
|
6157
6135
|
/**
|
|
6158
|
-
*
|
|
6159
|
-
*
|
|
6160
|
-
* 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.
|
|
6161
|
-
*/
|
|
6162
|
-
export const databaseRestoreDatabase = (options) => (options.client ?? client).post({
|
|
6163
|
-
security: [{
|
|
6164
|
-
key: 'database-bearerAuth',
|
|
6165
|
-
scheme: 'bearer',
|
|
6166
|
-
type: 'http'
|
|
6167
|
-
}],
|
|
6168
|
-
url: '/database/v1/databases/{database_id}/restore',
|
|
6169
|
-
...options
|
|
6170
|
-
});
|
|
6171
|
-
/**
|
|
6172
|
-
* Permanently purge database
|
|
6136
|
+
* List record associations
|
|
6173
6137
|
*
|
|
6174
|
-
*
|
|
6138
|
+
* 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.
|
|
6175
6139
|
*/
|
|
6176
|
-
export const
|
|
6140
|
+
export const crmAssociationsList = (options) => (options.client ?? client).get({
|
|
6177
6141
|
security: [{
|
|
6178
|
-
key: '
|
|
6142
|
+
key: 'crm-bearerAuth',
|
|
6179
6143
|
scheme: 'bearer',
|
|
6180
6144
|
type: 'http'
|
|
6181
6145
|
}],
|
|
6182
|
-
url: '/
|
|
6146
|
+
url: '/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}',
|
|
6183
6147
|
...options
|
|
6184
6148
|
});
|
|
6185
6149
|
/**
|
|
6186
|
-
*
|
|
6150
|
+
* Remove association
|
|
6187
6151
|
*
|
|
6188
|
-
*
|
|
6152
|
+
* 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.
|
|
6189
6153
|
*/
|
|
6190
|
-
export const
|
|
6154
|
+
export const crmAssociationsRemove = (options) => (options.client ?? client).delete({
|
|
6191
6155
|
security: [{
|
|
6192
|
-
key: '
|
|
6156
|
+
key: 'crm-bearerAuth',
|
|
6193
6157
|
scheme: 'bearer',
|
|
6194
6158
|
type: 'http'
|
|
6195
6159
|
}],
|
|
6196
|
-
url: '/
|
|
6160
|
+
url: '/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}',
|
|
6197
6161
|
...options
|
|
6198
6162
|
});
|
|
6199
6163
|
/**
|
|
6200
|
-
* Create
|
|
6164
|
+
* Create labelled association
|
|
6201
6165
|
*
|
|
6202
|
-
*
|
|
6166
|
+
* 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.
|
|
6203
6167
|
*/
|
|
6204
|
-
export const
|
|
6168
|
+
export const crmAssociationsCreate = (options) => (options.client ?? client).put({
|
|
6205
6169
|
security: [{
|
|
6206
|
-
key: '
|
|
6170
|
+
key: 'crm-bearerAuth',
|
|
6207
6171
|
scheme: 'bearer',
|
|
6208
6172
|
type: 'http'
|
|
6209
6173
|
}],
|
|
6210
|
-
url: '/
|
|
6174
|
+
url: '/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}',
|
|
6211
6175
|
...options,
|
|
6212
6176
|
headers: {
|
|
6213
6177
|
'Content-Type': 'application/json',
|
|
@@ -6215,45 +6179,45 @@ export const databaseCreateTable = (options) => (options.client ?? client).post(
|
|
|
6215
6179
|
}
|
|
6216
6180
|
});
|
|
6217
6181
|
/**
|
|
6218
|
-
*
|
|
6182
|
+
* Create default association
|
|
6219
6183
|
*
|
|
6220
|
-
*
|
|
6184
|
+
* 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.
|
|
6221
6185
|
*/
|
|
6222
|
-
export const
|
|
6186
|
+
export const crmAssociationsCreateDefault = (options) => (options.client ?? client).put({
|
|
6223
6187
|
security: [{
|
|
6224
|
-
key: '
|
|
6188
|
+
key: 'crm-bearerAuth',
|
|
6225
6189
|
scheme: 'bearer',
|
|
6226
6190
|
type: 'http'
|
|
6227
6191
|
}],
|
|
6228
|
-
url: '/
|
|
6192
|
+
url: '/crm/v1/objects/{objectType}/{objectId}/associations/default/{toObjectType}/{toObjectId}',
|
|
6229
6193
|
...options
|
|
6230
6194
|
});
|
|
6231
6195
|
/**
|
|
6232
|
-
*
|
|
6196
|
+
* List object schemas
|
|
6233
6197
|
*
|
|
6234
|
-
*
|
|
6198
|
+
* 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.
|
|
6235
6199
|
*/
|
|
6236
|
-
export const
|
|
6200
|
+
export const crmSchemasList = (options) => (options?.client ?? client).get({
|
|
6237
6201
|
security: [{
|
|
6238
|
-
key: '
|
|
6202
|
+
key: 'crm-bearerAuth',
|
|
6239
6203
|
scheme: 'bearer',
|
|
6240
6204
|
type: 'http'
|
|
6241
6205
|
}],
|
|
6242
|
-
url: '/
|
|
6206
|
+
url: '/crm/v1/schemas',
|
|
6243
6207
|
...options
|
|
6244
6208
|
});
|
|
6245
6209
|
/**
|
|
6246
|
-
*
|
|
6210
|
+
* Create object schema
|
|
6247
6211
|
*
|
|
6248
|
-
*
|
|
6212
|
+
* 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.
|
|
6249
6213
|
*/
|
|
6250
|
-
export const
|
|
6214
|
+
export const crmSchemasCreate = (options) => (options.client ?? client).post({
|
|
6251
6215
|
security: [{
|
|
6252
|
-
key: '
|
|
6216
|
+
key: 'crm-bearerAuth',
|
|
6253
6217
|
scheme: 'bearer',
|
|
6254
6218
|
type: 'http'
|
|
6255
6219
|
}],
|
|
6256
|
-
url: '/
|
|
6220
|
+
url: '/crm/v1/schemas',
|
|
6257
6221
|
...options,
|
|
6258
6222
|
headers: {
|
|
6259
6223
|
'Content-Type': 'application/json',
|
|
@@ -6261,17 +6225,17 @@ export const databaseUpdateTable = (options) => (options.client ?? client).patch
|
|
|
6261
6225
|
}
|
|
6262
6226
|
});
|
|
6263
6227
|
/**
|
|
6264
|
-
*
|
|
6228
|
+
* Qualify lead
|
|
6265
6229
|
*
|
|
6266
|
-
*
|
|
6230
|
+
* 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.
|
|
6267
6231
|
*/
|
|
6268
|
-
export const
|
|
6232
|
+
export const crmLeadsQualify = (options) => (options.client ?? client).post({
|
|
6269
6233
|
security: [{
|
|
6270
|
-
key: '
|
|
6234
|
+
key: 'crm-bearerAuth',
|
|
6271
6235
|
scheme: 'bearer',
|
|
6272
6236
|
type: 'http'
|
|
6273
6237
|
}],
|
|
6274
|
-
url: '/
|
|
6238
|
+
url: '/crm/v1/leads/{leadId}:qualify',
|
|
6275
6239
|
...options,
|
|
6276
6240
|
headers: {
|
|
6277
6241
|
'Content-Type': 'application/json',
|
|
@@ -6279,125 +6243,143 @@ export const databaseAddField = (options) => (options.client ?? client).post({
|
|
|
6279
6243
|
}
|
|
6280
6244
|
});
|
|
6281
6245
|
/**
|
|
6282
|
-
*
|
|
6246
|
+
* Revert change set
|
|
6283
6247
|
*
|
|
6284
|
-
*
|
|
6248
|
+
* 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.
|
|
6285
6249
|
*/
|
|
6286
|
-
export const
|
|
6250
|
+
export const crmChangesRevert = (options) => (options.client ?? client).post({
|
|
6287
6251
|
security: [{
|
|
6288
|
-
key: '
|
|
6252
|
+
key: 'crm-bearerAuth',
|
|
6289
6253
|
scheme: 'bearer',
|
|
6290
6254
|
type: 'http'
|
|
6291
6255
|
}],
|
|
6292
|
-
url: '/
|
|
6256
|
+
url: '/crm/v1/changes/{changeSetId}:revert',
|
|
6293
6257
|
...options
|
|
6294
6258
|
});
|
|
6295
6259
|
/**
|
|
6296
|
-
*
|
|
6260
|
+
* Retrieve record layout
|
|
6297
6261
|
*
|
|
6298
|
-
*
|
|
6262
|
+
* 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.
|
|
6299
6263
|
*/
|
|
6300
|
-
export const
|
|
6264
|
+
export const crmLayoutsRetrieve = (options) => (options.client ?? client).get({
|
|
6301
6265
|
security: [{
|
|
6302
|
-
key: '
|
|
6266
|
+
key: 'crm-bearerAuth',
|
|
6303
6267
|
scheme: 'bearer',
|
|
6304
6268
|
type: 'http'
|
|
6305
6269
|
}],
|
|
6306
|
-
url: '/
|
|
6307
|
-
...options
|
|
6308
|
-
headers: {
|
|
6309
|
-
'Content-Type': 'application/json',
|
|
6310
|
-
...options.headers
|
|
6311
|
-
}
|
|
6270
|
+
url: '/crm/v1/layouts/{objectType}',
|
|
6271
|
+
...options
|
|
6312
6272
|
});
|
|
6313
6273
|
/**
|
|
6314
|
-
*
|
|
6274
|
+
* Update record layout
|
|
6315
6275
|
*
|
|
6316
|
-
*
|
|
6276
|
+
* 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.
|
|
6317
6277
|
*/
|
|
6318
|
-
export const
|
|
6278
|
+
export const crmLayoutsUpdate = (options) => (options.client ?? client).put({
|
|
6319
6279
|
security: [{
|
|
6320
|
-
key: '
|
|
6280
|
+
key: 'crm-bearerAuth',
|
|
6321
6281
|
scheme: 'bearer',
|
|
6322
6282
|
type: 'http'
|
|
6323
6283
|
}],
|
|
6324
|
-
url: '/
|
|
6325
|
-
...options
|
|
6284
|
+
url: '/crm/v1/layouts/{objectType}',
|
|
6285
|
+
...options,
|
|
6286
|
+
headers: {
|
|
6287
|
+
'Content-Type': 'application/json',
|
|
6288
|
+
...options.headers
|
|
6289
|
+
}
|
|
6326
6290
|
});
|
|
6327
6291
|
/**
|
|
6328
|
-
*
|
|
6292
|
+
* List projects
|
|
6329
6293
|
*
|
|
6330
|
-
*
|
|
6294
|
+
* 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.
|
|
6331
6295
|
*/
|
|
6332
|
-
export const
|
|
6296
|
+
export const cutListProjects = (options) => (options?.client ?? client).get({
|
|
6333
6297
|
security: [{
|
|
6334
|
-
key: '
|
|
6298
|
+
key: 'BearerAuth',
|
|
6335
6299
|
scheme: 'bearer',
|
|
6336
6300
|
type: 'http'
|
|
6301
|
+
}, {
|
|
6302
|
+
key: 'ApiKeyAuth',
|
|
6303
|
+
name: 'X-API-Key',
|
|
6304
|
+
type: 'apiKey'
|
|
6337
6305
|
}],
|
|
6338
|
-
url: '/
|
|
6306
|
+
url: '/cut/v1/projects',
|
|
6339
6307
|
...options
|
|
6340
6308
|
});
|
|
6341
6309
|
/**
|
|
6342
|
-
*
|
|
6310
|
+
* Create project
|
|
6343
6311
|
*
|
|
6344
|
-
*
|
|
6312
|
+
* 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.
|
|
6345
6313
|
*/
|
|
6346
|
-
export const
|
|
6314
|
+
export const cutCreateProject = (options) => (options.client ?? client).post({
|
|
6347
6315
|
security: [{
|
|
6348
|
-
key: '
|
|
6316
|
+
key: 'BearerAuth',
|
|
6349
6317
|
scheme: 'bearer',
|
|
6350
6318
|
type: 'http'
|
|
6319
|
+
}, {
|
|
6320
|
+
key: 'ApiKeyAuth',
|
|
6321
|
+
name: 'X-API-Key',
|
|
6322
|
+
type: 'apiKey'
|
|
6351
6323
|
}],
|
|
6352
|
-
url: '/
|
|
6353
|
-
...options
|
|
6324
|
+
url: '/cut/v1/projects',
|
|
6325
|
+
...options,
|
|
6326
|
+
headers: {
|
|
6327
|
+
'Content-Type': 'application/json',
|
|
6328
|
+
...options.headers
|
|
6329
|
+
}
|
|
6354
6330
|
});
|
|
6355
6331
|
/**
|
|
6356
|
-
*
|
|
6332
|
+
* Delete project
|
|
6357
6333
|
*
|
|
6358
|
-
*
|
|
6334
|
+
* 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.
|
|
6359
6335
|
*/
|
|
6360
|
-
export const
|
|
6336
|
+
export const cutDeleteProject = (options) => (options.client ?? client).delete({
|
|
6361
6337
|
security: [{
|
|
6362
|
-
key: '
|
|
6338
|
+
key: 'BearerAuth',
|
|
6363
6339
|
scheme: 'bearer',
|
|
6364
6340
|
type: 'http'
|
|
6341
|
+
}, {
|
|
6342
|
+
key: 'ApiKeyAuth',
|
|
6343
|
+
name: 'X-API-Key',
|
|
6344
|
+
type: 'apiKey'
|
|
6365
6345
|
}],
|
|
6366
|
-
url: '/
|
|
6346
|
+
url: '/cut/v1/projects/{project_id}',
|
|
6367
6347
|
...options
|
|
6368
6348
|
});
|
|
6369
6349
|
/**
|
|
6370
|
-
*
|
|
6350
|
+
* Retrieve project
|
|
6371
6351
|
*
|
|
6372
|
-
*
|
|
6352
|
+
* 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.
|
|
6373
6353
|
*/
|
|
6374
|
-
export const
|
|
6354
|
+
export const cutRetrieveProject = (options) => (options.client ?? client).get({
|
|
6375
6355
|
security: [{
|
|
6376
|
-
key: '
|
|
6356
|
+
key: 'BearerAuth',
|
|
6377
6357
|
scheme: 'bearer',
|
|
6378
6358
|
type: 'http'
|
|
6359
|
+
}, {
|
|
6360
|
+
key: 'ApiKeyAuth',
|
|
6361
|
+
name: 'X-API-Key',
|
|
6362
|
+
type: 'apiKey'
|
|
6379
6363
|
}],
|
|
6380
|
-
url: '/
|
|
6381
|
-
...options
|
|
6382
|
-
headers: {
|
|
6383
|
-
'Content-Type': 'application/json',
|
|
6384
|
-
...options.headers
|
|
6385
|
-
}
|
|
6364
|
+
url: '/cut/v1/projects/{project_id}',
|
|
6365
|
+
...options
|
|
6386
6366
|
});
|
|
6387
6367
|
/**
|
|
6388
|
-
*
|
|
6368
|
+
* Update project metadata
|
|
6389
6369
|
*
|
|
6390
|
-
*
|
|
6391
|
-
* Rows are filled to the union of their keys with null; send Prefer: missing=default to use field defaults for missing keys.
|
|
6392
|
-
* 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.
|
|
6370
|
+
* 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.
|
|
6393
6371
|
*/
|
|
6394
|
-
export const
|
|
6372
|
+
export const cutUpdateProject = (options) => (options.client ?? client).patch({
|
|
6395
6373
|
security: [{
|
|
6396
|
-
key: '
|
|
6374
|
+
key: 'BearerAuth',
|
|
6397
6375
|
scheme: 'bearer',
|
|
6398
6376
|
type: 'http'
|
|
6377
|
+
}, {
|
|
6378
|
+
key: 'ApiKeyAuth',
|
|
6379
|
+
name: 'X-API-Key',
|
|
6380
|
+
type: 'apiKey'
|
|
6399
6381
|
}],
|
|
6400
|
-
url: '/
|
|
6382
|
+
url: '/cut/v1/projects/{project_id}',
|
|
6401
6383
|
...options,
|
|
6402
6384
|
headers: {
|
|
6403
6385
|
'Content-Type': 'application/json',
|
|
@@ -6405,77 +6387,1502 @@ export const databaseInsert = (options) => (options.client ?? client).post({
|
|
|
6405
6387
|
}
|
|
6406
6388
|
});
|
|
6407
6389
|
/**
|
|
6408
|
-
*
|
|
6390
|
+
* Restore deleted project
|
|
6409
6391
|
*
|
|
6410
|
-
*
|
|
6392
|
+
* 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.
|
|
6411
6393
|
*/
|
|
6412
|
-
export const
|
|
6394
|
+
export const cutUndeleteProject = (options) => (options.client ?? client).post({
|
|
6413
6395
|
security: [{
|
|
6414
|
-
key: '
|
|
6396
|
+
key: 'BearerAuth',
|
|
6415
6397
|
scheme: 'bearer',
|
|
6416
6398
|
type: 'http'
|
|
6399
|
+
}, {
|
|
6400
|
+
key: 'ApiKeyAuth',
|
|
6401
|
+
name: 'X-API-Key',
|
|
6402
|
+
type: 'apiKey'
|
|
6417
6403
|
}],
|
|
6418
|
-
url: '/
|
|
6404
|
+
url: '/cut/v1/projects/{project_id}:undelete',
|
|
6419
6405
|
...options
|
|
6420
6406
|
});
|
|
6421
6407
|
/**
|
|
6422
|
-
*
|
|
6408
|
+
* Execute editing script
|
|
6409
|
+
*
|
|
6410
|
+
* 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);`
|
|
6411
|
+
*
|
|
6412
|
+
* <!-- cut-reference:start -->
|
|
6413
|
+
* ### Script function, field and error reference
|
|
6414
|
+
*
|
|
6415
|
+
* Every script function, clip field and error code has its own section, read one at a time:
|
|
6416
|
+
*
|
|
6417
|
+
* ```
|
|
6418
|
+
* codemode.describe("praxis.cut.script.<Name>") // one function: signature, arguments, return, errors, example
|
|
6419
|
+
* codemode.describe("praxis.cut.fields.<name>") // one field: type, unit, range, default, where writable
|
|
6420
|
+
* codemode.describe("praxis.cut.errors.<CODE>") // one code: meaning, causes, fix
|
|
6421
|
+
* codemode.describe("praxis.cut.script") // names, one page at a time
|
|
6422
|
+
* ```
|
|
6423
|
+
*
|
|
6424
|
+
* Published at https://docs.deepraxis.com/docs/developers/cut/script-reference with one anchor per entry. Names below omit the `praxis.cut.<kind>.` prefix.
|
|
6425
|
+
*
|
|
6426
|
+
* #### Script functions (script)
|
|
6427
|
+
*
|
|
6428
|
+
* - `GetTimeline` — Duration, tracks, joins; clips are under `items`.
|
|
6429
|
+
* - `GetItem` — One clip's compact view, by id.
|
|
6430
|
+
* - `FindItems` — Visit every clip with its track; collect results.
|
|
6431
|
+
* - `GetMedia` — Media metadata; `durationUs` is microseconds.
|
|
6432
|
+
* - `GetTranscript` — Transcript words in source microseconds.
|
|
6433
|
+
* - `GetAnalysis` — Silence, filler or scene segments.
|
|
6434
|
+
* - `ListTransitions` — Join transition kinds and parameters.
|
|
6435
|
+
* - `ListEffects` — Visual-effect catalog and parameters.
|
|
6436
|
+
* - `ListAnimations` — Animation presets by phase and target.
|
|
6437
|
+
* - `ListFonts` — Font families, weights and scripts.
|
|
6438
|
+
* - `ListTextStyles` — Text style presets for `style.preset`.
|
|
6439
|
+
* - `ListTextTemplates` — Multi-layer templates and their slots.
|
|
6440
|
+
* - `Insert` — Add a clip; a track never overlaps itself.
|
|
6441
|
+
* - `Append` — Add a clip at the end of a track.
|
|
6442
|
+
* - `Update` — Change named fields; the rest stay.
|
|
6443
|
+
* - `SetSpeed` — Change rate, keeping source or duration.
|
|
6444
|
+
* - `Delete` — Remove a clip. There is no `Remove`.
|
|
6445
|
+
* - `Join` — Overlap clips; followers shift, track shortens.
|
|
6446
|
+
* - `UpdateJoin` — Change a join's length or effect.
|
|
6447
|
+
* - `DeleteJoin` — Remove a join; restore the butt cut.
|
|
6448
|
+
* - `Split` — Cut a clip in two at a time.
|
|
6449
|
+
* - `Trim` — Move one clip edge by seconds.
|
|
6450
|
+
* - `Move` — Set a clip's start or track.
|
|
6451
|
+
* - `RippleDeleteRange` — Cut a time range and close the gap.
|
|
6452
|
+
* - `AddTrack` — Add a video, audio or caption track.
|
|
6453
|
+
* - `UpdateTrack` — Change a track's name, lock, gain or role.
|
|
6454
|
+
* - `DeleteTrack` — Remove a track and its clips.
|
|
6455
|
+
* - `SetSettings` — Change canvas, frame rate or background.
|
|
6456
|
+
* - `AddCaptionsFromTranscript` — Captions from a clip's kept words.
|
|
6457
|
+
* - `InsertTemplate` — Insert a template and fill its slots.
|
|
6458
|
+
* - `AlignCaptions` — Rebuild captions from text punctuation.
|
|
6459
|
+
* - `ImportCaptions` — Import SRT or WebVTT onto captions.
|
|
6460
|
+
* - `ExportCaptions` — Export captions as SRT or WebVTT.
|
|
6461
|
+
* - `SetMarker` — Label a timeline position.
|
|
6462
|
+
* - `Print` — Append values to the result's `prints`.
|
|
6463
|
+
* - `Preview` — Up to 8 frames as inline PNG data URLs.
|
|
6464
|
+
*
|
|
6465
|
+
* #### Fields (fields)
|
|
6466
|
+
*
|
|
6467
|
+
* - `type` — Clip kind; decides which fields apply.
|
|
6468
|
+
* - `start` — Clip start in seconds; snaps to frames.
|
|
6469
|
+
* - `length` — Duration; optional for video and audio.
|
|
6470
|
+
* - `media` — Source `{ libraryId, assetId }`.
|
|
6471
|
+
* - `sourceIn` — First source second kept; default 0.
|
|
6472
|
+
* - `sourceOut` — Exclusive source end; read-only.
|
|
6473
|
+
* - `text` — Text of a text or caption clip.
|
|
6474
|
+
* - `color` — Solid colour of a color clip.
|
|
6475
|
+
* - `shape` — Shape clip kind: `rect` or `ellipse`.
|
|
6476
|
+
* - `width` — Shape width, a fraction of canvas width.
|
|
6477
|
+
* - `height` — Shape height, a fraction of canvas height.
|
|
6478
|
+
* - `radius` — Rect corner rounding, in 1080-height px.
|
|
6479
|
+
* - `fill` — Shape or text paint: colour or gradient.
|
|
6480
|
+
* - `stroke` — Shape outline: colour and width.
|
|
6481
|
+
* - `transform` — Position, scale, rotation, opacity, crop, blur.
|
|
6482
|
+
* - `fit` — contain, cover, fill or none.
|
|
6483
|
+
* - `blend` — Layer blend mode; null clears.
|
|
6484
|
+
* - `style` — Text styling: font, fill, strokes, glow, position.
|
|
6485
|
+
* - `style.position` — top, middle or bottom; omit it, never null.
|
|
6486
|
+
* - `playback` — Rate, direction, audio policy, or freeze.
|
|
6487
|
+
* - `volumeDb` — Audio level in dB; 0 is source level.
|
|
6488
|
+
* - `gain` — Keyframed audio level in dB.
|
|
6489
|
+
* - `fadeIn` — Fade-in seconds at the clip's start.
|
|
6490
|
+
* - `fadeOut` — Fade-out seconds at the clip's end.
|
|
6491
|
+
* - `duck` — Lower this clip while another track plays.
|
|
6492
|
+
* - `animate` — Transform keyframes; `at` is clip-relative seconds.
|
|
6493
|
+
* - `reveal` — Per-character, word or line reveal timing.
|
|
6494
|
+
* - `animation` — Preset slots `{ in, out, loop }`; null clears.
|
|
6495
|
+
* - `effects` — Effect stack, at most 8; null clears.
|
|
6496
|
+
* - `transitionIn` — Entrance effect: kind plus seconds.
|
|
6497
|
+
* - `transitionOut` — Exit effect: kind plus seconds.
|
|
6498
|
+
* - `mask` — Shape, path or track matte.
|
|
6499
|
+
* - `words` — Caption words with clip-local times.
|
|
6500
|
+
*
|
|
6501
|
+
* #### Error codes (errors)
|
|
6502
|
+
*
|
|
6503
|
+
* - `JOIN_CONFLICT` — A join is invalid or blocks this edit.
|
|
6504
|
+
* - `INVALID_TRANSITION` — Bad transition kind, parameter or length.
|
|
6505
|
+
* - `INVALID_STYLE` — A style value is out of range.
|
|
6506
|
+
* - `INVALID_MASK` — A mask definition is malformed.
|
|
6507
|
+
* - `MASK_IN_USE` — The edit would break a live mask.
|
|
6508
|
+
* - `TOO_MANY_MASKS` — At most 16 masks per project.
|
|
6509
|
+
* - `RATE_OUT_OF_RANGE` — A rate is outside 0.25-4.
|
|
6510
|
+
* - `UNSUPPORTED_PLAYBACK` — Reverse without an explicit mute.
|
|
6511
|
+
* - `INVALID_PLAYBACK` — A playback object is partial or malformed.
|
|
6512
|
+
* - `UNKNOWN_FONT` — The family is not in `ListFonts()`.
|
|
6513
|
+
* - `UNKNOWN_FIELD` — The field name is not accepted here.
|
|
6514
|
+
* - `UNKNOWN_TEXT_STYLE` — `style.preset` is not in the catalog.
|
|
6515
|
+
* - `TEXT_STYLE_TARGET_MISMATCH` — Preset on the wrong clip type.
|
|
6516
|
+
* - `CAPTION_ALIGN_LOW_CONFIDENCE` — Alignment confidence too low; nothing changed.
|
|
6517
|
+
* - `OVERLAP` — Two clips on one track would share time.
|
|
6518
|
+
* - `OUT_OF_SOURCE` — The clip would read past its source.
|
|
6519
|
+
* - `LOCKED_TRACK` — The edit targets a locked track.
|
|
6520
|
+
* - `UNBOUND_LIBRARY` — The library is not bound to the project.
|
|
6521
|
+
* - `TRACK_KIND_MISMATCH` — The clip type does not fit the track.
|
|
6522
|
+
* - `NOT_FOUND` — The named id is not in this project.
|
|
6523
|
+
* - `TOO_SHORT` — The result would be under one frame.
|
|
6524
|
+
* - `INVALID_DUCK` — Bad `duck` level or a missing track.
|
|
6525
|
+
* - `UNKNOWN_ANIMATION` — The preset is not in `ListAnimations()`.
|
|
6526
|
+
* - `INVALID_ANIMATION_PARAM` — Bad slot, parameter or keyframe limit.
|
|
6527
|
+
* - `ANIMATION_TOO_LONG` — In plus out exceed the clip length.
|
|
6528
|
+
* - `ANIMATION_TARGET_MISMATCH` — The preset does not match the clip type.
|
|
6529
|
+
* - `ANIMATION_PHASE_MISMATCH` — The preset is in the wrong slot.
|
|
6530
|
+
* - `UNKNOWN_EFFECT` — The effect is not in `ListEffects()`.
|
|
6531
|
+
* - `INVALID_EFFECT_PARAM` — Bad effect parameter or keyframe.
|
|
6532
|
+
* - `TOO_MANY_EFFECTS` — More than 8 effects on one clip.
|
|
6533
|
+
* - `PROJECT_NOT_FOUND` — No visible project has this id.
|
|
6534
|
+
* - `EXPORT_NOT_FOUND` — No such export in this project.
|
|
6535
|
+
* - `VERSION_NOT_FOUND` — No saved version has this revision.
|
|
6536
|
+
* - `LIBRARY_NOT_FOUND` — The library is missing or invisible.
|
|
6537
|
+
* - `BINDING_INVALID` — The binding request is malformed.
|
|
6538
|
+
* - `BINDING_IN_USE` — Clips still use this library's assets.
|
|
6539
|
+
* - `NOTHING_TO_UNDO` — No earlier revision to return to.
|
|
6540
|
+
* - `NOTHING_TO_REDO` — No undone revision is waiting.
|
|
6541
|
+
* - `UNDO_CONFLICT` — The revision to undo is no longer head.
|
|
6542
|
+
* - `REVISION_CONFLICT` — The project moved; your revision is stale.
|
|
6543
|
+
* - `CUT_BUSY` — The project is busy; retry.
|
|
6544
|
+
* - `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.
|
|
6545
|
+
* - `SCRIPT_ERROR` — The script threw or did not parse.
|
|
6546
|
+
* - `SCRIPT_LIMIT` — An execute budget was exceeded.
|
|
6547
|
+
* - `OPS_REJECTED` — An op failed; the whole edit rolled back.
|
|
6548
|
+
* - `EDIT_EXPIRED` — The saved edit id is over ten minutes old.
|
|
6549
|
+
* - `MEDIA_OFFLINE` — The asset cannot be fetched right now.
|
|
6550
|
+
* - `MEDIA_UNAVAILABLE` — The asset is not usable for rendering.
|
|
6551
|
+
* - `MEDIA_IMPORT_FAILED` — Importing media failed.
|
|
6552
|
+
* - `FRAME_OUT_OF_RANGE` — The preview time is outside the project.
|
|
6553
|
+
* - `PROJECT_TOO_LARGE` — The project exceeds the size limit.
|
|
6554
|
+
* - `RESPONSE_TOO_LARGE` — The response would exceed its budget.
|
|
6555
|
+
* - `EXPORT_FAILED` — The render failed; read `error.cause`.
|
|
6556
|
+
* - `INVALID_PARAMS` — The request is malformed.
|
|
6557
|
+
* - `PERMISSION_DENIED` — This credential may not do that here.
|
|
6558
|
+
* - `NOT_IMPLEMENTED` — Not available on this platform yet.
|
|
6559
|
+
* - `INTERNAL` — Unexpected failure; retry with the request id.
|
|
6560
|
+
* <!-- cut-reference:end -->
|
|
6423
6561
|
*
|
|
6424
|
-
* 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. Unlike OpenAI vector stores, each file is limited to 100000000 bytes and each account to 100 active/nondeleted stores. Minimal body: {"name":"Refund policies"}.
|
|
6425
6562
|
*/
|
|
6426
|
-
export const
|
|
6563
|
+
export const cutExecute = (options) => (options.client ?? client).post({
|
|
6564
|
+
security: [{
|
|
6565
|
+
key: 'BearerAuth',
|
|
6566
|
+
scheme: 'bearer',
|
|
6567
|
+
type: 'http'
|
|
6568
|
+
}, {
|
|
6569
|
+
key: 'ApiKeyAuth',
|
|
6570
|
+
name: 'X-API-Key',
|
|
6571
|
+
type: 'apiKey'
|
|
6572
|
+
}],
|
|
6573
|
+
url: '/cut/v1/projects/{project_id}:execute',
|
|
6574
|
+
...options,
|
|
6575
|
+
headers: {
|
|
6576
|
+
'Content-Type': 'application/json',
|
|
6577
|
+
...options.headers
|
|
6578
|
+
}
|
|
6579
|
+
});
|
|
6580
|
+
/**
|
|
6581
|
+
* Read editing state
|
|
6582
|
+
*
|
|
6583
|
+
* 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.
|
|
6584
|
+
*/
|
|
6585
|
+
export const cutRetrieveState = (options) => (options.client ?? client).get({
|
|
6586
|
+
security: [{
|
|
6587
|
+
key: 'BearerAuth',
|
|
6588
|
+
scheme: 'bearer',
|
|
6589
|
+
type: 'http'
|
|
6590
|
+
}, {
|
|
6591
|
+
key: 'ApiKeyAuth',
|
|
6592
|
+
name: 'X-API-Key',
|
|
6593
|
+
type: 'apiKey'
|
|
6594
|
+
}],
|
|
6595
|
+
url: '/cut/v1/projects/{project_id}/state',
|
|
6596
|
+
...options
|
|
6597
|
+
});
|
|
6598
|
+
/**
|
|
6599
|
+
* Read project timeline
|
|
6600
|
+
*
|
|
6601
|
+
* 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.
|
|
6602
|
+
*/
|
|
6603
|
+
export const cutRetrieveTimeline = (options) => (options.client ?? client).get({
|
|
6604
|
+
security: [{
|
|
6605
|
+
key: 'BearerAuth',
|
|
6606
|
+
scheme: 'bearer',
|
|
6607
|
+
type: 'http'
|
|
6608
|
+
}, {
|
|
6609
|
+
key: 'ApiKeyAuth',
|
|
6610
|
+
name: 'X-API-Key',
|
|
6611
|
+
type: 'apiKey'
|
|
6612
|
+
}],
|
|
6613
|
+
url: '/cut/v1/projects/{project_id}/timeline',
|
|
6614
|
+
...options
|
|
6615
|
+
});
|
|
6616
|
+
/**
|
|
6617
|
+
* Render preview frames
|
|
6618
|
+
*
|
|
6619
|
+
* 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.
|
|
6620
|
+
*/
|
|
6621
|
+
export const cutListFrames = (options) => (options.client ?? client).get({
|
|
6622
|
+
security: [{
|
|
6623
|
+
key: 'BearerAuth',
|
|
6624
|
+
scheme: 'bearer',
|
|
6625
|
+
type: 'http'
|
|
6626
|
+
}, {
|
|
6627
|
+
key: 'ApiKeyAuth',
|
|
6628
|
+
name: 'X-API-Key',
|
|
6629
|
+
type: 'apiKey'
|
|
6630
|
+
}],
|
|
6631
|
+
url: '/cut/v1/projects/{project_id}/frames',
|
|
6632
|
+
...options
|
|
6633
|
+
});
|
|
6634
|
+
/**
|
|
6635
|
+
* Analyze project media
|
|
6636
|
+
*
|
|
6637
|
+
* 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.
|
|
6638
|
+
*/
|
|
6639
|
+
export const cutCreateAnalysis = (options) => (options.client ?? client).post({
|
|
6640
|
+
security: [{
|
|
6641
|
+
key: 'BearerAuth',
|
|
6642
|
+
scheme: 'bearer',
|
|
6643
|
+
type: 'http'
|
|
6644
|
+
}, {
|
|
6645
|
+
key: 'ApiKeyAuth',
|
|
6646
|
+
name: 'X-API-Key',
|
|
6647
|
+
type: 'apiKey'
|
|
6648
|
+
}],
|
|
6649
|
+
url: '/cut/v1/projects/{project_id}/analysis',
|
|
6650
|
+
...options,
|
|
6651
|
+
headers: {
|
|
6652
|
+
'Content-Type': 'application/json',
|
|
6653
|
+
...options.headers
|
|
6654
|
+
}
|
|
6655
|
+
});
|
|
6656
|
+
/**
|
|
6657
|
+
* List library bindings
|
|
6658
|
+
*
|
|
6659
|
+
* 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.
|
|
6660
|
+
*/
|
|
6661
|
+
export const cutListBindings = (options) => (options.client ?? client).get({
|
|
6662
|
+
security: [{
|
|
6663
|
+
key: 'BearerAuth',
|
|
6664
|
+
scheme: 'bearer',
|
|
6665
|
+
type: 'http'
|
|
6666
|
+
}, {
|
|
6667
|
+
key: 'ApiKeyAuth',
|
|
6668
|
+
name: 'X-API-Key',
|
|
6669
|
+
type: 'apiKey'
|
|
6670
|
+
}],
|
|
6671
|
+
url: '/cut/v1/projects/{project_id}/bindings',
|
|
6672
|
+
...options
|
|
6673
|
+
});
|
|
6674
|
+
/**
|
|
6675
|
+
* Bind media library
|
|
6676
|
+
*
|
|
6677
|
+
* 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.
|
|
6678
|
+
*/
|
|
6679
|
+
export const cutCreateBinding = (options) => (options.client ?? client).post({
|
|
6680
|
+
security: [{
|
|
6681
|
+
key: 'BearerAuth',
|
|
6682
|
+
scheme: 'bearer',
|
|
6683
|
+
type: 'http'
|
|
6684
|
+
}, {
|
|
6685
|
+
key: 'ApiKeyAuth',
|
|
6686
|
+
name: 'X-API-Key',
|
|
6687
|
+
type: 'apiKey'
|
|
6688
|
+
}],
|
|
6689
|
+
url: '/cut/v1/projects/{project_id}/bindings',
|
|
6690
|
+
...options,
|
|
6691
|
+
headers: {
|
|
6692
|
+
'Content-Type': 'application/json',
|
|
6693
|
+
...options.headers
|
|
6694
|
+
}
|
|
6695
|
+
});
|
|
6696
|
+
/**
|
|
6697
|
+
* Remove library binding
|
|
6698
|
+
*
|
|
6699
|
+
* 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.
|
|
6700
|
+
*/
|
|
6701
|
+
export const cutDeleteBinding = (options) => (options.client ?? client).delete({
|
|
6702
|
+
security: [{
|
|
6703
|
+
key: 'BearerAuth',
|
|
6704
|
+
scheme: 'bearer',
|
|
6705
|
+
type: 'http'
|
|
6706
|
+
}, {
|
|
6707
|
+
key: 'ApiKeyAuth',
|
|
6708
|
+
name: 'X-API-Key',
|
|
6709
|
+
type: 'apiKey'
|
|
6710
|
+
}],
|
|
6711
|
+
url: '/cut/v1/projects/{project_id}/bindings/{name}',
|
|
6712
|
+
...options
|
|
6713
|
+
});
|
|
6714
|
+
/**
|
|
6715
|
+
* Import project media
|
|
6716
|
+
*
|
|
6717
|
+
* 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.
|
|
6718
|
+
*/
|
|
6719
|
+
export const cutImportMedia = (options) => (options.client ?? client).post({
|
|
6720
|
+
security: [{
|
|
6721
|
+
key: 'BearerAuth',
|
|
6722
|
+
scheme: 'bearer',
|
|
6723
|
+
type: 'http'
|
|
6724
|
+
}, {
|
|
6725
|
+
key: 'ApiKeyAuth',
|
|
6726
|
+
name: 'X-API-Key',
|
|
6727
|
+
type: 'apiKey'
|
|
6728
|
+
}],
|
|
6729
|
+
url: '/cut/v1/projects/{project_id}/media:import',
|
|
6730
|
+
...options,
|
|
6731
|
+
headers: {
|
|
6732
|
+
'Content-Type': 'application/json',
|
|
6733
|
+
...options.headers
|
|
6734
|
+
}
|
|
6735
|
+
});
|
|
6736
|
+
/**
|
|
6737
|
+
* List project exports
|
|
6738
|
+
*
|
|
6739
|
+
* 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.
|
|
6740
|
+
*/
|
|
6741
|
+
export const cutListExports = (options) => (options.client ?? client).get({
|
|
6742
|
+
security: [{
|
|
6743
|
+
key: 'BearerAuth',
|
|
6744
|
+
scheme: 'bearer',
|
|
6745
|
+
type: 'http'
|
|
6746
|
+
}, {
|
|
6747
|
+
key: 'ApiKeyAuth',
|
|
6748
|
+
name: 'X-API-Key',
|
|
6749
|
+
type: 'apiKey'
|
|
6750
|
+
}],
|
|
6751
|
+
url: '/cut/v1/projects/{project_id}/exports',
|
|
6752
|
+
...options
|
|
6753
|
+
});
|
|
6754
|
+
/**
|
|
6755
|
+
* Create video export
|
|
6756
|
+
*
|
|
6757
|
+
* 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.
|
|
6758
|
+
*/
|
|
6759
|
+
export const cutCreateExport = (options) => (options.client ?? client).post({
|
|
6760
|
+
security: [{
|
|
6761
|
+
key: 'BearerAuth',
|
|
6762
|
+
scheme: 'bearer',
|
|
6763
|
+
type: 'http'
|
|
6764
|
+
}, {
|
|
6765
|
+
key: 'ApiKeyAuth',
|
|
6766
|
+
name: 'X-API-Key',
|
|
6767
|
+
type: 'apiKey'
|
|
6768
|
+
}],
|
|
6769
|
+
url: '/cut/v1/projects/{project_id}/exports',
|
|
6770
|
+
...options,
|
|
6771
|
+
headers: {
|
|
6772
|
+
'Content-Type': 'application/json',
|
|
6773
|
+
...options.headers
|
|
6774
|
+
}
|
|
6775
|
+
});
|
|
6776
|
+
/**
|
|
6777
|
+
* Create draft range render
|
|
6778
|
+
*
|
|
6779
|
+
* Render one interval of the timeline so you can hear or look at how that passage comes out, without publishing anything to a media library. Choose kind audio for the mixed soundtrack as an .m4a file, or kind video for a draft-quality .mp4 with picture and sound. from and to are seconds on the project clock and must satisfy 0 <= from < to, to <= the timeline duration, and to - from <= 120; a longer passage is requested in several 分段请求 ranges and joined by the caller. The result is a temporary file (purpose user_data) that expires 24 hours after it is stored and is never imported into a library, so it is not a deliverable and carries no cut-export tag. HTTP 202 only accepts the job; poll praxis.cut.renders.retrieve using the returned id until status is done or failed, then read url while it lasts. A draft also bills like a draft export, by rendered seconds. Each project runs at most 2 draft renders at a time, a budget separate from its exports; a third answers HTTP 429 CUT_BUSY and the same call succeeds once one finishes.
|
|
6780
|
+
*/
|
|
6781
|
+
export const cutCreateRender = (options) => (options.client ?? client).post({
|
|
6782
|
+
security: [{
|
|
6783
|
+
key: 'BearerAuth',
|
|
6784
|
+
scheme: 'bearer',
|
|
6785
|
+
type: 'http'
|
|
6786
|
+
}, {
|
|
6787
|
+
key: 'ApiKeyAuth',
|
|
6788
|
+
name: 'X-API-Key',
|
|
6789
|
+
type: 'apiKey'
|
|
6790
|
+
}],
|
|
6791
|
+
url: '/cut/v1/projects/{project_id}/renders',
|
|
6792
|
+
...options,
|
|
6793
|
+
headers: {
|
|
6794
|
+
'Content-Type': 'application/json',
|
|
6795
|
+
...options.headers
|
|
6796
|
+
}
|
|
6797
|
+
});
|
|
6798
|
+
/**
|
|
6799
|
+
* Retrieve draft range render
|
|
6800
|
+
*
|
|
6801
|
+
* Poll a draft render id returned by projects.renders.create to see whether the interval is ready, then read url while it lasts. queued and rendering are in progress; done provides file_id and a short-lived url for the rendered .m4a or .mp4; failed provides error. Only done yields a url, and the file behind it disappears 24 hours after it was stored, so retrieve again when the link has expired.
|
|
6802
|
+
*/
|
|
6803
|
+
export const cutRetrieveRender = (options) => (options.client ?? client).get({
|
|
6804
|
+
security: [{
|
|
6805
|
+
key: 'BearerAuth',
|
|
6806
|
+
scheme: 'bearer',
|
|
6807
|
+
type: 'http'
|
|
6808
|
+
}, {
|
|
6809
|
+
key: 'ApiKeyAuth',
|
|
6810
|
+
name: 'X-API-Key',
|
|
6811
|
+
type: 'apiKey'
|
|
6812
|
+
}],
|
|
6813
|
+
url: '/cut/v1/renders/{render_id}',
|
|
6814
|
+
...options
|
|
6815
|
+
});
|
|
6816
|
+
/**
|
|
6817
|
+
* Retrieve video export
|
|
6818
|
+
*
|
|
6819
|
+
* 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.
|
|
6820
|
+
*/
|
|
6821
|
+
export const cutRetrieveExport = (options) => (options.client ?? client).get({
|
|
6822
|
+
security: [{
|
|
6823
|
+
key: 'BearerAuth',
|
|
6824
|
+
scheme: 'bearer',
|
|
6825
|
+
type: 'http'
|
|
6826
|
+
}, {
|
|
6827
|
+
key: 'ApiKeyAuth',
|
|
6828
|
+
name: 'X-API-Key',
|
|
6829
|
+
type: 'apiKey'
|
|
6830
|
+
}],
|
|
6831
|
+
url: '/cut/v1/exports/{export_id}',
|
|
6832
|
+
...options
|
|
6833
|
+
});
|
|
6834
|
+
/**
|
|
6835
|
+
* Cancel video export
|
|
6836
|
+
*
|
|
6837
|
+
* 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.
|
|
6838
|
+
*/
|
|
6839
|
+
export const cutCancelExport = (options) => (options.client ?? client).post({
|
|
6840
|
+
security: [{
|
|
6841
|
+
key: 'BearerAuth',
|
|
6842
|
+
scheme: 'bearer',
|
|
6843
|
+
type: 'http'
|
|
6844
|
+
}, {
|
|
6845
|
+
key: 'ApiKeyAuth',
|
|
6846
|
+
name: 'X-API-Key',
|
|
6847
|
+
type: 'apiKey'
|
|
6848
|
+
}],
|
|
6849
|
+
url: '/cut/v1/exports/{export_id}:cancel',
|
|
6850
|
+
...options
|
|
6851
|
+
});
|
|
6852
|
+
/**
|
|
6853
|
+
* List saved versions
|
|
6854
|
+
*
|
|
6855
|
+
* 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.
|
|
6856
|
+
*/
|
|
6857
|
+
export const cutListVersions = (options) => (options.client ?? client).get({
|
|
6858
|
+
security: [{
|
|
6859
|
+
key: 'BearerAuth',
|
|
6860
|
+
scheme: 'bearer',
|
|
6861
|
+
type: 'http'
|
|
6862
|
+
}, {
|
|
6863
|
+
key: 'ApiKeyAuth',
|
|
6864
|
+
name: 'X-API-Key',
|
|
6865
|
+
type: 'apiKey'
|
|
6866
|
+
}],
|
|
6867
|
+
url: '/cut/v1/projects/{project_id}/versions',
|
|
6868
|
+
...options
|
|
6869
|
+
});
|
|
6870
|
+
/**
|
|
6871
|
+
* Save project version
|
|
6872
|
+
*
|
|
6873
|
+
* 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.
|
|
6874
|
+
*/
|
|
6875
|
+
export const cutCreateVersion = (options) => (options.client ?? client).post({
|
|
6876
|
+
security: [{
|
|
6877
|
+
key: 'BearerAuth',
|
|
6878
|
+
scheme: 'bearer',
|
|
6879
|
+
type: 'http'
|
|
6880
|
+
}, {
|
|
6881
|
+
key: 'ApiKeyAuth',
|
|
6882
|
+
name: 'X-API-Key',
|
|
6883
|
+
type: 'apiKey'
|
|
6884
|
+
}],
|
|
6885
|
+
url: '/cut/v1/projects/{project_id}/versions',
|
|
6886
|
+
...options,
|
|
6887
|
+
headers: {
|
|
6888
|
+
'Content-Type': 'application/json',
|
|
6889
|
+
...options.headers
|
|
6890
|
+
}
|
|
6891
|
+
});
|
|
6892
|
+
/**
|
|
6893
|
+
* Restore saved version
|
|
6894
|
+
*
|
|
6895
|
+
* 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.
|
|
6896
|
+
*/
|
|
6897
|
+
export const cutRestoreVersion = (options) => (options.client ?? client).post({
|
|
6898
|
+
security: [{
|
|
6899
|
+
key: 'BearerAuth',
|
|
6900
|
+
scheme: 'bearer',
|
|
6901
|
+
type: 'http'
|
|
6902
|
+
}, {
|
|
6903
|
+
key: 'ApiKeyAuth',
|
|
6904
|
+
name: 'X-API-Key',
|
|
6905
|
+
type: 'apiKey'
|
|
6906
|
+
}],
|
|
6907
|
+
url: '/cut/v1/versions/{version_id}:restore',
|
|
6908
|
+
...options
|
|
6909
|
+
});
|
|
6910
|
+
/**
|
|
6911
|
+
* List databases
|
|
6912
|
+
*
|
|
6913
|
+
* 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.
|
|
6914
|
+
*/
|
|
6915
|
+
export const databaseListDatabases = (options) => (options?.client ?? client).get({
|
|
6916
|
+
security: [{
|
|
6917
|
+
key: 'database-bearerAuth',
|
|
6918
|
+
scheme: 'bearer',
|
|
6919
|
+
type: 'http'
|
|
6920
|
+
}],
|
|
6921
|
+
url: '/database/v1/databases',
|
|
6922
|
+
...options
|
|
6923
|
+
});
|
|
6924
|
+
/**
|
|
6925
|
+
* Create database
|
|
6926
|
+
*
|
|
6927
|
+
* 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.
|
|
6928
|
+
*/
|
|
6929
|
+
export const databaseCreateDatabase = (options) => (options.client ?? client).post({
|
|
6930
|
+
security: [{
|
|
6931
|
+
key: 'database-bearerAuth',
|
|
6932
|
+
scheme: 'bearer',
|
|
6933
|
+
type: 'http'
|
|
6934
|
+
}],
|
|
6935
|
+
url: '/database/v1/databases',
|
|
6936
|
+
...options,
|
|
6937
|
+
headers: {
|
|
6938
|
+
'Content-Type': 'application/json',
|
|
6939
|
+
...options.headers
|
|
6940
|
+
}
|
|
6941
|
+
});
|
|
6942
|
+
/**
|
|
6943
|
+
* Delete database
|
|
6944
|
+
*
|
|
6945
|
+
* 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.
|
|
6946
|
+
*/
|
|
6947
|
+
export const databaseDeleteDatabase = (options) => (options.client ?? client).delete({
|
|
6948
|
+
security: [{
|
|
6949
|
+
key: 'database-bearerAuth',
|
|
6950
|
+
scheme: 'bearer',
|
|
6951
|
+
type: 'http'
|
|
6952
|
+
}],
|
|
6953
|
+
url: '/database/v1/databases/{database_id}',
|
|
6954
|
+
...options
|
|
6955
|
+
});
|
|
6956
|
+
/**
|
|
6957
|
+
* Get database
|
|
6958
|
+
*
|
|
6959
|
+
* 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.
|
|
6960
|
+
*/
|
|
6961
|
+
export const databaseGetDatabase = (options) => (options.client ?? client).get({
|
|
6962
|
+
security: [{
|
|
6963
|
+
key: 'database-bearerAuth',
|
|
6964
|
+
scheme: 'bearer',
|
|
6965
|
+
type: 'http'
|
|
6966
|
+
}],
|
|
6967
|
+
url: '/database/v1/databases/{database_id}',
|
|
6968
|
+
...options
|
|
6969
|
+
});
|
|
6970
|
+
/**
|
|
6971
|
+
* Update database
|
|
6972
|
+
*
|
|
6973
|
+
* 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.
|
|
6974
|
+
*/
|
|
6975
|
+
export const databaseUpdateDatabase = (options) => (options.client ?? client).patch({
|
|
6976
|
+
security: [{
|
|
6977
|
+
key: 'database-bearerAuth',
|
|
6978
|
+
scheme: 'bearer',
|
|
6979
|
+
type: 'http'
|
|
6980
|
+
}],
|
|
6981
|
+
url: '/database/v1/databases/{database_id}',
|
|
6982
|
+
...options,
|
|
6983
|
+
headers: {
|
|
6984
|
+
'Content-Type': 'application/json',
|
|
6985
|
+
...options.headers
|
|
6986
|
+
}
|
|
6987
|
+
});
|
|
6988
|
+
/**
|
|
6989
|
+
* Restore database
|
|
6990
|
+
*
|
|
6991
|
+
* 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.
|
|
6992
|
+
*/
|
|
6993
|
+
export const databaseRestoreDatabase = (options) => (options.client ?? client).post({
|
|
6994
|
+
security: [{
|
|
6995
|
+
key: 'database-bearerAuth',
|
|
6996
|
+
scheme: 'bearer',
|
|
6997
|
+
type: 'http'
|
|
6998
|
+
}],
|
|
6999
|
+
url: '/database/v1/databases/{database_id}/restore',
|
|
7000
|
+
...options
|
|
7001
|
+
});
|
|
7002
|
+
/**
|
|
7003
|
+
* Permanently purge database
|
|
7004
|
+
*
|
|
7005
|
+
* Immediately and irreversibly purges a deleting database. Active databases return 409; absent or already purged databases return 404.
|
|
7006
|
+
*/
|
|
7007
|
+
export const databasePurgeDatabase = (options) => (options.client ?? client).post({
|
|
7008
|
+
security: [{
|
|
7009
|
+
key: 'database-bearerAuth',
|
|
7010
|
+
scheme: 'bearer',
|
|
7011
|
+
type: 'http'
|
|
7012
|
+
}],
|
|
7013
|
+
url: '/database/v1/databases/{database_id}/purge',
|
|
7014
|
+
...options
|
|
7015
|
+
});
|
|
7016
|
+
/**
|
|
7017
|
+
* List tables
|
|
7018
|
+
*
|
|
7019
|
+
* 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.
|
|
7020
|
+
*/
|
|
7021
|
+
export const databaseListTables = (options) => (options.client ?? client).get({
|
|
7022
|
+
security: [{
|
|
7023
|
+
key: 'database-bearerAuth',
|
|
7024
|
+
scheme: 'bearer',
|
|
7025
|
+
type: 'http'
|
|
7026
|
+
}],
|
|
7027
|
+
url: '/database/v1/databases/{database_id}/tables',
|
|
7028
|
+
...options
|
|
7029
|
+
});
|
|
7030
|
+
/**
|
|
7031
|
+
* Create table
|
|
7032
|
+
*
|
|
7033
|
+
* 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.
|
|
7034
|
+
*/
|
|
7035
|
+
export const databaseCreateTable = (options) => (options.client ?? client).post({
|
|
7036
|
+
security: [{
|
|
7037
|
+
key: 'database-bearerAuth',
|
|
7038
|
+
scheme: 'bearer',
|
|
7039
|
+
type: 'http'
|
|
7040
|
+
}],
|
|
7041
|
+
url: '/database/v1/databases/{database_id}/tables',
|
|
7042
|
+
...options,
|
|
7043
|
+
headers: {
|
|
7044
|
+
'Content-Type': 'application/json',
|
|
7045
|
+
...options.headers
|
|
7046
|
+
}
|
|
7047
|
+
});
|
|
7048
|
+
/**
|
|
7049
|
+
* Delete table
|
|
7050
|
+
*
|
|
7051
|
+
* 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.
|
|
7052
|
+
*/
|
|
7053
|
+
export const databaseDeleteTable = (options) => (options.client ?? client).delete({
|
|
7054
|
+
security: [{
|
|
7055
|
+
key: 'database-bearerAuth',
|
|
7056
|
+
scheme: 'bearer',
|
|
7057
|
+
type: 'http'
|
|
7058
|
+
}],
|
|
7059
|
+
url: '/database/v1/databases/{database_id}/tables/{table}',
|
|
7060
|
+
...options
|
|
7061
|
+
});
|
|
7062
|
+
/**
|
|
7063
|
+
* Get table
|
|
7064
|
+
*
|
|
7065
|
+
* 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.
|
|
7066
|
+
*/
|
|
7067
|
+
export const databaseGetTable = (options) => (options.client ?? client).get({
|
|
7068
|
+
security: [{
|
|
7069
|
+
key: 'database-bearerAuth',
|
|
7070
|
+
scheme: 'bearer',
|
|
7071
|
+
type: 'http'
|
|
7072
|
+
}],
|
|
7073
|
+
url: '/database/v1/databases/{database_id}/tables/{table}',
|
|
7074
|
+
...options
|
|
7075
|
+
});
|
|
7076
|
+
/**
|
|
7077
|
+
* Update table
|
|
7078
|
+
*
|
|
7079
|
+
* 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.
|
|
7080
|
+
*/
|
|
7081
|
+
export const databaseUpdateTable = (options) => (options.client ?? client).patch({
|
|
7082
|
+
security: [{
|
|
7083
|
+
key: 'database-bearerAuth',
|
|
7084
|
+
scheme: 'bearer',
|
|
7085
|
+
type: 'http'
|
|
7086
|
+
}],
|
|
7087
|
+
url: '/database/v1/databases/{database_id}/tables/{table}',
|
|
7088
|
+
...options,
|
|
7089
|
+
headers: {
|
|
7090
|
+
'Content-Type': 'application/json',
|
|
7091
|
+
...options.headers
|
|
7092
|
+
}
|
|
7093
|
+
});
|
|
7094
|
+
/**
|
|
7095
|
+
* Add field
|
|
7096
|
+
*
|
|
7097
|
+
* 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.
|
|
7098
|
+
*/
|
|
7099
|
+
export const databaseAddField = (options) => (options.client ?? client).post({
|
|
7100
|
+
security: [{
|
|
7101
|
+
key: 'database-bearerAuth',
|
|
7102
|
+
scheme: 'bearer',
|
|
7103
|
+
type: 'http'
|
|
7104
|
+
}],
|
|
7105
|
+
url: '/database/v1/databases/{database_id}/tables/{table}/fields',
|
|
7106
|
+
...options,
|
|
7107
|
+
headers: {
|
|
7108
|
+
'Content-Type': 'application/json',
|
|
7109
|
+
...options.headers
|
|
7110
|
+
}
|
|
7111
|
+
});
|
|
7112
|
+
/**
|
|
7113
|
+
* Delete field
|
|
7114
|
+
*
|
|
7115
|
+
* 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.
|
|
7116
|
+
*/
|
|
7117
|
+
export const databaseDeleteField = (options) => (options.client ?? client).delete({
|
|
7118
|
+
security: [{
|
|
7119
|
+
key: 'database-bearerAuth',
|
|
7120
|
+
scheme: 'bearer',
|
|
7121
|
+
type: 'http'
|
|
7122
|
+
}],
|
|
7123
|
+
url: '/database/v1/databases/{database_id}/tables/{table}/fields/{field}',
|
|
7124
|
+
...options
|
|
7125
|
+
});
|
|
7126
|
+
/**
|
|
7127
|
+
* Update field
|
|
7128
|
+
*
|
|
7129
|
+
* 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.
|
|
7130
|
+
*/
|
|
7131
|
+
export const databaseUpdateField = (options) => (options.client ?? client).patch({
|
|
7132
|
+
security: [{
|
|
7133
|
+
key: 'database-bearerAuth',
|
|
7134
|
+
scheme: 'bearer',
|
|
7135
|
+
type: 'http'
|
|
7136
|
+
}],
|
|
7137
|
+
url: '/database/v1/databases/{database_id}/tables/{table}/fields/{field}',
|
|
7138
|
+
...options,
|
|
7139
|
+
headers: {
|
|
7140
|
+
'Content-Type': 'application/json',
|
|
7141
|
+
...options.headers
|
|
7142
|
+
}
|
|
7143
|
+
});
|
|
7144
|
+
/**
|
|
7145
|
+
* List events
|
|
7146
|
+
*
|
|
7147
|
+
* 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.
|
|
7148
|
+
*/
|
|
7149
|
+
export const databaseListEvents = (options) => (options.client ?? client).get({
|
|
7150
|
+
security: [{
|
|
7151
|
+
key: 'database-bearerAuth',
|
|
7152
|
+
scheme: 'bearer',
|
|
7153
|
+
type: 'http'
|
|
7154
|
+
}],
|
|
7155
|
+
url: '/database/v1/databases/{database_id}/events',
|
|
7156
|
+
...options
|
|
7157
|
+
});
|
|
7158
|
+
/**
|
|
7159
|
+
* Delete rows
|
|
7160
|
+
*
|
|
7161
|
+
* 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.
|
|
7162
|
+
*/
|
|
7163
|
+
export const databaseDelete = (options) => (options.client ?? client).delete({
|
|
7164
|
+
security: [{
|
|
7165
|
+
key: 'database-bearerAuth',
|
|
7166
|
+
scheme: 'bearer',
|
|
7167
|
+
type: 'http'
|
|
7168
|
+
}],
|
|
7169
|
+
url: '/database/v1/databases/{database_id}/rest/{table}',
|
|
7170
|
+
...options
|
|
7171
|
+
});
|
|
7172
|
+
/**
|
|
7173
|
+
* Select rows
|
|
7174
|
+
*
|
|
7175
|
+
* 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.
|
|
7176
|
+
*/
|
|
7177
|
+
export const databaseSelect = (options) => (options.client ?? client).get({
|
|
7178
|
+
security: [{
|
|
7179
|
+
key: 'database-bearerAuth',
|
|
7180
|
+
scheme: 'bearer',
|
|
7181
|
+
type: 'http'
|
|
7182
|
+
}],
|
|
7183
|
+
url: '/database/v1/databases/{database_id}/rest/{table}',
|
|
7184
|
+
...options
|
|
7185
|
+
});
|
|
7186
|
+
/**
|
|
7187
|
+
* Count rows
|
|
7188
|
+
*
|
|
7189
|
+
* 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.
|
|
7190
|
+
*/
|
|
7191
|
+
export const databaseHead = (options) => (options.client ?? client).head({
|
|
7192
|
+
security: [{
|
|
7193
|
+
key: 'database-bearerAuth',
|
|
7194
|
+
scheme: 'bearer',
|
|
7195
|
+
type: 'http'
|
|
7196
|
+
}],
|
|
7197
|
+
url: '/database/v1/databases/{database_id}/rest/{table}',
|
|
7198
|
+
...options
|
|
7199
|
+
});
|
|
7200
|
+
/**
|
|
7201
|
+
* Update rows
|
|
7202
|
+
*
|
|
7203
|
+
* 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.
|
|
7204
|
+
*/
|
|
7205
|
+
export const databaseUpdate = (options) => (options.client ?? client).patch({
|
|
7206
|
+
security: [{
|
|
7207
|
+
key: 'database-bearerAuth',
|
|
7208
|
+
scheme: 'bearer',
|
|
7209
|
+
type: 'http'
|
|
7210
|
+
}],
|
|
7211
|
+
url: '/database/v1/databases/{database_id}/rest/{table}',
|
|
7212
|
+
...options,
|
|
7213
|
+
headers: {
|
|
7214
|
+
'Content-Type': 'application/json',
|
|
7215
|
+
...options.headers
|
|
7216
|
+
}
|
|
7217
|
+
});
|
|
7218
|
+
/**
|
|
7219
|
+
* Insert rows
|
|
7220
|
+
*
|
|
7221
|
+
* 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.
|
|
7222
|
+
* Rows are filled to the union of their keys with null; send Prefer: missing=default to use field defaults for missing keys.
|
|
7223
|
+
* 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.
|
|
7224
|
+
*/
|
|
7225
|
+
export const databaseInsert = (options) => (options.client ?? client).post({
|
|
7226
|
+
security: [{
|
|
7227
|
+
key: 'database-bearerAuth',
|
|
7228
|
+
scheme: 'bearer',
|
|
7229
|
+
type: 'http'
|
|
7230
|
+
}],
|
|
7231
|
+
url: '/database/v1/databases/{database_id}/rest/{table}',
|
|
7232
|
+
...options,
|
|
7233
|
+
headers: {
|
|
7234
|
+
'Content-Type': 'application/json',
|
|
7235
|
+
...options.headers
|
|
7236
|
+
}
|
|
7237
|
+
});
|
|
7238
|
+
/**
|
|
7239
|
+
* Read a commit's test catalog
|
|
7240
|
+
*
|
|
7241
|
+
* Read the catalog version discovered at one commit — how many suites and cases it holds, which frameworks they come from, and how the commit changed them. Call this first: it tells you which suites, cases and sizes exist before you list them or select them into a plan, and the reported diff explains why a case count moved. A commit whose discovery has not finished answers CATALOG_NOT_READY, which means "not yet", not "no tests"; wait and read again. Omit commit to read the newest catalog published for the project.
|
|
7242
|
+
*/
|
|
7243
|
+
export const devopsTestCatalogGet = (options) => (options.client ?? client).get({
|
|
7244
|
+
security: [{
|
|
7245
|
+
key: 'devops-bearerAuth',
|
|
7246
|
+
scheme: 'bearer',
|
|
7247
|
+
type: 'http'
|
|
7248
|
+
}],
|
|
7249
|
+
url: '/devops/v1/projects/{project}/test-catalog',
|
|
7250
|
+
...options
|
|
7251
|
+
});
|
|
7252
|
+
/**
|
|
7253
|
+
* List test suites
|
|
7254
|
+
*
|
|
7255
|
+
* List the suites the project's newest catalog discovered — one suite per test file and framework pair, with its size, purposes and question count. Use it to find the suite id a case belongs to, or to see which files make up an area before selecting cases from them. Suites come from the catalog, so a file added in code appears only after its commit's catalog is published. Archived suites are returned too; they carry archived true and no case is ever silently dropped from the list.
|
|
7256
|
+
*/
|
|
7257
|
+
export const devopsTestSuitesList = (options) => (options.client ?? client).get({
|
|
7258
|
+
security: [{
|
|
7259
|
+
key: 'devops-bearerAuth',
|
|
7260
|
+
scheme: 'bearer',
|
|
7261
|
+
type: 'http'
|
|
7262
|
+
}],
|
|
7263
|
+
url: '/devops/v1/projects/{project}/test-suites',
|
|
7264
|
+
...options
|
|
7265
|
+
});
|
|
7266
|
+
/**
|
|
7267
|
+
* Retrieve a test suite
|
|
7268
|
+
*
|
|
7269
|
+
* Read one suite by the id a suite list returned, to learn its file, framework, size, purposes and how many cases it holds. Use it when a case's suite id needs a name for display, or to confirm which commit's catalog a suite came from. The id is opaque; it comes from the list, never from the file path.
|
|
7270
|
+
*/
|
|
7271
|
+
export const devopsTestSuitesGet = (options) => (options.client ?? client).get({
|
|
7272
|
+
security: [{
|
|
7273
|
+
key: 'devops-bearerAuth',
|
|
7274
|
+
scheme: 'bearer',
|
|
7275
|
+
type: 'http'
|
|
7276
|
+
}],
|
|
7277
|
+
url: '/devops/v1/test-suites/{id}',
|
|
7278
|
+
...options
|
|
7279
|
+
});
|
|
7280
|
+
/**
|
|
7281
|
+
* List test cases
|
|
7282
|
+
*
|
|
7283
|
+
* List a project's cases with their health, state and recent statistics, so you can decide which ones a plan must run and which are quarantined. This is the read a test dashboard is built on; filter it to narrow by state or health instead of paging through everything. A case's id is a fingerprint of its own title and path, so it survives a rename — read aliases when reconciling history recorded under an older title.
|
|
7284
|
+
*/
|
|
7285
|
+
export const devopsTestCasesList = (options) => (options.client ?? client).get({
|
|
7286
|
+
security: [{
|
|
7287
|
+
key: 'devops-bearerAuth',
|
|
7288
|
+
scheme: 'bearer',
|
|
7289
|
+
type: 'http'
|
|
7290
|
+
}],
|
|
7291
|
+
url: '/devops/v1/projects/{project}/test-cases',
|
|
7292
|
+
...options
|
|
7293
|
+
});
|
|
7294
|
+
/**
|
|
7295
|
+
* Retrieve a test case
|
|
7296
|
+
*
|
|
7297
|
+
* Read one case in full — its steps, tags, declared owners, current state with the policy and ticket behind it, and its rolling 7 or 30 day statistics. Use it before quarantining or fixing a case, to see what the state already is and why. A case that was renamed is reachable by both its current fingerprint id and the ids listed in aliases.
|
|
7298
|
+
*/
|
|
7299
|
+
export const devopsTestCasesGet = (options) => (options.client ?? client).get({
|
|
7300
|
+
security: [{
|
|
7301
|
+
key: 'devops-bearerAuth',
|
|
7302
|
+
scheme: 'bearer',
|
|
7303
|
+
type: 'http'
|
|
7304
|
+
}],
|
|
7305
|
+
url: '/devops/v1/test-cases/{id}',
|
|
7306
|
+
...options
|
|
7307
|
+
});
|
|
7308
|
+
/**
|
|
7309
|
+
* List test plans
|
|
7310
|
+
*
|
|
7311
|
+
* List the project's plans — what each one selects, which stage and gate it belongs to, and when it runs next. Read this before creating a plan, so a new plan extends what exists instead of duplicating a selector an existing plan already covers.
|
|
7312
|
+
*/
|
|
7313
|
+
export const devopsTestPlansList = (options) => (options.client ?? client).get({
|
|
7314
|
+
security: [{
|
|
7315
|
+
key: 'devops-bearerAuth',
|
|
7316
|
+
scheme: 'bearer',
|
|
7317
|
+
type: 'http'
|
|
7318
|
+
}],
|
|
7319
|
+
url: '/devops/v1/projects/{project}/test-plans',
|
|
7320
|
+
...options
|
|
7321
|
+
});
|
|
7322
|
+
/**
|
|
7323
|
+
* Create a test plan
|
|
7324
|
+
*
|
|
7325
|
+
* Create a plan that decides which cases a stage must run. The plan's key is unique inside the project and is what a later run names; the selector chooses cases by size, purpose, tag, package or explicit ids, and the trigger says when the plan fires by itself. A merge or promotion gate must name the environment it guards, and a plan with a gate but no environment is refused with PLAN_GATE_ENVIRONMENT_MISMATCH rather than created and silently ignored. A plan has no revision history: update it with a patch.
|
|
7326
|
+
*/
|
|
7327
|
+
export const devopsTestPlansCreate = (options) => (options.client ?? client).post({
|
|
7328
|
+
security: [{
|
|
7329
|
+
key: 'devops-bearerAuth',
|
|
7330
|
+
scheme: 'bearer',
|
|
7331
|
+
type: 'http'
|
|
7332
|
+
}],
|
|
7333
|
+
url: '/devops/v1/projects/{project}/test-plans',
|
|
7334
|
+
...options,
|
|
7335
|
+
headers: {
|
|
7336
|
+
'Content-Type': 'application/json',
|
|
7337
|
+
...options.headers
|
|
7338
|
+
}
|
|
7339
|
+
});
|
|
7340
|
+
/**
|
|
7341
|
+
* Delete a test plan
|
|
7342
|
+
*
|
|
7343
|
+
* Delete a plan so it schedules nothing further. The plan stops firing immediately; runs it already produced keep their own record and are not deleted with it. To stop a plan temporarily and keep it for later, pause it instead — deleting cannot be undone and the plan's key becomes free for another plan to take.
|
|
7344
|
+
*/
|
|
7345
|
+
export const devopsTestPlansDelete = (options) => (options.client ?? client).delete({
|
|
7346
|
+
security: [{
|
|
7347
|
+
key: 'devops-bearerAuth',
|
|
7348
|
+
scheme: 'bearer',
|
|
7349
|
+
type: 'http'
|
|
7350
|
+
}],
|
|
7351
|
+
url: '/devops/v1/test-plans/{id}',
|
|
7352
|
+
...options
|
|
7353
|
+
});
|
|
7354
|
+
/**
|
|
7355
|
+
* Retrieve a test plan
|
|
7356
|
+
*
|
|
7357
|
+
* Read one plan by the id a plan list returned, to see its selector, gate, repeat count, timeout and pause state before updating or deleting it. A paused plan carries the reason, the actor and the time it resumes, so a pause you did not set is explained here rather than guessed at.
|
|
7358
|
+
*/
|
|
7359
|
+
export const devopsTestPlansGet = (options) => (options.client ?? client).get({
|
|
7360
|
+
security: [{
|
|
7361
|
+
key: 'devops-bearerAuth',
|
|
7362
|
+
scheme: 'bearer',
|
|
7363
|
+
type: 'http'
|
|
7364
|
+
}],
|
|
7365
|
+
url: '/devops/v1/test-plans/{id}',
|
|
7366
|
+
...options
|
|
7367
|
+
});
|
|
7368
|
+
/**
|
|
7369
|
+
* Update a test plan
|
|
7370
|
+
*
|
|
7371
|
+
* Change a plan's title, trigger, selector, gate, repeat count, timeout or enabled flag. Only the fields present in the body are changed, so a body naming one field leaves the rest exactly as they were. Changing a selector does not create a version — the plan is not a published artefact, and runs already started keep the selection they were created with. Read the plan first to know what you are leaving unchanged.
|
|
7372
|
+
*/
|
|
7373
|
+
export const devopsTestPlansUpdate = (options) => (options.client ?? client).patch({
|
|
7374
|
+
security: [{
|
|
7375
|
+
key: 'devops-bearerAuth',
|
|
7376
|
+
scheme: 'bearer',
|
|
7377
|
+
type: 'http'
|
|
7378
|
+
}],
|
|
7379
|
+
url: '/devops/v1/test-plans/{id}',
|
|
7380
|
+
...options,
|
|
7381
|
+
headers: {
|
|
7382
|
+
'Content-Type': 'application/json',
|
|
7383
|
+
...options.headers
|
|
7384
|
+
}
|
|
7385
|
+
});
|
|
7386
|
+
/**
|
|
7387
|
+
* Pause a test plan
|
|
7388
|
+
*
|
|
7389
|
+
* Stop a plan from starting new runs while keeping it and its history. A reason is required and is recorded on the plan, so the next reader learns why it stopped. Give until to resume automatically at a time; omit it to stay paused until someone resumes it. Runs already in flight are not cancelled — cancel those individually.
|
|
7390
|
+
*/
|
|
7391
|
+
export const devopsTestPlansPause = (options) => (options.client ?? client).post({
|
|
7392
|
+
security: [{
|
|
7393
|
+
key: 'devops-bearerAuth',
|
|
7394
|
+
scheme: 'bearer',
|
|
7395
|
+
type: 'http'
|
|
7396
|
+
}],
|
|
7397
|
+
url: '/devops/v1/test-plans/{id}:pause',
|
|
7398
|
+
...options,
|
|
7399
|
+
headers: {
|
|
7400
|
+
'Content-Type': 'application/json',
|
|
7401
|
+
...options.headers
|
|
7402
|
+
}
|
|
7403
|
+
});
|
|
7404
|
+
/**
|
|
7405
|
+
* Resume a test plan
|
|
7406
|
+
*
|
|
7407
|
+
* Clear a plan's pause so it schedules runs again. Resuming an active plan changes nothing and is safe to repeat. The plan keeps its selector, gate and key; only the pause is removed.
|
|
7408
|
+
*/
|
|
7409
|
+
export const devopsTestPlansResume = (options) => (options.client ?? client).post({
|
|
7410
|
+
security: [{
|
|
7411
|
+
key: 'devops-bearerAuth',
|
|
7412
|
+
scheme: 'bearer',
|
|
7413
|
+
type: 'http'
|
|
7414
|
+
}],
|
|
7415
|
+
url: '/devops/v1/test-plans/{id}:resume',
|
|
7416
|
+
...options
|
|
7417
|
+
});
|
|
7418
|
+
/**
|
|
7419
|
+
* List test runs
|
|
7420
|
+
*
|
|
7421
|
+
* List the project's runs newest first, with each run's state, result and counts. Use it to find the run id whose executions you want to read, or to see whether a commit's tests have finished. A run whose result is pending has not reached a verdict yet — read it again rather than treating it as passed. Filter by state or result to watch only the runs still in flight.
|
|
7422
|
+
*/
|
|
7423
|
+
export const devopsTestRunsList = (options) => (options.client ?? client).get({
|
|
7424
|
+
security: [{
|
|
7425
|
+
key: 'devops-bearerAuth',
|
|
7426
|
+
scheme: 'bearer',
|
|
7427
|
+
type: 'http'
|
|
7428
|
+
}],
|
|
7429
|
+
url: '/devops/v1/projects/{project}/test-runs',
|
|
7430
|
+
...options
|
|
7431
|
+
});
|
|
7432
|
+
/**
|
|
7433
|
+
* Create a test run
|
|
7434
|
+
*
|
|
7435
|
+
* Start a run of the project's tests at one commit. Name a plan to use its selector, or pass a selector directly for this run alone; the ref says which commit to test and is required, because a run without a commit has nothing to report against. waitUntil decides how far the call waits before answering — queued returns as soon as the run exists, finished waits for a verdict and may take minutes. A retry of an earlier run is a new run: pass its commit and selector, and read the earlier run to compare.
|
|
7436
|
+
*/
|
|
7437
|
+
export const devopsTestRunsCreate = (options) => (options.client ?? client).post({
|
|
7438
|
+
security: [{
|
|
7439
|
+
key: 'devops-bearerAuth',
|
|
7440
|
+
scheme: 'bearer',
|
|
7441
|
+
type: 'http'
|
|
7442
|
+
}],
|
|
7443
|
+
url: '/devops/v1/projects/{project}/test-runs',
|
|
7444
|
+
...options,
|
|
7445
|
+
headers: {
|
|
7446
|
+
'Content-Type': 'application/json',
|
|
7447
|
+
...options.headers
|
|
7448
|
+
}
|
|
7449
|
+
});
|
|
7450
|
+
/**
|
|
7451
|
+
* Retrieve a test run
|
|
7452
|
+
*
|
|
7453
|
+
* Read one run's current state, result and counts, and ask for its failed executions inline with expand. Poll this after creating a run whose result was pending. A result is monotonic once it reaches a verdict — a failed run never becomes passed by a later report, so read the run rather than the last report to know where it ended.
|
|
7454
|
+
*/
|
|
7455
|
+
export const devopsTestRunsGet = (options) => (options.client ?? client).get({
|
|
7456
|
+
security: [{
|
|
7457
|
+
key: 'devops-bearerAuth',
|
|
7458
|
+
scheme: 'bearer',
|
|
7459
|
+
type: 'http'
|
|
7460
|
+
}],
|
|
7461
|
+
url: '/devops/v1/test-runs/{id}',
|
|
7462
|
+
...options
|
|
7463
|
+
});
|
|
7464
|
+
/**
|
|
7465
|
+
* Cancel a test run
|
|
7466
|
+
*
|
|
7467
|
+
* Stop a run that is still going. A reason is required and is recorded on the run, because a cancelled run is read later as evidence about why a commit was not verified. Cancelling a run that already reached a verdict is refused with RUN_ALREADY_FINISHED: its result is final and cancelling it would erase the verdict. Executions already recorded stay readable.
|
|
7468
|
+
*/
|
|
7469
|
+
export const devopsTestRunsCancel = (options) => (options.client ?? client).post({
|
|
7470
|
+
security: [{
|
|
7471
|
+
key: 'devops-bearerAuth',
|
|
7472
|
+
scheme: 'bearer',
|
|
7473
|
+
type: 'http'
|
|
7474
|
+
}],
|
|
7475
|
+
url: '/devops/v1/test-runs/{id}:cancel',
|
|
7476
|
+
...options,
|
|
7477
|
+
headers: {
|
|
7478
|
+
'Content-Type': 'application/json',
|
|
7479
|
+
...options.headers
|
|
7480
|
+
}
|
|
7481
|
+
});
|
|
7482
|
+
/**
|
|
7483
|
+
* List a run's executions
|
|
7484
|
+
*
|
|
7485
|
+
* List the executions recorded against one run — one entry per case the run selected, with its status, duration, attempts and evidence. Use it to find the case that failed, or to compare a repeat run against the previous one case by case. Reads happen while the run is still going, so a case may still be pending; filter by status to watch only the failures.
|
|
7486
|
+
*/
|
|
7487
|
+
export const devopsTestExecutionsList = (options) => (options.client ?? client).get({
|
|
7488
|
+
security: [{
|
|
7489
|
+
key: 'devops-bearerAuth',
|
|
7490
|
+
scheme: 'bearer',
|
|
7491
|
+
type: 'http'
|
|
7492
|
+
}],
|
|
7493
|
+
url: '/devops/v1/test-runs/{run}/executions',
|
|
7494
|
+
...options
|
|
7495
|
+
});
|
|
7496
|
+
/**
|
|
7497
|
+
* Retrieve one case's execution in a run
|
|
7498
|
+
*
|
|
7499
|
+
* Read one case's execution inside one run, including every attempt with its own duration and message. Use it after a run reports a failure to see whether the case failed once and passed on retry — that is what flaky true means — and to reach the evidence files a triage needs. Both ids come from the run and case reads; an execution that does not exist for that pair is NOT_FOUND rather than an empty answer.
|
|
7500
|
+
*/
|
|
7501
|
+
export const devopsTestExecutionsGet = (options) => (options.client ?? client).get({
|
|
7502
|
+
security: [{
|
|
7503
|
+
key: 'devops-bearerAuth',
|
|
7504
|
+
scheme: 'bearer',
|
|
7505
|
+
type: 'http'
|
|
7506
|
+
}],
|
|
7507
|
+
url: '/devops/v1/test-runs/{run}/executions/{case}',
|
|
7508
|
+
...options
|
|
7509
|
+
});
|
|
7510
|
+
/**
|
|
7511
|
+
* Upload an external test report
|
|
7512
|
+
*
|
|
7513
|
+
* Record the results of a run executed outside Praxis by uploading a CTRF or JUnit report. The report is folded into the run named by ref and the run's counts and verdict are recomputed from it. Uploading the same reportId again is idempotent and counts once, so a retry after a timeout is safe; a different reportId for the same run adds its results. Pass the run you created with executor external — a report for a run that does not exist is NOT_FOUND, never silently recorded against another run.
|
|
7514
|
+
*/
|
|
7515
|
+
export const devopsTestReportsUpload = (options) => (options.client ?? client).post({
|
|
7516
|
+
security: [{
|
|
7517
|
+
key: 'devops-bearerAuth',
|
|
7518
|
+
scheme: 'bearer',
|
|
7519
|
+
type: 'http'
|
|
7520
|
+
}],
|
|
7521
|
+
url: '/devops/v1/projects/{project}/test-reports',
|
|
7522
|
+
...options,
|
|
7523
|
+
headers: {
|
|
7524
|
+
'Content-Type': 'application/json',
|
|
7525
|
+
...options.headers
|
|
7526
|
+
}
|
|
7527
|
+
});
|
|
7528
|
+
/**
|
|
7529
|
+
* List knowledge bases
|
|
7530
|
+
*
|
|
7531
|
+
* 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.
|
|
7532
|
+
*/
|
|
7533
|
+
export const knowledgeListVectorStores = (options) => (options?.client ?? client).get({
|
|
7534
|
+
security: [{
|
|
7535
|
+
key: 'knowledge-bearerAuth',
|
|
7536
|
+
scheme: 'bearer',
|
|
7537
|
+
type: 'http'
|
|
7538
|
+
}],
|
|
7539
|
+
url: '/knowledge/v1/vector_stores',
|
|
7540
|
+
...options
|
|
7541
|
+
});
|
|
7542
|
+
/**
|
|
7543
|
+
* Create knowledge base
|
|
7544
|
+
*
|
|
7545
|
+
* 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"}.
|
|
7546
|
+
*/
|
|
7547
|
+
export const knowledgeCreateVectorStore = (options) => (options.client ?? client).post({
|
|
7548
|
+
security: [{
|
|
7549
|
+
key: 'knowledge-bearerAuth',
|
|
7550
|
+
scheme: 'bearer',
|
|
7551
|
+
type: 'http'
|
|
7552
|
+
}],
|
|
7553
|
+
url: '/knowledge/v1/vector_stores',
|
|
7554
|
+
...options,
|
|
7555
|
+
headers: {
|
|
7556
|
+
'Content-Type': 'application/json',
|
|
7557
|
+
...options.headers
|
|
7558
|
+
}
|
|
7559
|
+
});
|
|
7560
|
+
/**
|
|
7561
|
+
* Delete knowledge base
|
|
7562
|
+
*
|
|
7563
|
+
* 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.
|
|
7564
|
+
*/
|
|
7565
|
+
export const knowledgeDeleteVectorStore = (options) => (options.client ?? client).delete({
|
|
7566
|
+
security: [{
|
|
7567
|
+
key: 'knowledge-bearerAuth',
|
|
7568
|
+
scheme: 'bearer',
|
|
7569
|
+
type: 'http'
|
|
7570
|
+
}],
|
|
7571
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
7572
|
+
...options
|
|
7573
|
+
});
|
|
7574
|
+
/**
|
|
7575
|
+
* Retrieve knowledge base
|
|
7576
|
+
*
|
|
7577
|
+
* 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.
|
|
7578
|
+
*/
|
|
7579
|
+
export const knowledgeRetrieveVectorStore = (options) => (options.client ?? client).get({
|
|
7580
|
+
security: [{
|
|
7581
|
+
key: 'knowledge-bearerAuth',
|
|
7582
|
+
scheme: 'bearer',
|
|
7583
|
+
type: 'http'
|
|
7584
|
+
}],
|
|
7585
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
7586
|
+
...options
|
|
7587
|
+
});
|
|
7588
|
+
/**
|
|
7589
|
+
* Update knowledge base
|
|
7590
|
+
*
|
|
7591
|
+
* Updates an active knowledge base using its returned id. Omitted fields stay unchanged; metadata replaces the whole map. Example body: {"name":"Refund policies"}.
|
|
7592
|
+
*/
|
|
7593
|
+
export const knowledgeUpdateVectorStore = (options) => (options.client ?? client).post({
|
|
7594
|
+
security: [{
|
|
7595
|
+
key: 'knowledge-bearerAuth',
|
|
7596
|
+
scheme: 'bearer',
|
|
7597
|
+
type: 'http'
|
|
7598
|
+
}],
|
|
7599
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
7600
|
+
...options,
|
|
7601
|
+
headers: {
|
|
7602
|
+
'Content-Type': 'application/json',
|
|
7603
|
+
...options.headers
|
|
7604
|
+
}
|
|
7605
|
+
});
|
|
7606
|
+
/**
|
|
7607
|
+
* Search knowledge base
|
|
7608
|
+
*
|
|
7609
|
+
* 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.
|
|
7610
|
+
*/
|
|
7611
|
+
export const knowledgeSearchVectorStore = (options) => (options.client ?? client).post({
|
|
7612
|
+
security: [{
|
|
7613
|
+
key: 'knowledge-bearerAuth',
|
|
7614
|
+
scheme: 'bearer',
|
|
7615
|
+
type: 'http'
|
|
7616
|
+
}],
|
|
7617
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/search',
|
|
7618
|
+
...options,
|
|
7619
|
+
headers: {
|
|
7620
|
+
'Content-Type': 'application/json',
|
|
7621
|
+
...options.headers
|
|
7622
|
+
}
|
|
7623
|
+
});
|
|
7624
|
+
/**
|
|
7625
|
+
* List files
|
|
7626
|
+
*
|
|
7627
|
+
* 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.
|
|
7628
|
+
*/
|
|
7629
|
+
export const knowledgeListFiles = (options) => (options.client ?? client).get({
|
|
7630
|
+
security: [{
|
|
7631
|
+
key: 'knowledge-bearerAuth',
|
|
7632
|
+
scheme: 'bearer',
|
|
7633
|
+
type: 'http'
|
|
7634
|
+
}],
|
|
7635
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files',
|
|
7636
|
+
...options
|
|
7637
|
+
});
|
|
7638
|
+
/**
|
|
7639
|
+
* Add file
|
|
7640
|
+
*
|
|
7641
|
+
* 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.
|
|
7642
|
+
*/
|
|
7643
|
+
export const knowledgeAttachFile = (options) => (options.client ?? client).post({
|
|
7644
|
+
security: [{
|
|
7645
|
+
key: 'knowledge-bearerAuth',
|
|
7646
|
+
scheme: 'bearer',
|
|
7647
|
+
type: 'http'
|
|
7648
|
+
}],
|
|
7649
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files',
|
|
7650
|
+
...options,
|
|
7651
|
+
headers: {
|
|
7652
|
+
'Content-Type': 'application/json',
|
|
7653
|
+
...options.headers
|
|
7654
|
+
}
|
|
7655
|
+
});
|
|
7656
|
+
/**
|
|
7657
|
+
* Remove file
|
|
7658
|
+
*
|
|
7659
|
+
* Removes the file from search immediately; does not delete the original File.
|
|
7660
|
+
*/
|
|
7661
|
+
export const knowledgeRemoveFile = (options) => (options.client ?? client).delete({
|
|
7662
|
+
security: [{
|
|
7663
|
+
key: 'knowledge-bearerAuth',
|
|
7664
|
+
scheme: 'bearer',
|
|
7665
|
+
type: 'http'
|
|
7666
|
+
}],
|
|
7667
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}',
|
|
7668
|
+
...options
|
|
7669
|
+
});
|
|
7670
|
+
/**
|
|
7671
|
+
* Retrieve file
|
|
7672
|
+
*
|
|
7673
|
+
* 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.
|
|
7674
|
+
*/
|
|
7675
|
+
export const knowledgeRetrieveFile = (options) => (options.client ?? client).get({
|
|
7676
|
+
security: [{
|
|
7677
|
+
key: 'knowledge-bearerAuth',
|
|
7678
|
+
scheme: 'bearer',
|
|
7679
|
+
type: 'http'
|
|
7680
|
+
}],
|
|
7681
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}',
|
|
7682
|
+
...options
|
|
7683
|
+
});
|
|
7684
|
+
/**
|
|
7685
|
+
* Update file attributes
|
|
7686
|
+
*
|
|
7687
|
+
* 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.
|
|
7688
|
+
*/
|
|
7689
|
+
export const knowledgeUpdateFile = (options) => (options.client ?? client).post({
|
|
7690
|
+
security: [{
|
|
7691
|
+
key: 'knowledge-bearerAuth',
|
|
7692
|
+
scheme: 'bearer',
|
|
7693
|
+
type: 'http'
|
|
7694
|
+
}],
|
|
7695
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}',
|
|
7696
|
+
...options,
|
|
7697
|
+
headers: {
|
|
7698
|
+
'Content-Type': 'application/json',
|
|
7699
|
+
...options.headers
|
|
7700
|
+
}
|
|
7701
|
+
});
|
|
7702
|
+
/**
|
|
7703
|
+
* Read extracted content
|
|
7704
|
+
*
|
|
7705
|
+
* Extracted text chunks may overlap. Image content can be a generated description rather than verbatim OCR.
|
|
7706
|
+
*/
|
|
7707
|
+
export const knowledgeRetrieveFileContent = (options) => (options.client ?? client).get({
|
|
7708
|
+
security: [{
|
|
7709
|
+
key: 'knowledge-bearerAuth',
|
|
7710
|
+
scheme: 'bearer',
|
|
7711
|
+
type: 'http'
|
|
7712
|
+
}],
|
|
7713
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/content',
|
|
7714
|
+
...options
|
|
7715
|
+
});
|
|
7716
|
+
/**
|
|
7717
|
+
* Create file batch
|
|
7718
|
+
*
|
|
7719
|
+
* 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.
|
|
7720
|
+
*/
|
|
7721
|
+
export const knowledgeCreateFileBatch = (options) => (options.client ?? client).post({
|
|
7722
|
+
security: [{
|
|
7723
|
+
key: 'knowledge-bearerAuth',
|
|
7724
|
+
scheme: 'bearer',
|
|
7725
|
+
type: 'http'
|
|
7726
|
+
}],
|
|
7727
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches',
|
|
7728
|
+
...options,
|
|
7729
|
+
headers: {
|
|
7730
|
+
'Content-Type': 'application/json',
|
|
7731
|
+
...options.headers
|
|
7732
|
+
}
|
|
7733
|
+
});
|
|
7734
|
+
/**
|
|
7735
|
+
* Retrieve file batch
|
|
7736
|
+
*
|
|
7737
|
+
* 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.
|
|
7738
|
+
*/
|
|
7739
|
+
export const knowledgeRetrieveFileBatch = (options) => (options.client ?? client).get({
|
|
7740
|
+
security: [{
|
|
7741
|
+
key: 'knowledge-bearerAuth',
|
|
7742
|
+
scheme: 'bearer',
|
|
7743
|
+
type: 'http'
|
|
7744
|
+
}],
|
|
7745
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}',
|
|
7746
|
+
...options
|
|
7747
|
+
});
|
|
7748
|
+
/**
|
|
7749
|
+
* Cancel file batch
|
|
7750
|
+
*
|
|
7751
|
+
* Cancels only in-progress batches and pending files. Completed, failed and cancelled batches return unchanged (200, idempotent).
|
|
7752
|
+
*/
|
|
7753
|
+
export const knowledgeCancelFileBatch = (options) => (options.client ?? client).post({
|
|
7754
|
+
security: [{
|
|
7755
|
+
key: 'knowledge-bearerAuth',
|
|
7756
|
+
scheme: 'bearer',
|
|
7757
|
+
type: 'http'
|
|
7758
|
+
}],
|
|
7759
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel',
|
|
7760
|
+
...options
|
|
7761
|
+
});
|
|
7762
|
+
/**
|
|
7763
|
+
* List batch files
|
|
7764
|
+
*
|
|
7765
|
+
* 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.
|
|
7766
|
+
*/
|
|
7767
|
+
export const knowledgeListBatchFiles = (options) => (options.client ?? client).get({
|
|
7768
|
+
security: [{
|
|
7769
|
+
key: 'knowledge-bearerAuth',
|
|
7770
|
+
scheme: 'bearer',
|
|
7771
|
+
type: 'http'
|
|
7772
|
+
}],
|
|
7773
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/files',
|
|
7774
|
+
...options
|
|
7775
|
+
});
|
|
7776
|
+
/**
|
|
7777
|
+
* Restore knowledge base
|
|
7778
|
+
*
|
|
7779
|
+
* Restores a deleting store within 7 days. Active stores return 409 VECTOR_STORE_INVALID_STATE; absent stores return 404. Empty body is allowed.
|
|
7780
|
+
*/
|
|
7781
|
+
export const knowledgeRestoreVectorStore = (options) => (options.client ?? client).post({
|
|
6427
7782
|
security: [{
|
|
6428
7783
|
key: 'knowledge-bearerAuth',
|
|
6429
7784
|
scheme: 'bearer',
|
|
6430
7785
|
type: 'http'
|
|
6431
7786
|
}],
|
|
6432
|
-
url: '/knowledge/v1/vector_stores',
|
|
6433
|
-
...options
|
|
6434
|
-
headers: {
|
|
6435
|
-
'Content-Type': 'application/json',
|
|
6436
|
-
...options.headers
|
|
6437
|
-
}
|
|
7787
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/restore',
|
|
7788
|
+
...options
|
|
6438
7789
|
});
|
|
6439
7790
|
/**
|
|
6440
|
-
*
|
|
7791
|
+
* Permanently purge knowledge base
|
|
6441
7792
|
*
|
|
6442
|
-
*
|
|
7793
|
+
* Immediately and irreversibly clears a deleting store using the retention cleanup path. Active stores return 409; absent stores return 404. Empty body is allowed.
|
|
6443
7794
|
*/
|
|
6444
|
-
export const
|
|
7795
|
+
export const knowledgePurgeVectorStore = (options) => (options.client ?? client).post({
|
|
6445
7796
|
security: [{
|
|
6446
7797
|
key: 'knowledge-bearerAuth',
|
|
6447
7798
|
scheme: 'bearer',
|
|
6448
7799
|
type: 'http'
|
|
6449
7800
|
}],
|
|
6450
|
-
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
7801
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/purge',
|
|
6451
7802
|
...options
|
|
6452
7803
|
});
|
|
6453
7804
|
/**
|
|
6454
|
-
*
|
|
7805
|
+
* Retry failed file
|
|
6455
7806
|
*
|
|
6456
|
-
*
|
|
7807
|
+
* Retries only failed files; other states return 409 FILE_INVALID_STATE. Retry after failure has not yet been observed in the documented run.
|
|
6457
7808
|
*/
|
|
6458
|
-
export const
|
|
7809
|
+
export const knowledgeRetryFile = (options) => (options.client ?? client).post({
|
|
6459
7810
|
security: [{
|
|
6460
7811
|
key: 'knowledge-bearerAuth',
|
|
6461
7812
|
scheme: 'bearer',
|
|
6462
7813
|
type: 'http'
|
|
6463
7814
|
}],
|
|
6464
|
-
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
7815
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/retry',
|
|
6465
7816
|
...options
|
|
6466
7817
|
});
|
|
6467
7818
|
/**
|
|
6468
|
-
*
|
|
7819
|
+
* List file segments
|
|
6469
7820
|
*
|
|
6470
|
-
*
|
|
7821
|
+
* 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.
|
|
6471
7822
|
*/
|
|
6472
|
-
export const
|
|
7823
|
+
export const knowledgeListSegments = (options) => (options.client ?? client).get({
|
|
6473
7824
|
security: [{
|
|
6474
7825
|
key: 'knowledge-bearerAuth',
|
|
6475
7826
|
scheme: 'bearer',
|
|
6476
7827
|
type: 'http'
|
|
6477
7828
|
}],
|
|
6478
|
-
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
7829
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/segments',
|
|
7830
|
+
...options
|
|
7831
|
+
});
|
|
7832
|
+
/**
|
|
7833
|
+
* Retrieve segment
|
|
7834
|
+
*
|
|
7835
|
+
* 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.
|
|
7836
|
+
*/
|
|
7837
|
+
export const knowledgeRetrieveSegment = (options) => (options.client ?? client).get({
|
|
7838
|
+
security: [{
|
|
7839
|
+
key: 'knowledge-bearerAuth',
|
|
7840
|
+
scheme: 'bearer',
|
|
7841
|
+
type: 'http'
|
|
7842
|
+
}],
|
|
7843
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/segments/{chunk_id}',
|
|
7844
|
+
...options
|
|
7845
|
+
});
|
|
7846
|
+
/**
|
|
7847
|
+
* List events
|
|
7848
|
+
*
|
|
7849
|
+
* 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.
|
|
7850
|
+
*/
|
|
7851
|
+
export const knowledgeListEvents = (options) => (options.client ?? client).get({
|
|
7852
|
+
security: [{
|
|
7853
|
+
key: 'knowledge-bearerAuth',
|
|
7854
|
+
scheme: 'bearer',
|
|
7855
|
+
type: 'http'
|
|
7856
|
+
}],
|
|
7857
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/events',
|
|
7858
|
+
...options
|
|
7859
|
+
});
|
|
7860
|
+
/**
|
|
7861
|
+
* List libraries
|
|
7862
|
+
*
|
|
7863
|
+
* 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.
|
|
7864
|
+
*/
|
|
7865
|
+
export const mediaListLibraries = (options) => (options?.client ?? client).get({
|
|
7866
|
+
security: [{
|
|
7867
|
+
key: 'media-BearerAuth',
|
|
7868
|
+
scheme: 'bearer',
|
|
7869
|
+
type: 'http'
|
|
7870
|
+
}],
|
|
7871
|
+
url: '/media/v1/libraries',
|
|
7872
|
+
...options
|
|
7873
|
+
});
|
|
7874
|
+
/**
|
|
7875
|
+
* Create library
|
|
7876
|
+
*
|
|
7877
|
+
* 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.
|
|
7878
|
+
*/
|
|
7879
|
+
export const mediaCreateLibrary = (options) => (options.client ?? client).post({
|
|
7880
|
+
security: [{
|
|
7881
|
+
key: 'media-BearerAuth',
|
|
7882
|
+
scheme: 'bearer',
|
|
7883
|
+
type: 'http'
|
|
7884
|
+
}],
|
|
7885
|
+
url: '/media/v1/libraries',
|
|
6479
7886
|
...options,
|
|
6480
7887
|
headers: {
|
|
6481
7888
|
'Content-Type': 'application/json',
|
|
@@ -6483,17 +7890,17 @@ export const knowledgeUpdateVectorStore = (options) => (options.client ?? client
|
|
|
6483
7890
|
}
|
|
6484
7891
|
});
|
|
6485
7892
|
/**
|
|
6486
|
-
*
|
|
7893
|
+
* Create frame URLs
|
|
6487
7894
|
*
|
|
6488
|
-
*
|
|
7895
|
+
* 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.
|
|
6489
7896
|
*/
|
|
6490
|
-
export const
|
|
7897
|
+
export const mediaCreateFrameUrls = (options) => (options.client ?? client).post({
|
|
6491
7898
|
security: [{
|
|
6492
|
-
key: '
|
|
7899
|
+
key: 'media-BearerAuth',
|
|
6493
7900
|
scheme: 'bearer',
|
|
6494
7901
|
type: 'http'
|
|
6495
7902
|
}],
|
|
6496
|
-
url: '/
|
|
7903
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/frames',
|
|
6497
7904
|
...options,
|
|
6498
7905
|
headers: {
|
|
6499
7906
|
'Content-Type': 'application/json',
|
|
@@ -6501,31 +7908,45 @@ export const knowledgeSearchVectorStore = (options) => (options.client ?? client
|
|
|
6501
7908
|
}
|
|
6502
7909
|
});
|
|
6503
7910
|
/**
|
|
6504
|
-
*
|
|
7911
|
+
* Delete library
|
|
6505
7912
|
*
|
|
6506
|
-
*
|
|
7913
|
+
* 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.
|
|
6507
7914
|
*/
|
|
6508
|
-
export const
|
|
7915
|
+
export const mediaDeleteLibrary = (options) => (options.client ?? client).delete({
|
|
6509
7916
|
security: [{
|
|
6510
|
-
key: '
|
|
7917
|
+
key: 'media-BearerAuth',
|
|
6511
7918
|
scheme: 'bearer',
|
|
6512
7919
|
type: 'http'
|
|
6513
7920
|
}],
|
|
6514
|
-
url: '/
|
|
7921
|
+
url: '/media/v1/libraries/{library_id}',
|
|
6515
7922
|
...options
|
|
6516
7923
|
});
|
|
6517
7924
|
/**
|
|
6518
|
-
*
|
|
7925
|
+
* Get library
|
|
6519
7926
|
*
|
|
6520
|
-
*
|
|
7927
|
+
* 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.
|
|
6521
7928
|
*/
|
|
6522
|
-
export const
|
|
7929
|
+
export const mediaGetLibrary = (options) => (options.client ?? client).get({
|
|
6523
7930
|
security: [{
|
|
6524
|
-
key: '
|
|
7931
|
+
key: 'media-BearerAuth',
|
|
6525
7932
|
scheme: 'bearer',
|
|
6526
7933
|
type: 'http'
|
|
6527
7934
|
}],
|
|
6528
|
-
url: '/
|
|
7935
|
+
url: '/media/v1/libraries/{library_id}',
|
|
7936
|
+
...options
|
|
7937
|
+
});
|
|
7938
|
+
/**
|
|
7939
|
+
* Update library
|
|
7940
|
+
*
|
|
7941
|
+
* 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.
|
|
7942
|
+
*/
|
|
7943
|
+
export const mediaUpdateLibrary = (options) => (options.client ?? client).patch({
|
|
7944
|
+
security: [{
|
|
7945
|
+
key: 'media-BearerAuth',
|
|
7946
|
+
scheme: 'bearer',
|
|
7947
|
+
type: 'http'
|
|
7948
|
+
}],
|
|
7949
|
+
url: '/media/v1/libraries/{library_id}',
|
|
6529
7950
|
...options,
|
|
6530
7951
|
headers: {
|
|
6531
7952
|
'Content-Type': 'application/json',
|
|
@@ -6533,77 +7954,77 @@ export const knowledgeAttachFile = (options) => (options.client ?? client).post(
|
|
|
6533
7954
|
}
|
|
6534
7955
|
});
|
|
6535
7956
|
/**
|
|
6536
|
-
*
|
|
7957
|
+
* Restore library
|
|
6537
7958
|
*
|
|
6538
|
-
*
|
|
7959
|
+
* 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.
|
|
6539
7960
|
*/
|
|
6540
|
-
export const
|
|
7961
|
+
export const mediaRestoreLibrary = (options) => (options.client ?? client).post({
|
|
6541
7962
|
security: [{
|
|
6542
|
-
key: '
|
|
7963
|
+
key: 'media-BearerAuth',
|
|
6543
7964
|
scheme: 'bearer',
|
|
6544
7965
|
type: 'http'
|
|
6545
7966
|
}],
|
|
6546
|
-
url: '/
|
|
7967
|
+
url: '/media/v1/libraries/{library_id}/restore',
|
|
6547
7968
|
...options
|
|
6548
7969
|
});
|
|
6549
7970
|
/**
|
|
6550
|
-
*
|
|
7971
|
+
* Purge library
|
|
6551
7972
|
*
|
|
6552
|
-
*
|
|
7973
|
+
* 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.
|
|
6553
7974
|
*/
|
|
6554
|
-
export const
|
|
7975
|
+
export const mediaPurgeLibrary = (options) => (options.client ?? client).post({
|
|
6555
7976
|
security: [{
|
|
6556
|
-
key: '
|
|
7977
|
+
key: 'media-BearerAuth',
|
|
6557
7978
|
scheme: 'bearer',
|
|
6558
7979
|
type: 'http'
|
|
6559
7980
|
}],
|
|
6560
|
-
url: '/
|
|
7981
|
+
url: '/media/v1/libraries/{library_id}/purge',
|
|
6561
7982
|
...options
|
|
6562
7983
|
});
|
|
6563
7984
|
/**
|
|
6564
|
-
*
|
|
7985
|
+
* List assets
|
|
6565
7986
|
*
|
|
6566
|
-
*
|
|
7987
|
+
* 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.
|
|
6567
7988
|
*/
|
|
6568
|
-
export const
|
|
7989
|
+
export const mediaListAssets = (options) => (options.client ?? client).get({
|
|
6569
7990
|
security: [{
|
|
6570
|
-
key: '
|
|
7991
|
+
key: 'media-BearerAuth',
|
|
6571
7992
|
scheme: 'bearer',
|
|
6572
7993
|
type: 'http'
|
|
6573
7994
|
}],
|
|
6574
|
-
url: '/
|
|
6575
|
-
...options
|
|
6576
|
-
headers: {
|
|
6577
|
-
'Content-Type': 'application/json',
|
|
6578
|
-
...options.headers
|
|
6579
|
-
}
|
|
7995
|
+
url: '/media/v1/libraries/{library_id}/assets',
|
|
7996
|
+
...options
|
|
6580
7997
|
});
|
|
6581
7998
|
/**
|
|
6582
|
-
*
|
|
7999
|
+
* Upload asset
|
|
6583
8000
|
*
|
|
6584
|
-
*
|
|
8001
|
+
* 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.
|
|
6585
8002
|
*/
|
|
6586
|
-
export const
|
|
8003
|
+
export const mediaUploadAsset = (options) => (options.client ?? client).post({
|
|
6587
8004
|
security: [{
|
|
6588
|
-
key: '
|
|
8005
|
+
key: 'media-BearerAuth',
|
|
6589
8006
|
scheme: 'bearer',
|
|
6590
8007
|
type: 'http'
|
|
6591
8008
|
}],
|
|
6592
|
-
url: '/
|
|
6593
|
-
...options
|
|
8009
|
+
url: '/media/v1/libraries/{library_id}/assets',
|
|
8010
|
+
...options,
|
|
8011
|
+
headers: {
|
|
8012
|
+
'Content-Type': 'application/json',
|
|
8013
|
+
...options.headers
|
|
8014
|
+
}
|
|
6594
8015
|
});
|
|
6595
8016
|
/**
|
|
6596
|
-
*
|
|
8017
|
+
* Import file
|
|
6597
8018
|
*
|
|
6598
|
-
*
|
|
8019
|
+
* 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.
|
|
6599
8020
|
*/
|
|
6600
|
-
export const
|
|
8021
|
+
export const mediaImportAsset = (options) => (options.client ?? client).post({
|
|
6601
8022
|
security: [{
|
|
6602
|
-
key: '
|
|
8023
|
+
key: 'media-BearerAuth',
|
|
6603
8024
|
scheme: 'bearer',
|
|
6604
8025
|
type: 'http'
|
|
6605
8026
|
}],
|
|
6606
|
-
url: '/
|
|
8027
|
+
url: '/media/v1/libraries/{library_id}/assets/import',
|
|
6607
8028
|
...options,
|
|
6608
8029
|
headers: {
|
|
6609
8030
|
'Content-Type': 'application/json',
|
|
@@ -6611,157 +8032,213 @@ export const knowledgeCreateFileBatch = (options) => (options.client ?? client).
|
|
|
6611
8032
|
}
|
|
6612
8033
|
});
|
|
6613
8034
|
/**
|
|
6614
|
-
*
|
|
8035
|
+
* Delete asset
|
|
6615
8036
|
*
|
|
6616
|
-
*
|
|
8037
|
+
* 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.
|
|
6617
8038
|
*/
|
|
6618
|
-
export const
|
|
8039
|
+
export const mediaDeleteAsset = (options) => (options.client ?? client).delete({
|
|
6619
8040
|
security: [{
|
|
6620
|
-
key: '
|
|
8041
|
+
key: 'media-BearerAuth',
|
|
6621
8042
|
scheme: 'bearer',
|
|
6622
8043
|
type: 'http'
|
|
6623
8044
|
}],
|
|
6624
|
-
url: '/
|
|
8045
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}',
|
|
6625
8046
|
...options
|
|
6626
8047
|
});
|
|
6627
8048
|
/**
|
|
6628
|
-
*
|
|
8049
|
+
* Get asset
|
|
6629
8050
|
*
|
|
6630
|
-
*
|
|
8051
|
+
* 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.
|
|
6631
8052
|
*/
|
|
6632
|
-
export const
|
|
8053
|
+
export const mediaGetAsset = (options) => (options.client ?? client).get({
|
|
6633
8054
|
security: [{
|
|
6634
|
-
key: '
|
|
8055
|
+
key: 'media-BearerAuth',
|
|
6635
8056
|
scheme: 'bearer',
|
|
6636
8057
|
type: 'http'
|
|
6637
8058
|
}],
|
|
6638
|
-
url: '/
|
|
8059
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}',
|
|
6639
8060
|
...options
|
|
6640
8061
|
});
|
|
6641
8062
|
/**
|
|
6642
|
-
*
|
|
8063
|
+
* Update asset
|
|
6643
8064
|
*
|
|
6644
|
-
*
|
|
8065
|
+
* 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.
|
|
6645
8066
|
*/
|
|
6646
|
-
export const
|
|
8067
|
+
export const mediaUpdateAsset = (options) => (options.client ?? client).patch({
|
|
6647
8068
|
security: [{
|
|
6648
|
-
key: '
|
|
8069
|
+
key: 'media-BearerAuth',
|
|
6649
8070
|
scheme: 'bearer',
|
|
6650
8071
|
type: 'http'
|
|
6651
8072
|
}],
|
|
6652
|
-
url: '/
|
|
8073
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}',
|
|
8074
|
+
...options,
|
|
8075
|
+
headers: {
|
|
8076
|
+
'Content-Type': 'application/json',
|
|
8077
|
+
...options.headers
|
|
8078
|
+
}
|
|
8079
|
+
});
|
|
8080
|
+
/**
|
|
8081
|
+
* Reprocess asset
|
|
8082
|
+
*
|
|
8083
|
+
* 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.
|
|
8084
|
+
*/
|
|
8085
|
+
export const mediaReprocessAsset = (options) => (options.client ?? client).post({
|
|
8086
|
+
security: [{
|
|
8087
|
+
key: 'media-BearerAuth',
|
|
8088
|
+
scheme: 'bearer',
|
|
8089
|
+
type: 'http'
|
|
8090
|
+
}],
|
|
8091
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/reprocess',
|
|
8092
|
+
...options,
|
|
8093
|
+
headers: {
|
|
8094
|
+
'Content-Type': 'application/json',
|
|
8095
|
+
...options.headers
|
|
8096
|
+
}
|
|
8097
|
+
});
|
|
8098
|
+
/**
|
|
8099
|
+
* List understandings
|
|
8100
|
+
*
|
|
8101
|
+
* 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.
|
|
8102
|
+
*/
|
|
8103
|
+
export const mediaListUnderstandings = (options) => (options.client ?? client).get({
|
|
8104
|
+
security: [{
|
|
8105
|
+
key: 'media-BearerAuth',
|
|
8106
|
+
scheme: 'bearer',
|
|
8107
|
+
type: 'http'
|
|
8108
|
+
}],
|
|
8109
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/understandings',
|
|
6653
8110
|
...options
|
|
6654
8111
|
});
|
|
6655
8112
|
/**
|
|
6656
|
-
*
|
|
8113
|
+
* Expression search
|
|
6657
8114
|
*
|
|
6658
|
-
*
|
|
8115
|
+
* 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.
|
|
6659
8116
|
*/
|
|
6660
|
-
export const
|
|
8117
|
+
export const mediaExpressionSearch = (options) => (options.client ?? client).post({
|
|
6661
8118
|
security: [{
|
|
6662
|
-
key: '
|
|
8119
|
+
key: 'media-BearerAuth',
|
|
6663
8120
|
scheme: 'bearer',
|
|
6664
8121
|
type: 'http'
|
|
6665
8122
|
}],
|
|
6666
|
-
url: '/
|
|
6667
|
-
...options
|
|
8123
|
+
url: '/media/v1/libraries/{library_id}/search/expression',
|
|
8124
|
+
...options,
|
|
8125
|
+
headers: {
|
|
8126
|
+
'Content-Type': 'application/json',
|
|
8127
|
+
...options.headers
|
|
8128
|
+
}
|
|
6668
8129
|
});
|
|
6669
8130
|
/**
|
|
6670
|
-
*
|
|
8131
|
+
* Visual search
|
|
6671
8132
|
*
|
|
6672
|
-
*
|
|
8133
|
+
* 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.
|
|
6673
8134
|
*/
|
|
6674
|
-
export const
|
|
8135
|
+
export const mediaVisualSearch = (options) => (options.client ?? client).post({
|
|
6675
8136
|
security: [{
|
|
6676
|
-
key: '
|
|
8137
|
+
key: 'media-BearerAuth',
|
|
6677
8138
|
scheme: 'bearer',
|
|
6678
8139
|
type: 'http'
|
|
6679
8140
|
}],
|
|
6680
|
-
url: '/
|
|
6681
|
-
...options
|
|
8141
|
+
url: '/media/v1/libraries/{library_id}/search/visual',
|
|
8142
|
+
...options,
|
|
8143
|
+
headers: {
|
|
8144
|
+
'Content-Type': 'application/json',
|
|
8145
|
+
...options.headers
|
|
8146
|
+
}
|
|
6682
8147
|
});
|
|
6683
8148
|
/**
|
|
6684
|
-
*
|
|
8149
|
+
* Semantic search
|
|
6685
8150
|
*
|
|
6686
|
-
*
|
|
8151
|
+
* 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.
|
|
6687
8152
|
*/
|
|
6688
|
-
export const
|
|
8153
|
+
export const mediaSemanticSearch = (options) => (options.client ?? client).post({
|
|
6689
8154
|
security: [{
|
|
6690
|
-
key: '
|
|
8155
|
+
key: 'media-BearerAuth',
|
|
6691
8156
|
scheme: 'bearer',
|
|
6692
8157
|
type: 'http'
|
|
6693
8158
|
}],
|
|
6694
|
-
url: '/
|
|
6695
|
-
...options
|
|
8159
|
+
url: '/media/v1/libraries/{library_id}/search/semantic',
|
|
8160
|
+
...options,
|
|
8161
|
+
headers: {
|
|
8162
|
+
'Content-Type': 'application/json',
|
|
8163
|
+
...options.headers
|
|
8164
|
+
}
|
|
6696
8165
|
});
|
|
6697
8166
|
/**
|
|
6698
|
-
*
|
|
8167
|
+
* Semantic search alias
|
|
6699
8168
|
*
|
|
6700
|
-
*
|
|
8169
|
+
* 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.
|
|
6701
8170
|
*/
|
|
6702
|
-
export const
|
|
8171
|
+
export const mediaSearch = (options) => (options.client ?? client).post({
|
|
6703
8172
|
security: [{
|
|
6704
|
-
key: '
|
|
8173
|
+
key: 'media-BearerAuth',
|
|
6705
8174
|
scheme: 'bearer',
|
|
6706
8175
|
type: 'http'
|
|
6707
8176
|
}],
|
|
6708
|
-
url: '/
|
|
6709
|
-
...options
|
|
8177
|
+
url: '/media/v1/libraries/{library_id}/search',
|
|
8178
|
+
...options,
|
|
8179
|
+
headers: {
|
|
8180
|
+
'Content-Type': 'application/json',
|
|
8181
|
+
...options.headers
|
|
8182
|
+
}
|
|
6710
8183
|
});
|
|
6711
8184
|
/**
|
|
6712
|
-
*
|
|
8185
|
+
* List folders
|
|
6713
8186
|
*
|
|
6714
|
-
*
|
|
8187
|
+
* undefined understood_count includes ready and partial assets; failed_count includes failed assets. Both accumulate descendants. counts_complete is false during historical backfill.
|
|
6715
8188
|
*/
|
|
6716
|
-
export const
|
|
8189
|
+
export const mediaListFolders = (options) => (options.client ?? client).get({
|
|
6717
8190
|
security: [{
|
|
6718
|
-
key: '
|
|
8191
|
+
key: 'media-BearerAuth',
|
|
6719
8192
|
scheme: 'bearer',
|
|
6720
8193
|
type: 'http'
|
|
6721
8194
|
}],
|
|
6722
|
-
url: '/
|
|
8195
|
+
url: '/media/v1/libraries/{library_id}/folders',
|
|
6723
8196
|
...options
|
|
6724
8197
|
});
|
|
6725
8198
|
/**
|
|
6726
|
-
*
|
|
8199
|
+
* Create batch
|
|
6727
8200
|
*
|
|
6728
|
-
*
|
|
8201
|
+
* 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.
|
|
6729
8202
|
*/
|
|
6730
|
-
export const
|
|
8203
|
+
export const mediaCreateBatch = (options) => (options.client ?? client).post({
|
|
6731
8204
|
security: [{
|
|
6732
|
-
key: '
|
|
8205
|
+
key: 'media-BearerAuth',
|
|
6733
8206
|
scheme: 'bearer',
|
|
6734
8207
|
type: 'http'
|
|
6735
8208
|
}],
|
|
6736
|
-
url: '/
|
|
6737
|
-
...options
|
|
8209
|
+
url: '/media/v1/libraries/{library_id}/batches',
|
|
8210
|
+
...options,
|
|
8211
|
+
headers: {
|
|
8212
|
+
'Content-Type': 'application/json',
|
|
8213
|
+
...options.headers
|
|
8214
|
+
}
|
|
6738
8215
|
});
|
|
6739
8216
|
/**
|
|
6740
|
-
*
|
|
8217
|
+
* Get batch
|
|
6741
8218
|
*
|
|
6742
|
-
*
|
|
8219
|
+
* 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.
|
|
6743
8220
|
*/
|
|
6744
|
-
export const
|
|
8221
|
+
export const mediaGetBatch = (options) => (options.client ?? client).get({
|
|
6745
8222
|
security: [{
|
|
6746
8223
|
key: 'media-BearerAuth',
|
|
6747
8224
|
scheme: 'bearer',
|
|
6748
8225
|
type: 'http'
|
|
6749
8226
|
}],
|
|
6750
|
-
url: '/media/v1/libraries',
|
|
8227
|
+
url: '/media/v1/libraries/{library_id}/batches/{job_id}',
|
|
6751
8228
|
...options
|
|
6752
8229
|
});
|
|
6753
8230
|
/**
|
|
6754
|
-
*
|
|
8231
|
+
* Batch assets alias
|
|
6755
8232
|
*
|
|
6756
|
-
*
|
|
8233
|
+
* 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.
|
|
6757
8234
|
*/
|
|
6758
|
-
export const
|
|
8235
|
+
export const mediaBatchAssets = (options) => (options.client ?? client).post({
|
|
6759
8236
|
security: [{
|
|
6760
8237
|
key: 'media-BearerAuth',
|
|
6761
8238
|
scheme: 'bearer',
|
|
6762
8239
|
type: 'http'
|
|
6763
8240
|
}],
|
|
6764
|
-
url: '/media/v1/libraries',
|
|
8241
|
+
url: '/media/v1/libraries/{library_id}/assets:batch',
|
|
6765
8242
|
...options,
|
|
6766
8243
|
headers: {
|
|
6767
8244
|
'Content-Type': 'application/json',
|
|
@@ -6769,45 +8246,45 @@ export const mediaCreateLibrary = (options) => (options.client ?? client).post({
|
|
|
6769
8246
|
}
|
|
6770
8247
|
});
|
|
6771
8248
|
/**
|
|
6772
|
-
*
|
|
8249
|
+
* Get job
|
|
6773
8250
|
*
|
|
6774
|
-
*
|
|
8251
|
+
* 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.
|
|
6775
8252
|
*/
|
|
6776
|
-
export const
|
|
8253
|
+
export const mediaGetJob = (options) => (options.client ?? client).get({
|
|
6777
8254
|
security: [{
|
|
6778
8255
|
key: 'media-BearerAuth',
|
|
6779
8256
|
scheme: 'bearer',
|
|
6780
8257
|
type: 'http'
|
|
6781
8258
|
}],
|
|
6782
|
-
url: '/media/v1/libraries/{library_id}',
|
|
8259
|
+
url: '/media/v1/libraries/{library_id}/jobs/{job_id}',
|
|
6783
8260
|
...options
|
|
6784
8261
|
});
|
|
6785
8262
|
/**
|
|
6786
|
-
*
|
|
8263
|
+
* List events
|
|
6787
8264
|
*
|
|
6788
|
-
* Read
|
|
8265
|
+
* 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.
|
|
6789
8266
|
*/
|
|
6790
|
-
export const
|
|
8267
|
+
export const mediaListEvents = (options) => (options.client ?? client).get({
|
|
6791
8268
|
security: [{
|
|
6792
8269
|
key: 'media-BearerAuth',
|
|
6793
8270
|
scheme: 'bearer',
|
|
6794
8271
|
type: 'http'
|
|
6795
8272
|
}],
|
|
6796
|
-
url: '/media/v1/libraries/{library_id}',
|
|
8273
|
+
url: '/media/v1/libraries/{library_id}/events',
|
|
6797
8274
|
...options
|
|
6798
8275
|
});
|
|
6799
8276
|
/**
|
|
6800
|
-
*
|
|
8277
|
+
* Create delivery token
|
|
6801
8278
|
*
|
|
6802
|
-
*
|
|
8279
|
+
* 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.
|
|
6803
8280
|
*/
|
|
6804
|
-
export const
|
|
8281
|
+
export const mediaCreateDeliveryToken = (options) => (options.client ?? client).post({
|
|
6805
8282
|
security: [{
|
|
6806
8283
|
key: 'media-BearerAuth',
|
|
6807
8284
|
scheme: 'bearer',
|
|
6808
8285
|
type: 'http'
|
|
6809
8286
|
}],
|
|
6810
|
-
url: '/media/v1/libraries/{library_id}',
|
|
8287
|
+
url: '/media/v1/libraries/{library_id}/delivery_tokens',
|
|
6811
8288
|
...options,
|
|
6812
8289
|
headers: {
|
|
6813
8290
|
'Content-Type': 'application/json',
|
|
@@ -6815,77 +8292,91 @@ export const mediaUpdateLibrary = (options) => (options.client ?? client).patch(
|
|
|
6815
8292
|
}
|
|
6816
8293
|
});
|
|
6817
8294
|
/**
|
|
6818
|
-
*
|
|
8295
|
+
* Summarize understanding failures
|
|
6819
8296
|
*
|
|
6820
|
-
*
|
|
8297
|
+
* 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.
|
|
6821
8298
|
*/
|
|
6822
|
-
export const
|
|
8299
|
+
export const mediaUnderstandingFailureSummary = (options) => (options.client ?? client).get({
|
|
6823
8300
|
security: [{
|
|
6824
8301
|
key: 'media-BearerAuth',
|
|
6825
8302
|
scheme: 'bearer',
|
|
6826
8303
|
type: 'http'
|
|
6827
8304
|
}],
|
|
6828
|
-
url: '/media/v1/libraries/{library_id}/
|
|
8305
|
+
url: '/media/v1/libraries/{library_id}/understandings/failure_summary',
|
|
6829
8306
|
...options
|
|
6830
8307
|
});
|
|
6831
8308
|
/**
|
|
6832
|
-
*
|
|
8309
|
+
* List understanding results across a library
|
|
6833
8310
|
*
|
|
6834
|
-
*
|
|
8311
|
+
* 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.
|
|
6835
8312
|
*/
|
|
6836
|
-
export const
|
|
8313
|
+
export const mediaListUnderstandingsByLibrary = (options) => (options.client ?? client).get({
|
|
6837
8314
|
security: [{
|
|
6838
8315
|
key: 'media-BearerAuth',
|
|
6839
8316
|
scheme: 'bearer',
|
|
6840
8317
|
type: 'http'
|
|
6841
8318
|
}],
|
|
6842
|
-
url: '/media/v1/libraries/{library_id}/
|
|
8319
|
+
url: '/media/v1/libraries/{library_id}/understandings',
|
|
6843
8320
|
...options
|
|
6844
8321
|
});
|
|
6845
8322
|
/**
|
|
6846
|
-
*
|
|
8323
|
+
* Create video generation
|
|
6847
8324
|
*
|
|
6848
|
-
*
|
|
8325
|
+
* 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.
|
|
6849
8326
|
*/
|
|
6850
|
-
export const
|
|
8327
|
+
export const mediaCreateGeneration = (options) => (options.client ?? client).post({
|
|
6851
8328
|
security: [{
|
|
6852
8329
|
key: 'media-BearerAuth',
|
|
6853
8330
|
scheme: 'bearer',
|
|
6854
8331
|
type: 'http'
|
|
6855
8332
|
}],
|
|
6856
|
-
url: '/media/v1/libraries/{library_id}/
|
|
8333
|
+
url: '/media/v1/libraries/{library_id}/generations',
|
|
8334
|
+
...options,
|
|
8335
|
+
headers: {
|
|
8336
|
+
'Content-Type': 'application/json',
|
|
8337
|
+
...options.headers
|
|
8338
|
+
}
|
|
8339
|
+
});
|
|
8340
|
+
/**
|
|
8341
|
+
* List jobs
|
|
8342
|
+
*
|
|
8343
|
+
* 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.
|
|
8344
|
+
*/
|
|
8345
|
+
export const mediaListJobs = (options) => (options.client ?? client).get({
|
|
8346
|
+
security: [{
|
|
8347
|
+
key: 'media-BearerAuth',
|
|
8348
|
+
scheme: 'bearer',
|
|
8349
|
+
type: 'http'
|
|
8350
|
+
}],
|
|
8351
|
+
url: '/media/v1/libraries/{library_id}/jobs',
|
|
6857
8352
|
...options
|
|
6858
8353
|
});
|
|
6859
8354
|
/**
|
|
6860
|
-
*
|
|
8355
|
+
* Cancel job
|
|
6861
8356
|
*
|
|
6862
|
-
*
|
|
8357
|
+
* Cancel a queued or running generation job. Already completed outputs remain available to save; poll or read the returned Job to confirm its status.
|
|
6863
8358
|
*/
|
|
6864
|
-
export const
|
|
8359
|
+
export const mediaCancelJob = (options) => (options.client ?? client).post({
|
|
6865
8360
|
security: [{
|
|
6866
8361
|
key: 'media-BearerAuth',
|
|
6867
8362
|
scheme: 'bearer',
|
|
6868
8363
|
type: 'http'
|
|
6869
8364
|
}],
|
|
6870
|
-
url: '/media/v1/libraries/{library_id}/
|
|
6871
|
-
...options
|
|
6872
|
-
headers: {
|
|
6873
|
-
'Content-Type': 'application/json',
|
|
6874
|
-
...options.headers
|
|
6875
|
-
}
|
|
8365
|
+
url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel',
|
|
8366
|
+
...options
|
|
6876
8367
|
});
|
|
6877
8368
|
/**
|
|
6878
|
-
*
|
|
8369
|
+
* Save generation output
|
|
6879
8370
|
*
|
|
6880
|
-
*
|
|
8371
|
+
* 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.
|
|
6881
8372
|
*/
|
|
6882
|
-
export const
|
|
8373
|
+
export const mediaSaveGenerationOutput = (options) => (options.client ?? client).post({
|
|
6883
8374
|
security: [{
|
|
6884
8375
|
key: 'media-BearerAuth',
|
|
6885
8376
|
scheme: 'bearer',
|
|
6886
8377
|
type: 'http'
|
|
6887
8378
|
}],
|
|
6888
|
-
url: '/media/v1/libraries/{library_id}/
|
|
8379
|
+
url: '/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save',
|
|
6889
8380
|
...options,
|
|
6890
8381
|
headers: {
|
|
6891
8382
|
'Content-Type': 'application/json',
|
|
@@ -6893,45 +8384,45 @@ export const mediaImportAsset = (options) => (options.client ?? client).post({
|
|
|
6893
8384
|
}
|
|
6894
8385
|
});
|
|
6895
8386
|
/**
|
|
6896
|
-
*
|
|
8387
|
+
* Get generation capabilities
|
|
6897
8388
|
*
|
|
6898
|
-
*
|
|
8389
|
+
* 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.
|
|
6899
8390
|
*/
|
|
6900
|
-
export const
|
|
8391
|
+
export const mediaGetGenerationCapabilities = (options) => (options?.client ?? client).get({
|
|
6901
8392
|
security: [{
|
|
6902
8393
|
key: 'media-BearerAuth',
|
|
6903
8394
|
scheme: 'bearer',
|
|
6904
8395
|
type: 'http'
|
|
6905
8396
|
}],
|
|
6906
|
-
url: '/media/v1/
|
|
8397
|
+
url: '/media/v1/generation/capabilities',
|
|
6907
8398
|
...options
|
|
6908
8399
|
});
|
|
6909
8400
|
/**
|
|
6910
|
-
*
|
|
8401
|
+
* List types
|
|
6911
8402
|
*
|
|
6912
|
-
* Read
|
|
8403
|
+
* 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.
|
|
6913
8404
|
*/
|
|
6914
|
-
export const
|
|
8405
|
+
export const ontologyListTypes = (options) => (options?.client ?? client).get({
|
|
6915
8406
|
security: [{
|
|
6916
|
-
key: '
|
|
8407
|
+
key: 'ontology-bearerAuth',
|
|
6917
8408
|
scheme: 'bearer',
|
|
6918
8409
|
type: 'http'
|
|
6919
8410
|
}],
|
|
6920
|
-
url: '/
|
|
8411
|
+
url: '/ontology/v1/types',
|
|
6921
8412
|
...options
|
|
6922
8413
|
});
|
|
6923
8414
|
/**
|
|
6924
|
-
*
|
|
8415
|
+
* Register type
|
|
6925
8416
|
*
|
|
6926
|
-
*
|
|
8417
|
+
* 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.
|
|
6927
8418
|
*/
|
|
6928
|
-
export const
|
|
8419
|
+
export const ontologyRegisterType = (options) => (options.client ?? client).post({
|
|
6929
8420
|
security: [{
|
|
6930
|
-
key: '
|
|
8421
|
+
key: 'ontology-bearerAuth',
|
|
6931
8422
|
scheme: 'bearer',
|
|
6932
8423
|
type: 'http'
|
|
6933
8424
|
}],
|
|
6934
|
-
url: '/
|
|
8425
|
+
url: '/ontology/v1/types',
|
|
6935
8426
|
...options,
|
|
6936
8427
|
headers: {
|
|
6937
8428
|
'Content-Type': 'application/json',
|
|
@@ -6939,49 +8430,45 @@ export const mediaUpdateAsset = (options) => (options.client ?? client).patch({
|
|
|
6939
8430
|
}
|
|
6940
8431
|
});
|
|
6941
8432
|
/**
|
|
6942
|
-
*
|
|
8433
|
+
* Retrieve type
|
|
6943
8434
|
*
|
|
6944
|
-
*
|
|
8435
|
+
* 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.
|
|
6945
8436
|
*/
|
|
6946
|
-
export const
|
|
8437
|
+
export const ontologyRetrieveType = (options) => (options.client ?? client).get({
|
|
6947
8438
|
security: [{
|
|
6948
|
-
key: '
|
|
8439
|
+
key: 'ontology-bearerAuth',
|
|
6949
8440
|
scheme: 'bearer',
|
|
6950
8441
|
type: 'http'
|
|
6951
8442
|
}],
|
|
6952
|
-
url: '/
|
|
6953
|
-
...options
|
|
6954
|
-
headers: {
|
|
6955
|
-
'Content-Type': 'application/json',
|
|
6956
|
-
...options.headers
|
|
6957
|
-
}
|
|
8443
|
+
url: '/ontology/v1/types/{name}',
|
|
8444
|
+
...options
|
|
6958
8445
|
});
|
|
6959
8446
|
/**
|
|
6960
|
-
* List
|
|
8447
|
+
* List nodes
|
|
6961
8448
|
*
|
|
6962
|
-
*
|
|
8449
|
+
* 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.
|
|
6963
8450
|
*/
|
|
6964
|
-
export const
|
|
8451
|
+
export const ontologyListNodes = (options) => (options?.client ?? client).get({
|
|
6965
8452
|
security: [{
|
|
6966
|
-
key: '
|
|
8453
|
+
key: 'ontology-bearerAuth',
|
|
6967
8454
|
scheme: 'bearer',
|
|
6968
8455
|
type: 'http'
|
|
6969
8456
|
}],
|
|
6970
|
-
url: '/
|
|
8457
|
+
url: '/ontology/v1/nodes',
|
|
6971
8458
|
...options
|
|
6972
8459
|
});
|
|
6973
8460
|
/**
|
|
6974
|
-
*
|
|
8461
|
+
* Create node
|
|
6975
8462
|
*
|
|
6976
|
-
*
|
|
8463
|
+
* 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.
|
|
6977
8464
|
*/
|
|
6978
|
-
export const
|
|
8465
|
+
export const ontologyCreateNode = (options) => (options.client ?? client).post({
|
|
6979
8466
|
security: [{
|
|
6980
|
-
key: '
|
|
8467
|
+
key: 'ontology-bearerAuth',
|
|
6981
8468
|
scheme: 'bearer',
|
|
6982
8469
|
type: 'http'
|
|
6983
8470
|
}],
|
|
6984
|
-
url: '/
|
|
8471
|
+
url: '/ontology/v1/nodes',
|
|
6985
8472
|
...options,
|
|
6986
8473
|
headers: {
|
|
6987
8474
|
'Content-Type': 'application/json',
|
|
@@ -6989,35 +8476,31 @@ export const mediaExpressionSearch = (options) => (options.client ?? client).pos
|
|
|
6989
8476
|
}
|
|
6990
8477
|
});
|
|
6991
8478
|
/**
|
|
6992
|
-
*
|
|
8479
|
+
* Retrieve node
|
|
6993
8480
|
*
|
|
6994
|
-
*
|
|
8481
|
+
* 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.
|
|
6995
8482
|
*/
|
|
6996
|
-
export const
|
|
8483
|
+
export const ontologyRetrieveNode = (options) => (options.client ?? client).get({
|
|
6997
8484
|
security: [{
|
|
6998
|
-
key: '
|
|
8485
|
+
key: 'ontology-bearerAuth',
|
|
6999
8486
|
scheme: 'bearer',
|
|
7000
8487
|
type: 'http'
|
|
7001
8488
|
}],
|
|
7002
|
-
url: '/
|
|
7003
|
-
...options
|
|
7004
|
-
headers: {
|
|
7005
|
-
'Content-Type': 'application/json',
|
|
7006
|
-
...options.headers
|
|
7007
|
-
}
|
|
8489
|
+
url: '/ontology/v1/nodes/{node_id}',
|
|
8490
|
+
...options
|
|
7008
8491
|
});
|
|
7009
8492
|
/**
|
|
7010
|
-
*
|
|
8493
|
+
* Update node
|
|
7011
8494
|
*
|
|
7012
|
-
*
|
|
8495
|
+
* 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.
|
|
7013
8496
|
*/
|
|
7014
|
-
export const
|
|
8497
|
+
export const ontologyUpdateNode = (options) => (options.client ?? client).patch({
|
|
7015
8498
|
security: [{
|
|
7016
|
-
key: '
|
|
8499
|
+
key: 'ontology-bearerAuth',
|
|
7017
8500
|
scheme: 'bearer',
|
|
7018
8501
|
type: 'http'
|
|
7019
8502
|
}],
|
|
7020
|
-
url: '/
|
|
8503
|
+
url: '/ontology/v1/nodes/{node_id}',
|
|
7021
8504
|
...options,
|
|
7022
8505
|
headers: {
|
|
7023
8506
|
'Content-Type': 'application/json',
|
|
@@ -7025,17 +8508,17 @@ export const mediaSemanticSearch = (options) => (options.client ?? client).post(
|
|
|
7025
8508
|
}
|
|
7026
8509
|
});
|
|
7027
8510
|
/**
|
|
7028
|
-
*
|
|
8511
|
+
* Merge node
|
|
7029
8512
|
*
|
|
7030
|
-
*
|
|
8513
|
+
* 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.
|
|
7031
8514
|
*/
|
|
7032
|
-
export const
|
|
8515
|
+
export const ontologyMergeNode = (options) => (options.client ?? client).post({
|
|
7033
8516
|
security: [{
|
|
7034
|
-
key: '
|
|
8517
|
+
key: 'ontology-bearerAuth',
|
|
7035
8518
|
scheme: 'bearer',
|
|
7036
8519
|
type: 'http'
|
|
7037
8520
|
}],
|
|
7038
|
-
url: '/
|
|
8521
|
+
url: '/ontology/v1/nodes/{node_id}/merge',
|
|
7039
8522
|
...options,
|
|
7040
8523
|
headers: {
|
|
7041
8524
|
'Content-Type': 'application/json',
|
|
@@ -7043,31 +8526,31 @@ export const mediaSearch = (options) => (options.client ?? client).post({
|
|
|
7043
8526
|
}
|
|
7044
8527
|
});
|
|
7045
8528
|
/**
|
|
7046
|
-
* List
|
|
8529
|
+
* List relations
|
|
7047
8530
|
*
|
|
7048
|
-
*
|
|
8531
|
+
* 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.
|
|
7049
8532
|
*/
|
|
7050
|
-
export const
|
|
8533
|
+
export const ontologyListRelations = (options) => (options?.client ?? client).get({
|
|
7051
8534
|
security: [{
|
|
7052
|
-
key: '
|
|
8535
|
+
key: 'ontology-bearerAuth',
|
|
7053
8536
|
scheme: 'bearer',
|
|
7054
8537
|
type: 'http'
|
|
7055
8538
|
}],
|
|
7056
|
-
url: '/
|
|
8539
|
+
url: '/ontology/v1/relations',
|
|
7057
8540
|
...options
|
|
7058
8541
|
});
|
|
7059
8542
|
/**
|
|
7060
|
-
* Create
|
|
8543
|
+
* Create relation
|
|
7061
8544
|
*
|
|
7062
|
-
*
|
|
8545
|
+
* 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.
|
|
7063
8546
|
*/
|
|
7064
|
-
export const
|
|
8547
|
+
export const ontologyCreateRelation = (options) => (options.client ?? client).post({
|
|
7065
8548
|
security: [{
|
|
7066
|
-
key: '
|
|
8549
|
+
key: 'ontology-bearerAuth',
|
|
7067
8550
|
scheme: 'bearer',
|
|
7068
8551
|
type: 'http'
|
|
7069
8552
|
}],
|
|
7070
|
-
url: '/
|
|
8553
|
+
url: '/ontology/v1/relations',
|
|
7071
8554
|
...options,
|
|
7072
8555
|
headers: {
|
|
7073
8556
|
'Content-Type': 'application/json',
|
|
@@ -7075,31 +8558,31 @@ export const mediaCreateBatch = (options) => (options.client ?? client).post({
|
|
|
7075
8558
|
}
|
|
7076
8559
|
});
|
|
7077
8560
|
/**
|
|
7078
|
-
*
|
|
8561
|
+
* Retrieve relation
|
|
7079
8562
|
*
|
|
7080
|
-
* Read
|
|
8563
|
+
* 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.
|
|
7081
8564
|
*/
|
|
7082
|
-
export const
|
|
8565
|
+
export const ontologyRetrieveRelation = (options) => (options.client ?? client).get({
|
|
7083
8566
|
security: [{
|
|
7084
|
-
key: '
|
|
8567
|
+
key: 'ontology-bearerAuth',
|
|
7085
8568
|
scheme: 'bearer',
|
|
7086
8569
|
type: 'http'
|
|
7087
8570
|
}],
|
|
7088
|
-
url: '/
|
|
8571
|
+
url: '/ontology/v1/relations/{relation_id}',
|
|
7089
8572
|
...options
|
|
7090
8573
|
});
|
|
7091
8574
|
/**
|
|
7092
|
-
*
|
|
8575
|
+
* Invalidate relation
|
|
7093
8576
|
*
|
|
7094
|
-
*
|
|
8577
|
+
* 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.
|
|
7095
8578
|
*/
|
|
7096
|
-
export const
|
|
8579
|
+
export const ontologyInvalidateRelation = (options) => (options.client ?? client).post({
|
|
7097
8580
|
security: [{
|
|
7098
|
-
key: '
|
|
8581
|
+
key: 'ontology-bearerAuth',
|
|
7099
8582
|
scheme: 'bearer',
|
|
7100
8583
|
type: 'http'
|
|
7101
8584
|
}],
|
|
7102
|
-
url: '/
|
|
8585
|
+
url: '/ontology/v1/relations/{relation_id}/invalidate',
|
|
7103
8586
|
...options,
|
|
7104
8587
|
headers: {
|
|
7105
8588
|
'Content-Type': 'application/json',
|
|
@@ -7107,45 +8590,35 @@ export const mediaBatchAssets = (options) => (options.client ?? client).post({
|
|
|
7107
8590
|
}
|
|
7108
8591
|
});
|
|
7109
8592
|
/**
|
|
7110
|
-
*
|
|
7111
|
-
*
|
|
7112
|
-
* Alias of batch retrieval. Read the job returned by a batch request, including terminal status, successful and failed counts, and individual failure codes.
|
|
7113
|
-
*/
|
|
7114
|
-
export const mediaGetJob = (options) => (options.client ?? client).get({
|
|
7115
|
-
security: [{
|
|
7116
|
-
key: 'media-BearerAuth',
|
|
7117
|
-
scheme: 'bearer',
|
|
7118
|
-
type: 'http'
|
|
7119
|
-
}],
|
|
7120
|
-
url: '/media/v1/libraries/{library_id}/jobs/{job_id}',
|
|
7121
|
-
...options
|
|
7122
|
-
});
|
|
7123
|
-
/**
|
|
7124
|
-
* List events
|
|
8593
|
+
* Apply changeset
|
|
7125
8594
|
*
|
|
7126
|
-
*
|
|
8595
|
+
* 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.
|
|
7127
8596
|
*/
|
|
7128
|
-
export const
|
|
8597
|
+
export const ontologyApplyChangeset = (options) => (options.client ?? client).post({
|
|
7129
8598
|
security: [{
|
|
7130
|
-
key: '
|
|
8599
|
+
key: 'ontology-bearerAuth',
|
|
7131
8600
|
scheme: 'bearer',
|
|
7132
8601
|
type: 'http'
|
|
7133
8602
|
}],
|
|
7134
|
-
url: '/
|
|
7135
|
-
...options
|
|
8603
|
+
url: '/ontology/v1/changesets',
|
|
8604
|
+
...options,
|
|
8605
|
+
headers: {
|
|
8606
|
+
'Content-Type': 'application/json',
|
|
8607
|
+
...options.headers
|
|
8608
|
+
}
|
|
7136
8609
|
});
|
|
7137
8610
|
/**
|
|
7138
|
-
*
|
|
8611
|
+
* Search nodes
|
|
7139
8612
|
*
|
|
7140
|
-
*
|
|
8613
|
+
* 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.
|
|
7141
8614
|
*/
|
|
7142
|
-
export const
|
|
8615
|
+
export const ontologySearch = (options) => (options.client ?? client).post({
|
|
7143
8616
|
security: [{
|
|
7144
|
-
key: '
|
|
8617
|
+
key: 'ontology-bearerAuth',
|
|
7145
8618
|
scheme: 'bearer',
|
|
7146
8619
|
type: 'http'
|
|
7147
8620
|
}],
|
|
7148
|
-
url: '/
|
|
8621
|
+
url: '/ontology/v1/search',
|
|
7149
8622
|
...options,
|
|
7150
8623
|
headers: {
|
|
7151
8624
|
'Content-Type': 'application/json',
|
|
@@ -8252,7 +9725,7 @@ export const vaultListVaults = (options) => (options?.client ?? client).get({
|
|
|
8252
9725
|
/**
|
|
8253
9726
|
* Create vault
|
|
8254
9727
|
*
|
|
8255
|
-
* 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.
|
|
9728
|
+
* 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.
|
|
8256
9729
|
*/
|
|
8257
9730
|
export const vaultCreateVault = (options) => (options.client ?? client).post({
|
|
8258
9731
|
security: [{
|
|
@@ -8848,7 +10321,7 @@ export const ticketGetLabels = (options) => (options?.client ?? client).get({
|
|
|
8848
10321
|
/**
|
|
8849
10322
|
* Create or add labels
|
|
8850
10323
|
*
|
|
8851
|
-
* Create or add labels 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.
|
|
10324
|
+
* Create or add labels 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.
|
|
8852
10325
|
*/
|
|
8853
10326
|
export const ticketPostLabels = (options) => (options.client ?? client).post({
|
|
8854
10327
|
security: [{
|
|
@@ -8870,7 +10343,7 @@ export const ticketPostLabels = (options) => (options.client ?? client).post({
|
|
|
8870
10343
|
/**
|
|
8871
10344
|
* Remove labels
|
|
8872
10345
|
*
|
|
8873
|
-
* Remove labels 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.
|
|
10346
|
+
* Remove labels 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.
|
|
8874
10347
|
*/
|
|
8875
10348
|
export const ticketDeleteLabelsName = (options) => (options.client ?? client).delete({
|
|
8876
10349
|
security: [{
|
|
@@ -8888,7 +10361,7 @@ export const ticketDeleteLabelsName = (options) => (options.client ?? client).de
|
|
|
8888
10361
|
/**
|
|
8889
10362
|
* Update labels
|
|
8890
10363
|
*
|
|
8891
|
-
* Update labels 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.
|
|
10364
|
+
* Update labels 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.
|
|
8892
10365
|
*/
|
|
8893
10366
|
export const ticketPatchLabelsName = (options) => (options.client ?? client).patch({
|
|
8894
10367
|
security: [{
|