@deepraxis/sdk 0.1.1-dev.0d5636a → 0.1.1-dev.1016953

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.
@@ -3,7 +3,7 @@ export const operations = [
3
3
  "resource": "agent.agents",
4
4
  "method": "list",
5
5
  "summary": "List agents",
6
- "description": "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=general or kind=personal for durable-computer agents, kind=service for per-session environments, or kind=assume for external MCP clients. Pass next_page from the response as page to read the next page; a null next_page means the end.",
6
+ "description": "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=general for durable-computer agents, kind=service for per-session environments, or kind=assume for external MCP clients. Pass next_page from the response as page to read the next page; a null next_page means the end.",
7
7
  "http": "GET",
8
8
  "path": "/agent/v1/agents",
9
9
  "streaming": "no",
@@ -49,7 +49,6 @@ export const operations = [
49
49
  "type": "string",
50
50
  "enum": [
51
51
  "general",
52
- "personal",
53
52
  "service",
54
53
  "assume"
55
54
  ],
@@ -62,7 +61,7 @@ export const operations = [
62
61
  "resource": "agent.agents",
63
62
  "method": "create",
64
63
  "summary": "Create agent",
65
- "description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write, 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. 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\"}]}. 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.",
66
65
  "http": "POST",
67
66
  "path": "/agent/v1/agents",
68
67
  "streaming": "no",
@@ -134,19 +133,18 @@ export const operations = [
134
133
  "type": "array",
135
134
  "itemType": "object",
136
135
  "required": false,
137
- "description": "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal 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 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."
138
137
  },
139
138
  {
140
139
  "name": "kind",
141
140
  "type": "string",
142
141
  "enum": [
143
142
  "general",
144
- "personal",
145
143
  "service",
146
144
  "assume"
147
145
  ],
148
146
  "required": false,
149
- "description": "Immutable agent kind. general and personal require 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 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."
150
148
  },
151
149
  {
152
150
  "name": "computer_id",
@@ -196,7 +194,7 @@ export const operations = [
196
194
  "name": "avatar",
197
195
  "type": "string",
198
196
  "required": false,
199
- "description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
197
+ "description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
200
198
  },
201
199
  {
202
200
  "name": "environment_id",
@@ -364,12 +362,11 @@ export const operations = [
364
362
  "type": "string",
365
363
  "enum": [
366
364
  "general",
367
- "personal",
368
365
  "service",
369
366
  "assume"
370
367
  ],
371
368
  "required": false,
372
- "description": "Immutable agent kind. general and personal require 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."
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."
373
370
  },
374
371
  {
375
372
  "name": "computer_id",
@@ -419,7 +416,7 @@ export const operations = [
419
416
  "name": "avatar",
420
417
  "type": "string",
421
418
  "required": false,
422
- "description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
419
+ "description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
423
420
  },
424
421
  {
425
422
  "name": "environment_id",
@@ -919,7 +916,7 @@ export const operations = [
919
916
  "resource": "agent.agents.events",
920
917
  "method": "list",
921
918
  "summary": "Read your conversation with an agent",
922
- "description": "Read your conversation with a personal or general agent: the events of your own main session with that agent, the same page sessions.events.list returns — same query parameters, same data + next_page envelope, same event shapes. {agent_id} takes the agent_… id, the eight character identity number or the handle; a service or assume agent answers 400. Use it to collect a reply, to find tool calls waiting for approval, or to learn the real session id without ever asking for one.",
919
+ "description": "Read your conversation with a general agent: the events of your own main session with that agent, the same page sessions.events.list returns — same query parameters, same data + next_page envelope, same event shapes. {agent_id} takes the agent_… id, the eight character identity number or the handle; a service or assume agent answers 400. Use it to collect a reply, to find tool calls waiting for approval, or to learn the real session id without ever asking for one.",
923
920
  "http": "GET",
924
921
  "path": "/agent/v1/agents/{agent_id}/events",
925
922
  "streaming": "no",
@@ -991,7 +988,7 @@ export const operations = [
991
988
  "resource": "agent.agents.events",
992
989
  "method": "send",
993
990
  "summary": "Send events to an agent",
994
- "description": "Talk to a personal or general agent: the message goes to your own main session with that agent — one entry per person, created on first use and the same every time after — so no session id is needed. This is sessions.events.send addressed by the agent instead of the session: the same body (user.message with exactly one nonempty text block, user.interrupt, user.tool_confirmation, user.custom_tool_result, user.steer, user.withdraw), the same acknowledgement and the same billing. {agent_id} takes the agent_… id, the eight character identity number or the handle. A service or assume agent answers 400 — it has no main session: reach a service agent over A2A, or open a session explicitly with sessions.create. Read the reply with agents.events.list, or follow it while it is produced with agents.events.stream. Example: POST /agent/v1/agents/agent_example/events with {\"events\":[{\"type\":\"user.message\",\"content\":[{\"type\":\"text\",\"text\":\"你好\"}]}]}.",
991
+ "description": "Talk to a general agent: the message goes to your own main session with that agent — one entry per person, created on first use and the same every time after — so no session id is needed. This is sessions.events.send addressed by the agent instead of the session: the same body (user.message with exactly one nonempty text block, user.interrupt, user.tool_confirmation, user.custom_tool_result, user.steer, user.withdraw), the same acknowledgement and the same billing. {agent_id} takes the agent_… id, the eight character identity number or the handle. A service or assume agent answers 400 — it has no main session: reach a service agent over A2A, or open a session explicitly with sessions.create. Read the reply with agents.events.list, or follow it while it is produced with agents.events.stream. Example: POST /agent/v1/agents/agent_example/events with {\"events\":[{\"type\":\"user.message\",\"content\":[{\"type\":\"text\",\"text\":\"你好\"}]}]}.",
995
992
  "http": "POST",
996
993
  "path": "/agent/v1/agents/{agent_id}/events",
997
994
  "streaming": "no",
@@ -1020,8 +1017,8 @@ export const operations = [
1020
1017
  {
1021
1018
  "resource": "agent.agents.events",
1022
1019
  "method": "stream",
1023
- "summary": "Follow your conversation with an agent live",
1024
- "description": "Follow your conversation with a personal or general agent live over Server-Sent Events: the stream of your own main session with that agent, the same stream sessions.events.stream opens, event_deltas[] previews included. {agent_id} takes the agent_… id, the eight character identity number or the handle; a service or assume agent answers 400. Closing the stream only drops your subscription and does not stop the agent; read past events with agents.events.list.",
1020
+ "summary": "Follow an agent live",
1021
+ "description": "Follow an agent live over Server-Sent Events. For a general agent it is the stream of your own main session with that agent, the same stream sessions.events.stream opens, event_deltas[] previews included; read past events with agents.events.list. An assume agent has no main session: its body is its MCP connections, and this stream is its broadcast point, which every live connection of the agent hears at once. It carries two events, each with an SSE id: inbox.letter_delivered { letter_id, sender, sender_name, summary, thread, create_time } when a letter arrives (the letter stays unread; take it with the agent's inbox tool, the body is not in the event), and cognition.ritual_held { ritual, owner, title, engram, create_time } when a domain gives the agent a memory. Reconnect with the Last-Event-ID header to receive what you missed from a short recent buffer (about an hour); a first connection replays nothing, so read agents.inbox.letters.list for mail already waiting. {agent_id} takes the agent_… id, the eight character identity number or the handle; a service agent answers 400. Closing the stream only drops your subscription and does not stop the agent.",
1025
1022
  "http": "GET",
1026
1023
  "path": "/agent/v1/agents/{agent_id}/events/stream",
1027
1024
  "streaming": "always",
@@ -1047,6 +1044,40 @@ export const operations = [
1047
1044
  }
1048
1045
  ]
1049
1046
  },
1047
+ {
1048
+ "resource": "agent.agents.inbox.letters",
1049
+ "method": "list",
1050
+ "summary": "List an assume agent's waiting letters",
1051
+ "description": "Check whether mail waits for an assume agent without taking it: answers unread, the count of delivered letters the agent has not read, and letters, the newest unread ones (id, sender address, summary, thread, create_time; never the body). Nothing is marked read, so calling it again answers the same until the agent reads its mail with its own inbox tool (praxis_assume_inbox, action \"read\"). Use it when something outside the agent has to learn that mail arrived: the local `praxis agent events wait` reads it once on start and after every reconnect to its agent's event stream, so no letter that arrived while nothing listened is missed. {agent_id} takes the agent_… id, the eight character identity number or the handle of an assume agent in your organization; any other kind answers 400 ASSUME_AGENT_REQUIRED. To read or answer the letters, use the agent's inbox tool, not this read. Example: GET /agent/v1/agents/R1M9TQ2X/inbox/letters?unread=true&limit=5.",
1052
+ "http": "GET",
1053
+ "path": "/agent/v1/agents/{agent_id}/inbox/letters",
1054
+ "streaming": "no",
1055
+ "pagination": false,
1056
+ "pathParams": [
1057
+ {
1058
+ "name": "agent_id",
1059
+ "sdkName": "agent_id",
1060
+ "description": "The assume agent: its agent_… id, eight character identity number or handle, from agents.list or the praxis-assume MCP URL; resolved in 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_…."
1061
+ }
1062
+ ],
1063
+ "query": [
1064
+ {
1065
+ "name": "unread",
1066
+ "type": "boolean",
1067
+ "enum": [
1068
+ true
1069
+ ],
1070
+ "required": false,
1071
+ "description": "Only true is accepted, which is also the default; this read lists waiting (unread) letters and nothing else."
1072
+ },
1073
+ {
1074
+ "name": "limit",
1075
+ "type": "integer",
1076
+ "required": false,
1077
+ "description": "How many of the newest unread letters to return, 1 to 50 (default 20); unread always counts every waiting letter."
1078
+ }
1079
+ ]
1080
+ },
1050
1081
  {
1051
1082
  "resource": "agent.agents.unarchive",
1052
1083
  "method": "create",
@@ -1149,7 +1180,7 @@ export const operations = [
1149
1180
  "resource": "agent.computers",
1150
1181
  "method": "create",
1151
1182
  "summary": "Create Computer",
1152
- "description": "Create a durable computer: a named machine whose files outlive sessions, for general and personal 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.",
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.",
1153
1184
  "http": "POST",
1154
1185
  "path": "/agent/v1/computers",
1155
1186
  "streaming": "no",
@@ -1600,7 +1631,7 @@ export const operations = [
1600
1631
  "resource": "agent.deployments",
1601
1632
  "method": "create",
1602
1633
  "summary": "Create deployment",
1603
- "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 and personal 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.",
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.",
1604
1635
  "http": "POST",
1605
1636
  "path": "/agent/v1/deployments",
1606
1637
  "streaming": "no",
@@ -1677,7 +1708,7 @@ export const operations = [
1677
1708
  "name": "target",
1678
1709
  "type": "object",
1679
1710
  "required": false,
1680
- "description": "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted."
1711
+ "description": "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general agents and permits environment_id to be omitted."
1681
1712
  }
1682
1713
  ]
1683
1714
  }
@@ -1787,7 +1818,7 @@ export const operations = [
1787
1818
  "name": "target",
1788
1819
  "type": "object",
1789
1820
  "required": false,
1790
- "description": "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted."
1821
+ "description": "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general agents and permits environment_id to be omitted."
1791
1822
  }
1792
1823
  ]
1793
1824
  }
@@ -2364,7 +2395,7 @@ export const operations = [
2364
2395
  "resource": "agent.sessions.artifacts",
2365
2396
  "method": "list",
2366
2397
  "summary": "List Session Artifacts (Extension)",
2367
- "description": "List the files this session delivered; an end-customer token reads its own session.\n\nOwn-face extension. Returns { data: Artifact[] } ordered by create_time. Each artifact is one file in the session outputs directory with id, name, version, parts, source_hrefs, create_time and update_time. Delivering the same path again keeps the id and adds one to version. Files are captured seconds after the turn ends, so artifacts appear after session.status_idle; also watch the agent.artifact_delivered event. Whoever may read the session may read its artifacts; a session that is missing or not yours returns 404.",
2398
+ "description": "List the files this session delivered; an end-customer token reads its own session.\n\nOwn-face extension. Returns { data: Artifact[] } ordered by create_time. Each artifact is one file in the session outputs directory, or one canvas or media asset the reply pointed at (a part with kind object carrying object_type, object_id and href; one artifact per object, pointing at it again adds no version), with id, name, version, parts, source_hrefs, create_time and update_time. Delivering the same path again keeps the id and adds one to version. Files are captured seconds after the turn ends, so artifacts appear after session.status_idle; also watch the agent.artifact_delivered event. Whoever may read the session may read its artifacts; a session that is missing or not yours returns 404.",
2368
2399
  "http": "GET",
2369
2400
  "path": "/agent/v1/sessions/{session_id}/artifacts",
2370
2401
  "streaming": "no",
@@ -2382,7 +2413,7 @@ export const operations = [
2382
2413
  "resource": "agent.sessions.artifacts.contentUrl",
2383
2414
  "method": "create",
2384
2415
  "summary": "Create Artifact Content URL (Extension)",
2385
- "description": "Mint a short-lived download address for one file of an artifact.\n\nOwn-face extension. The body is optional: part (index into the artifact parts, default 0) and ttl_seconds (60 to 300, default 300). Returns { url, expire_time }. The address works for minutes; do not store or log it. An unknown artifact or an out-of-range part returns 404 ARTIFACT_NOT_FOUND, a session that is missing or not yours returns 404, and a ttl_seconds outside 60 to 300 returns 400.",
2416
+ "description": "Mint a short-lived download address for one file of an artifact.\n\nOwn-face extension. The body is optional: part (index into the artifact parts, default 0) and ttl_seconds (60 to 300, default 300). Returns { url, expire_time }. The address works for minutes; do not store or log it. For an object part the address serves a snapshot picture of a canvas or the own bytes of the asset; an object that no longer exists returns 404 ARTIFACT_NOT_FOUND and a failing share service returns 502. An unknown artifact or an out-of-range part returns 404 ARTIFACT_NOT_FOUND, a session that is missing or not yours returns 404, and a ttl_seconds outside 60 to 300 returns 400.",
2386
2417
  "http": "POST",
2387
2418
  "path": "/agent/v1/sessions/{session_id}/artifacts/{artifact_id}/content_url",
2388
2419
  "streaming": "no",
@@ -2587,7 +2618,7 @@ export const operations = [
2587
2618
  "resource": "agent.sessions.events",
2588
2619
  "method": "list",
2589
2620
  "summary": "List session events",
2590
- "description": "Read the event history of a session as a page of events, oldest first by default (order=desc for newest first). Use it after sending a message to collect the reply, to find tool calls that wait for approval or client custom tool results (session.status_idle with stop_reason requires_action lists their event_ids; a request nobody answered within 24 hours is settled as unanswered and the session goes idle with stop_reason request_expired, which the /anthropic/v1 face shows as end_turn), or to audit a run; to follow a running session live use sessions.events.stream instead. Filter by types and by a created_at range on processed_at; pages hold at most 100 events (default 20) and next_page continues. A failed run emits session.error before session.status_terminated. Native history also includes user.steer, user.withdraw, system.notification, session.forked, session.goal_changed and session.goal_verification; these are not accepted by the /anthropic/v1 event-type filter. This operation addresses one session — normally a worker session an agent dispatched; to talk to a personal or general agent itself, use agents.events.list instead. In the path, session_id may also be `main` (your own main session with that agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.",
2621
+ "description": "Read the event history of a session as a page of events, oldest first by default (order=desc for newest first). Use it after sending a message to collect the reply, to find tool calls that wait for approval or client custom tool results (session.status_idle with stop_reason requires_action lists their event_ids; a request nobody answered within 24 hours is settled as unanswered and the session goes idle with stop_reason request_expired, which the /anthropic/v1 face shows as end_turn), or to audit a run; to follow a running session live use sessions.events.stream instead. Filter by types and by a created_at range on processed_at; pages hold at most 100 events (default 20) and next_page continues. A failed run emits session.error before session.status_terminated. Native history also includes user.steer, user.withdraw, system.notification, system.notification_suppressed (pending background notifications that hit the wake quota and started no run), system.notification_recorded, session.forked, session.goal_changed and session.goal_verification; these are not accepted by the /anthropic/v1 event-type filter. This operation addresses one session — normally a worker session an agent dispatched; to talk to a general agent itself, use agents.events.list instead. In the path, session_id may also be `main` (your own main session with that agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.",
2591
2622
  "http": "GET",
2592
2623
  "path": "/agent/v1/sessions/{session_id}/events",
2593
2624
  "streaming": "no",
@@ -2659,7 +2690,7 @@ export const operations = [
2659
2690
  "resource": "agent.sessions.events",
2660
2691
  "method": "send",
2661
2692
  "summary": "Send session events",
2662
- "description": "Attach optional praxis_context={items:[{name,value}]} to user.message for untrusted page context on this turn only (maximum 32 items, 4096 UTF-8 JSON bytes). /anthropic/v1 rejects this field. Send events to a session: user.message (exactly one nonempty text block), user.interrupt, user.tool_confirmation to allow or deny a pending tool call, user.custom_tool_result to return a custom tool result, user.steer to inject a queued user.message into a turn that is still running, and user.withdraw to retract a queued message. The response only acknowledges the inputs; read replies with sessions.events.list or sessions.events.stream. A message sent while the session waits for tool approval is queued (processed_at null) and runs in order after the approval is resolved. Archived sessions reject new messages. To approve, read a pending agent.tool_use or agent.mcp_tool_use event and send {type: \"user.tool_confirmation\", tool_use_id: <that event id>, result: \"allow\"} (or deny); include session_thread_id for a child approval. Native confirmations also accept updated_permissions, answers and annotations, which /anthropic/v1 rejects. Both faces accept user.custom_tool_result with custom_tool_use_id from agent.custom_tool_use.id or the requires_action stop_reason.event_ids. Unlike Anthropic, result content accepts only text blocks (omit it for an empty array). Omitted or null is_error means false. The server routes child calls by id; session_thread_id is rejected in this input. Unknown call ids return 400; duplicate results or calls no longer waiting return 409. This operation addresses one session — normally a worker session an agent dispatched; to talk to a personal or general agent itself, use agents.events.send instead. In the path, session_id may also be `main` (your own main session with the agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.",
2693
+ "description": "Attach optional praxis_context={items:[{name,value}]} to user.message for untrusted page context on this turn only (maximum 32 items, 4096 UTF-8 JSON bytes). /anthropic/v1 rejects this field. Send events to a session: user.message (exactly one nonempty text block), user.interrupt, user.tool_confirmation to allow or deny a pending tool call, user.custom_tool_result to return a custom tool result, user.steer to inject a queued user.message into a turn that is still running, and user.withdraw to retract a queued message. The response only acknowledges the inputs; read replies with sessions.events.list or sessions.events.stream. A message sent while the session waits for tool approval is queued (processed_at null) and runs in order after the approval is resolved. Archived sessions reject new messages. To approve, read a pending agent.tool_use or agent.mcp_tool_use event and send {type: \"user.tool_confirmation\", tool_use_id: <that event id>, result: \"allow\"} (or deny); include session_thread_id for a child approval. Native confirmations also accept updated_permissions, answers and annotations, which /anthropic/v1 rejects. Both faces accept user.custom_tool_result with custom_tool_use_id from agent.custom_tool_use.id or the requires_action stop_reason.event_ids. Unlike Anthropic, result content accepts only text blocks (omit it for an empty array). Omitted or null is_error means false. The server routes child calls by id; session_thread_id is rejected in this input. Unknown call ids return 400; duplicate results or calls no longer waiting return 409. This operation addresses one session — normally a worker session an agent dispatched; to talk to a general agent itself, use agents.events.send instead. In the path, session_id may also be `main` (your own main session with the agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.",
2663
2694
  "http": "POST",
2664
2695
  "path": "/agent/v1/sessions/{session_id}/events",
2665
2696
  "streaming": "no",
@@ -2689,7 +2720,7 @@ export const operations = [
2689
2720
  "resource": "agent.sessions.events",
2690
2721
  "method": "stream",
2691
2722
  "summary": "Stream session events",
2692
- "description": "Open a Server-Sent Events stream of a session's events in real time. Use it to show a reply as it is produced; to read past events use sessions.events.list. Send a message through sessions.events.send in another request while the stream is open. Closing the stream only drops your subscription and does not stop the agent. Pass event_deltas[]=agent.message, agent.thinking or agent.tool_use to also receive event_start / event_delta previews before the final event. This operation addresses one session — normally a worker session an agent dispatched; to follow a personal or general agent itself, use agents.events.stream instead. In the path, session_id may also be `main` (your own main session with the agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.",
2723
+ "description": "Open a Server-Sent Events stream of a session's events in real time. Use it to show a reply as it is produced; to read past events use sessions.events.list. Send a message through sessions.events.send in another request while the stream is open. Closing the stream only drops your subscription and does not stop the agent. Pass event_deltas[]=agent.message, agent.thinking or agent.tool_use to also receive event_start / event_delta previews before the final event. This operation addresses one session — normally a worker session an agent dispatched; to follow a general agent itself, use agents.events.stream instead. In the path, session_id may also be `main` (your own main session with the agent) or a short session name, and either alias then requires agent_id with the agent_… id, the eight character identity number or the handle; only the own face /agent/v1 accepts an alias, /anthropic/v1 requires a real sesn_… id.",
2693
2724
  "http": "GET",
2694
2725
  "path": "/agent/v1/sessions/{session_id}/events/stream",
2695
2726
  "streaming": "always",
@@ -3378,7 +3409,7 @@ export const operations = [
3378
3409
  "resource": "agent.toolsets",
3379
3410
  "method": "list",
3380
3411
  "summary": "List Toolsets",
3381
- "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.",
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, 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.",
3382
3413
  "http": "GET",
3383
3414
  "path": "/agent/v1/toolsets",
3384
3415
  "streaming": "no",
@@ -3386,6 +3417,65 @@ export const operations = [
3386
3417
  "pathParams": [],
3387
3418
  "query": []
3388
3419
  },
3420
+ {
3421
+ "resource": "agent.uploads",
3422
+ "method": "create",
3423
+ "summary": "Upload a File (Extension)",
3424
+ "description": "Start an upload for an embedded end user, so the browser can PUT the file's bytes straight to the File service and then attach the resulting file id to its own session. Use it only with an end-user token: a grant-bound end_user token uploads for its own agent, and an organization-level customer token must name the agent in the body (agent). A member, robot or user_key credential uses /file/v1 instead and gets 404 here. Body: filename (1–255 characters, its extension decides the blocked-type refusal), bytes (the positive byte length) and content_type (1–255 characters). Returns 201 with the File signed-upload answer: upload_id and expires_at, and url for a small file, or part_size, parts, complete_url and status_url for a large one; the addresses are returned here only and must never be stored or logged. The browser PUTs the bytes to the address (or to each part and then complete_url), which answers the File object and its file_id; then POST the file_id to /agent/v1/sessions/{session_id}/resources, and reference it in the message attachments. Refusals: 403 UPLOADS_DISABLED when uploads are off on the agent, 413 FILE_TOO_LARGE when bytes exceeds its uploads.max_file_bytes, 400 FILE_TYPE_REFUSED for a blocked executable or script extension, and 429 UPLOAD_RATE_LIMITED on the 31st unattached upload from the same user on the same agent within an hour. Example: POST /agent/v1/uploads with {\"filename\":\"report.pdf\",\"bytes\":48211,\"content_type\":\"application/pdf\"}.",
3425
+ "http": "POST",
3426
+ "path": "/agent/v1/uploads",
3427
+ "streaming": "no",
3428
+ "pagination": false,
3429
+ "pathParams": [],
3430
+ "query": [],
3431
+ "body": {
3432
+ "required": true,
3433
+ "fields": [
3434
+ {
3435
+ "name": "filename",
3436
+ "type": "string",
3437
+ "required": true,
3438
+ "description": "The file's name, its extension included; the extension decides which blocked executable and script types are refused. 1 to 255 characters."
3439
+ },
3440
+ {
3441
+ "name": "bytes",
3442
+ "type": "integer",
3443
+ "required": true,
3444
+ "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."
3445
+ },
3446
+ {
3447
+ "name": "content_type",
3448
+ "type": "string",
3449
+ "required": true,
3450
+ "description": "The file's MIME type, such as image/png, stored on the file; not used to refuse the upload. 1 to 255 characters."
3451
+ },
3452
+ {
3453
+ "name": "agent",
3454
+ "type": "string",
3455
+ "required": false,
3456
+ "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."
3457
+ }
3458
+ ]
3459
+ }
3460
+ },
3461
+ {
3462
+ "resource": "agent.uploads.contentUrl",
3463
+ "method": "create",
3464
+ "summary": "Create Upload Content URL (Extension)",
3465
+ "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.",
3466
+ "http": "POST",
3467
+ "path": "/agent/v1/uploads/{file_id}/content_url",
3468
+ "streaming": "no",
3469
+ "pagination": false,
3470
+ "pathParams": [
3471
+ {
3472
+ "name": "file_id",
3473
+ "sdkName": "file_id",
3474
+ "description": "File id (file-… ) the File service returned after the bytes were uploaded; only the caller's own upload is readable."
3475
+ }
3476
+ ],
3477
+ "query": []
3478
+ },
3389
3479
  {
3390
3480
  "resource": "application.assets.upload",
3391
3481
  "method": "create",
@@ -8303,55 +8393,127 @@ export const operations = [
8303
8393
  }
8304
8394
  },
8305
8395
  {
8306
- "resource": "crm.changes",
8307
- "method": "revert",
8308
- "summary": "Revert change set",
8309
- "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.",
8310
- "http": "POST",
8311
- "path": "/crm/v1/changes/{changeSetId}:revert",
8396
+ "resource": "content.contents",
8397
+ "method": "list",
8398
+ "summary": "List contents",
8399
+ "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.",
8400
+ "http": "GET",
8401
+ "path": "/content/v1/contents",
8312
8402
  "streaming": "no",
8313
8403
  "pagination": false,
8314
- "pathParams": [
8404
+ "pathParams": [],
8405
+ "query": [
8315
8406
  {
8316
- "name": "changeSetId",
8317
- "sdkName": "changeSetId",
8318
- "description": "Change-set identifier recorded for the original write in property history; one request forms one change set."
8407
+ "name": "page_size",
8408
+ "type": "integer",
8409
+ "required": false,
8410
+ "description": "Maximum contents in one page, from 1 to 100; defaults to 50."
8411
+ },
8412
+ {
8413
+ "name": "page_token",
8414
+ "type": "string",
8415
+ "required": false,
8416
+ "description": "next_page from the preceding list response with the same filters; omit for the first page."
8417
+ },
8418
+ {
8419
+ "name": "status",
8420
+ "type": "string",
8421
+ "enum": [
8422
+ "draft",
8423
+ "published",
8424
+ "unpublished",
8425
+ "archived"
8426
+ ],
8427
+ "required": false,
8428
+ "description": "Only contents in this publication state; draft, published, unpublished or archived. Omit to see every state but archived."
8429
+ },
8430
+ {
8431
+ "name": "kind",
8432
+ "type": "string",
8433
+ "required": false,
8434
+ "description": "Only contents of this kind; video is the only kind today."
8435
+ },
8436
+ {
8437
+ "name": "asset_id",
8438
+ "type": "string",
8439
+ "required": false,
8440
+ "description": "Only contents made from this Media asset id, from praxis.media; omit for every asset."
8441
+ },
8442
+ {
8443
+ "name": "q",
8444
+ "type": "string",
8445
+ "required": false,
8446
+ "description": "Substring of the content title to match, for example lesson; omit for every title."
8319
8447
  }
8320
- ],
8321
- "query": []
8448
+ ]
8322
8449
  },
8323
8450
  {
8324
- "resource": "crm.layouts",
8451
+ "resource": "content.contents",
8452
+ "method": "create",
8453
+ "summary": "Create a content",
8454
+ "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.",
8455
+ "http": "POST",
8456
+ "path": "/content/v1/contents",
8457
+ "streaming": "no",
8458
+ "pagination": false,
8459
+ "pathParams": [],
8460
+ "query": [],
8461
+ "body": {
8462
+ "required": true,
8463
+ "fields": [
8464
+ {
8465
+ "name": "kind",
8466
+ "type": "string",
8467
+ "required": true,
8468
+ "description": "Content kind to create; video is the only kind today."
8469
+ },
8470
+ {
8471
+ "name": "title",
8472
+ "type": "string",
8473
+ "required": true,
8474
+ "description": "Merchant-facing title for the content, a non-empty string."
8475
+ },
8476
+ {
8477
+ "name": "settings",
8478
+ "type": "object",
8479
+ "required": false,
8480
+ "description": "The settings a create accepts; only source is required, and the other groups keep their defaults when omitted."
8481
+ }
8482
+ ]
8483
+ }
8484
+ },
8485
+ {
8486
+ "resource": "content.contents",
8325
8487
  "method": "retrieve",
8326
- "summary": "Retrieve record layout",
8327
- "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.",
8488
+ "summary": "Get a content",
8489
+ "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.",
8328
8490
  "http": "GET",
8329
- "path": "/crm/v1/layouts/{objectType}",
8491
+ "path": "/content/v1/contents/{content_id}",
8330
8492
  "streaming": "no",
8331
8493
  "pagination": false,
8332
8494
  "pathParams": [
8333
8495
  {
8334
- "name": "objectType",
8335
- "sdkName": "objectType",
8336
- "description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
8496
+ "name": "content_id",
8497
+ "sdkName": "content_id",
8498
+ "description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
8337
8499
  }
8338
8500
  ],
8339
8501
  "query": []
8340
8502
  },
8341
8503
  {
8342
- "resource": "crm.layouts",
8504
+ "resource": "content.contents",
8343
8505
  "method": "update",
8344
- "summary": "Update record layout",
8345
- "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.",
8346
- "http": "PUT",
8347
- "path": "/crm/v1/layouts/{objectType}",
8506
+ "summary": "Update a content",
8507
+ "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.",
8508
+ "http": "PATCH",
8509
+ "path": "/content/v1/contents/{content_id}",
8348
8510
  "streaming": "no",
8349
8511
  "pagination": false,
8350
8512
  "pathParams": [
8351
8513
  {
8352
- "name": "objectType",
8353
- "sdkName": "objectType",
8354
- "description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
8514
+ "name": "content_id",
8515
+ "sdkName": "content_id",
8516
+ "description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
8355
8517
  }
8356
8518
  ],
8357
8519
  "query": [],
@@ -8359,103 +8521,317 @@ export const operations = [
8359
8521
  "required": true,
8360
8522
  "fields": [
8361
8523
  {
8362
- "name": "objectType",
8524
+ "name": "title",
8363
8525
  "type": "string",
8364
- "required": true,
8365
- "description": "Object type whose record page uses this layout, matching the path parameter."
8366
- },
8367
- {
8368
- "name": "summary",
8369
- "type": "array",
8370
- "itemType": "object",
8371
- "required": true,
8372
- "description": "Ordered statistic tiles below the record header, with at most three tiles."
8373
- },
8374
- {
8375
- "name": "sidebar",
8376
- "type": "array",
8377
- "itemType": "string",
8378
- "required": true,
8379
- "description": "Ordered internal property names shown in the record property sidebar."
8526
+ "required": false,
8527
+ "description": "New merchant-facing title for the content."
8380
8528
  },
8381
8529
  {
8382
- "name": "sections",
8383
- "type": "array",
8384
- "itemType": "string",
8385
- "required": true,
8386
- "description": "Ordered main-column sections for activity, relationships, tables and property groups."
8530
+ "name": "settings",
8531
+ "type": "object",
8532
+ "required": false,
8533
+ "description": "A deep-partial of the four settings groups; a group left out keeps its current value and access changes take effect at once."
8387
8534
  }
8388
8535
  ]
8389
8536
  }
8390
8537
  },
8391
8538
  {
8392
- "resource": "crm.leads",
8393
- "method": "qualify",
8394
- "summary": "Qualify lead",
8395
- "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.",
8539
+ "resource": "content.contents",
8540
+ "method": "archive",
8541
+ "summary": "Archive a content",
8542
+ "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.",
8396
8543
  "http": "POST",
8397
- "path": "/crm/v1/leads/{leadId}:qualify",
8544
+ "path": "/content/v1/contents/{content_id}/archive",
8398
8545
  "streaming": "no",
8399
8546
  "pagination": false,
8400
8547
  "pathParams": [
8401
8548
  {
8402
- "name": "leadId",
8403
- "sdkName": "leadId",
8404
- "description": "Lead record identifier from objects.list or objects.search with objectType=leads."
8549
+ "name": "content_id",
8550
+ "sdkName": "content_id",
8551
+ "description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
8552
+ }
8553
+ ],
8554
+ "query": []
8555
+ },
8556
+ {
8557
+ "resource": "content.contents",
8558
+ "method": "publish",
8559
+ "summary": "Publish a content",
8560
+ "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.",
8561
+ "http": "POST",
8562
+ "path": "/content/v1/contents/{content_id}/publish",
8563
+ "streaming": "no",
8564
+ "pagination": false,
8565
+ "pathParams": [
8566
+ {
8567
+ "name": "content_id",
8568
+ "sdkName": "content_id",
8569
+ "description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
8405
8570
  }
8406
8571
  ],
8407
8572
  "query": [],
8408
8573
  "body": {
8409
- "required": true,
8574
+ "required": false,
8410
8575
  "fields": [
8411
8576
  {
8412
- "name": "contact",
8413
- "type": "object",
8414
- "required": true,
8415
- "description": "Keep the existing contact, or merge it into the chosen contact record."
8416
- },
8417
- {
8418
- "name": "company",
8419
- "type": "object",
8420
- "required": true,
8421
- "description": "Leave company unchanged, associate an existing company, or create one with explicit properties."
8422
- },
8423
- {
8424
- "name": "deal",
8425
- "type": "object",
8577
+ "name": "version",
8578
+ "type": "integer",
8426
8579
  "required": false,
8427
- "description": "Optional deal to create as part of qualification; omit to qualify without creating a deal."
8428
- },
8429
- {
8430
- "name": "qualifiedStageId",
8431
- "type": "string",
8432
- "required": true,
8433
- "description": "Lead stage id with praxis_category=won, obtained from the leads pipeline."
8580
+ "description": "Existing version number to make live, from the versions list; omit it to publish the latest version."
8434
8581
  }
8435
8582
  ]
8436
8583
  }
8437
8584
  },
8438
8585
  {
8439
- "resource": "crm.objects",
8586
+ "resource": "content.contents",
8587
+ "method": "unpublish",
8588
+ "summary": "Unpublish a content",
8589
+ "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.",
8590
+ "http": "POST",
8591
+ "path": "/content/v1/contents/{content_id}/unpublish",
8592
+ "streaming": "no",
8593
+ "pagination": false,
8594
+ "pathParams": [
8595
+ {
8596
+ "name": "content_id",
8597
+ "sdkName": "content_id",
8598
+ "description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
8599
+ }
8600
+ ],
8601
+ "query": []
8602
+ },
8603
+ {
8604
+ "resource": "content.versions",
8440
8605
  "method": "list",
8441
- "summary": "List records",
8442
- "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.",
8606
+ "summary": "List versions",
8607
+ "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.",
8443
8608
  "http": "GET",
8444
- "path": "/crm/v1/objects/{objectType}",
8609
+ "path": "/content/v1/contents/{content_id}/versions",
8445
8610
  "streaming": "no",
8446
8611
  "pagination": false,
8447
8612
  "pathParams": [
8448
8613
  {
8449
- "name": "objectType",
8450
- "sdkName": "objectType",
8451
- "description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
8614
+ "name": "content_id",
8615
+ "sdkName": "content_id",
8616
+ "description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
8452
8617
  }
8453
8618
  ],
8454
8619
  "query": [
8455
8620
  {
8456
- "name": "after",
8457
- "type": "string",
8458
- "required": false,
8621
+ "name": "page_size",
8622
+ "type": "integer",
8623
+ "required": false,
8624
+ "description": "Maximum versions in one page, from 1 to 100; defaults to 50."
8625
+ },
8626
+ {
8627
+ "name": "page_token",
8628
+ "type": "string",
8629
+ "required": false,
8630
+ "description": "next_page from the preceding versions response; omit for the first page."
8631
+ }
8632
+ ]
8633
+ },
8634
+ {
8635
+ "resource": "content.versions",
8636
+ "method": "retrieve",
8637
+ "summary": "Get a version",
8638
+ "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.",
8639
+ "http": "GET",
8640
+ "path": "/content/v1/contents/{content_id}/versions/{version}",
8641
+ "streaming": "no",
8642
+ "pagination": false,
8643
+ "pathParams": [
8644
+ {
8645
+ "name": "content_id",
8646
+ "sdkName": "content_id",
8647
+ "description": "Content id (cnt_…) from praxis.content.contents.create or praxis.content.contents.list; a content of another organization answers CONTENT_NOT_FOUND."
8648
+ },
8649
+ {
8650
+ "name": "version",
8651
+ "sdkName": "version",
8652
+ "type": "integer",
8653
+ "description": "Positive version number from the versions list, for example 3; never zero and never the literal latest."
8654
+ }
8655
+ ],
8656
+ "query": []
8657
+ },
8658
+ {
8659
+ "resource": "content.playbackSessions",
8660
+ "method": "create",
8661
+ "summary": "Open a playback session",
8662
+ "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.",
8663
+ "http": "POST",
8664
+ "path": "/content/v1/playback/sessions",
8665
+ "streaming": "no",
8666
+ "pagination": false,
8667
+ "pathParams": [],
8668
+ "query": [],
8669
+ "body": {
8670
+ "required": true,
8671
+ "fields": [
8672
+ {
8673
+ "name": "content_id",
8674
+ "type": "string",
8675
+ "required": true,
8676
+ "description": "Published content to play, from praxis.content.contents.create or praxis.content.contents.list."
8677
+ }
8678
+ ]
8679
+ }
8680
+ },
8681
+ {
8682
+ "resource": "crm.changes",
8683
+ "method": "revert",
8684
+ "summary": "Revert change set",
8685
+ "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.",
8686
+ "http": "POST",
8687
+ "path": "/crm/v1/changes/{changeSetId}:revert",
8688
+ "streaming": "no",
8689
+ "pagination": false,
8690
+ "pathParams": [
8691
+ {
8692
+ "name": "changeSetId",
8693
+ "sdkName": "changeSetId",
8694
+ "description": "Change-set identifier recorded for the original write in property history; one request forms one change set."
8695
+ }
8696
+ ],
8697
+ "query": []
8698
+ },
8699
+ {
8700
+ "resource": "crm.layouts",
8701
+ "method": "retrieve",
8702
+ "summary": "Retrieve record layout",
8703
+ "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.",
8704
+ "http": "GET",
8705
+ "path": "/crm/v1/layouts/{objectType}",
8706
+ "streaming": "no",
8707
+ "pagination": false,
8708
+ "pathParams": [
8709
+ {
8710
+ "name": "objectType",
8711
+ "sdkName": "objectType",
8712
+ "description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
8713
+ }
8714
+ ],
8715
+ "query": []
8716
+ },
8717
+ {
8718
+ "resource": "crm.layouts",
8719
+ "method": "update",
8720
+ "summary": "Update record layout",
8721
+ "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.",
8722
+ "http": "PUT",
8723
+ "path": "/crm/v1/layouts/{objectType}",
8724
+ "streaming": "no",
8725
+ "pagination": false,
8726
+ "pathParams": [
8727
+ {
8728
+ "name": "objectType",
8729
+ "sdkName": "objectType",
8730
+ "description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
8731
+ }
8732
+ ],
8733
+ "query": [],
8734
+ "body": {
8735
+ "required": true,
8736
+ "fields": [
8737
+ {
8738
+ "name": "objectType",
8739
+ "type": "string",
8740
+ "required": true,
8741
+ "description": "Object type whose record page uses this layout, matching the path parameter."
8742
+ },
8743
+ {
8744
+ "name": "summary",
8745
+ "type": "array",
8746
+ "itemType": "object",
8747
+ "required": true,
8748
+ "description": "Ordered statistic tiles below the record header, with at most three tiles."
8749
+ },
8750
+ {
8751
+ "name": "sidebar",
8752
+ "type": "array",
8753
+ "itemType": "string",
8754
+ "required": true,
8755
+ "description": "Ordered internal property names shown in the record property sidebar."
8756
+ },
8757
+ {
8758
+ "name": "sections",
8759
+ "type": "array",
8760
+ "itemType": "string",
8761
+ "required": true,
8762
+ "description": "Ordered main-column sections for activity, relationships, tables and property groups."
8763
+ }
8764
+ ]
8765
+ }
8766
+ },
8767
+ {
8768
+ "resource": "crm.leads",
8769
+ "method": "qualify",
8770
+ "summary": "Qualify lead",
8771
+ "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.",
8772
+ "http": "POST",
8773
+ "path": "/crm/v1/leads/{leadId}:qualify",
8774
+ "streaming": "no",
8775
+ "pagination": false,
8776
+ "pathParams": [
8777
+ {
8778
+ "name": "leadId",
8779
+ "sdkName": "leadId",
8780
+ "description": "Lead record identifier from objects.list or objects.search with objectType=leads."
8781
+ }
8782
+ ],
8783
+ "query": [],
8784
+ "body": {
8785
+ "required": true,
8786
+ "fields": [
8787
+ {
8788
+ "name": "contact",
8789
+ "type": "object",
8790
+ "required": true,
8791
+ "description": "Keep the existing contact, or merge it into the chosen contact record."
8792
+ },
8793
+ {
8794
+ "name": "company",
8795
+ "type": "object",
8796
+ "required": true,
8797
+ "description": "Leave company unchanged, associate an existing company, or create one with explicit properties."
8798
+ },
8799
+ {
8800
+ "name": "deal",
8801
+ "type": "object",
8802
+ "required": false,
8803
+ "description": "Optional deal to create as part of qualification; omit to qualify without creating a deal."
8804
+ },
8805
+ {
8806
+ "name": "qualifiedStageId",
8807
+ "type": "string",
8808
+ "required": true,
8809
+ "description": "Lead stage id with praxis_category=won, obtained from the leads pipeline."
8810
+ }
8811
+ ]
8812
+ }
8813
+ },
8814
+ {
8815
+ "resource": "crm.objects",
8816
+ "method": "list",
8817
+ "summary": "List records",
8818
+ "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.",
8819
+ "http": "GET",
8820
+ "path": "/crm/v1/objects/{objectType}",
8821
+ "streaming": "no",
8822
+ "pagination": false,
8823
+ "pathParams": [
8824
+ {
8825
+ "name": "objectType",
8826
+ "sdkName": "objectType",
8827
+ "description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
8828
+ }
8829
+ ],
8830
+ "query": [
8831
+ {
8832
+ "name": "after",
8833
+ "type": "string",
8834
+ "required": false,
8459
8835
  "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."
8460
8836
  },
8461
8837
  {
@@ -10014,48 +10390,65 @@ export const operations = [
10014
10390
  }
10015
10391
  },
10016
10392
  {
10017
- "resource": "cut.exports",
10018
- "method": "retrieve",
10019
- "summary": "Retrieve video export",
10020
- "description": "Poll an export id returned by projects.exports.create or list to observe render progress. queued, fetching, rendering, stitching and saving are in progress; done provides asset in the target library, failed provides error, and canceled means the job stopped. Only done confirms a usable output asset.",
10021
- "http": "GET",
10022
- "path": "/cut/v1/exports/{export_id}",
10393
+ "resource": "customer.accessTokens",
10394
+ "method": "create",
10395
+ "summary": "Exchange a grant code or publishable key",
10396
+ "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.",
10397
+ "http": "POST",
10398
+ "path": "/customer/v1/access_tokens",
10023
10399
  "streaming": "no",
10024
10400
  "pagination": false,
10025
- "pathParams": [
10026
- {
10027
- "name": "export_id",
10028
- "sdkName": "export_id",
10029
- "description": "Export identifier returned by its create or list operation; use the id, not a display name."
10030
- }
10031
- ],
10401
+ "pathParams": [],
10402
+ "query": [],
10403
+ "body": {
10404
+ "required": true,
10405
+ "fields": [
10406
+ {
10407
+ "name": "grant_code",
10408
+ "type": "string",
10409
+ "required": false,
10410
+ "description": "A grant code (cgc_…) from grant_codes, for an end user you signed in from your backend; it works once."
10411
+ },
10412
+ {
10413
+ "name": "publishable_key",
10414
+ "type": "string",
10415
+ "required": false,
10416
+ "description": "A publishable key (pk_…) for an anonymous visitor; the exchange creates a new anonymous end user bound to the request Origin."
10417
+ }
10418
+ ]
10419
+ }
10420
+ },
10421
+ {
10422
+ "resource": "customer.accessTokens",
10423
+ "method": "revoke",
10424
+ "summary": "Sign out the current token",
10425
+ "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.",
10426
+ "http": "DELETE",
10427
+ "path": "/customer/v1/access_tokens/current",
10428
+ "streaming": "no",
10429
+ "pagination": false,
10430
+ "pathParams": [],
10032
10431
  "query": []
10033
10432
  },
10034
10433
  {
10035
- "resource": "cut.exports",
10036
- "method": "cancel",
10037
- "summary": "Cancel video export",
10038
- "description": "Request cancellation of an export obtained from projects.exports.create or list when its output is no longer needed. Read the returned job status and retrieve it to confirm the terminal outcome; do not interpret a cancellation request as successful rendering.",
10434
+ "resource": "customer.accessTokens",
10435
+ "method": "renew",
10436
+ "summary": "Renew an access token",
10437
+ "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.",
10039
10438
  "http": "POST",
10040
- "path": "/cut/v1/exports/{export_id}:cancel",
10439
+ "path": "/customer/v1/access_tokens/renew",
10041
10440
  "streaming": "no",
10042
10441
  "pagination": false,
10043
- "pathParams": [
10044
- {
10045
- "name": "export_id",
10046
- "sdkName": "export_id",
10047
- "description": "Export identifier returned by its create or list operation; use the id, not a display name."
10048
- }
10049
- ],
10442
+ "pathParams": [],
10050
10443
  "query": []
10051
10444
  },
10052
10445
  {
10053
- "resource": "cut.projects",
10446
+ "resource": "customer.customers",
10054
10447
  "method": "list",
10055
- "summary": "List projects",
10056
- "description": "Discover projects owned by the API key organization and obtain project_id values. Results default to active projects ordered by updateTime descending; use filter state = \"deleted\" to find retained deleted projects for undelete. Continue with next_page_token as page_token until the token is absent.",
10448
+ "summary": "List end users",
10449
+ "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.",
10057
10450
  "http": "GET",
10058
- "path": "/cut/v1/projects",
10451
+ "path": "/customer/v1/customers",
10059
10452
  "streaming": "no",
10060
10453
  "pagination": false,
10061
10454
  "pathParams": [],
@@ -10064,102 +10457,83 @@ export const operations = [
10064
10457
  "name": "page_size",
10065
10458
  "type": "integer",
10066
10459
  "required": false,
10067
- "description": "Maximum resources in one page, from 1 to 100; defaults to 50."
10460
+ "description": "Maximum end users in one page, from 1 to 100; defaults to 50."
10068
10461
  },
10069
10462
  {
10070
10463
  "name": "page_token",
10071
10464
  "type": "string",
10072
10465
  "required": false,
10073
- "description": "Opaque next_page_token from the preceding page; omit on the first request."
10466
+ "description": "next_page from the preceding list response with the same filters; omit for the first page."
10074
10467
  },
10075
10468
  {
10076
- "name": "filter",
10469
+ "name": "type",
10077
10470
  "type": "string",
10471
+ "enum": [
10472
+ "identified",
10473
+ "anonymous"
10474
+ ],
10078
10475
  "required": false,
10079
- "description": "Optional resource filter; projects supports state = \"active\" or state = \"deleted\"."
10476
+ "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."
10080
10477
  },
10081
10478
  {
10082
- "name": "order_by",
10479
+ "name": "blocked",
10480
+ "type": "boolean",
10481
+ "required": false,
10482
+ "description": "true for blocked end users only, false for end users who are not blocked; omit for both."
10483
+ },
10484
+ {
10485
+ "name": "resource",
10083
10486
  "type": "string",
10084
10487
  "required": false,
10085
- "description": "Optional ordering expression; projects supports updateTime desc."
10488
+ "description": "Only end users of one product, as <type>:<id>, for example content:cnt_0123456789abcdef, agent:agent_123 or application:app_456."
10489
+ },
10490
+ {
10491
+ "name": "q",
10492
+ "type": "string",
10493
+ "required": false,
10494
+ "description": "Only end users whose customer id starts with this prefix, for example cus_; omit for every id."
10086
10495
  }
10087
10496
  ]
10088
10497
  },
10089
10498
  {
10090
- "resource": "cut.projects",
10091
- "method": "create",
10092
- "summary": "Create project",
10093
- "description": "Create a blank editing project in the API key organization before writing a script. First obtain accessible library ids from praxis.media; bindings must include exactly one read_write library with default_upload true. Each call creates a new project and returns HTTP 201; save its id for execute, state and timeline calls. All editing positions use seconds.",
10094
- "http": "POST",
10095
- "path": "/cut/v1/projects",
10096
- "streaming": "no",
10097
- "pagination": false,
10098
- "pathParams": [],
10099
- "query": [],
10100
- "body": {
10101
- "required": true,
10102
- "fields": [
10103
- {
10104
- "name": "name",
10105
- "type": "string",
10106
- "required": true,
10107
- "description": "Human-readable project name; required and must contain non-whitespace text."
10108
- },
10109
- {
10110
- "name": "labels",
10111
- "type": "object",
10112
- "required": false,
10113
- "description": "User-defined string labels for organizing projects; label keys retain their original spelling."
10114
- },
10115
- {
10116
- "name": "settings",
10117
- "type": "object",
10118
- "required": true,
10119
- "description": "Dimensions and frame rate for a new editing project."
10120
- },
10121
- {
10122
- "name": "bindings",
10123
- "type": "array",
10124
- "itemType": "object",
10125
- "required": true,
10126
- "description": "Accessible library bindings; exactly one read_write entry must have default_upload true."
10127
- }
10128
- ]
10129
- }
10130
- },
10131
- {
10132
- "resource": "cut.projects",
10499
+ "resource": "customer.customers",
10133
10500
  "method": "delete",
10134
- "summary": "Delete project",
10135
- "description": "Soft-delete a project selected from projects.list. The project is retained for seven days until purge_time and can be restored with undelete before that deadline. Deleted projects cannot be edited; list with filter state = \"deleted\" to locate retained projects.",
10501
+ "summary": "Delete an end user",
10502
+ "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.",
10136
10503
  "http": "DELETE",
10137
- "path": "/cut/v1/projects/{project_id}",
10504
+ "path": "/customer/v1/customers/{customer_id}",
10138
10505
  "streaming": "no",
10139
10506
  "pagination": false,
10140
10507
  "pathParams": [
10141
10508
  {
10142
- "name": "project_id",
10143
- "sdkName": "project_id",
10144
- "description": "Project identifier returned by its create or list operation; use the id, not a display name."
10509
+ "name": "customer_id",
10510
+ "sdkName": "customer_id",
10511
+ "description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
10145
10512
  }
10146
10513
  ],
10147
- "query": []
10514
+ "query": [
10515
+ {
10516
+ "name": "confirm",
10517
+ "type": "string",
10518
+ "required": true,
10519
+ "description": "The customer_id being deleted, repeated exactly; the service compares it with the path and refuses a mismatch with 400."
10520
+ }
10521
+ ]
10148
10522
  },
10149
10523
  {
10150
- "resource": "cut.projects",
10524
+ "resource": "customer.customers",
10151
10525
  "method": "retrieve",
10152
- "summary": "Retrieve project",
10153
- "description": "Inspect project metadata, settings and library bindings before editing. Copy id from projects.create or list; expand=timeline,exports,versions includes selected related resources. The expanded timeline uses seconds and the returned revision can guard a later execute call with expected_revision.",
10526
+ "summary": "Get an end user",
10527
+ "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.",
10154
10528
  "http": "GET",
10155
- "path": "/cut/v1/projects/{project_id}",
10529
+ "path": "/customer/v1/customers/{customer_id}",
10156
10530
  "streaming": "no",
10157
10531
  "pagination": false,
10158
10532
  "pathParams": [
10159
10533
  {
10160
- "name": "project_id",
10161
- "sdkName": "project_id",
10162
- "description": "Project identifier returned by its create or list operation; use the id, not a display name."
10534
+ "name": "customer_id",
10535
+ "sdkName": "customer_id",
10536
+ "description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
10163
10537
  }
10164
10538
  ],
10165
10539
  "query": [
@@ -10167,210 +10541,291 @@ export const operations = [
10167
10541
  "name": "expand",
10168
10542
  "type": "string",
10169
10543
  "required": false,
10170
- "description": "Comma-separated expansions: timeline includes clips, exports includes render jobs, versions includes saved snapshots."
10544
+ "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."
10171
10545
  }
10172
10546
  ]
10173
10547
  },
10174
10548
  {
10175
- "resource": "cut.projects",
10176
- "method": "update",
10177
- "summary": "Update project metadata",
10178
- "description": "Change the project display name or replace its labels by naming those fields in update_mask. Use execute for clip or track edits. Each successful update commits a new revision; labels are replaced as a whole when selected, so read and merge existing labels before overwriting them.",
10179
- "http": "PATCH",
10180
- "path": "/cut/v1/projects/{project_id}",
10549
+ "resource": "customer.customers",
10550
+ "method": "block",
10551
+ "summary": "Block an end user",
10552
+ "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.",
10553
+ "http": "POST",
10554
+ "path": "/customer/v1/customers/{customer_id}/block",
10181
10555
  "streaming": "no",
10182
10556
  "pagination": false,
10183
10557
  "pathParams": [
10184
10558
  {
10185
- "name": "project_id",
10186
- "sdkName": "project_id",
10187
- "description": "Project identifier returned by its create or list operation; use the id, not a display name."
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."
10188
10562
  }
10189
10563
  ],
10190
10564
  "query": [],
10191
10565
  "body": {
10192
- "required": true,
10566
+ "required": false,
10193
10567
  "fields": [
10194
10568
  {
10195
- "name": "name",
10569
+ "name": "reason",
10196
10570
  "type": "string",
10197
10571
  "required": false,
10198
- "description": "Replacement display name when update_mask includes name."
10199
- },
10200
- {
10201
- "name": "labels",
10202
- "type": "object",
10203
- "required": false,
10204
- "description": "User-defined string labels for organizing projects; label keys retain their original spelling."
10205
- },
10206
- {
10207
- "name": "update_mask",
10208
- "type": "array",
10209
- "itemType": "string",
10210
- "enum": [
10211
- "name",
10212
- "labels"
10213
- ],
10214
- "required": true,
10215
- "description": "Metadata fields to replace; name changes the display name and labels replaces all labels."
10572
+ "description": "Why the end user is blocked, recorded with the block fact; omit for none."
10216
10573
  }
10217
10574
  ]
10218
10575
  }
10219
10576
  },
10220
10577
  {
10221
- "resource": "cut.projects.analysis",
10222
- "method": "create",
10223
- "summary": "Analyze project media or measure the project mix",
10224
- "description": "Request silence, filler-word, scene or beat analysis for selected bound assets before editing, or measure the mix the timeline itself renders with kind mix. That kind is a render job, not a read: it answers pending with retry_after_sec and an id. Poll by calling this same method again with body { kinds: [\"mix\"], id } (there is no separate retrieve method); that call reads the measurement and renders nothing. The answer only exists once the audio has been rendered and measured. Omit media to select project sources; ranges returned in segments use source seconds. A pending result is not completion: use retry_after_sec before checking again, and inspect failed or unsupported asset results before deciding which edits are possible. The asset kinds are polled the same way: call this method again with the same kinds and media, and each call answers the current state; inside a script, GetAnalysis reads the latest result without a call. Silence measures transcript-based speech pauses, not music or loudness. A completed transcript without words returns ready with empty segments and reason no_speech; no completed transcript returns unsupported with reason no_transcript. A failed transcription remains failed. kind mix is separate: it reports the project mix loudness, the loudness of each role and where music masks speech, so an editor can fix the mix rather than guess at it.",
10578
+ "resource": "customer.customers",
10579
+ "method": "revokeTokens",
10580
+ "summary": "Revoke every token of an end user",
10581
+ "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.",
10225
10582
  "http": "POST",
10226
- "path": "/cut/v1/projects/{project_id}/analysis",
10583
+ "path": "/customer/v1/customers/{customer_id}/revoke_tokens",
10227
10584
  "streaming": "no",
10228
10585
  "pagination": false,
10229
10586
  "pathParams": [
10230
10587
  {
10231
- "name": "project_id",
10232
- "sdkName": "project_id",
10233
- "description": "Project identifier returned by its create or list operation; use the id, not a display name."
10588
+ "name": "customer_id",
10589
+ "sdkName": "customer_id",
10590
+ "description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
10591
+ }
10592
+ ],
10593
+ "query": []
10594
+ },
10595
+ {
10596
+ "resource": "customer.customers",
10597
+ "method": "unblock",
10598
+ "summary": "Unblock an end user",
10599
+ "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.",
10600
+ "http": "POST",
10601
+ "path": "/customer/v1/customers/{customer_id}/unblock",
10602
+ "streaming": "no",
10603
+ "pagination": false,
10604
+ "pathParams": [
10605
+ {
10606
+ "name": "customer_id",
10607
+ "sdkName": "customer_id",
10608
+ "description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
10609
+ }
10610
+ ],
10611
+ "query": []
10612
+ },
10613
+ {
10614
+ "resource": "customer.usage",
10615
+ "method": "retrieve",
10616
+ "summary": "Read end-user usage",
10617
+ "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.",
10618
+ "http": "GET",
10619
+ "path": "/customer/v1/customers/{customer_id}/usage",
10620
+ "streaming": "no",
10621
+ "pagination": false,
10622
+ "pathParams": [
10623
+ {
10624
+ "name": "customer_id",
10625
+ "sdkName": "customer_id",
10626
+ "description": "End-user id from customers.list or customers.get; an id of another organization answers CUSTOMER_NOT_FOUND."
10234
10627
  }
10235
10628
  ],
10629
+ "query": [
10630
+ {
10631
+ "name": "from",
10632
+ "type": "string",
10633
+ "required": false,
10634
+ "description": "Start of the window as an RFC 3339 time, inclusive; omit for the beginning of the record."
10635
+ },
10636
+ {
10637
+ "name": "to",
10638
+ "type": "string",
10639
+ "required": false,
10640
+ "description": "End of the window as an RFC 3339 time, exclusive; omit for now."
10641
+ }
10642
+ ]
10643
+ },
10644
+ {
10645
+ "resource": "customer.grantCodes",
10646
+ "method": "create",
10647
+ "summary": "Create a grant code",
10648
+ "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.",
10649
+ "http": "POST",
10650
+ "path": "/customer/v1/grant_codes",
10651
+ "streaming": "no",
10652
+ "pagination": false,
10653
+ "pathParams": [],
10236
10654
  "query": [],
10237
10655
  "body": {
10238
10656
  "required": true,
10239
10657
  "fields": [
10240
10658
  {
10241
- "name": "media",
10242
- "type": "array",
10243
- "itemType": "object",
10659
+ "name": "customer_id",
10660
+ "type": "string",
10661
+ "required": true,
10662
+ "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."
10663
+ },
10664
+ {
10665
+ "name": "metadata",
10666
+ "type": "object",
10244
10667
  "required": false,
10245
- "description": "Bound-library assets to analyze; omission selects project media."
10668
+ "description": "Product metadata to record with the end user, as string key to string value; it is merged over what is already stored."
10246
10669
  },
10247
10670
  {
10248
- "name": "kinds",
10671
+ "name": "resources",
10249
10672
  "type": "array",
10250
- "itemType": "string",
10251
- "enum": [
10252
- "silence",
10253
- "filler",
10254
- "scenes",
10255
- "beats",
10256
- "mix"
10257
- ],
10673
+ "itemType": "object",
10258
10674
  "required": true,
10259
- "description": "Analysis types to request. silence, filler, scenes and beats analyze the selected source assets and are read from the media library; mix measures the project's own rendered mix and is requested on its own."
10675
+ "description": "Resource scopes the sign-in may reach, at least one, each a scope string or an object with scope and params."
10260
10676
  },
10261
10677
  {
10262
- "name": "from",
10263
- "type": "number",
10678
+ "name": "origin",
10679
+ "type": "string",
10264
10680
  "required": false,
10265
- "description": "Range start for kind mix, in seconds on the project clock. Omitted with to, the whole timeline is measured, capped at 120 seconds. Ignored by the asset kinds."
10681
+ "description": "Page origin this sign-in is bound to, for example https://school.example.com; a later exchange with another Origin is refused."
10266
10682
  },
10267
10683
  {
10268
- "name": "to",
10269
- "type": "number",
10684
+ "name": "expires_in",
10685
+ "type": "integer",
10270
10686
  "required": false,
10271
- "description": "Range end for kind mix, in seconds on the project clock, exclusive. An end up to 0.05 s past the timeline's end (a rounded duration) is read as the end; further past is refused. A range longer than 120 seconds is refused; request several ranges instead."
10687
+ "description": "Lifetime of the code in seconds; omit for the fifteen-minute default, and send a smaller number to shorten it."
10272
10688
  },
10273
10689
  {
10274
- "name": "revision",
10690
+ "name": "max_session_seconds",
10275
10691
  "type": "integer",
10276
10692
  "required": false,
10277
- "description": "Optional committed project revision to measure; omission uses the current revision. Mix only."
10693
+ "description": "Lifetime of the sign-in the code starts, in seconds; omit for the seven-day default."
10278
10694
  },
10279
10695
  {
10280
- "name": "id",
10696
+ "name": "merge_customer_id",
10281
10697
  "type": "string",
10282
10698
  "required": false,
10283
- "description": "Poll one running mix measurement by the id its first call returned. Sending id reads that measurement and renders nothing."
10699
+ "description": "An existing anonymous end user (anon_…) whose record joins this person when the code is exchanged."
10700
+ },
10701
+ {
10702
+ "name": "anonymous_access_token",
10703
+ "type": "string",
10704
+ "required": false,
10705
+ "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."
10284
10706
  }
10285
10707
  ]
10286
10708
  }
10287
10709
  },
10288
10710
  {
10289
- "resource": "cut.projects.bindings",
10711
+ "resource": "customer.publishableKeys",
10290
10712
  "method": "list",
10291
- "summary": "List library bindings",
10292
- "description": "Discover the named media libraries available to this project before selecting source assets or an import/export destination. read bindings supply source assets; read_write bindings also accept uploads. Exactly one writable binding supplies the default upload destination.",
10713
+ "summary": "List publishable keys",
10714
+ "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.",
10293
10715
  "http": "GET",
10294
- "path": "/cut/v1/projects/{project_id}/bindings",
10716
+ "path": "/customer/v1/publishable_keys",
10295
10717
  "streaming": "no",
10296
10718
  "pagination": false,
10297
- "pathParams": [
10719
+ "pathParams": [],
10720
+ "query": [
10298
10721
  {
10299
- "name": "project_id",
10300
- "sdkName": "project_id",
10301
- "description": "Project identifier returned by its create or list operation; use the id, not a display name."
10722
+ "name": "page_size",
10723
+ "type": "integer",
10724
+ "required": false,
10725
+ "description": "Maximum keys in one page, from 1 to 100; defaults to 50."
10726
+ },
10727
+ {
10728
+ "name": "page_token",
10729
+ "type": "string",
10730
+ "required": false,
10731
+ "description": "next_page from the preceding key list response; omit for the first page."
10302
10732
  }
10303
- ],
10304
- "query": []
10733
+ ]
10305
10734
  },
10306
10735
  {
10307
- "resource": "cut.projects.bindings",
10736
+ "resource": "customer.publishableKeys",
10308
10737
  "method": "create",
10309
- "summary": "Bind media library",
10310
- "description": "Attach an accessible media library to an existing project under a unique name. Obtain library_id from praxis.media and choose read for source-only access or read_write for imports and exports. The project must retain exactly one read_write binding with default_upload true after the change.",
10738
+ "summary": "Create a publishable key",
10739
+ "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.",
10311
10740
  "http": "POST",
10312
- "path": "/cut/v1/projects/{project_id}/bindings",
10741
+ "path": "/customer/v1/publishable_keys",
10313
10742
  "streaming": "no",
10314
10743
  "pagination": false,
10315
- "pathParams": [
10316
- {
10317
- "name": "project_id",
10318
- "sdkName": "project_id",
10319
- "description": "Project identifier returned by its create or list operation; use the id, not a display name."
10320
- }
10321
- ],
10744
+ "pathParams": [],
10322
10745
  "query": [],
10323
10746
  "body": {
10324
10747
  "required": true,
10325
10748
  "fields": [
10326
10749
  {
10327
- "name": "binding",
10328
- "type": "object",
10750
+ "name": "name",
10751
+ "type": "string",
10329
10752
  "required": true,
10330
- "description": "A named project link to a media library. Exactly one read_write binding must be default_upload."
10331
- }
10753
+ "description": "Label for the key, shown in the console and the key list, for example Storefront."
10754
+ },
10755
+ {
10756
+ "name": "resources",
10757
+ "type": "array",
10758
+ "itemType": "object",
10759
+ "required": true,
10760
+ "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."
10761
+ }
10332
10762
  ]
10333
10763
  }
10334
10764
  },
10335
10765
  {
10336
- "resource": "cut.projects.bindings",
10766
+ "resource": "customer.publishableKeys",
10337
10767
  "method": "delete",
10338
- "summary": "Remove library binding",
10339
- "description": "Detach a library alias obtained from bindings.list after removing all timeline clips that reference its library. BINDING_IN_USE returns 409 while references remain; inspect timeline and edit those clips first. Removal must preserve the one writable default upload binding.",
10768
+ "summary": "Delete a publishable key",
10769
+ "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.",
10340
10770
  "http": "DELETE",
10341
- "path": "/cut/v1/projects/{project_id}/bindings/{name}",
10771
+ "path": "/customer/v1/publishable_keys/{key_id}",
10342
10772
  "streaming": "no",
10343
10773
  "pagination": false,
10344
10774
  "pathParams": [
10345
10775
  {
10346
- "name": "project_id",
10347
- "sdkName": "project_id",
10348
- "description": "Project identifier returned by its create or list operation; use the id, not a display name."
10349
- },
10350
- {
10351
- "name": "name",
10352
- "sdkName": "name",
10353
- "description": "Project-local binding alias from bindings.list; detach only after removing all clips that reference its library."
10776
+ "name": "key_id",
10777
+ "sdkName": "key_id",
10778
+ "description": "Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value."
10354
10779
  }
10355
10780
  ],
10356
10781
  "query": []
10357
10782
  },
10358
10783
  {
10359
- "resource": "cut.projects.exports",
10360
- "method": "list",
10361
- "summary": "List project exports",
10362
- "description": "Find export jobs associated with this project before polling or canceling a render. Copy an export id into praxis.cut.exports.retrieve or cancel. Continue with next_page_token as page_token when present; queued or in-progress jobs have not produced a final media asset.",
10784
+ "resource": "cut.exports",
10785
+ "method": "retrieve",
10786
+ "summary": "Retrieve video export",
10787
+ "description": "Poll an export id returned by projects.exports.create or list to observe render progress. queued, fetching, rendering, stitching and saving are in progress; done provides asset in the target library, failed provides error, and canceled means the job stopped. Only done confirms a usable output asset.",
10363
10788
  "http": "GET",
10364
- "path": "/cut/v1/projects/{project_id}/exports",
10789
+ "path": "/cut/v1/exports/{export_id}",
10365
10790
  "streaming": "no",
10366
10791
  "pagination": false,
10367
10792
  "pathParams": [
10368
10793
  {
10369
- "name": "project_id",
10370
- "sdkName": "project_id",
10371
- "description": "Project identifier returned by its create or list operation; use the id, not a display name."
10794
+ "name": "export_id",
10795
+ "sdkName": "export_id",
10796
+ "description": "Export identifier returned by its create or list operation; use the id, not a display name."
10797
+ }
10798
+ ],
10799
+ "query": []
10800
+ },
10801
+ {
10802
+ "resource": "cut.exports",
10803
+ "method": "cancel",
10804
+ "summary": "Cancel video export",
10805
+ "description": "Request cancellation of an export obtained from projects.exports.create or list when its output is no longer needed. Read the returned job status and retrieve it to confirm the terminal outcome; do not interpret a cancellation request as successful rendering.",
10806
+ "http": "POST",
10807
+ "path": "/cut/v1/exports/{export_id}:cancel",
10808
+ "streaming": "no",
10809
+ "pagination": false,
10810
+ "pathParams": [
10811
+ {
10812
+ "name": "export_id",
10813
+ "sdkName": "export_id",
10814
+ "description": "Export identifier returned by its create or list operation; use the id, not a display name."
10372
10815
  }
10373
10816
  ],
10817
+ "query": []
10818
+ },
10819
+ {
10820
+ "resource": "cut.projects",
10821
+ "method": "list",
10822
+ "summary": "List projects",
10823
+ "description": "Discover projects owned by the API key organization and obtain project_id values. Results default to active projects ordered by updateTime descending; use filter state = \"deleted\" to find retained deleted projects for undelete. Continue with next_page_token as page_token until the token is absent.",
10824
+ "http": "GET",
10825
+ "path": "/cut/v1/projects",
10826
+ "streaming": "no",
10827
+ "pagination": false,
10828
+ "pathParams": [],
10374
10829
  "query": [
10375
10830
  {
10376
10831
  "name": "page_size",
@@ -10399,77 +10854,72 @@ export const operations = [
10399
10854
  ]
10400
10855
  },
10401
10856
  {
10402
- "resource": "cut.projects.exports",
10857
+ "resource": "cut.projects",
10403
10858
  "method": "create",
10404
- "summary": "Create video export",
10405
- "description": "Start an asynchronous video export from the project into a writable bound media library. Choose binding from bindings.list or omit it for default_upload, and optionally select revision and output settings. HTTP 202 only accepts the job; poll praxis.cut.exports.retrieve using the returned id until status is done, failed or canceled. On done, asset identifies the video written back to praxis.media. Each call starts a job, so retrieve a known job before retrying a submission.",
10859
+ "summary": "Create project",
10860
+ "description": "Create a blank editing project in the API key organization before writing a script. First obtain accessible library ids from praxis.media; bindings must include exactly one read_write library with default_upload true. Each call creates a new project and returns HTTP 201; save its id for execute, state and timeline calls. All editing positions use seconds.",
10406
10861
  "http": "POST",
10407
- "path": "/cut/v1/projects/{project_id}/exports",
10862
+ "path": "/cut/v1/projects",
10408
10863
  "streaming": "no",
10409
10864
  "pagination": false,
10410
- "pathParams": [
10411
- {
10412
- "name": "project_id",
10413
- "sdkName": "project_id",
10414
- "description": "Project identifier returned by its create or list operation; use the id, not a display name."
10415
- }
10416
- ],
10865
+ "pathParams": [],
10417
10866
  "query": [],
10418
10867
  "body": {
10419
10868
  "required": true,
10420
10869
  "fields": [
10421
- {
10422
- "name": "folder",
10423
- "type": "string",
10424
- "required": false,
10425
- "description": "Optional destination path within the bound media library; omitted uses its default folder. Naming a binding or a folder also imports the finished video into that media library as an asset. Omit both and the export is a file only: read file.url to download it."
10426
- },
10427
10870
  {
10428
10871
  "name": "name",
10429
10872
  "type": "string",
10430
- "required": false,
10431
- "description": "Nonempty display name, frozen with the export. Path separators and control characters become hyphens; limited to 200 characters. Omitted uses project name and timestamp."
10873
+ "required": true,
10874
+ "description": "Human-readable project name; required and must contain non-whitespace text."
10432
10875
  },
10433
10876
  {
10434
- "name": "output",
10877
+ "name": "labels",
10435
10878
  "type": "object",
10436
10879
  "required": false,
10437
- "description": "Rendering options for an exported video."
10438
- },
10439
- {
10440
- "name": "binding",
10441
- "type": "string",
10442
- "required": false,
10443
- "description": "Writable binding name used as the export destination; omission uses default_upload. Naming a binding or a folder also imports the finished video into that media library as an asset. Omit both and the export is a file only; read file.url to download it."
10444
- },
10445
- {
10446
- "name": "revision",
10447
- "type": "integer",
10448
- "required": false,
10449
- "description": "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
10880
+ "description": "User-defined string labels for organizing projects; label keys retain their original spelling."
10450
10881
  },
10451
10882
  {
10452
- "name": "loudness",
10883
+ "name": "settings",
10453
10884
  "type": "object",
10454
- "required": false,
10455
- "description": "Loudness normalization target. Omitted, the export is normalized to -14 LUFS integrated and -1 dBTP true peak, the level short-video and streaming platforms play at; null renders without normalization. Normalization adds analysis and rendering work."
10885
+ "required": true,
10886
+ "description": "Dimensions and frame rate for a new editing project."
10456
10887
  },
10457
10888
  {
10458
- "name": "poster",
10459
- "type": "object",
10460
- "required": false,
10461
- "description": "Cover frame, in seconds on the project clock. Omitted, the cover is the first frame with picture that is not inside a fade-in or a transition — a black opening no longer makes the library thumbnail black. A frame inside a transition is skipped, and a timeline that is black throughout keeps its first frame (reported as BLACK_FIRST_FRAME). The frame actually used is reported as poster_at on the export."
10889
+ "name": "bindings",
10890
+ "type": "array",
10891
+ "itemType": "object",
10892
+ "required": true,
10893
+ "description": "Accessible library bindings; exactly one read_write entry must have default_upload true."
10462
10894
  }
10463
10895
  ]
10464
10896
  }
10465
10897
  },
10466
10898
  {
10467
- "resource": "cut.projects.frames",
10468
- "method": "list",
10469
- "summary": "Render preview frames",
10470
- "description": "Review the visual result at one or more project times without creating an export. Pass comma-separated seconds in at, such as 12,15.5; scale changes preview size and revision selects a committed project revision. Request at most eight times. Each returned url is an inline PNG data URL (data:image/png;base64,...), not a hosted HTTP image link. The default scale is 0.25; use 0.5 for subtitle layout inspection (1080×1920 renders at 540×960). The maximum is 0.5; values above it return INVALID_PARAMS. Actual width and height are returned per frame. PNGs above 2 MiB or responses above 4 MiB return RESPONSE_TOO_LARGE without silently lowering resolution. The response always includes warnings; FRAME_UNAVAILABLE means a source preview could not be obtained and an offline tile was drawn. Its message identifies a timeout, delivery capacity limit, or unavailable source and contains no source URL. Decode each image's base64 payload to save it. Codemode returns at most four images per call, so request at most four times when reviewing there.",
10899
+ "resource": "cut.projects",
10900
+ "method": "delete",
10901
+ "summary": "Delete project",
10902
+ "description": "Soft-delete a project selected from projects.list. The project is retained for seven days until purge_time and can be restored with undelete before that deadline. Deleted projects cannot be edited; list with filter state = \"deleted\" to locate retained projects.",
10903
+ "http": "DELETE",
10904
+ "path": "/cut/v1/projects/{project_id}",
10905
+ "streaming": "no",
10906
+ "pagination": false,
10907
+ "pathParams": [
10908
+ {
10909
+ "name": "project_id",
10910
+ "sdkName": "project_id",
10911
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
10912
+ }
10913
+ ],
10914
+ "query": []
10915
+ },
10916
+ {
10917
+ "resource": "cut.projects",
10918
+ "method": "retrieve",
10919
+ "summary": "Retrieve project",
10920
+ "description": "Inspect project metadata, settings and library bindings before editing. Copy id from projects.create or list; expand=timeline,exports,versions includes selected related resources. The expanded timeline uses seconds and the returned revision can guard a later execute call with expected_revision.",
10471
10921
  "http": "GET",
10472
- "path": "/cut/v1/projects/{project_id}/frames",
10922
+ "path": "/cut/v1/projects/{project_id}",
10473
10923
  "streaming": "no",
10474
10924
  "pagination": false,
10475
10925
  "pathParams": [
@@ -10481,32 +10931,20 @@ export const operations = [
10481
10931
  ],
10482
10932
  "query": [
10483
10933
  {
10484
- "name": "at",
10934
+ "name": "expand",
10485
10935
  "type": "string",
10486
- "required": true,
10487
- "description": "Required comma-separated non-negative project times in seconds, for example 12,15.5."
10488
- },
10489
- {
10490
- "name": "scale",
10491
- "type": "number",
10492
- "required": false,
10493
- "description": "Image size multiplier, default 0.25, greater than zero and at most 0.5. Larger values return INVALID_PARAMS; pixel-area limits may reduce actual dimensions, reported as width and height."
10494
- },
10495
- {
10496
- "name": "revision",
10497
- "type": "integer",
10498
10936
  "required": false,
10499
- "description": "Optional committed project revision from state or execute; omission selects the current revision."
10937
+ "description": "Comma-separated expansions: timeline includes clips, exports includes render jobs, versions includes saved snapshots."
10500
10938
  }
10501
10939
  ]
10502
10940
  },
10503
10941
  {
10504
- "resource": "cut.projects.media",
10505
- "method": "import",
10506
- "summary": "Import project media",
10507
- "description": "Import a URL, data URI or existing file into a writable project media library. Select binding from bindings.list or omit it to use default_upload. Save library_id and asset_id from the result and use them as libraryId and assetId inside execute script media references; overwrites follow the source asset latest version.",
10508
- "http": "POST",
10509
- "path": "/cut/v1/projects/{project_id}/media:import",
10942
+ "resource": "cut.projects",
10943
+ "method": "update",
10944
+ "summary": "Update project metadata",
10945
+ "description": "Change the project display name or replace its labels by naming those fields in update_mask. Use execute for clip or track edits. Each successful update commits a new revision; labels are replaced as a whole when selected, so read and merge existing labels before overwriting them.",
10946
+ "http": "PATCH",
10947
+ "path": "/cut/v1/projects/{project_id}",
10510
10948
  "streaming": "no",
10511
10949
  "pagination": false,
10512
10950
  "pathParams": [
@@ -10521,33 +10959,38 @@ export const operations = [
10521
10959
  "required": true,
10522
10960
  "fields": [
10523
10961
  {
10524
- "name": "binding",
10962
+ "name": "name",
10525
10963
  "type": "string",
10526
10964
  "required": false,
10527
- "description": "Writable binding name from project bindings; omission uses default_upload."
10965
+ "description": "Replacement display name when update_mask includes name."
10528
10966
  },
10529
10967
  {
10530
- "name": "source",
10968
+ "name": "labels",
10531
10969
  "type": "object",
10532
- "required": true,
10533
- "description": "Exactly one input source for the imported asset."
10970
+ "required": false,
10971
+ "description": "User-defined string labels for organizing projects; label keys retain their original spelling."
10534
10972
  },
10535
10973
  {
10536
- "name": "display_name",
10537
- "type": "string",
10538
- "required": false,
10539
- "description": "Optional human-readable display name for the new media asset."
10974
+ "name": "update_mask",
10975
+ "type": "array",
10976
+ "itemType": "string",
10977
+ "enum": [
10978
+ "name",
10979
+ "labels"
10980
+ ],
10981
+ "required": true,
10982
+ "description": "Metadata fields to replace; name changes the display name and labels replaces all labels."
10540
10983
  }
10541
10984
  ]
10542
10985
  }
10543
10986
  },
10544
10987
  {
10545
- "resource": "cut.projects.renders",
10988
+ "resource": "cut.projects.analysis",
10546
10989
  "method": "create",
10547
- "summary": "Create draft range render",
10548
- "description": "Render one interval of the timeline so you can hear or look at how that passage comes out, without publishing anything to a media library. Choose kind audio for the mixed soundtrack as an .m4a file, or kind video for a draft-quality .mp4 with picture and sound. from and to are seconds on the project clock and must satisfy 0 <= from < to, to <= the timeline duration (an end up to 0.05 s past it, a rounded duration, is read as the end), and to - from <= 120; a longer passage is requested in several 分段请求 ranges and joined by the caller. The result is a temporary file (purpose user_data) that expires 24 hours after it is stored and is never imported into a library, so it is not a deliverable and carries no cut-export tag. HTTP 202 only accepts the job; poll praxis.cut.renders.retrieve using the returned id until status is done or failed, then read url while it lasts. A draft also bills like a draft export, by rendered seconds. Each project runs at most 2 draft renders at a time, a budget separate from its exports; a third answers HTTP 429 CUT_BUSY and the same call succeeds once one finishes.",
10990
+ "summary": "Analyze project media or measure the project mix",
10991
+ "description": "Request silence, filler-word, scene or beat analysis for selected bound assets before editing, or measure the mix the timeline itself renders with kind mix. That kind is a render job, not a read: it answers pending with retry_after_sec and an id. Poll by calling this same method again with body { kinds: [\"mix\"], id } (there is no separate retrieve method); that call reads the measurement and renders nothing. The answer only exists once the audio has been rendered and measured. Omit media to select project sources; ranges returned in segments use source seconds. A pending result is not completion: use retry_after_sec before checking again, and inspect failed or unsupported asset results before deciding which edits are possible. The asset kinds are polled the same way: call this method again with the same kinds and media, and each call answers the current state; inside a script, GetAnalysis reads the latest result without a call. Silence measures transcript-based speech pauses, not music or loudness. A completed transcript without words returns ready with empty segments and reason no_speech; no completed transcript returns unsupported with reason no_transcript. A failed transcription remains failed. kind mix is separate: it reports the project mix loudness, the loudness of each role and where music masks speech, so an editor can fix the mix rather than guess at it.",
10549
10992
  "http": "POST",
10550
- "path": "/cut/v1/projects/{project_id}/renders",
10993
+ "path": "/cut/v1/projects/{project_id}/analysis",
10551
10994
  "streaming": "no",
10552
10995
  "pagination": false,
10553
10996
  "pathParams": [
@@ -10562,43 +11005,60 @@ export const operations = [
10562
11005
  "required": true,
10563
11006
  "fields": [
10564
11007
  {
10565
- "name": "kind",
10566
- "type": "string",
11008
+ "name": "media",
11009
+ "type": "array",
11010
+ "itemType": "object",
11011
+ "required": false,
11012
+ "description": "Bound-library assets to analyze; omission selects project media."
11013
+ },
11014
+ {
11015
+ "name": "kinds",
11016
+ "type": "array",
11017
+ "itemType": "string",
10567
11018
  "enum": [
10568
- "audio",
10569
- "video"
11019
+ "silence",
11020
+ "filler",
11021
+ "scenes",
11022
+ "beats",
11023
+ "mix"
10570
11024
  ],
10571
11025
  "required": true,
10572
- "description": "audio renders the mixed soundtrack alone as an .m4a file for listening; video renders a draft-quality .mp4 with picture and sound for looking at. An audio draft is the cheaper of the two and is what a loudness or mix measurement asks for."
11026
+ "description": "Analysis types to request. silence, filler, scenes and beats analyze the selected source assets and are read from the media library; mix measures the project's own rendered mix and is requested on its own."
10573
11027
  },
10574
11028
  {
10575
11029
  "name": "from",
10576
11030
  "type": "number",
10577
- "required": true,
10578
- "description": "Start of the interval in seconds on the project clock, inclusive. Must be less than to."
11031
+ "required": false,
11032
+ "description": "Range start for kind mix, in seconds on the project clock. Omitted with to, the whole timeline is measured, capped at 120 seconds. Ignored by the asset kinds."
10579
11033
  },
10580
11034
  {
10581
11035
  "name": "to",
10582
11036
  "type": "number",
10583
- "required": true,
10584
- "description": "End of the interval in seconds on the project clock, exclusive. At most 120 seconds after from, and never beyond the timeline duration; a longer passage is requested as several ranges."
11037
+ "required": false,
11038
+ "description": "Range end for kind mix, in seconds on the project clock, exclusive. An end up to 0.05 s past the timeline's end (a rounded duration) is read as the end; further past is refused. A range longer than 120 seconds is refused; request several ranges instead."
10585
11039
  },
10586
11040
  {
10587
11041
  "name": "revision",
10588
11042
  "type": "integer",
10589
11043
  "required": false,
10590
- "description": "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
11044
+ "description": "Optional committed project revision to measure; omission uses the current revision. Mix only."
11045
+ },
11046
+ {
11047
+ "name": "id",
11048
+ "type": "string",
11049
+ "required": false,
11050
+ "description": "Poll one running mix measurement by the id its first call returned. Sending id reads that measurement and renders nothing."
10591
11051
  }
10592
11052
  ]
10593
11053
  }
10594
11054
  },
10595
11055
  {
10596
- "resource": "cut.projects",
10597
- "method": "retrieveState",
10598
- "summary": "Read editing state",
10599
- "description": "Read lightweight project context before composing an execute script. Returns current revision, rendering settings, track counts, library bindings and offline media count without individual clips. For complete clip documents or a selected time range, read timeline instead.",
11056
+ "resource": "cut.projects.bindings",
11057
+ "method": "list",
11058
+ "summary": "List library bindings",
11059
+ "description": "Discover the named media libraries available to this project before selecting source assets or an import/export destination. read bindings supply source assets; read_write bindings also accept uploads. Exactly one writable binding supplies the default upload destination.",
10600
11060
  "http": "GET",
10601
- "path": "/cut/v1/projects/{project_id}/state",
11061
+ "path": "/cut/v1/projects/{project_id}/bindings",
10602
11062
  "streaming": "no",
10603
11063
  "pagination": false,
10604
11064
  "pathParams": [
@@ -10611,12 +11071,12 @@ export const operations = [
10611
11071
  "query": []
10612
11072
  },
10613
11073
  {
10614
- "resource": "cut.projects",
10615
- "method": "retrieveTimeline",
10616
- "summary": "Read project timeline",
10617
- "description": "Inspect clips and markers in a selected project range before editing. view=full returns structured tracks with all timeline positions in seconds; view=compact returns compact text for script context. from and to are seconds and tracks limits the selection to comma-separated track ids from state. Concurrent changes while preparing a full timeline return 409; retrieve the latest state and try the read again.",
10618
- "http": "GET",
10619
- "path": "/cut/v1/projects/{project_id}/timeline",
11074
+ "resource": "cut.projects.bindings",
11075
+ "method": "create",
11076
+ "summary": "Bind media library",
11077
+ "description": "Attach an accessible media library to an existing project under a unique name. Obtain library_id from praxis.media and choose read for source-only access or read_write for imports and exports. The project must retain exactly one read_write binding with default_upload true after the change.",
11078
+ "http": "POST",
11079
+ "path": "/cut/v1/projects/{project_id}/bindings",
10620
11080
  "streaming": "no",
10621
11081
  "pagination": false,
10622
11082
  "pathParams": [
@@ -10626,44 +11086,49 @@ export const operations = [
10626
11086
  "description": "Project identifier returned by its create or list operation; use the id, not a display name."
10627
11087
  }
10628
11088
  ],
10629
- "query": [
10630
- {
10631
- "name": "view",
10632
- "type": "string",
10633
- "enum": [
10634
- "full",
10635
- "compact"
10636
- ],
10637
- "required": false,
10638
- "description": "full returns structured clips; compact returns compact textual editing context."
10639
- },
10640
- {
10641
- "name": "from",
10642
- "type": "number",
10643
- "required": false,
10644
- "description": "Optional start of the selected project range in seconds; omit for the beginning."
10645
- },
11089
+ "query": [],
11090
+ "body": {
11091
+ "required": true,
11092
+ "fields": [
11093
+ {
11094
+ "name": "binding",
11095
+ "type": "object",
11096
+ "required": true,
11097
+ "description": "A named project link to a media library. Exactly one read_write binding must be default_upload."
11098
+ }
11099
+ ]
11100
+ }
11101
+ },
11102
+ {
11103
+ "resource": "cut.projects.bindings",
11104
+ "method": "delete",
11105
+ "summary": "Remove library binding",
11106
+ "description": "Detach a library alias obtained from bindings.list after removing all timeline clips that reference its library. BINDING_IN_USE returns 409 while references remain; inspect timeline and edit those clips first. Removal must preserve the one writable default upload binding.",
11107
+ "http": "DELETE",
11108
+ "path": "/cut/v1/projects/{project_id}/bindings/{name}",
11109
+ "streaming": "no",
11110
+ "pagination": false,
11111
+ "pathParams": [
10646
11112
  {
10647
- "name": "to",
10648
- "type": "number",
10649
- "required": false,
10650
- "description": "Optional end of the selected project range in seconds; omit for the end."
11113
+ "name": "project_id",
11114
+ "sdkName": "project_id",
11115
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
10651
11116
  },
10652
11117
  {
10653
- "name": "tracks",
10654
- "type": "string",
10655
- "required": false,
10656
- "description": "Comma-separated track ids from state to include; omit to include every track."
11118
+ "name": "name",
11119
+ "sdkName": "name",
11120
+ "description": "Project-local binding alias from bindings.list; detach only after removing all clips that reference its library."
10657
11121
  }
10658
- ]
11122
+ ],
11123
+ "query": []
10659
11124
  },
10660
11125
  {
10661
- "resource": "cut.projects.versions",
11126
+ "resource": "cut.projects.exports",
10662
11127
  "method": "list",
10663
- "summary": "List saved versions",
10664
- "description": "Find saved timeline snapshots for this project and obtain version_id values for restore. A saved version records its original revision; restoring it creates a new current revision rather than rewinding the revision counter. Continue with next_page_token as page_token until absent.",
11128
+ "summary": "List project exports",
11129
+ "description": "Find export jobs associated with this project before polling or canceling a render. Copy an export id into praxis.cut.exports.retrieve or cancel. Continue with next_page_token as page_token when present; queued or in-progress jobs have not produced a final media asset.",
10665
11130
  "http": "GET",
10666
- "path": "/cut/v1/projects/{project_id}/versions",
11131
+ "path": "/cut/v1/projects/{project_id}/exports",
10667
11132
  "streaming": "no",
10668
11133
  "pagination": false,
10669
11134
  "pathParams": [
@@ -10701,12 +11166,12 @@ export const operations = [
10701
11166
  ]
10702
11167
  },
10703
11168
  {
10704
- "resource": "cut.projects.versions",
11169
+ "resource": "cut.projects.exports",
10705
11170
  "method": "create",
10706
- "summary": "Save project version",
10707
- "description": "Save the current project timeline as a named recovery point before a substantial edit. Supply an optional label or send an empty object; keep the returned version id for versions.restore. Saving a version does not publish a rendered asset; use projects.exports.create for video output.",
11171
+ "summary": "Create video export",
11172
+ "description": "Start an asynchronous video export from the project into a writable bound media library. Choose binding from bindings.list or omit it for default_upload, and optionally select revision and output settings. HTTP 202 only accepts the job; poll praxis.cut.exports.retrieve using the returned id until status is done, failed or canceled. On done, asset identifies the video written back to praxis.media. Each call starts a job, so retrieve a known job before retrying a submission.",
10708
11173
  "http": "POST",
10709
- "path": "/cut/v1/projects/{project_id}/versions",
11174
+ "path": "/cut/v1/projects/{project_id}/exports",
10710
11175
  "streaming": "no",
10711
11176
  "pagination": false,
10712
11177
  "pathParams": [
@@ -10721,21 +11186,94 @@ export const operations = [
10721
11186
  "required": true,
10722
11187
  "fields": [
10723
11188
  {
10724
- "name": "label",
11189
+ "name": "folder",
10725
11190
  "type": "string",
10726
11191
  "required": false,
10727
- "description": "Human-readable snapshot label, such as Before captions."
11192
+ "description": "Optional destination path within the bound media library; omitted uses its default folder. Naming a binding or a folder also imports the finished video into that media library as an asset. Omit both and the export is a file only: read file.url to download it."
11193
+ },
11194
+ {
11195
+ "name": "name",
11196
+ "type": "string",
11197
+ "required": false,
11198
+ "description": "Nonempty display name, frozen with the export. Path separators and control characters become hyphens; limited to 200 characters. Omitted uses project name and timestamp."
11199
+ },
11200
+ {
11201
+ "name": "output",
11202
+ "type": "object",
11203
+ "required": false,
11204
+ "description": "Rendering options for an exported video."
11205
+ },
11206
+ {
11207
+ "name": "binding",
11208
+ "type": "string",
11209
+ "required": false,
11210
+ "description": "Writable binding name used as the export destination; omission uses default_upload. Naming a binding or a folder also imports the finished video into that media library as an asset. Omit both and the export is a file only; read file.url to download it."
11211
+ },
11212
+ {
11213
+ "name": "revision",
11214
+ "type": "integer",
11215
+ "required": false,
11216
+ "description": "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
11217
+ },
11218
+ {
11219
+ "name": "loudness",
11220
+ "type": "object",
11221
+ "required": false,
11222
+ "description": "Loudness normalization target. Omitted, the export is normalized to -14 LUFS integrated and -1 dBTP true peak, the level short-video and streaming platforms play at; null renders without normalization. Normalization adds analysis and rendering work."
11223
+ },
11224
+ {
11225
+ "name": "poster",
11226
+ "type": "object",
11227
+ "required": false,
11228
+ "description": "Cover frame, in seconds on the project clock. Omitted, the cover is the first frame with picture that is not inside a fade-in or a transition — a black opening no longer makes the library thumbnail black. A frame inside a transition is skipped, and a timeline that is black throughout keeps its first frame (reported as BLACK_FIRST_FRAME). The frame actually used is reported as poster_at on the export."
10728
11229
  }
10729
11230
  ]
10730
11231
  }
10731
11232
  },
10732
11233
  {
10733
- "resource": "cut.projects",
10734
- "method": "execute",
10735
- "summary": "Execute editing script",
10736
- "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",
11234
+ "resource": "cut.projects.frames",
11235
+ "method": "list",
11236
+ "summary": "Render preview frames",
11237
+ "description": "Review the visual result at one or more project times without creating an export. Pass comma-separated seconds in at, such as 12,15.5; scale changes preview size and revision selects a committed project revision. Request at most eight times. Each returned url is an inline PNG data URL (data:image/png;base64,...), not a hosted HTTP image link. The default scale is 0.25; use 0.5 for subtitle layout inspection (1080×1920 renders at 540×960). The maximum is 0.5; values above it return INVALID_PARAMS. Actual width and height are returned per frame. PNGs above 2 MiB or responses above 4 MiB return RESPONSE_TOO_LARGE without silently lowering resolution. The response always includes warnings; FRAME_UNAVAILABLE means a source preview could not be obtained and an offline tile was drawn. Its message identifies a timeout, delivery capacity limit, or unavailable source and contains no source URL. Decode each image's base64 payload to save it. Codemode returns at most four images per call, so request at most four times when reviewing there.",
11238
+ "http": "GET",
11239
+ "path": "/cut/v1/projects/{project_id}/frames",
11240
+ "streaming": "no",
11241
+ "pagination": false,
11242
+ "pathParams": [
11243
+ {
11244
+ "name": "project_id",
11245
+ "sdkName": "project_id",
11246
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
11247
+ }
11248
+ ],
11249
+ "query": [
11250
+ {
11251
+ "name": "at",
11252
+ "type": "string",
11253
+ "required": true,
11254
+ "description": "Required comma-separated non-negative project times in seconds, for example 12,15.5."
11255
+ },
11256
+ {
11257
+ "name": "scale",
11258
+ "type": "number",
11259
+ "required": false,
11260
+ "description": "Image size multiplier, default 0.25, greater than zero and at most 0.5. Larger values return INVALID_PARAMS; pixel-area limits may reduce actual dimensions, reported as width and height."
11261
+ },
11262
+ {
11263
+ "name": "revision",
11264
+ "type": "integer",
11265
+ "required": false,
11266
+ "description": "Optional committed project revision from state or execute; omission selects the current revision."
11267
+ }
11268
+ ]
11269
+ },
11270
+ {
11271
+ "resource": "cut.projects.media",
11272
+ "method": "import",
11273
+ "summary": "Import project media",
11274
+ "description": "Import a URL, data URI or existing file into a writable project media library. Select binding from bindings.list or omit it to use default_upload. Save library_id and asset_id from the result and use them as libraryId and assetId inside execute script media references; overwrites follow the source asset latest version.",
10737
11275
  "http": "POST",
10738
- "path": "/cut/v1/projects/{project_id}:execute",
11276
+ "path": "/cut/v1/projects/{project_id}/media:import",
10739
11277
  "streaming": "no",
10740
11278
  "pagination": false,
10741
11279
  "pathParams": [
@@ -10750,26 +11288,70 @@ export const operations = [
10750
11288
  "required": true,
10751
11289
  "fields": [
10752
11290
  {
10753
- "name": "script",
11291
+ "name": "binding",
10754
11292
  "type": "string",
10755
11293
  "required": false,
10756
- "description": "Synchronous editing source using Cut execute functions; submit this or edit_id, never both. Script source is opaque: function names and object fields inside JavaScript use their documented camelCase spelling."
11294
+ "description": "Writable binding name from project bindings; omission uses default_upload."
10757
11295
  },
10758
11296
  {
10759
- "name": "edit_id",
11297
+ "name": "source",
11298
+ "type": "object",
11299
+ "required": true,
11300
+ "description": "Exactly one input source for the imported asset."
11301
+ },
11302
+ {
11303
+ "name": "display_name",
10760
11304
  "type": "string",
10761
11305
  "required": false,
10762
- "description": "Saved failed script identifier from error.details.edit_id; valid for ten minutes."
11306
+ "description": "Optional human-readable display name for the new media asset."
11307
+ }
11308
+ ]
11309
+ }
11310
+ },
11311
+ {
11312
+ "resource": "cut.projects.renders",
11313
+ "method": "create",
11314
+ "summary": "Create draft range render",
11315
+ "description": "Render one interval of the timeline so you can hear or look at how that passage comes out, without publishing anything to a media library. Choose kind audio for the mixed soundtrack as an .m4a file, or kind video for a draft-quality .mp4 with picture and sound. from and to are seconds on the project clock and must satisfy 0 <= from < to, to <= the timeline duration (an end up to 0.05 s past it, a rounded duration, is read as the end), and to - from <= 120; a longer passage is requested in several 分段请求 ranges and joined by the caller. The result is a temporary file (purpose user_data) that expires 24 hours after it is stored and is never imported into a library, so it is not a deliverable and carries no cut-export tag. HTTP 202 only accepts the job; poll praxis.cut.renders.retrieve using the returned id until status is done or failed, then read url while it lasts. A draft also bills like a draft export, by rendered seconds. Each project runs at most 2 draft renders at a time, a budget separate from its exports; a third answers HTTP 429 CUT_BUSY and the same call succeeds once one finishes.",
11316
+ "http": "POST",
11317
+ "path": "/cut/v1/projects/{project_id}/renders",
11318
+ "streaming": "no",
11319
+ "pagination": false,
11320
+ "pathParams": [
11321
+ {
11322
+ "name": "project_id",
11323
+ "sdkName": "project_id",
11324
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
11325
+ }
11326
+ ],
11327
+ "query": [],
11328
+ "body": {
11329
+ "required": true,
11330
+ "fields": [
11331
+ {
11332
+ "name": "kind",
11333
+ "type": "string",
11334
+ "enum": [
11335
+ "audio",
11336
+ "video"
11337
+ ],
11338
+ "required": true,
11339
+ "description": "audio renders the mixed soundtrack alone as an .m4a file for listening; video renders a draft-quality .mp4 with picture and sound for looking at. An audio draft is the cheaper of the two and is what a loudness or mix measurement asks for."
10763
11340
  },
10764
11341
  {
10765
- "name": "edits",
10766
- "type": "array",
10767
- "itemType": "object",
10768
- "required": false,
10769
- "description": "Literal replacements applied to the saved source before rerunning."
11342
+ "name": "from",
11343
+ "type": "number",
11344
+ "required": true,
11345
+ "description": "Start of the interval in seconds on the project clock, inclusive. Must be less than to."
10770
11346
  },
10771
11347
  {
10772
- "name": "expected_revision",
11348
+ "name": "to",
11349
+ "type": "number",
11350
+ "required": true,
11351
+ "description": "End of the interval in seconds on the project clock, exclusive. At most 120 seconds after from, and never beyond the timeline duration; a longer passage is requested as several ranges."
11352
+ },
11353
+ {
11354
+ "name": "revision",
10773
11355
  "type": "integer",
10774
11356
  "required": false,
10775
11357
  "description": "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
@@ -10779,11 +11361,11 @@ export const operations = [
10779
11361
  },
10780
11362
  {
10781
11363
  "resource": "cut.projects",
10782
- "method": "undelete",
10783
- "summary": "Restore deleted project",
10784
- "description": "Return a retained deleted project to active state before its purge_time. Obtain project_id from projects.list filtered to deleted projects. This restores the project, not an older timeline revision; use versions.restore when reverting editing content.",
10785
- "http": "POST",
10786
- "path": "/cut/v1/projects/{project_id}:undelete",
11364
+ "method": "retrieveState",
11365
+ "summary": "Read editing state",
11366
+ "description": "Read lightweight project context before composing an execute script. Returns current revision, rendering settings, track counts, library bindings and offline media count without individual clips. For complete clip documents or a selected time range, read timeline instead.",
11367
+ "http": "GET",
11368
+ "path": "/cut/v1/projects/{project_id}/state",
10787
11369
  "streaming": "no",
10788
11370
  "pagination": false,
10789
11371
  "pathParams": [
@@ -10796,12 +11378,197 @@ export const operations = [
10796
11378
  "query": []
10797
11379
  },
10798
11380
  {
10799
- "resource": "cut.renders",
10800
- "method": "retrieve",
10801
- "summary": "Retrieve draft range render",
10802
- "description": "Poll a draft render id returned by projects.renders.create to see whether the interval is ready, then read url while it lasts. queued and rendering are in progress; done provides file_id and a short-lived url for the rendered .m4a or .mp4; failed provides error. Only done yields a url, and the file behind it disappears 24 hours after it was stored, so retrieve again when the link has expired.",
11381
+ "resource": "cut.projects",
11382
+ "method": "retrieveTimeline",
11383
+ "summary": "Read project timeline",
11384
+ "description": "Inspect clips and markers in a selected project range before editing. view=full returns structured tracks with all timeline positions in seconds; view=compact returns compact text for script context. from and to are seconds and tracks limits the selection to comma-separated track ids from state. Concurrent changes while preparing a full timeline return 409; retrieve the latest state and try the read again.",
10803
11385
  "http": "GET",
10804
- "path": "/cut/v1/renders/{render_id}",
11386
+ "path": "/cut/v1/projects/{project_id}/timeline",
11387
+ "streaming": "no",
11388
+ "pagination": false,
11389
+ "pathParams": [
11390
+ {
11391
+ "name": "project_id",
11392
+ "sdkName": "project_id",
11393
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
11394
+ }
11395
+ ],
11396
+ "query": [
11397
+ {
11398
+ "name": "view",
11399
+ "type": "string",
11400
+ "enum": [
11401
+ "full",
11402
+ "compact"
11403
+ ],
11404
+ "required": false,
11405
+ "description": "full returns structured clips; compact returns compact textual editing context."
11406
+ },
11407
+ {
11408
+ "name": "from",
11409
+ "type": "number",
11410
+ "required": false,
11411
+ "description": "Optional start of the selected project range in seconds; omit for the beginning."
11412
+ },
11413
+ {
11414
+ "name": "to",
11415
+ "type": "number",
11416
+ "required": false,
11417
+ "description": "Optional end of the selected project range in seconds; omit for the end."
11418
+ },
11419
+ {
11420
+ "name": "tracks",
11421
+ "type": "string",
11422
+ "required": false,
11423
+ "description": "Comma-separated track ids from state to include; omit to include every track."
11424
+ }
11425
+ ]
11426
+ },
11427
+ {
11428
+ "resource": "cut.projects.versions",
11429
+ "method": "list",
11430
+ "summary": "List saved versions",
11431
+ "description": "Find saved timeline snapshots for this project and obtain version_id values for restore. A saved version records its original revision; restoring it creates a new current revision rather than rewinding the revision counter. Continue with next_page_token as page_token until absent.",
11432
+ "http": "GET",
11433
+ "path": "/cut/v1/projects/{project_id}/versions",
11434
+ "streaming": "no",
11435
+ "pagination": false,
11436
+ "pathParams": [
11437
+ {
11438
+ "name": "project_id",
11439
+ "sdkName": "project_id",
11440
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
11441
+ }
11442
+ ],
11443
+ "query": [
11444
+ {
11445
+ "name": "page_size",
11446
+ "type": "integer",
11447
+ "required": false,
11448
+ "description": "Maximum resources in one page, from 1 to 100; defaults to 50."
11449
+ },
11450
+ {
11451
+ "name": "page_token",
11452
+ "type": "string",
11453
+ "required": false,
11454
+ "description": "Opaque next_page_token from the preceding page; omit on the first request."
11455
+ },
11456
+ {
11457
+ "name": "filter",
11458
+ "type": "string",
11459
+ "required": false,
11460
+ "description": "Optional resource filter; projects supports state = \"active\" or state = \"deleted\"."
11461
+ },
11462
+ {
11463
+ "name": "order_by",
11464
+ "type": "string",
11465
+ "required": false,
11466
+ "description": "Optional ordering expression; projects supports updateTime desc."
11467
+ }
11468
+ ]
11469
+ },
11470
+ {
11471
+ "resource": "cut.projects.versions",
11472
+ "method": "create",
11473
+ "summary": "Save project version",
11474
+ "description": "Save the current project timeline as a named recovery point before a substantial edit. Supply an optional label or send an empty object; keep the returned version id for versions.restore. Saving a version does not publish a rendered asset; use projects.exports.create for video output.",
11475
+ "http": "POST",
11476
+ "path": "/cut/v1/projects/{project_id}/versions",
11477
+ "streaming": "no",
11478
+ "pagination": false,
11479
+ "pathParams": [
11480
+ {
11481
+ "name": "project_id",
11482
+ "sdkName": "project_id",
11483
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
11484
+ }
11485
+ ],
11486
+ "query": [],
11487
+ "body": {
11488
+ "required": true,
11489
+ "fields": [
11490
+ {
11491
+ "name": "label",
11492
+ "type": "string",
11493
+ "required": false,
11494
+ "description": "Human-readable snapshot label, such as Before captions."
11495
+ }
11496
+ ]
11497
+ }
11498
+ },
11499
+ {
11500
+ "resource": "cut.projects",
11501
+ "method": "execute",
11502
+ "summary": "Execute editing script",
11503
+ "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",
11504
+ "http": "POST",
11505
+ "path": "/cut/v1/projects/{project_id}:execute",
11506
+ "streaming": "no",
11507
+ "pagination": false,
11508
+ "pathParams": [
11509
+ {
11510
+ "name": "project_id",
11511
+ "sdkName": "project_id",
11512
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
11513
+ }
11514
+ ],
11515
+ "query": [],
11516
+ "body": {
11517
+ "required": true,
11518
+ "fields": [
11519
+ {
11520
+ "name": "script",
11521
+ "type": "string",
11522
+ "required": false,
11523
+ "description": "Synchronous editing source using Cut execute functions; submit this or edit_id, never both. Script source is opaque: function names and object fields inside JavaScript use their documented camelCase spelling."
11524
+ },
11525
+ {
11526
+ "name": "edit_id",
11527
+ "type": "string",
11528
+ "required": false,
11529
+ "description": "Saved failed script identifier from error.details.edit_id; valid for ten minutes."
11530
+ },
11531
+ {
11532
+ "name": "edits",
11533
+ "type": "array",
11534
+ "itemType": "object",
11535
+ "required": false,
11536
+ "description": "Literal replacements applied to the saved source before rerunning."
11537
+ },
11538
+ {
11539
+ "name": "expected_revision",
11540
+ "type": "integer",
11541
+ "required": false,
11542
+ "description": "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
11543
+ }
11544
+ ]
11545
+ }
11546
+ },
11547
+ {
11548
+ "resource": "cut.projects",
11549
+ "method": "undelete",
11550
+ "summary": "Restore deleted project",
11551
+ "description": "Return a retained deleted project to active state before its purge_time. Obtain project_id from projects.list filtered to deleted projects. This restores the project, not an older timeline revision; use versions.restore when reverting editing content.",
11552
+ "http": "POST",
11553
+ "path": "/cut/v1/projects/{project_id}:undelete",
11554
+ "streaming": "no",
11555
+ "pagination": false,
11556
+ "pathParams": [
11557
+ {
11558
+ "name": "project_id",
11559
+ "sdkName": "project_id",
11560
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
11561
+ }
11562
+ ],
11563
+ "query": []
11564
+ },
11565
+ {
11566
+ "resource": "cut.renders",
11567
+ "method": "retrieve",
11568
+ "summary": "Retrieve draft range render",
11569
+ "description": "Poll a draft render id returned by projects.renders.create to see whether the interval is ready, then read url while it lasts. queued and rendering are in progress; done provides file_id and a short-lived url for the rendered .m4a or .mp4; failed provides error. Only done yields a url, and the file behind it disappears 24 hours after it was stored, so retrieve again when the link has expired.",
11570
+ "http": "GET",
11571
+ "path": "/cut/v1/renders/{render_id}",
10805
11572
  "streaming": "no",
10806
11573
  "pagination": false,
10807
11574
  "pathParams": [
@@ -11859,6 +12626,47 @@ export const operations = [
11859
12626
  ]
11860
12627
  }
11861
12628
  },
12629
+ {
12630
+ "resource": "devops.changes",
12631
+ "method": "openPullRequest",
12632
+ "summary": "Open a change's pull request",
12633
+ "description": "Open the pull request for a change: its branch into the project's default branch, opened by DevOps's own GitHub App. A cloud workspace holds no GitHub credential, so this is how work pushed with the unit push becomes a pull request; `praxis devops change pr` calls it from the workspace. Push first: a branch with no commits beyond the default branch is refused with PULL_REQUEST_REFUSED and GitHub's words. A branch that already has an open pull request answers that one with created=false, so calling again is safe. The pull request then appears on the change and runs its merge gate as usual. The id is the branch name and its slash must be percent-encoded in the path (fix%2Fexpired-links).",
12634
+ "http": "POST",
12635
+ "path": "/devops/v1/changes/{id}:openPullRequest",
12636
+ "streaming": "no",
12637
+ "pagination": false,
12638
+ "pathParams": [
12639
+ {
12640
+ "name": "id",
12641
+ "sdkName": "id",
12642
+ "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."
12643
+ }
12644
+ ],
12645
+ "query": [],
12646
+ "body": {
12647
+ "required": false,
12648
+ "fields": [
12649
+ {
12650
+ "name": "title",
12651
+ "type": "string",
12652
+ "required": false,
12653
+ "description": "The pull request's title; defaults to the change's title."
12654
+ },
12655
+ {
12656
+ "name": "body",
12657
+ "type": "string",
12658
+ "required": false,
12659
+ "description": "The pull request's description, markdown. Put the change's `praxis` exposure block here, or the merge gate asks for it."
12660
+ },
12661
+ {
12662
+ "name": "draft",
12663
+ "type": "boolean",
12664
+ "required": false,
12665
+ "description": "Open it as a draft. Defaults to false."
12666
+ }
12667
+ ]
12668
+ }
12669
+ },
11862
12670
  {
11863
12671
  "resource": "devops.connections",
11864
12672
  "method": "list",
@@ -13560,6 +14368,37 @@ export const operations = [
13560
14368
  }
13561
14369
  ]
13562
14370
  },
14371
+ {
14372
+ "resource": "devops.projects",
14373
+ "method": "retrieveTestPlan",
14374
+ "summary": "Retrieve the merge gate's test plan at a commit",
14375
+ "description": "Ask what the merge gate would require at one commit before running anything: the packages the base...commit diff affects, each package's input hash at that commit's own tree, and whether evidence already answers it. Read a package as passed when a recorded run covered every case the package has at the gate's sizes and they passed, failed when the newest evidence at its input hash failed, and missing when no run has a row for that (package, input hash). Use it before running tests — `praxis devops test --gate` asks this and runs exactly the missing and failed packages — or to explain a gate verdict, because it is the same required set and the same (package, input hash) lookup the gate itself decides on. The call is read-only: it starts no run, runs no case and writes nothing. The commit must already be pushed, since the hashes are recomputed from the tree GitHub holds; a commit whose tree cannot be read answers COMMIT_NOT_FOUND instead of an empty plan. A selection of nothing means every changed path belongs to no test package, which is a pass and not a failure.",
14376
+ "http": "GET",
14377
+ "path": "/devops/v1/projects/{project}/test-plan",
14378
+ "streaming": "no",
14379
+ "pagination": false,
14380
+ "pathParams": [
14381
+ {
14382
+ "name": "project",
14383
+ "sdkName": "project",
14384
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
14385
+ }
14386
+ ],
14387
+ "query": [
14388
+ {
14389
+ "name": "commit",
14390
+ "type": "string",
14391
+ "required": true,
14392
+ "description": "The commit to plan for, by commit id. It must be readable as a tree, so an unpushed local commit is refused; the input hashes are computed from that tree by DevOps and never taken from a caller or a runner."
14393
+ },
14394
+ {
14395
+ "name": "base",
14396
+ "type": "string",
14397
+ "required": false,
14398
+ "description": "What the diff is measured against: a commit id or a branch name. Defaults to the project's default branch. A base that is neither a branch of the project's repository nor a readable commit is refused as COMMIT_NOT_FOUND, so a typo cannot silently plan against the whole repository."
14399
+ }
14400
+ ]
14401
+ },
13563
14402
  {
13564
14403
  "resource": "devops.projects.testPlans",
13565
14404
  "method": "list",
@@ -15416,7 +16255,7 @@ export const operations = [
15416
16255
  "resource": "file.uploads",
15417
16256
  "method": "createSigned",
15418
16257
  "summary": "Create a one-time upload URL",
15419
- "description": "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid, wrong-action or cross-organization URLs return 404. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.",
16258
+ "description": "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid or cross-organization URLs return 404, and so does a link whose upload record no longer exists. A URL that is authentic but names another action returns 403 CAPABILITY_MISMATCH: a status link posted to complete_url answers it, and so does a completion link fetched as status_url. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.",
15420
16259
  "http": "POST",
15421
16260
  "path": "/file/v1/uploads/signed",
15422
16261
  "streaming": "no",
@@ -17061,7 +17900,7 @@ export const operations = [
17061
17900
  "name": "operation",
17062
17901
  "type": "object",
17063
17902
  "required": true,
17064
- "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."
17903
+ "description": "One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe, redact, trim, mute and crop 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 and crop on a video), erase on a video 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."
17065
17904
  },
17066
17905
  {
17067
17906
  "name": "model",
@@ -17141,12 +17980,12 @@ export const operations = [
17141
17980
  }
17142
17981
  },
17143
17982
  {
17144
- "resource": "media.assets",
17145
- "method": "lineage",
17146
- "summary": "Get asset lineage",
17147
- "description": "Read the whole edit tree containing one asset, so a caller sees what it was edited from and what was edited from it. 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 response names the root the tree descends from, the asset asked about, and every step between them, each with the operation, prompt and creation time that produced it. Deleted assets stay in the tree, marked deleted, so the chain stays connected after cleanup. This is a read: it starts no processing and changes no asset. Example: GET /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/lineage.",
17983
+ "resource": "media.libraries.assets.hls",
17984
+ "method": "list",
17985
+ "summary": "Get HLS renditions",
17986
+ "description": "Read how ready a video asset’s on-demand ladder is, rung by rung, without building anything. Use library_id and asset_id as everywhere else. The answer names the asset, its current version, the asset’s own facts (resource_type, is_audio and duration) and one entry per recorded rung — name, height, the first indexed piece’s width, the rung’s bitrate and stored bytes, and its state (processing while pieces run, ready when every piece is ready, failed when a piece gave up). A ladder that was never requested, and an asset that is not a video, answer an empty renditions rather than an error. This read mints no capability and signs nothing, so play the ladder through the content service, which issues the short-lived play address for the current version. Example: GET /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/hls.",
17148
17987
  "http": "GET",
17149
- "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/lineage",
17988
+ "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/hls",
17150
17989
  "streaming": "no",
17151
17990
  "pagination": false,
17152
17991
  "pathParams": [
@@ -17164,12 +18003,12 @@ export const operations = [
17164
18003
  "query": []
17165
18004
  },
17166
18005
  {
17167
- "resource": "media.libraries.assets.reprocess",
18006
+ "resource": "media.libraries.assets.hls",
17168
18007
  "method": "create",
17169
- "summary": "Reprocess asset",
17170
- "description": "Queue reprocessing of the asset’s current version and return its updated state immediately. Omit kinds to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable completed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Replaced understandings become superseded, and processing finishes asynchronously. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
18008
+ "summary": "Request HLS renditions",
18009
+ "description": "Build a video asset’s adaptive HLS ladder for its current version, so one asset plays at several clarities on an ordinary player. Use library_id from creation or listing and the asset_id of a video asset; the ladder belongs to the version the asset has now, and a later version gets its own. heights names the rungs to build: a non-empty subset of 480, 720 and 1080 with no repeats, or omitted to build all three. The ladder never upscales — a rung above the source’s short side is dropped, and a list entirely above it keeps its lowest rung. The call is asynchronous and starts paid transcoding: the work runs as the video-transcode-hls model, one piece per rung per ten minutes of source, and it is charged per output minute at that model’s published price to the organization that owns the asset (ADR-146 §5) — a rung the source cannot carry, and a failed rung, are not charged. A source longer than eight hours (28800 seconds) is refused with SOURCE_TOO_LONG before anything is planned. Repeating the call is safe: a rung already processing, ready or failed is left as it is and is never encoded twice. The response is 202 with the asset_id, its current version and one entry per rung — name, height, width, bitrate, bytes and state, where processing means the rung is still being encoded, ready means it plays and failed means it gave up and can be retried by asking again. Poll GET /media/v1/libraries/{library_id}/assets/{asset_id}/hls until every rung is ready, then play the ladder through the content service, which mints the short-lived play address. Example: POST /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/hls with {\"heights\":[480,720,1080]}.",
17171
18010
  "http": "POST",
17172
- "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/reprocess",
18011
+ "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/hls",
17173
18012
  "streaming": "no",
17174
18013
  "pagination": false,
17175
18014
  "pathParams": [
@@ -17189,9 +18028,72 @@ export const operations = [
17189
18028
  "required": true,
17190
18029
  "fields": [
17191
18030
  {
17192
- "name": "kinds",
18031
+ "name": "heights",
17193
18032
  "type": "array",
17194
- "itemType": "string",
18033
+ "itemType": "integer",
18034
+ "enum": [
18035
+ 480,
18036
+ 720,
18037
+ 1080
18038
+ ],
18039
+ "required": false,
18040
+ "description": "The clarity rungs to build: a non-empty subset of 480, 720 and 1080 with no repeats. Omitted or empty builds all three. The ladder never upscales, so a rung above the source’s short side is dropped."
18041
+ }
18042
+ ]
18043
+ }
18044
+ },
18045
+ {
18046
+ "resource": "media.assets",
18047
+ "method": "lineage",
18048
+ "summary": "Get asset lineage",
18049
+ "description": "Read the whole edit tree containing one asset, so a caller sees what it was edited from and what was edited from it. 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 response names the root the tree descends from, the asset asked about, and every step between them, each with the operation, prompt and creation time that produced it. Deleted assets stay in the tree, marked deleted, so the chain stays connected after cleanup. This is a read: it starts no processing and changes no asset. Example: GET /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/lineage.",
18050
+ "http": "GET",
18051
+ "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/lineage",
18052
+ "streaming": "no",
18053
+ "pagination": false,
18054
+ "pathParams": [
18055
+ {
18056
+ "name": "library_id",
18057
+ "sdkName": "library_id",
18058
+ "description": "Library ID returned by creation."
18059
+ },
18060
+ {
18061
+ "name": "asset_id",
18062
+ "sdkName": "asset_id",
18063
+ "description": "32-character asset ID."
18064
+ }
18065
+ ],
18066
+ "query": []
18067
+ },
18068
+ {
18069
+ "resource": "media.libraries.assets.reprocess",
18070
+ "method": "create",
18071
+ "summary": "Reprocess asset",
18072
+ "description": "Queue reprocessing of the asset’s current version and return its updated state immediately. Omit kinds to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable completed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Replaced understandings become superseded, and processing finishes asynchronously. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
18073
+ "http": "POST",
18074
+ "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/reprocess",
18075
+ "streaming": "no",
18076
+ "pagination": false,
18077
+ "pathParams": [
18078
+ {
18079
+ "name": "library_id",
18080
+ "sdkName": "library_id",
18081
+ "description": "Library ID returned by creation."
18082
+ },
18083
+ {
18084
+ "name": "asset_id",
18085
+ "sdkName": "asset_id",
18086
+ "description": "32-character asset ID."
18087
+ }
18088
+ ],
18089
+ "query": [],
18090
+ "body": {
18091
+ "required": true,
18092
+ "fields": [
18093
+ {
18094
+ "name": "kinds",
18095
+ "type": "array",
18096
+ "itemType": "string",
17195
18097
  "enum": [
17196
18098
  "visual",
17197
18099
  "frames",
@@ -23178,154 +24080,678 @@ export const operations = [
23178
24080
  "query": []
23179
24081
  },
23180
24082
  {
23181
- "resource": "organization.positions.designateHead",
23182
- "method": "create",
23183
- "summary": "Designate a department head position",
23184
- "description": "Makes this position the head of its department; the previous head position stays an ordinary position. The head is a position, not a person, and positions in the department with no explicit manager report to it. Takes no body. Requires an organization owner or admin. Errors: 400 REPORTING_CYCLE when the change would make a position report into its own line; 403 PERMISSION_DENIED; 404 POSITION_NOT_FOUND; 409 POSITION_CLOSED or POSITION_FROZEN, because only an active position can be head.",
23185
- "http": "POST",
23186
- "path": "/organization/v1/positions/{id}/designate_head",
24083
+ "resource": "organization.positions.designateHead",
24084
+ "method": "create",
24085
+ "summary": "Designate a department head position",
24086
+ "description": "Makes this position the head of its department; the previous head position stays an ordinary position. The head is a position, not a person, and positions in the department with no explicit manager report to it. Takes no body. Requires an organization owner or admin. Errors: 400 REPORTING_CYCLE when the change would make a position report into its own line; 403 PERMISSION_DENIED; 404 POSITION_NOT_FOUND; 409 POSITION_CLOSED or POSITION_FROZEN, because only an active position can be head.",
24087
+ "http": "POST",
24088
+ "path": "/organization/v1/positions/{id}/designate_head",
24089
+ "streaming": "no",
24090
+ "pagination": false,
24091
+ "pathParams": [
24092
+ {
24093
+ "name": "id",
24094
+ "sdkName": "id",
24095
+ "description": "Position id (pos_...) to make head of its department, from the positions list."
24096
+ }
24097
+ ],
24098
+ "query": []
24099
+ },
24100
+ {
24101
+ "resource": "organization.positions.freeze",
24102
+ "method": "create",
24103
+ "summary": "Freeze a position",
24104
+ "description": "Freezes a vacant position to keep it without using it, for example while hiring is paused; unfreeze brings it back. Freezing a frozen position returns it unchanged. Takes no body. Requires an organization owner or admin, or the head of the position's department or of a department above it. Errors: 403 PERMISSION_DENIED; 404 POSITION_NOT_FOUND; 409 POSITION_CLOSED; 409 POSITION_OCCUPIED while someone still holds the position.",
24105
+ "http": "POST",
24106
+ "path": "/organization/v1/positions/{id}/freeze",
24107
+ "streaming": "no",
24108
+ "pagination": false,
24109
+ "pathParams": [
24110
+ {
24111
+ "name": "id",
24112
+ "sdkName": "id",
24113
+ "description": "Position id (pos_...) to freeze, from the positions list."
24114
+ }
24115
+ ],
24116
+ "query": []
24117
+ },
24118
+ {
24119
+ "resource": "organization.positions.hire",
24120
+ "method": "create",
24121
+ "summary": "Hire into a position",
24122
+ "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\"}.",
24123
+ "http": "POST",
24124
+ "path": "/organization/v1/positions/{id}/hire",
24125
+ "streaming": "no",
24126
+ "pagination": false,
24127
+ "pathParams": [
24128
+ {
24129
+ "name": "id",
24130
+ "sdkName": "id",
24131
+ "description": "Position id (pos_...) to fill, from the positions list."
24132
+ }
24133
+ ],
24134
+ "query": [],
24135
+ "body": {
24136
+ "required": true,
24137
+ "fields": [
24138
+ {
24139
+ "name": "candidate",
24140
+ "type": "object",
24141
+ "required": true,
24142
+ "description": "Who to appoint to the position; an existing person or agent of your organization."
24143
+ },
24144
+ {
24145
+ "name": "primary",
24146
+ "type": "boolean",
24147
+ "required": false,
24148
+ "description": "Whether this becomes the actor's primary assignment; omit to be primary only when the actor holds nothing, and false is refused for an actor that holds nothing."
24149
+ },
24150
+ {
24151
+ "name": "request_id",
24152
+ "type": "string",
24153
+ "required": true,
24154
+ "description": "Your own unique key for this request; repeating it returns the first assignment instead of seating anyone again."
24155
+ }
24156
+ ]
24157
+ }
24158
+ },
24159
+ {
24160
+ "resource": "organization.positions",
24161
+ "method": "updateLevel",
24162
+ "summary": "Regrade a position",
24163
+ "description": "Sets the job level of a position. If the position was opened from a job that lists allowed levels, the level must be one of them. Requires an organization owner or admin; a department head cannot regrade. Errors: 400 JOB_LEVEL_OUT_OF_RANGE when the job does not allow the level; 403 PERMISSION_DENIED; 404 POSITION_NOT_FOUND; 404 JOB_LEVEL_NOT_FOUND; 409 POSITION_CLOSED.",
24164
+ "http": "PUT",
24165
+ "path": "/organization/v1/positions/{id}/level",
24166
+ "streaming": "no",
24167
+ "pagination": false,
24168
+ "pathParams": [
24169
+ {
24170
+ "name": "id",
24171
+ "sdkName": "id",
24172
+ "description": "Position id (pos_...) to regrade, from the positions list."
24173
+ }
24174
+ ],
24175
+ "query": [],
24176
+ "body": {
24177
+ "required": true,
24178
+ "fields": [
24179
+ {
24180
+ "name": "job_level_id",
24181
+ "type": "string",
24182
+ "required": true,
24183
+ "description": "Id of the job level (lvl_...) to give the position; must be allowed by its job when the job lists levels."
24184
+ }
24185
+ ]
24186
+ }
24187
+ },
24188
+ {
24189
+ "resource": "organization.positions",
24190
+ "method": "updateManager",
24191
+ "summary": "Reassign a position's manager",
24192
+ "description": "Sets the position this position reports to, or sends null to return to the default line: the head position of its department, and for a head position the head of the parent department. Requires an organization owner or admin, or the head of the position's department or of a department above it. The target may be in any department. Errors: 400 REPORTING_CYCLE when the new line would loop back to this position; 403 PERMISSION_DENIED; 404 POSITION_NOT_FOUND for the position or the target; 409 POSITION_CLOSED when either is closed.",
24193
+ "http": "PUT",
24194
+ "path": "/organization/v1/positions/{id}/manager",
24195
+ "streaming": "no",
24196
+ "pagination": false,
24197
+ "pathParams": [
24198
+ {
24199
+ "name": "id",
24200
+ "sdkName": "id",
24201
+ "description": "Position id (pos_...) whose manager changes, from the positions list."
24202
+ }
24203
+ ],
24204
+ "query": [],
24205
+ "body": {
24206
+ "required": true,
24207
+ "fields": [
24208
+ {
24209
+ "name": "reports_to_position_id",
24210
+ "type": "string",
24211
+ "required": true,
24212
+ "description": "Id of the position (pos_...) this one reports to; null returns it to the default line to its department head."
24213
+ }
24214
+ ]
24215
+ }
24216
+ },
24217
+ {
24218
+ "resource": "organization.positions.replaceHolder",
24219
+ "method": "create",
24220
+ "summary": "Replace a position's holder",
24221
+ "description": "Ends the current holder's assignment with reason replaced and seats the successor in the same step, so the position is never vacant in between; the ended assignment records the successor's assignment id as successor_assignment_id. Nothing the predecessor learned or remembered passes to the successor, because experience belongs to the actor, not the position. The successor must exist in your organization and not be archived; it becomes primary if it holds nothing else, otherwise a concurrent assignment. If the predecessor was primary and holds other positions, the earliest of those becomes its primary. request_id makes the call idempotent: repeating it returns the first result and replaces nobody again. 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 successor or request_id, a successor that already holds this position or an unknown body field; 403 PERMISSION_DENIED; 404 POSITION_NOT_FOUND; 404 ACTOR_NOT_FOUND for the successor; 409 POSITION_VACANT when nobody holds the position, so use hire instead. Example body: {\"successor\":\"agent:agent_123\",\"request_id\":\"replace-support-1\"}.",
24222
+ "http": "POST",
24223
+ "path": "/organization/v1/positions/{id}/replace_holder",
24224
+ "streaming": "no",
24225
+ "pagination": false,
24226
+ "pathParams": [
24227
+ {
24228
+ "name": "id",
24229
+ "sdkName": "id",
24230
+ "description": "Position id (pos_...) whose holder changes, from the positions list."
24231
+ }
24232
+ ],
24233
+ "query": [],
24234
+ "body": {
24235
+ "required": true,
24236
+ "fields": [
24237
+ {
24238
+ "name": "successor",
24239
+ "type": "string",
24240
+ "required": true,
24241
+ "description": "Actor address of the member or agent who takes the position, such as agent:agent_123; it must differ from the current holder."
24242
+ },
24243
+ {
24244
+ "name": "request_id",
24245
+ "type": "string",
24246
+ "required": true,
24247
+ "description": "Your own unique key for this request; repeating it returns the first result instead of replacing again."
24248
+ }
24249
+ ]
24250
+ }
24251
+ },
24252
+ {
24253
+ "resource": "organization.positions.unfreeze",
24254
+ "method": "create",
24255
+ "summary": "Unfreeze a position",
24256
+ "description": "Returns a frozen position to active. Unfreezing an active position returns it unchanged. Takes no body. Requires an organization owner or admin, or the head of the position's department or of a department above it. Errors: 403 PERMISSION_DENIED; 404 POSITION_NOT_FOUND; 409 POSITION_CLOSED.",
24257
+ "http": "POST",
24258
+ "path": "/organization/v1/positions/{id}/unfreeze",
24259
+ "streaming": "no",
24260
+ "pagination": false,
24261
+ "pathParams": [
24262
+ {
24263
+ "name": "id",
24264
+ "sdkName": "id",
24265
+ "description": "Position id (pos_...) to unfreeze, from the positions list."
24266
+ }
24267
+ ],
24268
+ "query": []
24269
+ },
24270
+ {
24271
+ "resource": "organization.usage",
24272
+ "method": "list",
24273
+ "summary": "List Organization Usage",
24274
+ "description": "Consumed quantity per time bucket per group. Buckets are whole UTC hour/day periods covering the requested window. Each result carries exactly one ConsumedQuantity + ConsumedUnit — quantities of different units are never added together.\n",
24275
+ "http": "GET",
24276
+ "path": "/organization/v1/usage",
24277
+ "streaming": "no",
24278
+ "pagination": false,
24279
+ "pathParams": [],
24280
+ "query": [
24281
+ {
24282
+ "name": "starting_at",
24283
+ "type": "string",
24284
+ "required": true,
24285
+ "description": "Window start, UTC ISO 8601, inclusive."
24286
+ },
24287
+ {
24288
+ "name": "ending_at",
24289
+ "type": "string",
24290
+ "required": true,
24291
+ "description": "Window end, UTC ISO 8601, exclusive. At most 93 days after starting_at."
24292
+ },
24293
+ {
24294
+ "name": "bucket_width",
24295
+ "type": "string",
24296
+ "enum": [
24297
+ "1h",
24298
+ "1d"
24299
+ ],
24300
+ "required": true,
24301
+ "description": "Length of each time bucket: 1h for hours or 1d for days, both aligned to whole UTC periods (or to local hours and days when time_zone is set)."
24302
+ },
24303
+ {
24304
+ "name": "time_zone",
24305
+ "type": "string",
24306
+ "required": false,
24307
+ "description": "IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.\n"
24308
+ },
24309
+ {
24310
+ "name": "group_by",
24311
+ "type": "array",
24312
+ "itemType": "string",
24313
+ "enum": [
24314
+ "ServiceName",
24315
+ "ServiceCategory",
24316
+ "ResourceId",
24317
+ "ConsumedUnit"
24318
+ ],
24319
+ "required": false,
24320
+ "description": "FOCUS columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).\n"
24321
+ },
24322
+ {
24323
+ "name": "page",
24324
+ "type": "string",
24325
+ "required": false,
24326
+ "description": "Opaque cursor from the previous page's next_page."
24327
+ }
24328
+ ]
24329
+ },
24330
+ {
24331
+ "resource": "registry.installations",
24332
+ "method": "delete",
24333
+ "summary": "Remove an installation",
24334
+ "description": "把包从目标上卸下来,并删掉这条安装记录:技能从智能体的技能列表里移除,插件从电脑上卸载。目标那边已经没有它时也算完成。包本身和它的版本不受影响,之后可以重新安装。记录删除后重发会 404,所以删除前先用 installations.list 确认。",
24335
+ "http": "DELETE",
24336
+ "path": "/registry/v1/installations/{installation_id}",
24337
+ "streaming": "no",
24338
+ "pagination": false,
24339
+ "pathParams": [
24340
+ {
24341
+ "name": "installation_id",
24342
+ "sdkName": "installation_id",
24343
+ "description": "安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。"
24344
+ }
24345
+ ],
24346
+ "query": []
24347
+ },
24348
+ {
24349
+ "resource": "registry.installations",
24350
+ "method": "update",
24351
+ "summary": "Update an installation",
24352
+ "description": "把一条安装记录换到另一个版本。技能可以换到任何未撤回的版本(升级或回退),version 省略时换到最新版;插件只能换到库里的最新版本,version 给了也必须等于最新版。撤回的版本不能换过去。对账为 missing 的记录用它可以重新装回去。同名冲突和 20 个技能上限的规则与安装时相同。",
24353
+ "http": "POST",
24354
+ "path": "/registry/v1/installations/{installation_id}:update",
24355
+ "streaming": "no",
24356
+ "pagination": false,
24357
+ "pathParams": [
24358
+ {
24359
+ "name": "installation_id",
24360
+ "sdkName": "installation_id",
24361
+ "description": "安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。"
24362
+ }
24363
+ ],
24364
+ "query": [],
24365
+ "body": {
24366
+ "required": true,
24367
+ "fields": [
24368
+ {
24369
+ "name": "version",
24370
+ "type": "string",
24371
+ "required": false,
24372
+ "description": "要换到的版本号,完整 semver;省略时换到最新版;插件给了也必须等于最新版,撤回的版本不能换。"
24373
+ }
24374
+ ]
24375
+ }
24376
+ },
24377
+ {
24378
+ "resource": "registry.packages",
24379
+ "method": "retrieve",
24380
+ "summary": "Retrieve package",
24381
+ "description": "读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404。",
24382
+ "http": "GET",
24383
+ "path": "/registry/v1/packages/{package_id}",
24384
+ "streaming": "no",
24385
+ "pagination": false,
24386
+ "pathParams": [
24387
+ {
24388
+ "name": "package_id",
24389
+ "sdkName": "package_id",
24390
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24391
+ }
24392
+ ],
24393
+ "query": []
24394
+ },
24395
+ {
24396
+ "resource": "registry.packages.installations",
24397
+ "method": "list",
24398
+ "summary": "List installations",
24399
+ "description": "列出这个包装在哪些智能体和电脑上。每次读取都会和目标那边对账,以目标现在的实际情况为准,所以每条记录的 state 是读取这一刻的结论:installed 表示目标上有它且版本与记录一致;drifted 表示目标上有它但版本不同,此时 version 显示目标上的版本;missing 表示目标上已经没有它(被人在智能体或电脑那边删掉了),记录仍保留,可以用 installations.delete 清掉,或用 installations.update 重新装回;unknown 表示这次问不到目标,不代表没装,稍后重读。withdrawn 表示这条记录的版本已被撤回。一次返回全部记录,没有分页,按创建时间排序。",
24400
+ "http": "GET",
24401
+ "path": "/registry/v1/packages/{package_id}/installations",
24402
+ "streaming": "no",
24403
+ "pagination": false,
24404
+ "pathParams": [
24405
+ {
24406
+ "name": "package_id",
24407
+ "sdkName": "package_id",
24408
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24409
+ }
24410
+ ],
24411
+ "query": []
24412
+ },
24413
+ {
24414
+ "resource": "registry.packages.installations",
24415
+ "method": "create",
24416
+ "summary": "Install a package",
24417
+ "description": "把一个包装到目标上:技能装到智能体(agent_ids),插件装到电脑(computer_ids),一次最多 50 个目标;目标种类给错会被拒(400),包的种类可从 packages.retrieve 的 kind 得知。技能装的是具体版本,version 省略时装最新版,之后不会自动升级,要换版本用 installations.update。插件只能装库里的最新版本,version 若给了就必须等于最新版,否则 FAILED_PRECONDITION。撤回的版本不能新装。同一目标重复装同一个包不会报错,而是把它移到这个版本。技能被拒的情形:智能体上已有同名的另一个技能(名字冲突),或这个智能体已经有 20 个技能。各目标独立处理:只要有一个成功就返回 201,成功的在 data 里,失败的目标在 errors 里逐个列出 target_id、code 和 message,按消息修正后只对失败的目标重发;全部失败时不返回 201,而是按第一个失败返回错误状态。装到智能体或电脑上要求调用者本人有权限,权限不足会出现在该目标的 errors 里。",
24418
+ "http": "POST",
24419
+ "path": "/registry/v1/packages/{package_id}/installations",
24420
+ "streaming": "no",
24421
+ "pagination": false,
24422
+ "pathParams": [
24423
+ {
24424
+ "name": "package_id",
24425
+ "sdkName": "package_id",
24426
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24427
+ }
24428
+ ],
24429
+ "query": [],
24430
+ "body": {
24431
+ "required": true,
24432
+ "fields": [
24433
+ {
24434
+ "name": "agent_ids",
24435
+ "type": "array",
24436
+ "itemType": "string",
24437
+ "required": false,
24438
+ "description": "要装到的智能体标识,1 到 50 个,重复的会合并;只用于技能,来自智能体列表的 id。"
24439
+ },
24440
+ {
24441
+ "name": "computer_ids",
24442
+ "type": "array",
24443
+ "itemType": "string",
24444
+ "required": false,
24445
+ "description": "要装到的电脑标识,1 到 50 个,重复的会合并;只用于插件,来自电脑列表的 id。"
24446
+ },
24447
+ {
24448
+ "name": "version",
24449
+ "type": "string",
24450
+ "required": false,
24451
+ "description": "要装的版本号,完整 semver;省略时装最新版;插件给了也必须等于最新版,撤回的版本不能装。"
24452
+ }
24453
+ ]
24454
+ }
24455
+ },
24456
+ {
24457
+ "resource": "registry.packages.versions",
24458
+ "method": "list",
24459
+ "summary": "List versions",
24460
+ "description": "列出一个包的所有版本,含已撤回的。撤回的版本仍在列表里(它占着版本号),withdrawn 为 true,并带 withdraw_time。按发布顺序返回。",
24461
+ "http": "GET",
24462
+ "path": "/registry/v1/packages/{package_id}/versions",
24463
+ "streaming": "no",
24464
+ "pagination": true,
24465
+ "pathParams": [
24466
+ {
24467
+ "name": "package_id",
24468
+ "sdkName": "package_id",
24469
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24470
+ }
24471
+ ],
24472
+ "query": [
24473
+ {
24474
+ "name": "page_size",
24475
+ "type": "integer",
24476
+ "required": false,
24477
+ "description": "每页返回多少条,1 到 100;省略时默认 20。超过 100 会被截到 100。"
24478
+ },
24479
+ {
24480
+ "name": "cursor",
24481
+ "type": "string",
24482
+ "required": false,
24483
+ "description": "上一页返回的 next_cursor,用来取下一页;第一页省略它,next_cursor 为 null 时停止翻页。"
24484
+ }
24485
+ ]
24486
+ },
24487
+ {
24488
+ "resource": "registry.packages.versions",
24489
+ "method": "create",
24490
+ "summary": "Publish a version",
24491
+ "description": "给一个已有的包发新版本。请求体与 packages.create 相同(multipart:version 必填,archive 或 files 给内容),但种类和名字沿用这个包,不再从上传内容重判。version 必须比已发布的最高版本高(撤回的版本也占号,不能复用);比它低或相等返回 FAILED_PRECONDITION。title、description、tags 不填就沿用这个包现在显示的,不会被新版本里 SKILL.md 或 plugin.json 的描述覆盖;要改就在这次请求里给。作者不随新版本改变。",
24492
+ "http": "POST",
24493
+ "path": "/registry/v1/packages/{package_id}/versions",
24494
+ "streaming": "no",
24495
+ "pagination": false,
24496
+ "multipart": true,
24497
+ "pathParams": [
24498
+ {
24499
+ "name": "package_id",
24500
+ "sdkName": "package_id",
24501
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24502
+ }
24503
+ ],
24504
+ "query": [],
24505
+ "body": {
24506
+ "required": true,
24507
+ "fields": [
24508
+ {
24509
+ "name": "version",
24510
+ "type": "string",
24511
+ "required": true,
24512
+ "description": "要发布的版本号,完整 semver,例如 1.2.0;每个包内必须严格递增,撤回的版本也占号。"
24513
+ },
24514
+ {
24515
+ "name": "archive",
24516
+ "type": "string",
24517
+ "required": false,
24518
+ "description": "一个 zip 文件,内含包的内容;与 files 二选一。单个顶层目录会被剥掉。"
24519
+ },
24520
+ {
24521
+ "name": "files",
24522
+ "type": "array",
24523
+ "itemType": "string",
24524
+ "required": false,
24525
+ "description": "直接上传的一组文件,每个 part 的 filename 是相对路径;与 archive 二选一。"
24526
+ },
24527
+ {
24528
+ "name": "title",
24529
+ "type": "string",
24530
+ "required": false,
24531
+ "description": "给人看的标题;省略时从包内容里取。"
24532
+ },
24533
+ {
24534
+ "name": "description",
24535
+ "type": "string",
24536
+ "required": false,
24537
+ "description": "包说明;省略时从包内容里取。"
24538
+ },
24539
+ {
24540
+ "name": "tags",
24541
+ "type": "string",
24542
+ "required": false,
24543
+ "description": "逗号分隔的标签,例如 review,quality;省略时没有标签。"
24544
+ }
24545
+ ]
24546
+ }
24547
+ },
24548
+ {
24549
+ "resource": "registry.packages.versions",
24550
+ "method": "retrieveArchive",
24551
+ "summary": "Download version archive",
24552
+ "description": "下载一个版本的完整 zip 归档,用来整包安装或转存。每次调用都计入这个包的 downloads,所以不要为了看内容而反复拉 archive——先读 contents,只取需要的文件用 files 下载。",
24553
+ "http": "GET",
24554
+ "path": "/registry/v1/packages/{package_id}/versions/{version}/archive",
24555
+ "streaming": "no",
24556
+ "pagination": false,
24557
+ "pathParams": [
24558
+ {
24559
+ "name": "package_id",
24560
+ "sdkName": "package_id",
24561
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24562
+ },
24563
+ {
24564
+ "name": "version",
24565
+ "sdkName": "version",
24566
+ "description": "要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。"
24567
+ }
24568
+ ],
24569
+ "query": []
24570
+ },
24571
+ {
24572
+ "resource": "registry.packages.versions.contents",
24573
+ "method": "list",
24574
+ "summary": "List version contents",
24575
+ "description": "列出一个版本解压后的文件清单(路径和大小),用来在不下载整个包的前提下看它包含什么。路径是相对包根的,例如 SKILL.md 或 plugin/skills/review.md。已撤回的版本仍可读清单。",
24576
+ "http": "GET",
24577
+ "path": "/registry/v1/packages/{package_id}/versions/{version}/contents",
24578
+ "streaming": "no",
24579
+ "pagination": false,
24580
+ "pathParams": [
24581
+ {
24582
+ "name": "package_id",
24583
+ "sdkName": "package_id",
24584
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24585
+ },
24586
+ {
24587
+ "name": "version",
24588
+ "sdkName": "version",
24589
+ "description": "要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。"
24590
+ }
24591
+ ],
24592
+ "query": []
24593
+ },
24594
+ {
24595
+ "resource": "registry.packages.versions.files",
24596
+ "method": "retrieve",
24597
+ "summary": "Download a file",
24598
+ "description": "下载一个版本里的单个文件,返回原始字节。path 是 contents 给出的路径,可以含斜杠(例如 plugin/skills/review.md)。用它按文件取内容,装到磁盘上时保留这个相对路径。不计入 downloads。",
24599
+ "http": "GET",
24600
+ "path": "/registry/v1/packages/{package_id}/versions/{version}/files/{path}",
23187
24601
  "streaming": "no",
23188
24602
  "pagination": false,
23189
24603
  "pathParams": [
23190
24604
  {
23191
- "name": "id",
23192
- "sdkName": "id",
23193
- "description": "Position id (pos_...) to make head of its department, from the positions list."
24605
+ "name": "package_id",
24606
+ "sdkName": "package_id",
24607
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24608
+ },
24609
+ {
24610
+ "name": "version",
24611
+ "sdkName": "version",
24612
+ "description": "要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。"
24613
+ },
24614
+ {
24615
+ "name": "path",
24616
+ "sdkName": "path",
24617
+ "description": "版本内的相对文件路径,取自 contents 返回的 path,可以含斜杠(例如 plugin/skills/review.md);不要以 / 开头。"
23194
24618
  }
23195
24619
  ],
23196
24620
  "query": []
23197
24621
  },
23198
24622
  {
23199
- "resource": "organization.positions.freeze",
23200
- "method": "create",
23201
- "summary": "Freeze a position",
23202
- "description": "Freezes a vacant position to keep it without using it, for example while hiring is paused; unfreeze brings it back. Freezing a frozen position returns it unchanged. Takes no body. Requires an organization owner or admin, or the head of the position's department or of a department above it. Errors: 403 PERMISSION_DENIED; 404 POSITION_NOT_FOUND; 409 POSITION_CLOSED; 409 POSITION_OCCUPIED while someone still holds the position.",
24623
+ "resource": "registry.packages.versions",
24624
+ "method": "withdraw",
24625
+ "summary": "Withdraw a version",
24626
+ "description": "撤回一个版本。撤回后它不再是 latest、不能被新装;已经装好的照常可用。版本号仍被占着,不能再用它发新版本。已经撤回的版本再撤回会返回 FAILED_PRECONDITION。撤回是不可逆的:要重新提供这个版本,用更高的版本号重新发布。",
23203
24627
  "http": "POST",
23204
- "path": "/organization/v1/positions/{id}/freeze",
24628
+ "path": "/registry/v1/packages/{package_id}/versions/{version}:withdraw",
23205
24629
  "streaming": "no",
23206
24630
  "pagination": false,
23207
24631
  "pathParams": [
23208
24632
  {
23209
- "name": "id",
23210
- "sdkName": "id",
23211
- "description": "Position id (pos_...) to freeze, from the positions list."
24633
+ "name": "package_id",
24634
+ "sdkName": "package_id",
24635
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
24636
+ },
24637
+ {
24638
+ "name": "version",
24639
+ "sdkName": "version",
24640
+ "description": "要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。"
23212
24641
  }
23213
24642
  ],
23214
24643
  "query": []
23215
24644
  },
23216
24645
  {
23217
- "resource": "organization.positions.hire",
24646
+ "resource": "registry.repositories",
24647
+ "method": "list",
24648
+ "summary": "List repositories",
24649
+ "description": "列出这个组织现有的库,默认库也在其中。库很少,一页通常装得下;用 next_cursor 翻页。先在这里拿到 repository_id,再用它列出或发布包。",
24650
+ "http": "GET",
24651
+ "path": "/registry/v1/repositories",
24652
+ "streaming": "no",
24653
+ "pagination": true,
24654
+ "pathParams": [],
24655
+ "query": [
24656
+ {
24657
+ "name": "page_size",
24658
+ "type": "integer",
24659
+ "required": false,
24660
+ "description": "每页返回多少条,1 到 100;省略时默认 20。超过 100 会被截到 100。"
24661
+ },
24662
+ {
24663
+ "name": "cursor",
24664
+ "type": "string",
24665
+ "required": false,
24666
+ "description": "上一页返回的 next_cursor,用来取下一页;第一页省略它,next_cursor 为 null 时停止翻页。"
24667
+ }
24668
+ ]
24669
+ },
24670
+ {
24671
+ "resource": "registry.repositories",
23218
24672
  "method": "create",
23219
- "summary": "Hire into a position",
23220
- "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\"}.",
24673
+ "summary": "Create repository",
24674
+ "description": "新建一个库来分类存放包。name 是库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且不能和已有的库重名;display_name 和 description 是给人看的。每个组织本来就有一个默认库,需要新分类时才建;一个库非空时不能删除,所以不要用库来临时隔离一次上传。",
23221
24675
  "http": "POST",
23222
- "path": "/organization/v1/positions/{id}/hire",
24676
+ "path": "/registry/v1/repositories",
23223
24677
  "streaming": "no",
23224
24678
  "pagination": false,
23225
- "pathParams": [
23226
- {
23227
- "name": "id",
23228
- "sdkName": "id",
23229
- "description": "Position id (pos_...) to fill, from the positions list."
23230
- }
23231
- ],
24679
+ "pathParams": [],
23232
24680
  "query": [],
23233
24681
  "body": {
23234
24682
  "required": true,
23235
24683
  "fields": [
23236
24684
  {
23237
- "name": "candidate",
23238
- "type": "object",
24685
+ "name": "name",
24686
+ "type": "string",
23239
24687
  "required": true,
23240
- "description": "Who to appoint to the position; an existing person or agent of your organization."
24688
+ "description": "新库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且在这个组织里未被使用;不能只有一个连字符结尾。"
23241
24689
  },
23242
24690
  {
23243
- "name": "primary",
23244
- "type": "boolean",
24691
+ "name": "display_name",
24692
+ "type": "string",
23245
24693
  "required": false,
23246
- "description": "Whether this becomes the actor's primary assignment; omit to be primary only when the actor holds nothing, and false is refused for an actor that holds nothing."
24694
+ "description": "给人看的库名;省略时后续显示 name。"
23247
24695
  },
23248
24696
  {
23249
- "name": "request_id",
24697
+ "name": "description",
23250
24698
  "type": "string",
23251
- "required": true,
23252
- "description": "Your own unique key for this request; repeating it returns the first assignment instead of seating anyone again."
24699
+ "required": false,
24700
+ "description": "库的说明;省略时不写。"
23253
24701
  }
23254
24702
  ]
23255
24703
  }
23256
24704
  },
23257
24705
  {
23258
- "resource": "organization.positions",
23259
- "method": "updateLevel",
23260
- "summary": "Regrade a position",
23261
- "description": "Sets the job level of a position. If the position was opened from a job that lists allowed levels, the level must be one of them. Requires an organization owner or admin; a department head cannot regrade. Errors: 400 JOB_LEVEL_OUT_OF_RANGE when the job does not allow the level; 403 PERMISSION_DENIED; 404 POSITION_NOT_FOUND; 404 JOB_LEVEL_NOT_FOUND; 409 POSITION_CLOSED.",
23262
- "http": "PUT",
23263
- "path": "/organization/v1/positions/{id}/level",
24706
+ "resource": "registry.repositories",
24707
+ "method": "delete",
24708
+ "summary": "Delete repository",
24709
+ "description": "删一个空的库。默认库不能删(FAILED_PRECONDITION);库里还有包时也不能删,先把包删掉或改用别的库。删除请求重发会 404,所以删除前先读一次确认。",
24710
+ "http": "DELETE",
24711
+ "path": "/registry/v1/repositories/{repository_id}",
23264
24712
  "streaming": "no",
23265
24713
  "pagination": false,
23266
24714
  "pathParams": [
23267
24715
  {
23268
- "name": "id",
23269
- "sdkName": "id",
23270
- "description": "Position id (pos_...) to regrade, from the positions list."
24716
+ "name": "repository_id",
24717
+ "sdkName": "repository_id",
24718
+ "description": "库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。"
23271
24719
  }
23272
24720
  ],
23273
- "query": [],
23274
- "body": {
23275
- "required": true,
23276
- "fields": [
23277
- {
23278
- "name": "job_level_id",
23279
- "type": "string",
23280
- "required": true,
23281
- "description": "Id of the job level (lvl_...) to give the position; must be allowed by its job when the job lists levels."
23282
- }
23283
- ]
23284
- }
24721
+ "query": []
23285
24722
  },
23286
24723
  {
23287
- "resource": "organization.positions",
23288
- "method": "updateManager",
23289
- "summary": "Reassign a position's manager",
23290
- "description": "Sets the position this position reports to, or sends null to return to the default line: the head position of its department, and for a head position the head of the parent department. Requires an organization owner or admin, or the head of the position's department or of a department above it. The target may be in any department. Errors: 400 REPORTING_CYCLE when the new line would loop back to this position; 403 PERMISSION_DENIED; 404 POSITION_NOT_FOUND for the position or the target; 409 POSITION_CLOSED when either is closed.",
23291
- "http": "PUT",
23292
- "path": "/organization/v1/positions/{id}/manager",
24724
+ "resource": "registry.repositories",
24725
+ "method": "retrieve",
24726
+ "summary": "Retrieve repository",
24727
+ "description": "读一个库的名称、说明、包数量和默认标记。repository_id 来自 repositories.list 或 repositories.create;另一个组织的库或不存在的库一律 404,不区分两者。",
24728
+ "http": "GET",
24729
+ "path": "/registry/v1/repositories/{repository_id}",
23293
24730
  "streaming": "no",
23294
24731
  "pagination": false,
23295
24732
  "pathParams": [
23296
24733
  {
23297
- "name": "id",
23298
- "sdkName": "id",
23299
- "description": "Position id (pos_...) whose manager changes, from the positions list."
24734
+ "name": "repository_id",
24735
+ "sdkName": "repository_id",
24736
+ "description": "库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。"
23300
24737
  }
23301
24738
  ],
23302
- "query": [],
23303
- "body": {
23304
- "required": true,
23305
- "fields": [
23306
- {
23307
- "name": "reports_to_position_id",
23308
- "type": "string",
23309
- "required": true,
23310
- "description": "Id of the position (pos_...) this one reports to; null returns it to the default line to its department head."
23311
- }
23312
- ]
23313
- }
24739
+ "query": []
23314
24740
  },
23315
24741
  {
23316
- "resource": "organization.positions.replaceHolder",
23317
- "method": "create",
23318
- "summary": "Replace a position's holder",
23319
- "description": "Ends the current holder's assignment with reason replaced and seats the successor in the same step, so the position is never vacant in between; the ended assignment records the successor's assignment id as successor_assignment_id. Nothing the predecessor learned or remembered passes to the successor, because experience belongs to the actor, not the position. The successor must exist in your organization and not be archived; it becomes primary if it holds nothing else, otherwise a concurrent assignment. If the predecessor was primary and holds other positions, the earliest of those becomes its primary. request_id makes the call idempotent: repeating it returns the first result and replaces nobody again. 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 successor or request_id, a successor that already holds this position or an unknown body field; 403 PERMISSION_DENIED; 404 POSITION_NOT_FOUND; 404 ACTOR_NOT_FOUND for the successor; 409 POSITION_VACANT when nobody holds the position, so use hire instead. Example body: {\"successor\":\"agent:agent_123\",\"request_id\":\"replace-support-1\"}.",
23320
- "http": "POST",
23321
- "path": "/organization/v1/positions/{id}/replace_holder",
24742
+ "resource": "registry.repositories",
24743
+ "method": "update",
24744
+ "summary": "Update repository",
24745
+ "description": "改库的 display_name 或 description。只送要改的字段,省略的保持原值;name 建库之后不能改,它标识库。一个字段都不送会 400。",
24746
+ "http": "PATCH",
24747
+ "path": "/registry/v1/repositories/{repository_id}",
23322
24748
  "streaming": "no",
23323
24749
  "pagination": false,
23324
24750
  "pathParams": [
23325
24751
  {
23326
- "name": "id",
23327
- "sdkName": "id",
23328
- "description": "Position id (pos_...) whose holder changes, from the positions list."
24752
+ "name": "repository_id",
24753
+ "sdkName": "repository_id",
24754
+ "description": "库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。"
23329
24755
  }
23330
24756
  ],
23331
24757
  "query": [],
@@ -23333,98 +24759,138 @@ export const operations = [
23333
24759
  "required": true,
23334
24760
  "fields": [
23335
24761
  {
23336
- "name": "successor",
24762
+ "name": "display_name",
23337
24763
  "type": "string",
23338
- "required": true,
23339
- "description": "Actor address of the member or agent who takes the position, such as agent:agent_123; it must differ from the current holder."
24764
+ "required": false,
24765
+ "description": "新的显示名;显式传 null 会清空它。"
23340
24766
  },
23341
24767
  {
23342
- "name": "request_id",
24768
+ "name": "description",
23343
24769
  "type": "string",
23344
- "required": true,
23345
- "description": "Your own unique key for this request; repeating it returns the first result instead of replacing again."
24770
+ "required": false,
24771
+ "description": "新的说明;显式传 null 会清空它。"
23346
24772
  }
23347
24773
  ]
23348
24774
  }
23349
24775
  },
23350
24776
  {
23351
- "resource": "organization.positions.unfreeze",
23352
- "method": "create",
23353
- "summary": "Unfreeze a position",
23354
- "description": "Returns a frozen position to active. Unfreezing an active position returns it unchanged. Takes no body. Requires an organization owner or admin, or the head of the position's department or of a department above it. Errors: 403 PERMISSION_DENIED; 404 POSITION_NOT_FOUND; 409 POSITION_CLOSED.",
23355
- "http": "POST",
23356
- "path": "/organization/v1/positions/{id}/unfreeze",
24777
+ "resource": "registry.repositories.packages",
24778
+ "method": "list",
24779
+ "summary": "List packages",
24780
+ "description": "列出一个库里的包,可按种类筛、按名字搜、按最近更新或下载量排序。kind=skill 只看技能,kind=plugin 只看插件,省略则两类都返回。q 在 name、title 和 description 上做子串匹配。sort 默认 updated;downloads 按累计下载量降序,用来找这个库最常用的资源。",
24781
+ "http": "GET",
24782
+ "path": "/registry/v1/repositories/{repository_id}/packages",
23357
24783
  "streaming": "no",
23358
- "pagination": false,
24784
+ "pagination": true,
23359
24785
  "pathParams": [
23360
24786
  {
23361
- "name": "id",
23362
- "sdkName": "id",
23363
- "description": "Position id (pos_...) to unfreeze, from the positions list."
24787
+ "name": "repository_id",
24788
+ "sdkName": "repository_id",
24789
+ "description": "库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。"
23364
24790
  }
23365
24791
  ],
23366
- "query": []
23367
- },
23368
- {
23369
- "resource": "organization.usage",
23370
- "method": "list",
23371
- "summary": "List Organization Usage",
23372
- "description": "Consumed quantity per time bucket per group. Buckets are whole UTC hour/day periods covering the requested window. Each result carries exactly one ConsumedQuantity + ConsumedUnit — quantities of different units are never added together.\n",
23373
- "http": "GET",
23374
- "path": "/organization/v1/usage",
23375
- "streaming": "no",
23376
- "pagination": false,
23377
- "pathParams": [],
23378
24792
  "query": [
23379
24793
  {
23380
- "name": "starting_at",
24794
+ "name": "kind",
23381
24795
  "type": "string",
23382
- "required": true,
23383
- "description": "Window start, UTC ISO 8601, inclusive."
24796
+ "enum": [
24797
+ "skill",
24798
+ "plugin"
24799
+ ],
24800
+ "required": false,
24801
+ "description": "只看某一类包;省略时技能和插件都返回。"
23384
24802
  },
23385
24803
  {
23386
- "name": "ending_at",
24804
+ "name": "q",
23387
24805
  "type": "string",
23388
- "required": true,
23389
- "description": "Window end, UTC ISO 8601, exclusive. At most 93 days after starting_at."
24806
+ "required": false,
24807
+ "description": "按子串搜索包,匹配 name、title 和 description;省略时不过滤。不区分大小写。"
23390
24808
  },
23391
24809
  {
23392
- "name": "bucket_width",
24810
+ "name": "sort",
23393
24811
  "type": "string",
23394
24812
  "enum": [
23395
- "1h",
23396
- "1d"
24813
+ "updated",
24814
+ "downloads"
23397
24815
  ],
23398
- "required": true,
23399
- "description": "Length of each time bucket: 1h for hours or 1d for days, both aligned to whole UTC periods (or to local hours and days when time_zone is set)."
23400
- },
23401
- {
23402
- "name": "time_zone",
23403
- "type": "string",
23404
24816
  "required": false,
23405
- "description": "IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.\n"
24817
+ "description": "结果排序方式;省略时按 updated。"
23406
24818
  },
23407
24819
  {
23408
- "name": "group_by",
23409
- "type": "array",
23410
- "itemType": "string",
23411
- "enum": [
23412
- "ServiceName",
23413
- "ServiceCategory",
23414
- "ResourceId",
23415
- "ConsumedUnit"
23416
- ],
24820
+ "name": "page_size",
24821
+ "type": "integer",
23417
24822
  "required": false,
23418
- "description": "FOCUS columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).\n"
24823
+ "description": "每页返回多少条,1 到 100;省略时默认 20。超过 100 会被截到 100。"
23419
24824
  },
23420
24825
  {
23421
- "name": "page",
24826
+ "name": "cursor",
23422
24827
  "type": "string",
23423
24828
  "required": false,
23424
- "description": "Opaque cursor from the previous page's next_page."
24829
+ "description": "上一页返回的 next_cursor,用来取下一页;第一页省略它,next_cursor 为 null 时停止翻页。"
23425
24830
  }
23426
24831
  ]
23427
24832
  },
24833
+ {
24834
+ "resource": "registry.repositories.packages",
24835
+ "method": "create",
24836
+ "summary": "Publish a package",
24837
+ "description": "把一个新包发布进这个库,一次调用建立包并上传它的第一个版本。发布内容是 multipart:version 必填,archive 给一个 zip,或者 files 给一组文件(每个文件的 filename 是相对上传根的路径,例如 pdf/SKILL.md)。单个顶层目录会被剥掉。种类按根上有什么判:有 SKILL.md 就是 skill,有 .claude-plugin/plugin.json 就是 plugin;两者都没有、或都有,会被拒。名字从 SKILL.md 或 plugin.json 里读,不从路径或 query 猜。限额:上传 ≤25 MiB,解压后 ≤50 MiB,≤1000 个文件。版本必须是 semver 且严格递增;第一个版本可以是任意合法 semver,之后每个新版本都要比已发布的最高版本高。把已有智能体的技能搬过来时,先用 GET /agent/v1/skills/{id}/versions/{v}/content 导出 zip,再在这里作为 archive 发布。",
24838
+ "http": "POST",
24839
+ "path": "/registry/v1/repositories/{repository_id}/packages",
24840
+ "streaming": "no",
24841
+ "pagination": false,
24842
+ "multipart": true,
24843
+ "pathParams": [
24844
+ {
24845
+ "name": "repository_id",
24846
+ "sdkName": "repository_id",
24847
+ "description": "库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。"
24848
+ }
24849
+ ],
24850
+ "query": [],
24851
+ "body": {
24852
+ "required": true,
24853
+ "fields": [
24854
+ {
24855
+ "name": "version",
24856
+ "type": "string",
24857
+ "required": true,
24858
+ "description": "要发布的版本号,完整 semver,例如 1.2.0;每个包内必须严格递增,撤回的版本也占号。"
24859
+ },
24860
+ {
24861
+ "name": "archive",
24862
+ "type": "string",
24863
+ "required": false,
24864
+ "description": "一个 zip 文件,内含包的内容;与 files 二选一。单个顶层目录会被剥掉。"
24865
+ },
24866
+ {
24867
+ "name": "files",
24868
+ "type": "array",
24869
+ "itemType": "string",
24870
+ "required": false,
24871
+ "description": "直接上传的一组文件,每个 part 的 filename 是相对路径;与 archive 二选一。"
24872
+ },
24873
+ {
24874
+ "name": "title",
24875
+ "type": "string",
24876
+ "required": false,
24877
+ "description": "给人看的标题;省略时从包内容里取。"
24878
+ },
24879
+ {
24880
+ "name": "description",
24881
+ "type": "string",
24882
+ "required": false,
24883
+ "description": "包说明;省略时从包内容里取。"
24884
+ },
24885
+ {
24886
+ "name": "tags",
24887
+ "type": "string",
24888
+ "required": false,
24889
+ "description": "逗号分隔的标签,例如 review,quality;省略时没有标签。"
24890
+ }
24891
+ ]
24892
+ }
24893
+ },
23428
24894
  {
23429
24895
  "resource": "sandbox.events.sandboxes",
23430
24896
  "method": "retrieve",
@@ -25570,16 +27036,18 @@ export const operations = [
25570
27036
  "type": "string",
25571
27037
  "enum": [
25572
27038
  "file",
25573
- "artifact"
27039
+ "artifact",
27040
+ "canvas",
27041
+ "media_asset"
25574
27042
  ],
25575
27043
  "required": false,
25576
- "description": "Only shares of this object type; file is the only type that creates today."
27044
+ "description": "Only shares of this object type; file, canvas and media_asset create today."
25577
27045
  },
25578
27046
  {
25579
27047
  "name": "resource_id",
25580
27048
  "type": "string",
25581
27049
  "required": false,
25582
- "description": "Only shares of the object with this id, for example a file id from the File API; combine with resource_type."
27050
+ "description": "Only shares of the object with this id, for example a file id from the File API or a media asset's library_id/asset_id; combine with resource_type."
25583
27051
  },
25584
27052
  {
25585
27053
  "name": "status",