@deepraxis/sdk 0.1.1-dev.c2992e5 → 0.1.1-dev.c636c4e

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.
@@ -63,7 +63,7 @@ export const operations = [
63
63
  "resource": "agent.agents",
64
64
  "method": "create",
65
65
  "summary": "Create agent",
66
- "description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write, enter_plan_mode, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 \"model <id> is not in the model catalog\" and an embedding, image or speech model returns 400 \"model <id> cannot run an agent\". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {\"name\":\"helper\",\"model\":{\"id\":\"deepseek-flash\"},\"tools\":[{\"type\":\"agent_toolset_20260401\"}]}. For kind assume, provide name 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.",
66
+ "description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write, enter_plan_mode, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 \"model <id> is not in the model catalog\" and an embedding, image or speech model returns 400 \"model <id> cannot run an agent\". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {\"name\":\"helper\",\"model\":{\"id\":\"deepseek-flash\"},\"tools\":[{\"type\":\"agent_toolset_20260401\"}]}. For kind assume, provide name without model, models, subagent_model, subagents or multiagent; omit computer_id to register a new computer named after the agent without starting an instance, or provide an existing computer_id; vault_ids are accepted, bindings and environment_id are refused. Drive assume agents over MCP at /agent/v1/agents/{id}/mcp.",
67
67
  "http": "POST",
68
68
  "path": "/agent/v1/agents",
69
69
  "streaming": "no",
@@ -3507,7 +3507,7 @@ export const operations = [
3507
3507
  "resource": "application.workers.grants",
3508
3508
  "method": "create",
3509
3509
  "summary": "Create grant",
3510
- "description": "Let this Worker's platform token access one of your databases, folders or knowledge bases.",
3510
+ "description": "Record access to an organization-owned database or knowledge base, all organization files (files, id *), or models (models, id *, read only). Each resource and optional alias must be unique within this Worker. Foreign and missing resources both return RESOURCE_NOT_FOUND (404); an unavailable resource service returns PROVIDER_CAPACITY (503, retryable).",
3511
3511
  "http": "POST",
3512
3512
  "path": "/application/v1/workers/{worker_id}/grants",
3513
3513
  "streaming": "no",
@@ -3527,7 +3527,13 @@ export const operations = [
3527
3527
  "name": "resource",
3528
3528
  "type": "object",
3529
3529
  "required": true,
3530
- "description": "Resource to grant."
3530
+ "description": "Resource to grant. Each (type, id) may be granted once per Worker; duplicates return GRANT_CONFLICT (409)."
3531
+ },
3532
+ {
3533
+ "name": "alias",
3534
+ "type": "string",
3535
+ "required": false,
3536
+ "description": "Optional name, unique within this Worker. Available for reuse after the grant is deleted."
3531
3537
  },
3532
3538
  {
3533
3539
  "name": "access",
@@ -3537,7 +3543,7 @@ export const operations = [
3537
3543
  "read_write"
3538
3544
  ],
3539
3545
  "required": true,
3540
- "description": "Access level."
3546
+ "description": "Access level; models accepts read only."
3541
3547
  }
3542
3548
  ]
3543
3549
  }
