@deepraxis/sdk 0.1.1-dev.27bb19e → 0.1.1-dev.349f88a
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 +31 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +66 -7
- package/dist/generated/sdk.gen.js +145 -6
- package/dist/generated/types.gen.d.ts +944 -81
- package/dist/operations.generated.d.ts +242 -35
- package/dist/operations.generated.js +289 -35
- package/dist/resources.generated.d.ts +73 -24
- package/dist/resources.generated.js +21 -0
- package/package.json +1 -1
|
@@ -7948,9 +7948,9 @@ export type ApplicationApplicationError = {
|
|
|
7948
7948
|
*/
|
|
7949
7949
|
error: {
|
|
7950
7950
|
/**
|
|
7951
|
-
* Error code: *_NOT_FOUND (404; also for objects of another account), WORKER_NAME_TAKEN (409), WORKER_INVALID_STATE (409), DEPLOYMENT_IN_PROGRESS (409, retry later), INVALID_PARAMS (400), UNSUPPORTED (400, a Cloudflare feature this platform does not offer), LIMIT_EXCEEDED (400), DEPLOY_TIMEOUT (504), PROVIDER_FAILED (502), PROVIDER_CAPACITY (503), NOT_IMPLEMENTED (501).
|
|
7951
|
+
* Error code: *_NOT_FOUND (404; also for objects of another account), WORKER_NAME_TAKEN (409), GRANT_ALIAS_CONFLICT (409), GRANT_CONFLICT (409), WORKER_INVALID_STATE (409), DEPLOYMENT_IN_PROGRESS (409, retry later), INVALID_PARAMS (400), UNSUPPORTED (400, a Cloudflare feature this platform does not offer), LIMIT_EXCEEDED (400), DEPLOY_TIMEOUT (504), PROVIDER_FAILED (502), PROVIDER_CAPACITY (503), NOT_IMPLEMENTED (501).
|
|
7952
7952
|
*/
|
|
7953
|
-
code: 'WORKER_NOT_FOUND' | 'VERSION_NOT_FOUND' | 'DEPLOYMENT_NOT_FOUND' | 'COMPONENT_NOT_FOUND' | 'SECRET_NOT_FOUND' | 'GRANT_NOT_FOUND' | 'RESOURCE_NOT_FOUND' | 'WORKER_NAME_TAKEN' | 'WORKER_INVALID_STATE' | 'DEPLOYMENT_IN_PROGRESS' | 'INVALID_PARAMS' | 'UNSUPPORTED' | 'LIMIT_EXCEEDED' | 'DEPLOY_TIMEOUT' | 'PROVIDER_FAILED' | 'PROVIDER_CAPACITY' | 'NOT_IMPLEMENTED';
|
|
7953
|
+
code: 'WORKER_NOT_FOUND' | 'VERSION_NOT_FOUND' | 'DEPLOYMENT_NOT_FOUND' | 'COMPONENT_NOT_FOUND' | 'SECRET_NOT_FOUND' | 'GRANT_NOT_FOUND' | 'GRANT_ALIAS_CONFLICT' | 'GRANT_CONFLICT' | 'RESOURCE_NOT_FOUND' | 'WORKER_NAME_TAKEN' | 'WORKER_INVALID_STATE' | 'DEPLOYMENT_IN_PROGRESS' | 'INVALID_PARAMS' | 'UNSUPPORTED' | 'LIMIT_EXCEEDED' | 'DEPLOY_TIMEOUT' | 'PROVIDER_FAILED' | 'PROVIDER_CAPACITY' | 'NOT_IMPLEMENTED';
|
|
7954
7954
|
/**
|
|
7955
7955
|
* What went wrong.
|
|
7956
7956
|
*/
|
|
@@ -8614,14 +8614,18 @@ export type ApplicationGrant = {
|
|
|
8614
8614
|
/**
|
|
8615
8615
|
* Resource type.
|
|
8616
8616
|
*/
|
|
8617
|
-
type: 'database' | '
|
|
8617
|
+
type: 'database' | 'files' | 'knowledge' | 'models';
|
|
8618
8618
|
/**
|
|
8619
|
-
*
|
|
8619
|
+
* Database or knowledge base ID; * for files and models.
|
|
8620
8620
|
*/
|
|
8621
8621
|
id: string;
|
|
8622
8622
|
};
|
|
8623
8623
|
/**
|
|
8624
|
-
*
|
|
8624
|
+
* Optional name, unique within this Worker. Conflicts return GRANT_ALIAS_CONFLICT (409).
|
|
8625
|
+
*/
|
|
8626
|
+
alias?: string;
|
|
8627
|
+
/**
|
|
8628
|
+
* Access level; models accepts read only.
|
|
8625
8629
|
*/
|
|
8626
8630
|
access: 'read' | 'read_write';
|
|
8627
8631
|
/**
|
|
@@ -8631,20 +8635,24 @@ export type ApplicationGrant = {
|
|
|
8631
8635
|
};
|
|
8632
8636
|
export type ApplicationCreateGrantInput = {
|
|
8633
8637
|
/**
|
|
8634
|
-
* Resource to grant.
|
|
8638
|
+
* Resource to grant. Each (type, id) may be granted once per Worker; duplicates return GRANT_CONFLICT (409).
|
|
8635
8639
|
*/
|
|
8636
8640
|
resource: {
|
|
8637
8641
|
/**
|
|
8638
8642
|
* Resource type.
|
|
8639
8643
|
*/
|
|
8640
|
-
type: 'database' | '
|
|
8644
|
+
type: 'database' | 'files' | 'knowledge' | 'models';
|
|
8641
8645
|
/**
|
|
8642
|
-
*
|
|
8646
|
+
* Database or knowledge base ID in your organization; * for files and models.
|
|
8643
8647
|
*/
|
|
8644
8648
|
id: string;
|
|
8645
8649
|
};
|
|
8646
8650
|
/**
|
|
8647
|
-
*
|
|
8651
|
+
* Optional name, unique within this Worker. Available for reuse after the grant is deleted.
|
|
8652
|
+
*/
|
|
8653
|
+
alias?: string;
|
|
8654
|
+
/**
|
|
8655
|
+
* Access level; models accepts read only.
|
|
8648
8656
|
*/
|
|
8649
8657
|
access: 'read' | 'read_write';
|
|
8650
8658
|
};
|
|
@@ -10945,6 +10953,238 @@ export type AutomationHumanTaskDelegateInput = {
|
|
|
10945
10953
|
*/
|
|
10946
10954
|
to_user: string;
|
|
10947
10955
|
};
|
|
10956
|
+
export type CanvasCreateCanvasInput = {
|
|
10957
|
+
/**
|
|
10958
|
+
* Display name for the new canvas, at most 200 characters; omission uses Untitled.
|
|
10959
|
+
*/
|
|
10960
|
+
name?: string;
|
|
10961
|
+
};
|
|
10962
|
+
export type CanvasCanvas = {
|
|
10963
|
+
/**
|
|
10964
|
+
* Assigned canvas identifier, cvs_ followed by 16 lowercase letters or digits; reuse it as canvas_id in subsequent requests.
|
|
10965
|
+
*/
|
|
10966
|
+
id: string;
|
|
10967
|
+
/**
|
|
10968
|
+
* Resource discriminator; canvas identifies a design canvas.
|
|
10969
|
+
*/
|
|
10970
|
+
object: 'canvas';
|
|
10971
|
+
/**
|
|
10972
|
+
* Display name supplied at creation; defaults to Untitled if omitted and is not an API identifier.
|
|
10973
|
+
*/
|
|
10974
|
+
name: string;
|
|
10975
|
+
version: CanvasVersion;
|
|
10976
|
+
/**
|
|
10977
|
+
* Number of visible top-level frames in this canvas; hidden frames do not contribute.
|
|
10978
|
+
*/
|
|
10979
|
+
page_count: number;
|
|
10980
|
+
/**
|
|
10981
|
+
* Total number of design nodes currently in the canvas.
|
|
10982
|
+
*/
|
|
10983
|
+
node_count: number;
|
|
10984
|
+
/**
|
|
10985
|
+
* ISO 8601 timestamp recording when this canvas was created.
|
|
10986
|
+
*/
|
|
10987
|
+
created_at: string;
|
|
10988
|
+
/**
|
|
10989
|
+
* ISO 8601 timestamp of the latest canvas update; list orders canvases newest first by this value.
|
|
10990
|
+
*/
|
|
10991
|
+
updated_at: string;
|
|
10992
|
+
/**
|
|
10993
|
+
* Console URL where a person can watch this canvas update live; open it to review drawing results.
|
|
10994
|
+
*/
|
|
10995
|
+
viewer_url: string;
|
|
10996
|
+
};
|
|
10997
|
+
export type CanvasCanvasPage = {
|
|
10998
|
+
/**
|
|
10999
|
+
* Canvases accessible to the API key's organization, ordered by updated_at descending.
|
|
11000
|
+
*/
|
|
11001
|
+
data: Array<CanvasCanvas>;
|
|
11002
|
+
/**
|
|
11003
|
+
* Opaque cursor to pass as cursor on the next list request; null means no more results.
|
|
11004
|
+
*/
|
|
11005
|
+
next_cursor: string | null;
|
|
11006
|
+
};
|
|
11007
|
+
export type CanvasCanvasDetail = CanvasCanvas & {
|
|
11008
|
+
/**
|
|
11009
|
+
* Summaries of top-level nodes in canvas order; use their ids to read full node documents or render images.
|
|
11010
|
+
*/
|
|
11011
|
+
frames: Array<CanvasFrame>;
|
|
11012
|
+
/**
|
|
11013
|
+
* Reusable components in this canvas; use their ids when inspecting or referencing component designs.
|
|
11014
|
+
*/
|
|
11015
|
+
components: Array<{
|
|
11016
|
+
/**
|
|
11017
|
+
* Node identifier of the reusable component; usable in node reads and script references.
|
|
11018
|
+
*/
|
|
11019
|
+
id: string;
|
|
11020
|
+
/**
|
|
11021
|
+
* Display name of the reusable component for choosing which design to reuse.
|
|
11022
|
+
*/
|
|
11023
|
+
name: string;
|
|
11024
|
+
}>;
|
|
11025
|
+
};
|
|
11026
|
+
export type CanvasDeletedCanvas = {
|
|
11027
|
+
/**
|
|
11028
|
+
* Identifier of the canvas that was permanently deleted by this request.
|
|
11029
|
+
*/
|
|
11030
|
+
id: string;
|
|
11031
|
+
/**
|
|
11032
|
+
* Resource discriminator; canvas identifies the deleted design canvas.
|
|
11033
|
+
*/
|
|
11034
|
+
object: 'canvas';
|
|
11035
|
+
/**
|
|
11036
|
+
* Always true on successful permanent deletion; this content cannot be restored.
|
|
11037
|
+
*/
|
|
11038
|
+
deleted: true;
|
|
11039
|
+
};
|
|
11040
|
+
export type CanvasNodesResult = {
|
|
11041
|
+
version: CanvasVersion;
|
|
11042
|
+
/**
|
|
11043
|
+
* Map keyed by each requested node id or instance path; null means that id was not found.
|
|
11044
|
+
*/
|
|
11045
|
+
nodes: {
|
|
11046
|
+
[key: string]: {
|
|
11047
|
+
/**
|
|
11048
|
+
* Pencil .pen 2.21 node content, with descendants limited by depth when specified; use these design properties when preparing edits.
|
|
11049
|
+
*/
|
|
11050
|
+
document: CanvasPenNode;
|
|
11051
|
+
} | null;
|
|
11052
|
+
};
|
|
11053
|
+
};
|
|
11054
|
+
export type CanvasImagesResult = {
|
|
11055
|
+
/**
|
|
11056
|
+
* Always null for a successful render response; request failures use the error envelope with a non-2xx status.
|
|
11057
|
+
*/
|
|
11058
|
+
err: null;
|
|
11059
|
+
/**
|
|
11060
|
+
* Map keyed by requested node id, containing a PNG data URL or null when an image is unavailable; these are inline images rather than hosted URLs.
|
|
11061
|
+
*/
|
|
11062
|
+
images: {
|
|
11063
|
+
[key: string]: string | null;
|
|
11064
|
+
};
|
|
11065
|
+
};
|
|
11066
|
+
export type CanvasCanvasError = {
|
|
11067
|
+
/**
|
|
11068
|
+
* Failure details for a non-2xx response; choose a recovery action using the operation's status and code description.
|
|
11069
|
+
*/
|
|
11070
|
+
error: {
|
|
11071
|
+
/**
|
|
11072
|
+
* Machine-readable failure category; see this operation's error responses for triggering conditions and recovery actions.
|
|
11073
|
+
*/
|
|
11074
|
+
code: string;
|
|
11075
|
+
/**
|
|
11076
|
+
* Human-readable explanation of why the request failed; use code and details for programmatic recovery.
|
|
11077
|
+
*/
|
|
11078
|
+
message: string;
|
|
11079
|
+
/**
|
|
11080
|
+
* Optional error-specific context; script failures provide edit_id with optional line, column and rejection, and REVISION_CONFLICT provides the current version.
|
|
11081
|
+
*/
|
|
11082
|
+
details?: {
|
|
11083
|
+
/**
|
|
11084
|
+
* Saved failed script id, valid for ten minutes; send it with edits to repair and rerun without resending the complete source.
|
|
11085
|
+
*/
|
|
11086
|
+
edit_id?: string;
|
|
11087
|
+
/**
|
|
11088
|
+
* Optional source line reported for the script failure; use it to locate text for an edit.
|
|
11089
|
+
*/
|
|
11090
|
+
line?: number;
|
|
11091
|
+
/**
|
|
11092
|
+
* Optional source column reported for the script failure; use it with line to locate the problem.
|
|
11093
|
+
*/
|
|
11094
|
+
column?: number;
|
|
11095
|
+
/**
|
|
11096
|
+
* Optional operation rejection information; inspect it to correct the rejected design operation.
|
|
11097
|
+
*/
|
|
11098
|
+
rejection?: unknown;
|
|
11099
|
+
/**
|
|
11100
|
+
* Current decimal revision on REVISION_CONFLICT; retrieve and merge the current canvas before retrying a guarded write.
|
|
11101
|
+
*/
|
|
11102
|
+
version?: string;
|
|
11103
|
+
[key: string]: unknown;
|
|
11104
|
+
};
|
|
11105
|
+
};
|
|
11106
|
+
};
|
|
11107
|
+
export type CanvasExecuteInput = unknown & {
|
|
11108
|
+
/**
|
|
11109
|
+
* New synchronous Pencil execute source using document as the root; provide this or edit_id, never both. See the operation's first-frame example.
|
|
11110
|
+
*/
|
|
11111
|
+
script?: string;
|
|
11112
|
+
/**
|
|
11113
|
+
* Saved failed-script identifier from error.details.edit_id; use with edits instead of script within ten minutes of the failure.
|
|
11114
|
+
*/
|
|
11115
|
+
edit_id?: string;
|
|
11116
|
+
/**
|
|
11117
|
+
* Text replacements applied to the source identified by edit_id before rerunning; use error line, column or rejection to choose the correction.
|
|
11118
|
+
*/
|
|
11119
|
+
edits?: Array<{
|
|
11120
|
+
/**
|
|
11121
|
+
* Literal text to locate in the failed source saved under edit_id.
|
|
11122
|
+
*/
|
|
11123
|
+
find: string;
|
|
11124
|
+
/**
|
|
11125
|
+
* Corrected text to substitute for the matched find text before execution.
|
|
11126
|
+
*/
|
|
11127
|
+
replace: string;
|
|
11128
|
+
/**
|
|
11129
|
+
* Set true to replace every occurrence of find; omitted or false requires find to occur exactly once, and a missing or repeated match fails the retry without applying anything.
|
|
11130
|
+
*/
|
|
11131
|
+
all?: boolean;
|
|
11132
|
+
}>;
|
|
11133
|
+
/**
|
|
11134
|
+
* Revision from retrieve, nodes.list or the previous execute response; omit for an unguarded write. A mismatch returns 409 REVISION_CONFLICT with details.version.
|
|
11135
|
+
*/
|
|
11136
|
+
expected_version?: string;
|
|
11137
|
+
};
|
|
11138
|
+
export type CanvasExecuteResult = {
|
|
11139
|
+
version: CanvasVersion;
|
|
11140
|
+
/**
|
|
11141
|
+
* Number of design operations performed by the committed script.
|
|
11142
|
+
*/
|
|
11143
|
+
operation_count: number;
|
|
11144
|
+
/**
|
|
11145
|
+
* Map from created result names to node identifiers; reuse the ids in nodes.list, images.list or subsequent scripts.
|
|
11146
|
+
*/
|
|
11147
|
+
created: {
|
|
11148
|
+
[key: string]: string;
|
|
11149
|
+
};
|
|
11150
|
+
/**
|
|
11151
|
+
* String outputs produced by Print calls in script execution order.
|
|
11152
|
+
*/
|
|
11153
|
+
prints: Array<string>;
|
|
11154
|
+
/**
|
|
11155
|
+
* Non-fatal design warnings from this execution; writes have committed, so inspect the affected nodes before making another edit.
|
|
11156
|
+
*/
|
|
11157
|
+
warnings: Array<{
|
|
11158
|
+
/**
|
|
11159
|
+
* Machine-readable warning category identifying what to inspect in the design.
|
|
11160
|
+
*/
|
|
11161
|
+
code: string;
|
|
11162
|
+
/**
|
|
11163
|
+
* Identifier of the node to inspect with nodes.list or images.list.
|
|
11164
|
+
*/
|
|
11165
|
+
node_id: string;
|
|
11166
|
+
/**
|
|
11167
|
+
* Human-readable explanation of the design issue and its context.
|
|
11168
|
+
*/
|
|
11169
|
+
message: string;
|
|
11170
|
+
}>;
|
|
11171
|
+
/**
|
|
11172
|
+
* Node ids requested through TakeScreenshot; call images.list with up to four ids to obtain the actual PNG images.
|
|
11173
|
+
*/
|
|
11174
|
+
screenshots: Array<string>;
|
|
11175
|
+
/**
|
|
11176
|
+
* Identifiers of top-level frames affected by the script; render these frames to review the edit.
|
|
11177
|
+
*/
|
|
11178
|
+
touched_frames: Array<string>;
|
|
11179
|
+
/**
|
|
11180
|
+
* Global variable names still available for reuse in the next execute call on this canvas.
|
|
11181
|
+
*/
|
|
11182
|
+
globals: Array<string>;
|
|
11183
|
+
/**
|
|
11184
|
+
* Console URL where a person can watch the canvas and inspect the committed visual result live.
|
|
11185
|
+
*/
|
|
11186
|
+
viewer_url: string;
|
|
11187
|
+
};
|
|
10948
11188
|
export type DatabaseCreateDatabaseInput = {
|
|
10949
11189
|
/**
|
|
10950
11190
|
* Display name for the database: 1–64 visible characters after trimming; control characters are rejected. It is not an identifier, so later calls still use the returned id.
|
|
@@ -19097,7 +19337,7 @@ export type AgentManaged89 = {
|
|
|
19097
19337
|
type: 'text';
|
|
19098
19338
|
};
|
|
19099
19339
|
/**
|
|
19100
|
-
*
|
|
19340
|
+
* Conversation model; required on creation except for kind assume. Forbidden and omitted on assume agents, which are driven by an external MCP client.
|
|
19101
19341
|
*/
|
|
19102
19342
|
export type AgentManaged38 = {
|
|
19103
19343
|
/**
|
|
@@ -21625,6 +21865,62 @@ export type AutomationHumanTaskOutcome = {
|
|
|
21625
21865
|
*/
|
|
21626
21866
|
responses: Array<AutomationHumanTaskResponse>;
|
|
21627
21867
|
};
|
|
21868
|
+
/**
|
|
21869
|
+
* Current revision as a decimal string, incremented by one after each successful write; pass it as expected_version to guard a subsequent execute call.
|
|
21870
|
+
*/
|
|
21871
|
+
export type CanvasVersion = string;
|
|
21872
|
+
export type CanvasFrame = {
|
|
21873
|
+
/**
|
|
21874
|
+
* Top-level node identifier; use in nodes.list, images.list or an execute script.
|
|
21875
|
+
*/
|
|
21876
|
+
id: string;
|
|
21877
|
+
/**
|
|
21878
|
+
* Human-readable node name, or null if no name is assigned.
|
|
21879
|
+
*/
|
|
21880
|
+
name: string | null;
|
|
21881
|
+
/**
|
|
21882
|
+
* Pencil node kind for this top-level item, such as frame or group; read nodes.list for its full content.
|
|
21883
|
+
*/
|
|
21884
|
+
type: string;
|
|
21885
|
+
/**
|
|
21886
|
+
* Horizontal position of the top-level node on the canvas, in design pixels.
|
|
21887
|
+
*/
|
|
21888
|
+
x: number;
|
|
21889
|
+
/**
|
|
21890
|
+
* Vertical position of the top-level node on the canvas, in design pixels.
|
|
21891
|
+
*/
|
|
21892
|
+
y: number;
|
|
21893
|
+
/**
|
|
21894
|
+
* Current width of the top-level node in design pixels.
|
|
21895
|
+
*/
|
|
21896
|
+
width: number;
|
|
21897
|
+
/**
|
|
21898
|
+
* Current height of the top-level node in design pixels.
|
|
21899
|
+
*/
|
|
21900
|
+
height: number;
|
|
21901
|
+
/**
|
|
21902
|
+
* Number of design nodes in this top-level node's subtree.
|
|
21903
|
+
*/
|
|
21904
|
+
node_count: number;
|
|
21905
|
+
/**
|
|
21906
|
+
* Whether this top-level node defines a reusable component.
|
|
21907
|
+
*/
|
|
21908
|
+
component: boolean;
|
|
21909
|
+
/**
|
|
21910
|
+
* Whether this top-level node is a placeholder awaiting design content.
|
|
21911
|
+
*/
|
|
21912
|
+
placeholder: boolean;
|
|
21913
|
+
/**
|
|
21914
|
+
* Whether this top-level node is visible on the canvas.
|
|
21915
|
+
*/
|
|
21916
|
+
visible: boolean;
|
|
21917
|
+
};
|
|
21918
|
+
/**
|
|
21919
|
+
* A node document in pen.dev (Pencil) .pen schema 2.21, not a Figma node. Node-specific design properties are preserved as open fields; frame/group/rectangle/ellipse/polygon/path/text/icon/ref/note use their .pen properties.
|
|
21920
|
+
*/
|
|
21921
|
+
export type CanvasPenNode = {
|
|
21922
|
+
[key: string]: unknown;
|
|
21923
|
+
};
|
|
21628
21924
|
export type DatabaseField = {
|
|
21629
21925
|
/**
|
|
21630
21926
|
* Field identifier, prefixed fld_. Stable across renames; accepted wherever a field path parameter takes an id or name.
|
|
@@ -27847,6 +28143,10 @@ export type AgentManaged34Writable = {
|
|
|
27847
28143
|
* Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404.
|
|
27848
28144
|
*/
|
|
27849
28145
|
export type SandboxSandboxId = string;
|
|
28146
|
+
/**
|
|
28147
|
+
* Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
|
|
28148
|
+
*/
|
|
28149
|
+
export type CanvasCanvasId = string;
|
|
27850
28150
|
/**
|
|
27851
28151
|
* Cursor to start the list from
|
|
27852
28152
|
*/
|
|
@@ -27863,7 +28163,7 @@ export type ApplyAgentVersionData = {
|
|
|
27863
28163
|
body?: never;
|
|
27864
28164
|
path: {
|
|
27865
28165
|
/**
|
|
27866
|
-
* Agent identifier from agents.create or agents.list.
|
|
28166
|
+
* Agent identifier from agents.create or agents.list. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
27867
28167
|
*/
|
|
27868
28168
|
agent_id: string;
|
|
27869
28169
|
/**
|
|
@@ -27926,7 +28226,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
27926
28226
|
/**
|
|
27927
28227
|
* Model identifier and configuration.
|
|
27928
28228
|
*/
|
|
27929
|
-
model
|
|
28229
|
+
model?: {
|
|
27930
28230
|
/**
|
|
27931
28231
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
27932
28232
|
*/
|
|
@@ -27960,7 +28260,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
27960
28260
|
/**
|
|
27961
28261
|
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
27962
28262
|
*/
|
|
27963
|
-
multiagent
|
|
28263
|
+
multiagent?: null | AgentManaged39;
|
|
27964
28264
|
/**
|
|
27965
28265
|
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
27966
28266
|
*/
|
|
@@ -28070,9 +28370,9 @@ export type ApplyAgentVersionResponses = {
|
|
|
28070
28370
|
enabled?: boolean;
|
|
28071
28371
|
}>;
|
|
28072
28372
|
/**
|
|
28073
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
|
|
28373
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
28074
28374
|
*/
|
|
28075
|
-
kind: 'general' | 'personal' | 'service';
|
|
28375
|
+
kind: 'general' | 'personal' | 'service' | 'assume';
|
|
28076
28376
|
/**
|
|
28077
28377
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
28078
28378
|
*/
|
|
@@ -28454,7 +28754,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
28454
28754
|
*/
|
|
28455
28755
|
environment_id?: string | null;
|
|
28456
28756
|
/**
|
|
28457
|
-
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents
|
|
28757
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
28458
28758
|
*/
|
|
28459
28759
|
vault_ids?: Array<string>;
|
|
28460
28760
|
/**
|
|
@@ -28468,7 +28768,7 @@ export type UnarchiveAgentData = {
|
|
|
28468
28768
|
body?: never;
|
|
28469
28769
|
path: {
|
|
28470
28770
|
/**
|
|
28471
|
-
* Agent id from creation or listing.
|
|
28771
|
+
* Agent id from creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
28472
28772
|
*/
|
|
28473
28773
|
agent_id: string;
|
|
28474
28774
|
};
|
|
@@ -28597,7 +28897,7 @@ export type UnarchiveAgentResponses = {
|
|
|
28597
28897
|
/**
|
|
28598
28898
|
* Model identifier and configuration.
|
|
28599
28899
|
*/
|
|
28600
|
-
model
|
|
28900
|
+
model?: {
|
|
28601
28901
|
/**
|
|
28602
28902
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
28603
28903
|
*/
|
|
@@ -28656,7 +28956,7 @@ export type UnarchiveAgentResponses = {
|
|
|
28656
28956
|
/**
|
|
28657
28957
|
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
28658
28958
|
*/
|
|
28659
|
-
multiagent
|
|
28959
|
+
multiagent?: null | {
|
|
28660
28960
|
/**
|
|
28661
28961
|
* Agents the coordinator may spawn as session threads, each resolved to a specific
|
|
28662
28962
|
* version.
|
|
@@ -29262,9 +29562,9 @@ export type UnarchiveAgentResponses = {
|
|
|
29262
29562
|
enabled?: boolean;
|
|
29263
29563
|
}>;
|
|
29264
29564
|
/**
|
|
29265
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
|
|
29565
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
29266
29566
|
*/
|
|
29267
|
-
kind: 'general' | 'personal' | 'service';
|
|
29567
|
+
kind: 'general' | 'personal' | 'service' | 'assume';
|
|
29268
29568
|
/**
|
|
29269
29569
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
29270
29570
|
*/
|
|
@@ -29646,7 +29946,7 @@ export type UnarchiveAgentResponses = {
|
|
|
29646
29946
|
*/
|
|
29647
29947
|
environment_id?: string | null;
|
|
29648
29948
|
/**
|
|
29649
|
-
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents
|
|
29949
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
29650
29950
|
*/
|
|
29651
29951
|
vault_ids?: Array<string>;
|
|
29652
29952
|
/**
|
|
@@ -29780,7 +30080,7 @@ export type ListCustomersData = {
|
|
|
29780
30080
|
body?: never;
|
|
29781
30081
|
path: {
|
|
29782
30082
|
/**
|
|
29783
|
-
* Active service agent id from agent creation or listing.
|
|
30083
|
+
* Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
29784
30084
|
*/
|
|
29785
30085
|
agent_id: string;
|
|
29786
30086
|
};
|
|
@@ -29889,7 +30189,7 @@ export type DeleteCustomerData = {
|
|
|
29889
30189
|
body?: never;
|
|
29890
30190
|
path: {
|
|
29891
30191
|
/**
|
|
29892
|
-
* Active service agent id from agent creation or listing.
|
|
30192
|
+
* Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
29893
30193
|
*/
|
|
29894
30194
|
agent_id: string;
|
|
29895
30195
|
/**
|
|
@@ -29944,7 +30244,7 @@ export type GetCustomerData = {
|
|
|
29944
30244
|
body?: never;
|
|
29945
30245
|
path: {
|
|
29946
30246
|
/**
|
|
29947
|
-
* Active service agent id from agent creation or listing.
|
|
30247
|
+
* Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
29948
30248
|
*/
|
|
29949
30249
|
agent_id: string;
|
|
29950
30250
|
/**
|
|
@@ -30048,7 +30348,7 @@ export type GetCustomerDeletionData = {
|
|
|
30048
30348
|
body?: never;
|
|
30049
30349
|
path: {
|
|
30050
30350
|
/**
|
|
30051
|
-
* Active service agent id from agent creation or listing.
|
|
30351
|
+
* Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
30052
30352
|
*/
|
|
30053
30353
|
agent_id: string;
|
|
30054
30354
|
/**
|
|
@@ -30135,7 +30435,7 @@ export type BlockCustomerData = {
|
|
|
30135
30435
|
body?: never;
|
|
30136
30436
|
path: {
|
|
30137
30437
|
/**
|
|
30138
|
-
* Active service agent id from agent creation or listing.
|
|
30438
|
+
* Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
30139
30439
|
*/
|
|
30140
30440
|
agent_id: string;
|
|
30141
30441
|
/**
|
|
@@ -30218,7 +30518,7 @@ export type UnblockCustomerData = {
|
|
|
30218
30518
|
body?: never;
|
|
30219
30519
|
path: {
|
|
30220
30520
|
/**
|
|
30221
|
-
* Active service agent id from agent creation or listing.
|
|
30521
|
+
* Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
30222
30522
|
*/
|
|
30223
30523
|
agent_id: string;
|
|
30224
30524
|
/**
|
|
@@ -30297,7 +30597,7 @@ export type RevokeCustomerTokensData = {
|
|
|
30297
30597
|
body?: never;
|
|
30298
30598
|
path: {
|
|
30299
30599
|
/**
|
|
30300
|
-
* Active service agent id from agent creation or listing.
|
|
30600
|
+
* Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
30301
30601
|
*/
|
|
30302
30602
|
agent_id: string;
|
|
30303
30603
|
/**
|
|
@@ -30343,7 +30643,7 @@ export type GetAgentAppearanceData = {
|
|
|
30343
30643
|
body?: never;
|
|
30344
30644
|
path: {
|
|
30345
30645
|
/**
|
|
30346
|
-
* Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for.
|
|
30646
|
+
* Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
30347
30647
|
*/
|
|
30348
30648
|
agent_id: string;
|
|
30349
30649
|
};
|
|
@@ -30654,7 +30954,7 @@ export type CreateCustomerGrantCodeData = {
|
|
|
30654
30954
|
};
|
|
30655
30955
|
path: {
|
|
30656
30956
|
/**
|
|
30657
|
-
* Service agent id (agent_…) or its short identity number, from agent creation or listing.
|
|
30957
|
+
* Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
30658
30958
|
*/
|
|
30659
30959
|
agent_id: string;
|
|
30660
30960
|
};
|
|
@@ -30730,7 +31030,7 @@ export type CreateCustomerAccessTokenData = {
|
|
|
30730
31030
|
};
|
|
30731
31031
|
path: {
|
|
30732
31032
|
/**
|
|
30733
|
-
* Service agent id (agent_…) or its short identity number, from agent creation or listing.
|
|
31033
|
+
* Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
30734
31034
|
*/
|
|
30735
31035
|
agent_id: string;
|
|
30736
31036
|
};
|
|
@@ -30804,7 +31104,7 @@ export type RenewCustomerAccessTokenData = {
|
|
|
30804
31104
|
body?: never;
|
|
30805
31105
|
path: {
|
|
30806
31106
|
/**
|
|
30807
|
-
* Service agent id (agent_…) or its short identity number, from agent creation or listing.
|
|
31107
|
+
* Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
30808
31108
|
*/
|
|
30809
31109
|
agent_id: string;
|
|
30810
31110
|
};
|
|
@@ -30866,7 +31166,7 @@ export type DeleteCurrentCustomerAccessTokenData = {
|
|
|
30866
31166
|
body?: never;
|
|
30867
31167
|
path: {
|
|
30868
31168
|
/**
|
|
30869
|
-
* Service agent id (agent_…) or its short identity number, from agent creation or listing.
|
|
31169
|
+
* Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
30870
31170
|
*/
|
|
30871
31171
|
agent_id: string;
|
|
30872
31172
|
};
|
|
@@ -38550,7 +38850,7 @@ export type ListModelsData = {
|
|
|
38550
38850
|
/**
|
|
38551
38851
|
* Match any comma-separated declared protocol ID; omitted or empty includes all models. Combined with type and output_modalities using AND. Invalid IDs return 400 with all legal values.
|
|
38552
38852
|
*/
|
|
38553
|
-
supported_api?: Array<'anthropic.messages' | 'cohere.rerank' | 'google.generateContent' | 'mistral.ocr' | 'openai.audio.speech' | 'openai.audio.transcriptions' | 'openai.chat.completions' | 'openai.embeddings' | 'openai.images.edits' | 'openai.images.generations' | 'openai.responses' | 'openai.videos'>;
|
|
38853
|
+
supported_api?: Array<'anthropic.messages' | 'cohere.rerank' | 'google.generateContent' | 'mistral.ocr' | 'openai.audio.speech' | 'openai.audio.transcriptions' | 'openai.chat.completions' | 'openai.embeddings' | 'openai.images.edits' | 'openai.images.generations' | 'openai.responses' | 'openai.videos' | 'typesafe.systemone'>;
|
|
38554
38854
|
/**
|
|
38555
38855
|
* Filter by one or more model types (comma-separated).
|
|
38556
38856
|
*/
|
|
@@ -39534,6 +39834,251 @@ export type RemixVideoErrors = {
|
|
|
39534
39834
|
*/
|
|
39535
39835
|
400: unknown;
|
|
39536
39836
|
};
|
|
39837
|
+
export type CreateSystemoneData = {
|
|
39838
|
+
body: {
|
|
39839
|
+
/**
|
|
39840
|
+
* Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response.
|
|
39841
|
+
*/
|
|
39842
|
+
model: string;
|
|
39843
|
+
/**
|
|
39844
|
+
* Shared content evaluated by every question, supplied as text, a JSON object or an array.
|
|
39845
|
+
*/
|
|
39846
|
+
state: string | {
|
|
39847
|
+
[key: string]: unknown;
|
|
39848
|
+
} | Array<unknown>;
|
|
39849
|
+
/**
|
|
39850
|
+
* Non-empty map of caller-chosen question ids to typed questions; answers preserve these ids. noul evaluates yes/no, choice selects a named option, score rates ordered levels. box is unsupported.
|
|
39851
|
+
*/
|
|
39852
|
+
questions: {
|
|
39853
|
+
[key: string]: {
|
|
39854
|
+
/**
|
|
39855
|
+
* noul asks a yes/no question and returns the probability of yes.
|
|
39856
|
+
*/
|
|
39857
|
+
type: 'noul';
|
|
39858
|
+
/**
|
|
39859
|
+
* Optional instructions for this question; text, object, array or null. Omit to let the criteria supply the question context.
|
|
39860
|
+
*/
|
|
39861
|
+
instructions?: string | {
|
|
39862
|
+
[key: string]: unknown;
|
|
39863
|
+
} | Array<unknown> | null;
|
|
39864
|
+
/**
|
|
39865
|
+
* Optional descriptions of the true and false outcomes; only these two keys are accepted.
|
|
39866
|
+
*/
|
|
39867
|
+
criteria?: {
|
|
39868
|
+
/**
|
|
39869
|
+
* Description of the yes outcome used to evaluate this noul question.
|
|
39870
|
+
*/
|
|
39871
|
+
true?: string | {
|
|
39872
|
+
[key: string]: unknown;
|
|
39873
|
+
} | Array<unknown> | null;
|
|
39874
|
+
/**
|
|
39875
|
+
* Description of the no outcome used to evaluate this noul question.
|
|
39876
|
+
*/
|
|
39877
|
+
false?: string | {
|
|
39878
|
+
[key: string]: unknown;
|
|
39879
|
+
} | Array<unknown> | null;
|
|
39880
|
+
};
|
|
39881
|
+
} | {
|
|
39882
|
+
/**
|
|
39883
|
+
* choice selects an option from the named criteria and returns every option probability.
|
|
39884
|
+
*/
|
|
39885
|
+
type: 'choice';
|
|
39886
|
+
/**
|
|
39887
|
+
* Optional instructions for this question; text, object, array or null. Omit to let the criteria supply the question context.
|
|
39888
|
+
*/
|
|
39889
|
+
instructions?: string | {
|
|
39890
|
+
[key: string]: unknown;
|
|
39891
|
+
} | Array<unknown> | null;
|
|
39892
|
+
/**
|
|
39893
|
+
* One to 255 named options; each value describes that option as text, object, array or null. The selected choice is one of these keys.
|
|
39894
|
+
*/
|
|
39895
|
+
criteria: {
|
|
39896
|
+
[key: string]: string | {
|
|
39897
|
+
[key: string]: unknown;
|
|
39898
|
+
} | Array<unknown> | null;
|
|
39899
|
+
};
|
|
39900
|
+
} | {
|
|
39901
|
+
/**
|
|
39902
|
+
* score evaluates ordered criteria from low to high and returns a normalized score.
|
|
39903
|
+
*/
|
|
39904
|
+
type: 'score';
|
|
39905
|
+
/**
|
|
39906
|
+
* Optional instructions for this question; text, object, array or null. Omit to let the criteria supply the question context.
|
|
39907
|
+
*/
|
|
39908
|
+
instructions?: string | {
|
|
39909
|
+
[key: string]: unknown;
|
|
39910
|
+
} | Array<unknown> | null;
|
|
39911
|
+
/**
|
|
39912
|
+
* One to ten descriptive levels ordered from low to high; each is text, an object or an array. Legend keys in the answer index these levels.
|
|
39913
|
+
*/
|
|
39914
|
+
criteria: Array<string | {
|
|
39915
|
+
[key: string]: unknown;
|
|
39916
|
+
} | Array<unknown>>;
|
|
39917
|
+
};
|
|
39918
|
+
};
|
|
39919
|
+
/**
|
|
39920
|
+
* Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported.
|
|
39921
|
+
*/
|
|
39922
|
+
assets?: {
|
|
39923
|
+
[key: string]: unknown;
|
|
39924
|
+
};
|
|
39925
|
+
[key: string]: unknown;
|
|
39926
|
+
};
|
|
39927
|
+
path?: never;
|
|
39928
|
+
query?: never;
|
|
39929
|
+
url: '/model/v1/systemone';
|
|
39930
|
+
};
|
|
39931
|
+
export type CreateSystemoneErrors = {
|
|
39932
|
+
/**
|
|
39933
|
+
* Missing model, state or questions; invalid question type or criteria size; box or assets unsupported. Correct the named field before retrying.
|
|
39934
|
+
*/
|
|
39935
|
+
400: {
|
|
39936
|
+
type: string;
|
|
39937
|
+
title: string;
|
|
39938
|
+
status: number;
|
|
39939
|
+
detail: string;
|
|
39940
|
+
[key: string]: unknown;
|
|
39941
|
+
};
|
|
39942
|
+
/**
|
|
39943
|
+
* Missing or invalid API credentials; supply a valid platform API key in Authorization: Bearer.
|
|
39944
|
+
*/
|
|
39945
|
+
401: {
|
|
39946
|
+
type: string;
|
|
39947
|
+
title: string;
|
|
39948
|
+
status: number;
|
|
39949
|
+
detail: string;
|
|
39950
|
+
[key: string]: unknown;
|
|
39951
|
+
};
|
|
39952
|
+
/**
|
|
39953
|
+
* Unknown model or MODEL_PROTOCOL_NOT_OFFERED; select a catalog model declaring typesafe.systemone.
|
|
39954
|
+
*/
|
|
39955
|
+
404: {
|
|
39956
|
+
type: string;
|
|
39957
|
+
title: string;
|
|
39958
|
+
status: number;
|
|
39959
|
+
detail: string;
|
|
39960
|
+
[key: string]: unknown;
|
|
39961
|
+
};
|
|
39962
|
+
/**
|
|
39963
|
+
* The platform or upstream is rate limited; wait before retrying the request.
|
|
39964
|
+
*/
|
|
39965
|
+
429: {
|
|
39966
|
+
type: string;
|
|
39967
|
+
title: string;
|
|
39968
|
+
status: number;
|
|
39969
|
+
detail: string;
|
|
39970
|
+
[key: string]: unknown;
|
|
39971
|
+
};
|
|
39972
|
+
/**
|
|
39973
|
+
* Upstream credentials, transport or response failed; retry later or choose another declared model.
|
|
39974
|
+
*/
|
|
39975
|
+
502: {
|
|
39976
|
+
type: string;
|
|
39977
|
+
title: string;
|
|
39978
|
+
status: number;
|
|
39979
|
+
detail: string;
|
|
39980
|
+
[key: string]: unknown;
|
|
39981
|
+
};
|
|
39982
|
+
/**
|
|
39983
|
+
* No available native System One line; retry later or choose another declared model.
|
|
39984
|
+
*/
|
|
39985
|
+
503: {
|
|
39986
|
+
type: string;
|
|
39987
|
+
title: string;
|
|
39988
|
+
status: number;
|
|
39989
|
+
detail: string;
|
|
39990
|
+
[key: string]: unknown;
|
|
39991
|
+
};
|
|
39992
|
+
};
|
|
39993
|
+
export type CreateSystemoneError = CreateSystemoneErrors[keyof CreateSystemoneErrors];
|
|
39994
|
+
export type CreateSystemoneResponses = {
|
|
39995
|
+
/**
|
|
39996
|
+
* Typed answers keyed by the original question ids, token usage, and the actual customer charge in USD.
|
|
39997
|
+
*/
|
|
39998
|
+
200: {
|
|
39999
|
+
/**
|
|
40000
|
+
* Model id exactly as supplied in the request, including any public alias or creator prefix.
|
|
40001
|
+
*/
|
|
40002
|
+
model: string;
|
|
40003
|
+
/**
|
|
40004
|
+
* Results mapped by the caller's question ids; each discriminator matches that question's type.
|
|
40005
|
+
*/
|
|
40006
|
+
answers: {
|
|
40007
|
+
[key: string]: {
|
|
40008
|
+
/**
|
|
40009
|
+
* Answer discriminator: noul corresponds to the question of the same type.
|
|
40010
|
+
*/
|
|
40011
|
+
type: 'noul';
|
|
40012
|
+
/**
|
|
40013
|
+
* Calibrated probability that the answer to the yes/no question is yes.
|
|
40014
|
+
*/
|
|
40015
|
+
noul: number;
|
|
40016
|
+
} | {
|
|
40017
|
+
/**
|
|
40018
|
+
* Answer discriminator: choice corresponds to the question of the same type.
|
|
40019
|
+
*/
|
|
40020
|
+
type: 'choice';
|
|
40021
|
+
/**
|
|
40022
|
+
* Selected option name, always a key from this question's criteria.
|
|
40023
|
+
*/
|
|
40024
|
+
choice: string;
|
|
40025
|
+
/**
|
|
40026
|
+
* Certainty of the selected choice or score, distinct from the per-option probabilities.
|
|
40027
|
+
*/
|
|
40028
|
+
confidence: number;
|
|
40029
|
+
/**
|
|
40030
|
+
* Probability of each caller-defined choice or zero-based score level; the probabilities sum to one.
|
|
40031
|
+
*/
|
|
40032
|
+
probabilities: {
|
|
40033
|
+
[key: string]: number;
|
|
40034
|
+
};
|
|
40035
|
+
} | {
|
|
40036
|
+
/**
|
|
40037
|
+
* Answer discriminator: score corresponds to the question of the same type.
|
|
40038
|
+
*/
|
|
40039
|
+
type: 'score';
|
|
40040
|
+
/**
|
|
40041
|
+
* Normalized rating across the ordered criteria, from the lowest to the highest level.
|
|
40042
|
+
*/
|
|
40043
|
+
score: number;
|
|
40044
|
+
/**
|
|
40045
|
+
* Certainty of the selected choice or score, distinct from the per-option probabilities.
|
|
40046
|
+
*/
|
|
40047
|
+
confidence: number;
|
|
40048
|
+
/**
|
|
40049
|
+
* Zero-based level keys mapped to their descriptions, with one key per request criterion.
|
|
40050
|
+
*/
|
|
40051
|
+
legend: {
|
|
40052
|
+
[key: string]: unknown;
|
|
40053
|
+
};
|
|
40054
|
+
/**
|
|
40055
|
+
* Probability of each caller-defined choice or zero-based score level; the probabilities sum to one.
|
|
40056
|
+
*/
|
|
40057
|
+
probabilities: {
|
|
40058
|
+
[key: string]: number;
|
|
40059
|
+
};
|
|
40060
|
+
};
|
|
40061
|
+
};
|
|
40062
|
+
/**
|
|
40063
|
+
* Provider token counts and the actual input-only customer charge; output tokens are free.
|
|
40064
|
+
*/
|
|
40065
|
+
usage: {
|
|
40066
|
+
/**
|
|
40067
|
+
* Authoritative upstream count of input tokens; the sole billed quantity for this operation.
|
|
40068
|
+
*/
|
|
40069
|
+
input_tokens: number;
|
|
40070
|
+
/**
|
|
40071
|
+
* Upstream count of output tokens, returned for visibility and never charged.
|
|
40072
|
+
*/
|
|
40073
|
+
output_tokens: number;
|
|
40074
|
+
/**
|
|
40075
|
+
* Actual customer charge in USD after micro-dollar rounding; exactly the value in X-Praxis-Cost-Usd, never upstream procurement cost.
|
|
40076
|
+
*/
|
|
40077
|
+
cost: number;
|
|
40078
|
+
};
|
|
40079
|
+
};
|
|
40080
|
+
};
|
|
40081
|
+
export type CreateSystemoneResponse = CreateSystemoneResponses[keyof CreateSystemoneResponses];
|
|
39537
40082
|
export type CreateAudioTranscriptionData = {
|
|
39538
40083
|
body: {
|
|
39539
40084
|
/**
|
|
@@ -45152,15 +45697,15 @@ export type AgentsListData = {
|
|
|
45152
45697
|
limit?: number;
|
|
45153
45698
|
page?: null | string;
|
|
45154
45699
|
/**
|
|
45155
|
-
* General agents use a durable computer and act for their owner; personal agents behave like general agents for now and are reserved for the personal agent; service agents use a clean environment per session.
|
|
45700
|
+
* General agents use a durable computer and act for their owner; personal agents behave like general agents for now and are reserved for the personal agent; service agents use a clean environment per session. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
45156
45701
|
*/
|
|
45157
|
-
kind?: 'general' | 'personal' | 'service';
|
|
45702
|
+
kind?: 'general' | 'personal' | 'service' | 'assume';
|
|
45158
45703
|
};
|
|
45159
45704
|
url: '/agent/v1/agents';
|
|
45160
45705
|
};
|
|
45161
45706
|
export type AgentsListErrors = {
|
|
45162
45707
|
/**
|
|
45163
|
-
* include_archived is not true or false, kind is not general, personal or
|
|
45708
|
+
* include_archived is not true or false, kind is not general, personal, service or assume, a created_at bound is not an RFC 3339 timestamp, or INVALID_PARAMS when limit is not an integer from 1 to 100 (limit must be an integer between 1 and 100), or INVALID_PAGE_TOKEN when page is not a cursor from this same query (restart from the first page). Pass next_page unchanged, with the same filters, to continue.
|
|
45164
45709
|
*/
|
|
45165
45710
|
400: AgentError;
|
|
45166
45711
|
/**
|
|
@@ -45206,7 +45751,7 @@ export type AgentsListResponses = {
|
|
|
45206
45751
|
/**
|
|
45207
45752
|
* Model identifier and configuration.
|
|
45208
45753
|
*/
|
|
45209
|
-
model
|
|
45754
|
+
model?: {
|
|
45210
45755
|
/**
|
|
45211
45756
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
45212
45757
|
*/
|
|
@@ -45240,7 +45785,7 @@ export type AgentsListResponses = {
|
|
|
45240
45785
|
/**
|
|
45241
45786
|
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
45242
45787
|
*/
|
|
45243
|
-
multiagent
|
|
45788
|
+
multiagent?: null | AgentManaged39;
|
|
45244
45789
|
/**
|
|
45245
45790
|
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
45246
45791
|
*/
|
|
@@ -45346,9 +45891,9 @@ export type AgentsListResponses = {
|
|
|
45346
45891
|
enabled?: boolean;
|
|
45347
45892
|
}>;
|
|
45348
45893
|
/**
|
|
45349
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
|
|
45894
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
45350
45895
|
*/
|
|
45351
|
-
kind: 'general' | 'personal' | 'service';
|
|
45896
|
+
kind: 'general' | 'personal' | 'service' | 'assume';
|
|
45352
45897
|
/**
|
|
45353
45898
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
45354
45899
|
*/
|
|
@@ -45730,7 +46275,7 @@ export type AgentsListResponses = {
|
|
|
45730
46275
|
*/
|
|
45731
46276
|
environment_id?: string | null;
|
|
45732
46277
|
/**
|
|
45733
|
-
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents
|
|
46278
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
45734
46279
|
*/
|
|
45735
46280
|
vault_ids?: Array<string>;
|
|
45736
46281
|
/**
|
|
@@ -45748,9 +46293,9 @@ export type AgentsListResponse = AgentsListResponses[keyof AgentsListResponses];
|
|
|
45748
46293
|
export type AgentsCreateData = {
|
|
45749
46294
|
body: {
|
|
45750
46295
|
/**
|
|
45751
|
-
* A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
46296
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected. Forbidden and omitted on assume agents.
|
|
45752
46297
|
*/
|
|
45753
|
-
model
|
|
46298
|
+
model?: string | {
|
|
45754
46299
|
/**
|
|
45755
46300
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
45756
46301
|
*/
|
|
@@ -45860,9 +46405,9 @@ export type AgentsCreateData = {
|
|
|
45860
46405
|
enabled?: boolean;
|
|
45861
46406
|
}>;
|
|
45862
46407
|
/**
|
|
45863
|
-
* Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
|
|
46408
|
+
* Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
45864
46409
|
*/
|
|
45865
|
-
kind?: 'general' | 'personal' | 'service';
|
|
46410
|
+
kind?: 'general' | 'personal' | 'service' | 'assume';
|
|
45866
46411
|
/**
|
|
45867
46412
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined.
|
|
45868
46413
|
*/
|
|
@@ -46250,7 +46795,7 @@ export type AgentsCreateData = {
|
|
|
46250
46795
|
};
|
|
46251
46796
|
export type AgentsCreateErrors = {
|
|
46252
46797
|
/**
|
|
46253
|
-
* The body failed validation and the message names the field: an unknown field, name outside 1 to 256 characters, a model that is not in the catalog or cannot run an agent, invalid tools or tools: null, a skill that is anthropic, repeated or not found, invalid bindings or vault_ids, or an environment_id that does not exist. Correct the field and retry.
|
|
46798
|
+
* The body failed validation and the message names the field: an unknown field, name outside 1 to 256 characters, a model that is not in the catalog or cannot run an agent, invalid tools or tools: null, a skill that is anthropic, repeated or not found, invalid bindings or vault_ids, or an environment_id that does not exist, or model, models, subagent_model, subagents or multiagent supplied on an assume agent. Correct the field and retry.
|
|
46254
46799
|
*/
|
|
46255
46800
|
400: AgentError;
|
|
46256
46801
|
/**
|
|
@@ -46296,7 +46841,7 @@ export type AgentsCreateResponses = {
|
|
|
46296
46841
|
/**
|
|
46297
46842
|
* Model identifier and configuration.
|
|
46298
46843
|
*/
|
|
46299
|
-
model
|
|
46844
|
+
model?: {
|
|
46300
46845
|
/**
|
|
46301
46846
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
46302
46847
|
*/
|
|
@@ -46330,7 +46875,7 @@ export type AgentsCreateResponses = {
|
|
|
46330
46875
|
/**
|
|
46331
46876
|
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
46332
46877
|
*/
|
|
46333
|
-
multiagent
|
|
46878
|
+
multiagent?: null | AgentManaged39;
|
|
46334
46879
|
/**
|
|
46335
46880
|
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
46336
46881
|
*/
|
|
@@ -46436,9 +46981,9 @@ export type AgentsCreateResponses = {
|
|
|
46436
46981
|
enabled?: boolean;
|
|
46437
46982
|
}>;
|
|
46438
46983
|
/**
|
|
46439
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
|
|
46984
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
46440
46985
|
*/
|
|
46441
|
-
kind: 'general' | 'personal' | 'service';
|
|
46986
|
+
kind: 'general' | 'personal' | 'service' | 'assume';
|
|
46442
46987
|
/**
|
|
46443
46988
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
46444
46989
|
*/
|
|
@@ -46820,7 +47365,7 @@ export type AgentsCreateResponses = {
|
|
|
46820
47365
|
*/
|
|
46821
47366
|
environment_id?: string | null;
|
|
46822
47367
|
/**
|
|
46823
|
-
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents
|
|
47368
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
46824
47369
|
*/
|
|
46825
47370
|
vault_ids?: Array<string>;
|
|
46826
47371
|
/**
|
|
@@ -46834,7 +47379,7 @@ export type AgentsRetrieveData = {
|
|
|
46834
47379
|
body?: never;
|
|
46835
47380
|
path: {
|
|
46836
47381
|
/**
|
|
46837
|
-
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name.
|
|
47382
|
+
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
46838
47383
|
*/
|
|
46839
47384
|
agent_id: string;
|
|
46840
47385
|
};
|
|
@@ -46895,7 +47440,7 @@ export type AgentsRetrieveResponses = {
|
|
|
46895
47440
|
/**
|
|
46896
47441
|
* Model identifier and configuration.
|
|
46897
47442
|
*/
|
|
46898
|
-
model
|
|
47443
|
+
model?: {
|
|
46899
47444
|
/**
|
|
46900
47445
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
46901
47446
|
*/
|
|
@@ -46929,7 +47474,7 @@ export type AgentsRetrieveResponses = {
|
|
|
46929
47474
|
/**
|
|
46930
47475
|
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
46931
47476
|
*/
|
|
46932
|
-
multiagent
|
|
47477
|
+
multiagent?: null | AgentManaged39;
|
|
46933
47478
|
/**
|
|
46934
47479
|
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
46935
47480
|
*/
|
|
@@ -47039,9 +47584,9 @@ export type AgentsRetrieveResponses = {
|
|
|
47039
47584
|
enabled?: boolean;
|
|
47040
47585
|
}>;
|
|
47041
47586
|
/**
|
|
47042
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
|
|
47587
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
47043
47588
|
*/
|
|
47044
|
-
kind: 'general' | 'personal' | 'service';
|
|
47589
|
+
kind: 'general' | 'personal' | 'service' | 'assume';
|
|
47045
47590
|
/**
|
|
47046
47591
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
47047
47592
|
*/
|
|
@@ -47423,7 +47968,7 @@ export type AgentsRetrieveResponses = {
|
|
|
47423
47968
|
*/
|
|
47424
47969
|
environment_id?: string | null;
|
|
47425
47970
|
/**
|
|
47426
|
-
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents
|
|
47971
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
47427
47972
|
*/
|
|
47428
47973
|
vault_ids?: Array<string>;
|
|
47429
47974
|
/**
|
|
@@ -47450,7 +47995,7 @@ export type AgentsUpdateData = {
|
|
|
47450
47995
|
*/
|
|
47451
47996
|
metadata?: null | AgentManaged58Writable;
|
|
47452
47997
|
/**
|
|
47453
|
-
* A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
47998
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected. Forbidden and omitted on assume agents.
|
|
47454
47999
|
*/
|
|
47455
48000
|
model?: string | {
|
|
47456
48001
|
/**
|
|
@@ -47562,9 +48107,9 @@ export type AgentsUpdateData = {
|
|
|
47562
48107
|
enabled?: boolean;
|
|
47563
48108
|
}> | null;
|
|
47564
48109
|
/**
|
|
47565
|
-
* Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
|
|
48110
|
+
* Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
47566
48111
|
*/
|
|
47567
|
-
kind?: 'general' | 'personal' | 'service';
|
|
48112
|
+
kind?: 'general' | 'personal' | 'service' | 'assume';
|
|
47568
48113
|
/**
|
|
47569
48114
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined.
|
|
47570
48115
|
*/
|
|
@@ -47948,7 +48493,7 @@ export type AgentsUpdateData = {
|
|
|
47948
48493
|
};
|
|
47949
48494
|
path: {
|
|
47950
48495
|
/**
|
|
47951
|
-
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name.
|
|
48496
|
+
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
47952
48497
|
*/
|
|
47953
48498
|
agent_id: string;
|
|
47954
48499
|
};
|
|
@@ -48007,7 +48552,7 @@ export type AgentsUpdateResponses = {
|
|
|
48007
48552
|
/**
|
|
48008
48553
|
* Model identifier and configuration.
|
|
48009
48554
|
*/
|
|
48010
|
-
model
|
|
48555
|
+
model?: {
|
|
48011
48556
|
/**
|
|
48012
48557
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
48013
48558
|
*/
|
|
@@ -48041,7 +48586,7 @@ export type AgentsUpdateResponses = {
|
|
|
48041
48586
|
/**
|
|
48042
48587
|
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
48043
48588
|
*/
|
|
48044
|
-
multiagent
|
|
48589
|
+
multiagent?: null | AgentManaged39;
|
|
48045
48590
|
/**
|
|
48046
48591
|
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
48047
48592
|
*/
|
|
@@ -48151,9 +48696,9 @@ export type AgentsUpdateResponses = {
|
|
|
48151
48696
|
enabled?: boolean;
|
|
48152
48697
|
}>;
|
|
48153
48698
|
/**
|
|
48154
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
|
|
48699
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
48155
48700
|
*/
|
|
48156
|
-
kind: 'general' | 'personal' | 'service';
|
|
48701
|
+
kind: 'general' | 'personal' | 'service' | 'assume';
|
|
48157
48702
|
/**
|
|
48158
48703
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
48159
48704
|
*/
|
|
@@ -48535,7 +49080,7 @@ export type AgentsUpdateResponses = {
|
|
|
48535
49080
|
*/
|
|
48536
49081
|
environment_id?: string | null;
|
|
48537
49082
|
/**
|
|
48538
|
-
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents
|
|
49083
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
48539
49084
|
*/
|
|
48540
49085
|
vault_ids?: Array<string>;
|
|
48541
49086
|
/**
|
|
@@ -48549,7 +49094,7 @@ export type AgentsArchiveData = {
|
|
|
48549
49094
|
body?: never;
|
|
48550
49095
|
path: {
|
|
48551
49096
|
/**
|
|
48552
|
-
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name.
|
|
49097
|
+
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
48553
49098
|
*/
|
|
48554
49099
|
agent_id: string;
|
|
48555
49100
|
};
|
|
@@ -48600,7 +49145,7 @@ export type AgentsArchiveResponses = {
|
|
|
48600
49145
|
/**
|
|
48601
49146
|
* Model identifier and configuration.
|
|
48602
49147
|
*/
|
|
48603
|
-
model
|
|
49148
|
+
model?: {
|
|
48604
49149
|
/**
|
|
48605
49150
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
48606
49151
|
*/
|
|
@@ -48634,7 +49179,7 @@ export type AgentsArchiveResponses = {
|
|
|
48634
49179
|
/**
|
|
48635
49180
|
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
48636
49181
|
*/
|
|
48637
|
-
multiagent
|
|
49182
|
+
multiagent?: null | AgentManaged39;
|
|
48638
49183
|
/**
|
|
48639
49184
|
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
48640
49185
|
*/
|
|
@@ -48740,9 +49285,9 @@ export type AgentsArchiveResponses = {
|
|
|
48740
49285
|
enabled?: boolean;
|
|
48741
49286
|
}>;
|
|
48742
49287
|
/**
|
|
48743
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
|
|
49288
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
48744
49289
|
*/
|
|
48745
|
-
kind: 'general' | 'personal' | 'service';
|
|
49290
|
+
kind: 'general' | 'personal' | 'service' | 'assume';
|
|
48746
49291
|
/**
|
|
48747
49292
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
48748
49293
|
*/
|
|
@@ -49124,7 +49669,7 @@ export type AgentsArchiveResponses = {
|
|
|
49124
49669
|
*/
|
|
49125
49670
|
environment_id?: string | null;
|
|
49126
49671
|
/**
|
|
49127
|
-
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents
|
|
49672
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
49128
49673
|
*/
|
|
49129
49674
|
vault_ids?: Array<string>;
|
|
49130
49675
|
/**
|
|
@@ -49138,7 +49683,7 @@ export type AgentsVersionsListData = {
|
|
|
49138
49683
|
body?: never;
|
|
49139
49684
|
path: {
|
|
49140
49685
|
/**
|
|
49141
|
-
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name.
|
|
49686
|
+
* Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
49142
49687
|
*/
|
|
49143
49688
|
agent_id: string;
|
|
49144
49689
|
};
|
|
@@ -49203,7 +49748,7 @@ export type AgentsVersionsListResponses = {
|
|
|
49203
49748
|
/**
|
|
49204
49749
|
* Model identifier and configuration.
|
|
49205
49750
|
*/
|
|
49206
|
-
model
|
|
49751
|
+
model?: {
|
|
49207
49752
|
/**
|
|
49208
49753
|
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
49209
49754
|
*/
|
|
@@ -49237,7 +49782,7 @@ export type AgentsVersionsListResponses = {
|
|
|
49237
49782
|
/**
|
|
49238
49783
|
* Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
|
|
49239
49784
|
*/
|
|
49240
|
-
multiagent
|
|
49785
|
+
multiagent?: null | AgentManaged39;
|
|
49241
49786
|
/**
|
|
49242
49787
|
* Display name of the agent, as set on create or update. It is a label, not a unique key.
|
|
49243
49788
|
*/
|
|
@@ -49347,9 +49892,9 @@ export type AgentsVersionsListResponses = {
|
|
|
49347
49892
|
enabled?: boolean;
|
|
49348
49893
|
}>;
|
|
49349
49894
|
/**
|
|
49350
|
-
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
|
|
49895
|
+
* Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
|
|
49351
49896
|
*/
|
|
49352
|
-
kind: 'general' | 'personal' | 'service';
|
|
49897
|
+
kind: 'general' | 'personal' | 'service' | 'assume';
|
|
49353
49898
|
/**
|
|
49354
49899
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
|
|
49355
49900
|
*/
|
|
@@ -49731,7 +50276,7 @@ export type AgentsVersionsListResponses = {
|
|
|
49731
50276
|
*/
|
|
49732
50277
|
environment_id?: string | null;
|
|
49733
50278
|
/**
|
|
49734
|
-
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents
|
|
50279
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
49735
50280
|
*/
|
|
49736
50281
|
vault_ids?: Array<string>;
|
|
49737
50282
|
/**
|
|
@@ -50138,7 +50683,7 @@ export type SessionsCreateData = {
|
|
|
50138
50683
|
};
|
|
50139
50684
|
export type SessionsCreateErrors = {
|
|
50140
50685
|
/**
|
|
50141
|
-
* The body failed validation and the message names the field: an unknown field, environment_id together with computer_id, a model or thinking selection the agent does not allow, an invalid budget or vault_ids, invalid initial_events, or an agent reference with an unsupported override.
|
|
50686
|
+
* The body failed validation and the message names the field: an unknown field, environment_id together with computer_id, a model or thinking selection the agent does not allow, an invalid budget or vault_ids, invalid initial_events, or an agent reference with an unsupported override, or an assume agent (use /agent/v1/agents/{id}/mcp; assume agents do not take sessions).
|
|
50142
50687
|
*/
|
|
50143
50688
|
400: AgentError;
|
|
50144
50689
|
/**
|
|
@@ -60140,6 +60685,324 @@ export type AutomationHumanTasksDelegateResponses = {
|
|
|
60140
60685
|
200: AutomationHumanTask;
|
|
60141
60686
|
};
|
|
60142
60687
|
export type AutomationHumanTasksDelegateResponse = AutomationHumanTasksDelegateResponses[keyof AutomationHumanTasksDelegateResponses];
|
|
60688
|
+
export type CanvasListCanvasesData = {
|
|
60689
|
+
body?: never;
|
|
60690
|
+
path?: never;
|
|
60691
|
+
query?: {
|
|
60692
|
+
/**
|
|
60693
|
+
* Maximum canvases to return per page, from 1 to 100; defaults to 50 when omitted.
|
|
60694
|
+
*/
|
|
60695
|
+
limit?: number;
|
|
60696
|
+
/**
|
|
60697
|
+
* Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.
|
|
60698
|
+
*/
|
|
60699
|
+
cursor?: string;
|
|
60700
|
+
};
|
|
60701
|
+
url: '/canvas/v1/canvases';
|
|
60702
|
+
};
|
|
60703
|
+
export type CanvasListCanvasesErrors = {
|
|
60704
|
+
/**
|
|
60705
|
+
* INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
|
|
60706
|
+
*/
|
|
60707
|
+
400: CanvasCanvasError;
|
|
60708
|
+
/**
|
|
60709
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
60710
|
+
*/
|
|
60711
|
+
401: CanvasCanvasError;
|
|
60712
|
+
/**
|
|
60713
|
+
* The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
|
|
60714
|
+
*/
|
|
60715
|
+
403: CanvasCanvasError;
|
|
60716
|
+
/**
|
|
60717
|
+
* INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
|
|
60718
|
+
*/
|
|
60719
|
+
500: CanvasCanvasError;
|
|
60720
|
+
};
|
|
60721
|
+
export type CanvasListCanvasesError = CanvasListCanvasesErrors[keyof CanvasListCanvasesErrors];
|
|
60722
|
+
export type CanvasListCanvasesResponses = {
|
|
60723
|
+
/**
|
|
60724
|
+
* One page of organization canvases, ordered by most recently updated first.
|
|
60725
|
+
*/
|
|
60726
|
+
200: CanvasCanvasPage;
|
|
60727
|
+
};
|
|
60728
|
+
export type CanvasListCanvasesResponse = CanvasListCanvasesResponses[keyof CanvasListCanvasesResponses];
|
|
60729
|
+
export type CanvasCreateCanvasData = {
|
|
60730
|
+
/**
|
|
60731
|
+
* Optional display name for the new canvas; omit the body or send an empty object to use Untitled.
|
|
60732
|
+
*/
|
|
60733
|
+
body?: CanvasCreateCanvasInput;
|
|
60734
|
+
path?: never;
|
|
60735
|
+
query?: never;
|
|
60736
|
+
url: '/canvas/v1/canvases';
|
|
60737
|
+
};
|
|
60738
|
+
export type CanvasCreateCanvasErrors = {
|
|
60739
|
+
/**
|
|
60740
|
+
* INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
|
|
60741
|
+
*/
|
|
60742
|
+
400: CanvasCanvasError;
|
|
60743
|
+
/**
|
|
60744
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
60745
|
+
*/
|
|
60746
|
+
401: CanvasCanvasError;
|
|
60747
|
+
/**
|
|
60748
|
+
* The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
|
|
60749
|
+
*/
|
|
60750
|
+
403: CanvasCanvasError;
|
|
60751
|
+
/**
|
|
60752
|
+
* INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
|
|
60753
|
+
*/
|
|
60754
|
+
500: CanvasCanvasError;
|
|
60755
|
+
};
|
|
60756
|
+
export type CanvasCreateCanvasError = CanvasCreateCanvasErrors[keyof CanvasCreateCanvasErrors];
|
|
60757
|
+
export type CanvasCreateCanvasResponses = {
|
|
60758
|
+
/**
|
|
60759
|
+
* The newly created canvas; use id for API calls and viewer_url to watch it in Console.
|
|
60760
|
+
*/
|
|
60761
|
+
201: CanvasCanvas;
|
|
60762
|
+
};
|
|
60763
|
+
export type CanvasCreateCanvasResponse = CanvasCreateCanvasResponses[keyof CanvasCreateCanvasResponses];
|
|
60764
|
+
export type CanvasDeleteCanvasData = {
|
|
60765
|
+
body?: never;
|
|
60766
|
+
path: {
|
|
60767
|
+
/**
|
|
60768
|
+
* Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
|
|
60769
|
+
*/
|
|
60770
|
+
canvas_id: string;
|
|
60771
|
+
};
|
|
60772
|
+
query?: never;
|
|
60773
|
+
url: '/canvas/v1/canvases/{canvas_id}';
|
|
60774
|
+
};
|
|
60775
|
+
export type CanvasDeleteCanvasErrors = {
|
|
60776
|
+
/**
|
|
60777
|
+
* INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
|
|
60778
|
+
*/
|
|
60779
|
+
400: CanvasCanvasError;
|
|
60780
|
+
/**
|
|
60781
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
60782
|
+
*/
|
|
60783
|
+
401: CanvasCanvasError;
|
|
60784
|
+
/**
|
|
60785
|
+
* The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
|
|
60786
|
+
*/
|
|
60787
|
+
403: CanvasCanvasError;
|
|
60788
|
+
/**
|
|
60789
|
+
* CANVAS_NOT_FOUND means the canvas does not exist, was deleted or belongs to another organization; choose an accessible canvas id from list or create a new canvas.
|
|
60790
|
+
*/
|
|
60791
|
+
404: CanvasCanvasError;
|
|
60792
|
+
/**
|
|
60793
|
+
* INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
|
|
60794
|
+
*/
|
|
60795
|
+
500: CanvasCanvasError;
|
|
60796
|
+
};
|
|
60797
|
+
export type CanvasDeleteCanvasError = CanvasDeleteCanvasErrors[keyof CanvasDeleteCanvasErrors];
|
|
60798
|
+
export type CanvasDeleteCanvasResponses = {
|
|
60799
|
+
/**
|
|
60800
|
+
* Confirmation that this canvas has been permanently deleted.
|
|
60801
|
+
*/
|
|
60802
|
+
200: CanvasDeletedCanvas;
|
|
60803
|
+
};
|
|
60804
|
+
export type CanvasDeleteCanvasResponse = CanvasDeleteCanvasResponses[keyof CanvasDeleteCanvasResponses];
|
|
60805
|
+
export type CanvasRetrieveCanvasData = {
|
|
60806
|
+
body?: never;
|
|
60807
|
+
path: {
|
|
60808
|
+
/**
|
|
60809
|
+
* Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
|
|
60810
|
+
*/
|
|
60811
|
+
canvas_id: string;
|
|
60812
|
+
};
|
|
60813
|
+
query?: never;
|
|
60814
|
+
url: '/canvas/v1/canvases/{canvas_id}';
|
|
60815
|
+
};
|
|
60816
|
+
export type CanvasRetrieveCanvasErrors = {
|
|
60817
|
+
/**
|
|
60818
|
+
* INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
|
|
60819
|
+
*/
|
|
60820
|
+
400: CanvasCanvasError;
|
|
60821
|
+
/**
|
|
60822
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
60823
|
+
*/
|
|
60824
|
+
401: CanvasCanvasError;
|
|
60825
|
+
/**
|
|
60826
|
+
* The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
|
|
60827
|
+
*/
|
|
60828
|
+
403: CanvasCanvasError;
|
|
60829
|
+
/**
|
|
60830
|
+
* CANVAS_NOT_FOUND means the canvas does not exist, was deleted or belongs to another organization; choose an accessible canvas id from list or create a new canvas.
|
|
60831
|
+
*/
|
|
60832
|
+
404: CanvasCanvasError;
|
|
60833
|
+
/**
|
|
60834
|
+
* INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
|
|
60835
|
+
*/
|
|
60836
|
+
500: CanvasCanvasError;
|
|
60837
|
+
};
|
|
60838
|
+
export type CanvasRetrieveCanvasError = CanvasRetrieveCanvasErrors[keyof CanvasRetrieveCanvasErrors];
|
|
60839
|
+
export type CanvasRetrieveCanvasResponses = {
|
|
60840
|
+
/**
|
|
60841
|
+
* Current canvas metadata, top-level frame summaries and reusable components.
|
|
60842
|
+
*/
|
|
60843
|
+
200: CanvasCanvasDetail;
|
|
60844
|
+
};
|
|
60845
|
+
export type CanvasRetrieveCanvasResponse = CanvasRetrieveCanvasResponses[keyof CanvasRetrieveCanvasResponses];
|
|
60846
|
+
export type CanvasListNodesData = {
|
|
60847
|
+
body?: never;
|
|
60848
|
+
path: {
|
|
60849
|
+
/**
|
|
60850
|
+
* Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
|
|
60851
|
+
*/
|
|
60852
|
+
canvas_id: string;
|
|
60853
|
+
};
|
|
60854
|
+
query: {
|
|
60855
|
+
/**
|
|
60856
|
+
* Comma-separated list of 1–100 node ids from retrieve or execute, or instance paths such as a/b; missing ids map to null.
|
|
60857
|
+
*/
|
|
60858
|
+
ids: string;
|
|
60859
|
+
/**
|
|
60860
|
+
* Maximum child depth below each requested node, as an integer at least 0; 0 returns the node without descendants, and omission returns the complete subtree.
|
|
60861
|
+
*/
|
|
60862
|
+
depth?: number;
|
|
60863
|
+
};
|
|
60864
|
+
url: '/canvas/v1/canvases/{canvas_id}/nodes';
|
|
60865
|
+
};
|
|
60866
|
+
export type CanvasListNodesErrors = {
|
|
60867
|
+
/**
|
|
60868
|
+
* INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
|
|
60869
|
+
*/
|
|
60870
|
+
400: CanvasCanvasError;
|
|
60871
|
+
/**
|
|
60872
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
60873
|
+
*/
|
|
60874
|
+
401: CanvasCanvasError;
|
|
60875
|
+
/**
|
|
60876
|
+
* The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
|
|
60877
|
+
*/
|
|
60878
|
+
403: CanvasCanvasError;
|
|
60879
|
+
/**
|
|
60880
|
+
* CANVAS_NOT_FOUND means the canvas does not exist, was deleted or belongs to another organization; choose an accessible canvas id from list or create a new canvas.
|
|
60881
|
+
*/
|
|
60882
|
+
404: CanvasCanvasError;
|
|
60883
|
+
/**
|
|
60884
|
+
* INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
|
|
60885
|
+
*/
|
|
60886
|
+
500: CanvasCanvasError;
|
|
60887
|
+
};
|
|
60888
|
+
export type CanvasListNodesError = CanvasListNodesErrors[keyof CanvasListNodesErrors];
|
|
60889
|
+
export type CanvasListNodesResponses = {
|
|
60890
|
+
/**
|
|
60891
|
+
* Current revision and requested node documents; absent ids map to null rather than failing the request.
|
|
60892
|
+
*/
|
|
60893
|
+
200: CanvasNodesResult;
|
|
60894
|
+
};
|
|
60895
|
+
export type CanvasListNodesResponse = CanvasListNodesResponses[keyof CanvasListNodesResponses];
|
|
60896
|
+
export type CanvasListImagesData = {
|
|
60897
|
+
body?: never;
|
|
60898
|
+
path: {
|
|
60899
|
+
/**
|
|
60900
|
+
* Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
|
|
60901
|
+
*/
|
|
60902
|
+
canvas_id: string;
|
|
60903
|
+
};
|
|
60904
|
+
query: {
|
|
60905
|
+
/**
|
|
60906
|
+
* Comma-separated list of 1–4 node ids to render, from retrieve, execute.created or execute.screenshots.
|
|
60907
|
+
*/
|
|
60908
|
+
ids: string;
|
|
60909
|
+
/**
|
|
60910
|
+
* Output pixel scale relative to canvas dimensions, from 0.25 to 4 inclusive; defaults to 1 when omitted.
|
|
60911
|
+
*/
|
|
60912
|
+
scale?: number;
|
|
60913
|
+
/**
|
|
60914
|
+
* Image encoding; png produces a PNG data URL and is the only supported value. Omit to use png.
|
|
60915
|
+
*/
|
|
60916
|
+
format?: 'png';
|
|
60917
|
+
};
|
|
60918
|
+
url: '/canvas/v1/canvases/{canvas_id}/images';
|
|
60919
|
+
};
|
|
60920
|
+
export type CanvasListImagesErrors = {
|
|
60921
|
+
/**
|
|
60922
|
+
* INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
|
|
60923
|
+
*/
|
|
60924
|
+
400: CanvasCanvasError;
|
|
60925
|
+
/**
|
|
60926
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
60927
|
+
*/
|
|
60928
|
+
401: CanvasCanvasError;
|
|
60929
|
+
/**
|
|
60930
|
+
* The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
|
|
60931
|
+
*/
|
|
60932
|
+
403: CanvasCanvasError;
|
|
60933
|
+
/**
|
|
60934
|
+
* CANVAS_NOT_FOUND means the canvas does not exist, was deleted or belongs to another organization; choose an accessible canvas id from list or create a new canvas.
|
|
60935
|
+
*/
|
|
60936
|
+
404: CanvasCanvasError;
|
|
60937
|
+
/**
|
|
60938
|
+
* INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
|
|
60939
|
+
*/
|
|
60940
|
+
500: CanvasCanvasError;
|
|
60941
|
+
/**
|
|
60942
|
+
* RENDER_FAILED occurs when rendering cannot complete; retry the render later, using nodes.list to inspect the design in the meantime.
|
|
60943
|
+
*/
|
|
60944
|
+
503: CanvasCanvasError;
|
|
60945
|
+
};
|
|
60946
|
+
export type CanvasListImagesError = CanvasListImagesErrors[keyof CanvasListImagesErrors];
|
|
60947
|
+
export type CanvasListImagesResponses = {
|
|
60948
|
+
/**
|
|
60949
|
+
* A node-id-to-PNG-data-URL map, with err=null; individual unavailable images have null values.
|
|
60950
|
+
*/
|
|
60951
|
+
200: CanvasImagesResult;
|
|
60952
|
+
};
|
|
60953
|
+
export type CanvasListImagesResponse = CanvasListImagesResponses[keyof CanvasListImagesResponses];
|
|
60954
|
+
export type CanvasExecuteData = {
|
|
60955
|
+
/**
|
|
60956
|
+
* Either new script source or the edit_id of a failed script with replacement edits; expected_version optionally guards against concurrent changes.
|
|
60957
|
+
*/
|
|
60958
|
+
body: CanvasExecuteInput;
|
|
60959
|
+
path: {
|
|
60960
|
+
/**
|
|
60961
|
+
* Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
|
|
60962
|
+
*/
|
|
60963
|
+
canvas_id: string;
|
|
60964
|
+
};
|
|
60965
|
+
query?: never;
|
|
60966
|
+
url: '/canvas/v1/canvases/{canvas_id}:execute';
|
|
60967
|
+
};
|
|
60968
|
+
export type CanvasExecuteErrors = {
|
|
60969
|
+
/**
|
|
60970
|
+
* INVALID_PARAMS: script and edit_id are not exclusive or fields violate constraints; correct the request. SCRIPT_ERROR, SCRIPT_LIMIT or OPS_REJECTED: execution failed and all writes rolled back; patch the saved source with details.edit_id and edits, using line, column or rejection if supplied. EDIT_EXPIRED: edit_id is older than ten minutes; submit a corrected new script.
|
|
60971
|
+
*/
|
|
60972
|
+
400: CanvasCanvasError;
|
|
60973
|
+
/**
|
|
60974
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
60975
|
+
*/
|
|
60976
|
+
401: CanvasCanvasError;
|
|
60977
|
+
/**
|
|
60978
|
+
* The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
|
|
60979
|
+
*/
|
|
60980
|
+
403: CanvasCanvasError;
|
|
60981
|
+
/**
|
|
60982
|
+
* CANVAS_NOT_FOUND means the canvas is missing, deleted or outside your organization; select an id from list. NODE_NOT_FOUND means a script targets a missing node; retrieve current frames or nodes and correct the node reference before retrying.
|
|
60983
|
+
*/
|
|
60984
|
+
404: CanvasCanvasError;
|
|
60985
|
+
/**
|
|
60986
|
+
* REVISION_CONFLICT means expected_version differs from the current revision in error.details.version; retrieve the latest canvas, merge concurrent changes and retry with that version.
|
|
60987
|
+
*/
|
|
60988
|
+
409: CanvasCanvasError;
|
|
60989
|
+
/**
|
|
60990
|
+
* CANVAS_BUSY means the same canvas has more than four calls queued; wait for pending work to finish before retrying.
|
|
60991
|
+
*/
|
|
60992
|
+
429: CanvasCanvasError;
|
|
60993
|
+
/**
|
|
60994
|
+
* INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
|
|
60995
|
+
*/
|
|
60996
|
+
500: CanvasCanvasError;
|
|
60997
|
+
};
|
|
60998
|
+
export type CanvasExecuteError = CanvasExecuteErrors[keyof CanvasExecuteErrors];
|
|
60999
|
+
export type CanvasExecuteResponses = {
|
|
61000
|
+
/**
|
|
61001
|
+
* Committed revision, operation results and viewer URL; screenshots contains node ids to pass to images.list.
|
|
61002
|
+
*/
|
|
61003
|
+
200: CanvasExecuteResult;
|
|
61004
|
+
};
|
|
61005
|
+
export type CanvasExecuteResponse = CanvasExecuteResponses[keyof CanvasExecuteResponses];
|
|
60143
61006
|
export type DatabaseListDatabasesData = {
|
|
60144
61007
|
body?: never;
|
|
60145
61008
|
path?: never;
|