@deepraxis/sdk 0.1.1-dev.f9cd530 → 0.1.1-dev.fa8e340
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/METHODS.md +166 -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 +308 -62
- package/dist/generated/sdk.gen.js +865 -152
- package/dist/generated/types.gen.d.ts +12320 -3623
- 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 +1765 -436
- package/dist/resources.generated.d.ts +1853 -313
- package/dist/resources.generated.js +100 -12
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ export const operations = [
|
|
|
3
3
|
"resource": "agent.agents",
|
|
4
4
|
"method": "list",
|
|
5
5
|
"summary": "List agents",
|
|
6
|
-
"description": "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=general
|
|
6
|
+
"description": "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=general for durable-computer agents, kind=service for per-session environments, or kind=assume for external MCP clients. Pass next_page from the response as page to read the next page; a null next_page means the end.",
|
|
7
7
|
"http": "GET",
|
|
8
8
|
"path": "/agent/v1/agents",
|
|
9
9
|
"streaming": "no",
|
|
@@ -49,7 +49,6 @@ export const operations = [
|
|
|
49
49
|
"type": "string",
|
|
50
50
|
"enum": [
|
|
51
51
|
"general",
|
|
52
|
-
"personal",
|
|
53
52
|
"service",
|
|
54
53
|
"assume"
|
|
55
54
|
],
|
|
@@ -62,7 +61,7 @@ export const operations = [
|
|
|
62
61
|
"resource": "agent.agents",
|
|
63
62
|
"method": "create",
|
|
64
63
|
"summary": "Create agent",
|
|
65
|
-
"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, ask_user_question 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. Drive assume agents over MCP at /agent/v1/agents/{id}/mcp.",
|
|
66
65
|
"http": "POST",
|
|
67
66
|
"path": "/agent/v1/agents",
|
|
68
67
|
"streaming": "no",
|
|
@@ -134,19 +133,18 @@ export const operations = [
|
|
|
134
133
|
"type": "array",
|
|
135
134
|
"itemType": "object",
|
|
136
135
|
"required": false,
|
|
137
|
-
"description": "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general
|
|
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."
|
|
138
137
|
},
|
|
139
138
|
{
|
|
140
139
|
"name": "kind",
|
|
141
140
|
"type": "string",
|
|
142
141
|
"enum": [
|
|
143
142
|
"general",
|
|
144
|
-
"personal",
|
|
145
143
|
"service",
|
|
146
144
|
"assume"
|
|
147
145
|
],
|
|
148
146
|
"required": false,
|
|
149
|
-
"description": "Immutable agent kind. general and
|
|
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."
|
|
150
148
|
},
|
|
151
149
|
{
|
|
152
150
|
"name": "computer_id",
|
|
@@ -196,7 +194,7 @@ export const operations = [
|
|
|
196
194
|
"name": "avatar",
|
|
197
195
|
"type": "string",
|
|
198
196
|
"required": false,
|
|
199
|
-
"description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General
|
|
197
|
+
"description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
|
|
200
198
|
},
|
|
201
199
|
{
|
|
202
200
|
"name": "environment_id",
|
|
@@ -211,6 +209,12 @@ export const operations = [
|
|
|
211
209
|
"required": false,
|
|
212
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."
|
|
213
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
|
+
},
|
|
214
218
|
{
|
|
215
219
|
"name": "preset",
|
|
216
220
|
"type": "string",
|
|
@@ -364,12 +368,11 @@ export const operations = [
|
|
|
364
368
|
"type": "string",
|
|
365
369
|
"enum": [
|
|
366
370
|
"general",
|
|
367
|
-
"personal",
|
|
368
371
|
"service",
|
|
369
372
|
"assume"
|
|
370
373
|
],
|
|
371
374
|
"required": false,
|
|
372
|
-
"description": "Immutable agent kind. general and
|
|
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."
|
|
373
376
|
},
|
|
374
377
|
{
|
|
375
378
|
"name": "computer_id",
|
|
@@ -419,7 +422,7 @@ export const operations = [
|
|
|
419
422
|
"name": "avatar",
|
|
420
423
|
"type": "string",
|
|
421
424
|
"required": false,
|
|
422
|
-
"description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General
|
|
425
|
+
"description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
|
|
423
426
|
},
|
|
424
427
|
{
|
|
425
428
|
"name": "environment_id",
|
|
@@ -434,6 +437,12 @@ export const operations = [
|
|
|
434
437
|
"required": false,
|
|
435
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."
|
|
436
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
|
+
},
|
|
437
446
|
{
|
|
438
447
|
"name": "preset",
|
|
439
448
|
"type": "string",
|
|
@@ -622,154 +631,6 @@ export const operations = [
|
|
|
622
631
|
}
|
|
623
632
|
]
|
|
624
633
|
},
|
|
625
|
-
{
|
|
626
|
-
"resource": "agent.agents.customers.auth.accessTokens",
|
|
627
|
-
"method": "create",
|
|
628
|
-
"summary": "Create customer access token",
|
|
629
|
-
"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_…\"}.",
|
|
630
|
-
"http": "POST",
|
|
631
|
-
"path": "/agent/v1/agents/{agent_id}/customers/auth/access_tokens",
|
|
632
|
-
"streaming": "no",
|
|
633
|
-
"pagination": false,
|
|
634
|
-
"pathParams": [
|
|
635
|
-
{
|
|
636
|
-
"name": "agent_id",
|
|
637
|
-
"sdkName": "agent_id",
|
|
638
|
-
"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_…."
|
|
639
|
-
}
|
|
640
|
-
],
|
|
641
|
-
"query": [],
|
|
642
|
-
"body": {
|
|
643
|
-
"required": true,
|
|
644
|
-
"fields": []
|
|
645
|
-
}
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
"resource": "agent.agents.customers.auth.accessTokens",
|
|
649
|
-
"method": "deleteCurrent",
|
|
650
|
-
"summary": "Log out customer",
|
|
651
|
-
"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.",
|
|
652
|
-
"http": "DELETE",
|
|
653
|
-
"path": "/agent/v1/agents/{agent_id}/customers/auth/access_tokens/current",
|
|
654
|
-
"streaming": "no",
|
|
655
|
-
"pagination": false,
|
|
656
|
-
"pathParams": [
|
|
657
|
-
{
|
|
658
|
-
"name": "agent_id",
|
|
659
|
-
"sdkName": "agent_id",
|
|
660
|
-
"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_…."
|
|
661
|
-
}
|
|
662
|
-
],
|
|
663
|
-
"query": []
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
"resource": "agent.agents.customers.auth.accessTokens.renew",
|
|
667
|
-
"method": "create",
|
|
668
|
-
"summary": "Renew customer access token",
|
|
669
|
-
"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.",
|
|
670
|
-
"http": "POST",
|
|
671
|
-
"path": "/agent/v1/agents/{agent_id}/customers/auth/access_tokens/renew",
|
|
672
|
-
"streaming": "no",
|
|
673
|
-
"pagination": false,
|
|
674
|
-
"pathParams": [
|
|
675
|
-
{
|
|
676
|
-
"name": "agent_id",
|
|
677
|
-
"sdkName": "agent_id",
|
|
678
|
-
"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_…."
|
|
679
|
-
}
|
|
680
|
-
],
|
|
681
|
-
"query": []
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
"resource": "agent.agents.customers.auth.grantCodes",
|
|
685
|
-
"method": "create",
|
|
686
|
-
"summary": "Create customer grant code",
|
|
687
|
-
"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\"}.",
|
|
688
|
-
"http": "POST",
|
|
689
|
-
"path": "/agent/v1/agents/{agent_id}/customers/auth/grant_codes",
|
|
690
|
-
"streaming": "no",
|
|
691
|
-
"pagination": false,
|
|
692
|
-
"pathParams": [
|
|
693
|
-
{
|
|
694
|
-
"name": "agent_id",
|
|
695
|
-
"sdkName": "agent_id",
|
|
696
|
-
"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_…."
|
|
697
|
-
}
|
|
698
|
-
],
|
|
699
|
-
"query": [],
|
|
700
|
-
"body": {
|
|
701
|
-
"required": true,
|
|
702
|
-
"fields": [
|
|
703
|
-
{
|
|
704
|
-
"name": "customer_id",
|
|
705
|
-
"type": "string",
|
|
706
|
-
"required": true,
|
|
707
|
-
"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."
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
"name": "version",
|
|
711
|
-
"type": "integer",
|
|
712
|
-
"required": false,
|
|
713
|
-
"description": "Existing agent version that every token of this sign-in pins. Defaults to the agent's active_version when the code is issued."
|
|
714
|
-
},
|
|
715
|
-
{
|
|
716
|
-
"name": "budget",
|
|
717
|
-
"type": "object",
|
|
718
|
-
"required": false,
|
|
719
|
-
"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."
|
|
720
|
-
},
|
|
721
|
-
{
|
|
722
|
-
"name": "system_message",
|
|
723
|
-
"type": "array",
|
|
724
|
-
"itemType": "object",
|
|
725
|
-
"required": false,
|
|
726
|
-
"description": "Optional context the agent receives at the start of each session, as text blocks, limited to 8192 UTF-8 bytes in total."
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
"name": "agent_override",
|
|
730
|
-
"type": "object",
|
|
731
|
-
"required": false,
|
|
732
|
-
"description": "Optional system prompt override, accepted only when the embed policy allows agent overrides."
|
|
733
|
-
},
|
|
734
|
-
{
|
|
735
|
-
"name": "metadata",
|
|
736
|
-
"type": "object",
|
|
737
|
-
"required": false,
|
|
738
|
-
"description": "Up to 16 string pairs copied onto every session the customer starts. The playground key is reserved."
|
|
739
|
-
},
|
|
740
|
-
{
|
|
741
|
-
"name": "origin",
|
|
742
|
-
"type": "string",
|
|
743
|
-
"required": false,
|
|
744
|
-
"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."
|
|
745
|
-
},
|
|
746
|
-
{
|
|
747
|
-
"name": "expires_in",
|
|
748
|
-
"type": "integer",
|
|
749
|
-
"required": false,
|
|
750
|
-
"description": "Seconds the code stays redeemable, from 60 to 86400. Defaults to 900."
|
|
751
|
-
},
|
|
752
|
-
{
|
|
753
|
-
"name": "max_session_seconds",
|
|
754
|
-
"type": "integer",
|
|
755
|
-
"required": false,
|
|
756
|
-
"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."
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
"name": "anonymous_access_token",
|
|
760
|
-
"type": "string",
|
|
761
|
-
"required": false,
|
|
762
|
-
"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."
|
|
763
|
-
},
|
|
764
|
-
{
|
|
765
|
-
"name": "hosted",
|
|
766
|
-
"type": "boolean",
|
|
767
|
-
"required": false,
|
|
768
|
-
"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."
|
|
769
|
-
}
|
|
770
|
-
]
|
|
771
|
-
}
|
|
772
|
-
},
|
|
773
634
|
{
|
|
774
635
|
"resource": "agent.agents.customers",
|
|
775
636
|
"method": "delete",
|
|
@@ -915,11 +776,82 @@ export const operations = [
|
|
|
915
776
|
],
|
|
916
777
|
"query": []
|
|
917
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
|
+
},
|
|
918
850
|
{
|
|
919
851
|
"resource": "agent.agents.events",
|
|
920
852
|
"method": "list",
|
|
921
853
|
"summary": "Read your conversation with an agent",
|
|
922
|
-
"description": "Read your conversation with a
|
|
854
|
+
"description": "Read your conversation with a general agent: the events of your own main session with that agent, the same page sessions.events.list returns — same query parameters, same data + next_page envelope, same event shapes. {agent_id} takes the agent_… id, the eight character identity number or the handle; a service or assume agent answers 400. Use it to collect a reply, to find tool calls waiting for approval, or to learn the real session id without ever asking for one.",
|
|
923
855
|
"http": "GET",
|
|
924
856
|
"path": "/agent/v1/agents/{agent_id}/events",
|
|
925
857
|
"streaming": "no",
|
|
@@ -991,7 +923,7 @@ export const operations = [
|
|
|
991
923
|
"resource": "agent.agents.events",
|
|
992
924
|
"method": "send",
|
|
993
925
|
"summary": "Send events to an agent",
|
|
994
|
-
"description": "Talk to a
|
|
926
|
+
"description": "Talk to a general agent: the message goes to your own main session with that agent — one entry per person, created on first use and the same every time after — so no session id is needed. This is sessions.events.send addressed by the agent instead of the session: the same body (user.message with exactly one nonempty text block, user.interrupt, user.tool_confirmation, user.custom_tool_result, user.steer, user.withdraw), the same acknowledgement and the same billing. {agent_id} takes the agent_… id, the eight character identity number or the handle. A service or assume agent answers 400 — it has no main session: reach a service agent over A2A, or open a session explicitly with sessions.create. Read the reply with agents.events.list, or follow it while it is produced with agents.events.stream. Example: POST /agent/v1/agents/agent_example/events with {\"events\":[{\"type\":\"user.message\",\"content\":[{\"type\":\"text\",\"text\":\"你好\"}]}]}.",
|
|
995
927
|
"http": "POST",
|
|
996
928
|
"path": "/agent/v1/agents/{agent_id}/events",
|
|
997
929
|
"streaming": "no",
|
|
@@ -1021,7 +953,7 @@ export const operations = [
|
|
|
1021
953
|
"resource": "agent.agents.events",
|
|
1022
954
|
"method": "stream",
|
|
1023
955
|
"summary": "Follow an agent live",
|
|
1024
|
-
"description": "Follow an agent live over Server-Sent Events. For a
|
|
956
|
+
"description": "Follow an agent live over Server-Sent Events. For a general agent it is the stream of your own main session with that agent, the same stream sessions.events.stream opens, event_deltas[] previews included; read past events with agents.events.list. An assume agent has no main session: its body is its MCP connections, and this stream is its broadcast point, which every live connection of the agent hears at once. It carries two events, each with an SSE id: inbox.letter_delivered { letter_id, sender, sender_name, summary, thread, create_time } when a letter arrives (the letter stays unread; take it with the agent's inbox tool, the body is not in the event), and cognition.ritual_held { ritual, owner, title, engram, create_time } when a domain gives the agent a memory. Reconnect with the Last-Event-ID header to receive what you missed from a short recent buffer (about an hour); a first connection replays nothing, so read agents.inbox.letters.list for mail already waiting. {agent_id} takes the agent_… id, the eight character identity number or the handle; a service agent answers 400. Closing the stream only drops your subscription and does not stop the agent.",
|
|
1025
957
|
"http": "GET",
|
|
1026
958
|
"path": "/agent/v1/agents/{agent_id}/events/stream",
|
|
1027
959
|
"streaming": "always",
|
|
@@ -1081,6 +1013,42 @@ export const operations = [
|
|
|
1081
1013
|
}
|
|
1082
1014
|
]
|
|
1083
1015
|
},
|
|
1016
|
+
{
|
|
1017
|
+
"resource": "agent.agents.phone",
|
|
1018
|
+
"method": "retrieve",
|
|
1019
|
+
"summary": "Retrieve agent phone",
|
|
1020
|
+
"description": "Read the agent's cloud 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), and 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. sku and name come from the configuration when one exists. When the phone is reachable, sandbox_id is the public sandbox id of its running instance: take the phone over with it through POST /sandbox/v1/sandboxes/{id}/act, or open the sandbox page's screen tab in the Console; lease_ends_at is when that instance's lease runs out and the sandbox kills it. archived_at and archive_error describe the last app-state archive, which a fresh instance restores on the next use. 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. 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
|
+
},
|
|
1084
1052
|
{
|
|
1085
1053
|
"resource": "agent.agents.unarchive",
|
|
1086
1054
|
"method": "create",
|
|
@@ -1158,7 +1126,7 @@ export const operations = [
|
|
|
1158
1126
|
"resource": "agent.computers",
|
|
1159
1127
|
"method": "list",
|
|
1160
1128
|
"summary": "List Computers",
|
|
1161
|
-
"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.",
|
|
1162
1130
|
"http": "GET",
|
|
1163
1131
|
"path": "/agent/v1/computers",
|
|
1164
1132
|
"streaming": "no",
|
|
@@ -1183,7 +1151,7 @@ export const operations = [
|
|
|
1183
1151
|
"resource": "agent.computers",
|
|
1184
1152
|
"method": "create",
|
|
1185
1153
|
"summary": "Create Computer",
|
|
1186
|
-
"description": "Create a durable computer: a named machine whose files outlive sessions, for general
|
|
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.",
|
|
1187
1155
|
"http": "POST",
|
|
1188
1156
|
"path": "/agent/v1/computers",
|
|
1189
1157
|
"streaming": "no",
|
|
@@ -1230,7 +1198,7 @@ export const operations = [
|
|
|
1230
1198
|
"resource": "agent.computers",
|
|
1231
1199
|
"method": "retrieve",
|
|
1232
1200
|
"summary": "Get Computer",
|
|
1233
|
-
"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.",
|
|
1234
1202
|
"http": "GET",
|
|
1235
1203
|
"path": "/agent/v1/computers/{computer_id}",
|
|
1236
1204
|
"streaming": "no",
|
|
@@ -1248,7 +1216,7 @@ export const operations = [
|
|
|
1248
1216
|
"resource": "agent.computers",
|
|
1249
1217
|
"method": "update",
|
|
1250
1218
|
"summary": "Update Computer",
|
|
1251
|
-
"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.",
|
|
1252
1220
|
"http": "POST",
|
|
1253
1221
|
"path": "/agent/v1/computers/{computer_id}",
|
|
1254
1222
|
"streaming": "no",
|
|
@@ -1277,7 +1245,7 @@ export const operations = [
|
|
|
1277
1245
|
"resource": "agent.computers",
|
|
1278
1246
|
"method": "archive",
|
|
1279
1247
|
"summary": "Archive Computer",
|
|
1280
|
-
"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.",
|
|
1281
1249
|
"http": "POST",
|
|
1282
1250
|
"path": "/agent/v1/computers/{computer_id}/archive",
|
|
1283
1251
|
"streaming": "no",
|
|
@@ -1357,7 +1325,7 @@ export const operations = [
|
|
|
1357
1325
|
"resource": "agent.computers.files",
|
|
1358
1326
|
"method": "list",
|
|
1359
1327
|
"summary": "List Computer Files",
|
|
1360
|
-
"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.",
|
|
1361
1329
|
"http": "GET",
|
|
1362
1330
|
"path": "/agent/v1/computers/{computer_id}/files",
|
|
1363
1331
|
"streaming": "no",
|
|
@@ -1382,7 +1350,7 @@ export const operations = [
|
|
|
1382
1350
|
"resource": "agent.computers.files",
|
|
1383
1351
|
"method": "retrieveContent",
|
|
1384
1352
|
"summary": "Get Computer File Content",
|
|
1385
|
-
"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.",
|
|
1386
1354
|
"http": "GET",
|
|
1387
1355
|
"path": "/agent/v1/computers/{computer_id}/files/content",
|
|
1388
1356
|
"streaming": "no",
|
|
@@ -1428,6 +1396,50 @@ export const operations = [
|
|
|
1428
1396
|
}
|
|
1429
1397
|
]
|
|
1430
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
|
+
},
|
|
1431
1443
|
{
|
|
1432
1444
|
"resource": "agent.computers.leases",
|
|
1433
1445
|
"method": "delete",
|
|
@@ -1634,7 +1646,7 @@ export const operations = [
|
|
|
1634
1646
|
"resource": "agent.deployments",
|
|
1635
1647
|
"method": "create",
|
|
1636
1648
|
"summary": "Create deployment",
|
|
1637
|
-
"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
|
|
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\"}}.",
|
|
1638
1650
|
"http": "POST",
|
|
1639
1651
|
"path": "/agent/v1/deployments",
|
|
1640
1652
|
"streaming": "no",
|
|
@@ -1711,7 +1723,7 @@ export const operations = [
|
|
|
1711
1723
|
"name": "target",
|
|
1712
1724
|
"type": "object",
|
|
1713
1725
|
"required": false,
|
|
1714
|
-
"description": "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general
|
|
1726
|
+
"description": "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general agents and permits environment_id to be omitted."
|
|
1715
1727
|
}
|
|
1716
1728
|
]
|
|
1717
1729
|
}
|
|
@@ -1821,7 +1833,7 @@ export const operations = [
|
|
|
1821
1833
|
"name": "target",
|
|
1822
1834
|
"type": "object",
|
|
1823
1835
|
"required": false,
|
|
1824
|
-
"description": "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general
|
|
1836
|
+
"description": "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general agents and permits environment_id to be omitted."
|
|
1825
1837
|
}
|
|
1826
1838
|
]
|
|
1827
1839
|
}
|
|
@@ -2186,7 +2198,7 @@ export const operations = [
|
|
|
2186
2198
|
"resource": "agent.sessions",
|
|
2187
2199
|
"method": "create",
|
|
2188
2200
|
"summary": "Create session",
|
|
2189
|
-
"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.",
|
|
2190
2202
|
"http": "POST",
|
|
2191
2203
|
"path": "/agent/v1/sessions",
|
|
2192
2204
|
"streaming": "no",
|
|
@@ -2253,6 +2265,16 @@ export const operations = [
|
|
|
2253
2265
|
"required": false,
|
|
2254
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."
|
|
2255
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
|
+
},
|
|
2256
2278
|
{
|
|
2257
2279
|
"name": "computer_id",
|
|
2258
2280
|
"type": "string",
|
|
@@ -2302,7 +2324,7 @@ export const operations = [
|
|
|
2302
2324
|
"resource": "agent.sessions",
|
|
2303
2325
|
"method": "retrieve",
|
|
2304
2326
|
"summary": "Get session",
|
|
2305
|
-
"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.",
|
|
2306
2328
|
"http": "GET",
|
|
2307
2329
|
"path": "/agent/v1/sessions/{session_id}",
|
|
2308
2330
|
"streaming": "no",
|
|
@@ -2377,22 +2399,54 @@ export const operations = [
|
|
|
2377
2399
|
}
|
|
2378
2400
|
},
|
|
2379
2401
|
{
|
|
2380
|
-
"resource": "agent.sessions",
|
|
2381
|
-
"method": "
|
|
2382
|
-
"summary": "
|
|
2383
|
-
"description": "
|
|
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.",
|
|
2384
2406
|
"http": "POST",
|
|
2385
|
-
"path": "/agent/v1/sessions/{session_id}/
|
|
2407
|
+
"path": "/agent/v1/sessions/{session_id}/agent_version",
|
|
2386
2408
|
"streaming": "no",
|
|
2387
2409
|
"pagination": false,
|
|
2388
2410
|
"pathParams": [
|
|
2389
2411
|
{
|
|
2390
2412
|
"name": "session_id",
|
|
2391
2413
|
"sdkName": "session_id",
|
|
2392
|
-
"description": "Session id
|
|
2414
|
+
"description": "Session id from session creation or listing, or the own face's session name for a main session."
|
|
2393
2415
|
}
|
|
2394
2416
|
],
|
|
2395
|
-
"query": []
|
|
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
|
+
},
|
|
2433
|
+
{
|
|
2434
|
+
"resource": "agent.sessions",
|
|
2435
|
+
"method": "archive",
|
|
2436
|
+
"summary": "Archive session",
|
|
2437
|
+
"description": "Archive a session. An archived session refuses new messages with 400 invalid_request_error, while its details and event history stay readable. Archiving again is idempotent and archived_at keeps the first archive time. Use it when a conversation is finished; it does not delete anything.",
|
|
2438
|
+
"http": "POST",
|
|
2439
|
+
"path": "/agent/v1/sessions/{session_id}/archive",
|
|
2440
|
+
"streaming": "no",
|
|
2441
|
+
"pagination": false,
|
|
2442
|
+
"pathParams": [
|
|
2443
|
+
{
|
|
2444
|
+
"name": "session_id",
|
|
2445
|
+
"sdkName": "session_id",
|
|
2446
|
+
"description": "Session id (sesn_...), as returned by sessions.create or sessions.list. In a path position the own face /agent/v1 also accepts `main` (your own main session with the agent) or a short session name, and either alias then requires the agent_id query parameter with the agent reference; /anthropic/v1 and the session_id query parameter on resource and thread calls take a real id only (the query value must equal the path value)."
|
|
2447
|
+
}
|
|
2448
|
+
],
|
|
2449
|
+
"query": []
|
|
2396
2450
|
},
|
|
2397
2451
|
{
|
|
2398
2452
|
"resource": "agent.sessions.artifacts",
|
|
@@ -2621,7 +2675,7 @@ export const operations = [
|
|
|
2621
2675
|
"resource": "agent.sessions.events",
|
|
2622
2676
|
"method": "list",
|
|
2623
2677
|
"summary": "List session events",
|
|
2624
|
-
"description": "Read the event history of a session as a page of events, oldest first by default (order=desc for newest first). Use it after sending a message to collect the reply, to find tool calls that wait for approval or client custom tool results (session.status_idle with stop_reason requires_action lists their event_ids; a request nobody answered within 24 hours is settled as unanswered and the session goes idle with stop_reason request_expired, which the /anthropic/v1 face shows as end_turn), or to audit a run; to follow a running session live use sessions.events.stream instead. Filter by types and by a created_at range on processed_at; pages hold at most 100 events (default 20) and next_page continues. A failed run emits session.error before session.status_terminated. Native history also includes user.steer, user.withdraw, system.notification, system.notification_suppressed (pending background notifications that hit the wake quota and started no run), system.notification_recorded, session.forked, session.goal_changed and session.goal_verification; these are not accepted by the /anthropic/v1 event-type filter. This operation addresses one session — normally a worker session an agent dispatched; to talk to a
|
|
2678
|
+
"description": "Read the event history of a session as a page of events, oldest first by default (order=desc for newest first). Use it after sending a message to collect the reply, to find tool calls that wait for approval or client custom tool results (session.status_idle with stop_reason requires_action lists their event_ids; a request nobody answered within 24 hours is settled as unanswered and the session goes idle with stop_reason request_expired, which the /anthropic/v1 face shows as end_turn), or to audit a run; to follow a running session live use sessions.events.stream instead. Filter by types and by a created_at range on processed_at; pages hold at most 100 events (default 20) and next_page continues. A failed run emits session.error before session.status_terminated. Native history also includes user.steer, user.withdraw, system.notification, system.notification_suppressed (pending background notifications that hit the wake quota and started no run), system.notification_recorded, session.forked, session.goal_changed and session.goal_verification; these are not accepted by the /anthropic/v1 event-type filter. This operation addresses one session — normally a worker session an agent dispatched; to talk to a general agent itself, use agents.events.list instead. In the path, session_id may also be `main` (your own main session with that agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.",
|
|
2625
2679
|
"http": "GET",
|
|
2626
2680
|
"path": "/agent/v1/sessions/{session_id}/events",
|
|
2627
2681
|
"streaming": "no",
|
|
@@ -2693,7 +2747,7 @@ export const operations = [
|
|
|
2693
2747
|
"resource": "agent.sessions.events",
|
|
2694
2748
|
"method": "send",
|
|
2695
2749
|
"summary": "Send session events",
|
|
2696
|
-
"description": "Attach optional praxis_context={items:[{name,value}]} to user.message for untrusted page context on this turn only (maximum 32 items, 4096 UTF-8 JSON bytes). /anthropic/v1 rejects this field. Send events to a session: user.message (exactly one nonempty text block), user.interrupt, user.tool_confirmation to allow or deny a pending tool call, user.custom_tool_result to return a custom tool result, user.steer to inject a queued user.message into a turn that is still running, and user.withdraw to retract a queued message. The response only acknowledges the inputs; read replies with sessions.events.list or sessions.events.stream. A message sent while the session waits for tool approval is queued (processed_at null) and runs in order after the approval is resolved. Archived sessions reject new messages. To approve, read a pending agent.tool_use or agent.mcp_tool_use event and send {type: \"user.tool_confirmation\", tool_use_id: <that event id>, result: \"allow\"} (or deny); include session_thread_id for a child approval. Native confirmations also accept updated_permissions, answers and annotations, which /anthropic/v1 rejects. Both faces accept user.custom_tool_result with custom_tool_use_id from agent.custom_tool_use.id or the requires_action stop_reason.event_ids. Unlike Anthropic, result content accepts only text blocks (omit it for an empty array). Omitted or null is_error means false. The server routes child calls by id; session_thread_id is rejected in this input. Unknown call ids return 400; duplicate results or calls no longer waiting return 409. This operation addresses one session — normally a worker session an agent dispatched; to talk to a
|
|
2750
|
+
"description": "Attach optional praxis_context={items:[{name,value}]} to user.message for untrusted page context on this turn only (maximum 32 items, 4096 UTF-8 JSON bytes). /anthropic/v1 rejects this field. Send events to a session: user.message (exactly one nonempty text block), user.interrupt, user.tool_confirmation to allow or deny a pending tool call, user.custom_tool_result to return a custom tool result, user.steer to inject a queued user.message into a turn that is still running, and user.withdraw to retract a queued message. The response only acknowledges the inputs; read replies with sessions.events.list or sessions.events.stream. A message sent while the session waits for tool approval is queued (processed_at null) and runs in order after the approval is resolved. Archived sessions reject new messages. To approve, read a pending agent.tool_use or agent.mcp_tool_use event and send {type: \"user.tool_confirmation\", tool_use_id: <that event id>, result: \"allow\"} (or deny); include session_thread_id for a child approval. Native confirmations also accept updated_permissions, answers and annotations, which /anthropic/v1 rejects. Both faces accept user.custom_tool_result with custom_tool_use_id from agent.custom_tool_use.id or the requires_action stop_reason.event_ids. Unlike Anthropic, result content accepts only text blocks (omit it for an empty array). Omitted or null is_error means false. The server routes child calls by id; session_thread_id is rejected in this input. Unknown call ids return 400; duplicate results or calls no longer waiting return 409. This operation addresses one session — normally a worker session an agent dispatched; to talk to a general agent itself, use agents.events.send instead. In the path, session_id may also be `main` (your own main session with the agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.",
|
|
2697
2751
|
"http": "POST",
|
|
2698
2752
|
"path": "/agent/v1/sessions/{session_id}/events",
|
|
2699
2753
|
"streaming": "no",
|
|
@@ -2723,7 +2777,7 @@ export const operations = [
|
|
|
2723
2777
|
"resource": "agent.sessions.events",
|
|
2724
2778
|
"method": "stream",
|
|
2725
2779
|
"summary": "Stream session events",
|
|
2726
|
-
"description": "Open a Server-Sent Events stream of a session's events in real time. Use it to show a reply as it is produced; to read past events use sessions.events.list. Send a message through sessions.events.send in another request while the stream is open. Closing the stream only drops your subscription and does not stop the agent. Pass event_deltas[]=agent.message, agent.thinking or agent.tool_use to also receive event_start / event_delta previews before the final event. This operation addresses one session — normally a worker session an agent dispatched; to follow a
|
|
2780
|
+
"description": "Open a Server-Sent Events stream of a session's events in real time. Use it to show a reply as it is produced; to read past events use sessions.events.list. Send a message through sessions.events.send in another request while the stream is open. Closing the stream only drops your subscription and does not stop the agent. Pass event_deltas[]=agent.message, agent.thinking or agent.tool_use to also receive event_start / event_delta previews before the final event. This operation addresses one session — normally a worker session an agent dispatched; to follow a general agent itself, use agents.events.stream instead. In the path, session_id may also be `main` (your own main session with the agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.",
|
|
2727
2781
|
"http": "GET",
|
|
2728
2782
|
"path": "/agent/v1/sessions/{session_id}/events/stream",
|
|
2729
2783
|
"streaming": "always",
|
|
@@ -2778,6 +2832,35 @@ export const operations = [
|
|
|
2778
2832
|
]
|
|
2779
2833
|
}
|
|
2780
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
|
+
},
|
|
2781
2864
|
{
|
|
2782
2865
|
"resource": "agent.sessions.requests",
|
|
2783
2866
|
"method": "list",
|
|
@@ -3412,7 +3495,7 @@ export const operations = [
|
|
|
3412
3495
|
"resource": "agent.toolsets",
|
|
3413
3496
|
"method": "list",
|
|
3414
3497
|
"summary": "List Toolsets",
|
|
3415
|
-
"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, ask_user_question 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.",
|
|
3416
3499
|
"http": "GET",
|
|
3417
3500
|
"path": "/agent/v1/toolsets",
|
|
3418
3501
|
"streaming": "no",
|
|
@@ -3420,6 +3503,65 @@ export const operations = [
|
|
|
3420
3503
|
"pathParams": [],
|
|
3421
3504
|
"query": []
|
|
3422
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
|
+
},
|
|
3423
3565
|
{
|
|
3424
3566
|
"resource": "application.assets.upload",
|
|
3425
3567
|
"method": "create",
|
|
@@ -4057,7 +4199,7 @@ export const operations = [
|
|
|
4057
4199
|
"resource": "application.workers.versions",
|
|
4058
4200
|
"method": "create",
|
|
4059
4201
|
"summary": "Create version",
|
|
4060
|
-
"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.",
|
|
4061
4203
|
"http": "POST",
|
|
4062
4204
|
"path": "/application/v1/workers/{worker_id}/versions",
|
|
4063
4205
|
"streaming": "no",
|
|
@@ -7245,6 +7387,18 @@ export const operations = [
|
|
|
7245
7387
|
]
|
|
7246
7388
|
}
|
|
7247
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
|
+
},
|
|
7248
7402
|
{
|
|
7249
7403
|
"resource": "browser.connect",
|
|
7250
7404
|
"method": "retrieve",
|
|
@@ -8337,105 +8491,127 @@ export const operations = [
|
|
|
8337
8491
|
}
|
|
8338
8492
|
},
|
|
8339
8493
|
{
|
|
8340
|
-
"resource": "
|
|
8341
|
-
"method": "
|
|
8342
|
-
"summary": "
|
|
8343
|
-
"description": "
|
|
8344
|
-
"http": "POST",
|
|
8345
|
-
"path": "/crm/v1/changes/{changeSetId}:revert",
|
|
8346
|
-
"streaming": "no",
|
|
8347
|
-
"pagination": false,
|
|
8348
|
-
"pathParams": [
|
|
8349
|
-
{
|
|
8350
|
-
"name": "changeSetId",
|
|
8351
|
-
"sdkName": "changeSetId",
|
|
8352
|
-
"description": "Change-set identifier recorded for the original write in property history; one request forms one change set."
|
|
8353
|
-
}
|
|
8354
|
-
],
|
|
8355
|
-
"query": []
|
|
8356
|
-
},
|
|
8357
|
-
{
|
|
8358
|
-
"resource": "crm.layouts",
|
|
8359
|
-
"method": "retrieve",
|
|
8360
|
-
"summary": "Retrieve record layout",
|
|
8361
|
-
"description": "Read the shared record-page layout for an object type from schemas.list. Unlike HubSpot, CRM exposes this presentation as an API resource so people and agents can share the same record layout instead of relying on interface-only settings. The response orders summary tiles, sidebar properties and main-column sections.",
|
|
8494
|
+
"resource": "content.contents",
|
|
8495
|
+
"method": "list",
|
|
8496
|
+
"summary": "List contents",
|
|
8497
|
+
"description": "Discover the video contents of the API key's organization and obtain the content_id each later call takes. Archived contents stay out of the list unless status is archived; results are ordered by update_time, newest first. Filter with status (draft, published, unpublished or archived), kind (video), asset_id (the Media asset a content was made from) and q (a substring of the title). page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null, keeping the same filters.",
|
|
8362
8498
|
"http": "GET",
|
|
8363
|
-
"path": "/
|
|
8499
|
+
"path": "/content/v1/contents",
|
|
8364
8500
|
"streaming": "no",
|
|
8365
8501
|
"pagination": false,
|
|
8366
|
-
"pathParams": [
|
|
8502
|
+
"pathParams": [],
|
|
8503
|
+
"query": [
|
|
8367
8504
|
{
|
|
8368
|
-
"name": "
|
|
8369
|
-
"
|
|
8370
|
-
"
|
|
8505
|
+
"name": "page_size",
|
|
8506
|
+
"type": "integer",
|
|
8507
|
+
"required": false,
|
|
8508
|
+
"description": "Maximum contents in one page, from 1 to 100; defaults to 50."
|
|
8509
|
+
},
|
|
8510
|
+
{
|
|
8511
|
+
"name": "page_token",
|
|
8512
|
+
"type": "string",
|
|
8513
|
+
"required": false,
|
|
8514
|
+
"description": "next_page from the preceding list response with the same filters; omit for the first page."
|
|
8515
|
+
},
|
|
8516
|
+
{
|
|
8517
|
+
"name": "status",
|
|
8518
|
+
"type": "string",
|
|
8519
|
+
"enum": [
|
|
8520
|
+
"draft",
|
|
8521
|
+
"published",
|
|
8522
|
+
"unpublished",
|
|
8523
|
+
"archived"
|
|
8524
|
+
],
|
|
8525
|
+
"required": false,
|
|
8526
|
+
"description": "Only contents in this publication state; draft, published, unpublished or archived. Omit to see every state but archived."
|
|
8527
|
+
},
|
|
8528
|
+
{
|
|
8529
|
+
"name": "kind",
|
|
8530
|
+
"type": "string",
|
|
8531
|
+
"required": false,
|
|
8532
|
+
"description": "Only contents of this kind; video is the only kind today."
|
|
8533
|
+
},
|
|
8534
|
+
{
|
|
8535
|
+
"name": "asset_id",
|
|
8536
|
+
"type": "string",
|
|
8537
|
+
"required": false,
|
|
8538
|
+
"description": "Only contents made from this Media asset id, from praxis.media; omit for every asset."
|
|
8539
|
+
},
|
|
8540
|
+
{
|
|
8541
|
+
"name": "q",
|
|
8542
|
+
"type": "string",
|
|
8543
|
+
"required": false,
|
|
8544
|
+
"description": "Substring of the content title to match, for example lesson; omit for every title."
|
|
8371
8545
|
}
|
|
8372
|
-
]
|
|
8373
|
-
"query": []
|
|
8546
|
+
]
|
|
8374
8547
|
},
|
|
8375
8548
|
{
|
|
8376
|
-
"resource": "
|
|
8377
|
-
"method": "
|
|
8378
|
-
"summary": "
|
|
8379
|
-
"description": "
|
|
8380
|
-
"http": "
|
|
8381
|
-
"path": "/
|
|
8549
|
+
"resource": "content.contents",
|
|
8550
|
+
"method": "create",
|
|
8551
|
+
"summary": "Create a content",
|
|
8552
|
+
"description": "Create a video content from one asset of a Media library, before publishing it to end users. Send library_id and asset_id from `praxis.media` (assets.create, assets.list or the asset you uploaded return them); the create pins asset_version (default 1) and immediately asks Media to transcode the wanted renditions, so the content reports readiness processing until they are ready. kind is video, the only kind today. settings is optional and its four groups are merged over the service defaults: source (library_id and asset_id required, asset_version 1, follow_new_versions false, renditions 480/720/1080), access (capability_seconds 600 within 100 to 3000, encryption false, allowed_origins empty), player (poster null, show_title true, accent_color null, default_quality auto, speeds 0.75/1/1.25/1.5/2, storyboard true, autoplay false, remember_position true) and description (at most 2000 characters). An unknown field — including mode, which was removed because a content is always signed — is refused by name with 400. Returns the new content with HTTP 201; save its id for publish, versions and playback calls.",
|
|
8553
|
+
"http": "POST",
|
|
8554
|
+
"path": "/content/v1/contents",
|
|
8382
8555
|
"streaming": "no",
|
|
8383
8556
|
"pagination": false,
|
|
8384
|
-
"pathParams": [
|
|
8385
|
-
{
|
|
8386
|
-
"name": "objectType",
|
|
8387
|
-
"sdkName": "objectType",
|
|
8388
|
-
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8389
|
-
}
|
|
8390
|
-
],
|
|
8557
|
+
"pathParams": [],
|
|
8391
8558
|
"query": [],
|
|
8392
8559
|
"body": {
|
|
8393
8560
|
"required": true,
|
|
8394
8561
|
"fields": [
|
|
8395
8562
|
{
|
|
8396
|
-
"name": "
|
|
8563
|
+
"name": "kind",
|
|
8397
8564
|
"type": "string",
|
|
8398
8565
|
"required": true,
|
|
8399
|
-
"description": "
|
|
8400
|
-
},
|
|
8401
|
-
{
|
|
8402
|
-
"name": "summary",
|
|
8403
|
-
"type": "array",
|
|
8404
|
-
"itemType": "object",
|
|
8405
|
-
"required": true,
|
|
8406
|
-
"description": "Ordered statistic tiles below the record header, with at most three tiles."
|
|
8566
|
+
"description": "Content kind to create; video is the only kind today."
|
|
8407
8567
|
},
|
|
8408
8568
|
{
|
|
8409
|
-
"name": "
|
|
8410
|
-
"type": "
|
|
8411
|
-
"itemType": "string",
|
|
8569
|
+
"name": "title",
|
|
8570
|
+
"type": "string",
|
|
8412
8571
|
"required": true,
|
|
8413
|
-
"description": "
|
|
8572
|
+
"description": "Merchant-facing title for the content, a non-empty string."
|
|
8414
8573
|
},
|
|
8415
8574
|
{
|
|
8416
|
-
"name": "
|
|
8417
|
-
"type": "
|
|
8418
|
-
"
|
|
8419
|
-
"
|
|
8420
|
-
"description": "Ordered main-column sections for activity, relationships, tables and property groups."
|
|
8575
|
+
"name": "settings",
|
|
8576
|
+
"type": "object",
|
|
8577
|
+
"required": false,
|
|
8578
|
+
"description": "The settings a create accepts; only source is required, and the other groups keep their defaults when omitted."
|
|
8421
8579
|
}
|
|
8422
8580
|
]
|
|
8423
8581
|
}
|
|
8424
8582
|
},
|
|
8425
8583
|
{
|
|
8426
|
-
"resource": "
|
|
8427
|
-
"method": "
|
|
8428
|
-
"summary": "
|
|
8429
|
-
"description": "
|
|
8430
|
-
"http": "
|
|
8431
|
-
"path": "/
|
|
8584
|
+
"resource": "content.contents",
|
|
8585
|
+
"method": "retrieve",
|
|
8586
|
+
"summary": "Get a content",
|
|
8587
|
+
"description": "Read one content with the settings that decide its playback: the source it publishes, its access settings, its player settings, its description, and the version numbers publish and versions calls need. Use it to see the status and readiness before publishing, or to read the live_version a playback will play. A content of another organization, and an archived or unknown id, all answer 404 CONTENT_NOT_FOUND.",
|
|
8588
|
+
"http": "GET",
|
|
8589
|
+
"path": "/content/v1/contents/{content_id}",
|
|
8432
8590
|
"streaming": "no",
|
|
8433
8591
|
"pagination": false,
|
|
8434
8592
|
"pathParams": [
|
|
8435
8593
|
{
|
|
8436
|
-
"name": "
|
|
8437
|
-
"sdkName": "
|
|
8438
|
-
"description": "
|
|
8594
|
+
"name": "content_id",
|
|
8595
|
+
"sdkName": "content_id",
|
|
8596
|
+
"description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
|
|
8597
|
+
}
|
|
8598
|
+
],
|
|
8599
|
+
"query": []
|
|
8600
|
+
},
|
|
8601
|
+
{
|
|
8602
|
+
"resource": "content.contents",
|
|
8603
|
+
"method": "update",
|
|
8604
|
+
"summary": "Update a content",
|
|
8605
|
+
"description": "Change a content's title, its settings, or both. Send only what changes: each settings group left out keeps its current value, and a group sent is a deep merge, so changing only access.capability_seconds leaves allowed_origins alone. A settings change makes a new version and never touches the live one, except access settings (capability_seconds, encryption, allowed_origins), which a playback reads from the latest version and so take effect at once with no republish (ADR-145 §4). A title-only change makes no version. Changing source (library_id, asset_id, asset_version, library_id, asset_id or renditions) asks Media to transcode again and needs a republish to play. An archived content is final and answers 409 CONTENT_INVALID_STATE.",
|
|
8606
|
+
"http": "PATCH",
|
|
8607
|
+
"path": "/content/v1/contents/{content_id}",
|
|
8608
|
+
"streaming": "no",
|
|
8609
|
+
"pagination": false,
|
|
8610
|
+
"pathParams": [
|
|
8611
|
+
{
|
|
8612
|
+
"name": "content_id",
|
|
8613
|
+
"sdkName": "content_id",
|
|
8614
|
+
"description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
|
|
8439
8615
|
}
|
|
8440
8616
|
],
|
|
8441
8617
|
"query": [],
|
|
@@ -8443,51 +8619,315 @@ export const operations = [
|
|
|
8443
8619
|
"required": true,
|
|
8444
8620
|
"fields": [
|
|
8445
8621
|
{
|
|
8446
|
-
"name": "
|
|
8447
|
-
"type": "
|
|
8448
|
-
"required":
|
|
8449
|
-
"description": "
|
|
8450
|
-
},
|
|
8451
|
-
{
|
|
8452
|
-
"name": "company",
|
|
8453
|
-
"type": "object",
|
|
8454
|
-
"required": true,
|
|
8455
|
-
"description": "Leave company unchanged, associate an existing company, or create one with explicit properties."
|
|
8622
|
+
"name": "title",
|
|
8623
|
+
"type": "string",
|
|
8624
|
+
"required": false,
|
|
8625
|
+
"description": "New merchant-facing title for the content."
|
|
8456
8626
|
},
|
|
8457
8627
|
{
|
|
8458
|
-
"name": "
|
|
8628
|
+
"name": "settings",
|
|
8459
8629
|
"type": "object",
|
|
8460
8630
|
"required": false,
|
|
8461
|
-
"description": "
|
|
8462
|
-
},
|
|
8463
|
-
{
|
|
8464
|
-
"name": "qualifiedStageId",
|
|
8465
|
-
"type": "string",
|
|
8466
|
-
"required": true,
|
|
8467
|
-
"description": "Lead stage id with praxis_category=won, obtained from the leads pipeline."
|
|
8631
|
+
"description": "A deep-partial of the four settings groups; a group left out keeps its current value and access changes take effect at once."
|
|
8468
8632
|
}
|
|
8469
8633
|
]
|
|
8470
8634
|
}
|
|
8471
8635
|
},
|
|
8472
8636
|
{
|
|
8473
|
-
"resource": "
|
|
8474
|
-
"method": "
|
|
8475
|
-
"summary": "
|
|
8476
|
-
"description": "
|
|
8477
|
-
"http": "
|
|
8478
|
-
"path": "/
|
|
8637
|
+
"resource": "content.contents",
|
|
8638
|
+
"method": "archive",
|
|
8639
|
+
"summary": "Archive a content",
|
|
8640
|
+
"description": "Close a content permanently when it is no longer published. A published content must be unpublished first, because a live content is never archived directly; archiving a published content answers 409 CONTENT_INVALID_STATE. An archived content is final: it cannot be republished, edited or archived again, it stays out of the list unless status is archived, and no playback opens on it. Returns the content with status archived and archive_time set.",
|
|
8641
|
+
"http": "POST",
|
|
8642
|
+
"path": "/content/v1/contents/{content_id}/archive",
|
|
8479
8643
|
"streaming": "no",
|
|
8480
8644
|
"pagination": false,
|
|
8481
8645
|
"pathParams": [
|
|
8482
8646
|
{
|
|
8483
|
-
"name": "
|
|
8484
|
-
"sdkName": "
|
|
8485
|
-
"description": "
|
|
8647
|
+
"name": "content_id",
|
|
8648
|
+
"sdkName": "content_id",
|
|
8649
|
+
"description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
|
|
8486
8650
|
}
|
|
8487
8651
|
],
|
|
8488
|
-
"query": [
|
|
8489
|
-
|
|
8490
|
-
|
|
8652
|
+
"query": []
|
|
8653
|
+
},
|
|
8654
|
+
{
|
|
8655
|
+
"resource": "content.contents",
|
|
8656
|
+
"method": "publish",
|
|
8657
|
+
"summary": "Publish a content",
|
|
8658
|
+
"description": "Make a content playable: publish the latest version, or pin the version you send in version to become the live one. Use it after the content's readiness is ready; publishing a version whose renditions are still transcoding answers 409 SOURCE_NOT_READY, and you retry once Media reports ready. A content that is already published can be published again with another version, which swaps the live one; an archived content answers 409 CONTENT_INVALID_STATE. Returns the content with status published and the new live_version. Only a published content opens a playback session.",
|
|
8659
|
+
"http": "POST",
|
|
8660
|
+
"path": "/content/v1/contents/{content_id}/publish",
|
|
8661
|
+
"streaming": "no",
|
|
8662
|
+
"pagination": false,
|
|
8663
|
+
"pathParams": [
|
|
8664
|
+
{
|
|
8665
|
+
"name": "content_id",
|
|
8666
|
+
"sdkName": "content_id",
|
|
8667
|
+
"description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
|
|
8668
|
+
}
|
|
8669
|
+
],
|
|
8670
|
+
"query": [],
|
|
8671
|
+
"body": {
|
|
8672
|
+
"required": false,
|
|
8673
|
+
"fields": [
|
|
8674
|
+
{
|
|
8675
|
+
"name": "version",
|
|
8676
|
+
"type": "integer",
|
|
8677
|
+
"required": false,
|
|
8678
|
+
"description": "Existing version number to make live, from the versions list; omit it to publish the latest version."
|
|
8679
|
+
}
|
|
8680
|
+
]
|
|
8681
|
+
}
|
|
8682
|
+
},
|
|
8683
|
+
{
|
|
8684
|
+
"resource": "content.contents",
|
|
8685
|
+
"method": "unpublish",
|
|
8686
|
+
"summary": "Unpublish a content",
|
|
8687
|
+
"description": "Take a published content offline without deleting it or losing a version. No playback opens on it afterwards, while capabilities already issued run out by themselves within their lifetime (at most 3000 seconds). Publishing it again with a version brings it back. Only a published content can be unpublished; any other state answers 409 CONTENT_INVALID_STATE. Returns the content with status unpublished and its live_version kept for the next publish.",
|
|
8688
|
+
"http": "POST",
|
|
8689
|
+
"path": "/content/v1/contents/{content_id}/unpublish",
|
|
8690
|
+
"streaming": "no",
|
|
8691
|
+
"pagination": false,
|
|
8692
|
+
"pathParams": [
|
|
8693
|
+
{
|
|
8694
|
+
"name": "content_id",
|
|
8695
|
+
"sdkName": "content_id",
|
|
8696
|
+
"description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
|
|
8697
|
+
}
|
|
8698
|
+
],
|
|
8699
|
+
"query": []
|
|
8700
|
+
},
|
|
8701
|
+
{
|
|
8702
|
+
"resource": "content.versions",
|
|
8703
|
+
"method": "list",
|
|
8704
|
+
"summary": "List versions",
|
|
8705
|
+
"description": "Read the immutable version history of a content, newest version first. Each entry is a snapshot of the settings at the time it was saved, with live telling whether that version is the one a playback plays. Use it to find the version number to pin in publish, or to read the access settings a playback is currently reading (they come from the latest version). page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null.",
|
|
8706
|
+
"http": "GET",
|
|
8707
|
+
"path": "/content/v1/contents/{content_id}/versions",
|
|
8708
|
+
"streaming": "no",
|
|
8709
|
+
"pagination": false,
|
|
8710
|
+
"pathParams": [
|
|
8711
|
+
{
|
|
8712
|
+
"name": "content_id",
|
|
8713
|
+
"sdkName": "content_id",
|
|
8714
|
+
"description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
|
|
8715
|
+
}
|
|
8716
|
+
],
|
|
8717
|
+
"query": [
|
|
8718
|
+
{
|
|
8719
|
+
"name": "page_size",
|
|
8720
|
+
"type": "integer",
|
|
8721
|
+
"required": false,
|
|
8722
|
+
"description": "Maximum versions in one page, from 1 to 100; defaults to 50."
|
|
8723
|
+
},
|
|
8724
|
+
{
|
|
8725
|
+
"name": "page_token",
|
|
8726
|
+
"type": "string",
|
|
8727
|
+
"required": false,
|
|
8728
|
+
"description": "next_page from the preceding versions response; omit for the first page."
|
|
8729
|
+
}
|
|
8730
|
+
]
|
|
8731
|
+
},
|
|
8732
|
+
{
|
|
8733
|
+
"resource": "content.versions",
|
|
8734
|
+
"method": "retrieve",
|
|
8735
|
+
"summary": "Get a version",
|
|
8736
|
+
"description": "Read one immutable version of a content: the settings exactly as they were saved, the live flag, when it was created and which actor created it. Use it to compare a version with the live one before pinning it in publish, or to check the access settings a playback is currently reading. The version segment is the positive version number from the versions list; an unknown number answers 404 VERSION_NOT_FOUND and an unknown content 404 CONTENT_NOT_FOUND.",
|
|
8737
|
+
"http": "GET",
|
|
8738
|
+
"path": "/content/v1/contents/{content_id}/versions/{version}",
|
|
8739
|
+
"streaming": "no",
|
|
8740
|
+
"pagination": false,
|
|
8741
|
+
"pathParams": [
|
|
8742
|
+
{
|
|
8743
|
+
"name": "content_id",
|
|
8744
|
+
"sdkName": "content_id",
|
|
8745
|
+
"description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
|
|
8746
|
+
},
|
|
8747
|
+
{
|
|
8748
|
+
"name": "version",
|
|
8749
|
+
"sdkName": "version",
|
|
8750
|
+
"type": "integer",
|
|
8751
|
+
"description": "Positive version number from the versions list, for example 3; never zero and never the literal latest."
|
|
8752
|
+
}
|
|
8753
|
+
],
|
|
8754
|
+
"query": []
|
|
8755
|
+
},
|
|
8756
|
+
{
|
|
8757
|
+
"resource": "content.playbackSessions",
|
|
8758
|
+
"method": "create",
|
|
8759
|
+
"summary": "Open a playback session",
|
|
8760
|
+
"description": "Open one playback of a published content for an end user and get the manifest address a player loads. No platform API key is needed: the caller is the end user's own Praxis customer access token carried as `Authorization: Bearer <access_token>`, verified by this door exactly as the customer exchange verifies it. A caller with no token is left to the service, which refuses it RESOURCE_NOT_GRANTED, because a content is always signed and there is no public playback. The organization is taken from the content row, never from the token, and a token that claims another organization is refused. The content must be published (otherwise 403 CONTENT_NOT_PUBLISHED), its allowed_origins must accept the request Origin when the list is not empty (otherwise 403 ORIGIN_NOT_ALLOWED), the token must cover a resource for this content (otherwise 403 RESOURCE_NOT_GRANTED) and the pinned version must be ready (otherwise 409 SOURCE_NOT_READY; retry once readiness is ready). Returns HTTP 201 with the session id, manifest_url (https://content.praxisusercontent.com/{content_id}/{capability}/master.m3u8), expire_time, the renditions, the poster, the title when the player shows it, and the player settings. The playback reads access settings from the content's latest version and source and player from the live version, so a tightened origin or lifetime takes effect without a republish. This door has its own per-IP request budget: over it answers 429 RATE_LIMITED with Retry-After.",
|
|
8761
|
+
"http": "POST",
|
|
8762
|
+
"path": "/content/v1/playback/sessions",
|
|
8763
|
+
"streaming": "no",
|
|
8764
|
+
"pagination": false,
|
|
8765
|
+
"pathParams": [],
|
|
8766
|
+
"query": [],
|
|
8767
|
+
"body": {
|
|
8768
|
+
"required": true,
|
|
8769
|
+
"fields": [
|
|
8770
|
+
{
|
|
8771
|
+
"name": "content_id",
|
|
8772
|
+
"type": "string",
|
|
8773
|
+
"required": true,
|
|
8774
|
+
"description": "Published content to play, from praxis.content.contents.create or praxis.content.contents.list."
|
|
8775
|
+
}
|
|
8776
|
+
]
|
|
8777
|
+
}
|
|
8778
|
+
},
|
|
8779
|
+
{
|
|
8780
|
+
"resource": "crm.changes",
|
|
8781
|
+
"method": "revert",
|
|
8782
|
+
"summary": "Revert change set",
|
|
8783
|
+
"description": "Reverse property changes made by one earlier request. Unlike HubSpot, CRM exposes change-set reversal because agents need to undo a whole recorded action rather than manually reconstructing individual values. Supply the changeSetId recorded in property history. A later conflicting value prevents reversal with HTTP 409 CONFLICT; inspect current records before resolving the conflict. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
8784
|
+
"http": "POST",
|
|
8785
|
+
"path": "/crm/v1/changes/{changeSetId}:revert",
|
|
8786
|
+
"streaming": "no",
|
|
8787
|
+
"pagination": false,
|
|
8788
|
+
"pathParams": [
|
|
8789
|
+
{
|
|
8790
|
+
"name": "changeSetId",
|
|
8791
|
+
"sdkName": "changeSetId",
|
|
8792
|
+
"description": "Change-set identifier recorded for the original write in property history; one request forms one change set."
|
|
8793
|
+
}
|
|
8794
|
+
],
|
|
8795
|
+
"query": []
|
|
8796
|
+
},
|
|
8797
|
+
{
|
|
8798
|
+
"resource": "crm.layouts",
|
|
8799
|
+
"method": "retrieve",
|
|
8800
|
+
"summary": "Retrieve record layout",
|
|
8801
|
+
"description": "Read the shared record-page layout for an object type from schemas.list. Unlike HubSpot, CRM exposes this presentation as an API resource so people and agents can share the same record layout instead of relying on interface-only settings. The response orders summary tiles, sidebar properties and main-column sections.",
|
|
8802
|
+
"http": "GET",
|
|
8803
|
+
"path": "/crm/v1/layouts/{objectType}",
|
|
8804
|
+
"streaming": "no",
|
|
8805
|
+
"pagination": false,
|
|
8806
|
+
"pathParams": [
|
|
8807
|
+
{
|
|
8808
|
+
"name": "objectType",
|
|
8809
|
+
"sdkName": "objectType",
|
|
8810
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8811
|
+
}
|
|
8812
|
+
],
|
|
8813
|
+
"query": []
|
|
8814
|
+
},
|
|
8815
|
+
{
|
|
8816
|
+
"resource": "crm.layouts",
|
|
8817
|
+
"method": "update",
|
|
8818
|
+
"summary": "Update record layout",
|
|
8819
|
+
"description": "Replace the shared record-page layout for an object type from schemas.list. Unlike HubSpot, CRM exposes this presentation as an API resource so agents can configure the same record view used by people. Send the complete layout with at most three summary tiles and property names from properties.list; omitted prior sections are removed. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
8820
|
+
"http": "PUT",
|
|
8821
|
+
"path": "/crm/v1/layouts/{objectType}",
|
|
8822
|
+
"streaming": "no",
|
|
8823
|
+
"pagination": false,
|
|
8824
|
+
"pathParams": [
|
|
8825
|
+
{
|
|
8826
|
+
"name": "objectType",
|
|
8827
|
+
"sdkName": "objectType",
|
|
8828
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8829
|
+
}
|
|
8830
|
+
],
|
|
8831
|
+
"query": [],
|
|
8832
|
+
"body": {
|
|
8833
|
+
"required": true,
|
|
8834
|
+
"fields": [
|
|
8835
|
+
{
|
|
8836
|
+
"name": "objectType",
|
|
8837
|
+
"type": "string",
|
|
8838
|
+
"required": true,
|
|
8839
|
+
"description": "Object type whose record page uses this layout, matching the path parameter."
|
|
8840
|
+
},
|
|
8841
|
+
{
|
|
8842
|
+
"name": "summary",
|
|
8843
|
+
"type": "array",
|
|
8844
|
+
"itemType": "object",
|
|
8845
|
+
"required": true,
|
|
8846
|
+
"description": "Ordered statistic tiles below the record header, with at most three tiles."
|
|
8847
|
+
},
|
|
8848
|
+
{
|
|
8849
|
+
"name": "sidebar",
|
|
8850
|
+
"type": "array",
|
|
8851
|
+
"itemType": "string",
|
|
8852
|
+
"required": true,
|
|
8853
|
+
"description": "Ordered internal property names shown in the record property sidebar."
|
|
8854
|
+
},
|
|
8855
|
+
{
|
|
8856
|
+
"name": "sections",
|
|
8857
|
+
"type": "array",
|
|
8858
|
+
"itemType": "string",
|
|
8859
|
+
"required": true,
|
|
8860
|
+
"description": "Ordered main-column sections for activity, relationships, tables and property groups."
|
|
8861
|
+
}
|
|
8862
|
+
]
|
|
8863
|
+
}
|
|
8864
|
+
},
|
|
8865
|
+
{
|
|
8866
|
+
"resource": "crm.leads",
|
|
8867
|
+
"method": "qualify",
|
|
8868
|
+
"summary": "Qualify lead",
|
|
8869
|
+
"description": "Qualify a lead with explicit contact, company and optional deal choices in one operation. Unlike HubSpot, CRM exposes these decisions as a single action because qualification coordinates several related record edits rather than editing only the lead stage. Obtain leadId from objects.list for leads and qualifiedStageId from its pipeline; choose a won stage and satisfy its required properties. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
8870
|
+
"http": "POST",
|
|
8871
|
+
"path": "/crm/v1/leads/{leadId}:qualify",
|
|
8872
|
+
"streaming": "no",
|
|
8873
|
+
"pagination": false,
|
|
8874
|
+
"pathParams": [
|
|
8875
|
+
{
|
|
8876
|
+
"name": "leadId",
|
|
8877
|
+
"sdkName": "leadId",
|
|
8878
|
+
"description": "Lead record identifier from objects.list or objects.search with objectType=leads."
|
|
8879
|
+
}
|
|
8880
|
+
],
|
|
8881
|
+
"query": [],
|
|
8882
|
+
"body": {
|
|
8883
|
+
"required": true,
|
|
8884
|
+
"fields": [
|
|
8885
|
+
{
|
|
8886
|
+
"name": "contact",
|
|
8887
|
+
"type": "object",
|
|
8888
|
+
"required": true,
|
|
8889
|
+
"description": "Keep the existing contact, or merge it into the chosen contact record."
|
|
8890
|
+
},
|
|
8891
|
+
{
|
|
8892
|
+
"name": "company",
|
|
8893
|
+
"type": "object",
|
|
8894
|
+
"required": true,
|
|
8895
|
+
"description": "Leave company unchanged, associate an existing company, or create one with explicit properties."
|
|
8896
|
+
},
|
|
8897
|
+
{
|
|
8898
|
+
"name": "deal",
|
|
8899
|
+
"type": "object",
|
|
8900
|
+
"required": false,
|
|
8901
|
+
"description": "Optional deal to create as part of qualification; omit to qualify without creating a deal."
|
|
8902
|
+
},
|
|
8903
|
+
{
|
|
8904
|
+
"name": "qualifiedStageId",
|
|
8905
|
+
"type": "string",
|
|
8906
|
+
"required": true,
|
|
8907
|
+
"description": "Lead stage id with praxis_category=won, obtained from the leads pipeline."
|
|
8908
|
+
}
|
|
8909
|
+
]
|
|
8910
|
+
}
|
|
8911
|
+
},
|
|
8912
|
+
{
|
|
8913
|
+
"resource": "crm.objects",
|
|
8914
|
+
"method": "list",
|
|
8915
|
+
"summary": "List records",
|
|
8916
|
+
"description": "Browse records of one object type and obtain ids for retrieval or edits. Discover objectType with schemas.list; select properties by internal names from properties.list. Omit after for the first page, then copy paging.next.after until no next page is returned. archived defaults to false; use objects.search for property filters.",
|
|
8917
|
+
"http": "GET",
|
|
8918
|
+
"path": "/crm/v1/objects/{objectType}",
|
|
8919
|
+
"streaming": "no",
|
|
8920
|
+
"pagination": false,
|
|
8921
|
+
"pathParams": [
|
|
8922
|
+
{
|
|
8923
|
+
"name": "objectType",
|
|
8924
|
+
"sdkName": "objectType",
|
|
8925
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8926
|
+
}
|
|
8927
|
+
],
|
|
8928
|
+
"query": [
|
|
8929
|
+
{
|
|
8930
|
+
"name": "after",
|
|
8491
8931
|
"type": "string",
|
|
8492
8932
|
"required": false,
|
|
8493
8933
|
"description": "The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results."
|
|
@@ -9877,96 +10317,526 @@ export const operations = [
|
|
|
9877
10317
|
"description": "A string providing a hint for displaying number values. Valid values include 'unformatted', 'formatted', 'currency', 'percentage', 'duration', and 'probability'."
|
|
9878
10318
|
},
|
|
9879
10319
|
{
|
|
9880
|
-
"name": "options",
|
|
10320
|
+
"name": "options",
|
|
10321
|
+
"type": "array",
|
|
10322
|
+
"itemType": "object",
|
|
10323
|
+
"required": false,
|
|
10324
|
+
"description": "A list of valid options for the property."
|
|
10325
|
+
},
|
|
10326
|
+
{
|
|
10327
|
+
"name": "showCurrencySymbol",
|
|
10328
|
+
"type": "boolean",
|
|
10329
|
+
"required": false,
|
|
10330
|
+
"description": "A boolean indicating whether to display a currency symbol for number fields formatted as currency."
|
|
10331
|
+
},
|
|
10332
|
+
{
|
|
10333
|
+
"name": "textDisplayHint",
|
|
10334
|
+
"type": "string",
|
|
10335
|
+
"enum": [
|
|
10336
|
+
"domain_name",
|
|
10337
|
+
"email",
|
|
10338
|
+
"ip_address",
|
|
10339
|
+
"multi_line",
|
|
10340
|
+
"phone_number",
|
|
10341
|
+
"physical_address",
|
|
10342
|
+
"postal_code",
|
|
10343
|
+
"unformatted_single_line"
|
|
10344
|
+
],
|
|
10345
|
+
"required": false,
|
|
10346
|
+
"description": "A string providing a hint for displaying text values. Valid values include 'unformatted_single_line', 'multi_line', 'email', 'phone_number', 'domain_name', 'ip_address', 'physical_address', and 'postal_code'."
|
|
10347
|
+
},
|
|
10348
|
+
{
|
|
10349
|
+
"name": "type",
|
|
10350
|
+
"type": "string",
|
|
10351
|
+
"enum": [
|
|
10352
|
+
"bool",
|
|
10353
|
+
"date",
|
|
10354
|
+
"datetime",
|
|
10355
|
+
"enumeration",
|
|
10356
|
+
"number",
|
|
10357
|
+
"phone_number",
|
|
10358
|
+
"string"
|
|
10359
|
+
],
|
|
10360
|
+
"required": false,
|
|
10361
|
+
"description": "The data type of the property."
|
|
10362
|
+
}
|
|
10363
|
+
]
|
|
10364
|
+
}
|
|
10365
|
+
},
|
|
10366
|
+
{
|
|
10367
|
+
"resource": "crm.schemas",
|
|
10368
|
+
"method": "list",
|
|
10369
|
+
"summary": "List object schemas",
|
|
10370
|
+
"description": "Discover available object schemas, display labels, property definitions and association definitions. Reuse the object type identifier or name in record, property and pipeline operations. archived defaults to false; the include parameters control the definition and audit details returned.",
|
|
10371
|
+
"http": "GET",
|
|
10372
|
+
"path": "/crm/v1/schemas",
|
|
10373
|
+
"streaming": "no",
|
|
10374
|
+
"pagination": false,
|
|
10375
|
+
"pathParams": [],
|
|
10376
|
+
"query": [
|
|
10377
|
+
{
|
|
10378
|
+
"name": "archived",
|
|
10379
|
+
"type": "boolean",
|
|
10380
|
+
"required": false,
|
|
10381
|
+
"description": "Whether to return only results that have been archived."
|
|
10382
|
+
},
|
|
10383
|
+
{
|
|
10384
|
+
"name": "includeAssociationDefinitions",
|
|
10385
|
+
"type": "boolean",
|
|
10386
|
+
"required": false,
|
|
10387
|
+
"description": "Whether to include association definitions in the response. Defaults to true."
|
|
10388
|
+
},
|
|
10389
|
+
{
|
|
10390
|
+
"name": "includeAuditMetadata",
|
|
10391
|
+
"type": "boolean",
|
|
10392
|
+
"required": false,
|
|
10393
|
+
"description": "Whether to include audit metadata in the response. Defaults to true."
|
|
10394
|
+
},
|
|
10395
|
+
{
|
|
10396
|
+
"name": "includePropertyDefinitions",
|
|
10397
|
+
"type": "boolean",
|
|
10398
|
+
"required": false,
|
|
10399
|
+
"description": "Whether to include property definitions in the response. Defaults to true."
|
|
10400
|
+
}
|
|
10401
|
+
]
|
|
10402
|
+
},
|
|
10403
|
+
{
|
|
10404
|
+
"resource": "crm.schemas",
|
|
10405
|
+
"method": "create",
|
|
10406
|
+
"summary": "Create object schema",
|
|
10407
|
+
"description": "Define a custom CRM object type before creating its records. Provide its immutable name, singular and plural labels, primaryDisplayProperty, properties and associated object types. Save the returned object type identifier for subsequent record and property operations. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
10408
|
+
"http": "POST",
|
|
10409
|
+
"path": "/crm/v1/schemas",
|
|
10410
|
+
"streaming": "no",
|
|
10411
|
+
"pagination": false,
|
|
10412
|
+
"pathParams": [],
|
|
10413
|
+
"query": [],
|
|
10414
|
+
"body": {
|
|
10415
|
+
"required": true,
|
|
10416
|
+
"fields": [
|
|
10417
|
+
{
|
|
10418
|
+
"name": "allowsSensitiveProperties",
|
|
10419
|
+
"type": "boolean",
|
|
10420
|
+
"required": true,
|
|
10421
|
+
"description": "Determines if the object type can include properties that are marked as sensitive."
|
|
10422
|
+
},
|
|
10423
|
+
{
|
|
10424
|
+
"name": "associatedObjects",
|
|
10425
|
+
"type": "array",
|
|
10426
|
+
"itemType": "string",
|
|
10427
|
+
"required": true,
|
|
10428
|
+
"description": "Associations defined for this object type."
|
|
10429
|
+
},
|
|
10430
|
+
{
|
|
10431
|
+
"name": "description",
|
|
10432
|
+
"type": "string",
|
|
10433
|
+
"required": false,
|
|
10434
|
+
"description": "A brief explanation of the object type."
|
|
10435
|
+
},
|
|
10436
|
+
{
|
|
10437
|
+
"name": "labels",
|
|
10438
|
+
"type": "object",
|
|
10439
|
+
"required": true
|
|
10440
|
+
},
|
|
10441
|
+
{
|
|
10442
|
+
"name": "name",
|
|
10443
|
+
"type": "string",
|
|
10444
|
+
"required": true,
|
|
10445
|
+
"description": "A unique name for this object. For internal use only."
|
|
10446
|
+
},
|
|
10447
|
+
{
|
|
10448
|
+
"name": "primaryDisplayProperty",
|
|
10449
|
+
"type": "string",
|
|
10450
|
+
"required": false,
|
|
10451
|
+
"description": "The name of the primary property for this object. This will be displayed as primary on the CRM record page for this object type."
|
|
10452
|
+
},
|
|
10453
|
+
{
|
|
10454
|
+
"name": "properties",
|
|
10455
|
+
"type": "array",
|
|
10456
|
+
"itemType": "object",
|
|
10457
|
+
"required": true,
|
|
10458
|
+
"description": "Properties defined for this object type."
|
|
10459
|
+
},
|
|
10460
|
+
{
|
|
10461
|
+
"name": "requiredProperties",
|
|
10462
|
+
"type": "array",
|
|
10463
|
+
"itemType": "string",
|
|
10464
|
+
"required": true,
|
|
10465
|
+
"description": "The names of properties that should be **required** when creating an object of this type."
|
|
10466
|
+
},
|
|
10467
|
+
{
|
|
10468
|
+
"name": "searchableProperties",
|
|
10469
|
+
"type": "array",
|
|
10470
|
+
"itemType": "string",
|
|
10471
|
+
"required": true,
|
|
10472
|
+
"description": "Names of properties that will be indexed for this object type in by CRM's product search."
|
|
10473
|
+
},
|
|
10474
|
+
{
|
|
10475
|
+
"name": "secondaryDisplayProperties",
|
|
10476
|
+
"type": "array",
|
|
10477
|
+
"itemType": "string",
|
|
10478
|
+
"required": true,
|
|
10479
|
+
"description": "The names of secondary properties for this object. These will be displayed as secondary on the CRM record page for this object type."
|
|
10480
|
+
},
|
|
10481
|
+
{
|
|
10482
|
+
"name": "shouldCreateSameObjectAssociation",
|
|
10483
|
+
"type": "boolean",
|
|
10484
|
+
"required": true,
|
|
10485
|
+
"description": "A boolean indicating whether associations should be created between objects of the same type."
|
|
10486
|
+
}
|
|
10487
|
+
]
|
|
10488
|
+
}
|
|
10489
|
+
},
|
|
10490
|
+
{
|
|
10491
|
+
"resource": "customer.accessTokens",
|
|
10492
|
+
"method": "create",
|
|
10493
|
+
"summary": "Exchange a grant code or publishable key",
|
|
10494
|
+
"description": "Turn a grant code, or a publishable key for an anonymous visitor, into the Praxis customer access token that authorizes the Kit's sessions and playbacks. It is PRE-AUTH: no platform API key is needed, because the grant code or the publishable key is the credential; the Kit calls it from the browser, so send the page Origin when the code or key is bound to one. Send exactly one of grant_code or publishable_key — the door refuses any other combination with 400. With grant_code the code is consumed atomically: concurrent attempts have exactly one winner, and unknown, already used, expired and foreign codes all answer 401 GRANT_CODE_INVALID. With publishable_key a new anonymous customer (anon_…) is created and merged into the identified one later if it signs in. The sign-in may be bound to an origin at creation; when the request Origin does not satisfy it, the exchange answers 403 ORIGIN_NOT_ALLOWED, and a blocked end user answers 403 CUSTOMER_BLOCKED. The access token lasts at most two hours and never outlives the sign-in; renew it with praxis.customer.accessTokens.renew before expires_at. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.",
|
|
10495
|
+
"http": "POST",
|
|
10496
|
+
"path": "/customer/v1/access_tokens",
|
|
10497
|
+
"streaming": "no",
|
|
10498
|
+
"pagination": false,
|
|
10499
|
+
"pathParams": [],
|
|
10500
|
+
"query": [],
|
|
10501
|
+
"body": {
|
|
10502
|
+
"required": true,
|
|
10503
|
+
"fields": [
|
|
10504
|
+
{
|
|
10505
|
+
"name": "grant_code",
|
|
10506
|
+
"type": "string",
|
|
10507
|
+
"required": false,
|
|
10508
|
+
"description": "A grant code (cgc_…) from grant_codes, for an end user you signed in from your backend; it works once."
|
|
10509
|
+
},
|
|
10510
|
+
{
|
|
10511
|
+
"name": "publishable_key",
|
|
10512
|
+
"type": "string",
|
|
10513
|
+
"required": false,
|
|
10514
|
+
"description": "A publishable key (pk_…) for an anonymous visitor; the exchange creates a new anonymous end user bound to the request Origin."
|
|
10515
|
+
}
|
|
10516
|
+
]
|
|
10517
|
+
}
|
|
10518
|
+
},
|
|
10519
|
+
{
|
|
10520
|
+
"resource": "customer.accessTokens",
|
|
10521
|
+
"method": "revoke",
|
|
10522
|
+
"summary": "Sign out the current token",
|
|
10523
|
+
"description": "Sign out: end the sign-in the caller's token belongs to and revoke every token issued from it, exactly as a logout does. It is PRE-AUTH: the credential is the token the caller carries as `Authorization: Bearer <access_token>`. Use it when the end user asks to sign out, and after it every token of that sign-in stops working and a later session or playback answers 401 SIGN_IN_REVOKED; other sign-ins of the same end user are untouched (revoke every token of one end user, organization-wide, with praxis.customer.customers.revokeTokens). A missing or unverifiable token answers 401 ACCESS_TOKEN_EXPIRED. The call answers 200 with an empty body. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.",
|
|
10524
|
+
"http": "DELETE",
|
|
10525
|
+
"path": "/customer/v1/access_tokens/current",
|
|
10526
|
+
"streaming": "no",
|
|
10527
|
+
"pagination": false,
|
|
10528
|
+
"pathParams": [],
|
|
10529
|
+
"query": []
|
|
10530
|
+
},
|
|
10531
|
+
{
|
|
10532
|
+
"resource": "customer.accessTokens",
|
|
10533
|
+
"method": "renew",
|
|
10534
|
+
"summary": "Renew an access token",
|
|
10535
|
+
"description": "Replace a live access token with a fresh one so a signed-in end user stays signed in without signing in again. It is PRE-AUTH: the credential is the token the caller already carries as `Authorization: Bearer <access_token>`, verified by this door, and the token names the sign-in it renews. Call it before the token's expires_at; the sign-in and its resource scopes stay the same, so what the end user may reach does not change. A missing, unverifiable or foreign token answers 401 ACCESS_TOKEN_EXPIRED, and a sign-in that is over answers 401 SIGN_IN_EXPIRED or SIGN_IN_REVOKED, in which case the end user signs in again through praxis.customer.accessTokens.create. A blocked end user answers 403 CUSTOMER_BLOCKED. When the sign-in itself has ended, the renewal does not extend it. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.",
|
|
10536
|
+
"http": "POST",
|
|
10537
|
+
"path": "/customer/v1/access_tokens/renew",
|
|
10538
|
+
"streaming": "no",
|
|
10539
|
+
"pagination": false,
|
|
10540
|
+
"pathParams": [],
|
|
10541
|
+
"query": []
|
|
10542
|
+
},
|
|
10543
|
+
{
|
|
10544
|
+
"resource": "customer.customers",
|
|
10545
|
+
"method": "list",
|
|
10546
|
+
"summary": "List end users",
|
|
10547
|
+
"description": "Read the organization's end-user directory and obtain the customer_id the administrative acts take. Results are ordered by last_seen_at, most recently seen first. Filter with type (identified for people who signed in through a grant code, anonymous for visitors admitted with a publishable key), blocked (true or false), resource (one product in the form agent:<id>, content:<id> or application:<id>, giving that product's own view of the directory) and q (a prefix of the customer id). Identified and anonymous end users both appear; an anonymous one that later signs in shows merged_into and its record joins that person. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null, keeping the same filters.",
|
|
10548
|
+
"http": "GET",
|
|
10549
|
+
"path": "/customer/v1/customers",
|
|
10550
|
+
"streaming": "no",
|
|
10551
|
+
"pagination": false,
|
|
10552
|
+
"pathParams": [],
|
|
10553
|
+
"query": [
|
|
10554
|
+
{
|
|
10555
|
+
"name": "page_size",
|
|
10556
|
+
"type": "integer",
|
|
10557
|
+
"required": false,
|
|
10558
|
+
"description": "Maximum end users in one page, from 1 to 100; defaults to 50."
|
|
10559
|
+
},
|
|
10560
|
+
{
|
|
10561
|
+
"name": "page_token",
|
|
10562
|
+
"type": "string",
|
|
10563
|
+
"required": false,
|
|
10564
|
+
"description": "next_page from the preceding list response with the same filters; omit for the first page."
|
|
10565
|
+
},
|
|
10566
|
+
{
|
|
10567
|
+
"name": "type",
|
|
10568
|
+
"type": "string",
|
|
10569
|
+
"enum": [
|
|
10570
|
+
"identified",
|
|
10571
|
+
"anonymous"
|
|
10572
|
+
],
|
|
10573
|
+
"required": false,
|
|
10574
|
+
"description": "Only end users of this kind; identified for people who signed in through a grant code, anonymous for visitors admitted with a publishable key. Omit for both."
|
|
10575
|
+
},
|
|
10576
|
+
{
|
|
10577
|
+
"name": "blocked",
|
|
10578
|
+
"type": "boolean",
|
|
10579
|
+
"required": false,
|
|
10580
|
+
"description": "true for blocked end users only, false for end users who are not blocked; omit for both."
|
|
10581
|
+
},
|
|
10582
|
+
{
|
|
10583
|
+
"name": "resource",
|
|
10584
|
+
"type": "string",
|
|
10585
|
+
"required": false,
|
|
10586
|
+
"description": "Only end users of one product, as <type>:<id>, for example content:cnt_0123456789abcdef, agent:agent_123 or application:app_456."
|
|
10587
|
+
},
|
|
10588
|
+
{
|
|
10589
|
+
"name": "q",
|
|
10590
|
+
"type": "string",
|
|
10591
|
+
"required": false,
|
|
10592
|
+
"description": "Only end users whose customer id starts with this prefix, for example cus_; omit for every id."
|
|
10593
|
+
}
|
|
10594
|
+
]
|
|
10595
|
+
},
|
|
10596
|
+
{
|
|
10597
|
+
"resource": "customer.customers",
|
|
10598
|
+
"method": "delete",
|
|
10599
|
+
"summary": "Delete an end user",
|
|
10600
|
+
"description": "Delete one end user on the merchant's own confirmation, for a deletion request the person made to you. The confirm query parameter must repeat the path's customer_id; the door passes it through verbatim and the service refuses any other value with 400 INVALID_PARAMS, so a missing confirm never deletes anything. The deletion is announced on the platform event bus and each product deletes its own sessions, events and files for that person, so the call returns as soon as the directory record is gone, not when every product has finished. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
|
|
10601
|
+
"http": "DELETE",
|
|
10602
|
+
"path": "/customer/v1/customers/{customer_id}",
|
|
10603
|
+
"streaming": "no",
|
|
10604
|
+
"pagination": false,
|
|
10605
|
+
"pathParams": [
|
|
10606
|
+
{
|
|
10607
|
+
"name": "customer_id",
|
|
10608
|
+
"sdkName": "customer_id",
|
|
10609
|
+
"description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
|
|
10610
|
+
}
|
|
10611
|
+
],
|
|
10612
|
+
"query": [
|
|
10613
|
+
{
|
|
10614
|
+
"name": "confirm",
|
|
10615
|
+
"type": "string",
|
|
10616
|
+
"required": true,
|
|
10617
|
+
"description": "The customer_id being deleted, repeated exactly; the service compares it with the path and refuses a mismatch with 400."
|
|
10618
|
+
}
|
|
10619
|
+
]
|
|
10620
|
+
},
|
|
10621
|
+
{
|
|
10622
|
+
"resource": "customer.customers",
|
|
10623
|
+
"method": "retrieve",
|
|
10624
|
+
"summary": "Get an end user",
|
|
10625
|
+
"description": "Read one end user of the organization: the id, its kind, whether it is blocked, its metadata and when it was first and last seen. Add expand=products,sign_ins,usage (comma separated, any combination) to also receive the products it has used with their counts, its sign-ins with their resource scopes, and its recorded usage over the whole time. An unknown id, and an id of another organization, answer 404 CUSTOMER_NOT_FOUND.",
|
|
10626
|
+
"http": "GET",
|
|
10627
|
+
"path": "/customer/v1/customers/{customer_id}",
|
|
10628
|
+
"streaming": "no",
|
|
10629
|
+
"pagination": false,
|
|
10630
|
+
"pathParams": [
|
|
10631
|
+
{
|
|
10632
|
+
"name": "customer_id",
|
|
10633
|
+
"sdkName": "customer_id",
|
|
10634
|
+
"description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
|
|
10635
|
+
}
|
|
10636
|
+
],
|
|
10637
|
+
"query": [
|
|
10638
|
+
{
|
|
10639
|
+
"name": "expand",
|
|
10640
|
+
"type": "string",
|
|
10641
|
+
"required": false,
|
|
10642
|
+
"description": "Comma-separated extras to include; products for the products this end user has used, sign_ins for its sign-ins, usage for its recorded usage. Omit to get only the directory record."
|
|
10643
|
+
}
|
|
10644
|
+
]
|
|
10645
|
+
},
|
|
10646
|
+
{
|
|
10647
|
+
"resource": "customer.customers",
|
|
10648
|
+
"method": "block",
|
|
10649
|
+
"summary": "Block an end user",
|
|
10650
|
+
"description": "Block one end user across every product of the organization. From then on no grant code, sign-in, renewal or new session and no playback is accepted for this id — each product's admission door refuses it at once. A stream already running and a playback capability already issued ride out their own token, at most two hours and 3000 seconds; they are not cut off. Send reason to record why, and the response's blocked field carries the block time, the reason and the actor. Blocking an already blocked end user is idempotent: the first block time is kept. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
|
|
10651
|
+
"http": "POST",
|
|
10652
|
+
"path": "/customer/v1/customers/{customer_id}/block",
|
|
10653
|
+
"streaming": "no",
|
|
10654
|
+
"pagination": false,
|
|
10655
|
+
"pathParams": [
|
|
10656
|
+
{
|
|
10657
|
+
"name": "customer_id",
|
|
10658
|
+
"sdkName": "customer_id",
|
|
10659
|
+
"description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
|
|
10660
|
+
}
|
|
10661
|
+
],
|
|
10662
|
+
"query": [],
|
|
10663
|
+
"body": {
|
|
10664
|
+
"required": false,
|
|
10665
|
+
"fields": [
|
|
10666
|
+
{
|
|
10667
|
+
"name": "reason",
|
|
10668
|
+
"type": "string",
|
|
10669
|
+
"required": false,
|
|
10670
|
+
"description": "Why the end user is blocked, recorded with the block fact; omit for none."
|
|
10671
|
+
}
|
|
10672
|
+
]
|
|
10673
|
+
}
|
|
10674
|
+
},
|
|
10675
|
+
{
|
|
10676
|
+
"resource": "customer.customers",
|
|
10677
|
+
"method": "revokeTokens",
|
|
10678
|
+
"summary": "Revoke every token of an end user",
|
|
10679
|
+
"description": "End every sign-in of one end user at once, everything of the organization's, not one product's and not one token's. Use it when credentials may have leaked and the end user must not be trusted until it signs in again; a single sign-in is ended instead with praxis.customer.accessTokens.revoke. After it every token of that end user stops working and a new session or playback answers 401 SIGN_IN_REVOKED, while the end user itself stays in the directory and may sign in again. The response counts how many sign-ins were revoked. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
|
|
10680
|
+
"http": "POST",
|
|
10681
|
+
"path": "/customer/v1/customers/{customer_id}/revoke_tokens",
|
|
10682
|
+
"streaming": "no",
|
|
10683
|
+
"pagination": false,
|
|
10684
|
+
"pathParams": [
|
|
10685
|
+
{
|
|
10686
|
+
"name": "customer_id",
|
|
10687
|
+
"sdkName": "customer_id",
|
|
10688
|
+
"description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
|
|
10689
|
+
}
|
|
10690
|
+
],
|
|
10691
|
+
"query": []
|
|
10692
|
+
},
|
|
10693
|
+
{
|
|
10694
|
+
"resource": "customer.customers",
|
|
10695
|
+
"method": "unblock",
|
|
10696
|
+
"summary": "Unblock an end user",
|
|
10697
|
+
"description": "Lift a block from one end user, so the products accept its grant codes, sign-ins, renewals and new sessions again. Tokens that were revoked to enforce the block are not restored: the end user signs in again for a fresh sign-in. Unblocking an end user that is not blocked is idempotent and returns it unchanged. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
|
|
10698
|
+
"http": "POST",
|
|
10699
|
+
"path": "/customer/v1/customers/{customer_id}/unblock",
|
|
10700
|
+
"streaming": "no",
|
|
10701
|
+
"pagination": false,
|
|
10702
|
+
"pathParams": [
|
|
10703
|
+
{
|
|
10704
|
+
"name": "customer_id",
|
|
10705
|
+
"sdkName": "customer_id",
|
|
10706
|
+
"description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
|
|
10707
|
+
}
|
|
10708
|
+
],
|
|
10709
|
+
"query": []
|
|
10710
|
+
},
|
|
10711
|
+
{
|
|
10712
|
+
"resource": "customer.usage",
|
|
10713
|
+
"method": "retrieve",
|
|
10714
|
+
"summary": "Read end-user usage",
|
|
10715
|
+
"description": "Read what one end user has cost the organization, per product and per day. The directory stores no cost itself: this reads billing by the customerId dimension shared by every product, so it is the money figure the platform charged for that person. Send from and/or to as RFC 3339 times to narrow the window; omit both for everything recorded. Returns the total, the per-product breakdown and the per-day breakdown. An unknown id answers 404 CUSTOMER_NOT_FOUND.",
|
|
10716
|
+
"http": "GET",
|
|
10717
|
+
"path": "/customer/v1/customers/{customer_id}/usage",
|
|
10718
|
+
"streaming": "no",
|
|
10719
|
+
"pagination": false,
|
|
10720
|
+
"pathParams": [
|
|
10721
|
+
{
|
|
10722
|
+
"name": "customer_id",
|
|
10723
|
+
"sdkName": "customer_id",
|
|
10724
|
+
"description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
|
|
10725
|
+
}
|
|
10726
|
+
],
|
|
10727
|
+
"query": [
|
|
10728
|
+
{
|
|
10729
|
+
"name": "from",
|
|
10730
|
+
"type": "string",
|
|
10731
|
+
"required": false,
|
|
10732
|
+
"description": "Start of the window as an RFC 3339 time, inclusive; omit for the beginning of the record."
|
|
10733
|
+
},
|
|
10734
|
+
{
|
|
10735
|
+
"name": "to",
|
|
10736
|
+
"type": "string",
|
|
10737
|
+
"required": false,
|
|
10738
|
+
"description": "End of the window as an RFC 3339 time, exclusive; omit for now."
|
|
10739
|
+
}
|
|
10740
|
+
]
|
|
10741
|
+
},
|
|
10742
|
+
{
|
|
10743
|
+
"resource": "customer.grantCodes",
|
|
10744
|
+
"method": "create",
|
|
10745
|
+
"summary": "Create a grant code",
|
|
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.",
|
|
10747
|
+
"http": "POST",
|
|
10748
|
+
"path": "/customer/v1/grant_codes",
|
|
10749
|
+
"streaming": "no",
|
|
10750
|
+
"pagination": false,
|
|
10751
|
+
"pathParams": [],
|
|
10752
|
+
"query": [],
|
|
10753
|
+
"body": {
|
|
10754
|
+
"required": true,
|
|
10755
|
+
"fields": [
|
|
10756
|
+
{
|
|
10757
|
+
"name": "customer_id",
|
|
10758
|
+
"type": "string",
|
|
10759
|
+
"required": true,
|
|
10760
|
+
"description": "Your own identifier for the end user, a non-empty string; do not use an email address or phone number, and a value starting with anon_ is reserved for visitors."
|
|
10761
|
+
},
|
|
10762
|
+
{
|
|
10763
|
+
"name": "metadata",
|
|
10764
|
+
"type": "object",
|
|
10765
|
+
"required": false,
|
|
10766
|
+
"description": "Product metadata to record with the end user, as string key to string value; it is merged over what is already stored."
|
|
10767
|
+
},
|
|
10768
|
+
{
|
|
10769
|
+
"name": "resources",
|
|
9881
10770
|
"type": "array",
|
|
9882
10771
|
"itemType": "object",
|
|
10772
|
+
"required": true,
|
|
10773
|
+
"description": "Resource scopes the sign-in may reach, at least one, each a scope string or an object with scope and params."
|
|
10774
|
+
},
|
|
10775
|
+
{
|
|
10776
|
+
"name": "origin",
|
|
10777
|
+
"type": "string",
|
|
9883
10778
|
"required": false,
|
|
9884
|
-
"description": "
|
|
10779
|
+
"description": "Page origin this sign-in is bound to, for example https://school.example.com; a later exchange with another Origin is refused."
|
|
9885
10780
|
},
|
|
9886
10781
|
{
|
|
9887
|
-
"name": "
|
|
9888
|
-
"type": "
|
|
10782
|
+
"name": "expires_in",
|
|
10783
|
+
"type": "integer",
|
|
9889
10784
|
"required": false,
|
|
9890
|
-
"description": "
|
|
10785
|
+
"description": "Lifetime of the code in seconds; omit for the fifteen-minute default, and send a smaller number to shorten it."
|
|
9891
10786
|
},
|
|
9892
10787
|
{
|
|
9893
|
-
"name": "
|
|
10788
|
+
"name": "max_session_seconds",
|
|
10789
|
+
"type": "integer",
|
|
10790
|
+
"required": false,
|
|
10791
|
+
"description": "Lifetime of the sign-in the code starts, in seconds; omit for the seven-day default."
|
|
10792
|
+
},
|
|
10793
|
+
{
|
|
10794
|
+
"name": "merge_customer_id",
|
|
9894
10795
|
"type": "string",
|
|
9895
|
-
"enum": [
|
|
9896
|
-
"domain_name",
|
|
9897
|
-
"email",
|
|
9898
|
-
"ip_address",
|
|
9899
|
-
"multi_line",
|
|
9900
|
-
"phone_number",
|
|
9901
|
-
"physical_address",
|
|
9902
|
-
"postal_code",
|
|
9903
|
-
"unformatted_single_line"
|
|
9904
|
-
],
|
|
9905
10796
|
"required": false,
|
|
9906
|
-
"description": "
|
|
10797
|
+
"description": "An existing anonymous end user (anon_…) whose record joins this person when the code is exchanged."
|
|
9907
10798
|
},
|
|
9908
10799
|
{
|
|
9909
|
-
"name": "
|
|
10800
|
+
"name": "anonymous_access_token",
|
|
9910
10801
|
"type": "string",
|
|
9911
|
-
"enum": [
|
|
9912
|
-
"bool",
|
|
9913
|
-
"date",
|
|
9914
|
-
"datetime",
|
|
9915
|
-
"enumeration",
|
|
9916
|
-
"number",
|
|
9917
|
-
"phone_number",
|
|
9918
|
-
"string"
|
|
9919
|
-
],
|
|
9920
10802
|
"required": false,
|
|
9921
|
-
"description": "The
|
|
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."
|
|
9922
10804
|
}
|
|
9923
10805
|
]
|
|
9924
10806
|
}
|
|
9925
10807
|
},
|
|
9926
10808
|
{
|
|
9927
|
-
"resource": "
|
|
10809
|
+
"resource": "customer.publishableKeys",
|
|
9928
10810
|
"method": "list",
|
|
9929
|
-
"summary": "List
|
|
9930
|
-
"description": "
|
|
10811
|
+
"summary": "List publishable keys",
|
|
10812
|
+
"description": "List the organization's publishable keys, newest first, so you can see which anonymous admittance is open and what each one may reach. A publishable key is public by design (it ships in the browser page); use it from the Kit to admit anonymous visitors, and never expose an API key this way. The plaintext value is not in this list: it is returned once, by the create call, and only its hash is stored. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null.",
|
|
9931
10813
|
"http": "GET",
|
|
9932
|
-
"path": "/
|
|
10814
|
+
"path": "/customer/v1/publishable_keys",
|
|
9933
10815
|
"streaming": "no",
|
|
9934
10816
|
"pagination": false,
|
|
9935
10817
|
"pathParams": [],
|
|
9936
10818
|
"query": [
|
|
9937
10819
|
{
|
|
9938
|
-
"name": "
|
|
9939
|
-
"type": "
|
|
9940
|
-
"required": false,
|
|
9941
|
-
"description": "Whether to return only results that have been archived."
|
|
9942
|
-
},
|
|
9943
|
-
{
|
|
9944
|
-
"name": "includeAssociationDefinitions",
|
|
9945
|
-
"type": "boolean",
|
|
9946
|
-
"required": false,
|
|
9947
|
-
"description": "Whether to include association definitions in the response. Defaults to true."
|
|
9948
|
-
},
|
|
9949
|
-
{
|
|
9950
|
-
"name": "includeAuditMetadata",
|
|
9951
|
-
"type": "boolean",
|
|
10820
|
+
"name": "page_size",
|
|
10821
|
+
"type": "integer",
|
|
9952
10822
|
"required": false,
|
|
9953
|
-
"description": "
|
|
10823
|
+
"description": "Maximum keys in one page, from 1 to 100; defaults to 50."
|
|
9954
10824
|
},
|
|
9955
10825
|
{
|
|
9956
|
-
"name": "
|
|
9957
|
-
"type": "
|
|
10826
|
+
"name": "page_token",
|
|
10827
|
+
"type": "string",
|
|
9958
10828
|
"required": false,
|
|
9959
|
-
"description": "
|
|
10829
|
+
"description": "next_page from the preceding key list response; omit for the first page."
|
|
9960
10830
|
}
|
|
9961
10831
|
]
|
|
9962
10832
|
},
|
|
9963
10833
|
{
|
|
9964
|
-
"resource": "
|
|
10834
|
+
"resource": "customer.publishableKeys",
|
|
9965
10835
|
"method": "create",
|
|
9966
|
-
"summary": "Create
|
|
9967
|
-
"description": "
|
|
10836
|
+
"summary": "Create a publishable key",
|
|
10837
|
+
"description": "Mint a publishable key so a page can admit anonymous visitors without you signing each one in from your backend. name labels the key for the console and the key list. resources is required and names what an anonymous visitor may reach, in the same form as the grant-code scopes: agent:<id>:chat, content:<id>:play or application:<id>:visit, with * for every object of one type; give it only what the anonymous experience needs, because any visitor who has the page can use the key. The response carries the plaintext key once, in key, and the store keeps only its hash — save it then, because no later call returns it. Returns HTTP 201; the exchange that consumes it is praxis.customer.accessTokens.create with publishable_key.",
|
|
9968
10838
|
"http": "POST",
|
|
9969
|
-
"path": "/
|
|
10839
|
+
"path": "/customer/v1/publishable_keys",
|
|
9970
10840
|
"streaming": "no",
|
|
9971
10841
|
"pagination": false,
|
|
9972
10842
|
"pathParams": [],
|
|
@@ -9974,79 +10844,40 @@ export const operations = [
|
|
|
9974
10844
|
"body": {
|
|
9975
10845
|
"required": true,
|
|
9976
10846
|
"fields": [
|
|
9977
|
-
{
|
|
9978
|
-
"name": "allowsSensitiveProperties",
|
|
9979
|
-
"type": "boolean",
|
|
9980
|
-
"required": true,
|
|
9981
|
-
"description": "Determines if the object type can include properties that are marked as sensitive."
|
|
9982
|
-
},
|
|
9983
|
-
{
|
|
9984
|
-
"name": "associatedObjects",
|
|
9985
|
-
"type": "array",
|
|
9986
|
-
"itemType": "string",
|
|
9987
|
-
"required": true,
|
|
9988
|
-
"description": "Associations defined for this object type."
|
|
9989
|
-
},
|
|
9990
|
-
{
|
|
9991
|
-
"name": "description",
|
|
9992
|
-
"type": "string",
|
|
9993
|
-
"required": false,
|
|
9994
|
-
"description": "A brief explanation of the object type."
|
|
9995
|
-
},
|
|
9996
|
-
{
|
|
9997
|
-
"name": "labels",
|
|
9998
|
-
"type": "object",
|
|
9999
|
-
"required": true
|
|
10000
|
-
},
|
|
10001
10847
|
{
|
|
10002
10848
|
"name": "name",
|
|
10003
10849
|
"type": "string",
|
|
10004
10850
|
"required": true,
|
|
10005
|
-
"description": "
|
|
10006
|
-
},
|
|
10007
|
-
{
|
|
10008
|
-
"name": "primaryDisplayProperty",
|
|
10009
|
-
"type": "string",
|
|
10010
|
-
"required": false,
|
|
10011
|
-
"description": "The name of the primary property for this object. This will be displayed as primary on the CRM record page for this object type."
|
|
10851
|
+
"description": "Label for the key, shown in the console and the key list, for example Storefront."
|
|
10012
10852
|
},
|
|
10013
10853
|
{
|
|
10014
|
-
"name": "
|
|
10854
|
+
"name": "resources",
|
|
10015
10855
|
"type": "array",
|
|
10016
10856
|
"itemType": "object",
|
|
10017
10857
|
"required": true,
|
|
10018
|
-
"description": "
|
|
10019
|
-
},
|
|
10020
|
-
{
|
|
10021
|
-
"name": "requiredProperties",
|
|
10022
|
-
"type": "array",
|
|
10023
|
-
"itemType": "string",
|
|
10024
|
-
"required": true,
|
|
10025
|
-
"description": "The names of properties that should be **required** when creating an object of this type."
|
|
10026
|
-
},
|
|
10027
|
-
{
|
|
10028
|
-
"name": "searchableProperties",
|
|
10029
|
-
"type": "array",
|
|
10030
|
-
"itemType": "string",
|
|
10031
|
-
"required": true,
|
|
10032
|
-
"description": "Names of properties that will be indexed for this object type in by CRM's product search."
|
|
10033
|
-
},
|
|
10034
|
-
{
|
|
10035
|
-
"name": "secondaryDisplayProperties",
|
|
10036
|
-
"type": "array",
|
|
10037
|
-
"itemType": "string",
|
|
10038
|
-
"required": true,
|
|
10039
|
-
"description": "The names of secondary properties for this object. These will be displayed as secondary on the CRM record page for this object type."
|
|
10040
|
-
},
|
|
10041
|
-
{
|
|
10042
|
-
"name": "shouldCreateSameObjectAssociation",
|
|
10043
|
-
"type": "boolean",
|
|
10044
|
-
"required": true,
|
|
10045
|
-
"description": "A boolean indicating whether associations should be created between objects of the same type."
|
|
10858
|
+
"description": "Resource scopes an anonymous visitor may reach, at least one, each a scope string or an object with scope and params; grant only what the anonymous experience needs."
|
|
10046
10859
|
}
|
|
10047
10860
|
]
|
|
10048
10861
|
}
|
|
10049
10862
|
},
|
|
10863
|
+
{
|
|
10864
|
+
"resource": "customer.publishableKeys",
|
|
10865
|
+
"method": "delete",
|
|
10866
|
+
"summary": "Delete a publishable key",
|
|
10867
|
+
"description": "Delete a publishable key, closing that anonymous admittance for good. A page that still carries the plaintext key can no longer exchange it; any anonymous sign-ins it already made keep working until their own sign-in expires, so end users already admitted are not signed out by this call. Get the key id from the publishable key list, not from the plaintext value (only its hash is stored). An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
|
|
10868
|
+
"http": "DELETE",
|
|
10869
|
+
"path": "/customer/v1/publishable_keys/{key_id}",
|
|
10870
|
+
"streaming": "no",
|
|
10871
|
+
"pagination": false,
|
|
10872
|
+
"pathParams": [
|
|
10873
|
+
{
|
|
10874
|
+
"name": "key_id",
|
|
10875
|
+
"sdkName": "key_id",
|
|
10876
|
+
"description": "Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value."
|
|
10877
|
+
}
|
|
10878
|
+
],
|
|
10879
|
+
"query": []
|
|
10880
|
+
},
|
|
10050
10881
|
{
|
|
10051
10882
|
"resource": "cut.exports",
|
|
10052
10883
|
"method": "retrieve",
|
|
@@ -10767,7 +11598,7 @@ export const operations = [
|
|
|
10767
11598
|
"resource": "cut.projects",
|
|
10768
11599
|
"method": "execute",
|
|
10769
11600
|
"summary": "Execute editing script",
|
|
10770
|
-
"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",
|
|
10771
11602
|
"http": "POST",
|
|
10772
11603
|
"path": "/cut/v1/projects/{project_id}:execute",
|
|
10773
11604
|
"streaming": "no",
|
|
@@ -11830,7 +12661,7 @@ export const operations = [
|
|
|
11830
12661
|
{
|
|
11831
12662
|
"name": "id",
|
|
11832
12663
|
"sdkName": "id",
|
|
11833
|
-
"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."
|
|
11834
12665
|
}
|
|
11835
12666
|
],
|
|
11836
12667
|
"query": []
|
|
@@ -11839,7 +12670,7 @@ export const operations = [
|
|
|
11839
12670
|
"resource": "devops.changes",
|
|
11840
12671
|
"method": "abandon",
|
|
11841
12672
|
"summary": "Abandon a change",
|
|
11842
|
-
"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.",
|
|
11843
12674
|
"http": "POST",
|
|
11844
12675
|
"path": "/devops/v1/changes/{id}:abandon",
|
|
11845
12676
|
"streaming": "no",
|
|
@@ -11848,7 +12679,7 @@ export const operations = [
|
|
|
11848
12679
|
{
|
|
11849
12680
|
"name": "id",
|
|
11850
12681
|
"sdkName": "id",
|
|
11851
|
-
"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."
|
|
11852
12683
|
}
|
|
11853
12684
|
],
|
|
11854
12685
|
"query": [],
|
|
@@ -11864,6 +12695,24 @@ export const operations = [
|
|
|
11864
12695
|
]
|
|
11865
12696
|
}
|
|
11866
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
|
+
},
|
|
11867
12716
|
{
|
|
11868
12717
|
"resource": "devops.changes",
|
|
11869
12718
|
"method": "markLastSlice",
|
|
@@ -11877,7 +12726,7 @@ export const operations = [
|
|
|
11877
12726
|
{
|
|
11878
12727
|
"name": "id",
|
|
11879
12728
|
"sdkName": "id",
|
|
11880
|
-
"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."
|
|
11881
12730
|
}
|
|
11882
12731
|
],
|
|
11883
12732
|
"query": [],
|
|
@@ -11893,6 +12742,47 @@ export const operations = [
|
|
|
11893
12742
|
]
|
|
11894
12743
|
}
|
|
11895
12744
|
},
|
|
12745
|
+
{
|
|
12746
|
+
"resource": "devops.changes",
|
|
12747
|
+
"method": "openPullRequest",
|
|
12748
|
+
"summary": "Open a change's pull request",
|
|
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.",
|
|
12750
|
+
"http": "POST",
|
|
12751
|
+
"path": "/devops/v1/changes/{id}:openPullRequest",
|
|
12752
|
+
"streaming": "no",
|
|
12753
|
+
"pagination": false,
|
|
12754
|
+
"pathParams": [
|
|
12755
|
+
{
|
|
12756
|
+
"name": "id",
|
|
12757
|
+
"sdkName": "id",
|
|
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."
|
|
12759
|
+
}
|
|
12760
|
+
],
|
|
12761
|
+
"query": [],
|
|
12762
|
+
"body": {
|
|
12763
|
+
"required": false,
|
|
12764
|
+
"fields": [
|
|
12765
|
+
{
|
|
12766
|
+
"name": "title",
|
|
12767
|
+
"type": "string",
|
|
12768
|
+
"required": false,
|
|
12769
|
+
"description": "The pull request's title; defaults to the change's title."
|
|
12770
|
+
},
|
|
12771
|
+
{
|
|
12772
|
+
"name": "body",
|
|
12773
|
+
"type": "string",
|
|
12774
|
+
"required": false,
|
|
12775
|
+
"description": "The pull request's description, markdown. Put the change's `praxis` exposure block here, or the merge gate asks for it."
|
|
12776
|
+
},
|
|
12777
|
+
{
|
|
12778
|
+
"name": "draft",
|
|
12779
|
+
"type": "boolean",
|
|
12780
|
+
"required": false,
|
|
12781
|
+
"description": "Open it as a draft. Defaults to false."
|
|
12782
|
+
}
|
|
12783
|
+
]
|
|
12784
|
+
}
|
|
12785
|
+
},
|
|
11896
12786
|
{
|
|
11897
12787
|
"resource": "devops.connections",
|
|
11898
12788
|
"method": "list",
|
|
@@ -13594,6 +14484,37 @@ export const operations = [
|
|
|
13594
14484
|
}
|
|
13595
14485
|
]
|
|
13596
14486
|
},
|
|
14487
|
+
{
|
|
14488
|
+
"resource": "devops.projects",
|
|
14489
|
+
"method": "retrieveTestPlan",
|
|
14490
|
+
"summary": "Retrieve the merge gate's test plan at a commit",
|
|
14491
|
+
"description": "Ask what the merge gate would require at one commit before running anything: the packages the base...commit diff affects, each package's input hash at that commit's own tree, and whether evidence already answers it. Read a package as passed when a recorded run covered every case the package has at the gate's sizes and they passed, failed when the newest evidence at its input hash failed, and missing when no run has a row for that (package, input hash). Use it before running tests — `praxis devops test --gate` asks this and runs exactly the missing and failed packages — or to explain a gate verdict, because it is the same required set and the same (package, input hash) lookup the gate itself decides on. The call is read-only: it starts no run, runs no case and writes nothing. The commit must already be pushed, since the hashes are recomputed from the tree GitHub holds; a commit whose tree cannot be read answers COMMIT_NOT_FOUND instead of an empty plan. A selection of nothing means every changed path belongs to no test package, which is a pass and not a failure.",
|
|
14492
|
+
"http": "GET",
|
|
14493
|
+
"path": "/devops/v1/projects/{project}/test-plan",
|
|
14494
|
+
"streaming": "no",
|
|
14495
|
+
"pagination": false,
|
|
14496
|
+
"pathParams": [
|
|
14497
|
+
{
|
|
14498
|
+
"name": "project",
|
|
14499
|
+
"sdkName": "project",
|
|
14500
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
14501
|
+
}
|
|
14502
|
+
],
|
|
14503
|
+
"query": [
|
|
14504
|
+
{
|
|
14505
|
+
"name": "commit",
|
|
14506
|
+
"type": "string",
|
|
14507
|
+
"required": true,
|
|
14508
|
+
"description": "The commit to plan for, by commit id. It must be readable as a tree, so an unpushed local commit is refused; the input hashes are computed from that tree by DevOps and never taken from a caller or a runner."
|
|
14509
|
+
},
|
|
14510
|
+
{
|
|
14511
|
+
"name": "base",
|
|
14512
|
+
"type": "string",
|
|
14513
|
+
"required": false,
|
|
14514
|
+
"description": "What the diff is measured against: a commit id or a branch name. Defaults to the project's default branch. A base that is neither a branch of the project's repository nor a readable commit is refused as COMMIT_NOT_FOUND, so a typo cannot silently plan against the whole repository."
|
|
14515
|
+
}
|
|
14516
|
+
]
|
|
14517
|
+
},
|
|
13597
14518
|
{
|
|
13598
14519
|
"resource": "devops.projects.testPlans",
|
|
13599
14520
|
"method": "list",
|
|
@@ -14361,7 +15282,7 @@ export const operations = [
|
|
|
14361
15282
|
"resource": "devops.promotions",
|
|
14362
15283
|
"method": "retry",
|
|
14363
15284
|
"summary": "Retry a promotion",
|
|
14364
|
-
"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.",
|
|
14365
15286
|
"http": "POST",
|
|
14366
15287
|
"path": "/devops/v1/promotions/{id}:retry",
|
|
14367
15288
|
"streaming": "no",
|
|
@@ -14431,6 +15352,35 @@ export const operations = [
|
|
|
14431
15352
|
}
|
|
14432
15353
|
]
|
|
14433
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
|
+
},
|
|
14434
15384
|
{
|
|
14435
15385
|
"resource": "devops.pullRequests",
|
|
14436
15386
|
"method": "merge",
|
|
@@ -16472,6 +17422,17 @@ export const operations = [
|
|
|
16472
17422
|
"required": false,
|
|
16473
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."
|
|
16474
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
|
+
},
|
|
16475
17436
|
{
|
|
16476
17437
|
"name": "name",
|
|
16477
17438
|
"type": "string",
|
|
@@ -16488,7 +17449,7 @@ export const operations = [
|
|
|
16488
17449
|
"name": "understanding",
|
|
16489
17450
|
"type": "object",
|
|
16490
17451
|
"required": false,
|
|
16491
|
-
"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."
|
|
16492
17453
|
}
|
|
16493
17454
|
]
|
|
16494
17455
|
}
|
|
@@ -16603,6 +17564,17 @@ export const operations = [
|
|
|
16603
17564
|
"required": false,
|
|
16604
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."
|
|
16605
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
|
+
},
|
|
16606
17578
|
{
|
|
16607
17579
|
"name": "name",
|
|
16608
17580
|
"type": "string",
|
|
@@ -17070,7 +18042,7 @@ export const operations = [
|
|
|
17070
18042
|
"resource": "media.assets",
|
|
17071
18043
|
"method": "edit",
|
|
17072
18044
|
"summary": "Edit asset",
|
|
17073
|
-
"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.",
|
|
17074
18046
|
"http": "POST",
|
|
17075
18047
|
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
|
|
17076
18048
|
"streaming": "no",
|
|
@@ -17095,13 +18067,24 @@ export const operations = [
|
|
|
17095
18067
|
"name": "operation",
|
|
17096
18068
|
"type": "object",
|
|
17097
18069
|
"required": true,
|
|
17098
|
-
"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."
|
|
17099
18071
|
},
|
|
17100
18072
|
{
|
|
17101
18073
|
"name": "model",
|
|
17102
18074
|
"type": "string",
|
|
17103
18075
|
"required": false,
|
|
17104
|
-
"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."
|
|
17105
18088
|
},
|
|
17106
18089
|
{
|
|
17107
18090
|
"name": "asset_folder",
|
|
@@ -17429,7 +18412,7 @@ export const operations = [
|
|
|
17429
18412
|
"resource": "media.speech",
|
|
17430
18413
|
"method": "create",
|
|
17431
18414
|
"summary": "Create speech",
|
|
17432
|
-
"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.",
|
|
17433
18416
|
"http": "POST",
|
|
17434
18417
|
"path": "/media/v1/libraries/{library_id}/audio/speech",
|
|
17435
18418
|
"streaming": "no",
|
|
@@ -17488,6 +18471,23 @@ export const operations = [
|
|
|
17488
18471
|
"type": "string",
|
|
17489
18472
|
"required": false,
|
|
17490
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."
|
|
17491
18491
|
}
|
|
17492
18492
|
]
|
|
17493
18493
|
}
|
|
@@ -17661,7 +18661,7 @@ export const operations = [
|
|
|
17661
18661
|
"resource": "media.images",
|
|
17662
18662
|
"method": "generate",
|
|
17663
18663
|
"summary": "Generate image",
|
|
17664
|
-
"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.",
|
|
17665
18665
|
"http": "POST",
|
|
17666
18666
|
"path": "/media/v1/libraries/{library_id}/images/generations",
|
|
17667
18667
|
"streaming": "no",
|
|
@@ -17755,7 +18755,18 @@ export const operations = [
|
|
|
17755
18755
|
"name": "model",
|
|
17756
18756
|
"type": "string",
|
|
17757
18757
|
"required": false,
|
|
17758
|
-
"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."
|
|
17759
18770
|
},
|
|
17760
18771
|
{
|
|
17761
18772
|
"name": "asset_folder",
|
|
@@ -17786,7 +18797,7 @@ export const operations = [
|
|
|
17786
18797
|
"resource": "media.libraries.jobs",
|
|
17787
18798
|
"method": "list",
|
|
17788
18799
|
"summary": "List jobs",
|
|
17789
|
-
"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.",
|
|
17790
18801
|
"http": "GET",
|
|
17791
18802
|
"path": "/media/v1/libraries/{library_id}/jobs",
|
|
17792
18803
|
"streaming": "no",
|
|
@@ -17839,7 +18850,7 @@ export const operations = [
|
|
|
17839
18850
|
"resource": "media.libraries.jobs",
|
|
17840
18851
|
"method": "retrieve",
|
|
17841
18852
|
"summary": "Get job",
|
|
17842
|
-
"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.",
|
|
17843
18854
|
"http": "GET",
|
|
17844
18855
|
"path": "/media/v1/libraries/{library_id}/jobs/{job_id}",
|
|
17845
18856
|
"streaming": "no",
|
|
@@ -17862,7 +18873,7 @@ export const operations = [
|
|
|
17862
18873
|
"resource": "media.libraries.jobs",
|
|
17863
18874
|
"method": "cancel",
|
|
17864
18875
|
"summary": "Cancel job",
|
|
17865
|
-
"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.",
|
|
17866
18877
|
"http": "POST",
|
|
17867
18878
|
"path": "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel",
|
|
17868
18879
|
"streaming": "no",
|
|
@@ -18380,7 +19391,7 @@ export const operations = [
|
|
|
18380
19391
|
"resource": "media.videos",
|
|
18381
19392
|
"method": "generate",
|
|
18382
19393
|
"summary": "Generate video",
|
|
18383
|
-
"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.",
|
|
18384
19395
|
"http": "POST",
|
|
18385
19396
|
"path": "/media/v1/libraries/{library_id}/videos/generations",
|
|
18386
19397
|
"streaming": "no",
|
|
@@ -18415,10 +19426,17 @@ export const operations = [
|
|
|
18415
19426
|
"text",
|
|
18416
19427
|
"image",
|
|
18417
19428
|
"first_last",
|
|
18418
|
-
"reference"
|
|
19429
|
+
"reference",
|
|
19430
|
+
"edit"
|
|
18419
19431
|
],
|
|
18420
19432
|
"required": true,
|
|
18421
|
-
"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."
|
|
18422
19440
|
},
|
|
18423
19441
|
{
|
|
18424
19442
|
"name": "first_frame",
|
|
@@ -18437,13 +19455,13 @@ export const operations = [
|
|
|
18437
19455
|
"type": "array",
|
|
18438
19456
|
"itemType": "object",
|
|
18439
19457
|
"required": false,
|
|
18440
|
-
"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."
|
|
18441
19459
|
},
|
|
18442
19460
|
{
|
|
18443
19461
|
"name": "duration_seconds",
|
|
18444
19462
|
"type": "integer",
|
|
18445
19463
|
"required": false,
|
|
18446
|
-
"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."
|
|
18447
19465
|
},
|
|
18448
19466
|
{
|
|
18449
19467
|
"name": "resolution",
|
|
@@ -18489,13 +19507,24 @@ export const operations = [
|
|
|
18489
19507
|
"name": "seed",
|
|
18490
19508
|
"type": "integer",
|
|
18491
19509
|
"required": false,
|
|
18492
|
-
"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."
|
|
18493
19511
|
},
|
|
18494
19512
|
{
|
|
18495
19513
|
"name": "model",
|
|
18496
19514
|
"type": "string",
|
|
18497
19515
|
"required": false,
|
|
18498
|
-
"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."
|
|
18499
19528
|
},
|
|
18500
19529
|
{
|
|
18501
19530
|
"name": "asset_folder",
|
|
@@ -18522,6 +19551,79 @@ export const operations = [
|
|
|
18522
19551
|
]
|
|
18523
19552
|
}
|
|
18524
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
|
+
},
|
|
18525
19627
|
{
|
|
18526
19628
|
"resource": "meta.docs",
|
|
18527
19629
|
"method": "search",
|
|
@@ -19975,6 +21077,7 @@ export const operations = [
|
|
|
19975
21077
|
"enum": [
|
|
19976
21078
|
"anthropic.messages",
|
|
19977
21079
|
"cohere.rerank",
|
|
21080
|
+
"dashscope.voice_design",
|
|
19978
21081
|
"google.generateContent",
|
|
19979
21082
|
"mistral.ocr",
|
|
19980
21083
|
"openai.audio.speech",
|
|
@@ -20779,6 +21882,23 @@ export const operations = [
|
|
|
20779
21882
|
"required": false,
|
|
20780
21883
|
"description": "Several reference images; each entry is a URL or base64 data URL, or an object with `image_url`."
|
|
20781
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
|
+
},
|
|
20782
21902
|
{
|
|
20783
21903
|
"name": "frame_images",
|
|
20784
21904
|
"type": "array",
|
|
@@ -21971,7 +23091,7 @@ export const operations = [
|
|
|
21971
23091
|
"resource": "organization.events",
|
|
21972
23092
|
"method": "list",
|
|
21973
23093
|
"summary": "List Organization Usage Events",
|
|
21974
|
-
"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",
|
|
21975
23095
|
"http": "GET",
|
|
21976
23096
|
"path": "/organization/v1/events",
|
|
21977
23097
|
"streaming": "no",
|
|
@@ -23314,7 +24434,7 @@ export const operations = [
|
|
|
23314
24434
|
"resource": "organization.positions.hire",
|
|
23315
24435
|
"method": "create",
|
|
23316
24436
|
"summary": "Hire into a position",
|
|
23317
|
-
"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\"}.",
|
|
23318
24438
|
"http": "POST",
|
|
23319
24439
|
"path": "/organization/v1/positions/{id}/hire",
|
|
23320
24440
|
"streaming": "no",
|
|
@@ -23573,7 +24693,7 @@ export const operations = [
|
|
|
23573
24693
|
"resource": "registry.packages",
|
|
23574
24694
|
"method": "retrieve",
|
|
23575
24695
|
"summary": "Retrieve package",
|
|
23576
|
-
"description": "读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404
|
|
24696
|
+
"description": "读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404。软删期间这个包一律 404,恢复后才重新出现。",
|
|
23577
24697
|
"http": "GET",
|
|
23578
24698
|
"path": "/registry/v1/packages/{package_id}",
|
|
23579
24699
|
"streaming": "no",
|
|
@@ -23587,6 +24707,119 @@ export const operations = [
|
|
|
23587
24707
|
],
|
|
23588
24708
|
"query": []
|
|
23589
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",
|
|
24757
|
+
"type": "string",
|
|
24758
|
+
"required": false,
|
|
24759
|
+
"description": "分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。"
|
|
24760
|
+
}
|
|
24761
|
+
]
|
|
24762
|
+
},
|
|
24763
|
+
{
|
|
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",
|
|
24770
|
+
"streaming": "no",
|
|
24771
|
+
"pagination": false,
|
|
24772
|
+
"pathParams": [
|
|
24773
|
+
{
|
|
24774
|
+
"name": "package_id",
|
|
24775
|
+
"sdkName": "package_id",
|
|
24776
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
24777
|
+
}
|
|
24778
|
+
],
|
|
24779
|
+
"query": [
|
|
24780
|
+
{
|
|
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。"
|
|
24797
|
+
}
|
|
24798
|
+
]
|
|
24799
|
+
},
|
|
24800
|
+
{
|
|
24801
|
+
"resource": "registry.packages.git.trees",
|
|
24802
|
+
"method": "retrieve",
|
|
24803
|
+
"summary": "List a tree",
|
|
24804
|
+
"description": "读一个树对象(或一个提交的根树)的条目:名字、类型(blob / tree / commit)、模式、对象 id,以及已知时的大小。只列这一层,不递归。",
|
|
24805
|
+
"http": "GET",
|
|
24806
|
+
"path": "/registry/v1/packages/{package_id}/git/trees/{sha}",
|
|
24807
|
+
"streaming": "no",
|
|
24808
|
+
"pagination": false,
|
|
24809
|
+
"pathParams": [
|
|
24810
|
+
{
|
|
24811
|
+
"name": "package_id",
|
|
24812
|
+
"sdkName": "package_id",
|
|
24813
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
24814
|
+
},
|
|
24815
|
+
{
|
|
24816
|
+
"name": "sha",
|
|
24817
|
+
"sdkName": "sha",
|
|
24818
|
+
"description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
|
|
24819
|
+
}
|
|
24820
|
+
],
|
|
24821
|
+
"query": []
|
|
24822
|
+
},
|
|
23590
24823
|
{
|
|
23591
24824
|
"resource": "registry.packages.installations",
|
|
23592
24825
|
"method": "list",
|
|
@@ -23683,7 +24916,7 @@ export const operations = [
|
|
|
23683
24916
|
"resource": "registry.packages.versions",
|
|
23684
24917
|
"method": "create",
|
|
23685
24918
|
"summary": "Publish a version",
|
|
23686
|
-
"description": "给一个已有的包发新版本。请求体与 packages.create 相同(multipart:version 必填,archive 或 files 给内容),但种类和名字沿用这个包,不再从上传内容重判。version 必须比已发布的最高版本高(撤回的版本也占号,不能复用);比它低或相等返回 FAILED_PRECONDITION
|
|
24919
|
+
"description": "给一个已有的包发新版本。请求体与 packages.create 相同(multipart:version 必填,archive 或 files 给内容),但种类和名字沿用这个包,不再从上传内容重判。version 必须比已发布的最高版本高(撤回的版本也占号,不能复用);比它低或相等返回 FAILED_PRECONDITION。title、description、tags 不填就沿用这个包现在显示的,不会被新版本里 SKILL.md 或 plugin.json 的描述覆盖;要改就在这次请求里给。作者不随新版本改变。",
|
|
23687
24920
|
"http": "POST",
|
|
23688
24921
|
"path": "/registry/v1/packages/{package_id}/versions",
|
|
23689
24922
|
"streaming": "no",
|
|
@@ -24204,7 +25437,7 @@ export const operations = [
|
|
|
24204
25437
|
"resource": "sandbox.sandboxes",
|
|
24205
25438
|
"method": "create",
|
|
24206
25439
|
"summary": "Create sandbox (v2)",
|
|
24207
|
-
"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.",
|
|
25440
|
+
"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.",
|
|
24208
25441
|
"http": "POST",
|
|
24209
25442
|
"path": "/sandbox/v1/sandboxes",
|
|
24210
25443
|
"streaming": "no",
|
|
@@ -24286,6 +25519,79 @@ export const operations = [
|
|
|
24286
25519
|
"itemType": "object",
|
|
24287
25520
|
"required": false,
|
|
24288
25521
|
"description": "Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox."
|
|
25522
|
+
},
|
|
25523
|
+
{
|
|
25524
|
+
"name": "ephemeral",
|
|
25525
|
+
"type": "boolean",
|
|
25526
|
+
"required": false,
|
|
25527
|
+
"description": "Own face, required: 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."
|
|
25528
|
+
},
|
|
25529
|
+
{
|
|
25530
|
+
"name": "size",
|
|
25531
|
+
"type": "string",
|
|
25532
|
+
"required": false,
|
|
25533
|
+
"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."
|
|
25534
|
+
},
|
|
25535
|
+
{
|
|
25536
|
+
"name": "name",
|
|
25537
|
+
"type": "string",
|
|
25538
|
+
"required": false,
|
|
25539
|
+
"description": "Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template."
|
|
25540
|
+
},
|
|
25541
|
+
{
|
|
25542
|
+
"name": "waitForReady",
|
|
25543
|
+
"type": "boolean",
|
|
25544
|
+
"required": false,
|
|
25545
|
+
"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."
|
|
25546
|
+
},
|
|
25547
|
+
{
|
|
25548
|
+
"name": "onExpire",
|
|
25549
|
+
"type": "string",
|
|
25550
|
+
"enum": [
|
|
25551
|
+
"kill",
|
|
25552
|
+
"pause"
|
|
25553
|
+
],
|
|
25554
|
+
"required": false,
|
|
25555
|
+
"description": "Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent."
|
|
25556
|
+
},
|
|
25557
|
+
{
|
|
25558
|
+
"name": "idleTimeout",
|
|
25559
|
+
"type": "integer",
|
|
25560
|
+
"required": false,
|
|
25561
|
+
"description": "Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off."
|
|
25562
|
+
},
|
|
25563
|
+
{
|
|
25564
|
+
"name": "idleActivity",
|
|
25565
|
+
"type": "string",
|
|
25566
|
+
"enum": [
|
|
25567
|
+
"traffic",
|
|
25568
|
+
"caller"
|
|
25569
|
+
],
|
|
25570
|
+
"required": false,
|
|
25571
|
+
"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."
|
|
25572
|
+
},
|
|
25573
|
+
{
|
|
25574
|
+
"name": "interruptible",
|
|
25575
|
+
"type": "boolean",
|
|
25576
|
+
"required": false,
|
|
25577
|
+
"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."
|
|
25578
|
+
},
|
|
25579
|
+
{
|
|
25580
|
+
"name": "onLoss",
|
|
25581
|
+
"type": "string",
|
|
25582
|
+
"enum": [
|
|
25583
|
+
"fail",
|
|
25584
|
+
"rebuild"
|
|
25585
|
+
],
|
|
25586
|
+
"required": false,
|
|
25587
|
+
"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."
|
|
25588
|
+
},
|
|
25589
|
+
{
|
|
25590
|
+
"name": "outputs",
|
|
25591
|
+
"type": "array",
|
|
25592
|
+
"itemType": "object",
|
|
25593
|
+
"required": false,
|
|
25594
|
+
"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."
|
|
24289
25595
|
}
|
|
24290
25596
|
]
|
|
24291
25597
|
}
|
|
@@ -24355,6 +25661,28 @@ export const operations = [
|
|
|
24355
25661
|
]
|
|
24356
25662
|
}
|
|
24357
25663
|
},
|
|
25664
|
+
{
|
|
25665
|
+
"resource": "sandbox.sandboxes",
|
|
25666
|
+
"method": "act",
|
|
25667
|
+
"summary": "Act on a phone sandbox's screen",
|
|
25668
|
+
"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.",
|
|
25669
|
+
"http": "POST",
|
|
25670
|
+
"path": "/sandbox/v1/sandboxes/{sandboxID}/act",
|
|
25671
|
+
"streaming": "no",
|
|
25672
|
+
"pagination": false,
|
|
25673
|
+
"pathParams": [
|
|
25674
|
+
{
|
|
25675
|
+
"name": "sandboxID",
|
|
25676
|
+
"sdkName": "sandboxID",
|
|
25677
|
+
"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."
|
|
25678
|
+
}
|
|
25679
|
+
],
|
|
25680
|
+
"query": [],
|
|
25681
|
+
"body": {
|
|
25682
|
+
"required": true,
|
|
25683
|
+
"fields": []
|
|
25684
|
+
}
|
|
25685
|
+
},
|
|
24358
25686
|
{
|
|
24359
25687
|
"resource": "sandbox.sandboxes",
|
|
24360
25688
|
"method": "connect",
|
|
@@ -24867,7 +26195,7 @@ export const operations = [
|
|
|
24867
26195
|
"resource": "sandbox.sandboxes.commands",
|
|
24868
26196
|
"method": "run",
|
|
24869
26197
|
"summary": "Run a command in the sandbox",
|
|
24870
|
-
"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\"}.",
|
|
26198
|
+
"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\"}.",
|
|
24871
26199
|
"http": "POST",
|
|
24872
26200
|
"path": "/sandbox/v1/sandboxes/{sandbox_id}/commands",
|
|
24873
26201
|
"streaming": "no",
|
|
@@ -26233,10 +27561,11 @@ export const operations = [
|
|
|
26233
27561
|
"file",
|
|
26234
27562
|
"artifact",
|
|
26235
27563
|
"canvas",
|
|
26236
|
-
"media_asset"
|
|
27564
|
+
"media_asset",
|
|
27565
|
+
"agent"
|
|
26237
27566
|
],
|
|
26238
27567
|
"required": false,
|
|
26239
|
-
"description": "Only shares of this object type; file, canvas and
|
|
27568
|
+
"description": "Only shares of this object type; file, canvas, media_asset and agent create today."
|
|
26240
27569
|
},
|
|
26241
27570
|
{
|
|
26242
27571
|
"name": "resource_id",
|
|
@@ -26273,7 +27602,7 @@ export const operations = [
|
|
|
26273
27602
|
"resource": "share.permissions",
|
|
26274
27603
|
"method": "create",
|
|
26275
27604
|
"summary": "Create share",
|
|
26276
|
-
"description": "Make one
|
|
27605
|
+
"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.",
|
|
26277
27606
|
"http": "POST",
|
|
26278
27607
|
"path": "/share/v1/permissions",
|
|
26279
27608
|
"streaming": "no",
|
|
@@ -29996,7 +31325,7 @@ export const operations = [
|
|
|
29996
31325
|
"name": "filter",
|
|
29997
31326
|
"type": "string",
|
|
29998
31327
|
"required": false,
|
|
29999
|
-
"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."
|
|
31328
|
+
"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."
|
|
30000
31329
|
}
|
|
30001
31330
|
]
|
|
30002
31331
|
},
|
|
@@ -30197,7 +31526,7 @@ export const operations = [
|
|
|
30197
31526
|
"name": "duplicate_of",
|
|
30198
31527
|
"type": "integer",
|
|
30199
31528
|
"required": false,
|
|
30200
|
-
"description": "
|
|
31529
|
+
"description": "The original ticket's number; required when state_reason is duplicate."
|
|
30201
31530
|
}
|
|
30202
31531
|
]
|
|
30203
31532
|
}
|
|
@@ -31306,7 +32635,7 @@ export const operations = [
|
|
|
31306
32635
|
"resource": "vault.vaults.secrets",
|
|
31307
32636
|
"method": "create",
|
|
31308
32637
|
"summary": "Create secret",
|
|
31309
|
-
"description": "Store a manually supplied token in an active vault.
|
|
32638
|
+
"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.",
|
|
31310
32639
|
"http": "POST",
|
|
31311
32640
|
"path": "/vault/v1/vaults/{vault_id}/secrets",
|
|
31312
32641
|
"streaming": "no",
|
|
@@ -31339,7 +32668,7 @@ export const operations = [
|
|
|
31339
32668
|
"type": "array",
|
|
31340
32669
|
"itemType": "string",
|
|
31341
32670
|
"required": false,
|
|
31342
|
-
"description": "Allowed destinations for the secret.
|
|
32671
|
+
"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."
|
|
31343
32672
|
},
|
|
31344
32673
|
{
|
|
31345
32674
|
"name": "description",
|
|
@@ -31459,7 +32788,7 @@ export const operations = [
|
|
|
31459
32788
|
"type": "array",
|
|
31460
32789
|
"itemType": "string",
|
|
31461
32790
|
"required": false,
|
|
31462
|
-
"description": "Allowed destinations for the secret.
|
|
32791
|
+
"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."
|
|
31463
32792
|
},
|
|
31464
32793
|
{
|
|
31465
32794
|
"name": "description",
|
|
@@ -31563,7 +32892,7 @@ export const operations = [
|
|
|
31563
32892
|
"resource": "vault.vaults.secrets",
|
|
31564
32893
|
"method": "import",
|
|
31565
32894
|
"summary": "Import secrets",
|
|
31566
|
-
"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
|
|
32895
|
+
"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.",
|
|
31567
32896
|
"http": "POST",
|
|
31568
32897
|
"path": "/vault/v1/vaults/{vault_id}/secrets:import",
|
|
31569
32898
|
"streaming": "no",
|