@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.
@@ -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";
@@ -2852,7 +2852,7 @@ export declare const operations: readonly [{
2852
2852
  readonly resource: "application.workers.grants";
2853
2853
  readonly method: "create";
2854
2854
  readonly summary: "Create grant";
2855
- readonly description: "Let this Worker's platform token access one of your databases, folders or knowledge bases.";
2855
+ readonly description: "Record access to an organization-owned database or knowledge base, all organization files (files, id *), or models (models, id *, read only). Each resource and optional alias must be unique within this Worker. Foreign and missing resources both return RESOURCE_NOT_FOUND (404); an unavailable resource service returns PROVIDER_CAPACITY (503, retryable).";
2856
2856
  readonly http: "POST";
2857
2857
  readonly path: "/application/v1/workers/{worker_id}/grants";
2858
2858
  readonly streaming: "no";
@@ -2869,13 +2869,18 @@ export declare const operations: readonly [{
2869
2869
  readonly name: "resource";
2870
2870
  readonly type: "object";
2871
2871
  readonly required: true;
2872
- readonly description: "Resource to grant.";
2872
+ readonly description: "Resource to grant. Each (type, id) may be granted once per Worker; duplicates return GRANT_CONFLICT (409).";
2873
+ }, {
2874
+ readonly name: "alias";
2875
+ readonly type: "string";
2876
+ readonly required: false;
2877
+ readonly description: "Optional name, unique within this Worker. Available for reuse after the grant is deleted.";
2873
2878
  }, {
2874
2879
  readonly name: "access";
2875
2880
  readonly type: "string";
2876
2881
  readonly enum: readonly ["read", "read_write"];
2877
2882
  readonly required: true;
2878
- readonly description: "Access level.";
2883
+ readonly description: "Access level; models accepts read only.";
2879
2884
  }];
2880
2885
  };
2881
2886
  }, {
@@ -5094,7 +5099,7 @@ export declare const operations: readonly [{
5094
5099
  readonly resource: "automation.workflows";
5095
5100
  readonly method: "create";
5096
5101
  readonly summary: "Create a workflow";
5097
- readonly description: "Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax. Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl (\"1.0.3\"), namespace, name and version, plus a do list of steps, for example document: {dsl: \"1.0.3\", namespace: demo, name: add, version: \"1.0.0\"} and do: [{first: {call: demo/add-one, with: {n: \"${ .n }\"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action 30 s (run-sandbox 10 min), workflow 24 h by default and 30 days at most, payload 1 MiB. Test the draft by sending its source and language=yaml to praxis.automation.runs.create. Guide: /docs/developers/automation/guides/write-workflow. Error details are in the errors[] of the response (pointer, detail, hint). Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. run.workflow accepts ns/name@range or {namespace, name, version, input}; run.script uses the same reference shape as a platform extension. Object namespace, name and version are required; version accepts an exact version, dist-tag or range, locked at publication. Object input defaults to {} and supports expressions; string references retain task-level with. run.await defaults to true and returns the child output. With false, the child uses detach and the task immediately returns {run_id}; parent cancellation does not cascade. Inline script.code returns DEFINITION_INVALID with a detail asking you to save a script and reference it first. raise.error retains its type URI, status, title and detail in the run error.";
5102
+ readonly description: "Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax. Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl (\"1.0.3\"), namespace, name and version, plus a do list of steps, for example document: {dsl: \"1.0.3\", namespace: demo, name: add, version: \"1.0.0\"} and do: [{first: {call: demo/add-one, with: {n: \"${ .n }\"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action 30 s (run-sandbox 10 min), workflow 24 h by default and 30 days at most, payload 1 MiB. Test the draft by sending its source and language=yaml to praxis.automation.runs.create. To pause for a person, call praxis/approval (it opens a human task; the step output is the decision); agents answer with praxis.automation.humanTasks.respond on behalf of their user. Guide: /docs/developers/automation/guides/approvals Guide: /docs/developers/automation/guides/write-workflow. Error details are in the errors[] of the response (pointer, detail, hint). Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. run.workflow accepts ns/name@range or {namespace, name, version, input}; run.script uses the same reference shape as a platform extension. Object namespace, name and version are required; version accepts an exact version, dist-tag or range, locked at publication. Object input defaults to {} and supports expressions; string references retain task-level with. run.await defaults to true and returns the child output. With false, the child uses detach and the task immediately returns {run_id}; parent cancellation does not cascade. Inline script.code returns DEFINITION_INVALID with a detail asking you to save a script and reference it first. raise.error retains its type URI, status, title and detail in the run error.";
5098
5103
  readonly http: "POST";
5099
5104
  readonly path: "/automation/v1/workflows";
5100
5105
  readonly streaming: "no";
@@ -6069,6 +6074,577 @@ export declare const operations: readonly [{
6069
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.";
6070
6075
  }];
6071
6076
  };
6077
+ }, {
6078
+ readonly resource: "cut.exports";
6079
+ readonly method: "retrieve";
6080
+ readonly summary: "Retrieve video export";
6081
+ 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.";
6082
+ readonly http: "GET";
6083
+ readonly path: "/cut/v1/exports/{export_id}";
6084
+ readonly streaming: "no";
6085
+ readonly pagination: false;
6086
+ readonly pathParams: readonly [{
6087
+ readonly name: "export_id";
6088
+ readonly sdkName: "export_id";
6089
+ readonly description: "Export identifier returned by its create or list operation; use the id, not a display name.";
6090
+ }];
6091
+ readonly query: readonly [];
6092
+ }, {
6093
+ readonly resource: "cut.exports";
6094
+ readonly method: "cancel";
6095
+ readonly summary: "Cancel video export";
6096
+ 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.";
6097
+ readonly http: "POST";
6098
+ readonly path: "/cut/v1/exports/{export_id}:cancel";
6099
+ readonly streaming: "no";
6100
+ readonly pagination: false;
6101
+ readonly pathParams: readonly [{
6102
+ readonly name: "export_id";
6103
+ readonly sdkName: "export_id";
6104
+ readonly description: "Export identifier returned by its create or list operation; use the id, not a display name.";
6105
+ }];
6106
+ readonly query: readonly [];
6107
+ }, {
6108
+ readonly resource: "cut.projects";
6109
+ readonly method: "list";
6110
+ readonly summary: "List projects";
6111
+ 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.";
6112
+ readonly http: "GET";
6113
+ readonly path: "/cut/v1/projects";
6114
+ readonly streaming: "no";
6115
+ readonly pagination: false;
6116
+ readonly pathParams: readonly [];
6117
+ readonly query: readonly [{
6118
+ readonly name: "page_size";
6119
+ readonly type: "integer";
6120
+ readonly required: false;
6121
+ readonly description: "Maximum resources in one page, from 1 to 100; defaults to 50.";
6122
+ }, {
6123
+ readonly name: "page_token";
6124
+ readonly type: "string";
6125
+ readonly required: false;
6126
+ readonly description: "Opaque next_page_token from the preceding page; omit on the first request.";
6127
+ }, {
6128
+ readonly name: "filter";
6129
+ readonly type: "string";
6130
+ readonly required: false;
6131
+ readonly description: "Optional resource filter; projects supports state = \"active\" or state = \"deleted\".";
6132
+ }, {
6133
+ readonly name: "order_by";
6134
+ readonly type: "string";
6135
+ readonly required: false;
6136
+ readonly description: "Optional ordering expression; projects supports updateTime desc.";
6137
+ }];
6138
+ }, {
6139
+ readonly resource: "cut.projects";
6140
+ readonly method: "create";
6141
+ readonly summary: "Create project";
6142
+ 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.";
6143
+ readonly http: "POST";
6144
+ readonly path: "/cut/v1/projects";
6145
+ readonly streaming: "no";
6146
+ readonly pagination: false;
6147
+ readonly pathParams: readonly [];
6148
+ readonly query: readonly [];
6149
+ readonly body: {
6150
+ readonly required: true;
6151
+ readonly fields: readonly [{
6152
+ readonly name: "name";
6153
+ readonly type: "string";
6154
+ readonly required: true;
6155
+ readonly description: "Human-readable project name; required and must contain non-whitespace text.";
6156
+ }, {
6157
+ readonly name: "labels";
6158
+ readonly type: "object";
6159
+ readonly required: false;
6160
+ readonly description: "User-defined string labels for organizing projects; label keys retain their original spelling.";
6161
+ }, {
6162
+ readonly name: "settings";
6163
+ readonly type: "object";
6164
+ readonly required: true;
6165
+ readonly description: "Dimensions and frame rate for a new editing project.";
6166
+ }, {
6167
+ readonly name: "bindings";
6168
+ readonly type: "array";
6169
+ readonly itemType: "object";
6170
+ readonly required: true;
6171
+ readonly description: "Accessible library bindings; exactly one read_write entry must have default_upload true.";
6172
+ }];
6173
+ };
6174
+ }, {
6175
+ readonly resource: "cut.projects";
6176
+ readonly method: "delete";
6177
+ readonly summary: "Delete project";
6178
+ 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.";
6179
+ readonly http: "DELETE";
6180
+ readonly path: "/cut/v1/projects/{project_id}";
6181
+ readonly streaming: "no";
6182
+ readonly pagination: false;
6183
+ readonly pathParams: readonly [{
6184
+ readonly name: "project_id";
6185
+ readonly sdkName: "project_id";
6186
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6187
+ }];
6188
+ readonly query: readonly [];
6189
+ }, {
6190
+ readonly resource: "cut.projects";
6191
+ readonly method: "retrieve";
6192
+ readonly summary: "Retrieve project";
6193
+ 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.";
6194
+ readonly http: "GET";
6195
+ readonly path: "/cut/v1/projects/{project_id}";
6196
+ readonly streaming: "no";
6197
+ readonly pagination: false;
6198
+ readonly pathParams: readonly [{
6199
+ readonly name: "project_id";
6200
+ readonly sdkName: "project_id";
6201
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6202
+ }];
6203
+ readonly query: readonly [{
6204
+ readonly name: "expand";
6205
+ readonly type: "string";
6206
+ readonly required: false;
6207
+ readonly description: "Comma-separated expansions: timeline includes clips, exports includes render jobs, versions includes saved snapshots.";
6208
+ }];
6209
+ }, {
6210
+ readonly resource: "cut.projects";
6211
+ readonly method: "update";
6212
+ readonly summary: "Update project metadata";
6213
+ 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.";
6214
+ readonly http: "PATCH";
6215
+ readonly path: "/cut/v1/projects/{project_id}";
6216
+ readonly streaming: "no";
6217
+ readonly pagination: false;
6218
+ readonly pathParams: readonly [{
6219
+ readonly name: "project_id";
6220
+ readonly sdkName: "project_id";
6221
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6222
+ }];
6223
+ readonly query: readonly [];
6224
+ readonly body: {
6225
+ readonly required: true;
6226
+ readonly fields: readonly [{
6227
+ readonly name: "name";
6228
+ readonly type: "string";
6229
+ readonly required: false;
6230
+ readonly description: "Replacement display name when update_mask includes name.";
6231
+ }, {
6232
+ readonly name: "labels";
6233
+ readonly type: "object";
6234
+ readonly required: false;
6235
+ readonly description: "User-defined string labels for organizing projects; label keys retain their original spelling.";
6236
+ }, {
6237
+ readonly name: "update_mask";
6238
+ readonly type: "array";
6239
+ readonly itemType: "string";
6240
+ readonly enum: readonly ["name", "labels"];
6241
+ readonly required: true;
6242
+ readonly description: "Metadata fields to replace; name changes the display name and labels replaces all labels.";
6243
+ }];
6244
+ };
6245
+ }, {
6246
+ readonly resource: "cut.projects.analysis";
6247
+ readonly method: "create";
6248
+ readonly summary: "Analyze project media";
6249
+ 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.";
6250
+ readonly http: "POST";
6251
+ readonly path: "/cut/v1/projects/{project_id}/analysis";
6252
+ readonly streaming: "no";
6253
+ readonly pagination: false;
6254
+ readonly pathParams: readonly [{
6255
+ readonly name: "project_id";
6256
+ readonly sdkName: "project_id";
6257
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6258
+ }];
6259
+ readonly query: readonly [];
6260
+ readonly body: {
6261
+ readonly required: true;
6262
+ readonly fields: readonly [{
6263
+ readonly name: "media";
6264
+ readonly type: "array";
6265
+ readonly itemType: "object";
6266
+ readonly required: false;
6267
+ readonly description: "Bound-library assets to analyze; omission selects project media.";
6268
+ }, {
6269
+ readonly name: "kinds";
6270
+ readonly type: "array";
6271
+ readonly itemType: "string";
6272
+ readonly enum: readonly ["silence", "filler", "scenes"];
6273
+ readonly required: true;
6274
+ readonly description: "Analysis types to request for the selected source assets.";
6275
+ }];
6276
+ };
6277
+ }, {
6278
+ readonly resource: "cut.projects.bindings";
6279
+ readonly method: "list";
6280
+ readonly summary: "List library bindings";
6281
+ 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.";
6282
+ readonly http: "GET";
6283
+ readonly path: "/cut/v1/projects/{project_id}/bindings";
6284
+ readonly streaming: "no";
6285
+ readonly pagination: false;
6286
+ readonly pathParams: readonly [{
6287
+ readonly name: "project_id";
6288
+ readonly sdkName: "project_id";
6289
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6290
+ }];
6291
+ readonly query: readonly [];
6292
+ }, {
6293
+ readonly resource: "cut.projects.bindings";
6294
+ readonly method: "create";
6295
+ readonly summary: "Bind media library";
6296
+ 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.";
6297
+ readonly http: "POST";
6298
+ readonly path: "/cut/v1/projects/{project_id}/bindings";
6299
+ readonly streaming: "no";
6300
+ readonly pagination: false;
6301
+ readonly pathParams: readonly [{
6302
+ readonly name: "project_id";
6303
+ readonly sdkName: "project_id";
6304
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6305
+ }];
6306
+ readonly query: readonly [];
6307
+ readonly body: {
6308
+ readonly required: true;
6309
+ readonly fields: readonly [{
6310
+ readonly name: "binding";
6311
+ readonly type: "object";
6312
+ readonly required: true;
6313
+ readonly description: "A named project link to a media library. Exactly one read_write binding must be default_upload.";
6314
+ }];
6315
+ };
6316
+ }, {
6317
+ readonly resource: "cut.projects.bindings";
6318
+ readonly method: "delete";
6319
+ readonly summary: "Remove library binding";
6320
+ 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.";
6321
+ readonly http: "DELETE";
6322
+ readonly path: "/cut/v1/projects/{project_id}/bindings/{name}";
6323
+ readonly streaming: "no";
6324
+ readonly pagination: false;
6325
+ readonly pathParams: readonly [{
6326
+ readonly name: "project_id";
6327
+ readonly sdkName: "project_id";
6328
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6329
+ }, {
6330
+ readonly name: "name";
6331
+ readonly sdkName: "name";
6332
+ readonly description: "Project-local binding alias from bindings.list; detach only after removing all clips that reference its library.";
6333
+ }];
6334
+ readonly query: readonly [];
6335
+ }, {
6336
+ readonly resource: "cut.projects.exports";
6337
+ readonly method: "list";
6338
+ readonly summary: "List project exports";
6339
+ 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.";
6340
+ readonly http: "GET";
6341
+ readonly path: "/cut/v1/projects/{project_id}/exports";
6342
+ readonly streaming: "no";
6343
+ readonly pagination: false;
6344
+ readonly pathParams: readonly [{
6345
+ readonly name: "project_id";
6346
+ readonly sdkName: "project_id";
6347
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6348
+ }];
6349
+ readonly query: readonly [{
6350
+ readonly name: "page_size";
6351
+ readonly type: "integer";
6352
+ readonly required: false;
6353
+ readonly description: "Maximum resources in one page, from 1 to 100; defaults to 50.";
6354
+ }, {
6355
+ readonly name: "page_token";
6356
+ readonly type: "string";
6357
+ readonly required: false;
6358
+ readonly description: "Opaque next_page_token from the preceding page; omit on the first request.";
6359
+ }, {
6360
+ readonly name: "filter";
6361
+ readonly type: "string";
6362
+ readonly required: false;
6363
+ readonly description: "Optional resource filter; projects supports state = \"active\" or state = \"deleted\".";
6364
+ }, {
6365
+ readonly name: "order_by";
6366
+ readonly type: "string";
6367
+ readonly required: false;
6368
+ readonly description: "Optional ordering expression; projects supports updateTime desc.";
6369
+ }];
6370
+ }, {
6371
+ readonly resource: "cut.projects.exports";
6372
+ readonly method: "create";
6373
+ readonly summary: "Create video export";
6374
+ 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.";
6375
+ readonly http: "POST";
6376
+ readonly path: "/cut/v1/projects/{project_id}/exports";
6377
+ readonly streaming: "no";
6378
+ readonly pagination: false;
6379
+ readonly pathParams: readonly [{
6380
+ readonly name: "project_id";
6381
+ readonly sdkName: "project_id";
6382
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6383
+ }];
6384
+ readonly query: readonly [];
6385
+ readonly body: {
6386
+ readonly required: true;
6387
+ readonly fields: readonly [{
6388
+ readonly name: "output";
6389
+ readonly type: "object";
6390
+ readonly required: false;
6391
+ readonly description: "Rendering options for an exported video.";
6392
+ }, {
6393
+ readonly name: "binding";
6394
+ readonly type: "string";
6395
+ readonly required: false;
6396
+ readonly description: "Writable binding name used as the export destination; omission uses default_upload.";
6397
+ }, {
6398
+ readonly name: "revision";
6399
+ readonly type: "integer";
6400
+ readonly required: false;
6401
+ readonly description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write.";
6402
+ }];
6403
+ };
6404
+ }, {
6405
+ readonly resource: "cut.projects.frames";
6406
+ readonly method: "list";
6407
+ readonly summary: "Render preview frames";
6408
+ 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.";
6409
+ readonly http: "GET";
6410
+ readonly path: "/cut/v1/projects/{project_id}/frames";
6411
+ readonly streaming: "no";
6412
+ readonly pagination: false;
6413
+ readonly pathParams: readonly [{
6414
+ readonly name: "project_id";
6415
+ readonly sdkName: "project_id";
6416
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6417
+ }];
6418
+ readonly query: readonly [{
6419
+ readonly name: "at";
6420
+ readonly type: "string";
6421
+ readonly required: true;
6422
+ readonly description: "Required comma-separated non-negative project times in seconds, for example 12,15.5.";
6423
+ }, {
6424
+ readonly name: "scale";
6425
+ readonly type: "number";
6426
+ readonly required: false;
6427
+ readonly description: "Positive image size multiplier; 0.5 renders at half the project dimensions.";
6428
+ }, {
6429
+ readonly name: "revision";
6430
+ readonly type: "integer";
6431
+ readonly required: false;
6432
+ readonly description: "Optional committed project revision from state or execute; omission selects the current revision.";
6433
+ }];
6434
+ }, {
6435
+ readonly resource: "cut.projects.media";
6436
+ readonly method: "import";
6437
+ readonly summary: "Import project media";
6438
+ 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.";
6439
+ readonly http: "POST";
6440
+ readonly path: "/cut/v1/projects/{project_id}/media:import";
6441
+ readonly streaming: "no";
6442
+ readonly pagination: false;
6443
+ readonly pathParams: readonly [{
6444
+ readonly name: "project_id";
6445
+ readonly sdkName: "project_id";
6446
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6447
+ }];
6448
+ readonly query: readonly [];
6449
+ readonly body: {
6450
+ readonly required: true;
6451
+ readonly fields: readonly [{
6452
+ readonly name: "binding";
6453
+ readonly type: "string";
6454
+ readonly required: false;
6455
+ readonly description: "Writable binding name from project bindings; omission uses default_upload.";
6456
+ }, {
6457
+ readonly name: "source";
6458
+ readonly type: "object";
6459
+ readonly required: true;
6460
+ readonly description: "Exactly one input source for the imported asset.";
6461
+ }, {
6462
+ readonly name: "display_name";
6463
+ readonly type: "string";
6464
+ readonly required: false;
6465
+ readonly description: "Optional human-readable display name for the new media asset.";
6466
+ }];
6467
+ };
6468
+ }, {
6469
+ readonly resource: "cut.projects";
6470
+ readonly method: "retrieveState";
6471
+ readonly summary: "Read editing state";
6472
+ 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.";
6473
+ readonly http: "GET";
6474
+ readonly path: "/cut/v1/projects/{project_id}/state";
6475
+ readonly streaming: "no";
6476
+ readonly pagination: false;
6477
+ readonly pathParams: readonly [{
6478
+ readonly name: "project_id";
6479
+ readonly sdkName: "project_id";
6480
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6481
+ }];
6482
+ readonly query: readonly [];
6483
+ }, {
6484
+ readonly resource: "cut.projects";
6485
+ readonly method: "retrieveTimeline";
6486
+ readonly summary: "Read project timeline";
6487
+ 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.";
6488
+ readonly http: "GET";
6489
+ readonly path: "/cut/v1/projects/{project_id}/timeline";
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: "view";
6499
+ readonly type: "string";
6500
+ readonly enum: readonly ["full", "compact"];
6501
+ readonly required: false;
6502
+ readonly description: "full returns structured clips; compact returns compact textual editing context.";
6503
+ }, {
6504
+ readonly name: "from";
6505
+ readonly type: "number";
6506
+ readonly required: false;
6507
+ readonly description: "Optional start of the selected project range in seconds; omit for the beginning.";
6508
+ }, {
6509
+ readonly name: "to";
6510
+ readonly type: "number";
6511
+ readonly required: false;
6512
+ readonly description: "Optional end of the selected project range in seconds; omit for the end.";
6513
+ }, {
6514
+ readonly name: "tracks";
6515
+ readonly type: "string";
6516
+ readonly required: false;
6517
+ readonly description: "Comma-separated track ids from state to include; omit to include every track.";
6518
+ }];
6519
+ }, {
6520
+ readonly resource: "cut.projects.versions";
6521
+ readonly method: "list";
6522
+ readonly summary: "List saved versions";
6523
+ 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.";
6524
+ readonly http: "GET";
6525
+ readonly path: "/cut/v1/projects/{project_id}/versions";
6526
+ readonly streaming: "no";
6527
+ readonly pagination: false;
6528
+ readonly pathParams: readonly [{
6529
+ readonly name: "project_id";
6530
+ readonly sdkName: "project_id";
6531
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6532
+ }];
6533
+ readonly query: readonly [{
6534
+ readonly name: "page_size";
6535
+ readonly type: "integer";
6536
+ readonly required: false;
6537
+ readonly description: "Maximum resources in one page, from 1 to 100; defaults to 50.";
6538
+ }, {
6539
+ readonly name: "page_token";
6540
+ readonly type: "string";
6541
+ readonly required: false;
6542
+ readonly description: "Opaque next_page_token from the preceding page; omit on the first request.";
6543
+ }, {
6544
+ readonly name: "filter";
6545
+ readonly type: "string";
6546
+ readonly required: false;
6547
+ readonly description: "Optional resource filter; projects supports state = \"active\" or state = \"deleted\".";
6548
+ }, {
6549
+ readonly name: "order_by";
6550
+ readonly type: "string";
6551
+ readonly required: false;
6552
+ readonly description: "Optional ordering expression; projects supports updateTime desc.";
6553
+ }];
6554
+ }, {
6555
+ readonly resource: "cut.projects.versions";
6556
+ readonly method: "create";
6557
+ readonly summary: "Save project version";
6558
+ 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.";
6559
+ readonly http: "POST";
6560
+ readonly path: "/cut/v1/projects/{project_id}/versions";
6561
+ readonly streaming: "no";
6562
+ readonly pagination: false;
6563
+ readonly pathParams: readonly [{
6564
+ readonly name: "project_id";
6565
+ readonly sdkName: "project_id";
6566
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6567
+ }];
6568
+ readonly query: readonly [];
6569
+ readonly body: {
6570
+ readonly required: true;
6571
+ readonly fields: readonly [{
6572
+ readonly name: "label";
6573
+ readonly type: "string";
6574
+ readonly required: false;
6575
+ readonly description: "Human-readable snapshot label, such as Before captions.";
6576
+ }];
6577
+ };
6578
+ }, {
6579
+ readonly resource: "cut.projects";
6580
+ readonly method: "execute";
6581
+ readonly summary: "Execute editing script";
6582
+ 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```";
6583
+ readonly http: "POST";
6584
+ readonly path: "/cut/v1/projects/{project_id}:execute";
6585
+ readonly streaming: "no";
6586
+ readonly pagination: false;
6587
+ readonly pathParams: readonly [{
6588
+ readonly name: "project_id";
6589
+ readonly sdkName: "project_id";
6590
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6591
+ }];
6592
+ readonly query: readonly [];
6593
+ readonly body: {
6594
+ readonly required: true;
6595
+ readonly fields: readonly [{
6596
+ readonly name: "script";
6597
+ readonly type: "string";
6598
+ readonly required: false;
6599
+ 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.";
6600
+ }, {
6601
+ readonly name: "edit_id";
6602
+ readonly type: "string";
6603
+ readonly required: false;
6604
+ readonly description: "Saved failed script identifier from error.details.edit_id; valid for ten minutes.";
6605
+ }, {
6606
+ readonly name: "edits";
6607
+ readonly type: "array";
6608
+ readonly itemType: "object";
6609
+ readonly required: false;
6610
+ readonly description: "Literal replacements applied to the saved source before rerunning.";
6611
+ }, {
6612
+ readonly name: "expected_revision";
6613
+ readonly type: "integer";
6614
+ readonly required: false;
6615
+ readonly description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write.";
6616
+ }];
6617
+ };
6618
+ }, {
6619
+ readonly resource: "cut.projects";
6620
+ readonly method: "undelete";
6621
+ readonly summary: "Restore deleted project";
6622
+ 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.";
6623
+ readonly http: "POST";
6624
+ readonly path: "/cut/v1/projects/{project_id}:undelete";
6625
+ readonly streaming: "no";
6626
+ readonly pagination: false;
6627
+ readonly pathParams: readonly [{
6628
+ readonly name: "project_id";
6629
+ readonly sdkName: "project_id";
6630
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
6631
+ }];
6632
+ readonly query: readonly [];
6633
+ }, {
6634
+ readonly resource: "cut.versions";
6635
+ readonly method: "restore";
6636
+ readonly summary: "Restore saved version";
6637
+ 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.";
6638
+ readonly http: "POST";
6639
+ readonly path: "/cut/v1/versions/{version_id}:restore";
6640
+ readonly streaming: "no";
6641
+ readonly pagination: false;
6642
+ readonly pathParams: readonly [{
6643
+ readonly name: "version_id";
6644
+ readonly sdkName: "version_id";
6645
+ readonly description: "Version identifier returned by its create or list operation; use the id, not a display name.";
6646
+ }];
6647
+ readonly query: readonly [];
6072
6648
  }, {
6073
6649
  readonly resource: "database.databases";
6074
6650
  readonly method: "list";
@@ -9693,7 +10269,7 @@ export declare const operations: readonly [{
9693
10269
  readonly name: "supported_api";
9694
10270
  readonly type: "array";
9695
10271
  readonly itemType: "string";
9696
- 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"];
10272
+ 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"];
9697
10273
  readonly required: false;
9698
10274
  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.";
9699
10275
  }, {
@@ -10151,6 +10727,41 @@ export declare const operations: readonly [{
10151
10727
  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.";
10152
10728
  }];
10153
10729
  readonly query: readonly [];
10730
+ }, {
10731
+ readonly resource: "model.systemone";
10732
+ readonly method: "create";
10733
+ readonly summary: "Ask structured decision questions";
10734
+ 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.";
10735
+ readonly http: "POST";
10736
+ readonly path: "/model/v1/systemone";
10737
+ readonly streaming: "no";
10738
+ readonly pagination: false;
10739
+ readonly pathParams: readonly [];
10740
+ readonly query: readonly [];
10741
+ readonly body: {
10742
+ readonly required: true;
10743
+ readonly fields: readonly [{
10744
+ readonly name: "model";
10745
+ readonly type: "string";
10746
+ readonly required: true;
10747
+ readonly description: "Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response.";
10748
+ }, {
10749
+ readonly name: "state";
10750
+ readonly type: "object";
10751
+ readonly required: true;
10752
+ readonly description: "Shared content evaluated by every question, supplied as text, a JSON object or an array.";
10753
+ }, {
10754
+ readonly name: "questions";
10755
+ readonly type: "object";
10756
+ readonly required: true;
10757
+ 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.";
10758
+ }, {
10759
+ readonly name: "assets";
10760
+ readonly type: "object";
10761
+ readonly required: false;
10762
+ readonly description: "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported.";
10763
+ }];
10764
+ };
10154
10765
  }, {
10155
10766
  readonly resource: "model.videos";
10156
10767
  readonly method: "list";