@deepraxis/sdk 0.1.1-dev.1852173 → 0.1.1-dev.22816e2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/METHODS.md +155 -1
- package/dist/automation.d.ts +54 -0
- package/dist/core/client.d.ts +7 -1
- package/dist/core/client.js +3 -0
- package/dist/core/transport.d.ts +9 -0
- package/dist/core/transport.js +12 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +325 -14
- package/dist/generated/sdk.gen.js +1655 -501
- package/dist/generated/types.gen.d.ts +5352 -737
- package/dist/helpers/sandbox-templates.d.ts +121 -0
- package/dist/helpers/sandbox-templates.js +60 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/operations.generated.d.ts +1445 -114
- package/dist/operations.generated.js +1668 -44
- package/dist/resources.generated.d.ts +217 -1
- package/dist/resources.generated.js +95 -1
- package/package.json +1 -1
|
@@ -185,7 +185,7 @@ export const operations = [
|
|
|
185
185
|
"name": "settings",
|
|
186
186
|
"type": "object",
|
|
187
187
|
"required": false,
|
|
188
|
-
"description": "
|
|
188
|
+
"description": "Agent runtime settings follow Claude Code managed settings. Praxis freezes output-style selection for each new session; inline output_styles extend file-based styles. Omit settings to keep saved settings; null clears them."
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
"name": "models",
|
|
@@ -222,6 +222,13 @@ export const operations = [
|
|
|
222
222
|
],
|
|
223
223
|
"required": false,
|
|
224
224
|
"description": "Optional tool preset. minimal enables read, glob, grep and ask_user_question; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor."
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "output_styles",
|
|
228
|
+
"type": "array",
|
|
229
|
+
"itemType": "object",
|
|
230
|
+
"required": false,
|
|
231
|
+
"description": "Inline custom output styles, including for agents without a computer. Omit to keep the saved list; null or [] clears it. Same-name precedence is inline, project files, personal files, then plugins. Selection is settings.outputStyle; styles apply to main conversations and are frozen per session."
|
|
225
232
|
}
|
|
226
233
|
]
|
|
227
234
|
}
|
|
@@ -401,7 +408,7 @@ export const operations = [
|
|
|
401
408
|
"name": "settings",
|
|
402
409
|
"type": "object",
|
|
403
410
|
"required": false,
|
|
404
|
-
"description": "
|
|
411
|
+
"description": "Agent runtime settings follow Claude Code managed settings. Praxis freezes output-style selection for each new session; inline output_styles extend file-based styles. Omit settings to keep saved settings; null clears them."
|
|
405
412
|
},
|
|
406
413
|
{
|
|
407
414
|
"name": "models",
|
|
@@ -438,6 +445,13 @@ export const operations = [
|
|
|
438
445
|
],
|
|
439
446
|
"required": false,
|
|
440
447
|
"description": "Optional tool preset. minimal enables read, glob, grep and ask_user_question; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor."
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "output_styles",
|
|
451
|
+
"type": "array",
|
|
452
|
+
"itemType": "object",
|
|
453
|
+
"required": false,
|
|
454
|
+
"description": "Inline custom output styles, including for agents without a computer. Omit to keep the saved list; null or [] clears it. Same-name precedence is inline, project files, personal files, then plugins. Selection is settings.outputStyle; styles apply to main conversations and are frozen per session."
|
|
441
455
|
}
|
|
442
456
|
]
|
|
443
457
|
}
|
|
@@ -3967,7 +3981,7 @@ export const operations = [
|
|
|
3967
3981
|
"name": "timeout_ms",
|
|
3968
3982
|
"type": "number",
|
|
3969
3983
|
"required": false,
|
|
3970
|
-
"description": "Positive integer milliseconds; code defaults to and is capped at
|
|
3984
|
+
"description": "Positive integer milliseconds; code defaults to and is capped at 300,000. container/shell are not yet available."
|
|
3971
3985
|
},
|
|
3972
3986
|
{
|
|
3973
3987
|
"name": "implementation",
|
|
@@ -4017,7 +4031,7 @@ export const operations = [
|
|
|
4017
4031
|
"resource": "automation.actions",
|
|
4018
4032
|
"method": "update",
|
|
4019
4033
|
"summary": "Update an action",
|
|
4020
|
-
"description": "Update after checking compatibility against the current and five recent revisions. Widening inputs and narrowing outputs are compatible, including length, item count, property count, type (integer/number), and multipleOf (the new input factor divides the old one; the reverse holds for outputs). dry_run=true returns only CompatResult and may omit If-Match; a supplied header is still checked, and * matches any existing representation. Normal updates require If-Match and return ActionDef with ETag; previews return no ETag. Omitted optional fields retain their existing values only for description and labels; when constructing a new revision, errors defaults to [], omitted annotations keys to false, timeout_ms to
|
|
4034
|
+
"description": "Update after checking compatibility against the current and five recent revisions. Widening inputs and narrowing outputs are compatible, including length, item count, property count, type (integer/number), and multipleOf (the new input factor divides the old one; the reverse holds for outputs). dry_run=true returns only CompatResult and may omit If-Match; a supplied header is still checked, and * matches any existing representation. Normal updates require If-Match and return ActionDef with ETag; previews return no ETag. Omitted optional fields retain their existing values only for description and labels; when constructing a new revision, errors defaults to [], omitted annotations keys to false, timeout_ms to 300000, and message to null. Incompatible normal updates return 422 SCHEMA_INCOMPATIBLE with issues; unchanged contents retain the existing revision.",
|
|
4021
4035
|
"http": "PUT",
|
|
4022
4036
|
"path": "/automation/v1/actions/{ns}/{name}",
|
|
4023
4037
|
"streaming": "no",
|
|
@@ -4086,7 +4100,7 @@ export const operations = [
|
|
|
4086
4100
|
"name": "timeout_ms",
|
|
4087
4101
|
"type": "number",
|
|
4088
4102
|
"required": false,
|
|
4089
|
-
"description": "Positive integer milliseconds; code defaults to and is capped at
|
|
4103
|
+
"description": "Positive integer milliseconds; code defaults to and is capped at 300,000. container/shell are not yet available."
|
|
4090
4104
|
},
|
|
4091
4105
|
{
|
|
4092
4106
|
"name": "implementation",
|
|
@@ -4761,7 +4775,7 @@ export const operations = [
|
|
|
4761
4775
|
"resource": "automation.runs",
|
|
4762
4776
|
"method": "create",
|
|
4763
4777
|
"summary": "Run a published target or execute draft source",
|
|
4764
|
-
"description": "Execute a published script or workflow with target, or test unpublished code directly with source and language (ts for TypeScript, yaml for workflow YAML), without first saving or publishing a definition. Minimal script: `export default async ({ file_id }: { file_id: string }) => { const result = await call(\"ocr\", { document: { type: \"file\", file_id } }); return result; }`; send it as source with language=\"ts\", input={\"file_id\":\"<uploaded file ID>\"} and wait=0, using a PDF or image already uploaded to your account. To call a platform API directly in the same script, use the praxis SDK object, for example `praxis.model.ocr.create({ body: { model: \"glm-ocr\", document: { type: \"file\", file_id } } })`; Action IDs are strings passed to call(), not SDK methods such as praxis.ocr(...). praxis, call, invoke, console and codemode are module-scope bindings, not on globalThis, and need no import; invoke(\"namespace/name\", input) starts a child run. target and source are mutually exclusive; target accepts ns/name@version, @tag or @range and defaults to latest when @ is omitted. Source/input validation precedes run creation, so a separate validate call is optional. input defaults to {} and must match the input schema and fit within 1 MiB. wait is 0–60 seconds (default 0): a terminal run returns 200, otherwise 202. Use the returned id with praxis.automation.runs.retrieve and inspect status, output and error; acceptance does not mean successful completion. For long-running, background or batch work, use wait: 0 and poll the run, or split work into child runs or a workflow; wait only controls the response wait and does not extend execution limits. Actions time out after
|
|
4778
|
+
"description": "Execute a published script or workflow with target, or test unpublished code directly with source and language (ts for TypeScript, yaml for workflow YAML), without first saving or publishing a definition. Minimal script: `export default async ({ file_id }: { file_id: string }) => { const result = await call(\"ocr\", { document: { type: \"file\", file_id } }); return result; }`; send it as source with language=\"ts\", input={\"file_id\":\"<uploaded file ID>\"} and wait=0, using a PDF or image already uploaded to your account. To call a platform API directly in the same script, use the praxis SDK object, for example `praxis.model.ocr.create({ body: { model: \"glm-ocr\", document: { type: \"file\", file_id } } })`; Action IDs are strings passed to call(), not SDK methods such as praxis.ocr(...). praxis, call, invoke, console and codemode are module-scope bindings, not on globalThis, and need no import; invoke(\"namespace/name\", input) starts a child run. target and source are mutually exclusive; target accepts ns/name@version, @tag or @range and defaults to latest when @ is omitted. Source/input validation precedes run creation, so a separate validate call is optional. input defaults to {} and must match the input schema and fit within 1 MiB. wait is 0–60 seconds (default 0): a terminal run returns 200, otherwise 202. Use the returned id with praxis.automation.runs.retrieve and inspect status, output and error; acceptance does not mean successful completion. For long-running, background or batch work, use wait: 0 and poll the run, or split work into child runs or a workflow; wait only controls the response wait and does not extend execution limits. Actions time out after 5 min (run-sandbox after 6 h); scripts have a 30 min wall-clock limit and a 30 s CPU limit; workflows default to 24 h and allow up to 30 days. Each run can start at most 1,000 child runs, with at most 100 active at once; nesting depth is limited to 10. Idempotency-Key is scoped to tenant, method and path for 24 hours, excluding wait from the fingerprint; replay returns the current run with Idempotent-Replayed: true, changed contents return 422 and an in-flight request returns 409. With language=yaml, source is a workflow YAML: the run input is . in the first step, and the shape is described in create workflow. Error details are in errors[] (pointer, detail, hint). New non-deterministic run IDs contain 78 characters, compared with 46 for legacy random IDs; treat IDs as opaque strings. Historical and deterministic IDs remain valid; same-millisecond order is not guaranteed.",
|
|
4765
4779
|
"http": "POST",
|
|
4766
4780
|
"path": "/automation/v1/runs",
|
|
4767
4781
|
"streaming": "no",
|
|
@@ -5509,6 +5523,96 @@ export const operations = [
|
|
|
5509
5523
|
"fields": []
|
|
5510
5524
|
}
|
|
5511
5525
|
},
|
|
5526
|
+
{
|
|
5527
|
+
"resource": "automation.scripts.vaults",
|
|
5528
|
+
"method": "list",
|
|
5529
|
+
"summary": "List script vault bindings",
|
|
5530
|
+
"description": "Inspect the whole vaults attached to a saved script, including archived definitions, without reading secret values. Obtain ns and name from automation.scripts.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.",
|
|
5531
|
+
"http": "GET",
|
|
5532
|
+
"path": "/automation/v1/scripts/{ns}/{name}/vaults",
|
|
5533
|
+
"streaming": "no",
|
|
5534
|
+
"pagination": false,
|
|
5535
|
+
"pathParams": [
|
|
5536
|
+
{
|
|
5537
|
+
"name": "ns",
|
|
5538
|
+
"sdkName": "ns",
|
|
5539
|
+
"description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
|
|
5540
|
+
},
|
|
5541
|
+
{
|
|
5542
|
+
"name": "name",
|
|
5543
|
+
"sdkName": "name",
|
|
5544
|
+
"description": "Resource name from automation.scripts.list or create; combine with ns to identify the saved script."
|
|
5545
|
+
}
|
|
5546
|
+
],
|
|
5547
|
+
"query": []
|
|
5548
|
+
},
|
|
5549
|
+
{
|
|
5550
|
+
"resource": "automation.scripts.vaults",
|
|
5551
|
+
"method": "delete",
|
|
5552
|
+
"summary": "Delete a script vault binding",
|
|
5553
|
+
"description": "Remove the vault assignment from this saved script without deleting the vault or its secrets. Obtain aliases from automation.scripts.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.",
|
|
5554
|
+
"http": "DELETE",
|
|
5555
|
+
"path": "/automation/v1/scripts/{ns}/{name}/vaults/{alias}",
|
|
5556
|
+
"streaming": "no",
|
|
5557
|
+
"pagination": false,
|
|
5558
|
+
"pathParams": [
|
|
5559
|
+
{
|
|
5560
|
+
"name": "ns",
|
|
5561
|
+
"sdkName": "ns",
|
|
5562
|
+
"description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
|
|
5563
|
+
},
|
|
5564
|
+
{
|
|
5565
|
+
"name": "name",
|
|
5566
|
+
"sdkName": "name",
|
|
5567
|
+
"description": "Resource name from automation.scripts.list or create; combine with ns to identify the saved script."
|
|
5568
|
+
},
|
|
5569
|
+
{
|
|
5570
|
+
"name": "alias",
|
|
5571
|
+
"sdkName": "alias",
|
|
5572
|
+
"description": "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter."
|
|
5573
|
+
}
|
|
5574
|
+
],
|
|
5575
|
+
"query": []
|
|
5576
|
+
},
|
|
5577
|
+
{
|
|
5578
|
+
"resource": "automation.scripts.vaults",
|
|
5579
|
+
"method": "set",
|
|
5580
|
+
"summary": "Set a script vault binding",
|
|
5581
|
+
"description": "Attach an entire active vault in your organization to a saved script, or replace the vault at an existing alias. Obtain the vault ID or display name from praxis.vault.vaults.list; ambiguous names require an ID. Bindings are independent of published versions and survive archival. The same vault cannot be assigned to two aliases on one definition. Repeating the same assignment is idempotent. Example body: {\"vault\":\"Production\"}.",
|
|
5582
|
+
"http": "PUT",
|
|
5583
|
+
"path": "/automation/v1/scripts/{ns}/{name}/vaults/{alias}",
|
|
5584
|
+
"streaming": "no",
|
|
5585
|
+
"pagination": false,
|
|
5586
|
+
"pathParams": [
|
|
5587
|
+
{
|
|
5588
|
+
"name": "ns",
|
|
5589
|
+
"sdkName": "ns",
|
|
5590
|
+
"description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
|
|
5591
|
+
},
|
|
5592
|
+
{
|
|
5593
|
+
"name": "name",
|
|
5594
|
+
"sdkName": "name",
|
|
5595
|
+
"description": "Resource name from automation.scripts.list or create; combine with ns to identify the saved script."
|
|
5596
|
+
},
|
|
5597
|
+
{
|
|
5598
|
+
"name": "alias",
|
|
5599
|
+
"sdkName": "alias",
|
|
5600
|
+
"description": "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter."
|
|
5601
|
+
}
|
|
5602
|
+
],
|
|
5603
|
+
"query": [],
|
|
5604
|
+
"body": {
|
|
5605
|
+
"required": true,
|
|
5606
|
+
"fields": [
|
|
5607
|
+
{
|
|
5608
|
+
"name": "vault",
|
|
5609
|
+
"type": "string",
|
|
5610
|
+
"required": true,
|
|
5611
|
+
"description": "Active vault ID or exact display name from praxis.vault.vaults.list in your organization. Use an ID if display names are duplicated."
|
|
5612
|
+
}
|
|
5613
|
+
]
|
|
5614
|
+
}
|
|
5615
|
+
},
|
|
5512
5616
|
{
|
|
5513
5617
|
"resource": "automation.scripts.versions",
|
|
5514
5618
|
"method": "list",
|
|
@@ -6309,7 +6413,7 @@ export const operations = [
|
|
|
6309
6413
|
"resource": "automation.workflows",
|
|
6310
6414
|
"method": "create",
|
|
6311
6415
|
"summary": "Create a workflow",
|
|
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
|
|
6416
|
+
"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 5 min (run-sandbox 6 h), 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.",
|
|
6313
6417
|
"http": "POST",
|
|
6314
6418
|
"path": "/automation/v1/workflows",
|
|
6315
6419
|
"streaming": "no",
|
|
@@ -6565,6 +6669,96 @@ export const operations = [
|
|
|
6565
6669
|
"fields": []
|
|
6566
6670
|
}
|
|
6567
6671
|
},
|
|
6672
|
+
{
|
|
6673
|
+
"resource": "automation.workflows.vaults",
|
|
6674
|
+
"method": "list",
|
|
6675
|
+
"summary": "List workflow vault bindings",
|
|
6676
|
+
"description": "Inspect the whole vaults attached to a saved workflow, including archived definitions, without reading secret values. Obtain ns and name from automation.workflows.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.",
|
|
6677
|
+
"http": "GET",
|
|
6678
|
+
"path": "/automation/v1/workflows/{ns}/{name}/vaults",
|
|
6679
|
+
"streaming": "no",
|
|
6680
|
+
"pagination": false,
|
|
6681
|
+
"pathParams": [
|
|
6682
|
+
{
|
|
6683
|
+
"name": "ns",
|
|
6684
|
+
"sdkName": "ns",
|
|
6685
|
+
"description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
|
|
6686
|
+
},
|
|
6687
|
+
{
|
|
6688
|
+
"name": "name",
|
|
6689
|
+
"sdkName": "name",
|
|
6690
|
+
"description": "Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow."
|
|
6691
|
+
}
|
|
6692
|
+
],
|
|
6693
|
+
"query": []
|
|
6694
|
+
},
|
|
6695
|
+
{
|
|
6696
|
+
"resource": "automation.workflows.vaults",
|
|
6697
|
+
"method": "delete",
|
|
6698
|
+
"summary": "Delete a workflow vault binding",
|
|
6699
|
+
"description": "Remove the vault assignment from this saved workflow without deleting the vault or its secrets. Obtain aliases from automation.workflows.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.",
|
|
6700
|
+
"http": "DELETE",
|
|
6701
|
+
"path": "/automation/v1/workflows/{ns}/{name}/vaults/{alias}",
|
|
6702
|
+
"streaming": "no",
|
|
6703
|
+
"pagination": false,
|
|
6704
|
+
"pathParams": [
|
|
6705
|
+
{
|
|
6706
|
+
"name": "ns",
|
|
6707
|
+
"sdkName": "ns",
|
|
6708
|
+
"description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
|
|
6709
|
+
},
|
|
6710
|
+
{
|
|
6711
|
+
"name": "name",
|
|
6712
|
+
"sdkName": "name",
|
|
6713
|
+
"description": "Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow."
|
|
6714
|
+
},
|
|
6715
|
+
{
|
|
6716
|
+
"name": "alias",
|
|
6717
|
+
"sdkName": "alias",
|
|
6718
|
+
"description": "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter."
|
|
6719
|
+
}
|
|
6720
|
+
],
|
|
6721
|
+
"query": []
|
|
6722
|
+
},
|
|
6723
|
+
{
|
|
6724
|
+
"resource": "automation.workflows.vaults",
|
|
6725
|
+
"method": "set",
|
|
6726
|
+
"summary": "Set a workflow vault binding",
|
|
6727
|
+
"description": "Attach an entire active vault in your organization to a saved workflow, or replace the vault at an existing alias. Obtain the vault ID or display name from praxis.vault.vaults.list; ambiguous names require an ID. Bindings are independent of published versions and survive archival. The same vault cannot be assigned to two aliases on one definition. Repeating the same assignment is idempotent. Example body: {\"vault\":\"Production\"}.",
|
|
6728
|
+
"http": "PUT",
|
|
6729
|
+
"path": "/automation/v1/workflows/{ns}/{name}/vaults/{alias}",
|
|
6730
|
+
"streaming": "no",
|
|
6731
|
+
"pagination": false,
|
|
6732
|
+
"pathParams": [
|
|
6733
|
+
{
|
|
6734
|
+
"name": "ns",
|
|
6735
|
+
"sdkName": "ns",
|
|
6736
|
+
"description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
|
|
6737
|
+
},
|
|
6738
|
+
{
|
|
6739
|
+
"name": "name",
|
|
6740
|
+
"sdkName": "name",
|
|
6741
|
+
"description": "Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow."
|
|
6742
|
+
},
|
|
6743
|
+
{
|
|
6744
|
+
"name": "alias",
|
|
6745
|
+
"sdkName": "alias",
|
|
6746
|
+
"description": "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter."
|
|
6747
|
+
}
|
|
6748
|
+
],
|
|
6749
|
+
"query": [],
|
|
6750
|
+
"body": {
|
|
6751
|
+
"required": true,
|
|
6752
|
+
"fields": [
|
|
6753
|
+
{
|
|
6754
|
+
"name": "vault",
|
|
6755
|
+
"type": "string",
|
|
6756
|
+
"required": true,
|
|
6757
|
+
"description": "Active vault ID or exact display name from praxis.vault.vaults.list in your organization. Use an ID if display names are duplicated."
|
|
6758
|
+
}
|
|
6759
|
+
]
|
|
6760
|
+
}
|
|
6761
|
+
},
|
|
6568
6762
|
{
|
|
6569
6763
|
"resource": "automation.workflows.versions",
|
|
6570
6764
|
"method": "list",
|
|
@@ -7314,6 +7508,12 @@ export const operations = [
|
|
|
7314
7508
|
"type": "string",
|
|
7315
7509
|
"required": false,
|
|
7316
7510
|
"description": "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
|
|
7511
|
+
},
|
|
7512
|
+
{
|
|
7513
|
+
"name": "collection_id",
|
|
7514
|
+
"type": "string",
|
|
7515
|
+
"required": false,
|
|
7516
|
+
"description": "Filter to a collection id from collections.list, or the literal none for uncategorized canvases. Omit to list all canvases; keep the same filter when following next_cursor."
|
|
7317
7517
|
}
|
|
7318
7518
|
]
|
|
7319
7519
|
},
|
|
@@ -7376,6 +7576,41 @@ export const operations = [
|
|
|
7376
7576
|
],
|
|
7377
7577
|
"query": []
|
|
7378
7578
|
},
|
|
7579
|
+
{
|
|
7580
|
+
"resource": "canvas.canvases",
|
|
7581
|
+
"method": "update",
|
|
7582
|
+
"summary": "Update canvas",
|
|
7583
|
+
"description": "Rename a canvas or move it to a collection without editing its design content. Use a canvas id from canvases.list and a collection id from collections.list. Send collection_id=null to make it uncategorized; omit either field to preserve its current value. A canvas belongs to at most one collection. The destination must belong to your organization. Renaming keeps the canvas version unchanged.",
|
|
7584
|
+
"http": "PATCH",
|
|
7585
|
+
"path": "/canvas/v1/canvases/{canvas_id}",
|
|
7586
|
+
"streaming": "no",
|
|
7587
|
+
"pagination": false,
|
|
7588
|
+
"pathParams": [
|
|
7589
|
+
{
|
|
7590
|
+
"name": "canvas_id",
|
|
7591
|
+
"sdkName": "canvas_id",
|
|
7592
|
+
"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."
|
|
7593
|
+
}
|
|
7594
|
+
],
|
|
7595
|
+
"query": [],
|
|
7596
|
+
"body": {
|
|
7597
|
+
"required": true,
|
|
7598
|
+
"fields": [
|
|
7599
|
+
{
|
|
7600
|
+
"name": "name",
|
|
7601
|
+
"type": "string",
|
|
7602
|
+
"required": false,
|
|
7603
|
+
"description": "New canvas display name; surrounding whitespace is trimmed, blank names use Untitled, and omission preserves the current name."
|
|
7604
|
+
},
|
|
7605
|
+
{
|
|
7606
|
+
"name": "collection_id",
|
|
7607
|
+
"type": "string",
|
|
7608
|
+
"required": false,
|
|
7609
|
+
"description": "Move to this collection id from collections.list; null removes the canvas from its collection. Omission preserves the current assignment."
|
|
7610
|
+
}
|
|
7611
|
+
]
|
|
7612
|
+
}
|
|
7613
|
+
},
|
|
7379
7614
|
{
|
|
7380
7615
|
"resource": "canvas.canvases.images",
|
|
7381
7616
|
"method": "list",
|
|
@@ -7393,6 +7628,12 @@ export const operations = [
|
|
|
7393
7628
|
}
|
|
7394
7629
|
],
|
|
7395
7630
|
"query": [
|
|
7631
|
+
{
|
|
7632
|
+
"name": "version",
|
|
7633
|
+
"type": "string",
|
|
7634
|
+
"required": false,
|
|
7635
|
+
"description": "Decimal version from versions.list, or its earliest_restorable_version, for a read-only historical snapshot; omit to read current state. Unavailable versions return VERSION_NOT_FOUND."
|
|
7636
|
+
},
|
|
7396
7637
|
{
|
|
7397
7638
|
"name": "ids",
|
|
7398
7639
|
"type": "string",
|
|
@@ -7433,6 +7674,12 @@ export const operations = [
|
|
|
7433
7674
|
}
|
|
7434
7675
|
],
|
|
7435
7676
|
"query": [
|
|
7677
|
+
{
|
|
7678
|
+
"name": "version",
|
|
7679
|
+
"type": "string",
|
|
7680
|
+
"required": false,
|
|
7681
|
+
"description": "Decimal version from versions.list, or its earliest_restorable_version, for a read-only historical snapshot; omit to read current state. Unavailable versions return VERSION_NOT_FOUND."
|
|
7682
|
+
},
|
|
7436
7683
|
{
|
|
7437
7684
|
"name": "ids",
|
|
7438
7685
|
"type": "string",
|
|
@@ -7447,11 +7694,42 @@ export const operations = [
|
|
|
7447
7694
|
}
|
|
7448
7695
|
]
|
|
7449
7696
|
},
|
|
7697
|
+
{
|
|
7698
|
+
"resource": "canvas.canvases.versions",
|
|
7699
|
+
"method": "list",
|
|
7700
|
+
"summary": "List canvas versions",
|
|
7701
|
+
"description": "Inspect retained edits before restoring a canvas or reading historical nodes and images. Supply a canvas_id from canvases.list or create. Results include successful execute, import and restore commits since history was enabled, newest first. limit is 1–100 and defaults to 30; pass next_cursor as cursor until it is null. All versions from the last 30 days are retained unless the 256 MiB history budget requires pruning; the newest 100 versions are always retained regardless of age or size. earliest_restorable_version is the oldest readable and restorable version, including the state immediately before the first retained commit; null means no history has been recorded. Listing does not change the canvas.",
|
|
7702
|
+
"http": "GET",
|
|
7703
|
+
"path": "/canvas/v1/canvases/{canvas_id}/versions",
|
|
7704
|
+
"streaming": "no",
|
|
7705
|
+
"pagination": false,
|
|
7706
|
+
"pathParams": [
|
|
7707
|
+
{
|
|
7708
|
+
"name": "canvas_id",
|
|
7709
|
+
"sdkName": "canvas_id",
|
|
7710
|
+
"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."
|
|
7711
|
+
}
|
|
7712
|
+
],
|
|
7713
|
+
"query": [
|
|
7714
|
+
{
|
|
7715
|
+
"name": "limit",
|
|
7716
|
+
"type": "integer",
|
|
7717
|
+
"required": false,
|
|
7718
|
+
"description": "Maximum commits to return, from 1 to 100 inclusive; omission uses 30."
|
|
7719
|
+
},
|
|
7720
|
+
{
|
|
7721
|
+
"name": "cursor",
|
|
7722
|
+
"type": "string",
|
|
7723
|
+
"required": false,
|
|
7724
|
+
"description": "Copy next_cursor from the preceding page to continue toward older commits; omit for the first page."
|
|
7725
|
+
}
|
|
7726
|
+
]
|
|
7727
|
+
},
|
|
7450
7728
|
{
|
|
7451
7729
|
"resource": "canvas.canvases",
|
|
7452
7730
|
"method": "execute",
|
|
7453
7731
|
"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",
|
|
7732
|
+
"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\nInsert/Copy return the new node id; read the copy with Get(id) — copied descendants get new ids, so change them through Copy's third argument `descendants` keyed by the source node ids. To copy a page and change its title in the same script:\n\n```js canvas-example=\"copy-page\"\nconst page = Insert(document, {type:\"frame\",name:\"Original\",width:320,height:160,layout:\"vertical\",padding:16});\nconst title = Insert(page, {type:\"text\",name:\"Title\",content:\"Original\",fontSize:24});\nconst copy = Copy(page, document, {name:\"Copy\",x:360,descendants:{[title]:{content:\"Updated\"}}});\nPrint(copy); Print(Get(copy).children[0].content);\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\nExecution errors include error.details.prints containing output printed before failure, with the same string-array shape and output limit as successful prints; rolled-back writes still create no version.\n",
|
|
7455
7733
|
"http": "POST",
|
|
7456
7734
|
"path": "/canvas/v1/canvases/{canvas_id}:execute",
|
|
7457
7735
|
"streaming": "no",
|
|
@@ -7496,28 +7774,862 @@ export const operations = [
|
|
|
7496
7774
|
}
|
|
7497
7775
|
},
|
|
7498
7776
|
{
|
|
7499
|
-
"resource": "
|
|
7777
|
+
"resource": "canvas.canvases",
|
|
7778
|
+
"method": "restore",
|
|
7779
|
+
"summary": "Restore canvas version",
|
|
7780
|
+
"description": "Recover a canvas after an unwanted edit by restoring a retained version from versions.list or its earliest_restorable_version. This replaces current nodes, variables and themes with the target state and creates one new version; history remains available, so restoring can itself be undone with another restore. Restoring the current version succeeds without creating a version. Optionally guard the write with expected_version from retrieve or nodes.list; if it is stale, inspect current state and retry with the new value. Repeating an unguarded request after another edit can create another restore version. Versions from before history was enabled or outside retention cannot be recovered. Connected viewers resync after a successful restore.",
|
|
7781
|
+
"http": "POST",
|
|
7782
|
+
"path": "/canvas/v1/canvases/{canvas_id}:restore",
|
|
7783
|
+
"streaming": "no",
|
|
7784
|
+
"pagination": false,
|
|
7785
|
+
"pathParams": [
|
|
7786
|
+
{
|
|
7787
|
+
"name": "canvas_id",
|
|
7788
|
+
"sdkName": "canvas_id",
|
|
7789
|
+
"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."
|
|
7790
|
+
}
|
|
7791
|
+
],
|
|
7792
|
+
"query": [],
|
|
7793
|
+
"body": {
|
|
7794
|
+
"required": true,
|
|
7795
|
+
"fields": [
|
|
7796
|
+
{
|
|
7797
|
+
"name": "version",
|
|
7798
|
+
"type": "string",
|
|
7799
|
+
"required": true,
|
|
7800
|
+
"description": "Historical target from versions.list or earliest_restorable_version; restoring the current version creates no new commit."
|
|
7801
|
+
},
|
|
7802
|
+
{
|
|
7803
|
+
"name": "expected_version",
|
|
7804
|
+
"type": "string",
|
|
7805
|
+
"required": false,
|
|
7806
|
+
"description": "Current version from retrieve or nodes.list to guard against concurrent edits; omission applies the restore to whichever version is current."
|
|
7807
|
+
}
|
|
7808
|
+
]
|
|
7809
|
+
}
|
|
7810
|
+
},
|
|
7811
|
+
{
|
|
7812
|
+
"resource": "canvas.collections",
|
|
7500
7813
|
"method": "list",
|
|
7501
|
-
"summary": "List
|
|
7502
|
-
"description": "Find
|
|
7814
|
+
"summary": "List collections",
|
|
7815
|
+
"description": "Find collections and ids for filtering or moving canvases. All organization collections are returned in name order in one response; next_cursor is always null. canvas_count excludes deleted canvases. total_count counts all live canvases, rather than collections, and uncategorized_count counts live canvases without a collection. Use canvases.list with collection_id to read a collection or none to read uncategorized canvases.",
|
|
7503
7816
|
"http": "GET",
|
|
7504
|
-
"path": "/
|
|
7817
|
+
"path": "/canvas/v1/collections",
|
|
7505
7818
|
"streaming": "no",
|
|
7506
|
-
"pagination":
|
|
7819
|
+
"pagination": false,
|
|
7507
7820
|
"pathParams": [],
|
|
7508
|
-
"query": [
|
|
7509
|
-
|
|
7510
|
-
|
|
7511
|
-
|
|
7512
|
-
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
|
|
7821
|
+
"query": []
|
|
7822
|
+
},
|
|
7823
|
+
{
|
|
7824
|
+
"resource": "canvas.collections",
|
|
7825
|
+
"method": "create",
|
|
7826
|
+
"summary": "Create collection",
|
|
7827
|
+
"description": "Organize canvases by creating a one-level collection in your organization. Send a name of 1–100 characters after trimming; duplicate names are allowed. Each call creates a new collection, initially containing no canvases. Use canvases.update with its id as collection_id to move existing canvases into it. Collections cannot be nested and an organization can have at most 200.",
|
|
7828
|
+
"http": "POST",
|
|
7829
|
+
"path": "/canvas/v1/collections",
|
|
7830
|
+
"streaming": "no",
|
|
7831
|
+
"pagination": false,
|
|
7832
|
+
"pathParams": [],
|
|
7833
|
+
"query": [],
|
|
7834
|
+
"body": {
|
|
7835
|
+
"required": true,
|
|
7836
|
+
"fields": [
|
|
7837
|
+
{
|
|
7838
|
+
"name": "name",
|
|
7839
|
+
"type": "string",
|
|
7840
|
+
"required": true,
|
|
7841
|
+
"description": "Collection display name, 1–100 characters after trimming surrounding whitespace; duplicate names within the organization are allowed."
|
|
7842
|
+
}
|
|
7843
|
+
]
|
|
7844
|
+
}
|
|
7845
|
+
},
|
|
7846
|
+
{
|
|
7847
|
+
"resource": "canvas.collections",
|
|
7848
|
+
"method": "delete",
|
|
7849
|
+
"summary": "Delete collection",
|
|
7850
|
+
"description": "Remove a collection using an id from collections.list. All its canvases are preserved and become uncategorized, with collection_id set to null; read them using canvases.list with collection_id=none. The removed collection cannot be retrieved again, and repeating deletion returns COLLECTION_NOT_FOUND.",
|
|
7851
|
+
"http": "DELETE",
|
|
7852
|
+
"path": "/canvas/v1/collections/{collection_id}",
|
|
7853
|
+
"streaming": "no",
|
|
7854
|
+
"pagination": false,
|
|
7855
|
+
"pathParams": [
|
|
7856
|
+
{
|
|
7857
|
+
"name": "collection_id",
|
|
7858
|
+
"sdkName": "collection_id",
|
|
7859
|
+
"description": "Collection id from collections.create or collections.list, in the form col_ followed by 16 lowercase letters or digits; a display name is not an identifier."
|
|
7860
|
+
}
|
|
7861
|
+
],
|
|
7862
|
+
"query": []
|
|
7863
|
+
},
|
|
7864
|
+
{
|
|
7865
|
+
"resource": "canvas.collections",
|
|
7866
|
+
"method": "retrieve",
|
|
7867
|
+
"summary": "Retrieve collection",
|
|
7868
|
+
"description": "Inspect one collection and its current live canvas count using an id from collections.list or collections.create. The collection must belong to the API key organization. To read its canvases, pass the same id as collection_id to canvases.list; this response contains collection metadata only.",
|
|
7869
|
+
"http": "GET",
|
|
7870
|
+
"path": "/canvas/v1/collections/{collection_id}",
|
|
7871
|
+
"streaming": "no",
|
|
7872
|
+
"pagination": false,
|
|
7873
|
+
"pathParams": [
|
|
7874
|
+
{
|
|
7875
|
+
"name": "collection_id",
|
|
7876
|
+
"sdkName": "collection_id",
|
|
7877
|
+
"description": "Collection id from collections.create or collections.list, in the form col_ followed by 16 lowercase letters or digits; a display name is not an identifier."
|
|
7878
|
+
}
|
|
7879
|
+
],
|
|
7880
|
+
"query": []
|
|
7881
|
+
},
|
|
7882
|
+
{
|
|
7883
|
+
"resource": "canvas.collections",
|
|
7884
|
+
"method": "update",
|
|
7885
|
+
"summary": "Rename collection",
|
|
7886
|
+
"description": "Change the display name of a collection from collections.list without changing its id or canvas assignments. Names contain 1–100 characters after trimming and may match another collection name. This operation does not move canvases; use canvases.update with collection_id for that.",
|
|
7887
|
+
"http": "PATCH",
|
|
7888
|
+
"path": "/canvas/v1/collections/{collection_id}",
|
|
7889
|
+
"streaming": "no",
|
|
7890
|
+
"pagination": false,
|
|
7891
|
+
"pathParams": [
|
|
7892
|
+
{
|
|
7893
|
+
"name": "collection_id",
|
|
7894
|
+
"sdkName": "collection_id",
|
|
7895
|
+
"description": "Collection id from collections.create or collections.list, in the form col_ followed by 16 lowercase letters or digits; a display name is not an identifier."
|
|
7896
|
+
}
|
|
7897
|
+
],
|
|
7898
|
+
"query": [],
|
|
7899
|
+
"body": {
|
|
7900
|
+
"required": true,
|
|
7901
|
+
"fields": [
|
|
7902
|
+
{
|
|
7903
|
+
"name": "name",
|
|
7904
|
+
"type": "string",
|
|
7905
|
+
"required": true,
|
|
7906
|
+
"description": "Collection display name, 1–100 characters after trimming surrounding whitespace; duplicate names within the organization are allowed."
|
|
7907
|
+
}
|
|
7908
|
+
]
|
|
7909
|
+
}
|
|
7910
|
+
},
|
|
7911
|
+
{
|
|
7912
|
+
"resource": "cut.exports",
|
|
7913
|
+
"method": "retrieve",
|
|
7914
|
+
"summary": "Retrieve video export",
|
|
7915
|
+
"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.",
|
|
7916
|
+
"http": "GET",
|
|
7917
|
+
"path": "/cut/v1/exports/{export_id}",
|
|
7918
|
+
"streaming": "no",
|
|
7919
|
+
"pagination": false,
|
|
7920
|
+
"pathParams": [
|
|
7921
|
+
{
|
|
7922
|
+
"name": "export_id",
|
|
7923
|
+
"sdkName": "export_id",
|
|
7924
|
+
"description": "Export identifier returned by its create or list operation; use the id, not a display name."
|
|
7925
|
+
}
|
|
7926
|
+
],
|
|
7927
|
+
"query": []
|
|
7928
|
+
},
|
|
7929
|
+
{
|
|
7930
|
+
"resource": "cut.exports",
|
|
7931
|
+
"method": "cancel",
|
|
7932
|
+
"summary": "Cancel video export",
|
|
7933
|
+
"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.",
|
|
7934
|
+
"http": "POST",
|
|
7935
|
+
"path": "/cut/v1/exports/{export_id}:cancel",
|
|
7936
|
+
"streaming": "no",
|
|
7937
|
+
"pagination": false,
|
|
7938
|
+
"pathParams": [
|
|
7939
|
+
{
|
|
7940
|
+
"name": "export_id",
|
|
7941
|
+
"sdkName": "export_id",
|
|
7942
|
+
"description": "Export identifier returned by its create or list operation; use the id, not a display name."
|
|
7943
|
+
}
|
|
7944
|
+
],
|
|
7945
|
+
"query": []
|
|
7946
|
+
},
|
|
7947
|
+
{
|
|
7948
|
+
"resource": "cut.projects",
|
|
7949
|
+
"method": "list",
|
|
7950
|
+
"summary": "List projects",
|
|
7951
|
+
"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.",
|
|
7952
|
+
"http": "GET",
|
|
7953
|
+
"path": "/cut/v1/projects",
|
|
7954
|
+
"streaming": "no",
|
|
7955
|
+
"pagination": false,
|
|
7956
|
+
"pathParams": [],
|
|
7957
|
+
"query": [
|
|
7958
|
+
{
|
|
7959
|
+
"name": "page_size",
|
|
7960
|
+
"type": "integer",
|
|
7961
|
+
"required": false,
|
|
7962
|
+
"description": "Maximum resources in one page, from 1 to 100; defaults to 50."
|
|
7963
|
+
},
|
|
7964
|
+
{
|
|
7965
|
+
"name": "page_token",
|
|
7966
|
+
"type": "string",
|
|
7967
|
+
"required": false,
|
|
7968
|
+
"description": "Opaque next_page_token from the preceding page; omit on the first request."
|
|
7969
|
+
},
|
|
7970
|
+
{
|
|
7971
|
+
"name": "filter",
|
|
7972
|
+
"type": "string",
|
|
7973
|
+
"required": false,
|
|
7974
|
+
"description": "Optional resource filter; projects supports state = \"active\" or state = \"deleted\"."
|
|
7975
|
+
},
|
|
7976
|
+
{
|
|
7977
|
+
"name": "order_by",
|
|
7978
|
+
"type": "string",
|
|
7979
|
+
"required": false,
|
|
7980
|
+
"description": "Optional ordering expression; projects supports updateTime desc."
|
|
7981
|
+
}
|
|
7982
|
+
]
|
|
7983
|
+
},
|
|
7984
|
+
{
|
|
7985
|
+
"resource": "cut.projects",
|
|
7986
|
+
"method": "create",
|
|
7987
|
+
"summary": "Create project",
|
|
7988
|
+
"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.",
|
|
7989
|
+
"http": "POST",
|
|
7990
|
+
"path": "/cut/v1/projects",
|
|
7991
|
+
"streaming": "no",
|
|
7992
|
+
"pagination": false,
|
|
7993
|
+
"pathParams": [],
|
|
7994
|
+
"query": [],
|
|
7995
|
+
"body": {
|
|
7996
|
+
"required": true,
|
|
7997
|
+
"fields": [
|
|
7998
|
+
{
|
|
7999
|
+
"name": "name",
|
|
8000
|
+
"type": "string",
|
|
8001
|
+
"required": true,
|
|
8002
|
+
"description": "Human-readable project name; required and must contain non-whitespace text."
|
|
8003
|
+
},
|
|
8004
|
+
{
|
|
8005
|
+
"name": "labels",
|
|
8006
|
+
"type": "object",
|
|
8007
|
+
"required": false,
|
|
8008
|
+
"description": "User-defined string labels for organizing projects; label keys retain their original spelling."
|
|
8009
|
+
},
|
|
8010
|
+
{
|
|
8011
|
+
"name": "settings",
|
|
8012
|
+
"type": "object",
|
|
8013
|
+
"required": true,
|
|
8014
|
+
"description": "Dimensions and frame rate for a new editing project."
|
|
8015
|
+
},
|
|
8016
|
+
{
|
|
8017
|
+
"name": "bindings",
|
|
8018
|
+
"type": "array",
|
|
8019
|
+
"itemType": "object",
|
|
8020
|
+
"required": true,
|
|
8021
|
+
"description": "Accessible library bindings; exactly one read_write entry must have default_upload true."
|
|
8022
|
+
}
|
|
8023
|
+
]
|
|
8024
|
+
}
|
|
8025
|
+
},
|
|
8026
|
+
{
|
|
8027
|
+
"resource": "cut.projects",
|
|
8028
|
+
"method": "delete",
|
|
8029
|
+
"summary": "Delete project",
|
|
8030
|
+
"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.",
|
|
8031
|
+
"http": "DELETE",
|
|
8032
|
+
"path": "/cut/v1/projects/{project_id}",
|
|
8033
|
+
"streaming": "no",
|
|
8034
|
+
"pagination": false,
|
|
8035
|
+
"pathParams": [
|
|
8036
|
+
{
|
|
8037
|
+
"name": "project_id",
|
|
8038
|
+
"sdkName": "project_id",
|
|
8039
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8040
|
+
}
|
|
8041
|
+
],
|
|
8042
|
+
"query": []
|
|
8043
|
+
},
|
|
8044
|
+
{
|
|
8045
|
+
"resource": "cut.projects",
|
|
8046
|
+
"method": "retrieve",
|
|
8047
|
+
"summary": "Retrieve project",
|
|
8048
|
+
"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.",
|
|
8049
|
+
"http": "GET",
|
|
8050
|
+
"path": "/cut/v1/projects/{project_id}",
|
|
8051
|
+
"streaming": "no",
|
|
8052
|
+
"pagination": false,
|
|
8053
|
+
"pathParams": [
|
|
8054
|
+
{
|
|
8055
|
+
"name": "project_id",
|
|
8056
|
+
"sdkName": "project_id",
|
|
8057
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8058
|
+
}
|
|
8059
|
+
],
|
|
8060
|
+
"query": [
|
|
8061
|
+
{
|
|
8062
|
+
"name": "expand",
|
|
8063
|
+
"type": "string",
|
|
8064
|
+
"required": false,
|
|
8065
|
+
"description": "Comma-separated expansions: timeline includes clips, exports includes render jobs, versions includes saved snapshots."
|
|
8066
|
+
}
|
|
8067
|
+
]
|
|
8068
|
+
},
|
|
8069
|
+
{
|
|
8070
|
+
"resource": "cut.projects",
|
|
8071
|
+
"method": "update",
|
|
8072
|
+
"summary": "Update project metadata",
|
|
8073
|
+
"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.",
|
|
8074
|
+
"http": "PATCH",
|
|
8075
|
+
"path": "/cut/v1/projects/{project_id}",
|
|
8076
|
+
"streaming": "no",
|
|
8077
|
+
"pagination": false,
|
|
8078
|
+
"pathParams": [
|
|
8079
|
+
{
|
|
8080
|
+
"name": "project_id",
|
|
8081
|
+
"sdkName": "project_id",
|
|
8082
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8083
|
+
}
|
|
8084
|
+
],
|
|
8085
|
+
"query": [],
|
|
8086
|
+
"body": {
|
|
8087
|
+
"required": true,
|
|
8088
|
+
"fields": [
|
|
8089
|
+
{
|
|
8090
|
+
"name": "name",
|
|
8091
|
+
"type": "string",
|
|
8092
|
+
"required": false,
|
|
8093
|
+
"description": "Replacement display name when update_mask includes name."
|
|
8094
|
+
},
|
|
8095
|
+
{
|
|
8096
|
+
"name": "labels",
|
|
8097
|
+
"type": "object",
|
|
8098
|
+
"required": false,
|
|
8099
|
+
"description": "User-defined string labels for organizing projects; label keys retain their original spelling."
|
|
8100
|
+
},
|
|
8101
|
+
{
|
|
8102
|
+
"name": "update_mask",
|
|
8103
|
+
"type": "array",
|
|
8104
|
+
"itemType": "string",
|
|
8105
|
+
"enum": [
|
|
8106
|
+
"name",
|
|
8107
|
+
"labels"
|
|
8108
|
+
],
|
|
8109
|
+
"required": true,
|
|
8110
|
+
"description": "Metadata fields to replace; name changes the display name and labels replaces all labels."
|
|
8111
|
+
}
|
|
8112
|
+
]
|
|
8113
|
+
}
|
|
8114
|
+
},
|
|
8115
|
+
{
|
|
8116
|
+
"resource": "cut.projects.analysis",
|
|
8117
|
+
"method": "create",
|
|
8118
|
+
"summary": "Analyze project media",
|
|
8119
|
+
"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.",
|
|
8120
|
+
"http": "POST",
|
|
8121
|
+
"path": "/cut/v1/projects/{project_id}/analysis",
|
|
8122
|
+
"streaming": "no",
|
|
8123
|
+
"pagination": false,
|
|
8124
|
+
"pathParams": [
|
|
8125
|
+
{
|
|
8126
|
+
"name": "project_id",
|
|
8127
|
+
"sdkName": "project_id",
|
|
8128
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8129
|
+
}
|
|
8130
|
+
],
|
|
8131
|
+
"query": [],
|
|
8132
|
+
"body": {
|
|
8133
|
+
"required": true,
|
|
8134
|
+
"fields": [
|
|
8135
|
+
{
|
|
8136
|
+
"name": "media",
|
|
8137
|
+
"type": "array",
|
|
8138
|
+
"itemType": "object",
|
|
8139
|
+
"required": false,
|
|
8140
|
+
"description": "Bound-library assets to analyze; omission selects project media."
|
|
8141
|
+
},
|
|
8142
|
+
{
|
|
8143
|
+
"name": "kinds",
|
|
8144
|
+
"type": "array",
|
|
8145
|
+
"itemType": "string",
|
|
8146
|
+
"enum": [
|
|
8147
|
+
"silence",
|
|
8148
|
+
"filler",
|
|
8149
|
+
"scenes"
|
|
8150
|
+
],
|
|
8151
|
+
"required": true,
|
|
8152
|
+
"description": "Analysis types to request for the selected source assets."
|
|
8153
|
+
}
|
|
8154
|
+
]
|
|
8155
|
+
}
|
|
8156
|
+
},
|
|
8157
|
+
{
|
|
8158
|
+
"resource": "cut.projects.bindings",
|
|
8159
|
+
"method": "list",
|
|
8160
|
+
"summary": "List library bindings",
|
|
8161
|
+
"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.",
|
|
8162
|
+
"http": "GET",
|
|
8163
|
+
"path": "/cut/v1/projects/{project_id}/bindings",
|
|
8164
|
+
"streaming": "no",
|
|
8165
|
+
"pagination": false,
|
|
8166
|
+
"pathParams": [
|
|
8167
|
+
{
|
|
8168
|
+
"name": "project_id",
|
|
8169
|
+
"sdkName": "project_id",
|
|
8170
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8171
|
+
}
|
|
8172
|
+
],
|
|
8173
|
+
"query": []
|
|
8174
|
+
},
|
|
8175
|
+
{
|
|
8176
|
+
"resource": "cut.projects.bindings",
|
|
8177
|
+
"method": "create",
|
|
8178
|
+
"summary": "Bind media library",
|
|
8179
|
+
"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.",
|
|
8180
|
+
"http": "POST",
|
|
8181
|
+
"path": "/cut/v1/projects/{project_id}/bindings",
|
|
8182
|
+
"streaming": "no",
|
|
8183
|
+
"pagination": false,
|
|
8184
|
+
"pathParams": [
|
|
8185
|
+
{
|
|
8186
|
+
"name": "project_id",
|
|
8187
|
+
"sdkName": "project_id",
|
|
8188
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8189
|
+
}
|
|
8190
|
+
],
|
|
8191
|
+
"query": [],
|
|
8192
|
+
"body": {
|
|
8193
|
+
"required": true,
|
|
8194
|
+
"fields": [
|
|
8195
|
+
{
|
|
8196
|
+
"name": "binding",
|
|
8197
|
+
"type": "object",
|
|
8198
|
+
"required": true,
|
|
8199
|
+
"description": "A named project link to a media library. Exactly one read_write binding must be default_upload."
|
|
8200
|
+
}
|
|
8201
|
+
]
|
|
8202
|
+
}
|
|
8203
|
+
},
|
|
8204
|
+
{
|
|
8205
|
+
"resource": "cut.projects.bindings",
|
|
8206
|
+
"method": "delete",
|
|
8207
|
+
"summary": "Remove library binding",
|
|
8208
|
+
"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.",
|
|
8209
|
+
"http": "DELETE",
|
|
8210
|
+
"path": "/cut/v1/projects/{project_id}/bindings/{name}",
|
|
8211
|
+
"streaming": "no",
|
|
8212
|
+
"pagination": false,
|
|
8213
|
+
"pathParams": [
|
|
8214
|
+
{
|
|
8215
|
+
"name": "project_id",
|
|
8216
|
+
"sdkName": "project_id",
|
|
8217
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8218
|
+
},
|
|
8219
|
+
{
|
|
8220
|
+
"name": "name",
|
|
8221
|
+
"sdkName": "name",
|
|
8222
|
+
"description": "Project-local binding alias from bindings.list; detach only after removing all clips that reference its library."
|
|
8223
|
+
}
|
|
8224
|
+
],
|
|
8225
|
+
"query": []
|
|
8226
|
+
},
|
|
8227
|
+
{
|
|
8228
|
+
"resource": "cut.projects.exports",
|
|
8229
|
+
"method": "list",
|
|
8230
|
+
"summary": "List project exports",
|
|
8231
|
+
"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.",
|
|
8232
|
+
"http": "GET",
|
|
8233
|
+
"path": "/cut/v1/projects/{project_id}/exports",
|
|
8234
|
+
"streaming": "no",
|
|
8235
|
+
"pagination": false,
|
|
8236
|
+
"pathParams": [
|
|
8237
|
+
{
|
|
8238
|
+
"name": "project_id",
|
|
8239
|
+
"sdkName": "project_id",
|
|
8240
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8241
|
+
}
|
|
8242
|
+
],
|
|
8243
|
+
"query": [
|
|
8244
|
+
{
|
|
8245
|
+
"name": "page_size",
|
|
8246
|
+
"type": "integer",
|
|
8247
|
+
"required": false,
|
|
8248
|
+
"description": "Maximum resources in one page, from 1 to 100; defaults to 50."
|
|
8249
|
+
},
|
|
8250
|
+
{
|
|
8251
|
+
"name": "page_token",
|
|
8252
|
+
"type": "string",
|
|
8253
|
+
"required": false,
|
|
8254
|
+
"description": "Opaque next_page_token from the preceding page; omit on the first request."
|
|
8255
|
+
},
|
|
8256
|
+
{
|
|
8257
|
+
"name": "filter",
|
|
8258
|
+
"type": "string",
|
|
8259
|
+
"required": false,
|
|
8260
|
+
"description": "Optional resource filter; projects supports state = \"active\" or state = \"deleted\"."
|
|
8261
|
+
},
|
|
8262
|
+
{
|
|
8263
|
+
"name": "order_by",
|
|
8264
|
+
"type": "string",
|
|
8265
|
+
"required": false,
|
|
8266
|
+
"description": "Optional ordering expression; projects supports updateTime desc."
|
|
8267
|
+
}
|
|
8268
|
+
]
|
|
8269
|
+
},
|
|
8270
|
+
{
|
|
8271
|
+
"resource": "cut.projects.exports",
|
|
8272
|
+
"method": "create",
|
|
8273
|
+
"summary": "Create video export",
|
|
8274
|
+
"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.",
|
|
8275
|
+
"http": "POST",
|
|
8276
|
+
"path": "/cut/v1/projects/{project_id}/exports",
|
|
8277
|
+
"streaming": "no",
|
|
8278
|
+
"pagination": false,
|
|
8279
|
+
"pathParams": [
|
|
8280
|
+
{
|
|
8281
|
+
"name": "project_id",
|
|
8282
|
+
"sdkName": "project_id",
|
|
8283
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8284
|
+
}
|
|
8285
|
+
],
|
|
8286
|
+
"query": [],
|
|
8287
|
+
"body": {
|
|
8288
|
+
"required": true,
|
|
8289
|
+
"fields": [
|
|
8290
|
+
{
|
|
8291
|
+
"name": "output",
|
|
8292
|
+
"type": "object",
|
|
8293
|
+
"required": false,
|
|
8294
|
+
"description": "Rendering options for an exported video."
|
|
8295
|
+
},
|
|
8296
|
+
{
|
|
8297
|
+
"name": "binding",
|
|
8298
|
+
"type": "string",
|
|
8299
|
+
"required": false,
|
|
8300
|
+
"description": "Writable binding name used as the export destination; omission uses default_upload."
|
|
8301
|
+
},
|
|
8302
|
+
{
|
|
8303
|
+
"name": "revision",
|
|
8304
|
+
"type": "integer",
|
|
8305
|
+
"required": false,
|
|
8306
|
+
"description": "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
|
|
8307
|
+
}
|
|
8308
|
+
]
|
|
8309
|
+
}
|
|
8310
|
+
},
|
|
8311
|
+
{
|
|
8312
|
+
"resource": "cut.projects.frames",
|
|
8313
|
+
"method": "list",
|
|
8314
|
+
"summary": "Render preview frames",
|
|
8315
|
+
"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.",
|
|
8316
|
+
"http": "GET",
|
|
8317
|
+
"path": "/cut/v1/projects/{project_id}/frames",
|
|
8318
|
+
"streaming": "no",
|
|
8319
|
+
"pagination": false,
|
|
8320
|
+
"pathParams": [
|
|
8321
|
+
{
|
|
8322
|
+
"name": "project_id",
|
|
8323
|
+
"sdkName": "project_id",
|
|
8324
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8325
|
+
}
|
|
8326
|
+
],
|
|
8327
|
+
"query": [
|
|
8328
|
+
{
|
|
8329
|
+
"name": "at",
|
|
8330
|
+
"type": "string",
|
|
8331
|
+
"required": true,
|
|
8332
|
+
"description": "Required comma-separated non-negative project times in seconds, for example 12,15.5."
|
|
8333
|
+
},
|
|
8334
|
+
{
|
|
8335
|
+
"name": "scale",
|
|
8336
|
+
"type": "number",
|
|
8337
|
+
"required": false,
|
|
8338
|
+
"description": "Positive image size multiplier; 0.5 renders at half the project dimensions."
|
|
8339
|
+
},
|
|
8340
|
+
{
|
|
8341
|
+
"name": "revision",
|
|
8342
|
+
"type": "integer",
|
|
8343
|
+
"required": false,
|
|
8344
|
+
"description": "Optional committed project revision from state or execute; omission selects the current revision."
|
|
8345
|
+
}
|
|
8346
|
+
]
|
|
8347
|
+
},
|
|
8348
|
+
{
|
|
8349
|
+
"resource": "cut.projects.media",
|
|
8350
|
+
"method": "import",
|
|
8351
|
+
"summary": "Import project media",
|
|
8352
|
+
"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.",
|
|
8353
|
+
"http": "POST",
|
|
8354
|
+
"path": "/cut/v1/projects/{project_id}/media:import",
|
|
8355
|
+
"streaming": "no",
|
|
8356
|
+
"pagination": false,
|
|
8357
|
+
"pathParams": [
|
|
8358
|
+
{
|
|
8359
|
+
"name": "project_id",
|
|
8360
|
+
"sdkName": "project_id",
|
|
8361
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8362
|
+
}
|
|
8363
|
+
],
|
|
8364
|
+
"query": [],
|
|
8365
|
+
"body": {
|
|
8366
|
+
"required": true,
|
|
8367
|
+
"fields": [
|
|
8368
|
+
{
|
|
8369
|
+
"name": "binding",
|
|
8370
|
+
"type": "string",
|
|
8371
|
+
"required": false,
|
|
8372
|
+
"description": "Writable binding name from project bindings; omission uses default_upload."
|
|
8373
|
+
},
|
|
8374
|
+
{
|
|
8375
|
+
"name": "source",
|
|
8376
|
+
"type": "object",
|
|
8377
|
+
"required": true,
|
|
8378
|
+
"description": "Exactly one input source for the imported asset."
|
|
8379
|
+
},
|
|
8380
|
+
{
|
|
8381
|
+
"name": "display_name",
|
|
8382
|
+
"type": "string",
|
|
8383
|
+
"required": false,
|
|
8384
|
+
"description": "Optional human-readable display name for the new media asset."
|
|
8385
|
+
}
|
|
8386
|
+
]
|
|
8387
|
+
}
|
|
8388
|
+
},
|
|
8389
|
+
{
|
|
8390
|
+
"resource": "cut.projects",
|
|
8391
|
+
"method": "retrieveState",
|
|
8392
|
+
"summary": "Read editing state",
|
|
8393
|
+
"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.",
|
|
8394
|
+
"http": "GET",
|
|
8395
|
+
"path": "/cut/v1/projects/{project_id}/state",
|
|
8396
|
+
"streaming": "no",
|
|
8397
|
+
"pagination": false,
|
|
8398
|
+
"pathParams": [
|
|
8399
|
+
{
|
|
8400
|
+
"name": "project_id",
|
|
8401
|
+
"sdkName": "project_id",
|
|
8402
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8403
|
+
}
|
|
8404
|
+
],
|
|
8405
|
+
"query": []
|
|
8406
|
+
},
|
|
8407
|
+
{
|
|
8408
|
+
"resource": "cut.projects",
|
|
8409
|
+
"method": "retrieveTimeline",
|
|
8410
|
+
"summary": "Read project timeline",
|
|
8411
|
+
"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.",
|
|
8412
|
+
"http": "GET",
|
|
8413
|
+
"path": "/cut/v1/projects/{project_id}/timeline",
|
|
8414
|
+
"streaming": "no",
|
|
8415
|
+
"pagination": false,
|
|
8416
|
+
"pathParams": [
|
|
8417
|
+
{
|
|
8418
|
+
"name": "project_id",
|
|
8419
|
+
"sdkName": "project_id",
|
|
8420
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8421
|
+
}
|
|
8422
|
+
],
|
|
8423
|
+
"query": [
|
|
8424
|
+
{
|
|
8425
|
+
"name": "view",
|
|
8426
|
+
"type": "string",
|
|
8427
|
+
"enum": [
|
|
8428
|
+
"full",
|
|
8429
|
+
"compact"
|
|
8430
|
+
],
|
|
8431
|
+
"required": false,
|
|
8432
|
+
"description": "full returns structured clips; compact returns compact textual editing context."
|
|
8433
|
+
},
|
|
8434
|
+
{
|
|
8435
|
+
"name": "from",
|
|
8436
|
+
"type": "number",
|
|
8437
|
+
"required": false,
|
|
8438
|
+
"description": "Optional start of the selected project range in seconds; omit for the beginning."
|
|
8439
|
+
},
|
|
8440
|
+
{
|
|
8441
|
+
"name": "to",
|
|
8442
|
+
"type": "number",
|
|
8443
|
+
"required": false,
|
|
8444
|
+
"description": "Optional end of the selected project range in seconds; omit for the end."
|
|
8445
|
+
},
|
|
8446
|
+
{
|
|
8447
|
+
"name": "tracks",
|
|
8448
|
+
"type": "string",
|
|
8449
|
+
"required": false,
|
|
8450
|
+
"description": "Comma-separated track ids from state to include; omit to include every track."
|
|
8451
|
+
}
|
|
8452
|
+
]
|
|
8453
|
+
},
|
|
8454
|
+
{
|
|
8455
|
+
"resource": "cut.projects.versions",
|
|
8456
|
+
"method": "list",
|
|
8457
|
+
"summary": "List saved versions",
|
|
8458
|
+
"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.",
|
|
8459
|
+
"http": "GET",
|
|
8460
|
+
"path": "/cut/v1/projects/{project_id}/versions",
|
|
8461
|
+
"streaming": "no",
|
|
8462
|
+
"pagination": false,
|
|
8463
|
+
"pathParams": [
|
|
8464
|
+
{
|
|
8465
|
+
"name": "project_id",
|
|
8466
|
+
"sdkName": "project_id",
|
|
8467
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8468
|
+
}
|
|
8469
|
+
],
|
|
8470
|
+
"query": [
|
|
8471
|
+
{
|
|
8472
|
+
"name": "page_size",
|
|
8473
|
+
"type": "integer",
|
|
8474
|
+
"required": false,
|
|
8475
|
+
"description": "Maximum resources in one page, from 1 to 100; defaults to 50."
|
|
8476
|
+
},
|
|
8477
|
+
{
|
|
8478
|
+
"name": "page_token",
|
|
8479
|
+
"type": "string",
|
|
8480
|
+
"required": false,
|
|
8481
|
+
"description": "Opaque next_page_token from the preceding page; omit on the first request."
|
|
8482
|
+
},
|
|
8483
|
+
{
|
|
8484
|
+
"name": "filter",
|
|
8485
|
+
"type": "string",
|
|
8486
|
+
"required": false,
|
|
8487
|
+
"description": "Optional resource filter; projects supports state = \"active\" or state = \"deleted\"."
|
|
8488
|
+
},
|
|
8489
|
+
{
|
|
8490
|
+
"name": "order_by",
|
|
8491
|
+
"type": "string",
|
|
8492
|
+
"required": false,
|
|
8493
|
+
"description": "Optional ordering expression; projects supports updateTime desc."
|
|
8494
|
+
}
|
|
8495
|
+
]
|
|
8496
|
+
},
|
|
8497
|
+
{
|
|
8498
|
+
"resource": "cut.projects.versions",
|
|
8499
|
+
"method": "create",
|
|
8500
|
+
"summary": "Save project version",
|
|
8501
|
+
"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.",
|
|
8502
|
+
"http": "POST",
|
|
8503
|
+
"path": "/cut/v1/projects/{project_id}/versions",
|
|
8504
|
+
"streaming": "no",
|
|
8505
|
+
"pagination": false,
|
|
8506
|
+
"pathParams": [
|
|
8507
|
+
{
|
|
8508
|
+
"name": "project_id",
|
|
8509
|
+
"sdkName": "project_id",
|
|
8510
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8511
|
+
}
|
|
8512
|
+
],
|
|
8513
|
+
"query": [],
|
|
8514
|
+
"body": {
|
|
8515
|
+
"required": true,
|
|
8516
|
+
"fields": [
|
|
8517
|
+
{
|
|
8518
|
+
"name": "label",
|
|
8519
|
+
"type": "string",
|
|
8520
|
+
"required": false,
|
|
8521
|
+
"description": "Human-readable snapshot label, such as Before captions."
|
|
8522
|
+
}
|
|
8523
|
+
]
|
|
8524
|
+
}
|
|
8525
|
+
},
|
|
8526
|
+
{
|
|
8527
|
+
"resource": "cut.projects",
|
|
8528
|
+
"method": "execute",
|
|
8529
|
+
"summary": "Execute editing script",
|
|
8530
|
+
"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```",
|
|
8531
|
+
"http": "POST",
|
|
8532
|
+
"path": "/cut/v1/projects/{project_id}:execute",
|
|
8533
|
+
"streaming": "no",
|
|
8534
|
+
"pagination": false,
|
|
8535
|
+
"pathParams": [
|
|
8536
|
+
{
|
|
8537
|
+
"name": "project_id",
|
|
8538
|
+
"sdkName": "project_id",
|
|
8539
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8540
|
+
}
|
|
8541
|
+
],
|
|
8542
|
+
"query": [],
|
|
8543
|
+
"body": {
|
|
8544
|
+
"required": true,
|
|
8545
|
+
"fields": [
|
|
8546
|
+
{
|
|
8547
|
+
"name": "script",
|
|
8548
|
+
"type": "string",
|
|
8549
|
+
"required": false,
|
|
8550
|
+
"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."
|
|
8551
|
+
},
|
|
8552
|
+
{
|
|
8553
|
+
"name": "edit_id",
|
|
8554
|
+
"type": "string",
|
|
8555
|
+
"required": false,
|
|
8556
|
+
"description": "Saved failed script identifier from error.details.edit_id; valid for ten minutes."
|
|
8557
|
+
},
|
|
8558
|
+
{
|
|
8559
|
+
"name": "edits",
|
|
8560
|
+
"type": "array",
|
|
8561
|
+
"itemType": "object",
|
|
8562
|
+
"required": false,
|
|
8563
|
+
"description": "Literal replacements applied to the saved source before rerunning."
|
|
8564
|
+
},
|
|
8565
|
+
{
|
|
8566
|
+
"name": "expected_revision",
|
|
8567
|
+
"type": "integer",
|
|
8568
|
+
"required": false,
|
|
8569
|
+
"description": "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
|
|
8570
|
+
}
|
|
8571
|
+
]
|
|
8572
|
+
}
|
|
8573
|
+
},
|
|
8574
|
+
{
|
|
8575
|
+
"resource": "cut.projects",
|
|
8576
|
+
"method": "undelete",
|
|
8577
|
+
"summary": "Restore deleted project",
|
|
8578
|
+
"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.",
|
|
8579
|
+
"http": "POST",
|
|
8580
|
+
"path": "/cut/v1/projects/{project_id}:undelete",
|
|
8581
|
+
"streaming": "no",
|
|
8582
|
+
"pagination": false,
|
|
8583
|
+
"pathParams": [
|
|
8584
|
+
{
|
|
8585
|
+
"name": "project_id",
|
|
8586
|
+
"sdkName": "project_id",
|
|
8587
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
8588
|
+
}
|
|
8589
|
+
],
|
|
8590
|
+
"query": []
|
|
8591
|
+
},
|
|
8592
|
+
{
|
|
8593
|
+
"resource": "cut.versions",
|
|
8594
|
+
"method": "restore",
|
|
8595
|
+
"summary": "Restore saved version",
|
|
8596
|
+
"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.",
|
|
8597
|
+
"http": "POST",
|
|
8598
|
+
"path": "/cut/v1/versions/{version_id}:restore",
|
|
8599
|
+
"streaming": "no",
|
|
8600
|
+
"pagination": false,
|
|
8601
|
+
"pathParams": [
|
|
8602
|
+
{
|
|
8603
|
+
"name": "version_id",
|
|
8604
|
+
"sdkName": "version_id",
|
|
8605
|
+
"description": "Version identifier returned by its create or list operation; use the id, not a display name."
|
|
8606
|
+
}
|
|
8607
|
+
],
|
|
8608
|
+
"query": []
|
|
8609
|
+
},
|
|
8610
|
+
{
|
|
8611
|
+
"resource": "database.databases",
|
|
8612
|
+
"method": "list",
|
|
8613
|
+
"summary": "List databases",
|
|
8614
|
+
"description": "Find databases owned by your tenant and obtain their ids for schema or row operations. Excludes deleting by default. status=active or status=deleting selects that state; invalid values return 400 INVALID_PARAMS.",
|
|
8615
|
+
"http": "GET",
|
|
8616
|
+
"path": "/database/v1/databases",
|
|
8617
|
+
"streaming": "no",
|
|
8618
|
+
"pagination": true,
|
|
8619
|
+
"pathParams": [],
|
|
8620
|
+
"query": [
|
|
8621
|
+
{
|
|
8622
|
+
"name": "cursor",
|
|
8623
|
+
"type": "string",
|
|
8624
|
+
"required": false,
|
|
8625
|
+
"description": "Opaque next_cursor from the previous page."
|
|
8626
|
+
},
|
|
8627
|
+
{
|
|
8628
|
+
"name": "limit",
|
|
8629
|
+
"type": "integer",
|
|
8630
|
+
"required": false,
|
|
8631
|
+
"description": "Page size."
|
|
8632
|
+
},
|
|
7521
8633
|
{
|
|
7522
8634
|
"name": "labels",
|
|
7523
8635
|
"type": "object",
|
|
@@ -8594,6 +9706,64 @@ export const operations = [
|
|
|
8594
9706
|
],
|
|
8595
9707
|
"query": []
|
|
8596
9708
|
},
|
|
9709
|
+
{
|
|
9710
|
+
"resource": "file.files.contentLinks",
|
|
9711
|
+
"method": "revoke",
|
|
9712
|
+
"summary": "Revoke a file content link",
|
|
9713
|
+
"description": "Stop a previously issued content link from reading a file. Obtain the link with files.contentUrl.create. Use file_id from file creation or listing and the token path component from a content URL (/c/<token>), not the complete URL. The caller must own the file and have write access; a read-only binding is refused. Revocation propagates through the capability deny list within 30 seconds; the file and other links remain available. Only current IAM capability tokens can be revoked; legacy content links expire at the migration deadline. Example body: {\"token\":\"<token from /c/>\"}.",
|
|
9714
|
+
"http": "POST",
|
|
9715
|
+
"path": "/file/v1/files/{file_id}/content_links:revoke",
|
|
9716
|
+
"streaming": "no",
|
|
9717
|
+
"pagination": false,
|
|
9718
|
+
"pathParams": [
|
|
9719
|
+
{
|
|
9720
|
+
"name": "file_id",
|
|
9721
|
+
"sdkName": "file_id",
|
|
9722
|
+
"description": "Tenant-owned file identifier returned by file creation or listing; the token must name this same file."
|
|
9723
|
+
}
|
|
9724
|
+
],
|
|
9725
|
+
"query": [],
|
|
9726
|
+
"body": {
|
|
9727
|
+
"required": true,
|
|
9728
|
+
"fields": [
|
|
9729
|
+
{
|
|
9730
|
+
"name": "token",
|
|
9731
|
+
"type": "string",
|
|
9732
|
+
"required": true,
|
|
9733
|
+
"description": "Signed token taken from the /c/ path component of a previously issued file content URL, without the host or /c/ prefix."
|
|
9734
|
+
}
|
|
9735
|
+
]
|
|
9736
|
+
}
|
|
9737
|
+
},
|
|
9738
|
+
{
|
|
9739
|
+
"resource": "file.files.contentUrl",
|
|
9740
|
+
"method": "create",
|
|
9741
|
+
"summary": "Create a download URL",
|
|
9742
|
+
"description": "Download a file's bytes to a local disk from a coding agent without sending them through the model. Use file_id from file creation or listing, then run curl -fsSL -o <filename> '<url>' locally with the returned URL; GET needs no Authorization header. The link is reusable until expiry and supports a single byte Range (for example Range: bytes=0-9 returns 206). Revoke it with files.contentLinks.revoke, passing the token after /c/ in the URL. Expired, revoked, invalid or cross-organization URLs return 404. Lifetime defaults to 3600 seconds and is at most 604800 seconds. Issuance requires the same credential and file-read access as files.retrieveContent; a processing file returns 409 FILE_NOT_READY, so poll files.retrieve until active before retrying. A missing, expired or other-organization file returns 404. Each issuance creates a new link. OpenAI Files has no signed download URL; this follows S3 presigned GET semantics. Example body: {\"ttl_seconds\":3600}.",
|
|
9743
|
+
"http": "POST",
|
|
9744
|
+
"path": "/file/v1/files/{file_id}/content_url",
|
|
9745
|
+
"streaming": "no",
|
|
9746
|
+
"pagination": false,
|
|
9747
|
+
"pathParams": [
|
|
9748
|
+
{
|
|
9749
|
+
"name": "file_id",
|
|
9750
|
+
"sdkName": "file_id",
|
|
9751
|
+
"description": "Tenant-owned live file identifier from file creation or listing; the file must be active to issue a download URL."
|
|
9752
|
+
}
|
|
9753
|
+
],
|
|
9754
|
+
"query": [],
|
|
9755
|
+
"body": {
|
|
9756
|
+
"required": false,
|
|
9757
|
+
"fields": [
|
|
9758
|
+
{
|
|
9759
|
+
"name": "ttl_seconds",
|
|
9760
|
+
"type": "integer",
|
|
9761
|
+
"required": false,
|
|
9762
|
+
"description": "Download link lifetime in seconds, from 1 through 604800; omitted means 3600. This does not change the file's own expiry."
|
|
9763
|
+
}
|
|
9764
|
+
]
|
|
9765
|
+
}
|
|
9766
|
+
},
|
|
8597
9767
|
{
|
|
8598
9768
|
"resource": "file.uploads",
|
|
8599
9769
|
"method": "create",
|
|
@@ -8651,6 +9821,63 @@ export const operations = [
|
|
|
8651
9821
|
]
|
|
8652
9822
|
}
|
|
8653
9823
|
},
|
|
9824
|
+
{
|
|
9825
|
+
"resource": "file.uploads",
|
|
9826
|
+
"method": "createSigned",
|
|
9827
|
+
"summary": "Create a one-time upload URL",
|
|
9828
|
+
"description": "Upload a local file of up to 2 GiB from a coding agent without sending bytes through the model. Provide basename, exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes), PUT each chunk to its numbered parts[].url in any order, then POST complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid, wrong-action or cross-organization URLs return 404. URL lifetime defaults to 900 seconds for single PUT or 3600 for multipart, at most 604800; all multipart URLs share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.",
|
|
9829
|
+
"http": "POST",
|
|
9830
|
+
"path": "/file/v1/uploads/signed",
|
|
9831
|
+
"streaming": "no",
|
|
9832
|
+
"pagination": false,
|
|
9833
|
+
"pathParams": [],
|
|
9834
|
+
"query": [],
|
|
9835
|
+
"body": {
|
|
9836
|
+
"required": true,
|
|
9837
|
+
"fields": [
|
|
9838
|
+
{
|
|
9839
|
+
"name": "filename",
|
|
9840
|
+
"type": "string",
|
|
9841
|
+
"required": true,
|
|
9842
|
+
"description": "Stored basename, 1–255 UTF-8 bytes without control characters or path separators."
|
|
9843
|
+
},
|
|
9844
|
+
{
|
|
9845
|
+
"name": "bytes",
|
|
9846
|
+
"type": "integer",
|
|
9847
|
+
"required": true,
|
|
9848
|
+
"description": "Exact local file size in bytes, from 1 through 2147483648 (2 GiB). Up to 104857600 bytes returns one PUT URL; larger files return numbered part URLs and a completion URL. Every PUT requires its exact signed Content-Length."
|
|
9849
|
+
},
|
|
9850
|
+
{
|
|
9851
|
+
"name": "content_type",
|
|
9852
|
+
"type": "string",
|
|
9853
|
+
"required": true,
|
|
9854
|
+
"description": "Declared MIME type, such as image/png. In single-PUT mode, send exactly this Content-Type or omit it. Stored file metadata is detected from the bytes in both modes."
|
|
9855
|
+
},
|
|
9856
|
+
{
|
|
9857
|
+
"name": "purpose",
|
|
9858
|
+
"type": "string",
|
|
9859
|
+
"enum": [
|
|
9860
|
+
"user_data",
|
|
9861
|
+
"vision"
|
|
9862
|
+
],
|
|
9863
|
+
"required": false,
|
|
9864
|
+
"description": "user_data stores ordinary files and conversation images; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data."
|
|
9865
|
+
},
|
|
9866
|
+
{
|
|
9867
|
+
"name": "expires_in",
|
|
9868
|
+
"type": "integer",
|
|
9869
|
+
"required": false,
|
|
9870
|
+
"description": "Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 3600 for multipart. All part URLs and the completion URL share one expiry. This does not set the resulting file's lifetime."
|
|
9871
|
+
},
|
|
9872
|
+
{
|
|
9873
|
+
"name": "part_size",
|
|
9874
|
+
"type": "integer",
|
|
9875
|
+
"required": false,
|
|
9876
|
+
"description": "Fixed multipart chunk size in bytes, from 5242880 through 64000000; defaults to 64000000. Used only above 104857600 total bytes. The final part contains the remaining bytes; single-PUT mode keeps its existing response."
|
|
9877
|
+
}
|
|
9878
|
+
]
|
|
9879
|
+
}
|
|
9880
|
+
},
|
|
8654
9881
|
{
|
|
8655
9882
|
"resource": "file.uploads",
|
|
8656
9883
|
"method": "cancel",
|
|
@@ -8797,7 +10024,7 @@ export const operations = [
|
|
|
8797
10024
|
"resource": "knowledge.vectorStores",
|
|
8798
10025
|
"method": "create",
|
|
8799
10026
|
"summary": "Create knowledge base",
|
|
8800
|
-
"description": "Create a knowledge base, optionally starting ingestion of uploaded file_ids in the same call; no separate attachment or batch is needed for those files. Use the returned id with vectorStores.files.retrieve to poll each attachment until completed, failed or cancelled; store status=completed alone does not mean every file succeeded.
|
|
10027
|
+
"description": "Create a knowledge base, optionally starting ingestion of uploaded file_ids in the same call; no separate attachment or batch is needed for those files. Use the returned id with vectorStores.files.retrieve to poll each attachment until completed, failed or cancelled; store status=completed alone does not mean every file succeeded. Each file accepts up to 52428800 bytes and 5000000 estimated tokens; each account holds up to 100 active/nondeleted stores. Minimal body: {\"name\":\"Refund policies\"}.",
|
|
8801
10028
|
"http": "POST",
|
|
8802
10029
|
"path": "/knowledge/v1/vector_stores",
|
|
8803
10030
|
"streaming": "no",
|
|
@@ -8848,7 +10075,7 @@ export const operations = [
|
|
|
8848
10075
|
"name": "models",
|
|
8849
10076
|
"type": "object",
|
|
8850
10077
|
"required": false,
|
|
8851
|
-
"description": "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400."
|
|
10078
|
+
"description": "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400."
|
|
8852
10079
|
}
|
|
8853
10080
|
]
|
|
8854
10081
|
}
|
|
@@ -8952,7 +10179,7 @@ export const operations = [
|
|
|
8952
10179
|
"name": "models",
|
|
8953
10180
|
"type": "object",
|
|
8954
10181
|
"required": false,
|
|
8955
|
-
"description": "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400."
|
|
10182
|
+
"description": "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400."
|
|
8956
10183
|
}
|
|
8957
10184
|
]
|
|
8958
10185
|
}
|
|
@@ -9183,7 +10410,7 @@ export const operations = [
|
|
|
9183
10410
|
"resource": "knowledge.vectorStores.files",
|
|
9184
10411
|
"method": "create",
|
|
9185
10412
|
"summary": "Add file",
|
|
9186
|
-
"description": "Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching.
|
|
10413
|
+
"description": "Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching. Each file accepts up to 52428800 bytes and 5000000 estimated tokens; chunk sizes use estimated tokens rather than a model tokenizer. Text, Markdown, CSV, JSON, HTML, PDF, DOCX, PPTX, XLSX and PNG/JPEG/GIF/WebP images can be extracted; audio and video uploads are not knowledge documents. Images may yield generated descriptions rather than verbatim OCR. auto chunking resolves to static 800/400; explicit sizes are 100–4096 with overlap at most half the size. Each store holds at most 10000 attached files. Reattaching the same file returns its existing record without applying new attributes or chunking; inspect last_error after failure.",
|
|
9187
10414
|
"http": "POST",
|
|
9188
10415
|
"path": "/knowledge/v1/vector_stores/{vector_store_id}/files",
|
|
9189
10416
|
"streaming": "no",
|
|
@@ -9845,6 +11072,16 @@ export const operations = [
|
|
|
9845
11072
|
],
|
|
9846
11073
|
"required": false,
|
|
9847
11074
|
"description": "Upload category: image for images, video for video or audio, raw for unprocessed files, or auto to detect the category. Defaults to auto."
|
|
11075
|
+
},
|
|
11076
|
+
{
|
|
11077
|
+
"name": "type",
|
|
11078
|
+
"type": "string",
|
|
11079
|
+
"enum": [
|
|
11080
|
+
"upload",
|
|
11081
|
+
"authenticated"
|
|
11082
|
+
],
|
|
11083
|
+
"required": false,
|
|
11084
|
+
"description": "Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported."
|
|
9848
11085
|
}
|
|
9849
11086
|
]
|
|
9850
11087
|
}
|
|
@@ -9873,7 +11110,7 @@ export const operations = [
|
|
|
9873
11110
|
"name": "file_id",
|
|
9874
11111
|
"type": "string",
|
|
9875
11112
|
"required": true,
|
|
9876
|
-
"description": "File ID to copy into this library
|
|
11113
|
+
"description": "File ID to copy into this library instead of file bytes. This independent copy defaults to public delivery; set type=authenticated for private delivery. Deleting the source File does not delete this asset."
|
|
9877
11114
|
},
|
|
9878
11115
|
{
|
|
9879
11116
|
"name": "public_id",
|
|
@@ -9958,6 +11195,16 @@ export const operations = [
|
|
|
9958
11195
|
],
|
|
9959
11196
|
"required": false,
|
|
9960
11197
|
"description": "Upload category: image for images, video for video or audio, raw for unprocessed files, or auto to detect the category. Defaults to auto."
|
|
11198
|
+
},
|
|
11199
|
+
{
|
|
11200
|
+
"name": "type",
|
|
11201
|
+
"type": "string",
|
|
11202
|
+
"enum": [
|
|
11203
|
+
"upload",
|
|
11204
|
+
"authenticated"
|
|
11205
|
+
],
|
|
11206
|
+
"required": false,
|
|
11207
|
+
"description": "Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported."
|
|
9961
11208
|
}
|
|
9962
11209
|
]
|
|
9963
11210
|
}
|
|
@@ -10238,6 +11485,41 @@ export const operations = [
|
|
|
10238
11485
|
],
|
|
10239
11486
|
"query": []
|
|
10240
11487
|
},
|
|
11488
|
+
{
|
|
11489
|
+
"resource": "media.libraries.deliveryTokens",
|
|
11490
|
+
"method": "create",
|
|
11491
|
+
"summary": "Create delivery token",
|
|
11492
|
+
"description": "Issue a time-limited bearer token for originals and transformed authenticated assets in an active library. Use library_id from library creation or listing; read access is sufficient. Append token as the __cld_token__ query parameter on a matching delivery URL. The default ACL covers this library and the default lifetime is 3600 seconds; narrow acl and expires_in before sharing. Anyone holding the token can read matching paths until expires_at.",
|
|
11493
|
+
"http": "POST",
|
|
11494
|
+
"path": "/media/v1/libraries/{library_id}/delivery_tokens",
|
|
11495
|
+
"streaming": "no",
|
|
11496
|
+
"pagination": false,
|
|
11497
|
+
"pathParams": [
|
|
11498
|
+
{
|
|
11499
|
+
"name": "library_id",
|
|
11500
|
+
"sdkName": "library_id",
|
|
11501
|
+
"description": "Library ID returned by creation."
|
|
11502
|
+
}
|
|
11503
|
+
],
|
|
11504
|
+
"query": [],
|
|
11505
|
+
"body": {
|
|
11506
|
+
"required": true,
|
|
11507
|
+
"fields": [
|
|
11508
|
+
{
|
|
11509
|
+
"name": "acl",
|
|
11510
|
+
"type": "string",
|
|
11511
|
+
"required": false,
|
|
11512
|
+
"description": "Delivery path glob restricted to the library path prefix (a slash, library_id, then a slash). Defaults to that prefix followed by *; * matches any path text. Tildes and control characters are rejected."
|
|
11513
|
+
},
|
|
11514
|
+
{
|
|
11515
|
+
"name": "expires_in",
|
|
11516
|
+
"type": "integer",
|
|
11517
|
+
"required": false,
|
|
11518
|
+
"description": "Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 3600."
|
|
11519
|
+
}
|
|
11520
|
+
]
|
|
11521
|
+
}
|
|
11522
|
+
},
|
|
10241
11523
|
{
|
|
10242
11524
|
"resource": "media.libraries.events",
|
|
10243
11525
|
"method": "list",
|
|
@@ -13933,7 +15215,7 @@ export const operations = [
|
|
|
13933
15215
|
"resource": "sandbox.sandboxes.commands",
|
|
13934
15216
|
"method": "run",
|
|
13935
15217
|
"summary": "Run a command in the sandbox",
|
|
13936
|
-
"description": "Execute a shell command and wait for stdout, stderr and exitCode. Supply cmd, optional cwd and envs, and timeoutMs (1–
|
|
15218
|
+
"description": "Execute a shell command and wait for stdout, stderr and exitCode. Supply cmd, optional cwd and envs, and timeoutMs (1–3600000 milliseconds, default 600000, that is 10 minutes; E2B defaults to 60000). Unlike E2B, this endpoint is synchronous only: no background mode, callbacks or unlimited timeout (timeoutMs 0); output is bounded to 1 MiB including stream framing. Nonzero exit codes return 200 with the result. A timeout returns COMMAND_TIMEOUT (504); transport timeout does not confirm process termination, so do not blindly retry commands with side effects. Example body: {\"cmd\":\"echo hi\"}.",
|
|
13937
15219
|
"http": "POST",
|
|
13938
15220
|
"path": "/sandbox/v1/sandboxes/{sandbox_id}/commands",
|
|
13939
15221
|
"streaming": "no",
|
|
@@ -13955,6 +15237,12 @@ export const operations = [
|
|
|
13955
15237
|
"required": true,
|
|
13956
15238
|
"description": "Shell command to execute, for example echo hi."
|
|
13957
15239
|
},
|
|
15240
|
+
{
|
|
15241
|
+
"name": "background",
|
|
15242
|
+
"type": "boolean",
|
|
15243
|
+
"required": false,
|
|
15244
|
+
"description": "When true, return 202 with the pid as soon as the process starts; it keeps running after the request ends. Read its status and output with GET /sandbox/v1/sandboxes/{sandbox_id}/commands/{pid}, stop it with DELETE. Same idea as E2B background commands."
|
|
15245
|
+
},
|
|
13958
15246
|
{
|
|
13959
15247
|
"name": "cwd",
|
|
13960
15248
|
"type": "string",
|
|
@@ -13971,7 +15259,7 @@ export const operations = [
|
|
|
13971
15259
|
"name": "timeoutMs",
|
|
13972
15260
|
"type": "integer",
|
|
13973
15261
|
"required": false,
|
|
13974
|
-
"description": "Execution timeout in milliseconds, from 1 to
|
|
15262
|
+
"description": "Execution timeout in milliseconds, from 1 to 3600000 (1 hour); defaults to 600000 (10 minutes). In background mode this limits process runtime; expiry records exit code 124."
|
|
13975
15263
|
}
|
|
13976
15264
|
]
|
|
13977
15265
|
}
|
|
@@ -14170,7 +15458,7 @@ export const operations = [
|
|
|
14170
15458
|
"resource": "sandbox.templates",
|
|
14171
15459
|
"method": "list",
|
|
14172
15460
|
"summary": "List templates (v2)",
|
|
14173
|
-
"description": "List
|
|
15461
|
+
"description": "List official templates and all your custom templates, including waiting, building, ready and error builds. Custom templates appear first; each custom row describes its latest build, not necessarily the current ready build. Use templateID for build management and a ready template name when creating a sandbox. Own-face official distinguishes public catalog entries; sourceKind is omitted until a source is submitted and on official templates. Other organizations' templates are invisible.",
|
|
14174
15462
|
"http": "GET",
|
|
14175
15463
|
"path": "/sandbox/v1/templates",
|
|
14176
15464
|
"streaming": "no",
|
|
@@ -14181,7 +15469,7 @@ export const operations = [
|
|
|
14181
15469
|
"name": "teamID",
|
|
14182
15470
|
"type": "string",
|
|
14183
15471
|
"required": false,
|
|
14184
|
-
"description": "
|
|
15472
|
+
"description": "Upstream team selector; Praxis always lists the authenticated organization's templates."
|
|
14185
15473
|
},
|
|
14186
15474
|
{
|
|
14187
15475
|
"name": "nextToken",
|
|
@@ -14197,6 +15485,342 @@ export const operations = [
|
|
|
14197
15485
|
}
|
|
14198
15486
|
]
|
|
14199
15487
|
},
|
|
15488
|
+
{
|
|
15489
|
+
"resource": "sandbox.templates",
|
|
15490
|
+
"method": "create",
|
|
15491
|
+
"summary": "Create template (v3)",
|
|
15492
|
+
"description": "Reserve a waiting build before submitting its source. Reusing a name in your organization allocates a new build on the same template. Returns templateID and buildID; start it with templates.builds.update, then poll templates.builds.status.list. A name:tag suffix and tags are assigned after successful publication. Example: {\"name\":\"my-template\",\"cpuCount\":2,\"memoryMB\":2048}. The own face also accepts diskGb, a positive integer defaulting to 10 GiB.",
|
|
15493
|
+
"http": "POST",
|
|
15494
|
+
"path": "/sandbox/v1/templates",
|
|
15495
|
+
"streaming": "no",
|
|
15496
|
+
"pagination": false,
|
|
15497
|
+
"pathParams": [],
|
|
15498
|
+
"query": [],
|
|
15499
|
+
"body": {
|
|
15500
|
+
"required": true,
|
|
15501
|
+
"fields": [
|
|
15502
|
+
{
|
|
15503
|
+
"name": "name",
|
|
15504
|
+
"type": "string",
|
|
15505
|
+
"required": false,
|
|
15506
|
+
"description": "Name of the template. Can include a tag with colon separator (e.g. \"my-template\" or \"my-template:v1\"). If tag is included, it will be treated as if the tag was provided in the tags array."
|
|
15507
|
+
},
|
|
15508
|
+
{
|
|
15509
|
+
"name": "tags",
|
|
15510
|
+
"type": "array",
|
|
15511
|
+
"itemType": "string",
|
|
15512
|
+
"required": false,
|
|
15513
|
+
"description": "Tags to assign to the template build"
|
|
15514
|
+
},
|
|
15515
|
+
{
|
|
15516
|
+
"name": "alias",
|
|
15517
|
+
"type": "string",
|
|
15518
|
+
"required": false,
|
|
15519
|
+
"description": "Alias of the template. Deprecated, use name instead."
|
|
15520
|
+
},
|
|
15521
|
+
{
|
|
15522
|
+
"name": "teamID",
|
|
15523
|
+
"type": "string",
|
|
15524
|
+
"required": false,
|
|
15525
|
+
"description": "Identifier of the team"
|
|
15526
|
+
},
|
|
15527
|
+
{
|
|
15528
|
+
"name": "cpuCount",
|
|
15529
|
+
"type": "integer",
|
|
15530
|
+
"required": false,
|
|
15531
|
+
"description": "Requested virtual CPU count; a positive integer, default 2 for template builds."
|
|
15532
|
+
},
|
|
15533
|
+
{
|
|
15534
|
+
"name": "memoryMB",
|
|
15535
|
+
"type": "integer",
|
|
15536
|
+
"required": false,
|
|
15537
|
+
"description": "Requested build memory in MiB; a positive integer, default 1024."
|
|
15538
|
+
},
|
|
15539
|
+
{
|
|
15540
|
+
"name": "minFreeDiskMb",
|
|
15541
|
+
"type": "integer",
|
|
15542
|
+
"required": false,
|
|
15543
|
+
"description": "Upstream minimum free disk request in MiB; use the native diskGb field to set the build disk size."
|
|
15544
|
+
},
|
|
15545
|
+
{
|
|
15546
|
+
"name": "diskGb",
|
|
15547
|
+
"type": "integer",
|
|
15548
|
+
"required": false,
|
|
15549
|
+
"description": "Build disk size in GiB, a positive safe integer. Defaults to 10; available only on the own face."
|
|
15550
|
+
}
|
|
15551
|
+
]
|
|
15552
|
+
}
|
|
15553
|
+
},
|
|
15554
|
+
{
|
|
15555
|
+
"resource": "sandbox.templates.aliases",
|
|
15556
|
+
"method": "retrieve",
|
|
15557
|
+
"summary": "Check template alias",
|
|
15558
|
+
"description": "Resolve a name within your organization to its templateID before reading or managing builds. Use the bare template name, without a :tag suffix. Unknown and other-organization names return 404. The response public field is false for your private templates.",
|
|
15559
|
+
"http": "GET",
|
|
15560
|
+
"path": "/sandbox/v1/templates/aliases/{alias}",
|
|
15561
|
+
"streaming": "no",
|
|
15562
|
+
"pagination": false,
|
|
15563
|
+
"pathParams": [
|
|
15564
|
+
{
|
|
15565
|
+
"name": "alias",
|
|
15566
|
+
"sdkName": "alias",
|
|
15567
|
+
"description": "Bare template name belonging to your organization, without a tag or provider namespace."
|
|
15568
|
+
}
|
|
15569
|
+
],
|
|
15570
|
+
"query": []
|
|
15571
|
+
},
|
|
15572
|
+
{
|
|
15573
|
+
"resource": "sandbox.templates.tags",
|
|
15574
|
+
"method": "delete",
|
|
15575
|
+
"summary": "Delete template tags",
|
|
15576
|
+
"description": "Remove the specified tag labels from your template by name, for example {\"name\":\"my-template\",\"tags\":[\"stable\"]}. Builds remain available. Removing default means untagged sandbox creation no longer resolves this template. Unknown or other-organization names return 404. b<number> names are reserved read-only build aliases and cannot be assigned or deleted as tags.",
|
|
15577
|
+
"http": "DELETE",
|
|
15578
|
+
"path": "/sandbox/v1/templates/tags",
|
|
15579
|
+
"streaming": "no",
|
|
15580
|
+
"pagination": false,
|
|
15581
|
+
"pathParams": [],
|
|
15582
|
+
"query": [],
|
|
15583
|
+
"body": {
|
|
15584
|
+
"required": true,
|
|
15585
|
+
"fields": [
|
|
15586
|
+
{
|
|
15587
|
+
"name": "name",
|
|
15588
|
+
"type": "string",
|
|
15589
|
+
"required": true,
|
|
15590
|
+
"description": "Name of the template"
|
|
15591
|
+
},
|
|
15592
|
+
{
|
|
15593
|
+
"name": "tags",
|
|
15594
|
+
"type": "array",
|
|
15595
|
+
"itemType": "string",
|
|
15596
|
+
"required": true,
|
|
15597
|
+
"description": "Tags to delete"
|
|
15598
|
+
}
|
|
15599
|
+
]
|
|
15600
|
+
}
|
|
15601
|
+
},
|
|
15602
|
+
{
|
|
15603
|
+
"resource": "sandbox.templates.tags",
|
|
15604
|
+
"method": "create",
|
|
15605
|
+
"summary": "Assign template tags",
|
|
15606
|
+
"description": "Assign tags to the ready build selected by target in name:tag format, for example {\"target\":\"my-template:default\",\"tags\":[\"stable\"]}. Names belong to your organization. Tags move an existing label to this build without rebuilding. Obtain available names from templates.list and tags from templates.tags.list. b<number> names are reserved read-only build aliases and cannot be assigned or deleted as tags. target also accepts name:b<number> to select a ready build by number, for example my-template:b1.",
|
|
15607
|
+
"http": "POST",
|
|
15608
|
+
"path": "/sandbox/v1/templates/tags",
|
|
15609
|
+
"streaming": "no",
|
|
15610
|
+
"pagination": false,
|
|
15611
|
+
"pathParams": [],
|
|
15612
|
+
"query": [],
|
|
15613
|
+
"body": {
|
|
15614
|
+
"required": true,
|
|
15615
|
+
"fields": [
|
|
15616
|
+
{
|
|
15617
|
+
"name": "target",
|
|
15618
|
+
"type": "string",
|
|
15619
|
+
"required": true,
|
|
15620
|
+
"description": "Target template in \"name:tag\" format"
|
|
15621
|
+
},
|
|
15622
|
+
{
|
|
15623
|
+
"name": "tags",
|
|
15624
|
+
"type": "array",
|
|
15625
|
+
"itemType": "string",
|
|
15626
|
+
"required": true,
|
|
15627
|
+
"description": "Tags to assign to the template"
|
|
15628
|
+
}
|
|
15629
|
+
]
|
|
15630
|
+
}
|
|
15631
|
+
},
|
|
15632
|
+
{
|
|
15633
|
+
"resource": "sandbox.templates",
|
|
15634
|
+
"method": "delete",
|
|
15635
|
+
"summary": "Delete template",
|
|
15636
|
+
"description": "Permanently remove your template, its builds and tag assignments using templateID from templates.create. Active instances prevent deletion with 409; terminate them first. Unknown or other-organization IDs return 404. Snapshot IDs use snapshots.delete instead.",
|
|
15637
|
+
"http": "DELETE",
|
|
15638
|
+
"path": "/sandbox/v1/templates/{templateID}",
|
|
15639
|
+
"streaming": "no",
|
|
15640
|
+
"pagination": false,
|
|
15641
|
+
"pathParams": [
|
|
15642
|
+
{
|
|
15643
|
+
"name": "templateID",
|
|
15644
|
+
"sdkName": "templateID",
|
|
15645
|
+
"description": "Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle."
|
|
15646
|
+
}
|
|
15647
|
+
],
|
|
15648
|
+
"query": []
|
|
15649
|
+
},
|
|
15650
|
+
{
|
|
15651
|
+
"resource": "sandbox.templates",
|
|
15652
|
+
"method": "retrieve",
|
|
15653
|
+
"summary": "List template builds",
|
|
15654
|
+
"description": "Inspect your template and its newest builds using templateID from templates.create. Build states are waiting, building, ready or error. Use limit and the returned x-next-token header to page builds. Unknown or other-organization templates return 404.",
|
|
15655
|
+
"http": "GET",
|
|
15656
|
+
"path": "/sandbox/v1/templates/{templateID}",
|
|
15657
|
+
"streaming": "no",
|
|
15658
|
+
"pagination": false,
|
|
15659
|
+
"pathParams": [
|
|
15660
|
+
{
|
|
15661
|
+
"name": "templateID",
|
|
15662
|
+
"sdkName": "templateID",
|
|
15663
|
+
"description": "Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle."
|
|
15664
|
+
}
|
|
15665
|
+
],
|
|
15666
|
+
"query": [
|
|
15667
|
+
{
|
|
15668
|
+
"name": "nextToken",
|
|
15669
|
+
"type": "string",
|
|
15670
|
+
"required": false,
|
|
15671
|
+
"description": "Cursor to start the list from"
|
|
15672
|
+
},
|
|
15673
|
+
{
|
|
15674
|
+
"name": "limit",
|
|
15675
|
+
"type": "integer",
|
|
15676
|
+
"required": false,
|
|
15677
|
+
"description": "Maximum number of items to return per page"
|
|
15678
|
+
}
|
|
15679
|
+
]
|
|
15680
|
+
},
|
|
15681
|
+
{
|
|
15682
|
+
"resource": "sandbox.templates.builds",
|
|
15683
|
+
"method": "update",
|
|
15684
|
+
"summary": "Start template build (v2)",
|
|
15685
|
+
"description": "Submit source for a waiting build returned by templates.create; returns 202 after queueing, not after successful publication. Unlike E2B, COPY is rejected (use RUN curl or git clone), fromTemplate accepts official catalog names only, and plaintext registry credentials are rejected. The own face also accepts dockerfile, mutually exclusive with fromImage/fromTemplate/steps, and fromImageRegistry vault references for nonofficial images. Poll templates.builds.status.list until ready or error. Example: {\"fromImage\":\"node:22\",\"steps\":[{\"type\":\"RUN\",\"args\":[\"echo hello\"]}]}.",
|
|
15686
|
+
"http": "POST",
|
|
15687
|
+
"path": "/sandbox/v1/templates/{templateID}/builds/{buildID}",
|
|
15688
|
+
"streaming": "no",
|
|
15689
|
+
"pagination": false,
|
|
15690
|
+
"pathParams": [
|
|
15691
|
+
{
|
|
15692
|
+
"name": "templateID",
|
|
15693
|
+
"sdkName": "templateID",
|
|
15694
|
+
"description": "Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle."
|
|
15695
|
+
},
|
|
15696
|
+
{
|
|
15697
|
+
"name": "buildID",
|
|
15698
|
+
"sdkName": "buildID",
|
|
15699
|
+
"description": "Build identifier returned by templates.create. It must belong to the selected template in your organization."
|
|
15700
|
+
}
|
|
15701
|
+
],
|
|
15702
|
+
"query": [],
|
|
15703
|
+
"body": {
|
|
15704
|
+
"required": true,
|
|
15705
|
+
"fields": [
|
|
15706
|
+
{
|
|
15707
|
+
"name": "fromImage",
|
|
15708
|
+
"type": "string",
|
|
15709
|
+
"required": false,
|
|
15710
|
+
"description": "Image to use as a base for the template build"
|
|
15711
|
+
},
|
|
15712
|
+
{
|
|
15713
|
+
"name": "fromTemplate",
|
|
15714
|
+
"type": "string",
|
|
15715
|
+
"required": false,
|
|
15716
|
+
"description": "Template to use as a base for the template build"
|
|
15717
|
+
},
|
|
15718
|
+
{
|
|
15719
|
+
"name": "fromImageRegistry",
|
|
15720
|
+
"type": "object",
|
|
15721
|
+
"required": false,
|
|
15722
|
+
"description": "Registry authentication. Unlike E2B, only the vault reference variant is accepted; plaintext aws, gcp and registry variants return 400. Cannot be used with official templates."
|
|
15723
|
+
},
|
|
15724
|
+
{
|
|
15725
|
+
"name": "force",
|
|
15726
|
+
"type": "boolean",
|
|
15727
|
+
"required": false,
|
|
15728
|
+
"description": "Whether the whole build should be forced to run regardless of the cache"
|
|
15729
|
+
},
|
|
15730
|
+
{
|
|
15731
|
+
"name": "steps",
|
|
15732
|
+
"type": "array",
|
|
15733
|
+
"itemType": "object",
|
|
15734
|
+
"required": false,
|
|
15735
|
+
"description": "List of steps to execute in the template build"
|
|
15736
|
+
},
|
|
15737
|
+
{
|
|
15738
|
+
"name": "startCmd",
|
|
15739
|
+
"type": "string",
|
|
15740
|
+
"required": false,
|
|
15741
|
+
"description": "Start command to execute in the template after the build"
|
|
15742
|
+
},
|
|
15743
|
+
{
|
|
15744
|
+
"name": "readyCmd",
|
|
15745
|
+
"type": "string",
|
|
15746
|
+
"required": false,
|
|
15747
|
+
"description": "Ready check command to execute in the template after the build"
|
|
15748
|
+
},
|
|
15749
|
+
{
|
|
15750
|
+
"name": "dockerfile",
|
|
15751
|
+
"type": "string",
|
|
15752
|
+
"required": false,
|
|
15753
|
+
"description": "Dockerfile text, at most 64 KiB UTF-8. Mutually exclusive with fromImage, fromTemplate and steps. COPY/ADD are rejected; fetch remote content using RUN. Registry credentials require a nonofficial image in the first FROM."
|
|
15754
|
+
}
|
|
15755
|
+
]
|
|
15756
|
+
}
|
|
15757
|
+
},
|
|
15758
|
+
{
|
|
15759
|
+
"resource": "sandbox.templates.builds.status",
|
|
15760
|
+
"method": "list",
|
|
15761
|
+
"summary": "Template build status",
|
|
15762
|
+
"description": "Poll a build using templateID and buildID from templates.create. waiting means source has not been submitted; building includes queued work; ready permits sandbox creation; error is terminal, with reason when available. logsOffset counts previously read log entries, starting at zero; add logEntries.length after each response. limit is 0–100, default 100. level selects one log level; offsets then count entries at that level. Drain logs until an empty page, including after a terminal status.",
|
|
15763
|
+
"http": "GET",
|
|
15764
|
+
"path": "/sandbox/v1/templates/{templateID}/builds/{buildID}/status",
|
|
15765
|
+
"streaming": "no",
|
|
15766
|
+
"pagination": false,
|
|
15767
|
+
"pathParams": [
|
|
15768
|
+
{
|
|
15769
|
+
"name": "templateID",
|
|
15770
|
+
"sdkName": "templateID",
|
|
15771
|
+
"description": "Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle."
|
|
15772
|
+
},
|
|
15773
|
+
{
|
|
15774
|
+
"name": "buildID",
|
|
15775
|
+
"sdkName": "buildID",
|
|
15776
|
+
"description": "Build identifier returned by templates.create. It must belong to the selected template in your organization."
|
|
15777
|
+
}
|
|
15778
|
+
],
|
|
15779
|
+
"query": [
|
|
15780
|
+
{
|
|
15781
|
+
"name": "logsOffset",
|
|
15782
|
+
"type": "integer",
|
|
15783
|
+
"required": false,
|
|
15784
|
+
"description": "Index of the starting build log that should be returned with the template"
|
|
15785
|
+
},
|
|
15786
|
+
{
|
|
15787
|
+
"name": "limit",
|
|
15788
|
+
"type": "integer",
|
|
15789
|
+
"required": false,
|
|
15790
|
+
"description": "Maximum number of logs that should be returned"
|
|
15791
|
+
},
|
|
15792
|
+
{
|
|
15793
|
+
"name": "level",
|
|
15794
|
+
"type": "string",
|
|
15795
|
+
"enum": [
|
|
15796
|
+
"debug",
|
|
15797
|
+
"info",
|
|
15798
|
+
"warn",
|
|
15799
|
+
"error"
|
|
15800
|
+
],
|
|
15801
|
+
"required": false,
|
|
15802
|
+
"description": "Select one exact log severity: debug for diagnostics, info for progress, warn for warnings, error for failures. Offsets count matching entries."
|
|
15803
|
+
}
|
|
15804
|
+
]
|
|
15805
|
+
},
|
|
15806
|
+
{
|
|
15807
|
+
"resource": "sandbox.templates.tags",
|
|
15808
|
+
"method": "list",
|
|
15809
|
+
"summary": "List template tags",
|
|
15810
|
+
"description": "Read the tag-to-build assignments for your template using templateID from templates.create. Only ready builds acquire tags. Use a returned tag with the template name as name:tag when creating a sandbox or assigning additional tags. Foreign IDs return 404.",
|
|
15811
|
+
"http": "GET",
|
|
15812
|
+
"path": "/sandbox/v1/templates/{templateID}/tags",
|
|
15813
|
+
"streaming": "no",
|
|
15814
|
+
"pagination": false,
|
|
15815
|
+
"pathParams": [
|
|
15816
|
+
{
|
|
15817
|
+
"name": "templateID",
|
|
15818
|
+
"sdkName": "templateID",
|
|
15819
|
+
"description": "Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle."
|
|
15820
|
+
}
|
|
15821
|
+
],
|
|
15822
|
+
"query": []
|
|
15823
|
+
},
|
|
14200
15824
|
{
|
|
14201
15825
|
"resource": "sandbox.volumes",
|
|
14202
15826
|
"method": "list",
|
|
@@ -15356,7 +16980,7 @@ export const operations = [
|
|
|
15356
16980
|
"resource": "ticket.milestones",
|
|
15357
16981
|
"method": "create",
|
|
15358
16982
|
"summary": "Create or add milestones",
|
|
15359
|
-
"description": "Create or add milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result.
|
|
16983
|
+
"description": "Create or add milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.",
|
|
15360
16984
|
"http": "POST",
|
|
15361
16985
|
"path": "/ticket/v1/milestones",
|
|
15362
16986
|
"streaming": "no",
|
|
@@ -15408,7 +17032,7 @@ export const operations = [
|
|
|
15408
17032
|
"resource": "ticket.milestones",
|
|
15409
17033
|
"method": "delete",
|
|
15410
17034
|
"summary": "Remove milestones",
|
|
15411
|
-
"description": "Remove milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result.
|
|
17035
|
+
"description": "Remove milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.",
|
|
15412
17036
|
"http": "DELETE",
|
|
15413
17037
|
"path": "/ticket/v1/milestones/{number}",
|
|
15414
17038
|
"streaming": "no",
|
|
@@ -15460,7 +17084,7 @@ export const operations = [
|
|
|
15460
17084
|
"resource": "ticket.milestones",
|
|
15461
17085
|
"method": "update",
|
|
15462
17086
|
"summary": "Update milestones",
|
|
15463
|
-
"description": "Update milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result.
|
|
17087
|
+
"description": "Update milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.",
|
|
15464
17088
|
"http": "PATCH",
|
|
15465
17089
|
"path": "/ticket/v1/milestones/{number}",
|
|
15466
17090
|
"streaming": "no",
|
|
@@ -16871,7 +18495,7 @@ export const operations = [
|
|
|
16871
18495
|
"resource": "vault.vaults.secrets",
|
|
16872
18496
|
"method": "create",
|
|
16873
18497
|
"summary": "Create secret",
|
|
16874
|
-
"description": "Store a manually supplied token in an active vault for
|
|
18498
|
+
"description": "Store a manually supplied token in an active vault. Omit allowed_hosts for name-based resolution only; host-based redemption never matches an empty host list. Unlike Anthropic credentials, this native operation takes name and value directly, with optional allowed_hosts and creates only static secrets; use praxis.vault.authorizations.create for OAuth. Its name must be unused by any non-archived secret in that vault; the response contains metadata but never the supplied value. Application praxis_vault_ref bindings declare vault_id and secret (the secret name), but currently return 501; do not copy the value into a plain-text binding or metadata as a substitute.",
|
|
16875
18499
|
"http": "POST",
|
|
16876
18500
|
"path": "/vault/v1/vaults/{vault_id}/secrets",
|
|
16877
18501
|
"streaming": "no",
|
|
@@ -16903,8 +18527,8 @@ export const operations = [
|
|
|
16903
18527
|
"name": "allowed_hosts",
|
|
16904
18528
|
"type": "array",
|
|
16905
18529
|
"itemType": "string",
|
|
16906
|
-
"required":
|
|
16907
|
-
"description": "Allowed destinations for the secret.
|
|
18530
|
+
"required": false,
|
|
18531
|
+
"description": "Allowed destinations for the secret. Omitting allowed_hosts on creation stores an empty list for name-based resolution only: host-based redemption never matches. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed."
|
|
16908
18532
|
},
|
|
16909
18533
|
{
|
|
16910
18534
|
"name": "description",
|
|
@@ -16928,7 +18552,7 @@ export const operations = [
|
|
|
16928
18552
|
"stripe"
|
|
16929
18553
|
],
|
|
16930
18554
|
"required": false,
|
|
16931
|
-
"description": "Static template ID from List templates. Records metadata.template; name
|
|
18555
|
+
"description": "Static template ID from List templates. Records metadata.template; name and value must still be supplied explicitly; allowed_hosts is optional."
|
|
16932
18556
|
},
|
|
16933
18557
|
{
|
|
16934
18558
|
"name": "kind",
|
|
@@ -17024,7 +18648,7 @@ export const operations = [
|
|
|
17024
18648
|
"type": "array",
|
|
17025
18649
|
"itemType": "string",
|
|
17026
18650
|
"required": false,
|
|
17027
|
-
"description": "Allowed destinations for the secret.
|
|
18651
|
+
"description": "Allowed destinations for the secret. Omitting allowed_hosts on creation stores an empty list for name-based resolution only: host-based redemption never matches. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed."
|
|
17028
18652
|
},
|
|
17029
18653
|
{
|
|
17030
18654
|
"name": "description",
|
|
@@ -17128,7 +18752,7 @@ export const operations = [
|
|
|
17128
18752
|
"resource": "vault.vaults.secrets",
|
|
17129
18753
|
"method": "import",
|
|
17130
18754
|
"summary": "Import secrets",
|
|
17131
|
-
"description": "Import lines or dotenv text into an active vault, reporting success or failure for each entry. Existing names have their values replaced; their hosts change only when that line supplies allowed_hosts. Shared hosts apply only to newly created secrets.",
|
|
18755
|
+
"description": "Import lines or dotenv text into an active vault, reporting success or failure for each entry. Existing names have their values replaced; their hosts change only when that line supplies allowed_hosts. Shared hosts apply only to newly created secrets; if neither shared nor per-line hosts are supplied, new secrets use an empty host list for name-based resolution only.",
|
|
17132
18756
|
"http": "POST",
|
|
17133
18757
|
"path": "/vault/v1/vaults/{vault_id}/secrets:import",
|
|
17134
18758
|
"streaming": "no",
|