@@ -6303,7 +6309,7 @@ export const operations = [
6303
6309
  "resource": "automation.workflows",
6304
6310
  "method": "create",
6305
6311
  "summary": "Create a workflow",
6306
- "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.",
6312
+ "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.",
6307
6313
  "http": "POST",
6308
6314
  "path": "/automation/v1/workflows",
6309
6315
  "streaming": "no",
@@ -7250,27 +7256,618 @@ export const operations = [
7250
7256
  "pagination": false,
7251
7257
  "pathParams": [
7252
7258
  {
7253
- "name": "sessionId",
7254
- "sdkName": "sessionId",
7255
- "description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
7259
+ "name": "sessionId",
7260
+ "sdkName": "sessionId",
7261
+ "description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
7262
+ }
7263
+ ],
7264
+ "query": []
7265
+ },
7266
+ {
7267
+ "resource": "browser.sessions.viewer",
7268
+ "method": "create",
7269
+ "summary": "更新查看者心跳",
7270
+ "description": "登记运行中会话的观看者仍在线,以免无人连接时因空闲被释放。观看页面可见期间为同一观看者重复发送相同 viewerId;停止观看后停止发送,过期心跳不再计为在线。",
7271
+ "http": "POST",
7272
+ "path": "/browser/v1/sessions/{sessionId}/viewer",
7273
+ "streaming": "no",
7274
+ "pagination": false,
7275
+ "pathParams": [
7276
+ {
7277
+ "name": "sessionId",
7278
+ "sdkName": "sessionId",
7279
+ "description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
7280
+ }
7281
+ ],
7282
+ "query": [],
7283
+ "body": {
7284
+ "required": true,
7285
+ "fields": [
7286
+ {
7287
+ "name": "viewerId",
7288
+ "type": "string",
7289
+ "required": true,
7290
+ "description": "当前观看者的稳定标识;同一观看者重复心跳应使用相同值,长度为 1–128 个 UTF-16 代码单元。"
7291
+ }
7292
+ ]
7293
+ }
7294
+ },
7295
+ {
7296
+ "resource": "canvas.canvases",
7297
+ "method": "list",
7298
+ "summary": "List canvases",
7299
+ "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.",
7300
+ "http": "GET",
7301
+ "path": "/canvas/v1/canvases",
7302
+ "streaming": "no",
7303
+ "pagination": true,
7304
+ "pathParams": [],
7305
+ "query": [
7306
+ {
7307
+ "name": "limit",
7308
+ "type": "integer",
7309
+ "required": false,
7310
+ "description": "Maximum canvases to return per page, from 1 to 100; defaults to 50 when omitted."
7311
+ },
7312
+ {
7313
+ "name": "cursor",
7314
+ "type": "string",
7315
+ "required": false,
7316
+ "description": "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
7317
+ }
7318
+ ]
7319
+ },
7320
+ {
7321
+ "resource": "canvas.canvases",
7322
+ "method": "create",
7323
+ "summary": "Create canvas",
7324
+ "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.",
7325
+ "http": "POST",
7326
+ "path": "/canvas/v1/canvases",
7327
+ "streaming": "no",
7328
+ "pagination": false,
7329
+ "pathParams": [],
7330
+ "query": [],
7331
+ "body": {
7332
+ "required": false,
7333
+ "fields": [
7334
+ {
7335
+ "name": "name",
7336
+ "type": "string",
7337
+ "required": false,
7338
+ "description": "Display name for the new canvas, at most 200 characters; omission uses Untitled."
7339
+ }
7340
+ ]
7341
+ }
7342
+ },
7343
+ {
7344
+ "resource": "canvas.canvases",
7345
+ "method": "delete",
7346
+ "summary": "Delete canvas",
7347
+ "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.",
7348
+ "http": "DELETE",
7349
+ "path": "/canvas/v1/canvases/{canvas_id}",
7350
+ "streaming": "no",
7351
+ "pagination": false,
7352
+ "pathParams": [
7353
+ {
7354
+ "name": "canvas_id",
7355
+ "sdkName": "canvas_id",
7356
+ "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."
7357
+ }
7358
+ ],
7359
+ "query": []
7360
+ },
7361
+ {
7362
+ "resource": "canvas.canvases",
7363
+ "method": "retrieve",
7364
+ "summary": "Retrieve canvas",
7365
+ "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.",
7366
+ "http": "GET",
7367
+ "path": "/canvas/v1/canvases/{canvas_id}",
7368
+ "streaming": "no",
7369
+ "pagination": false,
7370
+ "pathParams": [
7371
+ {
7372
+ "name": "canvas_id",
7373
+ "sdkName": "canvas_id",
7374
+ "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."
7375
+ }
7376
+ ],
7377
+ "query": []
7378
+ },
7379
+ {
7380
+ "resource": "canvas.canvases.images",
7381
+ "method": "list",
7382
+ "summary": "Render canvas nodes",
7383
+ "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.",
7384
+ "http": "GET",
7385
+ "path": "/canvas/v1/canvases/{canvas_id}/images",
7386
+ "streaming": "no",
7387
+ "pagination": false,
7388
+ "pathParams": [
7389
+ {
7390
+ "name": "canvas_id",
7391
+ "sdkName": "canvas_id",
7392
+ "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."
7393
+ }
7394
+ ],
7395
+ "query": [
7396
+ {
7397
+ "name": "ids",
7398
+ "type": "string",
7399
+ "required": true,
7400
+ "description": "Comma-separated list of 1–4 node ids to render, from retrieve, execute.created or execute.screenshots."
7401
+ },
7402
+ {
7403
+ "name": "scale",
7404
+ "type": "number",
7405
+ "required": false,
7406
+ "description": "Output pixel scale relative to canvas dimensions, from 0.25 to 4 inclusive; defaults to 1 when omitted."
7407
+ },
7408
+ {
7409
+ "name": "format",
7410
+ "type": "string",
7411
+ "enum": [
7412
+ "png"
7413
+ ],
7414
+ "required": false,
7415
+ "description": "Image encoding; png produces a PNG data URL and is the only supported value. Omit to use png."
7416
+ }
7417
+ ]
7418
+ },
7419
+ {
7420
+ "resource": "canvas.canvases.nodes",
7421
+ "method": "list",
7422
+ "summary": "Read canvas nodes",
7423
+ "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.",
7424
+ "http": "GET",
7425
+ "path": "/canvas/v1/canvases/{canvas_id}/nodes",
7426
+ "streaming": "no",
7427
+ "pagination": false,
7428
+ "pathParams": [
7429
+ {
7430
+ "name": "canvas_id",
7431
+ "sdkName": "canvas_id",
7432
+ "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."
7433
+ }
7434
+ ],
7435
+ "query": [
7436
+ {
7437
+ "name": "ids",
7438
+ "type": "string",
7439
+ "required": true,
7440
+ "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."
7441
+ },
7442
+ {
7443
+ "name": "depth",
7444
+ "type": "integer",
7445
+ "required": false,
7446
+ "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."
7447
+ }
7448
+ ]
7449
+ },
7450
+ {
7451
+ "resource": "canvas.canvases",
7452
+ "method": "execute",
7453
+ "summary": "Execute canvas script",
7454
+ "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",
7455
+ "http": "POST",
7456
+ "path": "/canvas/v1/canvases/{canvas_id}:execute",
7457
+ "streaming": "no",
7458
+ "pagination": false,
7459
+ "pathParams": [
7460
+ {
7461
+ "name": "canvas_id",
7462
+ "sdkName": "canvas_id",
7463
+ "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."
7464
+ }
7465
+ ],
7466
+ "query": [],
7467
+ "body": {
7468
+ "required": true,
7469
+ "fields": [
7470
+ {
7471
+ "name": "script",
7472
+ "type": "string",
7473
+ "required": false,
7474
+ "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."
7475
+ },
7476
+ {
7477
+ "name": "edit_id",
7478
+ "type": "string",
7479
+ "required": false,
7480
+ "description": "Saved failed-script identifier from error.details.edit_id; use with edits instead of script within ten minutes of the failure."
7481
+ },
7482
+ {
7483
+ "name": "edits",
7484
+ "type": "array",
7485
+ "itemType": "object",
7486
+ "required": false,
7487
+ "description": "Text replacements applied to the source identified by edit_id before rerunning; use error line, column or rejection to choose the correction."
7488
+ },
7489
+ {
7490
+ "name": "expected_version",
7491
+ "type": "string",
7492
+ "required": false,
7493
+ "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."
7494
+ }
7495
+ ]
7496
+ }
7497
+ },
7498
+ {
7499
+ "resource": "cut.exports",
7500
+ "method": "retrieve",
7501
+ "summary": "Retrieve video export",
7502
+ "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.",
7503
+ "http": "GET",
7504
+ "path": "/cut/v1/exports/{export_id}",
7505
+ "streaming": "no",
7506
+ "pagination": false,
7507
+ "pathParams": [
7508
+ {
7509
+ "name": "export_id",
7510
+ "sdkName": "export_id",
7511
+ "description": "Export identifier returned by its create or list operation; use the id, not a display name."
7512
+ }
7513
+ ],
7514
+ "query": []
7515
+ },
7516
+ {
7517
+ "resource": "cut.exports",
7518
+ "method": "cancel",
7519
+ "summary": "Cancel video export",
7520
+ "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.",
7521
+ "http": "POST",
7522
+ "path": "/cut/v1/exports/{export_id}:cancel",
7523
+ "streaming": "no",
7524
+ "pagination": false,
7525
+ "pathParams": [
7526
+ {
7527
+ "name": "export_id",
7528
+ "sdkName": "export_id",
7529
+ "description": "Export identifier returned by its create or list operation; use the id, not a display name."
7530
+ }
7531
+ ],
7532
+ "query": []
7533
+ },
7534
+ {
7535
+ "resource": "cut.projects",
7536
+ "method": "list",
7537
+ "summary": "List projects",
7538
+ "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.",
7539
+ "http": "GET",
7540
+ "path": "/cut/v1/projects",
7541
+ "streaming": "no",
7542
+ "pagination": false,
7543
+ "pathParams": [],
7544
+ "query": [
7545
+ {
7546
+ "name": "page_size",
7547
+ "type": "integer",
7548
+ "required": false,
7549
+ "description": "Maximum resources in one page, from 1 to 100; defaults to 50."
7550
+ },
7551
+ {
7552
+ "name": "page_token",
7553
+ "type": "string",
7554
+ "required": false,
7555
+ "description": "Opaque next_page_token from the preceding page; omit on the first request."
7556
+ },
7557
+ {
7558
+ "name": "filter",
7559
+ "type": "string",
7560
+ "required": false,
7561
+ "description": "Optional resource filter; projects supports state = \"active\" or state = \"deleted\"."
7562
+ },
7563
+ {
7564
+ "name": "order_by",
7565
+ "type": "string",
7566
+ "required": false,
7567
+ "description": "Optional ordering expression; projects supports updateTime desc."
7568
+ }
7569
+ ]
7570
+ },
7571
+ {
7572
+ "resource": "cut.projects",
7573
+ "method": "create",
7574
+ "summary": "Create project",
7575
+ "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.",
7576
+ "http": "POST",
7577
+ "path": "/cut/v1/projects",
7578
+ "streaming": "no",
7579
+ "pagination": false,
7580
+ "pathParams": [],
7581
+ "query": [],
7582
+ "body": {
7583
+ "required": true,
7584
+ "fields": [
7585
+ {
7586
+ "name": "name",
7587
+ "type": "string",
7588
+ "required": true,
7589
+ "description": "Human-readable project name; required and must contain non-whitespace text."
7590
+ },
7591
+ {
7592
+ "name": "labels",
7593
+ "type": "object",
7594
+ "required": false,
7595
+ "description": "User-defined string labels for organizing projects; label keys retain their original spelling."
7596
+ },
7597
+ {
7598
+ "name": "settings",
7599
+ "type": "object",
7600
+ "required": true,
7601
+ "description": "Dimensions and frame rate for a new editing project."
7602
+ },
7603
+ {
7604
+ "name": "bindings",
7605
+ "type": "array",
7606
+ "itemType": "object",
7607
+ "required": true,
7608
+ "description": "Accessible library bindings; exactly one read_write entry must have default_upload true."
7609
+ }
7610
+ ]
7611
+ }
7612
+ },
7613
+ {
7614
+ "resource": "cut.projects",
7615
+ "method": "delete",
7616
+ "summary": "Delete project",
7617
+ "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.",
7618
+ "http": "DELETE",
7619
+ "path": "/cut/v1/projects/{project_id}",
7620
+ "streaming": "no",
7621
+ "pagination": false,
7622
+ "pathParams": [
7623
+ {
7624
+ "name": "project_id",
7625
+ "sdkName": "project_id",
7626
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7627
+ }
7628
+ ],
7629
+ "query": []
7630
+ },
7631
+ {
7632
+ "resource": "cut.projects",
7633
+ "method": "retrieve",
7634
+ "summary": "Retrieve project",
7635
+ "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.",
7636
+ "http": "GET",
7637
+ "path": "/cut/v1/projects/{project_id}",
7638
+ "streaming": "no",
7639
+ "pagination": false,
7640
+ "pathParams": [
7641
+ {
7642
+ "name": "project_id",
7643
+ "sdkName": "project_id",
7644
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7645
+ }
7646
+ ],
7647
+ "query": [
7648
+ {
7649
+ "name": "expand",
7650
+ "type": "string",
7651
+ "required": false,
7652
+ "description": "Comma-separated expansions: timeline includes clips, exports includes render jobs, versions includes saved snapshots."
7653
+ }
7654
+ ]
7655
+ },
7656
+ {
7657
+ "resource": "cut.projects",
7658
+ "method": "update",
7659
+ "summary": "Update project metadata",
7660
+ "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.",
7661
+ "http": "PATCH",
7662
+ "path": "/cut/v1/projects/{project_id}",
7663
+ "streaming": "no",
7664
+ "pagination": false,
7665
+ "pathParams": [
7666
+ {
7667
+ "name": "project_id",
7668
+ "sdkName": "project_id",
7669
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7670
+ }
7671
+ ],
7672
+ "query": [],
7673
+ "body": {
7674
+ "required": true,
7675
+ "fields": [
7676
+ {
7677
+ "name": "name",
7678
+ "type": "string",
7679
+ "required": false,
7680
+ "description": "Replacement display name when update_mask includes name."
7681
+ },
7682
+ {
7683
+ "name": "labels",
7684
+ "type": "object",
7685
+ "required": false,
7686
+ "description": "User-defined string labels for organizing projects; label keys retain their original spelling."
7687
+ },
7688
+ {
7689
+ "name": "update_mask",
7690
+ "type": "array",
7691
+ "itemType": "string",
7692
+ "enum": [
7693
+ "name",
7694
+ "labels"
7695
+ ],
7696
+ "required": true,
7697
+ "description": "Metadata fields to replace; name changes the display name and labels replaces all labels."
7698
+ }
7699
+ ]
7700
+ }
7701
+ },
7702
+ {
7703
+ "resource": "cut.projects.analysis",
7704
+ "method": "create",
7705
+ "summary": "Analyze project media",
7706
+ "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.",
7707
+ "http": "POST",
7708
+ "path": "/cut/v1/projects/{project_id}/analysis",
7709
+ "streaming": "no",
7710
+ "pagination": false,
7711
+ "pathParams": [
7712
+ {
7713
+ "name": "project_id",
7714
+ "sdkName": "project_id",
7715
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7716
+ }
7717
+ ],
7718
+ "query": [],
7719
+ "body": {
7720
+ "required": true,
7721
+ "fields": [
7722
+ {
7723
+ "name": "media",
7724
+ "type": "array",
7725
+ "itemType": "object",
7726
+ "required": false,
7727
+ "description": "Bound-library assets to analyze; omission selects project media."
7728
+ },
7729
+ {
7730
+ "name": "kinds",
7731
+ "type": "array",
7732
+ "itemType": "string",
7733
+ "enum": [
7734
+ "silence",
7735
+ "filler",
7736
+ "scenes"
7737
+ ],
7738
+ "required": true,
7739
+ "description": "Analysis types to request for the selected source assets."
7740
+ }
7741
+ ]
7742
+ }
7743
+ },
7744
+ {
7745
+ "resource": "cut.projects.bindings",
7746
+ "method": "list",
7747
+ "summary": "List library bindings",
7748
+ "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.",
7749
+ "http": "GET",
7750
+ "path": "/cut/v1/projects/{project_id}/bindings",
7751
+ "streaming": "no",
7752
+ "pagination": false,
7753
+ "pathParams": [
7754
+ {
7755
+ "name": "project_id",
7756
+ "sdkName": "project_id",
7757
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7758
+ }
7759
+ ],
7760
+ "query": []
7761
+ },
7762
+ {
7763
+ "resource": "cut.projects.bindings",
7764
+ "method": "create",
7765
+ "summary": "Bind media library",
7766
+ "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.",
7767
+ "http": "POST",
7768
+ "path": "/cut/v1/projects/{project_id}/bindings",
7769
+ "streaming": "no",
7770
+ "pagination": false,
7771
+ "pathParams": [
7772
+ {
7773
+ "name": "project_id",
7774
+ "sdkName": "project_id",
7775
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7776
+ }
7777
+ ],
7778
+ "query": [],
7779
+ "body": {
7780
+ "required": true,
7781
+ "fields": [
7782
+ {
7783
+ "name": "binding",
7784
+ "type": "object",
7785
+ "required": true,
7786
+ "description": "A named project link to a media library. Exactly one read_write binding must be default_upload."
7787
+ }
7788
+ ]
7789
+ }
7790
+ },
7791
+ {
7792
+ "resource": "cut.projects.bindings",
7793
+ "method": "delete",
7794
+ "summary": "Remove library binding",
7795
+ "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.",
7796
+ "http": "DELETE",
7797
+ "path": "/cut/v1/projects/{project_id}/bindings/{name}",
7798
+ "streaming": "no",
7799
+ "pagination": false,
7800
+ "pathParams": [
7801
+ {
7802
+ "name": "project_id",
7803
+ "sdkName": "project_id",
7804
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7805
+ },
7806
+ {
7807
+ "name": "name",
7808
+ "sdkName": "name",
7809
+ "description": "Project-local binding alias from bindings.list; detach only after removing all clips that reference its library."
7810
+ }
7811
+ ],
7812
+ "query": []
7813
+ },
7814
+ {
7815
+ "resource": "cut.projects.exports",
7816
+ "method": "list",
7817
+ "summary": "List project exports",
7818
+ "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.",
7819
+ "http": "GET",
7820
+ "path": "/cut/v1/projects/{project_id}/exports",
7821
+ "streaming": "no",
7822
+ "pagination": false,
7823
+ "pathParams": [
7824
+ {
7825
+ "name": "project_id",
7826
+ "sdkName": "project_id",
7827
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7828
+ }
7829
+ ],
7830
+ "query": [
7831
+ {
7832
+ "name": "page_size",
7833
+ "type": "integer",
7834
+ "required": false,
7835
+ "description": "Maximum resources in one page, from 1 to 100; defaults to 50."
7836
+ },
7837
+ {
7838
+ "name": "page_token",
7839
+ "type": "string",
7840
+ "required": false,
7841
+ "description": "Opaque next_page_token from the preceding page; omit on the first request."
7842
+ },
7843
+ {
7844
+ "name": "filter",
7845
+ "type": "string",
7846
+ "required": false,
7847
+ "description": "Optional resource filter; projects supports state = \"active\" or state = \"deleted\"."
7848
+ },
7849
+ {
7850
+ "name": "order_by",
7851
+ "type": "string",
7852
+ "required": false,
7853
+ "description": "Optional ordering expression; projects supports updateTime desc."
7256
7854
  }
7257
- ],
7258
- "query": []
7855
+ ]
7259
7856
  },
