@deepraxis/sdk 0.1.1-dev.1046919 → 0.1.1-dev.11a1f3c

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.
@@ -5660,7 +5660,7 @@ export type AgentManaged251 = unknown & {
5660
5660
  */
5661
5661
  behavior: 'allow';
5662
5662
  /**
5663
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
5663
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
5664
5664
  */
5665
5665
  destination: 'agent' | 'session';
5666
5666
  /**
@@ -6047,7 +6047,7 @@ export type AgentSseEvent = ({
6047
6047
  };
6048
6048
  } | {
6049
6049
  /**
6050
- * Always `agent.thread_context_compacting`. SSE event name of this frame; its data is a agent.thread_context_compacting payload. Context compaction started; compaction_id identifies it and trigger is manual or auto.
6050
+ * Always `agent.thread_context_compacting`. SSE event name of this frame; its data is a agent.thread_context_compacting payload. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle.
6051
6051
  */
6052
6052
  event?: 'agent.thread_context_compacting';
6053
6053
  /**
@@ -6059,7 +6059,7 @@ export type AgentSseEvent = ({
6059
6059
  */
6060
6060
  id: string;
6061
6061
  /**
6062
- * Always `agent.thread_context_compacting`. Context compaction started; compaction_id identifies it and trigger is manual or auto.
6062
+ * Always `agent.thread_context_compacting`. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle.
6063
6063
  */
6064
6064
  type: 'agent.thread_context_compacting';
6065
6065
  /**
@@ -6075,9 +6075,9 @@ export type AgentSseEvent = ({
6075
6075
  */
6076
6076
  compaction_id: string;
6077
6077
  /**
6078
- * Whether a caller requested compaction or the session started it automatically.
6078
+ * Whether a caller requested compaction, the session reached its context threshold, or the session compacted while idle.
6079
6079
  */
6080
- trigger: 'manual' | 'auto';
6080
+ trigger: 'manual' | 'auto' | 'idle';
6081
6081
  };
6082
6082
  } | {
6083
6083
  /**
@@ -6425,7 +6425,7 @@ export type AgentSseEvent = ({
6425
6425
  */
6426
6426
  behavior: 'allow';
6427
6427
  /**
6428
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
6428
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
6429
6429
  */
6430
6430
  destination: 'agent' | 'session';
6431
6431
  /**
@@ -6593,7 +6593,7 @@ export type AgentSseEvent = ({
6593
6593
  */
6594
6594
  behavior: 'allow';
6595
6595
  /**
6596
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
6596
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
6597
6597
  */
6598
6598
  destination: 'agent' | 'session';
6599
6599
  /**
@@ -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' | 'folder' | 'knowledge';
8617
+ type: 'database' | 'files' | 'knowledge' | 'models';
8618
8618
  /**
8619
- * Resource ID.
8619
+ * Database or knowledge base ID; * for files and models.
8620
8620
  */
8621
8621
  id: string;
8622
8622
  };
8623
8623
  /**
8624
- * Access level.
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' | 'folder' | 'knowledge';
8644
+ type: 'database' | 'files' | 'knowledge' | 'models';
8641
8645
  /**
8642
- * Resource ID in your account.
8646
+ * Database or knowledge base ID in your organization; * for files and models.
8643
8647
  */
8644
8648
  id: string;
8645
8649
  };
8646
8650
  /**
8647
- * Access level.
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
- * Model identifier and configuration of the agent.
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
  /**
@@ -19419,7 +19659,7 @@ export type AgentSseData = {
19419
19659
  */
19420
19660
  id: string;
19421
19661
  /**
19422
- * Always `agent.thread_context_compacting`. Context compaction started; compaction_id identifies it and trigger is manual or auto.
19662
+ * Always `agent.thread_context_compacting`. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle.
19423
19663
  */
19424
19664
  type: 'agent.thread_context_compacting';
19425
19665
  /**
@@ -19435,9 +19675,9 @@ export type AgentSseData = {
19435
19675
  */
19436
19676
  compaction_id: string;
19437
19677
  /**
19438
- * Whether a caller requested compaction or the session started it automatically.
19678
+ * Whether a caller requested compaction, the session reached its context threshold, or the session compacted while idle.
19439
19679
  */
