@deepraxis/sdk 0.1.1-dev.1046919 → 0.1.1-dev.124112f
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 +132 -1
- package/dist/automation.d.ts +54 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +266 -15
- package/dist/generated/sdk.gen.js +882 -131
- package/dist/generated/types.gen.d.ts +10705 -6843
- package/dist/operations.generated.d.ts +1173 -136
- package/dist/operations.generated.js +1403 -126
- package/dist/resources.generated.d.ts +189 -26
- package/dist/resources.generated.js +83 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ export const operations = [
|
|
|
4
4
|
"resource": "agent.agents",
|
|
5
5
|
"method": "list",
|
|
6
6
|
"summary": "List agents",
|
|
7
|
-
"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=personal for durable-computer agents
|
|
7
|
+
"description": "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=general or kind=personal for durable-computer agents, kind=service for per-session environments, or kind=assume for external MCP clients. Pass next_page from the response as page to read the next page; a null next_page means the end.",
|
|
8
8
|
"http": "GET",
|
|
9
9
|
"path": "/agent/v1/agents",
|
|
10
10
|
"streaming": "no",
|
|
@@ -49,8 +49,10 @@ export const operations = [
|
|
|
49
49
|
"name": "kind",
|
|
50
50
|
"type": "string",
|
|
51
51
|
"enum": [
|
|
52
|
+
"general",
|
|
52
53
|
"personal",
|
|
53
|
-
"service"
|
|
54
|
+
"service",
|
|
55
|
+
"assume"
|
|
54
56
|
],
|
|
55
57
|
"required": false,
|
|
56
58
|
"description": "Filter agents by their immutable kind, including agents created before kind was recorded."
|
|
@@ -61,7 +63,7 @@ export const operations = [
|
|
|
61
63
|
"resource": "agent.agents",
|
|
62
64
|
"method": "create",
|
|
63
65
|
"summary": "Create agent",
|
|
64
|
-
"description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write, enter_plan_mode, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 \"model <id> is not in the model catalog\" and an embedding, image or speech model returns 400 \"model <id> cannot run an agent\". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {\"name\":\"helper\",\"model\":{\"id\":\"deepseek-flash\"},\"tools\":[{\"type\":\"agent_toolset_20260401\"}]}.",
|
|
66
|
+
"description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write, enter_plan_mode, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 \"model <id> is not in the model catalog\" and an embedding, image or speech model returns 400 \"model <id> cannot run an agent\". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {\"name\":\"helper\",\"model\":{\"id\":\"deepseek-flash\"},\"tools\":[{\"type\":\"agent_toolset_20260401\"}]}. For kind assume, provide name without model, models, subagent_model, subagents or multiagent; omit computer_id to register a new computer named after the agent without starting an instance, or provide an existing computer_id; vault_ids are accepted, bindings and environment_id are refused. Drive assume agents over MCP at /agent/v1/agents/{id}/mcp.",
|
|
65
67
|
"http": "POST",
|
|
66
68
|
"path": "/agent/v1/agents",
|
|
67
69
|
"streaming": "no",
|
|
@@ -74,8 +76,8 @@ export const operations = [
|
|
|
74
76
|
{
|
|
75
77
|
"name": "model",
|
|
76
78
|
"type": "object",
|
|
77
|
-
"required":
|
|
78
|
-
"description": "A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected."
|
|
79
|
+
"required": false,
|
|
80
|
+
"description": "A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected. Forbidden and omitted on assume agents."
|
|
79
81
|
},
|
|
80
82
|
{
|
|
81
83
|
"name": "name",
|
|
@@ -133,17 +135,19 @@ export const operations = [
|
|
|
133
135
|
"type": "array",
|
|
134
136
|
"itemType": "object",
|
|
135
137
|
"required": false,
|
|
136
|
-
"description": "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. 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 no bindings. 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
|
+
"description": "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. 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 no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time."
|
|
137
139
|
},
|
|
138
140
|
{
|
|
139
141
|
"name": "kind",
|
|
140
142
|
"type": "string",
|
|
141
143
|
"enum": [
|
|
144
|
+
"general",
|
|
142
145
|
"personal",
|
|
143
|
-
"service"
|
|
146
|
+
"service",
|
|
147
|
+
"assume"
|
|
144
148
|
],
|
|
145
149
|
"required": false,
|
|
146
|
-
"description": "Immutable agent kind. personal
|
|
150
|
+
"description": "Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted."
|
|
147
151
|
},
|
|
148
152
|
{
|
|
149
153
|
"name": "computer_id",
|
|
@@ -193,7 +197,7 @@ export const operations = [
|
|
|
193
197
|
"name": "avatar",
|
|
194
198
|
"type": "string",
|
|
195
199
|
"required": false,
|
|
196
|
-
"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.
|
|
200
|
+
"description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
|
|
197
201
|
},
|
|
198
202
|
{
|
|
199
203
|
"name": "environment_id",
|
|
@@ -235,7 +239,7 @@ export const operations = [
|
|
|
235
239
|
{
|
|
236
240
|
"name": "agent_id",
|
|
237
241
|
"sdkName": "agent_id",
|
|
238
|
-
"description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name."
|
|
242
|
+
"description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
239
243
|
}
|
|
240
244
|
],
|
|
241
245
|
"query": [
|
|
@@ -251,7 +255,7 @@ export const operations = [
|
|
|
251
255
|
"resource": "agent.agents",
|
|
252
256
|
"method": "update",
|
|
253
257
|
"summary": "Update agent",
|
|
254
|
-
"description": "Save configuration changes as a new immutable version. Send latest_version from a default retrieve or update response as the request version for optimistic concurrency; a stale value returns 409. apply defaults to true and makes the new version effective; apply false saves without changing active_version. The response contains the effective configuration, with version equal to active_version and latest_version naming the newest saved version. An unchanged configuration, including a note-only update, is a no-op returning 200 and the current effective version without creating or activating a version. version_note records up to 280 characters only when a configuration change creates a new version; null is equivalent to omission. Use agents.versions.apply to activate an existing saved version. Existing sessions and tokens keep their version. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400.",
|
|
258
|
+
"description": "Save configuration changes as a new immutable version. Send latest_version from a default retrieve or update response as the request version for optimistic concurrency; a stale value returns 409. apply defaults to true and makes the new version effective; apply false saves without changing active_version. The response contains the effective configuration, with version equal to active_version and latest_version naming the newest saved version. An unchanged configuration, including a note-only update, is a no-op returning 200 and the current effective version without creating or activating a version. version_note records up to 280 characters only when a configuration change creates a new version; null is equivalent to omission. Use agents.versions.apply to activate an existing saved version. Existing sessions and tokens keep their version. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Assume agents reject model, models, subagent_model, subagents and multiagent on every update; other fields follow the general agent rules, with vault_ids also accepted.",
|
|
255
259
|
"http": "POST",
|
|
256
260
|
"path": "/agent/v1/agents/{agent_id}",
|
|
257
261
|
"streaming": "no",
|
|
@@ -260,7 +264,7 @@ export const operations = [
|
|
|
260
264
|
{
|
|
261
265
|
"name": "agent_id",
|
|
262
266
|
"sdkName": "agent_id",
|
|
263
|
-
"description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name."
|
|
267
|
+
"description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
264
268
|
}
|
|
265
269
|
],
|
|
266
270
|
"query": [],
|
|
@@ -290,7 +294,7 @@ export const operations = [
|
|
|
290
294
|
"name": "model",
|
|
291
295
|
"type": "object",
|
|
292
296
|
"required": false,
|
|
293
|
-
"description": "A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected."
|
|
297
|
+
"description": "A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected. Forbidden and omitted on assume agents."
|
|
294
298
|
},
|
|
295
299
|
{
|
|
296
300
|
"name": "multiagent",
|
|
@@ -353,11 +357,13 @@ export const operations = [
|
|
|
353
357
|
"name": "kind",
|
|
354
358
|
"type": "string",
|
|
355
359
|
"enum": [
|
|
360
|
+
"general",
|
|
356
361
|
"personal",
|
|
357
|
-
"service"
|
|
362
|
+
"service",
|
|
363
|
+
"assume"
|
|
358
364
|
],
|
|
359
365
|
"required": false,
|
|
360
|
-
"description": "Immutable agent kind. personal
|
|
366
|
+
"description": "Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted."
|
|
361
367
|
},
|
|
362
368
|
{
|
|
363
369
|
"name": "computer_id",
|
|
@@ -407,7 +413,7 @@ export const operations = [
|
|
|
407
413
|
"name": "avatar",
|
|
408
414
|
"type": "string",
|
|
409
415
|
"required": false,
|
|
410
|
-
"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.
|
|
416
|
+
"description": "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
|
|
411
417
|
},
|
|
412
418
|
{
|
|
413
419
|
"name": "environment_id",
|
|
@@ -449,7 +455,7 @@ export const operations = [
|
|
|
449
455
|
{
|
|
450
456
|
"name": "agent_id",
|
|
451
457
|
"sdkName": "agent_id",
|
|
452
|
-
"description": "Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for."
|
|
458
|
+
"description": "Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
453
459
|
}
|
|
454
460
|
],
|
|
455
461
|
"query": []
|
|
@@ -467,7 +473,7 @@ export const operations = [
|
|
|
467
473
|
{
|
|
468
474
|
"name": "agent_id",
|
|
469
475
|
"sdkName": "agent_id",
|
|
470
|
-
"description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name."
|
|
476
|
+
"description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
471
477
|
}
|
|
472
478
|
],
|
|
473
479
|
"query": []
|
|
@@ -485,7 +491,7 @@ export const operations = [
|
|
|
485
491
|
{
|
|
486
492
|
"name": "agent_id",
|
|
487
493
|
"sdkName": "agent_id",
|
|
488
|
-
"description": "Active service agent id from agent creation or listing."
|
|
494
|
+
"description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
489
495
|
}
|
|
490
496
|
],
|
|
491
497
|
"query": [
|
|
@@ -538,7 +544,7 @@ export const operations = [
|
|
|
538
544
|
{
|
|
539
545
|
"name": "agent_id",
|
|
540
546
|
"sdkName": "agent_id",
|
|
541
|
-
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing."
|
|
547
|
+
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
542
548
|
}
|
|
543
549
|
],
|
|
544
550
|
"query": [],
|
|
@@ -560,7 +566,7 @@ export const operations = [
|
|
|
560
566
|
{
|
|
561
567
|
"name": "agent_id",
|
|
562
568
|
"sdkName": "agent_id",
|
|
563
|
-
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing."
|
|
569
|
+
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
564
570
|
}
|
|
565
571
|
],
|
|
566
572
|
"query": []
|
|
@@ -578,7 +584,7 @@ export const operations = [
|
|
|
578
584
|
{
|
|
579
585
|
"name": "agent_id",
|
|
580
586
|
"sdkName": "agent_id",
|
|
581
|
-
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing."
|
|
587
|
+
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
582
588
|
}
|
|
583
589
|
],
|
|
584
590
|
"query": []
|
|
@@ -596,7 +602,7 @@ export const operations = [
|
|
|
596
602
|
{
|
|
597
603
|
"name": "agent_id",
|
|
598
604
|
"sdkName": "agent_id",
|
|
599
|
-
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing."
|
|
605
|
+
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
600
606
|
}
|
|
601
607
|
],
|
|
602
608
|
"query": [],
|
|
@@ -686,7 +692,7 @@ export const operations = [
|
|
|
686
692
|
{
|
|
687
693
|
"name": "agent_id",
|
|
688
694
|
"sdkName": "agent_id",
|
|
689
|
-
"description": "Active service agent id from agent creation or listing."
|
|
695
|
+
"description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
690
696
|
},
|
|
691
697
|
{
|
|
692
698
|
"name": "customer_id",
|
|
@@ -716,7 +722,7 @@ export const operations = [
|
|
|
716
722
|
{
|
|
717
723
|
"name": "agent_id",
|
|
718
724
|
"sdkName": "agent_id",
|
|
719
|
-
"description": "Active service agent id from agent creation or listing."
|
|
725
|
+
"description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
720
726
|
},
|
|
721
727
|
{
|
|
722
728
|
"name": "customer_id",
|
|
@@ -739,7 +745,7 @@ export const operations = [
|
|
|
739
745
|
{
|
|
740
746
|
"name": "agent_id",
|
|
741
747
|
"sdkName": "agent_id",
|
|
742
|
-
"description": "Active service agent id from agent creation or listing."
|
|
748
|
+
"description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
743
749
|
},
|
|
744
750
|
{
|
|
745
751
|
"name": "customer_id",
|
|
@@ -762,7 +768,7 @@ export const operations = [
|
|
|
762
768
|
{
|
|
763
769
|
"name": "agent_id",
|
|
764
770
|
"sdkName": "agent_id",
|
|
765
|
-
"description": "Active service agent id from agent creation or listing."
|
|
771
|
+
"description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
766
772
|
},
|
|
767
773
|
{
|
|
768
774
|
"name": "customer_id",
|
|
@@ -785,7 +791,7 @@ export const operations = [
|
|
|
785
791
|
{
|
|
786
792
|
"name": "agent_id",
|
|
787
793
|
"sdkName": "agent_id",
|
|
788
|
-
"description": "Active service agent id from agent creation or listing."
|
|
794
|
+
"description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
789
795
|
},
|
|
790
796
|
{
|
|
791
797
|
"name": "customer_id",
|
|
@@ -808,7 +814,7 @@ export const operations = [
|
|
|
808
814
|
{
|
|
809
815
|
"name": "agent_id",
|
|
810
816
|
"sdkName": "agent_id",
|
|
811
|
-
"description": "Active service agent id from agent creation or listing."
|
|
817
|
+
"description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
812
818
|
},
|
|
813
819
|
{
|
|
814
820
|
"name": "customer_id",
|
|
@@ -831,7 +837,7 @@ export const operations = [
|
|
|
831
837
|
{
|
|
832
838
|
"name": "agent_id",
|
|
833
839
|
"sdkName": "agent_id",
|
|
834
|
-
"description": "Agent id from creation or listing."
|
|
840
|
+
"description": "Agent id from creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
835
841
|
}
|
|
836
842
|
],
|
|
837
843
|
"query": []
|
|
@@ -849,7 +855,7 @@ export const operations = [
|
|
|
849
855
|
{
|
|
850
856
|
"name": "agent_id",
|
|
851
857
|
"sdkName": "agent_id",
|
|
852
|
-
"description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name."
|
|
858
|
+
"description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
853
859
|
}
|
|
854
860
|
],
|
|
855
861
|
"query": [
|
|
@@ -880,7 +886,7 @@ export const operations = [
|
|
|
880
886
|
{
|
|
881
887
|
"name": "agent_id",
|
|
882
888
|
"sdkName": "agent_id",
|
|
883
|
-
"description": "Agent identifier from agents.create or agents.list."
|
|
889
|
+
"description": "Agent identifier from agents.create or agents.list. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
884
890
|
},
|
|
885
891
|
{
|
|
886
892
|
"name": "version",
|
|
@@ -920,7 +926,7 @@ export const operations = [
|
|
|
920
926
|
"resource": "agent.computers",
|
|
921
927
|
"method": "create",
|
|
922
928
|
"summary": "Create Computer",
|
|
923
|
-
"description": "Create a durable computer: a named machine whose files outlive sessions, for personal agents.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
|
|
929
|
+
"description": "Create a durable computer: a named machine whose files outlive sessions, for general and personal agents.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.",
|
|
924
930
|
"http": "POST",
|
|
925
931
|
"path": "/agent/v1/computers",
|
|
926
932
|
"streaming": "no",
|
|
@@ -1346,7 +1352,7 @@ export const operations = [
|
|
|
1346
1352
|
"resource": "agent.deployments",
|
|
1347
1353
|
"method": "create",
|
|
1348
1354
|
"summary": "Create deployment",
|
|
1349
|
-
"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 personal agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400.",
|
|
1355
|
+
"description": "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general and personal agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400.",
|
|
1350
1356
|
"http": "POST",
|
|
1351
1357
|
"path": "/agent/v1/deployments",
|
|
1352
1358
|
"streaming": "no",
|
|
@@ -1423,7 +1429,7 @@ export const operations = [
|
|
|
1423
1429
|
"name": "target",
|
|
1424
1430
|
"type": "object",
|
|
1425
1431
|
"required": false,
|
|
1426
|
-
"description": "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted."
|
|
1432
|
+
"description": "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted."
|
|
1427
1433
|
}
|
|
1428
1434
|
]
|
|
1429
1435
|
}
|
|
@@ -1533,7 +1539,7 @@ export const operations = [
|
|
|
1533
1539
|
"name": "target",
|
|
1534
1540
|
"type": "object",
|
|
1535
1541
|
"required": false,
|
|
1536
|
-
"description": "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted."
|
|
1542
|
+
"description": "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted."
|
|
1537
1543
|
}
|
|
1538
1544
|
]
|
|
1539
1545
|
}
|
|
@@ -1898,7 +1904,7 @@ export const operations = [
|
|
|
1898
1904
|
"resource": "agent.sessions",
|
|
1899
1905
|
"method": "create",
|
|
1900
1906
|
"summary": "Create session",
|
|
1901
|
-
"description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (light for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive decimal string of US dollars with at most 2 decimal places (\"20.00\" is USD 20.00); omitted budget defaults to \"20.00\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.",
|
|
1907
|
+
"description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (light for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive decimal string of US dollars with at most 2 decimal places (\"20.00\" is USD 20.00); omitted budget defaults to \"20.00\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion. Assume agents return 400 INVALID_PARAMS; drive them over MCP at /agent/v1/agents/{id}/mcp instead.",
|
|
1902
1908
|
"http": "POST",
|
|
1903
1909
|
"path": "/agent/v1/sessions",
|
|
1904
1910
|
"streaming": "no",
|
|
@@ -2239,7 +2245,7 @@ export const operations = [
|
|
|
2239
2245
|
"resource": "agent.sessions.compactions",
|
|
2240
2246
|
"method": "list",
|
|
2241
2247
|
"summary": "List Session Compactions (Extension)",
|
|
2242
|
-
"description": "Read session compaction history and summaries.\n\nAvailable only on /agent/v1. Returns { data: [...], active }. active is the queued or running compaction ({ type: session_compaction, id, status, trigger: manual|auto }), or null when none; manual work takes precedence. Each data entry contains type, id, event_id, trigger, status, model, compacted_message_count, input_tokens_before, input_tokens_after, summary, error and created_at, as recorded by the service. Missing or inaccessible managed sessions return 404 not_found_error.",
|
|
2248
|
+
"description": "Read session compaction history and summaries.\n\nAvailable only on /agent/v1. Returns { data: [...], active }. active is the queued or running compaction ({ type: session_compaction, id, status, trigger: manual|auto|idle }), or null when none; manual work takes precedence. Each data entry contains type, id, event_id, trigger, status, model, compacted_message_count, input_tokens_before, input_tokens_after, summary, error and created_at, as recorded by the service. Missing or inaccessible managed sessions return 404 not_found_error.",
|
|
2243
2249
|
"http": "GET",
|
|
2244
2250
|
"path": "/agent/v1/sessions/{session_id}/compactions",
|
|
2245
2251
|
"streaming": "no",
|
|
@@ -3501,7 +3507,7 @@ export const operations = [
|
|
|
3501
3507
|
"resource": "application.workers.grants",
|
|
3502
3508
|
"method": "create",
|
|
3503
3509
|
"summary": "Create grant",
|
|
3504
|
-
"description": "
|
|
3510
|
+
"description": "Record access to an organization-owned database or knowledge base, all organization files (files, id *), or models (models, id *, read only). Each resource and optional alias must be unique within this Worker. Foreign and missing resources both return RESOURCE_NOT_FOUND (404); an unavailable resource service returns PROVIDER_CAPACITY (503, retryable).",
|
|
3505
3511
|
"http": "POST",
|
|
3506
3512
|
"path": "/application/v1/workers/{worker_id}/grants",
|
|
3507
3513
|
"streaming": "no",
|
|
@@ -3521,7 +3527,13 @@ export const operations = [
|
|
|
3521
3527
|
"name": "resource",
|
|
3522
3528
|
"type": "object",
|
|
3523
3529
|
"required": true,
|
|
3524
|
-
"description": "Resource to grant."
|
|
3530
|
+
"description": "Resource to grant. Each (type, id) may be granted once per Worker; duplicates return GRANT_CONFLICT (409)."
|
|
3531
|
+
},
|
|
3532
|
+
{
|
|
3533
|
+
"name": "alias",
|
|
3534
|
+
"type": "string",
|
|
3535
|
+
"required": false,
|
|
3536
|
+
"description": "Optional name, unique within this Worker. Available for reuse after the grant is deleted."
|
|
3525
3537
|
},
|
|
3526
3538
|
{
|
|
3527
3539
|
"name": "access",
|
|
@@ -3531,7 +3543,7 @@ export const operations = [
|
|
|
3531
3543
|
"read_write"
|
|
3532
3544
|
],
|
|
3533
3545
|
"required": true,
|
|
3534
|
-
"description": "Access level."
|
|
3546
|
+
"description": "Access level; models accepts read only."
|
|
3535
3547
|
}
|
|
3536
3548
|
]
|
|
3537
3549
|
}
|
|
@@ -5497,6 +5509,96 @@ export const operations = [
|
|
|
5497
5509
|
"fields": []
|
|
5498
5510
|
}
|
|
5499
5511
|
},
|
|
5512
|
+
{
|
|
5513
|
+
"resource": "automation.scripts.vaults",
|
|
5514
|
+
"method": "list",
|
|
5515
|
+
"summary": "List script vault bindings",
|
|
5516
|
+
"description": "Inspect the whole vaults attached to a saved script, including archived definitions, without reading secret values. Obtain ns and name from automation.scripts.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.",
|
|
5517
|
+
"http": "GET",
|
|
5518
|
+
"path": "/automation/v1/scripts/{ns}/{name}/vaults",
|
|
5519
|
+
"streaming": "no",
|
|
5520
|
+
"pagination": false,
|
|
5521
|
+
"pathParams": [
|
|
5522
|
+
{
|
|
5523
|
+
"name": "ns",
|
|
5524
|
+
"sdkName": "ns",
|
|
5525
|
+
"description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
|
|
5526
|
+
},
|
|
5527
|
+
{
|
|
5528
|
+
"name": "name",
|
|
5529
|
+
"sdkName": "name",
|
|
5530
|
+
"description": "Resource name from automation.scripts.list or create; combine with ns to identify the saved script."
|
|
5531
|
+
}
|
|
5532
|
+
],
|
|
5533
|
+
"query": []
|
|
5534
|
+
},
|
|
5535
|
+
{
|
|
5536
|
+
"resource": "automation.scripts.vaults",
|
|
5537
|
+
"method": "delete",
|
|
5538
|
+
"summary": "Delete a script vault binding",
|
|
5539
|
+
"description": "Remove the vault assignment from this saved script without deleting the vault or its secrets. Obtain aliases from automation.scripts.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.",
|
|
5540
|
+
"http": "DELETE",
|
|
5541
|
+
"path": "/automation/v1/scripts/{ns}/{name}/vaults/{alias}",
|
|
5542
|
+
"streaming": "no",
|
|
5543
|
+
"pagination": false,
|
|
5544
|
+
"pathParams": [
|
|
5545
|
+
{
|
|
5546
|
+
"name": "ns",
|
|
5547
|
+
"sdkName": "ns",
|
|
5548
|
+
"description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
|
|
5549
|
+
},
|
|
5550
|
+
{
|
|
5551
|
+
"name": "name",
|
|
5552
|
+
"sdkName": "name",
|
|
5553
|
+
"description": "Resource name from automation.scripts.list or create; combine with ns to identify the saved script."
|
|
5554
|
+
},
|
|
5555
|
+
{
|
|
5556
|
+
"name": "alias",
|
|
5557
|
+
"sdkName": "alias",
|
|
5558
|
+
"description": "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter."
|
|
5559
|
+
}
|
|
5560
|
+
],
|
|
5561
|
+
"query": []
|
|
5562
|
+
},
|
|
5563
|
+
{
|
|
5564
|
+
"resource": "automation.scripts.vaults",
|
|
5565
|
+
"method": "set",
|
|
5566
|
+
"summary": "Set a script vault binding",
|
|
5567
|
+
"description": "Attach an entire active vault in your organization to a saved script, or replace the vault at an existing alias. Obtain the vault ID or display name from praxis.vault.vaults.list; ambiguous names require an ID. Bindings are independent of published versions and survive archival. The same vault cannot be assigned to two aliases on one definition. Repeating the same assignment is idempotent. Example body: {\"vault\":\"Production\"}.",
|
|
5568
|
+
"http": "PUT",
|
|
5569
|
+
"path": "/automation/v1/scripts/{ns}/{name}/vaults/{alias}",
|
|
5570
|
+
"streaming": "no",
|
|
5571
|
+
"pagination": false,
|
|
5572
|
+
"pathParams": [
|
|
5573
|
+
{
|
|
5574
|
+
"name": "ns",
|
|
5575
|
+
"sdkName": "ns",
|
|
5576
|
+
"description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
|
|
5577
|
+
},
|
|
5578
|
+
{
|
|
5579
|
+
"name": "name",
|
|
5580
|
+
"sdkName": "name",
|
|
5581
|
+
"description": "Resource name from automation.scripts.list or create; combine with ns to identify the saved script."
|
|
5582
|
+
},
|
|
5583
|
+
{
|
|
5584
|
+
"name": "alias",
|
|
5585
|
+
"sdkName": "alias",
|
|
5586
|
+
"description": "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter."
|
|
5587
|
+
}
|
|
5588
|
+
],
|
|
5589
|
+
"query": [],
|
|
5590
|
+
"body": {
|
|
5591
|
+
"required": true,
|
|
5592
|
+
"fields": [
|
|
5593
|
+
{
|
|
5594
|
+
"name": "vault",
|
|
5595
|
+
"type": "string",
|
|
5596
|
+
"required": true,
|
|
5597
|
+
"description": "Active vault ID or exact display name from praxis.vault.vaults.list in your organization. Use an ID if display names are duplicated."
|
|
5598
|
+
}
|
|
5599
|
+
]
|
|
5600
|
+
}
|
|
5601
|
+
},
|
|
5500
5602
|
{
|
|
5501
5603
|
"resource": "automation.scripts.versions",
|
|
5502
5604
|
"method": "list",
|
|
@@ -6297,7 +6399,7 @@ export const operations = [
|
|
|
6297
6399
|
"resource": "automation.workflows",
|
|
6298
6400
|
"method": "create",
|
|
6299
6401
|
"summary": "Create a workflow",
|
|
6300
|
-
"description": "Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax. Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl (\"1.0.3\"), namespace, name and version, plus a do list of steps, for example document: {dsl: \"1.0.3\", namespace: demo, name: add, version: \"1.0.0\"} and do: [{first: {call: demo/add-one, with: {n: \"${ .n }\"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action 30 s (run-sandbox 10 min), workflow 24 h by default and 30 days at most, payload 1 MiB. Test the draft by sending its source and language=yaml to praxis.automation.runs.create. Guide: /docs/developers/automation/guides/write-workflow. Error details are in the errors[] of the response (pointer, detail, hint). Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. run.workflow accepts ns/name@range or {namespace, name, version, input}; run.script uses the same reference shape as a platform extension. Object namespace, name and version are required; version accepts an exact version, dist-tag or range, locked at publication. Object input defaults to {} and supports expressions; string references retain task-level with. run.await defaults to true and returns the child output. With false, the child uses detach and the task immediately returns {run_id}; parent cancellation does not cascade. Inline script.code returns DEFINITION_INVALID with a detail asking you to save a script and reference it first. raise.error retains its type URI, status, title and detail in the run error.",
|
|
6402
|
+
"description": "Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax. Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl (\"1.0.3\"), namespace, name and version, plus a do list of steps, for example document: {dsl: \"1.0.3\", namespace: demo, name: add, version: \"1.0.0\"} and do: [{first: {call: demo/add-one, with: {n: \"${ .n }\"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action 30 s (run-sandbox 10 min), workflow 24 h by default and 30 days at most, payload 1 MiB. Test the draft by sending its source and language=yaml to praxis.automation.runs.create. To pause for a person, call praxis/approval (it opens a human task; the step output is the decision); agents answer with praxis.automation.humanTasks.respond on behalf of their user. Guide: /docs/developers/automation/guides/approvals Guide: /docs/developers/automation/guides/write-workflow. Error details are in the errors[] of the response (pointer, detail, hint). Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. run.workflow accepts ns/name@range or {namespace, name, version, input}; run.script uses the same reference shape as a platform extension. Object namespace, name and version are required; version accepts an exact version, dist-tag or range, locked at publication. Object input defaults to {} and supports expressions; string references retain task-level with. run.await defaults to true and returns the child output. With false, the child uses detach and the task immediately returns {run_id}; parent cancellation does not cascade. Inline script.code returns DEFINITION_INVALID with a detail asking you to save a script and reference it first. raise.error retains its type URI, status, title and detail in the run error.",
|
|
6301
6403
|
"http": "POST",
|
|
6302
6404
|
"path": "/automation/v1/workflows",
|
|
6303
6405
|
"streaming": "no",
|
|
@@ -6553,6 +6655,96 @@ export const operations = [
|
|
|
6553
6655
|
"fields": []
|
|
6554
6656
|
}
|
|
6555
6657
|
},
|
|
6658
|
+
{
|
|
6659
|
+
"resource": "automation.workflows.vaults",
|
|
6660
|
+
"method": "list",
|
|
6661
|
+
"summary": "List workflow vault bindings",
|
|
6662
|
+
"description": "Inspect the whole vaults attached to a saved workflow, including archived definitions, without reading secret values. Obtain ns and name from automation.workflows.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.",
|
|
6663
|
+
"http": "GET",
|
|
6664
|
+
"path": "/automation/v1/workflows/{ns}/{name}/vaults",
|
|
6665
|
+
"streaming": "no",
|
|
6666
|
+
"pagination": false,
|
|
6667
|
+
"pathParams": [
|
|
6668
|
+
{
|
|
6669
|
+
"name": "ns",
|
|
6670
|
+
"sdkName": "ns",
|
|
6671
|
+
"description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
|
|
6672
|
+
},
|
|
6673
|
+
{
|
|
6674
|
+
"name": "name",
|
|
6675
|
+
"sdkName": "name",
|
|
6676
|
+
"description": "Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow."
|
|
6677
|
+
}
|
|
6678
|
+
],
|
|
6679
|
+
"query": []
|
|
6680
|
+
},
|
|
6681
|
+
{
|
|
6682
|
+
"resource": "automation.workflows.vaults",
|
|
6683
|
+
"method": "delete",
|
|
6684
|
+
"summary": "Delete a workflow vault binding",
|
|
6685
|
+
"description": "Remove the vault assignment from this saved workflow without deleting the vault or its secrets. Obtain aliases from automation.workflows.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.",
|
|
6686
|
+
"http": "DELETE",
|
|
6687
|
+
"path": "/automation/v1/workflows/{ns}/{name}/vaults/{alias}",
|
|
6688
|
+
"streaming": "no",
|
|
6689
|
+
"pagination": false,
|
|
6690
|
+
"pathParams": [
|
|
6691
|
+
{
|
|
6692
|
+
"name": "ns",
|
|
6693
|
+
"sdkName": "ns",
|
|
6694
|
+
"description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
|
|
6695
|
+
},
|
|
6696
|
+
{
|
|
6697
|
+
"name": "name",
|
|
6698
|
+
"sdkName": "name",
|
|
6699
|
+
"description": "Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow."
|
|
6700
|
+
},
|
|
6701
|
+
{
|
|
6702
|
+
"name": "alias",
|
|
6703
|
+
"sdkName": "alias",
|
|
6704
|
+
"description": "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter."
|
|
6705
|
+
}
|
|
6706
|
+
],
|
|
6707
|
+
"query": []
|
|
6708
|
+
},
|
|
6709
|
+
{
|
|
6710
|
+
"resource": "automation.workflows.vaults",
|
|
6711
|
+
"method": "set",
|
|
6712
|
+
"summary": "Set a workflow vault binding",
|
|
6713
|
+
"description": "Attach an entire active vault in your organization to a saved workflow, or replace the vault at an existing alias. Obtain the vault ID or display name from praxis.vault.vaults.list; ambiguous names require an ID. Bindings are independent of published versions and survive archival. The same vault cannot be assigned to two aliases on one definition. Repeating the same assignment is idempotent. Example body: {\"vault\":\"Production\"}.",
|
|
6714
|
+
"http": "PUT",
|
|
6715
|
+
"path": "/automation/v1/workflows/{ns}/{name}/vaults/{alias}",
|
|
6716
|
+
"streaming": "no",
|
|
6717
|
+
"pagination": false,
|
|
6718
|
+
"pathParams": [
|
|
6719
|
+
{
|
|
6720
|
+
"name": "ns",
|
|
6721
|
+
"sdkName": "ns",
|
|
6722
|
+
"description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
|
|
6723
|
+
},
|
|
6724
|
+
{
|
|
6725
|
+
"name": "name",
|
|
6726
|
+
"sdkName": "name",
|
|
6727
|
+
"description": "Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow."
|
|
6728
|
+
},
|
|
6729
|
+
{
|
|
6730
|
+
"name": "alias",
|
|
6731
|
+
"sdkName": "alias",
|
|
6732
|
+
"description": "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter."
|
|
6733
|
+
}
|
|
6734
|
+
],
|
|
6735
|
+
"query": [],
|
|
6736
|
+
"body": {
|
|
6737
|
+
"required": true,
|
|
6738
|
+
"fields": [
|
|
6739
|
+
{
|
|
6740
|
+
"name": "vault",
|
|
6741
|
+
"type": "string",
|
|
6742
|
+
"required": true,
|
|
6743
|
+
"description": "Active vault ID or exact display name from praxis.vault.vaults.list in your organization. Use an ID if display names are duplicated."
|
|
6744
|
+
}
|
|
6745
|
+
]
|
|
6746
|
+
}
|
|
6747
|
+
},
|
|
6556
6748
|
{
|
|
6557
6749
|
"resource": "automation.workflows.versions",
|
|
6558
6750
|
"method": "list",
|
|
@@ -7136,64 +7328,953 @@ export const operations = [
|
|
|
7136
7328
|
"pagination": false,
|
|
7137
7329
|
"pathParams": [
|
|
7138
7330
|
{
|
|
7139
|
-
"name": "sessionId",
|
|
7140
|
-
"sdkName": "sessionId",
|
|
7141
|
-
"description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
|
|
7331
|
+
"name": "sessionId",
|
|
7332
|
+
"sdkName": "sessionId",
|
|
7333
|
+
"description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
|
|
7334
|
+
}
|
|
7335
|
+
],
|
|
7336
|
+
"query": []
|
|
7337
|
+
},
|
|
7338
|
+
{
|
|
7339
|
+
"resource": "browser.sessions.events",
|
|
7340
|
+
"method": "list",
|
|
7341
|
+
"summary": "列出会话事件",
|
|
7342
|
+
"description": "按事件序号升序读取指定会话的事件账本,包含生命周期和接管等事件,不包含页面点击或输入内容。可按 types 筛选,并将 nextCursor 原样传入读取后续页。",
|
|
7343
|
+
"http": "GET",
|
|
7344
|
+
"path": "/browser/v1/sessions/{sessionId}/events",
|
|
7345
|
+
"streaming": "no",
|
|
7346
|
+
"pagination": false,
|
|
7347
|
+
"pathParams": [
|
|
7348
|
+
{
|
|
7349
|
+
"name": "sessionId",
|
|
7350
|
+
"sdkName": "sessionId",
|
|
7351
|
+
"description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
|
|
7352
|
+
}
|
|
7353
|
+
],
|
|
7354
|
+
"query": [
|
|
7355
|
+
{
|
|
7356
|
+
"name": "cursor",
|
|
7357
|
+
"type": "string",
|
|
7358
|
+
"required": false,
|
|
7359
|
+
"description": "上一页返回的 nextCursor,表示已读到的事件序号;省略时从最早事件开始。"
|
|
7360
|
+
},
|
|
7361
|
+
{
|
|
7362
|
+
"name": "limit",
|
|
7363
|
+
"type": "integer",
|
|
7364
|
+
"required": false,
|
|
7365
|
+
"description": "每页最多返回的记录数量;默认 50,范围 1–200。"
|
|
7366
|
+
},
|
|
7367
|
+
{
|
|
7368
|
+
"name": "types",
|
|
7369
|
+
"type": "string",
|
|
7370
|
+
"required": false,
|
|
7371
|
+
"description": "逗号分隔的账本事件类型,仅返回匹配项;省略时不按类型筛选。"
|
|
7372
|
+
}
|
|
7373
|
+
]
|
|
7374
|
+
},
|
|
7375
|
+
{
|
|
7376
|
+
"resource": "browser.sessions.handoff",
|
|
7377
|
+
"method": "create",
|
|
7378
|
+
"summary": "请求人工接管",
|
|
7379
|
+
"description": "为运行中的会话发起人工接管请求,返回接管请求事件。请求尚未过期或完成时,CDP 客户端的 Input.* 指令会被拒绝;再次请求会替换已有的接管说明和到期时刻。",
|
|
7380
|
+
"http": "POST",
|
|
7381
|
+
"path": "/browser/v1/sessions/{sessionId}/handoff",
|
|
7382
|
+
"streaming": "no",
|
|
7383
|
+
"pagination": false,
|
|
7384
|
+
"pathParams": [
|
|
7385
|
+
{
|
|
7386
|
+
"name": "sessionId",
|
|
7387
|
+
"sdkName": "sessionId",
|
|
7388
|
+
"description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
|
|
7389
|
+
}
|
|
7390
|
+
],
|
|
7391
|
+
"query": [],
|
|
7392
|
+
"body": {
|
|
7393
|
+
"required": true,
|
|
7394
|
+
"fields": [
|
|
7395
|
+
{
|
|
7396
|
+
"name": "message",
|
|
7397
|
+
"type": "string",
|
|
7398
|
+
"required": true,
|
|
7399
|
+
"description": "交给人工操作者的接管说明,可为空字符串。"
|
|
7400
|
+
},
|
|
7401
|
+
{
|
|
7402
|
+
"name": "timeoutMs",
|
|
7403
|
+
"type": "number",
|
|
7404
|
+
"required": false,
|
|
7405
|
+
"description": "接管请求有效时长,单位为毫秒;必须大于 0,可含小数。"
|
|
7406
|
+
}
|
|
7407
|
+
]
|
|
7408
|
+
}
|
|
7409
|
+
},
|
|
7410
|
+
{
|
|
7411
|
+
"resource": "browser.sessions.handoff",
|
|
7412
|
+
"method": "complete",
|
|
7413
|
+
"summary": "完成人工接管",
|
|
7414
|
+
"description": "完成运行中会话的待处理人工接管,清除接管请求并返回完成事件,客户端可恢复发送 Input.* 指令。没有请求或请求已过期时返回 409 HANDOFF_NOT_PENDING。",
|
|
7415
|
+
"http": "POST",
|
|
7416
|
+
"path": "/browser/v1/sessions/{sessionId}/handoff/complete",
|
|
7417
|
+
"streaming": "no",
|
|
7418
|
+
"pagination": false,
|
|
7419
|
+
"pathParams": [
|
|
7420
|
+
{
|
|
7421
|
+
"name": "sessionId",
|
|
7422
|
+
"sdkName": "sessionId",
|
|
7423
|
+
"description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
|
|
7424
|
+
}
|
|
7425
|
+
],
|
|
7426
|
+
"query": []
|
|
7427
|
+
},
|
|
7428
|
+
{
|
|
7429
|
+
"resource": "browser.sessions",
|
|
7430
|
+
"method": "stream",
|
|
7431
|
+
"summary": "订阅会话动态",
|
|
7432
|
+
"description": "SSE:event 为 snapshot、session、pages、action、event 或 end,data 为对应 JSON。先发送 snapshot 快照,再推送实时变化和 ping 注释;end 后关闭。不支持按 Last-Event-ID 历史重放。",
|
|
7433
|
+
"http": "GET",
|
|
7434
|
+
"path": "/browser/v1/sessions/{sessionId}/stream",
|
|
7435
|
+
"streaming": "always",
|
|
7436
|
+
"pagination": false,
|
|
7437
|
+
"pathParams": [
|
|
7438
|
+
{
|
|
7439
|
+
"name": "sessionId",
|
|
7440
|
+
"sdkName": "sessionId",
|
|
7441
|
+
"description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
|
|
7442
|
+
}
|
|
7443
|
+
],
|
|
7444
|
+
"query": []
|
|
7445
|
+
},
|
|
7446
|
+
{
|
|
7447
|
+
"resource": "browser.sessions.viewer",
|
|
7448
|
+
"method": "create",
|
|
7449
|
+
"summary": "更新查看者心跳",
|
|
7450
|
+
"description": "登记运行中会话的观看者仍在线,以免无人连接时因空闲被释放。观看页面可见期间为同一观看者重复发送相同 viewerId;停止观看后停止发送,过期心跳不再计为在线。",
|
|
7451
|
+
"http": "POST",
|
|
7452
|
+
"path": "/browser/v1/sessions/{sessionId}/viewer",
|
|
7453
|
+
"streaming": "no",
|
|
7454
|
+
"pagination": false,
|
|
7455
|
+
"pathParams": [
|
|
7456
|
+
{
|
|
7457
|
+
"name": "sessionId",
|
|
7458
|
+
"sdkName": "sessionId",
|
|
7459
|
+
"description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
|
|
7460
|
+
}
|
|
7461
|
+
],
|
|
7462
|
+
"query": [],
|
|
7463
|
+
"body": {
|
|
7464
|
+
"required": true,
|
|
7465
|
+
"fields": [
|
|
7466
|
+
{
|
|
7467
|
+
"name": "viewerId",
|
|
7468
|
+
"type": "string",
|
|
7469
|
+
"required": true,
|
|
7470
|
+
"description": "当前观看者的稳定标识;同一观看者重复心跳应使用相同值,长度为 1–128 个 UTF-16 代码单元。"
|
|
7471
|
+
}
|
|
7472
|
+
]
|
|
7473
|
+
}
|
|
7474
|
+
},
|
|
7475
|
+
{
|
|
7476
|
+
"resource": "canvas.canvases",
|
|
7477
|
+
"method": "list",
|
|
7478
|
+
"summary": "List canvases",
|
|
7479
|
+
"description": "Discover canvases in the API key's organization and obtain ids for retrieval or editing. Results are ordered by updated_at from newest to oldest. limit is 1–100 and defaults to 50; omit cursor for the first page, then copy next_cursor into the next request until it is null. Deleted canvases are unavailable.",
|
|
7480
|
+
"http": "GET",
|
|
7481
|
+
"path": "/canvas/v1/canvases",
|
|
7482
|
+
"streaming": "no",
|
|
7483
|
+
"pagination": true,
|
|
7484
|
+
"pathParams": [],
|
|
7485
|
+
"query": [
|
|
7486
|
+
{
|
|
7487
|
+
"name": "limit",
|
|
7488
|
+
"type": "integer",
|
|
7489
|
+
"required": false,
|
|
7490
|
+
"description": "Maximum canvases to return per page, from 1 to 100; defaults to 50 when omitted."
|
|
7491
|
+
},
|
|
7492
|
+
{
|
|
7493
|
+
"name": "cursor",
|
|
7494
|
+
"type": "string",
|
|
7495
|
+
"required": false,
|
|
7496
|
+
"description": "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
|
|
7497
|
+
}
|
|
7498
|
+
]
|
|
7499
|
+
},
|
|
7500
|
+
{
|
|
7501
|
+
"resource": "canvas.canvases",
|
|
7502
|
+
"method": "create",
|
|
7503
|
+
"summary": "Create canvas",
|
|
7504
|
+
"description": "Create a blank design canvas in the API key's organization before drawing with praxis.canvas.canvases.execute. Send an optional name of at most 200 characters; omitting name uses Untitled. Each successful call creates a new canvas and returns its id and viewer_url with HTTP 201; save the id for subsequent reads, edits and deletion.",
|
|
7505
|
+
"http": "POST",
|
|
7506
|
+
"path": "/canvas/v1/canvases",
|
|
7507
|
+
"streaming": "no",
|
|
7508
|
+
"pagination": false,
|
|
7509
|
+
"pathParams": [],
|
|
7510
|
+
"query": [],
|
|
7511
|
+
"body": {
|
|
7512
|
+
"required": false,
|
|
7513
|
+
"fields": [
|
|
7514
|
+
{
|
|
7515
|
+
"name": "name",
|
|
7516
|
+
"type": "string",
|
|
7517
|
+
"required": false,
|
|
7518
|
+
"description": "Display name for the new canvas, at most 200 characters; omission uses Untitled."
|
|
7519
|
+
}
|
|
7520
|
+
]
|
|
7521
|
+
}
|
|
7522
|
+
},
|
|
7523
|
+
{
|
|
7524
|
+
"resource": "canvas.canvases",
|
|
7525
|
+
"method": "delete",
|
|
7526
|
+
"summary": "Delete canvas",
|
|
7527
|
+
"description": "Permanently delete a canvas and its design content when it is no longer needed. Obtain canvas_id from create or list and confirm the target before calling; deletion cannot be undone. HTTP 200 confirms deletion with deleted=true. Subsequent access returns CANVAS_NOT_FOUND, as it does for a missing canvas or one outside the API key's organization.",
|
|
7528
|
+
"http": "DELETE",
|
|
7529
|
+
"path": "/canvas/v1/canvases/{canvas_id}",
|
|
7530
|
+
"streaming": "no",
|
|
7531
|
+
"pagination": false,
|
|
7532
|
+
"pathParams": [
|
|
7533
|
+
{
|
|
7534
|
+
"name": "canvas_id",
|
|
7535
|
+
"sdkName": "canvas_id",
|
|
7536
|
+
"description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
|
|
7537
|
+
}
|
|
7538
|
+
],
|
|
7539
|
+
"query": []
|
|
7540
|
+
},
|
|
7541
|
+
{
|
|
7542
|
+
"resource": "canvas.canvases",
|
|
7543
|
+
"method": "retrieve",
|
|
7544
|
+
"summary": "Retrieve canvas",
|
|
7545
|
+
"description": "Inspect the current canvas before editing, like Pencil get_app_state. The response adds top-level node summaries in canvas order and reusable component ids to the canvas metadata. Use these ids in nodes.list, images.list or an execute script; use the returned version as expected_version to detect concurrent edits. Read full node content with nodes.list rather than guessing fields from these summaries.",
|
|
7546
|
+
"http": "GET",
|
|
7547
|
+
"path": "/canvas/v1/canvases/{canvas_id}",
|
|
7548
|
+
"streaming": "no",
|
|
7549
|
+
"pagination": false,
|
|
7550
|
+
"pathParams": [
|
|
7551
|
+
{
|
|
7552
|
+
"name": "canvas_id",
|
|
7553
|
+
"sdkName": "canvas_id",
|
|
7554
|
+
"description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
|
|
7555
|
+
}
|
|
7556
|
+
],
|
|
7557
|
+
"query": []
|
|
7558
|
+
},
|
|
7559
|
+
{
|
|
7560
|
+
"resource": "canvas.canvases.images",
|
|
7561
|
+
"method": "list",
|
|
7562
|
+
"summary": "Render canvas nodes",
|
|
7563
|
+
"description": "Render 1–4 nodes to inspect the visual result of a design edit. Use ids from retrieve, execute.created or execute.screenshots; scale defaults to 1 and accepts 0.25–4, and png is the only supported format. Unlike Figma, images contains inline data:image/png;base64,... URLs, not hosted image URLs; a null entry means no image is available for that id. Use nodes.list for editable node content instead of pixels.",
|
|
7564
|
+
"http": "GET",
|
|
7565
|
+
"path": "/canvas/v1/canvases/{canvas_id}/images",
|
|
7566
|
+
"streaming": "no",
|
|
7567
|
+
"pagination": false,
|
|
7568
|
+
"pathParams": [
|
|
7569
|
+
{
|
|
7570
|
+
"name": "canvas_id",
|
|
7571
|
+
"sdkName": "canvas_id",
|
|
7572
|
+
"description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
|
|
7573
|
+
}
|
|
7574
|
+
],
|
|
7575
|
+
"query": [
|
|
7576
|
+
{
|
|
7577
|
+
"name": "ids",
|
|
7578
|
+
"type": "string",
|
|
7579
|
+
"required": true,
|
|
7580
|
+
"description": "Comma-separated list of 1–4 node ids to render, from retrieve, execute.created or execute.screenshots."
|
|
7581
|
+
},
|
|
7582
|
+
{
|
|
7583
|
+
"name": "scale",
|
|
7584
|
+
"type": "number",
|
|
7585
|
+
"required": false,
|
|
7586
|
+
"description": "Output pixel scale relative to canvas dimensions, from 0.25 to 4 inclusive; defaults to 1 when omitted."
|
|
7587
|
+
},
|
|
7588
|
+
{
|
|
7589
|
+
"name": "format",
|
|
7590
|
+
"type": "string",
|
|
7591
|
+
"enum": [
|
|
7592
|
+
"png"
|
|
7593
|
+
],
|
|
7594
|
+
"required": false,
|
|
7595
|
+
"description": "Image encoding; png produces a PNG data URL and is the only supported value. Omit to use png."
|
|
7596
|
+
}
|
|
7597
|
+
]
|
|
7598
|
+
},
|
|
7599
|
+
{
|
|
7600
|
+
"resource": "canvas.canvases.nodes",
|
|
7601
|
+
"method": "list",
|
|
7602
|
+
"summary": "Read canvas nodes",
|
|
7603
|
+
"description": "Read node documents for inspection before changing individual nodes. Supply 1–100 comma-separated node ids from retrieve or execute, or instance paths such as a/b. depth is an integer at least 0; omit it for complete subtrees. Each requested id maps to a document wrapper or null if absent. Unlike Figma, document contains a Pencil .pen 2.21 node, not a Figma node. For top-level summaries use canvases.retrieve; for pixels use images.list.",
|
|
7604
|
+
"http": "GET",
|
|
7605
|
+
"path": "/canvas/v1/canvases/{canvas_id}/nodes",
|
|
7606
|
+
"streaming": "no",
|
|
7607
|
+
"pagination": false,
|
|
7608
|
+
"pathParams": [
|
|
7609
|
+
{
|
|
7610
|
+
"name": "canvas_id",
|
|
7611
|
+
"sdkName": "canvas_id",
|
|
7612
|
+
"description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
|
|
7613
|
+
}
|
|
7614
|
+
],
|
|
7615
|
+
"query": [
|
|
7616
|
+
{
|
|
7617
|
+
"name": "ids",
|
|
7618
|
+
"type": "string",
|
|
7619
|
+
"required": true,
|
|
7620
|
+
"description": "Comma-separated list of 1–100 node ids from retrieve or execute, or instance paths such as a/b; missing ids map to null."
|
|
7621
|
+
},
|
|
7622
|
+
{
|
|
7623
|
+
"name": "depth",
|
|
7624
|
+
"type": "integer",
|
|
7625
|
+
"required": false,
|
|
7626
|
+
"description": "Maximum child depth below each requested node, as an integer at least 0; 0 returns the node without descendants, and omission returns the complete subtree."
|
|
7627
|
+
}
|
|
7628
|
+
]
|
|
7629
|
+
},
|
|
7630
|
+
{
|
|
7631
|
+
"resource": "canvas.canvases",
|
|
7632
|
+
"method": "execute",
|
|
7633
|
+
"summary": "Execute canvas script",
|
|
7634
|
+
"description": "Draw or edit a canvas atomically with a synchronous Pencil execute script. First create a canvas with praxis.canvas.canvases.create and use its id as canvas_id; inspect an existing canvas with retrieve before modifying it. Send exactly one of script (new source) or edit_id (a failed script to patch using edits). Unlike Figma REST, :execute writes design content; nodes use Pencil .pen schema 2.21 (frame/group/rectangle/ellipse/polygon/path/text/icon/ref/note), not Figma node fields.\n\nThe root variable is document. Synchronous functions are Insert / Copy / Update / Replace / Move / Delete / SetVariables / Get / GetVariables / FindEmptySpace / Print / TakeScreenshot; globals persist for the next call. A first frame needs only this body.script:\n\n```js\nconst f = Insert(document, { type: \"frame\", name: \"Hero\", width: 1200, layout: \"vertical\", padding: 48, fill: \"#FFFFFF\" }); Insert(f, { type: \"text\", content: \"Hello\", fontSize: 32, fill: \"#111111\" }); Print(f)\n```\n\nUse viewer_url to watch the result in Console. TakeScreenshot records node ids in screenshots; call images.list with those ids to fetch PNG data URLs. See the [Canvas execute reference](https://deepraxis.com/en/docs/api/native/canvas/execute) for request fields and results, and the [Canvas node reference](https://deepraxis.com/en/docs/developers/canvas/nodes) for node content.\n\nA successful write increments version by one. Optionally set expected_version to the version from retrieve or nodes.list; on 409 REVISION_CONFLICT read again, merge your intent and retry with the current version. Every script failure rolls back all writes. On 400 SCRIPT_ERROR, SCRIPT_LIMIT or OPS_REJECTED, use error.details.edit_id plus edits to repair and rerun the stored source without resending the entire script; details may include line, column and rejection. On 400 EDIT_EXPIRED the saved script is older than ten minutes: submit a corrected new script. On 429 CANVAS_BUSY, more than four calls are queued for this canvas: wait for pending calls before retrying.\n",
|
|
7635
|
+
"http": "POST",
|
|
7636
|
+
"path": "/canvas/v1/canvases/{canvas_id}:execute",
|
|
7637
|
+
"streaming": "no",
|
|
7638
|
+
"pagination": false,
|
|
7639
|
+
"pathParams": [
|
|
7640
|
+
{
|
|
7641
|
+
"name": "canvas_id",
|
|
7642
|
+
"sdkName": "canvas_id",
|
|
7643
|
+
"description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
|
|
7644
|
+
}
|
|
7645
|
+
],
|
|
7646
|
+
"query": [],
|
|
7647
|
+
"body": {
|
|
7648
|
+
"required": true,
|
|
7649
|
+
"fields": [
|
|
7650
|
+
{
|
|
7651
|
+
"name": "script",
|
|
7652
|
+
"type": "string",
|
|
7653
|
+
"required": false,
|
|
7654
|
+
"description": "New synchronous Pencil execute source using document as the root; provide this or edit_id, never both. See the operation's first-frame example."
|
|
7655
|
+
},
|
|
7656
|
+
{
|
|
7657
|
+
"name": "edit_id",
|
|
7658
|
+
"type": "string",
|
|
7659
|
+
"required": false,
|
|
7660
|
+
"description": "Saved failed-script identifier from error.details.edit_id; use with edits instead of script within ten minutes of the failure."
|
|
7661
|
+
},
|
|
7662
|
+
{
|
|
7663
|
+
"name": "edits",
|
|
7664
|
+
"type": "array",
|
|
7665
|
+
"itemType": "object",
|
|
7666
|
+
"required": false,
|
|
7667
|
+
"description": "Text replacements applied to the source identified by edit_id before rerunning; use error line, column or rejection to choose the correction."
|
|
7668
|
+
},
|
|
7669
|
+
{
|
|
7670
|
+
"name": "expected_version",
|
|
7671
|
+
"type": "string",
|
|
7672
|
+
"required": false,
|
|
7673
|
+
"description": "Revision from retrieve, nodes.list or the previous execute response; omit for an unguarded write. A mismatch returns 409 REVISION_CONFLICT with details.version."
|
|
7674
|
+
}
|
|
7675
|
+
]
|
|
7676
|
+
}
|
|
7677
|
+
},
|
|
7678
|
+
{
|
|
7679
|
+
"resource": "cut.exports",
|
|
7680
|
+
"method": "retrieve",
|
|
7681
|
+
"summary": "Retrieve video export",
|
|
7682
|
+
"description": "Poll an export id returned by projects.exports.create or list to observe render progress. queued, fetching, rendering, stitching and saving are in progress; done provides asset in the target library, failed provides error, and canceled means the job stopped. Only done confirms a usable output asset.",
|
|
7683
|
+
"http": "GET",
|
|
7684
|
+
"path": "/cut/v1/exports/{export_id}",
|
|
7685
|
+
"streaming": "no",
|
|
7686
|
+
"pagination": false,
|
|
7687
|
+
"pathParams": [
|
|
7688
|
+
{
|
|
7689
|
+
"name": "export_id",
|
|
7690
|
+
"sdkName": "export_id",
|
|
7691
|
+
"description": "Export identifier returned by its create or list operation; use the id, not a display name."
|
|
7692
|
+
}
|
|
7693
|
+
],
|
|
7694
|
+
"query": []
|
|
7695
|
+
},
|
|
7696
|
+
{
|
|
7697
|
+
"resource": "cut.exports",
|
|
7698
|
+
"method": "cancel",
|
|
7699
|
+
"summary": "Cancel video export",
|
|
7700
|
+
"description": "Request cancellation of an export obtained from projects.exports.create or list when its output is no longer needed. Read the returned job status and retrieve it to confirm the terminal outcome; do not interpret a cancellation request as successful rendering.",
|
|
7701
|
+
"http": "POST",
|
|
7702
|
+
"path": "/cut/v1/exports/{export_id}:cancel",
|
|
7703
|
+
"streaming": "no",
|
|
7704
|
+
"pagination": false,
|
|
7705
|
+
"pathParams": [
|
|
7706
|
+
{
|
|
7707
|
+
"name": "export_id",
|
|
7708
|
+
"sdkName": "export_id",
|
|
7709
|
+
"description": "Export identifier returned by its create or list operation; use the id, not a display name."
|
|
7710
|
+
}
|
|
7711
|
+
],
|
|
7712
|
+
"query": []
|
|
7713
|
+
},
|
|
7714
|
+
{
|
|
7715
|
+
"resource": "cut.projects",
|
|
7716
|
+
"method": "list",
|
|
7717
|
+
"summary": "List projects",
|
|
7718
|
+
"description": "Discover projects owned by the API key organization and obtain project_id values. Results default to active projects ordered by updateTime descending; use filter state = \"deleted\" to find retained deleted projects for undelete. Continue with next_page_token as page_token until the token is absent.",
|
|
7719
|
+
"http": "GET",
|
|
7720
|
+
"path": "/cut/v1/projects",
|
|
7721
|
+
"streaming": "no",
|
|
7722
|
+
"pagination": false,
|
|
7723
|
+
"pathParams": [],
|
|
7724
|
+
"query": [
|
|
7725
|
+
{
|
|
7726
|
+
"name": "page_size",
|
|
7727
|
+
"type": "integer",
|
|
7728
|
+
"required": false,
|
|
7729
|
+
"description": "Maximum resources in one page, from 1 to 100; defaults to 50."
|
|
7730
|
+
},
|
|
7731
|
+
{
|
|
7732
|
+
"name": "page_token",
|
|
7733
|
+
"type": "string",
|
|
7734
|
+
"required": false,
|
|
7735
|
+
"description": "Opaque next_page_token from the preceding page; omit on the first request."
|
|
7736
|
+
},
|
|
7737
|
+
{
|
|
7738
|
+
"name": "filter",
|
|
7739
|
+
"type": "string",
|
|
7740
|
+
"required": false,
|
|
7741
|
+
"description": "Optional resource filter; projects supports state = \"active\" or state = \"deleted\"."
|
|
7742
|
+
},
|
|
7743
|
+
{
|
|
7744
|
+
"name": "order_by",
|
|
7745
|
+
"type": "string",
|
|
7746
|
+
"required": false,
|
|
7747
|
+
"description": "Optional ordering expression; projects supports updateTime desc."
|
|
7748
|
+
}
|
|
7749
|
+
]
|
|
7750
|
+
},
|
|
7751
|
+
{
|
|
7752
|
+
"resource": "cut.projects",
|
|
7753
|
+
"method": "create",
|
|
7754
|
+
"summary": "Create project",
|
|
7755
|
+
"description": "Create a blank editing project in the API key organization before writing a script. First obtain accessible library ids from praxis.media; bindings must include exactly one read_write library with default_upload true. Each call creates a new project and returns HTTP 201; save its id for execute, state and timeline calls. All editing positions use seconds.",
|
|
7756
|
+
"http": "POST",
|
|
7757
|
+
"path": "/cut/v1/projects",
|
|
7758
|
+
"streaming": "no",
|
|
7759
|
+
"pagination": false,
|
|
7760
|
+
"pathParams": [],
|
|
7761
|
+
"query": [],
|
|
7762
|
+
"body": {
|
|
7763
|
+
"required": true,
|
|
7764
|
+
"fields": [
|
|
7765
|
+
{
|
|
7766
|
+
"name": "name",
|
|
7767
|
+
"type": "string",
|
|
7768
|
+
"required": true,
|
|
7769
|
+
"description": "Human-readable project name; required and must contain non-whitespace text."
|
|
7770
|
+
},
|
|
7771
|
+
{
|
|
7772
|
+
"name": "labels",
|
|
7773
|
+
"type": "object",
|
|
7774
|
+
"required": false,
|
|
7775
|
+
"description": "User-defined string labels for organizing projects; label keys retain their original spelling."
|
|
7776
|
+
},
|
|
7777
|
+
{
|
|
7778
|
+
"name": "settings",
|
|
7779
|
+
"type": "object",
|
|
7780
|
+
"required": true,
|
|
7781
|
+
"description": "Dimensions and frame rate for a new editing project."
|
|
7782
|
+
},
|
|
7783
|
+
{
|
|
7784
|
+
"name": "bindings",
|
|
7785
|
+
"type": "array",
|
|
7786
|
+
"itemType": "object",
|
|
7787
|
+
"required": true,
|
|
7788
|
+
"description": "Accessible library bindings; exactly one read_write entry must have default_upload true."
|
|
7789
|
+
}
|
|
7790
|
+
]
|
|
7791
|
+
}
|
|
7792
|
+
},
|
|
7793
|
+
{
|
|
7794
|
+
"resource": "cut.projects",
|
|
7795
|
+
"method": "delete",
|
|
7796
|
+
"summary": "Delete project",
|
|
7797
|
+
"description": "Soft-delete a project selected from projects.list. The project is retained for seven days until purge_time and can be restored with undelete before that deadline. Deleted projects cannot be edited; list with filter state = \"deleted\" to locate retained projects.",
|
|
7798
|
+
"http": "DELETE",
|
|
7799
|
+
"path": "/cut/v1/projects/{project_id}",
|
|
7800
|
+
"streaming": "no",
|
|
7801
|
+
"pagination": false,
|
|
7802
|
+
"pathParams": [
|
|
7803
|
+
{
|
|
7804
|
+
"name": "project_id",
|
|
7805
|
+
"sdkName": "project_id",
|
|
7806
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
7807
|
+
}
|
|
7808
|
+
],
|
|
7809
|
+
"query": []
|
|
7810
|
+
},
|
|
7811
|
+
{
|
|
7812
|
+
"resource": "cut.projects",
|
|
7813
|
+
"method": "retrieve",
|
|
7814
|
+
"summary": "Retrieve project",
|
|
7815
|
+
"description": "Inspect project metadata, settings and library bindings before editing. Copy id from projects.create or list; expand=timeline,exports,versions includes selected related resources. The expanded timeline uses seconds and the returned revision can guard a later execute call with expected_revision.",
|
|
7816
|
+
"http": "GET",
|
|
7817
|
+
"path": "/cut/v1/projects/{project_id}",
|
|
7818
|
+
"streaming": "no",
|
|
7819
|
+
"pagination": false,
|
|
7820
|
+
"pathParams": [
|
|
7821
|
+
{
|
|
7822
|
+
"name": "project_id",
|
|
7823
|
+
"sdkName": "project_id",
|
|
7824
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
7825
|
+
}
|
|
7826
|
+
],
|
|
7827
|
+
"query": [
|
|
7828
|
+
{
|
|
7829
|
+
"name": "expand",
|
|
7830
|
+
"type": "string",
|
|
7831
|
+
"required": false,
|
|
7832
|
+
"description": "Comma-separated expansions: timeline includes clips, exports includes render jobs, versions includes saved snapshots."
|
|
7833
|
+
}
|
|
7834
|
+
]
|
|
7835
|
+
},
|
|
7836
|
+
{
|
|
7837
|
+
"resource": "cut.projects",
|
|
7838
|
+
"method": "update",
|
|
7839
|
+
"summary": "Update project metadata",
|
|
7840
|
+
"description": "Change the project display name or replace its labels by naming those fields in update_mask. Use execute for clip or track edits. Each successful update commits a new revision; labels are replaced as a whole when selected, so read and merge existing labels before overwriting them.",
|
|
7841
|
+
"http": "PATCH",
|
|
7842
|
+
"path": "/cut/v1/projects/{project_id}",
|
|
7843
|
+
"streaming": "no",
|
|
7844
|
+
"pagination": false,
|
|
7845
|
+
"pathParams": [
|
|
7846
|
+
{
|
|
7847
|
+
"name": "project_id",
|
|
7848
|
+
"sdkName": "project_id",
|
|
7849
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
7850
|
+
}
|
|
7851
|
+
],
|
|
7852
|
+
"query": [],
|
|
7853
|
+
"body": {
|
|
7854
|
+
"required": true,
|
|
7855
|
+
"fields": [
|
|
7856
|
+
{
|
|
7857
|
+
"name": "name",
|
|
7858
|
+
"type": "string",
|
|
7859
|
+
"required": false,
|
|
7860
|
+
"description": "Replacement display name when update_mask includes name."
|
|
7861
|
+
},
|
|
7862
|
+
{
|
|
7863
|
+
"name": "labels",
|
|
7864
|
+
"type": "object",
|
|
7865
|
+
"required": false,
|
|
7866
|
+
"description": "User-defined string labels for organizing projects; label keys retain their original spelling."
|
|
7867
|
+
},
|
|
7868
|
+
{
|
|
7869
|
+
"name": "update_mask",
|
|
7870
|
+
"type": "array",
|
|
7871
|
+
"itemType": "string",
|
|
7872
|
+
"enum": [
|
|
7873
|
+
"name",
|
|
7874
|
+
"labels"
|
|
7875
|
+
],
|
|
7876
|
+
"required": true,
|
|
7877
|
+
"description": "Metadata fields to replace; name changes the display name and labels replaces all labels."
|
|
7878
|
+
}
|
|
7879
|
+
]
|
|
7880
|
+
}
|
|
7881
|
+
},
|
|
7882
|
+
{
|
|
7883
|
+
"resource": "cut.projects.analysis",
|
|
7884
|
+
"method": "create",
|
|
7885
|
+
"summary": "Analyze project media",
|
|
7886
|
+
"description": "Request silence, filler-word or scene analysis for selected bound assets before editing. Omit media to select project sources; ranges returned in segments use source seconds. A pending result is not completion: use retry_after_sec before checking again, and inspect failed or unsupported asset results before deciding which edits are possible.",
|
|
7887
|
+
"http": "POST",
|
|
7888
|
+
"path": "/cut/v1/projects/{project_id}/analysis",
|
|
7889
|
+
"streaming": "no",
|
|
7890
|
+
"pagination": false,
|
|
7891
|
+
"pathParams": [
|
|
7892
|
+
{
|
|
7893
|
+
"name": "project_id",
|
|
7894
|
+
"sdkName": "project_id",
|
|
7895
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
7896
|
+
}
|
|
7897
|
+
],
|
|
7898
|
+
"query": [],
|
|
7899
|
+
"body": {
|
|
7900
|
+
"required": true,
|
|
7901
|
+
"fields": [
|
|
7902
|
+
{
|
|
7903
|
+
"name": "media",
|
|
7904
|
+
"type": "array",
|
|
7905
|
+
"itemType": "object",
|
|
7906
|
+
"required": false,
|
|
7907
|
+
"description": "Bound-library assets to analyze; omission selects project media."
|
|
7908
|
+
},
|
|
7909
|
+
{
|
|
7910
|
+
"name": "kinds",
|
|
7911
|
+
"type": "array",
|
|
7912
|
+
"itemType": "string",
|
|
7913
|
+
"enum": [
|
|
7914
|
+
"silence",
|
|
7915
|
+
"filler",
|
|
7916
|
+
"scenes"
|
|
7917
|
+
],
|
|
7918
|
+
"required": true,
|
|
7919
|
+
"description": "Analysis types to request for the selected source assets."
|
|
7920
|
+
}
|
|
7921
|
+
]
|
|
7922
|
+
}
|
|
7923
|
+
},
|
|
7924
|
+
{
|
|
7925
|
+
"resource": "cut.projects.bindings",
|
|
7926
|
+
"method": "list",
|
|
7927
|
+
"summary": "List library bindings",
|
|
7928
|
+
"description": "Discover the named media libraries available to this project before selecting source assets or an import/export destination. read bindings supply source assets; read_write bindings also accept uploads. Exactly one writable binding supplies the default upload destination.",
|
|
7929
|
+
"http": "GET",
|
|
7930
|
+
"path": "/cut/v1/projects/{project_id}/bindings",
|
|
7931
|
+
"streaming": "no",
|
|
7932
|
+
"pagination": false,
|
|
7933
|
+
"pathParams": [
|
|
7934
|
+
{
|
|
7935
|
+
"name": "project_id",
|
|
7936
|
+
"sdkName": "project_id",
|
|
7937
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
7938
|
+
}
|
|
7939
|
+
],
|
|
7940
|
+
"query": []
|
|
7941
|
+
},
|
|
7942
|
+
{
|
|
7943
|
+
"resource": "cut.projects.bindings",
|
|
7944
|
+
"method": "create",
|
|
7945
|
+
"summary": "Bind media library",
|
|
7946
|
+
"description": "Attach an accessible media library to an existing project under a unique name. Obtain library_id from praxis.media and choose read for source-only access or read_write for imports and exports. The project must retain exactly one read_write binding with default_upload true after the change.",
|
|
7947
|
+
"http": "POST",
|
|
7948
|
+
"path": "/cut/v1/projects/{project_id}/bindings",
|
|
7949
|
+
"streaming": "no",
|
|
7950
|
+
"pagination": false,
|
|
7951
|
+
"pathParams": [
|
|
7952
|
+
{
|
|
7953
|
+
"name": "project_id",
|
|
7954
|
+
"sdkName": "project_id",
|
|
7955
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
7956
|
+
}
|
|
7957
|
+
],
|
|
7958
|
+
"query": [],
|
|
7959
|
+
"body": {
|
|
7960
|
+
"required": true,
|
|
7961
|
+
"fields": [
|
|
7962
|
+
{
|
|
7963
|
+
"name": "binding",
|
|
7964
|
+
"type": "object",
|
|
7965
|
+
"required": true,
|
|
7966
|
+
"description": "A named project link to a media library. Exactly one read_write binding must be default_upload."
|
|
7967
|
+
}
|
|
7968
|
+
]
|
|
7969
|
+
}
|
|
7970
|
+
},
|
|
7971
|
+
{
|
|
7972
|
+
"resource": "cut.projects.bindings",
|
|
7973
|
+
"method": "delete",
|
|
7974
|
+
"summary": "Remove library binding",
|
|
7975
|
+
"description": "Detach a library alias obtained from bindings.list after removing all timeline clips that reference its library. BINDING_IN_USE returns 409 while references remain; inspect timeline and edit those clips first. Removal must preserve the one writable default upload binding.",
|
|
7976
|
+
"http": "DELETE",
|
|
7977
|
+
"path": "/cut/v1/projects/{project_id}/bindings/{name}",
|
|
7978
|
+
"streaming": "no",
|
|
7979
|
+
"pagination": false,
|
|
7980
|
+
"pathParams": [
|
|
7981
|
+
{
|
|
7982
|
+
"name": "project_id",
|
|
7983
|
+
"sdkName": "project_id",
|
|
7984
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
7985
|
+
},
|
|
7986
|
+
{
|
|
7987
|
+
"name": "name",
|
|
7988
|
+
"sdkName": "name",
|
|
7989
|
+
"description": "Project-local binding alias from bindings.list; detach only after removing all clips that reference its library."
|
|
7990
|
+
}
|
|
7991
|
+
],
|
|
7992
|
+
"query": []
|
|
7993
|
+
},
|
|
7994
|
+
{
|
|
7995
|
+
"resource": "cut.projects.exports",
|
|
7996
|
+
"method": "list",
|
|
7997
|
+
"summary": "List project exports",
|
|
7998
|
+
"description": "Find export jobs associated with this project before polling or canceling a render. Copy an export id into praxis.cut.exports.retrieve or cancel. Continue with next_page_token as page_token when present; queued or in-progress jobs have not produced a final media asset.",
|
|
7999
|
+
"http": "GET",
|
|
8000
|
+
"path": "/cut/v1/projects/{project_id}/exports",
|
|
8001
|
+
"streaming": "no",
|
|
8002
|
+
"pagination": false,
|
|
8003
|
+
"pathParams": [
|
|
8004
|
+
{
|
|
8005
|
+
"name": "project_id",
|
|
8006
|
+
"sdkName": "project_id",
|
|
8007
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8008
|
+
}
|
|
8009
|
+
],
|
|
8010
|
+
"query": [
|
|
8011
|
+
{
|
|
8012
|
+
"name": "page_size",
|
|
8013
|
+
"type": "integer",
|
|
8014
|
+
"required": false,
|
|
8015
|
+
"description": "Maximum resources in one page, from 1 to 100; defaults to 50."
|
|
8016
|
+
},
|
|
8017
|
+
{
|
|
8018
|
+
"name": "page_token",
|
|
8019
|
+
"type": "string",
|
|
8020
|
+
"required": false,
|
|
8021
|
+
"description": "Opaque next_page_token from the preceding page; omit on the first request."
|
|
8022
|
+
},
|
|
8023
|
+
{
|
|
8024
|
+
"name": "filter",
|
|
8025
|
+
"type": "string",
|
|
8026
|
+
"required": false,
|
|
8027
|
+
"description": "Optional resource filter; projects supports state = \"active\" or state = \"deleted\"."
|
|
8028
|
+
},
|
|
8029
|
+
{
|
|
8030
|
+
"name": "order_by",
|
|
8031
|
+
"type": "string",
|
|
8032
|
+
"required": false,
|
|
8033
|
+
"description": "Optional ordering expression; projects supports updateTime desc."
|
|
8034
|
+
}
|
|
8035
|
+
]
|
|
8036
|
+
},
|
|
8037
|
+
{
|
|
8038
|
+
"resource": "cut.projects.exports",
|
|
8039
|
+
"method": "create",
|
|
8040
|
+
"summary": "Create video export",
|
|
8041
|
+
"description": "Start an asynchronous video export from the project into a writable bound media library. Choose binding from bindings.list or omit it for default_upload, and optionally select revision and output settings. HTTP 202 only accepts the job; poll praxis.cut.exports.retrieve using the returned id until status is done, failed or canceled. On done, asset identifies the video written back to praxis.media. Each call starts a job, so retrieve a known job before retrying a submission.",
|
|
8042
|
+
"http": "POST",
|
|
8043
|
+
"path": "/cut/v1/projects/{project_id}/exports",
|
|
8044
|
+
"streaming": "no",
|
|
8045
|
+
"pagination": false,
|
|
8046
|
+
"pathParams": [
|
|
8047
|
+
{
|
|
8048
|
+
"name": "project_id",
|
|
8049
|
+
"sdkName": "project_id",
|
|
8050
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8051
|
+
}
|
|
8052
|
+
],
|
|
8053
|
+
"query": [],
|
|
8054
|
+
"body": {
|
|
8055
|
+
"required": true,
|
|
8056
|
+
"fields": [
|
|
8057
|
+
{
|
|
8058
|
+
"name": "output",
|
|
8059
|
+
"type": "object",
|
|
8060
|
+
"required": false,
|
|
8061
|
+
"description": "Rendering options for an exported video."
|
|
8062
|
+
},
|
|
8063
|
+
{
|
|
8064
|
+
"name": "binding",
|
|
8065
|
+
"type": "string",
|
|
8066
|
+
"required": false,
|
|
8067
|
+
"description": "Writable binding name used as the export destination; omission uses default_upload."
|
|
8068
|
+
},
|
|
8069
|
+
{
|
|
8070
|
+
"name": "revision",
|
|
8071
|
+
"type": "integer",
|
|
8072
|
+
"required": false,
|
|
8073
|
+
"description": "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
|
|
8074
|
+
}
|
|
8075
|
+
]
|
|
8076
|
+
}
|
|
8077
|
+
},
|
|
8078
|
+
{
|
|
8079
|
+
"resource": "cut.projects.frames",
|
|
8080
|
+
"method": "list",
|
|
8081
|
+
"summary": "Render preview frames",
|
|
8082
|
+
"description": "Review the visual result at one or more project times without creating an export. Pass comma-separated seconds in at, such as 12,15.5; scale changes preview size and revision selects a committed project revision. Fetch the returned image URLs before expires_at; render again when they expire.",
|
|
8083
|
+
"http": "GET",
|
|
8084
|
+
"path": "/cut/v1/projects/{project_id}/frames",
|
|
8085
|
+
"streaming": "no",
|
|
8086
|
+
"pagination": false,
|
|
8087
|
+
"pathParams": [
|
|
8088
|
+
{
|
|
8089
|
+
"name": "project_id",
|
|
8090
|
+
"sdkName": "project_id",
|
|
8091
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8092
|
+
}
|
|
8093
|
+
],
|
|
8094
|
+
"query": [
|
|
8095
|
+
{
|
|
8096
|
+
"name": "at",
|
|
8097
|
+
"type": "string",
|
|
8098
|
+
"required": true,
|
|
8099
|
+
"description": "Required comma-separated non-negative project times in seconds, for example 12,15.5."
|
|
8100
|
+
},
|
|
8101
|
+
{
|
|
8102
|
+
"name": "scale",
|
|
8103
|
+
"type": "number",
|
|
8104
|
+
"required": false,
|
|
8105
|
+
"description": "Positive image size multiplier; 0.5 renders at half the project dimensions."
|
|
8106
|
+
},
|
|
8107
|
+
{
|
|
8108
|
+
"name": "revision",
|
|
8109
|
+
"type": "integer",
|
|
8110
|
+
"required": false,
|
|
8111
|
+
"description": "Optional committed project revision from state or execute; omission selects the current revision."
|
|
8112
|
+
}
|
|
8113
|
+
]
|
|
8114
|
+
},
|
|
8115
|
+
{
|
|
8116
|
+
"resource": "cut.projects.media",
|
|
8117
|
+
"method": "import",
|
|
8118
|
+
"summary": "Import project media",
|
|
8119
|
+
"description": "Import a URL, data URI or existing file into a writable project media library. Select binding from bindings.list or omit it to use default_upload. Save library_id and asset_id from the result and use them as libraryId and assetId inside execute script media references; overwrites follow the source asset latest version.",
|
|
8120
|
+
"http": "POST",
|
|
8121
|
+
"path": "/cut/v1/projects/{project_id}/media:import",
|
|
8122
|
+
"streaming": "no",
|
|
8123
|
+
"pagination": false,
|
|
8124
|
+
"pathParams": [
|
|
8125
|
+
{
|
|
8126
|
+
"name": "project_id",
|
|
8127
|
+
"sdkName": "project_id",
|
|
8128
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8129
|
+
}
|
|
8130
|
+
],
|
|
8131
|
+
"query": [],
|
|
8132
|
+
"body": {
|
|
8133
|
+
"required": true,
|
|
8134
|
+
"fields": [
|
|
8135
|
+
{
|
|
8136
|
+
"name": "binding",
|
|
8137
|
+
"type": "string",
|
|
8138
|
+
"required": false,
|
|
8139
|
+
"description": "Writable binding name from project bindings; omission uses default_upload."
|
|
8140
|
+
},
|
|
8141
|
+
{
|
|
8142
|
+
"name": "source",
|
|
8143
|
+
"type": "object",
|
|
8144
|
+
"required": true,
|
|
8145
|
+
"description": "Exactly one input source for the imported asset."
|
|
8146
|
+
},
|
|
8147
|
+
{
|
|
8148
|
+
"name": "display_name",
|
|
8149
|
+
"type": "string",
|
|
8150
|
+
"required": false,
|
|
8151
|
+
"description": "Optional human-readable display name for the new media asset."
|
|
8152
|
+
}
|
|
8153
|
+
]
|
|
8154
|
+
}
|
|
8155
|
+
},
|
|
8156
|
+
{
|
|
8157
|
+
"resource": "cut.projects",
|
|
8158
|
+
"method": "retrieveState",
|
|
8159
|
+
"summary": "Read editing state",
|
|
8160
|
+
"description": "Read lightweight project context before composing an execute script. Returns current revision, rendering settings, track counts, library bindings and offline media count without individual clips. For complete clip documents or a selected time range, read timeline instead.",
|
|
8161
|
+
"http": "GET",
|
|
8162
|
+
"path": "/cut/v1/projects/{project_id}/state",
|
|
8163
|
+
"streaming": "no",
|
|
8164
|
+
"pagination": false,
|
|
8165
|
+
"pathParams": [
|
|
8166
|
+
{
|
|
8167
|
+
"name": "project_id",
|
|
8168
|
+
"sdkName": "project_id",
|
|
8169
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8170
|
+
}
|
|
8171
|
+
],
|
|
8172
|
+
"query": []
|
|
8173
|
+
},
|
|
8174
|
+
{
|
|
8175
|
+
"resource": "cut.projects",
|
|
8176
|
+
"method": "retrieveTimeline",
|
|
8177
|
+
"summary": "Read project timeline",
|
|
8178
|
+
"description": "Inspect clips and markers in a selected project range before editing. view=full returns structured tracks with all timeline positions in seconds; view=compact returns compact text for script context. from and to are seconds and tracks limits the selection to comma-separated track ids from state. Concurrent changes while preparing a full timeline return 409; retrieve the latest state and try the read again.",
|
|
8179
|
+
"http": "GET",
|
|
8180
|
+
"path": "/cut/v1/projects/{project_id}/timeline",
|
|
8181
|
+
"streaming": "no",
|
|
8182
|
+
"pagination": false,
|
|
8183
|
+
"pathParams": [
|
|
8184
|
+
{
|
|
8185
|
+
"name": "project_id",
|
|
8186
|
+
"sdkName": "project_id",
|
|
8187
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8188
|
+
}
|
|
8189
|
+
],
|
|
8190
|
+
"query": [
|
|
8191
|
+
{
|
|
8192
|
+
"name": "view",
|
|
8193
|
+
"type": "string",
|
|
8194
|
+
"enum": [
|
|
8195
|
+
"full",
|
|
8196
|
+
"compact"
|
|
8197
|
+
],
|
|
8198
|
+
"required": false,
|
|
8199
|
+
"description": "full returns structured clips; compact returns compact textual editing context."
|
|
8200
|
+
},
|
|
8201
|
+
{
|
|
8202
|
+
"name": "from",
|
|
8203
|
+
"type": "number",
|
|
8204
|
+
"required": false,
|
|
8205
|
+
"description": "Optional start of the selected project range in seconds; omit for the beginning."
|
|
8206
|
+
},
|
|
8207
|
+
{
|
|
8208
|
+
"name": "to",
|
|
8209
|
+
"type": "number",
|
|
8210
|
+
"required": false,
|
|
8211
|
+
"description": "Optional end of the selected project range in seconds; omit for the end."
|
|
8212
|
+
},
|
|
8213
|
+
{
|
|
8214
|
+
"name": "tracks",
|
|
8215
|
+
"type": "string",
|
|
8216
|
+
"required": false,
|
|
8217
|
+
"description": "Comma-separated track ids from state to include; omit to include every track."
|
|
7142
8218
|
}
|
|
7143
|
-
]
|
|
7144
|
-
"query": []
|
|
8219
|
+
]
|
|
7145
8220
|
},
|
|
7146
8221
|
{
|
|
7147
|
-
"resource": "
|
|
8222
|
+
"resource": "cut.projects.versions",
|
|
7148
8223
|
"method": "list",
|
|
7149
|
-
"summary": "
|
|
7150
|
-
"description": "
|
|
8224
|
+
"summary": "List saved versions",
|
|
8225
|
+
"description": "Find saved timeline snapshots for this project and obtain version_id values for restore. A saved version records its original revision; restoring it creates a new current revision rather than rewinding the revision counter. Continue with next_page_token as page_token until absent.",
|
|
7151
8226
|
"http": "GET",
|
|
7152
|
-
"path": "/
|
|
8227
|
+
"path": "/cut/v1/projects/{project_id}/versions",
|
|
7153
8228
|
"streaming": "no",
|
|
7154
8229
|
"pagination": false,
|
|
7155
8230
|
"pathParams": [
|
|
7156
8231
|
{
|
|
7157
|
-
"name": "
|
|
7158
|
-
"sdkName": "
|
|
7159
|
-
"description": "
|
|
8232
|
+
"name": "project_id",
|
|
8233
|
+
"sdkName": "project_id",
|
|
8234
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
7160
8235
|
}
|
|
7161
8236
|
],
|
|
7162
8237
|
"query": [
|
|
7163
8238
|
{
|
|
7164
|
-
"name": "
|
|
8239
|
+
"name": "page_size",
|
|
8240
|
+
"type": "integer",
|
|
8241
|
+
"required": false,
|
|
8242
|
+
"description": "Maximum resources in one page, from 1 to 100; defaults to 50."
|
|
8243
|
+
},
|
|
8244
|
+
{
|
|
8245
|
+
"name": "page_token",
|
|
7165
8246
|
"type": "string",
|
|
7166
8247
|
"required": false,
|
|
7167
|
-
"description": "
|
|
8248
|
+
"description": "Opaque next_page_token from the preceding page; omit on the first request."
|
|
7168
8249
|
},
|
|
7169
8250
|
{
|
|
7170
|
-
"name": "
|
|
7171
|
-
"type": "
|
|
8251
|
+
"name": "filter",
|
|
8252
|
+
"type": "string",
|
|
7172
8253
|
"required": false,
|
|
7173
|
-
"description": "
|
|
8254
|
+
"description": "Optional resource filter; projects supports state = \"active\" or state = \"deleted\"."
|
|
7174
8255
|
},
|
|
7175
8256
|
{
|
|
7176
|
-
"name": "
|
|
8257
|
+
"name": "order_by",
|
|
7177
8258
|
"type": "string",
|
|
7178
8259
|
"required": false,
|
|
7179
|
-
"description": "
|
|
8260
|
+
"description": "Optional ordering expression; projects supports updateTime desc."
|
|
7180
8261
|
}
|
|
7181
8262
|
]
|
|
7182
8263
|
},
|
|
7183
8264
|
{
|
|
7184
|
-
"resource": "
|
|
8265
|
+
"resource": "cut.projects.versions",
|
|
7185
8266
|
"method": "create",
|
|
7186
|
-
"summary": "
|
|
7187
|
-
"description": "
|
|
8267
|
+
"summary": "Save project version",
|
|
8268
|
+
"description": "Save the current project timeline as a named recovery point before a substantial edit. Supply an optional label or send an empty object; keep the returned version id for versions.restore. Saving a version does not publish a rendered asset; use projects.exports.create for video output.",
|
|
7188
8269
|
"http": "POST",
|
|
7189
|
-
"path": "/
|
|
8270
|
+
"path": "/cut/v1/projects/{project_id}/versions",
|
|
7190
8271
|
"streaming": "no",
|
|
7191
8272
|
"pagination": false,
|
|
7192
8273
|
"pathParams": [
|
|
7193
8274
|
{
|
|
7194
|
-
"name": "
|
|
7195
|
-
"sdkName": "
|
|
7196
|
-
"description": "
|
|
8275
|
+
"name": "project_id",
|
|
8276
|
+
"sdkName": "project_id",
|
|
8277
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
7197
8278
|
}
|
|
7198
8279
|
],
|
|
7199
8280
|
"query": [],
|
|
@@ -7201,84 +8282,97 @@ export const operations = [
|
|
|
7201
8282
|
"required": true,
|
|
7202
8283
|
"fields": [
|
|
7203
8284
|
{
|
|
7204
|
-
"name": "
|
|
8285
|
+
"name": "label",
|
|
7205
8286
|
"type": "string",
|
|
7206
|
-
"required": true,
|
|
7207
|
-
"description": "交给人工操作者的接管说明,可为空字符串。"
|
|
7208
|
-
},
|
|
7209
|
-
{
|
|
7210
|
-
"name": "timeoutMs",
|
|
7211
|
-
"type": "number",
|
|
7212
8287
|
"required": false,
|
|
7213
|
-
"description": "
|
|
8288
|
+
"description": "Human-readable snapshot label, such as Before captions."
|
|
7214
8289
|
}
|
|
7215
8290
|
]
|
|
7216
8291
|
}
|
|
7217
8292
|
},
|
|
7218
8293
|
{
|
|
7219
|
-
"resource": "
|
|
7220
|
-
"method": "
|
|
7221
|
-
"summary": "
|
|
7222
|
-
"description": "
|
|
8294
|
+
"resource": "cut.projects",
|
|
8295
|
+
"method": "execute",
|
|
8296
|
+
"summary": "Execute editing script",
|
|
8297
|
+
"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. Use AddTrack, Insert, Update, Delete, Split, Trim, Move, RippleDeleteRange, UpdateTrack, DeleteTrack, SetSettings, AddCaptionsFromTranscript and SetMarker for writes; GetTimeline, GetItem, FindItems, GetMedia, GetTranscript and GetAnalysis read editing context; Print emits text and Preview requests frame previews. All script times are seconds; script object fields use camelCase, for example `media: {libraryId, assetId}`. 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:\n\n```js\nconst t = AddTrack(\"video\");\nInsert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3});\nPrint(t);\n```",
|
|
7223
8298
|
"http": "POST",
|
|
7224
|
-
"path": "/
|
|
8299
|
+
"path": "/cut/v1/projects/{project_id}:execute",
|
|
7225
8300
|
"streaming": "no",
|
|
7226
8301
|
"pagination": false,
|
|
7227
8302
|
"pathParams": [
|
|
7228
8303
|
{
|
|
7229
|
-
"name": "
|
|
7230
|
-
"sdkName": "
|
|
7231
|
-
"description": "
|
|
8304
|
+
"name": "project_id",
|
|
8305
|
+
"sdkName": "project_id",
|
|
8306
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
7232
8307
|
}
|
|
7233
8308
|
],
|
|
7234
|
-
"query": []
|
|
8309
|
+
"query": [],
|
|
8310
|
+
"body": {
|
|
8311
|
+
"required": true,
|
|
8312
|
+
"fields": [
|
|
8313
|
+
{
|
|
8314
|
+
"name": "script",
|
|
8315
|
+
"type": "string",
|
|
8316
|
+
"required": false,
|
|
8317
|
+
"description": "Synchronous editing source using Cut execute functions; submit this or edit_id, never both. Script source is opaque: function names and object fields inside JavaScript use their documented camelCase spelling."
|
|
8318
|
+
},
|
|
8319
|
+
{
|
|
8320
|
+
"name": "edit_id",
|
|
8321
|
+
"type": "string",
|
|
8322
|
+
"required": false,
|
|
8323
|
+
"description": "Saved failed script identifier from error.details.edit_id; valid for ten minutes."
|
|
8324
|
+
},
|
|
8325
|
+
{
|
|
8326
|
+
"name": "edits",
|
|
8327
|
+
"type": "array",
|
|
8328
|
+
"itemType": "object",
|
|
8329
|
+
"required": false,
|
|
8330
|
+
"description": "Literal replacements applied to the saved source before rerunning."
|
|
8331
|
+
},
|
|
8332
|
+
{
|
|
8333
|
+
"name": "expected_revision",
|
|
8334
|
+
"type": "integer",
|
|
8335
|
+
"required": false,
|
|
8336
|
+
"description": "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
|
|
8337
|
+
}
|
|
8338
|
+
]
|
|
8339
|
+
}
|
|
7235
8340
|
},
|
|
7236
8341
|
{
|
|
7237
|
-
"resource": "
|
|
7238
|
-
"method": "
|
|
7239
|
-
"summary": "
|
|
7240
|
-
"description": "
|
|
7241
|
-
"http": "
|
|
7242
|
-
"path": "/
|
|
7243
|
-
"streaming": "
|
|
8342
|
+
"resource": "cut.projects",
|
|
8343
|
+
"method": "undelete",
|
|
8344
|
+
"summary": "Restore deleted project",
|
|
8345
|
+
"description": "Return a retained deleted project to active state before its purge_time. Obtain project_id from projects.list filtered to deleted projects. This restores the project, not an older timeline revision; use versions.restore when reverting editing content.",
|
|
8346
|
+
"http": "POST",
|
|
8347
|
+
"path": "/cut/v1/projects/{project_id}:undelete",
|
|
8348
|
+
"streaming": "no",
|
|
7244
8349
|
"pagination": false,
|
|
7245
8350
|
"pathParams": [
|
|
7246
8351
|
{
|
|
7247
|
-
"name": "
|
|
7248
|
-
"sdkName": "
|
|
7249
|
-
"description": "
|
|
8352
|
+
"name": "project_id",
|
|
8353
|
+
"sdkName": "project_id",
|
|
8354
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
7250
8355
|
}
|
|
7251
8356
|
],
|
|
7252
8357
|
"query": []
|
|
7253
8358
|
},
|
|
7254
8359
|
{
|
|
7255
|
-
"resource": "
|
|
7256
|
-
"method": "
|
|
7257
|
-
"summary": "
|
|
7258
|
-
"description": "
|
|
8360
|
+
"resource": "cut.versions",
|
|
8361
|
+
"method": "restore",
|
|
8362
|
+
"summary": "Restore saved version",
|
|
8363
|
+
"description": "Replace current editing content with a saved project snapshot selected from projects.versions.list. The restore commits a new transaction and revision while preserving the saved version for future use. Inspect the returned summary and timeline before further editing; a response revision conflict can follow a committed restore, so retrieve current state before retrying.",
|
|
7259
8364
|
"http": "POST",
|
|
7260
|
-
"path": "/
|
|
8365
|
+
"path": "/cut/v1/versions/{version_id}:restore",
|
|
7261
8366
|
"streaming": "no",
|
|
7262
8367
|
"pagination": false,
|
|
7263
8368
|
"pathParams": [
|
|
7264
8369
|
{
|
|
7265
|
-
"name": "
|
|
7266
|
-
"sdkName": "
|
|
7267
|
-
"description": "
|
|
8370
|
+
"name": "version_id",
|
|
8371
|
+
"sdkName": "version_id",
|
|
8372
|
+
"description": "Version identifier returned by its create or list operation; use the id, not a display name."
|
|
7268
8373
|
}
|
|
7269
8374
|
],
|
|
7270
|
-
"query": []
|
|
7271
|
-
"body": {
|
|
7272
|
-
"required": true,
|
|
7273
|
-
"fields": [
|
|
7274
|
-
{
|
|
7275
|
-
"name": "viewerId",
|
|
7276
|
-
"type": "string",
|
|
7277
|
-
"required": true,
|
|
7278
|
-
"description": "当前观看者的稳定标识;同一观看者重复心跳应使用相同值,长度为 1–128 个 UTF-16 代码单元。"
|
|
7279
|
-
}
|
|
7280
|
-
]
|
|
7281
|
-
}
|
|
8375
|
+
"query": []
|
|
7282
8376
|
},
|
|
7283
8377
|
{
|
|
7284
8378
|
"resource": "database.databases",
|
|
@@ -8379,6 +9473,35 @@ export const operations = [
|
|
|
8379
9473
|
],
|
|
8380
9474
|
"query": []
|
|
8381
9475
|
},
|
|
9476
|
+
{
|
|
9477
|
+
"resource": "file.files.contentLinks",
|
|
9478
|
+
"method": "revoke",
|
|
9479
|
+
"summary": "Revoke a file content link",
|
|
9480
|
+
"description": "Stop a previously issued content link from reading a file. Use file_id from file creation or listing and the token path component from a content URL (/c/<token>), not the complete URL. The caller must own the file and have write access; a read-only binding is refused. Revocation propagates through the capability deny list within 30 seconds; the file and other links remain available. Only current IAM capability tokens can be revoked; legacy content links expire at the migration deadline. Example body: {\"token\":\"<token from /c/>\"}.",
|
|
9481
|
+
"http": "POST",
|
|
9482
|
+
"path": "/file/v1/files/{file_id}/content_links:revoke",
|
|
9483
|
+
"streaming": "no",
|
|
9484
|
+
"pagination": false,
|
|
9485
|
+
"pathParams": [
|
|
9486
|
+
{
|
|
9487
|
+
"name": "file_id",
|
|
9488
|
+
"sdkName": "file_id",
|
|
9489
|
+
"description": "Tenant-owned file identifier returned by file creation or listing; the token must name this same file."
|
|
9490
|
+
}
|
|
9491
|
+
],
|
|
9492
|
+
"query": [],
|
|
9493
|
+
"body": {
|
|
9494
|
+
"required": true,
|
|
9495
|
+
"fields": [
|
|
9496
|
+
{
|
|
9497
|
+
"name": "token",
|
|
9498
|
+
"type": "string",
|
|
9499
|
+
"required": true,
|
|
9500
|
+
"description": "Signed token taken from the /c/ path component of a previously issued file content URL, without the host or /c/ prefix."
|
|
9501
|
+
}
|
|
9502
|
+
]
|
|
9503
|
+
}
|
|
9504
|
+
},
|
|
8382
9505
|
{
|
|
8383
9506
|
"resource": "file.uploads",
|
|
8384
9507
|
"method": "create",
|
|
@@ -8436,6 +9559,63 @@ export const operations = [
|
|
|
8436
9559
|
]
|
|
8437
9560
|
}
|
|
8438
9561
|
},
|
|
9562
|
+
{
|
|
9563
|
+
"resource": "file.uploads",
|
|
9564
|
+
"method": "createSigned",
|
|
9565
|
+
"summary": "Create a one-time upload URL",
|
|
9566
|
+
"description": "Upload a local file of up to 2 GiB from a coding agent without sending bytes through the model. Provide 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), PUT each chunk to its numbered parts[].url in any order, then POST complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid, wrong-action or cross-organization URLs return 404. URL lifetime defaults to 900 seconds for single PUT or 3600 for multipart, at most 604800; all multipart URLs 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\"}.",
|
|
9567
|
+
"http": "POST",
|
|
9568
|
+
"path": "/file/v1/uploads/signed",
|
|
9569
|
+
"streaming": "no",
|
|
9570
|
+
"pagination": false,
|
|
9571
|
+
"pathParams": [],
|
|
9572
|
+
"query": [],
|
|
9573
|
+
"body": {
|
|
9574
|
+
"required": true,
|
|
9575
|
+
"fields": [
|
|
9576
|
+
{
|
|
9577
|
+
"name": "filename",
|
|
9578
|
+
"type": "string",
|
|
9579
|
+
"required": true,
|
|
9580
|
+
"description": "Stored basename, 1–255 UTF-8 bytes without control characters or path separators."
|
|
9581
|
+
},
|
|
9582
|
+
{
|
|
9583
|
+
"name": "bytes",
|
|
9584
|
+
"type": "integer",
|
|
9585
|
+
"required": true,
|
|
9586
|
+
"description": "Exact local file size in bytes, from 1 through 2147483648 (2 GiB). Up to 104857600 bytes returns one PUT URL; larger files return numbered part URLs and a completion URL. Every PUT requires its exact signed Content-Length."
|
|
9587
|
+
},
|
|
9588
|
+
{
|
|
9589
|
+
"name": "content_type",
|
|
9590
|
+
"type": "string",
|
|
9591
|
+
"required": true,
|
|
9592
|
+
"description": "Declared MIME type, such as image/png. In single-PUT mode, send exactly this Content-Type or omit it. Stored file metadata is detected from the bytes in both modes."
|
|
9593
|
+
},
|
|
9594
|
+
{
|
|
9595
|
+
"name": "purpose",
|
|
9596
|
+
"type": "string",
|
|
9597
|
+
"enum": [
|
|
9598
|
+
"user_data",
|
|
9599
|
+
"vision"
|
|
9600
|
+
],
|
|
9601
|
+
"required": false,
|
|
9602
|
+
"description": "user_data stores ordinary files and conversation images; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data."
|
|
9603
|
+
},
|
|
9604
|
+
{
|
|
9605
|
+
"name": "expires_in",
|
|
9606
|
+
"type": "integer",
|
|
9607
|
+
"required": false,
|
|
9608
|
+
"description": "Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 3600 for multipart. All part URLs and the completion URL share one expiry. This does not set the resulting file's lifetime."
|
|
9609
|
+
},
|
|
9610
|
+
{
|
|
9611
|
+
"name": "part_size",
|
|
9612
|
+
"type": "integer",
|
|
9613
|
+
"required": false,
|
|
9614
|
+
"description": "Fixed multipart chunk size in bytes, from 5242880 through 64000000; defaults to 64000000. Used only above 104857600 total bytes. The final part contains the remaining bytes; single-PUT mode keeps its existing response."
|
|
9615
|
+
}
|
|
9616
|
+
]
|
|
9617
|
+
}
|
|
9618
|
+
},
|
|
8439
9619
|
{
|
|
8440
9620
|
"resource": "file.uploads",
|
|
8441
9621
|
"method": "cancel",
|
|
@@ -9630,6 +10810,16 @@ export const operations = [
|
|
|
9630
10810
|
],
|
|
9631
10811
|
"required": false,
|
|
9632
10812
|
"description": "Upload category: image for images, video for video or audio, raw for unprocessed files, or auto to detect the category. Defaults to auto."
|
|
10813
|
+
},
|
|
10814
|
+
{
|
|
10815
|
+
"name": "type",
|
|
10816
|
+
"type": "string",
|
|
10817
|
+
"enum": [
|
|
10818
|
+
"upload",
|
|
10819
|
+
"authenticated"
|
|
10820
|
+
],
|
|
10821
|
+
"required": false,
|
|
10822
|
+
"description": "Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported."
|
|
9633
10823
|
}
|
|
9634
10824
|
]
|
|
9635
10825
|
}
|
|
@@ -9658,7 +10848,7 @@ export const operations = [
|
|
|
9658
10848
|
"name": "file_id",
|
|
9659
10849
|
"type": "string",
|
|
9660
10850
|
"required": true,
|
|
9661
|
-
"description": "File ID to copy into this library
|
|
10851
|
+
"description": "File ID to copy into this library instead of file bytes. This independent copy defaults to public delivery; set type=authenticated for private delivery. Deleting the source File does not delete this asset."
|
|
9662
10852
|
},
|
|
9663
10853
|
{
|
|
9664
10854
|
"name": "public_id",
|
|
@@ -9743,6 +10933,16 @@ export const operations = [
|
|
|
9743
10933
|
],
|
|
9744
10934
|
"required": false,
|
|
9745
10935
|
"description": "Upload category: image for images, video for video or audio, raw for unprocessed files, or auto to detect the category. Defaults to auto."
|
|
10936
|
+
},
|
|
10937
|
+
{
|
|
10938
|
+
"name": "type",
|
|
10939
|
+
"type": "string",
|
|
10940
|
+
"enum": [
|
|
10941
|
+
"upload",
|
|
10942
|
+
"authenticated"
|
|
10943
|
+
],
|
|
10944
|
+
"required": false,
|
|
10945
|
+
"description": "Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported."
|
|
9746
10946
|
}
|
|
9747
10947
|
]
|
|
9748
10948
|
}
|
|
@@ -10023,6 +11223,41 @@ export const operations = [
|
|
|
10023
11223
|
],
|
|
10024
11224
|
"query": []
|
|
10025
11225
|
},
|
|
11226
|
+
{
|
|
11227
|
+
"resource": "media.libraries.deliveryTokens",
|
|
11228
|
+
"method": "create",
|
|
11229
|
+
"summary": "Create delivery token",
|
|
11230
|
+
"description": "Issue a time-limited bearer token for originals and transformed authenticated assets in an active library. Use library_id from library creation or listing; read access is sufficient. Append token as the __cld_token__ query parameter on a matching delivery URL. The default ACL covers this library and the default lifetime is 3600 seconds; narrow acl and expires_in before sharing. Anyone holding the token can read matching paths until expires_at.",
|
|
11231
|
+
"http": "POST",
|
|
11232
|
+
"path": "/media/v1/libraries/{library_id}/delivery_tokens",
|
|
11233
|
+
"streaming": "no",
|
|
11234
|
+
"pagination": false,
|
|
11235
|
+
"pathParams": [
|
|
11236
|
+
{
|
|
11237
|
+
"name": "library_id",
|
|
11238
|
+
"sdkName": "library_id",
|
|
11239
|
+
"description": "Library ID returned by creation."
|
|
11240
|
+
}
|
|
11241
|
+
],
|
|
11242
|
+
"query": [],
|
|
11243
|
+
"body": {
|
|
11244
|
+
"required": true,
|
|
11245
|
+
"fields": [
|
|
11246
|
+
{
|
|
11247
|
+
"name": "acl",
|
|
11248
|
+
"type": "string",
|
|
11249
|
+
"required": false,
|
|
11250
|
+
"description": "Delivery path glob restricted to the library path prefix (a slash, library_id, then a slash). Defaults to that prefix followed by *; * matches any path text. Tildes and control characters are rejected."
|
|
11251
|
+
},
|
|
11252
|
+
{
|
|
11253
|
+
"name": "expires_in",
|
|
11254
|
+
"type": "integer",
|
|
11255
|
+
"required": false,
|
|
11256
|
+
"description": "Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 3600."
|
|
11257
|
+
}
|
|
11258
|
+
]
|
|
11259
|
+
}
|
|
11260
|
+
},
|
|
10026
11261
|
{
|
|
10027
11262
|
"resource": "media.libraries.events",
|
|
10028
11263
|
"method": "list",
|
|
@@ -11803,7 +13038,8 @@ export const operations = [
|
|
|
11803
13038
|
"openai.images.edits",
|
|
11804
13039
|
"openai.images.generations",
|
|
11805
13040
|
"openai.responses",
|
|
11806
|
-
"openai.videos"
|
|
13041
|
+
"openai.videos",
|
|
13042
|
+
"typesafe.systemone"
|
|
11807
13043
|
],
|
|
11808
13044
|
"required": false,
|
|
11809
13045
|
"description": "Match any comma-separated declared protocol ID; omitted or empty includes all models. Combined with type and output_modalities using AND. Invalid IDs return 400 with all legal values."
|
|
@@ -12378,6 +13614,47 @@ export const operations = [
|
|
|
12378
13614
|
],
|
|
12379
13615
|
"query": []
|
|
12380
13616
|
},
|
|
13617
|
+
{
|
|
13618
|
+
"resource": "model.systemone",
|
|
13619
|
+
"method": "create",
|
|
13620
|
+
"summary": "Ask structured decision questions",
|
|
13621
|
+
"description": "Ask typed questions about a state and get calibrated probabilities instead of generated text. Same request and response as TypeSafe System One. Use model ids from model.models.list declaring typesafe.systemone. Send one or more noul, choice or score questions; answers use the same question ids. Input tokens are charged at the catalog input price; output tokens are free. usage.cost and X-Praxis-Cost-Usd expose the same customer charge in USD. box questions and assets are unsupported and return 400: images are not supported. Unknown top-level fields pass unchanged to the native upstream.",
|
|
13622
|
+
"http": "POST",
|
|
13623
|
+
"path": "/model/v1/systemone",
|
|
13624
|
+
"streaming": "no",
|
|
13625
|
+
"pagination": false,
|
|
13626
|
+
"pathParams": [],
|
|
13627
|
+
"query": [],
|
|
13628
|
+
"body": {
|
|
13629
|
+
"required": true,
|
|
13630
|
+
"fields": [
|
|
13631
|
+
{
|
|
13632
|
+
"name": "model",
|
|
13633
|
+
"type": "string",
|
|
13634
|
+
"required": true,
|
|
13635
|
+
"description": "Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response."
|
|
13636
|
+
},
|
|
13637
|
+
{
|
|
13638
|
+
"name": "state",
|
|
13639
|
+
"type": "object",
|
|
13640
|
+
"required": true,
|
|
13641
|
+
"description": "Shared content evaluated by every question, supplied as text, a JSON object or an array."
|
|
13642
|
+
},
|
|
13643
|
+
{
|
|
13644
|
+
"name": "questions",
|
|
13645
|
+
"type": "object",
|
|
13646
|
+
"required": true,
|
|
13647
|
+
"description": "Non-empty map of caller-chosen question ids to typed questions; answers preserve these ids. noul evaluates yes/no, choice selects a named option, score rates ordered levels. box is unsupported."
|
|
13648
|
+
},
|
|
13649
|
+
{
|
|
13650
|
+
"name": "assets",
|
|
13651
|
+
"type": "object",
|
|
13652
|
+
"required": false,
|
|
13653
|
+
"description": "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported."
|
|
13654
|
+
}
|
|
13655
|
+
]
|
|
13656
|
+
}
|
|
13657
|
+
},
|
|
12381
13658
|
{
|
|
12382
13659
|
"resource": "model.videos",
|
|
12383
13660
|
"method": "list",
|
|
@@ -15099,7 +16376,7 @@ export const operations = [
|
|
|
15099
16376
|
"resource": "ticket.milestones",
|
|
15100
16377
|
"method": "create",
|
|
15101
16378
|
"summary": "Create or add milestones",
|
|
15102
|
-
"description": "Create or add milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result.
|
|
16379
|
+
"description": "Create or add milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.",
|
|
15103
16380
|
"http": "POST",
|
|
15104
16381
|
"path": "/ticket/v1/milestones",
|
|
15105
16382
|
"streaming": "no",
|
|
@@ -15151,7 +16428,7 @@ export const operations = [
|
|
|
15151
16428
|
"resource": "ticket.milestones",
|
|
15152
16429
|
"method": "delete",
|
|
15153
16430
|
"summary": "Remove milestones",
|
|
15154
|
-
"description": "Remove milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result.
|
|
16431
|
+
"description": "Remove milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.",
|
|
15155
16432
|
"http": "DELETE",
|
|
15156
16433
|
"path": "/ticket/v1/milestones/{number}",
|
|
15157
16434
|
"streaming": "no",
|
|
@@ -15203,7 +16480,7 @@ export const operations = [
|
|
|
15203
16480
|
"resource": "ticket.milestones",
|
|
15204
16481
|
"method": "update",
|
|
15205
16482
|
"summary": "Update milestones",
|
|
15206
|
-
"description": "Update milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result.
|
|
16483
|
+
"description": "Update milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.",
|
|
15207
16484
|
"http": "PATCH",
|
|
15208
16485
|
"path": "/ticket/v1/milestones/{number}",
|
|
15209
16486
|
"streaming": "no",
|
|
@@ -16614,7 +17891,7 @@ export const operations = [
|
|
|
16614
17891
|
"resource": "vault.vaults.secrets",
|
|
16615
17892
|
"method": "create",
|
|
16616
17893
|
"summary": "Create secret",
|
|
16617
|
-
"description": "Store a manually supplied token in an active vault for
|
|
17894
|
+
"description": "Store a manually supplied token in an active vault. Omit allowed_hosts for name-based resolution only; host-based redemption never matches an empty host list. Unlike Anthropic credentials, this native operation takes name and value directly, with optional allowed_hosts and creates only static secrets; use praxis.vault.authorizations.create for OAuth. Its name must be unused by any non-archived secret in that vault; the response contains metadata but never the supplied value. Application praxis_vault_ref bindings declare vault_id and secret (the secret name), but currently return 501; do not copy the value into a plain-text binding or metadata as a substitute.",
|
|
16618
17895
|
"http": "POST",
|
|
16619
17896
|
"path": "/vault/v1/vaults/{vault_id}/secrets",
|
|
16620
17897
|
"streaming": "no",
|
|
@@ -16646,8 +17923,8 @@ export const operations = [
|
|
|
16646
17923
|
"name": "allowed_hosts",
|
|
16647
17924
|
"type": "array",
|
|
16648
17925
|
"itemType": "string",
|
|
16649
|
-
"required":
|
|
16650
|
-
"description": "Allowed destinations for the secret.
|
|
17926
|
+
"required": false,
|
|
17927
|
+
"description": "Allowed destinations for the secret. Omitting allowed_hosts on creation stores an empty list for name-based resolution only: host-based redemption never matches. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed."
|
|
16651
17928
|
},
|
|
16652
17929
|
{
|
|
16653
17930
|
"name": "description",
|
|
@@ -16671,7 +17948,7 @@ export const operations = [
|
|
|
16671
17948
|
"stripe"
|
|
16672
17949
|
],
|
|
16673
17950
|
"required": false,
|
|
16674
|
-
"description": "Static template ID from List templates. Records metadata.template; name
|
|
17951
|
+
"description": "Static template ID from List templates. Records metadata.template; name and value must still be supplied explicitly; allowed_hosts is optional."
|
|
16675
17952
|
},
|
|
16676
17953
|
{
|
|
16677
17954
|
"name": "kind",
|
|
@@ -16767,7 +18044,7 @@ export const operations = [
|
|
|
16767
18044
|
"type": "array",
|
|
16768
18045
|
"itemType": "string",
|
|
16769
18046
|
"required": false,
|
|
16770
|
-
"description": "Allowed destinations for the secret.
|
|
18047
|
+
"description": "Allowed destinations for the secret. Omitting allowed_hosts on creation stores an empty list for name-based resolution only: host-based redemption never matches. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed."
|
|
16771
18048
|
},
|
|
16772
18049
|
{
|
|
16773
18050
|
"name": "description",
|
|
@@ -16871,7 +18148,7 @@ export const operations = [
|
|
|
16871
18148
|
"resource": "vault.vaults.secrets",
|
|
16872
18149
|
"method": "import",
|
|
16873
18150
|
"summary": "Import secrets",
|
|
16874
|
-
"description": "Import lines or dotenv text into an active vault, reporting success or failure for each entry. Existing names have their values replaced; their hosts change only when that line supplies allowed_hosts. Shared hosts apply only to newly created secrets.",
|
|
18151
|
+
"description": "Import lines or dotenv text into an active vault, reporting success or failure for each entry. Existing names have their values replaced; their hosts change only when that line supplies allowed_hosts. Shared hosts apply only to newly created secrets; if neither shared nor per-line hosts are supplied, new secrets use an empty host list for name-based resolution only.",
|
|
16875
18152
|
"http": "POST",
|
|
16876
18153
|
"path": "/vault/v1/vaults/{vault_id}/secrets:import",
|
|
16877
18154
|
"streaming": "no",
|