7260
7857
  {
7261
- "resource": "browser.sessions.viewer",
7858
+ "resource": "cut.projects.exports",
7262
7859
  "method": "create",
7263
- "summary": "更新查看者心跳",
7264
- "description": "登记运行中会话的观看者仍在线,以免无人连接时因空闲被释放。观看页面可见期间为同一观看者重复发送相同 viewerId;停止观看后停止发送,过期心跳不再计为在线。",
7860
+ "summary": "Create video export",
7861
+ "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.",
7265
7862
  "http": "POST",
7266
- "path": "/browser/v1/sessions/{sessionId}/viewer",
7863
+ "path": "/cut/v1/projects/{project_id}/exports",
7267
7864
  "streaming": "no",
7268
7865
  "pagination": false,
7269
7866
  "pathParams": [
7270
7867
  {
7271
- "name": "sessionId",
7272
- "sdkName": "sessionId",
7273
- "description": "浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。"
7868
+ "name": "project_id",
7869
+ "sdkName": "project_id",
7870
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7274
7871
  }
7275
7872
  ],
7276
7873
  "query": [],
@@ -7278,183 +7875,255 @@ export const operations = [
7278
7875
  "required": true,
7279
7876
  "fields": [
7280
7877
  {
7281
- "name": "viewerId",
7878
+ "name": "output",
7879
+ "type": "object",
7880
+ "required": false,
7881
+ "description": "Rendering options for an exported video."
7882
+ },
7883
+ {
7884
+ "name": "binding",
7282
7885
  "type": "string",
7283
- "required": true,
7284
- "description": "当前观看者的稳定标识;同一观看者重复心跳应使用相同值,长度为 1–128 个 UTF-16 代码单元。"
7886
+ "required": false,
7887
+ "description": "Writable binding name used as the export destination; omission uses default_upload."
7888
+ },
7889
+ {
7890
+ "name": "revision",
7891
+ "type": "integer",
7892
+ "required": false,
7893
+ "description": "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
7285
7894
  }
7286
7895
  ]
7287
7896
  }
7288
7897
  },
