@deepraxis/sdk 0.1.1-dev.7f17950 → 0.1.1-dev.7fcfb44
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 +185 -1
- package/dist/core/client.d.ts +7 -1
- package/dist/core/client.js +3 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +502 -44
- package/dist/generated/sdk.gen.js +1996 -701
- package/dist/generated/types.gen.d.ts +29007 -22135
- 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 +2203 -224
- package/dist/operations.generated.js +2709 -223
- package/dist/resources.generated.d.ts +198 -1
- package/dist/resources.generated.js +106 -1
- package/package.json +1 -1
|
@@ -185,7 +185,7 @@ export const operations = [
|
|
|
185
185
|
"name": "settings",
|
|
186
186
|
"type": "object",
|
|
187
187
|
"required": false,
|
|
188
|
-
"description": "
|
|
188
|
+
"description": "Agent runtime settings follow Claude Code managed settings. Praxis freezes output-style selection for each new session; inline output_styles extend file-based styles. Omit settings to keep saved settings; null clears them."
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
"name": "models",
|
|
@@ -222,6 +222,13 @@ export const operations = [
|
|
|
222
222
|
],
|
|
223
223
|
"required": false,
|
|
224
224
|
"description": "Optional tool preset. minimal enables read, glob, grep and ask_user_question; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor."
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "output_styles",
|
|
228
|
+
"type": "array",
|
|
229
|
+
"itemType": "object",
|
|
230
|
+
"required": false,
|
|
231
|
+
"description": "Inline custom output styles, including for agents without a computer. Omit to keep the saved list; null or [] clears it. Same-name precedence is inline, project files, personal files, then plugins. Selection is settings.outputStyle; styles apply to main conversations and are frozen per session."
|
|
225
232
|
}
|
|
226
233
|
]
|
|
227
234
|
}
|
|
@@ -401,7 +408,7 @@ export const operations = [
|
|
|
401
408
|
"name": "settings",
|
|
402
409
|
"type": "object",
|
|
403
410
|
"required": false,
|
|
404
|
-
"description": "
|
|
411
|
+
"description": "Agent runtime settings follow Claude Code managed settings. Praxis freezes output-style selection for each new session; inline output_styles extend file-based styles. Omit settings to keep saved settings; null clears them."
|
|
405
412
|
},
|
|
406
413
|
{
|
|
407
414
|
"name": "models",
|
|
@@ -438,6 +445,13 @@ export const operations = [
|
|
|
438
445
|
],
|
|
439
446
|
"required": false,
|
|
440
447
|
"description": "Optional tool preset. minimal enables read, glob, grep and ask_user_question; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor."
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "output_styles",
|
|
451
|
+
"type": "array",
|
|
452
|
+
"itemType": "object",
|
|
453
|
+
"required": false,
|
|
454
|
+
"description": "Inline custom output styles, including for agents without a computer. Omit to keep the saved list; null or [] clears it. Same-name precedence is inline, project files, personal files, then plugins. Selection is settings.outputStyle; styles apply to main conversations and are frozen per session."
|
|
441
455
|
}
|
|
442
456
|
]
|
|
443
457
|
}
|
|
@@ -3967,7 +3981,7 @@ export const operations = [
|
|
|
3967
3981
|
"name": "timeout_ms",
|
|
3968
3982
|
"type": "number",
|
|
3969
3983
|
"required": false,
|
|
3970
|
-
"description": "Positive integer milliseconds; code defaults to and is capped at
|
|
3984
|
+
"description": "Positive integer milliseconds; code defaults to and is capped at 300,000. container/shell are not yet available."
|
|
3971
3985
|
},
|
|
3972
3986
|
{
|
|
3973
3987
|
"name": "implementation",
|
|
@@ -4017,7 +4031,7 @@ export const operations = [
|
|
|
4017
4031
|
"resource": "automation.actions",
|
|
4018
4032
|
"method": "update",
|
|
4019
4033
|
"summary": "Update an action",
|
|
4020
|
-
"description": "Update after checking compatibility against the current and five recent revisions. Widening inputs and narrowing outputs are compatible, including length, item count, property count, type (integer/number), and multipleOf (the new input factor divides the old one; the reverse holds for outputs). dry_run=true returns only CompatResult and may omit If-Match; a supplied header is still checked, and * matches any existing representation. Normal updates require If-Match and return ActionDef with ETag; previews return no ETag. Omitted optional fields retain their existing values only for description and labels; when constructing a new revision, errors defaults to [], omitted annotations keys to false, timeout_ms to
|
|
4034
|
+
"description": "Update after checking compatibility against the current and five recent revisions. Widening inputs and narrowing outputs are compatible, including length, item count, property count, type (integer/number), and multipleOf (the new input factor divides the old one; the reverse holds for outputs). dry_run=true returns only CompatResult and may omit If-Match; a supplied header is still checked, and * matches any existing representation. Normal updates require If-Match and return ActionDef with ETag; previews return no ETag. Omitted optional fields retain their existing values only for description and labels; when constructing a new revision, errors defaults to [], omitted annotations keys to false, timeout_ms to 300000, and message to null. Incompatible normal updates return 422 SCHEMA_INCOMPATIBLE with issues; unchanged contents retain the existing revision.",
|
|
4021
4035
|
"http": "PUT",
|
|
4022
4036
|
"path": "/automation/v1/actions/{ns}/{name}",
|
|
4023
4037
|
"streaming": "no",
|
|
@@ -4086,7 +4100,7 @@ export const operations = [
|
|
|
4086
4100
|
"name": "timeout_ms",
|
|
4087
4101
|
"type": "number",
|
|
4088
4102
|
"required": false,
|
|
4089
|
-
"description": "Positive integer milliseconds; code defaults to and is capped at
|
|
4103
|
+
"description": "Positive integer milliseconds; code defaults to and is capped at 300,000. container/shell are not yet available."
|
|
4090
4104
|
},
|
|
4091
4105
|
{
|
|
4092
4106
|
"name": "implementation",
|
|
@@ -4761,7 +4775,7 @@ export const operations = [
|
|
|
4761
4775
|
"resource": "automation.runs",
|
|
4762
4776
|
"method": "create",
|
|
4763
4777
|
"summary": "Run a published target or execute draft source",
|
|
4764
|
-
"description": "Execute a published script or workflow with target, or test unpublished code directly with source and language (ts for TypeScript, yaml for workflow YAML), without first saving or publishing a definition. Minimal script: `export default async ({ file_id }: { file_id: string }) => { const result = await call(\"ocr\", { document: { type: \"file\", file_id } }); return result; }`; send it as source with language=\"ts\", input={\"file_id\":\"<uploaded file ID>\"} and wait=0, using a PDF or image already uploaded to your account. To call a platform API directly in the same script, use the praxis SDK object, for example `praxis.model.ocr.create({ body: { model: \"glm-ocr\", document: { type: \"file\", file_id } } })`; Action IDs are strings passed to call(), not SDK methods such as praxis.ocr(...). praxis, call, invoke, console and codemode are module-scope bindings, not on globalThis, and need no import; invoke(\"namespace/name\", input) starts a child run. target and source are mutually exclusive; target accepts ns/name@version, @tag or @range and defaults to latest when @ is omitted. Source/input validation precedes run creation, so a separate validate call is optional. input defaults to {} and must match the input schema and fit within 1 MiB. wait is 0–60 seconds (default 0): a terminal run returns 200, otherwise 202. Use the returned id with praxis.automation.runs.retrieve and inspect status, output and error; acceptance does not mean successful completion. For long-running, background or batch work, use wait: 0 and poll the run, or split work into child runs or a workflow; wait only controls the response wait and does not extend execution limits. Actions time out after
|
|
4778
|
+
"description": "Execute a published script or workflow with target, or test unpublished code directly with source and language (ts for TypeScript, yaml for workflow YAML), without first saving or publishing a definition. Minimal script: `export default async ({ file_id }: { file_id: string }) => { const result = await call(\"ocr\", { document: { type: \"file\", file_id } }); return result; }`; send it as source with language=\"ts\", input={\"file_id\":\"<uploaded file ID>\"} and wait=0, using a PDF or image already uploaded to your account. To call a platform API directly in the same script, use the praxis SDK object, for example `praxis.model.ocr.create({ body: { model: \"glm-ocr\", document: { type: \"file\", file_id } } })`; Action IDs are strings passed to call(), not SDK methods such as praxis.ocr(...). praxis, call, invoke, console and codemode are module-scope bindings, not on globalThis, and need no import; invoke(\"namespace/name\", input) starts a child run. target and source are mutually exclusive; target accepts ns/name@version, @tag or @range and defaults to latest when @ is omitted. Source/input validation precedes run creation, so a separate validate call is optional. input defaults to {} and must match the input schema and fit within 1 MiB. wait is 0–60 seconds (default 0): a terminal run returns 200, otherwise 202. Use the returned id with praxis.automation.runs.retrieve and inspect status, output and error; acceptance does not mean successful completion. For long-running, background or batch work, use wait: 0 and poll the run, or split work into child runs or a workflow; wait only controls the response wait and does not extend execution limits. Actions time out after 5 min (run-sandbox after 6 h); scripts have a 30 min wall-clock limit and a 30 s CPU limit; workflows default to 24 h and allow up to 30 days. Each run can start at most 1,000 child runs, with at most 100 active at once; nesting depth is limited to 10. Idempotency-Key is scoped to tenant, method and path for 24 hours, excluding wait from the fingerprint; replay returns the current run with Idempotent-Replayed: true, changed contents return 422 and an in-flight request returns 409. With language=yaml, source is a workflow YAML: the run input is . in the first step, and the shape is described in create workflow. Error details are in errors[] (pointer, detail, hint). New non-deterministic run IDs contain 78 characters, compared with 46 for legacy random IDs; treat IDs as opaque strings. Historical and deterministic IDs remain valid; same-millisecond order is not guaranteed.",
|
|
4765
4779
|
"http": "POST",
|
|
4766
4780
|
"path": "/automation/v1/runs",
|
|
4767
4781
|
"streaming": "no",
|
|
@@ -6399,7 +6413,7 @@ export const operations = [
|
|
|
6399
6413
|
"resource": "automation.workflows",
|
|
6400
6414
|
"method": "create",
|
|
6401
6415
|
"summary": "Create a workflow",
|
|
6402
|
-
"description": "Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax. Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl (\"1.0.3\"), namespace, name and version, plus a do list of steps, for example document: {dsl: \"1.0.3\", namespace: demo, name: add, version: \"1.0.0\"} and do: [{first: {call: demo/add-one, with: {n: \"${ .n }\"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action
|
|
6416
|
+
"description": "Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax. Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl (\"1.0.3\"), namespace, name and version, plus a do list of steps, for example document: {dsl: \"1.0.3\", namespace: demo, name: add, version: \"1.0.0\"} and do: [{first: {call: demo/add-one, with: {n: \"${ .n }\"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action 5 min (run-sandbox 6 h), workflow 24 h by default and 30 days at most, payload 1 MiB. Test the draft by sending its source and language=yaml to praxis.automation.runs.create. To pause for a person, call praxis/approval (it opens a human task; the step output is the decision); agents answer with praxis.automation.humanTasks.respond on behalf of their user. Guide: /docs/developers/automation/guides/approvals Guide: /docs/developers/automation/guides/write-workflow. Error details are in the errors[] of the response (pointer, detail, hint). Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. run.workflow accepts ns/name@range or {namespace, name, version, input}; run.script uses the same reference shape as a platform extension. Object namespace, name and version are required; version accepts an exact version, dist-tag or range, locked at publication. Object input defaults to {} and supports expressions; string references retain task-level with. run.await defaults to true and returns the child output. With false, the child uses detach and the task immediately returns {run_id}; parent cancellation does not cascade. Inline script.code returns DEFINITION_INVALID with a detail asking you to save a script and reference it first. raise.error retains its type URI, status, title and detail in the run error.",
|
|
6403
6417
|
"http": "POST",
|
|
6404
6418
|
"path": "/automation/v1/workflows",
|
|
6405
6419
|
"streaming": "no",
|
|
@@ -7494,6 +7508,12 @@ export const operations = [
|
|
|
7494
7508
|
"type": "string",
|
|
7495
7509
|
"required": false,
|
|
7496
7510
|
"description": "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
|
|
7511
|
+
},
|
|
7512
|
+
{
|
|
7513
|
+
"name": "collection_id",
|
|
7514
|
+
"type": "string",
|
|
7515
|
+
"required": false,
|
|
7516
|
+
"description": "Filter to a collection id from collections.list, or the literal none for uncategorized canvases. Omit to list all canvases; keep the same filter when following next_cursor."
|
|
7497
7517
|
}
|
|
7498
7518
|
]
|
|
7499
7519
|
},
|
|
@@ -7556,6 +7576,41 @@ export const operations = [
|
|
|
7556
7576
|
],
|
|
7557
7577
|
"query": []
|
|
7558
7578
|
},
|
|
7579
|
+
{
|
|
7580
|
+
"resource": "canvas.canvases",
|
|
7581
|
+
"method": "update",
|
|
7582
|
+
"summary": "Update canvas",
|
|
7583
|
+
"description": "Rename a canvas or move it to a collection without editing its design content. Use a canvas id from canvases.list and a collection id from collections.list. Send collection_id=null to make it uncategorized; omit either field to preserve its current value. A canvas belongs to at most one collection. The destination must belong to your organization. Renaming keeps the canvas version unchanged.",
|
|
7584
|
+
"http": "PATCH",
|
|
7585
|
+
"path": "/canvas/v1/canvases/{canvas_id}",
|
|
7586
|
+
"streaming": "no",
|
|
7587
|
+
"pagination": false,
|
|
7588
|
+
"pathParams": [
|
|
7589
|
+
{
|
|
7590
|
+
"name": "canvas_id",
|
|
7591
|
+
"sdkName": "canvas_id",
|
|
7592
|
+
"description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
|
|
7593
|
+
}
|
|
7594
|
+
],
|
|
7595
|
+
"query": [],
|
|
7596
|
+
"body": {
|
|
7597
|
+
"required": true,
|
|
7598
|
+
"fields": [
|
|
7599
|
+
{
|
|
7600
|
+
"name": "name",
|
|
7601
|
+
"type": "string",
|
|
7602
|
+
"required": false,
|
|
7603
|
+
"description": "New canvas display name; surrounding whitespace is trimmed, blank names use Untitled, and omission preserves the current name."
|
|
7604
|
+
},
|
|
7605
|
+
{
|
|
7606
|
+
"name": "collection_id",
|
|
7607
|
+
"type": "string",
|
|
7608
|
+
"required": false,
|
|
7609
|
+
"description": "Move to this collection id from collections.list; null removes the canvas from its collection. Omission preserves the current assignment."
|
|
7610
|
+
}
|
|
7611
|
+
]
|
|
7612
|
+
}
|
|
7613
|
+
},
|
|
7559
7614
|
{
|
|
7560
7615
|
"resource": "canvas.canvases.images",
|
|
7561
7616
|
"method": "list",
|
|
@@ -7573,6 +7628,12 @@ export const operations = [
|
|
|
7573
7628
|
}
|
|
7574
7629
|
],
|
|
7575
7630
|
"query": [
|
|
7631
|
+
{
|
|
7632
|
+
"name": "version",
|
|
7633
|
+
"type": "string",
|
|
7634
|
+
"required": false,
|
|
7635
|
+
"description": "Decimal version from versions.list, or its earliest_restorable_version, for a read-only historical snapshot; omit to read current state. Unavailable versions return VERSION_NOT_FOUND."
|
|
7636
|
+
},
|
|
7576
7637
|
{
|
|
7577
7638
|
"name": "ids",
|
|
7578
7639
|
"type": "string",
|
|
@@ -7613,6 +7674,12 @@ export const operations = [
|
|
|
7613
7674
|
}
|
|
7614
7675
|
],
|
|
7615
7676
|
"query": [
|
|
7677
|
+
{
|
|
7678
|
+
"name": "version",
|
|
7679
|
+
"type": "string",
|
|
7680
|
+
"required": false,
|
|
7681
|
+
"description": "Decimal version from versions.list, or its earliest_restorable_version, for a read-only historical snapshot; omit to read current state. Unavailable versions return VERSION_NOT_FOUND."
|
|
7682
|
+
},
|
|
7616
7683
|
{
|
|
7617
7684
|
"name": "ids",
|
|
7618
7685
|
"type": "string",
|
|
@@ -7627,11 +7694,42 @@ export const operations = [
|
|
|
7627
7694
|
}
|
|
7628
7695
|
]
|
|
7629
7696
|
},
|
|
7697
|
+
{
|
|
7698
|
+
"resource": "canvas.canvases.versions",
|
|
7699
|
+
"method": "list",
|
|
7700
|
+
"summary": "List canvas versions",
|
|
7701
|
+
"description": "Inspect retained edits before restoring a canvas or reading historical nodes and images. Supply a canvas_id from canvases.list or create. Results include successful execute, import and restore commits since history was enabled, newest first. limit is 1–100 and defaults to 30; pass next_cursor as cursor until it is null. All versions from the last 30 days are retained unless the 256 MiB history budget requires pruning; the newest 100 versions are always retained regardless of age or size. earliest_restorable_version is the oldest readable and restorable version, including the state immediately before the first retained commit; null means no history has been recorded. Listing does not change the canvas.",
|
|
7702
|
+
"http": "GET",
|
|
7703
|
+
"path": "/canvas/v1/canvases/{canvas_id}/versions",
|
|
7704
|
+
"streaming": "no",
|
|
7705
|
+
"pagination": false,
|
|
7706
|
+
"pathParams": [
|
|
7707
|
+
{
|
|
7708
|
+
"name": "canvas_id",
|
|
7709
|
+
"sdkName": "canvas_id",
|
|
7710
|
+
"description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
|
|
7711
|
+
}
|
|
7712
|
+
],
|
|
7713
|
+
"query": [
|
|
7714
|
+
{
|
|
7715
|
+
"name": "limit",
|
|
7716
|
+
"type": "integer",
|
|
7717
|
+
"required": false,
|
|
7718
|
+
"description": "Maximum commits to return, from 1 to 100 inclusive; omission uses 30."
|
|
7719
|
+
},
|
|
7720
|
+
{
|
|
7721
|
+
"name": "cursor",
|
|
7722
|
+
"type": "string",
|
|
7723
|
+
"required": false,
|
|
7724
|
+
"description": "Copy next_cursor from the preceding page to continue toward older commits; omit for the first page."
|
|
7725
|
+
}
|
|
7726
|
+
]
|
|
7727
|
+
},
|
|
7630
7728
|
{
|
|
7631
7729
|
"resource": "canvas.canvases",
|
|
7632
7730
|
"method": "execute",
|
|
7633
7731
|
"summary": "Execute canvas script",
|
|
7634
|
-
"description": "Draw or edit a canvas atomically with a synchronous Pencil execute script. First create a canvas with praxis.canvas.canvases.create and use its id as canvas_id; inspect an existing canvas with retrieve before modifying it. Send exactly one of script (new source) or edit_id (a failed script to patch using edits). Unlike Figma REST, :execute writes design content; nodes use Pencil .pen schema 2.21 (frame/group/rectangle/ellipse/polygon/path/text/icon/ref/note), not Figma node fields.\n\nThe root variable is document. Synchronous functions are Insert / Copy / Update / Replace / Move / Delete / SetVariables / Get / GetVariables / FindEmptySpace / Print / TakeScreenshot; globals persist for the next call. A first frame needs only this body.script:\n\n```js\nconst f = Insert(document, { type: \"frame\", name: \"Hero\", width: 1200, layout: \"vertical\", padding: 48, fill: \"#FFFFFF\" }); Insert(f, { type: \"text\", content: \"Hello\", fontSize: 32, fill: \"#111111\" }); Print(f)\n```\n\nUse viewer_url to watch the result in Console. TakeScreenshot records node ids in screenshots; call images.list with those ids to fetch PNG data URLs. See the [Canvas execute reference](https://deepraxis.com/en/docs/api/native/canvas/execute) for request fields and results, and the [Canvas node reference](https://deepraxis.com/en/docs/developers/canvas/nodes) for node content.\n\nA successful write increments version by one. Optionally set expected_version to the version from retrieve or nodes.list; on 409 REVISION_CONFLICT read again, merge your intent and retry with the current version. Every script failure rolls back all writes. On 400 SCRIPT_ERROR, SCRIPT_LIMIT or OPS_REJECTED, use error.details.edit_id plus edits to repair and rerun the stored source without resending the entire script; details may include line, column and rejection. On 400 EDIT_EXPIRED the saved script is older than ten minutes: submit a corrected new script. On 429 CANVAS_BUSY, more than four calls are queued for this canvas: wait for pending calls before retrying.\n",
|
|
7732
|
+
"description": "Draw or edit a canvas atomically with a synchronous Pencil execute script. First create a canvas with praxis.canvas.canvases.create and use its id as canvas_id; inspect an existing canvas with retrieve before modifying it. Send exactly one of script (new source) or edit_id (a failed script to patch using edits). Unlike Figma REST, :execute writes design content; nodes use Pencil .pen schema 2.21 (frame/group/rectangle/ellipse/polygon/path/text/icon/ref/note), not Figma node fields.\n\nThe root variable is document. Synchronous functions are Insert / Copy / Update / Replace / Move / Delete / SetVariables / Get / GetVariables / FindEmptySpace / Print / TakeScreenshot; globals persist for the next call. A first frame needs only this body.script:\n\n```js\nconst f = Insert(document, { type: \"frame\", name: \"Hero\", width: 1200, layout: \"vertical\", padding: 48, fill: \"#FFFFFF\" }); Insert(f, { type: \"text\", content: \"Hello\", fontSize: 32, fill: \"#111111\" }); Print(f)\n```\n\nInsert/Copy return the new node id; read the copy with Get(id) — copied descendants get new ids, so change them through Copy's third argument `descendants` keyed by the source node ids. To copy a page and change its title in the same script:\n\n```js canvas-example=\"copy-page\"\nconst page = Insert(document, {type:\"frame\",name:\"Original\",width:320,height:160,layout:\"vertical\",padding:16});\nconst title = Insert(page, {type:\"text\",name:\"Title\",content:\"Original\",fontSize:24});\nconst copy = Copy(page, document, {name:\"Copy\",x:360,descendants:{[title]:{content:\"Updated\"}}});\nPrint(copy); Print(Get(copy).children[0].content);\n```\n\nUse viewer_url to watch the result in Console. TakeScreenshot records node ids in screenshots; call images.list with those ids to fetch PNG data URLs. See the [Canvas execute reference](https://deepraxis.com/en/docs/api/native/canvas/execute) for request fields and results, and the [Canvas node reference](https://deepraxis.com/en/docs/developers/canvas/nodes) for node content.\n\nA successful write increments version by one. Optionally set expected_version to the version from retrieve or nodes.list; on 409 REVISION_CONFLICT read again, merge your intent and retry with the current version. Every script failure rolls back all writes. On 400 SCRIPT_ERROR, SCRIPT_LIMIT or OPS_REJECTED, use error.details.edit_id plus edits to repair and rerun the stored source without resending the entire script; details may include line, column and rejection. On 400 EDIT_EXPIRED the saved script is older than ten minutes: submit a corrected new script. On 429 CANVAS_BUSY, more than four calls are queued for this canvas: wait for pending calls before retrying.\n\nExecution errors include error.details.prints containing output printed before failure, with the same string-array shape and output limit as successful prints; rolled-back writes still create no version.\n",
|
|
7635
7733
|
"http": "POST",
|
|
7636
7734
|
"path": "/canvas/v1/canvases/{canvas_id}:execute",
|
|
7637
7735
|
"streaming": "no",
|
|
@@ -7676,85 +7774,59 @@ export const operations = [
|
|
|
7676
7774
|
}
|
|
7677
7775
|
},
|
|
7678
7776
|
{
|
|
7679
|
-
"resource": "
|
|
7680
|
-
"method": "
|
|
7681
|
-
"summary": "
|
|
7682
|
-
"description": "
|
|
7683
|
-
"http": "GET",
|
|
7684
|
-
"path": "/cut/v1/exports/{export_id}",
|
|
7685
|
-
"streaming": "no",
|
|
7686
|
-
"pagination": false,
|
|
7687
|
-
"pathParams": [
|
|
7688
|
-
{
|
|
7689
|
-
"name": "export_id",
|
|
7690
|
-
"sdkName": "export_id",
|
|
7691
|
-
"description": "Export identifier returned by its create or list operation; use the id, not a display name."
|
|
7692
|
-
}
|
|
7693
|
-
],
|
|
7694
|
-
"query": []
|
|
7695
|
-
},
|
|
7696
|
-
{
|
|
7697
|
-
"resource": "cut.exports",
|
|
7698
|
-
"method": "cancel",
|
|
7699
|
-
"summary": "Cancel video export",
|
|
7700
|
-
"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.",
|
|
7777
|
+
"resource": "canvas.canvases",
|
|
7778
|
+
"method": "restore",
|
|
7779
|
+
"summary": "Restore canvas version",
|
|
7780
|
+
"description": "Recover a canvas after an unwanted edit by restoring a retained version from versions.list or its earliest_restorable_version. This replaces current nodes, variables and themes with the target state and creates one new version; history remains available, so restoring can itself be undone with another restore. Restoring the current version succeeds without creating a version. Optionally guard the write with expected_version from retrieve or nodes.list; if it is stale, inspect current state and retry with the new value. Repeating an unguarded request after another edit can create another restore version. Versions from before history was enabled or outside retention cannot be recovered. Connected viewers resync after a successful restore.",
|
|
7701
7781
|
"http": "POST",
|
|
7702
|
-
"path": "/
|
|
7782
|
+
"path": "/canvas/v1/canvases/{canvas_id}:restore",
|
|
7703
7783
|
"streaming": "no",
|
|
7704
7784
|
"pagination": false,
|
|
7705
7785
|
"pathParams": [
|
|
7706
7786
|
{
|
|
7707
|
-
"name": "
|
|
7708
|
-
"sdkName": "
|
|
7709
|
-
"description": "
|
|
7787
|
+
"name": "canvas_id",
|
|
7788
|
+
"sdkName": "canvas_id",
|
|
7789
|
+
"description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
|
|
7710
7790
|
}
|
|
7711
7791
|
],
|
|
7712
|
-
"query": []
|
|
7792
|
+
"query": [],
|
|
7793
|
+
"body": {
|
|
7794
|
+
"required": true,
|
|
7795
|
+
"fields": [
|
|
7796
|
+
{
|
|
7797
|
+
"name": "version",
|
|
7798
|
+
"type": "string",
|
|
7799
|
+
"required": true,
|
|
7800
|
+
"description": "Historical target from versions.list or earliest_restorable_version; restoring the current version creates no new commit."
|
|
7801
|
+
},
|
|
7802
|
+
{
|
|
7803
|
+
"name": "expected_version",
|
|
7804
|
+
"type": "string",
|
|
7805
|
+
"required": false,
|
|
7806
|
+
"description": "Current version from retrieve or nodes.list to guard against concurrent edits; omission applies the restore to whichever version is current."
|
|
7807
|
+
}
|
|
7808
|
+
]
|
|
7809
|
+
}
|
|
7713
7810
|
},
|
|
7714
7811
|
{
|
|
7715
|
-
"resource": "
|
|
7812
|
+
"resource": "canvas.collections",
|
|
7716
7813
|
"method": "list",
|
|
7717
|
-
"summary": "List
|
|
7718
|
-
"description": "
|
|
7814
|
+
"summary": "List collections",
|
|
7815
|
+
"description": "Find collections and ids for filtering or moving canvases. All organization collections are returned in name order in one response; next_cursor is always null. canvas_count excludes deleted canvases. total_count counts all live canvases, rather than collections, and uncategorized_count counts live canvases without a collection. Use canvases.list with collection_id to read a collection or none to read uncategorized canvases.",
|
|
7719
7816
|
"http": "GET",
|
|
7720
|
-
"path": "/
|
|
7817
|
+
"path": "/canvas/v1/collections",
|
|
7721
7818
|
"streaming": "no",
|
|
7722
7819
|
"pagination": false,
|
|
7723
7820
|
"pathParams": [],
|
|
7724
|
-
"query": [
|
|
7725
|
-
{
|
|
7726
|
-
"name": "page_size",
|
|
7727
|
-
"type": "integer",
|
|
7728
|
-
"required": false,
|
|
7729
|
-
"description": "Maximum resources in one page, from 1 to 100; defaults to 50."
|
|
7730
|
-
},
|
|
7731
|
-
{
|
|
7732
|
-
"name": "page_token",
|
|
7733
|
-
"type": "string",
|
|
7734
|
-
"required": false,
|
|
7735
|
-
"description": "Opaque next_page_token from the preceding page; omit on the first request."
|
|
7736
|
-
},
|
|
7737
|
-
{
|
|
7738
|
-
"name": "filter",
|
|
7739
|
-
"type": "string",
|
|
7740
|
-
"required": false,
|
|
7741
|
-
"description": "Optional resource filter; projects supports state = \"active\" or state = \"deleted\"."
|
|
7742
|
-
},
|
|
7743
|
-
{
|
|
7744
|
-
"name": "order_by",
|
|
7745
|
-
"type": "string",
|
|
7746
|
-
"required": false,
|
|
7747
|
-
"description": "Optional ordering expression; projects supports updateTime desc."
|
|
7748
|
-
}
|
|
7749
|
-
]
|
|
7821
|
+
"query": []
|
|
7750
7822
|
},
|
|
7751
7823
|
{
|
|
7752
|
-
"resource": "
|
|
7824
|
+
"resource": "canvas.collections",
|
|
7753
7825
|
"method": "create",
|
|
7754
|
-
"summary": "Create
|
|
7755
|
-
"description": "
|
|
7826
|
+
"summary": "Create collection",
|
|
7827
|
+
"description": "Organize canvases by creating a one-level collection in your organization. Send a name of 1–100 characters after trimming; duplicate names are allowed. Each call creates a new collection, initially containing no canvases. Use canvases.update with its id as collection_id to move existing canvases into it. Collections cannot be nested and an organization can have at most 200.",
|
|
7756
7828
|
"http": "POST",
|
|
7757
|
-
"path": "/
|
|
7829
|
+
"path": "/canvas/v1/collections",
|
|
7758
7830
|
"streaming": "no",
|
|
7759
7831
|
"pagination": false,
|
|
7760
7832
|
"pathParams": [],
|
|
@@ -7766,87 +7838,61 @@ export const operations = [
|
|
|
7766
7838
|
"name": "name",
|
|
7767
7839
|
"type": "string",
|
|
7768
7840
|
"required": true,
|
|
7769
|
-
"description": "
|
|
7770
|
-
},
|
|
7771
|
-
{
|
|
7772
|
-
"name": "labels",
|
|
7773
|
-
"type": "object",
|
|
7774
|
-
"required": false,
|
|
7775
|
-
"description": "User-defined string labels for organizing projects; label keys retain their original spelling."
|
|
7776
|
-
},
|
|
7777
|
-
{
|
|
7778
|
-
"name": "settings",
|
|
7779
|
-
"type": "object",
|
|
7780
|
-
"required": true,
|
|
7781
|
-
"description": "Dimensions and frame rate for a new editing project."
|
|
7782
|
-
},
|
|
7783
|
-
{
|
|
7784
|
-
"name": "bindings",
|
|
7785
|
-
"type": "array",
|
|
7786
|
-
"itemType": "object",
|
|
7787
|
-
"required": true,
|
|
7788
|
-
"description": "Accessible library bindings; exactly one read_write entry must have default_upload true."
|
|
7841
|
+
"description": "Collection display name, 1–100 characters after trimming surrounding whitespace; duplicate names within the organization are allowed."
|
|
7789
7842
|
}
|
|
7790
7843
|
]
|
|
7791
7844
|
}
|
|
7792
7845
|
},
|
|
7793
7846
|
{
|
|
7794
|
-
"resource": "
|
|
7847
|
+
"resource": "canvas.collections",
|
|
7795
7848
|
"method": "delete",
|
|
7796
|
-
"summary": "Delete
|
|
7797
|
-
"description": "
|
|
7849
|
+
"summary": "Delete collection",
|
|
7850
|
+
"description": "Remove a collection using an id from collections.list. All its canvases are preserved and become uncategorized, with collection_id set to null; read them using canvases.list with collection_id=none. The removed collection cannot be retrieved again, and repeating deletion returns COLLECTION_NOT_FOUND.",
|
|
7798
7851
|
"http": "DELETE",
|
|
7799
|
-
"path": "/
|
|
7852
|
+
"path": "/canvas/v1/collections/{collection_id}",
|
|
7800
7853
|
"streaming": "no",
|
|
7801
7854
|
"pagination": false,
|
|
7802
7855
|
"pathParams": [
|
|
7803
7856
|
{
|
|
7804
|
-
"name": "
|
|
7805
|
-
"sdkName": "
|
|
7806
|
-
"description": "
|
|
7857
|
+
"name": "collection_id",
|
|
7858
|
+
"sdkName": "collection_id",
|
|
7859
|
+
"description": "Collection id from collections.create or collections.list, in the form col_ followed by 16 lowercase letters or digits; a display name is not an identifier."
|
|
7807
7860
|
}
|
|
7808
7861
|
],
|
|
7809
7862
|
"query": []
|
|
7810
7863
|
},
|
|
7811
7864
|
{
|
|
7812
|
-
"resource": "
|
|
7865
|
+
"resource": "canvas.collections",
|
|
7813
7866
|
"method": "retrieve",
|
|
7814
|
-
"summary": "Retrieve
|
|
7815
|
-
"description": "Inspect
|
|
7867
|
+
"summary": "Retrieve collection",
|
|
7868
|
+
"description": "Inspect one collection and its current live canvas count using an id from collections.list or collections.create. The collection must belong to the API key organization. To read its canvases, pass the same id as collection_id to canvases.list; this response contains collection metadata only.",
|
|
7816
7869
|
"http": "GET",
|
|
7817
|
-
"path": "/
|
|
7870
|
+
"path": "/canvas/v1/collections/{collection_id}",
|
|
7818
7871
|
"streaming": "no",
|
|
7819
7872
|
"pagination": false,
|
|
7820
7873
|
"pathParams": [
|
|
7821
7874
|
{
|
|
7822
|
-
"name": "
|
|
7823
|
-
"sdkName": "
|
|
7824
|
-
"description": "
|
|
7875
|
+
"name": "collection_id",
|
|
7876
|
+
"sdkName": "collection_id",
|
|
7877
|
+
"description": "Collection id from collections.create or collections.list, in the form col_ followed by 16 lowercase letters or digits; a display name is not an identifier."
|
|
7825
7878
|
}
|
|
7826
7879
|
],
|
|
7827
|
-
"query": [
|
|
7828
|
-
{
|
|
7829
|
-
"name": "expand",
|
|
7830
|
-
"type": "string",
|
|
7831
|
-
"required": false,
|
|
7832
|
-
"description": "Comma-separated expansions: timeline includes clips, exports includes render jobs, versions includes saved snapshots."
|
|
7833
|
-
}
|
|
7834
|
-
]
|
|
7880
|
+
"query": []
|
|
7835
7881
|
},
|
|
7836
7882
|
{
|
|
7837
|
-
"resource": "
|
|
7883
|
+
"resource": "canvas.collections",
|
|
7838
7884
|
"method": "update",
|
|
7839
|
-
"summary": "
|
|
7840
|
-
"description": "Change the
|
|
7885
|
+
"summary": "Rename collection",
|
|
7886
|
+
"description": "Change the display name of a collection from collections.list without changing its id or canvas assignments. Names contain 1–100 characters after trimming and may match another collection name. This operation does not move canvases; use canvases.update with collection_id for that.",
|
|
7841
7887
|
"http": "PATCH",
|
|
7842
|
-
"path": "/
|
|
7888
|
+
"path": "/canvas/v1/collections/{collection_id}",
|
|
7843
7889
|
"streaming": "no",
|
|
7844
7890
|
"pagination": false,
|
|
7845
7891
|
"pathParams": [
|
|
7846
7892
|
{
|
|
7847
|
-
"name": "
|
|
7848
|
-
"sdkName": "
|
|
7849
|
-
"description": "
|
|
7893
|
+
"name": "collection_id",
|
|
7894
|
+
"sdkName": "collection_id",
|
|
7895
|
+
"description": "Collection id from collections.create or collections.list, in the form col_ followed by 16 lowercase letters or digits; a display name is not an identifier."
|
|
7850
7896
|
}
|
|
7851
7897
|
],
|
|
7852
7898
|
"query": [],
|
|
@@ -7856,64 +7902,1962 @@ export const operations = [
|
|
|
7856
7902
|
{
|
|
7857
7903
|
"name": "name",
|
|
7858
7904
|
"type": "string",
|
|
7859
|
-
"required": false,
|
|
7860
|
-
"description": "Replacement display name when update_mask includes name."
|
|
7861
|
-
},
|
|
7862
|
-
{
|
|
7863
|
-
"name": "labels",
|
|
7864
|
-
"type": "object",
|
|
7865
|
-
"required": false,
|
|
7866
|
-
"description": "User-defined string labels for organizing projects; label keys retain their original spelling."
|
|
7867
|
-
},
|
|
7868
|
-
{
|
|
7869
|
-
"name": "update_mask",
|
|
7870
|
-
"type": "array",
|
|
7871
|
-
"itemType": "string",
|
|
7872
|
-
"enum": [
|
|
7873
|
-
"name",
|
|
7874
|
-
"labels"
|
|
7875
|
-
],
|
|
7876
7905
|
"required": true,
|
|
7877
|
-
"description": "
|
|
7906
|
+
"description": "Collection display name, 1–100 characters after trimming surrounding whitespace; duplicate names within the organization are allowed."
|
|
7878
7907
|
}
|
|
7879
7908
|
]
|
|
7880
7909
|
}
|
|
7881
7910
|
},
|
|
7882
7911
|
{
|
|
7883
|
-
"resource": "
|
|
7884
|
-
"method": "
|
|
7885
|
-
"summary": "
|
|
7886
|
-
"description": "
|
|
7912
|
+
"resource": "crm.changes",
|
|
7913
|
+
"method": "revert",
|
|
7914
|
+
"summary": "Revert change set",
|
|
7915
|
+
"description": "Reverse property changes made by one earlier request. Unlike HubSpot, CRM exposes change-set reversal because agents need to undo a whole recorded action rather than manually reconstructing individual values. Supply the changeSetId recorded in property history. A later conflicting value prevents reversal with HTTP 409 CONFLICT; inspect current records before resolving the conflict. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
7887
7916
|
"http": "POST",
|
|
7888
|
-
"path": "/
|
|
7917
|
+
"path": "/crm/v1/changes/{changeSetId}:revert",
|
|
7889
7918
|
"streaming": "no",
|
|
7890
7919
|
"pagination": false,
|
|
7891
7920
|
"pathParams": [
|
|
7892
7921
|
{
|
|
7893
|
-
"name": "
|
|
7894
|
-
"sdkName": "
|
|
7895
|
-
"description": "
|
|
7922
|
+
"name": "changeSetId",
|
|
7923
|
+
"sdkName": "changeSetId",
|
|
7924
|
+
"description": "Change-set identifier recorded for the original write in property history; one request forms one change set."
|
|
7896
7925
|
}
|
|
7897
7926
|
],
|
|
7898
|
-
"query": []
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
|
|
7927
|
+
"query": []
|
|
7928
|
+
},
|
|
7929
|
+
{
|
|
7930
|
+
"resource": "crm.layouts",
|
|
7931
|
+
"method": "retrieve",
|
|
7932
|
+
"summary": "Retrieve record layout",
|
|
7933
|
+
"description": "Read the shared record-page layout for an object type from schemas.list. Unlike HubSpot, CRM exposes this presentation as an API resource so people and agents can share the same record layout instead of relying on interface-only settings. The response orders summary tiles, sidebar properties and main-column sections.",
|
|
7934
|
+
"http": "GET",
|
|
7935
|
+
"path": "/crm/v1/layouts/{objectType}",
|
|
7936
|
+
"streaming": "no",
|
|
7937
|
+
"pagination": false,
|
|
7938
|
+
"pathParams": [
|
|
7939
|
+
{
|
|
7940
|
+
"name": "objectType",
|
|
7941
|
+
"sdkName": "objectType",
|
|
7942
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
7943
|
+
}
|
|
7944
|
+
],
|
|
7945
|
+
"query": []
|
|
7946
|
+
},
|
|
7947
|
+
{
|
|
7948
|
+
"resource": "crm.layouts",
|
|
7949
|
+
"method": "update",
|
|
7950
|
+
"summary": "Update record layout",
|
|
7951
|
+
"description": "Replace the shared record-page layout for an object type from schemas.list. Unlike HubSpot, CRM exposes this presentation as an API resource so agents can configure the same record view used by people. Send the complete layout with at most three summary tiles and property names from properties.list; omitted prior sections are removed. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
7952
|
+
"http": "PUT",
|
|
7953
|
+
"path": "/crm/v1/layouts/{objectType}",
|
|
7954
|
+
"streaming": "no",
|
|
7955
|
+
"pagination": false,
|
|
7956
|
+
"pathParams": [
|
|
7957
|
+
{
|
|
7958
|
+
"name": "objectType",
|
|
7959
|
+
"sdkName": "objectType",
|
|
7960
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
7961
|
+
}
|
|
7962
|
+
],
|
|
7963
|
+
"query": [],
|
|
7964
|
+
"body": {
|
|
7965
|
+
"required": true,
|
|
7966
|
+
"fields": [
|
|
7967
|
+
{
|
|
7968
|
+
"name": "objectType",
|
|
7969
|
+
"type": "string",
|
|
7970
|
+
"required": true,
|
|
7971
|
+
"description": "Object type whose record page uses this layout, matching the path parameter."
|
|
7972
|
+
},
|
|
7973
|
+
{
|
|
7974
|
+
"name": "summary",
|
|
7975
|
+
"type": "array",
|
|
7976
|
+
"itemType": "object",
|
|
7977
|
+
"required": true,
|
|
7978
|
+
"description": "Ordered statistic tiles below the record header, with at most three tiles."
|
|
7979
|
+
},
|
|
7980
|
+
{
|
|
7981
|
+
"name": "sidebar",
|
|
7982
|
+
"type": "array",
|
|
7983
|
+
"itemType": "string",
|
|
7984
|
+
"required": true,
|
|
7985
|
+
"description": "Ordered internal property names shown in the record property sidebar."
|
|
7986
|
+
},
|
|
7987
|
+
{
|
|
7988
|
+
"name": "sections",
|
|
7989
|
+
"type": "array",
|
|
7990
|
+
"itemType": "string",
|
|
7991
|
+
"required": true,
|
|
7992
|
+
"description": "Ordered main-column sections for activity, relationships, tables and property groups."
|
|
7993
|
+
}
|
|
7994
|
+
]
|
|
7995
|
+
}
|
|
7996
|
+
},
|
|
7997
|
+
{
|
|
7998
|
+
"resource": "crm.leads",
|
|
7999
|
+
"method": "qualify",
|
|
8000
|
+
"summary": "Qualify lead",
|
|
8001
|
+
"description": "Qualify a lead with explicit contact, company and optional deal choices in one operation. Unlike HubSpot, CRM exposes these decisions as a single action because qualification coordinates several related record edits rather than editing only the lead stage. Obtain leadId from objects.list for leads and qualifiedStageId from its pipeline; choose a won stage and satisfy its required properties. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
8002
|
+
"http": "POST",
|
|
8003
|
+
"path": "/crm/v1/leads/{leadId}:qualify",
|
|
8004
|
+
"streaming": "no",
|
|
8005
|
+
"pagination": false,
|
|
8006
|
+
"pathParams": [
|
|
8007
|
+
{
|
|
8008
|
+
"name": "leadId",
|
|
8009
|
+
"sdkName": "leadId",
|
|
8010
|
+
"description": "Lead record identifier from objects.list or objects.search with objectType=leads."
|
|
8011
|
+
}
|
|
8012
|
+
],
|
|
8013
|
+
"query": [],
|
|
8014
|
+
"body": {
|
|
8015
|
+
"required": true,
|
|
8016
|
+
"fields": [
|
|
8017
|
+
{
|
|
8018
|
+
"name": "contact",
|
|
8019
|
+
"type": "object",
|
|
8020
|
+
"required": true,
|
|
8021
|
+
"description": "Keep the existing contact, or merge it into the chosen contact record."
|
|
8022
|
+
},
|
|
8023
|
+
{
|
|
8024
|
+
"name": "company",
|
|
8025
|
+
"type": "object",
|
|
8026
|
+
"required": true,
|
|
8027
|
+
"description": "Leave company unchanged, associate an existing company, or create one with explicit properties."
|
|
8028
|
+
},
|
|
8029
|
+
{
|
|
8030
|
+
"name": "deal",
|
|
8031
|
+
"type": "object",
|
|
8032
|
+
"required": false,
|
|
8033
|
+
"description": "Optional deal to create as part of qualification; omit to qualify without creating a deal."
|
|
8034
|
+
},
|
|
8035
|
+
{
|
|
8036
|
+
"name": "qualifiedStageId",
|
|
8037
|
+
"type": "string",
|
|
8038
|
+
"required": true,
|
|
8039
|
+
"description": "Lead stage id with praxis_category=won, obtained from the leads pipeline."
|
|
8040
|
+
}
|
|
8041
|
+
]
|
|
8042
|
+
}
|
|
8043
|
+
},
|
|
8044
|
+
{
|
|
8045
|
+
"resource": "crm.objects",
|
|
8046
|
+
"method": "list",
|
|
8047
|
+
"summary": "List records",
|
|
8048
|
+
"description": "Browse records of one object type and obtain ids for retrieval or edits. Discover objectType with schemas.list; select properties by internal names from properties.list. Omit after for the first page, then copy paging.next.after until no next page is returned. archived defaults to false; use objects.search for property filters.",
|
|
8049
|
+
"http": "GET",
|
|
8050
|
+
"path": "/crm/v1/objects/{objectType}",
|
|
8051
|
+
"streaming": "no",
|
|
8052
|
+
"pagination": false,
|
|
8053
|
+
"pathParams": [
|
|
8054
|
+
{
|
|
8055
|
+
"name": "objectType",
|
|
8056
|
+
"sdkName": "objectType",
|
|
8057
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8058
|
+
}
|
|
8059
|
+
],
|
|
8060
|
+
"query": [
|
|
8061
|
+
{
|
|
8062
|
+
"name": "after",
|
|
8063
|
+
"type": "string",
|
|
8064
|
+
"required": false,
|
|
8065
|
+
"description": "The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results."
|
|
8066
|
+
},
|
|
8067
|
+
{
|
|
8068
|
+
"name": "archived",
|
|
8069
|
+
"type": "boolean",
|
|
8070
|
+
"required": false,
|
|
8071
|
+
"description": "Whether to return only results that have been archived."
|
|
8072
|
+
},
|
|
8073
|
+
{
|
|
8074
|
+
"name": "associations",
|
|
8075
|
+
"type": "array",
|
|
8076
|
+
"itemType": "string",
|
|
8077
|
+
"required": false,
|
|
8078
|
+
"description": "A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored."
|
|
8079
|
+
},
|
|
8080
|
+
{
|
|
8081
|
+
"name": "limit",
|
|
8082
|
+
"type": "integer",
|
|
8083
|
+
"required": false,
|
|
8084
|
+
"description": "The maximum number of results to display per page."
|
|
8085
|
+
},
|
|
8086
|
+
{
|
|
8087
|
+
"name": "properties",
|
|
8088
|
+
"type": "array",
|
|
8089
|
+
"itemType": "string",
|
|
8090
|
+
"required": false,
|
|
8091
|
+
"description": "A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored."
|
|
8092
|
+
},
|
|
8093
|
+
{
|
|
8094
|
+
"name": "propertiesWithHistory",
|
|
8095
|
+
"type": "array",
|
|
8096
|
+
"itemType": "string",
|
|
8097
|
+
"required": false,
|
|
8098
|
+
"description": "A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request."
|
|
8099
|
+
}
|
|
8100
|
+
]
|
|
8101
|
+
},
|
|
8102
|
+
{
|
|
8103
|
+
"resource": "crm.objects",
|
|
8104
|
+
"method": "create",
|
|
8105
|
+
"summary": "Create record",
|
|
8106
|
+
"description": "Create a customer record with property values and optional initial associations. Discover objectType with schemas.list and allowed property names with properties.list; save the returned id for subsequent calls. Each call creates a record. Example for contacts: {\"properties\":{\"email\":\"person@example.com\"}}. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
8107
|
+
"http": "POST",
|
|
8108
|
+
"path": "/crm/v1/objects/{objectType}",
|
|
8109
|
+
"streaming": "no",
|
|
8110
|
+
"pagination": false,
|
|
8111
|
+
"pathParams": [
|
|
8112
|
+
{
|
|
8113
|
+
"name": "objectType",
|
|
8114
|
+
"sdkName": "objectType",
|
|
8115
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8116
|
+
}
|
|
8117
|
+
],
|
|
8118
|
+
"query": [],
|
|
8119
|
+
"body": {
|
|
8120
|
+
"required": true,
|
|
8121
|
+
"fields": [
|
|
8122
|
+
{
|
|
8123
|
+
"name": "associations",
|
|
8124
|
+
"type": "array",
|
|
8125
|
+
"itemType": "object",
|
|
8126
|
+
"required": true,
|
|
8127
|
+
"description": "Initial relationships to existing records; choose destination ids and association type ids before creating the record."
|
|
8128
|
+
},
|
|
8129
|
+
{
|
|
8130
|
+
"name": "properties",
|
|
8131
|
+
"type": "object",
|
|
8132
|
+
"required": true,
|
|
8133
|
+
"description": "Key-value pairs for setting properties for the new object."
|
|
8134
|
+
}
|
|
8135
|
+
]
|
|
8136
|
+
}
|
|
8137
|
+
},
|
|
8138
|
+
{
|
|
8139
|
+
"resource": "crm.objects.batch",
|
|
8140
|
+
"method": "archive",
|
|
8141
|
+
"summary": "Batch archive records",
|
|
8142
|
+
"description": "Archive known records of one object type using inputs[].id from objects.list or objects.search. Archived records leave active lists but retain their history; confirm all ids before calling. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Unlike HubSpot, this own-face archive returns HTTP 200 with a JSON refs body instead of HTTP 204.",
|
|
8143
|
+
"http": "POST",
|
|
8144
|
+
"path": "/crm/v1/objects/{objectType}/batch/archive",
|
|
8145
|
+
"streaming": "no",
|
|
8146
|
+
"pagination": false,
|
|
8147
|
+
"pathParams": [
|
|
8148
|
+
{
|
|
8149
|
+
"name": "objectType",
|
|
8150
|
+
"sdkName": "objectType",
|
|
8151
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8152
|
+
}
|
|
8153
|
+
],
|
|
8154
|
+
"query": [],
|
|
8155
|
+
"body": {
|
|
8156
|
+
"required": true,
|
|
8157
|
+
"fields": [
|
|
8158
|
+
{
|
|
8159
|
+
"name": "inputs",
|
|
8160
|
+
"type": "array",
|
|
8161
|
+
"itemType": "object",
|
|
8162
|
+
"required": true,
|
|
8163
|
+
"description": "Records to process in this batch, each using the identifiers and properties described by its item schema."
|
|
8164
|
+
}
|
|
8165
|
+
]
|
|
8166
|
+
}
|
|
8167
|
+
},
|
|
8168
|
+
{
|
|
8169
|
+
"resource": "crm.objects.batch",
|
|
8170
|
+
"method": "create",
|
|
8171
|
+
"summary": "Batch create records",
|
|
8172
|
+
"description": "Create several records of one object type using inputs with properties and optional associations. Obtain property names from properties.list; each successful input creates a record, so inspect per-item errors before resubmitting failed inputs. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
8173
|
+
"http": "POST",
|
|
8174
|
+
"path": "/crm/v1/objects/{objectType}/batch/create",
|
|
8175
|
+
"streaming": "no",
|
|
8176
|
+
"pagination": false,
|
|
8177
|
+
"pathParams": [
|
|
8178
|
+
{
|
|
8179
|
+
"name": "objectType",
|
|
8180
|
+
"sdkName": "objectType",
|
|
8181
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8182
|
+
}
|
|
8183
|
+
],
|
|
8184
|
+
"query": [],
|
|
8185
|
+
"body": {
|
|
8186
|
+
"required": true,
|
|
8187
|
+
"fields": [
|
|
8188
|
+
{
|
|
8189
|
+
"name": "inputs",
|
|
8190
|
+
"type": "array",
|
|
8191
|
+
"itemType": "object",
|
|
8192
|
+
"required": true,
|
|
8193
|
+
"description": "Records to process in this batch, each using the identifiers and properties described by its item schema."
|
|
8194
|
+
}
|
|
8195
|
+
]
|
|
8196
|
+
}
|
|
8197
|
+
},
|
|
8198
|
+
{
|
|
8199
|
+
"resource": "crm.objects.batch",
|
|
8200
|
+
"method": "read",
|
|
8201
|
+
"summary": "Batch read records",
|
|
8202
|
+
"description": "Read a set of known record ids in one call; use objects.search to discover ids first. Supply inputs with ids plus requested properties; set idProperty only when the inputs use unique-property values rather than record ids.",
|
|
8203
|
+
"http": "POST",
|
|
8204
|
+
"path": "/crm/v1/objects/{objectType}/batch/read",
|
|
8205
|
+
"streaming": "no",
|
|
8206
|
+
"pagination": false,
|
|
8207
|
+
"pathParams": [
|
|
8208
|
+
{
|
|
8209
|
+
"name": "objectType",
|
|
8210
|
+
"sdkName": "objectType",
|
|
8211
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8212
|
+
}
|
|
8213
|
+
],
|
|
8214
|
+
"query": [
|
|
8215
|
+
{
|
|
8216
|
+
"name": "archived",
|
|
8217
|
+
"type": "boolean",
|
|
8218
|
+
"required": false,
|
|
8219
|
+
"description": "Whether to return only results that have been archived."
|
|
8220
|
+
}
|
|
8221
|
+
],
|
|
8222
|
+
"body": {
|
|
8223
|
+
"required": true,
|
|
8224
|
+
"fields": [
|
|
8225
|
+
{
|
|
8226
|
+
"name": "idProperty",
|
|
8227
|
+
"type": "string",
|
|
8228
|
+
"required": false,
|
|
8229
|
+
"description": "When using a custom unique value property to retrieve records, the name of the property. Do not include this parameter if retrieving by record ID."
|
|
8230
|
+
},
|
|
8231
|
+
{
|
|
8232
|
+
"name": "inputs",
|
|
8233
|
+
"type": "array",
|
|
8234
|
+
"itemType": "object",
|
|
8235
|
+
"required": true,
|
|
8236
|
+
"description": "Records to process in this batch, each using the identifiers and properties described by its item schema."
|
|
8237
|
+
},
|
|
8238
|
+
{
|
|
8239
|
+
"name": "properties",
|
|
8240
|
+
"type": "array",
|
|
8241
|
+
"itemType": "string",
|
|
8242
|
+
"required": true,
|
|
8243
|
+
"description": "Internal property names to include in each returned record; obtain them from properties.list."
|
|
8244
|
+
},
|
|
8245
|
+
{
|
|
8246
|
+
"name": "propertiesWithHistory",
|
|
8247
|
+
"type": "array",
|
|
8248
|
+
"itemType": "string",
|
|
8249
|
+
"required": true,
|
|
8250
|
+
"description": "Internal property names whose previous values should be returned with each record; use an empty array when no history is needed."
|
|
8251
|
+
}
|
|
8252
|
+
]
|
|
8253
|
+
}
|
|
8254
|
+
},
|
|
8255
|
+
{
|
|
8256
|
+
"resource": "crm.objects.batch",
|
|
8257
|
+
"method": "update",
|
|
8258
|
+
"summary": "Batch update records",
|
|
8259
|
+
"description": "Apply distinct property patches to existing records identified by inputs[].id. Obtain ids from objects.list or objects.search and property names from properties.list. Omitted properties retain their values; inspect results and errors for each input. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
8260
|
+
"http": "POST",
|
|
8261
|
+
"path": "/crm/v1/objects/{objectType}/batch/update",
|
|
8262
|
+
"streaming": "no",
|
|
8263
|
+
"pagination": false,
|
|
8264
|
+
"pathParams": [
|
|
8265
|
+
{
|
|
8266
|
+
"name": "objectType",
|
|
8267
|
+
"sdkName": "objectType",
|
|
8268
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8269
|
+
}
|
|
8270
|
+
],
|
|
8271
|
+
"query": [],
|
|
8272
|
+
"body": {
|
|
8273
|
+
"required": true,
|
|
8274
|
+
"fields": [
|
|
8275
|
+
{
|
|
8276
|
+
"name": "inputs",
|
|
8277
|
+
"type": "array",
|
|
8278
|
+
"itemType": "object",
|
|
8279
|
+
"required": true,
|
|
8280
|
+
"description": "Records to process in this batch, each using the identifiers and properties described by its item schema."
|
|
8281
|
+
}
|
|
8282
|
+
]
|
|
8283
|
+
}
|
|
8284
|
+
},
|
|
8285
|
+
{
|
|
8286
|
+
"resource": "crm.objects.batch",
|
|
8287
|
+
"method": "upsert",
|
|
8288
|
+
"summary": "Batch upsert records",
|
|
8289
|
+
"description": "Create records that do not yet exist or update matches using a unique property. Provide idProperty and its value in each input, plus properties; choose a property with hasUniqueValue from properties.list. Inspect each result to determine whether it was newly created. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
8290
|
+
"http": "POST",
|
|
8291
|
+
"path": "/crm/v1/objects/{objectType}/batch/upsert",
|
|
8292
|
+
"streaming": "no",
|
|
8293
|
+
"pagination": false,
|
|
8294
|
+
"pathParams": [
|
|
8295
|
+
{
|
|
8296
|
+
"name": "objectType",
|
|
8297
|
+
"sdkName": "objectType",
|
|
8298
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8299
|
+
}
|
|
8300
|
+
],
|
|
8301
|
+
"query": [],
|
|
8302
|
+
"body": {
|
|
8303
|
+
"required": true,
|
|
8304
|
+
"fields": [
|
|
8305
|
+
{
|
|
8306
|
+
"name": "inputs",
|
|
8307
|
+
"type": "array",
|
|
8308
|
+
"itemType": "object",
|
|
8309
|
+
"required": true,
|
|
8310
|
+
"description": "Records to process in this batch, each using the identifiers and properties described by its item schema."
|
|
8311
|
+
}
|
|
8312
|
+
]
|
|
8313
|
+
}
|
|
8314
|
+
},
|
|
8315
|
+
{
|
|
8316
|
+
"resource": "crm.objects",
|
|
8317
|
+
"method": "search",
|
|
8318
|
+
"summary": "Search records",
|
|
8319
|
+
"description": "Find records using text query, property filters and sort order rather than scanning a list. Obtain objectType from schemas.list and filter propertyName values from properties.list. Supply filterGroups, sorts, properties, limit and after; use empty arrays for no filters, sorts or property selection, and an empty after for the first page. Copy paging.next.after with the same query to continue. This operation reads records without changing them.",
|
|
8320
|
+
"http": "POST",
|
|
8321
|
+
"path": "/crm/v1/objects/{objectType}/search",
|
|
8322
|
+
"streaming": "no",
|
|
8323
|
+
"pagination": false,
|
|
8324
|
+
"pathParams": [
|
|
8325
|
+
{
|
|
8326
|
+
"name": "objectType",
|
|
8327
|
+
"sdkName": "objectType",
|
|
8328
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8329
|
+
}
|
|
8330
|
+
],
|
|
8331
|
+
"query": [],
|
|
8332
|
+
"body": {
|
|
8333
|
+
"required": true,
|
|
8334
|
+
"fields": [
|
|
8335
|
+
{
|
|
8336
|
+
"name": "after",
|
|
8337
|
+
"type": "string",
|
|
8338
|
+
"required": true,
|
|
8339
|
+
"description": "A paging cursor token for retrieving subsequent pages."
|
|
8340
|
+
},
|
|
8341
|
+
{
|
|
8342
|
+
"name": "filterGroups",
|
|
8343
|
+
"type": "array",
|
|
8344
|
+
"itemType": "object",
|
|
8345
|
+
"required": true,
|
|
8346
|
+
"description": "Up to 6 groups of filters defining additional query criteria."
|
|
8347
|
+
},
|
|
8348
|
+
{
|
|
8349
|
+
"name": "limit",
|
|
8350
|
+
"type": "integer",
|
|
8351
|
+
"required": true,
|
|
8352
|
+
"description": "The maximum results to return, up to 200 objects."
|
|
8353
|
+
},
|
|
8354
|
+
{
|
|
8355
|
+
"name": "properties",
|
|
8356
|
+
"type": "array",
|
|
8357
|
+
"itemType": "string",
|
|
8358
|
+
"required": true,
|
|
8359
|
+
"description": "Internal property names to include in each returned record; obtain them from properties.list."
|
|
8360
|
+
},
|
|
8361
|
+
{
|
|
8362
|
+
"name": "query",
|
|
8363
|
+
"type": "string",
|
|
8364
|
+
"required": false,
|
|
8365
|
+
"description": "The search query string, up to 3000 characters."
|
|
8366
|
+
},
|
|
8367
|
+
{
|
|
8368
|
+
"name": "sorts",
|
|
8369
|
+
"type": "array",
|
|
8370
|
+
"itemType": "string",
|
|
8371
|
+
"required": true,
|
|
8372
|
+
"description": "Property names controlling ordering; prefix a property name with a minus sign for descending order."
|
|
8373
|
+
}
|
|
8374
|
+
]
|
|
8375
|
+
}
|
|
8376
|
+
},
|
|
8377
|
+
{
|
|
8378
|
+
"resource": "crm.objects",
|
|
8379
|
+
"method": "archive",
|
|
8380
|
+
"summary": "Archive record",
|
|
8381
|
+
"description": "Archive a record selected from objects.list or objects.search when it should leave active results. This removes it from normal lists without deleting its history; archived=true can be used to read archived records. Confirm objectType and objectId before calling. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Unlike HubSpot, this own-face archive returns HTTP 200 with a JSON refs body instead of HTTP 204.",
|
|
8382
|
+
"http": "DELETE",
|
|
8383
|
+
"path": "/crm/v1/objects/{objectType}/{objectId}",
|
|
8384
|
+
"streaming": "no",
|
|
8385
|
+
"pagination": false,
|
|
8386
|
+
"pathParams": [
|
|
8387
|
+
{
|
|
8388
|
+
"name": "objectType",
|
|
8389
|
+
"sdkName": "objectType",
|
|
8390
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8391
|
+
},
|
|
8392
|
+
{
|
|
8393
|
+
"name": "objectId",
|
|
8394
|
+
"sdkName": "objectId",
|
|
8395
|
+
"description": "Record id from objects.list, objects.search or objects.create for this objectType."
|
|
8396
|
+
}
|
|
8397
|
+
],
|
|
8398
|
+
"query": []
|
|
8399
|
+
},
|
|
8400
|
+
{
|
|
8401
|
+
"resource": "crm.objects",
|
|
8402
|
+
"method": "retrieve",
|
|
8403
|
+
"summary": "Retrieve record",
|
|
8404
|
+
"description": "Read one record by id from objects.list, objects.search or objects.create. Select property names with properties and associated object types with associations; use idProperty only when objectId is a value of that unique property. Use archived=true to inspect an archived record.",
|
|
8405
|
+
"http": "GET",
|
|
8406
|
+
"path": "/crm/v1/objects/{objectType}/{objectId}",
|
|
8407
|
+
"streaming": "no",
|
|
8408
|
+
"pagination": false,
|
|
8409
|
+
"pathParams": [
|
|
8410
|
+
{
|
|
8411
|
+
"name": "objectType",
|
|
8412
|
+
"sdkName": "objectType",
|
|
8413
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8414
|
+
},
|
|
8415
|
+
{
|
|
8416
|
+
"name": "objectId",
|
|
8417
|
+
"sdkName": "objectId",
|
|
8418
|
+
"description": "Record id from objects.list, objects.search or objects.create for this objectType."
|
|
8419
|
+
}
|
|
8420
|
+
],
|
|
8421
|
+
"query": [
|
|
8422
|
+
{
|
|
8423
|
+
"name": "archived",
|
|
8424
|
+
"type": "boolean",
|
|
8425
|
+
"required": false,
|
|
8426
|
+
"description": "Whether to return only results that have been archived."
|
|
8427
|
+
},
|
|
8428
|
+
{
|
|
8429
|
+
"name": "associations",
|
|
8430
|
+
"type": "array",
|
|
8431
|
+
"itemType": "string",
|
|
8432
|
+
"required": false,
|
|
8433
|
+
"description": "A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored."
|
|
8434
|
+
},
|
|
8435
|
+
{
|
|
8436
|
+
"name": "idProperty",
|
|
8437
|
+
"type": "string",
|
|
8438
|
+
"required": false,
|
|
8439
|
+
"description": "The name of a property whose values are unique for this object"
|
|
8440
|
+
},
|
|
8441
|
+
{
|
|
8442
|
+
"name": "properties",
|
|
8443
|
+
"type": "array",
|
|
8444
|
+
"itemType": "string",
|
|
8445
|
+
"required": false,
|
|
8446
|
+
"description": "A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored."
|
|
8447
|
+
},
|
|
8448
|
+
{
|
|
8449
|
+
"name": "propertiesWithHistory",
|
|
8450
|
+
"type": "array",
|
|
8451
|
+
"itemType": "string",
|
|
8452
|
+
"required": false,
|
|
8453
|
+
"description": "A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored."
|
|
8454
|
+
}
|
|
8455
|
+
]
|
|
8456
|
+
},
|
|
8457
|
+
{
|
|
8458
|
+
"resource": "crm.objects",
|
|
8459
|
+
"method": "update",
|
|
8460
|
+
"summary": "Update record",
|
|
8461
|
+
"description": "Change only the supplied properties of a record selected from objects.list or objects.search. Omitted properties retain their values. Use property names from properties.list and valid stage ids from pipelines.retrieve. Stage-entry requirements must be satisfied by the resulting record; inspect 400 errors before retrying. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
8462
|
+
"http": "PATCH",
|
|
8463
|
+
"path": "/crm/v1/objects/{objectType}/{objectId}",
|
|
8464
|
+
"streaming": "no",
|
|
8465
|
+
"pagination": false,
|
|
8466
|
+
"pathParams": [
|
|
8467
|
+
{
|
|
8468
|
+
"name": "objectType",
|
|
8469
|
+
"sdkName": "objectType",
|
|
8470
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8471
|
+
},
|
|
8472
|
+
{
|
|
8473
|
+
"name": "objectId",
|
|
8474
|
+
"sdkName": "objectId",
|
|
8475
|
+
"description": "Record id from objects.list, objects.search or objects.create for this objectType."
|
|
8476
|
+
}
|
|
8477
|
+
],
|
|
8478
|
+
"query": [
|
|
8479
|
+
{
|
|
8480
|
+
"name": "idProperty",
|
|
8481
|
+
"type": "string",
|
|
8482
|
+
"required": false,
|
|
8483
|
+
"description": "The name of a property whose values are unique for this object"
|
|
8484
|
+
}
|
|
8485
|
+
],
|
|
8486
|
+
"body": {
|
|
8487
|
+
"required": true,
|
|
8488
|
+
"fields": [
|
|
8489
|
+
{
|
|
8490
|
+
"name": "properties",
|
|
8491
|
+
"type": "object",
|
|
8492
|
+
"required": true,
|
|
8493
|
+
"description": "Key value pairs representing the properties of the object."
|
|
8494
|
+
}
|
|
8495
|
+
]
|
|
8496
|
+
}
|
|
8497
|
+
},
|
|
8498
|
+
{
|
|
8499
|
+
"resource": "crm.associations",
|
|
8500
|
+
"method": "createDefault",
|
|
8501
|
+
"summary": "Create default association",
|
|
8502
|
+
"description": "Link two existing records with the default unlabelled association. Obtain each record id from objects.list or objects.search for its type. No request body is required; use associations.create to choose explicit association labels. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
8503
|
+
"http": "PUT",
|
|
8504
|
+
"path": "/crm/v1/objects/{objectType}/{objectId}/associations/default/{toObjectType}/{toObjectId}",
|
|
8505
|
+
"streaming": "no",
|
|
8506
|
+
"pagination": false,
|
|
8507
|
+
"pathParams": [
|
|
8508
|
+
{
|
|
8509
|
+
"name": "objectType",
|
|
8510
|
+
"sdkName": "objectType",
|
|
8511
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8512
|
+
},
|
|
8513
|
+
{
|
|
8514
|
+
"name": "objectId",
|
|
8515
|
+
"sdkName": "objectId",
|
|
8516
|
+
"description": "Record id from objects.list, objects.search or objects.create for this objectType."
|
|
8517
|
+
},
|
|
8518
|
+
{
|
|
8519
|
+
"name": "toObjectType",
|
|
8520
|
+
"sdkName": "toObjectType",
|
|
8521
|
+
"description": "Destination object type from schemas.list; use the type of the record being linked."
|
|
8522
|
+
},
|
|
8523
|
+
{
|
|
8524
|
+
"name": "toObjectId",
|
|
8525
|
+
"sdkName": "toObjectId",
|
|
8526
|
+
"description": "Destination record identifier from objects.list or objects.search for toObjectType."
|
|
8527
|
+
}
|
|
8528
|
+
],
|
|
8529
|
+
"query": []
|
|
8530
|
+
},
|
|
8531
|
+
{
|
|
8532
|
+
"resource": "crm.associations",
|
|
8533
|
+
"method": "list",
|
|
8534
|
+
"summary": "List record associations",
|
|
8535
|
+
"description": "Read records linked to a source record, including association labels and type ids. Obtain source and destination object types from schemas.list and objectId from objects.list or objects.search. Follow paging.next.after to continue reading associated records.",
|
|
8536
|
+
"http": "GET",
|
|
8537
|
+
"path": "/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}",
|
|
8538
|
+
"streaming": "no",
|
|
8539
|
+
"pagination": false,
|
|
8540
|
+
"pathParams": [
|
|
8541
|
+
{
|
|
8542
|
+
"name": "objectType",
|
|
8543
|
+
"sdkName": "objectType",
|
|
8544
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8545
|
+
},
|
|
8546
|
+
{
|
|
8547
|
+
"name": "objectId",
|
|
8548
|
+
"sdkName": "objectId",
|
|
8549
|
+
"description": "Record id from objects.list, objects.search or objects.create for this objectType."
|
|
8550
|
+
},
|
|
8551
|
+
{
|
|
8552
|
+
"name": "toObjectType",
|
|
8553
|
+
"sdkName": "toObjectType",
|
|
8554
|
+
"description": "Destination object type from schemas.list; use the type of the record being linked."
|
|
8555
|
+
}
|
|
8556
|
+
],
|
|
8557
|
+
"query": [
|
|
8558
|
+
{
|
|
8559
|
+
"name": "after",
|
|
8560
|
+
"type": "string",
|
|
8561
|
+
"required": false,
|
|
8562
|
+
"description": "The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results."
|
|
8563
|
+
},
|
|
8564
|
+
{
|
|
8565
|
+
"name": "limit",
|
|
8566
|
+
"type": "integer",
|
|
8567
|
+
"required": false,
|
|
8568
|
+
"description": "The maximum number of results to display per page."
|
|
8569
|
+
}
|
|
8570
|
+
]
|
|
8571
|
+
},
|
|
8572
|
+
{
|
|
8573
|
+
"resource": "crm.associations",
|
|
8574
|
+
"method": "remove",
|
|
8575
|
+
"summary": "Remove association",
|
|
8576
|
+
"description": "Remove the association between two existing records without archiving either record. Obtain the linked destination id from associations.list and confirm the source and destination object types before calling. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Unlike HubSpot, this own-face archive returns HTTP 200 with a JSON refs body instead of HTTP 204.",
|
|
8577
|
+
"http": "DELETE",
|
|
8578
|
+
"path": "/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}",
|
|
8579
|
+
"streaming": "no",
|
|
8580
|
+
"pagination": false,
|
|
8581
|
+
"pathParams": [
|
|
8582
|
+
{
|
|
8583
|
+
"name": "objectType",
|
|
8584
|
+
"sdkName": "objectType",
|
|
8585
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8586
|
+
},
|
|
8587
|
+
{
|
|
8588
|
+
"name": "objectId",
|
|
8589
|
+
"sdkName": "objectId",
|
|
8590
|
+
"description": "Record id from objects.list, objects.search or objects.create for this objectType."
|
|
8591
|
+
},
|
|
8592
|
+
{
|
|
8593
|
+
"name": "toObjectType",
|
|
8594
|
+
"sdkName": "toObjectType",
|
|
8595
|
+
"description": "Destination object type from schemas.list; use the type of the record being linked."
|
|
8596
|
+
},
|
|
8597
|
+
{
|
|
8598
|
+
"name": "toObjectId",
|
|
8599
|
+
"sdkName": "toObjectId",
|
|
8600
|
+
"description": "Destination record identifier from objects.list or objects.search for toObjectType."
|
|
8601
|
+
}
|
|
8602
|
+
],
|
|
8603
|
+
"query": []
|
|
8604
|
+
},
|
|
8605
|
+
{
|
|
8606
|
+
"resource": "crm.associations",
|
|
8607
|
+
"method": "create",
|
|
8608
|
+
"summary": "Create labelled association",
|
|
8609
|
+
"description": "Associate two existing records using the requested association category and type id. Obtain record ids from objects.list or objects.search; reuse known association type ids from associations.list. Send the association-spec array as the body; use associations.createDefault when no label is needed. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
8610
|
+
"http": "PUT",
|
|
8611
|
+
"path": "/crm/v1/objects/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}",
|
|
8612
|
+
"streaming": "no",
|
|
8613
|
+
"pagination": false,
|
|
8614
|
+
"pathParams": [
|
|
8615
|
+
{
|
|
8616
|
+
"name": "objectType",
|
|
8617
|
+
"sdkName": "objectType",
|
|
8618
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8619
|
+
},
|
|
8620
|
+
{
|
|
8621
|
+
"name": "objectId",
|
|
8622
|
+
"sdkName": "objectId",
|
|
8623
|
+
"description": "Record id from objects.list, objects.search or objects.create for this objectType."
|
|
8624
|
+
},
|
|
8625
|
+
{
|
|
8626
|
+
"name": "toObjectType",
|
|
8627
|
+
"sdkName": "toObjectType",
|
|
8628
|
+
"description": "Destination object type from schemas.list; use the type of the record being linked."
|
|
8629
|
+
},
|
|
8630
|
+
{
|
|
8631
|
+
"name": "toObjectId",
|
|
8632
|
+
"sdkName": "toObjectId",
|
|
8633
|
+
"description": "Destination record identifier from objects.list or objects.search for toObjectType."
|
|
8634
|
+
}
|
|
8635
|
+
],
|
|
8636
|
+
"query": [],
|
|
8637
|
+
"body": {
|
|
8638
|
+
"required": true,
|
|
8639
|
+
"fields": []
|
|
8640
|
+
}
|
|
8641
|
+
},
|
|
8642
|
+
{
|
|
8643
|
+
"resource": "crm.pipelines",
|
|
8644
|
+
"method": "list",
|
|
8645
|
+
"summary": "List pipelines",
|
|
8646
|
+
"description": "Discover pipelines and stage ids for records of one object type from schemas.list. Reuse pipeline and stage ids in record property updates or lead qualification. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is \"true\" (no further transition) or \"false\" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string \"null\" meaning unrestricted; praxis_required is a JSON-encoded array string of property names (\"[]\" means none) that must be non-empty on entry (boolean properties must be \"true\"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Example metadata: {\"praxis_category\":\"open\",\"praxis_terminal\":\"false\",\"praxis_allowed_next\":\"[\\\"proposal\\\",\\\"lost\\\"]\",\"praxis_required\":\"[\\\"budget\\\",\\\"decision_maker\\\"]\"}.",
|
|
8647
|
+
"http": "GET",
|
|
8648
|
+
"path": "/crm/v1/pipelines/{objectType}",
|
|
8649
|
+
"streaming": "no",
|
|
8650
|
+
"pagination": false,
|
|
8651
|
+
"pathParams": [
|
|
8652
|
+
{
|
|
8653
|
+
"name": "objectType",
|
|
8654
|
+
"sdkName": "objectType",
|
|
8655
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8656
|
+
}
|
|
8657
|
+
],
|
|
8658
|
+
"query": []
|
|
8659
|
+
},
|
|
8660
|
+
{
|
|
8661
|
+
"resource": "crm.pipelines",
|
|
8662
|
+
"method": "create",
|
|
8663
|
+
"summary": "Create pipeline",
|
|
8664
|
+
"description": "Create a pipeline with its ordered stages for an object type from schemas.list. Provide a display label, displayOrder and initial stages, then use the returned ids when assigning records. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is \"true\" (no further transition) or \"false\" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string \"null\" meaning unrestricted; praxis_required is a JSON-encoded array string of property names (\"[]\" means none) that must be non-empty on entry (boolean properties must be \"true\"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Example metadata: {\"praxis_category\":\"open\",\"praxis_terminal\":\"false\",\"praxis_allowed_next\":\"[\\\"proposal\\\",\\\"lost\\\"]\",\"praxis_required\":\"[\\\"budget\\\",\\\"decision_maker\\\"]\"}.",
|
|
8665
|
+
"http": "POST",
|
|
8666
|
+
"path": "/crm/v1/pipelines/{objectType}",
|
|
8667
|
+
"streaming": "no",
|
|
8668
|
+
"pagination": false,
|
|
8669
|
+
"pathParams": [
|
|
8670
|
+
{
|
|
8671
|
+
"name": "objectType",
|
|
8672
|
+
"sdkName": "objectType",
|
|
8673
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8674
|
+
}
|
|
8675
|
+
],
|
|
8676
|
+
"query": [],
|
|
8677
|
+
"body": {
|
|
8678
|
+
"required": true,
|
|
8679
|
+
"fields": [
|
|
8680
|
+
{
|
|
8681
|
+
"name": "displayOrder",
|
|
8682
|
+
"type": "integer",
|
|
8683
|
+
"required": true,
|
|
8684
|
+
"description": "An integer indicating the order in which the pipeline appears relative to other pipelines."
|
|
8685
|
+
},
|
|
8686
|
+
{
|
|
8687
|
+
"name": "label",
|
|
8688
|
+
"type": "string",
|
|
8689
|
+
"required": true,
|
|
8690
|
+
"description": "A string representing the name or title of the pipeline."
|
|
8691
|
+
},
|
|
8692
|
+
{
|
|
8693
|
+
"name": "pipelineId",
|
|
8694
|
+
"type": "string",
|
|
8695
|
+
"required": false,
|
|
8696
|
+
"description": "A string that uniquely identifies the pipeline. This property is optional when creating a new pipeline."
|
|
8697
|
+
},
|
|
8698
|
+
{
|
|
8699
|
+
"name": "stages",
|
|
8700
|
+
"type": "array",
|
|
8701
|
+
"itemType": "object",
|
|
8702
|
+
"required": true,
|
|
8703
|
+
"description": "An array of PipelineStageInput objects, each representing a stage within the pipeline."
|
|
8704
|
+
}
|
|
8705
|
+
]
|
|
8706
|
+
}
|
|
8707
|
+
},
|
|
8708
|
+
{
|
|
8709
|
+
"resource": "crm.pipelines",
|
|
8710
|
+
"method": "archive",
|
|
8711
|
+
"summary": "Archive pipeline",
|
|
8712
|
+
"description": "Archive a pipeline selected from pipelines.list when records no longer depend on it. Check current records and stage usage first; resolve references reported by validation before retrying. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is \"true\" (no further transition) or \"false\" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string \"null\" meaning unrestricted; praxis_required is a JSON-encoded array string of property names (\"[]\" means none) that must be non-empty on entry (boolean properties must be \"true\"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Unlike HubSpot, this own-face archive returns HTTP 200 with a JSON refs body instead of HTTP 204. Example metadata: {\"praxis_category\":\"open\",\"praxis_terminal\":\"false\",\"praxis_allowed_next\":\"[\\\"proposal\\\",\\\"lost\\\"]\",\"praxis_required\":\"[\\\"budget\\\",\\\"decision_maker\\\"]\"}.",
|
|
8713
|
+
"http": "DELETE",
|
|
8714
|
+
"path": "/crm/v1/pipelines/{objectType}/{pipelineId}",
|
|
8715
|
+
"streaming": "no",
|
|
8716
|
+
"pagination": false,
|
|
8717
|
+
"pathParams": [
|
|
8718
|
+
{
|
|
8719
|
+
"name": "objectType",
|
|
8720
|
+
"sdkName": "objectType",
|
|
8721
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8722
|
+
},
|
|
8723
|
+
{
|
|
8724
|
+
"name": "pipelineId",
|
|
8725
|
+
"sdkName": "pipelineId",
|
|
8726
|
+
"description": "Pipeline identifier from pipelines.list for this objectType."
|
|
8727
|
+
}
|
|
8728
|
+
],
|
|
8729
|
+
"query": [
|
|
8730
|
+
{
|
|
8731
|
+
"name": "validateDealStageUsagesBeforeDelete",
|
|
8732
|
+
"type": "boolean",
|
|
8733
|
+
"required": false,
|
|
8734
|
+
"description": "A boolean indicating whether to validate deal stage usages before deleting the pipeline. Defaults to true."
|
|
8735
|
+
},
|
|
8736
|
+
{
|
|
8737
|
+
"name": "validateReferencesBeforeDelete",
|
|
8738
|
+
"type": "boolean",
|
|
8739
|
+
"required": false,
|
|
8740
|
+
"description": "A boolean indicating whether to validate references before deleting the pipeline. Defaults to true."
|
|
8741
|
+
}
|
|
8742
|
+
]
|
|
8743
|
+
},
|
|
8744
|
+
{
|
|
8745
|
+
"resource": "crm.pipelines",
|
|
8746
|
+
"method": "retrieve",
|
|
8747
|
+
"summary": "Retrieve pipeline",
|
|
8748
|
+
"description": "Inspect the stage ids and metadata of a pipeline before moving a record or editing its workflow. Obtain pipelineId from pipelines.list and use the returned stages array to select a destination. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is \"true\" (no further transition) or \"false\" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string \"null\" meaning unrestricted; praxis_required is a JSON-encoded array string of property names (\"[]\" means none) that must be non-empty on entry (boolean properties must be \"true\"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Example metadata: {\"praxis_category\":\"open\",\"praxis_terminal\":\"false\",\"praxis_allowed_next\":\"[\\\"proposal\\\",\\\"lost\\\"]\",\"praxis_required\":\"[\\\"budget\\\",\\\"decision_maker\\\"]\"}.",
|
|
8749
|
+
"http": "GET",
|
|
8750
|
+
"path": "/crm/v1/pipelines/{objectType}/{pipelineId}",
|
|
8751
|
+
"streaming": "no",
|
|
8752
|
+
"pagination": false,
|
|
8753
|
+
"pathParams": [
|
|
8754
|
+
{
|
|
8755
|
+
"name": "objectType",
|
|
8756
|
+
"sdkName": "objectType",
|
|
8757
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8758
|
+
},
|
|
8759
|
+
{
|
|
8760
|
+
"name": "pipelineId",
|
|
8761
|
+
"sdkName": "pipelineId",
|
|
8762
|
+
"description": "Pipeline identifier from pipelines.list for this objectType."
|
|
8763
|
+
}
|
|
8764
|
+
],
|
|
8765
|
+
"query": []
|
|
8766
|
+
},
|
|
8767
|
+
{
|
|
8768
|
+
"resource": "crm.pipelines",
|
|
8769
|
+
"method": "update",
|
|
8770
|
+
"summary": "Update pipeline",
|
|
8771
|
+
"description": "Change editable pipeline settings selected by pipelineId from pipelines.list. Omit settings that should remain unchanged and inspect current stages with pipelines.retrieve before modifying the workflow. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is \"true\" (no further transition) or \"false\" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string \"null\" meaning unrestricted; praxis_required is a JSON-encoded array string of property names (\"[]\" means none) that must be non-empty on entry (boolean properties must be \"true\"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Example metadata: {\"praxis_category\":\"open\",\"praxis_terminal\":\"false\",\"praxis_allowed_next\":\"[\\\"proposal\\\",\\\"lost\\\"]\",\"praxis_required\":\"[\\\"budget\\\",\\\"decision_maker\\\"]\"}.",
|
|
8772
|
+
"http": "PATCH",
|
|
8773
|
+
"path": "/crm/v1/pipelines/{objectType}/{pipelineId}",
|
|
8774
|
+
"streaming": "no",
|
|
8775
|
+
"pagination": false,
|
|
8776
|
+
"pathParams": [
|
|
8777
|
+
{
|
|
8778
|
+
"name": "objectType",
|
|
8779
|
+
"sdkName": "objectType",
|
|
8780
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8781
|
+
},
|
|
8782
|
+
{
|
|
8783
|
+
"name": "pipelineId",
|
|
8784
|
+
"sdkName": "pipelineId",
|
|
8785
|
+
"description": "Pipeline identifier from pipelines.list for this objectType."
|
|
8786
|
+
}
|
|
8787
|
+
],
|
|
8788
|
+
"query": [
|
|
8789
|
+
{
|
|
8790
|
+
"name": "validateDealStageUsagesBeforeDelete",
|
|
8791
|
+
"type": "boolean",
|
|
8792
|
+
"required": false,
|
|
8793
|
+
"description": "A boolean indicating whether to validate deal stage usages before deleting. Defaults to true."
|
|
8794
|
+
},
|
|
8795
|
+
{
|
|
8796
|
+
"name": "validateReferencesBeforeDelete",
|
|
8797
|
+
"type": "boolean",
|
|
8798
|
+
"required": false,
|
|
8799
|
+
"description": "A boolean indicating whether to validate references before deleting. Defaults to true."
|
|
8800
|
+
}
|
|
8801
|
+
],
|
|
8802
|
+
"body": {
|
|
8803
|
+
"required": true,
|
|
8804
|
+
"fields": [
|
|
8805
|
+
{
|
|
8806
|
+
"name": "archived",
|
|
8807
|
+
"type": "boolean",
|
|
8808
|
+
"required": false,
|
|
8809
|
+
"description": "A boolean value that indicates whether the pipeline is archived."
|
|
8810
|
+
},
|
|
8811
|
+
{
|
|
8812
|
+
"name": "displayOrder",
|
|
8813
|
+
"type": "integer",
|
|
8814
|
+
"required": false,
|
|
8815
|
+
"description": "An integer indicating the position of the pipeline in a list, which determines its display order."
|
|
8816
|
+
},
|
|
8817
|
+
{
|
|
8818
|
+
"name": "label",
|
|
8819
|
+
"type": "string",
|
|
8820
|
+
"required": false,
|
|
8821
|
+
"description": "The name of the pipeline, represented as a string."
|
|
8822
|
+
}
|
|
8823
|
+
]
|
|
8824
|
+
}
|
|
8825
|
+
},
|
|
8826
|
+
{
|
|
8827
|
+
"resource": "crm.pipelines.stages",
|
|
8828
|
+
"method": "create",
|
|
8829
|
+
"summary": "Create pipeline stage",
|
|
8830
|
+
"description": "Add an ordered stage to a pipeline from pipelines.list. Provide its display label, displayOrder and metadata; save the returned stage id for record updates. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is \"true\" (no further transition) or \"false\" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string \"null\" meaning unrestricted; praxis_required is a JSON-encoded array string of property names (\"[]\" means none) that must be non-empty on entry (boolean properties must be \"true\"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Example metadata: {\"praxis_category\":\"open\",\"praxis_terminal\":\"false\",\"praxis_allowed_next\":\"[\\\"proposal\\\",\\\"lost\\\"]\",\"praxis_required\":\"[\\\"budget\\\",\\\"decision_maker\\\"]\"}.",
|
|
8831
|
+
"http": "POST",
|
|
8832
|
+
"path": "/crm/v1/pipelines/{objectType}/{pipelineId}/stages",
|
|
8833
|
+
"streaming": "no",
|
|
8834
|
+
"pagination": false,
|
|
8835
|
+
"pathParams": [
|
|
8836
|
+
{
|
|
8837
|
+
"name": "objectType",
|
|
8838
|
+
"sdkName": "objectType",
|
|
8839
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8840
|
+
},
|
|
8841
|
+
{
|
|
8842
|
+
"name": "pipelineId",
|
|
8843
|
+
"sdkName": "pipelineId",
|
|
8844
|
+
"description": "Pipeline identifier from pipelines.list for this objectType."
|
|
8845
|
+
}
|
|
8846
|
+
],
|
|
8847
|
+
"query": [],
|
|
8848
|
+
"body": {
|
|
8849
|
+
"required": true,
|
|
8850
|
+
"fields": [
|
|
8851
|
+
{
|
|
8852
|
+
"name": "displayOrder",
|
|
8853
|
+
"type": "integer",
|
|
8854
|
+
"required": true,
|
|
8855
|
+
"description": "An integer indicating the position of this stage within the pipeline. Lower numbers indicate earlier stages."
|
|
8856
|
+
},
|
|
8857
|
+
{
|
|
8858
|
+
"name": "label",
|
|
8859
|
+
"type": "string",
|
|
8860
|
+
"required": true,
|
|
8861
|
+
"description": "The name of the pipeline stage. It is a string that provides a human-readable identifier for the stage."
|
|
8862
|
+
},
|
|
8863
|
+
{
|
|
8864
|
+
"name": "metadata",
|
|
8865
|
+
"type": "object",
|
|
8866
|
+
"required": true,
|
|
8867
|
+
"description": "String-valued stage settings, including transition and entry requirements. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is \"true\" (no further transition) or \"false\" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string \"null\" meaning unrestricted; praxis_required is a JSON-encoded array string of property names (\"[]\" means none) that must be non-empty on entry (boolean properties must be \"true\"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying."
|
|
8868
|
+
},
|
|
8869
|
+
{
|
|
8870
|
+
"name": "stageId",
|
|
8871
|
+
"type": "string",
|
|
8872
|
+
"required": false,
|
|
8873
|
+
"description": "A string that uniquely identifies the stage within the pipeline."
|
|
8874
|
+
}
|
|
8875
|
+
]
|
|
8876
|
+
}
|
|
8877
|
+
},
|
|
8878
|
+
{
|
|
8879
|
+
"resource": "crm.pipelines.stages",
|
|
8880
|
+
"method": "archive",
|
|
8881
|
+
"summary": "Archive pipeline stage",
|
|
8882
|
+
"description": "Archive a stage selected from pipelines.retrieve after checking record usage. A stage that still has records cannot be archived without resolving their assignment; move those records to an allowed stage first. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is \"true\" (no further transition) or \"false\" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string \"null\" meaning unrestricted; praxis_required is a JSON-encoded array string of property names (\"[]\" means none) that must be non-empty on entry (boolean properties must be \"true\"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Unlike HubSpot, this own-face archive returns HTTP 200 with a JSON refs body instead of HTTP 204. Example metadata: {\"praxis_category\":\"open\",\"praxis_terminal\":\"false\",\"praxis_allowed_next\":\"[\\\"proposal\\\",\\\"lost\\\"]\",\"praxis_required\":\"[\\\"budget\\\",\\\"decision_maker\\\"]\"}.",
|
|
8883
|
+
"http": "DELETE",
|
|
8884
|
+
"path": "/crm/v1/pipelines/{objectType}/{pipelineId}/stages/{stageId}",
|
|
8885
|
+
"streaming": "no",
|
|
8886
|
+
"pagination": false,
|
|
8887
|
+
"pathParams": [
|
|
8888
|
+
{
|
|
8889
|
+
"name": "objectType",
|
|
8890
|
+
"sdkName": "objectType",
|
|
8891
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8892
|
+
},
|
|
8893
|
+
{
|
|
8894
|
+
"name": "pipelineId",
|
|
8895
|
+
"sdkName": "pipelineId",
|
|
8896
|
+
"description": "Pipeline identifier from pipelines.list for this objectType."
|
|
8897
|
+
},
|
|
8898
|
+
{
|
|
8899
|
+
"name": "stageId",
|
|
8900
|
+
"sdkName": "stageId",
|
|
8901
|
+
"description": "Stage identifier from the stages array returned by pipelines.retrieve for this pipeline."
|
|
8902
|
+
}
|
|
8903
|
+
],
|
|
8904
|
+
"query": [
|
|
8905
|
+
{
|
|
8906
|
+
"name": "validateReferencesBeforeDelete",
|
|
8907
|
+
"type": "boolean",
|
|
8908
|
+
"required": false,
|
|
8909
|
+
"description": "A boolean flag indicating whether to validate references before deleting the stage. Defaults to true."
|
|
8910
|
+
}
|
|
8911
|
+
]
|
|
8912
|
+
},
|
|
8913
|
+
{
|
|
8914
|
+
"resource": "crm.pipelines.stages",
|
|
8915
|
+
"method": "update",
|
|
8916
|
+
"summary": "Update pipeline stage",
|
|
8917
|
+
"description": "Change the label, order or metadata of a stage selected from pipelines.retrieve. Existing records must satisfy entry rules when subsequently moved; omitted settings retain their values. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is \"true\" (no further transition) or \"false\" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string \"null\" meaning unrestricted; praxis_required is a JSON-encoded array string of property names (\"[]\" means none) that must be non-empty on entry (boolean properties must be \"true\"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Example metadata: {\"praxis_category\":\"open\",\"praxis_terminal\":\"false\",\"praxis_allowed_next\":\"[\\\"proposal\\\",\\\"lost\\\"]\",\"praxis_required\":\"[\\\"budget\\\",\\\"decision_maker\\\"]\"}.",
|
|
8918
|
+
"http": "PATCH",
|
|
8919
|
+
"path": "/crm/v1/pipelines/{objectType}/{pipelineId}/stages/{stageId}",
|
|
8920
|
+
"streaming": "no",
|
|
8921
|
+
"pagination": false,
|
|
8922
|
+
"pathParams": [
|
|
8923
|
+
{
|
|
8924
|
+
"name": "objectType",
|
|
8925
|
+
"sdkName": "objectType",
|
|
8926
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8927
|
+
},
|
|
8928
|
+
{
|
|
8929
|
+
"name": "pipelineId",
|
|
8930
|
+
"sdkName": "pipelineId",
|
|
8931
|
+
"description": "Pipeline identifier from pipelines.list for this objectType."
|
|
8932
|
+
},
|
|
8933
|
+
{
|
|
8934
|
+
"name": "stageId",
|
|
8935
|
+
"sdkName": "stageId",
|
|
8936
|
+
"description": "Stage identifier from the stages array returned by pipelines.retrieve for this pipeline."
|
|
8937
|
+
}
|
|
8938
|
+
],
|
|
8939
|
+
"query": [],
|
|
8940
|
+
"body": {
|
|
8941
|
+
"required": true,
|
|
8942
|
+
"fields": [
|
|
8943
|
+
{
|
|
8944
|
+
"name": "archived",
|
|
8945
|
+
"type": "boolean",
|
|
8946
|
+
"required": false,
|
|
8947
|
+
"description": "A boolean indicating whether the pipeline stage is archived."
|
|
8948
|
+
},
|
|
8949
|
+
{
|
|
8950
|
+
"name": "displayOrder",
|
|
8951
|
+
"type": "integer",
|
|
8952
|
+
"required": false,
|
|
8953
|
+
"description": "An integer specifying the order in which the stage appears relative to other stages."
|
|
8954
|
+
},
|
|
8955
|
+
{
|
|
8956
|
+
"name": "label",
|
|
8957
|
+
"type": "string",
|
|
8958
|
+
"required": false,
|
|
8959
|
+
"description": "A string representing the name or title of the pipeline stage."
|
|
8960
|
+
},
|
|
8961
|
+
{
|
|
8962
|
+
"name": "metadata",
|
|
8963
|
+
"type": "object",
|
|
8964
|
+
"required": true,
|
|
8965
|
+
"description": "String-valued stage settings, including transition and entry requirements. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is \"true\" (no further transition) or \"false\" (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string \"null\" meaning unrestricted; praxis_required is a JSON-encoded array string of property names (\"[]\" means none) that must be non-empty on entry (boolean properties must be \"true\"). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying."
|
|
8966
|
+
}
|
|
8967
|
+
]
|
|
8968
|
+
}
|
|
8969
|
+
},
|
|
8970
|
+
{
|
|
8971
|
+
"resource": "crm.properties",
|
|
8972
|
+
"method": "list",
|
|
8973
|
+
"summary": "List properties",
|
|
8974
|
+
"description": "Inspect the property definitions available for an object type before writing or filtering records. Obtain objectType from schemas.list; reuse each immutable name in record properties and filters. archived defaults to false.",
|
|
8975
|
+
"http": "GET",
|
|
8976
|
+
"path": "/crm/v1/properties/{objectType}",
|
|
8977
|
+
"streaming": "no",
|
|
8978
|
+
"pagination": false,
|
|
8979
|
+
"pathParams": [
|
|
8980
|
+
{
|
|
8981
|
+
"name": "objectType",
|
|
8982
|
+
"sdkName": "objectType",
|
|
8983
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
8984
|
+
}
|
|
8985
|
+
],
|
|
8986
|
+
"query": [
|
|
8987
|
+
{
|
|
8988
|
+
"name": "archived",
|
|
8989
|
+
"type": "boolean",
|
|
8990
|
+
"required": false,
|
|
8991
|
+
"description": "Whether to return only results that have been archived."
|
|
8992
|
+
},
|
|
8993
|
+
{
|
|
8994
|
+
"name": "dataSensitivity",
|
|
8995
|
+
"type": "string",
|
|
8996
|
+
"enum": [
|
|
8997
|
+
"highly_sensitive",
|
|
8998
|
+
"non_sensitive",
|
|
8999
|
+
"sensitive"
|
|
9000
|
+
],
|
|
9001
|
+
"required": false,
|
|
9002
|
+
"description": "Filter properties based on data sensitivity level. Valid values are 'non_sensitive', 'sensitive', and 'highly_sensitive'. Defaults to 'non_sensitive'."
|
|
9003
|
+
},
|
|
9004
|
+
{
|
|
9005
|
+
"name": "locale",
|
|
9006
|
+
"type": "string",
|
|
9007
|
+
"required": false,
|
|
9008
|
+
"description": "Specify the locale to retrieve properties in a particular language or regional format."
|
|
9009
|
+
},
|
|
9010
|
+
{
|
|
9011
|
+
"name": "properties",
|
|
9012
|
+
"type": "string",
|
|
9013
|
+
"required": false,
|
|
9014
|
+
"description": "A comma-separated list of property names to include in the response."
|
|
9015
|
+
}
|
|
9016
|
+
]
|
|
9017
|
+
},
|
|
9018
|
+
{
|
|
9019
|
+
"resource": "crm.properties",
|
|
9020
|
+
"method": "create",
|
|
9021
|
+
"summary": "Create property",
|
|
9022
|
+
"description": "Define a property before setting its values on records. Choose objectType from schemas.list and groupName from properties.groups.list; provide an immutable internal name, display label, type and fieldType. Enumeration properties require their valid options. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
9023
|
+
"http": "POST",
|
|
9024
|
+
"path": "/crm/v1/properties/{objectType}",
|
|
9025
|
+
"streaming": "no",
|
|
9026
|
+
"pagination": false,
|
|
9027
|
+
"pathParams": [
|
|
9028
|
+
{
|
|
9029
|
+
"name": "objectType",
|
|
9030
|
+
"sdkName": "objectType",
|
|
9031
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
9032
|
+
}
|
|
9033
|
+
],
|
|
9034
|
+
"query": [],
|
|
9035
|
+
"body": {
|
|
9036
|
+
"required": true,
|
|
9037
|
+
"fields": [
|
|
9038
|
+
{
|
|
9039
|
+
"name": "calculationFormula",
|
|
9040
|
+
"type": "string",
|
|
9041
|
+
"required": false,
|
|
9042
|
+
"description": "Represents a formula that is used to compute a calculated property."
|
|
9043
|
+
},
|
|
9044
|
+
{
|
|
9045
|
+
"name": "currencyPropertyName",
|
|
9046
|
+
"type": "string",
|
|
9047
|
+
"required": false,
|
|
9048
|
+
"description": "A string representing the name of the currency property."
|
|
9049
|
+
},
|
|
9050
|
+
{
|
|
9051
|
+
"name": "dataSensitivity",
|
|
9052
|
+
"type": "string",
|
|
9053
|
+
"enum": [
|
|
9054
|
+
"highly_sensitive",
|
|
9055
|
+
"non_sensitive",
|
|
9056
|
+
"sensitive"
|
|
9057
|
+
],
|
|
9058
|
+
"required": false,
|
|
9059
|
+
"description": "Indicates the sensitivity level of the property, with options: highly_sensitive, non_sensitive, or sensitive."
|
|
9060
|
+
},
|
|
9061
|
+
{
|
|
9062
|
+
"name": "description",
|
|
9063
|
+
"type": "string",
|
|
9064
|
+
"required": false,
|
|
9065
|
+
"description": "A description of the property that will be shown as help text in CRM."
|
|
9066
|
+
},
|
|
9067
|
+
{
|
|
9068
|
+
"name": "displayOrder",
|
|
9069
|
+
"type": "integer",
|
|
9070
|
+
"required": false,
|
|
9071
|
+
"description": "Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property to be displayed after any positive values."
|
|
9072
|
+
},
|
|
9073
|
+
{
|
|
9074
|
+
"name": "externalOptions",
|
|
9075
|
+
"type": "boolean",
|
|
9076
|
+
"required": false,
|
|
9077
|
+
"description": "Applicable only for 'enumeration' type properties. Should be set to true in conjunction with a 'referencedObjectType' of 'OWNER'. Otherwise false."
|
|
9078
|
+
},
|
|
9079
|
+
{
|
|
9080
|
+
"name": "fieldType",
|
|
9081
|
+
"type": "string",
|
|
9082
|
+
"enum": [
|
|
9083
|
+
"booleancheckbox",
|
|
9084
|
+
"calculation_equation",
|
|
9085
|
+
"checkbox",
|
|
9086
|
+
"date",
|
|
9087
|
+
"file",
|
|
9088
|
+
"html",
|
|
9089
|
+
"number",
|
|
9090
|
+
"phonenumber",
|
|
9091
|
+
"radio",
|
|
9092
|
+
"select",
|
|
9093
|
+
"text",
|
|
9094
|
+
"textarea"
|
|
9095
|
+
],
|
|
9096
|
+
"required": true,
|
|
9097
|
+
"description": "Controls how the property appears in CRM."
|
|
9098
|
+
},
|
|
9099
|
+
{
|
|
9100
|
+
"name": "formField",
|
|
9101
|
+
"type": "boolean",
|
|
9102
|
+
"required": false,
|
|
9103
|
+
"description": "Whether or not the property can be used in a CRM form."
|
|
9104
|
+
},
|
|
9105
|
+
{
|
|
9106
|
+
"name": "groupName",
|
|
9107
|
+
"type": "string",
|
|
9108
|
+
"required": true,
|
|
9109
|
+
"description": "The name of the property group the property belongs to."
|
|
9110
|
+
},
|
|
9111
|
+
{
|
|
9112
|
+
"name": "hasUniqueValue",
|
|
9113
|
+
"type": "boolean",
|
|
9114
|
+
"required": false,
|
|
9115
|
+
"description": "Whether or not the property's value must be unique. Once set, this can't be changed."
|
|
9116
|
+
},
|
|
9117
|
+
{
|
|
9118
|
+
"name": "hidden",
|
|
9119
|
+
"type": "boolean",
|
|
9120
|
+
"required": false,
|
|
9121
|
+
"description": "If true, the property won't be visible and can't be used in CRM."
|
|
9122
|
+
},
|
|
9123
|
+
{
|
|
9124
|
+
"name": "label",
|
|
9125
|
+
"type": "string",
|
|
9126
|
+
"required": true,
|
|
9127
|
+
"description": "A human-readable property label that will be shown in CRM."
|
|
9128
|
+
},
|
|
9129
|
+
{
|
|
9130
|
+
"name": "name",
|
|
9131
|
+
"type": "string",
|
|
9132
|
+
"required": true,
|
|
9133
|
+
"description": "The internal property name, which must be used when referencing the property via the API."
|
|
9134
|
+
},
|
|
9135
|
+
{
|
|
9136
|
+
"name": "numberDisplayHint",
|
|
9137
|
+
"type": "string",
|
|
9138
|
+
"enum": [
|
|
9139
|
+
"currency",
|
|
9140
|
+
"duration",
|
|
9141
|
+
"formatted",
|
|
9142
|
+
"percentage",
|
|
9143
|
+
"probability",
|
|
9144
|
+
"unformatted"
|
|
9145
|
+
],
|
|
9146
|
+
"required": false,
|
|
9147
|
+
"description": "A string providing a hint on how to display numbers. Valid values include 'unformatted', 'formatted', 'currency', 'percentage', 'duration', 'probability'."
|
|
9148
|
+
},
|
|
9149
|
+
{
|
|
9150
|
+
"name": "options",
|
|
9151
|
+
"type": "array",
|
|
9152
|
+
"itemType": "object",
|
|
9153
|
+
"required": false,
|
|
9154
|
+
"description": "A list of valid options for the property. This field is required for enumerated properties."
|
|
9155
|
+
},
|
|
9156
|
+
{
|
|
9157
|
+
"name": "referencedObjectType",
|
|
9158
|
+
"type": "string",
|
|
9159
|
+
"required": false,
|
|
9160
|
+
"description": "Should be set to 'OWNER' when 'externalOptions' is true, which causes the property to dynamically pull option values from the current CRM users."
|
|
9161
|
+
},
|
|
9162
|
+
{
|
|
9163
|
+
"name": "showCurrencySymbol",
|
|
9164
|
+
"type": "boolean",
|
|
9165
|
+
"required": false,
|
|
9166
|
+
"description": "A boolean indicating whether to show the currency symbol for currency fields."
|
|
9167
|
+
},
|
|
9168
|
+
{
|
|
9169
|
+
"name": "textDisplayHint",
|
|
9170
|
+
"type": "string",
|
|
9171
|
+
"enum": [
|
|
9172
|
+
"domain_name",
|
|
9173
|
+
"email",
|
|
9174
|
+
"ip_address",
|
|
9175
|
+
"multi_line",
|
|
9176
|
+
"phone_number",
|
|
9177
|
+
"physical_address",
|
|
9178
|
+
"postal_code",
|
|
9179
|
+
"unformatted_single_line"
|
|
9180
|
+
],
|
|
9181
|
+
"required": false,
|
|
9182
|
+
"description": "A string providing a hint on how to display text. Valid values include 'unformatted_single_line', 'multi_line', 'email', 'phone_number', 'domain_name', 'ip_address', 'physical_address', 'postal_code'."
|
|
9183
|
+
},
|
|
9184
|
+
{
|
|
9185
|
+
"name": "type",
|
|
9186
|
+
"type": "string",
|
|
9187
|
+
"enum": [
|
|
9188
|
+
"bool",
|
|
9189
|
+
"date",
|
|
9190
|
+
"datetime",
|
|
9191
|
+
"enumeration",
|
|
9192
|
+
"number",
|
|
9193
|
+
"phone_number",
|
|
9194
|
+
"string"
|
|
9195
|
+
],
|
|
9196
|
+
"required": true,
|
|
9197
|
+
"description": "The data type of the property."
|
|
9198
|
+
}
|
|
9199
|
+
]
|
|
9200
|
+
}
|
|
9201
|
+
},
|
|
9202
|
+
{
|
|
9203
|
+
"resource": "crm.properties.groups",
|
|
9204
|
+
"method": "list",
|
|
9205
|
+
"summary": "List property groups",
|
|
9206
|
+
"description": "Discover property groups for an object type before creating or organizing property definitions. Obtain objectType from schemas.list and reuse a group name as groupName in properties.create or properties.update.",
|
|
9207
|
+
"http": "GET",
|
|
9208
|
+
"path": "/crm/v1/properties/{objectType}/groups",
|
|
9209
|
+
"streaming": "no",
|
|
9210
|
+
"pagination": false,
|
|
9211
|
+
"pathParams": [
|
|
9212
|
+
{
|
|
9213
|
+
"name": "objectType",
|
|
9214
|
+
"sdkName": "objectType",
|
|
9215
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
9216
|
+
}
|
|
9217
|
+
],
|
|
9218
|
+
"query": [
|
|
9219
|
+
{
|
|
9220
|
+
"name": "locale",
|
|
9221
|
+
"type": "string",
|
|
9222
|
+
"required": false,
|
|
9223
|
+
"description": "The language locale to use for property group labels. This can help in displaying labels in the preferred language."
|
|
9224
|
+
}
|
|
9225
|
+
]
|
|
9226
|
+
},
|
|
9227
|
+
{
|
|
9228
|
+
"resource": "crm.properties.groups",
|
|
9229
|
+
"method": "create",
|
|
9230
|
+
"summary": "Create property group",
|
|
9231
|
+
"description": "Create a named group for related property definitions of one object type. Obtain objectType from schemas.list; choose a unique internal name and display label, then reuse the returned name as groupName when creating properties. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
9232
|
+
"http": "POST",
|
|
9233
|
+
"path": "/crm/v1/properties/{objectType}/groups",
|
|
9234
|
+
"streaming": "no",
|
|
9235
|
+
"pagination": false,
|
|
9236
|
+
"pathParams": [
|
|
9237
|
+
{
|
|
9238
|
+
"name": "objectType",
|
|
9239
|
+
"sdkName": "objectType",
|
|
9240
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
9241
|
+
}
|
|
9242
|
+
],
|
|
9243
|
+
"query": [],
|
|
9244
|
+
"body": {
|
|
9245
|
+
"required": true,
|
|
9246
|
+
"fields": [
|
|
9247
|
+
{
|
|
9248
|
+
"name": "displayOrder",
|
|
9249
|
+
"type": "integer",
|
|
9250
|
+
"required": false,
|
|
9251
|
+
"description": "Property groups are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property group to be displayed after any positive values."
|
|
9252
|
+
},
|
|
9253
|
+
{
|
|
9254
|
+
"name": "label",
|
|
9255
|
+
"type": "string",
|
|
9256
|
+
"required": true,
|
|
9257
|
+
"description": "A human-readable label that will be shown in CRM."
|
|
9258
|
+
},
|
|
9259
|
+
{
|
|
9260
|
+
"name": "name",
|
|
9261
|
+
"type": "string",
|
|
9262
|
+
"required": true,
|
|
9263
|
+
"description": "The internal property group name, which must be used when referencing the property group via the API."
|
|
9264
|
+
}
|
|
9265
|
+
]
|
|
9266
|
+
}
|
|
9267
|
+
},
|
|
9268
|
+
{
|
|
9269
|
+
"resource": "crm.properties",
|
|
9270
|
+
"method": "archive",
|
|
9271
|
+
"summary": "Archive property",
|
|
9272
|
+
"description": "Archive a property definition selected by internal name from properties.list. Confirm that record entry and search flows no longer depend on it; archived definitions are excluded from normal property lists. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Unlike HubSpot, this own-face archive returns HTTP 200 with a JSON refs body instead of HTTP 204.",
|
|
9273
|
+
"http": "DELETE",
|
|
9274
|
+
"path": "/crm/v1/properties/{objectType}/{propertyName}",
|
|
9275
|
+
"streaming": "no",
|
|
9276
|
+
"pagination": false,
|
|
9277
|
+
"pathParams": [
|
|
9278
|
+
{
|
|
9279
|
+
"name": "objectType",
|
|
9280
|
+
"sdkName": "objectType",
|
|
9281
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
9282
|
+
},
|
|
9283
|
+
{
|
|
9284
|
+
"name": "propertyName",
|
|
9285
|
+
"sdkName": "propertyName",
|
|
9286
|
+
"description": "Immutable internal property name from properties.list; do not pass the display label."
|
|
9287
|
+
}
|
|
9288
|
+
],
|
|
9289
|
+
"query": []
|
|
9290
|
+
},
|
|
9291
|
+
{
|
|
9292
|
+
"resource": "crm.properties",
|
|
9293
|
+
"method": "retrieve",
|
|
9294
|
+
"summary": "Retrieve property",
|
|
9295
|
+
"description": "Inspect the type, options and modification restrictions of a property before changing its definition or record values. Obtain propertyName from properties.list; it is the immutable internal name rather than the label.",
|
|
9296
|
+
"http": "GET",
|
|
9297
|
+
"path": "/crm/v1/properties/{objectType}/{propertyName}",
|
|
9298
|
+
"streaming": "no",
|
|
9299
|
+
"pagination": false,
|
|
9300
|
+
"pathParams": [
|
|
9301
|
+
{
|
|
9302
|
+
"name": "objectType",
|
|
9303
|
+
"sdkName": "objectType",
|
|
9304
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
9305
|
+
},
|
|
9306
|
+
{
|
|
9307
|
+
"name": "propertyName",
|
|
9308
|
+
"sdkName": "propertyName",
|
|
9309
|
+
"description": "Immutable internal property name from properties.list; do not pass the display label."
|
|
9310
|
+
}
|
|
9311
|
+
],
|
|
9312
|
+
"query": [
|
|
9313
|
+
{
|
|
9314
|
+
"name": "archived",
|
|
9315
|
+
"type": "boolean",
|
|
9316
|
+
"required": false,
|
|
9317
|
+
"description": "Whether to return only results that have been archived."
|
|
9318
|
+
},
|
|
9319
|
+
{
|
|
9320
|
+
"name": "dataSensitivity",
|
|
9321
|
+
"type": "string",
|
|
9322
|
+
"enum": [
|
|
9323
|
+
"highly_sensitive",
|
|
9324
|
+
"non_sensitive",
|
|
9325
|
+
"sensitive"
|
|
9326
|
+
],
|
|
9327
|
+
"required": false,
|
|
9328
|
+
"description": "The level of data sensitivity to filter properties by. Valid values are 'non_sensitive', 'sensitive', and 'highly_sensitive'. Defaults to 'non_sensitive'."
|
|
9329
|
+
},
|
|
9330
|
+
{
|
|
9331
|
+
"name": "locale",
|
|
9332
|
+
"type": "string",
|
|
9333
|
+
"required": false,
|
|
9334
|
+
"description": "The locale to use for property labels and descriptions."
|
|
9335
|
+
},
|
|
9336
|
+
{
|
|
9337
|
+
"name": "properties",
|
|
9338
|
+
"type": "string",
|
|
9339
|
+
"required": false,
|
|
9340
|
+
"description": "A comma-separated list of property names to include in the response."
|
|
9341
|
+
}
|
|
9342
|
+
]
|
|
9343
|
+
},
|
|
9344
|
+
{
|
|
9345
|
+
"resource": "crm.properties",
|
|
9346
|
+
"method": "update",
|
|
9347
|
+
"summary": "Update property",
|
|
9348
|
+
"description": "Change editable settings of a property selected from properties.list, such as its label, group or options. Preserve the immutable internal name; inspect modificationMetadata before editing system-managed definitions. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
9349
|
+
"http": "PATCH",
|
|
9350
|
+
"path": "/crm/v1/properties/{objectType}/{propertyName}",
|
|
9351
|
+
"streaming": "no",
|
|
9352
|
+
"pagination": false,
|
|
9353
|
+
"pathParams": [
|
|
9354
|
+
{
|
|
9355
|
+
"name": "objectType",
|
|
9356
|
+
"sdkName": "objectType",
|
|
9357
|
+
"description": "Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>."
|
|
9358
|
+
},
|
|
9359
|
+
{
|
|
9360
|
+
"name": "propertyName",
|
|
9361
|
+
"sdkName": "propertyName",
|
|
9362
|
+
"description": "Immutable internal property name from properties.list; do not pass the display label."
|
|
9363
|
+
}
|
|
9364
|
+
],
|
|
9365
|
+
"query": [],
|
|
9366
|
+
"body": {
|
|
9367
|
+
"required": true,
|
|
9368
|
+
"fields": [
|
|
9369
|
+
{
|
|
9370
|
+
"name": "calculationFormula",
|
|
9371
|
+
"type": "string",
|
|
9372
|
+
"required": false,
|
|
9373
|
+
"description": "Represents a formula that is used to compute a calculated property."
|
|
9374
|
+
},
|
|
9375
|
+
{
|
|
9376
|
+
"name": "currencyPropertyName",
|
|
9377
|
+
"type": "string",
|
|
9378
|
+
"required": false,
|
|
9379
|
+
"description": "A string specifying the name of the property that holds the currency information, applicable when showCurrencySymbol is true."
|
|
9380
|
+
},
|
|
9381
|
+
{
|
|
9382
|
+
"name": "description",
|
|
9383
|
+
"type": "string",
|
|
9384
|
+
"required": false,
|
|
9385
|
+
"description": "A description of the property that will be shown as help text in CRM."
|
|
9386
|
+
},
|
|
9387
|
+
{
|
|
9388
|
+
"name": "displayOrder",
|
|
9389
|
+
"type": "integer",
|
|
9390
|
+
"required": false,
|
|
9391
|
+
"description": "Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the Property to be displayed after any positive values."
|
|
9392
|
+
},
|
|
9393
|
+
{
|
|
9394
|
+
"name": "fieldType",
|
|
9395
|
+
"type": "string",
|
|
9396
|
+
"enum": [
|
|
9397
|
+
"booleancheckbox",
|
|
9398
|
+
"calculation_equation",
|
|
9399
|
+
"checkbox",
|
|
9400
|
+
"date",
|
|
9401
|
+
"file",
|
|
9402
|
+
"html",
|
|
9403
|
+
"number",
|
|
9404
|
+
"phonenumber",
|
|
9405
|
+
"radio",
|
|
9406
|
+
"select",
|
|
9407
|
+
"text",
|
|
9408
|
+
"textarea"
|
|
9409
|
+
],
|
|
9410
|
+
"required": false,
|
|
9411
|
+
"description": "Controls how the property appears in CRM."
|
|
9412
|
+
},
|
|
9413
|
+
{
|
|
9414
|
+
"name": "formField",
|
|
9415
|
+
"type": "boolean",
|
|
9416
|
+
"required": false,
|
|
9417
|
+
"description": "Whether or not the property can be used in a CRM form."
|
|
9418
|
+
},
|
|
9419
|
+
{
|
|
9420
|
+
"name": "groupName",
|
|
9421
|
+
"type": "string",
|
|
9422
|
+
"required": false,
|
|
9423
|
+
"description": "The name of the property group the property belongs to."
|
|
9424
|
+
},
|
|
9425
|
+
{
|
|
9426
|
+
"name": "hidden",
|
|
9427
|
+
"type": "boolean",
|
|
9428
|
+
"required": false,
|
|
9429
|
+
"description": "If true, the property won't be visible and can't be used in CRM."
|
|
9430
|
+
},
|
|
9431
|
+
{
|
|
9432
|
+
"name": "label",
|
|
9433
|
+
"type": "string",
|
|
9434
|
+
"required": false,
|
|
9435
|
+
"description": "A human-readable property label that will be shown in CRM."
|
|
9436
|
+
},
|
|
9437
|
+
{
|
|
9438
|
+
"name": "numberDisplayHint",
|
|
9439
|
+
"type": "string",
|
|
9440
|
+
"enum": [
|
|
9441
|
+
"currency",
|
|
9442
|
+
"duration",
|
|
9443
|
+
"formatted",
|
|
9444
|
+
"percentage",
|
|
9445
|
+
"probability",
|
|
9446
|
+
"unformatted"
|
|
9447
|
+
],
|
|
9448
|
+
"required": false,
|
|
9449
|
+
"description": "A string providing a hint for displaying number values. Valid values include 'unformatted', 'formatted', 'currency', 'percentage', 'duration', and 'probability'."
|
|
9450
|
+
},
|
|
9451
|
+
{
|
|
9452
|
+
"name": "options",
|
|
9453
|
+
"type": "array",
|
|
9454
|
+
"itemType": "object",
|
|
9455
|
+
"required": false,
|
|
9456
|
+
"description": "A list of valid options for the property."
|
|
9457
|
+
},
|
|
9458
|
+
{
|
|
9459
|
+
"name": "showCurrencySymbol",
|
|
9460
|
+
"type": "boolean",
|
|
9461
|
+
"required": false,
|
|
9462
|
+
"description": "A boolean indicating whether to display a currency symbol for number fields formatted as currency."
|
|
9463
|
+
},
|
|
9464
|
+
{
|
|
9465
|
+
"name": "textDisplayHint",
|
|
9466
|
+
"type": "string",
|
|
9467
|
+
"enum": [
|
|
9468
|
+
"domain_name",
|
|
9469
|
+
"email",
|
|
9470
|
+
"ip_address",
|
|
9471
|
+
"multi_line",
|
|
9472
|
+
"phone_number",
|
|
9473
|
+
"physical_address",
|
|
9474
|
+
"postal_code",
|
|
9475
|
+
"unformatted_single_line"
|
|
9476
|
+
],
|
|
9477
|
+
"required": false,
|
|
9478
|
+
"description": "A string providing a hint for displaying text values. Valid values include 'unformatted_single_line', 'multi_line', 'email', 'phone_number', 'domain_name', 'ip_address', 'physical_address', and 'postal_code'."
|
|
9479
|
+
},
|
|
9480
|
+
{
|
|
9481
|
+
"name": "type",
|
|
9482
|
+
"type": "string",
|
|
9483
|
+
"enum": [
|
|
9484
|
+
"bool",
|
|
9485
|
+
"date",
|
|
9486
|
+
"datetime",
|
|
9487
|
+
"enumeration",
|
|
9488
|
+
"number",
|
|
9489
|
+
"phone_number",
|
|
9490
|
+
"string"
|
|
9491
|
+
],
|
|
9492
|
+
"required": false,
|
|
9493
|
+
"description": "The data type of the property."
|
|
9494
|
+
}
|
|
9495
|
+
]
|
|
9496
|
+
}
|
|
9497
|
+
},
|
|
9498
|
+
{
|
|
9499
|
+
"resource": "crm.schemas",
|
|
9500
|
+
"method": "list",
|
|
9501
|
+
"summary": "List object schemas",
|
|
9502
|
+
"description": "Discover available object schemas, display labels, property definitions and association definitions. Reuse the object type identifier or name in record, property and pipeline operations. archived defaults to false; the include parameters control the definition and audit details returned.",
|
|
9503
|
+
"http": "GET",
|
|
9504
|
+
"path": "/crm/v1/schemas",
|
|
9505
|
+
"streaming": "no",
|
|
9506
|
+
"pagination": false,
|
|
9507
|
+
"pathParams": [],
|
|
9508
|
+
"query": [
|
|
9509
|
+
{
|
|
9510
|
+
"name": "archived",
|
|
9511
|
+
"type": "boolean",
|
|
9512
|
+
"required": false,
|
|
9513
|
+
"description": "Whether to return only results that have been archived."
|
|
9514
|
+
},
|
|
9515
|
+
{
|
|
9516
|
+
"name": "includeAssociationDefinitions",
|
|
9517
|
+
"type": "boolean",
|
|
9518
|
+
"required": false,
|
|
9519
|
+
"description": "Whether to include association definitions in the response. Defaults to true."
|
|
9520
|
+
},
|
|
9521
|
+
{
|
|
9522
|
+
"name": "includeAuditMetadata",
|
|
9523
|
+
"type": "boolean",
|
|
9524
|
+
"required": false,
|
|
9525
|
+
"description": "Whether to include audit metadata in the response. Defaults to true."
|
|
9526
|
+
},
|
|
9527
|
+
{
|
|
9528
|
+
"name": "includePropertyDefinitions",
|
|
9529
|
+
"type": "boolean",
|
|
9530
|
+
"required": false,
|
|
9531
|
+
"description": "Whether to include property definitions in the response. Defaults to true."
|
|
9532
|
+
}
|
|
9533
|
+
]
|
|
9534
|
+
},
|
|
9535
|
+
{
|
|
9536
|
+
"resource": "crm.schemas",
|
|
9537
|
+
"method": "create",
|
|
9538
|
+
"summary": "Create object schema",
|
|
9539
|
+
"description": "Define a custom CRM object type before creating its records. Provide its immutable name, singular and plural labels, primaryDisplayProperty, properties and associated object types. Save the returned object type identifier for subsequent record and property operations. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.",
|
|
9540
|
+
"http": "POST",
|
|
9541
|
+
"path": "/crm/v1/schemas",
|
|
9542
|
+
"streaming": "no",
|
|
9543
|
+
"pagination": false,
|
|
9544
|
+
"pathParams": [],
|
|
9545
|
+
"query": [],
|
|
9546
|
+
"body": {
|
|
9547
|
+
"required": true,
|
|
9548
|
+
"fields": [
|
|
9549
|
+
{
|
|
9550
|
+
"name": "allowsSensitiveProperties",
|
|
9551
|
+
"type": "boolean",
|
|
9552
|
+
"required": true,
|
|
9553
|
+
"description": "Determines if the object type can include properties that are marked as sensitive."
|
|
9554
|
+
},
|
|
9555
|
+
{
|
|
9556
|
+
"name": "associatedObjects",
|
|
9557
|
+
"type": "array",
|
|
9558
|
+
"itemType": "string",
|
|
9559
|
+
"required": true,
|
|
9560
|
+
"description": "Associations defined for this object type."
|
|
9561
|
+
},
|
|
9562
|
+
{
|
|
9563
|
+
"name": "description",
|
|
9564
|
+
"type": "string",
|
|
9565
|
+
"required": false,
|
|
9566
|
+
"description": "A brief explanation of the object type."
|
|
9567
|
+
},
|
|
9568
|
+
{
|
|
9569
|
+
"name": "labels",
|
|
9570
|
+
"type": "object",
|
|
9571
|
+
"required": true
|
|
9572
|
+
},
|
|
9573
|
+
{
|
|
9574
|
+
"name": "name",
|
|
9575
|
+
"type": "string",
|
|
9576
|
+
"required": true,
|
|
9577
|
+
"description": "A unique name for this object. For internal use only."
|
|
9578
|
+
},
|
|
9579
|
+
{
|
|
9580
|
+
"name": "primaryDisplayProperty",
|
|
9581
|
+
"type": "string",
|
|
9582
|
+
"required": false,
|
|
9583
|
+
"description": "The name of the primary property for this object. This will be displayed as primary on the CRM record page for this object type."
|
|
9584
|
+
},
|
|
9585
|
+
{
|
|
9586
|
+
"name": "properties",
|
|
9587
|
+
"type": "array",
|
|
9588
|
+
"itemType": "object",
|
|
9589
|
+
"required": true,
|
|
9590
|
+
"description": "Properties defined for this object type."
|
|
9591
|
+
},
|
|
9592
|
+
{
|
|
9593
|
+
"name": "requiredProperties",
|
|
9594
|
+
"type": "array",
|
|
9595
|
+
"itemType": "string",
|
|
9596
|
+
"required": true,
|
|
9597
|
+
"description": "The names of properties that should be **required** when creating an object of this type."
|
|
9598
|
+
},
|
|
9599
|
+
{
|
|
9600
|
+
"name": "searchableProperties",
|
|
9601
|
+
"type": "array",
|
|
9602
|
+
"itemType": "string",
|
|
9603
|
+
"required": true,
|
|
9604
|
+
"description": "Names of properties that will be indexed for this object type in by CRM's product search."
|
|
9605
|
+
},
|
|
9606
|
+
{
|
|
9607
|
+
"name": "secondaryDisplayProperties",
|
|
9608
|
+
"type": "array",
|
|
9609
|
+
"itemType": "string",
|
|
9610
|
+
"required": true,
|
|
9611
|
+
"description": "The names of secondary properties for this object. These will be displayed as secondary on the CRM record page for this object type."
|
|
9612
|
+
},
|
|
9613
|
+
{
|
|
9614
|
+
"name": "shouldCreateSameObjectAssociation",
|
|
9615
|
+
"type": "boolean",
|
|
9616
|
+
"required": true,
|
|
9617
|
+
"description": "A boolean indicating whether associations should be created between objects of the same type."
|
|
9618
|
+
}
|
|
9619
|
+
]
|
|
9620
|
+
}
|
|
9621
|
+
},
|
|
9622
|
+
{
|
|
9623
|
+
"resource": "cut.exports",
|
|
9624
|
+
"method": "retrieve",
|
|
9625
|
+
"summary": "Retrieve video export",
|
|
9626
|
+
"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.",
|
|
9627
|
+
"http": "GET",
|
|
9628
|
+
"path": "/cut/v1/exports/{export_id}",
|
|
9629
|
+
"streaming": "no",
|
|
9630
|
+
"pagination": false,
|
|
9631
|
+
"pathParams": [
|
|
9632
|
+
{
|
|
9633
|
+
"name": "export_id",
|
|
9634
|
+
"sdkName": "export_id",
|
|
9635
|
+
"description": "Export identifier returned by its create or list operation; use the id, not a display name."
|
|
9636
|
+
}
|
|
9637
|
+
],
|
|
9638
|
+
"query": []
|
|
9639
|
+
},
|
|
9640
|
+
{
|
|
9641
|
+
"resource": "cut.exports",
|
|
9642
|
+
"method": "cancel",
|
|
9643
|
+
"summary": "Cancel video export",
|
|
9644
|
+
"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.",
|
|
9645
|
+
"http": "POST",
|
|
9646
|
+
"path": "/cut/v1/exports/{export_id}:cancel",
|
|
9647
|
+
"streaming": "no",
|
|
9648
|
+
"pagination": false,
|
|
9649
|
+
"pathParams": [
|
|
9650
|
+
{
|
|
9651
|
+
"name": "export_id",
|
|
9652
|
+
"sdkName": "export_id",
|
|
9653
|
+
"description": "Export identifier returned by its create or list operation; use the id, not a display name."
|
|
9654
|
+
}
|
|
9655
|
+
],
|
|
9656
|
+
"query": []
|
|
9657
|
+
},
|
|
9658
|
+
{
|
|
9659
|
+
"resource": "cut.projects",
|
|
9660
|
+
"method": "list",
|
|
9661
|
+
"summary": "List projects",
|
|
9662
|
+
"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.",
|
|
9663
|
+
"http": "GET",
|
|
9664
|
+
"path": "/cut/v1/projects",
|
|
9665
|
+
"streaming": "no",
|
|
9666
|
+
"pagination": false,
|
|
9667
|
+
"pathParams": [],
|
|
9668
|
+
"query": [
|
|
9669
|
+
{
|
|
9670
|
+
"name": "page_size",
|
|
9671
|
+
"type": "integer",
|
|
9672
|
+
"required": false,
|
|
9673
|
+
"description": "Maximum resources in one page, from 1 to 100; defaults to 50."
|
|
9674
|
+
},
|
|
9675
|
+
{
|
|
9676
|
+
"name": "page_token",
|
|
9677
|
+
"type": "string",
|
|
9678
|
+
"required": false,
|
|
9679
|
+
"description": "Opaque next_page_token from the preceding page; omit on the first request."
|
|
9680
|
+
},
|
|
9681
|
+
{
|
|
9682
|
+
"name": "filter",
|
|
9683
|
+
"type": "string",
|
|
9684
|
+
"required": false,
|
|
9685
|
+
"description": "Optional resource filter; projects supports state = \"active\" or state = \"deleted\"."
|
|
9686
|
+
},
|
|
9687
|
+
{
|
|
9688
|
+
"name": "order_by",
|
|
9689
|
+
"type": "string",
|
|
9690
|
+
"required": false,
|
|
9691
|
+
"description": "Optional ordering expression; projects supports updateTime desc."
|
|
9692
|
+
}
|
|
9693
|
+
]
|
|
9694
|
+
},
|
|
9695
|
+
{
|
|
9696
|
+
"resource": "cut.projects",
|
|
9697
|
+
"method": "create",
|
|
9698
|
+
"summary": "Create project",
|
|
9699
|
+
"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.",
|
|
9700
|
+
"http": "POST",
|
|
9701
|
+
"path": "/cut/v1/projects",
|
|
9702
|
+
"streaming": "no",
|
|
9703
|
+
"pagination": false,
|
|
9704
|
+
"pathParams": [],
|
|
9705
|
+
"query": [],
|
|
9706
|
+
"body": {
|
|
9707
|
+
"required": true,
|
|
9708
|
+
"fields": [
|
|
9709
|
+
{
|
|
9710
|
+
"name": "name",
|
|
9711
|
+
"type": "string",
|
|
9712
|
+
"required": true,
|
|
9713
|
+
"description": "Human-readable project name; required and must contain non-whitespace text."
|
|
9714
|
+
},
|
|
9715
|
+
{
|
|
9716
|
+
"name": "labels",
|
|
9717
|
+
"type": "object",
|
|
9718
|
+
"required": false,
|
|
9719
|
+
"description": "User-defined string labels for organizing projects; label keys retain their original spelling."
|
|
9720
|
+
},
|
|
9721
|
+
{
|
|
9722
|
+
"name": "settings",
|
|
9723
|
+
"type": "object",
|
|
9724
|
+
"required": true,
|
|
9725
|
+
"description": "Dimensions and frame rate for a new editing project."
|
|
9726
|
+
},
|
|
9727
|
+
{
|
|
9728
|
+
"name": "bindings",
|
|
9729
|
+
"type": "array",
|
|
9730
|
+
"itemType": "object",
|
|
9731
|
+
"required": true,
|
|
9732
|
+
"description": "Accessible library bindings; exactly one read_write entry must have default_upload true."
|
|
9733
|
+
}
|
|
9734
|
+
]
|
|
9735
|
+
}
|
|
9736
|
+
},
|
|
9737
|
+
{
|
|
9738
|
+
"resource": "cut.projects",
|
|
9739
|
+
"method": "delete",
|
|
9740
|
+
"summary": "Delete project",
|
|
9741
|
+
"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.",
|
|
9742
|
+
"http": "DELETE",
|
|
9743
|
+
"path": "/cut/v1/projects/{project_id}",
|
|
9744
|
+
"streaming": "no",
|
|
9745
|
+
"pagination": false,
|
|
9746
|
+
"pathParams": [
|
|
9747
|
+
{
|
|
9748
|
+
"name": "project_id",
|
|
9749
|
+
"sdkName": "project_id",
|
|
9750
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
9751
|
+
}
|
|
9752
|
+
],
|
|
9753
|
+
"query": []
|
|
9754
|
+
},
|
|
9755
|
+
{
|
|
9756
|
+
"resource": "cut.projects",
|
|
9757
|
+
"method": "retrieve",
|
|
9758
|
+
"summary": "Retrieve project",
|
|
9759
|
+
"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.",
|
|
9760
|
+
"http": "GET",
|
|
9761
|
+
"path": "/cut/v1/projects/{project_id}",
|
|
9762
|
+
"streaming": "no",
|
|
9763
|
+
"pagination": false,
|
|
9764
|
+
"pathParams": [
|
|
9765
|
+
{
|
|
9766
|
+
"name": "project_id",
|
|
9767
|
+
"sdkName": "project_id",
|
|
9768
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
9769
|
+
}
|
|
9770
|
+
],
|
|
9771
|
+
"query": [
|
|
9772
|
+
{
|
|
9773
|
+
"name": "expand",
|
|
9774
|
+
"type": "string",
|
|
9775
|
+
"required": false,
|
|
9776
|
+
"description": "Comma-separated expansions: timeline includes clips, exports includes render jobs, versions includes saved snapshots."
|
|
9777
|
+
}
|
|
9778
|
+
]
|
|
9779
|
+
},
|
|
9780
|
+
{
|
|
9781
|
+
"resource": "cut.projects",
|
|
9782
|
+
"method": "update",
|
|
9783
|
+
"summary": "Update project metadata",
|
|
9784
|
+
"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.",
|
|
9785
|
+
"http": "PATCH",
|
|
9786
|
+
"path": "/cut/v1/projects/{project_id}",
|
|
9787
|
+
"streaming": "no",
|
|
9788
|
+
"pagination": false,
|
|
9789
|
+
"pathParams": [
|
|
9790
|
+
{
|
|
9791
|
+
"name": "project_id",
|
|
9792
|
+
"sdkName": "project_id",
|
|
9793
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
9794
|
+
}
|
|
9795
|
+
],
|
|
9796
|
+
"query": [],
|
|
9797
|
+
"body": {
|
|
9798
|
+
"required": true,
|
|
9799
|
+
"fields": [
|
|
9800
|
+
{
|
|
9801
|
+
"name": "name",
|
|
9802
|
+
"type": "string",
|
|
9803
|
+
"required": false,
|
|
9804
|
+
"description": "Replacement display name when update_mask includes name."
|
|
9805
|
+
},
|
|
9806
|
+
{
|
|
9807
|
+
"name": "labels",
|
|
9808
|
+
"type": "object",
|
|
9809
|
+
"required": false,
|
|
9810
|
+
"description": "User-defined string labels for organizing projects; label keys retain their original spelling."
|
|
9811
|
+
},
|
|
9812
|
+
{
|
|
9813
|
+
"name": "update_mask",
|
|
9814
|
+
"type": "array",
|
|
9815
|
+
"itemType": "string",
|
|
9816
|
+
"enum": [
|
|
9817
|
+
"name",
|
|
9818
|
+
"labels"
|
|
9819
|
+
],
|
|
9820
|
+
"required": true,
|
|
9821
|
+
"description": "Metadata fields to replace; name changes the display name and labels replaces all labels."
|
|
9822
|
+
}
|
|
9823
|
+
]
|
|
9824
|
+
}
|
|
9825
|
+
},
|
|
9826
|
+
{
|
|
9827
|
+
"resource": "cut.projects.analysis",
|
|
9828
|
+
"method": "create",
|
|
9829
|
+
"summary": "Analyze project media",
|
|
9830
|
+
"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. Silence measures transcript-based speech pauses, not music or loudness. A completed transcript without words returns ready with empty segments and reason no_speech; no completed transcript returns unsupported with reason no_transcript. A failed transcription remains failed.",
|
|
9831
|
+
"http": "POST",
|
|
9832
|
+
"path": "/cut/v1/projects/{project_id}/analysis",
|
|
9833
|
+
"streaming": "no",
|
|
9834
|
+
"pagination": false,
|
|
9835
|
+
"pathParams": [
|
|
9836
|
+
{
|
|
9837
|
+
"name": "project_id",
|
|
9838
|
+
"sdkName": "project_id",
|
|
9839
|
+
"description": "Project identifier returned by its create or list operation; use the id, not a display name."
|
|
9840
|
+
}
|
|
9841
|
+
],
|
|
9842
|
+
"query": [],
|
|
9843
|
+
"body": {
|
|
9844
|
+
"required": true,
|
|
9845
|
+
"fields": [
|
|
9846
|
+
{
|
|
9847
|
+
"name": "media",
|
|
9848
|
+
"type": "array",
|
|
9849
|
+
"itemType": "object",
|
|
9850
|
+
"required": false,
|
|
9851
|
+
"description": "Bound-library assets to analyze; omission selects project media."
|
|
9852
|
+
},
|
|
9853
|
+
{
|
|
9854
|
+
"name": "kinds",
|
|
9855
|
+
"type": "array",
|
|
9856
|
+
"itemType": "string",
|
|
9857
|
+
"enum": [
|
|
9858
|
+
"silence",
|
|
9859
|
+
"filler",
|
|
9860
|
+
"scenes"
|
|
7917
9861
|
],
|
|
7918
9862
|
"required": true,
|
|
7919
9863
|
"description": "Analysis types to request for the selected source assets."
|
|
@@ -8054,6 +9998,18 @@ export const operations = [
|
|
|
8054
9998
|
"body": {
|
|
8055
9999
|
"required": true,
|
|
8056
10000
|
"fields": [
|
|
10001
|
+
{
|
|
10002
|
+
"name": "folder",
|
|
10003
|
+
"type": "string",
|
|
10004
|
+
"required": false,
|
|
10005
|
+
"description": "Optional destination path within the bound media library; omitted uses its default folder."
|
|
10006
|
+
},
|
|
10007
|
+
{
|
|
10008
|
+
"name": "name",
|
|
10009
|
+
"type": "string",
|
|
10010
|
+
"required": false,
|
|
10011
|
+
"description": "Nonempty display name, frozen with the export. Path separators and control characters become hyphens; limited to 200 characters. Omitted uses project name and timestamp."
|
|
10012
|
+
},
|
|
8057
10013
|
{
|
|
8058
10014
|
"name": "output",
|
|
8059
10015
|
"type": "object",
|
|
@@ -8079,7 +10035,7 @@ export const operations = [
|
|
|
8079
10035
|
"resource": "cut.projects.frames",
|
|
8080
10036
|
"method": "list",
|
|
8081
10037
|
"summary": "Render preview frames",
|
|
8082
|
-
"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.
|
|
10038
|
+
"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. Request at most eight times. Each returned url is an inline PNG data URL (data:image/png;base64,...), not a hosted HTTP image link. The default scale is 0.25; use 0.5 for subtitle layout inspection (1080×1920 renders at 540×960). The maximum is 0.5; values above it return INVALID_PARAMS. Actual width and height are returned per frame. PNGs above 2 MiB or responses above 4 MiB return RESPONSE_TOO_LARGE without silently lowering resolution. FRAME_UNAVAILABLE warnings on execute mean a source preview could not be fetched and an offline tile was drawn; edits still commit, and this warning alone does not establish that the source media is broken. Decode its base64 payload to save the image. Codemode returns at most four images per call, so request at most four times when reviewing there.",
|
|
8083
10039
|
"http": "GET",
|
|
8084
10040
|
"path": "/cut/v1/projects/{project_id}/frames",
|
|
8085
10041
|
"streaming": "no",
|
|
@@ -8102,7 +10058,7 @@ export const operations = [
|
|
|
8102
10058
|
"name": "scale",
|
|
8103
10059
|
"type": "number",
|
|
8104
10060
|
"required": false,
|
|
8105
|
-
"description": "
|
|
10061
|
+
"description": "Image size multiplier, default 0.25, greater than zero and at most 0.5. Larger values return INVALID_PARAMS; pixel-area limits may reduce actual dimensions, reported as width and height."
|
|
8106
10062
|
},
|
|
8107
10063
|
{
|
|
8108
10064
|
"name": "revision",
|
|
@@ -8294,7 +10250,7 @@ export const operations = [
|
|
|
8294
10250
|
"resource": "cut.projects",
|
|
8295
10251
|
"method": "execute",
|
|
8296
10252
|
"summary": "Execute editing script",
|
|
8297
|
-
"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```",
|
|
10253
|
+
"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. 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: `const t = AddTrack(\"video\"); Insert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3}); Print(t);`\n\n### Script function reference\n\nFunctions are synchronous globals; do not import them. `project` is the current project ID. TrackId and ClipId are strings returned by AddTrack and Insert or read from GetTimeline. JoinId is the string returned by Join or read from GetTimeline().joins. Reads see earlier writes in the same script.\n\n```ts\nGetTimeline(o?: { from?: number; to?: number; tracks?: TrackId[] }): TimelineView;\nGetItem(id: ClipId): ItemView;\nFindItems<T>(visit: (item: ItemView, ctx: { track: TrackView; index: number }) => T | undefined): T[];\nGetMedia(ref: MediaRef): MediaInfo;\nGetTranscript(ref: MediaRef, o?: { from?: number; to?: number }): Word[];\nGetAnalysis(ref: MediaRef, kind: AnalysisKind): Segment[];\nListTransitions(): TransitionInfo[];\nInsert(track: TrackId, item: ItemInit, o?: { ripple?: boolean }): ClipId;\nUpdate(id: ClipId, patch: ItemPatchView): void;\nSetSpeed(id: ClipId, rate: number, o: { keep: \"source\" | \"duration\"; ripple?: boolean }): { length: number; sourceOut: number };\nDelete(id: ClipId, o?: { ripple?: boolean }): void;\nJoin(left: ClipId, right: ClipId, o: { length?: number; effect: TransitionInput }): JoinId;\nUpdateJoin(id: JoinId, patch: { length?: number; effect?: TransitionInput }): void;\nDeleteJoin(id: JoinId): void;\nSplit(id: ClipId, at: number): ClipId;\nTrim(id: ClipId, edge: \"in\" | \"out\", delta: number, o?: { ripple?: boolean }): void;\nMove(id: ClipId, start: number, track?: TrackId): void;\nRippleDeleteRange(from: number, to: number, tracks?: TrackId[]): void;\nAddTrack(kind: \"video\" | \"audio\" | \"caption\", init?: { name?: string }, index?: number): TrackId;\nUpdateTrack(id: TrackId, patch: TrackPatch): void;\nDeleteTrack(id: TrackId): void;\nSetSettings(patch: Partial<ProjectSettingsView>): void;\nAddCaptionsFromTranscript(track: TrackId, source: ClipId, o?: { style?: Partial<CaptionStyle>; maxChars?: number }): ClipId[];\nSetMarker(at: number, label: string): string;\nPrint(...values: unknown[]): void;\nPreview(at: number[]): void;\n```\n\n| Functions | Behavior and arguments |\n| --- | --- |\n| GetTimeline, GetItem | Read compact item views: id, track, type, start, end, length, optional media, playback, sourceIn/sourceOut, text and offline reason. GetTimeline returns duration, tracks (id, kind, name, index, locked, items), and joins (id, track, left, right, length in seconds, normalized effect). from/to and tracks narrow the items and joins; joins are selected by their overlap window. |\n| ListTransitions | Discover the shared validation catalog: each entry contains kind (effect ID), name, description and params. Each parameter has name, type (enum/number/integer), default, description, enum values or numeric min/max. Use the returned kind and parameter names inside effect. |\n| FindItems | Visit items with their track and index; return undefined to omit an item, any other value to collect it. |\n| GetMedia | Read metadata for `{libraryId, assetId}` in a bound library: kind, dimensions, fps, hasAudio and durationUs when available. durationUs is microseconds. |\n| GetTranscript, GetAnalysis | Read available transcript words or silence/filler/scenes segments. Transcript filter from/to is seconds; returned word and segment from/to values are source microseconds (divide by 1,000,000 for editing). Words contain text and optional speaker/filler; segments may include label/confidence. Request analysis first if unavailable. |\n| Insert, Update, Delete | Insert returns the new clip ID; Update changes supplied fields; Delete removes the clip. Optional ripple on Insert/Delete closes or opens space on the track. |\n| SetSpeed | Change video/audio rate in 0.25–4; keep is required. source preserves consumed source and changes length, duration preserves output length. Returns actual length and sourceOut in seconds. Optional ripple explicitly shifts same-track followers when keeping source; otherwise overlaps are rejected. |\n| Join, UpdateJoin, DeleteJoin | Join creates an overlap between two butt-adjacent visual clips on the same track and returns its ID. length defaults to 0.5 seconds; effect is required. The right clip and all same-track followers move left by length, shortening that track and potentially the project. UpdateJoin moves those followers by the difference in length; omitted fields are preserved. DeleteJoin moves them right to restore the butt cut. Other tracks stay in place. |\n| Split, Trim, Move | Split at a timeline position and return the new right-hand clip ID. Trim changes the in or out edge by delta seconds. Move sets the timeline start and optionally a new track. |\n| RippleDeleteRange | Delete a timeline interval and close its gap on the specified tracks, or all unlocked tracks when omitted. |\n| AddTrack, UpdateTrack, DeleteTrack | Add video/audio/caption tracks; index selects layer order (0 is top). TrackPatch supports name, locked, hidden, muted, gainDb and style as appropriate to track kind. |\n| SetSettings | Supply any of width/height (pixels), fps (frames per second), background (color). |\n| AddCaptionsFromTranscript | Create captions from an audio/video clip's kept words. Optional maxChars is 1–1000, default 16; style updates the caption track. Returns caption IDs. |\n| SetMarker | Add a label at a timeline time and return its ID. |\n| Print, Preview | Print appends text to prints. Preview requests up to eight times total per execute and puts images in the result's frames. Each url is an inline PNG data URL, not an HTTP image link. Decode the base64 payload to save an image. Codemode returns at most four images per call; request at most four times there. |\n\n#### Joins between clips\n\nEndpoints may be video, image, text, color or shape; audio and caption are rejected. Require 0 < length < each endpoint's length. Each clip allows at most one incoming and one outgoing join; their summed lengths cannot exceed its length. Three-input overlaps, nonadjacent endpoints and cross-track joins are rejected with OPS_REJECTED. Read the rejection's code and message, shorten or remove conflicting joins, and retry the saved edit.\n\nTransitionInput is an object with kind plus the parameters returned by ListTransitions; omitted parameters use the catalog defaults. Unknown kinds and unknown or invalid parameters are rejected. Effects: dissolve (no parameters); dip (color black/white, default black); push and wipe (direction left/right/up/down, default left); wipe also has softness 0–1, default 0; iris has centerX/centerY 0–1, both default 0.5; blinds has integer count 2–64, default 8, and orientation vertical/horizontal, default vertical; blur has radius 0–100 pixels at 1080-pixel frame height, default 24. Join options and UpdateJoin patches accept only length and effect. Effect updates replace the effect object and apply defaults for omitted parameters.\n\nMinimal example on an existing visual track with adjacent clips left and right: `Print(ListTransitions()); const j = Join(left, right, {length: 0.5, effect: {kind: \"dissolve\"}}); Print(GetTimeline().joins); Preview([GetItem(right).start + 0.25]);` Use `UpdateJoin(j, {length: 0.8})` to adjust it in a later edit or `DeleteJoin(j)` to restore the cut. Preview uses server-rendered frames and includes joins. Per-clip transitionIn/transitionOut remain separate entrance/exit effects.\n\n#### Insert fields (ItemInit)\n\nEvery item requires `type` and `start`. Times used for editing are seconds and snap to the project frame rate: start, length, sourceIn, fadeIn/fadeOut, transition length, keyframe at, reveal delay/stagger/duration. Keyframe and reveal times are relative to the clip start. Video/audio may omit length to use the remaining source duration; other types require length.\n\n| type | Required fields beyond type/start | Optional fields |\n| --- | --- | --- |\n| video | media | length, sourceIn, playback, volumeDb, transform, fit, animate, transitionIn, transitionOut |\n| image | media, length | transform, fit, animate, transitionIn, transitionOut |\n| text | text, length | style, transform, reveal, animate, transitionIn, transitionOut |\n| color | color, length | transform, fill, animate, transitionIn, transitionOut |\n| shape | shape, length, width, height, fill | radius, stroke, transform, animate, transitionIn, transitionOut |\n| audio | media | length, sourceIn, playback, volumeDb, fadeIn, fadeOut |\n| caption | text, length | — |\n\nVideo tracks accept video/image/text/color/shape; audio and caption tracks accept their corresponding type. Media is `{libraryId: string, assetId: string}` from a bound library. sourceIn defaults to 0, volumeDb to 0 dB, audio fades to 0 seconds. fit defaults to contain: contain fits the whole image, cover fills and crops, fill stretches, none keeps native dimensions.\n\n| Field | Value |\n| --- | --- |\n| transform | Partial `{x, y, scale, rotation, opacity, crop, blur}`. x/y are normalized canvas center coordinates (default 0.5); scale 1 is fitted size; rotation is degrees (default 0); opacity is 0–1 (default 1). crop is `{top,right,bottom,left}`. blur is 0–100 pixels at 1080-pixel frame height. |\n| style | Partial `{fontFamily, fontSize, fontWeight, color, stroke, background, align, maxWidth, position, margin}`. fontFamily: Geist or Noto Sans SC (default); fontSize defaults to 48; fontWeight: 400 (default), 500 or 700; color defaults to #FFFFFF; align: left, center (default), right; maxWidth is a fraction of canvas width (default 0.9). stroke is `{color,width}`. Text and captions support position (top/middle/bottom; box centers at 12%/50%/85% of height without margin) and optional margin (0–0.4 of canvas height, box edge distance for top/bottom; middle ignores it). Omitted position preserves the text transform (center by default); explicit position controls vertical placement, so omit it for y animation. Caption style additionally supports highlightColor and maxLines: 2. GetItem and GetTimeline return text style and current caption track style. Caption tracks only accept captions; use AddCaptionsFromTranscript, and place text on video tracks. |\n| animate | An object keyed by x, y, scale, rotation, opacity or blur. Each value is an array of `{at: number, value: number, ease?: Ease}` sorted by at with distinct frame-snapped times. Values hold before the first and after the last keyframe, overriding the static transform. |\n| Ease | linear, in, out, inOut, `{bezier: [x1,y1,x2,y2]}` or `{spring: {stiffness, damping, mass?}}`. Easing shapes the segment arriving at that keyframe; springs may overshoot. |\n| reveal | `{by, delay?: number, stagger: number, duration: number, from: {y?, opacity?, scale?, blur?}, ease?: Ease}`. by selects char, word or line. Unit k starts at delay + k * stagger and takes duration seconds to reach its resting state; from.y is a fraction of font size. |\n| fill | A color string (#RRGGBB or #RRGGBBAA), `{linear: {angle, stops: [{at,color}, ...]}}` or `{radial: {stops: [{at,color}, ...]}}`. Stop positions are 0–1; angle is degrees, 0 left to right. On color clips, fill replaces color when supplied. |\n| shape, width, height, radius, stroke | shape is rect or ellipse. width/height are fractions of canvas width/height before scaling. radius rounds rect corners in pixels at 1080-pixel frame height. stroke is `{color: string, width: number}`. |\n| transitionIn, transitionOut | `{kind, length: number}` at the clip's beginning/end. length is seconds. fade changes opacity; dissolve blends; push_left/push_right move horizontally; wipe_left reveals horizontally. |\n\n#### Update fields (ItemPatchView)\n\nAll fields are optional; use only fields relevant to the item's type. Supported fields: start, length, sourceIn, playback, volumeDb, transform, fit, text, style, color, fadeIn, fadeOut, animate, reveal, fill, stroke, shape, width, height, radius, transitionIn, transitionOut. Values and units match Insert. Set animate, reveal, fill, stroke, transitionIn or transitionOut to null to remove that effect; omitting a field preserves it. For example: `Update(id, {volumeDb: -12})` or `Update(id, {transitionIn: null})`.\n\n#### Speed, reverse and freeze\n\nVideo/audio Insert and Update accept playback as `{kind: \"rate\", rate: number, direction: \"forward\" | \"reverse\", audio: \"preservePitch\" | \"resample\" | \"mute\"}` or `{kind: \"freeze\"}`. Rate is finite and inclusive 0.25–4. Omitted playback defaults to 1× forward with preservePitch; supply the complete rate object when changing playback. preservePitch keeps pitch, resample changes pitch with speed, mute removes audio. Reverse requires explicit audio: \"mute\"; preservePitch/resample are rejected with UNSUPPORTED_PLAYBACK rather than silently muted. Freeze holds sourceIn and is silent. GetItem/GetTimeline echo playback and the source interval in seconds; sourceOut is exclusive even for reverse and equals sourceIn for freeze.\n\nUpdate of playback keeps output length unless length is also supplied. SetSpeed preserves direction/audio, rejects frozen and non-video/audio clips, and requires keep: \"source\" or \"duration\". keep: \"source\" computes round(consumed source / new rate × fps) frames, falling back to floor if rounding would exceed the source end; the returned length/sourceOut are actual frame-rounded seconds. keep: \"duration\" keeps output length and changes source consumption. Length conflicts fail with OVERLAP; move/shorten the conflicting clip, keep duration, or explicitly use ripple: true to shift following clips on the same track. Source overflow fails with OUT_OF_SOURCE; rate limits fail with RATE_OUT_OF_RANGE. Unknown playback fields and SetSpeed options are rejected with UNKNOWN_FIELD; options only accept keep and boolean ripple.\n\nExample for an existing four-second video/audio clip id: `Print(SetSpeed(id, 0.5, {keep: \"source\"})); Print(SetSpeed(id, 2, {keep: \"source\"}));` returns lengths 8 then 2, keeping the same source interval. Reverse: `Update(id, {playback: {kind: \"rate\", rate: 1, direction: \"reverse\", audio: \"mute\"}})`. Freeze: `Update(id, {playback: {kind: \"freeze\"}})`. Ensure enough source remains for the chosen length/rate. Browser reverse playback currently displays a placeholder; server-rendered Preview/frames and exports support reverse normally. Speed-adjusted audio is generated asynchronously after the edit transaction commits; exports wait for that audio before rendering.\n\n#### Script names versus HTTP response names\n\nUse camelCase inside scripts, including nested objects. HTTP request/response JSON outside script source uses snake_case. Map media.library_id → media.libraryId, media.asset_id → media.assetId, source_in → sourceIn, volume_db → volumeDb, fade_in/fade_out → fadeIn/fadeOut, transition_in/transition_out → transitionIn/transitionOut, font_family/font_size/font_weight/max_width → fontFamily/fontSize/fontWeight/maxWidth, gain_db → gainDb, highlight_color/max_lines → highlightColor/maxLines. Fields such as animate, reveal, fill, stroke, at and length retain their spelling. GetTimeline/GetItem already return camelCase compact views; the expanded retrieveTimeline HTTP response is not an Insert object.\n\nUnrecognized script fields fail with OPS_REJECTED and rejection code UNKNOWN_FIELD; snake_case mistakes suggest the corresponding camelCase name. The error message lists each rejection's #opIndex, code and reason. Correct the named fields and retry the saved edit; do not assume an ignored field applied an effect.\n",
|
|
8298
10254
|
"http": "POST",
|
|
8299
10255
|
"path": "/cut/v1/projects/{project_id}:execute",
|
|
8300
10256
|
"streaming": "no",
|
|
@@ -9383,7 +11339,7 @@ export const operations = [
|
|
|
9383
11339
|
"resource": "file.files",
|
|
9384
11340
|
"method": "create",
|
|
9385
11341
|
"summary": "Upload file",
|
|
9386
|
-
"description": "Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File([\"Return within 23 days.\"], \"policy.txt\", { type: \"text/plain\" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–7776000). Without expiry, the file persists until deleted.",
|
|
11342
|
+
"description": "Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data, assistants and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File([\"Return within 23 days.\"], \"policy.txt\", { type: \"text/plain\" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–7776000). Without expiry, the file persists until deleted.",
|
|
9387
11343
|
"http": "POST",
|
|
9388
11344
|
"path": "/file/v1/files",
|
|
9389
11345
|
"streaming": "no",
|
|
@@ -9405,10 +11361,11 @@ export const operations = [
|
|
|
9405
11361
|
"type": "string",
|
|
9406
11362
|
"enum": [
|
|
9407
11363
|
"user_data",
|
|
11364
|
+
"assistants",
|
|
9408
11365
|
"vision"
|
|
9409
11366
|
],
|
|
9410
11367
|
"required": true,
|
|
9411
|
-
"description": "Purpose label stored with the file: user_data or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data."
|
|
11368
|
+
"description": "Purpose label stored with the file: user_data, assistants or vision. The label is stored and returned unchanged; assistants follows the same rules as user_data. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data."
|
|
9412
11369
|
},
|
|
9413
11370
|
{
|
|
9414
11371
|
"name": "expires_after",
|
|
@@ -9477,7 +11434,7 @@ export const operations = [
|
|
|
9477
11434
|
"resource": "file.files.contentLinks",
|
|
9478
11435
|
"method": "revoke",
|
|
9479
11436
|
"summary": "Revoke a file content link",
|
|
9480
|
-
"description": "Stop a previously issued content link from reading a file. Use file_id from file creation or listing and the token path component from a content URL (/c/<token>), not the complete URL. The caller must own the file and have write access; a read-only binding is refused. Revocation propagates through the capability deny list within
|
|
11437
|
+
"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 15 minutes; 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/>\"}.",
|
|
9481
11438
|
"http": "POST",
|
|
9482
11439
|
"path": "/file/v1/files/{file_id}/content_links:revoke",
|
|
9483
11440
|
"streaming": "no",
|
|
@@ -9502,11 +11459,40 @@ export const operations = [
|
|
|
9502
11459
|
]
|
|
9503
11460
|
}
|
|
9504
11461
|
},
|
|
11462
|
+
{
|
|
11463
|
+
"resource": "file.files.contentUrl",
|
|
11464
|
+
"method": "create",
|
|
11465
|
+
"summary": "Create a download URL",
|
|
11466
|
+
"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 900 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}.",
|
|
11467
|
+
"http": "POST",
|
|
11468
|
+
"path": "/file/v1/files/{file_id}/content_url",
|
|
11469
|
+
"streaming": "no",
|
|
11470
|
+
"pagination": false,
|
|
11471
|
+
"pathParams": [
|
|
11472
|
+
{
|
|
11473
|
+
"name": "file_id",
|
|
11474
|
+
"sdkName": "file_id",
|
|
11475
|
+
"description": "Tenant-owned live file identifier from file creation or listing; the file must be active to issue a download URL."
|
|
11476
|
+
}
|
|
11477
|
+
],
|
|
11478
|
+
"query": [],
|
|
11479
|
+
"body": {
|
|
11480
|
+
"required": false,
|
|
11481
|
+
"fields": [
|
|
11482
|
+
{
|
|
11483
|
+
"name": "ttl_seconds",
|
|
11484
|
+
"type": "integer",
|
|
11485
|
+
"required": false,
|
|
11486
|
+
"description": "Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry."
|
|
11487
|
+
}
|
|
11488
|
+
]
|
|
11489
|
+
}
|
|
11490
|
+
},
|
|
9505
11491
|
{
|
|
9506
11492
|
"resource": "file.uploads",
|
|
9507
11493
|
"method": "create",
|
|
9508
11494
|
"summary": "Create an upload",
|
|
9509
|
-
"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.",
|
|
11495
|
+
"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, assistants 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.",
|
|
9510
11496
|
"http": "POST",
|
|
9511
11497
|
"path": "/file/v1/uploads",
|
|
9512
11498
|
"streaming": "no",
|
|
@@ -9539,10 +11525,11 @@ export const operations = [
|
|
|
9539
11525
|
"type": "string",
|
|
9540
11526
|
"enum": [
|
|
9541
11527
|
"user_data",
|
|
11528
|
+
"assistants",
|
|
9542
11529
|
"vision"
|
|
9543
11530
|
],
|
|
9544
11531
|
"required": true,
|
|
9545
|
-
"description": "Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images."
|
|
11532
|
+
"description": "Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images."
|
|
9546
11533
|
},
|
|
9547
11534
|
{
|
|
9548
11535
|
"name": "expires_after",
|
|
@@ -9596,10 +11583,11 @@ export const operations = [
|
|
|
9596
11583
|
"type": "string",
|
|
9597
11584
|
"enum": [
|
|
9598
11585
|
"user_data",
|
|
11586
|
+
"assistants",
|
|
9599
11587
|
"vision"
|
|
9600
11588
|
],
|
|
9601
11589
|
"required": false,
|
|
9602
|
-
"description": "user_data
|
|
11590
|
+
"description": "user_data and assistants store ordinary files and conversation images with their original purpose label; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data."
|
|
9603
11591
|
},
|
|
9604
11592
|
{
|
|
9605
11593
|
"name": "expires_in",
|
|
@@ -9762,7 +11750,7 @@ export const operations = [
|
|
|
9762
11750
|
"resource": "knowledge.vectorStores",
|
|
9763
11751
|
"method": "create",
|
|
9764
11752
|
"summary": "Create knowledge base",
|
|
9765
|
-
"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.
|
|
11753
|
+
"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. PDF files accept up to 536870912 bytes (512 MiB), while other formats accept up to 52428800 bytes (50 MiB), constrained by Router conversion; every file is limited to 5000000 estimated tokens; each account holds up to 100 active/nondeleted stores. Minimal body: {\"name\":\"Refund policies\"}.",
|
|
9766
11754
|
"http": "POST",
|
|
9767
11755
|
"path": "/knowledge/v1/vector_stores",
|
|
9768
11756
|
"streaming": "no",
|
|
@@ -9801,7 +11789,7 @@ export const operations = [
|
|
|
9801
11789
|
"name": "chunking_strategy",
|
|
9802
11790
|
"type": "object",
|
|
9803
11791
|
"required": false,
|
|
9804
|
-
"description": "auto
|
|
11792
|
+
"description": "Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy."
|
|
9805
11793
|
},
|
|
9806
11794
|
{
|
|
9807
11795
|
"name": "description",
|
|
@@ -9813,7 +11801,7 @@ export const operations = [
|
|
|
9813
11801
|
"name": "models",
|
|
9814
11802
|
"type": "object",
|
|
9815
11803
|
"required": false,
|
|
9816
|
-
"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."
|
|
11804
|
+
"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."
|
|
9817
11805
|
}
|
|
9818
11806
|
]
|
|
9819
11807
|
}
|
|
@@ -9917,7 +11905,7 @@ export const operations = [
|
|
|
9917
11905
|
"name": "models",
|
|
9918
11906
|
"type": "object",
|
|
9919
11907
|
"required": false,
|
|
9920
|
-
"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."
|
|
11908
|
+
"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."
|
|
9921
11909
|
}
|
|
9922
11910
|
]
|
|
9923
11911
|
}
|
|
@@ -10148,7 +12136,7 @@ export const operations = [
|
|
|
10148
12136
|
"resource": "knowledge.vectorStores.files",
|
|
10149
12137
|
"method": "create",
|
|
10150
12138
|
"summary": "Add file",
|
|
10151
|
-
"description": "Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching.
|
|
12139
|
+
"description": "Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching. PDF files accept up to 536870912 bytes (512 MiB), while other formats accept up to 52428800 bytes (50 MiB), constrained by Router conversion; every file is limited to 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.",
|
|
10152
12140
|
"http": "POST",
|
|
10153
12141
|
"path": "/knowledge/v1/vector_stores/{vector_store_id}/files",
|
|
10154
12142
|
"streaming": "no",
|
|
@@ -10180,7 +12168,7 @@ export const operations = [
|
|
|
10180
12168
|
"name": "chunking_strategy",
|
|
10181
12169
|
"type": "object",
|
|
10182
12170
|
"required": false,
|
|
10183
|
-
"description": "auto
|
|
12171
|
+
"description": "Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy."
|
|
10184
12172
|
}
|
|
10185
12173
|
]
|
|
10186
12174
|
}
|
|
@@ -10491,7 +12479,7 @@ export const operations = [
|
|
|
10491
12479
|
"resource": "media.libraries",
|
|
10492
12480
|
"method": "list",
|
|
10493
12481
|
"summary": "List libraries",
|
|
10494
|
-
"description": "
|
|
12482
|
+
"description": "Read a caller-owned library’s current settings, usage and lifecycle status. A deleting library remains readable; missing, foreign or purged libraries return LIBRARY_NOT_FOUND.",
|
|
10495
12483
|
"http": "GET",
|
|
10496
12484
|
"path": "/media/v1/libraries",
|
|
10497
12485
|
"streaming": "no",
|
|
@@ -10573,7 +12561,7 @@ export const operations = [
|
|
|
10573
12561
|
"resource": "media.libraries",
|
|
10574
12562
|
"method": "delete",
|
|
10575
12563
|
"summary": "Delete library",
|
|
10576
|
-
"description": "
|
|
12564
|
+
"description": "Restore a deleting library before its purge_at deadline. The library becomes active again and deleted_at and purge_at are cleared; expired or non-deleting libraries cannot be restored.",
|
|
10577
12565
|
"http": "DELETE",
|
|
10578
12566
|
"path": "/media/v1/libraries/{library_id}",
|
|
10579
12567
|
"streaming": "no",
|
|
@@ -10591,7 +12579,7 @@ export const operations = [
|
|
|
10591
12579
|
"resource": "media.libraries",
|
|
10592
12580
|
"method": "retrieve",
|
|
10593
12581
|
"summary": "Get library",
|
|
10594
|
-
"description": "
|
|
12582
|
+
"description": "Update an active library’s supplied settings. Labels replace the complete map; understanding settings and model roles merge with current values. Changing the embedding model is rejected while assets exist.",
|
|
10595
12583
|
"http": "GET",
|
|
10596
12584
|
"path": "/media/v1/libraries/{library_id}",
|
|
10597
12585
|
"streaming": "no",
|
|
@@ -10609,7 +12597,7 @@ export const operations = [
|
|
|
10609
12597
|
"resource": "media.libraries",
|
|
10610
12598
|
"method": "update",
|
|
10611
12599
|
"summary": "Update library",
|
|
10612
|
-
"description": "Update an active library
|
|
12600
|
+
"description": "Update an active library. Set hotwords for spelling evidence in subsequent transcripts; [] disables inferred vocabulary. Transcript understanding calls the timestamped ASR, optional reference ASR and correction model through the existing metered model path. Reprocess assets to apply new settings to existing transcripts.",
|
|
10613
12601
|
"http": "PATCH",
|
|
10614
12602
|
"path": "/media/v1/libraries/{library_id}",
|
|
10615
12603
|
"streaming": "no",
|
|
@@ -10625,6 +12613,13 @@ export const operations = [
|
|
|
10625
12613
|
"body": {
|
|
10626
12614
|
"required": true,
|
|
10627
12615
|
"fields": [
|
|
12616
|
+
{
|
|
12617
|
+
"name": "hotwords",
|
|
12618
|
+
"type": "array",
|
|
12619
|
+
"itemType": "string",
|
|
12620
|
+
"required": false,
|
|
12621
|
+
"description": "Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results."
|
|
12622
|
+
},
|
|
10628
12623
|
{
|
|
10629
12624
|
"name": "models",
|
|
10630
12625
|
"type": "object",
|
|
@@ -10656,7 +12651,7 @@ export const operations = [
|
|
|
10656
12651
|
"resource": "media.libraries.assets",
|
|
10657
12652
|
"method": "list",
|
|
10658
12653
|
"summary": "List assets",
|
|
10659
|
-
"description": "
|
|
12654
|
+
"description": "Upload content into an active library and return a Cloudinary-compatible resource. Use file for a multipart file, data URI, public HTTPS URL or same-owner file identifier. Reusing public_id overwrites by default; overwrite=false returns the existing resource. Chunk uploads require both chunk headers.",
|
|
10660
12655
|
"http": "GET",
|
|
10661
12656
|
"path": "/media/v1/libraries/{library_id}/assets",
|
|
10662
12657
|
"streaming": "no",
|
|
@@ -10704,7 +12699,7 @@ export const operations = [
|
|
|
10704
12699
|
"resource": "media.libraries.assets",
|
|
10705
12700
|
"method": "create",
|
|
10706
12701
|
"summary": "Upload asset",
|
|
10707
|
-
"description": "
|
|
12702
|
+
"description": " For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
|
|
10708
12703
|
"http": "POST",
|
|
10709
12704
|
"path": "/media/v1/libraries/{library_id}/assets",
|
|
10710
12705
|
"streaming": "no",
|
|
@@ -10749,7 +12744,7 @@ export const operations = [
|
|
|
10749
12744
|
"name": "asset_folder",
|
|
10750
12745
|
"type": "string",
|
|
10751
12746
|
"required": false,
|
|
10752
|
-
"description": "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected."
|
|
12747
|
+
"description": "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
|
|
10753
12748
|
},
|
|
10754
12749
|
{
|
|
10755
12750
|
"name": "use_filename",
|
|
@@ -10828,7 +12823,7 @@ export const operations = [
|
|
|
10828
12823
|
"resource": "media.libraries.assets.import",
|
|
10829
12824
|
"method": "create",
|
|
10830
12825
|
"summary": "Import file",
|
|
10831
|
-
"description": "Copy
|
|
12826
|
+
"description": "Copy a File into an independent Media asset. New assets default to organization-private delivery (type=authenticated); explicitly set type=upload for public originals and derivatives. Omitting type on overwrite preserves the current type. Deleting the source File does not delete this copy. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
|
|
10832
12827
|
"http": "POST",
|
|
10833
12828
|
"path": "/media/v1/libraries/{library_id}/assets/import",
|
|
10834
12829
|
"streaming": "no",
|
|
@@ -10848,7 +12843,7 @@ export const operations = [
|
|
|
10848
12843
|
"name": "file_id",
|
|
10849
12844
|
"type": "string",
|
|
10850
12845
|
"required": true,
|
|
10851
|
-
"description": "File ID to copy into this library instead of file bytes. This independent copy defaults to
|
|
12846
|
+
"description": "File ID to copy into this library instead of file bytes. This independent copy defaults to organization-private delivery (type=authenticated); explicitly set type=upload for public delivery. Deleting the source File does not delete this asset."
|
|
10852
12847
|
},
|
|
10853
12848
|
{
|
|
10854
12849
|
"name": "public_id",
|
|
@@ -10872,7 +12867,7 @@ export const operations = [
|
|
|
10872
12867
|
"name": "asset_folder",
|
|
10873
12868
|
"type": "string",
|
|
10874
12869
|
"required": false,
|
|
10875
|
-
"description": "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected."
|
|
12870
|
+
"description": "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
|
|
10876
12871
|
},
|
|
10877
12872
|
{
|
|
10878
12873
|
"name": "use_filename",
|
|
@@ -10951,7 +12946,7 @@ export const operations = [
|
|
|
10951
12946
|
"resource": "media.libraries.assets",
|
|
10952
12947
|
"method": "delete",
|
|
10953
12948
|
"summary": "Delete asset",
|
|
10954
|
-
"description": "
|
|
12949
|
+
"description": "Queue reprocessing of the asset’s current version and return its updated state immediately. Omit kinds to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable completed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Replaced understandings become superseded, and processing finishes asynchronously.",
|
|
10955
12950
|
"http": "DELETE",
|
|
10956
12951
|
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}",
|
|
10957
12952
|
"streaming": "no",
|
|
@@ -10974,7 +12969,7 @@ export const operations = [
|
|
|
10974
12969
|
"resource": "media.libraries.assets",
|
|
10975
12970
|
"method": "retrieve",
|
|
10976
12971
|
"summary": "Get asset",
|
|
10977
|
-
"description": "
|
|
12972
|
+
"description": "Update an asset’s supplied metadata fields. Tags and context replace their current collections; an empty collection clears them. Moving asset_folder or changing display_name preserves public_id and delivery URLs.",
|
|
10978
12973
|
"http": "GET",
|
|
10979
12974
|
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}",
|
|
10980
12975
|
"streaming": "no",
|
|
@@ -10997,7 +12992,7 @@ export const operations = [
|
|
|
10997
12992
|
"resource": "media.libraries.assets",
|
|
10998
12993
|
"method": "update",
|
|
10999
12994
|
"summary": "Update asset",
|
|
11000
|
-
"description": "
|
|
12995
|
+
"description": "Delete an asset from the library so it is no longer readable, searchable or deliverable. This removes the asset rather than placing it in the library’s restoration window; a missing asset returns ASSET_NOT_FOUND.",
|
|
11001
12996
|
"http": "PATCH",
|
|
11002
12997
|
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}",
|
|
11003
12998
|
"streaming": "no",
|
|
@@ -11028,7 +13023,7 @@ export const operations = [
|
|
|
11028
13023
|
"name": "asset_folder",
|
|
11029
13024
|
"type": "string",
|
|
11030
13025
|
"required": false,
|
|
11031
|
-
"description": "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected."
|
|
13026
|
+
"description": "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
|
|
11032
13027
|
},
|
|
11033
13028
|
{
|
|
11034
13029
|
"name": "tags",
|
|
@@ -11046,11 +13041,57 @@ export const operations = [
|
|
|
11046
13041
|
]
|
|
11047
13042
|
}
|
|
11048
13043
|
},
|
|
13044
|
+
{
|
|
13045
|
+
"resource": "media.libraries.assets.frames",
|
|
13046
|
+
"method": "create",
|
|
13047
|
+
"summary": "Create frame URLs",
|
|
13048
|
+
"description": "Media creates JPEG frame URLs for inspecting one or more moments in a video without downloading the original. Obtain library_id from libraries and asset_id plus duration from assets. Send 1–20 integer microsecond timestamps strictly below duration, for example {\"at_micros\":[0,1000000],\"width\":640}. Only video assets are supported; audio and images return INVALID_PARAMS. Width defaults to 640 and accepts 160, 320 or 640. This read operation does not store a new asset or rerun understanding. Fetch each returned URL to obtain the frame; delivery usage follows media pricing. Authenticated links expire after 300 seconds; upload links remain public and permanent. Reissue expired links. Foreign libraries and assets return 404 without revealing their existence.",
|
|
13049
|
+
"http": "POST",
|
|
13050
|
+
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/frames",
|
|
13051
|
+
"streaming": "no",
|
|
13052
|
+
"pagination": false,
|
|
13053
|
+
"pathParams": [
|
|
13054
|
+
{
|
|
13055
|
+
"name": "library_id",
|
|
13056
|
+
"sdkName": "library_id",
|
|
13057
|
+
"description": "Library identifier returned by library creation or listing; must be accessible to the current credential."
|
|
13058
|
+
},
|
|
13059
|
+
{
|
|
13060
|
+
"name": "asset_id",
|
|
13061
|
+
"sdkName": "asset_id",
|
|
13062
|
+
"description": "Video asset identifier returned by asset upload or listing in this library; read its duration before choosing timestamps."
|
|
13063
|
+
}
|
|
13064
|
+
],
|
|
13065
|
+
"query": [],
|
|
13066
|
+
"body": {
|
|
13067
|
+
"required": true,
|
|
13068
|
+
"fields": [
|
|
13069
|
+
{
|
|
13070
|
+
"name": "at_micros",
|
|
13071
|
+
"type": "array",
|
|
13072
|
+
"itemType": "integer",
|
|
13073
|
+
"required": true,
|
|
13074
|
+
"description": "One to twenty timestamps in microseconds from the start of the video. Each must be a nonnegative safe integer strictly below the video duration; order and duplicates are preserved."
|
|
13075
|
+
},
|
|
13076
|
+
{
|
|
13077
|
+
"name": "width",
|
|
13078
|
+
"type": "integer",
|
|
13079
|
+
"enum": [
|
|
13080
|
+
160,
|
|
13081
|
+
320,
|
|
13082
|
+
640
|
|
13083
|
+
],
|
|
13084
|
+
"required": false,
|
|
13085
|
+
"description": "Maximum JPEG width in pixels: 160 is a small thumbnail, 320 a preview and 640 a larger preview. Defaults to 640; larger widths are unavailable."
|
|
13086
|
+
}
|
|
13087
|
+
]
|
|
13088
|
+
}
|
|
13089
|
+
},
|
|
11049
13090
|
{
|
|
11050
13091
|
"resource": "media.libraries.assets.reprocess",
|
|
11051
13092
|
"method": "create",
|
|
11052
13093
|
"summary": "Reprocess asset",
|
|
11053
|
-
"description": "
|
|
13094
|
+
"description": " For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
|
|
11054
13095
|
"http": "POST",
|
|
11055
13096
|
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/reprocess",
|
|
11056
13097
|
"streaming": "no",
|
|
@@ -11082,7 +13123,7 @@ export const operations = [
|
|
|
11082
13123
|
"embedding"
|
|
11083
13124
|
],
|
|
11084
13125
|
"required": false,
|
|
11085
|
-
"description": "Processing tasks to rerun. Omit to retry failed tasks
|
|
13126
|
+
"description": "Processing tasks to rerun. Omit to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable ready or failed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Pending and running tasks are unchanged; an empty array does nothing."
|
|
11086
13127
|
}
|
|
11087
13128
|
]
|
|
11088
13129
|
}
|
|
@@ -11091,7 +13132,7 @@ export const operations = [
|
|
|
11091
13132
|
"resource": "media.libraries.assets.understandings",
|
|
11092
13133
|
"method": "list",
|
|
11093
13134
|
"summary": "List understandings",
|
|
11094
|
-
"description": "List an asset
|
|
13135
|
+
"description": "List understanding results for an asset, ordered by creation time. Use the cursor to continue; include_superseded also returns replaced records. The optional shots array contains current-version shot boundaries and per-shot captions, scene, location guesses, visible text and confidence flags; it is absent on legacy records. Location guesses and folder mismatch are unverified hints. Correction-enabled transcripts expose text_original, corrected text and a correction audit. Their timed data array remains suitable for subtitles. Reference failure is marked missing; correction failure returns the original verbatim. Model inference uses the existing metered model path.",
|
|
11095
13136
|
"http": "GET",
|
|
11096
13137
|
"path": "/media/v1/libraries/{library_id}/assets/{asset_id}/understandings",
|
|
11097
13138
|
"streaming": "no",
|
|
@@ -11123,10 +13164,13 @@ export const operations = [
|
|
|
11123
13164
|
"tags",
|
|
11124
13165
|
"ocr",
|
|
11125
13166
|
"transcript",
|
|
11126
|
-
"frame"
|
|
13167
|
+
"frame",
|
|
13168
|
+
"overview",
|
|
13169
|
+
"audio",
|
|
13170
|
+
"embedding"
|
|
11127
13171
|
],
|
|
11128
13172
|
"required": false,
|
|
11129
|
-
"description": "
|
|
13173
|
+
"description": "Return one output kind: caption is a visual description, tags are generated labels, ocr is visible text, transcript is speech, frame is a video shot, overview is a video summary, audio is sampled audio understanding, and embedding reports a failed embedding step."
|
|
11130
13174
|
},
|
|
11131
13175
|
{
|
|
11132
13176
|
"name": "cursor",
|
|
@@ -11146,7 +13190,7 @@ export const operations = [
|
|
|
11146
13190
|
"resource": "media.libraries.assets",
|
|
11147
13191
|
"method": "batch",
|
|
11148
13192
|
"summary": "Batch assets alias",
|
|
11149
|
-
"description": "
|
|
13193
|
+
"description": "Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {\"action\":\"reprocess\",\"selector\":{\"expression\":\"processing_state=failed AND failure_code=UPSTREAM_FAILED\"}}. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
|
|
11150
13194
|
"http": "POST",
|
|
11151
13195
|
"path": "/media/v1/libraries/{library_id}/assets:batch",
|
|
11152
13196
|
"streaming": "no",
|
|
@@ -11167,6 +13211,12 @@ export const operations = [
|
|
|
11167
13211
|
"type": "object",
|
|
11168
13212
|
"required": true,
|
|
11169
13213
|
"description": "Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created."
|
|
13214
|
+
},
|
|
13215
|
+
{
|
|
13216
|
+
"name": "reason",
|
|
13217
|
+
"type": "string",
|
|
13218
|
+
"required": false,
|
|
13219
|
+
"description": "Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters."
|
|
11170
13220
|
}
|
|
11171
13221
|
]
|
|
11172
13222
|
}
|
|
@@ -11175,7 +13225,7 @@ export const operations = [
|
|
|
11175
13225
|
"resource": "media.libraries.batches",
|
|
11176
13226
|
"method": "create",
|
|
11177
13227
|
"summary": "Create batch",
|
|
11178
|
-
"description": "
|
|
13228
|
+
"description": "Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {\"action\":\"reprocess\",\"selector\":{\"expression\":\"processing_state=failed AND failure_code=UPSTREAM_FAILED\"}}. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
|
|
11179
13229
|
"http": "POST",
|
|
11180
13230
|
"path": "/media/v1/libraries/{library_id}/batches",
|
|
11181
13231
|
"streaming": "no",
|
|
@@ -11196,6 +13246,12 @@ export const operations = [
|
|
|
11196
13246
|
"type": "object",
|
|
11197
13247
|
"required": true,
|
|
11198
13248
|
"description": "Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created."
|
|
13249
|
+
},
|
|
13250
|
+
{
|
|
13251
|
+
"name": "reason",
|
|
13252
|
+
"type": "string",
|
|
13253
|
+
"required": false,
|
|
13254
|
+
"description": "Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters."
|
|
11199
13255
|
}
|
|
11200
13256
|
]
|
|
11201
13257
|
}
|
|
@@ -11204,7 +13260,7 @@ export const operations = [
|
|
|
11204
13260
|
"resource": "media.libraries.batches",
|
|
11205
13261
|
"method": "retrieve",
|
|
11206
13262
|
"summary": "Get batch",
|
|
11207
|
-
"description": "
|
|
13263
|
+
"description": "Alias of batch creation. Apply one metadata or deletion action to ids or a frozen expression selection asynchronously; poll the returned job id to inspect completion and item failures.",
|
|
11208
13264
|
"http": "GET",
|
|
11209
13265
|
"path": "/media/v1/libraries/{library_id}/batches/{job_id}",
|
|
11210
13266
|
"streaming": "no",
|
|
@@ -11227,7 +13283,7 @@ export const operations = [
|
|
|
11227
13283
|
"resource": "media.libraries.deliveryTokens",
|
|
11228
13284
|
"method": "create",
|
|
11229
13285
|
"summary": "Create delivery token",
|
|
11230
|
-
"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
|
|
13286
|
+
"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 900 seconds; narrow acl and expires_in before sharing. Anyone holding the token can read matching paths until expires_at.",
|
|
11231
13287
|
"http": "POST",
|
|
11232
13288
|
"path": "/media/v1/libraries/{library_id}/delivery_tokens",
|
|
11233
13289
|
"streaming": "no",
|
|
@@ -11253,7 +13309,7 @@ export const operations = [
|
|
|
11253
13309
|
"name": "expires_in",
|
|
11254
13310
|
"type": "integer",
|
|
11255
13311
|
"required": false,
|
|
11256
|
-
"description": "Token lifetime in seconds, from 1 to 604800 inclusive; defaults to
|
|
13312
|
+
"description": "Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900."
|
|
11257
13313
|
}
|
|
11258
13314
|
]
|
|
11259
13315
|
}
|
|
@@ -11262,7 +13318,7 @@ export const operations = [
|
|
|
11262
13318
|
"resource": "media.libraries.events",
|
|
11263
13319
|
"method": "list",
|
|
11264
13320
|
"summary": "List events",
|
|
11265
|
-
"description": "Read library events in sequence order
|
|
13321
|
+
"description": "Read library events in sequence order for observing asset writes and understanding progress. Obtain library_id from creation or listing; continue with after_seq for asc or before_seq for desc, without combining both. Use next_cursor when supplied. Reads do not start or retry understanding.",
|
|
11266
13322
|
"http": "GET",
|
|
11267
13323
|
"path": "/media/v1/libraries/{library_id}/events",
|
|
11268
13324
|
"streaming": "no",
|
|
@@ -11309,7 +13365,7 @@ export const operations = [
|
|
|
11309
13365
|
"resource": "media.libraries.folders",
|
|
11310
13366
|
"method": "list",
|
|
11311
13367
|
"summary": "List folders",
|
|
11312
|
-
"description": "
|
|
13368
|
+
"description": "undefined understood_count includes ready and partial assets; failed_count includes failed assets. Both accumulate descendants. counts_complete is false during historical backfill.",
|
|
11313
13369
|
"http": "GET",
|
|
11314
13370
|
"path": "/media/v1/libraries/{library_id}/folders",
|
|
11315
13371
|
"streaming": "no",
|
|
@@ -11334,7 +13390,7 @@ export const operations = [
|
|
|
11334
13390
|
"resource": "media.libraries.jobs",
|
|
11335
13391
|
"method": "retrieve",
|
|
11336
13392
|
"summary": "Get job alias",
|
|
11337
|
-
"description": "
|
|
13393
|
+
"description": "Read library events in sequence order, including while the library is deleting. Page forward with asc and after_seq, or backward with desc and before_seq; never combine the two sequence cursors.",
|
|
11338
13394
|
"http": "GET",
|
|
11339
13395
|
"path": "/media/v1/libraries/{library_id}/jobs/{job_id}",
|
|
11340
13396
|
"streaming": "no",
|
|
@@ -11357,7 +13413,7 @@ export const operations = [
|
|
|
11357
13413
|
"resource": "media.libraries.purge",
|
|
11358
13414
|
"method": "create",
|
|
11359
13415
|
"summary": "Purge library",
|
|
11360
|
-
"description": "
|
|
13416
|
+
"description": "List assets in an active library, newest first, optionally filtering by exact folder and stored resource type. Continue using next_cursor; video includes audio-only assets.",
|
|
11361
13417
|
"http": "POST",
|
|
11362
13418
|
"path": "/media/v1/libraries/{library_id}/purge",
|
|
11363
13419
|
"streaming": "no",
|
|
@@ -11375,7 +13431,7 @@ export const operations = [
|
|
|
11375
13431
|
"resource": "media.libraries",
|
|
11376
13432
|
"method": "restore",
|
|
11377
13433
|
"summary": "Restore library",
|
|
11378
|
-
"description": "
|
|
13434
|
+
"description": "Permanently remove a library that is already deleting, without waiting for purge_at. Its assets and related resources are removed and cannot be restored; first soft-delete an active library.",
|
|
11379
13435
|
"http": "POST",
|
|
11380
13436
|
"path": "/media/v1/libraries/{library_id}/restore",
|
|
11381
13437
|
"streaming": "no",
|
|
@@ -11393,7 +13449,7 @@ export const operations = [
|
|
|
11393
13449
|
"resource": "media.libraries.search",
|
|
11394
13450
|
"method": "create",
|
|
11395
13451
|
"summary": "Semantic search alias",
|
|
11396
|
-
"description": "
|
|
13452
|
+
"description": "List all immediate child folders under parent, or under the root when parent is omitted. Counts include descendant assets. The result is unpaginated; limit and cursor are rejected.",
|
|
11397
13453
|
"http": "POST",
|
|
11398
13454
|
"path": "/media/v1/libraries/{library_id}/search",
|
|
11399
13455
|
"streaming": "no",
|
|
@@ -11444,7 +13500,7 @@ export const operations = [
|
|
|
11444
13500
|
"resource": "media.libraries.search.expression",
|
|
11445
13501
|
"method": "create",
|
|
11446
13502
|
"summary": "Expression search",
|
|
11447
|
-
"description": "
|
|
13503
|
+
"description": "Find visually similar assets using exactly one of asset_id or an inline base64 image. The library must support image search; an asset query needs a current image embedding and excludes that source asset from results.",
|
|
11448
13504
|
"http": "POST",
|
|
11449
13505
|
"path": "/media/v1/libraries/{library_id}/search/expression",
|
|
11450
13506
|
"streaming": "no",
|
|
@@ -11464,7 +13520,7 @@ export const operations = [
|
|
|
11464
13520
|
"name": "expression",
|
|
11465
13521
|
"type": "string",
|
|
11466
13522
|
"required": false,
|
|
11467
|
-
"description": "Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: [\"context\"] to include context."
|
|
13523
|
+
"description": "Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: [\"context\"] to include context. Quality filters: flags:watermark matches any current shot with a watermark; flags.watermark:false requires an assessed video with no positive watermark judgment. The same syntax supports slideshow, hand_frame, text_sticker and low_quality. folder_mismatch:true selects lexical folder/location hints. Geometry filters support width, height, resolution:1920x1080, numeric aspect_ratio (width/height), and orientation:landscape, portrait or square. Missing geometry or unassessed legacy flags do not match positive filters. has_music:true AND audio_genre:jazz AND audio_mood:calm selects current-version audio profiles with music and matching model labels; has_music:false applies only to sampled ranges, not the entire source. failure_code=UPSTREAM_FAILED selects assets with a current failed understanding carrying that code; combine with processing_state=failed or processing_state=partial."
|
|
11468
13524
|
},
|
|
11469
13525
|
{
|
|
11470
13526
|
"name": "sort_by",
|
|
@@ -11516,7 +13572,7 @@ export const operations = [
|
|
|
11516
13572
|
"resource": "media.libraries.search.semantic",
|
|
11517
13573
|
"method": "create",
|
|
11518
13574
|
"summary": "Semantic search",
|
|
11519
|
-
"description": "Search assets with a nonblank text query
|
|
13575
|
+
"description": "Alias of semantic search. Search assets with a nonblank text query, optional expression filter and top_k; hybrid combines semantic and keyword matches, while semantic uses vector similarity only.",
|
|
11520
13576
|
"http": "POST",
|
|
11521
13577
|
"path": "/media/v1/libraries/{library_id}/search/semantic",
|
|
11522
13578
|
"streaming": "no",
|
|
@@ -11567,7 +13623,7 @@ export const operations = [
|
|
|
11567
13623
|
"resource": "media.libraries.search.visual",
|
|
11568
13624
|
"method": "create",
|
|
11569
13625
|
"summary": "Visual search",
|
|
11570
|
-
"description": "
|
|
13626
|
+
"description": "Search assets with a nonblank text query and optional expression filter. Hybrid mode combines semantic and keyword matches; semantic mode uses vector similarity only. Results are ranked and limited by top_k.",
|
|
11571
13627
|
"http": "POST",
|
|
11572
13628
|
"path": "/media/v1/libraries/{library_id}/search/visual",
|
|
11573
13629
|
"streaming": "no",
|
|
@@ -11610,6 +13666,67 @@ export const operations = [
|
|
|
11610
13666
|
]
|
|
11611
13667
|
}
|
|
11612
13668
|
},
|
|
13669
|
+
{
|
|
13670
|
+
"resource": "media.libraries.understandings",
|
|
13671
|
+
"method": "list",
|
|
13672
|
+
"summary": "List understanding results across a library",
|
|
13673
|
+
"description": "Read current understanding entries across one library without fetching every asset separately. Use library_id from creation or listing. folder includes descendants; kinds is a comma-separated list of output kinds. Entries are ordered by asset_id and then understanding id. Continue with next_cursor and the same folder and kinds; limit defaults to 100 and cannot exceed 100. Superseded, deleted and old-version entries are excluded. During historical backfill, this method returns 503 CAPACITY rather than incomplete pages; poll failureSummary until counts_complete is true, then start pagination. Example: GET /media/v1/libraries/lib_example/understandings?folder=travel&kinds=caption,transcript&limit=100.",
|
|
13674
|
+
"http": "GET",
|
|
13675
|
+
"path": "/media/v1/libraries/{library_id}/understandings",
|
|
13676
|
+
"streaming": "no",
|
|
13677
|
+
"pagination": true,
|
|
13678
|
+
"pathParams": [
|
|
13679
|
+
{
|
|
13680
|
+
"name": "library_id",
|
|
13681
|
+
"sdkName": "library_id",
|
|
13682
|
+
"description": "Library ID returned by creation."
|
|
13683
|
+
}
|
|
13684
|
+
],
|
|
13685
|
+
"query": [
|
|
13686
|
+
{
|
|
13687
|
+
"name": "folder",
|
|
13688
|
+
"type": "string",
|
|
13689
|
+
"required": false,
|
|
13690
|
+
"description": "Folder path including all descendants; omitted or empty selects the entire library."
|
|
13691
|
+
},
|
|
13692
|
+
{
|
|
13693
|
+
"name": "kinds",
|
|
13694
|
+
"type": "string",
|
|
13695
|
+
"required": false,
|
|
13696
|
+
"description": "Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind."
|
|
13697
|
+
},
|
|
13698
|
+
{
|
|
13699
|
+
"name": "cursor",
|
|
13700
|
+
"type": "string",
|
|
13701
|
+
"required": false,
|
|
13702
|
+
"description": "Cursor from the previous next_cursor."
|
|
13703
|
+
},
|
|
13704
|
+
{
|
|
13705
|
+
"name": "limit",
|
|
13706
|
+
"type": "integer",
|
|
13707
|
+
"required": false,
|
|
13708
|
+
"description": "Maximum entries in this page, from 1 through 100; defaults to 100."
|
|
13709
|
+
}
|
|
13710
|
+
]
|
|
13711
|
+
},
|
|
13712
|
+
{
|
|
13713
|
+
"resource": "media.libraries.understandings",
|
|
13714
|
+
"method": "retrieveFailureSummary",
|
|
13715
|
+
"summary": "Summarize understanding failures",
|
|
13716
|
+
"description": "Inspect current understanding failures before retrying. Use library_id from library creation or listing. Groups include code, output kind, actual producer model, retryability and up to five sample asset IDs. At most 1024 detailed groups plus two overflow groups are returned; overflow groups separate retryable and unrecoverable entries and mark overflow=true. Unknown failure codes remain retryable. Historical counts are provisional while counts_complete is false. Example: GET /media/v1/libraries/lib_example/understandings/failure_summary.",
|
|
13717
|
+
"http": "GET",
|
|
13718
|
+
"path": "/media/v1/libraries/{library_id}/understandings/failure_summary",
|
|
13719
|
+
"streaming": "no",
|
|
13720
|
+
"pagination": false,
|
|
13721
|
+
"pathParams": [
|
|
13722
|
+
{
|
|
13723
|
+
"name": "library_id",
|
|
13724
|
+
"sdkName": "library_id",
|
|
13725
|
+
"description": "Library ID returned by creation."
|
|
13726
|
+
}
|
|
13727
|
+
],
|
|
13728
|
+
"query": []
|
|
13729
|
+
},
|
|
11613
13730
|
{
|
|
11614
13731
|
"resource": "meta.docs",
|
|
11615
13732
|
"method": "search",
|
|
@@ -11893,25 +14010,25 @@ export const operations = [
|
|
|
11893
14010
|
"name": "model",
|
|
11894
14011
|
"type": "string",
|
|
11895
14012
|
"required": true,
|
|
11896
|
-
"description": "
|
|
14013
|
+
"description": "Model catalog identifier declaring openai.audio.transcriptions; use it unchanged, including any creator prefix."
|
|
11897
14014
|
},
|
|
11898
14015
|
{
|
|
11899
14016
|
"name": "file",
|
|
11900
14017
|
"type": "string",
|
|
11901
14018
|
"required": true,
|
|
11902
|
-
"description": "Audio
|
|
14019
|
+
"description": "Audio bytes uploaded as a multipart file; supported formats and input limits depend on the selected model."
|
|
11903
14020
|
},
|
|
11904
14021
|
{
|
|
11905
14022
|
"name": "language",
|
|
11906
14023
|
"type": "string",
|
|
11907
14024
|
"required": false,
|
|
11908
|
-
"description": "
|
|
14025
|
+
"description": "Source language code when known; omit to let the model detect the language."
|
|
11909
14026
|
},
|
|
11910
14027
|
{
|
|
11911
14028
|
"name": "prompt",
|
|
11912
14029
|
"type": "string",
|
|
11913
14030
|
"required": false,
|
|
11914
|
-
"description": "
|
|
14031
|
+
"description": "Optional vocabulary or contextual guidance for recognizing the audio; support depends on the selected model."
|
|
11915
14032
|
},
|
|
11916
14033
|
{
|
|
11917
14034
|
"name": "response_format",
|
|
@@ -11919,20 +14036,22 @@ export const operations = [
|
|
|
11919
14036
|
"enum": [
|
|
11920
14037
|
"json",
|
|
11921
14038
|
"text",
|
|
11922
|
-
"verbose_json"
|
|
14039
|
+
"verbose_json",
|
|
14040
|
+
"diarized_json"
|
|
11923
14041
|
],
|
|
11924
14042
|
"required": false,
|
|
11925
|
-
"description": "
|
|
14043
|
+
"description": "Output format: json returns text in JSON; text returns plain text; verbose_json includes requested timestamps; diarized_json includes speaker-labelled segments when supported. Defaults to json."
|
|
11926
14044
|
},
|
|
11927
14045
|
{
|
|
11928
14046
|
"name": "timestamp_granularities[]",
|
|
11929
14047
|
"type": "array",
|
|
11930
14048
|
"itemType": "string",
|
|
11931
14049
|
"enum": [
|
|
14050
|
+
"word",
|
|
11932
14051
|
"segment"
|
|
11933
14052
|
],
|
|
11934
14053
|
"required": false,
|
|
11935
|
-
"description": "Timestamp levels to
|
|
14054
|
+
"description": "Timestamp levels to request as repeated multipart fields: word returns per-word times; segment returns segment times. Omit for the model default. Use verbose_json, or diarized_json on supporting models."
|
|
11936
14055
|
},
|
|
11937
14056
|
{
|
|
11938
14057
|
"name": "temperature",
|
|
@@ -14246,6 +16365,31 @@ export const operations = [
|
|
|
14246
16365
|
]
|
|
14247
16366
|
}
|
|
14248
16367
|
},
|
|
16368
|
+
{
|
|
16369
|
+
"resource": "organization.members",
|
|
16370
|
+
"method": "list",
|
|
16371
|
+
"summary": "List organization members",
|
|
16372
|
+
"description": "Concepts follow GitHub org members: find a person's user id, for example to assign an approver to an approval task. Lists only members of the organization behind your API key or runtime token, ordered by joined_at ascending (membership id breaks ties). Ask the user who should approve, then use that member's id. Emails are visible only within this organization. The request cannot select another organization. Pass next_page unchanged as page; null means the end. Read-only; no usage charge. Example: GET /organization/v1/members?limit=20.",
|
|
16373
|
+
"http": "GET",
|
|
16374
|
+
"path": "/organization/v1/members",
|
|
16375
|
+
"streaming": "no",
|
|
16376
|
+
"pagination": false,
|
|
16377
|
+
"pathParams": [],
|
|
16378
|
+
"query": [
|
|
16379
|
+
{
|
|
16380
|
+
"name": "limit",
|
|
16381
|
+
"type": "integer",
|
|
16382
|
+
"required": false,
|
|
16383
|
+
"description": "Maximum members per page, from 1 to 100; defaults to 20."
|
|
16384
|
+
},
|
|
16385
|
+
{
|
|
16386
|
+
"name": "page",
|
|
16387
|
+
"type": "string",
|
|
16388
|
+
"required": false,
|
|
16389
|
+
"description": "Opaque next_page cursor returned by the previous response; omit for the first page."
|
|
16390
|
+
}
|
|
16391
|
+
]
|
|
16392
|
+
},
|
|
14249
16393
|
{
|
|
14250
16394
|
"resource": "organization.usage",
|
|
14251
16395
|
"method": "list",
|
|
@@ -14975,6 +17119,12 @@ export const operations = [
|
|
|
14975
17119
|
"required": true,
|
|
14976
17120
|
"description": "Shell command to execute, for example echo hi."
|
|
14977
17121
|
},
|
|
17122
|
+
{
|
|
17123
|
+
"name": "background",
|
|
17124
|
+
"type": "boolean",
|
|
17125
|
+
"required": false,
|
|
17126
|
+
"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."
|
|
17127
|
+
},
|
|
14978
17128
|
{
|
|
14979
17129
|
"name": "cwd",
|
|
14980
17130
|
"type": "string",
|
|
@@ -14991,7 +17141,7 @@ export const operations = [
|
|
|
14991
17141
|
"name": "timeoutMs",
|
|
14992
17142
|
"type": "integer",
|
|
14993
17143
|
"required": false,
|
|
14994
|
-
"description": "Execution timeout in milliseconds, from 1 to 3600000 (1 hour); defaults to 600000 (10 minutes)."
|
|
17144
|
+
"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."
|
|
14995
17145
|
}
|
|
14996
17146
|
]
|
|
14997
17147
|
}
|
|
@@ -15190,7 +17340,7 @@ export const operations = [
|
|
|
15190
17340
|
"resource": "sandbox.templates",
|
|
15191
17341
|
"method": "list",
|
|
15192
17342
|
"summary": "List templates (v2)",
|
|
15193
|
-
"description": "List
|
|
17343
|
+
"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.",
|
|
15194
17344
|
"http": "GET",
|
|
15195
17345
|
"path": "/sandbox/v1/templates",
|
|
15196
17346
|
"streaming": "no",
|
|
@@ -15201,7 +17351,7 @@ export const operations = [
|
|
|
15201
17351
|
"name": "teamID",
|
|
15202
17352
|
"type": "string",
|
|
15203
17353
|
"required": false,
|
|
15204
|
-
"description": "
|
|
17354
|
+
"description": "Upstream team selector; Praxis always lists the authenticated organization's templates."
|
|
15205
17355
|
},
|
|
15206
17356
|
{
|
|
15207
17357
|
"name": "nextToken",
|
|
@@ -15217,6 +17367,342 @@ export const operations = [
|
|
|
15217
17367
|
}
|
|
15218
17368
|
]
|
|
15219
17369
|
},
|
|
17370
|
+
{
|
|
17371
|
+
"resource": "sandbox.templates",
|
|
17372
|
+
"method": "create",
|
|
17373
|
+
"summary": "Create template (v3)",
|
|
17374
|
+
"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.",
|
|
17375
|
+
"http": "POST",
|
|
17376
|
+
"path": "/sandbox/v1/templates",
|
|
17377
|
+
"streaming": "no",
|
|
17378
|
+
"pagination": false,
|
|
17379
|
+
"pathParams": [],
|
|
17380
|
+
"query": [],
|
|
17381
|
+
"body": {
|
|
17382
|
+
"required": true,
|
|
17383
|
+
"fields": [
|
|
17384
|
+
{
|
|
17385
|
+
"name": "name",
|
|
17386
|
+
"type": "string",
|
|
17387
|
+
"required": false,
|
|
17388
|
+
"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."
|
|
17389
|
+
},
|
|
17390
|
+
{
|
|
17391
|
+
"name": "tags",
|
|
17392
|
+
"type": "array",
|
|
17393
|
+
"itemType": "string",
|
|
17394
|
+
"required": false,
|
|
17395
|
+
"description": "Tags to assign to the template build"
|
|
17396
|
+
},
|
|
17397
|
+
{
|
|
17398
|
+
"name": "alias",
|
|
17399
|
+
"type": "string",
|
|
17400
|
+
"required": false,
|
|
17401
|
+
"description": "Alias of the template. Deprecated, use name instead."
|
|
17402
|
+
},
|
|
17403
|
+
{
|
|
17404
|
+
"name": "teamID",
|
|
17405
|
+
"type": "string",
|
|
17406
|
+
"required": false,
|
|
17407
|
+
"description": "Identifier of the team"
|
|
17408
|
+
},
|
|
17409
|
+
{
|
|
17410
|
+
"name": "cpuCount",
|
|
17411
|
+
"type": "integer",
|
|
17412
|
+
"required": false,
|
|
17413
|
+
"description": "Requested virtual CPU count; a positive integer, default 2 for template builds."
|
|
17414
|
+
},
|
|
17415
|
+
{
|
|
17416
|
+
"name": "memoryMB",
|
|
17417
|
+
"type": "integer",
|
|
17418
|
+
"required": false,
|
|
17419
|
+
"description": "Requested build memory in MiB; a positive integer, default 1024."
|
|
17420
|
+
},
|
|
17421
|
+
{
|
|
17422
|
+
"name": "minFreeDiskMb",
|
|
17423
|
+
"type": "integer",
|
|
17424
|
+
"required": false,
|
|
17425
|
+
"description": "Upstream minimum free disk request in MiB; use the native diskGb field to set the build disk size."
|
|
17426
|
+
},
|
|
17427
|
+
{
|
|
17428
|
+
"name": "diskGb",
|
|
17429
|
+
"type": "integer",
|
|
17430
|
+
"required": false,
|
|
17431
|
+
"description": "Build disk size in GiB, a positive safe integer. Defaults to 10; available only on the own face."
|
|
17432
|
+
}
|
|
17433
|
+
]
|
|
17434
|
+
}
|
|
17435
|
+
},
|
|
17436
|
+
{
|
|
17437
|
+
"resource": "sandbox.templates.aliases",
|
|
17438
|
+
"method": "retrieve",
|
|
17439
|
+
"summary": "Check template alias",
|
|
17440
|
+
"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.",
|
|
17441
|
+
"http": "GET",
|
|
17442
|
+
"path": "/sandbox/v1/templates/aliases/{alias}",
|
|
17443
|
+
"streaming": "no",
|
|
17444
|
+
"pagination": false,
|
|
17445
|
+
"pathParams": [
|
|
17446
|
+
{
|
|
17447
|
+
"name": "alias",
|
|
17448
|
+
"sdkName": "alias",
|
|
17449
|
+
"description": "Bare template name belonging to your organization, without a tag or provider namespace."
|
|
17450
|
+
}
|
|
17451
|
+
],
|
|
17452
|
+
"query": []
|
|
17453
|
+
},
|
|
17454
|
+
{
|
|
17455
|
+
"resource": "sandbox.templates.tags",
|
|
17456
|
+
"method": "delete",
|
|
17457
|
+
"summary": "Delete template tags",
|
|
17458
|
+
"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.",
|
|
17459
|
+
"http": "DELETE",
|
|
17460
|
+
"path": "/sandbox/v1/templates/tags",
|
|
17461
|
+
"streaming": "no",
|
|
17462
|
+
"pagination": false,
|
|
17463
|
+
"pathParams": [],
|
|
17464
|
+
"query": [],
|
|
17465
|
+
"body": {
|
|
17466
|
+
"required": true,
|
|
17467
|
+
"fields": [
|
|
17468
|
+
{
|
|
17469
|
+
"name": "name",
|
|
17470
|
+
"type": "string",
|
|
17471
|
+
"required": true,
|
|
17472
|
+
"description": "Name of the template"
|
|
17473
|
+
},
|
|
17474
|
+
{
|
|
17475
|
+
"name": "tags",
|
|
17476
|
+
"type": "array",
|
|
17477
|
+
"itemType": "string",
|
|
17478
|
+
"required": true,
|
|
17479
|
+
"description": "Tags to delete"
|
|
17480
|
+
}
|
|
17481
|
+
]
|
|
17482
|
+
}
|
|
17483
|
+
},
|
|
17484
|
+
{
|
|
17485
|
+
"resource": "sandbox.templates.tags",
|
|
17486
|
+
"method": "create",
|
|
17487
|
+
"summary": "Assign template tags",
|
|
17488
|
+
"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.",
|
|
17489
|
+
"http": "POST",
|
|
17490
|
+
"path": "/sandbox/v1/templates/tags",
|
|
17491
|
+
"streaming": "no",
|
|
17492
|
+
"pagination": false,
|
|
17493
|
+
"pathParams": [],
|
|
17494
|
+
"query": [],
|
|
17495
|
+
"body": {
|
|
17496
|
+
"required": true,
|
|
17497
|
+
"fields": [
|
|
17498
|
+
{
|
|
17499
|
+
"name": "target",
|
|
17500
|
+
"type": "string",
|
|
17501
|
+
"required": true,
|
|
17502
|
+
"description": "Target template in \"name:tag\" format"
|
|
17503
|
+
},
|
|
17504
|
+
{
|
|
17505
|
+
"name": "tags",
|
|
17506
|
+
"type": "array",
|
|
17507
|
+
"itemType": "string",
|
|
17508
|
+
"required": true,
|
|
17509
|
+
"description": "Tags to assign to the template"
|
|
17510
|
+
}
|
|
17511
|
+
]
|
|
17512
|
+
}
|
|
17513
|
+
},
|
|
17514
|
+
{
|
|
17515
|
+
"resource": "sandbox.templates",
|
|
17516
|
+
"method": "delete",
|
|
17517
|
+
"summary": "Delete template",
|
|
17518
|
+
"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.",
|
|
17519
|
+
"http": "DELETE",
|
|
17520
|
+
"path": "/sandbox/v1/templates/{templateID}",
|
|
17521
|
+
"streaming": "no",
|
|
17522
|
+
"pagination": false,
|
|
17523
|
+
"pathParams": [
|
|
17524
|
+
{
|
|
17525
|
+
"name": "templateID",
|
|
17526
|
+
"sdkName": "templateID",
|
|
17527
|
+
"description": "Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle."
|
|
17528
|
+
}
|
|
17529
|
+
],
|
|
17530
|
+
"query": []
|
|
17531
|
+
},
|
|
17532
|
+
{
|
|
17533
|
+
"resource": "sandbox.templates",
|
|
17534
|
+
"method": "retrieve",
|
|
17535
|
+
"summary": "List template builds",
|
|
17536
|
+
"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.",
|
|
17537
|
+
"http": "GET",
|
|
17538
|
+
"path": "/sandbox/v1/templates/{templateID}",
|
|
17539
|
+
"streaming": "no",
|
|
17540
|
+
"pagination": false,
|
|
17541
|
+
"pathParams": [
|
|
17542
|
+
{
|
|
17543
|
+
"name": "templateID",
|
|
17544
|
+
"sdkName": "templateID",
|
|
17545
|
+
"description": "Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle."
|
|
17546
|
+
}
|
|
17547
|
+
],
|
|
17548
|
+
"query": [
|
|
17549
|
+
{
|
|
17550
|
+
"name": "nextToken",
|
|
17551
|
+
"type": "string",
|
|
17552
|
+
"required": false,
|
|
17553
|
+
"description": "Cursor to start the list from"
|
|
17554
|
+
},
|
|
17555
|
+
{
|
|
17556
|
+
"name": "limit",
|
|
17557
|
+
"type": "integer",
|
|
17558
|
+
"required": false,
|
|
17559
|
+
"description": "Maximum number of items to return per page"
|
|
17560
|
+
}
|
|
17561
|
+
]
|
|
17562
|
+
},
|
|
17563
|
+
{
|
|
17564
|
+
"resource": "sandbox.templates.builds",
|
|
17565
|
+
"method": "update",
|
|
17566
|
+
"summary": "Start template build (v2)",
|
|
17567
|
+
"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\"]}]}.",
|
|
17568
|
+
"http": "POST",
|
|
17569
|
+
"path": "/sandbox/v1/templates/{templateID}/builds/{buildID}",
|
|
17570
|
+
"streaming": "no",
|
|
17571
|
+
"pagination": false,
|
|
17572
|
+
"pathParams": [
|
|
17573
|
+
{
|
|
17574
|
+
"name": "templateID",
|
|
17575
|
+
"sdkName": "templateID",
|
|
17576
|
+
"description": "Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle."
|
|
17577
|
+
},
|
|
17578
|
+
{
|
|
17579
|
+
"name": "buildID",
|
|
17580
|
+
"sdkName": "buildID",
|
|
17581
|
+
"description": "Build identifier returned by templates.create. It must belong to the selected template in your organization."
|
|
17582
|
+
}
|
|
17583
|
+
],
|
|
17584
|
+
"query": [],
|
|
17585
|
+
"body": {
|
|
17586
|
+
"required": true,
|
|
17587
|
+
"fields": [
|
|
17588
|
+
{
|
|
17589
|
+
"name": "fromImage",
|
|
17590
|
+
"type": "string",
|
|
17591
|
+
"required": false,
|
|
17592
|
+
"description": "Image to use as a base for the template build"
|
|
17593
|
+
},
|
|
17594
|
+
{
|
|
17595
|
+
"name": "fromTemplate",
|
|
17596
|
+
"type": "string",
|
|
17597
|
+
"required": false,
|
|
17598
|
+
"description": "Template to use as a base for the template build"
|
|
17599
|
+
},
|
|
17600
|
+
{
|
|
17601
|
+
"name": "fromImageRegistry",
|
|
17602
|
+
"type": "object",
|
|
17603
|
+
"required": false,
|
|
17604
|
+
"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."
|
|
17605
|
+
},
|
|
17606
|
+
{
|
|
17607
|
+
"name": "force",
|
|
17608
|
+
"type": "boolean",
|
|
17609
|
+
"required": false,
|
|
17610
|
+
"description": "Whether the whole build should be forced to run regardless of the cache"
|
|
17611
|
+
},
|
|
17612
|
+
{
|
|
17613
|
+
"name": "steps",
|
|
17614
|
+
"type": "array",
|
|
17615
|
+
"itemType": "object",
|
|
17616
|
+
"required": false,
|
|
17617
|
+
"description": "List of steps to execute in the template build"
|
|
17618
|
+
},
|
|
17619
|
+
{
|
|
17620
|
+
"name": "startCmd",
|
|
17621
|
+
"type": "string",
|
|
17622
|
+
"required": false,
|
|
17623
|
+
"description": "Start command to execute in the template after the build"
|
|
17624
|
+
},
|
|
17625
|
+
{
|
|
17626
|
+
"name": "readyCmd",
|
|
17627
|
+
"type": "string",
|
|
17628
|
+
"required": false,
|
|
17629
|
+
"description": "Ready check command to execute in the template after the build"
|
|
17630
|
+
},
|
|
17631
|
+
{
|
|
17632
|
+
"name": "dockerfile",
|
|
17633
|
+
"type": "string",
|
|
17634
|
+
"required": false,
|
|
17635
|
+
"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."
|
|
17636
|
+
}
|
|
17637
|
+
]
|
|
17638
|
+
}
|
|
17639
|
+
},
|
|
17640
|
+
{
|
|
17641
|
+
"resource": "sandbox.templates.builds.status",
|
|
17642
|
+
"method": "list",
|
|
17643
|
+
"summary": "Template build status",
|
|
17644
|
+
"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.",
|
|
17645
|
+
"http": "GET",
|
|
17646
|
+
"path": "/sandbox/v1/templates/{templateID}/builds/{buildID}/status",
|
|
17647
|
+
"streaming": "no",
|
|
17648
|
+
"pagination": false,
|
|
17649
|
+
"pathParams": [
|
|
17650
|
+
{
|
|
17651
|
+
"name": "templateID",
|
|
17652
|
+
"sdkName": "templateID",
|
|
17653
|
+
"description": "Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle."
|
|
17654
|
+
},
|
|
17655
|
+
{
|
|
17656
|
+
"name": "buildID",
|
|
17657
|
+
"sdkName": "buildID",
|
|
17658
|
+
"description": "Build identifier returned by templates.create. It must belong to the selected template in your organization."
|
|
17659
|
+
}
|
|
17660
|
+
],
|
|
17661
|
+
"query": [
|
|
17662
|
+
{
|
|
17663
|
+
"name": "logsOffset",
|
|
17664
|
+
"type": "integer",
|
|
17665
|
+
"required": false,
|
|
17666
|
+
"description": "Index of the starting build log that should be returned with the template"
|
|
17667
|
+
},
|
|
17668
|
+
{
|
|
17669
|
+
"name": "limit",
|
|
17670
|
+
"type": "integer",
|
|
17671
|
+
"required": false,
|
|
17672
|
+
"description": "Maximum number of logs that should be returned"
|
|
17673
|
+
},
|
|
17674
|
+
{
|
|
17675
|
+
"name": "level",
|
|
17676
|
+
"type": "string",
|
|
17677
|
+
"enum": [
|
|
17678
|
+
"debug",
|
|
17679
|
+
"info",
|
|
17680
|
+
"warn",
|
|
17681
|
+
"error"
|
|
17682
|
+
],
|
|
17683
|
+
"required": false,
|
|
17684
|
+
"description": "Select one exact log severity: debug for diagnostics, info for progress, warn for warnings, error for failures. Offsets count matching entries."
|
|
17685
|
+
}
|
|
17686
|
+
]
|
|
17687
|
+
},
|
|
17688
|
+
{
|
|
17689
|
+
"resource": "sandbox.templates.tags",
|
|
17690
|
+
"method": "list",
|
|
17691
|
+
"summary": "List template tags",
|
|
17692
|
+
"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.",
|
|
17693
|
+
"http": "GET",
|
|
17694
|
+
"path": "/sandbox/v1/templates/{templateID}/tags",
|
|
17695
|
+
"streaming": "no",
|
|
17696
|
+
"pagination": false,
|
|
17697
|
+
"pathParams": [
|
|
17698
|
+
{
|
|
17699
|
+
"name": "templateID",
|
|
17700
|
+
"sdkName": "templateID",
|
|
17701
|
+
"description": "Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle."
|
|
17702
|
+
}
|
|
17703
|
+
],
|
|
17704
|
+
"query": []
|
|
17705
|
+
},
|
|
15220
17706
|
{
|
|
15221
17707
|
"resource": "sandbox.volumes",
|
|
15222
17708
|
"method": "list",
|
|
@@ -16593,7 +19079,7 @@ export const operations = [
|
|
|
16593
19079
|
"name": "filter",
|
|
16594
19080
|
"type": "string",
|
|
16595
19081
|
"required": false,
|
|
16596
|
-
"description": "Search qualifier subset: is/state, reason, label/-label, no, assignee, author, mentions, milestone, type, kind, assignee-kind, in and sort;
|
|
19082
|
+
"description": "Search qualifier subset: is/state, reason, label/-label, no, assignee, author, mentions, milestone, type, kind, assignee-kind, in and sort; write each qualifier as field:value (for example, is:open milestone:5), never field=value. Unknown qualifiers return INVALID_PARAMS. Passed unchanged to the service."
|
|
16597
19083
|
}
|
|
16598
19084
|
]
|
|
16599
19085
|
},
|