@deepraxis/sdk 0.1.1-dev.0bd6238 → 0.1.1-dev.11a1f3c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 = {
@@ -7923,9 +7948,9 @@ export type ApplicationApplicationError = {
7923
7948
  */
7924
7949
  error: {
7925
7950
  /**
7926
- * Error code: *_NOT_FOUND (404; also for objects of another account), WORKER_NAME_TAKEN (409), WORKER_INVALID_STATE (409), DEPLOYMENT_IN_PROGRESS (409, retry later), INVALID_PARAMS (400), UNSUPPORTED (400, a Cloudflare feature this platform does not offer), LIMIT_EXCEEDED (400), DEPLOY_TIMEOUT (504), PROVIDER_FAILED (502), PROVIDER_CAPACITY (503), NOT_IMPLEMENTED (501).
7951
+ * Error code: *_NOT_FOUND (404; also for objects of another account), WORKER_NAME_TAKEN (409), GRANT_ALIAS_CONFLICT (409), GRANT_CONFLICT (409), WORKER_INVALID_STATE (409), DEPLOYMENT_IN_PROGRESS (409, retry later), INVALID_PARAMS (400), UNSUPPORTED (400, a Cloudflare feature this platform does not offer), LIMIT_EXCEEDED (400), DEPLOY_TIMEOUT (504), PROVIDER_FAILED (502), PROVIDER_CAPACITY (503), NOT_IMPLEMENTED (501).
7927
7952
  */
7928
- code: 'WORKER_NOT_FOUND' | 'VERSION_NOT_FOUND' | 'DEPLOYMENT_NOT_FOUND' | 'COMPONENT_NOT_FOUND' | 'SECRET_NOT_FOUND' | 'GRANT_NOT_FOUND' | 'RESOURCE_NOT_FOUND' | 'WORKER_NAME_TAKEN' | 'WORKER_INVALID_STATE' | 'DEPLOYMENT_IN_PROGRESS' | 'INVALID_PARAMS' | 'UNSUPPORTED' | 'LIMIT_EXCEEDED' | 'DEPLOY_TIMEOUT' | 'PROVIDER_FAILED' | 'PROVIDER_CAPACITY' | 'NOT_IMPLEMENTED';
7953
+ code: 'WORKER_NOT_FOUND' | 'VERSION_NOT_FOUND' | 'DEPLOYMENT_NOT_FOUND' | 'COMPONENT_NOT_FOUND' | 'SECRET_NOT_FOUND' | 'GRANT_NOT_FOUND' | 'GRANT_ALIAS_CONFLICT' | 'GRANT_CONFLICT' | 'RESOURCE_NOT_FOUND' | 'WORKER_NAME_TAKEN' | 'WORKER_INVALID_STATE' | 'DEPLOYMENT_IN_PROGRESS' | 'INVALID_PARAMS' | 'UNSUPPORTED' | 'LIMIT_EXCEEDED' | 'DEPLOY_TIMEOUT' | 'PROVIDER_FAILED' | 'PROVIDER_CAPACITY' | 'NOT_IMPLEMENTED';
7929
7954
  /**
7930
7955
  * What went wrong.
7931
7956
  */
@@ -8589,14 +8614,18 @@ export type ApplicationGrant = {
8589
8614
  /**
8590
8615
  * Resource type.
8591
8616
  */
8592
- type: 'database' | 'folder' | 'knowledge';
8617
+ type: 'database' | 'files' | 'knowledge' | 'models';
8593
8618
  /**
8594
- * Resource ID.
8619
+ * Database or knowledge base ID; * for files and models.
8595
8620
  */
8596
8621
  id: string;
8597
8622
  };
8598
8623
  /**
8599
- * Access level.
8624
+ * Optional name, unique within this Worker. Conflicts return GRANT_ALIAS_CONFLICT (409).
8625
+ */
8626
+ alias?: string;
8627
+ /**
8628
+ * Access level; models accepts read only.
8600
8629
  */
8601
8630
  access: 'read' | 'read_write';
8602
8631
  /**
@@ -8606,20 +8635,24 @@ export type ApplicationGrant = {
8606
8635
  };
8607
8636
  export type ApplicationCreateGrantInput = {
8608
8637
  /**
8609
- * Resource to grant.
8638
+ * Resource to grant. Each (type, id) may be granted once per Worker; duplicates return GRANT_CONFLICT (409).
8610
8639
  */
8611
8640
  resource: {
8612
8641
  /**
8613
8642
  * Resource type.
8614
8643
  */
8615
- type: 'database' | 'folder' | 'knowledge';
8644
+ type: 'database' | 'files' | 'knowledge' | 'models';
8616
8645
  /**
8617
- * Resource ID in your account.
8646
+ * Database or knowledge base ID in your organization; * for files and models.
8618
8647
  */
8619
8648
  id: string;
8620
8649
  };
8621
8650
  /**
8622
- * Access level.
8651
+ * Optional name, unique within this Worker. Available for reuse after the grant is deleted.
8652
+ */
8653
+ alias?: string;
8654
+ /**
8655
+ * Access level; models accepts read only.
8623
8656
  */
8624
8657
  access: 'read' | 'read_write';
8625
8658
  };
@@ -8726,7 +8759,7 @@ export type AutomationAutomationProblemDetails = {
8726
8759
  title: string;
8727
8760
  status: number;
8728
8761
  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';
8762
+ 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
8763
  errors: Array<AutomationDiagnostic>;
8731
8764
  issues: Array<AutomationCompatIssue>;
8732
8765
  hint: string | null;
@@ -9598,7 +9631,7 @@ export type AutomationRun = {
9598
9631
  */
9599
9632
  attach: null | 'wait' | 'detach';
9600
9633
  /**
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.
9634
+ * 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
9635
  */
9603
9636
  deadline_at: string;
9604
9637
  /**
@@ -9792,7 +9825,7 @@ export type AutomationExpandedRun = {
9792
9825
  */
9793
9826
  attach: null | 'wait' | 'detach';
9794
9827
  /**
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.
9828
+ * 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
9829
  */
9797
9830
  deadline_at: string;
9798
9831
  /**
@@ -10743,6 +10776,415 @@ export type AutomationTriggerPreview = {
10743
10776
  */
10744
10777
  next_fire_times: Array<string>;
10745
10778
  };
10779
+ export type AutomationHumanTaskStatus = 'open' | 'completed' | 'expired' | 'cancelled';
10780
+ export type AutomationHumanTask = {
10781
+ /**
10782
+ * 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}.
10783
+ */
10784
+ id: string;
10785
+ /**
10786
+ * ID of the organization that owns the task.
10787
+ */
10788
+ owner: string;
10789
+ /**
10790
+ * ID of the workflow run (run_) that opened the task; the run continues once the task closes.
10791
+ */
10792
+ run_id: string;
10793
+ /**
10794
+ * The published workflow of the run; null for an ad hoc run.
10795
+ */
10796
+ workflow: {
10797
+ /**
10798
+ * Workflow namespace.
10799
+ */
10800
+ namespace: string;
10801
+ /**
10802
+ * Workflow name.
10803
+ */
10804
+ name: string;
10805
+ } | null;
10806
+ /**
10807
+ * JSON Pointer of the approval step in the workflow source, for example /do/1/approveRefund.
10808
+ */
10809
+ task_reference: string;
10810
+ /**
10811
+ * ID of the run's wait (wait_htask_); it closes only through respond, never through the run wait completion endpoint.
10812
+ */
10813
+ wait_id: string;
10814
+ /**
10815
+ * Task kind; currently only approval.
10816
+ */
10817
+ kind: 'approval';
10818
+ /**
10819
+ * Approval title, at most 200 characters.
10820
+ */
10821
+ title: string;
10822
+ /**
10823
+ * Markdown details for the assignees, up to 16 KiB; empty string when not given.
10824
+ */
10825
+ body: string;
10826
+ /**
10827
+ * JSON context the workflow attached (for example the order), up to 32 KiB; null when not given.
10828
+ */
10829
+ context: AutomationJsonValue;
10830
+ /**
10831
+ * The 1–6 buttons an assignee chooses from; defaults to approve and reject.
10832
+ */
10833
+ actions: Array<AutomationHumanTaskAction>;
10834
+ /**
10835
+ * 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.
10836
+ */
10837
+ form_schema: AutomationJsonObject | null;
10838
+ /**
10839
+ * The assignees.
10840
+ */
10841
+ assignees: {
10842
+ /**
10843
+ * Assignee user IDs, 1–20; sequential mode follows this order. Delegation replaces an entry in place.
10844
+ */
10845
+ users: Array<string>;
10846
+ /**
10847
+ * Group assignment; not supported yet, always an empty array.
10848
+ */
10849
+ groups: Array<string>;
10850
+ };
10851
+ /**
10852
+ * 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.
10853
+ */
10854
+ mode: 'any' | 'all' | 'quorum' | 'sequential';
10855
+ /**
10856
+ * Number of approvals required in quorum mode; null in other modes.
10857
+ */
10858
+ quorum: number | null;
10859
+ /**
10860
+ * When true, the person who started the run may respond to their own request; false by default.
10861
+ */
10862
+ allow_self_approval: boolean;
10863
+ /**
10864
+ * When true, an agent (agent session or run token) may respond; false by default.
10865
+ */
10866
+ allow_agent_decision: boolean;
10867
+ /**
10868
+ * The subject that started the run.
10869
+ */
10870
+ initiator: {
10871
+ /**
10872
+ * Initiator type: user, api_key, agent, run (a parent run) or trigger.
10873
+ */
10874
+ type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
10875
+ /**
10876
+ * Initiator ID.
10877
+ */
10878
+ id: string;
10879
+ /**
10880
+ * The user behind the initiator (the owner of an API key or trigger), null when unknown; the self-approval rule uses it.
10881
+ */
10882
+ user_id: string | null;
10883
+ };
10884
+ /**
10885
+ * 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.
10886
+ */
10887
+ due_at: string;
10888
+ /**
10889
+ * What happens at due_at.
10890
+ */
10891
+ on_timeout: {
10892
+ /**
10893
+ * 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.
10894
+ */
10895
+ action: 'reject' | 'approve' | 'fault';
10896
+ };
10897
+ /**
10898
+ * Reminder intervals (ISO 8601 durations, up to 3); stored, not yet sent in this version.
10899
+ */
10900
+ remind: Array<string>;
10901
+ /**
10902
+ * Notification channels: console or email; stored, delivery is not wired yet.
10903
+ */
10904
+ channels: Array<'console' | 'email'>;
10905
+ /**
10906
+ * An agent's proposal (any JSON up to 32 KiB) for the assignees to consider; null when not given.
10907
+ */
10908
+ proposal: AutomationJsonValue;
10909
+ /**
10910
+ * open: awaiting responses. completed: decided. expired: due_at passed. cancelled: withdrawn, including automatically when the run ended.
10911
+ */
10912
+ status: AutomationHumanTaskStatus;
10913
+ /**
10914
+ * Responses submitted so far, in order.
10915
+ */
10916
+ responses: Array<AutomationHumanTaskResponse>;
10917
+ /**
10918
+ * The decision, which is also the workflow step's output; null while open, and after a fault timeout or cancellation.
10919
+ */
10920
+ outcome: AutomationHumanTaskOutcome | null;
10921
+ /**
10922
+ * Creation time (RFC 3339).
10923
+ */
10924
+ created_at: string;
10925
+ /**
10926
+ * Last change time (RFC 3339).
10927
+ */
10928
+ updated_at: string;
10929
+ };
10930
+ export type AutomationHumanTaskRespondInput = {
10931
+ /**
10932
+ * The chosen action ID from the task's actions, for example approve.
10933
+ */
10934
+ action_id: string;
10935
+ /**
10936
+ * Form values matching the task's form_schema; omit or pass {} when there is no form.
10937
+ */
10938
+ values?: AutomationJsonObject;
10939
+ /**
10940
+ * Comment of at most 4000 characters; required when the action has require_comment true.
10941
+ */
10942
+ comment?: string;
10943
+ };
10944
+ export type AutomationHumanTaskCancelInput = {
10945
+ /**
10946
+ * Optional cancellation reason, at most 500 characters.
10947
+ */
10948
+ reason?: string;
10949
+ };
10950
+ export type AutomationHumanTaskDelegateInput = {
10951
+ /**
10952
+ * User ID taking over; cannot already be an assignee, nor the initiator unless self-approval is allowed.
10953
+ */
10954
+ to_user: string;
10955
+ };
10956
+ export type CanvasCreateCanvasInput = {
10957
+ /**
10958
+ * Display name for the new canvas, at most 200 characters; omission uses Untitled.
10959
+ */
10960
+ name?: string;
10961
+ };
10962
+ export type CanvasCanvas = {
10963
+ /**
10964
+ * Assigned canvas identifier, cvs_ followed by 16 lowercase letters or digits; reuse it as canvas_id in subsequent requests.
10965
+ */
10966
+ id: string;
10967
+ /**
10968
+ * Resource discriminator; canvas identifies a design canvas.
10969
+ */
10970
+ object: 'canvas';
10971
+ /**
10972
+ * Display name supplied at creation; defaults to Untitled if omitted and is not an API identifier.
10973
+ */
10974
+ name: string;
10975
+ version: CanvasVersion;
10976
+ /**
10977
+ * Number of visible top-level frames in this canvas; hidden frames do not contribute.
10978
+ */
10979
+ page_count: number;
10980
+ /**
10981
+ * Total number of design nodes currently in the canvas.
10982
+ */
10983
+ node_count: number;
10984
+ /**
10985
+ * ISO 8601 timestamp recording when this canvas was created.
10986
+ */
10987
+ created_at: string;
10988
+ /**
10989
+ * ISO 8601 timestamp of the latest canvas update; list orders canvases newest first by this value.
10990
+ */
10991
+ updated_at: string;
10992
+ /**
10993
+ * Console URL where a person can watch this canvas update live; open it to review drawing results.
10994
+ */
10995
+ viewer_url: string;
10996
+ };
10997
+ export type CanvasCanvasPage = {
10998
+ /**
10999
+ * Canvases accessible to the API key's organization, ordered by updated_at descending.
11000
+ */
11001
+ data: Array<CanvasCanvas>;
11002
+ /**
11003
+ * Opaque cursor to pass as cursor on the next list request; null means no more results.
11004
+ */
11005
+ next_cursor: string | null;
11006
+ };
11007
+ export type CanvasCanvasDetail = CanvasCanvas & {
11008
+ /**
11009
+ * Summaries of top-level nodes in canvas order; use their ids to read full node documents or render images.
11010
+ */
11011
+ frames: Array<CanvasFrame>;
11012
+ /**
11013
+ * Reusable components in this canvas; use their ids when inspecting or referencing component designs.
11014
+ */
11015
+ components: Array<{
11016
+ /**
11017
+ * Node identifier of the reusable component; usable in node reads and script references.
11018
+ */
11019
+ id: string;
11020
+ /**
11021
+ * Display name of the reusable component for choosing which design to reuse.
11022
+ */
11023
+ name: string;
11024
+ }>;
11025
+ };
11026
+ export type CanvasDeletedCanvas = {
11027
+ /**
11028
+ * Identifier of the canvas that was permanently deleted by this request.
11029
+ */
11030
+ id: string;
11031
+ /**
11032
+ * Resource discriminator; canvas identifies the deleted design canvas.
11033
+ */
11034
+ object: 'canvas';
11035
+ /**
11036
+ * Always true on successful permanent deletion; this content cannot be restored.
11037
+ */
11038
+ deleted: true;
11039
+ };
11040
+ export type CanvasNodesResult = {
11041
+ version: CanvasVersion;
11042
+ /**
11043
+ * Map keyed by each requested node id or instance path; null means that id was not found.
11044
+ */
11045
+ nodes: {
11046
+ [key: string]: {
11047
+ /**
11048
+ * Pencil .pen 2.21 node content, with descendants limited by depth when specified; use these design properties when preparing edits.
11049
+ */
11050
+ document: CanvasPenNode;
11051
+ } | null;
11052
+ };
11053
+ };
11054
+ export type CanvasImagesResult = {
11055
+ /**
11056
+ * Always null for a successful render response; request failures use the error envelope with a non-2xx status.
11057
+ */
11058
+ err: null;
11059
+ /**
11060
+ * Map keyed by requested node id, containing a PNG data URL or null when an image is unavailable; these are inline images rather than hosted URLs.
11061
+ */
11062
+ images: {
11063
+ [key: string]: string | null;
11064
+ };
11065
+ };
11066
+ export type CanvasCanvasError = {
11067
+ /**
11068
+ * Failure details for a non-2xx response; choose a recovery action using the operation's status and code description.
11069
+ */
11070
+ error: {
11071
+ /**
11072
+ * Machine-readable failure category; see this operation's error responses for triggering conditions and recovery actions.
11073
+ */
11074
+ code: string;
11075
+ /**
11076
+ * Human-readable explanation of why the request failed; use code and details for programmatic recovery.
11077
+ */
11078
+ message: string;
11079
+ /**
11080
+ * Optional error-specific context; script failures provide edit_id with optional line, column and rejection, and REVISION_CONFLICT provides the current version.
11081
+ */
11082
+ details?: {
11083
+ /**
11084
+ * Saved failed script id, valid for ten minutes; send it with edits to repair and rerun without resending the complete source.
11085
+ */
11086
+ edit_id?: string;
11087
+ /**
11088
+ * Optional source line reported for the script failure; use it to locate text for an edit.
11089
+ */
11090
+ line?: number;
11091
+ /**
11092
+ * Optional source column reported for the script failure; use it with line to locate the problem.
11093
+ */
11094
+ column?: number;
11095
+ /**
11096
+ * Optional operation rejection information; inspect it to correct the rejected design operation.
11097
+ */
11098
+ rejection?: unknown;
11099
+ /**
11100
+ * Current decimal revision on REVISION_CONFLICT; retrieve and merge the current canvas before retrying a guarded write.
11101
+ */
11102
+ version?: string;
11103
+ [key: string]: unknown;
11104
+ };
11105
+ };
11106
+ };
11107
+ export type CanvasExecuteInput = unknown & {
11108
+ /**
11109
+ * New synchronous Pencil execute source using document as the root; provide this or edit_id, never both. See the operation's first-frame example.
11110
+ */
11111
+ script?: string;
11112
+ /**
11113
+ * Saved failed-script identifier from error.details.edit_id; use with edits instead of script within ten minutes of the failure.
11114
+ */
11115
+ edit_id?: string;
11116
+ /**
11117
+ * Text replacements applied to the source identified by edit_id before rerunning; use error line, column or rejection to choose the correction.
11118
+ */
11119
+ edits?: Array<{
11120
+ /**
11121
+ * Literal text to locate in the failed source saved under edit_id.
11122
+ */
11123
+ find: string;
11124
+ /**
11125
+ * Corrected text to substitute for the matched find text before execution.
11126
+ */
11127
+ replace: string;
11128
+ /**
11129
+ * Set true to replace every occurrence of find; omitted or false requires find to occur exactly once, and a missing or repeated match fails the retry without applying anything.
11130
+ */
11131
+ all?: boolean;
11132
+ }>;
11133
+ /**
11134
+ * Revision from retrieve, nodes.list or the previous execute response; omit for an unguarded write. A mismatch returns 409 REVISION_CONFLICT with details.version.
11135
+ */
11136
+ expected_version?: string;
11137
+ };
11138
+ export type CanvasExecuteResult = {
11139
+ version: CanvasVersion;
11140
+ /**
11141
+ * Number of design operations performed by the committed script.
11142
+ */
11143
+ operation_count: number;
11144
+ /**
11145
+ * Map from created result names to node identifiers; reuse the ids in nodes.list, images.list or subsequent scripts.
11146
+ */
11147
+ created: {
11148
+ [key: string]: string;
11149
+ };
11150
+ /**
11151
+ * String outputs produced by Print calls in script execution order.
11152
+ */
11153
+ prints: Array<string>;
11154
+ /**
11155
+ * Non-fatal design warnings from this execution; writes have committed, so inspect the affected nodes before making another edit.
11156
+ */
11157
+ warnings: Array<{
11158
+ /**
11159
+ * Machine-readable warning category identifying what to inspect in the design.
11160
+ */
11161
+ code: string;
11162
+ /**
11163
+ * Identifier of the node to inspect with nodes.list or images.list.
11164
+ */
11165
+ node_id: string;
11166
+ /**
11167
+ * Human-readable explanation of the design issue and its context.
11168
+ */
11169
+ message: string;
11170
+ }>;
11171
+ /**
11172
+ * Node ids requested through TakeScreenshot; call images.list with up to four ids to obtain the actual PNG images.
11173
+ */
11174
+ screenshots: Array<string>;
11175
+ /**
11176
+ * Identifiers of top-level frames affected by the script; render these frames to review the edit.
11177
+ */
11178
+ touched_frames: Array<string>;
11179
+ /**
11180
+ * Global variable names still available for reuse in the next execute call on this canvas.
11181
+ */
11182
+ globals: Array<string>;
11183
+ /**
11184
+ * Console URL where a person can watch the canvas and inspect the committed visual result live.
11185
+ */
11186
+ viewer_url: string;
11187
+ };
10746
11188
  export type DatabaseCreateDatabaseInput = {
10747
11189
  /**
10748
11190
  * Display name for the database: 1–64 visible characters after trimming; control characters are rejected. It is not an identifier, so later calls still use the returned id.
@@ -10907,7 +11349,7 @@ export type DatabaseNewField = {
10907
11349
  */
10908
11350
  unique?: boolean;
10909
11351
  /**
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.
11352
+ * 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
11353
  */
10912
11354
  indexed?: boolean;
10913
11355
  /**
@@ -10942,7 +11384,7 @@ export type DatabaseNewField = {
10942
11384
  */
10943
11385
  unique?: boolean;
10944
11386
  /**
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.
11387
+ * 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
11388
  */
10947
11389
  indexed?: boolean;
10948
11390
  /**
@@ -10982,7 +11424,7 @@ export type DatabaseNewField = {
10982
11424
  */
10983
11425
  unique?: boolean;
10984
11426
  /**
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.
11427
+ * 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
11428
  */
10987
11429
  indexed?: boolean;
10988
11430
  /**
@@ -13694,7 +14136,7 @@ export type OwnFileFileExpirationAfter = {
13694
14136
  */
13695
14137
  anchor: 'created_at';
13696
14138
  /**
13697
- * Lifetime in seconds after creation, from 3600 through 2592000. Send as expires_after[seconds]; do not combine with praxis[expires_in_seconds].
14139
+ * Lifetime in seconds after creation, from 3600 through 7776000. Send as expires_after[seconds].
13698
14140
  */
13699
14141
  seconds: number;
13700
14142
  };
@@ -18895,7 +19337,7 @@ export type AgentManaged89 = {
18895
19337
  type: 'text';
18896
19338
  };
18897
19339
  /**
18898
- * Model identifier and configuration of the agent.
19340
+ * Conversation model; required on creation except for kind assume. Forbidden and omitted on assume agents, which are driven by an external MCP client.
18899
19341
  */
18900
19342
  export type AgentManaged38 = {
18901
19343
  /**
@@ -19211,6 +19653,31 @@ export type AgentSseData = {
19211
19653
  * Always `session.status_terminated`. The session ended and accepts no more work.
19212
19654
  */
19213
19655
  type: 'session.status_terminated';
19656
+ } | {
19657
+ /**
19658
+ * Text of the block.
19659
+ */
19660
+ id: string;
19661
+ /**
19662
+ * Always `agent.thread_context_compacting`. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle.
19663
+ */
19664
+ type: 'agent.thread_context_compacting';
19665
+ /**
19666
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
19667
+ */
19668
+ processed_at: string;
19669
+ /**
19670
+ * Text of the block.
19671
+ */
19672
+ session_thread_id?: string;
19673
+ /**
19674
+ * Identifier of the manual operation or automatic compaction record that has started.
19675
+ */
19676
+ compaction_id: string;
19677
+ /**
19678
+ * Whether a caller requested compaction, the session reached its context threshold, or the session compacted while idle.
19679
+ */
19680
+ trigger: 'manual' | 'auto' | 'idle';
19214
19681
  } | {
19215
19682
  /**
19216
19683
  * Unique identifier for this event.
@@ -19486,7 +19953,7 @@ export type AgentSseData = {
19486
19953
  */
19487
19954
  behavior: 'allow';
19488
19955
  /**
19489
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
19956
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
19490
19957
  */
19491
19958
  destination: 'agent' | 'session';
19492
19959
  /**
@@ -19636,7 +20103,7 @@ export type AgentSseData = {
19636
20103
  */
19637
20104
  behavior: 'allow';
19638
20105
  /**
19639
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
20106
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
19640
20107
  */
19641
20108
  destination: 'agent' | 'session';
19642
20109
  /**
@@ -21332,6 +21799,128 @@ export type AutomationAttributedUsage = {
21332
21799
  */
21333
21800
  pending_events: number;
21334
21801
  };
21802
+ export type AutomationHumanTaskAction = {
21803
+ /**
21804
+ * Action ID to pass as action_id to respond; starts with a lowercase letter, at most 32 characters.
21805
+ */
21806
+ id: string;
21807
+ /**
21808
+ * Button label.
21809
+ */
21810
+ label: string;
21811
+ /**
21812
+ * primary: the main button. danger: a destructive button, which is the rejection in all, quorum and sequential modes. default: a plain button.
21813
+ */
21814
+ style: 'primary' | 'danger' | 'default';
21815
+ /**
21816
+ * When true, choosing this action requires a comment.
21817
+ */
21818
+ require_comment: boolean;
21819
+ };
21820
+ export type AutomationHumanTaskResponse = {
21821
+ /**
21822
+ * Who responded.
21823
+ */
21824
+ actor: AutomationHumanTaskActor;
21825
+ /**
21826
+ * The chosen action ID.
21827
+ */
21828
+ action_id: string;
21829
+ /**
21830
+ * Submitted form values; an empty object when there is no form.
21831
+ */
21832
+ values: AutomationJsonObject;
21833
+ /**
21834
+ * Comment; null when none.
21835
+ */
21836
+ comment: string | null;
21837
+ /**
21838
+ * Where it came from: console, api (the public API) or agent.
21839
+ */
21840
+ via: 'console' | 'api' | 'agent';
21841
+ /**
21842
+ * Submission time (RFC 3339).
21843
+ */
21844
+ at: string;
21845
+ };
21846
+ export type AutomationHumanTaskOutcome = {
21847
+ /**
21848
+ * The deciding action ID, or timeout:reject / timeout:approve when on_timeout decided.
21849
+ */
21850
+ decision: string;
21851
+ /**
21852
+ * Form values of the deciding response; an empty object on timeout.
21853
+ */
21854
+ values: AutomationJsonObject;
21855
+ /**
21856
+ * Comment of the deciding response; null on timeout.
21857
+ */
21858
+ comment: string | null;
21859
+ /**
21860
+ * Who decided; null on timeout.
21861
+ */
21862
+ decided_by: AutomationHumanTaskActor | null;
21863
+ /**
21864
+ * All responses at the time the task closed.
21865
+ */
21866
+ responses: Array<AutomationHumanTaskResponse>;
21867
+ };
21868
+ /**
21869
+ * Current revision as a decimal string, incremented by one after each successful write; pass it as expected_version to guard a subsequent execute call.
21870
+ */
21871
+ export type CanvasVersion = string;
21872
+ export type CanvasFrame = {
21873
+ /**
21874
+ * Top-level node identifier; use in nodes.list, images.list or an execute script.
21875
+ */
21876
+ id: string;
21877
+ /**
21878
+ * Human-readable node name, or null if no name is assigned.
21879
+ */
21880
+ name: string | null;
21881
+ /**
21882
+ * Pencil node kind for this top-level item, such as frame or group; read nodes.list for its full content.
21883
+ */
21884
+ type: string;
21885
+ /**
21886
+ * Horizontal position of the top-level node on the canvas, in design pixels.
21887
+ */
21888
+ x: number;
21889
+ /**
21890
+ * Vertical position of the top-level node on the canvas, in design pixels.
21891
+ */
21892
+ y: number;
21893
+ /**
21894
+ * Current width of the top-level node in design pixels.
21895
+ */
21896
+ width: number;
21897
+ /**
21898
+ * Current height of the top-level node in design pixels.
21899
+ */
21900
+ height: number;
21901
+ /**
21902
+ * Number of design nodes in this top-level node's subtree.
21903
+ */
21904
+ node_count: number;
21905
+ /**
21906
+ * Whether this top-level node defines a reusable component.
21907
+ */
21908
+ component: boolean;
21909
+ /**
21910
+ * Whether this top-level node is a placeholder awaiting design content.
21911
+ */
21912
+ placeholder: boolean;
21913
+ /**
21914
+ * Whether this top-level node is visible on the canvas.
21915
+ */
21916
+ visible: boolean;
21917
+ };
21918
+ /**
21919
+ * A node document in pen.dev (Pencil) .pen schema 2.21, not a Figma node. Node-specific design properties are preserved as open fields; frame/group/rectangle/ellipse/polygon/path/text/icon/ref/note use their .pen properties.
21920
+ */
21921
+ export type CanvasPenNode = {
21922
+ [key: string]: unknown;
21923
+ };
21335
21924
  export type DatabaseField = {
21336
21925
  /**
21337
21926
  * Field identifier, prefixed fld_. Stable across renames; accepted wherever a field path parameter takes an id or name.
@@ -22180,7 +22769,7 @@ export type MediaSemanticHit = {
22180
22769
  */
22181
22770
  asset: MediaAsset;
22182
22771
  /**
22183
- * Ranking score: cosine similarity for semantic or visual search; normalized rank-fusion score for hybrid search. Higher values rank first.
22772
+ * 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
22773
  */
22185
22774
  score: number;
22186
22775
  /**
@@ -26210,6 +26799,20 @@ export type AgentManaged141 = {
26210
26799
  */
26211
26800
  type?: 'packages';
26212
26801
  };
26802
+ export type AutomationHumanTaskActor = {
26803
+ /**
26804
+ * The responder's user ID (for an agent, the user it acts for).
26805
+ */
26806
+ id: string;
26807
+ /**
26808
+ * human: the person responded. agent: an agent responded on their behalf.
26809
+ */
26810
+ kind: 'human' | 'agent';
26811
+ /**
26812
+ * Display name; this service does not resolve names, so it is null and the Console resolves it from the user ID.
26813
+ */
26814
+ display_name: string | null;
26815
+ };
26213
26816
  export type KnowledgeStaticChunking = {
26214
26817
  /**
26215
26818
  * static selects explicit chunk-size and overlap settings.
@@ -27540,6 +28143,10 @@ export type AgentManaged34Writable = {
27540
28143
  * Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404.
27541
28144
  */
27542
28145
  export type SandboxSandboxId = string;
28146
+ /**
28147
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
28148
+ */
28149
+ export type CanvasCanvasId = string;
27543
28150
  /**
27544
28151
  * Cursor to start the list from
27545
28152
  */
@@ -27556,7 +28163,7 @@ export type ApplyAgentVersionData = {
27556
28163
  body?: never;
27557
28164
  path: {
27558
28165
  /**
27559
- * Agent identifier from agents.create or agents.list.
28166
+ * Agent identifier from agents.create or agents.list. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
27560
28167
  */
27561
28168
  agent_id: string;
27562
28169
  /**
@@ -27619,7 +28226,7 @@ export type ApplyAgentVersionResponses = {
27619
28226
  /**
27620
28227
  * Model identifier and configuration.
27621
28228
  */
27622
- model: {
28229
+ model?: {
27623
28230
  /**
27624
28231
  * A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
27625
28232
  */
@@ -27653,7 +28260,7 @@ export type ApplyAgentVersionResponses = {
27653
28260
  /**
27654
28261
  * Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
27655
28262
  */
27656
- multiagent: null | AgentManaged39;
28263
+ multiagent?: null | AgentManaged39;
27657
28264
  /**
27658
28265
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
27659
28266
  */
@@ -27721,7 +28328,7 @@ export type ApplyAgentVersionResponses = {
27721
28328
  */
27722
28329
  note: string | null;
27723
28330
  /**
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.
28331
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
27725
28332
  */
27726
28333
  bindings: Array<{
27727
28334
  /**
@@ -27763,9 +28370,9 @@ export type ApplyAgentVersionResponses = {
27763
28370
  enabled?: boolean;
27764
28371
  }>;
27765
28372
  /**
27766
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
28373
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
27767
28374
  */
27768
- kind: 'personal' | 'service';
28375
+ kind: 'general' | 'personal' | 'service' | 'assume';
27769
28376
  /**
27770
28377
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
27771
28378
  */
@@ -28116,6 +28723,10 @@ export type ApplyAgentVersionResponses = {
28116
28723
  */
28117
28724
  hooks?: Array<string>;
28118
28725
  };
28726
+ /**
28727
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
28728
+ */
28729
+ idleCompaction?: boolean;
28119
28730
  } | null;
28120
28731
  /**
28121
28732
  * 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 +28754,7 @@ export type ApplyAgentVersionResponses = {
28143
28754
  */
28144
28755
  environment_id?: string | null;
28145
28756
  /**
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.
28757
+ * Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
28147
28758
  */
28148
28759
  vault_ids?: Array<string>;
28149
28760
  /**
@@ -28157,7 +28768,7 @@ export type UnarchiveAgentData = {
28157
28768
  body?: never;
28158
28769
  path: {
28159
28770
  /**
28160
- * Agent id from creation or listing.
28771
+ * Agent id from creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
28161
28772
  */
28162
28773
  agent_id: string;
28163
28774
  };
@@ -28286,7 +28897,7 @@ export type UnarchiveAgentResponses = {
28286
28897
  /**
28287
28898
  * Model identifier and configuration.
28288
28899
  */
28289
- model: {
28900
+ model?: {
28290
28901
  /**
28291
28902
  * A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
28292
28903
  */
@@ -28345,7 +28956,7 @@ export type UnarchiveAgentResponses = {
28345
28956
  /**
28346
28957
  * Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
28347
28958
  */
28348
- multiagent: null | {
28959
+ multiagent?: null | {
28349
28960
  /**
28350
28961
  * Agents the coordinator may spawn as session threads, each resolved to a specific
28351
28962
  * version.
@@ -28909,7 +29520,7 @@ export type UnarchiveAgentResponses = {
28909
29520
  */
28910
29521
  note: string | null;
28911
29522
  /**
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.
29523
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
28913
29524
  */
28914
29525
  bindings: Array<{
28915
29526
  /**
@@ -28951,9 +29562,9 @@ export type UnarchiveAgentResponses = {
28951
29562
  enabled?: boolean;
28952
29563
  }>;
28953
29564
  /**
28954
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
29565
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
28955
29566
  */
28956
- kind: 'personal' | 'service';
29567
+ kind: 'general' | 'personal' | 'service' | 'assume';
28957
29568
  /**
28958
29569
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
28959
29570
  */
@@ -29304,6 +29915,10 @@ export type UnarchiveAgentResponses = {
29304
29915
  */
29305
29916
  hooks?: Array<string>;
29306
29917
  };
29918
+ /**
29919
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
29920
+ */
29921
+ idleCompaction?: boolean;
29307
29922
  } | null;
29308
29923
  /**
29309
29924
  * 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 +29946,7 @@ export type UnarchiveAgentResponses = {
29331
29946
  */
29332
29947
  environment_id?: string | null;
29333
29948
  /**
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.
29949
+ * Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
29335
29950
  */
29336
29951
  vault_ids?: Array<string>;
29337
29952
  /**
@@ -29465,7 +30080,7 @@ export type ListCustomersData = {
29465
30080
  body?: never;
29466
30081
  path: {
29467
30082
  /**
29468
- * Active service agent id from agent creation or listing.
30083
+ * Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
29469
30084
  */
29470
30085
  agent_id: string;
29471
30086
  };
@@ -29574,7 +30189,7 @@ export type DeleteCustomerData = {
29574
30189
  body?: never;
29575
30190
  path: {
29576
30191
  /**
29577
- * Active service agent id from agent creation or listing.
30192
+ * Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
29578
30193
  */
29579
30194
  agent_id: string;
29580
30195
  /**
@@ -29629,7 +30244,7 @@ export type GetCustomerData = {
29629
30244
  body?: never;
29630
30245
  path: {
29631
30246
  /**
29632
- * Active service agent id from agent creation or listing.
30247
+ * Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
29633
30248
  */
29634
30249
  agent_id: string;
29635
30250
  /**
@@ -29733,7 +30348,7 @@ export type GetCustomerDeletionData = {
29733
30348
  body?: never;
29734
30349
  path: {
29735
30350
  /**
29736
- * Active service agent id from agent creation or listing.
30351
+ * Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
29737
30352
  */
29738
30353
  agent_id: string;
29739
30354
  /**
@@ -29820,7 +30435,7 @@ export type BlockCustomerData = {
29820
30435
  body?: never;
29821
30436
  path: {
29822
30437
  /**
29823
- * Active service agent id from agent creation or listing.
30438
+ * Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
29824
30439
  */
29825
30440
  agent_id: string;
29826
30441
  /**
@@ -29903,7 +30518,7 @@ export type UnblockCustomerData = {
29903
30518
  body?: never;
29904
30519
  path: {
29905
30520
  /**
29906
- * Active service agent id from agent creation or listing.
30521
+ * Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
29907
30522
  */
29908
30523
  agent_id: string;
29909
30524
  /**
@@ -29982,7 +30597,7 @@ export type RevokeCustomerTokensData = {
29982
30597
  body?: never;
29983
30598
  path: {
29984
30599
  /**
29985
- * Active service agent id from agent creation or listing.
30600
+ * Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
29986
30601
  */
29987
30602
  agent_id: string;
29988
30603
  /**
@@ -30028,7 +30643,7 @@ export type GetAgentAppearanceData = {
30028
30643
  body?: never;
30029
30644
  path: {
30030
30645
  /**
30031
- * Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for.
30646
+ * Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
30032
30647
  */
30033
30648
  agent_id: string;
30034
30649
  };
@@ -30339,7 +30954,7 @@ export type CreateCustomerGrantCodeData = {
30339
30954
  };
30340
30955
  path: {
30341
30956
  /**
30342
- * Service agent id (agent_…) or its short identity number, from agent creation or listing.
30957
+ * Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
30343
30958
  */
30344
30959
  agent_id: string;
30345
30960
  };
@@ -30415,7 +31030,7 @@ export type CreateCustomerAccessTokenData = {
30415
31030
  };
30416
31031
  path: {
30417
31032
  /**
30418
- * Service agent id (agent_…) or its short identity number, from agent creation or listing.
31033
+ * Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
30419
31034
  */
30420
31035
  agent_id: string;
30421
31036
  };
@@ -30489,7 +31104,7 @@ export type RenewCustomerAccessTokenData = {
30489
31104
  body?: never;
30490
31105
  path: {
30491
31106
  /**
30492
- * Service agent id (agent_…) or its short identity number, from agent creation or listing.
31107
+ * Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
30493
31108
  */
30494
31109
  agent_id: string;
30495
31110
  };
@@ -30551,7 +31166,7 @@ export type DeleteCurrentCustomerAccessTokenData = {
30551
31166
  body?: never;
30552
31167
  path: {
30553
31168
  /**
30554
- * Service agent id (agent_…) or its short identity number, from agent creation or listing.
31169
+ * Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
30555
31170
  */
30556
31171
  agent_id: string;
30557
31172
  };
@@ -36146,11 +36761,11 @@ export type CompactSessionResponses = {
36146
36761
  */
36147
36762
  id: string;
36148
36763
  /**
36149
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36764
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
36150
36765
  */
36151
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36766
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
36152
36767
  /**
36153
- * Why the compaction was skipped or failed; absent otherwise.
36768
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
36154
36769
  */
36155
36770
  reason?: string;
36156
36771
  };
@@ -36167,11 +36782,11 @@ export type CompactSessionResponses = {
36167
36782
  */
36168
36783
  id: string;
36169
36784
  /**
36170
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36785
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
36171
36786
  */
36172
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36787
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
36173
36788
  /**
36174
- * Why the compaction was skipped or failed; absent otherwise.
36789
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
36175
36790
  */
36176
36791
  reason?: string;
36177
36792
  };
@@ -36229,11 +36844,11 @@ export type GetSessionCompactionResponses = {
36229
36844
  */
36230
36845
  id: string;
36231
36846
  /**
36232
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36847
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
36233
36848
  */
36234
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36849
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
36235
36850
  /**
36236
- * Why the compaction was skipped or failed; absent otherwise.
36851
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
36237
36852
  */
36238
36853
  reason?: string;
36239
36854
  };
@@ -36278,6 +36893,27 @@ export type ListSessionCompactionsResponses = {
36278
36893
  * Compaction history
36279
36894
  */
36280
36895
  200: {
36896
+ /**
36897
+ * Current compaction, including queued manual requests; null when none is in progress. Manual takes precedence over automatic work.
36898
+ */
36899
+ active: {
36900
+ /**
36901
+ * Always `session_compaction`. Result of a compaction request.
36902
+ */
36903
+ type: 'session_compaction';
36904
+ /**
36905
+ * Identifier of the active manual operation or automatic compaction record.
36906
+ */
36907
+ id: string;
36908
+ /**
36909
+ * Whether compaction is waiting to start or generating its summary.
36910
+ */
36911
+ status: 'queued' | 'running';
36912
+ /**
36913
+ * Whether a caller requested compaction, the context reached its threshold, or the session compacted while idle.
36914
+ */
36915
+ trigger: 'manual' | 'auto' | 'idle';
36916
+ } | null;
36281
36917
  /**
36282
36918
  * Items of this page, in the order requested by the call.
36283
36919
  */
@@ -36297,7 +36933,7 @@ export type ListSessionCompactionsResponses = {
36297
36933
  /**
36298
36934
  * What started the compaction.
36299
36935
  */
36300
- trigger: 'auto' | 'manual' | 'model_downshift';
36936
+ trigger: 'auto' | 'manual' | 'model_downshift' | 'idle';
36301
36937
  /**
36302
36938
  * Final outcome of the compaction.
36303
36939
  */
@@ -38106,6 +38742,107 @@ export type MetaMethodsRetrieveResponses = {
38106
38742
  200: MetaMethod;
38107
38743
  };
38108
38744
  export type MetaMethodsRetrieveResponse = MetaMethodsRetrieveResponses[keyof MetaMethodsRetrieveResponses];
38745
+ export type MetaDocsRetrieveData = {
38746
+ body?: never;
38747
+ path: {
38748
+ /**
38749
+ * Slash-separated documentation path from docs.search; optionally append #heading-id to select a section.
38750
+ */
38751
+ path: string;
38752
+ };
38753
+ query?: {
38754
+ /**
38755
+ * Documentation language: zh for Chinese (default), en for English.
38756
+ */
38757
+ lang?: 'zh' | 'en';
38758
+ };
38759
+ url: '/meta/v1/docs/{path}';
38760
+ };
38761
+ export type MetaDocsRetrieveErrors = {
38762
+ /**
38763
+ * INVALID_PARAMS: lang must be zh or en; correct the language and retry.
38764
+ */
38765
+ 400: MetaProblem;
38766
+ /**
38767
+ * DOC_NOT_FOUND: page or anchor does not exist; use docs.search to find a valid documentation path.
38768
+ */
38769
+ 404: MetaProblem;
38770
+ };
38771
+ export type MetaDocsRetrieveError = MetaDocsRetrieveErrors[keyof MetaDocsRetrieveErrors];
38772
+ export type MetaDocsRetrieveResponses = {
38773
+ /**
38774
+ * Documentation page as Markdown, never the HTML website.
38775
+ */
38776
+ 200: {
38777
+ /**
38778
+ * Documentation path, including the requested section anchor when present.
38779
+ */
38780
+ path: string;
38781
+ /**
38782
+ * Human-readable title of the documentation page.
38783
+ */
38784
+ title: string;
38785
+ /**
38786
+ * Canonical documentation URL for reading the page in a browser.
38787
+ */
38788
+ url: string;
38789
+ /**
38790
+ * Compiled page Markdown, or only the requested heading section and its subsections.
38791
+ */
38792
+ markdown: string;
38793
+ };
38794
+ };
38795
+ export type MetaDocsRetrieveResponse = MetaDocsRetrieveResponses[keyof MetaDocsRetrieveResponses];
38796
+ export type MetaDocsSearchData = {
38797
+ body?: never;
38798
+ path?: never;
38799
+ query: {
38800
+ /**
38801
+ * Keywords describing the syntax or guide needed, for example export or workflow.
38802
+ */
38803
+ q: string;
38804
+ /**
38805
+ * Maximum number of matching pages returned; integer 1–50, default 20.
38806
+ */
38807
+ limit?: number;
38808
+ /**
38809
+ * Documentation language: zh for Chinese (default), en for English.
38810
+ */
38811
+ lang?: 'zh' | 'en';
38812
+ };
38813
+ url: '/meta/v1/docs/search';
38814
+ };
38815
+ export type MetaDocsSearchErrors = {
38816
+ /**
38817
+ * INVALID_PARAMS: supply nonempty q, limit from 1 to 50 and lang zh or en.
38818
+ */
38819
+ 400: MetaProblem;
38820
+ };
38821
+ export type MetaDocsSearchError = MetaDocsSearchErrors[keyof MetaDocsSearchErrors];
38822
+ export type MetaDocsSearchResponses = {
38823
+ /**
38824
+ * Matching documentation pages; empty when no page contains all keywords.
38825
+ */
38826
+ 200: Array<{
38827
+ /**
38828
+ * Documentation path, including the requested section anchor when present.
38829
+ */
38830
+ path: string;
38831
+ /**
38832
+ * Human-readable title of the documentation page.
38833
+ */
38834
+ title: string;
38835
+ /**
38836
+ * Canonical documentation URL for reading the page in a browser.
38837
+ */
38838
+ url: string;
38839
+ /**
38840
+ * Short excerpt from the matching page to help choose which documentation to retrieve.
38841
+ */
38842
+ snippet: string;
38843
+ }>;
38844
+ };
38845
+ export type MetaDocsSearchResponse = MetaDocsSearchResponses[keyof MetaDocsSearchResponses];
38109
38846
  export type ListModelsData = {
38110
38847
  body?: never;
38111
38848
  path?: never;
@@ -44715,15 +45452,15 @@ export type AgentsListData = {
44715
45452
  limit?: number;
44716
45453
  page?: null | string;
44717
45454
  /**
44718
- * Personal agents use a durable computer; service agents use a clean environment per session.
45455
+ * General agents use a durable computer and act for their owner; personal agents behave like general agents for now and are reserved for the personal agent; service agents use a clean environment per session. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
44719
45456
  */
44720
- kind?: 'personal' | 'service';
45457
+ kind?: 'general' | 'personal' | 'service' | 'assume';
44721
45458
  };
44722
45459
  url: '/agent/v1/agents';
44723
45460
  };
44724
45461
  export type AgentsListErrors = {
44725
45462
  /**
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.
45463
+ * include_archived is not true or false, kind is not general, personal, service or assume, a created_at bound is not an RFC 3339 timestamp, or INVALID_PARAMS when limit is not an integer from 1 to 100 (limit must be an integer between 1 and 100), or INVALID_PAGE_TOKEN when page is not a cursor from this same query (restart from the first page). Pass next_page unchanged, with the same filters, to continue.
44727
45464
  */
44728
45465
  400: AgentError;
44729
45466
  /**
@@ -44769,7 +45506,7 @@ export type AgentsListResponses = {
44769
45506
  /**
44770
45507
  * Model identifier and configuration.
44771
45508
  */
44772
- model: {
45509
+ model?: {
44773
45510
  /**
44774
45511
  * A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
44775
45512
  */
@@ -44803,7 +45540,7 @@ export type AgentsListResponses = {
44803
45540
  /**
44804
45541
  * Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
44805
45542
  */
44806
- multiagent: null | AgentManaged39;
45543
+ multiagent?: null | AgentManaged39;
44807
45544
  /**
44808
45545
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
44809
45546
  */
@@ -44867,7 +45604,7 @@ export type AgentsListResponses = {
44867
45604
  */
44868
45605
  note: string | null;
44869
45606
  /**
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.
45607
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
44871
45608
  */
44872
45609
  bindings: Array<{
44873
45610
  /**
@@ -44909,9 +45646,9 @@ export type AgentsListResponses = {
44909
45646
  enabled?: boolean;
44910
45647
  }>;
44911
45648
  /**
44912
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
45649
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
44913
45650
  */
44914
- kind: 'personal' | 'service';
45651
+ kind: 'general' | 'personal' | 'service' | 'assume';
44915
45652
  /**
44916
45653
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
44917
45654
  */
@@ -45262,6 +45999,10 @@ export type AgentsListResponses = {
45262
45999
  */
45263
46000
  hooks?: Array<string>;
45264
46001
  };
46002
+ /**
46003
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
46004
+ */
46005
+ idleCompaction?: boolean;
45265
46006
  } | null;
45266
46007
  /**
45267
46008
  * 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 +46030,7 @@ export type AgentsListResponses = {
45289
46030
  */
45290
46031
  environment_id?: string | null;
45291
46032
  /**
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.
46033
+ * Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
45293
46034
  */
45294
46035
  vault_ids?: Array<string>;
45295
46036
  /**
@@ -45307,9 +46048,9 @@ export type AgentsListResponse = AgentsListResponses[keyof AgentsListResponses];
45307
46048
  export type AgentsCreateData = {
45308
46049
  body: {
45309
46050
  /**
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.
46051
+ * A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected. Forbidden and omitted on assume agents.
45311
46052
  */
45312
- model: string | {
46053
+ model?: string | {
45313
46054
  /**
45314
46055
  * A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
45315
46056
  */
@@ -45377,7 +46118,7 @@ export type AgentsCreateData = {
45377
46118
  */
45378
46119
  tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
45379
46120
  /**
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.
46121
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
45381
46122
  */
45382
46123
  bindings?: Array<{
45383
46124
  /**
@@ -45419,9 +46160,9 @@ export type AgentsCreateData = {
45419
46160
  enabled?: boolean;
45420
46161
  }>;
45421
46162
  /**
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.
46163
+ * Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
45423
46164
  */
45424
- kind?: 'personal' | 'service';
46165
+ kind?: 'general' | 'personal' | 'service' | 'assume';
45425
46166
  /**
45426
46167
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined.
45427
46168
  */
@@ -45772,6 +46513,10 @@ export type AgentsCreateData = {
45772
46513
  */
45773
46514
  hooks?: Array<string>;
45774
46515
  };
46516
+ /**
46517
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
46518
+ */
46519
+ idleCompaction?: boolean;
45775
46520
  } | null;
45776
46521
  /**
45777
46522
  * 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 +46528,7 @@ export type AgentsCreateData = {
45783
46528
  allowed: Array<string>;
45784
46529
  };
45785
46530
  /**
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.
46531
+ * Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it.
45787
46532
  */
45788
46533
  avatar?: string | null;
45789
46534
  /**
@@ -45805,7 +46550,7 @@ export type AgentsCreateData = {
45805
46550
  };
45806
46551
  export type AgentsCreateErrors = {
45807
46552
  /**
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.
46553
+ * The body failed validation and the message names the field: an unknown field, name outside 1 to 256 characters, a model that is not in the catalog or cannot run an agent, invalid tools or tools: null, a skill that is anthropic, repeated or not found, invalid bindings or vault_ids, or an environment_id that does not exist, or model, models, subagent_model, subagents or multiagent supplied on an assume agent. Correct the field and retry.
45809
46554
  */
45810
46555
  400: AgentError;
45811
46556
  /**
@@ -45851,7 +46596,7 @@ export type AgentsCreateResponses = {
45851
46596
  /**
45852
46597
  * Model identifier and configuration.
45853
46598
  */
45854
- model: {
46599
+ model?: {
45855
46600
  /**
45856
46601
  * A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
45857
46602
  */
@@ -45885,7 +46630,7 @@ export type AgentsCreateResponses = {
45885
46630
  /**
45886
46631
  * Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
45887
46632
  */
45888
- multiagent: null | AgentManaged39;
46633
+ multiagent?: null | AgentManaged39;
45889
46634
  /**
45890
46635
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
45891
46636
  */
@@ -45949,7 +46694,7 @@ export type AgentsCreateResponses = {
45949
46694
  */
45950
46695
  note: string | null;
45951
46696
  /**
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.
46697
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
45953
46698
  */
45954
46699
  bindings: Array<{
45955
46700
  /**
@@ -45991,9 +46736,9 @@ export type AgentsCreateResponses = {
45991
46736
  enabled?: boolean;
45992
46737
  }>;
45993
46738
  /**
45994
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
46739
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
45995
46740
  */
45996
- kind: 'personal' | 'service';
46741
+ kind: 'general' | 'personal' | 'service' | 'assume';
45997
46742
  /**
45998
46743
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
45999
46744
  */
@@ -46344,6 +47089,10 @@ export type AgentsCreateResponses = {
46344
47089
  */
46345
47090
  hooks?: Array<string>;
46346
47091
  };
47092
+ /**
47093
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
47094
+ */
47095
+ idleCompaction?: boolean;
46347
47096
  } | null;
46348
47097
  /**
46349
47098
  * 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 +47120,7 @@ export type AgentsCreateResponses = {
46371
47120
  */
46372
47121
  environment_id?: string | null;
46373
47122
  /**
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.
47123
+ * Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
46375
47124
  */
46376
47125
  vault_ids?: Array<string>;
46377
47126
  /**
@@ -46385,7 +47134,7 @@ export type AgentsRetrieveData = {
46385
47134
  body?: never;
46386
47135
  path: {
46387
47136
  /**
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.
47137
+ * Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
46389
47138
  */
46390
47139
  agent_id: string;
46391
47140
  };
@@ -46446,7 +47195,7 @@ export type AgentsRetrieveResponses = {
46446
47195
  /**
46447
47196
  * Model identifier and configuration.
46448
47197
  */
46449
- model: {
47198
+ model?: {
46450
47199
  /**
46451
47200
  * A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
46452
47201
  */
@@ -46480,7 +47229,7 @@ export type AgentsRetrieveResponses = {
46480
47229
  /**
46481
47230
  * Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
46482
47231
  */
46483
- multiagent: null | AgentManaged39;
47232
+ multiagent?: null | AgentManaged39;
46484
47233
  /**
46485
47234
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
46486
47235
  */
@@ -46548,7 +47297,7 @@ export type AgentsRetrieveResponses = {
46548
47297
  */
46549
47298
  note: string | null;
46550
47299
  /**
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.
47300
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
46552
47301
  */
46553
47302
  bindings: Array<{
46554
47303
  /**
@@ -46590,9 +47339,9 @@ export type AgentsRetrieveResponses = {
46590
47339
  enabled?: boolean;
46591
47340
  }>;
46592
47341
  /**
46593
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
47342
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
46594
47343
  */
46595
- kind: 'personal' | 'service';
47344
+ kind: 'general' | 'personal' | 'service' | 'assume';
46596
47345
  /**
46597
47346
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
46598
47347
  */
@@ -46943,6 +47692,10 @@ export type AgentsRetrieveResponses = {
46943
47692
  */
46944
47693
  hooks?: Array<string>;
46945
47694
  };
47695
+ /**
47696
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
47697
+ */
47698
+ idleCompaction?: boolean;
46946
47699
  } | null;
46947
47700
  /**
46948
47701
  * 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 +47723,7 @@ export type AgentsRetrieveResponses = {
46970
47723
  */
46971
47724
  environment_id?: string | null;
46972
47725
  /**
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.
47726
+ * Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
46974
47727
  */
46975
47728
  vault_ids?: Array<string>;
46976
47729
  /**
@@ -46997,7 +47750,7 @@ export type AgentsUpdateData = {
46997
47750
  */
46998
47751
  metadata?: null | AgentManaged58Writable;
46999
47752
  /**
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.
47753
+ * A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected. Forbidden and omitted on assume agents.
47001
47754
  */
47002
47755
  model?: string | {
47003
47756
  /**
@@ -47109,9 +47862,9 @@ export type AgentsUpdateData = {
47109
47862
  enabled?: boolean;
47110
47863
  }> | null;
47111
47864
  /**
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.
47865
+ * Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
47113
47866
  */
47114
- kind?: 'personal' | 'service';
47867
+ kind?: 'general' | 'personal' | 'service' | 'assume';
47115
47868
  /**
47116
47869
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined.
47117
47870
  */
@@ -47462,6 +48215,10 @@ export type AgentsUpdateData = {
47462
48215
  */
47463
48216
  hooks?: Array<string>;
47464
48217
  };
48218
+ /**
48219
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
48220
+ */
48221
+ idleCompaction?: boolean;
47465
48222
  } | null;
47466
48223
  /**
47467
48224
  * 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 +48230,7 @@ export type AgentsUpdateData = {
47473
48230
  allowed: Array<string>;
47474
48231
  };
47475
48232
  /**
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.
48233
+ * Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it.
47477
48234
  */
47478
48235
  avatar?: string | null;
47479
48236
  /**
@@ -47491,7 +48248,7 @@ export type AgentsUpdateData = {
47491
48248
  };
47492
48249
  path: {
47493
48250
  /**
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.
48251
+ * Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
47495
48252
  */
47496
48253
  agent_id: string;
47497
48254
  };
@@ -47550,7 +48307,7 @@ export type AgentsUpdateResponses = {
47550
48307
  /**
47551
48308
  * Model identifier and configuration.
47552
48309
  */
47553
- model: {
48310
+ model?: {
47554
48311
  /**
47555
48312
  * A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
47556
48313
  */
@@ -47584,7 +48341,7 @@ export type AgentsUpdateResponses = {
47584
48341
  /**
47585
48342
  * Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
47586
48343
  */
47587
- multiagent: null | AgentManaged39;
48344
+ multiagent?: null | AgentManaged39;
47588
48345
  /**
47589
48346
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
47590
48347
  */
@@ -47652,7 +48409,7 @@ export type AgentsUpdateResponses = {
47652
48409
  */
47653
48410
  note: string | null;
47654
48411
  /**
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.
48412
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
47656
48413
  */
47657
48414
  bindings: Array<{
47658
48415
  /**
@@ -47694,9 +48451,9 @@ export type AgentsUpdateResponses = {
47694
48451
  enabled?: boolean;
47695
48452
  }>;
47696
48453
  /**
47697
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
48454
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
47698
48455
  */
47699
- kind: 'personal' | 'service';
48456
+ kind: 'general' | 'personal' | 'service' | 'assume';
47700
48457
  /**
47701
48458
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
47702
48459
  */
@@ -48047,6 +48804,10 @@ export type AgentsUpdateResponses = {
48047
48804
  */
48048
48805
  hooks?: Array<string>;
48049
48806
  };
48807
+ /**
48808
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
48809
+ */
48810
+ idleCompaction?: boolean;
48050
48811
  } | null;
48051
48812
  /**
48052
48813
  * 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 +48835,7 @@ export type AgentsUpdateResponses = {
48074
48835
  */
48075
48836
  environment_id?: string | null;
48076
48837
  /**
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.
48838
+ * Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
48078
48839
  */
48079
48840
  vault_ids?: Array<string>;
48080
48841
  /**
@@ -48088,7 +48849,7 @@ export type AgentsArchiveData = {
48088
48849
  body?: never;
48089
48850
  path: {
48090
48851
  /**
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.
48852
+ * Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
48092
48853
  */
48093
48854
  agent_id: string;
48094
48855
  };
@@ -48139,7 +48900,7 @@ export type AgentsArchiveResponses = {
48139
48900
  /**
48140
48901
  * Model identifier and configuration.
48141
48902
  */
48142
- model: {
48903
+ model?: {
48143
48904
  /**
48144
48905
  * A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
48145
48906
  */
@@ -48173,7 +48934,7 @@ export type AgentsArchiveResponses = {
48173
48934
  /**
48174
48935
  * Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
48175
48936
  */
48176
- multiagent: null | AgentManaged39;
48937
+ multiagent?: null | AgentManaged39;
48177
48938
  /**
48178
48939
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
48179
48940
  */
@@ -48237,7 +48998,7 @@ export type AgentsArchiveResponses = {
48237
48998
  */
48238
48999
  note: string | null;
48239
49000
  /**
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.
49001
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
48241
49002
  */
48242
49003
  bindings: Array<{
48243
49004
  /**
@@ -48279,9 +49040,9 @@ export type AgentsArchiveResponses = {
48279
49040
  enabled?: boolean;
48280
49041
  }>;
48281
49042
  /**
48282
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
49043
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
48283
49044
  */
48284
- kind: 'personal' | 'service';
49045
+ kind: 'general' | 'personal' | 'service' | 'assume';
48285
49046
  /**
48286
49047
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
48287
49048
  */
@@ -48632,6 +49393,10 @@ export type AgentsArchiveResponses = {
48632
49393
  */
48633
49394
  hooks?: Array<string>;
48634
49395
  };
49396
+ /**
49397
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
49398
+ */
49399
+ idleCompaction?: boolean;
48635
49400
  } | null;
48636
49401
  /**
48637
49402
  * 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 +49424,7 @@ export type AgentsArchiveResponses = {
48659
49424
  */
48660
49425
  environment_id?: string | null;
48661
49426
  /**
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.
49427
+ * Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
48663
49428
  */
48664
49429
  vault_ids?: Array<string>;
48665
49430
  /**
@@ -48673,7 +49438,7 @@ export type AgentsVersionsListData = {
48673
49438
  body?: never;
48674
49439
  path: {
48675
49440
  /**
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.
49441
+ * Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
48677
49442
  */
48678
49443
  agent_id: string;
48679
49444
  };
@@ -48738,7 +49503,7 @@ export type AgentsVersionsListResponses = {
48738
49503
  /**
48739
49504
  * Model identifier and configuration.
48740
49505
  */
48741
- model: {
49506
+ model?: {
48742
49507
  /**
48743
49508
  * A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
48744
49509
  */
@@ -48772,7 +49537,7 @@ export type AgentsVersionsListResponses = {
48772
49537
  /**
48773
49538
  * Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
48774
49539
  */
48775
- multiagent: null | AgentManaged39;
49540
+ multiagent?: null | AgentManaged39;
48776
49541
  /**
48777
49542
  * Display name of the agent, as set on create or update. It is a label, not a unique key.
48778
49543
  */
@@ -48840,7 +49605,7 @@ export type AgentsVersionsListResponses = {
48840
49605
  */
48841
49606
  note: string | null;
48842
49607
  /**
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.
49608
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
48844
49609
  */
48845
49610
  bindings: Array<{
48846
49611
  /**
@@ -48882,9 +49647,9 @@ export type AgentsVersionsListResponses = {
48882
49647
  enabled?: boolean;
48883
49648
  }>;
48884
49649
  /**
48885
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
49650
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted.
48886
49651
  */
48887
- kind: 'personal' | 'service';
49652
+ kind: 'general' | 'personal' | 'service' | 'assume';
48888
49653
  /**
48889
49654
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
48890
49655
  */
@@ -49235,6 +50000,10 @@ export type AgentsVersionsListResponses = {
49235
50000
  */
49236
50001
  hooks?: Array<string>;
49237
50002
  };
50003
+ /**
50004
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
50005
+ */
50006
+ idleCompaction?: boolean;
49238
50007
  } | null;
49239
50008
  /**
49240
50009
  * 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 +50031,7 @@ export type AgentsVersionsListResponses = {
49262
50031
  */
49263
50032
  environment_id?: string | null;
49264
50033
  /**
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.
50034
+ * Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
49266
50035
  */
49267
50036
  vault_ids?: Array<string>;
49268
50037
  /**
@@ -49669,7 +50438,7 @@ export type SessionsCreateData = {
49669
50438
  };
49670
50439
  export type SessionsCreateErrors = {
49671
50440
  /**
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.
50441
+ * The body failed validation and the message names the field: an unknown field, environment_id together with computer_id, a model or thinking selection the agent does not allow, an invalid budget or vault_ids, invalid initial_events, or an agent reference with an unsupported override, or an assume agent (use /agent/v1/agents/{id}/mcp; assume agents do not take sessions).
49673
50442
  */
49674
50443
  400: AgentError;
49675
50444
  /**
@@ -50478,7 +51247,7 @@ export type SessionsEventsListResponses = {
50478
51247
  */
50479
51248
  behavior: 'allow';
50480
51249
  /**
50481
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
51250
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
50482
51251
  */
50483
51252
  destination: 'agent' | 'session';
50484
51253
  /**
@@ -50616,7 +51385,7 @@ export type SessionsEventsListResponses = {
50616
51385
  */
50617
51386
  behavior: 'allow';
50618
51387
  /**
50619
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
51388
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
50620
51389
  */
50621
51390
  destination: 'agent' | 'session';
50622
51391
  /**
@@ -51691,7 +52460,7 @@ export type SessionsThreadsEventsListResponses = {
51691
52460
  */
51692
52461
  behavior: 'allow';
51693
52462
  /**
51694
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
52463
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
51695
52464
  */
51696
52465
  destination: 'agent' | 'session';
51697
52466
  /**
@@ -51829,7 +52598,7 @@ export type SessionsThreadsEventsListResponses = {
51829
52598
  */
51830
52599
  behavior: 'allow';
51831
52600
  /**
51832
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
52601
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
51833
52602
  */
51834
52603
  destination: 'agent' | 'session';
51835
52604
  /**
@@ -52836,11 +53605,11 @@ export type DeploymentsListResponses = {
52836
53605
  */
52837
53606
  budget?: null | AgentManaged76;
52838
53607
  /**
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.
53608
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
52840
53609
  */
52841
53610
  target: {
52842
53611
  /**
52843
- * environment uses an environment recipe; computer uses the personal agent computer.
53612
+ * environment uses an environment recipe; computer uses the agent computer.
52844
53613
  */
52845
53614
  type: 'environment' | 'computer';
52846
53615
  };
@@ -52946,11 +53715,11 @@ export type DeploymentsCreateData = {
52946
53715
  */
52947
53716
  vault_ids?: Array<string>;
52948
53717
  /**
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.
53718
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
52950
53719
  */
52951
53720
  target?: {
52952
53721
  /**
52953
- * environment uses an environment recipe; computer uses the personal agent computer.
53722
+ * environment uses an environment recipe; computer uses the agent computer.
52954
53723
  */
52955
53724
  type: 'environment' | 'computer';
52956
53725
  };
@@ -53106,11 +53875,11 @@ export type DeploymentsCreateResponses = {
53106
53875
  */
53107
53876
  budget?: null | AgentManaged76;
53108
53877
  /**
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.
53878
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
53110
53879
  */
53111
53880
  target: {
53112
53881
  /**
53113
- * environment uses an environment recipe; computer uses the personal agent computer.
53882
+ * environment uses an environment recipe; computer uses the agent computer.
53114
53883
  */
53115
53884
  type: 'environment' | 'computer';
53116
53885
  };
@@ -53275,11 +54044,11 @@ export type DeploymentsRetrieveResponses = {
53275
54044
  */
53276
54045
  budget?: null | AgentManaged76;
53277
54046
  /**
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.
54047
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
53279
54048
  */
53280
54049
  target: {
53281
54050
  /**
53282
- * environment uses an environment recipe; computer uses the personal agent computer.
54051
+ * environment uses an environment recipe; computer uses the agent computer.
53283
54052
  */
53284
54053
  type: 'environment' | 'computer';
53285
54054
  };
@@ -53382,11 +54151,11 @@ export type DeploymentsUpdateData = {
53382
54151
  */
53383
54152
  vault_ids?: null | Array<string>;
53384
54153
  /**
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.
54154
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
53386
54155
  */
53387
54156
  target?: {
53388
54157
  /**
53389
- * environment uses an environment recipe; computer uses the personal agent computer.
54158
+ * environment uses an environment recipe; computer uses the agent computer.
53390
54159
  */
53391
54160
  type: 'environment' | 'computer';
53392
54161
  };
@@ -53555,11 +54324,11 @@ export type DeploymentsUpdateResponses = {
53555
54324
  */
53556
54325
  budget?: null | AgentManaged76;
53557
54326
  /**
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.
54327
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
53559
54328
  */
53560
54329
  target: {
53561
54330
  /**
53562
- * environment uses an environment recipe; computer uses the personal agent computer.
54331
+ * environment uses an environment recipe; computer uses the agent computer.
53563
54332
  */
53564
54333
  type: 'environment' | 'computer';
53565
54334
  };
@@ -53724,11 +54493,11 @@ export type DeploymentsArchiveResponses = {
53724
54493
  */
53725
54494
  budget?: null | AgentManaged76;
53726
54495
  /**
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.
54496
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
53728
54497
  */
53729
54498
  target: {
53730
54499
  /**
53731
- * environment uses an environment recipe; computer uses the personal agent computer.
54500
+ * environment uses an environment recipe; computer uses the agent computer.
53732
54501
  */
53733
54502
  type: 'environment' | 'computer';
53734
54503
  };
@@ -53897,11 +54666,11 @@ export type DeploymentsPauseResponses = {
53897
54666
  */
53898
54667
  budget?: null | AgentManaged76;
53899
54668
  /**
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.
54669
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
53901
54670
  */
53902
54671
  target: {
53903
54672
  /**
53904
- * environment uses an environment recipe; computer uses the personal agent computer.
54673
+ * environment uses an environment recipe; computer uses the agent computer.
53905
54674
  */
53906
54675
  type: 'environment' | 'computer';
53907
54676
  };
@@ -54070,11 +54839,11 @@ export type DeploymentsUnpauseResponses = {
54070
54839
  */
54071
54840
  budget?: null | AgentManaged76;
54072
54841
  /**
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.
54842
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
54074
54843
  */
54075
54844
  target: {
54076
54845
  /**
54077
- * environment uses an environment recipe; computer uses the personal agent computer.
54846
+ * environment uses an environment recipe; computer uses the agent computer.
54078
54847
  */
54079
54848
  type: 'environment' | 'computer';
54080
54849
  };
@@ -57883,7 +58652,7 @@ export type AutomationRunsCreateData = {
57883
58652
  [key: string]: string;
57884
58653
  };
57885
58654
  /**
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.
58655
+ * 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
58656
  */
57888
58657
  deadline_seconds?: number;
57889
58658
  } | {
@@ -57910,7 +58679,7 @@ export type AutomationRunsCreateData = {
57910
58679
  [key: string]: string;
57911
58680
  };
57912
58681
  /**
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.
58682
+ * 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
58683
  */
57915
58684
  deadline_seconds?: number;
57916
58685
  };
@@ -59430,6 +60199,565 @@ export type AutomationHooksReceiveResponses = {
59430
60199
  202: AutomationFiring;
59431
60200
  };
59432
60201
  export type AutomationHooksReceiveResponse = AutomationHooksReceiveResponses[keyof AutomationHooksReceiveResponses];
60202
+ export type AutomationHumanTasksListData = {
60203
+ body?: never;
60204
+ path?: never;
60205
+ query?: {
60206
+ /**
60207
+ * Page size, 1–100, default 50.
60208
+ */
60209
+ limit?: number;
60210
+ /**
60211
+ * The next_cursor of the previous page; omit for the first page.
60212
+ */
60213
+ cursor?: string;
60214
+ /**
60215
+ * Filter by status, comma-separated: open, completed, expired, cancelled. Defaults to open.
60216
+ */
60217
+ status?: Array<AutomationHumanTaskStatus>;
60218
+ /**
60219
+ * Only tasks opened by this run (run_).
60220
+ */
60221
+ run_id?: string;
60222
+ /**
60223
+ * assigned (default) lists only tasks assigned to the caller; all lists every task of the organization.
60224
+ */
60225
+ scope?: 'assigned' | 'all';
60226
+ };
60227
+ url: '/automation/v1/human-tasks';
60228
+ };
60229
+ export type AutomationHumanTasksListErrors = {
60230
+ /**
60231
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60232
+ */
60233
+ 400: AutomationAutomationProblemDetails;
60234
+ /**
60235
+ * RFC 9457 automation problem. 429 includes Retry-After.
60236
+ */
60237
+ default: AutomationAutomationProblemDetails;
60238
+ };
60239
+ export type AutomationHumanTasksListError = AutomationHumanTasksListErrors[keyof AutomationHumanTasksListErrors];
60240
+ export type AutomationHumanTasksListResponses = {
60241
+ /**
60242
+ * Success
60243
+ */
60244
+ 200: {
60245
+ /**
60246
+ * Human tasks on this page, newest first.
60247
+ */
60248
+ data: Array<AutomationHumanTask>;
60249
+ /**
60250
+ * Cursor for the next page, passed back as cursor; null when there are no more.
60251
+ */
60252
+ next_cursor: string | null;
60253
+ };
60254
+ };
60255
+ export type AutomationHumanTasksListResponse = AutomationHumanTasksListResponses[keyof AutomationHumanTasksListResponses];
60256
+ export type AutomationHumanTasksGetData = {
60257
+ body?: never;
60258
+ path: {
60259
+ /**
60260
+ * Human task ID (htask_), from the list or the run's waits.
60261
+ */
60262
+ id: string;
60263
+ };
60264
+ query?: never;
60265
+ url: '/automation/v1/human-tasks/{id}';
60266
+ };
60267
+ export type AutomationHumanTasksGetErrors = {
60268
+ /**
60269
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60270
+ */
60271
+ 400: AutomationAutomationProblemDetails;
60272
+ /**
60273
+ * 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.
60274
+ */
60275
+ 404: AutomationAutomationProblemDetails;
60276
+ /**
60277
+ * RFC 9457 automation problem. 429 includes Retry-After.
60278
+ */
60279
+ default: AutomationAutomationProblemDetails;
60280
+ };
60281
+ export type AutomationHumanTasksGetError = AutomationHumanTasksGetErrors[keyof AutomationHumanTasksGetErrors];
60282
+ export type AutomationHumanTasksGetResponses = {
60283
+ /**
60284
+ * Success
60285
+ */
60286
+ 200: AutomationHumanTask;
60287
+ };
60288
+ export type AutomationHumanTasksGetResponse = AutomationHumanTasksGetResponses[keyof AutomationHumanTasksGetResponses];
60289
+ export type AutomationHumanTasksRespondData = {
60290
+ body: AutomationHumanTaskRespondInput;
60291
+ headers?: {
60292
+ /**
60293
+ * 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.
60294
+ */
60295
+ 'Idempotency-Key'?: string;
60296
+ };
60297
+ path: {
60298
+ /**
60299
+ * Human task ID (htask_).
60300
+ */
60301
+ id: string;
60302
+ };
60303
+ query?: never;
60304
+ url: '/automation/v1/human-tasks/{id}/respond';
60305
+ };
60306
+ export type AutomationHumanTasksRespondErrors = {
60307
+ /**
60308
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60309
+ * COMMENT_REQUIRED: The chosen action requires a comment (require_comment: true); retry with comment set.
60310
+ * INVALID_ACTION: action_id is not one of the task's actions; read the task's actions for the valid ids.
60311
+ * 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.
60312
+ */
60313
+ 400: AutomationAutomationProblemDetails;
60314
+ /**
60315
+ * 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.
60316
+ * 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.
60317
+ * 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.
60318
+ */
60319
+ 403: AutomationAutomationProblemDetails;
60320
+ /**
60321
+ * 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.
60322
+ */
60323
+ 404: AutomationAutomationProblemDetails;
60324
+ /**
60325
+ * 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.
60326
+ * ALREADY_RESPONDED: The caller already responded; each assignee responds once.
60327
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
60328
+ */
60329
+ 409: AutomationAutomationProblemDetails;
60330
+ /**
60331
+ * IDEMPOTENCY_KEY_MISMATCH: The idempotency key was already used for different request content.
60332
+ */
60333
+ 422: AutomationAutomationProblemDetails;
60334
+ /**
60335
+ * RFC 9457 automation problem. 429 includes Retry-After.
60336
+ */
60337
+ default: AutomationAutomationProblemDetails;
60338
+ };
60339
+ export type AutomationHumanTasksRespondError = AutomationHumanTasksRespondErrors[keyof AutomationHumanTasksRespondErrors];
60340
+ export type AutomationHumanTasksRespondResponses = {
60341
+ /**
60342
+ * Success
60343
+ */
60344
+ 200: AutomationHumanTask;
60345
+ };
60346
+ export type AutomationHumanTasksRespondResponse = AutomationHumanTasksRespondResponses[keyof AutomationHumanTasksRespondResponses];
60347
+ export type AutomationHumanTasksCancelData = {
60348
+ body?: AutomationHumanTaskCancelInput;
60349
+ headers?: {
60350
+ /**
60351
+ * 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.
60352
+ */
60353
+ 'Idempotency-Key'?: string;
60354
+ };
60355
+ path: {
60356
+ /**
60357
+ * Human task ID (htask_).
60358
+ */
60359
+ id: string;
60360
+ };
60361
+ query?: never;
60362
+ url: '/automation/v1/human-tasks/{id}/cancel';
60363
+ };
60364
+ export type AutomationHumanTasksCancelErrors = {
60365
+ /**
60366
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60367
+ */
60368
+ 400: AutomationAutomationProblemDetails;
60369
+ /**
60370
+ * 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.
60371
+ */
60372
+ 403: AutomationAutomationProblemDetails;
60373
+ /**
60374
+ * 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.
60375
+ */
60376
+ 404: AutomationAutomationProblemDetails;
60377
+ /**
60378
+ * 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.
60379
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
60380
+ */
60381
+ 409: AutomationAutomationProblemDetails;
60382
+ /**
60383
+ * IDEMPOTENCY_KEY_MISMATCH: The idempotency key was already used for different request content.
60384
+ */
60385
+ 422: AutomationAutomationProblemDetails;
60386
+ /**
60387
+ * RFC 9457 automation problem. 429 includes Retry-After.
60388
+ */
60389
+ default: AutomationAutomationProblemDetails;
60390
+ };
60391
+ export type AutomationHumanTasksCancelError = AutomationHumanTasksCancelErrors[keyof AutomationHumanTasksCancelErrors];
60392
+ export type AutomationHumanTasksCancelResponses = {
60393
+ /**
60394
+ * Success
60395
+ */
60396
+ 200: AutomationHumanTask;
60397
+ };
60398
+ export type AutomationHumanTasksCancelResponse = AutomationHumanTasksCancelResponses[keyof AutomationHumanTasksCancelResponses];
60399
+ export type AutomationHumanTasksDelegateData = {
60400
+ body: AutomationHumanTaskDelegateInput;
60401
+ path: {
60402
+ /**
60403
+ * Human task ID (htask_).
60404
+ */
60405
+ id: string;
60406
+ };
60407
+ query?: never;
60408
+ url: '/automation/v1/human-tasks/{id}/delegate';
60409
+ };
60410
+ export type AutomationHumanTasksDelegateErrors = {
60411
+ /**
60412
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60413
+ */
60414
+ 400: AutomationAutomationProblemDetails;
60415
+ /**
60416
+ * 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.
60417
+ * 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.
60418
+ */
60419
+ 403: AutomationAutomationProblemDetails;
60420
+ /**
60421
+ * 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.
60422
+ */
60423
+ 404: AutomationAutomationProblemDetails;
60424
+ /**
60425
+ * 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.
60426
+ * ALREADY_RESPONDED: The caller already responded; each assignee responds once.
60427
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
60428
+ */
60429
+ 409: AutomationAutomationProblemDetails;
60430
+ /**
60431
+ * RFC 9457 automation problem. 429 includes Retry-After.
60432
+ */
60433
+ default: AutomationAutomationProblemDetails;
60434
+ };
60435
+ export type AutomationHumanTasksDelegateError = AutomationHumanTasksDelegateErrors[keyof AutomationHumanTasksDelegateErrors];
60436
+ export type AutomationHumanTasksDelegateResponses = {
60437
+ /**
60438
+ * Success
60439
+ */
60440
+ 200: AutomationHumanTask;
60441
+ };
60442
+ export type AutomationHumanTasksDelegateResponse = AutomationHumanTasksDelegateResponses[keyof AutomationHumanTasksDelegateResponses];
60443
+ export type CanvasListCanvasesData = {
60444
+ body?: never;
60445
+ path?: never;
60446
+ query?: {
60447
+ /**
60448
+ * Maximum canvases to return per page, from 1 to 100; defaults to 50 when omitted.
60449
+ */
60450
+ limit?: number;
60451
+ /**
60452
+ * Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.
60453
+ */
60454
+ cursor?: string;
60455
+ };
60456
+ url: '/canvas/v1/canvases';
60457
+ };
60458
+ export type CanvasListCanvasesErrors = {
60459
+ /**
60460
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60461
+ */
60462
+ 400: CanvasCanvasError;
60463
+ /**
60464
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60465
+ */
60466
+ 401: CanvasCanvasError;
60467
+ /**
60468
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60469
+ */
60470
+ 403: CanvasCanvasError;
60471
+ /**
60472
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60473
+ */
60474
+ 500: CanvasCanvasError;
60475
+ };
60476
+ export type CanvasListCanvasesError = CanvasListCanvasesErrors[keyof CanvasListCanvasesErrors];
60477
+ export type CanvasListCanvasesResponses = {
60478
+ /**
60479
+ * One page of organization canvases, ordered by most recently updated first.
60480
+ */
60481
+ 200: CanvasCanvasPage;
60482
+ };
60483
+ export type CanvasListCanvasesResponse = CanvasListCanvasesResponses[keyof CanvasListCanvasesResponses];
60484
+ export type CanvasCreateCanvasData = {
60485
+ /**
60486
+ * Optional display name for the new canvas; omit the body or send an empty object to use Untitled.
60487
+ */
60488
+ body?: CanvasCreateCanvasInput;
60489
+ path?: never;
60490
+ query?: never;
60491
+ url: '/canvas/v1/canvases';
60492
+ };
60493
+ export type CanvasCreateCanvasErrors = {
60494
+ /**
60495
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60496
+ */
60497
+ 400: CanvasCanvasError;
60498
+ /**
60499
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60500
+ */
60501
+ 401: CanvasCanvasError;
60502
+ /**
60503
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60504
+ */
60505
+ 403: CanvasCanvasError;
60506
+ /**
60507
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60508
+ */
60509
+ 500: CanvasCanvasError;
60510
+ };
60511
+ export type CanvasCreateCanvasError = CanvasCreateCanvasErrors[keyof CanvasCreateCanvasErrors];
60512
+ export type CanvasCreateCanvasResponses = {
60513
+ /**
60514
+ * The newly created canvas; use id for API calls and viewer_url to watch it in Console.
60515
+ */
60516
+ 201: CanvasCanvas;
60517
+ };
60518
+ export type CanvasCreateCanvasResponse = CanvasCreateCanvasResponses[keyof CanvasCreateCanvasResponses];
60519
+ export type CanvasDeleteCanvasData = {
60520
+ body?: never;
60521
+ path: {
60522
+ /**
60523
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
60524
+ */
60525
+ canvas_id: string;
60526
+ };
60527
+ query?: never;
60528
+ url: '/canvas/v1/canvases/{canvas_id}';
60529
+ };
60530
+ export type CanvasDeleteCanvasErrors = {
60531
+ /**
60532
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60533
+ */
60534
+ 400: CanvasCanvasError;
60535
+ /**
60536
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60537
+ */
60538
+ 401: CanvasCanvasError;
60539
+ /**
60540
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60541
+ */
60542
+ 403: CanvasCanvasError;
60543
+ /**
60544
+ * CANVAS_NOT_FOUND means the canvas does not exist, was deleted or belongs to another organization; choose an accessible canvas id from list or create a new canvas.
60545
+ */
60546
+ 404: CanvasCanvasError;
60547
+ /**
60548
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60549
+ */
60550
+ 500: CanvasCanvasError;
60551
+ };
60552
+ export type CanvasDeleteCanvasError = CanvasDeleteCanvasErrors[keyof CanvasDeleteCanvasErrors];
60553
+ export type CanvasDeleteCanvasResponses = {
60554
+ /**
60555
+ * Confirmation that this canvas has been permanently deleted.
60556
+ */
60557
+ 200: CanvasDeletedCanvas;
60558
+ };
60559
+ export type CanvasDeleteCanvasResponse = CanvasDeleteCanvasResponses[keyof CanvasDeleteCanvasResponses];
60560
+ export type CanvasRetrieveCanvasData = {
60561
+ body?: never;
60562
+ path: {
60563
+ /**
60564
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
60565
+ */
60566
+ canvas_id: string;
60567
+ };
60568
+ query?: never;
60569
+ url: '/canvas/v1/canvases/{canvas_id}';
60570
+ };
60571
+ export type CanvasRetrieveCanvasErrors = {
60572
+ /**
60573
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60574
+ */
60575
+ 400: CanvasCanvasError;
60576
+ /**
60577
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60578
+ */
60579
+ 401: CanvasCanvasError;
60580
+ /**
60581
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60582
+ */
60583
+ 403: CanvasCanvasError;
60584
+ /**
60585
+ * CANVAS_NOT_FOUND means the canvas does not exist, was deleted or belongs to another organization; choose an accessible canvas id from list or create a new canvas.
60586
+ */
60587
+ 404: CanvasCanvasError;
60588
+ /**
60589
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60590
+ */
60591
+ 500: CanvasCanvasError;
60592
+ };
60593
+ export type CanvasRetrieveCanvasError = CanvasRetrieveCanvasErrors[keyof CanvasRetrieveCanvasErrors];
60594
+ export type CanvasRetrieveCanvasResponses = {
60595
+ /**
60596
+ * Current canvas metadata, top-level frame summaries and reusable components.
60597
+ */
60598
+ 200: CanvasCanvasDetail;
60599
+ };
60600
+ export type CanvasRetrieveCanvasResponse = CanvasRetrieveCanvasResponses[keyof CanvasRetrieveCanvasResponses];
60601
+ export type CanvasListNodesData = {
60602
+ body?: never;
60603
+ path: {
60604
+ /**
60605
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
60606
+ */
60607
+ canvas_id: string;
60608
+ };
60609
+ query: {
60610
+ /**
60611
+ * Comma-separated list of 1–100 node ids from retrieve or execute, or instance paths such as a/b; missing ids map to null.
60612
+ */
60613
+ ids: string;
60614
+ /**
60615
+ * Maximum child depth below each requested node, as an integer at least 0; 0 returns the node without descendants, and omission returns the complete subtree.
60616
+ */
60617
+ depth?: number;
60618
+ };
60619
+ url: '/canvas/v1/canvases/{canvas_id}/nodes';
60620
+ };
60621
+ export type CanvasListNodesErrors = {
60622
+ /**
60623
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60624
+ */
60625
+ 400: CanvasCanvasError;
60626
+ /**
60627
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60628
+ */
60629
+ 401: CanvasCanvasError;
60630
+ /**
60631
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60632
+ */
60633
+ 403: CanvasCanvasError;
60634
+ /**
60635
+ * CANVAS_NOT_FOUND means the canvas does not exist, was deleted or belongs to another organization; choose an accessible canvas id from list or create a new canvas.
60636
+ */
60637
+ 404: CanvasCanvasError;
60638
+ /**
60639
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60640
+ */
60641
+ 500: CanvasCanvasError;
60642
+ };
60643
+ export type CanvasListNodesError = CanvasListNodesErrors[keyof CanvasListNodesErrors];
60644
+ export type CanvasListNodesResponses = {
60645
+ /**
60646
+ * Current revision and requested node documents; absent ids map to null rather than failing the request.
60647
+ */
60648
+ 200: CanvasNodesResult;
60649
+ };
60650
+ export type CanvasListNodesResponse = CanvasListNodesResponses[keyof CanvasListNodesResponses];
60651
+ export type CanvasListImagesData = {
60652
+ body?: never;
60653
+ path: {
60654
+ /**
60655
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
60656
+ */
60657
+ canvas_id: string;
60658
+ };
60659
+ query: {
60660
+ /**
60661
+ * Comma-separated list of 1–4 node ids to render, from retrieve, execute.created or execute.screenshots.
60662
+ */
60663
+ ids: string;
60664
+ /**
60665
+ * Output pixel scale relative to canvas dimensions, from 0.25 to 4 inclusive; defaults to 1 when omitted.
60666
+ */
60667
+ scale?: number;
60668
+ /**
60669
+ * Image encoding; png produces a PNG data URL and is the only supported value. Omit to use png.
60670
+ */
60671
+ format?: 'png';
60672
+ };
60673
+ url: '/canvas/v1/canvases/{canvas_id}/images';
60674
+ };
60675
+ export type CanvasListImagesErrors = {
60676
+ /**
60677
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
60678
+ */
60679
+ 400: CanvasCanvasError;
60680
+ /**
60681
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60682
+ */
60683
+ 401: CanvasCanvasError;
60684
+ /**
60685
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60686
+ */
60687
+ 403: CanvasCanvasError;
60688
+ /**
60689
+ * CANVAS_NOT_FOUND means the canvas does not exist, was deleted or belongs to another organization; choose an accessible canvas id from list or create a new canvas.
60690
+ */
60691
+ 404: CanvasCanvasError;
60692
+ /**
60693
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60694
+ */
60695
+ 500: CanvasCanvasError;
60696
+ /**
60697
+ * RENDER_FAILED occurs when rendering cannot complete; retry the render later, using nodes.list to inspect the design in the meantime.
60698
+ */
60699
+ 503: CanvasCanvasError;
60700
+ };
60701
+ export type CanvasListImagesError = CanvasListImagesErrors[keyof CanvasListImagesErrors];
60702
+ export type CanvasListImagesResponses = {
60703
+ /**
60704
+ * A node-id-to-PNG-data-URL map, with err=null; individual unavailable images have null values.
60705
+ */
60706
+ 200: CanvasImagesResult;
60707
+ };
60708
+ export type CanvasListImagesResponse = CanvasListImagesResponses[keyof CanvasListImagesResponses];
60709
+ export type CanvasExecuteData = {
60710
+ /**
60711
+ * Either new script source or the edit_id of a failed script with replacement edits; expected_version optionally guards against concurrent changes.
60712
+ */
60713
+ body: CanvasExecuteInput;
60714
+ path: {
60715
+ /**
60716
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
60717
+ */
60718
+ canvas_id: string;
60719
+ };
60720
+ query?: never;
60721
+ url: '/canvas/v1/canvases/{canvas_id}:execute';
60722
+ };
60723
+ export type CanvasExecuteErrors = {
60724
+ /**
60725
+ * INVALID_PARAMS: script and edit_id are not exclusive or fields violate constraints; correct the request. SCRIPT_ERROR, SCRIPT_LIMIT or OPS_REJECTED: execution failed and all writes rolled back; patch the saved source with details.edit_id and edits, using line, column or rejection if supplied. EDIT_EXPIRED: edit_id is older than ten minutes; submit a corrected new script.
60726
+ */
60727
+ 400: CanvasCanvasError;
60728
+ /**
60729
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
60730
+ */
60731
+ 401: CanvasCanvasError;
60732
+ /**
60733
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
60734
+ */
60735
+ 403: CanvasCanvasError;
60736
+ /**
60737
+ * CANVAS_NOT_FOUND means the canvas is missing, deleted or outside your organization; select an id from list. NODE_NOT_FOUND means a script targets a missing node; retrieve current frames or nodes and correct the node reference before retrying.
60738
+ */
60739
+ 404: CanvasCanvasError;
60740
+ /**
60741
+ * REVISION_CONFLICT means expected_version differs from the current revision in error.details.version; retrieve the latest canvas, merge concurrent changes and retry with that version.
60742
+ */
60743
+ 409: CanvasCanvasError;
60744
+ /**
60745
+ * CANVAS_BUSY means the same canvas has more than four calls queued; wait for pending work to finish before retrying.
60746
+ */
60747
+ 429: CanvasCanvasError;
60748
+ /**
60749
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
60750
+ */
60751
+ 500: CanvasCanvasError;
60752
+ };
60753
+ export type CanvasExecuteError = CanvasExecuteErrors[keyof CanvasExecuteErrors];
60754
+ export type CanvasExecuteResponses = {
60755
+ /**
60756
+ * Committed revision, operation results and viewer URL; screenshots contains node ids to pass to images.list.
60757
+ */
60758
+ 200: CanvasExecuteResult;
60759
+ };
60760
+ export type CanvasExecuteResponse = CanvasExecuteResponses[keyof CanvasExecuteResponses];
59433
60761
  export type DatabaseListDatabasesData = {
59434
60762
  body?: never;
59435
60763
  path?: never;
@@ -62524,7 +63852,7 @@ export type MediaUploadAssetData = {
62524
63852
  */
62525
63853
  filename_override?: string;
62526
63854
  /**
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.
63855
+ * 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
63856
  */
62529
63857
  overwrite?: boolean;
62530
63858
  /**
@@ -62621,7 +63949,7 @@ export type MediaImportAssetData = {
62621
63949
  */
62622
63950
  body: {
62623
63951
  /**
62624
- * File ID to copy into this library; passed as the upload source instead of file bytes.
63952
+ * 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
63953
  */
62626
63954
  file_id: string;
62627
63955
  /**
@@ -62657,7 +63985,7 @@ export type MediaImportAssetData = {
62657
63985
  */
62658
63986
  filename_override?: string;
62659
63987
  /**
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.
63988
+ * 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
63989
  */
62662
63990
  overwrite?: boolean;
62663
63991
  /**
@@ -63116,7 +64444,7 @@ export type MediaExpressionSearchData = {
63116
64444
  */
63117
64445
  body: {
63118
64446
  /**
63119
- * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets.
64447
+ * 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
64448
  */
63121
64449
  expression?: string;
63122
64450
  /**