@deepraxis/sdk 0.1.1-dev.27bb19e → 0.1.1-dev.33a7e79
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 +143 -1
- package/dist/automation.d.ts +54 -0
- package/dist/core/transport.d.ts +9 -0
- package/dist/core/transport.js +12 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +300 -13
- package/dist/generated/sdk.gen.js +993 -122
- package/dist/generated/types.gen.d.ts +11717 -7502
- package/dist/operations.generated.d.ts +1286 -130
- package/dist/operations.generated.js +1535 -120
- package/dist/resources.generated.d.ts +187 -24
- package/dist/resources.generated.js +91 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ export declare const operations: readonly [{
|
|
|
2
2
|
readonly resource: "agent.agents";
|
|
3
3
|
readonly method: "list";
|
|
4
4
|
readonly summary: "List agents";
|
|
5
|
-
readonly 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
|
|
5
|
+
readonly description: "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=general or kind=personal for durable-computer agents, kind=service for per-session environments, or kind=assume for external MCP clients. Pass next_page from the response as page to read the next page; a null next_page means the end.";
|
|
6
6
|
readonly http: "GET";
|
|
7
7
|
readonly path: "/agent/v1/agents";
|
|
8
8
|
readonly streaming: "no";
|
|
@@ -37,7 +37,7 @@ export declare const operations: readonly [{
|
|
|
37
37
|
}, {
|
|
38
38
|
readonly name: "kind";
|
|
39
39
|
readonly type: "string";
|
|
40
|
-
readonly enum: readonly ["general", "personal", "service"];
|
|
40
|
+
readonly enum: readonly ["general", "personal", "service", "assume"];
|
|
41
41
|
readonly required: false;
|
|
42
42
|
readonly description: "Filter agents by their immutable kind, including agents created before kind was recorded.";
|
|
43
43
|
}];
|
|
@@ -45,7 +45,7 @@ export declare const operations: readonly [{
|
|
|
45
45
|
readonly resource: "agent.agents";
|
|
46
46
|
readonly method: "create";
|
|
47
47
|
readonly summary: "Create agent";
|
|
48
|
-
readonly 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\"}]}.";
|
|
48
|
+
readonly 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.";
|
|
49
49
|
readonly http: "POST";
|
|
50
50
|
readonly path: "/agent/v1/agents";
|
|
51
51
|
readonly streaming: "no";
|
|
@@ -57,8 +57,8 @@ export declare const operations: readonly [{
|
|
|
57
57
|
readonly fields: readonly [{
|
|
58
58
|
readonly name: "model";
|
|
59
59
|
readonly type: "object";
|
|
60
|
-
readonly required:
|
|
61
|
-
readonly 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.";
|
|
60
|
+
readonly required: false;
|
|
61
|
+
readonly 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.";
|
|
62
62
|
}, {
|
|
63
63
|
readonly name: "name";
|
|
64
64
|
readonly type: "string";
|
|
@@ -111,9 +111,9 @@ export declare const operations: readonly [{
|
|
|
111
111
|
}, {
|
|
112
112
|
readonly name: "kind";
|
|
113
113
|
readonly type: "string";
|
|
114
|
-
readonly enum: readonly ["general", "personal", "service"];
|
|
114
|
+
readonly enum: readonly ["general", "personal", "service", "assume"];
|
|
115
115
|
readonly required: false;
|
|
116
|
-
readonly 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.";
|
|
116
|
+
readonly 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.";
|
|
117
117
|
}, {
|
|
118
118
|
readonly name: "computer_id";
|
|
119
119
|
readonly type: "string";
|
|
@@ -187,7 +187,7 @@ export declare const operations: readonly [{
|
|
|
187
187
|
readonly pathParams: readonly [{
|
|
188
188
|
readonly name: "agent_id";
|
|
189
189
|
readonly sdkName: "agent_id";
|
|
190
|
-
readonly 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.";
|
|
190
|
+
readonly 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_….";
|
|
191
191
|
}];
|
|
192
192
|
readonly query: readonly [{
|
|
193
193
|
readonly name: "version";
|
|
@@ -199,7 +199,7 @@ export declare const operations: readonly [{
|
|
|
199
199
|
readonly resource: "agent.agents";
|
|
200
200
|
readonly method: "update";
|
|
201
201
|
readonly summary: "Update agent";
|
|
202
|
-
readonly 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.";
|
|
202
|
+
readonly 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.";
|
|
203
203
|
readonly http: "POST";
|
|
204
204
|
readonly path: "/agent/v1/agents/{agent_id}";
|
|
205
205
|
readonly streaming: "no";
|
|
@@ -207,7 +207,7 @@ export declare const operations: readonly [{
|
|
|
207
207
|
readonly pathParams: readonly [{
|
|
208
208
|
readonly name: "agent_id";
|
|
209
209
|
readonly sdkName: "agent_id";
|
|
210
|
-
readonly 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.";
|
|
210
|
+
readonly 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_….";
|
|
211
211
|
}];
|
|
212
212
|
readonly query: readonly [];
|
|
213
213
|
readonly body: {
|
|
@@ -232,7 +232,7 @@ export declare const operations: readonly [{
|
|
|
232
232
|
readonly name: "model";
|
|
233
233
|
readonly type: "object";
|
|
234
234
|
readonly required: false;
|
|
235
|
-
readonly 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.";
|
|
235
|
+
readonly 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.";
|
|
236
236
|
}, {
|
|
237
237
|
readonly name: "multiagent";
|
|
238
238
|
readonly type: "object";
|
|
@@ -284,9 +284,9 @@ export declare const operations: readonly [{
|
|
|
284
284
|
}, {
|
|
285
285
|
readonly name: "kind";
|
|
286
286
|
readonly type: "string";
|
|
287
|
-
readonly enum: readonly ["general", "personal", "service"];
|
|
287
|
+
readonly enum: readonly ["general", "personal", "service", "assume"];
|
|
288
288
|
readonly required: false;
|
|
289
|
-
readonly 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.";
|
|
289
|
+
readonly 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.";
|
|
290
290
|
}, {
|
|
291
291
|
readonly name: "computer_id";
|
|
292
292
|
readonly type: "string";
|
|
@@ -360,7 +360,7 @@ export declare const operations: readonly [{
|
|
|
360
360
|
readonly pathParams: readonly [{
|
|
361
361
|
readonly name: "agent_id";
|
|
362
362
|
readonly sdkName: "agent_id";
|
|
363
|
-
readonly description: "Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for.";
|
|
363
|
+
readonly 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_….";
|
|
364
364
|
}];
|
|
365
365
|
readonly query: readonly [];
|
|
366
366
|
}, {
|
|
@@ -375,7 +375,7 @@ export declare const operations: readonly [{
|
|
|
375
375
|
readonly pathParams: readonly [{
|
|
376
376
|
readonly name: "agent_id";
|
|
377
377
|
readonly sdkName: "agent_id";
|
|
378
|
-
readonly 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.";
|
|
378
|
+
readonly 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_….";
|
|
379
379
|
}];
|
|
380
380
|
readonly query: readonly [];
|
|
381
381
|
}, {
|
|
@@ -390,7 +390,7 @@ export declare const operations: readonly [{
|
|
|
390
390
|
readonly pathParams: readonly [{
|
|
391
391
|
readonly name: "agent_id";
|
|
392
392
|
readonly sdkName: "agent_id";
|
|
393
|
-
readonly description: "Active service agent id from agent creation or listing.";
|
|
393
|
+
readonly 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_….";
|
|
394
394
|
}];
|
|
395
395
|
readonly query: readonly [{
|
|
396
396
|
readonly name: "limit";
|
|
@@ -431,7 +431,7 @@ export declare const operations: readonly [{
|
|
|
431
431
|
readonly pathParams: readonly [{
|
|
432
432
|
readonly name: "agent_id";
|
|
433
433
|
readonly sdkName: "agent_id";
|
|
434
|
-
readonly description: "Service agent id (agent_…) or its short identity number, from agent creation or listing.";
|
|
434
|
+
readonly 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_….";
|
|
435
435
|
}];
|
|
436
436
|
readonly query: readonly [];
|
|
437
437
|
readonly body: {
|
|
@@ -450,7 +450,7 @@ export declare const operations: readonly [{
|
|
|
450
450
|
readonly pathParams: readonly [{
|
|
451
451
|
readonly name: "agent_id";
|
|
452
452
|
readonly sdkName: "agent_id";
|
|
453
|
-
readonly description: "Service agent id (agent_…) or its short identity number, from agent creation or listing.";
|
|
453
|
+
readonly 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_….";
|
|
454
454
|
}];
|
|
455
455
|
readonly query: readonly [];
|
|
456
456
|
}, {
|
|
@@ -465,7 +465,7 @@ export declare const operations: readonly [{
|
|
|
465
465
|
readonly pathParams: readonly [{
|
|
466
466
|
readonly name: "agent_id";
|
|
467
467
|
readonly sdkName: "agent_id";
|
|
468
|
-
readonly description: "Service agent id (agent_…) or its short identity number, from agent creation or listing.";
|
|
468
|
+
readonly 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_….";
|
|
469
469
|
}];
|
|
470
470
|
readonly query: readonly [];
|
|
471
471
|
}, {
|
|
@@ -480,7 +480,7 @@ export declare const operations: readonly [{
|
|
|
480
480
|
readonly pathParams: readonly [{
|
|
481
481
|
readonly name: "agent_id";
|
|
482
482
|
readonly sdkName: "agent_id";
|
|
483
|
-
readonly description: "Service agent id (agent_…) or its short identity number, from agent creation or listing.";
|
|
483
|
+
readonly 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_….";
|
|
484
484
|
}];
|
|
485
485
|
readonly query: readonly [];
|
|
486
486
|
readonly body: {
|
|
@@ -555,7 +555,7 @@ export declare const operations: readonly [{
|
|
|
555
555
|
readonly pathParams: readonly [{
|
|
556
556
|
readonly name: "agent_id";
|
|
557
557
|
readonly sdkName: "agent_id";
|
|
558
|
-
readonly description: "Active service agent id from agent creation or listing.";
|
|
558
|
+
readonly 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_….";
|
|
559
559
|
}, {
|
|
560
560
|
readonly name: "customer_id";
|
|
561
561
|
readonly sdkName: "customer_id";
|
|
@@ -579,7 +579,7 @@ export declare const operations: readonly [{
|
|
|
579
579
|
readonly pathParams: readonly [{
|
|
580
580
|
readonly name: "agent_id";
|
|
581
581
|
readonly sdkName: "agent_id";
|
|
582
|
-
readonly description: "Active service agent id from agent creation or listing.";
|
|
582
|
+
readonly 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_….";
|
|
583
583
|
}, {
|
|
584
584
|
readonly name: "customer_id";
|
|
585
585
|
readonly sdkName: "customer_id";
|
|
@@ -598,7 +598,7 @@ export declare const operations: readonly [{
|
|
|
598
598
|
readonly pathParams: readonly [{
|
|
599
599
|
readonly name: "agent_id";
|
|
600
600
|
readonly sdkName: "agent_id";
|
|
601
|
-
readonly description: "Active service agent id from agent creation or listing.";
|
|
601
|
+
readonly 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_….";
|
|
602
602
|
}, {
|
|
603
603
|
readonly name: "customer_id";
|
|
604
604
|
readonly sdkName: "customer_id";
|
|
@@ -617,7 +617,7 @@ export declare const operations: readonly [{
|
|
|
617
617
|
readonly pathParams: readonly [{
|
|
618
618
|
readonly name: "agent_id";
|
|
619
619
|
readonly sdkName: "agent_id";
|
|
620
|
-
readonly description: "Active service agent id from agent creation or listing.";
|
|
620
|
+
readonly 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_….";
|
|
621
621
|
}, {
|
|
622
622
|
readonly name: "customer_id";
|
|
623
623
|
readonly sdkName: "customer_id";
|
|
@@ -636,7 +636,7 @@ export declare const operations: readonly [{
|
|
|
636
636
|
readonly pathParams: readonly [{
|
|
637
637
|
readonly name: "agent_id";
|
|
638
638
|
readonly sdkName: "agent_id";
|
|
639
|
-
readonly description: "Active service agent id from agent creation or listing.";
|
|
639
|
+
readonly 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_….";
|
|
640
640
|
}, {
|
|
641
641
|
readonly name: "customer_id";
|
|
642
642
|
readonly sdkName: "customer_id";
|
|
@@ -655,7 +655,7 @@ export declare const operations: readonly [{
|
|
|
655
655
|
readonly pathParams: readonly [{
|
|
656
656
|
readonly name: "agent_id";
|
|
657
657
|
readonly sdkName: "agent_id";
|
|
658
|
-
readonly description: "Active service agent id from agent creation or listing.";
|
|
658
|
+
readonly 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_….";
|
|
659
659
|
}, {
|
|
660
660
|
readonly name: "customer_id";
|
|
661
661
|
readonly sdkName: "customer_id";
|
|
@@ -674,7 +674,7 @@ export declare const operations: readonly [{
|
|
|
674
674
|
readonly pathParams: readonly [{
|
|
675
675
|
readonly name: "agent_id";
|
|
676
676
|
readonly sdkName: "agent_id";
|
|
677
|
-
readonly description: "Agent id from creation or listing.";
|
|
677
|
+
readonly 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_….";
|
|
678
678
|
}];
|
|
679
679
|
readonly query: readonly [];
|
|
680
680
|
}, {
|
|
@@ -689,7 +689,7 @@ export declare const operations: readonly [{
|
|
|
689
689
|
readonly pathParams: readonly [{
|
|
690
690
|
readonly name: "agent_id";
|
|
691
691
|
readonly sdkName: "agent_id";
|
|
692
|
-
readonly 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.";
|
|
692
|
+
readonly 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_….";
|
|
693
693
|
}];
|
|
694
694
|
readonly query: readonly [{
|
|
695
695
|
readonly name: "limit";
|
|
@@ -714,7 +714,7 @@ export declare const operations: readonly [{
|
|
|
714
714
|
readonly pathParams: readonly [{
|
|
715
715
|
readonly name: "agent_id";
|
|
716
716
|
readonly sdkName: "agent_id";
|
|
717
|
-
readonly description: "Agent identifier from agents.create or agents.list.";
|
|
717
|
+
readonly 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_….";
|
|
718
718
|
}, {
|
|
719
719
|
readonly name: "version";
|
|
720
720
|
readonly sdkName: "version";
|
|
@@ -1536,7 +1536,7 @@ export declare const operations: readonly [{
|
|
|
1536
1536
|
readonly resource: "agent.sessions";
|
|
1537
1537
|
readonly method: "create";
|
|
1538
1538
|
readonly summary: "Create session";
|
|
1539
|
-
readonly 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.";
|
|
1539
|
+
readonly 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.";
|
|
1540
1540
|
readonly http: "POST";
|
|
1541
1541
|
readonly path: "/agent/v1/sessions";
|
|
1542
1542
|
readonly streaming: "no";
|
|
@@ -2852,7 +2852,7 @@ export declare const operations: readonly [{
|
|
|
2852
2852
|
readonly resource: "application.workers.grants";
|
|
2853
2853
|
readonly method: "create";
|
|
2854
2854
|
readonly summary: "Create grant";
|
|
2855
|
-
readonly description: "
|
|
2855
|
+
readonly 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).";
|
|
2856
2856
|
readonly http: "POST";
|
|
2857
2857
|
readonly path: "/application/v1/workers/{worker_id}/grants";
|
|
2858
2858
|
readonly streaming: "no";
|
|
@@ -2869,13 +2869,18 @@ export declare const operations: readonly [{
|
|
|
2869
2869
|
readonly name: "resource";
|
|
2870
2870
|
readonly type: "object";
|
|
2871
2871
|
readonly required: true;
|
|
2872
|
-
readonly description: "Resource to grant.";
|
|
2872
|
+
readonly description: "Resource to grant. Each (type, id) may be granted once per Worker; duplicates return GRANT_CONFLICT (409).";
|
|
2873
|
+
}, {
|
|
2874
|
+
readonly name: "alias";
|
|
2875
|
+
readonly type: "string";
|
|
2876
|
+
readonly required: false;
|
|
2877
|
+
readonly description: "Optional name, unique within this Worker. Available for reuse after the grant is deleted.";
|
|
2873
2878
|
}, {
|
|
2874
2879
|
readonly name: "access";
|
|
2875
2880
|
readonly type: "string";
|
|
2876
2881
|
readonly enum: readonly ["read", "read_write"];
|
|
2877
2882
|
readonly required: true;
|
|
2878
|
-
readonly description: "Access level.";
|
|
2883
|
+
readonly description: "Access level; models accepts read only.";
|
|
2879
2884
|
}];
|
|
2880
2885
|
};
|
|
2881
2886
|
}, {
|
|
@@ -4457,6 +4462,80 @@ export declare const operations: readonly [{
|
|
|
4457
4462
|
readonly required: false;
|
|
4458
4463
|
readonly fields: readonly [];
|
|
4459
4464
|
};
|
|
4465
|
+
}, {
|
|
4466
|
+
readonly resource: "automation.scripts.vaults";
|
|
4467
|
+
readonly method: "list";
|
|
4468
|
+
readonly summary: "List script vault bindings";
|
|
4469
|
+
readonly 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.";
|
|
4470
|
+
readonly http: "GET";
|
|
4471
|
+
readonly path: "/automation/v1/scripts/{ns}/{name}/vaults";
|
|
4472
|
+
readonly streaming: "no";
|
|
4473
|
+
readonly pagination: false;
|
|
4474
|
+
readonly pathParams: readonly [{
|
|
4475
|
+
readonly name: "ns";
|
|
4476
|
+
readonly sdkName: "ns";
|
|
4477
|
+
readonly description: "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.";
|
|
4478
|
+
}, {
|
|
4479
|
+
readonly name: "name";
|
|
4480
|
+
readonly sdkName: "name";
|
|
4481
|
+
readonly description: "Resource name from automation.scripts.list or create; combine with ns to identify the saved script.";
|
|
4482
|
+
}];
|
|
4483
|
+
readonly query: readonly [];
|
|
4484
|
+
}, {
|
|
4485
|
+
readonly resource: "automation.scripts.vaults";
|
|
4486
|
+
readonly method: "delete";
|
|
4487
|
+
readonly summary: "Delete a script vault binding";
|
|
4488
|
+
readonly 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.";
|
|
4489
|
+
readonly http: "DELETE";
|
|
4490
|
+
readonly path: "/automation/v1/scripts/{ns}/{name}/vaults/{alias}";
|
|
4491
|
+
readonly streaming: "no";
|
|
4492
|
+
readonly pagination: false;
|
|
4493
|
+
readonly pathParams: readonly [{
|
|
4494
|
+
readonly name: "ns";
|
|
4495
|
+
readonly sdkName: "ns";
|
|
4496
|
+
readonly description: "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.";
|
|
4497
|
+
}, {
|
|
4498
|
+
readonly name: "name";
|
|
4499
|
+
readonly sdkName: "name";
|
|
4500
|
+
readonly description: "Resource name from automation.scripts.list or create; combine with ns to identify the saved script.";
|
|
4501
|
+
}, {
|
|
4502
|
+
readonly name: "alias";
|
|
4503
|
+
readonly sdkName: "alias";
|
|
4504
|
+
readonly description: "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter.";
|
|
4505
|
+
}];
|
|
4506
|
+
readonly query: readonly [];
|
|
4507
|
+
}, {
|
|
4508
|
+
readonly resource: "automation.scripts.vaults";
|
|
4509
|
+
readonly method: "set";
|
|
4510
|
+
readonly summary: "Set a script vault binding";
|
|
4511
|
+
readonly 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\"}.";
|
|
4512
|
+
readonly http: "PUT";
|
|
4513
|
+
readonly path: "/automation/v1/scripts/{ns}/{name}/vaults/{alias}";
|
|
4514
|
+
readonly streaming: "no";
|
|
4515
|
+
readonly pagination: false;
|
|
4516
|
+
readonly pathParams: readonly [{
|
|
4517
|
+
readonly name: "ns";
|
|
4518
|
+
readonly sdkName: "ns";
|
|
4519
|
+
readonly description: "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.";
|
|
4520
|
+
}, {
|
|
4521
|
+
readonly name: "name";
|
|
4522
|
+
readonly sdkName: "name";
|
|
4523
|
+
readonly description: "Resource name from automation.scripts.list or create; combine with ns to identify the saved script.";
|
|
4524
|
+
}, {
|
|
4525
|
+
readonly name: "alias";
|
|
4526
|
+
readonly sdkName: "alias";
|
|
4527
|
+
readonly description: "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter.";
|
|
4528
|
+
}];
|
|
4529
|
+
readonly query: readonly [];
|
|
4530
|
+
readonly body: {
|
|
4531
|
+
readonly required: true;
|
|
4532
|
+
readonly fields: readonly [{
|
|
4533
|
+
readonly name: "vault";
|
|
4534
|
+
readonly type: "string";
|
|
4535
|
+
readonly required: true;
|
|
4536
|
+
readonly description: "Active vault ID or exact display name from praxis.vault.vaults.list in your organization. Use an ID if display names are duplicated.";
|
|
4537
|
+
}];
|
|
4538
|
+
};
|
|
4460
4539
|
}, {
|
|
4461
4540
|
readonly resource: "automation.scripts.versions";
|
|
4462
4541
|
readonly method: "list";
|
|
@@ -5094,7 +5173,7 @@ export declare const operations: readonly [{
|
|
|
5094
5173
|
readonly resource: "automation.workflows";
|
|
5095
5174
|
readonly method: "create";
|
|
5096
5175
|
readonly summary: "Create a workflow";
|
|
5097
|
-
readonly 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.";
|
|
5176
|
+
readonly 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.";
|
|
5098
5177
|
readonly http: "POST";
|
|
5099
5178
|
readonly path: "/automation/v1/workflows";
|
|
5100
5179
|
readonly streaming: "no";
|
|
@@ -5307,6 +5386,80 @@ export declare const operations: readonly [{
|
|
|
5307
5386
|
readonly required: false;
|
|
5308
5387
|
readonly fields: readonly [];
|
|
5309
5388
|
};
|
|
5389
|
+
}, {
|
|
5390
|
+
readonly resource: "automation.workflows.vaults";
|
|
5391
|
+
readonly method: "list";
|
|
5392
|
+
readonly summary: "List workflow vault bindings";
|
|
5393
|
+
readonly 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.";
|
|
5394
|
+
readonly http: "GET";
|
|
5395
|
+
readonly path: "/automation/v1/workflows/{ns}/{name}/vaults";
|
|
5396
|
+
readonly streaming: "no";
|
|
5397
|
+
readonly pagination: false;
|
|
5398
|
+
readonly pathParams: readonly [{
|
|
5399
|
+
readonly name: "ns";
|
|
5400
|
+
readonly sdkName: "ns";
|
|
5401
|
+
readonly description: "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.";
|
|
5402
|
+
}, {
|
|
5403
|
+
readonly name: "name";
|
|
5404
|
+
readonly sdkName: "name";
|
|
5405
|
+
readonly description: "Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.";
|
|
5406
|
+
}];
|
|
5407
|
+
readonly query: readonly [];
|
|
5408
|
+
}, {
|
|
5409
|
+
readonly resource: "automation.workflows.vaults";
|
|
5410
|
+
readonly method: "delete";
|
|
5411
|
+
readonly summary: "Delete a workflow vault binding";
|
|
5412
|
+
readonly 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.";
|
|
5413
|
+
readonly http: "DELETE";
|
|
5414
|
+
readonly path: "/automation/v1/workflows/{ns}/{name}/vaults/{alias}";
|
|
5415
|
+
readonly streaming: "no";
|
|
5416
|
+
readonly pagination: false;
|
|
5417
|
+
readonly pathParams: readonly [{
|
|
5418
|
+
readonly name: "ns";
|
|
5419
|
+
readonly sdkName: "ns";
|
|
5420
|
+
readonly description: "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.";
|
|
5421
|
+
}, {
|
|
5422
|
+
readonly name: "name";
|
|
5423
|
+
readonly sdkName: "name";
|
|
5424
|
+
readonly description: "Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.";
|
|
5425
|
+
}, {
|
|
5426
|
+
readonly name: "alias";
|
|
5427
|
+
readonly sdkName: "alias";
|
|
5428
|
+
readonly description: "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter.";
|
|
5429
|
+
}];
|
|
5430
|
+
readonly query: readonly [];
|
|
5431
|
+
}, {
|
|
5432
|
+
readonly resource: "automation.workflows.vaults";
|
|
5433
|
+
readonly method: "set";
|
|
5434
|
+
readonly summary: "Set a workflow vault binding";
|
|
5435
|
+
readonly 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\"}.";
|
|
5436
|
+
readonly http: "PUT";
|
|
5437
|
+
readonly path: "/automation/v1/workflows/{ns}/{name}/vaults/{alias}";
|
|
5438
|
+
readonly streaming: "no";
|
|
5439
|
+
readonly pagination: false;
|
|
5440
|
+
readonly pathParams: readonly [{
|
|
5441
|
+
readonly name: "ns";
|
|
5442
|
+
readonly sdkName: "ns";
|
|
5443
|
+
readonly description: "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.";
|
|
5444
|
+
}, {
|
|
5445
|
+
readonly name: "name";
|
|
5446
|
+
readonly sdkName: "name";
|
|
5447
|
+
readonly description: "Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.";
|
|
5448
|
+
}, {
|
|
5449
|
+
readonly name: "alias";
|
|
5450
|
+
readonly sdkName: "alias";
|
|
5451
|
+
readonly description: "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter.";
|
|
5452
|
+
}];
|
|
5453
|
+
readonly query: readonly [];
|
|
5454
|
+
readonly body: {
|
|
5455
|
+
readonly required: true;
|
|
5456
|
+
readonly fields: readonly [{
|
|
5457
|
+
readonly name: "vault";
|
|
5458
|
+
readonly type: "string";
|
|
5459
|
+
readonly required: true;
|
|
5460
|
+
readonly description: "Active vault ID or exact display name from praxis.vault.vaults.list in your organization. Use an ID if display names are duplicated.";
|
|
5461
|
+
}];
|
|
5462
|
+
};
|
|
5310
5463
|
}, {
|
|
5311
5464
|
readonly resource: "automation.workflows.versions";
|
|
5312
5465
|
readonly method: "list";
|
|
@@ -5747,161 +5900,1018 @@ export declare const operations: readonly [{
|
|
|
5747
5900
|
readonly name: "expand";
|
|
5748
5901
|
readonly type: "string";
|
|
5749
5902
|
readonly required: false;
|
|
5750
|
-
readonly description: "逗号分隔的 debug、events;在同一响应中返回调试地址和事件。";
|
|
5903
|
+
readonly description: "逗号分隔的 debug、events;在同一响应中返回调试地址和事件。";
|
|
5904
|
+
}];
|
|
5905
|
+
}, {
|
|
5906
|
+
readonly resource: "browser.sessions";
|
|
5907
|
+
readonly method: "update";
|
|
5908
|
+
readonly summary: "关闭浏览器会话";
|
|
5909
|
+
readonly description: "关闭指定浏览器会话,返回关闭后的会话对象。请求体为 {\"status\":\"REQUEST_RELEASE\"};若返回 409 SESSION_INVALID_STATE,可再次读取会话确认状态;已结束的会话可重复请求关闭。";
|
|
5910
|
+
readonly http: "POST";
|
|
5911
|
+
readonly path: "/browser/v1/sessions/{sessionId}";
|
|
5912
|
+
readonly streaming: "no";
|
|
5913
|
+
readonly pagination: false;
|
|
5914
|
+
readonly pathParams: readonly [{
|
|
5915
|
+
readonly name: "sessionId";
|
|
5916
|
+
readonly sdkName: "sessionId";
|
|
5917
|
+
readonly description: "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。";
|
|
5918
|
+
}];
|
|
5919
|
+
readonly query: readonly [];
|
|
5920
|
+
readonly body: {
|
|
5921
|
+
readonly required: true;
|
|
5922
|
+
readonly fields: readonly [{
|
|
5923
|
+
readonly name: "status";
|
|
5924
|
+
readonly type: "string";
|
|
5925
|
+
readonly enum: readonly ["REQUEST_RELEASE"];
|
|
5926
|
+
readonly required: true;
|
|
5927
|
+
readonly description: "会话操作指令;REQUEST_RELEASE 表示请求关闭浏览器并结束会话。";
|
|
5928
|
+
}];
|
|
5929
|
+
};
|
|
5930
|
+
}, {
|
|
5931
|
+
readonly resource: "browser.sessions";
|
|
5932
|
+
readonly method: "retrieveDebug";
|
|
5933
|
+
readonly summary: "读取调试地址";
|
|
5934
|
+
readonly description: "读取当前会话及各标签页的实时观看地址和 CDP 连接地址。直接使用返回的完整链接,保留查询凭证;会话不在运行状态时 pages 为空,返回地址不代表会话仍可连接。";
|
|
5935
|
+
readonly http: "GET";
|
|
5936
|
+
readonly path: "/browser/v1/sessions/{sessionId}/debug";
|
|
5937
|
+
readonly streaming: "no";
|
|
5938
|
+
readonly pagination: false;
|
|
5939
|
+
readonly pathParams: readonly [{
|
|
5940
|
+
readonly name: "sessionId";
|
|
5941
|
+
readonly sdkName: "sessionId";
|
|
5942
|
+
readonly description: "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。";
|
|
5943
|
+
}];
|
|
5944
|
+
readonly query: readonly [];
|
|
5945
|
+
}, {
|
|
5946
|
+
readonly resource: "browser.sessions.events";
|
|
5947
|
+
readonly method: "list";
|
|
5948
|
+
readonly summary: "列出会话事件";
|
|
5949
|
+
readonly description: "按事件序号升序读取指定会话的事件账本,包含生命周期和接管等事件,不包含页面点击或输入内容。可按 types 筛选,并将 nextCursor 原样传入读取后续页。";
|
|
5950
|
+
readonly http: "GET";
|
|
5951
|
+
readonly path: "/browser/v1/sessions/{sessionId}/events";
|
|
5952
|
+
readonly streaming: "no";
|
|
5953
|
+
readonly pagination: false;
|
|
5954
|
+
readonly pathParams: readonly [{
|
|
5955
|
+
readonly name: "sessionId";
|
|
5956
|
+
readonly sdkName: "sessionId";
|
|
5957
|
+
readonly description: "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。";
|
|
5958
|
+
}];
|
|
5959
|
+
readonly query: readonly [{
|
|
5960
|
+
readonly name: "cursor";
|
|
5961
|
+
readonly type: "string";
|
|
5962
|
+
readonly required: false;
|
|
5963
|
+
readonly description: "上一页返回的 nextCursor,表示已读到的事件序号;省略时从最早事件开始。";
|
|
5964
|
+
}, {
|
|
5965
|
+
readonly name: "limit";
|
|
5966
|
+
readonly type: "integer";
|
|
5967
|
+
readonly required: false;
|
|
5968
|
+
readonly description: "每页最多返回的记录数量;默认 50,范围 1–200。";
|
|
5969
|
+
}, {
|
|
5970
|
+
readonly name: "types";
|
|
5971
|
+
readonly type: "string";
|
|
5972
|
+
readonly required: false;
|
|
5973
|
+
readonly description: "逗号分隔的账本事件类型,仅返回匹配项;省略时不按类型筛选。";
|
|
5974
|
+
}];
|
|
5975
|
+
}, {
|
|
5976
|
+
readonly resource: "browser.sessions.handoff";
|
|
5977
|
+
readonly method: "create";
|
|
5978
|
+
readonly summary: "请求人工接管";
|
|
5979
|
+
readonly description: "为运行中的会话发起人工接管请求,返回接管请求事件。请求尚未过期或完成时,CDP 客户端的 Input.* 指令会被拒绝;再次请求会替换已有的接管说明和到期时刻。";
|
|
5980
|
+
readonly http: "POST";
|
|
5981
|
+
readonly path: "/browser/v1/sessions/{sessionId}/handoff";
|
|
5982
|
+
readonly streaming: "no";
|
|
5983
|
+
readonly pagination: false;
|
|
5984
|
+
readonly pathParams: readonly [{
|
|
5985
|
+
readonly name: "sessionId";
|
|
5986
|
+
readonly sdkName: "sessionId";
|
|
5987
|
+
readonly description: "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。";
|
|
5988
|
+
}];
|
|
5989
|
+
readonly query: readonly [];
|
|
5990
|
+
readonly body: {
|
|
5991
|
+
readonly required: true;
|
|
5992
|
+
readonly fields: readonly [{
|
|
5993
|
+
readonly name: "message";
|
|
5994
|
+
readonly type: "string";
|
|
5995
|
+
readonly required: true;
|
|
5996
|
+
readonly description: "交给人工操作者的接管说明,可为空字符串。";
|
|
5997
|
+
}, {
|
|
5998
|
+
readonly name: "timeoutMs";
|
|
5999
|
+
readonly type: "number";
|
|
6000
|
+
readonly required: false;
|
|
6001
|
+
readonly description: "接管请求有效时长,单位为毫秒;必须大于 0,可含小数。";
|
|
6002
|
+
}];
|
|
6003
|
+
};
|
|
6004
|
+
}, {
|
|
6005
|
+
readonly resource: "browser.sessions.handoff";
|
|
6006
|
+
readonly method: "complete";
|
|
6007
|
+
readonly summary: "完成人工接管";
|
|
6008
|
+
readonly description: "完成运行中会话的待处理人工接管,清除接管请求并返回完成事件,客户端可恢复发送 Input.* 指令。没有请求或请求已过期时返回 409 HANDOFF_NOT_PENDING。";
|
|
6009
|
+
readonly http: "POST";
|
|
6010
|
+
readonly path: "/browser/v1/sessions/{sessionId}/handoff/complete";
|
|
6011
|
+
readonly streaming: "no";
|
|
6012
|
+
readonly pagination: false;
|
|
6013
|
+
readonly pathParams: readonly [{
|
|
6014
|
+
readonly name: "sessionId";
|
|
6015
|
+
readonly sdkName: "sessionId";
|
|
6016
|
+
readonly description: "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。";
|
|
6017
|
+
}];
|
|
6018
|
+
readonly query: readonly [];
|
|
6019
|
+
}, {
|
|
6020
|
+
readonly resource: "browser.sessions";
|
|
6021
|
+
readonly method: "stream";
|
|
6022
|
+
readonly summary: "订阅会话动态";
|
|
6023
|
+
readonly description: "SSE:event 为 snapshot、session、pages、action、event 或 end,data 为对应 JSON。先发送 snapshot 快照,再推送实时变化和 ping 注释;end 后关闭。不支持按 Last-Event-ID 历史重放。";
|
|
6024
|
+
readonly http: "GET";
|
|
6025
|
+
readonly path: "/browser/v1/sessions/{sessionId}/stream";
|
|
6026
|
+
readonly streaming: "always";
|
|
6027
|
+
readonly pagination: false;
|
|
6028
|
+
readonly pathParams: readonly [{
|
|
6029
|
+
readonly name: "sessionId";
|
|
6030
|
+
readonly sdkName: "sessionId";
|
|
6031
|
+
readonly description: "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。";
|
|
6032
|
+
}];
|
|
6033
|
+
readonly query: readonly [];
|
|
6034
|
+
}, {
|
|
6035
|
+
readonly resource: "browser.sessions.viewer";
|
|
6036
|
+
readonly method: "create";
|
|
6037
|
+
readonly summary: "更新查看者心跳";
|
|
6038
|
+
readonly description: "登记运行中会话的观看者仍在线,以免无人连接时因空闲被释放。观看页面可见期间为同一观看者重复发送相同 viewerId;停止观看后停止发送,过期心跳不再计为在线。";
|
|
6039
|
+
readonly http: "POST";
|
|
6040
|
+
readonly path: "/browser/v1/sessions/{sessionId}/viewer";
|
|
6041
|
+
readonly streaming: "no";
|
|
6042
|
+
readonly pagination: false;
|
|
6043
|
+
readonly pathParams: readonly [{
|
|
6044
|
+
readonly name: "sessionId";
|
|
6045
|
+
readonly sdkName: "sessionId";
|
|
6046
|
+
readonly description: "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。";
|
|
6047
|
+
}];
|
|
6048
|
+
readonly query: readonly [];
|
|
6049
|
+
readonly body: {
|
|
6050
|
+
readonly required: true;
|
|
6051
|
+
readonly fields: readonly [{
|
|
6052
|
+
readonly name: "viewerId";
|
|
6053
|
+
readonly type: "string";
|
|
6054
|
+
readonly required: true;
|
|
6055
|
+
readonly description: "当前观看者的稳定标识;同一观看者重复心跳应使用相同值,长度为 1–128 个 UTF-16 代码单元。";
|
|
6056
|
+
}];
|
|
6057
|
+
};
|
|
6058
|
+
}, {
|
|
6059
|
+
readonly resource: "canvas.canvases";
|
|
6060
|
+
readonly method: "list";
|
|
6061
|
+
readonly summary: "List canvases";
|
|
6062
|
+
readonly 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.";
|
|
6063
|
+
readonly http: "GET";
|
|
6064
|
+
readonly path: "/canvas/v1/canvases";
|
|
6065
|
+
readonly streaming: "no";
|
|
6066
|
+
readonly pagination: true;
|
|
6067
|
+
readonly pathParams: readonly [];
|
|
6068
|
+
readonly query: readonly [{
|
|
6069
|
+
readonly name: "limit";
|
|
6070
|
+
readonly type: "integer";
|
|
6071
|
+
readonly required: false;
|
|
6072
|
+
readonly description: "Maximum canvases to return per page, from 1 to 100; defaults to 50 when omitted.";
|
|
6073
|
+
}, {
|
|
6074
|
+
readonly name: "cursor";
|
|
6075
|
+
readonly type: "string";
|
|
6076
|
+
readonly required: false;
|
|
6077
|
+
readonly description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.";
|
|
6078
|
+
}, {
|
|
6079
|
+
readonly name: "collection_id";
|
|
6080
|
+
readonly type: "string";
|
|
6081
|
+
readonly required: false;
|
|
6082
|
+
readonly description: "Filter to a collection id from collections.list, or the literal none for uncategorized canvases. Omit to list all canvases; keep the same filter when following next_cursor.";
|
|
6083
|
+
}];
|
|
6084
|
+
}, {
|
|
6085
|
+
readonly resource: "canvas.canvases";
|
|
6086
|
+
readonly method: "create";
|
|
6087
|
+
readonly summary: "Create canvas";
|
|
6088
|
+
readonly 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.";
|
|
6089
|
+
readonly http: "POST";
|
|
6090
|
+
readonly path: "/canvas/v1/canvases";
|
|
6091
|
+
readonly streaming: "no";
|
|
6092
|
+
readonly pagination: false;
|
|
6093
|
+
readonly pathParams: readonly [];
|
|
6094
|
+
readonly query: readonly [];
|
|
6095
|
+
readonly body: {
|
|
6096
|
+
readonly required: false;
|
|
6097
|
+
readonly fields: readonly [{
|
|
6098
|
+
readonly name: "name";
|
|
6099
|
+
readonly type: "string";
|
|
6100
|
+
readonly required: false;
|
|
6101
|
+
readonly description: "Display name for the new canvas, at most 200 characters; omission uses Untitled.";
|
|
6102
|
+
}];
|
|
6103
|
+
};
|
|
6104
|
+
}, {
|
|
6105
|
+
readonly resource: "canvas.canvases";
|
|
6106
|
+
readonly method: "delete";
|
|
6107
|
+
readonly summary: "Delete canvas";
|
|
6108
|
+
readonly 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.";
|
|
6109
|
+
readonly http: "DELETE";
|
|
6110
|
+
readonly path: "/canvas/v1/canvases/{canvas_id}";
|
|
6111
|
+
readonly streaming: "no";
|
|
6112
|
+
readonly pagination: false;
|
|
6113
|
+
readonly pathParams: readonly [{
|
|
6114
|
+
readonly name: "canvas_id";
|
|
6115
|
+
readonly sdkName: "canvas_id";
|
|
6116
|
+
readonly 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.";
|
|
6117
|
+
}];
|
|
6118
|
+
readonly query: readonly [];
|
|
6119
|
+
}, {
|
|
6120
|
+
readonly resource: "canvas.canvases";
|
|
6121
|
+
readonly method: "retrieve";
|
|
6122
|
+
readonly summary: "Retrieve canvas";
|
|
6123
|
+
readonly 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.";
|
|
6124
|
+
readonly http: "GET";
|
|
6125
|
+
readonly path: "/canvas/v1/canvases/{canvas_id}";
|
|
6126
|
+
readonly streaming: "no";
|
|
6127
|
+
readonly pagination: false;
|
|
6128
|
+
readonly pathParams: readonly [{
|
|
6129
|
+
readonly name: "canvas_id";
|
|
6130
|
+
readonly sdkName: "canvas_id";
|
|
6131
|
+
readonly 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.";
|
|
6132
|
+
}];
|
|
6133
|
+
readonly query: readonly [];
|
|
6134
|
+
}, {
|
|
6135
|
+
readonly resource: "canvas.canvases";
|
|
6136
|
+
readonly method: "update";
|
|
6137
|
+
readonly summary: "Update canvas";
|
|
6138
|
+
readonly description: "Rename a canvas or move it to a collection without editing its design content. Use a canvas id from canvases.list and a collection id from collections.list. Send collection_id=null to make it uncategorized; omit either field to preserve its current value. A canvas belongs to at most one collection. The destination must belong to your organization. Renaming keeps the canvas version unchanged.";
|
|
6139
|
+
readonly http: "PATCH";
|
|
6140
|
+
readonly path: "/canvas/v1/canvases/{canvas_id}";
|
|
6141
|
+
readonly streaming: "no";
|
|
6142
|
+
readonly pagination: false;
|
|
6143
|
+
readonly pathParams: readonly [{
|
|
6144
|
+
readonly name: "canvas_id";
|
|
6145
|
+
readonly sdkName: "canvas_id";
|
|
6146
|
+
readonly 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.";
|
|
6147
|
+
}];
|
|
6148
|
+
readonly query: readonly [];
|
|
6149
|
+
readonly body: {
|
|
6150
|
+
readonly required: true;
|
|
6151
|
+
readonly fields: readonly [{
|
|
6152
|
+
readonly name: "name";
|
|
6153
|
+
readonly type: "string";
|
|
6154
|
+
readonly required: false;
|
|
6155
|
+
readonly description: "New canvas display name; surrounding whitespace is trimmed, blank names use Untitled, and omission preserves the current name.";
|
|
6156
|
+
}, {
|
|
6157
|
+
readonly name: "collection_id";
|
|
6158
|
+
readonly type: "string";
|
|
6159
|
+
readonly required: false;
|
|
6160
|
+
readonly description: "Move to this collection id from collections.list; null removes the canvas from its collection. Omission preserves the current assignment.";
|
|
6161
|
+
}];
|
|
6162
|
+
};
|
|
6163
|
+
}, {
|
|
6164
|
+
readonly resource: "canvas.canvases.images";
|
|
6165
|
+
readonly method: "list";
|
|
6166
|
+
readonly summary: "Render canvas nodes";
|
|
6167
|
+
readonly 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.";
|
|
6168
|
+
readonly http: "GET";
|
|
6169
|
+
readonly path: "/canvas/v1/canvases/{canvas_id}/images";
|
|
6170
|
+
readonly streaming: "no";
|
|
6171
|
+
readonly pagination: false;
|
|
6172
|
+
readonly pathParams: readonly [{
|
|
6173
|
+
readonly name: "canvas_id";
|
|
6174
|
+
readonly sdkName: "canvas_id";
|
|
6175
|
+
readonly 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.";
|
|
6176
|
+
}];
|
|
6177
|
+
readonly query: readonly [{
|
|
6178
|
+
readonly name: "ids";
|
|
6179
|
+
readonly type: "string";
|
|
6180
|
+
readonly required: true;
|
|
6181
|
+
readonly description: "Comma-separated list of 1–4 node ids to render, from retrieve, execute.created or execute.screenshots.";
|
|
6182
|
+
}, {
|
|
6183
|
+
readonly name: "scale";
|
|
6184
|
+
readonly type: "number";
|
|
6185
|
+
readonly required: false;
|
|
6186
|
+
readonly description: "Output pixel scale relative to canvas dimensions, from 0.25 to 4 inclusive; defaults to 1 when omitted.";
|
|
6187
|
+
}, {
|
|
6188
|
+
readonly name: "format";
|
|
6189
|
+
readonly type: "string";
|
|
6190
|
+
readonly enum: readonly ["png"];
|
|
6191
|
+
readonly required: false;
|
|
6192
|
+
readonly description: "Image encoding; png produces a PNG data URL and is the only supported value. Omit to use png.";
|
|
6193
|
+
}];
|
|
6194
|
+
}, {
|
|
6195
|
+
readonly resource: "canvas.canvases.nodes";
|
|
6196
|
+
readonly method: "list";
|
|
6197
|
+
readonly summary: "Read canvas nodes";
|
|
6198
|
+
readonly 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.";
|
|
6199
|
+
readonly http: "GET";
|
|
6200
|
+
readonly path: "/canvas/v1/canvases/{canvas_id}/nodes";
|
|
6201
|
+
readonly streaming: "no";
|
|
6202
|
+
readonly pagination: false;
|
|
6203
|
+
readonly pathParams: readonly [{
|
|
6204
|
+
readonly name: "canvas_id";
|
|
6205
|
+
readonly sdkName: "canvas_id";
|
|
6206
|
+
readonly 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.";
|
|
6207
|
+
}];
|
|
6208
|
+
readonly query: readonly [{
|
|
6209
|
+
readonly name: "ids";
|
|
6210
|
+
readonly type: "string";
|
|
6211
|
+
readonly required: true;
|
|
6212
|
+
readonly 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.";
|
|
6213
|
+
}, {
|
|
6214
|
+
readonly name: "depth";
|
|
6215
|
+
readonly type: "integer";
|
|
6216
|
+
readonly required: false;
|
|
6217
|
+
readonly 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.";
|
|
6218
|
+
}];
|
|
6219
|
+
}, {
|
|
6220
|
+
readonly resource: "canvas.canvases";
|
|
6221
|
+
readonly method: "execute";
|
|
6222
|
+
readonly summary: "Execute canvas script";
|
|
6223
|
+
readonly 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";
|
|
6224
|
+
readonly http: "POST";
|
|
6225
|
+
readonly path: "/canvas/v1/canvases/{canvas_id}:execute";
|
|
6226
|
+
readonly streaming: "no";
|
|
6227
|
+
readonly pagination: false;
|
|
6228
|
+
readonly pathParams: readonly [{
|
|
6229
|
+
readonly name: "canvas_id";
|
|
6230
|
+
readonly sdkName: "canvas_id";
|
|
6231
|
+
readonly 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.";
|
|
6232
|
+
}];
|
|
6233
|
+
readonly query: readonly [];
|
|
6234
|
+
readonly body: {
|
|
6235
|
+
readonly required: true;
|
|
6236
|
+
readonly fields: readonly [{
|
|
6237
|
+
readonly name: "script";
|
|
6238
|
+
readonly type: "string";
|
|
6239
|
+
readonly required: false;
|
|
6240
|
+
readonly 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.";
|
|
6241
|
+
}, {
|
|
6242
|
+
readonly name: "edit_id";
|
|
6243
|
+
readonly type: "string";
|
|
6244
|
+
readonly required: false;
|
|
6245
|
+
readonly description: "Saved failed-script identifier from error.details.edit_id; use with edits instead of script within ten minutes of the failure.";
|
|
6246
|
+
}, {
|
|
6247
|
+
readonly name: "edits";
|
|
6248
|
+
readonly type: "array";
|
|
6249
|
+
readonly itemType: "object";
|
|
6250
|
+
readonly required: false;
|
|
6251
|
+
readonly description: "Text replacements applied to the source identified by edit_id before rerunning; use error line, column or rejection to choose the correction.";
|
|
6252
|
+
}, {
|
|
6253
|
+
readonly name: "expected_version";
|
|
6254
|
+
readonly type: "string";
|
|
6255
|
+
readonly required: false;
|
|
6256
|
+
readonly 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.";
|
|
6257
|
+
}];
|
|
6258
|
+
};
|
|
6259
|
+
}, {
|
|
6260
|
+
readonly resource: "canvas.collections";
|
|
6261
|
+
readonly method: "list";
|
|
6262
|
+
readonly summary: "List collections";
|
|
6263
|
+
readonly description: "Find collections and ids for filtering or moving canvases. All organization collections are returned in name order in one response; next_cursor is always null. canvas_count excludes deleted canvases. total_count counts all live canvases, rather than collections, and uncategorized_count counts live canvases without a collection. Use canvases.list with collection_id to read a collection or none to read uncategorized canvases.";
|
|
6264
|
+
readonly http: "GET";
|
|
6265
|
+
readonly path: "/canvas/v1/collections";
|
|
6266
|
+
readonly streaming: "no";
|
|
6267
|
+
readonly pagination: false;
|
|
6268
|
+
readonly pathParams: readonly [];
|
|
6269
|
+
readonly query: readonly [];
|
|
6270
|
+
}, {
|
|
6271
|
+
readonly resource: "canvas.collections";
|
|
6272
|
+
readonly method: "create";
|
|
6273
|
+
readonly summary: "Create collection";
|
|
6274
|
+
readonly description: "Organize canvases by creating a one-level collection in your organization. Send a name of 1–100 characters after trimming; duplicate names are allowed. Each call creates a new collection, initially containing no canvases. Use canvases.update with its id as collection_id to move existing canvases into it. Collections cannot be nested and an organization can have at most 200.";
|
|
6275
|
+
readonly http: "POST";
|
|
6276
|
+
readonly path: "/canvas/v1/collections";
|
|
6277
|
+
readonly streaming: "no";
|
|
6278
|
+
readonly pagination: false;
|
|
6279
|
+
readonly pathParams: readonly [];
|
|
6280
|
+
readonly query: readonly [];
|
|
6281
|
+
readonly body: {
|
|
6282
|
+
readonly required: true;
|
|
6283
|
+
readonly fields: readonly [{
|
|
6284
|
+
readonly name: "name";
|
|
6285
|
+
readonly type: "string";
|
|
6286
|
+
readonly required: true;
|
|
6287
|
+
readonly description: "Collection display name, 1–100 characters after trimming surrounding whitespace; duplicate names within the organization are allowed.";
|
|
6288
|
+
}];
|
|
6289
|
+
};
|
|
6290
|
+
}, {
|
|
6291
|
+
readonly resource: "canvas.collections";
|
|
6292
|
+
readonly method: "delete";
|
|
6293
|
+
readonly summary: "Delete collection";
|
|
6294
|
+
readonly description: "Remove a collection using an id from collections.list. All its canvases are preserved and become uncategorized, with collection_id set to null; read them using canvases.list with collection_id=none. The removed collection cannot be retrieved again, and repeating deletion returns COLLECTION_NOT_FOUND.";
|
|
6295
|
+
readonly http: "DELETE";
|
|
6296
|
+
readonly path: "/canvas/v1/collections/{collection_id}";
|
|
6297
|
+
readonly streaming: "no";
|
|
6298
|
+
readonly pagination: false;
|
|
6299
|
+
readonly pathParams: readonly [{
|
|
6300
|
+
readonly name: "collection_id";
|
|
6301
|
+
readonly sdkName: "collection_id";
|
|
6302
|
+
readonly description: "Collection id from collections.create or collections.list, in the form col_ followed by 16 lowercase letters or digits; a display name is not an identifier.";
|
|
6303
|
+
}];
|
|
6304
|
+
readonly query: readonly [];
|
|
6305
|
+
}, {
|
|
6306
|
+
readonly resource: "canvas.collections";
|
|
6307
|
+
readonly method: "retrieve";
|
|
6308
|
+
readonly summary: "Retrieve collection";
|
|
6309
|
+
readonly description: "Inspect one collection and its current live canvas count using an id from collections.list or collections.create. The collection must belong to the API key organization. To read its canvases, pass the same id as collection_id to canvases.list; this response contains collection metadata only.";
|
|
6310
|
+
readonly http: "GET";
|
|
6311
|
+
readonly path: "/canvas/v1/collections/{collection_id}";
|
|
6312
|
+
readonly streaming: "no";
|
|
6313
|
+
readonly pagination: false;
|
|
6314
|
+
readonly pathParams: readonly [{
|
|
6315
|
+
readonly name: "collection_id";
|
|
6316
|
+
readonly sdkName: "collection_id";
|
|
6317
|
+
readonly description: "Collection id from collections.create or collections.list, in the form col_ followed by 16 lowercase letters or digits; a display name is not an identifier.";
|
|
6318
|
+
}];
|
|
6319
|
+
readonly query: readonly [];
|
|
6320
|
+
}, {
|
|
6321
|
+
readonly resource: "canvas.collections";
|
|
6322
|
+
readonly method: "update";
|
|
6323
|
+
readonly summary: "Rename collection";
|
|
6324
|
+
readonly description: "Change the display name of a collection from collections.list without changing its id or canvas assignments. Names contain 1–100 characters after trimming and may match another collection name. This operation does not move canvases; use canvases.update with collection_id for that.";
|
|
6325
|
+
readonly http: "PATCH";
|
|
6326
|
+
readonly path: "/canvas/v1/collections/{collection_id}";
|
|
6327
|
+
readonly streaming: "no";
|
|
6328
|
+
readonly pagination: false;
|
|
6329
|
+
readonly pathParams: readonly [{
|
|
6330
|
+
readonly name: "collection_id";
|
|
6331
|
+
readonly sdkName: "collection_id";
|
|
6332
|
+
readonly description: "Collection id from collections.create or collections.list, in the form col_ followed by 16 lowercase letters or digits; a display name is not an identifier.";
|
|
6333
|
+
}];
|
|
6334
|
+
readonly query: readonly [];
|
|
6335
|
+
readonly body: {
|
|
6336
|
+
readonly required: true;
|
|
6337
|
+
readonly fields: readonly [{
|
|
6338
|
+
readonly name: "name";
|
|
6339
|
+
readonly type: "string";
|
|
6340
|
+
readonly required: true;
|
|
6341
|
+
readonly description: "Collection display name, 1–100 characters after trimming surrounding whitespace; duplicate names within the organization are allowed.";
|
|
6342
|
+
}];
|
|
6343
|
+
};
|
|
6344
|
+
}, {
|
|
6345
|
+
readonly resource: "cut.exports";
|
|
6346
|
+
readonly method: "retrieve";
|
|
6347
|
+
readonly summary: "Retrieve video export";
|
|
6348
|
+
readonly 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.";
|
|
6349
|
+
readonly http: "GET";
|
|
6350
|
+
readonly path: "/cut/v1/exports/{export_id}";
|
|
6351
|
+
readonly streaming: "no";
|
|
6352
|
+
readonly pagination: false;
|
|
6353
|
+
readonly pathParams: readonly [{
|
|
6354
|
+
readonly name: "export_id";
|
|
6355
|
+
readonly sdkName: "export_id";
|
|
6356
|
+
readonly description: "Export identifier returned by its create or list operation; use the id, not a display name.";
|
|
6357
|
+
}];
|
|
6358
|
+
readonly query: readonly [];
|
|
6359
|
+
}, {
|
|
6360
|
+
readonly resource: "cut.exports";
|
|
6361
|
+
readonly method: "cancel";
|
|
6362
|
+
readonly summary: "Cancel video export";
|
|
6363
|
+
readonly 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.";
|
|
6364
|
+
readonly http: "POST";
|
|
6365
|
+
readonly path: "/cut/v1/exports/{export_id}:cancel";
|
|
6366
|
+
readonly streaming: "no";
|
|
6367
|
+
readonly pagination: false;
|
|
6368
|
+
readonly pathParams: readonly [{
|
|
6369
|
+
readonly name: "export_id";
|
|
6370
|
+
readonly sdkName: "export_id";
|
|
6371
|
+
readonly description: "Export identifier returned by its create or list operation; use the id, not a display name.";
|
|
6372
|
+
}];
|
|
6373
|
+
readonly query: readonly [];
|
|
6374
|
+
}, {
|
|
6375
|
+
readonly resource: "cut.projects";
|
|
6376
|
+
readonly method: "list";
|
|
6377
|
+
readonly summary: "List projects";
|
|
6378
|
+
readonly 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.";
|
|
6379
|
+
readonly http: "GET";
|
|
6380
|
+
readonly path: "/cut/v1/projects";
|
|
6381
|
+
readonly streaming: "no";
|
|
6382
|
+
readonly pagination: false;
|
|
6383
|
+
readonly pathParams: readonly [];
|
|
6384
|
+
readonly query: readonly [{
|
|
6385
|
+
readonly name: "page_size";
|
|
6386
|
+
readonly type: "integer";
|
|
6387
|
+
readonly required: false;
|
|
6388
|
+
readonly description: "Maximum resources in one page, from 1 to 100; defaults to 50.";
|
|
6389
|
+
}, {
|
|
6390
|
+
readonly name: "page_token";
|
|
6391
|
+
readonly type: "string";
|
|
6392
|
+
readonly required: false;
|
|
6393
|
+
readonly description: "Opaque next_page_token from the preceding page; omit on the first request.";
|
|
6394
|
+
}, {
|
|
6395
|
+
readonly name: "filter";
|
|
6396
|
+
readonly type: "string";
|
|
6397
|
+
readonly required: false;
|
|
6398
|
+
readonly description: "Optional resource filter; projects supports state = \"active\" or state = \"deleted\".";
|
|
6399
|
+
}, {
|
|
6400
|
+
readonly name: "order_by";
|
|
6401
|
+
readonly type: "string";
|
|
6402
|
+
readonly required: false;
|
|
6403
|
+
readonly description: "Optional ordering expression; projects supports updateTime desc.";
|
|
6404
|
+
}];
|
|
6405
|
+
}, {
|
|
6406
|
+
readonly resource: "cut.projects";
|
|
6407
|
+
readonly method: "create";
|
|
6408
|
+
readonly summary: "Create project";
|
|
6409
|
+
readonly 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.";
|
|
6410
|
+
readonly http: "POST";
|
|
6411
|
+
readonly path: "/cut/v1/projects";
|
|
6412
|
+
readonly streaming: "no";
|
|
6413
|
+
readonly pagination: false;
|
|
6414
|
+
readonly pathParams: readonly [];
|
|
6415
|
+
readonly query: readonly [];
|
|
6416
|
+
readonly body: {
|
|
6417
|
+
readonly required: true;
|
|
6418
|
+
readonly fields: readonly [{
|
|
6419
|
+
readonly name: "name";
|
|
6420
|
+
readonly type: "string";
|
|
6421
|
+
readonly required: true;
|
|
6422
|
+
readonly description: "Human-readable project name; required and must contain non-whitespace text.";
|
|
6423
|
+
}, {
|
|
6424
|
+
readonly name: "labels";
|
|
6425
|
+
readonly type: "object";
|
|
6426
|
+
readonly required: false;
|
|
6427
|
+
readonly description: "User-defined string labels for organizing projects; label keys retain their original spelling.";
|
|
6428
|
+
}, {
|
|
6429
|
+
readonly name: "settings";
|
|
6430
|
+
readonly type: "object";
|
|
6431
|
+
readonly required: true;
|
|
6432
|
+
readonly description: "Dimensions and frame rate for a new editing project.";
|
|
6433
|
+
}, {
|
|
6434
|
+
readonly name: "bindings";
|
|
6435
|
+
readonly type: "array";
|
|
6436
|
+
readonly itemType: "object";
|
|
6437
|
+
readonly required: true;
|
|
6438
|
+
readonly description: "Accessible library bindings; exactly one read_write entry must have default_upload true.";
|
|
6439
|
+
}];
|
|
6440
|
+
};
|
|
6441
|
+
}, {
|
|
6442
|
+
readonly resource: "cut.projects";
|
|
6443
|
+
readonly method: "delete";
|
|
6444
|
+
readonly summary: "Delete project";
|
|
6445
|
+
readonly 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.";
|
|
6446
|
+
readonly http: "DELETE";
|
|
6447
|
+
readonly path: "/cut/v1/projects/{project_id}";
|
|
6448
|
+
readonly streaming: "no";
|
|
6449
|
+
readonly pagination: false;
|
|
6450
|
+
readonly pathParams: readonly [{
|
|
6451
|
+
readonly name: "project_id";
|
|
6452
|
+
readonly sdkName: "project_id";
|
|
6453
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6454
|
+
}];
|
|
6455
|
+
readonly query: readonly [];
|
|
6456
|
+
}, {
|
|
6457
|
+
readonly resource: "cut.projects";
|
|
6458
|
+
readonly method: "retrieve";
|
|
6459
|
+
readonly summary: "Retrieve project";
|
|
6460
|
+
readonly 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.";
|
|
6461
|
+
readonly http: "GET";
|
|
6462
|
+
readonly path: "/cut/v1/projects/{project_id}";
|
|
6463
|
+
readonly streaming: "no";
|
|
6464
|
+
readonly pagination: false;
|
|
6465
|
+
readonly pathParams: readonly [{
|
|
6466
|
+
readonly name: "project_id";
|
|
6467
|
+
readonly sdkName: "project_id";
|
|
6468
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6469
|
+
}];
|
|
6470
|
+
readonly query: readonly [{
|
|
6471
|
+
readonly name: "expand";
|
|
6472
|
+
readonly type: "string";
|
|
6473
|
+
readonly required: false;
|
|
6474
|
+
readonly description: "Comma-separated expansions: timeline includes clips, exports includes render jobs, versions includes saved snapshots.";
|
|
6475
|
+
}];
|
|
6476
|
+
}, {
|
|
6477
|
+
readonly resource: "cut.projects";
|
|
6478
|
+
readonly method: "update";
|
|
6479
|
+
readonly summary: "Update project metadata";
|
|
6480
|
+
readonly 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.";
|
|
6481
|
+
readonly http: "PATCH";
|
|
6482
|
+
readonly path: "/cut/v1/projects/{project_id}";
|
|
6483
|
+
readonly streaming: "no";
|
|
6484
|
+
readonly pagination: false;
|
|
6485
|
+
readonly pathParams: readonly [{
|
|
6486
|
+
readonly name: "project_id";
|
|
6487
|
+
readonly sdkName: "project_id";
|
|
6488
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6489
|
+
}];
|
|
6490
|
+
readonly query: readonly [];
|
|
6491
|
+
readonly body: {
|
|
6492
|
+
readonly required: true;
|
|
6493
|
+
readonly fields: readonly [{
|
|
6494
|
+
readonly name: "name";
|
|
6495
|
+
readonly type: "string";
|
|
6496
|
+
readonly required: false;
|
|
6497
|
+
readonly description: "Replacement display name when update_mask includes name.";
|
|
6498
|
+
}, {
|
|
6499
|
+
readonly name: "labels";
|
|
6500
|
+
readonly type: "object";
|
|
6501
|
+
readonly required: false;
|
|
6502
|
+
readonly description: "User-defined string labels for organizing projects; label keys retain their original spelling.";
|
|
6503
|
+
}, {
|
|
6504
|
+
readonly name: "update_mask";
|
|
6505
|
+
readonly type: "array";
|
|
6506
|
+
readonly itemType: "string";
|
|
6507
|
+
readonly enum: readonly ["name", "labels"];
|
|
6508
|
+
readonly required: true;
|
|
6509
|
+
readonly description: "Metadata fields to replace; name changes the display name and labels replaces all labels.";
|
|
6510
|
+
}];
|
|
6511
|
+
};
|
|
6512
|
+
}, {
|
|
6513
|
+
readonly resource: "cut.projects.analysis";
|
|
6514
|
+
readonly method: "create";
|
|
6515
|
+
readonly summary: "Analyze project media";
|
|
6516
|
+
readonly 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.";
|
|
6517
|
+
readonly http: "POST";
|
|
6518
|
+
readonly path: "/cut/v1/projects/{project_id}/analysis";
|
|
6519
|
+
readonly streaming: "no";
|
|
6520
|
+
readonly pagination: false;
|
|
6521
|
+
readonly pathParams: readonly [{
|
|
6522
|
+
readonly name: "project_id";
|
|
6523
|
+
readonly sdkName: "project_id";
|
|
6524
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6525
|
+
}];
|
|
6526
|
+
readonly query: readonly [];
|
|
6527
|
+
readonly body: {
|
|
6528
|
+
readonly required: true;
|
|
6529
|
+
readonly fields: readonly [{
|
|
6530
|
+
readonly name: "media";
|
|
6531
|
+
readonly type: "array";
|
|
6532
|
+
readonly itemType: "object";
|
|
6533
|
+
readonly required: false;
|
|
6534
|
+
readonly description: "Bound-library assets to analyze; omission selects project media.";
|
|
6535
|
+
}, {
|
|
6536
|
+
readonly name: "kinds";
|
|
6537
|
+
readonly type: "array";
|
|
6538
|
+
readonly itemType: "string";
|
|
6539
|
+
readonly enum: readonly ["silence", "filler", "scenes"];
|
|
6540
|
+
readonly required: true;
|
|
6541
|
+
readonly description: "Analysis types to request for the selected source assets.";
|
|
6542
|
+
}];
|
|
6543
|
+
};
|
|
6544
|
+
}, {
|
|
6545
|
+
readonly resource: "cut.projects.bindings";
|
|
6546
|
+
readonly method: "list";
|
|
6547
|
+
readonly summary: "List library bindings";
|
|
6548
|
+
readonly 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.";
|
|
6549
|
+
readonly http: "GET";
|
|
6550
|
+
readonly path: "/cut/v1/projects/{project_id}/bindings";
|
|
6551
|
+
readonly streaming: "no";
|
|
6552
|
+
readonly pagination: false;
|
|
6553
|
+
readonly pathParams: readonly [{
|
|
6554
|
+
readonly name: "project_id";
|
|
6555
|
+
readonly sdkName: "project_id";
|
|
6556
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6557
|
+
}];
|
|
6558
|
+
readonly query: readonly [];
|
|
6559
|
+
}, {
|
|
6560
|
+
readonly resource: "cut.projects.bindings";
|
|
6561
|
+
readonly method: "create";
|
|
6562
|
+
readonly summary: "Bind media library";
|
|
6563
|
+
readonly 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.";
|
|
6564
|
+
readonly http: "POST";
|
|
6565
|
+
readonly path: "/cut/v1/projects/{project_id}/bindings";
|
|
6566
|
+
readonly streaming: "no";
|
|
6567
|
+
readonly pagination: false;
|
|
6568
|
+
readonly pathParams: readonly [{
|
|
6569
|
+
readonly name: "project_id";
|
|
6570
|
+
readonly sdkName: "project_id";
|
|
6571
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6572
|
+
}];
|
|
6573
|
+
readonly query: readonly [];
|
|
6574
|
+
readonly body: {
|
|
6575
|
+
readonly required: true;
|
|
6576
|
+
readonly fields: readonly [{
|
|
6577
|
+
readonly name: "binding";
|
|
6578
|
+
readonly type: "object";
|
|
6579
|
+
readonly required: true;
|
|
6580
|
+
readonly description: "A named project link to a media library. Exactly one read_write binding must be default_upload.";
|
|
6581
|
+
}];
|
|
6582
|
+
};
|
|
6583
|
+
}, {
|
|
6584
|
+
readonly resource: "cut.projects.bindings";
|
|
6585
|
+
readonly method: "delete";
|
|
6586
|
+
readonly summary: "Remove library binding";
|
|
6587
|
+
readonly 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.";
|
|
6588
|
+
readonly http: "DELETE";
|
|
6589
|
+
readonly path: "/cut/v1/projects/{project_id}/bindings/{name}";
|
|
6590
|
+
readonly streaming: "no";
|
|
6591
|
+
readonly pagination: false;
|
|
6592
|
+
readonly pathParams: readonly [{
|
|
6593
|
+
readonly name: "project_id";
|
|
6594
|
+
readonly sdkName: "project_id";
|
|
6595
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6596
|
+
}, {
|
|
6597
|
+
readonly name: "name";
|
|
6598
|
+
readonly sdkName: "name";
|
|
6599
|
+
readonly description: "Project-local binding alias from bindings.list; detach only after removing all clips that reference its library.";
|
|
6600
|
+
}];
|
|
6601
|
+
readonly query: readonly [];
|
|
6602
|
+
}, {
|
|
6603
|
+
readonly resource: "cut.projects.exports";
|
|
6604
|
+
readonly method: "list";
|
|
6605
|
+
readonly summary: "List project exports";
|
|
6606
|
+
readonly 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.";
|
|
6607
|
+
readonly http: "GET";
|
|
6608
|
+
readonly path: "/cut/v1/projects/{project_id}/exports";
|
|
6609
|
+
readonly streaming: "no";
|
|
6610
|
+
readonly pagination: false;
|
|
6611
|
+
readonly pathParams: readonly [{
|
|
6612
|
+
readonly name: "project_id";
|
|
6613
|
+
readonly sdkName: "project_id";
|
|
6614
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6615
|
+
}];
|
|
6616
|
+
readonly query: readonly [{
|
|
6617
|
+
readonly name: "page_size";
|
|
6618
|
+
readonly type: "integer";
|
|
6619
|
+
readonly required: false;
|
|
6620
|
+
readonly description: "Maximum resources in one page, from 1 to 100; defaults to 50.";
|
|
6621
|
+
}, {
|
|
6622
|
+
readonly name: "page_token";
|
|
6623
|
+
readonly type: "string";
|
|
6624
|
+
readonly required: false;
|
|
6625
|
+
readonly description: "Opaque next_page_token from the preceding page; omit on the first request.";
|
|
6626
|
+
}, {
|
|
6627
|
+
readonly name: "filter";
|
|
6628
|
+
readonly type: "string";
|
|
6629
|
+
readonly required: false;
|
|
6630
|
+
readonly description: "Optional resource filter; projects supports state = \"active\" or state = \"deleted\".";
|
|
6631
|
+
}, {
|
|
6632
|
+
readonly name: "order_by";
|
|
6633
|
+
readonly type: "string";
|
|
6634
|
+
readonly required: false;
|
|
6635
|
+
readonly description: "Optional ordering expression; projects supports updateTime desc.";
|
|
6636
|
+
}];
|
|
6637
|
+
}, {
|
|
6638
|
+
readonly resource: "cut.projects.exports";
|
|
6639
|
+
readonly method: "create";
|
|
6640
|
+
readonly summary: "Create video export";
|
|
6641
|
+
readonly 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.";
|
|
6642
|
+
readonly http: "POST";
|
|
6643
|
+
readonly path: "/cut/v1/projects/{project_id}/exports";
|
|
6644
|
+
readonly streaming: "no";
|
|
6645
|
+
readonly pagination: false;
|
|
6646
|
+
readonly pathParams: readonly [{
|
|
6647
|
+
readonly name: "project_id";
|
|
6648
|
+
readonly sdkName: "project_id";
|
|
6649
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6650
|
+
}];
|
|
6651
|
+
readonly query: readonly [];
|
|
6652
|
+
readonly body: {
|
|
6653
|
+
readonly required: true;
|
|
6654
|
+
readonly fields: readonly [{
|
|
6655
|
+
readonly name: "output";
|
|
6656
|
+
readonly type: "object";
|
|
6657
|
+
readonly required: false;
|
|
6658
|
+
readonly description: "Rendering options for an exported video.";
|
|
6659
|
+
}, {
|
|
6660
|
+
readonly name: "binding";
|
|
6661
|
+
readonly type: "string";
|
|
6662
|
+
readonly required: false;
|
|
6663
|
+
readonly description: "Writable binding name used as the export destination; omission uses default_upload.";
|
|
6664
|
+
}, {
|
|
6665
|
+
readonly name: "revision";
|
|
6666
|
+
readonly type: "integer";
|
|
6667
|
+
readonly required: false;
|
|
6668
|
+
readonly description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write.";
|
|
6669
|
+
}];
|
|
6670
|
+
};
|
|
6671
|
+
}, {
|
|
6672
|
+
readonly resource: "cut.projects.frames";
|
|
6673
|
+
readonly method: "list";
|
|
6674
|
+
readonly summary: "Render preview frames";
|
|
6675
|
+
readonly 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.";
|
|
6676
|
+
readonly http: "GET";
|
|
6677
|
+
readonly path: "/cut/v1/projects/{project_id}/frames";
|
|
6678
|
+
readonly streaming: "no";
|
|
6679
|
+
readonly pagination: false;
|
|
6680
|
+
readonly pathParams: readonly [{
|
|
6681
|
+
readonly name: "project_id";
|
|
6682
|
+
readonly sdkName: "project_id";
|
|
6683
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6684
|
+
}];
|
|
6685
|
+
readonly query: readonly [{
|
|
6686
|
+
readonly name: "at";
|
|
6687
|
+
readonly type: "string";
|
|
6688
|
+
readonly required: true;
|
|
6689
|
+
readonly description: "Required comma-separated non-negative project times in seconds, for example 12,15.5.";
|
|
6690
|
+
}, {
|
|
6691
|
+
readonly name: "scale";
|
|
6692
|
+
readonly type: "number";
|
|
6693
|
+
readonly required: false;
|
|
6694
|
+
readonly description: "Positive image size multiplier; 0.5 renders at half the project dimensions.";
|
|
6695
|
+
}, {
|
|
6696
|
+
readonly name: "revision";
|
|
6697
|
+
readonly type: "integer";
|
|
6698
|
+
readonly required: false;
|
|
6699
|
+
readonly description: "Optional committed project revision from state or execute; omission selects the current revision.";
|
|
5751
6700
|
}];
|
|
5752
6701
|
}, {
|
|
5753
|
-
readonly resource: "
|
|
5754
|
-
readonly method: "
|
|
5755
|
-
readonly summary: "
|
|
5756
|
-
readonly description: "
|
|
6702
|
+
readonly resource: "cut.projects.media";
|
|
6703
|
+
readonly method: "import";
|
|
6704
|
+
readonly summary: "Import project media";
|
|
6705
|
+
readonly 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.";
|
|
5757
6706
|
readonly http: "POST";
|
|
5758
|
-
readonly path: "/
|
|
6707
|
+
readonly path: "/cut/v1/projects/{project_id}/media:import";
|
|
5759
6708
|
readonly streaming: "no";
|
|
5760
6709
|
readonly pagination: false;
|
|
5761
6710
|
readonly pathParams: readonly [{
|
|
5762
|
-
readonly name: "
|
|
5763
|
-
readonly sdkName: "
|
|
5764
|
-
readonly description: "
|
|
6711
|
+
readonly name: "project_id";
|
|
6712
|
+
readonly sdkName: "project_id";
|
|
6713
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
5765
6714
|
}];
|
|
5766
6715
|
readonly query: readonly [];
|
|
5767
6716
|
readonly body: {
|
|
5768
6717
|
readonly required: true;
|
|
5769
6718
|
readonly fields: readonly [{
|
|
5770
|
-
readonly name: "
|
|
6719
|
+
readonly name: "binding";
|
|
5771
6720
|
readonly type: "string";
|
|
5772
|
-
readonly
|
|
6721
|
+
readonly required: false;
|
|
6722
|
+
readonly description: "Writable binding name from project bindings; omission uses default_upload.";
|
|
6723
|
+
}, {
|
|
6724
|
+
readonly name: "source";
|
|
6725
|
+
readonly type: "object";
|
|
5773
6726
|
readonly required: true;
|
|
5774
|
-
readonly description: "
|
|
6727
|
+
readonly description: "Exactly one input source for the imported asset.";
|
|
6728
|
+
}, {
|
|
6729
|
+
readonly name: "display_name";
|
|
6730
|
+
readonly type: "string";
|
|
6731
|
+
readonly required: false;
|
|
6732
|
+
readonly description: "Optional human-readable display name for the new media asset.";
|
|
5775
6733
|
}];
|
|
5776
6734
|
};
|
|
5777
6735
|
}, {
|
|
5778
|
-
readonly resource: "
|
|
5779
|
-
readonly method: "
|
|
5780
|
-
readonly summary: "
|
|
5781
|
-
readonly description: "
|
|
6736
|
+
readonly resource: "cut.projects";
|
|
6737
|
+
readonly method: "retrieveState";
|
|
6738
|
+
readonly summary: "Read editing state";
|
|
6739
|
+
readonly 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.";
|
|
5782
6740
|
readonly http: "GET";
|
|
5783
|
-
readonly path: "/
|
|
6741
|
+
readonly path: "/cut/v1/projects/{project_id}/state";
|
|
5784
6742
|
readonly streaming: "no";
|
|
5785
6743
|
readonly pagination: false;
|
|
5786
6744
|
readonly pathParams: readonly [{
|
|
5787
|
-
readonly name: "
|
|
5788
|
-
readonly sdkName: "
|
|
5789
|
-
readonly description: "
|
|
6745
|
+
readonly name: "project_id";
|
|
6746
|
+
readonly sdkName: "project_id";
|
|
6747
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
5790
6748
|
}];
|
|
5791
6749
|
readonly query: readonly [];
|
|
5792
6750
|
}, {
|
|
5793
|
-
readonly resource: "
|
|
5794
|
-
readonly method: "
|
|
5795
|
-
readonly summary: "
|
|
5796
|
-
readonly description: "
|
|
6751
|
+
readonly resource: "cut.projects";
|
|
6752
|
+
readonly method: "retrieveTimeline";
|
|
6753
|
+
readonly summary: "Read project timeline";
|
|
6754
|
+
readonly 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.";
|
|
5797
6755
|
readonly http: "GET";
|
|
5798
|
-
readonly path: "/
|
|
6756
|
+
readonly path: "/cut/v1/projects/{project_id}/timeline";
|
|
5799
6757
|
readonly streaming: "no";
|
|
5800
6758
|
readonly pagination: false;
|
|
5801
6759
|
readonly pathParams: readonly [{
|
|
5802
|
-
readonly name: "
|
|
5803
|
-
readonly sdkName: "
|
|
5804
|
-
readonly description: "
|
|
6760
|
+
readonly name: "project_id";
|
|
6761
|
+
readonly sdkName: "project_id";
|
|
6762
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
5805
6763
|
}];
|
|
5806
6764
|
readonly query: readonly [{
|
|
5807
|
-
readonly name: "
|
|
6765
|
+
readonly name: "view";
|
|
5808
6766
|
readonly type: "string";
|
|
6767
|
+
readonly enum: readonly ["full", "compact"];
|
|
5809
6768
|
readonly required: false;
|
|
5810
|
-
readonly description: "
|
|
6769
|
+
readonly description: "full returns structured clips; compact returns compact textual editing context.";
|
|
5811
6770
|
}, {
|
|
5812
|
-
readonly name: "
|
|
6771
|
+
readonly name: "from";
|
|
6772
|
+
readonly type: "number";
|
|
6773
|
+
readonly required: false;
|
|
6774
|
+
readonly description: "Optional start of the selected project range in seconds; omit for the beginning.";
|
|
6775
|
+
}, {
|
|
6776
|
+
readonly name: "to";
|
|
6777
|
+
readonly type: "number";
|
|
6778
|
+
readonly required: false;
|
|
6779
|
+
readonly description: "Optional end of the selected project range in seconds; omit for the end.";
|
|
6780
|
+
}, {
|
|
6781
|
+
readonly name: "tracks";
|
|
6782
|
+
readonly type: "string";
|
|
6783
|
+
readonly required: false;
|
|
6784
|
+
readonly description: "Comma-separated track ids from state to include; omit to include every track.";
|
|
6785
|
+
}];
|
|
6786
|
+
}, {
|
|
6787
|
+
readonly resource: "cut.projects.versions";
|
|
6788
|
+
readonly method: "list";
|
|
6789
|
+
readonly summary: "List saved versions";
|
|
6790
|
+
readonly 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.";
|
|
6791
|
+
readonly http: "GET";
|
|
6792
|
+
readonly path: "/cut/v1/projects/{project_id}/versions";
|
|
6793
|
+
readonly streaming: "no";
|
|
6794
|
+
readonly pagination: false;
|
|
6795
|
+
readonly pathParams: readonly [{
|
|
6796
|
+
readonly name: "project_id";
|
|
6797
|
+
readonly sdkName: "project_id";
|
|
6798
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6799
|
+
}];
|
|
6800
|
+
readonly query: readonly [{
|
|
6801
|
+
readonly name: "page_size";
|
|
5813
6802
|
readonly type: "integer";
|
|
5814
6803
|
readonly required: false;
|
|
5815
|
-
readonly description: "
|
|
6804
|
+
readonly description: "Maximum resources in one page, from 1 to 100; defaults to 50.";
|
|
5816
6805
|
}, {
|
|
5817
|
-
readonly name: "
|
|
6806
|
+
readonly name: "page_token";
|
|
5818
6807
|
readonly type: "string";
|
|
5819
6808
|
readonly required: false;
|
|
5820
|
-
readonly description: "
|
|
6809
|
+
readonly description: "Opaque next_page_token from the preceding page; omit on the first request.";
|
|
6810
|
+
}, {
|
|
6811
|
+
readonly name: "filter";
|
|
6812
|
+
readonly type: "string";
|
|
6813
|
+
readonly required: false;
|
|
6814
|
+
readonly description: "Optional resource filter; projects supports state = \"active\" or state = \"deleted\".";
|
|
6815
|
+
}, {
|
|
6816
|
+
readonly name: "order_by";
|
|
6817
|
+
readonly type: "string";
|
|
6818
|
+
readonly required: false;
|
|
6819
|
+
readonly description: "Optional ordering expression; projects supports updateTime desc.";
|
|
5821
6820
|
}];
|
|
5822
6821
|
}, {
|
|
5823
|
-
readonly resource: "
|
|
6822
|
+
readonly resource: "cut.projects.versions";
|
|
5824
6823
|
readonly method: "create";
|
|
5825
|
-
readonly summary: "
|
|
5826
|
-
readonly description: "
|
|
6824
|
+
readonly summary: "Save project version";
|
|
6825
|
+
readonly 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.";
|
|
5827
6826
|
readonly http: "POST";
|
|
5828
|
-
readonly path: "/
|
|
6827
|
+
readonly path: "/cut/v1/projects/{project_id}/versions";
|
|
5829
6828
|
readonly streaming: "no";
|
|
5830
6829
|
readonly pagination: false;
|
|
5831
6830
|
readonly pathParams: readonly [{
|
|
5832
|
-
readonly name: "
|
|
5833
|
-
readonly sdkName: "
|
|
5834
|
-
readonly description: "
|
|
6831
|
+
readonly name: "project_id";
|
|
6832
|
+
readonly sdkName: "project_id";
|
|
6833
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
5835
6834
|
}];
|
|
5836
6835
|
readonly query: readonly [];
|
|
5837
6836
|
readonly body: {
|
|
5838
6837
|
readonly required: true;
|
|
5839
6838
|
readonly fields: readonly [{
|
|
5840
|
-
readonly name: "
|
|
6839
|
+
readonly name: "label";
|
|
5841
6840
|
readonly type: "string";
|
|
5842
|
-
readonly required: true;
|
|
5843
|
-
readonly description: "交给人工操作者的接管说明,可为空字符串。";
|
|
5844
|
-
}, {
|
|
5845
|
-
readonly name: "timeoutMs";
|
|
5846
|
-
readonly type: "number";
|
|
5847
6841
|
readonly required: false;
|
|
5848
|
-
readonly description: "
|
|
6842
|
+
readonly description: "Human-readable snapshot label, such as Before captions.";
|
|
5849
6843
|
}];
|
|
5850
6844
|
};
|
|
5851
6845
|
}, {
|
|
5852
|
-
readonly resource: "
|
|
5853
|
-
readonly method: "
|
|
5854
|
-
readonly summary: "
|
|
5855
|
-
readonly description: "
|
|
6846
|
+
readonly resource: "cut.projects";
|
|
6847
|
+
readonly method: "execute";
|
|
6848
|
+
readonly summary: "Execute editing script";
|
|
6849
|
+
readonly 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```";
|
|
5856
6850
|
readonly http: "POST";
|
|
5857
|
-
readonly path: "/
|
|
6851
|
+
readonly path: "/cut/v1/projects/{project_id}:execute";
|
|
5858
6852
|
readonly streaming: "no";
|
|
5859
6853
|
readonly pagination: false;
|
|
5860
6854
|
readonly pathParams: readonly [{
|
|
5861
|
-
readonly name: "
|
|
5862
|
-
readonly sdkName: "
|
|
5863
|
-
readonly description: "
|
|
6855
|
+
readonly name: "project_id";
|
|
6856
|
+
readonly sdkName: "project_id";
|
|
6857
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
5864
6858
|
}];
|
|
5865
6859
|
readonly query: readonly [];
|
|
6860
|
+
readonly body: {
|
|
6861
|
+
readonly required: true;
|
|
6862
|
+
readonly fields: readonly [{
|
|
6863
|
+
readonly name: "script";
|
|
6864
|
+
readonly type: "string";
|
|
6865
|
+
readonly required: false;
|
|
6866
|
+
readonly 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.";
|
|
6867
|
+
}, {
|
|
6868
|
+
readonly name: "edit_id";
|
|
6869
|
+
readonly type: "string";
|
|
6870
|
+
readonly required: false;
|
|
6871
|
+
readonly description: "Saved failed script identifier from error.details.edit_id; valid for ten minutes.";
|
|
6872
|
+
}, {
|
|
6873
|
+
readonly name: "edits";
|
|
6874
|
+
readonly type: "array";
|
|
6875
|
+
readonly itemType: "object";
|
|
6876
|
+
readonly required: false;
|
|
6877
|
+
readonly description: "Literal replacements applied to the saved source before rerunning.";
|
|
6878
|
+
}, {
|
|
6879
|
+
readonly name: "expected_revision";
|
|
6880
|
+
readonly type: "integer";
|
|
6881
|
+
readonly required: false;
|
|
6882
|
+
readonly description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write.";
|
|
6883
|
+
}];
|
|
6884
|
+
};
|
|
5866
6885
|
}, {
|
|
5867
|
-
readonly resource: "
|
|
5868
|
-
readonly method: "
|
|
5869
|
-
readonly summary: "
|
|
5870
|
-
readonly description: "
|
|
5871
|
-
readonly http: "
|
|
5872
|
-
readonly path: "/
|
|
5873
|
-
readonly streaming: "
|
|
6886
|
+
readonly resource: "cut.projects";
|
|
6887
|
+
readonly method: "undelete";
|
|
6888
|
+
readonly summary: "Restore deleted project";
|
|
6889
|
+
readonly 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.";
|
|
6890
|
+
readonly http: "POST";
|
|
6891
|
+
readonly path: "/cut/v1/projects/{project_id}:undelete";
|
|
6892
|
+
readonly streaming: "no";
|
|
5874
6893
|
readonly pagination: false;
|
|
5875
6894
|
readonly pathParams: readonly [{
|
|
5876
|
-
readonly name: "
|
|
5877
|
-
readonly sdkName: "
|
|
5878
|
-
readonly description: "
|
|
6895
|
+
readonly name: "project_id";
|
|
6896
|
+
readonly sdkName: "project_id";
|
|
6897
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
5879
6898
|
}];
|
|
5880
6899
|
readonly query: readonly [];
|
|
5881
6900
|
}, {
|
|
5882
|
-
readonly resource: "
|
|
5883
|
-
readonly method: "
|
|
5884
|
-
readonly summary: "
|
|
5885
|
-
readonly description: "
|
|
6901
|
+
readonly resource: "cut.versions";
|
|
6902
|
+
readonly method: "restore";
|
|
6903
|
+
readonly summary: "Restore saved version";
|
|
6904
|
+
readonly 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.";
|
|
5886
6905
|
readonly http: "POST";
|
|
5887
|
-
readonly path: "/
|
|
6906
|
+
readonly path: "/cut/v1/versions/{version_id}:restore";
|
|
5888
6907
|
readonly streaming: "no";
|
|
5889
6908
|
readonly pagination: false;
|
|
5890
6909
|
readonly pathParams: readonly [{
|
|
5891
|
-
readonly name: "
|
|
5892
|
-
readonly sdkName: "
|
|
5893
|
-
readonly description: "
|
|
6910
|
+
readonly name: "version_id";
|
|
6911
|
+
readonly sdkName: "version_id";
|
|
6912
|
+
readonly description: "Version identifier returned by its create or list operation; use the id, not a display name.";
|
|
5894
6913
|
}];
|
|
5895
6914
|
readonly query: readonly [];
|
|
5896
|
-
readonly body: {
|
|
5897
|
-
readonly required: true;
|
|
5898
|
-
readonly fields: readonly [{
|
|
5899
|
-
readonly name: "viewerId";
|
|
5900
|
-
readonly type: "string";
|
|
5901
|
-
readonly required: true;
|
|
5902
|
-
readonly description: "当前观看者的稳定标识;同一观看者重复心跳应使用相同值,长度为 1–128 个 UTF-16 代码单元。";
|
|
5903
|
-
}];
|
|
5904
|
-
};
|
|
5905
6915
|
}, {
|
|
5906
6916
|
readonly resource: "database.databases";
|
|
5907
6917
|
readonly method: "list";
|
|
@@ -6805,6 +7815,30 @@ export declare const operations: readonly [{
|
|
|
6805
7815
|
readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
|
|
6806
7816
|
}];
|
|
6807
7817
|
readonly query: readonly [];
|
|
7818
|
+
}, {
|
|
7819
|
+
readonly resource: "file.files.contentLinks";
|
|
7820
|
+
readonly method: "revoke";
|
|
7821
|
+
readonly summary: "Revoke a file content link";
|
|
7822
|
+
readonly 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/>\"}.";
|
|
7823
|
+
readonly http: "POST";
|
|
7824
|
+
readonly path: "/file/v1/files/{file_id}/content_links:revoke";
|
|
7825
|
+
readonly streaming: "no";
|
|
7826
|
+
readonly pagination: false;
|
|
7827
|
+
readonly pathParams: readonly [{
|
|
7828
|
+
readonly name: "file_id";
|
|
7829
|
+
readonly sdkName: "file_id";
|
|
7830
|
+
readonly description: "Tenant-owned file identifier returned by file creation or listing; the token must name this same file.";
|
|
7831
|
+
}];
|
|
7832
|
+
readonly query: readonly [];
|
|
7833
|
+
readonly body: {
|
|
7834
|
+
readonly required: true;
|
|
7835
|
+
readonly fields: readonly [{
|
|
7836
|
+
readonly name: "token";
|
|
7837
|
+
readonly type: "string";
|
|
7838
|
+
readonly required: true;
|
|
7839
|
+
readonly description: "Signed token taken from the /c/ path component of a previously issued file content URL, without the host or /c/ prefix.";
|
|
7840
|
+
}];
|
|
7841
|
+
};
|
|
6808
7842
|
}, {
|
|
6809
7843
|
readonly resource: "file.uploads";
|
|
6810
7844
|
readonly method: "create";
|
|
@@ -6851,6 +7885,52 @@ export declare const operations: readonly [{
|
|
|
6851
7885
|
readonly description: "Optional fixed part size in bytes, 5242880–64000000. Requires part_number on every part; retries of identical bytes at the same number return the same part. Omit to use arbitrary-sized parts.";
|
|
6852
7886
|
}];
|
|
6853
7887
|
};
|
|
7888
|
+
}, {
|
|
7889
|
+
readonly resource: "file.uploads";
|
|
7890
|
+
readonly method: "createSigned";
|
|
7891
|
+
readonly summary: "Create a one-time upload URL";
|
|
7892
|
+
readonly 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\"}.";
|
|
7893
|
+
readonly http: "POST";
|
|
7894
|
+
readonly path: "/file/v1/uploads/signed";
|
|
7895
|
+
readonly streaming: "no";
|
|
7896
|
+
readonly pagination: false;
|
|
7897
|
+
readonly pathParams: readonly [];
|
|
7898
|
+
readonly query: readonly [];
|
|
7899
|
+
readonly body: {
|
|
7900
|
+
readonly required: true;
|
|
7901
|
+
readonly fields: readonly [{
|
|
7902
|
+
readonly name: "filename";
|
|
7903
|
+
readonly type: "string";
|
|
7904
|
+
readonly required: true;
|
|
7905
|
+
readonly description: "Stored basename, 1–255 UTF-8 bytes without control characters or path separators.";
|
|
7906
|
+
}, {
|
|
7907
|
+
readonly name: "bytes";
|
|
7908
|
+
readonly type: "integer";
|
|
7909
|
+
readonly required: true;
|
|
7910
|
+
readonly 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.";
|
|
7911
|
+
}, {
|
|
7912
|
+
readonly name: "content_type";
|
|
7913
|
+
readonly type: "string";
|
|
7914
|
+
readonly required: true;
|
|
7915
|
+
readonly 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.";
|
|
7916
|
+
}, {
|
|
7917
|
+
readonly name: "purpose";
|
|
7918
|
+
readonly type: "string";
|
|
7919
|
+
readonly enum: readonly ["user_data", "vision"];
|
|
7920
|
+
readonly required: false;
|
|
7921
|
+
readonly description: "user_data stores ordinary files and conversation images; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data.";
|
|
7922
|
+
}, {
|
|
7923
|
+
readonly name: "expires_in";
|
|
7924
|
+
readonly type: "integer";
|
|
7925
|
+
readonly required: false;
|
|
7926
|
+
readonly 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.";
|
|
7927
|
+
}, {
|
|
7928
|
+
readonly name: "part_size";
|
|
7929
|
+
readonly type: "integer";
|
|
7930
|
+
readonly required: false;
|
|
7931
|
+
readonly 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.";
|
|
7932
|
+
}];
|
|
7933
|
+
};
|
|
6854
7934
|
}, {
|
|
6855
7935
|
readonly resource: "file.uploads";
|
|
6856
7936
|
readonly method: "cancel";
|
|
@@ -7810,6 +8890,12 @@ export declare const operations: readonly [{
|
|
|
7810
8890
|
readonly enum: readonly ["image", "video", "raw", "auto"];
|
|
7811
8891
|
readonly required: false;
|
|
7812
8892
|
readonly description: "Upload category: image for images, video for video or audio, raw for unprocessed files, or auto to detect the category. Defaults to auto.";
|
|
8893
|
+
}, {
|
|
8894
|
+
readonly name: "type";
|
|
8895
|
+
readonly type: "string";
|
|
8896
|
+
readonly enum: readonly ["upload", "authenticated"];
|
|
8897
|
+
readonly required: false;
|
|
8898
|
+
readonly description: "Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.";
|
|
7813
8899
|
}];
|
|
7814
8900
|
};
|
|
7815
8901
|
}, {
|
|
@@ -7833,7 +8919,7 @@ export declare const operations: readonly [{
|
|
|
7833
8919
|
readonly name: "file_id";
|
|
7834
8920
|
readonly type: "string";
|
|
7835
8921
|
readonly required: true;
|
|
7836
|
-
readonly description: "File ID to copy into this library
|
|
8922
|
+
readonly 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.";
|
|
7837
8923
|
}, {
|
|
7838
8924
|
readonly name: "public_id";
|
|
7839
8925
|
readonly type: "string";
|
|
@@ -7900,6 +8986,12 @@ export declare const operations: readonly [{
|
|
|
7900
8986
|
readonly enum: readonly ["image", "video", "raw", "auto"];
|
|
7901
8987
|
readonly required: false;
|
|
7902
8988
|
readonly description: "Upload category: image for images, video for video or audio, raw for unprocessed files, or auto to detect the category. Defaults to auto.";
|
|
8989
|
+
}, {
|
|
8990
|
+
readonly name: "type";
|
|
8991
|
+
readonly type: "string";
|
|
8992
|
+
readonly enum: readonly ["upload", "authenticated"];
|
|
8993
|
+
readonly required: false;
|
|
8994
|
+
readonly description: "Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.";
|
|
7903
8995
|
}];
|
|
7904
8996
|
};
|
|
7905
8997
|
}, {
|
|
@@ -8121,6 +9213,35 @@ export declare const operations: readonly [{
|
|
|
8121
9213
|
readonly description: "Batch identifier returned by createBatch or batchAssets; resolved within this library.";
|
|
8122
9214
|
}];
|
|
8123
9215
|
readonly query: readonly [];
|
|
9216
|
+
}, {
|
|
9217
|
+
readonly resource: "media.libraries.deliveryTokens";
|
|
9218
|
+
readonly method: "create";
|
|
9219
|
+
readonly summary: "Create delivery token";
|
|
9220
|
+
readonly 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.";
|
|
9221
|
+
readonly http: "POST";
|
|
9222
|
+
readonly path: "/media/v1/libraries/{library_id}/delivery_tokens";
|
|
9223
|
+
readonly streaming: "no";
|
|
9224
|
+
readonly pagination: false;
|
|
9225
|
+
readonly pathParams: readonly [{
|
|
9226
|
+
readonly name: "library_id";
|
|
9227
|
+
readonly sdkName: "library_id";
|
|
9228
|
+
readonly description: "Library ID returned by creation.";
|
|
9229
|
+
}];
|
|
9230
|
+
readonly query: readonly [];
|
|
9231
|
+
readonly body: {
|
|
9232
|
+
readonly required: true;
|
|
9233
|
+
readonly fields: readonly [{
|
|
9234
|
+
readonly name: "acl";
|
|
9235
|
+
readonly type: "string";
|
|
9236
|
+
readonly required: false;
|
|
9237
|
+
readonly 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.";
|
|
9238
|
+
}, {
|
|
9239
|
+
readonly name: "expires_in";
|
|
9240
|
+
readonly type: "integer";
|
|
9241
|
+
readonly required: false;
|
|
9242
|
+
readonly description: "Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 3600.";
|
|
9243
|
+
}];
|
|
9244
|
+
};
|
|
8124
9245
|
}, {
|
|
8125
9246
|
readonly resource: "media.libraries.events";
|
|
8126
9247
|
readonly method: "list";
|
|
@@ -9526,7 +10647,7 @@ export declare const operations: readonly [{
|
|
|
9526
10647
|
readonly name: "supported_api";
|
|
9527
10648
|
readonly type: "array";
|
|
9528
10649
|
readonly itemType: "string";
|
|
9529
|
-
readonly enum: readonly ["anthropic.messages", "cohere.rerank", "google.generateContent", "mistral.ocr", "openai.audio.speech", "openai.audio.transcriptions", "openai.chat.completions", "openai.embeddings", "openai.images.edits", "openai.images.generations", "openai.responses", "openai.videos"];
|
|
10650
|
+
readonly enum: readonly ["anthropic.messages", "cohere.rerank", "google.generateContent", "mistral.ocr", "openai.audio.speech", "openai.audio.transcriptions", "openai.chat.completions", "openai.embeddings", "openai.images.edits", "openai.images.generations", "openai.responses", "openai.videos", "typesafe.systemone"];
|
|
9530
10651
|
readonly required: false;
|
|
9531
10652
|
readonly 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.";
|
|
9532
10653
|
}, {
|
|
@@ -9984,6 +11105,41 @@ export declare const operations: readonly [{
|
|
|
9984
11105
|
readonly description: "Id of the stored response, the `id` returned by createResponse (it looks like resp_...). An unknown id, a response created with store false, an expired response and another tenant's response all answer 404.";
|
|
9985
11106
|
}];
|
|
9986
11107
|
readonly query: readonly [];
|
|
11108
|
+
}, {
|
|
11109
|
+
readonly resource: "model.systemone";
|
|
11110
|
+
readonly method: "create";
|
|
11111
|
+
readonly summary: "Ask structured decision questions";
|
|
11112
|
+
readonly 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.";
|
|
11113
|
+
readonly http: "POST";
|
|
11114
|
+
readonly path: "/model/v1/systemone";
|
|
11115
|
+
readonly streaming: "no";
|
|
11116
|
+
readonly pagination: false;
|
|
11117
|
+
readonly pathParams: readonly [];
|
|
11118
|
+
readonly query: readonly [];
|
|
11119
|
+
readonly body: {
|
|
11120
|
+
readonly required: true;
|
|
11121
|
+
readonly fields: readonly [{
|
|
11122
|
+
readonly name: "model";
|
|
11123
|
+
readonly type: "string";
|
|
11124
|
+
readonly required: true;
|
|
11125
|
+
readonly description: "Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response.";
|
|
11126
|
+
}, {
|
|
11127
|
+
readonly name: "state";
|
|
11128
|
+
readonly type: "object";
|
|
11129
|
+
readonly required: true;
|
|
11130
|
+
readonly description: "Shared content evaluated by every question, supplied as text, a JSON object or an array.";
|
|
11131
|
+
}, {
|
|
11132
|
+
readonly name: "questions";
|
|
11133
|
+
readonly type: "object";
|
|
11134
|
+
readonly required: true;
|
|
11135
|
+
readonly 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.";
|
|
11136
|
+
}, {
|
|
11137
|
+
readonly name: "assets";
|
|
11138
|
+
readonly type: "object";
|
|
11139
|
+
readonly required: false;
|
|
11140
|
+
readonly description: "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported.";
|
|
11141
|
+
}];
|
|
11142
|
+
};
|
|
9987
11143
|
}, {
|
|
9988
11144
|
readonly resource: "model.videos";
|
|
9989
11145
|
readonly method: "list";
|
|
@@ -11029,7 +12185,7 @@ export declare const operations: readonly [{
|
|
|
11029
12185
|
readonly resource: "sandbox.sandboxes.commands";
|
|
11030
12186
|
readonly method: "run";
|
|
11031
12187
|
readonly summary: "Run a command in the sandbox";
|
|
11032
|
-
readonly description: "Execute a shell command and wait for stdout, stderr and exitCode. Supply cmd, optional cwd and envs, and timeoutMs (1–
|
|
12188
|
+
readonly description: "Execute a shell command and wait for stdout, stderr and exitCode. Supply cmd, optional cwd and envs, and timeoutMs (1–3600000 milliseconds, default 600000, that is 10 minutes; E2B defaults to 60000). Unlike E2B, this endpoint is synchronous only: no background mode, callbacks or unlimited timeout (timeoutMs 0); output is bounded to 1 MiB including stream framing. Nonzero exit codes return 200 with the result. A timeout returns COMMAND_TIMEOUT (504); transport timeout does not confirm process termination, so do not blindly retry commands with side effects. Example body: {\"cmd\":\"echo hi\"}.";
|
|
11033
12189
|
readonly http: "POST";
|
|
11034
12190
|
readonly path: "/sandbox/v1/sandboxes/{sandbox_id}/commands";
|
|
11035
12191
|
readonly streaming: "no";
|
|
@@ -11061,7 +12217,7 @@ export declare const operations: readonly [{
|
|
|
11061
12217
|
readonly name: "timeoutMs";
|
|
11062
12218
|
readonly type: "integer";
|
|
11063
12219
|
readonly required: false;
|
|
11064
|
-
readonly description: "Execution timeout in milliseconds, from 1 to
|
|
12220
|
+
readonly description: "Execution timeout in milliseconds, from 1 to 3600000 (1 hour); defaults to 600000 (10 minutes).";
|
|
11065
12221
|
}];
|
|
11066
12222
|
};
|
|
11067
12223
|
}, {
|
|
@@ -12039,7 +13195,7 @@ export declare const operations: readonly [{
|
|
|
12039
13195
|
readonly resource: "ticket.milestones";
|
|
12040
13196
|
readonly method: "create";
|
|
12041
13197
|
readonly summary: "Create or add milestones";
|
|
12042
|
-
readonly 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.
|
|
13198
|
+
readonly 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.";
|
|
12043
13199
|
readonly http: "POST";
|
|
12044
13200
|
readonly path: "/ticket/v1/milestones";
|
|
12045
13201
|
readonly streaming: "no";
|
|
@@ -12080,7 +13236,7 @@ export declare const operations: readonly [{
|
|
|
12080
13236
|
readonly resource: "ticket.milestones";
|
|
12081
13237
|
readonly method: "delete";
|
|
12082
13238
|
readonly summary: "Remove milestones";
|
|
12083
|
-
readonly 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.
|
|
13239
|
+
readonly 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.";
|
|
12084
13240
|
readonly http: "DELETE";
|
|
12085
13241
|
readonly path: "/ticket/v1/milestones/{number}";
|
|
12086
13242
|
readonly streaming: "no";
|
|
@@ -12122,7 +13278,7 @@ export declare const operations: readonly [{
|
|
|
12122
13278
|
readonly resource: "ticket.milestones";
|
|
12123
13279
|
readonly method: "update";
|
|
12124
13280
|
readonly summary: "Update milestones";
|
|
12125
|
-
readonly 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.
|
|
13281
|
+
readonly 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.";
|
|
12126
13282
|
readonly http: "PATCH";
|
|
12127
13283
|
readonly path: "/ticket/v1/milestones/{number}";
|
|
12128
13284
|
readonly streaming: "no";
|
|
@@ -13267,7 +14423,7 @@ export declare const operations: readonly [{
|
|
|
13267
14423
|
readonly resource: "vault.vaults.secrets";
|
|
13268
14424
|
readonly method: "create";
|
|
13269
14425
|
readonly summary: "Create secret";
|
|
13270
|
-
readonly description: "Store a manually supplied token in an active vault for
|
|
14426
|
+
readonly 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.";
|
|
13271
14427
|
readonly http: "POST";
|
|
13272
14428
|
readonly path: "/vault/v1/vaults/{vault_id}/secrets";
|
|
13273
14429
|
readonly streaming: "no";
|
|
@@ -13294,8 +14450,8 @@ export declare const operations: readonly [{
|
|
|
13294
14450
|
readonly name: "allowed_hosts";
|
|
13295
14451
|
readonly type: "array";
|
|
13296
14452
|
readonly itemType: "string";
|
|
13297
|
-
readonly required:
|
|
13298
|
-
readonly description: "Allowed destinations for the secret.
|
|
14453
|
+
readonly required: false;
|
|
14454
|
+
readonly 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.";
|
|
13299
14455
|
}, {
|
|
13300
14456
|
readonly name: "description";
|
|
13301
14457
|
readonly type: "string";
|
|
@@ -13311,7 +14467,7 @@ export declare const operations: readonly [{
|
|
|
13311
14467
|
readonly type: "string";
|
|
13312
14468
|
readonly enum: readonly ["github", "openai", "anthropic", "stripe"];
|
|
13313
14469
|
readonly required: false;
|
|
13314
|
-
readonly description: "Static template ID from List templates. Records metadata.template; name
|
|
14470
|
+
readonly description: "Static template ID from List templates. Records metadata.template; name and value must still be supplied explicitly; allowed_hosts is optional.";
|
|
13315
14471
|
}, {
|
|
13316
14472
|
readonly name: "kind";
|
|
13317
14473
|
readonly type: "string";
|
|
@@ -13389,7 +14545,7 @@ export declare const operations: readonly [{
|
|
|
13389
14545
|
readonly type: "array";
|
|
13390
14546
|
readonly itemType: "string";
|
|
13391
14547
|
readonly required: false;
|
|
13392
|
-
readonly description: "Allowed destinations for the secret.
|
|
14548
|
+
readonly 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.";
|
|
13393
14549
|
}, {
|
|
13394
14550
|
readonly name: "description";
|
|
13395
14551
|
readonly type: "string";
|
|
@@ -13473,7 +14629,7 @@ export declare const operations: readonly [{
|
|
|
13473
14629
|
readonly resource: "vault.vaults.secrets";
|
|
13474
14630
|
readonly method: "import";
|
|
13475
14631
|
readonly summary: "Import secrets";
|
|
13476
|
-
readonly 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.";
|
|
14632
|
+
readonly 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.";
|
|
13477
14633
|
readonly http: "POST";
|
|
13478
14634
|
readonly path: "/vault/v1/vaults/{vault_id}/secrets:import";
|
|
13479
14635
|
readonly streaming: "no";
|