7289
7898
  {
7290
- "resource": "canvas.canvases",
7899
+ "resource": "cut.projects.frames",
7291
7900
  "method": "list",
7292
- "summary": "List canvases",
7293
- "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.",
7901
+ "summary": "Render preview frames",
7902
+ "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.",
7294
7903
  "http": "GET",
7295
- "path": "/canvas/v1/canvases",
7904
+ "path": "/cut/v1/projects/{project_id}/frames",
7296
7905
  "streaming": "no",
7297
- "pagination": true,
7298
- "pathParams": [],
7906
+ "pagination": false,
7907
+ "pathParams": [
7908
+ {
7909
+ "name": "project_id",
7910
+ "sdkName": "project_id",
7911
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7912
+ }
7913
+ ],
7299
7914
  "query": [
7300
7915
  {
7301
- "name": "limit",
7302
- "type": "integer",
7916
+ "name": "at",
7917
+ "type": "string",
7918
+ "required": true,
7919
+ "description": "Required comma-separated non-negative project times in seconds, for example 12,15.5."
7920
+ },
7921
+ {
7922
+ "name": "scale",
7923
+ "type": "number",
7303
7924
  "required": false,
7304
- "description": "Maximum canvases to return per page, from 1 to 100; defaults to 50 when omitted."
7925
+ "description": "Positive image size multiplier; 0.5 renders at half the project dimensions."
7305
7926
  },
7306
7927
  {
7307
- "name": "cursor",
7308
- "type": "string",
7928
+ "name": "revision",
7929
+ "type": "integer",
7309
7930
  "required": false,
7310
- "description": "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
7931
+ "description": "Optional committed project revision from state or execute; omission selects the current revision."
7311
7932
  }
7312
7933
  ]
7313
7934
  },
