@deepraxis/sdk 0.1.1-dev.2990b29 → 0.1.1-dev.45236ef

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1020,19 +1020,10 @@ export type OwnFileCreateFileRequest = {
1020
1020
  */
1021
1021
  file: Blob | File;
1022
1022
  /**
1023
- * Purpose label stored with the file: user_data, assistants or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.
1023
+ * Purpose label stored with the file: user_data or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.
1024
1024
  */
1025
- purpose: 'user_data' | 'assistants' | 'vision';
1025
+ purpose: 'user_data' | 'vision';
1026
1026
  expires_after?: OwnFileFileExpirationAfter;
1027
- /**
1028
- * Own-face extensions. Use at most one expiry setting.
1029
- */
1030
- praxis?: {
1031
- /**
1032
- * Lifetime in seconds after creation, from 3600 through 7776000. Send as the multipart field praxis[expires_in_seconds]; mutually exclusive with expires_after.
1033
- */
1034
- expires_in_seconds?: number;
1035
- };
1036
1027
  };
1037
1028
  /**
1038
1029
  * OpenAIFile
@@ -1067,7 +1058,7 @@ export type OwnFileOpenAiFile = {
1067
1058
  /**
1068
1059
  * Upload purpose. Image references in conversations require user_data.
1069
1060
  */
1070
- purpose: 'user_data' | 'assistants' | 'vision';
1061
+ purpose: 'user_data' | 'vision';
1071
1062
  /**
1072
1063
  * Deprecated. The current status of the file, which can be either `uploaded`, `processed`, or `error`.
1073
1064
  *
@@ -1165,9 +1156,9 @@ export type OwnFilePraxisCreateUpload = {
1165
1156
  */
1166
1157
  mime_type: string;
1167
1158
  /**
1168
- * Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images.
1159
+ * Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images.
1169
1160
  */
1170
- purpose: 'user_data' | 'assistants' | 'vision';
1161
+ purpose: 'user_data' | 'vision';
1171
1162
  /**
1172
1163
  * Optional expiry policy for the resulting file; omission retains the file until deletion.
1173
1164
  */
@@ -1212,9 +1203,9 @@ export type OwnFilePraxisUpload = {
1212
1203
  */
1213
1204
  filename: string;
1214
1205
  /**
1215
- * File purpose: user_data for conversation attachments, assistants for assistant files, vision for images.
1206
+ * File purpose: user_data for conversation attachments, vision for images.
1216
1207
  */
1217
- purpose: 'user_data' | 'assistants' | 'vision';
1208
+ purpose: 'user_data' | 'vision';
1218
1209
  /**
1219
1210
  * Upload state: pending accepts parts; completed has a file; cancelled was cancelled; expired exceeded its one-hour lifetime.
1220
1211
  */
@@ -5669,7 +5660,7 @@ export type AgentManaged251 = unknown & {
5669
5660
  */
5670
5661
  behavior: 'allow';
5671
5662
  /**
5672
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
5663
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
5673
5664
  */
5674
5665
  destination: 'agent' | 'session';
5675
5666
  /**
@@ -6054,6 +6045,40 @@ export type AgentSseEvent = ({
6054
6045
  */
6055
6046
  type: 'session.status_terminated';
6056
6047
  };
6048
+ } | {
6049
+ /**
6050
+ * Always `agent.thread_context_compacting`. SSE event name of this frame; its data is a agent.thread_context_compacting payload. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle.
6051
+ */
6052
+ event?: 'agent.thread_context_compacting';
6053
+ /**
6054
+ * Decoded JSON payload of this frame; its shape is selected by the event name.
6055
+ */
6056
+ data?: {
6057
+ /**
6058
+ * Text of the block.
6059
+ */
6060
+ id: string;
6061
+ /**
6062
+ * Always `agent.thread_context_compacting`. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle.
6063
+ */
6064
+ type: 'agent.thread_context_compacting';
6065
+ /**
6066
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
6067
+ */
6068
+ processed_at: string;
6069
+ /**
6070
+ * Text of the block.
6071
+ */
6072
+ session_thread_id?: string;
6073
+ /**
6074
+ * Identifier of the manual operation or automatic compaction record that has started.
6075
+ */
6076
+ compaction_id: string;
6077
+ /**
6078
+ * Whether a caller requested compaction, the session reached its context threshold, or the session compacted while idle.
6079
+ */
6080
+ trigger: 'manual' | 'auto' | 'idle';
6081
+ };
6057
6082
  } | {
6058
6083
  /**
6059
6084
  * Always `agent.thread_context_compacted`. SSE event name of this frame; its data is a agent.thread_context_compacted payload. The thread's context was compacted into a summary.
@@ -6400,7 +6425,7 @@ export type AgentSseEvent = ({
6400
6425
  */
6401
6426
  behavior: 'allow';
6402
6427
  /**
6403
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
6428
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
6404
6429
  */
6405
6430
  destination: 'agent' | 'session';
6406
6431
  /**
@@ -6568,7 +6593,7 @@ export type AgentSseEvent = ({
6568
6593
  */
6569
6594
  behavior: 'allow';
6570
6595
  /**
6571
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
6596
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
6572
6597
  */
6573
6598
  destination: 'agent' | 'session';
6574
6599
  /**
@@ -7453,7 +7478,7 @@ export type AgentSseEvent = ({
7453
7478
  /**
7454
7479
  * Server-Sent Events event name of this frame.
7455
7480
  */
7456
- event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'event_start' | 'event_delta' | 'ping' | 'error';
7481
+ event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'event_start' | 'event_delta' | 'ping' | 'error';
7457
7482
  data: AgentSseData;
7458
7483
  };
