@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
|
@@ -5968,6 +5968,25 @@ export declare const operations: readonly [{
|
|
|
5968
5968
|
readonly description: "会话操作指令;REQUEST_RELEASE 表示请求关闭浏览器并结束会话。";
|
|
5969
5969
|
}];
|
|
5970
5970
|
};
|
|
5971
|
+
}, {
|
|
5972
|
+
readonly resource: "browser.sessions.actions";
|
|
5973
|
+
readonly method: "create";
|
|
5974
|
+
readonly summary: "执行页面动作";
|
|
5975
|
+
readonly description: "在会话的浏览器里执行一个页面动作并返回结果,由浏览器服务执行,客户端不需要 Playwright。同一会话的动作按到达顺序串行执行,单个动作 30 秒内完成。先用 snapshot 读取页面:元素带 [ref=eN],click、fill 按 ref 操作;ref 只在最近一次快照里有效,页面跳转后失效(409 ACTION_REF_STALE,重新 snapshot)。省略 tab 时作用于当前标签页。";
|
|
5976
|
+
readonly http: "POST";
|
|
5977
|
+
readonly path: "/browser/v1/sessions/{sessionId}/actions";
|
|
5978
|
+
readonly streaming: "no";
|
|
5979
|
+
readonly pagination: false;
|
|
5980
|
+
readonly pathParams: readonly [{
|
|
5981
|
+
readonly name: "sessionId";
|
|
5982
|
+
readonly sdkName: "sessionId";
|
|
5983
|
+
readonly description: "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。";
|
|
5984
|
+
}];
|
|
5985
|
+
readonly query: readonly [];
|
|
5986
|
+
readonly body: {
|
|
5987
|
+
readonly required: true;
|
|
5988
|
+
readonly fields: readonly [];
|
|
5989
|
+
};
|
|
5971
5990
|
}, {
|
|
5972
5991
|
readonly resource: "browser.sessions";
|
|
5973
5992
|
readonly method: "retrieveDebug";
|
|
@@ -7999,7 +8018,7 @@ export declare const operations: readonly [{
|
|
|
7999
8018
|
readonly name: "to";
|
|
8000
8019
|
readonly type: "number";
|
|
8001
8020
|
readonly required: false;
|
|
8002
|
-
readonly 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.";
|
|
8021
|
+
readonly 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.";
|
|
8003
8022
|
}, {
|
|
8004
8023
|
readonly name: "revision";
|
|
8005
8024
|
readonly type: "integer";
|
|
@@ -8126,7 +8145,7 @@ export declare const operations: readonly [{
|
|
|
8126
8145
|
readonly name: "folder";
|
|
8127
8146
|
readonly type: "string";
|
|
8128
8147
|
readonly required: false;
|
|
8129
|
-
readonly description: "Optional destination path within the bound media library; omitted uses its default folder.";
|
|
8148
|
+
readonly 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.";
|
|
8130
8149
|
}, {
|
|
8131
8150
|
readonly name: "name";
|
|
8132
8151
|
readonly type: "string";
|
|
@@ -8141,7 +8160,7 @@ export declare const operations: readonly [{
|
|
|
8141
8160
|
readonly name: "binding";
|
|
8142
8161
|
readonly type: "string";
|
|
8143
8162
|
readonly required: false;
|
|
8144
|
-
readonly description: "Writable binding name used as the export destination; omission uses default_upload.";
|
|
8163
|
+
readonly 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.";
|
|
8145
8164
|
}, {
|
|
8146
8165
|
readonly name: "revision";
|
|
8147
8166
|
readonly type: "integer";
|
|
@@ -8227,7 +8246,7 @@ export declare const operations: readonly [{
|
|
|
8227
8246
|
readonly resource: "cut.projects.renders";
|
|
8228
8247
|
readonly method: "create";
|
|
8229
8248
|
readonly summary: "Create draft range render";
|
|
8230
|
-
readonly 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.";
|
|
8249
|
+
readonly 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.";
|
|
8231
8250
|
readonly http: "POST";
|
|
8232
8251
|
readonly path: "/cut/v1/projects/{project_id}/renders";
|
|
8233
8252
|
readonly streaming: "no";
|
|
@@ -8377,7 +8396,7 @@ export declare const operations: readonly [{
|
|
|
8377
8396
|
readonly resource: "cut.projects";
|
|
8378
8397
|
readonly method: "execute";
|
|
8379
8398
|
readonly summary: "Execute editing script";
|
|
8380
|
-
readonly 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";
|
|
8399
|
+
readonly 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";
|
|
8381
8400
|
readonly http: "POST";
|
|
8382
8401
|
readonly path: "/cut/v1/projects/{project_id}:execute";
|
|
8383
8402
|
readonly streaming: "no";
|
|
@@ -10842,6 +10861,37 @@ export declare const operations: readonly [{
|
|
|
10842
10861
|
readonly description: "Understanding tasks enabled for new assets; omitted settings default to true.";
|
|
10843
10862
|
}];
|
|
10844
10863
|
};
|
|
10864
|
+
}, {
|
|
10865
|
+
readonly resource: "media.libraries";
|
|
10866
|
+
readonly method: "retrieveDefault";
|
|
10867
|
+
readonly summary: "Get default library";
|
|
10868
|
+
readonly 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.";
|
|
10869
|
+
readonly http: "GET";
|
|
10870
|
+
readonly path: "/media/v1/libraries/default";
|
|
10871
|
+
readonly streaming: "no";
|
|
10872
|
+
readonly pagination: false;
|
|
10873
|
+
readonly pathParams: readonly [];
|
|
10874
|
+
readonly query: readonly [];
|
|
10875
|
+
}, {
|
|
10876
|
+
readonly resource: "media.libraries";
|
|
10877
|
+
readonly method: "setDefault";
|
|
10878
|
+
readonly summary: "Set default library";
|
|
10879
|
+
readonly 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.";
|
|
10880
|
+
readonly http: "PUT";
|
|
10881
|
+
readonly path: "/media/v1/libraries/default";
|
|
10882
|
+
readonly streaming: "no";
|
|
10883
|
+
readonly pagination: false;
|
|
10884
|
+
readonly pathParams: readonly [];
|
|
10885
|
+
readonly query: readonly [];
|
|
10886
|
+
readonly body: {
|
|
10887
|
+
readonly required: true;
|
|
10888
|
+
readonly fields: readonly [{
|
|
10889
|
+
readonly name: "library_id";
|
|
10890
|
+
readonly type: "string";
|
|
10891
|
+
readonly required: true;
|
|
10892
|
+
readonly description: "Identifier of a library belonging to the caller.";
|
|
10893
|
+
}];
|
|
10894
|
+
};
|
|
10845
10895
|
}, {
|
|
10846
10896
|
readonly resource: "media.libraries";
|
|
10847
10897
|
readonly method: "delete";
|
|
@@ -10942,6 +10992,12 @@ export declare const operations: readonly [{
|
|
|
10942
10992
|
readonly enum: readonly ["image", "video", "raw"];
|
|
10943
10993
|
readonly required: false;
|
|
10944
10994
|
readonly description: "image, video (including audio), raw; auto is accepted by Upload actions only, and listing with auto returns 400.";
|
|
10995
|
+
}, {
|
|
10996
|
+
readonly name: "material_type";
|
|
10997
|
+
readonly type: "string";
|
|
10998
|
+
readonly enum: readonly ["image", "video", "audio", "voice", "sticker", "font", "text_style", "text_template", "animation_preset", "lut", "transition_map"];
|
|
10999
|
+
readonly required: false;
|
|
11000
|
+
readonly 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.";
|
|
10945
11001
|
}, {
|
|
10946
11002
|
readonly name: "cursor";
|
|
10947
11003
|
readonly type: "string";
|
|
@@ -11263,6 +11319,25 @@ export declare const operations: readonly [{
|
|
|
11263
11319
|
readonly description: "Maximum JPEG width in pixels: 160 is a small thumbnail, 320 a preview and 640 a larger preview. Defaults to 640; larger widths are unavailable.";
|
|
11264
11320
|
}];
|
|
11265
11321
|
};
|
|
11322
|
+
}, {
|
|
11323
|
+
readonly resource: "media.assets";
|
|
11324
|
+
readonly method: "lineage";
|
|
11325
|
+
readonly summary: "Get asset lineage";
|
|
11326
|
+
readonly 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.";
|
|
11327
|
+
readonly http: "GET";
|
|
11328
|
+
readonly path: "/media/v1/libraries/{library_id}/assets/{asset_id}/lineage";
|
|
11329
|
+
readonly streaming: "no";
|
|
11330
|
+
readonly pagination: false;
|
|
11331
|
+
readonly pathParams: readonly [{
|
|
11332
|
+
readonly name: "library_id";
|
|
11333
|
+
readonly sdkName: "library_id";
|
|
11334
|
+
readonly description: "Library ID returned by creation.";
|
|
11335
|
+
}, {
|
|
11336
|
+
readonly name: "asset_id";
|
|
11337
|
+
readonly sdkName: "asset_id";
|
|
11338
|
+
readonly description: "32-character asset ID.";
|
|
11339
|
+
}];
|
|
11340
|
+
readonly query: readonly [];
|
|
11266
11341
|
}, {
|
|
11267
11342
|
readonly resource: "media.libraries.assets.reprocess";
|
|
11268
11343
|
readonly method: "create";
|
|
@@ -11752,13 +11827,19 @@ export declare const operations: readonly [{
|
|
|
11752
11827
|
readonly name: "top_k";
|
|
11753
11828
|
readonly type: "integer";
|
|
11754
11829
|
readonly required: false;
|
|
11755
|
-
readonly description: "Maximum search hits, from 1 to 50; defaults to 20.";
|
|
11830
|
+
readonly 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.";
|
|
11756
11831
|
}, {
|
|
11757
11832
|
readonly name: "mode";
|
|
11758
11833
|
readonly type: "string";
|
|
11759
11834
|
readonly enum: readonly ["hybrid", "semantic"];
|
|
11760
11835
|
readonly required: false;
|
|
11761
11836
|
readonly description: "Ranking mode: hybrid combines semantic and keyword matches; semantic uses vector similarity only. Defaults to hybrid.";
|
|
11837
|
+
}, {
|
|
11838
|
+
readonly name: "material_type";
|
|
11839
|
+
readonly type: "string";
|
|
11840
|
+
readonly enum: readonly ["image", "video", "audio", "voice", "sticker", "font", "text_style", "text_template", "animation_preset", "lut", "transition_map"];
|
|
11841
|
+
readonly required: false;
|
|
11842
|
+
readonly 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.";
|
|
11762
11843
|
}];
|
|
11763
11844
|
};
|
|
11764
11845
|
}, {
|
|
@@ -11846,13 +11927,19 @@ export declare const operations: readonly [{
|
|
|
11846
11927
|
readonly name: "top_k";
|
|
11847
11928
|
readonly type: "integer";
|
|
11848
11929
|
readonly required: false;
|
|
11849
|
-
readonly description: "Maximum search hits, from 1 to 50; defaults to 20.";
|
|
11930
|
+
readonly 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.";
|
|
11850
11931
|
}, {
|
|
11851
11932
|
readonly name: "mode";
|
|
11852
11933
|
readonly type: "string";
|
|
11853
11934
|
readonly enum: readonly ["hybrid", "semantic"];
|
|
11854
11935
|
readonly required: false;
|
|
11855
11936
|
readonly description: "Ranking mode: hybrid combines semantic and keyword matches; semantic uses vector similarity only. Defaults to hybrid.";
|
|
11937
|
+
}, {
|
|
11938
|
+
readonly name: "material_type";
|
|
11939
|
+
readonly type: "string";
|
|
11940
|
+
readonly enum: readonly ["image", "video", "audio", "voice", "sticker", "font", "text_style", "text_template", "animation_preset", "lut", "transition_map"];
|
|
11941
|
+
readonly required: false;
|
|
11942
|
+
readonly 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.";
|
|
11856
11943
|
}];
|
|
11857
11944
|
};
|
|
11858
11945
|
}, {
|
|
@@ -13827,7 +13914,7 @@ export declare const operations: readonly [{
|
|
|
13827
13914
|
readonly resource: "ontology.nodes";
|
|
13828
13915
|
readonly method: "create";
|
|
13829
13916
|
readonly summary: "Create node";
|
|
13830
|
-
readonly 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
|
|
13917
|
+
readonly 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.";
|
|
13831
13918
|
readonly http: "POST";
|
|
13832
13919
|
readonly path: "/ontology/v1/nodes";
|
|
13833
13920
|
readonly streaming: "no";
|
|
@@ -13954,6 +14041,47 @@ export declare const operations: readonly [{
|
|
|
13954
14041
|
readonly description: "Node id that should survive, from nodes.list or search; the merged node's relations and aliases move to it.";
|
|
13955
14042
|
}];
|
|
13956
14043
|
};
|
|
14044
|
+
}, {
|
|
14045
|
+
readonly resource: "ontology.nodes";
|
|
14046
|
+
readonly method: "retrieveNeighborhood";
|
|
14047
|
+
readonly summary: "Retrieve neighborhood";
|
|
14048
|
+
readonly 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.";
|
|
14049
|
+
readonly http: "GET";
|
|
14050
|
+
readonly path: "/ontology/v1/nodes/{node_id}/neighborhood";
|
|
14051
|
+
readonly streaming: "no";
|
|
14052
|
+
readonly pagination: false;
|
|
14053
|
+
readonly pathParams: readonly [{
|
|
14054
|
+
readonly name: "node_id";
|
|
14055
|
+
readonly sdkName: "node_id";
|
|
14056
|
+
readonly 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.";
|
|
14057
|
+
}];
|
|
14058
|
+
readonly query: readonly [{
|
|
14059
|
+
readonly name: "depth";
|
|
14060
|
+
readonly type: "integer";
|
|
14061
|
+
readonly required: false;
|
|
14062
|
+
readonly 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.";
|
|
14063
|
+
}, {
|
|
14064
|
+
readonly name: "limit";
|
|
14065
|
+
readonly type: "integer";
|
|
14066
|
+
readonly required: false;
|
|
14067
|
+
readonly 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.";
|
|
14068
|
+
}, {
|
|
14069
|
+
readonly name: "direction";
|
|
14070
|
+
readonly type: "string";
|
|
14071
|
+
readonly enum: readonly ["out", "in", "both"];
|
|
14072
|
+
readonly required: false;
|
|
14073
|
+
readonly 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.";
|
|
14074
|
+
}, {
|
|
14075
|
+
readonly name: "as_of";
|
|
14076
|
+
readonly type: "string";
|
|
14077
|
+
readonly required: false;
|
|
14078
|
+
readonly 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.";
|
|
14079
|
+
}, {
|
|
14080
|
+
readonly name: "include_invalid";
|
|
14081
|
+
readonly type: "boolean";
|
|
14082
|
+
readonly required: false;
|
|
14083
|
+
readonly 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.";
|
|
14084
|
+
}];
|
|
13957
14085
|
}, {
|
|
13958
14086
|
readonly resource: "ontology.relations";
|
|
13959
14087
|
readonly method: "list";
|
|
@@ -14006,7 +14134,7 @@ export declare const operations: readonly [{
|
|
|
14006
14134
|
readonly resource: "ontology.relations";
|
|
14007
14135
|
readonly method: "create";
|
|
14008
14136
|
readonly summary: "Create relation";
|
|
14009
|
-
readonly 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
|
|
14137
|
+
readonly 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.";
|
|
14010
14138
|
readonly http: "POST";
|
|
14011
14139
|
readonly path: "/ontology/v1/relations";
|
|
14012
14140
|
readonly streaming: "no";
|
|
@@ -14100,7 +14228,7 @@ export declare const operations: readonly [{
|
|
|
14100
14228
|
readonly resource: "ontology.search";
|
|
14101
14229
|
readonly method: "create";
|
|
14102
14230
|
readonly summary: "Search nodes";
|
|
14103
|
-
readonly 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
|
|
14231
|
+
readonly 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.";
|
|
14104
14232
|
readonly http: "POST";
|
|
14105
14233
|
readonly path: "/ontology/v1/search";
|
|
14106
14234
|
readonly streaming: "no";
|
|
@@ -17303,6 +17431,54 @@ export declare const operations: readonly [{
|
|
|
17303
17431
|
readonly 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.";
|
|
17304
17432
|
}];
|
|
17305
17433
|
readonly query: readonly [];
|
|
17434
|
+
}, {
|
|
17435
|
+
readonly resource: "studio.works.drafts.renditions";
|
|
17436
|
+
readonly method: "create";
|
|
17437
|
+
readonly summary: "Create a rendition of a draft for a platform";
|
|
17438
|
+
readonly 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.";
|
|
17439
|
+
readonly http: "POST";
|
|
17440
|
+
readonly path: "/studio/v1/works/{work}/drafts/{draft}/renditions";
|
|
17441
|
+
readonly streaming: "no";
|
|
17442
|
+
readonly pagination: false;
|
|
17443
|
+
readonly pathParams: readonly [{
|
|
17444
|
+
readonly name: "work";
|
|
17445
|
+
readonly sdkName: "work";
|
|
17446
|
+
readonly 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.";
|
|
17447
|
+
}, {
|
|
17448
|
+
readonly name: "draft";
|
|
17449
|
+
readonly sdkName: "draft";
|
|
17450
|
+
readonly 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.";
|
|
17451
|
+
}];
|
|
17452
|
+
readonly query: readonly [];
|
|
17453
|
+
readonly body: {
|
|
17454
|
+
readonly required: true;
|
|
17455
|
+
readonly fields: readonly [{
|
|
17456
|
+
readonly name: "platform";
|
|
17457
|
+
readonly type: "string";
|
|
17458
|
+
readonly required: true;
|
|
17459
|
+
readonly 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.";
|
|
17460
|
+
}, {
|
|
17461
|
+
readonly name: "theme";
|
|
17462
|
+
readonly type: "string";
|
|
17463
|
+
readonly required: false;
|
|
17464
|
+
readonly description: "Theme to render with, a thm_ identifier or a built-in key from the theme list; omit it to use the platform default.";
|
|
17465
|
+
}, {
|
|
17466
|
+
readonly name: "settings";
|
|
17467
|
+
readonly type: "object";
|
|
17468
|
+
readonly required: false;
|
|
17469
|
+
readonly description: "Per-rendition settings; each platform reads only the settings that apply to it and ignores the rest.";
|
|
17470
|
+
}, {
|
|
17471
|
+
readonly name: "render";
|
|
17472
|
+
readonly type: "boolean";
|
|
17473
|
+
readonly required: false;
|
|
17474
|
+
readonly 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.";
|
|
17475
|
+
}, {
|
|
17476
|
+
readonly name: "request_id";
|
|
17477
|
+
readonly type: "string";
|
|
17478
|
+
readonly required: false;
|
|
17479
|
+
readonly 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.";
|
|
17480
|
+
}];
|
|
17481
|
+
};
|
|
17306
17482
|
}, {
|
|
17307
17483
|
readonly resource: "studio.works.drafts";
|
|
17308
17484
|
readonly method: "retrieveReview";
|
|
@@ -17512,6 +17688,175 @@ export declare const operations: readonly [{
|
|
|
17512
17688
|
readonly description: "Draft revision the caller read; a mismatch is refused rather than confirming a draft that changed under the caller.";
|
|
17513
17689
|
}];
|
|
17514
17690
|
};
|
|
17691
|
+
}, {
|
|
17692
|
+
readonly resource: "studio.works.renditions";
|
|
17693
|
+
readonly method: "list";
|
|
17694
|
+
readonly summary: "List the renditions of a work";
|
|
17695
|
+
readonly 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.";
|
|
17696
|
+
readonly http: "GET";
|
|
17697
|
+
readonly path: "/studio/v1/works/{work}/renditions";
|
|
17698
|
+
readonly streaming: "no";
|
|
17699
|
+
readonly pagination: false;
|
|
17700
|
+
readonly pathParams: readonly [{
|
|
17701
|
+
readonly name: "work";
|
|
17702
|
+
readonly sdkName: "work";
|
|
17703
|
+
readonly 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.";
|
|
17704
|
+
}];
|
|
17705
|
+
readonly query: readonly [{
|
|
17706
|
+
readonly name: "draft";
|
|
17707
|
+
readonly type: "string";
|
|
17708
|
+
readonly required: false;
|
|
17709
|
+
readonly 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.";
|
|
17710
|
+
}, {
|
|
17711
|
+
readonly name: "page_size";
|
|
17712
|
+
readonly type: "integer";
|
|
17713
|
+
readonly required: false;
|
|
17714
|
+
readonly 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.";
|
|
17715
|
+
}, {
|
|
17716
|
+
readonly name: "page_token";
|
|
17717
|
+
readonly type: "string";
|
|
17718
|
+
readonly required: false;
|
|
17719
|
+
readonly 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.";
|
|
17720
|
+
}];
|
|
17721
|
+
}, {
|
|
17722
|
+
readonly resource: "studio.works.renditions";
|
|
17723
|
+
readonly method: "delete";
|
|
17724
|
+
readonly summary: "Delete a rendition";
|
|
17725
|
+
readonly 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.";
|
|
17726
|
+
readonly http: "DELETE";
|
|
17727
|
+
readonly path: "/studio/v1/works/{work}/renditions/{rendition}";
|
|
17728
|
+
readonly streaming: "no";
|
|
17729
|
+
readonly pagination: false;
|
|
17730
|
+
readonly pathParams: readonly [{
|
|
17731
|
+
readonly name: "work";
|
|
17732
|
+
readonly sdkName: "work";
|
|
17733
|
+
readonly 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.";
|
|
17734
|
+
}, {
|
|
17735
|
+
readonly name: "rendition";
|
|
17736
|
+
readonly sdkName: "rendition";
|
|
17737
|
+
readonly description: "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer.";
|
|
17738
|
+
}];
|
|
17739
|
+
readonly query: readonly [];
|
|
17740
|
+
}, {
|
|
17741
|
+
readonly resource: "studio.works.renditions";
|
|
17742
|
+
readonly method: "retrieve";
|
|
17743
|
+
readonly summary: "Read one rendition";
|
|
17744
|
+
readonly 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.";
|
|
17745
|
+
readonly http: "GET";
|
|
17746
|
+
readonly path: "/studio/v1/works/{work}/renditions/{rendition}";
|
|
17747
|
+
readonly streaming: "no";
|
|
17748
|
+
readonly pagination: false;
|
|
17749
|
+
readonly pathParams: readonly [{
|
|
17750
|
+
readonly name: "work";
|
|
17751
|
+
readonly sdkName: "work";
|
|
17752
|
+
readonly 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.";
|
|
17753
|
+
}, {
|
|
17754
|
+
readonly name: "rendition";
|
|
17755
|
+
readonly sdkName: "rendition";
|
|
17756
|
+
readonly description: "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer.";
|
|
17757
|
+
}];
|
|
17758
|
+
readonly query: readonly [];
|
|
17759
|
+
}, {
|
|
17760
|
+
readonly resource: "studio.works.renditions";
|
|
17761
|
+
readonly method: "update";
|
|
17762
|
+
readonly summary: "Change the theme or settings of a rendition";
|
|
17763
|
+
readonly 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.";
|
|
17764
|
+
readonly http: "PATCH";
|
|
17765
|
+
readonly path: "/studio/v1/works/{work}/renditions/{rendition}";
|
|
17766
|
+
readonly streaming: "no";
|
|
17767
|
+
readonly pagination: false;
|
|
17768
|
+
readonly pathParams: readonly [{
|
|
17769
|
+
readonly name: "work";
|
|
17770
|
+
readonly sdkName: "work";
|
|
17771
|
+
readonly 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.";
|
|
17772
|
+
}, {
|
|
17773
|
+
readonly name: "rendition";
|
|
17774
|
+
readonly sdkName: "rendition";
|
|
17775
|
+
readonly description: "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer.";
|
|
17776
|
+
}];
|
|
17777
|
+
readonly query: readonly [];
|
|
17778
|
+
readonly body: {
|
|
17779
|
+
readonly required: true;
|
|
17780
|
+
readonly fields: readonly [{
|
|
17781
|
+
readonly name: "update_mask";
|
|
17782
|
+
readonly type: "array";
|
|
17783
|
+
readonly itemType: "string";
|
|
17784
|
+
readonly required: true;
|
|
17785
|
+
readonly description: "Field paths this call changes: theme, settings or both; a field left out keeps its value.";
|
|
17786
|
+
}, {
|
|
17787
|
+
readonly name: "theme";
|
|
17788
|
+
readonly type: "string";
|
|
17789
|
+
readonly required: false;
|
|
17790
|
+
readonly 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.";
|
|
17791
|
+
}, {
|
|
17792
|
+
readonly name: "settings";
|
|
17793
|
+
readonly type: "object";
|
|
17794
|
+
readonly required: false;
|
|
17795
|
+
readonly description: "Per-rendition settings; each platform reads only the settings that apply to it and ignores the rest.";
|
|
17796
|
+
}];
|
|
17797
|
+
};
|
|
17798
|
+
}, {
|
|
17799
|
+
readonly resource: "studio.works.renditions";
|
|
17800
|
+
readonly method: "retrieveContent";
|
|
17801
|
+
readonly summary: "Get a download URL for a rendition file";
|
|
17802
|
+
readonly 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.";
|
|
17803
|
+
readonly http: "GET";
|
|
17804
|
+
readonly path: "/studio/v1/works/{work}/renditions/{rendition}/content";
|
|
17805
|
+
readonly streaming: "no";
|
|
17806
|
+
readonly pagination: false;
|
|
17807
|
+
readonly pathParams: readonly [{
|
|
17808
|
+
readonly name: "work";
|
|
17809
|
+
readonly sdkName: "work";
|
|
17810
|
+
readonly 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.";
|
|
17811
|
+
}, {
|
|
17812
|
+
readonly name: "rendition";
|
|
17813
|
+
readonly sdkName: "rendition";
|
|
17814
|
+
readonly description: "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer.";
|
|
17815
|
+
}];
|
|
17816
|
+
readonly query: readonly [{
|
|
17817
|
+
readonly name: "part";
|
|
17818
|
+
readonly type: "integer";
|
|
17819
|
+
readonly required: false;
|
|
17820
|
+
readonly 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.";
|
|
17821
|
+
}];
|
|
17822
|
+
}, {
|
|
17823
|
+
readonly resource: "studio.works.renditions";
|
|
17824
|
+
readonly method: "publish";
|
|
17825
|
+
readonly summary: "Export a rendition";
|
|
17826
|
+
readonly 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.";
|
|
17827
|
+
readonly http: "POST";
|
|
17828
|
+
readonly path: "/studio/v1/works/{work}/renditions/{rendition}:publish";
|
|
17829
|
+
readonly streaming: "no";
|
|
17830
|
+
readonly pagination: false;
|
|
17831
|
+
readonly pathParams: readonly [{
|
|
17832
|
+
readonly name: "work";
|
|
17833
|
+
readonly sdkName: "work";
|
|
17834
|
+
readonly 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.";
|
|
17835
|
+
}, {
|
|
17836
|
+
readonly name: "rendition";
|
|
17837
|
+
readonly sdkName: "rendition";
|
|
17838
|
+
readonly description: "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer.";
|
|
17839
|
+
}];
|
|
17840
|
+
readonly query: readonly [];
|
|
17841
|
+
}, {
|
|
17842
|
+
readonly resource: "studio.works.renditions";
|
|
17843
|
+
readonly method: "render";
|
|
17844
|
+
readonly summary: "Render a rendition again from the current draft";
|
|
17845
|
+
readonly 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.";
|
|
17846
|
+
readonly http: "POST";
|
|
17847
|
+
readonly path: "/studio/v1/works/{work}/renditions/{rendition}:render";
|
|
17848
|
+
readonly streaming: "no";
|
|
17849
|
+
readonly pagination: false;
|
|
17850
|
+
readonly pathParams: readonly [{
|
|
17851
|
+
readonly name: "work";
|
|
17852
|
+
readonly sdkName: "work";
|
|
17853
|
+
readonly 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.";
|
|
17854
|
+
}, {
|
|
17855
|
+
readonly name: "rendition";
|
|
17856
|
+
readonly sdkName: "rendition";
|
|
17857
|
+
readonly description: "Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer.";
|
|
17858
|
+
}];
|
|
17859
|
+
readonly query: readonly [];
|
|
17515
17860
|
}, {
|
|
17516
17861
|
readonly resource: "studio.works.units";
|
|
17517
17862
|
readonly method: "retrieve";
|