@deepraxis/sdk 0.1.1-dev.07df50c → 0.1.1-dev.1046919

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.
@@ -534,7 +534,7 @@ export type BrowserError = {
534
534
  statusCode: number;
535
535
  error: string;
536
536
  message: string;
537
- code: 'INVALID_PARAMS' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'CONTEXT_NOT_FOUND' | 'CONTEXT_LOCKED' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED';
537
+ code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'CONTEXT_NOT_FOUND' | 'CONTEXT_LOCKED' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN';
538
538
  };
539
539
  export type BrowserSession = {
540
540
  /**
@@ -903,9 +903,21 @@ export type BrowserContextCreateResult = {
903
903
  * 当前登录态写入租约的持有者标识;无有效租约时省略。
904
904
  */
905
905
  lockedBy?: string;
906
+ /**
907
+ * UTC timestamp when a session last started with this context; absent if it has never been used.
908
+ */
906
909
  lastUsedAt?: string;
910
+ /**
911
+ * Empty compatibility field; context encryption keys are held by the server.
912
+ */
907
913
  publicKey: string;
914
+ /**
915
+ * Compatibility encryption algorithm name; creation returns AES-256-CBC.
916
+ */
908
917
  cipherAlgorithm: 'AES-256-CBC';
918
+ /**
919
+ * Compatibility initialization-vector size in bytes; creation returns 16.
920
+ */
909
921
  initializationVectorSize: number;
910
922
  };
