@deepraxis/sdk 0.1.1-dev.11a1f3c → 0.1.1-dev.124112f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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\"}]}. For kind assume, provide name and computer_id without model, models, subagent_model, subagents or multiagent; vault_ids are accepted, bindings and environment_id are refused. Drive assume agents over MCP at /agent/v1/agents/{id}/mcp.";
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";
@@ -4462,6 +4462,80 @@ export declare const operations: readonly [{
4462
4462
  readonly required: false;
4463
4463
  readonly fields: readonly [];
4464
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
+ };
4465
4539
  }, {
4466
4540
  readonly resource: "automation.scripts.versions";
4467
4541
  readonly method: "list";
@@ -5312,6 +5386,80 @@ export declare const operations: readonly [{
5312
5386
  readonly required: false;
5313
5387
  readonly fields: readonly [];
5314
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
+ };
5315
5463
  }, {
5316
5464
  readonly resource: "automation.workflows.versions";
5317
5465
  readonly method: "list";
@@ -5918,135 +6066,676 @@ export declare const operations: readonly [{
5918
6066
  readonly pagination: true;
5919
6067
  readonly pathParams: readonly [];
5920
6068
  readonly query: readonly [{
5921
- readonly name: "limit";
5922
- readonly type: "integer";
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
+ }, {
6080
+ readonly resource: "canvas.canvases";
6081
+ readonly method: "create";
6082
+ readonly summary: "Create canvas";
6083
+ 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.";
6084
+ readonly http: "POST";
6085
+ readonly path: "/canvas/v1/canvases";
6086
+ readonly streaming: "no";
6087
+ readonly pagination: false;
6088
+ readonly pathParams: readonly [];
6089
+ readonly query: readonly [];
6090
+ readonly body: {
6091
+ readonly required: false;
6092
+ readonly fields: readonly [{
6093
+ readonly name: "name";
6094
+ readonly type: "string";
6095
+ readonly required: false;
6096
+ readonly description: "Display name for the new canvas, at most 200 characters; omission uses Untitled.";
6097
+ }];
6098
+ };
6099
+ }, {
6100
+ readonly resource: "canvas.canvases";
6101
+ readonly method: "delete";
6102
+ readonly summary: "Delete canvas";
6103
+ 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.";
6104
+ readonly http: "DELETE";
6105
+ readonly path: "/canvas/v1/canvases/{canvas_id}";
6106
+ readonly streaming: "no";
6107
+ readonly pagination: false;
6108
+ readonly pathParams: readonly [{
6109
+ readonly name: "canvas_id";
6110
+ readonly sdkName: "canvas_id";
6111
+ 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.";
6112
+ }];
6113
+ readonly query: readonly [];
6114
+ }, {
6115
+ readonly resource: "canvas.canvases";
6116
+ readonly method: "retrieve";
6117
+ readonly summary: "Retrieve canvas";
6118
+ 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.";
6119
+ readonly http: "GET";
6120
+ readonly path: "/canvas/v1/canvases/{canvas_id}";
6121
+ readonly streaming: "no";
6122
+ readonly pagination: false;
6123
+ readonly pathParams: readonly [{
6124
+ readonly name: "canvas_id";
6125
+ readonly sdkName: "canvas_id";
6126
+ 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.";
6127
+ }];
6128
+ readonly query: readonly [];
6129
+ }, {
6130
+ readonly resource: "canvas.canvases.images";
6131
+ readonly method: "list";
6132
+ readonly summary: "Render canvas nodes";
6133
+ 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.";
6134
+ readonly http: "GET";
6135
+ readonly path: "/canvas/v1/canvases/{canvas_id}/images";
6136
+ readonly streaming: "no";
6137
+ readonly pagination: false;
6138
+ readonly pathParams: readonly [{
6139
+ readonly name: "canvas_id";
6140
+ readonly sdkName: "canvas_id";
6141
+ 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.";
6142
+ }];
6143
+ readonly query: readonly [{
6144
+ readonly name: "ids";
6145
+ readonly type: "string";
6146
+ readonly required: true;
6147
+ readonly description: "Comma-separated list of 1–4 node ids to render, from retrieve, execute.created or execute.screenshots.";
6148
+ }, {
6149
+ readonly name: "scale";
6150
+ readonly type: "number";
6151
+ readonly required: false;
6152
+ readonly description: "Output pixel scale relative to canvas dimensions, from 0.25 to 4 inclusive; defaults to 1 when omitted.";
6153
+ }, {
6154
+ readonly name: "format";
6155
+ readonly type: "string";
6156
+ readonly enum: readonly ["png"];
6157
+ readonly required: false;
6158
+ readonly description: "Image encoding; png produces a PNG data URL and is the only supported value. Omit to use png.";
6159
+ }];
6160
+ }, {
6161
+ readonly resource: "canvas.canvases.nodes";
6162
+ readonly method: "list";
6163
+ readonly summary: "Read canvas nodes";
6164
+ 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.";
6165
+ readonly http: "GET";
6166
+ readonly path: "/canvas/v1/canvases/{canvas_id}/nodes";
6167
+ readonly streaming: "no";
6168
+ readonly pagination: false;
6169
+ readonly pathParams: readonly [{
6170
+ readonly name: "canvas_id";
6171
+ readonly sdkName: "canvas_id";
6172
+ 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.";
6173
+ }];
6174
+ readonly query: readonly [{
6175
+ readonly name: "ids";
6176
+ readonly type: "string";
6177
+ readonly required: true;
6178
+ 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.";
6179
+ }, {
6180
+ readonly name: "depth";
6181
+ readonly type: "integer";
6182
+ readonly required: false;
6183
+ 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.";
6184
+ }];
6185
+ }, {
6186
+ readonly resource: "canvas.canvases";
6187
+ readonly method: "execute";
6188
+ readonly summary: "Execute canvas script";
6189
+ 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";
6190
+ readonly http: "POST";
6191
+ readonly path: "/canvas/v1/canvases/{canvas_id}:execute";
6192
+ readonly streaming: "no";
6193
+ readonly pagination: false;
6194
+ readonly pathParams: readonly [{
6195
+ readonly name: "canvas_id";
6196
+ readonly sdkName: "canvas_id";
6197
+ 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.";
6198
+ }];
6199
+ readonly query: readonly [];
6200
+ readonly body: {
6201
+ readonly required: true;
6202
+ readonly fields: readonly [{
6203
+ readonly name: "script";
6204
+ readonly type: "string";
6205
+ readonly required: false;
6206
+ 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.";
6207
+ }, {
6208
+ readonly name: "edit_id";
6209
+ readonly type: "string";
6210
+ readonly required: false;
6211
+ readonly description: "Saved failed-script identifier from error.details.edit_id; use with edits instead of script within ten minutes of the failure.";
6212
+ }, {
6213
+ readonly name: "edits";
6214
+ readonly type: "array";
6215
+ readonly itemType: "object";
6216
+ readonly required: false;
6217
+ readonly description: "Text replacements applied to the source identified by edit_id before rerunning; use error line, column or rejection to choose the correction.";
6218
+ }, {
6219
+ readonly name: "expected_version";
6220
+ readonly type: "string";
6221
+ readonly required: false;
6222
+ 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.";
6223
+ }];
6224
+ };
6225
+ }, {
6226
+ readonly resource: "cut.exports";
6227
+ readonly method: "retrieve";
6228
+ readonly summary: "Retrieve video export";
6229
+ 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.";
6230
+ readonly http: "GET";
6231
+ readonly path: "/cut/v1/exports/{export_id}";
6232
+ readonly streaming: "no";
6233
+ readonly pagination: false;
6234
+ readonly pathParams: readonly [{
6235
+ readonly name: "export_id";
6236
+ readonly sdkName: "export_id";
6237
+ readonly description: "Export identifier returned by its create or list operation; use the id, not a display name.";
6238
+ }];
6239
+ readonly query: readonly [];
6240
+ }, {
6241
+ readonly resource: "cut.exports";
6242
+ readonly method: "cancel";
6243
+ readonly summary: "Cancel video export";
6244
+ 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.";
6245
+ readonly http: "POST";
6246
+ readonly path: "/cut/v1/exports/{export_id}:cancel";
6247
+ readonly streaming: "no";
6248
+ readonly pagination: false;
6249
+ readonly pathParams: readonly [{
6250
+ readonly name: "export_id";
6251
+ readonly sdkName: "export_id";
6252
+ readonly description: "Export identifier returned by its create or list operation; use the id, not a display name.";
6253
+ }];
6254
+ readonly query: readonly [];
6255
+ }, {
6256
+ readonly resource: "cut.projects";
6257
+ readonly method: "list";
6258
+ readonly summary: "List projects";
6259
+ 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.";
6260
+ readonly http: "GET";
6261
+ readonly path: "/cut/v1/projects";
6262
+ readonly streaming: "no";
6263
+ readonly pagination: false;
6264
+ readonly pathParams: readonly [];
6265
+ readonly query: readonly [{
6266
+ readonly name: "page_size";
6267
+ readonly type: "integer";
6268
+ readonly required: false;
6269
+ readonly description: "Maximum resources in one page, from 1 to 100; defaults to 50.";
6270
+ }, {
6271
+ readonly name: "page_token";
6272
+ readonly type: "string";
6273
+ readonly required: false;
6274
+ readonly description: "Opaque next_page_token from the preceding page; omit on the first request.";
6275
+ }, {
6276
+ readonly name: "filter";
6277
+ readonly type: "string";
6278
+ readonly required: false;
6279
+ readonly description: "Optional resource filter; projects supports state = \"active\" or state = \"deleted\".";
6280
+ }, {
6281
+ readonly name: "order_by";
6282
+ readonly type: "string";
6283
+ readonly required: false;
6284
+ readonly description: "Optional ordering expression; projects supports updateTime desc.";
6285
+ }];
6286
+ }, {
6287
+ readonly resource: "cut.projects";
6288
+ readonly method: "create";
6289
+ readonly summary: "Create project";
6290
+ 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.";
6291
+ readonly http: "POST";
6292
+ readonly path: "/cut/v1/projects";
6293
+ readonly streaming: "no";
6294
+ readonly pagination: false;
6295
+ readonly pathParams: readonly [];
6296
+ readonly query: readonly [];
6297
+ readonly body: {
6298
+ readonly required: true;
6299
+ readonly fields: readonly [{
6300
+ readonly name: "name";
6301
+ readonly type: "string";
6302
+ readonly required: true;
6303
+ readonly description: "Human-readable project name; required and must contain non-whitespace text.";
6304
+ }, {
6305
+ readonly name: "labels";
6306
+ readonly type: "object";
6307
+ readonly required: false;
6308
+ readonly description: "User-defined string labels for organizing projects; label keys retain their original spelling.";
6309
+ }, {
6310
+ readonly name: "settings";
6311
+ readonly type: "object";
6312
+ readonly required: true;
6313
+ readonly description: "Dimensions and frame rate for a new editing project.";
6314
+ }, {
6315
+ readonly name: "bindings";
6316
+ readonly type: "array";
6317
+ readonly itemType: "object";
6318
+ readonly required: true;
6319
+ readonly description: "Accessible library bindings; exactly one read_write entry must have default_upload true.";
6320
+ }];
6321
+ };
6322
+ }, {
6323
+ readonly resource: "cut.projects";
6324
+ readonly method: "delete";
6325
+ readonly summary: "Delete project";
6326
+ 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.";
6327
+ readonly http: "DELETE";
6328
+ readonly path: "/cut/v1/projects/{project_id}";
6329
+ readonly streaming: "no";
6330
+ readonly pagination: false;
6331
+ readonly pathParams: readonly [{
6332
+ readonly name: "project_id";
6333
+ readonly sdkName: "project_id";
6334
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6335
+ }];
6336
+ readonly query: readonly [];
6337
+ }, {
6338
+ readonly resource: "cut.projects";
6339
+ readonly method: "retrieve";
6340
+ readonly summary: "Retrieve project";
6341
+ 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.";
6342
+ readonly http: "GET";
6343
+ readonly path: "/cut/v1/projects/{project_id}";
6344
+ readonly streaming: "no";
6345
+ readonly pagination: false;
6346
+ readonly pathParams: readonly [{
6347
+ readonly name: "project_id";
6348
+ readonly sdkName: "project_id";
6349
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6350
+ }];
6351
+ readonly query: readonly [{
6352
+ readonly name: "expand";
6353
+ readonly type: "string";
6354
+ readonly required: false;
6355
+ readonly description: "Comma-separated expansions: timeline includes clips, exports includes render jobs, versions includes saved snapshots.";
6356
+ }];
6357
+ }, {
6358
+ readonly resource: "cut.projects";
6359
+ readonly method: "update";
6360
+ readonly summary: "Update project metadata";
6361
+ 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.";
6362
+ readonly http: "PATCH";
6363
+ readonly path: "/cut/v1/projects/{project_id}";
6364
+ readonly streaming: "no";
6365
+ readonly pagination: false;
6366
+ readonly pathParams: readonly [{
6367
+ readonly name: "project_id";
6368
+ readonly sdkName: "project_id";
6369
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6370
+ }];
6371
+ readonly query: readonly [];
6372
+ readonly body: {
6373
+ readonly required: true;
6374
+ readonly fields: readonly [{
6375
+ readonly name: "name";
6376
+ readonly type: "string";
6377
+ readonly required: false;
6378
+ readonly description: "Replacement display name when update_mask includes name.";
6379
+ }, {
6380
+ readonly name: "labels";
6381
+ readonly type: "object";
6382
+ readonly required: false;
6383
+ readonly description: "User-defined string labels for organizing projects; label keys retain their original spelling.";
6384
+ }, {
6385
+ readonly name: "update_mask";
6386
+ readonly type: "array";
6387
+ readonly itemType: "string";
6388
+ readonly enum: readonly ["name", "labels"];
6389
+ readonly required: true;
6390
+ readonly description: "Metadata fields to replace; name changes the display name and labels replaces all labels.";
6391
+ }];
6392
+ };
6393
+ }, {
6394
+ readonly resource: "cut.projects.analysis";
6395
+ readonly method: "create";
6396
+ readonly summary: "Analyze project media";
6397
+ 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.";
6398
+ readonly http: "POST";
6399
+ readonly path: "/cut/v1/projects/{project_id}/analysis";
6400
+ readonly streaming: "no";
6401
+ readonly pagination: false;
6402
+ readonly pathParams: readonly [{
6403
+ readonly name: "project_id";
6404
+ readonly sdkName: "project_id";
6405
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6406
+ }];
6407
+ readonly query: readonly [];
6408
+ readonly body: {
6409
+ readonly required: true;
6410
+ readonly fields: readonly [{
6411
+ readonly name: "media";
6412
+ readonly type: "array";
6413
+ readonly itemType: "object";
6414
+ readonly required: false;
6415
+ readonly description: "Bound-library assets to analyze; omission selects project media.";
6416
+ }, {
6417
+ readonly name: "kinds";
6418
+ readonly type: "array";
6419
+ readonly itemType: "string";
6420
+ readonly enum: readonly ["silence", "filler", "scenes"];
6421
+ readonly required: true;
6422
+ readonly description: "Analysis types to request for the selected source assets.";
6423
+ }];
6424
+ };
6425
+ }, {
6426
+ readonly resource: "cut.projects.bindings";
6427
+ readonly method: "list";
6428
+ readonly summary: "List library bindings";
6429
+ 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.";
6430
+ readonly http: "GET";
6431
+ readonly path: "/cut/v1/projects/{project_id}/bindings";
6432
+ readonly streaming: "no";
6433
+ readonly pagination: false;
6434
+ readonly pathParams: readonly [{
6435
+ readonly name: "project_id";
6436
+ readonly sdkName: "project_id";
6437
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6438
+ }];
6439
+ readonly query: readonly [];
6440
+ }, {
6441
+ readonly resource: "cut.projects.bindings";
6442
+ readonly method: "create";
6443
+ readonly summary: "Bind media library";
6444
+ 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.";
6445
+ readonly http: "POST";
6446
+ readonly path: "/cut/v1/projects/{project_id}/bindings";
6447
+ readonly streaming: "no";
6448
+ readonly pagination: false;
6449
+ readonly pathParams: readonly [{
6450
+ readonly name: "project_id";
6451
+ readonly sdkName: "project_id";
6452
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6453
+ }];
6454
+ readonly query: readonly [];
6455
+ readonly body: {
6456
+ readonly required: true;
6457
+ readonly fields: readonly [{
6458
+ readonly name: "binding";
6459
+ readonly type: "object";
6460
+ readonly required: true;
6461
+ readonly description: "A named project link to a media library. Exactly one read_write binding must be default_upload.";
6462
+ }];
6463
+ };
6464
+ }, {
6465
+ readonly resource: "cut.projects.bindings";
6466
+ readonly method: "delete";
6467
+ readonly summary: "Remove library binding";
6468
+ 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.";
6469
+ readonly http: "DELETE";
6470
+ readonly path: "/cut/v1/projects/{project_id}/bindings/{name}";
6471
+ readonly streaming: "no";
6472
+ readonly pagination: false;
6473
+ readonly pathParams: readonly [{
6474
+ readonly name: "project_id";
6475
+ readonly sdkName: "project_id";
6476
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6477
+ }, {
6478
+ readonly name: "name";
6479
+ readonly sdkName: "name";
6480
+ readonly description: "Project-local binding alias from bindings.list; detach only after removing all clips that reference its library.";
6481
+ }];
6482
+ readonly query: readonly [];
6483
+ }, {
6484
+ readonly resource: "cut.projects.exports";
6485
+ readonly method: "list";
6486
+ readonly summary: "List project exports";
6487
+ 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.";
6488
+ readonly http: "GET";
6489
+ readonly path: "/cut/v1/projects/{project_id}/exports";
6490
+ readonly streaming: "no";
6491
+ readonly pagination: false;
6492
+ readonly pathParams: readonly [{
6493
+ readonly name: "project_id";
6494
+ readonly sdkName: "project_id";
6495
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6496
+ }];
6497
+ readonly query: readonly [{
6498
+ readonly name: "page_size";
6499
+ readonly type: "integer";
6500
+ readonly required: false;
6501
+ readonly description: "Maximum resources in one page, from 1 to 100; defaults to 50.";
6502
+ }, {
6503
+ readonly name: "page_token";
6504
+ readonly type: "string";
6505
+ readonly required: false;
6506
+ readonly description: "Opaque next_page_token from the preceding page; omit on the first request.";
6507
+ }, {
6508
+ readonly name: "filter";
6509
+ readonly type: "string";
6510
+ readonly required: false;
6511
+ readonly description: "Optional resource filter; projects supports state = \"active\" or state = \"deleted\".";
6512
+ }, {
6513
+ readonly name: "order_by";
6514
+ readonly type: "string";
6515
+ readonly required: false;
6516
+ readonly description: "Optional ordering expression; projects supports updateTime desc.";
6517
+ }];
6518
+ }, {
6519
+ readonly resource: "cut.projects.exports";
6520
+ readonly method: "create";
6521
+ readonly summary: "Create video export";
6522
+ 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.";
6523
+ readonly http: "POST";
6524
+ readonly path: "/cut/v1/projects/{project_id}/exports";
6525
+ readonly streaming: "no";
6526
+ readonly pagination: false;
6527
+ readonly pathParams: readonly [{
6528
+ readonly name: "project_id";
6529
+ readonly sdkName: "project_id";
6530
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6531
+ }];
6532
+ readonly query: readonly [];
6533
+ readonly body: {
6534
+ readonly required: true;
6535
+ readonly fields: readonly [{
6536
+ readonly name: "output";
6537
+ readonly type: "object";
6538
+ readonly required: false;
6539
+ readonly description: "Rendering options for an exported video.";
6540
+ }, {
6541
+ readonly name: "binding";
6542
+ readonly type: "string";
6543
+ readonly required: false;
6544
+ readonly description: "Writable binding name used as the export destination; omission uses default_upload.";
6545
+ }, {
6546
+ readonly name: "revision";
6547
+ readonly type: "integer";
6548
+ readonly required: false;
6549
+ readonly description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write.";
6550
+ }];
6551
+ };
6552
+ }, {
6553
+ readonly resource: "cut.projects.frames";
6554
+ readonly method: "list";
6555
+ readonly summary: "Render preview frames";
6556
+ 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.";
6557
+ readonly http: "GET";
6558
+ readonly path: "/cut/v1/projects/{project_id}/frames";
6559
+ readonly streaming: "no";
6560
+ readonly pagination: false;
6561
+ readonly pathParams: readonly [{
6562
+ readonly name: "project_id";
6563
+ readonly sdkName: "project_id";
6564
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6565
+ }];
6566
+ readonly query: readonly [{
6567
+ readonly name: "at";
6568
+ readonly type: "string";
6569
+ readonly required: true;
6570
+ readonly description: "Required comma-separated non-negative project times in seconds, for example 12,15.5.";
6571
+ }, {
6572
+ readonly name: "scale";
6573
+ readonly type: "number";
5923
6574
  readonly required: false;
5924
- readonly description: "Maximum canvases to return per page, from 1 to 100; defaults to 50 when omitted.";
6575
+ readonly description: "Positive image size multiplier; 0.5 renders at half the project dimensions.";
5925
6576
  }, {
5926
- readonly name: "cursor";
5927
- readonly type: "string";
6577
+ readonly name: "revision";
6578
+ readonly type: "integer";
5928
6579
  readonly required: false;
5929
- readonly description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.";
6580
+ readonly description: "Optional committed project revision from state or execute; omission selects the current revision.";
5930
6581
  }];
5931
6582
  }, {
5932
- readonly resource: "canvas.canvases";
5933
- readonly method: "create";
5934
- readonly summary: "Create canvas";
5935
- 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.";
6583
+ readonly resource: "cut.projects.media";
6584
+ readonly method: "import";
6585
+ readonly summary: "Import project media";
6586
+ 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.";
5936
6587
  readonly http: "POST";
5937
- readonly path: "/canvas/v1/canvases";
6588
+ readonly path: "/cut/v1/projects/{project_id}/media:import";
5938
6589
  readonly streaming: "no";
5939
6590
  readonly pagination: false;
5940
- readonly pathParams: readonly [];
6591
+ readonly pathParams: readonly [{
6592
+ readonly name: "project_id";
6593
+ readonly sdkName: "project_id";
6594
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6595
+ }];
5941
6596
  readonly query: readonly [];
5942
6597
  readonly body: {
5943
- readonly required: false;
6598
+ readonly required: true;
5944
6599
  readonly fields: readonly [{
5945
- readonly name: "name";
6600
+ readonly name: "binding";
5946
6601
  readonly type: "string";
5947
6602
  readonly required: false;
5948
- readonly description: "Display name for the new canvas, at most 200 characters; omission uses Untitled.";
6603
+ readonly description: "Writable binding name from project bindings; omission uses default_upload.";
6604
+ }, {
6605
+ readonly name: "source";
6606
+ readonly type: "object";
6607
+ readonly required: true;
6608
+ readonly description: "Exactly one input source for the imported asset.";
6609
+ }, {
6610
+ readonly name: "display_name";
6611
+ readonly type: "string";
6612
+ readonly required: false;
6613
+ readonly description: "Optional human-readable display name for the new media asset.";
5949
6614
  }];
5950
6615
  };
5951
6616
  }, {
5952
- readonly resource: "canvas.canvases";
5953
- readonly method: "delete";
5954
- readonly summary: "Delete canvas";
5955
- 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.";
5956
- readonly http: "DELETE";
5957
- readonly path: "/canvas/v1/canvases/{canvas_id}";
5958
- readonly streaming: "no";
5959
- readonly pagination: false;
5960
- readonly pathParams: readonly [{
5961
- readonly name: "canvas_id";
5962
- readonly sdkName: "canvas_id";
5963
- 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.";
5964
- }];
5965
- readonly query: readonly [];
5966
- }, {
5967
- readonly resource: "canvas.canvases";
5968
- readonly method: "retrieve";
5969
- readonly summary: "Retrieve canvas";
5970
- 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.";
6617
+ readonly resource: "cut.projects";
6618
+ readonly method: "retrieveState";
6619
+ readonly summary: "Read editing state";
6620
+ 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.";
5971
6621
  readonly http: "GET";
5972
- readonly path: "/canvas/v1/canvases/{canvas_id}";
6622
+ readonly path: "/cut/v1/projects/{project_id}/state";
5973
6623
  readonly streaming: "no";
5974
6624
  readonly pagination: false;
5975
6625
  readonly pathParams: readonly [{
5976
- readonly name: "canvas_id";
5977
- readonly sdkName: "canvas_id";
5978
- 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.";
6626
+ readonly name: "project_id";
6627
+ readonly sdkName: "project_id";
6628
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
5979
6629
  }];
5980
6630
  readonly query: readonly [];
5981
6631
  }, {
5982
- readonly resource: "canvas.canvases.images";
5983
- readonly method: "list";
5984
- readonly summary: "Render canvas nodes";
5985
- 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.";
6632
+ readonly resource: "cut.projects";
6633
+ readonly method: "retrieveTimeline";
6634
+ readonly summary: "Read project timeline";
6635
+ 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.";
5986
6636
  readonly http: "GET";
5987
- readonly path: "/canvas/v1/canvases/{canvas_id}/images";
6637
+ readonly path: "/cut/v1/projects/{project_id}/timeline";
5988
6638
  readonly streaming: "no";
5989
6639
  readonly pagination: false;
5990
6640
  readonly pathParams: readonly [{
5991
- readonly name: "canvas_id";
5992
- readonly sdkName: "canvas_id";
5993
- 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.";
6641
+ readonly name: "project_id";
6642
+ readonly sdkName: "project_id";
6643
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
5994
6644
  }];
5995
6645
  readonly query: readonly [{
5996
- readonly name: "ids";
6646
+ readonly name: "view";
5997
6647
  readonly type: "string";
5998
- readonly required: true;
5999
- readonly description: "Comma-separated list of 1–4 node ids to render, from retrieve, execute.created or execute.screenshots.";
6648
+ readonly enum: readonly ["full", "compact"];
6649
+ readonly required: false;
6650
+ readonly description: "full returns structured clips; compact returns compact textual editing context.";
6000
6651
  }, {
6001
- readonly name: "scale";
6652
+ readonly name: "from";
6002
6653
  readonly type: "number";
6003
6654
  readonly required: false;
6004
- readonly description: "Output pixel scale relative to canvas dimensions, from 0.25 to 4 inclusive; defaults to 1 when omitted.";
6655
+ readonly description: "Optional start of the selected project range in seconds; omit for the beginning.";
6005
6656
  }, {
6006
- readonly name: "format";
6657
+ readonly name: "to";
6658
+ readonly type: "number";
6659
+ readonly required: false;
6660
+ readonly description: "Optional end of the selected project range in seconds; omit for the end.";
6661
+ }, {
6662
+ readonly name: "tracks";
6007
6663
  readonly type: "string";
6008
- readonly enum: readonly ["png"];
6009
6664
  readonly required: false;
6010
- readonly description: "Image encoding; png produces a PNG data URL and is the only supported value. Omit to use png.";
6665
+ readonly description: "Comma-separated track ids from state to include; omit to include every track.";
6011
6666
  }];
6012
6667
  }, {
6013
- readonly resource: "canvas.canvases.nodes";
6668
+ readonly resource: "cut.projects.versions";
6014
6669
  readonly method: "list";
6015
- readonly summary: "Read canvas nodes";
6016
- 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.";
6670
+ readonly summary: "List saved versions";
6671
+ 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.";
6017
6672
  readonly http: "GET";
6018
- readonly path: "/canvas/v1/canvases/{canvas_id}/nodes";
6673
+ readonly path: "/cut/v1/projects/{project_id}/versions";
6019
6674
  readonly streaming: "no";
6020
6675
  readonly pagination: false;
6021
6676
  readonly pathParams: readonly [{
6022
- readonly name: "canvas_id";
6023
- readonly sdkName: "canvas_id";
6024
- 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.";
6677
+ readonly name: "project_id";
6678
+ readonly sdkName: "project_id";
6679
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6025
6680
  }];
6026
6681
  readonly query: readonly [{
6027
- readonly name: "ids";
6682
+ readonly name: "page_size";
6683
+ readonly type: "integer";
6684
+ readonly required: false;
6685
+ readonly description: "Maximum resources in one page, from 1 to 100; defaults to 50.";
6686
+ }, {
6687
+ readonly name: "page_token";
6028
6688
  readonly type: "string";
6029
- readonly required: true;
6030
- 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.";
6689
+ readonly required: false;
6690
+ readonly description: "Opaque next_page_token from the preceding page; omit on the first request.";
6031
6691
  }, {
6032
- readonly name: "depth";
6033
- readonly type: "integer";
6692
+ readonly name: "filter";
6693
+ readonly type: "string";
6034
6694
  readonly required: false;
6035
- 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.";
6695
+ readonly description: "Optional resource filter; projects supports state = \"active\" or state = \"deleted\".";
6696
+ }, {
6697
+ readonly name: "order_by";
6698
+ readonly type: "string";
6699
+ readonly required: false;
6700
+ readonly description: "Optional ordering expression; projects supports updateTime desc.";
6036
6701
  }];
6037
6702
  }, {
6038
- readonly resource: "canvas.canvases";
6703
+ readonly resource: "cut.projects.versions";
6704
+ readonly method: "create";
6705
+ readonly summary: "Save project version";
6706
+ 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.";
6707
+ readonly http: "POST";
6708
+ readonly path: "/cut/v1/projects/{project_id}/versions";
6709
+ readonly streaming: "no";
6710
+ readonly pagination: false;
6711
+ readonly pathParams: readonly [{
6712
+ readonly name: "project_id";
6713
+ readonly sdkName: "project_id";
6714
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6715
+ }];
6716
+ readonly query: readonly [];
6717
+ readonly body: {
6718
+ readonly required: true;
6719
+ readonly fields: readonly [{
6720
+ readonly name: "label";
6721
+ readonly type: "string";
6722
+ readonly required: false;
6723
+ readonly description: "Human-readable snapshot label, such as Before captions.";
6724
+ }];
6725
+ };
6726
+ }, {
6727
+ readonly resource: "cut.projects";
6039
6728
  readonly method: "execute";
6040
- readonly summary: "Execute canvas script";
6041
- 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";
6729
+ readonly summary: "Execute editing script";
6730
+ 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```";
6042
6731
  readonly http: "POST";
6043
- readonly path: "/canvas/v1/canvases/{canvas_id}:execute";
6732
+ readonly path: "/cut/v1/projects/{project_id}:execute";
6044
6733
  readonly streaming: "no";
6045
6734
  readonly pagination: false;
6046
6735
  readonly pathParams: readonly [{
6047
- readonly name: "canvas_id";
6048
- readonly sdkName: "canvas_id";
6049
- 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.";
6736
+ readonly name: "project_id";
6737
+ readonly sdkName: "project_id";
6738
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6050
6739
  }];
6051
6740
  readonly query: readonly [];
6052
6741
  readonly body: {
@@ -6055,25 +6744,55 @@ export declare const operations: readonly [{
6055
6744
  readonly name: "script";
6056
6745
  readonly type: "string";
6057
6746
  readonly required: false;
6058
- 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.";
6747
+ 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.";
6059
6748
  }, {
6060
6749
  readonly name: "edit_id";
6061
6750
  readonly type: "string";
6062
6751
  readonly required: false;
6063
- readonly description: "Saved failed-script identifier from error.details.edit_id; use with edits instead of script within ten minutes of the failure.";
6752
+ readonly description: "Saved failed script identifier from error.details.edit_id; valid for ten minutes.";
6064
6753
  }, {
6065
6754
  readonly name: "edits";
6066
6755
  readonly type: "array";
6067
6756
  readonly itemType: "object";
6068
6757
  readonly required: false;
6069
- readonly description: "Text replacements applied to the source identified by edit_id before rerunning; use error line, column or rejection to choose the correction.";
6758
+ readonly description: "Literal replacements applied to the saved source before rerunning.";
6070
6759
  }, {
6071
- readonly name: "expected_version";
6072
- readonly type: "string";
6760
+ readonly name: "expected_revision";
6761
+ readonly type: "integer";
6073
6762
  readonly required: false;
6074
- 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.";
6763
+ readonly description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write.";
6075
6764
  }];
6076
6765
  };
6766
+ }, {
6767
+ readonly resource: "cut.projects";
6768
+ readonly method: "undelete";
6769
+ readonly summary: "Restore deleted project";
6770
+ 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.";
6771
+ readonly http: "POST";
6772
+ readonly path: "/cut/v1/projects/{project_id}:undelete";
6773
+ readonly streaming: "no";
6774
+ readonly pagination: false;
6775
+ readonly pathParams: readonly [{
6776
+ readonly name: "project_id";
6777
+ readonly sdkName: "project_id";
6778
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6779
+ }];
6780
+ readonly query: readonly [];
6781
+ }, {
6782
+ readonly resource: "cut.versions";
6783
+ readonly method: "restore";
6784
+ readonly summary: "Restore saved version";
6785
+ 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.";
6786
+ readonly http: "POST";
6787
+ readonly path: "/cut/v1/versions/{version_id}:restore";
6788
+ readonly streaming: "no";
6789
+ readonly pagination: false;
6790
+ readonly pathParams: readonly [{
6791
+ readonly name: "version_id";
6792
+ readonly sdkName: "version_id";
6793
+ readonly description: "Version identifier returned by its create or list operation; use the id, not a display name.";
6794
+ }];
6795
+ readonly query: readonly [];
6077
6796
  }, {
6078
6797
  readonly resource: "database.databases";
6079
6798
  readonly method: "list";
@@ -6977,6 +7696,30 @@ export declare const operations: readonly [{
6977
7696
  readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
6978
7697
  }];
6979
7698
  readonly query: readonly [];
7699
+ }, {
7700
+ readonly resource: "file.files.contentLinks";
7701
+ readonly method: "revoke";
7702
+ readonly summary: "Revoke a file content link";
7703
+ 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/>\"}.";
7704
+ readonly http: "POST";
7705
+ readonly path: "/file/v1/files/{file_id}/content_links:revoke";
7706
+ readonly streaming: "no";
7707
+ readonly pagination: false;
7708
+ readonly pathParams: readonly [{
7709
+ readonly name: "file_id";
7710
+ readonly sdkName: "file_id";
7711
+ readonly description: "Tenant-owned file identifier returned by file creation or listing; the token must name this same file.";
7712
+ }];
7713
+ readonly query: readonly [];
7714
+ readonly body: {
7715
+ readonly required: true;
7716
+ readonly fields: readonly [{
7717
+ readonly name: "token";
7718
+ readonly type: "string";
7719
+ readonly required: true;
7720
+ readonly description: "Signed token taken from the /c/ path component of a previously issued file content URL, without the host or /c/ prefix.";
7721
+ }];
7722
+ };
6980
7723
  }, {
6981
7724
  readonly resource: "file.uploads";
6982
7725
  readonly method: "create";
@@ -7023,6 +7766,52 @@ export declare const operations: readonly [{
7023
7766
  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.";
7024
7767
  }];
7025
7768
  };
7769
+ }, {
7770
+ readonly resource: "file.uploads";
7771
+ readonly method: "createSigned";
7772
+ readonly summary: "Create a one-time upload URL";
7773
+ 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\"}.";
7774
+ readonly http: "POST";
7775
+ readonly path: "/file/v1/uploads/signed";
7776
+ readonly streaming: "no";
7777
+ readonly pagination: false;
7778
+ readonly pathParams: readonly [];
7779
+ readonly query: readonly [];
7780
+ readonly body: {
7781
+ readonly required: true;
7782
+ readonly fields: readonly [{
7783
+ readonly name: "filename";
7784
+ readonly type: "string";
7785
+ readonly required: true;
7786
+ readonly description: "Stored basename, 1–255 UTF-8 bytes without control characters or path separators.";
7787
+ }, {
7788
+ readonly name: "bytes";
7789
+ readonly type: "integer";
7790
+ readonly required: true;
7791
+ 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.";
7792
+ }, {
7793
+ readonly name: "content_type";
7794
+ readonly type: "string";
7795
+ readonly required: true;
7796
+ 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.";
7797
+ }, {
7798
+ readonly name: "purpose";
7799
+ readonly type: "string";
7800
+ readonly enum: readonly ["user_data", "vision"];
7801
+ readonly required: false;
7802
+ readonly description: "user_data stores ordinary files and conversation images; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data.";
7803
+ }, {
7804
+ readonly name: "expires_in";
7805
+ readonly type: "integer";
7806
+ readonly required: false;
7807
+ 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.";
7808
+ }, {
7809
+ readonly name: "part_size";
7810
+ readonly type: "integer";
7811
+ readonly required: false;
7812
+ 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.";
7813
+ }];
7814
+ };
7026
7815
  }, {
7027
7816
  readonly resource: "file.uploads";
7028
7817
  readonly method: "cancel";
@@ -7982,6 +8771,12 @@ export declare const operations: readonly [{
7982
8771
  readonly enum: readonly ["image", "video", "raw", "auto"];
7983
8772
  readonly required: false;
7984
8773
  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.";
8774
+ }, {
8775
+ readonly name: "type";
8776
+ readonly type: "string";
8777
+ readonly enum: readonly ["upload", "authenticated"];
8778
+ readonly required: false;
8779
+ readonly description: "Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.";
7985
8780
  }];
7986
8781
  };
7987
8782
  }, {
@@ -8005,7 +8800,7 @@ export declare const operations: readonly [{
8005
8800
  readonly name: "file_id";
8006
8801
  readonly type: "string";
8007
8802
  readonly required: true;
8008
- readonly description: "File ID to copy into this library; passed as the upload source instead of file bytes. This creates an independent public copy readable without authentication. Deleting the source File does not delete this asset; do not import confidential content.";
8803
+ 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.";
8009
8804
  }, {
8010
8805
  readonly name: "public_id";
8011
8806
  readonly type: "string";
@@ -8072,6 +8867,12 @@ export declare const operations: readonly [{
8072
8867
  readonly enum: readonly ["image", "video", "raw", "auto"];
8073
8868
  readonly required: false;
8074
8869
  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.";
8870
+ }, {
8871
+ readonly name: "type";
8872
+ readonly type: "string";
8873
+ readonly enum: readonly ["upload", "authenticated"];
8874
+ readonly required: false;
8875
+ readonly description: "Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.";
8075
8876
  }];
8076
8877
  };
8077
8878
  }, {
@@ -8293,6 +9094,35 @@ export declare const operations: readonly [{
8293
9094
  readonly description: "Batch identifier returned by createBatch or batchAssets; resolved within this library.";
8294
9095
  }];
8295
9096
  readonly query: readonly [];
9097
+ }, {
9098
+ readonly resource: "media.libraries.deliveryTokens";
9099
+ readonly method: "create";
9100
+ readonly summary: "Create delivery token";
9101
+ 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.";
9102
+ readonly http: "POST";
9103
+ readonly path: "/media/v1/libraries/{library_id}/delivery_tokens";
9104
+ readonly streaming: "no";
9105
+ readonly pagination: false;
9106
+ readonly pathParams: readonly [{
9107
+ readonly name: "library_id";
9108
+ readonly sdkName: "library_id";
9109
+ readonly description: "Library ID returned by creation.";
9110
+ }];
9111
+ readonly query: readonly [];
9112
+ readonly body: {
9113
+ readonly required: true;
9114
+ readonly fields: readonly [{
9115
+ readonly name: "acl";
9116
+ readonly type: "string";
9117
+ readonly required: false;
9118
+ 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.";
9119
+ }, {
9120
+ readonly name: "expires_in";
9121
+ readonly type: "integer";
9122
+ readonly required: false;
9123
+ readonly description: "Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 3600.";
9124
+ }];
9125
+ };
8296
9126
  }, {
8297
9127
  readonly resource: "media.libraries.events";
8298
9128
  readonly method: "list";
@@ -9698,7 +10528,7 @@ export declare const operations: readonly [{
9698
10528
  readonly name: "supported_api";
9699
10529
  readonly type: "array";
9700
10530
  readonly itemType: "string";
9701
- 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"];
10531
+ 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"];
9702
10532
  readonly required: false;
9703
10533
  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.";
9704
10534
  }, {
@@ -10156,6 +10986,41 @@ export declare const operations: readonly [{
10156
10986
  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.";
10157
10987
  }];
10158
10988
  readonly query: readonly [];
10989
+ }, {
10990
+ readonly resource: "model.systemone";
10991
+ readonly method: "create";
10992
+ readonly summary: "Ask structured decision questions";
10993
+ 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.";
10994
+ readonly http: "POST";
10995
+ readonly path: "/model/v1/systemone";
10996
+ readonly streaming: "no";
10997
+ readonly pagination: false;
10998
+ readonly pathParams: readonly [];
10999
+ readonly query: readonly [];
11000
+ readonly body: {
11001
+ readonly required: true;
11002
+ readonly fields: readonly [{
11003
+ readonly name: "model";
11004
+ readonly type: "string";
11005
+ readonly required: true;
11006
+ readonly description: "Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response.";
11007
+ }, {
11008
+ readonly name: "state";
11009
+ readonly type: "object";
11010
+ readonly required: true;
11011
+ readonly description: "Shared content evaluated by every question, supplied as text, a JSON object or an array.";
11012
+ }, {
11013
+ readonly name: "questions";
11014
+ readonly type: "object";
11015
+ readonly required: true;
11016
+ 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.";
11017
+ }, {
11018
+ readonly name: "assets";
11019
+ readonly type: "object";
11020
+ readonly required: false;
11021
+ readonly description: "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported.";
11022
+ }];
11023
+ };
10159
11024
  }, {
10160
11025
  readonly resource: "model.videos";
10161
11026
  readonly method: "list";
@@ -12211,7 +13076,7 @@ export declare const operations: readonly [{
12211
13076
  readonly resource: "ticket.milestones";
12212
13077
  readonly method: "create";
12213
13078
  readonly summary: "Create or add milestones";
12214
- 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. Organization owner or admin authority is required for this write; API keys without role information act as members.";
13079
+ 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.";
12215
13080
  readonly http: "POST";
12216
13081
  readonly path: "/ticket/v1/milestones";
12217
13082
  readonly streaming: "no";
@@ -12252,7 +13117,7 @@ export declare const operations: readonly [{
12252
13117
  readonly resource: "ticket.milestones";
12253
13118
  readonly method: "delete";
12254
13119
  readonly summary: "Remove milestones";
12255
- 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. Organization owner or admin authority is required for this write; API keys without role information act as members.";
13120
+ 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.";
12256
13121
  readonly http: "DELETE";
12257
13122
  readonly path: "/ticket/v1/milestones/{number}";
12258
13123
  readonly streaming: "no";
@@ -12294,7 +13159,7 @@ export declare const operations: readonly [{
12294
13159
  readonly resource: "ticket.milestones";
12295
13160
  readonly method: "update";
12296
13161
  readonly summary: "Update milestones";
12297
- 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. Organization owner or admin authority is required for this write; API keys without role information act as members.";
13162
+ 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.";
12298
13163
  readonly http: "PATCH";
12299
13164
  readonly path: "/ticket/v1/milestones/{number}";
12300
13165
  readonly streaming: "no";
@@ -13439,7 +14304,7 @@ export declare const operations: readonly [{
13439
14304
  readonly resource: "vault.vaults.secrets";
13440
14305
  readonly method: "create";
13441
14306
  readonly summary: "Create secret";
13442
- readonly description: "Store a manually supplied token in an active vault for use on requests to its allowed_hosts. Unlike Anthropic credentials, this native operation takes name, value and allowed_hosts directly 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.";
14307
+ 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.";
13443
14308
  readonly http: "POST";
13444
14309
  readonly path: "/vault/v1/vaults/{vault_id}/secrets";
13445
14310
  readonly streaming: "no";
@@ -13466,8 +14331,8 @@ export declare const operations: readonly [{
13466
14331
  readonly name: "allowed_hosts";
13467
14332
  readonly type: "array";
13468
14333
  readonly itemType: "string";
13469
- readonly required: true;
13470
- readonly description: "Allowed destinations for the secret. Unlike Anthropic's unrestricted networking option, an explicit allowlist is required. Supply 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.";
14334
+ readonly required: false;
14335
+ 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.";
13471
14336
  }, {
13472
14337
  readonly name: "description";
13473
14338
  readonly type: "string";
@@ -13483,7 +14348,7 @@ export declare const operations: readonly [{
13483
14348
  readonly type: "string";
13484
14349
  readonly enum: readonly ["github", "openai", "anthropic", "stripe"];
13485
14350
  readonly required: false;
13486
- readonly description: "Static template ID from List templates. Records metadata.template; name, value and allowed_hosts must still be supplied explicitly.";
14351
+ readonly description: "Static template ID from List templates. Records metadata.template; name and value must still be supplied explicitly; allowed_hosts is optional.";
13487
14352
  }, {
13488
14353
  readonly name: "kind";
13489
14354
  readonly type: "string";
@@ -13561,7 +14426,7 @@ export declare const operations: readonly [{
13561
14426
  readonly type: "array";
13562
14427
  readonly itemType: "string";
13563
14428
  readonly required: false;
13564
- readonly description: "Allowed destinations for the secret. Unlike Anthropic's unrestricted networking option, an explicit allowlist is required. Supply 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.";
14429
+ 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.";
13565
14430
  }, {
13566
14431
  readonly name: "description";
13567
14432
  readonly type: "string";
@@ -13645,7 +14510,7 @@ export declare const operations: readonly [{
13645
14510
  readonly resource: "vault.vaults.secrets";
13646
14511
  readonly method: "import";
13647
14512
  readonly summary: "Import secrets";
13648
- 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.";
14513
+ 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.";
13649
14514
  readonly http: "POST";
13650
14515
  readonly path: "/vault/v1/vaults/{vault_id}/secrets:import";
13651
14516
  readonly streaming: "no";