@deepraxis/sdk 0.1.1-dev.ddaf60a → 0.1.1-dev.df2f02a
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 +113 -20
- package/dist/core/binary-operations.d.ts +3 -0
- package/dist/core/binary-operations.js +14 -0
- package/dist/core/credentials.d.ts +16 -6
- package/dist/core/credentials.js +24 -5
- 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 +190 -58
- package/dist/generated/sdk.gen.js +465 -72
- package/dist/generated/types.gen.d.ts +9950 -3260
- 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 +1018 -251
- package/dist/resources.generated.d.ts +1843 -336
- package/dist/resources.generated.js +65 -12
- 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",
|
|
@@ -209,6 +209,12 @@ export const operations = [
|
|
|
209
209
|
"required": false,
|
|
210
210
|
"description": "Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it."
|
|
211
211
|
},
|
|
212
|
+
{
|
|
213
|
+
"name": "computers",
|
|
214
|
+
"type": "object",
|
|
215
|
+
"required": false,
|
|
216
|
+
"description": "General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only."
|
|
217
|
+
},
|
|
212
218
|
{
|
|
213
219
|
"name": "preset",
|
|
214
220
|
"type": "string",
|
|
@@ -218,7 +224,7 @@ export const operations = [
|
|
|
218
224
|
"full"
|
|
219
225
|
],
|
|
220
226
|
"required": false,
|
|
221
|
-
"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."
|
|
222
228
|
},
|
|
223
229
|
{
|
|
224
230
|
"name": "output_styles",
|
|
@@ -259,7 +265,7 @@ export const operations = [
|
|
|
259
265
|
"resource": "agent.agents",
|
|
260
266
|
"method": "update",
|
|
261
267
|
"summary": "Update agent",
|
|
262
|
-
"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.",
|
|
263
269
|
"http": "POST",
|
|
264
270
|
"path": "/agent/v1/agents/{agent_id}",
|
|
265
271
|
"streaming": "no",
|
|
@@ -366,7 +372,7 @@ export const operations = [
|
|
|
366
372
|
"assume"
|
|
367
373
|
],
|
|
368
374
|
"required": false,
|
|
369
|
-
"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."
|
|
370
376
|
},
|
|
371
377
|
{
|
|
372
378
|
"name": "computer_id",
|
|
@@ -431,6 +437,12 @@ export const operations = [
|
|
|
431
437
|
"required": false,
|
|
432
438
|
"description": "Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it."
|
|
433
439
|
},
|
|
440
|
+
{
|
|
441
|
+
"name": "computers",
|
|
442
|
+
"type": "object",
|
|
443
|
+
"required": false,
|
|
444
|
+
"description": "General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only."
|
|
445
|
+
},
|
|
434
446
|
{
|
|
435
447
|
"name": "preset",
|
|
436
448
|
"type": "string",
|
|
@@ -440,7 +452,7 @@ export const operations = [
|
|
|
440
452
|
"full"
|
|
441
453
|
],
|
|
442
454
|
"required": false,
|
|
443
|
-
"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."
|
|
444
456
|
},
|
|
445
457
|
{
|
|
446
458
|
"name": "output_styles",
|
|
@@ -619,154 +631,6 @@ export const operations = [
|
|
|
619
631
|
}
|
|
620
632
|
]
|
|
621
633
|
},
|
|
622
|
-
{
|
|
623
|
-
"resource": "agent.agents.customers.auth.accessTokens",
|
|
624
|
-
"method": "create",
|
|
625
|
-
"summary": "Create customer access token",
|
|
626
|
-
"description": "Exchange a grant code, or the agent's publishable key for an anonymous visitor, for a customer access token that authorizes the agent's embedded sessions.\n\nNo Authorization header is required: the grant code or the publishable key is the credential. Agent Kit calls this from the browser, so send the page Origin. With grant_code, the code is consumed atomically: concurrent attempts have exactly one winner, and unknown, used, expired and other-agent codes all return the same 401 GRANT_CODE_INVALID. The sign-in starts now and lasts the code's max_session_seconds. Unlike Shopify, a visitor without an account gets a token too: send publishable_key instead and a new anonymous customer (anon_…) is created, bound to the request Origin, for 7 days. The access token lasts at most two hours and never outlives the sign-in; renew it with access_tokens/renew before expires_at. Both forms share the per-IP minute limit of anonymous issuance (default 20). Example body: {\"grant_code\":\"cgc_…\"}.",
|
|
627
|
-
"http": "POST",
|
|
628
|
-
"path": "/agent/v1/agents/{agent_id}/customers/auth/access_tokens",
|
|
629
|
-
"streaming": "no",
|
|
630
|
-
"pagination": false,
|
|
631
|
-
"pathParams": [
|
|
632
|
-
{
|
|
633
|
-
"name": "agent_id",
|
|
634
|
-
"sdkName": "agent_id",
|
|
635
|
-
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
636
|
-
}
|
|
637
|
-
],
|
|
638
|
-
"query": [],
|
|
639
|
-
"body": {
|
|
640
|
-
"required": true,
|
|
641
|
-
"fields": []
|
|
642
|
-
}
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
"resource": "agent.agents.customers.auth.accessTokens",
|
|
646
|
-
"method": "deleteCurrent",
|
|
647
|
-
"summary": "Log out customer",
|
|
648
|
-
"description": "Log the customer out by revoking the sign-in of the presented access token and every token issued in it.\n\nSend the current customer access token as the Bearer credential, with no body, when the customer logs out of your site. Every token of the sign-in, including renewed ones, stops working, and their live event streams close; the customer's conversations are kept. Returns 204. Calling it again with the same token returns 401 ACCESS_TOKEN_REVOKED, so treat that as already logged out.",
|
|
649
|
-
"http": "DELETE",
|
|
650
|
-
"path": "/agent/v1/agents/{agent_id}/customers/auth/access_tokens/current",
|
|
651
|
-
"streaming": "no",
|
|
652
|
-
"pagination": false,
|
|
653
|
-
"pathParams": [
|
|
654
|
-
{
|
|
655
|
-
"name": "agent_id",
|
|
656
|
-
"sdkName": "agent_id",
|
|
657
|
-
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
658
|
-
}
|
|
659
|
-
],
|
|
660
|
-
"query": []
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
"resource": "agent.agents.customers.auth.accessTokens.renew",
|
|
664
|
-
"method": "create",
|
|
665
|
-
"summary": "Renew customer access token",
|
|
666
|
-
"description": "Get a fresh customer access token in the same sign-in, authenticated with the current one.\n\nSend the current customer access token as the Bearer credential, with no body, a few minutes before expires_at. The new token keeps the version, budget, context, metadata and origin binding of the sign-in and lasts at most two hours, never past session_expires_at. Unlike Shopify, renewal does not revoke the presented token: it stays valid until its own expiry, so a reply that is streaming on it is not cut off. When less than 60 seconds of the sign-in remain, renewal returns 401 CUSTOMER_SESSION_EXPIRED; sign the customer in again with a new grant code from your backend. A token that was logged out or merged returns 401 ACCESS_TOKEN_REVOKED.",
|
|
667
|
-
"http": "POST",
|
|
668
|
-
"path": "/agent/v1/agents/{agent_id}/customers/auth/access_tokens/renew",
|
|
669
|
-
"streaming": "no",
|
|
670
|
-
"pagination": false,
|
|
671
|
-
"pathParams": [
|
|
672
|
-
{
|
|
673
|
-
"name": "agent_id",
|
|
674
|
-
"sdkName": "agent_id",
|
|
675
|
-
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
676
|
-
}
|
|
677
|
-
],
|
|
678
|
-
"query": []
|
|
679
|
-
},
|
|
680
|
-
{
|
|
681
|
-
"resource": "agent.agents.customers.auth.grantCodes",
|
|
682
|
-
"method": "create",
|
|
683
|
-
"summary": "Create customer grant code",
|
|
684
|
-
"description": "Sign your logged-in customer in to a service agent from your backend with a one-time grant code that Agent Kit exchanges for a customer access token.\n\nCall this from your backend with your API key after your own login succeeds, then pass the returned code to Agent Kit in the browser; never call it from the browser. Customer authorization follows Shopify Storefront customer access tokens (Multipass-style sign-in, a short-lived token, renewal and logout), so that experience applies. customer_id is your own identifier for the customer: use an opaque id such as your database user id, not an email address or phone number. The value auth is reserved, and ids starting with anon_ are reserved for anonymous customers. The code works once and expires after expires_in seconds (default 900). The sign-in it starts lasts max_session_seconds (default 7 days); version, budget (US dollars, at most 2 decimals), system_message, agent_override and metadata apply to every token of the sign-in. Unlike Shopify, origin binds the whole sign-in to one page origin, and anonymous_access_token merges the conversations of the anonymous visitor who chatted before signing in into this customer. Example body: {\"customer_id\":\"cus_8f2a91\",\"origin\":\"https://shop.example.com\"}.",
|
|
685
|
-
"http": "POST",
|
|
686
|
-
"path": "/agent/v1/agents/{agent_id}/customers/auth/grant_codes",
|
|
687
|
-
"streaming": "no",
|
|
688
|
-
"pagination": false,
|
|
689
|
-
"pathParams": [
|
|
690
|
-
{
|
|
691
|
-
"name": "agent_id",
|
|
692
|
-
"sdkName": "agent_id",
|
|
693
|
-
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
694
|
-
}
|
|
695
|
-
],
|
|
696
|
-
"query": [],
|
|
697
|
-
"body": {
|
|
698
|
-
"required": true,
|
|
699
|
-
"fields": [
|
|
700
|
-
{
|
|
701
|
-
"name": "customer_id",
|
|
702
|
-
"type": "string",
|
|
703
|
-
"required": true,
|
|
704
|
-
"description": "Your stable, opaque identifier for the signed-in customer, such as your database user id. Do not use an email address or phone number. \"auth\" is reserved, and ids starting with anon_ are reserved for anonymous customers."
|
|
705
|
-
},
|
|
706
|
-
{
|
|
707
|
-
"name": "version",
|
|
708
|
-
"type": "integer",
|
|
709
|
-
"required": false,
|
|
710
|
-
"description": "Existing agent version that every token of this sign-in pins. Defaults to the agent's active_version when the code is issued."
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
"name": "budget",
|
|
714
|
-
"type": "object",
|
|
715
|
-
"required": false,
|
|
716
|
-
"description": "Budget for each session the customer starts, in the same shape as a session budget. Defaults to the embed policy session budget and cannot exceed its maximum."
|
|
717
|
-
},
|
|
718
|
-
{
|
|
719
|
-
"name": "system_message",
|
|
720
|
-
"type": "array",
|
|
721
|
-
"itemType": "object",
|
|
722
|
-
"required": false,
|
|
723
|
-
"description": "Optional context the agent receives at the start of each session, as text blocks, limited to 8192 UTF-8 bytes in total."
|
|
724
|
-
},
|
|
725
|
-
{
|
|
726
|
-
"name": "agent_override",
|
|
727
|
-
"type": "object",
|
|
728
|
-
"required": false,
|
|
729
|
-
"description": "Optional system prompt override, accepted only when the embed policy allows agent overrides."
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
"name": "metadata",
|
|
733
|
-
"type": "object",
|
|
734
|
-
"required": false,
|
|
735
|
-
"description": "Up to 16 string pairs copied onto every session the customer starts. The playground key is reserved."
|
|
736
|
-
},
|
|
737
|
-
{
|
|
738
|
-
"name": "origin",
|
|
739
|
-
"type": "string",
|
|
740
|
-
"required": false,
|
|
741
|
-
"description": "Page origin, such as https://shop.example.com, that must be one of the agent policy's allowed_origins (or localhost when the policy allows it). When set, every token of this sign-in works only from exactly this origin. Omit to accept any policy origin."
|
|
742
|
-
},
|
|
743
|
-
{
|
|
744
|
-
"name": "expires_in",
|
|
745
|
-
"type": "integer",
|
|
746
|
-
"required": false,
|
|
747
|
-
"description": "Seconds the code stays redeemable, from 60 to 86400. Defaults to 900."
|
|
748
|
-
},
|
|
749
|
-
{
|
|
750
|
-
"name": "max_session_seconds",
|
|
751
|
-
"type": "integer",
|
|
752
|
-
"required": false,
|
|
753
|
-
"description": "Total lifetime of the sign-in in seconds, from 3600 to 604800 (7 days). Tokens renew within it; after it the customer signs in again. Defaults to 604800."
|
|
754
|
-
},
|
|
755
|
-
{
|
|
756
|
-
"name": "anonymous_access_token",
|
|
757
|
-
"type": "string",
|
|
758
|
-
"required": false,
|
|
759
|
-
"description": "The current access token of the anonymous customer who used this agent before signing in. Their conversations become visible to the identified customer, and the anonymous sign-in ends at exchange."
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
"name": "hosted",
|
|
763
|
-
"type": "boolean",
|
|
764
|
-
"required": false,
|
|
765
|
-
"description": "Set true to also return hosted_url, a link to the agent's Hosted chat page that carries the code in its fragment. The page exchanges the code only when the customer clicks to start, so link previews in email or chat apps do not use it up. The agent must have an identity_number, and origin cannot be set: the code is bound to no origin. Defaults to false."
|
|
766
|
-
}
|
|
767
|
-
]
|
|
768
|
-
}
|
|
769
|
-
},
|
|
770
634
|
{
|
|
771
635
|
"resource": "agent.agents.customers",
|
|
772
636
|
"method": "delete",
|
|
@@ -912,6 +776,77 @@ export const operations = [
|
|
|
912
776
|
],
|
|
913
777
|
"query": []
|
|
914
778
|
},
|
|
779
|
+
{
|
|
780
|
+
"resource": "agent.agents",
|
|
781
|
+
"method": "retrieveEmbedPolicy",
|
|
782
|
+
"summary": "Get agent embed policy",
|
|
783
|
+
"description": "Read a service agent's embed settings: the pages allowed to open its Kit chat (allowed_origins), the development switch (allow_localhost), what an embedded end user may upload (uploads) and whether the agent may be shared by link with the daily caps its visitors count against (share_links). The allow list decides where the agent can be embedded at all, so after deploying an application, add that application's URL origin here (scheme, host and port, never a path) before the page loads the agent — otherwise its Kit chat answers ORIGIN_NOT_ALLOWED. Budgets, monthly caps and token lifetime are set in the console and are not part of this API. An agent of another organization answers 404; an agent that is not a service agent answers 400.",
|
|
784
|
+
"http": "GET",
|
|
785
|
+
"path": "/agent/v1/agents/{agent_id}/embed_policy",
|
|
786
|
+
"streaming": "no",
|
|
787
|
+
"pagination": false,
|
|
788
|
+
"pathParams": [
|
|
789
|
+
{
|
|
790
|
+
"name": "agent_id",
|
|
791
|
+
"sdkName": "agent_id",
|
|
792
|
+
"description": "Service agent id from agent creation or listing, the eight character identity number or the handle; the agent must be a service agent of your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
793
|
+
}
|
|
794
|
+
],
|
|
795
|
+
"query": []
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"resource": "agent.agents",
|
|
799
|
+
"method": "updateEmbedPolicy",
|
|
800
|
+
"summary": "Update agent embed policy",
|
|
801
|
+
"description": "Change some of a service agent's embed settings. Only the fields you send change: everything you leave out, including the budgets and the token lifetime set in the console, is kept exactly as it was. Send allowed_origins so the pages that load the agent are allowed — an application's URL origin must be in the list before the application can embed the agent, or its Kit chat answers ORIGIN_NOT_ALLOWED. Send allow_localhost while developing on http://localhost, and uploads to open, close or bound file attachments for the embedded end user. Send share_links to let the agent be shared by link and to set the daily session and spending caps its share links count against; turning it on is refused unless the agent has an identity number. Values are checked by the service: an origin is normalized and must be https, and at most one leading wildcard label may match a single subdomain level. max_file_bytes is 1 to 104857600 bytes and max_files_per_session is 1 to 100. Example: POST /agent/v1/agents/{agent_id}/embed_policy with {\"allowed_origins\": [\"https://my-app.example.com\"]}.",
|
|
802
|
+
"http": "POST",
|
|
803
|
+
"path": "/agent/v1/agents/{agent_id}/embed_policy",
|
|
804
|
+
"streaming": "no",
|
|
805
|
+
"pagination": false,
|
|
806
|
+
"pathParams": [
|
|
807
|
+
{
|
|
808
|
+
"name": "agent_id",
|
|
809
|
+
"sdkName": "agent_id",
|
|
810
|
+
"description": "Service agent id from agent creation or listing, the eight character identity number or the handle; the agent must be a service agent of your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
811
|
+
}
|
|
812
|
+
],
|
|
813
|
+
"query": [],
|
|
814
|
+
"body": {
|
|
815
|
+
"required": true,
|
|
816
|
+
"fields": [
|
|
817
|
+
{
|
|
818
|
+
"name": "allowed_origins",
|
|
819
|
+
"type": "array",
|
|
820
|
+
"itemType": "string",
|
|
821
|
+
"required": false,
|
|
822
|
+
"description": "Replaces the whole allow list: the https origins whose pages may open this agent's Kit chat, with no path, query or fragment. An origin is normalized before it is stored, and a leading wildcard label matches subdomains one label deep. Send the origin of the application you just deployed to let it embed the agent."
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
"name": "allow_localhost",
|
|
826
|
+
"type": "boolean",
|
|
827
|
+
"required": false,
|
|
828
|
+
"description": "Whether http://localhost or http://127.0.0.1 pages may open the chat during development."
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"name": "uploads",
|
|
832
|
+
"type": "object",
|
|
833
|
+
"required": false,
|
|
834
|
+
"description": "What an embedded end user may attach; only the fields you send are changed."
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
"name": "share_links",
|
|
838
|
+
"type": "object",
|
|
839
|
+
"required": false,
|
|
840
|
+
"description": "Whether this agent may be shared by link, and its daily caps; every field is optional and only what you send is changed. Turning it on requires the agent to have an identity number."
|
|
841
|
+
}
|
|
842
|
+
],
|
|
843
|
+
"example": {
|
|
844
|
+
"allowed_origins": [
|
|
845
|
+
"https://my-app.example.com"
|
|
846
|
+
]
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
},
|
|
915
850
|
{
|
|
916
851
|
"resource": "agent.agents.events",
|
|
917
852
|
"method": "list",
|
|
@@ -1078,6 +1013,42 @@ export const operations = [
|
|
|
1078
1013
|
}
|
|
1079
1014
|
]
|
|
1080
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
|
+
},
|
|
1081
1052
|
{
|
|
1082
1053
|
"resource": "agent.agents.unarchive",
|
|
1083
1054
|
"method": "create",
|
|
@@ -1155,7 +1126,7 @@ export const operations = [
|
|
|
1155
1126
|
"resource": "agent.computers",
|
|
1156
1127
|
"method": "list",
|
|
1157
1128
|
"summary": "List Computers",
|
|
1158
|
-
"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.",
|
|
1159
1130
|
"http": "GET",
|
|
1160
1131
|
"path": "/agent/v1/computers",
|
|
1161
1132
|
"streaming": "no",
|
|
@@ -1180,7 +1151,7 @@ export const operations = [
|
|
|
1180
1151
|
"resource": "agent.computers",
|
|
1181
1152
|
"method": "create",
|
|
1182
1153
|
"summary": "Create Computer",
|
|
1183
|
-
"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.",
|
|
1184
1155
|
"http": "POST",
|
|
1185
1156
|
"path": "/agent/v1/computers",
|
|
1186
1157
|
"streaming": "no",
|
|
@@ -1227,7 +1198,7 @@ export const operations = [
|
|
|
1227
1198
|
"resource": "agent.computers",
|
|
1228
1199
|
"method": "retrieve",
|
|
1229
1200
|
"summary": "Get Computer",
|
|
1230
|
-
"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.",
|
|
1231
1202
|
"http": "GET",
|
|
1232
1203
|
"path": "/agent/v1/computers/{computer_id}",
|
|
1233
1204
|
"streaming": "no",
|
|
@@ -1245,7 +1216,7 @@ export const operations = [
|
|
|
1245
1216
|
"resource": "agent.computers",
|
|
1246
1217
|
"method": "update",
|
|
1247
1218
|
"summary": "Update Computer",
|
|
1248
|
-
"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.",
|
|
1249
1220
|
"http": "POST",
|
|
1250
1221
|
"path": "/agent/v1/computers/{computer_id}",
|
|
1251
1222
|
"streaming": "no",
|
|
@@ -1274,7 +1245,7 @@ export const operations = [
|
|
|
1274
1245
|
"resource": "agent.computers",
|
|
1275
1246
|
"method": "archive",
|
|
1276
1247
|
"summary": "Archive Computer",
|
|
1277
|
-
"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.",
|
|
1278
1249
|
"http": "POST",
|
|
1279
1250
|
"path": "/agent/v1/computers/{computer_id}/archive",
|
|
1280
1251
|
"streaming": "no",
|
|
@@ -1354,7 +1325,7 @@ export const operations = [
|
|
|
1354
1325
|
"resource": "agent.computers.files",
|
|
1355
1326
|
"method": "list",
|
|
1356
1327
|
"summary": "List Computer Files",
|
|
1357
|
-
"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.",
|
|
1358
1329
|
"http": "GET",
|
|
1359
1330
|
"path": "/agent/v1/computers/{computer_id}/files",
|
|
1360
1331
|
"streaming": "no",
|
|
@@ -1379,7 +1350,7 @@ export const operations = [
|
|
|
1379
1350
|
"resource": "agent.computers.files",
|
|
1380
1351
|
"method": "retrieveContent",
|
|
1381
1352
|
"summary": "Get Computer File Content",
|
|
1382
|
-
"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.",
|
|
1383
1354
|
"http": "GET",
|
|
1384
1355
|
"path": "/agent/v1/computers/{computer_id}/files/content",
|
|
1385
1356
|
"streaming": "no",
|
|
@@ -1425,6 +1396,50 @@ export const operations = [
|
|
|
1425
1396
|
}
|
|
1426
1397
|
]
|
|
1427
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
|
+
},
|
|
1428
1443
|
{
|
|
1429
1444
|
"resource": "agent.computers.leases",
|
|
1430
1445
|
"method": "delete",
|
|
@@ -1631,7 +1646,7 @@ export const operations = [
|
|
|
1631
1646
|
"resource": "agent.deployments",
|
|
1632
1647
|
"method": "create",
|
|
1633
1648
|
"summary": "Create deployment",
|
|
1634
|
-
"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\"}}.",
|
|
1635
1650
|
"http": "POST",
|
|
1636
1651
|
"path": "/agent/v1/deployments",
|
|
1637
1652
|
"streaming": "no",
|
|
@@ -2183,7 +2198,7 @@ export const operations = [
|
|
|
2183
2198
|
"resource": "agent.sessions",
|
|
2184
2199
|
"method": "create",
|
|
2185
2200
|
"summary": "Create session",
|
|
2186
|
-
"description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (
|
|
2201
|
+
"description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (node22 for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. The retired \"light\" returns 400 naming the two forms that work: \"node22\", or null for no machine. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive decimal string of US dollars with at most 2 decimal places (\"20.00\" is USD 20.00); omitted budget defaults to \"20.00\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion. Assume agents return 400 INVALID_PARAMS; drive them over MCP at /agent/v1/agents/{id}/mcp instead.",
|
|
2187
2202
|
"http": "POST",
|
|
2188
2203
|
"path": "/agent/v1/sessions",
|
|
2189
2204
|
"streaming": "no",
|
|
@@ -2250,6 +2265,16 @@ export const operations = [
|
|
|
2250
2265
|
"required": false,
|
|
2251
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."
|
|
2252
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
|
+
},
|
|
2253
2278
|
{
|
|
2254
2279
|
"name": "computer_id",
|
|
2255
2280
|
"type": "string",
|
|
@@ -2299,7 +2324,7 @@ export const operations = [
|
|
|
2299
2324
|
"resource": "agent.sessions",
|
|
2300
2325
|
"method": "retrieve",
|
|
2301
2326
|
"summary": "Get session",
|
|
2302
|
-
"description": "Read one session by id: its agent snapshot, status, model and thinking selection, resources, title, metadata and, for a fork, forked_from. Use it to poll status; to read what happened use sessions.events.list. This response does not include a machine object or sandbox id. With no environment_id or Computer selected at creation, the session starts on
|
|
2327
|
+
"description": "Read one session by id: its agent snapshot, status, model and thinking selection, resources, title, metadata and, for a fork, forked_from. Use it to poll status; to read what happened use sessions.events.list. This response does not include a machine object or sandbox id. With no environment_id or Computer selected at creation, the session starts on the agent version's default environment, node22.",
|
|
2303
2328
|
"http": "GET",
|
|
2304
2329
|
"path": "/agent/v1/sessions/{session_id}",
|
|
2305
2330
|
"streaming": "no",
|
|
@@ -2373,6 +2398,38 @@ export const operations = [
|
|
|
2373
2398
|
]
|
|
2374
2399
|
}
|
|
2375
2400
|
},
|
|
2401
|
+
{
|
|
2402
|
+
"resource": "agent.sessions.agentVersion",
|
|
2403
|
+
"method": "create",
|
|
2404
|
+
"summary": "Update session agent version",
|
|
2405
|
+
"description": "Move one session to a version of its agent\n\nWithout `version`, the session moves to the agent's active version — the version new sessions get now, which is not necessarily the newest saved one. With `version`, it moves to that existing version. The change is idempotent: asking for the version the session is already on answers the session and writes nothing, so the call may be repeated freely. A session that is running a turn answers 409 SESSION_CONFLICT and changes nothing, because a turn finishes on the version it started with; ask again once it is idle. The move writes a `session.updated` event carrying the agent version and the caller as its actor, so every version change is attributable. Main sessions additionally follow their agent's active version at the start of a person-started turn; this endpoint is the same move made explicitly, and it works on every kind of session, including worker sessions that never follow on their own.",
|
|
2406
|
+
"http": "POST",
|
|
2407
|
+
"path": "/agent/v1/sessions/{session_id}/agent_version",
|
|
2408
|
+
"streaming": "no",
|
|
2409
|
+
"pagination": false,
|
|
2410
|
+
"pathParams": [
|
|
2411
|
+
{
|
|
2412
|
+
"name": "session_id",
|
|
2413
|
+
"sdkName": "session_id",
|
|
2414
|
+
"description": "Session id from session creation or listing, or the own face's session name for a main session."
|
|
2415
|
+
}
|
|
2416
|
+
],
|
|
2417
|
+
"query": [],
|
|
2418
|
+
"body": {
|
|
2419
|
+
"required": false,
|
|
2420
|
+
"fields": [
|
|
2421
|
+
{
|
|
2422
|
+
"name": "version",
|
|
2423
|
+
"type": "integer",
|
|
2424
|
+
"required": false,
|
|
2425
|
+
"description": "An existing version of the session's agent, from agents.versions.list. Omit to use the agent's active version."
|
|
2426
|
+
}
|
|
2427
|
+
],
|
|
2428
|
+
"example": {
|
|
2429
|
+
"version": 5
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2432
|
+
},
|
|
2376
2433
|
{
|
|
2377
2434
|
"resource": "agent.sessions",
|
|
2378
2435
|
"method": "archive",
|
|
@@ -2775,11 +2832,40 @@ export const operations = [
|
|
|
2775
2832
|
]
|
|
2776
2833
|
}
|
|
2777
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
|
+
},
|
|
2778
2864
|
{
|
|
2779
2865
|
"resource": "agent.sessions.requests",
|
|
2780
2866
|
"method": "list",
|
|
2781
2867
|
"summary": "List Session Requests (Extension)",
|
|
2782
|
-
"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.",
|
|
2783
2869
|
"http": "GET",
|
|
2784
2870
|
"path": "/agent/v1/sessions/{session_id}/requests",
|
|
2785
2871
|
"streaming": "no",
|
|
@@ -3409,7 +3495,7 @@ export const operations = [
|
|
|
3409
3495
|
"resource": "agent.toolsets",
|
|
3410
3496
|
"method": "list",
|
|
3411
3497
|
"summary": "List Toolsets",
|
|
3412
|
-
"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.",
|
|
3413
3499
|
"http": "GET",
|
|
3414
3500
|
"path": "/agent/v1/toolsets",
|
|
3415
3501
|
"streaming": "no",
|
|
@@ -3417,6 +3503,65 @@ export const operations = [
|
|
|
3417
3503
|
"pathParams": [],
|
|
3418
3504
|
"query": []
|
|
3419
3505
|
},
|
|
3506
|
+
{
|
|
3507
|
+
"resource": "agent.uploads",
|
|
3508
|
+
"method": "create",
|
|
3509
|
+
"summary": "Upload a File (Extension)",
|
|
3510
|
+
"description": "Start an upload for an embedded end user, so the browser can PUT the file's bytes straight to the File service and then attach the resulting file id to its own session. Use it only with an end-user token: a grant-bound end_user token uploads for its own agent, and an organization-level customer token must name the agent in the body (agent). A member, robot or user_key credential uses /file/v1 instead and gets 404 here. Body: filename (1–255 characters, its extension decides the blocked-type refusal), bytes (the positive byte length) and content_type (1–255 characters). Returns 201 with the File signed-upload answer: upload_id and expires_at, and url for a small file, or part_size, parts, complete_url and status_url for a large one; the addresses are returned here only and must never be stored or logged. The browser PUTs the bytes to the address (or to each part and then complete_url), which answers the File object and its file_id; then POST the file_id to /agent/v1/sessions/{session_id}/resources, and reference it in the message attachments. Refusals: 403 UPLOADS_DISABLED when uploads are off on the agent, 413 FILE_TOO_LARGE when bytes exceeds its uploads.max_file_bytes, 400 FILE_TYPE_REFUSED for a blocked executable or script extension, and 429 UPLOAD_RATE_LIMITED on the 31st unattached upload from the same user on the same agent within an hour. Example: POST /agent/v1/uploads with {\"filename\":\"report.pdf\",\"bytes\":48211,\"content_type\":\"application/pdf\"}.",
|
|
3511
|
+
"http": "POST",
|
|
3512
|
+
"path": "/agent/v1/uploads",
|
|
3513
|
+
"streaming": "no",
|
|
3514
|
+
"pagination": false,
|
|
3515
|
+
"pathParams": [],
|
|
3516
|
+
"query": [],
|
|
3517
|
+
"body": {
|
|
3518
|
+
"required": true,
|
|
3519
|
+
"fields": [
|
|
3520
|
+
{
|
|
3521
|
+
"name": "filename",
|
|
3522
|
+
"type": "string",
|
|
3523
|
+
"required": true,
|
|
3524
|
+
"description": "The file's name, its extension included; the extension decides which blocked executable and script types are refused. 1 to 255 characters."
|
|
3525
|
+
},
|
|
3526
|
+
{
|
|
3527
|
+
"name": "bytes",
|
|
3528
|
+
"type": "integer",
|
|
3529
|
+
"required": true,
|
|
3530
|
+
"description": "The exact byte length of the file to upload; refused with 413 FILE_TOO_LARGE when it exceeds the agent's uploads.max_file_bytes."
|
|
3531
|
+
},
|
|
3532
|
+
{
|
|
3533
|
+
"name": "content_type",
|
|
3534
|
+
"type": "string",
|
|
3535
|
+
"required": true,
|
|
3536
|
+
"description": "The file's MIME type, such as image/png, stored on the file; not used to refuse the upload. 1 to 255 characters."
|
|
3537
|
+
},
|
|
3538
|
+
{
|
|
3539
|
+
"name": "agent",
|
|
3540
|
+
"type": "string",
|
|
3541
|
+
"required": false,
|
|
3542
|
+
"description": "The service agent id (agt_… or agent_…) to upload for; required with an organization-level customer token and, with a grant-bound end-user token, it must equal the token's agent or the call is 400."
|
|
3543
|
+
}
|
|
3544
|
+
]
|
|
3545
|
+
}
|
|
3546
|
+
},
|
|
3547
|
+
{
|
|
3548
|
+
"resource": "agent.uploads.contentUrl",
|
|
3549
|
+
"method": "create",
|
|
3550
|
+
"summary": "Create Upload Content URL (Extension)",
|
|
3551
|
+
"description": "Mint a short-lived read address for one file an embedded end user uploaded, so the page can show or download its own file again. Use it only with an end-user token; file_id is the id the File service returned after the bytes were uploaded. Returns 200 with url (an address that works for 900 seconds) and expires_at; never store or log the address. Only the caller's own upload answers: a file that belongs to someone else, a missing one, or one that did not start as an upload returns 404 FILE_NOT_FOUND, so a stranger cannot learn whether another person's file exists. The request body is empty. Example: POST /agent/v1/uploads/file-Ab12.../content_url.",
|
|
3552
|
+
"http": "POST",
|
|
3553
|
+
"path": "/agent/v1/uploads/{file_id}/content_url",
|
|
3554
|
+
"streaming": "no",
|
|
3555
|
+
"pagination": false,
|
|
3556
|
+
"pathParams": [
|
|
3557
|
+
{
|
|
3558
|
+
"name": "file_id",
|
|
3559
|
+
"sdkName": "file_id",
|
|
3560
|
+
"description": "File id (file-… ) the File service returned after the bytes were uploaded; only the caller's own upload is readable."
|
|
3561
|
+
}
|
|
3562
|
+
],
|
|
3563
|
+
"query": []
|
|
3564
|
+
},
|
|
3420
3565
|
{
|
|
3421
3566
|
"resource": "application.assets.upload",
|
|
3422
3567
|
"method": "create",
|
|
@@ -4054,7 +4199,7 @@ export const operations = [
|
|
|
4054
4199
|
"resource": "application.workers.versions",
|
|
4055
4200
|
"method": "create",
|
|
4056
4201
|
"summary": "Create version",
|
|
4057
|
-
"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.",
|
|
4058
4203
|
"http": "POST",
|
|
4059
4204
|
"path": "/application/v1/workers/{worker_id}/versions",
|
|
4060
4205
|
"streaming": "no",
|
|
@@ -7242,6 +7387,18 @@ export const operations = [
|
|
|
7242
7387
|
]
|
|
7243
7388
|
}
|
|
7244
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
|
+
},
|
|
7245
7402
|
{
|
|
7246
7403
|
"resource": "browser.connect",
|
|
7247
7404
|
"method": "retrieve",
|
|
@@ -10586,7 +10743,7 @@ export const operations = [
|
|
|
10586
10743
|
"resource": "customer.grantCodes",
|
|
10587
10744
|
"method": "create",
|
|
10588
10745
|
"summary": "Create a grant code",
|
|
10589
|
-
"description": "Sign one of your logged-in end users in from your backend, after your own login succeeded, by handing out a one-time grant code that the browser exchanges for an access token. Call it with the organization API key; never from the browser, because the API key must stay on your server. customer_id is your own identifier for the person (an opaque value such as your database user id, not an email address or phone number); a value starting with anon_ is reserved for anonymous visitors. resources name what the sign-in may reach and is required: each entry is a scope string in the form agent:<id>:chat, content:<id>:play or application:<id>:visit, or an object with that scope plus product params this service stores without interpreting; use the id form for one object and * for every object of a type. expires_in shortens the code's life in seconds (900 seconds, fifteen minutes, by default) and max_session_seconds shortens the sign-in's life (7 days by default); merge_customer_id merges an anonymous visitor's record into this person; origin pins the page the sign-in may be made from. The code is single use and unknown, used or expired codes all answer 401 GRANT_CODE_INVALID at the exchange. Returns the code with HTTP 201; pass it to the Kit in the browser and never call this route with it.",
|
|
10746
|
+
"description": "Sign one of your logged-in end users in from your backend, after your own login succeeded, by handing out a one-time grant code that the browser exchanges for an access token. Call it with the organization API key; never from the browser, because the API key must stay on your server. customer_id is your own identifier for the person (an opaque value such as your database user id, not an email address or phone number); a value starting with anon_ is reserved for anonymous visitors. resources name what the sign-in may reach and is required: each entry is a scope string in the form agent:<id>:chat, content:<id>:play or application:<id>:visit, or an object with that scope plus product params this service stores without interpreting; use the id form for one object and * for every object of a type. expires_in shortens the code's life in seconds (900 seconds, fifteen minutes, by default) and max_session_seconds shortens the sign-in's life (7 days by default); merge_customer_id merges an anonymous visitor's record into this person; origin pins the page the sign-in may be made from. When the browser still holds that visitor's own access token, send it as anonymous_access_token instead of merge_customer_id: the door verifies it and merges the visitor it names, which is the usual way a merchant continues a session the browser already began. The code is single use and unknown, used or expired codes all answer 401 GRANT_CODE_INVALID at the exchange. Returns the code with HTTP 201; pass it to the Kit in the browser and never call this route with it.",
|
|
10590
10747
|
"http": "POST",
|
|
10591
10748
|
"path": "/customer/v1/grant_codes",
|
|
10592
10749
|
"streaming": "no",
|
|
@@ -10638,6 +10795,12 @@ export const operations = [
|
|
|
10638
10795
|
"type": "string",
|
|
10639
10796
|
"required": false,
|
|
10640
10797
|
"description": "An existing anonymous end user (anon_…) whose record joins this person when the code is exchanged."
|
|
10798
|
+
},
|
|
10799
|
+
{
|
|
10800
|
+
"name": "anonymous_access_token",
|
|
10801
|
+
"type": "string",
|
|
10802
|
+
"required": false,
|
|
10803
|
+
"description": "The visitor's own Praxis customer access token, when the browser holds one, so this sign-in keeps that anonymous visitor instead of creating a new person; it is the access_token from a previous exchange, sent from your backend and never from the browser. It must be a live anonymous (anon_…) end user of this organization. It may not be combined with merge_customer_id, and an expired, forged or foreign token answers 400 INVALID_PARAMS."
|
|
10641
10804
|
}
|
|
10642
10805
|
]
|
|
10643
10806
|
}
|
|
@@ -11435,7 +11598,7 @@ export const operations = [
|
|
|
11435
11598
|
"resource": "cut.projects",
|
|
11436
11599
|
"method": "execute",
|
|
11437
11600
|
"summary": "Execute editing script",
|
|
11438
|
-
"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",
|
|
11439
11602
|
"http": "POST",
|
|
11440
11603
|
"path": "/cut/v1/projects/{project_id}:execute",
|
|
11441
11604
|
"streaming": "no",
|
|
@@ -12498,7 +12661,7 @@ export const operations = [
|
|
|
12498
12661
|
{
|
|
12499
12662
|
"name": "id",
|
|
12500
12663
|
"sdkName": "id",
|
|
12501
|
-
"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."
|
|
12502
12665
|
}
|
|
12503
12666
|
],
|
|
12504
12667
|
"query": []
|
|
@@ -12507,7 +12670,7 @@ export const operations = [
|
|
|
12507
12670
|
"resource": "devops.changes",
|
|
12508
12671
|
"method": "abandon",
|
|
12509
12672
|
"summary": "Abandon a change",
|
|
12510
|
-
"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.",
|
|
12511
12674
|
"http": "POST",
|
|
12512
12675
|
"path": "/devops/v1/changes/{id}:abandon",
|
|
12513
12676
|
"streaming": "no",
|
|
@@ -12516,7 +12679,7 @@ export const operations = [
|
|
|
12516
12679
|
{
|
|
12517
12680
|
"name": "id",
|
|
12518
12681
|
"sdkName": "id",
|
|
12519
|
-
"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."
|
|
12520
12683
|
}
|
|
12521
12684
|
],
|
|
12522
12685
|
"query": [],
|
|
@@ -12532,6 +12695,24 @@ export const operations = [
|
|
|
12532
12695
|
]
|
|
12533
12696
|
}
|
|
12534
12697
|
},
|
|
12698
|
+
{
|
|
12699
|
+
"resource": "devops.changes",
|
|
12700
|
+
"method": "gitCredential",
|
|
12701
|
+
"summary": "Get a change workspace's read-only git credential",
|
|
12702
|
+
"description": "A read-only git credential for the repository a change's project is bound to: a GitHub App installation token limited to that one repository with contents read, which GitHub expires within an hour. It exists for git's credential helper inside the change's cloud workspace (`praxis devops change git-credential`, installed by DevOps when it clones the repository), so `git fetch`, history and lazily fetched file contents work there; the helper hands the token to that one git request and keeps nothing. Writing is never possible with it: commits reach the branch only through the unit push. You do not need to call this yourself. Anyone who can read the change can read its repository already through the code reads, so this grants no new access. An abandoned change is refused with INVALID_ARGUMENT and a project without a repository with SOURCE_NOT_CONFIGURED. The id is the branch name and its slash must be percent-encoded in the path (fix%2Fexpired-links).",
|
|
12703
|
+
"http": "POST",
|
|
12704
|
+
"path": "/devops/v1/changes/{id}:gitCredential",
|
|
12705
|
+
"streaming": "no",
|
|
12706
|
+
"pagination": false,
|
|
12707
|
+
"pathParams": [
|
|
12708
|
+
{
|
|
12709
|
+
"name": "id",
|
|
12710
|
+
"sdkName": "id",
|
|
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."
|
|
12712
|
+
}
|
|
12713
|
+
],
|
|
12714
|
+
"query": []
|
|
12715
|
+
},
|
|
12535
12716
|
{
|
|
12536
12717
|
"resource": "devops.changes",
|
|
12537
12718
|
"method": "markLastSlice",
|
|
@@ -12545,7 +12726,7 @@ export const operations = [
|
|
|
12545
12726
|
{
|
|
12546
12727
|
"name": "id",
|
|
12547
12728
|
"sdkName": "id",
|
|
12548
|
-
"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."
|
|
12549
12730
|
}
|
|
12550
12731
|
],
|
|
12551
12732
|
"query": [],
|
|
@@ -12565,7 +12746,7 @@ export const operations = [
|
|
|
12565
12746
|
"resource": "devops.changes",
|
|
12566
12747
|
"method": "openPullRequest",
|
|
12567
12748
|
"summary": "Open a change's pull request",
|
|
12568
|
-
"description": "Open the pull request for a change: its branch into the project's default branch, opened by DevOps's own GitHub App. A cloud workspace holds no GitHub credential, so this is how work pushed with the unit push becomes a pull request; `praxis devops change pr` calls it from the workspace. Push first: a branch with no commits beyond the default branch is refused with PULL_REQUEST_REFUSED and GitHub's words. A branch that already has an open pull request answers that one with created=false, so calling again is safe. The pull request then appears on the change and runs its merge gate as usual. The id is the branch name and
|
|
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.",
|
|
12569
12750
|
"http": "POST",
|
|
12570
12751
|
"path": "/devops/v1/changes/{id}:openPullRequest",
|
|
12571
12752
|
"streaming": "no",
|
|
@@ -12574,7 +12755,7 @@ export const operations = [
|
|
|
12574
12755
|
{
|
|
12575
12756
|
"name": "id",
|
|
12576
12757
|
"sdkName": "id",
|
|
12577
|
-
"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."
|
|
12578
12759
|
}
|
|
12579
12760
|
],
|
|
12580
12761
|
"query": [],
|
|
@@ -13200,7 +13381,7 @@ export const operations = [
|
|
|
13200
13381
|
"resource": "devops.projects",
|
|
13201
13382
|
"method": "list",
|
|
13202
13383
|
"summary": "List projects",
|
|
13203
|
-
"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.",
|
|
13204
13385
|
"http": "GET",
|
|
13205
13386
|
"path": "/devops/v1/projects",
|
|
13206
13387
|
"streaming": "no",
|
|
@@ -15101,7 +15282,7 @@ export const operations = [
|
|
|
15101
15282
|
"resource": "devops.promotions",
|
|
15102
15283
|
"method": "retry",
|
|
15103
15284
|
"summary": "Retry a promotion",
|
|
15104
|
-
"description": "Continue a promotion that stopped part-way
|
|
15285
|
+
"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.",
|
|
15105
15286
|
"http": "POST",
|
|
15106
15287
|
"path": "/devops/v1/promotions/{id}:retry",
|
|
15107
15288
|
"streaming": "no",
|
|
@@ -15171,6 +15352,35 @@ export const operations = [
|
|
|
15171
15352
|
}
|
|
15172
15353
|
]
|
|
15173
15354
|
},
|
|
15355
|
+
{
|
|
15356
|
+
"resource": "devops.pullRequests",
|
|
15357
|
+
"method": "close",
|
|
15358
|
+
"summary": "Close a pull request without merging it",
|
|
15359
|
+
"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.",
|
|
15360
|
+
"http": "POST",
|
|
15361
|
+
"path": "/devops/v1/pull-requests/{id}:close",
|
|
15362
|
+
"streaming": "no",
|
|
15363
|
+
"pagination": false,
|
|
15364
|
+
"pathParams": [
|
|
15365
|
+
{
|
|
15366
|
+
"name": "id",
|
|
15367
|
+
"sdkName": "id",
|
|
15368
|
+
"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."
|
|
15369
|
+
}
|
|
15370
|
+
],
|
|
15371
|
+
"query": [],
|
|
15372
|
+
"body": {
|
|
15373
|
+
"required": true,
|
|
15374
|
+
"fields": [
|
|
15375
|
+
{
|
|
15376
|
+
"name": "reason",
|
|
15377
|
+
"type": "string",
|
|
15378
|
+
"required": true,
|
|
15379
|
+
"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."
|
|
15380
|
+
}
|
|
15381
|
+
]
|
|
15382
|
+
}
|
|
15383
|
+
},
|
|
15174
15384
|
{
|
|
15175
15385
|
"resource": "devops.pullRequests",
|
|
15176
15386
|
"method": "merge",
|
|
@@ -17212,6 +17422,17 @@ export const operations = [
|
|
|
17212
17422
|
"required": false,
|
|
17213
17423
|
"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."
|
|
17214
17424
|
},
|
|
17425
|
+
{
|
|
17426
|
+
"name": "default_tier",
|
|
17427
|
+
"type": "string",
|
|
17428
|
+
"enum": [
|
|
17429
|
+
"economy",
|
|
17430
|
+
"balanced",
|
|
17431
|
+
"quality"
|
|
17432
|
+
],
|
|
17433
|
+
"required": false,
|
|
17434
|
+
"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."
|
|
17435
|
+
},
|
|
17215
17436
|
{
|
|
17216
17437
|
"name": "name",
|
|
17217
17438
|
"type": "string",
|
|
@@ -17228,7 +17449,7 @@ export const operations = [
|
|
|
17228
17449
|
"name": "understanding",
|
|
17229
17450
|
"type": "object",
|
|
17230
17451
|
"required": false,
|
|
17231
|
-
"description": "Understanding tasks enabled for new assets; omitted
|
|
17452
|
+
"description": "Understanding tasks enabled for new assets; omitted visual and transcript default to true, embedding to false."
|
|
17232
17453
|
}
|
|
17233
17454
|
]
|
|
17234
17455
|
}
|
|
@@ -17343,6 +17564,17 @@ export const operations = [
|
|
|
17343
17564
|
"required": false,
|
|
17344
17565
|
"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."
|
|
17345
17566
|
},
|
|
17567
|
+
{
|
|
17568
|
+
"name": "default_tier",
|
|
17569
|
+
"type": "string",
|
|
17570
|
+
"enum": [
|
|
17571
|
+
"economy",
|
|
17572
|
+
"balanced",
|
|
17573
|
+
"quality"
|
|
17574
|
+
],
|
|
17575
|
+
"required": false,
|
|
17576
|
+
"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."
|
|
17577
|
+
},
|
|
17346
17578
|
{
|
|
17347
17579
|
"name": "name",
|
|
17348
17580
|
"type": "string",
|
|
@@ -17810,7 +18042,7 @@ export const operations = [
|
|
|
17810
18042
|
"resource": "media.assets",
|
|
17811
18043
|
"method": "edit",
|
|
17812
18044
|
"summary": "Edit asset",
|
|
17813
|
-
"description": "
|
|
18045
|
+
"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.",
|
|
17814
18046
|
"http": "POST",
|
|
17815
18047
|
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
|
|
17816
18048
|
"streaming": "no",
|
|
@@ -17835,13 +18067,24 @@ export const operations = [
|
|
|
17835
18067
|
"name": "operation",
|
|
17836
18068
|
"type": "object",
|
|
17837
18069
|
"required": true,
|
|
17838
|
-
"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 and
|
|
18070
|
+
"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."
|
|
17839
18071
|
},
|
|
17840
18072
|
{
|
|
17841
18073
|
"name": "model",
|
|
17842
18074
|
"type": "string",
|
|
17843
18075
|
"required": false,
|
|
17844
|
-
"description": "Model that performs the edit; omit it to use the library default image model."
|
|
18076
|
+
"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."
|
|
18077
|
+
},
|
|
18078
|
+
{
|
|
18079
|
+
"name": "tier",
|
|
18080
|
+
"type": "string",
|
|
18081
|
+
"enum": [
|
|
18082
|
+
"economy",
|
|
18083
|
+
"balanced",
|
|
18084
|
+
"quality"
|
|
18085
|
+
],
|
|
18086
|
+
"required": false,
|
|
18087
|
+
"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."
|
|
17845
18088
|
},
|
|
17846
18089
|
{
|
|
17847
18090
|
"name": "asset_folder",
|
|
@@ -18169,7 +18412,7 @@ export const operations = [
|
|
|
18169
18412
|
"resource": "media.speech",
|
|
18170
18413
|
"method": "create",
|
|
18171
18414
|
"summary": "Create speech",
|
|
18172
|
-
"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.",
|
|
18415
|
+
"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.",
|
|
18173
18416
|
"http": "POST",
|
|
18174
18417
|
"path": "/media/v1/libraries/{library_id}/audio/speech",
|
|
18175
18418
|
"streaming": "no",
|
|
@@ -18228,6 +18471,23 @@ export const operations = [
|
|
|
18228
18471
|
"type": "string",
|
|
18229
18472
|
"required": false,
|
|
18230
18473
|
"description": "Language of the text, when the voice supports several."
|
|
18474
|
+
},
|
|
18475
|
+
{
|
|
18476
|
+
"name": "model",
|
|
18477
|
+
"type": "string",
|
|
18478
|
+
"required": false,
|
|
18479
|
+
"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."
|
|
18480
|
+
},
|
|
18481
|
+
{
|
|
18482
|
+
"name": "tier",
|
|
18483
|
+
"type": "string",
|
|
18484
|
+
"enum": [
|
|
18485
|
+
"economy",
|
|
18486
|
+
"balanced",
|
|
18487
|
+
"quality"
|
|
18488
|
+
],
|
|
18489
|
+
"required": false,
|
|
18490
|
+
"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."
|
|
18231
18491
|
}
|
|
18232
18492
|
]
|
|
18233
18493
|
}
|
|
@@ -18401,7 +18661,7 @@ export const operations = [
|
|
|
18401
18661
|
"resource": "media.images",
|
|
18402
18662
|
"method": "generate",
|
|
18403
18663
|
"summary": "Generate image",
|
|
18404
|
-
"description": "Generate
|
|
18664
|
+
"description": "Generate images into a library from a prompt, optionally guided by existing pictures. {library_id} also accepts default, the organization’s default library. prompt is required; n (1 to 10), size, background, output_format, output, references, seed, model, asset_folder and understanding are optional. Name size, not an aspect ratio. Set output to sticker for a cut-out with a transparent background. references attach pictures of the same library with a role: subject keeps a person, product or scene consistent (several subjects put several characters in one picture), edit_target is the picture to change, style is the look to follow, structure the composition. Only a model whose modes in GET /media/v1/generation/capabilities include image takes references; any other answers INVALID_PARAMS naming the models that do, and a role a model cannot honour answers REFERENCE_TYPE_MISMATCH, both before anything is charged. A reference may be an element id (a character, product, scene or brand from the materials endpoints), which expands into its pictures and appends its description to the prompt. To draw several candidates of one key frame, send n and keep the ones you want; delete the rest. Charges are per image at the model API prices and appear in the Job’s usage; a refused or failed image costs nothing. The response is 202 with a queued Job; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} for each output’s asset and viewer_url, give viewer_url to the person and tell them usage. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice.",
|
|
18405
18665
|
"http": "POST",
|
|
18406
18666
|
"path": "/media/v1/libraries/{library_id}/images/generations",
|
|
18407
18667
|
"streaming": "no",
|
|
@@ -18495,7 +18755,18 @@ export const operations = [
|
|
|
18495
18755
|
"name": "model",
|
|
18496
18756
|
"type": "string",
|
|
18497
18757
|
"required": false,
|
|
18498
|
-
"description": "Model with image-generation capability; omit it to use the library default image model."
|
|
18758
|
+
"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."
|
|
18759
|
+
},
|
|
18760
|
+
{
|
|
18761
|
+
"name": "tier",
|
|
18762
|
+
"type": "string",
|
|
18763
|
+
"enum": [
|
|
18764
|
+
"economy",
|
|
18765
|
+
"balanced",
|
|
18766
|
+
"quality"
|
|
18767
|
+
],
|
|
18768
|
+
"required": false,
|
|
18769
|
+
"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."
|
|
18499
18770
|
},
|
|
18500
18771
|
{
|
|
18501
18772
|
"name": "asset_folder",
|
|
@@ -18526,7 +18797,7 @@ export const operations = [
|
|
|
18526
18797
|
"resource": "media.libraries.jobs",
|
|
18527
18798
|
"method": "list",
|
|
18528
18799
|
"summary": "List jobs",
|
|
18529
|
-
"description": "List batch and generation jobs
|
|
18800
|
+
"description": "List the batch and generation jobs of a library, newest first, to find a job whose id you lost or to watch several takes at once. Filter by status or by pipeline_run_id (the jobs one automation run started) and continue with next_cursor. Each entry is the same Job that GET /media/v1/libraries/{library_id}/jobs/{job_id} returns, with outputs, failures and usage.",
|
|
18530
18801
|
"http": "GET",
|
|
18531
18802
|
"path": "/media/v1/libraries/{library_id}/jobs",
|
|
18532
18803
|
"streaming": "no",
|
|
@@ -18579,7 +18850,7 @@ export const operations = [
|
|
|
18579
18850
|
"resource": "media.libraries.jobs",
|
|
18580
18851
|
"method": "retrieve",
|
|
18581
18852
|
"summary": "Get job",
|
|
18582
|
-
"description": "Read
|
|
18853
|
+
"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.",
|
|
18583
18854
|
"http": "GET",
|
|
18584
18855
|
"path": "/media/v1/libraries/{library_id}/jobs/{job_id}",
|
|
18585
18856
|
"streaming": "no",
|
|
@@ -18602,7 +18873,7 @@ export const operations = [
|
|
|
18602
18873
|
"resource": "media.libraries.jobs",
|
|
18603
18874
|
"method": "cancel",
|
|
18604
18875
|
"summary": "Cancel job",
|
|
18605
|
-
"description": "
|
|
18876
|
+
"description": "Stop a generation job you no longer need, for example after the first takes of a draw show the prompt is wrong. Outputs that are queued are cancelled and never charged; outputs already produced stay in the library and stay charged. A video cannot be stopped once the provider has started generating it: the call answers 409 JOB_INVALID_STATE (details VIDEO_ALREADY_RUNNING), and that output still finishes, is saved to the library and is charged. Read the returned Job, or poll it, to see which outputs ended.",
|
|
18606
18877
|
"http": "POST",
|
|
18607
18878
|
"path": "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel",
|
|
18608
18879
|
"streaming": "no",
|
|
@@ -19120,7 +19391,7 @@ export const operations = [
|
|
|
19120
19391
|
"resource": "media.videos",
|
|
19121
19392
|
"method": "generate",
|
|
19122
19393
|
"summary": "Generate video",
|
|
19123
|
-
"description": "Generate
|
|
19394
|
+
"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.",
|
|
19124
19395
|
"http": "POST",
|
|
19125
19396
|
"path": "/media/v1/libraries/{library_id}/videos/generations",
|
|
19126
19397
|
"streaming": "no",
|
|
@@ -19155,10 +19426,17 @@ export const operations = [
|
|
|
19155
19426
|
"text",
|
|
19156
19427
|
"image",
|
|
19157
19428
|
"first_last",
|
|
19158
|
-
"reference"
|
|
19429
|
+
"reference",
|
|
19430
|
+
"edit"
|
|
19159
19431
|
],
|
|
19160
19432
|
"required": true,
|
|
19161
|
-
"description": "What the video is anchored to. text needs only a prompt; image animates first_frame; first_last bookends first_frame and last_frame; reference keeps the pictures named in references consistent and takes no frames."
|
|
19433
|
+
"description": "What the video is anchored to. text needs only a prompt; image animates first_frame; first_last bookends first_frame and last_frame; reference keeps the pictures (and videos) named in references consistent and takes no frames; edit keeps the video named by source and changes what the prompt says, such as replacing its person with a subject picture."
|
|
19434
|
+
},
|
|
19435
|
+
{
|
|
19436
|
+
"name": "source",
|
|
19437
|
+
"type": "string",
|
|
19438
|
+
"required": false,
|
|
19439
|
+
"description": "Asset identifier returned by upload or asset listing; distinct from public_id and content hashes."
|
|
19162
19440
|
},
|
|
19163
19441
|
{
|
|
19164
19442
|
"name": "first_frame",
|
|
@@ -19177,13 +19455,13 @@ export const operations = [
|
|
|
19177
19455
|
"type": "array",
|
|
19178
19456
|
"itemType": "object",
|
|
19179
19457
|
"required": false,
|
|
19180
|
-
"description": "Existing assets the model may use, each
|
|
19458
|
+
"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."
|
|
19181
19459
|
},
|
|
19182
19460
|
{
|
|
19183
19461
|
"name": "duration_seconds",
|
|
19184
19462
|
"type": "integer",
|
|
19185
19463
|
"required": false,
|
|
19186
|
-
"description": "Requested video length in seconds. The chosen model’s supported durations are validated against it and an unsupported value is rejected with INVALID_PARAMS."
|
|
19464
|
+
"description": "Requested video length in seconds; refused with mode edit, whose output is as long as its source. The chosen model’s supported durations are validated against it and an unsupported value is rejected with INVALID_PARAMS."
|
|
19187
19465
|
},
|
|
19188
19466
|
{
|
|
19189
19467
|
"name": "resolution",
|
|
@@ -19229,13 +19507,24 @@ export const operations = [
|
|
|
19229
19507
|
"name": "seed",
|
|
19230
19508
|
"type": "integer",
|
|
19231
19509
|
"required": false,
|
|
19232
|
-
"description": "Seed for reproducible sampling; omit it to let the model choose one."
|
|
19510
|
+
"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."
|
|
19233
19511
|
},
|
|
19234
19512
|
{
|
|
19235
19513
|
"name": "model",
|
|
19236
19514
|
"type": "string",
|
|
19237
19515
|
"required": false,
|
|
19238
|
-
"description": "Model with video-generation capability; omit it to use the library default video model."
|
|
19516
|
+
"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."
|
|
19517
|
+
},
|
|
19518
|
+
{
|
|
19519
|
+
"name": "tier",
|
|
19520
|
+
"type": "string",
|
|
19521
|
+
"enum": [
|
|
19522
|
+
"economy",
|
|
19523
|
+
"balanced",
|
|
19524
|
+
"quality"
|
|
19525
|
+
],
|
|
19526
|
+
"required": false,
|
|
19527
|
+
"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."
|
|
19239
19528
|
},
|
|
19240
19529
|
{
|
|
19241
19530
|
"name": "asset_folder",
|
|
@@ -19262,6 +19551,79 @@ export const operations = [
|
|
|
19262
19551
|
]
|
|
19263
19552
|
}
|
|
19264
19553
|
},
|
|
19554
|
+
{
|
|
19555
|
+
"resource": "media.libraries.voices",
|
|
19556
|
+
"method": "create",
|
|
19557
|
+
"summary": "Create voice",
|
|
19558
|
+
"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.",
|
|
19559
|
+
"http": "POST",
|
|
19560
|
+
"path": "/media/v1/libraries/{library_id}/voices",
|
|
19561
|
+
"streaming": "no",
|
|
19562
|
+
"pagination": false,
|
|
19563
|
+
"pathParams": [
|
|
19564
|
+
{
|
|
19565
|
+
"name": "library_id",
|
|
19566
|
+
"sdkName": "library_id",
|
|
19567
|
+
"description": "Library ID returned by creation."
|
|
19568
|
+
}
|
|
19569
|
+
],
|
|
19570
|
+
"query": [],
|
|
19571
|
+
"body": {
|
|
19572
|
+
"required": true,
|
|
19573
|
+
"fields": []
|
|
19574
|
+
}
|
|
19575
|
+
},
|
|
19576
|
+
{
|
|
19577
|
+
"resource": "media.libraries.voices.designs",
|
|
19578
|
+
"method": "create",
|
|
19579
|
+
"summary": "Design a voice",
|
|
19580
|
+
"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.",
|
|
19581
|
+
"http": "POST",
|
|
19582
|
+
"path": "/media/v1/libraries/{library_id}/voices/designs",
|
|
19583
|
+
"streaming": "no",
|
|
19584
|
+
"pagination": false,
|
|
19585
|
+
"pathParams": [
|
|
19586
|
+
{
|
|
19587
|
+
"name": "library_id",
|
|
19588
|
+
"sdkName": "library_id",
|
|
19589
|
+
"description": "Library ID returned by creation."
|
|
19590
|
+
}
|
|
19591
|
+
],
|
|
19592
|
+
"query": [],
|
|
19593
|
+
"body": {
|
|
19594
|
+
"required": true,
|
|
19595
|
+
"fields": [
|
|
19596
|
+
{
|
|
19597
|
+
"name": "description",
|
|
19598
|
+
"type": "string",
|
|
19599
|
+
"required": true,
|
|
19600
|
+
"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."
|
|
19601
|
+
},
|
|
19602
|
+
{
|
|
19603
|
+
"name": "preview_text",
|
|
19604
|
+
"type": "string",
|
|
19605
|
+
"required": true,
|
|
19606
|
+
"description": "Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call."
|
|
19607
|
+
},
|
|
19608
|
+
{
|
|
19609
|
+
"name": "language",
|
|
19610
|
+
"type": "string",
|
|
19611
|
+
"enum": [
|
|
19612
|
+
"zh",
|
|
19613
|
+
"en"
|
|
19614
|
+
],
|
|
19615
|
+
"required": true,
|
|
19616
|
+
"description": "Language the previews speak: zh or en only."
|
|
19617
|
+
},
|
|
19618
|
+
{
|
|
19619
|
+
"name": "count",
|
|
19620
|
+
"type": "number",
|
|
19621
|
+
"required": false,
|
|
19622
|
+
"description": "How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset."
|
|
19623
|
+
}
|
|
19624
|
+
]
|
|
19625
|
+
}
|
|
19626
|
+
},
|
|
19265
19627
|
{
|
|
19266
19628
|
"resource": "meta.docs",
|
|
19267
19629
|
"method": "search",
|
|
@@ -20715,6 +21077,7 @@ export const operations = [
|
|
|
20715
21077
|
"enum": [
|
|
20716
21078
|
"anthropic.messages",
|
|
20717
21079
|
"cohere.rerank",
|
|
21080
|
+
"dashscope.voice_design",
|
|
20718
21081
|
"google.generateContent",
|
|
20719
21082
|
"mistral.ocr",
|
|
20720
21083
|
"openai.audio.speech",
|
|
@@ -21519,6 +21882,23 @@ export const operations = [
|
|
|
21519
21882
|
"required": false,
|
|
21520
21883
|
"description": "Several reference images; each entry is a URL or base64 data URL, or an object with `image_url`."
|
|
21521
21884
|
},
|
|
21885
|
+
{
|
|
21886
|
+
"name": "input_videos",
|
|
21887
|
+
"type": "array",
|
|
21888
|
+
"itemType": "object",
|
|
21889
|
+
"required": false,
|
|
21890
|
+
"description": "Platform extension (the OpenAI videos API has no input video): reference videos as HTTP(S) URLs, or objects with `video_url.url`. Only models that declare it take them (Doubao Seedance 2.5: up to 10 clips totalling 30 s; 2.0: up to 3 totalling 15 s; mp4 or mov, each 2 s or longer and at most 200 MB); any other model answers 400 `input_videos is not supported by this model.` They combine with `input_references` but not with `frame_images` or `input_reference`. In the prompt, name them `@video1`, `@video2`… and the pictures `@image1`, `@image2`… in request order. A clip showing a real human face is refused by the model."
|
|
21891
|
+
},
|
|
21892
|
+
{
|
|
21893
|
+
"name": "video_task",
|
|
21894
|
+
"type": "string",
|
|
21895
|
+
"enum": [
|
|
21896
|
+
"reference",
|
|
21897
|
+
"edit"
|
|
21898
|
+
],
|
|
21899
|
+
"required": false,
|
|
21900
|
+
"description": "Platform extension, only with input_videos: reference (default) makes a new video that follows the inputs; edit keeps the first video and changes what the prompt names, with the source's ratio and length (send no seconds or size; source 4 to 30 s)."
|
|
21901
|
+
},
|
|
21522
21902
|
{
|
|
21523
21903
|
"name": "frame_images",
|
|
21524
21904
|
"type": "array",
|
|
@@ -22711,7 +23091,7 @@ export const operations = [
|
|
|
22711
23091
|
"resource": "organization.events",
|
|
22712
23092
|
"method": "list",
|
|
22713
23093
|
"summary": "List Organization Usage Events",
|
|
22714
|
-
"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",
|
|
23094
|
+
"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",
|
|
22715
23095
|
"http": "GET",
|
|
22716
23096
|
"path": "/organization/v1/events",
|
|
22717
23097
|
"streaming": "no",
|
|
@@ -24054,7 +24434,7 @@ export const operations = [
|
|
|
24054
24434
|
"resource": "organization.positions.hire",
|
|
24055
24435
|
"method": "create",
|
|
24056
24436
|
"summary": "Hire into a position",
|
|
24057
|
-
"description": "Seats an existing member or agent in a vacant position; use it to fill a position that nobody holds, and use replace_holder to swap the current holder in one step. An actor is a person (human:usr_...) or an agent (agent:agent_...), treated identically, and must exist in your organization and not be archived. The position must be active and vacant, and a position has at most one active assignment. An actor may hold several positions, and exactly one of its active assignments is primary: omit primary to make the first assignment primary and later ones concurrent; primary true makes this one primary and turns the previous primary into a concurrent one; primary false for an actor that holds nothing is refused. request_id makes the call idempotent: repeating it returns the first assignment and seats nobody else. Requires an organization owner or admin, or the head of the position's department or of a department above it. Errors: 400 INVALID_PARAMS for a missing request_id, a candidate.kind other than member, an empty candidate.actor, a non-boolean primary or an unknown body field; 403 PERMISSION_DENIED; 404 POSITION_NOT_FOUND; 404 ACTOR_NOT_FOUND when the actor is not an active member or agent of your organization; 409 POSITION_FROZEN, POSITION_CLOSED or POSITION_OCCUPIED; 409 PRIMARY_ASSIGNMENT_REQUIRED for primary false on an actor that holds nothing. Example body: {\"candidate\":{\"kind\":\"member\",\"actor\":\"human:usr_123\"},\"request_id\":\"hire-support-1\"}.",
|
|
24437
|
+
"description": "Seats an existing member or agent in a vacant position; use it to fill a position that nobody holds, and use replace_holder to swap the current holder in one step. An actor is a person (human:usr_...) or an agent (agent:agent_...), treated identically, and must exist in your organization and not be archived. An agent created moments ago may not be in the organization roster yet (agents enter it asynchronously): that answers 503 ACTOR_SYNCING with a Retry-After header and retryable true, and the same call succeeds after that wait. The position must be active and vacant, and a position has at most one active assignment. An actor may hold several positions, and exactly one of its active assignments is primary: omit primary to make the first assignment primary and later ones concurrent; primary true makes this one primary and turns the previous primary into a concurrent one; primary false for an actor that holds nothing is refused. request_id makes the call idempotent: repeating it returns the first assignment and seats nobody else. Requires an organization owner or admin, or the head of the position's department or of a department above it. Errors: 400 INVALID_PARAMS for a missing request_id, a candidate.kind other than member, an empty candidate.actor, a non-boolean primary or an unknown body field; 403 PERMISSION_DENIED; 404 POSITION_NOT_FOUND; 404 ACTOR_NOT_FOUND when the actor is not an active member or agent of your organization; 409 POSITION_FROZEN, POSITION_CLOSED or POSITION_OCCUPIED; 409 PRIMARY_ASSIGNMENT_REQUIRED for primary false on an actor that holds nothing. Example body: {\"candidate\":{\"kind\":\"member\",\"actor\":\"human:usr_123\"},\"request_id\":\"hire-support-1\"}.",
|
|
24058
24438
|
"http": "POST",
|
|
24059
24439
|
"path": "/organization/v1/positions/{id}/hire",
|
|
24060
24440
|
"streaming": "no",
|
|
@@ -24255,67 +24635,175 @@ export const operations = [
|
|
|
24255
24635
|
"description": "FOCUS columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).\n"
|
|
24256
24636
|
},
|
|
24257
24637
|
{
|
|
24258
|
-
"name": "page",
|
|
24638
|
+
"name": "page",
|
|
24639
|
+
"type": "string",
|
|
24640
|
+
"required": false,
|
|
24641
|
+
"description": "Opaque cursor from the previous page's next_page."
|
|
24642
|
+
}
|
|
24643
|
+
]
|
|
24644
|
+
},
|
|
24645
|
+
{
|
|
24646
|
+
"resource": "registry.installations",
|
|
24647
|
+
"method": "delete",
|
|
24648
|
+
"summary": "Remove an installation",
|
|
24649
|
+
"description": "把包从目标上卸下来,并删掉这条安装记录:技能从智能体的技能列表里移除,插件从电脑上卸载。目标那边已经没有它时也算完成。包本身和它的版本不受影响,之后可以重新安装。记录删除后重发会 404,所以删除前先用 installations.list 确认。",
|
|
24650
|
+
"http": "DELETE",
|
|
24651
|
+
"path": "/registry/v1/installations/{installation_id}",
|
|
24652
|
+
"streaming": "no",
|
|
24653
|
+
"pagination": false,
|
|
24654
|
+
"pathParams": [
|
|
24655
|
+
{
|
|
24656
|
+
"name": "installation_id",
|
|
24657
|
+
"sdkName": "installation_id",
|
|
24658
|
+
"description": "安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。"
|
|
24659
|
+
}
|
|
24660
|
+
],
|
|
24661
|
+
"query": []
|
|
24662
|
+
},
|
|
24663
|
+
{
|
|
24664
|
+
"resource": "registry.installations",
|
|
24665
|
+
"method": "update",
|
|
24666
|
+
"summary": "Update an installation",
|
|
24667
|
+
"description": "把一条安装记录换到另一个版本。技能可以换到任何未撤回的版本(升级或回退),version 省略时换到最新版;插件只能换到库里的最新版本,version 给了也必须等于最新版。撤回的版本不能换过去。对账为 missing 的记录用它可以重新装回去。同名冲突和 20 个技能上限的规则与安装时相同。",
|
|
24668
|
+
"http": "POST",
|
|
24669
|
+
"path": "/registry/v1/installations/{installation_id}:update",
|
|
24670
|
+
"streaming": "no",
|
|
24671
|
+
"pagination": false,
|
|
24672
|
+
"pathParams": [
|
|
24673
|
+
{
|
|
24674
|
+
"name": "installation_id",
|
|
24675
|
+
"sdkName": "installation_id",
|
|
24676
|
+
"description": "安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。"
|
|
24677
|
+
}
|
|
24678
|
+
],
|
|
24679
|
+
"query": [],
|
|
24680
|
+
"body": {
|
|
24681
|
+
"required": true,
|
|
24682
|
+
"fields": [
|
|
24683
|
+
{
|
|
24684
|
+
"name": "version",
|
|
24685
|
+
"type": "string",
|
|
24686
|
+
"required": false,
|
|
24687
|
+
"description": "要换到的版本号,完整 semver;省略时换到最新版;插件给了也必须等于最新版,撤回的版本不能换。"
|
|
24688
|
+
}
|
|
24689
|
+
]
|
|
24690
|
+
}
|
|
24691
|
+
},
|
|
24692
|
+
{
|
|
24693
|
+
"resource": "registry.packages",
|
|
24694
|
+
"method": "retrieve",
|
|
24695
|
+
"summary": "Retrieve package",
|
|
24696
|
+
"description": "读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404。软删期间这个包一律 404,恢复后才重新出现。",
|
|
24697
|
+
"http": "GET",
|
|
24698
|
+
"path": "/registry/v1/packages/{package_id}",
|
|
24699
|
+
"streaming": "no",
|
|
24700
|
+
"pagination": false,
|
|
24701
|
+
"pathParams": [
|
|
24702
|
+
{
|
|
24703
|
+
"name": "package_id",
|
|
24704
|
+
"sdkName": "package_id",
|
|
24705
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
24706
|
+
}
|
|
24707
|
+
],
|
|
24708
|
+
"query": []
|
|
24709
|
+
},
|
|
24710
|
+
{
|
|
24711
|
+
"resource": "registry.packages.git.commits",
|
|
24712
|
+
"method": "retrieve",
|
|
24713
|
+
"summary": "Read a commit",
|
|
24714
|
+
"description": "按对象 id 读一个提交(完整 sha,不解析缩写)。返回提交信息、作者、提交时间与父提交。仓库里没有这个对象返回 404。",
|
|
24715
|
+
"http": "GET",
|
|
24716
|
+
"path": "/registry/v1/packages/{package_id}/git/commits/{sha}",
|
|
24717
|
+
"streaming": "no",
|
|
24718
|
+
"pagination": false,
|
|
24719
|
+
"pathParams": [
|
|
24720
|
+
{
|
|
24721
|
+
"name": "package_id",
|
|
24722
|
+
"sdkName": "package_id",
|
|
24723
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
24724
|
+
},
|
|
24725
|
+
{
|
|
24726
|
+
"name": "sha",
|
|
24727
|
+
"sdkName": "sha",
|
|
24728
|
+
"description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
|
|
24729
|
+
}
|
|
24730
|
+
],
|
|
24731
|
+
"query": []
|
|
24732
|
+
},
|
|
24733
|
+
{
|
|
24734
|
+
"resource": "registry.packages.git.files",
|
|
24735
|
+
"method": "retrieve",
|
|
24736
|
+
"summary": "Download a file from a ref",
|
|
24737
|
+
"description": "按引用读一个文件的原始字节,边读边发(流式),没有大小上限。path 是仓库内相对路径,可以含斜杠;ref 不给就是默认分支。路径不是文件或引用不存在返回 404。",
|
|
24738
|
+
"http": "GET",
|
|
24739
|
+
"path": "/registry/v1/packages/{package_id}/git/files/{path}",
|
|
24740
|
+
"streaming": "no",
|
|
24741
|
+
"pagination": false,
|
|
24742
|
+
"pathParams": [
|
|
24743
|
+
{
|
|
24744
|
+
"name": "package_id",
|
|
24745
|
+
"sdkName": "package_id",
|
|
24746
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
24747
|
+
},
|
|
24748
|
+
{
|
|
24749
|
+
"name": "path",
|
|
24750
|
+
"sdkName": "path",
|
|
24751
|
+
"description": "仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。"
|
|
24752
|
+
}
|
|
24753
|
+
],
|
|
24754
|
+
"query": [
|
|
24755
|
+
{
|
|
24756
|
+
"name": "ref",
|
|
24259
24757
|
"type": "string",
|
|
24260
24758
|
"required": false,
|
|
24261
|
-
"description": "
|
|
24759
|
+
"description": "分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。"
|
|
24262
24760
|
}
|
|
24263
24761
|
]
|
|
24264
24762
|
},
|
|
24265
24763
|
{
|
|
24266
|
-
"resource": "registry.
|
|
24267
|
-
"method": "
|
|
24268
|
-
"summary": "
|
|
24269
|
-
"description": "
|
|
24270
|
-
"http": "
|
|
24271
|
-
"path": "/registry/v1/
|
|
24764
|
+
"resource": "registry.packages.git",
|
|
24765
|
+
"method": "retrieveLog",
|
|
24766
|
+
"summary": "List commits",
|
|
24767
|
+
"description": "列出一个 git 包的提交历史,最新的在前。ref 不给就是包的默认分支;limit 与 offset 分页,has_more 为 true 表示还有下一页。只读:提交只能通过 git 协议推送(clone 地址在包的 clone_url)。OCI 包没有 git 读接口,返回 404。",
|
|
24768
|
+
"http": "GET",
|
|
24769
|
+
"path": "/registry/v1/packages/{package_id}/git/log",
|
|
24272
24770
|
"streaming": "no",
|
|
24273
24771
|
"pagination": false,
|
|
24274
24772
|
"pathParams": [
|
|
24275
24773
|
{
|
|
24276
|
-
"name": "
|
|
24277
|
-
"sdkName": "
|
|
24278
|
-
"description": "
|
|
24774
|
+
"name": "package_id",
|
|
24775
|
+
"sdkName": "package_id",
|
|
24776
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
24279
24777
|
}
|
|
24280
24778
|
],
|
|
24281
|
-
"query": [
|
|
24282
|
-
},
|
|
24283
|
-
{
|
|
24284
|
-
"resource": "registry.installations",
|
|
24285
|
-
"method": "update",
|
|
24286
|
-
"summary": "Update an installation",
|
|
24287
|
-
"description": "把一条安装记录换到另一个版本。技能可以换到任何未撤回的版本(升级或回退),version 省略时换到最新版;插件只能换到库里的最新版本,version 给了也必须等于最新版。撤回的版本不能换过去。对账为 missing 的记录用它可以重新装回去。同名冲突和 20 个技能上限的规则与安装时相同。",
|
|
24288
|
-
"http": "POST",
|
|
24289
|
-
"path": "/registry/v1/installations/{installation_id}:update",
|
|
24290
|
-
"streaming": "no",
|
|
24291
|
-
"pagination": false,
|
|
24292
|
-
"pathParams": [
|
|
24779
|
+
"query": [
|
|
24293
24780
|
{
|
|
24294
|
-
"name": "
|
|
24295
|
-
"
|
|
24296
|
-
"
|
|
24781
|
+
"name": "ref",
|
|
24782
|
+
"type": "string",
|
|
24783
|
+
"required": false,
|
|
24784
|
+
"description": "分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。"
|
|
24785
|
+
},
|
|
24786
|
+
{
|
|
24787
|
+
"name": "limit",
|
|
24788
|
+
"type": "integer",
|
|
24789
|
+
"required": false,
|
|
24790
|
+
"description": "这一页最多返回多少个提交,1 到 100,默认 20。"
|
|
24791
|
+
},
|
|
24792
|
+
{
|
|
24793
|
+
"name": "offset",
|
|
24794
|
+
"type": "integer",
|
|
24795
|
+
"required": false,
|
|
24796
|
+
"description": "从历史开头跳过多少个提交,用来翻页;非负整数,默认 0。"
|
|
24297
24797
|
}
|
|
24298
|
-
]
|
|
24299
|
-
"query": [],
|
|
24300
|
-
"body": {
|
|
24301
|
-
"required": true,
|
|
24302
|
-
"fields": [
|
|
24303
|
-
{
|
|
24304
|
-
"name": "version",
|
|
24305
|
-
"type": "string",
|
|
24306
|
-
"required": false,
|
|
24307
|
-
"description": "要换到的版本号,完整 semver;省略时换到最新版;插件给了也必须等于最新版,撤回的版本不能换。"
|
|
24308
|
-
}
|
|
24309
|
-
]
|
|
24310
|
-
}
|
|
24798
|
+
]
|
|
24311
24799
|
},
|
|
24312
24800
|
{
|
|
24313
|
-
"resource": "registry.packages",
|
|
24801
|
+
"resource": "registry.packages.git.trees",
|
|
24314
24802
|
"method": "retrieve",
|
|
24315
|
-
"summary": "
|
|
24316
|
-
"description": "
|
|
24803
|
+
"summary": "List a tree",
|
|
24804
|
+
"description": "读一个树对象(或一个提交的根树)的条目:名字、类型(blob / tree / commit)、模式、对象 id,以及已知时的大小。只列这一层,不递归。",
|
|
24317
24805
|
"http": "GET",
|
|
24318
|
-
"path": "/registry/v1/packages/{package_id}",
|
|
24806
|
+
"path": "/registry/v1/packages/{package_id}/git/trees/{sha}",
|
|
24319
24807
|
"streaming": "no",
|
|
24320
24808
|
"pagination": false,
|
|
24321
24809
|
"pathParams": [
|
|
@@ -24323,6 +24811,11 @@ export const operations = [
|
|
|
24323
24811
|
"name": "package_id",
|
|
24324
24812
|
"sdkName": "package_id",
|
|
24325
24813
|
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
24814
|
+
},
|
|
24815
|
+
{
|
|
24816
|
+
"name": "sha",
|
|
24817
|
+
"sdkName": "sha",
|
|
24818
|
+
"description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
|
|
24326
24819
|
}
|
|
24327
24820
|
],
|
|
24328
24821
|
"query": []
|
|
@@ -24826,6 +25319,165 @@ export const operations = [
|
|
|
24826
25319
|
]
|
|
24827
25320
|
}
|
|
24828
25321
|
},
|
|
25322
|
+
{
|
|
25323
|
+
"resource": "sandbox.byod.devices",
|
|
25324
|
+
"method": "list",
|
|
25325
|
+
"summary": "List your organization's own devices",
|
|
25326
|
+
"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:[]}]}.",
|
|
25327
|
+
"http": "GET",
|
|
25328
|
+
"path": "/sandbox/v1/byod/devices",
|
|
25329
|
+
"streaming": "no",
|
|
25330
|
+
"pagination": false,
|
|
25331
|
+
"pathParams": [],
|
|
25332
|
+
"query": []
|
|
25333
|
+
},
|
|
25334
|
+
{
|
|
25335
|
+
"resource": "sandbox.byod.devices",
|
|
25336
|
+
"method": "retrieve",
|
|
25337
|
+
"summary": "Read one of your organization's devices",
|
|
25338
|
+
"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.",
|
|
25339
|
+
"http": "GET",
|
|
25340
|
+
"path": "/sandbox/v1/byod/devices/{deviceID}",
|
|
25341
|
+
"streaming": "no",
|
|
25342
|
+
"pagination": false,
|
|
25343
|
+
"pathParams": [
|
|
25344
|
+
{
|
|
25345
|
+
"name": "deviceID",
|
|
25346
|
+
"sdkName": "deviceID",
|
|
25347
|
+
"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."
|
|
25348
|
+
}
|
|
25349
|
+
],
|
|
25350
|
+
"query": []
|
|
25351
|
+
},
|
|
25352
|
+
{
|
|
25353
|
+
"resource": "sandbox.byod.devices",
|
|
25354
|
+
"method": "update",
|
|
25355
|
+
"summary": "Rename one of your organization's devices",
|
|
25356
|
+
"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.",
|
|
25357
|
+
"http": "PATCH",
|
|
25358
|
+
"path": "/sandbox/v1/byod/devices/{deviceID}",
|
|
25359
|
+
"streaming": "no",
|
|
25360
|
+
"pagination": false,
|
|
25361
|
+
"pathParams": [
|
|
25362
|
+
{
|
|
25363
|
+
"name": "deviceID",
|
|
25364
|
+
"sdkName": "deviceID",
|
|
25365
|
+
"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."
|
|
25366
|
+
}
|
|
25367
|
+
],
|
|
25368
|
+
"query": [],
|
|
25369
|
+
"body": {
|
|
25370
|
+
"required": true,
|
|
25371
|
+
"fields": [
|
|
25372
|
+
{
|
|
25373
|
+
"name": "name",
|
|
25374
|
+
"type": "string",
|
|
25375
|
+
"required": true,
|
|
25376
|
+
"description": "New display name for the device, 1 to 64 characters after trimming leading and trailing whitespace; it does not have to be unique."
|
|
25377
|
+
}
|
|
25378
|
+
]
|
|
25379
|
+
}
|
|
25380
|
+
},
|
|
25381
|
+
{
|
|
25382
|
+
"resource": "sandbox.byod.devices.disconnect",
|
|
25383
|
+
"method": "create",
|
|
25384
|
+
"summary": "Disconnect a device and revoke its credential",
|
|
25385
|
+
"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}.",
|
|
25386
|
+
"http": "POST",
|
|
25387
|
+
"path": "/sandbox/v1/byod/devices/{deviceID}/disconnect",
|
|
25388
|
+
"streaming": "no",
|
|
25389
|
+
"pagination": false,
|
|
25390
|
+
"pathParams": [
|
|
25391
|
+
{
|
|
25392
|
+
"name": "deviceID",
|
|
25393
|
+
"sdkName": "deviceID",
|
|
25394
|
+
"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."
|
|
25395
|
+
}
|
|
25396
|
+
],
|
|
25397
|
+
"query": []
|
|
25398
|
+
},
|
|
25399
|
+
{
|
|
25400
|
+
"resource": "sandbox.byod.pairings",
|
|
25401
|
+
"method": "create",
|
|
25402
|
+
"summary": "Start adding a phone of your own",
|
|
25403
|
+
"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'}.",
|
|
25404
|
+
"http": "POST",
|
|
25405
|
+
"path": "/sandbox/v1/byod/pairings",
|
|
25406
|
+
"streaming": "no",
|
|
25407
|
+
"pagination": false,
|
|
25408
|
+
"pathParams": [],
|
|
25409
|
+
"query": []
|
|
25410
|
+
},
|
|
25411
|
+
{
|
|
25412
|
+
"resource": "sandbox.byod.pairings",
|
|
25413
|
+
"method": "retrieve",
|
|
25414
|
+
"summary": "Read a pairing for the phone's Allow screen",
|
|
25415
|
+
"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'}.",
|
|
25416
|
+
"http": "GET",
|
|
25417
|
+
"path": "/sandbox/v1/byod/pairings/{code}",
|
|
25418
|
+
"streaming": "no",
|
|
25419
|
+
"pagination": false,
|
|
25420
|
+
"pathParams": [
|
|
25421
|
+
{
|
|
25422
|
+
"name": "code",
|
|
25423
|
+
"sdkName": "code",
|
|
25424
|
+
"description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
|
|
25425
|
+
}
|
|
25426
|
+
],
|
|
25427
|
+
"query": []
|
|
25428
|
+
},
|
|
25429
|
+
{
|
|
25430
|
+
"resource": "sandbox.byod.pairings.claim",
|
|
25431
|
+
"method": "create",
|
|
25432
|
+
"summary": "Claim a pairing and register the phone",
|
|
25433
|
+
"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/'}.",
|
|
25434
|
+
"http": "POST",
|
|
25435
|
+
"path": "/sandbox/v1/byod/pairings/{code}/claim",
|
|
25436
|
+
"streaming": "no",
|
|
25437
|
+
"pagination": false,
|
|
25438
|
+
"pathParams": [
|
|
25439
|
+
{
|
|
25440
|
+
"name": "code",
|
|
25441
|
+
"sdkName": "code",
|
|
25442
|
+
"description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
|
|
25443
|
+
}
|
|
25444
|
+
],
|
|
25445
|
+
"query": [],
|
|
25446
|
+
"body": {
|
|
25447
|
+
"required": true,
|
|
25448
|
+
"fields": [
|
|
25449
|
+
{
|
|
25450
|
+
"name": "platform",
|
|
25451
|
+
"type": "string",
|
|
25452
|
+
"enum": [
|
|
25453
|
+
"android",
|
|
25454
|
+
"macos",
|
|
25455
|
+
"linux"
|
|
25456
|
+
],
|
|
25457
|
+
"required": true,
|
|
25458
|
+
"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."
|
|
25459
|
+
},
|
|
25460
|
+
{
|
|
25461
|
+
"name": "name",
|
|
25462
|
+
"type": "string",
|
|
25463
|
+
"required": false,
|
|
25464
|
+
"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."
|
|
25465
|
+
},
|
|
25466
|
+
{
|
|
25467
|
+
"name": "model",
|
|
25468
|
+
"type": "string",
|
|
25469
|
+
"required": false,
|
|
25470
|
+
"description": "The device model the app reports, at most 128 characters; it is display only and can be omitted."
|
|
25471
|
+
},
|
|
25472
|
+
{
|
|
25473
|
+
"name": "os_version",
|
|
25474
|
+
"type": "string",
|
|
25475
|
+
"required": false,
|
|
25476
|
+
"description": "The operating-system version the app reports, at most 64 characters; it is display only and can be omitted."
|
|
25477
|
+
}
|
|
25478
|
+
]
|
|
25479
|
+
}
|
|
25480
|
+
},
|
|
24829
25481
|
{
|
|
24830
25482
|
"resource": "sandbox.events.sandboxes",
|
|
24831
25483
|
"method": "retrieve",
|
|
@@ -24944,7 +25596,7 @@ export const operations = [
|
|
|
24944
25596
|
"resource": "sandbox.sandboxes",
|
|
24945
25597
|
"method": "create",
|
|
24946
25598
|
"summary": "Create sandbox (v2)",
|
|
24947
|
-
"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.",
|
|
25599
|
+
"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.",
|
|
24948
25600
|
"http": "POST",
|
|
24949
25601
|
"path": "/sandbox/v1/sandboxes",
|
|
24950
25602
|
"streaming": "no",
|
|
@@ -25026,6 +25678,98 @@ export const operations = [
|
|
|
25026
25678
|
"itemType": "object",
|
|
25027
25679
|
"required": false,
|
|
25028
25680
|
"description": "Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox."
|
|
25681
|
+
},
|
|
25682
|
+
{
|
|
25683
|
+
"name": "ephemeral",
|
|
25684
|
+
"type": "boolean",
|
|
25685
|
+
"required": false,
|
|
25686
|
+
"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."
|
|
25687
|
+
},
|
|
25688
|
+
{
|
|
25689
|
+
"name": "size",
|
|
25690
|
+
"type": "string",
|
|
25691
|
+
"required": false,
|
|
25692
|
+
"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."
|
|
25693
|
+
},
|
|
25694
|
+
{
|
|
25695
|
+
"name": "name",
|
|
25696
|
+
"type": "string",
|
|
25697
|
+
"required": false,
|
|
25698
|
+
"description": "Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template."
|
|
25699
|
+
},
|
|
25700
|
+
{
|
|
25701
|
+
"name": "waitForReady",
|
|
25702
|
+
"type": "boolean",
|
|
25703
|
+
"required": false,
|
|
25704
|
+
"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."
|
|
25705
|
+
},
|
|
25706
|
+
{
|
|
25707
|
+
"name": "onExpire",
|
|
25708
|
+
"type": "string",
|
|
25709
|
+
"enum": [
|
|
25710
|
+
"kill",
|
|
25711
|
+
"pause"
|
|
25712
|
+
],
|
|
25713
|
+
"required": false,
|
|
25714
|
+
"description": "Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent."
|
|
25715
|
+
},
|
|
25716
|
+
{
|
|
25717
|
+
"name": "idleTimeout",
|
|
25718
|
+
"type": "integer",
|
|
25719
|
+
"required": false,
|
|
25720
|
+
"description": "Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off."
|
|
25721
|
+
},
|
|
25722
|
+
{
|
|
25723
|
+
"name": "idleActivity",
|
|
25724
|
+
"type": "string",
|
|
25725
|
+
"enum": [
|
|
25726
|
+
"traffic",
|
|
25727
|
+
"caller"
|
|
25728
|
+
],
|
|
25729
|
+
"required": false,
|
|
25730
|
+
"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."
|
|
25731
|
+
},
|
|
25732
|
+
{
|
|
25733
|
+
"name": "sku",
|
|
25734
|
+
"type": "string",
|
|
25735
|
+
"required": false,
|
|
25736
|
+
"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."
|
|
25737
|
+
},
|
|
25738
|
+
{
|
|
25739
|
+
"name": "kind",
|
|
25740
|
+
"type": "string",
|
|
25741
|
+
"enum": [
|
|
25742
|
+
"run",
|
|
25743
|
+
"job",
|
|
25744
|
+
"batch",
|
|
25745
|
+
"computer",
|
|
25746
|
+
"compat"
|
|
25747
|
+
],
|
|
25748
|
+
"required": false,
|
|
25749
|
+
"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."
|
|
25750
|
+
},
|
|
25751
|
+
{
|
|
25752
|
+
"name": "interruptible",
|
|
25753
|
+
"type": "boolean",
|
|
25754
|
+
"required": false,
|
|
25755
|
+
"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."
|
|
25756
|
+
},
|
|
25757
|
+
{
|
|
25758
|
+
"name": "onLoss",
|
|
25759
|
+
"type": "string",
|
|
25760
|
+
"enum": [
|
|
25761
|
+
"fail",
|
|
25762
|
+
"rebuild"
|
|
25763
|
+
],
|
|
25764
|
+
"required": false,
|
|
25765
|
+
"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."
|
|
25766
|
+
},
|
|
25767
|
+
{
|
|
25768
|
+
"name": "outputs",
|
|
25769
|
+
"type": "array",
|
|
25770
|
+
"itemType": "object",
|
|
25771
|
+
"required": false,
|
|
25772
|
+
"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."
|
|
25029
25773
|
}
|
|
25030
25774
|
]
|
|
25031
25775
|
}
|
|
@@ -25095,6 +25839,28 @@ export const operations = [
|
|
|
25095
25839
|
]
|
|
25096
25840
|
}
|
|
25097
25841
|
},
|
|
25842
|
+
{
|
|
25843
|
+
"resource": "sandbox.sandboxes",
|
|
25844
|
+
"method": "act",
|
|
25845
|
+
"summary": "Act on a phone sandbox's screen",
|
|
25846
|
+
"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.",
|
|
25847
|
+
"http": "POST",
|
|
25848
|
+
"path": "/sandbox/v1/sandboxes/{sandboxID}/act",
|
|
25849
|
+
"streaming": "no",
|
|
25850
|
+
"pagination": false,
|
|
25851
|
+
"pathParams": [
|
|
25852
|
+
{
|
|
25853
|
+
"name": "sandboxID",
|
|
25854
|
+
"sdkName": "sandboxID",
|
|
25855
|
+
"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."
|
|
25856
|
+
}
|
|
25857
|
+
],
|
|
25858
|
+
"query": [],
|
|
25859
|
+
"body": {
|
|
25860
|
+
"required": true,
|
|
25861
|
+
"fields": []
|
|
25862
|
+
}
|
|
25863
|
+
},
|
|
25098
25864
|
{
|
|
25099
25865
|
"resource": "sandbox.sandboxes",
|
|
25100
25866
|
"method": "connect",
|
|
@@ -25607,7 +26373,7 @@ export const operations = [
|
|
|
25607
26373
|
"resource": "sandbox.sandboxes.commands",
|
|
25608
26374
|
"method": "run",
|
|
25609
26375
|
"summary": "Run a command in the sandbox",
|
|
25610
|
-
"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\"}.",
|
|
26376
|
+
"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\"}.",
|
|
25611
26377
|
"http": "POST",
|
|
25612
26378
|
"path": "/sandbox/v1/sandboxes/{sandbox_id}/commands",
|
|
25613
26379
|
"streaming": "no",
|
|
@@ -26973,10 +27739,11 @@ export const operations = [
|
|
|
26973
27739
|
"file",
|
|
26974
27740
|
"artifact",
|
|
26975
27741
|
"canvas",
|
|
26976
|
-
"media_asset"
|
|
27742
|
+
"media_asset",
|
|
27743
|
+
"agent"
|
|
26977
27744
|
],
|
|
26978
27745
|
"required": false,
|
|
26979
|
-
"description": "Only shares of this object type; file, canvas and
|
|
27746
|
+
"description": "Only shares of this object type; file, canvas, media_asset and agent create today."
|
|
26980
27747
|
},
|
|
26981
27748
|
{
|
|
26982
27749
|
"name": "resource_id",
|
|
@@ -27013,7 +27780,7 @@ export const operations = [
|
|
|
27013
27780
|
"resource": "share.permissions",
|
|
27014
27781
|
"method": "create",
|
|
27015
27782
|
"summary": "Create share",
|
|
27016
|
-
"description": "Make one
|
|
27783
|
+
"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.",
|
|
27017
27784
|
"http": "POST",
|
|
27018
27785
|
"path": "/share/v1/permissions",
|
|
27019
27786
|
"streaming": "no",
|
|
@@ -30736,7 +31503,7 @@ export const operations = [
|
|
|
30736
31503
|
"name": "filter",
|
|
30737
31504
|
"type": "string",
|
|
30738
31505
|
"required": false,
|
|
30739
|
-
"description": "Search qualifier subset: is/state, reason, label/-label, no, assignee, owner, author, mentions, milestone, type, kind, assignee-kind, in and sort (owner:<subject>|none|*|me and no:owner match the single ticket owner; assignee: matches the GitHub-compatible assignees); write each qualifier as field:value (for example, is:open milestone:5), never field=value. Unknown qualifiers return INVALID_PARAMS. Passed unchanged to the service."
|
|
31506
|
+
"description": "Search qualifier subset: is/state, reason, label/-label, no, assignee, owner, author, mentions, milestone, type, kind, assignee-kind, in and sort (owner:<subject>|none|*|me and no:owner match the single ticket owner; assignee: matches the GitHub-compatible assignees); write each qualifier as field:value (for example, is:open milestone:5), never field=value. Unknown qualifiers return INVALID_PARAMS, and so does a known qualifier written with = instead of : (spaces optional, for example milestone = 5); write it as milestone:5. Passed unchanged to the service."
|
|
30740
31507
|
}
|
|
30741
31508
|
]
|
|
30742
31509
|
},
|
|
@@ -30937,7 +31704,7 @@ export const operations = [
|
|
|
30937
31704
|
"name": "duplicate_of",
|
|
30938
31705
|
"type": "integer",
|
|
30939
31706
|
"required": false,
|
|
30940
|
-
"description": "
|
|
31707
|
+
"description": "The original ticket's number; required when state_reason is duplicate."
|
|
30941
31708
|
}
|
|
30942
31709
|
]
|
|
30943
31710
|
}
|
|
@@ -32046,7 +32813,7 @@ export const operations = [
|
|
|
32046
32813
|
"resource": "vault.vaults.secrets",
|
|
32047
32814
|
"method": "create",
|
|
32048
32815
|
"summary": "Create secret",
|
|
32049
|
-
"description": "Store a manually supplied token in an active vault.
|
|
32816
|
+
"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.",
|
|
32050
32817
|
"http": "POST",
|
|
32051
32818
|
"path": "/vault/v1/vaults/{vault_id}/secrets",
|
|
32052
32819
|
"streaming": "no",
|
|
@@ -32079,7 +32846,7 @@ export const operations = [
|
|
|
32079
32846
|
"type": "array",
|
|
32080
32847
|
"itemType": "string",
|
|
32081
32848
|
"required": false,
|
|
32082
|
-
"description": "Allowed destinations for the secret.
|
|
32849
|
+
"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."
|
|
32083
32850
|
},
|
|
32084
32851
|
{
|
|
32085
32852
|
"name": "description",
|
|
@@ -32199,7 +32966,7 @@ export const operations = [
|
|
|
32199
32966
|
"type": "array",
|
|
32200
32967
|
"itemType": "string",
|
|
32201
32968
|
"required": false,
|
|
32202
|
-
"description": "Allowed destinations for the secret.
|
|
32969
|
+
"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."
|
|
32203
32970
|
},
|
|
32204
32971
|
{
|
|
32205
32972
|
"name": "description",
|
|
@@ -32303,7 +33070,7 @@ export const operations = [
|
|
|
32303
33070
|
"resource": "vault.vaults.secrets",
|
|
32304
33071
|
"method": "import",
|
|
32305
33072
|
"summary": "Import secrets",
|
|
32306
|
-
"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
|
|
33073
|
+
"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.",
|
|
32307
33074
|
"http": "POST",
|
|
32308
33075
|
"path": "/vault/v1/vaults/{vault_id}/secrets:import",
|
|
32309
33076
|
"streaming": "no",
|