@deepraxis/sdk 0.1.1-dev.2efda8a → 0.1.1-dev.30a84bf

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.
@@ -134,7 +134,7 @@ export const operations = [
134
134
  "type": "array",
135
135
  "itemType": "object",
136
136
  "required": false,
137
- "description": "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time."
137
+ "description": "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {\"type\": \"ticket\", \"enabled\": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time."
138
138
  },
139
139
  {
140
140
  "name": "kind",
@@ -7251,6 +7251,16 @@ export const operations = [
7251
7251
  "required": false,
7252
7252
  "description": "可省略;账户使用 default 项目。"
7253
7253
  },
7254
+ {
7255
+ "name": "visibility",
7256
+ "type": "string",
7257
+ "enum": [
7258
+ "private",
7259
+ "organization"
7260
+ ],
7261
+ "required": false,
7262
+ "description": "谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。"
7263
+ },
7254
7264
  {
7255
7265
  "name": "keepAlive",
7256
7266
  "type": "boolean",
@@ -7442,6 +7452,42 @@ export const operations = [
7442
7452
  }
7443
7453
  ]
7444
7454
  },
7455
+ {
7456
+ "resource": "browser.sessions",
7457
+ "method": "retrieveFrame",
7458
+ "summary": "读取会话只读画面帧",
7459
+ "description": "读取会话的一张只读画面帧(JPEG 字节)。创建者可读,同组织其他成员只在该会话声明为组织可见时可读;其余情况一律返回 404 SESSION_NOT_FOUND,不提示会话是否存在。响应体没有任何可控制浏览器的凭据,且不接受任何动作参数。",
7460
+ "http": "GET",
7461
+ "path": "/browser/v1/sessions/{sessionId}/frame",
7462
+ "streaming": "no",
7463
+ "pagination": false,
7464
+ "pathParams": [
7465
+ {
7466
+ "name": "sessionId",
7467
+ "sdkName": "sessionId",
7468
+ "description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
7469
+ }
7470
+ ],
7471
+ "query": []
7472
+ },
7473
+ {
7474
+ "resource": "browser.sessions",
7475
+ "method": "frames",
7476
+ "summary": "订阅会话只读画面",
7477
+ "description": "SSE:只推送只读画面帧,event 为 frame 或 end,data 为帧的 JSON 或 null;帧 data 是 JPEG 的 base64 编码,ts 是浏览器产生该帧的时刻(epoch 毫秒),约每秒最多 5 帧。评论 ping 每 15 秒一次,end 后关闭。这条通道与 /sessions/{sessionId}/stream 相互独立:它的消息只含画面,绝不含 wsUrl、signingKey、connectUrl、debuggerUrl、debuggerFullscreenUrl。创建者可订阅,同组织其他成员只在该会话声明为组织可见时可订阅;其余情况一律返回 404 SESSION_NOT_FOUND。",
7478
+ "http": "GET",
7479
+ "path": "/browser/v1/sessions/{sessionId}/frames",
7480
+ "streaming": "always",
7481
+ "pagination": false,
7482
+ "pathParams": [
7483
+ {
7484
+ "name": "sessionId",
7485
+ "sdkName": "sessionId",
7486
+ "description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
7487
+ }
7488
+ ],
7489
+ "query": []
7490
+ },
7445
7491
  {
7446
7492
  "resource": "browser.sessions.handoff",
7447
7493
  "method": "create",
@@ -7538,6 +7584,16 @@ export const operations = [
7538
7584
  "type": "string",
7539
7585
  "required": true,
7540
7586
  "description": "当前观看者的稳定标识;同一观看者重复心跳应使用相同值,长度为 1–128 个 UTF-16 代码单元。"
7587
+ },
7588
+ {
7589
+ "name": "kind",
7590
+ "type": "string",
7591
+ "enum": [
7592
+ "control",
7593
+ "readonly"
7594
+ ],
7595
+ "required": false,
7596
+ "description": "观看者类型:control 是需要控制浏览器的客户端,readonly 是只读观看者。只读观看者发送 control 也会按 readonly 记录。"
7541
7597
  }
7542
7598
  ]
7543
7599
  }
@@ -11445,6 +11501,82 @@ export const operations = [
11445
11501
  ]
11446
11502
  }