19440
- trigger: 'manual' | 'auto';
19680
+ trigger: 'manual' | 'auto' | 'idle';
19441
19681
  } | {
19442
19682
  /**
19443
19683
  * Unique identifier for this event.
@@ -19713,7 +19953,7 @@ export type AgentSseData = {
19713
19953
  */
19714
19954
  behavior: 'allow';
19715
19955
  /**
19716
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
19956
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
19717
19957
  */
19718
19958
  destination: 'agent' | 'session';
19719
19959
  /**
@@ -19863,7 +20103,7 @@ export type AgentSseData = {
19863
20103
  */
19864
20104
  behavior: 'allow';
19865
20105
  /**
19866
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
20106
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
19867
20107
  */
19868
20108
  destination: 'agent' | 'session';
19869
20109
  /**
@@ -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: null | AgentManaged39;
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
  */
@@ -28028,7 +28328,7 @@ export type ApplyAgentVersionResponses = {
28028
28328
  */
28029
28329
  note: string | null;
28030
28330
  /**
28031
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
28331
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
28032
28332
  */
28033
28333
  bindings: Array<{
28034
28334
  /**
@@ -28070,9 +28370,9 @@ export type ApplyAgentVersionResponses = {
28070
28370
  enabled?: boolean;
28071
28371
  }>;
28072
28372
  /**
28073
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
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: '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
  */
@@ -28423,6 +28723,10 @@ export type ApplyAgentVersionResponses = {
28423
28723
  */
28424
28724
  hooks?: Array<string>;
28425
28725
  };
28726
+ /**
28727
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
28728
+ */
28729
+ idleCompaction?: boolean;
28426
28730
  } | null;
28427
28731
  /**
28428
28732
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -28450,7 +28754,7 @@ export type ApplyAgentVersionResponses = {
28450
28754
  */
28451
28755
  environment_id?: string | null;
28452
28756
  /**
28453
- * Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents only. 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.
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.
28454
28758
  */
28455
28759
  vault_ids?: Array<string>;
28456
28760
  /**
@@ -28464,7 +28768,7 @@ export type UnarchiveAgentData = {
28464
28768
  body?: never;
28465
28769
  path: {
28466
28770
  /**
28467
- * 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_….
28468
28772
  */
28469
28773
  agent_id: string;
28470
28774
  };
@@ -28593,7 +28897,7 @@ export type UnarchiveAgentResponses = {
28593
28897
  /**
28594
28898
  * Model identifier and configuration.
28595
28899
  */
28596
- model: {
28900
+ model?: {
28597
28901
  /**
28598
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.
28599
28903
  */
@@ -28652,7 +28956,7 @@ export type UnarchiveAgentResponses = {
28652
28956
  /**
28653
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.
28654
28958
  */
28655
- multiagent: null | {
28959
+ multiagent?: null | {
28656
28960
  /**
28657
28961
  * Agents the coordinator may spawn as session threads, each resolved to a specific
28658
28962
  * version.
@@ -29216,7 +29520,7 @@ export type UnarchiveAgentResponses = {
29216
29520
  */
29217
29521
  note: string | null;
29218
29522
  /**
29219
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
29523
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
29220
29524
  */
29221
29525
  bindings: Array<{
29222
29526
  /**
@@ -29258,9 +29562,9 @@ export type UnarchiveAgentResponses = {
29258
29562
  enabled?: boolean;
29259
29563
  }>;
29260
29564
  /**
29261
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
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.
29262
29566
  */
29263
- kind: 'personal' | 'service';
29567
+ kind: 'general' | 'personal' | 'service' | 'assume';
29264
29568
  /**
29265
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.
29266
29570
  */
@@ -29611,6 +29915,10 @@ export type UnarchiveAgentResponses = {
29611
29915
  */
29612
29916
  hooks?: Array<string>;
29613
29917
  };
29918
+ /**
29919
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
29920
+ */
29921
+ idleCompaction?: boolean;
29614
29922
  } | null;
29615
29923
  /**
29616
29924
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -29638,7 +29946,7 @@ export type UnarchiveAgentResponses = {
29638
29946
  */
29639
29947
  environment_id?: string | null;
29640
29948
  /**
29641
- * Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents only. 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.
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.
29642
29950
  */
29643
29951
  vault_ids?: Array<string>;
29644
29952
  /**
@@ -29772,7 +30080,7 @@ export type ListCustomersData = {
29772
30080
  body?: never;
29773
30081
  path: {
29774
30082
  /**
29775
- * 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_….
29776
30084
  */
29777
30085
  agent_id: string;
29778
30086
  };
@@ -29881,7 +30189,7 @@ export type DeleteCustomerData = {
29881
30189
  body?: never;
29882
30190
  path: {
29883
30191
  /**
29884
- * 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_….
29885
30193
  */
29886
30194
  agent_id: string;
29887
30195
  /**
@@ -29936,7 +30244,7 @@ export type GetCustomerData = {
29936
30244
  body?: never;
29937
30245
  path: {
29938
30246
  /**
29939
- * 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_….
29940
30248
  */
29941
30249
  agent_id: string;
29942
30250
  /**
@@ -30040,7 +30348,7 @@ export type GetCustomerDeletionData = {
30040
30348
  body?: never;
30041
30349
  path: {
30042
30350
  /**
30043
- * 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_….
30044
30352
  */
30045
30353
  agent_id: string;
30046
30354
  /**
@@ -30127,7 +30435,7 @@ export type BlockCustomerData = {
30127
30435
  body?: never;
30128
30436
  path: {
30129
30437
  /**
30130
- * 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_….
30131
30439
  */
30132
30440
  agent_id: string;
30133
30441
  /**
@@ -30210,7 +30518,7 @@ export type UnblockCustomerData = {
30210
30518
  body?: never;
30211
30519
  path: {
30212
30520
  /**
30213
- * 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_….
30214
30522
  */
30215
30523
  agent_id: string;
30216
30524
  /**
@@ -30289,7 +30597,7 @@ export type RevokeCustomerTokensData = {
30289
30597
  body?: never;
30290
30598
  path: {
30291
30599
  /**
30292
- * 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_….
30293
30601
  */
30294
30602
  agent_id: string;
30295
30603
  /**
@@ -30335,7 +30643,7 @@ export type GetAgentAppearanceData = {
30335
30643
  body?: never;
30336
30644
  path: {
30337
30645
  /**
30338
- * 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_….
30339
30647
  */
30340
30648
  agent_id: string;
30341
30649
  };
@@ -30646,7 +30954,7 @@ export type CreateCustomerGrantCodeData = {
30646
30954
  };
30647
30955
  path: {
30648
30956
  /**
30649
- * 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_….
30650
30958
  */
30651
30959
  agent_id: string;
30652
30960
  };
@@ -30722,7 +31030,7 @@ export type CreateCustomerAccessTokenData = {
30722
31030
  };
30723
31031
  path: {
30724
31032
  /**
30725
- * 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_….
30726
31034
  */
30727
31035
  agent_id: string;
30728
31036
  };
@@ -30796,7 +31104,7 @@ export type RenewCustomerAccessTokenData = {
30796
31104
  body?: never;
30797
31105
  path: {
30798
31106
  /**
30799
- * 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_….
30800
31108
  */
30801
31109
  agent_id: string;
30802
31110
  };
@@ -30858,7 +31166,7 @@ export type DeleteCurrentCustomerAccessTokenData = {
30858
31166
  body?: never;
30859
31167
  path: {
30860
31168
  /**
30861
- * 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_….
30862
31170
  */
30863
31171
  agent_id: string;
30864
31172
  };
@@ -36602,9 +36910,9 @@ export type ListSessionCompactionsResponses = {
36602
36910
  */
36603
36911
  status: 'queued' | 'running';
36604
36912
  /**
36605
- * Whether a caller requested compaction or the session started it automatically.
36913
+ * Whether a caller requested compaction, the context reached its threshold, or the session compacted while idle.
36606
36914
  */
36607
- trigger: 'manual' | 'auto';
36915
+ trigger: 'manual' | 'auto' | 'idle';
36608
36916
  } | null;
36609
36917
  /**
36610
36918
  * Items of this page, in the order requested by the call.
@@ -36625,7 +36933,7 @@ export type ListSessionCompactionsResponses = {
36625
36933
  /**
36626
36934
  * What started the compaction.
36627
36935
  */
36628
- trigger: 'auto' | 'manual' | 'model_downshift';
36936
+ trigger: 'auto' | 'manual' | 'model_downshift' | 'idle';
36629
36937
  /**
36630
36938
  * Final outcome of the compaction.
36631
36939
  */
@@ -45144,15 +45452,15 @@ export type AgentsListData = {
45144
45452
  limit?: number;
45145
45453
  page?: null | string;
45146
45454
  /**
45147
- * Personal agents use a durable computer; service agents use a clean environment per session.
45455
+ * 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.
45148
45456
  */
45149
- kind?: 'personal' | 'service';
45457
+ kind?: 'general' | 'personal' | 'service' | 'assume';
45150
45458
  };
45151
45459
  url: '/agent/v1/agents';
45152
45460
  };
45153
45461
  export type AgentsListErrors = {
45154
45462
  /**
45155
- * include_archived is not true or false, kind is not personal or service, 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.
45463
+ * 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.
45156
45464
  */
45157
45465
  400: AgentError;
45158
45466
  /**
@@ -45198,7 +45506,7 @@ export type AgentsListResponses = {
45198
45506
  /**
45199
45507
  * Model identifier and configuration.
45200
45508
  */
45201
- model: {
45509
+ model?: {
45202
45510
  /**
45203
45511
  * 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.
45204
45512
  */
@@ -45232,7 +45540,7 @@ export type AgentsListResponses = {
45232
45540
  /**
45233
45541
  * 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.
45234
45542
  */
45235
- multiagent: null | AgentManaged39;
45543
+ multiagent?: null | AgentManaged39;
45236
45544
  /**
45237
45545
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
45238
45546
  */
@@ -45296,7 +45604,7 @@ export type AgentsListResponses = {
45296
45604
  */
45297
45605
  note: string | null;
45298
45606
  /**
45299
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
45607
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
45300
45608
  */
45301
45609
  bindings: Array<{
45302
45610
  /**
@@ -45338,9 +45646,9 @@ export type AgentsListResponses = {
45338
45646
  enabled?: boolean;
45339
45647
  }>;
45340
45648
  /**
45341
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
45649
+ * 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.
45342
45650
  */
45343
- kind: 'personal' | 'service';
45651
+ kind: 'general' | 'personal' | 'service' | 'assume';
45344
45652
  /**
45345
45653
  * 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.
45346
45654
  */
@@ -45691,6 +45999,10 @@ export type AgentsListResponses = {
45691
45999
  */
45692
46000
  hooks?: Array<string>;
45693
46001
  };
46002
+ /**
46003
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
46004
+ */
46005
+ idleCompaction?: boolean;
45694
46006
  } | null;
45695
46007
  /**
45696
46008
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -45718,7 +46030,7 @@ export type AgentsListResponses = {
45718
46030
  */
45719
46031
  environment_id?: string | null;
45720
46032
  /**
45721
- * Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents only. 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.
46033
+ * 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.
45722
46034
  */
45723
46035
  vault_ids?: Array<string>;
45724
46036
  /**
@@ -45736,9 +46048,9 @@ export type AgentsListResponse = AgentsListResponses[keyof AgentsListResponses];
45736
46048
  export type AgentsCreateData = {
45737
46049
  body: {
45738
46050
  /**
45739
- * 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.
46051
+ * 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.
45740
46052
  */
45741
- model: string | {
46053
+ model?: string | {
45742
46054
  /**
45743
46055
  * 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.
45744
46056
  */
@@ -45806,7 +46118,7 @@ export type AgentsCreateData = {
45806
46118
  */
45807
46119
  tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
45808
46120
  /**
45809
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
46121
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
45810
46122
  */
45811
46123
  bindings?: Array<{
45812
46124
  /**
@@ -45848,9 +46160,9 @@ export type AgentsCreateData = {
45848
46160
  enabled?: boolean;
45849
46161
  }>;
45850
46162
  /**
45851
- * Immutable agent kind. personal requires computer_id; service cannot bind a computer. Omit on create to infer from computer_id. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
46163
+ * 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.
45852
46164
  */
45853
- kind?: 'personal' | 'service';
46165
+ kind?: 'general' | 'personal' | 'service' | 'assume';
45854
46166
  /**
45855
46167
  * 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.
45856
46168
  */
@@ -46201,6 +46513,10 @@ export type AgentsCreateData = {
46201
46513
  */
46202
46514
  hooks?: Array<string>;
46203
46515
  };
46516
+ /**
46517
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
46518
+ */
46519
+ idleCompaction?: boolean;
46204
46520
  } | null;
46205
46521
  /**
46206
46522
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -46212,7 +46528,7 @@ export type AgentsCreateData = {
46212
46528
  allowed: Array<string>;
46213
46529
  };
46214
46530
  /**
46215
- * Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. Both personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it.
46531
+ * Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it.
46216
46532
  */
46217
46533
  avatar?: string | null;
46218
46534
  /**
@@ -46234,7 +46550,7 @@ export type AgentsCreateData = {
46234
46550
  };
46235
46551
  export type AgentsCreateErrors = {
46236
46552
  /**
46237
- * 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.
46553
+ * 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.
46238
46554
  */
46239
46555
  400: AgentError;
46240
46556
  /**
@@ -46280,7 +46596,7 @@ export type AgentsCreateResponses = {
46280
46596
  /**
46281
46597
  * Model identifier and configuration.
46282
46598
  */
46283
- model: {
46599
+ model?: {
46284
46600
  /**
46285
46601
  * 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.
46286
46602
  */
@@ -46314,7 +46630,7 @@ export type AgentsCreateResponses = {
46314
46630
  /**
46315
46631
  * 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.
46316
46632
  */
46317
- multiagent: null | AgentManaged39;
46633
+ multiagent?: null | AgentManaged39;
46318
46634
  /**
46319
46635
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
46320
46636
  */
@@ -46378,7 +46694,7 @@ export type AgentsCreateResponses = {
46378
46694
  */
46379
46695
  note: string | null;
46380
46696
  /**
46381
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
46697
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
46382
46698
  */
46383
46699
  bindings: Array<{
46384
46700
  /**
@@ -46420,9 +46736,9 @@ export type AgentsCreateResponses = {
46420
46736
  enabled?: boolean;
46421
46737
  }>;
46422
46738
  /**
46423
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
46739
+ * 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.
46424
46740
  */
46425
- kind: 'personal' | 'service';
46741
+ kind: 'general' | 'personal' | 'service' | 'assume';
46426
46742
  /**
46427
46743
  * 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.
46428
46744
  */
@@ -46773,6 +47089,10 @@ export type AgentsCreateResponses = {
46773
47089
  */
46774
47090
  hooks?: Array<string>;
46775
47091
  };
47092
+ /**
47093
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
47094
+ */
47095
+ idleCompaction?: boolean;
46776
47096
  } | null;
46777
47097
  /**
46778
47098
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -46800,7 +47120,7 @@ export type AgentsCreateResponses = {
46800
47120
  */
46801
47121
  environment_id?: string | null;
46802
47122
  /**
46803
- * Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents only. 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.
47123
+ * 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.
46804
47124
  */
46805
47125
  vault_ids?: Array<string>;
46806
47126
  /**
@@ -46814,7 +47134,7 @@ export type AgentsRetrieveData = {
46814
47134
  body?: never;
46815
47135
  path: {
46816
47136
  /**
46817
- * 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.
47137
+ * 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_….
46818
47138
  */
46819
47139
  agent_id: string;
46820
47140
  };
@@ -46875,7 +47195,7 @@ export type AgentsRetrieveResponses = {
46875
47195
  /**
46876
47196
  * Model identifier and configuration.
46877
47197
  */
46878
- model: {
47198
+ model?: {
46879
47199
  /**
46880
47200
  * 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.
46881
47201
  */
@@ -46909,7 +47229,7 @@ export type AgentsRetrieveResponses = {
46909
47229
  /**
46910
47230
  * 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.
46911
47231
  */
46912
- multiagent: null | AgentManaged39;
47232
+ multiagent?: null | AgentManaged39;
46913
47233
  /**
46914
47234
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
46915
47235
  */
@@ -46977,7 +47297,7 @@ export type AgentsRetrieveResponses = {
46977
47297
  */
46978
47298
  note: string | null;
46979
47299
  /**
46980
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
47300
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
46981
47301
  */
46982
47302
  bindings: Array<{
46983
47303
  /**
@@ -47019,9 +47339,9 @@ export type AgentsRetrieveResponses = {
47019
47339
  enabled?: boolean;
47020
47340
  }>;
47021
47341
  /**
47022
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
47342
+ * 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.
47023
47343
  */
47024
- kind: 'personal' | 'service';
47344
+ kind: 'general' | 'personal' | 'service' | 'assume';
47025
47345
  /**
47026
47346
  * 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.
47027
47347
  */
@@ -47372,6 +47692,10 @@ export type AgentsRetrieveResponses = {
47372
47692
  */
47373
47693
  hooks?: Array<string>;
47374
47694
  };
47695
+ /**
47696
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
47697
+ */
47698
+ idleCompaction?: boolean;
47375
47699
  } | null;
47376
47700
  /**
47377
47701
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -47399,7 +47723,7 @@ export type AgentsRetrieveResponses = {
47399
47723
  */
47400
47724
  environment_id?: string | null;
47401
47725
  /**
47402
- * Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents only. 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.
47726
+ * 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.
47403
47727
  */
47404
47728
  vault_ids?: Array<string>;
47405
47729
  /**
@@ -47426,7 +47750,7 @@ export type AgentsUpdateData = {
47426
47750
  */
47427
47751
  metadata?: null | AgentManaged58Writable;
47428
47752
  /**
47429
- * 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.
47753
+ * 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.
47430
47754
  */
47431
47755
  model?: string | {
47432
47756
  /**
@@ -47538,9 +47862,9 @@ export type AgentsUpdateData = {
47538
47862
  enabled?: boolean;
47539
47863
  }> | null;
47540
47864
  /**
47541
- * Immutable agent kind. personal requires computer_id; service cannot bind a computer. Omit on create to infer from computer_id. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
47865
+ * 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.
47542
47866
  */
47543
- kind?: 'personal' | 'service';
47867
+ kind?: 'general' | 'personal' | 'service' | 'assume';
47544
47868
  /**
47545
47869
  * 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.
47546
47870
  */
@@ -47891,6 +48215,10 @@ export type AgentsUpdateData = {
47891
48215
  */
47892
48216
  hooks?: Array<string>;
47893
48217
  };
48218
+ /**
48219
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
48220
+ */
48221
+ idleCompaction?: boolean;
47894
48222
  } | null;
47895
48223
  /**
47896
48224
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -47902,7 +48230,7 @@ export type AgentsUpdateData = {
47902
48230
  allowed: Array<string>;
47903
48231
  };
47904
48232
  /**
47905
- * Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. Both personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it.
48233
+ * Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it.
47906
48234
  */
47907
48235
  avatar?: string | null;
47908
48236
  /**
@@ -47920,7 +48248,7 @@ export type AgentsUpdateData = {
47920
48248
  };
47921
48249
  path: {
47922
48250
  /**
47923
- * 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.
48251
+ * 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_….
47924
48252
  */
47925
48253
  agent_id: string;
47926
48254
  };
@@ -47979,7 +48307,7 @@ export type AgentsUpdateResponses = {
47979
48307
  /**
47980
48308
  * Model identifier and configuration.
47981
48309
  */
47982
- model: {
48310
+ model?: {
47983
48311
  /**
47984
48312
  * 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.
47985
48313
  */
@@ -48013,7 +48341,7 @@ export type AgentsUpdateResponses = {
48013
48341
  /**
48014
48342
  * 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.
48015
48343
  */
48016
- multiagent: null | AgentManaged39;
48344
+ multiagent?: null | AgentManaged39;
48017
48345
  /**
48018
48346
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
48019
48347
  */
@@ -48081,7 +48409,7 @@ export type AgentsUpdateResponses = {
48081
48409
  */
48082
48410
  note: string | null;
48083
48411
  /**
48084
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
48412
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
48085
48413
  */
48086
48414
  bindings: Array<{
48087
48415
  /**
@@ -48123,9 +48451,9 @@ export type AgentsUpdateResponses = {
48123
48451
  enabled?: boolean;
48124
48452
  }>;
48125
48453
  /**
48126
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
48454
+ * 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.
48127
48455
  */
48128
- kind: 'personal' | 'service';
48456
+ kind: 'general' | 'personal' | 'service' | 'assume';
48129
48457
  /**
48130
48458
  * 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.
48131
48459
  */
@@ -48476,6 +48804,10 @@ export type AgentsUpdateResponses = {
48476
48804
  */
48477
48805
  hooks?: Array<string>;
48478
48806
  };
48807
+ /**
48808
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
48809
+ */
48810
+ idleCompaction?: boolean;
48479
48811
  } | null;
48480
48812
  /**
48481
48813
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -48503,7 +48835,7 @@ export type AgentsUpdateResponses = {
48503
48835
  */
48504
48836
  environment_id?: string | null;
48505
48837
  /**
48506
- * Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents only. 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.
48838
+ * 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.
48507
48839
  */
48508
48840
  vault_ids?: Array<string>;
48509
48841
  /**
@@ -48517,7 +48849,7 @@ export type AgentsArchiveData = {
48517
48849
  body?: never;
48518
48850
  path: {
48519
48851
  /**
48520
- * 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.
48852
+ * 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_….
48521
48853
  */
48522
48854
  agent_id: string;
48523
48855
  };
@@ -48568,7 +48900,7 @@ export type AgentsArchiveResponses = {
48568
48900
  /**
48569
48901
  * Model identifier and configuration.
48570
48902
  */
48571
- model: {
48903
+ model?: {
48572
48904
  /**
48573
48905
  * 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.
48574
48906
  */
@@ -48602,7 +48934,7 @@ export type AgentsArchiveResponses = {
48602
48934
  /**
48603
48935
  * 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.
48604
48936
  */
48605
- multiagent: null | AgentManaged39;
48937
+ multiagent?: null | AgentManaged39;
48606
48938
  /**
48607
48939
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
48608
48940
  */
@@ -48666,7 +48998,7 @@ export type AgentsArchiveResponses = {
48666
48998
  */
48667
48999
  note: string | null;
48668
49000
  /**
48669
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
49001
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
48670
49002
  */
48671
49003
  bindings: Array<{
48672
49004
  /**
@@ -48708,9 +49040,9 @@ export type AgentsArchiveResponses = {
48708
49040
  enabled?: boolean;
48709
49041
  }>;
48710
49042
  /**
48711
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
49043
+ * 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.
48712
49044
  */
48713
- kind: 'personal' | 'service';
49045
+ kind: 'general' | 'personal' | 'service' | 'assume';
48714
49046
  /**
48715
49047
  * 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.
48716
49048
  */
@@ -49061,6 +49393,10 @@ export type AgentsArchiveResponses = {
49061
49393
  */
49062
49394
  hooks?: Array<string>;
49063
49395
  };
49396
+ /**
49397
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
49398
+ */
49399
+ idleCompaction?: boolean;
49064
49400
  } | null;
49065
49401
  /**
49066
49402
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -49088,7 +49424,7 @@ export type AgentsArchiveResponses = {
49088
49424
  */
49089
49425
  environment_id?: string | null;
49090
49426
  /**
49091
- * Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents only. 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.
49427
+ * 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.
49092
49428
  */
49093
49429
  vault_ids?: Array<string>;
49094
49430
  /**
@@ -49102,7 +49438,7 @@ export type AgentsVersionsListData = {
49102
49438
  body?: never;
49103
49439
  path: {
49104
49440
  /**
49105
- * 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.
49441
+ * 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_….
49106
49442
  */
49107
49443
  agent_id: string;
49108
49444
  };
@@ -49167,7 +49503,7 @@ export type AgentsVersionsListResponses = {
49167
49503
  /**
49168
49504
  * Model identifier and configuration.
49169
49505
  */
49170
- model: {
49506
+ model?: {
49171
49507
  /**
49172
49508
  * 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.
49173
49509
  */
@@ -49201,7 +49537,7 @@ export type AgentsVersionsListResponses = {
49201
49537
  /**
49202
49538
  * 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.
49203
49539
  */
49204
- multiagent: null | AgentManaged39;
49540
+ multiagent?: null | AgentManaged39;
49205
49541
  /**
49206
49542
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
49207
49543
  */
@@ -49269,7 +49605,7 @@ export type AgentsVersionsListResponses = {
49269
49605
  */
49270
49606
  note: string | null;
49271
49607
  /**
49272
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
49608
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
49273
49609
  */
49274
49610
  bindings: Array<{
49275
49611
  /**
@@ -49311,9 +49647,9 @@ export type AgentsVersionsListResponses = {
49311
49647
  enabled?: boolean;
49312
49648
  }>;
49313
49649
  /**
49314
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
49650
+ * 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.
49315
49651
  */
49316
- kind: 'personal' | 'service';
49652
+ kind: 'general' | 'personal' | 'service' | 'assume';
49317
49653
  /**
49318
49654
  * 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.
49319
49655
  */
@@ -49664,6 +50000,10 @@ export type AgentsVersionsListResponses = {
49664
50000
  */
49665
50001
  hooks?: Array<string>;
49666
50002
  };
50003
+ /**
50004
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
50005
+ */
50006
+ idleCompaction?: boolean;
49667
50007
  } | null;
49668
50008
  /**
49669
50009
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -49691,7 +50031,7 @@ export type AgentsVersionsListResponses = {
49691
50031
  */
49692
50032
  environment_id?: string | null;
49693
50033
  /**
49694
- * Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents only. 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.
50034
+ * 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.
49695
50035
  */
49696
50036
  vault_ids?: Array<string>;
49697
50037
  /**
@@ -50098,7 +50438,7 @@ export type SessionsCreateData = {
50098
50438
  };
50099
50439
  export type SessionsCreateErrors = {
50100
50440
  /**
50101
- * 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.
50441
+ * 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).
50102
50442
  */
50103
50443
  400: AgentError;
50104
50444
  /**
@@ -50907,7 +51247,7 @@ export type SessionsEventsListResponses = {
50907
51247
  */
50908
51248
  behavior: 'allow';
50909
51249
  /**
50910
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
51250
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
50911
51251
  */
50912
51252
  destination: 'agent' | 'session';
50913
51253
  /**
@@ -51045,7 +51385,7 @@ export type SessionsEventsListResponses = {
51045
51385
  */
51046
51386
  behavior: 'allow';
51047
51387
  /**
51048
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
51388
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
51049
51389
  */
51050
51390
  destination: 'agent' | 'session';
51051
51391
  /**
@@ -52120,7 +52460,7 @@ export type SessionsThreadsEventsListResponses = {
52120
52460
  */
52121
52461
  behavior: 'allow';
52122
52462
  /**
52123
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
52463
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
52124
52464
  */
52125
52465
  destination: 'agent' | 'session';
52126
52466
  /**
@@ -52258,7 +52598,7 @@ export type SessionsThreadsEventsListResponses = {
52258
52598
  */
52259
52599
  behavior: 'allow';
52260
52600
  /**
52261
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
52601
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
52262
52602
  */
52263
52603
  destination: 'agent' | 'session';
52264
52604
  /**
@@ -53265,11 +53605,11 @@ export type DeploymentsListResponses = {
53265
53605
  */
53266
53606
  budget?: null | AgentManaged76;
53267
53607
  /**
53268
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
53608
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
53269
53609
  */
53270
53610
  target: {
53271
53611
  /**
53272
- * environment uses an environment recipe; computer uses the personal agent computer.
53612
+ * environment uses an environment recipe; computer uses the agent computer.
53273
53613
  */
53274
53614
  type: 'environment' | 'computer';
53275
53615
  };
@@ -53375,11 +53715,11 @@ export type DeploymentsCreateData = {
53375
53715
  */
53376
53716
  vault_ids?: Array<string>;
53377
53717
  /**
53378
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
53718
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
53379
53719
  */
53380
53720
  target?: {
53381
53721
  /**
53382
- * environment uses an environment recipe; computer uses the personal agent computer.
53722
+ * environment uses an environment recipe; computer uses the agent computer.
53383
53723
  */
53384
53724
  type: 'environment' | 'computer';
53385
53725
  };
@@ -53535,11 +53875,11 @@ export type DeploymentsCreateResponses = {
53535
53875
  */
53536
53876
  budget?: null | AgentManaged76;
53537
53877
  /**
53538
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
53878
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
53539
53879
  */
53540
53880
  target: {
53541
53881
  /**
53542
- * environment uses an environment recipe; computer uses the personal agent computer.
53882
+ * environment uses an environment recipe; computer uses the agent computer.
53543
53883
  */
53544
53884
  type: 'environment' | 'computer';
53545
53885
  };
@@ -53704,11 +54044,11 @@ export type DeploymentsRetrieveResponses = {
53704
54044
  */
53705
54045
  budget?: null | AgentManaged76;
53706
54046
  /**
53707
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
54047
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
53708
54048
  */
53709
54049
  target: {
53710
54050
  /**
53711
- * environment uses an environment recipe; computer uses the personal agent computer.
54051
+ * environment uses an environment recipe; computer uses the agent computer.
53712
54052
  */
53713
54053
  type: 'environment' | 'computer';
53714
54054
  };
@@ -53811,11 +54151,11 @@ export type DeploymentsUpdateData = {
53811
54151
  */
53812
54152
  vault_ids?: null | Array<string>;
53813
54153
  /**
53814
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
54154
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
53815
54155
  */
53816
54156
  target?: {
53817
54157
  /**
53818
- * environment uses an environment recipe; computer uses the personal agent computer.
54158
+ * environment uses an environment recipe; computer uses the agent computer.
53819
54159
  */
53820
54160
  type: 'environment' | 'computer';
53821
54161
  };
@@ -53984,11 +54324,11 @@ export type DeploymentsUpdateResponses = {
53984
54324
  */
53985
54325
  budget?: null | AgentManaged76;
53986
54326
  /**
53987
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
54327
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
53988
54328
  */
53989
54329
  target: {
53990
54330
  /**
53991
- * environment uses an environment recipe; computer uses the personal agent computer.
54331
+ * environment uses an environment recipe; computer uses the agent computer.
53992
54332
  */
53993
54333
  type: 'environment' | 'computer';
53994
54334
  };
@@ -54153,11 +54493,11 @@ export type DeploymentsArchiveResponses = {
54153
54493
  */
54154
54494
  budget?: null | AgentManaged76;
54155
54495
  /**
54156
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
54496
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
54157
54497
  */
54158
54498
  target: {
54159
54499
  /**
54160
- * environment uses an environment recipe; computer uses the personal agent computer.
54500
+ * environment uses an environment recipe; computer uses the agent computer.
54161
54501
  */
54162
54502
  type: 'environment' | 'computer';
54163
54503
  };
@@ -54326,11 +54666,11 @@ export type DeploymentsPauseResponses = {
54326
54666
  */
54327
54667
  budget?: null | AgentManaged76;
54328
54668
  /**
54329
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
54669
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
54330
54670
  */
54331
54671
  target: {
54332
54672
  /**
54333
- * environment uses an environment recipe; computer uses the personal agent computer.
54673
+ * environment uses an environment recipe; computer uses the agent computer.
54334
54674
  */
54335
54675
  type: 'environment' | 'computer';
54336
54676
  };
@@ -54499,11 +54839,11 @@ export type DeploymentsUnpauseResponses = {
54499
54839
  */
54500
54840
  budget?: null | AgentManaged76;
54501
54841
  /**
54502
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
54842
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
54503
54843
  */
54504
54844
  target: {
54505
54845
  /**
54506
- * environment uses an environment recipe; computer uses the personal agent computer.
54846
+ * environment uses an environment recipe; computer uses the agent computer.
54507
54847
  */
54508
54848
  type: 'environment' | 'computer';
54509
54849
  };
@@ -60100,6 +60440,324 @@ export type AutomationHumanTasksDelegateResponses = {
60100
60440
  200: AutomationHumanTask;
60101
60441
  };
60102
60442
  export type AutomationHumanTasksDelegateResponse = AutomationHumanTasksDelegateResponses[keyof AutomationHumanTasksDelegateResponses];
60443
+ export type CanvasListCanvasesData = {
60444
+ body?: never;
60445
+ path?: never;
60446
+ query?: {
60447
+ /**
60448
+ * Maximum canvases to return per page, from 1 to 100; defaults to 50 when omitted.
60449
+ */
60450
+ limit?: number;
60451
+ /**
60452
+ * Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.
60453
+ */
60454
+ cursor?: string;
60455
+ };
60456
+ url: '/canvas/v1/canvases';
60457
+ };
60458
+ export type CanvasListCanvasesErrors = {
60459
+ /**
60460
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60461
+ */
60462
+ 400: CanvasCanvasError;
60463
+ /**
60464
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60465
+ */
60466
+ 401: CanvasCanvasError;
60467
+ /**
60468
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60469
+ */
60470
+ 403: CanvasCanvasError;
60471
+ /**
60472
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60473
+ */
60474
+ 500: CanvasCanvasError;
60475
+ };
60476
+ export type CanvasListCanvasesError = CanvasListCanvasesErrors[keyof CanvasListCanvasesErrors];
60477
+ export type CanvasListCanvasesResponses = {
60478
+ /**
60479
+ * One page of organization canvases, ordered by most recently updated first.
60480
+ */
60481
+ 200: CanvasCanvasPage;
60482
+ };
60483
+ export type CanvasListCanvasesResponse = CanvasListCanvasesResponses[keyof CanvasListCanvasesResponses];
60484
+ export type CanvasCreateCanvasData = {
60485
+ /**
60486
+ * Optional display name for the new canvas; omit the body or send an empty object to use Untitled.
60487
+ */
60488
+ body?: CanvasCreateCanvasInput;
60489
+ path?: never;
60490
+ query?: never;
60491
+ url: '/canvas/v1/canvases';
60492
+ };
60493
+ export type CanvasCreateCanvasErrors = {
60494
+ /**
60495
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60496
+ */
60497
+ 400: CanvasCanvasError;
60498
+ /**
60499
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60500
+ */
60501
+ 401: CanvasCanvasError;
60502
+ /**
60503
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60504
+ */
60505
+ 403: CanvasCanvasError;
60506
+ /**
60507
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60508
+ */
60509
+ 500: CanvasCanvasError;
60510
+ };
60511
+ export type CanvasCreateCanvasError = CanvasCreateCanvasErrors[keyof CanvasCreateCanvasErrors];
60512
+ export type CanvasCreateCanvasResponses = {
60513
+ /**
60514
+ * The newly created canvas; use id for API calls and viewer_url to watch it in Console.
60515
+ */
60516
+ 201: CanvasCanvas;
60517
+ };
60518
+ export type CanvasCreateCanvasResponse = CanvasCreateCanvasResponses[keyof CanvasCreateCanvasResponses];
60519
+ export type CanvasDeleteCanvasData = {
60520
+ body?: never;
60521
+ path: {
60522
+ /**
60523
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
60524
+ */
60525
+ canvas_id: string;
60526
+ };
60527
+ query?: never;
60528
+ url: '/canvas/v1/canvases/{canvas_id}';
60529
+ };
60530
+ export type CanvasDeleteCanvasErrors = {
60531
+ /**
60532
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60533
+ */
60534
+ 400: CanvasCanvasError;
60535
+ /**
60536
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60537
+ */
60538
+ 401: CanvasCanvasError;
60539
+ /**
60540
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60541
+ */
60542
+ 403: CanvasCanvasError;
60543
+ /**
60544
+ * 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.
60545
+ */
60546
+ 404: CanvasCanvasError;
60547
+ /**
60548
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60549
+ */
60550
+ 500: CanvasCanvasError;
60551
+ };
60552
+ export type CanvasDeleteCanvasError = CanvasDeleteCanvasErrors[keyof CanvasDeleteCanvasErrors];
60553
+ export type CanvasDeleteCanvasResponses = {
60554
+ /**
60555
+ * Confirmation that this canvas has been permanently deleted.
60556
+ */
60557
+ 200: CanvasDeletedCanvas;
60558
+ };
60559
+ export type CanvasDeleteCanvasResponse = CanvasDeleteCanvasResponses[keyof CanvasDeleteCanvasResponses];
60560
+ export type CanvasRetrieveCanvasData = {
60561
+ body?: never;
60562
+ path: {
60563
+ /**
60564
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
60565
+ */
60566
+ canvas_id: string;
60567
+ };
60568
+ query?: never;
60569
+ url: '/canvas/v1/canvases/{canvas_id}';
60570
+ };
60571
+ export type CanvasRetrieveCanvasErrors = {
60572
+ /**
60573
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60574
+ */
60575
+ 400: CanvasCanvasError;
60576
+ /**
60577
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60578
+ */
60579
+ 401: CanvasCanvasError;
60580
+ /**
60581
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60582
+ */
60583
+ 403: CanvasCanvasError;
60584
+ /**
60585
+ * 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.
60586
+ */
60587
+ 404: CanvasCanvasError;
60588
+ /**
60589
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60590
+ */
60591
+ 500: CanvasCanvasError;
60592
+ };
60593
+ export type CanvasRetrieveCanvasError = CanvasRetrieveCanvasErrors[keyof CanvasRetrieveCanvasErrors];
60594
+ export type CanvasRetrieveCanvasResponses = {
60595
+ /**
60596
+ * Current canvas metadata, top-level frame summaries and reusable components.
60597
+ */
60598
+ 200: CanvasCanvasDetail;
60599
+ };
60600
+ export type CanvasRetrieveCanvasResponse = CanvasRetrieveCanvasResponses[keyof CanvasRetrieveCanvasResponses];
60601
+ export type CanvasListNodesData = {
60602
+ body?: never;
60603
+ path: {
60604
+ /**
60605
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
60606
+ */
60607
+ canvas_id: string;
60608
+ };
60609
+ query: {
60610
+ /**
60611
+ * Comma-separated list of 1–100 node ids from retrieve or execute, or instance paths such as a/b; missing ids map to null.
60612
+ */
60613
+ ids: string;
60614
+ /**
60615
+ * 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.
60616
+ */
60617
+ depth?: number;
60618
+ };
60619
+ url: '/canvas/v1/canvases/{canvas_id}/nodes';
60620
+ };
60621
+ export type CanvasListNodesErrors = {
60622
+ /**
60623
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60624
+ */
60625
+ 400: CanvasCanvasError;
60626
+ /**
60627
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60628
+ */
60629
+ 401: CanvasCanvasError;
60630
+ /**
60631
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60632
+ */
60633
+ 403: CanvasCanvasError;
60634
+ /**
60635
+ * 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.
60636
+ */
60637
+ 404: CanvasCanvasError;
60638
+ /**
60639
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60640
+ */
60641
+ 500: CanvasCanvasError;
60642
+ };
60643
+ export type CanvasListNodesError = CanvasListNodesErrors[keyof CanvasListNodesErrors];
60644
+ export type CanvasListNodesResponses = {
60645
+ /**
60646
+ * Current revision and requested node documents; absent ids map to null rather than failing the request.
60647
+ */
60648
+ 200: CanvasNodesResult;
60649
+ };
60650
+ export type CanvasListNodesResponse = CanvasListNodesResponses[keyof CanvasListNodesResponses];
60651
+ export type CanvasListImagesData = {
60652
+ body?: never;
60653
+ path: {
60654
+ /**
60655
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
60656
+ */
60657
+ canvas_id: string;
60658
+ };
60659
+ query: {
60660
+ /**
60661
+ * Comma-separated list of 1–4 node ids to render, from retrieve, execute.created or execute.screenshots.
60662
+ */
60663
+ ids: string;
60664
+ /**
60665
+ * Output pixel scale relative to canvas dimensions, from 0.25 to 4 inclusive; defaults to 1 when omitted.
60666
+ */
60667
+ scale?: number;
60668
+ /**
60669
+ * Image encoding; png produces a PNG data URL and is the only supported value. Omit to use png.
60670
+ */
60671
+ format?: 'png';
60672
+ };
60673
+ url: '/canvas/v1/canvases/{canvas_id}/images';
60674
+ };
60675
+ export type CanvasListImagesErrors = {
60676
+ /**
60677
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60678
+ */
60679
+ 400: CanvasCanvasError;
60680
+ /**
60681
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60682
+ */
60683
+ 401: CanvasCanvasError;
60684
+ /**
60685
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60686
+ */
60687
+ 403: CanvasCanvasError;
60688
+ /**
60689
+ * 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.
60690
+ */
60691
+ 404: CanvasCanvasError;
60692
+ /**
60693
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60694
+ */
60695
+ 500: CanvasCanvasError;
60696
+ /**
60697
+ * RENDER_FAILED occurs when rendering cannot complete; retry the render later, using nodes.list to inspect the design in the meantime.
60698
+ */
60699
+ 503: CanvasCanvasError;
60700
+ };
60701
+ export type CanvasListImagesError = CanvasListImagesErrors[keyof CanvasListImagesErrors];
60702
+ export type CanvasListImagesResponses = {
60703
+ /**
60704
+ * A node-id-to-PNG-data-URL map, with err=null; individual unavailable images have null values.
60705
+ */
60706
+ 200: CanvasImagesResult;
60707
+ };
60708
+ export type CanvasListImagesResponse = CanvasListImagesResponses[keyof CanvasListImagesResponses];
60709
+ export type CanvasExecuteData = {
60710
+ /**
60711
+ * Either new script source or the edit_id of a failed script with replacement edits; expected_version optionally guards against concurrent changes.
60712
+ */
60713
+ body: CanvasExecuteInput;
60714
+ path: {
60715
+ /**
60716
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
60717
+ */
60718
+ canvas_id: string;
60719
+ };
60720
+ query?: never;
60721
+ url: '/canvas/v1/canvases/{canvas_id}:execute';
60722
+ };
60723
+ export type CanvasExecuteErrors = {
60724
+ /**
60725
+ * 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.
60726
+ */
60727
+ 400: CanvasCanvasError;
60728
+ /**
60729
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60730
+ */
60731
+ 401: CanvasCanvasError;
60732
+ /**
60733
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60734
+ */
60735
+ 403: CanvasCanvasError;
60736
+ /**
60737
+ * 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.
60738
+ */
60739
+ 404: CanvasCanvasError;
60740
+ /**
60741
+ * 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.
60742
+ */
60743
+ 409: CanvasCanvasError;
60744
+ /**
60745
+ * CANVAS_BUSY means the same canvas has more than four calls queued; wait for pending work to finish before retrying.
60746
+ */
60747
+ 429: CanvasCanvasError;
60748
+ /**
60749
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60750
+ */
60751
+ 500: CanvasCanvasError;
60752
+ };
60753
+ export type CanvasExecuteError = CanvasExecuteErrors[keyof CanvasExecuteErrors];
60754
+ export type CanvasExecuteResponses = {
60755
+ /**
60756
+ * Committed revision, operation results and viewer URL; screenshots contains node ids to pass to images.list.
60757
+ */
60758
+ 200: CanvasExecuteResult;
60759
+ };
60760
+ export type CanvasExecuteResponse = CanvasExecuteResponses[keyof CanvasExecuteResponses];
60103
60761
  export type DatabaseListDatabasesData = {
60104
60762
  body?: never;
60105
60763
  path?: never;