7314
7935
  {
7315
- "resource": "canvas.canvases",
7316
- "method": "create",
7317
- "summary": "Create canvas",
7318
- "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.",
7936
+ "resource": "cut.projects.media",
7937
+ "method": "import",
7938
+ "summary": "Import project media",
7939
+ "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.",
7319
7940
  "http": "POST",
7320
- "path": "/canvas/v1/canvases",
7941
+ "path": "/cut/v1/projects/{project_id}/media:import",
7321
7942
  "streaming": "no",
7322
7943
  "pagination": false,
7323
- "pathParams": [],
7944
+ "pathParams": [
7945
+ {
7946
+ "name": "project_id",
7947
+ "sdkName": "project_id",
7948
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7949
+ }
7950
+ ],
7324
7951
  "query": [],
7325
7952
  "body": {
7326
- "required": false,
7953
+ "required": true,
7327
7954
  "fields": [
7328
7955
  {
7329
- "name": "name",
7956
+ "name": "binding",
7330
7957
  "type": "string",
7331
7958
  "required": false,
7332
- "description": "Display name for the new canvas, at most 200 characters; omission uses Untitled."
7959
+ "description": "Writable binding name from project bindings; omission uses default_upload."
7960
+ },
7961
+ {
7962
+ "name": "source",
7963
+ "type": "object",
7964
+ "required": true,
7965
+ "description": "Exactly one input source for the imported asset."
7966
+ },
7967
+ {
7968
+ "name": "display_name",
7969
+ "type": "string",
7970
+ "required": false,
7971
+ "description": "Optional human-readable display name for the new media asset."
7333
7972
  }
7334
7973
  ]
7335
7974
  }
7336
7975
  },
