@deepraxis/sdk 0.1.1-dev.b71d0f4 → 0.1.1-dev.b9bc446

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.
@@ -1020,19 +1020,10 @@ export type OwnFileCreateFileRequest = {
1020
1020
  */
1021
1021
  file: Blob | File;
1022
1022
  /**
1023
- * Purpose label stored with the file: user_data, assistants or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.
1023
+ * Purpose label stored with the file: user_data or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.
1024
1024
  */
1025
- purpose: 'user_data' | 'assistants' | 'vision';
1025
+ purpose: 'user_data' | 'vision';
1026
1026
  expires_after?: OwnFileFileExpirationAfter;
1027
- /**
1028
- * Own-face extensions. Use at most one expiry setting.
1029
- */
1030
- praxis?: {
1031
- /**
1032
- * Lifetime in seconds after creation, from 3600 through 7776000. Send as the multipart field praxis[expires_in_seconds]; mutually exclusive with expires_after.
1033
- */
1034
- expires_in_seconds?: number;
1035
- };
1036
1027
  };
1037
1028
  /**
1038
1029
  * OpenAIFile
@@ -1067,7 +1058,7 @@ export type OwnFileOpenAiFile = {
1067
1058
  /**
1068
1059
  * Upload purpose. Image references in conversations require user_data.
1069
1060
  */
1070
- purpose: 'user_data' | 'assistants' | 'vision';
1061
+ purpose: 'user_data' | 'vision';
1071
1062
  /**
1072
1063
  * Deprecated. The current status of the file, which can be either `uploaded`, `processed`, or `error`.
1073
1064
  *
@@ -1165,9 +1156,9 @@ export type OwnFilePraxisCreateUpload = {
1165
1156
  */
1166
1157
  mime_type: string;
1167
1158
  /**
1168
- * Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images.
1159
+ * Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images.
1169
1160
  */
1170
- purpose: 'user_data' | 'assistants' | 'vision';
1161
+ purpose: 'user_data' | 'vision';
1171
1162
  /**
1172
1163
  * Optional expiry policy for the resulting file; omission retains the file until deletion.
1173
1164
  */
@@ -1212,9 +1203,9 @@ export type OwnFilePraxisUpload = {
1212
1203
  */
1213
1204
  filename: string;
1214
1205
  /**
1215
- * File purpose: user_data for conversation attachments, assistants for assistant files, vision for images.
1206
+ * File purpose: user_data for conversation attachments, vision for images.
1216
1207
  */
1217
- purpose: 'user_data' | 'assistants' | 'vision';
1208
+ purpose: 'user_data' | 'vision';
1218
1209
  /**
1219
1210
  * Upload state: pending accepts parts; completed has a file; cancelled was cancelled; expired exceeded its one-hour lifetime.
1220
1211
  */
@@ -5669,7 +5660,7 @@ export type AgentManaged251 = unknown & {
5669
5660
  */
5670
5661
  behavior: 'allow';
5671
5662
  /**
5672
- * 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.
5673
5664
  */
5674
5665
  destination: 'agent' | 'session';
5675
5666
  /**
@@ -6054,6 +6045,40 @@ export type AgentSseEvent = ({
6054
6045
  */
6055
6046
  type: 'session.status_terminated';
6056
6047
  };
6048
+ } | {
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, auto or idle.
6051
+ */
6052
+ event?: 'agent.thread_context_compacting';
6053
+ /**
6054
+ * Decoded JSON payload of this frame; its shape is selected by the event name.
6055
+ */
6056
+ data?: {
6057
+ /**
6058
+ * Text of the block.
6059
+ */
6060
+ id: string;
6061
+ /**
6062
+ * Always `agent.thread_context_compacting`. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle.
6063
+ */
6064
+ type: 'agent.thread_context_compacting';
6065
+ /**
6066
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
6067
+ */
6068
+ processed_at: string;
6069
+ /**
6070
+ * Text of the block.
6071
+ */
6072
+ session_thread_id?: string;
6073
+ /**
6074
+ * Identifier of the manual operation or automatic compaction record that has started.
6075
+ */
6076
+ compaction_id: string;
6077
+ /**
6078
+ * Whether a caller requested compaction, the session reached its context threshold, or the session compacted while idle.
6079
+ */
6080
+ trigger: 'manual' | 'auto' | 'idle';
6081
+ };
6057
6082
  } | {
6058
6083
  /**
6059
6084
  * Always `agent.thread_context_compacted`. SSE event name of this frame; its data is a agent.thread_context_compacted payload. The thread's context was compacted into a summary.
@@ -6400,7 +6425,7 @@ export type AgentSseEvent = ({
6400
6425
  */
6401
6426
  behavior: 'allow';
6402
6427
  /**
6403
- * 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.
6404
6429
  */
6405
6430
  destination: 'agent' | 'session';
6406
6431
  /**
@@ -6568,7 +6593,7 @@ export type AgentSseEvent = ({
6568
6593
  */
6569
6594
  behavior: 'allow';
6570
6595
  /**
6571
- * 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.
6572
6597
  */
6573
6598
  destination: 'agent' | 'session';
6574
6599
  /**
@@ -7453,7 +7478,7 @@ export type AgentSseEvent = ({
7453
7478
  /**
7454
7479
  * Server-Sent Events event name of this frame.
7455
7480
  */
7456
- event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'event_start' | 'event_delta' | 'ping' | 'error';
7481
+ event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'event_start' | 'event_delta' | 'ping' | 'error';
7457
7482
  data: AgentSseData;
7458
7483
  };
