@deepraxis/sdk 0.1.1-dev.6b385c0 → 0.1.1-dev.6c28f93

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.
@@ -164,7 +164,7 @@ export const operations = [
164
164
  "name": "image_model",
165
165
  "type": "string",
166
166
  "required": false,
167
- "description": "Model used by the imagine image tool; defaults to gpt-image-2 when unset. Only models that can generate images are accepted. Omit to preserve; null clears the configured model. /agent/v1 only."
167
+ "description": "Retired (the imagine tool no longer exists): accepted and ignored, never stored. Image generation goes through the media library and the manage-media skill. /agent/v1 only."
168
168
  },
169
169
  {
170
170
  "name": "subagents",
@@ -387,7 +387,7 @@ export const operations = [
387
387
  "name": "image_model",
388
388
  "type": "string",
389
389
  "required": false,
390
- "description": "Model used by the imagine image tool; defaults to gpt-image-2 when unset. Only models that can generate images are accepted. Omit to preserve; null clears the configured model. /agent/v1 only."
390
+ "description": "Retired (the imagine tool no longer exists): accepted and ignored, never stored. Image generation goes through the media library and the manage-media skill. /agent/v1 only."
391
391
  },
392
392
  {
393
393
  "name": "subagents",
@@ -11501,6 +11501,118 @@ export const operations = [
11501
11501
  ]
11502
11502
  }
11503
11503
  },
11504
+ {
11505
+ "resource": "devops.changes",
11506
+ "method": "retrieve",
11507
+ "summary": "Retrieve a change",
11508
+ "description": "Read one change in full: its derived stage, its pull requests (one per slice, oldest first), its flag, its workspace, and one cell per environment showing the version it rode and how far its flag has been rolled out there. The id is the branch name and contains a slash, so it must be percent-encoded in the path: feat/run-page-v2 is sent as feat%2Frun-page-v2. The stage is derived, not stored — with several pull requests it shows the slice that is furthest behind, so a change already in production that opens a new slice goes back to reviewing. When suspectedIn is set, the latest verification in that environment failed and this change is listed among the suspects until a later verification succeeds.",
11509
+ "http": "GET",
11510
+ "path": "/devops/v1/changes/{id}",
11511
+ "streaming": "no",
11512
+ "pagination": false,
11513
+ "pathParams": [
11514
+ {
11515
+ "name": "id",
11516
+ "sdkName": "id",
11517
+ "description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer; the slash must be percent-encoded, so feat/run-page-v2 is sent as feat%2Frun-page-v2."
11518
+ }
11519
+ ],
11520
+ "query": []
11521
+ },
11522
+ {
11523
+ "resource": "devops.changes",
11524
+ "method": "abandon",
11525
+ "summary": "Abandon a change",
11526
+ "description": "Stop a change for good: it no longer moves forward and its stage becomes abandoned. reason is required and is kept with the change. Pull requests that were already merged are not undone — the system cleans them up, or a new change reverts them — so abandoning is a statement about the change, not a rollback of code. The id is the branch name and its slash must be percent-encoded in the path (feat%2Frun-page-v2). A change that is already abandoned is refused with INVALID_ARGUMENT, which is how a caller tells an earlier abandon apart from a call that had no effect.",
11527
+ "http": "POST",
11528
+ "path": "/devops/v1/changes/{id}:abandon",
11529
+ "streaming": "no",
11530
+ "pagination": false,
11531
+ "pathParams": [
11532
+ {
11533
+ "name": "id",
11534
+ "sdkName": "id",
11535
+ "description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer; the slash must be percent-encoded, so feat/run-page-v2 is sent as feat%2Frun-page-v2."
11536
+ }
11537
+ ],
11538
+ "query": [],
11539
+ "body": {
11540
+ "required": true,
11541
+ "fields": [
11542
+ {
11543
+ "name": "reason",
11544
+ "type": "string",
11545
+ "required": true,
11546
+ "description": "Why the change is abandoned, stored with it as the attribution of the act."
11547
+ }
11548
+ ]
11549
+ }
11550
+ },
11551
+ {
11552
+ "resource": "devops.changes",
11553
+ "method": "markLastSlice",
11554
+ "summary": "Mark the last slice",
11555
+ "description": "Say whether the pull request being merged is the last slice of the change. A change defaults to yes; until it is marked as the last slice it cannot reach rolling out or done, because rolling out a container that may still grow would roll out the wrong thing. Send lastSlice=false before merging a pull request when more slices will follow, and true again on the final one. The id is the branch name and its slash must be percent-encoded in the path (feat%2Frun-page-v2).",
11556
+ "http": "POST",
11557
+ "path": "/devops/v1/changes/{id}:markLastSlice",
11558
+ "streaming": "no",
11559
+ "pagination": false,
11560
+ "pathParams": [
11561
+ {
11562
+ "name": "id",
11563
+ "sdkName": "id",
11564
+ "description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer; the slash must be percent-encoded, so feat/run-page-v2 is sent as feat%2Frun-page-v2."
11565
+ }
11566
+ ],
11567
+ "query": [],
11568
+ "body": {
11569
+ "required": true,
11570
+ "fields": [
11571
+ {
11572
+ "name": "lastSlice",
11573
+ "type": "boolean",
11574
+ "required": true,
11575
+ "description": "True when no more pull requests will follow; false keeps the change from reaching rolling out or done."
11576
+ }
11577
+ ]
11578
+ }
11579
+ },
11580
+ {
11581
+ "resource": "devops.environments",
11582
+ "method": "update",
11583
+ "summary": "Update an environment",
11584
+ "description": "Change an environment's name, position, approval requirement, observation time, blocking behaviour or domain suffix. Send the new values inside environment and name the fields to write in updateMask (name, order, requireApproval, observeMinutes, blocksLater, domainSuffix); a field not named is left alone. requireApproval true makes every later promotion into this environment stop in awaiting_approval until promotions.approve lets it proceed; promotions already running are not stopped. order moves the environment within the promotion sequence and renumbers its neighbours, and a value that would break the 1..n sequence is refused with ENVIRONMENT_ORDER_INVALID. Read the environment list first to know what you are leaving unchanged.",
11585
+ "http": "PATCH",
11586
+ "path": "/devops/v1/environments/{id}",
11587
+ "streaming": "no",
11588
+ "pagination": false,
11589
+ "pathParams": [
11590
+ {
11591
+ "name": "id",
11592
+ "sdkName": "id",
11593
+ "description": "The environment identifier from a project's environment list; the tier or the display name is not an address."
11594
+ }
11595
+ ],
11596
+ "query": [],
11597
+ "body": {
11598
+ "required": true,
11599
+ "fields": [
11600
+ {
11601
+ "name": "environment",
11602
+ "type": "object",
11603
+ "required": true,
11604
+ "description": "The new values for the environment fields to change."
11605
+ },
11606
+ {
11607
+ "name": "updateMask",
11608
+ "type": "array",
11609
+ "itemType": "string",
11610
+ "required": false,
11611
+ "description": "Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix. Omit it to write every field the environment object carries."
11612
+ }
11613
+ ]
11614
+ }
11615
+ },
11504
11616
  {
11505
11617
  "resource": "devops.environments.checkpoints",
11506
11618
  "method": "list",
@@ -11874,6 +11986,163 @@ export const operations = [
11874
11986
  ],
11875
11987
  "query": []
11876
11988
  },
