@deepraxis/sdk 0.1.1-dev.604ca9a → 0.1.1-dev.607b136
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 +109 -20
- package/dist/core/credentials.d.ts +16 -6
- package/dist/core/credentials.js +24 -5
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +214 -42
- package/dist/generated/sdk.gen.js +586 -67
- package/dist/generated/types.gen.d.ts +9468 -2459
- package/dist/operations.generated.js +1182 -335
- package/dist/resources.generated.d.ts +1635 -218
- package/dist/resources.generated.js +67 -12
- package/package.json +1 -1
|
@@ -61,7 +61,7 @@ export const operations = [
|
|
|
61
61
|
"resource": "agent.agents",
|
|
62
62
|
"method": "create",
|
|
63
63
|
"summary": "Create agent",
|
|
64
|
-
"description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write,
|
|
64
|
+
"description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. 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. For kind assume, provide name without model, models, subagent_model, subagents or multiagent; omit computer_id to register a new computer named after the agent without starting an instance, or provide an existing computer_id; vault_ids are accepted, bindings and environment_id are refused. Drive assume agents over MCP at /agent/v1/agents/{id}/mcp.",
|
|
65
65
|
"http": "POST",
|
|
66
66
|
"path": "/agent/v1/agents",
|
|
67
67
|
"streaming": "no",
|
|
@@ -133,7 +133,7 @@ export const operations = [
|
|
|
133
133
|
"type": "array",
|
|
134
134
|
"itemType": "object",
|
|
135
135
|
"required": false,
|
|
136
|
-
"description": "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {\"type\": \"ticket\", \"enabled\": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time."
|
|
136
|
+
"description": "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {\"type\": \"ticket\", \"enabled\": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time."
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"name": "kind",
|
|
@@ -144,7 +144,7 @@ export const operations = [
|
|
|
144
144
|
"assume"
|
|
145
145
|
],
|
|
146
146
|
"required": false,
|
|
147
|
-
"description": "Immutable agent kind. general requires computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
|
|
147
|
+
"description": "Immutable agent kind. general requires computer_id; on creation, assume may omit computer_id to register a new computer named after the agent, without starting an instance; assume has no conversation model and rejects model, models, subagent_model, subagents and multiagent; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"name": "computer_id",
|
|
@@ -209,6 +209,12 @@ export const operations = [
|
|
|
209
209
|
"required": false,
|
|
210
210
|
"description": "Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it."
|
|
211
211
|
},
|
|
212
|
+
{
|
|
213
|
+
"name": "computers",
|
|
214
|
+
"type": "object",
|
|
215
|
+
"required": false,
|
|
216
|
+
"description": "General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only."
|
|
217
|
+
},
|
|
212
218
|
{
|
|
213
219
|
"name": "preset",
|
|
214
220
|
"type": "string",
|
|
@@ -366,7 +372,7 @@ export const operations = [
|
|
|
366
372
|
"assume"
|
|
367
373
|
],
|
|
368
374
|
"required": false,
|
|
369
|
-
"description": "Immutable agent kind. general requires computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
|
|
375
|
+
"description": "Immutable agent kind. general requires computer_id; on creation, assume may omit computer_id to register a new computer named after the agent, without starting an instance; assume has no conversation model and rejects model, models, subagent_model, subagents and multiagent; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
|
|
370
376
|
},
|
|
371
377
|
{
|
|
372
378
|
"name": "computer_id",
|
|
@@ -431,6 +437,12 @@ export const operations = [
|
|
|
431
437
|
"required": false,
|
|
432
438
|
"description": "Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it."
|
|
433
439
|
},
|
|
440
|
+
{
|
|
441
|
+
"name": "computers",
|
|
442
|
+
"type": "object",
|
|
443
|
+
"required": false,
|
|
444
|
+
"description": "General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only."
|
|
445
|
+
},
|
|
434
446
|
{
|
|
435
447
|
"name": "preset",
|
|
436
448
|
"type": "string",
|
|
@@ -619,154 +631,6 @@ export const operations = [
|
|
|
619
631
|
}
|
|
620
632
|
]
|
|
621
633
|
},
|
|
622
|
-
{
|
|
623
|
-
"resource": "agent.agents.customers.auth.accessTokens",
|
|
624
|
-
"method": "create",
|
|
625
|
-
"summary": "Create customer access token",
|
|
626
|
-
"description": "Exchange a grant code, or the agent's publishable key for an anonymous visitor, for a customer access token that authorizes the agent's embedded sessions.\n\nNo Authorization header is required: the grant code or the publishable key is the credential. Agent Kit calls this from the browser, so send the page Origin. With grant_code, the code is consumed atomically: concurrent attempts have exactly one winner, and unknown, used, expired and other-agent codes all return the same 401 GRANT_CODE_INVALID. The sign-in starts now and lasts the code's max_session_seconds. Unlike Shopify, a visitor without an account gets a token too: send publishable_key instead and a new anonymous customer (anon_…) is created, bound to the request Origin, for 7 days. The access token lasts at most two hours and never outlives the sign-in; renew it with access_tokens/renew before expires_at. Both forms share the per-IP minute limit of anonymous issuance (default 20). Example body: {\"grant_code\":\"cgc_…\"}.",
|
|
627
|
-
"http": "POST",
|
|
628
|
-
"path": "/agent/v1/agents/{agent_id}/customers/auth/access_tokens",
|
|
629
|
-
"streaming": "no",
|
|
630
|
-
"pagination": false,
|
|
631
|
-
"pathParams": [
|
|
632
|
-
{
|
|
633
|
-
"name": "agent_id",
|
|
634
|
-
"sdkName": "agent_id",
|
|
635
|
-
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
636
|
-
}
|
|
637
|
-
],
|
|
638
|
-
"query": [],
|
|
639
|
-
"body": {
|
|
640
|
-
"required": true,
|
|
641
|
-
"fields": []
|
|
642
|
-
}
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
"resource": "agent.agents.customers.auth.accessTokens",
|
|
646
|
-
"method": "deleteCurrent",
|
|
647
|
-
"summary": "Log out customer",
|
|
648
|
-
"description": "Log the customer out by revoking the sign-in of the presented access token and every token issued in it.\n\nSend the current customer access token as the Bearer credential, with no body, when the customer logs out of your site. Every token of the sign-in, including renewed ones, stops working, and their live event streams close; the customer's conversations are kept. Returns 204. Calling it again with the same token returns 401 ACCESS_TOKEN_REVOKED, so treat that as already logged out.",
|
|
649
|
-
"http": "DELETE",
|
|
650
|
-
"path": "/agent/v1/agents/{agent_id}/customers/auth/access_tokens/current",
|
|
651
|
-
"streaming": "no",
|
|
652
|
-
"pagination": false,
|
|
653
|
-
"pathParams": [
|
|
654
|
-
{
|
|
655
|
-
"name": "agent_id",
|
|
656
|
-
"sdkName": "agent_id",
|
|
657
|
-
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
658
|
-
}
|
|
659
|
-
],
|
|
660
|
-
"query": []
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
"resource": "agent.agents.customers.auth.accessTokens.renew",
|
|
664
|
-
"method": "create",
|
|
665
|
-
"summary": "Renew customer access token",
|
|
666
|
-
"description": "Get a fresh customer access token in the same sign-in, authenticated with the current one.\n\nSend the current customer access token as the Bearer credential, with no body, a few minutes before expires_at. The new token keeps the version, budget, context, metadata and origin binding of the sign-in and lasts at most two hours, never past session_expires_at. Unlike Shopify, renewal does not revoke the presented token: it stays valid until its own expiry, so a reply that is streaming on it is not cut off. When less than 60 seconds of the sign-in remain, renewal returns 401 CUSTOMER_SESSION_EXPIRED; sign the customer in again with a new grant code from your backend. A token that was logged out or merged returns 401 ACCESS_TOKEN_REVOKED.",
|
|
667
|
-
"http": "POST",
|
|
668
|
-
"path": "/agent/v1/agents/{agent_id}/customers/auth/access_tokens/renew",
|
|
669
|
-
"streaming": "no",
|
|
670
|
-
"pagination": false,
|
|
671
|
-
"pathParams": [
|
|
672
|
-
{
|
|
673
|
-
"name": "agent_id",
|
|
674
|
-
"sdkName": "agent_id",
|
|
675
|
-
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
676
|
-
}
|
|
677
|
-
],
|
|
678
|
-
"query": []
|
|
679
|
-
},
|
|
680
|
-
{
|
|
681
|
-
"resource": "agent.agents.customers.auth.grantCodes",
|
|
682
|
-
"method": "create",
|
|
683
|
-
"summary": "Create customer grant code",
|
|
684
|
-
"description": "Sign your logged-in customer in to a service agent from your backend with a one-time grant code that Agent Kit exchanges for a customer access token.\n\nCall this from your backend with your API key after your own login succeeds, then pass the returned code to Agent Kit in the browser; never call it from the browser. Customer authorization follows Shopify Storefront customer access tokens (Multipass-style sign-in, a short-lived token, renewal and logout), so that experience applies. customer_id is your own identifier for the customer: use an opaque id such as your database user id, not an email address or phone number. The value auth is reserved, and ids starting with anon_ are reserved for anonymous customers. The code works once and expires after expires_in seconds (default 900). The sign-in it starts lasts max_session_seconds (default 7 days); version, budget (US dollars, at most 2 decimals), system_message, agent_override and metadata apply to every token of the sign-in. Unlike Shopify, origin binds the whole sign-in to one page origin, and anonymous_access_token merges the conversations of the anonymous visitor who chatted before signing in into this customer. Example body: {\"customer_id\":\"cus_8f2a91\",\"origin\":\"https://shop.example.com\"}.",
|
|
685
|
-
"http": "POST",
|
|
686
|
-
"path": "/agent/v1/agents/{agent_id}/customers/auth/grant_codes",
|
|
687
|
-
"streaming": "no",
|
|
688
|
-
"pagination": false,
|
|
689
|
-
"pathParams": [
|
|
690
|
-
{
|
|
691
|
-
"name": "agent_id",
|
|
692
|
-
"sdkName": "agent_id",
|
|
693
|
-
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
694
|
-
}
|
|
695
|
-
],
|
|
696
|
-
"query": [],
|
|
697
|
-
"body": {
|
|
698
|
-
"required": true,
|
|
699
|
-
"fields": [
|
|
700
|
-
{
|
|
701
|
-
"name": "customer_id",
|
|
702
|
-
"type": "string",
|
|
703
|
-
"required": true,
|
|
704
|
-
"description": "Your stable, opaque identifier for the signed-in customer, such as your database user id. Do not use an email address or phone number. \"auth\" is reserved, and ids starting with anon_ are reserved for anonymous customers."
|
|
705
|
-
},
|
|
706
|
-
{
|
|
707
|
-
"name": "version",
|
|
708
|
-
"type": "integer",
|
|
709
|
-
"required": false,
|
|
710
|
-
"description": "Existing agent version that every token of this sign-in pins. Defaults to the agent's active_version when the code is issued."
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
"name": "budget",
|
|
714
|
-
"type": "object",
|
|
715
|
-
"required": false,
|
|
716
|
-
"description": "Budget for each session the customer starts, in the same shape as a session budget. Defaults to the embed policy session budget and cannot exceed its maximum."
|
|
717
|
-
},
|
|
718
|
-
{
|
|
719
|
-
"name": "system_message",
|
|
720
|
-
"type": "array",
|
|
721
|
-
"itemType": "object",
|
|
722
|
-
"required": false,
|
|
723
|
-
"description": "Optional context the agent receives at the start of each session, as text blocks, limited to 8192 UTF-8 bytes in total."
|
|
724
|
-
},
|
|
725
|
-
{
|
|
726
|
-
"name": "agent_override",
|
|
727
|
-
"type": "object",
|
|
728
|
-
"required": false,
|
|
729
|
-
"description": "Optional system prompt override, accepted only when the embed policy allows agent overrides."
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
"name": "metadata",
|
|
733
|
-
"type": "object",
|
|
734
|
-
"required": false,
|
|
735
|
-
"description": "Up to 16 string pairs copied onto every session the customer starts. The playground key is reserved."
|
|
736
|
-
},
|
|
737
|
-
{
|
|
738
|
-
"name": "origin",
|
|
739
|
-
"type": "string",
|
|
740
|
-
"required": false,
|
|
741
|
-
"description": "Page origin, such as https://shop.example.com, that must be one of the agent policy's allowed_origins (or localhost when the policy allows it). When set, every token of this sign-in works only from exactly this origin. Omit to accept any policy origin."
|
|
742
|
-
},
|
|
743
|
-
{
|
|
744
|
-
"name": "expires_in",
|
|
745
|
-
"type": "integer",
|
|
746
|
-
"required": false,
|
|
747
|
-
"description": "Seconds the code stays redeemable, from 60 to 86400. Defaults to 900."
|
|
748
|
-
},
|
|
749
|
-
{
|
|
750
|
-
"name": "max_session_seconds",
|
|
751
|
-
"type": "integer",
|
|
752
|
-
"required": false,
|
|
753
|
-
"description": "Total lifetime of the sign-in in seconds, from 3600 to 604800 (7 days). Tokens renew within it; after it the customer signs in again. Defaults to 604800."
|
|
754
|
-
},
|
|
755
|
-
{
|
|
756
|
-
"name": "anonymous_access_token",
|
|
757
|
-
"type": "string",
|
|
758
|
-
"required": false,
|
|
759
|
-
"description": "The current access token of the anonymous customer who used this agent before signing in. Their conversations become visible to the identified customer, and the anonymous sign-in ends at exchange."
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
"name": "hosted",
|
|
763
|
-
"type": "boolean",
|
|
764
|
-
"required": false,
|
|
765
|
-
"description": "Set true to also return hosted_url, a link to the agent's Hosted chat page that carries the code in its fragment. The page exchanges the code only when the customer clicks to start, so link previews in email or chat apps do not use it up. The agent must have an identity_number, and origin cannot be set: the code is bound to no origin. Defaults to false."
|
|
766
|
-
}
|
|
767
|
-
]
|
|
768
|
-
}
|
|
769
|
-
},
|
|
770
634
|
{
|
|
771
635
|
"resource": "agent.agents.customers",
|
|
772
636
|
"method": "delete",
|
|
@@ -912,6 +776,77 @@ export const operations = [
|
|
|
912
776
|
],
|
|
913
777
|
"query": []
|
|
914
778
|
},
|
|
779
|
+
{
|
|
780
|
+
"resource": "agent.agents",
|
|
781
|
+
"method": "retrieveEmbedPolicy",
|
|
782
|
+
"summary": "Get agent embed policy",
|
|
783
|
+
"description": "Read a service agent's embed settings: the pages allowed to open its Kit chat (allowed_origins), the development switch (allow_localhost), what an embedded end user may upload (uploads) and whether the agent may be shared by link with the daily caps its visitors count against (share_links). The allow list decides where the agent can be embedded at all, so after deploying an application, add that application's URL origin here (scheme, host and port, never a path) before the page loads the agent — otherwise its Kit chat answers ORIGIN_NOT_ALLOWED. Budgets, monthly caps and token lifetime are set in the console and are not part of this API. An agent of another organization answers 404; an agent that is not a service agent answers 400.",
|
|
784
|
+
"http": "GET",
|
|
785
|
+
"path": "/agent/v1/agents/{agent_id}/embed_policy",
|
|
786
|
+
"streaming": "no",
|
|
787
|
+
"pagination": false,
|
|
788
|
+
"pathParams": [
|
|
789
|
+
{
|
|
790
|
+
"name": "agent_id",
|
|
791
|
+
"sdkName": "agent_id",
|
|
792
|
+
"description": "Service agent id from agent creation or listing, the eight character identity number or the handle; the agent must be a service agent of your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
793
|
+
}
|
|
794
|
+
],
|
|
795
|
+
"query": []
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"resource": "agent.agents",
|
|
799
|
+
"method": "updateEmbedPolicy",
|
|
800
|
+
"summary": "Update agent embed policy",
|
|
801
|
+
"description": "Change some of a service agent's embed settings. Only the fields you send change: everything you leave out, including the budgets and the token lifetime set in the console, is kept exactly as it was. Send allowed_origins so the pages that load the agent are allowed — an application's URL origin must be in the list before the application can embed the agent, or its Kit chat answers ORIGIN_NOT_ALLOWED. Send allow_localhost while developing on http://localhost, and uploads to open, close or bound file attachments for the embedded end user. Send share_links to let the agent be shared by link and to set the daily session and spending caps its share links count against; turning it on is refused unless the agent has an identity number. Values are checked by the service: an origin is normalized and must be https, and at most one leading wildcard label may match a single subdomain level. max_file_bytes is 1 to 104857600 bytes and max_files_per_session is 1 to 100. Example: POST /agent/v1/agents/{agent_id}/embed_policy with {\"allowed_origins\": [\"https://my-app.example.com\"]}.",
|
|
802
|
+
"http": "POST",
|
|
803
|
+
"path": "/agent/v1/agents/{agent_id}/embed_policy",
|
|
804
|
+
"streaming": "no",
|
|
805
|
+
"pagination": false,
|
|
806
|
+
"pathParams": [
|
|
807
|
+
{
|
|
808
|
+
"name": "agent_id",
|
|
809
|
+
"sdkName": "agent_id",
|
|
810
|
+
"description": "Service agent id from agent creation or listing, the eight character identity number or the handle; the agent must be a service agent of your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
811
|
+
}
|
|
812
|
+
],
|
|
813
|
+
"query": [],
|
|
814
|
+
"body": {
|
|
815
|
+
"required": true,
|
|
816
|
+
"fields": [
|
|
817
|
+
{
|
|
818
|
+
"name": "allowed_origins",
|
|
819
|
+
"type": "array",
|
|
820
|
+
"itemType": "string",
|
|
821
|
+
"required": false,
|
|
822
|
+
"description": "Replaces the whole allow list: the https origins whose pages may open this agent's Kit chat, with no path, query or fragment. An origin is normalized before it is stored, and a leading wildcard label matches subdomains one label deep. Send the origin of the application you just deployed to let it embed the agent."
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
"name": "allow_localhost",
|
|
826
|
+
"type": "boolean",
|
|
827
|
+
"required": false,
|
|
828
|
+
"description": "Whether http://localhost or http://127.0.0.1 pages may open the chat during development."
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"name": "uploads",
|
|
832
|
+
"type": "object",
|
|
833
|
+
"required": false,
|
|
834
|
+
"description": "What an embedded end user may attach; only the fields you send are changed."
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
"name": "share_links",
|
|
838
|
+
"type": "object",
|
|
839
|
+
"required": false,
|
|
840
|
+
"description": "Whether this agent may be shared by link, and its daily caps; every field is optional and only what you send is changed. Turning it on requires the agent to have an identity number."
|
|
841
|
+
}
|
|
842
|
+
],
|
|
843
|
+
"example": {
|
|
844
|
+
"allowed_origins": [
|
|
845
|
+
"https://my-app.example.com"
|
|
846
|
+
]
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
},
|
|
915
850
|
{
|
|
916
851
|
"resource": "agent.agents.events",
|
|
917
852
|
"method": "list",
|
|
@@ -2183,7 +2118,7 @@ export const operations = [
|
|
|
2183
2118
|
"resource": "agent.sessions",
|
|
2184
2119
|
"method": "create",
|
|
2185
2120
|
"summary": "Create session",
|
|
2186
|
-
"description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (
|
|
2121
|
+
"description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (node22 for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. The retired \"light\" returns 400 naming the two forms that work: \"node22\", or null for no machine. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive decimal string of US dollars with at most 2 decimal places (\"20.00\" is USD 20.00); omitted budget defaults to \"20.00\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion. Assume agents return 400 INVALID_PARAMS; drive them over MCP at /agent/v1/agents/{id}/mcp instead.",
|
|
2187
2122
|
"http": "POST",
|
|
2188
2123
|
"path": "/agent/v1/sessions",
|
|
2189
2124
|
"streaming": "no",
|
|
@@ -2299,7 +2234,7 @@ export const operations = [
|
|
|
2299
2234
|
"resource": "agent.sessions",
|
|
2300
2235
|
"method": "retrieve",
|
|
2301
2236
|
"summary": "Get session",
|
|
2302
|
-
"description": "Read one session by id: its agent snapshot, status, model and thinking selection, resources, title, metadata and, for a fork, forked_from. Use it to poll status; to read what happened use sessions.events.list. This response does not include a machine object or sandbox id. With no environment_id or Computer selected at creation, the session starts on
|
|
2237
|
+
"description": "Read one session by id: its agent snapshot, status, model and thinking selection, resources, title, metadata and, for a fork, forked_from. Use it to poll status; to read what happened use sessions.events.list. This response does not include a machine object or sandbox id. With no environment_id or Computer selected at creation, the session starts on the agent version's default environment, node22.",
|
|
2303
2238
|
"http": "GET",
|
|
2304
2239
|
"path": "/agent/v1/sessions/{session_id}",
|
|
2305
2240
|
"streaming": "no",
|
|
@@ -2373,6 +2308,38 @@ export const operations = [
|
|
|
2373
2308
|
]
|
|
2374
2309
|
}
|
|
2375
2310
|
},
|
|
2311
|
+
{
|
|
2312
|
+
"resource": "agent.sessions.agentVersion",
|
|
2313
|
+
"method": "create",
|
|
2314
|
+
"summary": "Update session agent version",
|
|
2315
|
+
"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.",
|
|
2316
|
+
"http": "POST",
|
|
2317
|
+
"path": "/agent/v1/sessions/{session_id}/agent_version",
|
|
2318
|
+
"streaming": "no",
|
|
2319
|
+
"pagination": false,
|
|
2320
|
+
"pathParams": [
|
|
2321
|
+
{
|
|
2322
|
+
"name": "session_id",
|
|
2323
|
+
"sdkName": "session_id",
|
|
2324
|
+
"description": "Session id from session creation or listing, or the own face's session name for a main session."
|
|
2325
|
+
}
|
|
2326
|
+
],
|
|
2327
|
+
"query": [],
|
|
2328
|
+
"body": {
|
|
2329
|
+
"required": false,
|
|
2330
|
+
"fields": [
|
|
2331
|
+
{
|
|
2332
|
+
"name": "version",
|
|
2333
|
+
"type": "integer",
|
|
2334
|
+
"required": false,
|
|
2335
|
+
"description": "An existing version of the session's agent, from agents.versions.list. Omit to use the agent's active version."
|
|
2336
|
+
}
|
|
2337
|
+
],
|
|
2338
|
+
"example": {
|
|
2339
|
+
"version": 5
|
|
2340
|
+
}
|
|
2341
|
+
}
|
|
2342
|
+
},
|
|
2376
2343
|
{
|
|
2377
2344
|
"resource": "agent.sessions",
|
|
2378
2345
|
"method": "archive",
|
|
@@ -2775,6 +2742,35 @@ export const operations = [
|
|
|
2775
2742
|
]
|
|
2776
2743
|
}
|
|
2777
2744
|
},
|
|
2745
|
+
{
|
|
2746
|
+
"resource": "agent.sessions.name",
|
|
2747
|
+
"method": "create",
|
|
2748
|
+
"summary": "Rename Session (Extension)",
|
|
2749
|
+
"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\"}.",
|
|
2750
|
+
"http": "POST",
|
|
2751
|
+
"path": "/agent/v1/sessions/{session_id}/name",
|
|
2752
|
+
"streaming": "no",
|
|
2753
|
+
"pagination": false,
|
|
2754
|
+
"pathParams": [
|
|
2755
|
+
{
|
|
2756
|
+
"name": "session_id",
|
|
2757
|
+
"sdkName": "session_id",
|
|
2758
|
+
"description": "Session id from session creation or listing. The reserved name main is not renameable."
|
|
2759
|
+
}
|
|
2760
|
+
],
|
|
2761
|
+
"query": [],
|
|
2762
|
+
"body": {
|
|
2763
|
+
"required": true,
|
|
2764
|
+
"fields": [
|
|
2765
|
+
{
|
|
2766
|
+
"name": "name",
|
|
2767
|
+
"type": "string",
|
|
2768
|
+
"required": true,
|
|
2769
|
+
"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."
|
|
2770
|
+
}
|
|
2771
|
+
]
|
|
2772
|
+
}
|
|
2773
|
+
},
|
|
2778
2774
|
{
|
|
2779
2775
|
"resource": "agent.sessions.requests",
|
|
2780
2776
|
"method": "list",
|
|
@@ -3409,7 +3405,7 @@ export const operations = [
|
|
|
3409
3405
|
"resource": "agent.toolsets",
|
|
3410
3406
|
"method": "list",
|
|
3411
3407
|
"summary": "List Toolsets",
|
|
3412
|
-
"description": "Discover tool names, input schemas, read-only status and default permission policies before configuring an agent. The catalog is read-only: enable tools through agents.create or agents.update. agent_toolset_20260401 includes bash, edit, glob, grep, read, write, web_search, web_fetch, task_output, task_stop, monitor, agent, send_message, codemode and skill, plus todo_write,
|
|
3408
|
+
"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.",
|
|
3413
3409
|
"http": "GET",
|
|
3414
3410
|
"path": "/agent/v1/toolsets",
|
|
3415
3411
|
"streaming": "no",
|
|
@@ -3418,12 +3414,12 @@ export const operations = [
|
|
|
3418
3414
|
"query": []
|
|
3419
3415
|
},
|
|
3420
3416
|
{
|
|
3421
|
-
"resource": "
|
|
3417
|
+
"resource": "agent.uploads",
|
|
3422
3418
|
"method": "create",
|
|
3423
|
-
"summary": "Upload
|
|
3424
|
-
"description": "
|
|
3419
|
+
"summary": "Upload a File (Extension)",
|
|
3420
|
+
"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\"}.",
|
|
3425
3421
|
"http": "POST",
|
|
3426
|
-
"path": "/
|
|
3422
|
+
"path": "/agent/v1/uploads",
|
|
3427
3423
|
"streaming": "no",
|
|
3428
3424
|
"pagination": false,
|
|
3429
3425
|
"pathParams": [],
|
|
@@ -3432,35 +3428,94 @@ export const operations = [
|
|
|
3432
3428
|
"required": true,
|
|
3433
3429
|
"fields": [
|
|
3434
3430
|
{
|
|
3435
|
-
"name": "
|
|
3431
|
+
"name": "filename",
|
|
3436
3432
|
"type": "string",
|
|
3437
3433
|
"required": true,
|
|
3438
|
-
"description": "
|
|
3434
|
+
"description": "The file's name, its extension included; the extension decides which blocked executable and script types are refused. 1 to 255 characters."
|
|
3439
3435
|
},
|
|
3440
3436
|
{
|
|
3441
|
-
"name": "
|
|
3442
|
-
"type": "
|
|
3437
|
+
"name": "bytes",
|
|
3438
|
+
"type": "integer",
|
|
3443
3439
|
"required": true,
|
|
3444
|
-
"description": "
|
|
3440
|
+
"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."
|
|
3441
|
+
},
|
|
3442
|
+
{
|
|
3443
|
+
"name": "content_type",
|
|
3444
|
+
"type": "string",
|
|
3445
|
+
"required": true,
|
|
3446
|
+
"description": "The file's MIME type, such as image/png, stored on the file; not used to refuse the upload. 1 to 255 characters."
|
|
3447
|
+
},
|
|
3448
|
+
{
|
|
3449
|
+
"name": "agent",
|
|
3450
|
+
"type": "string",
|
|
3451
|
+
"required": false,
|
|
3452
|
+
"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."
|
|
3445
3453
|
}
|
|
3446
3454
|
]
|
|
3447
3455
|
}
|
|
3448
3456
|
},
|
|
3449
3457
|
{
|
|
3450
|
-
"resource": "
|
|
3451
|
-
"method": "
|
|
3452
|
-
"summary": "
|
|
3453
|
-
"description": "
|
|
3454
|
-
"http": "
|
|
3455
|
-
"path": "/
|
|
3458
|
+
"resource": "agent.uploads.contentUrl",
|
|
3459
|
+
"method": "create",
|
|
3460
|
+
"summary": "Create Upload Content URL (Extension)",
|
|
3461
|
+
"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.",
|
|
3462
|
+
"http": "POST",
|
|
3463
|
+
"path": "/agent/v1/uploads/{file_id}/content_url",
|
|
3456
3464
|
"streaming": "no",
|
|
3457
3465
|
"pagination": false,
|
|
3458
|
-
"pathParams": [
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3466
|
+
"pathParams": [
|
|
3467
|
+
{
|
|
3468
|
+
"name": "file_id",
|
|
3469
|
+
"sdkName": "file_id",
|
|
3470
|
+
"description": "File id (file-… ) the File service returned after the bytes were uploaded; only the caller's own upload is readable."
|
|
3471
|
+
}
|
|
3472
|
+
],
|
|
3473
|
+
"query": []
|
|
3474
|
+
},
|
|
3475
|
+
{
|
|
3476
|
+
"resource": "application.assets.upload",
|
|
3477
|
+
"method": "create",
|
|
3478
|
+
"summary": "Upload assets",
|
|
3479
|
+
"description": "Upload one batch: files maps hash to base64 content. The last batch returns the completion token.",
|
|
3480
|
+
"http": "POST",
|
|
3481
|
+
"path": "/application/v1/assets/upload",
|
|
3482
|
+
"streaming": "no",
|
|
3483
|
+
"pagination": false,
|
|
3484
|
+
"pathParams": [],
|
|
3485
|
+
"query": [],
|
|
3486
|
+
"body": {
|
|
3487
|
+
"required": true,
|
|
3488
|
+
"fields": [
|
|
3489
|
+
{
|
|
3490
|
+
"name": "jwt",
|
|
3491
|
+
"type": "string",
|
|
3492
|
+
"required": true,
|
|
3493
|
+
"description": "Upload token from the session."
|
|
3494
|
+
},
|
|
3495
|
+
{
|
|
3496
|
+
"name": "files",
|
|
3497
|
+
"type": "object",
|
|
3498
|
+
"required": true,
|
|
3499
|
+
"description": "Hash → base64 file content."
|
|
3500
|
+
}
|
|
3501
|
+
]
|
|
3502
|
+
}
|
|
3503
|
+
},
|
|
3504
|
+
{
|
|
3505
|
+
"resource": "application.subdomain",
|
|
3506
|
+
"method": "retrieve",
|
|
3507
|
+
"summary": "Get account subdomain",
|
|
3508
|
+
"description": "Return the account subdomain used in every Worker URL. A default is created on first use.",
|
|
3509
|
+
"http": "GET",
|
|
3510
|
+
"path": "/application/v1/subdomain",
|
|
3511
|
+
"streaming": "no",
|
|
3512
|
+
"pagination": false,
|
|
3513
|
+
"pathParams": [],
|
|
3514
|
+
"query": []
|
|
3515
|
+
},
|
|
3516
|
+
{
|
|
3517
|
+
"resource": "application.subdomain",
|
|
3518
|
+
"method": "update",
|
|
3464
3519
|
"summary": "Change account subdomain",
|
|
3465
3520
|
"description": "Change the account subdomain. Every Worker moves to the new address at once; old addresses stop resolving.",
|
|
3466
3521
|
"http": "PUT",
|
|
@@ -8333,6 +8388,292 @@ export const operations = [
|
|
|
8333
8388
|
]
|
|
8334
8389
|
}
|
|
8335
8390
|
},
|
|
8391
|
+
{
|
|
8392
|
+
"resource": "content.contents",
|
|
8393
|
+
"method": "list",
|
|
8394
|
+
"summary": "List contents",
|
|
8395
|
+
"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.",
|
|
8396
|
+
"http": "GET",
|
|
8397
|
+
"path": "/content/v1/contents",
|
|
8398
|
+
"streaming": "no",
|
|
8399
|
+
"pagination": false,
|
|
8400
|
+
"pathParams": [],
|
|
8401
|
+
"query": [
|
|
8402
|
+
{
|
|
8403
|
+
"name": "page_size",
|
|
8404
|
+
"type": "integer",
|
|
8405
|
+
"required": false,
|
|
8406
|
+
"description": "Maximum contents in one page, from 1 to 100; defaults to 50."
|
|
8407
|
+
},
|
|
8408
|
+
{
|
|
8409
|
+
"name": "page_token",
|
|
8410
|
+
"type": "string",
|
|
8411
|
+
"required": false,
|
|
8412
|
+
"description": "next_page from the preceding list response with the same filters; omit for the first page."
|
|
8413
|
+
},
|
|
8414
|
+
{
|
|
8415
|
+
"name": "status",
|
|
8416
|
+
"type": "string",
|
|
8417
|
+
"enum": [
|
|
8418
|
+
"draft",
|
|
8419
|
+
"published",
|
|
8420
|
+
"unpublished",
|
|
8421
|
+
"archived"
|
|
8422
|
+
],
|
|
8423
|
+
"required": false,
|
|
8424
|
+
"description": "Only contents in this publication state; draft, published, unpublished or archived. Omit to see every state but archived."
|
|
8425
|
+
},
|
|
8426
|
+
{
|
|
8427
|
+
"name": "kind",
|
|
8428
|
+
"type": "string",
|
|
8429
|
+
"required": false,
|
|
8430
|
+
"description": "Only contents of this kind; video is the only kind today."
|
|
8431
|
+
},
|
|
8432
|
+
{
|
|
8433
|
+
"name": "asset_id",
|
|
8434
|
+
"type": "string",
|
|
8435
|
+
"required": false,
|
|
8436
|
+
"description": "Only contents made from this Media asset id, from praxis.media; omit for every asset."
|
|
8437
|
+
},
|
|
8438
|
+
{
|
|
8439
|
+
"name": "q",
|
|
8440
|
+
"type": "string",
|
|
8441
|
+
"required": false,
|
|
8442
|
+
"description": "Substring of the content title to match, for example lesson; omit for every title."
|
|
8443
|
+
}
|
|
8444
|
+
]
|
|
8445
|
+
},
|
|
8446
|
+
{
|
|
8447
|
+
"resource": "content.contents",
|
|
8448
|
+
"method": "create",
|
|
8449
|
+
"summary": "Create a content",
|
|
8450
|
+
"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.",
|
|
8451
|
+
"http": "POST",
|
|
8452
|
+
"path": "/content/v1/contents",
|
|
8453
|
+
"streaming": "no",
|
|
8454
|
+
"pagination": false,
|
|
8455
|
+
"pathParams": [],
|
|
8456
|
+
"query": [],
|
|
8457
|
+
"body": {
|
|
8458
|
+
"required": true,
|
|
8459
|
+
"fields": [
|
|
8460
|
+
{
|
|
8461
|
+
"name": "kind",
|
|
8462
|
+
"type": "string",
|
|
8463
|
+
"required": true,
|
|
8464
|
+
"description": "Content kind to create; video is the only kind today."
|
|
8465
|
+
},
|
|
8466
|
+
{
|
|
8467
|
+
"name": "title",
|
|
8468
|
+
"type": "string",
|
|
8469
|
+
"required": true,
|
|
8470
|
+
"description": "Merchant-facing title for the content, a non-empty string."
|
|
8471
|
+
},
|
|
8472
|
+
{
|
|
8473
|
+
"name": "settings",
|
|
8474
|
+
"type": "object",
|
|
8475
|
+
"required": false,
|
|
8476
|
+
"description": "The settings a create accepts; only source is required, and the other groups keep their defaults when omitted."
|
|
8477
|
+
}
|
|
8478
|
+
]
|
|
8479
|
+
}
|
|
8480
|
+
},
|
|
8481
|
+
{
|
|
8482
|
+
"resource": "content.contents",
|
|
8483
|
+
"method": "retrieve",
|
|
8484
|
+
"summary": "Get a content",
|
|
8485
|
+
"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.",
|
|
8486
|
+
"http": "GET",
|
|
8487
|
+
"path": "/content/v1/contents/{content_id}",
|
|
8488
|
+
"streaming": "no",
|
|
8489
|
+
"pagination": false,
|
|
8490
|
+
"pathParams": [
|
|
8491
|
+
{
|
|
8492
|
+
"name": "content_id",
|
|
8493
|
+
"sdkName": "content_id",
|
|
8494
|
+
"description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
|
|
8495
|
+
}
|
|
8496
|
+
],
|
|
8497
|
+
"query": []
|
|
8498
|
+
},
|
|
8499
|
+
{
|
|
8500
|
+
"resource": "content.contents",
|
|
8501
|
+
"method": "update",
|
|
8502
|
+
"summary": "Update a content",
|
|
8503
|
+
"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.",
|
|
8504
|
+
"http": "PATCH",
|
|
8505
|
+
"path": "/content/v1/contents/{content_id}",
|
|
8506
|
+
"streaming": "no",
|
|
8507
|
+
"pagination": false,
|
|
8508
|
+
"pathParams": [
|
|
8509
|
+
{
|
|
8510
|
+
"name": "content_id",
|
|
8511
|
+
"sdkName": "content_id",
|
|
8512
|
+
"description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
|
|
8513
|
+
}
|
|
8514
|
+
],
|
|
8515
|
+
"query": [],
|
|
8516
|
+
"body": {
|
|
8517
|
+
"required": true,
|
|
8518
|
+
"fields": [
|
|
8519
|
+
{
|
|
8520
|
+
"name": "title",
|
|
8521
|
+
"type": "string",
|
|
8522
|
+
"required": false,
|
|
8523
|
+
"description": "New merchant-facing title for the content."
|
|
8524
|
+
},
|
|
8525
|
+
{
|
|
8526
|
+
"name": "settings",
|
|
8527
|
+
"type": "object",
|
|
8528
|
+
"required": false,
|
|
8529
|
+
"description": "A deep-partial of the four settings groups; a group left out keeps its current value and access changes take effect at once."
|
|
8530
|
+
}
|
|
8531
|
+
]
|
|
8532
|
+
}
|
|
8533
|
+
},
|
|
8534
|
+
{
|
|
8535
|
+
"resource": "content.contents",
|
|
8536
|
+
"method": "archive",
|
|
8537
|
+
"summary": "Archive a content",
|
|
8538
|
+
"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.",
|
|
8539
|
+
"http": "POST",
|
|
8540
|
+
"path": "/content/v1/contents/{content_id}/archive",
|
|
8541
|
+
"streaming": "no",
|
|
8542
|
+
"pagination": false,
|
|
8543
|
+
"pathParams": [
|
|
8544
|
+
{
|
|
8545
|
+
"name": "content_id",
|
|
8546
|
+
"sdkName": "content_id",
|
|
8547
|
+
"description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
|
|
8548
|
+
}
|
|
8549
|
+
],
|
|
8550
|
+
"query": []
|
|
8551
|
+
},
|
|
8552
|
+
{
|
|
8553
|
+
"resource": "content.contents",
|
|
8554
|
+
"method": "publish",
|
|
8555
|
+
"summary": "Publish a content",
|
|
8556
|
+
"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.",
|
|
8557
|
+
"http": "POST",
|
|
8558
|
+
"path": "/content/v1/contents/{content_id}/publish",
|
|
8559
|
+
"streaming": "no",
|
|
8560
|
+
"pagination": false,
|
|
8561
|
+
"pathParams": [
|
|
8562
|
+
{
|
|
8563
|
+
"name": "content_id",
|
|
8564
|
+
"sdkName": "content_id",
|
|
8565
|
+
"description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
|
|
8566
|
+
}
|
|
8567
|
+
],
|
|
8568
|
+
"query": [],
|
|
8569
|
+
"body": {
|
|
8570
|
+
"required": false,
|
|
8571
|
+
"fields": [
|
|
8572
|
+
{
|
|
8573
|
+
"name": "version",
|
|
8574
|
+
"type": "integer",
|
|
8575
|
+
"required": false,
|
|
8576
|
+
"description": "Existing version number to make live, from the versions list; omit it to publish the latest version."
|
|
8577
|
+
}
|
|
8578
|
+
]
|
|
8579
|
+
}
|
|
8580
|
+
},
|
|
8581
|
+
{
|
|
8582
|
+
"resource": "content.contents",
|
|
8583
|
+
"method": "unpublish",
|
|
8584
|
+
"summary": "Unpublish a content",
|
|
8585
|
+
"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.",
|
|
8586
|
+
"http": "POST",
|
|
8587
|
+
"path": "/content/v1/contents/{content_id}/unpublish",
|
|
8588
|
+
"streaming": "no",
|
|
8589
|
+
"pagination": false,
|
|
8590
|
+
"pathParams": [
|
|
8591
|
+
{
|
|
8592
|
+
"name": "content_id",
|
|
8593
|
+
"sdkName": "content_id",
|
|
8594
|
+
"description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
|
|
8595
|
+
}
|
|
8596
|
+
],
|
|
8597
|
+
"query": []
|
|
8598
|
+
},
|
|
8599
|
+
{
|
|
8600
|
+
"resource": "content.versions",
|
|
8601
|
+
"method": "list",
|
|
8602
|
+
"summary": "List versions",
|
|
8603
|
+
"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.",
|
|
8604
|
+
"http": "GET",
|
|
8605
|
+
"path": "/content/v1/contents/{content_id}/versions",
|
|
8606
|
+
"streaming": "no",
|
|
8607
|
+
"pagination": false,
|
|
8608
|
+
"pathParams": [
|
|
8609
|
+
{
|
|
8610
|
+
"name": "content_id",
|
|
8611
|
+
"sdkName": "content_id",
|
|
8612
|
+
"description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
|
|
8613
|
+
}
|
|
8614
|
+
],
|
|
8615
|
+
"query": [
|
|
8616
|
+
{
|
|
8617
|
+
"name": "page_size",
|
|
8618
|
+
"type": "integer",
|
|
8619
|
+
"required": false,
|
|
8620
|
+
"description": "Maximum versions in one page, from 1 to 100; defaults to 50."
|
|
8621
|
+
},
|
|
8622
|
+
{
|
|
8623
|
+
"name": "page_token",
|
|
8624
|
+
"type": "string",
|
|
8625
|
+
"required": false,
|
|
8626
|
+
"description": "next_page from the preceding versions response; omit for the first page."
|
|
8627
|
+
}
|
|
8628
|
+
]
|
|
8629
|
+
},
|
|
8630
|
+
{
|
|
8631
|
+
"resource": "content.versions",
|
|
8632
|
+
"method": "retrieve",
|
|
8633
|
+
"summary": "Get a version",
|
|
8634
|
+
"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.",
|
|
8635
|
+
"http": "GET",
|
|
8636
|
+
"path": "/content/v1/contents/{content_id}/versions/{version}",
|
|
8637
|
+
"streaming": "no",
|
|
8638
|
+
"pagination": false,
|
|
8639
|
+
"pathParams": [
|
|
8640
|
+
{
|
|
8641
|
+
"name": "content_id",
|
|
8642
|
+
"sdkName": "content_id",
|
|
8643
|
+
"description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
|
|
8644
|
+
},
|
|
8645
|
+
{
|
|
8646
|
+
"name": "version",
|
|
8647
|
+
"sdkName": "version",
|
|
8648
|
+
"type": "integer",
|
|
8649
|
+
"description": "Positive version number from the versions list, for example 3; never zero and never the literal latest."
|
|
8650
|
+
}
|
|
8651
|
+
],
|
|
8652
|
+
"query": []
|
|
8653
|
+
},
|
|
8654
|
+
{
|
|
8655
|
+
"resource": "content.playbackSessions",
|
|
8656
|
+
"method": "create",
|
|
8657
|
+
"summary": "Open a playback session",
|
|
8658
|
+
"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.",
|
|
8659
|
+
"http": "POST",
|
|
8660
|
+
"path": "/content/v1/playback/sessions",
|
|
8661
|
+
"streaming": "no",
|
|
8662
|
+
"pagination": false,
|
|
8663
|
+
"pathParams": [],
|
|
8664
|
+
"query": [],
|
|
8665
|
+
"body": {
|
|
8666
|
+
"required": true,
|
|
8667
|
+
"fields": [
|
|
8668
|
+
{
|
|
8669
|
+
"name": "content_id",
|
|
8670
|
+
"type": "string",
|
|
8671
|
+
"required": true,
|
|
8672
|
+
"description": "Published content to play, from praxis.content.contents.create or praxis.content.contents.list."
|
|
8673
|
+
}
|
|
8674
|
+
]
|
|
8675
|
+
}
|
|
8676
|
+
},
|
|
8336
8677
|
{
|
|
8337
8678
|
"resource": "crm.changes",
|
|
8338
8679
|
"method": "revert",
|
|
@@ -9842,128 +10183,558 @@ export const operations = [
|
|
|
9842
10183
|
"description": "Whether or not the property can be used in a CRM form."
|
|
9843
10184
|
},
|
|
9844
10185
|
{
|
|
9845
|
-
"name": "groupName",
|
|
10186
|
+
"name": "groupName",
|
|
10187
|
+
"type": "string",
|
|
10188
|
+
"required": false,
|
|
10189
|
+
"description": "The name of the property group the property belongs to."
|
|
10190
|
+
},
|
|
10191
|
+
{
|
|
10192
|
+
"name": "hidden",
|
|
10193
|
+
"type": "boolean",
|
|
10194
|
+
"required": false,
|
|
10195
|
+
"description": "If true, the property won't be visible and can't be used in CRM."
|
|
10196
|
+
},
|
|
10197
|
+
{
|
|
10198
|
+
"name": "label",
|
|
10199
|
+
"type": "string",
|
|
10200
|
+
"required": false,
|
|
10201
|
+
"description": "A human-readable property label that will be shown in CRM."
|
|
10202
|
+
},
|
|
10203
|
+
{
|
|
10204
|
+
"name": "numberDisplayHint",
|
|
10205
|
+
"type": "string",
|
|
10206
|
+
"enum": [
|
|
10207
|
+
"currency",
|
|
10208
|
+
"duration",
|
|
10209
|
+
"formatted",
|
|
10210
|
+
"percentage",
|
|
10211
|
+
"probability",
|
|
10212
|
+
"unformatted"
|
|
10213
|
+
],
|
|
10214
|
+
"required": false,
|
|
10215
|
+
"description": "A string providing a hint for displaying number values. Valid values include 'unformatted', 'formatted', 'currency', 'percentage', 'duration', and 'probability'."
|
|
10216
|
+
},
|
|
10217
|
+
{
|
|
10218
|
+
"name": "options",
|
|
10219
|
+
"type": "array",
|
|
10220
|
+
"itemType": "object",
|
|
10221
|
+
"required": false,
|
|
10222
|
+
"description": "A list of valid options for the property."
|
|
10223
|
+
},
|
|
10224
|
+
{
|
|
10225
|
+
"name": "showCurrencySymbol",
|
|
10226
|
+
"type": "boolean",
|
|
10227
|
+
"required": false,
|
|
10228
|
+
"description": "A boolean indicating whether to display a currency symbol for number fields formatted as currency."
|
|
10229
|
+
},
|
|
10230
|
+
{
|
|
10231
|
+
"name": "textDisplayHint",
|
|
10232
|
+
"type": "string",
|
|
10233
|
+
"enum": [
|
|
10234
|
+
"domain_name",
|
|
10235
|
+
"email",
|
|
10236
|
+
"ip_address",
|
|
10237
|
+
"multi_line",
|
|
10238
|
+
"phone_number",
|
|
10239
|
+
"physical_address",
|
|
10240
|
+
"postal_code",
|
|
10241
|
+
"unformatted_single_line"
|
|
10242
|
+
],
|
|
10243
|
+
"required": false,
|
|
10244
|
+
"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'."
|
|
10245
|
+
},
|
|
10246
|
+
{
|
|
10247
|
+
"name": "type",
|
|
10248
|
+
"type": "string",
|
|
10249
|
+
"enum": [
|
|
10250
|
+
"bool",
|
|
10251
|
+
"date",
|
|
10252
|
+
"datetime",
|
|
10253
|
+
"enumeration",
|
|
10254
|
+
"number",
|
|
10255
|
+
"phone_number",
|
|
10256
|
+
"string"
|
|
10257
|
+
],
|
|
10258
|
+
"required": false,
|
|
10259
|
+
"description": "The data type of the property."
|
|
10260
|
+
}
|
|
10261
|
+
]
|
|
10262
|
+
}
|
|
10263
|
+
},
|
|
10264
|
+
{
|
|
10265
|
+
"resource": "crm.schemas",
|
|
10266
|
+
"method": "list",
|
|
10267
|
+
"summary": "List object schemas",
|
|
10268
|
+
"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.",
|
|
10269
|
+
"http": "GET",
|
|
10270
|
+
"path": "/crm/v1/schemas",
|
|
10271
|
+
"streaming": "no",
|
|
10272
|
+
"pagination": false,
|
|
10273
|
+
"pathParams": [],
|
|
10274
|
+
"query": [
|
|
10275
|
+
{
|
|
10276
|
+
"name": "archived",
|
|
10277
|
+
"type": "boolean",
|
|
10278
|
+
"required": false,
|
|
10279
|
+
"description": "Whether to return only results that have been archived."
|
|
10280
|
+
},
|
|
10281
|
+
{
|
|
10282
|
+
"name": "includeAssociationDefinitions",
|
|
10283
|
+
"type": "boolean",
|
|
10284
|
+
"required": false,
|
|
10285
|
+
"description": "Whether to include association definitions in the response. Defaults to true."
|
|
10286
|
+
},
|
|
10287
|
+
{
|
|
10288
|
+
"name": "includeAuditMetadata",
|
|
10289
|
+
"type": "boolean",
|
|
10290
|
+
"required": false,
|
|
10291
|
+
"description": "Whether to include audit metadata in the response. Defaults to true."
|
|
10292
|
+
},
|
|
10293
|
+
{
|
|
10294
|
+
"name": "includePropertyDefinitions",
|
|
10295
|
+
"type": "boolean",
|
|
10296
|
+
"required": false,
|
|
10297
|
+
"description": "Whether to include property definitions in the response. Defaults to true."
|
|
10298
|
+
}
|
|
10299
|
+
]
|
|
10300
|
+
},
|
|
10301
|
+
{
|
|
10302
|
+
"resource": "crm.schemas",
|
|
10303
|
+
"method": "create",
|
|
10304
|
+
"summary": "Create object schema",
|
|
10305
|
+
"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.",
|
|
10306
|
+
"http": "POST",
|
|
10307
|
+
"path": "/crm/v1/schemas",
|
|
10308
|
+
"streaming": "no",
|
|
10309
|
+
"pagination": false,
|
|
10310
|
+
"pathParams": [],
|
|
10311
|
+
"query": [],
|
|
10312
|
+
"body": {
|
|
10313
|
+
"required": true,
|
|
10314
|
+
"fields": [
|
|
10315
|
+
{
|
|
10316
|
+
"name": "allowsSensitiveProperties",
|
|
10317
|
+
"type": "boolean",
|
|
10318
|
+
"required": true,
|
|
10319
|
+
"description": "Determines if the object type can include properties that are marked as sensitive."
|
|
10320
|
+
},
|
|
10321
|
+
{
|
|
10322
|
+
"name": "associatedObjects",
|
|
10323
|
+
"type": "array",
|
|
10324
|
+
"itemType": "string",
|
|
10325
|
+
"required": true,
|
|
10326
|
+
"description": "Associations defined for this object type."
|
|
10327
|
+
},
|
|
10328
|
+
{
|
|
10329
|
+
"name": "description",
|
|
10330
|
+
"type": "string",
|
|
10331
|
+
"required": false,
|
|
10332
|
+
"description": "A brief explanation of the object type."
|
|
10333
|
+
},
|
|
10334
|
+
{
|
|
10335
|
+
"name": "labels",
|
|
10336
|
+
"type": "object",
|
|
10337
|
+
"required": true
|
|
10338
|
+
},
|
|
10339
|
+
{
|
|
10340
|
+
"name": "name",
|
|
10341
|
+
"type": "string",
|
|
10342
|
+
"required": true,
|
|
10343
|
+
"description": "A unique name for this object. For internal use only."
|
|
10344
|
+
},
|
|
10345
|
+
{
|
|
10346
|
+
"name": "primaryDisplayProperty",
|
|
10347
|
+
"type": "string",
|
|
10348
|
+
"required": false,
|
|
10349
|
+
"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."
|
|
10350
|
+
},
|
|
10351
|
+
{
|
|
10352
|
+
"name": "properties",
|
|
10353
|
+
"type": "array",
|
|
10354
|
+
"itemType": "object",
|
|
10355
|
+
"required": true,
|
|
10356
|
+
"description": "Properties defined for this object type."
|
|
10357
|
+
},
|
|
10358
|
+
{
|
|
10359
|
+
"name": "requiredProperties",
|
|
10360
|
+
"type": "array",
|
|
10361
|
+
"itemType": "string",
|
|
10362
|
+
"required": true,
|
|
10363
|
+
"description": "The names of properties that should be **required** when creating an object of this type."
|
|
10364
|
+
},
|
|
10365
|
+
{
|
|
10366
|
+
"name": "searchableProperties",
|
|
10367
|
+
"type": "array",
|
|
10368
|
+
"itemType": "string",
|
|
10369
|
+
"required": true,
|
|
10370
|
+
"description": "Names of properties that will be indexed for this object type in by CRM's product search."
|
|
10371
|
+
},
|
|
10372
|
+
{
|
|
10373
|
+
"name": "secondaryDisplayProperties",
|
|
10374
|
+
"type": "array",
|
|
10375
|
+
"itemType": "string",
|
|
10376
|
+
"required": true,
|
|
10377
|
+
"description": "The names of secondary properties for this object. These will be displayed as secondary on the CRM record page for this object type."
|
|
10378
|
+
},
|
|
10379
|
+
{
|
|
10380
|
+
"name": "shouldCreateSameObjectAssociation",
|
|
10381
|
+
"type": "boolean",
|
|
10382
|
+
"required": true,
|
|
10383
|
+
"description": "A boolean indicating whether associations should be created between objects of the same type."
|
|
10384
|
+
}
|
|
10385
|
+
]
|
|
10386
|
+
}
|
|
10387
|
+
},
|
|
10388
|
+
{
|
|
10389
|
+
"resource": "customer.accessTokens",
|
|
10390
|
+
"method": "create",
|
|
10391
|
+
"summary": "Exchange a grant code or publishable key",
|
|
10392
|
+
"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.",
|
|
10393
|
+
"http": "POST",
|
|
10394
|
+
"path": "/customer/v1/access_tokens",
|
|
10395
|
+
"streaming": "no",
|
|
10396
|
+
"pagination": false,
|
|
10397
|
+
"pathParams": [],
|
|
10398
|
+
"query": [],
|
|
10399
|
+
"body": {
|
|
10400
|
+
"required": true,
|
|
10401
|
+
"fields": [
|
|
10402
|
+
{
|
|
10403
|
+
"name": "grant_code",
|
|
10404
|
+
"type": "string",
|
|
10405
|
+
"required": false,
|
|
10406
|
+
"description": "A grant code (cgc_…) from grant_codes, for an end user you signed in from your backend; it works once."
|
|
10407
|
+
},
|
|
10408
|
+
{
|
|
10409
|
+
"name": "publishable_key",
|
|
10410
|
+
"type": "string",
|
|
10411
|
+
"required": false,
|
|
10412
|
+
"description": "A publishable key (pk_…) for an anonymous visitor; the exchange creates a new anonymous end user bound to the request Origin."
|
|
10413
|
+
}
|
|
10414
|
+
]
|
|
10415
|
+
}
|
|
10416
|
+
},
|
|
10417
|
+
{
|
|
10418
|
+
"resource": "customer.accessTokens",
|
|
10419
|
+
"method": "revoke",
|
|
10420
|
+
"summary": "Sign out the current token",
|
|
10421
|
+
"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.",
|
|
10422
|
+
"http": "DELETE",
|
|
10423
|
+
"path": "/customer/v1/access_tokens/current",
|
|
10424
|
+
"streaming": "no",
|
|
10425
|
+
"pagination": false,
|
|
10426
|
+
"pathParams": [],
|
|
10427
|
+
"query": []
|
|
10428
|
+
},
|
|
10429
|
+
{
|
|
10430
|
+
"resource": "customer.accessTokens",
|
|
10431
|
+
"method": "renew",
|
|
10432
|
+
"summary": "Renew an access token",
|
|
10433
|
+
"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.",
|
|
10434
|
+
"http": "POST",
|
|
10435
|
+
"path": "/customer/v1/access_tokens/renew",
|
|
10436
|
+
"streaming": "no",
|
|
10437
|
+
"pagination": false,
|
|
10438
|
+
"pathParams": [],
|
|
10439
|
+
"query": []
|
|
10440
|
+
},
|
|
10441
|
+
{
|
|
10442
|
+
"resource": "customer.customers",
|
|
10443
|
+
"method": "list",
|
|
10444
|
+
"summary": "List end users",
|
|
10445
|
+
"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.",
|
|
10446
|
+
"http": "GET",
|
|
10447
|
+
"path": "/customer/v1/customers",
|
|
10448
|
+
"streaming": "no",
|
|
10449
|
+
"pagination": false,
|
|
10450
|
+
"pathParams": [],
|
|
10451
|
+
"query": [
|
|
10452
|
+
{
|
|
10453
|
+
"name": "page_size",
|
|
10454
|
+
"type": "integer",
|
|
10455
|
+
"required": false,
|
|
10456
|
+
"description": "Maximum end users in one page, from 1 to 100; defaults to 50."
|
|
10457
|
+
},
|
|
10458
|
+
{
|
|
10459
|
+
"name": "page_token",
|
|
10460
|
+
"type": "string",
|
|
10461
|
+
"required": false,
|
|
10462
|
+
"description": "next_page from the preceding list response with the same filters; omit for the first page."
|
|
10463
|
+
},
|
|
10464
|
+
{
|
|
10465
|
+
"name": "type",
|
|
10466
|
+
"type": "string",
|
|
10467
|
+
"enum": [
|
|
10468
|
+
"identified",
|
|
10469
|
+
"anonymous"
|
|
10470
|
+
],
|
|
10471
|
+
"required": false,
|
|
10472
|
+
"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."
|
|
10473
|
+
},
|
|
10474
|
+
{
|
|
10475
|
+
"name": "blocked",
|
|
10476
|
+
"type": "boolean",
|
|
10477
|
+
"required": false,
|
|
10478
|
+
"description": "true for blocked end users only, false for end users who are not blocked; omit for both."
|
|
10479
|
+
},
|
|
10480
|
+
{
|
|
10481
|
+
"name": "resource",
|
|
10482
|
+
"type": "string",
|
|
10483
|
+
"required": false,
|
|
10484
|
+
"description": "Only end users of one product, as <type>:<id>, for example content:cnt_0123456789abcdef, agent:agent_123 or application:app_456."
|
|
10485
|
+
},
|
|
10486
|
+
{
|
|
10487
|
+
"name": "q",
|
|
10488
|
+
"type": "string",
|
|
10489
|
+
"required": false,
|
|
10490
|
+
"description": "Only end users whose customer id starts with this prefix, for example cus_; omit for every id."
|
|
10491
|
+
}
|
|
10492
|
+
]
|
|
10493
|
+
},
|
|
10494
|
+
{
|
|
10495
|
+
"resource": "customer.customers",
|
|
10496
|
+
"method": "delete",
|
|
10497
|
+
"summary": "Delete an end user",
|
|
10498
|
+
"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.",
|
|
10499
|
+
"http": "DELETE",
|
|
10500
|
+
"path": "/customer/v1/customers/{customer_id}",
|
|
10501
|
+
"streaming": "no",
|
|
10502
|
+
"pagination": false,
|
|
10503
|
+
"pathParams": [
|
|
10504
|
+
{
|
|
10505
|
+
"name": "customer_id",
|
|
10506
|
+
"sdkName": "customer_id",
|
|
10507
|
+
"description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
|
|
10508
|
+
}
|
|
10509
|
+
],
|
|
10510
|
+
"query": [
|
|
10511
|
+
{
|
|
10512
|
+
"name": "confirm",
|
|
10513
|
+
"type": "string",
|
|
10514
|
+
"required": true,
|
|
10515
|
+
"description": "The customer_id being deleted, repeated exactly; the service compares it with the path and refuses a mismatch with 400."
|
|
10516
|
+
}
|
|
10517
|
+
]
|
|
10518
|
+
},
|
|
10519
|
+
{
|
|
10520
|
+
"resource": "customer.customers",
|
|
10521
|
+
"method": "retrieve",
|
|
10522
|
+
"summary": "Get an end user",
|
|
10523
|
+
"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.",
|
|
10524
|
+
"http": "GET",
|
|
10525
|
+
"path": "/customer/v1/customers/{customer_id}",
|
|
10526
|
+
"streaming": "no",
|
|
10527
|
+
"pagination": false,
|
|
10528
|
+
"pathParams": [
|
|
10529
|
+
{
|
|
10530
|
+
"name": "customer_id",
|
|
10531
|
+
"sdkName": "customer_id",
|
|
10532
|
+
"description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
|
|
10533
|
+
}
|
|
10534
|
+
],
|
|
10535
|
+
"query": [
|
|
10536
|
+
{
|
|
10537
|
+
"name": "expand",
|
|
10538
|
+
"type": "string",
|
|
10539
|
+
"required": false,
|
|
10540
|
+
"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."
|
|
10541
|
+
}
|
|
10542
|
+
]
|
|
10543
|
+
},
|
|
10544
|
+
{
|
|
10545
|
+
"resource": "customer.customers",
|
|
10546
|
+
"method": "block",
|
|
10547
|
+
"summary": "Block an end user",
|
|
10548
|
+
"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.",
|
|
10549
|
+
"http": "POST",
|
|
10550
|
+
"path": "/customer/v1/customers/{customer_id}/block",
|
|
10551
|
+
"streaming": "no",
|
|
10552
|
+
"pagination": false,
|
|
10553
|
+
"pathParams": [
|
|
10554
|
+
{
|
|
10555
|
+
"name": "customer_id",
|
|
10556
|
+
"sdkName": "customer_id",
|
|
10557
|
+
"description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
|
|
10558
|
+
}
|
|
10559
|
+
],
|
|
10560
|
+
"query": [],
|
|
10561
|
+
"body": {
|
|
10562
|
+
"required": false,
|
|
10563
|
+
"fields": [
|
|
10564
|
+
{
|
|
10565
|
+
"name": "reason",
|
|
10566
|
+
"type": "string",
|
|
10567
|
+
"required": false,
|
|
10568
|
+
"description": "Why the end user is blocked, recorded with the block fact; omit for none."
|
|
10569
|
+
}
|
|
10570
|
+
]
|
|
10571
|
+
}
|
|
10572
|
+
},
|
|
10573
|
+
{
|
|
10574
|
+
"resource": "customer.customers",
|
|
10575
|
+
"method": "revokeTokens",
|
|
10576
|
+
"summary": "Revoke every token of an end user",
|
|
10577
|
+
"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.",
|
|
10578
|
+
"http": "POST",
|
|
10579
|
+
"path": "/customer/v1/customers/{customer_id}/revoke_tokens",
|
|
10580
|
+
"streaming": "no",
|
|
10581
|
+
"pagination": false,
|
|
10582
|
+
"pathParams": [
|
|
10583
|
+
{
|
|
10584
|
+
"name": "customer_id",
|
|
10585
|
+
"sdkName": "customer_id",
|
|
10586
|
+
"description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
|
|
10587
|
+
}
|
|
10588
|
+
],
|
|
10589
|
+
"query": []
|
|
10590
|
+
},
|
|
10591
|
+
{
|
|
10592
|
+
"resource": "customer.customers",
|
|
10593
|
+
"method": "unblock",
|
|
10594
|
+
"summary": "Unblock an end user",
|
|
10595
|
+
"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.",
|
|
10596
|
+
"http": "POST",
|
|
10597
|
+
"path": "/customer/v1/customers/{customer_id}/unblock",
|
|
10598
|
+
"streaming": "no",
|
|
10599
|
+
"pagination": false,
|
|
10600
|
+
"pathParams": [
|
|
10601
|
+
{
|
|
10602
|
+
"name": "customer_id",
|
|
10603
|
+
"sdkName": "customer_id",
|
|
10604
|
+
"description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
|
|
10605
|
+
}
|
|
10606
|
+
],
|
|
10607
|
+
"query": []
|
|
10608
|
+
},
|
|
10609
|
+
{
|
|
10610
|
+
"resource": "customer.usage",
|
|
10611
|
+
"method": "retrieve",
|
|
10612
|
+
"summary": "Read end-user usage",
|
|
10613
|
+
"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.",
|
|
10614
|
+
"http": "GET",
|
|
10615
|
+
"path": "/customer/v1/customers/{customer_id}/usage",
|
|
10616
|
+
"streaming": "no",
|
|
10617
|
+
"pagination": false,
|
|
10618
|
+
"pathParams": [
|
|
10619
|
+
{
|
|
10620
|
+
"name": "customer_id",
|
|
10621
|
+
"sdkName": "customer_id",
|
|
10622
|
+
"description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
|
|
10623
|
+
}
|
|
10624
|
+
],
|
|
10625
|
+
"query": [
|
|
10626
|
+
{
|
|
10627
|
+
"name": "from",
|
|
10628
|
+
"type": "string",
|
|
10629
|
+
"required": false,
|
|
10630
|
+
"description": "Start of the window as an RFC 3339 time, inclusive; omit for the beginning of the record."
|
|
10631
|
+
},
|
|
10632
|
+
{
|
|
10633
|
+
"name": "to",
|
|
10634
|
+
"type": "string",
|
|
10635
|
+
"required": false,
|
|
10636
|
+
"description": "End of the window as an RFC 3339 time, exclusive; omit for now."
|
|
10637
|
+
}
|
|
10638
|
+
]
|
|
10639
|
+
},
|
|
10640
|
+
{
|
|
10641
|
+
"resource": "customer.grantCodes",
|
|
10642
|
+
"method": "create",
|
|
10643
|
+
"summary": "Create a grant code",
|
|
10644
|
+
"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.",
|
|
10645
|
+
"http": "POST",
|
|
10646
|
+
"path": "/customer/v1/grant_codes",
|
|
10647
|
+
"streaming": "no",
|
|
10648
|
+
"pagination": false,
|
|
10649
|
+
"pathParams": [],
|
|
10650
|
+
"query": [],
|
|
10651
|
+
"body": {
|
|
10652
|
+
"required": true,
|
|
10653
|
+
"fields": [
|
|
10654
|
+
{
|
|
10655
|
+
"name": "customer_id",
|
|
9846
10656
|
"type": "string",
|
|
9847
|
-
"required":
|
|
9848
|
-
"description": "
|
|
10657
|
+
"required": true,
|
|
10658
|
+
"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."
|
|
9849
10659
|
},
|
|
9850
10660
|
{
|
|
9851
|
-
"name": "
|
|
9852
|
-
"type": "
|
|
10661
|
+
"name": "metadata",
|
|
10662
|
+
"type": "object",
|
|
9853
10663
|
"required": false,
|
|
9854
|
-
"description": "
|
|
10664
|
+
"description": "Product metadata to record with the end user, as string key to string value; it is merged over what is already stored."
|
|
9855
10665
|
},
|
|
9856
10666
|
{
|
|
9857
|
-
"name": "
|
|
9858
|
-
"type": "
|
|
9859
|
-
"
|
|
9860
|
-
"
|
|
10667
|
+
"name": "resources",
|
|
10668
|
+
"type": "array",
|
|
10669
|
+
"itemType": "object",
|
|
10670
|
+
"required": true,
|
|
10671
|
+
"description": "Resource scopes the sign-in may reach, at least one, each a scope string or an object with scope and params."
|
|
9861
10672
|
},
|
|
9862
10673
|
{
|
|
9863
|
-
"name": "
|
|
10674
|
+
"name": "origin",
|
|
9864
10675
|
"type": "string",
|
|
9865
|
-
"enum": [
|
|
9866
|
-
"currency",
|
|
9867
|
-
"duration",
|
|
9868
|
-
"formatted",
|
|
9869
|
-
"percentage",
|
|
9870
|
-
"probability",
|
|
9871
|
-
"unformatted"
|
|
9872
|
-
],
|
|
9873
10676
|
"required": false,
|
|
9874
|
-
"description": "
|
|
10677
|
+
"description": "Page origin this sign-in is bound to, for example https://school.example.com; a later exchange with another Origin is refused."
|
|
9875
10678
|
},
|
|
9876
10679
|
{
|
|
9877
|
-
"name": "
|
|
9878
|
-
"type": "
|
|
9879
|
-
"itemType": "object",
|
|
10680
|
+
"name": "expires_in",
|
|
10681
|
+
"type": "integer",
|
|
9880
10682
|
"required": false,
|
|
9881
|
-
"description": "
|
|
10683
|
+
"description": "Lifetime of the code in seconds; omit for the fifteen-minute default, and send a smaller number to shorten it."
|
|
9882
10684
|
},
|
|
9883
10685
|
{
|
|
9884
|
-
"name": "
|
|
9885
|
-
"type": "
|
|
10686
|
+
"name": "max_session_seconds",
|
|
10687
|
+
"type": "integer",
|
|
9886
10688
|
"required": false,
|
|
9887
|
-
"description": "
|
|
10689
|
+
"description": "Lifetime of the sign-in the code starts, in seconds; omit for the seven-day default."
|
|
9888
10690
|
},
|
|
9889
10691
|
{
|
|
9890
|
-
"name": "
|
|
10692
|
+
"name": "merge_customer_id",
|
|
9891
10693
|
"type": "string",
|
|
9892
|
-
"enum": [
|
|
9893
|
-
"domain_name",
|
|
9894
|
-
"email",
|
|
9895
|
-
"ip_address",
|
|
9896
|
-
"multi_line",
|
|
9897
|
-
"phone_number",
|
|
9898
|
-
"physical_address",
|
|
9899
|
-
"postal_code",
|
|
9900
|
-
"unformatted_single_line"
|
|
9901
|
-
],
|
|
9902
10694
|
"required": false,
|
|
9903
|
-
"description": "
|
|
10695
|
+
"description": "An existing anonymous end user (anon_…) whose record joins this person when the code is exchanged."
|
|
9904
10696
|
},
|
|
9905
10697
|
{
|
|
9906
|
-
"name": "
|
|
10698
|
+
"name": "anonymous_access_token",
|
|
9907
10699
|
"type": "string",
|
|
9908
|
-
"enum": [
|
|
9909
|
-
"bool",
|
|
9910
|
-
"date",
|
|
9911
|
-
"datetime",
|
|
9912
|
-
"enumeration",
|
|
9913
|
-
"number",
|
|
9914
|
-
"phone_number",
|
|
9915
|
-
"string"
|
|
9916
|
-
],
|
|
9917
10700
|
"required": false,
|
|
9918
|
-
"description": "The
|
|
10701
|
+
"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."
|
|
9919
10702
|
}
|
|
9920
10703
|
]
|
|
9921
10704
|
}
|
|
9922
10705
|
},
|
|
9923
10706
|
{
|
|
9924
|
-
"resource": "
|
|
10707
|
+
"resource": "customer.publishableKeys",
|
|
9925
10708
|
"method": "list",
|
|
9926
|
-
"summary": "List
|
|
9927
|
-
"description": "
|
|
10709
|
+
"summary": "List publishable keys",
|
|
10710
|
+
"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.",
|
|
9928
10711
|
"http": "GET",
|
|
9929
|
-
"path": "/
|
|
10712
|
+
"path": "/customer/v1/publishable_keys",
|
|
9930
10713
|
"streaming": "no",
|
|
9931
10714
|
"pagination": false,
|
|
9932
10715
|
"pathParams": [],
|
|
9933
10716
|
"query": [
|
|
9934
10717
|
{
|
|
9935
|
-
"name": "
|
|
9936
|
-
"type": "
|
|
9937
|
-
"required": false,
|
|
9938
|
-
"description": "Whether to return only results that have been archived."
|
|
9939
|
-
},
|
|
9940
|
-
{
|
|
9941
|
-
"name": "includeAssociationDefinitions",
|
|
9942
|
-
"type": "boolean",
|
|
9943
|
-
"required": false,
|
|
9944
|
-
"description": "Whether to include association definitions in the response. Defaults to true."
|
|
9945
|
-
},
|
|
9946
|
-
{
|
|
9947
|
-
"name": "includeAuditMetadata",
|
|
9948
|
-
"type": "boolean",
|
|
10718
|
+
"name": "page_size",
|
|
10719
|
+
"type": "integer",
|
|
9949
10720
|
"required": false,
|
|
9950
|
-
"description": "
|
|
10721
|
+
"description": "Maximum keys in one page, from 1 to 100; defaults to 50."
|
|
9951
10722
|
},
|
|
9952
10723
|
{
|
|
9953
|
-
"name": "
|
|
9954
|
-
"type": "
|
|
10724
|
+
"name": "page_token",
|
|
10725
|
+
"type": "string",
|
|
9955
10726
|
"required": false,
|
|
9956
|
-
"description": "
|
|
10727
|
+
"description": "next_page from the preceding key list response; omit for the first page."
|
|
9957
10728
|
}
|
|
9958
10729
|
]
|
|
9959
10730
|
},
|
|
9960
10731
|
{
|
|
9961
|
-
"resource": "
|
|
10732
|
+
"resource": "customer.publishableKeys",
|
|
9962
10733
|
"method": "create",
|
|
9963
|
-
"summary": "Create
|
|
9964
|
-
"description": "
|
|
10734
|
+
"summary": "Create a publishable key",
|
|
10735
|
+
"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.",
|
|
9965
10736
|
"http": "POST",
|
|
9966
|
-
"path": "/
|
|
10737
|
+
"path": "/customer/v1/publishable_keys",
|
|
9967
10738
|
"streaming": "no",
|
|
9968
10739
|
"pagination": false,
|
|
9969
10740
|
"pathParams": [],
|
|
@@ -9971,79 +10742,40 @@ export const operations = [
|
|
|
9971
10742
|
"body": {
|
|
9972
10743
|
"required": true,
|
|
9973
10744
|
"fields": [
|
|
9974
|
-
{
|
|
9975
|
-
"name": "allowsSensitiveProperties",
|
|
9976
|
-
"type": "boolean",
|
|
9977
|
-
"required": true,
|
|
9978
|
-
"description": "Determines if the object type can include properties that are marked as sensitive."
|
|
9979
|
-
},
|
|
9980
|
-
{
|
|
9981
|
-
"name": "associatedObjects",
|
|
9982
|
-
"type": "array",
|
|
9983
|
-
"itemType": "string",
|
|
9984
|
-
"required": true,
|
|
9985
|
-
"description": "Associations defined for this object type."
|
|
9986
|
-
},
|
|
9987
|
-
{
|
|
9988
|
-
"name": "description",
|
|
9989
|
-
"type": "string",
|
|
9990
|
-
"required": false,
|
|
9991
|
-
"description": "A brief explanation of the object type."
|
|
9992
|
-
},
|
|
9993
|
-
{
|
|
9994
|
-
"name": "labels",
|
|
9995
|
-
"type": "object",
|
|
9996
|
-
"required": true
|
|
9997
|
-
},
|
|
9998
10745
|
{
|
|
9999
10746
|
"name": "name",
|
|
10000
10747
|
"type": "string",
|
|
10001
10748
|
"required": true,
|
|
10002
|
-
"description": "
|
|
10003
|
-
},
|
|
10004
|
-
{
|
|
10005
|
-
"name": "primaryDisplayProperty",
|
|
10006
|
-
"type": "string",
|
|
10007
|
-
"required": false,
|
|
10008
|
-
"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."
|
|
10749
|
+
"description": "Label for the key, shown in the console and the key list, for example Storefront."
|
|
10009
10750
|
},
|
|
10010
10751
|
{
|
|
10011
|
-
"name": "
|
|
10752
|
+
"name": "resources",
|
|
10012
10753
|
"type": "array",
|
|
10013
10754
|
"itemType": "object",
|
|
10014
10755
|
"required": true,
|
|
10015
|
-
"description": "
|
|
10016
|
-
},
|
|
10017
|
-
{
|
|
10018
|
-
"name": "requiredProperties",
|
|
10019
|
-
"type": "array",
|
|
10020
|
-
"itemType": "string",
|
|
10021
|
-
"required": true,
|
|
10022
|
-
"description": "The names of properties that should be **required** when creating an object of this type."
|
|
10023
|
-
},
|
|
10024
|
-
{
|
|
10025
|
-
"name": "searchableProperties",
|
|
10026
|
-
"type": "array",
|
|
10027
|
-
"itemType": "string",
|
|
10028
|
-
"required": true,
|
|
10029
|
-
"description": "Names of properties that will be indexed for this object type in by CRM's product search."
|
|
10030
|
-
},
|
|
10031
|
-
{
|
|
10032
|
-
"name": "secondaryDisplayProperties",
|
|
10033
|
-
"type": "array",
|
|
10034
|
-
"itemType": "string",
|
|
10035
|
-
"required": true,
|
|
10036
|
-
"description": "The names of secondary properties for this object. These will be displayed as secondary on the CRM record page for this object type."
|
|
10037
|
-
},
|
|
10038
|
-
{
|
|
10039
|
-
"name": "shouldCreateSameObjectAssociation",
|
|
10040
|
-
"type": "boolean",
|
|
10041
|
-
"required": true,
|
|
10042
|
-
"description": "A boolean indicating whether associations should be created between objects of the same type."
|
|
10756
|
+
"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."
|
|
10043
10757
|
}
|
|
10044
10758
|
]
|
|
10045
10759
|
}
|
|
10046
10760
|
},
|
|
10761
|
+
{
|
|
10762
|
+
"resource": "customer.publishableKeys",
|
|
10763
|
+
"method": "delete",
|
|
10764
|
+
"summary": "Delete a publishable key",
|
|
10765
|
+
"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.",
|
|
10766
|
+
"http": "DELETE",
|
|
10767
|
+
"path": "/customer/v1/publishable_keys/{key_id}",
|
|
10768
|
+
"streaming": "no",
|
|
10769
|
+
"pagination": false,
|
|
10770
|
+
"pathParams": [
|
|
10771
|
+
{
|
|
10772
|
+
"name": "key_id",
|
|
10773
|
+
"sdkName": "key_id",
|
|
10774
|
+
"description": "Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value."
|
|
10775
|
+
}
|
|
10776
|
+
],
|
|
10777
|
+
"query": []
|
|
10778
|
+
},
|
|
10047
10779
|
{
|
|
10048
10780
|
"resource": "cut.exports",
|
|
10049
10781
|
"method": "retrieve",
|
|
@@ -10764,7 +11496,7 @@ export const operations = [
|
|
|
10764
11496
|
"resource": "cut.projects",
|
|
10765
11497
|
"method": "execute",
|
|
10766
11498
|
"summary": "Execute editing script",
|
|
10767
|
-
"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",
|
|
11499
|
+
"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",
|
|
10768
11500
|
"http": "POST",
|
|
10769
11501
|
"path": "/cut/v1/projects/{project_id}:execute",
|
|
10770
11502
|
"streaming": "no",
|
|
@@ -11827,7 +12559,7 @@ export const operations = [
|
|
|
11827
12559
|
{
|
|
11828
12560
|
"name": "id",
|
|
11829
12561
|
"sdkName": "id",
|
|
11830
|
-
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
12562
|
+
"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."
|
|
11831
12563
|
}
|
|
11832
12564
|
],
|
|
11833
12565
|
"query": []
|
|
@@ -11845,7 +12577,7 @@ export const operations = [
|
|
|
11845
12577
|
{
|
|
11846
12578
|
"name": "id",
|
|
11847
12579
|
"sdkName": "id",
|
|
11848
|
-
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
12580
|
+
"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."
|
|
11849
12581
|
}
|
|
11850
12582
|
],
|
|
11851
12583
|
"query": [],
|
|
@@ -11861,6 +12593,24 @@ export const operations = [
|
|
|
11861
12593
|
]
|
|
11862
12594
|
}
|
|
11863
12595
|
},
|
|
12596
|
+
{
|
|
12597
|
+
"resource": "devops.changes",
|
|
12598
|
+
"method": "gitCredential",
|
|
12599
|
+
"summary": "Get a change workspace's read-only git credential",
|
|
12600
|
+
"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).",
|
|
12601
|
+
"http": "POST",
|
|
12602
|
+
"path": "/devops/v1/changes/{id}:gitCredential",
|
|
12603
|
+
"streaming": "no",
|
|
12604
|
+
"pagination": false,
|
|
12605
|
+
"pathParams": [
|
|
12606
|
+
{
|
|
12607
|
+
"name": "id",
|
|
12608
|
+
"sdkName": "id",
|
|
12609
|
+
"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."
|
|
12610
|
+
}
|
|
12611
|
+
],
|
|
12612
|
+
"query": []
|
|
12613
|
+
},
|
|
11864
12614
|
{
|
|
11865
12615
|
"resource": "devops.changes",
|
|
11866
12616
|
"method": "markLastSlice",
|
|
@@ -11874,7 +12624,7 @@ export const operations = [
|
|
|
11874
12624
|
{
|
|
11875
12625
|
"name": "id",
|
|
11876
12626
|
"sdkName": "id",
|
|
11877
|
-
"description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer
|
|
12627
|
+
"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."
|
|
11878
12628
|
}
|
|
11879
12629
|
],
|
|
11880
12630
|
"query": [],
|
|
@@ -11890,6 +12640,47 @@ export const operations = [
|
|
|
11890
12640
|
]
|
|
11891
12641
|
}
|
|
11892
12642
|
},
|
|
12643
|
+
{
|
|
12644
|
+
"resource": "devops.changes",
|
|
12645
|
+
"method": "openPullRequest",
|
|
12646
|
+
"summary": "Open a change's pull request",
|
|
12647
|
+
"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.",
|
|
12648
|
+
"http": "POST",
|
|
12649
|
+
"path": "/devops/v1/changes/{id}:openPullRequest",
|
|
12650
|
+
"streaming": "no",
|
|
12651
|
+
"pagination": false,
|
|
12652
|
+
"pathParams": [
|
|
12653
|
+
{
|
|
12654
|
+
"name": "id",
|
|
12655
|
+
"sdkName": "id",
|
|
12656
|
+
"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."
|
|
12657
|
+
}
|
|
12658
|
+
],
|
|
12659
|
+
"query": [],
|
|
12660
|
+
"body": {
|
|
12661
|
+
"required": false,
|
|
12662
|
+
"fields": [
|
|
12663
|
+
{
|
|
12664
|
+
"name": "title",
|
|
12665
|
+
"type": "string",
|
|
12666
|
+
"required": false,
|
|
12667
|
+
"description": "The pull request's title; defaults to the change's title."
|
|
12668
|
+
},
|
|
12669
|
+
{
|
|
12670
|
+
"name": "body",
|
|
12671
|
+
"type": "string",
|
|
12672
|
+
"required": false,
|
|
12673
|
+
"description": "The pull request's description, markdown. Put the change's `praxis` exposure block here, or the merge gate asks for it."
|
|
12674
|
+
},
|
|
12675
|
+
{
|
|
12676
|
+
"name": "draft",
|
|
12677
|
+
"type": "boolean",
|
|
12678
|
+
"required": false,
|
|
12679
|
+
"description": "Open it as a draft. Defaults to false."
|
|
12680
|
+
}
|
|
12681
|
+
]
|
|
12682
|
+
}
|
|
12683
|
+
},
|
|
11893
12684
|
{
|
|
11894
12685
|
"resource": "devops.connections",
|
|
11895
12686
|
"method": "list",
|
|
@@ -13591,6 +14382,37 @@ export const operations = [
|
|
|
13591
14382
|
}
|
|
13592
14383
|
]
|
|
13593
14384
|
},
|
|
14385
|
+
{
|
|
14386
|
+
"resource": "devops.projects",
|
|
14387
|
+
"method": "retrieveTestPlan",
|
|
14388
|
+
"summary": "Retrieve the merge gate's test plan at a commit",
|
|
14389
|
+
"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.",
|
|
14390
|
+
"http": "GET",
|
|
14391
|
+
"path": "/devops/v1/projects/{project}/test-plan",
|
|
14392
|
+
"streaming": "no",
|
|
14393
|
+
"pagination": false,
|
|
14394
|
+
"pathParams": [
|
|
14395
|
+
{
|
|
14396
|
+
"name": "project",
|
|
14397
|
+
"sdkName": "project",
|
|
14398
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
14399
|
+
}
|
|
14400
|
+
],
|
|
14401
|
+
"query": [
|
|
14402
|
+
{
|
|
14403
|
+
"name": "commit",
|
|
14404
|
+
"type": "string",
|
|
14405
|
+
"required": true,
|
|
14406
|
+
"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."
|
|
14407
|
+
},
|
|
14408
|
+
{
|
|
14409
|
+
"name": "base",
|
|
14410
|
+
"type": "string",
|
|
14411
|
+
"required": false,
|
|
14412
|
+
"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."
|
|
14413
|
+
}
|
|
14414
|
+
]
|
|
14415
|
+
},
|
|
13594
14416
|
{
|
|
13595
14417
|
"resource": "devops.projects.testPlans",
|
|
13596
14418
|
"method": "list",
|
|
@@ -16485,7 +17307,7 @@ export const operations = [
|
|
|
16485
17307
|
"name": "understanding",
|
|
16486
17308
|
"type": "object",
|
|
16487
17309
|
"required": false,
|
|
16488
|
-
"description": "Understanding tasks enabled for new assets; omitted
|
|
17310
|
+
"description": "Understanding tasks enabled for new assets; omitted visual and transcript default to true, embedding to false."
|
|
16489
17311
|
}
|
|
16490
17312
|
]
|
|
16491
17313
|
}
|
|
@@ -17067,7 +17889,7 @@ export const operations = [
|
|
|
17067
17889
|
"resource": "media.assets",
|
|
17068
17890
|
"method": "edit",
|
|
17069
17891
|
"summary": "Edit asset",
|
|
17070
|
-
"description": "
|
|
17892
|
+
"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.",
|
|
17071
17893
|
"http": "POST",
|
|
17072
17894
|
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
|
|
17073
17895
|
"streaming": "no",
|
|
@@ -17092,7 +17914,7 @@ export const operations = [
|
|
|
17092
17914
|
"name": "operation",
|
|
17093
17915
|
"type": "object",
|
|
17094
17916
|
"required": true,
|
|
17095
|
-
"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
|
|
17917
|
+
"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."
|
|
17096
17918
|
},
|
|
17097
17919
|
{
|
|
17098
17920
|
"name": "model",
|
|
@@ -17658,7 +18480,7 @@ export const operations = [
|
|
|
17658
18480
|
"resource": "media.images",
|
|
17659
18481
|
"method": "generate",
|
|
17660
18482
|
"summary": "Generate image",
|
|
17661
|
-
"description": "Generate
|
|
18483
|
+
"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.",
|
|
17662
18484
|
"http": "POST",
|
|
17663
18485
|
"path": "/media/v1/libraries/{library_id}/images/generations",
|
|
17664
18486
|
"streaming": "no",
|
|
@@ -17783,7 +18605,7 @@ export const operations = [
|
|
|
17783
18605
|
"resource": "media.libraries.jobs",
|
|
17784
18606
|
"method": "list",
|
|
17785
18607
|
"summary": "List jobs",
|
|
17786
|
-
"description": "List batch and generation jobs
|
|
18608
|
+
"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.",
|
|
17787
18609
|
"http": "GET",
|
|
17788
18610
|
"path": "/media/v1/libraries/{library_id}/jobs",
|
|
17789
18611
|
"streaming": "no",
|
|
@@ -17836,7 +18658,7 @@ export const operations = [
|
|
|
17836
18658
|
"resource": "media.libraries.jobs",
|
|
17837
18659
|
"method": "retrieve",
|
|
17838
18660
|
"summary": "Get job",
|
|
17839
|
-
"description": "Read
|
|
18661
|
+
"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.",
|
|
17840
18662
|
"http": "GET",
|
|
17841
18663
|
"path": "/media/v1/libraries/{library_id}/jobs/{job_id}",
|
|
17842
18664
|
"streaming": "no",
|
|
@@ -17859,7 +18681,7 @@ export const operations = [
|
|
|
17859
18681
|
"resource": "media.libraries.jobs",
|
|
17860
18682
|
"method": "cancel",
|
|
17861
18683
|
"summary": "Cancel job",
|
|
17862
|
-
"description": "
|
|
18684
|
+
"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.",
|
|
17863
18685
|
"http": "POST",
|
|
17864
18686
|
"path": "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel",
|
|
17865
18687
|
"streaming": "no",
|
|
@@ -18377,7 +19199,7 @@ export const operations = [
|
|
|
18377
19199
|
"resource": "media.videos",
|
|
18378
19200
|
"method": "generate",
|
|
18379
19201
|
"summary": "Generate video",
|
|
18380
|
-
"description": "Generate
|
|
19202
|
+
"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.",
|
|
18381
19203
|
"http": "POST",
|
|
18382
19204
|
"path": "/media/v1/libraries/{library_id}/videos/generations",
|
|
18383
19205
|
"streaming": "no",
|
|
@@ -18412,10 +19234,17 @@ export const operations = [
|
|
|
18412
19234
|
"text",
|
|
18413
19235
|
"image",
|
|
18414
19236
|
"first_last",
|
|
18415
|
-
"reference"
|
|
19237
|
+
"reference",
|
|
19238
|
+
"edit"
|
|
18416
19239
|
],
|
|
18417
19240
|
"required": true,
|
|
18418
|
-
"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."
|
|
19241
|
+
"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."
|
|
19242
|
+
},
|
|
19243
|
+
{
|
|
19244
|
+
"name": "source",
|
|
19245
|
+
"type": "string",
|
|
19246
|
+
"required": false,
|
|
19247
|
+
"description": "Asset identifier returned by upload or asset listing; distinct from public_id and content hashes."
|
|
18419
19248
|
},
|
|
18420
19249
|
{
|
|
18421
19250
|
"name": "first_frame",
|
|
@@ -18434,13 +19263,13 @@ export const operations = [
|
|
|
18434
19263
|
"type": "array",
|
|
18435
19264
|
"itemType": "object",
|
|
18436
19265
|
"required": false,
|
|
18437
|
-
"description": "Existing assets the model may use, each
|
|
19266
|
+
"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."
|
|
18438
19267
|
},
|
|
18439
19268
|
{
|
|
18440
19269
|
"name": "duration_seconds",
|
|
18441
19270
|
"type": "integer",
|
|
18442
19271
|
"required": false,
|
|
18443
|
-
"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."
|
|
19272
|
+
"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."
|
|
18444
19273
|
},
|
|
18445
19274
|
{
|
|
18446
19275
|
"name": "resolution",
|
|
@@ -18486,7 +19315,7 @@ export const operations = [
|
|
|
18486
19315
|
"name": "seed",
|
|
18487
19316
|
"type": "integer",
|
|
18488
19317
|
"required": false,
|
|
18489
|
-
"description": "Seed for reproducible sampling; omit it to let the model choose one."
|
|
19318
|
+
"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."
|
|
18490
19319
|
},
|
|
18491
19320
|
{
|
|
18492
19321
|
"name": "model",
|
|
@@ -20776,6 +21605,23 @@ export const operations = [
|
|
|
20776
21605
|
"required": false,
|
|
20777
21606
|
"description": "Several reference images; each entry is a URL or base64 data URL, or an object with `image_url`."
|
|
20778
21607
|
},
|
|
21608
|
+
{
|
|
21609
|
+
"name": "input_videos",
|
|
21610
|
+
"type": "array",
|
|
21611
|
+
"itemType": "object",
|
|
21612
|
+
"required": false,
|
|
21613
|
+
"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."
|
|
21614
|
+
},
|
|
21615
|
+
{
|
|
21616
|
+
"name": "video_task",
|
|
21617
|
+
"type": "string",
|
|
21618
|
+
"enum": [
|
|
21619
|
+
"reference",
|
|
21620
|
+
"edit"
|
|
21621
|
+
],
|
|
21622
|
+
"required": false,
|
|
21623
|
+
"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)."
|
|
21624
|
+
},
|
|
20779
21625
|
{
|
|
20780
21626
|
"name": "frame_images",
|
|
20781
21627
|
"type": "array",
|
|
@@ -23311,7 +24157,7 @@ export const operations = [
|
|
|
23311
24157
|
"resource": "organization.positions.hire",
|
|
23312
24158
|
"method": "create",
|
|
23313
24159
|
"summary": "Hire into a position",
|
|
23314
|
-
"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\"}.",
|
|
24160
|
+
"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\"}.",
|
|
23315
24161
|
"http": "POST",
|
|
23316
24162
|
"path": "/organization/v1/positions/{id}/hire",
|
|
23317
24163
|
"streaming": "no",
|
|
@@ -24201,7 +25047,7 @@ export const operations = [
|
|
|
24201
25047
|
"resource": "sandbox.sandboxes",
|
|
24202
25048
|
"method": "create",
|
|
24203
25049
|
"summary": "Create sandbox (v2)",
|
|
24204
|
-
"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.",
|
|
25050
|
+
"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.",
|
|
24205
25051
|
"http": "POST",
|
|
24206
25052
|
"path": "/sandbox/v1/sandboxes",
|
|
24207
25053
|
"streaming": "no",
|
|
@@ -26230,10 +27076,11 @@ export const operations = [
|
|
|
26230
27076
|
"file",
|
|
26231
27077
|
"artifact",
|
|
26232
27078
|
"canvas",
|
|
26233
|
-
"media_asset"
|
|
27079
|
+
"media_asset",
|
|
27080
|
+
"agent"
|
|
26234
27081
|
],
|
|
26235
27082
|
"required": false,
|
|
26236
|
-
"description": "Only shares of this object type; file, canvas and
|
|
27083
|
+
"description": "Only shares of this object type; file, canvas, media_asset and agent create today."
|
|
26237
27084
|
},
|
|
26238
27085
|
{
|
|
26239
27086
|
"name": "resource_id",
|
|
@@ -26270,7 +27117,7 @@ export const operations = [
|
|
|
26270
27117
|
"resource": "share.permissions",
|
|
26271
27118
|
"method": "create",
|
|
26272
27119
|
"summary": "Create share",
|
|
26273
|
-
"description": "Make one
|
|
27120
|
+
"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.",
|
|
26274
27121
|
"http": "POST",
|
|
26275
27122
|
"path": "/share/v1/permissions",
|
|
26276
27123
|
"streaming": "no",
|
|
@@ -29993,7 +30840,7 @@ export const operations = [
|
|
|
29993
30840
|
"name": "filter",
|
|
29994
30841
|
"type": "string",
|
|
29995
30842
|
"required": false,
|
|
29996
|
-
"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."
|
|
30843
|
+
"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."
|
|
29997
30844
|
}
|
|
29998
30845
|
]
|
|
29999
30846
|
},
|