7459
7484
  export type AgentManaged256 = {
@@ -8726,7 +8751,7 @@ export type AutomationAutomationProblemDetails = {
8726
8751
  title: string;
8727
8752
  status: number;
8728
8753
  detail: string;
8729
- code: 'METHOD_NOT_ALLOWED' | 'TRIGGER_NOT_FOUND' | 'SCHEDULE_INVALID' | 'TIMEZONE_INVALID' | 'INTERVAL_TOO_SHORT' | 'TRIGGER_MANAGED' | 'TRIGGER_PAUSED' | 'TRIGGER_LIMIT' | 'ACTION_NOT_FOUND' | 'TARGET_NOT_FOUND' | 'VERSION_NOT_FOUND' | 'RUN_NOT_FOUND' | 'WAIT_NOT_FOUND' | 'NAME_TAKEN' | 'VERSION_EXISTS' | 'RUN_INVALID_STATE' | 'IDEMPOTENCY_IN_FLIGHT' | 'TARGET_ARCHIVED' | 'OPERATION_NOT_SUPPORTED' | 'WAIT_ALREADY_RESOLVED' | 'WAIT_EXPIRED' | 'PRECONDITION_FAILED' | 'PAYLOAD_TOO_LARGE' | 'SCHEMA_INCOMPATIBLE' | 'IDEMPOTENCY_KEY_MISMATCH' | 'NO_MATCHING_VERSION' | 'CYCLE_DETECTED' | 'DEFINITION_IDENTITY_MISMATCH' | 'DEFINITION_INVALID' | 'INPUT_INVALID' | 'TAG_INVALID' | 'TAG_REQUIRED' | 'INVALID_PARAMS' | 'NAMESPACE_FORBIDDEN' | 'OWNER_SUSPENDED' | 'RATE_LIMITED' | 'QUOTA_EXCEEDED' | 'SCRIPT_ERROR' | 'OUTPUT_INVALID' | 'CPU_LIMIT_EXCEEDED' | 'NOT_IMPLEMENTED';
8754
+ code: 'METHOD_NOT_ALLOWED' | 'TRIGGER_NOT_FOUND' | 'SCHEDULE_INVALID' | 'TIMEZONE_INVALID' | 'INTERVAL_TOO_SHORT' | 'TRIGGER_MANAGED' | 'TRIGGER_PAUSED' | 'TRIGGER_LIMIT' | 'ACTION_NOT_FOUND' | 'TARGET_NOT_FOUND' | 'VERSION_NOT_FOUND' | 'RUN_NOT_FOUND' | 'WAIT_NOT_FOUND' | 'NAME_TAKEN' | 'VERSION_EXISTS' | 'RUN_INVALID_STATE' | 'IDEMPOTENCY_IN_FLIGHT' | 'TARGET_ARCHIVED' | 'OPERATION_NOT_SUPPORTED' | 'WAIT_ALREADY_RESOLVED' | 'WAIT_EXPIRED' | 'PRECONDITION_FAILED' | 'PAYLOAD_TOO_LARGE' | 'SCHEMA_INCOMPATIBLE' | 'IDEMPOTENCY_KEY_MISMATCH' | 'NO_MATCHING_VERSION' | 'CYCLE_DETECTED' | 'DEFINITION_IDENTITY_MISMATCH' | 'DEFINITION_INVALID' | 'INPUT_INVALID' | 'TAG_INVALID' | 'TAG_REQUIRED' | 'INVALID_PARAMS' | 'NAMESPACE_FORBIDDEN' | 'OWNER_SUSPENDED' | 'RATE_LIMITED' | 'QUOTA_EXCEEDED' | 'SCRIPT_ERROR' | 'OUTPUT_INVALID' | 'CPU_LIMIT_EXCEEDED' | 'NOT_IMPLEMENTED' | 'HUMAN_TASK_NOT_FOUND' | 'TASK_CLOSED' | 'ALREADY_RESPONDED' | 'NOT_ASSIGNED' | 'SELF_APPROVAL' | 'AGENT_NOT_ALLOWED' | 'COMMENT_REQUIRED' | 'INVALID_ACTION' | 'INVALID_VALUES' | 'HUMAN_TASK_CANCELLED';
8730
8755
  errors: Array<AutomationDiagnostic>;
8731
8756
  issues: Array<AutomationCompatIssue>;
8732
8757
  hint: string | null;
@@ -9598,7 +9623,7 @@ export type AutomationRun = {
9598
9623
  */
9599
9624
  attach: null | 'wait' | 'detach';
9600
9625
  /**
9601
- * Deadline of the run (RFC 3339 UTC): creation time plus deadline_seconds (scripts default to and are capped at 300 seconds; workflows default to 86400 and are capped at 604800), and an awaited child ends at least 1 second before its parent's deadline.
9626
+ * Deadline of the run (RFC 3339 UTC): creation time plus deadline_seconds (scripts default to and are capped at 300 seconds; workflows default to 86400 and are capped at 2592000 (30 days)), and an awaited child ends at least 1 second before its parent's deadline.
9602
9627
  */
9603
9628
  deadline_at: string;
9604
9629
  /**
@@ -9792,7 +9817,7 @@ export type AutomationExpandedRun = {
9792
9817
  */
9793
9818
  attach: null | 'wait' | 'detach';
9794
9819
  /**
9795
- * Deadline of the run (RFC 3339 UTC): creation time plus deadline_seconds (scripts default to and are capped at 300 seconds; workflows default to 86400 and are capped at 604800), and an awaited child ends at least 1 second before its parent's deadline.
9820
+ * Deadline of the run (RFC 3339 UTC): creation time plus deadline_seconds (scripts default to and are capped at 300 seconds; workflows default to 86400 and are capped at 2592000 (30 days)), and an awaited child ends at least 1 second before its parent's deadline.
9796
9821
  */
9797
9822
  deadline_at: string;
9798
9823
  /**
@@ -10743,6 +10768,415 @@ export type AutomationTriggerPreview = {
10743
10768
  */
10744
10769
  next_fire_times: Array<string>;
10745
10770
  };
10771
+ export type AutomationHumanTaskStatus = 'open' | 'completed' | 'expired' | 'cancelled';
10772
+ export type AutomationHumanTask = {
10773
+ /**
10774
+ * Human task ID (htask_), derived deterministically from the run and step; use it with retrieve, respond, cancel and delegate. The Console page is /automation/tasks/{id}.
10775
+ */
10776
+ id: string;
10777
+ /**
10778
+ * ID of the organization that owns the task.
10779
+ */
10780
+ owner: string;
10781
+ /**
10782
+ * ID of the workflow run (run_) that opened the task; the run continues once the task closes.
10783
+ */
10784
+ run_id: string;
10785
+ /**
10786
+ * The published workflow of the run; null for an ad hoc run.
10787
+ */
10788
+ workflow: {
10789
+ /**
10790
+ * Workflow namespace.
10791
+ */
10792
+ namespace: string;
10793
+ /**
10794
+ * Workflow name.
10795
+ */
10796
+ name: string;
10797
+ } | null;
10798
+ /**
10799
+ * JSON Pointer of the approval step in the workflow source, for example /do/1/approveRefund.
10800
+ */
10801
+ task_reference: string;
10802
+ /**
10803
+ * ID of the run's wait (wait_htask_); it closes only through respond, never through the run wait completion endpoint.
10804
+ */
10805
+ wait_id: string;
10806
+ /**
10807
+ * Task kind; currently only approval.
10808
+ */
10809
+ kind: 'approval';
10810
+ /**
10811
+ * Approval title, at most 200 characters.
10812
+ */
10813
+ title: string;
10814
+ /**
10815
+ * Markdown details for the assignees, up to 16 KiB; empty string when not given.
10816
+ */
10817
+ body: string;
10818
+ /**
10819
+ * JSON context the workflow attached (for example the order), up to 32 KiB; null when not given.
10820
+ */
10821
+ context: AutomationJsonValue;
10822
+ /**
10823
+ * The 1–6 buttons an assignee chooses from; defaults to approve and reject.
10824
+ */
10825
+ actions: Array<AutomationHumanTaskAction>;
10826
+ /**
10827
+ * The form an assignee fills in (a JSON Schema subset - an object with at most 30 string, number, integer, boolean or enum fields); null when there is no form.
10828
+ */
10829
+ form_schema: AutomationJsonObject | null;
10830
+ /**
10831
+ * The assignees.
10832
+ */
10833
+ assignees: {
10834
+ /**
10835
+ * Assignee user IDs, 1–20; sequential mode follows this order. Delegation replaces an entry in place.
10836
+ */
10837
+ users: Array<string>;
10838
+ /**
10839
+ * Group assignment; not supported yet, always an empty array.
10840
+ */
10841
+ groups: Array<string>;
10842
+ };
10843
+ /**
10844
+ * Decision rule. any: the first response decides. all: everyone must respond and any rejection rejects at once. quorum: quorum approvals approve, and it rejects once that many approvals are no longer possible. sequential: assignees respond in users order; any rejection rejects at once and the last approval approves.
10845
+ */
10846
+ mode: 'any' | 'all' | 'quorum' | 'sequential';
10847
+ /**
10848
+ * Number of approvals required in quorum mode; null in other modes.
10849
+ */
10850
+ quorum: number | null;
10851
+ /**
10852
+ * When true, the person who started the run may respond to their own request; false by default.
10853
+ */
10854
+ allow_self_approval: boolean;
10855
+ /**
10856
+ * When true, an agent (agent session or run token) may respond; false by default.
10857
+ */
10858
+ allow_agent_decision: boolean;
10859
+ /**
10860
+ * The subject that started the run.
10861
+ */
10862
+ initiator: {
10863
+ /**
10864
+ * Initiator type: user, api_key, agent, run (a parent run) or trigger.
10865
+ */
10866
+ type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
10867
+ /**
10868
+ * Initiator ID.
10869
+ */
10870
+ id: string;
10871
+ /**
10872
+ * The user behind the initiator (the owner of an API key or trigger), null when unknown; the self-approval rule uses it.
10873
+ */
10874
+ user_id: string | null;
10875
+ };
10876
+ /**
10877
+ * Due time (RFC 3339); defaults to 3 days after creation, at most 30 days and never later than the run's deadline. on_timeout applies when it passes.
10878
+ */
10879
+ due_at: string;
10880
+ /**
10881
+ * What happens at due_at.
10882
+ */
10883
+ on_timeout: {
10884
+ /**
10885
+ * reject: the workflow receives decision timeout:reject. approve: it receives timeout:approve. fault (default): the step raises a timeout error that try/catch can catch.
10886
+ */
10887
+ action: 'reject' | 'approve' | 'fault';
10888
+ };
10889
+ /**
10890
+ * Reminder intervals (ISO 8601 durations, up to 3); stored, not yet sent in this version.
10891
+ */
10892
+ remind: Array<string>;
10893
+ /**
10894
+ * Notification channels: console or email; stored, delivery is not wired yet.
10895
+ */
10896
+ channels: Array<'console' | 'email'>;
10897
+ /**
10898
+ * An agent's proposal (any JSON up to 32 KiB) for the assignees to consider; null when not given.
10899
+ */
10900
+ proposal: AutomationJsonValue;
10901
+ /**
10902
+ * open: awaiting responses. completed: decided. expired: due_at passed. cancelled: withdrawn, including automatically when the run ended.
10903
+ */
10904
+ status: AutomationHumanTaskStatus;
10905
+ /**
10906
+ * Responses submitted so far, in order.
10907
+ */
10908
+ responses: Array<AutomationHumanTaskResponse>;
10909
+ /**
10910
+ * The decision, which is also the workflow step's output; null while open, and after a fault timeout or cancellation.
10911
+ */
10912
+ outcome: AutomationHumanTaskOutcome | null;
10913
+ /**
10914
+ * Creation time (RFC 3339).
10915
+ */
10916
+ created_at: string;
10917
+ /**
10918
+ * Last change time (RFC 3339).
10919
+ */
10920
+ updated_at: string;
10921
+ };
10922
+ export type AutomationHumanTaskRespondInput = {
10923
+ /**
10924
+ * The chosen action ID from the task's actions, for example approve.
10925
+ */
10926
+ action_id: string;
10927
+ /**
10928
+ * Form values matching the task's form_schema; omit or pass {} when there is no form.
10929
+ */
10930
+ values?: AutomationJsonObject;
10931
+ /**
10932
+ * Comment of at most 4000 characters; required when the action has require_comment true.
10933
+ */
10934
+ comment?: string;
10935
+ };
10936
+ export type AutomationHumanTaskCancelInput = {
10937
+ /**
10938
+ * Optional cancellation reason, at most 500 characters.
10939
+ */
10940
+ reason?: string;
10941
+ };
10942
+ export type AutomationHumanTaskDelegateInput = {
10943
+ /**
10944
+ * User ID taking over; cannot already be an assignee, nor the initiator unless self-approval is allowed.
10945
+ */
10946
+ to_user: string;
10947
+ };
10948
+ export type CanvasCreateCanvasInput = {
10949
+ /**
10950
+ * Display name for the new canvas, at most 200 characters; omission uses Untitled.
10951
+ */
10952
+ name?: string;
10953
+ };
10954
+ export type CanvasCanvas = {
10955
+ /**
10956
+ * Assigned canvas identifier, cvs_ followed by 16 lowercase letters or digits; reuse it as canvas_id in subsequent requests.
10957
+ */
10958
+ id: string;
10959
+ /**
10960
+ * Resource discriminator; canvas identifies a design canvas.
10961
+ */
10962
+ object: 'canvas';
10963
+ /**
10964
+ * Display name supplied at creation; defaults to Untitled if omitted and is not an API identifier.
10965
+ */
10966
+ name: string;
10967
+ version: CanvasVersion;
10968
+ /**
10969
+ * Number of visible top-level frames in this canvas; hidden frames do not contribute.
10970
+ */
10971
+ page_count: number;
10972
+ /**
10973
+ * Total number of design nodes currently in the canvas.
10974
+ */
10975
+ node_count: number;
10976
+ /**
10977
+ * ISO 8601 timestamp recording when this canvas was created.
10978
+ */
10979
+ created_at: string;
10980
+ /**
10981
+ * ISO 8601 timestamp of the latest canvas update; list orders canvases newest first by this value.
10982
+ */
10983
+ updated_at: string;
10984
+ /**
10985
+ * Console URL where a person can watch this canvas update live; open it to review drawing results.
10986
+ */
10987
+ viewer_url: string;
10988
+ };
10989
+ export type CanvasCanvasPage = {
10990
+ /**
10991
+ * Canvases accessible to the API key's organization, ordered by updated_at descending.
10992
+ */
10993
+ data: Array<CanvasCanvas>;
10994
+ /**
10995
+ * Opaque cursor to pass as cursor on the next list request; null means no more results.
10996
+ */
10997
+ next_cursor: string | null;
10998
+ };
10999
+ export type CanvasCanvasDetail = CanvasCanvas & {
11000
+ /**
11001
+ * Summaries of top-level nodes in canvas order; use their ids to read full node documents or render images.
11002
+ */
11003
+ frames: Array<CanvasFrame>;
11004
+ /**
11005
+ * Reusable components in this canvas; use their ids when inspecting or referencing component designs.
11006
+ */
11007
+ components: Array<{
11008
+ /**
11009
+ * Node identifier of the reusable component; usable in node reads and script references.
11010
+ */
11011
+ id: string;
11012
+ /**
11013
+ * Display name of the reusable component for choosing which design to reuse.
11014
+ */
11015
+ name: string;
11016
+ }>;
11017
+ };
11018
+ export type CanvasDeletedCanvas = {
11019
+ /**
11020
+ * Identifier of the canvas that was permanently deleted by this request.
11021
+ */
11022
+ id: string;
11023
+ /**
11024
+ * Resource discriminator; canvas identifies the deleted design canvas.
11025
+ */
11026
+ object: 'canvas';
11027
+ /**
11028
+ * Always true on successful permanent deletion; this content cannot be restored.
11029
+ */
11030
+ deleted: true;
11031
+ };
11032
+ export type CanvasNodesResult = {
11033
+ version: CanvasVersion;
11034
+ /**
11035
+ * Map keyed by each requested node id or instance path; null means that id was not found.
11036
+ */
11037
+ nodes: {
11038
+ [key: string]: {
11039
+ /**
11040
+ * Pencil .pen 2.21 node content, with descendants limited by depth when specified; use these design properties when preparing edits.
11041
+ */
11042
+ document: CanvasPenNode;
11043
+ } | null;
11044
+ };
11045
+ };
11046
+ export type CanvasImagesResult = {
11047
+ /**
11048
+ * Always null for a successful render response; request failures use the error envelope with a non-2xx status.
11049
+ */
11050
+ err: null;
11051
+ /**
11052
+ * 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.
11053
+ */
11054
+ images: {
11055
+ [key: string]: string | null;
11056
+ };
11057
+ };
11058
+ export type CanvasCanvasError = {
11059
+ /**
11060
+ * Failure details for a non-2xx response; choose a recovery action using the operation's status and code description.
11061
+ */
11062
+ error: {
11063
+ /**
11064
+ * Machine-readable failure category; see this operation's error responses for triggering conditions and recovery actions.
11065
+ */
11066
+ code: string;
11067
+ /**
11068
+ * Human-readable explanation of why the request failed; use code and details for programmatic recovery.
11069
+ */
11070
+ message: string;
11071
+ /**
11072
+ * Optional error-specific context; script failures provide edit_id with optional line, column and rejection, and REVISION_CONFLICT provides the current version.
11073
+ */
11074
+ details?: {
11075
+ /**
11076
+ * Saved failed script id, valid for ten minutes; send it with edits to repair and rerun without resending the complete source.
11077
+ */
11078
+ edit_id?: string;
11079
+ /**
11080
+ * Optional source line reported for the script failure; use it to locate text for an edit.
11081
+ */
11082
+ line?: number;
11083
+ /**
11084
+ * Optional source column reported for the script failure; use it with line to locate the problem.
11085
+ */
11086
+ column?: number;
11087
+ /**
11088
+ * Optional operation rejection information; inspect it to correct the rejected design operation.
11089
+ */
11090
+ rejection?: unknown;
11091
+ /**
11092
+ * Current decimal revision on REVISION_CONFLICT; retrieve and merge the current canvas before retrying a guarded write.
11093
+ */
11094
+ version?: string;
11095
+ [key: string]: unknown;
11096
+ };
11097
+ };
11098
+ };
11099
+ export type CanvasExecuteInput = unknown & {
11100
+ /**
11101
+ * New synchronous Pencil execute source using document as the root; provide this or edit_id, never both. See the operation's first-frame example.
11102
+ */
11103
+ script?: string;
11104
+ /**
11105
+ * Saved failed-script identifier from error.details.edit_id; use with edits instead of script within ten minutes of the failure.
11106
+ */
11107
+ edit_id?: string;
11108
+ /**
11109
+ * Text replacements applied to the source identified by edit_id before rerunning; use error line, column or rejection to choose the correction.
11110
+ */
11111
+ edits?: Array<{
11112
+ /**
11113
+ * Literal text to locate in the failed source saved under edit_id.
11114
+ */
11115
+ find: string;
11116
+ /**
11117
+ * Corrected text to substitute for the matched find text before execution.
11118
+ */
11119
+ replace: string;
11120
+ /**
11121
+ * Set true to replace every occurrence of find; omitted or false replaces only the first occurrence.
11122
+ */
11123
+ all?: boolean;
11124
+ }>;
11125
+ /**
11126
+ * Revision from retrieve, nodes.list or the previous execute response; omit for an unguarded write. A mismatch returns 409 REVISION_CONFLICT with details.version.
11127
+ */
11128
+ expected_version?: string;
11129
+ };
11130
+ export type CanvasExecuteResult = {
11131
+ version: CanvasVersion;
11132
+ /**
11133
+ * Number of design operations performed by the committed script.
11134
+ */
11135
+ operation_count: number;
11136
+ /**
11137
+ * Map from created result names to node identifiers; reuse the ids in nodes.list, images.list or subsequent scripts.
11138
+ */
11139
+ created: {
11140
+ [key: string]: string;
11141
+ };
11142
+ /**
11143
+ * String outputs produced by Print calls in script execution order.
11144
+ */
11145
+ prints: Array<string>;
11146
+ /**
11147
+ * Non-fatal design warnings from this execution; writes have committed, so inspect the affected nodes before making another edit.
11148
+ */
11149
+ warnings: Array<{
11150
+ /**
11151
+ * Machine-readable warning category identifying what to inspect in the design.
11152
+ */
11153
+ code: string;
11154
+ /**
11155
+ * Identifier of the node to inspect with nodes.list or images.list.
11156
+ */
11157
+ node_id: string;
11158
+ /**
11159
+ * Human-readable explanation of the design issue and its context.
11160
+ */
11161
+ message: string;
11162
+ }>;
11163
+ /**
11164
+ * Node ids requested through TakeScreenshot; call images.list with up to four ids to obtain the actual PNG images.
11165
+ */
11166
+ screenshots: Array<string>;
11167
+ /**
11168
+ * Identifiers of top-level frames affected by the script; render these frames to review the edit.
11169
+ */
11170
+ touched_frames: Array<string>;
11171
+ /**
11172
+ * Global variable names still available for reuse in the next execute call on this canvas.
11173
+ */
11174
+ globals: Array<string>;
11175
+ /**
11176
+ * Console URL where a person can watch the canvas and inspect the committed visual result live.
11177
+ */
11178
+ viewer_url: string;
11179
+ };
10746
11180
  export type DatabaseCreateDatabaseInput = {
10747
11181
  /**
10748
11182
  * 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.
@@ -10907,7 +11341,7 @@ export type DatabaseNewField = {
10907
11341
  */
10908
11342
  unique?: boolean;
10909
11343
  /**
10910
- * Whether to maintain an index for faster filters and ordering. Defaults to true for scalar types and is not allowed for json and link fields. At most 16 indexed or unique fields per table.
11344
+ * Whether to maintain an index for faster filters and ordering. Defaults to false and is not allowed for json and link fields. At most 16 indexed or unique fields per table.
10911
11345
  */
10912
11346
  indexed?: boolean;
10913
11347
  /**
@@ -10942,7 +11376,7 @@ export type DatabaseNewField = {
10942
11376
  */
10943
11377
  unique?: boolean;
10944
11378
  /**
10945
- * Whether to maintain an index for faster filters and ordering. Defaults to true for scalar types and is not allowed for json and link fields. At most 16 indexed or unique fields per table.
11379
+ * Whether to maintain an index for faster filters and ordering. Defaults to false and is not allowed for json and link fields. At most 16 indexed or unique fields per table.
10946
11380
  */
10947
11381
  indexed?: boolean;
10948
11382
  /**
@@ -10982,7 +11416,7 @@ export type DatabaseNewField = {
10982
11416
  */
10983
11417
  unique?: boolean;
10984
11418
  /**
10985
- * Whether to maintain an index for faster filters and ordering. Defaults to true for scalar types and is not allowed for json and link fields. At most 16 indexed or unique fields per table.
11419
+ * Whether to maintain an index for faster filters and ordering. Defaults to false and is not allowed for json and link fields. At most 16 indexed or unique fields per table.
10986
11420
  */
10987
11421
  indexed?: boolean;
10988
11422
  /**
@@ -13694,7 +14128,7 @@ export type OwnFileFileExpirationAfter = {
13694
14128
  */
13695
14129
  anchor: 'created_at';
13696
14130
  /**
13697
- * Lifetime in seconds after creation, from 3600 through 2592000. Send as expires_after[seconds]; do not combine with praxis[expires_in_seconds].
14131
+ * Lifetime in seconds after creation, from 3600 through 7776000. Send as expires_after[seconds].
13698
14132
  */
13699
14133
  seconds: number;
13700
14134
  };
@@ -18895,7 +19329,7 @@ export type AgentManaged89 = {
18895
19329
  type: 'text';
18896
19330
  };
18897
19331
  /**
18898
- * Model identifier and configuration of the agent.
19332
+ * Conversation model; required on creation except for kind assume. Forbidden and omitted on assume agents, which are driven by an external MCP client.
18899
19333
  */
18900
19334
  export type AgentManaged38 = {
18901
19335
  /**
@@ -19211,6 +19645,31 @@ export type AgentSseData = {
19211
19645
  * Always `session.status_terminated`. The session ended and accepts no more work.
19212
19646
  */
19213
19647
  type: 'session.status_terminated';
19648
+ } | {
19649
+ /**
19650
+ * Text of the block.
19651
+ */
19652
+ id: string;
19653
+ /**
19654
+ * Always `agent.thread_context_compacting`. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle.
19655
+ */
19656
+ type: 'agent.thread_context_compacting';
19657
+ /**
19658
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
19659
+ */
19660
+ processed_at: string;
19661
+ /**
19662
+ * Text of the block.
19663
+ */
19664
+ session_thread_id?: string;
19665
+ /**
19666
+ * Identifier of the manual operation or automatic compaction record that has started.
19667
+ */
19668
+ compaction_id: string;
19669
+ /**
19670
+ * Whether a caller requested compaction, the session reached its context threshold, or the session compacted while idle.
19671
+ */
19672
+ trigger: 'manual' | 'auto' | 'idle';
19214
19673
  } | {
19215
19674
  /**
19216
19675
  * Unique identifier for this event.
@@ -19486,7 +19945,7 @@ export type AgentSseData = {
19486
19945
  */
19487
19946
  behavior: 'allow';
19488
19947
  /**
19489
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
19948
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
19490
19949
  */
19491
19950
  destination: 'agent' | 'session';
19492
19951
  /**
@@ -19636,7 +20095,7 @@ export type AgentSseData = {
19636
20095
  */
19637
20096
  behavior: 'allow';
19638
20097
  /**
19639
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
20098
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
19640
20099
  */
19641
20100
  destination: 'agent' | 'session';
19642
20101
  /**
@@ -21332,6 +21791,128 @@ export type AutomationAttributedUsage = {
21332
21791
  */
21333
21792
  pending_events: number;
21334
21793
  };
21794
+ export type AutomationHumanTaskAction = {
21795
+ /**
21796
+ * Action ID to pass as action_id to respond; starts with a lowercase letter, at most 32 characters.
21797
+ */
21798
+ id: string;
21799
+ /**
21800
+ * Button label.
21801
+ */
21802
+ label: string;
21803
+ /**
21804
+ * primary: the main button. danger: a destructive button, which is the rejection in all, quorum and sequential modes. default: a plain button.
21805
+ */
21806
+ style: 'primary' | 'danger' | 'default';
21807
+ /**
21808
+ * When true, choosing this action requires a comment.
21809
+ */
21810
+ require_comment: boolean;
21811
+ };
21812
+ export type AutomationHumanTaskResponse = {
21813
+ /**
21814
+ * Who responded.
21815
+ */
21816
+ actor: AutomationHumanTaskActor;
21817
+ /**
21818
+ * The chosen action ID.
21819
+ */
21820
+ action_id: string;
21821
+ /**
21822
+ * Submitted form values; an empty object when there is no form.
21823
+ */
21824
+ values: AutomationJsonObject;
21825
+ /**
21826
+ * Comment; null when none.
21827
+ */
21828
+ comment: string | null;
21829
+ /**
21830
+ * Where it came from: console, api (the public API) or agent.
21831
+ */
21832
+ via: 'console' | 'api' | 'agent';
21833
+ /**
21834
+ * Submission time (RFC 3339).
21835
+ */
21836
+ at: string;
21837
+ };
21838
+ export type AutomationHumanTaskOutcome = {
21839
+ /**
21840
+ * The deciding action ID, or timeout:reject / timeout:approve when on_timeout decided.
21841
+ */
21842
+ decision: string;
21843
+ /**
21844
+ * Form values of the deciding response; an empty object on timeout.
21845
+ */
21846
+ values: AutomationJsonObject;
21847
+ /**
21848
+ * Comment of the deciding response; null on timeout.
21849
+ */
21850
+ comment: string | null;
21851
+ /**
21852
+ * Who decided; null on timeout.
21853
+ */
21854
+ decided_by: AutomationHumanTaskActor | null;
21855
+ /**
21856
+ * All responses at the time the task closed.
21857
+ */
21858
+ responses: Array<AutomationHumanTaskResponse>;
21859
+ };
21860
+ /**
21861
+ * Current revision as a decimal string, incremented by one after each successful write; pass it as expected_version to guard a subsequent execute call.
21862
+ */
21863
+ export type CanvasVersion = string;
21864
+ export type CanvasFrame = {
21865
+ /**
21866
+ * Top-level node identifier; use in nodes.list, images.list or an execute script.
21867
+ */
21868
+ id: string;
21869
+ /**
21870
+ * Human-readable node name, or null if no name is assigned.
21871
+ */
21872
+ name: string | null;
21873
+ /**
21874
+ * Pencil node kind for this top-level item, such as frame or group; read nodes.list for its full content.
21875
+ */
21876
+ type: string;
21877
+ /**
21878
+ * Horizontal position of the top-level node on the canvas, in design pixels.
21879
+ */
21880
+ x: number;
21881
+ /**
21882
+ * Vertical position of the top-level node on the canvas, in design pixels.
21883
+ */
21884
+ y: number;
21885
+ /**
21886
+ * Current width of the top-level node in design pixels.
21887
+ */
21888
+ width: number;
21889
+ /**
21890
+ * Current height of the top-level node in design pixels.
21891
+ */
21892
+ height: number;
21893
+ /**
21894
+ * Number of design nodes in this top-level node's subtree.
21895
+ */
21896
+ node_count: number;
21897
+ /**
21898
+ * Whether this top-level node defines a reusable component.
21899
+ */
21900
+ component: boolean;
21901
+ /**
21902
+ * Whether this top-level node is a placeholder awaiting design content.
21903
+ */
21904
+ placeholder: boolean;
21905
+ /**
21906
+ * Whether this top-level node is visible on the canvas.
21907
+ */
21908
+ visible: boolean;
21909
+ };
21910
+ /**
21911
+ * 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.
21912
+ */
21913
+ export type CanvasPenNode = {
21914
+ [key: string]: unknown;
21915
+ };
21335
21916
  export type DatabaseField = {
21336
21917
  /**
21337
21918
  * Field identifier, prefixed fld_. Stable across renames; accepted wherever a field path parameter takes an id or name.
@@ -22180,7 +22761,7 @@ export type MediaSemanticHit = {
22180
22761
  */
22181
22762
  asset: MediaAsset;
22182
22763
  /**
22183
- * Ranking score: cosine similarity for semantic or visual search; normalized rank-fusion score for hybrid search. Higher values rank first.
22764
+ * Ranking score: cosine similarity for semantic or visual search; normalized rank-fusion score for hybrid search. Higher values rank first; hybrid scores are not probabilities or confidence.
22184
22765
  */
22185
22766
  score: number;
22186
22767
  /**
@@ -26210,6 +26791,20 @@ export type AgentManaged141 = {
26210
26791
  */
26211
26792
  type?: 'packages';
26212
26793
  };
26794
+ export type AutomationHumanTaskActor = {
26795
+ /**
26796
+ * The responder's user ID (for an agent, the user it acts for).
26797
+ */
26798
+ id: string;
26799
+ /**
26800
+ * human: the person responded. agent: an agent responded on their behalf.
26801
+ */
26802
+ kind: 'human' | 'agent';
26803
+ /**
26804
+ * Display name; this service does not resolve names, so it is null and the Console resolves it from the user ID.
26805
+ */
26806
+ display_name: string | null;
26807
+ };
26213
26808
  export type KnowledgeStaticChunking = {
26214
26809
  /**
26215
26810
  * static selects explicit chunk-size and overlap settings.
@@ -27540,6 +28135,10 @@ export type AgentManaged34Writable = {
27540
28135
  * 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.
27541
28136
  */
27542
28137
  export type SandboxSandboxId = string;
28138
+ /**
28139
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
28140
+ */
28141
+ export type CanvasCanvasId = string;
27543
28142
  /**
27544
28143
  * Cursor to start the list from
27545
28144
  */
@@ -27556,7 +28155,7 @@ export type ApplyAgentVersionData = {
27556
28155
  body?: never;
27557
28156
  path: {
27558
28157
  /**
27559
- * Agent identifier from agents.create or agents.list.
28158
+ * 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_….
27560
28159
  */
27561
28160
  agent_id: string;
27562
28161
  /**
@@ -27619,7 +28218,7 @@ export type ApplyAgentVersionResponses = {
27619
28218
  /**
27620
28219
  * Model identifier and configuration.
27621
28220
  */
27622
- model: {
28221
+ model?: {
27623
28222
  /**
27624
28223
  * 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.
27625
28224
  */
@@ -27653,7 +28252,7 @@ export type ApplyAgentVersionResponses = {
27653
28252
  /**
27654
28253
  * 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.
27655
28254
  */
27656
- multiagent: null | AgentManaged39;
28255
+ multiagent?: null | AgentManaged39;
27657
28256
  /**
27658
28257
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
27659
28258
  */
@@ -27721,7 +28320,7 @@ export type ApplyAgentVersionResponses = {
27721
28320
  */
27722
28321
  note: string | null;
27723
28322
  /**
27724
- * 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.
28323
+ * 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.
27725
28324
  */
27726
28325
  bindings: Array<{
27727
28326
  /**
@@ -27763,9 +28362,9 @@ export type ApplyAgentVersionResponses = {
27763
28362
  enabled?: boolean;
27764
28363
  }>;
27765
28364
  /**
27766
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
28365
+ * 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.
27767
28366
  */
27768
- kind: 'personal' | 'service';
28367
+ kind: 'general' | 'personal' | 'service' | 'assume';
27769
28368
  /**
27770
28369
  * 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.
27771
28370
  */
@@ -28116,6 +28715,10 @@ export type ApplyAgentVersionResponses = {
28116
28715
  */
28117
28716
  hooks?: Array<string>;
28118
28717
  };
28718
+ /**
28719
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
28720
+ */
28721
+ idleCompaction?: boolean;
28119
28722
  } | null;
28120
28723
  /**
28121
28724
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -28143,7 +28746,7 @@ export type ApplyAgentVersionResponses = {
28143
28746
  */
28144
28747
  environment_id?: string | null;
28145
28748
  /**
28146
- * 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.
28749
+ * 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.
28147
28750
  */
28148
28751
  vault_ids?: Array<string>;
28149
28752
  /**
@@ -28157,7 +28760,7 @@ export type UnarchiveAgentData = {
28157
28760
  body?: never;
28158
28761
  path: {
28159
28762
  /**
28160
- * Agent id from creation or listing.
28763
+ * 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_….
28161
28764
  */
28162
28765
  agent_id: string;
28163
28766
  };
@@ -28286,7 +28889,7 @@ export type UnarchiveAgentResponses = {
28286
28889
  /**
28287
28890
  * Model identifier and configuration.
28288
28891
  */
28289
- model: {
28892
+ model?: {
28290
28893
  /**
28291
28894
  * 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.
28292
28895
  */
@@ -28345,7 +28948,7 @@ export type UnarchiveAgentResponses = {
28345
28948
  /**
28346
28949
  * 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.
28347
28950
  */
28348
- multiagent: null | {
28951
+ multiagent?: null | {
28349
28952
  /**
28350
28953
  * Agents the coordinator may spawn as session threads, each resolved to a specific
28351
28954
  * version.
@@ -28909,7 +29512,7 @@ export type UnarchiveAgentResponses = {
28909
29512
  */
28910
29513
  note: string | null;
28911
29514
  /**
28912
- * 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.
29515
+ * 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.
28913
29516
  */
28914
29517
  bindings: Array<{
28915
29518
  /**
@@ -28951,9 +29554,9 @@ export type UnarchiveAgentResponses = {
28951
29554
  enabled?: boolean;
28952
29555
  }>;
28953
29556
  /**
28954
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
29557
+ * 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.
28955
29558
  */
28956
- kind: 'personal' | 'service';
29559
+ kind: 'general' | 'personal' | 'service' | 'assume';
28957
29560
  /**
28958
29561
  * 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.
28959
29562
  */
@@ -29304,6 +29907,10 @@ export type UnarchiveAgentResponses = {
29304
29907
  */
29305
29908
  hooks?: Array<string>;
29306
29909
  };
29910
+ /**
29911
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
29912
+ */
29913
+ idleCompaction?: boolean;
29307
29914
  } | null;
29308
29915
  /**
29309
29916
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -29331,7 +29938,7 @@ export type UnarchiveAgentResponses = {
29331
29938
  */
29332
29939
  environment_id?: string | null;
29333
29940
  /**
29334
- * 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.
29941
+ * 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.
29335
29942
  */
29336
29943
  vault_ids?: Array<string>;
29337
29944
  /**
@@ -29465,7 +30072,7 @@ export type ListCustomersData = {
29465
30072
  body?: never;
29466
30073
  path: {
29467
30074
  /**
29468
- * Active service agent id from agent creation or listing.
30075
+ * 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_….
29469
30076
  */
29470
30077
  agent_id: string;
29471
30078
  };
@@ -29574,7 +30181,7 @@ export type DeleteCustomerData = {
29574
30181
  body?: never;
29575
30182
  path: {
29576
30183
  /**
29577
- * Active service agent id from agent creation or listing.
30184
+ * 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_….
29578
30185
  */
29579
30186
  agent_id: string;
29580
30187
  /**
@@ -29629,7 +30236,7 @@ export type GetCustomerData = {
29629
30236
  body?: never;
29630
30237
  path: {
29631
30238
  /**
29632
- * Active service agent id from agent creation or listing.
30239
+ * 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_….
29633
30240
  */
29634
30241
  agent_id: string;
29635
30242
  /**
@@ -29733,7 +30340,7 @@ export type GetCustomerDeletionData = {
29733
30340
  body?: never;
29734
30341
  path: {
29735
30342
  /**
29736
- * Active service agent id from agent creation or listing.
30343
+ * 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_….
29737
30344
  */
29738
30345
  agent_id: string;
29739
30346
  /**
@@ -29820,7 +30427,7 @@ export type BlockCustomerData = {
29820
30427
  body?: never;
29821
30428
  path: {
29822
30429
  /**
29823
- * Active service agent id from agent creation or listing.
30430
+ * 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_….
29824
30431
  */
29825
30432
  agent_id: string;
29826
30433
  /**
@@ -29903,7 +30510,7 @@ export type UnblockCustomerData = {
29903
30510
  body?: never;
29904
30511
  path: {
29905
30512
  /**
29906
- * Active service agent id from agent creation or listing.
30513
+ * 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_….
29907
30514
  */
29908
30515
  agent_id: string;
29909
30516
  /**
@@ -29982,7 +30589,7 @@ export type RevokeCustomerTokensData = {
29982
30589
  body?: never;
29983
30590
  path: {
29984
30591
  /**
29985
- * Active service agent id from agent creation or listing.
30592
+ * 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_….
29986
30593
  */
29987
30594
  agent_id: string;
29988
30595
  /**
@@ -30028,7 +30635,7 @@ export type GetAgentAppearanceData = {
30028
30635
  body?: never;
30029
30636
  path: {
30030
30637
  /**
30031
- * Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for.
30638
+ * 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_….
30032
30639
  */
30033
30640
  agent_id: string;
30034
30641
  };
@@ -30339,7 +30946,7 @@ export type CreateCustomerGrantCodeData = {
30339
30946
  };
30340
30947
  path: {
30341
30948
  /**
30342
- * Service agent id (agent_…) or its short identity number, from agent creation or listing.
30949
+ * 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_….
30343
30950
  */
30344
30951
  agent_id: string;
30345
30952
  };
@@ -30415,7 +31022,7 @@ export type CreateCustomerAccessTokenData = {
30415
31022
  };
30416
31023
  path: {
30417
31024
  /**
30418
- * Service agent id (agent_…) or its short identity number, from agent creation or listing.
31025
+ * 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_….
30419
31026
  */
30420
31027
  agent_id: string;
30421
31028
  };
@@ -30489,7 +31096,7 @@ export type RenewCustomerAccessTokenData = {
30489
31096
  body?: never;
30490
31097
  path: {
30491
31098
  /**
30492
- * Service agent id (agent_…) or its short identity number, from agent creation or listing.
31099
+ * 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_….
30493
31100
  */
30494
31101
  agent_id: string;
30495
31102
  };
@@ -30551,7 +31158,7 @@ export type DeleteCurrentCustomerAccessTokenData = {
30551
31158
  body?: never;
30552
31159
  path: {
30553
31160
  /**
30554
- * Service agent id (agent_…) or its short identity number, from agent creation or listing.
31161
+ * 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_….
30555
31162
  */
30556
31163
  agent_id: string;
30557
31164
  };
@@ -36146,11 +36753,11 @@ export type CompactSessionResponses = {
36146
36753
  */
36147
36754
  id: string;
36148
36755
  /**
36149
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36756
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
36150
36757
  */
36151
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36758
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
36152
36759
  /**
36153
- * Why the compaction was skipped or failed; absent otherwise.
36760
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
36154
36761
  */
36155
36762
  reason?: string;
36156
36763
  };
@@ -36167,11 +36774,11 @@ export type CompactSessionResponses = {
36167
36774
  */
36168
36775
  id: string;
36169
36776
  /**
36170
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36777
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
36171
36778
  */
36172
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36779
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
36173
36780
  /**
36174
- * Why the compaction was skipped or failed; absent otherwise.
36781
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
36175
36782
  */
36176
36783
  reason?: string;
36177
36784
  };
@@ -36229,11 +36836,11 @@ export type GetSessionCompactionResponses = {
36229
36836
  */
36230
36837
  id: string;
36231
36838
  /**
36232
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36839
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
36233
36840
  */
36234
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36841
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
36235
36842
  /**
36236
- * Why the compaction was skipped or failed; absent otherwise.
36843
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
36237
36844
  */
36238
36845
  reason?: string;
36239
36846
  };
@@ -36278,6 +36885,27 @@ export type ListSessionCompactionsResponses = {
36278
36885
  * Compaction history
36279
36886
  */
36280
36887
  200: {
36888
+ /**
36889
+ * Current compaction, including queued manual requests; null when none is in progress. Manual takes precedence over automatic work.
36890
+ */
36891
+ active: {
36892
+ /**
36893
+ * Always `session_compaction`. Result of a compaction request.
36894
+ */
36895
+ type: 'session_compaction';
36896
+ /**
36897
+ * Identifier of the active manual operation or automatic compaction record.
36898
+ */
36899
+ id: string;
36900
+ /**
36901
+ * Whether compaction is waiting to start or generating its summary.
36902
+ */
36903
+ status: 'queued' | 'running';
36904
+ /**
36905
+ * Whether a caller requested compaction, the context reached its threshold, or the session compacted while idle.
36906
+ */
36907
+ trigger: 'manual' | 'auto' | 'idle';
36908
+ } | null;
36281
36909
  /**
36282
36910
  * Items of this page, in the order requested by the call.
36283
36911
  */
@@ -36297,7 +36925,7 @@ export type ListSessionCompactionsResponses = {
36297
36925
  /**
36298
36926
  * What started the compaction.
36299
36927
  */
36300
- trigger: 'auto' | 'manual' | 'model_downshift';
36928
+ trigger: 'auto' | 'manual' | 'model_downshift' | 'idle';
36301
36929
  /**
36302
36930
  * Final outcome of the compaction.
36303
36931
  */
@@ -38106,6 +38734,107 @@ export type MetaMethodsRetrieveResponses = {
38106
38734
  200: MetaMethod;
38107
38735
  };
38108
38736
  export type MetaMethodsRetrieveResponse = MetaMethodsRetrieveResponses[keyof MetaMethodsRetrieveResponses];
38737
+ export type MetaDocsRetrieveData = {
38738
+ body?: never;
38739
+ path: {
38740
+ /**
38741
+ * Slash-separated documentation path from docs.search; optionally append #heading-id to select a section.
38742
+ */
38743
+ path: string;
38744
+ };
38745
+ query?: {
38746
+ /**
38747
+ * Documentation language: zh for Chinese (default), en for English.
38748
+ */
38749
+ lang?: 'zh' | 'en';
38750
+ };
38751
+ url: '/meta/v1/docs/{path}';
38752
+ };
38753
+ export type MetaDocsRetrieveErrors = {
38754
+ /**
38755
+ * INVALID_PARAMS: lang must be zh or en; correct the language and retry.
38756
+ */
38757
+ 400: MetaProblem;
38758
+ /**
38759
+ * DOC_NOT_FOUND: page or anchor does not exist; use docs.search to find a valid documentation path.
38760
+ */
38761
+ 404: MetaProblem;
38762
+ };
38763
+ export type MetaDocsRetrieveError = MetaDocsRetrieveErrors[keyof MetaDocsRetrieveErrors];
38764
+ export type MetaDocsRetrieveResponses = {
38765
+ /**
38766
+ * Documentation page as Markdown, never the HTML website.
38767
+ */
38768
+ 200: {
38769
+ /**
38770
+ * Documentation path, including the requested section anchor when present.
38771
+ */
38772
+ path: string;
38773
+ /**
38774
+ * Human-readable title of the documentation page.
38775
+ */
38776
+ title: string;
38777
+ /**
38778
+ * Canonical documentation URL for reading the page in a browser.
38779
+ */
38780
+ url: string;
38781
+ /**
38782
+ * Compiled page Markdown, or only the requested heading section and its subsections.
38783
+ */
38784
+ markdown: string;
38785
+ };
38786
+ };
38787
+ export type MetaDocsRetrieveResponse = MetaDocsRetrieveResponses[keyof MetaDocsRetrieveResponses];
38788
+ export type MetaDocsSearchData = {
38789
+ body?: never;
38790
+ path?: never;
38791
+ query: {
38792
+ /**
38793
+ * Keywords describing the syntax or guide needed, for example export or workflow.
38794
+ */
38795
+ q: string;
38796
+ /**
38797
+ * Maximum number of matching pages returned; integer 1–50, default 20.
38798
+ */
38799
+ limit?: number;
38800
+ /**
38801
+ * Documentation language: zh for Chinese (default), en for English.
38802
+ */
38803
+ lang?: 'zh' | 'en';
38804
+ };
38805
+ url: '/meta/v1/docs/search';
38806
+ };
38807
+ export type MetaDocsSearchErrors = {
38808
+ /**
38809
+ * INVALID_PARAMS: supply nonempty q, limit from 1 to 50 and lang zh or en.
38810
+ */
38811
+ 400: MetaProblem;
38812
+ };
38813
+ export type MetaDocsSearchError = MetaDocsSearchErrors[keyof MetaDocsSearchErrors];
38814
+ export type MetaDocsSearchResponses = {
38815
+ /**
38816
+ * Matching documentation pages; empty when no page contains all keywords.
38817
+ */
38818
+ 200: Array<{
38819
+ /**
38820
+ * Documentation path, including the requested section anchor when present.
38821
+ */
38822
+ path: string;
38823
+ /**
38824
+ * Human-readable title of the documentation page.
38825
+ */
38826
+ title: string;
38827
+ /**
38828
+ * Canonical documentation URL for reading the page in a browser.
38829
+ */
38830
+ url: string;
38831
+ /**
38832
+ * Short excerpt from the matching page to help choose which documentation to retrieve.
38833
+ */
38834
+ snippet: string;
38835
+ }>;
38836
+ };
38837
+ export type MetaDocsSearchResponse = MetaDocsSearchResponses[keyof MetaDocsSearchResponses];
38109
38838
  export type ListModelsData = {
38110
38839
  body?: never;
38111
38840
  path?: never;
@@ -44715,15 +45444,15 @@ export type AgentsListData = {
44715
45444
  limit?: number;
44716
45445
  page?: null | string;
44717
45446
  /**
44718
- * Personal agents use a durable computer; service agents use a clean environment per session.
45447
+ * 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.
44719
45448
  */
44720
- kind?: 'personal' | 'service';
45449
+ kind?: 'general' | 'personal' | 'service' | 'assume';
44721
45450
  };
44722
45451
  url: '/agent/v1/agents';
44723
45452
  };
44724
45453
  export type AgentsListErrors = {
44725
45454
  /**
44726
- * 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.
45455
+ * 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.
44727
45456
  */
44728
45457
  400: AgentError;
44729
45458
  /**
@@ -44769,7 +45498,7 @@ export type AgentsListResponses = {
44769
45498
  /**
44770
45499
  * Model identifier and configuration.
44771
45500
  */
44772
- model: {
45501
+ model?: {
44773
45502
  /**
44774
45503
  * 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.
44775
45504
  */
@@ -44803,7 +45532,7 @@ export type AgentsListResponses = {
44803
45532
  /**
44804
45533
  * 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.
44805
45534
  */
44806
- multiagent: null | AgentManaged39;
45535
+ multiagent?: null | AgentManaged39;
44807
45536
  /**
44808
45537
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
44809
45538
  */
@@ -44867,7 +45596,7 @@ export type AgentsListResponses = {
44867
45596
  */
44868
45597
  note: string | null;
44869
45598
  /**
44870
- * 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.
45599
+ * 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.
44871
45600
  */
44872
45601
  bindings: Array<{
44873
45602
  /**
@@ -44909,9 +45638,9 @@ export type AgentsListResponses = {
44909
45638
  enabled?: boolean;
44910
45639
  }>;
44911
45640
  /**
44912
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
45641
+ * 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.
44913
45642
  */
44914
- kind: 'personal' | 'service';
45643
+ kind: 'general' | 'personal' | 'service' | 'assume';
44915
45644
  /**
44916
45645
  * 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.
44917
45646
  */
@@ -45262,6 +45991,10 @@ export type AgentsListResponses = {
45262
45991
  */
45263
45992
  hooks?: Array<string>;
45264
45993
  };
45994
+ /**
45995
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
45996
+ */
45997
+ idleCompaction?: boolean;
45265
45998
  } | null;
45266
45999
  /**
45267
46000
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -45289,7 +46022,7 @@ export type AgentsListResponses = {
45289
46022
  */
45290
46023
  environment_id?: string | null;
45291
46024
  /**
45292
- * 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.
46025
+ * 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.
45293
46026
  */
45294
46027
  vault_ids?: Array<string>;
45295
46028
  /**
@@ -45307,9 +46040,9 @@ export type AgentsListResponse = AgentsListResponses[keyof AgentsListResponses];
45307
46040
  export type AgentsCreateData = {
45308
46041
  body: {
45309
46042
  /**
45310
- * 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.
46043
+ * 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.
45311
46044
  */
45312
- model: string | {
46045
+ model?: string | {
45313
46046
  /**
45314
46047
  * 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.
45315
46048
  */
@@ -45377,7 +46110,7 @@ export type AgentsCreateData = {
45377
46110
  */
45378
46111
  tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
45379
46112
  /**
45380
- * 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.
46113
+ * 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.
45381
46114
  */
45382
46115
  bindings?: Array<{
45383
46116
  /**
@@ -45419,9 +46152,9 @@ export type AgentsCreateData = {
45419
46152
  enabled?: boolean;
45420
46153
  }>;
45421
46154
  /**
45422
- * 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.
46155
+ * 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.
45423
46156
  */
45424
- kind?: 'personal' | 'service';
46157
+ kind?: 'general' | 'personal' | 'service' | 'assume';
45425
46158
  /**
45426
46159
  * 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.
45427
46160
  */
@@ -45772,6 +46505,10 @@ export type AgentsCreateData = {
45772
46505
  */
45773
46506
  hooks?: Array<string>;
45774
46507
  };
46508
+ /**
46509
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
46510
+ */
46511
+ idleCompaction?: boolean;
45775
46512
  } | null;
45776
46513
  /**
45777
46514
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -45783,7 +46520,7 @@ export type AgentsCreateData = {
45783
46520
  allowed: Array<string>;
45784
46521
  };
45785
46522
  /**
45786
- * 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.
46523
+ * 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.
45787
46524
  */
45788
46525
  avatar?: string | null;
45789
46526
  /**
@@ -45805,7 +46542,7 @@ export type AgentsCreateData = {
45805
46542
  };
45806
46543
  export type AgentsCreateErrors = {
45807
46544
  /**
45808
- * 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.
46545
+ * 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.
45809
46546
  */
45810
46547
  400: AgentError;
45811
46548
  /**
@@ -45851,7 +46588,7 @@ export type AgentsCreateResponses = {
45851
46588
  /**
45852
46589
  * Model identifier and configuration.
45853
46590
  */
45854
- model: {
46591
+ model?: {
45855
46592
  /**
45856
46593
  * 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.
45857
46594
  */
@@ -45885,7 +46622,7 @@ export type AgentsCreateResponses = {
45885
46622
  /**
45886
46623
  * 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.
45887
46624
  */
45888
- multiagent: null | AgentManaged39;
46625
+ multiagent?: null | AgentManaged39;
45889
46626
  /**
45890
46627
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
45891
46628
  */
@@ -45949,7 +46686,7 @@ export type AgentsCreateResponses = {
45949
46686
  */
45950
46687
  note: string | null;
45951
46688
  /**
45952
- * 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.
46689
+ * 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.
45953
46690
  */
45954
46691
  bindings: Array<{
45955
46692
  /**
@@ -45991,9 +46728,9 @@ export type AgentsCreateResponses = {
45991
46728
  enabled?: boolean;
45992
46729
  }>;
45993
46730
  /**
45994
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
46731
+ * 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.
45995
46732
  */
45996
- kind: 'personal' | 'service';
46733
+ kind: 'general' | 'personal' | 'service' | 'assume';
45997
46734
  /**
45998
46735
  * 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.
45999
46736
  */
@@ -46344,6 +47081,10 @@ export type AgentsCreateResponses = {
46344
47081
  */
46345
47082
  hooks?: Array<string>;
46346
47083
  };
47084
+ /**
47085
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
47086
+ */
47087
+ idleCompaction?: boolean;
46347
47088
  } | null;
46348
47089
  /**
46349
47090
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -46371,7 +47112,7 @@ export type AgentsCreateResponses = {
46371
47112
  */
46372
47113
  environment_id?: string | null;
46373
47114
  /**
46374
- * 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.
47115
+ * 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.
46375
47116
  */
46376
47117
  vault_ids?: Array<string>;
46377
47118
  /**
@@ -46385,7 +47126,7 @@ export type AgentsRetrieveData = {
46385
47126
  body?: never;
46386
47127
  path: {
46387
47128
  /**
46388
- * 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.
47129
+ * 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_….
46389
47130
  */
46390
47131
  agent_id: string;
46391
47132
  };
@@ -46446,7 +47187,7 @@ export type AgentsRetrieveResponses = {
46446
47187
  /**
46447
47188
  * Model identifier and configuration.
46448
47189
  */
46449
- model: {
47190
+ model?: {
46450
47191
  /**
46451
47192
  * 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.
46452
47193
  */
@@ -46480,7 +47221,7 @@ export type AgentsRetrieveResponses = {
46480
47221
  /**
46481
47222
  * 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.
46482
47223
  */
46483
- multiagent: null | AgentManaged39;
47224
+ multiagent?: null | AgentManaged39;
46484
47225
  /**
46485
47226
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
46486
47227
  */
@@ -46548,7 +47289,7 @@ export type AgentsRetrieveResponses = {
46548
47289
  */
46549
47290
  note: string | null;
46550
47291
  /**
46551
- * 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.
47292
+ * 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.
46552
47293
  */
46553
47294
  bindings: Array<{
46554
47295
  /**
@@ -46590,9 +47331,9 @@ export type AgentsRetrieveResponses = {
46590
47331
  enabled?: boolean;
46591
47332
  }>;
46592
47333
  /**
46593
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
47334
+ * 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.
46594
47335
  */
46595
- kind: 'personal' | 'service';
47336
+ kind: 'general' | 'personal' | 'service' | 'assume';
46596
47337
  /**
46597
47338
  * 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.
46598
47339
  */
@@ -46943,6 +47684,10 @@ export type AgentsRetrieveResponses = {
46943
47684
  */
46944
47685
  hooks?: Array<string>;
46945
47686
  };
47687
+ /**
47688
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
47689
+ */
47690
+ idleCompaction?: boolean;
46946
47691
  } | null;
46947
47692
  /**
46948
47693
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -46970,7 +47715,7 @@ export type AgentsRetrieveResponses = {
46970
47715
  */
46971
47716
  environment_id?: string | null;
46972
47717
  /**
46973
- * 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.
47718
+ * 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.
46974
47719
  */
46975
47720
  vault_ids?: Array<string>;
46976
47721
  /**
@@ -46997,7 +47742,7 @@ export type AgentsUpdateData = {
46997
47742
  */
46998
47743
  metadata?: null | AgentManaged58Writable;
46999
47744
  /**
47000
- * 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.
47745
+ * 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.
47001
47746
  */
47002
47747
  model?: string | {
47003
47748
  /**
@@ -47109,9 +47854,9 @@ export type AgentsUpdateData = {
47109
47854
  enabled?: boolean;
47110
47855
  }> | null;
47111
47856
  /**
47112
- * 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.
47857
+ * 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.
47113
47858
  */
47114
- kind?: 'personal' | 'service';
47859
+ kind?: 'general' | 'personal' | 'service' | 'assume';
47115
47860
  /**
47116
47861
  * 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.
47117
47862
  */
@@ -47462,6 +48207,10 @@ export type AgentsUpdateData = {
47462
48207
  */
47463
48208
  hooks?: Array<string>;
47464
48209
  };
48210
+ /**
48211
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
48212
+ */
48213
+ idleCompaction?: boolean;
47465
48214
  } | null;
47466
48215
  /**
47467
48216
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -47473,7 +48222,7 @@ export type AgentsUpdateData = {
47473
48222
  allowed: Array<string>;
47474
48223
  };
47475
48224
  /**
47476
- * 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.
48225
+ * 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.
47477
48226
  */
47478
48227
  avatar?: string | null;
47479
48228
  /**
@@ -47491,7 +48240,7 @@ export type AgentsUpdateData = {
47491
48240
  };
47492
48241
  path: {
47493
48242
  /**
47494
- * 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.
48243
+ * 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_….
47495
48244
  */
47496
48245
  agent_id: string;
47497
48246
  };
@@ -47550,7 +48299,7 @@ export type AgentsUpdateResponses = {
47550
48299
  /**
47551
48300
  * Model identifier and configuration.
47552
48301
  */
47553
- model: {
48302
+ model?: {
47554
48303
  /**
47555
48304
  * 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.
47556
48305
  */
@@ -47584,7 +48333,7 @@ export type AgentsUpdateResponses = {
47584
48333
  /**
47585
48334
  * 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.
47586
48335
  */
47587
- multiagent: null | AgentManaged39;
48336
+ multiagent?: null | AgentManaged39;
47588
48337
  /**
47589
48338
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
47590
48339
  */
@@ -47652,7 +48401,7 @@ export type AgentsUpdateResponses = {
47652
48401
  */
47653
48402
  note: string | null;
47654
48403
  /**
47655
- * 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.
48404
+ * 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.
47656
48405
  */
47657
48406
  bindings: Array<{
47658
48407
  /**
@@ -47694,9 +48443,9 @@ export type AgentsUpdateResponses = {
47694
48443
  enabled?: boolean;
47695
48444
  }>;
47696
48445
  /**
47697
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
48446
+ * 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.
47698
48447
  */
47699
- kind: 'personal' | 'service';
48448
+ kind: 'general' | 'personal' | 'service' | 'assume';
47700
48449
  /**
47701
48450
  * 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.
47702
48451
  */
@@ -48047,6 +48796,10 @@ export type AgentsUpdateResponses = {
48047
48796
  */
48048
48797
  hooks?: Array<string>;
48049
48798
  };
48799
+ /**
48800
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
48801
+ */
48802
+ idleCompaction?: boolean;
48050
48803
  } | null;
48051
48804
  /**
48052
48805
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -48074,7 +48827,7 @@ export type AgentsUpdateResponses = {
48074
48827
  */
48075
48828
  environment_id?: string | null;
48076
48829
  /**
48077
- * 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.
48830
+ * 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.
48078
48831
  */
48079
48832
  vault_ids?: Array<string>;
48080
48833
  /**
@@ -48088,7 +48841,7 @@ export type AgentsArchiveData = {
48088
48841
  body?: never;
48089
48842
  path: {
48090
48843
  /**
48091
- * 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.
48844
+ * 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_….
48092
48845
  */
48093
48846
  agent_id: string;
48094
48847
  };
@@ -48139,7 +48892,7 @@ export type AgentsArchiveResponses = {
48139
48892
  /**
48140
48893
  * Model identifier and configuration.
48141
48894
  */
48142
- model: {
48895
+ model?: {
48143
48896
  /**
48144
48897
  * 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.
48145
48898
  */
@@ -48173,7 +48926,7 @@ export type AgentsArchiveResponses = {
48173
48926
  /**
48174
48927
  * 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.
48175
48928
  */
48176
- multiagent: null | AgentManaged39;
48929
+ multiagent?: null | AgentManaged39;
48177
48930
  /**
48178
48931
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
48179
48932
  */
@@ -48237,7 +48990,7 @@ export type AgentsArchiveResponses = {
48237
48990
  */
48238
48991
  note: string | null;
48239
48992
  /**
48240
- * 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.
48993
+ * 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.
48241
48994
  */
48242
48995
  bindings: Array<{
48243
48996
  /**
@@ -48279,9 +49032,9 @@ export type AgentsArchiveResponses = {
48279
49032
  enabled?: boolean;
48280
49033
  }>;
48281
49034
  /**
48282
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
49035
+ * 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.
48283
49036
  */
48284
- kind: 'personal' | 'service';
49037
+ kind: 'general' | 'personal' | 'service' | 'assume';
48285
49038
  /**
48286
49039
  * 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.
48287
49040
  */
@@ -48632,6 +49385,10 @@ export type AgentsArchiveResponses = {
48632
49385
  */
48633
49386
  hooks?: Array<string>;
48634
49387
  };
49388
+ /**
49389
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
49390
+ */
49391
+ idleCompaction?: boolean;
48635
49392
  } | null;
48636
49393
  /**
48637
49394
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -48659,7 +49416,7 @@ export type AgentsArchiveResponses = {
48659
49416
  */
48660
49417
  environment_id?: string | null;
48661
49418
  /**
48662
- * 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.
49419
+ * 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.
48663
49420
  */
48664
49421
  vault_ids?: Array<string>;
48665
49422
  /**
@@ -48673,7 +49430,7 @@ export type AgentsVersionsListData = {
48673
49430
  body?: never;
48674
49431
  path: {
48675
49432
  /**
48676
- * 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.
49433
+ * 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_….
48677
49434
  */
48678
49435
  agent_id: string;
48679
49436
  };
@@ -48738,7 +49495,7 @@ export type AgentsVersionsListResponses = {
48738
49495
  /**
48739
49496
  * Model identifier and configuration.
48740
49497
  */
48741
- model: {
49498
+ model?: {
48742
49499
  /**
48743
49500
  * 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.
48744
49501
  */
@@ -48772,7 +49529,7 @@ export type AgentsVersionsListResponses = {
48772
49529
  /**
48773
49530
  * 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.
48774
49531
  */
48775
- multiagent: null | AgentManaged39;
49532
+ multiagent?: null | AgentManaged39;
48776
49533
  /**
48777
49534
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
48778
49535
  */
@@ -48840,7 +49597,7 @@ export type AgentsVersionsListResponses = {
48840
49597
  */
48841
49598
  note: string | null;
48842
49599
  /**
48843
- * 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.
49600
+ * 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.
48844
49601
  */
48845
49602
  bindings: Array<{
48846
49603
  /**
@@ -48882,9 +49639,9 @@ export type AgentsVersionsListResponses = {
48882
49639
  enabled?: boolean;
48883
49640
  }>;
48884
49641
  /**
48885
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
49642
+ * 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.
48886
49643
  */
48887
- kind: 'personal' | 'service';
49644
+ kind: 'general' | 'personal' | 'service' | 'assume';
48888
49645
  /**
48889
49646
  * 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.
48890
49647
  */
@@ -49235,6 +49992,10 @@ export type AgentsVersionsListResponses = {
49235
49992
  */
49236
49993
  hooks?: Array<string>;
49237
49994
  };
49995
+ /**
49996
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
49997
+ */
49998
+ idleCompaction?: boolean;
49238
49999
  } | null;
49239
50000
  /**
49240
50001
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -49262,7 +50023,7 @@ export type AgentsVersionsListResponses = {
49262
50023
  */
49263
50024
  environment_id?: string | null;
49264
50025
  /**
49265
- * 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.
50026
+ * 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.
49266
50027
  */
49267
50028
  vault_ids?: Array<string>;
49268
50029
  /**
@@ -49669,7 +50430,7 @@ export type SessionsCreateData = {
49669
50430
  };
49670
50431
  export type SessionsCreateErrors = {
49671
50432
  /**
49672
- * 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.
50433
+ * 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).
49673
50434
  */
49674
50435
  400: AgentError;
49675
50436
  /**
@@ -50478,7 +51239,7 @@ export type SessionsEventsListResponses = {
50478
51239
  */
50479
51240
  behavior: 'allow';
50480
51241
  /**
50481
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
51242
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
50482
51243
  */
50483
51244
  destination: 'agent' | 'session';
50484
51245
  /**
@@ -50616,7 +51377,7 @@ export type SessionsEventsListResponses = {
50616
51377
  */
50617
51378
  behavior: 'allow';
50618
51379
  /**
50619
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
51380
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
50620
51381
  */
50621
51382
  destination: 'agent' | 'session';
50622
51383
  /**
@@ -51691,7 +52452,7 @@ export type SessionsThreadsEventsListResponses = {
51691
52452
  */
51692
52453
  behavior: 'allow';
51693
52454
  /**
51694
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
52455
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
51695
52456
  */
51696
52457
  destination: 'agent' | 'session';
51697
52458
  /**
@@ -51829,7 +52590,7 @@ export type SessionsThreadsEventsListResponses = {
51829
52590
  */
51830
52591
  behavior: 'allow';
51831
52592
  /**
51832
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
52593
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
51833
52594
  */
51834
52595
  destination: 'agent' | 'session';
51835
52596
  /**
@@ -52836,11 +53597,11 @@ export type DeploymentsListResponses = {
52836
53597
  */
52837
53598
  budget?: null | AgentManaged76;
52838
53599
  /**
52839
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
53600
+ * 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.
52840
53601
  */
52841
53602
  target: {
52842
53603
  /**
52843
- * environment uses an environment recipe; computer uses the personal agent computer.
53604
+ * environment uses an environment recipe; computer uses the agent computer.
52844
53605
  */
52845
53606
  type: 'environment' | 'computer';
52846
53607
  };
@@ -52946,11 +53707,11 @@ export type DeploymentsCreateData = {
52946
53707
  */
52947
53708
  vault_ids?: Array<string>;
52948
53709
  /**
52949
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
53710
+ * 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.
52950
53711
  */
52951
53712
  target?: {
52952
53713
  /**
52953
- * environment uses an environment recipe; computer uses the personal agent computer.
53714
+ * environment uses an environment recipe; computer uses the agent computer.
52954
53715
  */
52955
53716
  type: 'environment' | 'computer';
52956
53717
  };
@@ -53106,11 +53867,11 @@ export type DeploymentsCreateResponses = {
53106
53867
  */
53107
53868
  budget?: null | AgentManaged76;
53108
53869
  /**
53109
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
53870
+ * 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.
53110
53871
  */
53111
53872
  target: {
53112
53873
  /**
53113
- * environment uses an environment recipe; computer uses the personal agent computer.
53874
+ * environment uses an environment recipe; computer uses the agent computer.
53114
53875
  */
53115
53876
  type: 'environment' | 'computer';
53116
53877
  };
@@ -53275,11 +54036,11 @@ export type DeploymentsRetrieveResponses = {
53275
54036
  */
53276
54037
  budget?: null | AgentManaged76;
53277
54038
  /**
53278
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
54039
+ * 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.
53279
54040
  */
53280
54041
  target: {
53281
54042
  /**
53282
- * environment uses an environment recipe; computer uses the personal agent computer.
54043
+ * environment uses an environment recipe; computer uses the agent computer.
53283
54044
  */
53284
54045
  type: 'environment' | 'computer';
53285
54046
  };
@@ -53382,11 +54143,11 @@ export type DeploymentsUpdateData = {
53382
54143
  */
53383
54144
  vault_ids?: null | Array<string>;
53384
54145
  /**
53385
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
54146
+ * 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.
53386
54147
  */
53387
54148
  target?: {
53388
54149
  /**
53389
- * environment uses an environment recipe; computer uses the personal agent computer.
54150
+ * environment uses an environment recipe; computer uses the agent computer.
53390
54151
  */
53391
54152
  type: 'environment' | 'computer';
53392
54153
  };
@@ -53555,11 +54316,11 @@ export type DeploymentsUpdateResponses = {
53555
54316
  */
53556
54317
  budget?: null | AgentManaged76;
53557
54318
  /**
53558
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
54319
+ * 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.
53559
54320
  */
53560
54321
  target: {
53561
54322
  /**
53562
- * environment uses an environment recipe; computer uses the personal agent computer.
54323
+ * environment uses an environment recipe; computer uses the agent computer.
53563
54324
  */
53564
54325
  type: 'environment' | 'computer';
53565
54326
  };
@@ -53724,11 +54485,11 @@ export type DeploymentsArchiveResponses = {
53724
54485
  */
53725
54486
  budget?: null | AgentManaged76;
53726
54487
  /**
53727
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
54488
+ * 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.
53728
54489
  */
53729
54490
  target: {
53730
54491
  /**
53731
- * environment uses an environment recipe; computer uses the personal agent computer.
54492
+ * environment uses an environment recipe; computer uses the agent computer.
53732
54493
  */
53733
54494
  type: 'environment' | 'computer';
53734
54495
  };
@@ -53897,11 +54658,11 @@ export type DeploymentsPauseResponses = {
53897
54658
  */
53898
54659
  budget?: null | AgentManaged76;
53899
54660
  /**
53900
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
54661
+ * 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.
53901
54662
  */
53902
54663
  target: {
53903
54664
  /**
53904
- * environment uses an environment recipe; computer uses the personal agent computer.
54665
+ * environment uses an environment recipe; computer uses the agent computer.
53905
54666
  */
53906
54667
  type: 'environment' | 'computer';
53907
54668
  };
@@ -54070,11 +54831,11 @@ export type DeploymentsUnpauseResponses = {
54070
54831
  */
54071
54832
  budget?: null | AgentManaged76;
54072
54833
  /**
54073
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
54834
+ * 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.
54074
54835
  */
54075
54836
  target: {
54076
54837
  /**
54077
- * environment uses an environment recipe; computer uses the personal agent computer.
54838
+ * environment uses an environment recipe; computer uses the agent computer.
54078
54839
  */
54079
54840
  type: 'environment' | 'computer';
54080
54841
  };
@@ -57883,7 +58644,7 @@ export type AutomationRunsCreateData = {
57883
58644
  [key: string]: string;
57884
58645
  };
57885
58646
  /**
57886
- * Positive integer seconds up to 604,800. Scripts default to and are capped at 300 seconds; workflows default to 86,400 seconds and allow up to seven days.
58647
+ * Positive integer seconds up to 2,592,000. Scripts default to and are capped at 300 seconds; workflows default to 86,400 seconds and allow up to 30 days.
57887
58648
  */
57888
58649
  deadline_seconds?: number;
57889
58650
  } | {
@@ -57910,7 +58671,7 @@ export type AutomationRunsCreateData = {
57910
58671
  [key: string]: string;
57911
58672
  };
57912
58673
  /**
57913
- * Positive integer seconds up to 604,800. Scripts default to and are capped at 300 seconds; workflows default to 86,400 seconds and allow up to seven days.
58674
+ * Positive integer seconds up to 2,592,000. Scripts default to and are capped at 300 seconds; workflows default to 86,400 seconds and allow up to 30 days.
57914
58675
  */
57915
58676
  deadline_seconds?: number;
57916
58677
  };
@@ -59430,6 +60191,565 @@ export type AutomationHooksReceiveResponses = {
59430
60191
  202: AutomationFiring;
59431
60192
  };
59432
60193
  export type AutomationHooksReceiveResponse = AutomationHooksReceiveResponses[keyof AutomationHooksReceiveResponses];
60194
+ export type AutomationHumanTasksListData = {
60195
+ body?: never;
60196
+ path?: never;
60197
+ query?: {
60198
+ /**
60199
+ * Page size, 1–100, default 50.
60200
+ */
60201
+ limit?: number;
60202
+ /**
60203
+ * The next_cursor of the previous page; omit for the first page.
60204
+ */
60205
+ cursor?: string;
60206
+ /**
60207
+ * Filter by status, comma-separated: open, completed, expired, cancelled. Defaults to open.
60208
+ */
60209
+ status?: Array<AutomationHumanTaskStatus>;
60210
+ /**
60211
+ * Only tasks opened by this run (run_).
60212
+ */
60213
+ run_id?: string;
60214
+ /**
60215
+ * assigned (default) lists only tasks assigned to the caller; all lists every task of the organization.
60216
+ */
60217
+ scope?: 'assigned' | 'all';
60218
+ };
60219
+ url: '/automation/v1/human-tasks';
60220
+ };
60221
+ export type AutomationHumanTasksListErrors = {
60222
+ /**
60223
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60224
+ */
60225
+ 400: AutomationAutomationProblemDetails;
60226
+ /**
60227
+ * RFC 9457 automation problem. 429 includes Retry-After.
60228
+ */
60229
+ default: AutomationAutomationProblemDetails;
60230
+ };
60231
+ export type AutomationHumanTasksListError = AutomationHumanTasksListErrors[keyof AutomationHumanTasksListErrors];
60232
+ export type AutomationHumanTasksListResponses = {
60233
+ /**
60234
+ * Success
60235
+ */
60236
+ 200: {
60237
+ /**
60238
+ * Human tasks on this page, newest first.
60239
+ */
60240
+ data: Array<AutomationHumanTask>;
60241
+ /**
60242
+ * Cursor for the next page, passed back as cursor; null when there are no more.
60243
+ */
60244
+ next_cursor: string | null;
60245
+ };
60246
+ };
60247
+ export type AutomationHumanTasksListResponse = AutomationHumanTasksListResponses[keyof AutomationHumanTasksListResponses];
60248
+ export type AutomationHumanTasksGetData = {
60249
+ body?: never;
60250
+ path: {
60251
+ /**
60252
+ * Human task ID (htask_), from the list or the run's waits.
60253
+ */
60254
+ id: string;
60255
+ };
60256
+ query?: never;
60257
+ url: '/automation/v1/human-tasks/{id}';
60258
+ };
60259
+ export type AutomationHumanTasksGetErrors = {
60260
+ /**
60261
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60262
+ */
60263
+ 400: AutomationAutomationProblemDetails;
60264
+ /**
60265
+ * HUMAN_TASK_NOT_FOUND: The human task does not exist or belongs to another organization; take the htask_ ID from the human-tasks list or the run's waits.
60266
+ */
60267
+ 404: AutomationAutomationProblemDetails;
60268
+ /**
60269
+ * RFC 9457 automation problem. 429 includes Retry-After.
60270
+ */
60271
+ default: AutomationAutomationProblemDetails;
60272
+ };
60273
+ export type AutomationHumanTasksGetError = AutomationHumanTasksGetErrors[keyof AutomationHumanTasksGetErrors];
60274
+ export type AutomationHumanTasksGetResponses = {
60275
+ /**
60276
+ * Success
60277
+ */
60278
+ 200: AutomationHumanTask;
60279
+ };
60280
+ export type AutomationHumanTasksGetResponse = AutomationHumanTasksGetResponses[keyof AutomationHumanTasksGetResponses];
60281
+ export type AutomationHumanTasksRespondData = {
60282
+ body: AutomationHumanTaskRespondInput;
60283
+ headers?: {
60284
+ /**
60285
+ * Optional; 1–256 characters. Within 24 hours, the same key replays the first response with Idempotent-Replayed: true; a different request body returns 422; an in-flight request returns 409.
60286
+ */
60287
+ 'Idempotency-Key'?: string;
60288
+ };
60289
+ path: {
60290
+ /**
60291
+ * Human task ID (htask_).
60292
+ */
60293
+ id: string;
60294
+ };
60295
+ query?: never;
60296
+ url: '/automation/v1/human-tasks/{id}/respond';
60297
+ };
60298
+ export type AutomationHumanTasksRespondErrors = {
60299
+ /**
60300
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60301
+ * COMMENT_REQUIRED: The chosen action requires a comment (require_comment: true); retry with comment set.
60302
+ * INVALID_ACTION: action_id is not one of the task's actions; read the task's actions for the valid ids.
60303
+ * INVALID_VALUES: values do not match the task's form_schema (unknown field, missing required field, wrong type or out-of-range value), or comment exceeds 4000 characters.
60304
+ */
60305
+ 400: AutomationAutomationProblemDetails;
60306
+ /**
60307
+ * NOT_ASSIGNED: The caller is not an assignee of this task, it is not yet their turn in sequential mode, or (for cancel) the caller is neither the run's initiator nor an organization API key.
60308
+ * SELF_APPROVAL: The person who started the run cannot respond to, or be delegated, their own request unless the workflow set allow_self_approval: true.
60309
+ * AGENT_NOT_ALLOWED: The request comes from an agent (an agent session or run token) and the task did not set allow_agent_decision: true; the person must respond from the Console or with their own credential.
60310
+ */
60311
+ 403: AutomationAutomationProblemDetails;
60312
+ /**
60313
+ * HUMAN_TASK_NOT_FOUND: The human task does not exist or belongs to another organization; take the htask_ ID from the human-tasks list or the run's waits.
60314
+ */
60315
+ 404: AutomationAutomationProblemDetails;
60316
+ /**
60317
+ * TASK_CLOSED: The task is already closed (decided, expired or cancelled) or past due_at; it no longer accepts responses, delegation or cancellation. Retrieve the task to read its outcome.
60318
+ * ALREADY_RESPONDED: The caller already responded; each assignee responds once.
60319
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
60320
+ */
60321
+ 409: AutomationAutomationProblemDetails;
60322
+ /**
60323
+ * IDEMPOTENCY_KEY_MISMATCH: The idempotency key was already used for different request content.
60324
+ */
60325
+ 422: AutomationAutomationProblemDetails;
60326
+ /**
60327
+ * RFC 9457 automation problem. 429 includes Retry-After.
60328
+ */
60329
+ default: AutomationAutomationProblemDetails;
60330
+ };
60331
+ export type AutomationHumanTasksRespondError = AutomationHumanTasksRespondErrors[keyof AutomationHumanTasksRespondErrors];
60332
+ export type AutomationHumanTasksRespondResponses = {
60333
+ /**
60334
+ * Success
60335
+ */
60336
+ 200: AutomationHumanTask;
60337
+ };
60338
+ export type AutomationHumanTasksRespondResponse = AutomationHumanTasksRespondResponses[keyof AutomationHumanTasksRespondResponses];
60339
+ export type AutomationHumanTasksCancelData = {
60340
+ body?: AutomationHumanTaskCancelInput;
60341
+ headers?: {
60342
+ /**
60343
+ * Optional; 1–256 characters. Within 24 hours, the same key replays the first response with Idempotent-Replayed: true; a different request body returns 422; an in-flight request returns 409.
60344
+ */
60345
+ 'Idempotency-Key'?: string;
60346
+ };
60347
+ path: {
60348
+ /**
60349
+ * Human task ID (htask_).
60350
+ */
60351
+ id: string;
60352
+ };
60353
+ query?: never;
60354
+ url: '/automation/v1/human-tasks/{id}/cancel';
60355
+ };
60356
+ export type AutomationHumanTasksCancelErrors = {
60357
+ /**
60358
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60359
+ */
60360
+ 400: AutomationAutomationProblemDetails;
60361
+ /**
60362
+ * NOT_ASSIGNED: The caller is not an assignee of this task, it is not yet their turn in sequential mode, or (for cancel) the caller is neither the run's initiator nor an organization API key.
60363
+ */
60364
+ 403: AutomationAutomationProblemDetails;
60365
+ /**
60366
+ * HUMAN_TASK_NOT_FOUND: The human task does not exist or belongs to another organization; take the htask_ ID from the human-tasks list or the run's waits.
60367
+ */
60368
+ 404: AutomationAutomationProblemDetails;
60369
+ /**
60370
+ * TASK_CLOSED: The task is already closed (decided, expired or cancelled) or past due_at; it no longer accepts responses, delegation or cancellation. Retrieve the task to read its outcome.
60371
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
60372
+ */
60373
+ 409: AutomationAutomationProblemDetails;
60374
+ /**
60375
+ * IDEMPOTENCY_KEY_MISMATCH: The idempotency key was already used for different request content.
60376
+ */
60377
+ 422: AutomationAutomationProblemDetails;
60378
+ /**
60379
+ * RFC 9457 automation problem. 429 includes Retry-After.
60380
+ */
60381
+ default: AutomationAutomationProblemDetails;
60382
+ };
60383
+ export type AutomationHumanTasksCancelError = AutomationHumanTasksCancelErrors[keyof AutomationHumanTasksCancelErrors];
60384
+ export type AutomationHumanTasksCancelResponses = {
60385
+ /**
60386
+ * Success
60387
+ */
60388
+ 200: AutomationHumanTask;
60389
+ };
60390
+ export type AutomationHumanTasksCancelResponse = AutomationHumanTasksCancelResponses[keyof AutomationHumanTasksCancelResponses];
60391
+ export type AutomationHumanTasksDelegateData = {
60392
+ body: AutomationHumanTaskDelegateInput;
60393
+ path: {
60394
+ /**
60395
+ * Human task ID (htask_).
60396
+ */
60397
+ id: string;
60398
+ };
60399
+ query?: never;
60400
+ url: '/automation/v1/human-tasks/{id}/delegate';
60401
+ };
60402
+ export type AutomationHumanTasksDelegateErrors = {
60403
+ /**
60404
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60405
+ */
60406
+ 400: AutomationAutomationProblemDetails;
60407
+ /**
60408
+ * NOT_ASSIGNED: The caller is not an assignee of this task, it is not yet their turn in sequential mode, or (for cancel) the caller is neither the run's initiator nor an organization API key.
60409
+ * SELF_APPROVAL: The person who started the run cannot respond to, or be delegated, their own request unless the workflow set allow_self_approval: true.
60410
+ */
60411
+ 403: AutomationAutomationProblemDetails;
60412
+ /**
60413
+ * HUMAN_TASK_NOT_FOUND: The human task does not exist or belongs to another organization; take the htask_ ID from the human-tasks list or the run's waits.
60414
+ */
60415
+ 404: AutomationAutomationProblemDetails;
60416
+ /**
60417
+ * TASK_CLOSED: The task is already closed (decided, expired or cancelled) or past due_at; it no longer accepts responses, delegation or cancellation. Retrieve the task to read its outcome.
60418
+ * ALREADY_RESPONDED: The caller already responded; each assignee responds once.
60419
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
60420
+ */
60421
+ 409: AutomationAutomationProblemDetails;
60422
+ /**
60423
+ * RFC 9457 automation problem. 429 includes Retry-After.
60424
+ */
60425
+ default: AutomationAutomationProblemDetails;
60426
+ };
60427
+ export type AutomationHumanTasksDelegateError = AutomationHumanTasksDelegateErrors[keyof AutomationHumanTasksDelegateErrors];
60428
+ export type AutomationHumanTasksDelegateResponses = {
60429
+ /**
60430
+ * Success
60431
+ */
60432
+ 200: AutomationHumanTask;
60433
+ };
60434
+ export type AutomationHumanTasksDelegateResponse = AutomationHumanTasksDelegateResponses[keyof AutomationHumanTasksDelegateResponses];
60435
+ export type CanvasListCanvasesData = {
60436
+ body?: never;
60437
+ path?: never;
60438
+ query?: {
60439
+ /**
60440
+ * Maximum canvases to return per page, from 1 to 100; defaults to 50 when omitted.
60441
+ */
60442
+ limit?: number;
60443
+ /**
60444
+ * Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.
60445
+ */
60446
+ cursor?: string;
60447
+ };
60448
+ url: '/canvas/v1/canvases';
60449
+ };
60450
+ export type CanvasListCanvasesErrors = {
60451
+ /**
60452
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60453
+ */
60454
+ 400: CanvasCanvasError;
60455
+ /**
60456
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60457
+ */
60458
+ 401: CanvasCanvasError;
60459
+ /**
60460
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60461
+ */
60462
+ 403: CanvasCanvasError;
60463
+ /**
60464
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60465
+ */
60466
+ 500: CanvasCanvasError;
60467
+ };
60468
+ export type CanvasListCanvasesError = CanvasListCanvasesErrors[keyof CanvasListCanvasesErrors];
60469
+ export type CanvasListCanvasesResponses = {
60470
+ /**
60471
+ * One page of organization canvases, ordered by most recently updated first.
60472
+ */
60473
+ 200: CanvasCanvasPage;
60474
+ };
60475
+ export type CanvasListCanvasesResponse = CanvasListCanvasesResponses[keyof CanvasListCanvasesResponses];
60476
+ export type CanvasCreateCanvasData = {
60477
+ /**
60478
+ * Optional display name for the new canvas; omit the body or send an empty object to use Untitled.
60479
+ */
60480
+ body?: CanvasCreateCanvasInput;
60481
+ path?: never;
60482
+ query?: never;
60483
+ url: '/canvas/v1/canvases';
60484
+ };
60485
+ export type CanvasCreateCanvasErrors = {
60486
+ /**
60487
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60488
+ */
60489
+ 400: CanvasCanvasError;
60490
+ /**
60491
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60492
+ */
60493
+ 401: CanvasCanvasError;
60494
+ /**
60495
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60496
+ */
60497
+ 403: CanvasCanvasError;
60498
+ /**
60499
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60500
+ */
60501
+ 500: CanvasCanvasError;
60502
+ };
60503
+ export type CanvasCreateCanvasError = CanvasCreateCanvasErrors[keyof CanvasCreateCanvasErrors];
60504
+ export type CanvasCreateCanvasResponses = {
60505
+ /**
60506
+ * The newly created canvas; use id for API calls and viewer_url to watch it in Console.
60507
+ */
60508
+ 201: CanvasCanvas;
60509
+ };
60510
+ export type CanvasCreateCanvasResponse = CanvasCreateCanvasResponses[keyof CanvasCreateCanvasResponses];
60511
+ export type CanvasDeleteCanvasData = {
60512
+ body?: never;
60513
+ path: {
60514
+ /**
60515
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
60516
+ */
60517
+ canvas_id: string;
60518
+ };
60519
+ query?: never;
60520
+ url: '/canvas/v1/canvases/{canvas_id}';
60521
+ };
60522
+ export type CanvasDeleteCanvasErrors = {
60523
+ /**
60524
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60525
+ */
60526
+ 400: CanvasCanvasError;
60527
+ /**
60528
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60529
+ */
60530
+ 401: CanvasCanvasError;
60531
+ /**
60532
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60533
+ */
60534
+ 403: CanvasCanvasError;
60535
+ /**
60536
+ * 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.
60537
+ */
60538
+ 404: CanvasCanvasError;
60539
+ /**
60540
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60541
+ */
60542
+ 500: CanvasCanvasError;
60543
+ };
60544
+ export type CanvasDeleteCanvasError = CanvasDeleteCanvasErrors[keyof CanvasDeleteCanvasErrors];
60545
+ export type CanvasDeleteCanvasResponses = {
60546
+ /**
60547
+ * Confirmation that this canvas has been permanently deleted.
60548
+ */
60549
+ 200: CanvasDeletedCanvas;
60550
+ };
60551
+ export type CanvasDeleteCanvasResponse = CanvasDeleteCanvasResponses[keyof CanvasDeleteCanvasResponses];
60552
+ export type CanvasRetrieveCanvasData = {
60553
+ body?: never;
60554
+ path: {
60555
+ /**
60556
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
60557
+ */
60558
+ canvas_id: string;
60559
+ };
60560
+ query?: never;
60561
+ url: '/canvas/v1/canvases/{canvas_id}';
60562
+ };
60563
+ export type CanvasRetrieveCanvasErrors = {
60564
+ /**
60565
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60566
+ */
60567
+ 400: CanvasCanvasError;
60568
+ /**
60569
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60570
+ */
60571
+ 401: CanvasCanvasError;
60572
+ /**
60573
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60574
+ */
60575
+ 403: CanvasCanvasError;
60576
+ /**
60577
+ * 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.
60578
+ */
60579
+ 404: CanvasCanvasError;
60580
+ /**
60581
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60582
+ */
60583
+ 500: CanvasCanvasError;
60584
+ };
60585
+ export type CanvasRetrieveCanvasError = CanvasRetrieveCanvasErrors[keyof CanvasRetrieveCanvasErrors];
60586
+ export type CanvasRetrieveCanvasResponses = {
60587
+ /**
60588
+ * Current canvas metadata, top-level frame summaries and reusable components.
60589
+ */
60590
+ 200: CanvasCanvasDetail;
60591
+ };
60592
+ export type CanvasRetrieveCanvasResponse = CanvasRetrieveCanvasResponses[keyof CanvasRetrieveCanvasResponses];
60593
+ export type CanvasListNodesData = {
60594
+ body?: never;
60595
+ path: {
60596
+ /**
60597
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
60598
+ */
60599
+ canvas_id: string;
60600
+ };
60601
+ query: {
60602
+ /**
60603
+ * Comma-separated list of 1–100 node ids from retrieve or execute, or instance paths such as a/b; missing ids map to null.
60604
+ */
60605
+ ids: string;
60606
+ /**
60607
+ * 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.
60608
+ */
60609
+ depth?: number;
60610
+ };
60611
+ url: '/canvas/v1/canvases/{canvas_id}/nodes';
60612
+ };
60613
+ export type CanvasListNodesErrors = {
60614
+ /**
60615
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60616
+ */
60617
+ 400: CanvasCanvasError;
60618
+ /**
60619
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60620
+ */
60621
+ 401: CanvasCanvasError;
60622
+ /**
60623
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60624
+ */
60625
+ 403: CanvasCanvasError;
60626
+ /**
60627
+ * 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.
60628
+ */
60629
+ 404: CanvasCanvasError;
60630
+ /**
60631
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60632
+ */
60633
+ 500: CanvasCanvasError;
60634
+ };
60635
+ export type CanvasListNodesError = CanvasListNodesErrors[keyof CanvasListNodesErrors];
60636
+ export type CanvasListNodesResponses = {
60637
+ /**
60638
+ * Current revision and requested node documents; absent ids map to null rather than failing the request.
60639
+ */
60640
+ 200: CanvasNodesResult;
60641
+ };
60642
+ export type CanvasListNodesResponse = CanvasListNodesResponses[keyof CanvasListNodesResponses];
60643
+ export type CanvasListImagesData = {
60644
+ body?: never;
60645
+ path: {
60646
+ /**
60647
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
60648
+ */
60649
+ canvas_id: string;
60650
+ };
60651
+ query: {
60652
+ /**
60653
+ * Comma-separated list of 1–4 node ids to render, from retrieve, execute.created or execute.screenshots.
60654
+ */
60655
+ ids: string;
60656
+ /**
60657
+ * Output pixel scale relative to canvas dimensions, from 0.25 to 4 inclusive; defaults to 1 when omitted.
60658
+ */
60659
+ scale?: number;
60660
+ /**
60661
+ * Image encoding; png produces a PNG data URL and is the only supported value. Omit to use png.
60662
+ */
60663
+ format?: 'png';
60664
+ };
60665
+ url: '/canvas/v1/canvases/{canvas_id}/images';
60666
+ };
60667
+ export type CanvasListImagesErrors = {
60668
+ /**
60669
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60670
+ */
60671
+ 400: CanvasCanvasError;
60672
+ /**
60673
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60674
+ */
60675
+ 401: CanvasCanvasError;
60676
+ /**
60677
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60678
+ */
60679
+ 403: CanvasCanvasError;
60680
+ /**
60681
+ * 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.
60682
+ */
60683
+ 404: CanvasCanvasError;
60684
+ /**
60685
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60686
+ */
60687
+ 500: CanvasCanvasError;
60688
+ /**
60689
+ * RENDER_FAILED occurs when rendering cannot complete; retry the render later, using nodes.list to inspect the design in the meantime.
60690
+ */
60691
+ 503: CanvasCanvasError;
60692
+ };
60693
+ export type CanvasListImagesError = CanvasListImagesErrors[keyof CanvasListImagesErrors];
60694
+ export type CanvasListImagesResponses = {
60695
+ /**
60696
+ * A node-id-to-PNG-data-URL map, with err=null; individual unavailable images have null values.
60697
+ */
60698
+ 200: CanvasImagesResult;
60699
+ };
60700
+ export type CanvasListImagesResponse = CanvasListImagesResponses[keyof CanvasListImagesResponses];
60701
+ export type CanvasExecuteData = {
60702
+ /**
60703
+ * Either new script source or the edit_id of a failed script with replacement edits; expected_version optionally guards against concurrent changes.
60704
+ */
60705
+ body: CanvasExecuteInput;
60706
+ path: {
60707
+ /**
60708
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
60709
+ */
60710
+ canvas_id: string;
60711
+ };
60712
+ query?: never;
60713
+ url: '/canvas/v1/canvases/{canvas_id}:execute';
60714
+ };
60715
+ export type CanvasExecuteErrors = {
60716
+ /**
60717
+ * 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.
60718
+ */
60719
+ 400: CanvasCanvasError;
60720
+ /**
60721
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60722
+ */
60723
+ 401: CanvasCanvasError;
60724
+ /**
60725
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60726
+ */
60727
+ 403: CanvasCanvasError;
60728
+ /**
60729
+ * 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.
60730
+ */
60731
+ 404: CanvasCanvasError;
60732
+ /**
60733
+ * 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.
60734
+ */
60735
+ 409: CanvasCanvasError;
60736
+ /**
60737
+ * CANVAS_BUSY means the same canvas has more than four calls queued; wait for pending work to finish before retrying.
60738
+ */
60739
+ 429: CanvasCanvasError;
60740
+ /**
60741
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60742
+ */
60743
+ 500: CanvasCanvasError;
60744
+ };
60745
+ export type CanvasExecuteError = CanvasExecuteErrors[keyof CanvasExecuteErrors];
60746
+ export type CanvasExecuteResponses = {
60747
+ /**
60748
+ * Committed revision, operation results and viewer URL; screenshots contains node ids to pass to images.list.
60749
+ */
60750
+ 200: CanvasExecuteResult;
60751
+ };
60752
+ export type CanvasExecuteResponse = CanvasExecuteResponses[keyof CanvasExecuteResponses];
59433
60753
  export type DatabaseListDatabasesData = {
59434
60754
  body?: never;
59435
60755
  path?: never;
@@ -62524,7 +63844,7 @@ export type MediaUploadAssetData = {
62524
63844
  */
62525
63845
  filename_override?: string;
62526
63846
  /**
62527
- * Allow replacing an existing public_id, preserving its asset_id and increasing its version. False returns the existing resource without replacing it; defaults to true.
63847
+ * Allow replacing an existing public_id, preserving its asset_id and increasing its version. Only the latest version is deliverable; old version URLs return 404. Create a new public_id to retain old deliveries. False returns the existing resource without replacing it; defaults to true.
62528
63848
  */
62529
63849
  overwrite?: boolean;
62530
63850
  /**
@@ -62621,7 +63941,7 @@ export type MediaImportAssetData = {
62621
63941
  */
62622
63942
  body: {
62623
63943
  /**
62624
- * File ID to copy into this library; passed as the upload source instead of file bytes.
63944
+ * File ID to copy into this library; passed as the upload source instead of file bytes. This creates an independent public copy readable without authentication. Deleting the source File does not delete this asset; do not import confidential content.
62625
63945
  */
62626
63946
  file_id: string;
62627
63947
  /**
@@ -62657,7 +63977,7 @@ export type MediaImportAssetData = {
62657
63977
  */
62658
63978
  filename_override?: string;
62659
63979
  /**
62660
- * Allow replacing an existing public_id, preserving its asset_id and increasing its version. False returns the existing resource without replacing it; defaults to true.
63980
+ * Allow replacing an existing public_id, preserving its asset_id and increasing its version. Only the latest version is deliverable; old version URLs return 404. Create a new public_id to retain old deliveries. False returns the existing resource without replacing it; defaults to true.
62661
63981
  */
62662
63982
  overwrite?: boolean;
62663
63983
  /**
@@ -63116,7 +64436,7 @@ export type MediaExpressionSearchData = {
63116
64436
  */
63117
64437
  body: {
63118
64438
  /**
63119
- * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets.
64439
+ * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context.
63120
64440
  */
63121
64441
  expression?: string;
63122
64442
  /**