@deepraxis/sdk 0.1.1-dev.f319013 → 0.1.1-dev.f6d8261

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.
@@ -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, enter_plan_mode, 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\"}]}. 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.",
64
+ "description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. Omit kind to create a service agent (Managed Agents behaviour: a fresh environment per session). Pass kind: \"general\" for an employee-style agent with its own computer, created with it; size and template come from the agent's computers configuration. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 \"model <id> is not in the model catalog\" and an embedding, image or speech model returns 400 \"model <id> cannot run an agent\". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {\"name\":\"helper\",\"model\":{\"id\":\"deepseek-flash\"},\"tools\":[{\"type\":\"agent_toolset_20260401\"}]}. kind defaults to service when it is omitted and no computer_id is given, and to general when computer_id is given; it cannot change after creation. A general or assume agent created without computer_id gets a new computer registered in the same request, named after the agent; a service agent with computer_id returns 400. For kind assume, provide name without model, models, subagent_model, subagents or multiagent; vault_ids are accepted, bindings and environment_id are refused. Drive assume agents over MCP at /agent/v1/agents/{id}/mcp.",
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. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted."
147
+ "description": "Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Omit on create to infer from computer_id (general with a computer, service without). A general or assume agent created without computer_id registers a new computer named after the agent in the same request; a service agent cannot take computer_id. assume rejects model, models, subagent_model, subagents and multiagent. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
148
148
  },