7337
7976
  {
7338
- "resource": "canvas.canvases",
7339
- "method": "delete",
7340
- "summary": "Delete canvas",
7341
- "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.",
7342
- "http": "DELETE",
7343
- "path": "/canvas/v1/canvases/{canvas_id}",
7344
- "streaming": "no",
7345
- "pagination": false,
7346
- "pathParams": [
7347
- {
7348
- "name": "canvas_id",
7349
- "sdkName": "canvas_id",
7350
- "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."
7351
- }
7352
- ],
7353
- "query": []
7354
- },
7355
- {
7356
- "resource": "canvas.canvases",
7357
- "method": "retrieve",
7358
- "summary": "Retrieve canvas",
7359
- "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.",
7977
+ "resource": "cut.projects",
7978
+ "method": "retrieveState",
7979
+ "summary": "Read editing state",
7980
+ "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.",
7360
7981
  "http": "GET",
7361
- "path": "/canvas/v1/canvases/{canvas_id}",
7982
+ "path": "/cut/v1/projects/{project_id}/state",
7362
7983
  "streaming": "no",
7363
7984
  "pagination": false,
7364
7985
  "pathParams": [
7365
7986
  {
7366
- "name": "canvas_id",
7367
- "sdkName": "canvas_id",
7368
- "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."
7987
+ "name": "project_id",
7988
+ "sdkName": "project_id",
7989
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7369
7990
  }
7370
7991
  ],
7371
7992
  "query": []
7372
7993
  },
