@deepraxis/cli 0.2.1-dev.e5614a0 → 0.2.1-dev.e5cbcae
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/COMMANDS.md +30 -5
- package/dist/praxis.js +1656 -86
- package/package.json +1 -1
package/dist/praxis.js
CHANGED
|
@@ -143,7 +143,7 @@ across all toolsets allowed.`
|
|
|
143
143
|
type: "array",
|
|
144
144
|
itemType: "object",
|
|
145
145
|
required: false,
|
|
146
|
-
description: "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or
|
|
146
|
+
description: "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time."
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
name: "kind",
|
|
@@ -1218,6 +1218,37 @@ Praxis extension: MA only has session-scoped temporary containers and memory_sto
|
|
|
1218
1218
|
}
|
|
1219
1219
|
]
|
|
1220
1220
|
},
|
|
1221
|
+
{
|
|
1222
|
+
resource: "agent.computers.files.convert",
|
|
1223
|
+
method: "create",
|
|
1224
|
+
summary: "Convert a Computer Document to PDF",
|
|
1225
|
+
description: `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.
|
|
1226
|
+
|
|
1227
|
+
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.`,
|
|
1228
|
+
http: "POST",
|
|
1229
|
+
path: "/agent/v1/computers/{computer_id}/files/convert",
|
|
1230
|
+
streaming: "no",
|
|
1231
|
+
pagination: false,
|
|
1232
|
+
pathParams: [
|
|
1233
|
+
{
|
|
1234
|
+
name: "computer_id",
|
|
1235
|
+
sdkName: "computer_id",
|
|
1236
|
+
description: "Computer id (cmp_...), as returned by computers.create or computers.list."
|
|
1237
|
+
}
|
|
1238
|
+
],
|
|
1239
|
+
query: [],
|
|
1240
|
+
body: {
|
|
1241
|
+
required: true,
|
|
1242
|
+
fields: [
|
|
1243
|
+
{
|
|
1244
|
+
name: "name",
|
|
1245
|
+
type: "string",
|
|
1246
|
+
required: true,
|
|
1247
|
+
description: "Name of the entry or object."
|
|
1248
|
+
}
|
|
1249
|
+
]
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1221
1252
|
{
|
|
1222
1253
|
resource: "agent.computers.leases",
|
|
1223
1254
|
method: "delete",
|
|
@@ -6100,7 +6131,7 @@ file at the root of that directory.`
|
|
|
6100
6131
|
"allow"
|
|
6101
6132
|
],
|
|
6102
6133
|
required: false,
|
|
6103
|
-
description: "skip
|
|
6134
|
+
description: "skip skips while a previous run is still active; allow permits overlapping runs. When omitted, schedule triggers use skip and webhook triggers use allow."
|
|
6104
6135
|
},
|
|
6105
6136
|
{
|
|
6106
6137
|
name: "catchup_window_seconds",
|
|
@@ -6274,7 +6305,7 @@ file at the root of that directory.`
|
|
|
6274
6305
|
"allow"
|
|
6275
6306
|
],
|
|
6276
6307
|
required: false,
|
|
6277
|
-
description: "skip
|
|
6308
|
+
description: "skip skips while a previous run is still active; allow permits overlapping runs. When omitted, schedule triggers use skip and webhook triggers use allow."
|
|
6278
6309
|
},
|
|
6279
6310
|
{
|
|
6280
6311
|
name: "catchup_window_seconds",
|
|
@@ -9962,7 +9993,7 @@ Execution errors include error.details.prints containing output printed before f
|
|
|
9962
9993
|
resource: "cut.projects.analysis",
|
|
9963
9994
|
method: "create",
|
|
9964
9995
|
summary: "Analyze project media",
|
|
9965
|
-
description: "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.",
|
|
9996
|
+
description: "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.",
|
|
9966
9997
|
http: "POST",
|
|
9967
9998
|
path: "/cut/v1/projects/{project_id}/analysis",
|
|
9968
9999
|
streaming: "no",
|
|
@@ -10133,6 +10164,18 @@ Execution errors include error.details.prints containing output printed before f
|
|
|
10133
10164
|
body: {
|
|
10134
10165
|
required: true,
|
|
10135
10166
|
fields: [
|
|
10167
|
+
{
|
|
10168
|
+
name: "folder",
|
|
10169
|
+
type: "string",
|
|
10170
|
+
required: false,
|
|
10171
|
+
description: "Optional destination path within the bound media library; omitted uses its default folder."
|
|
10172
|
+
},
|
|
10173
|
+
{
|
|
10174
|
+
name: "name",
|
|
10175
|
+
type: "string",
|
|
10176
|
+
required: false,
|
|
10177
|
+
description: "Nonempty display name, frozen with the export. Path separators and control characters become hyphens; limited to 200 characters. Omitted uses project name and timestamp."
|
|
10178
|
+
},
|
|
10136
10179
|
{
|
|
10137
10180
|
name: "output",
|
|
10138
10181
|
type: "object",
|
|
@@ -10150,6 +10193,12 @@ Execution errors include error.details.prints containing output printed before f
|
|
|
10150
10193
|
type: "integer",
|
|
10151
10194
|
required: false,
|
|
10152
10195
|
description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
|
|
10196
|
+
},
|
|
10197
|
+
{
|
|
10198
|
+
name: "loudness",
|
|
10199
|
+
type: "object",
|
|
10200
|
+
required: false,
|
|
10201
|
+
description: "Loudness normalization target. Omitted, the export is normalized to -14 LUFS integrated and -1 dBTP true peak, the level short-video and streaming platforms play at; null renders without normalization. Normalization adds analysis and rendering work."
|
|
10153
10202
|
}
|
|
10154
10203
|
]
|
|
10155
10204
|
}
|
|
@@ -10158,7 +10207,7 @@ Execution errors include error.details.prints containing output printed before f
|
|
|
10158
10207
|
resource: "cut.projects.frames",
|
|
10159
10208
|
method: "list",
|
|
10160
10209
|
summary: "Render preview frames",
|
|
10161
|
-
description: "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.
|
|
10210
|
+
description: "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.",
|
|
10162
10211
|
http: "GET",
|
|
10163
10212
|
path: "/cut/v1/projects/{project_id}/frames",
|
|
10164
10213
|
streaming: "no",
|
|
@@ -10181,7 +10230,7 @@ Execution errors include error.details.prints containing output printed before f
|
|
|
10181
10230
|
name: "scale",
|
|
10182
10231
|
type: "number",
|
|
10183
10232
|
required: false,
|
|
10184
|
-
description: "
|
|
10233
|
+
description: "Image size multiplier, default 0.25, greater than zero and at most 0.5. Larger values return INVALID_PARAMS; pixel-area limits may reduce actual dimensions, reported as width and height."
|
|
10185
10234
|
},
|
|
10186
10235
|
{
|
|
10187
10236
|
name: "revision",
|
|
@@ -10373,7 +10422,158 @@ Execution errors include error.details.prints containing output printed before f
|
|
|
10373
10422
|
resource: "cut.projects",
|
|
10374
10423
|
method: "execute",
|
|
10375
10424
|
summary: "Execute editing script",
|
|
10376
|
-
description:
|
|
10425
|
+
description: `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);\`
|
|
10426
|
+
|
|
10427
|
+
<!-- cut-reference:start -->
|
|
10428
|
+
### Script function, field and error reference
|
|
10429
|
+
|
|
10430
|
+
Every script function, clip field and error code has its own section, read one at a time:
|
|
10431
|
+
|
|
10432
|
+
\`\`\`
|
|
10433
|
+
codemode.describe("praxis.cut.script.<Name>") // one function: signature, arguments, return, errors, example
|
|
10434
|
+
codemode.describe("praxis.cut.fields.<name>") // one field: type, unit, range, default, where writable
|
|
10435
|
+
codemode.describe("praxis.cut.errors.<CODE>") // one code: meaning, causes, fix
|
|
10436
|
+
codemode.describe("praxis.cut.script") // names, one page at a time
|
|
10437
|
+
\`\`\`
|
|
10438
|
+
|
|
10439
|
+
Published at https://docs.deepraxis.com/docs/developers/cut/script-reference with one anchor per entry. Names below omit the \`praxis.cut.<kind>.\` prefix.
|
|
10440
|
+
|
|
10441
|
+
#### Script functions (script)
|
|
10442
|
+
|
|
10443
|
+
- \`GetTimeline\` — Duration, tracks, joins; clips are under \`items\`.
|
|
10444
|
+
- \`GetItem\` — One clip's compact view, by id.
|
|
10445
|
+
- \`FindItems\` — Visit every clip with its track; collect results.
|
|
10446
|
+
- \`GetMedia\` — Media metadata; \`durationUs\` is microseconds.
|
|
10447
|
+
- \`GetTranscript\` — Transcript words in source microseconds.
|
|
10448
|
+
- \`GetAnalysis\` — Silence, filler or scene segments.
|
|
10449
|
+
- \`ListTransitions\` — Join transition kinds and parameters.
|
|
10450
|
+
- \`ListEffects\` — Visual-effect catalog and parameters.
|
|
10451
|
+
- \`ListAnimations\` — Animation presets by phase and target.
|
|
10452
|
+
- \`ListFonts\` — Font families, weights and scripts.
|
|
10453
|
+
- \`ListTextStyles\` — Text style presets for \`style.preset\`.
|
|
10454
|
+
- \`ListTextTemplates\` — Multi-layer templates and their slots.
|
|
10455
|
+
- \`Insert\` — Add a clip; a track never overlaps itself.
|
|
10456
|
+
- \`Append\` — Add a clip at the end of a track.
|
|
10457
|
+
- \`Update\` — Change named fields; the rest stay.
|
|
10458
|
+
- \`SetSpeed\` — Change rate, keeping source or duration.
|
|
10459
|
+
- \`Delete\` — Remove a clip. There is no \`Remove\`.
|
|
10460
|
+
- \`Join\` — Overlap clips; followers shift, track shortens.
|
|
10461
|
+
- \`UpdateJoin\` — Change a join's length or effect.
|
|
10462
|
+
- \`DeleteJoin\` — Remove a join; restore the butt cut.
|
|
10463
|
+
- \`Split\` — Cut a clip in two at a time.
|
|
10464
|
+
- \`Trim\` — Move one clip edge by seconds.
|
|
10465
|
+
- \`Move\` — Set a clip's start or track.
|
|
10466
|
+
- \`RippleDeleteRange\` — Cut a time range and close the gap.
|
|
10467
|
+
- \`AddTrack\` — Add a video, audio or caption track.
|
|
10468
|
+
- \`UpdateTrack\` — Change a track's name, lock, gain or role.
|
|
10469
|
+
- \`DeleteTrack\` — Remove a track and its clips.
|
|
10470
|
+
- \`SetSettings\` — Change canvas, frame rate or background.
|
|
10471
|
+
- \`AddCaptionsFromTranscript\` — Captions from a clip's kept words.
|
|
10472
|
+
- \`InsertTemplate\` — Insert a template and fill its slots.
|
|
10473
|
+
- \`AlignCaptions\` — Rebuild captions from text punctuation.
|
|
10474
|
+
- \`ImportCaptions\` — Import SRT or WebVTT onto captions.
|
|
10475
|
+
- \`ExportCaptions\` — Export captions as SRT or WebVTT.
|
|
10476
|
+
- \`SetMarker\` — Label a timeline position.
|
|
10477
|
+
- \`Print\` — Append values to the result's \`prints\`.
|
|
10478
|
+
- \`Preview\` — Up to 8 frames as inline PNG data URLs.
|
|
10479
|
+
|
|
10480
|
+
#### Fields (fields)
|
|
10481
|
+
|
|
10482
|
+
- \`type\` — Clip kind; decides which fields apply.
|
|
10483
|
+
- \`start\` — Clip start in seconds; snaps to frames.
|
|
10484
|
+
- \`length\` — Duration; optional for video and audio.
|
|
10485
|
+
- \`media\` — Source \`{ libraryId, assetId }\`.
|
|
10486
|
+
- \`sourceIn\` — First source second kept; default 0.
|
|
10487
|
+
- \`sourceOut\` — Exclusive source end; read-only.
|
|
10488
|
+
- \`text\` — Text of a text or caption clip.
|
|
10489
|
+
- \`color\` — Solid colour of a color clip.
|
|
10490
|
+
- \`shape\` — Shape clip kind: \`rect\` or \`ellipse\`.
|
|
10491
|
+
- \`width\` — Shape width, a fraction of canvas width.
|
|
10492
|
+
- \`height\` — Shape height, a fraction of canvas height.
|
|
10493
|
+
- \`radius\` — Rect corner rounding, in 1080-height px.
|
|
10494
|
+
- \`fill\` — Shape or text paint: colour or gradient.
|
|
10495
|
+
- \`stroke\` — Shape outline: colour and width.
|
|
10496
|
+
- \`transform\` — Position, scale, rotation, opacity, crop, blur.
|
|
10497
|
+
- \`fit\` — contain, cover, fill or none.
|
|
10498
|
+
- \`blend\` — Layer blend mode; null clears.
|
|
10499
|
+
- \`style\` — Text styling: font, fill, strokes, glow, position.
|
|
10500
|
+
- \`style.position\` — top, middle or bottom; omit it, never null.
|
|
10501
|
+
- \`playback\` — Rate, direction, audio policy, or freeze.
|
|
10502
|
+
- \`volumeDb\` — Audio level in dB; 0 is source level.
|
|
10503
|
+
- \`gain\` — Keyframed audio level in dB.
|
|
10504
|
+
- \`fadeIn\` — Fade-in seconds at the clip's start.
|
|
10505
|
+
- \`fadeOut\` — Fade-out seconds at the clip's end.
|
|
10506
|
+
- \`duck\` — Lower this clip while another track plays.
|
|
10507
|
+
- \`animate\` — Transform keyframes; \`at\` is clip-relative seconds.
|
|
10508
|
+
- \`reveal\` — Per-character, word or line reveal timing.
|
|
10509
|
+
- \`animation\` — Preset slots \`{ in, out, loop }\`; null clears.
|
|
10510
|
+
- \`effects\` — Effect stack, at most 8; null clears.
|
|
10511
|
+
- \`transitionIn\` — Entrance effect: kind plus seconds.
|
|
10512
|
+
- \`transitionOut\` — Exit effect: kind plus seconds.
|
|
10513
|
+
- \`mask\` — Shape, path or track matte.
|
|
10514
|
+
- \`words\` — Caption words with clip-local times.
|
|
10515
|
+
|
|
10516
|
+
#### Error codes (errors)
|
|
10517
|
+
|
|
10518
|
+
- \`JOIN_CONFLICT\` — A join is invalid or blocks this edit.
|
|
10519
|
+
- \`INVALID_TRANSITION\` — Bad transition kind, parameter or length.
|
|
10520
|
+
- \`INVALID_STYLE\` — A style value is out of range.
|
|
10521
|
+
- \`INVALID_MASK\` — A mask definition is malformed.
|
|
10522
|
+
- \`MASK_IN_USE\` — The edit would break a live mask.
|
|
10523
|
+
- \`TOO_MANY_MASKS\` — At most 16 masks per project.
|
|
10524
|
+
- \`RATE_OUT_OF_RANGE\` — A rate is outside 0.25-4.
|
|
10525
|
+
- \`UNSUPPORTED_PLAYBACK\` — Reverse without an explicit mute.
|
|
10526
|
+
- \`INVALID_PLAYBACK\` — A playback object is partial or malformed.
|
|
10527
|
+
- \`UNKNOWN_FONT\` — The family is not in \`ListFonts()\`.
|
|
10528
|
+
- \`UNKNOWN_FIELD\` — The field name is not accepted here.
|
|
10529
|
+
- \`UNKNOWN_TEXT_STYLE\` — \`style.preset\` is not in the catalog.
|
|
10530
|
+
- \`TEXT_STYLE_TARGET_MISMATCH\` — Preset on the wrong clip type.
|
|
10531
|
+
- \`CAPTION_ALIGN_LOW_CONFIDENCE\` — Alignment confidence too low; nothing changed.
|
|
10532
|
+
- \`OVERLAP\` — Two clips on one track would share time.
|
|
10533
|
+
- \`OUT_OF_SOURCE\` — The clip would read past its source.
|
|
10534
|
+
- \`LOCKED_TRACK\` — The edit targets a locked track.
|
|
10535
|
+
- \`UNBOUND_LIBRARY\` — The library is not bound to the project.
|
|
10536
|
+
- \`TRACK_KIND_MISMATCH\` — The clip type does not fit the track.
|
|
10537
|
+
- \`NOT_FOUND\` — The named id is not in this project.
|
|
10538
|
+
- \`TOO_SHORT\` — The result would be under one frame.
|
|
10539
|
+
- \`INVALID_DUCK\` — Bad \`duck\` level or a missing track.
|
|
10540
|
+
- \`UNKNOWN_ANIMATION\` — The preset is not in \`ListAnimations()\`.
|
|
10541
|
+
- \`INVALID_ANIMATION_PARAM\` — Bad slot, parameter or keyframe limit.
|
|
10542
|
+
- \`ANIMATION_TOO_LONG\` — In plus out exceed the clip length.
|
|
10543
|
+
- \`ANIMATION_TARGET_MISMATCH\` — The preset does not match the clip type.
|
|
10544
|
+
- \`ANIMATION_PHASE_MISMATCH\` — The preset is in the wrong slot.
|
|
10545
|
+
- \`UNKNOWN_EFFECT\` — The effect is not in \`ListEffects()\`.
|
|
10546
|
+
- \`INVALID_EFFECT_PARAM\` — Bad effect parameter or keyframe.
|
|
10547
|
+
- \`TOO_MANY_EFFECTS\` — More than 8 effects on one clip.
|
|
10548
|
+
- \`PROJECT_NOT_FOUND\` — No visible project has this id.
|
|
10549
|
+
- \`EXPORT_NOT_FOUND\` — No such export in this project.
|
|
10550
|
+
- \`VERSION_NOT_FOUND\` — No saved version has this revision.
|
|
10551
|
+
- \`LIBRARY_NOT_FOUND\` — The library is missing or invisible.
|
|
10552
|
+
- \`BINDING_INVALID\` — The binding request is malformed.
|
|
10553
|
+
- \`BINDING_IN_USE\` — Clips still use this library's assets.
|
|
10554
|
+
- \`NOTHING_TO_UNDO\` — No earlier revision to return to.
|
|
10555
|
+
- \`NOTHING_TO_REDO\` — No undone revision is waiting.
|
|
10556
|
+
- \`UNDO_CONFLICT\` — The revision to undo is no longer head.
|
|
10557
|
+
- \`REVISION_CONFLICT\` — The project moved; your revision is stale.
|
|
10558
|
+
- \`CUT_BUSY\` — The project is busy; retry.
|
|
10559
|
+
- \`INVALID_CAPTION_FILE\` — The subtitle file is malformed or too big.
|
|
10560
|
+
- \`SCRIPT_ERROR\` — The script threw or did not parse.
|
|
10561
|
+
- \`SCRIPT_LIMIT\` — An execute budget was exceeded.
|
|
10562
|
+
- \`OPS_REJECTED\` — An op failed; the whole edit rolled back.
|
|
10563
|
+
- \`EDIT_EXPIRED\` — The saved edit id is over ten minutes old.
|
|
10564
|
+
- \`MEDIA_OFFLINE\` — The asset cannot be fetched right now.
|
|
10565
|
+
- \`MEDIA_UNAVAILABLE\` — The asset is not usable for rendering.
|
|
10566
|
+
- \`MEDIA_IMPORT_FAILED\` — Importing media failed.
|
|
10567
|
+
- \`FRAME_OUT_OF_RANGE\` — The preview time is outside the project.
|
|
10568
|
+
- \`PROJECT_TOO_LARGE\` — The project exceeds the size limit.
|
|
10569
|
+
- \`RESPONSE_TOO_LARGE\` — The response would exceed its budget.
|
|
10570
|
+
- \`EXPORT_FAILED\` — The render failed; read \`error.cause\`.
|
|
10571
|
+
- \`INVALID_PARAMS\` — The request is malformed.
|
|
10572
|
+
- \`PERMISSION_DENIED\` — This credential may not do that here.
|
|
10573
|
+
- \`NOT_IMPLEMENTED\` — Not available on this platform yet.
|
|
10574
|
+
- \`INTERNAL\` — Unexpected failure; retry with the request id.
|
|
10575
|
+
<!-- cut-reference:end -->
|
|
10576
|
+
`,
|
|
10377
10577
|
http: "POST",
|
|
10378
10578
|
path: "/cut/v1/projects/{project_id}:execute",
|
|
10379
10579
|
streaming: "no",
|
|
@@ -11465,7 +11665,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11465
11665
|
resource: "file.files",
|
|
11466
11666
|
method: "create",
|
|
11467
11667
|
summary: "Upload file",
|
|
11468
|
-
description: '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.',
|
|
11668
|
+
description: '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.',
|
|
11469
11669
|
http: "POST",
|
|
11470
11670
|
path: "/file/v1/files",
|
|
11471
11671
|
streaming: "no",
|
|
@@ -11487,10 +11687,11 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11487
11687
|
type: "string",
|
|
11488
11688
|
enum: [
|
|
11489
11689
|
"user_data",
|
|
11690
|
+
"assistants",
|
|
11490
11691
|
"vision"
|
|
11491
11692
|
],
|
|
11492
11693
|
required: true,
|
|
11493
|
-
description: "Purpose label stored with the file: user_data or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data."
|
|
11694
|
+
description: "Purpose label stored with the file: user_data, assistants or vision. The label is stored and returned unchanged; assistants follows the same rules as user_data. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data."
|
|
11494
11695
|
},
|
|
11495
11696
|
{
|
|
11496
11697
|
name: "expires_after",
|
|
@@ -11559,7 +11760,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11559
11760
|
resource: "file.files.contentLinks",
|
|
11560
11761
|
method: "revoke",
|
|
11561
11762
|
summary: "Revoke a file content link",
|
|
11562
|
-
description: '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
|
|
11763
|
+
description: '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/>"}.',
|
|
11563
11764
|
http: "POST",
|
|
11564
11765
|
path: "/file/v1/files/{file_id}/content_links:revoke",
|
|
11565
11766
|
streaming: "no",
|
|
@@ -11588,7 +11789,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11588
11789
|
resource: "file.files.contentUrl",
|
|
11589
11790
|
method: "create",
|
|
11590
11791
|
summary: "Create a download URL",
|
|
11591
|
-
description: `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
|
|
11792
|
+
description: `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}.`,
|
|
11592
11793
|
http: "POST",
|
|
11593
11794
|
path: "/file/v1/files/{file_id}/content_url",
|
|
11594
11795
|
streaming: "no",
|
|
@@ -11608,7 +11809,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11608
11809
|
name: "ttl_seconds",
|
|
11609
11810
|
type: "integer",
|
|
11610
11811
|
required: false,
|
|
11611
|
-
description: "Download link lifetime in seconds, from 1 through 604800; omitted means
|
|
11812
|
+
description: "Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry."
|
|
11612
11813
|
}
|
|
11613
11814
|
]
|
|
11614
11815
|
}
|
|
@@ -11617,7 +11818,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11617
11818
|
resource: "file.uploads",
|
|
11618
11819
|
method: "create",
|
|
11619
11820
|
summary: "Create an upload",
|
|
11620
|
-
description: "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
|
|
11821
|
+
description: "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.",
|
|
11621
11822
|
http: "POST",
|
|
11622
11823
|
path: "/file/v1/uploads",
|
|
11623
11824
|
streaming: "no",
|
|
@@ -11631,7 +11832,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11631
11832
|
name: "bytes",
|
|
11632
11833
|
type: "integer",
|
|
11633
11834
|
required: true,
|
|
11634
|
-
description: "Exact complete file length in bytes, from 1 through
|
|
11835
|
+
description: "Exact complete file length in bytes, from 1 through 21474836480 (20 GiB); the sum of completed parts must match."
|
|
11635
11836
|
},
|
|
11636
11837
|
{
|
|
11637
11838
|
name: "filename",
|
|
@@ -11650,10 +11851,11 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11650
11851
|
type: "string",
|
|
11651
11852
|
enum: [
|
|
11652
11853
|
"user_data",
|
|
11854
|
+
"assistants",
|
|
11653
11855
|
"vision"
|
|
11654
11856
|
],
|
|
11655
11857
|
required: true,
|
|
11656
|
-
description: "Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images."
|
|
11858
|
+
description: "Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images."
|
|
11657
11859
|
},
|
|
11658
11860
|
{
|
|
11659
11861
|
name: "expires_after",
|
|
@@ -11674,7 +11876,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11674
11876
|
resource: "file.uploads",
|
|
11675
11877
|
method: "createSigned",
|
|
11676
11878
|
summary: "Create a one-time upload URL",
|
|
11677
|
-
description: "Upload a local file of up to
|
|
11879
|
+
description: "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\"}.",
|
|
11678
11880
|
http: "POST",
|
|
11679
11881
|
path: "/file/v1/uploads/signed",
|
|
11680
11882
|
streaming: "no",
|
|
@@ -11694,7 +11896,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11694
11896
|
name: "bytes",
|
|
11695
11897
|
type: "integer",
|
|
11696
11898
|
required: true,
|
|
11697
|
-
description: "Exact local file size in bytes, from 1 through
|
|
11899
|
+
description: "Exact local file size in bytes, from 1 through 21474836480 (20 GiB). Up to 104857600 bytes returns one PUT URL; larger files return numbered part URLs, a completion URL and a status URL. Every PUT requires its exact signed Content-Length."
|
|
11698
11900
|
},
|
|
11699
11901
|
{
|
|
11700
11902
|
name: "content_type",
|
|
@@ -11707,16 +11909,17 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11707
11909
|
type: "string",
|
|
11708
11910
|
enum: [
|
|
11709
11911
|
"user_data",
|
|
11912
|
+
"assistants",
|
|
11710
11913
|
"vision"
|
|
11711
11914
|
],
|
|
11712
11915
|
required: false,
|
|
11713
|
-
description: "user_data
|
|
11916
|
+
description: "user_data and assistants store ordinary files and conversation images with their original purpose label; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data."
|
|
11714
11917
|
},
|
|
11715
11918
|
{
|
|
11716
11919
|
name: "expires_in",
|
|
11717
11920
|
type: "integer",
|
|
11718
11921
|
required: false,
|
|
11719
|
-
description: "Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or
|
|
11922
|
+
description: "Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 604800 (7 days) for multipart. All part URLs, the status URL and the completion URL share one expiry. This does not set the resulting file's lifetime."
|
|
11720
11923
|
},
|
|
11721
11924
|
{
|
|
11722
11925
|
name: "part_size",
|
|
@@ -11727,6 +11930,24 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11727
11930
|
]
|
|
11728
11931
|
}
|
|
11729
11932
|
},
|
|
11933
|
+
{
|
|
11934
|
+
resource: "file.uploads",
|
|
11935
|
+
method: "retrieve",
|
|
11936
|
+
summary: "Retrieve an upload",
|
|
11937
|
+
description: "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.",
|
|
11938
|
+
http: "GET",
|
|
11939
|
+
path: "/file/v1/uploads/{upload_id}",
|
|
11940
|
+
streaming: "no",
|
|
11941
|
+
pagination: false,
|
|
11942
|
+
pathParams: [
|
|
11943
|
+
{
|
|
11944
|
+
name: "upload_id",
|
|
11945
|
+
sdkName: "upload_id",
|
|
11946
|
+
description: "Upload identifier returned by create; the upload must belong to your organization."
|
|
11947
|
+
}
|
|
11948
|
+
],
|
|
11949
|
+
query: []
|
|
11950
|
+
},
|
|
11730
11951
|
{
|
|
11731
11952
|
resource: "file.uploads",
|
|
11732
11953
|
method: "cancel",
|
|
@@ -11749,7 +11970,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11749
11970
|
resource: "file.uploads",
|
|
11750
11971
|
method: "complete",
|
|
11751
11972
|
summary: "Complete an upload",
|
|
11752
|
-
description: "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.",
|
|
11973
|
+
description: "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.",
|
|
11753
11974
|
http: "POST",
|
|
11754
11975
|
path: "/file/v1/uploads/{upload_id}/complete",
|
|
11755
11976
|
streaming: "no",
|
|
@@ -11785,7 +12006,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11785
12006
|
resource: "file.uploads.parts",
|
|
11786
12007
|
method: "create",
|
|
11787
12008
|
summary: "Add an upload part",
|
|
11788
|
-
description: "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.",
|
|
12009
|
+
description: "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.",
|
|
11789
12010
|
http: "POST",
|
|
11790
12011
|
path: "/file/v1/uploads/{upload_id}/parts",
|
|
11791
12012
|
streaming: "no",
|
|
@@ -11873,7 +12094,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11873
12094
|
resource: "knowledge.vectorStores",
|
|
11874
12095
|
method: "create",
|
|
11875
12096
|
summary: "Create knowledge base",
|
|
11876
|
-
description: '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.
|
|
12097
|
+
description: '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"}.',
|
|
11877
12098
|
http: "POST",
|
|
11878
12099
|
path: "/knowledge/v1/vector_stores",
|
|
11879
12100
|
streaming: "no",
|
|
@@ -11912,7 +12133,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
11912
12133
|
name: "chunking_strategy",
|
|
11913
12134
|
type: "object",
|
|
11914
12135
|
required: false,
|
|
11915
|
-
description: "auto
|
|
12136
|
+
description: "Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy."
|
|
11916
12137
|
},
|
|
11917
12138
|
{
|
|
11918
12139
|
name: "description",
|
|
@@ -12259,7 +12480,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
12259
12480
|
resource: "knowledge.vectorStores.files",
|
|
12260
12481
|
method: "create",
|
|
12261
12482
|
summary: "Add file",
|
|
12262
|
-
description: "Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching.
|
|
12483
|
+
description: "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.",
|
|
12263
12484
|
http: "POST",
|
|
12264
12485
|
path: "/knowledge/v1/vector_stores/{vector_store_id}/files",
|
|
12265
12486
|
streaming: "no",
|
|
@@ -12291,7 +12512,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
12291
12512
|
name: "chunking_strategy",
|
|
12292
12513
|
type: "object",
|
|
12293
12514
|
required: false,
|
|
12294
|
-
description: "auto
|
|
12515
|
+
description: "Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy."
|
|
12295
12516
|
}
|
|
12296
12517
|
]
|
|
12297
12518
|
}
|
|
@@ -12598,11 +12819,23 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
12598
12819
|
],
|
|
12599
12820
|
query: []
|
|
12600
12821
|
},
|
|
12822
|
+
{
|
|
12823
|
+
resource: "media.generation.capabilities",
|
|
12824
|
+
method: "list",
|
|
12825
|
+
summary: "Get generation capabilities",
|
|
12826
|
+
description: "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.",
|
|
12827
|
+
http: "GET",
|
|
12828
|
+
path: "/media/v1/generation/capabilities",
|
|
12829
|
+
streaming: "no",
|
|
12830
|
+
pagination: false,
|
|
12831
|
+
pathParams: [],
|
|
12832
|
+
query: []
|
|
12833
|
+
},
|
|
12601
12834
|
{
|
|
12602
12835
|
resource: "media.libraries",
|
|
12603
12836
|
method: "list",
|
|
12604
12837
|
summary: "List libraries",
|
|
12605
|
-
description: "
|
|
12838
|
+
description: "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.",
|
|
12606
12839
|
http: "GET",
|
|
12607
12840
|
path: "/media/v1/libraries",
|
|
12608
12841
|
streaming: "no",
|
|
@@ -12684,7 +12917,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
12684
12917
|
resource: "media.libraries",
|
|
12685
12918
|
method: "delete",
|
|
12686
12919
|
summary: "Delete library",
|
|
12687
|
-
description: "
|
|
12920
|
+
description: "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.",
|
|
12688
12921
|
http: "DELETE",
|
|
12689
12922
|
path: "/media/v1/libraries/{library_id}",
|
|
12690
12923
|
streaming: "no",
|
|
@@ -12702,7 +12935,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
12702
12935
|
resource: "media.libraries",
|
|
12703
12936
|
method: "retrieve",
|
|
12704
12937
|
summary: "Get library",
|
|
12705
|
-
description: "
|
|
12938
|
+
description: "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.",
|
|
12706
12939
|
http: "GET",
|
|
12707
12940
|
path: "/media/v1/libraries/{library_id}",
|
|
12708
12941
|
streaming: "no",
|
|
@@ -12720,7 +12953,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
12720
12953
|
resource: "media.libraries",
|
|
12721
12954
|
method: "update",
|
|
12722
12955
|
summary: "Update library",
|
|
12723
|
-
description: "Update an active library
|
|
12956
|
+
description: "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.",
|
|
12724
12957
|
http: "PATCH",
|
|
12725
12958
|
path: "/media/v1/libraries/{library_id}",
|
|
12726
12959
|
streaming: "no",
|
|
@@ -12736,6 +12969,13 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
12736
12969
|
body: {
|
|
12737
12970
|
required: true,
|
|
12738
12971
|
fields: [
|
|
12972
|
+
{
|
|
12973
|
+
name: "hotwords",
|
|
12974
|
+
type: "array",
|
|
12975
|
+
itemType: "string",
|
|
12976
|
+
required: false,
|
|
12977
|
+
description: "Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results."
|
|
12978
|
+
},
|
|
12739
12979
|
{
|
|
12740
12980
|
name: "models",
|
|
12741
12981
|
type: "object",
|
|
@@ -12767,7 +13007,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
12767
13007
|
resource: "media.libraries.assets",
|
|
12768
13008
|
method: "list",
|
|
12769
13009
|
summary: "List assets",
|
|
12770
|
-
description: "
|
|
13010
|
+
description: "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.",
|
|
12771
13011
|
http: "GET",
|
|
12772
13012
|
path: "/media/v1/libraries/{library_id}/assets",
|
|
12773
13013
|
streaming: "no",
|
|
@@ -12815,7 +13055,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
12815
13055
|
resource: "media.libraries.assets",
|
|
12816
13056
|
method: "create",
|
|
12817
13057
|
summary: "Upload asset",
|
|
12818
|
-
description: "
|
|
13058
|
+
description: " 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.",
|
|
12819
13059
|
http: "POST",
|
|
12820
13060
|
path: "/media/v1/libraries/{library_id}/assets",
|
|
12821
13061
|
streaming: "no",
|
|
@@ -12860,7 +13100,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
12860
13100
|
name: "asset_folder",
|
|
12861
13101
|
type: "string",
|
|
12862
13102
|
required: false,
|
|
12863
|
-
description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected."
|
|
13103
|
+
description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
|
|
12864
13104
|
},
|
|
12865
13105
|
{
|
|
12866
13106
|
name: "use_filename",
|
|
@@ -12939,7 +13179,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
12939
13179
|
resource: "media.libraries.assets.import",
|
|
12940
13180
|
method: "create",
|
|
12941
13181
|
summary: "Import file",
|
|
12942
|
-
description: "Copy
|
|
13182
|
+
description: "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.",
|
|
12943
13183
|
http: "POST",
|
|
12944
13184
|
path: "/media/v1/libraries/{library_id}/assets/import",
|
|
12945
13185
|
streaming: "no",
|
|
@@ -12959,7 +13199,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
12959
13199
|
name: "file_id",
|
|
12960
13200
|
type: "string",
|
|
12961
13201
|
required: true,
|
|
12962
|
-
description: "File ID to copy into this library instead of file bytes. This independent copy defaults to
|
|
13202
|
+
description: "File ID to copy into this library instead of file bytes. This independent copy defaults to organization-private delivery (type=authenticated); explicitly set type=upload for public delivery. Deleting the source File does not delete this asset."
|
|
12963
13203
|
},
|
|
12964
13204
|
{
|
|
12965
13205
|
name: "public_id",
|
|
@@ -12983,7 +13223,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
12983
13223
|
name: "asset_folder",
|
|
12984
13224
|
type: "string",
|
|
12985
13225
|
required: false,
|
|
12986
|
-
description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected."
|
|
13226
|
+
description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
|
|
12987
13227
|
},
|
|
12988
13228
|
{
|
|
12989
13229
|
name: "use_filename",
|
|
@@ -13062,7 +13302,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13062
13302
|
resource: "media.libraries.assets",
|
|
13063
13303
|
method: "delete",
|
|
13064
13304
|
summary: "Delete asset",
|
|
13065
|
-
description: "
|
|
13305
|
+
description: "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.",
|
|
13066
13306
|
http: "DELETE",
|
|
13067
13307
|
path: "/media/v1/libraries/{library_id}/assets/{asset_id}",
|
|
13068
13308
|
streaming: "no",
|
|
@@ -13085,7 +13325,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13085
13325
|
resource: "media.libraries.assets",
|
|
13086
13326
|
method: "retrieve",
|
|
13087
13327
|
summary: "Get asset",
|
|
13088
|
-
description: "
|
|
13328
|
+
description: "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.",
|
|
13089
13329
|
http: "GET",
|
|
13090
13330
|
path: "/media/v1/libraries/{library_id}/assets/{asset_id}",
|
|
13091
13331
|
streaming: "no",
|
|
@@ -13108,7 +13348,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13108
13348
|
resource: "media.libraries.assets",
|
|
13109
13349
|
method: "update",
|
|
13110
13350
|
summary: "Update asset",
|
|
13111
|
-
description: "
|
|
13351
|
+
description: "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.",
|
|
13112
13352
|
http: "PATCH",
|
|
13113
13353
|
path: "/media/v1/libraries/{library_id}/assets/{asset_id}",
|
|
13114
13354
|
streaming: "no",
|
|
@@ -13139,7 +13379,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13139
13379
|
name: "asset_folder",
|
|
13140
13380
|
type: "string",
|
|
13141
13381
|
required: false,
|
|
13142
|
-
description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected."
|
|
13382
|
+
description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
|
|
13143
13383
|
},
|
|
13144
13384
|
{
|
|
13145
13385
|
name: "tags",
|
|
@@ -13157,11 +13397,57 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13157
13397
|
]
|
|
13158
13398
|
}
|
|
13159
13399
|
},
|
|
13400
|
+
{
|
|
13401
|
+
resource: "media.libraries.assets.frames",
|
|
13402
|
+
method: "create",
|
|
13403
|
+
summary: "Create frame URLs",
|
|
13404
|
+
description: '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.',
|
|
13405
|
+
http: "POST",
|
|
13406
|
+
path: "/media/v1/libraries/{library_id}/assets/{asset_id}/frames",
|
|
13407
|
+
streaming: "no",
|
|
13408
|
+
pagination: false,
|
|
13409
|
+
pathParams: [
|
|
13410
|
+
{
|
|
13411
|
+
name: "library_id",
|
|
13412
|
+
sdkName: "library_id",
|
|
13413
|
+
description: "Library identifier returned by library creation or listing; must be accessible to the current credential."
|
|
13414
|
+
},
|
|
13415
|
+
{
|
|
13416
|
+
name: "asset_id",
|
|
13417
|
+
sdkName: "asset_id",
|
|
13418
|
+
description: "Video asset identifier returned by asset upload or listing in this library; read its duration before choosing timestamps."
|
|
13419
|
+
}
|
|
13420
|
+
],
|
|
13421
|
+
query: [],
|
|
13422
|
+
body: {
|
|
13423
|
+
required: true,
|
|
13424
|
+
fields: [
|
|
13425
|
+
{
|
|
13426
|
+
name: "at_micros",
|
|
13427
|
+
type: "array",
|
|
13428
|
+
itemType: "integer",
|
|
13429
|
+
required: true,
|
|
13430
|
+
description: "One to twenty timestamps in microseconds from the start of the video. Each must be a nonnegative safe integer strictly below the video duration; order and duplicates are preserved."
|
|
13431
|
+
},
|
|
13432
|
+
{
|
|
13433
|
+
name: "width",
|
|
13434
|
+
type: "integer",
|
|
13435
|
+
enum: [
|
|
13436
|
+
160,
|
|
13437
|
+
320,
|
|
13438
|
+
640
|
|
13439
|
+
],
|
|
13440
|
+
required: false,
|
|
13441
|
+
description: "Maximum JPEG width in pixels: 160 is a small thumbnail, 320 a preview and 640 a larger preview. Defaults to 640; larger widths are unavailable."
|
|
13442
|
+
}
|
|
13443
|
+
]
|
|
13444
|
+
}
|
|
13445
|
+
},
|
|
13160
13446
|
{
|
|
13161
13447
|
resource: "media.libraries.assets.reprocess",
|
|
13162
13448
|
method: "create",
|
|
13163
13449
|
summary: "Reprocess asset",
|
|
13164
|
-
description: "
|
|
13450
|
+
description: " 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.",
|
|
13165
13451
|
http: "POST",
|
|
13166
13452
|
path: "/media/v1/libraries/{library_id}/assets/{asset_id}/reprocess",
|
|
13167
13453
|
streaming: "no",
|
|
@@ -13193,7 +13479,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13193
13479
|
"embedding"
|
|
13194
13480
|
],
|
|
13195
13481
|
required: false,
|
|
13196
|
-
description: "Processing tasks to rerun. Omit to retry failed tasks
|
|
13482
|
+
description: "Processing tasks to rerun. Omit to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable ready or failed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Pending and running tasks are unchanged; an empty array does nothing."
|
|
13197
13483
|
}
|
|
13198
13484
|
]
|
|
13199
13485
|
}
|
|
@@ -13202,7 +13488,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13202
13488
|
resource: "media.libraries.assets.understandings",
|
|
13203
13489
|
method: "list",
|
|
13204
13490
|
summary: "List understandings",
|
|
13205
|
-
description: "List an asset
|
|
13491
|
+
description: "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.",
|
|
13206
13492
|
http: "GET",
|
|
13207
13493
|
path: "/media/v1/libraries/{library_id}/assets/{asset_id}/understandings",
|
|
13208
13494
|
streaming: "no",
|
|
@@ -13234,10 +13520,13 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13234
13520
|
"tags",
|
|
13235
13521
|
"ocr",
|
|
13236
13522
|
"transcript",
|
|
13237
|
-
"frame"
|
|
13523
|
+
"frame",
|
|
13524
|
+
"overview",
|
|
13525
|
+
"audio",
|
|
13526
|
+
"embedding"
|
|
13238
13527
|
],
|
|
13239
13528
|
required: false,
|
|
13240
|
-
description: "
|
|
13529
|
+
description: "Return one output kind: caption is a visual description, tags are generated labels, ocr is visible text, transcript is speech, frame is a video shot, overview is a video summary, audio is sampled audio understanding, and embedding reports a failed embedding step."
|
|
13241
13530
|
},
|
|
13242
13531
|
{
|
|
13243
13532
|
name: "cursor",
|
|
@@ -13257,7 +13546,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13257
13546
|
resource: "media.libraries.assets",
|
|
13258
13547
|
method: "batch",
|
|
13259
13548
|
summary: "Batch assets alias",
|
|
13260
|
-
description:
|
|
13549
|
+
description: '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.',
|
|
13261
13550
|
http: "POST",
|
|
13262
13551
|
path: "/media/v1/libraries/{library_id}/assets:batch",
|
|
13263
13552
|
streaming: "no",
|
|
@@ -13278,6 +13567,12 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13278
13567
|
type: "object",
|
|
13279
13568
|
required: true,
|
|
13280
13569
|
description: "Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created."
|
|
13570
|
+
},
|
|
13571
|
+
{
|
|
13572
|
+
name: "reason",
|
|
13573
|
+
type: "string",
|
|
13574
|
+
required: false,
|
|
13575
|
+
description: "Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters."
|
|
13281
13576
|
}
|
|
13282
13577
|
]
|
|
13283
13578
|
}
|
|
@@ -13286,7 +13581,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13286
13581
|
resource: "media.libraries.batches",
|
|
13287
13582
|
method: "create",
|
|
13288
13583
|
summary: "Create batch",
|
|
13289
|
-
description:
|
|
13584
|
+
description: '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.',
|
|
13290
13585
|
http: "POST",
|
|
13291
13586
|
path: "/media/v1/libraries/{library_id}/batches",
|
|
13292
13587
|
streaming: "no",
|
|
@@ -13307,6 +13602,12 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13307
13602
|
type: "object",
|
|
13308
13603
|
required: true,
|
|
13309
13604
|
description: "Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created."
|
|
13605
|
+
},
|
|
13606
|
+
{
|
|
13607
|
+
name: "reason",
|
|
13608
|
+
type: "string",
|
|
13609
|
+
required: false,
|
|
13610
|
+
description: "Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters."
|
|
13310
13611
|
}
|
|
13311
13612
|
]
|
|
13312
13613
|
}
|
|
@@ -13315,7 +13616,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13315
13616
|
resource: "media.libraries.batches",
|
|
13316
13617
|
method: "retrieve",
|
|
13317
13618
|
summary: "Get batch",
|
|
13318
|
-
description: "
|
|
13619
|
+
description: "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.",
|
|
13319
13620
|
http: "GET",
|
|
13320
13621
|
path: "/media/v1/libraries/{library_id}/batches/{job_id}",
|
|
13321
13622
|
streaming: "no",
|
|
@@ -13338,7 +13639,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13338
13639
|
resource: "media.libraries.deliveryTokens",
|
|
13339
13640
|
method: "create",
|
|
13340
13641
|
summary: "Create delivery token",
|
|
13341
|
-
description: "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
|
|
13642
|
+
description: "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.",
|
|
13342
13643
|
http: "POST",
|
|
13343
13644
|
path: "/media/v1/libraries/{library_id}/delivery_tokens",
|
|
13344
13645
|
streaming: "no",
|
|
@@ -13364,7 +13665,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13364
13665
|
name: "expires_in",
|
|
13365
13666
|
type: "integer",
|
|
13366
13667
|
required: false,
|
|
13367
|
-
description: "Token lifetime in seconds, from 1 to 604800 inclusive; defaults to
|
|
13668
|
+
description: "Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900."
|
|
13368
13669
|
}
|
|
13369
13670
|
]
|
|
13370
13671
|
}
|
|
@@ -13373,7 +13674,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13373
13674
|
resource: "media.libraries.events",
|
|
13374
13675
|
method: "list",
|
|
13375
13676
|
summary: "List events",
|
|
13376
|
-
description: "Read library events in sequence order
|
|
13677
|
+
description: "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.",
|
|
13377
13678
|
http: "GET",
|
|
13378
13679
|
path: "/media/v1/libraries/{library_id}/events",
|
|
13379
13680
|
streaming: "no",
|
|
@@ -13420,7 +13721,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13420
13721
|
resource: "media.libraries.folders",
|
|
13421
13722
|
method: "list",
|
|
13422
13723
|
summary: "List folders",
|
|
13423
|
-
description: "
|
|
13724
|
+
description: "undefined understood_count includes ready and partial assets; failed_count includes failed assets. Both accumulate descendants. counts_complete is false during historical backfill.",
|
|
13424
13725
|
http: "GET",
|
|
13425
13726
|
path: "/media/v1/libraries/{library_id}/folders",
|
|
13426
13727
|
streaming: "no",
|
|
@@ -13441,11 +13742,155 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13441
13742
|
}
|
|
13442
13743
|
]
|
|
13443
13744
|
},
|
|
13745
|
+
{
|
|
13746
|
+
resource: "media.libraries.generations",
|
|
13747
|
+
method: "create",
|
|
13748
|
+
summary: "Create video generation",
|
|
13749
|
+
description: "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.",
|
|
13750
|
+
http: "POST",
|
|
13751
|
+
path: "/media/v1/libraries/{library_id}/generations",
|
|
13752
|
+
streaming: "no",
|
|
13753
|
+
pagination: false,
|
|
13754
|
+
pathParams: [
|
|
13755
|
+
{
|
|
13756
|
+
name: "library_id",
|
|
13757
|
+
sdkName: "library_id",
|
|
13758
|
+
description: "Library ID returned by creation."
|
|
13759
|
+
}
|
|
13760
|
+
],
|
|
13761
|
+
query: [],
|
|
13762
|
+
body: {
|
|
13763
|
+
required: true,
|
|
13764
|
+
fields: [
|
|
13765
|
+
{
|
|
13766
|
+
name: "intent",
|
|
13767
|
+
type: "string",
|
|
13768
|
+
required: true,
|
|
13769
|
+
description: "Generation operation; v1 accepts only video.generate text-to-video requests."
|
|
13770
|
+
},
|
|
13771
|
+
{
|
|
13772
|
+
name: "prompt",
|
|
13773
|
+
type: "string",
|
|
13774
|
+
required: true,
|
|
13775
|
+
description: "Text prompt describing the video to generate."
|
|
13776
|
+
},
|
|
13777
|
+
{
|
|
13778
|
+
name: "count",
|
|
13779
|
+
type: "integer",
|
|
13780
|
+
required: false,
|
|
13781
|
+
description: "Number of videos to generate; defaults to 1 and must be from 1 to 4."
|
|
13782
|
+
},
|
|
13783
|
+
{
|
|
13784
|
+
name: "duration_seconds",
|
|
13785
|
+
type: "integer",
|
|
13786
|
+
required: false,
|
|
13787
|
+
description: "Requested video duration in seconds; Router validates the model-specific supported durations."
|
|
13788
|
+
},
|
|
13789
|
+
{
|
|
13790
|
+
name: "aspect_ratio",
|
|
13791
|
+
type: "string",
|
|
13792
|
+
required: false,
|
|
13793
|
+
description: "Requested output aspect ratio; defaults to 16:9 and Router validates model support."
|
|
13794
|
+
},
|
|
13795
|
+
{
|
|
13796
|
+
name: "model",
|
|
13797
|
+
type: "string",
|
|
13798
|
+
required: false,
|
|
13799
|
+
description: "Router model with video_generation capability; defaults to wan2.7-t2v."
|
|
13800
|
+
},
|
|
13801
|
+
{
|
|
13802
|
+
name: "save",
|
|
13803
|
+
type: "string",
|
|
13804
|
+
enum: [
|
|
13805
|
+
"candidate",
|
|
13806
|
+
"library"
|
|
13807
|
+
],
|
|
13808
|
+
required: false,
|
|
13809
|
+
description: "candidate keeps outputs temporary for explicit save calls; library saves successful outputs automatically."
|
|
13810
|
+
},
|
|
13811
|
+
{
|
|
13812
|
+
name: "asset_folder",
|
|
13813
|
+
type: "string",
|
|
13814
|
+
required: false,
|
|
13815
|
+
description: "Folder for assets saved automatically or by later save calls; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
|
|
13816
|
+
},
|
|
13817
|
+
{
|
|
13818
|
+
name: "tags",
|
|
13819
|
+
type: "array",
|
|
13820
|
+
itemType: "string",
|
|
13821
|
+
required: false,
|
|
13822
|
+
description: "Tags applied when an output becomes a library asset."
|
|
13823
|
+
},
|
|
13824
|
+
{
|
|
13825
|
+
name: "understanding",
|
|
13826
|
+
type: "string",
|
|
13827
|
+
enum: [
|
|
13828
|
+
"auto",
|
|
13829
|
+
"skip"
|
|
13830
|
+
],
|
|
13831
|
+
required: false,
|
|
13832
|
+
description: "Understanding behavior when a candidate is saved as an asset; defaults to auto."
|
|
13833
|
+
},
|
|
13834
|
+
{
|
|
13835
|
+
name: "references",
|
|
13836
|
+
type: "array",
|
|
13837
|
+
itemType: "object",
|
|
13838
|
+
required: false,
|
|
13839
|
+
description: "Not supported in v1; omit this field. Only text-to-video is currently available."
|
|
13840
|
+
}
|
|
13841
|
+
]
|
|
13842
|
+
}
|
|
13843
|
+
},
|
|
13844
|
+
{
|
|
13845
|
+
resource: "media.libraries.jobs",
|
|
13846
|
+
method: "list",
|
|
13847
|
+
summary: "List jobs",
|
|
13848
|
+
description: "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.",
|
|
13849
|
+
http: "GET",
|
|
13850
|
+
path: "/media/v1/libraries/{library_id}/jobs",
|
|
13851
|
+
streaming: "no",
|
|
13852
|
+
pagination: true,
|
|
13853
|
+
pathParams: [
|
|
13854
|
+
{
|
|
13855
|
+
name: "library_id",
|
|
13856
|
+
sdkName: "library_id",
|
|
13857
|
+
description: "Library ID returned by creation."
|
|
13858
|
+
}
|
|
13859
|
+
],
|
|
13860
|
+
query: [
|
|
13861
|
+
{
|
|
13862
|
+
name: "status",
|
|
13863
|
+
type: "string",
|
|
13864
|
+
enum: [
|
|
13865
|
+
"queued",
|
|
13866
|
+
"running",
|
|
13867
|
+
"completed",
|
|
13868
|
+
"completed_with_errors",
|
|
13869
|
+
"failed",
|
|
13870
|
+
"cancelled"
|
|
13871
|
+
],
|
|
13872
|
+
required: false,
|
|
13873
|
+
description: "Filter jobs by their current status."
|
|
13874
|
+
},
|
|
13875
|
+
{
|
|
13876
|
+
name: "limit",
|
|
13877
|
+
type: "integer",
|
|
13878
|
+
required: false,
|
|
13879
|
+
description: "Maximum entries in this page, from 1 through 100; defaults to 100."
|
|
13880
|
+
},
|
|
13881
|
+
{
|
|
13882
|
+
name: "cursor",
|
|
13883
|
+
type: "string",
|
|
13884
|
+
required: false,
|
|
13885
|
+
description: "Job id from the previous page’s next_cursor; omit for the first page."
|
|
13886
|
+
}
|
|
13887
|
+
]
|
|
13888
|
+
},
|
|
13444
13889
|
{
|
|
13445
13890
|
resource: "media.libraries.jobs",
|
|
13446
13891
|
method: "retrieve",
|
|
13447
|
-
summary: "Get job
|
|
13448
|
-
description: "
|
|
13892
|
+
summary: "Get job",
|
|
13893
|
+
description: "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.",
|
|
13449
13894
|
http: "GET",
|
|
13450
13895
|
path: "/media/v1/libraries/{library_id}/jobs/{job_id}",
|
|
13451
13896
|
streaming: "no",
|
|
@@ -13459,16 +13904,101 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13459
13904
|
{
|
|
13460
13905
|
name: "job_id",
|
|
13461
13906
|
sdkName: "job_id",
|
|
13462
|
-
description: "
|
|
13907
|
+
description: "Job identifier returned by batch creation, video-generation creation or job listing; resolved within this library."
|
|
13463
13908
|
}
|
|
13464
13909
|
],
|
|
13465
13910
|
query: []
|
|
13466
13911
|
},
|
|
13912
|
+
{
|
|
13913
|
+
resource: "media.libraries.jobs",
|
|
13914
|
+
method: "cancel",
|
|
13915
|
+
summary: "Cancel job",
|
|
13916
|
+
description: "Cancel a queued or running generation job. Already completed outputs remain available to save; poll or read the returned Job to confirm its status.",
|
|
13917
|
+
http: "POST",
|
|
13918
|
+
path: "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel",
|
|
13919
|
+
streaming: "no",
|
|
13920
|
+
pagination: false,
|
|
13921
|
+
pathParams: [
|
|
13922
|
+
{
|
|
13923
|
+
name: "library_id",
|
|
13924
|
+
sdkName: "library_id",
|
|
13925
|
+
description: "Library ID returned by creation."
|
|
13926
|
+
},
|
|
13927
|
+
{
|
|
13928
|
+
name: "job_id",
|
|
13929
|
+
sdkName: "job_id",
|
|
13930
|
+
description: "Job identifier returned by batch or generation creation; the job is resolved within the specified library."
|
|
13931
|
+
}
|
|
13932
|
+
],
|
|
13933
|
+
query: []
|
|
13934
|
+
},
|
|
13935
|
+
{
|
|
13936
|
+
resource: "media.libraries.jobs.outputs.save",
|
|
13937
|
+
method: "create",
|
|
13938
|
+
summary: "Save generation output",
|
|
13939
|
+
description: "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.",
|
|
13940
|
+
http: "POST",
|
|
13941
|
+
path: "/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save",
|
|
13942
|
+
streaming: "no",
|
|
13943
|
+
pagination: false,
|
|
13944
|
+
pathParams: [
|
|
13945
|
+
{
|
|
13946
|
+
name: "library_id",
|
|
13947
|
+
sdkName: "library_id",
|
|
13948
|
+
description: "Library ID returned by creation."
|
|
13949
|
+
},
|
|
13950
|
+
{
|
|
13951
|
+
name: "job_id",
|
|
13952
|
+
sdkName: "job_id",
|
|
13953
|
+
description: "Job identifier returned by batch or generation creation; the job is resolved within the specified library."
|
|
13954
|
+
},
|
|
13955
|
+
{
|
|
13956
|
+
name: "index",
|
|
13957
|
+
sdkName: "index",
|
|
13958
|
+
description: "Zero-based position of the candidate in the Job outputs array."
|
|
13959
|
+
}
|
|
13960
|
+
],
|
|
13961
|
+
query: [],
|
|
13962
|
+
body: {
|
|
13963
|
+
required: false,
|
|
13964
|
+
fields: [
|
|
13965
|
+
{
|
|
13966
|
+
name: "public_id",
|
|
13967
|
+
type: "string",
|
|
13968
|
+
required: false,
|
|
13969
|
+
description: "Delivery identifier for the saved asset; defaults to gen_<job_id>_<index> and is idempotent."
|
|
13970
|
+
},
|
|
13971
|
+
{
|
|
13972
|
+
name: "asset_folder",
|
|
13973
|
+
type: "string",
|
|
13974
|
+
required: false,
|
|
13975
|
+
description: "Destination folder for the saved asset; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
|
|
13976
|
+
},
|
|
13977
|
+
{
|
|
13978
|
+
name: "tags",
|
|
13979
|
+
type: "array",
|
|
13980
|
+
itemType: "string",
|
|
13981
|
+
required: false,
|
|
13982
|
+
description: "Tags to apply to the saved asset."
|
|
13983
|
+
},
|
|
13984
|
+
{
|
|
13985
|
+
name: "understanding",
|
|
13986
|
+
type: "string",
|
|
13987
|
+
enum: [
|
|
13988
|
+
"auto",
|
|
13989
|
+
"skip"
|
|
13990
|
+
],
|
|
13991
|
+
required: false,
|
|
13992
|
+
description: "Understanding behavior for the saved asset; defaults to auto."
|
|
13993
|
+
}
|
|
13994
|
+
]
|
|
13995
|
+
}
|
|
13996
|
+
},
|
|
13467
13997
|
{
|
|
13468
13998
|
resource: "media.libraries.purge",
|
|
13469
13999
|
method: "create",
|
|
13470
14000
|
summary: "Purge library",
|
|
13471
|
-
description: "
|
|
14001
|
+
description: "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.",
|
|
13472
14002
|
http: "POST",
|
|
13473
14003
|
path: "/media/v1/libraries/{library_id}/purge",
|
|
13474
14004
|
streaming: "no",
|
|
@@ -13486,7 +14016,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13486
14016
|
resource: "media.libraries",
|
|
13487
14017
|
method: "restore",
|
|
13488
14018
|
summary: "Restore library",
|
|
13489
|
-
description: "
|
|
14019
|
+
description: "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.",
|
|
13490
14020
|
http: "POST",
|
|
13491
14021
|
path: "/media/v1/libraries/{library_id}/restore",
|
|
13492
14022
|
streaming: "no",
|
|
@@ -13504,7 +14034,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13504
14034
|
resource: "media.libraries.search",
|
|
13505
14035
|
method: "create",
|
|
13506
14036
|
summary: "Semantic search alias",
|
|
13507
|
-
description: "
|
|
14037
|
+
description: "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.",
|
|
13508
14038
|
http: "POST",
|
|
13509
14039
|
path: "/media/v1/libraries/{library_id}/search",
|
|
13510
14040
|
streaming: "no",
|
|
@@ -13555,7 +14085,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13555
14085
|
resource: "media.libraries.search.expression",
|
|
13556
14086
|
method: "create",
|
|
13557
14087
|
summary: "Expression search",
|
|
13558
|
-
description: "
|
|
14088
|
+
description: "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.",
|
|
13559
14089
|
http: "POST",
|
|
13560
14090
|
path: "/media/v1/libraries/{library_id}/search/expression",
|
|
13561
14091
|
streaming: "no",
|
|
@@ -13575,7 +14105,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13575
14105
|
name: "expression",
|
|
13576
14106
|
type: "string",
|
|
13577
14107
|
required: false,
|
|
13578
|
-
description: 'Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context.'
|
|
14108
|
+
description: 'Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context. Quality filters: flags:watermark matches any current shot with a watermark; flags.watermark:false requires an assessed video with no positive watermark judgment. The same syntax supports slideshow, hand_frame, text_sticker and low_quality. folder_mismatch:true selects lexical folder/location hints. Geometry filters support width, height, resolution:1920x1080, numeric aspect_ratio (width/height), and orientation:landscape, portrait or square. Missing geometry or unassessed legacy flags do not match positive filters. has_music:true AND audio_genre:jazz AND audio_mood:calm selects current-version audio profiles with music and matching model labels; has_music:false applies only to sampled ranges, not the entire source. failure_code=UPSTREAM_FAILED selects assets with a current failed understanding carrying that code; combine with processing_state=failed or processing_state=partial.'
|
|
13579
14109
|
},
|
|
13580
14110
|
{
|
|
13581
14111
|
name: "sort_by",
|
|
@@ -13627,7 +14157,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13627
14157
|
resource: "media.libraries.search.semantic",
|
|
13628
14158
|
method: "create",
|
|
13629
14159
|
summary: "Semantic search",
|
|
13630
|
-
description: "Search assets with a nonblank text query
|
|
14160
|
+
description: "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.",
|
|
13631
14161
|
http: "POST",
|
|
13632
14162
|
path: "/media/v1/libraries/{library_id}/search/semantic",
|
|
13633
14163
|
streaming: "no",
|
|
@@ -13678,7 +14208,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13678
14208
|
resource: "media.libraries.search.visual",
|
|
13679
14209
|
method: "create",
|
|
13680
14210
|
summary: "Visual search",
|
|
13681
|
-
description: "
|
|
14211
|
+
description: "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.",
|
|
13682
14212
|
http: "POST",
|
|
13683
14213
|
path: "/media/v1/libraries/{library_id}/search/visual",
|
|
13684
14214
|
streaming: "no",
|
|
@@ -13721,6 +14251,67 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13721
14251
|
]
|
|
13722
14252
|
}
|
|
13723
14253
|
},
|
|
14254
|
+
{
|
|
14255
|
+
resource: "media.libraries.understandings",
|
|
14256
|
+
method: "list",
|
|
14257
|
+
summary: "List understanding results across a library",
|
|
14258
|
+
description: "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.",
|
|
14259
|
+
http: "GET",
|
|
14260
|
+
path: "/media/v1/libraries/{library_id}/understandings",
|
|
14261
|
+
streaming: "no",
|
|
14262
|
+
pagination: true,
|
|
14263
|
+
pathParams: [
|
|
14264
|
+
{
|
|
14265
|
+
name: "library_id",
|
|
14266
|
+
sdkName: "library_id",
|
|
14267
|
+
description: "Library ID returned by creation."
|
|
14268
|
+
}
|
|
14269
|
+
],
|
|
14270
|
+
query: [
|
|
14271
|
+
{
|
|
14272
|
+
name: "folder",
|
|
14273
|
+
type: "string",
|
|
14274
|
+
required: false,
|
|
14275
|
+
description: "Folder path including all descendants; omitted or empty selects the entire library."
|
|
14276
|
+
},
|
|
14277
|
+
{
|
|
14278
|
+
name: "kinds",
|
|
14279
|
+
type: "string",
|
|
14280
|
+
required: false,
|
|
14281
|
+
description: "Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind."
|
|
14282
|
+
},
|
|
14283
|
+
{
|
|
14284
|
+
name: "cursor",
|
|
14285
|
+
type: "string",
|
|
14286
|
+
required: false,
|
|
14287
|
+
description: "Cursor from the previous next_cursor."
|
|
14288
|
+
},
|
|
14289
|
+
{
|
|
14290
|
+
name: "limit",
|
|
14291
|
+
type: "integer",
|
|
14292
|
+
required: false,
|
|
14293
|
+
description: "Maximum entries in this page, from 1 through 100; defaults to 100."
|
|
14294
|
+
}
|
|
14295
|
+
]
|
|
14296
|
+
},
|
|
14297
|
+
{
|
|
14298
|
+
resource: "media.libraries.understandings",
|
|
14299
|
+
method: "retrieveFailureSummary",
|
|
14300
|
+
summary: "Summarize understanding failures",
|
|
14301
|
+
description: "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.",
|
|
14302
|
+
http: "GET",
|
|
14303
|
+
path: "/media/v1/libraries/{library_id}/understandings/failure_summary",
|
|
14304
|
+
streaming: "no",
|
|
14305
|
+
pagination: false,
|
|
14306
|
+
pathParams: [
|
|
14307
|
+
{
|
|
14308
|
+
name: "library_id",
|
|
14309
|
+
sdkName: "library_id",
|
|
14310
|
+
description: "Library ID returned by creation."
|
|
14311
|
+
}
|
|
14312
|
+
],
|
|
14313
|
+
query: []
|
|
14314
|
+
},
|
|
13724
14315
|
{
|
|
13725
14316
|
resource: "meta.docs",
|
|
13726
14317
|
method: "search",
|
|
@@ -14008,25 +14599,25 @@ services (model, agent, automation…); call the operation you need and read its
|
|
|
14008
14599
|
name: "model",
|
|
14009
14600
|
type: "string",
|
|
14010
14601
|
required: true,
|
|
14011
|
-
description: "
|
|
14602
|
+
description: "Model catalog identifier declaring openai.audio.transcriptions; use it unchanged, including any creator prefix."
|
|
14012
14603
|
},
|
|
14013
14604
|
{
|
|
14014
14605
|
name: "file",
|
|
14015
14606
|
type: "string",
|
|
14016
14607
|
required: true,
|
|
14017
|
-
description: "Audio
|
|
14608
|
+
description: "Audio bytes uploaded as a multipart file; supported formats and input limits depend on the selected model."
|
|
14018
14609
|
},
|
|
14019
14610
|
{
|
|
14020
14611
|
name: "language",
|
|
14021
14612
|
type: "string",
|
|
14022
14613
|
required: false,
|
|
14023
|
-
description: "
|
|
14614
|
+
description: "Source language code when known; omit to let the model detect the language."
|
|
14024
14615
|
},
|
|
14025
14616
|
{
|
|
14026
14617
|
name: "prompt",
|
|
14027
14618
|
type: "string",
|
|
14028
14619
|
required: false,
|
|
14029
|
-
description: "
|
|
14620
|
+
description: "Optional vocabulary or contextual guidance for recognizing the audio; support depends on the selected model."
|
|
14030
14621
|
},
|
|
14031
14622
|
{
|
|
14032
14623
|
name: "response_format",
|
|
@@ -14034,20 +14625,22 @@ services (model, agent, automation…); call the operation you need and read its
|
|
|
14034
14625
|
enum: [
|
|
14035
14626
|
"json",
|
|
14036
14627
|
"text",
|
|
14037
|
-
"verbose_json"
|
|
14628
|
+
"verbose_json",
|
|
14629
|
+
"diarized_json"
|
|
14038
14630
|
],
|
|
14039
14631
|
required: false,
|
|
14040
|
-
description: "
|
|
14632
|
+
description: "Output format: json returns text in JSON; text returns plain text; verbose_json includes requested timestamps; diarized_json includes speaker-labelled segments when supported. Defaults to json."
|
|
14041
14633
|
},
|
|
14042
14634
|
{
|
|
14043
14635
|
name: "timestamp_granularities[]",
|
|
14044
14636
|
type: "array",
|
|
14045
14637
|
itemType: "string",
|
|
14046
14638
|
enum: [
|
|
14639
|
+
"word",
|
|
14047
14640
|
"segment"
|
|
14048
14641
|
],
|
|
14049
14642
|
required: false,
|
|
14050
|
-
description: "Timestamp levels to
|
|
14643
|
+
description: "Timestamp levels to request as repeated multipart fields: word returns per-word times; segment returns segment times. Omit for the model default. Use verbose_json, or diarized_json on supporting models."
|
|
14051
14644
|
},
|
|
14052
14645
|
{
|
|
14053
14646
|
name: "temperature",
|
|
@@ -16201,6 +16794,539 @@ for more details.`
|
|
|
16201
16794
|
],
|
|
16202
16795
|
query: []
|
|
16203
16796
|
},
|
|
16797
|
+
{
|
|
16798
|
+
resource: "ontology.changesets",
|
|
16799
|
+
method: "create",
|
|
16800
|
+
summary: "Apply changeset",
|
|
16801
|
+
description: "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.",
|
|
16802
|
+
http: "POST",
|
|
16803
|
+
path: "/ontology/v1/changesets",
|
|
16804
|
+
streaming: "no",
|
|
16805
|
+
pagination: false,
|
|
16806
|
+
pathParams: [],
|
|
16807
|
+
query: [],
|
|
16808
|
+
body: {
|
|
16809
|
+
required: true,
|
|
16810
|
+
fields: [
|
|
16811
|
+
{
|
|
16812
|
+
name: "at",
|
|
16813
|
+
type: "string",
|
|
16814
|
+
required: true,
|
|
16815
|
+
description: "World time the batch describes, in ISO 8601 UTC; operations without their own time are dated by it."
|
|
16816
|
+
},
|
|
16817
|
+
{
|
|
16818
|
+
name: "scope",
|
|
16819
|
+
type: "string",
|
|
16820
|
+
required: false,
|
|
16821
|
+
description: "Scope the batch came from, normally the session id it was observed in; it is stored with the operations for later reading."
|
|
16822
|
+
},
|
|
16823
|
+
{
|
|
16824
|
+
name: "ops",
|
|
16825
|
+
type: "array",
|
|
16826
|
+
itemType: "object",
|
|
16827
|
+
required: true,
|
|
16828
|
+
description: "At most 500 operations, applied in order; each names its kind in op and the fields that kind requires."
|
|
16829
|
+
}
|
|
16830
|
+
]
|
|
16831
|
+
}
|
|
16832
|
+
},
|
|
16833
|
+
{
|
|
16834
|
+
resource: "ontology.nodes",
|
|
16835
|
+
method: "list",
|
|
16836
|
+
summary: "List nodes",
|
|
16837
|
+
description: "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.",
|
|
16838
|
+
http: "GET",
|
|
16839
|
+
path: "/ontology/v1/nodes",
|
|
16840
|
+
streaming: "no",
|
|
16841
|
+
pagination: true,
|
|
16842
|
+
pathParams: [],
|
|
16843
|
+
query: [
|
|
16844
|
+
{
|
|
16845
|
+
name: "type",
|
|
16846
|
+
type: "array",
|
|
16847
|
+
itemType: "string",
|
|
16848
|
+
required: false,
|
|
16849
|
+
description: "Repeat to filter to any of several registered node type names, for example type=file&type=ticket; omit to list every type."
|
|
16850
|
+
},
|
|
16851
|
+
{
|
|
16852
|
+
name: "q",
|
|
16853
|
+
type: "string",
|
|
16854
|
+
required: false,
|
|
16855
|
+
description: "Free text matched against node names, aliases and descriptions; omit to list without a text filter."
|
|
16856
|
+
},
|
|
16857
|
+
{
|
|
16858
|
+
name: "owner",
|
|
16859
|
+
type: "string",
|
|
16860
|
+
required: false,
|
|
16861
|
+
description: "Filter to nodes owned by this member id, or omit to list nodes of every owner; organization-wide nodes carry no owner."
|
|
16862
|
+
},
|
|
16863
|
+
{
|
|
16864
|
+
name: "as_of",
|
|
16865
|
+
type: "string",
|
|
16866
|
+
required: false,
|
|
16867
|
+
description: "ISO 8601 timestamp; return the graph as it was then, so a node recorded later is absent. Omit to read current state."
|
|
16868
|
+
},
|
|
16869
|
+
{
|
|
16870
|
+
name: "limit",
|
|
16871
|
+
type: "integer",
|
|
16872
|
+
required: false,
|
|
16873
|
+
description: "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100."
|
|
16874
|
+
},
|
|
16875
|
+
{
|
|
16876
|
+
name: "cursor",
|
|
16877
|
+
type: "string",
|
|
16878
|
+
required: false,
|
|
16879
|
+
description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
|
|
16880
|
+
}
|
|
16881
|
+
]
|
|
16882
|
+
},
|
|
16883
|
+
{
|
|
16884
|
+
resource: "ontology.nodes",
|
|
16885
|
+
method: "create",
|
|
16886
|
+
summary: "Create node",
|
|
16887
|
+
description: "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.",
|
|
16888
|
+
http: "POST",
|
|
16889
|
+
path: "/ontology/v1/nodes",
|
|
16890
|
+
streaming: "no",
|
|
16891
|
+
pagination: false,
|
|
16892
|
+
pathParams: [],
|
|
16893
|
+
query: [],
|
|
16894
|
+
body: {
|
|
16895
|
+
required: true,
|
|
16896
|
+
fields: [
|
|
16897
|
+
{
|
|
16898
|
+
name: "type",
|
|
16899
|
+
type: "string",
|
|
16900
|
+
required: true,
|
|
16901
|
+
description: "Registered node type name from types.list; an unregistered name is refused and nothing is written."
|
|
16902
|
+
},
|
|
16903
|
+
{
|
|
16904
|
+
name: "ref",
|
|
16905
|
+
type: "string",
|
|
16906
|
+
required: false,
|
|
16907
|
+
description: "Id of the mirrored record in the owning service, which must start with the type's ref_prefix; omit or null for a concept with no external record."
|
|
16908
|
+
},
|
|
16909
|
+
{
|
|
16910
|
+
name: "name",
|
|
16911
|
+
type: "string",
|
|
16912
|
+
required: true,
|
|
16913
|
+
description: "Display name of the entity, at most 200 characters."
|
|
16914
|
+
},
|
|
16915
|
+
{
|
|
16916
|
+
name: "aliases",
|
|
16917
|
+
type: "array",
|
|
16918
|
+
itemType: "string",
|
|
16919
|
+
required: false,
|
|
16920
|
+
description: "Other names this entity is known by; they are matched by search alongside the name."
|
|
16921
|
+
},
|
|
16922
|
+
{
|
|
16923
|
+
name: "description",
|
|
16924
|
+
type: "string",
|
|
16925
|
+
required: false,
|
|
16926
|
+
description: "Profile of the entity, at most 500 characters; omit or null for none."
|
|
16927
|
+
},
|
|
16928
|
+
{
|
|
16929
|
+
name: "owner",
|
|
16930
|
+
type: "string",
|
|
16931
|
+
required: false,
|
|
16932
|
+
description: "Member id whose content this is, restricting it to that member; omit or null to make it readable organization-wide."
|
|
16933
|
+
}
|
|
16934
|
+
]
|
|
16935
|
+
}
|
|
16936
|
+
},
|
|
16937
|
+
{
|
|
16938
|
+
resource: "ontology.nodes",
|
|
16939
|
+
method: "retrieve",
|
|
16940
|
+
summary: "Retrieve node",
|
|
16941
|
+
description: "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.",
|
|
16942
|
+
http: "GET",
|
|
16943
|
+
path: "/ontology/v1/nodes/{node_id}",
|
|
16944
|
+
streaming: "no",
|
|
16945
|
+
pagination: false,
|
|
16946
|
+
pathParams: [
|
|
16947
|
+
{
|
|
16948
|
+
name: "node_id",
|
|
16949
|
+
sdkName: "node_id",
|
|
16950
|
+
description: "Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted."
|
|
16951
|
+
}
|
|
16952
|
+
],
|
|
16953
|
+
query: [
|
|
16954
|
+
{
|
|
16955
|
+
name: "expand",
|
|
16956
|
+
type: "string",
|
|
16957
|
+
enum: [
|
|
16958
|
+
"relations"
|
|
16959
|
+
],
|
|
16960
|
+
required: false,
|
|
16961
|
+
description: "Set to relations to include the node's incoming and outgoing relations in the same response; omit for the node alone."
|
|
16962
|
+
},
|
|
16963
|
+
{
|
|
16964
|
+
name: "as_of",
|
|
16965
|
+
type: "string",
|
|
16966
|
+
required: false,
|
|
16967
|
+
description: "ISO 8601 timestamp; read the node and its relations as they were then, including relations invalidated since. Omit to read current state."
|
|
16968
|
+
}
|
|
16969
|
+
]
|
|
16970
|
+
},
|
|
16971
|
+
{
|
|
16972
|
+
resource: "ontology.nodes",
|
|
16973
|
+
method: "update",
|
|
16974
|
+
summary: "Update node",
|
|
16975
|
+
description: "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.",
|
|
16976
|
+
http: "PATCH",
|
|
16977
|
+
path: "/ontology/v1/nodes/{node_id}",
|
|
16978
|
+
streaming: "no",
|
|
16979
|
+
pagination: false,
|
|
16980
|
+
pathParams: [
|
|
16981
|
+
{
|
|
16982
|
+
name: "node_id",
|
|
16983
|
+
sdkName: "node_id",
|
|
16984
|
+
description: "Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted."
|
|
16985
|
+
}
|
|
16986
|
+
],
|
|
16987
|
+
query: [],
|
|
16988
|
+
body: {
|
|
16989
|
+
required: true,
|
|
16990
|
+
fields: [
|
|
16991
|
+
{
|
|
16992
|
+
name: "name",
|
|
16993
|
+
type: "string",
|
|
16994
|
+
required: false,
|
|
16995
|
+
description: "New display name, at most 200 characters; omit to keep the current name."
|
|
16996
|
+
},
|
|
16997
|
+
{
|
|
16998
|
+
name: "aliases",
|
|
16999
|
+
type: "array",
|
|
17000
|
+
itemType: "string",
|
|
17001
|
+
required: false,
|
|
17002
|
+
description: "Replacement alias list; an empty array clears the aliases and omitting the field keeps them."
|
|
17003
|
+
},
|
|
17004
|
+
{
|
|
17005
|
+
name: "description",
|
|
17006
|
+
type: "string",
|
|
17007
|
+
required: false,
|
|
17008
|
+
description: "Replacement profile, at most 500 characters; an explicit null clears it and omitting the field keeps it."
|
|
17009
|
+
}
|
|
17010
|
+
]
|
|
17011
|
+
}
|
|
17012
|
+
},
|
|
17013
|
+
{
|
|
17014
|
+
resource: "ontology.nodes.merge",
|
|
17015
|
+
method: "create",
|
|
17016
|
+
summary: "Merge node",
|
|
17017
|
+
description: "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.",
|
|
17018
|
+
http: "POST",
|
|
17019
|
+
path: "/ontology/v1/nodes/{node_id}/merge",
|
|
17020
|
+
streaming: "no",
|
|
17021
|
+
pagination: false,
|
|
17022
|
+
pathParams: [
|
|
17023
|
+
{
|
|
17024
|
+
name: "node_id",
|
|
17025
|
+
sdkName: "node_id",
|
|
17026
|
+
description: "Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted."
|
|
17027
|
+
}
|
|
17028
|
+
],
|
|
17029
|
+
query: [],
|
|
17030
|
+
body: {
|
|
17031
|
+
required: true,
|
|
17032
|
+
fields: [
|
|
17033
|
+
{
|
|
17034
|
+
name: "into",
|
|
17035
|
+
type: "string",
|
|
17036
|
+
required: true,
|
|
17037
|
+
description: "Node id that should survive, from nodes.list or search; the merged node's relations and aliases move to it."
|
|
17038
|
+
}
|
|
17039
|
+
]
|
|
17040
|
+
}
|
|
17041
|
+
},
|
|
17042
|
+
{
|
|
17043
|
+
resource: "ontology.relations",
|
|
17044
|
+
method: "list",
|
|
17045
|
+
summary: "List relations",
|
|
17046
|
+
description: "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.",
|
|
17047
|
+
http: "GET",
|
|
17048
|
+
path: "/ontology/v1/relations",
|
|
17049
|
+
streaming: "no",
|
|
17050
|
+
pagination: true,
|
|
17051
|
+
pathParams: [],
|
|
17052
|
+
query: [
|
|
17053
|
+
{
|
|
17054
|
+
name: "node",
|
|
17055
|
+
type: "string",
|
|
17056
|
+
required: false,
|
|
17057
|
+
description: "A node id from nodes.list or nodes.create; returns the relations this node takes part in, narrowed by direction. Omit to list relations between every node."
|
|
17058
|
+
},
|
|
17059
|
+
{
|
|
17060
|
+
name: "type",
|
|
17061
|
+
type: "array",
|
|
17062
|
+
itemType: "string",
|
|
17063
|
+
required: false,
|
|
17064
|
+
description: "Repeat to filter to any of several registered relation type names, for example type=references&type=serves; omit to list every type."
|
|
17065
|
+
},
|
|
17066
|
+
{
|
|
17067
|
+
name: "direction",
|
|
17068
|
+
type: "string",
|
|
17069
|
+
enum: [
|
|
17070
|
+
"out",
|
|
17071
|
+
"in",
|
|
17072
|
+
"both"
|
|
17073
|
+
],
|
|
17074
|
+
required: false,
|
|
17075
|
+
description: "Which side of node to follow; out returns relations the node is the source of, in returns those it is the target of. Only meaningful together with node."
|
|
17076
|
+
},
|
|
17077
|
+
{
|
|
17078
|
+
name: "as_of",
|
|
17079
|
+
type: "string",
|
|
17080
|
+
required: false,
|
|
17081
|
+
description: "ISO 8601 timestamp; read relations as they were then, so one recorded or invalidated later is judged by that time. Omit to read current state."
|
|
17082
|
+
},
|
|
17083
|
+
{
|
|
17084
|
+
name: "include_invalid",
|
|
17085
|
+
type: "boolean",
|
|
17086
|
+
required: false,
|
|
17087
|
+
description: "Set true to include relations whose invalid_at has passed, which is how a relation that stopped being true stays readable. Omit or false for currently valid relations only."
|
|
17088
|
+
},
|
|
17089
|
+
{
|
|
17090
|
+
name: "limit",
|
|
17091
|
+
type: "integer",
|
|
17092
|
+
required: false,
|
|
17093
|
+
description: "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100."
|
|
17094
|
+
},
|
|
17095
|
+
{
|
|
17096
|
+
name: "cursor",
|
|
17097
|
+
type: "string",
|
|
17098
|
+
required: false,
|
|
17099
|
+
description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
|
|
17100
|
+
}
|
|
17101
|
+
]
|
|
17102
|
+
},
|
|
17103
|
+
{
|
|
17104
|
+
resource: "ontology.relations",
|
|
17105
|
+
method: "create",
|
|
17106
|
+
summary: "Create relation",
|
|
17107
|
+
description: "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.",
|
|
17108
|
+
http: "POST",
|
|
17109
|
+
path: "/ontology/v1/relations",
|
|
17110
|
+
streaming: "no",
|
|
17111
|
+
pagination: false,
|
|
17112
|
+
pathParams: [],
|
|
17113
|
+
query: [],
|
|
17114
|
+
body: {
|
|
17115
|
+
required: true,
|
|
17116
|
+
fields: [
|
|
17117
|
+
{
|
|
17118
|
+
name: "type",
|
|
17119
|
+
type: "string",
|
|
17120
|
+
required: true,
|
|
17121
|
+
description: "Registered relation type name from types.list; it must admit both endpoints or the write is refused."
|
|
17122
|
+
},
|
|
17123
|
+
{
|
|
17124
|
+
name: "source",
|
|
17125
|
+
type: "string",
|
|
17126
|
+
required: true,
|
|
17127
|
+
description: "Node id the fact starts from, from nodes.list or nodes.create."
|
|
17128
|
+
},
|
|
17129
|
+
{
|
|
17130
|
+
name: "target",
|
|
17131
|
+
type: "string",
|
|
17132
|
+
required: true,
|
|
17133
|
+
description: "Node id the fact points at, from nodes.list or nodes.create."
|
|
17134
|
+
},
|
|
17135
|
+
{
|
|
17136
|
+
name: "fact",
|
|
17137
|
+
type: "string",
|
|
17138
|
+
required: true,
|
|
17139
|
+
description: "The relationship in one sentence, at most 280 characters, written to read back on its own."
|
|
17140
|
+
},
|
|
17141
|
+
{
|
|
17142
|
+
name: "valid_at",
|
|
17143
|
+
type: "string",
|
|
17144
|
+
required: false,
|
|
17145
|
+
description: "World time the fact became true, when the mirrored record dates it; omit to leave it undated."
|
|
17146
|
+
},
|
|
17147
|
+
{
|
|
17148
|
+
name: "owner",
|
|
17149
|
+
type: "string",
|
|
17150
|
+
required: false,
|
|
17151
|
+
description: "Member id whose content this fact is, restricting it to that member; omit or null for organization-wide."
|
|
17152
|
+
}
|
|
17153
|
+
]
|
|
17154
|
+
}
|
|
17155
|
+
},
|
|
17156
|
+
{
|
|
17157
|
+
resource: "ontology.relations",
|
|
17158
|
+
method: "retrieve",
|
|
17159
|
+
summary: "Retrieve relation",
|
|
17160
|
+
description: "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.",
|
|
17161
|
+
http: "GET",
|
|
17162
|
+
path: "/ontology/v1/relations/{relation_id}",
|
|
17163
|
+
streaming: "no",
|
|
17164
|
+
pagination: false,
|
|
17165
|
+
pathParams: [
|
|
17166
|
+
{
|
|
17167
|
+
name: "relation_id",
|
|
17168
|
+
sdkName: "relation_id",
|
|
17169
|
+
description: "Relation id returned by relations.list, relations.create or a changeset, in the form oed_ followed by 32 lowercase letters or digits; a node id is not accepted."
|
|
17170
|
+
}
|
|
17171
|
+
],
|
|
17172
|
+
query: []
|
|
17173
|
+
},
|
|
17174
|
+
{
|
|
17175
|
+
resource: "ontology.relations.invalidate",
|
|
17176
|
+
method: "create",
|
|
17177
|
+
summary: "Invalidate relation",
|
|
17178
|
+
description: "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.",
|
|
17179
|
+
http: "POST",
|
|
17180
|
+
path: "/ontology/v1/relations/{relation_id}/invalidate",
|
|
17181
|
+
streaming: "no",
|
|
17182
|
+
pagination: false,
|
|
17183
|
+
pathParams: [
|
|
17184
|
+
{
|
|
17185
|
+
name: "relation_id",
|
|
17186
|
+
sdkName: "relation_id",
|
|
17187
|
+
description: "Relation id returned by relations.list, relations.create or a changeset, in the form oed_ followed by 32 lowercase letters or digits; a node id is not accepted."
|
|
17188
|
+
}
|
|
17189
|
+
],
|
|
17190
|
+
query: [],
|
|
17191
|
+
body: {
|
|
17192
|
+
required: true,
|
|
17193
|
+
fields: [
|
|
17194
|
+
{
|
|
17195
|
+
name: "invalid_at",
|
|
17196
|
+
type: "string",
|
|
17197
|
+
required: true,
|
|
17198
|
+
description: "World time the fact stopped being true, in ISO 8601 UTC; reads at an earlier as_of still return the relation."
|
|
17199
|
+
},
|
|
17200
|
+
{
|
|
17201
|
+
name: "superseded_by",
|
|
17202
|
+
type: "string",
|
|
17203
|
+
required: false,
|
|
17204
|
+
description: "Relation id that replaces this one, when a successor was recorded; omit or null when nothing replaced it."
|
|
17205
|
+
},
|
|
17206
|
+
{
|
|
17207
|
+
name: "reason",
|
|
17208
|
+
type: "string",
|
|
17209
|
+
required: false,
|
|
17210
|
+
description: "Why it stopped being true, for people reading the history later; not enforced and safe to omit."
|
|
17211
|
+
}
|
|
17212
|
+
]
|
|
17213
|
+
}
|
|
17214
|
+
},
|
|
17215
|
+
{
|
|
17216
|
+
resource: "ontology.search",
|
|
17217
|
+
method: "create",
|
|
17218
|
+
summary: "Search nodes",
|
|
17219
|
+
description: "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.",
|
|
17220
|
+
http: "POST",
|
|
17221
|
+
path: "/ontology/v1/search",
|
|
17222
|
+
streaming: "no",
|
|
17223
|
+
pagination: false,
|
|
17224
|
+
pathParams: [],
|
|
17225
|
+
query: [],
|
|
17226
|
+
body: {
|
|
17227
|
+
required: true,
|
|
17228
|
+
fields: [
|
|
17229
|
+
{
|
|
17230
|
+
name: "text",
|
|
17231
|
+
type: "string",
|
|
17232
|
+
required: true,
|
|
17233
|
+
description: "Text to find nodes for, matched against names, aliases, descriptions and relation facts; an empty string is refused."
|
|
17234
|
+
},
|
|
17235
|
+
{
|
|
17236
|
+
name: "types",
|
|
17237
|
+
type: "array",
|
|
17238
|
+
itemType: "string",
|
|
17239
|
+
required: false,
|
|
17240
|
+
description: "Registered node type names to search within; omit to search every type."
|
|
17241
|
+
},
|
|
17242
|
+
{
|
|
17243
|
+
name: "window",
|
|
17244
|
+
type: "object",
|
|
17245
|
+
required: false,
|
|
17246
|
+
description: "Restrict matches to facts recorded within a period; omit to search all time."
|
|
17247
|
+
},
|
|
17248
|
+
{
|
|
17249
|
+
name: "limit",
|
|
17250
|
+
type: "integer",
|
|
17251
|
+
required: false,
|
|
17252
|
+
description: "Maximum candidate nodes to return, from 1 to 50; defaults to 20 when omitted."
|
|
17253
|
+
}
|
|
17254
|
+
]
|
|
17255
|
+
}
|
|
17256
|
+
},
|
|
17257
|
+
{
|
|
17258
|
+
resource: "ontology.types",
|
|
17259
|
+
method: "list",
|
|
17260
|
+
summary: "List types",
|
|
17261
|
+
description: "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.",
|
|
17262
|
+
http: "GET",
|
|
17263
|
+
path: "/ontology/v1/types",
|
|
17264
|
+
streaming: "no",
|
|
17265
|
+
pagination: false,
|
|
17266
|
+
pathParams: [],
|
|
17267
|
+
query: []
|
|
17268
|
+
},
|
|
17269
|
+
{
|
|
17270
|
+
resource: "ontology.types",
|
|
17271
|
+
method: "create",
|
|
17272
|
+
summary: "Register type",
|
|
17273
|
+
description: "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.",
|
|
17274
|
+
http: "POST",
|
|
17275
|
+
path: "/ontology/v1/types",
|
|
17276
|
+
streaming: "no",
|
|
17277
|
+
pagination: false,
|
|
17278
|
+
pathParams: [],
|
|
17279
|
+
query: [],
|
|
17280
|
+
body: {
|
|
17281
|
+
required: true,
|
|
17282
|
+
fields: [
|
|
17283
|
+
{
|
|
17284
|
+
name: "owner",
|
|
17285
|
+
type: "string",
|
|
17286
|
+
required: true,
|
|
17287
|
+
description: "Service that registered these types, for example file or ticket; it is the registrant a later change to a type is checked against."
|
|
17288
|
+
},
|
|
17289
|
+
{
|
|
17290
|
+
name: "version",
|
|
17291
|
+
type: "integer",
|
|
17292
|
+
required: true,
|
|
17293
|
+
description: "Monotonic version of this owner's registration; a later registration must extend this one without removing or narrowing anything."
|
|
17294
|
+
},
|
|
17295
|
+
{
|
|
17296
|
+
name: "nodes",
|
|
17297
|
+
type: "array",
|
|
17298
|
+
itemType: "object",
|
|
17299
|
+
required: true,
|
|
17300
|
+
description: "Node types this owner registers."
|
|
17301
|
+
},
|
|
17302
|
+
{
|
|
17303
|
+
name: "edges",
|
|
17304
|
+
type: "array",
|
|
17305
|
+
itemType: "object",
|
|
17306
|
+
required: true,
|
|
17307
|
+
description: "Relation types this owner registers."
|
|
17308
|
+
}
|
|
17309
|
+
]
|
|
17310
|
+
}
|
|
17311
|
+
},
|
|
17312
|
+
{
|
|
17313
|
+
resource: "ontology.types",
|
|
17314
|
+
method: "retrieve",
|
|
17315
|
+
summary: "Retrieve type",
|
|
17316
|
+
description: "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.",
|
|
17317
|
+
http: "GET",
|
|
17318
|
+
path: "/ontology/v1/types/{name}",
|
|
17319
|
+
streaming: "no",
|
|
17320
|
+
pagination: false,
|
|
17321
|
+
pathParams: [
|
|
17322
|
+
{
|
|
17323
|
+
name: "name",
|
|
17324
|
+
sdkName: "name",
|
|
17325
|
+
description: "A type name from types.list, with its dots preserved — a display label is not accepted."
|
|
17326
|
+
}
|
|
17327
|
+
],
|
|
17328
|
+
query: []
|
|
17329
|
+
},
|
|
16204
17330
|
{
|
|
16205
17331
|
resource: "organization.charges",
|
|
16206
17332
|
method: "list",
|
|
@@ -16569,6 +17695,31 @@ for more details.`
|
|
|
16569
17695
|
]
|
|
16570
17696
|
}
|
|
16571
17697
|
},
|
|
17698
|
+
{
|
|
17699
|
+
resource: "organization.members",
|
|
17700
|
+
method: "list",
|
|
17701
|
+
summary: "List organization members",
|
|
17702
|
+
description: "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.",
|
|
17703
|
+
http: "GET",
|
|
17704
|
+
path: "/organization/v1/members",
|
|
17705
|
+
streaming: "no",
|
|
17706
|
+
pagination: false,
|
|
17707
|
+
pathParams: [],
|
|
17708
|
+
query: [
|
|
17709
|
+
{
|
|
17710
|
+
name: "limit",
|
|
17711
|
+
type: "integer",
|
|
17712
|
+
required: false,
|
|
17713
|
+
description: "Maximum members per page, from 1 to 100; defaults to 20."
|
|
17714
|
+
},
|
|
17715
|
+
{
|
|
17716
|
+
name: "page",
|
|
17717
|
+
type: "string",
|
|
17718
|
+
required: false,
|
|
17719
|
+
description: "Opaque next_page cursor returned by the previous response; omit for the first page."
|
|
17720
|
+
}
|
|
17721
|
+
]
|
|
17722
|
+
},
|
|
16572
17723
|
{
|
|
16573
17724
|
resource: "organization.usage",
|
|
16574
17725
|
method: "list",
|
|
@@ -18899,7 +20050,7 @@ for more details.`
|
|
|
18899
20050
|
resource: "ticket.labels",
|
|
18900
20051
|
method: "create",
|
|
18901
20052
|
summary: "Create or add labels",
|
|
18902
|
-
description: "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.
|
|
20053
|
+
description: "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.",
|
|
18903
20054
|
http: "POST",
|
|
18904
20055
|
path: "/ticket/v1/labels",
|
|
18905
20056
|
streaming: "no",
|
|
@@ -18941,7 +20092,7 @@ for more details.`
|
|
|
18941
20092
|
resource: "ticket.labels",
|
|
18942
20093
|
method: "delete",
|
|
18943
20094
|
summary: "Remove labels",
|
|
18944
|
-
description: "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.
|
|
20095
|
+
description: "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.",
|
|
18945
20096
|
http: "DELETE",
|
|
18946
20097
|
path: "/ticket/v1/labels/{name}",
|
|
18947
20098
|
streaming: "no",
|
|
@@ -18966,7 +20117,7 @@ for more details.`
|
|
|
18966
20117
|
resource: "ticket.labels",
|
|
18967
20118
|
method: "update",
|
|
18968
20119
|
summary: "Update labels",
|
|
18969
|
-
description: "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.
|
|
20120
|
+
description: "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.",
|
|
18970
20121
|
http: "PATCH",
|
|
18971
20122
|
path: "/ticket/v1/labels/{name}",
|
|
18972
20123
|
streaming: "no",
|
|
@@ -19262,7 +20413,7 @@ for more details.`
|
|
|
19262
20413
|
name: "filter",
|
|
19263
20414
|
type: "string",
|
|
19264
20415
|
required: false,
|
|
19265
|
-
description: "Search qualifier subset: is/state, reason, label/-label, no, assignee, author, mentions, milestone, type, kind, assignee-kind, in and sort;
|
|
20416
|
+
description: "Search qualifier subset: is/state, reason, label/-label, no, assignee, author, mentions, milestone, type, kind, assignee-kind, in and sort; write each qualifier as field:value (for example, is:open milestone:5), never field=value. Unknown qualifiers return INVALID_PARAMS. Passed unchanged to the service."
|
|
19266
20417
|
}
|
|
19267
20418
|
]
|
|
19268
20419
|
},
|
|
@@ -20368,7 +21519,7 @@ for more details.`
|
|
|
20368
21519
|
resource: "vault.vaults",
|
|
20369
21520
|
method: "create",
|
|
20370
21521
|
summary: "Create vault",
|
|
20371
|
-
description: "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.
|
|
21522
|
+
description: "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.",
|
|
20372
21523
|
http: "POST",
|
|
20373
21524
|
path: "/vault/v1/vaults",
|
|
20374
21525
|
streaming: "no",
|
|
@@ -20901,6 +22052,8 @@ function problemFrom(status, headers, body, statusText) {
|
|
|
20901
22052
|
param: typeof param === "string" ? param : param === null || nested.param === null ? null : undefined,
|
|
20902
22053
|
errors: Array.isArray(value.errors) ? value.errors : [],
|
|
20903
22054
|
requestId: headers.get("x-request-id") ?? string(value.requestId) ?? string(value.request_id),
|
|
22055
|
+
docUrl: string(nested.doc_url) ?? string(value.doc_url) ?? string(nested.docUrl) ?? string(value.docUrl),
|
|
22056
|
+
describe: string(nested.describe) ?? string(value.describe),
|
|
20904
22057
|
raw: body
|
|
20905
22058
|
};
|
|
20906
22059
|
}
|
|
@@ -20914,6 +22067,8 @@ class PraxisError extends Error {
|
|
|
20914
22067
|
errors;
|
|
20915
22068
|
requestId;
|
|
20916
22069
|
param;
|
|
22070
|
+
docUrl;
|
|
22071
|
+
describe;
|
|
20917
22072
|
raw;
|
|
20918
22073
|
constructor(problem = {}, options) {
|
|
20919
22074
|
super(problem.message ?? problem.detail ?? problem.title ?? `Praxis request failed${problem.status ? ` (${problem.status})` : ""}`, options);
|
|
@@ -20926,6 +22081,8 @@ class PraxisError extends Error {
|
|
|
20926
22081
|
this.errors = problem.errors ?? [];
|
|
20927
22082
|
this.requestId = problem.requestId;
|
|
20928
22083
|
this.param = problem.param;
|
|
22084
|
+
this.docUrl = problem.docUrl;
|
|
22085
|
+
this.describe = problem.describe;
|
|
20929
22086
|
this.raw = problem.raw;
|
|
20930
22087
|
}
|
|
20931
22088
|
static fromResponse(response, body) {
|
|
@@ -22330,6 +23487,23 @@ var computersFilesContent = (options) => (options.client ?? client).get({
|
|
|
22330
23487
|
url: "/agent/v1/computers/{computer_id}/files/content",
|
|
22331
23488
|
...options
|
|
22332
23489
|
});
|
|
23490
|
+
var computersFilesConvert = (options) => (options.client ?? client).post({
|
|
23491
|
+
security: [{
|
|
23492
|
+
key: "BearerAuth",
|
|
23493
|
+
scheme: "bearer",
|
|
23494
|
+
type: "http"
|
|
23495
|
+
}, {
|
|
23496
|
+
key: "ApiKeyAuth",
|
|
23497
|
+
name: "X-API-Key",
|
|
23498
|
+
type: "apiKey"
|
|
23499
|
+
}],
|
|
23500
|
+
url: "/agent/v1/computers/{computer_id}/files/convert",
|
|
23501
|
+
...options,
|
|
23502
|
+
headers: {
|
|
23503
|
+
"Content-Type": "application/json",
|
|
23504
|
+
...options.headers
|
|
23505
|
+
}
|
|
23506
|
+
});
|
|
22333
23507
|
var connectComputer = (options) => (options.client ?? client).post({
|
|
22334
23508
|
security: [{
|
|
22335
23509
|
key: "BearerAuth",
|
|
@@ -22828,6 +24002,15 @@ var fileCancelUpload = (options) => (options.client ?? client).post({
|
|
|
22828
24002
|
url: "/file/v1/uploads/{upload_id}/cancel",
|
|
22829
24003
|
...options
|
|
22830
24004
|
});
|
|
24005
|
+
var fileRetrieveUpload = (options) => (options.client ?? client).get({
|
|
24006
|
+
security: [{
|
|
24007
|
+
key: "BearerAuth",
|
|
24008
|
+
scheme: "bearer",
|
|
24009
|
+
type: "http"
|
|
24010
|
+
}],
|
|
24011
|
+
url: "/file/v1/uploads/{upload_id}",
|
|
24012
|
+
...options
|
|
24013
|
+
});
|
|
22831
24014
|
var fileCreateSignedUpload = (options) => (options.client ?? client).post({
|
|
22832
24015
|
security: [{
|
|
22833
24016
|
key: "BearerAuth",
|
|
@@ -23355,6 +24538,19 @@ var countResponseInputTokens = (options) => (options.client ?? client).post({
|
|
|
23355
24538
|
...options.headers
|
|
23356
24539
|
}
|
|
23357
24540
|
});
|
|
24541
|
+
var listOrganizationMembers = (options) => (options?.client ?? client).get({
|
|
24542
|
+
security: [{
|
|
24543
|
+
key: "BearerAuth",
|
|
24544
|
+
scheme: "bearer",
|
|
24545
|
+
type: "http"
|
|
24546
|
+
}, {
|
|
24547
|
+
key: "ApiKeyAuth",
|
|
24548
|
+
name: "X-API-Key",
|
|
24549
|
+
type: "apiKey"
|
|
24550
|
+
}],
|
|
24551
|
+
url: "/organization/v1/members",
|
|
24552
|
+
...options
|
|
24553
|
+
});
|
|
23358
24554
|
var listOrganizationFeedback = (options) => (options?.client ?? client).get({
|
|
23359
24555
|
security: [{
|
|
23360
24556
|
key: "BearerAuth",
|
|
@@ -27225,6 +28421,19 @@ var mediaCreateLibrary = (options) => (options.client ?? client).post({
|
|
|
27225
28421
|
...options.headers
|
|
27226
28422
|
}
|
|
27227
28423
|
});
|
|
28424
|
+
var mediaCreateFrameUrls = (options) => (options.client ?? client).post({
|
|
28425
|
+
security: [{
|
|
28426
|
+
key: "media-BearerAuth",
|
|
28427
|
+
scheme: "bearer",
|
|
28428
|
+
type: "http"
|
|
28429
|
+
}],
|
|
28430
|
+
url: "/media/v1/libraries/{library_id}/assets/{asset_id}/frames",
|
|
28431
|
+
...options,
|
|
28432
|
+
headers: {
|
|
28433
|
+
"Content-Type": "application/json",
|
|
28434
|
+
...options.headers
|
|
28435
|
+
}
|
|
28436
|
+
});
|
|
27228
28437
|
var mediaDeleteLibrary = (options) => (options.client ?? client).delete({
|
|
27229
28438
|
security: [{
|
|
27230
28439
|
key: "media-BearerAuth",
|
|
@@ -27489,6 +28698,235 @@ var mediaCreateDeliveryToken = (options) => (options.client ?? client).post({
|
|
|
27489
28698
|
...options.headers
|
|
27490
28699
|
}
|
|
27491
28700
|
});
|
|
28701
|
+
var mediaUnderstandingFailureSummary = (options) => (options.client ?? client).get({
|
|
28702
|
+
security: [{
|
|
28703
|
+
key: "media-BearerAuth",
|
|
28704
|
+
scheme: "bearer",
|
|
28705
|
+
type: "http"
|
|
28706
|
+
}],
|
|
28707
|
+
url: "/media/v1/libraries/{library_id}/understandings/failure_summary",
|
|
28708
|
+
...options
|
|
28709
|
+
});
|
|
28710
|
+
var mediaListUnderstandingsByLibrary = (options) => (options.client ?? client).get({
|
|
28711
|
+
security: [{
|
|
28712
|
+
key: "media-BearerAuth",
|
|
28713
|
+
scheme: "bearer",
|
|
28714
|
+
type: "http"
|
|
28715
|
+
}],
|
|
28716
|
+
url: "/media/v1/libraries/{library_id}/understandings",
|
|
28717
|
+
...options
|
|
28718
|
+
});
|
|
28719
|
+
var mediaCreateGeneration = (options) => (options.client ?? client).post({
|
|
28720
|
+
security: [{
|
|
28721
|
+
key: "media-BearerAuth",
|
|
28722
|
+
scheme: "bearer",
|
|
28723
|
+
type: "http"
|
|
28724
|
+
}],
|
|
28725
|
+
url: "/media/v1/libraries/{library_id}/generations",
|
|
28726
|
+
...options,
|
|
28727
|
+
headers: {
|
|
28728
|
+
"Content-Type": "application/json",
|
|
28729
|
+
...options.headers
|
|
28730
|
+
}
|
|
28731
|
+
});
|
|
28732
|
+
var mediaListJobs = (options) => (options.client ?? client).get({
|
|
28733
|
+
security: [{
|
|
28734
|
+
key: "media-BearerAuth",
|
|
28735
|
+
scheme: "bearer",
|
|
28736
|
+
type: "http"
|
|
28737
|
+
}],
|
|
28738
|
+
url: "/media/v1/libraries/{library_id}/jobs",
|
|
28739
|
+
...options
|
|
28740
|
+
});
|
|
28741
|
+
var mediaCancelJob = (options) => (options.client ?? client).post({
|
|
28742
|
+
security: [{
|
|
28743
|
+
key: "media-BearerAuth",
|
|
28744
|
+
scheme: "bearer",
|
|
28745
|
+
type: "http"
|
|
28746
|
+
}],
|
|
28747
|
+
url: "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel",
|
|
28748
|
+
...options
|
|
28749
|
+
});
|
|
28750
|
+
var mediaSaveGenerationOutput = (options) => (options.client ?? client).post({
|
|
28751
|
+
security: [{
|
|
28752
|
+
key: "media-BearerAuth",
|
|
28753
|
+
scheme: "bearer",
|
|
28754
|
+
type: "http"
|
|
28755
|
+
}],
|
|
28756
|
+
url: "/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save",
|
|
28757
|
+
...options,
|
|
28758
|
+
headers: {
|
|
28759
|
+
"Content-Type": "application/json",
|
|
28760
|
+
...options.headers
|
|
28761
|
+
}
|
|
28762
|
+
});
|
|
28763
|
+
var mediaGetGenerationCapabilities = (options) => (options?.client ?? client).get({
|
|
28764
|
+
security: [{
|
|
28765
|
+
key: "media-BearerAuth",
|
|
28766
|
+
scheme: "bearer",
|
|
28767
|
+
type: "http"
|
|
28768
|
+
}],
|
|
28769
|
+
url: "/media/v1/generation/capabilities",
|
|
28770
|
+
...options
|
|
28771
|
+
});
|
|
28772
|
+
var ontologyListTypes = (options) => (options?.client ?? client).get({
|
|
28773
|
+
security: [{
|
|
28774
|
+
key: "ontology-bearerAuth",
|
|
28775
|
+
scheme: "bearer",
|
|
28776
|
+
type: "http"
|
|
28777
|
+
}],
|
|
28778
|
+
url: "/ontology/v1/types",
|
|
28779
|
+
...options
|
|
28780
|
+
});
|
|
28781
|
+
var ontologyRegisterType = (options) => (options.client ?? client).post({
|
|
28782
|
+
security: [{
|
|
28783
|
+
key: "ontology-bearerAuth",
|
|
28784
|
+
scheme: "bearer",
|
|
28785
|
+
type: "http"
|
|
28786
|
+
}],
|
|
28787
|
+
url: "/ontology/v1/types",
|
|
28788
|
+
...options,
|
|
28789
|
+
headers: {
|
|
28790
|
+
"Content-Type": "application/json",
|
|
28791
|
+
...options.headers
|
|
28792
|
+
}
|
|
28793
|
+
});
|
|
28794
|
+
var ontologyRetrieveType = (options) => (options.client ?? client).get({
|
|
28795
|
+
security: [{
|
|
28796
|
+
key: "ontology-bearerAuth",
|
|
28797
|
+
scheme: "bearer",
|
|
28798
|
+
type: "http"
|
|
28799
|
+
}],
|
|
28800
|
+
url: "/ontology/v1/types/{name}",
|
|
28801
|
+
...options
|
|
28802
|
+
});
|
|
28803
|
+
var ontologyListNodes = (options) => (options?.client ?? client).get({
|
|
28804
|
+
security: [{
|
|
28805
|
+
key: "ontology-bearerAuth",
|
|
28806
|
+
scheme: "bearer",
|
|
28807
|
+
type: "http"
|
|
28808
|
+
}],
|
|
28809
|
+
url: "/ontology/v1/nodes",
|
|
28810
|
+
...options
|
|
28811
|
+
});
|
|
28812
|
+
var ontologyCreateNode = (options) => (options.client ?? client).post({
|
|
28813
|
+
security: [{
|
|
28814
|
+
key: "ontology-bearerAuth",
|
|
28815
|
+
scheme: "bearer",
|
|
28816
|
+
type: "http"
|
|
28817
|
+
}],
|
|
28818
|
+
url: "/ontology/v1/nodes",
|
|
28819
|
+
...options,
|
|
28820
|
+
headers: {
|
|
28821
|
+
"Content-Type": "application/json",
|
|
28822
|
+
...options.headers
|
|
28823
|
+
}
|
|
28824
|
+
});
|
|
28825
|
+
var ontologyRetrieveNode = (options) => (options.client ?? client).get({
|
|
28826
|
+
security: [{
|
|
28827
|
+
key: "ontology-bearerAuth",
|
|
28828
|
+
scheme: "bearer",
|
|
28829
|
+
type: "http"
|
|
28830
|
+
}],
|
|
28831
|
+
url: "/ontology/v1/nodes/{node_id}",
|
|
28832
|
+
...options
|
|
28833
|
+
});
|
|
28834
|
+
var ontologyUpdateNode = (options) => (options.client ?? client).patch({
|
|
28835
|
+
security: [{
|
|
28836
|
+
key: "ontology-bearerAuth",
|
|
28837
|
+
scheme: "bearer",
|
|
28838
|
+
type: "http"
|
|
28839
|
+
}],
|
|
28840
|
+
url: "/ontology/v1/nodes/{node_id}",
|
|
28841
|
+
...options,
|
|
28842
|
+
headers: {
|
|
28843
|
+
"Content-Type": "application/json",
|
|
28844
|
+
...options.headers
|
|
28845
|
+
}
|
|
28846
|
+
});
|
|
28847
|
+
var ontologyMergeNode = (options) => (options.client ?? client).post({
|
|
28848
|
+
security: [{
|
|
28849
|
+
key: "ontology-bearerAuth",
|
|
28850
|
+
scheme: "bearer",
|
|
28851
|
+
type: "http"
|
|
28852
|
+
}],
|
|
28853
|
+
url: "/ontology/v1/nodes/{node_id}/merge",
|
|
28854
|
+
...options,
|
|
28855
|
+
headers: {
|
|
28856
|
+
"Content-Type": "application/json",
|
|
28857
|
+
...options.headers
|
|
28858
|
+
}
|
|
28859
|
+
});
|
|
28860
|
+
var ontologyListRelations = (options) => (options?.client ?? client).get({
|
|
28861
|
+
security: [{
|
|
28862
|
+
key: "ontology-bearerAuth",
|
|
28863
|
+
scheme: "bearer",
|
|
28864
|
+
type: "http"
|
|
28865
|
+
}],
|
|
28866
|
+
url: "/ontology/v1/relations",
|
|
28867
|
+
...options
|
|
28868
|
+
});
|
|
28869
|
+
var ontologyCreateRelation = (options) => (options.client ?? client).post({
|
|
28870
|
+
security: [{
|
|
28871
|
+
key: "ontology-bearerAuth",
|
|
28872
|
+
scheme: "bearer",
|
|
28873
|
+
type: "http"
|
|
28874
|
+
}],
|
|
28875
|
+
url: "/ontology/v1/relations",
|
|
28876
|
+
...options,
|
|
28877
|
+
headers: {
|
|
28878
|
+
"Content-Type": "application/json",
|
|
28879
|
+
...options.headers
|
|
28880
|
+
}
|
|
28881
|
+
});
|
|
28882
|
+
var ontologyRetrieveRelation = (options) => (options.client ?? client).get({
|
|
28883
|
+
security: [{
|
|
28884
|
+
key: "ontology-bearerAuth",
|
|
28885
|
+
scheme: "bearer",
|
|
28886
|
+
type: "http"
|
|
28887
|
+
}],
|
|
28888
|
+
url: "/ontology/v1/relations/{relation_id}",
|
|
28889
|
+
...options
|
|
28890
|
+
});
|
|
28891
|
+
var ontologyInvalidateRelation = (options) => (options.client ?? client).post({
|
|
28892
|
+
security: [{
|
|
28893
|
+
key: "ontology-bearerAuth",
|
|
28894
|
+
scheme: "bearer",
|
|
28895
|
+
type: "http"
|
|
28896
|
+
}],
|
|
28897
|
+
url: "/ontology/v1/relations/{relation_id}/invalidate",
|
|
28898
|
+
...options,
|
|
28899
|
+
headers: {
|
|
28900
|
+
"Content-Type": "application/json",
|
|
28901
|
+
...options.headers
|
|
28902
|
+
}
|
|
28903
|
+
});
|
|
28904
|
+
var ontologyApplyChangeset = (options) => (options.client ?? client).post({
|
|
28905
|
+
security: [{
|
|
28906
|
+
key: "ontology-bearerAuth",
|
|
28907
|
+
scheme: "bearer",
|
|
28908
|
+
type: "http"
|
|
28909
|
+
}],
|
|
28910
|
+
url: "/ontology/v1/changesets",
|
|
28911
|
+
...options,
|
|
28912
|
+
headers: {
|
|
28913
|
+
"Content-Type": "application/json",
|
|
28914
|
+
...options.headers
|
|
28915
|
+
}
|
|
28916
|
+
});
|
|
28917
|
+
var ontologySearch = (options) => (options.client ?? client).post({
|
|
28918
|
+
security: [{
|
|
28919
|
+
key: "ontology-bearerAuth",
|
|
28920
|
+
scheme: "bearer",
|
|
28921
|
+
type: "http"
|
|
28922
|
+
}],
|
|
28923
|
+
url: "/ontology/v1/search",
|
|
28924
|
+
...options,
|
|
28925
|
+
headers: {
|
|
28926
|
+
"Content-Type": "application/json",
|
|
28927
|
+
...options.headers
|
|
28928
|
+
}
|
|
28929
|
+
});
|
|
27492
28930
|
var getSandboxV1Sandboxes = (options) => (options?.client ?? client).get({
|
|
27493
28931
|
querySerializer: { parameters: { state: { array: { explode: false } } } },
|
|
27494
28932
|
security: [
|
|
@@ -29366,6 +30804,9 @@ function createAgent(transport) {
|
|
|
29366
30804
|
create: bind(transport, computersCreate),
|
|
29367
30805
|
delete: bind(transport, computersDelete),
|
|
29368
30806
|
files: {
|
|
30807
|
+
convert: {
|
|
30808
|
+
create: bind(transport, computersFilesConvert)
|
|
30809
|
+
},
|
|
29369
30810
|
list: bind(transport, computersFilesList),
|
|
29370
30811
|
retrieveContent: bind(transport, computersFilesContent)
|
|
29371
30812
|
},
|
|
@@ -29887,7 +31328,8 @@ function createFile(transport) {
|
|
|
29887
31328
|
createSigned: bind(transport, fileCreateSignedUpload),
|
|
29888
31329
|
parts: {
|
|
29889
31330
|
create: bind(transport, (options) => fileAddUploadPart({ ...options, bodySerializer: multipartBodySerializer, headers: { "Content-Type": null, ...options.headers } }))
|
|
29890
|
-
}
|
|
31331
|
+
},
|
|
31332
|
+
retrieve: bind(transport, fileRetrieveUpload)
|
|
29891
31333
|
}
|
|
29892
31334
|
};
|
|
29893
31335
|
}
|
|
@@ -29939,11 +31381,19 @@ function createKnowledge(transport) {
|
|
|
29939
31381
|
}
|
|
29940
31382
|
function createMedia(transport) {
|
|
29941
31383
|
return {
|
|
31384
|
+
generation: {
|
|
31385
|
+
capabilities: {
|
|
31386
|
+
list: bind(transport, mediaGetGenerationCapabilities)
|
|
31387
|
+
}
|
|
31388
|
+
},
|
|
29942
31389
|
libraries: {
|
|
29943
31390
|
assets: {
|
|
29944
31391
|
batch: bind(transport, mediaBatchAssets),
|
|
29945
31392
|
create: bind(transport, (options) => mediaUploadAsset({ ...options, bodySerializer: multipartBodySerializer, headers: { "Content-Type": null, ...options.headers } })),
|
|
29946
31393
|
delete: bind(transport, mediaDeleteAsset),
|
|
31394
|
+
frames: {
|
|
31395
|
+
create: bind(transport, mediaCreateFrameUrls)
|
|
31396
|
+
},
|
|
29947
31397
|
import: {
|
|
29948
31398
|
create: bind(transport, mediaImportAsset)
|
|
29949
31399
|
},
|
|
@@ -29972,7 +31422,17 @@ function createMedia(transport) {
|
|
|
29972
31422
|
folders: {
|
|
29973
31423
|
list: bind(transport, mediaListFolders)
|
|
29974
31424
|
},
|
|
31425
|
+
generations: {
|
|
31426
|
+
create: bind(transport, mediaCreateGeneration)
|
|
31427
|
+
},
|
|
29975
31428
|
jobs: {
|
|
31429
|
+
cancel: bind(transport, mediaCancelJob),
|
|
31430
|
+
list: bindPage(transport, mediaListJobs),
|
|
31431
|
+
outputs: {
|
|
31432
|
+
save: {
|
|
31433
|
+
create: bind(transport, mediaSaveGenerationOutput)
|
|
31434
|
+
}
|
|
31435
|
+
},
|
|
29976
31436
|
retrieve: bind(transport, mediaGetJob)
|
|
29977
31437
|
},
|
|
29978
31438
|
list: bindPage(transport, mediaListLibraries),
|
|
@@ -29993,6 +31453,10 @@ function createMedia(transport) {
|
|
|
29993
31453
|
create: bind(transport, mediaVisualSearch)
|
|
29994
31454
|
}
|
|
29995
31455
|
},
|
|
31456
|
+
understandings: {
|
|
31457
|
+
list: bindPage(transport, mediaListUnderstandingsByLibrary),
|
|
31458
|
+
retrieveFailureSummary: bind(transport, mediaUnderstandingFailureSummary)
|
|
31459
|
+
},
|
|
29996
31460
|
update: bind(transport, mediaUpdateLibrary)
|
|
29997
31461
|
}
|
|
29998
31462
|
};
|
|
@@ -30093,6 +31557,38 @@ function createModel(transport) {
|
|
|
30093
31557
|
}
|
|
30094
31558
|
};
|
|
30095
31559
|
}
|
|
31560
|
+
function createOntology(transport) {
|
|
31561
|
+
return {
|
|
31562
|
+
changesets: {
|
|
31563
|
+
create: bind(transport, ontologyApplyChangeset)
|
|
31564
|
+
},
|
|
31565
|
+
nodes: {
|
|
31566
|
+
create: bind(transport, ontologyCreateNode),
|
|
31567
|
+
list: bindPage(transport, ontologyListNodes),
|
|
31568
|
+
merge: {
|
|
31569
|
+
create: bind(transport, ontologyMergeNode)
|
|
31570
|
+
},
|
|
31571
|
+
retrieve: bind(transport, ontologyRetrieveNode),
|
|
31572
|
+
update: bind(transport, ontologyUpdateNode)
|
|
31573
|
+
},
|
|
31574
|
+
relations: {
|
|
31575
|
+
create: bind(transport, ontologyCreateRelation),
|
|
31576
|
+
invalidate: {
|
|
31577
|
+
create: bind(transport, ontologyInvalidateRelation)
|
|
31578
|
+
},
|
|
31579
|
+
list: bindPage(transport, ontologyListRelations),
|
|
31580
|
+
retrieve: bind(transport, ontologyRetrieveRelation)
|
|
31581
|
+
},
|
|
31582
|
+
search: {
|
|
31583
|
+
create: bind(transport, ontologySearch)
|
|
31584
|
+
},
|
|
31585
|
+
types: {
|
|
31586
|
+
create: bind(transport, ontologyRegisterType),
|
|
31587
|
+
list: bind(transport, ontologyListTypes),
|
|
31588
|
+
retrieve: bind(transport, ontologyRetrieveType)
|
|
31589
|
+
}
|
|
31590
|
+
};
|
|
31591
|
+
}
|
|
30096
31592
|
function createOrganization(transport) {
|
|
30097
31593
|
return {
|
|
30098
31594
|
charges: {
|
|
@@ -30117,6 +31613,9 @@ function createOrganization(transport) {
|
|
|
30117
31613
|
},
|
|
30118
31614
|
retrieve: bind(transport, getOrganizationFeedback)
|
|
30119
31615
|
},
|
|
31616
|
+
members: {
|
|
31617
|
+
list: bind(transport, listOrganizationMembers)
|
|
31618
|
+
},
|
|
30120
31619
|
usage: {
|
|
30121
31620
|
list: bind(transport, listOrganizationUsage)
|
|
30122
31621
|
}
|
|
@@ -30356,6 +31855,7 @@ var resourceFactories = {
|
|
|
30356
31855
|
media: createMedia,
|
|
30357
31856
|
meta: createMeta,
|
|
30358
31857
|
model: createModel,
|
|
31858
|
+
ontology: createOntology,
|
|
30359
31859
|
organization: createOrganization,
|
|
30360
31860
|
sandbox: createSandbox,
|
|
30361
31861
|
search: createSearch,
|
|
@@ -31429,6 +32929,26 @@ async function prepareMultipart(op, opts) {
|
|
|
31429
32929
|
opts.body = body;
|
|
31430
32930
|
}
|
|
31431
32931
|
|
|
32932
|
+
// src/core/pagination.ts
|
|
32933
|
+
var PAGE_TOKENS = /^(page_?token|next_?page_?token)$/i;
|
|
32934
|
+
function pageTokenField(op) {
|
|
32935
|
+
return op.query.find((field) => PAGE_TOKENS.test(field.name));
|
|
32936
|
+
}
|
|
32937
|
+
function nextPageToken(result) {
|
|
32938
|
+
const value = result;
|
|
32939
|
+
const token = value?.next_page_token ?? value?.nextPageToken ?? value?.next_cursor;
|
|
32940
|
+
return typeof token === "string" && token ? token : undefined;
|
|
32941
|
+
}
|
|
32942
|
+
function pageOf(result) {
|
|
32943
|
+
const value = result;
|
|
32944
|
+
const arrays = value && typeof value === "object" ? Object.values(value).filter(Array.isArray) : [];
|
|
32945
|
+
const data = Array.isArray(value?.data) ? value.data : Array.isArray(value?.items) ? value.items : arrays.length === 1 ? arrays[0] : undefined;
|
|
32946
|
+
if (!Array.isArray(data))
|
|
32947
|
+
return;
|
|
32948
|
+
const token = nextPageToken(result);
|
|
32949
|
+
return { items: data, ...token ? { token } : {} };
|
|
32950
|
+
}
|
|
32951
|
+
|
|
31432
32952
|
// src/core/bind-args.ts
|
|
31433
32953
|
var globalOptions = [
|
|
31434
32954
|
{ name: "org", type: "string" },
|
|
@@ -31644,7 +33164,7 @@ function bindArgs(parsed, op, data) {
|
|
|
31644
33164
|
(opts.query ??= {})[key] ??= convert(String(globals[name]), { name, type: field.type, enum: field.enum });
|
|
31645
33165
|
}
|
|
31646
33166
|
}
|
|
31647
|
-
if (globals.all && !op.pagination)
|
|
33167
|
+
if (globals.all && !op.pagination && !pageTokenField(op))
|
|
31648
33168
|
throw new UsageError("--all requires a paginated operation");
|
|
31649
33169
|
for (const p of op.pathParams)
|
|
31650
33170
|
if (p !== target && opts.path?.[p.sdkName] === undefined)
|
|
@@ -31670,8 +33190,8 @@ function bindArgs(parsed, op, data) {
|
|
|
31670
33190
|
}
|
|
31671
33191
|
|
|
31672
33192
|
// src/core/help.ts
|
|
31673
|
-
function describeOption(s) {
|
|
31674
|
-
return `--${s.name}${s.type === "boolean" ? " [true|false]" : ` <${s.type}>`}${s.repeated ? " (repeatable)" : ""}${
|
|
33193
|
+
function describeOption(s, required = s.required) {
|
|
33194
|
+
return `--${s.name}${s.type === "boolean" ? " [true|false]" : ` <${s.type}>`}${s.repeated ? " (repeatable)" : ""}${required ? " (required)" : ""}${s.enum ? ` [${s.enum.join(" | ")}]` : ""}${s.description ? ` — ${s.description.replace(/\s+/g, " ")}` : ""}`;
|
|
31675
33195
|
}
|
|
31676
33196
|
function example(command) {
|
|
31677
33197
|
const target = targetParam(command.op);
|
|
@@ -31687,18 +33207,22 @@ function example(command) {
|
|
|
31687
33207
|
args.push("--yes");
|
|
31688
33208
|
return args.join(" ");
|
|
31689
33209
|
}
|
|
33210
|
+
function fieldRequired(op, field, location) {
|
|
33211
|
+
return Boolean(field.required) && (location === "path" || location === "query" || Boolean(op.body?.required));
|
|
33212
|
+
}
|
|
31690
33213
|
function help(commands, prefix, command) {
|
|
31691
33214
|
if (command) {
|
|
31692
33215
|
const target = targetParam(command.op);
|
|
33216
|
+
const parents = operationOptions(command.op).filter((s) => s.location === "path" && s.required).map((s) => ` --${s.name} <${s.field?.name ?? s.sdkName}>`).join("");
|
|
31693
33217
|
return [
|
|
31694
|
-
`praxis ${command.words.join(" ")}${target ? ` <${target.sdkName}>` : ""} [options]`,
|
|
33218
|
+
`praxis ${command.words.join(" ")}${parents}${target ? ` <${target.sdkName}>` : ""} [options]`,
|
|
31695
33219
|
`SDK: ${command.op.resource}.${command.alias ?? command.op.method}`,
|
|
31696
33220
|
`${command.op.http} ${command.op.path}`,
|
|
31697
33221
|
...target ? [`Position: <${target.sdkName}>${target.type ? ` <${target.type}>` : ""} (required target ID)`] : [],
|
|
31698
33222
|
"",
|
|
31699
33223
|
"Options:",
|
|
31700
33224
|
...target?.description ? [` <${target.sdkName}> — ${target.description.replace(/\s+/g, " ")}`] : [],
|
|
31701
|
-
...[...operationOptions(command.op), ...bodyDataOption(command.op), ...globalOptions].map((s) => ` ${describeOption(s)}`),
|
|
33225
|
+
...[...operationOptions(command.op), ...bodyDataOption(command.op), ...globalOptions].map((s) => ` ${describeOption(s, s.required && fieldRequired(command.op, s, s.location ?? "query"))}`),
|
|
31702
33226
|
...command.op.body?.fields.filter((f) => !operationOptions(command.op).some((s) => s.location === "body" && s.field === f) && (f.type === "object" || f.type === "array" && !["string", "number", "integer", "boolean"].includes(f.itemType ?? ""))).map((f) => ` --data: ${f.name} (${f.type}${f.required ? ", required" : ""})`) ?? [],
|
|
31703
33227
|
" -h is an alias of --help",
|
|
31704
33228
|
"PRAXIS_ENV=develop|production (default: develop); no --env option.",
|
|
@@ -33066,9 +34590,11 @@ function renderHuman(result, ctx) {
|
|
|
33066
34590
|
const details = result.details !== undefined ? JSON.stringify(result.details) : undefined;
|
|
33067
34591
|
const detailsLine = details !== undefined ? ` details ${details.length > 2000 ? details.slice(0, 1999) + "…" : details}
|
|
33068
34592
|
` : "";
|
|
34593
|
+
const problemLine = problemLines(result.problem).map((line) => ` ${plain(line)}
|
|
34594
|
+
`).join("");
|
|
33069
34595
|
return { stderr: err.red(`✗ ${plain(result.message)}`) + `
|
|
33070
34596
|
` + err.dim(` code ${plain(result.code)}${result.status !== undefined ? ` · ${result.status}` : ""} · env ${plain(result.env)}${result.request_id ? ` · request ${plain(result.request_id)}` : ""}`) + `
|
|
33071
|
-
` + detailsLine + (result.hint ? ` → ${plain(result.hint)}
|
|
34597
|
+
` + detailsLine + problemLine + (result.hint ? ` → ${plain(result.hint)}
|
|
33072
34598
|
` : "") };
|
|
33073
34599
|
}
|
|
33074
34600
|
case "list":
|
|
@@ -33156,8 +34682,33 @@ ${usage ? `usage: ${JSON.stringify(usage)}
|
|
|
33156
34682
|
}
|
|
33157
34683
|
|
|
33158
34684
|
// src/output/render.ts
|
|
34685
|
+
var PROBLEM_HINTS = ["hint", "errors", "violations", "title", "type"];
|
|
34686
|
+
function serverProblem(raw) {
|
|
34687
|
+
const value = record(raw);
|
|
34688
|
+
const problem = {};
|
|
34689
|
+
for (const member of ["code", "detail", ...PROBLEM_HINTS, "status"]) {
|
|
34690
|
+
const entry = value[member];
|
|
34691
|
+
if (entry !== undefined && entry !== null)
|
|
34692
|
+
problem[member] = entry;
|
|
34693
|
+
}
|
|
34694
|
+
const adds = PROBLEM_HINTS.some((member) => Array.isArray(problem[member]) ? problem[member].length > 0 : problem[member] !== undefined);
|
|
34695
|
+
return adds ? problem : undefined;
|
|
34696
|
+
}
|
|
34697
|
+
function problemLines(problem) {
|
|
34698
|
+
const lines = [];
|
|
34699
|
+
for (const group of [problem?.errors, problem?.violations]) {
|
|
34700
|
+
for (const item of Array.isArray(group) ? group : []) {
|
|
34701
|
+
const entry = record(item);
|
|
34702
|
+
const where = scalar(entry.pointer ?? entry.field);
|
|
34703
|
+
const detail = scalar(entry.detail ?? entry.message ?? entry.reason);
|
|
34704
|
+
if (where || detail)
|
|
34705
|
+
lines.push(`${where ? `${where}: ` : ""}${detail}`);
|
|
34706
|
+
}
|
|
34707
|
+
}
|
|
34708
|
+
return lines;
|
|
34709
|
+
}
|
|
33159
34710
|
function errorJSON(result, ctx) {
|
|
33160
|
-
return JSON.stringify({ error: { code: result.code, ...result.details !== undefined ? { details: result.details } : {}, message: result.message, hint: result.hint ?? null, env: result.env, command: ctx.command ?? null, status: result.status ?? null, request_id: result.request_id ?? null, ...result.credential_source ? { credential_source: result.credential_source } : {} } }) + `
|
|
34711
|
+
return JSON.stringify({ error: { code: result.code, ...result.details !== undefined ? { details: result.details } : {}, message: result.message, hint: result.hint ?? null, env: result.env, command: ctx.command ?? null, status: result.status ?? null, request_id: result.request_id ?? null, ...result.problem !== undefined ? { problem: result.problem } : {}, ...result.credential_source ? { credential_source: result.credential_source } : {} } }) + `
|
|
33161
34712
|
`;
|
|
33162
34713
|
}
|
|
33163
34714
|
function render(result, ctx) {
|
|
@@ -33313,6 +34864,8 @@ function errorInput(error, ctx) {
|
|
|
33313
34864
|
const raw = record(sdk?.raw), nested = record(raw.error);
|
|
33314
34865
|
const candidate = nested.details ?? raw.details;
|
|
33315
34866
|
const details = candidate !== null && typeof candidate === "object" && !Array.isArray(candidate) ? candidate : undefined;
|
|
34867
|
+
const problem = serverProblem(Object.keys(nested).length ? nested : raw);
|
|
34868
|
+
const serverText = (value) => typeof value === "string" && value.trim() ? value : undefined;
|
|
33316
34869
|
let message = error instanceof Error ? error.message : "Unexpected error";
|
|
33317
34870
|
const prefix = message.match(/^([A-Z][A-Z0-9_]+):\s*/)?.[1];
|
|
33318
34871
|
const code = error instanceof UsageError ? error.code : businessCode(raw.code) ?? businessCode(nested.code) ?? businessCode(raw.error_code) ?? prefix ?? businessCode(sdk?.code) ?? (sdk?.status ? `HTTP_${sdk.status}` : sdk ? "API_ERROR" : "RUNTIME_ERROR");
|
|
@@ -33324,11 +34877,14 @@ function errorInput(error, ctx) {
|
|
|
33324
34877
|
if (stripped)
|
|
33325
34878
|
message = `${humanize(code)}${message ? `: ${message}` : ""}`;
|
|
33326
34879
|
const status = sdk?.status, request_id = sdk?.requestId;
|
|
34880
|
+
message = serverText(problem?.detail) ?? serverText(problem?.title) ?? message;
|
|
33327
34881
|
const authFailure = status === 401 || ["NOT_LOGGED_IN", "UNAUTHENTICATED", "TOKEN_REVOKED", "LOGIN_FAILED"].includes(code);
|
|
33328
34882
|
const source = ctx.credentialSource ?? "login";
|
|
33329
34883
|
let hint = genericHint;
|
|
33330
34884
|
if (error instanceof UsageError)
|
|
33331
34885
|
hint = error.hint;
|
|
34886
|
+
else if (serverText(problem?.hint))
|
|
34887
|
+
hint = serverText(problem?.hint);
|
|
33332
34888
|
else if (authFailure)
|
|
33333
34889
|
hint = authHint(source);
|
|
33334
34890
|
else if (status === 404)
|
|
@@ -33339,7 +34895,7 @@ function errorInput(error, ctx) {
|
|
|
33339
34895
|
hint = "Rate limited; retry later.";
|
|
33340
34896
|
else if (status !== undefined && status >= 500)
|
|
33341
34897
|
hint = `Server error; retry later.${request_id ? ` Request id: ${request_id}.` : ""}`;
|
|
33342
|
-
return { kind: "error", code, message, hint, ...details !== undefined ? { details } : {}, env: ctx.env, ...authFailure ? { credential_source: source } : {}, ...status !== undefined ? { status } : {}, ...request_id ? { request_id } : {} };
|
|
34898
|
+
return { kind: "error", code, message, hint, ...details !== undefined ? { details } : {}, ...problem !== undefined ? { problem } : {}, env: ctx.env, ...authFailure ? { credential_source: source } : {}, ...status !== undefined ? { status } : {}, ...request_id ? { request_id } : {} };
|
|
33343
34899
|
}
|
|
33344
34900
|
|
|
33345
34901
|
// src/output/progress.ts
|
|
@@ -33369,7 +34925,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
|
|
|
33369
34925
|
}
|
|
33370
34926
|
|
|
33371
34927
|
// src/main.ts
|
|
33372
|
-
var version = "0.2.1-dev.
|
|
34928
|
+
var version = "0.2.1-dev.e5cbcae";
|
|
33373
34929
|
var commands = commandTree(operations);
|
|
33374
34930
|
var manual = [...workflows.map((w) => w.words), [API_WORD]];
|
|
33375
34931
|
function route(argv) {
|
|
@@ -33587,7 +35143,7 @@ Examples:
|
|
|
33587
35143
|
let owner = client2;
|
|
33588
35144
|
for (const part of op.resource.split("."))
|
|
33589
35145
|
owner = owner[part];
|
|
33590
|
-
|
|
35146
|
+
let result = await owner[op.method](opts);
|
|
33591
35147
|
const name2 = `${op.resource}.${op.method}`;
|
|
33592
35148
|
const list = (items) => {
|
|
33593
35149
|
const view = clientList(items, op, flags.limit, ctx.mode);
|
|
@@ -33601,7 +35157,21 @@ Examples:
|
|
|
33601
35157
|
const cursor = result instanceof Page ? result.next_cursor : record(result).next_cursor ?? record(result).nextToken;
|
|
33602
35158
|
if (typeof cursor === "string" && cursor)
|
|
33603
35159
|
ctx.nextCommand = nextPageCommand(selected.command, parsed, cursor);
|
|
33604
|
-
|
|
35160
|
+
const pageToken = pageTokenField(op), token = pageToken?.sdkName ?? pageToken?.name;
|
|
35161
|
+
const firstPage = flags.all && !(result instanceof Page) && token ? pageOf(result) : undefined;
|
|
35162
|
+
if (flags.all && !(result instanceof Page) && token && !firstPage)
|
|
35163
|
+
throw new UsageError(`--all cannot find the list in ${op.resource}.${op.method}'s response; page with --${token.replace(/_/g, "-")} instead`);
|
|
35164
|
+
if (firstPage) {
|
|
35165
|
+
const items = [...firstPage.items];
|
|
35166
|
+
const seen = new Set;
|
|
35167
|
+
for (let next = firstPage.token;next && !seen.has(next); next = pageOf(result)?.token) {
|
|
35168
|
+
seen.add(next);
|
|
35169
|
+
result = await owner[op.method]({ ...opts, query: { ...opts.query, [token]: next } });
|
|
35170
|
+
items.push(...pageOf(result)?.items ?? []);
|
|
35171
|
+
}
|
|
35172
|
+
ctx.nextCommand = undefined;
|
|
35173
|
+
emit({ kind: "list", ...list(items), ...ctx.mode === "json" ? { raw: { data: items, next_page_token: null } } : {}, nextCursor: null, op: name2 });
|
|
35174
|
+
} else if (result instanceof Page) {
|
|
33605
35175
|
if (flags.all) {
|
|
33606
35176
|
const items = [];
|
|
33607
35177
|
for await (const item of result)
|
|
@@ -33697,7 +35267,7 @@ Examples:
|
|
|
33697
35267
|
}
|
|
33698
35268
|
}
|
|
33699
35269
|
if (true)
|
|
33700
|
-
process.
|
|
35270
|
+
process.exitCode = await main(process.argv.slice(2));
|
|
33701
35271
|
export {
|
|
33702
35272
|
main
|
|
33703
35273
|
};
|