11989
+ {
11990
+ "resource": "devops.projects",
11991
+ "method": "update",
11992
+ "summary": "Update a project",
11993
+ "description": "Change a project's name, description, labels or delivery settings. Send the new values inside project and name the fields to write in updateMask (name, description, labels, settings); a field not named is left alone, and a mask naming a field this operation cannot change is refused. settings is merged into the current settings rather than replacing them, so a body naming one setting leaves the others as they were. settings.executor decides who publishes the project: absent or mise reads as the Mise pipeline, and devops means that, once the merge is done, the DevOps pipeline releases it. Changing executor changes which pipeline the next release uses, not what already ran. A new name must be kebab-case and unused in the organization, otherwise PROJECT_NAME_TAKEN. Read the project first to know what you are leaving unchanged.",
11994
+ "http": "PATCH",
11995
+ "path": "/devops/v1/projects/{id}",
11996
+ "streaming": "no",
11997
+ "pagination": false,
11998
+ "pathParams": [
11999
+ {
12000
+ "name": "id",
12001
+ "sdkName": "id",
12002
+ "description": "The project identifier returned by the project list, not the project's display name or its repository name."
12003
+ }
12004
+ ],
12005
+ "query": [],
12006
+ "body": {
12007
+ "required": true,
12008
+ "fields": [
12009
+ {
12010
+ "name": "project",
12011
+ "type": "object",
12012
+ "required": true,
12013
+ "description": "The new values. settings is merged into the current settings, so name only the settings to change."
12014
+ },
12015
+ {
12016
+ "name": "updateMask",
12017
+ "type": "array",
12018
+ "itemType": "string",
12019
+ "required": false,
12020
+ "description": "Which project fields to write, by name: name, description, labels, settings. Omit it to write every field the project object carries."
12021
+ }
12022
+ ]
12023
+ }
12024
+ },
12025
+ {
12026
+ "resource": "devops.projects.changes",
12027
+ "method": "list",
12028
+ "summary": "List changes",
12029
+ "description": "List the project's changes, newest first, each with its derived stage and one cell per environment. Use it to see what is in flight before opening another change, or to find the id (the branch name) of a change you want to read. filter narrows the list: stage is derived from the facts, so it is applied after derivation, while type, owner and ended narrow on stored columns. Leaving a filter field out, or sending an empty array, does not narrow that field. ended=true lists changes that are done or abandoned, ended=false lists the rest. totalSize is answered on the first page only and counts what the filter leaves.",
12030
+ "http": "GET",
12031
+ "path": "/devops/v1/projects/{project}/changes",
12032
+ "streaming": "no",
12033
+ "pagination": false,
12034
+ "pathParams": [
12035
+ {
12036
+ "name": "project",
12037
+ "sdkName": "project",
12038
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12039
+ }
12040
+ ],
12041
+ "query": [
12042
+ {
12043
+ "name": "pageSize",
12044
+ "type": "integer",
12045
+ "required": false,
12046
+ "description": "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone."
12047
+ },
12048
+ {
12049
+ "name": "pageToken",
12050
+ "type": "string",
12051
+ "required": false,
12052
+ "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
12053
+ },
12054
+ {
12055
+ "name": "filter",
12056
+ "type": "string",
12057
+ "required": false,
12058
+ "description": "JSON object with any of stage (array of stages), type (array of change types), owner (the requester's actor id) and ended (boolean). A stage or type that is not in the vocabulary is refused with INVALID_ARGUMENT rather than ignored."
12059
+ }
12060
+ ]
12061
+ },
12062
+ {
12063
+ "resource": "devops.projects.changes",
12064
+ "method": "create",
12065
+ "summary": "Create a change",
12066
+ "description": "Open a change: the unit that carries one piece of work from a branch to production. A change has no separate id — its id is its branch name, <type>/<slug> (for example feat/run-page-v2), and the branch is cut from main as part of this call. type says what the work is and slug names it; both together are the id, so the same pair sent again answers the change the first call made instead of creating a second. A change with a flag also creates a release flag whose key is the slug, off in every environment, so opening one changes no runtime behaviour; withFlag defaults to true for feat and false for every other type, and you may override it either way. Requesting a change opens it at once — there is no approval step — and the caller becomes its owner. A slug already used by another type in the project is refused with CHANGE_SLUG_TAKEN because both would need the same branch name. The stage in the answer is derived from facts such as pull requests and promotions; it is never something you set.",
12067
+ "http": "POST",
12068
+ "path": "/devops/v1/projects/{project}/changes",
12069
+ "streaming": "no",
12070
+ "pagination": false,
12071
+ "pathParams": [
12072
+ {
12073
+ "name": "project",
12074
+ "sdkName": "project",
12075
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12076
+ }
12077
+ ],
12078
+ "query": [],
12079
+ "body": {
12080
+ "required": true,
12081
+ "fields": [
12082
+ {
12083
+ "name": "type",
12084
+ "type": "string",
12085
+ "enum": [
12086
+ "feat",
12087
+ "fix",
12088
+ "perf",
12089
+ "refactor",
12090
+ "docs",
12091
+ "test",
12092
+ "build",
12093
+ "ci",
12094
+ "chore",
12095
+ "revert"
12096
+ ],
12097
+ "required": true,
12098
+ "description": "What the work is, in commitlint vocabulary; together with slug it forms the change id <type>/<slug>."
12099
+ },
12100
+ {
12101
+ "name": "slug",
12102
+ "type": "string",
12103
+ "required": true,
12104
+ "description": "Lower-case letters, digits and hyphens, 2 to 60 characters; it becomes the branch name after the type and the key of the change's flag."
12105
+ },
12106
+ {
12107
+ "name": "title",
12108
+ "type": "string",
12109
+ "required": true,
12110
+ "description": "One line saying what the change is for, shown wherever the change is listed and used as the flag's name."
12111
+ },
12112
+ {
12113
+ "name": "tickets",
12114
+ "type": "array",
12115
+ "itemType": "string",
12116
+ "required": false,
12117
+ "description": "Ticket references the change belongs to, as a magic word or a #number; omit it when there is none."
12118
+ },
12119
+ {
12120
+ "name": "withFlag",
12121
+ "type": "boolean",
12122
+ "required": false,
12123
+ "description": "True to create a release flag keyed by the slug; omitted means true for feat and false for every other type."
12124
+ },
12125
+ {
12126
+ "name": "urgent",
12127
+ "type": "boolean",
12128
+ "required": false,
12129
+ "description": "True for an urgent fix that may take the patch path with a recorded authorization to skip develop; omitted means false."
12130
+ },
12131
+ {
12132
+ "name": "observeUntil",
12133
+ "type": "string",
12134
+ "required": false,
12135
+ "description": "RFC 3339 UTC deadline by which the flag's observation must be decided; only used when the change creates a flag."
12136
+ },
12137
+ {
12138
+ "name": "requestId",
12139
+ "type": "string",
12140
+ "required": false,
12141
+ "description": "Caller-chosen key that makes a retry answer the change the first call made instead of creating another."
12142
+ }
12143
+ ]
12144
+ }
12145
+ },
11877
12146
  {
11878
12147
  "resource": "devops.projects.environments",
11879
12148
  "method": "list",
@@ -13737,7 +14006,7 @@ export const operations = [
13737
14006
  "resource": "file.uploads",
13738
14007
  "method": "createSigned",
13739
14008
  "summary": "Create a one-time upload URL",
13740
- "description": "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide basename, exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid, wrong-action or cross-organization URLs return 404. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.",
14009
+ "description": "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid, wrong-action or cross-organization URLs return 404. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.",
13741
14010
  "http": "POST",
13742
14011
  "path": "/file/v1/uploads/signed",
13743
14012
  "streaming": "no",
@@ -14684,7 +14953,7 @@ export const operations = [
14684
14953
  "resource": "media.generation.capabilities",
14685
14954
  "method": "list",
14686
14955
  "summary": "Get generation capabilities",
14687
- "description": "Read what Praxis offers for each kind of generation — image, video and speech — before asking for one, and read a speech model’s voices here before naming one. Every type answers the models available for it, the model it uses when a request names none, and what each model costs per unit; a speech model the platform publishes voices for also carries default_voice and voices there, each voice with an id, a name, a gender, a language and a style — so a request for \"a gentle female voice\" is answered by matching the style and gender rather than by guessing an identifier. Pass a voice id back verbatim as voice, or omit voice to take default_voice; a voice that is neither one of those nor a voice material of the library is refused with INVALID_PARAMS before any job is created. OpenAI voice names such as alloy and aura are not valid here. The video fields beside the types keep their original meaning (intents, default model, duration and aspect-ratio limits, per-library concurrency). The models come from the platform model catalogue, and an id listed here is accepted verbatim as the model field of that type’s generation request. price.amount is a decimal string with its currency; video models that charge by resolution also carry price.by_resolution, whose amount is then the cheapest tier. A model the catalogue cannot route right now is still listed, with available false, so a caller can show it as temporarily unavailable instead of hiding it. When the catalogue cannot be read the endpoint still answers: every type comes back with an empty models list and its real default_model, and the voices a speech model carries are absent rather than empty, because the voices come from the platform and not from the catalogue. Generation is charged per unit and every output is stored in the library.",
14956
+ "description": "Read what Praxis offers for each kind of generation — image, video and speech — before asking for one, and read a speech model’s voices here before naming one. Every type answers the models available for it, the model it uses when a request names none, and what each model costs per unit; a speech model the platform publishes voices for also carries default_voice and voices there, each voice with an id, a name, a gender, a language and a style — so a request for \"a gentle female voice\" is answered by matching the style and gender rather than by guessing an identifier. Pass a voice id back verbatim as voice, or omit voice to take default_voice; a voice that is neither one of those nor a voice material of the library is refused with INVALID_PARAMS before any job is created. OpenAI voice names such as alloy and aura are not valid here. The video fields beside the types keep their original meaning (intents, default model, duration and aspect-ratio limits, per-library concurrency). The models come from the platform model catalogue, and an id listed here is accepted verbatim as the model field of that type’s generation request. A video model additionally carries the modes it can be driven in and the durations, aspect ratios and resolutions the catalogue has registered for it — modes, duration_seconds, aspect_ratios and resolutions — so read them before requesting video and choose a mode and a value this model lists; an empty list means the platform has not registered that option yet, and then omit the field rather than assume a value. price.amount is a decimal string with its currency; video models that charge by resolution also carry price.by_resolution, whose amount is then the cheapest tier. A model the catalogue cannot route right now is still listed, with available false, so a caller can show it as temporarily unavailable instead of hiding it. When the catalogue cannot be read the endpoint still answers: every type comes back with an empty models list and its real default_model, and the voices a speech model carries are absent rather than empty, because the voices come from the platform and not from the catalogue. Generation is charged per unit and every output is stored in the library.",
14688
14957
  "http": "GET",
14689
14958
  "path": "/media/v1/generation/capabilities",
14690
14959
  "streaming": "no",
@@ -15282,7 +15551,7 @@ export const operations = [
15282
15551
  "resource": "media.assets",
15283
15552
  "method": "edit",
15284
15553
  "summary": "Edit asset",
15285
- "description": "Edit an existing asset and store the result as a new asset. Use library_id from creation or listing and asset_id from asset creation or listing; library_id also accepts the literal default, which resolves to the organization’s default library before the credential check. The source asset is never overwritten: the new asset hangs under it in the edit chain, records it in derived_from, and reads back with assets.lineage, so earlier steps stay reachable. The body is operation plus the optional model, asset_folder, understanding and idempotency_key; operation.type selects the edit and carries that operation’s own fields. This release performs variations, inpaint, erase, replace_object, recolor, remove_background and replace_background on images; every other type in the operation vocabulary — the video and audio edits — is refused with OPERATION_NOT_SUPPORTED. inpaint takes mask, a PNG File identifier beginning with file- whose transparent area marks the region to replace, plus the prompt describing what belongs there. Aspects beyond the source asset’s material type return REFERENCE_TYPE_MISMATCH. Editing is billed by the model usage it consumes, at the same prices as the model API, and the job records the charge in usage. The response is 202 with a queued Job whose type is image, whose operation is the edit applied, and whose source_asset_id is the asset edited; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until it is completed or failed, then read the produced asset. Example: POST /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/edits with {\"operation\":{\"type\":\"variations\",\"strength\":\"subtle\"}}.",
15554
+ "description": "Edit an existing asset and store the result as a new asset. Use library_id from creation or listing and asset_id from asset creation or listing; library_id also accepts the literal default, which resolves to the organization’s default library before the credential check. The source asset is never overwritten: the new asset hangs under it in the edit chain, records it in derived_from, and reads back with assets.lineage, so earlier steps stay reachable. The body is operation plus the optional model, asset_folder, understanding and idempotency_key; operation.type selects the edit and carries that operation’s own fields. This release performs variations, inpaint, erase, replace_object, recolor, remove_background and replace_background on images; every other type in the operation vocabulary — the video and audio edits — is refused with OPERATION_NOT_SUPPORTED. inpaint takes mask, a PNG File identifier beginning with file- whose transparent area marks the region to replace, plus the prompt describing what belongs there. Aspects beyond the source asset’s material type return REFERENCE_TYPE_MISMATCH. Editing is billed by the model usage it consumes, at the same prices as the model API, and the job reports the charge in usage (US dollars, six decimals) and the new asset carries it in provenance.cost; when the job is done, tell the person the usage amount and give them the output’s viewer_url. The response is 202 with a queued Job whose type is image, whose operation is the edit applied, and whose source_asset_id is the asset edited; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until it is completed or failed, then read the produced asset. Example: POST /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/edits with {\"operation\":{\"type\":\"variations\",\"strength\":\"subtle\"}}.",
15286
15555
  "http": "POST",
15287
15556
  "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
15288
15557
  "streaming": "no",
@@ -15550,7 +15819,7 @@ export const operations = [
15550
15819
  "resource": "media.speech",
15551
15820
  "method": "create",
15552
15821
  "summary": "Create speech",
15553
- "description": "Synthesise speech from text and store the recording straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still synthesise. input is the text to speak. voice is optional and may be omitted, in which case the model’s default voice is used; when it is given it must be one of the voices of the model being used — read them from the types.speech list of GET /media/v1/generation/capabilities, which gives each voice an id, a name, a gender, a language and a style, or pass a voice material id of this same library — and a voice that is neither is refused with INVALID_PARAMS in the voice field before any job exists, so a wrong name is free to try but reading the capabilities first is free without trying. Do not use OpenAI voice names such as alloy or aura: they are not valid here. speed is passed to the provider unchanged, and instructions and language are refused with OPERATION_NOT_SUPPORTED in this release. Cloning a voice from recordings is not available yet. The provider caps one request at a short stretch of text, so a long input is cut into segments at paragraph and sentence boundaries and synthesised in order, then joined into the single recording the library receives: nothing is spoken twice and nothing is dropped. Because the segments are joined byte for byte, a multi-segment input accepts only response_format mp3 (the default) or pcm; opus is available for a single-segment input. A speech job has one result however many segments it took. Synthesis is billed by the model usage it consumes, at the same prices as the model API, and the job records the charge in usage; a request refused before it starts costs nothing. The response is 202 with a queued Job whose type is speech and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced asset from the library — the recording carries material_type audio, audio_role voice, ai_generated true, and provenance naming this job, the text spoken and the model. Send Idempotency-Key, or idempotency_key in the body, to retry without synthesising and charging twice. Example: POST /media/v1/libraries/default/audio/speech with {\"input\":\"A red kite above a calm sea at sunrise.\"}, or with {\"input\":\"A red kite above a calm sea at sunrise.\",\"voice\":\"zh_female_wenroumama_uranus_bigtts\"} for a gentle female voice.",
15822
+ "description": "Synthesise speech from text and store the recording straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still synthesise. input is the text to speak. voice is optional and may be omitted, in which case the model’s default voice is used; when it is given it must be one of the voices of the model being used — read them from the types.speech list of GET /media/v1/generation/capabilities, which gives each voice an id, a name, a gender, a language and a style, or pass a voice material id of this same library — and a voice that is neither is refused with INVALID_PARAMS in the voice field before any job exists, so a wrong name is free to try but reading the capabilities first is free without trying. Do not use OpenAI voice names such as alloy or aura: they are not valid here. speed is passed to the provider unchanged, and instructions and language are refused with OPERATION_NOT_SUPPORTED in this release. Cloning a voice from recordings is not available yet. The provider caps one request at a short stretch of text, so a long input is cut into segments at paragraph and sentence boundaries and synthesised in order, then joined into the single recording the library receives: nothing is spoken twice and nothing is dropped. Because the segments are joined byte for byte, a multi-segment input accepts only response_format mp3 (the default) or pcm; opus is available for a single-segment input. A speech job has one result however many segments it took. Synthesis is billed by the model usage it consumes, at the same prices as the model API, and the job reports the charge in usage (US dollars, six decimals, the sum over every segment) and the recording carries it in provenance.cost; a request refused before it starts costs nothing. When the job is done, tell the person the usage amount and give them the output’s viewer_url. The response is 202 with a queued Job whose type is speech and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced asset from the library — the recording carries material_type audio, audio_role voice, ai_generated true, and provenance naming this job, the text spoken and the model. Send Idempotency-Key, or idempotency_key in the body, to retry without synthesising and charging twice. Example: POST /media/v1/libraries/default/audio/speech with {\"input\":\"A red kite above a calm sea at sunrise.\"}, or with {\"input\":\"A red kite above a calm sea at sunrise.\",\"voice\":\"zh_female_wenroumama_uranus_bigtts\"} for a gentle female voice.",
15554
15823
  "http": "POST",
15555
15824
  "path": "/media/v1/libraries/{library_id}/audio/speech",
15556
15825
  "streaming": "no",
@@ -15782,7 +16051,7 @@ export const operations = [
15782
16051
  "resource": "media.images",
15783
16052
  "method": "generate",
15784
16053
  "summary": "Generate image",
15785
- "description": "Generate one or more images from a text prompt and store them straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still generate. The request body is the image request itself: prompt is required, and n, size, background, output_format, output, references, seed, model, asset_folder and understanding are optional. Set output to sticker for a cut-out with a transparent background. references attach existing assets with a role — edit_target, style, structure or subject — and a model that cannot honour a role returns REFERENCE_TYPE_MISMATCH. Aspect ratio is not accepted for images; name size instead. Generation is billed by the model usage it consumes, at the same prices as the model API, and the job records the charge in usage; nothing is charged for a request refused before it starts. The response is 202 with a queued Job whose type is image and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced assets from the library. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice. Example: POST /media/v1/libraries/default/images/generations with {\"prompt\":\"A red kite above a calm sea at sunrise\",\"n\":1,\"output\":\"sticker\"}.",
16054
+ "description": "Generate one or more images from a text prompt and store them straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still generate. The request body is the image request itself: prompt is required, and n, size, background, output_format, output, references, seed, model, asset_folder and understanding are optional. Set output to sticker for a cut-out with a transparent background. references attach existing assets with a role — edit_target, style, structure or subject — and a model that cannot honour a role returns REFERENCE_TYPE_MISMATCH. Aspect ratio is not accepted for images; name size instead. Generation is billed by the model usage it consumes, at the same prices as the model API, and the job reports the charge in usage (US dollars, six decimals, final once the job is completed or failed) and each produced asset carries its own part in provenance.cost; nothing is charged for a request refused before it starts. When the job is done, tell the person the usage amount and give them each output’s viewer_url, which opens the asset in the Console. The response is 202 with a queued Job whose type is image and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced assets from the library. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice. Example: POST /media/v1/libraries/default/images/generations with {\"prompt\":\"A red kite above a calm sea at sunrise\",\"n\":1,\"output\":\"sticker\"}.",
15786
16055
  "http": "POST",
15787
16056
  "path": "/media/v1/libraries/{library_id}/images/generations",
15788
16057
  "streaming": "no",
@@ -15819,8 +16088,13 @@ export const operations = [
15819
16088
  {
15820
16089
  "name": "size",
15821
16090
  "type": "string",
16091
+ "enum": [
16092
+ "1024x1024",
16093
+ "1024x1536",
16094
+ "1536x1024"
16095
+ ],
15822
16096
  "required": false,
15823
- "description": "Requested pixel size written as width x height. The chosen model is validated against it and an unsupported size is rejected with INVALID_PARAMS."
16097
+ "description": "Requested pixel size written as width x height. The platform image models accept 1024x1024 (square, the default), 1024x1536 (portrait) and 1536x1024 (landscape); any other size is rejected with INVALID_PARAMS before anything is charged."
15824
16098
  },
15825
16099
  {
15826
16100
  "name": "background",
@@ -15902,7 +16176,7 @@ export const operations = [
15902
16176
  "resource": "media.libraries.jobs",
15903
16177
  "method": "list",
15904
16178
  "summary": "List jobs",
15905
- "description": "List batch and generation jobs in a library. Filter by status and continue with next_cursor. Poll a generation Job until terminal; every produced output is already a library asset.",
16179
+ "description": "List batch and generation jobs in a library. Filter by status or by pipeline_run_id (the jobs one automation run started) and continue with next_cursor. Poll a generation Job until terminal; every produced output is already a library asset.",
15906
16180
  "http": "GET",
15907
16181
  "path": "/media/v1/libraries/{library_id}/jobs",
15908
16182
  "streaming": "no",
@@ -15931,6 +16205,12 @@ export const operations = [
15931
16205
  "required": false,
15932
16206
  "description": "Filter jobs by their current status."
15933
16207
  },
16208
+ {
16209
+ "name": "pipeline_run_id",
16210
+ "type": "string",
16211
+ "required": false,
16212
+ "description": "Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch."
16213
+ },
15934
16214
  {
15935
16215
  "name": "limit",
15936
16216
  "type": "integer",
@@ -15972,7 +16252,7 @@ export const operations = [
15972
16252
  "resource": "media.libraries.jobs",
15973
16253
  "method": "cancel",
15974
16254
  "summary": "Cancel job",
15975
- "description": "Cancel a queued or running generation job. Outputs already produced remain in the library; poll or read the returned Job to confirm its status.",
16255
+ "description": "Cancel a queued or running generation job. Outputs already produced remain in the library; poll or read the returned Job to confirm its status. A video cannot be cancelled once the provider has started generating it: the call answers 409 JOB_INVALID_STATE (details VIDEO_ALREADY_RUNNING), and the task still finishes, is saved to the library and is charged.",
15976
16256
  "http": "POST",
15977
16257
  "path": "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel",
15978
16258
  "streaming": "no",
@@ -16353,7 +16633,7 @@ export const operations = [
16353
16633
  "resource": "media.videos",
16354
16634
  "method": "generate",
16355
16635
  "summary": "Generate video",
16356
- "description": "Generate one or more videos from a text prompt and store them straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still generate. mode says what the video is anchored to: text needs only a prompt, image animates the existing image named by first_frame, and first_last interpolates between first_frame and last_frame. The frames must be image or sticker assets of the same library; a fetchable URL for each is sent to the model and recorded in the produced asset’s provenance. mode reference and output gif are refused with OPERATION_NOT_SUPPORTED in this release, and negative_prompt, references and an unknown mode are refused before anything is charged. Every output lands in the library as a video asset as soon as it is ready — there is no candidate state and nothing expires, so outputs.save is not part of this lane. Generation is billed per second by the model usage it consumes, at the same prices as the model API, and the job records the charge in usage; a refused request costs nothing. The response is 202 with a queued Job whose type is video and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced assets from the library. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice. Example: POST /media/v1/libraries/default/videos/generations with {\"prompt\":\"A red kite above a calm sea at sunrise\",\"mode\":\"text\",\"n\":1}.",
16636
+ "description": "Generate one or more videos from a text prompt and store them straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still generate. mode says what the video is anchored to: text needs only a prompt, image animates the existing image named by first_frame, and first_last interpolates between first_frame and last_frame. The frames must be image or sticker assets of the same library; a fetchable URL for each is sent to the model and recorded in the produced asset’s provenance. mode reference and output gif are refused with OPERATION_NOT_SUPPORTED in this release, and negative_prompt, references and an unknown mode are refused before anything is charged. Every output lands in the library as a video asset as soon as it is ready — there is no candidate state and nothing expires, so outputs.save is not part of this lane. Generation is billed per second by the model usage it consumes, at the same prices as the model API, and the job reports the charge in usage (US dollars, six decimals) and each produced asset carries its own part in provenance.cost; a refused request costs nothing. When the job is done, tell the person the usage amount and give them each output’s viewer_url. The response is 202 with a queued Job whose type is video and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced assets from the library. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice. Example: POST /media/v1/libraries/default/videos/generations with {\"prompt\":\"A red kite above a calm sea at sunrise\",\"mode\":\"text\",\"n\":1}.",
16357
16637
  "http": "POST",
16358
16638
  "path": "/media/v1/libraries/{library_id}/videos/generations",
16359
16639
  "streaming": "no",
@@ -20437,12 +20717,12 @@ export const operations = [
20437
20717
  }
20438
20718
  },
20439
20719
  {
20440
- "resource": "sandbox.sandboxes",
20441
- "method": "timeout",
20442
- "summary": "Set sandbox timeout",
20443
- "description": "Set the timeout for the sandbox. The sandbox will expire x seconds from the time of the request. Calling this method multiple times overwrites the TTL, each time using the current timestamp as the starting point to measure the timeout duration.",
20720
+ "resource": "sandbox.sandboxes.tasks",
20721
+ "method": "create",
20722
+ "summary": "Start a task whose output is pushed off the machine while it runs",
20723
+ "description": "Run a long command whose output you will read back afterwards, including after the sandbox is deleted, instead of holding one connection open. Use this for builds, test runs and batch jobs; use commands.run for a short command whose output you want inline. The machine's resident daemon pushes the task's stdout/stderr to Praxis storage as it is produced, so the log survives the sandbox (seven days) and can be read in ranges with sandboxes.tasks.log; no vendor exec channel is involved. The command and the shipping credential travel to the daemon in its process environment, never in argv, so neither appears in the machine's process list. Only a full sandbox whose daemon advertises log-ship can run a task; any other machine returns PROVIDER_UNSUPPORTED with the reason. Returns 201 with the task id; starting is not waiting — poll the log to follow the task, and the final marker's exitCode for how it ended.",
20444
20724
  "http": "POST",
20445
- "path": "/sandbox/v1/sandboxes/{sandboxID}/timeout",
20725
+ "path": "/sandbox/v1/sandboxes/{sandboxID}/tasks",
20446
20726
  "streaming": "no",
20447
20727
  "pagination": false,
20448
20728
  "pathParams": [
@@ -20454,24 +20734,43 @@ export const operations = [
20454
20734
  ],
20455
20735
  "query": [],
20456
20736
  "body": {
20457
- "required": false,
20737
+ "required": true,
20458
20738
  "fields": [
20459
20739
  {
20460
- "name": "timeout",
20461
- "type": "integer",
20740
+ "name": "command",
20741
+ "type": "string",
20462
20742
  "required": true,
20463
- "description": "New lifetime in seconds from now, replacing the current expiry rather than adding to it. May shorten the remaining lifetime."
20743
+ "description": "The shell command to run. It is handed to the sandbox's daemon in an environment variable, never in argv, so it stays out of the machine's process list; at most 64 KiB of UTF-8."
20744
+ },
20745
+ {
20746
+ "name": "cwd",
20747
+ "type": "string",
20748
+ "required": false,
20749
+ "description": "Absolute working directory inside the sandbox. Omit to run where the daemon starts; a relative path is rejected rather than resolved against a home directory you did not choose."
20750
+ },
20751
+ {
20752
+ "name": "maxLifetimeSecs",
20753
+ "type": "integer",
20754
+ "required": false,
20755
+ "description": "How long the task may run, in seconds; omit for 7200, the ceiling is 86400 (a day). The pushing credential lives 30 minutes past this, so the daemon can still deliver a task that ran to its limit."
20756
+ },
20757
+ {
20758
+ "name": "files",
20759
+ "type": "array",
20760
+ "itemType": "object",
20761
+ "required": false,
20762
+ "description": "Up to eight extra files to ship alongside the task's own output, for example a structured events log the task appends to. Each gets its own stream, read with name on sandboxes.tasks.log."
20464
20763
  }
20465
20764
  ]
20466
20765
  }
20467
20766
  },
20468
20767
  {
20469
- "resource": "sandbox.sandboxes.upgrade",
20470
- "method": "create",
20471
- "summary": "Upgrade to a full sandbox",
20472
- "description": "Move a light sandbox to a full environment when its capabilities are insufficient. Stops active processes and terminals, migrates files, and preserves the sandbox ID and name. Reconnect with the new envdAccessToken. A failed migration preserves source files but does not restart terminated processes.",
20473
- "http": "POST",
20474
- "path": "/sandbox/v1/sandboxes/{sandboxID}/upgrade",
20768
+ "resource": "sandbox.sandboxes.tasks",
20769
+ "method": "retrieveLog",
20770
+ "summary": "Read a range of a task's pushed output",
20771
+ "description": "Follow a task started with sandboxes.tasks.start, or read it long after its sandbox is gone. This reads Praxis storage and never the machine, so the answer is the same whether the sandbox is running, paused or deleted; the log is kept for seven days. Read in ranges: pass the previous answer's nextOffset as offset to continue, and stop when done is true. done means the final marker exists and the whole stream has been read, and only then do exitCode and size carry the task's outcome. text is UTF-8 decoded by bytes and backs up to a whole character when a cut would split one, so a page never ends mid-character; size, offset and nextOffset all count bytes. Ownership comes from the sandbox's index row while it exists and from the record written when the task started once it does not, so a sandbox id you own keeps answering after the sandbox is deleted. A task that was never started, or one belonging to another organization, returns NOT_FOUND.",
20772
+ "http": "GET",
20773
+ "path": "/sandbox/v1/sandboxes/{sandboxID}/tasks/{taskID}/log",
20475
20774
  "streaming": "no",
20476
20775
  "pagination": false,
20477
20776
  "pathParams": [
@@ -20479,11 +20778,82 @@ export const operations = [
20479
20778
  "name": "sandboxID",
20480
20779
  "sdkName": "sandboxID",
20481
20780
  "description": "Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404."
20781
+ },
20782
+ {
20783
+ "name": "taskID",
20784
+ "sdkName": "taskID",
20785
+ "description": "Task id returned by sandboxes.tasks.start; a task id is opaque and is not the sandbox id."
20482
20786
  }
20483
20787
  ],
20484
- "query": [],
20485
- "body": {
20486
- "required": true,
20788
+ "query": [
20789
+ {
20790
+ "name": "name",
20791
+ "type": "string",
20792
+ "required": false,
20793
+ "description": "Which stream to read: output is the task's own stdout and stderr and is the default; any other value must be one of the file names passed to sandboxes.tasks.start. 1 to 32 characters of a-z, 0-9 or a hyphen."
20794
+ },
20795
+ {
20796
+ "name": "offset",
20797
+ "type": "integer",
20798
+ "required": false,
20799
+ "description": "First byte of the range, counted from the start of the stream. Omit to start at 0; resume with the previous answer's nextOffset."
20800
+ },
20801
+ {
20802
+ "name": "limit",
20803
+ "type": "integer",
20804
+ "required": false,
20805
+ "description": "How many bytes to return, at most 4 MiB; omit for 1 MiB. A smaller limit follows a running task with less data per call."
20806
+ }
20807
+ ]
20808
+ },
20809
+ {
20810
+ "resource": "sandbox.sandboxes",
20811
+ "method": "timeout",
20812
+ "summary": "Set sandbox timeout",
20813
+ "description": "Set the timeout for the sandbox. The sandbox will expire x seconds from the time of the request. Calling this method multiple times overwrites the TTL, each time using the current timestamp as the starting point to measure the timeout duration.",
20814
+ "http": "POST",
20815
+ "path": "/sandbox/v1/sandboxes/{sandboxID}/timeout",
20816
+ "streaming": "no",
20817
+ "pagination": false,
20818
+ "pathParams": [
20819
+ {
20820
+ "name": "sandboxID",
20821
+ "sdkName": "sandboxID",
20822
+ "description": "Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404."
20823
+ }
20824
+ ],
20825
+ "query": [],
20826
+ "body": {
20827
+ "required": false,
20828
+ "fields": [
20829
+ {
20830
+ "name": "timeout",
20831
+ "type": "integer",
20832
+ "required": true,
20833
+ "description": "New lifetime in seconds from now, replacing the current expiry rather than adding to it. May shorten the remaining lifetime."
20834
+ }
20835
+ ]
20836
+ }
20837
+ },
20838
+ {
20839
+ "resource": "sandbox.sandboxes.upgrade",
20840
+ "method": "create",
20841
+ "summary": "Upgrade to a full sandbox",
20842
+ "description": "Move a light sandbox to a full environment when its capabilities are insufficient. Stops active processes and terminals, migrates files, and preserves the sandbox ID and name. Reconnect with the new envdAccessToken. A failed migration preserves source files but does not restart terminated processes.",
20843
+ "http": "POST",
20844
+ "path": "/sandbox/v1/sandboxes/{sandboxID}/upgrade",
20845
+ "streaming": "no",
20846
+ "pagination": false,
20847
+ "pathParams": [
20848
+ {
20849
+ "name": "sandboxID",
20850
+ "sdkName": "sandboxID",
20851
+ "description": "Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404."
20852
+ }
20853
+ ],
20854
+ "query": [],
20855
+ "body": {
20856
+ "required": true,
20487
20857
  "fields": [
20488
20858
  {
20489
20859
  "name": "templateID",
@@ -22122,7 +22492,7 @@ export const operations = [
22122
22492
  "name": "time",
22123
22493
  "type": "string",
22124
22494
  "required": false,
22125
- "description": "When this entry happens in the story, such as 2037 or 民国二十四年冬; at most 40 characters, and an empty string records no time. It is shown beside the entry and reaches the writer with it."
22495
+ "description": "When this entry happens in the story, such as 2037, 1931 年 4 月 or 第 3 天; at most 40 characters, and an empty string records no time. The 脉络 timeline orders entries by the first and last number in it, so a time without a digit (民国二十四年冬) sits in 未定时间. It is shown beside the entry and reaches the writer with it."
22126
22496
  },
22127
22497
  {
22128
22498
  "name": "tracking",
@@ -22140,7 +22510,7 @@ export const operations = [
22140
22510
  "type": "array",
22141
22511
  "itemType": "object",
22142
22512
  "required": false,
22143
- "description": "Entries this one relates to at creation, each naming the target and the label that reads from this entry to it."
22513
+ "description": "Entries this one relates to at creation, each naming the target and the label that reads from this entry to it. Between two events the cause holds the relation to its effect (label such as 导致); 参与 marks a participant."
22144
22514
  },
22145
22515
  {
22146
22516
  "name": "images",
@@ -22969,7 +23339,7 @@ export const operations = [
22969
23339
  "resource": "studio.works",
22970
23340
  "method": "create",
22971
23341
  "summary": "Create a work with its goal",
22972
- "description": "Create a work: one deliverable piece plus everything around it. Pass the goal the writing serves — the reader, what that reader should get or do, the one-sentence message and the constraints — and the original brief the person gave in their own words. A slug is derived from the title unless you pass one. The work starts with no drafts; create the first one with the drafts create call, because the genre decides the structure. A reference library belongs to the work and is created with it, so the setting written later stays this work's own; pass based_on to start from another work and have its setting and styles copied in as your own.",
23342
+ "description": "Create a work: one deliverable piece plus everything around it. Pass the goal the writing serves: the reader, what that reader should get or do, and the one-sentence message. The work holds the goal only; the requirement for one piece (the person's text, its points, a length, banned wording) belongs to that draft and is given with the drafts create call, so a novel's plot points and length never bind the promotion derived from it. A slug is derived from the title unless you pass one. The work starts with no drafts; create the first one with the drafts create call, because the genre decides the structure. A reference library belongs to the work and is created with it, so the setting written later stays this work's own; pass based_on to start from another work and have its setting and styles copied in as your own.",
22973
23343
  "http": "POST",
22974
23344
  "path": "/studio/v1/works",
22975
23345
  "streaming": "no",
@@ -22995,13 +23365,7 @@ export const operations = [
22995
23365
  "name": "goal",
22996
23366
  "type": "object",
22997
23367
  "required": true,
22998
- "description": "What this work is for: who reads it, what that reader should get or do, the one message it carries, and the limits it is written under."
22999
- },
23000
- {
23001
- "name": "brief",
23002
- "type": "object",
23003
- "required": false,
23004
- "description": "The original requirement as it arrives with a new work: the person's text, any attached source files, and the points split from it."
23368
+ "description": "What this work is for: who reads it, what that reader should get or do, and the one message it carries. Limits such as a length belong to a draft's brief, not to the goal; a goal with constraints or any other unknown field answers INVALID_PARAMS."
23005
23369
  },
23006
23370
  {
23007
23371
  "name": "codexes",
@@ -23136,7 +23500,7 @@ export const operations = [
23136
23500
  "name": "goal",
23137
23501
  "type": "object",
23138
23502
  "required": false,
23139
- "description": "What this work is for: who reads it, what that reader should get or do, the one message it carries, and the limits it is written under."
23503
+ "description": "What this work is for: who reads it, what that reader should get or do, and the one message it carries. Limits such as a length belong to a draft's brief, not to the goal; a goal with constraints or any other unknown field answers INVALID_PARAMS."
23140
23504
  },
23141
23505
  {
23142
23506
  "name": "codexes",
@@ -23172,69 +23536,6 @@ export const operations = [
23172
23536
  ]
23173
23537
  }
23174
23538
  },
23175
- {
23176
- "resource": "studio.works",
23177
- "method": "updateBrief",
23178
- "summary": "Add to or correct the original brief",
23179
- "description": "Extend the original brief: append text, attach files, add points taken from an outline, edit one point, or drop a point. Points are how the software checks that every requirement landed in a written unit, so split the person's outline into points here rather than burying them in prose. The brief carries its own revision, separate from the work and from each draft.",
23180
- "http": "PATCH",
23181
- "path": "/studio/v1/works/{work}/brief",
23182
- "streaming": "no",
23183
- "pagination": false,
23184
- "pathParams": [
23185
- {
23186
- "name": "work",
23187
- "sdkName": "work",
23188
- "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."
23189
- }
23190
- ],
23191
- "query": [],
23192
- "body": {
23193
- "required": true,
23194
- "fields": [
23195
- {
23196
- "name": "expected_revision",
23197
- "type": "integer",
23198
- "required": false,
23199
- "description": "Brief revision the caller read; a mismatch is refused with REVISION_CONFLICT rather than merged."
23200
- },
23201
- {
23202
- "name": "text",
23203
- "type": "string",
23204
- "required": false,
23205
- "description": "Text to append to the stored brief, added after what is already there and never replacing it."
23206
- },
23207
- {
23208
- "name": "attachments",
23209
- "type": "array",
23210
- "itemType": "string",
23211
- "required": false,
23212
- "description": "Source files to keep with the brief, added to the ones already attached."
23213
- },
23214
- {
23215
- "name": "add_points",
23216
- "type": "array",
23217
- "itemType": "object",
23218
- "required": false,
23219
- "description": "New requirement points to split out of the brief; each receives the next free key in order. A plain string is a unit point; pass { text, scope: work } for a constraint on the whole piece (period, voice, point of view, cast, words to avoid)."
23220
- },
23221
- {
23222
- "name": "edit_points",
23223
- "type": "array",
23224
- "itemType": "object",
23225
- "required": false,
23226
- "description": "Existing points to reword, each naming the key it keeps and the text that replaces it."
23227
- },
23228
- {
23229
- "name": "remove_points",
23230
- "type": "array",
23231
- "itemType": "string",
23232
- "required": false,
23233
- "description": "Keys of points to drop; a dropped key is never reused, so later points keep their own keys."
23234
- }
23235
- ]
23236
- }
23237
- },
23238
23539
  {
23239
23540
  "resource": "studio.works.drafts",
23240
23541
  "method": "list",
@@ -23279,6 +23580,12 @@ export const operations = [
23279
23580
  "required": true,
23280
23581
  "description": "Genre key the draft is written in, taken from the genre list; it decides the unit kinds, the properties and the checks."
23281
23582
  },
23583
+ {
23584
+ "name": "key",
23585
+ "type": "string",
23586
+ "required": false,
23587
+ "description": "Short name of the draft inside the work, used in every later path in place of its id; omit it and the genre gives one (novel, xiaohongshu, a numbered one when taken). Lowercase letters, digits and hyphens."
23588
+ },
23282
23589
  {
23283
23590
  "name": "title",
23284
23591
  "type": "string",
@@ -23314,6 +23621,12 @@ export const operations = [
23314
23621
  "required": false,
23315
23622
  "description": "What the new draft should be derived from, so the service can record the source revision for later staleness checks."
23316
23623
  },
23624
+ {
23625
+ "name": "brief",
23626
+ "type": "object",
23627
+ "required": false,
23628
+ "description": "The requirement as it arrives with a new draft: the person's text, any attached source files, the constraints and the points split from it."
23629
+ },
23317
23630
  {
23318
23631
  "name": "props",
23319
23632
  "type": "object",
@@ -23439,6 +23752,80 @@ export const operations = [
23439
23752
  ]
23440
23753
  }
23441
23754
  },
23755
+ {
23756
+ "resource": "studio.works.drafts",
23757
+ "method": "updateBrief",
23758
+ "summary": "Add to or correct a draft's brief",
23759
+ "description": "Extend the brief of one draft: append text, attach files, replace its constraints, add points taken from an outline, edit one point, or drop a point. The brief belongs to the draft, not the work: the length and plot points of a novel do not bind the promotion derived from it. Points are how the software checks that every requirement landed in a written unit, so split the person's outline into points here rather than burying them in prose; the constraints (a length such as 3000 字以内, banned wording) are what the length check and the context pack read. The brief carries its own revision, separate from the draft's.",
23760
+ "http": "PATCH",
23761
+ "path": "/studio/v1/works/{work}/drafts/{draft}/brief",
23762
+ "streaming": "no",
23763
+ "pagination": false,
23764
+ "pathParams": [
23765
+ {
23766
+ "name": "work",
23767
+ "sdkName": "work",
23768
+ "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."
23769
+ },
23770
+ {
23771
+ "name": "draft",
23772
+ "sdkName": "draft",
23773
+ "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."
23774
+ }
23775
+ ],
23776
+ "query": [],
23777
+ "body": {
23778
+ "required": true,
23779
+ "fields": [
23780
+ {
23781
+ "name": "expected_revision",
23782
+ "type": "integer",
23783
+ "required": false,
23784
+ "description": "Brief revision the caller read; a mismatch is refused with REVISION_CONFLICT rather than merged."
23785
+ },
23786
+ {
23787
+ "name": "text",
23788
+ "type": "string",
23789
+ "required": false,
23790
+ "description": "Text to append to the stored brief, added after what is already there and never replacing it."
23791
+ },
23792
+ {
23793
+ "name": "constraints",
23794
+ "type": "string",
23795
+ "required": false,
23796
+ "description": "The draft's constraints as one text, replacing what is there; pass an empty string to clear them."
23797
+ },
23798
+ {
23799
+ "name": "attachments",
23800
+ "type": "array",
23801
+ "itemType": "string",
23802
+ "required": false,
23803
+ "description": "Source files to keep with the brief, added to the ones already attached."
23804
+ },
23805
+ {
23806
+ "name": "add_points",
23807
+ "type": "array",
23808
+ "itemType": "object",
23809
+ "required": false,
23810
+ "description": "New requirement points to split out of the brief; each receives the next free key in order. A plain string is a unit point; pass { text, scope: work } for a constraint on the whole piece (period, voice, point of view, cast, words to avoid)."
23811
+ },
23812
+ {
23813
+ "name": "edit_points",
23814
+ "type": "array",
23815
+ "itemType": "object",
23816
+ "required": false,
23817
+ "description": "Existing points to reword, each naming the key it keeps and the text that replaces it."
23818
+ },
23819
+ {
23820
+ "name": "remove_points",
23821
+ "type": "array",
23822
+ "itemType": "string",
23823
+ "required": false,
23824
+ "description": "Keys of points to drop; a dropped key is never reused, so later points keep their own keys."
23825
+ }
23826
+ ]
23827
+ }
23828
+ },
23442
23829
  {
23443
23830
  "resource": "studio.works.drafts",
23444
23831
  "method": "retrieveExport",
@@ -23473,6 +23860,108 @@ export const operations = [
23473
23860
  }
23474
23861
  ]
23475
23862
  },
23863
+ {
23864
+ "resource": "studio.works.drafts.foreshadows",
23865
+ "method": "list",
23866
+ "summary": "List the foreshadows of a draft",
23867
+ "description": "List the threads this draft sets up and pays off: each foreshadow names the unit that plants it, the unit that pays it off (or null while it is still open) and a note on what was planted. The foreshadow_paid check reports every open one in the draft's status and review, so a mystery or serial that plants a clue in chapter 2 is reminded until a later chapter answers it.",
23868
+ "http": "GET",
23869
+ "path": "/studio/v1/works/{work}/drafts/{draft}/foreshadows",
23870
+ "streaming": "no",
23871
+ "pagination": false,
23872
+ "pathParams": [
23873
+ {
23874
+ "name": "work",
23875
+ "sdkName": "work",
23876
+ "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."
23877
+ },
23878
+ {
23879
+ "name": "draft",
23880
+ "sdkName": "draft",
23881
+ "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."
23882
+ }
23883
+ ],
23884
+ "query": []
23885
+ },
23886
+ {
23887
+ "resource": "studio.works.drafts.foreshadows",
23888
+ "method": "delete",
23889
+ "summary": "Drop a foreshadow",
23890
+ "description": "Remove a thread that is no longer in the story. Deleting a key that does not exist answers the same as deleting one that did.",
23891
+ "http": "DELETE",
23892
+ "path": "/studio/v1/works/{work}/drafts/{draft}/foreshadows/{key}",
23893
+ "streaming": "no",
23894
+ "pagination": false,
23895
+ "pathParams": [
23896
+ {
23897
+ "name": "work",
23898
+ "sdkName": "work",
23899
+ "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."
23900
+ },
23901
+ {
23902
+ "name": "draft",
23903
+ "sdkName": "draft",
23904
+ "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."
23905
+ },
23906
+ {
23907
+ "name": "key",
23908
+ "sdkName": "key",
23909
+ "description": "Your name for the thread inside this work, such as 改造告示 or the-photo; the same key updates the same foreshadow."
23910
+ }
23911
+ ],
23912
+ "query": []
23913
+ },
23914
+ {
23915
+ "resource": "studio.works.drafts.foreshadows",
23916
+ "method": "update",
23917
+ "summary": "Plant or pay off a foreshadow",
23918
+ "description": "Record a thread under a key of your choice: the unit that plants it and, once written, the unit that pays it off. Call it when you write the setup (payoff left out or null) and again with the same key when a later unit answers it. Both units must belong to this draft. An open foreshadow is reported by the foreshadow_paid check until it has a payoff, and a unit's context pack does not need to be asked for it.",
23919
+ "http": "PUT",
23920
+ "path": "/studio/v1/works/{work}/drafts/{draft}/foreshadows/{key}",
23921
+ "streaming": "no",
23922
+ "pagination": false,
23923
+ "pathParams": [
23924
+ {
23925
+ "name": "work",
23926
+ "sdkName": "work",
23927
+ "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."
23928
+ },
23929
+ {
23930
+ "name": "draft",
23931
+ "sdkName": "draft",
23932
+ "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."
23933
+ },
23934
+ {
23935
+ "name": "key",
23936
+ "sdkName": "key",
23937
+ "description": "Your name for the thread inside this work, such as 改造告示 or the-photo; the same key updates the same foreshadow."
23938
+ }
23939
+ ],
23940
+ "query": [],
23941
+ "body": {
23942
+ "required": true,
23943
+ "fields": [
23944
+ {
23945
+ "name": "setup",
23946
+ "type": "string",
23947
+ "required": true,
23948
+ "description": "Unit that plants the thread, by number such as 1 or by unt_ identifier; it must belong to this draft."
23949
+ },
23950
+ {
23951
+ "name": "payoff",
23952
+ "type": "string",
23953
+ "required": false,
23954
+ "description": "Unit that pays it off, by number or identifier, in this draft; leave it out or null while it is still open."
23955
+ },
23956
+ {
23957
+ "name": "note",
23958
+ "type": "string",
23959
+ "required": false,
23960
+ "description": "What was planted, in a sentence."
23961
+ }
23962
+ ]
23963
+ }
23964
+ },
23476
23965
  {
23477
23966
  "resource": "studio.works.drafts",
23478
23967
  "method": "retrieveOutline",
@@ -23807,6 +24296,95 @@ export const operations = [
23807
24296
  ]
23808
24297
  }
23809
24298
  },
24299
+ {
24300
+ "resource": "studio.works.progressions",
24301
+ "method": "list",
24302
+ "summary": "List the setting changes of a work",
24303
+ "description": "List the recorded changes, all of them or those of one entry. Use it to check what a character has been through before writing the next unit, or to find a progression to delete.",
24304
+ "http": "GET",
24305
+ "path": "/studio/v1/works/{work}/progressions",
24306
+ "streaming": "no",
24307
+ "pagination": false,
24308
+ "pathParams": [
24309
+ {
24310
+ "name": "work",
24311
+ "sdkName": "work",
24312
+ "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."
24313
+ }
24314
+ ],
24315
+ "query": [
24316
+ {
24317
+ "name": "entry",
24318
+ "type": "string",
24319
+ "required": false,
24320
+ "description": "Only the changes of this entry, by name, alias or ent_ identifier."
24321
+ }
24322
+ ]
24323
+ },
24324
+ {
24325
+ "resource": "studio.works.progressions",
24326
+ "method": "create",
24327
+ "summary": "Record how a setting entry changes at a unit",
24328
+ "description": "Record that an entry changes as of one unit: a character is injured in chapter 6, a shop moves in chapter 9, a secret becomes known. The library keeps what an entry is from the start; a progression keeps what becomes true later. A unit's context pack shows an entry's changes up to and including that unit (截至本单元的设定变化) and withholds the later ones, so chapter 3 is not written with chapter 6's injury. Name the entry by its name, an alias or its ent_ identifier, and the unit by its number.",
24329
+ "http": "POST",
24330
+ "path": "/studio/v1/works/{work}/progressions",
24331
+ "streaming": "no",
24332
+ "pagination": false,
24333
+ "pathParams": [
24334
+ {
24335
+ "name": "work",
24336
+ "sdkName": "work",
24337
+ "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."
24338
+ }
24339
+ ],
24340
+ "query": [],
24341
+ "body": {
24342
+ "required": true,
24343
+ "fields": [
24344
+ {
24345
+ "name": "entry",
24346
+ "type": "string",
24347
+ "required": true,
24348
+ "description": "Entry that changes, by name, alias or ent_ identifier; it must be in a library this work mounts."
24349
+ },
24350
+ {
24351
+ "name": "unit",
24352
+ "type": "string",
24353
+ "required": true,
24354
+ "description": "Unit from which the change is true, by number such as 3 or by unt_ identifier."
24355
+ },
24356
+ {
24357
+ "name": "change",
24358
+ "type": "string",
24359
+ "required": true,
24360
+ "description": "What changes, in a sentence a writer can respect."
24361
+ }
24362
+ ]
24363
+ }
24364
+ },
24365
+ {
24366
+ "resource": "studio.works.progressions",
24367
+ "method": "delete",
24368
+ "summary": "Delete a setting change",
24369
+ "description": "Remove one recorded change, by the prg_ identifier the list returns; to correct a change, delete it and record the new one.",
24370
+ "http": "DELETE",
24371
+ "path": "/studio/v1/works/{work}/progressions/{id}",
24372
+ "streaming": "no",
24373
+ "pagination": false,
24374
+ "pathParams": [
24375
+ {
24376
+ "name": "work",
24377
+ "sdkName": "work",
24378
+ "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."
24379
+ },
24380
+ {
24381
+ "name": "id",
24382
+ "sdkName": "id",
24383
+ "description": "The progression to delete, by its identifier from the list."
24384
+ }
24385
+ ],
24386
+ "query": []
24387
+ },
23810
24388
  {
23811
24389
  "resource": "studio.works.renditions",
23812
24390
  "method": "list",
@@ -24560,7 +25138,7 @@ export const operations = [
24560
25138
  "name": "budget_tokens",
24561
25139
  "type": "integer",
24562
25140
  "required": false,
24563
- "description": "Token budget the pack must fit into; the reference and previous sections are cut to fit it while the genre, brief and unit sections always arrive whole. Omit it to use the service default."
25141
+ "description": "Token budget the pack must fit into; the reference, timeline and previous sections are cut to fit it while the genre, brief and unit sections always arrive whole. Omit it to use the service default."
24564
25142
  }
24565
25143
  ]
24566
25144
  },