@deepraxis/sdk 0.1.1-dev.5fa7088 → 0.1.1-dev.604ca9a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/METHODS.md +111 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +210 -15
- package/dist/generated/sdk.gen.js +511 -14
- package/dist/generated/types.gen.d.ts +2644 -74
- package/dist/operations.generated.js +1019 -77
- package/dist/resources.generated.d.ts +129 -8
- package/dist/resources.generated.js +72 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ export const operations = [
|
|
|
3
3
|
"resource": "agent.agents",
|
|
4
4
|
"method": "list",
|
|
5
5
|
"summary": "List agents",
|
|
6
|
-
"description": "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=general
|
|
6
|
+
"description": "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=general for durable-computer agents, kind=service for per-session environments, or kind=assume for external MCP clients. Pass next_page from the response as page to read the next page; a null next_page means the end.",
|
|
7
7
|
"http": "GET",
|
|
8
8
|
"path": "/agent/v1/agents",
|
|
9
9
|
"streaming": "no",
|
|
@@ -49,7 +49,6 @@ export const operations = [
|
|
|
49
49
|
"type": "string",
|
|
50
50
|
"enum": [
|
|
51
51
|
"general",
|
|
52
|
-
"personal",
|
|
53
52
|
"service",
|
|
54
53
|
"assume"
|
|
55
54
|
],
|
|
@@ -134,19 +133,18 @@ export const operations = [
|
|
|
134
133
|
"type": "array",
|
|
135
134
|
"itemType": "object",
|
|
136
135
|
"required": false,
|
|
137
|
-
"description": "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general
|
|
136
|
+
"description": "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1024
|
-
"description": "Follow
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
}
|
|
@@ -2360,6 +2391,64 @@ export const operations = [
|
|
|
2360
2391
|
],
|
|
2361
2392
|
"query": []
|
|
2362
2393
|
},
|
|
2394
|
+
{
|
|
2395
|
+
"resource": "agent.sessions.artifacts",
|
|
2396
|
+
"method": "list",
|
|
2397
|
+
"summary": "List Session Artifacts (Extension)",
|
|
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.",
|
|
2399
|
+
"http": "GET",
|
|
2400
|
+
"path": "/agent/v1/sessions/{session_id}/artifacts",
|
|
2401
|
+
"streaming": "no",
|
|
2402
|
+
"pagination": false,
|
|
2403
|
+
"pathParams": [
|
|
2404
|
+
{
|
|
2405
|
+
"name": "session_id",
|
|
2406
|
+
"sdkName": "session_id",
|
|
2407
|
+
"description": "Session id from session creation or listing."
|
|
2408
|
+
}
|
|
2409
|
+
],
|
|
2410
|
+
"query": []
|
|
2411
|
+
},
|
|
2412
|
+
{
|
|
2413
|
+
"resource": "agent.sessions.artifacts.contentUrl",
|
|
2414
|
+
"method": "create",
|
|
2415
|
+
"summary": "Create Artifact Content URL (Extension)",
|
|
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.",
|
|
2417
|
+
"http": "POST",
|
|
2418
|
+
"path": "/agent/v1/sessions/{session_id}/artifacts/{artifact_id}/content_url",
|
|
2419
|
+
"streaming": "no",
|
|
2420
|
+
"pagination": false,
|
|
2421
|
+
"pathParams": [
|
|
2422
|
+
{
|
|
2423
|
+
"name": "session_id",
|
|
2424
|
+
"sdkName": "session_id",
|
|
2425
|
+
"description": "Session id from session creation or listing."
|
|
2426
|
+
},
|
|
2427
|
+
{
|
|
2428
|
+
"name": "artifact_id",
|
|
2429
|
+
"sdkName": "artifact_id",
|
|
2430
|
+
"description": "Artifact id (art_...) from the artifact list or an agent.artifact_delivered event."
|
|
2431
|
+
}
|
|
2432
|
+
],
|
|
2433
|
+
"query": [],
|
|
2434
|
+
"body": {
|
|
2435
|
+
"required": false,
|
|
2436
|
+
"fields": [
|
|
2437
|
+
{
|
|
2438
|
+
"name": "part",
|
|
2439
|
+
"type": "integer",
|
|
2440
|
+
"required": false,
|
|
2441
|
+
"description": "Index into the artifact's parts; defaults to 0."
|
|
2442
|
+
},
|
|
2443
|
+
{
|
|
2444
|
+
"name": "ttl_seconds",
|
|
2445
|
+
"type": "integer",
|
|
2446
|
+
"required": false,
|
|
2447
|
+
"description": "How long the address works, 60 to 300 seconds; defaults to 300."
|
|
2448
|
+
}
|
|
2449
|
+
]
|
|
2450
|
+
}
|
|
2451
|
+
},
|
|
2363
2452
|
{
|
|
2364
2453
|
"resource": "agent.sessions.backgroundTasks",
|
|
2365
2454
|
"method": "list",
|
|
@@ -2529,7 +2618,7 @@ export const operations = [
|
|
|
2529
2618
|
"resource": "agent.sessions.events",
|
|
2530
2619
|
"method": "list",
|
|
2531
2620
|
"summary": "List session events",
|
|
2532
|
-
"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), 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
|
|
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.",
|
|
2533
2622
|
"http": "GET",
|
|
2534
2623
|
"path": "/agent/v1/sessions/{session_id}/events",
|
|
2535
2624
|
"streaming": "no",
|
|
@@ -2601,7 +2690,7 @@ export const operations = [
|
|
|
2601
2690
|
"resource": "agent.sessions.events",
|
|
2602
2691
|
"method": "send",
|
|
2603
2692
|
"summary": "Send session events",
|
|
2604
|
-
"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
|
|
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.",
|
|
2605
2694
|
"http": "POST",
|
|
2606
2695
|
"path": "/agent/v1/sessions/{session_id}/events",
|
|
2607
2696
|
"streaming": "no",
|
|
@@ -2631,7 +2720,7 @@ export const operations = [
|
|
|
2631
2720
|
"resource": "agent.sessions.events",
|
|
2632
2721
|
"method": "stream",
|
|
2633
2722
|
"summary": "Stream session events",
|
|
2634
|
-
"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
|
|
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.",
|
|
2635
2724
|
"http": "GET",
|
|
2636
2725
|
"path": "/agent/v1/sessions/{session_id}/events/stream",
|
|
2637
2726
|
"streaming": "always",
|
|
@@ -2686,6 +2775,24 @@ export const operations = [
|
|
|
2686
2775
|
]
|
|
2687
2776
|
}
|
|
2688
2777
|
},
|
|
2778
|
+
{
|
|
2779
|
+
"resource": "agent.sessions.requests",
|
|
2780
|
+
"method": "list",
|
|
2781
|
+
"summary": "List Session Requests (Extension)",
|
|
2782
|
+
"description": "List the requests a session is waiting on; an end-customer token reads its own session.\n\nOwn-face extension. When a session stops at session.status_idle with stop_reason requires_action, read what it waits on here instead of replaying events. Returns { data: Request[] } ordered by create_time, an empty array when nothing is pending, not paginated. Each request has id (the pending tool call id), object (request), kind (question for the ask_user_question tool, approval for any other tool that waits for permission), status (pending), tool_name, input (the same input the agent.tool_use event shows), create_time and expire_time. Answer a request as before: send a user.tool_confirmation event for its id. expire_time is set only for a session with no collaboration mode while the requests-v1 release is on (create_time plus 24 hours; an expired request counts as declined), otherwise null. Answered, expired and superseded requests are not listed, and neither are pending custom tool results (user.custom_tool_result). Whoever may read the session may read its requests; a session that is missing or not yours returns 404.",
|
|
2783
|
+
"http": "GET",
|
|
2784
|
+
"path": "/agent/v1/sessions/{session_id}/requests",
|
|
2785
|
+
"streaming": "no",
|
|
2786
|
+
"pagination": false,
|
|
2787
|
+
"pathParams": [
|
|
2788
|
+
{
|
|
2789
|
+
"name": "session_id",
|
|
2790
|
+
"sdkName": "session_id",
|
|
2791
|
+
"description": "Session id from session creation or listing."
|
|
2792
|
+
}
|
|
2793
|
+
],
|
|
2794
|
+
"query": []
|
|
2795
|
+
},
|
|
2689
2796
|
{
|
|
2690
2797
|
"resource": "agent.sessions.resources",
|
|
2691
2798
|
"method": "list",
|
|
@@ -10657,7 +10764,7 @@ export const operations = [
|
|
|
10657
10764
|
"resource": "cut.projects",
|
|
10658
10765
|
"method": "execute",
|
|
10659
10766
|
"summary": "Execute editing script",
|
|
10660
|
-
"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- `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- `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",
|
|
10767
|
+
"description": "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: `const t = AddTrack(\"video\"); Insert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3}); Print(t);`\n\n<!-- cut-reference:start -->\n### Script function, field and error reference\n\nEvery script function, clip field and error code has its own section, read one at a time:\n\n```\ncodemode.describe(\"praxis.cut.script.<Name>\") // one function: signature, arguments, return, errors, example\ncodemode.describe(\"praxis.cut.fields.<name>\") // one field: type, unit, range, default, where writable\ncodemode.describe(\"praxis.cut.errors.<CODE>\") // one code: meaning, causes, fix\ncodemode.describe(\"praxis.cut.script\") // names, one page at a time\n```\n\nPublished at https://docs.deepraxis.com/docs/developers/cut/script-reference with one anchor per entry. Names below omit the `praxis.cut.<kind>.` prefix.\n\n#### Script functions (script)\n\n- `GetTimeline` — Duration, tracks, joins; clips are under `items`.\n- `GetItem` — One clip's compact view, by id.\n- `FindItems` — Visit every clip with its track; collect results.\n- `GetMedia` — Media metadata; `duration` is seconds.\n- `GetTranscript` — Transcript words in source microseconds.\n- `GetAnalysis` — Silence, filler, scene or beat segments.\n- `ListTransitions` — Join transition kinds and parameters.\n- `ListEffects` — Visual-effect catalog and parameters.\n- `ListAnimations` — Animation presets by phase and target.\n- `ListFonts` — Font families, weights and scripts.\n- `ListTextStyles` — Text style presets for `style.preset`.\n- `ListTextTemplates` — Multi-layer templates and their slots.\n- `Insert` — Add a clip; a track never overlaps itself.\n- `Append` — Add a clip at the end of a track.\n- `Update` — Change named fields; the rest stay.\n- `SetSpeed` — Change rate, keeping source or duration.\n- `Delete` — Remove a clip. There is no `Remove`.\n- `Join` — Overlap clips; followers shift, track shortens.\n- `UpdateJoin` — Change a join's length or effect.\n- `DeleteJoin` — Remove a join; restore the butt cut.\n- `Split` — Cut a clip in two at a time.\n- `Trim` — Move one clip edge by seconds.\n- `Move` — Set a clip's start or track.\n- `RippleDeleteRange` — Cut a time range and close the gap.\n- `DeleteWords` — Cut transcript words and ripple every track, keeping a breath.\n- `RemoveFillers` — List and delete filler words by media's own labels; dryRun first.\n- `Matte` — Replace the clip's background with media's matte of its source, read as a luma mask.\n- `EnhanceVoice` — Replace a clip's sound with media's enhanced speech on its own audio track.\n- `AlignByAudio` — Line two recordings of the same sound up by media's measurement of their offset.\n- `Reframe` — Swap the clip's media for media's reframed take at the aspect you ask for.\n- `Upscale` — Swap the clip's media for media's upscaled take at the height you ask for.\n- `Redact` — Pixelate the faces, QR codes or text media marks, leaving the rest of the frame plain.\n- `AddTrack` — Add a video, audio or caption track.\n- `MoveTrack` — Move a track between layers; 0 is the topmost.\n- `UpdateTrack` — Change a track's name, lock, gain or role.\n- `DeleteTrack` — Remove a track and its clips.\n- `SetSettings` — Change canvas, frame rate or background.\n- `AddCaptionsFromTranscript` — Captions from a clip's kept words.\n- `InsertTemplate` — Insert a template and fill its slots.\n- `AlignCaptions` — Rebuild captions from text punctuation.\n- `ImportCaptions` — Import SRT or WebVTT onto captions.\n- `ExportCaptions` — Export captions as SRT or WebVTT.\n- `SetMarker` — Label a timeline position.\n- `Print` — Append values to the result's `prints`.\n- `Preview` — Up to 8 frames as inline PNG data URLs.\n\n#### Fields (fields)\n\n- `type` — Clip kind; decides which fields apply.\n- `start` — Clip start in seconds; snaps to frames.\n- `length` — Duration; video and audio may omit it or write \"auto\".\n- `media` — Source `{ libraryId, assetId }`.\n- `sourceIn` — First source second kept; default 0.\n- `sourceOut` — Exclusive source end; read-only.\n- `text` — Text of a text or caption clip.\n- `color` — Solid colour of a color clip.\n- `shape` — Shape clip kind: `rect` or `ellipse`.\n- `width` — Shape width, a fraction of canvas width.\n- `height` — Shape height, a fraction of canvas height.\n- `radius` — Rect corner rounding, in 1080-height px.\n- `fill` — Shape or text paint: colour or gradient.\n- `stroke` — Shape outline: colour and width.\n- `transform` — Position, scale, rotation, opacity, crop, blur.\n- `fit` — contain, cover, fill or none.\n- `blend` — Layer blend mode; null clears.\n- `style` — Text styling: font, fill, strokes, glow, position.\n- `style.position` — top, middle or bottom; omit it, never null.\n- `playback` — Rate, direction, audio policy, or freeze.\n- `volumeDb` — Audio level in dB; 0 is source level.\n- `gain` — Keyframed audio level in dB.\n- `fadeIn` — Fade-in seconds at the clip's start.\n- `fadeOut` — Fade-out seconds at the clip's end.\n- `duck` — Lower this clip while another track plays.\n- `animate` — Transform keyframes; `at` is clip-relative seconds.\n- `reveal` — Per-character, word or line reveal timing.\n- `animation` — Preset slots `{ in, out, loop }`; null clears.\n- `effects` — Effect stack, at most 8; null clears.\n- `transitionIn` — Entrance effect: kind plus seconds.\n- `transitionOut` — Exit effect: kind plus seconds.\n- `mask` — Shape, path or track matte.\n- `words` — Caption words with clip-local times.\n\n#### Error codes (errors)\n\n- `JOIN_CONFLICT` — A join is invalid or blocks this edit.\n- `INVALID_TRANSITION` — Bad transition kind, parameter or length.\n- `INVALID_STYLE` — A style value is out of range.\n- `INVALID_MASK` — A mask definition is malformed.\n- `MASK_IN_USE` — The edit would break a live mask.\n- `TOO_MANY_MASKS` — At most 16 masks per project.\n- `RATE_OUT_OF_RANGE` — A rate is outside 0.25-4.\n- `UNSUPPORTED_PLAYBACK` — Reverse without an explicit mute.\n- `INVALID_PLAYBACK` — A playback object is partial or malformed.\n- `UNKNOWN_FONT` — The family is not in `ListFonts()`.\n- `UNKNOWN_FIELD` — The field name is not accepted here.\n- `UNKNOWN_TEXT_STYLE` — `style.preset` is not in the catalog.\n- `TEXT_STYLE_TARGET_MISMATCH` — Preset on the wrong clip type.\n- `CAPTION_ALIGN_LOW_CONFIDENCE` — Alignment confidence too low; nothing changed.\n- `OVERLAP` — Two clips on one track would share time.\n- `OUT_OF_SOURCE` — The clip would read past its source.\n- `LOCKED_TRACK` — The edit targets a locked track.\n- `UNBOUND_LIBRARY` — The library is not bound to the project.\n- `TRACK_KIND_MISMATCH` — The clip type does not fit the track.\n- `NOT_FOUND` — The named id is not in this project.\n- `TOO_SHORT` — The result would be under one frame.\n- `INVALID_DUCK` — Bad `duck` level or a missing track.\n- `UNKNOWN_ANIMATION` — The preset is not in `ListAnimations()`.\n- `INVALID_ANIMATION_PARAM` — Bad slot, parameter or keyframe limit.\n- `ANIMATION_TOO_LONG` — In plus out exceed the clip length.\n- `ANIMATION_TARGET_MISMATCH` — The preset does not match the clip type.\n- `ANIMATION_PHASE_MISMATCH` — The preset is in the wrong slot.\n- `UNKNOWN_EFFECT` — The effect is not in `ListEffects()`.\n- `INVALID_EFFECT_PARAM` — Bad effect parameter or keyframe.\n- `TOO_MANY_EFFECTS` — More than 8 effects on one clip.\n- `PROJECT_NOT_FOUND` — No visible project has this id.\n- `EXPORT_NOT_FOUND` — No such export in this project.\n- `DRAFT_RENDER_NOT_FOUND` — No such draft render.\n- `VERSION_NOT_FOUND` — No saved version has this revision.\n- `LIBRARY_NOT_FOUND` — The library is missing or invisible.\n- `BINDING_INVALID` — The binding request is malformed.\n- `BINDING_IN_USE` — Clips still use this library's assets.\n- `NOTHING_TO_UNDO` — No earlier revision to return to.\n- `NOTHING_TO_REDO` — No undone revision is waiting.\n- `UNDO_CONFLICT` — The revision to undo is no longer head.\n- `REVISION_CONFLICT` — The project moved; your revision is stale.\n- `CUT_BUSY` — The project is busy; retry.\n- `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.\n- `SCRIPT_ERROR` — The script threw or did not parse.\n- `SCRIPT_LIMIT` — An execute budget was exceeded.\n- `OPS_REJECTED` — An op failed; the whole edit rolled back.\n- `EDIT_EXPIRED` — The saved edit id is over ten minutes old.\n- `MEDIA_NOT_FOUND` — The asset id is not in that library.\n- `MEDIA_OFFLINE` — The asset cannot be fetched right now.\n- `MEDIA_UNAVAILABLE` — The asset is not usable for rendering.\n- `MEDIA_IMPORT_FAILED` — Importing media failed.\n- `MEDIA_PROCESSING` — Media is still processing the clip; wait for the job and rerun.\n- `MEDIA_PROCESSING_FAILED` — Media's processing job failed; nothing changed.\n- `ALIGNMENT_UNCERTAIN` — `AlignByAudio` confidence too low; nothing changed.\n- `FRAME_OUT_OF_RANGE` — The preview time is outside the project.\n- `PROJECT_TOO_LARGE` — The project exceeds the size limit.\n- `RESPONSE_TOO_LARGE` — The response would exceed its budget.\n- `EXPORT_FAILED` — The render failed; read `error.cause`.\n- `INVALID_PARAMS` — The request is malformed.\n- `PERMISSION_DENIED` — This credential may not do that here.\n- `NOT_IMPLEMENTED` — Not available on this platform yet.\n- `INTERNAL` — Unexpected failure; retry with the request id.\n<!-- cut-reference:end -->\n",
|
|
10661
10768
|
"http": "POST",
|
|
10662
10769
|
"path": "/cut/v1/projects/{project_id}:execute",
|
|
10663
10770
|
"streaming": "no",
|
|
@@ -12169,7 +12276,7 @@ export const operations = [
|
|
|
12169
12276
|
"resource": "devops.flags",
|
|
12170
12277
|
"method": "archive",
|
|
12171
12278
|
"summary": "Archive a flag",
|
|
12172
|
-
"description": "Archive a flag whose code is gone: it stops evaluating in every environment, leaves the ordinary flag list and keeps its key and history. Archiving
|
|
12279
|
+
"description": "Archive a flag whose code is gone: it stops evaluating in every environment, leaves the ordinary flag list and keeps its key and history. Archiving is the delete, and the platform refuses it while the last reported scan still finds the key in code or while the flag is on in an environment: a flag whose codeRefs.count is above zero is refused with FLAG_STILL_REFERENCED, and a flag whose on state is true in any environment is refused with FLAG_HAS_LIVE_RULES, so archiving succeeds only once the code that names the key is deployed away and every environment is off. The gate reads the stored scan as it stands — an out-of-date scannedCommit is not corrected for — and there is no force flag. It is irreversible through the API: there is no unarchive call, an archived flag cannot be updated or configured, and its key stays reserved, so a later create with the same key is refused; archiving an archived flag just answers it again. A flag that may come back is turned off in its environment instead. The order is: open the flag fully (`praxis api devops flag environment update`), delete the code that names the key and deploy that, run `praxis devops flag remove <key>` (local, lists the references still naming the key), then `praxis api devops flag archive <id>`, then `praxis devops flag sync` so the local registry drops it. There is no separate delete call.",
|
|
12173
12280
|
"http": "POST",
|
|
12174
12281
|
"path": "/devops/v1/flags/{id}:archive",
|
|
12175
12282
|
"streaming": "no",
|
|
@@ -13033,6 +13140,42 @@ export const operations = [
|
|
|
13033
13140
|
}
|
|
13034
13141
|
}
|
|
13035
13142
|
},
|
|
13143
|
+
{
|
|
13144
|
+
"resource": "devops.projects.flags",
|
|
13145
|
+
"method": "reportCodeRefs",
|
|
13146
|
+
"summary": "Report a project's flag code references",
|
|
13147
|
+
"description": "Store one code-reference scan for a project in a single call: send the commit the scan read (scannedCommit, the checkout's `git rev-parse HEAD`) and, for every flag key the scan knows, the places code reads it ({path, line, snippet}). Send every key the checkout still expects to be referenced, including the ones found nowhere: a project flag with no entry in refs is stored with zero references, and zero is what lets `archive` see the code that named the flag is gone. A key that matches no live flag of the project — one already archived, or from another project — is returned in unknownKeys and stores nothing; reporting it is not an error. updated is how many flags were written, which is every live flag of the project because each gets a row. This is the write side of the archive gate: `POST /v1/flags/{id}:archive` refuses with FLAG_STILL_REFERENCED while the stored count is above zero, and the count it reads is exactly the one stored here. Staleness is not corrected for — the stored scannedCommit and count are used as they stand. At most 500 references are stored per flag; a longer list is truncated for storage while count still reports the true number. Reporting changes no flag's runtime behaviour.",
|
|
13148
|
+
"http": "POST",
|
|
13149
|
+
"path": "/devops/v1/projects/{project}/flags/code-refs",
|
|
13150
|
+
"streaming": "no",
|
|
13151
|
+
"pagination": false,
|
|
13152
|
+
"pathParams": [
|
|
13153
|
+
{
|
|
13154
|
+
"name": "project",
|
|
13155
|
+
"sdkName": "project",
|
|
13156
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
13157
|
+
}
|
|
13158
|
+
],
|
|
13159
|
+
"query": [],
|
|
13160
|
+
"body": {
|
|
13161
|
+
"required": true,
|
|
13162
|
+
"fields": [
|
|
13163
|
+
{
|
|
13164
|
+
"name": "scannedCommit",
|
|
13165
|
+
"type": "string",
|
|
13166
|
+
"required": true,
|
|
13167
|
+
"description": "The commit this scan read, from `git rev-parse HEAD` in the reporting checkout; it is stored as each flag's codeRefs.scannedCommit, so a value older than the current head means the count describes the code as it was then."
|
|
13168
|
+
},
|
|
13169
|
+
{
|
|
13170
|
+
"name": "refs",
|
|
13171
|
+
"type": "array",
|
|
13172
|
+
"itemType": "object",
|
|
13173
|
+
"required": true,
|
|
13174
|
+
"description": "One entry per flag key this scan judged. Send every key the checkout still expects to be referenced, including the ones found nowhere: a project flag with no entry here is stored with zero references, which is what later lets `archive` refuse only flags code still names."
|
|
13175
|
+
}
|
|
13176
|
+
]
|
|
13177
|
+
}
|
|
13178
|
+
},
|
|
13036
13179
|
{
|
|
13037
13180
|
"resource": "devops.projects.promotions",
|
|
13038
13181
|
"method": "list",
|
|
@@ -14969,7 +15112,7 @@ export const operations = [
|
|
|
14969
15112
|
"resource": "devops.units",
|
|
14970
15113
|
"method": "push",
|
|
14971
15114
|
"summary": "Push a unit's branch",
|
|
14972
|
-
"description": "Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, so fetch first when unsure, reconcile, and send the new head. For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that
|
|
15115
|
+
"description": "Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, so fetch first when unsure, reconcile, and send the new head. For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that git refuses inside the machine answers with the cause in the error message and in details.detail (the last 4000 characters of git's output, credentials redacted) and details.exitCode (git's exit code): 409 PUSH_REJECTED_BY_HOOK when a pre-push hook such as lefthook rejected it, so read the hook output, fix the content and push again, 409 PUSH_REJECTED_NON_FAST_FORWARD when the remote moved ahead, so fetch and reconcile, 409 HEAD_MOVED when the lease on expectedHead no longer holds, and 500 PUSH_FAILED for anything else. Do not retry the same push unchanged.",
|
|
14973
15116
|
"http": "POST",
|
|
14974
15117
|
"path": "/devops/v1/units/{id}:push",
|
|
14975
15118
|
"streaming": "no",
|
|
@@ -15304,7 +15447,7 @@ export const operations = [
|
|
|
15304
15447
|
"resource": "file.uploads",
|
|
15305
15448
|
"method": "createSigned",
|
|
15306
15449
|
"summary": "Create a one-time upload URL",
|
|
15307
|
-
"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
|
|
15450
|
+
"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\"}.",
|
|
15308
15451
|
"http": "POST",
|
|
15309
15452
|
"path": "/file/v1/uploads/signed",
|
|
15310
15453
|
"streaming": "no",
|
|
@@ -16874,11 +17017,57 @@ export const operations = [
|
|
|
16874
17017
|
]
|
|
16875
17018
|
}
|
|
16876
17019
|
},
|
|
17020
|
+
{
|
|
17021
|
+
"resource": "media.libraries.assets.align",
|
|
17022
|
+
"method": "create",
|
|
17023
|
+
"summary": "Align asset",
|
|
17024
|
+
"description": "Align two recordings by their sound and learn how they line up, without producing an asset. The route names the source asset; the body names the reference to compare against it. Both must be audio or a video, of the same library; anything else is refused with REFERENCE_TYPE_MISMATCH before a job exists. The call is an analysis: it decides and charges nothing else, bills per second of input, and stores no asset — the completed job carries the answer in result, offset_seconds saying how many seconds later the reference starts (so a caller holding both recordings knows which one to slide) and confidence how sure the correlation is. The analysis is idempotent on the source, the reference and the parameters: asking again with the same pair answers the completed job and its result instead of analysing and charging again. A max_offset_seconds caps how far apart the two may be; alignment needs an alignment model from the platform model catalogue, and with none published the request is refused with OPERATION_NOT_SUPPORTED, 尚未上架. Send Idempotency-Key, or idempotency_key in the body, to retry without analysing twice. The response is 202 with a queued Job whose operation is align; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until it is completed or failed, then read result. Example: POST /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/align with {\"reference_asset_id\":\"3f2a9c1e5b7d4e6f8a0b1c2d3e4f5a6b\",\"max_offset_seconds\":30}.",
|
|
17025
|
+
"http": "POST",
|
|
17026
|
+
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/align",
|
|
17027
|
+
"streaming": "no",
|
|
17028
|
+
"pagination": false,
|
|
17029
|
+
"pathParams": [
|
|
17030
|
+
{
|
|
17031
|
+
"name": "library_id",
|
|
17032
|
+
"sdkName": "library_id",
|
|
17033
|
+
"description": "Library ID returned by creation."
|
|
17034
|
+
},
|
|
17035
|
+
{
|
|
17036
|
+
"name": "asset_id",
|
|
17037
|
+
"sdkName": "asset_id",
|
|
17038
|
+
"description": "32-character asset ID."
|
|
17039
|
+
}
|
|
17040
|
+
],
|
|
17041
|
+
"query": [],
|
|
17042
|
+
"body": {
|
|
17043
|
+
"required": true,
|
|
17044
|
+
"fields": [
|
|
17045
|
+
{
|
|
17046
|
+
"name": "reference_asset_id",
|
|
17047
|
+
"type": "string",
|
|
17048
|
+
"required": true,
|
|
17049
|
+
"description": "Asset to align against the one the route names. It must be an audio or video asset of the same library, otherwise the request is refused with REFERENCE_TYPE_MISMATCH before a job exists."
|
|
17050
|
+
},
|
|
17051
|
+
{
|
|
17052
|
+
"name": "max_offset_seconds",
|
|
17053
|
+
"type": "number",
|
|
17054
|
+
"required": false,
|
|
17055
|
+
"description": "Largest offset to search for, in seconds; omit it to let the model search its full range. Zero and negative values are refused with INVALID_PARAMS."
|
|
17056
|
+
},
|
|
17057
|
+
{
|
|
17058
|
+
"name": "idempotency_key",
|
|
17059
|
+
"type": "string",
|
|
17060
|
+
"required": false,
|
|
17061
|
+
"description": "Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected."
|
|
17062
|
+
}
|
|
17063
|
+
]
|
|
17064
|
+
}
|
|
17065
|
+
},
|
|
16877
17066
|
{
|
|
16878
17067
|
"resource": "media.assets",
|
|
16879
17068
|
"method": "edit",
|
|
16880
17069
|
"summary": "Edit asset",
|
|
16881
|
-
"description": "Edit an existing asset and store the result as a new asset. Use library_id from creation or listing and asset_id from asset creation or listing; library_id also accepts the literal default, which resolves to the organization’s default library before the credential check. The source asset is never overwritten: the new asset hangs under it in the edit chain, records it in derived_from, and reads back with assets.lineage, so earlier steps stay reachable. The body is operation plus the optional model, asset_folder, understanding and idempotency_key; operation.type selects the edit and carries that operation’s own fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, and to_video, frame and resynthesize on the material each takes; every other type in the operation vocabulary is refused with OPERATION_NOT_SUPPORTED. remove_background on a video produces a portrait matte video for compositing without a green screen: output picks mask (a black-and-white matte as a small H.264 video, person white and background black: use it as a Cut track mask with channel luma under the original video to lay a lecturer over slides — the choice for compositing) or alpha (the default: the person on a transparent background as ProRes 4444, which is very large, about 870 MB per 15 seconds of 1080p, so ask for it only when a transparent file itself is the deliverable), and model picks the matting model from types.matting.models of the generation capabilities — read it first, because a request that names none takes the first available matting model and a video is refused with OPERATION_NOT_SUPPORTED, in the model field, when the platform has published none. output and model mean nothing for an image source and are refused with INVALID_PARAMS naming the field rather than ignored. inpaint takes mask, a PNG File identifier beginning with file- whose transparent area marks the region to replace, plus the prompt describing what belongs there. Aspects beyond the source asset’s material type return REFERENCE_TYPE_MISMATCH. Editing is billed by the model usage it consumes, at the same prices as the model API, and the job reports the charge in usage (US dollars, six decimals) and the new asset carries it in provenance.cost; when the job is done, tell the person the usage amount and give them the output’s viewer_url. The response is 202 with a queued Job whose type is image, whose operation is the edit applied, and whose source_asset_id is the asset edited; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until it is completed or failed, then read the produced asset. Example: POST /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/edits with {\"operation\":{\"type\":\"variations\",\"strength\":\"subtle\"}}.",
|
|
17070
|
+
"description": "Edit an existing asset and store the result as a new asset. Use library_id from creation or listing and asset_id from asset creation or listing; library_id also accepts the literal default, which resolves to the organization’s default library before the credential check. The source asset is never overwritten: the new asset hangs under it in the edit chain, records it in derived_from, and reads back with assets.lineage, so earlier steps stay reachable. The body is operation plus the optional model, asset_folder, understanding and idempotency_key; operation.type selects the edit and carries that operation’s own fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe and redact through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe and redact on a video), and to_video, frame and resynthesize on the material each takes; every other type in the operation vocabulary is refused with OPERATION_NOT_SUPPORTED. The processing lane takes its model from the platform model catalogue, judged by the operation’s capability and overridable with operation.model, and bills per second of input; each edit is idempotent on the source, the operation and the parameters, so a second request that would make the same asset answers the asset already made instead of paying again, and an operation whose catalogue list is empty is refused with OPERATION_NOT_SUPPORTED, 尚未上架. remove_background on a video produces a portrait matte video for compositing without a green screen: output picks mask (a black-and-white matte as a small H.264 video, person white and background black: use it as a Cut track mask with channel luma under the original video to lay a lecturer over slides — the choice for compositing) or alpha (the default: the person on a transparent background as ProRes 4444, which is very large, about 870 MB per 15 seconds of 1080p, so ask for it only when a transparent file itself is the deliverable), and model picks the matting model from types.matting.models of the generation capabilities — read it first, because a request that names none takes the first available matting model and a video is refused with OPERATION_NOT_SUPPORTED, in the model field, when the platform has published none. output and model mean nothing for an image source and are refused with INVALID_PARAMS naming the field rather than ignored. inpaint takes mask, a PNG File identifier beginning with file- whose transparent area marks the region to replace, plus the prompt describing what belongs there. Aspects beyond the source asset’s material type return REFERENCE_TYPE_MISMATCH. Editing is billed by the model usage it consumes, at the same prices as the model API, and the job reports the charge in usage (US dollars, six decimals) and the new asset carries it in provenance.cost; when the job is done, tell the person the usage amount and give them the output’s viewer_url. The response is 202 with a queued Job whose type is image, whose operation is the edit applied, and whose source_asset_id is the asset edited; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until it is completed or failed, then read the produced asset. Example: POST /media/v1/libraries/lib_example/assets/9dfa312ef9bc4b00816339b598b1152c/edits with {\"operation\":{\"type\":\"variations\",\"strength\":\"subtle\"}}.",
|
|
16882
17071
|
"http": "POST",
|
|
16883
17072
|
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/edits",
|
|
16884
17073
|
"streaming": "no",
|
|
@@ -16903,7 +17092,7 @@ export const operations = [
|
|
|
16903
17092
|
"name": "operation",
|
|
16904
17093
|
"type": "object",
|
|
16905
17094
|
"required": true,
|
|
16906
|
-
"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, 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."
|
|
17095
|
+
"description": "One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe and 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."
|
|
16907
17096
|
},
|
|
16908
17097
|
{
|
|
16909
17098
|
"name": "model",
|
|
@@ -16982,6 +17171,69 @@ export const operations = [
|
|
|
16982
17171
|
]
|
|
16983
17172
|
}
|
|
16984
17173
|
},
|
|
17174
|
+
{
|
|
17175
|
+
"resource": "media.libraries.assets.hls",
|
|
17176
|
+
"method": "list",
|
|
17177
|
+
"summary": "Get HLS renditions",
|
|
17178
|
+
"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.",
|
|
17179
|
+
"http": "GET",
|
|
17180
|
+
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/hls",
|
|
17181
|
+
"streaming": "no",
|
|
17182
|
+
"pagination": false,
|
|
17183
|
+
"pathParams": [
|
|
17184
|
+
{
|
|
17185
|
+
"name": "library_id",
|
|
17186
|
+
"sdkName": "library_id",
|
|
17187
|
+
"description": "Library ID returned by creation."
|
|
17188
|
+
},
|
|
17189
|
+
{
|
|
17190
|
+
"name": "asset_id",
|
|
17191
|
+
"sdkName": "asset_id",
|
|
17192
|
+
"description": "32-character asset ID."
|
|
17193
|
+
}
|
|
17194
|
+
],
|
|
17195
|
+
"query": []
|
|
17196
|
+
},
|
|
17197
|
+
{
|
|
17198
|
+
"resource": "media.libraries.assets.hls",
|
|
17199
|
+
"method": "create",
|
|
17200
|
+
"summary": "Request HLS renditions",
|
|
17201
|
+
"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]}.",
|
|
17202
|
+
"http": "POST",
|
|
17203
|
+
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/hls",
|
|
17204
|
+
"streaming": "no",
|
|
17205
|
+
"pagination": false,
|
|
17206
|
+
"pathParams": [
|
|
17207
|
+
{
|
|
17208
|
+
"name": "library_id",
|
|
17209
|
+
"sdkName": "library_id",
|
|
17210
|
+
"description": "Library ID returned by creation."
|
|
17211
|
+
},
|
|
17212
|
+
{
|
|
17213
|
+
"name": "asset_id",
|
|
17214
|
+
"sdkName": "asset_id",
|
|
17215
|
+
"description": "32-character asset ID."
|
|
17216
|
+
}
|
|
17217
|
+
],
|
|
17218
|
+
"query": [],
|
|
17219
|
+
"body": {
|
|
17220
|
+
"required": true,
|
|
17221
|
+
"fields": [
|
|
17222
|
+
{
|
|
17223
|
+
"name": "heights",
|
|
17224
|
+
"type": "array",
|
|
17225
|
+
"itemType": "integer",
|
|
17226
|
+
"enum": [
|
|
17227
|
+
480,
|
|
17228
|
+
720,
|
|
17229
|
+
1080
|
|
17230
|
+
],
|
|
17231
|
+
"required": false,
|
|
17232
|
+
"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."
|
|
17233
|
+
}
|
|
17234
|
+
]
|
|
17235
|
+
}
|
|
17236
|
+
},
|
|
16985
17237
|
{
|
|
16986
17238
|
"resource": "media.assets",
|
|
16987
17239
|
"method": "lineage",
|
|
@@ -19730,6 +19982,7 @@ export const operations = [
|
|
|
19730
19982
|
"openai.images.generations",
|
|
19731
19983
|
"openai.responses",
|
|
19732
19984
|
"openai.videos",
|
|
19985
|
+
"praxis.media.process",
|
|
19733
19986
|
"praxis.video.matting",
|
|
19734
19987
|
"typesafe.systemone",
|
|
19735
19988
|
"volcengine.music",
|
|
@@ -23267,68 +23520,632 @@ export const operations = [
|
|
|
23267
23520
|
]
|
|
23268
23521
|
},
|
|
23269
23522
|
{
|
|
23270
|
-
"resource": "
|
|
23271
|
-
"method": "
|
|
23272
|
-
"summary": "
|
|
23273
|
-
"description": "
|
|
23274
|
-
"http": "
|
|
23275
|
-
"path": "/
|
|
23523
|
+
"resource": "registry.installations",
|
|
23524
|
+
"method": "delete",
|
|
23525
|
+
"summary": "Remove an installation",
|
|
23526
|
+
"description": "把包从目标上卸下来,并删掉这条安装记录:技能从智能体的技能列表里移除,插件从电脑上卸载。目标那边已经没有它时也算完成。包本身和它的版本不受影响,之后可以重新安装。记录删除后重发会 404,所以删除前先用 installations.list 确认。",
|
|
23527
|
+
"http": "DELETE",
|
|
23528
|
+
"path": "/registry/v1/installations/{installation_id}",
|
|
23276
23529
|
"streaming": "no",
|
|
23277
23530
|
"pagination": false,
|
|
23278
23531
|
"pathParams": [
|
|
23279
23532
|
{
|
|
23280
|
-
"name": "
|
|
23281
|
-
"sdkName": "
|
|
23282
|
-
"description": "
|
|
23533
|
+
"name": "installation_id",
|
|
23534
|
+
"sdkName": "installation_id",
|
|
23535
|
+
"description": "安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。"
|
|
23283
23536
|
}
|
|
23284
23537
|
],
|
|
23285
|
-
"query": [
|
|
23286
|
-
{
|
|
23287
|
-
"name": "offset",
|
|
23288
|
-
"type": "integer",
|
|
23289
|
-
"required": false,
|
|
23290
|
-
"description": "Number of the newest events to skip before collecting the page; omit to start at the first one. Use it with limit to walk pages: the next page is offset + limit."
|
|
23291
|
-
},
|
|
23292
|
-
{
|
|
23293
|
-
"name": "limit",
|
|
23294
|
-
"type": "integer",
|
|
23295
|
-
"required": false,
|
|
23296
|
-
"description": "Page size from 1 to 100; defaults to 10. A larger value returns INVALID_PARAMS rather than being clipped."
|
|
23297
|
-
},
|
|
23298
|
-
{
|
|
23299
|
-
"name": "orderAsc",
|
|
23300
|
-
"type": "boolean",
|
|
23301
|
-
"required": false,
|
|
23302
|
-
"description": "true returns the oldest event first, false or omitted returns the newest first. Only the literal spellings true and false are accepted."
|
|
23303
|
-
},
|
|
23304
|
-
{
|
|
23305
|
-
"name": "types",
|
|
23306
|
-
"type": "array",
|
|
23307
|
-
"itemType": "string",
|
|
23308
|
-
"required": false,
|
|
23309
|
-
"description": "Filter events to the provided event types"
|
|
23310
|
-
}
|
|
23311
|
-
]
|
|
23538
|
+
"query": []
|
|
23312
23539
|
},
|
|
23313
23540
|
{
|
|
23314
|
-
"resource": "
|
|
23315
|
-
"method": "
|
|
23316
|
-
"summary": "
|
|
23317
|
-
"description": "
|
|
23318
|
-
"http": "
|
|
23319
|
-
"path": "/
|
|
23541
|
+
"resource": "registry.installations",
|
|
23542
|
+
"method": "update",
|
|
23543
|
+
"summary": "Update an installation",
|
|
23544
|
+
"description": "把一条安装记录换到另一个版本。技能可以换到任何未撤回的版本(升级或回退),version 省略时换到最新版;插件只能换到库里的最新版本,version 给了也必须等于最新版。撤回的版本不能换过去。对账为 missing 的记录用它可以重新装回去。同名冲突和 20 个技能上限的规则与安装时相同。",
|
|
23545
|
+
"http": "POST",
|
|
23546
|
+
"path": "/registry/v1/installations/{installation_id}:update",
|
|
23320
23547
|
"streaming": "no",
|
|
23321
23548
|
"pagination": false,
|
|
23322
|
-
"pathParams": [
|
|
23323
|
-
"query": [
|
|
23324
|
-
{
|
|
23325
|
-
"name": "metadata",
|
|
23326
|
-
"type": "string",
|
|
23327
|
-
"required": false,
|
|
23328
|
-
"description": "Metadata query used to filter the sandboxes (e.g. \"user=abc&app=prod\"). Each key and values must be URL encoded."
|
|
23329
|
-
},
|
|
23549
|
+
"pathParams": [
|
|
23330
23550
|
{
|
|
23331
|
-
"name": "
|
|
23551
|
+
"name": "installation_id",
|
|
23552
|
+
"sdkName": "installation_id",
|
|
23553
|
+
"description": "安装记录的标识,来自 packages.installations.list 或 packages.installations.create 返回的 id(ins_ 开头);不要传包或目标的 id。"
|
|
23554
|
+
}
|
|
23555
|
+
],
|
|
23556
|
+
"query": [],
|
|
23557
|
+
"body": {
|
|
23558
|
+
"required": true,
|
|
23559
|
+
"fields": [
|
|
23560
|
+
{
|
|
23561
|
+
"name": "version",
|
|
23562
|
+
"type": "string",
|
|
23563
|
+
"required": false,
|
|
23564
|
+
"description": "要换到的版本号,完整 semver;省略时换到最新版;插件给了也必须等于最新版,撤回的版本不能换。"
|
|
23565
|
+
}
|
|
23566
|
+
]
|
|
23567
|
+
}
|
|
23568
|
+
},
|
|
23569
|
+
{
|
|
23570
|
+
"resource": "registry.packages",
|
|
23571
|
+
"method": "retrieve",
|
|
23572
|
+
"summary": "Retrieve package",
|
|
23573
|
+
"description": "读一个包的元数据:种类、所属库、当前 latest_version、作者、标签和累计下载量。package_id 来自 packages.list 或 packages.create;另一个组织或不存在都返回 404。",
|
|
23574
|
+
"http": "GET",
|
|
23575
|
+
"path": "/registry/v1/packages/{package_id}",
|
|
23576
|
+
"streaming": "no",
|
|
23577
|
+
"pagination": false,
|
|
23578
|
+
"pathParams": [
|
|
23579
|
+
{
|
|
23580
|
+
"name": "package_id",
|
|
23581
|
+
"sdkName": "package_id",
|
|
23582
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
23583
|
+
}
|
|
23584
|
+
],
|
|
23585
|
+
"query": []
|
|
23586
|
+
},
|
|
23587
|
+
{
|
|
23588
|
+
"resource": "registry.packages.installations",
|
|
23589
|
+
"method": "list",
|
|
23590
|
+
"summary": "List installations",
|
|
23591
|
+
"description": "列出这个包装在哪些智能体和电脑上。每次读取都会和目标那边对账,以目标现在的实际情况为准,所以每条记录的 state 是读取这一刻的结论:installed 表示目标上有它且版本与记录一致;drifted 表示目标上有它但版本不同,此时 version 显示目标上的版本;missing 表示目标上已经没有它(被人在智能体或电脑那边删掉了),记录仍保留,可以用 installations.delete 清掉,或用 installations.update 重新装回;unknown 表示这次问不到目标,不代表没装,稍后重读。withdrawn 表示这条记录的版本已被撤回。一次返回全部记录,没有分页,按创建时间排序。",
|
|
23592
|
+
"http": "GET",
|
|
23593
|
+
"path": "/registry/v1/packages/{package_id}/installations",
|
|
23594
|
+
"streaming": "no",
|
|
23595
|
+
"pagination": false,
|
|
23596
|
+
"pathParams": [
|
|
23597
|
+
{
|
|
23598
|
+
"name": "package_id",
|
|
23599
|
+
"sdkName": "package_id",
|
|
23600
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
23601
|
+
}
|
|
23602
|
+
],
|
|
23603
|
+
"query": []
|
|
23604
|
+
},
|
|
23605
|
+
{
|
|
23606
|
+
"resource": "registry.packages.installations",
|
|
23607
|
+
"method": "create",
|
|
23608
|
+
"summary": "Install a package",
|
|
23609
|
+
"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 里。",
|
|
23610
|
+
"http": "POST",
|
|
23611
|
+
"path": "/registry/v1/packages/{package_id}/installations",
|
|
23612
|
+
"streaming": "no",
|
|
23613
|
+
"pagination": false,
|
|
23614
|
+
"pathParams": [
|
|
23615
|
+
{
|
|
23616
|
+
"name": "package_id",
|
|
23617
|
+
"sdkName": "package_id",
|
|
23618
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
23619
|
+
}
|
|
23620
|
+
],
|
|
23621
|
+
"query": [],
|
|
23622
|
+
"body": {
|
|
23623
|
+
"required": true,
|
|
23624
|
+
"fields": [
|
|
23625
|
+
{
|
|
23626
|
+
"name": "agent_ids",
|
|
23627
|
+
"type": "array",
|
|
23628
|
+
"itemType": "string",
|
|
23629
|
+
"required": false,
|
|
23630
|
+
"description": "要装到的智能体标识,1 到 50 个,重复的会合并;只用于技能,来自智能体列表的 id。"
|
|
23631
|
+
},
|
|
23632
|
+
{
|
|
23633
|
+
"name": "computer_ids",
|
|
23634
|
+
"type": "array",
|
|
23635
|
+
"itemType": "string",
|
|
23636
|
+
"required": false,
|
|
23637
|
+
"description": "要装到的电脑标识,1 到 50 个,重复的会合并;只用于插件,来自电脑列表的 id。"
|
|
23638
|
+
},
|
|
23639
|
+
{
|
|
23640
|
+
"name": "version",
|
|
23641
|
+
"type": "string",
|
|
23642
|
+
"required": false,
|
|
23643
|
+
"description": "要装的版本号,完整 semver;省略时装最新版;插件给了也必须等于最新版,撤回的版本不能装。"
|
|
23644
|
+
}
|
|
23645
|
+
]
|
|
23646
|
+
}
|
|
23647
|
+
},
|
|
23648
|
+
{
|
|
23649
|
+
"resource": "registry.packages.versions",
|
|
23650
|
+
"method": "list",
|
|
23651
|
+
"summary": "List versions",
|
|
23652
|
+
"description": "列出一个包的所有版本,含已撤回的。撤回的版本仍在列表里(它占着版本号),withdrawn 为 true,并带 withdraw_time。按发布顺序返回。",
|
|
23653
|
+
"http": "GET",
|
|
23654
|
+
"path": "/registry/v1/packages/{package_id}/versions",
|
|
23655
|
+
"streaming": "no",
|
|
23656
|
+
"pagination": true,
|
|
23657
|
+
"pathParams": [
|
|
23658
|
+
{
|
|
23659
|
+
"name": "package_id",
|
|
23660
|
+
"sdkName": "package_id",
|
|
23661
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
23662
|
+
}
|
|
23663
|
+
],
|
|
23664
|
+
"query": [
|
|
23665
|
+
{
|
|
23666
|
+
"name": "page_size",
|
|
23667
|
+
"type": "integer",
|
|
23668
|
+
"required": false,
|
|
23669
|
+
"description": "每页返回多少条,1 到 100;省略时默认 20。超过 100 会被截到 100。"
|
|
23670
|
+
},
|
|
23671
|
+
{
|
|
23672
|
+
"name": "cursor",
|
|
23673
|
+
"type": "string",
|
|
23674
|
+
"required": false,
|
|
23675
|
+
"description": "上一页返回的 next_cursor,用来取下一页;第一页省略它,next_cursor 为 null 时停止翻页。"
|
|
23676
|
+
}
|
|
23677
|
+
]
|
|
23678
|
+
},
|
|
23679
|
+
{
|
|
23680
|
+
"resource": "registry.packages.versions",
|
|
23681
|
+
"method": "create",
|
|
23682
|
+
"summary": "Publish a version",
|
|
23683
|
+
"description": "给一个已有的包发新版本。请求体与 packages.create 相同(multipart:version 必填,archive 或 files 给内容),但种类和名字沿用这个包,不再从上传内容重判。version 必须比已发布的最高版本高(撤回的版本也占号,不能复用);比它低或相等返回 FAILED_PRECONDITION。title、description、tags 不填就沿用这个包现在显示的,不会被新版本里 SKILL.md 或 plugin.json 的描述覆盖;要改就在这次请求里给。作者不随新版本改变。",
|
|
23684
|
+
"http": "POST",
|
|
23685
|
+
"path": "/registry/v1/packages/{package_id}/versions",
|
|
23686
|
+
"streaming": "no",
|
|
23687
|
+
"pagination": false,
|
|
23688
|
+
"multipart": true,
|
|
23689
|
+
"pathParams": [
|
|
23690
|
+
{
|
|
23691
|
+
"name": "package_id",
|
|
23692
|
+
"sdkName": "package_id",
|
|
23693
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
23694
|
+
}
|
|
23695
|
+
],
|
|
23696
|
+
"query": [],
|
|
23697
|
+
"body": {
|
|
23698
|
+
"required": true,
|
|
23699
|
+
"fields": [
|
|
23700
|
+
{
|
|
23701
|
+
"name": "version",
|
|
23702
|
+
"type": "string",
|
|
23703
|
+
"required": true,
|
|
23704
|
+
"description": "要发布的版本号,完整 semver,例如 1.2.0;每个包内必须严格递增,撤回的版本也占号。"
|
|
23705
|
+
},
|
|
23706
|
+
{
|
|
23707
|
+
"name": "archive",
|
|
23708
|
+
"type": "string",
|
|
23709
|
+
"required": false,
|
|
23710
|
+
"description": "一个 zip 文件,内含包的内容;与 files 二选一。单个顶层目录会被剥掉。"
|
|
23711
|
+
},
|
|
23712
|
+
{
|
|
23713
|
+
"name": "files",
|
|
23714
|
+
"type": "array",
|
|
23715
|
+
"itemType": "string",
|
|
23716
|
+
"required": false,
|
|
23717
|
+
"description": "直接上传的一组文件,每个 part 的 filename 是相对路径;与 archive 二选一。"
|
|
23718
|
+
},
|
|
23719
|
+
{
|
|
23720
|
+
"name": "title",
|
|
23721
|
+
"type": "string",
|
|
23722
|
+
"required": false,
|
|
23723
|
+
"description": "给人看的标题;省略时从包内容里取。"
|
|
23724
|
+
},
|
|
23725
|
+
{
|
|
23726
|
+
"name": "description",
|
|
23727
|
+
"type": "string",
|
|
23728
|
+
"required": false,
|
|
23729
|
+
"description": "包说明;省略时从包内容里取。"
|
|
23730
|
+
},
|
|
23731
|
+
{
|
|
23732
|
+
"name": "tags",
|
|
23733
|
+
"type": "string",
|
|
23734
|
+
"required": false,
|
|
23735
|
+
"description": "逗号分隔的标签,例如 review,quality;省略时没有标签。"
|
|
23736
|
+
}
|
|
23737
|
+
]
|
|
23738
|
+
}
|
|
23739
|
+
},
|
|
23740
|
+
{
|
|
23741
|
+
"resource": "registry.packages.versions",
|
|
23742
|
+
"method": "retrieveArchive",
|
|
23743
|
+
"summary": "Download version archive",
|
|
23744
|
+
"description": "下载一个版本的完整 zip 归档,用来整包安装或转存。每次调用都计入这个包的 downloads,所以不要为了看内容而反复拉 archive——先读 contents,只取需要的文件用 files 下载。",
|
|
23745
|
+
"http": "GET",
|
|
23746
|
+
"path": "/registry/v1/packages/{package_id}/versions/{version}/archive",
|
|
23747
|
+
"streaming": "no",
|
|
23748
|
+
"pagination": false,
|
|
23749
|
+
"pathParams": [
|
|
23750
|
+
{
|
|
23751
|
+
"name": "package_id",
|
|
23752
|
+
"sdkName": "package_id",
|
|
23753
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
23754
|
+
},
|
|
23755
|
+
{
|
|
23756
|
+
"name": "version",
|
|
23757
|
+
"sdkName": "version",
|
|
23758
|
+
"description": "要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。"
|
|
23759
|
+
}
|
|
23760
|
+
],
|
|
23761
|
+
"query": []
|
|
23762
|
+
},
|
|
23763
|
+
{
|
|
23764
|
+
"resource": "registry.packages.versions.contents",
|
|
23765
|
+
"method": "list",
|
|
23766
|
+
"summary": "List version contents",
|
|
23767
|
+
"description": "列出一个版本解压后的文件清单(路径和大小),用来在不下载整个包的前提下看它包含什么。路径是相对包根的,例如 SKILL.md 或 plugin/skills/review.md。已撤回的版本仍可读清单。",
|
|
23768
|
+
"http": "GET",
|
|
23769
|
+
"path": "/registry/v1/packages/{package_id}/versions/{version}/contents",
|
|
23770
|
+
"streaming": "no",
|
|
23771
|
+
"pagination": false,
|
|
23772
|
+
"pathParams": [
|
|
23773
|
+
{
|
|
23774
|
+
"name": "package_id",
|
|
23775
|
+
"sdkName": "package_id",
|
|
23776
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
23777
|
+
},
|
|
23778
|
+
{
|
|
23779
|
+
"name": "version",
|
|
23780
|
+
"sdkName": "version",
|
|
23781
|
+
"description": "要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。"
|
|
23782
|
+
}
|
|
23783
|
+
],
|
|
23784
|
+
"query": []
|
|
23785
|
+
},
|
|
23786
|
+
{
|
|
23787
|
+
"resource": "registry.packages.versions.files",
|
|
23788
|
+
"method": "retrieve",
|
|
23789
|
+
"summary": "Download a file",
|
|
23790
|
+
"description": "下载一个版本里的单个文件,返回原始字节。path 是 contents 给出的路径,可以含斜杠(例如 plugin/skills/review.md)。用它按文件取内容,装到磁盘上时保留这个相对路径。不计入 downloads。",
|
|
23791
|
+
"http": "GET",
|
|
23792
|
+
"path": "/registry/v1/packages/{package_id}/versions/{version}/files/{path}",
|
|
23793
|
+
"streaming": "no",
|
|
23794
|
+
"pagination": false,
|
|
23795
|
+
"pathParams": [
|
|
23796
|
+
{
|
|
23797
|
+
"name": "package_id",
|
|
23798
|
+
"sdkName": "package_id",
|
|
23799
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
23800
|
+
},
|
|
23801
|
+
{
|
|
23802
|
+
"name": "version",
|
|
23803
|
+
"sdkName": "version",
|
|
23804
|
+
"description": "要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。"
|
|
23805
|
+
},
|
|
23806
|
+
{
|
|
23807
|
+
"name": "path",
|
|
23808
|
+
"sdkName": "path",
|
|
23809
|
+
"description": "版本内的相对文件路径,取自 contents 返回的 path,可以含斜杠(例如 plugin/skills/review.md);不要以 / 开头。"
|
|
23810
|
+
}
|
|
23811
|
+
],
|
|
23812
|
+
"query": []
|
|
23813
|
+
},
|
|
23814
|
+
{
|
|
23815
|
+
"resource": "registry.packages.versions",
|
|
23816
|
+
"method": "withdraw",
|
|
23817
|
+
"summary": "Withdraw a version",
|
|
23818
|
+
"description": "撤回一个版本。撤回后它不再是 latest、不能被新装;已经装好的照常可用。版本号仍被占着,不能再用它发新版本。已经撤回的版本再撤回会返回 FAILED_PRECONDITION。撤回是不可逆的:要重新提供这个版本,用更高的版本号重新发布。",
|
|
23819
|
+
"http": "POST",
|
|
23820
|
+
"path": "/registry/v1/packages/{package_id}/versions/{version}:withdraw",
|
|
23821
|
+
"streaming": "no",
|
|
23822
|
+
"pagination": false,
|
|
23823
|
+
"pathParams": [
|
|
23824
|
+
{
|
|
23825
|
+
"name": "package_id",
|
|
23826
|
+
"sdkName": "package_id",
|
|
23827
|
+
"description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
|
|
23828
|
+
},
|
|
23829
|
+
{
|
|
23830
|
+
"name": "version",
|
|
23831
|
+
"sdkName": "version",
|
|
23832
|
+
"description": "要读的版本号,来自 versions.list 或 versions.create 返回的 version;必须是完整 semver,形如 1.2.0,不接受 latest 或范围。"
|
|
23833
|
+
}
|
|
23834
|
+
],
|
|
23835
|
+
"query": []
|
|
23836
|
+
},
|
|
23837
|
+
{
|
|
23838
|
+
"resource": "registry.repositories",
|
|
23839
|
+
"method": "list",
|
|
23840
|
+
"summary": "List repositories",
|
|
23841
|
+
"description": "列出这个组织现有的库,默认库也在其中。库很少,一页通常装得下;用 next_cursor 翻页。先在这里拿到 repository_id,再用它列出或发布包。",
|
|
23842
|
+
"http": "GET",
|
|
23843
|
+
"path": "/registry/v1/repositories",
|
|
23844
|
+
"streaming": "no",
|
|
23845
|
+
"pagination": true,
|
|
23846
|
+
"pathParams": [],
|
|
23847
|
+
"query": [
|
|
23848
|
+
{
|
|
23849
|
+
"name": "page_size",
|
|
23850
|
+
"type": "integer",
|
|
23851
|
+
"required": false,
|
|
23852
|
+
"description": "每页返回多少条,1 到 100;省略时默认 20。超过 100 会被截到 100。"
|
|
23853
|
+
},
|
|
23854
|
+
{
|
|
23855
|
+
"name": "cursor",
|
|
23856
|
+
"type": "string",
|
|
23857
|
+
"required": false,
|
|
23858
|
+
"description": "上一页返回的 next_cursor,用来取下一页;第一页省略它,next_cursor 为 null 时停止翻页。"
|
|
23859
|
+
}
|
|
23860
|
+
]
|
|
23861
|
+
},
|
|
23862
|
+
{
|
|
23863
|
+
"resource": "registry.repositories",
|
|
23864
|
+
"method": "create",
|
|
23865
|
+
"summary": "Create repository",
|
|
23866
|
+
"description": "新建一个库来分类存放包。name 是库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且不能和已有的库重名;display_name 和 description 是给人看的。每个组织本来就有一个默认库,需要新分类时才建;一个库非空时不能删除,所以不要用库来临时隔离一次上传。",
|
|
23867
|
+
"http": "POST",
|
|
23868
|
+
"path": "/registry/v1/repositories",
|
|
23869
|
+
"streaming": "no",
|
|
23870
|
+
"pagination": false,
|
|
23871
|
+
"pathParams": [],
|
|
23872
|
+
"query": [],
|
|
23873
|
+
"body": {
|
|
23874
|
+
"required": true,
|
|
23875
|
+
"fields": [
|
|
23876
|
+
{
|
|
23877
|
+
"name": "name",
|
|
23878
|
+
"type": "string",
|
|
23879
|
+
"required": true,
|
|
23880
|
+
"description": "新库的唯一标识,小写字母、数字和连字符,最多 63 个字符,且在这个组织里未被使用;不能只有一个连字符结尾。"
|
|
23881
|
+
},
|
|
23882
|
+
{
|
|
23883
|
+
"name": "display_name",
|
|
23884
|
+
"type": "string",
|
|
23885
|
+
"required": false,
|
|
23886
|
+
"description": "给人看的库名;省略时后续显示 name。"
|
|
23887
|
+
},
|
|
23888
|
+
{
|
|
23889
|
+
"name": "description",
|
|
23890
|
+
"type": "string",
|
|
23891
|
+
"required": false,
|
|
23892
|
+
"description": "库的说明;省略时不写。"
|
|
23893
|
+
}
|
|
23894
|
+
]
|
|
23895
|
+
}
|
|
23896
|
+
},
|
|
23897
|
+
{
|
|
23898
|
+
"resource": "registry.repositories",
|
|
23899
|
+
"method": "delete",
|
|
23900
|
+
"summary": "Delete repository",
|
|
23901
|
+
"description": "删一个空的库。默认库不能删(FAILED_PRECONDITION);库里还有包时也不能删,先把包删掉或改用别的库。删除请求重发会 404,所以删除前先读一次确认。",
|
|
23902
|
+
"http": "DELETE",
|
|
23903
|
+
"path": "/registry/v1/repositories/{repository_id}",
|
|
23904
|
+
"streaming": "no",
|
|
23905
|
+
"pagination": false,
|
|
23906
|
+
"pathParams": [
|
|
23907
|
+
{
|
|
23908
|
+
"name": "repository_id",
|
|
23909
|
+
"sdkName": "repository_id",
|
|
23910
|
+
"description": "库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。"
|
|
23911
|
+
}
|
|
23912
|
+
],
|
|
23913
|
+
"query": []
|
|
23914
|
+
},
|
|
23915
|
+
{
|
|
23916
|
+
"resource": "registry.repositories",
|
|
23917
|
+
"method": "retrieve",
|
|
23918
|
+
"summary": "Retrieve repository",
|
|
23919
|
+
"description": "读一个库的名称、说明、包数量和默认标记。repository_id 来自 repositories.list 或 repositories.create;另一个组织的库或不存在的库一律 404,不区分两者。",
|
|
23920
|
+
"http": "GET",
|
|
23921
|
+
"path": "/registry/v1/repositories/{repository_id}",
|
|
23922
|
+
"streaming": "no",
|
|
23923
|
+
"pagination": false,
|
|
23924
|
+
"pathParams": [
|
|
23925
|
+
{
|
|
23926
|
+
"name": "repository_id",
|
|
23927
|
+
"sdkName": "repository_id",
|
|
23928
|
+
"description": "库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。"
|
|
23929
|
+
}
|
|
23930
|
+
],
|
|
23931
|
+
"query": []
|
|
23932
|
+
},
|
|
23933
|
+
{
|
|
23934
|
+
"resource": "registry.repositories",
|
|
23935
|
+
"method": "update",
|
|
23936
|
+
"summary": "Update repository",
|
|
23937
|
+
"description": "改库的 display_name 或 description。只送要改的字段,省略的保持原值;name 建库之后不能改,它标识库。一个字段都不送会 400。",
|
|
23938
|
+
"http": "PATCH",
|
|
23939
|
+
"path": "/registry/v1/repositories/{repository_id}",
|
|
23940
|
+
"streaming": "no",
|
|
23941
|
+
"pagination": false,
|
|
23942
|
+
"pathParams": [
|
|
23943
|
+
{
|
|
23944
|
+
"name": "repository_id",
|
|
23945
|
+
"sdkName": "repository_id",
|
|
23946
|
+
"description": "库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。"
|
|
23947
|
+
}
|
|
23948
|
+
],
|
|
23949
|
+
"query": [],
|
|
23950
|
+
"body": {
|
|
23951
|
+
"required": true,
|
|
23952
|
+
"fields": [
|
|
23953
|
+
{
|
|
23954
|
+
"name": "display_name",
|
|
23955
|
+
"type": "string",
|
|
23956
|
+
"required": false,
|
|
23957
|
+
"description": "新的显示名;显式传 null 会清空它。"
|
|
23958
|
+
},
|
|
23959
|
+
{
|
|
23960
|
+
"name": "description",
|
|
23961
|
+
"type": "string",
|
|
23962
|
+
"required": false,
|
|
23963
|
+
"description": "新的说明;显式传 null 会清空它。"
|
|
23964
|
+
}
|
|
23965
|
+
]
|
|
23966
|
+
}
|
|
23967
|
+
},
|
|
23968
|
+
{
|
|
23969
|
+
"resource": "registry.repositories.packages",
|
|
23970
|
+
"method": "list",
|
|
23971
|
+
"summary": "List packages",
|
|
23972
|
+
"description": "列出一个库里的包,可按种类筛、按名字搜、按最近更新或下载量排序。kind=skill 只看技能,kind=plugin 只看插件,省略则两类都返回。q 在 name、title 和 description 上做子串匹配。sort 默认 updated;downloads 按累计下载量降序,用来找这个库最常用的资源。",
|
|
23973
|
+
"http": "GET",
|
|
23974
|
+
"path": "/registry/v1/repositories/{repository_id}/packages",
|
|
23975
|
+
"streaming": "no",
|
|
23976
|
+
"pagination": true,
|
|
23977
|
+
"pathParams": [
|
|
23978
|
+
{
|
|
23979
|
+
"name": "repository_id",
|
|
23980
|
+
"sdkName": "repository_id",
|
|
23981
|
+
"description": "库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。"
|
|
23982
|
+
}
|
|
23983
|
+
],
|
|
23984
|
+
"query": [
|
|
23985
|
+
{
|
|
23986
|
+
"name": "kind",
|
|
23987
|
+
"type": "string",
|
|
23988
|
+
"enum": [
|
|
23989
|
+
"skill",
|
|
23990
|
+
"plugin"
|
|
23991
|
+
],
|
|
23992
|
+
"required": false,
|
|
23993
|
+
"description": "只看某一类包;省略时技能和插件都返回。"
|
|
23994
|
+
},
|
|
23995
|
+
{
|
|
23996
|
+
"name": "q",
|
|
23997
|
+
"type": "string",
|
|
23998
|
+
"required": false,
|
|
23999
|
+
"description": "按子串搜索包,匹配 name、title 和 description;省略时不过滤。不区分大小写。"
|
|
24000
|
+
},
|
|
24001
|
+
{
|
|
24002
|
+
"name": "sort",
|
|
24003
|
+
"type": "string",
|
|
24004
|
+
"enum": [
|
|
24005
|
+
"updated",
|
|
24006
|
+
"downloads"
|
|
24007
|
+
],
|
|
24008
|
+
"required": false,
|
|
24009
|
+
"description": "结果排序方式;省略时按 updated。"
|
|
24010
|
+
},
|
|
24011
|
+
{
|
|
24012
|
+
"name": "page_size",
|
|
24013
|
+
"type": "integer",
|
|
24014
|
+
"required": false,
|
|
24015
|
+
"description": "每页返回多少条,1 到 100;省略时默认 20。超过 100 会被截到 100。"
|
|
24016
|
+
},
|
|
24017
|
+
{
|
|
24018
|
+
"name": "cursor",
|
|
24019
|
+
"type": "string",
|
|
24020
|
+
"required": false,
|
|
24021
|
+
"description": "上一页返回的 next_cursor,用来取下一页;第一页省略它,next_cursor 为 null 时停止翻页。"
|
|
24022
|
+
}
|
|
24023
|
+
]
|
|
24024
|
+
},
|
|
24025
|
+
{
|
|
24026
|
+
"resource": "registry.repositories.packages",
|
|
24027
|
+
"method": "create",
|
|
24028
|
+
"summary": "Publish a package",
|
|
24029
|
+
"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 发布。",
|
|
24030
|
+
"http": "POST",
|
|
24031
|
+
"path": "/registry/v1/repositories/{repository_id}/packages",
|
|
24032
|
+
"streaming": "no",
|
|
24033
|
+
"pagination": false,
|
|
24034
|
+
"multipart": true,
|
|
24035
|
+
"pathParams": [
|
|
24036
|
+
{
|
|
24037
|
+
"name": "repository_id",
|
|
24038
|
+
"sdkName": "repository_id",
|
|
24039
|
+
"description": "库的标识,来自 repositories.list 或 repositories.create 返回的 id;不要传库的 name 或显示名。"
|
|
24040
|
+
}
|
|
24041
|
+
],
|
|
24042
|
+
"query": [],
|
|
24043
|
+
"body": {
|
|
24044
|
+
"required": true,
|
|
24045
|
+
"fields": [
|
|
24046
|
+
{
|
|
24047
|
+
"name": "version",
|
|
24048
|
+
"type": "string",
|
|
24049
|
+
"required": true,
|
|
24050
|
+
"description": "要发布的版本号,完整 semver,例如 1.2.0;每个包内必须严格递增,撤回的版本也占号。"
|
|
24051
|
+
},
|
|
24052
|
+
{
|
|
24053
|
+
"name": "archive",
|
|
24054
|
+
"type": "string",
|
|
24055
|
+
"required": false,
|
|
24056
|
+
"description": "一个 zip 文件,内含包的内容;与 files 二选一。单个顶层目录会被剥掉。"
|
|
24057
|
+
},
|
|
24058
|
+
{
|
|
24059
|
+
"name": "files",
|
|
24060
|
+
"type": "array",
|
|
24061
|
+
"itemType": "string",
|
|
24062
|
+
"required": false,
|
|
24063
|
+
"description": "直接上传的一组文件,每个 part 的 filename 是相对路径;与 archive 二选一。"
|
|
24064
|
+
},
|
|
24065
|
+
{
|
|
24066
|
+
"name": "title",
|
|
24067
|
+
"type": "string",
|
|
24068
|
+
"required": false,
|
|
24069
|
+
"description": "给人看的标题;省略时从包内容里取。"
|
|
24070
|
+
},
|
|
24071
|
+
{
|
|
24072
|
+
"name": "description",
|
|
24073
|
+
"type": "string",
|
|
24074
|
+
"required": false,
|
|
24075
|
+
"description": "包说明;省略时从包内容里取。"
|
|
24076
|
+
},
|
|
24077
|
+
{
|
|
24078
|
+
"name": "tags",
|
|
24079
|
+
"type": "string",
|
|
24080
|
+
"required": false,
|
|
24081
|
+
"description": "逗号分隔的标签,例如 review,quality;省略时没有标签。"
|
|
24082
|
+
}
|
|
24083
|
+
]
|
|
24084
|
+
}
|
|
24085
|
+
},
|
|
24086
|
+
{
|
|
24087
|
+
"resource": "sandbox.events.sandboxes",
|
|
24088
|
+
"method": "retrieve",
|
|
24089
|
+
"summary": "Get sandbox events",
|
|
24090
|
+
"description": "Read one sandbox's lifecycle events, newest first by default. Unlike every other read on this face, it answers for a sandbox whose machine has ENDED (killed or failed) — a sandbox's cause of death is readable here even after its files are gone. The killed event carries eventData.terminationReason (the platform's own reason: requested, lease_expired, max_running, provider_lost, start_failed, retention, admin, unknown) and eventData.kill_reason (the E2B-shaped bucket: request, timeout, admin, orphaned, unknown); the updated event carries expiresAt. Page with offset, limit (1–100, default 10), orderAsc and repeatable types. An ended sandbox that is never going to come back also answers SANDBOX_EXPIRED (410) with terminationReason on its files and commands.",
|
|
24091
|
+
"http": "GET",
|
|
24092
|
+
"path": "/sandbox/v1/events/sandboxes/{sandboxID}",
|
|
24093
|
+
"streaming": "no",
|
|
24094
|
+
"pagination": false,
|
|
24095
|
+
"pathParams": [
|
|
24096
|
+
{
|
|
24097
|
+
"name": "sandboxID",
|
|
24098
|
+
"sdkName": "sandboxID",
|
|
24099
|
+
"description": "Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404."
|
|
24100
|
+
}
|
|
24101
|
+
],
|
|
24102
|
+
"query": [
|
|
24103
|
+
{
|
|
24104
|
+
"name": "offset",
|
|
24105
|
+
"type": "integer",
|
|
24106
|
+
"required": false,
|
|
24107
|
+
"description": "Number of the newest events to skip before collecting the page; omit to start at the first one. Use it with limit to walk pages: the next page is offset + limit."
|
|
24108
|
+
},
|
|
24109
|
+
{
|
|
24110
|
+
"name": "limit",
|
|
24111
|
+
"type": "integer",
|
|
24112
|
+
"required": false,
|
|
24113
|
+
"description": "Page size from 1 to 100; defaults to 10. A larger value returns INVALID_PARAMS rather than being clipped."
|
|
24114
|
+
},
|
|
24115
|
+
{
|
|
24116
|
+
"name": "orderAsc",
|
|
24117
|
+
"type": "boolean",
|
|
24118
|
+
"required": false,
|
|
24119
|
+
"description": "true returns the oldest event first, false or omitted returns the newest first. Only the literal spellings true and false are accepted."
|
|
24120
|
+
},
|
|
24121
|
+
{
|
|
24122
|
+
"name": "types",
|
|
24123
|
+
"type": "array",
|
|
24124
|
+
"itemType": "string",
|
|
24125
|
+
"required": false,
|
|
24126
|
+
"description": "Filter events to the provided event types"
|
|
24127
|
+
}
|
|
24128
|
+
]
|
|
24129
|
+
},
|
|
24130
|
+
{
|
|
24131
|
+
"resource": "sandbox.sandboxes",
|
|
24132
|
+
"method": "list",
|
|
24133
|
+
"summary": "List sandboxes (v2)",
|
|
24134
|
+
"description": "List your running and paused sandboxes with paging and filters. Use it to find a sandboxID before connecting to, pausing or killing a sandbox. Filter by state, template (id or alias), name, metadata (key=value pairs joined with &) and startedAfter; order sorts by start time (default newest first); limit is 1 to 100 (default 100). When more results exist the response carries an x-next-token header; send it back as nextToken for the next page. To read one sandbox use getSandbox.",
|
|
24135
|
+
"http": "GET",
|
|
24136
|
+
"path": "/sandbox/v1/sandboxes",
|
|
24137
|
+
"streaming": "no",
|
|
24138
|
+
"pagination": false,
|
|
24139
|
+
"pathParams": [],
|
|
24140
|
+
"query": [
|
|
24141
|
+
{
|
|
24142
|
+
"name": "metadata",
|
|
24143
|
+
"type": "string",
|
|
24144
|
+
"required": false,
|
|
24145
|
+
"description": "Metadata query used to filter the sandboxes (e.g. \"user=abc&app=prod\"). Each key and values must be URL encoded."
|
|
24146
|
+
},
|
|
24147
|
+
{
|
|
24148
|
+
"name": "state",
|
|
23332
24149
|
"type": "array",
|
|
23333
24150
|
"itemType": "string",
|
|
23334
24151
|
"enum": [
|
|
@@ -25395,6 +26212,131 @@ export const operations = [
|
|
|
25395
26212
|
]
|
|
25396
26213
|
}
|
|
25397
26214
|
},
|
|
26215
|
+
{
|
|
26216
|
+
"resource": "share.permissions",
|
|
26217
|
+
"method": "list",
|
|
26218
|
+
"summary": "List shares",
|
|
26219
|
+
"description": "Find the shares of this organization, newest first, for example every link that exposes one file before you decide which to revoke. Filter by resource_type, resource_id and status; filters combine with AND. Continue with next_page_token as page_token until next_page_token is null. Records never include link.web_url. A credential bound to specific files must pass resource_type and resource_id of a bound file, and an unbound file answers 404.",
|
|
26220
|
+
"http": "GET",
|
|
26221
|
+
"path": "/share/v1/permissions",
|
|
26222
|
+
"streaming": "no",
|
|
26223
|
+
"pagination": false,
|
|
26224
|
+
"pathParams": [],
|
|
26225
|
+
"query": [
|
|
26226
|
+
{
|
|
26227
|
+
"name": "resource_type",
|
|
26228
|
+
"type": "string",
|
|
26229
|
+
"enum": [
|
|
26230
|
+
"file",
|
|
26231
|
+
"artifact",
|
|
26232
|
+
"canvas",
|
|
26233
|
+
"media_asset"
|
|
26234
|
+
],
|
|
26235
|
+
"required": false,
|
|
26236
|
+
"description": "Only shares of this object type; file, canvas and media_asset create today."
|
|
26237
|
+
},
|
|
26238
|
+
{
|
|
26239
|
+
"name": "resource_id",
|
|
26240
|
+
"type": "string",
|
|
26241
|
+
"required": false,
|
|
26242
|
+
"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."
|
|
26243
|
+
},
|
|
26244
|
+
{
|
|
26245
|
+
"name": "status",
|
|
26246
|
+
"type": "string",
|
|
26247
|
+
"enum": [
|
|
26248
|
+
"active",
|
|
26249
|
+
"expired",
|
|
26250
|
+
"revoked"
|
|
26251
|
+
],
|
|
26252
|
+
"required": false,
|
|
26253
|
+
"description": "Only shares in this state; omit to list every state."
|
|
26254
|
+
},
|
|
26255
|
+
{
|
|
26256
|
+
"name": "page_size",
|
|
26257
|
+
"type": "integer",
|
|
26258
|
+
"required": false,
|
|
26259
|
+
"description": "Maximum shares in one page, from 1 to 100; defaults to 50."
|
|
26260
|
+
},
|
|
26261
|
+
{
|
|
26262
|
+
"name": "page_token",
|
|
26263
|
+
"type": "string",
|
|
26264
|
+
"required": false,
|
|
26265
|
+
"description": "Opaque next_page_token from the preceding page with the same filters; omit on the first request."
|
|
26266
|
+
}
|
|
26267
|
+
]
|
|
26268
|
+
},
|
|
26269
|
+
{
|
|
26270
|
+
"resource": "share.permissions",
|
|
26271
|
+
"method": "create",
|
|
26272
|
+
"summary": "Create share",
|
|
26273
|
+
"description": "Make one file readable by anyone holding a link, before sending the link to a person or embedding it. Name the object as resource {type, id}, with the file id from the File API. The response is 201 and is the only time link.web_url is returned; store it, because later reads omit it and a lost address means creating another share (the old one keeps working until you delete it). The link is anonymous and read-only. A type other than file answers 400 RESOURCE_TYPE_UNSUPPORTED, and a file that is missing or outside your organization answers 404 RESOURCE_NOT_FOUND.",
|
|
26274
|
+
"http": "POST",
|
|
26275
|
+
"path": "/share/v1/permissions",
|
|
26276
|
+
"streaming": "no",
|
|
26277
|
+
"pagination": false,
|
|
26278
|
+
"pathParams": [],
|
|
26279
|
+
"query": [],
|
|
26280
|
+
"body": {
|
|
26281
|
+
"required": true,
|
|
26282
|
+
"fields": [
|
|
26283
|
+
{
|
|
26284
|
+
"name": "resource",
|
|
26285
|
+
"type": "object",
|
|
26286
|
+
"required": true,
|
|
26287
|
+
"description": "The object a share exposes, named by a type and an id."
|
|
26288
|
+
},
|
|
26289
|
+
{
|
|
26290
|
+
"name": "expire_time",
|
|
26291
|
+
"type": "string",
|
|
26292
|
+
"required": false,
|
|
26293
|
+
"description": "ISO 8601 instant after which the link answers 410; omit or null for a link that never expires, and it must be in the future."
|
|
26294
|
+
},
|
|
26295
|
+
{
|
|
26296
|
+
"name": "prevents_download",
|
|
26297
|
+
"type": "boolean",
|
|
26298
|
+
"required": false,
|
|
26299
|
+
"description": "Ask viewers to open the content without a download prompt; a limit, not a guarantee, because anyone who can read it can save it. Defaults to false."
|
|
26300
|
+
}
|
|
26301
|
+
]
|
|
26302
|
+
}
|
|
26303
|
+
},
|
|
26304
|
+
{
|
|
26305
|
+
"resource": "share.permissions",
|
|
26306
|
+
"method": "delete",
|
|
26307
|
+
"summary": "Delete share",
|
|
26308
|
+
"description": "Take a link back so nobody can open it again. This revokes the share, the record stays readable with status revoked, and opening the link answers 410. Repeating the call on a revoked share is harmless and answers 204 again. Content addresses already signed when the link was opened expire on their own within five minutes. Take the id from shares.create or shares.list.",
|
|
26309
|
+
"http": "DELETE",
|
|
26310
|
+
"path": "/share/v1/permissions/{id}",
|
|
26311
|
+
"streaming": "no",
|
|
26312
|
+
"pagination": false,
|
|
26313
|
+
"pathParams": [
|
|
26314
|
+
{
|
|
26315
|
+
"name": "id",
|
|
26316
|
+
"sdkName": "id",
|
|
26317
|
+
"description": "Share id returned by shares.create or shares.list, in the form shr_ followed by 32 lowercase letters or digits; a link address is not accepted."
|
|
26318
|
+
}
|
|
26319
|
+
],
|
|
26320
|
+
"query": []
|
|
26321
|
+
},
|
|
26322
|
+
{
|
|
26323
|
+
"resource": "share.permissions",
|
|
26324
|
+
"method": "retrieve",
|
|
26325
|
+
"summary": "Retrieve share",
|
|
26326
|
+
"description": "Read one share to see whether its link is still active, when it expires, and how many times it was opened. Take the id from shares.create or shares.list. The record never includes link.web_url, because the address is shown once at creation. A share that does not exist or belongs to another organization answers 404 PERMISSION_NOT_FOUND.",
|
|
26327
|
+
"http": "GET",
|
|
26328
|
+
"path": "/share/v1/permissions/{id}",
|
|
26329
|
+
"streaming": "no",
|
|
26330
|
+
"pagination": false,
|
|
26331
|
+
"pathParams": [
|
|
26332
|
+
{
|
|
26333
|
+
"name": "id",
|
|
26334
|
+
"sdkName": "id",
|
|
26335
|
+
"description": "Share id returned by shares.create or shares.list, in the form shr_ followed by 32 lowercase letters or digits; a link address is not accepted."
|
|
26336
|
+
}
|
|
26337
|
+
],
|
|
26338
|
+
"query": []
|
|
26339
|
+
},
|
|
25398
26340
|
{
|
|
25399
26341
|
"resource": "studio.codexes",
|
|
25400
26342
|
"method": "list",
|