@deepraxis/sdk 0.1.1-dev.3c2e98e → 0.1.1-dev.3cf8882
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/METHODS.md +57 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +100 -7
- package/dist/generated/sdk.gen.js +248 -11
- package/dist/generated/types.gen.d.ts +1503 -222
- package/dist/operations.generated.js +383 -20
- package/dist/resources.generated.d.ts +108 -10
- package/dist/resources.generated.js +36 -0
- package/package.json +1 -1
|
@@ -1020,8 +1020,8 @@ export const operations = [
|
|
|
1020
1020
|
{
|
|
1021
1021
|
"resource": "agent.agents.events",
|
|
1022
1022
|
"method": "stream",
|
|
1023
|
-
"summary": "Follow
|
|
1024
|
-
"description": "Follow
|
|
1023
|
+
"summary": "Follow an agent live",
|
|
1024
|
+
"description": "Follow an agent live over Server-Sent Events. For a personal or general agent it is the stream of your own main session with that agent, the same stream sessions.events.stream opens, event_deltas[] previews included; read past events with agents.events.list. An assume agent has no main session: its body is its MCP connections, and this stream is its broadcast point, which every live connection of the agent hears at once. It carries two events, each with an SSE id: inbox.letter_delivered { letter_id, sender, sender_name, summary, thread, create_time } when a letter arrives (the letter stays unread; take it with the agent's inbox tool, the body is not in the event), and cognition.ritual_held { ritual, owner, title, engram, create_time } when a domain gives the agent a memory. Reconnect with the Last-Event-ID header to receive what you missed from a short recent buffer (about an hour); a first connection replays nothing, so read agents.inbox.letters.list for mail already waiting. {agent_id} takes the agent_… id, the eight character identity number or the handle; a service agent answers 400. Closing the stream only drops your subscription and does not stop the agent.",
|
|
1025
1025
|
"http": "GET",
|
|
1026
1026
|
"path": "/agent/v1/agents/{agent_id}/events/stream",
|
|
1027
1027
|
"streaming": "always",
|
|
@@ -1047,6 +1047,40 @@ export const operations = [
|
|
|
1047
1047
|
}
|
|
1048
1048
|
]
|
|
1049
1049
|
},
|
|
1050
|
+
{
|
|
1051
|
+
"resource": "agent.agents.inbox.letters",
|
|
1052
|
+
"method": "list",
|
|
1053
|
+
"summary": "List an assume agent's waiting letters",
|
|
1054
|
+
"description": "Check whether mail waits for an assume agent without taking it: answers unread, the count of delivered letters the agent has not read, and letters, the newest unread ones (id, sender address, summary, thread, create_time; never the body). Nothing is marked read, so calling it again answers the same until the agent reads its mail with its own inbox tool (praxis_assume_inbox, action \"read\"). Use it when something outside the agent has to learn that mail arrived: the local `praxis agent events wait` reads it once on start and after every reconnect to its agent's event stream, so no letter that arrived while nothing listened is missed. {agent_id} takes the agent_… id, the eight character identity number or the handle of an assume agent in your organization; any other kind answers 400 ASSUME_AGENT_REQUIRED. To read or answer the letters, use the agent's inbox tool, not this read. Example: GET /agent/v1/agents/R1M9TQ2X/inbox/letters?unread=true&limit=5.",
|
|
1055
|
+
"http": "GET",
|
|
1056
|
+
"path": "/agent/v1/agents/{agent_id}/inbox/letters",
|
|
1057
|
+
"streaming": "no",
|
|
1058
|
+
"pagination": false,
|
|
1059
|
+
"pathParams": [
|
|
1060
|
+
{
|
|
1061
|
+
"name": "agent_id",
|
|
1062
|
+
"sdkName": "agent_id",
|
|
1063
|
+
"description": "The assume agent: its agent_… id, eight character identity number or handle, from agents.list or the praxis-assume MCP URL; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
1064
|
+
}
|
|
1065
|
+
],
|
|
1066
|
+
"query": [
|
|
1067
|
+
{
|
|
1068
|
+
"name": "unread",
|
|
1069
|
+
"type": "boolean",
|
|
1070
|
+
"enum": [
|
|
1071
|
+
true
|
|
1072
|
+
],
|
|
1073
|
+
"required": false,
|
|
1074
|
+
"description": "Only true is accepted, which is also the default; this read lists waiting (unread) letters and nothing else."
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"name": "limit",
|
|
1078
|
+
"type": "integer",
|
|
1079
|
+
"required": false,
|
|
1080
|
+
"description": "How many of the newest unread letters to return, 1 to 50 (default 20); unread always counts every waiting letter."
|
|
1081
|
+
}
|
|
1082
|
+
]
|
|
1083
|
+
},
|
|
1050
1084
|
{
|
|
1051
1085
|
"resource": "agent.agents.unarchive",
|
|
1052
1086
|
"method": "create",
|
|
@@ -1385,18 +1419,14 @@ export const operations = [
|
|
|
1385
1419
|
"description": "Computer id (cmp_...), as returned by computers.create or computers.list."
|
|
1386
1420
|
}
|
|
1387
1421
|
],
|
|
1388
|
-
"query": [
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
"description": "Name of the entry or object."
|
|
1397
|
-
}
|
|
1398
|
-
]
|
|
1399
|
-
}
|
|
1422
|
+
"query": [
|
|
1423
|
+
{
|
|
1424
|
+
"name": "path",
|
|
1425
|
+
"type": "string",
|
|
1426
|
+
"required": true,
|
|
1427
|
+
"description": "Absolute path of the document on the computer, for example /home/user/workspace/deck.pptx. The request has no body."
|
|
1428
|
+
}
|
|
1429
|
+
]
|
|
1400
1430
|
},
|
|
1401
1431
|
{
|
|
1402
1432
|
"resource": "agent.computers.leases",
|
|
@@ -2364,6 +2394,64 @@ export const operations = [
|
|
|
2364
2394
|
],
|
|
2365
2395
|
"query": []
|
|
2366
2396
|
},
|
|
2397
|
+
{
|
|
2398
|
+
"resource": "agent.sessions.artifacts",
|
|
2399
|
+
"method": "list",
|
|
2400
|
+
"summary": "List Session Artifacts (Extension)",
|
|
2401
|
+
"description": "List the files this session delivered; an end-customer token reads its own session.\n\nOwn-face extension. Returns { data: Artifact[] } ordered by create_time. Each artifact is one file in the session outputs directory, or one canvas or media asset the reply pointed at (a part with kind object carrying object_type, object_id and href; one artifact per object, pointing at it again adds no version), with id, name, version, parts, source_hrefs, create_time and update_time. Delivering the same path again keeps the id and adds one to version. Files are captured seconds after the turn ends, so artifacts appear after session.status_idle; also watch the agent.artifact_delivered event. Whoever may read the session may read its artifacts; a session that is missing or not yours returns 404.",
|
|
2402
|
+
"http": "GET",
|
|
2403
|
+
"path": "/agent/v1/sessions/{session_id}/artifacts",
|
|
2404
|
+
"streaming": "no",
|
|
2405
|
+
"pagination": false,
|
|
2406
|
+
"pathParams": [
|
|
2407
|
+
{
|
|
2408
|
+
"name": "session_id",
|
|
2409
|
+
"sdkName": "session_id",
|
|
2410
|
+
"description": "Session id from session creation or listing."
|
|
2411
|
+
}
|
|
2412
|
+
],
|
|
2413
|
+
"query": []
|
|
2414
|
+
},
|
|
2415
|
+
{
|
|
2416
|
+
"resource": "agent.sessions.artifacts.contentUrl",
|
|
2417
|
+
"method": "create",
|
|
2418
|
+
"summary": "Create Artifact Content URL (Extension)",
|
|
2419
|
+
"description": "Mint a short-lived download address for one file of an artifact.\n\nOwn-face extension. The body is optional: part (index into the artifact parts, default 0) and ttl_seconds (60 to 300, default 300). Returns { url, expire_time }. The address works for minutes; do not store or log it. For an object part the address serves a snapshot picture of a canvas or the own bytes of the asset; an object that no longer exists returns 404 ARTIFACT_NOT_FOUND and a failing share service returns 502. An unknown artifact or an out-of-range part returns 404 ARTIFACT_NOT_FOUND, a session that is missing or not yours returns 404, and a ttl_seconds outside 60 to 300 returns 400.",
|
|
2420
|
+
"http": "POST",
|
|
2421
|
+
"path": "/agent/v1/sessions/{session_id}/artifacts/{artifact_id}/content_url",
|
|
2422
|
+
"streaming": "no",
|
|
2423
|
+
"pagination": false,
|
|
2424
|
+
"pathParams": [
|
|
2425
|
+
{
|
|
2426
|
+
"name": "session_id",
|
|
2427
|
+
"sdkName": "session_id",
|
|
2428
|
+
"description": "Session id from session creation or listing."
|
|
2429
|
+
},
|
|
2430
|
+
{
|
|
2431
|
+
"name": "artifact_id",
|
|
2432
|
+
"sdkName": "artifact_id",
|
|
2433
|
+
"description": "Artifact id (art_...) from the artifact list or an agent.artifact_delivered event."
|
|
2434
|
+
}
|
|
2435
|
+
],
|
|
2436
|
+
"query": [],
|
|
2437
|
+
"body": {
|
|
2438
|
+
"required": false,
|
|
2439
|
+
"fields": [
|
|
2440
|
+
{
|
|
2441
|
+
"name": "part",
|
|
2442
|
+
"type": "integer",
|
|
2443
|
+
"required": false,
|
|
2444
|
+
"description": "Index into the artifact's parts; defaults to 0."
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
"name": "ttl_seconds",
|
|
2448
|
+
"type": "integer",
|
|
2449
|
+
"required": false,
|
|
2450
|
+
"description": "How long the address works, 60 to 300 seconds; defaults to 300."
|
|
2451
|
+
}
|
|
2452
|
+
]
|
|
2453
|
+
}
|
|
2454
|
+
},
|
|
2367
2455
|
{
|
|
2368
2456
|
"resource": "agent.sessions.backgroundTasks",
|
|
2369
2457
|
"method": "list",
|
|
@@ -2533,7 +2621,7 @@ export const operations = [
|
|
|
2533
2621
|
"resource": "agent.sessions.events",
|
|
2534
2622
|
"method": "list",
|
|
2535
2623
|
"summary": "List session events",
|
|
2536
|
-
"description": "Read the event history of a session as a page of events, oldest first by default (order=desc for newest first). Use it after sending a message to collect the reply, to find tool calls that wait for approval or client custom tool results (session.status_idle with stop_reason requires_action lists their event_ids), or to audit a run; to follow a running session live use sessions.events.stream instead. Filter by types and by a created_at range on processed_at; pages hold at most 100 events (default 20) and next_page continues. A failed run emits session.error before session.status_terminated. Native history also includes user.steer, user.withdraw, system.notification, session.forked, session.goal_changed and session.goal_verification; these are not accepted by the /anthropic/v1 event-type filter. This operation addresses one session — normally a worker session an agent dispatched; to talk to a personal or general agent itself, use agents.events.list instead. In the path, session_id may also be `main` (your own main session with that agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.",
|
|
2624
|
+
"description": "Read the event history of a session as a page of events, oldest first by default (order=desc for newest first). Use it after sending a message to collect the reply, to find tool calls that wait for approval or client custom tool results (session.status_idle with stop_reason requires_action lists their event_ids; a request nobody answered within 24 hours is settled as unanswered and the session goes idle with stop_reason request_expired, which the /anthropic/v1 face shows as end_turn), or to audit a run; to follow a running session live use sessions.events.stream instead. Filter by types and by a created_at range on processed_at; pages hold at most 100 events (default 20) and next_page continues. A failed run emits session.error before session.status_terminated. Native history also includes user.steer, user.withdraw, system.notification, system.notification_suppressed (pending background notifications that hit the wake quota and started no run), system.notification_recorded, session.forked, session.goal_changed and session.goal_verification; these are not accepted by the /anthropic/v1 event-type filter. This operation addresses one session — normally a worker session an agent dispatched; to talk to a personal or general agent itself, use agents.events.list instead. In the path, session_id may also be `main` (your own main session with that agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.",
|
|
2537
2625
|
"http": "GET",
|
|
2538
2626
|
"path": "/agent/v1/sessions/{session_id}/events",
|
|
2539
2627
|
"streaming": "no",
|
|
@@ -2690,6 +2778,24 @@ export const operations = [
|
|
|
2690
2778
|
]
|
|
2691
2779
|
}
|
|
2692
2780
|
},
|
|
2781
|
+
{
|
|
2782
|
+
"resource": "agent.sessions.requests",
|
|
2783
|
+
"method": "list",
|
|
2784
|
+
"summary": "List Session Requests (Extension)",
|
|
2785
|
+
"description": "List the requests a session is waiting on; an end-customer token reads its own session.\n\nOwn-face extension. When a session stops at session.status_idle with stop_reason requires_action, read what it waits on here instead of replaying events. Returns { data: Request[] } ordered by create_time, an empty array when nothing is pending, not paginated. Each request has id (the pending tool call id), object (request), kind (question for the ask_user_question tool, approval for any other tool that waits for permission), status (pending), tool_name, input (the same input the agent.tool_use event shows), create_time and expire_time. Answer a request as before: send a user.tool_confirmation event for its id. expire_time is set only for a session with no collaboration mode while the requests-v1 release is on (create_time plus 24 hours; an expired request counts as declined), otherwise null. Answered, expired and superseded requests are not listed, and neither are pending custom tool results (user.custom_tool_result). Whoever may read the session may read its requests; a session that is missing or not yours returns 404.",
|
|
2786
|
+
"http": "GET",
|
|
2787
|
+
"path": "/agent/v1/sessions/{session_id}/requests",
|
|
2788
|
+
"streaming": "no",
|
|
2789
|
+
"pagination": false,
|
|
2790
|
+
"pathParams": [
|
|
2791
|
+
{
|
|
2792
|
+
"name": "session_id",
|
|
2793
|
+
"sdkName": "session_id",
|
|
2794
|
+
"description": "Session id from session creation or listing."
|
|
2795
|
+
}
|
|
2796
|
+
],
|
|
2797
|
+
"query": []
|
|
2798
|
+
},
|
|
2693
2799
|
{
|
|
2694
2800
|
"resource": "agent.sessions.resources",
|
|
2695
2801
|
"method": "list",
|
|
@@ -10661,7 +10767,7 @@ export const operations = [
|
|
|
10661
10767
|
"resource": "cut.projects",
|
|
10662
10768
|
"method": "execute",
|
|
10663
10769
|
"summary": "Execute editing script",
|
|
10664
|
-
"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);`\n\n<!-- cut-reference:start -->\n### Script function, field and error reference\n\nEvery script function, clip field and error code has its own section, read one at a time:\n\n```\ncodemode.describe(\"praxis.cut.script.<Name>\") // one function: signature, arguments, return, errors, example\ncodemode.describe(\"praxis.cut.fields.<name>\") // one field: type, unit, range, default, where writable\ncodemode.describe(\"praxis.cut.errors.<CODE>\") // one code: meaning, causes, fix\ncodemode.describe(\"praxis.cut.script\") // names, one page at a time\n```\n\nPublished at https://docs.deepraxis.com/docs/developers/cut/script-reference with one anchor per entry. Names below omit the `praxis.cut.<kind>.` prefix.\n\n#### Script functions (script)\n\n- `GetTimeline` — Duration, tracks, joins; clips are under `items`.\n- `GetItem` — One clip's compact view, by id.\n- `FindItems` — Visit every clip with its track; collect results.\n- `GetMedia` — Media metadata; `duration` is seconds.\n- `GetTranscript` — Transcript words in source microseconds.\n- `GetAnalysis` — Silence, filler, scene or beat segments.\n- `ListTransitions` — Join transition kinds and parameters.\n- `ListEffects` — Visual-effect catalog and parameters.\n- `ListAnimations` — Animation presets by phase and target.\n- `ListFonts` — Font families, weights and scripts.\n- `ListTextStyles` — Text style presets for `style.preset`.\n- `ListTextTemplates` — Multi-layer templates and their slots.\n- `Insert` — Add a clip; a track never overlaps itself.\n- `Append` — Add a clip at the end of a track.\n- `Update` — Change named fields; the rest stay.\n- `SetSpeed` — Change rate, keeping source or duration.\n- `Delete` — Remove a clip. There is no `Remove`.\n- `Join` — Overlap clips; followers shift, track shortens.\n- `UpdateJoin` — Change a join's length or effect.\n- `DeleteJoin` — Remove a join; restore the butt cut.\n- `Split` — Cut a clip in two at a time.\n- `Trim` — Move one clip edge by seconds.\n- `Move` — Set a clip's start or track.\n- `RippleDeleteRange` — Cut a time range and close the gap.\n- `DeleteWords` — Cut transcript words and ripple every track, keeping a breath.\n- `RemoveFillers` — List and delete filler words by media's own labels; dryRun first.\n- `AddTrack` — Add a video, audio or caption track.\n- `MoveTrack` — Move a track between layers; 0 is the topmost.\n- `UpdateTrack` — Change a track's name, lock, gain or role.\n- `DeleteTrack` — Remove a track and its clips.\n- `SetSettings` — Change canvas, frame rate or background.\n- `AddCaptionsFromTranscript` — Captions from a clip's kept words.\n- `InsertTemplate` — Insert a template and fill its slots.\n- `AlignCaptions` — Rebuild captions from text punctuation.\n- `ImportCaptions` — Import SRT or WebVTT onto captions.\n- `ExportCaptions` — Export captions as SRT or WebVTT.\n- `SetMarker` — Label a timeline position.\n- `Print` — Append values to the result's `prints`.\n- `Preview` — Up to 8 frames as inline PNG data URLs.\n\n#### Fields (fields)\n\n- `type` — Clip kind; decides which fields apply.\n- `start` — Clip start in seconds; snaps to frames.\n- `length` — Duration; video and audio may omit it or write \"auto\".\n- `media` — Source `{ libraryId, assetId }`.\n- `sourceIn` — First source second kept; default 0.\n- `sourceOut` — Exclusive source end; read-only.\n- `text` — Text of a text or caption clip.\n- `color` — Solid colour of a color clip.\n- `shape` — Shape clip kind: `rect` or `ellipse`.\n- `width` — Shape width, a fraction of canvas width.\n- `height` — Shape height, a fraction of canvas height.\n- `radius` — Rect corner rounding, in 1080-height px.\n- `fill` — Shape or text paint: colour or gradient.\n- `stroke` — Shape outline: colour and width.\n- `transform` — Position, scale, rotation, opacity, crop, blur.\n- `fit` — contain, cover, fill or none.\n- `blend` — Layer blend mode; null clears.\n- `style` — Text styling: font, fill, strokes, glow, position.\n- `style.position` — top, middle or bottom; omit it, never null.\n- `playback` — Rate, direction, audio policy, or freeze.\n- `volumeDb` — Audio level in dB; 0 is source level.\n- `gain` — Keyframed audio level in dB.\n- `fadeIn` — Fade-in seconds at the clip's start.\n- `fadeOut` — Fade-out seconds at the clip's end.\n- `duck` — Lower this clip while another track plays.\n- `animate` — Transform keyframes; `at` is clip-relative seconds.\n- `reveal` — Per-character, word or line reveal timing.\n- `animation` — Preset slots `{ in, out, loop }`; null clears.\n- `effects` — Effect stack, at most 8; null clears.\n- `transitionIn` — Entrance effect: kind plus seconds.\n- `transitionOut` — Exit effect: kind plus seconds.\n- `mask` — Shape, path or track matte.\n- `words` — Caption words with clip-local times.\n\n#### Error codes (errors)\n\n- `JOIN_CONFLICT` — A join is invalid or blocks this edit.\n- `INVALID_TRANSITION` — Bad transition kind, parameter or length.\n- `INVALID_STYLE` — A style value is out of range.\n- `INVALID_MASK` — A mask definition is malformed.\n- `MASK_IN_USE` — The edit would break a live mask.\n- `TOO_MANY_MASKS` — At most 16 masks per project.\n- `RATE_OUT_OF_RANGE` — A rate is outside 0.25-4.\n- `UNSUPPORTED_PLAYBACK` — Reverse without an explicit mute.\n- `INVALID_PLAYBACK` — A playback object is partial or malformed.\n- `UNKNOWN_FONT` — The family is not in `ListFonts()`.\n- `UNKNOWN_FIELD` — The field name is not accepted here.\n- `UNKNOWN_TEXT_STYLE` — `style.preset` is not in the catalog.\n- `TEXT_STYLE_TARGET_MISMATCH` — Preset on the wrong clip type.\n- `CAPTION_ALIGN_LOW_CONFIDENCE` — Alignment confidence too low; nothing changed.\n- `OVERLAP` — Two clips on one track would share time.\n- `OUT_OF_SOURCE` — The clip would read past its source.\n- `LOCKED_TRACK` — The edit targets a locked track.\n- `UNBOUND_LIBRARY` — The library is not bound to the project.\n- `TRACK_KIND_MISMATCH` — The clip type does not fit the track.\n- `NOT_FOUND` — The named id is not in this project.\n- `TOO_SHORT` — The result would be under one frame.\n- `INVALID_DUCK` — Bad `duck` level or a missing track.\n- `UNKNOWN_ANIMATION` — The preset is not in `ListAnimations()`.\n- `INVALID_ANIMATION_PARAM` — Bad slot, parameter or keyframe limit.\n- `ANIMATION_TOO_LONG` — In plus out exceed the clip length.\n- `ANIMATION_TARGET_MISMATCH` — The preset does not match the clip type.\n- `ANIMATION_PHASE_MISMATCH` — The preset is in the wrong slot.\n- `UNKNOWN_EFFECT` — The effect is not in `ListEffects()`.\n- `INVALID_EFFECT_PARAM` — Bad effect parameter or keyframe.\n- `TOO_MANY_EFFECTS` — More than 8 effects on one clip.\n- `PROJECT_NOT_FOUND` — No visible project has this id.\n- `EXPORT_NOT_FOUND` — No such export in this project.\n- `DRAFT_RENDER_NOT_FOUND` — No such draft render.\n- `VERSION_NOT_FOUND` — No saved version has this revision.\n- `LIBRARY_NOT_FOUND` — The library is missing or invisible.\n- `BINDING_INVALID` — The binding request is malformed.\n- `BINDING_IN_USE` — Clips still use this library's assets.\n- `NOTHING_TO_UNDO` — No earlier revision to return to.\n- `NOTHING_TO_REDO` — No undone revision is waiting.\n- `UNDO_CONFLICT` — The revision to undo is no longer head.\n- `REVISION_CONFLICT` — The project moved; your revision is stale.\n- `CUT_BUSY` — The project is busy; retry.\n- `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.\n- `SCRIPT_ERROR` — The script threw or did not parse.\n- `SCRIPT_LIMIT` — An execute budget was exceeded.\n- `OPS_REJECTED` — An op failed; the whole edit rolled back.\n- `EDIT_EXPIRED` — The saved edit id is over ten minutes old.\n- `MEDIA_NOT_FOUND` — The asset id is not in that library.\n- `MEDIA_OFFLINE` — The asset cannot be fetched right now.\n- `MEDIA_UNAVAILABLE` — The asset is not usable for rendering.\n- `MEDIA_IMPORT_FAILED` — Importing media failed.\n- `FRAME_OUT_OF_RANGE` — The preview time is outside the project.\n- `PROJECT_TOO_LARGE` — The project exceeds the size limit.\n- `RESPONSE_TOO_LARGE` — The response would exceed its budget.\n- `EXPORT_FAILED` — The render failed; read `error.cause`.\n- `INVALID_PARAMS` — The request is malformed.\n- `PERMISSION_DENIED` — This credential may not do that here.\n- `NOT_IMPLEMENTED` — Not available on this platform yet.\n- `INTERNAL` — Unexpected failure; retry with the request id.\n<!-- cut-reference:end -->\n",
|
|
10770
|
+
"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);`\n\n<!-- cut-reference:start -->\n### Script function, field and error reference\n\nEvery script function, clip field and error code has its own section, read one at a time:\n\n```\ncodemode.describe(\"praxis.cut.script.<Name>\") // one function: signature, arguments, return, errors, example\ncodemode.describe(\"praxis.cut.fields.<name>\") // one field: type, unit, range, default, where writable\ncodemode.describe(\"praxis.cut.errors.<CODE>\") // one code: meaning, causes, fix\ncodemode.describe(\"praxis.cut.script\") // names, one page at a time\n```\n\nPublished at https://docs.deepraxis.com/docs/developers/cut/script-reference with one anchor per entry. Names below omit the `praxis.cut.<kind>.` prefix.\n\n#### Script functions (script)\n\n- `GetTimeline` — Duration, tracks, joins; clips are under `items`.\n- `GetItem` — One clip's compact view, by id.\n- `FindItems` — Visit every clip with its track; collect results.\n- `GetMedia` — Media metadata; `duration` is seconds.\n- `GetTranscript` — Transcript words in source microseconds.\n- `GetAnalysis` — Silence, filler, scene or beat segments.\n- `ListTransitions` — Join transition kinds and parameters.\n- `ListEffects` — Visual-effect catalog and parameters.\n- `ListAnimations` — Animation presets by phase and target.\n- `ListFonts` — Font families, weights and scripts.\n- `ListTextStyles` — Text style presets for `style.preset`.\n- `ListTextTemplates` — Multi-layer templates and their slots.\n- `Insert` — Add a clip; a track never overlaps itself.\n- `Append` — Add a clip at the end of a track.\n- `Update` — Change named fields; the rest stay.\n- `SetSpeed` — Change rate, keeping source or duration.\n- `Delete` — Remove a clip. There is no `Remove`.\n- `Join` — Overlap clips; followers shift, track shortens.\n- `UpdateJoin` — Change a join's length or effect.\n- `DeleteJoin` — Remove a join; restore the butt cut.\n- `Split` — Cut a clip in two at a time.\n- `Trim` — Move one clip edge by seconds.\n- `Move` — Set a clip's start or track.\n- `RippleDeleteRange` — Cut a time range and close the gap.\n- `DeleteWords` — Cut transcript words and ripple every track, keeping a breath.\n- `RemoveFillers` — List and delete filler words by media's own labels; dryRun first.\n- `Matte` — Replace the clip's background with media's matte of its source, read as a luma mask.\n- `EnhanceVoice` — Replace a clip's sound with media's enhanced speech on its own audio track.\n- `AlignByAudio` — Line two recordings of the same sound up by media's measurement of their offset.\n- `Reframe` — Swap the clip's media for media's reframed take at the aspect you ask for.\n- `Upscale` — Swap the clip's media for media's upscaled take at the height you ask for.\n- `Redact` — Pixelate the faces, QR codes or text media marks, leaving the rest of the frame plain.\n- `AddTrack` — Add a video, audio or caption track.\n- `MoveTrack` — Move a track between layers; 0 is the topmost.\n- `UpdateTrack` — Change a track's name, lock, gain or role.\n- `DeleteTrack` — Remove a track and its clips.\n- `SetSettings` — Change canvas, frame rate or background.\n- `AddCaptionsFromTranscript` — Captions from a clip's kept words.\n- `InsertTemplate` — Insert a template and fill its slots.\n- `AlignCaptions` — Rebuild captions from text punctuation.\n- `ImportCaptions` — Import SRT or WebVTT onto captions.\n- `ExportCaptions` — Export captions as SRT or WebVTT.\n- `SetMarker` — Label a timeline position.\n- `Print` — Append values to the result's `prints`.\n- `Preview` — Up to 8 frames as inline PNG data URLs.\n\n#### Fields (fields)\n\n- `type` — Clip kind; decides which fields apply.\n- `start` — Clip start in seconds; snaps to frames.\n- `length` — Duration; video and audio may omit it or write \"auto\".\n- `media` — Source `{ libraryId, assetId }`.\n- `sourceIn` — First source second kept; default 0.\n- `sourceOut` — Exclusive source end; read-only.\n- `text` — Text of a text or caption clip.\n- `color` — Solid colour of a color clip.\n- `shape` — Shape clip kind: `rect` or `ellipse`.\n- `width` — Shape width, a fraction of canvas width.\n- `height` — Shape height, a fraction of canvas height.\n- `radius` — Rect corner rounding, in 1080-height px.\n- `fill` — Shape or text paint: colour or gradient.\n- `stroke` — Shape outline: colour and width.\n- `transform` — Position, scale, rotation, opacity, crop, blur.\n- `fit` — contain, cover, fill or none.\n- `blend` — Layer blend mode; null clears.\n- `style` — Text styling: font, fill, strokes, glow, position.\n- `style.position` — top, middle or bottom; omit it, never null.\n- `playback` — Rate, direction, audio policy, or freeze.\n- `volumeDb` — Audio level in dB; 0 is source level.\n- `gain` — Keyframed audio level in dB.\n- `fadeIn` — Fade-in seconds at the clip's start.\n- `fadeOut` — Fade-out seconds at the clip's end.\n- `duck` — Lower this clip while another track plays.\n- `animate` — Transform keyframes; `at` is clip-relative seconds.\n- `reveal` — Per-character, word or line reveal timing.\n- `animation` — Preset slots `{ in, out, loop }`; null clears.\n- `effects` — Effect stack, at most 8; null clears.\n- `transitionIn` — Entrance effect: kind plus seconds.\n- `transitionOut` — Exit effect: kind plus seconds.\n- `mask` — Shape, path or track matte.\n- `words` — Caption words with clip-local times.\n\n#### Error codes (errors)\n\n- `JOIN_CONFLICT` — A join is invalid or blocks this edit.\n- `INVALID_TRANSITION` — Bad transition kind, parameter or length.\n- `INVALID_STYLE` — A style value is out of range.\n- `INVALID_MASK` — A mask definition is malformed.\n- `MASK_IN_USE` — The edit would break a live mask.\n- `TOO_MANY_MASKS` — At most 16 masks per project.\n- `RATE_OUT_OF_RANGE` — A rate is outside 0.25-4.\n- `UNSUPPORTED_PLAYBACK` — Reverse without an explicit mute.\n- `INVALID_PLAYBACK` — A playback object is partial or malformed.\n- `UNKNOWN_FONT` — The family is not in `ListFonts()`.\n- `UNKNOWN_FIELD` — The field name is not accepted here.\n- `UNKNOWN_TEXT_STYLE` — `style.preset` is not in the catalog.\n- `TEXT_STYLE_TARGET_MISMATCH` — Preset on the wrong clip type.\n- `CAPTION_ALIGN_LOW_CONFIDENCE` — Alignment confidence too low; nothing changed.\n- `OVERLAP` — Two clips on one track would share time.\n- `OUT_OF_SOURCE` — The clip would read past its source.\n- `LOCKED_TRACK` — The edit targets a locked track.\n- `UNBOUND_LIBRARY` — The library is not bound to the project.\n- `TRACK_KIND_MISMATCH` — The clip type does not fit the track.\n- `NOT_FOUND` — The named id is not in this project.\n- `TOO_SHORT` — The result would be under one frame.\n- `INVALID_DUCK` — Bad `duck` level or a missing track.\n- `UNKNOWN_ANIMATION` — The preset is not in `ListAnimations()`.\n- `INVALID_ANIMATION_PARAM` — Bad slot, parameter or keyframe limit.\n- `ANIMATION_TOO_LONG` — In plus out exceed the clip length.\n- `ANIMATION_TARGET_MISMATCH` — The preset does not match the clip type.\n- `ANIMATION_PHASE_MISMATCH` — The preset is in the wrong slot.\n- `UNKNOWN_EFFECT` — The effect is not in `ListEffects()`.\n- `INVALID_EFFECT_PARAM` — Bad effect parameter or keyframe.\n- `TOO_MANY_EFFECTS` — More than 8 effects on one clip.\n- `PROJECT_NOT_FOUND` — No visible project has this id.\n- `EXPORT_NOT_FOUND` — No such export in this project.\n- `DRAFT_RENDER_NOT_FOUND` — No such draft render.\n- `VERSION_NOT_FOUND` — No saved version has this revision.\n- `LIBRARY_NOT_FOUND` — The library is missing or invisible.\n- `BINDING_INVALID` — The binding request is malformed.\n- `BINDING_IN_USE` — Clips still use this library's assets.\n- `NOTHING_TO_UNDO` — No earlier revision to return to.\n- `NOTHING_TO_REDO` — No undone revision is waiting.\n- `UNDO_CONFLICT` — The revision to undo is no longer head.\n- `REVISION_CONFLICT` — The project moved; your revision is stale.\n- `CUT_BUSY` — The project is busy; retry.\n- `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.\n- `SCRIPT_ERROR` — The script threw or did not parse.\n- `SCRIPT_LIMIT` — An execute budget was exceeded.\n- `OPS_REJECTED` — An op failed; the whole edit rolled back.\n- `EDIT_EXPIRED` — The saved edit id is over ten minutes old.\n- `MEDIA_NOT_FOUND` — The asset id is not in that library.\n- `MEDIA_OFFLINE` — The asset cannot be fetched right now.\n- `MEDIA_UNAVAILABLE` — The asset is not usable for rendering.\n- `MEDIA_IMPORT_FAILED` — Importing media failed.\n- `MEDIA_PROCESSING` — Media is still processing the clip; wait for the job and rerun.\n- `MEDIA_PROCESSING_FAILED` — Media's processing job failed; nothing changed.\n- `ALIGNMENT_UNCERTAIN` — `AlignByAudio` confidence too low; nothing changed.\n- `FRAME_OUT_OF_RANGE` — The preview time is outside the project.\n- `PROJECT_TOO_LARGE` — The project exceeds the size limit.\n- `RESPONSE_TOO_LARGE` — The response would exceed its budget.\n- `EXPORT_FAILED` — The render failed; read `error.cause`.\n- `INVALID_PARAMS` — The request is malformed.\n- `PERMISSION_DENIED` — This credential may not do that here.\n- `NOT_IMPLEMENTED` — Not available on this platform yet.\n- `INTERNAL` — Unexpected failure; retry with the request id.\n<!-- cut-reference:end -->\n",
|
|
10665
10771
|
"http": "POST",
|
|
10666
10772
|
"path": "/cut/v1/projects/{project_id}:execute",
|
|
10667
10773
|
"streaming": "no",
|
|
@@ -12173,7 +12279,7 @@ export const operations = [
|
|
|
12173
12279
|
"resource": "devops.flags",
|
|
12174
12280
|
"method": "archive",
|
|
12175
12281
|
"summary": "Archive a flag",
|
|
12176
|
-
"description": "Archive a flag whose code is gone: it stops evaluating in every environment, leaves the ordinary flag list and keeps its key and history. Archiving
|
|
12282
|
+
"description": "Archive a flag whose code is gone: it stops evaluating in every environment, leaves the ordinary flag list and keeps its key and history. Archiving is the delete, and the platform refuses it while the last reported scan still finds the key in code or while the flag is on in an environment: a flag whose codeRefs.count is above zero is refused with FLAG_STILL_REFERENCED, and a flag whose on state is true in any environment is refused with FLAG_HAS_LIVE_RULES, so archiving succeeds only once the code that names the key is deployed away and every environment is off. The gate reads the stored scan as it stands — an out-of-date scannedCommit is not corrected for — and there is no force flag. It is irreversible through the API: there is no unarchive call, an archived flag cannot be updated or configured, and its key stays reserved, so a later create with the same key is refused; archiving an archived flag just answers it again. A flag that may come back is turned off in its environment instead. The order is: open the flag fully (`praxis api devops flag environment update`), delete the code that names the key and deploy that, run `praxis devops flag remove <key>` (local, lists the references still naming the key), then `praxis api devops flag archive <id>`, then `praxis devops flag sync` so the local registry drops it. There is no separate delete call.",
|
|
12177
12283
|
"http": "POST",
|
|
12178
12284
|
"path": "/devops/v1/flags/{id}:archive",
|
|
12179
12285
|
"streaming": "no",
|
|
@@ -13037,6 +13143,42 @@ export const operations = [
|
|
|
13037
13143
|
}
|
|
13038
13144
|
}
|
|
13039
13145
|
},
|
|
13146
|
+
{
|
|
13147
|
+
"resource": "devops.projects.flags",
|
|
13148
|
+
"method": "reportCodeRefs",
|
|
13149
|
+
"summary": "Report a project's flag code references",
|
|
13150
|
+
"description": "Store one code-reference scan for a project in a single call: send the commit the scan read (scannedCommit, the checkout's `git rev-parse HEAD`) and, for every flag key the scan knows, the places code reads it ({path, line, snippet}). Send every key the checkout still expects to be referenced, including the ones found nowhere: a project flag with no entry in refs is stored with zero references, and zero is what lets `archive` see the code that named the flag is gone. A key that matches no live flag of the project — one already archived, or from another project — is returned in unknownKeys and stores nothing; reporting it is not an error. updated is how many flags were written, which is every live flag of the project because each gets a row. This is the write side of the archive gate: `POST /v1/flags/{id}:archive` refuses with FLAG_STILL_REFERENCED while the stored count is above zero, and the count it reads is exactly the one stored here. Staleness is not corrected for — the stored scannedCommit and count are used as they stand. At most 500 references are stored per flag; a longer list is truncated for storage while count still reports the true number. Reporting changes no flag's runtime behaviour.",
|
|
13151
|
+
"http": "POST",
|
|
13152
|
+
"path": "/devops/v1/projects/{project}/flags/code-refs",
|
|
13153
|
+
"streaming": "no",
|
|
13154
|
+
"pagination": false,
|
|
13155
|
+
"pathParams": [
|
|
13156
|
+
{
|
|
13157
|
+
"name": "project",
|
|
13158
|
+
"sdkName": "project",
|
|
13159
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
13160
|
+
}
|
|
13161
|
+
],
|
|
13162
|
+
"query": [],
|
|
13163
|
+
"body": {
|
|
13164
|
+
"required": true,
|
|
13165
|
+
"fields": [
|
|
13166
|
+
{
|
|
13167
|
+
"name": "scannedCommit",
|
|
13168
|
+
"type": "string",
|
|
13169
|
+
"required": true,
|
|
13170
|
+
"description": "The commit this scan read, from `git rev-parse HEAD` in the reporting checkout; it is stored as each flag's codeRefs.scannedCommit, so a value older than the current head means the count describes the code as it was then."
|
|
13171
|
+
},
|
|
13172
|
+
{
|
|
13173
|
+
"name": "refs",
|
|
13174
|
+
"type": "array",
|
|
13175
|
+
"itemType": "object",
|
|
13176
|
+
"required": true,
|
|
13177
|
+
"description": "One entry per flag key this scan judged. Send every key the checkout still expects to be referenced, including the ones found nowhere: a project flag with no entry here is stored with zero references, which is what later lets `archive` refuse only flags code still names."
|
|
13178
|
+
}
|
|
13179
|
+
]
|
|
13180
|
+
}
|
|
13181
|
+
},
|
|
13040
13182
|
{
|
|
13041
13183
|
"resource": "devops.projects.promotions",
|
|
13042
13184
|
"method": "list",
|
|
@@ -14973,7 +15115,7 @@ export const operations = [
|
|
|
14973
15115
|
"resource": "devops.units",
|
|
14974
15116
|
"method": "push",
|
|
14975
15117
|
"summary": "Push a unit's branch",
|
|
14976
|
-
"description": "Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, so fetch first when unsure, reconcile, and send the new head. For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that
|
|
15118
|
+
"description": "Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, so fetch first when unsure, reconcile, and send the new head. For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that git refuses inside the machine answers with the cause in the error message and in details.detail (the last 4000 characters of git's output, credentials redacted) and details.exitCode (git's exit code): 409 PUSH_REJECTED_BY_HOOK when a pre-push hook such as lefthook rejected it, so read the hook output, fix the content and push again, 409 PUSH_REJECTED_NON_FAST_FORWARD when the remote moved ahead, so fetch and reconcile, 409 HEAD_MOVED when the lease on expectedHead no longer holds, and 500 PUSH_FAILED for anything else. Do not retry the same push unchanged.",
|
|
14977
15119
|
"http": "POST",
|
|
14978
15120
|
"path": "/devops/v1/units/{id}:push",
|
|
14979
15121
|
"streaming": "no",
|
|
@@ -16878,11 +17020,57 @@ export const operations = [
|
|
|
16878
17020
|
]
|
|
16879
17021
|
}
|
|
16880
17022
|
},
|
|
17023
|
+
{
|
|
17024
|
+
"resource": "media.libraries.assets.align",
|
|
17025
|
+
"method": "create",
|
|
17026
|
+
"summary": "Align asset",
|
|
17027
|
+
"description": "Align two recordings by their sound and learn how they line up, without producing an asset. The route names the source asset; the body names the reference to compare against it. Both must be audio or a video, of the same library; anything else is refused with REFERENCE_TYPE_MISMATCH before a job exists. The call is an analysis: it decides and charges nothing else, bills per second of input, and stores no asset — the completed job carries the answer in result, offset_seconds saying how many seconds later the reference starts (so a caller holding both recordings knows which one to slide) and confidence how sure the correlation is. The analysis is idempotent on the source, the reference and the parameters: asking again with the same pair answers the completed job and its result instead of analysing and charging again. A max_offset_seconds caps how far apart the two may be; alignment needs an alignment model from the platform model catalogue, and with none published the request is refused with OPERATION_NOT_SUPPORTED, 尚未上架. Send Idempotency-Key, or idempotency_key in the body, to retry without analysing twice. The response is 202 with a queued Job whose operation is align; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until it is completed or failed, then read result. Example: POST /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/align with {\"reference_asset_id\":\"3f2a9c1e5b7d4e6f8a0b1c2d3e4f5a6b\",\"max_offset_seconds\":30}.",
|
|
17028
|
+
"http": "POST",
|
|
17029
|
+
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/align",
|
|
17030
|
+
"streaming": "no",
|
|
17031
|
+
"pagination": false,
|
|
17032
|
+
"pathParams": [
|
|
17033
|
+
{
|
|
17034
|
+
"name": "library_id",
|
|
17035
|
+
"sdkName": "library_id",
|
|
17036
|
+
"description": "Library ID returned by creation."
|
|
17037
|
+
},
|
|
17038
|
+
{
|
|
17039
|
+
"name": "asset_id",
|
|
17040
|
+
"sdkName": "asset_id",
|
|
17041
|
+
"description": "32-character asset ID."
|
|
17042
|
+
}
|
|
17043
|
+
],
|
|
17044
|
+
"query": [],
|
|
17045
|
+
"body": {
|
|
17046
|
+
"required": true,
|
|
17047
|
+
"fields": [
|
|
17048
|
+
{
|
|
17049
|
+
"name": "reference_asset_id",
|
|
17050
|
+
"type": "string",
|
|
17051
|
+
"required": true,
|
|
17052
|
+
"description": "Asset to align against the one the route names. It must be an audio or video asset of the same library, otherwise the request is refused with REFERENCE_TYPE_MISMATCH before a job exists."
|
|
17053
|
+
},
|
|
17054
|
+
{
|
|
17055
|
+
"name": "max_offset_seconds",
|
|
17056
|
+
"type": "number",
|
|
17057
|
+
"required": false,
|
|
17058
|
+
"description": "Largest offset to search for, in seconds; omit it to let the model search its full range. Zero and negative values are refused with INVALID_PARAMS."
|
|
17059
|
+
},
|
|
17060
|
+
{
|
|
17061
|
+
"name": "idempotency_key",
|
|
17062
|
+
"type": "string",
|
|
17063
|
+
"required": false,
|
|
17064
|
+
"description": "Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected."
|
|
17065
|
+
}
|
|
17066
|
+
]
|
|
17067
|
+
}
|
|
17068
|
+
},
|
|
16881
17069
|
{
|
|
16882
17070
|
"resource": "media.assets",
|
|
16883
17071
|
"method": "edit",
|
|
16884
17072
|
"summary": "Edit asset",
|
|
16885
|
-
"description": "Edit an existing asset and store the result as a new asset. Use library_id from creation or listing and asset_id from asset creation or listing; library_id also accepts the literal default, which resolves to the organization’s default library before the credential check. The source asset is never overwritten: the new asset hangs under it in the edit chain, records it in derived_from, and reads back with assets.lineage, so earlier steps stay reachable. The body is operation plus the optional model, asset_folder, understanding and idempotency_key; operation.type selects the edit and carries that operation’s own fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, and to_video, frame and resynthesize on the material each takes; every other type in the operation vocabulary is refused with OPERATION_NOT_SUPPORTED. remove_background on a video produces a portrait matte video for compositing without a green screen: output picks
|
|
17073
|
+
"description": "Edit an existing asset and store the result as a new asset. Use library_id from creation or listing and asset_id from asset creation or listing; library_id also accepts the literal default, which resolves to the organization’s default library before the credential check. The source asset is never overwritten: the new asset hangs under it in the edit chain, records it in derived_from, and reads back with assets.lineage, so earlier steps stay reachable. The body is operation plus the optional model, asset_folder, understanding and idempotency_key; operation.type selects the edit and carries that operation’s own fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe and redact through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe and redact on a video), and to_video, frame and resynthesize on the material each takes; every other type in the operation vocabulary is refused with OPERATION_NOT_SUPPORTED. The processing lane takes its model from the platform model catalogue, judged by the operation’s capability and overridable with operation.model, and bills per second of input; each edit is idempotent on the source, the operation and the parameters, so a second request that would make the same asset answers the asset already made instead of paying again, and an operation whose catalogue list is empty is refused with OPERATION_NOT_SUPPORTED, 尚未上架. remove_background on a video produces a portrait matte video for compositing without a green screen: output picks mask (a black-and-white matte as a small H.264 video, person white and background black: use it as a Cut track mask with channel luma under the original video to lay a lecturer over slides — the choice for compositing) or alpha (the default: the person on a transparent background as ProRes 4444, which is very large, about 870 MB per 15 seconds of 1080p, so ask for it only when a transparent file itself is the deliverable), and model picks the matting model from types.matting.models of the generation capabilities — read it first, because a request that names none takes the first available matting model and a video is refused with OPERATION_NOT_SUPPORTED, in the model field, when the platform has published none. output and model mean nothing for an image source and are refused with INVALID_PARAMS naming the field rather than ignored. inpaint takes mask, a PNG File identifier beginning with file- whose transparent area marks the region to replace, plus the prompt describing what belongs there. Aspects beyond the source asset’s material type return REFERENCE_TYPE_MISMATCH. Editing is billed by the model usage it consumes, at the same prices as the model API, and the job reports the charge in usage (US dollars, six decimals) and the new asset carries it in provenance.cost; when the job is done, tell the person the usage amount and give them the output’s viewer_url. The response is 202 with a queued Job whose type is image, whose operation is the edit applied, and whose source_asset_id is the asset edited; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until it is completed or failed, then read the produced asset. Example: POST /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/edits with {\"operation\":{\"type\":\"variations\",\"strength\":\"subtle\"}}.",
|
|
16886
17074
|
"http": "POST",
|
|
16887
17075
|
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
|
|
16888
17076
|
"streaming": "no",
|
|
@@ -16907,7 +17095,7 @@ export const operations = [
|
|
|
16907
17095
|
"name": "operation",
|
|
16908
17096
|
"type": "object",
|
|
16909
17097
|
"required": true,
|
|
16910
|
-
"description": "One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED."
|
|
17098
|
+
"description": "One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe and redact through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe and redact on a video), and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align."
|
|
16911
17099
|
},
|
|
16912
17100
|
{
|
|
16913
17101
|
"name": "model",
|
|
@@ -19694,6 +19882,18 @@ export const operations = [
|
|
|
19694
19882
|
]
|
|
19695
19883
|
}
|
|
19696
19884
|
},
|
|
19885
|
+
{
|
|
19886
|
+
"resource": "model.modelAccess",
|
|
19887
|
+
"method": "list",
|
|
19888
|
+
"summary": "List Model Access",
|
|
19889
|
+
"description": "List the models your organization must enable before use, together with the grants it already has. Read it to check whether a model is enabled before an inference call, or to show which marked models still need enabling; use each item's model as the id for enableModelAccess or disableModelAccess (PUT or DELETE /model/v1/models/{model}/access). Items cover every model the catalog marks access_required, granted or not, so the gated class stays discoverable, plus any other model this organization has enabled, one item per model. access_required says whether the catalog gates the model; granted says whether your organization has a grant; the prices are the model's current sell prices, what the next call costs, not the price recorded when the grant was created.",
|
|
19890
|
+
"http": "GET",
|
|
19891
|
+
"path": "/model/v1/model-access",
|
|
19892
|
+
"streaming": "no",
|
|
19893
|
+
"pagination": false,
|
|
19894
|
+
"pathParams": [],
|
|
19895
|
+
"query": []
|
|
19896
|
+
},
|
|
19697
19897
|
{
|
|
19698
19898
|
"resource": "model.models",
|
|
19699
19899
|
"method": "list",
|
|
@@ -19722,6 +19922,8 @@ export const operations = [
|
|
|
19722
19922
|
"openai.images.generations",
|
|
19723
19923
|
"openai.responses",
|
|
19724
19924
|
"openai.videos",
|
|
19925
|
+
"praxis.media.process",
|
|
19926
|
+
"praxis.video.matting",
|
|
19725
19927
|
"typesafe.systemone",
|
|
19726
19928
|
"volcengine.music",
|
|
19727
19929
|
"volcengine.vod.matting",
|
|
@@ -19786,6 +19988,42 @@ export const operations = [
|
|
|
19786
19988
|
],
|
|
19787
19989
|
"query": []
|
|
19788
19990
|
},
|
|
19991
|
+
{
|
|
19992
|
+
"resource": "model.models.access",
|
|
19993
|
+
"method": "delete",
|
|
19994
|
+
"summary": "Disable Model Access",
|
|
19995
|
+
"description": "Disable one model for your organization by deleting its grant, so the next call to a model that requires access is refused again with 403 MODEL_ACCESS_REQUIRED. Pass any id enableModelAccess accepts, including creator prefixes; the model may be enabled again later, and the new grant records whoever enabled it then. A model that is not currently enabled is already disabled, so deleting a grant that does not exist also answers 200 with revoked true; only an id no catalog model carries answers 404 MODEL_NOT_FOUND.",
|
|
19996
|
+
"http": "DELETE",
|
|
19997
|
+
"path": "/model/v1/models/{model}/access",
|
|
19998
|
+
"streaming": "no",
|
|
19999
|
+
"pagination": false,
|
|
20000
|
+
"pathParams": [
|
|
20001
|
+
{
|
|
20002
|
+
"name": "model",
|
|
20003
|
+
"sdkName": "model",
|
|
20004
|
+
"description": "Model ID the organization no longer wants enabled; same ids as enableModelAccess."
|
|
20005
|
+
}
|
|
20006
|
+
],
|
|
20007
|
+
"query": []
|
|
20008
|
+
},
|
|
20009
|
+
{
|
|
20010
|
+
"resource": "model.models.access",
|
|
20011
|
+
"method": "update",
|
|
20012
|
+
"summary": "Enable Model Access",
|
|
20013
|
+
"description": "Enable one model for your organization so a call to it is allowed. Call it when an inference request was refused with 403 MODEL_ACCESS_REQUIRED, or ahead of time for a model the catalog marks access_required: true; the refusal message and praxis.model.models.list name the model id to pass here. The id resolves exactly as a chat call resolves it, including any creator prefix such as deepseek/deepseek-v4-pro, and an id no catalog model carries answers 404 MODEL_NOT_FOUND. Enabling is organization-wide and needs no approval, and it is idempotent: a second call returns the first grant unchanged, keeping its author, its timestamp and the USD-per-million-token price snapshot it recorded then. Enabling a model that does not require access is allowed and makes no difference to gating.",
|
|
20014
|
+
"http": "PUT",
|
|
20015
|
+
"path": "/model/v1/models/{model}/access",
|
|
20016
|
+
"streaming": "no",
|
|
20017
|
+
"pagination": false,
|
|
20018
|
+
"pathParams": [
|
|
20019
|
+
{
|
|
20020
|
+
"name": "model",
|
|
20021
|
+
"sdkName": "model",
|
|
20022
|
+
"description": "Model ID as the catalog lists it, including any creator prefix; primary ids, aliases and prefixed ids resolve the same way a chat call resolves them."
|
|
20023
|
+
}
|
|
20024
|
+
],
|
|
20025
|
+
"query": []
|
|
20026
|
+
},
|
|
19789
20027
|
{
|
|
19790
20028
|
"resource": "model.ocr",
|
|
19791
20029
|
"method": "create",
|
|
@@ -25350,6 +25588,131 @@ export const operations = [
|
|
|
25350
25588
|
]
|
|
25351
25589
|
}
|
|
25352
25590
|
},
|
|
25591
|
+
{
|
|
25592
|
+
"resource": "share.permissions",
|
|
25593
|
+
"method": "list",
|
|
25594
|
+
"summary": "List shares",
|
|
25595
|
+
"description": "Find the shares of this organization, newest first, for example every link that exposes one file before you decide which to revoke. Filter by resource_type, resource_id and status; filters combine with AND. Continue with next_page_token as page_token until next_page_token is null. Records never include link.web_url. A credential bound to specific files must pass resource_type and resource_id of a bound file, and an unbound file answers 404.",
|
|
25596
|
+
"http": "GET",
|
|
25597
|
+
"path": "/share/v1/permissions",
|
|
25598
|
+
"streaming": "no",
|
|
25599
|
+
"pagination": false,
|
|
25600
|
+
"pathParams": [],
|
|
25601
|
+
"query": [
|
|
25602
|
+
{
|
|
25603
|
+
"name": "resource_type",
|
|
25604
|
+
"type": "string",
|
|
25605
|
+
"enum": [
|
|
25606
|
+
"file",
|
|
25607
|
+
"artifact",
|
|
25608
|
+
"canvas",
|
|
25609
|
+
"media_asset"
|
|
25610
|
+
],
|
|
25611
|
+
"required": false,
|
|
25612
|
+
"description": "Only shares of this object type; file, canvas and media_asset create today."
|
|
25613
|
+
},
|
|
25614
|
+
{
|
|
25615
|
+
"name": "resource_id",
|
|
25616
|
+
"type": "string",
|
|
25617
|
+
"required": false,
|
|
25618
|
+
"description": "Only shares of the object with this id, for example a file id from the File API or a media asset's library_id/asset_id; combine with resource_type."
|
|
25619
|
+
},
|
|
25620
|
+
{
|
|
25621
|
+
"name": "status",
|
|
25622
|
+
"type": "string",
|
|
25623
|
+
"enum": [
|
|
25624
|
+
"active",
|
|
25625
|
+
"expired",
|
|
25626
|
+
"revoked"
|
|
25627
|
+
],
|
|
25628
|
+
"required": false,
|
|
25629
|
+
"description": "Only shares in this state; omit to list every state."
|
|
25630
|
+
},
|
|
25631
|
+
{
|
|
25632
|
+
"name": "page_size",
|
|
25633
|
+
"type": "integer",
|
|
25634
|
+
"required": false,
|
|
25635
|
+
"description": "Maximum shares in one page, from 1 to 100; defaults to 50."
|
|
25636
|
+
},
|
|
25637
|
+
{
|
|
25638
|
+
"name": "page_token",
|
|
25639
|
+
"type": "string",
|
|
25640
|
+
"required": false,
|
|
25641
|
+
"description": "Opaque next_page_token from the preceding page with the same filters; omit on the first request."
|
|
25642
|
+
}
|
|
25643
|
+
]
|
|
25644
|
+
},
|
|
25645
|
+
{
|
|
25646
|
+
"resource": "share.permissions",
|
|
25647
|
+
"method": "create",
|
|
25648
|
+
"summary": "Create share",
|
|
25649
|
+
"description": "Make one file readable by anyone holding a link, before sending the link to a person or embedding it. Name the object as resource {type, id}, with the file id from the File API. The response is 201 and is the only time link.web_url is returned; store it, because later reads omit it and a lost address means creating another share (the old one keeps working until you delete it). The link is anonymous and read-only. A type other than file answers 400 RESOURCE_TYPE_UNSUPPORTED, and a file that is missing or outside your organization answers 404 RESOURCE_NOT_FOUND.",
|
|
25650
|
+
"http": "POST",
|
|
25651
|
+
"path": "/share/v1/permissions",
|
|
25652
|
+
"streaming": "no",
|
|
25653
|
+
"pagination": false,
|
|
25654
|
+
"pathParams": [],
|
|
25655
|
+
"query": [],
|
|
25656
|
+
"body": {
|
|
25657
|
+
"required": true,
|
|
25658
|
+
"fields": [
|
|
25659
|
+
{
|
|
25660
|
+
"name": "resource",
|
|
25661
|
+
"type": "object",
|
|
25662
|
+
"required": true,
|
|
25663
|
+
"description": "The object a share exposes, named by a type and an id."
|
|
25664
|
+
},
|
|
25665
|
+
{
|
|
25666
|
+
"name": "expire_time",
|
|
25667
|
+
"type": "string",
|
|
25668
|
+
"required": false,
|
|
25669
|
+
"description": "ISO 8601 instant after which the link answers 410; omit or null for a link that never expires, and it must be in the future."
|
|
25670
|
+
},
|
|
25671
|
+
{
|
|
25672
|
+
"name": "prevents_download",
|
|
25673
|
+
"type": "boolean",
|
|
25674
|
+
"required": false,
|
|
25675
|
+
"description": "Ask viewers to open the content without a download prompt; a limit, not a guarantee, because anyone who can read it can save it. Defaults to false."
|
|
25676
|
+
}
|
|
25677
|
+
]
|
|
25678
|
+
}
|
|
25679
|
+
},
|
|
25680
|
+
{
|
|
25681
|
+
"resource": "share.permissions",
|
|
25682
|
+
"method": "delete",
|
|
25683
|
+
"summary": "Delete share",
|
|
25684
|
+
"description": "Take a link back so nobody can open it again. This revokes the share, the record stays readable with status revoked, and opening the link answers 410. Repeating the call on a revoked share is harmless and answers 204 again. Content addresses already signed when the link was opened expire on their own within five minutes. Take the id from shares.create or shares.list.",
|
|
25685
|
+
"http": "DELETE",
|
|
25686
|
+
"path": "/share/v1/permissions/{id}",
|
|
25687
|
+
"streaming": "no",
|
|
25688
|
+
"pagination": false,
|
|
25689
|
+
"pathParams": [
|
|
25690
|
+
{
|
|
25691
|
+
"name": "id",
|
|
25692
|
+
"sdkName": "id",
|
|
25693
|
+
"description": "Share id returned by shares.create or shares.list, in the form shr_ followed by 32 lowercase letters or digits; a link address is not accepted."
|
|
25694
|
+
}
|
|
25695
|
+
],
|
|
25696
|
+
"query": []
|
|
25697
|
+
},
|
|
25698
|
+
{
|
|
25699
|
+
"resource": "share.permissions",
|
|
25700
|
+
"method": "retrieve",
|
|
25701
|
+
"summary": "Retrieve share",
|
|
25702
|
+
"description": "Read one share to see whether its link is still active, when it expires, and how many times it was opened. Take the id from shares.create or shares.list. The record never includes link.web_url, because the address is shown once at creation. A share that does not exist or belongs to another organization answers 404 PERMISSION_NOT_FOUND.",
|
|
25703
|
+
"http": "GET",
|
|
25704
|
+
"path": "/share/v1/permissions/{id}",
|
|
25705
|
+
"streaming": "no",
|
|
25706
|
+
"pagination": false,
|
|
25707
|
+
"pathParams": [
|
|
25708
|
+
{
|
|
25709
|
+
"name": "id",
|
|
25710
|
+
"sdkName": "id",
|
|
25711
|
+
"description": "Share id returned by shares.create or shares.list, in the form shr_ followed by 32 lowercase letters or digits; a link address is not accepted."
|
|
25712
|
+
}
|
|
25713
|
+
],
|
|
25714
|
+
"query": []
|
|
25715
|
+
},
|
|
25353
25716
|
{
|
|
25354
25717
|
"resource": "studio.codexes",
|
|
25355
25718
|
"method": "list",
|