11447
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
+ },
11448
11580
  {
11449
11581
  "resource": "devops.environments.checkpoints",
11450
11582
  "method": "list",
@@ -11819,30 +11951,12 @@ export const operations = [
11819
11951
  "query": []
11820
11952
  },
11821
11953
  {
11822
- "resource": "devops.projects.environments",
11823
- "method": "list",
11824
- "summary": "List environments",
11825
- "description": "List the project's environments in promotion order: development first, production last. order is the promotion sequence, so the environment before the one you are promoting into is the one that must have verified the release first. Each entry carries its tier, whether it requires approval, and whether its queue is idle or busy; a busy queue names the promotion holding it and how many wait behind. This collection is not paged: a project has few environments and the whole ordered list is the answer.",
11826
- "http": "GET",
11827
- "path": "/devops/v1/projects/{project}/environments",
11828
- "streaming": "no",
11829
- "pagination": false,
11830
- "pathParams": [
11831
- {
11832
- "name": "project",
11833
- "sdkName": "project",
11834
- "description": "Identifies the project whose data you are reading, from the project list or create answer."
11835
- }
11836
- ],
11837
- "query": []
11838
- },
11839
- {
11840
- "resource": "devops.projects.flags",
11954
+ "resource": "devops.projects.changes",
11841
11955
  "method": "list",
11842
- "summary": "List flags",
11843
- "description": "List the project's flags with their per-environment configuration, newest first. Use it to find a flag by key when code names one, and to review the flags of a project — the entries carry lifecycle, staleness, the observation deadline and the removal ticket, which is what an expiry review reads. filter accepts exactly one term, lifecycle=archived, to list the archived flags instead of the live ones; any other filter or orderBy is refused rather than ignored. totalSize is answered on the first page only.",
11956
+ "summary": "List changes",
11957
+ "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.",
11844
11958
  "http": "GET",
11845
- "path": "/devops/v1/projects/{project}/flags",
11959
+ "path": "/devops/v1/projects/{project}/changes",
11846
11960
  "streaming": "no",
11847
11961
  "pagination": false,
11848
11962
  "pathParams": [
@@ -11869,17 +11983,17 @@ export const operations = [
11869
11983
  "name": "filter",
11870
11984
  "type": "string",
11871
11985
  "required": false,
11872
- "description": "Exactly one filter term is accepted: lifecycle=archived lists the archived flags, which are hidden by default. Any other field, operator or value is refused with INVALID_ARGUMENT rather than ignored."
11986
+ "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."
11873
11987
  }
11874
11988
  ]
11875
11989
  },
11876
11990
  {
11877
- "resource": "devops.projects.flags",
11991
+ "resource": "devops.projects.changes",
11878
11992
  "method": "create",
11879
- "summary": "Create a flag",
11880
- "description": "Create a feature flag in a project: its key, what kind of flag it is, the values it can serve, and which variation is served when it is off. The key is what code names, so it is unique per project and a key already in use is refused with FLAG_KEY_TAKEN rather than reused — an archived flag keeps its key. owner, observeUntil and removalTicket carry the flag's lifecycle: a release or experiment flag expects an observation deadline and the ticket that removes it, and a flag missing them is refused with FLAG_LIFECYCLE_INCOMPLETE. A new flag starts with every environment off, so creating one changes no runtime behaviour; turn an environment on with the environment update.",
11993
+ "summary": "Create a change",
11994
+ "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.",
11881
11995
  "http": "POST",
11882
- "path": "/devops/v1/projects/{project}/flags",
11996
+ "path": "/devops/v1/projects/{project}/changes",
11883
11997
  "streaming": "no",
11884
11998
  "pagination": false,
11885
11999
  "pathParams": [
@@ -11894,100 +12008,76 @@ export const operations = [
11894
12008
  "required": true,
11895
12009
  "fields": [
11896
12010
  {
11897
- "name": "key",
11898
- "type": "string",
11899
- "required": true,
11900
- "description": "The name code will call this flag by; unique inside the project, and a key already in use is refused with FLAG_KEY_TAKEN rather than reused."
11901
- },
11902
- {
11903
- "name": "name",
11904
- "type": "string",
11905
- "required": true,
11906
- "description": "Display name of the flag, shown wherever it is listed."
11907
- },
11908
- {
11909
- "name": "description",
11910
- "type": "string",
11911
- "required": false,
11912
- "description": "What this flag does to the product, so a later reader does not have to trace the code to find out."
11913
- },
11914
- {
11915
- "name": "kind",
12011
+ "name": "type",
11916
12012
  "type": "string",
11917
12013
  "enum": [
11918
- "release",
11919
- "experiment",
11920
- "ops",
11921
- "permission"
12014
+ "feat",
12015
+ "fix",
12016
+ "perf",
12017
+ "refactor",
12018
+ "docs",
12019
+ "test",
12020
+ "build",
12021
+ "ci",
12022
+ "chore",
12023
+ "revert"
11922
12024
  ],
11923
12025
  "required": true,
11924
- "description": "What sort of flag this is; it decides the expected lifetime, and a release or experiment flag must carry an observation deadline."
12026
+ "description": "What the work is, in commitlint vocabulary; together with slug it forms the change id <type>/<slug>."
11925
12027
  },
11926
12028
  {
11927
- "name": "valueType",
12029
+ "name": "slug",
11928
12030
  "type": "string",
11929
- "enum": [
11930
- "boolean",
11931
- "string",
11932
- "number",
11933
- "object"
11934
- ],
11935
- "required": true,
11936
- "description": "The type every variation must have; a variation of another type is refused."
11937
- },
11938
- {
11939
- "name": "variations",
11940
- "type": "array",
11941
- "itemType": "object",
11942
12031
  "required": true,
11943
- "description": "The values the flag can serve, at least two for a flag that decides anything; their ids are what defaults and rules name."
12032
+ "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."
11944
12033
  },
11945
12034
  {
11946
- "name": "defaults",
11947
- "type": "object",
12035
+ "name": "title",
12036
+ "type": "string",
11948
12037
  "required": true,
11949
- "description": "The variations a flag falls back to: what a caller that matches nothing gets when the flag is on, and what everyone gets when it is off."
12038
+ "description": "One line saying what the change is for, shown wherever the change is listed and used as the flag's name."
11950
12039
  },
11951
12040
  {
11952
- "name": "owner",
11953
- "type": "object",
12041
+ "name": "tickets",
12042
+ "type": "array",
12043
+ "itemType": "string",
11954
12044
  "required": false,
11955
- "description": "Who performed an action, so a state change or a run can be attributed rather than guessed at."
12045
+ "description": "Ticket references the change belongs to, as a magic word or a #number; omit it when there is none."
11956
12046
  },
11957
12047
  {
11958
- "name": "observeUntil",
11959
- "type": "string",
12048
+ "name": "withFlag",
12049
+ "type": "boolean",
11960
12050
  "required": false,
11961
- "description": "RFC 3339 UTC time this flag must be decided by; required for a release or experiment flag and refused with INVALID_ARGUMENT when it is missing."
12051
+ "description": "True to create a release flag keyed by the slug; omitted means true for feat and false for every other type."
11962
12052
  },
11963
12053
  {
11964
- "name": "removalTicket",
11965
- "type": "string",
12054
+ "name": "urgent",
12055
+ "type": "boolean",
11966
12056
  "required": false,
11967
- "description": "The ticket that will remove the flag and its code; giving it here is what makes the removal traceable from the flag itself."
12057
+ "description": "True for an urgent fix that may take the patch path with a recorded authorization to skip develop; omitted means false."
11968
12058
  },
11969
12059
  {
11970
- "name": "pullRequest",
12060
+ "name": "observeUntil",
11971
12061
  "type": "string",
11972
12062
  "required": false,
11973
- "description": "The pull request that declared this flag, when the flag comes from a code change rather than being created by hand."
12063
+ "description": "RFC 3339 UTC deadline by which the flag's observation must be decided; only used when the change creates a flag."
11974
12064
  },
11975
12065
  {
11976
12066
  "name": "requestId",
11977
12067
  "type": "string",
11978
12068
  "required": false,
11979
- "description": "Caller-chosen key that makes this create idempotent: repeating it answers the flag the first call created instead of refusing the key as taken."
12069
+ "description": "Caller-chosen key that makes a retry answer the change the first call made instead of creating another."
11980
12070
  }
11981
12071
  ]
11982
12072
  }
11983
12073
  },
11984
12074
  {
11985
- "resource": "devops.projects.promotions",
12075
+ "resource": "devops.projects.environments",
11986
12076
  "method": "list",
11987
- "summary": "List promotions",
11988
- "description": "List the project's promotions, newest first, across every environment. Use it to see what is queued, what is observing, and what finished recently, without reading each environment separately. A promotion in a terminal state stays in this list, which is how a caller tells \"never promoted\" apart from \"promoted and then rolled back\". Neither filter nor orderBy is accepted yet, so page through with pageToken instead of narrowing the query.",
12077
+ "summary": "List environments",
12078
+ "description": "List the project's environments in promotion order: development first, production last. order is the promotion sequence, so the environment before the one you are promoting into is the one that must have verified the release first. Each entry carries its tier, whether it requires approval, and whether its queue is idle or busy; a busy queue names the promotion holding it and how many wait behind. This collection is not paged: a project has few environments and the whole ordered list is the answer.",
11989
12079
  "http": "GET",
11990
- "path": "/devops/v1/projects/{project}/promotions",
12080
+ "path": "/devops/v1/projects/{project}/environments",
11991
12081
  "streaming": "no",
11992
12082
  "pagination": false,
11993
12083
  "pathParams": [
@@ -11997,28 +12087,50 @@ export const operations = [
11997
12087
  "description": "Identifies the project whose data you are reading, from the project list or create answer."
11998
12088
  }
11999
12089
  ],
12000
- "query": [
12090
+ "query": []
12091
+ },
12092
+ {
12093
+ "resource": "devops.projects.environments.targets",
12094
+ "method": "deleteState",
12095
+ "summary": "Delete a target's OpenTofu state",
12096
+ "description": "Delete the current OpenTofu state of one deploy target, as OpenTofu does when a workspace is deleted. The kept versions of earlier writes stay. While a lock is held the call must carry its ID, otherwise it answers 409 LOCK_CONFLICT. Deleting a state that does not exist succeeds.",
12097
+ "http": "DELETE",
12098
+ "path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
12099
+ "streaming": "no",
12100
+ "pagination": false,
12101
+ "pathParams": [
12001
12102
  {
12002
- "name": "pageSize",
12003
- "type": "integer",
12004
- "required": false,
12005
- "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."
12103
+ "name": "project",
12104
+ "sdkName": "project",
12105
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12006
12106
  },
12007
12107
  {
12008
- "name": "pageToken",
12108
+ "name": "environment",
12109
+ "sdkName": "environment",
12110
+ "description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
12111
+ },
12112
+ {
12113
+ "name": "target",
12114
+ "sdkName": "target",
12115
+ "description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
12116
+ }
12117
+ ],
12118
+ "query": [
12119
+ {
12120
+ "name": "ID",
12009
12121
  "type": "string",
12010
12122
  "required": false,
12011
- "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
12123
+ "description": "The ID of the lock this call holds, exactly as OpenTofu received it from the lock call. Required while a lock is held; a missing or different ID answers 409 LOCK_CONFLICT."
12012
12124
  }
12013
12125
  ]
12014
12126
  },
12015
12127
  {
12016
- "resource": "devops.projects.releases",
12017
- "method": "list",
12018
- "summary": "List releases",
12019
- "description": "List the project's releases, newest first. Use it to find the release a promotion should carry, or to see what has been released recently and whether any of it was abandoned. The list carries the render state and the abandoned flag, so a caller can skip a release that is still rendering or that was withdrawn without reading each one. Neither filter nor orderBy is accepted on this collection yet; a request that sends one is refused rather than silently ignored.",
12128
+ "resource": "devops.projects.environments.targets",
12129
+ "method": "retrieveState",
12130
+ "summary": "Read a target's OpenTofu state",
12131
+ "description": "Read the current OpenTofu state of one deploy target in one DevOps environment. This is the read half of the OpenTofu HTTP backend that `praxis devops deploy --engine tofu` configures: OpenTofu sends HTTP Basic with any username and a Praxis API key as the password, and the route accepts the ordinary Bearer key too. The answer is the state document exactly as the last write stored it. A target never deployed in this environment answers 404, which OpenTofu reads as an empty state.",
12020
12132
  "http": "GET",
12021
- "path": "/devops/v1/projects/{project}/releases",
12133
+ "path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
12022
12134
  "streaming": "no",
12023
12135
  "pagination": false,
12024
12136
  "pathParams": [
@@ -12026,30 +12138,27 @@ export const operations = [
12026
12138
  "name": "project",
12027
12139
  "sdkName": "project",
12028
12140
  "description": "Identifies the project whose data you are reading, from the project list or create answer."
12029
- }
12030
- ],
12031
- "query": [
12141
+ },
12032
12142
  {
12033
- "name": "pageSize",
12034
- "type": "integer",
12035
- "required": false,
12036
- "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."
12143
+ "name": "environment",
12144
+ "sdkName": "environment",
12145
+ "description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
12037
12146
  },
12038
12147
  {
12039
- "name": "pageToken",
12040
- "type": "string",
12041
- "required": false,
12042
- "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
12148
+ "name": "target",
12149
+ "sdkName": "target",
12150
+ "description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
12043
12151
  }
12044
- ]
12152
+ ],
12153
+ "query": []
12045
12154
  },
12046
12155
  {
12047
- "resource": "devops.projects.releases",
12156
+ "resource": "devops.projects.environments.targets.state",
12048
12157
  "method": "create",
12049
- "summary": "Create a release",
12050
- "description": "Create a release: an immutable snapshot of what will be deployed, named and fingerprinted once so later promotions can be compared against it. Send commit to release a commit as it stands, or base plus picks to build a patch release on a release that is already in production; the two shapes are exclusive and the patch shape is refused with PATCH_NOT_ELIGIBLE when the picks do not qualify. Rendering starts immediately and the answer reports its state; a promotion refuses a release that is still rendering with RELEASE_NOT_READY rather than deploying half of it. Set validateOnly to see the plan and the refusals without writing a release, and requestId to make a retry of the same call answer the first release instead of creating a second.",
12158
+ "summary": "Write a target's OpenTofu state",
12159
+ "description": "Store a new OpenTofu state for one deploy target. OpenTofu calls this after every apply, passing the lock ID it holds as ID. Each accepted write also keeps an immutable version of that state (the latest 50 per target are kept), so a rollout's state change can be audited. A state document is at most 1 MiB. A write whose serial is lower than the stored serial of the same lineage is a stale write and answers 409 STALE_SERIAL; re-run so OpenTofu reads the newer state first.",
12051
12160
  "http": "POST",
12052
- "path": "/devops/v1/projects/{project}/releases",
12161
+ "path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
12053
12162
  "streaming": "no",
12054
12163
  "pagination": false,
12055
12164
  "pathParams": [
@@ -12057,12 +12166,410 @@ export const operations = [
12057
12166
  "name": "project",
12058
12167
  "sdkName": "project",
12059
12168
  "description": "Identifies the project whose data you are reading, from the project list or create answer."
12060
- }
12061
- ],
12062
- "query": [],
12063
- "body": {
12064
- "required": true,
12065
- "fields": [
12169
+ },
12170
+ {
12171
+ "name": "environment",
12172
+ "sdkName": "environment",
12173
+ "description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
12174
+ },
12175
+ {
12176
+ "name": "target",
12177
+ "sdkName": "target",
12178
+ "description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
12179
+ }
12180
+ ],
12181
+ "query": [
12182
+ {
12183
+ "name": "ID",
12184
+ "type": "string",
12185
+ "required": false,
12186
+ "description": "The ID of the lock this call holds, exactly as OpenTofu received it from the lock call. Required while a lock is held; a missing or different ID answers 409 LOCK_CONFLICT."
12187
+ }
12188
+ ],
12189
+ "body": {
12190
+ "required": true,
12191
+ "fields": [
12192
+ {
12193
+ "name": "version",
12194
+ "type": "integer",
12195
+ "required": false,
12196
+ "description": "The state format version OpenTofu wrote."
12197
+ },
12198
+ {
12199
+ "name": "serial",
12200
+ "type": "integer",
12201
+ "required": true,
12202
+ "description": "Increases with every state change; a write lower than the stored serial of the same lineage is refused as stale."
12203
+ },
12204
+ {
12205
+ "name": "lineage",
12206
+ "type": "string",
12207
+ "required": true,
12208
+ "description": "Identifies one state history; it does not change across writes."
12209
+ }
12210
+ ]
12211
+ }
12212
+ },
12213
+ {
12214
+ "resource": "devops.projects.environments.targets.state",
12215
+ "method": "deleteLock",
12216
+ "summary": "Unlock a target's OpenTofu state",
12217
+ "description": "Release the lock on one target's state; this is the DELETE that `praxis devops deploy` configures as OpenTofu's unlock_method (the default UNLOCK verb on the state path works too). The lock ID is read from the lock info body, or from the ID query value. Releasing a lock that is not held succeeds; releasing it under a different ID answers 409 LOCK_CONFLICT.",
12218
+ "http": "DELETE",
12219
+ "path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock",
12220
+ "streaming": "no",
12221
+ "pagination": false,
12222
+ "pathParams": [
12223
+ {
12224
+ "name": "project",
12225
+ "sdkName": "project",
12226
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12227
+ },
12228
+ {
12229
+ "name": "environment",
12230
+ "sdkName": "environment",
12231
+ "description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
12232
+ },
12233
+ {
12234
+ "name": "target",
12235
+ "sdkName": "target",
12236
+ "description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
12237
+ }
12238
+ ],
12239
+ "query": [
12240
+ {
12241
+ "name": "ID",
12242
+ "type": "string",
12243
+ "required": false,
12244
+ "description": "The ID of the lock this call holds, exactly as OpenTofu received it from the lock call. Required while a lock is held; a missing or different ID answers 409 LOCK_CONFLICT."
12245
+ }
12246
+ ],
12247
+ "body": {
12248
+ "required": false,
12249
+ "fields": [
12250
+ {
12251
+ "name": "ID",
12252
+ "type": "string",
12253
+ "required": true,
12254
+ "description": "Identifies the lock; every write and the unlock must carry it."
12255
+ },
12256
+ {
12257
+ "name": "Operation",
12258
+ "type": "string",
12259
+ "required": false,
12260
+ "description": "What the holder is doing, such as OperationTypeApply."
12261
+ },
12262
+ {
12263
+ "name": "Who",
12264
+ "type": "string",
12265
+ "required": false,
12266
+ "description": "The holder, user@host, shown to the caller that finds the lock held."
12267
+ },
12268
+ {
12269
+ "name": "Created",
12270
+ "type": "string",
12271
+ "required": false,
12272
+ "description": "When the holder took the lock, RFC 3339."
12273
+ },
12274
+ {
12275
+ "name": "Path",
12276
+ "type": "string",
12277
+ "required": false,
12278
+ "description": "Where the holder keeps its working state, informational."
12279
+ }
12280
+ ]
12281
+ }
12282
+ },
12283
+ {
12284
+ "resource": "devops.projects.environments.targets.state.lock",
12285
+ "method": "create",
12286
+ "summary": "Lock a target's OpenTofu state",
12287
+ "description": "Take the lock on one target's state before OpenTofu plans or applies; this is the POST that `praxis devops deploy` configures as OpenTofu's lock_method (the default LOCK verb on the state path works too). Exactly one holder can hold the lock. A held lock answers 423 with the holder's lock info, which names who is deploying; wait for them or, if they are gone, release it with a force-unlock using the ID in that answer.",
12288
+ "http": "POST",
12289
+ "path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock",
12290
+ "streaming": "no",
12291
+ "pagination": false,
12292
+ "pathParams": [
12293
+ {
12294
+ "name": "project",
12295
+ "sdkName": "project",
12296
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12297
+ },
12298
+ {
12299
+ "name": "environment",
12300
+ "sdkName": "environment",
12301
+ "description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
12302
+ },
12303
+ {
12304
+ "name": "target",
12305
+ "sdkName": "target",
12306
+ "description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
12307
+ }
12308
+ ],
12309
+ "query": [],
12310
+ "body": {
12311
+ "required": true,
12312
+ "fields": [
12313
+ {
12314
+ "name": "ID",
12315
+ "type": "string",
12316
+ "required": true,
12317
+ "description": "Identifies the lock; every write and the unlock must carry it."
12318
+ },
12319
+ {
12320
+ "name": "Operation",
12321
+ "type": "string",
12322
+ "required": false,
12323
+ "description": "What the holder is doing, such as OperationTypeApply."
12324
+ },
12325
+ {
12326
+ "name": "Who",
12327
+ "type": "string",
12328
+ "required": false,
12329
+ "description": "The holder, user@host, shown to the caller that finds the lock held."
12330
+ },
12331
+ {
12332
+ "name": "Created",
12333
+ "type": "string",
12334
+ "required": false,
12335
+ "description": "When the holder took the lock, RFC 3339."
12336
+ },
12337
+ {
12338
+ "name": "Path",
12339
+ "type": "string",
12340
+ "required": false,
12341
+ "description": "Where the holder keeps its working state, informational."
12342
+ }
12343
+ ]
12344
+ }
12345
+ },
12346
+ {
12347
+ "resource": "devops.projects.flags",
12348
+ "method": "list",
12349
+ "summary": "List flags",
12350
+ "description": "List the project's flags with their per-environment configuration, newest first. Use it to find a flag by key when code names one, and to review the flags of a project — the entries carry lifecycle, staleness, the observation deadline and the removal ticket, which is what an expiry review reads. filter accepts exactly one term, lifecycle=archived, to list the archived flags instead of the live ones; any other filter or orderBy is refused rather than ignored. totalSize is answered on the first page only.",
12351
+ "http": "GET",
12352
+ "path": "/devops/v1/projects/{project}/flags",
12353
+ "streaming": "no",
12354
+ "pagination": false,
12355
+ "pathParams": [
12356
+ {
12357
+ "name": "project",
12358
+ "sdkName": "project",
12359
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12360
+ }
12361
+ ],
12362
+ "query": [
12363
+ {
12364
+ "name": "pageSize",
12365
+ "type": "integer",
12366
+ "required": false,
12367
+ "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."
12368
+ },
12369
+ {
12370
+ "name": "pageToken",
12371
+ "type": "string",
12372
+ "required": false,
12373
+ "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
12374
+ },
12375
+ {
12376
+ "name": "filter",
12377
+ "type": "string",
12378
+ "required": false,
12379
+ "description": "Exactly one filter term is accepted: lifecycle=archived lists the archived flags, which are hidden by default. Any other field, operator or value is refused with INVALID_ARGUMENT rather than ignored."
12380
+ }
12381
+ ]
12382
+ },
12383
+ {
12384
+ "resource": "devops.projects.flags",
12385
+ "method": "create",
12386
+ "summary": "Create a flag",
12387
+ "description": "Create a feature flag in a project: its key, what kind of flag it is, the values it can serve, and which variation is served when it is off. The key is what code names, so it is unique per project and a key already in use is refused with FLAG_KEY_TAKEN rather than reused — an archived flag keeps its key. owner, observeUntil and removalTicket carry the flag's lifecycle: a release or experiment flag expects an observation deadline and the ticket that removes it, and a flag missing them is refused with FLAG_LIFECYCLE_INCOMPLETE. A new flag starts with every environment off, so creating one changes no runtime behaviour; turn an environment on with the environment update.",
12388
+ "http": "POST",
12389
+ "path": "/devops/v1/projects/{project}/flags",
12390
+ "streaming": "no",
12391
+ "pagination": false,
12392
+ "pathParams": [
12393
+ {
12394
+ "name": "project",
12395
+ "sdkName": "project",
12396
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12397
+ }
12398
+ ],
12399
+ "query": [],
12400
+ "body": {
12401
+ "required": true,
12402
+ "fields": [
12403
+ {
12404
+ "name": "key",
12405
+ "type": "string",
12406
+ "required": true,
12407
+ "description": "The name code will call this flag by; unique inside the project, and a key already in use is refused with FLAG_KEY_TAKEN rather than reused."
12408
+ },
12409
+ {
12410
+ "name": "name",
12411
+ "type": "string",
12412
+ "required": true,
12413
+ "description": "Display name of the flag, shown wherever it is listed."
12414
+ },
12415
+ {
12416
+ "name": "description",
12417
+ "type": "string",
12418
+ "required": false,
12419
+ "description": "What this flag does to the product, so a later reader does not have to trace the code to find out."
12420
+ },
12421
+ {
12422
+ "name": "kind",
12423
+ "type": "string",
12424
+ "enum": [
12425
+ "release",
12426
+ "experiment",
12427
+ "ops",
12428
+ "permission"
12429
+ ],
12430
+ "required": true,
12431
+ "description": "What sort of flag this is; it decides the expected lifetime, and a release or experiment flag must carry an observation deadline."
12432
+ },
12433
+ {
12434
+ "name": "valueType",
12435
+ "type": "string",
12436
+ "enum": [
12437
+ "boolean",
12438
+ "string",
12439
+ "number",
12440
+ "object"
12441
+ ],
12442
+ "required": true,
12443
+ "description": "The type every variation must have; a variation of another type is refused."
12444
+ },
12445
+ {
12446
+ "name": "variations",
12447
+ "type": "array",
12448
+ "itemType": "object",
12449
+ "required": true,
12450
+ "description": "The values the flag can serve, at least two for a flag that decides anything; their ids are what defaults and rules name."
12451
+ },
12452
+ {
12453
+ "name": "defaults",
12454
+ "type": "object",
12455
+ "required": true,
12456
+ "description": "The variations a flag falls back to: what a caller that matches nothing gets when the flag is on, and what everyone gets when it is off."
12457
+ },
12458
+ {
12459
+ "name": "owner",
12460
+ "type": "object",
12461
+ "required": false,
12462
+ "description": "Who performed an action, so a state change or a run can be attributed rather than guessed at."
12463
+ },
12464
+ {
12465
+ "name": "observeUntil",
12466
+ "type": "string",
12467
+ "required": false,
12468
+ "description": "RFC 3339 UTC time this flag must be decided by; required for a release or experiment flag and refused with INVALID_ARGUMENT when it is missing."
12469
+ },
12470
+ {
12471
+ "name": "removalTicket",
12472
+ "type": "string",
12473
+ "required": false,
12474
+ "description": "The ticket that will remove the flag and its code; giving it here is what makes the removal traceable from the flag itself."
12475
+ },
12476
+ {
12477
+ "name": "pullRequest",
12478
+ "type": "string",
12479
+ "required": false,
12480
+ "description": "The pull request that declared this flag, when the flag comes from a code change rather than being created by hand."
12481
+ },
12482
+ {
12483
+ "name": "requestId",
12484
+ "type": "string",
12485
+ "required": false,
12486
+ "description": "Caller-chosen key that makes this create idempotent: repeating it answers the flag the first call created instead of refusing the key as taken."
12487
+ }
12488
+ ]
12489
+ }
12490
+ },
12491
+ {
12492
+ "resource": "devops.projects.promotions",
12493
+ "method": "list",
12494
+ "summary": "List promotions",
12495
+ "description": "List the project's promotions, newest first, across every environment. Use it to see what is queued, what is observing, and what finished recently, without reading each environment separately. A promotion in a terminal state stays in this list, which is how a caller tells \"never promoted\" apart from \"promoted and then rolled back\". Neither filter nor orderBy is accepted yet, so page through with pageToken instead of narrowing the query.",
12496
+ "http": "GET",
12497
+ "path": "/devops/v1/projects/{project}/promotions",
12498
+ "streaming": "no",
12499
+ "pagination": false,
12500
+ "pathParams": [
12501
+ {
12502
+ "name": "project",
12503
+ "sdkName": "project",
12504
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12505
+ }
12506
+ ],
12507
+ "query": [
12508
+ {
12509
+ "name": "pageSize",
12510
+ "type": "integer",
12511
+ "required": false,
12512
+ "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."
12513
+ },
12514
+ {
12515
+ "name": "pageToken",
12516
+ "type": "string",
12517
+ "required": false,
12518
+ "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
12519
+ }
12520
+ ]
12521
+ },
12522
+ {
12523
+ "resource": "devops.projects.releases",
12524
+ "method": "list",
12525
+ "summary": "List releases",
12526
+ "description": "List the project's releases, newest first. Use it to find the release a promotion should carry, or to see what has been released recently and whether any of it was abandoned. The list carries the render state and the abandoned flag, so a caller can skip a release that is still rendering or that was withdrawn without reading each one. Neither filter nor orderBy is accepted on this collection yet; a request that sends one is refused rather than silently ignored.",
12527
+ "http": "GET",
12528
+ "path": "/devops/v1/projects/{project}/releases",
12529
+ "streaming": "no",
12530
+ "pagination": false,
12531
+ "pathParams": [
12532
+ {
12533
+ "name": "project",
12534
+ "sdkName": "project",
12535
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12536
+ }
12537
+ ],
12538
+ "query": [
12539
+ {
12540
+ "name": "pageSize",
12541
+ "type": "integer",
12542
+ "required": false,
12543
+ "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."
12544
+ },
12545
+ {
12546
+ "name": "pageToken",
12547
+ "type": "string",
12548
+ "required": false,
12549
+ "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
12550
+ }
12551
+ ]
12552
+ },
12553
+ {
12554
+ "resource": "devops.projects.releases",
12555
+ "method": "create",
12556
+ "summary": "Create a release",
12557
+ "description": "Create a release: an immutable snapshot of what will be deployed, named and fingerprinted once so later promotions can be compared against it. Send commit to release a commit as it stands, or base plus picks to build a patch release on a release that is already in production; the two shapes are exclusive and the patch shape is refused with PATCH_NOT_ELIGIBLE when the picks do not qualify. Rendering starts immediately and the answer reports its state; a promotion refuses a release that is still rendering with RELEASE_NOT_READY rather than deploying half of it. Set validateOnly to see the plan and the refusals without writing a release, and requestId to make a retry of the same call answer the first release instead of creating a second.",
12558
+ "http": "POST",
12559
+ "path": "/devops/v1/projects/{project}/releases",
12560
+ "streaming": "no",
12561
+ "pagination": false,
12562
+ "pathParams": [
12563
+ {
12564
+ "name": "project",
12565
+ "sdkName": "project",
12566
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
12567
+ }
12568
+ ],
12569
+ "query": [],
12570
+ "body": {
12571
+ "required": true,
12572
+ "fields": [
12066
12573
  {
12067
12574
  "name": "commit",
12068
12575
  "type": "string",
@@ -14374,7 +14881,7 @@ export const operations = [
14374
14881
  "resource": "media.generation.capabilities",
14375
14882
  "method": "list",
14376
14883
  "summary": "Get generation capabilities",
14377
- "description": "Read what Praxis offers for each kind of generation — image, video and speech — before asking for 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; the video fields beside them 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. Generation is charged per unit and every output is stored in the library.",
14884
+ "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.",
14378
14885
  "http": "GET",
14379
14886
  "path": "/media/v1/generation/capabilities",
14380
14887
  "streaming": "no",
@@ -14593,7 +15100,7 @@ export const operations = [
14593
15100
  "resource": "media.libraries.assets",
14594
15101
  "method": "list",
14595
15102
  "summary": "List assets",
14596
- "description": "Upload content into an active library and return a Cloudinary-compatible resource. Use file for a multipart file, data URI, public HTTPS URL or same-owner file identifier. Reusing public_id overwrites by default; overwrite=false returns the existing resource. Chunk uploads require both chunk headers.",
15103
+ "description": "Upload content into an active library and return the stored asset. Use file for a multipart file, data URI, public HTTPS URL or same-owner file identifier. Reusing public_id overwrites by default; overwrite=false returns the existing asset. Chunk uploads require both chunk headers.",
14597
15104
  "http": "GET",
14598
15105
  "path": "/media/v1/libraries/{library_id}/assets",
14599
15106
  "streaming": "no",
@@ -14612,17 +15119,6 @@ export const operations = [
14612
15119
  "required": false,
14613
15120
  "description": "Filter by the exact organizational folder path; an empty value selects assets at the root. Descendant folders are not included."
14614
15121
  },
14615
- {
14616
- "name": "resource_type",
14617
- "type": "string",
14618
- "enum": [
14619
- "image",
14620
- "video",
14621
- "raw"
14622
- ],
14623
- "required": false,
14624
- "description": "image, video (including audio), raw; auto is accepted by Upload actions only, and listing with auto returns 400."
14625
- },
14626
15122
  {
14627
15123
  "name": "material_type",
14628
15124
  "type": "string",
@@ -14637,10 +15133,11 @@ export const operations = [
14637
15133
  "text_template",
14638
15134
  "animation_preset",
14639
15135
  "lut",
14640
- "transition_map"
15136
+ "transition_map",
15137
+ "file"
14641
15138
  ],
14642
15139
  "required": false,
14643
- "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."
15140
+ "description": "Filter assets to one kind of material. Audio is one material type; use audio_role to tell speech, music and sound effects apart. Omit to list every material type."
14644
15141
  },
14645
15142
  {
14646
15143
  "name": "cursor",
@@ -14755,18 +15252,6 @@ export const operations = [
14755
15252
  "required": false,
14756
15253
  "description": "Requires an image and visual understanding enabled in the library; otherwise returns UNSUPPORTED. Tagging is asynchronous."
14757
15254
  },
14758
- {
14759
- "name": "resource_type",
14760
- "type": "string",
14761
- "enum": [
14762
- "image",
14763
- "video",
14764
- "raw",
14765
- "auto"
14766
- ],
14767
- "required": false,
14768
- "description": "Upload category: image for images, video for video or audio, raw for unprocessed files, or auto to detect the category. Defaults to auto."
14769
- },
14770
15255
  {
14771
15256
  "name": "type",
14772
15257
  "type": "string",
@@ -14878,18 +15363,6 @@ export const operations = [
14878
15363
  "required": false,
14879
15364
  "description": "Minimum confidence for adding generated labels to tags, from 0 to 1 inclusive. Requires an image and enabled visual understanding; labels appear after processing completes."
14880
15365
  },
14881
- {
14882
- "name": "resource_type",
14883
- "type": "string",
14884
- "enum": [
14885
- "image",
14886
- "video",
14887
- "raw",
14888
- "auto"
14889
- ],
14890
- "required": false,
14891
- "description": "Upload category: image for images, video for video or audio, raw for unprocessed files, or auto to detect the category. Defaults to auto."
14892
- },
14893
15366
  {
14894
15367
  "name": "type",
14895
15368
  "type": "string",
@@ -15006,7 +15479,7 @@ export const operations = [
15006
15479
  "resource": "media.assets",
15007
15480
  "method": "edit",
15008
15481
  "summary": "Edit asset",
15009
- "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 charged through Router 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\"}}.",
15482
+ "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\"}}.",
15010
15483
  "http": "POST",
15011
15484
  "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
15012
15485
  "streaming": "no",
@@ -15037,7 +15510,7 @@ export const operations = [
15037
15510
  "name": "model",
15038
15511
  "type": "string",
15039
15512
  "required": false,
15040
- "description": "Router model that performs the edit; omit it to use the library default image model."
15513
+ "description": "Model that performs the edit; omit it to use the library default image model."
15041
15514
  },
15042
15515
  {
15043
15516
  "name": "asset_folder",
@@ -15274,7 +15747,7 @@ export const operations = [
15274
15747
  "resource": "media.speech",
15275
15748
  "method": "create",
15276
15749
  "summary": "Create speech",
15277
- "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 and voice is required; speed is passed to the provider unchanged, and instructions and language are refused with OPERATION_NOT_SUPPORTED in this release. A voice that names a voice material of this library is refused the same way — voice cloning opens with voices.create. 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 charged through Router 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.\",\"voice\":\"alloy\"}.",
15750
+ "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.",
15278
15751
  "http": "POST",
15279
15752
  "path": "/media/v1/libraries/{library_id}/audio/speech",
15280
15753
  "streaming": "no",
@@ -15299,8 +15772,8 @@ export const operations = [
15299
15772
  {
15300
15773
  "name": "voice",
15301
15774
  "type": "string",
15302
- "required": true,
15303
- "description": "Voice identifier or platform voice name."
15775
+ "required": false,
15776
+ "description": "Voice to synthesize with. Omit it to use the model’s default voice. The available values are the ids in the types.speech list of GET /media/v1/generation/capabilities, beside the voices of the model you are using, plus a voice material id of this same library. A voice that is neither is refused with INVALID_PARAMS before any job is created, so a wrong name costs nothing — read the capabilities first instead of guessing. Example ids for the platform speech model: zh_female_vv_uranus_bigtts (the default), zh_female_wenroumama_uranus_bigtts (a gentle female voice), zh_male_m191_uranus_bigtts. OpenAI voice names such as alloy are not valid here."
15304
15777
  },
15305
15778
  {
15306
15779
  "name": "instructions",
@@ -15506,7 +15979,7 @@ export const operations = [
15506
15979
  "resource": "media.images",
15507
15980
  "method": "generate",
15508
15981
  "summary": "Generate image",
15509
- "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 charged through Router 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\"}.",
15982
+ "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\"}.",
15510
15983
  "http": "POST",
15511
15984
  "path": "/media/v1/libraries/{library_id}/images/generations",
15512
15985
  "streaming": "no",
@@ -15526,7 +15999,7 @@ export const operations = [
15526
15999
  "name": "prompt",
15527
16000
  "type": "string",
15528
16001
  "required": true,
15529
- "description": "Text prompt describing the image to generate; Router forwards it to the image model unchanged."
16002
+ "description": "Text prompt describing the image to generate; the image model receives it unchanged."
15530
16003
  },
15531
16004
  {
15532
16005
  "name": "negative_prompt",
@@ -15543,8 +16016,13 @@ export const operations = [
15543
16016
  {
15544
16017
  "name": "size",
15545
16018
  "type": "string",
16019
+ "enum": [
16020
+ "1024x1024",
16021
+ "1024x1536",
16022
+ "1536x1024"
16023
+ ],
15546
16024
  "required": false,
15547
- "description": "Requested pixel size written as width x height. Router validates it against the chosen model and rejects an unsupported size with INVALID_PARAMS."
16025
+ "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."
15548
16026
  },
15549
16027
  {
15550
16028
  "name": "background",
@@ -15583,7 +16061,7 @@ export const operations = [
15583
16061
  "type": "array",
15584
16062
  "itemType": "object",
15585
16063
  "required": false,
15586
- "description": "Existing assets the model may use, each with the role it plays. Router answers REFERENCE_TYPE_MISMATCH when the chosen model cannot honour a role."
16064
+ "description": "Existing assets the model may use, each with the role it plays. A chosen model that cannot honour a role answers REFERENCE_TYPE_MISMATCH."
15587
16065
  },
15588
16066
  {
15589
16067
  "name": "seed",
@@ -15595,7 +16073,7 @@ export const operations = [
15595
16073
  "name": "model",
15596
16074
  "type": "string",
15597
16075
  "required": false,
15598
- "description": "Router model with image-generation capability; omit it to use the library default image model."
16076
+ "description": "Model with image-generation capability; omit it to use the library default image model."
15599
16077
  },
15600
16078
  {
15601
16079
  "name": "asset_folder",
@@ -15626,7 +16104,7 @@ export const operations = [
15626
16104
  "resource": "media.libraries.jobs",
15627
16105
  "method": "list",
15628
16106
  "summary": "List jobs",
15629
- "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.",
16107
+ "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.",
15630
16108
  "http": "GET",
15631
16109
  "path": "/media/v1/libraries/{library_id}/jobs",
15632
16110
  "streaming": "no",
@@ -15655,6 +16133,12 @@ export const operations = [
15655
16133
  "required": false,
15656
16134
  "description": "Filter jobs by their current status."
15657
16135
  },
16136
+ {
16137
+ "name": "pipeline_run_id",
16138
+ "type": "string",
16139
+ "required": false,
16140
+ "description": "Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch."
16141
+ },
15658
16142
  {
15659
16143
  "name": "limit",
15660
16144
  "type": "integer",
@@ -15813,10 +16297,11 @@ export const operations = [
15813
16297
  "text_template",
15814
16298
  "animation_preset",
15815
16299
  "lut",
15816
- "transition_map"
16300
+ "transition_map",
16301
+ "file"
15817
16302
  ],
15818
16303
  "required": false,
15819
- "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."
16304
+ "description": "What this asset is as a reusable material. Always present: a file whose specific kind cannot be identified is file."
15820
16305
  }
15821
16306
  ]
15822
16307
  }
@@ -15882,7 +16367,7 @@ export const operations = [
15882
16367
  "type": "array",
15883
16368
  "itemType": "string",
15884
16369
  "enum": [
15885
- "resource_type",
16370
+ "material_type",
15886
16371
  "format",
15887
16372
  "asset_folder",
15888
16373
  "processing_state"
@@ -15955,10 +16440,11 @@ export const operations = [
15955
16440
  "text_template",
15956
16441
  "animation_preset",
15957
16442
  "lut",
15958
- "transition_map"
16443
+ "transition_map",
16444
+ "file"
15959
16445
  ],
15960
16446
  "required": false,
15961
- "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."
16447
+ "description": "What this asset is as a reusable material. Always present: a file whose specific kind cannot be identified is file."
15962
16448
  }
15963
16449
  ]
15964
16450
  }
@@ -16075,7 +16561,7 @@ export const operations = [
16075
16561
  "resource": "media.videos",
16076
16562
  "method": "generate",
16077
16563
  "summary": "Generate video",
16078
- "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; Router is sent a fetchable URL for each, 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 charged per second through Router 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}.",
16564
+ "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}.",
16079
16565
  "http": "POST",
16080
16566
  "path": "/media/v1/libraries/{library_id}/videos/generations",
16081
16567
  "streaming": "no",
@@ -16095,7 +16581,7 @@ export const operations = [
16095
16581
  "name": "prompt",
16096
16582
  "type": "string",
16097
16583
  "required": true,
16098
- "description": "Text prompt describing the video to generate; Router forwards it to the video model unchanged."
16584
+ "description": "Text prompt describing the video to generate; the video model receives it unchanged."
16099
16585
  },
16100
16586
  {
16101
16587
  "name": "negative_prompt",
@@ -16138,7 +16624,7 @@ export const operations = [
16138
16624
  "name": "duration_seconds",
16139
16625
  "type": "integer",
16140
16626
  "required": false,
16141
- "description": "Requested video length in seconds. Router validates it against the chosen model’s supported durations and rejects an unsupported value with INVALID_PARAMS."
16627
+ "description": "Requested video length in seconds. The chosen model’s supported durations are validated against it and an unsupported value is rejected with INVALID_PARAMS."
16142
16628
  },
16143
16629
  {
16144
16630
  "name": "resolution",
@@ -16150,13 +16636,13 @@ export const operations = [
16150
16636
  "4k"
16151
16637
  ],
16152
16638
  "required": false,
16153
- "description": "Requested output resolution; Router validates it against the chosen model."
16639
+ "description": "Requested output resolution, validated against the chosen model."
16154
16640
  },
16155
16641
  {
16156
16642
  "name": "aspect_ratio",
16157
16643
  "type": "string",
16158
16644
  "required": false,
16159
- "description": "Output aspect ratio written as width:height; defaults to 16:9. Router validates it against the chosen model and rejects an unsupported ratio with INVALID_PARAMS."
16645
+ "description": "Output aspect ratio written as width:height; defaults to 16:9. The chosen model is validated against it and an unsupported ratio is rejected with INVALID_PARAMS."
16160
16646
  },
16161
16647
  {
16162
16648
  "name": "generate_audio",
@@ -16190,7 +16676,7 @@ export const operations = [
16190
16676
  "name": "model",
16191
16677
  "type": "string",
16192
16678
  "required": false,
16193
- "description": "Router model with video-generation capability; omit it to use the library default video model."
16679
+ "description": "Model with video-generation capability; omit it to use the library default video model."
16194
16680
  },
16195
16681
  {
16196
16682
  "name": "asset_folder",
@@ -17648,7 +18134,9 @@ export const operations = [
17648
18134
  "openai.images.generations",
17649
18135
  "openai.responses",
17650
18136
  "openai.videos",
17651
- "typesafe.systemone"
18137
+ "typesafe.systemone",
18138
+ "volcengine.music",
18139
+ "volcengine.voice_clone"
17652
18140
  ],
17653
18141
  "required": false,
17654
18142
  "description": "Match any comma-separated declared protocol ID; omitted or empty includes all models. Combined with type and output_modalities using AND. Invalid IDs return 400 with all legal values."
@@ -19527,6 +20015,50 @@ export const operations = [
19527
20015
  }
19528
20016
  ]
19529
20017
  },
20018
+ {
20019
+ "resource": "sandbox.events.sandboxes",
20020
+ "method": "retrieve",
20021
+ "summary": "Get sandbox events",
20022
+ "description": "Read one sandbox's lifecycle events, newest first by default. Unlike every other read on this face, it answers for a sandbox whose machine has ENDED (killed or failed) — a sandbox's cause of death is readable here even after its files are gone. The killed event carries eventData.terminationReason (the platform's own reason: requested, lease_expired, max_running, provider_lost, start_failed, retention, admin, unknown) and eventData.kill_reason (the E2B-shaped bucket: request, timeout, admin, orphaned, unknown); the updated event carries expiresAt. Page with offset, limit (1–100, default 10), orderAsc and repeatable types. An ended sandbox that is never going to come back also answers SANDBOX_EXPIRED (410) with terminationReason on its files and commands.",
20023
+ "http": "GET",
20024
+ "path": "/sandbox/v1/events/sandboxes/{sandboxID}",
20025
+ "streaming": "no",
20026
+ "pagination": false,
20027
+ "pathParams": [
20028
+ {
20029
+ "name": "sandboxID",
20030
+ "sdkName": "sandboxID",
20031
+ "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."
20032
+ }
20033
+ ],
20034
+ "query": [
20035
+ {
20036
+ "name": "offset",
20037
+ "type": "integer",
20038
+ "required": false,
20039
+ "description": "Number of the newest events to skip before collecting the page; omit to start at the first one. Use it with limit to walk pages: the next page is offset + limit."
20040
+ },
20041
+ {
20042
+ "name": "limit",
20043
+ "type": "integer",
20044
+ "required": false,
20045
+ "description": "Page size from 1 to 100; defaults to 10. A larger value returns INVALID_PARAMS rather than being clipped."
20046
+ },
20047
+ {
20048
+ "name": "orderAsc",
20049
+ "type": "boolean",
20050
+ "required": false,
20051
+ "description": "true returns the oldest event first, false or omitted returns the newest first. Only the literal spellings true and false are accepted."
20052
+ },
20053
+ {
20054
+ "name": "types",
20055
+ "type": "array",
20056
+ "itemType": "string",
20057
+ "required": false,
20058
+ "description": "Filter events to the provided event types"
20059
+ }
20060
+ ]
20061
+ },
19530
20062
  {
19531
20063
  "resource": "sandbox.sandboxes",
19532
20064
  "method": "list",
@@ -20112,6 +20644,96 @@ export const operations = [
20112
20644
  ]
20113
20645
  }
20114
20646
  },
20647
+ {
20648
+ "resource": "sandbox.sandboxes.tasks",
20649
+ "method": "create",
20650
+ "summary": "Start a task whose output is pushed off the machine while it runs",
20651
+ "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.",
20652
+ "http": "POST",
20653
+ "path": "/sandbox/v1/sandboxes/{sandboxID}/tasks",
20654
+ "streaming": "no",
20655
+ "pagination": false,
20656
+ "pathParams": [
20657
+ {
20658
+ "name": "sandboxID",
20659
+ "sdkName": "sandboxID",
20660
+ "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."
20661
+ }
20662
+ ],
20663
+ "query": [],
20664
+ "body": {
20665
+ "required": true,
20666
+ "fields": [
20667
+ {
20668
+ "name": "command",
20669
+ "type": "string",
20670
+ "required": true,
20671
+ "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."
20672
+ },
20673
+ {
20674
+ "name": "cwd",
20675
+ "type": "string",
20676
+ "required": false,
20677
+ "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."
20678
+ },
20679
+ {
20680
+ "name": "maxLifetimeSecs",
20681
+ "type": "integer",
20682
+ "required": false,
20683
+ "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."
20684
+ },
20685
+ {
20686
+ "name": "files",
20687
+ "type": "array",
20688
+ "itemType": "object",
20689
+ "required": false,
20690
+ "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."
20691
+ }
20692
+ ]
20693
+ }
20694
+ },
20695
+ {
20696
+ "resource": "sandbox.sandboxes.tasks",
20697
+ "method": "retrieveLog",
20698
+ "summary": "Read a range of a task's pushed output",
20699
+ "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.",
20700
+ "http": "GET",
20701
+ "path": "/sandbox/v1/sandboxes/{sandboxID}/tasks/{taskID}/log",
20702
+ "streaming": "no",
20703
+ "pagination": false,
20704
+ "pathParams": [
20705
+ {
20706
+ "name": "sandboxID",
20707
+ "sdkName": "sandboxID",
20708
+ "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."
20709
+ },
20710
+ {
20711
+ "name": "taskID",
20712
+ "sdkName": "taskID",
20713
+ "description": "Task id returned by sandboxes.tasks.start; a task id is opaque and is not the sandbox id."
20714
+ }
20715
+ ],
20716
+ "query": [
20717
+ {
20718
+ "name": "name",
20719
+ "type": "string",
20720
+ "required": false,
20721
+ "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."
20722
+ },
20723
+ {
20724
+ "name": "offset",
20725
+ "type": "integer",
20726
+ "required": false,
20727
+ "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."
20728
+ },
20729
+ {
20730
+ "name": "limit",
20731
+ "type": "integer",
20732
+ "required": false,
20733
+ "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."
20734
+ }
20735
+ ]
20736
+ },
20115
20737
  {
20116
20738
  "resource": "sandbox.sandboxes",
20117
20739
  "method": "timeout",
@@ -20219,6 +20841,12 @@ export const operations = [
20219
20841
  "type": "integer",
20220
20842
  "required": false,
20221
20843
  "description": "Execution timeout in milliseconds, from 1 to 3600000 (1 hour); defaults to 600000 (10 minutes). In background mode this limits process runtime; expiry records exit code 124."
20844
+ },
20845
+ {
20846
+ "name": "progressTimeoutMs",
20847
+ "type": "integer",
20848
+ "required": false,
20849
+ "description": "Foreground commands only, off by default: end this command once it goes this many milliseconds (1000 to 3600000) without writing a single byte to stdout or stderr, and answer COMMAND_NO_PROGRESS (504) with the output received so far and lastOutputAt. The sandbox itself keeps running, so decide afterwards whether to read what it produced or stop it with DELETE. A slow command that keeps producing output is never ended by it; if the program buffers its output, turn buffering off first, for example PYTHONUNBUFFERED=1 or stdbuf -oL. Passing it together with background true is refused with INVALID_PARAMS."
20222
20850
  }
20223
20851
  ]
20224
20852
  }
@@ -21520,7 +22148,7 @@ export const operations = [
21520
22148
  "resource": "studio.codexes",
21521
22149
  "method": "list",
21522
22150
  "summary": "List the reference libraries of this organization",
21523
- "description": "List the reference libraries this API key organization owns, each with how many entries it holds, so you can choose the one a work draws on. Continue with next_page_token until the answer stops carrying one. A library is shared across works, so the list is the whole organization's rather than one work's.",
22151
+ "description": "List the reference libraries this API key organization owns, each with how many entries it holds, so you can choose the one a work draws on. Continue with next_page_token until the answer stops carrying one. Pass work to read one work's own library alone; leave it out for every library the organization owns.",
21524
22152
  "http": "GET",
21525
22153
  "path": "/studio/v1/codexes",
21526
22154
  "streaming": "no",
@@ -21538,6 +22166,12 @@ export const operations = [
21538
22166
  "type": "string",
21539
22167
  "required": false,
21540
22168
  "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."
22169
+ },
22170
+ {
22171
+ "name": "work",
22172
+ "type": "string",
22173
+ "required": false,
22174
+ "description": "Narrow the list to what belongs to one work, by its wk_ identifier, which is how one work's own setting is told apart from the organization's shared material; omit it to list everything this organization owns."
21541
22175
  }
21542
22176
  ]
21543
22177
  },
@@ -21545,7 +22179,7 @@ export const operations = [
21545
22179
  "resource": "studio.codexes",
21546
22180
  "method": "create",
21547
22181
  "summary": "Create a reference library",
21548
- "description": "Create a reference library: a shared store of the people, places, products and facts a piece draws on, reusable across works. Attach it to a work with the work update call, and the entries it holds then reach the context packs of that work's units. A library is not private to one work, so the same brand facts can serve every piece that mentions them.",
22182
+ "description": "Create a reference library: a store of the people, places, products and facts a piece draws on. Attach it to a work with the work update call, and the entries it holds then reach the context packs of that work's units. A library made this way is shared across works, which suits brand facts several pieces mention; the library a work needs for its own setting is created with the work itself, and the work list call finds it by filtering on work.",
21549
22183
  "http": "POST",
21550
22184
  "path": "/studio/v1/codexes",
21551
22185
  "streaming": "no",
@@ -21695,7 +22329,7 @@ export const operations = [
21695
22329
  "resource": "studio.codexes.entries",
21696
22330
  "method": "create",
21697
22331
  "summary": "Add an entry to a reference library",
21698
- "description": "Add one entry: a character, a place, a product, a source of facts. Give it the type the genre uses, the name the text will mention, and the description and facts that should reach a writer when it is mentioned. Aliases and excluded phrases keep detection honest, so a common word inside an idiom is not mistaken for the entry. A name already used in the library is refused.",
22332
+ "description": "Add one entry: a character, a place, a product, a source of facts. Give it the type the genre uses, the name the text will mention, and the description, notes, facts and story time that should reach a writer when it is mentioned. Attach a picture gallery when the entry should be looked at as well as read. Aliases and excluded phrases keep detection honest, so a common word inside an idiom is not mistaken for the entry. A name already used in the library is refused.",
21699
22333
  "http": "POST",
21700
22334
  "path": "/studio/v1/codexes/{codex}/entries",
21701
22335
  "streaming": "no",
@@ -21738,6 +22372,12 @@ export const operations = [
21738
22372
  "required": true,
21739
22373
  "description": "Name as the text will mention it; it must be unique inside this library after normalization, and it is what a unit claims when it links this entry."
21740
22374
  },
22375
+ {
22376
+ "name": "group",
22377
+ "type": "string",
22378
+ "required": false,
22379
+ "description": "Free-text group to file this entry under, such as a layer of the setting, a faction or a cast, so people and later sessions find related entries together; leave it out or send an empty string for no group. At most 60 characters."
22380
+ },
21741
22381
  {
21742
22382
  "name": "aliases",
21743
22383
  "type": "array",
@@ -21774,7 +22414,13 @@ export const operations = [
21774
22414
  "name": "notes",
21775
22415
  "type": "string",
21776
22416
  "required": false,
21777
- "description": "Notes for people only, which never reach a writer's context pack."
22417
+ "description": "Notes on this entry, which reach the writer's context pack on the line after the description and the facts; an empty string adds no line. Write here what the text must respect, not a private remark."
22418
+ },
22419
+ {
22420
+ "name": "time",
22421
+ "type": "string",
22422
+ "required": false,
22423
+ "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."
21778
22424
  },
21779
22425
  {
21780
22426
  "name": "tracking",
@@ -21792,14 +22438,14 @@ export const operations = [
21792
22438
  "type": "array",
21793
22439
  "itemType": "object",
21794
22440
  "required": false,
21795
- "description": "Entries this one relates to at creation, each naming the target and the label that reads from this entry to it."
22441
+ "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."
21796
22442
  },
21797
22443
  {
21798
22444
  "name": "images",
21799
22445
  "type": "array",
21800
- "itemType": "string",
22446
+ "itemType": "object",
21801
22447
  "required": false,
21802
- "description": "Images to attach, referenced by file identifiers that belong to this organization."
22448
+ "description": "Picture gallery of this entry, in write order: send pictures with a name and a description, or send a bare file identifier when the picture has no name yet and it is stored with both empty."
21803
22449
  }
21804
22450
  ]
21805
22451
  }
@@ -21831,7 +22477,7 @@ export const operations = [
21831
22477
  "resource": "studio.codexes.entries",
21832
22478
  "method": "retrieve",
21833
22479
  "summary": "Read one reference entry",
21834
- "description": "Read one entry in full: its description, its fact ledger, its relations to other entries, its detection settings and its images. Read it before changing it, because an update replaces the fields it names rather than merging them. The entry is addressed by its name in this library, or by its ent_ identifier.",
22480
+ "description": "Read one entry in full: its description, its notes, its fact ledger, its relations to other entries, its story time, its detection settings and its picture gallery. Read it before changing it, because an update replaces the fields it names rather than merging them. The entry is addressed by its name in this library, or by its ent_ identifier.",
21835
22481
  "http": "GET",
21836
22482
  "path": "/studio/v1/codexes/{codex}/entries/{entry}",
21837
22483
  "streaming": "no",
@@ -21854,7 +22500,7 @@ export const operations = [
21854
22500
  "resource": "studio.codexes.entries",
21855
22501
  "method": "update",
21856
22502
  "summary": "Change what a reference entry says",
21857
- "description": "Change one entry: its type, its name, its aliases, its description, its facts, its notes, its tracking setting, its images or its relations. Send update_mask naming exactly the fields you change, because a field the mask leaves out keeps its value while a list field the mask names is replaced whole. Renaming an entry changes what the text has to mention for detection to find it.",
22503
+ "description": "Change one entry: its type, its name, its aliases, its description, its facts, its notes, its story time, its tracking setting, its picture gallery or its relations. Send update_mask naming exactly the fields you change, because a field the mask leaves out keeps its value while a list field the mask names is replaced whole. Renaming an entry changes what the text has to mention for detection to find it.",
21858
22504
  "http": "PATCH",
21859
22505
  "path": "/studio/v1/codexes/{codex}/entries/{entry}",
21860
22506
  "streaming": "no",
@@ -21909,6 +22555,12 @@ export const operations = [
21909
22555
  "required": false,
21910
22556
  "description": "New name for this entry, which also changes what the text has to mention for detection to find it."
21911
22557
  },
22558
+ {
22559
+ "name": "group",
22560
+ "type": "string",
22561
+ "required": false,
22562
+ "description": "New group, replacing the previous one when group is named in the update mask; an empty string removes the entry from its group. At most 60 characters."
22563
+ },
21912
22564
  {
21913
22565
  "name": "aliases",
21914
22566
  "type": "array",
@@ -21945,7 +22597,13 @@ export const operations = [
21945
22597
  "name": "notes",
21946
22598
  "type": "string",
21947
22599
  "required": false,
21948
- "description": "New notes for people only, which never reach a writer's context pack."
22600
+ "description": "New notes on this entry, replacing the previous ones; they reach the writer's context pack on the line after the description and the facts, and an empty string removes that line."
22601
+ },
22602
+ {
22603
+ "name": "time",
22604
+ "type": "string",
22605
+ "required": false,
22606
+ "description": "New story time for this entry, replacing the previous one; at most 40 characters, and an empty string removes the time."
21949
22607
  },
21950
22608
  {
21951
22609
  "name": "tracking",
@@ -21968,9 +22626,9 @@ export const operations = [
21968
22626
  {
21969
22627
  "name": "images",
21970
22628
  "type": "array",
21971
- "itemType": "string",
22629
+ "itemType": "object",
21972
22630
  "required": false,
21973
- "description": "Complete set of images, replacing the previous ones."
22631
+ "description": "Complete picture gallery for this entry, replacing the previous one and keeping the order you send; a picture left out stops being shown beside the entry."
21974
22632
  }
21975
22633
  ]
21976
22634
  }
@@ -22032,86 +22690,22 @@ export const operations = [
22032
22690
  ]
22033
22691
  },
22034
22692
  {
22035
- "resource": "studio.platforms",
22036
- "method": "retrieve",
22037
- "summary": "Read the rules of one platform",
22038
- "description": "Read one platform in full: the format it consumes, how it receives a finished piece, the preview fidelity the Console can offer, the limits on title, body, image count and aspect, and whether a connected channel is required. Read this before creating a rendition, and again when validation reports that the piece breaks a platform limit.",
22039
- "http": "GET",
22040
- "path": "/studio/v1/platforms/{platform}",
22041
- "streaming": "no",
22042
- "pagination": false,
22043
- "pathParams": [
22044
- {
22045
- "name": "platform",
22046
- "sdkName": "platform",
22047
- "description": "Versioned platform key from the platform list, such as x@1 or xiaohongshu@1; the version suffix is part of the key."
22048
- }
22049
- ],
22050
- "query": []
22051
- },
22052
- {
22053
- "resource": "studio.reviewers",
22054
- "method": "list",
22055
- "summary": "List the reviewers of the organization",
22056
- "description": "List the reviewers this organization can draw on: one entry per reviewer agent, with its kind, its display name, the tags it matches seats on, the model family it runs and whether it is active. Pass kind to see only expert or only audience reviewers. Read it before setting a work's seats, so the seat conditions match reviewers that exist, and after REVIEWER_POOL_EMPTY to see which reviewers are missing or inactive. Entries are the organization's own reviewer agents; a reviewer of another organization is never listed. The answer is one page; keep following next_page_token while it is present.",
22057
- "http": "GET",
22058
- "path": "/studio/v1/reviewers",
22059
- "streaming": "no",
22060
- "pagination": false,
22061
- "pathParams": [],
22062
- "query": [
22063
- {
22064
- "name": "kind",
22065
- "type": "string",
22066
- "enum": [
22067
- "expert",
22068
- "audience"
22069
- ],
22070
- "required": false,
22071
- "description": "Reviewer kind to filter by: expert draws reviewers that write a scored report, audience draws reviewers that fill a screening card. Omit it to list both kinds together."
22072
- },
22073
- {
22074
- "name": "page_size",
22075
- "type": "integer",
22076
- "required": false,
22077
- "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."
22078
- },
22079
- {
22080
- "name": "page_token",
22081
- "type": "string",
22082
- "required": false,
22083
- "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."
22084
- }
22085
- ]
22086
- },
22087
- {
22088
- "resource": "studio.reviewers",
22089
- "method": "update",
22090
- "summary": "Activate or retire a reviewer",
22091
- "description": "Take one reviewer in or out of the draw: active false keeps it in the library but stops it being drawn for future seats, and active true puts it back. Use it when a reviewer should stop judging, for example when its answers are consistently unusable, and set it back once that is dealt with. A round already sent is not affected, because its assignments were made when it was sent. A person makes this change, and an agent calling it is refused with PERMISSION_DENIED. The reviewer is addressed by the agent value the reviewer list returns; an unknown one answers REVIEWER_NOT_FOUND, which is also the answer for a reviewer of another organization.",
22092
- "http": "PATCH",
22093
- "path": "/studio/v1/reviewers/{agent}",
22693
+ "resource": "studio.platforms",
22694
+ "method": "retrieve",
22695
+ "summary": "Read the rules of one platform",
22696
+ "description": "Read one platform in full: the format it consumes, how it receives a finished piece, the preview fidelity the Console can offer, the limits on title, body, image count and aspect, and whether a connected channel is required. Read this before creating a rendition, and again when validation reports that the piece breaks a platform limit.",
22697
+ "http": "GET",
22698
+ "path": "/studio/v1/platforms/{platform}",
22094
22699
  "streaming": "no",
22095
22700
  "pagination": false,
22096
22701
  "pathParams": [
22097
22702
  {
22098
- "name": "agent",
22099
- "sdkName": "agent",
22100
- "description": "Reviewer being addressed, by the agent value the reviewer list returns for it; a reviewer is an agent of this organization's reviewer library, so it has no other address."
22703
+ "name": "platform",
22704
+ "sdkName": "platform",
22705
+ "description": "Versioned platform key from the platform list, such as x@1 or xiaohongshu@1; the version suffix is part of the key."
22101
22706
  }
22102
22707
  ],
22103
- "query": [],
22104
- "body": {
22105
- "required": true,
22106
- "fields": [
22107
- {
22108
- "name": "active",
22109
- "type": "boolean",
22110
- "required": true,
22111
- "description": "Set false to take this reviewer out of the draw for rounds sent from now on, true to put it back; rounds already sent keep the reviewers they drew."
22112
- }
22113
- ]
22114
- }
22708
+ "query": []
22115
22709
  },
22116
22710
  {
22117
22711
  "resource": "studio.styles",
@@ -22135,6 +22729,12 @@ export const operations = [
22135
22729
  "type": "string",
22136
22730
  "required": false,
22137
22731
  "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."
22732
+ },
22733
+ {
22734
+ "name": "work",
22735
+ "type": "string",
22736
+ "required": false,
22737
+ "description": "Narrow the list to what belongs to one work, by its wk_ identifier, which is how one work's own setting is told apart from the organization's shared material; omit it to list everything this organization owns."
22138
22738
  }
22139
22739
  ]
22140
22740
  },
@@ -22142,7 +22742,7 @@ export const operations = [
22142
22742
  "resource": "studio.styles",
22143
22743
  "method": "create",
22144
22744
  "summary": "Create a writing style",
22145
- "description": "Create a style: the voice a piece is written in, held as samples rather than as adjectives. Samples matter more than a description, so paste one to five paragraphs of writing the piece should sound like, and put the words to avoid into avoid so the banned-word check uses them. Attach a style to a work, or to one draft of it, and its samples then reach every context pack.",
22745
+ "description": "Create a style: the voice a piece is written in, held as samples rather than as adjectives. Samples matter more than a description, so paste one to five paragraphs of writing the piece should sound like, and put the words to avoid into avoid so the banned-word check uses them. A style belongs to the work you name in work, and a work may only attach its own styles, so create the style with the work it will be used in. Attach a style to a work, or to one draft of it, and its samples then reach every context pack.",
22146
22746
  "http": "POST",
22147
22747
  "path": "/studio/v1/styles",
22148
22748
  "streaming": "no",
@@ -22171,6 +22771,19 @@ export const operations = [
22171
22771
  "required": false,
22172
22772
  "description": "One to five paragraphs of writing in the intended voice; these paragraphs are what reach a writer, so choose them carefully."
22173
22773
  },
22774
+ {
22775
+ "name": "pictures",
22776
+ "type": "array",
22777
+ "itemType": "object",
22778
+ "required": false,
22779
+ "description": "Picture samples to store with the style, in the order you send them; a bare file identifier is stored as a picture with no name and no description."
22780
+ },
22781
+ {
22782
+ "name": "work",
22783
+ "type": "string",
22784
+ "required": false,
22785
+ "description": "Work this style should belong to, by its wk_ identifier; pass it so the work can attach the style later, since a work may only use its own styles. Omit it for a style that belongs to no single work."
22786
+ },
22174
22787
  {
22175
22788
  "name": "use",
22176
22789
  "type": "array",
@@ -22234,7 +22847,7 @@ export const operations = [
22234
22847
  "resource": "studio.styles",
22235
22848
  "method": "update",
22236
22849
  "summary": "Change a writing style",
22237
- "description": "Change a style: its name, its description, its samples, its use and avoid lists, or its glossary. Send update_mask naming exactly the fields you change; a list the mask names is replaced whole. Adding a term to the glossary or to avoid also changes what the deterministic checks flag, so a work that uses this style sees new findings on its next check.",
22850
+ "description": "Change a style: its name, its description, its samples, its picture samples, its use and avoid lists, or its glossary. Send update_mask naming exactly the fields you change; a list the mask names is replaced whole. Adding a term to the glossary or to avoid also changes what the deterministic checks flag, so a work that uses this style sees new findings on its next check.",
22238
22851
  "http": "PATCH",
22239
22852
  "path": "/studio/v1/styles/{style}",
22240
22853
  "streaming": "no",
@@ -22276,6 +22889,13 @@ export const operations = [
22276
22889
  "required": false,
22277
22890
  "description": "Complete set of sample paragraphs, replacing the previous ones; removing a sample removes it from every later context pack."
22278
22891
  },
22892
+ {
22893
+ "name": "pictures",
22894
+ "type": "array",
22895
+ "itemType": "object",
22896
+ "required": false,
22897
+ "description": "Complete picture gallery for this style, replacing the previous one and keeping the order you send; a picture left out stops being shown."
22898
+ },
22279
22899
  {
22280
22900
  "name": "use",
22281
22901
  "type": "array",
@@ -22647,7 +23267,7 @@ export const operations = [
22647
23267
  "resource": "studio.works",
22648
23268
  "method": "create",
22649
23269
  "summary": "Create a work with its goal",
22650
- "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.",
23270
+ "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.",
22651
23271
  "http": "POST",
22652
23272
  "path": "/studio/v1/works",
22653
23273
  "streaming": "no",
@@ -22673,26 +23293,32 @@ export const operations = [
22673
23293
  "name": "goal",
22674
23294
  "type": "object",
22675
23295
  "required": true,
22676
- "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."
22677
- },
22678
- {
22679
- "name": "brief",
22680
- "type": "object",
22681
- "required": false,
22682
- "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."
23296
+ "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."
22683
23297
  },
22684
23298
  {
22685
23299
  "name": "codexes",
22686
23300
  "type": "array",
22687
23301
  "itemType": "string",
22688
23302
  "required": false,
22689
- "description": "Reference libraries to attach at creation; a library owned by another organization is refused rather than attached."
23303
+ "description": "Shared reference libraries to attach at creation, on top of the work's own library, which is always created with it; a library owned by another organization is refused rather than attached."
22690
23304
  },
22691
23305
  {
22692
23306
  "name": "style",
22693
23307
  "type": "string",
22694
23308
  "required": false,
22695
- "description": "Style to attach to the work, whose samples and glossary then reach every context pack unless a draft overrides it."
23309
+ "description": "Style to attach to the work, whose samples and glossary then reach every context pack unless a draft overrides it. A new work has no styles of its own yet, so leave this out and attach one after creating a style with work set to this work."
23310
+ },
23311
+ {
23312
+ "name": "cover",
23313
+ "type": "string",
23314
+ "required": false,
23315
+ "description": "Cover image for the work, by a file identifier that belongs to this organization; leave it out for a work with no cover."
23316
+ },
23317
+ {
23318
+ "name": "based_on",
23319
+ "type": "string",
23320
+ "required": false,
23321
+ "description": "Work to copy at creation, by its wk_ identifier or its slug: its own library's entries, its styles and the style it uses come into this new work as its own copies, and the source is recorded as this work's baseline. The two works are independent afterwards, and drafts are not copied. Use it to start a sequel or a variant from an existing setting instead of rebuilding the setting; a source work this organization does not own answers BASELINE_NOT_FOUND."
22696
23322
  },
22697
23323
  {
22698
23324
  "name": "labels",
@@ -22802,7 +23428,7 @@ export const operations = [
22802
23428
  "name": "goal",
22803
23429
  "type": "object",
22804
23430
  "required": false,
22805
- "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."
23431
+ "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."
22806
23432
  },
22807
23433
  {
22808
23434
  "name": "codexes",
@@ -22815,7 +23441,13 @@ export const operations = [
22815
23441
  "name": "style",
22816
23442
  "type": "string",
22817
23443
  "required": false,
22818
- "description": "Style to attach to the work, replacing the previous one; send an empty value to detach the style entirely."
23444
+ "description": "Style to attach to the work, replacing the previous one; send an empty value to detach the style entirely. It must be one of this work's own styles — name a style created with work set to this work — and the style of another work is refused with STYLE_NOT_IN_WORK."
23445
+ },
23446
+ {
23447
+ "name": "cover",
23448
+ "type": "string",
23449
+ "required": false,
23450
+ "description": "Cover image to set, by a file identifier that belongs to this organization, replacing the previous cover; send null with cover named in the update mask to clear the cover."
22819
23451
  },
22820
23452
  {
22821
23453
  "name": "labels",
@@ -22832,69 +23464,6 @@ export const operations = [
22832
23464
  ]
22833
23465
  }
22834
23466
  },
22835
- {
22836
- "resource": "studio.works",
22837
- "method": "updateBrief",
22838
- "summary": "Add to or correct the original brief",
22839
- "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.",
22840
- "http": "PATCH",
22841
- "path": "/studio/v1/works/{work}/brief",
22842
- "streaming": "no",
22843
- "pagination": false,
22844
- "pathParams": [
22845
- {
22846
- "name": "work",
22847
- "sdkName": "work",
22848
- "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."
22849
- }
22850
- ],
22851
- "query": [],
22852
- "body": {
22853
- "required": true,
22854
- "fields": [
22855
- {
22856
- "name": "expected_revision",
22857
- "type": "integer",
22858
- "required": false,
22859
- "description": "Brief revision the caller read; a mismatch is refused with REVISION_CONFLICT rather than merged."
22860
- },
22861
- {
22862
- "name": "text",
22863
- "type": "string",
22864
- "required": false,
22865
- "description": "Text to append to the stored brief, added after what is already there and never replacing it."
22866
- },
22867
- {
22868
- "name": "attachments",
22869
- "type": "array",
22870
- "itemType": "string",
22871
- "required": false,
22872
- "description": "Source files to keep with the brief, added to the ones already attached."
22873
- },
22874
- {
22875
- "name": "add_points",
22876
- "type": "array",
22877
- "itemType": "object",
22878
- "required": false,
22879
- "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)."
22880
- },
22881
- {
22882
- "name": "edit_points",
22883
- "type": "array",
22884
- "itemType": "object",
22885
- "required": false,
22886
- "description": "Existing points to reword, each naming the key it keeps and the text that replaces it."
22887
- },
22888
- {
22889
- "name": "remove_points",
22890
- "type": "array",
22891
- "itemType": "string",
22892
- "required": false,
22893
- "description": "Keys of points to drop; a dropped key is never reused, so later points keep their own keys."
22894
- }
22895
- ]
22896
- }
22897
- },
22898
23467
  {
22899
23468
  "resource": "studio.works.drafts",
22900
23469
  "method": "list",
@@ -22939,6 +23508,12 @@ export const operations = [
22939
23508
  "required": true,
22940
23509
  "description": "Genre key the draft is written in, taken from the genre list; it decides the unit kinds, the properties and the checks."
22941
23510
  },
23511
+ {
23512
+ "name": "key",
23513
+ "type": "string",
23514
+ "required": false,
23515
+ "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."
23516
+ },
22942
23517
  {
22943
23518
  "name": "title",
22944
23519
  "type": "string",
@@ -22974,6 +23549,12 @@ export const operations = [
22974
23549
  "required": false,
22975
23550
  "description": "What the new draft should be derived from, so the service can record the source revision for later staleness checks."
22976
23551
  },
23552
+ {
23553
+ "name": "brief",
23554
+ "type": "object",
23555
+ "required": false,
23556
+ "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."
23557
+ },
22977
23558
  {
22978
23559
  "name": "props",
22979
23560
  "type": "object",
@@ -23099,6 +23680,80 @@ export const operations = [
23099
23680
  ]
23100
23681
  }
23101
23682
  },
23683
+ {
23684
+ "resource": "studio.works.drafts",
23685
+ "method": "updateBrief",
23686
+ "summary": "Add to or correct a draft's brief",
23687
+ "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.",
23688
+ "http": "PATCH",
23689
+ "path": "/studio/v1/works/{work}/drafts/{draft}/brief",
23690
+ "streaming": "no",
23691
+ "pagination": false,
23692
+ "pathParams": [
23693
+ {
23694
+ "name": "work",
23695
+ "sdkName": "work",
23696
+ "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."
23697
+ },
23698
+ {
23699
+ "name": "draft",
23700
+ "sdkName": "draft",
23701
+ "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."
23702
+ }
23703
+ ],
23704
+ "query": [],
23705
+ "body": {
23706
+ "required": true,
23707
+ "fields": [
23708
+ {
23709
+ "name": "expected_revision",
23710
+ "type": "integer",
23711
+ "required": false,
23712
+ "description": "Brief revision the caller read; a mismatch is refused with REVISION_CONFLICT rather than merged."
23713
+ },
23714
+ {
23715
+ "name": "text",
23716
+ "type": "string",
23717
+ "required": false,
23718
+ "description": "Text to append to the stored brief, added after what is already there and never replacing it."
23719
+ },
23720
+ {
23721
+ "name": "constraints",
23722
+ "type": "string",
23723
+ "required": false,
23724
+ "description": "The draft's constraints as one text, replacing what is there; pass an empty string to clear them."
23725
+ },
23726
+ {
23727
+ "name": "attachments",
23728
+ "type": "array",
23729
+ "itemType": "string",
23730
+ "required": false,
23731
+ "description": "Source files to keep with the brief, added to the ones already attached."
23732
+ },
23733
+ {
23734
+ "name": "add_points",
23735
+ "type": "array",
23736
+ "itemType": "object",
23737
+ "required": false,
23738
+ "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)."
23739
+ },
23740
+ {
23741
+ "name": "edit_points",
23742
+ "type": "array",
23743
+ "itemType": "object",
23744
+ "required": false,
23745
+ "description": "Existing points to reword, each naming the key it keeps and the text that replaces it."
23746
+ },
23747
+ {
23748
+ "name": "remove_points",
23749
+ "type": "array",
23750
+ "itemType": "string",
23751
+ "required": false,
23752
+ "description": "Keys of points to drop; a dropped key is never reused, so later points keep their own keys."
23753
+ }
23754
+ ]
23755
+ }
23756
+ },
23102
23757
  {
23103
23758
  "resource": "studio.works.drafts",
23104
23759
  "method": "retrieveExport",
@@ -23131,7 +23786,109 @@ export const operations = [
23131
23786
  "required": true,
23132
23787
  "description": "Format to render the draft in: markdown keeps headings, list markers and block anchors, and text drops the markup entirely."
23133
23788
  }
23134
- ]
23789
+ ]
23790
+ },
23791
+ {
23792
+ "resource": "studio.works.drafts.foreshadows",
23793
+ "method": "list",
23794
+ "summary": "List the foreshadows of a draft",
23795
+ "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.",
23796
+ "http": "GET",
23797
+ "path": "/studio/v1/works/{work}/drafts/{draft}/foreshadows",
23798
+ "streaming": "no",
23799
+ "pagination": false,
23800
+ "pathParams": [
23801
+ {
23802
+ "name": "work",
23803
+ "sdkName": "work",
23804
+ "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."
23805
+ },
23806
+ {
23807
+ "name": "draft",
23808
+ "sdkName": "draft",
23809
+ "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."
23810
+ }
23811
+ ],
23812
+ "query": []
23813
+ },
23814
+ {
23815
+ "resource": "studio.works.drafts.foreshadows",
23816
+ "method": "delete",
23817
+ "summary": "Drop a foreshadow",
23818
+ "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.",
23819
+ "http": "DELETE",
23820
+ "path": "/studio/v1/works/{work}/drafts/{draft}/foreshadows/{key}",
23821
+ "streaming": "no",
23822
+ "pagination": false,
23823
+ "pathParams": [
23824
+ {
23825
+ "name": "work",
23826
+ "sdkName": "work",
23827
+ "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."
23828
+ },
23829
+ {
23830
+ "name": "draft",
23831
+ "sdkName": "draft",
23832
+ "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."
23833
+ },
23834
+ {
23835
+ "name": "key",
23836
+ "sdkName": "key",
23837
+ "description": "Your name for the thread inside this work, such as 改造告示 or the-photo; the same key updates the same foreshadow."
23838
+ }
23839
+ ],
23840
+ "query": []
23841
+ },
23842
+ {
23843
+ "resource": "studio.works.drafts.foreshadows",
23844
+ "method": "update",
23845
+ "summary": "Plant or pay off a foreshadow",
23846
+ "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.",
23847
+ "http": "PUT",
23848
+ "path": "/studio/v1/works/{work}/drafts/{draft}/foreshadows/{key}",
23849
+ "streaming": "no",
23850
+ "pagination": false,
23851
+ "pathParams": [
23852
+ {
23853
+ "name": "work",
23854
+ "sdkName": "work",
23855
+ "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."
23856
+ },
23857
+ {
23858
+ "name": "draft",
23859
+ "sdkName": "draft",
23860
+ "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."
23861
+ },
23862
+ {
23863
+ "name": "key",
23864
+ "sdkName": "key",
23865
+ "description": "Your name for the thread inside this work, such as 改造告示 or the-photo; the same key updates the same foreshadow."
23866
+ }
23867
+ ],
23868
+ "query": [],
23869
+ "body": {
23870
+ "required": true,
23871
+ "fields": [
23872
+ {
23873
+ "name": "setup",
23874
+ "type": "string",
23875
+ "required": true,
23876
+ "description": "Unit that plants the thread, by number such as 1 or by unt_ identifier; it must belong to this draft."
23877
+ },
23878
+ {
23879
+ "name": "payoff",
23880
+ "type": "string",
23881
+ "required": false,
23882
+ "description": "Unit that pays it off, by number or identifier, in this draft; leave it out or null while it is still open."
23883
+ },
23884
+ {
23885
+ "name": "note",
23886
+ "type": "string",
23887
+ "required": false,
23888
+ "description": "What was planted, in a sentence."
23889
+ }
23890
+ ]
23891
+ }
23135
23892
  },
23136
23893
  {
23137
23894
  "resource": "studio.works.drafts",
@@ -23467,6 +24224,95 @@ export const operations = [
23467
24224
  ]
23468
24225
  }
23469
24226
  },
24227
+ {
24228
+ "resource": "studio.works.progressions",
24229
+ "method": "list",
24230
+ "summary": "List the setting changes of a work",
24231
+ "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.",
24232
+ "http": "GET",
24233
+ "path": "/studio/v1/works/{work}/progressions",
24234
+ "streaming": "no",
24235
+ "pagination": false,
24236
+ "pathParams": [
24237
+ {
24238
+ "name": "work",
24239
+ "sdkName": "work",
24240
+ "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."
24241
+ }
24242
+ ],
24243
+ "query": [
24244
+ {
24245
+ "name": "entry",
24246
+ "type": "string",
24247
+ "required": false,
24248
+ "description": "Only the changes of this entry, by name, alias or ent_ identifier."
24249
+ }
24250
+ ]
24251
+ },
24252
+ {
24253
+ "resource": "studio.works.progressions",
24254
+ "method": "create",
24255
+ "summary": "Record how a setting entry changes at a unit",
24256
+ "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.",
24257
+ "http": "POST",
24258
+ "path": "/studio/v1/works/{work}/progressions",
24259
+ "streaming": "no",
24260
+ "pagination": false,
24261
+ "pathParams": [
24262
+ {
24263
+ "name": "work",
24264
+ "sdkName": "work",
24265
+ "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."
24266
+ }
24267
+ ],
24268
+ "query": [],
24269
+ "body": {
24270
+ "required": true,
24271
+ "fields": [
24272
+ {
24273
+ "name": "entry",
24274
+ "type": "string",
24275
+ "required": true,
24276
+ "description": "Entry that changes, by name, alias or ent_ identifier; it must be in a library this work mounts."
24277
+ },
24278
+ {
24279
+ "name": "unit",
24280
+ "type": "string",
24281
+ "required": true,
24282
+ "description": "Unit from which the change is true, by number such as 3 or by unt_ identifier."
24283
+ },
24284
+ {
24285
+ "name": "change",
24286
+ "type": "string",
24287
+ "required": true,
24288
+ "description": "What changes, in a sentence a writer can respect."
24289
+ }
24290
+ ]
24291
+ }
24292
+ },
24293
+ {
24294
+ "resource": "studio.works.progressions",
24295
+ "method": "delete",
24296
+ "summary": "Delete a setting change",
24297
+ "description": "Remove one recorded change, by the prg_ identifier the list returns; to correct a change, delete it and record the new one.",
24298
+ "http": "DELETE",
24299
+ "path": "/studio/v1/works/{work}/progressions/{id}",
24300
+ "streaming": "no",
24301
+ "pagination": false,
24302
+ "pathParams": [
24303
+ {
24304
+ "name": "work",
24305
+ "sdkName": "work",
24306
+ "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."
24307
+ },
24308
+ {
24309
+ "name": "id",
24310
+ "sdkName": "id",
24311
+ "description": "The progression to delete, by its identifier from the list."
24312
+ }
24313
+ ],
24314
+ "query": []
24315
+ },
23470
24316
  {
23471
24317
  "resource": "studio.works.renditions",
23472
24318
  "method": "list",
@@ -23677,7 +24523,7 @@ export const operations = [
23677
24523
  "resource": "studio.works.reviewSettings",
23678
24524
  "method": "retrieve",
23679
24525
  "summary": "Read the review settings of a work",
23680
- "description": "Read how this work is reviewed: the seats that make up its review panel, each naming a reviewer kind, a tag and how many reviewers are drawn for it, the maximum number of rounds, and the revision the settings are at. Read it before sending a round, because a draft whose conditions the reviewer library cannot fill answers REVIEWER_POOL_EMPTY, and read it before changing it, because the update carries the revision it returns as its precondition. Settings are not part of the work body: they are read and written here.",
24526
+ "description": "Read how this work is reviewed: the most rounds it may take and the revision the settings are at. Who reviews is not here but on the work's reviewer roster, which every round asks whole, and read that with the reviewer list. Read this before sending a round, because a draft past its max_rounds answers REVIEW_ROUND_LIMIT, and before changing it, because the update carries the revision it returns as its precondition. Settings are not part of the work body: they are read and written here.",
23681
24527
  "http": "GET",
23682
24528
  "path": "/studio/v1/works/{work}/review-settings",
23683
24529
  "streaming": "no",
@@ -23694,8 +24540,8 @@ export const operations = [
23694
24540
  {
23695
24541
  "resource": "studio.works.reviewSettings",
23696
24542
  "method": "update",
23697
- "summary": "Change the review settings of a work",
23698
- "description": "Change the review panel of a work: the seats, the maximum number of rounds, or both. Send expected_revision with the revision this settings read returned, so two writers cannot overwrite each other silently; a mismatch answers REVISION_CONFLICT and the settings are unchanged. A person makes this change, because widening who may judge a work is the owner's decision: an agent calling it is refused with PERMISSION_DENIED, which is this operation's answer for a caller without the organization's management identity. The settings are locked while a round of this work is reviewing, which answers REVIEW_IN_PROGRESS; change them after the round decides or is cancelled. Raising max_rounds is how a draft whose rounds are used up is sent again. The changed settings apply to rounds sent from now on and never rewrite a round already sent.",
24543
+ "summary": "Change how many rounds a work may take",
24544
+ "description": "Change how many rounds a work may take. Send expected_revision with the revision this settings read returned, so two writers cannot overwrite each other silently; a mismatch answers REVISION_CONFLICT and the settings are unchanged. A person makes this change: an agent calling it is refused with PERMISSION_DENIED. The settings are locked while a round of this work is reviewing, which answers REVIEW_IN_PROGRESS; change them after the round decides or is cancelled. Raising max_rounds is how a draft whose rounds are used up is sent again. The changed limit applies to rounds sent from now on and never rewrites a round already sent; who reviews is on the reviewer roster, not here.",
23699
24545
  "http": "PATCH",
23700
24546
  "path": "/studio/v1/works/{work}/review-settings",
23701
24547
  "streaming": "no",
@@ -23717,13 +24563,6 @@ export const operations = [
23717
24563
  "required": true,
23718
24564
  "description": "Revision the settings read returned; a mismatch means somebody else changed the panel in between and this call is refused, so read the settings again and repeat with the new revision."
23719
24565
  },
23720
- {
23721
- "name": "seats",
23722
- "type": "array",
23723
- "itemType": "object",
23724
- "required": false,
23725
- "description": "Seats the panel should have from now on, replacing the current seats whole; leave the field out to keep the current panel."
23726
- },
23727
24566
  {
23728
24567
  "name": "max_rounds",
23729
24568
  "type": "number",
@@ -23733,11 +24572,142 @@ export const operations = [
23733
24572
  ]
23734
24573
  }
23735
24574
  },
24575
+ {
24576
+ "resource": "studio.works.reviewers",
24577
+ "method": "list",
24578
+ "summary": "List the reviewers of a work",
24579
+ "description": "List the reviewers on this work's roster: every time a round of this work is sent, every reviewer on the roster whose kind the round asks for takes part, one seat each, in the order they were added, and the sender reads them as A, B, C. Each entry gives the agent id as /v1/agents returns it (agent_…), its kind on this roster and the service agent's display name. Read it before sending a round, because a roster with nobody of the asked kind answers NO_REVIEWERS; read it after to see who has been judging. A reviewer of another work or another organization is never listed, and a work of another organization answers WORK_NOT_FOUND. The answer is one page; keep following next_page_token while it is present.",
24580
+ "http": "GET",
24581
+ "path": "/studio/v1/works/{work}/reviewers",
24582
+ "streaming": "no",
24583
+ "pagination": false,
24584
+ "pathParams": [
24585
+ {
24586
+ "name": "work",
24587
+ "sdkName": "work",
24588
+ "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."
24589
+ }
24590
+ ],
24591
+ "query": [
24592
+ {
24593
+ "name": "page_size",
24594
+ "type": "integer",
24595
+ "required": false,
24596
+ "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."
24597
+ },
24598
+ {
24599
+ "name": "page_token",
24600
+ "type": "string",
24601
+ "required": false,
24602
+ "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."
24603
+ }
24604
+ ]
24605
+ },
24606
+ {
24607
+ "resource": "studio.works.reviewers",
24608
+ "method": "create",
24609
+ "summary": "Add a reviewer to a work",
24610
+ "description": "Put one of this organization's service agents on the work's reviewer roster, with the kind it reviews as: expert writes a scored report, audience fills a screening card. Every round sent from now on asks every roster member of that round's kind, so add only agents that should judge every round of this work. A person makes this change, and an agent calling it is refused with PERMISSION_DENIED. Pass the agent id as /v1/agents returns it (agent_…). The agent must be a service agent of this organization: anything else, including an absent id and another organization's agent, answers REVIEWER_NOT_SERVICE_AGENT. An agent already on the roster answers REVIEWER_ALREADY_ADDED; change its kind with the update operation instead.",
24611
+ "http": "POST",
24612
+ "path": "/studio/v1/works/{work}/reviewers",
24613
+ "streaming": "no",
24614
+ "pagination": false,
24615
+ "pathParams": [
24616
+ {
24617
+ "name": "work",
24618
+ "sdkName": "work",
24619
+ "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."
24620
+ }
24621
+ ],
24622
+ "query": [],
24623
+ "body": {
24624
+ "required": true,
24625
+ "fields": [
24626
+ {
24627
+ "name": "agent",
24628
+ "type": "string",
24629
+ "required": true,
24630
+ "description": "Service agent of this organization to add, by the agent_ id /v1/agents returns for it; the agent must exist in this organization and be a service agent, or the call answers REVIEWER_NOT_SERVICE_AGENT."
24631
+ },
24632
+ {
24633
+ "name": "kind",
24634
+ "type": "string",
24635
+ "enum": [
24636
+ "expert",
24637
+ "audience"
24638
+ ],
24639
+ "required": true,
24640
+ "description": "Kind this reviewer reviews as on this roster: expert writes a scored report, audience fills a screening card."
24641
+ }
24642
+ ]
24643
+ }
24644
+ },
24645
+ {
24646
+ "resource": "studio.works.reviewers",
24647
+ "method": "delete",
24648
+ "summary": "Remove a reviewer from a work",
24649
+ "description": "Take one agent off the work's reviewer roster, so rounds sent from now on no longer ask it. What it has already judged is kept: the rounds it took part in stay readable with their reports,. A person makes this change, and an agent calling it is refused with PERMISSION_DENIED. An agent that is not on this work's roster answers REVIEWER_NOT_FOUND.",
24650
+ "http": "DELETE",
24651
+ "path": "/studio/v1/works/{work}/reviewers/{agent}",
24652
+ "streaming": "no",
24653
+ "pagination": false,
24654
+ "pathParams": [
24655
+ {
24656
+ "name": "work",
24657
+ "sdkName": "work",
24658
+ "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."
24659
+ },
24660
+ {
24661
+ "name": "agent",
24662
+ "sdkName": "agent",
24663
+ "description": "Reviewer being addressed, by the agent value this work's reviewer list returns for it; a reviewer is a member of one work's roster, so it has no address outside that work."
24664
+ }
24665
+ ],
24666
+ "query": []
24667
+ },
24668
+ {
24669
+ "resource": "studio.works.reviewers",
24670
+ "method": "update",
24671
+ "summary": "Change a reviewer's kind",
24672
+ "description": "Change the kind one roster member reviews as: expert or audience. Use it when a reviewer should judge a different way, rather than removing it and adding it back, because the roster position it holds decides its label and is kept. A person makes this change, and an agent calling it is refused with PERMISSION_DENIED. A round already sent is not affected, because its seats were fixed when it was sent. An agent that is not on this work's roster answers REVIEWER_NOT_FOUND, which is also the answer for another work's reviewer.",
24673
+ "http": "PATCH",
24674
+ "path": "/studio/v1/works/{work}/reviewers/{agent}",
24675
+ "streaming": "no",
24676
+ "pagination": false,
24677
+ "pathParams": [
24678
+ {
24679
+ "name": "work",
24680
+ "sdkName": "work",
24681
+ "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."
24682
+ },
24683
+ {
24684
+ "name": "agent",
24685
+ "sdkName": "agent",
24686
+ "description": "Reviewer being addressed, by the agent value this work's reviewer list returns for it; a reviewer is a member of one work's roster, so it has no address outside that work."
24687
+ }
24688
+ ],
24689
+ "query": [],
24690
+ "body": {
24691
+ "required": true,
24692
+ "fields": [
24693
+ {
24694
+ "name": "kind",
24695
+ "type": "string",
24696
+ "enum": [
24697
+ "expert",
24698
+ "audience"
24699
+ ],
24700
+ "required": true,
24701
+ "description": "Kind this reviewer reviews as from now on; rounds already sent keep the kind they were sent with."
24702
+ }
24703
+ ]
24704
+ }
24705
+ },
23736
24706
  {
23737
24707
  "resource": "studio.works.reviews",
23738
24708
  "method": "list",
23739
24709
  "summary": "List the blind review rounds of a work",
23740
- "description": "List the review rounds of one work, newest round first, each with its draft, round number, status, decision and whether it was appealed. Pass draft to see the rounds of one draft only. Use it to find the round to read, to answer or to cancel, and to see whether the draft already has a round running before sending another: a running round answers REVIEW_IN_PROGRESS. The answer is one page; keep following next_page_token while it is present. Rounds of other organizations are not listed and a work of another organization answers WORK_NOT_FOUND.",
24710
+ "description": "List the review rounds of one work, newest round first, each with its draft, round number, status and decision. Pass draft to see the rounds of one draft only. Use it to find the round to read, to answer or to cancel, and to see whether the draft already has a round running before sending another: a running round answers REVIEW_IN_PROGRESS. The answer is one page; keep following next_page_token while it is present. Rounds of other organizations are not listed and a work of another organization answers WORK_NOT_FOUND.",
23741
24711
  "http": "GET",
23742
24712
  "path": "/studio/v1/works/{work}/reviews",
23743
24713
  "streaming": "no",
@@ -23774,7 +24744,7 @@ export const operations = [
23774
24744
  "resource": "studio.works.reviews",
23775
24745
  "method": "create",
23776
24746
  "summary": "Send a draft to blind review",
23777
- "description": "Send one draft of this work to the blind review centre, which freezes the draft's content revision as it is now, draws reviewers for the work's review settings and asks them in. Use it once the draft is written; the centre chooses who reviews, and the sender only ever reads labels A, B, C, never the reviewer identities. Pass mode to narrow this round to expert reviewers, to audience reviewers or to both, which the settings do not decide. From the second round pass revision_of with the previous round's rv_ id and note with the change note that answers that round point by point. The answer is the new round in status reviewing; read it again with the review read until status becomes decided and then read decision, expert_reports and screening. Billing follows the reviewers' sessions, not the frame of this call. DRAFT_NOT_READY means the draft still has units without a body or fails a hard check, so finish it first; REVIEW_IN_PROGRESS means this draft already has a round running, so wait for it to decide or cancel it; REVIEW_ROUND_LIMIT means the work reached max_rounds and a person has to raise it in the review settings; REVIEWER_POOL_EMPTY means the reviewer library cannot fill the seats under these conditions, so a person registers or re-activates reviewers.",
24747
+ "description": "Send one draft of this work to the blind review centre, which freezes the draft's content revision as it is now and asks in every reviewer on the work's roster whose kind this round asks. Use it once the draft is written; the roster decides who reviews, and the sender only ever reads labels A, B, C, never the reviewer identities. Pass mode to narrow this round to expert reviewers, to audience reviewers or to both, which the settings do not decide. From the second round pass revision_of with the previous round's rv_ id and note with the change note that answers that round point by point. The answer is the new round in status reviewing; read it again with the review read until status becomes decided and then read decision, expert_reports and screening. Billing follows the reviewers' sessions, not the frame of this call. DRAFT_NOT_READY means the draft still has units without a body or fails a hard check, so finish it first; REVIEW_IN_PROGRESS means this draft already has a round running, so wait for it to decide or cancel it; REVIEW_ROUND_LIMIT means the work reached max_rounds and a person has to raise it in the review settings; NO_REVIEWERS means the work's reviewer roster has nobody of the kind this round asks, so a person adds one to the work.",
23778
24748
  "http": "POST",
23779
24749
  "path": "/studio/v1/works/{work}/reviews",
23780
24750
  "streaming": "no",
@@ -23826,7 +24796,7 @@ export const operations = [
23826
24796
  "resource": "studio.works.reviews",
23827
24797
  "method": "retrieve",
23828
24798
  "summary": "Read one blind review round",
23829
- "description": "Read one round in the sender's view: its status, the seats as labels A, B, C with the state of each, the expert reports that have come back, the screening cards, the round decision and the audience tally. Reviewers appear only as labels; who they are is never part of this answer. Call it after sending a round and repeat while status is reviewing, because reviewers answer asynchronously and a round that is not decided yet carries fewer reports. status decided gives decision and screening; cancelled means a person stopped the round; failed means it could not be completed, for example when every reviewer timed out and no replacement could be drawn. Pass view=audit to also get the assignment record, the confidential editor notes and the reviewer sessions; that block is filled only for an organization administrator, and anyone else reads the same round without it.",
24799
+ "description": "Read one round in the sender's view: its status, the seats as labels A, B, C with the state of each, the expert reports that have come back, the screening cards, the round decision and the audience tally. Reviewers appear only as labels; who they are is never part of this answer. Call it after sending a round and repeat while status is reviewing, because reviewers answer asynchronously and a round that is not decided yet carries fewer reports. status decided gives decision and screening; cancelled means a person stopped the round; failed means it could not be completed, for example when no reviewer on the roster answered at all. Pass view=audit to also get the assignment record, the confidential editor notes and the reviewer sessions; that block is filled only for an organization administrator, and anyone else reads the same round without it.",
23830
24800
  "http": "GET",
23831
24801
  "path": "/studio/v1/works/{work}/reviews/{review}",
23832
24802
  "streaming": "no",
@@ -23840,7 +24810,7 @@ export const operations = [
23840
24810
  {
23841
24811
  "name": "review",
23842
24812
  "sdkName": "review",
23843
- "description": "Blind review round being addressed, by its rv_ identifier from the send answer or from the round list; the identifier stays the same when the round is appealed."
24813
+ "description": "Blind review round being addressed, by its rv_ identifier from the send answer or from the round list."
23844
24814
  }
23845
24815
  ],
23846
24816
  "query": [
@@ -23856,40 +24826,6 @@ export const operations = [
23856
24826
  }
23857
24827
  ]
23858
24828
  },
23859
- {
23860
- "resource": "studio.works.reviews",
23861
- "method": "appeal",
23862
- "summary": "Appeal a decided review round",
23863
- "description": "Appeal the outcome of a round: the centre draws one more reviewer of the same kind and puts that reviewer's answer beside the existing ones, without telling them the earlier outcome. Use it once, when the sender disagrees with the decision; the reason is recorded for the review centre, and the sender cannot choose the new reviewer. The round goes back to status reviewing and its id stays the same, so read it again afterwards. Each round can be appealed once: a second call for the same round answers REVIEW_ALREADY_APPEALED. Only a decided round can be appealed, so a round that is still reviewing or was cancelled answers REVIEW_IN_PROGRESS or stays cancelled. The extra reviewer's session is billed like any other reviewer session.",
23864
- "http": "POST",
23865
- "path": "/studio/v1/works/{work}/reviews/{review}:appeal",
23866
- "streaming": "no",
23867
- "pagination": false,
23868
- "pathParams": [
23869
- {
23870
- "name": "work",
23871
- "sdkName": "work",
23872
- "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."
23873
- },
23874
- {
23875
- "name": "review",
23876
- "sdkName": "review",
23877
- "description": "Blind review round being addressed, by its rv_ identifier from the send answer or from the round list; the identifier stays the same when the round is appealed."
23878
- }
23879
- ],
23880
- "query": [],
23881
- "body": {
23882
- "required": true,
23883
- "fields": [
23884
- {
23885
- "name": "reason",
23886
- "type": "string",
23887
- "required": true,
23888
- "description": "Reason for the appeal, recorded for the review centre; it does not reach the reviewers and cannot name which reviewer to draw."
23889
- }
23890
- ]
23891
- }
23892
- },
23893
24829
  {
23894
24830
  "resource": "studio.works.reviews",
23895
24831
  "method": "cancel",
@@ -23908,7 +24844,7 @@ export const operations = [
23908
24844
  {
23909
24845
  "name": "review",
23910
24846
  "sdkName": "review",
23911
- "description": "Blind review round being addressed, by its rv_ identifier from the send answer or from the round list; the identifier stays the same when the round is appealed."
24847
+ "description": "Blind review round being addressed, by its rv_ identifier from the send answer or from the round list."
23912
24848
  }
23913
24849
  ],
23914
24850
  "query": []
@@ -24130,7 +25066,7 @@ export const operations = [
24130
25066
  "name": "budget_tokens",
24131
25067
  "type": "integer",
24132
25068
  "required": false,
24133
- "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."
25069
+ "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."
24134
25070
  }
24135
25071
  ]
24136
25072
  },
@@ -24806,6 +25742,31 @@ export const operations = [
24806
25742
  }
24807
25743
  ]
24808
25744
  },
25745
+ {
25746
+ "resource": "ticket.repositories",
25747
+ "method": "update",
25748
+ "summary": "Update repositories",
25749
+ "description": "Update repositories within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.",
25750
+ "http": "PATCH",
25751
+ "path": "/ticket/v1/repositories/{id}",
25752
+ "streaming": "no",
25753
+ "pagination": false,
25754
+ "pathParams": [
25755
+ {
25756
+ "name": "id",
25757
+ "sdkName": "id",
25758
+ "description": "Identifier returned by the matching create or list operation; number paths take repository-local numbers."
25759
+ }
25760
+ ],
25761
+ "query": [
25762
+ {
25763
+ "name": "repository",
25764
+ "type": "string",
25765
+ "required": false,
25766
+ "description": "Repository id from GET /ticket/v1/repositories; omit for the default tickets container."
25767
+ }
25768
+ ]
25769
+ },
24809
25770
  {
24810
25771
  "resource": "ticket.tickets",
24811
25772
  "method": "list",
@@ -24839,7 +25800,7 @@ export const operations = [
24839
25800
  "name": "filter",
24840
25801
  "type": "string",
24841
25802
  "required": false,
24842
- "description": "Search qualifier subset: is/state, reason, label/-label, no, assignee, author, mentions, milestone, type, kind, assignee-kind, in and sort; write each qualifier as field:value (for example, is:open milestone:5), never field=value. Unknown qualifiers return INVALID_PARAMS. Passed unchanged to the service."
25803
+ "description": "Search qualifier subset: is/state, reason, label/-label, no, assignee, owner, author, mentions, milestone, type, kind, assignee-kind, in and sort (owner:<subject>|none|*|me and no:owner match the single ticket owner; assignee: matches the GitHub-compatible assignees); write each qualifier as field:value (for example, is:open milestone:5), never field=value. Unknown qualifiers return INVALID_PARAMS. Passed unchanged to the service."
24843
25804
  }
24844
25805
  ]
24845
25806
  },