7373
7994
  {
7374
- "resource": "canvas.canvases.images",
7375
- "method": "list",
7376
- "summary": "Render canvas nodes",
7377
- "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.",
7995
+ "resource": "cut.projects",
7996
+ "method": "retrieveTimeline",
7997
+ "summary": "Read project timeline",
7998
+ "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.",
7378
7999
  "http": "GET",
7379
- "path": "/canvas/v1/canvases/{canvas_id}/images",
8000
+ "path": "/cut/v1/projects/{project_id}/timeline",
7380
8001
  "streaming": "no",
7381
8002
  "pagination": false,
7382
8003
  "pathParams": [
7383
8004
  {
7384
- "name": "canvas_id",
7385
- "sdkName": "canvas_id",
7386
- "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."
8005
+ "name": "project_id",
8006
+ "sdkName": "project_id",
8007
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7387
8008
  }
7388
8009
  ],
7389
8010
  "query": [
7390
8011
  {
7391
- "name": "ids",
8012
+ "name": "view",
7392
8013
  "type": "string",
7393
- "required": true,
7394
- "description": "Comma-separated list of 1–4 node ids to render, from retrieve, execute.created or execute.screenshots."
8014
+ "enum": [
8015
+ "full",
8016
+ "compact"
8017
+ ],
8018
+ "required": false,
8019
+ "description": "full returns structured clips; compact returns compact textual editing context."
7395
8020
  },
7396
8021
  {
7397
- "name": "scale",
8022
+ "name": "from",
7398
8023
  "type": "number",
7399
8024
  "required": false,
7400
- "description": "Output pixel scale relative to canvas dimensions, from 0.25 to 4 inclusive; defaults to 1 when omitted."
8025
+ "description": "Optional start of the selected project range in seconds; omit for the beginning."
7401
8026
  },
7402
8027
  {
7403
- "name": "format",
8028
+ "name": "to",
8029
+ "type": "number",
8030
+ "required": false,
8031
+ "description": "Optional end of the selected project range in seconds; omit for the end."
8032
+ },
8033
+ {
8034
+ "name": "tracks",
7404
8035
  "type": "string",
7405
- "enum": [
7406
- "png"
7407
- ],
7408
8036
  "required": false,
7409
- "description": "Image encoding; png produces a PNG data URL and is the only supported value. Omit to use png."
8037
+ "description": "Comma-separated track ids from state to include; omit to include every track."
7410
8038
  }
7411
8039
  ]
7412
8040
  },
7413
8041
  {
7414
- "resource": "canvas.canvases.nodes",
8042
+ "resource": "cut.projects.versions",
7415
8043
  "method": "list",
7416
- "summary": "Read canvas nodes",
7417
- "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.",
8044
+ "summary": "List saved versions",
8045
+ "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.",
7418
8046
  "http": "GET",
7419
- "path": "/canvas/v1/canvases/{canvas_id}/nodes",
8047
+ "path": "/cut/v1/projects/{project_id}/versions",
7420
8048
  "streaming": "no",
7421
8049
  "pagination": false,
7422
8050
  "pathParams": [
7423
8051
  {
7424
- "name": "canvas_id",
7425
- "sdkName": "canvas_id",
7426
- "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."
8052
+ "name": "project_id",
8053
+ "sdkName": "project_id",
8054
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7427
8055
  }
7428
8056
  ],
7429
8057
  "query": [
7430
8058
  {
7431
- "name": "ids",
8059
+ "name": "page_size",
8060
+ "type": "integer",
8061
+ "required": false,
8062
+ "description": "Maximum resources in one page, from 1 to 100; defaults to 50."
8063
+ },
8064
+ {
8065
+ "name": "page_token",
7432
8066
  "type": "string",
7433
- "required": true,
7434
- "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."
8067
+ "required": false,
8068
+ "description": "Opaque next_page_token from the preceding page; omit on the first request."
7435
8069
  },
7436
8070
  {
7437
- "name": "depth",
7438
- "type": "integer",
8071
+ "name": "filter",
8072
+ "type": "string",
7439
8073
  "required": false,
7440
- "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."
8074
+ "description": "Optional resource filter; projects supports state = \"active\" or state = \"deleted\"."
8075
+ },
8076
+ {
8077
+ "name": "order_by",
8078
+ "type": "string",
8079
+ "required": false,
8080
+ "description": "Optional ordering expression; projects supports updateTime desc."
7441
8081
  }
7442
8082
  ]
7443
8083
  },