911
923
  export type BrowserContext = {
@@ -951,6 +963,9 @@ export type BrowserContext = {
951
963
  * 当前登录态写入租约的持有者标识;无有效租约时省略。
952
964
  */
953
965
  lockedBy?: string;
966
+ /**
967
+ * UTC timestamp when a session last started with this context; absent if it has never been used.
968
+ */
954
969
  lastUsedAt?: string;
955
970
  };
956
971
  export type BrowserStreamMessage = {
@@ -986,6 +1001,9 @@ export type BrowserStreamMessage = {
986
1001
  url?: string;
987
1002
  x?: number;
988
1003
  y?: number;
1004
+ /**
1005
+ * UTC timestamp when a session last started with this context; absent if it has never been used.
1006
+ */
989
1007
  at: string;
990
1008
  actor: 'client' | 'human';
991
1009
  };
@@ -1002,19 +1020,10 @@ export type OwnFileCreateFileRequest = {
1002
1020
  */
1003
1021
  file: Blob | File;
1004
1022
  /**
1005
- * 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.
1006
1024
  */
1007
- purpose: 'user_data' | 'assistants' | 'vision';
1025
+ purpose: 'user_data' | 'vision';
1008
1026
  expires_after?: OwnFileFileExpirationAfter;
1009
- /**
1010
- * Own-face extensions. Use at most one expiry setting.
1011
- */
1012
- praxis?: {
1013
- /**
1014
- * Lifetime in seconds after creation, from 3600 through 7776000. Send as the multipart field praxis[expires_in_seconds]; mutually exclusive with expires_after.
1015
- */
1016
- expires_in_seconds?: number;
1017
- };
1018
1027
  };
1019
1028
  /**
1020
1029
  * OpenAIFile
@@ -1049,7 +1058,7 @@ export type OwnFileOpenAiFile = {
1049
1058
  /**
1050
1059
  * Upload purpose. Image references in conversations require user_data.
1051
1060
  */
1052
- purpose: 'user_data' | 'assistants' | 'vision';
1061
+ purpose: 'user_data' | 'vision';
1053
1062
  /**
1054
1063
  * Deprecated. The current status of the file, which can be either `uploaded`, `processed`, or `error`.
1055
1064
  *
@@ -1147,9 +1156,9 @@ export type OwnFilePraxisCreateUpload = {
1147
1156
  */
1148
1157
  mime_type: string;
1149
1158
  /**
1150
- * 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.
1151
1160
  */
1152
- purpose: 'user_data' | 'assistants' | 'vision';
1161
+ purpose: 'user_data' | 'vision';
1153
1162
  /**
1154
1163
  * Optional expiry policy for the resulting file; omission retains the file until deletion.
1155
1164
  */
@@ -1194,9 +1203,9 @@ export type OwnFilePraxisUpload = {
1194
1203
  */
1195
1204
  filename: string;
1196
1205
  /**
1197
- * 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.
1198
1207
  */
1199
- purpose: 'user_data' | 'assistants' | 'vision';
1208
+ purpose: 'user_data' | 'vision';
1200
1209
  /**
1201
1210
  * Upload state: pending accepts parts; completed has a file; cancelled was cancelled; expired exceeded its one-hour lifetime.
1202
1211
  */
@@ -4414,7 +4423,7 @@ export type AgentManaged179 = {
4414
4423
  */
4415
4424
  input_tokens?: number;
4416
4425
  /**
4417
- * A monetary amount in a specific currency.
4426
+ * Session total list-price cost in USD as a decimal string with exactly 6 decimals. Includes models, runtime and all other charged products attributed to this session; child-thread model cost is already included. The budget reads the same total. In-flight work may finish after the limit is reached.
4418
4427
  */
4419
4428
  list_cost?: null | AgentManaged77;
4420
4429
  /**
@@ -4426,18 +4435,15 @@ export type AgentManaged179 = {
4426
4435
  */
4427
4436
  server_tool_use?: null | AgentManaged181;
4428
4437
  /**
4429
- * Praxis extension: priced runtime of this session (the time it was running), billed separately from list_cost and not counted against the budget. amount is in US dollars as a decimal string with exactly 6 decimals, e.g. "0.000280". Each thread's runtime is reported on that thread. /agent/v1 only.
4438
+ * USD list-price cost by product, as decimal strings with exactly 6 decimals. Values sum to list_cost.amount. router.llm is the larger of the live model meter and charged model facts; all other products use charged facts only.
4430
4439
  */
4431
- runtime_cost?: {
4432
- /**
4433
- * Runtime cost in US dollars, decimal string with exactly 6 decimals.
4434
- */
4435
- amount: string;
4436
- /**
4437
- * Always USD.
4438
- */
4439
- currency: 'USD';
4440
+ cost_by_product?: {
4441
+ [key: string]: string;
4440
4442
  };
4443
+ /**
4444
+ * Child-thread model cost in integer micro-USD, already included in list_cost. This is a subset, not an additional charge; it excludes child-thread runtime.
4445
+ */
4446
+ subagent_cost_micro_usd?: number;
4441
4447
  };
4442
4448
  export type AgentManaged183 = {
4443
4449
  [key: string]: null | string;
@@ -5641,6 +5647,36 @@ export type AgentManaged251 = unknown & {
5641
5647
  * Feedback for a deny result, at most 4000 characters. Appended to the model-visible refusal and persisted on the confirmation; ExitPlanMode keeps its plan-feedback flow. Omit when no feedback is needed.
5642
5648
  */
5643
5649
  deny_message?: string;
5650
+ /**
5651
+ * On an allow confirmation, copy this call's permission_suggestions unchanged. Personal agents accept agent (shared across their sessions) or session; service agents accept session only. Rules must match the offered update exactly. A failed save leaves the call waiting for approval.
5652
+ */
5653
+ updated_permissions?: Array<{
5654
+ /**
5655
+ * add_rules adds the offered allow rules.
5656
+ */
5657
+ type: 'add_rules';
5658
+ /**
5659
+ * allow grants permission for matching calls.
5660
+ */
5661
+ behavior: 'allow';
5662
+ /**
5663
+ * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
5664
+ */
5665
+ destination: 'agent' | 'session';
5666
+ /**
5667
+ * The complete set of rules from one offered suggestion, without changes.
5668
+ */
5669
+ rules: Array<{
5670
+ /**
5671
+ * The offered tool name, including the full mcp__server__tool name for an MCP tool.
5672
+ */
5673
+ tool_name: string;
5674
+ /**
5675
+ * The offered command, stable command prefix, exact file path, domain or whole-tool wildcard.
5676
+ */
5677
+ rule_content: string;
5678
+ }>;
5679
+ }>;
5644
5680
  };
5645
5681
  export type AgentManaged252 = {
5646
5682
  /**
@@ -6009,6 +6045,40 @@ export type AgentSseEvent = ({
6009
6045
  */
6010
6046
  type: 'session.status_terminated';
6011
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 or auto.
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 or auto.
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 or the session started it automatically.
6079
+ */
6080
+ trigger: 'manual' | 'auto';
6081
+ };
6012
6082
  } | {
6013
6083
  /**
6014
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.
@@ -6342,6 +6412,36 @@ export type AgentSseEvent = ({
6342
6412
  * Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches.
6343
6413
  */
6344
6414
  guarded_rule?: string;
6415
+ /**
6416
+ * On an allow confirmation, copy this call's permission_suggestions unchanged. Personal agents accept agent (shared across their sessions) or session; service agents accept session only. Rules must match the offered update exactly. A failed save leaves the call waiting for approval.
6417
+ */
6418
+ permission_suggestions?: Array<{
6419
+ /**
6420
+ * add_rules adds the offered allow rules.
6421
+ */
6422
+ type: 'add_rules';
6423
+ /**
6424
+ * allow grants permission for matching calls.
6425
+ */
6426
+ behavior: 'allow';
6427
+ /**
6428
+ * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
6429
+ */
6430
+ destination: 'agent' | 'session';
6431
+ /**
6432
+ * The complete set of rules from one offered suggestion, without changes.
6433
+ */
6434
+ rules: Array<{
6435
+ /**
6436
+ * The offered tool name, including the full mcp__server__tool name for an MCP tool.
6437
+ */
6438
+ tool_name: string;
6439
+ /**
6440
+ * The offered command, stable command prefix, exact file path, domain or whole-tool wildcard.
6441
+ */
6442
+ rule_content: string;
6443
+ }>;
6444
+ }>;
6345
6445
  };
6346
6446
  } | {
6347
6447
  /**
@@ -6480,6 +6580,36 @@ export type AgentSseEvent = ({
6480
6580
  * Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches.
6481
6581
  */
6482
6582
  guarded_rule?: string;
6583
+ /**
6584
+ * On an allow confirmation, copy this call's permission_suggestions unchanged. Personal agents accept agent (shared across their sessions) or session; service agents accept session only. Rules must match the offered update exactly. A failed save leaves the call waiting for approval.
6585
+ */
6586
+ permission_suggestions?: Array<{
6587
+ /**
6588
+ * add_rules adds the offered allow rules.
6589
+ */
6590
+ type: 'add_rules';
6591
+ /**
6592
+ * allow grants permission for matching calls.
6593
+ */
6594
+ behavior: 'allow';
6595
+ /**
6596
+ * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
6597
+ */
6598
+ destination: 'agent' | 'session';
6599
+ /**
6600
+ * The complete set of rules from one offered suggestion, without changes.
6601
+ */
6602
+ rules: Array<{
6603
+ /**
6604
+ * The offered tool name, including the full mcp__server__tool name for an MCP tool.
6605
+ */
6606
+ tool_name: string;
6607
+ /**
6608
+ * The offered command, stable command prefix, exact file path, domain or whole-tool wildcard.
6609
+ */
6610
+ rule_content: string;
6611
+ }>;
6612
+ }>;
6483
6613
  /**
6484
6614
  * Human-readable tool name from MCP 2025-06-18 Tool.title, falling back to annotations.title. Trimmed and truncated to 200 characters; omitted when blank or absent. Present only for model-initiated calls on /agent/v1; use name when absent.
6485
6615
  */
@@ -7348,7 +7478,7 @@ export type AgentSseEvent = ({
7348
7478
  /**
7349
7479
  * Server-Sent Events event name of this frame.
7350
7480
  */
7351
- 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';
7352
7482
  data: AgentSseData;
7353
7483
  };
7354
7484
  export type AgentManaged256 = {
@@ -8621,7 +8751,7 @@ export type AutomationAutomationProblemDetails = {
8621
8751
  title: string;
8622
8752
  status: number;
8623
8753
  detail: string;
8624
- 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';
8625
8755
  errors: Array<AutomationDiagnostic>;
8626
8756
  issues: Array<AutomationCompatIssue>;
8627
8757
  hint: string | null;
@@ -9493,7 +9623,7 @@ export type AutomationRun = {
9493
9623
  */
9494
9624
  attach: null | 'wait' | 'detach';
9495
9625
  /**
9496
- * 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.
9497
9627
  */
9498
9628
  deadline_at: string;
9499
9629
  /**
@@ -9687,7 +9817,7 @@ export type AutomationExpandedRun = {
9687
9817
  */
9688
9818
  attach: null | 'wait' | 'detach';
9689
9819
  /**
9690
- * 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.
9691
9821
  */
9692
9822
  deadline_at: string;
9693
9823
  /**
@@ -10638,6 +10768,183 @@ export type AutomationTriggerPreview = {
10638
10768
  */
10639
10769
  next_fire_times: Array<string>;
10640
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
+ };
10641
10948
  export type DatabaseCreateDatabaseInput = {
10642
10949
  /**
10643
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.
@@ -10802,7 +11109,7 @@ export type DatabaseNewField = {
10802
11109
  */
10803
11110
  unique?: boolean;
10804
11111
  /**
10805
- * 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.
10806
11113
  */
10807
11114
  indexed?: boolean;
10808
11115
  /**
@@ -10837,7 +11144,7 @@ export type DatabaseNewField = {
10837
11144
  */
10838
11145
  unique?: boolean;
10839
11146
  /**
10840
- * 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.
10841
11148
  */
10842
11149
  indexed?: boolean;
10843
11150
  /**
@@ -10877,7 +11184,7 @@ export type DatabaseNewField = {
10877
11184
  */
10878
11185
  unique?: boolean;
10879
11186
  /**
10880
- * 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.
10881
11188
  */
10882
11189
  indexed?: boolean;
10883
11190
  /**
@@ -11583,7 +11890,7 @@ export type MediaLibrary = {
11583
11890
  };
11584
11891
  export type MediaMediaError = {
11585
11892
  error: {
11586
- code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED';
11893
+ code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'BINDING_READ_ONLY';
11587
11894
  message: string;
11588
11895
  details: string | null;
11589
11896
  };
@@ -11716,6 +12023,9 @@ export type MediaAsset = {
11716
12023
  * Source audio or video duration in seconds, when known.
11717
12024
  */
11718
12025
  duration?: number;
12026
+ /**
12027
+ * Number of pages recorded for the asset; omitted when no page count is stored.
12028
+ */
11719
12029
  pages?: number;
11720
12030
  /**
11721
12031
  * True for audio-only media, which uses resource_type video.
@@ -11756,6 +12066,9 @@ export type MediaAsset = {
11756
12066
  * False because this response represents stored source content.
11757
12067
  */
11758
12068
  placeholder: false;
12069
+ /**
12070
+ * True when overwrite is false and the public_id already exists; the existing resource is returned.
12071
+ */
11759
12072
  existing?: boolean;
11760
12073
  /**
11761
12074
  * Progress of understanding and embedding tasks for the asset.
@@ -13583,7 +13896,7 @@ export type OwnFileFileExpirationAfter = {
13583
13896
  */
13584
13897
  anchor: 'created_at';
13585
13898
  /**
13586
- * 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].
13587
13900
  */
13588
13901
  seconds: number;
13589
13902
  };
@@ -18841,7 +19154,7 @@ export type AgentManaged249 = {
18841
19154
  */
18842
19155
  input_tokens?: number;
18843
19156
  /**
18844
- * A monetary amount in a specific currency.
19157
+ * Session total list-price cost in USD as a decimal string with exactly 6 decimals. Includes models, runtime and all other charged products attributed to this session; child-thread model cost is already included. The budget reads the same total. In-flight work may finish after the limit is reached.
18845
19158
  */
18846
19159
  list_cost?: AgentManaged77;
18847
19160
  /**
@@ -19100,6 +19413,31 @@ export type AgentSseData = {
19100
19413
  * Always `session.status_terminated`. The session ended and accepts no more work.
19101
19414
  */
19102
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 or auto.
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 or the session started it automatically.
19439
+ */
19440
+ trigger: 'manual' | 'auto';
19103
19441
  } | {
19104
19442
  /**
19105
19443
  * Unique identifier for this event.
@@ -19362,6 +19700,36 @@ export type AgentSseData = {
19362
19700
  * Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches.
19363
19701
  */
19364
19702
  guarded_rule?: string;
19703
+ /**
19704
+ * On an allow confirmation, copy this call's permission_suggestions unchanged. Personal agents accept agent (shared across their sessions) or session; service agents accept session only. Rules must match the offered update exactly. A failed save leaves the call waiting for approval.
19705
+ */
19706
+ permission_suggestions?: Array<{
19707
+ /**
19708
+ * add_rules adds the offered allow rules.
19709
+ */
19710
+ type: 'add_rules';
19711
+ /**
19712
+ * allow grants permission for matching calls.
19713
+ */
19714
+ behavior: 'allow';
19715
+ /**
19716
+ * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
19717
+ */
19718
+ destination: 'agent' | 'session';
19719
+ /**
19720
+ * The complete set of rules from one offered suggestion, without changes.
19721
+ */
19722
+ rules: Array<{
19723
+ /**
19724
+ * The offered tool name, including the full mcp__server__tool name for an MCP tool.
19725
+ */
19726
+ tool_name: string;
19727
+ /**
19728
+ * The offered command, stable command prefix, exact file path, domain or whole-tool wildcard.
19729
+ */
19730
+ rule_content: string;
19731
+ }>;
19732
+ }>;
19365
19733
  } | {
19366
19734
  /**
19367
19735
  * Unique identifier for this event.
@@ -19482,6 +19850,36 @@ export type AgentSseData = {
19482
19850
  * Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches.
19483
19851
  */
19484
19852
  guarded_rule?: string;
19853
+ /**
19854
+ * On an allow confirmation, copy this call's permission_suggestions unchanged. Personal agents accept agent (shared across their sessions) or session; service agents accept session only. Rules must match the offered update exactly. A failed save leaves the call waiting for approval.
19855
+ */
19856
+ permission_suggestions?: Array<{
19857
+ /**
19858
+ * add_rules adds the offered allow rules.
19859
+ */
19860
+ type: 'add_rules';
19861
+ /**
19862
+ * allow grants permission for matching calls.
19863
+ */
19864
+ behavior: 'allow';
19865
+ /**
19866
+ * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
19867
+ */
19868
+ destination: 'agent' | 'session';
19869
+ /**
19870
+ * The complete set of rules from one offered suggestion, without changes.
19871
+ */
19872
+ rules: Array<{
19873
+ /**
19874
+ * The offered tool name, including the full mcp__server__tool name for an MCP tool.
19875
+ */
19876
+ tool_name: string;
19877
+ /**
19878
+ * The offered command, stable command prefix, exact file path, domain or whole-tool wildcard.
19879
+ */
19880
+ rule_content: string;
19881
+ }>;
19882
+ }>;
19485
19883
  /**
19486
19884
  * Human-readable tool name from MCP 2025-06-18 Tool.title, falling back to annotations.title. Trimmed and truncated to 200 characters; omitted when blank or absent. Present only for model-initiated calls on /agent/v1; use name when absent.
19487
19885
  */
@@ -21161,6 +21559,72 @@ export type AutomationAttributedUsage = {
21161
21559
  */
21162
21560
  pending_events: number;
21163
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
+ };
21164
21628
  export type DatabaseField = {
21165
21629
  /**
21166
21630
  * Field identifier, prefixed fld_. Stable across renames; accepted wherever a field path parameter takes an id or name.
@@ -21673,6 +22137,9 @@ export type MediaCloudinaryResource = {
21673
22137
  * Source audio or video duration in seconds, when known.
21674
22138
  */
21675
22139
  duration?: number;
22140
+ /**
22141
+ * Number of pages recorded for the asset; omitted when no page count is stored.
22142
+ */
21676
22143
  pages?: number;
21677
22144
  /**
21678
22145
  * True for audio-only media, which uses resource_type video.
@@ -21810,6 +22277,9 @@ export type MediaUnderstanding = {
21810
22277
  * Producer model identifier; a failure may use the configured model when no model response is available.
21811
22278
  */
21812
22279
  producer: string;
22280
+ /**
22281
+ * Version of the producer that generated this understanding result.
22282
+ */
21813
22283
  producer_version: string;
21814
22284
  /**
21815
22285
  * Source-media time range for a frame or transcript segment; null for results without a segment.
@@ -21827,6 +22297,9 @@ export type MediaUnderstanding = {
21827
22297
  * Structured producer output, such as recognized labels or frame details; null when absent.
21828
22298
  */
21829
22299
  data: unknown | null;
22300
+ /**
22301
+ * Confidence value recorded by the producer; null when no confidence value is recorded.
22302
+ */
21830
22303
  confidence: number | null;
21831
22304
  /**
21832
22305
  * Failure code and message, or null for a successful result.
@@ -21910,6 +22383,9 @@ export type MediaSearchAsset = {
21910
22383
  * Source audio or video duration in seconds, when known.
21911
22384
  */
21912
22385
  duration?: number;
22386
+ /**
22387
+ * Number of pages recorded for the asset; omitted when no page count is stored.
22388
+ */
21913
22389
  pages?: number;
21914
22390
  /**
21915
22391
  * True for audio-only media, which uses resource_type video.
@@ -21950,6 +22426,9 @@ export type MediaSearchAsset = {
21950
22426
  * False because this response represents stored source content.
21951
22427
  */
21952
22428
  placeholder: false;
22429
+ /**
22430
+ * True when overwrite is false and the public_id already exists; the existing resource is returned.
22431
+ */
21953
22432
  existing?: boolean;
21954
22433
  /**
21955
22434
  * Progress of understanding and embedding tasks for the asset.
@@ -21994,7 +22473,7 @@ export type MediaSemanticHit = {
21994
22473
  */
21995
22474
  asset: MediaAsset;
21996
22475
  /**
21997
- * 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.
21998
22477
  */
21999
22478
  score: number;
22000
22479
  /**
@@ -22010,7 +22489,7 @@ export type MediaSemanticHit = {
22010
22489
  * Identifier returned when a batch job is created.
22011
22490
  */
22012
22491
  export type MediaJobId = string;
22013
- export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED';
22492
+ export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'BINDING_READ_ONLY';
22014
22493
  /**
22015
22494
  * A recorded library event with a monotonically increasing sequence within that library.
22016
22495
  */
@@ -26024,6 +26503,20 @@ export type AgentManaged141 = {
26024
26503
  */
26025
26504
  type?: 'packages';
26026
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
+ };
26027
26520
  export type KnowledgeStaticChunking = {
26028
26521
  /**
26029
26522
  * static selects explicit chunk-size and overlap settings.
@@ -26080,6 +26573,9 @@ export type KnowledgeSearchExplain = {
26080
26573
  */
26081
26574
  matched_terms: Array<string>;
26082
26575
  };
26576
+ /**
26577
+ * Aggregate processing state across the asset processing tasks.
26578
+ */
26083
26579
  export type MediaProcessingState = 'pending' | 'processing' | 'ready' | 'partial' | 'failed';
26084
26580
  /**
26085
26581
  * Task state: pending awaits execution; running is executing; ready succeeded; failed terminated unsuccessfully; unsupported cannot process this input; skipped was disabled or does not apply.
@@ -28154,7 +28650,7 @@ export type UnarchiveAgentResponses = {
28154
28650
  };
28155
28651
  };
28156
28652
  /**
28157
- * Resolved coordinator topology with a concrete agent roster.
28653
+ * Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.
28158
28654
  */
28159
28655
  multiagent: null | {
28160
28656
  /**
@@ -28678,12 +29174,15 @@ export type UnarchiveAgentResponses = {
28678
29174
  */
28679
29175
  updated_at: string;
28680
29176
  /**
28681
- * The agent's current version. Starts at 1 and increments when the agent is
28682
- * modified.
29177
+ * Version of this returned configuration. Default retrieve returns the effective version; an explicit version query or a version-history item returns that saved version.
28683
29178
  */
28684
29179
  version: number;
28685
29180
  /**
28686
- * Version used by new sessions and newly issued embed tokens when no version is specified. Starts at 1; saving with apply false leaves it unchanged. Existing sessions and tokens keep their version.
29181
+ * Newest saved version number, including an unapplied save. Returned by default retrieve, update and apply; use it for optimistic concurrency when updating.
29182
+ */
29183
+ latest_version?: number;
29184
+ /**
29185
+ * Agent-level currently effective version used by new sessions and newly issued embed tokens. This same value appears on every history item; it is not that item's version. Saving with apply false leaves it unchanged. Existing sessions and tokens retain their version.
28687
29186
  */
28688
29187
  active_version: number;
28689
29188
  /**
@@ -35510,7 +36009,7 @@ export type ForkSessionResponses = {
35510
36009
  */
35511
36010
  input_tokens?: number;
35512
36011
  /**
35513
- * A monetary amount in a specific currency.
36012
+ * Session total list-price cost in USD as a decimal string with exactly 6 decimals. Includes models, runtime and all other charged products attributed to this session; child-thread model cost is already included. The budget reads the same total. In-flight work may finish after the limit is reached.
35514
36013
  */
35515
36014
  list_cost?: null | {
35516
36015
  /**
@@ -35544,18 +36043,15 @@ export type ForkSessionResponses = {
35544
36043
  web_search_requests?: number;
35545
36044
  };
35546
36045
  /**
35547
- * Praxis extension: priced runtime of this session (the time it was running), billed separately from list_cost and not counted against the budget. amount is in US dollars as a decimal string with exactly 6 decimals, e.g. "0.000280". Each thread's runtime is reported on that thread. /agent/v1 only.
36046
+ * USD list-price cost by product, as decimal strings with exactly 6 decimals. Values sum to list_cost.amount. router.llm is the larger of the live model meter and charged model facts; all other products use charged facts only.
35548
36047
  */
35549
- runtime_cost?: {
35550
- /**
35551
- * Runtime cost in US dollars, decimal string with exactly 6 decimals.
35552
- */
35553
- amount: string;
35554
- /**
35555
- * Always USD.
35556
- */
35557
- currency: 'USD';
36048
+ cost_by_product?: {
36049
+ [key: string]: string;
35558
36050
  };
36051
+ /**
36052
+ * Child-thread model cost in integer micro-USD, already included in list_cost. This is a subset, not an additional charge; it excludes child-thread runtime.
36053
+ */
36054
+ subagent_cost_micro_usd?: number;
35559
36055
  };
35560
36056
  /**
35561
36057
  * Vault IDs attached to the session at creation. Empty when no vaults were
@@ -35957,11 +36453,11 @@ export type CompactSessionResponses = {
35957
36453
  */
35958
36454
  id: string;
35959
36455
  /**
35960
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36456
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
35961
36457
  */
35962
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36458
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
35963
36459
  /**
35964
- * Why the compaction was skipped or failed; absent otherwise.
36460
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
35965
36461
  */
35966
36462
  reason?: string;
35967
36463
  };
@@ -35978,11 +36474,11 @@ export type CompactSessionResponses = {
35978
36474
  */
35979
36475
  id: string;
35980
36476
  /**
35981
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36477
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
35982
36478
  */
35983
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36479
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
35984
36480
  /**
35985
- * Why the compaction was skipped or failed; absent otherwise.
36481
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
35986
36482
  */
35987
36483
  reason?: string;
35988
36484
  };
@@ -36040,11 +36536,11 @@ export type GetSessionCompactionResponses = {
36040
36536
  */
36041
36537
  id: string;
36042
36538
  /**
36043
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36539
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
36044
36540
  */
36045
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36541
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
36046
36542
  /**
36047
- * Why the compaction was skipped or failed; absent otherwise.
36543
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
36048
36544
  */
36049
36545
  reason?: string;
36050
36546
  };
@@ -36089,6 +36585,27 @@ export type ListSessionCompactionsResponses = {
36089
36585
  * Compaction history
36090
36586
  */
36091
36587
  200: {
36588
+ /**
36589
+ * Current compaction, including queued manual requests; null when none is in progress. Manual takes precedence over automatic work.
36590
+ */
36591
+ active: {
36592
+ /**
36593
+ * Always `session_compaction`. Result of a compaction request.
36594
+ */
36595
+ type: 'session_compaction';
36596
+ /**
36597
+ * Identifier of the active manual operation or automatic compaction record.
36598
+ */
36599
+ id: string;
36600
+ /**
36601
+ * Whether compaction is waiting to start or generating its summary.
36602
+ */
36603
+ status: 'queued' | 'running';
36604
+ /**
36605
+ * Whether a caller requested compaction or the session started it automatically.
36606
+ */
36607
+ trigger: 'manual' | 'auto';
36608
+ } | null;
36092
36609
  /**
36093
36610
  * Items of this page, in the order requested by the call.
36094
36611
  */
@@ -36271,7 +36788,7 @@ export type BrowserListSessionsData = {
36271
36788
  };
36272
36789
  export type BrowserListSessionsErrors = {
36273
36790
  /**
36274
- * INVALID_PARAMS
36791
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36275
36792
  */
36276
36793
  400: BrowserError;
36277
36794
  /**
@@ -36279,11 +36796,15 @@ export type BrowserListSessionsErrors = {
36279
36796
  */
36280
36797
  401: BrowserError;
36281
36798
  /**
36282
- * INSUFFICIENT_BALANCE
36799
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36283
36800
  */
36284
36801
  402: BrowserError;
36285
36802
  /**
36286
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
36803
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
36804
+ */
36805
+ 403: BrowserError;
36806
+ /**
36807
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36287
36808
  */
36288
36809
  404: BrowserError;
36289
36810
  /**
@@ -36295,13 +36816,21 @@ export type BrowserListSessionsErrors = {
36295
36816
  */
36296
36817
  429: BrowserError;
36297
36818
  /**
36298
- * PROVIDER_UNSUPPORTED
36819
+ * INTERNAL
36820
+ */
36821
+ 500: BrowserError;
36822
+ /**
36823
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36299
36824
  */
36300
36825
  501: BrowserError;
36301
36826
  /**
36302
36827
  * PROVIDER_FAILED
36303
36828
  */
36304
36829
  502: BrowserError;
36830
+ /**
36831
+ * SERVICE_UNAVAILABLE
36832
+ */
36833
+ 503: BrowserError;
36305
36834
  };
36306
36835
  export type BrowserListSessionsError = BrowserListSessionsErrors[keyof BrowserListSessionsErrors];
36307
36836
  export type BrowserListSessionsResponses = {
@@ -36328,7 +36857,7 @@ export type BrowserCreateSessionData = {
36328
36857
  };
36329
36858
  export type BrowserCreateSessionErrors = {
36330
36859
  /**
36331
- * INVALID_PARAMS
36860
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36332
36861
  */
36333
36862
  400: BrowserError;
36334
36863
  /**
@@ -36336,11 +36865,15 @@ export type BrowserCreateSessionErrors = {
36336
36865
  */
36337
36866
  401: BrowserError;
36338
36867
  /**
36339
- * INSUFFICIENT_BALANCE
36868
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36340
36869
  */
36341
36870
  402: BrowserError;
36342
36871
  /**
36343
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
36872
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
36873
+ */
36874
+ 403: BrowserError;
36875
+ /**
36876
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36344
36877
  */
36345
36878
  404: BrowserError;
36346
36879
  /**
@@ -36352,13 +36885,21 @@ export type BrowserCreateSessionErrors = {
36352
36885
  */
36353
36886
  429: BrowserError;
36354
36887
  /**
36355
- * PROVIDER_UNSUPPORTED
36888
+ * INTERNAL
36889
+ */
36890
+ 500: BrowserError;
36891
+ /**
36892
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36356
36893
  */
36357
36894
  501: BrowserError;
36358
36895
  /**
36359
36896
  * PROVIDER_FAILED
36360
36897
  */
36361
36898
  502: BrowserError;
36899
+ /**
36900
+ * SERVICE_UNAVAILABLE
36901
+ */
36902
+ 503: BrowserError;
36362
36903
  };
36363
36904
  export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
36364
36905
  export type BrowserCreateSessionResponses = {
@@ -36386,7 +36927,7 @@ export type BrowserGetSessionData = {
36386
36927
  };
36387
36928
  export type BrowserGetSessionErrors = {
36388
36929
  /**
36389
- * INVALID_PARAMS
36930
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36390
36931
  */
36391
36932
  400: BrowserError;
36392
36933
  /**
@@ -36394,11 +36935,15 @@ export type BrowserGetSessionErrors = {
36394
36935
  */
36395
36936
  401: BrowserError;
36396
36937
  /**
36397
- * INSUFFICIENT_BALANCE
36938
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36398
36939
  */
36399
36940
  402: BrowserError;
36400
36941
  /**
36401
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
36942
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
36943
+ */
36944
+ 403: BrowserError;
36945
+ /**
36946
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36402
36947
  */
36403
36948
  404: BrowserError;
36404
36949
  /**
@@ -36410,13 +36955,21 @@ export type BrowserGetSessionErrors = {
36410
36955
  */
36411
36956
  429: BrowserError;
36412
36957
  /**
36413
- * PROVIDER_UNSUPPORTED
36958
+ * INTERNAL
36959
+ */
36960
+ 500: BrowserError;
36961
+ /**
36962
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36414
36963
  */
36415
36964
  501: BrowserError;
36416
36965
  /**
36417
36966
  * PROVIDER_FAILED
36418
36967
  */
36419
36968
  502: BrowserError;
36969
+ /**
36970
+ * SERVICE_UNAVAILABLE
36971
+ */
36972
+ 503: BrowserError;
36420
36973
  };
36421
36974
  export type BrowserGetSessionError = BrowserGetSessionErrors[keyof BrowserGetSessionErrors];
36422
36975
  export type BrowserGetSessionResponses = {
@@ -36444,7 +36997,7 @@ export type BrowserCloseSessionData = {
36444
36997
  };
36445
36998
  export type BrowserCloseSessionErrors = {
36446
36999
  /**
36447
- * INVALID_PARAMS
37000
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36448
37001
  */
36449
37002
  400: BrowserError;
36450
37003
  /**
@@ -36452,11 +37005,15 @@ export type BrowserCloseSessionErrors = {
36452
37005
  */
36453
37006
  401: BrowserError;
36454
37007
  /**
36455
- * INSUFFICIENT_BALANCE
37008
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36456
37009
  */
36457
37010
  402: BrowserError;
36458
37011
  /**
36459
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37012
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37013
+ */
37014
+ 403: BrowserError;
37015
+ /**
37016
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36460
37017
  */
36461
37018
  404: BrowserError;
36462
37019
  /**
@@ -36468,13 +37025,21 @@ export type BrowserCloseSessionErrors = {
36468
37025
  */
36469
37026
  429: BrowserError;
36470
37027
  /**
36471
- * PROVIDER_UNSUPPORTED
37028
+ * INTERNAL
37029
+ */
37030
+ 500: BrowserError;
37031
+ /**
37032
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36472
37033
  */
36473
37034
  501: BrowserError;
36474
37035
  /**
36475
37036
  * PROVIDER_FAILED
36476
37037
  */
36477
37038
  502: BrowserError;
37039
+ /**
37040
+ * SERVICE_UNAVAILABLE
37041
+ */
37042
+ 503: BrowserError;
36478
37043
  };
36479
37044
  export type BrowserCloseSessionError = BrowserCloseSessionErrors[keyof BrowserCloseSessionErrors];
36480
37045
  export type BrowserCloseSessionResponses = {
@@ -36497,7 +37062,7 @@ export type BrowserGetDebugData = {
36497
37062
  };
36498
37063
  export type BrowserGetDebugErrors = {
36499
37064
  /**
36500
- * INVALID_PARAMS
37065
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36501
37066
  */
36502
37067
  400: BrowserError;
36503
37068
  /**
@@ -36505,11 +37070,15 @@ export type BrowserGetDebugErrors = {
36505
37070
  */
36506
37071
  401: BrowserError;
36507
37072
  /**
36508
- * INSUFFICIENT_BALANCE
37073
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36509
37074
  */
36510
37075
  402: BrowserError;
36511
37076
  /**
36512
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37077
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37078
+ */
37079
+ 403: BrowserError;
37080
+ /**
37081
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36513
37082
  */
36514
37083
  404: BrowserError;
36515
37084
  /**
@@ -36521,13 +37090,21 @@ export type BrowserGetDebugErrors = {
36521
37090
  */
36522
37091
  429: BrowserError;
36523
37092
  /**
36524
- * PROVIDER_UNSUPPORTED
37093
+ * INTERNAL
37094
+ */
37095
+ 500: BrowserError;
37096
+ /**
37097
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36525
37098
  */
36526
37099
  501: BrowserError;
36527
37100
  /**
36528
37101
  * PROVIDER_FAILED
36529
37102
  */
36530
37103
  502: BrowserError;
37104
+ /**
37105
+ * SERVICE_UNAVAILABLE
37106
+ */
37107
+ 503: BrowserError;
36531
37108
  };
36532
37109
  export type BrowserGetDebugError = BrowserGetDebugErrors[keyof BrowserGetDebugErrors];
36533
37110
  export type BrowserGetDebugResponses = {
@@ -36563,7 +37140,7 @@ export type BrowserListEventsData = {
36563
37140
  };
36564
37141
  export type BrowserListEventsErrors = {
36565
37142
  /**
36566
- * INVALID_PARAMS
37143
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36567
37144
  */
36568
37145
  400: BrowserError;
36569
37146
  /**
@@ -36571,11 +37148,15 @@ export type BrowserListEventsErrors = {
36571
37148
  */
36572
37149
  401: BrowserError;
36573
37150
  /**
36574
- * INSUFFICIENT_BALANCE
37151
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36575
37152
  */
36576
37153
  402: BrowserError;
36577
37154
  /**
36578
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37155
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37156
+ */
37157
+ 403: BrowserError;
37158
+ /**
37159
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36579
37160
  */
36580
37161
  404: BrowserError;
36581
37162
  /**
@@ -36587,13 +37168,21 @@ export type BrowserListEventsErrors = {
36587
37168
  */
36588
37169
  429: BrowserError;
36589
37170
  /**
36590
- * PROVIDER_UNSUPPORTED
37171
+ * INTERNAL
37172
+ */
37173
+ 500: BrowserError;
37174
+ /**
37175
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36591
37176
  */
36592
37177
  501: BrowserError;
36593
37178
  /**
36594
37179
  * PROVIDER_FAILED
36595
37180
  */
36596
37181
  502: BrowserError;
37182
+ /**
37183
+ * SERVICE_UNAVAILABLE
37184
+ */
37185
+ 503: BrowserError;
36597
37186
  };
36598
37187
  export type BrowserListEventsError = BrowserListEventsErrors[keyof BrowserListEventsErrors];
36599
37188
  export type BrowserListEventsResponses = {
@@ -36634,7 +37223,7 @@ export type BrowserRequestHandoffData = {
36634
37223
  };
36635
37224
  export type BrowserRequestHandoffErrors = {
36636
37225
  /**
36637
- * INVALID_PARAMS
37226
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36638
37227
  */
36639
37228
  400: BrowserError;
36640
37229
  /**
@@ -36642,11 +37231,15 @@ export type BrowserRequestHandoffErrors = {
36642
37231
  */
36643
37232
  401: BrowserError;
36644
37233
  /**
36645
- * INSUFFICIENT_BALANCE
37234
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36646
37235
  */
36647
37236
  402: BrowserError;
36648
37237
  /**
36649
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37238
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37239
+ */
37240
+ 403: BrowserError;
37241
+ /**
37242
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36650
37243
  */
36651
37244
  404: BrowserError;
36652
37245
  /**
@@ -36658,20 +37251,28 @@ export type BrowserRequestHandoffErrors = {
36658
37251
  */
36659
37252
  429: BrowserError;
36660
37253
  /**
36661
- * PROVIDER_UNSUPPORTED
37254
+ * INTERNAL
37255
+ */
37256
+ 500: BrowserError;
37257
+ /**
37258
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36662
37259
  */
36663
37260
  501: BrowserError;
36664
37261
  /**
36665
37262
  * PROVIDER_FAILED
36666
37263
  */
36667
37264
  502: BrowserError;
37265
+ /**
37266
+ * SERVICE_UNAVAILABLE
37267
+ */
37268
+ 503: BrowserError;
36668
37269
  };
36669
37270
  export type BrowserRequestHandoffError = BrowserRequestHandoffErrors[keyof BrowserRequestHandoffErrors];
36670
37271
  export type BrowserRequestHandoffResponses = {
36671
37272
  /**
36672
37273
  * 请求成功。
36673
37274
  */
36674
- 200: BrowserEventRecord;
37275
+ 201: BrowserEventRecord;
36675
37276
  };
36676
37277
  export type BrowserRequestHandoffResponse = BrowserRequestHandoffResponses[keyof BrowserRequestHandoffResponses];
36677
37278
  export type BrowserCompleteHandoffData = {
@@ -36687,7 +37288,7 @@ export type BrowserCompleteHandoffData = {
36687
37288
  };
36688
37289
  export type BrowserCompleteHandoffErrors = {
36689
37290
  /**
36690
- * INVALID_PARAMS
37291
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36691
37292
  */
36692
37293
  400: BrowserError;
36693
37294
  /**
@@ -36695,11 +37296,15 @@ export type BrowserCompleteHandoffErrors = {
36695
37296
  */
36696
37297
  401: BrowserError;
36697
37298
  /**
36698
- * INSUFFICIENT_BALANCE
37299
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36699
37300
  */
36700
37301
  402: BrowserError;
36701
37302
  /**
36702
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37303
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37304
+ */
37305
+ 403: BrowserError;
37306
+ /**
37307
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36703
37308
  */
36704
37309
  404: BrowserError;
36705
37310
  /**
@@ -36711,13 +37316,21 @@ export type BrowserCompleteHandoffErrors = {
36711
37316
  */
36712
37317
  429: BrowserError;
36713
37318
  /**
36714
- * PROVIDER_UNSUPPORTED
37319
+ * INTERNAL
37320
+ */
37321
+ 500: BrowserError;
37322
+ /**
37323
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36715
37324
  */
36716
37325
  501: BrowserError;
36717
37326
  /**
36718
37327
  * PROVIDER_FAILED
36719
37328
  */
36720
37329
  502: BrowserError;
37330
+ /**
37331
+ * SERVICE_UNAVAILABLE
37332
+ */
37333
+ 503: BrowserError;
36721
37334
  };
36722
37335
  export type BrowserCompleteHandoffError = BrowserCompleteHandoffErrors[keyof BrowserCompleteHandoffErrors];
36723
37336
  export type BrowserCompleteHandoffResponses = {
@@ -36745,7 +37358,7 @@ export type BrowserViewerHeartbeatData = {
36745
37358
  };
36746
37359
  export type BrowserViewerHeartbeatErrors = {
36747
37360
  /**
36748
- * INVALID_PARAMS
37361
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36749
37362
  */
36750
37363
  400: BrowserError;
36751
37364
  /**
@@ -36753,11 +37366,15 @@ export type BrowserViewerHeartbeatErrors = {
36753
37366
  */
36754
37367
  401: BrowserError;
36755
37368
  /**
36756
- * INSUFFICIENT_BALANCE
37369
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36757
37370
  */
36758
37371
  402: BrowserError;
36759
37372
  /**
36760
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37373
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37374
+ */
37375
+ 403: BrowserError;
37376
+ /**
37377
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36761
37378
  */
36762
37379
  404: BrowserError;
36763
37380
  /**
@@ -36769,13 +37386,21 @@ export type BrowserViewerHeartbeatErrors = {
36769
37386
  */
36770
37387
  429: BrowserError;
36771
37388
  /**
36772
- * PROVIDER_UNSUPPORTED
37389
+ * INTERNAL
37390
+ */
37391
+ 500: BrowserError;
37392
+ /**
37393
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36773
37394
  */
36774
37395
  501: BrowserError;
36775
37396
  /**
36776
37397
  * PROVIDER_FAILED
36777
37398
  */
36778
37399
  502: BrowserError;
37400
+ /**
37401
+ * SERVICE_UNAVAILABLE
37402
+ */
37403
+ 503: BrowserError;
36779
37404
  };
36780
37405
  export type BrowserViewerHeartbeatError = BrowserViewerHeartbeatErrors[keyof BrowserViewerHeartbeatErrors];
36781
37406
  export type BrowserViewerHeartbeatResponses = {
@@ -36807,7 +37432,7 @@ export type BrowserListContextsData = {
36807
37432
  };
36808
37433
  export type BrowserListContextsErrors = {
36809
37434
  /**
36810
- * INVALID_PARAMS
37435
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36811
37436
  */
36812
37437
  400: BrowserError;
36813
37438
  /**
@@ -36815,11 +37440,15 @@ export type BrowserListContextsErrors = {
36815
37440
  */
36816
37441
  401: BrowserError;
36817
37442
  /**
36818
- * INSUFFICIENT_BALANCE
37443
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36819
37444
  */
36820
37445
  402: BrowserError;
36821
37446
  /**
36822
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37447
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37448
+ */
37449
+ 403: BrowserError;
37450
+ /**
37451
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36823
37452
  */
36824
37453
  404: BrowserError;
36825
37454
  /**
@@ -36831,13 +37460,21 @@ export type BrowserListContextsErrors = {
36831
37460
  */
36832
37461
  429: BrowserError;
36833
37462
  /**
36834
- * PROVIDER_UNSUPPORTED
37463
+ * INTERNAL
37464
+ */
37465
+ 500: BrowserError;
37466
+ /**
37467
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36835
37468
  */
36836
37469
  501: BrowserError;
36837
37470
  /**
36838
37471
  * PROVIDER_FAILED
36839
37472
  */
36840
37473
  502: BrowserError;
37474
+ /**
37475
+ * SERVICE_UNAVAILABLE
37476
+ */
37477
+ 503: BrowserError;
36841
37478
  };
36842
37479
  export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
36843
37480
  export type BrowserListContextsResponses = {
@@ -36879,7 +37516,7 @@ export type BrowserCreateContextData = {
36879
37516
  };
36880
37517
  export type BrowserCreateContextErrors = {
36881
37518
  /**
36882
- * INVALID_PARAMS
37519
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36883
37520
  */
36884
37521
  400: BrowserError;
36885
37522
  /**
@@ -36887,11 +37524,15 @@ export type BrowserCreateContextErrors = {
36887
37524
  */
36888
37525
  401: BrowserError;
36889
37526
  /**
36890
- * INSUFFICIENT_BALANCE
37527
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36891
37528
  */
36892
37529
  402: BrowserError;
36893
37530
  /**
36894
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37531
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37532
+ */
37533
+ 403: BrowserError;
37534
+ /**
37535
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36895
37536
  */
36896
37537
  404: BrowserError;
36897
37538
  /**
@@ -36903,13 +37544,21 @@ export type BrowserCreateContextErrors = {
36903
37544
  */
36904
37545
  429: BrowserError;
36905
37546
  /**
36906
- * PROVIDER_UNSUPPORTED
37547
+ * INTERNAL
37548
+ */
37549
+ 500: BrowserError;
37550
+ /**
37551
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36907
37552
  */
36908
37553
  501: BrowserError;
36909
37554
  /**
36910
37555
  * PROVIDER_FAILED
36911
37556
  */
36912
37557
  502: BrowserError;
37558
+ /**
37559
+ * SERVICE_UNAVAILABLE
37560
+ */
37561
+ 503: BrowserError;
36913
37562
  };
36914
37563
  export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
36915
37564
  export type BrowserCreateContextResponses = {
@@ -36932,7 +37581,7 @@ export type BrowserDeleteContextData = {
36932
37581
  };
36933
37582
  export type BrowserDeleteContextErrors = {
36934
37583
  /**
36935
- * INVALID_PARAMS
37584
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36936
37585
  */
36937
37586
  400: BrowserError;
36938
37587
  /**
@@ -36940,11 +37589,15 @@ export type BrowserDeleteContextErrors = {
36940
37589
  */
36941
37590
  401: BrowserError;
36942
37591
  /**
36943
- * INSUFFICIENT_BALANCE
37592
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36944
37593
  */
36945
37594
  402: BrowserError;
36946
37595
  /**
36947
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37596
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37597
+ */
37598
+ 403: BrowserError;
37599
+ /**
37600
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36948
37601
  */
36949
37602
  404: BrowserError;
36950
37603
  /**
@@ -36956,13 +37609,21 @@ export type BrowserDeleteContextErrors = {
36956
37609
  */
36957
37610
  429: BrowserError;
36958
37611
  /**
36959
- * PROVIDER_UNSUPPORTED
37612
+ * INTERNAL
37613
+ */
37614
+ 500: BrowserError;
37615
+ /**
37616
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36960
37617
  */
36961
37618
  501: BrowserError;
36962
37619
  /**
36963
37620
  * PROVIDER_FAILED
36964
37621
  */
36965
37622
  502: BrowserError;
37623
+ /**
37624
+ * SERVICE_UNAVAILABLE
37625
+ */
37626
+ 503: BrowserError;
36966
37627
  };
36967
37628
  export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
36968
37629
  export type BrowserDeleteContextResponses = {
@@ -36990,7 +37651,7 @@ export type BrowserGetContextData = {
36990
37651
  };
36991
37652
  export type BrowserGetContextErrors = {
36992
37653
  /**
36993
- * INVALID_PARAMS
37654
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36994
37655
  */
36995
37656
  400: BrowserError;
36996
37657
  /**
@@ -36998,11 +37659,15 @@ export type BrowserGetContextErrors = {
36998
37659
  */
36999
37660
  401: BrowserError;
37000
37661
  /**
37001
- * INSUFFICIENT_BALANCE
37662
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
37002
37663
  */
37003
37664
  402: BrowserError;
37004
37665
  /**
37005
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37666
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37667
+ */
37668
+ 403: BrowserError;
37669
+ /**
37670
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
37006
37671
  */
37007
37672
  404: BrowserError;
37008
37673
  /**
@@ -37014,13 +37679,21 @@ export type BrowserGetContextErrors = {
37014
37679
  */
37015
37680
  429: BrowserError;
37016
37681
  /**
37017
- * PROVIDER_UNSUPPORTED
37682
+ * INTERNAL
37683
+ */
37684
+ 500: BrowserError;
37685
+ /**
37686
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
37018
37687
  */
37019
37688
  501: BrowserError;
37020
37689
  /**
37021
37690
  * PROVIDER_FAILED
37022
37691
  */
37023
37692
  502: BrowserError;
37693
+ /**
37694
+ * SERVICE_UNAVAILABLE
37695
+ */
37696
+ 503: BrowserError;
37024
37697
  };
37025
37698
  export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
37026
37699
  export type BrowserGetContextResponses = {
@@ -37054,7 +37727,7 @@ export type BrowserUpdateContextData = {
37054
37727
  };
37055
37728
  export type BrowserUpdateContextErrors = {
37056
37729
  /**
37057
- * INVALID_PARAMS
37730
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
37058
37731
  */
37059
37732
  400: BrowserError;
37060
37733
  /**
@@ -37062,11 +37735,15 @@ export type BrowserUpdateContextErrors = {
37062
37735
  */
37063
37736
  401: BrowserError;
37064
37737
  /**
37065
- * INSUFFICIENT_BALANCE
37738
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
37066
37739
  */
37067
37740
  402: BrowserError;
37068
37741
  /**
37069
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37742
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37743
+ */
37744
+ 403: BrowserError;
37745
+ /**
37746
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
37070
37747
  */
37071
37748
  404: BrowserError;
37072
37749
  /**
@@ -37078,13 +37755,21 @@ export type BrowserUpdateContextErrors = {
37078
37755
  */
37079
37756
  429: BrowserError;
37080
37757
  /**
37081
- * PROVIDER_UNSUPPORTED
37758
+ * INTERNAL
37759
+ */
37760
+ 500: BrowserError;
37761
+ /**
37762
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
37082
37763
  */
37083
37764
  501: BrowserError;
37084
37765
  /**
37085
37766
  * PROVIDER_FAILED
37086
37767
  */
37087
37768
  502: BrowserError;
37769
+ /**
37770
+ * SERVICE_UNAVAILABLE
37771
+ */
37772
+ 503: BrowserError;
37088
37773
  };
37089
37774
  export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
37090
37775
  export type BrowserUpdateContextResponses = {
@@ -37139,7 +37824,7 @@ export type BrowserConnectData = {
37139
37824
  };
37140
37825
  export type BrowserConnectErrors = {
37141
37826
  /**
37142
- * INVALID_PARAMS
37827
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
37143
37828
  */
37144
37829
  400: BrowserError;
37145
37830
  /**
@@ -37147,11 +37832,15 @@ export type BrowserConnectErrors = {
37147
37832
  */
37148
37833
  401: BrowserError;
37149
37834
  /**
37150
- * INSUFFICIENT_BALANCE
37835
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
37151
37836
  */
37152
37837
  402: BrowserError;
37153
37838
  /**
37154
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37839
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37840
+ */
37841
+ 403: BrowserError;
37842
+ /**
37843
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
37155
37844
  */
37156
37845
  404: BrowserError;
37157
37846
  /**
@@ -37163,13 +37852,21 @@ export type BrowserConnectErrors = {
37163
37852
  */
37164
37853
  429: BrowserError;
37165
37854
  /**
37166
- * PROVIDER_UNSUPPORTED
37855
+ * INTERNAL
37856
+ */
37857
+ 500: BrowserError;
37858
+ /**
37859
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
37167
37860
  */
37168
37861
  501: BrowserError;
37169
37862
  /**
37170
37863
  * PROVIDER_FAILED
37171
37864
  */
37172
37865
  502: BrowserError;
37866
+ /**
37867
+ * SERVICE_UNAVAILABLE
37868
+ */
37869
+ 503: BrowserError;
37173
37870
  };
37174
37871
  export type BrowserConnectError = BrowserConnectErrors[keyof BrowserConnectErrors];
37175
37872
  export type BrowserLiveViewData = {
@@ -37194,7 +37891,7 @@ export type BrowserLiveViewData = {
37194
37891
  };
37195
37892
  export type BrowserLiveViewErrors = {
37196
37893
  /**
37197
- * INVALID_PARAMS
37894
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
37198
37895
  */
37199
37896
  400: BrowserError;
37200
37897
  /**
@@ -37202,11 +37899,15 @@ export type BrowserLiveViewErrors = {
37202
37899
  */
37203
37900
  401: BrowserError;
37204
37901
  /**
37205
- * INSUFFICIENT_BALANCE
37902
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
37206
37903
  */
37207
37904
  402: BrowserError;
37208
37905
  /**
37209
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37906
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37907
+ */
37908
+ 403: BrowserError;
37909
+ /**
37910
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
37210
37911
  */
37211
37912
  404: BrowserError;
37212
37913
  /**
@@ -37218,13 +37919,21 @@ export type BrowserLiveViewErrors = {
37218
37919
  */
37219
37920
  429: BrowserError;
37220
37921
  /**
37221
- * PROVIDER_UNSUPPORTED
37922
+ * INTERNAL
37923
+ */
37924
+ 500: BrowserError;
37925
+ /**
37926
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
37222
37927
  */
37223
37928
  501: BrowserError;
37224
37929
  /**
37225
37930
  * PROVIDER_FAILED
37226
37931
  */
37227
37932
  502: BrowserError;
37933
+ /**
37934
+ * SERVICE_UNAVAILABLE
37935
+ */
37936
+ 503: BrowserError;
37228
37937
  };
37229
37938
  export type BrowserLiveViewError = BrowserLiveViewErrors[keyof BrowserLiveViewErrors];
37230
37939
  export type BrowserStreamSessionData = {
@@ -37240,7 +37949,7 @@ export type BrowserStreamSessionData = {
37240
37949
  };
37241
37950
  export type BrowserStreamSessionErrors = {
37242
37951
  /**
37243
- * INVALID_PARAMS
37952
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
37244
37953
  */
37245
37954
  400: BrowserError;
37246
37955
  /**
@@ -37248,11 +37957,15 @@ export type BrowserStreamSessionErrors = {
37248
37957
  */
37249
37958
  401: BrowserError;
37250
37959
  /**
37251
- * INSUFFICIENT_BALANCE
37960
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
37252
37961
  */
37253
37962
  402: BrowserError;
37254
37963
  /**
37255
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37964
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37965
+ */
37966
+ 403: BrowserError;
37967
+ /**
37968
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
37256
37969
  */
37257
37970
  404: BrowserError;
37258
37971
  /**
@@ -37264,13 +37977,21 @@ export type BrowserStreamSessionErrors = {
37264
37977
  */
37265
37978
  429: BrowserError;
37266
37979
  /**
37267
- * PROVIDER_UNSUPPORTED
37980
+ * INTERNAL
37981
+ */
37982
+ 500: BrowserError;
37983
+ /**
37984
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
37268
37985
  */
37269
37986
  501: BrowserError;
37270
37987
  /**
37271
37988
  * PROVIDER_FAILED
37272
37989
  */
37273
37990
  502: BrowserError;
37991
+ /**
37992
+ * SERVICE_UNAVAILABLE
37993
+ */
37994
+ 503: BrowserError;
37274
37995
  };
37275
37996
  export type BrowserStreamSessionError = BrowserStreamSessionErrors[keyof BrowserStreamSessionErrors];
37276
37997
  export type BrowserStreamSessionResponses = {
@@ -37288,7 +38009,7 @@ export type BrowserSeleniumUnsupportedData = {
37288
38009
  };
37289
38010
  export type BrowserSeleniumUnsupportedErrors = {
37290
38011
  /**
37291
- * PROVIDER_UNSUPPORTED
38012
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
37292
38013
  */
37293
38014
  501: BrowserError;
37294
38015
  };
@@ -37713,6 +38434,107 @@ export type MetaMethodsRetrieveResponses = {
37713
38434
  200: MetaMethod;
37714
38435
  };
37715
38436
  export type MetaMethodsRetrieveResponse = MetaMethodsRetrieveResponses[keyof MetaMethodsRetrieveResponses];
38437
+ export type MetaDocsRetrieveData = {
38438
+ body?: never;
38439
+ path: {
38440
+ /**
38441
+ * Slash-separated documentation path from docs.search; optionally append #heading-id to select a section.
38442
+ */
38443
+ path: string;
38444
+ };
38445
+ query?: {
38446
+ /**
38447
+ * Documentation language: zh for Chinese (default), en for English.
38448
+ */
38449
+ lang?: 'zh' | 'en';
38450
+ };
38451
+ url: '/meta/v1/docs/{path}';
38452
+ };
38453
+ export type MetaDocsRetrieveErrors = {
38454
+ /**
38455
+ * INVALID_PARAMS: lang must be zh or en; correct the language and retry.
38456
+ */
38457
+ 400: MetaProblem;
38458
+ /**
38459
+ * DOC_NOT_FOUND: page or anchor does not exist; use docs.search to find a valid documentation path.
38460
+ */
38461
+ 404: MetaProblem;
38462
+ };
38463
+ export type MetaDocsRetrieveError = MetaDocsRetrieveErrors[keyof MetaDocsRetrieveErrors];
38464
+ export type MetaDocsRetrieveResponses = {
38465
+ /**
38466
+ * Documentation page as Markdown, never the HTML website.
38467
+ */
38468
+ 200: {
38469
+ /**
38470
+ * Documentation path, including the requested section anchor when present.
38471
+ */
38472
+ path: string;
38473
+ /**
38474
+ * Human-readable title of the documentation page.
38475
+ */
38476
+ title: string;
38477
+ /**
38478
+ * Canonical documentation URL for reading the page in a browser.
38479
+ */
38480
+ url: string;
38481
+ /**
38482
+ * Compiled page Markdown, or only the requested heading section and its subsections.
38483
+ */
38484
+ markdown: string;
38485
+ };
38486
+ };
38487
+ export type MetaDocsRetrieveResponse = MetaDocsRetrieveResponses[keyof MetaDocsRetrieveResponses];
38488
+ export type MetaDocsSearchData = {
38489
+ body?: never;
38490
+ path?: never;
38491
+ query: {
38492
+ /**
38493
+ * Keywords describing the syntax or guide needed, for example export or workflow.
38494
+ */
38495
+ q: string;
38496
+ /**
38497
+ * Maximum number of matching pages returned; integer 1–50, default 20.
38498
+ */
38499
+ limit?: number;
38500
+ /**
38501
+ * Documentation language: zh for Chinese (default), en for English.
38502
+ */
38503
+ lang?: 'zh' | 'en';
38504
+ };
38505
+ url: '/meta/v1/docs/search';
38506
+ };
38507
+ export type MetaDocsSearchErrors = {
38508
+ /**
38509
+ * INVALID_PARAMS: supply nonempty q, limit from 1 to 50 and lang zh or en.
38510
+ */
38511
+ 400: MetaProblem;
38512
+ };
38513
+ export type MetaDocsSearchError = MetaDocsSearchErrors[keyof MetaDocsSearchErrors];
38514
+ export type MetaDocsSearchResponses = {
38515
+ /**
38516
+ * Matching documentation pages; empty when no page contains all keywords.
38517
+ */
38518
+ 200: Array<{
38519
+ /**
38520
+ * Documentation path, including the requested section anchor when present.
38521
+ */
38522
+ path: string;
38523
+ /**
38524
+ * Human-readable title of the documentation page.
38525
+ */
38526
+ title: string;
38527
+ /**
38528
+ * Canonical documentation URL for reading the page in a browser.
38529
+ */
38530
+ url: string;
38531
+ /**
38532
+ * Short excerpt from the matching page to help choose which documentation to retrieve.
38533
+ */
38534
+ snippet: string;
38535
+ }>;
38536
+ };
38537
+ export type MetaDocsSearchResponse = MetaDocsSearchResponses[keyof MetaDocsSearchResponses];
37716
38538
  export type ListModelsData = {
37717
38539
  body?: never;
37718
38540
  path?: never;
@@ -50072,6 +50894,36 @@ export type SessionsEventsListResponses = {
50072
50894
  * Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches.
50073
50895
  */
50074
50896
  guarded_rule?: string;
50897
+ /**
50898
+ * On an allow confirmation, copy this call's permission_suggestions unchanged. Personal agents accept agent (shared across their sessions) or session; service agents accept session only. Rules must match the offered update exactly. A failed save leaves the call waiting for approval.
50899
+ */
50900
+ permission_suggestions?: Array<{
50901
+ /**
50902
+ * add_rules adds the offered allow rules.
50903
+ */
50904
+ type: 'add_rules';
50905
+ /**
50906
+ * allow grants permission for matching calls.
50907
+ */
50908
+ behavior: 'allow';
50909
+ /**
50910
+ * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
50911
+ */
50912
+ destination: 'agent' | 'session';
50913
+ /**
50914
+ * The complete set of rules from one offered suggestion, without changes.
50915
+ */
50916
+ rules: Array<{
50917
+ /**
50918
+ * The offered tool name, including the full mcp__server__tool name for an MCP tool.
50919
+ */
50920
+ tool_name: string;
50921
+ /**
50922
+ * The offered command, stable command prefix, exact file path, domain or whole-tool wildcard.
50923
+ */
50924
+ rule_content: string;
50925
+ }>;
50926
+ }>;
50075
50927
  /**
50076
50928
  * Human-readable tool name from MCP 2025-06-18 Tool.title, falling back to annotations.title. Trimmed and truncated to 200 characters; omitted when blank or absent. Present only for model-initiated calls on /agent/v1; use name when absent.
50077
50929
  */
@@ -50180,6 +51032,36 @@ export type SessionsEventsListResponses = {
50180
51032
  * Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches.
50181
51033
  */
50182
51034
  guarded_rule?: string;
51035
+ /**
51036
+ * On an allow confirmation, copy this call's permission_suggestions unchanged. Personal agents accept agent (shared across their sessions) or session; service agents accept session only. Rules must match the offered update exactly. A failed save leaves the call waiting for approval.
51037
+ */
51038
+ permission_suggestions?: Array<{
51039
+ /**
51040
+ * add_rules adds the offered allow rules.
51041
+ */
51042
+ type: 'add_rules';
51043
+ /**
51044
+ * allow grants permission for matching calls.
51045
+ */
51046
+ behavior: 'allow';
51047
+ /**
51048
+ * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
51049
+ */
51050
+ destination: 'agent' | 'session';
51051
+ /**
51052
+ * The complete set of rules from one offered suggestion, without changes.
51053
+ */
51054
+ rules: Array<{
51055
+ /**
51056
+ * The offered tool name, including the full mcp__server__tool name for an MCP tool.
51057
+ */
51058
+ tool_name: string;
51059
+ /**
51060
+ * The offered command, stable command prefix, exact file path, domain or whole-tool wildcard.
51061
+ */
51062
+ rule_content: string;
51063
+ }>;
51064
+ }>;
50183
51065
  } | {
50184
51066
  /**
50185
51067
  * Unique identifier for this event.
@@ -51225,6 +52107,36 @@ export type SessionsThreadsEventsListResponses = {
51225
52107
  * Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches.
51226
52108
  */
51227
52109
  guarded_rule?: string;
52110
+ /**
52111
+ * On an allow confirmation, copy this call's permission_suggestions unchanged. Personal agents accept agent (shared across their sessions) or session; service agents accept session only. Rules must match the offered update exactly. A failed save leaves the call waiting for approval.
52112
+ */
52113
+ permission_suggestions?: Array<{
52114
+ /**
52115
+ * add_rules adds the offered allow rules.
52116
+ */
52117
+ type: 'add_rules';
52118
+ /**
52119
+ * allow grants permission for matching calls.
52120
+ */
52121
+ behavior: 'allow';
52122
+ /**
52123
+ * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
52124
+ */
52125
+ destination: 'agent' | 'session';
52126
+ /**
52127
+ * The complete set of rules from one offered suggestion, without changes.
52128
+ */
52129
+ rules: Array<{
52130
+ /**
52131
+ * The offered tool name, including the full mcp__server__tool name for an MCP tool.
52132
+ */
52133
+ tool_name: string;
52134
+ /**
52135
+ * The offered command, stable command prefix, exact file path, domain or whole-tool wildcard.
52136
+ */
52137
+ rule_content: string;
52138
+ }>;
52139
+ }>;
51228
52140
  /**
51229
52141
  * Human-readable tool name from MCP 2025-06-18 Tool.title, falling back to annotations.title. Trimmed and truncated to 200 characters; omitted when blank or absent. Present only for model-initiated calls on /agent/v1; use name when absent.
51230
52142
  */
@@ -51333,6 +52245,36 @@ export type SessionsThreadsEventsListResponses = {
51333
52245
  * Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches.
51334
52246
  */
51335
52247
  guarded_rule?: string;
52248
+ /**
52249
+ * On an allow confirmation, copy this call's permission_suggestions unchanged. Personal agents accept agent (shared across their sessions) or session; service agents accept session only. Rules must match the offered update exactly. A failed save leaves the call waiting for approval.
52250
+ */
52251
+ permission_suggestions?: Array<{
52252
+ /**
52253
+ * add_rules adds the offered allow rules.
52254
+ */
52255
+ type: 'add_rules';
52256
+ /**
52257
+ * allow grants permission for matching calls.
52258
+ */
52259
+ behavior: 'allow';
52260
+ /**
52261
+ * agent shares the grant across a personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
52262
+ */
52263
+ destination: 'agent' | 'session';
52264
+ /**
52265
+ * The complete set of rules from one offered suggestion, without changes.
52266
+ */
52267
+ rules: Array<{
52268
+ /**
52269
+ * The offered tool name, including the full mcp__server__tool name for an MCP tool.
52270
+ */
52271
+ tool_name: string;
52272
+ /**
52273
+ * The offered command, stable command prefix, exact file path, domain or whole-tool wildcard.
52274
+ */
52275
+ rule_content: string;
52276
+ }>;
52277
+ }>;
51336
52278
  } | {
51337
52279
  /**
51338
52280
  * Unique identifier for this event.
@@ -51951,7 +52893,7 @@ export type SessionsResourcesListData = {
51951
52893
  };
51952
52894
  query?: {
51953
52895
  /**
51954
- * Number of items per page.
52896
+ * Number of resources per page, from 1 to 100; defaults to 100.
51955
52897
  */
51956
52898
  limit?: number;
51957
52899
  page?: null | string;
@@ -57370,7 +58312,7 @@ export type AutomationRunsCreateData = {
57370
58312
  [key: string]: string;
57371
58313
  };
57372
58314
  /**
57373
- * 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.
58315
+ * 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.
57374
58316
  */
57375
58317
  deadline_seconds?: number;
57376
58318
  } | {
@@ -57397,7 +58339,7 @@ export type AutomationRunsCreateData = {
57397
58339
  [key: string]: string;
57398
58340
  };
57399
58341
  /**
57400
- * 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.
58342
+ * 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.
57401
58343
  */
57402
58344
  deadline_seconds?: number;
57403
58345
  };
@@ -58917,6 +59859,247 @@ export type AutomationHooksReceiveResponses = {
58917
59859
  202: AutomationFiring;
58918
59860
  };
58919
59861
  export type AutomationHooksReceiveResponse = AutomationHooksReceiveResponses[keyof AutomationHooksReceiveResponses];
59862
+ export type AutomationHumanTasksListData = {
59863
+ body?: never;
59864
+ path?: never;
59865
+ query?: {
59866
+ /**
59867
+ * Page size, 1–100, default 50.
59868
+ */
59869
+ limit?: number;
59870
+ /**
59871
+ * The next_cursor of the previous page; omit for the first page.
59872
+ */
59873
+ cursor?: string;
59874
+ /**
59875
+ * Filter by status, comma-separated: open, completed, expired, cancelled. Defaults to open.
59876
+ */
59877
+ status?: Array<AutomationHumanTaskStatus>;
59878
+ /**
59879
+ * Only tasks opened by this run (run_).
59880
+ */
59881
+ run_id?: string;
59882
+ /**
59883
+ * assigned (default) lists only tasks assigned to the caller; all lists every task of the organization.
59884
+ */
59885
+ scope?: 'assigned' | 'all';
59886
+ };
59887
+ url: '/automation/v1/human-tasks';
59888
+ };
59889
+ export type AutomationHumanTasksListErrors = {
59890
+ /**
59891
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
59892
+ */
59893
+ 400: AutomationAutomationProblemDetails;
59894
+ /**
59895
+ * RFC 9457 automation problem. 429 includes Retry-After.
59896
+ */
59897
+ default: AutomationAutomationProblemDetails;
59898
+ };
59899
+ export type AutomationHumanTasksListError = AutomationHumanTasksListErrors[keyof AutomationHumanTasksListErrors];
59900
+ export type AutomationHumanTasksListResponses = {
59901
+ /**
59902
+ * Success
59903
+ */
59904
+ 200: {
59905
+ /**
59906
+ * Human tasks on this page, newest first.
59907
+ */
59908
+ data: Array<AutomationHumanTask>;
59909
+ /**
59910
+ * Cursor for the next page, passed back as cursor; null when there are no more.
59911
+ */
59912
+ next_cursor: string | null;
59913
+ };
59914
+ };
59915
+ export type AutomationHumanTasksListResponse = AutomationHumanTasksListResponses[keyof AutomationHumanTasksListResponses];
59916
+ export type AutomationHumanTasksGetData = {
59917
+ body?: never;
59918
+ path: {
59919
+ /**
59920
+ * Human task ID (htask_), from the list or the run's waits.
59921
+ */
59922
+ id: string;
59923
+ };
59924
+ query?: never;
59925
+ url: '/automation/v1/human-tasks/{id}';
59926
+ };
59927
+ export type AutomationHumanTasksGetErrors = {
59928
+ /**
59929
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
59930
+ */
59931
+ 400: AutomationAutomationProblemDetails;
59932
+ /**
59933
+ * 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.
59934
+ */
59935
+ 404: AutomationAutomationProblemDetails;
59936
+ /**
59937
+ * RFC 9457 automation problem. 429 includes Retry-After.
59938
+ */
59939
+ default: AutomationAutomationProblemDetails;
59940
+ };
59941
+ export type AutomationHumanTasksGetError = AutomationHumanTasksGetErrors[keyof AutomationHumanTasksGetErrors];
59942
+ export type AutomationHumanTasksGetResponses = {
59943
+ /**
59944
+ * Success
59945
+ */
59946
+ 200: AutomationHumanTask;
59947
+ };
59948
+ export type AutomationHumanTasksGetResponse = AutomationHumanTasksGetResponses[keyof AutomationHumanTasksGetResponses];
59949
+ export type AutomationHumanTasksRespondData = {
59950
+ body: AutomationHumanTaskRespondInput;
59951
+ headers?: {
59952
+ /**
59953
+ * 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.
59954
+ */
59955
+ 'Idempotency-Key'?: string;
59956
+ };
59957
+ path: {
59958
+ /**
59959
+ * Human task ID (htask_).
59960
+ */
59961
+ id: string;
59962
+ };
59963
+ query?: never;
59964
+ url: '/automation/v1/human-tasks/{id}/respond';
59965
+ };
59966
+ export type AutomationHumanTasksRespondErrors = {
59967
+ /**
59968
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
59969
+ * COMMENT_REQUIRED: The chosen action requires a comment (require_comment: true); retry with comment set.
59970
+ * INVALID_ACTION: action_id is not one of the task's actions; read the task's actions for the valid ids.
59971
+ * 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.
59972
+ */
59973
+ 400: AutomationAutomationProblemDetails;
59974
+ /**
59975
+ * 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.
59976
+ * 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.
59977
+ * 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.
59978
+ */
59979
+ 403: AutomationAutomationProblemDetails;
59980
+ /**
59981
+ * 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.
59982
+ */
59983
+ 404: AutomationAutomationProblemDetails;
59984
+ /**
59985
+ * 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.
59986
+ * ALREADY_RESPONDED: The caller already responded; each assignee responds once.
59987
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
59988
+ */
59989
+ 409: AutomationAutomationProblemDetails;
59990
+ /**
59991
+ * IDEMPOTENCY_KEY_MISMATCH: The idempotency key was already used for different request content.
59992
+ */
59993
+ 422: AutomationAutomationProblemDetails;
59994
+ /**
59995
+ * RFC 9457 automation problem. 429 includes Retry-After.
59996
+ */
59997
+ default: AutomationAutomationProblemDetails;
59998
+ };
59999
+ export type AutomationHumanTasksRespondError = AutomationHumanTasksRespondErrors[keyof AutomationHumanTasksRespondErrors];
60000
+ export type AutomationHumanTasksRespondResponses = {
60001
+ /**
60002
+ * Success
60003
+ */
60004
+ 200: AutomationHumanTask;
60005
+ };
60006
+ export type AutomationHumanTasksRespondResponse = AutomationHumanTasksRespondResponses[keyof AutomationHumanTasksRespondResponses];
60007
+ export type AutomationHumanTasksCancelData = {
60008
+ body?: AutomationHumanTaskCancelInput;
60009
+ headers?: {
60010
+ /**
60011
+ * 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.
60012
+ */
60013
+ 'Idempotency-Key'?: string;
60014
+ };
60015
+ path: {
60016
+ /**
60017
+ * Human task ID (htask_).
60018
+ */
60019
+ id: string;
60020
+ };
60021
+ query?: never;
60022
+ url: '/automation/v1/human-tasks/{id}/cancel';
60023
+ };
60024
+ export type AutomationHumanTasksCancelErrors = {
60025
+ /**
60026
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60027
+ */
60028
+ 400: AutomationAutomationProblemDetails;
60029
+ /**
60030
+ * 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.
60031
+ */
60032
+ 403: AutomationAutomationProblemDetails;
60033
+ /**
60034
+ * 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.
60035
+ */
60036
+ 404: AutomationAutomationProblemDetails;
60037
+ /**
60038
+ * 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.
60039
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
60040
+ */
60041
+ 409: AutomationAutomationProblemDetails;
60042
+ /**
60043
+ * IDEMPOTENCY_KEY_MISMATCH: The idempotency key was already used for different request content.
60044
+ */
60045
+ 422: AutomationAutomationProblemDetails;
60046
+ /**
60047
+ * RFC 9457 automation problem. 429 includes Retry-After.
60048
+ */
60049
+ default: AutomationAutomationProblemDetails;
60050
+ };
60051
+ export type AutomationHumanTasksCancelError = AutomationHumanTasksCancelErrors[keyof AutomationHumanTasksCancelErrors];
60052
+ export type AutomationHumanTasksCancelResponses = {
60053
+ /**
60054
+ * Success
60055
+ */
60056
+ 200: AutomationHumanTask;
60057
+ };
60058
+ export type AutomationHumanTasksCancelResponse = AutomationHumanTasksCancelResponses[keyof AutomationHumanTasksCancelResponses];
60059
+ export type AutomationHumanTasksDelegateData = {
60060
+ body: AutomationHumanTaskDelegateInput;
60061
+ path: {
60062
+ /**
60063
+ * Human task ID (htask_).
60064
+ */
60065
+ id: string;
60066
+ };
60067
+ query?: never;
60068
+ url: '/automation/v1/human-tasks/{id}/delegate';
60069
+ };
60070
+ export type AutomationHumanTasksDelegateErrors = {
60071
+ /**
60072
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60073
+ */
60074
+ 400: AutomationAutomationProblemDetails;
60075
+ /**
60076
+ * 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.
60077
+ * 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.
60078
+ */
60079
+ 403: AutomationAutomationProblemDetails;
60080
+ /**
60081
+ * 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.
60082
+ */
60083
+ 404: AutomationAutomationProblemDetails;
60084
+ /**
60085
+ * 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.
60086
+ * ALREADY_RESPONDED: The caller already responded; each assignee responds once.
60087
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
60088
+ */
60089
+ 409: AutomationAutomationProblemDetails;
60090
+ /**
60091
+ * RFC 9457 automation problem. 429 includes Retry-After.
60092
+ */
60093
+ default: AutomationAutomationProblemDetails;
60094
+ };
60095
+ export type AutomationHumanTasksDelegateError = AutomationHumanTasksDelegateErrors[keyof AutomationHumanTasksDelegateErrors];
60096
+ export type AutomationHumanTasksDelegateResponses = {
60097
+ /**
60098
+ * Success
60099
+ */
60100
+ 200: AutomationHumanTask;
60101
+ };
60102
+ export type AutomationHumanTasksDelegateResponse = AutomationHumanTasksDelegateResponses[keyof AutomationHumanTasksDelegateResponses];
58920
60103
  export type DatabaseListDatabasesData = {
58921
60104
  body?: never;
58922
60105
  path?: never;
@@ -61415,6 +62598,10 @@ export type MediaListLibrariesErrors = {
61415
62598
  * Request failed; see the error code reference.
61416
62599
  */
61417
62600
  400: MediaMediaError;
62601
+ /**
62602
+ * Request failed; see the error code reference.
62603
+ */
62604
+ 403: MediaMediaError;
61418
62605
  /**
61419
62606
  * Request failed; see the error code reference.
61420
62607
  */
@@ -61502,6 +62689,10 @@ export type MediaCreateLibraryErrors = {
61502
62689
  * Request failed; see the error code reference.
61503
62690
  */
61504
62691
  400: MediaMediaError;
62692
+ /**
62693
+ * Request failed; see the error code reference.
62694
+ */
62695
+ 403: MediaMediaError;
61505
62696
  /**
61506
62697
  * Request failed; see the error code reference.
61507
62698
  */
@@ -61559,6 +62750,10 @@ export type MediaDeleteLibraryErrors = {
61559
62750
  * Request failed; see the error code reference.
61560
62751
  */
61561
62752
  400: MediaMediaError;
62753
+ /**
62754
+ * Request failed; see the error code reference.
62755
+ */
62756
+ 403: MediaMediaError;
61562
62757
  /**
61563
62758
  * Request failed; see the error code reference.
61564
62759
  */
@@ -61616,6 +62811,10 @@ export type MediaGetLibraryErrors = {
61616
62811
  * Request failed; see the error code reference.
61617
62812
  */
61618
62813
  400: MediaMediaError;
62814
+ /**
62815
+ * Request failed; see the error code reference.
62816
+ */
62817
+ 403: MediaMediaError;
61619
62818
  /**
61620
62819
  * Request failed; see the error code reference.
61621
62820
  */
@@ -61708,6 +62907,10 @@ export type MediaUpdateLibraryErrors = {
61708
62907
  * Request failed; see the error code reference.
61709
62908
  */
61710
62909
  400: MediaMediaError;
62910
+ /**
62911
+ * Request failed; see the error code reference.
62912
+ */
62913
+ 403: MediaMediaError;
61711
62914
  /**
61712
62915
  * Request failed; see the error code reference.
61713
62916
  */
@@ -61765,6 +62968,10 @@ export type MediaRestoreLibraryErrors = {
61765
62968
  * Request failed; see the error code reference.
61766
62969
  */
61767
62970
  400: MediaMediaError;
62971
+ /**
62972
+ * Request failed; see the error code reference.
62973
+ */
62974
+ 403: MediaMediaError;
61768
62975
  /**
61769
62976
  * Request failed; see the error code reference.
61770
62977
  */
@@ -61822,6 +63029,10 @@ export type MediaPurgeLibraryErrors = {
61822
63029
  * Request failed; see the error code reference.
61823
63030
  */
61824
63031
  400: MediaMediaError;
63032
+ /**
63033
+ * Request failed; see the error code reference.
63034
+ */
63035
+ 403: MediaMediaError;
61825
63036
  /**
61826
63037
  * Request failed; see the error code reference.
61827
63038
  */
@@ -61896,6 +63107,10 @@ export type MediaListAssetsErrors = {
61896
63107
  * Request failed; see the error code reference.
61897
63108
  */
61898
63109
  400: MediaMediaError;
63110
+ /**
63111
+ * Request failed; see the error code reference.
63112
+ */
63113
+ 403: MediaMediaError;
61899
63114
  /**
61900
63115
  * Request failed; see the error code reference.
61901
63116
  */
@@ -61979,7 +63194,7 @@ export type MediaUploadAssetData = {
61979
63194
  */
61980
63195
  filename_override?: string;
61981
63196
  /**
61982
- * 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.
63197
+ * 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.
61983
63198
  */
61984
63199
  overwrite?: boolean;
61985
63200
  /**
@@ -62025,6 +63240,10 @@ export type MediaUploadAssetErrors = {
62025
63240
  * Request failed; see the error code reference.
62026
63241
  */
62027
63242
  400: MediaMediaError;
63243
+ /**
63244
+ * Request failed; see the error code reference.
63245
+ */
63246
+ 403: MediaMediaError;
62028
63247
  /**
62029
63248
  * Request failed; see the error code reference.
62030
63249
  */
@@ -62071,6 +63290,9 @@ export type MediaImportAssetData = {
62071
63290
  * Source and upload options for copying content into the library.
62072
63291
  */
62073
63292
  body: {
63293
+ /**
63294
+ * 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.
63295
+ */
62074
63296
  file_id: string;
62075
63297
  /**
62076
63298
  * Explicit delivery identifier. If omitted, a random value is generated unless use_filename is true.
@@ -62105,7 +63327,7 @@ export type MediaImportAssetData = {
62105
63327
  */
62106
63328
  filename_override?: string;
62107
63329
  /**
62108
- * 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.
63330
+ * 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.
62109
63331
  */
62110
63332
  overwrite?: boolean;
62111
63333
  /**
@@ -62141,6 +63363,10 @@ export type MediaImportAssetErrors = {
62141
63363
  * Request failed; see the error code reference.
62142
63364
  */
62143
63365
  400: MediaMediaError;
63366
+ /**
63367
+ * Request failed; see the error code reference.
63368
+ */
63369
+ 403: MediaMediaError;
62144
63370
  /**
62145
63371
  * Request failed; see the error code reference.
62146
63372
  */
@@ -62202,6 +63428,10 @@ export type MediaDeleteAssetErrors = {
62202
63428
  * Request failed; see the error code reference.
62203
63429
  */
62204
63430
  400: MediaMediaError;
63431
+ /**
63432
+ * Request failed; see the error code reference.
63433
+ */
63434
+ 403: MediaMediaError;
62205
63435
  /**
62206
63436
  * Request failed; see the error code reference.
62207
63437
  */
@@ -62263,6 +63493,10 @@ export type MediaGetAssetErrors = {
62263
63493
  * Request failed; see the error code reference.
62264
63494
  */
62265
63495
  400: MediaMediaError;
63496
+ /**
63497
+ * Request failed; see the error code reference.
63498
+ */
63499
+ 403: MediaMediaError;
62266
63500
  /**
62267
63501
  * Request failed; see the error code reference.
62268
63502
  */
@@ -62346,6 +63580,10 @@ export type MediaUpdateAssetErrors = {
62346
63580
  * Request failed; see the error code reference.
62347
63581
  */
62348
63582
  400: MediaMediaError;
63583
+ /**
63584
+ * Request failed; see the error code reference.
63585
+ */
63586
+ 403: MediaMediaError;
62349
63587
  /**
62350
63588
  * Request failed; see the error code reference.
62351
63589
  */
@@ -62415,6 +63653,10 @@ export type MediaReprocessAssetErrors = {
62415
63653
  * Request failed; see the error code reference.
62416
63654
  */
62417
63655
  400: MediaMediaError;
63656
+ /**
63657
+ * Request failed; see the error code reference.
63658
+ */
63659
+ 403: MediaMediaError;
62418
63660
  /**
62419
63661
  * Request failed; see the error code reference.
62420
63662
  */
@@ -62493,6 +63735,10 @@ export type MediaListUnderstandingsErrors = {
62493
63735
  * Request failed; see the error code reference.
62494
63736
  */
62495
63737
  400: MediaMediaError;
63738
+ /**
63739
+ * Request failed; see the error code reference.
63740
+ */
63741
+ 403: MediaMediaError;
62496
63742
  /**
62497
63743
  * Request failed; see the error code reference.
62498
63744
  */
@@ -62540,7 +63786,7 @@ export type MediaExpressionSearchData = {
62540
63786
  */
62541
63787
  body: {
62542
63788
  /**
62543
- * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets.
63789
+ * 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.
62544
63790
  */
62545
63791
  expression?: string;
62546
63792
  /**
@@ -62580,6 +63826,10 @@ export type MediaExpressionSearchErrors = {
62580
63826
  * Request failed; see the error code reference.
62581
63827
  */
62582
63828
  400: MediaMediaError;
63829
+ /**
63830
+ * Request failed; see the error code reference.
63831
+ */
63832
+ 403: MediaMediaError;
62583
63833
  /**
62584
63834
  * Request failed; see the error code reference.
62585
63835
  */
@@ -62663,6 +63913,10 @@ export type MediaVisualSearchErrors = {
62663
63913
  * Request failed; see the error code reference.
62664
63914
  */
62665
63915
  400: MediaMediaError;
63916
+ /**
63917
+ * Request failed; see the error code reference.
63918
+ */
63919
+ 403: MediaMediaError;
62666
63920
  /**
62667
63921
  * Request failed; see the error code reference.
62668
63922
  */
@@ -62740,6 +63994,10 @@ export type MediaSemanticSearchErrors = {
62740
63994
  * Request failed; see the error code reference.
62741
63995
  */
62742
63996
  400: MediaMediaError;
63997
+ /**
63998
+ * Request failed; see the error code reference.
63999
+ */
64000
+ 403: MediaMediaError;
62743
64001
  /**
62744
64002
  * Request failed; see the error code reference.
62745
64003
  */
@@ -62817,6 +64075,10 @@ export type MediaSearchErrors = {
62817
64075
  * Request failed; see the error code reference.
62818
64076
  */
62819
64077
  400: MediaMediaError;
64078
+ /**
64079
+ * Request failed; see the error code reference.
64080
+ */
64081
+ 403: MediaMediaError;
62820
64082
  /**
62821
64083
  * Request failed; see the error code reference.
62822
64084
  */
@@ -62879,6 +64141,10 @@ export type MediaListFoldersErrors = {
62879
64141
  * Request failed; see the error code reference.
62880
64142
  */
62881
64143
  400: MediaMediaError;
64144
+ /**
64145
+ * Request failed; see the error code reference.
64146
+ */
64147
+ 403: MediaMediaError;
62882
64148
  /**
62883
64149
  * Request failed; see the error code reference.
62884
64150
  */
@@ -62944,6 +64210,10 @@ export type MediaCreateBatchErrors = {
62944
64210
  * Request failed; see the error code reference.
62945
64211
  */
62946
64212
  400: MediaMediaError;
64213
+ /**
64214
+ * Request failed; see the error code reference.
64215
+ */
64216
+ 403: MediaMediaError;
62947
64217
  /**
62948
64218
  * Request failed; see the error code reference.
62949
64219
  */
@@ -63005,6 +64275,10 @@ export type MediaGetBatchErrors = {
63005
64275
  * Request failed; see the error code reference.
63006
64276
  */
63007
64277
  400: MediaMediaError;
64278
+ /**
64279
+ * Request failed; see the error code reference.
64280
+ */
64281
+ 403: MediaMediaError;
63008
64282
  /**
63009
64283
  * Request failed; see the error code reference.
63010
64284
  */
@@ -63070,6 +64344,10 @@ export type MediaBatchAssetsErrors = {
63070
64344
  * Request failed; see the error code reference.
63071
64345
  */
63072
64346
  400: MediaMediaError;
64347
+ /**
64348
+ * Request failed; see the error code reference.
64349
+ */
64350
+ 403: MediaMediaError;
63073
64351
  /**
63074
64352
  * Request failed; see the error code reference.
63075
64353
  */
@@ -63131,6 +64409,10 @@ export type MediaGetJobErrors = {
63131
64409
  * Request failed; see the error code reference.
63132
64410
  */
63133
64411
  400: MediaMediaError;
64412
+ /**
64413
+ * Request failed; see the error code reference.
64414
+ */
64415
+ 403: MediaMediaError;
63134
64416
  /**
63135
64417
  * Request failed; see the error code reference.
63136
64418
  */
@@ -63205,6 +64487,10 @@ export type MediaListEventsErrors = {
63205
64487
  * Request failed; see the error code reference.
63206
64488
  */
63207
64489
  400: MediaMediaError;
64490
+ /**
64491
+ * Request failed; see the error code reference.
64492
+ */
64493
+ 403: MediaMediaError;
63208
64494
  /**
63209
64495
  * Request failed; see the error code reference.
63210
64496
  */