@deepraxis/sdk 0.1.1-dev.ed927d7 → 0.1.1-dev.ee5d4e3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/METHODS.md +183 -1
- package/README.md +5 -4
- package/dist/core/binary-operations.d.ts +3 -0
- package/dist/core/binary-operations.js +14 -0
- package/dist/core/transport.js +8 -4
- package/dist/generated/binary-operations.gen.d.ts +3 -0
- package/dist/generated/binary-operations.gen.js +14 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +343 -57
- package/dist/generated/sdk.gen.js +919 -88
- package/dist/generated/types.gen.d.ts +9355 -1074
- package/dist/helpers/application-publish.js +16 -2
- package/dist/helpers/browser-connect-error.d.ts +28 -0
- package/dist/helpers/browser-connect-error.js +74 -0
- package/dist/helpers/browser-connect.d.ts +2 -0
- package/dist/helpers/browser-connect.js +36 -42
- package/dist/helpers/browser-decisions.d.ts +13 -0
- package/dist/helpers/browser-decisions.js +11 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +4 -2
- package/dist/operations.generated.d.ts +1 -0
- package/dist/operations.generated.js +1989 -189
- package/dist/resources.generated.d.ts +1400 -97
- package/dist/resources.generated.js +105 -0
- package/package.json +1 -1
|
@@ -61,7 +61,7 @@ export const operations = [
|
|
|
61
61
|
"resource": "agent.agents",
|
|
62
62
|
"method": "create",
|
|
63
63
|
"summary": "Create agent",
|
|
64
|
-
"description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write
|
|
64
|
+
"description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. Omit kind to create a service agent (Managed Agents behaviour: a fresh environment per session). Pass kind: \"general\" for an employee-style agent with its own computer, created with it; size and template come from the agent's computers configuration. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 \"model <id> is not in the model catalog\" and an embedding, image or speech model returns 400 \"model <id> cannot run an agent\". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {\"name\":\"helper\",\"model\":{\"id\":\"deepseek-flash\"},\"tools\":[{\"type\":\"agent_toolset_20260401\"}]}. kind defaults to service when it is omitted and no computer_id is given, and to general when computer_id is given; it cannot change after creation. A general or assume agent created without computer_id gets a new computer registered in the same request, named after the agent; a service agent with computer_id returns 400. For kind assume, provide name without model, models, subagent_model, subagents or multiagent; vault_ids are accepted, bindings and environment_id are refused. phone gives the agent one phone, in one of two mutually exclusive forms: {sku, name?, archive: {exclude}} is a cloud Android device the platform builds on demand from that Sandbox SKU, and {byod, name?} is your organization's own device, named by a byd_… id it already owns (Brought Your Own Device), which the platform drives but never builds. A body naming both sku and byod returns 400, and a byd_… id this organization does not own returns 400 INVALID_PARAMS. Only a general or assume agent may have a phone: a service agent with phone returns 400. Drive assume agents over MCP at /agent/v1/agents/{id}/mcp.",
|
|
65
65
|
"http": "POST",
|
|
66
66
|
"path": "/agent/v1/agents",
|
|
67
67
|
"streaming": "no",
|
|
@@ -133,7 +133,7 @@ export const operations = [
|
|
|
133
133
|
"type": "array",
|
|
134
134
|
"itemType": "object",
|
|
135
135
|
"required": false,
|
|
136
|
-
"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 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 one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. 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."
|
|
136
|
+
"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 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 resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. 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, customer_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."
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"name": "kind",
|
|
@@ -144,7 +144,7 @@ export const operations = [
|
|
|
144
144
|
"assume"
|
|
145
145
|
],
|
|
146
146
|
"required": false,
|
|
147
|
-
"description": "Immutable agent kind. general
|
|
147
|
+
"description": "Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Omit on create to infer from computer_id (general with a computer, service without). A general or assume agent created without computer_id registers a new computer named after the agent in the same request; a service agent cannot take computer_id. assume rejects model, models, subagent_model, subagents and multiagent. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"name": "computer_id",
|
|
@@ -224,7 +224,7 @@ export const operations = [
|
|
|
224
224
|
"full"
|
|
225
225
|
],
|
|
226
226
|
"required": false,
|
|
227
|
-
"description": "Optional tool preset. minimal enables read, glob
|
|
227
|
+
"description": "Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor."
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
230
|
"name": "output_styles",
|
|
@@ -265,7 +265,7 @@ export const operations = [
|
|
|
265
265
|
"resource": "agent.agents",
|
|
266
266
|
"method": "update",
|
|
267
267
|
"summary": "Update agent",
|
|
268
|
-
"description": "Save configuration changes as a new immutable version. Send latest_version from a default retrieve or update response as the request version for optimistic concurrency; a stale value returns 409. apply defaults to true and makes the new version effective; apply false saves without changing active_version. The response contains the effective configuration, with version equal to active_version and latest_version naming the newest saved version. An unchanged configuration, including a note-only update, is a no-op returning 200 and the current effective version without creating or activating a version. version_note records up to 280 characters only when a configuration change creates a new version; null is equivalent to omission. Use agents.versions.apply to activate an existing saved version. Existing sessions and tokens keep their version. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Assume agents reject model, models, subagent_model, subagents and multiagent on every update; other fields follow the general agent rules, with vault_ids also accepted.",
|
|
268
|
+
"description": "Save configuration changes as a new immutable version. Send latest_version from a default retrieve or update response as the request version for optimistic concurrency; a stale value returns 409. apply defaults to true and makes the new version effective; apply false saves without changing active_version. The response contains the effective configuration, with version equal to active_version and latest_version naming the newest saved version. An unchanged configuration, including a note-only update, is a no-op returning 200 and the current effective version without creating or activating a version. version_note records up to 280 characters only when a configuration change creates a new version; null is equivalent to omission. Use agents.versions.apply to activate an existing saved version. Existing sessions and tokens keep their version. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. phone takes the same two mutually exclusive forms as agents.create: {sku, name?, archive} for a cloud device, or {byod, name?} for your organization's own device (a byd_… id); naming both returns 400, and a byd_… id this organization does not own returns 400 INVALID_PARAMS. phone: null turns the phone off and releases a cloud device; a BYOD phone is the organization's and is never killed. Assume agents reject model, models, subagent_model, subagents and multiagent on every update; other fields follow the general agent rules, with vault_ids also accepted.",
|
|
269
269
|
"http": "POST",
|
|
270
270
|
"path": "/agent/v1/agents/{agent_id}",
|
|
271
271
|
"streaming": "no",
|
|
@@ -372,7 +372,7 @@ export const operations = [
|
|
|
372
372
|
"assume"
|
|
373
373
|
],
|
|
374
374
|
"required": false,
|
|
375
|
-
"description": "Immutable agent kind. general
|
|
375
|
+
"description": "Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Omit on create to infer from computer_id (general with a computer, service without). A general or assume agent created without computer_id registers a new computer named after the agent in the same request; a service agent cannot take computer_id. assume rejects model, models, subagent_model, subagents and multiagent. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
|
|
376
376
|
},
|
|
377
377
|
{
|
|
378
378
|
"name": "computer_id",
|
|
@@ -452,7 +452,7 @@ export const operations = [
|
|
|
452
452
|
"full"
|
|
453
453
|
],
|
|
454
454
|
"required": false,
|
|
455
|
-
"description": "Optional tool preset. minimal enables read, glob
|
|
455
|
+
"description": "Optional tool preset. minimal enables read, glob and grep; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor."
|
|
456
456
|
},
|
|
457
457
|
{
|
|
458
458
|
"name": "output_styles",
|
|
@@ -776,6 +776,77 @@ export const operations = [
|
|
|
776
776
|
],
|
|
777
777
|
"query": []
|
|
778
778
|
},
|
|
779
|
+
{
|
|
780
|
+
"resource": "agent.agents",
|
|
781
|
+
"method": "retrieveEmbedPolicy",
|
|
782
|
+
"summary": "Get agent embed policy",
|
|
783
|
+
"description": "Read a service agent's embed settings: the pages allowed to open its Kit chat (allowed_origins), the development switch (allow_localhost), what an embedded end user may upload (uploads) and whether the agent may be shared by link with the daily caps its visitors count against (share_links). The allow list decides where the agent can be embedded at all, so after deploying an application, add that application's URL origin here (scheme, host and port, never a path) before the page loads the agent — otherwise its Kit chat answers ORIGIN_NOT_ALLOWED. Budgets, monthly caps and token lifetime are set in the console and are not part of this API. An agent of another organization answers 404; an agent that is not a service agent answers 400.",
|
|
784
|
+
"http": "GET",
|
|
785
|
+
"path": "/agent/v1/agents/{agent_id}/embed_policy",
|
|
786
|
+
"streaming": "no",
|
|
787
|
+
"pagination": false,
|
|
788
|
+
"pathParams": [
|
|
789
|
+
{
|
|
790
|
+
"name": "agent_id",
|
|
791
|
+
"sdkName": "agent_id",
|
|
792
|
+
"description": "Service agent id from agent creation or listing, the eight character identity number or the handle; the agent must be a service agent of your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
793
|
+
}
|
|
794
|
+
],
|
|
795
|
+
"query": []
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"resource": "agent.agents",
|
|
799
|
+
"method": "updateEmbedPolicy",
|
|
800
|
+
"summary": "Update agent embed policy",
|
|
801
|
+
"description": "Change some of a service agent's embed settings. Only the fields you send change: everything you leave out, including the budgets and the token lifetime set in the console, is kept exactly as it was. Send allowed_origins so the pages that load the agent are allowed — an application's URL origin must be in the list before the application can embed the agent, or its Kit chat answers ORIGIN_NOT_ALLOWED. Send allow_localhost while developing on http://localhost, and uploads to open, close or bound file attachments for the embedded end user. Send share_links to let the agent be shared by link and to set the daily session and spending caps its share links count against; turning it on is refused unless the agent has an identity number. Values are checked by the service: an origin is normalized and must be https, and at most one leading wildcard label may match a single subdomain level. max_file_bytes is 1 to 104857600 bytes and max_files_per_session is 1 to 100. Example: POST /agent/v1/agents/{agent_id}/embed_policy with {\"allowed_origins\": [\"https://my-app.example.com\"]}.",
|
|
802
|
+
"http": "POST",
|
|
803
|
+
"path": "/agent/v1/agents/{agent_id}/embed_policy",
|
|
804
|
+
"streaming": "no",
|
|
805
|
+
"pagination": false,
|
|
806
|
+
"pathParams": [
|
|
807
|
+
{
|
|
808
|
+
"name": "agent_id",
|
|
809
|
+
"sdkName": "agent_id",
|
|
810
|
+
"description": "Service agent id from agent creation or listing, the eight character identity number or the handle; the agent must be a service agent of your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
811
|
+
}
|
|
812
|
+
],
|
|
813
|
+
"query": [],
|
|
814
|
+
"body": {
|
|
815
|
+
"required": true,
|
|
816
|
+
"fields": [
|
|
817
|
+
{
|
|
818
|
+
"name": "allowed_origins",
|
|
819
|
+
"type": "array",
|
|
820
|
+
"itemType": "string",
|
|
821
|
+
"required": false,
|
|
822
|
+
"description": "Replaces the whole allow list: the https origins whose pages may open this agent's Kit chat, with no path, query or fragment. An origin is normalized before it is stored, and a leading wildcard label matches subdomains one label deep. Send the origin of the application you just deployed to let it embed the agent."
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
"name": "allow_localhost",
|
|
826
|
+
"type": "boolean",
|
|
827
|
+
"required": false,
|
|
828
|
+
"description": "Whether http://localhost or http://127.0.0.1 pages may open the chat during development."
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"name": "uploads",
|
|
832
|
+
"type": "object",
|
|
833
|
+
"required": false,
|
|
834
|
+
"description": "What an embedded end user may attach; only the fields you send are changed."
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
"name": "share_links",
|
|
838
|
+
"type": "object",
|
|
839
|
+
"required": false,
|
|
840
|
+
"description": "Whether this agent may be shared by link, and its daily caps; every field is optional and only what you send is changed. Turning it on requires the agent to have an identity number."
|
|
841
|
+
}
|
|
842
|
+
],
|
|
843
|
+
"example": {
|
|
844
|
+
"allowed_origins": [
|
|
845
|
+
"https://my-app.example.com"
|
|
846
|
+
]
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
},
|
|
779
850
|
{
|
|
780
851
|
"resource": "agent.agents.events",
|
|
781
852
|
"method": "list",
|
|
@@ -942,6 +1013,42 @@ export const operations = [
|
|
|
942
1013
|
}
|
|
943
1014
|
]
|
|
944
1015
|
},
|
|
1016
|
+
{
|
|
1017
|
+
"resource": "agent.agents.phone",
|
|
1018
|
+
"method": "retrieve",
|
|
1019
|
+
"summary": "Retrieve agent phone",
|
|
1020
|
+
"description": "Read the agent's phone, or learn that it has none: use it before driving the phone or to show its state in a settings page. configured says whether a phone block is saved at all (false is not an error: the phone is off). A cloud phone's state is one of none, starting, booting, restoring, running, archiving or releasing — none means no instance exists (never built, already released, or gone), archiving means its app state is being packed, and releasing means a release was asked for and the cron has not finished. A BYOD phone (the organization's own device) has two states instead, online and offline, and reports byod_device as its byd_… id, sku null and no lease. sku and name come from the configuration when one exists. When a cloud phone is reachable, sandbox_id is the public sandbox id of its running instance; for a BYOD phone sandbox_id is the byd_… id itself: take either phone over through POST /sandbox/v1/sandboxes/{id}/act, or open the sandbox page's screen tab in the Console; lease_ends_at is when a cloud instance's lease runs out and the sandbox kills it, and is always null for a BYOD phone. archived_at and archive_error describe the last app-state archive, which a fresh instance restores on the next use; both are null for a BYOD phone, which is never archived. Reading never builds a phone. Only a general or assume agent may have one: a service agent, an agent of another organization and a missing agent all answer 404 AGENT_NOT_FOUND. This operation is for people and their tools — the model cannot call it; an agent drives its own phone only through its phone tool, which can act on the device but cannot read this state or release it.",
|
|
1021
|
+
"http": "GET",
|
|
1022
|
+
"path": "/agent/v1/agents/{agent_id}/phone",
|
|
1023
|
+
"streaming": "no",
|
|
1024
|
+
"pagination": false,
|
|
1025
|
+
"pathParams": [
|
|
1026
|
+
{
|
|
1027
|
+
"name": "agent_id",
|
|
1028
|
+
"sdkName": "agent_id",
|
|
1029
|
+
"description": "Agent id from agent creation or listing, the eight character identity number or the handle. A service agent never has a phone and answers not found. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
1030
|
+
}
|
|
1031
|
+
],
|
|
1032
|
+
"query": []
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
"resource": "agent.agents.phone",
|
|
1036
|
+
"method": "release",
|
|
1037
|
+
"summary": "Release agent phone",
|
|
1038
|
+
"description": "Ask for the agent's cloud phone to go, and answer its state afterwards. The phone is not killed here: its app state is packed first (state archiving), then the instance is killed and the row cleared, so the state answers releasing until that sweep finishes and the next use builds a fresh instance and restores the archive. The configuration is never deleted — the phone block stays and turning the phone off is agents.update with phone null, a different door. With no phone configured, or one that was never built (state none), the call changes nothing and answers none, so it is safe to repeat; repeating it while a release is pending is idempotent. A BYOD phone (the organization's own device) is not the platform's to kill, so the call changes nothing and answers online or offline. Only a general or assume agent may have a phone: a service agent, an agent of another organization and a missing agent all answer 404 AGENT_NOT_FOUND. This operation is for people and their tools — the model cannot call it.",
|
|
1039
|
+
"http": "POST",
|
|
1040
|
+
"path": "/agent/v1/agents/{agent_id}/phone/release",
|
|
1041
|
+
"streaming": "no",
|
|
1042
|
+
"pagination": false,
|
|
1043
|
+
"pathParams": [
|
|
1044
|
+
{
|
|
1045
|
+
"name": "agent_id",
|
|
1046
|
+
"sdkName": "agent_id",
|
|
1047
|
+
"description": "Agent id from agent creation or listing, the eight character identity number or the handle. A service agent never has a phone and answers not found. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
1048
|
+
}
|
|
1049
|
+
],
|
|
1050
|
+
"query": []
|
|
1051
|
+
},
|
|
945
1052
|
{
|
|
946
1053
|
"resource": "agent.agents.unarchive",
|
|
947
1054
|
"method": "create",
|
|
@@ -1019,7 +1126,7 @@ export const operations = [
|
|
|
1019
1126
|
"resource": "agent.computers",
|
|
1020
1127
|
"method": "list",
|
|
1021
1128
|
"summary": "List Computers",
|
|
1022
|
-
"description": "List the computers of your organization, archived ones included.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference;
|
|
1129
|
+
"description": "List the computers of your organization, archived ones included.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
|
|
1023
1130
|
"http": "GET",
|
|
1024
1131
|
"path": "/agent/v1/computers",
|
|
1025
1132
|
"streaming": "no",
|
|
@@ -1044,7 +1151,7 @@ export const operations = [
|
|
|
1044
1151
|
"resource": "agent.computers",
|
|
1045
1152
|
"method": "create",
|
|
1046
1153
|
"summary": "Create Computer",
|
|
1047
|
-
"description": "Create a durable computer: a named machine whose files outlive sessions, for general agents.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference;
|
|
1154
|
+
"description": "Create a durable computer: a named machine whose files outlive sessions, for general agents.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
|
|
1048
1155
|
"http": "POST",
|
|
1049
1156
|
"path": "/agent/v1/computers",
|
|
1050
1157
|
"streaming": "no",
|
|
@@ -1091,7 +1198,7 @@ export const operations = [
|
|
|
1091
1198
|
"resource": "agent.computers",
|
|
1092
1199
|
"method": "retrieve",
|
|
1093
1200
|
"summary": "Get Computer",
|
|
1094
|
-
"description": "Read one computer's status, storage use and sandbox id.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference;
|
|
1201
|
+
"description": "Read one computer's status, storage use and sandbox id.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
|
|
1095
1202
|
"http": "GET",
|
|
1096
1203
|
"path": "/agent/v1/computers/{computer_id}",
|
|
1097
1204
|
"streaming": "no",
|
|
@@ -1109,7 +1216,7 @@ export const operations = [
|
|
|
1109
1216
|
"resource": "agent.computers",
|
|
1110
1217
|
"method": "update",
|
|
1111
1218
|
"summary": "Update Computer",
|
|
1112
|
-
"description": "Rename a computer.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference;
|
|
1219
|
+
"description": "Rename a computer.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
|
|
1113
1220
|
"http": "POST",
|
|
1114
1221
|
"path": "/agent/v1/computers/{computer_id}",
|
|
1115
1222
|
"streaming": "no",
|
|
@@ -1138,7 +1245,7 @@ export const operations = [
|
|
|
1138
1245
|
"resource": "agent.computers",
|
|
1139
1246
|
"method": "archive",
|
|
1140
1247
|
"summary": "Archive Computer",
|
|
1141
|
-
"description": "Archive a computer: its files stay readable but new sessions cannot use it.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference;
|
|
1248
|
+
"description": "Archive a computer: its files stay readable but new sessions cannot use it.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers. A computer an active agent holds is refused with 409 COMPUTER_IN_USE; archive the agent first.",
|
|
1142
1249
|
"http": "POST",
|
|
1143
1250
|
"path": "/agent/v1/computers/{computer_id}/archive",
|
|
1144
1251
|
"streaming": "no",
|
|
@@ -1218,7 +1325,7 @@ export const operations = [
|
|
|
1218
1325
|
"resource": "agent.computers.files",
|
|
1219
1326
|
"method": "list",
|
|
1220
1327
|
"summary": "List Computer Files",
|
|
1221
|
-
"description": "List the entries of one directory on a computer.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference;
|
|
1328
|
+
"description": "List the entries of one directory on a computer.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
|
|
1222
1329
|
"http": "GET",
|
|
1223
1330
|
"path": "/agent/v1/computers/{computer_id}/files",
|
|
1224
1331
|
"streaming": "no",
|
|
@@ -1243,7 +1350,7 @@ export const operations = [
|
|
|
1243
1350
|
"resource": "agent.computers.files",
|
|
1244
1351
|
"method": "retrieveContent",
|
|
1245
1352
|
"summary": "Get Computer File Content",
|
|
1246
|
-
"description": "Download the bytes of one file on a computer, up to 16 MiB, with single-range support.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference;
|
|
1353
|
+
"description": "Download the bytes of one file on a computer, up to 16 MiB, with single-range support.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
|
|
1247
1354
|
"http": "GET",
|
|
1248
1355
|
"path": "/agent/v1/computers/{computer_id}/files/content",
|
|
1249
1356
|
"streaming": "no",
|
|
@@ -1264,6 +1371,43 @@ export const operations = [
|
|
|
1264
1371
|
}
|
|
1265
1372
|
]
|
|
1266
1373
|
},
|
|
1374
|
+
{
|
|
1375
|
+
"resource": "agent.computers.files",
|
|
1376
|
+
"method": "updateContent",
|
|
1377
|
+
"summary": "Write computer file content",
|
|
1378
|
+
"description": "Write the bytes of one existing file on a computer, only if the file is still the version you read.\n\nSend the raw bytes as the body (at most 16 MiB) and the version you edited in `If-Match`: the `version` field of the file listing (`<size>-<mtimeMs>`). The file must already exist; the write replaces it whole and keeps its permissions. A request without `If-Match` answers 428 FILE_VERSION_REQUIRED and nothing is written. When the file has changed since that version, the answer is 412 FILE_VERSION_MISMATCH with `error.current_version`, and nothing is written: read the file again, redo the edit and write with the new version. The version is checked against the file's current size and modification time, then the content digest is bound into the write itself, so a change that lands while the bytes are being written is refused instead of overwritten. Paths under /attachments and /skills are read-only (403 READ_ONLY). A successful write answers the new path, size, mtime and version; use that version for the next write.",
|
|
1379
|
+
"http": "PUT",
|
|
1380
|
+
"path": "/agent/v1/computers/{computer_id}/files/content",
|
|
1381
|
+
"streaming": "no",
|
|
1382
|
+
"pagination": false,
|
|
1383
|
+
"pathParams": [
|
|
1384
|
+
{
|
|
1385
|
+
"name": "computer_id",
|
|
1386
|
+
"sdkName": "computer_id",
|
|
1387
|
+
"description": "Computer id from computer creation or listing; a computer another tenant owns is not found."
|
|
1388
|
+
}
|
|
1389
|
+
],
|
|
1390
|
+
"query": [
|
|
1391
|
+
{
|
|
1392
|
+
"name": "path",
|
|
1393
|
+
"type": "string",
|
|
1394
|
+
"required": true,
|
|
1395
|
+
"description": "Absolute path of the existing file on the computer, or a /workspace/ relative path."
|
|
1396
|
+
}
|
|
1397
|
+
],
|
|
1398
|
+
"headers": [
|
|
1399
|
+
{
|
|
1400
|
+
"name": "If-Match",
|
|
1401
|
+
"type": "string",
|
|
1402
|
+
"required": true,
|
|
1403
|
+
"description": "The file version you edited, as the file listing gives it (<size>-<mtimeMs>); a quoted value is accepted."
|
|
1404
|
+
}
|
|
1405
|
+
],
|
|
1406
|
+
"body": {
|
|
1407
|
+
"required": true,
|
|
1408
|
+
"fields": []
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1267
1411
|
{
|
|
1268
1412
|
"resource": "agent.computers.files.convert",
|
|
1269
1413
|
"method": "create",
|
|
@@ -1289,6 +1433,50 @@ export const operations = [
|
|
|
1289
1433
|
}
|
|
1290
1434
|
]
|
|
1291
1435
|
},
|
|
1436
|
+
{
|
|
1437
|
+
"resource": "agent.computers.files",
|
|
1438
|
+
"method": "retrievePreview",
|
|
1439
|
+
"summary": "Preview a computer file",
|
|
1440
|
+
"description": "The preview product of one version of one computer file: an image becomes a 1600 px WebP, an Office document a linearized PDF, text and source the first 64 KiB, and PDF, xlsx, epub, GIF, SVG and unknown types their original bytes. Products live in the File service and are keyed by computer, path, size, mtime, variant and format version. A request that pins `v` answers from that registry without stat'ing or waking the computer; without `v` the file is read and the product generated once. A file over the size threshold, or a deployment without the File service, answers `fallback: \"content\"` so the caller keeps the ordinary content door.",
|
|
1441
|
+
"http": "GET",
|
|
1442
|
+
"path": "/agent/v1/computers/{computer_id}/files/preview",
|
|
1443
|
+
"streaming": "no",
|
|
1444
|
+
"pagination": false,
|
|
1445
|
+
"pathParams": [
|
|
1446
|
+
{
|
|
1447
|
+
"name": "computer_id",
|
|
1448
|
+
"sdkName": "computer_id",
|
|
1449
|
+
"description": "Computer id from computer creation or listing; a computer another tenant owns is not found."
|
|
1450
|
+
}
|
|
1451
|
+
],
|
|
1452
|
+
"query": [
|
|
1453
|
+
{
|
|
1454
|
+
"name": "path",
|
|
1455
|
+
"type": "string",
|
|
1456
|
+
"required": true,
|
|
1457
|
+
"description": "Absolute path of the file on the computer, or a /workspace/ relative path."
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
"name": "v",
|
|
1461
|
+
"type": "string",
|
|
1462
|
+
"required": false,
|
|
1463
|
+
"description": "The file version to answer for: the file listing's version (<size>-<mtimeMs>), or the full product version (<size>-<mtimeMs>-<variant>-fmt<N>) a previous answer returned. A pinned version answers from the product registry without a stat or a wake."
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
"name": "variant",
|
|
1467
|
+
"type": "string",
|
|
1468
|
+
"enum": [
|
|
1469
|
+
"auto",
|
|
1470
|
+
"image",
|
|
1471
|
+
"pdf",
|
|
1472
|
+
"text",
|
|
1473
|
+
"original"
|
|
1474
|
+
],
|
|
1475
|
+
"required": false,
|
|
1476
|
+
"description": "The product to answer; auto picks the kind's own (image, pdf, text or original). A variant the file cannot produce answers 400 PREVIEW_VARIANT_UNAVAILABLE."
|
|
1477
|
+
}
|
|
1478
|
+
]
|
|
1479
|
+
},
|
|
1292
1480
|
{
|
|
1293
1481
|
"resource": "agent.computers.leases",
|
|
1294
1482
|
"method": "delete",
|
|
@@ -1495,7 +1683,7 @@ export const operations = [
|
|
|
1495
1683
|
"resource": "agent.deployments",
|
|
1496
1684
|
"method": "create",
|
|
1497
1685
|
"summary": "Create deployment",
|
|
1498
|
-
"description": "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400.",
|
|
1686
|
+
"description": "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400. Example, a weekly cron deployment on the agent's computer: {\"agent\":\"agent_123\",\"name\":\"weekly report\",\"initial_events\":[{\"type\":\"user.message\",\"content\":[{\"type\":\"text\",\"text\":\"Write the weekly report.\"}]}],\"target\":{\"type\":\"computer\"},\"schedule\":{\"type\":\"cron\",\"expression\":\"0 9 * * 1\",\"timezone\":\"America/Los_Angeles\"}}.",
|
|
1499
1687
|
"http": "POST",
|
|
1500
1688
|
"path": "/agent/v1/deployments",
|
|
1501
1689
|
"streaming": "no",
|
|
@@ -2114,6 +2302,16 @@ export const operations = [
|
|
|
2114
2302
|
"required": false,
|
|
2115
2303
|
"description": "Session working directory on any machine. Must be an absolute path within /home/user with no . or .. segments. Repeated and trailing slashes are normalized. Invalid values return 400 invalid_request_error with Invalid cwd."
|
|
2116
2304
|
},
|
|
2305
|
+
{
|
|
2306
|
+
"name": "workspace",
|
|
2307
|
+
"type": "string",
|
|
2308
|
+
"enum": [
|
|
2309
|
+
"shared",
|
|
2310
|
+
"isolated"
|
|
2311
|
+
],
|
|
2312
|
+
"required": false,
|
|
2313
|
+
"description": "Praxis extension: where the session's work happens. shared (default) opens it in the project's own folder; isolated asks for a session-owned git worktree when a named project's folder is a git repository, so concurrent desks in one project never touch each other's files. An explicit cwd is always taken as given, and a project that is not a git repository is always shared."
|
|
2314
|
+
},
|
|
2117
2315
|
{
|
|
2118
2316
|
"name": "computer_id",
|
|
2119
2317
|
"type": "string",
|
|
@@ -2237,6 +2435,38 @@ export const operations = [
|
|
|
2237
2435
|
]
|
|
2238
2436
|
}
|
|
2239
2437
|
},
|
|
2438
|
+
{
|
|
2439
|
+
"resource": "agent.sessions.agentVersion",
|
|
2440
|
+
"method": "create",
|
|
2441
|
+
"summary": "Update session agent version",
|
|
2442
|
+
"description": "Move one session to a version of its agent\n\nWithout `version`, the session moves to the agent's active version — the version new sessions get now, which is not necessarily the newest saved one. With `version`, it moves to that existing version. The change is idempotent: asking for the version the session is already on answers the session and writes nothing, so the call may be repeated freely. A session that is running a turn answers 409 SESSION_CONFLICT and changes nothing, because a turn finishes on the version it started with; ask again once it is idle. The move writes a `session.updated` event carrying the agent version and the caller as its actor, so every version change is attributable. Main sessions additionally follow their agent's active version at the start of a person-started turn; this endpoint is the same move made explicitly, and it works on every kind of session, including worker sessions that never follow on their own.",
|
|
2443
|
+
"http": "POST",
|
|
2444
|
+
"path": "/agent/v1/sessions/{session_id}/agent_version",
|
|
2445
|
+
"streaming": "no",
|
|
2446
|
+
"pagination": false,
|
|
2447
|
+
"pathParams": [
|
|
2448
|
+
{
|
|
2449
|
+
"name": "session_id",
|
|
2450
|
+
"sdkName": "session_id",
|
|
2451
|
+
"description": "Session id from session creation or listing, or the own face's session name for a main session."
|
|
2452
|
+
}
|
|
2453
|
+
],
|
|
2454
|
+
"query": [],
|
|
2455
|
+
"body": {
|
|
2456
|
+
"required": false,
|
|
2457
|
+
"fields": [
|
|
2458
|
+
{
|
|
2459
|
+
"name": "version",
|
|
2460
|
+
"type": "integer",
|
|
2461
|
+
"required": false,
|
|
2462
|
+
"description": "An existing version of the session's agent, from agents.versions.list. Omit to use the agent's active version."
|
|
2463
|
+
}
|
|
2464
|
+
],
|
|
2465
|
+
"example": {
|
|
2466
|
+
"version": 5
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
},
|
|
2240
2470
|
{
|
|
2241
2471
|
"resource": "agent.sessions",
|
|
2242
2472
|
"method": "archive",
|
|
@@ -2639,11 +2869,40 @@ export const operations = [
|
|
|
2639
2869
|
]
|
|
2640
2870
|
}
|
|
2641
2871
|
},
|
|
2872
|
+
{
|
|
2873
|
+
"resource": "agent.sessions.name",
|
|
2874
|
+
"method": "create",
|
|
2875
|
+
"summary": "Rename Session (Extension)",
|
|
2876
|
+
"description": "Give a session a short, branch-like name; the main session is always main and cannot be renamed.\n\nAvailable only on /agent/v1. The name is normalized first (surrounding whitespace trimmed, upper case folded to lowercase, runs of whitespace become one hyphen, characters the rule does not admit dropped, and no hyphen left hanging at either end) and then validated: non-empty, at most 32 display columns wide (a Han character counts as two), made only of Han characters, lowercase ASCII letters, digits and hyphens, and never the reserved word main. A name another of the caller's own sessions already holds is not an error: the answer carries a numeric suffix (base-2, base-3, …). Renaming the main session returns 400; a missing session, one that belongs to another caller, or one the caller cannot write returns 404. Returns 200 with the same Session shape as retrieval, name set to the new name; one rename writes a session.renamed event. Example: POST /agent/v1/sessions/sesn_login/name with body {\"name\":\"login-fix\"}.",
|
|
2877
|
+
"http": "POST",
|
|
2878
|
+
"path": "/agent/v1/sessions/{session_id}/name",
|
|
2879
|
+
"streaming": "no",
|
|
2880
|
+
"pagination": false,
|
|
2881
|
+
"pathParams": [
|
|
2882
|
+
{
|
|
2883
|
+
"name": "session_id",
|
|
2884
|
+
"sdkName": "session_id",
|
|
2885
|
+
"description": "Session id from session creation or listing. The reserved name main is not renameable."
|
|
2886
|
+
}
|
|
2887
|
+
],
|
|
2888
|
+
"query": [],
|
|
2889
|
+
"body": {
|
|
2890
|
+
"required": true,
|
|
2891
|
+
"fields": [
|
|
2892
|
+
{
|
|
2893
|
+
"name": "name",
|
|
2894
|
+
"type": "string",
|
|
2895
|
+
"required": true,
|
|
2896
|
+
"description": "The session's new short name: Han characters, lowercase ASCII letters, digits and hyphens, at most 32 columns (a Han character counts as two), never the reserved word main. Surrounding whitespace is trimmed and uppercase is folded to lowercase."
|
|
2897
|
+
}
|
|
2898
|
+
]
|
|
2899
|
+
}
|
|
2900
|
+
},
|
|
2642
2901
|
{
|
|
2643
2902
|
"resource": "agent.sessions.requests",
|
|
2644
2903
|
"method": "list",
|
|
2645
2904
|
"summary": "List Session Requests (Extension)",
|
|
2646
|
-
"description": "List the requests a session is waiting on; an end-customer token reads its own session.\n\nOwn-face extension. When a session stops at session.status_idle with stop_reason requires_action, read what it waits on here instead of replaying events. Returns { data: Request[] } ordered by create_time, an empty array when nothing is pending, not paginated. Each request has id (the pending tool call id), object (request), kind (
|
|
2905
|
+
"description": "List the requests a session is waiting on; an end-customer token reads its own session.\n\nOwn-face extension. When a session stops at session.status_idle with stop_reason requires_action, read what it waits on here instead of replaying events. Returns { data: Request[] } ordered by create_time, an empty array when nothing is pending, not paginated. Each request has id (the pending tool call id), object (request), kind (always approval, a tool waiting for permission; question is kept for compatibility and is never returned), status (pending), tool_name, input (the same input the agent.tool_use event shows), create_time and expire_time. Answer a request as before: send a user.tool_confirmation event for its id. expire_time is set only for a session with no collaboration mode while the requests-v1 release is on (create_time plus 24 hours; an expired request counts as declined), otherwise null. Answered, expired and superseded requests are not listed, and neither are pending custom tool results (user.custom_tool_result). Whoever may read the session may read its requests; a session that is missing or not yours returns 404.",
|
|
2647
2906
|
"http": "GET",
|
|
2648
2907
|
"path": "/agent/v1/sessions/{session_id}/requests",
|
|
2649
2908
|
"streaming": "no",
|
|
@@ -3273,7 +3532,7 @@ export const operations = [
|
|
|
3273
3532
|
"resource": "agent.toolsets",
|
|
3274
3533
|
"method": "list",
|
|
3275
3534
|
"summary": "List Toolsets",
|
|
3276
|
-
"description": "Discover tool names, input schemas, read-only status and default permission policies before configuring an agent. The catalog is read-only: enable tools through agents.create or agents.update. agent_toolset_20260401 includes bash, edit, glob, grep, read, write, web_search, web_fetch, task_output, task_stop, monitor, agent, send_message, codemode and skill, plus todo_write
|
|
3535
|
+
"description": "Discover tool names, input schemas, read-only status and default permission policies before configuring an agent. The catalog is read-only: enable tools through agents.create or agents.update. agent_toolset_20260401 includes bash, edit, glob, grep, read, write, web_search, web_fetch, task_output, task_stop, monitor, agent, send_message, codemode and skill, plus todo_write and goal_read, which are listed so they can be switched off. Native additions require bash enabled; codemode requires bash (enabling it with bash disabled returns 400; keep bash enabled with permission_policy always_ask to restrict it); send_message also requires agent. To keep only some tools, set default_config.enabled to false and enable the wanted tools in configs; unlisted tools follow default_config. The catalog includes plugin names and versions. Sessions created through /anthropic/v1 expose only the eight official tools.",
|
|
3277
3536
|
"http": "GET",
|
|
3278
3537
|
"path": "/agent/v1/toolsets",
|
|
3279
3538
|
"streaming": "no",
|
|
@@ -3785,7 +4044,7 @@ export const operations = [
|
|
|
3785
4044
|
"resource": "application.workers.grants",
|
|
3786
4045
|
"method": "create",
|
|
3787
4046
|
"summary": "Create grant",
|
|
3788
|
-
"description": "Record access to an organization-owned database
|
|
4047
|
+
"description": "Record access to an organization-owned database, knowledge base, file, media library, workflow, script, agent or another Worker, to models (id *, read only), or to a whole service (search, browser, ticket, crm, canvas, cut, studio, ontology, workspace: id *, read_write; feedback: read), or to full authority (organization: id *, read_write), which excludes every other grant. The types are the ones a service agent can bind. The retired files type is refused; grant one file by its file-… id. A Worker's platform calls reach only what its grants name, and nothing with no grant; an agent grant at read_write is what lets it issue that agent's customer grant codes. Each resource and optional alias must be unique within this Worker. Foreign and missing resources both return RESOURCE_NOT_FOUND (404); an unavailable resource service returns PROVIDER_CAPACITY (503, retryable).",
|
|
3789
4048
|
"http": "POST",
|
|
3790
4049
|
"path": "/application/v1/workers/{worker_id}/grants",
|
|
3791
4050
|
"streaming": "no",
|
|
@@ -3977,7 +4236,7 @@ export const operations = [
|
|
|
3977
4236
|
"resource": "application.workers.versions",
|
|
3978
4237
|
"method": "create",
|
|
3979
4238
|
"summary": "Create version",
|
|
3980
|
-
"description": "Upload code and bindings as a new version; a version serves nothing until deployed. Set deploy true to create the pending deployment in the same call. Rejected binding types return UNSUPPORTED.",
|
|
4239
|
+
"description": "Upload code and bindings as a new version; a version serves nothing until deployed. Set deploy true to create the pending deployment in the same call. Rejected binding types return UNSUPPORTED. Send an Idempotency-Key to make a create safe to retry: within 24 hours the same key with the same body answers the first version (and its deployment) again instead of creating a second one, and the same key with a different body is refused.",
|
|
3981
4240
|
"http": "POST",
|
|
3982
4241
|
"path": "/application/v1/workers/{worker_id}/versions",
|
|
3983
4242
|
"streaming": "no",
|
|
@@ -4320,6 +4579,14 @@ export const operations = [
|
|
|
4320
4579
|
"description": "true checks compatibility without persisting and may omit If-Match; omitted or false performs a normal update."
|
|
4321
4580
|
}
|
|
4322
4581
|
],
|
|
4582
|
+
"headers": [
|
|
4583
|
+
{
|
|
4584
|
+
"name": "If-Match",
|
|
4585
|
+
"type": "string",
|
|
4586
|
+
"required": false,
|
|
4587
|
+
"description": "Required for normal updates; optional for dry_run=true but still validated when supplied. * matches any existing representation; otherwise supply the current revision ETag."
|
|
4588
|
+
}
|
|
4589
|
+
],
|
|
4323
4590
|
"body": {
|
|
4324
4591
|
"required": true,
|
|
4325
4592
|
"fields": [
|
|
@@ -4643,6 +4910,14 @@ export const operations = [
|
|
|
4643
4910
|
}
|
|
4644
4911
|
],
|
|
4645
4912
|
"query": [],
|
|
4913
|
+
"headers": [
|
|
4914
|
+
{
|
|
4915
|
+
"name": "If-Match",
|
|
4916
|
+
"type": "string",
|
|
4917
|
+
"required": false,
|
|
4918
|
+
"description": "Optional current revision or *; checked when supplied, with * matching any existing representation."
|
|
4919
|
+
}
|
|
4920
|
+
],
|
|
4646
4921
|
"body": {
|
|
4647
4922
|
"required": true,
|
|
4648
4923
|
"fields": [
|
|
@@ -4683,6 +4958,14 @@ export const operations = [
|
|
|
4683
4958
|
}
|
|
4684
4959
|
],
|
|
4685
4960
|
"query": [],
|
|
4961
|
+
"headers": [
|
|
4962
|
+
{
|
|
4963
|
+
"name": "webhook-id",
|
|
4964
|
+
"type": "string",
|
|
4965
|
+
"required": false,
|
|
4966
|
+
"description": "Optional deduplication identifier, retained for 24 hours within this trigger."
|
|
4967
|
+
}
|
|
4968
|
+
],
|
|
4686
4969
|
"body": {
|
|
4687
4970
|
"required": false,
|
|
4688
4971
|
"fields": []
|
|
@@ -5210,6 +5493,14 @@ export const operations = [
|
|
|
5210
5493
|
"required": false,
|
|
5211
5494
|
"description": "Opaque next_cursor from the previous page; keep the original filters when paging."
|
|
5212
5495
|
}
|
|
5496
|
+
],
|
|
5497
|
+
"headers": [
|
|
5498
|
+
{
|
|
5499
|
+
"name": "Last-Event-ID",
|
|
5500
|
+
"type": "string",
|
|
5501
|
+
"required": false,
|
|
5502
|
+
"description": "SSE resume cursor; read entries after this event. Takes precedence over cursor and applies only to streams."
|
|
5503
|
+
}
|
|
5213
5504
|
]
|
|
5214
5505
|
},
|
|
5215
5506
|
{
|
|
@@ -5241,6 +5532,14 @@ export const operations = [
|
|
|
5241
5532
|
"required": false,
|
|
5242
5533
|
"description": "Opaque next_cursor from the previous page; keep the original filters when paging."
|
|
5243
5534
|
}
|
|
5535
|
+
],
|
|
5536
|
+
"headers": [
|
|
5537
|
+
{
|
|
5538
|
+
"name": "Last-Event-ID",
|
|
5539
|
+
"type": "string",
|
|
5540
|
+
"required": false,
|
|
5541
|
+
"description": "SSE resume cursor; read entries after this event. Takes precedence over cursor and applies only to streams."
|
|
5542
|
+
}
|
|
5244
5543
|
]
|
|
5245
5544
|
},
|
|
5246
5545
|
{
|
|
@@ -5619,6 +5918,14 @@ export const operations = [
|
|
|
5619
5918
|
}
|
|
5620
5919
|
],
|
|
5621
5920
|
"query": [],
|
|
5921
|
+
"headers": [
|
|
5922
|
+
{
|
|
5923
|
+
"name": "If-Match",
|
|
5924
|
+
"type": "string",
|
|
5925
|
+
"required": true,
|
|
5926
|
+
"description": "Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412."
|
|
5927
|
+
}
|
|
5928
|
+
],
|
|
5622
5929
|
"body": {
|
|
5623
5930
|
"required": true,
|
|
5624
5931
|
"fields": [
|
|
@@ -6279,6 +6586,14 @@ export const operations = [
|
|
|
6279
6586
|
"pagination": false,
|
|
6280
6587
|
"pathParams": [],
|
|
6281
6588
|
"query": [],
|
|
6589
|
+
"headers": [
|
|
6590
|
+
{
|
|
6591
|
+
"name": "Accept-Language",
|
|
6592
|
+
"type": "string",
|
|
6593
|
+
"required": false,
|
|
6594
|
+
"description": "Language for the readable description; supports Chinese (default) and English by language quality preference."
|
|
6595
|
+
}
|
|
6596
|
+
],
|
|
6282
6597
|
"body": {
|
|
6283
6598
|
"required": true,
|
|
6284
6599
|
"fields": [
|
|
@@ -6350,6 +6665,14 @@ export const operations = [
|
|
|
6350
6665
|
}
|
|
6351
6666
|
],
|
|
6352
6667
|
"query": [],
|
|
6668
|
+
"headers": [
|
|
6669
|
+
{
|
|
6670
|
+
"name": "If-Match",
|
|
6671
|
+
"type": "string",
|
|
6672
|
+
"required": true,
|
|
6673
|
+
"description": "Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412."
|
|
6674
|
+
}
|
|
6675
|
+
],
|
|
6353
6676
|
"body": {
|
|
6354
6677
|
"required": true,
|
|
6355
6678
|
"fields": [
|
|
@@ -6570,7 +6893,7 @@ export const operations = [
|
|
|
6570
6893
|
"resource": "automation.validate",
|
|
6571
6894
|
"method": "create",
|
|
6572
6895
|
"summary": "Validate a definition",
|
|
6573
|
-
"description": "Check source without executing it when you need diagnostics, inferred schemas or references. This is optional before praxis.automation.runs.create, which also validates source before execution. Actions, scripts and workflows are supported; results include validity without saving. Invalid source is reported with valid=false. Script/action output schemas are inferred from return types: Promise unwrapping, Record, intersections and Date. Unknown types yield an empty schema and a warning in warnings. Source diagnostics use /source or /implementation/source with 1-based line/column. For kind=action the same admission checks as action creation apply (no external imports, platform operations only as direct call(praxis/<api>.<op>, input) calls, no agent or automation calls), so source that validates is not rejected at creation. For kind=workflow the YAML needs document (dsl, namespace, name, version) and do; each problem is one entry in errors[] (pointer, detail, hint), so read the first one. A listen outside the supported subset (to.all, inside a fork) and emit are not reported here and fail with DEFINITION_INVALID only when a run is created. Workflow syntax reference: https://deepraxis.com/
|
|
6896
|
+
"description": "Check source without executing it when you need diagnostics, inferred schemas or references. This is optional before praxis.automation.runs.create, which also validates source before execution. Actions, scripts and workflows are supported; results include validity without saving. Invalid source is reported with valid=false. Script/action output schemas are inferred from return types: Promise unwrapping, Record, intersections and Date. Unknown types yield an empty schema and a warning in warnings. Source diagnostics use /source or /implementation/source with 1-based line/column. For kind=action the same admission checks as action creation apply (no external imports, platform operations only as direct call(praxis/<api>.<op>, input) calls, no agent or automation calls), so source that validates is not rejected at creation. For kind=workflow the YAML needs document (dsl, namespace, name, version) and do; each problem is one entry in errors[] (pointer, detail, hint), so read the first one. A listen outside the supported subset (to.all, inside a fork) and emit are not reported here and fail with DEFINITION_INVALID only when a run is created. Workflow syntax reference: https://docs.deepraxis.com/developers/automation/reference/workflow-syntax.",
|
|
6574
6897
|
"http": "POST",
|
|
6575
6898
|
"path": "/automation/v1/validate",
|
|
6576
6899
|
"streaming": "no",
|
|
@@ -6677,7 +7000,7 @@ export const operations = [
|
|
|
6677
7000
|
"resource": "automation.workflows",
|
|
6678
7001
|
"method": "create",
|
|
6679
7002
|
"summary": "Create a workflow",
|
|
6680
|
-
"description": "Workflow syntax reference: https://deepraxis.com/
|
|
7003
|
+
"description": "Workflow syntax reference: https://docs.deepraxis.com/developers/automation/reference/workflow-syntax. Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl (\"1.0.3\"), namespace, name and version, plus a do list of steps, for example document: {dsl: \"1.0.3\", namespace: demo, name: add, version: \"1.0.0\"} and do: [{first: {call: demo/add-one, with: {n: \"${ .n }\"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action 5 min (run-sandbox 6 h), workflow 24 h by default and 30 days at most, payload 1 MiB. Test the draft by sending its source and language=yaml to praxis.automation.runs.create. To pause for a person, call praxis/approval (it opens a human task; the step output is the decision); agents answer with praxis.automation.humanTasks.respond on behalf of their user. Guide: /developers/automation/guides/approvals Guide: /developers/automation/guides/write-workflow. Error details are in the errors[] of the response (pointer, detail, hint). Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. run.workflow accepts ns/name@range or {namespace, name, version, input}; run.script uses the same reference shape as a platform extension. Object namespace, name and version are required; version accepts an exact version, dist-tag or range, locked at publication. Object input defaults to {} and supports expressions; string references retain task-level with. run.await defaults to true and returns the child output. With false, the child uses detach and the task immediately returns {run_id}; parent cancellation does not cascade. Inline script.code returns DEFINITION_INVALID with a detail asking you to save a script and reference it first. raise.error retains its type URI, status, title and detail in the run error.",
|
|
6681
7004
|
"http": "POST",
|
|
6682
7005
|
"path": "/automation/v1/workflows",
|
|
6683
7006
|
"streaming": "no",
|
|
@@ -6747,7 +7070,7 @@ export const operations = [
|
|
|
6747
7070
|
"resource": "automation.workflows",
|
|
6748
7071
|
"method": "update",
|
|
6749
7072
|
"summary": "Update a workflow draft",
|
|
6750
|
-
"description": "Update description, labels or draft with the current draft revision in If-Match, taken from draft.revision in the get-workflow response. Even metadata-only updates create a new draft revision. A mismatch returns 412 PRECONDITION_FAILED; read the draft again, merge and retry. The draft is not validated here, so check it with validate (kind=workflow) before publishing. Error details are in errors[]. See the workflow syntax reference at https://deepraxis.com/
|
|
7073
|
+
"description": "Update description, labels or draft with the current draft revision in If-Match, taken from draft.revision in the get-workflow response. Even metadata-only updates create a new draft revision. A mismatch returns 412 PRECONDITION_FAILED; read the draft again, merge and retry. The draft is not validated here, so check it with validate (kind=workflow) before publishing. Error details are in errors[]. See the workflow syntax reference at https://docs.deepraxis.com/developers/automation/reference/workflow-syntax.",
|
|
6751
7074
|
"http": "PATCH",
|
|
6752
7075
|
"path": "/automation/v1/workflows/{ns}/{name}",
|
|
6753
7076
|
"streaming": "no",
|
|
@@ -6765,6 +7088,14 @@ export const operations = [
|
|
|
6765
7088
|
}
|
|
6766
7089
|
],
|
|
6767
7090
|
"query": [],
|
|
7091
|
+
"headers": [
|
|
7092
|
+
{
|
|
7093
|
+
"name": "If-Match",
|
|
7094
|
+
"type": "string",
|
|
7095
|
+
"required": true,
|
|
7096
|
+
"description": "Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412."
|
|
7097
|
+
}
|
|
7098
|
+
],
|
|
6768
7099
|
"body": {
|
|
6769
7100
|
"required": true,
|
|
6770
7101
|
"fields": [
|
|
@@ -7165,6 +7496,18 @@ export const operations = [
|
|
|
7165
7496
|
]
|
|
7166
7497
|
}
|
|
7167
7498
|
},
|
|
7499
|
+
{
|
|
7500
|
+
"resource": "billing.prices",
|
|
7501
|
+
"method": "list",
|
|
7502
|
+
"summary": "List current prices",
|
|
7503
|
+
"description": "Read every open price item with the amount in force now, in USD and CNY, for example to show a pricing page or check what a meter costs before using it. No credential: the response is the public price book, not an organization's prices, so customer-specific prices and cost floors are not part of it (the source does not carry them). Each entry names the item id, the product (the id's namespace such as router, sandbox or search), the meter's unit and how many units one amount covers (per is 1000000 for per-million-token meters). A model with one amount has one entry; a price that varies by tier or by dimensions has one entry per tier or cell, told apart by variant: tier carries up_to, cell carries when, and a matrix default is kind default. Only versions already in force are shown, so an announced price never appears before its effective_from. usd and cny are decimal strings of major units copied from the price book; a currency the item does not price is null and must be shown as \"—\", never as 0. pricing_version and effective_at identify the catalog this body came from, and the ETag is derived from both: send it as If-None-Match to get 304 until either changes. Cache-Control is public, max-age=60, so revalidate rather than keeping a copy longer. Reading is free.",
|
|
7504
|
+
"http": "GET",
|
|
7505
|
+
"path": "/billing/v1/prices",
|
|
7506
|
+
"streaming": "no",
|
|
7507
|
+
"pagination": false,
|
|
7508
|
+
"pathParams": [],
|
|
7509
|
+
"query": []
|
|
7510
|
+
},
|
|
7168
7511
|
{
|
|
7169
7512
|
"resource": "browser.connect",
|
|
7170
7513
|
"method": "retrieve",
|
|
@@ -8530,6 +8873,14 @@ export const operations = [
|
|
|
8530
8873
|
"pagination": false,
|
|
8531
8874
|
"pathParams": [],
|
|
8532
8875
|
"query": [],
|
|
8876
|
+
"headers": [
|
|
8877
|
+
{
|
|
8878
|
+
"name": "Origin",
|
|
8879
|
+
"type": "string",
|
|
8880
|
+
"required": false,
|
|
8881
|
+
"description": "Browser page origin the playback is opened from, for example https://school.example.com. Required when the content's allowed_origins is not empty; it must then match one of its entries exactly."
|
|
8882
|
+
}
|
|
8883
|
+
],
|
|
8533
8884
|
"body": {
|
|
8534
8885
|
"required": true,
|
|
8535
8886
|
"fields": [
|
|
@@ -10264,6 +10615,14 @@ export const operations = [
|
|
|
10264
10615
|
"pagination": false,
|
|
10265
10616
|
"pathParams": [],
|
|
10266
10617
|
"query": [],
|
|
10618
|
+
"headers": [
|
|
10619
|
+
{
|
|
10620
|
+
"name": "Origin",
|
|
10621
|
+
"type": "string",
|
|
10622
|
+
"required": false,
|
|
10623
|
+
"description": "Browser page origin the exchange is made from, for example https://school.example.com. Send it when the sign-in is bound to one; the service compares it with the binding and refuses a mismatch."
|
|
10624
|
+
}
|
|
10625
|
+
],
|
|
10267
10626
|
"body": {
|
|
10268
10627
|
"required": true,
|
|
10269
10628
|
"fields": [
|
|
@@ -11364,7 +11723,7 @@ export const operations = [
|
|
|
11364
11723
|
"resource": "cut.projects",
|
|
11365
11724
|
"method": "execute",
|
|
11366
11725
|
"summary": "Execute editing script",
|
|
11367
|
-
"description": "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: `const t = AddTrack(\"video\"); Insert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3}); Print(t);`\n\n<!-- cut-reference:start -->\n### Script function, field and error reference\n\nEvery script function, clip field and error code has its own section, read one at a time:\n\n```\ncodemode.describe(\"praxis.cut.script.<Name>\") // one function: signature, arguments, return, errors, example\ncodemode.describe(\"praxis.cut.fields.<name>\") // one field: type, unit, range, default, where writable\ncodemode.describe(\"praxis.cut.errors.<CODE>\") // one code: meaning, causes, fix\ncodemode.describe(\"praxis.cut.script\") // names, one page at a time\n```\n\nPublished at https://docs.deepraxis.com/docs/developers/cut/script-reference with one anchor per entry. Names below omit the `praxis.cut.<kind>.` prefix.\n\n#### Script functions (script)\n\n- `GetTimeline` — Duration, tracks, joins; clips are under `items`.\n- `GetItem` — One clip's compact view, by id.\n- `FindItems` — Visit every clip with its track; collect results.\n- `GetMedia` — Media metadata; `duration` is seconds.\n- `GetTranscript` — Transcript words in source microseconds.\n- `GetAnalysis` — Silence, filler, scene or beat segments.\n- `ListTransitions` — Join transition kinds and parameters.\n- `ListEffects` — Visual-effect catalog and parameters.\n- `ListAnimations` — Animation presets by phase and target.\n- `ListFonts` — Font families, weights and scripts.\n- `ListTextStyles` — Text style presets for `style.preset`.\n- `ListTextTemplates` — Multi-layer templates and their slots.\n- `Insert` — Add a clip; a track never overlaps itself.\n- `Append` — Add a clip at the end of a track.\n- `Update` — Change named fields; the rest stay.\n- `SetSpeed` — Change rate, keeping source or duration.\n- `Delete` — Remove a clip. There is no `Remove`.\n- `Join` — Overlap clips; followers shift, track shortens.\n- `UpdateJoin` — Change a join's length or effect.\n- `DeleteJoin` — Remove a join; restore the butt cut.\n- `Split` — Cut a clip in two at a time.\n- `Trim` — Move one clip edge by seconds.\n- `Move` — Set a clip's start or track.\n- `RippleDeleteRange` — Cut a time range and close the gap.\n- `DeleteWords` — Cut transcript words and ripple every track, keeping a breath.\n- `RemoveFillers` — List and delete filler words by media's own labels; dryRun first.\n- `Matte` — Replace the clip's background with media's matte of its source, read as a luma mask.\n- `EnhanceVoice` — Replace a clip's sound with media's enhanced speech on its own audio track.\n- `AlignByAudio` — Line two recordings of the same sound up by media's measurement of their offset.\n- `Reframe` — Swap the clip's media for media's reframed take at the aspect you ask for.\n- `Upscale` — Swap the clip's media for media's upscaled take at the height you ask for.\n- `Redact` — Pixelate the faces, QR codes or text media marks, leaving the rest of the frame plain.\n- `AddTrack` — Add a video, audio or caption track.\n- `MoveTrack` — Move a track between layers; 0 is the topmost.\n- `UpdateTrack` — Change a track's name, lock, gain or role.\n- `DeleteTrack` — Remove a track and its clips.\n- `SetSettings` — Change canvas, frame rate or background.\n- `AddCaptionsFromTranscript` — Captions from a clip's kept words.\n- `InsertTemplate` — Insert a template and fill its slots.\n- `AlignCaptions` — Rebuild captions from text punctuation.\n- `ImportCaptions` — Import SRT or WebVTT onto captions.\n- `ExportCaptions` — Export captions as SRT or WebVTT.\n- `SetMarker` — Label a timeline position.\n- `Print` — Append values to the result's `prints`.\n- `Preview` — Up to 8 frames as inline PNG data URLs.\n\n#### Fields (fields)\n\n- `type` — Clip kind; decides which fields apply.\n- `start` — Clip start in seconds; snaps to frames.\n- `length` — Duration; video and audio may omit it or write \"auto\".\n- `media` — Source `{ libraryId, assetId }`.\n- `sourceIn` — First source second kept; default 0.\n- `sourceOut` — Exclusive source end; read-only.\n- `text` — Text of a text or caption clip.\n- `color` — Solid colour of a color clip.\n- `shape` — Shape clip kind: `rect` or `ellipse`.\n- `width` — Shape width, a fraction of canvas width.\n- `height` — Shape height, a fraction of canvas height.\n- `radius` — Rect corner rounding, in 1080-height px.\n- `fill` — Shape or text paint: colour or gradient.\n- `stroke` — Shape outline: colour and width.\n- `transform` — Position, scale, rotation, opacity, crop, blur.\n- `fit` — contain, cover, fill or none.\n- `blend` — Layer blend mode; null clears.\n- `style` — Text styling: font, fill, strokes, glow, position.\n- `style.position` — top, middle or bottom; omit it, never null.\n- `playback` — Rate, direction, audio policy, or freeze.\n- `volumeDb` — Audio level in dB; 0 is source level.\n- `gain` — Keyframed audio level in dB.\n- `fadeIn` — Fade-in seconds at the clip's start.\n- `fadeOut` — Fade-out seconds at the clip's end.\n- `duck` — Lower this clip while another track plays.\n- `animate` — Transform keyframes; `at` is clip-relative seconds.\n- `reveal` — Per-character, word or line reveal timing.\n- `animation` — Preset slots `{ in, out, loop }`; null clears.\n- `effects` — Effect stack, at most 8; null clears.\n- `transitionIn` — Entrance effect: kind plus seconds.\n- `transitionOut` — Exit effect: kind plus seconds.\n- `mask` — Shape, path or track matte.\n- `words` — Caption words with clip-local times.\n\n#### Error codes (errors)\n\n- `JOIN_CONFLICT` — A join is invalid or blocks this edit.\n- `INVALID_TRANSITION` — Bad transition kind, parameter or length.\n- `INVALID_STYLE` — A style value is out of range.\n- `INVALID_MASK` — A mask definition is malformed.\n- `MASK_IN_USE` — The edit would break a live mask.\n- `TOO_MANY_MASKS` — At most 16 masks per project.\n- `RATE_OUT_OF_RANGE` — A rate is outside 0.25-4.\n- `UNSUPPORTED_PLAYBACK` — Reverse without an explicit mute.\n- `INVALID_PLAYBACK` — A playback object is partial or malformed.\n- `UNKNOWN_FONT` — The family is not in `ListFonts()`.\n- `UNKNOWN_FIELD` — The field name is not accepted here.\n- `UNKNOWN_TEXT_STYLE` — `style.preset` is not in the catalog.\n- `TEXT_STYLE_TARGET_MISMATCH` — Preset on the wrong clip type.\n- `CAPTION_ALIGN_LOW_CONFIDENCE` — Alignment confidence too low; nothing changed.\n- `OVERLAP` — Two clips on one track would share time.\n- `OUT_OF_SOURCE` — The clip would read past its source.\n- `LOCKED_TRACK` — The edit targets a locked track.\n- `UNBOUND_LIBRARY` — The library is not bound to the project.\n- `TRACK_KIND_MISMATCH` — The clip type does not fit the track.\n- `NOT_FOUND` — The named id is not in this project.\n- `TOO_SHORT` — The result would be under one frame.\n- `INVALID_DUCK` — Bad `duck` level or a missing track.\n- `UNKNOWN_ANIMATION` — The preset is not in `ListAnimations()`.\n- `INVALID_ANIMATION_PARAM` — Bad slot, parameter or keyframe limit.\n- `ANIMATION_TOO_LONG` — In plus out exceed the clip length.\n- `ANIMATION_TARGET_MISMATCH` — The preset does not match the clip type.\n- `ANIMATION_PHASE_MISMATCH` — The preset is in the wrong slot.\n- `UNKNOWN_EFFECT` — The effect is not in `ListEffects()`.\n- `INVALID_EFFECT_PARAM` — Bad effect parameter or keyframe.\n- `TOO_MANY_EFFECTS` — More than 8 effects on one clip.\n- `PROJECT_NOT_FOUND` — No visible project has this id.\n- `EXPORT_NOT_FOUND` — No such export in this project.\n- `DRAFT_RENDER_NOT_FOUND` — No such draft render.\n- `VERSION_NOT_FOUND` — No saved version has this revision.\n- `LIBRARY_NOT_FOUND` — The library is missing or invisible.\n- `BINDING_INVALID` — The binding request is malformed.\n- `BINDING_IN_USE` — Clips still use this library's assets.\n- `NOTHING_TO_UNDO` — No earlier revision to return to.\n- `NOTHING_TO_REDO` — No undone revision is waiting.\n- `UNDO_CONFLICT` — The revision to undo is no longer head.\n- `REVISION_CONFLICT` — The project moved; your revision is stale.\n- `CUT_BUSY` — The project is busy; retry.\n- `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.\n- `SCRIPT_ERROR` — The script threw or did not parse.\n- `SCRIPT_LIMIT` — An execute budget was exceeded.\n- `OPS_REJECTED` — An op failed; the whole edit rolled back.\n- `EDIT_EXPIRED` — The saved edit id is over ten minutes old.\n- `MEDIA_NOT_FOUND` — The asset id is not in that library.\n- `MEDIA_OFFLINE` — The asset cannot be fetched right now.\n- `MEDIA_UNAVAILABLE` — The asset is not usable for rendering.\n- `MEDIA_IMPORT_FAILED` — Importing media failed.\n- `MEDIA_PROCESSING` — Media is still processing the clip; wait for the job and rerun.\n- `MEDIA_PROCESSING_FAILED` — Media's processing job failed; nothing changed.\n- `ALIGNMENT_UNCERTAIN` — `AlignByAudio` confidence too low; nothing changed.\n- `FRAME_OUT_OF_RANGE` — The preview time is outside the project.\n- `PROJECT_TOO_LARGE` — The project exceeds the size limit.\n- `RESPONSE_TOO_LARGE` — The response would exceed its budget.\n- `EXPORT_FAILED` — The render failed; read `error.cause`.\n- `INVALID_PARAMS` — The request is malformed.\n- `PERMISSION_DENIED` — This credential may not do that here.\n- `NOT_IMPLEMENTED` — Not available on this platform yet.\n- `INTERNAL` — Unexpected failure; retry with the request id.\n<!-- cut-reference:end -->\n",
|
|
11726
|
+
"description": "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: `const t = AddTrack(\"video\"); Insert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3}); Print(t);`\n\n<!-- cut-reference:start -->\n### Script function, field and error reference\n\nEvery script function, clip field and error code has its own section, read one at a time:\n\n```\ncodemode.describe(\"praxis.cut.script.<Name>\") // one function: signature, arguments, return, errors, example\ncodemode.describe(\"praxis.cut.fields.<name>\") // one field: type, unit, range, default, where writable\ncodemode.describe(\"praxis.cut.errors.<CODE>\") // one code: meaning, causes, fix\ncodemode.describe(\"praxis.cut.script\") // names, one page at a time\n```\n\nPublished at https://docs.deepraxis.com/developers/cut/script-reference with one anchor per entry. Names below omit the `praxis.cut.<kind>.` prefix.\n\n#### Script functions (script)\n\n- `GetTimeline` — Duration, tracks, joins; clips are under `items`.\n- `GetItem` — One clip's compact view, by id.\n- `FindItems` — Visit every clip with its track; collect results.\n- `GetMedia` — Media metadata; `duration` is seconds.\n- `GetTranscript` — Transcript words in source microseconds.\n- `GetAnalysis` — Silence, filler, scene or beat segments.\n- `ListTransitions` — Join transition kinds and parameters.\n- `ListEffects` — Visual-effect catalog and parameters.\n- `ListAnimations` — Animation presets by phase and target.\n- `ListFonts` — Font families, weights and scripts.\n- `ListTextStyles` — Text style presets for `style.preset`.\n- `ListTextTemplates` — Multi-layer templates and their slots.\n- `Insert` — Add a clip; a track never overlaps itself.\n- `Append` — Add a clip at the end of a track.\n- `Update` — Change named fields; the rest stay.\n- `SetSpeed` — Change rate, keeping source or duration.\n- `Delete` — Remove a clip. There is no `Remove`.\n- `Join` — Overlap clips; followers shift, track shortens.\n- `UpdateJoin` — Change a join's length or effect.\n- `DeleteJoin` — Remove a join; restore the butt cut.\n- `Split` — Cut a clip in two at a time.\n- `Trim` — Move one clip edge by seconds.\n- `Move` — Set a clip's start or track.\n- `RippleDeleteRange` — Cut a time range and close the gap.\n- `DeleteWords` — Cut transcript words and ripple every track, keeping a breath.\n- `RemoveFillers` — List and delete filler words by media's own labels; dryRun first.\n- `Matte` — Replace the clip's background with media's matte of its source, read as a luma mask.\n- `EnhanceVoice` — Replace a clip's sound with media's enhanced speech on its own audio track.\n- `AlignByAudio` — Line two recordings of the same sound up by media's measurement of their offset.\n- `Reframe` — Swap the clip's media for media's reframed take at the aspect you ask for.\n- `Upscale` — Swap the clip's media for media's upscaled take at the height you ask for.\n- `Redact` — Pixelate the faces, QR codes or text media marks, leaving the rest of the frame plain.\n- `AddTrack` — Add a video, audio or caption track.\n- `MoveTrack` — Move a track between layers; 0 is the topmost.\n- `UpdateTrack` — Change a track's name, lock, gain or role.\n- `DeleteTrack` — Remove a track and its clips.\n- `SetSettings` — Change canvas, frame rate or background.\n- `AddCaptionsFromTranscript` — Captions from a clip's kept words.\n- `InsertTemplate` — Insert a template and fill its slots.\n- `AlignCaptions` — Rebuild captions from text punctuation.\n- `ImportCaptions` — Import SRT or WebVTT onto captions.\n- `ExportCaptions` — Export captions as SRT or WebVTT.\n- `SetMarker` — Label a timeline position.\n- `Print` — Append values to the result's `prints`.\n- `Preview` — Up to 8 frames as inline PNG data URLs.\n\n#### Fields (fields)\n\n- `type` — Clip kind; decides which fields apply.\n- `start` — Clip start in seconds; snaps to frames.\n- `length` — Duration; video and audio may omit it or write \"auto\".\n- `media` — Source `{ libraryId, assetId }`.\n- `sourceIn` — First source second kept; default 0.\n- `sourceOut` — Exclusive source end; read-only.\n- `text` — Text of a text or caption clip.\n- `color` — Solid colour of a color clip.\n- `shape` — Shape clip kind: `rect` or `ellipse`.\n- `width` — Shape width, a fraction of canvas width.\n- `height` — Shape height, a fraction of canvas height.\n- `radius` — Rect corner rounding, in 1080-height px.\n- `fill` — Shape or text paint: colour or gradient.\n- `stroke` — Shape outline: colour and width.\n- `transform` — Position, scale, rotation, opacity, crop, blur.\n- `fit` — contain, cover, fill or none.\n- `blend` — Layer blend mode; null clears.\n- `style` — Text styling in Shotstack's rich shape: font, gradient, stroke, shadow, box, border, align, per-word animation.\n- `style.align.vertical` — top, middle or bottom; omit it, never null.\n- `playback` — Rate, direction, audio policy, or freeze.\n- `volumeDb` — Audio level in dB; 0 is source level.\n- `gain` — Keyframed audio level in dB.\n- `fadeIn` — Fade-in seconds at the clip's start.\n- `fadeOut` — Fade-out seconds at the clip's end.\n- `duck` — Lower this clip while another track plays.\n- `animate` — Transform keyframes; `at` is clip-relative seconds.\n- `reveal` — Per-character, word or line reveal timing.\n- `animation` — Preset slots `{ in, out, loop }`; null clears.\n- `effects` — Effect stack, at most 8; null clears.\n- `transitionIn` — Entrance effect: kind plus seconds.\n- `transitionOut` — Exit effect: kind plus seconds.\n- `mask` — Shape, path or track matte.\n- `words` — Caption words with clip-local times.\n\n#### Error codes (errors)\n\n- `JOIN_CONFLICT` — A join is invalid or blocks this edit.\n- `INVALID_TRANSITION` — Bad transition kind, parameter or length.\n- `INVALID_STYLE` — A style value is out of range.\n- `UNSUPPORTED_STYLE_FIELD` — A Shotstack style field this platform cannot render yet.\n- `STYLE_LEGACY_FIELDS` — A style written in the old flat shape; it still works.\n- `INVALID_MASK` — A mask definition is malformed.\n- `MASK_IN_USE` — The edit would break a live mask.\n- `TOO_MANY_MASKS` — At most 16 masks per project.\n- `RATE_OUT_OF_RANGE` — A rate is outside 0.25-4.\n- `UNSUPPORTED_PLAYBACK` — Reverse without an explicit mute.\n- `INVALID_PLAYBACK` — A playback object is partial or malformed.\n- `UNKNOWN_FONT` — The family is not in `ListFonts()`.\n- `UNKNOWN_FIELD` — The field name is not accepted here.\n- `UNKNOWN_TEXT_STYLE` — `style.preset` is not in the catalog.\n- `TEXT_STYLE_TARGET_MISMATCH` — Preset on the wrong clip type.\n- `CAPTION_ALIGN_LOW_CONFIDENCE` — Alignment confidence too low; nothing changed.\n- `OVERLAP` — Two clips on one track would share time.\n- `OUT_OF_SOURCE` — The clip would read past its source.\n- `LOCKED_TRACK` — The edit targets a locked track.\n- `UNBOUND_LIBRARY` — The library is not bound to the project.\n- `TRACK_KIND_MISMATCH` — The clip type does not fit the track.\n- `NOT_FOUND` — The named id is not in this project.\n- `TOO_SHORT` — The result would be under one frame.\n- `INVALID_DUCK` — Bad `duck` level or a missing track.\n- `UNKNOWN_ANIMATION` — The preset is not in `ListAnimations()`.\n- `INVALID_ANIMATION_PARAM` — Bad slot, parameter or keyframe limit.\n- `ANIMATION_TOO_LONG` — In plus out exceed the clip length.\n- `ANIMATION_TARGET_MISMATCH` — The preset does not match the clip type.\n- `ANIMATION_PHASE_MISMATCH` — The preset is in the wrong slot.\n- `UNKNOWN_EFFECT` — The effect is not in `ListEffects()`.\n- `INVALID_EFFECT_PARAM` — Bad effect parameter or keyframe.\n- `TOO_MANY_EFFECTS` — More than 8 effects on one clip.\n- `PROJECT_NOT_FOUND` — No visible project has this id.\n- `EXPORT_NOT_FOUND` — No such export in this project.\n- `DRAFT_RENDER_NOT_FOUND` — No such draft render.\n- `VERSION_NOT_FOUND` — No saved version has this revision.\n- `LIBRARY_NOT_FOUND` — The library is missing or invisible.\n- `BINDING_INVALID` — The binding request is malformed.\n- `BINDING_IN_USE` — Clips still use this library's assets.\n- `NOTHING_TO_UNDO` — No earlier revision to return to.\n- `NOTHING_TO_REDO` — No undone revision is waiting.\n- `UNDO_CONFLICT` — The revision to undo is no longer head.\n- `REVISION_CONFLICT` — The project moved; your revision is stale.\n- `CUT_BUSY` — The project is busy; retry.\n- `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.\n- `SCRIPT_ERROR` — The script threw or did not parse.\n- `SCRIPT_LIMIT` — An execute budget was exceeded.\n- `OPS_REJECTED` — An op failed; the whole edit rolled back.\n- `EDIT_EXPIRED` — The saved edit id is over ten minutes old.\n- `MEDIA_NOT_FOUND` — The asset id is not in that library.\n- `MEDIA_OFFLINE` — The asset cannot be fetched right now.\n- `MEDIA_UNAVAILABLE` — The asset is not usable for rendering.\n- `MEDIA_IMPORT_FAILED` — Importing media failed.\n- `MEDIA_PROCESSING` — Media is still processing the clip; wait for the job and rerun.\n- `MEDIA_PROCESSING_FAILED` — Media's processing job failed; nothing changed.\n- `ALIGNMENT_UNCERTAIN` — `AlignByAudio` confidence too low; nothing changed.\n- `FRAME_OUT_OF_RANGE` — The preview time is outside the project.\n- `PROJECT_TOO_LARGE` — The project exceeds the size limit.\n- `RESPONSE_TOO_LARGE` — The response would exceed its budget.\n- `EXPORT_FAILED` — The render failed; read `error.cause`.\n- `INVALID_PARAMS` — The request is malformed.\n- `PERMISSION_DENIED` — This credential may not do that here.\n- `NOT_IMPLEMENTED` — Not available on this platform yet.\n- `INTERNAL` — Unexpected failure; retry with the request id.\n<!-- cut-reference:end -->\n",
|
|
11368
11727
|
"http": "POST",
|
|
11369
11728
|
"path": "/cut/v1/projects/{project_id}:execute",
|
|
11370
11729
|
"streaming": "no",
|
|
@@ -11756,8 +12115,22 @@ export const operations = [
|
|
|
11756
12115
|
"required": false,
|
|
11757
12116
|
"description": "Comma-separated input columns; keys outside this set are ignored."
|
|
11758
12117
|
}
|
|
11759
|
-
]
|
|
11760
|
-
|
|
12118
|
+
],
|
|
12119
|
+
"headers": [
|
|
12120
|
+
{
|
|
12121
|
+
"name": "Range-Unit",
|
|
12122
|
+
"type": "string",
|
|
12123
|
+
"required": false,
|
|
12124
|
+
"description": "items; other units cause Range to be ignored."
|
|
12125
|
+
},
|
|
12126
|
+
{
|
|
12127
|
+
"name": "Prefer",
|
|
12128
|
+
"type": "string",
|
|
12129
|
+
"required": false,
|
|
12130
|
+
"description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
|
|
12131
|
+
}
|
|
12132
|
+
]
|
|
12133
|
+
},
|
|
11761
12134
|
{
|
|
11762
12135
|
"resource": "database.databases.rest",
|
|
11763
12136
|
"method": "retrieve",
|
|
@@ -11846,6 +12219,20 @@ export const operations = [
|
|
|
11846
12219
|
"required": false,
|
|
11847
12220
|
"description": "Comma-separated input columns; keys outside this set are ignored."
|
|
11848
12221
|
}
|
|
12222
|
+
],
|
|
12223
|
+
"headers": [
|
|
12224
|
+
{
|
|
12225
|
+
"name": "Range-Unit",
|
|
12226
|
+
"type": "string",
|
|
12227
|
+
"required": false,
|
|
12228
|
+
"description": "items; other units cause Range to be ignored."
|
|
12229
|
+
},
|
|
12230
|
+
{
|
|
12231
|
+
"name": "Prefer",
|
|
12232
|
+
"type": "string",
|
|
12233
|
+
"required": false,
|
|
12234
|
+
"description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
|
|
12235
|
+
}
|
|
11849
12236
|
]
|
|
11850
12237
|
},
|
|
11851
12238
|
{
|
|
@@ -11936,6 +12323,20 @@ export const operations = [
|
|
|
11936
12323
|
"required": false,
|
|
11937
12324
|
"description": "Comma-separated input columns; keys outside this set are ignored."
|
|
11938
12325
|
}
|
|
12326
|
+
],
|
|
12327
|
+
"headers": [
|
|
12328
|
+
{
|
|
12329
|
+
"name": "Range-Unit",
|
|
12330
|
+
"type": "string",
|
|
12331
|
+
"required": false,
|
|
12332
|
+
"description": "items; other units cause Range to be ignored."
|
|
12333
|
+
},
|
|
12334
|
+
{
|
|
12335
|
+
"name": "Prefer",
|
|
12336
|
+
"type": "string",
|
|
12337
|
+
"required": false,
|
|
12338
|
+
"description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
|
|
12339
|
+
}
|
|
11939
12340
|
]
|
|
11940
12341
|
},
|
|
11941
12342
|
{
|
|
@@ -12027,6 +12428,20 @@ export const operations = [
|
|
|
12027
12428
|
"description": "Comma-separated input columns; keys outside this set are ignored."
|
|
12028
12429
|
}
|
|
12029
12430
|
],
|
|
12431
|
+
"headers": [
|
|
12432
|
+
{
|
|
12433
|
+
"name": "Range-Unit",
|
|
12434
|
+
"type": "string",
|
|
12435
|
+
"required": false,
|
|
12436
|
+
"description": "items; other units cause Range to be ignored."
|
|
12437
|
+
},
|
|
12438
|
+
{
|
|
12439
|
+
"name": "Prefer",
|
|
12440
|
+
"type": "string",
|
|
12441
|
+
"required": false,
|
|
12442
|
+
"description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
|
|
12443
|
+
}
|
|
12444
|
+
],
|
|
12030
12445
|
"body": {
|
|
12031
12446
|
"required": true,
|
|
12032
12447
|
"fields": []
|
|
@@ -12121,6 +12536,20 @@ export const operations = [
|
|
|
12121
12536
|
"description": "Comma-separated input columns; keys outside this set are ignored."
|
|
12122
12537
|
}
|
|
12123
12538
|
],
|
|
12539
|
+
"headers": [
|
|
12540
|
+
{
|
|
12541
|
+
"name": "Range-Unit",
|
|
12542
|
+
"type": "string",
|
|
12543
|
+
"required": false,
|
|
12544
|
+
"description": "items; other units cause Range to be ignored."
|
|
12545
|
+
},
|
|
12546
|
+
{
|
|
12547
|
+
"name": "Prefer",
|
|
12548
|
+
"type": "string",
|
|
12549
|
+
"required": false,
|
|
12550
|
+
"description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
|
|
12551
|
+
}
|
|
12552
|
+
],
|
|
12124
12553
|
"body": {
|
|
12125
12554
|
"required": true,
|
|
12126
12555
|
"fields": []
|
|
@@ -12427,7 +12856,7 @@ export const operations = [
|
|
|
12427
12856
|
{
|
|
12428
12857
|
"name": "id",
|
|
12429
12858
|
"sdkName": "id",
|
|
12430
|
-
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
12859
|
+
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2."
|
|
12431
12860
|
}
|
|
12432
12861
|
],
|
|
12433
12862
|
"query": []
|
|
@@ -12436,7 +12865,7 @@ export const operations = [
|
|
|
12436
12865
|
"resource": "devops.changes",
|
|
12437
12866
|
"method": "abandon",
|
|
12438
12867
|
"summary": "Abandon a change",
|
|
12439
|
-
"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).
|
|
12868
|
+
"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 it has not merged are closed with it: each one is closed on GitHub with a note naming the change and this reason, so an abandoned change never leaves an open pull request behind for someone else to clean up — a change with no open pull request makes no GitHub call at all. That close happens BEFORE the change is marked, so an abandon that cannot close them is refused with GITHUB_UNAVAILABLE and nothing has changed; send it again. 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). Repeating the call on a change that is already abandoned answers the change as it stands instead of refusing it: the first abandon is the fact, and a caller that lost the answer gets it back.",
|
|
12440
12869
|
"http": "POST",
|
|
12441
12870
|
"path": "/devops/v1/changes/{id}:abandon",
|
|
12442
12871
|
"streaming": "no",
|
|
@@ -12445,7 +12874,7 @@ export const operations = [
|
|
|
12445
12874
|
{
|
|
12446
12875
|
"name": "id",
|
|
12447
12876
|
"sdkName": "id",
|
|
12448
|
-
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
12877
|
+
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2."
|
|
12449
12878
|
}
|
|
12450
12879
|
],
|
|
12451
12880
|
"query": [],
|
|
@@ -12474,7 +12903,7 @@ export const operations = [
|
|
|
12474
12903
|
{
|
|
12475
12904
|
"name": "id",
|
|
12476
12905
|
"sdkName": "id",
|
|
12477
|
-
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
12906
|
+
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2."
|
|
12478
12907
|
}
|
|
12479
12908
|
],
|
|
12480
12909
|
"query": []
|
|
@@ -12492,7 +12921,7 @@ export const operations = [
|
|
|
12492
12921
|
{
|
|
12493
12922
|
"name": "id",
|
|
12494
12923
|
"sdkName": "id",
|
|
12495
|
-
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
12924
|
+
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2."
|
|
12496
12925
|
}
|
|
12497
12926
|
],
|
|
12498
12927
|
"query": [],
|
|
@@ -12512,7 +12941,7 @@ export const operations = [
|
|
|
12512
12941
|
"resource": "devops.changes",
|
|
12513
12942
|
"method": "openPullRequest",
|
|
12514
12943
|
"summary": "Open a change's pull request",
|
|
12515
|
-
"description": "Open the pull request for a change: its branch into the project's default branch, opened by DevOps's own GitHub App. A cloud workspace holds no GitHub credential, so this is how work pushed with the unit push becomes a pull request; `praxis devops change pr` calls it from the workspace. Push first: a branch with no commits beyond the default branch is refused with PULL_REQUEST_REFUSED and GitHub's words. A branch that already has an open pull request answers that one with created=false, so calling again is safe. The pull request then appears on the change and runs its merge gate as usual. The id is the branch name and
|
|
12944
|
+
"description": "Open the pull request for a change: its branch into the project's default branch, opened by DevOps's own GitHub App. A cloud workspace holds no GitHub credential, so this is how work pushed with the unit push becomes a pull request; `praxis devops change pr` calls it from the workspace. Push first: a branch with no commits beyond the default branch is refused with PULL_REQUEST_REFUSED and GitHub's words. A branch that already has an open pull request answers that one with created=false, so calling again is safe; when the call passes a title or a body, those fields are written onto that pull request (GitHub PATCH /pulls/{number}) and the answer says updated=true, while a field not passed is left as it is — which is how a wrong or missing description is corrected, and how the merge gate's exposure-declared check is re-evaluated from the new body. Only an open pull request can be rewritten: once it is merged or closed its head branch is usually deleted with it, so a call that names a title or a body is refused with PULL_REQUEST_NOT_OPEN, naming that pull request and the branch, instead of trying to open a second one. The pull request then appears on the change and runs its merge gate as usual. The id is the branch name; give it as it comes back (fix/expired-links) — the SDK and the CLI encode the slash themselves, and only a hand-written HTTP request sends fix%2Fexpired-links.",
|
|
12516
12945
|
"http": "POST",
|
|
12517
12946
|
"path": "/devops/v1/changes/{id}:openPullRequest",
|
|
12518
12947
|
"streaming": "no",
|
|
@@ -12521,7 +12950,7 @@ export const operations = [
|
|
|
12521
12950
|
{
|
|
12522
12951
|
"name": "id",
|
|
12523
12952
|
"sdkName": "id",
|
|
12524
|
-
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
12953
|
+
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2."
|
|
12525
12954
|
}
|
|
12526
12955
|
],
|
|
12527
12956
|
"query": [],
|
|
@@ -12725,7 +13154,7 @@ export const operations = [
|
|
|
12725
13154
|
"type": "array",
|
|
12726
13155
|
"itemType": "string",
|
|
12727
13156
|
"required": false,
|
|
12728
|
-
"description": "Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix. Omit it to write every field the environment object carries."
|
|
13157
|
+
"description": "Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix, stage. Omit it to write every field the environment object carries."
|
|
12729
13158
|
}
|
|
12730
13159
|
]
|
|
12731
13160
|
}
|
|
@@ -12752,7 +13181,7 @@ export const operations = [
|
|
|
12752
13181
|
"resource": "devops.environments",
|
|
12753
13182
|
"method": "rollback",
|
|
12754
13183
|
"summary": "Roll an environment back",
|
|
12755
|
-
"description": "Put targets of an environment back on the versions they ran before, the way Cloud Deploy rolls a target back: the earlier release is deployed again, and the live version and the deployment state move back together, so the next promotion does not quietly undo it. With no targets it undoes the environment's latest successful promotion, every target that promotion deployed; targets narrows that to some of them, by target id or workspace path such as services/agent. Each target returns to the version it ran just before that promotion; toRelease names an older release instead, which must be one every target has already run in this environment. Callers go back before their callees, and a caller that the undone promotion deployed together with a callee you roll back is brought along (listed in plan.addedDependencies). The request is the approval: reason is recorded as the approval comment, so the rollback does not wait in awaiting_approval, and a promotion still in its observation window is concluded as rolled back. Database migrations are not reversed. Send validateOnly true to see the plan without creating anything. Refusals: ROLLBACK_NOTHING_TO_ROLL_BACK when no promotion has succeeded here, ROLLBACK_NO_PREVIOUS when a target has no earlier version, ROLLBACK_AMBIGUOUS when the targets ran different earlier releases (roll them back separately or name toRelease), ROLLBACK_NOT_RUN_HERE when toRelease carries a version a target never ran here.",
|
|
13184
|
+
"description": "Put targets of an environment back on the versions they ran before, the way Cloud Deploy rolls a target back: the earlier release is deployed again, and the live version and the deployment state move back together, so the next promotion does not quietly undo it. With no targets it undoes the environment's latest successful promotion, every target that promotion deployed; targets narrows that to some of them, by target id or workspace path such as services/agent. Each target returns to the version it ran just before that promotion; toRelease names an older release instead, which must be one every target has already run in this environment. Callers go back before their callees, and a caller that the undone promotion deployed together with a callee you roll back is brought along (listed in plan.addedDependencies). The request is the approval: reason is recorded as the approval comment, so the rollback does not wait in awaiting_approval, and a promotion still in its observation window is concluded as rolled back. Database migrations are not reversed. Send validateOnly true to see the plan without creating anything; the answer then carries validateOnly true and the placeholder id prm_validate_only, because no promotion was stored. This is the way to create a rollback; promotions.create does not take path rollback. Refusals: ROLLBACK_NOTHING_TO_ROLL_BACK when no promotion has succeeded here, ROLLBACK_NO_PREVIOUS when a target has no earlier version, ROLLBACK_AMBIGUOUS when the targets ran different earlier releases (roll them back separately or name toRelease), ROLLBACK_NOT_RUN_HERE when toRelease carries a version a target never ran here.",
|
|
12756
13185
|
"http": "POST",
|
|
12757
13186
|
"path": "/devops/v1/environments/{id}:rollback",
|
|
12758
13187
|
"streaming": "no",
|
|
@@ -13147,7 +13576,7 @@ export const operations = [
|
|
|
13147
13576
|
"resource": "devops.projects",
|
|
13148
13577
|
"method": "list",
|
|
13149
13578
|
"summary": "List projects",
|
|
13150
|
-
"description": "List the delivery projects this organization has, newest first, with each project's repository binding and settings. Call this first when you do not already hold a project id: every other operation in this domain is addressed by one. A project from another organization is never listed, so an empty page means this organization has none rather than that they are hidden. The order is by creation time descending; follow nextPageToken until it is empty to see them all.",
|
|
13579
|
+
"description": "List the delivery projects this organization has, newest first, with each project's repository binding and settings. Call this first when you do not already hold a project id: every other operation in this domain is addressed by one. A project from another organization is never listed, so an empty page means this organization has none rather than that they are hidden. The order is by creation time descending; follow nextPageToken until it is empty to see them all. The page always carries visibleProjects: how many projects the caller's own organization has in total, deleted ones excluded. Those are the projects visible to the credential's organization — the count filters by organization_id and is not a permission check — so an empty items array reads as \"this organization has none yet\" instead of leaving you to guess whether the read was lost or the credential points at another organization. It is the organization's total across all pages, not this page's length.",
|
|
13151
13580
|
"http": "GET",
|
|
13152
13581
|
"path": "/devops/v1/projects",
|
|
13153
13582
|
"streaming": "no",
|
|
@@ -13168,6 +13597,81 @@ export const operations = [
|
|
|
13168
13597
|
}
|
|
13169
13598
|
]
|
|
13170
13599
|
},
|
|
13600
|
+
{
|
|
13601
|
+
"resource": "devops.projects",
|
|
13602
|
+
"method": "create",
|
|
13603
|
+
"summary": "Create a project",
|
|
13604
|
+
"description": "Create a delivery project and its two default environments (develop, production). The code lives in one of two places. Our own Git: pass provider platform and package, the id (pkg_...) of a git package in your organization's registry (the registry domain lists packages and creates git libraries); there is no install flow and no connection, the project records the provider, the package and the package's default branch, and from then on pull requests, the merge gate, changes and cloud workspaces use that package and DevOps merges a pull request itself. A package backs at most one project (REPOSITORY_ALREADY_BOUND) and a package that is not a git package of your organization is INVALID_ARGUMENT. If the package has no default branch yet, which is usual for a library imported from elsewhere, pass initialRef, an existing branch such as import: the default branch is created at its head while the project is created, and no change can be opened before it exists. If the default branch already exists the call is refused with DEFAULT_BRANCH_EXISTS, and a missing initialRef branch with REF_NOT_FOUND; neither leaves a project behind. For a package whose project already exists, use devops.projects.initializeDefaultBranch instead. GitHub (the default): pass the connection of a completed GitHub App install and the repository (owner/name) it can see; leave both out to create a project with no repository yet. A name must be kebab-case and unused in the organization (PROJECT_NAME_TAKEN).",
|
|
13605
|
+
"http": "POST",
|
|
13606
|
+
"path": "/devops/v1/projects",
|
|
13607
|
+
"streaming": "no",
|
|
13608
|
+
"pagination": false,
|
|
13609
|
+
"pathParams": [],
|
|
13610
|
+
"query": [],
|
|
13611
|
+
"body": {
|
|
13612
|
+
"required": true,
|
|
13613
|
+
"fields": [
|
|
13614
|
+
{
|
|
13615
|
+
"name": "name",
|
|
13616
|
+
"type": "string",
|
|
13617
|
+
"required": true,
|
|
13618
|
+
"description": "Kebab-case name, unique within the organization."
|
|
13619
|
+
},
|
|
13620
|
+
{
|
|
13621
|
+
"name": "description",
|
|
13622
|
+
"type": "string",
|
|
13623
|
+
"required": false,
|
|
13624
|
+
"description": "What the project is for, in your own words."
|
|
13625
|
+
},
|
|
13626
|
+
{
|
|
13627
|
+
"name": "provider",
|
|
13628
|
+
"type": "string",
|
|
13629
|
+
"enum": [
|
|
13630
|
+
"github",
|
|
13631
|
+
"platform"
|
|
13632
|
+
],
|
|
13633
|
+
"required": false,
|
|
13634
|
+
"description": "Where the code lives: github (the default) or platform, a git package of our own Git."
|
|
13635
|
+
},
|
|
13636
|
+
{
|
|
13637
|
+
"name": "package",
|
|
13638
|
+
"type": "string",
|
|
13639
|
+
"required": false,
|
|
13640
|
+
"description": "provider platform only: the id of a git package of your organization's registry. Not valid with connection or repository."
|
|
13641
|
+
},
|
|
13642
|
+
{
|
|
13643
|
+
"name": "initialRef",
|
|
13644
|
+
"type": "string",
|
|
13645
|
+
"required": false,
|
|
13646
|
+
"description": "provider platform only: an existing branch (for example import) to create the default branch from, when the package has none yet. Refused with DEFAULT_BRANCH_EXISTS if the default branch exists, REF_NOT_FOUND if this branch does not; no project is created then."
|
|
13647
|
+
},
|
|
13648
|
+
{
|
|
13649
|
+
"name": "connection",
|
|
13650
|
+
"type": "string",
|
|
13651
|
+
"required": false,
|
|
13652
|
+
"description": "provider github only: the connection of a completed GitHub App install that can see the repository."
|
|
13653
|
+
},
|
|
13654
|
+
{
|
|
13655
|
+
"name": "repository",
|
|
13656
|
+
"type": "string",
|
|
13657
|
+
"required": false,
|
|
13658
|
+
"description": "provider github only: the repository as owner/name."
|
|
13659
|
+
},
|
|
13660
|
+
{
|
|
13661
|
+
"name": "settings",
|
|
13662
|
+
"type": "object",
|
|
13663
|
+
"required": false,
|
|
13664
|
+
"description": "Delivery settings; keys you leave out take their defaults."
|
|
13665
|
+
},
|
|
13666
|
+
{
|
|
13667
|
+
"name": "requestId",
|
|
13668
|
+
"type": "string",
|
|
13669
|
+
"required": false,
|
|
13670
|
+
"description": "Idempotency key: repeat the call with the same value to be given the same answer."
|
|
13671
|
+
}
|
|
13672
|
+
]
|
|
13673
|
+
}
|
|
13674
|
+
},
|
|
13171
13675
|
{
|
|
13172
13676
|
"resource": "devops.projects",
|
|
13173
13677
|
"method": "retrieve",
|
|
@@ -13222,6 +13726,35 @@ export const operations = [
|
|
|
13222
13726
|
]
|
|
13223
13727
|
}
|
|
13224
13728
|
},
|
|
13729
|
+
{
|
|
13730
|
+
"resource": "devops.projects.defaultBranch",
|
|
13731
|
+
"method": "initialize",
|
|
13732
|
+
"summary": "Create a project's default branch",
|
|
13733
|
+
"description": "Create the default branch of a project on our own Git, once. A git package imported from elsewhere can hold branches and no default branch, and every change is cut from the default branch, so until it exists no change can be opened. The default branch is protected and only DevOps holds the credential that may write it, so this call is the one way to create it: it points the default branch at the head of the existing branch named in from (for example import). It only creates: a default branch that already exists is refused with DEFAULT_BRANCH_EXISTS and is never moved, a from that is not a branch of the repository is REF_NOT_FOUND, and a GitHub project is INVALID_ARGUMENT because GitHub's branches are GitHub's. The push reaches the project like any other push to its default branch. Read the project first (devops.projects.retrieve) for the package's default branch name.",
|
|
13734
|
+
"http": "POST",
|
|
13735
|
+
"path": "/devops/v1/projects/{id}/default-branch:initialize",
|
|
13736
|
+
"streaming": "no",
|
|
13737
|
+
"pagination": false,
|
|
13738
|
+
"pathParams": [
|
|
13739
|
+
{
|
|
13740
|
+
"name": "id",
|
|
13741
|
+
"sdkName": "id",
|
|
13742
|
+
"description": "The project identifier returned by the project list, not the project's display name or its repository name."
|
|
13743
|
+
}
|
|
13744
|
+
],
|
|
13745
|
+
"query": [],
|
|
13746
|
+
"body": {
|
|
13747
|
+
"required": true,
|
|
13748
|
+
"fields": [
|
|
13749
|
+
{
|
|
13750
|
+
"name": "from",
|
|
13751
|
+
"type": "string",
|
|
13752
|
+
"required": true,
|
|
13753
|
+
"description": "An existing branch of the repository, for example import. The default branch is created at its head."
|
|
13754
|
+
}
|
|
13755
|
+
]
|
|
13756
|
+
}
|
|
13757
|
+
},
|
|
13225
13758
|
{
|
|
13226
13759
|
"resource": "devops.projects.changes",
|
|
13227
13760
|
"method": "list",
|
|
@@ -13353,6 +13886,37 @@ export const operations = [
|
|
|
13353
13886
|
}
|
|
13354
13887
|
}
|
|
13355
13888
|
},
|
|
13889
|
+
{
|
|
13890
|
+
"resource": "devops.projects.cleanups",
|
|
13891
|
+
"method": "list",
|
|
13892
|
+
"summary": "List a project's cleanup ledger",
|
|
13893
|
+
"description": "List what the daily cleanup job removed or archived for the project, newest decision first: merged branches deleted when their pull request merged, stopped units deleted after the project's window, test evidence past its age, and prebuilds beyond the kept versions. Each row names the kind of thing, which one, whether it was archived (the record stays, the heavy content goes) or deleted, the reason and when it was decided and done; error is set while the last attempt failed and the job will try again. The ledger is read-only: the job is its only writer, and a project changes what is kept through settings.retention on devops.projects.update. A project with no row has had nothing cleaned.",
|
|
13894
|
+
"http": "GET",
|
|
13895
|
+
"path": "/devops/v1/projects/{project}/cleanups",
|
|
13896
|
+
"streaming": "no",
|
|
13897
|
+
"pagination": false,
|
|
13898
|
+
"pathParams": [
|
|
13899
|
+
{
|
|
13900
|
+
"name": "project",
|
|
13901
|
+
"sdkName": "project",
|
|
13902
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
13903
|
+
}
|
|
13904
|
+
],
|
|
13905
|
+
"query": [
|
|
13906
|
+
{
|
|
13907
|
+
"name": "pageSize",
|
|
13908
|
+
"type": "integer",
|
|
13909
|
+
"required": false,
|
|
13910
|
+
"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."
|
|
13911
|
+
},
|
|
13912
|
+
{
|
|
13913
|
+
"name": "pageToken",
|
|
13914
|
+
"type": "string",
|
|
13915
|
+
"required": false,
|
|
13916
|
+
"description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
|
|
13917
|
+
}
|
|
13918
|
+
]
|
|
13919
|
+
},
|
|
13356
13920
|
{
|
|
13357
13921
|
"resource": "devops.projects.environments",
|
|
13358
13922
|
"method": "list",
|
|
@@ -13839,7 +14403,7 @@ export const operations = [
|
|
|
13839
14403
|
"resource": "devops.projects.promotions",
|
|
13840
14404
|
"method": "list",
|
|
13841
14405
|
"summary": "List promotions",
|
|
13842
|
-
"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\".
|
|
14406
|
+
"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\". The one filter is the forced query parameter (true or false, sent as text in the query string); a filter expression and orderBy are not accepted yet, so page through with pageToken instead of narrowing further.",
|
|
13843
14407
|
"http": "GET",
|
|
13844
14408
|
"path": "/devops/v1/projects/{project}/promotions",
|
|
13845
14409
|
"streaming": "no",
|
|
@@ -13863,6 +14427,12 @@ export const operations = [
|
|
|
13863
14427
|
"type": "string",
|
|
13864
14428
|
"required": false,
|
|
13865
14429
|
"description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
|
|
14430
|
+
},
|
|
14431
|
+
{
|
|
14432
|
+
"name": "forced",
|
|
14433
|
+
"type": "boolean",
|
|
14434
|
+
"required": false,
|
|
14435
|
+
"description": "true lists only the forced expresses (promotions created with dependencies skip), which is how a reviewer finds them after the fact; false lists only the others; omit it for every promotion."
|
|
13866
14436
|
}
|
|
13867
14437
|
]
|
|
13868
14438
|
},
|
|
@@ -13912,6 +14482,12 @@ export const operations = [
|
|
|
13912
14482
|
"type": "string",
|
|
13913
14483
|
"required": false,
|
|
13914
14484
|
"description": "A GitHub login to build the \"waiting on me\" list: only pull requests where that person is a requested reviewer and has not answered yet are returned. Somebody who already approved, requested changes or commented is no longer waiting on, so they do not appear."
|
|
14485
|
+
},
|
|
14486
|
+
{
|
|
14487
|
+
"name": "reviewed",
|
|
14488
|
+
"type": "boolean",
|
|
14489
|
+
"required": false,
|
|
14490
|
+
"description": "Review is after-the-fact sampling (Sean 2026-11-24). false lists the pull requests nobody has recorded a review verdict for — send it with filter state=merged to get the merged pull requests still waiting for a sample; true lists the ones that have a review. Omit it to ignore reviews."
|
|
13915
14491
|
}
|
|
13916
14492
|
]
|
|
13917
14493
|
},
|
|
@@ -14254,7 +14830,7 @@ export const operations = [
|
|
|
14254
14830
|
"resource": "devops.projects",
|
|
14255
14831
|
"method": "retrieveTestPlan",
|
|
14256
14832
|
"summary": "Retrieve the merge gate's test plan at a commit",
|
|
14257
|
-
"description": "Ask what the merge gate would require at one commit before running anything: the packages the base...commit diff affects, each package's input hash at that commit's own tree, and whether evidence already answers it. Read a package as passed when a recorded run covered every case the package has at the gate's sizes and they passed, failed when the newest evidence at its input hash failed, and missing when no run has a row for that (package, input hash). Use it before running tests — `praxis devops test
|
|
14833
|
+
"description": "Ask what the merge gate would require at one commit before running anything: the packages the base...commit diff affects, each package's input hash at that commit's own tree, and whether evidence already answers it. The answer also carries cases: every feature scenario of the affected packages at the gate's sizes, each with required (whether this diff can affect it, chosen by the files the scenario was recorded running), the reason, the deps hash it is judged at and its own evidence. A merge needs evidence only for the required cases; run `praxis devops test <package> --record-impact` to record coverage and results. Read a package as passed when a recorded run covered every case the package has at the gate's sizes and they passed, failed when the newest evidence at its input hash failed, and missing when no run has a row for that (package, input hash). Use it before running tests — run `praxis devops test <package>` for each missing or failed package on a clean, pushed commit and the run files the evidence itself — or to explain a gate verdict, because it is the same required set and the same (package, input hash) lookup the gate itself decides on. The call is read-only: it starts no run, runs no case and writes nothing. The commit must already be pushed, since the hashes are recomputed from the tree GitHub holds; a commit whose tree cannot be read answers COMMIT_NOT_FOUND instead of an empty plan. A selection of nothing means every changed path belongs to no test package, which is a pass and not a failure.",
|
|
14258
14834
|
"http": "GET",
|
|
14259
14835
|
"path": "/devops/v1/projects/{project}/test-plan",
|
|
14260
14836
|
"streaming": "no",
|
|
@@ -14278,6 +14854,16 @@ export const operations = [
|
|
|
14278
14854
|
"type": "string",
|
|
14279
14855
|
"required": false,
|
|
14280
14856
|
"description": "What the diff is measured against: a commit id or a branch name. Defaults to the project's default branch. A base that is neither a branch of the project's repository nor a readable commit is refused as COMMIT_NOT_FOUND, so a typo cannot silently plan against the whole repository."
|
|
14857
|
+
},
|
|
14858
|
+
{
|
|
14859
|
+
"name": "view",
|
|
14860
|
+
"type": "string",
|
|
14861
|
+
"enum": [
|
|
14862
|
+
"full",
|
|
14863
|
+
"summary"
|
|
14864
|
+
],
|
|
14865
|
+
"required": false,
|
|
14866
|
+
"description": "How much of the plan to return: full lists every feature scenario of the affected packages, summary returns per package only the counts (caseCounts) and lists only the cases this diff requires. A change that touches no tested code (a README) answers tens of kilobytes in the full view, because every case is listed as unaffected; ask for the summary first and use the full view only to explain one case."
|
|
14281
14867
|
}
|
|
14282
14868
|
]
|
|
14283
14869
|
},
|
|
@@ -14412,7 +14998,7 @@ export const operations = [
|
|
|
14412
14998
|
"resource": "devops.projects.testReports",
|
|
14413
14999
|
"method": "create",
|
|
14414
15000
|
"summary": "Upload an external test report",
|
|
14415
|
-
"description": "Record the results of a run executed outside Praxis by uploading a CTRF or JUnit report. Nothing has to exist first: a first upload from CI creates the run it reports on (executor external) and catalogues the cases the report names, so there is no setup call before the first result. When the report already belongs to a run, pass ref and the upload joins it; the run's counts and verdict are recomputed from the report. Uploading the same reportId again is idempotent and counts once, so a retry after a timeout is safe — and a reported case is catalogued once, however many reports carry it. The report's bytes are kept as a file (the file field of the answer) rather than in the results database, so the original document stays retrievable. Send purpose feedback instead when the report is your own local run rather than evidence: the document is stored as an organization-private file and nothing else happens — no run is created or joined, no case state changes and the merge gate never reads it — so a developer's machine can publish what it ran without any commit being credited as tested.",
|
|
15001
|
+
"description": "Record the results of a run executed outside Praxis by uploading a CTRF or JUnit report. Nothing has to exist first: a first upload from CI creates the run it reports on (executor external) and catalogues the cases the report names, so there is no setup call before the first result. When the report already belongs to a run, pass ref and the upload joins it; the run's counts and verdict are recomputed from the report. Uploading the same reportId again is idempotent and counts once, so a retry after a timeout is safe — and a reported case is catalogued once, however many reports carry it. The report's bytes are kept as a file (the file field of the answer) rather than in the results database, so the original document stays retrievable. Send purpose feedback instead when the report is your own local run rather than evidence: the document is stored as an organization-private file and nothing else happens — no run is created or joined, no case state changes and the merge gate never reads it — so a developer's machine can publish what it ran without any commit being credited as tested. With purpose evidence the report is also filed as test evidence, package by package: DevOps recomputes each package's input hash from ref.commit (so the commit must already be pushed; an unreadable commit records the run but no evidence), and writes passed or failed only for a package whose every case at the gate's sizes the report carries — a report of a few files leaves that package without evidence. Pass ref.branch and ref.pullRequest so the run says where it came from; devops.projects.retrieveTestPlan at the commit then shows what the gate will read.",
|
|
14416
15002
|
"http": "POST",
|
|
14417
15003
|
"path": "/devops/v1/projects/{project}/test-reports",
|
|
14418
15004
|
"streaming": "no",
|
|
@@ -14442,7 +15028,7 @@ export const operations = [
|
|
|
14442
15028
|
"feedback"
|
|
14443
15029
|
],
|
|
14444
15030
|
"required": false,
|
|
14445
|
-
"description": "What the report is for, and it decides whether the upload touches a run at all. evidence, the default, is test evidence: the report is folded into a run at ref.commit, catalogues the cases it names and
|
|
15031
|
+
"description": "What the report is for, and it decides whether the upload touches a run at all. evidence, the default, is test evidence: the report is folded into a run at ref.commit, catalogues the cases it names and is filed as evidence for each package it fully covers, which the merge gate and later stages read by the package's input hash. feedback only stores the document, as an organization-private file, and changes nothing else — no run is created or joined, no case state changes and no gate ever reads it; use it for a report produced on a developer's own machine, which is never evidence."
|
|
14446
15032
|
},
|
|
14447
15033
|
{
|
|
14448
15034
|
"name": "format",
|
|
@@ -14685,7 +15271,7 @@ export const operations = [
|
|
|
14685
15271
|
"enum": [
|
|
14686
15272
|
"development",
|
|
14687
15273
|
"integration",
|
|
14688
|
-
"
|
|
15274
|
+
"release"
|
|
14689
15275
|
],
|
|
14690
15276
|
"required": false,
|
|
14691
15277
|
"description": "Return only units of this stage; omit it to return every stage."
|
|
@@ -14753,7 +15339,7 @@ export const operations = [
|
|
|
14753
15339
|
"resource": "devops.projects.workspaces",
|
|
14754
15340
|
"method": "list",
|
|
14755
15341
|
"summary": "List a project's stage workspaces",
|
|
14756
|
-
"description": "List the project's three stage workspaces — development, integration and
|
|
15342
|
+
"description": "List the project's three stage workspaces — development, integration and release — in that order. Each row says how a machine of that stage is built and how long it lives; it is configuration, not a machine, so listing never opens one. A project whose rows do not exist yet gets all three materialized on this call with the defaults (size medium, prebuild on, idle timeout 30 minutes, retention 7 days), and a later call reads those same rows back rather than replacing them. Read one stage with the workspace retrieve; the machines actually running are units.",
|
|
14757
15343
|
"http": "GET",
|
|
14758
15344
|
"path": "/devops/v1/projects/{project}/workspaces",
|
|
14759
15345
|
"streaming": "no",
|
|
@@ -14785,7 +15371,7 @@ export const operations = [
|
|
|
14785
15371
|
{
|
|
14786
15372
|
"name": "stage",
|
|
14787
15373
|
"sdkName": "stage",
|
|
14788
|
-
"description": "The stage whose workspace you address: development, integration or
|
|
15374
|
+
"description": "The stage whose workspace you address: development, integration or release. development is the persistent stage that carries changes; integration and release hold one-off units."
|
|
14789
15375
|
}
|
|
14790
15376
|
],
|
|
14791
15377
|
"query": []
|
|
@@ -14808,7 +15394,7 @@ export const operations = [
|
|
|
14808
15394
|
{
|
|
14809
15395
|
"name": "stage",
|
|
14810
15396
|
"sdkName": "stage",
|
|
14811
|
-
"description": "The stage whose workspace you address: development, integration or
|
|
15397
|
+
"description": "The stage whose workspace you address: development, integration or release. development is the persistent stage that carries changes; integration and release hold one-off units."
|
|
14812
15398
|
}
|
|
14813
15399
|
],
|
|
14814
15400
|
"query": [],
|
|
@@ -14835,7 +15421,7 @@ export const operations = [
|
|
|
14835
15421
|
"resource": "devops.promotions",
|
|
14836
15422
|
"method": "create",
|
|
14837
15423
|
"summary": "Create a promotion",
|
|
14838
|
-
"description": "Promote a release into one environment: this is the operation that actually schedules a deployment. Name the release and the environment; path is regular for an ordinary promotion, targeted to deploy only the targets you list, patch to carry a patch release, and rollback to return the environment to an earlier release. A regular promotion promotes EVERY target the release changed in that environment and refuses a targets list (to promote a subset use path targeted, so a narrowing is never silently ignored). A targeted promotion requires targets: each item is a target id from the target list or the workspace path the console shows (services/devops), and the call resolves the path to the id. A target the release does not carry is refused with the targets the release does deploy; so is a target this environment never runs. Naming a target also deploys the targets it depends on, which come first and are reported in plan.addedDependencies. The targets that changed but were not named are listed in plan.skipped with reason not_requested, so a reader sees what the promotion left behind. Callees upgrade first by default: naming a target brings the targets it depends on, because a caller cannot run on a callee it did not deploy. To leave one of those callees behind, pass withoutCallees, a list of { target, reason } on a targeted promotion. Each entry names a callee the named targets depend on — by target id or workspace path, as in targets — and carries a required, non-empty reason, because an exception nobody can justify afterwards is indistinguishable from a mistake. An excluded callee is subtracted rather than deferred: it is not deployed, and a target that entered the plan only through it leaves the plan too, so nothing is deployed that would have needed it. The exclusion is visible in the plan (plan.skipped with reason callee_excluded, carrying the reason in message) and on the promotion (withoutCallees), and a retry repeats it. Excluding a target you named is refused (take it out of targets instead), as is excluding a target the named ones do not depend on; a regular promotion refuses withoutCallees the same way it refuses targets. A targeted promotion's success verifies only the targets it deployed, not the whole release, so the upstream gate still requires the untouched targets before a later environment may take them. The service reads the environment's promotion order and refuses when an upstream environment has not verified this release yet, unless a bypass carries the authorization for that gate. An environment takes one promotion at a time, so a create while another is running is queued behind it rather than refused; only a regular promotion supersedes waiting regular ones, and a targeted promotion neither overtakes another ride nor is overtaken. Set validateOnly to read the plan and its refusals — layers, skipped targets, pending migrations, missing configuration keys — without scheduling anything, which is the safe way to find out what a promotion will do; the same plan is on the promotion
|
|
15424
|
+
"description": "Promote a release into one environment: this is the operation that actually schedules a deployment. Name the release and the environment; path is regular for an ordinary promotion, targeted to deploy only the targets you list, patch to carry a patch release, and rollback to return the environment to an earlier release. A regular promotion promotes EVERY target the release changed in that environment and refuses a targets list (to promote a subset use path targeted, so a narrowing is never silently ignored). A targeted promotion requires targets: each item is a target id from the target list or the workspace path the console shows (services/devops), and the call resolves the path to the id. A target the release does not carry is refused with the targets the release does deploy; so is a target this environment never runs. Naming a target also deploys the targets it depends on, which come first and are reported in plan.addedDependencies. The targets that changed but were not named are listed in plan.skipped with reason not_requested, so a reader sees what the promotion left behind. Callees upgrade first by default: naming a target brings the targets it depends on, because a caller cannot run on a callee it did not deploy. To skip that on purpose, pass dependencies skip, a forced express that deploys only the named targets and records that it did so (see dependencies). Every promotion runs one version of the deploy engine, resolved from the project's settings.deploy.engine when the promotion is created and recorded as engineVersion; a request that engine version cannot serve is refused with ENGINE_TOO_OLD, which names the option and the first version that has it. To leave one of those callees behind, pass withoutCallees, a list of { target, reason } on a targeted promotion. Each entry names a callee the named targets depend on — by target id or workspace path, as in targets — and carries a required, non-empty reason, because an exception nobody can justify afterwards is indistinguishable from a mistake. An excluded callee is subtracted rather than deferred: it is not deployed, and a target that entered the plan only through it leaves the plan too, so nothing is deployed that would have needed it. The exclusion is visible in the plan (plan.skipped with reason callee_excluded, carrying the reason in message) and on the promotion (withoutCallees), and a retry repeats it. Excluding a target you named is refused (take it out of targets instead), as is excluding a target the named ones do not depend on; a regular promotion refuses withoutCallees the same way it refuses targets. A targeted promotion's success verifies only the targets it deployed, not the whole release, so the upstream gate still requires the untouched targets before a later environment may take them. The service reads the environment's promotion order and refuses when an upstream environment has not verified this release yet, unless a bypass carries the authorization for that gate. An environment takes one promotion at a time, so a create while another is running is queued behind it rather than refused; only a regular promotion supersedes waiting regular ones, and a targeted promotion neither overtakes another ride nor is overtaken. Set validateOnly to read the plan and its refusals — layers, skipped targets, pending migrations, missing configuration keys — without scheduling anything, which is the safe way to find out what a promotion will do; the answer then carries validateOnly true and the placeholder id prm_validate_only, because nothing was stored and there is no promotion to read again; the same plan is on the promotion a real call answers and on `praxis api devops promotion get`, which reads it again with the promotion's progress as the rollout advances. patch and rollback are not creatable here yet and are refused with NOT_IMPLEMENTED: a rollback is created with environments.rollback, not with path rollback on this call. An environment whose blocksLater is true stays held during its observation window: a promotion created for it waits queued (its stateDescription names the promotion it waits for) until promotions.conclude ends the window, and the environment list shows the queue as busy with that promotion as active. A promotion in which every rollout was skipped as artifact_identical (the change did not alter the built artifact, such as a comment) succeeds and moves the checkpoints but deploys nothing; promotions.retrieve counts it in summary.identical. The answer is the promotion: the plan it will execute is in its plan field (layers, skipped, refusals, pending migrations) and its progress is in state; `praxis api devops promotion get <id>` shows both again at any time. With an environment that requires approval the promotion waits in awaiting_approval until `praxis api devops promotion approve`.",
|
|
14839
15425
|
"http": "POST",
|
|
14840
15426
|
"path": "/devops/v1/promotions",
|
|
14841
15427
|
"streaming": "no",
|
|
@@ -14883,6 +15469,16 @@ export const operations = [
|
|
|
14883
15469
|
"required": false,
|
|
14884
15470
|
"description": "Targeted only. Callees the named targets depend on that must NOT travel with them, each with the reason it is being held back. Refused for path regular, which brings every changed target with the callees it needs. An excluded callee is not deployed, and neither is anything that entered the plan only through it; the plan reports it as skipped with reason callee_excluded and the reason in message."
|
|
14885
15471
|
},
|
|
15472
|
+
{
|
|
15473
|
+
"name": "dependencies",
|
|
15474
|
+
"type": "string",
|
|
15475
|
+
"enum": [
|
|
15476
|
+
"include",
|
|
15477
|
+
"skip"
|
|
15478
|
+
],
|
|
15479
|
+
"required": false,
|
|
15480
|
+
"description": "Targeted only. include (the default) is the ordinary dependency order: naming a target also deploys the callees it needs, first. skip is a FORCED EXPRESS: only the targets you name deploy, nothing is added, and the callees stay at whatever the environment runs. Use it when the closure would carry other people's unreleased changes (a targeted promotion of one service can plan dozens of targets whose checkpoints lag). It is recorded for after-the-fact review: the promotion answers dependencies skip and skippedDependencies (what include would have added), and the project's promotion list filters on forced. The one refusal is DEPENDENCY_NOT_LIVE (FAILED_PRECONDITION): a named target bound to a callee that has never been deployed to this environment, which names the target and the callee. Release facts record who calls whom but not which entrypoint a binding names, so liveness is decided per callee, not per entrypoint. skip is refused with INVALID_ARGUMENT for any path but targeted, and together with withoutCallees (it already leaves every callee behind). A named async target still goes to its own async promotion."
|
|
15481
|
+
},
|
|
14886
15482
|
{
|
|
14887
15483
|
"name": "bypass",
|
|
14888
15484
|
"type": "array",
|
|
@@ -14917,7 +15513,7 @@ export const operations = [
|
|
|
14917
15513
|
"resource": "devops.promotions",
|
|
14918
15514
|
"method": "retrieve",
|
|
14919
15515
|
"summary": "Retrieve a promotion",
|
|
14920
|
-
"description": "Read one promotion: its state, its approval, its plan, and the failure that stopped it when there is one. Poll this after creating a promotion to follow it to a terminal state, or read it to find out why a deployment stopped — failure.cause tells plan refusal apart from a failed deploy, and executor names the runs involved. Pass expand=rollouts to receive the per-target rollouts in the same answer instead of listing them separately. state observing means the environment is deployed and the observation window is running, so the promotion is not finished and conclude is still to come. The plan is in the plan field of the answer (null until one is made) and the promotion's state is in state, so this is where to read both before approve (needs awaiting_approval) or conclude (needs observing).",
|
|
15516
|
+
"description": "Read one promotion: its state, its approval, its plan, and the failure that stopped it when there is one. Poll this after creating a promotion to follow it to a terminal state, or read it to find out why a deployment stopped — failure.cause tells plan refusal apart from a failed deploy, and executor names the runs involved. Pass expand=rollouts to receive the per-target rollouts in the same answer instead of listing them separately. state observing means the environment is deployed and the observation window is running, so the promotion is not finished and conclude is still to come; the window holds the environment, so a promotion queued behind it waits until conclude. Once a rollout has ended, summary says how many targets were really deployed (deployed), how many were skipped as artifact_identical (identical: the change did not alter the built artifact, such as a comment, so nothing was deployed although the promotion succeeds and its checkpoints advance) and how many ended any other way (other). The plan is in the plan field of the answer (null until one is made) and the promotion's state is in state, so this is where to read both before approve (needs awaiting_approval) or conclude (needs observing).",
|
|
14921
15517
|
"http": "GET",
|
|
14922
15518
|
"path": "/devops/v1/promotions/{id}",
|
|
14923
15519
|
"streaming": "no",
|
|
@@ -15005,6 +15601,24 @@ export const operations = [
|
|
|
15005
15601
|
]
|
|
15006
15602
|
}
|
|
15007
15603
|
},
|
|
15604
|
+
{
|
|
15605
|
+
"resource": "devops.promotions",
|
|
15606
|
+
"method": "checkoutCredential",
|
|
15607
|
+
"summary": "Get the checkout credential of a running promotion",
|
|
15608
|
+
"description": "Issue the credential the deploy machine fetches a platform-Git project's code with. The caller is the deploy machine itself, during a run: its `devops/prepare` step sends the API key it already holds and receives the clone URL of the project's repository plus a pull-only credential for exactly that one repository. The credential lives 15 minutes and is issued again on every request, so it never sits in the run's stored input or log, and a leaked copy is useless almost at once. A run that needs the code later, such as an engine checkout after a long install, asks again. It answers only while the promotion is deploying (a rollback is a promotion and deploys too) or halted; a promotion that is queued, waiting for approval, observing or finished is refused with PROMOTION_NOT_RUNNING, because no machine should be fetching code for it. A project whose code is on GitHub is refused with SOURCE_NOT_PLATFORM: its checkout uses the GitHub App token, not this. The key must belong to the promotion's organization, the same check as reading the promotion with `praxis api devops promotion get <id>`. People do not need this call: to read a platform project's code use the code browser calls instead.",
|
|
15609
|
+
"http": "POST",
|
|
15610
|
+
"path": "/devops/v1/promotions/{id}:checkoutCredential",
|
|
15611
|
+
"streaming": "no",
|
|
15612
|
+
"pagination": false,
|
|
15613
|
+
"pathParams": [
|
|
15614
|
+
{
|
|
15615
|
+
"name": "id",
|
|
15616
|
+
"sdkName": "id",
|
|
15617
|
+
"description": "The promotion identifier returned by a promotion list or create answer."
|
|
15618
|
+
}
|
|
15619
|
+
],
|
|
15620
|
+
"query": []
|
|
15621
|
+
},
|
|
15008
15622
|
{
|
|
15009
15623
|
"resource": "devops.promotions",
|
|
15010
15624
|
"method": "conclude",
|
|
@@ -15048,7 +15662,7 @@ export const operations = [
|
|
|
15048
15662
|
"resource": "devops.promotions",
|
|
15049
15663
|
"method": "retry",
|
|
15050
15664
|
"summary": "Retry a promotion",
|
|
15051
|
-
"description": "Continue a promotion that stopped part-way
|
|
15665
|
+
"description": "Continue a promotion that stopped part-way: one in halted (some targets deployed, some failed, some never started) or one in failed. The answer is a NEW promotion whose plan names only the targets that did not reach the release, so a partially deployed environment is completed rather than redeployed from the start. A halted promotion is stopped first — its run is asked to cancel and the executor is read back until the run is no longer running — because a new plan that starts while the old run still deploys the same targets would deploy them twice; when the run will not stop, the call is refused with PROMOTION_RUN_STILL_RUNNING and creates nothing. Once that run is over the halt is closed as the partial deploy it is (the targets that really deployed move their checkpoints) and the new promotion is planned from those checkpoints. Any other state is refused with PROMOTION_NOT_RETRYABLE, whose message names the state and what to do instead: a promotion that is still deploying has nothing to continue (cancel it to stop it), and a succeeded, cancelled or superseded one has nothing left — promote the release again if this environment must take it. The retry is attributed to the credential that sends it and is recorded on the promotion.",
|
|
15052
15666
|
"http": "POST",
|
|
15053
15667
|
"path": "/devops/v1/promotions/{id}:retry",
|
|
15054
15668
|
"streaming": "no",
|
|
@@ -15097,7 +15711,7 @@ export const operations = [
|
|
|
15097
15711
|
"resource": "devops.pullRequests",
|
|
15098
15712
|
"method": "retrieve",
|
|
15099
15713
|
"summary": "Retrieve a pull request",
|
|
15100
|
-
"description": "Read one pull request in full: its state, its head and base, its changed paths, the exposure its description declares, and — the part this call exists for — its gate. The gate is a list of named checks (the declaration, the flag duties, the affected tests, and the one judgement only a person makes), each with a result and, when it failed or is pending, the sentence saying what is missing; the gate's own state is passed only when no check failed and none is still pending. Read the gate here before merging or before recording a verdict, and read it again after a rerun: the checks are facts about the current head, and a new head starts a new gate. Add expand=runs to also get the
|
|
15714
|
+
"description": "Read one pull request in full: its state, its head and base, its changed paths, the exposure its description declares, and — the part this call exists for — its gate. The gate is a list of named checks (the declaration, the flag duties, the affected tests, and the one judgement only a person makes), each with a result and, when it failed or is pending, the sentence saying what is missing; the tests check is never pending, because DevOps runs no tests for a pull request: it is passed, or failed naming the missing or failed cases and the command `praxis devops test <package> --record-impact` the author runs on the pushed head; the gate's own state is passed only when no check failed and none is still pending. Read the gate here before merging or before recording a verdict, and read it again after a rerun: the checks are facts about the current head, and a new head starts a new gate. Add expand=runs to also get the test runs reported at the head commit (uploaded by the author, never started by DevOps), newest first.",
|
|
15101
15715
|
"http": "GET",
|
|
15102
15716
|
"path": "/devops/v1/pull-requests/{id}",
|
|
15103
15717
|
"streaming": "no",
|
|
@@ -15118,11 +15732,80 @@ export const operations = [
|
|
|
15118
15732
|
}
|
|
15119
15733
|
]
|
|
15120
15734
|
},
|
|
15735
|
+
{
|
|
15736
|
+
"resource": "devops.pullRequests.reviews",
|
|
15737
|
+
"method": "create",
|
|
15738
|
+
"summary": "Review a pull request on our own Git",
|
|
15739
|
+
"description": "Give your verdict on a pull request whose project keeps its code on the platform's own Git, where there is no GitHub to hold reviews. The reviewer is you — the user or agent the credential names, never a name in the body — and the platform stores your verdict on the pull request's reviewers under your id, so an ownership rule that lists principal ids reads it. Send approved to approve, changes_requested to hold it with changes you want, or commented to say something without a verdict. A second review from you replaces your first, and the gate is decided again so a rule that reads reviews sees it at once. Only an open pull request is reviewed: a merged or closed one is refused with PULL_REQUEST_NOT_OPEN. A project connected to GitHub is refused with INVALID_ARGUMENT, because its reviews belong to GitHub and the platform projects them from there, so a verdict is never recorded in two places that can disagree.",
|
|
15740
|
+
"http": "POST",
|
|
15741
|
+
"path": "/devops/v1/pull-requests/{id}/reviews",
|
|
15742
|
+
"streaming": "no",
|
|
15743
|
+
"pagination": false,
|
|
15744
|
+
"pathParams": [
|
|
15745
|
+
{
|
|
15746
|
+
"name": "id",
|
|
15747
|
+
"sdkName": "id",
|
|
15748
|
+
"description": "The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it."
|
|
15749
|
+
}
|
|
15750
|
+
],
|
|
15751
|
+
"query": [],
|
|
15752
|
+
"body": {
|
|
15753
|
+
"required": true,
|
|
15754
|
+
"fields": [
|
|
15755
|
+
{
|
|
15756
|
+
"name": "state",
|
|
15757
|
+
"type": "string",
|
|
15758
|
+
"enum": [
|
|
15759
|
+
"approved",
|
|
15760
|
+
"changes_requested",
|
|
15761
|
+
"commented"
|
|
15762
|
+
],
|
|
15763
|
+
"required": true,
|
|
15764
|
+
"description": "The verdict. A value outside this set is refused with INVALID_ARGUMENT."
|
|
15765
|
+
},
|
|
15766
|
+
{
|
|
15767
|
+
"name": "body",
|
|
15768
|
+
"type": "string",
|
|
15769
|
+
"required": false,
|
|
15770
|
+
"description": "The words that go with the verdict. Accepted now and not stored yet: DevOps keeps no review thread, so say what must change on the change's own ticket as well."
|
|
15771
|
+
}
|
|
15772
|
+
]
|
|
15773
|
+
}
|
|
15774
|
+
},
|
|
15775
|
+
{
|
|
15776
|
+
"resource": "devops.pullRequests",
|
|
15777
|
+
"method": "close",
|
|
15778
|
+
"summary": "Close a pull request without merging it",
|
|
15779
|
+
"description": "End a pull request that will never land, without abandoning the change it belongs to. DevOps closes it on GitHub through the project's own App installation, after writing this reason on the pull request, so it leaves the review queue instead of waiting for a merge that is not coming and whoever finds it later sees who ended it and why. Use it when one slice of a change is dropped while the change continues; abandoning the CHANGE closes its unmerged pull requests on its own and needs no second call. Only an open pull request can be closed: a merged one is refused with PULL_REQUEST_NOT_OPEN, because closing does not undo a merge and GitHub will not move a merged pull request back to closed, and one that is already closed answers itself unchanged, so repeating the call is safe. A pull request GitHub no longer has open is refused the same way — nothing was closed, and the platform's record catches up with GitHub on its next delivery.",
|
|
15780
|
+
"http": "POST",
|
|
15781
|
+
"path": "/devops/v1/pull-requests/{id}:close",
|
|
15782
|
+
"streaming": "no",
|
|
15783
|
+
"pagination": false,
|
|
15784
|
+
"pathParams": [
|
|
15785
|
+
{
|
|
15786
|
+
"name": "id",
|
|
15787
|
+
"sdkName": "id",
|
|
15788
|
+
"description": "The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it."
|
|
15789
|
+
}
|
|
15790
|
+
],
|
|
15791
|
+
"query": [],
|
|
15792
|
+
"body": {
|
|
15793
|
+
"required": true,
|
|
15794
|
+
"fields": [
|
|
15795
|
+
{
|
|
15796
|
+
"name": "reason",
|
|
15797
|
+
"type": "string",
|
|
15798
|
+
"required": true,
|
|
15799
|
+
"description": "Why, in a sentence the next reader of the pull request can act on. It is posted as a note on the pull request before it is closed, and the note names the change when the head branch is one."
|
|
15800
|
+
}
|
|
15801
|
+
]
|
|
15802
|
+
}
|
|
15803
|
+
},
|
|
15121
15804
|
{
|
|
15122
15805
|
"resource": "devops.pullRequests",
|
|
15123
15806
|
"method": "merge",
|
|
15124
15807
|
"summary": "Merge a pull request through its gate",
|
|
15125
|
-
"description": "Land a pull request by having DevOps call GitHub, so the merge goes through the platform's own merge gate instead of around it. The gate is the permission: while the gate is pending or failed the merge is refused with GATE_NOT_PASSED, and a pull request that is already merged or closed is refused with PULL_REQUEST_NOT_OPEN. Only the commit the gate decided on may land — that commit is sent to GitHub as the merge sha, so a head that moved underneath is refused with HEAD_MOVED rather than merged untested — and GitHub's own refusal, such as a conflict, comes back as MERGE_REFUSED carrying its words. method picks the merge shape
|
|
15808
|
+
"description": "Land a pull request by having DevOps call GitHub, so the merge goes through the platform's own merge gate instead of around it. The gate is the permission: while the gate is pending or failed the merge is refused with GATE_NOT_PASSED, and a pull request that is already merged or closed is refused with PULL_REQUEST_NOT_OPEN. Only the commit the gate decided on may land — that commit is sent to GitHub as the merge sha, so a head that moved underneath is refused with HEAD_MOVED rather than merged untested — and GitHub's own refusal, such as a conflict, comes back as MERGE_REFUSED carrying its words. method picks the merge shape; on GitHub it defaults to rebase. A project on our own Git (provider platform) merges by squash only: no method means squash, and rebase or merge is refused with INVALID_ARGUMENT naming squash. queue true does not merge now: it puts the pull request into its (project, base) merge queue, where the commit that eventually lands is one GitHub built from the current base and a test run proved. Send requestId to make a retry safe — a retry that reaches a pull request DevOps itself already merged answers that merge without calling GitHub again; it does not make the merge wait. Merging something already merged by somebody else stays a refusal rather than a replay.",
|
|
15126
15809
|
"http": "POST",
|
|
15127
15810
|
"path": "/devops/v1/pull-requests/{id}:merge",
|
|
15128
15811
|
"streaming": "no",
|
|
@@ -15167,8 +15850,8 @@ export const operations = [
|
|
|
15167
15850
|
{
|
|
15168
15851
|
"resource": "devops.pullRequests",
|
|
15169
15852
|
"method": "recordVerdict",
|
|
15170
|
-
"summary": "Record a
|
|
15171
|
-
"description": "
|
|
15853
|
+
"summary": "Record a review verdict on a pull request",
|
|
15854
|
+
"description": "Record a reviewer's verdict on a pull request, after the fact (Sean 2026-11-24). The merge gate no longer waits for it: exposure-judged is decided by machine from the declaration for every kind of exposure, so a pull request merges without any verdict. This call is the review record — send result passed or failed with reason saying in a sentence a reviewer can act on why. It is stored on the pull request as review and announced with the event devops.pullRequest.reviewed. A failed verdict on an already merged pull request is a finding for follow-up (the event says finding true): the merge stands, nothing is un-merged, and a rollback or a fix is asked for on the ticket. headSha must be the pull request's head, and a verdict for another commit is refused with INVALID_ARGUMENT. List the merged pull requests nobody reviewed with pullRequests.list reviewed=false.",
|
|
15172
15855
|
"http": "POST",
|
|
15173
15856
|
"path": "/devops/v1/pull-requests/{id}:recordVerdict",
|
|
15174
15857
|
"streaming": "no",
|
|
@@ -15219,7 +15902,7 @@ export const operations = [
|
|
|
15219
15902
|
"resource": "devops.pullRequests",
|
|
15220
15903
|
"method": "rerunGate",
|
|
15221
15904
|
"summary": "Decide a pull request's merge gate again",
|
|
15222
|
-
"description": "Decide the merge gate again at the pull request's current head and report the result on GitHub as the \"Praxis DevOps / gate\" check run. Use it when a fact the gate reads has changed without a new push — a
|
|
15905
|
+
"description": "Decide the merge gate again at the pull request's current head and report the result on GitHub as the \"Praxis DevOps / gate\" check run. Use it when a fact the gate reads has changed without a new push — a flag was registered, or a check that had no evidence now has some (test evidence uploaded for the head already decides the gate again by itself) — so nobody has to push an empty commit to make the check move. The answer is the pull request with the gate it now reaches. A head whose earlier gate already had a verdict and comes back pending opens a NEW check run, because GitHub will not reopen a completed one; while the same head is still deciding, the run it already owns is updated in place. Nothing else on the pull request changes, and repeating the call is safe: the same facts decide the same gate.",
|
|
15223
15906
|
"http": "POST",
|
|
15224
15907
|
"path": "/devops/v1/pull-requests/{id}:rerunGate",
|
|
15225
15908
|
"streaming": "no",
|
|
@@ -15873,7 +16556,7 @@ export const operations = [
|
|
|
15873
16556
|
"resource": "file.files",
|
|
15874
16557
|
"method": "list",
|
|
15875
16558
|
"summary": "List files",
|
|
15876
|
-
"description": "List live files owned by your tenant, optionally filtered by purpose or
|
|
16559
|
+
"description": "List live files owned by your tenant, optionally filtered by purpose, session scope_id or up to 100 file ids. Results default to descending creation order with a limit of 10000. Page using after or before with a file ID from the list; these cursors are mutually exclusive. Deleted and expired files are excluded.",
|
|
15877
16560
|
"http": "GET",
|
|
15878
16561
|
"path": "/file/v1/files",
|
|
15879
16562
|
"streaming": "no",
|
|
@@ -15914,6 +16597,13 @@ export const operations = [
|
|
|
15914
16597
|
"required": false,
|
|
15915
16598
|
"description": "Session whose output files to list. Accepts sesn_ or ags_ followed by 1 to 251 letters, digits, underscores or hyphens. An existing session with no outputs returns an empty list; a nonexistent or inaccessible session returns 404."
|
|
15916
16599
|
},
|
|
16600
|
+
{
|
|
16601
|
+
"name": "ids",
|
|
16602
|
+
"type": "array",
|
|
16603
|
+
"itemType": "string",
|
|
16604
|
+
"required": false,
|
|
16605
|
+
"description": "Return only these files, up to 100 IDs separated by commas, so metadata for many known files takes one call instead of one retrieve per file. An ID that is not a live file of your tenant is simply absent from the list, as a retrieve would answer 404; more than 100 IDs returns 400. Combines with the other filters."
|
|
16606
|
+
},
|
|
15917
16607
|
{
|
|
15918
16608
|
"name": "before",
|
|
15919
16609
|
"type": "string",
|
|
@@ -17160,9 +17850,20 @@ export const operations = [
|
|
|
17160
17850
|
"description": "Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets."
|
|
17161
17851
|
},
|
|
17162
17852
|
{
|
|
17163
|
-
"name": "
|
|
17853
|
+
"name": "default_tier",
|
|
17164
17854
|
"type": "string",
|
|
17165
|
-
"
|
|
17855
|
+
"enum": [
|
|
17856
|
+
"economy",
|
|
17857
|
+
"balanced",
|
|
17858
|
+
"quality"
|
|
17859
|
+
],
|
|
17860
|
+
"required": false,
|
|
17861
|
+
"description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
|
|
17862
|
+
},
|
|
17863
|
+
{
|
|
17864
|
+
"name": "name",
|
|
17865
|
+
"type": "string",
|
|
17866
|
+
"required": true,
|
|
17166
17867
|
"description": "Library display name. Must contain a non-whitespace character and be at most 64 UTF-16 code units; duplicates are allowed."
|
|
17167
17868
|
},
|
|
17168
17869
|
{
|
|
@@ -17175,7 +17876,7 @@ export const operations = [
|
|
|
17175
17876
|
"name": "understanding",
|
|
17176
17877
|
"type": "object",
|
|
17177
17878
|
"required": false,
|
|
17178
|
-
"description": "Understanding tasks enabled for new assets; omitted
|
|
17879
|
+
"description": "Understanding tasks enabled for new assets; omitted visual and transcript default to true, embedding to false."
|
|
17179
17880
|
}
|
|
17180
17881
|
]
|
|
17181
17882
|
}
|
|
@@ -17290,6 +17991,17 @@ export const operations = [
|
|
|
17290
17991
|
"required": false,
|
|
17291
17992
|
"description": "Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets."
|
|
17292
17993
|
},
|
|
17994
|
+
{
|
|
17995
|
+
"name": "default_tier",
|
|
17996
|
+
"type": "string",
|
|
17997
|
+
"enum": [
|
|
17998
|
+
"economy",
|
|
17999
|
+
"balanced",
|
|
18000
|
+
"quality"
|
|
18001
|
+
],
|
|
18002
|
+
"required": false,
|
|
18003
|
+
"description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
|
|
18004
|
+
},
|
|
17293
18005
|
{
|
|
17294
18006
|
"name": "name",
|
|
17295
18007
|
"type": "string",
|
|
@@ -17396,6 +18108,20 @@ export const operations = [
|
|
|
17396
18108
|
}
|
|
17397
18109
|
],
|
|
17398
18110
|
"query": [],
|
|
18111
|
+
"headers": [
|
|
18112
|
+
{
|
|
18113
|
+
"name": "X-Unique-Upload-Id",
|
|
18114
|
+
"type": "string",
|
|
18115
|
+
"required": false,
|
|
18116
|
+
"description": "Stable identifier shared by every chunk of this upload."
|
|
18117
|
+
},
|
|
18118
|
+
{
|
|
18119
|
+
"name": "Content-Range",
|
|
18120
|
+
"type": "string",
|
|
18121
|
+
"required": false,
|
|
18122
|
+
"description": "Chunk byte range: bytes start-end/total; total may be -1 until the final chunk."
|
|
18123
|
+
}
|
|
18124
|
+
],
|
|
17399
18125
|
"body": {
|
|
17400
18126
|
"required": true,
|
|
17401
18127
|
"fields": [
|
|
@@ -17757,7 +18483,7 @@ export const operations = [
|
|
|
17757
18483
|
"resource": "media.assets",
|
|
17758
18484
|
"method": "edit",
|
|
17759
18485
|
"summary": "Edit asset",
|
|
17760
|
-
"description": "
|
|
18486
|
+
"description": "Change an existing asset and store the result as a new asset; the source is never overwritten. {library_id} also accepts default, the organization’s default library. The body is operation (its type selects the edit and carries that edit’s own fields) plus optional model, asset_folder, understanding and idempotency_key. Edits by material: on an image, variations (near copies of a take you like), inpaint (mask, a PNG File id beginning with file-, whose transparent area is replaced by what prompt describes), erase, replace_object, recolor, replace_background, remove_background, upscale and talking_avatar (the portrait speaks a recording of the same library); on a video, upscale, reframe, redact, trim, mute, crop, extract_audio (pulls the sound out of a video as its own audio asset), erase (removes burned-in subtitles, captions and corner watermarks, found automatically or inside the boxes given), replace_person (puts the person of an image of the same library in place of the video’s person), lip_sync (re-syncs the lips to a recording of the same library), animate_person (an image of the same library performs the video’s motion), edit_video (the video changed by a one-line instruction, optionally guided by one image of the same library) and remove_background; on a recording or a video’s audio, enhance_voice; and to_video, frame and resynthesize on the material each takes. Any other type answers OPERATION_NOT_SUPPORTED, and an edit that does not fit the source’s material answers REFERENCE_TYPE_MISMATCH. Video and audio edits take their model from the platform catalogue (override with operation.model; extract_audio takes no model, it has exactly one function); an edit whose catalogue is empty answers OPERATION_NOT_SUPPORTED, 尚未上架. remove_background on a video makes a portrait matte: output mask is a small black-and-white video to use as a Cut track mask (the choice for compositing), output alpha (the default) a transparent ProRes 4444 file of about 870 MB per 15 s of 1080p, for when the transparent file itself is the deliverable; pick model from types.matting.models of the generation capabilities. output and model on an image source answer INVALID_PARAMS. The new asset records the source in derived_from; assets.lineage reads the whole edit chain. Charges are at the model API prices (video and audio edits per second of input) and appear in the Job’s usage; repeating the same edit of the same source answers the asset already made instead of paying again. The response is 202 with a queued Job whose source_asset_id is the edited asset; poll GET /media/v1/libraries/{library_id}/jobs/{job_id}, give the output’s viewer_url to the person and tell them usage.",
|
|
17761
18487
|
"http": "POST",
|
|
17762
18488
|
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
|
|
17763
18489
|
"streaming": "no",
|
|
@@ -17782,13 +18508,24 @@ export const operations = [
|
|
|
17782
18508
|
"name": "operation",
|
|
17783
18509
|
"type": "object",
|
|
17784
18510
|
"required": true,
|
|
17785
|
-
"description": "One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute and
|
|
18511
|
+
"description": "One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute, crop and extract_audio through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe, redact, trim, mute, crop and extract_audio on a video), erase, replace_person, lip_sync, animate_person and edit_video on a video and talking_avatar on an image through the same lane, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align."
|
|
17786
18512
|
},
|
|
17787
18513
|
{
|
|
17788
18514
|
"name": "model",
|
|
17789
18515
|
"type": "string",
|
|
17790
18516
|
"required": false,
|
|
17791
|
-
"description": "Model that performs the edit; omit it to use the library default image model."
|
|
18517
|
+
"description": "Model that performs the edit; omit it to use the library default image model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter."
|
|
18518
|
+
},
|
|
18519
|
+
{
|
|
18520
|
+
"name": "tier",
|
|
18521
|
+
"type": "string",
|
|
18522
|
+
"enum": [
|
|
18523
|
+
"economy",
|
|
18524
|
+
"balanced",
|
|
18525
|
+
"quality"
|
|
18526
|
+
],
|
|
18527
|
+
"required": false,
|
|
18528
|
+
"description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
|
|
17792
18529
|
},
|
|
17793
18530
|
{
|
|
17794
18531
|
"name": "asset_folder",
|
|
@@ -18116,7 +18853,7 @@ export const operations = [
|
|
|
18116
18853
|
"resource": "media.speech",
|
|
18117
18854
|
"method": "create",
|
|
18118
18855
|
"summary": "Create speech",
|
|
18119
|
-
"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.",
|
|
18856
|
+
"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. tier chooses which speech model speaks, instead of naming one: economy is the cheapest and fastest, balanced the best value and quality the best result, and the tier picks among the models that carry the voice you name — a voice a model does not offer is never selected and then refused. model is the transition-window parameter and names the same choice, so send only one of the two; omitting both speaks with the library’s speech model, or by its default tier once the platform turns the media-tier-defaults switch on. 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.",
|
|
18120
18857
|
"http": "POST",
|
|
18121
18858
|
"path": "/media/v1/libraries/{library_id}/audio/speech",
|
|
18122
18859
|
"streaming": "no",
|
|
@@ -18175,6 +18912,23 @@ export const operations = [
|
|
|
18175
18912
|
"type": "string",
|
|
18176
18913
|
"required": false,
|
|
18177
18914
|
"description": "Language of the text, when the voice supports several."
|
|
18915
|
+
},
|
|
18916
|
+
{
|
|
18917
|
+
"name": "model",
|
|
18918
|
+
"type": "string",
|
|
18919
|
+
"required": false,
|
|
18920
|
+
"description": "Speech model that synthesises the recording; omit it to use the library’s speech model (models.speech). This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter."
|
|
18921
|
+
},
|
|
18922
|
+
{
|
|
18923
|
+
"name": "tier",
|
|
18924
|
+
"type": "string",
|
|
18925
|
+
"enum": [
|
|
18926
|
+
"economy",
|
|
18927
|
+
"balanced",
|
|
18928
|
+
"quality"
|
|
18929
|
+
],
|
|
18930
|
+
"required": false,
|
|
18931
|
+
"description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
|
|
18178
18932
|
}
|
|
18179
18933
|
]
|
|
18180
18934
|
}
|
|
@@ -18348,7 +19102,7 @@ export const operations = [
|
|
|
18348
19102
|
"resource": "media.images",
|
|
18349
19103
|
"method": "generate",
|
|
18350
19104
|
"summary": "Generate image",
|
|
18351
|
-
"description": "Generate
|
|
19105
|
+
"description": "Generate images into a library from a prompt, optionally guided by existing pictures. {library_id} also accepts default, the organization’s default library. prompt is required; n (1 to 10), size, background, output_format, output, references, seed, model, asset_folder and understanding are optional. Name size, not an aspect ratio. Set output to sticker for a cut-out with a transparent background. references attach pictures of the same library with a role: subject keeps a person, product or scene consistent (several subjects put several characters in one picture), edit_target is the picture to change, style is the look to follow, structure the composition. Only a model whose modes in GET /media/v1/generation/capabilities include image takes references; any other answers INVALID_PARAMS naming the models that do, and a role a model cannot honour answers REFERENCE_TYPE_MISMATCH, both before anything is charged. A reference may be an element id (a character, product, scene or brand from the materials endpoints), which expands into its pictures and appends its description to the prompt. To draw several candidates of one key frame, send n and keep the ones you want; delete the rest. Charges are per image at the model API prices and appear in the Job’s usage; a refused or failed image costs nothing. The response is 202 with a queued Job; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} for each output’s asset and viewer_url, give viewer_url to the person and tell them usage. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice.",
|
|
18352
19106
|
"http": "POST",
|
|
18353
19107
|
"path": "/media/v1/libraries/{library_id}/images/generations",
|
|
18354
19108
|
"streaming": "no",
|
|
@@ -18442,7 +19196,18 @@ export const operations = [
|
|
|
18442
19196
|
"name": "model",
|
|
18443
19197
|
"type": "string",
|
|
18444
19198
|
"required": false,
|
|
18445
|
-
"description": "Model with image-generation capability; omit it to use the library default image model."
|
|
19199
|
+
"description": "Model with image-generation capability; omit it to use the library default image model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter."
|
|
19200
|
+
},
|
|
19201
|
+
{
|
|
19202
|
+
"name": "tier",
|
|
19203
|
+
"type": "string",
|
|
19204
|
+
"enum": [
|
|
19205
|
+
"economy",
|
|
19206
|
+
"balanced",
|
|
19207
|
+
"quality"
|
|
19208
|
+
],
|
|
19209
|
+
"required": false,
|
|
19210
|
+
"description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
|
|
18446
19211
|
},
|
|
18447
19212
|
{
|
|
18448
19213
|
"name": "asset_folder",
|
|
@@ -18473,7 +19238,7 @@ export const operations = [
|
|
|
18473
19238
|
"resource": "media.libraries.jobs",
|
|
18474
19239
|
"method": "list",
|
|
18475
19240
|
"summary": "List jobs",
|
|
18476
|
-
"description": "List batch and generation jobs
|
|
19241
|
+
"description": "List the batch and generation jobs of a library, newest first, to find a job whose id you lost or to watch several takes at once. Filter by status or by pipeline_run_id (the jobs one automation run started) and continue with next_cursor. Each entry is the same Job that GET /media/v1/libraries/{library_id}/jobs/{job_id} returns, with outputs, failures and usage.",
|
|
18477
19242
|
"http": "GET",
|
|
18478
19243
|
"path": "/media/v1/libraries/{library_id}/jobs",
|
|
18479
19244
|
"streaming": "no",
|
|
@@ -18526,7 +19291,7 @@ export const operations = [
|
|
|
18526
19291
|
"resource": "media.libraries.jobs",
|
|
18527
19292
|
"method": "retrieve",
|
|
18528
19293
|
"summary": "Get job",
|
|
18529
|
-
"description": "Read
|
|
19294
|
+
"description": "Read a generation, edit or batch Job; poll it after every generation or edit until status is terminal, every few seconds (an image takes seconds, a video a few minutes; an edit of a video took about four). status: queued is waiting (queue_reason says why, queue_position its place in line; provider_queue means the model’s supplier holds the task in its own queue, which can take hours when it is busy — the job keeps waiting for as long as the supplier keeps the task, and only past the supplier’s own task lifetime fails with detail_code UPSTREAM_WAIT_EXCEEDED, uncharged); in_progress or running is generating; completed means every output succeeded; completed_with_errors means some did; failed means none did; canceled or cancelled means it was stopped. Read the result output by output. A succeeded entry of outputs[] has asset_id and viewer_url, because the output is already a library asset: give viewer_url to the person. Its seed is present only when the model reports one (Doubao Seedance 2.x neither takes nor reports a seed); where present, send it back as seed with an adjusted prompt to vary that take. A failed entry has its reason in the failures[] entry with the same index: code is the error to branch on, for example CONTENT_REJECTED when the model's moderation refused an input or the result (a real human face in a reference is one cause; change the prompt or the reference, because retrying unchanged fails again) or GENERATION_FAILED when the model call failed (retrying may succeed); detail_code is the model's finer reason and model_request_id the model call to trace. usage is what the job has cost so far and is final at a terminal status; failed and refused outputs are not charged, so usage counts succeeded outputs only, and it is absent when nothing was charged.",
|
|
18530
19295
|
"http": "GET",
|
|
18531
19296
|
"path": "/media/v1/libraries/{library_id}/jobs/{job_id}",
|
|
18532
19297
|
"streaming": "no",
|
|
@@ -18549,7 +19314,7 @@ export const operations = [
|
|
|
18549
19314
|
"resource": "media.libraries.jobs",
|
|
18550
19315
|
"method": "cancel",
|
|
18551
19316
|
"summary": "Cancel job",
|
|
18552
|
-
"description": "
|
|
19317
|
+
"description": "Stop a generation job you no longer need, for example after the first takes of a draw show the prompt is wrong. Outputs that are queued are cancelled and never charged; outputs already produced stay in the library and stay charged. A video cannot be stopped once the provider has started generating it: the call answers 409 JOB_INVALID_STATE (details VIDEO_ALREADY_RUNNING), and that output still finishes, is saved to the library and is charged. Read the returned Job, or poll it, to see which outputs ended.",
|
|
18553
19318
|
"http": "POST",
|
|
18554
19319
|
"path": "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel",
|
|
18555
19320
|
"streaming": "no",
|
|
@@ -19067,7 +19832,7 @@ export const operations = [
|
|
|
19067
19832
|
"resource": "media.videos",
|
|
19068
19833
|
"method": "generate",
|
|
19069
19834
|
"summary": "Generate video",
|
|
19070
|
-
"description": "Generate
|
|
19835
|
+
"description": "Generate videos into a library: from a prompt, from frames, from reference pictures or videos, or by editing an existing video. {library_id} also accepts default, the organization’s default library. mode picks the anchor: text (prompt only); image (animates first_frame); first_last (between first_frame and last_frame); reference (1 to 9 references: pictures with role subject or style keep a person, product or look consistent, and video assets with role video give the camera and motion to follow; an element id expands into its pictures and description); edit (keeps the video named by source, at least 4 s, and changes what the prompt says, such as replacing its person with a subject picture; the output is as long as the source). Frames and references are assets of the same library; in the prompt call them @video1 and @image1, @image2… in request order. Read GET /media/v1/generation/capabilities first: a model takes only the modes it lists. To draw several takes of one shot and keep the best, send n (1 to 4); 480p is the cheapest way to compare takes. Charges are per output second at the model API prices and appear in the Job’s usage; a job with an input video is metered on input plus output seconds, so it costs more than the output length suggests (a 5 s edit of a 5 s source bills about 6 s); a refused or failed output costs nothing, and so does a request refused before the job starts. A real human face in a source or reference is refused by the model with CONTENT_REJECTED. Refused before any charge: output gif (OPERATION_NOT_SUPPORTED), negative_prompt, references outside reference and edit, and an unknown mode. The response is 202 with a queued Job; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} for each output’s asset and viewer_url, give viewer_url to the person and tell them usage. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice.",
|
|
19071
19836
|
"http": "POST",
|
|
19072
19837
|
"path": "/media/v1/libraries/{library_id}/videos/generations",
|
|
19073
19838
|
"streaming": "no",
|
|
@@ -19102,10 +19867,17 @@ export const operations = [
|
|
|
19102
19867
|
"text",
|
|
19103
19868
|
"image",
|
|
19104
19869
|
"first_last",
|
|
19105
|
-
"reference"
|
|
19870
|
+
"reference",
|
|
19871
|
+
"edit"
|
|
19106
19872
|
],
|
|
19107
19873
|
"required": true,
|
|
19108
|
-
"description": "What the video is anchored to. text needs only a prompt; image animates first_frame; first_last bookends first_frame and last_frame; reference keeps the pictures named in references consistent and takes no frames."
|
|
19874
|
+
"description": "What the video is anchored to. text needs only a prompt; image animates first_frame; first_last bookends first_frame and last_frame; reference keeps the pictures (and videos) named in references consistent and takes no frames; edit keeps the video named by source and changes what the prompt says, such as replacing its person with a subject picture."
|
|
19875
|
+
},
|
|
19876
|
+
{
|
|
19877
|
+
"name": "source",
|
|
19878
|
+
"type": "string",
|
|
19879
|
+
"required": false,
|
|
19880
|
+
"description": "Asset identifier returned by upload or asset listing; distinct from public_id and content hashes."
|
|
19109
19881
|
},
|
|
19110
19882
|
{
|
|
19111
19883
|
"name": "first_frame",
|
|
@@ -19124,13 +19896,13 @@ export const operations = [
|
|
|
19124
19896
|
"type": "array",
|
|
19125
19897
|
"itemType": "object",
|
|
19126
19898
|
"required": false,
|
|
19127
|
-
"description": "Existing assets the model may use, each
|
|
19899
|
+
"description": "Existing assets the model may use, each an object {\"asset_id\": \"<asset id>\", \"role\": \"subject\"} naming the asset and the role it plays; in the prompt they are @image1, @image2… in this order (videos @video1…). Required with mode reference, optional with mode edit, and refused with every other mode: 1 to 9 assets of the same library, each once. Pictures (image or sticker) take role subject (the person, product or scene to keep) or style (the look to follow); with mode reference a video asset may take role video (camera, motion and framing to follow; Doubao Seedance 2.5 takes up to 10 such videos totalling 30 s, 2.0 up to 3 totalling 15 s, each at least 2 s). With mode edit the references are pictures only, and the edited video is source. A model may accept fewer than 9 pictures; Doubao Seedance 2.0 takes up to 9. An entry may also name an element of this library (a character, product, scene or brand made with POST /media/v1/libraries/{library_id}/materials): the service replaces it with the element’s own pictures, keeping this entry’s role and strength, and appends the element’s description to the prompt; a brand adds only its description, colours and banned words and never a picture. Do not expand an element yourself. The pictures after expansion count against the limit, the same element twice is refused with INVALID_PARAMS, and the produced asset records the element and the version it used in provenance.elements. At most 9 pictures after expansion; a list of brands alone leaves no picture and is refused."
|
|
19128
19900
|
},
|
|
19129
19901
|
{
|
|
19130
19902
|
"name": "duration_seconds",
|
|
19131
19903
|
"type": "integer",
|
|
19132
19904
|
"required": false,
|
|
19133
|
-
"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."
|
|
19905
|
+
"description": "Requested video length in seconds; refused with mode edit, whose output is as long as its source. The chosen model’s supported durations are validated against it and an unsupported value is rejected with INVALID_PARAMS."
|
|
19134
19906
|
},
|
|
19135
19907
|
{
|
|
19136
19908
|
"name": "resolution",
|
|
@@ -19176,13 +19948,24 @@ export const operations = [
|
|
|
19176
19948
|
"name": "seed",
|
|
19177
19949
|
"type": "integer",
|
|
19178
19950
|
"required": false,
|
|
19179
|
-
"description": "Seed for reproducible sampling; omit it to let the model choose one."
|
|
19951
|
+
"description": "Seed for reproducible sampling, on models that take one; omit it to let the model choose. Doubao Seedance 2.x takes no seed and refuses a request that names one."
|
|
19180
19952
|
},
|
|
19181
19953
|
{
|
|
19182
19954
|
"name": "model",
|
|
19183
19955
|
"type": "string",
|
|
19184
19956
|
"required": false,
|
|
19185
|
-
"description": "Model with video-generation capability; omit it to use the library default video model."
|
|
19957
|
+
"description": "Model with video-generation capability; omit it to use the library default video model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter."
|
|
19958
|
+
},
|
|
19959
|
+
{
|
|
19960
|
+
"name": "tier",
|
|
19961
|
+
"type": "string",
|
|
19962
|
+
"enum": [
|
|
19963
|
+
"economy",
|
|
19964
|
+
"balanced",
|
|
19965
|
+
"quality"
|
|
19966
|
+
],
|
|
19967
|
+
"required": false,
|
|
19968
|
+
"description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
|
|
19186
19969
|
},
|
|
19187
19970
|
{
|
|
19188
19971
|
"name": "asset_folder",
|
|
@@ -19209,6 +19992,79 @@ export const operations = [
|
|
|
19209
19992
|
]
|
|
19210
19993
|
}
|
|
19211
19994
|
},
|
|
19995
|
+
{
|
|
19996
|
+
"resource": "media.libraries.voices",
|
|
19997
|
+
"method": "create",
|
|
19998
|
+
"summary": "Create voice",
|
|
19999
|
+
"description": "Create a voice for this library. Send exactly one of the two shapes: consent_id with samples (a real person’s recordings, a consented voice, cloned before it can speak) or design_asset_id (a preview the voice-design run produced in this library, a generated voice). A generated voice is not cloned: it is ready when the call answers, its job already completed, and it speaks only through the speech model recorded on it, so speech naming another model is refused with INVALID_PARAMS. Each preview builds at most one voice, and building one gives back the design’s other previews, which then cannot be used. Sending both shapes, or neither, is refused with INVALID_PARAMS, and origin is written by the platform only. Answers 202 with a job.",
|
|
20000
|
+
"http": "POST",
|
|
20001
|
+
"path": "/media/v1/libraries/{library_id}/voices",
|
|
20002
|
+
"streaming": "no",
|
|
20003
|
+
"pagination": false,
|
|
20004
|
+
"pathParams": [
|
|
20005
|
+
{
|
|
20006
|
+
"name": "library_id",
|
|
20007
|
+
"sdkName": "library_id",
|
|
20008
|
+
"description": "Library ID returned by creation."
|
|
20009
|
+
}
|
|
20010
|
+
],
|
|
20011
|
+
"query": [],
|
|
20012
|
+
"body": {
|
|
20013
|
+
"required": true,
|
|
20014
|
+
"fields": []
|
|
20015
|
+
}
|
|
20016
|
+
},
|
|
20017
|
+
{
|
|
20018
|
+
"resource": "media.libraries.voices.designs",
|
|
20019
|
+
"method": "create",
|
|
20020
|
+
"summary": "Design a voice",
|
|
20021
|
+
"description": "Design a voice from a text description. The model makes count preview recordings (default 3), each stored in this library as an audio asset; listen, then create a voice whose design_asset_id names the preview you chose. Send description (1 to 500 characters), preview_text (15 to 200 characters, the line each preview speaks), language (zh or en) and optionally count (1 to 3). A description that fails review fails the slot with CONTENT_REJECTED and is never retried, so changing the words is the fix. Answers 202 with a job to poll.",
|
|
20022
|
+
"http": "POST",
|
|
20023
|
+
"path": "/media/v1/libraries/{library_id}/voices/designs",
|
|
20024
|
+
"streaming": "no",
|
|
20025
|
+
"pagination": false,
|
|
20026
|
+
"pathParams": [
|
|
20027
|
+
{
|
|
20028
|
+
"name": "library_id",
|
|
20029
|
+
"sdkName": "library_id",
|
|
20030
|
+
"description": "Library ID returned by creation."
|
|
20031
|
+
}
|
|
20032
|
+
],
|
|
20033
|
+
"query": [],
|
|
20034
|
+
"body": {
|
|
20035
|
+
"required": true,
|
|
20036
|
+
"fields": [
|
|
20037
|
+
{
|
|
20038
|
+
"name": "description",
|
|
20039
|
+
"type": "string",
|
|
20040
|
+
"required": true,
|
|
20041
|
+
"description": "Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED."
|
|
20042
|
+
},
|
|
20043
|
+
{
|
|
20044
|
+
"name": "preview_text",
|
|
20045
|
+
"type": "string",
|
|
20046
|
+
"required": true,
|
|
20047
|
+
"description": "Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call."
|
|
20048
|
+
},
|
|
20049
|
+
{
|
|
20050
|
+
"name": "language",
|
|
20051
|
+
"type": "string",
|
|
20052
|
+
"enum": [
|
|
20053
|
+
"zh",
|
|
20054
|
+
"en"
|
|
20055
|
+
],
|
|
20056
|
+
"required": true,
|
|
20057
|
+
"description": "Language the previews speak: zh or en only."
|
|
20058
|
+
},
|
|
20059
|
+
{
|
|
20060
|
+
"name": "count",
|
|
20061
|
+
"type": "number",
|
|
20062
|
+
"required": false,
|
|
20063
|
+
"description": "How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset."
|
|
20064
|
+
}
|
|
20065
|
+
]
|
|
20066
|
+
}
|
|
20067
|
+
},
|
|
19212
20068
|
{
|
|
19213
20069
|
"resource": "meta.docs",
|
|
19214
20070
|
"method": "search",
|
|
@@ -19555,6 +20411,14 @@ export const operations = [
|
|
|
19555
20411
|
"pagination": false,
|
|
19556
20412
|
"pathParams": [],
|
|
19557
20413
|
"query": [],
|
|
20414
|
+
"headers": [
|
|
20415
|
+
{
|
|
20416
|
+
"name": "X-OpenRouter-Metadata",
|
|
20417
|
+
"type": "string",
|
|
20418
|
+
"required": false,
|
|
20419
|
+
"description": "OpenRouter-style request header that asks for routing metadata in the response. It is accepted for compatibility and has no effect: the routing metadata is not returned."
|
|
20420
|
+
}
|
|
20421
|
+
],
|
|
19558
20422
|
"body": {
|
|
19559
20423
|
"required": true,
|
|
19560
20424
|
"fields": [
|
|
@@ -20662,6 +21526,7 @@ export const operations = [
|
|
|
20662
21526
|
"enum": [
|
|
20663
21527
|
"anthropic.messages",
|
|
20664
21528
|
"cohere.rerank",
|
|
21529
|
+
"dashscope.voice_design",
|
|
20665
21530
|
"google.generateContent",
|
|
20666
21531
|
"mistral.ocr",
|
|
20667
21532
|
"openai.audio.speech",
|
|
@@ -21466,6 +22331,23 @@ export const operations = [
|
|
|
21466
22331
|
"required": false,
|
|
21467
22332
|
"description": "Several reference images; each entry is a URL or base64 data URL, or an object with `image_url`."
|
|
21468
22333
|
},
|
|
22334
|
+
{
|
|
22335
|
+
"name": "input_videos",
|
|
22336
|
+
"type": "array",
|
|
22337
|
+
"itemType": "object",
|
|
22338
|
+
"required": false,
|
|
22339
|
+
"description": "Platform extension (the OpenAI videos API has no input video): reference videos as HTTP(S) URLs, or objects with `video_url.url`. Only models that declare it take them (Doubao Seedance 2.5: up to 10 clips totalling 30 s; 2.0: up to 3 totalling 15 s; mp4 or mov, each 2 s or longer and at most 200 MB); any other model answers 400 `input_videos is not supported by this model.` They combine with `input_references` but not with `frame_images` or `input_reference`. In the prompt, name them `@video1`, `@video2`… and the pictures `@image1`, `@image2`… in request order. A clip showing a real human face is refused by the model."
|
|
22340
|
+
},
|
|
22341
|
+
{
|
|
22342
|
+
"name": "video_task",
|
|
22343
|
+
"type": "string",
|
|
22344
|
+
"enum": [
|
|
22345
|
+
"reference",
|
|
22346
|
+
"edit"
|
|
22347
|
+
],
|
|
22348
|
+
"required": false,
|
|
22349
|
+
"description": "Platform extension, only with input_videos: reference (default) makes a new video that follows the inputs; edit keeps the first video and changes what the prompt names, with the source's ratio and length (send no seconds or size; source 4 to 30 s)."
|
|
22350
|
+
},
|
|
21469
22351
|
{
|
|
21470
22352
|
"name": "frame_images",
|
|
21471
22353
|
"type": "array",
|
|
@@ -22654,11 +23536,46 @@ export const operations = [
|
|
|
22654
23536
|
],
|
|
22655
23537
|
"query": []
|
|
22656
23538
|
},
|
|
23539
|
+
{
|
|
23540
|
+
"resource": "organization.effectiveSpec",
|
|
23541
|
+
"method": "retrieve",
|
|
23542
|
+
"summary": "Read the effective spec",
|
|
23543
|
+
"description": "Merges the spec chain of a seat or an actor and returns the one effective configuration: the merged capability blocks, the document of every layer, where each merged value came from, and anything only the merged result shows to be wrong. Give exactly one of actor (every seat the actor holds) or position_id (one seat, held or vacant, a preview before hiring); holder_kind defaults from the seat's holder. Read-only; nothing is changed. Errors: 400 INVALID_PARAMS when neither or both of actor and position_id are given, the actor address is malformed, holder_kind is neither agent nor human, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 POSITION_NOT_FOUND. Example: GET /organization/v1/effective_spec?actor=agent:agent_123.",
|
|
23544
|
+
"http": "GET",
|
|
23545
|
+
"path": "/organization/v1/effective_spec",
|
|
23546
|
+
"streaming": "no",
|
|
23547
|
+
"pagination": false,
|
|
23548
|
+
"pathParams": [],
|
|
23549
|
+
"query": [
|
|
23550
|
+
{
|
|
23551
|
+
"name": "actor",
|
|
23552
|
+
"type": "string",
|
|
23553
|
+
"required": false,
|
|
23554
|
+
"description": "Actor address whose every current seat is merged (agent:agent_... or human:usr_...); give this or position_id, not both."
|
|
23555
|
+
},
|
|
23556
|
+
{
|
|
23557
|
+
"name": "position_id",
|
|
23558
|
+
"type": "string",
|
|
23559
|
+
"required": false,
|
|
23560
|
+
"description": "One seat to merge, held or vacant (pos_...); give this or actor, not both."
|
|
23561
|
+
},
|
|
23562
|
+
{
|
|
23563
|
+
"name": "holder_kind",
|
|
23564
|
+
"type": "string",
|
|
23565
|
+
"enum": [
|
|
23566
|
+
"agent",
|
|
23567
|
+
"human"
|
|
23568
|
+
],
|
|
23569
|
+
"required": false,
|
|
23570
|
+
"description": "Which holder kind to merge for; omit to derive it from the seat's holder."
|
|
23571
|
+
}
|
|
23572
|
+
]
|
|
23573
|
+
},
|
|
22657
23574
|
{
|
|
22658
23575
|
"resource": "organization.events",
|
|
22659
23576
|
"method": "list",
|
|
22660
23577
|
"summary": "List Organization Usage Events",
|
|
22661
|
-
"description": "Usage events newest first, one opaque cursor page at a time; a page never duplicates or skips an event. Every item carries its metering lines (meter, display name, consumed quantity and unit, mapped from the billing measurements); the per-line price split (list unit price, pricing unit, billed cost) rides only the single event — fetch /organization/v1/events/{id} for it.\n",
|
|
23578
|
+
"description": "Usage events newest first by occurrence time (occurred_at, when the usage happened), one opaque cursor page at a time; a page never duplicates or skips an event. Every item carries its metering lines (meter, display name, consumed quantity and unit, mapped from the billing measurements); the per-line price split (list unit price, pricing unit, billed cost) rides only the single event — fetch /organization/v1/events/{id} for it. A cursor belongs to the order it was issued under: one obtained before this occurrence-time ordering, or used under the other sort direction, is refused with 400 INVALID_PARAMS instead of being reused — restart the listing.\n",
|
|
22662
23579
|
"http": "GET",
|
|
22663
23580
|
"path": "/organization/v1/events",
|
|
22664
23581
|
"streaming": "no",
|
|
@@ -22819,10 +23736,11 @@ export const operations = [
|
|
|
22819
23736
|
"type": "string",
|
|
22820
23737
|
"enum": [
|
|
22821
23738
|
"console",
|
|
22822
|
-
"api"
|
|
23739
|
+
"api",
|
|
23740
|
+
"codemode"
|
|
22823
23741
|
],
|
|
22824
23742
|
"required": false,
|
|
22825
|
-
"description": "Use console for Console reports or api for API callers (default)
|
|
23743
|
+
"description": "Use console for Console reports or api for API callers (default). Machine tokens always store codemode regardless of this value and may send codemode; any other caller that sends codemode is refused."
|
|
22826
23744
|
},
|
|
22827
23745
|
{
|
|
22828
23746
|
"name": "attachments",
|
|
@@ -24001,7 +24919,7 @@ export const operations = [
|
|
|
24001
24919
|
"resource": "organization.positions.hire",
|
|
24002
24920
|
"method": "create",
|
|
24003
24921
|
"summary": "Hire into a position",
|
|
24004
|
-
"description": "Seats an existing member or agent in a vacant position; use it to fill a position that nobody holds, and use replace_holder to swap the current holder in one step. An actor is a person (human:usr_...) or an agent (agent:agent_...), treated identically, and must exist in your organization and not be archived. The position must be active and vacant, and a position has at most one active assignment. An actor may hold several positions, and exactly one of its active assignments is primary: omit primary to make the first assignment primary and later ones concurrent; primary true makes this one primary and turns the previous primary into a concurrent one; primary false for an actor that holds nothing is refused. request_id makes the call idempotent: repeating it returns the first assignment and seats nobody else. Requires an organization owner or admin, or the head of the position's department or of a department above it. Errors: 400 INVALID_PARAMS for a missing request_id, a candidate.kind other than member, an empty candidate.actor, a non-boolean primary or an unknown body field; 403 PERMISSION_DENIED; 404 POSITION_NOT_FOUND; 404 ACTOR_NOT_FOUND when the actor is not an active member or agent of your organization; 409 POSITION_FROZEN, POSITION_CLOSED or POSITION_OCCUPIED; 409 PRIMARY_ASSIGNMENT_REQUIRED for primary false on an actor that holds nothing. Example body: {\"candidate\":{\"kind\":\"member\",\"actor\":\"human:usr_123\"},\"request_id\":\"hire-support-1\"}.",
|
|
24922
|
+
"description": "Seats an existing member or agent in a vacant position; use it to fill a position that nobody holds, and use replace_holder to swap the current holder in one step. An actor is a person (human:usr_...) or an agent (agent:agent_...), treated identically, and must exist in your organization and not be archived. An agent created moments ago may not be in the organization roster yet (agents enter it asynchronously): that answers 503 ACTOR_SYNCING with a Retry-After header and retryable true, and the same call succeeds after that wait. The position must be active and vacant, and a position has at most one active assignment. An actor may hold several positions, and exactly one of its active assignments is primary: omit primary to make the first assignment primary and later ones concurrent; primary true makes this one primary and turns the previous primary into a concurrent one; primary false for an actor that holds nothing is refused. request_id makes the call idempotent: repeating it returns the first assignment and seats nobody else. Requires an organization owner or admin, or the head of the position's department or of a department above it. Errors: 400 INVALID_PARAMS for a missing request_id, a candidate.kind other than member, an empty candidate.actor, a non-boolean primary or an unknown body field; 403 PERMISSION_DENIED; 404 POSITION_NOT_FOUND; 404 ACTOR_NOT_FOUND when the actor is not an active member or agent of your organization; 409 POSITION_FROZEN, POSITION_CLOSED or POSITION_OCCUPIED; 409 PRIMARY_ASSIGNMENT_REQUIRED for primary false on an actor that holds nothing. Example body: {\"candidate\":{\"kind\":\"member\",\"actor\":\"human:usr_123\"},\"request_id\":\"hire-support-1\"}.",
|
|
24005
24923
|
"http": "POST",
|
|
24006
24924
|
"path": "/organization/v1/positions/{id}/hire",
|
|
24007
24925
|
"streaming": "no",
|
|
@@ -24150,119 +25068,710 @@ export const operations = [
|
|
|
24150
25068
|
"query": []
|
|
24151
25069
|
},
|
|
24152
25070
|
{
|
|
24153
|
-
"resource": "organization.
|
|
24154
|
-
"method": "
|
|
24155
|
-
"summary": "
|
|
24156
|
-
"description": "
|
|
25071
|
+
"resource": "organization.reconcile",
|
|
25072
|
+
"method": "pause",
|
|
25073
|
+
"summary": "Pause reconciliation",
|
|
25074
|
+
"description": "Stops the sweep from reconciling one holder until it is resumed: the holder's blocks keep their state and no further update is applied. Requires an organization owner or admin. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a body field is unknown; 403 PERMISSION_DENIED. Example body: {\"actor\":\"agent:agent_123\"}.",
|
|
25075
|
+
"http": "POST",
|
|
25076
|
+
"path": "/organization/v1/reconcile/pause",
|
|
25077
|
+
"streaming": "no",
|
|
25078
|
+
"pagination": false,
|
|
25079
|
+
"pathParams": [],
|
|
25080
|
+
"query": [],
|
|
25081
|
+
"body": {
|
|
25082
|
+
"required": true,
|
|
25083
|
+
"fields": [
|
|
25084
|
+
{
|
|
25085
|
+
"name": "actor",
|
|
25086
|
+
"type": "string",
|
|
25087
|
+
"required": true,
|
|
25088
|
+
"description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
|
|
25089
|
+
}
|
|
25090
|
+
]
|
|
25091
|
+
}
|
|
25092
|
+
},
|
|
25093
|
+
{
|
|
25094
|
+
"resource": "organization.reconcile",
|
|
25095
|
+
"method": "retrievePlan",
|
|
25096
|
+
"summary": "Plan reconciliation",
|
|
25097
|
+
"description": "Dry-runs the reconciler for one holder and returns what it would change: an action per block (hold, update, none, pending, blocked) with the value it would write, and the violations only the merged result shows. It changes nothing - no state, no agent and no memory. Give the holder as actor. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/reconcile/plan?actor=agent:agent_123.",
|
|
24157
25098
|
"http": "GET",
|
|
24158
|
-
"path": "/organization/v1/
|
|
25099
|
+
"path": "/organization/v1/reconcile/plan",
|
|
24159
25100
|
"streaming": "no",
|
|
24160
25101
|
"pagination": false,
|
|
24161
25102
|
"pathParams": [],
|
|
24162
25103
|
"query": [
|
|
24163
25104
|
{
|
|
24164
|
-
"name": "
|
|
24165
|
-
"type": "string",
|
|
24166
|
-
"required": true,
|
|
24167
|
-
"description": "Window start, UTC ISO 8601, inclusive."
|
|
24168
|
-
},
|
|
24169
|
-
{
|
|
24170
|
-
"name": "ending_at",
|
|
24171
|
-
"type": "string",
|
|
24172
|
-
"required": true,
|
|
24173
|
-
"description": "Window end, UTC ISO 8601, exclusive. At most 93 days after starting_at."
|
|
24174
|
-
},
|
|
24175
|
-
{
|
|
24176
|
-
"name": "bucket_width",
|
|
25105
|
+
"name": "actor",
|
|
24177
25106
|
"type": "string",
|
|
24178
|
-
"enum": [
|
|
24179
|
-
"1h",
|
|
24180
|
-
"1d"
|
|
24181
|
-
],
|
|
24182
25107
|
"required": true,
|
|
24183
|
-
"description": "
|
|
24184
|
-
},
|
|
24185
|
-
{
|
|
24186
|
-
"name": "time_zone",
|
|
24187
|
-
"type": "string",
|
|
24188
|
-
"required": false,
|
|
24189
|
-
"description": "IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.\n"
|
|
24190
|
-
},
|
|
24191
|
-
{
|
|
24192
|
-
"name": "group_by",
|
|
24193
|
-
"type": "array",
|
|
24194
|
-
"itemType": "string",
|
|
24195
|
-
"enum": [
|
|
24196
|
-
"ServiceName",
|
|
24197
|
-
"ServiceCategory",
|
|
24198
|
-
"ResourceId",
|
|
24199
|
-
"ConsumedUnit"
|
|
24200
|
-
],
|
|
24201
|
-
"required": false,
|
|
24202
|
-
"description": "FOCUS columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).\n"
|
|
24203
|
-
},
|
|
24204
|
-
{
|
|
24205
|
-
"name": "page",
|
|
24206
|
-
"type": "string",
|
|
24207
|
-
"required": false,
|
|
24208
|
-
"description": "Opaque cursor from the previous page's next_page."
|
|
25108
|
+
"description": "The holder whose seats are reconciled (agent:agent_... or human:usr_...); its every current seat is merged."
|
|
24209
25109
|
}
|
|
24210
25110
|
]
|
|
24211
25111
|
},
|
|
24212
25112
|
{
|
|
24213
|
-
"resource": "
|
|
24214
|
-
"method": "
|
|
24215
|
-
"summary": "
|
|
24216
|
-
"description": "
|
|
24217
|
-
"http": "
|
|
24218
|
-
"path": "/
|
|
25113
|
+
"resource": "organization.reconcile",
|
|
25114
|
+
"method": "resume",
|
|
25115
|
+
"summary": "Resume reconciliation",
|
|
25116
|
+
"description": "Restarts the sweep for a paused holder and reconciles it now, returning the new status. Requires an organization owner or admin. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a body field is unknown; 403 PERMISSION_DENIED. Example body: {\"actor\":\"agent:agent_123\"}.",
|
|
25117
|
+
"http": "POST",
|
|
25118
|
+
"path": "/organization/v1/reconcile/resume",
|
|
24219
25119
|
"streaming": "no",
|
|
24220
25120
|
"pagination": false,
|
|
24221
|
-
"pathParams": [
|
|
24222
|
-
|
|
24223
|
-
|
|
24224
|
-
|
|
24225
|
-
|
|
25121
|
+
"pathParams": [],
|
|
25122
|
+
"query": [],
|
|
25123
|
+
"body": {
|
|
25124
|
+
"required": true,
|
|
25125
|
+
"fields": [
|
|
25126
|
+
{
|
|
25127
|
+
"name": "actor",
|
|
25128
|
+
"type": "string",
|
|
25129
|
+
"required": true,
|
|
25130
|
+
"description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
|
|
25131
|
+
}
|
|
25132
|
+
]
|
|
25133
|
+
}
|
|
25134
|
+
},
|
|
25135
|
+
{
|
|
25136
|
+
"resource": "organization.reconcile.run",
|
|
25137
|
+
"method": "create",
|
|
25138
|
+
"summary": "Run reconciliation now",
|
|
25139
|
+
"description": "Reconciles one holder now instead of waiting for the sweep: it plans, applies every update and returns the new status. Run plan first to see the changes without applying them. Requires an organization owner or admin. A block that cannot be applied now stays pending, waiting_human or failed, and the returned status says so. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a body field is unknown; 403 PERMISSION_DENIED. Example body: {\"actor\":\"agent:agent_123\"}.",
|
|
25140
|
+
"http": "POST",
|
|
25141
|
+
"path": "/organization/v1/reconcile/run",
|
|
25142
|
+
"streaming": "no",
|
|
25143
|
+
"pagination": false,
|
|
25144
|
+
"pathParams": [],
|
|
25145
|
+
"query": [],
|
|
25146
|
+
"body": {
|
|
25147
|
+
"required": true,
|
|
25148
|
+
"fields": [
|
|
25149
|
+
{
|
|
25150
|
+
"name": "actor",
|
|
25151
|
+
"type": "string",
|
|
25152
|
+
"required": true,
|
|
25153
|
+
"description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
|
|
25154
|
+
}
|
|
25155
|
+
]
|
|
25156
|
+
}
|
|
25157
|
+
},
|
|
25158
|
+
{
|
|
25159
|
+
"resource": "organization.reconcile.status",
|
|
25160
|
+
"method": "list",
|
|
25161
|
+
"summary": "Read reconcile status",
|
|
25162
|
+
"description": "Reads the reconciler's last result for one holder: whether the sweep is paused, the seats and layer revisions of the last applied run, each block's state (ready, pending, failed, waiting_human or paused), the drift between what is applied and what the specs want, and when it last applied. Read-only; it changes nothing. Give the holder as actor. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/reconcile/status?actor=agent:agent_123.",
|
|
25163
|
+
"http": "GET",
|
|
25164
|
+
"path": "/organization/v1/reconcile/status",
|
|
25165
|
+
"streaming": "no",
|
|
25166
|
+
"pagination": false,
|
|
25167
|
+
"pathParams": [],
|
|
25168
|
+
"query": [
|
|
25169
|
+
{
|
|
25170
|
+
"name": "actor",
|
|
25171
|
+
"type": "string",
|
|
25172
|
+
"required": true,
|
|
25173
|
+
"description": "The holder whose reconcile status to read (agent:agent_... or human:usr_...)."
|
|
25174
|
+
}
|
|
25175
|
+
]
|
|
25176
|
+
},
|
|
25177
|
+
{
|
|
25178
|
+
"resource": "organization.specSchema",
|
|
25179
|
+
"method": "retrieve",
|
|
25180
|
+
"summary": "Read the spec schema",
|
|
25181
|
+
"description": "Returns the JSON Schema (draft 2020-12) of a spec body, generated from the block registry: document, provision, every block and field under provision, and remove. Each field carries x-praxis-merge (single, set, keyed or layered), x-praxis-merge-key for a set, x-praxis-holders on a block (agent, human), and x-praxis-applied (whether reconcile applies it today), plus a Chinese title and an English description. Read it before writing a spec so a block or field is never guessed. The body is the schema itself, returned without any key renamed. Read-only. Errors: 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/spec_schema.",
|
|
25182
|
+
"http": "GET",
|
|
25183
|
+
"path": "/organization/v1/spec_schema",
|
|
25184
|
+
"streaming": "no",
|
|
25185
|
+
"pagination": false,
|
|
25186
|
+
"pathParams": [],
|
|
25187
|
+
"query": []
|
|
25188
|
+
},
|
|
25189
|
+
{
|
|
25190
|
+
"resource": "organization.specs",
|
|
25191
|
+
"method": "list",
|
|
25192
|
+
"summary": "List specs",
|
|
25193
|
+
"description": "Lists the specs (规定) of the organization in the organization/v1 envelope (api_version, kind, metadata, spec; status is null in a list); use it to find which subject already has a spec before reading or revising one. Narrow it with kind. Filters combine with AND. Pass next_page unchanged as page; null means the end. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter, an unknown kind, a limit outside 1 to 100 or a stale cursor; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/specs?kind=job.",
|
|
25194
|
+
"http": "GET",
|
|
25195
|
+
"path": "/organization/v1/specs",
|
|
25196
|
+
"streaming": "no",
|
|
25197
|
+
"pagination": false,
|
|
25198
|
+
"pathParams": [],
|
|
25199
|
+
"query": [
|
|
25200
|
+
{
|
|
25201
|
+
"name": "limit",
|
|
25202
|
+
"type": "integer",
|
|
25203
|
+
"required": false,
|
|
25204
|
+
"description": "Maximum items per page, from 1 to 100; defaults to 20."
|
|
25205
|
+
},
|
|
25206
|
+
{
|
|
25207
|
+
"name": "page",
|
|
25208
|
+
"type": "string",
|
|
25209
|
+
"required": false,
|
|
25210
|
+
"description": "Opaque next_page cursor returned by the previous response; omit for the first page."
|
|
25211
|
+
},
|
|
25212
|
+
{
|
|
25213
|
+
"name": "kind",
|
|
25214
|
+
"type": "string",
|
|
25215
|
+
"enum": [
|
|
25216
|
+
"organization",
|
|
25217
|
+
"department",
|
|
25218
|
+
"level",
|
|
25219
|
+
"job",
|
|
25220
|
+
"position",
|
|
25221
|
+
"assignment"
|
|
25222
|
+
],
|
|
25223
|
+
"required": false,
|
|
25224
|
+
"description": "Only specs of this subject kind; omit to list every kind together."
|
|
25225
|
+
}
|
|
25226
|
+
]
|
|
25227
|
+
},
|
|
25228
|
+
{
|
|
25229
|
+
"resource": "organization.specs",
|
|
25230
|
+
"method": "retrieve",
|
|
25231
|
+
"summary": "Get a spec",
|
|
25232
|
+
"description": "Reads one subject's spec in the organization/v1 envelope: metadata (id, name, revision, labels, annotations, change_note, update_time, updated_by), spec ({ document, provision }) and status (how many holders last reconciled on it, how many are ready and how many have a failed block). revision reads one historical revision instead, with status null. A subject never written answers revision 0 with an empty spec, so a first revise sends metadata.revision 0. Read-only. Errors: 400 INVALID_PARAMS for a non-integer revision; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject, or the named SPEC_REVISION_NOT_FOUND, does not exist. Example: GET /organization/v1/specs/job/jpr_123?revision=2.",
|
|
25233
|
+
"http": "GET",
|
|
25234
|
+
"path": "/organization/v1/specs/{kind}/{id}",
|
|
25235
|
+
"streaming": "no",
|
|
25236
|
+
"pagination": false,
|
|
25237
|
+
"pathParams": [
|
|
25238
|
+
{
|
|
25239
|
+
"name": "kind",
|
|
25240
|
+
"sdkName": "kind",
|
|
25241
|
+
"description": "Kind of the subject whose spec to read."
|
|
25242
|
+
},
|
|
25243
|
+
{
|
|
25244
|
+
"name": "id",
|
|
25245
|
+
"sdkName": "id",
|
|
25246
|
+
"description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
|
|
25247
|
+
}
|
|
25248
|
+
],
|
|
25249
|
+
"query": [
|
|
25250
|
+
{
|
|
25251
|
+
"name": "revision",
|
|
25252
|
+
"type": "integer",
|
|
25253
|
+
"required": false,
|
|
25254
|
+
"description": "Read this historical revision instead of the live one; 0 answers the empty spec of a subject never written."
|
|
25255
|
+
}
|
|
25256
|
+
]
|
|
25257
|
+
},
|
|
25258
|
+
{
|
|
25259
|
+
"resource": "organization.specs",
|
|
25260
|
+
"method": "update",
|
|
25261
|
+
"summary": "Revise a spec",
|
|
25262
|
+
"description": "Replaces the whole spec of a subject: metadata.revision is the revision you last read (0 when none was written) and each success raises it by one, so a mismatch returns REVISION_CONFLICT and you must read again, merge and retry. The spec is { document, provision }: document is Markdown text injected into the holder's memory and never merged, provision holds the capability blocks and remove; GET /organization/v1/spec_schema returns the JSON Schema of every block, and a block outside it is refused with its path. labels and annotations carry over from the previous revision when omitted; change_note belongs to this revision only. Other metadata fields you read back (id, name, update_time, updated_by) are accepted and ignored. dry_run=true checks everything and writes nothing: it answers the spec that would be written, the changes against the live one and the reconcile plan of every affected holder in office (at most 50, plans_truncated says more exist). Requires an organization owner or admin, or the head of the subject's department. Errors: 400 INVALID_PARAMS for a missing spec or metadata.revision, an api_version other than organization/v1, labels or annotations over their limits, a block outside the registry or an unknown body field; 403 PERMISSION_DENIED; 404 when the subject does not exist; 409 REVISION_CONFLICT. Example body: {\"metadata\":{\"revision\":0,\"change_note\":\"first charter\"},\"spec\":{\"document\":\"Deliver reliably.\",\"provision\":{\"computer\":{\"template\":\"base\"}}}}.",
|
|
25263
|
+
"http": "PUT",
|
|
25264
|
+
"path": "/organization/v1/specs/{kind}/{id}",
|
|
25265
|
+
"streaming": "no",
|
|
25266
|
+
"pagination": false,
|
|
25267
|
+
"pathParams": [
|
|
25268
|
+
{
|
|
25269
|
+
"name": "kind",
|
|
25270
|
+
"sdkName": "kind",
|
|
25271
|
+
"description": "Kind of the subject whose spec to revise."
|
|
25272
|
+
},
|
|
25273
|
+
{
|
|
25274
|
+
"name": "id",
|
|
25275
|
+
"sdkName": "id",
|
|
25276
|
+
"description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
|
|
25277
|
+
}
|
|
25278
|
+
],
|
|
25279
|
+
"query": [
|
|
25280
|
+
{
|
|
25281
|
+
"name": "dry_run",
|
|
25282
|
+
"type": "boolean",
|
|
25283
|
+
"required": false,
|
|
25284
|
+
"description": "true checks everything and writes nothing, answering the preview; false or omitted writes."
|
|
25285
|
+
}
|
|
25286
|
+
],
|
|
25287
|
+
"body": {
|
|
25288
|
+
"required": true,
|
|
25289
|
+
"fields": [
|
|
25290
|
+
{
|
|
25291
|
+
"name": "api_version",
|
|
25292
|
+
"type": "string",
|
|
25293
|
+
"enum": [
|
|
25294
|
+
"organization/v1"
|
|
25295
|
+
],
|
|
25296
|
+
"required": false,
|
|
25297
|
+
"description": "The language of the envelope; omit it or send organization/v1, anything else is refused."
|
|
25298
|
+
},
|
|
25299
|
+
{
|
|
25300
|
+
"name": "metadata",
|
|
25301
|
+
"type": "object",
|
|
25302
|
+
"required": true,
|
|
25303
|
+
"description": "The revision you read and the labels, annotations and note of this revision. Other fields of a read metadata (id, name, update_time, updated_by) may be sent back and are ignored."
|
|
25304
|
+
},
|
|
25305
|
+
{
|
|
25306
|
+
"name": "spec",
|
|
25307
|
+
"type": "object",
|
|
25308
|
+
"required": true,
|
|
25309
|
+
"description": "What a unit says. Only document and provision are accepted; everything else is refused with its path."
|
|
25310
|
+
}
|
|
25311
|
+
]
|
|
25312
|
+
}
|
|
25313
|
+
},
|
|
25314
|
+
{
|
|
25315
|
+
"resource": "organization.specs",
|
|
25316
|
+
"method": "retrieveDiff",
|
|
25317
|
+
"summary": "Diff two spec revisions",
|
|
25318
|
+
"description": "Compares two revisions of one subject's spec and lists the changes between them, each with its path and, for a change, the value before and after; revision 0 is the empty spec, so diffing 0 against 1 shows the first write. Read-only. Errors: 400 INVALID_PARAMS when from or to is missing or not an integer; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject does not exist, or SPEC_REVISION_NOT_FOUND when from or to was never written. Example: GET /organization/v1/specs/job/jpr_123/diff?from=1&to=2.",
|
|
25319
|
+
"http": "GET",
|
|
25320
|
+
"path": "/organization/v1/specs/{kind}/{id}/diff",
|
|
25321
|
+
"streaming": "no",
|
|
25322
|
+
"pagination": false,
|
|
25323
|
+
"pathParams": [
|
|
25324
|
+
{
|
|
25325
|
+
"name": "kind",
|
|
25326
|
+
"sdkName": "kind",
|
|
25327
|
+
"description": "Kind of the subject whose revisions to compare."
|
|
25328
|
+
},
|
|
25329
|
+
{
|
|
25330
|
+
"name": "id",
|
|
25331
|
+
"sdkName": "id",
|
|
25332
|
+
"description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
|
|
25333
|
+
}
|
|
25334
|
+
],
|
|
25335
|
+
"query": [
|
|
25336
|
+
{
|
|
25337
|
+
"name": "from",
|
|
25338
|
+
"type": "integer",
|
|
25339
|
+
"required": true,
|
|
25340
|
+
"description": "The earlier revision to compare from; 0 is the empty spec before the first write."
|
|
25341
|
+
},
|
|
25342
|
+
{
|
|
25343
|
+
"name": "to",
|
|
25344
|
+
"type": "integer",
|
|
25345
|
+
"required": true,
|
|
25346
|
+
"description": "The later revision to compare to."
|
|
25347
|
+
}
|
|
25348
|
+
]
|
|
25349
|
+
},
|
|
25350
|
+
{
|
|
25351
|
+
"resource": "organization.specs.revisions",
|
|
25352
|
+
"method": "list",
|
|
25353
|
+
"summary": "List spec revisions",
|
|
25354
|
+
"description": "Lists every stored revision of one subject's spec, newest first, each with its body, author and creation instant; use it to see what changed over time or to pick a revision to read or diff. Pass next_page unchanged as page; null means the end. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter, a limit outside 1 to 100 or a stale cursor; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject does not exist.",
|
|
25355
|
+
"http": "GET",
|
|
25356
|
+
"path": "/organization/v1/specs/{kind}/{id}/revisions",
|
|
25357
|
+
"streaming": "no",
|
|
25358
|
+
"pagination": false,
|
|
25359
|
+
"pathParams": [
|
|
25360
|
+
{
|
|
25361
|
+
"name": "kind",
|
|
25362
|
+
"sdkName": "kind",
|
|
25363
|
+
"description": "Kind of the subject whose revision history to list."
|
|
25364
|
+
},
|
|
25365
|
+
{
|
|
25366
|
+
"name": "id",
|
|
25367
|
+
"sdkName": "id",
|
|
25368
|
+
"description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
|
|
25369
|
+
}
|
|
25370
|
+
],
|
|
25371
|
+
"query": [
|
|
25372
|
+
{
|
|
25373
|
+
"name": "limit",
|
|
25374
|
+
"type": "integer",
|
|
25375
|
+
"required": false,
|
|
25376
|
+
"description": "Maximum revisions per page, from 1 to 100; defaults to 20."
|
|
25377
|
+
},
|
|
25378
|
+
{
|
|
25379
|
+
"name": "page",
|
|
25380
|
+
"type": "string",
|
|
25381
|
+
"required": false,
|
|
25382
|
+
"description": "Opaque next_page cursor returned by the previous response; omit for the first page."
|
|
25383
|
+
}
|
|
25384
|
+
]
|
|
25385
|
+
},
|
|
25386
|
+
{
|
|
25387
|
+
"resource": "organization.usage",
|
|
25388
|
+
"method": "list",
|
|
25389
|
+
"summary": "List Organization Usage",
|
|
25390
|
+
"description": "Consumed quantity per time bucket per group. Buckets are whole UTC hour/day periods covering the requested window. Each result carries exactly one ConsumedQuantity + ConsumedUnit — quantities of different units are never added together.\n",
|
|
25391
|
+
"http": "GET",
|
|
25392
|
+
"path": "/organization/v1/usage",
|
|
25393
|
+
"streaming": "no",
|
|
25394
|
+
"pagination": false,
|
|
25395
|
+
"pathParams": [],
|
|
25396
|
+
"query": [
|
|
25397
|
+
{
|
|
25398
|
+
"name": "starting_at",
|
|
25399
|
+
"type": "string",
|
|
25400
|
+
"required": true,
|
|
25401
|
+
"description": "Window start, UTC ISO 8601, inclusive."
|
|
25402
|
+
},
|
|
25403
|
+
{
|
|
25404
|
+
"name": "ending_at",
|
|
25405
|
+
"type": "string",
|
|
25406
|
+
"required": true,
|
|
25407
|
+
"description": "Window end, UTC ISO 8601, exclusive. At most 93 days after starting_at."
|
|
25408
|
+
},
|
|
25409
|
+
{
|
|
25410
|
+
"name": "bucket_width",
|
|
25411
|
+
"type": "string",
|
|
25412
|
+
"enum": [
|
|
25413
|
+
"1h",
|
|
25414
|
+
"1d"
|
|
25415
|
+
],
|
|
25416
|
+
"required": true,
|
|
25417
|
+
"description": "Length of each time bucket: 1h for hours or 1d for days, both aligned to whole UTC periods (or to local hours and days when time_zone is set)."
|
|
25418
|
+
},
|
|
25419
|
+
{
|
|
25420
|
+
"name": "time_zone",
|
|
25421
|
+
"type": "string",
|
|
25422
|
+
"required": false,
|
|
25423
|
+
"description": "IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.\n"
|
|
25424
|
+
},
|
|
25425
|
+
{
|
|
25426
|
+
"name": "group_by",
|
|
25427
|
+
"type": "array",
|
|
25428
|
+
"itemType": "string",
|
|
25429
|
+
"enum": [
|
|
25430
|
+
"ServiceName",
|
|
25431
|
+
"ServiceCategory",
|
|
25432
|
+
"ResourceId",
|
|
25433
|
+
"ConsumedUnit"
|
|
25434
|
+
],
|
|
25435
|
+
"required": false,
|
|
25436
|
+
"description": "FOCUS columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).\n"
|
|
25437
|
+
},
|
|
25438
|
+
{
|
|
25439
|
+
"name": "page",
|
|
25440
|
+
"type": "string",
|
|
25441
|
+
"required": false,
|
|
25442
|
+
"description": "Opaque cursor from the previous page's next_page."
|
|
25443
|
+
}
|
|
25444
|
+
]
|
|
25445
|
+
},
|
|
25446
|
+
{
|
|
25447
|
+
"resource": "registry.installations",
|
|
25448
|
+
"method": "delete",
|
|
25449
|
+
"summary": "Remove an installation",
|
|
25450
|
+
"description": "把包从目标上卸下来,并删掉这条安装记录:技能从智能体的技能列表里移除,插件从电脑上卸载。目标那边已经没有它时也算完成。包本身和它的版本不受影响,之后可以重新安装。记录删除后重发会 404,所以删除前先用 installations.list 确认。",
|
|
25451
|
+
"http": "DELETE",
|
|
25452
|
+
"path": "/registry/v1/installations/{installation_id}",
|
|
25453
|
+
"streaming": "no",
|
|
25454
|
+
"pagination": false,
|
|
25455
|
+
"pathParams": [
|
|
25456
|
+
{
|
|
25457
|
+
"name": "installation_id",
|
|
25458
|
+
"sdkName": "installation_id",
|
|
25459
|
+
"description": "安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。"
|
|
25460
|
+
}
|
|
25461
|
+
],
|
|
25462
|
+
"query": []
|
|
25463
|
+
},
|
|
25464
|
+
{
|
|
25465
|
+
"resource": "registry.installations",
|
|
25466
|
+
"method": "update",
|
|
25467
|
+
"summary": "Update an installation",
|
|
25468
|
+
"description": "把一条安装记录换到另一个版本。技能可以换到任何未撤回的版本(升级或回退),version 省略时换到最新版;插件只能换到库里的最新版本,version 给了也必须等于最新版。撤回的版本不能换过去。对账为 missing 的记录用它可以重新装回去。同名冲突和 20 个技能上限的规则与安装时相同。",
|
|
25469
|
+
"http": "POST",
|
|
25470
|
+
"path": "/registry/v1/installations/{installation_id}:update",
|
|
25471
|
+
"streaming": "no",
|
|
25472
|
+
"pagination": false,
|
|
25473
|
+
"pathParams": [
|
|
25474
|
+
{
|
|
25475
|
+
"name": "installation_id",
|
|
25476
|
+
"sdkName": "installation_id",
|
|
25477
|
+
"description": "安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。"
|
|
25478
|
+
}
|
|
25479
|
+
],
|
|
25480
|
+
"query": [],
|
|
25481
|
+
"body": {
|
|
25482
|
+
"required": true,
|
|
25483
|
+
"fields": [
|
|
25484
|
+
{
|
|
25485
|
+
"name": "version",
|
|
25486
|
+
"type": "string",
|
|
25487
|
+
"required": false,
|
|
25488
|
+
"description": "要换到的版本号,完整 semver;省略时换到最新版;插件给了也必须等于最新版,撤回的版本不能换。"
|
|
25489
|
+
}
|
|
25490
|
+
]
|
|
25491
|
+
}
|
|
25492
|
+
},
|
|
25493
|
+
{
|
|
25494
|
+
"resource": "registry.packages",
|
|
25495
|
+
"method": "retrieve",
|
|
25496
|
+
"summary": "Retrieve package",
|
|
25497
|
+
"description": "读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404。软删期间这个包一律 404,恢复后才重新出现。",
|
|
25498
|
+
"http": "GET",
|
|
25499
|
+
"path": "/registry/v1/packages/{package_id}",
|
|
25500
|
+
"streaming": "no",
|
|
25501
|
+
"pagination": false,
|
|
25502
|
+
"pathParams": [
|
|
25503
|
+
{
|
|
25504
|
+
"name": "package_id",
|
|
25505
|
+
"sdkName": "package_id",
|
|
25506
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25507
|
+
}
|
|
25508
|
+
],
|
|
25509
|
+
"query": []
|
|
25510
|
+
},
|
|
25511
|
+
{
|
|
25512
|
+
"resource": "registry.packages.gitCredential",
|
|
25513
|
+
"method": "create",
|
|
25514
|
+
"summary": "Create a git credential",
|
|
25515
|
+
"description": "给一个 git 包换一个短期的 git 凭据,用来 git clone / git push。access 选 pull(只读,用来克隆和拉取)或 push(推分支,同时可以克隆和拉取)。push-protected(更新受保护分支)暂不发放,请推到别的分支再合并,请求它返回 400。ttl_seconds 是有效秒数,1-3600,默认 3600;到期后重新调用本接口,不要缓存过期的凭据。返回的 password 是敏感信息,只出现这一次,不要写进日志或提交。用法:git clone https://x-access-token:$PASSWORD@host/git/组织/库/包.git,或把 url 里的地址配上 http.extraHeader。组织未开放 git 功能返回 409;另一个组织的包、已被删除的包和 oci 包都返回 404。同一个 package_id 可以多次取,每次是一个新凭据,互不影响。",
|
|
25516
|
+
"http": "POST",
|
|
25517
|
+
"path": "/registry/v1/packages/{package_id}/git-credential",
|
|
25518
|
+
"streaming": "no",
|
|
25519
|
+
"pagination": false,
|
|
25520
|
+
"pathParams": [
|
|
25521
|
+
{
|
|
25522
|
+
"name": "package_id",
|
|
25523
|
+
"sdkName": "package_id",
|
|
25524
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25525
|
+
}
|
|
25526
|
+
],
|
|
25527
|
+
"query": [],
|
|
25528
|
+
"body": {
|
|
25529
|
+
"required": true,
|
|
25530
|
+
"fields": [
|
|
25531
|
+
{
|
|
25532
|
+
"name": "access",
|
|
25533
|
+
"type": "string",
|
|
25534
|
+
"enum": [
|
|
25535
|
+
"pull",
|
|
25536
|
+
"push",
|
|
25537
|
+
"push-protected"
|
|
25538
|
+
],
|
|
25539
|
+
"required": true,
|
|
25540
|
+
"description": "凭据能做什么;pull 只读,push 推分支但不能更新受保护的引用,push-protected 暂不发放(400)。"
|
|
25541
|
+
},
|
|
25542
|
+
{
|
|
25543
|
+
"name": "ttl_seconds",
|
|
25544
|
+
"type": "integer",
|
|
25545
|
+
"required": false,
|
|
25546
|
+
"description": "凭据的有效秒数,1-3600,省略为 3600;超出范围返回 400,不会被截断。"
|
|
25547
|
+
}
|
|
25548
|
+
]
|
|
25549
|
+
}
|
|
25550
|
+
},
|
|
25551
|
+
{
|
|
25552
|
+
"resource": "registry.packages.git.commits",
|
|
25553
|
+
"method": "retrieve",
|
|
25554
|
+
"summary": "Read a commit",
|
|
25555
|
+
"description": "按对象 id 读一个提交(完整 sha,不解析缩写)。返回提交信息、作者、提交时间与父提交;changed_files=true 时再返回它相对第一个父提交改了哪些文件(根提交的全部文件算新增),文件列表被上限截断时 changed_files_truncated 为 true。仓库里没有这个对象返回 404。",
|
|
25556
|
+
"http": "GET",
|
|
25557
|
+
"path": "/registry/v1/packages/{package_id}/git/commits/{sha}",
|
|
25558
|
+
"streaming": "no",
|
|
25559
|
+
"pagination": false,
|
|
25560
|
+
"pathParams": [
|
|
25561
|
+
{
|
|
25562
|
+
"name": "package_id",
|
|
25563
|
+
"sdkName": "package_id",
|
|
25564
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25565
|
+
},
|
|
25566
|
+
{
|
|
25567
|
+
"name": "sha",
|
|
25568
|
+
"sdkName": "sha",
|
|
25569
|
+
"description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
|
|
25570
|
+
}
|
|
25571
|
+
],
|
|
25572
|
+
"query": [
|
|
25573
|
+
{
|
|
25574
|
+
"name": "changed_files",
|
|
25575
|
+
"type": "boolean",
|
|
25576
|
+
"required": false,
|
|
25577
|
+
"description": "为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。"
|
|
25578
|
+
}
|
|
25579
|
+
]
|
|
25580
|
+
},
|
|
25581
|
+
{
|
|
25582
|
+
"resource": "registry.packages.git",
|
|
25583
|
+
"method": "retrieveCompare",
|
|
25584
|
+
"summary": "Compare two refs",
|
|
25585
|
+
"description": "比较 base 与 head(引用名或完整对象 id):status 是 identical、ahead(head 在 base 之上有新提交)、behind(head 已包含在 base 里)或 diverged(两边各有提交);merge_base 是找到的最近共同祖先;files 是 head 相对 merge_base 改了哪些文件(added、modified、removed、renamed,renamed 带 previous_path),commits 是 head 比 base 多出的提交,最新的在前。Artifacts 无法低成本回答祖先关系,所以这里只沿两边的第一父链各走最多 300 个提交,并在有界读取下比对树:找不到共同祖先时返回 diverged、merge_base 为 null;files 被上限(3000 个文件、1000 次树读取)截断时 truncated 为 true;commits 被截断、或合并提交藏起了被合并分支上的提交时 commits_truncated 为 true。truncated 或 commits_truncated 为 true 时不要把列表当作完整结果。引用不存在返回 404。只读。",
|
|
25586
|
+
"http": "GET",
|
|
25587
|
+
"path": "/registry/v1/packages/{package_id}/git/compare",
|
|
25588
|
+
"streaming": "no",
|
|
25589
|
+
"pagination": false,
|
|
25590
|
+
"pathParams": [
|
|
25591
|
+
{
|
|
25592
|
+
"name": "package_id",
|
|
25593
|
+
"sdkName": "package_id",
|
|
25594
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25595
|
+
}
|
|
25596
|
+
],
|
|
25597
|
+
"query": [
|
|
25598
|
+
{
|
|
25599
|
+
"name": "base",
|
|
25600
|
+
"type": "string",
|
|
25601
|
+
"required": true,
|
|
25602
|
+
"description": "比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。"
|
|
25603
|
+
},
|
|
25604
|
+
{
|
|
25605
|
+
"name": "head",
|
|
25606
|
+
"type": "string",
|
|
25607
|
+
"required": true,
|
|
25608
|
+
"description": "比较的终点:分支名、标签名、refs/… 全名或完整对象 id。"
|
|
25609
|
+
}
|
|
25610
|
+
]
|
|
25611
|
+
},
|
|
25612
|
+
{
|
|
25613
|
+
"resource": "registry.packages.git.files",
|
|
25614
|
+
"method": "retrieve",
|
|
25615
|
+
"summary": "Download a file from a ref",
|
|
25616
|
+
"description": "按引用读一个文件的原始字节,边读边发(流式),没有大小上限。path 是仓库内相对路径,可以含斜杠;ref 不给就是默认分支。路径不是文件或引用不存在返回 404。",
|
|
25617
|
+
"http": "GET",
|
|
25618
|
+
"path": "/registry/v1/packages/{package_id}/git/files/{path}",
|
|
25619
|
+
"streaming": "no",
|
|
25620
|
+
"pagination": false,
|
|
25621
|
+
"pathParams": [
|
|
25622
|
+
{
|
|
25623
|
+
"name": "package_id",
|
|
25624
|
+
"sdkName": "package_id",
|
|
25625
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25626
|
+
},
|
|
25627
|
+
{
|
|
25628
|
+
"name": "path",
|
|
25629
|
+
"sdkName": "path",
|
|
25630
|
+
"description": "仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。"
|
|
25631
|
+
}
|
|
25632
|
+
],
|
|
25633
|
+
"query": [
|
|
25634
|
+
{
|
|
25635
|
+
"name": "ref",
|
|
25636
|
+
"type": "string",
|
|
25637
|
+
"required": false,
|
|
25638
|
+
"description": "分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。"
|
|
25639
|
+
}
|
|
25640
|
+
]
|
|
25641
|
+
},
|
|
25642
|
+
{
|
|
25643
|
+
"resource": "registry.packages.git",
|
|
25644
|
+
"method": "retrieveLog",
|
|
25645
|
+
"summary": "List commits",
|
|
25646
|
+
"description": "列出一个 git 包的提交历史,最新的在前。ref 不给就是包的默认分支;limit 与 offset 分页,has_more 为 true 表示还有下一页。只读:提交只能通过 git 协议推送(clone 地址在包的 clone_url)。OCI 包没有 git 读接口,返回 404。",
|
|
25647
|
+
"http": "GET",
|
|
25648
|
+
"path": "/registry/v1/packages/{package_id}/git/log",
|
|
25649
|
+
"streaming": "no",
|
|
25650
|
+
"pagination": false,
|
|
25651
|
+
"pathParams": [
|
|
25652
|
+
{
|
|
25653
|
+
"name": "package_id",
|
|
25654
|
+
"sdkName": "package_id",
|
|
25655
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25656
|
+
}
|
|
25657
|
+
],
|
|
25658
|
+
"query": [
|
|
25659
|
+
{
|
|
25660
|
+
"name": "ref",
|
|
25661
|
+
"type": "string",
|
|
25662
|
+
"required": false,
|
|
25663
|
+
"description": "分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。"
|
|
25664
|
+
},
|
|
25665
|
+
{
|
|
25666
|
+
"name": "limit",
|
|
25667
|
+
"type": "integer",
|
|
25668
|
+
"required": false,
|
|
25669
|
+
"description": "这一页最多返回多少个提交,1 到 100,默认 20。"
|
|
25670
|
+
},
|
|
25671
|
+
{
|
|
25672
|
+
"name": "offset",
|
|
25673
|
+
"type": "integer",
|
|
25674
|
+
"required": false,
|
|
25675
|
+
"description": "从历史开头跳过多少个提交,用来翻页;非负整数,默认 0。"
|
|
25676
|
+
}
|
|
25677
|
+
]
|
|
25678
|
+
},
|
|
25679
|
+
{
|
|
25680
|
+
"resource": "registry.packages.git.refs",
|
|
25681
|
+
"method": "list",
|
|
25682
|
+
"summary": "List branches and tags",
|
|
25683
|
+
"description": "列出一个 git 包的分支和标签,按名字排序;prefix 只取 refs/heads/(分支)或 refs/tags/(标签),不给就两者都列。page 从 1 起,size 1 到 500,默认 100;has_more 为 true 表示还有下一页。带注解的标签返回它指向的提交 id,不是标签对象的 id。想把一个名字换成提交 id 用 git/resolve,不要自己在这个列表里找。只读;OCI 包返回 404。",
|
|
25684
|
+
"http": "GET",
|
|
25685
|
+
"path": "/registry/v1/packages/{package_id}/git/refs",
|
|
25686
|
+
"streaming": "no",
|
|
25687
|
+
"pagination": false,
|
|
25688
|
+
"pathParams": [
|
|
25689
|
+
{
|
|
25690
|
+
"name": "package_id",
|
|
25691
|
+
"sdkName": "package_id",
|
|
25692
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25693
|
+
}
|
|
25694
|
+
],
|
|
25695
|
+
"query": [
|
|
25696
|
+
{
|
|
25697
|
+
"name": "prefix",
|
|
25698
|
+
"type": "string",
|
|
25699
|
+
"enum": [
|
|
25700
|
+
"refs/heads/",
|
|
25701
|
+
"refs/tags/"
|
|
25702
|
+
],
|
|
25703
|
+
"required": false,
|
|
25704
|
+
"description": "只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。"
|
|
25705
|
+
},
|
|
25706
|
+
{
|
|
25707
|
+
"name": "page",
|
|
25708
|
+
"type": "integer",
|
|
25709
|
+
"required": false,
|
|
25710
|
+
"description": "页码,从 1 起,默认 1。"
|
|
25711
|
+
},
|
|
25712
|
+
{
|
|
25713
|
+
"name": "size",
|
|
25714
|
+
"type": "integer",
|
|
25715
|
+
"required": false,
|
|
25716
|
+
"description": "这一页最多返回多少个引用,1 到 500,默认 100。"
|
|
25717
|
+
}
|
|
25718
|
+
]
|
|
25719
|
+
},
|
|
25720
|
+
{
|
|
25721
|
+
"resource": "registry.packages.git",
|
|
25722
|
+
"method": "retrieveResolve",
|
|
25723
|
+
"summary": "Resolve a ref",
|
|
25724
|
+
"description": "把一个引用换成它指向的提交 id:ref 可以是分支名、标签名、refs/… 全名、HEAD 或完整对象 id(40 或 64 位十六进制,缩写不解析)。名字既是标签又是分支时取标签。完整对象 id 只在仓库里真有这个提交时才返回。仓库没有这个引用或提交返回 404(GIT_OBJECT_NOT_FOUND),不会返回空值。要比较两个引用用 git/compare。",
|
|
25725
|
+
"http": "GET",
|
|
25726
|
+
"path": "/registry/v1/packages/{package_id}/git/resolve",
|
|
25727
|
+
"streaming": "no",
|
|
25728
|
+
"pagination": false,
|
|
25729
|
+
"pathParams": [
|
|
25730
|
+
{
|
|
25731
|
+
"name": "package_id",
|
|
25732
|
+
"sdkName": "package_id",
|
|
25733
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
24226
25734
|
}
|
|
24227
25735
|
],
|
|
24228
|
-
"query": [
|
|
25736
|
+
"query": [
|
|
25737
|
+
{
|
|
25738
|
+
"name": "ref",
|
|
25739
|
+
"type": "string",
|
|
25740
|
+
"required": true,
|
|
25741
|
+
"description": "要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。"
|
|
25742
|
+
}
|
|
25743
|
+
]
|
|
24229
25744
|
},
|
|
24230
25745
|
{
|
|
24231
|
-
"resource": "registry.
|
|
24232
|
-
"method": "
|
|
24233
|
-
"summary": "
|
|
24234
|
-
"description": "
|
|
24235
|
-
"http": "
|
|
24236
|
-
"path": "/registry/v1/
|
|
25746
|
+
"resource": "registry.packages.git.trees",
|
|
25747
|
+
"method": "retrieve",
|
|
25748
|
+
"summary": "List a tree",
|
|
25749
|
+
"description": "读一个树对象(或一个提交的根树)的条目:名字、类型(blob / tree / commit)、模式、对象 id,以及已知时的大小。只列这一层,不递归。",
|
|
25750
|
+
"http": "GET",
|
|
25751
|
+
"path": "/registry/v1/packages/{package_id}/git/trees/{sha}",
|
|
24237
25752
|
"streaming": "no",
|
|
24238
25753
|
"pagination": false,
|
|
24239
25754
|
"pathParams": [
|
|
24240
25755
|
{
|
|
24241
|
-
"name": "
|
|
24242
|
-
"sdkName": "
|
|
24243
|
-
"description": "
|
|
25756
|
+
"name": "package_id",
|
|
25757
|
+
"sdkName": "package_id",
|
|
25758
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25759
|
+
},
|
|
25760
|
+
{
|
|
25761
|
+
"name": "sha",
|
|
25762
|
+
"sdkName": "sha",
|
|
25763
|
+
"description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
|
|
24244
25764
|
}
|
|
24245
25765
|
],
|
|
24246
|
-
"query": []
|
|
24247
|
-
"body": {
|
|
24248
|
-
"required": true,
|
|
24249
|
-
"fields": [
|
|
24250
|
-
{
|
|
24251
|
-
"name": "version",
|
|
24252
|
-
"type": "string",
|
|
24253
|
-
"required": false,
|
|
24254
|
-
"description": "要换到的版本号,完整 semver;省略时换到最新版;插件给了也必须等于最新版,撤回的版本不能换。"
|
|
24255
|
-
}
|
|
24256
|
-
]
|
|
24257
|
-
}
|
|
25766
|
+
"query": []
|
|
24258
25767
|
},
|
|
24259
25768
|
{
|
|
24260
|
-
"resource": "registry.packages",
|
|
24261
|
-
"method": "
|
|
24262
|
-
"summary": "
|
|
24263
|
-
"description": "
|
|
25769
|
+
"resource": "registry.packages.git.trees",
|
|
25770
|
+
"method": "retrieveRecursive",
|
|
25771
|
+
"summary": "List a tree recursively",
|
|
25772
|
+
"description": "读一个提交(或树对象)下的全部条目,递归,每个条目用相对根的完整路径命名,目录和子模块也是条目(子模块不展开)。适合要拿到整个仓库文件清单的场景(例如 DevOps 的构建判断);只想看一个目录用 git/trees/{sha}。相同的子树只读一次。条目上限 20000、树读取上限 1000 次,撞到上限时 truncated 为 true、entries 只是前一部分,不要当作全部。sha 通常来自 git/resolve。仓库里没有这个对象返回 404。只读。",
|
|
24264
25773
|
"http": "GET",
|
|
24265
|
-
"path": "/registry/v1/packages/{package_id}",
|
|
25774
|
+
"path": "/registry/v1/packages/{package_id}/git/trees/{sha}/recursive",
|
|
24266
25775
|
"streaming": "no",
|
|
24267
25776
|
"pagination": false,
|
|
24268
25777
|
"pathParams": [
|
|
@@ -24270,6 +25779,11 @@ export const operations = [
|
|
|
24270
25779
|
"name": "package_id",
|
|
24271
25780
|
"sdkName": "package_id",
|
|
24272
25781
|
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25782
|
+
},
|
|
25783
|
+
{
|
|
25784
|
+
"name": "sha",
|
|
25785
|
+
"sdkName": "sha",
|
|
25786
|
+
"description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
|
|
24273
25787
|
}
|
|
24274
25788
|
],
|
|
24275
25789
|
"query": []
|
|
@@ -24553,7 +26067,7 @@ export const operations = [
|
|
|
24553
26067
|
"resource": "registry.repositories",
|
|
24554
26068
|
"method": "create",
|
|
24555
26069
|
"summary": "Create repository",
|
|
24556
|
-
"description": "新建一个库来分类存放包。name 是库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且不能和已有的库重名;display_name 和 description 是给人看的。每个组织本来就有一个默认库,需要新分类时才建;一个库非空时不能删除,所以不要用库来临时隔离一次上传。",
|
|
26070
|
+
"description": "新建一个库来分类存放包。name 是库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且不能和已有的库重名;display_name 和 description 是给人看的。每个组织本来就有一个默认库,需要新分类时才建;一个库非空时不能删除,所以不要用库来临时隔离一次上传。format 默认 oci,库里放技能和插件;要放 git 仓库就传 format=git,建库后 format 不能改。git 库需要这个组织已开放 git 功能,否则返回 409。",
|
|
24557
26071
|
"http": "POST",
|
|
24558
26072
|
"path": "/registry/v1/repositories",
|
|
24559
26073
|
"streaming": "no",
|
|
@@ -24580,6 +26094,16 @@ export const operations = [
|
|
|
24580
26094
|
"type": "string",
|
|
24581
26095
|
"required": false,
|
|
24582
26096
|
"description": "库的说明;省略时不写。"
|
|
26097
|
+
},
|
|
26098
|
+
{
|
|
26099
|
+
"name": "format",
|
|
26100
|
+
"type": "string",
|
|
26101
|
+
"enum": [
|
|
26102
|
+
"oci",
|
|
26103
|
+
"git"
|
|
26104
|
+
],
|
|
26105
|
+
"required": false,
|
|
26106
|
+
"description": "库里放什么,省略为 oci;git 库放 git 仓库,要求组织已开放 git 功能(否则 409),建库后不能改。"
|
|
24583
26107
|
}
|
|
24584
26108
|
]
|
|
24585
26109
|
}
|
|
@@ -24715,8 +26239,8 @@ export const operations = [
|
|
|
24715
26239
|
{
|
|
24716
26240
|
"resource": "registry.repositories.packages",
|
|
24717
26241
|
"method": "create",
|
|
24718
|
-
"summary": "
|
|
24719
|
-
"description": "
|
|
26242
|
+
"summary": "Create a package",
|
|
26243
|
+
"description": "在一个库里建新包,按库的 format 走两条路。git 库(format=git):Content-Type 用 application/json,请求体 {name, format:\"git\", default_branch?, description?, import?},建一个空的 git 仓库,或者用 import.url(公开 https 仓库)从现有仓库导入;成功返回的包带 clone_url、default_branch 和 protected_refs(默认只保护默认分支),接着调用 packages.git-credential 取推拉凭据;组织未开放 git 功能返回 409,往 oci 库里用 JSON 建包也是 409。oci 库(技能和插件):把一个新包发布进这个库,一次调用建立包并上传它的第一个版本,Content-Type 用 multipart/form-data。发布内容是 multipart:version 必填,archive 给一个 zip,或者 files 给一组文件(每个文件的 filename 是相对上传根的路径,例如 pdf/SKILL.md)。单个顶层目录会被剥掉。种类按根上有什么判:有 SKILL.md 就是 skill,有 .claude-plugin/plugin.json 就是 plugin;两者都没有、或都有,会被拒。名字从 SKILL.md 或 plugin.json 里读,不从路径或 query 猜。限额:上传 ≤25 MiB,解压后 ≤50 MiB,≤1000 个文件。版本必须是 semver 且严格递增;第一个版本可以是任意合法 semver,之后每个新版本都要比已发布的最高版本高。把已有智能体的技能搬过来时,先用 GET /agent/v1/skills/{id}/versions/{v}/content 导出 zip,再在这里作为 archive 发布。",
|
|
24720
26244
|
"http": "POST",
|
|
24721
26245
|
"path": "/registry/v1/repositories/{repository_id}/packages",
|
|
24722
26246
|
"streaming": "no",
|
|
@@ -24734,41 +26258,202 @@ export const operations = [
|
|
|
24734
26258
|
"required": true,
|
|
24735
26259
|
"fields": [
|
|
24736
26260
|
{
|
|
24737
|
-
"name": "
|
|
26261
|
+
"name": "name",
|
|
24738
26262
|
"type": "string",
|
|
24739
26263
|
"required": true,
|
|
24740
|
-
"description": "
|
|
26264
|
+
"description": "包名,也是仓库名,小写字母、数字和 . _ -,在这个库里不能重名;出现在 clone_url 里,建后不能改。"
|
|
24741
26265
|
},
|
|
24742
26266
|
{
|
|
24743
|
-
"name": "
|
|
26267
|
+
"name": "format",
|
|
26268
|
+
"type": "string",
|
|
26269
|
+
"enum": [
|
|
26270
|
+
"git"
|
|
26271
|
+
],
|
|
26272
|
+
"required": true,
|
|
26273
|
+
"description": "建的包是什么;JSON 请求只能建 git 包,所以固定为 git。"
|
|
26274
|
+
},
|
|
26275
|
+
{
|
|
26276
|
+
"name": "default_branch",
|
|
24744
26277
|
"type": "string",
|
|
24745
26278
|
"required": false,
|
|
24746
|
-
"description": "
|
|
26279
|
+
"description": "默认分支名,省略为 main;默认受保护,普通凭据不能直接推,请推到别的分支。"
|
|
24747
26280
|
},
|
|
24748
26281
|
{
|
|
24749
|
-
"name": "
|
|
24750
|
-
"type": "
|
|
24751
|
-
"itemType": "string",
|
|
26282
|
+
"name": "description",
|
|
26283
|
+
"type": "string",
|
|
24752
26284
|
"required": false,
|
|
24753
|
-
"description": "
|
|
26285
|
+
"description": "仓库的说明;省略时为空。"
|
|
24754
26286
|
},
|
|
24755
26287
|
{
|
|
24756
|
-
"name": "
|
|
26288
|
+
"name": "import",
|
|
26289
|
+
"type": "object",
|
|
26290
|
+
"required": false,
|
|
26291
|
+
"description": "从一个现有的公开仓库导入内容,建出来的仓库不是空的;省略则建空仓库。"
|
|
26292
|
+
}
|
|
26293
|
+
]
|
|
26294
|
+
}
|
|
26295
|
+
},
|
|
26296
|
+
{
|
|
26297
|
+
"resource": "sandbox.byod.devices",
|
|
26298
|
+
"method": "list",
|
|
26299
|
+
"summary": "List your organization's own devices",
|
|
26300
|
+
"description": "List the devices your organization has paired, oldest first, with each one's platform, name, model, OS version, live online fact and when it was last seen. Use it to find a device id before you act on it, rename it or disconnect it, or to show the BYOD page. A revoked device is not listed, so a device that disappears from this answer was disconnected; there is no paging because an organization's own devices are few. Each row carries capabilities and, for a desktop, the agent_dirs it registered. Example: GET /sandbox/v1/byod/devices returns {data:[{object:'byod_device',id:'byd_0123456789abcdefghijklmno',platform:'android',name:'Shelf phone',model:'23127PN0CC',os_version:'16',online:true,last_seen_at:'2026-11-22T12:58:00.000Z',created_at:'2026-11-22T12:40:00.000Z',capabilities:['display'],agent_dirs:[]}]}.",
|
|
26301
|
+
"http": "GET",
|
|
26302
|
+
"path": "/sandbox/v1/byod/devices",
|
|
26303
|
+
"streaming": "no",
|
|
26304
|
+
"pagination": false,
|
|
26305
|
+
"pathParams": [],
|
|
26306
|
+
"query": []
|
|
26307
|
+
},
|
|
26308
|
+
{
|
|
26309
|
+
"resource": "sandbox.byod.devices",
|
|
26310
|
+
"method": "retrieve",
|
|
26311
|
+
"summary": "Read one of your organization's devices",
|
|
26312
|
+
"description": "Read one BYOD device: the same fields listByodDevices returns, for a single device. Use it to poll whether a device is online before acting on it, or to refresh one row of the BYOD page after a rename. An unknown id and another organization's device both answer 404, so the answer never reveals that a foreign device exists. Example: GET /sandbox/v1/byod/devices/byd_0123456789abcdefghijklmno.",
|
|
26313
|
+
"http": "GET",
|
|
26314
|
+
"path": "/sandbox/v1/byod/devices/{deviceID}",
|
|
26315
|
+
"streaming": "no",
|
|
26316
|
+
"pagination": false,
|
|
26317
|
+
"pathParams": [
|
|
26318
|
+
{
|
|
26319
|
+
"name": "deviceID",
|
|
26320
|
+
"sdkName": "deviceID",
|
|
26321
|
+
"description": "Device id from the claim or from listByodDevices, `byd_` followed by 26 lowercase hex characters. An unknown id and another organization's device both answer 404."
|
|
26322
|
+
}
|
|
26323
|
+
],
|
|
26324
|
+
"query": []
|
|
26325
|
+
},
|
|
26326
|
+
{
|
|
26327
|
+
"resource": "sandbox.byod.devices",
|
|
26328
|
+
"method": "update",
|
|
26329
|
+
"summary": "Rename one of your organization's devices",
|
|
26330
|
+
"description": "Change a device's display name, and nothing else: pairing, credential, platform and connection are untouched. Use it to give a shared phone a name your team recognises. The body takes exactly one field, name, 1 to 64 characters after trimming; a missing, extra or wrongly typed field answers INVALID_PARAMS. An unknown id and another organization's device both answer 404. Example: PATCH /sandbox/v1/byod/devices/byd_0123456789abcdefghijklmno with {name:'Shelf phone'} returns the updated device.",
|
|
26331
|
+
"http": "PATCH",
|
|
26332
|
+
"path": "/sandbox/v1/byod/devices/{deviceID}",
|
|
26333
|
+
"streaming": "no",
|
|
26334
|
+
"pagination": false,
|
|
26335
|
+
"pathParams": [
|
|
26336
|
+
{
|
|
26337
|
+
"name": "deviceID",
|
|
26338
|
+
"sdkName": "deviceID",
|
|
26339
|
+
"description": "Device id from the claim or from listByodDevices, `byd_` followed by 26 lowercase hex characters. An unknown id and another organization's device both answer 404."
|
|
26340
|
+
}
|
|
26341
|
+
],
|
|
26342
|
+
"query": [],
|
|
26343
|
+
"body": {
|
|
26344
|
+
"required": true,
|
|
26345
|
+
"fields": [
|
|
26346
|
+
{
|
|
26347
|
+
"name": "name",
|
|
26348
|
+
"type": "string",
|
|
26349
|
+
"required": true,
|
|
26350
|
+
"description": "New display name for the device, 1 to 64 characters after trimming leading and trailing whitespace; it does not have to be unique."
|
|
26351
|
+
}
|
|
26352
|
+
]
|
|
26353
|
+
}
|
|
26354
|
+
},
|
|
26355
|
+
{
|
|
26356
|
+
"resource": "sandbox.byod.devices.disconnect",
|
|
26357
|
+
"method": "create",
|
|
26358
|
+
"summary": "Disconnect a device and revoke its credential",
|
|
26359
|
+
"description": "Disconnect a paired device: the device's credential is revoked, its control connection is closed, and it stops appearing in listByodDevices. Use it when the phone is lost, lent or no longer wanted; the same disconnect is offered as one tap on the device itself. The operation is idempotent — disconnecting an already-disconnected device answers the same 200 — so a retry after a lost response is safe. The device is untouched: nothing is erased on the phone, and it can be paired again with a new pairing. Because a revoked device is not listed, a later listByodDevices no longer shows it. An unknown id and another organization's device both answer 404. Example: POST /sandbox/v1/byod/devices/byd_0123456789abcdefghijklmno/disconnect returns {id:'byd_0123456789abcdefghijklmno',object:'byod_device',disconnected:true}.",
|
|
26360
|
+
"http": "POST",
|
|
26361
|
+
"path": "/sandbox/v1/byod/devices/{deviceID}/disconnect",
|
|
26362
|
+
"streaming": "no",
|
|
26363
|
+
"pagination": false,
|
|
26364
|
+
"pathParams": [
|
|
26365
|
+
{
|
|
26366
|
+
"name": "deviceID",
|
|
26367
|
+
"sdkName": "deviceID",
|
|
26368
|
+
"description": "Device id from the claim or from listByodDevices, `byd_` followed by 26 lowercase hex characters. An unknown id and another organization's device both answer 404."
|
|
26369
|
+
}
|
|
26370
|
+
],
|
|
26371
|
+
"query": []
|
|
26372
|
+
},
|
|
26373
|
+
{
|
|
26374
|
+
"resource": "sandbox.byod.pairings",
|
|
26375
|
+
"method": "create",
|
|
26376
|
+
"summary": "Start adding a phone of your own",
|
|
26377
|
+
"description": "Begin bringing your own device (BYOD): the platform answers an 8-character code, its ten-minute deadline and the QR payload your phone's app scans, and nothing is registered until the owner taps Allow on the phone. Show the QR payload (or the code) in your app; the phone opens GET /sandbox/v1/byod/pairings/{code} — with no credential — to show the organization and the deadline, then posts the claim once. The pairing stores the organization's display name, which the phone shows on its Allow screen, so create the pairing from a session or key that carries one. A code is spent by the first successful claim and cannot be reused; create a new pairing for another device. BYOD devices are separate from sandboxes: they never appear in listSandboxes and have no template, size or expiry. Example: POST /sandbox/v1/byod/pairings with no body returns {code:'K7M4PQRS',expires_at:'2026-11-22T13:10:00.000Z',qr:'praxis://byod/pair?code=K7M4PQRS&api=https%3A%2F%2Fapi.deepraxis.com'}.",
|
|
26378
|
+
"http": "POST",
|
|
26379
|
+
"path": "/sandbox/v1/byod/pairings",
|
|
26380
|
+
"streaming": "no",
|
|
26381
|
+
"pagination": false,
|
|
26382
|
+
"pathParams": [],
|
|
26383
|
+
"query": []
|
|
26384
|
+
},
|
|
26385
|
+
{
|
|
26386
|
+
"resource": "sandbox.byod.pairings",
|
|
26387
|
+
"method": "retrieve",
|
|
26388
|
+
"summary": "Read a pairing for the phone's Allow screen",
|
|
26389
|
+
"description": "The phone's own read, called by the app that scanned the QR code or the code was typed into: it answers the organization's display name and the code's deadline, which the owner sees before tapping Allow. This path carries no Praxis credential — the one-time code is what it is addressed by — so do not send an API key and do not call it from server code. An unknown, spent or expired code answers 404, with nothing said about which of the three it is; that also covers a code another organization created. The read is a preview only: it registers nothing, and the claim is what spends the code. Example: GET /sandbox/v1/byod/pairings/K7M4PQRS returns {organization_name:'烟火测试团队',expires_at:'2026-11-22T13:10:00.000Z'}.",
|
|
26390
|
+
"http": "GET",
|
|
26391
|
+
"path": "/sandbox/v1/byod/pairings/{code}",
|
|
26392
|
+
"streaming": "no",
|
|
26393
|
+
"pagination": false,
|
|
26394
|
+
"pathParams": [
|
|
26395
|
+
{
|
|
26396
|
+
"name": "code",
|
|
26397
|
+
"sdkName": "code",
|
|
26398
|
+
"description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
|
|
26399
|
+
}
|
|
26400
|
+
],
|
|
26401
|
+
"query": []
|
|
26402
|
+
},
|
|
26403
|
+
{
|
|
26404
|
+
"resource": "sandbox.byod.pairings.claim",
|
|
26405
|
+
"method": "create",
|
|
26406
|
+
"summary": "Claim a pairing and register the phone",
|
|
26407
|
+
"description": "The phone's own final step after the owner taps Allow: it registers the device and answers the device id, a one-time credential and the control socket url the app dials. This path carries no Praxis credential — the one-time code is what it is addressed by — so do not send an API key and never call it from server code. The claim is single use: the first successful call spends the code and a second call answers 404, as does an unknown or expired code, so the app must store the credential the moment it arrives because it is never shown again. Connect to socket_url with Authorization: Bearer <credential>; the socket speaks the phone channel (hello, ping/pong, act, result/error) and the device's one connection is replaced if the app reconnects. Example: POST /sandbox/v1/byod/pairings/K7M4PQRS/claim with {platform:'android',name:'Shelf phone',model:'23127PN0CC',os_version:'16'} returns {device_id:'byd_0123456789abcdefghijklmno',credential:'…',socket_url:'wss://49982-byd0123456789abcdefghijklmno.sandbox.praxisusercontent.com/'}.",
|
|
26408
|
+
"http": "POST",
|
|
26409
|
+
"path": "/sandbox/v1/byod/pairings/{code}/claim",
|
|
26410
|
+
"streaming": "no",
|
|
26411
|
+
"pagination": false,
|
|
26412
|
+
"pathParams": [
|
|
26413
|
+
{
|
|
26414
|
+
"name": "code",
|
|
26415
|
+
"sdkName": "code",
|
|
26416
|
+
"description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
|
|
26417
|
+
}
|
|
26418
|
+
],
|
|
26419
|
+
"query": [],
|
|
26420
|
+
"body": {
|
|
26421
|
+
"required": true,
|
|
26422
|
+
"fields": [
|
|
26423
|
+
{
|
|
26424
|
+
"name": "platform",
|
|
26425
|
+
"type": "string",
|
|
26426
|
+
"enum": [
|
|
26427
|
+
"android",
|
|
26428
|
+
"macos",
|
|
26429
|
+
"linux"
|
|
26430
|
+
],
|
|
26431
|
+
"required": true,
|
|
26432
|
+
"description": "The device's platform. macos and linux are accepted only for an organization with the local-agent-connect flag on; with it off, and for any other value, the claim answers INVALID_PARAMS."
|
|
26433
|
+
},
|
|
26434
|
+
{
|
|
26435
|
+
"name": "name",
|
|
24757
26436
|
"type": "string",
|
|
24758
26437
|
"required": false,
|
|
24759
|
-
"description": "
|
|
26438
|
+
"description": "Display name to register the device with, 1 to 64 characters; omitted or empty becomes the placeholder My device, which the caller can change later."
|
|
24760
26439
|
},
|
|
24761
26440
|
{
|
|
24762
|
-
"name": "
|
|
26441
|
+
"name": "model",
|
|
24763
26442
|
"type": "string",
|
|
24764
26443
|
"required": false,
|
|
24765
|
-
"description": "
|
|
26444
|
+
"description": "The device model the app reports, at most 128 characters; it is display only and can be omitted."
|
|
24766
26445
|
},
|
|
24767
26446
|
{
|
|
24768
|
-
"name": "
|
|
26447
|
+
"name": "os_version",
|
|
24769
26448
|
"type": "string",
|
|
24770
26449
|
"required": false,
|
|
24771
|
-
"description": "
|
|
26450
|
+
"description": "The operating-system version the app reports, at most 64 characters; it is display only and can be omitted."
|
|
26451
|
+
},
|
|
26452
|
+
{
|
|
26453
|
+
"name": "device_key",
|
|
26454
|
+
"type": "string",
|
|
26455
|
+
"required": false,
|
|
26456
|
+
"description": "A stable key the app reads from the phone itself (Android: ANDROID_ID), 8 to 128 characters of letters, digits, underscore and hyphen; any other value answers INVALID_PARAMS. The service keeps only a hash scoped to the organization and platform. When the same organization already has a device with this key, even a disconnected one, the claim reuses that device: the same device_id comes back with a new credential, the old connection is closed, and its name is kept. Omit it and every claim registers a new device."
|
|
24772
26457
|
}
|
|
24773
26458
|
]
|
|
24774
26459
|
}
|
|
@@ -24891,7 +26576,7 @@ export const operations = [
|
|
|
24891
26576
|
"resource": "sandbox.sandboxes",
|
|
24892
26577
|
"method": "create",
|
|
24893
26578
|
"summary": "Create sandbox (v2)",
|
|
24894
|
-
"description": "Create a sandbox from a template. Every sandbox declares its lifecycle at creation. On the own face (X-Praxis-Face: own-v1) send ephemeral: true for an ephemeral sandbox (never pauses, cannot be snapshotted, deleted when it ends; for jobs such as transcodes, scripts and builds) or ephemeral: false for a persistent one (pauses and resumes, snapshots, mounts volumes, kept after it stops; for long-lived computers). Leaving ephemeral out returns INVALID_PARAMS. autoPause: true, onExpire: pause, autoPauseMemory, autoResume, idleTimeout, retention and volumes belong to persistent sandboxes and need ephemeral: false. Choose persistent only for long-lived computers. On the E2B-compatible face autoPause is the declaration: true is persistent, false or absent is ephemeral and ends at its timeout. Responses carry ephemeral. When a sandbox's machine has ended (timeout, kill, retention, provider loss), reaching it returns SANDBOX_EXPIRED (410) with terminationReason in the message: its files are gone, create a new sandbox. To keep results, declare outputs: [{ path }] on the own face (up to eight absolute paths, a directory or a file): when the sandbox ends for any reason except provider loss or a failed start, each path is packed as .tar.gz and stored in File, and the killed event of GET /sandbox/v1/events/sandboxes/{sandboxID} lists each fileId or the reason it was not kept. Paths not declared are not kept. The E2B face refuses outputs.",
|
|
26579
|
+
"description": "Create a sandbox from a template. Every sandbox declares its lifecycle at creation. On the own face (X-Praxis-Face: own-v1) send ephemeral: true for an ephemeral sandbox (never pauses, cannot be snapshotted, deleted when it ends; for jobs such as transcodes, scripts and builds) or ephemeral: false for a persistent one (pauses and resumes, snapshots, mounts volumes, kept after it stops; for long-lived computers). Leaving ephemeral out returns INVALID_PARAMS. autoPause: true, onExpire: pause, autoPauseMemory, autoResume, idleTimeout, retention and volumes belong to persistent sandboxes and need ephemeral: false. Choose persistent only for long-lived computers. On the E2B-compatible face autoPause is the declaration: true is persistent, false or absent is ephemeral and ends at its timeout. Responses carry ephemeral. When a sandbox's machine has ended (timeout, kill, retention, provider loss), reaching it returns SANDBOX_EXPIRED (410) with terminationReason in the message: its files are gone, create a new sandbox. To keep results, declare outputs: [{ path }] on the own face (up to eight absolute paths, a directory or a file): when the sandbox ends for any reason except provider loss or a failed start, each path is packed as .tar.gz and stored in File, and the killed event of GET /sandbox/v1/events/sandboxes/{sandboxID} lists each fileId or the reason it was not kept. Paths not declared are not kept. The E2B face refuses outputs. On the own face an android phone accepts waitForReady: true, an own-face-only option: the create then waits until the phone program has connected (state running) or 55 seconds have passed since the request arrived (the vendor create itself takes about 48 s, so this is often not enough), and answers with the state it reached — a timeout is not an error; omit it (the default) and the create answers at once, before the phone connects, with state starting or booting, which you follow with the detail read or the act socket.",
|
|
24895
26580
|
"http": "POST",
|
|
24896
26581
|
"path": "/sandbox/v1/sandboxes",
|
|
24897
26582
|
"streaming": "no",
|
|
@@ -24973,6 +26658,98 @@ export const operations = [
|
|
|
24973
26658
|
"itemType": "object",
|
|
24974
26659
|
"required": false,
|
|
24975
26660
|
"description": "Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox."
|
|
26661
|
+
},
|
|
26662
|
+
{
|
|
26663
|
+
"name": "ephemeral",
|
|
26664
|
+
"type": "boolean",
|
|
26665
|
+
"required": false,
|
|
26666
|
+
"description": "Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS."
|
|
26667
|
+
},
|
|
26668
|
+
{
|
|
26669
|
+
"name": "size",
|
|
26670
|
+
"type": "string",
|
|
26671
|
+
"required": false,
|
|
26672
|
+
"description": "Own face: the machine size, a SKU id such as base-2c4g or, for an android phone, android-2c4g. Omitted, the template's default size is used."
|
|
26673
|
+
},
|
|
26674
|
+
{
|
|
26675
|
+
"name": "name",
|
|
26676
|
+
"type": "string",
|
|
26677
|
+
"required": false,
|
|
26678
|
+
"description": "Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template."
|
|
26679
|
+
},
|
|
26680
|
+
{
|
|
26681
|
+
"name": "waitForReady",
|
|
26682
|
+
"type": "boolean",
|
|
26683
|
+
"required": false,
|
|
26684
|
+
"description": "Own face, android phones only: keep the create open until the phone is running or 55 seconds have passed since the request arrived; running out is not an error and answers the state reached."
|
|
26685
|
+
},
|
|
26686
|
+
{
|
|
26687
|
+
"name": "onExpire",
|
|
26688
|
+
"type": "string",
|
|
26689
|
+
"enum": [
|
|
26690
|
+
"kill",
|
|
26691
|
+
"pause"
|
|
26692
|
+
],
|
|
26693
|
+
"required": false,
|
|
26694
|
+
"description": "Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent."
|
|
26695
|
+
},
|
|
26696
|
+
{
|
|
26697
|
+
"name": "idleTimeout",
|
|
26698
|
+
"type": "integer",
|
|
26699
|
+
"required": false,
|
|
26700
|
+
"description": "Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off."
|
|
26701
|
+
},
|
|
26702
|
+
{
|
|
26703
|
+
"name": "idleActivity",
|
|
26704
|
+
"type": "string",
|
|
26705
|
+
"enum": [
|
|
26706
|
+
"traffic",
|
|
26707
|
+
"caller"
|
|
26708
|
+
],
|
|
26709
|
+
"required": false,
|
|
26710
|
+
"description": "Own face, persistent sandboxes only: whose activity resets idleTimeout. traffic (default) counts data-plane calls, preview traffic and live processes; caller counts only your own control-plane calls."
|
|
26711
|
+
},
|
|
26712
|
+
{
|
|
26713
|
+
"name": "sku",
|
|
26714
|
+
"type": "string",
|
|
26715
|
+
"required": false,
|
|
26716
|
+
"description": "Own face: a demand-profile SKU <kind>.<image>.<size>, such as run.document.medium (someone waits; starts fast), job.base.large (background work that must not be cut off), batch.base.large (retried work that may be reclaimed) or computer.base.medium (keeps its disk). It fixes ephemeral, interruptible, size and the template, so those may be left out; any of them you also send must agree with it, otherwise the create fails with INVALID_PARAMS naming the field. The sandbox answers it back as sku and as the read-only label praxis.sku."
|
|
26717
|
+
},
|
|
26718
|
+
{
|
|
26719
|
+
"name": "kind",
|
|
26720
|
+
"type": "string",
|
|
26721
|
+
"enum": [
|
|
26722
|
+
"run",
|
|
26723
|
+
"job",
|
|
26724
|
+
"batch",
|
|
26725
|
+
"computer",
|
|
26726
|
+
"compat"
|
|
26727
|
+
],
|
|
26728
|
+
"required": false,
|
|
26729
|
+
"description": "Own face: the kind of sandbox you need, when you do not name a full sku. The sandbox completes <kind>.<image>.<size> from the template you start (its family, or custom for your own environment or snapshot) and the size you send, or medium. run is for work someone waits for (starts fast), job is background work that must not be cut off, batch is retried work that may be reclaimed (spot capacity), computer keeps its disk, and compat is the E2B-compatible persistent series. The kind fixes ephemeral and interruptible, so leave those out; if you also send them, or a sku of another kind, the create fails with INVALID_PARAMS naming the field. The light template always starts the light shell, whatever the kind says."
|
|
26730
|
+
},
|
|
26731
|
+
{
|
|
26732
|
+
"name": "interruptible",
|
|
26733
|
+
"type": "boolean",
|
|
26734
|
+
"required": false,
|
|
26735
|
+
"description": "Own face, ephemeral sandboxes only: true says this sandbox may be reclaimed while it runs (a build or test you retry), which lets it run on cheaper spot capacity. A reclaimed sandbox ends with PROVIDER_FAILED; create it again. Absent or false keeps the usual capacity."
|
|
26736
|
+
},
|
|
26737
|
+
{
|
|
26738
|
+
"name": "onLoss",
|
|
26739
|
+
"type": "string",
|
|
26740
|
+
"enum": [
|
|
26741
|
+
"fail",
|
|
26742
|
+
"rebuild"
|
|
26743
|
+
],
|
|
26744
|
+
"required": false,
|
|
26745
|
+
"description": "Own face, persistent sandboxes only: what happens when the provider loses the machine. fail (default) ends the sandbox; rebuild starts a new machine under the same id with its state lost."
|
|
26746
|
+
},
|
|
26747
|
+
{
|
|
26748
|
+
"name": "outputs",
|
|
26749
|
+
"type": "array",
|
|
26750
|
+
"itemType": "object",
|
|
26751
|
+
"required": false,
|
|
26752
|
+
"description": "Own face: up to eight absolute paths to keep when the sandbox ends; each is packed as .tar.gz into File and listed on the killed event."
|
|
24976
26753
|
}
|
|
24977
26754
|
]
|
|
24978
26755
|
}
|
|
@@ -25042,6 +26819,28 @@ export const operations = [
|
|
|
25042
26819
|
]
|
|
25043
26820
|
}
|
|
25044
26821
|
},
|
|
26822
|
+
{
|
|
26823
|
+
"resource": "sandbox.sandboxes",
|
|
26824
|
+
"method": "act",
|
|
26825
|
+
"summary": "Act on a phone sandbox's screen",
|
|
26826
|
+
"description": "See and operate an android sandbox's phone screen: take a screenshot, read the UI hierarchy to get a ref for each node, then tap a node or a screen point, long-press, swipe, scroll, type text, press a key, open or close an app, open a URL, or wait. Use it to drive and automate a mobile app on a phone sandbox created with templateID \"android\"; those machines have no terminal or file API, so drive the screen with this operation and run shell commands with commands.run. Start with a snapshot to learn what is on screen and to mint the refs the tap-like actions use; a ref names a node in the latest snapshot only, so after a newer snapshot, or after an action that changed the screen, take a fresh snapshot — a stale ref is refused with INVALID_PARAMS. The phone runs one action at a time, so actions on one sandbox are serial: send the next only after the previous call returns. A phone that has just been created may not have connected yet and answers 503 SERVICE_UNAVAILABLE with Retry-After: 2; retry after that delay (measured on develop: the sandbox is created in about 45 s and the phone program connects about 15 s later). Text is entered through the phone's own input, which supports ASCII only, so typing non-ASCII text into a Chinese app is not supported and answers INVALID_PARAMS. A linux sandbox has no screen and answers CAPABILITY_UNSUPPORTED.\n\nThe same path is the caller's action socket: send GET with the standard WebSocket upgrade headers instead of POST and drive many actions over one connection. The server answers {\"type\":\"ready\",\"instanceId\":\"<id>\"} first, then every frame {\"id\":\"<your correlation id>\",\"action\":{…}} (an action of the same shape as this operation's body, at most 64 characters of id) is answered by its own id, in submission order, as {\"id\":\"…\",\"result\":{…}} or {\"id\":\"…\",\"error\":{\"code\":\"…\",\"message\":\"…\",\"retryable\":true}}. At most 8 actions may be in flight on one connection (the next answers RATE_LIMITED), and 10 malformed frames in a row close the connection 1008. Authentication is the caller's own (an organization API key), never the phone's token. Closing the connection ends only that client's view: actions already accepted are answered, and the phone stays connected. Before the handshake, a phone that is still being built or has not connected yet answers 503 DEVICE_NOT_READY with the state it is in and Retry-After: 2.",
|
|
26827
|
+
"http": "POST",
|
|
26828
|
+
"path": "/sandbox/v1/sandboxes/{sandboxID}/act",
|
|
26829
|
+
"streaming": "no",
|
|
26830
|
+
"pagination": false,
|
|
26831
|
+
"pathParams": [
|
|
26832
|
+
{
|
|
26833
|
+
"name": "sandboxID",
|
|
26834
|
+
"sdkName": "sandboxID",
|
|
26835
|
+
"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."
|
|
26836
|
+
}
|
|
26837
|
+
],
|
|
26838
|
+
"query": [],
|
|
26839
|
+
"body": {
|
|
26840
|
+
"required": true,
|
|
26841
|
+
"fields": []
|
|
26842
|
+
}
|
|
26843
|
+
},
|
|
25045
26844
|
{
|
|
25046
26845
|
"resource": "sandbox.sandboxes",
|
|
25047
26846
|
"method": "connect",
|
|
@@ -25554,7 +27353,7 @@ export const operations = [
|
|
|
25554
27353
|
"resource": "sandbox.sandboxes.commands",
|
|
25555
27354
|
"method": "run",
|
|
25556
27355
|
"summary": "Run a command in the sandbox",
|
|
25557
|
-
"description": "Execute a shell command and wait for stdout, stderr and exitCode. Supply cmd, optional cwd and envs, and timeoutMs (1–3600000 milliseconds, default 600000, that is 10 minutes; E2B defaults to 60000). Unlike E2B, this endpoint is synchronous only: no background mode, callbacks or unlimited timeout (timeoutMs 0); output is bounded to 1 MiB including stream framing. Nonzero exit codes return 200 with the result. A timeout returns COMMAND_TIMEOUT (504); transport timeout does not confirm process termination, so do not blindly retry commands with side effects. Example body: {\"cmd\":\"echo hi\"}.",
|
|
27356
|
+
"description": "Execute a shell command and wait for stdout, stderr and exitCode. Supply cmd, optional cwd and envs, and timeoutMs (1–3600000 milliseconds, default 600000, that is 10 minutes; E2B defaults to 60000). Unlike E2B, this endpoint is synchronous only: no background mode, callbacks or unlimited timeout (timeoutMs 0); output is bounded to 1 MiB including stream framing. Nonzero exit codes return 200 with the result. A timeout returns COMMAND_TIMEOUT (504); transport timeout does not confirm process termination, so do not blindly retry commands with side effects. On an android sandbox the command runs in the phone's root shell, its stderr is merged into stdout (read stdout and expect stderr to come back empty), and background mode is unavailable. Example body: {\"cmd\":\"echo hi\"}.",
|
|
25558
27357
|
"http": "POST",
|
|
25559
27358
|
"path": "/sandbox/v1/sandboxes/{sandbox_id}/commands",
|
|
25560
27359
|
"streaming": "no",
|
|
@@ -26920,10 +28719,11 @@ export const operations = [
|
|
|
26920
28719
|
"file",
|
|
26921
28720
|
"artifact",
|
|
26922
28721
|
"canvas",
|
|
26923
|
-
"media_asset"
|
|
28722
|
+
"media_asset",
|
|
28723
|
+
"agent"
|
|
26924
28724
|
],
|
|
26925
28725
|
"required": false,
|
|
26926
|
-
"description": "Only shares of this object type; file, canvas and
|
|
28726
|
+
"description": "Only shares of this object type; file, canvas, media_asset and agent create today."
|
|
26927
28727
|
},
|
|
26928
28728
|
{
|
|
26929
28729
|
"name": "resource_id",
|
|
@@ -26960,7 +28760,7 @@ export const operations = [
|
|
|
26960
28760
|
"resource": "share.permissions",
|
|
26961
28761
|
"method": "create",
|
|
26962
28762
|
"summary": "Create share",
|
|
26963
|
-
"description": "Make one
|
|
28763
|
+
"description": "Make one object readable by anyone holding a link, before sending the link to a person or embedding it. Name the object as resource {type, id} — a file id from the File API, a canvas id, a media asset's library_id/asset_id, or an agent id (agent_...) of a service agent whose owner turned share links on. The response is 201 and is the only time link.web_url is returned; store it, because later reads omit it and a lost address means creating another share (the old one keeps working until you delete it). Opening a file or media link signs a short-lived read address; opening a canvas link shows a snapshot rendered at that moment; opening an agent link starts a Hosted conversation with that agent as the visitor, so each browser keeps its own history. The link is anonymous, and for every type so far read-only. A type that cannot be shared answers 400 RESOURCE_TYPE_UNSUPPORTED; an agent whose share links are switched off answers 400 RESOURCE_NOT_SHAREABLE and its owner turns them on in the agent's embed settings (share_links), which also requires the agent to have a short number; an object that is missing or outside your organization answers 404 RESOURCE_NOT_FOUND.",
|
|
26964
28764
|
"http": "POST",
|
|
26965
28765
|
"path": "/share/v1/permissions",
|
|
26966
28766
|
"streaming": "no",
|
|
@@ -30884,7 +32684,7 @@ export const operations = [
|
|
|
30884
32684
|
"name": "duplicate_of",
|
|
30885
32685
|
"type": "integer",
|
|
30886
32686
|
"required": false,
|
|
30887
|
-
"description": "
|
|
32687
|
+
"description": "The original ticket's number; required when state_reason is duplicate."
|
|
30888
32688
|
}
|
|
30889
32689
|
]
|
|
30890
32690
|
}
|
|
@@ -31581,7 +33381,7 @@ export const operations = [
|
|
|
31581
33381
|
"resource": "vault.authorizations",
|
|
31582
33382
|
"method": "create",
|
|
31583
33383
|
"summary": "Create authorization",
|
|
31584
|
-
"description": "Connect an OAuth service to an active vault using either an OAuth template or a resource URL. Unlike Anthropic mcp_oauth credential creation, this flow obtains tokens through user consent rather than accepting an auth token bundle; compatible mcp_oauth creation and updates return 501. Open connect_url, then poll praxis.vault.authorizations.retrieve until completed, failed or expired; only completed supplies the resulting secret_id.
|
|
33384
|
+
"description": "Connect an OAuth service to an active vault using either an OAuth template or a resource URL. Unlike Anthropic mcp_oauth credential creation, this flow obtains tokens through user consent rather than accepting an auth token bundle; compatible mcp_oauth creation and updates return 501. Open connect_url, then poll praxis.vault.authorizations.retrieve until completed, failed or expired; only completed supplies the resulting secret_id. The resulting oauth secret serves vault-backed MCP authentication — an Agent session or deployment whose vault_ids include this vault sends it to the MCP server whose URL equals this authorization's resource URL (normalized), and the platform refreshes the token once when that server answers 401.",
|
|
31585
33385
|
"http": "POST",
|
|
31586
33386
|
"path": "/vault/v1/authorizations",
|
|
31587
33387
|
"streaming": "no",
|
|
@@ -31993,7 +33793,7 @@ export const operations = [
|
|
|
31993
33793
|
"resource": "vault.vaults.secrets",
|
|
31994
33794
|
"method": "create",
|
|
31995
33795
|
"summary": "Create secret",
|
|
31996
|
-
"description": "Store a manually supplied token in an active vault.
|
|
33796
|
+
"description": "Store a manually supplied token in an active vault. Declare allowed_hosts (1–16 domains) to let the value be redeemed for those destinations; omit it to store an empty list, which name-based resolution still returns but no destination can redeem, and which a service agent's session environment never receives either way. MCP credential matching reads the same declarations, so a `*.` entry covers subdomains there too. Unlike Anthropic credentials, this native operation takes name and value directly and creates only static secrets; use praxis.vault.authorizations.create for OAuth. Its name must be unused by any non-archived secret in that vault; the response contains metadata but never the supplied value. Application praxis_vault_ref bindings declare vault_id and secret (the secret name), but currently return 501; do not copy the value into a plain-text binding or metadata as a substitute.",
|
|
31997
33797
|
"http": "POST",
|
|
31998
33798
|
"path": "/vault/v1/vaults/{vault_id}/secrets",
|
|
31999
33799
|
"streaming": "no",
|
|
@@ -32026,7 +33826,7 @@ export const operations = [
|
|
|
32026
33826
|
"type": "array",
|
|
32027
33827
|
"itemType": "string",
|
|
32028
33828
|
"required": false,
|
|
32029
|
-
"description": "Allowed destinations for the secret.
|
|
33829
|
+
"description": "Allowed destinations for the secret; checked at write and enforced when a value is redeemed for a destination host, which an empty list never satisfies. Omit it on creation to store an empty list: the value stays readable by name-based resolution only. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed. A service agent's session environment never receives a credential that declares hosts."
|
|
32030
33830
|
},
|
|
32031
33831
|
{
|
|
32032
33832
|
"name": "description",
|
|
@@ -32146,7 +33946,7 @@ export const operations = [
|
|
|
32146
33946
|
"type": "array",
|
|
32147
33947
|
"itemType": "string",
|
|
32148
33948
|
"required": false,
|
|
32149
|
-
"description": "Allowed destinations for the secret.
|
|
33949
|
+
"description": "Allowed destinations for the secret; checked at write and enforced when a value is redeemed for a destination host. Omit it to keep the current list; an empty list removes the declaration, so every redemption is denied and only name-based resolution still returns the value. When supplied with entries, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed. A service agent's session environment never receives a credential that declares hosts."
|
|
32150
33950
|
},
|
|
32151
33951
|
{
|
|
32152
33952
|
"name": "description",
|
|
@@ -32250,7 +34050,7 @@ export const operations = [
|
|
|
32250
34050
|
"resource": "vault.vaults.secrets",
|
|
32251
34051
|
"method": "import",
|
|
32252
34052
|
"summary": "Import secrets",
|
|
32253
|
-
"description": "Import lines or dotenv text into an active vault, reporting success or failure for each entry. Existing names have their values replaced; their hosts change only when that line supplies allowed_hosts. Shared hosts apply only to newly created secrets; if neither shared nor per-line hosts are supplied, new secrets
|
|
34053
|
+
"description": "Import lines or dotenv text into an active vault, reporting success or failure for each entry. Existing names have their values replaced; their hosts change only when that line supplies allowed_hosts. Shared hosts apply only to newly created secrets; if neither shared nor per-line hosts are supplied, new secrets get an empty host list, which name-based resolution still returns but no destination can redeem. Imported entries carry the same host rules as Create secret, and a service agent's session environment never receives a credential that declares hosts.",
|
|
32254
34054
|
"http": "POST",
|
|
32255
34055
|
"path": "/vault/v1/vaults/{vault_id}/secrets:import",
|
|
32256
34056
|
"streaming": "no",
|