7459
7484
  export type AgentManaged256 = {
@@ -8726,7 +8751,7 @@ export type AutomationAutomationProblemDetails = {
8726
8751
  title: string;
8727
8752
  status: number;
8728
8753
  detail: string;
8729
- code: 'METHOD_NOT_ALLOWED' | 'TRIGGER_NOT_FOUND' | 'SCHEDULE_INVALID' | 'TIMEZONE_INVALID' | 'INTERVAL_TOO_SHORT' | 'TRIGGER_MANAGED' | 'TRIGGER_PAUSED' | 'TRIGGER_LIMIT' | 'ACTION_NOT_FOUND' | 'TARGET_NOT_FOUND' | 'VERSION_NOT_FOUND' | 'RUN_NOT_FOUND' | 'WAIT_NOT_FOUND' | 'NAME_TAKEN' | 'VERSION_EXISTS' | 'RUN_INVALID_STATE' | 'IDEMPOTENCY_IN_FLIGHT' | 'TARGET_ARCHIVED' | 'OPERATION_NOT_SUPPORTED' | 'WAIT_ALREADY_RESOLVED' | 'WAIT_EXPIRED' | 'PRECONDITION_FAILED' | 'PAYLOAD_TOO_LARGE' | 'SCHEMA_INCOMPATIBLE' | 'IDEMPOTENCY_KEY_MISMATCH' | 'NO_MATCHING_VERSION' | 'CYCLE_DETECTED' | 'DEFINITION_IDENTITY_MISMATCH' | 'DEFINITION_INVALID' | 'INPUT_INVALID' | 'TAG_INVALID' | 'TAG_REQUIRED' | 'INVALID_PARAMS' | 'NAMESPACE_FORBIDDEN' | 'OWNER_SUSPENDED' | 'RATE_LIMITED' | 'QUOTA_EXCEEDED' | 'SCRIPT_ERROR' | 'OUTPUT_INVALID' | 'CPU_LIMIT_EXCEEDED' | 'NOT_IMPLEMENTED';
8754
+ code: 'METHOD_NOT_ALLOWED' | 'TRIGGER_NOT_FOUND' | 'SCHEDULE_INVALID' | 'TIMEZONE_INVALID' | 'INTERVAL_TOO_SHORT' | 'TRIGGER_MANAGED' | 'TRIGGER_PAUSED' | 'TRIGGER_LIMIT' | 'ACTION_NOT_FOUND' | 'TARGET_NOT_FOUND' | 'VERSION_NOT_FOUND' | 'RUN_NOT_FOUND' | 'WAIT_NOT_FOUND' | 'NAME_TAKEN' | 'VERSION_EXISTS' | 'RUN_INVALID_STATE' | 'IDEMPOTENCY_IN_FLIGHT' | 'TARGET_ARCHIVED' | 'OPERATION_NOT_SUPPORTED' | 'WAIT_ALREADY_RESOLVED' | 'WAIT_EXPIRED' | 'PRECONDITION_FAILED' | 'PAYLOAD_TOO_LARGE' | 'SCHEMA_INCOMPATIBLE' | 'IDEMPOTENCY_KEY_MISMATCH' | 'NO_MATCHING_VERSION' | 'CYCLE_DETECTED' | 'DEFINITION_IDENTITY_MISMATCH' | 'DEFINITION_INVALID' | 'INPUT_INVALID' | 'TAG_INVALID' | 'TAG_REQUIRED' | 'INVALID_PARAMS' | 'NAMESPACE_FORBIDDEN' | 'OWNER_SUSPENDED' | 'RATE_LIMITED' | 'QUOTA_EXCEEDED' | 'SCRIPT_ERROR' | 'OUTPUT_INVALID' | 'CPU_LIMIT_EXCEEDED' | 'NOT_IMPLEMENTED' | 'HUMAN_TASK_NOT_FOUND' | 'TASK_CLOSED' | 'ALREADY_RESPONDED' | 'NOT_ASSIGNED' | 'SELF_APPROVAL' | 'AGENT_NOT_ALLOWED' | 'COMMENT_REQUIRED' | 'INVALID_ACTION' | 'INVALID_VALUES' | 'HUMAN_TASK_CANCELLED';
8730
8755
  errors: Array<AutomationDiagnostic>;
8731
8756
  issues: Array<AutomationCompatIssue>;
8732
8757
  hint: string | null;
@@ -9598,7 +9623,7 @@ export type AutomationRun = {
9598
9623
  */
9599
9624
  attach: null | 'wait' | 'detach';
9600
9625
  /**
9601
- * Deadline of the run (RFC 3339 UTC): creation time plus deadline_seconds (scripts default to and are capped at 300 seconds; workflows default to 86400 and are capped at 604800), and an awaited child ends at least 1 second before its parent's deadline.
9626
+ * Deadline of the run (RFC 3339 UTC): creation time plus deadline_seconds (scripts default to and are capped at 300 seconds; workflows default to 86400 and are capped at 2592000 (30 days)), and an awaited child ends at least 1 second before its parent's deadline.
9602
9627
  */
9603
9628
  deadline_at: string;
9604
9629
  /**
@@ -9792,7 +9817,7 @@ export type AutomationExpandedRun = {
9792
9817
  */
9793
9818
  attach: null | 'wait' | 'detach';
9794
9819
  /**
9795
- * Deadline of the run (RFC 3339 UTC): creation time plus deadline_seconds (scripts default to and are capped at 300 seconds; workflows default to 86400 and are capped at 604800), and an awaited child ends at least 1 second before its parent's deadline.
9820
+ * Deadline of the run (RFC 3339 UTC): creation time plus deadline_seconds (scripts default to and are capped at 300 seconds; workflows default to 86400 and are capped at 2592000 (30 days)), and an awaited child ends at least 1 second before its parent's deadline.
9796
9821
  */
9797
9822
  deadline_at: string;
9798
9823
  /**
@@ -10743,6 +10768,183 @@ export type AutomationTriggerPreview = {
10743
10768
  */
10744
10769
  next_fire_times: Array<string>;
10745
10770
  };
10771
+ export type AutomationHumanTaskStatus = 'open' | 'completed' | 'expired' | 'cancelled';
10772
+ export type AutomationHumanTask = {
10773
+ /**
10774
+ * Human task ID (htask_), derived deterministically from the run and step; use it with retrieve, respond, cancel and delegate. The Console page is /automation/tasks/{id}.
10775
+ */
10776
+ id: string;
10777
+ /**
10778
+ * ID of the organization that owns the task.
10779
+ */
10780
+ owner: string;
10781
+ /**
10782
+ * ID of the workflow run (run_) that opened the task; the run continues once the task closes.
10783
+ */
10784
+ run_id: string;
10785
+ /**
10786
+ * The published workflow of the run; null for an ad hoc run.
10787
+ */
10788
+ workflow: {
10789
+ /**
10790
+ * Workflow namespace.
10791
+ */
10792
+ namespace: string;
10793
+ /**
10794
+ * Workflow name.
10795
+ */
10796
+ name: string;
10797
+ } | null;
10798
+ /**
10799
+ * JSON Pointer of the approval step in the workflow source, for example /do/1/approveRefund.
10800
+ */
10801
+ task_reference: string;
10802
+ /**
10803
+ * ID of the run's wait (wait_htask_); it closes only through respond, never through the run wait completion endpoint.
10804
+ */
10805
+ wait_id: string;
10806
+ /**
10807
+ * Task kind; currently only approval.
10808
+ */
10809
+ kind: 'approval';
10810
+ /**
10811
+ * Approval title, at most 200 characters.
10812
+ */
10813
+ title: string;
10814
+ /**
10815
+ * Markdown details for the assignees, up to 16 KiB; empty string when not given.
10816
+ */
10817
+ body: string;
10818
+ /**
10819
+ * JSON context the workflow attached (for example the order), up to 32 KiB; null when not given.
10820
+ */
10821
+ context: AutomationJsonValue;
10822
+ /**
10823
+ * The 1–6 buttons an assignee chooses from; defaults to approve and reject.
10824
+ */
10825
+ actions: Array<AutomationHumanTaskAction>;
10826
+ /**
10827
+ * The form an assignee fills in (a JSON Schema subset - an object with at most 30 string, number, integer, boolean or enum fields); null when there is no form.
10828
+ */
10829
+ form_schema: AutomationJsonObject | null;
10830
+ /**
10831
+ * The assignees.
10832
+ */
10833
+ assignees: {
10834
+ /**
10835
+ * Assignee user IDs, 1–20; sequential mode follows this order. Delegation replaces an entry in place.
10836
+ */
10837
+ users: Array<string>;
10838
+ /**
10839
+ * Group assignment; not supported yet, always an empty array.
10840
+ */
10841
+ groups: Array<string>;
10842
+ };
10843
+ /**
10844
+ * Decision rule. any: the first response decides. all: everyone must respond and any rejection rejects at once. quorum: quorum approvals approve, and it rejects once that many approvals are no longer possible. sequential: assignees respond in users order; any rejection rejects at once and the last approval approves.
10845
+ */
10846
+ mode: 'any' | 'all' | 'quorum' | 'sequential';
10847
+ /**
10848
+ * Number of approvals required in quorum mode; null in other modes.
10849
+ */
10850
+ quorum: number | null;
10851
+ /**
10852
+ * When true, the person who started the run may respond to their own request; false by default.
10853
+ */
10854
+ allow_self_approval: boolean;
10855
+ /**
10856
+ * When true, an agent (agent session or run token) may respond; false by default.
10857
+ */
10858
+ allow_agent_decision: boolean;
10859
+ /**
10860
+ * The subject that started the run.
10861
+ */
10862
+ initiator: {
10863
+ /**
10864
+ * Initiator type: user, api_key, agent, run (a parent run) or trigger.
10865
+ */
10866
+ type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
10867
+ /**
10868
+ * Initiator ID.
10869
+ */
10870
+ id: string;
10871
+ /**
10872
+ * The user behind the initiator (the owner of an API key or trigger), null when unknown; the self-approval rule uses it.
10873
+ */
10874
+ user_id: string | null;
10875
+ };
10876
+ /**
10877
+ * Due time (RFC 3339); defaults to 3 days after creation, at most 30 days and never later than the run's deadline. on_timeout applies when it passes.
10878
+ */
10879
+ due_at: string;
10880
+ /**
10881
+ * What happens at due_at.
10882
+ */
10883
+ on_timeout: {
10884
+ /**
10885
+ * reject: the workflow receives decision timeout:reject. approve: it receives timeout:approve. fault (default): the step raises a timeout error that try/catch can catch.
10886
+ */
10887
+ action: 'reject' | 'approve' | 'fault';
10888
+ };
10889
+ /**
10890
+ * Reminder intervals (ISO 8601 durations, up to 3); stored, not yet sent in this version.
10891
+ */
10892
+ remind: Array<string>;
10893
+ /**
10894
+ * Notification channels: console or email; stored, delivery is not wired yet.
10895
+ */
10896
+ channels: Array<'console' | 'email'>;
10897
+ /**
10898
+ * An agent's proposal (any JSON up to 32 KiB) for the assignees to consider; null when not given.
10899
+ */
10900
+ proposal: AutomationJsonValue;
10901
+ /**
10902
+ * open: awaiting responses. completed: decided. expired: due_at passed. cancelled: withdrawn, including automatically when the run ended.
10903
+ */
10904
+ status: AutomationHumanTaskStatus;
10905
+ /**
10906
+ * Responses submitted so far, in order.
10907
+ */
10908
+ responses: Array<AutomationHumanTaskResponse>;
10909
+ /**
10910
+ * The decision, which is also the workflow step's output; null while open, and after a fault timeout or cancellation.
10911
+ */
10912
+ outcome: AutomationHumanTaskOutcome | null;
10913
+ /**
10914
+ * Creation time (RFC 3339).
10915
+ */
10916
+ created_at: string;
10917
+ /**
10918
+ * Last change time (RFC 3339).
10919
+ */
10920
+ updated_at: string;
10921
+ };
10922
+ export type AutomationHumanTaskRespondInput = {
10923
+ /**
10924
+ * The chosen action ID from the task's actions, for example approve.
10925
+ */
10926
+ action_id: string;
10927
+ /**
10928
+ * Form values matching the task's form_schema; omit or pass {} when there is no form.
10929
+ */
10930
+ values?: AutomationJsonObject;
10931
+ /**
10932
+ * Comment of at most 4000 characters; required when the action has require_comment true.
10933
+ */
10934
+ comment?: string;
10935
+ };
10936
+ export type AutomationHumanTaskCancelInput = {
10937
+ /**
10938
+ * Optional cancellation reason, at most 500 characters.
10939
+ */
10940
+ reason?: string;
10941
+ };
10942
+ export type AutomationHumanTaskDelegateInput = {
10943
+ /**
10944
+ * User ID taking over; cannot already be an assignee, nor the initiator unless self-approval is allowed.
10945
+ */
10946
+ to_user: string;
10947
+ };
10746
10948
  export type DatabaseCreateDatabaseInput = {
10747
10949
  /**
10748
10950
  * 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 +11109,7 @@ export type DatabaseNewField = {
10907
11109
  */
10908
11110
  unique?: boolean;
10909
11111
  /**
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.
11112
+ * 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
11113
  */
10912
11114
  indexed?: boolean;
10913
11115
  /**
@@ -10942,7 +11144,7 @@ export type DatabaseNewField = {
10942
11144
  */
10943
11145
  unique?: boolean;
10944
11146
  /**
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.
11147
+ * 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
11148
  */
10947
11149
  indexed?: boolean;
10948
11150
  /**
@@ -10982,7 +11184,7 @@ export type DatabaseNewField = {
10982
11184
  */
10983
11185
  unique?: boolean;
10984
11186
  /**
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.
11187
+ * 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
11188
  */
10987
11189
  indexed?: boolean;
10988
11190
  /**
@@ -13694,7 +13896,7 @@ export type OwnFileFileExpirationAfter = {
13694
13896
  */
13695
13897
  anchor: 'created_at';
13696
13898
  /**
13697
- * Lifetime in seconds after creation, from 3600 through 2592000. Send as expires_after[seconds]; do not combine with praxis[expires_in_seconds].
13899
+ * Lifetime in seconds after creation, from 3600 through 7776000. Send as expires_after[seconds].
13698
13900
  */
13699
13901
  seconds: number;
13700
13902
  };
@@ -19211,6 +19413,31 @@ export type AgentSseData = {
19211
19413
  * Always `session.status_terminated`. The session ended and accepts no more work.
19212
19414
  */
19213
19415
  type: 'session.status_terminated';
19416
+ } | {
19417
+ /**
19418
+ * Text of the block.
19419
+ */
19420
+ id: string;
19421
+ /**
19422
+ * Always `agent.thread_context_compacting`. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle.
19423
+ */
19424
+ type: 'agent.thread_context_compacting';
19425
+ /**
19426
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
19427
+ */
19428
+ processed_at: string;
19429
+ /**
19430
+ * Text of the block.
19431
+ */
19432
+ session_thread_id?: string;
19433
+ /**
19434
+ * Identifier of the manual operation or automatic compaction record that has started.
19435
+ */
19436
+ compaction_id: string;
19437
+ /**
19438
+ * Whether a caller requested compaction, the session reached its context threshold, or the session compacted while idle.
19439
+ */
19440
+ trigger: 'manual' | 'auto' | 'idle';
19214
19441
  } | {
19215
19442
  /**
19216
19443
  * Unique identifier for this event.
@@ -19486,7 +19713,7 @@ export type AgentSseData = {
19486
19713
  */
19487
19714
  behavior: 'allow';
19488
19715
  /**
19489
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
19716
+ * 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
19717
  */
19491
19718
  destination: 'agent' | 'session';
19492
19719
  /**
@@ -19636,7 +19863,7 @@ export type AgentSseData = {
19636
19863
  */
19637
19864
  behavior: 'allow';
19638
19865
  /**
19639
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
19866
+ * 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
19867
  */
19641
19868
  destination: 'agent' | 'session';
19642
19869
  /**
@@ -21332,6 +21559,72 @@ export type AutomationAttributedUsage = {
21332
21559
  */
21333
21560
  pending_events: number;
21334
21561
  };
21562
+ export type AutomationHumanTaskAction = {
21563
+ /**
21564
+ * Action ID to pass as action_id to respond; starts with a lowercase letter, at most 32 characters.
21565
+ */
21566
+ id: string;
21567
+ /**
21568
+ * Button label.
21569
+ */
21570
+ label: string;
21571
+ /**
21572
+ * primary: the main button. danger: a destructive button, which is the rejection in all, quorum and sequential modes. default: a plain button.
21573
+ */
21574
+ style: 'primary' | 'danger' | 'default';
21575
+ /**
21576
+ * When true, choosing this action requires a comment.
21577
+ */
21578
+ require_comment: boolean;
21579
+ };
21580
+ export type AutomationHumanTaskResponse = {
21581
+ /**
21582
+ * Who responded.
21583
+ */
21584
+ actor: AutomationHumanTaskActor;
21585
+ /**
21586
+ * The chosen action ID.
21587
+ */
21588
+ action_id: string;
21589
+ /**
21590
+ * Submitted form values; an empty object when there is no form.
21591
+ */
21592
+ values: AutomationJsonObject;
21593
+ /**
21594
+ * Comment; null when none.
21595
+ */
21596
+ comment: string | null;
21597
+ /**
21598
+ * Where it came from: console, api (the public API) or agent.
21599
+ */
21600
+ via: 'console' | 'api' | 'agent';
21601
+ /**
21602
+ * Submission time (RFC 3339).
21603
+ */
21604
+ at: string;
21605
+ };
21606
+ export type AutomationHumanTaskOutcome = {
21607
+ /**
21608
+ * The deciding action ID, or timeout:reject / timeout:approve when on_timeout decided.
21609
+ */
21610
+ decision: string;
21611
+ /**
21612
+ * Form values of the deciding response; an empty object on timeout.
21613
+ */
21614
+ values: AutomationJsonObject;
21615
+ /**
21616
+ * Comment of the deciding response; null on timeout.
21617
+ */
21618
+ comment: string | null;
21619
+ /**
21620
+ * Who decided; null on timeout.
21621
+ */
21622
+ decided_by: AutomationHumanTaskActor | null;
21623
+ /**
21624
+ * All responses at the time the task closed.
21625
+ */
21626
+ responses: Array<AutomationHumanTaskResponse>;
21627
+ };
21335
21628
  export type DatabaseField = {
21336
21629
  /**
21337
21630
  * Field identifier, prefixed fld_. Stable across renames; accepted wherever a field path parameter takes an id or name.
@@ -22180,7 +22473,7 @@ export type MediaSemanticHit = {
22180
22473
  */
22181
22474
  asset: MediaAsset;
22182
22475
  /**
22183
- * Ranking score: cosine similarity for semantic or visual search; normalized rank-fusion score for hybrid search. Higher values rank first.
22476
+ * 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
22477
  */
22185
22478
  score: number;
22186
22479
  /**
@@ -26210,6 +26503,20 @@ export type AgentManaged141 = {
26210
26503
  */
26211
26504
  type?: 'packages';
26212
26505
  };
26506
+ export type AutomationHumanTaskActor = {
26507
+ /**
26508
+ * The responder's user ID (for an agent, the user it acts for).
26509
+ */
26510
+ id: string;
26511
+ /**
26512
+ * human: the person responded. agent: an agent responded on their behalf.
26513
+ */
26514
+ kind: 'human' | 'agent';
26515
+ /**
26516
+ * Display name; this service does not resolve names, so it is null and the Console resolves it from the user ID.
26517
+ */
26518
+ display_name: string | null;
26519
+ };
26213
26520
  export type KnowledgeStaticChunking = {
26214
26521
  /**
26215
26522
  * static selects explicit chunk-size and overlap settings.
@@ -27721,7 +28028,7 @@ export type ApplyAgentVersionResponses = {
27721
28028
  */
27722
28029
  note: string | null;
27723
28030
  /**
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.
28031
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; 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
28032
  */
27726
28033
  bindings: Array<{
27727
28034
  /**
@@ -27763,9 +28070,9 @@ export type ApplyAgentVersionResponses = {
27763
28070
  enabled?: boolean;
27764
28071
  }>;
27765
28072
  /**
27766
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
28073
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
27767
28074
  */
27768
- kind: 'personal' | 'service';
28075
+ kind: 'general' | 'personal' | 'service';
27769
28076
  /**
27770
28077
  * 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
28078
  */
@@ -28116,6 +28423,10 @@ export type ApplyAgentVersionResponses = {
28116
28423
  */
28117
28424
  hooks?: Array<string>;
28118
28425
  };
28426
+ /**
28427
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
28428
+ */
28429
+ idleCompaction?: boolean;
28119
28430
  } | null;
28120
28431
  /**
28121
28432
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -28909,7 +29220,7 @@ export type UnarchiveAgentResponses = {
28909
29220
  */
28910
29221
  note: string | null;
28911
29222
  /**
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.
29223
+ * 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
29224
  */
28914
29225
  bindings: Array<{
28915
29226
  /**
@@ -28951,9 +29262,9 @@ export type UnarchiveAgentResponses = {
28951
29262
  enabled?: boolean;
28952
29263
  }>;
28953
29264
  /**
28954
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
29265
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
28955
29266
  */
28956
- kind: 'personal' | 'service';
29267
+ kind: 'general' | 'personal' | 'service';
28957
29268
  /**
28958
29269
  * 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
29270
  */
@@ -29304,6 +29615,10 @@ export type UnarchiveAgentResponses = {
29304
29615
  */
29305
29616
  hooks?: Array<string>;
29306
29617
  };
29618
+ /**
29619
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
29620
+ */
29621
+ idleCompaction?: boolean;
29307
29622
  } | null;
29308
29623
  /**
29309
29624
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -36146,11 +36461,11 @@ export type CompactSessionResponses = {
36146
36461
  */
36147
36462
  id: string;
36148
36463
  /**
36149
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36464
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
36150
36465
  */
36151
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36466
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
36152
36467
  /**
36153
- * Why the compaction was skipped or failed; absent otherwise.
36468
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
36154
36469
  */
36155
36470
  reason?: string;
36156
36471
  };
@@ -36167,11 +36482,11 @@ export type CompactSessionResponses = {
36167
36482
  */
36168
36483
  id: string;
36169
36484
  /**
36170
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36485
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
36171
36486
  */
36172
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36487
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
36173
36488
  /**
36174
- * Why the compaction was skipped or failed; absent otherwise.
36489
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
36175
36490
  */
36176
36491
  reason?: string;
36177
36492
  };
@@ -36229,11 +36544,11 @@ export type GetSessionCompactionResponses = {
36229
36544
  */
36230
36545
  id: string;
36231
36546
  /**
36232
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36547
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
36233
36548
  */
36234
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36549
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
36235
36550
  /**
36236
- * Why the compaction was skipped or failed; absent otherwise.
36551
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
36237
36552
  */
36238
36553
  reason?: string;
36239
36554
  };
@@ -36278,6 +36593,27 @@ export type ListSessionCompactionsResponses = {
36278
36593
  * Compaction history
36279
36594
  */
36280
36595
  200: {
36596
+ /**
36597
+ * Current compaction, including queued manual requests; null when none is in progress. Manual takes precedence over automatic work.
36598
+ */
36599
+ active: {
36600
+ /**
36601
+ * Always `session_compaction`. Result of a compaction request.
36602
+ */
36603
+ type: 'session_compaction';
36604
+ /**
36605
+ * Identifier of the active manual operation or automatic compaction record.
36606
+ */
36607
+ id: string;
36608
+ /**
36609
+ * Whether compaction is waiting to start or generating its summary.
36610
+ */
36611
+ status: 'queued' | 'running';
36612
+ /**
36613
+ * Whether a caller requested compaction, the context reached its threshold, or the session compacted while idle.
36614
+ */
36615
+ trigger: 'manual' | 'auto' | 'idle';
36616
+ } | null;
36281
36617
  /**
36282
36618
  * Items of this page, in the order requested by the call.
36283
36619
  */
@@ -36297,7 +36633,7 @@ export type ListSessionCompactionsResponses = {
36297
36633
  /**
36298
36634
  * What started the compaction.
36299
36635
  */
36300
- trigger: 'auto' | 'manual' | 'model_downshift';
36636
+ trigger: 'auto' | 'manual' | 'model_downshift' | 'idle';
36301
36637
  /**
36302
36638
  * Final outcome of the compaction.
36303
36639
  */
@@ -38106,6 +38442,107 @@ export type MetaMethodsRetrieveResponses = {
38106
38442
  200: MetaMethod;
38107
38443
  };
38108
38444
  export type MetaMethodsRetrieveResponse = MetaMethodsRetrieveResponses[keyof MetaMethodsRetrieveResponses];
38445
+ export type MetaDocsRetrieveData = {
38446
+ body?: never;
38447
+ path: {
38448
+ /**
38449
+ * Slash-separated documentation path from docs.search; optionally append #heading-id to select a section.
38450
+ */
38451
+ path: string;
38452
+ };
38453
+ query?: {
38454
+ /**
38455
+ * Documentation language: zh for Chinese (default), en for English.
38456
+ */
38457
+ lang?: 'zh' | 'en';
38458
+ };
38459
+ url: '/meta/v1/docs/{path}';
38460
+ };
38461
+ export type MetaDocsRetrieveErrors = {
38462
+ /**
38463
+ * INVALID_PARAMS: lang must be zh or en; correct the language and retry.
38464
+ */
38465
+ 400: MetaProblem;
38466
+ /**
38467
+ * DOC_NOT_FOUND: page or anchor does not exist; use docs.search to find a valid documentation path.
38468
+ */
38469
+ 404: MetaProblem;
38470
+ };
38471
+ export type MetaDocsRetrieveError = MetaDocsRetrieveErrors[keyof MetaDocsRetrieveErrors];
38472
+ export type MetaDocsRetrieveResponses = {
38473
+ /**
38474
+ * Documentation page as Markdown, never the HTML website.
38475
+ */
38476
+ 200: {
38477
+ /**
38478
+ * Documentation path, including the requested section anchor when present.
38479
+ */
38480
+ path: string;
38481
+ /**
38482
+ * Human-readable title of the documentation page.
38483
+ */
38484
+ title: string;
38485
+ /**
38486
+ * Canonical documentation URL for reading the page in a browser.
38487
+ */
38488
+ url: string;
38489
+ /**
38490
+ * Compiled page Markdown, or only the requested heading section and its subsections.
38491
+ */
38492
+ markdown: string;
38493
+ };
38494
+ };
38495
+ export type MetaDocsRetrieveResponse = MetaDocsRetrieveResponses[keyof MetaDocsRetrieveResponses];
38496
+ export type MetaDocsSearchData = {
38497
+ body?: never;
38498
+ path?: never;
38499
+ query: {
38500
+ /**
38501
+ * Keywords describing the syntax or guide needed, for example export or workflow.
38502
+ */
38503
+ q: string;
38504
+ /**
38505
+ * Maximum number of matching pages returned; integer 1–50, default 20.
38506
+ */
38507
+ limit?: number;
38508
+ /**
38509
+ * Documentation language: zh for Chinese (default), en for English.
38510
+ */
38511
+ lang?: 'zh' | 'en';
38512
+ };
38513
+ url: '/meta/v1/docs/search';
38514
+ };
38515
+ export type MetaDocsSearchErrors = {
38516
+ /**
38517
+ * INVALID_PARAMS: supply nonempty q, limit from 1 to 50 and lang zh or en.
38518
+ */
38519
+ 400: MetaProblem;
38520
+ };
38521
+ export type MetaDocsSearchError = MetaDocsSearchErrors[keyof MetaDocsSearchErrors];
38522
+ export type MetaDocsSearchResponses = {
38523
+ /**
38524
+ * Matching documentation pages; empty when no page contains all keywords.
38525
+ */
38526
+ 200: Array<{
38527
+ /**
38528
+ * Documentation path, including the requested section anchor when present.
38529
+ */
38530
+ path: string;
38531
+ /**
38532
+ * Human-readable title of the documentation page.
38533
+ */
38534
+ title: string;
38535
+ /**
38536
+ * Canonical documentation URL for reading the page in a browser.
38537
+ */
38538
+ url: string;
38539
+ /**
38540
+ * Short excerpt from the matching page to help choose which documentation to retrieve.
38541
+ */
38542
+ snippet: string;
38543
+ }>;
38544
+ };
38545
+ export type MetaDocsSearchResponse = MetaDocsSearchResponses[keyof MetaDocsSearchResponses];
38109
38546
  export type ListModelsData = {
38110
38547
  body?: never;
38111
38548
  path?: never;
@@ -44715,15 +45152,15 @@ export type AgentsListData = {
44715
45152
  limit?: number;
44716
45153
  page?: null | string;
44717
45154
  /**
44718
- * Personal agents use a durable computer; service agents use a clean environment per session.
45155
+ * General agents use a durable computer and act for their owner; personal agents behave like general agents for now and are reserved for the personal agent; service agents use a clean environment per session.
44719
45156
  */
44720
- kind?: 'personal' | 'service';
45157
+ kind?: 'general' | 'personal' | 'service';
44721
45158
  };
44722
45159
  url: '/agent/v1/agents';
44723
45160
  };
44724
45161
  export type AgentsListErrors = {
44725
45162
  /**
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.
45163
+ * include_archived is not true or false, kind is not general, 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.
44727
45164
  */
44728
45165
  400: AgentError;
44729
45166
  /**
@@ -44867,7 +45304,7 @@ export type AgentsListResponses = {
44867
45304
  */
44868
45305
  note: string | null;
44869
45306
  /**
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.
45307
+ * 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
45308
  */
44872
45309
  bindings: Array<{
44873
45310
  /**
@@ -44909,9 +45346,9 @@ export type AgentsListResponses = {
44909
45346
  enabled?: boolean;
44910
45347
  }>;
44911
45348
  /**
44912
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
45349
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
44913
45350
  */
44914
- kind: 'personal' | 'service';
45351
+ kind: 'general' | 'personal' | 'service';
44915
45352
  /**
44916
45353
  * 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
45354
  */
@@ -45262,6 +45699,10 @@ export type AgentsListResponses = {
45262
45699
  */
45263
45700
  hooks?: Array<string>;
45264
45701
  };
45702
+ /**
45703
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
45704
+ */
45705
+ idleCompaction?: boolean;
45265
45706
  } | null;
45266
45707
  /**
45267
45708
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -45377,7 +45818,7 @@ export type AgentsCreateData = {
45377
45818
  */
45378
45819
  tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
45379
45820
  /**
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.
45821
+ * 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
45822
  */
45382
45823
  bindings?: Array<{
45383
45824
  /**
@@ -45419,9 +45860,9 @@ export type AgentsCreateData = {
45419
45860
  enabled?: boolean;
45420
45861
  }>;
45421
45862
  /**
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.
45863
+ * Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
45423
45864
  */
45424
- kind?: 'personal' | 'service';
45865
+ kind?: 'general' | 'personal' | 'service';
45425
45866
  /**
45426
45867
  * 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
45868
  */
@@ -45772,6 +46213,10 @@ export type AgentsCreateData = {
45772
46213
  */
45773
46214
  hooks?: Array<string>;
45774
46215
  };
46216
+ /**
46217
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
46218
+ */
46219
+ idleCompaction?: boolean;
45775
46220
  } | null;
45776
46221
  /**
45777
46222
  * 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 +46228,7 @@ export type AgentsCreateData = {
45783
46228
  allowed: Array<string>;
45784
46229
  };
45785
46230
  /**
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.
46231
+ * 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
46232
  */
45788
46233
  avatar?: string | null;
45789
46234
  /**
@@ -45949,7 +46394,7 @@ export type AgentsCreateResponses = {
45949
46394
  */
45950
46395
  note: string | null;
45951
46396
  /**
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.
46397
+ * 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
46398
  */
45954
46399
  bindings: Array<{
45955
46400
  /**
@@ -45991,9 +46436,9 @@ export type AgentsCreateResponses = {
45991
46436
  enabled?: boolean;
45992
46437
  }>;
45993
46438
  /**
45994
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
46439
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
45995
46440
  */
45996
- kind: 'personal' | 'service';
46441
+ kind: 'general' | 'personal' | 'service';
45997
46442
  /**
45998
46443
  * 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
46444
  */
@@ -46344,6 +46789,10 @@ export type AgentsCreateResponses = {
46344
46789
  */
46345
46790
  hooks?: Array<string>;
46346
46791
  };
46792
+ /**
46793
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
46794
+ */
46795
+ idleCompaction?: boolean;
46347
46796
  } | null;
46348
46797
  /**
46349
46798
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -46548,7 +46997,7 @@ export type AgentsRetrieveResponses = {
46548
46997
  */
46549
46998
  note: string | null;
46550
46999
  /**
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.
47000
+ * 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
47001
  */
46553
47002
  bindings: Array<{
46554
47003
  /**
@@ -46590,9 +47039,9 @@ export type AgentsRetrieveResponses = {
46590
47039
  enabled?: boolean;
46591
47040
  }>;
46592
47041
  /**
46593
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
47042
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
46594
47043
  */
46595
- kind: 'personal' | 'service';
47044
+ kind: 'general' | 'personal' | 'service';
46596
47045
  /**
46597
47046
  * 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
47047
  */
@@ -46943,6 +47392,10 @@ export type AgentsRetrieveResponses = {
46943
47392
  */
46944
47393
  hooks?: Array<string>;
46945
47394
  };
47395
+ /**
47396
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
47397
+ */
47398
+ idleCompaction?: boolean;
46946
47399
  } | null;
46947
47400
  /**
46948
47401
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -47109,9 +47562,9 @@ export type AgentsUpdateData = {
47109
47562
  enabled?: boolean;
47110
47563
  }> | null;
47111
47564
  /**
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.
47565
+ * Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
47113
47566
  */
47114
- kind?: 'personal' | 'service';
47567
+ kind?: 'general' | 'personal' | 'service';
47115
47568
  /**
47116
47569
  * 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
47570
  */
@@ -47462,6 +47915,10 @@ export type AgentsUpdateData = {
47462
47915
  */
47463
47916
  hooks?: Array<string>;
47464
47917
  };
47918
+ /**
47919
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
47920
+ */
47921
+ idleCompaction?: boolean;
47465
47922
  } | null;
47466
47923
  /**
47467
47924
  * 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 +47930,7 @@ export type AgentsUpdateData = {
47473
47930
  allowed: Array<string>;
47474
47931
  };
47475
47932
  /**
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.
47933
+ * 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
47934
  */
47478
47935
  avatar?: string | null;
47479
47936
  /**
@@ -47652,7 +48109,7 @@ export type AgentsUpdateResponses = {
47652
48109
  */
47653
48110
  note: string | null;
47654
48111
  /**
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.
48112
+ * 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
48113
  */
47657
48114
  bindings: Array<{
47658
48115
  /**
@@ -47694,9 +48151,9 @@ export type AgentsUpdateResponses = {
47694
48151
  enabled?: boolean;
47695
48152
  }>;
47696
48153
  /**
47697
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
48154
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
47698
48155
  */
47699
- kind: 'personal' | 'service';
48156
+ kind: 'general' | 'personal' | 'service';
47700
48157
  /**
47701
48158
  * 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
48159
  */
@@ -48047,6 +48504,10 @@ export type AgentsUpdateResponses = {
48047
48504
  */
48048
48505
  hooks?: Array<string>;
48049
48506
  };
48507
+ /**
48508
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
48509
+ */
48510
+ idleCompaction?: boolean;
48050
48511
  } | null;
48051
48512
  /**
48052
48513
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -48237,7 +48698,7 @@ export type AgentsArchiveResponses = {
48237
48698
  */
48238
48699
  note: string | null;
48239
48700
  /**
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.
48701
+ * 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
48702
  */
48242
48703
  bindings: Array<{
48243
48704
  /**
@@ -48279,9 +48740,9 @@ export type AgentsArchiveResponses = {
48279
48740
  enabled?: boolean;
48280
48741
  }>;
48281
48742
  /**
48282
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
48743
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
48283
48744
  */
48284
- kind: 'personal' | 'service';
48745
+ kind: 'general' | 'personal' | 'service';
48285
48746
  /**
48286
48747
  * 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
48748
  */
@@ -48632,6 +49093,10 @@ export type AgentsArchiveResponses = {
48632
49093
  */
48633
49094
  hooks?: Array<string>;
48634
49095
  };
49096
+ /**
49097
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
49098
+ */
49099
+ idleCompaction?: boolean;
48635
49100
  } | null;
48636
49101
  /**
48637
49102
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -48840,7 +49305,7 @@ export type AgentsVersionsListResponses = {
48840
49305
  */
48841
49306
  note: string | null;
48842
49307
  /**
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.
49308
+ * 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
49309
  */
48845
49310
  bindings: Array<{
48846
49311
  /**
@@ -48882,9 +49347,9 @@ export type AgentsVersionsListResponses = {
48882
49347
  enabled?: boolean;
48883
49348
  }>;
48884
49349
  /**
48885
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
49350
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
48886
49351
  */
48887
- kind: 'personal' | 'service';
49352
+ kind: 'general' | 'personal' | 'service';
48888
49353
  /**
48889
49354
  * 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
49355
  */
@@ -49235,6 +49700,10 @@ export type AgentsVersionsListResponses = {
49235
49700
  */
49236
49701
  hooks?: Array<string>;
49237
49702
  };
49703
+ /**
49704
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
49705
+ */
49706
+ idleCompaction?: boolean;
49238
49707
  } | null;
49239
49708
  /**
49240
49709
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -50478,7 +50947,7 @@ export type SessionsEventsListResponses = {
50478
50947
  */
50479
50948
  behavior: 'allow';
50480
50949
  /**
50481
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
50950
+ * 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
50951
  */
50483
50952
  destination: 'agent' | 'session';
50484
50953
  /**
@@ -50616,7 +51085,7 @@ export type SessionsEventsListResponses = {
50616
51085
  */
50617
51086
  behavior: 'allow';
50618
51087
  /**
50619
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
51088
+ * 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
51089
  */
50621
51090
  destination: 'agent' | 'session';
50622
51091
  /**
@@ -51691,7 +52160,7 @@ export type SessionsThreadsEventsListResponses = {
51691
52160
  */
51692
52161
  behavior: 'allow';
51693
52162
  /**
51694
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
52163
+ * 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
52164
  */
51696
52165
  destination: 'agent' | 'session';
51697
52166
  /**
@@ -51829,7 +52298,7 @@ export type SessionsThreadsEventsListResponses = {
51829
52298
  */
51830
52299
  behavior: 'allow';
51831
52300
  /**
51832
- * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
52301
+ * 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
52302
  */
51834
52303
  destination: 'agent' | 'session';
51835
52304
  /**
@@ -52836,11 +53305,11 @@ export type DeploymentsListResponses = {
52836
53305
  */
52837
53306
  budget?: null | AgentManaged76;
52838
53307
  /**
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.
53308
+ * 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
53309
  */
52841
53310
  target: {
52842
53311
  /**
52843
- * environment uses an environment recipe; computer uses the personal agent computer.
53312
+ * environment uses an environment recipe; computer uses the agent computer.
52844
53313
  */
52845
53314
  type: 'environment' | 'computer';
52846
53315
  };
@@ -52946,11 +53415,11 @@ export type DeploymentsCreateData = {
52946
53415
  */
52947
53416
  vault_ids?: Array<string>;
52948
53417
  /**
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.
53418
+ * 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
53419
  */
52951
53420
  target?: {
52952
53421
  /**
52953
- * environment uses an environment recipe; computer uses the personal agent computer.
53422
+ * environment uses an environment recipe; computer uses the agent computer.
52954
53423
  */
52955
53424
  type: 'environment' | 'computer';
52956
53425
  };
@@ -53106,11 +53575,11 @@ export type DeploymentsCreateResponses = {
53106
53575
  */
53107
53576
  budget?: null | AgentManaged76;
53108
53577
  /**
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.
53578
+ * 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
53579
  */
53111
53580
  target: {
53112
53581
  /**
53113
- * environment uses an environment recipe; computer uses the personal agent computer.
53582
+ * environment uses an environment recipe; computer uses the agent computer.
53114
53583
  */
53115
53584
  type: 'environment' | 'computer';
53116
53585
  };
@@ -53275,11 +53744,11 @@ export type DeploymentsRetrieveResponses = {
53275
53744
  */
53276
53745
  budget?: null | AgentManaged76;
53277
53746
  /**
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.
53747
+ * 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
53748
  */
53280
53749
  target: {
53281
53750
  /**
53282
- * environment uses an environment recipe; computer uses the personal agent computer.
53751
+ * environment uses an environment recipe; computer uses the agent computer.
53283
53752
  */
53284
53753
  type: 'environment' | 'computer';
53285
53754
  };
@@ -53382,11 +53851,11 @@ export type DeploymentsUpdateData = {
53382
53851
  */
53383
53852
  vault_ids?: null | Array<string>;
53384
53853
  /**
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.
53854
+ * 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
53855
  */
53387
53856
  target?: {
53388
53857
  /**
53389
- * environment uses an environment recipe; computer uses the personal agent computer.
53858
+ * environment uses an environment recipe; computer uses the agent computer.
53390
53859
  */
53391
53860
  type: 'environment' | 'computer';
53392
53861
  };
@@ -53555,11 +54024,11 @@ export type DeploymentsUpdateResponses = {
53555
54024
  */
53556
54025
  budget?: null | AgentManaged76;
53557
54026
  /**
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.
54027
+ * 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
54028
  */
53560
54029
  target: {
53561
54030
  /**
53562
- * environment uses an environment recipe; computer uses the personal agent computer.
54031
+ * environment uses an environment recipe; computer uses the agent computer.
53563
54032
  */
53564
54033
  type: 'environment' | 'computer';
53565
54034
  };
@@ -53724,11 +54193,11 @@ export type DeploymentsArchiveResponses = {
53724
54193
  */
53725
54194
  budget?: null | AgentManaged76;
53726
54195
  /**
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.
54196
+ * 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
54197
  */
53729
54198
  target: {
53730
54199
  /**
53731
- * environment uses an environment recipe; computer uses the personal agent computer.
54200
+ * environment uses an environment recipe; computer uses the agent computer.
53732
54201
  */
53733
54202
  type: 'environment' | 'computer';
53734
54203
  };
@@ -53897,11 +54366,11 @@ export type DeploymentsPauseResponses = {
53897
54366
  */
53898
54367
  budget?: null | AgentManaged76;
53899
54368
  /**
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.
54369
+ * 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
54370
  */
53902
54371
  target: {
53903
54372
  /**
53904
- * environment uses an environment recipe; computer uses the personal agent computer.
54373
+ * environment uses an environment recipe; computer uses the agent computer.
53905
54374
  */
53906
54375
  type: 'environment' | 'computer';
53907
54376
  };
@@ -54070,11 +54539,11 @@ export type DeploymentsUnpauseResponses = {
54070
54539
  */
54071
54540
  budget?: null | AgentManaged76;
54072
54541
  /**
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.
54542
+ * 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
54543
  */
54075
54544
  target: {
54076
54545
  /**
54077
- * environment uses an environment recipe; computer uses the personal agent computer.
54546
+ * environment uses an environment recipe; computer uses the agent computer.
54078
54547
  */
54079
54548
  type: 'environment' | 'computer';
54080
54549
  };
@@ -57883,7 +58352,7 @@ export type AutomationRunsCreateData = {
57883
58352
  [key: string]: string;
57884
58353
  };
57885
58354
  /**
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.
58355
+ * 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
58356
  */
57888
58357
  deadline_seconds?: number;
57889
58358
  } | {
@@ -57910,7 +58379,7 @@ export type AutomationRunsCreateData = {
57910
58379
  [key: string]: string;
57911
58380
  };
57912
58381
  /**
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.
58382
+ * 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
58383
  */
57915
58384
  deadline_seconds?: number;
57916
58385
  };
@@ -59430,6 +59899,247 @@ export type AutomationHooksReceiveResponses = {
59430
59899
  202: AutomationFiring;
59431
59900
  };
59432
59901
  export type AutomationHooksReceiveResponse = AutomationHooksReceiveResponses[keyof AutomationHooksReceiveResponses];
59902
+ export type AutomationHumanTasksListData = {
59903
+ body?: never;
59904
+ path?: never;
59905
+ query?: {
59906
+ /**
59907
+ * Page size, 1–100, default 50.
59908
+ */
59909
+ limit?: number;
59910
+ /**
59911
+ * The next_cursor of the previous page; omit for the first page.
59912
+ */
59913
+ cursor?: string;
59914
+ /**
59915
+ * Filter by status, comma-separated: open, completed, expired, cancelled. Defaults to open.
59916
+ */
59917
+ status?: Array<AutomationHumanTaskStatus>;
59918
+ /**
59919
+ * Only tasks opened by this run (run_).
59920
+ */
59921
+ run_id?: string;
59922
+ /**
59923
+ * assigned (default) lists only tasks assigned to the caller; all lists every task of the organization.
59924
+ */
59925
+ scope?: 'assigned' | 'all';
59926
+ };
59927
+ url: '/automation/v1/human-tasks';
59928
+ };
59929
+ export type AutomationHumanTasksListErrors = {
59930
+ /**
59931
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
59932
+ */
59933
+ 400: AutomationAutomationProblemDetails;
59934
+ /**
59935
+ * RFC 9457 automation problem. 429 includes Retry-After.
59936
+ */
59937
+ default: AutomationAutomationProblemDetails;
59938
+ };
59939
+ export type AutomationHumanTasksListError = AutomationHumanTasksListErrors[keyof AutomationHumanTasksListErrors];
59940
+ export type AutomationHumanTasksListResponses = {
59941
+ /**
59942
+ * Success
59943
+ */
59944
+ 200: {
59945
+ /**
59946
+ * Human tasks on this page, newest first.
59947
+ */
59948
+ data: Array<AutomationHumanTask>;
59949
+ /**
59950
+ * Cursor for the next page, passed back as cursor; null when there are no more.
59951
+ */
59952
+ next_cursor: string | null;
59953
+ };
59954
+ };
59955
+ export type AutomationHumanTasksListResponse = AutomationHumanTasksListResponses[keyof AutomationHumanTasksListResponses];
59956
+ export type AutomationHumanTasksGetData = {
59957
+ body?: never;
59958
+ path: {
59959
+ /**
59960
+ * Human task ID (htask_), from the list or the run's waits.
59961
+ */
59962
+ id: string;
59963
+ };
59964
+ query?: never;
59965
+ url: '/automation/v1/human-tasks/{id}';
59966
+ };
59967
+ export type AutomationHumanTasksGetErrors = {
59968
+ /**
59969
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
59970
+ */
59971
+ 400: AutomationAutomationProblemDetails;
59972
+ /**
59973
+ * 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.
59974
+ */
59975
+ 404: AutomationAutomationProblemDetails;
59976
+ /**
59977
+ * RFC 9457 automation problem. 429 includes Retry-After.
59978
+ */
59979
+ default: AutomationAutomationProblemDetails;
59980
+ };
59981
+ export type AutomationHumanTasksGetError = AutomationHumanTasksGetErrors[keyof AutomationHumanTasksGetErrors];
59982
+ export type AutomationHumanTasksGetResponses = {
59983
+ /**
59984
+ * Success
59985
+ */
59986
+ 200: AutomationHumanTask;
59987
+ };
59988
+ export type AutomationHumanTasksGetResponse = AutomationHumanTasksGetResponses[keyof AutomationHumanTasksGetResponses];
59989
+ export type AutomationHumanTasksRespondData = {
59990
+ body: AutomationHumanTaskRespondInput;
59991
+ headers?: {
59992
+ /**
59993
+ * 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.
59994
+ */
59995
+ 'Idempotency-Key'?: string;
59996
+ };
59997
+ path: {
59998
+ /**
59999
+ * Human task ID (htask_).
60000
+ */
60001
+ id: string;
60002
+ };
60003
+ query?: never;
60004
+ url: '/automation/v1/human-tasks/{id}/respond';
60005
+ };
60006
+ export type AutomationHumanTasksRespondErrors = {
60007
+ /**
60008
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60009
+ * COMMENT_REQUIRED: The chosen action requires a comment (require_comment: true); retry with comment set.
60010
+ * INVALID_ACTION: action_id is not one of the task's actions; read the task's actions for the valid ids.
60011
+ * 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.
60012
+ */
60013
+ 400: AutomationAutomationProblemDetails;
60014
+ /**
60015
+ * 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.
60016
+ * 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.
60017
+ * 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.
60018
+ */
60019
+ 403: AutomationAutomationProblemDetails;
60020
+ /**
60021
+ * 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.
60022
+ */
60023
+ 404: AutomationAutomationProblemDetails;
60024
+ /**
60025
+ * 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.
60026
+ * ALREADY_RESPONDED: The caller already responded; each assignee responds once.
60027
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
60028
+ */
60029
+ 409: AutomationAutomationProblemDetails;
60030
+ /**
60031
+ * IDEMPOTENCY_KEY_MISMATCH: The idempotency key was already used for different request content.
60032
+ */
60033
+ 422: AutomationAutomationProblemDetails;
60034
+ /**
60035
+ * RFC 9457 automation problem. 429 includes Retry-After.
60036
+ */
60037
+ default: AutomationAutomationProblemDetails;
60038
+ };
60039
+ export type AutomationHumanTasksRespondError = AutomationHumanTasksRespondErrors[keyof AutomationHumanTasksRespondErrors];
60040
+ export type AutomationHumanTasksRespondResponses = {
60041
+ /**
60042
+ * Success
60043
+ */
60044
+ 200: AutomationHumanTask;
60045
+ };
60046
+ export type AutomationHumanTasksRespondResponse = AutomationHumanTasksRespondResponses[keyof AutomationHumanTasksRespondResponses];
60047
+ export type AutomationHumanTasksCancelData = {
60048
+ body?: AutomationHumanTaskCancelInput;
60049
+ headers?: {
60050
+ /**
60051
+ * 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.
60052
+ */
60053
+ 'Idempotency-Key'?: string;
60054
+ };
60055
+ path: {
60056
+ /**
60057
+ * Human task ID (htask_).
60058
+ */
60059
+ id: string;
60060
+ };
60061
+ query?: never;
60062
+ url: '/automation/v1/human-tasks/{id}/cancel';
60063
+ };
60064
+ export type AutomationHumanTasksCancelErrors = {
60065
+ /**
60066
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60067
+ */
60068
+ 400: AutomationAutomationProblemDetails;
60069
+ /**
60070
+ * 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.
60071
+ */
60072
+ 403: AutomationAutomationProblemDetails;
60073
+ /**
60074
+ * 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.
60075
+ */
60076
+ 404: AutomationAutomationProblemDetails;
60077
+ /**
60078
+ * 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.
60079
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
60080
+ */
60081
+ 409: AutomationAutomationProblemDetails;
60082
+ /**
60083
+ * IDEMPOTENCY_KEY_MISMATCH: The idempotency key was already used for different request content.
60084
+ */
60085
+ 422: AutomationAutomationProblemDetails;
60086
+ /**
60087
+ * RFC 9457 automation problem. 429 includes Retry-After.
60088
+ */
60089
+ default: AutomationAutomationProblemDetails;
60090
+ };
60091
+ export type AutomationHumanTasksCancelError = AutomationHumanTasksCancelErrors[keyof AutomationHumanTasksCancelErrors];
60092
+ export type AutomationHumanTasksCancelResponses = {
60093
+ /**
60094
+ * Success
60095
+ */
60096
+ 200: AutomationHumanTask;
60097
+ };
60098
+ export type AutomationHumanTasksCancelResponse = AutomationHumanTasksCancelResponses[keyof AutomationHumanTasksCancelResponses];
60099
+ export type AutomationHumanTasksDelegateData = {
60100
+ body: AutomationHumanTaskDelegateInput;
60101
+ path: {
60102
+ /**
60103
+ * Human task ID (htask_).
60104
+ */
60105
+ id: string;
60106
+ };
60107
+ query?: never;
60108
+ url: '/automation/v1/human-tasks/{id}/delegate';
60109
+ };
60110
+ export type AutomationHumanTasksDelegateErrors = {
60111
+ /**
60112
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60113
+ */
60114
+ 400: AutomationAutomationProblemDetails;
60115
+ /**
60116
+ * 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.
60117
+ * 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.
60118
+ */
60119
+ 403: AutomationAutomationProblemDetails;
60120
+ /**
60121
+ * 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.
60122
+ */
60123
+ 404: AutomationAutomationProblemDetails;
60124
+ /**
60125
+ * 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.
60126
+ * ALREADY_RESPONDED: The caller already responded; each assignee responds once.
60127
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
60128
+ */
60129
+ 409: AutomationAutomationProblemDetails;
60130
+ /**
60131
+ * RFC 9457 automation problem. 429 includes Retry-After.
60132
+ */
60133
+ default: AutomationAutomationProblemDetails;
60134
+ };
60135
+ export type AutomationHumanTasksDelegateError = AutomationHumanTasksDelegateErrors[keyof AutomationHumanTasksDelegateErrors];
60136
+ export type AutomationHumanTasksDelegateResponses = {
60137
+ /**
60138
+ * Success
60139
+ */
60140
+ 200: AutomationHumanTask;
60141
+ };
60142
+ export type AutomationHumanTasksDelegateResponse = AutomationHumanTasksDelegateResponses[keyof AutomationHumanTasksDelegateResponses];
59433
60143
  export type DatabaseListDatabasesData = {
59434
60144
  body?: never;
59435
60145
  path?: never;
@@ -62524,7 +63234,7 @@ export type MediaUploadAssetData = {
62524
63234
  */
62525
63235
  filename_override?: string;
62526
63236
  /**
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.
63237
+ * 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
63238
  */
62529
63239
  overwrite?: boolean;
62530
63240
  /**
@@ -62621,7 +63331,7 @@ export type MediaImportAssetData = {
62621
63331
  */
62622
63332
  body: {
62623
63333
  /**
62624
- * File ID to copy into this library; passed as the upload source instead of file bytes.
63334
+ * 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
63335
  */
62626
63336
  file_id: string;
62627
63337
  /**
@@ -62657,7 +63367,7 @@ export type MediaImportAssetData = {
62657
63367
  */
62658
63368
  filename_override?: string;
62659
63369
  /**
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.
63370
+ * 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
63371
  */
62662
63372
  overwrite?: boolean;
62663
63373
  /**
@@ -63116,7 +63826,7 @@ export type MediaExpressionSearchData = {
63116
63826
  */
63117
63827
  body: {
63118
63828
  /**
63119
- * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets.
63829
+ * 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
63830
  */
63121
63831
  expression?: string;
63122
63832
  /**