@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
|
@@ -145,7 +145,7 @@ export declare const operations: readonly [{
|
|
|
145
145
|
readonly name: "settings";
|
|
146
146
|
readonly type: "object";
|
|
147
147
|
readonly required: false;
|
|
148
|
-
readonly description: "
|
|
148
|
+
readonly 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.";
|
|
149
149
|
}, {
|
|
150
150
|
readonly name: "models";
|
|
151
151
|
readonly type: "object";
|
|
@@ -173,6 +173,12 @@ export declare const operations: readonly [{
|
|
|
173
173
|
readonly enum: readonly ["minimal", "data-editor", "full"];
|
|
174
174
|
readonly required: false;
|
|
175
175
|
readonly 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.";
|
|
176
|
+
}, {
|
|
177
|
+
readonly name: "output_styles";
|
|
178
|
+
readonly type: "array";
|
|
179
|
+
readonly itemType: "object";
|
|
180
|
+
readonly required: false;
|
|
181
|
+
readonly 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.";
|
|
176
182
|
}];
|
|
177
183
|
};
|
|
178
184
|
}, {
|
|
@@ -318,7 +324,7 @@ export declare const operations: readonly [{
|
|
|
318
324
|
readonly name: "settings";
|
|
319
325
|
readonly type: "object";
|
|
320
326
|
readonly required: false;
|
|
321
|
-
readonly description: "
|
|
327
|
+
readonly 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.";
|
|
322
328
|
}, {
|
|
323
329
|
readonly name: "models";
|
|
324
330
|
readonly type: "object";
|
|
@@ -346,6 +352,12 @@ export declare const operations: readonly [{
|
|
|
346
352
|
readonly enum: readonly ["minimal", "data-editor", "full"];
|
|
347
353
|
readonly required: false;
|
|
348
354
|
readonly 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.";
|
|
355
|
+
}, {
|
|
356
|
+
readonly name: "output_styles";
|
|
357
|
+
readonly type: "array";
|
|
358
|
+
readonly itemType: "object";
|
|
359
|
+
readonly required: false;
|
|
360
|
+
readonly 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.";
|
|
349
361
|
}];
|
|
350
362
|
};
|
|
351
363
|
}, {
|
|
@@ -3228,7 +3240,7 @@ export declare const operations: readonly [{
|
|
|
3228
3240
|
readonly name: "timeout_ms";
|
|
3229
3241
|
readonly type: "number";
|
|
3230
3242
|
readonly required: false;
|
|
3231
|
-
readonly description: "Positive integer milliseconds; code defaults to and is capped at
|
|
3243
|
+
readonly description: "Positive integer milliseconds; code defaults to and is capped at 300,000. container/shell are not yet available.";
|
|
3232
3244
|
}, {
|
|
3233
3245
|
readonly name: "implementation";
|
|
3234
3246
|
readonly type: "object";
|
|
@@ -3269,7 +3281,7 @@ export declare const operations: readonly [{
|
|
|
3269
3281
|
readonly resource: "automation.actions";
|
|
3270
3282
|
readonly method: "update";
|
|
3271
3283
|
readonly summary: "Update an action";
|
|
3272
|
-
readonly 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
|
|
3284
|
+
readonly 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.";
|
|
3273
3285
|
readonly http: "PUT";
|
|
3274
3286
|
readonly path: "/automation/v1/actions/{ns}/{name}";
|
|
3275
3287
|
readonly streaming: "no";
|
|
@@ -3326,7 +3338,7 @@ export declare const operations: readonly [{
|
|
|
3326
3338
|
readonly name: "timeout_ms";
|
|
3327
3339
|
readonly type: "number";
|
|
3328
3340
|
readonly required: false;
|
|
3329
|
-
readonly description: "Positive integer milliseconds; code defaults to and is capped at
|
|
3341
|
+
readonly description: "Positive integer milliseconds; code defaults to and is capped at 300,000. container/shell are not yet available.";
|
|
3330
3342
|
}, {
|
|
3331
3343
|
readonly name: "implementation";
|
|
3332
3344
|
readonly type: "object";
|
|
@@ -3852,7 +3864,7 @@ export declare const operations: readonly [{
|
|
|
3852
3864
|
readonly resource: "automation.runs";
|
|
3853
3865
|
readonly method: "create";
|
|
3854
3866
|
readonly summary: "Run a published target or execute draft source";
|
|
3855
|
-
readonly 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
|
|
3867
|
+
readonly 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.";
|
|
3856
3868
|
readonly http: "POST";
|
|
3857
3869
|
readonly path: "/automation/v1/runs";
|
|
3858
3870
|
readonly streaming: "no";
|
|
@@ -4462,6 +4474,80 @@ export declare const operations: readonly [{
|
|
|
4462
4474
|
readonly required: false;
|
|
4463
4475
|
readonly fields: readonly [];
|
|
4464
4476
|
};
|
|
4477
|
+
}, {
|
|
4478
|
+
readonly resource: "automation.scripts.vaults";
|
|
4479
|
+
readonly method: "list";
|
|
4480
|
+
readonly summary: "List script vault bindings";
|
|
4481
|
+
readonly description: "Inspect the whole vaults attached to a saved script, including archived definitions, without reading secret values. Obtain ns and name from automation.scripts.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.";
|
|
4482
|
+
readonly http: "GET";
|
|
4483
|
+
readonly path: "/automation/v1/scripts/{ns}/{name}/vaults";
|
|
4484
|
+
readonly streaming: "no";
|
|
4485
|
+
readonly pagination: false;
|
|
4486
|
+
readonly pathParams: readonly [{
|
|
4487
|
+
readonly name: "ns";
|
|
4488
|
+
readonly sdkName: "ns";
|
|
4489
|
+
readonly description: "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.";
|
|
4490
|
+
}, {
|
|
4491
|
+
readonly name: "name";
|
|
4492
|
+
readonly sdkName: "name";
|
|
4493
|
+
readonly description: "Resource name from automation.scripts.list or create; combine with ns to identify the saved script.";
|
|
4494
|
+
}];
|
|
4495
|
+
readonly query: readonly [];
|
|
4496
|
+
}, {
|
|
4497
|
+
readonly resource: "automation.scripts.vaults";
|
|
4498
|
+
readonly method: "delete";
|
|
4499
|
+
readonly summary: "Delete a script vault binding";
|
|
4500
|
+
readonly description: "Remove the vault assignment from this saved script without deleting the vault or its secrets. Obtain aliases from automation.scripts.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.";
|
|
4501
|
+
readonly http: "DELETE";
|
|
4502
|
+
readonly path: "/automation/v1/scripts/{ns}/{name}/vaults/{alias}";
|
|
4503
|
+
readonly streaming: "no";
|
|
4504
|
+
readonly pagination: false;
|
|
4505
|
+
readonly pathParams: readonly [{
|
|
4506
|
+
readonly name: "ns";
|
|
4507
|
+
readonly sdkName: "ns";
|
|
4508
|
+
readonly description: "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.";
|
|
4509
|
+
}, {
|
|
4510
|
+
readonly name: "name";
|
|
4511
|
+
readonly sdkName: "name";
|
|
4512
|
+
readonly description: "Resource name from automation.scripts.list or create; combine with ns to identify the saved script.";
|
|
4513
|
+
}, {
|
|
4514
|
+
readonly name: "alias";
|
|
4515
|
+
readonly sdkName: "alias";
|
|
4516
|
+
readonly description: "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter.";
|
|
4517
|
+
}];
|
|
4518
|
+
readonly query: readonly [];
|
|
4519
|
+
}, {
|
|
4520
|
+
readonly resource: "automation.scripts.vaults";
|
|
4521
|
+
readonly method: "set";
|
|
4522
|
+
readonly summary: "Set a script vault binding";
|
|
4523
|
+
readonly description: "Attach an entire active vault in your organization to a saved script, or replace the vault at an existing alias. Obtain the vault ID or display name from praxis.vault.vaults.list; ambiguous names require an ID. Bindings are independent of published versions and survive archival. The same vault cannot be assigned to two aliases on one definition. Repeating the same assignment is idempotent. Example body: {\"vault\":\"Production\"}.";
|
|
4524
|
+
readonly http: "PUT";
|
|
4525
|
+
readonly path: "/automation/v1/scripts/{ns}/{name}/vaults/{alias}";
|
|
4526
|
+
readonly streaming: "no";
|
|
4527
|
+
readonly pagination: false;
|
|
4528
|
+
readonly pathParams: readonly [{
|
|
4529
|
+
readonly name: "ns";
|
|
4530
|
+
readonly sdkName: "ns";
|
|
4531
|
+
readonly description: "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.";
|
|
4532
|
+
}, {
|
|
4533
|
+
readonly name: "name";
|
|
4534
|
+
readonly sdkName: "name";
|
|
4535
|
+
readonly description: "Resource name from automation.scripts.list or create; combine with ns to identify the saved script.";
|
|
4536
|
+
}, {
|
|
4537
|
+
readonly name: "alias";
|
|
4538
|
+
readonly sdkName: "alias";
|
|
4539
|
+
readonly description: "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter.";
|
|
4540
|
+
}];
|
|
4541
|
+
readonly query: readonly [];
|
|
4542
|
+
readonly body: {
|
|
4543
|
+
readonly required: true;
|
|
4544
|
+
readonly fields: readonly [{
|
|
4545
|
+
readonly name: "vault";
|
|
4546
|
+
readonly type: "string";
|
|
4547
|
+
readonly required: true;
|
|
4548
|
+
readonly description: "Active vault ID or exact display name from praxis.vault.vaults.list in your organization. Use an ID if display names are duplicated.";
|
|
4549
|
+
}];
|
|
4550
|
+
};
|
|
4465
4551
|
}, {
|
|
4466
4552
|
readonly resource: "automation.scripts.versions";
|
|
4467
4553
|
readonly method: "list";
|
|
@@ -5099,7 +5185,7 @@ export declare const operations: readonly [{
|
|
|
5099
5185
|
readonly resource: "automation.workflows";
|
|
5100
5186
|
readonly method: "create";
|
|
5101
5187
|
readonly summary: "Create a workflow";
|
|
5102
|
-
readonly description: "Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax. Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl (\"1.0.3\"), namespace, name and version, plus a do list of steps, for example document: {dsl: \"1.0.3\", namespace: demo, name: add, version: \"1.0.0\"} and do: [{first: {call: demo/add-one, with: {n: \"${ .n }\"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action
|
|
5188
|
+
readonly description: "Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax. Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl (\"1.0.3\"), namespace, name and version, plus a do list of steps, for example document: {dsl: \"1.0.3\", namespace: demo, name: add, version: \"1.0.0\"} and do: [{first: {call: demo/add-one, with: {n: \"${ .n }\"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action 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.";
|
|
5103
5189
|
readonly http: "POST";
|
|
5104
5190
|
readonly path: "/automation/v1/workflows";
|
|
5105
5191
|
readonly streaming: "no";
|
|
@@ -5312,6 +5398,80 @@ export declare const operations: readonly [{
|
|
|
5312
5398
|
readonly required: false;
|
|
5313
5399
|
readonly fields: readonly [];
|
|
5314
5400
|
};
|
|
5401
|
+
}, {
|
|
5402
|
+
readonly resource: "automation.workflows.vaults";
|
|
5403
|
+
readonly method: "list";
|
|
5404
|
+
readonly summary: "List workflow vault bindings";
|
|
5405
|
+
readonly description: "Inspect the whole vaults attached to a saved workflow, including archived definitions, without reading secret values. Obtain ns and name from automation.workflows.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.";
|
|
5406
|
+
readonly http: "GET";
|
|
5407
|
+
readonly path: "/automation/v1/workflows/{ns}/{name}/vaults";
|
|
5408
|
+
readonly streaming: "no";
|
|
5409
|
+
readonly pagination: false;
|
|
5410
|
+
readonly pathParams: readonly [{
|
|
5411
|
+
readonly name: "ns";
|
|
5412
|
+
readonly sdkName: "ns";
|
|
5413
|
+
readonly description: "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.";
|
|
5414
|
+
}, {
|
|
5415
|
+
readonly name: "name";
|
|
5416
|
+
readonly sdkName: "name";
|
|
5417
|
+
readonly description: "Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.";
|
|
5418
|
+
}];
|
|
5419
|
+
readonly query: readonly [];
|
|
5420
|
+
}, {
|
|
5421
|
+
readonly resource: "automation.workflows.vaults";
|
|
5422
|
+
readonly method: "delete";
|
|
5423
|
+
readonly summary: "Delete a workflow vault binding";
|
|
5424
|
+
readonly description: "Remove the vault assignment from this saved workflow without deleting the vault or its secrets. Obtain aliases from automation.workflows.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.";
|
|
5425
|
+
readonly http: "DELETE";
|
|
5426
|
+
readonly path: "/automation/v1/workflows/{ns}/{name}/vaults/{alias}";
|
|
5427
|
+
readonly streaming: "no";
|
|
5428
|
+
readonly pagination: false;
|
|
5429
|
+
readonly pathParams: readonly [{
|
|
5430
|
+
readonly name: "ns";
|
|
5431
|
+
readonly sdkName: "ns";
|
|
5432
|
+
readonly description: "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.";
|
|
5433
|
+
}, {
|
|
5434
|
+
readonly name: "name";
|
|
5435
|
+
readonly sdkName: "name";
|
|
5436
|
+
readonly description: "Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.";
|
|
5437
|
+
}, {
|
|
5438
|
+
readonly name: "alias";
|
|
5439
|
+
readonly sdkName: "alias";
|
|
5440
|
+
readonly description: "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter.";
|
|
5441
|
+
}];
|
|
5442
|
+
readonly query: readonly [];
|
|
5443
|
+
}, {
|
|
5444
|
+
readonly resource: "automation.workflows.vaults";
|
|
5445
|
+
readonly method: "set";
|
|
5446
|
+
readonly summary: "Set a workflow vault binding";
|
|
5447
|
+
readonly description: "Attach an entire active vault in your organization to a saved workflow, or replace the vault at an existing alias. Obtain the vault ID or display name from praxis.vault.vaults.list; ambiguous names require an ID. Bindings are independent of published versions and survive archival. The same vault cannot be assigned to two aliases on one definition. Repeating the same assignment is idempotent. Example body: {\"vault\":\"Production\"}.";
|
|
5448
|
+
readonly http: "PUT";
|
|
5449
|
+
readonly path: "/automation/v1/workflows/{ns}/{name}/vaults/{alias}";
|
|
5450
|
+
readonly streaming: "no";
|
|
5451
|
+
readonly pagination: false;
|
|
5452
|
+
readonly pathParams: readonly [{
|
|
5453
|
+
readonly name: "ns";
|
|
5454
|
+
readonly sdkName: "ns";
|
|
5455
|
+
readonly description: "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.";
|
|
5456
|
+
}, {
|
|
5457
|
+
readonly name: "name";
|
|
5458
|
+
readonly sdkName: "name";
|
|
5459
|
+
readonly description: "Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.";
|
|
5460
|
+
}, {
|
|
5461
|
+
readonly name: "alias";
|
|
5462
|
+
readonly sdkName: "alias";
|
|
5463
|
+
readonly description: "Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter.";
|
|
5464
|
+
}];
|
|
5465
|
+
readonly query: readonly [];
|
|
5466
|
+
readonly body: {
|
|
5467
|
+
readonly required: true;
|
|
5468
|
+
readonly fields: readonly [{
|
|
5469
|
+
readonly name: "vault";
|
|
5470
|
+
readonly type: "string";
|
|
5471
|
+
readonly required: true;
|
|
5472
|
+
readonly description: "Active vault ID or exact display name from praxis.vault.vaults.list in your organization. Use an ID if display names are duplicated.";
|
|
5473
|
+
}];
|
|
5474
|
+
};
|
|
5315
5475
|
}, {
|
|
5316
5476
|
readonly resource: "automation.workflows.versions";
|
|
5317
5477
|
readonly method: "list";
|
|
@@ -5927,6 +6087,11 @@ export declare const operations: readonly [{
|
|
|
5927
6087
|
readonly type: "string";
|
|
5928
6088
|
readonly required: false;
|
|
5929
6089
|
readonly description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.";
|
|
6090
|
+
}, {
|
|
6091
|
+
readonly name: "collection_id";
|
|
6092
|
+
readonly type: "string";
|
|
6093
|
+
readonly required: false;
|
|
6094
|
+
readonly description: "Filter to a collection id from collections.list, or the literal none for uncategorized canvases. Omit to list all canvases; keep the same filter when following next_cursor.";
|
|
5930
6095
|
}];
|
|
5931
6096
|
}, {
|
|
5932
6097
|
readonly resource: "canvas.canvases";
|
|
@@ -5978,6 +6143,35 @@ export declare const operations: readonly [{
|
|
|
5978
6143
|
readonly description: "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.";
|
|
5979
6144
|
}];
|
|
5980
6145
|
readonly query: readonly [];
|
|
6146
|
+
}, {
|
|
6147
|
+
readonly resource: "canvas.canvases";
|
|
6148
|
+
readonly method: "update";
|
|
6149
|
+
readonly summary: "Update canvas";
|
|
6150
|
+
readonly description: "Rename a canvas or move it to a collection without editing its design content. Use a canvas id from canvases.list and a collection id from collections.list. Send collection_id=null to make it uncategorized; omit either field to preserve its current value. A canvas belongs to at most one collection. The destination must belong to your organization. Renaming keeps the canvas version unchanged.";
|
|
6151
|
+
readonly http: "PATCH";
|
|
6152
|
+
readonly path: "/canvas/v1/canvases/{canvas_id}";
|
|
6153
|
+
readonly streaming: "no";
|
|
6154
|
+
readonly pagination: false;
|
|
6155
|
+
readonly pathParams: readonly [{
|
|
6156
|
+
readonly name: "canvas_id";
|
|
6157
|
+
readonly sdkName: "canvas_id";
|
|
6158
|
+
readonly description: "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.";
|
|
6159
|
+
}];
|
|
6160
|
+
readonly query: readonly [];
|
|
6161
|
+
readonly body: {
|
|
6162
|
+
readonly required: true;
|
|
6163
|
+
readonly fields: readonly [{
|
|
6164
|
+
readonly name: "name";
|
|
6165
|
+
readonly type: "string";
|
|
6166
|
+
readonly required: false;
|
|
6167
|
+
readonly description: "New canvas display name; surrounding whitespace is trimmed, blank names use Untitled, and omission preserves the current name.";
|
|
6168
|
+
}, {
|
|
6169
|
+
readonly name: "collection_id";
|
|
6170
|
+
readonly type: "string";
|
|
6171
|
+
readonly required: false;
|
|
6172
|
+
readonly description: "Move to this collection id from collections.list; null removes the canvas from its collection. Omission preserves the current assignment.";
|
|
6173
|
+
}];
|
|
6174
|
+
};
|
|
5981
6175
|
}, {
|
|
5982
6176
|
readonly resource: "canvas.canvases.images";
|
|
5983
6177
|
readonly method: "list";
|
|
@@ -5993,6 +6187,11 @@ export declare const operations: readonly [{
|
|
|
5993
6187
|
readonly description: "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.";
|
|
5994
6188
|
}];
|
|
5995
6189
|
readonly query: readonly [{
|
|
6190
|
+
readonly name: "version";
|
|
6191
|
+
readonly type: "string";
|
|
6192
|
+
readonly required: false;
|
|
6193
|
+
readonly 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.";
|
|
6194
|
+
}, {
|
|
5996
6195
|
readonly name: "ids";
|
|
5997
6196
|
readonly type: "string";
|
|
5998
6197
|
readonly required: true;
|
|
@@ -6024,6 +6223,11 @@ export declare const operations: readonly [{
|
|
|
6024
6223
|
readonly description: "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.";
|
|
6025
6224
|
}];
|
|
6026
6225
|
readonly query: readonly [{
|
|
6226
|
+
readonly name: "version";
|
|
6227
|
+
readonly type: "string";
|
|
6228
|
+
readonly required: false;
|
|
6229
|
+
readonly 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.";
|
|
6230
|
+
}, {
|
|
6027
6231
|
readonly name: "ids";
|
|
6028
6232
|
readonly type: "string";
|
|
6029
6233
|
readonly required: true;
|
|
@@ -6034,11 +6238,36 @@ export declare const operations: readonly [{
|
|
|
6034
6238
|
readonly required: false;
|
|
6035
6239
|
readonly description: "Maximum child depth below each requested node, as an integer at least 0; 0 returns the node without descendants, and omission returns the complete subtree.";
|
|
6036
6240
|
}];
|
|
6241
|
+
}, {
|
|
6242
|
+
readonly resource: "canvas.canvases.versions";
|
|
6243
|
+
readonly method: "list";
|
|
6244
|
+
readonly summary: "List canvas versions";
|
|
6245
|
+
readonly 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.";
|
|
6246
|
+
readonly http: "GET";
|
|
6247
|
+
readonly path: "/canvas/v1/canvases/{canvas_id}/versions";
|
|
6248
|
+
readonly streaming: "no";
|
|
6249
|
+
readonly pagination: false;
|
|
6250
|
+
readonly pathParams: readonly [{
|
|
6251
|
+
readonly name: "canvas_id";
|
|
6252
|
+
readonly sdkName: "canvas_id";
|
|
6253
|
+
readonly description: "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.";
|
|
6254
|
+
}];
|
|
6255
|
+
readonly query: readonly [{
|
|
6256
|
+
readonly name: "limit";
|
|
6257
|
+
readonly type: "integer";
|
|
6258
|
+
readonly required: false;
|
|
6259
|
+
readonly description: "Maximum commits to return, from 1 to 100 inclusive; omission uses 30.";
|
|
6260
|
+
}, {
|
|
6261
|
+
readonly name: "cursor";
|
|
6262
|
+
readonly type: "string";
|
|
6263
|
+
readonly required: false;
|
|
6264
|
+
readonly description: "Copy next_cursor from the preceding page to continue toward older commits; omit for the first page.";
|
|
6265
|
+
}];
|
|
6037
6266
|
}, {
|
|
6038
6267
|
readonly resource: "canvas.canvases";
|
|
6039
6268
|
readonly method: "execute";
|
|
6040
6269
|
readonly summary: "Execute canvas script";
|
|
6041
|
-
readonly description: "Draw or edit a canvas atomically with a synchronous Pencil execute script. First create a canvas with praxis.canvas.canvases.create and use its id as canvas_id; inspect an existing canvas with retrieve before modifying it. Send exactly one of script (new source) or edit_id (a failed script to patch using edits). Unlike Figma REST, :execute writes design content; nodes use Pencil .pen schema 2.21 (frame/group/rectangle/ellipse/polygon/path/text/icon/ref/note), not Figma node fields.\n\nThe root variable is document. Synchronous functions are Insert / Copy / Update / Replace / Move / Delete / SetVariables / Get / GetVariables / FindEmptySpace / Print / TakeScreenshot; globals persist for the next call. A first frame needs only this body.script:\n\n```js\nconst f = Insert(document, { type: \"frame\", name: \"Hero\", width: 1200, layout: \"vertical\", padding: 48, fill: \"#FFFFFF\" }); Insert(f, { type: \"text\", content: \"Hello\", fontSize: 32, fill: \"#111111\" }); Print(f)\n```\n\nUse viewer_url to watch the result in Console. TakeScreenshot records node ids in screenshots; call images.list with those ids to fetch PNG data URLs. See the [Canvas execute reference](https://deepraxis.com/en/docs/api/native/canvas/execute) for request fields and results, and the [Canvas node reference](https://deepraxis.com/en/docs/developers/canvas/nodes) for node content.\n\nA successful write increments version by one. Optionally set expected_version to the version from retrieve or nodes.list; on 409 REVISION_CONFLICT read again, merge your intent and retry with the current version. Every script failure rolls back all writes. On 400 SCRIPT_ERROR, SCRIPT_LIMIT or OPS_REJECTED, use error.details.edit_id plus edits to repair and rerun the stored source without resending the entire script; details may include line, column and rejection. On 400 EDIT_EXPIRED the saved script is older than ten minutes: submit a corrected new script. On 429 CANVAS_BUSY, more than four calls are queued for this canvas: wait for pending calls before retrying.\n";
|
|
6270
|
+
readonly description: "Draw or edit a canvas atomically with a synchronous Pencil execute script. First create a canvas with praxis.canvas.canvases.create and use its id as canvas_id; inspect an existing canvas with retrieve before modifying it. Send exactly one of script (new source) or edit_id (a failed script to patch using edits). Unlike Figma REST, :execute writes design content; nodes use Pencil .pen schema 2.21 (frame/group/rectangle/ellipse/polygon/path/text/icon/ref/note), not Figma node fields.\n\nThe root variable is document. Synchronous functions are Insert / Copy / Update / Replace / Move / Delete / SetVariables / Get / GetVariables / FindEmptySpace / Print / TakeScreenshot; globals persist for the next call. A first frame needs only this body.script:\n\n```js\nconst f = Insert(document, { type: \"frame\", name: \"Hero\", width: 1200, layout: \"vertical\", padding: 48, fill: \"#FFFFFF\" }); Insert(f, { type: \"text\", content: \"Hello\", fontSize: 32, fill: \"#111111\" }); Print(f)\n```\n\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";
|
|
6042
6271
|
readonly http: "POST";
|
|
6043
6272
|
readonly path: "/canvas/v1/canvases/{canvas_id}:execute";
|
|
6044
6273
|
readonly streaming: "no";
|
|
@@ -6075,44 +6304,52 @@ export declare const operations: readonly [{
|
|
|
6075
6304
|
}];
|
|
6076
6305
|
};
|
|
6077
6306
|
}, {
|
|
6078
|
-
readonly resource: "
|
|
6307
|
+
readonly resource: "canvas.canvases";
|
|
6308
|
+
readonly method: "restore";
|
|
6309
|
+
readonly summary: "Restore canvas version";
|
|
6310
|
+
readonly 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.";
|
|
6311
|
+
readonly http: "POST";
|
|
6312
|
+
readonly path: "/canvas/v1/canvases/{canvas_id}:restore";
|
|
6313
|
+
readonly streaming: "no";
|
|
6314
|
+
readonly pagination: false;
|
|
6315
|
+
readonly pathParams: readonly [{
|
|
6316
|
+
readonly name: "canvas_id";
|
|
6317
|
+
readonly sdkName: "canvas_id";
|
|
6318
|
+
readonly description: "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.";
|
|
6319
|
+
}];
|
|
6320
|
+
readonly query: readonly [];
|
|
6321
|
+
readonly body: {
|
|
6322
|
+
readonly required: true;
|
|
6323
|
+
readonly fields: readonly [{
|
|
6324
|
+
readonly name: "version";
|
|
6325
|
+
readonly type: "string";
|
|
6326
|
+
readonly required: true;
|
|
6327
|
+
readonly description: "Historical target from versions.list or earliest_restorable_version; restoring the current version creates no new commit.";
|
|
6328
|
+
}, {
|
|
6329
|
+
readonly name: "expected_version";
|
|
6330
|
+
readonly type: "string";
|
|
6331
|
+
readonly required: false;
|
|
6332
|
+
readonly description: "Current version from retrieve or nodes.list to guard against concurrent edits; omission applies the restore to whichever version is current.";
|
|
6333
|
+
}];
|
|
6334
|
+
};
|
|
6335
|
+
}, {
|
|
6336
|
+
readonly resource: "canvas.collections";
|
|
6079
6337
|
readonly method: "list";
|
|
6080
|
-
readonly summary: "List
|
|
6081
|
-
readonly description: "Find
|
|
6338
|
+
readonly summary: "List collections";
|
|
6339
|
+
readonly description: "Find collections and ids for filtering or moving canvases. All organization collections are returned in name order in one response; next_cursor is always null. canvas_count excludes deleted canvases. total_count counts all live canvases, rather than collections, and uncategorized_count counts live canvases without a collection. Use canvases.list with collection_id to read a collection or none to read uncategorized canvases.";
|
|
6082
6340
|
readonly http: "GET";
|
|
6083
|
-
readonly path: "/
|
|
6341
|
+
readonly path: "/canvas/v1/collections";
|
|
6084
6342
|
readonly streaming: "no";
|
|
6085
|
-
readonly pagination:
|
|
6343
|
+
readonly pagination: false;
|
|
6086
6344
|
readonly pathParams: readonly [];
|
|
6087
|
-
readonly query: readonly [
|
|
6088
|
-
readonly name: "cursor";
|
|
6089
|
-
readonly type: "string";
|
|
6090
|
-
readonly required: false;
|
|
6091
|
-
readonly description: "Opaque next_cursor from the previous page.";
|
|
6092
|
-
}, {
|
|
6093
|
-
readonly name: "limit";
|
|
6094
|
-
readonly type: "integer";
|
|
6095
|
-
readonly required: false;
|
|
6096
|
-
readonly description: "Page size.";
|
|
6097
|
-
}, {
|
|
6098
|
-
readonly name: "labels";
|
|
6099
|
-
readonly type: "object";
|
|
6100
|
-
readonly required: false;
|
|
6101
|
-
readonly description: "Exact label match, encoded as labels[purpose]=docs.";
|
|
6102
|
-
}, {
|
|
6103
|
-
readonly name: "status";
|
|
6104
|
-
readonly type: "string";
|
|
6105
|
-
readonly enum: readonly ["active", "deleting"];
|
|
6106
|
-
readonly required: false;
|
|
6107
|
-
readonly description: "Filter by lifecycle state. active (the default when omitted) lists usable databases; deleting lists databases that were deleted and are still inside the seven-day restore window. Any other value returns 400 INVALID_PARAMS.";
|
|
6108
|
-
}];
|
|
6345
|
+
readonly query: readonly [];
|
|
6109
6346
|
}, {
|
|
6110
|
-
readonly resource: "
|
|
6347
|
+
readonly resource: "canvas.collections";
|
|
6111
6348
|
readonly method: "create";
|
|
6112
|
-
readonly summary: "Create
|
|
6113
|
-
readonly description: "
|
|
6349
|
+
readonly summary: "Create collection";
|
|
6350
|
+
readonly description: "Organize canvases by creating a one-level collection in your organization. Send a name of 1–100 characters after trimming; duplicate names are allowed. Each call creates a new collection, initially containing no canvases. Use canvases.update with its id as collection_id to move existing canvases into it. Collections cannot be nested and an organization can have at most 200.";
|
|
6114
6351
|
readonly http: "POST";
|
|
6115
|
-
readonly path: "/
|
|
6352
|
+
readonly path: "/canvas/v1/collections";
|
|
6116
6353
|
readonly streaming: "no";
|
|
6117
6354
|
readonly pagination: false;
|
|
6118
6355
|
readonly pathParams: readonly [];
|
|
@@ -6123,57 +6360,52 @@ export declare const operations: readonly [{
|
|
|
6123
6360
|
readonly name: "name";
|
|
6124
6361
|
readonly type: "string";
|
|
6125
6362
|
readonly required: true;
|
|
6126
|
-
readonly description: "
|
|
6127
|
-
}, {
|
|
6128
|
-
readonly name: "labels";
|
|
6129
|
-
readonly type: "object";
|
|
6130
|
-
readonly required: false;
|
|
6131
|
-
readonly description: "Optional string tags to attach, at most 64. Each key starts with a lowercase letter and may use up to 63 characters of a-z 0-9 _ -; each value is up to 63 characters of a-z 0-9 _ -. List calls filter on exact key and value pairs.";
|
|
6363
|
+
readonly description: "Collection display name, 1–100 characters after trimming surrounding whitespace; duplicate names within the organization are allowed.";
|
|
6132
6364
|
}];
|
|
6133
6365
|
};
|
|
6134
6366
|
}, {
|
|
6135
|
-
readonly resource: "
|
|
6367
|
+
readonly resource: "canvas.collections";
|
|
6136
6368
|
readonly method: "delete";
|
|
6137
|
-
readonly summary: "Delete
|
|
6138
|
-
readonly description: "
|
|
6369
|
+
readonly summary: "Delete collection";
|
|
6370
|
+
readonly description: "Remove a collection using an id from collections.list. All its canvases are preserved and become uncategorized, with collection_id set to null; read them using canvases.list with collection_id=none. The removed collection cannot be retrieved again, and repeating deletion returns COLLECTION_NOT_FOUND.";
|
|
6139
6371
|
readonly http: "DELETE";
|
|
6140
|
-
readonly path: "/
|
|
6372
|
+
readonly path: "/canvas/v1/collections/{collection_id}";
|
|
6141
6373
|
readonly streaming: "no";
|
|
6142
6374
|
readonly pagination: false;
|
|
6143
6375
|
readonly pathParams: readonly [{
|
|
6144
|
-
readonly name: "
|
|
6145
|
-
readonly sdkName: "
|
|
6146
|
-
readonly description: "
|
|
6376
|
+
readonly name: "collection_id";
|
|
6377
|
+
readonly sdkName: "collection_id";
|
|
6378
|
+
readonly description: "Collection id from collections.create or collections.list, in the form col_ followed by 16 lowercase letters or digits; a display name is not an identifier.";
|
|
6147
6379
|
}];
|
|
6148
6380
|
readonly query: readonly [];
|
|
6149
6381
|
}, {
|
|
6150
|
-
readonly resource: "
|
|
6382
|
+
readonly resource: "canvas.collections";
|
|
6151
6383
|
readonly method: "retrieve";
|
|
6152
|
-
readonly summary: "
|
|
6153
|
-
readonly description: "
|
|
6384
|
+
readonly summary: "Retrieve collection";
|
|
6385
|
+
readonly description: "Inspect one collection and its current live canvas count using an id from collections.list or collections.create. The collection must belong to the API key organization. To read its canvases, pass the same id as collection_id to canvases.list; this response contains collection metadata only.";
|
|
6154
6386
|
readonly http: "GET";
|
|
6155
|
-
readonly path: "/
|
|
6387
|
+
readonly path: "/canvas/v1/collections/{collection_id}";
|
|
6156
6388
|
readonly streaming: "no";
|
|
6157
6389
|
readonly pagination: false;
|
|
6158
6390
|
readonly pathParams: readonly [{
|
|
6159
|
-
readonly name: "
|
|
6160
|
-
readonly sdkName: "
|
|
6161
|
-
readonly description: "
|
|
6391
|
+
readonly name: "collection_id";
|
|
6392
|
+
readonly sdkName: "collection_id";
|
|
6393
|
+
readonly description: "Collection id from collections.create or collections.list, in the form col_ followed by 16 lowercase letters or digits; a display name is not an identifier.";
|
|
6162
6394
|
}];
|
|
6163
6395
|
readonly query: readonly [];
|
|
6164
6396
|
}, {
|
|
6165
|
-
readonly resource: "
|
|
6397
|
+
readonly resource: "canvas.collections";
|
|
6166
6398
|
readonly method: "update";
|
|
6167
|
-
readonly summary: "
|
|
6168
|
-
readonly description: "
|
|
6399
|
+
readonly summary: "Rename collection";
|
|
6400
|
+
readonly description: "Change the display name of a collection from collections.list without changing its id or canvas assignments. Names contain 1–100 characters after trimming and may match another collection name. This operation does not move canvases; use canvases.update with collection_id for that.";
|
|
6169
6401
|
readonly http: "PATCH";
|
|
6170
|
-
readonly path: "/
|
|
6402
|
+
readonly path: "/canvas/v1/collections/{collection_id}";
|
|
6171
6403
|
readonly streaming: "no";
|
|
6172
6404
|
readonly pagination: false;
|
|
6173
6405
|
readonly pathParams: readonly [{
|
|
6174
|
-
readonly name: "
|
|
6175
|
-
readonly sdkName: "
|
|
6176
|
-
readonly description: "
|
|
6406
|
+
readonly name: "collection_id";
|
|
6407
|
+
readonly sdkName: "collection_id";
|
|
6408
|
+
readonly description: "Collection id from collections.create or collections.list, in the form col_ followed by 16 lowercase letters or digits; a display name is not an identifier.";
|
|
6177
6409
|
}];
|
|
6178
6410
|
readonly query: readonly [];
|
|
6179
6411
|
readonly body: {
|
|
@@ -6181,22 +6413,704 @@ export declare const operations: readonly [{
|
|
|
6181
6413
|
readonly fields: readonly [{
|
|
6182
6414
|
readonly name: "name";
|
|
6183
6415
|
readonly type: "string";
|
|
6184
|
-
readonly required:
|
|
6185
|
-
readonly description: "
|
|
6186
|
-
}, {
|
|
6187
|
-
readonly name: "labels";
|
|
6188
|
-
readonly type: "object";
|
|
6189
|
-
readonly required: false;
|
|
6190
|
-
readonly description: "Complete replacement label set, not a merge: labels not listed here are removed. Same limits as at creation (at most 64; keys a-z 0-9 _ - starting with a letter; values up to 63 characters of a-z 0-9 _ -). Omit it to keep the current labels.";
|
|
6416
|
+
readonly required: true;
|
|
6417
|
+
readonly description: "Collection display name, 1–100 characters after trimming surrounding whitespace; duplicate names within the organization are allowed.";
|
|
6191
6418
|
}];
|
|
6192
6419
|
};
|
|
6193
6420
|
}, {
|
|
6194
|
-
readonly resource: "
|
|
6195
|
-
readonly method: "
|
|
6196
|
-
readonly summary: "
|
|
6197
|
-
readonly description: "
|
|
6421
|
+
readonly resource: "cut.exports";
|
|
6422
|
+
readonly method: "retrieve";
|
|
6423
|
+
readonly summary: "Retrieve video export";
|
|
6424
|
+
readonly description: "Poll an export id returned by projects.exports.create or list to observe render progress. queued, fetching, rendering, stitching and saving are in progress; done provides asset in the target library, failed provides error, and canceled means the job stopped. Only done confirms a usable output asset.";
|
|
6198
6425
|
readonly http: "GET";
|
|
6199
|
-
readonly path: "/
|
|
6426
|
+
readonly path: "/cut/v1/exports/{export_id}";
|
|
6427
|
+
readonly streaming: "no";
|
|
6428
|
+
readonly pagination: false;
|
|
6429
|
+
readonly pathParams: readonly [{
|
|
6430
|
+
readonly name: "export_id";
|
|
6431
|
+
readonly sdkName: "export_id";
|
|
6432
|
+
readonly description: "Export identifier returned by its create or list operation; use the id, not a display name.";
|
|
6433
|
+
}];
|
|
6434
|
+
readonly query: readonly [];
|
|
6435
|
+
}, {
|
|
6436
|
+
readonly resource: "cut.exports";
|
|
6437
|
+
readonly method: "cancel";
|
|
6438
|
+
readonly summary: "Cancel video export";
|
|
6439
|
+
readonly description: "Request cancellation of an export obtained from projects.exports.create or list when its output is no longer needed. Read the returned job status and retrieve it to confirm the terminal outcome; do not interpret a cancellation request as successful rendering.";
|
|
6440
|
+
readonly http: "POST";
|
|
6441
|
+
readonly path: "/cut/v1/exports/{export_id}:cancel";
|
|
6442
|
+
readonly streaming: "no";
|
|
6443
|
+
readonly pagination: false;
|
|
6444
|
+
readonly pathParams: readonly [{
|
|
6445
|
+
readonly name: "export_id";
|
|
6446
|
+
readonly sdkName: "export_id";
|
|
6447
|
+
readonly description: "Export identifier returned by its create or list operation; use the id, not a display name.";
|
|
6448
|
+
}];
|
|
6449
|
+
readonly query: readonly [];
|
|
6450
|
+
}, {
|
|
6451
|
+
readonly resource: "cut.projects";
|
|
6452
|
+
readonly method: "list";
|
|
6453
|
+
readonly summary: "List projects";
|
|
6454
|
+
readonly description: "Discover projects owned by the API key organization and obtain project_id values. Results default to active projects ordered by updateTime descending; use filter state = \"deleted\" to find retained deleted projects for undelete. Continue with next_page_token as page_token until the token is absent.";
|
|
6455
|
+
readonly http: "GET";
|
|
6456
|
+
readonly path: "/cut/v1/projects";
|
|
6457
|
+
readonly streaming: "no";
|
|
6458
|
+
readonly pagination: false;
|
|
6459
|
+
readonly pathParams: readonly [];
|
|
6460
|
+
readonly query: readonly [{
|
|
6461
|
+
readonly name: "page_size";
|
|
6462
|
+
readonly type: "integer";
|
|
6463
|
+
readonly required: false;
|
|
6464
|
+
readonly description: "Maximum resources in one page, from 1 to 100; defaults to 50.";
|
|
6465
|
+
}, {
|
|
6466
|
+
readonly name: "page_token";
|
|
6467
|
+
readonly type: "string";
|
|
6468
|
+
readonly required: false;
|
|
6469
|
+
readonly description: "Opaque next_page_token from the preceding page; omit on the first request.";
|
|
6470
|
+
}, {
|
|
6471
|
+
readonly name: "filter";
|
|
6472
|
+
readonly type: "string";
|
|
6473
|
+
readonly required: false;
|
|
6474
|
+
readonly description: "Optional resource filter; projects supports state = \"active\" or state = \"deleted\".";
|
|
6475
|
+
}, {
|
|
6476
|
+
readonly name: "order_by";
|
|
6477
|
+
readonly type: "string";
|
|
6478
|
+
readonly required: false;
|
|
6479
|
+
readonly description: "Optional ordering expression; projects supports updateTime desc.";
|
|
6480
|
+
}];
|
|
6481
|
+
}, {
|
|
6482
|
+
readonly resource: "cut.projects";
|
|
6483
|
+
readonly method: "create";
|
|
6484
|
+
readonly summary: "Create project";
|
|
6485
|
+
readonly description: "Create a blank editing project in the API key organization before writing a script. First obtain accessible library ids from praxis.media; bindings must include exactly one read_write library with default_upload true. Each call creates a new project and returns HTTP 201; save its id for execute, state and timeline calls. All editing positions use seconds.";
|
|
6486
|
+
readonly http: "POST";
|
|
6487
|
+
readonly path: "/cut/v1/projects";
|
|
6488
|
+
readonly streaming: "no";
|
|
6489
|
+
readonly pagination: false;
|
|
6490
|
+
readonly pathParams: readonly [];
|
|
6491
|
+
readonly query: readonly [];
|
|
6492
|
+
readonly body: {
|
|
6493
|
+
readonly required: true;
|
|
6494
|
+
readonly fields: readonly [{
|
|
6495
|
+
readonly name: "name";
|
|
6496
|
+
readonly type: "string";
|
|
6497
|
+
readonly required: true;
|
|
6498
|
+
readonly description: "Human-readable project name; required and must contain non-whitespace text.";
|
|
6499
|
+
}, {
|
|
6500
|
+
readonly name: "labels";
|
|
6501
|
+
readonly type: "object";
|
|
6502
|
+
readonly required: false;
|
|
6503
|
+
readonly description: "User-defined string labels for organizing projects; label keys retain their original spelling.";
|
|
6504
|
+
}, {
|
|
6505
|
+
readonly name: "settings";
|
|
6506
|
+
readonly type: "object";
|
|
6507
|
+
readonly required: true;
|
|
6508
|
+
readonly description: "Dimensions and frame rate for a new editing project.";
|
|
6509
|
+
}, {
|
|
6510
|
+
readonly name: "bindings";
|
|
6511
|
+
readonly type: "array";
|
|
6512
|
+
readonly itemType: "object";
|
|
6513
|
+
readonly required: true;
|
|
6514
|
+
readonly description: "Accessible library bindings; exactly one read_write entry must have default_upload true.";
|
|
6515
|
+
}];
|
|
6516
|
+
};
|
|
6517
|
+
}, {
|
|
6518
|
+
readonly resource: "cut.projects";
|
|
6519
|
+
readonly method: "delete";
|
|
6520
|
+
readonly summary: "Delete project";
|
|
6521
|
+
readonly description: "Soft-delete a project selected from projects.list. The project is retained for seven days until purge_time and can be restored with undelete before that deadline. Deleted projects cannot be edited; list with filter state = \"deleted\" to locate retained projects.";
|
|
6522
|
+
readonly http: "DELETE";
|
|
6523
|
+
readonly path: "/cut/v1/projects/{project_id}";
|
|
6524
|
+
readonly streaming: "no";
|
|
6525
|
+
readonly pagination: false;
|
|
6526
|
+
readonly pathParams: readonly [{
|
|
6527
|
+
readonly name: "project_id";
|
|
6528
|
+
readonly sdkName: "project_id";
|
|
6529
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6530
|
+
}];
|
|
6531
|
+
readonly query: readonly [];
|
|
6532
|
+
}, {
|
|
6533
|
+
readonly resource: "cut.projects";
|
|
6534
|
+
readonly method: "retrieve";
|
|
6535
|
+
readonly summary: "Retrieve project";
|
|
6536
|
+
readonly description: "Inspect project metadata, settings and library bindings before editing. Copy id from projects.create or list; expand=timeline,exports,versions includes selected related resources. The expanded timeline uses seconds and the returned revision can guard a later execute call with expected_revision.";
|
|
6537
|
+
readonly http: "GET";
|
|
6538
|
+
readonly path: "/cut/v1/projects/{project_id}";
|
|
6539
|
+
readonly streaming: "no";
|
|
6540
|
+
readonly pagination: false;
|
|
6541
|
+
readonly pathParams: readonly [{
|
|
6542
|
+
readonly name: "project_id";
|
|
6543
|
+
readonly sdkName: "project_id";
|
|
6544
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6545
|
+
}];
|
|
6546
|
+
readonly query: readonly [{
|
|
6547
|
+
readonly name: "expand";
|
|
6548
|
+
readonly type: "string";
|
|
6549
|
+
readonly required: false;
|
|
6550
|
+
readonly description: "Comma-separated expansions: timeline includes clips, exports includes render jobs, versions includes saved snapshots.";
|
|
6551
|
+
}];
|
|
6552
|
+
}, {
|
|
6553
|
+
readonly resource: "cut.projects";
|
|
6554
|
+
readonly method: "update";
|
|
6555
|
+
readonly summary: "Update project metadata";
|
|
6556
|
+
readonly description: "Change the project display name or replace its labels by naming those fields in update_mask. Use execute for clip or track edits. Each successful update commits a new revision; labels are replaced as a whole when selected, so read and merge existing labels before overwriting them.";
|
|
6557
|
+
readonly http: "PATCH";
|
|
6558
|
+
readonly path: "/cut/v1/projects/{project_id}";
|
|
6559
|
+
readonly streaming: "no";
|
|
6560
|
+
readonly pagination: false;
|
|
6561
|
+
readonly pathParams: readonly [{
|
|
6562
|
+
readonly name: "project_id";
|
|
6563
|
+
readonly sdkName: "project_id";
|
|
6564
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6565
|
+
}];
|
|
6566
|
+
readonly query: readonly [];
|
|
6567
|
+
readonly body: {
|
|
6568
|
+
readonly required: true;
|
|
6569
|
+
readonly fields: readonly [{
|
|
6570
|
+
readonly name: "name";
|
|
6571
|
+
readonly type: "string";
|
|
6572
|
+
readonly required: false;
|
|
6573
|
+
readonly description: "Replacement display name when update_mask includes name.";
|
|
6574
|
+
}, {
|
|
6575
|
+
readonly name: "labels";
|
|
6576
|
+
readonly type: "object";
|
|
6577
|
+
readonly required: false;
|
|
6578
|
+
readonly description: "User-defined string labels for organizing projects; label keys retain their original spelling.";
|
|
6579
|
+
}, {
|
|
6580
|
+
readonly name: "update_mask";
|
|
6581
|
+
readonly type: "array";
|
|
6582
|
+
readonly itemType: "string";
|
|
6583
|
+
readonly enum: readonly ["name", "labels"];
|
|
6584
|
+
readonly required: true;
|
|
6585
|
+
readonly description: "Metadata fields to replace; name changes the display name and labels replaces all labels.";
|
|
6586
|
+
}];
|
|
6587
|
+
};
|
|
6588
|
+
}, {
|
|
6589
|
+
readonly resource: "cut.projects.analysis";
|
|
6590
|
+
readonly method: "create";
|
|
6591
|
+
readonly summary: "Analyze project media";
|
|
6592
|
+
readonly description: "Request silence, filler-word or scene analysis for selected bound assets before editing. Omit media to select project sources; ranges returned in segments use source seconds. A pending result is not completion: use retry_after_sec before checking again, and inspect failed or unsupported asset results before deciding which edits are possible.";
|
|
6593
|
+
readonly http: "POST";
|
|
6594
|
+
readonly path: "/cut/v1/projects/{project_id}/analysis";
|
|
6595
|
+
readonly streaming: "no";
|
|
6596
|
+
readonly pagination: false;
|
|
6597
|
+
readonly pathParams: readonly [{
|
|
6598
|
+
readonly name: "project_id";
|
|
6599
|
+
readonly sdkName: "project_id";
|
|
6600
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6601
|
+
}];
|
|
6602
|
+
readonly query: readonly [];
|
|
6603
|
+
readonly body: {
|
|
6604
|
+
readonly required: true;
|
|
6605
|
+
readonly fields: readonly [{
|
|
6606
|
+
readonly name: "media";
|
|
6607
|
+
readonly type: "array";
|
|
6608
|
+
readonly itemType: "object";
|
|
6609
|
+
readonly required: false;
|
|
6610
|
+
readonly description: "Bound-library assets to analyze; omission selects project media.";
|
|
6611
|
+
}, {
|
|
6612
|
+
readonly name: "kinds";
|
|
6613
|
+
readonly type: "array";
|
|
6614
|
+
readonly itemType: "string";
|
|
6615
|
+
readonly enum: readonly ["silence", "filler", "scenes"];
|
|
6616
|
+
readonly required: true;
|
|
6617
|
+
readonly description: "Analysis types to request for the selected source assets.";
|
|
6618
|
+
}];
|
|
6619
|
+
};
|
|
6620
|
+
}, {
|
|
6621
|
+
readonly resource: "cut.projects.bindings";
|
|
6622
|
+
readonly method: "list";
|
|
6623
|
+
readonly summary: "List library bindings";
|
|
6624
|
+
readonly description: "Discover the named media libraries available to this project before selecting source assets or an import/export destination. read bindings supply source assets; read_write bindings also accept uploads. Exactly one writable binding supplies the default upload destination.";
|
|
6625
|
+
readonly http: "GET";
|
|
6626
|
+
readonly path: "/cut/v1/projects/{project_id}/bindings";
|
|
6627
|
+
readonly streaming: "no";
|
|
6628
|
+
readonly pagination: false;
|
|
6629
|
+
readonly pathParams: readonly [{
|
|
6630
|
+
readonly name: "project_id";
|
|
6631
|
+
readonly sdkName: "project_id";
|
|
6632
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6633
|
+
}];
|
|
6634
|
+
readonly query: readonly [];
|
|
6635
|
+
}, {
|
|
6636
|
+
readonly resource: "cut.projects.bindings";
|
|
6637
|
+
readonly method: "create";
|
|
6638
|
+
readonly summary: "Bind media library";
|
|
6639
|
+
readonly description: "Attach an accessible media library to an existing project under a unique name. Obtain library_id from praxis.media and choose read for source-only access or read_write for imports and exports. The project must retain exactly one read_write binding with default_upload true after the change.";
|
|
6640
|
+
readonly http: "POST";
|
|
6641
|
+
readonly path: "/cut/v1/projects/{project_id}/bindings";
|
|
6642
|
+
readonly streaming: "no";
|
|
6643
|
+
readonly pagination: false;
|
|
6644
|
+
readonly pathParams: readonly [{
|
|
6645
|
+
readonly name: "project_id";
|
|
6646
|
+
readonly sdkName: "project_id";
|
|
6647
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6648
|
+
}];
|
|
6649
|
+
readonly query: readonly [];
|
|
6650
|
+
readonly body: {
|
|
6651
|
+
readonly required: true;
|
|
6652
|
+
readonly fields: readonly [{
|
|
6653
|
+
readonly name: "binding";
|
|
6654
|
+
readonly type: "object";
|
|
6655
|
+
readonly required: true;
|
|
6656
|
+
readonly description: "A named project link to a media library. Exactly one read_write binding must be default_upload.";
|
|
6657
|
+
}];
|
|
6658
|
+
};
|
|
6659
|
+
}, {
|
|
6660
|
+
readonly resource: "cut.projects.bindings";
|
|
6661
|
+
readonly method: "delete";
|
|
6662
|
+
readonly summary: "Remove library binding";
|
|
6663
|
+
readonly description: "Detach a library alias obtained from bindings.list after removing all timeline clips that reference its library. BINDING_IN_USE returns 409 while references remain; inspect timeline and edit those clips first. Removal must preserve the one writable default upload binding.";
|
|
6664
|
+
readonly http: "DELETE";
|
|
6665
|
+
readonly path: "/cut/v1/projects/{project_id}/bindings/{name}";
|
|
6666
|
+
readonly streaming: "no";
|
|
6667
|
+
readonly pagination: false;
|
|
6668
|
+
readonly pathParams: readonly [{
|
|
6669
|
+
readonly name: "project_id";
|
|
6670
|
+
readonly sdkName: "project_id";
|
|
6671
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6672
|
+
}, {
|
|
6673
|
+
readonly name: "name";
|
|
6674
|
+
readonly sdkName: "name";
|
|
6675
|
+
readonly description: "Project-local binding alias from bindings.list; detach only after removing all clips that reference its library.";
|
|
6676
|
+
}];
|
|
6677
|
+
readonly query: readonly [];
|
|
6678
|
+
}, {
|
|
6679
|
+
readonly resource: "cut.projects.exports";
|
|
6680
|
+
readonly method: "list";
|
|
6681
|
+
readonly summary: "List project exports";
|
|
6682
|
+
readonly description: "Find export jobs associated with this project before polling or canceling a render. Copy an export id into praxis.cut.exports.retrieve or cancel. Continue with next_page_token as page_token when present; queued or in-progress jobs have not produced a final media asset.";
|
|
6683
|
+
readonly http: "GET";
|
|
6684
|
+
readonly path: "/cut/v1/projects/{project_id}/exports";
|
|
6685
|
+
readonly streaming: "no";
|
|
6686
|
+
readonly pagination: false;
|
|
6687
|
+
readonly pathParams: readonly [{
|
|
6688
|
+
readonly name: "project_id";
|
|
6689
|
+
readonly sdkName: "project_id";
|
|
6690
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6691
|
+
}];
|
|
6692
|
+
readonly query: readonly [{
|
|
6693
|
+
readonly name: "page_size";
|
|
6694
|
+
readonly type: "integer";
|
|
6695
|
+
readonly required: false;
|
|
6696
|
+
readonly description: "Maximum resources in one page, from 1 to 100; defaults to 50.";
|
|
6697
|
+
}, {
|
|
6698
|
+
readonly name: "page_token";
|
|
6699
|
+
readonly type: "string";
|
|
6700
|
+
readonly required: false;
|
|
6701
|
+
readonly description: "Opaque next_page_token from the preceding page; omit on the first request.";
|
|
6702
|
+
}, {
|
|
6703
|
+
readonly name: "filter";
|
|
6704
|
+
readonly type: "string";
|
|
6705
|
+
readonly required: false;
|
|
6706
|
+
readonly description: "Optional resource filter; projects supports state = \"active\" or state = \"deleted\".";
|
|
6707
|
+
}, {
|
|
6708
|
+
readonly name: "order_by";
|
|
6709
|
+
readonly type: "string";
|
|
6710
|
+
readonly required: false;
|
|
6711
|
+
readonly description: "Optional ordering expression; projects supports updateTime desc.";
|
|
6712
|
+
}];
|
|
6713
|
+
}, {
|
|
6714
|
+
readonly resource: "cut.projects.exports";
|
|
6715
|
+
readonly method: "create";
|
|
6716
|
+
readonly summary: "Create video export";
|
|
6717
|
+
readonly description: "Start an asynchronous video export from the project into a writable bound media library. Choose binding from bindings.list or omit it for default_upload, and optionally select revision and output settings. HTTP 202 only accepts the job; poll praxis.cut.exports.retrieve using the returned id until status is done, failed or canceled. On done, asset identifies the video written back to praxis.media. Each call starts a job, so retrieve a known job before retrying a submission.";
|
|
6718
|
+
readonly http: "POST";
|
|
6719
|
+
readonly path: "/cut/v1/projects/{project_id}/exports";
|
|
6720
|
+
readonly streaming: "no";
|
|
6721
|
+
readonly pagination: false;
|
|
6722
|
+
readonly pathParams: readonly [{
|
|
6723
|
+
readonly name: "project_id";
|
|
6724
|
+
readonly sdkName: "project_id";
|
|
6725
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6726
|
+
}];
|
|
6727
|
+
readonly query: readonly [];
|
|
6728
|
+
readonly body: {
|
|
6729
|
+
readonly required: true;
|
|
6730
|
+
readonly fields: readonly [{
|
|
6731
|
+
readonly name: "output";
|
|
6732
|
+
readonly type: "object";
|
|
6733
|
+
readonly required: false;
|
|
6734
|
+
readonly description: "Rendering options for an exported video.";
|
|
6735
|
+
}, {
|
|
6736
|
+
readonly name: "binding";
|
|
6737
|
+
readonly type: "string";
|
|
6738
|
+
readonly required: false;
|
|
6739
|
+
readonly description: "Writable binding name used as the export destination; omission uses default_upload.";
|
|
6740
|
+
}, {
|
|
6741
|
+
readonly name: "revision";
|
|
6742
|
+
readonly type: "integer";
|
|
6743
|
+
readonly required: false;
|
|
6744
|
+
readonly description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write.";
|
|
6745
|
+
}];
|
|
6746
|
+
};
|
|
6747
|
+
}, {
|
|
6748
|
+
readonly resource: "cut.projects.frames";
|
|
6749
|
+
readonly method: "list";
|
|
6750
|
+
readonly summary: "Render preview frames";
|
|
6751
|
+
readonly description: "Review the visual result at one or more project times without creating an export. Pass comma-separated seconds in at, such as 12,15.5; scale changes preview size and revision selects a committed project revision. Fetch the returned image URLs before expires_at; render again when they expire.";
|
|
6752
|
+
readonly http: "GET";
|
|
6753
|
+
readonly path: "/cut/v1/projects/{project_id}/frames";
|
|
6754
|
+
readonly streaming: "no";
|
|
6755
|
+
readonly pagination: false;
|
|
6756
|
+
readonly pathParams: readonly [{
|
|
6757
|
+
readonly name: "project_id";
|
|
6758
|
+
readonly sdkName: "project_id";
|
|
6759
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6760
|
+
}];
|
|
6761
|
+
readonly query: readonly [{
|
|
6762
|
+
readonly name: "at";
|
|
6763
|
+
readonly type: "string";
|
|
6764
|
+
readonly required: true;
|
|
6765
|
+
readonly description: "Required comma-separated non-negative project times in seconds, for example 12,15.5.";
|
|
6766
|
+
}, {
|
|
6767
|
+
readonly name: "scale";
|
|
6768
|
+
readonly type: "number";
|
|
6769
|
+
readonly required: false;
|
|
6770
|
+
readonly description: "Positive image size multiplier; 0.5 renders at half the project dimensions.";
|
|
6771
|
+
}, {
|
|
6772
|
+
readonly name: "revision";
|
|
6773
|
+
readonly type: "integer";
|
|
6774
|
+
readonly required: false;
|
|
6775
|
+
readonly description: "Optional committed project revision from state or execute; omission selects the current revision.";
|
|
6776
|
+
}];
|
|
6777
|
+
}, {
|
|
6778
|
+
readonly resource: "cut.projects.media";
|
|
6779
|
+
readonly method: "import";
|
|
6780
|
+
readonly summary: "Import project media";
|
|
6781
|
+
readonly description: "Import a URL, data URI or existing file into a writable project media library. Select binding from bindings.list or omit it to use default_upload. Save library_id and asset_id from the result and use them as libraryId and assetId inside execute script media references; overwrites follow the source asset latest version.";
|
|
6782
|
+
readonly http: "POST";
|
|
6783
|
+
readonly path: "/cut/v1/projects/{project_id}/media:import";
|
|
6784
|
+
readonly streaming: "no";
|
|
6785
|
+
readonly pagination: false;
|
|
6786
|
+
readonly pathParams: readonly [{
|
|
6787
|
+
readonly name: "project_id";
|
|
6788
|
+
readonly sdkName: "project_id";
|
|
6789
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6790
|
+
}];
|
|
6791
|
+
readonly query: readonly [];
|
|
6792
|
+
readonly body: {
|
|
6793
|
+
readonly required: true;
|
|
6794
|
+
readonly fields: readonly [{
|
|
6795
|
+
readonly name: "binding";
|
|
6796
|
+
readonly type: "string";
|
|
6797
|
+
readonly required: false;
|
|
6798
|
+
readonly description: "Writable binding name from project bindings; omission uses default_upload.";
|
|
6799
|
+
}, {
|
|
6800
|
+
readonly name: "source";
|
|
6801
|
+
readonly type: "object";
|
|
6802
|
+
readonly required: true;
|
|
6803
|
+
readonly description: "Exactly one input source for the imported asset.";
|
|
6804
|
+
}, {
|
|
6805
|
+
readonly name: "display_name";
|
|
6806
|
+
readonly type: "string";
|
|
6807
|
+
readonly required: false;
|
|
6808
|
+
readonly description: "Optional human-readable display name for the new media asset.";
|
|
6809
|
+
}];
|
|
6810
|
+
};
|
|
6811
|
+
}, {
|
|
6812
|
+
readonly resource: "cut.projects";
|
|
6813
|
+
readonly method: "retrieveState";
|
|
6814
|
+
readonly summary: "Read editing state";
|
|
6815
|
+
readonly description: "Read lightweight project context before composing an execute script. Returns current revision, rendering settings, track counts, library bindings and offline media count without individual clips. For complete clip documents or a selected time range, read timeline instead.";
|
|
6816
|
+
readonly http: "GET";
|
|
6817
|
+
readonly path: "/cut/v1/projects/{project_id}/state";
|
|
6818
|
+
readonly streaming: "no";
|
|
6819
|
+
readonly pagination: false;
|
|
6820
|
+
readonly pathParams: readonly [{
|
|
6821
|
+
readonly name: "project_id";
|
|
6822
|
+
readonly sdkName: "project_id";
|
|
6823
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6824
|
+
}];
|
|
6825
|
+
readonly query: readonly [];
|
|
6826
|
+
}, {
|
|
6827
|
+
readonly resource: "cut.projects";
|
|
6828
|
+
readonly method: "retrieveTimeline";
|
|
6829
|
+
readonly summary: "Read project timeline";
|
|
6830
|
+
readonly description: "Inspect clips and markers in a selected project range before editing. view=full returns structured tracks with all timeline positions in seconds; view=compact returns compact text for script context. from and to are seconds and tracks limits the selection to comma-separated track ids from state. Concurrent changes while preparing a full timeline return 409; retrieve the latest state and try the read again.";
|
|
6831
|
+
readonly http: "GET";
|
|
6832
|
+
readonly path: "/cut/v1/projects/{project_id}/timeline";
|
|
6833
|
+
readonly streaming: "no";
|
|
6834
|
+
readonly pagination: false;
|
|
6835
|
+
readonly pathParams: readonly [{
|
|
6836
|
+
readonly name: "project_id";
|
|
6837
|
+
readonly sdkName: "project_id";
|
|
6838
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6839
|
+
}];
|
|
6840
|
+
readonly query: readonly [{
|
|
6841
|
+
readonly name: "view";
|
|
6842
|
+
readonly type: "string";
|
|
6843
|
+
readonly enum: readonly ["full", "compact"];
|
|
6844
|
+
readonly required: false;
|
|
6845
|
+
readonly description: "full returns structured clips; compact returns compact textual editing context.";
|
|
6846
|
+
}, {
|
|
6847
|
+
readonly name: "from";
|
|
6848
|
+
readonly type: "number";
|
|
6849
|
+
readonly required: false;
|
|
6850
|
+
readonly description: "Optional start of the selected project range in seconds; omit for the beginning.";
|
|
6851
|
+
}, {
|
|
6852
|
+
readonly name: "to";
|
|
6853
|
+
readonly type: "number";
|
|
6854
|
+
readonly required: false;
|
|
6855
|
+
readonly description: "Optional end of the selected project range in seconds; omit for the end.";
|
|
6856
|
+
}, {
|
|
6857
|
+
readonly name: "tracks";
|
|
6858
|
+
readonly type: "string";
|
|
6859
|
+
readonly required: false;
|
|
6860
|
+
readonly description: "Comma-separated track ids from state to include; omit to include every track.";
|
|
6861
|
+
}];
|
|
6862
|
+
}, {
|
|
6863
|
+
readonly resource: "cut.projects.versions";
|
|
6864
|
+
readonly method: "list";
|
|
6865
|
+
readonly summary: "List saved versions";
|
|
6866
|
+
readonly description: "Find saved timeline snapshots for this project and obtain version_id values for restore. A saved version records its original revision; restoring it creates a new current revision rather than rewinding the revision counter. Continue with next_page_token as page_token until absent.";
|
|
6867
|
+
readonly http: "GET";
|
|
6868
|
+
readonly path: "/cut/v1/projects/{project_id}/versions";
|
|
6869
|
+
readonly streaming: "no";
|
|
6870
|
+
readonly pagination: false;
|
|
6871
|
+
readonly pathParams: readonly [{
|
|
6872
|
+
readonly name: "project_id";
|
|
6873
|
+
readonly sdkName: "project_id";
|
|
6874
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6875
|
+
}];
|
|
6876
|
+
readonly query: readonly [{
|
|
6877
|
+
readonly name: "page_size";
|
|
6878
|
+
readonly type: "integer";
|
|
6879
|
+
readonly required: false;
|
|
6880
|
+
readonly description: "Maximum resources in one page, from 1 to 100; defaults to 50.";
|
|
6881
|
+
}, {
|
|
6882
|
+
readonly name: "page_token";
|
|
6883
|
+
readonly type: "string";
|
|
6884
|
+
readonly required: false;
|
|
6885
|
+
readonly description: "Opaque next_page_token from the preceding page; omit on the first request.";
|
|
6886
|
+
}, {
|
|
6887
|
+
readonly name: "filter";
|
|
6888
|
+
readonly type: "string";
|
|
6889
|
+
readonly required: false;
|
|
6890
|
+
readonly description: "Optional resource filter; projects supports state = \"active\" or state = \"deleted\".";
|
|
6891
|
+
}, {
|
|
6892
|
+
readonly name: "order_by";
|
|
6893
|
+
readonly type: "string";
|
|
6894
|
+
readonly required: false;
|
|
6895
|
+
readonly description: "Optional ordering expression; projects supports updateTime desc.";
|
|
6896
|
+
}];
|
|
6897
|
+
}, {
|
|
6898
|
+
readonly resource: "cut.projects.versions";
|
|
6899
|
+
readonly method: "create";
|
|
6900
|
+
readonly summary: "Save project version";
|
|
6901
|
+
readonly description: "Save the current project timeline as a named recovery point before a substantial edit. Supply an optional label or send an empty object; keep the returned version id for versions.restore. Saving a version does not publish a rendered asset; use projects.exports.create for video output.";
|
|
6902
|
+
readonly http: "POST";
|
|
6903
|
+
readonly path: "/cut/v1/projects/{project_id}/versions";
|
|
6904
|
+
readonly streaming: "no";
|
|
6905
|
+
readonly pagination: false;
|
|
6906
|
+
readonly pathParams: readonly [{
|
|
6907
|
+
readonly name: "project_id";
|
|
6908
|
+
readonly sdkName: "project_id";
|
|
6909
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6910
|
+
}];
|
|
6911
|
+
readonly query: readonly [];
|
|
6912
|
+
readonly body: {
|
|
6913
|
+
readonly required: true;
|
|
6914
|
+
readonly fields: readonly [{
|
|
6915
|
+
readonly name: "label";
|
|
6916
|
+
readonly type: "string";
|
|
6917
|
+
readonly required: false;
|
|
6918
|
+
readonly description: "Human-readable snapshot label, such as Before captions.";
|
|
6919
|
+
}];
|
|
6920
|
+
};
|
|
6921
|
+
}, {
|
|
6922
|
+
readonly resource: "cut.projects";
|
|
6923
|
+
readonly method: "execute";
|
|
6924
|
+
readonly summary: "Execute editing script";
|
|
6925
|
+
readonly description: "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Use AddTrack, Insert, Update, Delete, Split, Trim, Move, RippleDeleteRange, UpdateTrack, DeleteTrack, SetSettings, AddCaptionsFromTranscript and SetMarker for writes; GetTimeline, GetItem, FindItems, GetMedia, GetTranscript and GetAnalysis read editing context; Print emits text and Preview requests frame previews. All script times are seconds; script object fields use camelCase, for example `media: {libraryId, assetId}`. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project:\n\n```js\nconst t = AddTrack(\"video\");\nInsert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3});\nPrint(t);\n```";
|
|
6926
|
+
readonly http: "POST";
|
|
6927
|
+
readonly path: "/cut/v1/projects/{project_id}:execute";
|
|
6928
|
+
readonly streaming: "no";
|
|
6929
|
+
readonly pagination: false;
|
|
6930
|
+
readonly pathParams: readonly [{
|
|
6931
|
+
readonly name: "project_id";
|
|
6932
|
+
readonly sdkName: "project_id";
|
|
6933
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6934
|
+
}];
|
|
6935
|
+
readonly query: readonly [];
|
|
6936
|
+
readonly body: {
|
|
6937
|
+
readonly required: true;
|
|
6938
|
+
readonly fields: readonly [{
|
|
6939
|
+
readonly name: "script";
|
|
6940
|
+
readonly type: "string";
|
|
6941
|
+
readonly required: false;
|
|
6942
|
+
readonly description: "Synchronous editing source using Cut execute functions; submit this or edit_id, never both. Script source is opaque: function names and object fields inside JavaScript use their documented camelCase spelling.";
|
|
6943
|
+
}, {
|
|
6944
|
+
readonly name: "edit_id";
|
|
6945
|
+
readonly type: "string";
|
|
6946
|
+
readonly required: false;
|
|
6947
|
+
readonly description: "Saved failed script identifier from error.details.edit_id; valid for ten minutes.";
|
|
6948
|
+
}, {
|
|
6949
|
+
readonly name: "edits";
|
|
6950
|
+
readonly type: "array";
|
|
6951
|
+
readonly itemType: "object";
|
|
6952
|
+
readonly required: false;
|
|
6953
|
+
readonly description: "Literal replacements applied to the saved source before rerunning.";
|
|
6954
|
+
}, {
|
|
6955
|
+
readonly name: "expected_revision";
|
|
6956
|
+
readonly type: "integer";
|
|
6957
|
+
readonly required: false;
|
|
6958
|
+
readonly description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write.";
|
|
6959
|
+
}];
|
|
6960
|
+
};
|
|
6961
|
+
}, {
|
|
6962
|
+
readonly resource: "cut.projects";
|
|
6963
|
+
readonly method: "undelete";
|
|
6964
|
+
readonly summary: "Restore deleted project";
|
|
6965
|
+
readonly description: "Return a retained deleted project to active state before its purge_time. Obtain project_id from projects.list filtered to deleted projects. This restores the project, not an older timeline revision; use versions.restore when reverting editing content.";
|
|
6966
|
+
readonly http: "POST";
|
|
6967
|
+
readonly path: "/cut/v1/projects/{project_id}:undelete";
|
|
6968
|
+
readonly streaming: "no";
|
|
6969
|
+
readonly pagination: false;
|
|
6970
|
+
readonly pathParams: readonly [{
|
|
6971
|
+
readonly name: "project_id";
|
|
6972
|
+
readonly sdkName: "project_id";
|
|
6973
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
6974
|
+
}];
|
|
6975
|
+
readonly query: readonly [];
|
|
6976
|
+
}, {
|
|
6977
|
+
readonly resource: "cut.versions";
|
|
6978
|
+
readonly method: "restore";
|
|
6979
|
+
readonly summary: "Restore saved version";
|
|
6980
|
+
readonly description: "Replace current editing content with a saved project snapshot selected from projects.versions.list. The restore commits a new transaction and revision while preserving the saved version for future use. Inspect the returned summary and timeline before further editing; a response revision conflict can follow a committed restore, so retrieve current state before retrying.";
|
|
6981
|
+
readonly http: "POST";
|
|
6982
|
+
readonly path: "/cut/v1/versions/{version_id}:restore";
|
|
6983
|
+
readonly streaming: "no";
|
|
6984
|
+
readonly pagination: false;
|
|
6985
|
+
readonly pathParams: readonly [{
|
|
6986
|
+
readonly name: "version_id";
|
|
6987
|
+
readonly sdkName: "version_id";
|
|
6988
|
+
readonly description: "Version identifier returned by its create or list operation; use the id, not a display name.";
|
|
6989
|
+
}];
|
|
6990
|
+
readonly query: readonly [];
|
|
6991
|
+
}, {
|
|
6992
|
+
readonly resource: "database.databases";
|
|
6993
|
+
readonly method: "list";
|
|
6994
|
+
readonly summary: "List databases";
|
|
6995
|
+
readonly 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.";
|
|
6996
|
+
readonly http: "GET";
|
|
6997
|
+
readonly path: "/database/v1/databases";
|
|
6998
|
+
readonly streaming: "no";
|
|
6999
|
+
readonly pagination: true;
|
|
7000
|
+
readonly pathParams: readonly [];
|
|
7001
|
+
readonly query: readonly [{
|
|
7002
|
+
readonly name: "cursor";
|
|
7003
|
+
readonly type: "string";
|
|
7004
|
+
readonly required: false;
|
|
7005
|
+
readonly description: "Opaque next_cursor from the previous page.";
|
|
7006
|
+
}, {
|
|
7007
|
+
readonly name: "limit";
|
|
7008
|
+
readonly type: "integer";
|
|
7009
|
+
readonly required: false;
|
|
7010
|
+
readonly description: "Page size.";
|
|
7011
|
+
}, {
|
|
7012
|
+
readonly name: "labels";
|
|
7013
|
+
readonly type: "object";
|
|
7014
|
+
readonly required: false;
|
|
7015
|
+
readonly description: "Exact label match, encoded as labels[purpose]=docs.";
|
|
7016
|
+
}, {
|
|
7017
|
+
readonly name: "status";
|
|
7018
|
+
readonly type: "string";
|
|
7019
|
+
readonly enum: readonly ["active", "deleting"];
|
|
7020
|
+
readonly required: false;
|
|
7021
|
+
readonly description: "Filter by lifecycle state. active (the default when omitted) lists usable databases; deleting lists databases that were deleted and are still inside the seven-day restore window. Any other value returns 400 INVALID_PARAMS.";
|
|
7022
|
+
}];
|
|
7023
|
+
}, {
|
|
7024
|
+
readonly resource: "database.databases";
|
|
7025
|
+
readonly method: "create";
|
|
7026
|
+
readonly summary: "Create database";
|
|
7027
|
+
readonly description: "Creates an empty database for the caller and returns it with status active (HTTP 201); add tables next with praxis.database.databases.tables.create. name is required and is 1–64 visible characters after trimming. labels are optional string tags (at most 64; each key starts with a lowercase letter and uses up to 63 characters of a-z 0-9 _ -; each value is up to 63 characters of a-z 0-9 _ -) that databaseListDatabases can filter on. If initialization fails the call returns 503 CAPACITY and the half-created database is left with status failed; retry by calling create again, which makes a new database. Unlike Supabase, this creates a SQLite-backed database without a PostgreSQL connection or SQL execution endpoint. Use a Praxis credential; access is scoped to its tenant, not to Supabase Auth users or RLS policies.";
|
|
7028
|
+
readonly http: "POST";
|
|
7029
|
+
readonly path: "/database/v1/databases";
|
|
7030
|
+
readonly streaming: "no";
|
|
7031
|
+
readonly pagination: false;
|
|
7032
|
+
readonly pathParams: readonly [];
|
|
7033
|
+
readonly query: readonly [];
|
|
7034
|
+
readonly body: {
|
|
7035
|
+
readonly required: true;
|
|
7036
|
+
readonly fields: readonly [{
|
|
7037
|
+
readonly name: "name";
|
|
7038
|
+
readonly type: "string";
|
|
7039
|
+
readonly required: true;
|
|
7040
|
+
readonly description: "Display name for the database: 1–64 visible characters after trimming; control characters are rejected. It is not an identifier, so later calls still use the returned id.";
|
|
7041
|
+
}, {
|
|
7042
|
+
readonly name: "labels";
|
|
7043
|
+
readonly type: "object";
|
|
7044
|
+
readonly required: false;
|
|
7045
|
+
readonly description: "Optional string tags to attach, at most 64. Each key starts with a lowercase letter and may use up to 63 characters of a-z 0-9 _ -; each value is up to 63 characters of a-z 0-9 _ -. List calls filter on exact key and value pairs.";
|
|
7046
|
+
}];
|
|
7047
|
+
};
|
|
7048
|
+
}, {
|
|
7049
|
+
readonly resource: "database.databases";
|
|
7050
|
+
readonly method: "delete";
|
|
7051
|
+
readonly summary: "Delete database";
|
|
7052
|
+
readonly description: "Soft-delete a database when it should stop accepting schema and row operations. Idempotently enters deleting with a seven-day purge_at. GET remains available; child operations return 409 until restored.";
|
|
7053
|
+
readonly http: "DELETE";
|
|
7054
|
+
readonly path: "/database/v1/databases/{database_id}";
|
|
7055
|
+
readonly streaming: "no";
|
|
7056
|
+
readonly pagination: false;
|
|
7057
|
+
readonly pathParams: readonly [{
|
|
7058
|
+
readonly name: "database_id";
|
|
7059
|
+
readonly sdkName: "database_id";
|
|
7060
|
+
readonly description: "Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.";
|
|
7061
|
+
}];
|
|
7062
|
+
readonly query: readonly [];
|
|
7063
|
+
}, {
|
|
7064
|
+
readonly resource: "database.databases";
|
|
7065
|
+
readonly method: "retrieve";
|
|
7066
|
+
readonly summary: "Get database";
|
|
7067
|
+
readonly description: "Returns one database by id, including a database in the deleting state (purge_at then shows when it will be permanently removed). Call it before table or row operations to confirm status is active: schema and row calls on a deleting database return 409 DATABASE_INVALID_STATE. size_bytes is refreshed from live storage at most once every five seconds. A purged or unknown id returns 404 DATABASE_NOT_FOUND.";
|
|
7068
|
+
readonly http: "GET";
|
|
7069
|
+
readonly path: "/database/v1/databases/{database_id}";
|
|
7070
|
+
readonly streaming: "no";
|
|
7071
|
+
readonly pagination: false;
|
|
7072
|
+
readonly pathParams: readonly [{
|
|
7073
|
+
readonly name: "database_id";
|
|
7074
|
+
readonly sdkName: "database_id";
|
|
7075
|
+
readonly description: "Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.";
|
|
7076
|
+
}];
|
|
7077
|
+
readonly query: readonly [];
|
|
7078
|
+
}, {
|
|
7079
|
+
readonly resource: "database.databases";
|
|
7080
|
+
readonly method: "update";
|
|
7081
|
+
readonly summary: "Update database";
|
|
7082
|
+
readonly description: "Renames an active database and/or replaces its labels; send only the keys you want to change. labels is replaced as a whole, not merged, so include every label you want to keep. A body without name or labels, or with values equal to the current ones, changes nothing and leaves updated_at as is. A database in the deleting state returns 409 DATABASE_INVALID_STATE; restore it first with databaseRestoreDatabase.";
|
|
7083
|
+
readonly http: "PATCH";
|
|
7084
|
+
readonly path: "/database/v1/databases/{database_id}";
|
|
7085
|
+
readonly streaming: "no";
|
|
7086
|
+
readonly pagination: false;
|
|
7087
|
+
readonly pathParams: readonly [{
|
|
7088
|
+
readonly name: "database_id";
|
|
7089
|
+
readonly sdkName: "database_id";
|
|
7090
|
+
readonly description: "Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.";
|
|
7091
|
+
}];
|
|
7092
|
+
readonly query: readonly [];
|
|
7093
|
+
readonly body: {
|
|
7094
|
+
readonly required: true;
|
|
7095
|
+
readonly fields: readonly [{
|
|
7096
|
+
readonly name: "name";
|
|
7097
|
+
readonly type: "string";
|
|
7098
|
+
readonly required: false;
|
|
7099
|
+
readonly description: "New display name, 1–64 visible characters after trimming. Omit it to keep the current name.";
|
|
7100
|
+
}, {
|
|
7101
|
+
readonly name: "labels";
|
|
7102
|
+
readonly type: "object";
|
|
7103
|
+
readonly required: false;
|
|
7104
|
+
readonly description: "Complete replacement label set, not a merge: labels not listed here are removed. Same limits as at creation (at most 64; keys a-z 0-9 _ - starting with a letter; values up to 63 characters of a-z 0-9 _ -). Omit it to keep the current labels.";
|
|
7105
|
+
}];
|
|
7106
|
+
};
|
|
7107
|
+
}, {
|
|
7108
|
+
readonly resource: "database.databases.events";
|
|
7109
|
+
readonly method: "list";
|
|
7110
|
+
readonly summary: "List events";
|
|
7111
|
+
readonly description: "Read lifecycle and schema events, including while the database is deleting. next_cursor is an opaque string cursor (do not do arithmetic on it): pass it as after_seq for asc or before_seq for desc. Supplying both cursors returns 400 INVALID_PARAMS. Unlike Supabase Realtime, this is paged lifecycle and schema history, not a subscription or a row-change feed; row inserts, updates and deletes do not appear here.";
|
|
7112
|
+
readonly http: "GET";
|
|
7113
|
+
readonly path: "/database/v1/databases/{database_id}/events";
|
|
6200
7114
|
readonly streaming: "no";
|
|
6201
7115
|
readonly pagination: false;
|
|
6202
7116
|
readonly pathParams: readonly [{
|
|
@@ -6977,13 +7891,107 @@ export declare const operations: readonly [{
|
|
|
6977
7891
|
readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
|
|
6978
7892
|
}];
|
|
6979
7893
|
readonly query: readonly [];
|
|
7894
|
+
}, {
|
|
7895
|
+
readonly resource: "file.files.contentLinks";
|
|
7896
|
+
readonly method: "revoke";
|
|
7897
|
+
readonly summary: "Revoke a file content link";
|
|
7898
|
+
readonly 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/>\"}.";
|
|
7899
|
+
readonly http: "POST";
|
|
7900
|
+
readonly path: "/file/v1/files/{file_id}/content_links:revoke";
|
|
7901
|
+
readonly streaming: "no";
|
|
7902
|
+
readonly pagination: false;
|
|
7903
|
+
readonly pathParams: readonly [{
|
|
7904
|
+
readonly name: "file_id";
|
|
7905
|
+
readonly sdkName: "file_id";
|
|
7906
|
+
readonly description: "Tenant-owned file identifier returned by file creation or listing; the token must name this same file.";
|
|
7907
|
+
}];
|
|
7908
|
+
readonly query: readonly [];
|
|
7909
|
+
readonly body: {
|
|
7910
|
+
readonly required: true;
|
|
7911
|
+
readonly fields: readonly [{
|
|
7912
|
+
readonly name: "token";
|
|
7913
|
+
readonly type: "string";
|
|
7914
|
+
readonly required: true;
|
|
7915
|
+
readonly description: "Signed token taken from the /c/ path component of a previously issued file content URL, without the host or /c/ prefix.";
|
|
7916
|
+
}];
|
|
7917
|
+
};
|
|
7918
|
+
}, {
|
|
7919
|
+
readonly resource: "file.files.contentUrl";
|
|
7920
|
+
readonly method: "create";
|
|
7921
|
+
readonly summary: "Create a download URL";
|
|
7922
|
+
readonly 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}.";
|
|
7923
|
+
readonly http: "POST";
|
|
7924
|
+
readonly path: "/file/v1/files/{file_id}/content_url";
|
|
7925
|
+
readonly streaming: "no";
|
|
7926
|
+
readonly pagination: false;
|
|
7927
|
+
readonly pathParams: readonly [{
|
|
7928
|
+
readonly name: "file_id";
|
|
7929
|
+
readonly sdkName: "file_id";
|
|
7930
|
+
readonly description: "Tenant-owned live file identifier from file creation or listing; the file must be active to issue a download URL.";
|
|
7931
|
+
}];
|
|
7932
|
+
readonly query: readonly [];
|
|
7933
|
+
readonly body: {
|
|
7934
|
+
readonly required: false;
|
|
7935
|
+
readonly fields: readonly [{
|
|
7936
|
+
readonly name: "ttl_seconds";
|
|
7937
|
+
readonly type: "integer";
|
|
7938
|
+
readonly required: false;
|
|
7939
|
+
readonly description: "Download link lifetime in seconds, from 1 through 604800; omitted means 3600. This does not change the file's own expiry.";
|
|
7940
|
+
}];
|
|
7941
|
+
};
|
|
7942
|
+
}, {
|
|
7943
|
+
readonly resource: "file.uploads";
|
|
7944
|
+
readonly method: "create";
|
|
7945
|
+
readonly summary: "Create an upload";
|
|
7946
|
+
readonly description: "Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, uploads accept at most 2 GiB (2147483648 bytes) and only user_data and vision purposes. Add parts of at most 64000000 bytes and complete within one hour. Optional part_size enables fixed-size, retryable parts. expires_after applies to the resulting file (3600–7776000 seconds on this own face); without it the file persists until deleted.";
|
|
7947
|
+
readonly http: "POST";
|
|
7948
|
+
readonly path: "/file/v1/uploads";
|
|
7949
|
+
readonly streaming: "no";
|
|
7950
|
+
readonly pagination: false;
|
|
7951
|
+
readonly pathParams: readonly [];
|
|
7952
|
+
readonly query: readonly [];
|
|
7953
|
+
readonly body: {
|
|
7954
|
+
readonly required: true;
|
|
7955
|
+
readonly fields: readonly [{
|
|
7956
|
+
readonly name: "bytes";
|
|
7957
|
+
readonly type: "integer";
|
|
7958
|
+
readonly required: true;
|
|
7959
|
+
readonly description: "Exact complete file length in bytes, from 1 through 2147483648 (2 GiB); the sum of completed parts must match.";
|
|
7960
|
+
}, {
|
|
7961
|
+
readonly name: "filename";
|
|
7962
|
+
readonly type: "string";
|
|
7963
|
+
readonly required: true;
|
|
7964
|
+
readonly description: "Filename for the resulting file, at most 255 UTF-8 bytes.";
|
|
7965
|
+
}, {
|
|
7966
|
+
readonly name: "mime_type";
|
|
7967
|
+
readonly type: "string";
|
|
7968
|
+
readonly required: true;
|
|
7969
|
+
readonly description: "Declared MIME type; validated against the assembled content.";
|
|
7970
|
+
}, {
|
|
7971
|
+
readonly name: "purpose";
|
|
7972
|
+
readonly type: "string";
|
|
7973
|
+
readonly enum: readonly ["user_data", "vision"];
|
|
7974
|
+
readonly required: true;
|
|
7975
|
+
readonly description: "Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images.";
|
|
7976
|
+
}, {
|
|
7977
|
+
readonly name: "expires_after";
|
|
7978
|
+
readonly type: "object";
|
|
7979
|
+
readonly required: false;
|
|
7980
|
+
readonly description: "Optional expiry policy for the resulting file; omission retains the file until deletion.";
|
|
7981
|
+
}, {
|
|
7982
|
+
readonly name: "part_size";
|
|
7983
|
+
readonly type: "integer";
|
|
7984
|
+
readonly required: false;
|
|
7985
|
+
readonly description: "Optional fixed part size in bytes, 5242880–64000000. Requires part_number on every part; retries of identical bytes at the same number return the same part. Omit to use arbitrary-sized parts.";
|
|
7986
|
+
}];
|
|
7987
|
+
};
|
|
6980
7988
|
}, {
|
|
6981
7989
|
readonly resource: "file.uploads";
|
|
6982
|
-
readonly method: "
|
|
6983
|
-
readonly summary: "Create
|
|
6984
|
-
readonly description: "
|
|
7990
|
+
readonly method: "createSigned";
|
|
7991
|
+
readonly summary: "Create a one-time upload URL";
|
|
7992
|
+
readonly description: "Upload a local file of up to 2 GiB from a coding agent without sending bytes through the model. Provide basename, exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes), PUT each chunk to its numbered parts[].url in any order, then POST complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid, wrong-action or cross-organization URLs return 404. URL lifetime defaults to 900 seconds for single PUT or 3600 for multipart, at most 604800; all multipart URLs share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.";
|
|
6985
7993
|
readonly http: "POST";
|
|
6986
|
-
readonly path: "/file/v1/uploads";
|
|
7994
|
+
readonly path: "/file/v1/uploads/signed";
|
|
6987
7995
|
readonly streaming: "no";
|
|
6988
7996
|
readonly pagination: false;
|
|
6989
7997
|
readonly pathParams: readonly [];
|
|
@@ -6991,36 +7999,36 @@ export declare const operations: readonly [{
|
|
|
6991
7999
|
readonly body: {
|
|
6992
8000
|
readonly required: true;
|
|
6993
8001
|
readonly fields: readonly [{
|
|
6994
|
-
readonly name: "bytes";
|
|
6995
|
-
readonly type: "integer";
|
|
6996
|
-
readonly required: true;
|
|
6997
|
-
readonly description: "Exact complete file length in bytes, from 1 through 2147483648 (2 GiB); the sum of completed parts must match.";
|
|
6998
|
-
}, {
|
|
6999
8002
|
readonly name: "filename";
|
|
7000
8003
|
readonly type: "string";
|
|
7001
8004
|
readonly required: true;
|
|
7002
|
-
readonly description: "
|
|
8005
|
+
readonly description: "Stored basename, 1–255 UTF-8 bytes without control characters or path separators.";
|
|
7003
8006
|
}, {
|
|
7004
|
-
readonly name: "
|
|
8007
|
+
readonly name: "bytes";
|
|
8008
|
+
readonly type: "integer";
|
|
8009
|
+
readonly required: true;
|
|
8010
|
+
readonly description: "Exact local file size in bytes, from 1 through 2147483648 (2 GiB). Up to 104857600 bytes returns one PUT URL; larger files return numbered part URLs and a completion URL. Every PUT requires its exact signed Content-Length.";
|
|
8011
|
+
}, {
|
|
8012
|
+
readonly name: "content_type";
|
|
7005
8013
|
readonly type: "string";
|
|
7006
8014
|
readonly required: true;
|
|
7007
|
-
readonly description: "Declared MIME type
|
|
8015
|
+
readonly description: "Declared MIME type, such as image/png. In single-PUT mode, send exactly this Content-Type or omit it. Stored file metadata is detected from the bytes in both modes.";
|
|
7008
8016
|
}, {
|
|
7009
8017
|
readonly name: "purpose";
|
|
7010
8018
|
readonly type: "string";
|
|
7011
8019
|
readonly enum: readonly ["user_data", "vision"];
|
|
7012
|
-
readonly required:
|
|
7013
|
-
readonly description: "
|
|
8020
|
+
readonly required: false;
|
|
8021
|
+
readonly description: "user_data stores ordinary files and conversation images; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data.";
|
|
7014
8022
|
}, {
|
|
7015
|
-
readonly name: "
|
|
7016
|
-
readonly type: "
|
|
8023
|
+
readonly name: "expires_in";
|
|
8024
|
+
readonly type: "integer";
|
|
7017
8025
|
readonly required: false;
|
|
7018
|
-
readonly description: "
|
|
8026
|
+
readonly description: "Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 3600 for multipart. All part URLs and the completion URL share one expiry. This does not set the resulting file's lifetime.";
|
|
7019
8027
|
}, {
|
|
7020
8028
|
readonly name: "part_size";
|
|
7021
8029
|
readonly type: "integer";
|
|
7022
8030
|
readonly required: false;
|
|
7023
|
-
readonly description: "
|
|
8031
|
+
readonly description: "Fixed multipart chunk size in bytes, from 5242880 through 64000000; defaults to 64000000. Used only above 104857600 total bytes. The final part contains the remaining bytes; single-PUT mode keeps its existing response.";
|
|
7024
8032
|
}];
|
|
7025
8033
|
};
|
|
7026
8034
|
}, {
|
|
@@ -7140,7 +8148,7 @@ export declare const operations: readonly [{
|
|
|
7140
8148
|
readonly resource: "knowledge.vectorStores";
|
|
7141
8149
|
readonly method: "create";
|
|
7142
8150
|
readonly summary: "Create knowledge base";
|
|
7143
|
-
readonly 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.
|
|
8151
|
+
readonly 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\"}.";
|
|
7144
8152
|
readonly http: "POST";
|
|
7145
8153
|
readonly path: "/knowledge/v1/vector_stores";
|
|
7146
8154
|
readonly streaming: "no";
|
|
@@ -7184,7 +8192,7 @@ export declare const operations: readonly [{
|
|
|
7184
8192
|
readonly name: "models";
|
|
7185
8193
|
readonly type: "object";
|
|
7186
8194
|
readonly required: false;
|
|
7187
|
-
readonly 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.";
|
|
8195
|
+
readonly 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.";
|
|
7188
8196
|
}];
|
|
7189
8197
|
};
|
|
7190
8198
|
}, {
|
|
@@ -7267,7 +8275,7 @@ export declare const operations: readonly [{
|
|
|
7267
8275
|
readonly name: "models";
|
|
7268
8276
|
readonly type: "object";
|
|
7269
8277
|
readonly required: false;
|
|
7270
|
-
readonly 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.";
|
|
8278
|
+
readonly 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.";
|
|
7271
8279
|
}];
|
|
7272
8280
|
};
|
|
7273
8281
|
}, {
|
|
@@ -7444,7 +8452,7 @@ export declare const operations: readonly [{
|
|
|
7444
8452
|
readonly resource: "knowledge.vectorStores.files";
|
|
7445
8453
|
readonly method: "create";
|
|
7446
8454
|
readonly summary: "Add file";
|
|
7447
|
-
readonly description: "Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching.
|
|
8455
|
+
readonly 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.";
|
|
7448
8456
|
readonly http: "POST";
|
|
7449
8457
|
readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files";
|
|
7450
8458
|
readonly streaming: "no";
|
|
@@ -7982,6 +8990,12 @@ export declare const operations: readonly [{
|
|
|
7982
8990
|
readonly enum: readonly ["image", "video", "raw", "auto"];
|
|
7983
8991
|
readonly required: false;
|
|
7984
8992
|
readonly description: "Upload category: image for images, video for video or audio, raw for unprocessed files, or auto to detect the category. Defaults to auto.";
|
|
8993
|
+
}, {
|
|
8994
|
+
readonly name: "type";
|
|
8995
|
+
readonly type: "string";
|
|
8996
|
+
readonly enum: readonly ["upload", "authenticated"];
|
|
8997
|
+
readonly required: false;
|
|
8998
|
+
readonly description: "Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.";
|
|
7985
8999
|
}];
|
|
7986
9000
|
};
|
|
7987
9001
|
}, {
|
|
@@ -8005,7 +9019,7 @@ export declare const operations: readonly [{
|
|
|
8005
9019
|
readonly name: "file_id";
|
|
8006
9020
|
readonly type: "string";
|
|
8007
9021
|
readonly required: true;
|
|
8008
|
-
readonly description: "File ID to copy into this library
|
|
9022
|
+
readonly description: "File ID to copy into this library instead of file bytes. This independent copy defaults to public delivery; set type=authenticated for private delivery. Deleting the source File does not delete this asset.";
|
|
8009
9023
|
}, {
|
|
8010
9024
|
readonly name: "public_id";
|
|
8011
9025
|
readonly type: "string";
|
|
@@ -8072,6 +9086,12 @@ export declare const operations: readonly [{
|
|
|
8072
9086
|
readonly enum: readonly ["image", "video", "raw", "auto"];
|
|
8073
9087
|
readonly required: false;
|
|
8074
9088
|
readonly description: "Upload category: image for images, video for video or audio, raw for unprocessed files, or auto to detect the category. Defaults to auto.";
|
|
9089
|
+
}, {
|
|
9090
|
+
readonly name: "type";
|
|
9091
|
+
readonly type: "string";
|
|
9092
|
+
readonly enum: readonly ["upload", "authenticated"];
|
|
9093
|
+
readonly required: false;
|
|
9094
|
+
readonly description: "Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.";
|
|
8075
9095
|
}];
|
|
8076
9096
|
};
|
|
8077
9097
|
}, {
|
|
@@ -8293,6 +9313,35 @@ export declare const operations: readonly [{
|
|
|
8293
9313
|
readonly description: "Batch identifier returned by createBatch or batchAssets; resolved within this library.";
|
|
8294
9314
|
}];
|
|
8295
9315
|
readonly query: readonly [];
|
|
9316
|
+
}, {
|
|
9317
|
+
readonly resource: "media.libraries.deliveryTokens";
|
|
9318
|
+
readonly method: "create";
|
|
9319
|
+
readonly summary: "Create delivery token";
|
|
9320
|
+
readonly description: "Issue a time-limited bearer token for originals and transformed authenticated assets in an active library. Use library_id from library creation or listing; read access is sufficient. Append token as the __cld_token__ query parameter on a matching delivery URL. The default ACL covers this library and the default lifetime is 3600 seconds; narrow acl and expires_in before sharing. Anyone holding the token can read matching paths until expires_at.";
|
|
9321
|
+
readonly http: "POST";
|
|
9322
|
+
readonly path: "/media/v1/libraries/{library_id}/delivery_tokens";
|
|
9323
|
+
readonly streaming: "no";
|
|
9324
|
+
readonly pagination: false;
|
|
9325
|
+
readonly pathParams: readonly [{
|
|
9326
|
+
readonly name: "library_id";
|
|
9327
|
+
readonly sdkName: "library_id";
|
|
9328
|
+
readonly description: "Library ID returned by creation.";
|
|
9329
|
+
}];
|
|
9330
|
+
readonly query: readonly [];
|
|
9331
|
+
readonly body: {
|
|
9332
|
+
readonly required: true;
|
|
9333
|
+
readonly fields: readonly [{
|
|
9334
|
+
readonly name: "acl";
|
|
9335
|
+
readonly type: "string";
|
|
9336
|
+
readonly required: false;
|
|
9337
|
+
readonly description: "Delivery path glob restricted to the library path prefix (a slash, library_id, then a slash). Defaults to that prefix followed by *; * matches any path text. Tildes and control characters are rejected.";
|
|
9338
|
+
}, {
|
|
9339
|
+
readonly name: "expires_in";
|
|
9340
|
+
readonly type: "integer";
|
|
9341
|
+
readonly required: false;
|
|
9342
|
+
readonly description: "Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 3600.";
|
|
9343
|
+
}];
|
|
9344
|
+
};
|
|
8296
9345
|
}, {
|
|
8297
9346
|
readonly resource: "media.libraries.events";
|
|
8298
9347
|
readonly method: "list";
|
|
@@ -11236,7 +12285,7 @@ export declare const operations: readonly [{
|
|
|
11236
12285
|
readonly resource: "sandbox.sandboxes.commands";
|
|
11237
12286
|
readonly method: "run";
|
|
11238
12287
|
readonly summary: "Run a command in the sandbox";
|
|
11239
|
-
readonly description: "Execute a shell command and wait for stdout, stderr and exitCode. Supply cmd, optional cwd and envs, and timeoutMs (1–
|
|
12288
|
+
readonly description: "Execute a shell command and wait for stdout, stderr and exitCode. Supply cmd, optional cwd and envs, and timeoutMs (1–3600000 milliseconds, default 600000, that is 10 minutes; E2B defaults to 60000). Unlike E2B, this endpoint is synchronous only: no background mode, callbacks or unlimited timeout (timeoutMs 0); output is bounded to 1 MiB including stream framing. Nonzero exit codes return 200 with the result. A timeout returns COMMAND_TIMEOUT (504); transport timeout does not confirm process termination, so do not blindly retry commands with side effects. Example body: {\"cmd\":\"echo hi\"}.";
|
|
11240
12289
|
readonly http: "POST";
|
|
11241
12290
|
readonly path: "/sandbox/v1/sandboxes/{sandbox_id}/commands";
|
|
11242
12291
|
readonly streaming: "no";
|
|
@@ -11254,6 +12303,11 @@ export declare const operations: readonly [{
|
|
|
11254
12303
|
readonly type: "string";
|
|
11255
12304
|
readonly required: true;
|
|
11256
12305
|
readonly description: "Shell command to execute, for example echo hi.";
|
|
12306
|
+
}, {
|
|
12307
|
+
readonly name: "background";
|
|
12308
|
+
readonly type: "boolean";
|
|
12309
|
+
readonly required: false;
|
|
12310
|
+
readonly 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.";
|
|
11257
12311
|
}, {
|
|
11258
12312
|
readonly name: "cwd";
|
|
11259
12313
|
readonly type: "string";
|
|
@@ -11268,7 +12322,7 @@ export declare const operations: readonly [{
|
|
|
11268
12322
|
readonly name: "timeoutMs";
|
|
11269
12323
|
readonly type: "integer";
|
|
11270
12324
|
readonly required: false;
|
|
11271
|
-
readonly description: "Execution timeout in milliseconds, from 1 to
|
|
12325
|
+
readonly 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.";
|
|
11272
12326
|
}];
|
|
11273
12327
|
};
|
|
11274
12328
|
}, {
|
|
@@ -11430,7 +12484,7 @@ export declare const operations: readonly [{
|
|
|
11430
12484
|
readonly resource: "sandbox.templates";
|
|
11431
12485
|
readonly method: "list";
|
|
11432
12486
|
readonly summary: "List templates (v2)";
|
|
11433
|
-
readonly description: "List
|
|
12487
|
+
readonly 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.";
|
|
11434
12488
|
readonly http: "GET";
|
|
11435
12489
|
readonly path: "/sandbox/v1/templates";
|
|
11436
12490
|
readonly streaming: "no";
|
|
@@ -11440,8 +12494,171 @@ export declare const operations: readonly [{
|
|
|
11440
12494
|
readonly name: "teamID";
|
|
11441
12495
|
readonly type: "string";
|
|
11442
12496
|
readonly required: false;
|
|
11443
|
-
readonly description: "
|
|
12497
|
+
readonly description: "Upstream team selector; Praxis always lists the authenticated organization's templates.";
|
|
12498
|
+
}, {
|
|
12499
|
+
readonly name: "nextToken";
|
|
12500
|
+
readonly type: "string";
|
|
12501
|
+
readonly required: false;
|
|
12502
|
+
readonly description: "Cursor to start the list from";
|
|
11444
12503
|
}, {
|
|
12504
|
+
readonly name: "limit";
|
|
12505
|
+
readonly type: "integer";
|
|
12506
|
+
readonly required: false;
|
|
12507
|
+
readonly description: "Maximum number of items to return per page";
|
|
12508
|
+
}];
|
|
12509
|
+
}, {
|
|
12510
|
+
readonly resource: "sandbox.templates";
|
|
12511
|
+
readonly method: "create";
|
|
12512
|
+
readonly summary: "Create template (v3)";
|
|
12513
|
+
readonly 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.";
|
|
12514
|
+
readonly http: "POST";
|
|
12515
|
+
readonly path: "/sandbox/v1/templates";
|
|
12516
|
+
readonly streaming: "no";
|
|
12517
|
+
readonly pagination: false;
|
|
12518
|
+
readonly pathParams: readonly [];
|
|
12519
|
+
readonly query: readonly [];
|
|
12520
|
+
readonly body: {
|
|
12521
|
+
readonly required: true;
|
|
12522
|
+
readonly fields: readonly [{
|
|
12523
|
+
readonly name: "name";
|
|
12524
|
+
readonly type: "string";
|
|
12525
|
+
readonly required: false;
|
|
12526
|
+
readonly 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.";
|
|
12527
|
+
}, {
|
|
12528
|
+
readonly name: "tags";
|
|
12529
|
+
readonly type: "array";
|
|
12530
|
+
readonly itemType: "string";
|
|
12531
|
+
readonly required: false;
|
|
12532
|
+
readonly description: "Tags to assign to the template build";
|
|
12533
|
+
}, {
|
|
12534
|
+
readonly name: "alias";
|
|
12535
|
+
readonly type: "string";
|
|
12536
|
+
readonly required: false;
|
|
12537
|
+
readonly description: "Alias of the template. Deprecated, use name instead.";
|
|
12538
|
+
}, {
|
|
12539
|
+
readonly name: "teamID";
|
|
12540
|
+
readonly type: "string";
|
|
12541
|
+
readonly required: false;
|
|
12542
|
+
readonly description: "Identifier of the team";
|
|
12543
|
+
}, {
|
|
12544
|
+
readonly name: "cpuCount";
|
|
12545
|
+
readonly type: "integer";
|
|
12546
|
+
readonly required: false;
|
|
12547
|
+
readonly description: "Requested virtual CPU count; a positive integer, default 2 for template builds.";
|
|
12548
|
+
}, {
|
|
12549
|
+
readonly name: "memoryMB";
|
|
12550
|
+
readonly type: "integer";
|
|
12551
|
+
readonly required: false;
|
|
12552
|
+
readonly description: "Requested build memory in MiB; a positive integer, default 1024.";
|
|
12553
|
+
}, {
|
|
12554
|
+
readonly name: "minFreeDiskMb";
|
|
12555
|
+
readonly type: "integer";
|
|
12556
|
+
readonly required: false;
|
|
12557
|
+
readonly description: "Upstream minimum free disk request in MiB; use the native diskGb field to set the build disk size.";
|
|
12558
|
+
}, {
|
|
12559
|
+
readonly name: "diskGb";
|
|
12560
|
+
readonly type: "integer";
|
|
12561
|
+
readonly required: false;
|
|
12562
|
+
readonly description: "Build disk size in GiB, a positive safe integer. Defaults to 10; available only on the own face.";
|
|
12563
|
+
}];
|
|
12564
|
+
};
|
|
12565
|
+
}, {
|
|
12566
|
+
readonly resource: "sandbox.templates.aliases";
|
|
12567
|
+
readonly method: "retrieve";
|
|
12568
|
+
readonly summary: "Check template alias";
|
|
12569
|
+
readonly 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.";
|
|
12570
|
+
readonly http: "GET";
|
|
12571
|
+
readonly path: "/sandbox/v1/templates/aliases/{alias}";
|
|
12572
|
+
readonly streaming: "no";
|
|
12573
|
+
readonly pagination: false;
|
|
12574
|
+
readonly pathParams: readonly [{
|
|
12575
|
+
readonly name: "alias";
|
|
12576
|
+
readonly sdkName: "alias";
|
|
12577
|
+
readonly description: "Bare template name belonging to your organization, without a tag or provider namespace.";
|
|
12578
|
+
}];
|
|
12579
|
+
readonly query: readonly [];
|
|
12580
|
+
}, {
|
|
12581
|
+
readonly resource: "sandbox.templates.tags";
|
|
12582
|
+
readonly method: "delete";
|
|
12583
|
+
readonly summary: "Delete template tags";
|
|
12584
|
+
readonly 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.";
|
|
12585
|
+
readonly http: "DELETE";
|
|
12586
|
+
readonly path: "/sandbox/v1/templates/tags";
|
|
12587
|
+
readonly streaming: "no";
|
|
12588
|
+
readonly pagination: false;
|
|
12589
|
+
readonly pathParams: readonly [];
|
|
12590
|
+
readonly query: readonly [];
|
|
12591
|
+
readonly body: {
|
|
12592
|
+
readonly required: true;
|
|
12593
|
+
readonly fields: readonly [{
|
|
12594
|
+
readonly name: "name";
|
|
12595
|
+
readonly type: "string";
|
|
12596
|
+
readonly required: true;
|
|
12597
|
+
readonly description: "Name of the template";
|
|
12598
|
+
}, {
|
|
12599
|
+
readonly name: "tags";
|
|
12600
|
+
readonly type: "array";
|
|
12601
|
+
readonly itemType: "string";
|
|
12602
|
+
readonly required: true;
|
|
12603
|
+
readonly description: "Tags to delete";
|
|
12604
|
+
}];
|
|
12605
|
+
};
|
|
12606
|
+
}, {
|
|
12607
|
+
readonly resource: "sandbox.templates.tags";
|
|
12608
|
+
readonly method: "create";
|
|
12609
|
+
readonly summary: "Assign template tags";
|
|
12610
|
+
readonly 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.";
|
|
12611
|
+
readonly http: "POST";
|
|
12612
|
+
readonly path: "/sandbox/v1/templates/tags";
|
|
12613
|
+
readonly streaming: "no";
|
|
12614
|
+
readonly pagination: false;
|
|
12615
|
+
readonly pathParams: readonly [];
|
|
12616
|
+
readonly query: readonly [];
|
|
12617
|
+
readonly body: {
|
|
12618
|
+
readonly required: true;
|
|
12619
|
+
readonly fields: readonly [{
|
|
12620
|
+
readonly name: "target";
|
|
12621
|
+
readonly type: "string";
|
|
12622
|
+
readonly required: true;
|
|
12623
|
+
readonly description: "Target template in \"name:tag\" format";
|
|
12624
|
+
}, {
|
|
12625
|
+
readonly name: "tags";
|
|
12626
|
+
readonly type: "array";
|
|
12627
|
+
readonly itemType: "string";
|
|
12628
|
+
readonly required: true;
|
|
12629
|
+
readonly description: "Tags to assign to the template";
|
|
12630
|
+
}];
|
|
12631
|
+
};
|
|
12632
|
+
}, {
|
|
12633
|
+
readonly resource: "sandbox.templates";
|
|
12634
|
+
readonly method: "delete";
|
|
12635
|
+
readonly summary: "Delete template";
|
|
12636
|
+
readonly 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.";
|
|
12637
|
+
readonly http: "DELETE";
|
|
12638
|
+
readonly path: "/sandbox/v1/templates/{templateID}";
|
|
12639
|
+
readonly streaming: "no";
|
|
12640
|
+
readonly pagination: false;
|
|
12641
|
+
readonly pathParams: readonly [{
|
|
12642
|
+
readonly name: "templateID";
|
|
12643
|
+
readonly sdkName: "templateID";
|
|
12644
|
+
readonly description: "Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle.";
|
|
12645
|
+
}];
|
|
12646
|
+
readonly query: readonly [];
|
|
12647
|
+
}, {
|
|
12648
|
+
readonly resource: "sandbox.templates";
|
|
12649
|
+
readonly method: "retrieve";
|
|
12650
|
+
readonly summary: "List template builds";
|
|
12651
|
+
readonly 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.";
|
|
12652
|
+
readonly http: "GET";
|
|
12653
|
+
readonly path: "/sandbox/v1/templates/{templateID}";
|
|
12654
|
+
readonly streaming: "no";
|
|
12655
|
+
readonly pagination: false;
|
|
12656
|
+
readonly pathParams: readonly [{
|
|
12657
|
+
readonly name: "templateID";
|
|
12658
|
+
readonly sdkName: "templateID";
|
|
12659
|
+
readonly description: "Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle.";
|
|
12660
|
+
}];
|
|
12661
|
+
readonly query: readonly [{
|
|
11445
12662
|
readonly name: "nextToken";
|
|
11446
12663
|
readonly type: "string";
|
|
11447
12664
|
readonly required: false;
|
|
@@ -11452,6 +12669,120 @@ export declare const operations: readonly [{
|
|
|
11452
12669
|
readonly required: false;
|
|
11453
12670
|
readonly description: "Maximum number of items to return per page";
|
|
11454
12671
|
}];
|
|
12672
|
+
}, {
|
|
12673
|
+
readonly resource: "sandbox.templates.builds";
|
|
12674
|
+
readonly method: "update";
|
|
12675
|
+
readonly summary: "Start template build (v2)";
|
|
12676
|
+
readonly 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\"]}]}.";
|
|
12677
|
+
readonly http: "POST";
|
|
12678
|
+
readonly path: "/sandbox/v1/templates/{templateID}/builds/{buildID}";
|
|
12679
|
+
readonly streaming: "no";
|
|
12680
|
+
readonly pagination: false;
|
|
12681
|
+
readonly pathParams: readonly [{
|
|
12682
|
+
readonly name: "templateID";
|
|
12683
|
+
readonly sdkName: "templateID";
|
|
12684
|
+
readonly description: "Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle.";
|
|
12685
|
+
}, {
|
|
12686
|
+
readonly name: "buildID";
|
|
12687
|
+
readonly sdkName: "buildID";
|
|
12688
|
+
readonly description: "Build identifier returned by templates.create. It must belong to the selected template in your organization.";
|
|
12689
|
+
}];
|
|
12690
|
+
readonly query: readonly [];
|
|
12691
|
+
readonly body: {
|
|
12692
|
+
readonly required: true;
|
|
12693
|
+
readonly fields: readonly [{
|
|
12694
|
+
readonly name: "fromImage";
|
|
12695
|
+
readonly type: "string";
|
|
12696
|
+
readonly required: false;
|
|
12697
|
+
readonly description: "Image to use as a base for the template build";
|
|
12698
|
+
}, {
|
|
12699
|
+
readonly name: "fromTemplate";
|
|
12700
|
+
readonly type: "string";
|
|
12701
|
+
readonly required: false;
|
|
12702
|
+
readonly description: "Template to use as a base for the template build";
|
|
12703
|
+
}, {
|
|
12704
|
+
readonly name: "fromImageRegistry";
|
|
12705
|
+
readonly type: "object";
|
|
12706
|
+
readonly required: false;
|
|
12707
|
+
readonly 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.";
|
|
12708
|
+
}, {
|
|
12709
|
+
readonly name: "force";
|
|
12710
|
+
readonly type: "boolean";
|
|
12711
|
+
readonly required: false;
|
|
12712
|
+
readonly description: "Whether the whole build should be forced to run regardless of the cache";
|
|
12713
|
+
}, {
|
|
12714
|
+
readonly name: "steps";
|
|
12715
|
+
readonly type: "array";
|
|
12716
|
+
readonly itemType: "object";
|
|
12717
|
+
readonly required: false;
|
|
12718
|
+
readonly description: "List of steps to execute in the template build";
|
|
12719
|
+
}, {
|
|
12720
|
+
readonly name: "startCmd";
|
|
12721
|
+
readonly type: "string";
|
|
12722
|
+
readonly required: false;
|
|
12723
|
+
readonly description: "Start command to execute in the template after the build";
|
|
12724
|
+
}, {
|
|
12725
|
+
readonly name: "readyCmd";
|
|
12726
|
+
readonly type: "string";
|
|
12727
|
+
readonly required: false;
|
|
12728
|
+
readonly description: "Ready check command to execute in the template after the build";
|
|
12729
|
+
}, {
|
|
12730
|
+
readonly name: "dockerfile";
|
|
12731
|
+
readonly type: "string";
|
|
12732
|
+
readonly required: false;
|
|
12733
|
+
readonly 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.";
|
|
12734
|
+
}];
|
|
12735
|
+
};
|
|
12736
|
+
}, {
|
|
12737
|
+
readonly resource: "sandbox.templates.builds.status";
|
|
12738
|
+
readonly method: "list";
|
|
12739
|
+
readonly summary: "Template build status";
|
|
12740
|
+
readonly 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.";
|
|
12741
|
+
readonly http: "GET";
|
|
12742
|
+
readonly path: "/sandbox/v1/templates/{templateID}/builds/{buildID}/status";
|
|
12743
|
+
readonly streaming: "no";
|
|
12744
|
+
readonly pagination: false;
|
|
12745
|
+
readonly pathParams: readonly [{
|
|
12746
|
+
readonly name: "templateID";
|
|
12747
|
+
readonly sdkName: "templateID";
|
|
12748
|
+
readonly description: "Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle.";
|
|
12749
|
+
}, {
|
|
12750
|
+
readonly name: "buildID";
|
|
12751
|
+
readonly sdkName: "buildID";
|
|
12752
|
+
readonly description: "Build identifier returned by templates.create. It must belong to the selected template in your organization.";
|
|
12753
|
+
}];
|
|
12754
|
+
readonly query: readonly [{
|
|
12755
|
+
readonly name: "logsOffset";
|
|
12756
|
+
readonly type: "integer";
|
|
12757
|
+
readonly required: false;
|
|
12758
|
+
readonly description: "Index of the starting build log that should be returned with the template";
|
|
12759
|
+
}, {
|
|
12760
|
+
readonly name: "limit";
|
|
12761
|
+
readonly type: "integer";
|
|
12762
|
+
readonly required: false;
|
|
12763
|
+
readonly description: "Maximum number of logs that should be returned";
|
|
12764
|
+
}, {
|
|
12765
|
+
readonly name: "level";
|
|
12766
|
+
readonly type: "string";
|
|
12767
|
+
readonly enum: readonly ["debug", "info", "warn", "error"];
|
|
12768
|
+
readonly required: false;
|
|
12769
|
+
readonly description: "Select one exact log severity: debug for diagnostics, info for progress, warn for warnings, error for failures. Offsets count matching entries.";
|
|
12770
|
+
}];
|
|
12771
|
+
}, {
|
|
12772
|
+
readonly resource: "sandbox.templates.tags";
|
|
12773
|
+
readonly method: "list";
|
|
12774
|
+
readonly summary: "List template tags";
|
|
12775
|
+
readonly 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.";
|
|
12776
|
+
readonly http: "GET";
|
|
12777
|
+
readonly path: "/sandbox/v1/templates/{templateID}/tags";
|
|
12778
|
+
readonly streaming: "no";
|
|
12779
|
+
readonly pagination: false;
|
|
12780
|
+
readonly pathParams: readonly [{
|
|
12781
|
+
readonly name: "templateID";
|
|
12782
|
+
readonly sdkName: "templateID";
|
|
12783
|
+
readonly description: "Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle.";
|
|
12784
|
+
}];
|
|
12785
|
+
readonly query: readonly [];
|
|
11455
12786
|
}, {
|
|
11456
12787
|
readonly resource: "sandbox.volumes";
|
|
11457
12788
|
readonly method: "list";
|
|
@@ -12246,7 +13577,7 @@ export declare const operations: readonly [{
|
|
|
12246
13577
|
readonly resource: "ticket.milestones";
|
|
12247
13578
|
readonly method: "create";
|
|
12248
13579
|
readonly summary: "Create or add milestones";
|
|
12249
|
-
readonly description: "Create or add milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result.
|
|
13580
|
+
readonly description: "Create or add milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.";
|
|
12250
13581
|
readonly http: "POST";
|
|
12251
13582
|
readonly path: "/ticket/v1/milestones";
|
|
12252
13583
|
readonly streaming: "no";
|
|
@@ -12287,7 +13618,7 @@ export declare const operations: readonly [{
|
|
|
12287
13618
|
readonly resource: "ticket.milestones";
|
|
12288
13619
|
readonly method: "delete";
|
|
12289
13620
|
readonly summary: "Remove milestones";
|
|
12290
|
-
readonly description: "Remove milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result.
|
|
13621
|
+
readonly description: "Remove milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.";
|
|
12291
13622
|
readonly http: "DELETE";
|
|
12292
13623
|
readonly path: "/ticket/v1/milestones/{number}";
|
|
12293
13624
|
readonly streaming: "no";
|
|
@@ -12329,7 +13660,7 @@ export declare const operations: readonly [{
|
|
|
12329
13660
|
readonly resource: "ticket.milestones";
|
|
12330
13661
|
readonly method: "update";
|
|
12331
13662
|
readonly summary: "Update milestones";
|
|
12332
|
-
readonly description: "Update milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result.
|
|
13663
|
+
readonly description: "Update milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.";
|
|
12333
13664
|
readonly http: "PATCH";
|
|
12334
13665
|
readonly path: "/ticket/v1/milestones/{number}";
|
|
12335
13666
|
readonly streaming: "no";
|
|
@@ -13474,7 +14805,7 @@ export declare const operations: readonly [{
|
|
|
13474
14805
|
readonly resource: "vault.vaults.secrets";
|
|
13475
14806
|
readonly method: "create";
|
|
13476
14807
|
readonly summary: "Create secret";
|
|
13477
|
-
readonly description: "Store a manually supplied token in an active vault for
|
|
14808
|
+
readonly description: "Store a manually supplied token in an active vault. Omit allowed_hosts for name-based resolution only; host-based redemption never matches an empty host list. Unlike Anthropic credentials, this native operation takes name and value directly, with optional allowed_hosts and creates only static secrets; use praxis.vault.authorizations.create for OAuth. Its name must be unused by any non-archived secret in that vault; the response contains metadata but never the supplied value. Application praxis_vault_ref bindings declare vault_id and secret (the secret name), but currently return 501; do not copy the value into a plain-text binding or metadata as a substitute.";
|
|
13478
14809
|
readonly http: "POST";
|
|
13479
14810
|
readonly path: "/vault/v1/vaults/{vault_id}/secrets";
|
|
13480
14811
|
readonly streaming: "no";
|
|
@@ -13501,8 +14832,8 @@ export declare const operations: readonly [{
|
|
|
13501
14832
|
readonly name: "allowed_hosts";
|
|
13502
14833
|
readonly type: "array";
|
|
13503
14834
|
readonly itemType: "string";
|
|
13504
|
-
readonly required:
|
|
13505
|
-
readonly description: "Allowed destinations for the secret.
|
|
14835
|
+
readonly required: false;
|
|
14836
|
+
readonly description: "Allowed destinations for the secret. Omitting allowed_hosts on creation stores an empty list for name-based resolution only: host-based redemption never matches. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed.";
|
|
13506
14837
|
}, {
|
|
13507
14838
|
readonly name: "description";
|
|
13508
14839
|
readonly type: "string";
|
|
@@ -13518,7 +14849,7 @@ export declare const operations: readonly [{
|
|
|
13518
14849
|
readonly type: "string";
|
|
13519
14850
|
readonly enum: readonly ["github", "openai", "anthropic", "stripe"];
|
|
13520
14851
|
readonly required: false;
|
|
13521
|
-
readonly description: "Static template ID from List templates. Records metadata.template; name
|
|
14852
|
+
readonly description: "Static template ID from List templates. Records metadata.template; name and value must still be supplied explicitly; allowed_hosts is optional.";
|
|
13522
14853
|
}, {
|
|
13523
14854
|
readonly name: "kind";
|
|
13524
14855
|
readonly type: "string";
|
|
@@ -13596,7 +14927,7 @@ export declare const operations: readonly [{
|
|
|
13596
14927
|
readonly type: "array";
|
|
13597
14928
|
readonly itemType: "string";
|
|
13598
14929
|
readonly required: false;
|
|
13599
|
-
readonly description: "Allowed destinations for the secret.
|
|
14930
|
+
readonly description: "Allowed destinations for the secret. Omitting allowed_hosts on creation stores an empty list for name-based resolution only: host-based redemption never matches. When supplied, list 1–16 bare domain names, dotted-decimal IPv4 addresses or leading *. domain wildcards. A wildcard matches subdomains, not the domain itself. URLs, ports, paths, IPv6, local/private and platform hosts are rejected. Entries are lowercased, one trailing dot is removed, internationalized domains use Punycode, and duplicates are removed.";
|
|
13600
14931
|
}, {
|
|
13601
14932
|
readonly name: "description";
|
|
13602
14933
|
readonly type: "string";
|
|
@@ -13680,7 +15011,7 @@ export declare const operations: readonly [{
|
|
|
13680
15011
|
readonly resource: "vault.vaults.secrets";
|
|
13681
15012
|
readonly method: "import";
|
|
13682
15013
|
readonly summary: "Import secrets";
|
|
13683
|
-
readonly description: "Import lines or dotenv text into an active vault, reporting success or failure for each entry. Existing names have their values replaced; their hosts change only when that line supplies allowed_hosts. Shared hosts apply only to newly created secrets.";
|
|
15014
|
+
readonly description: "Import lines or dotenv text into an active vault, reporting success or failure for each entry. Existing names have their values replaced; their hosts change only when that line supplies allowed_hosts. Shared hosts apply only to newly created secrets; if neither shared nor per-line hosts are supplied, new secrets use an empty host list for name-based resolution only.";
|
|
13684
15015
|
readonly http: "POST";
|
|
13685
15016
|
readonly path: "/vault/v1/vaults/{vault_id}/secrets:import";
|
|
13686
15017
|
readonly streaming: "no";
|