@deepraxis/sdk 0.1.1-dev.463d5b5 → 0.1.1-dev.4786c3d
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 +92 -1
- package/README.md +2 -2
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +332 -117
- package/dist/generated/sdk.gen.js +575 -116
- package/dist/generated/types.gen.d.ts +5669 -2196
- package/dist/operations.generated.d.ts +869 -81
- package/dist/operations.generated.js +1195 -225
- package/dist/resources.generated.d.ts +83 -8
- package/dist/resources.generated.js +59 -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
|
*
|
|
@@ -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: [{
|
|
@@ -6371,85 +6409,154 @@ export const cutUndeleteProject = (options) => (options.client ?? client).post({
|
|
|
6371
6409
|
*
|
|
6372
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);`
|
|
6373
6411
|
*
|
|
6374
|
-
*
|
|
6375
|
-
*
|
|
6376
|
-
* Functions are synchronous globals; do not import them. `project` is the current project ID. TrackId and ClipId are strings returned by AddTrack and Insert or read from GetTimeline. Reads see earlier writes in the same script.
|
|
6377
|
-
*
|
|
6378
|
-
* ```ts
|
|
6379
|
-
* GetTimeline(o?: { from?: number; to?: number; tracks?: TrackId[] }): TimelineView;
|
|
6380
|
-
* GetItem(id: ClipId): ItemView;
|
|
6381
|
-
* FindItems<T>(visit: (item: ItemView, ctx: { track: TrackView; index: number }) => T | undefined): T[];
|
|
6382
|
-
* GetMedia(ref: MediaRef): MediaInfo;
|
|
6383
|
-
* GetTranscript(ref: MediaRef, o?: { from?: number; to?: number }): Word[];
|
|
6384
|
-
* GetAnalysis(ref: MediaRef, kind: AnalysisKind): Segment[];
|
|
6385
|
-
* Insert(track: TrackId, item: ItemInit, o?: { ripple?: boolean }): ClipId;
|
|
6386
|
-
* Update(id: ClipId, patch: ItemPatchView): void;
|
|
6387
|
-
* Delete(id: ClipId, o?: { ripple?: boolean }): void;
|
|
6388
|
-
* Split(id: ClipId, at: number): ClipId;
|
|
6389
|
-
* Trim(id: ClipId, edge: "in" | "out", delta: number, o?: { ripple?: boolean }): void;
|
|
6390
|
-
* Move(id: ClipId, start: number, track?: TrackId): void;
|
|
6391
|
-
* RippleDeleteRange(from: number, to: number, tracks?: TrackId[]): void;
|
|
6392
|
-
* AddTrack(kind: "video" | "audio" | "caption", init?: { name?: string }, index?: number): TrackId;
|
|
6393
|
-
* UpdateTrack(id: TrackId, patch: TrackPatch): void;
|
|
6394
|
-
* DeleteTrack(id: TrackId): void;
|
|
6395
|
-
* SetSettings(patch: Partial<ProjectSettingsView>): void;
|
|
6396
|
-
* AddCaptionsFromTranscript(track: TrackId, source: ClipId, o?: { style?: Partial<CaptionStyle>; maxChars?: number }): ClipId[];
|
|
6397
|
-
* SetMarker(at: number, label: string): string;
|
|
6398
|
-
* Print(...values: unknown[]): void;
|
|
6399
|
-
* Preview(at: number[]): void;
|
|
6400
|
-
* ```
|
|
6401
|
-
*
|
|
6402
|
-
* | Functions | Behavior and arguments |
|
|
6403
|
-
* | --- | --- |
|
|
6404
|
-
* | GetTimeline, GetItem | Read compact item views: id, track, type, start, end, length, optional media, sourceIn/sourceOut, text and offline reason. GetTimeline returns duration and tracks (id, kind, name, index, locked, items); from/to and tracks narrow the read. |
|
|
6405
|
-
* | FindItems | Visit items with their track and index; return undefined to omit an item, any other value to collect it. |
|
|
6406
|
-
* | GetMedia | Read metadata for `{libraryId, assetId}` in a bound library: kind, dimensions, fps, hasAudio and durationUs when available. durationUs is microseconds. |
|
|
6407
|
-
* | GetTranscript, GetAnalysis | Read available transcript words or silence/filler/scenes segments. Transcript filter from/to is seconds; returned word and segment from/to values are source microseconds (divide by 1,000,000 for editing). Words contain text and optional speaker/filler; segments may include label/confidence. Request analysis first if unavailable. |
|
|
6408
|
-
* | Insert, Update, Delete | Insert returns the new clip ID; Update changes supplied fields; Delete removes the clip. Optional ripple on Insert/Delete closes or opens space on the track. |
|
|
6409
|
-
* | Split, Trim, Move | Split at a timeline position and return the new right-hand clip ID. Trim changes the in or out edge by delta seconds. Move sets the timeline start and optionally a new track. |
|
|
6410
|
-
* | RippleDeleteRange | Delete a timeline interval and close its gap on the specified tracks, or all unlocked tracks when omitted. |
|
|
6411
|
-
* | AddTrack, UpdateTrack, DeleteTrack | Add video/audio/caption tracks; index selects layer order (0 is top). TrackPatch supports name, locked, hidden, muted, gainDb and style as appropriate to track kind. |
|
|
6412
|
-
* | SetSettings | Supply any of width/height (pixels), fps (frames per second), background (color). |
|
|
6413
|
-
* | AddCaptionsFromTranscript | Create captions from an audio/video clip's kept words. Optional maxChars is 1–1000, default 16; style updates the caption track. Returns caption IDs. |
|
|
6414
|
-
* | SetMarker | Add a label at a timeline time and return its ID. |
|
|
6415
|
-
* | Print, Preview | Print appends text to prints. Preview requests up to eight times total per execute and puts images in the result's frames. Each url is an inline PNG data URL, not an HTTP image link. Decode the base64 payload to save an image. Codemode returns at most four images per call; request at most four times there. |
|
|
6416
|
-
*
|
|
6417
|
-
* #### Insert fields (ItemInit)
|
|
6418
|
-
*
|
|
6419
|
-
* Every item requires `type` and `start`. Times used for editing are seconds and snap to the project frame rate: start, length, sourceIn, fadeIn/fadeOut, transition length, keyframe at, reveal delay/stagger/duration. Keyframe and reveal times are relative to the clip start. Video/audio may omit length to use the remaining source duration; other types require length.
|
|
6420
|
-
*
|
|
6421
|
-
* | type | Required fields beyond type/start | Optional fields |
|
|
6422
|
-
* | --- | --- | --- |
|
|
6423
|
-
* | video | media | length, sourceIn, volumeDb, transform, fit, animate, transitionIn, transitionOut |
|
|
6424
|
-
* | image | media, length | transform, fit, animate, transitionIn, transitionOut |
|
|
6425
|
-
* | text | text, length | style, transform, reveal, animate, transitionIn, transitionOut |
|
|
6426
|
-
* | color | color, length | transform, fill, animate, transitionIn, transitionOut |
|
|
6427
|
-
* | shape | shape, length, width, height, fill | radius, stroke, transform, animate, transitionIn, transitionOut |
|
|
6428
|
-
* | audio | media | length, sourceIn, volumeDb, fadeIn, fadeOut, transitionIn, transitionOut |
|
|
6429
|
-
* | caption | text, length | — |
|
|
6430
|
-
*
|
|
6431
|
-
* Video tracks accept video/image/text/color/shape; audio and caption tracks accept their corresponding type. Media is `{libraryId: string, assetId: string}` from a bound library. sourceIn defaults to 0, volumeDb to 0 dB, audio fades to 0 seconds. fit defaults to contain: contain fits the whole image, cover fills and crops, fill stretches, none keeps native dimensions.
|
|
6412
|
+
* <!-- cut-reference:start -->
|
|
6413
|
+
* ### Script function, field and error reference
|
|
6432
6414
|
*
|
|
6433
|
-
*
|
|
6434
|
-
* | --- | --- |
|
|
6435
|
-
* | transform | Partial `{x, y, scale, rotation, opacity, crop, blur}`. x/y are normalized canvas center coordinates (default 0.5); scale 1 is fitted size; rotation is degrees (default 0); opacity is 0–1 (default 1). crop is `{top,right,bottom,left}`. blur is 0–100 pixels at 1080-pixel frame height. |
|
|
6436
|
-
* | style | Partial `{fontFamily, fontSize, fontWeight, color, stroke, background, align, maxWidth}`. fontFamily: Geist or Noto Sans SC (default); fontSize defaults to 48; fontWeight: 400 (default), 500 or 700; color defaults to #FFFFFF; align: left, center (default), right; maxWidth is a fraction of canvas width (default 0.9). stroke is `{color,width}`. Caption style additionally supports position (top/middle/bottom), margin (0–0.4 of canvas height), highlightColor and maxLines: 2. |
|
|
6437
|
-
* | animate | An object keyed by x, y, scale, rotation, opacity or blur. Each value is an array of `{at: number, value: number, ease?: Ease}` sorted by at with distinct frame-snapped times. Values hold before the first and after the last keyframe, overriding the static transform. |
|
|
6438
|
-
* | Ease | linear, in, out, inOut, `{bezier: [x1,y1,x2,y2]}` or `{spring: {stiffness, damping, mass?}}`. Easing shapes the segment arriving at that keyframe; springs may overshoot. |
|
|
6439
|
-
* | reveal | `{by, delay?: number, stagger: number, duration: number, from: {y?, opacity?, scale?, blur?}, ease?: Ease}`. by selects char, word or line. Unit k starts at delay + k * stagger and takes duration seconds to reach its resting state; from.y is a fraction of font size. |
|
|
6440
|
-
* | fill | A color string (#RRGGBB or #RRGGBBAA), `{linear: {angle, stops: [{at,color}, ...]}}` or `{radial: {stops: [{at,color}, ...]}}`. Stop positions are 0–1; angle is degrees, 0 left to right. On color clips, fill replaces color when supplied. |
|
|
6441
|
-
* | shape, width, height, radius, stroke | shape is rect or ellipse. width/height are fractions of canvas width/height before scaling. radius rounds rect corners in pixels at 1080-pixel frame height. stroke is `{color: string, width: number}`. |
|
|
6442
|
-
* | transitionIn, transitionOut | `{kind, length: number}` at the clip's beginning/end. length is seconds. fade changes opacity; dissolve blends; push_left/push_right move horizontally; wipe_left reveals horizontally. |
|
|
6415
|
+
* Every script function, clip field and error code has its own section, read one at a time:
|
|
6443
6416
|
*
|
|
6444
|
-
*
|
|
6445
|
-
*
|
|
6446
|
-
*
|
|
6447
|
-
*
|
|
6448
|
-
*
|
|
6449
|
-
*
|
|
6450
|
-
* Use camelCase inside scripts, including nested objects. HTTP request/response JSON outside script source uses snake_case. Map media.library_id → media.libraryId, media.asset_id → media.assetId, source_in → sourceIn, volume_db → volumeDb, fade_in/fade_out → fadeIn/fadeOut, transition_in/transition_out → transitionIn/transitionOut, font_family/font_size/font_weight/max_width → fontFamily/fontSize/fontWeight/maxWidth, gain_db → gainDb, highlight_color/max_lines → highlightColor/maxLines. Fields such as animate, reveal, fill, stroke, at and length retain their spelling. GetTimeline/GetItem already return camelCase compact views; the expanded retrieveTimeline HTTP response is not an Insert object.
|
|
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
|
+
* ```
|
|
6451
6423
|
*
|
|
6452
|
-
*
|
|
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
|
+
* - `Update` — Change named fields; the rest stay.
|
|
6442
|
+
* - `SetSpeed` — Change rate, keeping source or duration.
|
|
6443
|
+
* - `Delete` — Remove a clip. There is no `Remove`.
|
|
6444
|
+
* - `Join` — Overlap clips; followers shift, track shortens.
|
|
6445
|
+
* - `UpdateJoin` — Change a join's length or effect.
|
|
6446
|
+
* - `DeleteJoin` — Remove a join; restore the butt cut.
|
|
6447
|
+
* - `Split` — Cut a clip in two at a time.
|
|
6448
|
+
* - `Trim` — Move one clip edge by seconds.
|
|
6449
|
+
* - `Move` — Set a clip's start or track.
|
|
6450
|
+
* - `RippleDeleteRange` — Cut a time range and close the gap.
|
|
6451
|
+
* - `AddTrack` — Add a video, audio or caption track.
|
|
6452
|
+
* - `UpdateTrack` — Change a track's name, lock, gain or role.
|
|
6453
|
+
* - `DeleteTrack` — Remove a track and its clips.
|
|
6454
|
+
* - `SetSettings` — Change canvas, frame rate or background.
|
|
6455
|
+
* - `AddCaptionsFromTranscript` — Captions from a clip's kept words.
|
|
6456
|
+
* - `InsertTemplate` — Insert a template and fill its slots.
|
|
6457
|
+
* - `AlignCaptions` — Rebuild captions from text punctuation.
|
|
6458
|
+
* - `ImportCaptions` — Import SRT or WebVTT onto captions.
|
|
6459
|
+
* - `ExportCaptions` — Export captions as SRT or WebVTT.
|
|
6460
|
+
* - `SetMarker` — Label a timeline position.
|
|
6461
|
+
* - `Print` — Append values to the result's `prints`.
|
|
6462
|
+
* - `Preview` — Up to 8 frames as inline PNG data URLs.
|
|
6463
|
+
*
|
|
6464
|
+
* #### Fields (fields)
|
|
6465
|
+
*
|
|
6466
|
+
* - `type` — Clip kind; decides which fields apply.
|
|
6467
|
+
* - `start` — Clip start in seconds; snaps to frames.
|
|
6468
|
+
* - `length` — Duration; optional for video and audio.
|
|
6469
|
+
* - `media` — Source `{ libraryId, assetId }`.
|
|
6470
|
+
* - `sourceIn` — First source second kept; default 0.
|
|
6471
|
+
* - `sourceOut` — Exclusive source end; read-only.
|
|
6472
|
+
* - `text` — Text of a text or caption clip.
|
|
6473
|
+
* - `color` — Solid colour of a color clip.
|
|
6474
|
+
* - `shape` — Shape clip kind: `rect` or `ellipse`.
|
|
6475
|
+
* - `width` — Shape width, a fraction of canvas width.
|
|
6476
|
+
* - `height` — Shape height, a fraction of canvas height.
|
|
6477
|
+
* - `radius` — Rect corner rounding, in 1080-height px.
|
|
6478
|
+
* - `fill` — Shape or text paint: colour or gradient.
|
|
6479
|
+
* - `stroke` — Shape outline: colour and width.
|
|
6480
|
+
* - `transform` — Position, scale, rotation, opacity, crop, blur.
|
|
6481
|
+
* - `fit` — contain, cover, fill or none.
|
|
6482
|
+
* - `blend` — Layer blend mode; null clears.
|
|
6483
|
+
* - `style` — Text styling: font, fill, strokes, glow, position.
|
|
6484
|
+
* - `style.position` — top, middle or bottom; omit it, never null.
|
|
6485
|
+
* - `playback` — Rate, direction, audio policy, or freeze.
|
|
6486
|
+
* - `volumeDb` — Audio level in dB; 0 is source level.
|
|
6487
|
+
* - `gain` — Keyframed audio level in dB.
|
|
6488
|
+
* - `fadeIn` — Fade-in seconds at the clip's start.
|
|
6489
|
+
* - `fadeOut` — Fade-out seconds at the clip's end.
|
|
6490
|
+
* - `duck` — Lower this clip while another track plays.
|
|
6491
|
+
* - `animate` — Transform keyframes; `at` is clip-relative seconds.
|
|
6492
|
+
* - `reveal` — Per-character, word or line reveal timing.
|
|
6493
|
+
* - `animation` — Preset slots `{ in, out, loop }`; null clears.
|
|
6494
|
+
* - `effects` — Effect stack, at most 8; null clears.
|
|
6495
|
+
* - `transitionIn` — Entrance effect: kind plus seconds.
|
|
6496
|
+
* - `transitionOut` — Exit effect: kind plus seconds.
|
|
6497
|
+
* - `mask` — Shape, path or track matte.
|
|
6498
|
+
* - `words` — Caption words with clip-local times.
|
|
6499
|
+
*
|
|
6500
|
+
* #### Error codes (errors)
|
|
6501
|
+
*
|
|
6502
|
+
* - `JOIN_CONFLICT` — A join is invalid or blocks this edit.
|
|
6503
|
+
* - `INVALID_TRANSITION` — Bad transition kind, parameter or length.
|
|
6504
|
+
* - `INVALID_STYLE` — A style value is out of range.
|
|
6505
|
+
* - `INVALID_MASK` — A mask definition is malformed.
|
|
6506
|
+
* - `MASK_IN_USE` — The edit would break a live mask.
|
|
6507
|
+
* - `TOO_MANY_MASKS` — At most 16 masks per project.
|
|
6508
|
+
* - `RATE_OUT_OF_RANGE` — A rate is outside 0.25-4.
|
|
6509
|
+
* - `UNSUPPORTED_PLAYBACK` — Reverse without an explicit mute.
|
|
6510
|
+
* - `INVALID_PLAYBACK` — A playback object is partial or malformed.
|
|
6511
|
+
* - `UNKNOWN_FONT` — The family is not in `ListFonts()`.
|
|
6512
|
+
* - `UNKNOWN_FIELD` — The field name is not accepted here.
|
|
6513
|
+
* - `UNKNOWN_TEXT_STYLE` — `style.preset` is not in the catalog.
|
|
6514
|
+
* - `TEXT_STYLE_TARGET_MISMATCH` — Preset on the wrong clip type.
|
|
6515
|
+
* - `CAPTION_ALIGN_LOW_CONFIDENCE` — Alignment confidence too low; nothing changed.
|
|
6516
|
+
* - `OVERLAP` — Two clips on one track would share time.
|
|
6517
|
+
* - `OUT_OF_SOURCE` — The clip would read past its source.
|
|
6518
|
+
* - `LOCKED_TRACK` — The edit targets a locked track.
|
|
6519
|
+
* - `UNBOUND_LIBRARY` — The library is not bound to the project.
|
|
6520
|
+
* - `TRACK_KIND_MISMATCH` — The clip type does not fit the track.
|
|
6521
|
+
* - `NOT_FOUND` — The named id is not in this project.
|
|
6522
|
+
* - `TOO_SHORT` — The result would be under one frame.
|
|
6523
|
+
* - `INVALID_DUCK` — Bad `duck` level or a missing track.
|
|
6524
|
+
* - `UNKNOWN_ANIMATION` — The preset is not in `ListAnimations()`.
|
|
6525
|
+
* - `INVALID_ANIMATION_PARAM` — Bad slot, parameter or keyframe limit.
|
|
6526
|
+
* - `ANIMATION_TOO_LONG` — In plus out exceed the clip length.
|
|
6527
|
+
* - `ANIMATION_TARGET_MISMATCH` — The preset does not match the clip type.
|
|
6528
|
+
* - `ANIMATION_PHASE_MISMATCH` — The preset is in the wrong slot.
|
|
6529
|
+
* - `UNKNOWN_EFFECT` — The effect is not in `ListEffects()`.
|
|
6530
|
+
* - `INVALID_EFFECT_PARAM` — Bad effect parameter or keyframe.
|
|
6531
|
+
* - `TOO_MANY_EFFECTS` — More than 8 effects on one clip.
|
|
6532
|
+
* - `PROJECT_NOT_FOUND` — No visible project has this id.
|
|
6533
|
+
* - `EXPORT_NOT_FOUND` — No such export in this project.
|
|
6534
|
+
* - `VERSION_NOT_FOUND` — No saved version has this revision.
|
|
6535
|
+
* - `LIBRARY_NOT_FOUND` — The library is missing or invisible.
|
|
6536
|
+
* - `BINDING_INVALID` — The binding request is malformed.
|
|
6537
|
+
* - `BINDING_IN_USE` — Clips still use this library's assets.
|
|
6538
|
+
* - `NOTHING_TO_UNDO` — No earlier revision to return to.
|
|
6539
|
+
* - `NOTHING_TO_REDO` — No undone revision is waiting.
|
|
6540
|
+
* - `UNDO_CONFLICT` — The revision to undo is no longer head.
|
|
6541
|
+
* - `REVISION_CONFLICT` — The project moved; your revision is stale.
|
|
6542
|
+
* - `CUT_BUSY` — The project is busy; retry.
|
|
6543
|
+
* - `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.
|
|
6544
|
+
* - `SCRIPT_ERROR` — The script threw or did not parse.
|
|
6545
|
+
* - `SCRIPT_LIMIT` — An execute budget was exceeded.
|
|
6546
|
+
* - `OPS_REJECTED` — An op failed; the whole edit rolled back.
|
|
6547
|
+
* - `EDIT_EXPIRED` — The saved edit id is over ten minutes old.
|
|
6548
|
+
* - `MEDIA_OFFLINE` — The asset cannot be fetched right now.
|
|
6549
|
+
* - `MEDIA_UNAVAILABLE` — The asset is not usable for rendering.
|
|
6550
|
+
* - `MEDIA_IMPORT_FAILED` — Importing media failed.
|
|
6551
|
+
* - `FRAME_OUT_OF_RANGE` — The preview time is outside the project.
|
|
6552
|
+
* - `PROJECT_TOO_LARGE` — The project exceeds the size limit.
|
|
6553
|
+
* - `RESPONSE_TOO_LARGE` — The response would exceed its budget.
|
|
6554
|
+
* - `EXPORT_FAILED` — The render failed; read `error.cause`.
|
|
6555
|
+
* - `INVALID_PARAMS` — The request is malformed.
|
|
6556
|
+
* - `PERMISSION_DENIED` — This credential may not do that here.
|
|
6557
|
+
* - `NOT_IMPLEMENTED` — Not available on this platform yet.
|
|
6558
|
+
* - `INTERNAL` — Unexpected failure; retry with the request id.
|
|
6559
|
+
* <!-- cut-reference:end -->
|
|
6453
6560
|
*
|
|
6454
6561
|
*/
|
|
6455
6562
|
export const cutExecute = (options) => (options.client ?? client).post({
|
|
@@ -6508,7 +6615,7 @@ export const cutRetrieveTimeline = (options) => (options.client ?? client).get({
|
|
|
6508
6615
|
/**
|
|
6509
6616
|
* Render preview frames
|
|
6510
6617
|
*
|
|
6511
|
-
* 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. Decode
|
|
6618
|
+
* 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.
|
|
6512
6619
|
*/
|
|
6513
6620
|
export const cutListFrames = (options) => (options.client ?? client).get({
|
|
6514
6621
|
security: [{
|
|
@@ -6526,7 +6633,7 @@ export const cutListFrames = (options) => (options.client ?? client).get({
|
|
|
6526
6633
|
/**
|
|
6527
6634
|
* Analyze project media
|
|
6528
6635
|
*
|
|
6529
|
-
* 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.
|
|
6636
|
+
* 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.
|
|
6530
6637
|
*/
|
|
6531
6638
|
export const cutCreateAnalysis = (options) => (options.client ?? client).post({
|
|
6532
6639
|
security: [{
|
|
@@ -7104,7 +7211,7 @@ export const knowledgeListVectorStores = (options) => (options?.client ?? client
|
|
|
7104
7211
|
/**
|
|
7105
7212
|
* Create knowledge base
|
|
7106
7213
|
*
|
|
7107
|
-
* 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.
|
|
7214
|
+
* 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"}.
|
|
7108
7215
|
*/
|
|
7109
7216
|
export const knowledgeCreateVectorStore = (options) => (options.client ?? client).post({
|
|
7110
7217
|
security: [{
|
|
@@ -7200,7 +7307,7 @@ export const knowledgeListFiles = (options) => (options.client ?? client).get({
|
|
|
7200
7307
|
/**
|
|
7201
7308
|
* Add file
|
|
7202
7309
|
*
|
|
7203
|
-
* Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching.
|
|
7310
|
+
* 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.
|
|
7204
7311
|
*/
|
|
7205
7312
|
export const knowledgeAttachFile = (options) => (options.client ?? client).post({
|
|
7206
7313
|
security: [{
|
|
@@ -7422,7 +7529,7 @@ export const knowledgeListEvents = (options) => (options.client ?? client).get({
|
|
|
7422
7529
|
/**
|
|
7423
7530
|
* List libraries
|
|
7424
7531
|
*
|
|
7425
|
-
*
|
|
7532
|
+
* 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.
|
|
7426
7533
|
*/
|
|
7427
7534
|
export const mediaListLibraries = (options) => (options?.client ?? client).get({
|
|
7428
7535
|
security: [{
|
|
@@ -7451,10 +7558,28 @@ export const mediaCreateLibrary = (options) => (options.client ?? client).post({
|
|
|
7451
7558
|
...options.headers
|
|
7452
7559
|
}
|
|
7453
7560
|
});
|
|
7561
|
+
/**
|
|
7562
|
+
* Create frame URLs
|
|
7563
|
+
*
|
|
7564
|
+
* 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.
|
|
7565
|
+
*/
|
|
7566
|
+
export const mediaCreateFrameUrls = (options) => (options.client ?? client).post({
|
|
7567
|
+
security: [{
|
|
7568
|
+
key: 'media-BearerAuth',
|
|
7569
|
+
scheme: 'bearer',
|
|
7570
|
+
type: 'http'
|
|
7571
|
+
}],
|
|
7572
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/frames',
|
|
7573
|
+
...options,
|
|
7574
|
+
headers: {
|
|
7575
|
+
'Content-Type': 'application/json',
|
|
7576
|
+
...options.headers
|
|
7577
|
+
}
|
|
7578
|
+
});
|
|
7454
7579
|
/**
|
|
7455
7580
|
* Delete library
|
|
7456
7581
|
*
|
|
7457
|
-
*
|
|
7582
|
+
* 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.
|
|
7458
7583
|
*/
|
|
7459
7584
|
export const mediaDeleteLibrary = (options) => (options.client ?? client).delete({
|
|
7460
7585
|
security: [{
|
|
@@ -7468,7 +7593,7 @@ export const mediaDeleteLibrary = (options) => (options.client ?? client).delete
|
|
|
7468
7593
|
/**
|
|
7469
7594
|
* Get library
|
|
7470
7595
|
*
|
|
7471
|
-
*
|
|
7596
|
+
* 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.
|
|
7472
7597
|
*/
|
|
7473
7598
|
export const mediaGetLibrary = (options) => (options.client ?? client).get({
|
|
7474
7599
|
security: [{
|
|
@@ -7482,7 +7607,7 @@ export const mediaGetLibrary = (options) => (options.client ?? client).get({
|
|
|
7482
7607
|
/**
|
|
7483
7608
|
* Update library
|
|
7484
7609
|
*
|
|
7485
|
-
* Update an active library
|
|
7610
|
+
* 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.
|
|
7486
7611
|
*/
|
|
7487
7612
|
export const mediaUpdateLibrary = (options) => (options.client ?? client).patch({
|
|
7488
7613
|
security: [{
|
|
@@ -7500,7 +7625,7 @@ export const mediaUpdateLibrary = (options) => (options.client ?? client).patch(
|
|
|
7500
7625
|
/**
|
|
7501
7626
|
* Restore library
|
|
7502
7627
|
*
|
|
7503
|
-
*
|
|
7628
|
+
* 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.
|
|
7504
7629
|
*/
|
|
7505
7630
|
export const mediaRestoreLibrary = (options) => (options.client ?? client).post({
|
|
7506
7631
|
security: [{
|
|
@@ -7514,7 +7639,7 @@ export const mediaRestoreLibrary = (options) => (options.client ?? client).post(
|
|
|
7514
7639
|
/**
|
|
7515
7640
|
* Purge library
|
|
7516
7641
|
*
|
|
7517
|
-
*
|
|
7642
|
+
* 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.
|
|
7518
7643
|
*/
|
|
7519
7644
|
export const mediaPurgeLibrary = (options) => (options.client ?? client).post({
|
|
7520
7645
|
security: [{
|
|
@@ -7528,7 +7653,7 @@ export const mediaPurgeLibrary = (options) => (options.client ?? client).post({
|
|
|
7528
7653
|
/**
|
|
7529
7654
|
* List assets
|
|
7530
7655
|
*
|
|
7531
|
-
*
|
|
7656
|
+
* 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.
|
|
7532
7657
|
*/
|
|
7533
7658
|
export const mediaListAssets = (options) => (options.client ?? client).get({
|
|
7534
7659
|
security: [{
|
|
@@ -7542,7 +7667,7 @@ export const mediaListAssets = (options) => (options.client ?? client).get({
|
|
|
7542
7667
|
/**
|
|
7543
7668
|
* Upload asset
|
|
7544
7669
|
*
|
|
7545
|
-
*
|
|
7670
|
+
* 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.
|
|
7546
7671
|
*/
|
|
7547
7672
|
export const mediaUploadAsset = (options) => (options.client ?? client).post({
|
|
7548
7673
|
security: [{
|
|
@@ -7560,7 +7685,7 @@ export const mediaUploadAsset = (options) => (options.client ?? client).post({
|
|
|
7560
7685
|
/**
|
|
7561
7686
|
* Import file
|
|
7562
7687
|
*
|
|
7563
|
-
* Copy
|
|
7688
|
+
* 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.
|
|
7564
7689
|
*/
|
|
7565
7690
|
export const mediaImportAsset = (options) => (options.client ?? client).post({
|
|
7566
7691
|
security: [{
|
|
@@ -7578,7 +7703,7 @@ export const mediaImportAsset = (options) => (options.client ?? client).post({
|
|
|
7578
7703
|
/**
|
|
7579
7704
|
* Delete asset
|
|
7580
7705
|
*
|
|
7581
|
-
*
|
|
7706
|
+
* 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.
|
|
7582
7707
|
*/
|
|
7583
7708
|
export const mediaDeleteAsset = (options) => (options.client ?? client).delete({
|
|
7584
7709
|
security: [{
|
|
@@ -7592,7 +7717,7 @@ export const mediaDeleteAsset = (options) => (options.client ?? client).delete({
|
|
|
7592
7717
|
/**
|
|
7593
7718
|
* Get asset
|
|
7594
7719
|
*
|
|
7595
|
-
*
|
|
7720
|
+
* 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.
|
|
7596
7721
|
*/
|
|
7597
7722
|
export const mediaGetAsset = (options) => (options.client ?? client).get({
|
|
7598
7723
|
security: [{
|
|
@@ -7606,7 +7731,7 @@ export const mediaGetAsset = (options) => (options.client ?? client).get({
|
|
|
7606
7731
|
/**
|
|
7607
7732
|
* Update asset
|
|
7608
7733
|
*
|
|
7609
|
-
*
|
|
7734
|
+
* 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.
|
|
7610
7735
|
*/
|
|
7611
7736
|
export const mediaUpdateAsset = (options) => (options.client ?? client).patch({
|
|
7612
7737
|
security: [{
|
|
@@ -7624,7 +7749,7 @@ export const mediaUpdateAsset = (options) => (options.client ?? client).patch({
|
|
|
7624
7749
|
/**
|
|
7625
7750
|
* Reprocess asset
|
|
7626
7751
|
*
|
|
7627
|
-
*
|
|
7752
|
+
* 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.
|
|
7628
7753
|
*/
|
|
7629
7754
|
export const mediaReprocessAsset = (options) => (options.client ?? client).post({
|
|
7630
7755
|
security: [{
|
|
@@ -7642,7 +7767,7 @@ export const mediaReprocessAsset = (options) => (options.client ?? client).post(
|
|
|
7642
7767
|
/**
|
|
7643
7768
|
* List understandings
|
|
7644
7769
|
*
|
|
7645
|
-
* List an asset
|
|
7770
|
+
* 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.
|
|
7646
7771
|
*/
|
|
7647
7772
|
export const mediaListUnderstandings = (options) => (options.client ?? client).get({
|
|
7648
7773
|
security: [{
|
|
@@ -7656,7 +7781,7 @@ export const mediaListUnderstandings = (options) => (options.client ?? client).g
|
|
|
7656
7781
|
/**
|
|
7657
7782
|
* Expression search
|
|
7658
7783
|
*
|
|
7659
|
-
*
|
|
7784
|
+
* 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.
|
|
7660
7785
|
*/
|
|
7661
7786
|
export const mediaExpressionSearch = (options) => (options.client ?? client).post({
|
|
7662
7787
|
security: [{
|
|
@@ -7674,7 +7799,7 @@ export const mediaExpressionSearch = (options) => (options.client ?? client).pos
|
|
|
7674
7799
|
/**
|
|
7675
7800
|
* Visual search
|
|
7676
7801
|
*
|
|
7677
|
-
*
|
|
7802
|
+
* 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.
|
|
7678
7803
|
*/
|
|
7679
7804
|
export const mediaVisualSearch = (options) => (options.client ?? client).post({
|
|
7680
7805
|
security: [{
|
|
@@ -7692,7 +7817,7 @@ export const mediaVisualSearch = (options) => (options.client ?? client).post({
|
|
|
7692
7817
|
/**
|
|
7693
7818
|
* Semantic search
|
|
7694
7819
|
*
|
|
7695
|
-
* Search assets with a nonblank text query
|
|
7820
|
+
* 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.
|
|
7696
7821
|
*/
|
|
7697
7822
|
export const mediaSemanticSearch = (options) => (options.client ?? client).post({
|
|
7698
7823
|
security: [{
|
|
@@ -7710,7 +7835,7 @@ export const mediaSemanticSearch = (options) => (options.client ?? client).post(
|
|
|
7710
7835
|
/**
|
|
7711
7836
|
* Semantic search alias
|
|
7712
7837
|
*
|
|
7713
|
-
*
|
|
7838
|
+
* 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.
|
|
7714
7839
|
*/
|
|
7715
7840
|
export const mediaSearch = (options) => (options.client ?? client).post({
|
|
7716
7841
|
security: [{
|
|
@@ -7728,7 +7853,7 @@ export const mediaSearch = (options) => (options.client ?? client).post({
|
|
|
7728
7853
|
/**
|
|
7729
7854
|
* List folders
|
|
7730
7855
|
*
|
|
7731
|
-
*
|
|
7856
|
+
* undefined understood_count includes ready and partial assets; failed_count includes failed assets. Both accumulate descendants. counts_complete is false during historical backfill.
|
|
7732
7857
|
*/
|
|
7733
7858
|
export const mediaListFolders = (options) => (options.client ?? client).get({
|
|
7734
7859
|
security: [{
|
|
@@ -7742,7 +7867,7 @@ export const mediaListFolders = (options) => (options.client ?? client).get({
|
|
|
7742
7867
|
/**
|
|
7743
7868
|
* Create batch
|
|
7744
7869
|
*
|
|
7745
|
-
*
|
|
7870
|
+
* 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.
|
|
7746
7871
|
*/
|
|
7747
7872
|
export const mediaCreateBatch = (options) => (options.client ?? client).post({
|
|
7748
7873
|
security: [{
|
|
@@ -7760,7 +7885,7 @@ export const mediaCreateBatch = (options) => (options.client ?? client).post({
|
|
|
7760
7885
|
/**
|
|
7761
7886
|
* Get batch
|
|
7762
7887
|
*
|
|
7763
|
-
*
|
|
7888
|
+
* 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.
|
|
7764
7889
|
*/
|
|
7765
7890
|
export const mediaGetBatch = (options) => (options.client ?? client).get({
|
|
7766
7891
|
security: [{
|
|
@@ -7774,7 +7899,7 @@ export const mediaGetBatch = (options) => (options.client ?? client).get({
|
|
|
7774
7899
|
/**
|
|
7775
7900
|
* Batch assets alias
|
|
7776
7901
|
*
|
|
7777
|
-
*
|
|
7902
|
+
* 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.
|
|
7778
7903
|
*/
|
|
7779
7904
|
export const mediaBatchAssets = (options) => (options.client ?? client).post({
|
|
7780
7905
|
security: [{
|
|
@@ -7790,9 +7915,9 @@ export const mediaBatchAssets = (options) => (options.client ?? client).post({
|
|
|
7790
7915
|
}
|
|
7791
7916
|
});
|
|
7792
7917
|
/**
|
|
7793
|
-
* Get job
|
|
7918
|
+
* Get job
|
|
7794
7919
|
*
|
|
7795
|
-
*
|
|
7920
|
+
* 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.
|
|
7796
7921
|
*/
|
|
7797
7922
|
export const mediaGetJob = (options) => (options.client ?? client).get({
|
|
7798
7923
|
security: [{
|
|
@@ -7806,7 +7931,7 @@ export const mediaGetJob = (options) => (options.client ?? client).get({
|
|
|
7806
7931
|
/**
|
|
7807
7932
|
* List events
|
|
7808
7933
|
*
|
|
7809
|
-
* Read library events in sequence order
|
|
7934
|
+
* 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.
|
|
7810
7935
|
*/
|
|
7811
7936
|
export const mediaListEvents = (options) => (options.client ?? client).get({
|
|
7812
7937
|
security: [{
|
|
@@ -7820,7 +7945,7 @@ export const mediaListEvents = (options) => (options.client ?? client).get({
|
|
|
7820
7945
|
/**
|
|
7821
7946
|
* Create delivery token
|
|
7822
7947
|
*
|
|
7823
|
-
* 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
|
|
7948
|
+
* 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.
|
|
7824
7949
|
*/
|
|
7825
7950
|
export const mediaCreateDeliveryToken = (options) => (options.client ?? client).post({
|
|
7826
7951
|
security: [{
|
|
@@ -7835,6 +7960,340 @@ export const mediaCreateDeliveryToken = (options) => (options.client ?? client).
|
|
|
7835
7960
|
...options.headers
|
|
7836
7961
|
}
|
|
7837
7962
|
});
|
|
7963
|
+
/**
|
|
7964
|
+
* Summarize understanding failures
|
|
7965
|
+
*
|
|
7966
|
+
* 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.
|
|
7967
|
+
*/
|
|
7968
|
+
export const mediaUnderstandingFailureSummary = (options) => (options.client ?? client).get({
|
|
7969
|
+
security: [{
|
|
7970
|
+
key: 'media-BearerAuth',
|
|
7971
|
+
scheme: 'bearer',
|
|
7972
|
+
type: 'http'
|
|
7973
|
+
}],
|
|
7974
|
+
url: '/media/v1/libraries/{library_id}/understandings/failure_summary',
|
|
7975
|
+
...options
|
|
7976
|
+
});
|
|
7977
|
+
/**
|
|
7978
|
+
* List understanding results across a library
|
|
7979
|
+
*
|
|
7980
|
+
* 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.
|
|
7981
|
+
*/
|
|
7982
|
+
export const mediaListUnderstandingsByLibrary = (options) => (options.client ?? client).get({
|
|
7983
|
+
security: [{
|
|
7984
|
+
key: 'media-BearerAuth',
|
|
7985
|
+
scheme: 'bearer',
|
|
7986
|
+
type: 'http'
|
|
7987
|
+
}],
|
|
7988
|
+
url: '/media/v1/libraries/{library_id}/understandings',
|
|
7989
|
+
...options
|
|
7990
|
+
});
|
|
7991
|
+
/**
|
|
7992
|
+
* Create video generation
|
|
7993
|
+
*
|
|
7994
|
+
* 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.
|
|
7995
|
+
*/
|
|
7996
|
+
export const mediaCreateGeneration = (options) => (options.client ?? client).post({
|
|
7997
|
+
security: [{
|
|
7998
|
+
key: 'media-BearerAuth',
|
|
7999
|
+
scheme: 'bearer',
|
|
8000
|
+
type: 'http'
|
|
8001
|
+
}],
|
|
8002
|
+
url: '/media/v1/libraries/{library_id}/generations',
|
|
8003
|
+
...options,
|
|
8004
|
+
headers: {
|
|
8005
|
+
'Content-Type': 'application/json',
|
|
8006
|
+
...options.headers
|
|
8007
|
+
}
|
|
8008
|
+
});
|
|
8009
|
+
/**
|
|
8010
|
+
* List jobs
|
|
8011
|
+
*
|
|
8012
|
+
* 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.
|
|
8013
|
+
*/
|
|
8014
|
+
export const mediaListJobs = (options) => (options.client ?? client).get({
|
|
8015
|
+
security: [{
|
|
8016
|
+
key: 'media-BearerAuth',
|
|
8017
|
+
scheme: 'bearer',
|
|
8018
|
+
type: 'http'
|
|
8019
|
+
}],
|
|
8020
|
+
url: '/media/v1/libraries/{library_id}/jobs',
|
|
8021
|
+
...options
|
|
8022
|
+
});
|
|
8023
|
+
/**
|
|
8024
|
+
* Cancel job
|
|
8025
|
+
*
|
|
8026
|
+
* Cancel a queued or running generation job. Already completed outputs remain available to save; poll or read the returned Job to confirm its status.
|
|
8027
|
+
*/
|
|
8028
|
+
export const mediaCancelJob = (options) => (options.client ?? client).post({
|
|
8029
|
+
security: [{
|
|
8030
|
+
key: 'media-BearerAuth',
|
|
8031
|
+
scheme: 'bearer',
|
|
8032
|
+
type: 'http'
|
|
8033
|
+
}],
|
|
8034
|
+
url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel',
|
|
8035
|
+
...options
|
|
8036
|
+
});
|
|
8037
|
+
/**
|
|
8038
|
+
* Save generation output
|
|
8039
|
+
*
|
|
8040
|
+
* 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.
|
|
8041
|
+
*/
|
|
8042
|
+
export const mediaSaveGenerationOutput = (options) => (options.client ?? client).post({
|
|
8043
|
+
security: [{
|
|
8044
|
+
key: 'media-BearerAuth',
|
|
8045
|
+
scheme: 'bearer',
|
|
8046
|
+
type: 'http'
|
|
8047
|
+
}],
|
|
8048
|
+
url: '/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save',
|
|
8049
|
+
...options,
|
|
8050
|
+
headers: {
|
|
8051
|
+
'Content-Type': 'application/json',
|
|
8052
|
+
...options.headers
|
|
8053
|
+
}
|
|
8054
|
+
});
|
|
8055
|
+
/**
|
|
8056
|
+
* Get generation capabilities
|
|
8057
|
+
*
|
|
8058
|
+
* 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.
|
|
8059
|
+
*/
|
|
8060
|
+
export const mediaGetGenerationCapabilities = (options) => (options?.client ?? client).get({
|
|
8061
|
+
security: [{
|
|
8062
|
+
key: 'media-BearerAuth',
|
|
8063
|
+
scheme: 'bearer',
|
|
8064
|
+
type: 'http'
|
|
8065
|
+
}],
|
|
8066
|
+
url: '/media/v1/generation/capabilities',
|
|
8067
|
+
...options
|
|
8068
|
+
});
|
|
8069
|
+
/**
|
|
8070
|
+
* List types
|
|
8071
|
+
*
|
|
8072
|
+
* 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.
|
|
8073
|
+
*/
|
|
8074
|
+
export const ontologyListTypes = (options) => (options?.client ?? client).get({
|
|
8075
|
+
security: [{
|
|
8076
|
+
key: 'ontology-bearerAuth',
|
|
8077
|
+
scheme: 'bearer',
|
|
8078
|
+
type: 'http'
|
|
8079
|
+
}],
|
|
8080
|
+
url: '/ontology/v1/types',
|
|
8081
|
+
...options
|
|
8082
|
+
});
|
|
8083
|
+
/**
|
|
8084
|
+
* Register type
|
|
8085
|
+
*
|
|
8086
|
+
* 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.
|
|
8087
|
+
*/
|
|
8088
|
+
export const ontologyRegisterType = (options) => (options.client ?? client).post({
|
|
8089
|
+
security: [{
|
|
8090
|
+
key: 'ontology-bearerAuth',
|
|
8091
|
+
scheme: 'bearer',
|
|
8092
|
+
type: 'http'
|
|
8093
|
+
}],
|
|
8094
|
+
url: '/ontology/v1/types',
|
|
8095
|
+
...options,
|
|
8096
|
+
headers: {
|
|
8097
|
+
'Content-Type': 'application/json',
|
|
8098
|
+
...options.headers
|
|
8099
|
+
}
|
|
8100
|
+
});
|
|
8101
|
+
/**
|
|
8102
|
+
* Retrieve type
|
|
8103
|
+
*
|
|
8104
|
+
* 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.
|
|
8105
|
+
*/
|
|
8106
|
+
export const ontologyRetrieveType = (options) => (options.client ?? client).get({
|
|
8107
|
+
security: [{
|
|
8108
|
+
key: 'ontology-bearerAuth',
|
|
8109
|
+
scheme: 'bearer',
|
|
8110
|
+
type: 'http'
|
|
8111
|
+
}],
|
|
8112
|
+
url: '/ontology/v1/types/{name}',
|
|
8113
|
+
...options
|
|
8114
|
+
});
|
|
8115
|
+
/**
|
|
8116
|
+
* List nodes
|
|
8117
|
+
*
|
|
8118
|
+
* 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.
|
|
8119
|
+
*/
|
|
8120
|
+
export const ontologyListNodes = (options) => (options?.client ?? client).get({
|
|
8121
|
+
security: [{
|
|
8122
|
+
key: 'ontology-bearerAuth',
|
|
8123
|
+
scheme: 'bearer',
|
|
8124
|
+
type: 'http'
|
|
8125
|
+
}],
|
|
8126
|
+
url: '/ontology/v1/nodes',
|
|
8127
|
+
...options
|
|
8128
|
+
});
|
|
8129
|
+
/**
|
|
8130
|
+
* Create node
|
|
8131
|
+
*
|
|
8132
|
+
* 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.
|
|
8133
|
+
*/
|
|
8134
|
+
export const ontologyCreateNode = (options) => (options.client ?? client).post({
|
|
8135
|
+
security: [{
|
|
8136
|
+
key: 'ontology-bearerAuth',
|
|
8137
|
+
scheme: 'bearer',
|
|
8138
|
+
type: 'http'
|
|
8139
|
+
}],
|
|
8140
|
+
url: '/ontology/v1/nodes',
|
|
8141
|
+
...options,
|
|
8142
|
+
headers: {
|
|
8143
|
+
'Content-Type': 'application/json',
|
|
8144
|
+
...options.headers
|
|
8145
|
+
}
|
|
8146
|
+
});
|
|
8147
|
+
/**
|
|
8148
|
+
* Retrieve node
|
|
8149
|
+
*
|
|
8150
|
+
* 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.
|
|
8151
|
+
*/
|
|
8152
|
+
export const ontologyRetrieveNode = (options) => (options.client ?? client).get({
|
|
8153
|
+
security: [{
|
|
8154
|
+
key: 'ontology-bearerAuth',
|
|
8155
|
+
scheme: 'bearer',
|
|
8156
|
+
type: 'http'
|
|
8157
|
+
}],
|
|
8158
|
+
url: '/ontology/v1/nodes/{node_id}',
|
|
8159
|
+
...options
|
|
8160
|
+
});
|
|
8161
|
+
/**
|
|
8162
|
+
* Update node
|
|
8163
|
+
*
|
|
8164
|
+
* 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.
|
|
8165
|
+
*/
|
|
8166
|
+
export const ontologyUpdateNode = (options) => (options.client ?? client).patch({
|
|
8167
|
+
security: [{
|
|
8168
|
+
key: 'ontology-bearerAuth',
|
|
8169
|
+
scheme: 'bearer',
|
|
8170
|
+
type: 'http'
|
|
8171
|
+
}],
|
|
8172
|
+
url: '/ontology/v1/nodes/{node_id}',
|
|
8173
|
+
...options,
|
|
8174
|
+
headers: {
|
|
8175
|
+
'Content-Type': 'application/json',
|
|
8176
|
+
...options.headers
|
|
8177
|
+
}
|
|
8178
|
+
});
|
|
8179
|
+
/**
|
|
8180
|
+
* Merge node
|
|
8181
|
+
*
|
|
8182
|
+
* 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.
|
|
8183
|
+
*/
|
|
8184
|
+
export const ontologyMergeNode = (options) => (options.client ?? client).post({
|
|
8185
|
+
security: [{
|
|
8186
|
+
key: 'ontology-bearerAuth',
|
|
8187
|
+
scheme: 'bearer',
|
|
8188
|
+
type: 'http'
|
|
8189
|
+
}],
|
|
8190
|
+
url: '/ontology/v1/nodes/{node_id}/merge',
|
|
8191
|
+
...options,
|
|
8192
|
+
headers: {
|
|
8193
|
+
'Content-Type': 'application/json',
|
|
8194
|
+
...options.headers
|
|
8195
|
+
}
|
|
8196
|
+
});
|
|
8197
|
+
/**
|
|
8198
|
+
* List relations
|
|
8199
|
+
*
|
|
8200
|
+
* 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.
|
|
8201
|
+
*/
|
|
8202
|
+
export const ontologyListRelations = (options) => (options?.client ?? client).get({
|
|
8203
|
+
security: [{
|
|
8204
|
+
key: 'ontology-bearerAuth',
|
|
8205
|
+
scheme: 'bearer',
|
|
8206
|
+
type: 'http'
|
|
8207
|
+
}],
|
|
8208
|
+
url: '/ontology/v1/relations',
|
|
8209
|
+
...options
|
|
8210
|
+
});
|
|
8211
|
+
/**
|
|
8212
|
+
* Create relation
|
|
8213
|
+
*
|
|
8214
|
+
* 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.
|
|
8215
|
+
*/
|
|
8216
|
+
export const ontologyCreateRelation = (options) => (options.client ?? client).post({
|
|
8217
|
+
security: [{
|
|
8218
|
+
key: 'ontology-bearerAuth',
|
|
8219
|
+
scheme: 'bearer',
|
|
8220
|
+
type: 'http'
|
|
8221
|
+
}],
|
|
8222
|
+
url: '/ontology/v1/relations',
|
|
8223
|
+
...options,
|
|
8224
|
+
headers: {
|
|
8225
|
+
'Content-Type': 'application/json',
|
|
8226
|
+
...options.headers
|
|
8227
|
+
}
|
|
8228
|
+
});
|
|
8229
|
+
/**
|
|
8230
|
+
* Retrieve relation
|
|
8231
|
+
*
|
|
8232
|
+
* 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.
|
|
8233
|
+
*/
|
|
8234
|
+
export const ontologyRetrieveRelation = (options) => (options.client ?? client).get({
|
|
8235
|
+
security: [{
|
|
8236
|
+
key: 'ontology-bearerAuth',
|
|
8237
|
+
scheme: 'bearer',
|
|
8238
|
+
type: 'http'
|
|
8239
|
+
}],
|
|
8240
|
+
url: '/ontology/v1/relations/{relation_id}',
|
|
8241
|
+
...options
|
|
8242
|
+
});
|
|
8243
|
+
/**
|
|
8244
|
+
* Invalidate relation
|
|
8245
|
+
*
|
|
8246
|
+
* 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.
|
|
8247
|
+
*/
|
|
8248
|
+
export const ontologyInvalidateRelation = (options) => (options.client ?? client).post({
|
|
8249
|
+
security: [{
|
|
8250
|
+
key: 'ontology-bearerAuth',
|
|
8251
|
+
scheme: 'bearer',
|
|
8252
|
+
type: 'http'
|
|
8253
|
+
}],
|
|
8254
|
+
url: '/ontology/v1/relations/{relation_id}/invalidate',
|
|
8255
|
+
...options,
|
|
8256
|
+
headers: {
|
|
8257
|
+
'Content-Type': 'application/json',
|
|
8258
|
+
...options.headers
|
|
8259
|
+
}
|
|
8260
|
+
});
|
|
8261
|
+
/**
|
|
8262
|
+
* Apply changeset
|
|
8263
|
+
*
|
|
8264
|
+
* 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.
|
|
8265
|
+
*/
|
|
8266
|
+
export const ontologyApplyChangeset = (options) => (options.client ?? client).post({
|
|
8267
|
+
security: [{
|
|
8268
|
+
key: 'ontology-bearerAuth',
|
|
8269
|
+
scheme: 'bearer',
|
|
8270
|
+
type: 'http'
|
|
8271
|
+
}],
|
|
8272
|
+
url: '/ontology/v1/changesets',
|
|
8273
|
+
...options,
|
|
8274
|
+
headers: {
|
|
8275
|
+
'Content-Type': 'application/json',
|
|
8276
|
+
...options.headers
|
|
8277
|
+
}
|
|
8278
|
+
});
|
|
8279
|
+
/**
|
|
8280
|
+
* Search nodes
|
|
8281
|
+
*
|
|
8282
|
+
* 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.
|
|
8283
|
+
*/
|
|
8284
|
+
export const ontologySearch = (options) => (options.client ?? client).post({
|
|
8285
|
+
security: [{
|
|
8286
|
+
key: 'ontology-bearerAuth',
|
|
8287
|
+
scheme: 'bearer',
|
|
8288
|
+
type: 'http'
|
|
8289
|
+
}],
|
|
8290
|
+
url: '/ontology/v1/search',
|
|
8291
|
+
...options,
|
|
8292
|
+
headers: {
|
|
8293
|
+
'Content-Type': 'application/json',
|
|
8294
|
+
...options.headers
|
|
8295
|
+
}
|
|
8296
|
+
});
|
|
7838
8297
|
/**
|
|
7839
8298
|
* List sandboxes (v2)
|
|
7840
8299
|
*
|
|
@@ -8935,7 +9394,7 @@ export const vaultListVaults = (options) => (options?.client ?? client).get({
|
|
|
8935
9394
|
/**
|
|
8936
9395
|
* Create vault
|
|
8937
9396
|
*
|
|
8938
|
-
* 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.
|
|
9397
|
+
* 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.
|
|
8939
9398
|
*/
|
|
8940
9399
|
export const vaultCreateVault = (options) => (options.client ?? client).post({
|
|
8941
9400
|
security: [{
|
|
@@ -9531,7 +9990,7 @@ export const ticketGetLabels = (options) => (options?.client ?? client).get({
|
|
|
9531
9990
|
/**
|
|
9532
9991
|
* Create or add labels
|
|
9533
9992
|
*
|
|
9534
|
-
* 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.
|
|
9993
|
+
* 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.
|
|
9535
9994
|
*/
|
|
9536
9995
|
export const ticketPostLabels = (options) => (options.client ?? client).post({
|
|
9537
9996
|
security: [{
|
|
@@ -9553,7 +10012,7 @@ export const ticketPostLabels = (options) => (options.client ?? client).post({
|
|
|
9553
10012
|
/**
|
|
9554
10013
|
* Remove labels
|
|
9555
10014
|
*
|
|
9556
|
-
* 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.
|
|
10015
|
+
* 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.
|
|
9557
10016
|
*/
|
|
9558
10017
|
export const ticketDeleteLabelsName = (options) => (options.client ?? client).delete({
|
|
9559
10018
|
security: [{
|
|
@@ -9571,7 +10030,7 @@ export const ticketDeleteLabelsName = (options) => (options.client ?? client).de
|
|
|
9571
10030
|
/**
|
|
9572
10031
|
* Update labels
|
|
9573
10032
|
*
|
|
9574
|
-
* 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.
|
|
10033
|
+
* 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.
|
|
9575
10034
|
*/
|
|
9576
10035
|
export const ticketPatchLabelsName = (options) => (options.client ?? client).patch({
|
|
9577
10036
|
security: [{
|