@deepraxis/sdk 0.1.1-dev.441fd40 → 0.1.1-dev.44bea19
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 +37 -1
- package/README.md +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +84 -5
- package/dist/generated/sdk.gen.js +235 -4
- package/dist/generated/types.gen.d.ts +2196 -309
- package/dist/helpers/browser-actions.d.ts +84 -0
- package/dist/helpers/browser-actions.js +141 -0
- package/dist/helpers/browser-connect.d.ts +14 -2
- package/dist/helpers/browser-connect.js +156 -4
- package/dist/helpers/browser-decisions.d.ts +15 -0
- package/dist/helpers/browser-decisions.js +14 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +20 -11
- package/dist/operations.generated.d.ts +355 -10
- package/dist/operations.generated.js +465 -10
- package/dist/resources.generated.d.ts +52 -0
- package/dist/resources.generated.js +21 -0
- package/package.json +1 -1
|
@@ -7366,6 +7366,28 @@ export const operations = [
|
|
|
7366
7366
|
]
|
|
7367
7367
|
}
|
|
7368
7368
|
},
|
|
7369
|
+
{
|
|
7370
|
+
"resource": "browser.sessions.actions",
|
|
7371
|
+
"method": "create",
|
|
7372
|
+
"summary": "执行页面动作",
|
|
7373
|
+
"description": "在会话的浏览器里执行一个页面动作并返回结果,由浏览器服务执行,客户端不需要 Playwright。同一会话的动作按到达顺序串行执行,单个动作 30 秒内完成。先用 snapshot 读取页面:元素带 [ref=eN],click、fill 按 ref 操作;ref 只在最近一次快照里有效,页面跳转后失效(409 ACTION_REF_STALE,重新 snapshot)。省略 tab 时作用于当前标签页。",
|
|
7374
|
+
"http": "POST",
|
|
7375
|
+
"path": "/browser/v1/sessions/{sessionId}/actions",
|
|
7376
|
+
"streaming": "no",
|
|
7377
|
+
"pagination": false,
|
|
7378
|
+
"pathParams": [
|
|
7379
|
+
{
|
|
7380
|
+
"name": "sessionId",
|
|
7381
|
+
"sdkName": "sessionId",
|
|
7382
|
+
"description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
|
|
7383
|
+
}
|
|
7384
|
+
],
|
|
7385
|
+
"query": [],
|
|
7386
|
+
"body": {
|
|
7387
|
+
"required": true,
|
|
7388
|
+
"fields": []
|
|
7389
|
+
}
|
|
7390
|
+
},
|
|
7369
7391
|
{
|
|
7370
7392
|
"resource": "browser.sessions",
|
|
7371
7393
|
"method": "retrieveDebug",
|
|
@@ -9909,7 +9931,7 @@ export const operations = [
|
|
|
9909
9931
|
"name": "to",
|
|
9910
9932
|
"type": "number",
|
|
9911
9933
|
"required": false,
|
|
9912
|
-
"description": "Range end for kind mix, in seconds on the project clock, exclusive. A range longer than 120 seconds is refused; request several ranges instead."
|
|
9934
|
+
"description": "Range end for kind mix, in seconds on the project clock, exclusive. An end up to 0.05 s past the timeline's end (a rounded duration) is read as the end; further past is refused. A range longer than 120 seconds is refused; request several ranges instead."
|
|
9913
9935
|
},
|
|
9914
9936
|
{
|
|
9915
9937
|
"name": "revision",
|
|
@@ -10063,7 +10085,7 @@ export const operations = [
|
|
|
10063
10085
|
"name": "folder",
|
|
10064
10086
|
"type": "string",
|
|
10065
10087
|
"required": false,
|
|
10066
|
-
"description": "Optional destination path within the bound media library; omitted uses its default folder."
|
|
10088
|
+
"description": "Optional destination path within the bound media library; omitted uses its default folder. Naming a binding or a folder also imports the finished video into that media library as an asset. Omit both and the export is a file only: read file.url to download it."
|
|
10067
10089
|
},
|
|
10068
10090
|
{
|
|
10069
10091
|
"name": "name",
|
|
@@ -10081,7 +10103,7 @@ export const operations = [
|
|
|
10081
10103
|
"name": "binding",
|
|
10082
10104
|
"type": "string",
|
|
10083
10105
|
"required": false,
|
|
10084
|
-
"description": "Writable binding name used as the export destination; omission uses default_upload."
|
|
10106
|
+
"description": "Writable binding name used as the export destination; omission uses default_upload. Naming a binding or a folder also imports the finished video into that media library as an asset. Omit both and the export is a file only; read file.url to download it."
|
|
10085
10107
|
},
|
|
10086
10108
|
{
|
|
10087
10109
|
"name": "revision",
|
|
@@ -10186,7 +10208,7 @@ export const operations = [
|
|
|
10186
10208
|
"resource": "cut.projects.renders",
|
|
10187
10209
|
"method": "create",
|
|
10188
10210
|
"summary": "Create draft range render",
|
|
10189
|
-
"description": "Render one interval of the timeline so you can hear or look at how that passage comes out, without publishing anything to a media library. Choose kind audio for the mixed soundtrack as an .m4a file, or kind video for a draft-quality .mp4 with picture and sound. from and to are seconds on the project clock and must satisfy 0 <= from < to, to <= the timeline duration, and to - from <= 120; a longer passage is requested in several 分段请求 ranges and joined by the caller. The result is a temporary file (purpose user_data) that expires 24 hours after it is stored and is never imported into a library, so it is not a deliverable and carries no cut-export tag. HTTP 202 only accepts the job; poll praxis.cut.renders.retrieve using the returned id until status is done or failed, then read url while it lasts. A draft also bills like a draft export, by rendered seconds. Each project runs at most 2 draft renders at a time, a budget separate from its exports; a third answers HTTP 429 CUT_BUSY and the same call succeeds once one finishes.",
|
|
10211
|
+
"description": "Render one interval of the timeline so you can hear or look at how that passage comes out, without publishing anything to a media library. Choose kind audio for the mixed soundtrack as an .m4a file, or kind video for a draft-quality .mp4 with picture and sound. from and to are seconds on the project clock and must satisfy 0 <= from < to, to <= the timeline duration (an end up to 0.05 s past it, a rounded duration, is read as the end), and to - from <= 120; a longer passage is requested in several 分段请求 ranges and joined by the caller. The result is a temporary file (purpose user_data) that expires 24 hours after it is stored and is never imported into a library, so it is not a deliverable and carries no cut-export tag. HTTP 202 only accepts the job; poll praxis.cut.renders.retrieve using the returned id until status is done or failed, then read url while it lasts. A draft also bills like a draft export, by rendered seconds. Each project runs at most 2 draft renders at a time, a budget separate from its exports; a third answers HTTP 429 CUT_BUSY and the same call succeeds once one finishes.",
|
|
10190
10212
|
"http": "POST",
|
|
10191
10213
|
"path": "/cut/v1/projects/{project_id}/renders",
|
|
10192
10214
|
"streaming": "no",
|
|
@@ -10374,7 +10396,7 @@ export const operations = [
|
|
|
10374
10396
|
"resource": "cut.projects",
|
|
10375
10397
|
"method": "execute",
|
|
10376
10398
|
"summary": "Execute editing script",
|
|
10377
|
-
"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- `AddTrack` — Add a video, audio or caption track.\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_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",
|
|
10399
|
+
"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- `AddTrack` — Add a video, audio or caption track.\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",
|
|
10378
10400
|
"http": "POST",
|
|
10379
10401
|
"path": "/cut/v1/projects/{project_id}:execute",
|
|
10380
10402
|
"streaming": "no",
|
|
@@ -13419,6 +13441,41 @@ export const operations = [
|
|
|
13419
13441
|
]
|
|
13420
13442
|
}
|
|
13421
13443
|
},
|
|
13444
|
+
{
|
|
13445
|
+
"resource": "media.libraries",
|
|
13446
|
+
"method": "retrieveDefault",
|
|
13447
|
+
"summary": "Get default library",
|
|
13448
|
+
"description": "Return this organization’s default library. Calling ensures the organization’s default library exists (ADR-093): the first call creates it and later calls return the same library, so this is the method to call before writing when no library id is known. Generated and edited media land here when no library is named. The path segment {lib} accepts the literal default, which resolves to this library before the credential check — so an agent that has never listed libraries can still write to the right place. Returns the same Library object as libraries.retrieve; a credential bound to one library reaches this only when that binding covers the default library.",
|
|
13449
|
+
"http": "GET",
|
|
13450
|
+
"path": "/media/v1/libraries/default",
|
|
13451
|
+
"streaming": "no",
|
|
13452
|
+
"pagination": false,
|
|
13453
|
+
"pathParams": [],
|
|
13454
|
+
"query": []
|
|
13455
|
+
},
|
|
13456
|
+
{
|
|
13457
|
+
"resource": "media.libraries",
|
|
13458
|
+
"method": "setDefault",
|
|
13459
|
+
"summary": "Set default library",
|
|
13460
|
+
"description": "Point this organization’s default library at an existing library. Calling ensures the organization’s default library exists (ADR-093): the path is resolved before the credential check, so a first call creates the default library when there is none and then repoints it. The path segment {lib} accepts the literal default, which resolves to this library before the credential check. Supply library_id from library creation or listing; the library must be active and belong to the organization. This changes where library-less generation and uploads land across the whole organization, so it affects other callers as well as this one. It does not move or copy any asset — assets already in the previous default library stay there. Returns the library now set as the default. Deleting the default library is refused with LIBRARY_IS_DEFAULT until another library is made the default.",
|
|
13461
|
+
"http": "PUT",
|
|
13462
|
+
"path": "/media/v1/libraries/default",
|
|
13463
|
+
"streaming": "no",
|
|
13464
|
+
"pagination": false,
|
|
13465
|
+
"pathParams": [],
|
|
13466
|
+
"query": [],
|
|
13467
|
+
"body": {
|
|
13468
|
+
"required": true,
|
|
13469
|
+
"fields": [
|
|
13470
|
+
{
|
|
13471
|
+
"name": "library_id",
|
|
13472
|
+
"type": "string",
|
|
13473
|
+
"required": true,
|
|
13474
|
+
"description": "Identifier of a library belonging to the caller."
|
|
13475
|
+
}
|
|
13476
|
+
]
|
|
13477
|
+
}
|
|
13478
|
+
},
|
|
13422
13479
|
{
|
|
13423
13480
|
"resource": "media.libraries",
|
|
13424
13481
|
"method": "delete",
|
|
@@ -13543,6 +13600,25 @@ export const operations = [
|
|
|
13543
13600
|
"required": false,
|
|
13544
13601
|
"description": "image, video (including audio), raw; auto is accepted by Upload actions only, and listing with auto returns 400."
|
|
13545
13602
|
},
|
|
13603
|
+
{
|
|
13604
|
+
"name": "material_type",
|
|
13605
|
+
"type": "string",
|
|
13606
|
+
"enum": [
|
|
13607
|
+
"image",
|
|
13608
|
+
"video",
|
|
13609
|
+
"audio",
|
|
13610
|
+
"voice",
|
|
13611
|
+
"sticker",
|
|
13612
|
+
"font",
|
|
13613
|
+
"text_style",
|
|
13614
|
+
"text_template",
|
|
13615
|
+
"animation_preset",
|
|
13616
|
+
"lut",
|
|
13617
|
+
"transition_map"
|
|
13618
|
+
],
|
|
13619
|
+
"required": false,
|
|
13620
|
+
"description": "Filter assets to one kind of material, independent of the stored resource_type. Omit to list every material type. Assets stored before this field existed match no material_type filter."
|
|
13621
|
+
},
|
|
13546
13622
|
{
|
|
13547
13623
|
"name": "cursor",
|
|
13548
13624
|
"type": "string",
|
|
@@ -13949,6 +14025,29 @@ export const operations = [
|
|
|
13949
14025
|
]
|
|
13950
14026
|
}
|
|
13951
14027
|
},
|
|
14028
|
+
{
|
|
14029
|
+
"resource": "media.assets",
|
|
14030
|
+
"method": "lineage",
|
|
14031
|
+
"summary": "Get asset lineage",
|
|
14032
|
+
"description": "Read the whole edit tree containing one asset, so a caller sees what it was edited from and what was edited from it. 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 response names the root the tree descends from, the asset asked about, and every step between them, each with the operation, prompt and creation time that produced it. Deleted assets stay in the tree, marked deleted, so the chain stays connected after cleanup. This is a read: it starts no processing and changes no asset. Example: GET /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/lineage.",
|
|
14033
|
+
"http": "GET",
|
|
14034
|
+
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/lineage",
|
|
14035
|
+
"streaming": "no",
|
|
14036
|
+
"pagination": false,
|
|
14037
|
+
"pathParams": [
|
|
14038
|
+
{
|
|
14039
|
+
"name": "library_id",
|
|
14040
|
+
"sdkName": "library_id",
|
|
14041
|
+
"description": "Library ID returned by creation."
|
|
14042
|
+
},
|
|
14043
|
+
{
|
|
14044
|
+
"name": "asset_id",
|
|
14045
|
+
"sdkName": "asset_id",
|
|
14046
|
+
"description": "32-character asset ID."
|
|
14047
|
+
}
|
|
14048
|
+
],
|
|
14049
|
+
"query": []
|
|
14050
|
+
},
|
|
13952
14051
|
{
|
|
13953
14052
|
"resource": "media.libraries.assets.reprocess",
|
|
13954
14053
|
"method": "create",
|
|
@@ -14575,7 +14674,7 @@ export const operations = [
|
|
|
14575
14674
|
"name": "top_k",
|
|
14576
14675
|
"type": "integer",
|
|
14577
14676
|
"required": false,
|
|
14578
|
-
"description": "Maximum search hits, from 1 to 50; defaults to 20."
|
|
14677
|
+
"description": "Maximum search hits, from 1 to 50; defaults to 20. top_k takes effect and bounds how many distinct hits come back, counting collapsed duplicates as one hit."
|
|
14579
14678
|
},
|
|
14580
14679
|
{
|
|
14581
14680
|
"name": "mode",
|
|
@@ -14586,6 +14685,25 @@ export const operations = [
|
|
|
14586
14685
|
],
|
|
14587
14686
|
"required": false,
|
|
14588
14687
|
"description": "Ranking mode: hybrid combines semantic and keyword matches; semantic uses vector similarity only. Defaults to hybrid."
|
|
14688
|
+
},
|
|
14689
|
+
{
|
|
14690
|
+
"name": "material_type",
|
|
14691
|
+
"type": "string",
|
|
14692
|
+
"enum": [
|
|
14693
|
+
"image",
|
|
14694
|
+
"video",
|
|
14695
|
+
"audio",
|
|
14696
|
+
"voice",
|
|
14697
|
+
"sticker",
|
|
14698
|
+
"font",
|
|
14699
|
+
"text_style",
|
|
14700
|
+
"text_template",
|
|
14701
|
+
"animation_preset",
|
|
14702
|
+
"lut",
|
|
14703
|
+
"transition_map"
|
|
14704
|
+
],
|
|
14705
|
+
"required": false,
|
|
14706
|
+
"description": "What this asset is as a reusable material, as opposed to resource_type (its stored file category). Omitted on assets stored before this field existed and on raw assets that are not materials."
|
|
14589
14707
|
}
|
|
14590
14708
|
]
|
|
14591
14709
|
}
|
|
@@ -14698,7 +14816,7 @@ export const operations = [
|
|
|
14698
14816
|
"name": "top_k",
|
|
14699
14817
|
"type": "integer",
|
|
14700
14818
|
"required": false,
|
|
14701
|
-
"description": "Maximum search hits, from 1 to 50; defaults to 20."
|
|
14819
|
+
"description": "Maximum search hits, from 1 to 50; defaults to 20. top_k takes effect and bounds how many distinct hits come back, counting collapsed duplicates as one hit."
|
|
14702
14820
|
},
|
|
14703
14821
|
{
|
|
14704
14822
|
"name": "mode",
|
|
@@ -14709,6 +14827,25 @@ export const operations = [
|
|
|
14709
14827
|
],
|
|
14710
14828
|
"required": false,
|
|
14711
14829
|
"description": "Ranking mode: hybrid combines semantic and keyword matches; semantic uses vector similarity only. Defaults to hybrid."
|
|
14830
|
+
},
|
|
14831
|
+
{
|
|
14832
|
+
"name": "material_type",
|
|
14833
|
+
"type": "string",
|
|
14834
|
+
"enum": [
|
|
14835
|
+
"image",
|
|
14836
|
+
"video",
|
|
14837
|
+
"audio",
|
|
14838
|
+
"voice",
|
|
14839
|
+
"sticker",
|
|
14840
|
+
"font",
|
|
14841
|
+
"text_style",
|
|
14842
|
+
"text_template",
|
|
14843
|
+
"animation_preset",
|
|
14844
|
+
"lut",
|
|
14845
|
+
"transition_map"
|
|
14846
|
+
],
|
|
14847
|
+
"required": false,
|
|
14848
|
+
"description": "What this asset is as a reusable material, as opposed to resource_type (its stored file category). Omitted on assets stored before this field existed and on raw assets that are not materials."
|
|
14712
14849
|
}
|
|
14713
14850
|
]
|
|
14714
14851
|
}
|
|
@@ -17187,7 +17324,7 @@ export const operations = [
|
|
|
17187
17324
|
"resource": "ontology.nodes",
|
|
17188
17325
|
"method": "create",
|
|
17189
17326
|
"summary": "Create node",
|
|
17190
|
-
"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
|
|
17327
|
+
"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; it does not give any agent a memory.",
|
|
17191
17328
|
"http": "POST",
|
|
17192
17329
|
"path": "/ontology/v1/nodes",
|
|
17193
17330
|
"streaming": "no",
|
|
@@ -17342,6 +17479,60 @@ export const operations = [
|
|
|
17342
17479
|
]
|
|
17343
17480
|
}
|
|
17344
17481
|
},
|
|
17482
|
+
{
|
|
17483
|
+
"resource": "ontology.nodes",
|
|
17484
|
+
"method": "retrieveNeighborhood",
|
|
17485
|
+
"summary": "Retrieve neighborhood",
|
|
17486
|
+
"description": "Load the subgraph around one node instead of the whole graph — the read to use when a screen or an agent needs the context of one entity. Returns the start node, every node within depth hops of it, the relations whose both ends are in that set, and truncated true when the node limit cut the walk short. direction chooses which way relations are followed; as_of and include_invalid read the graph as those parameters do elsewhere. Visibility is exactly nodes.retrieve's — a node you may reach but not read comes back restricted with its name only, and relations touching it are withheld, so this read never reaches further than a node read does. The node id comes from nodes.list, nodes.create or a changeset; an unknown one answers ONTOLOGY_NODE_NOT_FOUND, the same answer nodes.retrieve gives.",
|
|
17487
|
+
"http": "GET",
|
|
17488
|
+
"path": "/ontology/v1/nodes/{node_id}/neighborhood",
|
|
17489
|
+
"streaming": "no",
|
|
17490
|
+
"pagination": false,
|
|
17491
|
+
"pathParams": [
|
|
17492
|
+
{
|
|
17493
|
+
"name": "node_id",
|
|
17494
|
+
"sdkName": "node_id",
|
|
17495
|
+
"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."
|
|
17496
|
+
}
|
|
17497
|
+
],
|
|
17498
|
+
"query": [
|
|
17499
|
+
{
|
|
17500
|
+
"name": "depth",
|
|
17501
|
+
"type": "integer",
|
|
17502
|
+
"required": false,
|
|
17503
|
+
"description": "How many hops from the given node to walk, 1 to 3; defaults to 1. A value outside that range is refused 400 rather than clamped, so the answer is never a smaller graph than the one asked for."
|
|
17504
|
+
},
|
|
17505
|
+
{
|
|
17506
|
+
"name": "limit",
|
|
17507
|
+
"type": "integer",
|
|
17508
|
+
"required": false,
|
|
17509
|
+
"description": "Maximum nodes to return, 1 to 500; defaults to 200. When the walk reaches this many nodes it stops and reports truncated true, so treat a truncated answer as a sample of the neighborhood rather than all of it. This bound is not the list routes' page size, and there is no cursor to resume from."
|
|
17510
|
+
},
|
|
17511
|
+
{
|
|
17512
|
+
"name": "direction",
|
|
17513
|
+
"type": "string",
|
|
17514
|
+
"enum": [
|
|
17515
|
+
"out",
|
|
17516
|
+
"in",
|
|
17517
|
+
"both"
|
|
17518
|
+
],
|
|
17519
|
+
"required": false,
|
|
17520
|
+
"description": "Which way to follow relations from each node walked; out follows relations the node is the source of, in follows those it is the target of, both follows either. Defaults to both. Relations between two returned nodes are included whichever direction brought the second node in."
|
|
17521
|
+
},
|
|
17522
|
+
{
|
|
17523
|
+
"name": "as_of",
|
|
17524
|
+
"type": "string",
|
|
17525
|
+
"required": false,
|
|
17526
|
+
"description": "ISO 8601 timestamp; walk the graph as it was then — a node recorded later is absent and a relation invalidated since still counts. Omit to read current state."
|
|
17527
|
+
},
|
|
17528
|
+
{
|
|
17529
|
+
"name": "include_invalid",
|
|
17530
|
+
"type": "boolean",
|
|
17531
|
+
"required": false,
|
|
17532
|
+
"description": "Set true to walk relations whose invalid_at has passed, which is how a fact that stopped being true stays reachable. Omit or false to walk currently valid relations only."
|
|
17533
|
+
}
|
|
17534
|
+
]
|
|
17535
|
+
},
|
|
17345
17536
|
{
|
|
17346
17537
|
"resource": "ontology.relations",
|
|
17347
17538
|
"method": "list",
|
|
@@ -17407,7 +17598,7 @@ export const operations = [
|
|
|
17407
17598
|
"resource": "ontology.relations",
|
|
17408
17599
|
"method": "create",
|
|
17409
17600
|
"summary": "Create relation",
|
|
17410
|
-
"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
|
|
17601
|
+
"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; it does not give any agent a memory.",
|
|
17411
17602
|
"http": "POST",
|
|
17412
17603
|
"path": "/ontology/v1/relations",
|
|
17413
17604
|
"streaming": "no",
|
|
@@ -17519,7 +17710,7 @@ export const operations = [
|
|
|
17519
17710
|
"resource": "ontology.search",
|
|
17520
17711
|
"method": "create",
|
|
17521
17712
|
"summary": "Search nodes",
|
|
17522
|
-
"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
|
|
17713
|
+
"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's recall, which reads the graph from that agent's own viewpoint inside its sessions.",
|
|
17523
17714
|
"http": "POST",
|
|
17524
17715
|
"path": "/ontology/v1/search",
|
|
17525
17716
|
"streaming": "no",
|
|
@@ -21642,6 +21833,64 @@ export const operations = [
|
|
|
21642
21833
|
],
|
|
21643
21834
|
"query": []
|
|
21644
21835
|
},
|
|
21836
|
+
{
|
|
21837
|
+
"resource": "studio.works.drafts.renditions",
|
|
21838
|
+
"method": "create",
|
|
21839
|
+
"summary": "Create a rendition of a draft for a platform",
|
|
21840
|
+
"description": "Create a rendition: the form of one draft that a platform receives, such as a Xiaohongshu card set, a DOCX file or a Markdown file. Read the platform first with the platform call and pass its versioned key; pass a theme only to override the platform's default layout. Pass render true to render in the same call and read render_state and issues in the answer; without it the rendition starts as pending and the render call produces it. Rendering a Xiaohongshu card set is billed by Browser Rendering time (meter browser_ms, product studio-render); DOCX and Markdown renditions are not billed. A draft with no body renders as invalid with a draft_empty issue, and an unavailable render service leaves render_state failed with a render_unavailable issue, so repeat the render call later. Send a request_id to make a repeated call return the first rendition instead of creating another. Next, publish the rendition to export it.",
|
|
21841
|
+
"http": "POST",
|
|
21842
|
+
"path": "/studio/v1/works/{work}/drafts/{draft}/renditions",
|
|
21843
|
+
"streaming": "no",
|
|
21844
|
+
"pagination": false,
|
|
21845
|
+
"pathParams": [
|
|
21846
|
+
{
|
|
21847
|
+
"name": "work",
|
|
21848
|
+
"sdkName": "work",
|
|
21849
|
+
"description": "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
|
|
21850
|
+
},
|
|
21851
|
+
{
|
|
21852
|
+
"name": "draft",
|
|
21853
|
+
"sdkName": "draft",
|
|
21854
|
+
"description": "Draft being addressed, either its in-work key such as novel or its drf_ identifier; a key renamed earlier still resolves through its previous value."
|
|
21855
|
+
}
|
|
21856
|
+
],
|
|
21857
|
+
"query": [],
|
|
21858
|
+
"body": {
|
|
21859
|
+
"required": true,
|
|
21860
|
+
"fields": [
|
|
21861
|
+
{
|
|
21862
|
+
"name": "platform",
|
|
21863
|
+
"type": "string",
|
|
21864
|
+
"required": true,
|
|
21865
|
+
"description": "Versioned platform key from the platform list. Export platforms today are markdown@1, docx@1 and xiaohongshu@1; a platform that only publishes to an account answers PLATFORM_NOT_AVAILABLE."
|
|
21866
|
+
},
|
|
21867
|
+
{
|
|
21868
|
+
"name": "theme",
|
|
21869
|
+
"type": "string",
|
|
21870
|
+
"required": false,
|
|
21871
|
+
"description": "Theme to render with, a thm_ identifier or a built-in key from the theme list; omit it to use the platform default."
|
|
21872
|
+
},
|
|
21873
|
+
{
|
|
21874
|
+
"name": "settings",
|
|
21875
|
+
"type": "object",
|
|
21876
|
+
"required": false,
|
|
21877
|
+
"description": "Per-rendition settings; each platform reads only the settings that apply to it and ignores the rest."
|
|
21878
|
+
},
|
|
21879
|
+
{
|
|
21880
|
+
"name": "render",
|
|
21881
|
+
"type": "boolean",
|
|
21882
|
+
"required": false,
|
|
21883
|
+
"description": "Whether to render in the same call. True returns a rendition that is already rendered, invalid or failed; false or omitted returns it pending, to be rendered by the render operation."
|
|
21884
|
+
},
|
|
21885
|
+
{
|
|
21886
|
+
"name": "request_id",
|
|
21887
|
+
"type": "string",
|
|
21888
|
+
"required": false,
|
|
21889
|
+
"description": "Caller-chosen key that makes a repeated create return the first rendition instead of making another; use a new value for each distinct rendition."
|
|
21890
|
+
}
|
|
21891
|
+
]
|
|
21892
|
+
}
|
|
21893
|
+
},
|
|
21645
21894
|
{
|
|
21646
21895
|
"resource": "studio.works.drafts",
|
|
21647
21896
|
"method": "retrieveReview",
|
|
@@ -21895,6 +22144,212 @@ export const operations = [
|
|
|
21895
22144
|
]
|
|
21896
22145
|
}
|
|
21897
22146
|
},
|
|
22147
|
+
{
|
|
22148
|
+
"resource": "studio.works.renditions",
|
|
22149
|
+
"method": "list",
|
|
22150
|
+
"summary": "List the renditions of a work",
|
|
22151
|
+
"description": "List the renditions of one work, each with its platform, render state, stale flag and publish state. Pass draft to see only the renditions of one draft. Use it to find the rendition to publish or to render again, and read stale before exporting: a stale rendition was built from an older draft and cannot be exported until the render call has rebuilt it. The answer is one page; keep following next_page_token while it is present.",
|
|
22152
|
+
"http": "GET",
|
|
22153
|
+
"path": "/studio/v1/works/{work}/renditions",
|
|
22154
|
+
"streaming": "no",
|
|
22155
|
+
"pagination": false,
|
|
22156
|
+
"pathParams": [
|
|
22157
|
+
{
|
|
22158
|
+
"name": "work",
|
|
22159
|
+
"sdkName": "work",
|
|
22160
|
+
"description": "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
|
|
22161
|
+
}
|
|
22162
|
+
],
|
|
22163
|
+
"query": [
|
|
22164
|
+
{
|
|
22165
|
+
"name": "draft",
|
|
22166
|
+
"type": "string",
|
|
22167
|
+
"required": false,
|
|
22168
|
+
"description": "Draft key such as novel or its drf_ identifier; when given, only the renditions of that draft are returned. Omit it to list the renditions of every draft in the work."
|
|
22169
|
+
},
|
|
22170
|
+
{
|
|
22171
|
+
"name": "page_size",
|
|
22172
|
+
"type": "integer",
|
|
22173
|
+
"required": false,
|
|
22174
|
+
"description": "How many items this page returns, 1 to 100; omitted uses the service default. Treat the answer as one page, not the whole set, and keep following next_page_token while it is present."
|
|
22175
|
+
},
|
|
22176
|
+
{
|
|
22177
|
+
"name": "page_token",
|
|
22178
|
+
"type": "string",
|
|
22179
|
+
"required": false,
|
|
22180
|
+
"description": "Cursor from the previous answer's next_page_token; it is opaque, so pass it back unchanged and never build one from an id or an offset."
|
|
22181
|
+
}
|
|
22182
|
+
]
|
|
22183
|
+
},
|
|
22184
|
+
{
|
|
22185
|
+
"resource": "studio.works.renditions",
|
|
22186
|
+
"method": "delete",
|
|
22187
|
+
"summary": "Delete a rendition",
|
|
22188
|
+
"description": "Delete a rendition and stop listing it. The draft it was built from is untouched, and a new rendition can be created from it at any time. Files already downloaded from an earlier export are not affected. Use it to clear a failed or abandoned rendition; to refresh one, call the render operation instead.",
|
|
22189
|
+
"http": "DELETE",
|
|
22190
|
+
"path": "/studio/v1/works/{work}/renditions/{rendition}",
|
|
22191
|
+
"streaming": "no",
|
|
22192
|
+
"pagination": false,
|
|
22193
|
+
"pathParams": [
|
|
22194
|
+
{
|
|
22195
|
+
"name": "work",
|
|
22196
|
+
"sdkName": "work",
|
|
22197
|
+
"description": "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
|
|
22198
|
+
},
|
|
22199
|
+
{
|
|
22200
|
+
"name": "rendition",
|
|
22201
|
+
"sdkName": "rendition",
|
|
22202
|
+
"description": "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer."
|
|
22203
|
+
}
|
|
22204
|
+
],
|
|
22205
|
+
"query": []
|
|
22206
|
+
},
|
|
22207
|
+
{
|
|
22208
|
+
"resource": "studio.works.renditions",
|
|
22209
|
+
"method": "retrieve",
|
|
22210
|
+
"summary": "Read one rendition",
|
|
22211
|
+
"description": "Read one rendition in full: its render state, the validation issues the render found, the parts (one per card page or thread post), the files it produced and its publish state. Call it after create, render or publish to see the outcome, because a render that finished invalid or failed is reported here and not as an HTTP error. stale is true when the draft has changed since source_revision; call the render operation before exporting a stale rendition.",
|
|
22212
|
+
"http": "GET",
|
|
22213
|
+
"path": "/studio/v1/works/{work}/renditions/{rendition}",
|
|
22214
|
+
"streaming": "no",
|
|
22215
|
+
"pagination": false,
|
|
22216
|
+
"pathParams": [
|
|
22217
|
+
{
|
|
22218
|
+
"name": "work",
|
|
22219
|
+
"sdkName": "work",
|
|
22220
|
+
"description": "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
|
|
22221
|
+
},
|
|
22222
|
+
{
|
|
22223
|
+
"name": "rendition",
|
|
22224
|
+
"sdkName": "rendition",
|
|
22225
|
+
"description": "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer."
|
|
22226
|
+
}
|
|
22227
|
+
],
|
|
22228
|
+
"query": []
|
|
22229
|
+
},
|
|
22230
|
+
{
|
|
22231
|
+
"resource": "studio.works.renditions",
|
|
22232
|
+
"method": "update",
|
|
22233
|
+
"summary": "Change the theme or settings of a rendition",
|
|
22234
|
+
"description": "Change a rendition's theme or settings. Send update_mask naming exactly the fields you change, such as theme or settings; a field left out keeps its value. The produced files are not rebuilt by this call, so call the render operation afterwards to apply the change. A rendition whose export or publish has started is locked and answers RENDITION_PUBLISH_LOCKED; create a new rendition for new content.",
|
|
22235
|
+
"http": "PATCH",
|
|
22236
|
+
"path": "/studio/v1/works/{work}/renditions/{rendition}",
|
|
22237
|
+
"streaming": "no",
|
|
22238
|
+
"pagination": false,
|
|
22239
|
+
"pathParams": [
|
|
22240
|
+
{
|
|
22241
|
+
"name": "work",
|
|
22242
|
+
"sdkName": "work",
|
|
22243
|
+
"description": "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
|
|
22244
|
+
},
|
|
22245
|
+
{
|
|
22246
|
+
"name": "rendition",
|
|
22247
|
+
"sdkName": "rendition",
|
|
22248
|
+
"description": "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer."
|
|
22249
|
+
}
|
|
22250
|
+
],
|
|
22251
|
+
"query": [],
|
|
22252
|
+
"body": {
|
|
22253
|
+
"required": true,
|
|
22254
|
+
"fields": [
|
|
22255
|
+
{
|
|
22256
|
+
"name": "update_mask",
|
|
22257
|
+
"type": "array",
|
|
22258
|
+
"itemType": "string",
|
|
22259
|
+
"required": true,
|
|
22260
|
+
"description": "Field paths this call changes: theme, settings or both; a field left out keeps its value."
|
|
22261
|
+
},
|
|
22262
|
+
{
|
|
22263
|
+
"name": "theme",
|
|
22264
|
+
"type": "string",
|
|
22265
|
+
"required": false,
|
|
22266
|
+
"description": "New theme, a thm_ identifier or a built-in key, used when theme is named in the update mask; render again to apply it."
|
|
22267
|
+
},
|
|
22268
|
+
{
|
|
22269
|
+
"name": "settings",
|
|
22270
|
+
"type": "object",
|
|
22271
|
+
"required": false,
|
|
22272
|
+
"description": "Per-rendition settings; each platform reads only the settings that apply to it and ignores the rest."
|
|
22273
|
+
}
|
|
22274
|
+
]
|
|
22275
|
+
}
|
|
22276
|
+
},
|
|
22277
|
+
{
|
|
22278
|
+
"resource": "studio.works.renditions",
|
|
22279
|
+
"method": "retrieveContent",
|
|
22280
|
+
"summary": "Get a download URL for a rendition file",
|
|
22281
|
+
"description": "Get a signed, short-lived URL to download what a rendition produced. Without part it points to the rendition's own first file: the ZIP of pages for a card rendition, the DOCX for docx@1. With part it points to that part's first file, such as one card PNG; a part that has no file, or a rendition not rendered yet, answers RENDITION_NOT_RENDERED, and an index no part has answers INVALID_PARAMS. Call it after a successful render or export, download the url before expire_time, and call again for a fresh one when it has expired. The URL is a credential: do not store or share it.",
|
|
22282
|
+
"http": "GET",
|
|
22283
|
+
"path": "/studio/v1/works/{work}/renditions/{rendition}/content",
|
|
22284
|
+
"streaming": "no",
|
|
22285
|
+
"pagination": false,
|
|
22286
|
+
"pathParams": [
|
|
22287
|
+
{
|
|
22288
|
+
"name": "work",
|
|
22289
|
+
"sdkName": "work",
|
|
22290
|
+
"description": "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
|
|
22291
|
+
},
|
|
22292
|
+
{
|
|
22293
|
+
"name": "rendition",
|
|
22294
|
+
"sdkName": "rendition",
|
|
22295
|
+
"description": "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer."
|
|
22296
|
+
}
|
|
22297
|
+
],
|
|
22298
|
+
"query": [
|
|
22299
|
+
{
|
|
22300
|
+
"name": "part",
|
|
22301
|
+
"type": "integer",
|
|
22302
|
+
"required": false,
|
|
22303
|
+
"description": "Index of the part to download, the index value of an entry in the rendition's parts list; omit it to get the rendition's own first file."
|
|
22304
|
+
}
|
|
22305
|
+
]
|
|
22306
|
+
},
|
|
22307
|
+
{
|
|
22308
|
+
"resource": "studio.works.renditions",
|
|
22309
|
+
"method": "publish",
|
|
22310
|
+
"summary": "Export a rendition",
|
|
22311
|
+
"description": "Export a rendition for the platforms that deliver a file: markdown@1, docx@1 and xiaohongshu@1 end with publish.state exported, and a card rendition gains one ZIP of its pages in files. Publishing to a platform account such as X or WeChat is not available yet and answers PLATFORM_NOT_AVAILABLE; export instead. The rendition must be rendered, not stale and without error-level issues: RENDITION_NOT_RENDERED means call the render operation first, RENDITION_STALE means the draft changed so render again, RENDITION_INVALID means fix the draft problems listed in issues and render again. Exporting the same rendition twice at once answers REVISION_CONFLICT; retry shortly. Next, call the content operation to download the file.",
|
|
22312
|
+
"http": "POST",
|
|
22313
|
+
"path": "/studio/v1/works/{work}/renditions/{rendition}:publish",
|
|
22314
|
+
"streaming": "no",
|
|
22315
|
+
"pagination": false,
|
|
22316
|
+
"pathParams": [
|
|
22317
|
+
{
|
|
22318
|
+
"name": "work",
|
|
22319
|
+
"sdkName": "work",
|
|
22320
|
+
"description": "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
|
|
22321
|
+
},
|
|
22322
|
+
{
|
|
22323
|
+
"name": "rendition",
|
|
22324
|
+
"sdkName": "rendition",
|
|
22325
|
+
"description": "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer."
|
|
22326
|
+
}
|
|
22327
|
+
],
|
|
22328
|
+
"query": []
|
|
22329
|
+
},
|
|
22330
|
+
{
|
|
22331
|
+
"resource": "studio.works.renditions",
|
|
22332
|
+
"method": "render",
|
|
22333
|
+
"summary": "Render a rendition again from the current draft",
|
|
22334
|
+
"description": "Render the rendition from the draft as it is now, replacing its parts and files and clearing stale. Call it after the draft changed, after a theme or settings change, or after a failed render. The answer carries render_state: rendered, invalid when the draft has an error-level issue (for example draft_empty on a draft with no body), or failed when the render service was unavailable (issue render_unavailable; repeat later). A render does not fail the HTTP call for those outcomes, so read render_state and issues. Rendering a Xiaohongshu card set is billed by Browser Rendering time (meter browser_ms, product studio-render); DOCX and Markdown are not billed. Rendering the same rendition twice at once answers REVISION_CONFLICT; retry shortly. Next, publish the rendition to export it.",
|
|
22335
|
+
"http": "POST",
|
|
22336
|
+
"path": "/studio/v1/works/{work}/renditions/{rendition}:render",
|
|
22337
|
+
"streaming": "no",
|
|
22338
|
+
"pagination": false,
|
|
22339
|
+
"pathParams": [
|
|
22340
|
+
{
|
|
22341
|
+
"name": "work",
|
|
22342
|
+
"sdkName": "work",
|
|
22343
|
+
"description": "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
|
|
22344
|
+
},
|
|
22345
|
+
{
|
|
22346
|
+
"name": "rendition",
|
|
22347
|
+
"sdkName": "rendition",
|
|
22348
|
+
"description": "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer."
|
|
22349
|
+
}
|
|
22350
|
+
],
|
|
22351
|
+
"query": []
|
|
22352
|
+
},
|
|
21898
22353
|
{
|
|
21899
22354
|
"resource": "studio.works.units",
|
|
21900
22355
|
"method": "retrieve",
|