7444
8084
  {
7445
- "resource": "canvas.canvases",
8085
+ "resource": "cut.projects.versions",
8086
+ "method": "create",
8087
+ "summary": "Save project version",
8088
+ "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.",
8089
+ "http": "POST",
8090
+ "path": "/cut/v1/projects/{project_id}/versions",
8091
+ "streaming": "no",
8092
+ "pagination": false,
8093
+ "pathParams": [
8094
+ {
8095
+ "name": "project_id",
8096
+ "sdkName": "project_id",
8097
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
8098
+ }
8099
+ ],
8100
+ "query": [],
8101
+ "body": {
8102
+ "required": true,
8103
+ "fields": [
8104
+ {
8105
+ "name": "label",
8106
+ "type": "string",
8107
+ "required": false,
8108
+ "description": "Human-readable snapshot label, such as Before captions."
8109
+ }
8110
+ ]
8111
+ }
8112
+ },
8113
+ {
8114
+ "resource": "cut.projects",
7446
8115
  "method": "execute",
7447
- "summary": "Execute canvas script",
7448
- "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",
8116
+ "summary": "Execute editing script",
8117
+ "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```",
7449
8118
  "http": "POST",
7450
- "path": "/canvas/v1/canvases/{canvas_id}:execute",
8119
+ "path": "/cut/v1/projects/{project_id}:execute",
7451
8120
  "streaming": "no",
7452
8121
  "pagination": false,
7453
8122
  "pathParams": [
7454
8123
  {
7455
- "name": "canvas_id",
7456
- "sdkName": "canvas_id",
7457
- "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."
8124
+ "name": "project_id",
8125
+ "sdkName": "project_id",
8126
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
7458
8127
  }
7459
8128
  ],
7460
8129
  "query": [],
@@ -7465,30 +8134,66 @@ export const operations = [
7465
8134
  "name": "script",
7466
8135
  "type": "string",
7467
8136
  "required": false,
7468
- "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."
8137
+ "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."
7469
8138
  },
7470
8139
  {
7471
8140
  "name": "edit_id",
7472
8141
  "type": "string",
7473
8142
  "required": false,
7474
- "description": "Saved failed-script identifier from error.details.edit_id; use with edits instead of script within ten minutes of the failure."
8143
+ "description": "Saved failed script identifier from error.details.edit_id; valid for ten minutes."
7475
8144
  },
7476
8145
  {
7477
8146
  "name": "edits",
7478
8147
  "type": "array",
7479
8148
  "itemType": "object",
7480
8149
  "required": false,
7481
- "description": "Text replacements applied to the source identified by edit_id before rerunning; use error line, column or rejection to choose the correction."
8150
+ "description": "Literal replacements applied to the saved source before rerunning."
7482
8151
  },
7483
8152
  {
7484
- "name": "expected_version",
7485
- "type": "string",
8153
+ "name": "expected_revision",
8154
+ "type": "integer",
7486
8155
  "required": false,
7487
- "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."
8156
+ "description": "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
7488
8157
  }
7489
8158
  ]
7490
8159
  }
7491
8160
  },
8161
+ {
8162
+ "resource": "cut.projects",
8163
+ "method": "undelete",
8164
+ "summary": "Restore deleted project",
8165
+ "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.",
8166
+ "http": "POST",
8167
+ "path": "/cut/v1/projects/{project_id}:undelete",
8168
+ "streaming": "no",
8169
+ "pagination": false,
8170
+ "pathParams": [
8171
+ {
8172
+ "name": "project_id",
8173
+ "sdkName": "project_id",
8174
+ "description": "Project identifier returned by its create or list operation; use the id, not a display name."
8175
+ }
8176
+ ],
8177
+ "query": []
8178
+ },
8179
+ {
8180
+ "resource": "cut.versions",
8181
+ "method": "restore",
8182
+ "summary": "Restore saved version",
8183
+ "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.",
8184
+ "http": "POST",
8185
+ "path": "/cut/v1/versions/{version_id}:restore",
8186
+ "streaming": "no",
8187
+ "pagination": false,
8188
+ "pathParams": [
8189
+ {
8190
+ "name": "version_id",
8191
+ "sdkName": "version_id",
8192
+ "description": "Version identifier returned by its create or list operation; use the id, not a display name."
8193
+ }
8194
+ ],
8195
+ "query": []
8196
+ },
7492
8197
  {
7493
8198
  "resource": "database.databases",
7494
8199
  "method": "list",
@@ -12012,7 +12717,8 @@ export const operations = [
12012
12717
  "openai.images.edits",
12013
12718
  "openai.images.generations",
12014
12719
  "openai.responses",
12015
- "openai.videos"
12720
+ "openai.videos",
12721
+ "typesafe.systemone"
12016
12722
  ],
12017
12723
  "required": false,
12018
12724
  "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."
@@ -12587,6 +13293,47 @@ export const operations = [
12587
13293
  ],
12588
13294
  "query": []
12589
13295
  },
13296
+ {
13297
+ "resource": "model.systemone",
13298
+ "method": "create",
13299
+ "summary": "Ask structured decision questions",
13300
+ "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.",
13301
+ "http": "POST",
13302
+ "path": "/model/v1/systemone",
13303
+ "streaming": "no",
13304
+ "pagination": false,
13305
+ "pathParams": [],
13306
+ "query": [],
13307
+ "body": {
13308
+ "required": true,
13309
+ "fields": [
13310
+ {
13311
+ "name": "model",
13312
+ "type": "string",
13313
+ "required": true,
13314
+ "description": "Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response."
13315
+ },
13316
+ {
13317
+ "name": "state",
13318
+ "type": "object",
13319
+ "required": true,
13320
+ "description": "Shared content evaluated by every question, supplied as text, a JSON object or an array."
13321
+ },
13322
+ {
13323
+ "name": "questions",
13324
+ "type": "object",
13325
+ "required": true,
13326
+ "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."
13327
+ },
13328
+ {
13329
+ "name": "assets",
13330
+ "type": "object",
13331
+ "required": false,
13332
+ "description": "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported."
13333
+ }
13334
+ ]
13335
+ }
13336
+ },
12590
13337
  {
12591
13338
  "resource": "model.videos",
12592
13339
  "method": "list",