149
149
  {
150
150
  "name": "computer_id",
@@ -209,6 +209,12 @@ export const operations = [
209
209
  "required": false,
210
210
  "description": "Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it."
211
211
  },
212
+ {
213
+ "name": "computers",
214
+ "type": "object",
215
+ "required": false,
216
+ "description": "General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only."
217
+ },
212
218
  {
213
219
  "name": "preset",
214
220
  "type": "string",
@@ -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. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted."
375
+ "description": "Immutable agent kind. general uses a durable computer and acts for its owner; service uses a clean environment per session; assume is driven over MCP with a durable computer and no conversation model. Omit on create to infer from computer_id (general with a computer, service without). A general or assume agent created without computer_id registers a new computer named after the agent in the same request; a service agent cannot take computer_id. assume rejects model, models, subagent_model, subagents and multiagent. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
370
376
  },
371
377
  {
372
378
  "name": "computer_id",
@@ -431,6 +437,12 @@ export const operations = [
431
437
  "required": false,
432
438
  "description": "Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it."
433
439
  },
440
+ {
441
+ "name": "computers",
442
+ "type": "object",
443
+ "required": false,
444
+ "description": "General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only."
445
+ },
434
446
  {
435
447
  "name": "preset",
436
448
  "type": "string",
@@ -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",
@@ -1155,7 +1090,7 @@ export const operations = [
1155
1090
  "resource": "agent.computers",
1156
1091
  "method": "list",
1157
1092
  "summary": "List Computers",
1158
- "description": "List the computers of your organization, archived ones included.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1093
+ "description": "List the computers of your organization, archived ones included.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1159
1094
  "http": "GET",
1160
1095
  "path": "/agent/v1/computers",
1161
1096
  "streaming": "no",
@@ -1180,7 +1115,7 @@ export const operations = [
1180
1115
  "resource": "agent.computers",
1181
1116
  "method": "create",
1182
1117
  "summary": "Create Computer",
1183
- "description": "Create a durable computer: a named machine whose files outlive sessions, for general agents.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1118
+ "description": "Create a durable computer: a named machine whose files outlive sessions, for general agents.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1184
1119
  "http": "POST",
1185
1120
  "path": "/agent/v1/computers",
1186
1121
  "streaming": "no",
@@ -1227,7 +1162,7 @@ export const operations = [
1227
1162
  "resource": "agent.computers",
1228
1163
  "method": "retrieve",
1229
1164
  "summary": "Get Computer",
1230
- "description": "Read one computer's status, storage use and sandbox id.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1165
+ "description": "Read one computer's status, storage use and sandbox id.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1231
1166
  "http": "GET",
1232
1167
  "path": "/agent/v1/computers/{computer_id}",
1233
1168
  "streaming": "no",
@@ -1245,7 +1180,7 @@ export const operations = [
1245
1180
  "resource": "agent.computers",
1246
1181
  "method": "update",
1247
1182
  "summary": "Update Computer",
1248
- "description": "Rename a computer.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1183
+ "description": "Rename a computer.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1249
1184
  "http": "POST",
1250
1185
  "path": "/agent/v1/computers/{computer_id}",
1251
1186
  "streaming": "no",
@@ -1274,7 +1209,7 @@ export const operations = [
1274
1209
  "resource": "agent.computers",
1275
1210
  "method": "archive",
1276
1211
  "summary": "Archive Computer",
1277
- "description": "Archive a computer: its files stay readable but new sessions cannot use it.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1212
+ "description": "Archive a computer: its files stay readable but new sessions cannot use it.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers. A computer an active agent holds is refused with 409 COMPUTER_IN_USE; archive the agent first.",
1278
1213
  "http": "POST",
1279
1214
  "path": "/agent/v1/computers/{computer_id}/archive",
1280
1215
  "streaming": "no",
@@ -1354,7 +1289,7 @@ export const operations = [
1354
1289
  "resource": "agent.computers.files",
1355
1290
  "method": "list",
1356
1291
  "summary": "List Computer Files",
1357
- "description": "List the entries of one directory on a computer.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1292
+ "description": "List the entries of one directory on a computer.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1358
1293
  "http": "GET",
1359
1294
  "path": "/agent/v1/computers/{computer_id}/files",
1360
1295
  "streaming": "no",
@@ -1379,7 +1314,7 @@ export const operations = [
1379
1314
  "resource": "agent.computers.files",
1380
1315
  "method": "retrieveContent",
1381
1316
  "summary": "Get Computer File Content",
1382
- "description": "Download the bytes of one file on a computer, up to 16 MiB, with single-range support.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
1317
+ "description": "Download the bytes of one file on a computer, up to 16 MiB, with single-range support.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1383
1318
  "http": "GET",
1384
1319
  "path": "/agent/v1/computers/{computer_id}/files/content",
1385
1320
  "streaming": "no",
@@ -1425,6 +1360,50 @@ export const operations = [
1425
1360
  }
1426
1361
  ]
1427
1362
  },
1363
+ {
1364
+ "resource": "agent.computers.files",
1365
+ "method": "retrievePreview",
1366
+ "summary": "Preview a computer file",
1367
+ "description": "The preview product of one version of one computer file: an image becomes a 1600 px WebP, an Office document a linearized PDF, text and source the first 64 KiB, and PDF, xlsx, epub, GIF, SVG and unknown types their original bytes. Products live in the File service and are keyed by computer, path, size, mtime, variant and format version. A request that pins `v` answers from that registry without stat'ing or waking the computer; without `v` the file is read and the product generated once. A file over the size threshold, or a deployment without the File service, answers `fallback: \"content\"` so the caller keeps the ordinary content door.",
1368
+ "http": "GET",
1369
+ "path": "/agent/v1/computers/{computer_id}/files/preview",
1370
+ "streaming": "no",
1371
+ "pagination": false,
1372
+ "pathParams": [
1373
+ {
1374
+ "name": "computer_id",
1375
+ "sdkName": "computer_id",
1376
+ "description": "Computer id from computer creation or listing; a computer another tenant owns is not found."
1377
+ }
1378
+ ],
1379
+ "query": [
1380
+ {
1381
+ "name": "path",
1382
+ "type": "string",
1383
+ "required": true,
1384
+ "description": "Absolute path of the file on the computer, or a /workspace/ relative path."
1385
+ },
1386
+ {
1387
+ "name": "v",
1388
+ "type": "string",
1389
+ "required": false,
1390
+ "description": "The file version to answer for: the file listing's version (<size>-<mtimeMs>), or the full product version (<size>-<mtimeMs>-<variant>-fmt<N>) a previous answer returned. A pinned version answers from the product registry without a stat or a wake."
1391
+ },
1392
+ {
1393
+ "name": "variant",
1394
+ "type": "string",
1395
+ "enum": [
1396
+ "auto",
1397
+ "image",
1398
+ "pdf",
1399
+ "text",
1400
+ "original"
1401
+ ],
1402
+ "required": false,
1403
+ "description": "The product to answer; auto picks the kind's own (image, pdf, text or original). A variant the file cannot produce answers 400 PREVIEW_VARIANT_UNAVAILABLE."
1404
+ }
1405
+ ]
1406
+ },
1428
1407
  {
1429
1408
  "resource": "agent.computers.leases",
1430
1409
  "method": "delete",
@@ -1631,7 +1610,7 @@ export const operations = [
1631
1610
  "resource": "agent.deployments",
1632
1611
  "method": "create",
1633
1612
  "summary": "Create deployment",
1634
- "description": "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400.",
1613
+ "description": "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400. Example, a weekly cron deployment on the agent's computer: {\"agent\":\"agent_123\",\"name\":\"weekly report\",\"initial_events\":[{\"type\":\"user.message\",\"content\":[{\"type\":\"text\",\"text\":\"Write the weekly report.\"}]}],\"target\":{\"type\":\"computer\"},\"schedule\":{\"type\":\"cron\",\"expression\":\"0 9 * * 1\",\"timezone\":\"America/Los_Angeles\"}}.",
1635
1614
  "http": "POST",
1636
1615
  "path": "/agent/v1/deployments",
1637
1616
  "streaming": "no",
@@ -2183,7 +2162,7 @@ export const operations = [
2183
2162
  "resource": "agent.sessions",
2184
2163
  "method": "create",
2185
2164
  "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 (light for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. 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.",
2165
+ "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
2166
  "http": "POST",
2188
2167
  "path": "/agent/v1/sessions",
2189
2168
  "streaming": "no",
@@ -2250,6 +2229,16 @@ export const operations = [
2250
2229
  "required": false,
2251
2230
  "description": "Session working directory on any machine. Must be an absolute path within /home/user with no . or .. segments. Repeated and trailing slashes are normalized. Invalid values return 400 invalid_request_error with Invalid cwd."
2252
2231
  },
2232
+ {
2233
+ "name": "workspace",
2234
+ "type": "string",
2235
+ "enum": [
2236
+ "shared",
2237
+ "isolated"
2238
+ ],
2239
+ "required": false,
2240
+ "description": "Praxis extension: where the session's work happens. shared (default) opens it in the project's own folder; isolated asks for a session-owned git worktree when a named project's folder is a git repository, so concurrent desks in one project never touch each other's files. An explicit cwd is always taken as given, and a project that is not a git repository is always shared."
2241
+ },
2253
2242
  {
2254
2243
  "name": "computer_id",
2255
2244
  "type": "string",
@@ -2299,7 +2288,7 @@ export const operations = [
2299
2288
  "resource": "agent.sessions",
2300
2289
  "method": "retrieve",
2301
2290
  "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 a light machine; no environment lookup or provisioning is needed for a codemode calculation.",
2291
+ "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
2292
  "http": "GET",
2304
2293
  "path": "/agent/v1/sessions/{session_id}",
2305
2294
  "streaming": "no",
@@ -2373,6 +2362,38 @@ export const operations = [
2373
2362
  ]
2374
2363
  }
2375
2364
  },
2365
+ {
2366
+ "resource": "agent.sessions.agentVersion",
2367
+ "method": "create",
2368
+ "summary": "Update session agent version",
2369
+ "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.",
2370
+ "http": "POST",
2371
+ "path": "/agent/v1/sessions/{session_id}/agent_version",
2372
+ "streaming": "no",
2373
+ "pagination": false,
2374
+ "pathParams": [
2375
+ {
2376
+ "name": "session_id",
2377
+ "sdkName": "session_id",
2378
+ "description": "Session id from session creation or listing, or the own face's session name for a main session."
2379
+ }
2380
+ ],
2381
+ "query": [],
2382
+ "body": {
2383
+ "required": false,
2384
+ "fields": [
2385
+ {
2386
+ "name": "version",
2387
+ "type": "integer",
2388
+ "required": false,
2389
+ "description": "An existing version of the session's agent, from agents.versions.list. Omit to use the agent's active version."
2390
+ }
2391
+ ],
2392
+ "example": {
2393
+ "version": 5
2394
+ }
2395
+ }
2396
+ },
2376
2397
  {
2377
2398
  "resource": "agent.sessions",
2378
2399
  "method": "archive",
@@ -2776,22 +2797,51 @@ export const operations = [
2776
2797
  }
2777
2798
  },
2778
2799
  {
2779
- "resource": "agent.sessions.requests",
2780
- "method": "list",
2781
- "summary": "List Session Requests (Extension)",
2782
- "description": "List the requests a session is waiting on; an end-customer token reads its own session.\n\nOwn-face extension. When a session stops at session.status_idle with stop_reason requires_action, read what it waits on here instead of replaying events. Returns { data: Request[] } ordered by create_time, an empty array when nothing is pending, not paginated. Each request has id (the pending tool call id), object (request), kind (question for the ask_user_question tool, approval for any other tool that waits for permission), status (pending), tool_name, input (the same input the agent.tool_use event shows), create_time and expire_time. Answer a request as before: send a user.tool_confirmation event for its id. expire_time is set only for a session with no collaboration mode while the requests-v1 release is on (create_time plus 24 hours; an expired request counts as declined), otherwise null. Answered, expired and superseded requests are not listed, and neither are pending custom tool results (user.custom_tool_result). Whoever may read the session may read its requests; a session that is missing or not yours returns 404.",
2783
- "http": "GET",
2784
- "path": "/agent/v1/sessions/{session_id}/requests",
2800
+ "resource": "agent.sessions.name",
2801
+ "method": "create",
2802
+ "summary": "Rename Session (Extension)",
2803
+ "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\"}.",
2804
+ "http": "POST",
2805
+ "path": "/agent/v1/sessions/{session_id}/name",
2785
2806
  "streaming": "no",
2786
2807
  "pagination": false,
2787
2808
  "pathParams": [
2788
2809
  {
2789
2810
  "name": "session_id",
2790
2811
  "sdkName": "session_id",
2791
- "description": "Session id from session creation or listing."
2812
+ "description": "Session id from session creation or listing. The reserved name main is not renameable."
2792
2813
  }
2793
2814
  ],
2794
- "query": []
2815
+ "query": [],
2816
+ "body": {
2817
+ "required": true,
2818
+ "fields": [
2819
+ {
2820
+ "name": "name",
2821
+ "type": "string",
2822
+ "required": true,
2823
+ "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."
2824
+ }
2825
+ ]
2826
+ }
2827
+ },
2828
+ {
2829
+ "resource": "agent.sessions.requests",
2830
+ "method": "list",
2831
+ "summary": "List Session Requests (Extension)",
2832
+ "description": "List the requests a session is waiting on; an end-customer token reads its own session.\n\nOwn-face extension. When a session stops at session.status_idle with stop_reason requires_action, read what it waits on here instead of replaying events. Returns { data: Request[] } ordered by create_time, an empty array when nothing is pending, not paginated. Each request has id (the pending tool call id), object (request), kind (question for the ask_user_question tool, approval for any other tool that waits for permission), status (pending), tool_name, input (the same input the agent.tool_use event shows), create_time and expire_time. Answer a request as before: send a user.tool_confirmation event for its id. expire_time is set only for a session with no collaboration mode while the requests-v1 release is on (create_time plus 24 hours; an expired request counts as declined), otherwise null. Answered, expired and superseded requests are not listed, and neither are pending custom tool results (user.custom_tool_result). Whoever may read the session may read its requests; a session that is missing or not yours returns 404.",
2833
+ "http": "GET",
2834
+ "path": "/agent/v1/sessions/{session_id}/requests",
2835
+ "streaming": "no",
2836
+ "pagination": false,
2837
+ "pathParams": [
2838
+ {
2839
+ "name": "session_id",
2840
+ "sdkName": "session_id",
2841
+ "description": "Session id from session creation or listing."
2842
+ }
2843
+ ],
2844
+ "query": []
2795
2845
  },
2796
2846
  {
2797
2847
  "resource": "agent.sessions.resources",
@@ -3409,7 +3459,7 @@ export const operations = [
3409
3459
  "resource": "agent.toolsets",
3410
3460
  "method": "list",
3411
3461
  "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, enter_plan_mode, 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.",
3462
+ "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
3463
  "http": "GET",
3414
3464
  "path": "/agent/v1/toolsets",
3415
3465
  "streaming": "no",
@@ -3417,6 +3467,65 @@ export const operations = [
3417
3467
  "pathParams": [],
3418
3468
  "query": []
3419
3469
  },
3470
+ {
3471
+ "resource": "agent.uploads",
3472
+ "method": "create",
3473
+ "summary": "Upload a File (Extension)",
3474
+ "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\"}.",
3475
+ "http": "POST",
3476
+ "path": "/agent/v1/uploads",
3477
+ "streaming": "no",
3478
+ "pagination": false,
3479
+ "pathParams": [],
3480
+ "query": [],
3481
+ "body": {
3482
+ "required": true,
3483
+ "fields": [
3484
+ {
3485
+ "name": "filename",
3486
+ "type": "string",
3487
+ "required": true,
3488
+ "description": "The file's name, its extension included; the extension decides which blocked executable and script types are refused. 1 to 255 characters."
3489
+ },
3490
+ {
3491
+ "name": "bytes",
3492
+ "type": "integer",
3493
+ "required": true,
3494
+ "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."
3495
+ },
3496
+ {
3497
+ "name": "content_type",
3498
+ "type": "string",
3499
+ "required": true,
3500
+ "description": "The file's MIME type, such as image/png, stored on the file; not used to refuse the upload. 1 to 255 characters."
3501
+ },
3502
+ {
3503
+ "name": "agent",
3504
+ "type": "string",
3505
+ "required": false,
3506
+ "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."
3507
+ }
3508
+ ]
3509
+ }
3510
+ },
3511
+ {
3512
+ "resource": "agent.uploads.contentUrl",
3513
+ "method": "create",
3514
+ "summary": "Create Upload Content URL (Extension)",
3515
+ "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.",
3516
+ "http": "POST",
3517
+ "path": "/agent/v1/uploads/{file_id}/content_url",
3518
+ "streaming": "no",
3519
+ "pagination": false,
3520
+ "pathParams": [
3521
+ {
3522
+ "name": "file_id",
3523
+ "sdkName": "file_id",
3524
+ "description": "File id (file-… ) the File service returned after the bytes were uploaded; only the caller's own upload is readable."
3525
+ }
3526
+ ],
3527
+ "query": []
3528
+ },
3420
3529
  {
3421
3530
  "resource": "application.assets.upload",
3422
3531
  "method": "create",
@@ -4054,7 +4163,7 @@ export const operations = [
4054
4163
  "resource": "application.workers.versions",
4055
4164
  "method": "create",
4056
4165
  "summary": "Create version",
4057
- "description": "Upload code and bindings as a new version; a version serves nothing until deployed. Set deploy true to create the pending deployment in the same call. Rejected binding types return UNSUPPORTED.",
4166
+ "description": "Upload code and bindings as a new version; a version serves nothing until deployed. Set deploy true to create the pending deployment in the same call. Rejected binding types return UNSUPPORTED. Send an Idempotency-Key to make a create safe to retry: within 24 hours the same key with the same body answers the first version (and its deployment) again instead of creating a second one, and the same key with a different body is refused.",
4058
4167
  "http": "POST",
4059
4168
  "path": "/application/v1/workers/{worker_id}/versions",
4060
4169
  "streaming": "no",
@@ -8334,55 +8443,127 @@ export const operations = [
8334
8443
  }
8335
8444
  },
8336
8445
  {
8337
- "resource": "crm.changes",
8338
- "method": "revert",
8339
- "summary": "Revert change set",
8340
- "description": "Reverse property changes made by one earlier request. Unlike HubSpot, CRM exposes change-set reversal because agents need to undo a whole recorded action rather than manually reconstructing individual values. Supply the changeSetId recorded in property history. A later conflicting value prevents reversal with HTTP 409 CONFLICT; inspect current records before resolving the conflict. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
8341
- "http": "POST",
8342
- "path": "/crm/v1/changes/{changeSetId}:revert",
8446
+ "resource": "content.contents",
8447
+ "method": "list",
8448
+ "summary": "List contents",
8449
+ "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.",
8450
+ "http": "GET",
8451
+ "path": "/content/v1/contents",
8343
8452
  "streaming": "no",
8344
8453
  "pagination": false,
8345
- "pathParams": [
8454
+ "pathParams": [],
8455
+ "query": [
8346
8456
  {
8347
- "name": "changeSetId",
8348
- "sdkName": "changeSetId",
8349
- "description": "Change-set identifier recorded for the original write in property history; one request forms one change set."
8457
+ "name": "page_size",
8458
+ "type": "integer",
8459
+ "required": false,
8460
+ "description": "Maximum contents in one page, from 1 to 100; defaults to 50."
8461
+ },
8462
+ {
8463
+ "name": "page_token",
8464
+ "type": "string",
8465
+ "required": false,
8466
+ "description": "next_page from the preceding list response with the same filters; omit for the first page."
8467
+ },
8468
+ {
8469
+ "name": "status",
8470
+ "type": "string",
8471
+ "enum": [
8472
+ "draft",
8473
+ "published",
8474
+ "unpublished",
8475
+ "archived"
8476
+ ],
8477
+ "required": false,
8478
+ "description": "Only contents in this publication state; draft, published, unpublished or archived. Omit to see every state but archived."
8479
+ },
8480
+ {
8481
+ "name": "kind",
8482
+ "type": "string",
8483
+ "required": false,
8484
+ "description": "Only contents of this kind; video is the only kind today."
8485
+ },
8486
+ {
8487
+ "name": "asset_id",
8488
+ "type": "string",
8489
+ "required": false,
8490
+ "description": "Only contents made from this Media asset id, from praxis.media; omit for every asset."
8491
+ },
8492
+ {
8493
+ "name": "q",
8494
+ "type": "string",
8495
+ "required": false,
8496
+ "description": "Substring of the content title to match, for example lesson; omit for every title."
8350
8497
  }
8351
- ],
8352
- "query": []
8498
+ ]
8353
8499
  },
8354
8500
  {
8355
- "resource": "crm.layouts",
8501
+ "resource": "content.contents",
8502
+ "method": "create",
8503
+ "summary": "Create a content",
8504
+ "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.",
8505
+ "http": "POST",
8506
+ "path": "/content/v1/contents",
8507
+ "streaming": "no",
8508
+ "pagination": false,
8509
+ "pathParams": [],
8510
+ "query": [],
8511
+ "body": {
8512
+ "required": true,
8513
+ "fields": [
8514
+ {
8515
+ "name": "kind",
8516
+ "type": "string",
8517
+ "required": true,
8518
+ "description": "Content kind to create; video is the only kind today."
8519
+ },
8520
+ {
8521
+ "name": "title",
8522
+ "type": "string",
8523
+ "required": true,
8524
+ "description": "Merchant-facing title for the content, a non-empty string."
8525
+ },
8526
+ {
8527
+ "name": "settings",
8528
+ "type": "object",
8529
+ "required": false,
8530
+ "description": "The settings a create accepts; only source is required, and the other groups keep their defaults when omitted."
8531
+ }
8532
+ ]
8533
+ }
8534
+ },
8535
+ {
8536
+ "resource": "content.contents",
8356
8537
  "method": "retrieve",
8357
- "summary": "Retrieve record layout",
8358
- "description": "Read the shared record-page layout for an object type from schemas.list. Unlike HubSpot, CRM exposes this presentation as an API resource so people and agents can share the same record layout instead of relying on interface-only settings. The response orders summary tiles, sidebar properties and main-column sections.",
8538
+ "summary": "Get a content",
8539
+ "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.",
8359
8540
  "http": "GET",
8360
- "path": "/crm/v1/layouts/{objectType}",
8541
+ "path": "/content/v1/contents/{content_id}",
8361
8542
  "streaming": "no",
8362
8543
  "pagination": false,
8363
8544
  "pathParams": [
8364
8545
  {
8365
- "name": "objectType",
8366
- "sdkName": "objectType",
8367
- "description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
8546
+ "name": "content_id",
8547
+ "sdkName": "content_id",
8548
+ "description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
8368
8549
  }
8369
8550
  ],
8370
8551
  "query": []
8371
8552
  },
8372
8553
  {
8373
- "resource": "crm.layouts",
8554
+ "resource": "content.contents",
8374
8555
  "method": "update",
8375
- "summary": "Update record layout",
8376
- "description": "Replace the shared record-page layout for an object type from schemas.list. Unlike HubSpot, CRM exposes this presentation as an API resource so agents can configure the same record view used by people. Send the complete layout with at most three summary tiles and property names from properties.list; omitted prior sections are removed. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
8377
- "http": "PUT",
8378
- "path": "/crm/v1/layouts/{objectType}",
8556
+ "summary": "Update a content",
8557
+ "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.",
8558
+ "http": "PATCH",
8559
+ "path": "/content/v1/contents/{content_id}",
8379
8560
  "streaming": "no",
8380
8561
  "pagination": false,
8381
8562
  "pathParams": [
8382
8563
  {
8383
- "name": "objectType",
8384
- "sdkName": "objectType",
8385
- "description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
8564
+ "name": "content_id",
8565
+ "sdkName": "content_id",
8566
+ "description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
8386
8567
  }
8387
8568
  ],
8388
8569
  "query": [],
@@ -8390,111 +8571,325 @@ export const operations = [
8390
8571
  "required": true,
8391
8572
  "fields": [
8392
8573
  {
8393
- "name": "objectType",
8574
+ "name": "title",
8394
8575
  "type": "string",
8395
- "required": true,
8396
- "description": "Object type whose record page uses this layout, matching the path parameter."
8397
- },
8398
- {
8399
- "name": "summary",
8400
- "type": "array",
8401
- "itemType": "object",
8402
- "required": true,
8403
- "description": "Ordered statistic tiles below the record header, with at most three tiles."
8404
- },
8405
- {
8406
- "name": "sidebar",
8407
- "type": "array",
8408
- "itemType": "string",
8409
- "required": true,
8410
- "description": "Ordered internal property names shown in the record property sidebar."
8576
+ "required": false,
8577
+ "description": "New merchant-facing title for the content."
8411
8578
  },
8412
8579
  {
8413
- "name": "sections",
8414
- "type": "array",
8415
- "itemType": "string",
8416
- "required": true,
8417
- "description": "Ordered main-column sections for activity, relationships, tables and property groups."
8580
+ "name": "settings",
8581
+ "type": "object",
8582
+ "required": false,
8583
+ "description": "A deep-partial of the four settings groups; a group left out keeps its current value and access changes take effect at once."
8418
8584
  }
8419
8585
  ]
8420
8586
  }
8421
8587
  },
8422
8588
  {
8423
- "resource": "crm.leads",
8424
- "method": "qualify",
8425
- "summary": "Qualify lead",
8426
- "description": "Qualify a lead with explicit contact, company and optional deal choices in one operation. Unlike HubSpot, CRM exposes these decisions as a single action because qualification coordinates several related record edits rather than editing only the lead stage. Obtain leadId from objects.list for leads and qualifiedStageId from its pipeline; choose a won stage and satisfy its required properties. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
8589
+ "resource": "content.contents",
8590
+ "method": "archive",
8591
+ "summary": "Archive a content",
8592
+ "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.",
8427
8593
  "http": "POST",
8428
- "path": "/crm/v1/leads/{leadId}:qualify",
8594
+ "path": "/content/v1/contents/{content_id}/archive",
8429
8595
  "streaming": "no",
8430
8596
  "pagination": false,
8431
8597
  "pathParams": [
8432
8598
  {
8433
- "name": "leadId",
8434
- "sdkName": "leadId",
8435
- "description": "Lead record identifier from objects.list or objects.search with objectType=leads."
8599
+ "name": "content_id",
8600
+ "sdkName": "content_id",
8601
+ "description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
8602
+ }
8603
+ ],
8604
+ "query": []
8605
+ },
8606
+ {
8607
+ "resource": "content.contents",
8608
+ "method": "publish",
8609
+ "summary": "Publish a content",
8610
+ "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.",
8611
+ "http": "POST",
8612
+ "path": "/content/v1/contents/{content_id}/publish",
8613
+ "streaming": "no",
8614
+ "pagination": false,
8615
+ "pathParams": [
8616
+ {
8617
+ "name": "content_id",
8618
+ "sdkName": "content_id",
8619
+ "description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
8436
8620
  }
8437
8621
  ],
8438
8622
  "query": [],
8439
8623
  "body": {
8440
- "required": true,
8624
+ "required": false,
8441
8625
  "fields": [
8442
8626
  {
8443
- "name": "contact",
8444
- "type": "object",
8445
- "required": true,
8446
- "description": "Keep the existing contact, or merge it into the chosen contact record."
8447
- },
8448
- {
8449
- "name": "company",
8450
- "type": "object",
8451
- "required": true,
8452
- "description": "Leave company unchanged, associate an existing company, or create one with explicit properties."
8453
- },
8454
- {
8455
- "name": "deal",
8456
- "type": "object",
8627
+ "name": "version",
8628
+ "type": "integer",
8457
8629
  "required": false,
8458
- "description": "Optional deal to create as part of qualification; omit to qualify without creating a deal."
8459
- },
8460
- {
8461
- "name": "qualifiedStageId",
8462
- "type": "string",
8463
- "required": true,
8464
- "description": "Lead stage id with praxis_category=won, obtained from the leads pipeline."
8630
+ "description": "Existing version number to make live, from the versions list; omit it to publish the latest version."
8465
8631
  }
8466
8632
  ]
8467
8633
  }
8468
8634
  },
8469
8635
  {
8470
- "resource": "crm.objects",
8636
+ "resource": "content.contents",
8637
+ "method": "unpublish",
8638
+ "summary": "Unpublish a content",
8639
+ "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.",
8640
+ "http": "POST",
8641
+ "path": "/content/v1/contents/{content_id}/unpublish",
8642
+ "streaming": "no",
8643
+ "pagination": false,
8644
+ "pathParams": [
8645
+ {
8646
+ "name": "content_id",
8647
+ "sdkName": "content_id",
8648
+ "description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
8649
+ }
8650
+ ],
8651
+ "query": []
8652
+ },
8653
+ {
8654
+ "resource": "content.versions",
8471
8655
  "method": "list",
8472
- "summary": "List records",
8473
- "description": "Browse records of one object type and obtain ids for retrieval or edits. Discover objectType with schemas.list; select properties by internal names from properties.list. Omit after for the first page, then copy paging.next.after until no next page is returned. archived defaults to false; use objects.search for property filters.",
8656
+ "summary": "List versions",
8657
+ "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.",
8474
8658
  "http": "GET",
8475
- "path": "/crm/v1/objects/{objectType}",
8659
+ "path": "/content/v1/contents/{content_id}/versions",
8476
8660
  "streaming": "no",
8477
8661
  "pagination": false,
8478
8662
  "pathParams": [
8479
8663
  {
8480
- "name": "objectType",
8481
- "sdkName": "objectType",
8482
- "description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
8664
+ "name": "content_id",
8665
+ "sdkName": "content_id",
8666
+ "description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
8483
8667
  }
8484
8668
  ],
8485
8669
  "query": [
8486
8670
  {
8487
- "name": "after",
8488
- "type": "string",
8671
+ "name": "page_size",
8672
+ "type": "integer",
8489
8673
  "required": false,
8490
- "description": "The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results."
8674
+ "description": "Maximum versions in one page, from 1 to 100; defaults to 50."
8491
8675
  },
8492
8676
  {
8493
- "name": "archived",
8494
- "type": "boolean",
8677
+ "name": "page_token",
8678
+ "type": "string",
8495
8679
  "required": false,
8496
- "description": "Whether to return only results that have been archived."
8497
- },
8680
+ "description": "next_page from the preceding versions response; omit for the first page."
8681
+ }
8682
+ ]
8683
+ },
8684
+ {
8685
+ "resource": "content.versions",
8686
+ "method": "retrieve",
8687
+ "summary": "Get a version",
8688
+ "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.",
8689
+ "http": "GET",
8690
+ "path": "/content/v1/contents/{content_id}/versions/{version}",
8691
+ "streaming": "no",
8692
+ "pagination": false,
8693
+ "pathParams": [
8694
+ {
8695
+ "name": "content_id",
8696
+ "sdkName": "content_id",
8697
+ "description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
8698
+ },
8699
+ {
8700
+ "name": "version",
8701
+ "sdkName": "version",
8702
+ "type": "integer",
8703
+ "description": "Positive version number from the versions list, for example 3; never zero and never the literal latest."
8704
+ }
8705
+ ],
8706
+ "query": []
8707
+ },
8708
+ {
8709
+ "resource": "content.playbackSessions",
8710
+ "method": "create",
8711
+ "summary": "Open a playback session",
8712
+ "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.",
8713
+ "http": "POST",
8714
+ "path": "/content/v1/playback/sessions",
8715
+ "streaming": "no",
8716
+ "pagination": false,
8717
+ "pathParams": [],
8718
+ "query": [],
8719
+ "body": {
8720
+ "required": true,
8721
+ "fields": [
8722
+ {
8723
+ "name": "content_id",
8724
+ "type": "string",
8725
+ "required": true,
8726
+ "description": "Published content to play, from praxis.content.contents.create or praxis.content.contents.list."
8727
+ }
8728
+ ]
8729
+ }
8730
+ },
8731
+ {
8732
+ "resource": "crm.changes",
8733
+ "method": "revert",
8734
+ "summary": "Revert change set",
8735
+ "description": "Reverse property changes made by one earlier request. Unlike HubSpot, CRM exposes change-set reversal because agents need to undo a whole recorded action rather than manually reconstructing individual values. Supply the changeSetId recorded in property history. A later conflicting value prevents reversal with HTTP 409 CONFLICT; inspect current records before resolving the conflict. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
8736
+ "http": "POST",
8737
+ "path": "/crm/v1/changes/{changeSetId}:revert",
8738
+ "streaming": "no",
8739
+ "pagination": false,
8740
+ "pathParams": [
8741
+ {
8742
+ "name": "changeSetId",
8743
+ "sdkName": "changeSetId",
8744
+ "description": "Change-set identifier recorded for the original write in property history; one request forms one change set."
8745
+ }
8746
+ ],
8747
+ "query": []
8748
+ },
8749
+ {
8750
+ "resource": "crm.layouts",
8751
+ "method": "retrieve",
8752
+ "summary": "Retrieve record layout",
8753
+ "description": "Read the shared record-page layout for an object type from schemas.list. Unlike HubSpot, CRM exposes this presentation as an API resource so people and agents can share the same record layout instead of relying on interface-only settings. The response orders summary tiles, sidebar properties and main-column sections.",
8754
+ "http": "GET",
8755
+ "path": "/crm/v1/layouts/{objectType}",
8756
+ "streaming": "no",
8757
+ "pagination": false,
8758
+ "pathParams": [
8759
+ {
8760
+ "name": "objectType",
8761
+ "sdkName": "objectType",
8762
+ "description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
8763
+ }
8764
+ ],
8765
+ "query": []
8766
+ },
8767
+ {
8768
+ "resource": "crm.layouts",
8769
+ "method": "update",
8770
+ "summary": "Update record layout",
8771
+ "description": "Replace the shared record-page layout for an object type from schemas.list. Unlike HubSpot, CRM exposes this presentation as an API resource so agents can configure the same record view used by people. Send the complete layout with at most three summary tiles and property names from properties.list; omitted prior sections are removed. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
8772
+ "http": "PUT",
8773
+ "path": "/crm/v1/layouts/{objectType}",
8774
+ "streaming": "no",
8775
+ "pagination": false,
8776
+ "pathParams": [
8777
+ {
8778
+ "name": "objectType",
8779
+ "sdkName": "objectType",
8780
+ "description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
8781
+ }
8782
+ ],
8783
+ "query": [],
8784
+ "body": {
8785
+ "required": true,
8786
+ "fields": [
8787
+ {
8788
+ "name": "objectType",
8789
+ "type": "string",
8790
+ "required": true,
8791
+ "description": "Object type whose record page uses this layout, matching the path parameter."
8792
+ },
8793
+ {
8794
+ "name": "summary",
8795
+ "type": "array",
8796
+ "itemType": "object",
8797
+ "required": true,
8798
+ "description": "Ordered statistic tiles below the record header, with at most three tiles."
8799
+ },
8800
+ {
8801
+ "name": "sidebar",
8802
+ "type": "array",
8803
+ "itemType": "string",
8804
+ "required": true,
8805
+ "description": "Ordered internal property names shown in the record property sidebar."
8806
+ },
8807
+ {
8808
+ "name": "sections",
8809
+ "type": "array",
8810
+ "itemType": "string",
8811
+ "required": true,
8812
+ "description": "Ordered main-column sections for activity, relationships, tables and property groups."
8813
+ }
8814
+ ]
8815
+ }
8816
+ },
8817
+ {
8818
+ "resource": "crm.leads",
8819
+ "method": "qualify",
8820
+ "summary": "Qualify lead",
8821
+ "description": "Qualify a lead with explicit contact, company and optional deal choices in one operation. Unlike HubSpot, CRM exposes these decisions as a single action because qualification coordinates several related record edits rather than editing only the lead stage. Obtain leadId from objects.list for leads and qualifiedStageId from its pipeline; choose a won stage and satisfy its required properties. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
8822
+ "http": "POST",
8823
+ "path": "/crm/v1/leads/{leadId}:qualify",
8824
+ "streaming": "no",
8825
+ "pagination": false,
8826
+ "pathParams": [
8827
+ {
8828
+ "name": "leadId",
8829
+ "sdkName": "leadId",
8830
+ "description": "Lead record identifier from objects.list or objects.search with objectType=leads."
8831
+ }
8832
+ ],
8833
+ "query": [],
8834
+ "body": {
8835
+ "required": true,
8836
+ "fields": [
8837
+ {
8838
+ "name": "contact",
8839
+ "type": "object",
8840
+ "required": true,
8841
+ "description": "Keep the existing contact, or merge it into the chosen contact record."
8842
+ },
8843
+ {
8844
+ "name": "company",
8845
+ "type": "object",
8846
+ "required": true,
8847
+ "description": "Leave company unchanged, associate an existing company, or create one with explicit properties."
8848
+ },
8849
+ {
8850
+ "name": "deal",
8851
+ "type": "object",
8852
+ "required": false,
8853
+ "description": "Optional deal to create as part of qualification; omit to qualify without creating a deal."
8854
+ },
8855
+ {
8856
+ "name": "qualifiedStageId",
8857
+ "type": "string",
8858
+ "required": true,
8859
+ "description": "Lead stage id with praxis_category=won, obtained from the leads pipeline."
8860
+ }
8861
+ ]
8862
+ }
8863
+ },
8864
+ {
8865
+ "resource": "crm.objects",
8866
+ "method": "list",
8867
+ "summary": "List records",
8868
+ "description": "Browse records of one object type and obtain ids for retrieval or edits. Discover objectType with schemas.list; select properties by internal names from properties.list. Omit after for the first page, then copy paging.next.after until no next page is returned. archived defaults to false; use objects.search for property filters.",
8869
+ "http": "GET",
8870
+ "path": "/crm/v1/objects/{objectType}",
8871
+ "streaming": "no",
8872
+ "pagination": false,
8873
+ "pathParams": [
8874
+ {
8875
+ "name": "objectType",
8876
+ "sdkName": "objectType",
8877
+ "description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
8878
+ }
8879
+ ],
8880
+ "query": [
8881
+ {
8882
+ "name": "after",
8883
+ "type": "string",
8884
+ "required": false,
8885
+ "description": "The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results."
8886
+ },
8887
+ {
8888
+ "name": "archived",
8889
+ "type": "boolean",
8890
+ "required": false,
8891
+ "description": "Whether to return only results that have been archived."
8892
+ },
8498
8893
  {
8499
8894
  "name": "associations",
8500
8895
  "type": "array",
@@ -9792,178 +10187,608 @@ export const operations = [
9792
10187
  "required": true,
9793
10188
  "fields": [
9794
10189
  {
9795
- "name": "calculationFormula",
9796
- "type": "string",
9797
- "required": false,
9798
- "description": "Represents a formula that is used to compute a calculated property."
9799
- },
9800
- {
9801
- "name": "currencyPropertyName",
9802
- "type": "string",
9803
- "required": false,
9804
- "description": "A string specifying the name of the property that holds the currency information, applicable when showCurrencySymbol is true."
9805
- },
9806
- {
9807
- "name": "description",
9808
- "type": "string",
9809
- "required": false,
9810
- "description": "A description of the property that will be shown as help text in CRM."
9811
- },
9812
- {
9813
- "name": "displayOrder",
9814
- "type": "integer",
9815
- "required": false,
9816
- "description": "Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the Property to be displayed after any positive values."
9817
- },
9818
- {
9819
- "name": "fieldType",
9820
- "type": "string",
9821
- "enum": [
9822
- "booleancheckbox",
9823
- "calculation_equation",
9824
- "checkbox",
9825
- "date",
9826
- "file",
9827
- "html",
9828
- "number",
9829
- "phonenumber",
9830
- "radio",
9831
- "select",
9832
- "text",
9833
- "textarea"
9834
- ],
9835
- "required": false,
9836
- "description": "Controls how the property appears in CRM."
9837
- },
9838
- {
9839
- "name": "formField",
9840
- "type": "boolean",
9841
- "required": false,
9842
- "description": "Whether or not the property can be used in a CRM form."
9843
- },
9844
- {
9845
- "name": "groupName",
10190
+ "name": "calculationFormula",
10191
+ "type": "string",
10192
+ "required": false,
10193
+ "description": "Represents a formula that is used to compute a calculated property."
10194
+ },
10195
+ {
10196
+ "name": "currencyPropertyName",
10197
+ "type": "string",
10198
+ "required": false,
10199
+ "description": "A string specifying the name of the property that holds the currency information, applicable when showCurrencySymbol is true."
10200
+ },
10201
+ {
10202
+ "name": "description",
10203
+ "type": "string",
10204
+ "required": false,
10205
+ "description": "A description of the property that will be shown as help text in CRM."
10206
+ },
10207
+ {
10208
+ "name": "displayOrder",
10209
+ "type": "integer",
10210
+ "required": false,
10211
+ "description": "Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the Property to be displayed after any positive values."
10212
+ },
10213
+ {
10214
+ "name": "fieldType",
10215
+ "type": "string",
10216
+ "enum": [
10217
+ "booleancheckbox",
10218
+ "calculation_equation",
10219
+ "checkbox",
10220
+ "date",
10221
+ "file",
10222
+ "html",
10223
+ "number",
10224
+ "phonenumber",
10225
+ "radio",
10226
+ "select",
10227
+ "text",
10228
+ "textarea"
10229
+ ],
10230
+ "required": false,
10231
+ "description": "Controls how the property appears in CRM."
10232
+ },
10233
+ {
10234
+ "name": "formField",
10235
+ "type": "boolean",
10236
+ "required": false,
10237
+ "description": "Whether or not the property can be used in a CRM form."
10238
+ },
10239
+ {
10240
+ "name": "groupName",
10241
+ "type": "string",
10242
+ "required": false,
10243
+ "description": "The name of the property group the property belongs to."
10244
+ },
10245
+ {
10246
+ "name": "hidden",
10247
+ "type": "boolean",
10248
+ "required": false,
10249
+ "description": "If true, the property won't be visible and can't be used in CRM."
10250
+ },
10251
+ {
10252
+ "name": "label",
10253
+ "type": "string",
10254
+ "required": false,
10255
+ "description": "A human-readable property label that will be shown in CRM."
10256
+ },
10257
+ {
10258
+ "name": "numberDisplayHint",
10259
+ "type": "string",
10260
+ "enum": [
10261
+ "currency",
10262
+ "duration",
10263
+ "formatted",
10264
+ "percentage",
10265
+ "probability",
10266
+ "unformatted"
10267
+ ],
10268
+ "required": false,
10269
+ "description": "A string providing a hint for displaying number values. Valid values include 'unformatted', 'formatted', 'currency', 'percentage', 'duration', and 'probability'."
10270
+ },
10271
+ {
10272
+ "name": "options",
10273
+ "type": "array",
10274
+ "itemType": "object",
10275
+ "required": false,
10276
+ "description": "A list of valid options for the property."
10277
+ },
10278
+ {
10279
+ "name": "showCurrencySymbol",
10280
+ "type": "boolean",
10281
+ "required": false,
10282
+ "description": "A boolean indicating whether to display a currency symbol for number fields formatted as currency."
10283
+ },
10284
+ {
10285
+ "name": "textDisplayHint",
10286
+ "type": "string",
10287
+ "enum": [
10288
+ "domain_name",
10289
+ "email",
10290
+ "ip_address",
10291
+ "multi_line",
10292
+ "phone_number",
10293
+ "physical_address",
10294
+ "postal_code",
10295
+ "unformatted_single_line"
10296
+ ],
10297
+ "required": false,
10298
+ "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'."
10299
+ },
10300
+ {
10301
+ "name": "type",
10302
+ "type": "string",
10303
+ "enum": [
10304
+ "bool",
10305
+ "date",
10306
+ "datetime",
10307
+ "enumeration",
10308
+ "number",
10309
+ "phone_number",
10310
+ "string"
10311
+ ],
10312
+ "required": false,
10313
+ "description": "The data type of the property."
10314
+ }
10315
+ ]
10316
+ }
10317
+ },
10318
+ {
10319
+ "resource": "crm.schemas",
10320
+ "method": "list",
10321
+ "summary": "List object schemas",
10322
+ "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.",
10323
+ "http": "GET",
10324
+ "path": "/crm/v1/schemas",
10325
+ "streaming": "no",
10326
+ "pagination": false,
10327
+ "pathParams": [],
10328
+ "query": [
10329
+ {
10330
+ "name": "archived",
10331
+ "type": "boolean",
10332
+ "required": false,
10333
+ "description": "Whether to return only results that have been archived."
10334
+ },
10335
+ {
10336
+ "name": "includeAssociationDefinitions",
10337
+ "type": "boolean",
10338
+ "required": false,
10339
+ "description": "Whether to include association definitions in the response. Defaults to true."
10340
+ },
10341
+ {
10342
+ "name": "includeAuditMetadata",
10343
+ "type": "boolean",
10344
+ "required": false,
10345
+ "description": "Whether to include audit metadata in the response. Defaults to true."
10346
+ },
10347
+ {
10348
+ "name": "includePropertyDefinitions",
10349
+ "type": "boolean",
10350
+ "required": false,
10351
+ "description": "Whether to include property definitions in the response. Defaults to true."
10352
+ }
10353
+ ]
10354
+ },
10355
+ {
10356
+ "resource": "crm.schemas",
10357
+ "method": "create",
10358
+ "summary": "Create object schema",
10359
+ "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.",
10360
+ "http": "POST",
10361
+ "path": "/crm/v1/schemas",
10362
+ "streaming": "no",
10363
+ "pagination": false,
10364
+ "pathParams": [],
10365
+ "query": [],
10366
+ "body": {
10367
+ "required": true,
10368
+ "fields": [
10369
+ {
10370
+ "name": "allowsSensitiveProperties",
10371
+ "type": "boolean",
10372
+ "required": true,
10373
+ "description": "Determines if the object type can include properties that are marked as sensitive."
10374
+ },
10375
+ {
10376
+ "name": "associatedObjects",
10377
+ "type": "array",
10378
+ "itemType": "string",
10379
+ "required": true,
10380
+ "description": "Associations defined for this object type."
10381
+ },
10382
+ {
10383
+ "name": "description",
10384
+ "type": "string",
10385
+ "required": false,
10386
+ "description": "A brief explanation of the object type."
10387
+ },
10388
+ {
10389
+ "name": "labels",
10390
+ "type": "object",
10391
+ "required": true
10392
+ },
10393
+ {
10394
+ "name": "name",
10395
+ "type": "string",
10396
+ "required": true,
10397
+ "description": "A unique name for this object. For internal use only."
10398
+ },
10399
+ {
10400
+ "name": "primaryDisplayProperty",
10401
+ "type": "string",
10402
+ "required": false,
10403
+ "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."
10404
+ },
10405
+ {
10406
+ "name": "properties",
10407
+ "type": "array",
10408
+ "itemType": "object",
10409
+ "required": true,
10410
+ "description": "Properties defined for this object type."
10411
+ },
10412
+ {
10413
+ "name": "requiredProperties",
10414
+ "type": "array",
10415
+ "itemType": "string",
10416
+ "required": true,
10417
+ "description": "The names of properties that should be **required** when creating an object of this type."
10418
+ },
10419
+ {
10420
+ "name": "searchableProperties",
10421
+ "type": "array",
10422
+ "itemType": "string",
10423
+ "required": true,
10424
+ "description": "Names of properties that will be indexed for this object type in by CRM's product search."
10425
+ },
10426
+ {
10427
+ "name": "secondaryDisplayProperties",
10428
+ "type": "array",
10429
+ "itemType": "string",
10430
+ "required": true,
10431
+ "description": "The names of secondary properties for this object. These will be displayed as secondary on the CRM record page for this object type."
10432
+ },
10433
+ {
10434
+ "name": "shouldCreateSameObjectAssociation",
10435
+ "type": "boolean",
10436
+ "required": true,
10437
+ "description": "A boolean indicating whether associations should be created between objects of the same type."
10438
+ }
10439
+ ]
10440
+ }
10441
+ },
10442
+ {
10443
+ "resource": "customer.accessTokens",
10444
+ "method": "create",
10445
+ "summary": "Exchange a grant code or publishable key",
10446
+ "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.",
10447
+ "http": "POST",
10448
+ "path": "/customer/v1/access_tokens",
10449
+ "streaming": "no",
10450
+ "pagination": false,
10451
+ "pathParams": [],
10452
+ "query": [],
10453
+ "body": {
10454
+ "required": true,
10455
+ "fields": [
10456
+ {
10457
+ "name": "grant_code",
10458
+ "type": "string",
10459
+ "required": false,
10460
+ "description": "A grant code (cgc_…) from grant_codes, for an end user you signed in from your backend; it works once."
10461
+ },
10462
+ {
10463
+ "name": "publishable_key",
10464
+ "type": "string",
10465
+ "required": false,
10466
+ "description": "A publishable key (pk_…) for an anonymous visitor; the exchange creates a new anonymous end user bound to the request Origin."
10467
+ }
10468
+ ]
10469
+ }
10470
+ },
10471
+ {
10472
+ "resource": "customer.accessTokens",
10473
+ "method": "revoke",
10474
+ "summary": "Sign out the current token",
10475
+ "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.",
10476
+ "http": "DELETE",
10477
+ "path": "/customer/v1/access_tokens/current",
10478
+ "streaming": "no",
10479
+ "pagination": false,
10480
+ "pathParams": [],
10481
+ "query": []
10482
+ },
10483
+ {
10484
+ "resource": "customer.accessTokens",
10485
+ "method": "renew",
10486
+ "summary": "Renew an access token",
10487
+ "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.",
10488
+ "http": "POST",
10489
+ "path": "/customer/v1/access_tokens/renew",
10490
+ "streaming": "no",
10491
+ "pagination": false,
10492
+ "pathParams": [],
10493
+ "query": []
10494
+ },
10495
+ {
10496
+ "resource": "customer.customers",
10497
+ "method": "list",
10498
+ "summary": "List end users",
10499
+ "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.",
10500
+ "http": "GET",
10501
+ "path": "/customer/v1/customers",
10502
+ "streaming": "no",
10503
+ "pagination": false,
10504
+ "pathParams": [],
10505
+ "query": [
10506
+ {
10507
+ "name": "page_size",
10508
+ "type": "integer",
10509
+ "required": false,
10510
+ "description": "Maximum end users in one page, from 1 to 100; defaults to 50."
10511
+ },
10512
+ {
10513
+ "name": "page_token",
10514
+ "type": "string",
10515
+ "required": false,
10516
+ "description": "next_page from the preceding list response with the same filters; omit for the first page."
10517
+ },
10518
+ {
10519
+ "name": "type",
10520
+ "type": "string",
10521
+ "enum": [
10522
+ "identified",
10523
+ "anonymous"
10524
+ ],
10525
+ "required": false,
10526
+ "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."
10527
+ },
10528
+ {
10529
+ "name": "blocked",
10530
+ "type": "boolean",
10531
+ "required": false,
10532
+ "description": "true for blocked end users only, false for end users who are not blocked; omit for both."
10533
+ },
10534
+ {
10535
+ "name": "resource",
10536
+ "type": "string",
10537
+ "required": false,
10538
+ "description": "Only end users of one product, as <type>:<id>, for example content:cnt_0123456789abcdef, agent:agent_123 or application:app_456."
10539
+ },
10540
+ {
10541
+ "name": "q",
10542
+ "type": "string",
10543
+ "required": false,
10544
+ "description": "Only end users whose customer id starts with this prefix, for example cus_; omit for every id."
10545
+ }
10546
+ ]
10547
+ },
10548
+ {
10549
+ "resource": "customer.customers",
10550
+ "method": "delete",
10551
+ "summary": "Delete an end user",
10552
+ "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.",
10553
+ "http": "DELETE",
10554
+ "path": "/customer/v1/customers/{customer_id}",
10555
+ "streaming": "no",
10556
+ "pagination": false,
10557
+ "pathParams": [
10558
+ {
10559
+ "name": "customer_id",
10560
+ "sdkName": "customer_id",
10561
+ "description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
10562
+ }
10563
+ ],
10564
+ "query": [
10565
+ {
10566
+ "name": "confirm",
10567
+ "type": "string",
10568
+ "required": true,
10569
+ "description": "The customer_id being deleted, repeated exactly; the service compares it with the path and refuses a mismatch with 400."
10570
+ }
10571
+ ]
10572
+ },
10573
+ {
10574
+ "resource": "customer.customers",
10575
+ "method": "retrieve",
10576
+ "summary": "Get an end user",
10577
+ "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.",
10578
+ "http": "GET",
10579
+ "path": "/customer/v1/customers/{customer_id}",
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
+ "name": "expand",
10592
+ "type": "string",
10593
+ "required": false,
10594
+ "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."
10595
+ }
10596
+ ]
10597
+ },
10598
+ {
10599
+ "resource": "customer.customers",
10600
+ "method": "block",
10601
+ "summary": "Block an end user",
10602
+ "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.",
10603
+ "http": "POST",
10604
+ "path": "/customer/v1/customers/{customer_id}/block",
10605
+ "streaming": "no",
10606
+ "pagination": false,
10607
+ "pathParams": [
10608
+ {
10609
+ "name": "customer_id",
10610
+ "sdkName": "customer_id",
10611
+ "description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
10612
+ }
10613
+ ],
10614
+ "query": [],
10615
+ "body": {
10616
+ "required": false,
10617
+ "fields": [
10618
+ {
10619
+ "name": "reason",
10620
+ "type": "string",
10621
+ "required": false,
10622
+ "description": "Why the end user is blocked, recorded with the block fact; omit for none."
10623
+ }
10624
+ ]
10625
+ }
10626
+ },
10627
+ {
10628
+ "resource": "customer.customers",
10629
+ "method": "revokeTokens",
10630
+ "summary": "Revoke every token of an end user",
10631
+ "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.",
10632
+ "http": "POST",
10633
+ "path": "/customer/v1/customers/{customer_id}/revoke_tokens",
10634
+ "streaming": "no",
10635
+ "pagination": false,
10636
+ "pathParams": [
10637
+ {
10638
+ "name": "customer_id",
10639
+ "sdkName": "customer_id",
10640
+ "description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
10641
+ }
10642
+ ],
10643
+ "query": []
10644
+ },
10645
+ {
10646
+ "resource": "customer.customers",
10647
+ "method": "unblock",
10648
+ "summary": "Unblock an end user",
10649
+ "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.",
10650
+ "http": "POST",
10651
+ "path": "/customer/v1/customers/{customer_id}/unblock",
10652
+ "streaming": "no",
10653
+ "pagination": false,
10654
+ "pathParams": [
10655
+ {
10656
+ "name": "customer_id",
10657
+ "sdkName": "customer_id",
10658
+ "description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
10659
+ }
10660
+ ],
10661
+ "query": []
10662
+ },
10663
+ {
10664
+ "resource": "customer.usage",
10665
+ "method": "retrieve",
10666
+ "summary": "Read end-user usage",
10667
+ "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.",
10668
+ "http": "GET",
10669
+ "path": "/customer/v1/customers/{customer_id}/usage",
10670
+ "streaming": "no",
10671
+ "pagination": false,
10672
+ "pathParams": [
10673
+ {
10674
+ "name": "customer_id",
10675
+ "sdkName": "customer_id",
10676
+ "description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
10677
+ }
10678
+ ],
10679
+ "query": [
10680
+ {
10681
+ "name": "from",
10682
+ "type": "string",
10683
+ "required": false,
10684
+ "description": "Start of the window as an RFC 3339 time, inclusive; omit for the beginning of the record."
10685
+ },
10686
+ {
10687
+ "name": "to",
10688
+ "type": "string",
10689
+ "required": false,
10690
+ "description": "End of the window as an RFC 3339 time, exclusive; omit for now."
10691
+ }
10692
+ ]
10693
+ },
10694
+ {
10695
+ "resource": "customer.grantCodes",
10696
+ "method": "create",
10697
+ "summary": "Create a grant code",
10698
+ "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.",
10699
+ "http": "POST",
10700
+ "path": "/customer/v1/grant_codes",
10701
+ "streaming": "no",
10702
+ "pagination": false,
10703
+ "pathParams": [],
10704
+ "query": [],
10705
+ "body": {
10706
+ "required": true,
10707
+ "fields": [
10708
+ {
10709
+ "name": "customer_id",
9846
10710
  "type": "string",
9847
- "required": false,
9848
- "description": "The name of the property group the property belongs to."
10711
+ "required": true,
10712
+ "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
10713
  },
9850
10714
  {
9851
- "name": "hidden",
9852
- "type": "boolean",
10715
+ "name": "metadata",
10716
+ "type": "object",
9853
10717
  "required": false,
9854
- "description": "If true, the property won't be visible and can't be used in CRM."
10718
+ "description": "Product metadata to record with the end user, as string key to string value; it is merged over what is already stored."
9855
10719
  },
9856
10720
  {
9857
- "name": "label",
9858
- "type": "string",
9859
- "required": false,
9860
- "description": "A human-readable property label that will be shown in CRM."
10721
+ "name": "resources",
10722
+ "type": "array",
10723
+ "itemType": "object",
10724
+ "required": true,
10725
+ "description": "Resource scopes the sign-in may reach, at least one, each a scope string or an object with scope and params."
9861
10726
  },
9862
10727
  {
9863
- "name": "numberDisplayHint",
10728
+ "name": "origin",
9864
10729
  "type": "string",
9865
- "enum": [
9866
- "currency",
9867
- "duration",
9868
- "formatted",
9869
- "percentage",
9870
- "probability",
9871
- "unformatted"
9872
- ],
9873
10730
  "required": false,
9874
- "description": "A string providing a hint for displaying number values. Valid values include 'unformatted', 'formatted', 'currency', 'percentage', 'duration', and 'probability'."
10731
+ "description": "Page origin this sign-in is bound to, for example https://school.example.com; a later exchange with another Origin is refused."
9875
10732
  },
9876
10733
  {
9877
- "name": "options",
9878
- "type": "array",
9879
- "itemType": "object",
10734
+ "name": "expires_in",
10735
+ "type": "integer",
9880
10736
  "required": false,
9881
- "description": "A list of valid options for the property."
10737
+ "description": "Lifetime of the code in seconds; omit for the fifteen-minute default, and send a smaller number to shorten it."
9882
10738
  },
9883
10739
  {
9884
- "name": "showCurrencySymbol",
9885
- "type": "boolean",
10740
+ "name": "max_session_seconds",
10741
+ "type": "integer",
9886
10742
  "required": false,
9887
- "description": "A boolean indicating whether to display a currency symbol for number fields formatted as currency."
10743
+ "description": "Lifetime of the sign-in the code starts, in seconds; omit for the seven-day default."
9888
10744
  },
9889
10745
  {
9890
- "name": "textDisplayHint",
10746
+ "name": "merge_customer_id",
9891
10747
  "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
10748
  "required": false,
9903
- "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'."
10749
+ "description": "An existing anonymous end user (anon_…) whose record joins this person when the code is exchanged."
9904
10750
  },
9905
10751
  {
9906
- "name": "type",
10752
+ "name": "anonymous_access_token",
9907
10753
  "type": "string",
9908
- "enum": [
9909
- "bool",
9910
- "date",
9911
- "datetime",
9912
- "enumeration",
9913
- "number",
9914
- "phone_number",
9915
- "string"
9916
- ],
9917
10754
  "required": false,
9918
- "description": "The data type of the property."
10755
+ "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
10756
  }
9920
10757
  ]
9921
10758
  }
9922
10759
  },
9923
10760
  {
9924
- "resource": "crm.schemas",
10761
+ "resource": "customer.publishableKeys",
9925
10762
  "method": "list",
9926
- "summary": "List object schemas",
9927
- "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.",
10763
+ "summary": "List publishable keys",
10764
+ "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
10765
  "http": "GET",
9929
- "path": "/crm/v1/schemas",
10766
+ "path": "/customer/v1/publishable_keys",
9930
10767
  "streaming": "no",
9931
10768
  "pagination": false,
9932
10769
  "pathParams": [],
9933
10770
  "query": [
9934
10771
  {
9935
- "name": "archived",
9936
- "type": "boolean",
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",
10772
+ "name": "page_size",
10773
+ "type": "integer",
9949
10774
  "required": false,
9950
- "description": "Whether to include audit metadata in the response. Defaults to true."
10775
+ "description": "Maximum keys in one page, from 1 to 100; defaults to 50."
9951
10776
  },
9952
10777
  {
9953
- "name": "includePropertyDefinitions",
9954
- "type": "boolean",
10778
+ "name": "page_token",
10779
+ "type": "string",
9955
10780
  "required": false,
9956
- "description": "Whether to include property definitions in the response. Defaults to true."
10781
+ "description": "next_page from the preceding key list response; omit for the first page."
9957
10782
  }
9958
10783
  ]
9959
10784
  },
9960
10785
  {
9961
- "resource": "crm.schemas",
10786
+ "resource": "customer.publishableKeys",
9962
10787
  "method": "create",
9963
- "summary": "Create object schema",
9964
- "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.",
10788
+ "summary": "Create a publishable key",
10789
+ "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
10790
  "http": "POST",
9966
- "path": "/crm/v1/schemas",
10791
+ "path": "/customer/v1/publishable_keys",
9967
10792
  "streaming": "no",
9968
10793
  "pagination": false,
9969
10794
  "pathParams": [],
@@ -9971,79 +10796,40 @@ export const operations = [
9971
10796
  "body": {
9972
10797
  "required": true,
9973
10798
  "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
10799
  {
9999
10800
  "name": "name",
10000
10801
  "type": "string",
10001
10802
  "required": true,
10002
- "description": "A unique name for this object. For internal use only."
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."
10803
+ "description": "Label for the key, shown in the console and the key list, for example Storefront."
10009
10804
  },
10010
10805
  {
10011
- "name": "properties",
10806
+ "name": "resources",
10012
10807
  "type": "array",
10013
10808
  "itemType": "object",
10014
10809
  "required": true,
10015
- "description": "Properties defined for this object type."
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."
10810
+ "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
10811
  }
10044
10812
  ]
10045
10813
  }
10046
10814
  },
10815
+ {
10816
+ "resource": "customer.publishableKeys",
10817
+ "method": "delete",
10818
+ "summary": "Delete a publishable key",
10819
+ "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.",
10820
+ "http": "DELETE",
10821
+ "path": "/customer/v1/publishable_keys/{key_id}",
10822
+ "streaming": "no",
10823
+ "pagination": false,
10824
+ "pathParams": [
10825
+ {
10826
+ "name": "key_id",
10827
+ "sdkName": "key_id",
10828
+ "description": "Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value."
10829
+ }
10830
+ ],
10831
+ "query": []
10832
+ },
10047
10833
  {
10048
10834
  "resource": "cut.exports",
10049
10835
  "method": "retrieve",
@@ -10764,7 +11550,7 @@ export const operations = [
10764
11550
  "resource": "cut.projects",
10765
11551
  "method": "execute",
10766
11552
  "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",
11553
+ "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
11554
  "http": "POST",
10769
11555
  "path": "/cut/v1/projects/{project_id}:execute",
10770
11556
  "streaming": "no",
@@ -11827,7 +12613,7 @@ export const operations = [
11827
12613
  {
11828
12614
  "name": "id",
11829
12615
  "sdkName": "id",
11830
- "description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer; the slash must be percent-encoded, so feat/run-page-v2 is sent as feat%2Frun-page-v2."
12616
+ "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
12617
  }
11832
12618
  ],
11833
12619
  "query": []
@@ -11836,7 +12622,7 @@ export const operations = [
11836
12622
  "resource": "devops.changes",
11837
12623
  "method": "abandon",
11838
12624
  "summary": "Abandon a change",
11839
- "description": "Stop a change for good: it no longer moves forward and its stage becomes abandoned. reason is required and is kept with the change. Pull requests that were already merged are not undone — the system cleans them up, or a new change reverts them — so abandoning is a statement about the change, not a rollback of code. The id is the branch name and its slash must be percent-encoded in the path (feat%2Frun-page-v2). A change that is already abandoned is refused with INVALID_ARGUMENT, which is how a caller tells an earlier abandon apart from a call that had no effect.",
12625
+ "description": "Stop a change for good: it no longer moves forward and its stage becomes abandoned. reason is required and is kept with the change. Pull requests it has not merged are closed with it: each one is closed on GitHub with a note naming the change and this reason, so an abandoned change never leaves an open pull request behind for someone else to clean up — a change with no open pull request makes no GitHub call at all. That close happens BEFORE the change is marked, so an abandon that cannot close them is refused with GITHUB_UNAVAILABLE and nothing has changed; send it again. Pull requests that were already merged are not undone — the system cleans them up, or a new change reverts them — so abandoning is a statement about the change, not a rollback of code. The id is the branch name and its slash must be percent-encoded in the path (feat%2Frun-page-v2). Repeating the call on a change that is already abandoned answers the change as it stands instead of refusing it: the first abandon is the fact, and a caller that lost the answer gets it back.",
11840
12626
  "http": "POST",
11841
12627
  "path": "/devops/v1/changes/{id}:abandon",
11842
12628
  "streaming": "no",
@@ -11845,7 +12631,7 @@ export const operations = [
11845
12631
  {
11846
12632
  "name": "id",
11847
12633
  "sdkName": "id",
11848
- "description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer; the slash must be percent-encoded, so feat/run-page-v2 is sent as feat%2Frun-page-v2."
12634
+ "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
12635
  }
11850
12636
  ],
11851
12637
  "query": [],
@@ -11861,6 +12647,24 @@ export const operations = [
11861
12647
  ]
11862
12648
  }
11863
12649
  },
12650
+ {
12651
+ "resource": "devops.changes",
12652
+ "method": "gitCredential",
12653
+ "summary": "Get a change workspace's read-only git credential",
12654
+ "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).",
12655
+ "http": "POST",
12656
+ "path": "/devops/v1/changes/{id}:gitCredential",
12657
+ "streaming": "no",
12658
+ "pagination": false,
12659
+ "pathParams": [
12660
+ {
12661
+ "name": "id",
12662
+ "sdkName": "id",
12663
+ "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."
12664
+ }
12665
+ ],
12666
+ "query": []
12667
+ },
11864
12668
  {
11865
12669
  "resource": "devops.changes",
11866
12670
  "method": "markLastSlice",
@@ -11874,18 +12678,59 @@ export const operations = [
11874
12678
  {
11875
12679
  "name": "id",
11876
12680
  "sdkName": "id",
11877
- "description": "The change's id, which is its branch name <type>/<slug> from a change list or create answer; the slash must be percent-encoded, so feat/run-page-v2 is sent as feat%2Frun-page-v2."
12681
+ "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."
12682
+ }
12683
+ ],
12684
+ "query": [],
12685
+ "body": {
12686
+ "required": true,
12687
+ "fields": [
12688
+ {
12689
+ "name": "lastSlice",
12690
+ "type": "boolean",
12691
+ "required": true,
12692
+ "description": "True when no more pull requests will follow; false keeps the change from reaching rolling out or done."
12693
+ }
12694
+ ]
12695
+ }
12696
+ },
12697
+ {
12698
+ "resource": "devops.changes",
12699
+ "method": "openPullRequest",
12700
+ "summary": "Open a change's pull request",
12701
+ "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.",
12702
+ "http": "POST",
12703
+ "path": "/devops/v1/changes/{id}:openPullRequest",
12704
+ "streaming": "no",
12705
+ "pagination": false,
12706
+ "pathParams": [
12707
+ {
12708
+ "name": "id",
12709
+ "sdkName": "id",
12710
+ "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
12711
  }
11879
12712
  ],
11880
12713
  "query": [],
11881
12714
  "body": {
11882
- "required": true,
12715
+ "required": false,
11883
12716
  "fields": [
11884
12717
  {
11885
- "name": "lastSlice",
12718
+ "name": "title",
12719
+ "type": "string",
12720
+ "required": false,
12721
+ "description": "The pull request's title; defaults to the change's title."
12722
+ },
12723
+ {
12724
+ "name": "body",
12725
+ "type": "string",
12726
+ "required": false,
12727
+ "description": "The pull request's description, markdown. Put the change's `praxis` exposure block here, or the merge gate asks for it."
12728
+ },
12729
+ {
12730
+ "name": "draft",
11886
12731
  "type": "boolean",
11887
- "required": true,
11888
- "description": "True when no more pull requests will follow; false keeps the change from reaching rolling out or done."
12732
+ "required": false,
12733
+ "description": "Open it as a draft. Defaults to false."
11889
12734
  }
11890
12735
  ]
11891
12736
  }
@@ -14459,6 +15304,35 @@ export const operations = [
14459
15304
  }
14460
15305
  ]
14461
15306
  },
15307
+ {
15308
+ "resource": "devops.pullRequests",
15309
+ "method": "close",
15310
+ "summary": "Close a pull request without merging it",
15311
+ "description": "End a pull request that will never land, without abandoning the change it belongs to. DevOps closes it on GitHub through the project's own App installation, after writing this reason on the pull request, so it leaves the review queue instead of waiting for a merge that is not coming and whoever finds it later sees who ended it and why. Use it when one slice of a change is dropped while the change continues; abandoning the CHANGE closes its unmerged pull requests on its own and needs no second call. Only an open pull request can be closed: a merged one is refused with PULL_REQUEST_NOT_OPEN, because closing does not undo a merge and GitHub will not move a merged pull request back to closed, and one that is already closed answers itself unchanged, so repeating the call is safe. A pull request GitHub no longer has open is refused the same way — nothing was closed, and the platform's record catches up with GitHub on its next delivery.",
15312
+ "http": "POST",
15313
+ "path": "/devops/v1/pull-requests/{id}:close",
15314
+ "streaming": "no",
15315
+ "pagination": false,
15316
+ "pathParams": [
15317
+ {
15318
+ "name": "id",
15319
+ "sdkName": "id",
15320
+ "description": "The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it."
15321
+ }
15322
+ ],
15323
+ "query": [],
15324
+ "body": {
15325
+ "required": true,
15326
+ "fields": [
15327
+ {
15328
+ "name": "reason",
15329
+ "type": "string",
15330
+ "required": true,
15331
+ "description": "Why, in a sentence the next reader of the pull request can act on. It is posted as a note on the pull request before it is closed, and the note names the change when the head branch is one."
15332
+ }
15333
+ ]
15334
+ }
15335
+ },
14462
15336
  {
14463
15337
  "resource": "devops.pullRequests",
14464
15338
  "method": "merge",
@@ -16500,6 +17374,17 @@ export const operations = [
16500
17374
  "required": false,
16501
17375
  "description": "Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets."
16502
17376
  },
17377
+ {
17378
+ "name": "default_tier",
17379
+ "type": "string",
17380
+ "enum": [
17381
+ "economy",
17382
+ "balanced",
17383
+ "quality"
17384
+ ],
17385
+ "required": false,
17386
+ "description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
17387
+ },
16503
17388
  {
16504
17389
  "name": "name",
16505
17390
  "type": "string",
@@ -16516,7 +17401,7 @@ export const operations = [
16516
17401
  "name": "understanding",
16517
17402
  "type": "object",
16518
17403
  "required": false,
16519
- "description": "Understanding tasks enabled for new assets; omitted settings default to true."
17404
+ "description": "Understanding tasks enabled for new assets; omitted visual and transcript default to true, embedding to false."
16520
17405
  }
16521
17406
  ]
16522
17407
  }
@@ -16631,6 +17516,17 @@ export const operations = [
16631
17516
  "required": false,
16632
17517
  "description": "Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets."
16633
17518
  },
17519
+ {
17520
+ "name": "default_tier",
17521
+ "type": "string",
17522
+ "enum": [
17523
+ "economy",
17524
+ "balanced",
17525
+ "quality"
17526
+ ],
17527
+ "required": false,
17528
+ "description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
17529
+ },
16634
17530
  {
16635
17531
  "name": "name",
16636
17532
  "type": "string",
@@ -17098,7 +17994,7 @@ export const operations = [
17098
17994
  "resource": "media.assets",
17099
17995
  "method": "edit",
17100
17996
  "summary": "Edit asset",
17101
- "description": "Edit an existing asset and store the result as a new asset. Use library_id from creation or listing and asset_id from asset creation or listing; library_id also accepts the literal default, which resolves to the organization’s default library before the credential check. The source asset is never overwritten: the new asset hangs under it in the edit chain, records it in derived_from, and reads back with assets.lineage, so earlier steps stay reachable. The body is operation plus the optional model, asset_folder, understanding and idempotency_key; operation.type selects the edit and carries that operation’s own 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 redact 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 and redact on a video), and to_video, frame and resynthesize on the material each takes; every other type in the operation vocabulary is refused with OPERATION_NOT_SUPPORTED. The processing lane takes its model from the platform model catalogue, judged by the operation’s capability and overridable with operation.model, and bills per second of input; each edit is idempotent on the source, the operation and the parameters, so a second request that would make the same asset answers the asset already made instead of paying again, and an operation whose catalogue list is empty is refused with OPERATION_NOT_SUPPORTED, 尚未上架. remove_background on a video produces a portrait matte video for compositing without a green screen: output picks mask (a black-and-white matte as a small H.264 video, person white and background black: use it as a Cut track mask with channel luma under the original video to lay a lecturer over slides — the choice for compositing) or alpha (the default: the person on a transparent background as ProRes 4444, which is very large, about 870 MB per 15 seconds of 1080p, so ask for it only when a transparent file itself is the deliverable), and model picks the matting model from types.matting.models of the generation capabilities — read it first, because a request that names none takes the first available matting model and a video is refused with OPERATION_NOT_SUPPORTED, in the model field, when the platform has published none. output and model mean nothing for an image source and are refused with INVALID_PARAMS naming the field rather than ignored. inpaint takes mask, a PNG File identifier beginning with file- whose transparent area marks the region to replace, plus the prompt describing what belongs there. Aspects beyond the source asset’s material type return REFERENCE_TYPE_MISMATCH. Editing is billed by the model usage it consumes, at the same prices as the model API, and the job reports the charge in usage (US dollars, six decimals) and the new asset carries it in provenance.cost; when the job is done, tell the person the usage amount and give them the output’s viewer_url. The response is 202 with a queued Job whose type is image, whose operation is the edit applied, and whose source_asset_id is the asset edited; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until it is completed or failed, then read the produced asset. Example: POST /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/edits with {\"operation\":{\"type\":\"variations\",\"strength\":\"subtle\"}}.",
17997
+ "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.",
17102
17998
  "http": "POST",
17103
17999
  "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
17104
18000
  "streaming": "no",
@@ -17123,13 +18019,24 @@ export const operations = [
17123
18019
  "name": "operation",
17124
18020
  "type": "object",
17125
18021
  "required": true,
17126
- "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 redact 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 and redact on a video), 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."
18022
+ "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."
17127
18023
  },
17128
18024
  {
17129
18025
  "name": "model",
17130
18026
  "type": "string",
17131
18027
  "required": false,
17132
- "description": "Model that performs the edit; omit it to use the library default image model."
18028
+ "description": "Model that performs the edit; omit it to use the library default image model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter."
18029
+ },
18030
+ {
18031
+ "name": "tier",
18032
+ "type": "string",
18033
+ "enum": [
18034
+ "economy",
18035
+ "balanced",
18036
+ "quality"
18037
+ ],
18038
+ "required": false,
18039
+ "description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
17133
18040
  },
17134
18041
  {
17135
18042
  "name": "asset_folder",
@@ -17689,7 +18596,7 @@ export const operations = [
17689
18596
  "resource": "media.images",
17690
18597
  "method": "generate",
17691
18598
  "summary": "Generate image",
17692
- "description": "Generate one or more images from a text prompt and store them straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still generate. The request body is the image request itself: prompt is required, and n, size, background, output_format, output, references, seed, model, asset_folder and understanding are optional. Set output to sticker for a cut-out with a transparent background. references attach existing assets with a role — edit_target, style, structure or subject — and a model that cannot honour a role returns REFERENCE_TYPE_MISMATCH. A reference may also be an element id (a character, product, scene or brand from the materials endpoints): the service expands it into the element’s pictures and appends its description to the prompt, so the same subject stays consistent across requests. Aspect ratio is not accepted for images; name size instead. Generation is billed by the model usage it consumes, at the same prices as the model API, and the job reports the charge in usage (US dollars, six decimals, final once the job is completed or failed) and each produced asset carries its own part in provenance.cost; nothing is charged for a request refused before it starts. When the job is done, tell the person the usage amount and give them each output’s viewer_url, which opens the asset in the Console. The response is 202 with a queued Job whose type is image and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced assets from the library. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice. Example: POST /media/v1/libraries/default/images/generations with {\"prompt\":\"A red kite above a calm sea at sunrise\",\"n\":1,\"output\":\"sticker\"}.",
18599
+ "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.",
17693
18600
  "http": "POST",
17694
18601
  "path": "/media/v1/libraries/{library_id}/images/generations",
17695
18602
  "streaming": "no",
@@ -17783,7 +18690,18 @@ export const operations = [
17783
18690
  "name": "model",
17784
18691
  "type": "string",
17785
18692
  "required": false,
17786
- "description": "Model with image-generation capability; omit it to use the library default image model."
18693
+ "description": "Model with image-generation capability; omit it to use the library default image model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter."
18694
+ },
18695
+ {
18696
+ "name": "tier",
18697
+ "type": "string",
18698
+ "enum": [
18699
+ "economy",
18700
+ "balanced",
18701
+ "quality"
18702
+ ],
18703
+ "required": false,
18704
+ "description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
17787
18705
  },
17788
18706
  {
17789
18707
  "name": "asset_folder",
@@ -17814,7 +18732,7 @@ export const operations = [
17814
18732
  "resource": "media.libraries.jobs",
17815
18733
  "method": "list",
17816
18734
  "summary": "List jobs",
17817
- "description": "List batch and generation jobs in a library. Filter by status or by pipeline_run_id (the jobs one automation run started) and continue with next_cursor. Poll a generation Job until terminal; every produced output is already a library asset.",
18735
+ "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.",
17818
18736
  "http": "GET",
17819
18737
  "path": "/media/v1/libraries/{library_id}/jobs",
17820
18738
  "streaming": "no",
@@ -17867,7 +18785,7 @@ export const operations = [
17867
18785
  "resource": "media.libraries.jobs",
17868
18786
  "method": "retrieve",
17869
18787
  "summary": "Get job",
17870
- "description": "Read the current batch or generation Job status and progress. For generation, inspect outputs and failures; a successful output has already landed in the library as an asset.",
18788
+ "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.",
17871
18789
  "http": "GET",
17872
18790
  "path": "/media/v1/libraries/{library_id}/jobs/{job_id}",
17873
18791
  "streaming": "no",
@@ -17890,7 +18808,7 @@ export const operations = [
17890
18808
  "resource": "media.libraries.jobs",
17891
18809
  "method": "cancel",
17892
18810
  "summary": "Cancel job",
17893
- "description": "Cancel a queued or running generation job. Outputs already produced remain in the library; poll or read the returned Job to confirm its status. A video cannot be cancelled once the provider has started generating it: the call answers 409 JOB_INVALID_STATE (details VIDEO_ALREADY_RUNNING), and the task still finishes, is saved to the library and is charged.",
18811
+ "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.",
17894
18812
  "http": "POST",
17895
18813
  "path": "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel",
17896
18814
  "streaming": "no",
@@ -18408,7 +19326,7 @@ export const operations = [
18408
19326
  "resource": "media.videos",
18409
19327
  "method": "generate",
18410
19328
  "summary": "Generate video",
18411
- "description": "Generate one or more videos from a text prompt and store them straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still generate. mode says what the video is anchored to: text needs only a prompt, image animates the existing image named by first_frame, and first_last interpolates between first_frame and last_frame. The frames must be image or sticker assets of the same library; a fetchable URL for each is sent to the model and recorded in the produced asset’s provenance. mode reference keeps 1 to 9 pictures named in references consistent (role subject or style; not combinable with frames; a model may take fewer); a reference may be an element id, which the service expands into the element’s pictures and description. output gif is refused with OPERATION_NOT_SUPPORTED in this release, and negative_prompt, references outside mode reference and an unknown mode are refused before anything is charged. Every output lands in the library as a video asset as soon as it is ready — there is no candidate state and nothing expires, so outputs.save is not part of this lane. Generation is billed per second by the model usage it consumes, at the same prices as the model API, and the job reports the charge in usage (US dollars, six decimals) and each produced asset carries its own part in provenance.cost; a refused request costs nothing. When the job is done, tell the person the usage amount and give them each output’s viewer_url. The response is 202 with a queued Job whose type is video and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced assets from the library. Send Idempotency-Key, or idempotency_key in the body, to retry without generating and charging twice. Example: POST /media/v1/libraries/default/videos/generations with {\"prompt\":\"A red kite above a calm sea at sunrise\",\"mode\":\"text\",\"n\":1}.",
19329
+ "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.",
18412
19330
  "http": "POST",
18413
19331
  "path": "/media/v1/libraries/{library_id}/videos/generations",
18414
19332
  "streaming": "no",
@@ -18443,10 +19361,17 @@ export const operations = [
18443
19361
  "text",
18444
19362
  "image",
18445
19363
  "first_last",
18446
- "reference"
19364
+ "reference",
19365
+ "edit"
18447
19366
  ],
18448
19367
  "required": true,
18449
- "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."
19368
+ "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."
19369
+ },
19370
+ {
19371
+ "name": "source",
19372
+ "type": "string",
19373
+ "required": false,
19374
+ "description": "Asset identifier returned by upload or asset listing; distinct from public_id and content hashes."
18450
19375
  },
18451
19376
  {
18452
19377
  "name": "first_frame",
@@ -18465,13 +19390,13 @@ export const operations = [
18465
19390
  "type": "array",
18466
19391
  "itemType": "object",
18467
19392
  "required": false,
18468
- "description": "Existing assets the model may use, each with the role it plays. Required with mode reference and refused with every other mode: 1 to 9 image or sticker assets of the same library, each once, with role subject (the person, product or scene to keep) or style (the look to follow). A model may accept fewer than 9; 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."
19393
+ "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."
18469
19394
  },
18470
19395
  {
18471
19396
  "name": "duration_seconds",
18472
19397
  "type": "integer",
18473
19398
  "required": false,
18474
- "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."
19399
+ "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."
18475
19400
  },
18476
19401
  {
18477
19402
  "name": "resolution",
@@ -18517,13 +19442,24 @@ export const operations = [
18517
19442
  "name": "seed",
18518
19443
  "type": "integer",
18519
19444
  "required": false,
18520
- "description": "Seed for reproducible sampling; omit it to let the model choose one."
19445
+ "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."
18521
19446
  },
18522
19447
  {
18523
19448
  "name": "model",
18524
19449
  "type": "string",
18525
19450
  "required": false,
18526
- "description": "Model with video-generation capability; omit it to use the library default video model."
19451
+ "description": "Model with video-generation capability; omit it to use the library default video model. This is the transition-window parameter; prefer tier, and send only one of the two. A value that is exactly a tier name (economy, balanced or quality) is read as that tier; any other value is a real model id, which keeps working only during the transition and is refused once the platform retires the parameter."
19452
+ },
19453
+ {
19454
+ "name": "tier",
19455
+ "type": "string",
19456
+ "enum": [
19457
+ "economy",
19458
+ "balanced",
19459
+ "quality"
19460
+ ],
19461
+ "required": false,
19462
+ "description": "Performance tier to run this request in, an alternative to naming a model: economy is the cheapest and fastest, balanced is the best value, quality puts the result first. Send tier or model, never both — a request that carries both is refused with INVALID_PARAMS in the tier field. A capability with no model for the exact tier answers the nearest declared tier, and a tie goes to the cheaper one, so a request never pays more than it asked for; a capability that has only one model answers every tier with that model. The job and the produced asset’s provenance report the tier that actually served the request."
18527
19463
  },
18528
19464
  {
18529
19465
  "name": "asset_folder",
@@ -18550,6 +19486,79 @@ export const operations = [
18550
19486
  ]
18551
19487
  }
18552
19488
  },
19489
+ {
19490
+ "resource": "media.libraries.voices",
19491
+ "method": "create",
19492
+ "summary": "Create voice",
19493
+ "description": "Create a voice for this library. Send exactly one of the two shapes: consent_id with samples (a real person’s recordings, a consented voice, cloned before it can speak) or design_asset_id (a preview the voice-design run produced in this library, a generated voice). A generated voice is not cloned: it is ready when the call answers, its job already completed, and it speaks only through the speech model recorded on it, so speech naming another model is refused with INVALID_PARAMS. Each preview builds at most one voice, and building one gives back the design’s other previews, which then cannot be used. Sending both shapes, or neither, is refused with INVALID_PARAMS, and origin is written by the platform only. Answers 202 with a job.",
19494
+ "http": "POST",
19495
+ "path": "/media/v1/libraries/{library_id}/voices",
19496
+ "streaming": "no",
19497
+ "pagination": false,
19498
+ "pathParams": [
19499
+ {
19500
+ "name": "library_id",
19501
+ "sdkName": "library_id",
19502
+ "description": "Library ID returned by creation."
19503
+ }
19504
+ ],
19505
+ "query": [],
19506
+ "body": {
19507
+ "required": true,
19508
+ "fields": []
19509
+ }
19510
+ },
19511
+ {
19512
+ "resource": "media.libraries.voices.designs",
19513
+ "method": "create",
19514
+ "summary": "Design a voice",
19515
+ "description": "Design a voice from a text description. The model makes count preview recordings (default 3), each stored in this library as an audio asset; listen, then create a voice whose design_asset_id names the preview you chose. Send description (1 to 500 characters), preview_text (15 to 200 characters, the line each preview speaks), language (zh or en) and optionally count (1 to 3). A description that fails review fails the slot with CONTENT_REJECTED and is never retried, so changing the words is the fix. Answers 202 with a job to poll.",
19516
+ "http": "POST",
19517
+ "path": "/media/v1/libraries/{library_id}/voices/designs",
19518
+ "streaming": "no",
19519
+ "pagination": false,
19520
+ "pathParams": [
19521
+ {
19522
+ "name": "library_id",
19523
+ "sdkName": "library_id",
19524
+ "description": "Library ID returned by creation."
19525
+ }
19526
+ ],
19527
+ "query": [],
19528
+ "body": {
19529
+ "required": true,
19530
+ "fields": [
19531
+ {
19532
+ "name": "description",
19533
+ "type": "string",
19534
+ "required": true,
19535
+ "description": "Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED."
19536
+ },
19537
+ {
19538
+ "name": "preview_text",
19539
+ "type": "string",
19540
+ "required": true,
19541
+ "description": "Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call."
19542
+ },
19543
+ {
19544
+ "name": "language",
19545
+ "type": "string",
19546
+ "enum": [
19547
+ "zh",
19548
+ "en"
19549
+ ],
19550
+ "required": true,
19551
+ "description": "Language the previews speak: zh or en only."
19552
+ },
19553
+ {
19554
+ "name": "count",
19555
+ "type": "number",
19556
+ "required": false,
19557
+ "description": "How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset."
19558
+ }
19559
+ ]
19560
+ }
19561
+ },
18553
19562
  {
18554
19563
  "resource": "meta.docs",
18555
19564
  "method": "search",
@@ -20003,6 +21012,7 @@ export const operations = [
20003
21012
  "enum": [
20004
21013
  "anthropic.messages",
20005
21014
  "cohere.rerank",
21015
+ "dashscope.voice_design",
20006
21016
  "google.generateContent",
20007
21017
  "mistral.ocr",
20008
21018
  "openai.audio.speech",
@@ -20807,6 +21817,23 @@ export const operations = [
20807
21817
  "required": false,
20808
21818
  "description": "Several reference images; each entry is a URL or base64 data URL, or an object with `image_url`."
20809
21819
  },
21820
+ {
21821
+ "name": "input_videos",
21822
+ "type": "array",
21823
+ "itemType": "object",
21824
+ "required": false,
21825
+ "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."
21826
+ },
21827
+ {
21828
+ "name": "video_task",
21829
+ "type": "string",
21830
+ "enum": [
21831
+ "reference",
21832
+ "edit"
21833
+ ],
21834
+ "required": false,
21835
+ "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)."
21836
+ },
20810
21837
  {
20811
21838
  "name": "frame_images",
20812
21839
  "type": "array",
@@ -21999,7 +23026,7 @@ export const operations = [
21999
23026
  "resource": "organization.events",
22000
23027
  "method": "list",
22001
23028
  "summary": "List Organization Usage Events",
22002
- "description": "Usage events newest first, one opaque cursor page at a time; a page never duplicates or skips an event. Every item carries its metering lines (meter, display name, consumed quantity and unit, mapped from the billing measurements); the per-line price split (list unit price, pricing unit, billed cost) rides only the single event — fetch /organization/v1/events/{id} for it.\n",
23029
+ "description": "Usage events newest first by occurrence time (occurred_at, when the usage happened), one opaque cursor page at a time; a page never duplicates or skips an event. Every item carries its metering lines (meter, display name, consumed quantity and unit, mapped from the billing measurements); the per-line price split (list unit price, pricing unit, billed cost) rides only the single event — fetch /organization/v1/events/{id} for it. A cursor belongs to the order it was issued under: one obtained before this occurrence-time ordering, or used under the other sort direction, is refused with 400 INVALID_PARAMS instead of being reused — restart the listing.\n",
22003
23030
  "http": "GET",
22004
23031
  "path": "/organization/v1/events",
22005
23032
  "streaming": "no",
@@ -23342,7 +24369,7 @@ export const operations = [
23342
24369
  "resource": "organization.positions.hire",
23343
24370
  "method": "create",
23344
24371
  "summary": "Hire into a position",
23345
- "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\"}.",
24372
+ "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\"}.",
23346
24373
  "http": "POST",
23347
24374
  "path": "/organization/v1/positions/{id}/hire",
23348
24375
  "streaming": "no",
@@ -23601,7 +24628,7 @@ export const operations = [
23601
24628
  "resource": "registry.packages",
23602
24629
  "method": "retrieve",
23603
24630
  "summary": "Retrieve package",
23604
- "description": "读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404。",
24631
+ "description": "读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404。软删期间这个包一律 404,恢复后才重新出现。",
23605
24632
  "http": "GET",
23606
24633
  "path": "/registry/v1/packages/{package_id}",
23607
24634
  "streaming": "no",
@@ -23615,6 +24642,119 @@ export const operations = [
23615
24642
  ],
23616
24643
  "query": []
23617
24644
  },
24645
+ {
24646
+ "resource": "registry.packages.git.commits",
24647
+ "method": "retrieve",
24648
+ "summary": "Read a commit",
24649
+ "description": "按对象 id 读一个提交(完整 sha,不解析缩写)。返回提交信息、作者、提交时间与父提交。仓库里没有这个对象返回 404。",
24650
+ "http": "GET",
24651
+ "path": "/registry/v1/packages/{package_id}/git/commits/{sha}",
24652
+ "streaming": "no",
24653
+ "pagination": false,
24654
+ "pathParams": [
24655
+ {
24656
+ "name": "package_id",
24657
+ "sdkName": "package_id",
24658
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24659
+ },
24660
+ {
24661
+ "name": "sha",
24662
+ "sdkName": "sha",
24663
+ "description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
24664
+ }
24665
+ ],
24666
+ "query": []
24667
+ },
24668
+ {
24669
+ "resource": "registry.packages.git.files",
24670
+ "method": "retrieve",
24671
+ "summary": "Download a file from a ref",
24672
+ "description": "按引用读一个文件的原始字节,边读边发(流式),没有大小上限。path 是仓库内相对路径,可以含斜杠;ref 不给就是默认分支。路径不是文件或引用不存在返回 404。",
24673
+ "http": "GET",
24674
+ "path": "/registry/v1/packages/{package_id}/git/files/{path}",
24675
+ "streaming": "no",
24676
+ "pagination": false,
24677
+ "pathParams": [
24678
+ {
24679
+ "name": "package_id",
24680
+ "sdkName": "package_id",
24681
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24682
+ },
24683
+ {
24684
+ "name": "path",
24685
+ "sdkName": "path",
24686
+ "description": "仓库内的相对文件路径,可以含斜杠(例如 src/main.ts);不要以 / 开头,不能含 ..。"
24687
+ }
24688
+ ],
24689
+ "query": [
24690
+ {
24691
+ "name": "ref",
24692
+ "type": "string",
24693
+ "required": false,
24694
+ "description": "分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。"
24695
+ }
24696
+ ]
24697
+ },
24698
+ {
24699
+ "resource": "registry.packages.git",
24700
+ "method": "retrieveLog",
24701
+ "summary": "List commits",
24702
+ "description": "列出一个 git 包的提交历史,最新的在前。ref 不给就是包的默认分支;limit 与 offset 分页,has_more 为 true 表示还有下一页。只读:提交只能通过 git 协议推送(clone 地址在包的 clone_url)。OCI 包没有 git 读接口,返回 404。",
24703
+ "http": "GET",
24704
+ "path": "/registry/v1/packages/{package_id}/git/log",
24705
+ "streaming": "no",
24706
+ "pagination": false,
24707
+ "pathParams": [
24708
+ {
24709
+ "name": "package_id",
24710
+ "sdkName": "package_id",
24711
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24712
+ }
24713
+ ],
24714
+ "query": [
24715
+ {
24716
+ "name": "ref",
24717
+ "type": "string",
24718
+ "required": false,
24719
+ "description": "分支名、标签名、refs/… 全名或完整对象 id;不给就是包的默认分支。"
24720
+ },
24721
+ {
24722
+ "name": "limit",
24723
+ "type": "integer",
24724
+ "required": false,
24725
+ "description": "这一页最多返回多少个提交,1 到 100,默认 20。"
24726
+ },
24727
+ {
24728
+ "name": "offset",
24729
+ "type": "integer",
24730
+ "required": false,
24731
+ "description": "从历史开头跳过多少个提交,用来翻页;非负整数,默认 0。"
24732
+ }
24733
+ ]
24734
+ },
24735
+ {
24736
+ "resource": "registry.packages.git.trees",
24737
+ "method": "retrieve",
24738
+ "summary": "List a tree",
24739
+ "description": "读一个树对象(或一个提交的根树)的条目:名字、类型(blob / tree / commit)、模式、对象 id,以及已知时的大小。只列这一层,不递归。",
24740
+ "http": "GET",
24741
+ "path": "/registry/v1/packages/{package_id}/git/trees/{sha}",
24742
+ "streaming": "no",
24743
+ "pagination": false,
24744
+ "pathParams": [
24745
+ {
24746
+ "name": "package_id",
24747
+ "sdkName": "package_id",
24748
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24749
+ },
24750
+ {
24751
+ "name": "sha",
24752
+ "sdkName": "sha",
24753
+ "description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
24754
+ }
24755
+ ],
24756
+ "query": []
24757
+ },
23618
24758
  {
23619
24759
  "resource": "registry.packages.installations",
23620
24760
  "method": "list",
@@ -24232,7 +25372,7 @@ export const operations = [
24232
25372
  "resource": "sandbox.sandboxes",
24233
25373
  "method": "create",
24234
25374
  "summary": "Create sandbox (v2)",
24235
- "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.",
25375
+ "description": "Create a sandbox from a template. Every sandbox declares its lifecycle at creation. On the own face (X-Praxis-Face: own-v1) send ephemeral: true for an ephemeral sandbox (never pauses, cannot be snapshotted, deleted when it ends; for jobs such as transcodes, scripts and builds) or ephemeral: false for a persistent one (pauses and resumes, snapshots, mounts volumes, kept after it stops; for long-lived computers). Leaving ephemeral out returns INVALID_PARAMS. autoPause: true, onExpire: pause, autoPauseMemory, autoResume, idleTimeout, retention and volumes belong to persistent sandboxes and need ephemeral: false. Choose persistent only for long-lived computers. On the E2B-compatible face autoPause is the declaration: true is persistent, false or absent is ephemeral and ends at its timeout. Responses carry ephemeral. When a sandbox's machine has ended (timeout, kill, retention, provider loss), reaching it returns SANDBOX_EXPIRED (410) with terminationReason in the message: its files are gone, create a new sandbox. To keep results, declare outputs: [{ path }] on the own face (up to eight absolute paths, a directory or a file): when the sandbox ends for any reason except provider loss or a failed start, each path is packed as .tar.gz and stored in File, and the killed event of GET /sandbox/v1/events/sandboxes/{sandboxID} lists each fileId or the reason it was not kept. Paths not declared are not kept. The E2B face refuses outputs. On the own face an android phone accepts waitForReady: true, an own-face-only option: the create then waits until the phone program has connected (state running) or 55 seconds have passed since the request arrived (the vendor create itself takes about 48 s, so this is often not enough), and answers with the state it reached — a timeout is not an error; omit it (the default) and the create answers at once, before the phone connects, with state starting or booting, which you follow with the detail read or the act socket.",
24236
25376
  "http": "POST",
24237
25377
  "path": "/sandbox/v1/sandboxes",
24238
25378
  "streaming": "no",
@@ -24383,6 +25523,28 @@ export const operations = [
24383
25523
  ]
24384
25524
  }
24385
25525
  },
25526
+ {
25527
+ "resource": "sandbox.sandboxes",
25528
+ "method": "act",
25529
+ "summary": "Act on a phone sandbox's screen",
25530
+ "description": "See and operate an android sandbox's phone screen: take a screenshot, read the UI hierarchy to get a ref for each node, then tap a node or a screen point, long-press, swipe, scroll, type text, press a key, open or close an app, open a URL, or wait. Use it to drive and automate a mobile app on a phone sandbox created with templateID \"android\"; those machines have no terminal or file API, so drive the screen with this operation and run shell commands with commands.run. Start with a snapshot to learn what is on screen and to mint the refs the tap-like actions use; a ref names a node in the latest snapshot only, so after a newer snapshot, or after an action that changed the screen, take a fresh snapshot — a stale ref is refused with INVALID_PARAMS. The phone runs one action at a time, so actions on one sandbox are serial: send the next only after the previous call returns. A phone that has just been created may not have connected yet and answers 503 SERVICE_UNAVAILABLE with Retry-After: 2; retry after that delay (measured on develop: the sandbox is created in about 45 s and the phone program connects about 15 s later). Text is entered through the phone's own input, which supports ASCII only, so typing non-ASCII text into a Chinese app is not supported and answers INVALID_PARAMS. A linux sandbox has no screen and answers CAPABILITY_UNSUPPORTED.\n\nThe same path is the caller's action socket: send GET with the standard WebSocket upgrade headers instead of POST and drive many actions over one connection. The server answers {\"type\":\"ready\",\"instanceId\":\"<id>\"} first, then every frame {\"id\":\"<your correlation id>\",\"action\":{…}} (an action of the same shape as this operation's body, at most 64 characters of id) is answered by its own id, in submission order, as {\"id\":\"…\",\"result\":{…}} or {\"id\":\"…\",\"error\":{\"code\":\"…\",\"message\":\"…\",\"retryable\":true}}. At most 8 actions may be in flight on one connection (the next answers RATE_LIMITED), and 10 malformed frames in a row close the connection 1008. Authentication is the caller's own (an organization API key), never the phone's token. Closing the connection ends only that client's view: actions already accepted are answered, and the phone stays connected. Before the handshake, a phone that is still being built or has not connected yet answers 503 DEVICE_NOT_READY with the state it is in and Retry-After: 2.",
25531
+ "http": "POST",
25532
+ "path": "/sandbox/v1/sandboxes/{sandboxID}/act",
25533
+ "streaming": "no",
25534
+ "pagination": false,
25535
+ "pathParams": [
25536
+ {
25537
+ "name": "sandboxID",
25538
+ "sdkName": "sandboxID",
25539
+ "description": "Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404."
25540
+ }
25541
+ ],
25542
+ "query": [],
25543
+ "body": {
25544
+ "required": true,
25545
+ "fields": []
25546
+ }
25547
+ },
24386
25548
  {
24387
25549
  "resource": "sandbox.sandboxes",
24388
25550
  "method": "connect",
@@ -24895,7 +26057,7 @@ export const operations = [
24895
26057
  "resource": "sandbox.sandboxes.commands",
24896
26058
  "method": "run",
24897
26059
  "summary": "Run a command in the sandbox",
24898
- "description": "Execute a shell command and wait for stdout, stderr and exitCode. Supply cmd, optional cwd and envs, and timeoutMs (1–3600000 milliseconds, default 600000, that is 10 minutes; E2B defaults to 60000). Unlike E2B, this endpoint is synchronous only: no background mode, callbacks or unlimited timeout (timeoutMs 0); output is bounded to 1 MiB including stream framing. Nonzero exit codes return 200 with the result. A timeout returns COMMAND_TIMEOUT (504); transport timeout does not confirm process termination, so do not blindly retry commands with side effects. Example body: {\"cmd\":\"echo hi\"}.",
26060
+ "description": "Execute a shell command and wait for stdout, stderr and exitCode. Supply cmd, optional cwd and envs, and timeoutMs (1–3600000 milliseconds, default 600000, that is 10 minutes; E2B defaults to 60000). Unlike E2B, this endpoint is synchronous only: no background mode, callbacks or unlimited timeout (timeoutMs 0); output is bounded to 1 MiB including stream framing. Nonzero exit codes return 200 with the result. A timeout returns COMMAND_TIMEOUT (504); transport timeout does not confirm process termination, so do not blindly retry commands with side effects. On an android sandbox the command runs in the phone's root shell, its stderr is merged into stdout (read stdout and expect stderr to come back empty), and background mode is unavailable. Example body: {\"cmd\":\"echo hi\"}.",
24899
26061
  "http": "POST",
24900
26062
  "path": "/sandbox/v1/sandboxes/{sandbox_id}/commands",
24901
26063
  "streaming": "no",
@@ -26261,10 +27423,11 @@ export const operations = [
26261
27423
  "file",
26262
27424
  "artifact",
26263
27425
  "canvas",
26264
- "media_asset"
27426
+ "media_asset",
27427
+ "agent"
26265
27428
  ],
26266
27429
  "required": false,
26267
- "description": "Only shares of this object type; file, canvas and media_asset create today."
27430
+ "description": "Only shares of this object type; file, canvas, media_asset and agent create today."
26268
27431
  },
26269
27432
  {
26270
27433
  "name": "resource_id",
@@ -26301,7 +27464,7 @@ export const operations = [
26301
27464
  "resource": "share.permissions",
26302
27465
  "method": "create",
26303
27466
  "summary": "Create share",
26304
- "description": "Make one file readable by anyone holding a link, before sending the link to a person or embedding it. Name the object as resource {type, id}, with the file id from the File API. 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). The link is anonymous and read-only. A type other than file answers 400 RESOURCE_TYPE_UNSUPPORTED, and a file that is missing or outside your organization answers 404 RESOURCE_NOT_FOUND.",
27467
+ "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.",
26305
27468
  "http": "POST",
26306
27469
  "path": "/share/v1/permissions",
26307
27470
  "streaming": "no",
@@ -30024,7 +31187,7 @@ export const operations = [
30024
31187
  "name": "filter",
30025
31188
  "type": "string",
30026
31189
  "required": false,
30027
- "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."
31190
+ "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."
30028
31191
  }
30029
31192
  ]
30030
31193
  },
@@ -30225,7 +31388,7 @@ export const operations = [
30225
31388
  "name": "duplicate_of",
30226
31389
  "type": "integer",
30227
31390
  "required": false,
30228
- "description": "Repository-local number returned by create or list; distinct from the object's id."
31391
+ "description": "The original ticket's number; required when state_reason is duplicate."
30229
31392
  }
30230
31393
  ]
30231
31394
  }
@@ -31487,7 +32650,7 @@ export const operations = [
31487
32650
  "type": "array",
31488
32651
  "itemType": "string",
31489
32652
  "required": false,
31490
- "description": "Allowed destinations for the secret. Omitting allowed_hosts on creation stores an empty list for name-based resolution only: host-based redemption never matches. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed."
32653
+ "description": "Allowed destinations for the secret. Omit it to keep the current list; an empty list removes the declaration, leaving the credential for name-based resolution only — host-based redemption never matches. When supplied with entries, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed."
31491
32654
  },
31492
32655
  {
31493
32656
  "name": "description",