@deepraxis/sdk 0.1.1-dev.7c1ec74 → 0.1.1-dev.7d42392
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 +166 -1
- 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 +292 -46
- package/dist/generated/sdk.gen.js +787 -77
- package/dist/generated/types.gen.d.ts +7454 -1697
- 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.js +1559 -166
- package/dist/resources.generated.d.ts +993 -255
- package/dist/resources.generated.js +95 -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",
|
|
@@ -780,7 +780,7 @@ export const operations = [
|
|
|
780
780
|
"resource": "agent.agents",
|
|
781
781
|
"method": "retrieveEmbedPolicy",
|
|
782
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)
|
|
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
784
|
"http": "GET",
|
|
785
785
|
"path": "/agent/v1/agents/{agent_id}/embed_policy",
|
|
786
786
|
"streaming": "no",
|
|
@@ -798,7 +798,7 @@ export const operations = [
|
|
|
798
798
|
"resource": "agent.agents",
|
|
799
799
|
"method": "updateEmbedPolicy",
|
|
800
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. 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\"]}.",
|
|
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
802
|
"http": "POST",
|
|
803
803
|
"path": "/agent/v1/agents/{agent_id}/embed_policy",
|
|
804
804
|
"streaming": "no",
|
|
@@ -832,6 +832,12 @@ export const operations = [
|
|
|
832
832
|
"type": "object",
|
|
833
833
|
"required": false,
|
|
834
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."
|
|
835
841
|
}
|
|
836
842
|
],
|
|
837
843
|
"example": {
|
|
@@ -1007,6 +1013,42 @@ export const operations = [
|
|
|
1007
1013
|
}
|
|
1008
1014
|
]
|
|
1009
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
|
+
},
|
|
1010
1052
|
{
|
|
1011
1053
|
"resource": "agent.agents.unarchive",
|
|
1012
1054
|
"method": "create",
|
|
@@ -1084,7 +1126,7 @@ export const operations = [
|
|
|
1084
1126
|
"resource": "agent.computers",
|
|
1085
1127
|
"method": "list",
|
|
1086
1128
|
"summary": "List Computers",
|
|
1087
|
-
"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.",
|
|
1088
1130
|
"http": "GET",
|
|
1089
1131
|
"path": "/agent/v1/computers",
|
|
1090
1132
|
"streaming": "no",
|
|
@@ -1109,7 +1151,7 @@ export const operations = [
|
|
|
1109
1151
|
"resource": "agent.computers",
|
|
1110
1152
|
"method": "create",
|
|
1111
1153
|
"summary": "Create Computer",
|
|
1112
|
-
"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.",
|
|
1113
1155
|
"http": "POST",
|
|
1114
1156
|
"path": "/agent/v1/computers",
|
|
1115
1157
|
"streaming": "no",
|
|
@@ -1156,7 +1198,7 @@ export const operations = [
|
|
|
1156
1198
|
"resource": "agent.computers",
|
|
1157
1199
|
"method": "retrieve",
|
|
1158
1200
|
"summary": "Get Computer",
|
|
1159
|
-
"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.",
|
|
1160
1202
|
"http": "GET",
|
|
1161
1203
|
"path": "/agent/v1/computers/{computer_id}",
|
|
1162
1204
|
"streaming": "no",
|
|
@@ -1174,7 +1216,7 @@ export const operations = [
|
|
|
1174
1216
|
"resource": "agent.computers",
|
|
1175
1217
|
"method": "update",
|
|
1176
1218
|
"summary": "Update Computer",
|
|
1177
|
-
"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.",
|
|
1178
1220
|
"http": "POST",
|
|
1179
1221
|
"path": "/agent/v1/computers/{computer_id}",
|
|
1180
1222
|
"streaming": "no",
|
|
@@ -1203,7 +1245,7 @@ export const operations = [
|
|
|
1203
1245
|
"resource": "agent.computers",
|
|
1204
1246
|
"method": "archive",
|
|
1205
1247
|
"summary": "Archive Computer",
|
|
1206
|
-
"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.",
|
|
1207
1249
|
"http": "POST",
|
|
1208
1250
|
"path": "/agent/v1/computers/{computer_id}/archive",
|
|
1209
1251
|
"streaming": "no",
|
|
@@ -1283,7 +1325,7 @@ export const operations = [
|
|
|
1283
1325
|
"resource": "agent.computers.files",
|
|
1284
1326
|
"method": "list",
|
|
1285
1327
|
"summary": "List Computer Files",
|
|
1286
|
-
"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.",
|
|
1287
1329
|
"http": "GET",
|
|
1288
1330
|
"path": "/agent/v1/computers/{computer_id}/files",
|
|
1289
1331
|
"streaming": "no",
|
|
@@ -1308,7 +1350,7 @@ export const operations = [
|
|
|
1308
1350
|
"resource": "agent.computers.files",
|
|
1309
1351
|
"method": "retrieveContent",
|
|
1310
1352
|
"summary": "Get Computer File Content",
|
|
1311
|
-
"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.",
|
|
1312
1354
|
"http": "GET",
|
|
1313
1355
|
"path": "/agent/v1/computers/{computer_id}/files/content",
|
|
1314
1356
|
"streaming": "no",
|
|
@@ -1354,6 +1396,50 @@ export const operations = [
|
|
|
1354
1396
|
}
|
|
1355
1397
|
]
|
|
1356
1398
|
},
|
|
1399
|
+
{
|
|
1400
|
+
"resource": "agent.computers.files",
|
|
1401
|
+
"method": "retrievePreview",
|
|
1402
|
+
"summary": "Preview a computer file",
|
|
1403
|
+
"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.",
|
|
1404
|
+
"http": "GET",
|
|
1405
|
+
"path": "/agent/v1/computers/{computer_id}/files/preview",
|
|
1406
|
+
"streaming": "no",
|
|
1407
|
+
"pagination": false,
|
|
1408
|
+
"pathParams": [
|
|
1409
|
+
{
|
|
1410
|
+
"name": "computer_id",
|
|
1411
|
+
"sdkName": "computer_id",
|
|
1412
|
+
"description": "Computer id from computer creation or listing; a computer another tenant owns is not found."
|
|
1413
|
+
}
|
|
1414
|
+
],
|
|
1415
|
+
"query": [
|
|
1416
|
+
{
|
|
1417
|
+
"name": "path",
|
|
1418
|
+
"type": "string",
|
|
1419
|
+
"required": true,
|
|
1420
|
+
"description": "Absolute path of the file on the computer, or a /workspace/ relative path."
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
"name": "v",
|
|
1424
|
+
"type": "string",
|
|
1425
|
+
"required": false,
|
|
1426
|
+
"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."
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"name": "variant",
|
|
1430
|
+
"type": "string",
|
|
1431
|
+
"enum": [
|
|
1432
|
+
"auto",
|
|
1433
|
+
"image",
|
|
1434
|
+
"pdf",
|
|
1435
|
+
"text",
|
|
1436
|
+
"original"
|
|
1437
|
+
],
|
|
1438
|
+
"required": false,
|
|
1439
|
+
"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."
|
|
1440
|
+
}
|
|
1441
|
+
]
|
|
1442
|
+
},
|
|
1357
1443
|
{
|
|
1358
1444
|
"resource": "agent.computers.leases",
|
|
1359
1445
|
"method": "delete",
|
|
@@ -1560,7 +1646,7 @@ export const operations = [
|
|
|
1560
1646
|
"resource": "agent.deployments",
|
|
1561
1647
|
"method": "create",
|
|
1562
1648
|
"summary": "Create deployment",
|
|
1563
|
-
"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.",
|
|
1649
|
+
"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\"}}.",
|
|
1564
1650
|
"http": "POST",
|
|
1565
1651
|
"path": "/agent/v1/deployments",
|
|
1566
1652
|
"streaming": "no",
|
|
@@ -2179,6 +2265,16 @@ export const operations = [
|
|
|
2179
2265
|
"required": false,
|
|
2180
2266
|
"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."
|
|
2181
2267
|
},
|
|
2268
|
+
{
|
|
2269
|
+
"name": "workspace",
|
|
2270
|
+
"type": "string",
|
|
2271
|
+
"enum": [
|
|
2272
|
+
"shared",
|
|
2273
|
+
"isolated"
|
|
2274
|
+
],
|
|
2275
|
+
"required": false,
|
|
2276
|
+
"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."
|
|
2277
|
+
},
|
|
2182
2278
|
{
|
|
2183
2279
|
"name": "computer_id",
|
|
2184
2280
|
"type": "string",
|
|
@@ -2736,11 +2832,40 @@ export const operations = [
|
|
|
2736
2832
|
]
|
|
2737
2833
|
}
|
|
2738
2834
|
},
|
|
2835
|
+
{
|
|
2836
|
+
"resource": "agent.sessions.name",
|
|
2837
|
+
"method": "create",
|
|
2838
|
+
"summary": "Rename Session (Extension)",
|
|
2839
|
+
"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\"}.",
|
|
2840
|
+
"http": "POST",
|
|
2841
|
+
"path": "/agent/v1/sessions/{session_id}/name",
|
|
2842
|
+
"streaming": "no",
|
|
2843
|
+
"pagination": false,
|
|
2844
|
+
"pathParams": [
|
|
2845
|
+
{
|
|
2846
|
+
"name": "session_id",
|
|
2847
|
+
"sdkName": "session_id",
|
|
2848
|
+
"description": "Session id from session creation or listing. The reserved name main is not renameable."
|
|
2849
|
+
}
|
|
2850
|
+
],
|
|
2851
|
+
"query": [],
|
|
2852
|
+
"body": {
|
|
2853
|
+
"required": true,
|
|
2854
|
+
"fields": [
|
|
2855
|
+
{
|
|
2856
|
+
"name": "name",
|
|
2857
|
+
"type": "string",
|
|
2858
|
+
"required": true,
|
|
2859
|
+
"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."
|
|
2860
|
+
}
|
|
2861
|
+
]
|
|
2862
|
+
}
|
|
2863
|
+
},
|
|
2739
2864
|
{
|
|
2740
2865
|
"resource": "agent.sessions.requests",
|
|
2741
2866
|
"method": "list",
|
|
2742
2867
|
"summary": "List Session Requests (Extension)",
|
|
2743
|
-
"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 (
|
|
2868
|
+
"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.",
|
|
2744
2869
|
"http": "GET",
|
|
2745
2870
|
"path": "/agent/v1/sessions/{session_id}/requests",
|
|
2746
2871
|
"streaming": "no",
|
|
@@ -3370,7 +3495,7 @@ export const operations = [
|
|
|
3370
3495
|
"resource": "agent.toolsets",
|
|
3371
3496
|
"method": "list",
|
|
3372
3497
|
"summary": "List Toolsets",
|
|
3373
|
-
"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
|
|
3498
|
+
"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.",
|
|
3374
3499
|
"http": "GET",
|
|
3375
3500
|
"path": "/agent/v1/toolsets",
|
|
3376
3501
|
"streaming": "no",
|
|
@@ -4074,7 +4199,7 @@ export const operations = [
|
|
|
4074
4199
|
"resource": "application.workers.versions",
|
|
4075
4200
|
"method": "create",
|
|
4076
4201
|
"summary": "Create version",
|
|
4077
|
-
"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.",
|
|
4202
|
+
"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.",
|
|
4078
4203
|
"http": "POST",
|
|
4079
4204
|
"path": "/application/v1/workers/{worker_id}/versions",
|
|
4080
4205
|
"streaming": "no",
|
|
@@ -7262,6 +7387,18 @@ export const operations = [
|
|
|
7262
7387
|
]
|
|
7263
7388
|
}
|
|
7264
7389
|
},
|
|
7390
|
+
{
|
|
7391
|
+
"resource": "billing.prices",
|
|
7392
|
+
"method": "list",
|
|
7393
|
+
"summary": "List current prices",
|
|
7394
|
+
"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.",
|
|
7395
|
+
"http": "GET",
|
|
7396
|
+
"path": "/billing/v1/prices",
|
|
7397
|
+
"streaming": "no",
|
|
7398
|
+
"pagination": false,
|
|
7399
|
+
"pathParams": [],
|
|
7400
|
+
"query": []
|
|
7401
|
+
},
|
|
7265
7402
|
{
|
|
7266
7403
|
"resource": "browser.connect",
|
|
7267
7404
|
"method": "retrieve",
|
|
@@ -11461,7 +11598,7 @@ export const operations = [
|
|
|
11461
11598
|
"resource": "cut.projects",
|
|
11462
11599
|
"method": "execute",
|
|
11463
11600
|
"summary": "Execute editing script",
|
|
11464
|
-
"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",
|
|
11601
|
+
"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 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",
|
|
11465
11602
|
"http": "POST",
|
|
11466
11603
|
"path": "/cut/v1/projects/{project_id}:execute",
|
|
11467
11604
|
"streaming": "no",
|
|
@@ -12524,7 +12661,7 @@ export const operations = [
|
|
|
12524
12661
|
{
|
|
12525
12662
|
"name": "id",
|
|
12526
12663
|
"sdkName": "id",
|
|
12527
|
-
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
12664
|
+
"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."
|
|
12528
12665
|
}
|
|
12529
12666
|
],
|
|
12530
12667
|
"query": []
|
|
@@ -12533,7 +12670,7 @@ export const operations = [
|
|
|
12533
12670
|
"resource": "devops.changes",
|
|
12534
12671
|
"method": "abandon",
|
|
12535
12672
|
"summary": "Abandon a change",
|
|
12536
|
-
"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).
|
|
12673
|
+
"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.",
|
|
12537
12674
|
"http": "POST",
|
|
12538
12675
|
"path": "/devops/v1/changes/{id}:abandon",
|
|
12539
12676
|
"streaming": "no",
|
|
@@ -12542,7 +12679,7 @@ export const operations = [
|
|
|
12542
12679
|
{
|
|
12543
12680
|
"name": "id",
|
|
12544
12681
|
"sdkName": "id",
|
|
12545
|
-
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
12682
|
+
"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."
|
|
12546
12683
|
}
|
|
12547
12684
|
],
|
|
12548
12685
|
"query": [],
|
|
@@ -12571,7 +12708,7 @@ export const operations = [
|
|
|
12571
12708
|
{
|
|
12572
12709
|
"name": "id",
|
|
12573
12710
|
"sdkName": "id",
|
|
12574
|
-
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
12711
|
+
"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."
|
|
12575
12712
|
}
|
|
12576
12713
|
],
|
|
12577
12714
|
"query": []
|
|
@@ -12589,7 +12726,7 @@ export const operations = [
|
|
|
12589
12726
|
{
|
|
12590
12727
|
"name": "id",
|
|
12591
12728
|
"sdkName": "id",
|
|
12592
|
-
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
12729
|
+
"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."
|
|
12593
12730
|
}
|
|
12594
12731
|
],
|
|
12595
12732
|
"query": [],
|
|
@@ -12609,7 +12746,7 @@ export const operations = [
|
|
|
12609
12746
|
"resource": "devops.changes",
|
|
12610
12747
|
"method": "openPullRequest",
|
|
12611
12748
|
"summary": "Open a change's pull request",
|
|
12612
|
-
"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. The pull request then appears on the change and runs its merge gate as usual. The id is the branch name and
|
|
12749
|
+
"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.",
|
|
12613
12750
|
"http": "POST",
|
|
12614
12751
|
"path": "/devops/v1/changes/{id}:openPullRequest",
|
|
12615
12752
|
"streaming": "no",
|
|
@@ -12618,7 +12755,7 @@ export const operations = [
|
|
|
12618
12755
|
{
|
|
12619
12756
|
"name": "id",
|
|
12620
12757
|
"sdkName": "id",
|
|
12621
|
-
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
12758
|
+
"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."
|
|
12622
12759
|
}
|
|
12623
12760
|
],
|
|
12624
12761
|
"query": [],
|
|
@@ -12822,7 +12959,7 @@ export const operations = [
|
|
|
12822
12959
|
"type": "array",
|
|
12823
12960
|
"itemType": "string",
|
|
12824
12961
|
"required": false,
|
|
12825
|
-
"description": "Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix. Omit it to write every field the environment object carries."
|
|
12962
|
+
"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."
|
|
12826
12963
|
}
|
|
12827
12964
|
]
|
|
12828
12965
|
}
|
|
@@ -13244,7 +13381,7 @@ export const operations = [
|
|
|
13244
13381
|
"resource": "devops.projects",
|
|
13245
13382
|
"method": "list",
|
|
13246
13383
|
"summary": "List projects",
|
|
13247
|
-
"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.",
|
|
13384
|
+
"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.",
|
|
13248
13385
|
"http": "GET",
|
|
13249
13386
|
"path": "/devops/v1/projects",
|
|
13250
13387
|
"streaming": "no",
|
|
@@ -13265,6 +13402,81 @@ export const operations = [
|
|
|
13265
13402
|
}
|
|
13266
13403
|
]
|
|
13267
13404
|
},
|
|
13405
|
+
{
|
|
13406
|
+
"resource": "devops.projects",
|
|
13407
|
+
"method": "create",
|
|
13408
|
+
"summary": "Create a project",
|
|
13409
|
+
"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).",
|
|
13410
|
+
"http": "POST",
|
|
13411
|
+
"path": "/devops/v1/projects",
|
|
13412
|
+
"streaming": "no",
|
|
13413
|
+
"pagination": false,
|
|
13414
|
+
"pathParams": [],
|
|
13415
|
+
"query": [],
|
|
13416
|
+
"body": {
|
|
13417
|
+
"required": true,
|
|
13418
|
+
"fields": [
|
|
13419
|
+
{
|
|
13420
|
+
"name": "name",
|
|
13421
|
+
"type": "string",
|
|
13422
|
+
"required": true,
|
|
13423
|
+
"description": "Kebab-case name, unique within the organization."
|
|
13424
|
+
},
|
|
13425
|
+
{
|
|
13426
|
+
"name": "description",
|
|
13427
|
+
"type": "string",
|
|
13428
|
+
"required": false,
|
|
13429
|
+
"description": "What the project is for, in your own words."
|
|
13430
|
+
},
|
|
13431
|
+
{
|
|
13432
|
+
"name": "provider",
|
|
13433
|
+
"type": "string",
|
|
13434
|
+
"enum": [
|
|
13435
|
+
"github",
|
|
13436
|
+
"platform"
|
|
13437
|
+
],
|
|
13438
|
+
"required": false,
|
|
13439
|
+
"description": "Where the code lives: github (the default) or platform, a git package of our own Git."
|
|
13440
|
+
},
|
|
13441
|
+
{
|
|
13442
|
+
"name": "package",
|
|
13443
|
+
"type": "string",
|
|
13444
|
+
"required": false,
|
|
13445
|
+
"description": "provider platform only: the id of a git package of your organization's registry. Not valid with connection or repository."
|
|
13446
|
+
},
|
|
13447
|
+
{
|
|
13448
|
+
"name": "initialRef",
|
|
13449
|
+
"type": "string",
|
|
13450
|
+
"required": false,
|
|
13451
|
+
"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."
|
|
13452
|
+
},
|
|
13453
|
+
{
|
|
13454
|
+
"name": "connection",
|
|
13455
|
+
"type": "string",
|
|
13456
|
+
"required": false,
|
|
13457
|
+
"description": "provider github only: the connection of a completed GitHub App install that can see the repository."
|
|
13458
|
+
},
|
|
13459
|
+
{
|
|
13460
|
+
"name": "repository",
|
|
13461
|
+
"type": "string",
|
|
13462
|
+
"required": false,
|
|
13463
|
+
"description": "provider github only: the repository as owner/name."
|
|
13464
|
+
},
|
|
13465
|
+
{
|
|
13466
|
+
"name": "settings",
|
|
13467
|
+
"type": "object",
|
|
13468
|
+
"required": false,
|
|
13469
|
+
"description": "Delivery settings; keys you leave out take their defaults."
|
|
13470
|
+
},
|
|
13471
|
+
{
|
|
13472
|
+
"name": "requestId",
|
|
13473
|
+
"type": "string",
|
|
13474
|
+
"required": false,
|
|
13475
|
+
"description": "Idempotency key: repeat the call with the same value to be given the same answer."
|
|
13476
|
+
}
|
|
13477
|
+
]
|
|
13478
|
+
}
|
|
13479
|
+
},
|
|
13268
13480
|
{
|
|
13269
13481
|
"resource": "devops.projects",
|
|
13270
13482
|
"method": "retrieve",
|
|
@@ -13319,6 +13531,35 @@ export const operations = [
|
|
|
13319
13531
|
]
|
|
13320
13532
|
}
|
|
13321
13533
|
},
|
|
13534
|
+
{
|
|
13535
|
+
"resource": "devops.projects.defaultBranch",
|
|
13536
|
+
"method": "initialize",
|
|
13537
|
+
"summary": "Create a project's default branch",
|
|
13538
|
+
"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.",
|
|
13539
|
+
"http": "POST",
|
|
13540
|
+
"path": "/devops/v1/projects/{id}/default-branch:initialize",
|
|
13541
|
+
"streaming": "no",
|
|
13542
|
+
"pagination": false,
|
|
13543
|
+
"pathParams": [
|
|
13544
|
+
{
|
|
13545
|
+
"name": "id",
|
|
13546
|
+
"sdkName": "id",
|
|
13547
|
+
"description": "The project identifier returned by the project list, not the project's display name or its repository name."
|
|
13548
|
+
}
|
|
13549
|
+
],
|
|
13550
|
+
"query": [],
|
|
13551
|
+
"body": {
|
|
13552
|
+
"required": true,
|
|
13553
|
+
"fields": [
|
|
13554
|
+
{
|
|
13555
|
+
"name": "from",
|
|
13556
|
+
"type": "string",
|
|
13557
|
+
"required": true,
|
|
13558
|
+
"description": "An existing branch of the repository, for example import. The default branch is created at its head."
|
|
13559
|
+
}
|
|
13560
|
+
]
|
|
13561
|
+
}
|
|
13562
|
+
},
|
|
13322
13563
|
{
|
|
13323
13564
|
"resource": "devops.projects.changes",
|
|
13324
13565
|
"method": "list",
|
|
@@ -13450,6 +13691,37 @@ export const operations = [
|
|
|
13450
13691
|
}
|
|
13451
13692
|
}
|
|
13452
13693
|
},
|
|
13694
|
+
{
|
|
13695
|
+
"resource": "devops.projects.cleanups",
|
|
13696
|
+
"method": "list",
|
|
13697
|
+
"summary": "List a project's cleanup ledger",
|
|
13698
|
+
"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.",
|
|
13699
|
+
"http": "GET",
|
|
13700
|
+
"path": "/devops/v1/projects/{project}/cleanups",
|
|
13701
|
+
"streaming": "no",
|
|
13702
|
+
"pagination": false,
|
|
13703
|
+
"pathParams": [
|
|
13704
|
+
{
|
|
13705
|
+
"name": "project",
|
|
13706
|
+
"sdkName": "project",
|
|
13707
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
13708
|
+
}
|
|
13709
|
+
],
|
|
13710
|
+
"query": [
|
|
13711
|
+
{
|
|
13712
|
+
"name": "pageSize",
|
|
13713
|
+
"type": "integer",
|
|
13714
|
+
"required": false,
|
|
13715
|
+
"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."
|
|
13716
|
+
},
|
|
13717
|
+
{
|
|
13718
|
+
"name": "pageToken",
|
|
13719
|
+
"type": "string",
|
|
13720
|
+
"required": false,
|
|
13721
|
+
"description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
|
|
13722
|
+
}
|
|
13723
|
+
]
|
|
13724
|
+
},
|
|
13453
13725
|
{
|
|
13454
13726
|
"resource": "devops.projects.environments",
|
|
13455
13727
|
"method": "list",
|
|
@@ -14009,6 +14281,12 @@ export const operations = [
|
|
|
14009
14281
|
"type": "string",
|
|
14010
14282
|
"required": false,
|
|
14011
14283
|
"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."
|
|
14284
|
+
},
|
|
14285
|
+
{
|
|
14286
|
+
"name": "reviewed",
|
|
14287
|
+
"type": "boolean",
|
|
14288
|
+
"required": false,
|
|
14289
|
+
"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."
|
|
14012
14290
|
}
|
|
14013
14291
|
]
|
|
14014
14292
|
},
|
|
@@ -14351,7 +14629,7 @@ export const operations = [
|
|
|
14351
14629
|
"resource": "devops.projects",
|
|
14352
14630
|
"method": "retrieveTestPlan",
|
|
14353
14631
|
"summary": "Retrieve the merge gate's test plan at a commit",
|
|
14354
|
-
"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
|
|
14632
|
+
"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.",
|
|
14355
14633
|
"http": "GET",
|
|
14356
14634
|
"path": "/devops/v1/projects/{project}/test-plan",
|
|
14357
14635
|
"streaming": "no",
|
|
@@ -14375,6 +14653,16 @@ export const operations = [
|
|
|
14375
14653
|
"type": "string",
|
|
14376
14654
|
"required": false,
|
|
14377
14655
|
"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."
|
|
14656
|
+
},
|
|
14657
|
+
{
|
|
14658
|
+
"name": "view",
|
|
14659
|
+
"type": "string",
|
|
14660
|
+
"enum": [
|
|
14661
|
+
"full",
|
|
14662
|
+
"summary"
|
|
14663
|
+
],
|
|
14664
|
+
"required": false,
|
|
14665
|
+
"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."
|
|
14378
14666
|
}
|
|
14379
14667
|
]
|
|
14380
14668
|
},
|
|
@@ -14509,7 +14797,7 @@ export const operations = [
|
|
|
14509
14797
|
"resource": "devops.projects.testReports",
|
|
14510
14798
|
"method": "create",
|
|
14511
14799
|
"summary": "Upload an external test report",
|
|
14512
|
-
"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.",
|
|
14800
|
+
"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.",
|
|
14513
14801
|
"http": "POST",
|
|
14514
14802
|
"path": "/devops/v1/projects/{project}/test-reports",
|
|
14515
14803
|
"streaming": "no",
|
|
@@ -14539,7 +14827,7 @@ export const operations = [
|
|
|
14539
14827
|
"feedback"
|
|
14540
14828
|
],
|
|
14541
14829
|
"required": false,
|
|
14542
|
-
"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
|
|
14830
|
+
"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."
|
|
14543
14831
|
},
|
|
14544
14832
|
{
|
|
14545
14833
|
"name": "format",
|
|
@@ -14782,7 +15070,7 @@ export const operations = [
|
|
|
14782
15070
|
"enum": [
|
|
14783
15071
|
"development",
|
|
14784
15072
|
"integration",
|
|
14785
|
-
"
|
|
15073
|
+
"release"
|
|
14786
15074
|
],
|
|
14787
15075
|
"required": false,
|
|
14788
15076
|
"description": "Return only units of this stage; omit it to return every stage."
|
|
@@ -14850,7 +15138,7 @@ export const operations = [
|
|
|
14850
15138
|
"resource": "devops.projects.workspaces",
|
|
14851
15139
|
"method": "list",
|
|
14852
15140
|
"summary": "List a project's stage workspaces",
|
|
14853
|
-
"description": "List the project's three stage workspaces — development, integration and
|
|
15141
|
+
"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.",
|
|
14854
15142
|
"http": "GET",
|
|
14855
15143
|
"path": "/devops/v1/projects/{project}/workspaces",
|
|
14856
15144
|
"streaming": "no",
|
|
@@ -14882,7 +15170,7 @@ export const operations = [
|
|
|
14882
15170
|
{
|
|
14883
15171
|
"name": "stage",
|
|
14884
15172
|
"sdkName": "stage",
|
|
14885
|
-
"description": "The stage whose workspace you address: development, integration or
|
|
15173
|
+
"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."
|
|
14886
15174
|
}
|
|
14887
15175
|
],
|
|
14888
15176
|
"query": []
|
|
@@ -14905,7 +15193,7 @@ export const operations = [
|
|
|
14905
15193
|
{
|
|
14906
15194
|
"name": "stage",
|
|
14907
15195
|
"sdkName": "stage",
|
|
14908
|
-
"description": "The stage whose workspace you address: development, integration or
|
|
15196
|
+
"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."
|
|
14909
15197
|
}
|
|
14910
15198
|
],
|
|
14911
15199
|
"query": [],
|
|
@@ -15145,7 +15433,7 @@ export const operations = [
|
|
|
15145
15433
|
"resource": "devops.promotions",
|
|
15146
15434
|
"method": "retry",
|
|
15147
15435
|
"summary": "Retry a promotion",
|
|
15148
|
-
"description": "Continue a promotion that stopped part-way
|
|
15436
|
+
"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.",
|
|
15149
15437
|
"http": "POST",
|
|
15150
15438
|
"path": "/devops/v1/promotions/{id}:retry",
|
|
15151
15439
|
"streaming": "no",
|
|
@@ -15194,7 +15482,7 @@ export const operations = [
|
|
|
15194
15482
|
"resource": "devops.pullRequests",
|
|
15195
15483
|
"method": "retrieve",
|
|
15196
15484
|
"summary": "Retrieve a pull request",
|
|
15197
|
-
"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
|
|
15485
|
+
"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.",
|
|
15198
15486
|
"http": "GET",
|
|
15199
15487
|
"path": "/devops/v1/pull-requests/{id}",
|
|
15200
15488
|
"streaming": "no",
|
|
@@ -15216,12 +15504,12 @@ export const operations = [
|
|
|
15216
15504
|
]
|
|
15217
15505
|
},
|
|
15218
15506
|
{
|
|
15219
|
-
"resource": "devops.pullRequests",
|
|
15220
|
-
"method": "
|
|
15221
|
-
"summary": "
|
|
15222
|
-
"description": "
|
|
15507
|
+
"resource": "devops.pullRequests.reviews",
|
|
15508
|
+
"method": "create",
|
|
15509
|
+
"summary": "Review a pull request on our own Git",
|
|
15510
|
+
"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.",
|
|
15223
15511
|
"http": "POST",
|
|
15224
|
-
"path": "/devops/v1/pull-requests/{id}
|
|
15512
|
+
"path": "/devops/v1/pull-requests/{id}/reviews",
|
|
15225
15513
|
"streaming": "no",
|
|
15226
15514
|
"pagination": false,
|
|
15227
15515
|
"pathParams": [
|
|
@@ -15233,41 +15521,35 @@ export const operations = [
|
|
|
15233
15521
|
],
|
|
15234
15522
|
"query": [],
|
|
15235
15523
|
"body": {
|
|
15236
|
-
"required":
|
|
15524
|
+
"required": true,
|
|
15237
15525
|
"fields": [
|
|
15238
15526
|
{
|
|
15239
|
-
"name": "
|
|
15527
|
+
"name": "state",
|
|
15240
15528
|
"type": "string",
|
|
15241
15529
|
"enum": [
|
|
15242
|
-
"
|
|
15243
|
-
"
|
|
15244
|
-
"
|
|
15530
|
+
"approved",
|
|
15531
|
+
"changes_requested",
|
|
15532
|
+
"commented"
|
|
15245
15533
|
],
|
|
15246
|
-
"required":
|
|
15247
|
-
"description": "The
|
|
15248
|
-
},
|
|
15249
|
-
{
|
|
15250
|
-
"name": "queue",
|
|
15251
|
-
"type": "boolean",
|
|
15252
|
-
"required": false,
|
|
15253
|
-
"description": "True joins the pull request's (project, base) merge queue instead of merging now: the commit that eventually lands is one GitHub built from the current base and a test run proved. False or omitted merges immediately, which is only safe while nothing else is landing on the base."
|
|
15534
|
+
"required": true,
|
|
15535
|
+
"description": "The verdict. A value outside this set is refused with INVALID_ARGUMENT."
|
|
15254
15536
|
},
|
|
15255
15537
|
{
|
|
15256
|
-
"name": "
|
|
15538
|
+
"name": "body",
|
|
15257
15539
|
"type": "string",
|
|
15258
15540
|
"required": false,
|
|
15259
|
-
"description": "
|
|
15541
|
+
"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."
|
|
15260
15542
|
}
|
|
15261
15543
|
]
|
|
15262
15544
|
}
|
|
15263
15545
|
},
|
|
15264
15546
|
{
|
|
15265
15547
|
"resource": "devops.pullRequests",
|
|
15266
|
-
"method": "
|
|
15267
|
-
"summary": "
|
|
15268
|
-
"description": "
|
|
15548
|
+
"method": "close",
|
|
15549
|
+
"summary": "Close a pull request without merging it",
|
|
15550
|
+
"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.",
|
|
15269
15551
|
"http": "POST",
|
|
15270
|
-
"path": "/devops/v1/pull-requests/{id}:
|
|
15552
|
+
"path": "/devops/v1/pull-requests/{id}:close",
|
|
15271
15553
|
"streaming": "no",
|
|
15272
15554
|
"pagination": false,
|
|
15273
15555
|
"pathParams": [
|
|
@@ -15282,18 +15564,93 @@ export const operations = [
|
|
|
15282
15564
|
"required": true,
|
|
15283
15565
|
"fields": [
|
|
15284
15566
|
{
|
|
15285
|
-
"name": "
|
|
15286
|
-
"type": "string",
|
|
15287
|
-
"required": true,
|
|
15288
|
-
"description": "The pull request being judged: the same pr_… id the path carries, repeated here because this call reads it from the body. A missing or unknown id is refused with INVALID_ARGUMENT or PULL_REQUEST_NOT_FOUND."
|
|
15289
|
-
},
|
|
15290
|
-
{
|
|
15291
|
-
"name": "headSha",
|
|
15567
|
+
"name": "reason",
|
|
15292
15568
|
"type": "string",
|
|
15293
15569
|
"required": true,
|
|
15294
|
-
"description": "
|
|
15295
|
-
}
|
|
15296
|
-
|
|
15570
|
+
"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."
|
|
15571
|
+
}
|
|
15572
|
+
]
|
|
15573
|
+
}
|
|
15574
|
+
},
|
|
15575
|
+
{
|
|
15576
|
+
"resource": "devops.pullRequests",
|
|
15577
|
+
"method": "merge",
|
|
15578
|
+
"summary": "Merge a pull request through its gate",
|
|
15579
|
+
"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.",
|
|
15580
|
+
"http": "POST",
|
|
15581
|
+
"path": "/devops/v1/pull-requests/{id}:merge",
|
|
15582
|
+
"streaming": "no",
|
|
15583
|
+
"pagination": false,
|
|
15584
|
+
"pathParams": [
|
|
15585
|
+
{
|
|
15586
|
+
"name": "id",
|
|
15587
|
+
"sdkName": "id",
|
|
15588
|
+
"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."
|
|
15589
|
+
}
|
|
15590
|
+
],
|
|
15591
|
+
"query": [],
|
|
15592
|
+
"body": {
|
|
15593
|
+
"required": false,
|
|
15594
|
+
"fields": [
|
|
15595
|
+
{
|
|
15596
|
+
"name": "method",
|
|
15597
|
+
"type": "string",
|
|
15598
|
+
"enum": [
|
|
15599
|
+
"merge",
|
|
15600
|
+
"squash",
|
|
15601
|
+
"rebase"
|
|
15602
|
+
],
|
|
15603
|
+
"required": false,
|
|
15604
|
+
"description": "The shape GitHub should merge with; omitted means merge, and any other value is refused with INVALID_ARGUMENT."
|
|
15605
|
+
},
|
|
15606
|
+
{
|
|
15607
|
+
"name": "queue",
|
|
15608
|
+
"type": "boolean",
|
|
15609
|
+
"required": false,
|
|
15610
|
+
"description": "True joins the pull request's (project, base) merge queue instead of merging now: the commit that eventually lands is one GitHub built from the current base and a test run proved. False or omitted merges immediately, which is only safe while nothing else is landing on the base."
|
|
15611
|
+
},
|
|
15612
|
+
{
|
|
15613
|
+
"name": "requestId",
|
|
15614
|
+
"type": "string",
|
|
15615
|
+
"required": false,
|
|
15616
|
+
"description": "Caller-chosen key that makes the merge idempotent: a retry carrying the same key that reaches a pull request DevOps itself already merged answers that merge instead of calling GitHub twice. It does not make the merge wait — it only makes a repeat safe."
|
|
15617
|
+
}
|
|
15618
|
+
]
|
|
15619
|
+
}
|
|
15620
|
+
},
|
|
15621
|
+
{
|
|
15622
|
+
"resource": "devops.pullRequests",
|
|
15623
|
+
"method": "recordVerdict",
|
|
15624
|
+
"summary": "Record a review verdict on a pull request",
|
|
15625
|
+
"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.",
|
|
15626
|
+
"http": "POST",
|
|
15627
|
+
"path": "/devops/v1/pull-requests/{id}:recordVerdict",
|
|
15628
|
+
"streaming": "no",
|
|
15629
|
+
"pagination": false,
|
|
15630
|
+
"pathParams": [
|
|
15631
|
+
{
|
|
15632
|
+
"name": "id",
|
|
15633
|
+
"sdkName": "id",
|
|
15634
|
+
"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."
|
|
15635
|
+
}
|
|
15636
|
+
],
|
|
15637
|
+
"query": [],
|
|
15638
|
+
"body": {
|
|
15639
|
+
"required": true,
|
|
15640
|
+
"fields": [
|
|
15641
|
+
{
|
|
15642
|
+
"name": "pullRequest",
|
|
15643
|
+
"type": "string",
|
|
15644
|
+
"required": true,
|
|
15645
|
+
"description": "The pull request being judged: the same pr_… id the path carries, repeated here because this call reads it from the body. A missing or unknown id is refused with INVALID_ARGUMENT or PULL_REQUEST_NOT_FOUND."
|
|
15646
|
+
},
|
|
15647
|
+
{
|
|
15648
|
+
"name": "headSha",
|
|
15649
|
+
"type": "string",
|
|
15650
|
+
"required": true,
|
|
15651
|
+
"description": "The commit this judgement is about, which must be the pull request's current head; a verdict for any other commit is refused with INVALID_ARGUMENT, because a judgement of a version nobody reviewed must never pass the version that is there now."
|
|
15652
|
+
},
|
|
15653
|
+
{
|
|
15297
15654
|
"name": "result",
|
|
15298
15655
|
"type": "string",
|
|
15299
15656
|
"enum": [
|
|
@@ -15316,7 +15673,7 @@ export const operations = [
|
|
|
15316
15673
|
"resource": "devops.pullRequests",
|
|
15317
15674
|
"method": "rerunGate",
|
|
15318
15675
|
"summary": "Decide a pull request's merge gate again",
|
|
15319
|
-
"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
|
|
15676
|
+
"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.",
|
|
15320
15677
|
"http": "POST",
|
|
15321
15678
|
"path": "/devops/v1/pull-requests/{id}:rerunGate",
|
|
15322
15679
|
"streaming": "no",
|
|
@@ -15970,7 +16327,7 @@ export const operations = [
|
|
|
15970
16327
|
"resource": "file.files",
|
|
15971
16328
|
"method": "list",
|
|
15972
16329
|
"summary": "List files",
|
|
15973
|
-
"description": "List live files owned by your tenant, optionally filtered by purpose or
|
|
16330
|
+
"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.",
|
|
15974
16331
|
"http": "GET",
|
|
15975
16332
|
"path": "/file/v1/files",
|
|
15976
16333
|
"streaming": "no",
|
|
@@ -16011,6 +16368,13 @@ export const operations = [
|
|
|
16011
16368
|
"required": false,
|
|
16012
16369
|
"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."
|
|
16013
16370
|
},
|
|
16371
|
+
{
|
|
16372
|
+
"name": "ids",
|
|
16373
|
+
"type": "array",
|
|
16374
|
+
"itemType": "string",
|
|
16375
|
+
"required": false,
|
|
16376
|
+
"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."
|
|
16377
|
+
},
|
|
16014
16378
|
{
|
|
16015
16379
|
"name": "before",
|
|
16016
16380
|
"type": "string",
|
|
@@ -17256,6 +17620,17 @@ export const operations = [
|
|
|
17256
17620
|
"required": false,
|
|
17257
17621
|
"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."
|
|
17258
17622
|
},
|
|
17623
|
+
{
|
|
17624
|
+
"name": "default_tier",
|
|
17625
|
+
"type": "string",
|
|
17626
|
+
"enum": [
|
|
17627
|
+
"economy",
|
|
17628
|
+
"balanced",
|
|
17629
|
+
"quality"
|
|
17630
|
+
],
|
|
17631
|
+
"required": false,
|
|
17632
|
+
"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."
|
|
17633
|
+
},
|
|
17259
17634
|
{
|
|
17260
17635
|
"name": "name",
|
|
17261
17636
|
"type": "string",
|
|
@@ -17387,6 +17762,17 @@ export const operations = [
|
|
|
17387
17762
|
"required": false,
|
|
17388
17763
|
"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."
|
|
17389
17764
|
},
|
|
17765
|
+
{
|
|
17766
|
+
"name": "default_tier",
|
|
17767
|
+
"type": "string",
|
|
17768
|
+
"enum": [
|
|
17769
|
+
"economy",
|
|
17770
|
+
"balanced",
|
|
17771
|
+
"quality"
|
|
17772
|
+
],
|
|
17773
|
+
"required": false,
|
|
17774
|
+
"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."
|
|
17775
|
+
},
|
|
17390
17776
|
{
|
|
17391
17777
|
"name": "name",
|
|
17392
17778
|
"type": "string",
|
|
@@ -17854,7 +18240,7 @@ export const operations = [
|
|
|
17854
18240
|
"resource": "media.assets",
|
|
17855
18241
|
"method": "edit",
|
|
17856
18242
|
"summary": "Edit asset",
|
|
17857
|
-
"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 and
|
|
18243
|
+
"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.",
|
|
17858
18244
|
"http": "POST",
|
|
17859
18245
|
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
|
|
17860
18246
|
"streaming": "no",
|
|
@@ -17879,13 +18265,24 @@ export const operations = [
|
|
|
17879
18265
|
"name": "operation",
|
|
17880
18266
|
"type": "object",
|
|
17881
18267
|
"required": true,
|
|
17882
|
-
"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
|
|
18268
|
+
"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."
|
|
17883
18269
|
},
|
|
17884
18270
|
{
|
|
17885
18271
|
"name": "model",
|
|
17886
18272
|
"type": "string",
|
|
17887
18273
|
"required": false,
|
|
17888
|
-
"description": "Model that performs the edit; omit it to use the library default image model."
|
|
18274
|
+
"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."
|
|
18275
|
+
},
|
|
18276
|
+
{
|
|
18277
|
+
"name": "tier",
|
|
18278
|
+
"type": "string",
|
|
18279
|
+
"enum": [
|
|
18280
|
+
"economy",
|
|
18281
|
+
"balanced",
|
|
18282
|
+
"quality"
|
|
18283
|
+
],
|
|
18284
|
+
"required": false,
|
|
18285
|
+
"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."
|
|
17889
18286
|
},
|
|
17890
18287
|
{
|
|
17891
18288
|
"name": "asset_folder",
|
|
@@ -18213,7 +18610,7 @@ export const operations = [
|
|
|
18213
18610
|
"resource": "media.speech",
|
|
18214
18611
|
"method": "create",
|
|
18215
18612
|
"summary": "Create speech",
|
|
18216
|
-
"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.",
|
|
18613
|
+
"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.",
|
|
18217
18614
|
"http": "POST",
|
|
18218
18615
|
"path": "/media/v1/libraries/{library_id}/audio/speech",
|
|
18219
18616
|
"streaming": "no",
|
|
@@ -18272,6 +18669,23 @@ export const operations = [
|
|
|
18272
18669
|
"type": "string",
|
|
18273
18670
|
"required": false,
|
|
18274
18671
|
"description": "Language of the text, when the voice supports several."
|
|
18672
|
+
},
|
|
18673
|
+
{
|
|
18674
|
+
"name": "model",
|
|
18675
|
+
"type": "string",
|
|
18676
|
+
"required": false,
|
|
18677
|
+
"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."
|
|
18678
|
+
},
|
|
18679
|
+
{
|
|
18680
|
+
"name": "tier",
|
|
18681
|
+
"type": "string",
|
|
18682
|
+
"enum": [
|
|
18683
|
+
"economy",
|
|
18684
|
+
"balanced",
|
|
18685
|
+
"quality"
|
|
18686
|
+
],
|
|
18687
|
+
"required": false,
|
|
18688
|
+
"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."
|
|
18275
18689
|
}
|
|
18276
18690
|
]
|
|
18277
18691
|
}
|
|
@@ -18539,7 +18953,18 @@ export const operations = [
|
|
|
18539
18953
|
"name": "model",
|
|
18540
18954
|
"type": "string",
|
|
18541
18955
|
"required": false,
|
|
18542
|
-
"description": "Model with image-generation capability; omit it to use the library default image model."
|
|
18956
|
+
"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."
|
|
18957
|
+
},
|
|
18958
|
+
{
|
|
18959
|
+
"name": "tier",
|
|
18960
|
+
"type": "string",
|
|
18961
|
+
"enum": [
|
|
18962
|
+
"economy",
|
|
18963
|
+
"balanced",
|
|
18964
|
+
"quality"
|
|
18965
|
+
],
|
|
18966
|
+
"required": false,
|
|
18967
|
+
"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."
|
|
18543
18968
|
},
|
|
18544
18969
|
{
|
|
18545
18970
|
"name": "asset_folder",
|
|
@@ -18623,7 +19048,7 @@ export const operations = [
|
|
|
18623
19048
|
"resource": "media.libraries.jobs",
|
|
18624
19049
|
"method": "retrieve",
|
|
18625
19050
|
"summary": "Get job",
|
|
18626
|
-
"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
|
|
19051
|
+
"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.",
|
|
18627
19052
|
"http": "GET",
|
|
18628
19053
|
"path": "/media/v1/libraries/{library_id}/jobs/{job_id}",
|
|
18629
19054
|
"streaming": "no",
|
|
@@ -19164,7 +19589,7 @@ export const operations = [
|
|
|
19164
19589
|
"resource": "media.videos",
|
|
19165
19590
|
"method": "generate",
|
|
19166
19591
|
"summary": "Generate video",
|
|
19167
|
-
"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
|
|
19592
|
+
"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.",
|
|
19168
19593
|
"http": "POST",
|
|
19169
19594
|
"path": "/media/v1/libraries/{library_id}/videos/generations",
|
|
19170
19595
|
"streaming": "no",
|
|
@@ -19228,7 +19653,7 @@ export const operations = [
|
|
|
19228
19653
|
"type": "array",
|
|
19229
19654
|
"itemType": "object",
|
|
19230
19655
|
"required": false,
|
|
19231
|
-
"description": "Existing assets the model may use, each
|
|
19656
|
+
"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."
|
|
19232
19657
|
},
|
|
19233
19658
|
{
|
|
19234
19659
|
"name": "duration_seconds",
|
|
@@ -19280,13 +19705,24 @@ export const operations = [
|
|
|
19280
19705
|
"name": "seed",
|
|
19281
19706
|
"type": "integer",
|
|
19282
19707
|
"required": false,
|
|
19283
|
-
"description": "Seed for reproducible sampling; omit it to let the model choose one."
|
|
19708
|
+
"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."
|
|
19284
19709
|
},
|
|
19285
19710
|
{
|
|
19286
19711
|
"name": "model",
|
|
19287
19712
|
"type": "string",
|
|
19288
19713
|
"required": false,
|
|
19289
|
-
"description": "Model with video-generation capability; omit it to use the library default video model."
|
|
19714
|
+
"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."
|
|
19715
|
+
},
|
|
19716
|
+
{
|
|
19717
|
+
"name": "tier",
|
|
19718
|
+
"type": "string",
|
|
19719
|
+
"enum": [
|
|
19720
|
+
"economy",
|
|
19721
|
+
"balanced",
|
|
19722
|
+
"quality"
|
|
19723
|
+
],
|
|
19724
|
+
"required": false,
|
|
19725
|
+
"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."
|
|
19290
19726
|
},
|
|
19291
19727
|
{
|
|
19292
19728
|
"name": "asset_folder",
|
|
@@ -19313,6 +19749,79 @@ export const operations = [
|
|
|
19313
19749
|
]
|
|
19314
19750
|
}
|
|
19315
19751
|
},
|
|
19752
|
+
{
|
|
19753
|
+
"resource": "media.libraries.voices",
|
|
19754
|
+
"method": "create",
|
|
19755
|
+
"summary": "Create voice",
|
|
19756
|
+
"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.",
|
|
19757
|
+
"http": "POST",
|
|
19758
|
+
"path": "/media/v1/libraries/{library_id}/voices",
|
|
19759
|
+
"streaming": "no",
|
|
19760
|
+
"pagination": false,
|
|
19761
|
+
"pathParams": [
|
|
19762
|
+
{
|
|
19763
|
+
"name": "library_id",
|
|
19764
|
+
"sdkName": "library_id",
|
|
19765
|
+
"description": "Library ID returned by creation."
|
|
19766
|
+
}
|
|
19767
|
+
],
|
|
19768
|
+
"query": [],
|
|
19769
|
+
"body": {
|
|
19770
|
+
"required": true,
|
|
19771
|
+
"fields": []
|
|
19772
|
+
}
|
|
19773
|
+
},
|
|
19774
|
+
{
|
|
19775
|
+
"resource": "media.libraries.voices.designs",
|
|
19776
|
+
"method": "create",
|
|
19777
|
+
"summary": "Design a voice",
|
|
19778
|
+
"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.",
|
|
19779
|
+
"http": "POST",
|
|
19780
|
+
"path": "/media/v1/libraries/{library_id}/voices/designs",
|
|
19781
|
+
"streaming": "no",
|
|
19782
|
+
"pagination": false,
|
|
19783
|
+
"pathParams": [
|
|
19784
|
+
{
|
|
19785
|
+
"name": "library_id",
|
|
19786
|
+
"sdkName": "library_id",
|
|
19787
|
+
"description": "Library ID returned by creation."
|
|
19788
|
+
}
|
|
19789
|
+
],
|
|
19790
|
+
"query": [],
|
|
19791
|
+
"body": {
|
|
19792
|
+
"required": true,
|
|
19793
|
+
"fields": [
|
|
19794
|
+
{
|
|
19795
|
+
"name": "description",
|
|
19796
|
+
"type": "string",
|
|
19797
|
+
"required": true,
|
|
19798
|
+
"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."
|
|
19799
|
+
},
|
|
19800
|
+
{
|
|
19801
|
+
"name": "preview_text",
|
|
19802
|
+
"type": "string",
|
|
19803
|
+
"required": true,
|
|
19804
|
+
"description": "Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call."
|
|
19805
|
+
},
|
|
19806
|
+
{
|
|
19807
|
+
"name": "language",
|
|
19808
|
+
"type": "string",
|
|
19809
|
+
"enum": [
|
|
19810
|
+
"zh",
|
|
19811
|
+
"en"
|
|
19812
|
+
],
|
|
19813
|
+
"required": true,
|
|
19814
|
+
"description": "Language the previews speak: zh or en only."
|
|
19815
|
+
},
|
|
19816
|
+
{
|
|
19817
|
+
"name": "count",
|
|
19818
|
+
"type": "number",
|
|
19819
|
+
"required": false,
|
|
19820
|
+
"description": "How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset."
|
|
19821
|
+
}
|
|
19822
|
+
]
|
|
19823
|
+
}
|
|
19824
|
+
},
|
|
19316
19825
|
{
|
|
19317
19826
|
"resource": "meta.docs",
|
|
19318
19827
|
"method": "search",
|
|
@@ -20766,6 +21275,7 @@ export const operations = [
|
|
|
20766
21275
|
"enum": [
|
|
20767
21276
|
"anthropic.messages",
|
|
20768
21277
|
"cohere.rerank",
|
|
21278
|
+
"dashscope.voice_design",
|
|
20769
21279
|
"google.generateContent",
|
|
20770
21280
|
"mistral.ocr",
|
|
20771
21281
|
"openai.audio.speech",
|
|
@@ -22775,11 +23285,46 @@ export const operations = [
|
|
|
22775
23285
|
],
|
|
22776
23286
|
"query": []
|
|
22777
23287
|
},
|
|
23288
|
+
{
|
|
23289
|
+
"resource": "organization.effectiveSpec",
|
|
23290
|
+
"method": "retrieve",
|
|
23291
|
+
"summary": "Read the effective spec",
|
|
23292
|
+
"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.",
|
|
23293
|
+
"http": "GET",
|
|
23294
|
+
"path": "/organization/v1/effective_spec",
|
|
23295
|
+
"streaming": "no",
|
|
23296
|
+
"pagination": false,
|
|
23297
|
+
"pathParams": [],
|
|
23298
|
+
"query": [
|
|
23299
|
+
{
|
|
23300
|
+
"name": "actor",
|
|
23301
|
+
"type": "string",
|
|
23302
|
+
"required": false,
|
|
23303
|
+
"description": "Actor address whose every current seat is merged (agent:agent_... or human:usr_...); give this or position_id, not both."
|
|
23304
|
+
},
|
|
23305
|
+
{
|
|
23306
|
+
"name": "position_id",
|
|
23307
|
+
"type": "string",
|
|
23308
|
+
"required": false,
|
|
23309
|
+
"description": "One seat to merge, held or vacant (pos_...); give this or actor, not both."
|
|
23310
|
+
},
|
|
23311
|
+
{
|
|
23312
|
+
"name": "holder_kind",
|
|
23313
|
+
"type": "string",
|
|
23314
|
+
"enum": [
|
|
23315
|
+
"agent",
|
|
23316
|
+
"human"
|
|
23317
|
+
],
|
|
23318
|
+
"required": false,
|
|
23319
|
+
"description": "Which holder kind to merge for; omit to derive it from the seat's holder."
|
|
23320
|
+
}
|
|
23321
|
+
]
|
|
23322
|
+
},
|
|
22778
23323
|
{
|
|
22779
23324
|
"resource": "organization.events",
|
|
22780
23325
|
"method": "list",
|
|
22781
23326
|
"summary": "List Organization Usage Events",
|
|
22782
|
-
"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",
|
|
23327
|
+
"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",
|
|
22783
23328
|
"http": "GET",
|
|
22784
23329
|
"path": "/organization/v1/events",
|
|
22785
23330
|
"streaming": "no",
|
|
@@ -24271,39 +24816,327 @@ export const operations = [
|
|
|
24271
24816
|
"query": []
|
|
24272
24817
|
},
|
|
24273
24818
|
{
|
|
24274
|
-
"resource": "organization.
|
|
24275
|
-
"method": "
|
|
24276
|
-
"summary": "
|
|
24277
|
-
"description": "
|
|
24819
|
+
"resource": "organization.reconcile",
|
|
24820
|
+
"method": "pause",
|
|
24821
|
+
"summary": "Pause reconciliation",
|
|
24822
|
+
"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\"}.",
|
|
24823
|
+
"http": "POST",
|
|
24824
|
+
"path": "/organization/v1/reconcile/pause",
|
|
24825
|
+
"streaming": "no",
|
|
24826
|
+
"pagination": false,
|
|
24827
|
+
"pathParams": [],
|
|
24828
|
+
"query": [],
|
|
24829
|
+
"body": {
|
|
24830
|
+
"required": true,
|
|
24831
|
+
"fields": [
|
|
24832
|
+
{
|
|
24833
|
+
"name": "actor",
|
|
24834
|
+
"type": "string",
|
|
24835
|
+
"required": true,
|
|
24836
|
+
"description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
|
|
24837
|
+
}
|
|
24838
|
+
]
|
|
24839
|
+
}
|
|
24840
|
+
},
|
|
24841
|
+
{
|
|
24842
|
+
"resource": "organization.reconcile",
|
|
24843
|
+
"method": "retrievePlan",
|
|
24844
|
+
"summary": "Plan reconciliation",
|
|
24845
|
+
"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.",
|
|
24278
24846
|
"http": "GET",
|
|
24279
|
-
"path": "/organization/v1/
|
|
24847
|
+
"path": "/organization/v1/reconcile/plan",
|
|
24280
24848
|
"streaming": "no",
|
|
24281
24849
|
"pagination": false,
|
|
24282
24850
|
"pathParams": [],
|
|
24283
24851
|
"query": [
|
|
24284
24852
|
{
|
|
24285
|
-
"name": "
|
|
24286
|
-
"type": "string",
|
|
24287
|
-
"required": true,
|
|
24288
|
-
"description": "Window start, UTC ISO 8601, inclusive."
|
|
24289
|
-
},
|
|
24290
|
-
{
|
|
24291
|
-
"name": "ending_at",
|
|
24292
|
-
"type": "string",
|
|
24293
|
-
"required": true,
|
|
24294
|
-
"description": "Window end, UTC ISO 8601, exclusive. At most 93 days after starting_at."
|
|
24295
|
-
},
|
|
24296
|
-
{
|
|
24297
|
-
"name": "bucket_width",
|
|
24853
|
+
"name": "actor",
|
|
24298
24854
|
"type": "string",
|
|
24299
|
-
"enum": [
|
|
24300
|
-
"1h",
|
|
24301
|
-
"1d"
|
|
24302
|
-
],
|
|
24303
24855
|
"required": true,
|
|
24304
|
-
"description": "
|
|
24305
|
-
}
|
|
24306
|
-
|
|
24856
|
+
"description": "The holder whose seats are reconciled (agent:agent_... or human:usr_...); its every current seat is merged."
|
|
24857
|
+
}
|
|
24858
|
+
]
|
|
24859
|
+
},
|
|
24860
|
+
{
|
|
24861
|
+
"resource": "organization.reconcile",
|
|
24862
|
+
"method": "resume",
|
|
24863
|
+
"summary": "Resume reconciliation",
|
|
24864
|
+
"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\"}.",
|
|
24865
|
+
"http": "POST",
|
|
24866
|
+
"path": "/organization/v1/reconcile/resume",
|
|
24867
|
+
"streaming": "no",
|
|
24868
|
+
"pagination": false,
|
|
24869
|
+
"pathParams": [],
|
|
24870
|
+
"query": [],
|
|
24871
|
+
"body": {
|
|
24872
|
+
"required": true,
|
|
24873
|
+
"fields": [
|
|
24874
|
+
{
|
|
24875
|
+
"name": "actor",
|
|
24876
|
+
"type": "string",
|
|
24877
|
+
"required": true,
|
|
24878
|
+
"description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
|
|
24879
|
+
}
|
|
24880
|
+
]
|
|
24881
|
+
}
|
|
24882
|
+
},
|
|
24883
|
+
{
|
|
24884
|
+
"resource": "organization.reconcile.run",
|
|
24885
|
+
"method": "create",
|
|
24886
|
+
"summary": "Run reconciliation now",
|
|
24887
|
+
"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\"}.",
|
|
24888
|
+
"http": "POST",
|
|
24889
|
+
"path": "/organization/v1/reconcile/run",
|
|
24890
|
+
"streaming": "no",
|
|
24891
|
+
"pagination": false,
|
|
24892
|
+
"pathParams": [],
|
|
24893
|
+
"query": [],
|
|
24894
|
+
"body": {
|
|
24895
|
+
"required": true,
|
|
24896
|
+
"fields": [
|
|
24897
|
+
{
|
|
24898
|
+
"name": "actor",
|
|
24899
|
+
"type": "string",
|
|
24900
|
+
"required": true,
|
|
24901
|
+
"description": "Actor address to reconcile (agent:agent_... or human:usr_...); its every current seat is merged."
|
|
24902
|
+
}
|
|
24903
|
+
]
|
|
24904
|
+
}
|
|
24905
|
+
},
|
|
24906
|
+
{
|
|
24907
|
+
"resource": "organization.reconcile.status",
|
|
24908
|
+
"method": "list",
|
|
24909
|
+
"summary": "Read reconcile status",
|
|
24910
|
+
"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.",
|
|
24911
|
+
"http": "GET",
|
|
24912
|
+
"path": "/organization/v1/reconcile/status",
|
|
24913
|
+
"streaming": "no",
|
|
24914
|
+
"pagination": false,
|
|
24915
|
+
"pathParams": [],
|
|
24916
|
+
"query": [
|
|
24917
|
+
{
|
|
24918
|
+
"name": "actor",
|
|
24919
|
+
"type": "string",
|
|
24920
|
+
"required": true,
|
|
24921
|
+
"description": "The holder whose reconcile status to read (agent:agent_... or human:usr_...)."
|
|
24922
|
+
}
|
|
24923
|
+
]
|
|
24924
|
+
},
|
|
24925
|
+
{
|
|
24926
|
+
"resource": "organization.specs",
|
|
24927
|
+
"method": "list",
|
|
24928
|
+
"summary": "List specs",
|
|
24929
|
+
"description": "Lists the specs (规定) of the organization, most recently updated first; 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.",
|
|
24930
|
+
"http": "GET",
|
|
24931
|
+
"path": "/organization/v1/specs",
|
|
24932
|
+
"streaming": "no",
|
|
24933
|
+
"pagination": false,
|
|
24934
|
+
"pathParams": [],
|
|
24935
|
+
"query": [
|
|
24936
|
+
{
|
|
24937
|
+
"name": "limit",
|
|
24938
|
+
"type": "integer",
|
|
24939
|
+
"required": false,
|
|
24940
|
+
"description": "Maximum items per page, from 1 to 100; defaults to 20."
|
|
24941
|
+
},
|
|
24942
|
+
{
|
|
24943
|
+
"name": "page",
|
|
24944
|
+
"type": "string",
|
|
24945
|
+
"required": false,
|
|
24946
|
+
"description": "Opaque next_page cursor returned by the previous response; omit for the first page."
|
|
24947
|
+
},
|
|
24948
|
+
{
|
|
24949
|
+
"name": "kind",
|
|
24950
|
+
"type": "string",
|
|
24951
|
+
"enum": [
|
|
24952
|
+
"organization",
|
|
24953
|
+
"department",
|
|
24954
|
+
"level",
|
|
24955
|
+
"job",
|
|
24956
|
+
"position",
|
|
24957
|
+
"assignment"
|
|
24958
|
+
],
|
|
24959
|
+
"required": false,
|
|
24960
|
+
"description": "Only specs of this subject kind; omit to list every kind together."
|
|
24961
|
+
}
|
|
24962
|
+
]
|
|
24963
|
+
},
|
|
24964
|
+
{
|
|
24965
|
+
"resource": "organization.specs",
|
|
24966
|
+
"method": "retrieve",
|
|
24967
|
+
"summary": "Get a spec",
|
|
24968
|
+
"description": "Reads one subject's live spec, or one historical revision with revision; a subject never written answers revision 0 with an empty spec, so a first revise sends expected_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.",
|
|
24969
|
+
"http": "GET",
|
|
24970
|
+
"path": "/organization/v1/specs/{kind}/{id}",
|
|
24971
|
+
"streaming": "no",
|
|
24972
|
+
"pagination": false,
|
|
24973
|
+
"pathParams": [
|
|
24974
|
+
{
|
|
24975
|
+
"name": "kind",
|
|
24976
|
+
"sdkName": "kind",
|
|
24977
|
+
"description": "Kind of the subject whose spec to read."
|
|
24978
|
+
},
|
|
24979
|
+
{
|
|
24980
|
+
"name": "id",
|
|
24981
|
+
"sdkName": "id",
|
|
24982
|
+
"description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
|
|
24983
|
+
}
|
|
24984
|
+
],
|
|
24985
|
+
"query": [
|
|
24986
|
+
{
|
|
24987
|
+
"name": "revision",
|
|
24988
|
+
"type": "integer",
|
|
24989
|
+
"required": false,
|
|
24990
|
+
"description": "Read this historical revision instead of the live one; 0 answers the empty spec of a subject never written."
|
|
24991
|
+
}
|
|
24992
|
+
]
|
|
24993
|
+
},
|
|
24994
|
+
{
|
|
24995
|
+
"resource": "organization.specs",
|
|
24996
|
+
"method": "update",
|
|
24997
|
+
"summary": "Revise a spec",
|
|
24998
|
+
"description": "Replaces the whole spec of a subject: expected_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 body is stored and returned verbatim; its blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove, and it is validated against the block registry. Requires an organization owner or admin, or the head of the subject's department. Errors: 400 INVALID_PARAMS for a missing spec or expected_revision, 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: {\"expected_revision\":0,\"spec\":{\"document\":\"Deliver reliably.\"}}.",
|
|
24999
|
+
"http": "PUT",
|
|
25000
|
+
"path": "/organization/v1/specs/{kind}/{id}",
|
|
25001
|
+
"streaming": "no",
|
|
25002
|
+
"pagination": false,
|
|
25003
|
+
"pathParams": [
|
|
25004
|
+
{
|
|
25005
|
+
"name": "kind",
|
|
25006
|
+
"sdkName": "kind",
|
|
25007
|
+
"description": "Kind of the subject whose spec to revise."
|
|
25008
|
+
},
|
|
25009
|
+
{
|
|
25010
|
+
"name": "id",
|
|
25011
|
+
"sdkName": "id",
|
|
25012
|
+
"description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
|
|
25013
|
+
}
|
|
25014
|
+
],
|
|
25015
|
+
"query": [],
|
|
25016
|
+
"body": {
|
|
25017
|
+
"required": true,
|
|
25018
|
+
"fields": [
|
|
25019
|
+
{
|
|
25020
|
+
"name": "expected_revision",
|
|
25021
|
+
"type": "integer",
|
|
25022
|
+
"required": true,
|
|
25023
|
+
"description": "The revision you last read, or 0 when the subject has no spec yet; the write is refused with REVISION_CONFLICT unless it is still the live one."
|
|
25024
|
+
},
|
|
25025
|
+
{
|
|
25026
|
+
"name": "spec",
|
|
25027
|
+
"type": "object",
|
|
25028
|
+
"required": true,
|
|
25029
|
+
"description": "The whole spec body, replacing the previous one: a map from block name to block value, sent through verbatim. Registered blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove."
|
|
25030
|
+
}
|
|
25031
|
+
]
|
|
25032
|
+
}
|
|
25033
|
+
},
|
|
25034
|
+
{
|
|
25035
|
+
"resource": "organization.specs",
|
|
25036
|
+
"method": "retrieveDiff",
|
|
25037
|
+
"summary": "Diff two spec revisions",
|
|
25038
|
+
"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.",
|
|
25039
|
+
"http": "GET",
|
|
25040
|
+
"path": "/organization/v1/specs/{kind}/{id}/diff",
|
|
25041
|
+
"streaming": "no",
|
|
25042
|
+
"pagination": false,
|
|
25043
|
+
"pathParams": [
|
|
25044
|
+
{
|
|
25045
|
+
"name": "kind",
|
|
25046
|
+
"sdkName": "kind",
|
|
25047
|
+
"description": "Kind of the subject whose revisions to compare."
|
|
25048
|
+
},
|
|
25049
|
+
{
|
|
25050
|
+
"name": "id",
|
|
25051
|
+
"sdkName": "id",
|
|
25052
|
+
"description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
|
|
25053
|
+
}
|
|
25054
|
+
],
|
|
25055
|
+
"query": [
|
|
25056
|
+
{
|
|
25057
|
+
"name": "from",
|
|
25058
|
+
"type": "integer",
|
|
25059
|
+
"required": true,
|
|
25060
|
+
"description": "The earlier revision to compare from; 0 is the empty spec before the first write."
|
|
25061
|
+
},
|
|
25062
|
+
{
|
|
25063
|
+
"name": "to",
|
|
25064
|
+
"type": "integer",
|
|
25065
|
+
"required": true,
|
|
25066
|
+
"description": "The later revision to compare to."
|
|
25067
|
+
}
|
|
25068
|
+
]
|
|
25069
|
+
},
|
|
25070
|
+
{
|
|
25071
|
+
"resource": "organization.specs.revisions",
|
|
25072
|
+
"method": "list",
|
|
25073
|
+
"summary": "List spec revisions",
|
|
25074
|
+
"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.",
|
|
25075
|
+
"http": "GET",
|
|
25076
|
+
"path": "/organization/v1/specs/{kind}/{id}/revisions",
|
|
25077
|
+
"streaming": "no",
|
|
25078
|
+
"pagination": false,
|
|
25079
|
+
"pathParams": [
|
|
25080
|
+
{
|
|
25081
|
+
"name": "kind",
|
|
25082
|
+
"sdkName": "kind",
|
|
25083
|
+
"description": "Kind of the subject whose revision history to list."
|
|
25084
|
+
},
|
|
25085
|
+
{
|
|
25086
|
+
"name": "id",
|
|
25087
|
+
"sdkName": "id",
|
|
25088
|
+
"description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
|
|
25089
|
+
}
|
|
25090
|
+
],
|
|
25091
|
+
"query": [
|
|
25092
|
+
{
|
|
25093
|
+
"name": "limit",
|
|
25094
|
+
"type": "integer",
|
|
25095
|
+
"required": false,
|
|
25096
|
+
"description": "Maximum revisions per page, from 1 to 100; defaults to 20."
|
|
25097
|
+
},
|
|
25098
|
+
{
|
|
25099
|
+
"name": "page",
|
|
25100
|
+
"type": "string",
|
|
25101
|
+
"required": false,
|
|
25102
|
+
"description": "Opaque next_page cursor returned by the previous response; omit for the first page."
|
|
25103
|
+
}
|
|
25104
|
+
]
|
|
25105
|
+
},
|
|
25106
|
+
{
|
|
25107
|
+
"resource": "organization.usage",
|
|
25108
|
+
"method": "list",
|
|
25109
|
+
"summary": "List Organization Usage",
|
|
25110
|
+
"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",
|
|
25111
|
+
"http": "GET",
|
|
25112
|
+
"path": "/organization/v1/usage",
|
|
25113
|
+
"streaming": "no",
|
|
25114
|
+
"pagination": false,
|
|
25115
|
+
"pathParams": [],
|
|
25116
|
+
"query": [
|
|
25117
|
+
{
|
|
25118
|
+
"name": "starting_at",
|
|
25119
|
+
"type": "string",
|
|
25120
|
+
"required": true,
|
|
25121
|
+
"description": "Window start, UTC ISO 8601, inclusive."
|
|
25122
|
+
},
|
|
25123
|
+
{
|
|
25124
|
+
"name": "ending_at",
|
|
25125
|
+
"type": "string",
|
|
25126
|
+
"required": true,
|
|
25127
|
+
"description": "Window end, UTC ISO 8601, exclusive. At most 93 days after starting_at."
|
|
25128
|
+
},
|
|
25129
|
+
{
|
|
25130
|
+
"name": "bucket_width",
|
|
25131
|
+
"type": "string",
|
|
25132
|
+
"enum": [
|
|
25133
|
+
"1h",
|
|
25134
|
+
"1d"
|
|
25135
|
+
],
|
|
25136
|
+
"required": true,
|
|
25137
|
+
"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)."
|
|
25138
|
+
},
|
|
25139
|
+
{
|
|
24307
25140
|
"name": "time_zone",
|
|
24308
25141
|
"type": "string",
|
|
24309
25142
|
"required": false,
|
|
@@ -24346,44 +25179,319 @@ export const operations = [
|
|
|
24346
25179
|
"description": "安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。"
|
|
24347
25180
|
}
|
|
24348
25181
|
],
|
|
24349
|
-
"query": []
|
|
25182
|
+
"query": []
|
|
25183
|
+
},
|
|
25184
|
+
{
|
|
25185
|
+
"resource": "registry.installations",
|
|
25186
|
+
"method": "update",
|
|
25187
|
+
"summary": "Update an installation",
|
|
25188
|
+
"description": "把一条安装记录换到另一个版本。技能可以换到任何未撤回的版本(升级或回退),version 省略时换到最新版;插件只能换到库里的最新版本,version 给了也必须等于最新版。撤回的版本不能换过去。对账为 missing 的记录用它可以重新装回去。同名冲突和 20 个技能上限的规则与安装时相同。",
|
|
25189
|
+
"http": "POST",
|
|
25190
|
+
"path": "/registry/v1/installations/{installation_id}:update",
|
|
25191
|
+
"streaming": "no",
|
|
25192
|
+
"pagination": false,
|
|
25193
|
+
"pathParams": [
|
|
25194
|
+
{
|
|
25195
|
+
"name": "installation_id",
|
|
25196
|
+
"sdkName": "installation_id",
|
|
25197
|
+
"description": "安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。"
|
|
25198
|
+
}
|
|
25199
|
+
],
|
|
25200
|
+
"query": [],
|
|
25201
|
+
"body": {
|
|
25202
|
+
"required": true,
|
|
25203
|
+
"fields": [
|
|
25204
|
+
{
|
|
25205
|
+
"name": "version",
|
|
25206
|
+
"type": "string",
|
|
25207
|
+
"required": false,
|
|
25208
|
+
"description": "要换到的版本号,完整 semver;省略时换到最新版;插件给了也必须等于最新版,撤回的版本不能换。"
|
|
25209
|
+
}
|
|
25210
|
+
]
|
|
25211
|
+
}
|
|
25212
|
+
},
|
|
25213
|
+
{
|
|
25214
|
+
"resource": "registry.packages",
|
|
25215
|
+
"method": "retrieve",
|
|
25216
|
+
"summary": "Retrieve package",
|
|
25217
|
+
"description": "读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404。软删期间这个包一律 404,恢复后才重新出现。",
|
|
25218
|
+
"http": "GET",
|
|
25219
|
+
"path": "/registry/v1/packages/{package_id}",
|
|
25220
|
+
"streaming": "no",
|
|
25221
|
+
"pagination": false,
|
|
25222
|
+
"pathParams": [
|
|
25223
|
+
{
|
|
25224
|
+
"name": "package_id",
|
|
25225
|
+
"sdkName": "package_id",
|
|
25226
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25227
|
+
}
|
|
25228
|
+
],
|
|
25229
|
+
"query": []
|
|
25230
|
+
},
|
|
25231
|
+
{
|
|
25232
|
+
"resource": "registry.packages.gitCredential",
|
|
25233
|
+
"method": "create",
|
|
25234
|
+
"summary": "Create a git credential",
|
|
25235
|
+
"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 可以多次取,每次是一个新凭据,互不影响。",
|
|
25236
|
+
"http": "POST",
|
|
25237
|
+
"path": "/registry/v1/packages/{package_id}/git-credential",
|
|
25238
|
+
"streaming": "no",
|
|
25239
|
+
"pagination": false,
|
|
25240
|
+
"pathParams": [
|
|
25241
|
+
{
|
|
25242
|
+
"name": "package_id",
|
|
25243
|
+
"sdkName": "package_id",
|
|
25244
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25245
|
+
}
|
|
25246
|
+
],
|
|
25247
|
+
"query": [],
|
|
25248
|
+
"body": {
|
|
25249
|
+
"required": true,
|
|
25250
|
+
"fields": [
|
|
25251
|
+
{
|
|
25252
|
+
"name": "access",
|
|
25253
|
+
"type": "string",
|
|
25254
|
+
"enum": [
|
|
25255
|
+
"pull",
|
|
25256
|
+
"push",
|
|
25257
|
+
"push-protected"
|
|
25258
|
+
],
|
|
25259
|
+
"required": true,
|
|
25260
|
+
"description": "凭据能做什么;pull 只读,push 推分支但不能更新受保护的引用,push-protected 暂不发放(400)。"
|
|
25261
|
+
},
|
|
25262
|
+
{
|
|
25263
|
+
"name": "ttl_seconds",
|
|
25264
|
+
"type": "integer",
|
|
25265
|
+
"required": false,
|
|
25266
|
+
"description": "凭据的有效秒数,1-3600,省略为 3600;超出范围返回 400,不会被截断。"
|
|
25267
|
+
}
|
|
25268
|
+
]
|
|
25269
|
+
}
|
|
25270
|
+
},
|
|
25271
|
+
{
|
|
25272
|
+
"resource": "registry.packages.git.commits",
|
|
25273
|
+
"method": "retrieve",
|
|
25274
|
+
"summary": "Read a commit",
|
|
25275
|
+
"description": "按对象 id 读一个提交(完整 sha,不解析缩写)。返回提交信息、作者、提交时间与父提交;changed_files=true 时再返回它相对第一个父提交改了哪些文件(根提交的全部文件算新增),文件列表被上限截断时 changed_files_truncated 为 true。仓库里没有这个对象返回 404。",
|
|
25276
|
+
"http": "GET",
|
|
25277
|
+
"path": "/registry/v1/packages/{package_id}/git/commits/{sha}",
|
|
25278
|
+
"streaming": "no",
|
|
25279
|
+
"pagination": false,
|
|
25280
|
+
"pathParams": [
|
|
25281
|
+
{
|
|
25282
|
+
"name": "package_id",
|
|
25283
|
+
"sdkName": "package_id",
|
|
25284
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25285
|
+
},
|
|
25286
|
+
{
|
|
25287
|
+
"name": "sha",
|
|
25288
|
+
"sdkName": "sha",
|
|
25289
|
+
"description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
|
|
25290
|
+
}
|
|
25291
|
+
],
|
|
25292
|
+
"query": [
|
|
25293
|
+
{
|
|
25294
|
+
"name": "changed_files",
|
|
25295
|
+
"type": "boolean",
|
|
25296
|
+
"required": false,
|
|
25297
|
+
"description": "为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。"
|
|
25298
|
+
}
|
|
25299
|
+
]
|
|
25300
|
+
},
|
|
25301
|
+
{
|
|
25302
|
+
"resource": "registry.packages.git",
|
|
25303
|
+
"method": "retrieveCompare",
|
|
25304
|
+
"summary": "Compare two refs",
|
|
25305
|
+
"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。只读。",
|
|
25306
|
+
"http": "GET",
|
|
25307
|
+
"path": "/registry/v1/packages/{package_id}/git/compare",
|
|
25308
|
+
"streaming": "no",
|
|
25309
|
+
"pagination": false,
|
|
25310
|
+
"pathParams": [
|
|
25311
|
+
{
|
|
25312
|
+
"name": "package_id",
|
|
25313
|
+
"sdkName": "package_id",
|
|
25314
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25315
|
+
}
|
|
25316
|
+
],
|
|
25317
|
+
"query": [
|
|
25318
|
+
{
|
|
25319
|
+
"name": "base",
|
|
25320
|
+
"type": "string",
|
|
25321
|
+
"required": true,
|
|
25322
|
+
"description": "比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。"
|
|
25323
|
+
},
|
|
25324
|
+
{
|
|
25325
|
+
"name": "head",
|
|
25326
|
+
"type": "string",
|
|
25327
|
+
"required": true,
|
|
25328
|
+
"description": "比较的终点:分支名、标签名、refs/… 全名或完整对象 id。"
|
|
25329
|
+
}
|
|
25330
|
+
]
|
|
25331
|
+
},
|
|
25332
|
+
{
|
|
25333
|
+
"resource": "registry.packages.git.files",
|
|
25334
|
+
"method": "retrieve",
|
|
25335
|
+
"summary": "Download a file from a ref",
|
|
25336
|
+
"description": "按引用读一个文件的原始字节,边读边发(流式),没有大小上限。path 是仓库内相对路径,可以含斜杠;ref 不给就是默认分支。路径不是文件或引用不存在返回 404。",
|
|
25337
|
+
"http": "GET",
|
|
25338
|
+
"path": "/registry/v1/packages/{package_id}/git/files/{path}",
|
|
25339
|
+
"streaming": "no",
|
|
25340
|
+
"pagination": false,
|
|
25341
|
+
"pathParams": [
|
|
25342
|
+
{
|
|
25343
|
+
"name": "package_id",
|
|
25344
|
+
"sdkName": "package_id",
|
|
25345
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25346
|
+
},
|
|
25347
|
+
{
|
|
25348
|
+
"name": "path",
|
|
25349
|
+
"sdkName": "path",
|
|
25350
|
+
"description": "仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。"
|
|
25351
|
+
}
|
|
25352
|
+
],
|
|
25353
|
+
"query": [
|
|
25354
|
+
{
|
|
25355
|
+
"name": "ref",
|
|
25356
|
+
"type": "string",
|
|
25357
|
+
"required": false,
|
|
25358
|
+
"description": "分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。"
|
|
25359
|
+
}
|
|
25360
|
+
]
|
|
25361
|
+
},
|
|
25362
|
+
{
|
|
25363
|
+
"resource": "registry.packages.git",
|
|
25364
|
+
"method": "retrieveLog",
|
|
25365
|
+
"summary": "List commits",
|
|
25366
|
+
"description": "列出一个 git 包的提交历史,最新的在前。ref 不给就是包的默认分支;limit 与 offset 分页,has_more 为 true 表示还有下一页。只读:提交只能通过 git 协议推送(clone 地址在包的 clone_url)。OCI 包没有 git 读接口,返回 404。",
|
|
25367
|
+
"http": "GET",
|
|
25368
|
+
"path": "/registry/v1/packages/{package_id}/git/log",
|
|
25369
|
+
"streaming": "no",
|
|
25370
|
+
"pagination": false,
|
|
25371
|
+
"pathParams": [
|
|
25372
|
+
{
|
|
25373
|
+
"name": "package_id",
|
|
25374
|
+
"sdkName": "package_id",
|
|
25375
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25376
|
+
}
|
|
25377
|
+
],
|
|
25378
|
+
"query": [
|
|
25379
|
+
{
|
|
25380
|
+
"name": "ref",
|
|
25381
|
+
"type": "string",
|
|
25382
|
+
"required": false,
|
|
25383
|
+
"description": "分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。"
|
|
25384
|
+
},
|
|
25385
|
+
{
|
|
25386
|
+
"name": "limit",
|
|
25387
|
+
"type": "integer",
|
|
25388
|
+
"required": false,
|
|
25389
|
+
"description": "这一页最多返回多少个提交,1 到 100,默认 20。"
|
|
25390
|
+
},
|
|
25391
|
+
{
|
|
25392
|
+
"name": "offset",
|
|
25393
|
+
"type": "integer",
|
|
25394
|
+
"required": false,
|
|
25395
|
+
"description": "从历史开头跳过多少个提交,用来翻页;非负整数,默认 0。"
|
|
25396
|
+
}
|
|
25397
|
+
]
|
|
25398
|
+
},
|
|
25399
|
+
{
|
|
25400
|
+
"resource": "registry.packages.git.refs",
|
|
25401
|
+
"method": "list",
|
|
25402
|
+
"summary": "List branches and tags",
|
|
25403
|
+
"description": "列出一个 git 包的分支和标签,按名字排序;prefix 只取 refs/heads/(分支)或 refs/tags/(标签),不给就两者都列。page 从 1 起,size 1 到 500,默认 100;has_more 为 true 表示还有下一页。带注解的标签返回它指向的提交 id,不是标签对象的 id。想把一个名字换成提交 id 用 git/resolve,不要自己在这个列表里找。只读;OCI 包返回 404。",
|
|
25404
|
+
"http": "GET",
|
|
25405
|
+
"path": "/registry/v1/packages/{package_id}/git/refs",
|
|
25406
|
+
"streaming": "no",
|
|
25407
|
+
"pagination": false,
|
|
25408
|
+
"pathParams": [
|
|
25409
|
+
{
|
|
25410
|
+
"name": "package_id",
|
|
25411
|
+
"sdkName": "package_id",
|
|
25412
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25413
|
+
}
|
|
25414
|
+
],
|
|
25415
|
+
"query": [
|
|
25416
|
+
{
|
|
25417
|
+
"name": "prefix",
|
|
25418
|
+
"type": "string",
|
|
25419
|
+
"enum": [
|
|
25420
|
+
"refs/heads/",
|
|
25421
|
+
"refs/tags/"
|
|
25422
|
+
],
|
|
25423
|
+
"required": false,
|
|
25424
|
+
"description": "只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。"
|
|
25425
|
+
},
|
|
25426
|
+
{
|
|
25427
|
+
"name": "page",
|
|
25428
|
+
"type": "integer",
|
|
25429
|
+
"required": false,
|
|
25430
|
+
"description": "页码,从 1 起,默认 1。"
|
|
25431
|
+
},
|
|
25432
|
+
{
|
|
25433
|
+
"name": "size",
|
|
25434
|
+
"type": "integer",
|
|
25435
|
+
"required": false,
|
|
25436
|
+
"description": "这一页最多返回多少个引用,1 到 500,默认 100。"
|
|
25437
|
+
}
|
|
25438
|
+
]
|
|
25439
|
+
},
|
|
25440
|
+
{
|
|
25441
|
+
"resource": "registry.packages.git",
|
|
25442
|
+
"method": "retrieveResolve",
|
|
25443
|
+
"summary": "Resolve a ref",
|
|
25444
|
+
"description": "把一个引用换成它指向的提交 id:ref 可以是分支名、标签名、refs/… 全名、HEAD 或完整对象 id(40 或 64 位十六进制,缩写不解析)。名字既是标签又是分支时取标签。完整对象 id 只在仓库里真有这个提交时才返回。仓库没有这个引用或提交返回 404(GIT_OBJECT_NOT_FOUND),不会返回空值。要比较两个引用用 git/compare。",
|
|
25445
|
+
"http": "GET",
|
|
25446
|
+
"path": "/registry/v1/packages/{package_id}/git/resolve",
|
|
25447
|
+
"streaming": "no",
|
|
25448
|
+
"pagination": false,
|
|
25449
|
+
"pathParams": [
|
|
25450
|
+
{
|
|
25451
|
+
"name": "package_id",
|
|
25452
|
+
"sdkName": "package_id",
|
|
25453
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25454
|
+
}
|
|
25455
|
+
],
|
|
25456
|
+
"query": [
|
|
25457
|
+
{
|
|
25458
|
+
"name": "ref",
|
|
25459
|
+
"type": "string",
|
|
25460
|
+
"required": true,
|
|
25461
|
+
"description": "要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。"
|
|
25462
|
+
}
|
|
25463
|
+
]
|
|
24350
25464
|
},
|
|
24351
25465
|
{
|
|
24352
|
-
"resource": "registry.
|
|
24353
|
-
"method": "
|
|
24354
|
-
"summary": "
|
|
24355
|
-
"description": "
|
|
24356
|
-
"http": "
|
|
24357
|
-
"path": "/registry/v1/
|
|
25466
|
+
"resource": "registry.packages.git.trees",
|
|
25467
|
+
"method": "retrieve",
|
|
25468
|
+
"summary": "List a tree",
|
|
25469
|
+
"description": "读一个树对象(或一个提交的根树)的条目:名字、类型(blob / tree / commit)、模式、对象 id,以及已知时的大小。只列这一层,不递归。",
|
|
25470
|
+
"http": "GET",
|
|
25471
|
+
"path": "/registry/v1/packages/{package_id}/git/trees/{sha}",
|
|
24358
25472
|
"streaming": "no",
|
|
24359
25473
|
"pagination": false,
|
|
24360
25474
|
"pathParams": [
|
|
24361
25475
|
{
|
|
24362
|
-
"name": "
|
|
24363
|
-
"sdkName": "
|
|
24364
|
-
"description": "
|
|
25476
|
+
"name": "package_id",
|
|
25477
|
+
"sdkName": "package_id",
|
|
25478
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25479
|
+
},
|
|
25480
|
+
{
|
|
25481
|
+
"name": "sha",
|
|
25482
|
+
"sdkName": "sha",
|
|
25483
|
+
"description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
|
|
24365
25484
|
}
|
|
24366
25485
|
],
|
|
24367
|
-
"query": []
|
|
24368
|
-
"body": {
|
|
24369
|
-
"required": true,
|
|
24370
|
-
"fields": [
|
|
24371
|
-
{
|
|
24372
|
-
"name": "version",
|
|
24373
|
-
"type": "string",
|
|
24374
|
-
"required": false,
|
|
24375
|
-
"description": "要换到的版本号,完整 semver;省略时换到最新版;插件给了也必须等于最新版,撤回的版本不能换。"
|
|
24376
|
-
}
|
|
24377
|
-
]
|
|
24378
|
-
}
|
|
25486
|
+
"query": []
|
|
24379
25487
|
},
|
|
24380
25488
|
{
|
|
24381
|
-
"resource": "registry.packages",
|
|
24382
|
-
"method": "
|
|
24383
|
-
"summary": "
|
|
24384
|
-
"description": "
|
|
25489
|
+
"resource": "registry.packages.git.trees",
|
|
25490
|
+
"method": "retrieveRecursive",
|
|
25491
|
+
"summary": "List a tree recursively",
|
|
25492
|
+
"description": "读一个提交(或树对象)下的全部条目,递归,每个条目用相对根的完整路径命名,目录和子模块也是条目(子模块不展开)。适合要拿到整个仓库文件清单的场景(例如 DevOps 的构建判断);只想看一个目录用 git/trees/{sha}。相同的子树只读一次。条目上限 20000、树读取上限 1000 次,撞到上限时 truncated 为 true、entries 只是前一部分,不要当作全部。sha 通常来自 git/resolve。仓库里没有这个对象返回 404。只读。",
|
|
24385
25493
|
"http": "GET",
|
|
24386
|
-
"path": "/registry/v1/packages/{package_id}",
|
|
25494
|
+
"path": "/registry/v1/packages/{package_id}/git/trees/{sha}/recursive",
|
|
24387
25495
|
"streaming": "no",
|
|
24388
25496
|
"pagination": false,
|
|
24389
25497
|
"pathParams": [
|
|
@@ -24391,6 +25499,11 @@ export const operations = [
|
|
|
24391
25499
|
"name": "package_id",
|
|
24392
25500
|
"sdkName": "package_id",
|
|
24393
25501
|
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
25502
|
+
},
|
|
25503
|
+
{
|
|
25504
|
+
"name": "sha",
|
|
25505
|
+
"sdkName": "sha",
|
|
25506
|
+
"description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
|
|
24394
25507
|
}
|
|
24395
25508
|
],
|
|
24396
25509
|
"query": []
|
|
@@ -24674,7 +25787,7 @@ export const operations = [
|
|
|
24674
25787
|
"resource": "registry.repositories",
|
|
24675
25788
|
"method": "create",
|
|
24676
25789
|
"summary": "Create repository",
|
|
24677
|
-
"description": "新建一个库来分类存放包。name 是库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且不能和已有的库重名;display_name 和 description 是给人看的。每个组织本来就有一个默认库,需要新分类时才建;一个库非空时不能删除,所以不要用库来临时隔离一次上传。",
|
|
25790
|
+
"description": "新建一个库来分类存放包。name 是库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且不能和已有的库重名;display_name 和 description 是给人看的。每个组织本来就有一个默认库,需要新分类时才建;一个库非空时不能删除,所以不要用库来临时隔离一次上传。format 默认 oci,库里放技能和插件;要放 git 仓库就传 format=git,建库后 format 不能改。git 库需要这个组织已开放 git 功能,否则返回 409。",
|
|
24678
25791
|
"http": "POST",
|
|
24679
25792
|
"path": "/registry/v1/repositories",
|
|
24680
25793
|
"streaming": "no",
|
|
@@ -24701,6 +25814,16 @@ export const operations = [
|
|
|
24701
25814
|
"type": "string",
|
|
24702
25815
|
"required": false,
|
|
24703
25816
|
"description": "库的说明;省略时不写。"
|
|
25817
|
+
},
|
|
25818
|
+
{
|
|
25819
|
+
"name": "format",
|
|
25820
|
+
"type": "string",
|
|
25821
|
+
"enum": [
|
|
25822
|
+
"oci",
|
|
25823
|
+
"git"
|
|
25824
|
+
],
|
|
25825
|
+
"required": false,
|
|
25826
|
+
"description": "库里放什么,省略为 oci;git 库放 git 仓库,要求组织已开放 git 功能(否则 409),建库后不能改。"
|
|
24704
25827
|
}
|
|
24705
25828
|
]
|
|
24706
25829
|
}
|
|
@@ -24836,8 +25959,8 @@ export const operations = [
|
|
|
24836
25959
|
{
|
|
24837
25960
|
"resource": "registry.repositories.packages",
|
|
24838
25961
|
"method": "create",
|
|
24839
|
-
"summary": "
|
|
24840
|
-
"description": "
|
|
25962
|
+
"summary": "Create a package",
|
|
25963
|
+
"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 发布。",
|
|
24841
25964
|
"http": "POST",
|
|
24842
25965
|
"path": "/registry/v1/repositories/{repository_id}/packages",
|
|
24843
25966
|
"streaming": "no",
|
|
@@ -24855,41 +25978,196 @@ export const operations = [
|
|
|
24855
25978
|
"required": true,
|
|
24856
25979
|
"fields": [
|
|
24857
25980
|
{
|
|
24858
|
-
"name": "
|
|
25981
|
+
"name": "name",
|
|
24859
25982
|
"type": "string",
|
|
24860
25983
|
"required": true,
|
|
24861
|
-
"description": "
|
|
25984
|
+
"description": "包名,也是仓库名,小写字母、数字和 . _ -,在这个库里不能重名;出现在 clone_url 里,建后不能改。"
|
|
24862
25985
|
},
|
|
24863
25986
|
{
|
|
24864
|
-
"name": "
|
|
25987
|
+
"name": "format",
|
|
25988
|
+
"type": "string",
|
|
25989
|
+
"enum": [
|
|
25990
|
+
"git"
|
|
25991
|
+
],
|
|
25992
|
+
"required": true,
|
|
25993
|
+
"description": "建的包是什么;JSON 请求只能建 git 包,所以固定为 git。"
|
|
25994
|
+
},
|
|
25995
|
+
{
|
|
25996
|
+
"name": "default_branch",
|
|
24865
25997
|
"type": "string",
|
|
24866
25998
|
"required": false,
|
|
24867
|
-
"description": "
|
|
25999
|
+
"description": "默认分支名,省略为 main;默认受保护,普通凭据不能直接推,请推到别的分支。"
|
|
24868
26000
|
},
|
|
24869
26001
|
{
|
|
24870
|
-
"name": "
|
|
24871
|
-
"type": "
|
|
24872
|
-
"itemType": "string",
|
|
26002
|
+
"name": "description",
|
|
26003
|
+
"type": "string",
|
|
24873
26004
|
"required": false,
|
|
24874
|
-
"description": "
|
|
26005
|
+
"description": "仓库的说明;省略时为空。"
|
|
24875
26006
|
},
|
|
24876
26007
|
{
|
|
24877
|
-
"name": "
|
|
26008
|
+
"name": "import",
|
|
26009
|
+
"type": "object",
|
|
26010
|
+
"required": false,
|
|
26011
|
+
"description": "从一个现有的公开仓库导入内容,建出来的仓库不是空的;省略则建空仓库。"
|
|
26012
|
+
}
|
|
26013
|
+
]
|
|
26014
|
+
}
|
|
26015
|
+
},
|
|
26016
|
+
{
|
|
26017
|
+
"resource": "sandbox.byod.devices",
|
|
26018
|
+
"method": "list",
|
|
26019
|
+
"summary": "List your organization's own devices",
|
|
26020
|
+
"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:[]}]}.",
|
|
26021
|
+
"http": "GET",
|
|
26022
|
+
"path": "/sandbox/v1/byod/devices",
|
|
26023
|
+
"streaming": "no",
|
|
26024
|
+
"pagination": false,
|
|
26025
|
+
"pathParams": [],
|
|
26026
|
+
"query": []
|
|
26027
|
+
},
|
|
26028
|
+
{
|
|
26029
|
+
"resource": "sandbox.byod.devices",
|
|
26030
|
+
"method": "retrieve",
|
|
26031
|
+
"summary": "Read one of your organization's devices",
|
|
26032
|
+
"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.",
|
|
26033
|
+
"http": "GET",
|
|
26034
|
+
"path": "/sandbox/v1/byod/devices/{deviceID}",
|
|
26035
|
+
"streaming": "no",
|
|
26036
|
+
"pagination": false,
|
|
26037
|
+
"pathParams": [
|
|
26038
|
+
{
|
|
26039
|
+
"name": "deviceID",
|
|
26040
|
+
"sdkName": "deviceID",
|
|
26041
|
+
"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."
|
|
26042
|
+
}
|
|
26043
|
+
],
|
|
26044
|
+
"query": []
|
|
26045
|
+
},
|
|
26046
|
+
{
|
|
26047
|
+
"resource": "sandbox.byod.devices",
|
|
26048
|
+
"method": "update",
|
|
26049
|
+
"summary": "Rename one of your organization's devices",
|
|
26050
|
+
"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.",
|
|
26051
|
+
"http": "PATCH",
|
|
26052
|
+
"path": "/sandbox/v1/byod/devices/{deviceID}",
|
|
26053
|
+
"streaming": "no",
|
|
26054
|
+
"pagination": false,
|
|
26055
|
+
"pathParams": [
|
|
26056
|
+
{
|
|
26057
|
+
"name": "deviceID",
|
|
26058
|
+
"sdkName": "deviceID",
|
|
26059
|
+
"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."
|
|
26060
|
+
}
|
|
26061
|
+
],
|
|
26062
|
+
"query": [],
|
|
26063
|
+
"body": {
|
|
26064
|
+
"required": true,
|
|
26065
|
+
"fields": [
|
|
26066
|
+
{
|
|
26067
|
+
"name": "name",
|
|
26068
|
+
"type": "string",
|
|
26069
|
+
"required": true,
|
|
26070
|
+
"description": "New display name for the device, 1 to 64 characters after trimming leading and trailing whitespace; it does not have to be unique."
|
|
26071
|
+
}
|
|
26072
|
+
]
|
|
26073
|
+
}
|
|
26074
|
+
},
|
|
26075
|
+
{
|
|
26076
|
+
"resource": "sandbox.byod.devices.disconnect",
|
|
26077
|
+
"method": "create",
|
|
26078
|
+
"summary": "Disconnect a device and revoke its credential",
|
|
26079
|
+
"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}.",
|
|
26080
|
+
"http": "POST",
|
|
26081
|
+
"path": "/sandbox/v1/byod/devices/{deviceID}/disconnect",
|
|
26082
|
+
"streaming": "no",
|
|
26083
|
+
"pagination": false,
|
|
26084
|
+
"pathParams": [
|
|
26085
|
+
{
|
|
26086
|
+
"name": "deviceID",
|
|
26087
|
+
"sdkName": "deviceID",
|
|
26088
|
+
"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."
|
|
26089
|
+
}
|
|
26090
|
+
],
|
|
26091
|
+
"query": []
|
|
26092
|
+
},
|
|
26093
|
+
{
|
|
26094
|
+
"resource": "sandbox.byod.pairings",
|
|
26095
|
+
"method": "create",
|
|
26096
|
+
"summary": "Start adding a phone of your own",
|
|
26097
|
+
"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'}.",
|
|
26098
|
+
"http": "POST",
|
|
26099
|
+
"path": "/sandbox/v1/byod/pairings",
|
|
26100
|
+
"streaming": "no",
|
|
26101
|
+
"pagination": false,
|
|
26102
|
+
"pathParams": [],
|
|
26103
|
+
"query": []
|
|
26104
|
+
},
|
|
26105
|
+
{
|
|
26106
|
+
"resource": "sandbox.byod.pairings",
|
|
26107
|
+
"method": "retrieve",
|
|
26108
|
+
"summary": "Read a pairing for the phone's Allow screen",
|
|
26109
|
+
"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'}.",
|
|
26110
|
+
"http": "GET",
|
|
26111
|
+
"path": "/sandbox/v1/byod/pairings/{code}",
|
|
26112
|
+
"streaming": "no",
|
|
26113
|
+
"pagination": false,
|
|
26114
|
+
"pathParams": [
|
|
26115
|
+
{
|
|
26116
|
+
"name": "code",
|
|
26117
|
+
"sdkName": "code",
|
|
26118
|
+
"description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
|
|
26119
|
+
}
|
|
26120
|
+
],
|
|
26121
|
+
"query": []
|
|
26122
|
+
},
|
|
26123
|
+
{
|
|
26124
|
+
"resource": "sandbox.byod.pairings.claim",
|
|
26125
|
+
"method": "create",
|
|
26126
|
+
"summary": "Claim a pairing and register the phone",
|
|
26127
|
+
"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--sbx-develop.praxisusercontent.com/'}.",
|
|
26128
|
+
"http": "POST",
|
|
26129
|
+
"path": "/sandbox/v1/byod/pairings/{code}/claim",
|
|
26130
|
+
"streaming": "no",
|
|
26131
|
+
"pagination": false,
|
|
26132
|
+
"pathParams": [
|
|
26133
|
+
{
|
|
26134
|
+
"name": "code",
|
|
26135
|
+
"sdkName": "code",
|
|
26136
|
+
"description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
|
|
26137
|
+
}
|
|
26138
|
+
],
|
|
26139
|
+
"query": [],
|
|
26140
|
+
"body": {
|
|
26141
|
+
"required": true,
|
|
26142
|
+
"fields": [
|
|
26143
|
+
{
|
|
26144
|
+
"name": "platform",
|
|
26145
|
+
"type": "string",
|
|
26146
|
+
"enum": [
|
|
26147
|
+
"android",
|
|
26148
|
+
"macos",
|
|
26149
|
+
"linux"
|
|
26150
|
+
],
|
|
26151
|
+
"required": true,
|
|
26152
|
+
"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."
|
|
26153
|
+
},
|
|
26154
|
+
{
|
|
26155
|
+
"name": "name",
|
|
24878
26156
|
"type": "string",
|
|
24879
26157
|
"required": false,
|
|
24880
|
-
"description": "
|
|
26158
|
+
"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."
|
|
24881
26159
|
},
|
|
24882
26160
|
{
|
|
24883
|
-
"name": "
|
|
26161
|
+
"name": "model",
|
|
24884
26162
|
"type": "string",
|
|
24885
26163
|
"required": false,
|
|
24886
|
-
"description": "
|
|
26164
|
+
"description": "The device model the app reports, at most 128 characters; it is display only and can be omitted."
|
|
24887
26165
|
},
|
|
24888
26166
|
{
|
|
24889
|
-
"name": "
|
|
26167
|
+
"name": "os_version",
|
|
24890
26168
|
"type": "string",
|
|
24891
26169
|
"required": false,
|
|
24892
|
-
"description": "
|
|
26170
|
+
"description": "The operating-system version the app reports, at most 64 characters; it is display only and can be omitted."
|
|
24893
26171
|
}
|
|
24894
26172
|
]
|
|
24895
26173
|
}
|
|
@@ -25012,7 +26290,7 @@ export const operations = [
|
|
|
25012
26290
|
"resource": "sandbox.sandboxes",
|
|
25013
26291
|
"method": "create",
|
|
25014
26292
|
"summary": "Create sandbox (v2)",
|
|
25015
|
-
"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.",
|
|
26293
|
+
"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.",
|
|
25016
26294
|
"http": "POST",
|
|
25017
26295
|
"path": "/sandbox/v1/sandboxes",
|
|
25018
26296
|
"streaming": "no",
|
|
@@ -25094,6 +26372,98 @@ export const operations = [
|
|
|
25094
26372
|
"itemType": "object",
|
|
25095
26373
|
"required": false,
|
|
25096
26374
|
"description": "Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox."
|
|
26375
|
+
},
|
|
26376
|
+
{
|
|
26377
|
+
"name": "ephemeral",
|
|
26378
|
+
"type": "boolean",
|
|
26379
|
+
"required": false,
|
|
26380
|
+
"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."
|
|
26381
|
+
},
|
|
26382
|
+
{
|
|
26383
|
+
"name": "size",
|
|
26384
|
+
"type": "string",
|
|
26385
|
+
"required": false,
|
|
26386
|
+
"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."
|
|
26387
|
+
},
|
|
26388
|
+
{
|
|
26389
|
+
"name": "name",
|
|
26390
|
+
"type": "string",
|
|
26391
|
+
"required": false,
|
|
26392
|
+
"description": "Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template."
|
|
26393
|
+
},
|
|
26394
|
+
{
|
|
26395
|
+
"name": "waitForReady",
|
|
26396
|
+
"type": "boolean",
|
|
26397
|
+
"required": false,
|
|
26398
|
+
"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."
|
|
26399
|
+
},
|
|
26400
|
+
{
|
|
26401
|
+
"name": "onExpire",
|
|
26402
|
+
"type": "string",
|
|
26403
|
+
"enum": [
|
|
26404
|
+
"kill",
|
|
26405
|
+
"pause"
|
|
26406
|
+
],
|
|
26407
|
+
"required": false,
|
|
26408
|
+
"description": "Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent."
|
|
26409
|
+
},
|
|
26410
|
+
{
|
|
26411
|
+
"name": "idleTimeout",
|
|
26412
|
+
"type": "integer",
|
|
26413
|
+
"required": false,
|
|
26414
|
+
"description": "Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off."
|
|
26415
|
+
},
|
|
26416
|
+
{
|
|
26417
|
+
"name": "idleActivity",
|
|
26418
|
+
"type": "string",
|
|
26419
|
+
"enum": [
|
|
26420
|
+
"traffic",
|
|
26421
|
+
"caller"
|
|
26422
|
+
],
|
|
26423
|
+
"required": false,
|
|
26424
|
+
"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."
|
|
26425
|
+
},
|
|
26426
|
+
{
|
|
26427
|
+
"name": "sku",
|
|
26428
|
+
"type": "string",
|
|
26429
|
+
"required": false,
|
|
26430
|
+
"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."
|
|
26431
|
+
},
|
|
26432
|
+
{
|
|
26433
|
+
"name": "kind",
|
|
26434
|
+
"type": "string",
|
|
26435
|
+
"enum": [
|
|
26436
|
+
"run",
|
|
26437
|
+
"job",
|
|
26438
|
+
"batch",
|
|
26439
|
+
"computer",
|
|
26440
|
+
"compat"
|
|
26441
|
+
],
|
|
26442
|
+
"required": false,
|
|
26443
|
+
"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."
|
|
26444
|
+
},
|
|
26445
|
+
{
|
|
26446
|
+
"name": "interruptible",
|
|
26447
|
+
"type": "boolean",
|
|
26448
|
+
"required": false,
|
|
26449
|
+
"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."
|
|
26450
|
+
},
|
|
26451
|
+
{
|
|
26452
|
+
"name": "onLoss",
|
|
26453
|
+
"type": "string",
|
|
26454
|
+
"enum": [
|
|
26455
|
+
"fail",
|
|
26456
|
+
"rebuild"
|
|
26457
|
+
],
|
|
26458
|
+
"required": false,
|
|
26459
|
+
"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."
|
|
26460
|
+
},
|
|
26461
|
+
{
|
|
26462
|
+
"name": "outputs",
|
|
26463
|
+
"type": "array",
|
|
26464
|
+
"itemType": "object",
|
|
26465
|
+
"required": false,
|
|
26466
|
+
"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."
|
|
25097
26467
|
}
|
|
25098
26468
|
]
|
|
25099
26469
|
}
|
|
@@ -25163,6 +26533,28 @@ export const operations = [
|
|
|
25163
26533
|
]
|
|
25164
26534
|
}
|
|
25165
26535
|
},
|
|
26536
|
+
{
|
|
26537
|
+
"resource": "sandbox.sandboxes",
|
|
26538
|
+
"method": "act",
|
|
26539
|
+
"summary": "Act on a phone sandbox's screen",
|
|
26540
|
+
"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.",
|
|
26541
|
+
"http": "POST",
|
|
26542
|
+
"path": "/sandbox/v1/sandboxes/{sandboxID}/act",
|
|
26543
|
+
"streaming": "no",
|
|
26544
|
+
"pagination": false,
|
|
26545
|
+
"pathParams": [
|
|
26546
|
+
{
|
|
26547
|
+
"name": "sandboxID",
|
|
26548
|
+
"sdkName": "sandboxID",
|
|
26549
|
+
"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."
|
|
26550
|
+
}
|
|
26551
|
+
],
|
|
26552
|
+
"query": [],
|
|
26553
|
+
"body": {
|
|
26554
|
+
"required": true,
|
|
26555
|
+
"fields": []
|
|
26556
|
+
}
|
|
26557
|
+
},
|
|
25166
26558
|
{
|
|
25167
26559
|
"resource": "sandbox.sandboxes",
|
|
25168
26560
|
"method": "connect",
|
|
@@ -25675,7 +27067,7 @@ export const operations = [
|
|
|
25675
27067
|
"resource": "sandbox.sandboxes.commands",
|
|
25676
27068
|
"method": "run",
|
|
25677
27069
|
"summary": "Run a command in the sandbox",
|
|
25678
|
-
"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\"}.",
|
|
27070
|
+
"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\"}.",
|
|
25679
27071
|
"http": "POST",
|
|
25680
27072
|
"path": "/sandbox/v1/sandboxes/{sandbox_id}/commands",
|
|
25681
27073
|
"streaming": "no",
|
|
@@ -27041,10 +28433,11 @@ export const operations = [
|
|
|
27041
28433
|
"file",
|
|
27042
28434
|
"artifact",
|
|
27043
28435
|
"canvas",
|
|
27044
|
-
"media_asset"
|
|
28436
|
+
"media_asset",
|
|
28437
|
+
"agent"
|
|
27045
28438
|
],
|
|
27046
28439
|
"required": false,
|
|
27047
|
-
"description": "Only shares of this object type; file, canvas and
|
|
28440
|
+
"description": "Only shares of this object type; file, canvas, media_asset and agent create today."
|
|
27048
28441
|
},
|
|
27049
28442
|
{
|
|
27050
28443
|
"name": "resource_id",
|
|
@@ -27081,7 +28474,7 @@ export const operations = [
|
|
|
27081
28474
|
"resource": "share.permissions",
|
|
27082
28475
|
"method": "create",
|
|
27083
28476
|
"summary": "Create share",
|
|
27084
|
-
"description": "Make one
|
|
28477
|
+
"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.",
|
|
27085
28478
|
"http": "POST",
|
|
27086
28479
|
"path": "/share/v1/permissions",
|
|
27087
28480
|
"streaming": "no",
|
|
@@ -31005,7 +32398,7 @@ export const operations = [
|
|
|
31005
32398
|
"name": "duplicate_of",
|
|
31006
32399
|
"type": "integer",
|
|
31007
32400
|
"required": false,
|
|
31008
|
-
"description": "
|
|
32401
|
+
"description": "The original ticket's number; required when state_reason is duplicate."
|
|
31009
32402
|
}
|
|
31010
32403
|
]
|
|
31011
32404
|
}
|
|
@@ -31702,7 +33095,7 @@ export const operations = [
|
|
|
31702
33095
|
"resource": "vault.authorizations",
|
|
31703
33096
|
"method": "create",
|
|
31704
33097
|
"summary": "Create authorization",
|
|
31705
|
-
"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.
|
|
33098
|
+
"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.",
|
|
31706
33099
|
"http": "POST",
|
|
31707
33100
|
"path": "/vault/v1/authorizations",
|
|
31708
33101
|
"streaming": "no",
|
|
@@ -32114,7 +33507,7 @@ export const operations = [
|
|
|
32114
33507
|
"resource": "vault.vaults.secrets",
|
|
32115
33508
|
"method": "create",
|
|
32116
33509
|
"summary": "Create secret",
|
|
32117
|
-
"description": "Store a manually supplied token in an active vault.
|
|
33510
|
+
"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.",
|
|
32118
33511
|
"http": "POST",
|
|
32119
33512
|
"path": "/vault/v1/vaults/{vault_id}/secrets",
|
|
32120
33513
|
"streaming": "no",
|
|
@@ -32147,7 +33540,7 @@ export const operations = [
|
|
|
32147
33540
|
"type": "array",
|
|
32148
33541
|
"itemType": "string",
|
|
32149
33542
|
"required": false,
|
|
32150
|
-
"description": "Allowed destinations for the secret.
|
|
33543
|
+
"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."
|
|
32151
33544
|
},
|
|
32152
33545
|
{
|
|
32153
33546
|
"name": "description",
|
|
@@ -32267,7 +33660,7 @@ export const operations = [
|
|
|
32267
33660
|
"type": "array",
|
|
32268
33661
|
"itemType": "string",
|
|
32269
33662
|
"required": false,
|
|
32270
|
-
"description": "Allowed destinations for the secret.
|
|
33663
|
+
"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."
|
|
32271
33664
|
},
|
|
32272
33665
|
{
|
|
32273
33666
|
"name": "description",
|
|
@@ -32371,7 +33764,7 @@ export const operations = [
|
|
|
32371
33764
|
"resource": "vault.vaults.secrets",
|
|
32372
33765
|
"method": "import",
|
|
32373
33766
|
"summary": "Import secrets",
|
|
32374
|
-
"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
|
|
33767
|
+
"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.",
|
|
32375
33768
|
"http": "POST",
|
|
32376
33769
|
"path": "/vault/v1/vaults/{vault_id}/secrets:import",
|
|
32377
33770
|
"streaming": "no",
|