@deepraxis/sdk 0.1.1-dev.d775f1e → 0.1.1-dev.ea219e1

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;
@@ -4864,7 +4870,11 @@ export type AgentManaged186 = {
4864
4870
  */
4865
4871
  session_thread_id?: null | string;
4866
4872
  };
4867
- export type AgentManaged187 = {
4873
+ export type AgentManaged187 = unknown & {
4874
+ /**
4875
+ * With result=allow and full_access_available=true, switch this session to full access before allowing this call. Other values or ineligible active requests return 400. Repeated or late replies are successful no-ops.
4876
+ */
4877
+ permission_mode?: 'yolo';
4868
4878
  /**
4869
4879
  * Unique identifier for this event.
4870
4880
  */
@@ -4885,10 +4895,9 @@ export type AgentManaged187 = {
4885
4895
  */
4886
4896
  type: 'user.tool_confirmation';
4887
4897
  /**
4888
- * Optional message providing context for a 'deny' decision. Only allowed when
4889
- * result is 'deny'.
4898
+ * 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.
4890
4899
  */
4891
- deny_message?: null | string;
4900
+ deny_message?: string;
4892
4901
  /**
4893
4902
  * A timestamp in RFC 3339 format
4894
4903
  */
@@ -5614,7 +5623,11 @@ export type AgentManaged250 = {
5614
5623
  */
5615
5624
  session_thread_id?: null | string;
5616
5625
  };
5617
- export type AgentManaged251 = {
5626
+ export type AgentManaged251 = unknown & {
5627
+ /**
5628
+ * With result=allow and full_access_available=true, switch this session to full access before allowing this call. Other values or ineligible active requests return 400. Repeated or late replies are successful no-ops.
5629
+ */
5630
+ permission_mode?: 'yolo';
5618
5631
  /**
5619
5632
  * UserToolConfirmationResult enum
5620
5633
  */
@@ -5631,10 +5644,39 @@ export type AgentManaged251 = {
5631
5644
  */
5632
5645
  type: 'user.tool_confirmation';
5633
5646
  /**
5634
- * Optional message providing context for a 'deny' decision. Only allowed when
5635
- * result is 'deny'.
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.
5648
+ */
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.
5636
5652
  */
5637
- deny_message?: null | string;
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 general or 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
+ }>;
5638
5680
  };
5639
5681
  export type AgentManaged252 = {
5640
5682
  /**
@@ -6003,6 +6045,40 @@ export type AgentSseEvent = ({
6003
6045
  */
6004
6046
  type: 'session.status_terminated';
6005
6047
  };
6048
+ } | {
6049
+ /**
6050
+ * Always `agent.thread_context_compacting`. SSE event name of this frame; its data is a agent.thread_context_compacting payload. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle.
6051
+ */
6052
+ event?: 'agent.thread_context_compacting';
6053
+ /**
6054
+ * Decoded JSON payload of this frame; its shape is selected by the event name.
6055
+ */
6056
+ data?: {
6057
+ /**
6058
+ * Text of the block.
6059
+ */
6060
+ id: string;
6061
+ /**
6062
+ * Always `agent.thread_context_compacting`. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle.
6063
+ */
6064
+ type: 'agent.thread_context_compacting';
6065
+ /**
6066
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
6067
+ */
6068
+ processed_at: string;
6069
+ /**
6070
+ * Text of the block.
6071
+ */
6072
+ session_thread_id?: string;
6073
+ /**
6074
+ * Identifier of the manual operation or automatic compaction record that has started.
6075
+ */
6076
+ compaction_id: string;
6077
+ /**
6078
+ * Whether a caller requested compaction, the session reached its context threshold, or the session compacted while idle.
6079
+ */
6080
+ trigger: 'manual' | 'auto' | 'idle';
6081
+ };
6006
6082
  } | {
6007
6083
  /**
6008
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.
@@ -6098,6 +6174,18 @@ export type AgentSseEvent = ({
6098
6174
  * Decoded JSON payload of this frame; its shape is selected by the event name.
6099
6175
  */
6100
6176
  data?: {
6177
+ /**
6178
+ * Monotone permission-mode version, incremented once per mode update.
6179
+ */
6180
+ permission_mode_version?: number;
6181
+ /**
6182
+ * The permission mode before this change, or null when none was selected.
6183
+ */
6184
+ previous_permission_mode?: string | null;
6185
+ /**
6186
+ * The new native session permission mode; null restores configured tool policies.
6187
+ */
6188
+ permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | 'guarded' | null;
6101
6189
  /**
6102
6190
  * Unique identifier for this event.
6103
6191
  */
@@ -6270,6 +6358,10 @@ export type AgentSseEvent = ({
6270
6358
  * Decoded JSON payload of this frame; its shape is selected by the event name.
6271
6359
  */
6272
6360
  data?: {
6361
+ /**
6362
+ * True only for a native primary-session approval in build, edit or guarded mode that is neither user-once nor an intrinsic always-ask or user-interaction gate. When true, allow with permission_mode=yolo to grant full access.
6363
+ */
6364
+ full_access_available?: boolean;
6273
6365
  /**
6274
6366
  * Unique identifier for this event.
6275
6367
  */
@@ -6312,6 +6404,44 @@ export type AgentSseEvent = ({
6312
6404
  * Run that produced this event; null when no run identity was recorded.
6313
6405
  */
6314
6406
  run_id: string | null;
6407
+ /**
6408
+ * When present, this dangerous shell call requires approval for this execution only; offer allow once or deny.
6409
+ */
6410
+ user_once?: true;
6411
+ /**
6412
+ * Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches.
6413
+ */
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 general or 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
+ }>;
6315
6445
  };
6316
6446
  } | {
6317
6447
  /**
@@ -6360,6 +6490,10 @@ export type AgentSseEvent = ({
6360
6490
  * Decoded JSON payload of this frame; its shape is selected by the event name.
6361
6491
  */
6362
6492
  data?: {
6493
+ /**
6494
+ * True only for a native primary-session approval in build, edit or guarded mode that is neither user-once nor an intrinsic always-ask or user-interaction gate. When true, allow with permission_mode=yolo to grant full access.
6495
+ */
6496
+ full_access_available?: boolean;
6363
6497
  /**
6364
6498
  * Unique identifier for this event.
6365
6499
  */
@@ -6438,6 +6572,44 @@ export type AgentSseEvent = ({
6438
6572
  * Praxis extension (MCP Apps, SEP-1865): present when `source` is `codemode`; the id of the codemode tool use whose program made this call. Absent otherwise.
6439
6573
  */
6440
6574
  parent_tool_use_id?: string;
6575
+ /**
6576
+ * When present, this dangerous shell call requires approval for this execution only; offer allow once or deny.
6577
+ */
6578
+ user_once?: true;
6579
+ /**
6580
+ * Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches.
6581
+ */
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 general or 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
+ }>;
6441
6613
  /**
6442
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.
6443
6615
  */
@@ -7306,7 +7478,7 @@ export type AgentSseEvent = ({
7306
7478
  /**
7307
7479
  * Server-Sent Events event name of this frame.
7308
7480
  */
7309
- 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';
7310
7482
  data: AgentSseData;
7311
7483
  };
7312
7484
  export type AgentManaged256 = {
@@ -8579,7 +8751,7 @@ export type AutomationAutomationProblemDetails = {
8579
8751
  title: string;
8580
8752
  status: number;
8581
8753
  detail: string;
8582
- 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';
8583
8755
  errors: Array<AutomationDiagnostic>;
8584
8756
  issues: Array<AutomationCompatIssue>;
8585
8757
  hint: string | null;
@@ -9451,7 +9623,7 @@ export type AutomationRun = {
9451
9623
  */
9452
9624
  attach: null | 'wait' | 'detach';
9453
9625
  /**
9454
- * 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.
9455
9627
  */
9456
9628
  deadline_at: string;
9457
9629
  /**
@@ -9645,7 +9817,7 @@ export type AutomationExpandedRun = {
9645
9817
  */
9646
9818
  attach: null | 'wait' | 'detach';
9647
9819
  /**
9648
- * 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.
9649
9821
  */
9650
9822
  deadline_at: string;
9651
9823
  /**
@@ -10596,6 +10768,183 @@ export type AutomationTriggerPreview = {
10596
10768
  */
10597
10769
  next_fire_times: Array<string>;
10598
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
+ };
10599
10948
  export type DatabaseCreateDatabaseInput = {
10600
10949
  /**
10601
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.
@@ -10760,7 +11109,7 @@ export type DatabaseNewField = {
10760
11109
  */
10761
11110
  unique?: boolean;
10762
11111
  /**
10763
- * 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.
10764
11113
  */
10765
11114
  indexed?: boolean;
10766
11115
  /**
@@ -10795,7 +11144,7 @@ export type DatabaseNewField = {
10795
11144
  */
10796
11145
  unique?: boolean;
10797
11146
  /**
10798
- * 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.
10799
11148
  */
10800
11149
  indexed?: boolean;
10801
11150
  /**
@@ -10835,7 +11184,7 @@ export type DatabaseNewField = {
10835
11184
  */
10836
11185
  unique?: boolean;
10837
11186
  /**
10838
- * 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.
10839
11188
  */
10840
11189
  indexed?: boolean;
10841
11190
  /**
@@ -11541,7 +11890,7 @@ export type MediaLibrary = {
11541
11890
  };
11542
11891
  export type MediaMediaError = {
11543
11892
  error: {
11544
- 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';
11545
11894
  message: string;
11546
11895
  details: string | null;
11547
11896
  };
@@ -11674,6 +12023,9 @@ export type MediaAsset = {
11674
12023
  * Source audio or video duration in seconds, when known.
11675
12024
  */
11676
12025
  duration?: number;
12026
+ /**
12027
+ * Number of pages recorded for the asset; omitted when no page count is stored.
12028
+ */
11677
12029
  pages?: number;
11678
12030
  /**
11679
12031
  * True for audio-only media, which uses resource_type video.
@@ -11714,6 +12066,9 @@ export type MediaAsset = {
11714
12066
  * False because this response represents stored source content.
11715
12067
  */
11716
12068
  placeholder: false;
12069
+ /**
12070
+ * True when overwrite is false and the public_id already exists; the existing resource is returned.
12071
+ */
11717
12072
  existing?: boolean;
11718
12073
  /**
11719
12074
  * Progress of understanding and embedding tasks for the asset.
@@ -13541,7 +13896,7 @@ export type OwnFileFileExpirationAfter = {
13541
13896
  */
13542
13897
  anchor: 'created_at';
13543
13898
  /**
13544
- * 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].
13545
13900
  */
13546
13901
  seconds: number;
13547
13902
  };
@@ -18799,7 +19154,7 @@ export type AgentManaged249 = {
18799
19154
  */
18800
19155
  input_tokens?: number;
18801
19156
  /**
18802
- * 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.
18803
19158
  */
18804
19159
  list_cost?: AgentManaged77;
18805
19160
  /**
@@ -19058,6 +19413,31 @@ export type AgentSseData = {
19058
19413
  * Always `session.status_terminated`. The session ended and accepts no more work.
19059
19414
  */
19060
19415
  type: 'session.status_terminated';
19416
+ } | {
19417
+ /**
19418
+ * Text of the block.
19419
+ */
19420
+ id: string;
19421
+ /**
19422
+ * Always `agent.thread_context_compacting`. Context compaction started; compaction_id identifies it and trigger is manual, auto or idle.
19423
+ */
19424
+ type: 'agent.thread_context_compacting';
19425
+ /**
19426
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
19427
+ */
19428
+ processed_at: string;
19429
+ /**
19430
+ * Text of the block.
19431
+ */
19432
+ session_thread_id?: string;
19433
+ /**
19434
+ * Identifier of the manual operation or automatic compaction record that has started.
19435
+ */
19436
+ compaction_id: string;
19437
+ /**
19438
+ * Whether a caller requested compaction, the session reached its context threshold, or the session compacted while idle.
19439
+ */
19440
+ trigger: 'manual' | 'auto' | 'idle';
19061
19441
  } | {
19062
19442
  /**
19063
19443
  * Unique identifier for this event.
@@ -19127,6 +19507,18 @@ export type AgentSseData = {
19127
19507
  */
19128
19508
  stopped: boolean;
19129
19509
  } | {
19510
+ /**
19511
+ * Monotone permission-mode version, incremented once per mode update.
19512
+ */
19513
+ permission_mode_version?: number;
19514
+ /**
19515
+ * The permission mode before this change, or null when none was selected.
19516
+ */
19517
+ previous_permission_mode?: string | null;
19518
+ /**
19519
+ * The new native session permission mode; null restores configured tool policies.
19520
+ */
19521
+ permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | 'guarded' | null;
19130
19522
  /**
19131
19523
  * Unique identifier for this event.
19132
19524
  */
@@ -19254,6 +19646,10 @@ export type AgentSseData = {
19254
19646
  */
19255
19647
  type: 'span.model_request_end';
19256
19648
  } | {
19649
+ /**
19650
+ * True only for a native primary-session approval in build, edit or guarded mode that is neither user-once nor an intrinsic always-ask or user-interaction gate. When true, allow with permission_mode=yolo to grant full access.
19651
+ */
19652
+ full_access_available?: boolean;
19257
19653
  /**
19258
19654
  * Unique identifier for this event.
19259
19655
  */
@@ -19296,6 +19692,44 @@ export type AgentSseData = {
19296
19692
  * Run that produced this event; null when no run identity was recorded.
19297
19693
  */
19298
19694
  run_id: string | null;
19695
+ /**
19696
+ * When present, this dangerous shell call requires approval for this execution only; offer allow once or deny.
19697
+ */
19698
+ user_once?: true;
19699
+ /**
19700
+ * Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches.
19701
+ */
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 general or 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
+ }>;
19299
19733
  } | {
19300
19734
  /**
19301
19735
  * Unique identifier for this event.
@@ -19326,6 +19760,10 @@ export type AgentSseData = {
19326
19760
  */
19327
19761
  run_id: string | null;
19328
19762
  } | {
19763
+ /**
19764
+ * True only for a native primary-session approval in build, edit or guarded mode that is neither user-once nor an intrinsic always-ask or user-interaction gate. When true, allow with permission_mode=yolo to grant full access.
19765
+ */
19766
+ full_access_available?: boolean;
19329
19767
  /**
19330
19768
  * Unique identifier for this event.
19331
19769
  */
@@ -19404,6 +19842,44 @@ export type AgentSseData = {
19404
19842
  * Praxis extension (MCP Apps, SEP-1865): present when `source` is `codemode`; the id of the codemode tool use whose program made this call. Absent otherwise.
19405
19843
  */
19406
19844
  parent_tool_use_id?: string;
19845
+ /**
19846
+ * When present, this dangerous shell call requires approval for this execution only; offer allow once or deny.
19847
+ */
19848
+ user_once?: true;
19849
+ /**
19850
+ * Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches.
19851
+ */
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 general or 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
+ }>;
19407
19883
  /**
19408
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.
19409
19885
  */
@@ -21083,6 +21559,72 @@ export type AutomationAttributedUsage = {
21083
21559
  */
21084
21560
  pending_events: number;
21085
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
+ };
21086
21628
  export type DatabaseField = {
21087
21629
  /**
21088
21630
  * Field identifier, prefixed fld_. Stable across renames; accepted wherever a field path parameter takes an id or name.
@@ -21595,6 +22137,9 @@ export type MediaCloudinaryResource = {
21595
22137
  * Source audio or video duration in seconds, when known.
21596
22138
  */
21597
22139
  duration?: number;
22140
+ /**
22141
+ * Number of pages recorded for the asset; omitted when no page count is stored.
22142
+ */
21598
22143
  pages?: number;
21599
22144
  /**
21600
22145
  * True for audio-only media, which uses resource_type video.
@@ -21732,6 +22277,9 @@ export type MediaUnderstanding = {
21732
22277
  * Producer model identifier; a failure may use the configured model when no model response is available.
21733
22278
  */
21734
22279
  producer: string;
22280
+ /**
22281
+ * Version of the producer that generated this understanding result.
22282
+ */
21735
22283
  producer_version: string;
21736
22284
  /**
21737
22285
  * Source-media time range for a frame or transcript segment; null for results without a segment.
@@ -21749,6 +22297,9 @@ export type MediaUnderstanding = {
21749
22297
  * Structured producer output, such as recognized labels or frame details; null when absent.
21750
22298
  */
21751
22299
  data: unknown | null;
22300
+ /**
22301
+ * Confidence value recorded by the producer; null when no confidence value is recorded.
22302
+ */
21752
22303
  confidence: number | null;
21753
22304
  /**
21754
22305
  * Failure code and message, or null for a successful result.
@@ -21832,6 +22383,9 @@ export type MediaSearchAsset = {
21832
22383
  * Source audio or video duration in seconds, when known.
21833
22384
  */
21834
22385
  duration?: number;
22386
+ /**
22387
+ * Number of pages recorded for the asset; omitted when no page count is stored.
22388
+ */
21835
22389
  pages?: number;
21836
22390
  /**
21837
22391
  * True for audio-only media, which uses resource_type video.
@@ -21872,6 +22426,9 @@ export type MediaSearchAsset = {
21872
22426
  * False because this response represents stored source content.
21873
22427
  */
21874
22428
  placeholder: false;
22429
+ /**
22430
+ * True when overwrite is false and the public_id already exists; the existing resource is returned.
22431
+ */
21875
22432
  existing?: boolean;
21876
22433
  /**
21877
22434
  * Progress of understanding and embedding tasks for the asset.
@@ -21916,7 +22473,7 @@ export type MediaSemanticHit = {
21916
22473
  */
21917
22474
  asset: MediaAsset;
21918
22475
  /**
21919
- * 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.
21920
22477
  */
21921
22478
  score: number;
21922
22479
  /**
@@ -21932,7 +22489,7 @@ export type MediaSemanticHit = {
21932
22489
  * Identifier returned when a batch job is created.
21933
22490
  */
21934
22491
  export type MediaJobId = string;
21935
- 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';
21936
22493
  /**
21937
22494
  * A recorded library event with a monotonically increasing sequence within that library.
21938
22495
  */
@@ -25946,6 +26503,20 @@ export type AgentManaged141 = {
25946
26503
  */
25947
26504
  type?: 'packages';
25948
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
+ };
25949
26520
  export type KnowledgeStaticChunking = {
25950
26521
  /**
25951
26522
  * static selects explicit chunk-size and overlap settings.
@@ -26002,6 +26573,9 @@ export type KnowledgeSearchExplain = {
26002
26573
  */
26003
26574
  matched_terms: Array<string>;
26004
26575
  };
26576
+ /**
26577
+ * Aggregate processing state across the asset processing tasks.
26578
+ */
26005
26579
  export type MediaProcessingState = 'pending' | 'processing' | 'ready' | 'partial' | 'failed';
26006
26580
  /**
26007
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.
@@ -27454,7 +28028,7 @@ export type ApplyAgentVersionResponses = {
27454
28028
  */
27455
28029
  note: string | null;
27456
28030
  /**
27457
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
28031
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
27458
28032
  */
27459
28033
  bindings: Array<{
27460
28034
  /**
@@ -27496,9 +28070,9 @@ export type ApplyAgentVersionResponses = {
27496
28070
  enabled?: boolean;
27497
28071
  }>;
27498
28072
  /**
27499
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
28073
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
27500
28074
  */
27501
- kind: 'personal' | 'service';
28075
+ kind: 'general' | 'personal' | 'service';
27502
28076
  /**
27503
28077
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
27504
28078
  */
@@ -27849,6 +28423,10 @@ export type ApplyAgentVersionResponses = {
27849
28423
  */
27850
28424
  hooks?: Array<string>;
27851
28425
  };
28426
+ /**
28427
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
28428
+ */
28429
+ idleCompaction?: boolean;
27852
28430
  } | null;
27853
28431
  /**
27854
28432
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -28076,7 +28654,7 @@ export type UnarchiveAgentResponses = {
28076
28654
  };
28077
28655
  };
28078
28656
  /**
28079
- * Resolved coordinator topology with a concrete agent roster.
28657
+ * 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.
28080
28658
  */
28081
28659
  multiagent: null | {
28082
28660
  /**
@@ -28600,12 +29178,15 @@ export type UnarchiveAgentResponses = {
28600
29178
  */
28601
29179
  updated_at: string;
28602
29180
  /**
28603
- * The agent's current version. Starts at 1 and increments when the agent is
28604
- * modified.
29181
+ * Version of this returned configuration. Default retrieve returns the effective version; an explicit version query or a version-history item returns that saved version.
28605
29182
  */
28606
29183
  version: number;
28607
29184
  /**
28608
- * 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.
29185
+ * Newest saved version number, including an unapplied save. Returned by default retrieve, update and apply; use it for optimistic concurrency when updating.
29186
+ */
29187
+ latest_version?: number;
29188
+ /**
29189
+ * 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.
28609
29190
  */
28610
29191
  active_version: number;
28611
29192
  /**
@@ -28639,7 +29220,7 @@ export type UnarchiveAgentResponses = {
28639
29220
  */
28640
29221
  note: string | null;
28641
29222
  /**
28642
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
29223
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
28643
29224
  */
28644
29225
  bindings: Array<{
28645
29226
  /**
@@ -28681,9 +29262,9 @@ export type UnarchiveAgentResponses = {
28681
29262
  enabled?: boolean;
28682
29263
  }>;
28683
29264
  /**
28684
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
29265
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
28685
29266
  */
28686
- kind: 'personal' | 'service';
29267
+ kind: 'general' | 'personal' | 'service';
28687
29268
  /**
28688
29269
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
28689
29270
  */
@@ -29034,6 +29615,10 @@ export type UnarchiveAgentResponses = {
29034
29615
  */
29035
29616
  hooks?: Array<string>;
29036
29617
  };
29618
+ /**
29619
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
29620
+ */
29621
+ idleCompaction?: boolean;
29037
29622
  } | null;
29038
29623
  /**
29039
29624
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -35432,7 +36017,7 @@ export type ForkSessionResponses = {
35432
36017
  */
35433
36018
  input_tokens?: number;
35434
36019
  /**
35435
- * A monetary amount in a specific currency.
36020
+ * 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.
35436
36021
  */
35437
36022
  list_cost?: null | {
35438
36023
  /**
@@ -35466,18 +36051,15 @@ export type ForkSessionResponses = {
35466
36051
  web_search_requests?: number;
35467
36052
  };
35468
36053
  /**
35469
- * 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.
36054
+ * 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.
35470
36055
  */
35471
- runtime_cost?: {
35472
- /**
35473
- * Runtime cost in US dollars, decimal string with exactly 6 decimals.
35474
- */
35475
- amount: string;
35476
- /**
35477
- * Always USD.
35478
- */
35479
- currency: 'USD';
36056
+ cost_by_product?: {
36057
+ [key: string]: string;
35480
36058
  };
36059
+ /**
36060
+ * 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.
36061
+ */
36062
+ subagent_cost_micro_usd?: number;
35481
36063
  };
35482
36064
  /**
35483
36065
  * Vault IDs attached to the session at creation. Empty when no vaults were
@@ -35879,11 +36461,11 @@ export type CompactSessionResponses = {
35879
36461
  */
35880
36462
  id: string;
35881
36463
  /**
35882
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36464
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
35883
36465
  */
35884
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36466
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
35885
36467
  /**
35886
- * Why the compaction was skipped or failed; absent otherwise.
36468
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
35887
36469
  */
35888
36470
  reason?: string;
35889
36471
  };
@@ -35900,11 +36482,11 @@ export type CompactSessionResponses = {
35900
36482
  */
35901
36483
  id: string;
35902
36484
  /**
35903
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36485
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
35904
36486
  */
35905
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36487
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
35906
36488
  /**
35907
- * Why the compaction was skipped or failed; absent otherwise.
36489
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
35908
36490
  */
35909
36491
  reason?: string;
35910
36492
  };
@@ -35962,11 +36544,11 @@ export type GetSessionCompactionResponses = {
35962
36544
  */
35963
36545
  id: string;
35964
36546
  /**
35965
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36547
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
35966
36548
  */
35967
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36549
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
35968
36550
  /**
35969
- * Why the compaction was skipped or failed; absent otherwise.
36551
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
35970
36552
  */
35971
36553
  reason?: string;
35972
36554
  };
@@ -36011,6 +36593,27 @@ export type ListSessionCompactionsResponses = {
36011
36593
  * Compaction history
36012
36594
  */
36013
36595
  200: {
36596
+ /**
36597
+ * Current compaction, including queued manual requests; null when none is in progress. Manual takes precedence over automatic work.
36598
+ */
36599
+ active: {
36600
+ /**
36601
+ * Always `session_compaction`. Result of a compaction request.
36602
+ */
36603
+ type: 'session_compaction';
36604
+ /**
36605
+ * Identifier of the active manual operation or automatic compaction record.
36606
+ */
36607
+ id: string;
36608
+ /**
36609
+ * Whether compaction is waiting to start or generating its summary.
36610
+ */
36611
+ status: 'queued' | 'running';
36612
+ /**
36613
+ * Whether a caller requested compaction, the context reached its threshold, or the session compacted while idle.
36614
+ */
36615
+ trigger: 'manual' | 'auto' | 'idle';
36616
+ } | null;
36014
36617
  /**
36015
36618
  * Items of this page, in the order requested by the call.
36016
36619
  */
@@ -36030,7 +36633,7 @@ export type ListSessionCompactionsResponses = {
36030
36633
  /**
36031
36634
  * What started the compaction.
36032
36635
  */
36033
- trigger: 'auto' | 'manual' | 'model_downshift';
36636
+ trigger: 'auto' | 'manual' | 'model_downshift' | 'idle';
36034
36637
  /**
36035
36638
  * Final outcome of the compaction.
36036
36639
  */
@@ -36193,7 +36796,7 @@ export type BrowserListSessionsData = {
36193
36796
  };
36194
36797
  export type BrowserListSessionsErrors = {
36195
36798
  /**
36196
- * INVALID_PARAMS
36799
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36197
36800
  */
36198
36801
  400: BrowserError;
36199
36802
  /**
@@ -36201,11 +36804,15 @@ export type BrowserListSessionsErrors = {
36201
36804
  */
36202
36805
  401: BrowserError;
36203
36806
  /**
36204
- * INSUFFICIENT_BALANCE
36807
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36205
36808
  */
36206
36809
  402: BrowserError;
36207
36810
  /**
36208
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
36811
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
36812
+ */
36813
+ 403: BrowserError;
36814
+ /**
36815
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36209
36816
  */
36210
36817
  404: BrowserError;
36211
36818
  /**
@@ -36217,13 +36824,21 @@ export type BrowserListSessionsErrors = {
36217
36824
  */
36218
36825
  429: BrowserError;
36219
36826
  /**
36220
- * PROVIDER_UNSUPPORTED
36827
+ * INTERNAL
36828
+ */
36829
+ 500: BrowserError;
36830
+ /**
36831
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36221
36832
  */
36222
36833
  501: BrowserError;
36223
36834
  /**
36224
36835
  * PROVIDER_FAILED
36225
36836
  */
36226
36837
  502: BrowserError;
36838
+ /**
36839
+ * SERVICE_UNAVAILABLE
36840
+ */
36841
+ 503: BrowserError;
36227
36842
  };
36228
36843
  export type BrowserListSessionsError = BrowserListSessionsErrors[keyof BrowserListSessionsErrors];
36229
36844
  export type BrowserListSessionsResponses = {
@@ -36250,7 +36865,7 @@ export type BrowserCreateSessionData = {
36250
36865
  };
36251
36866
  export type BrowserCreateSessionErrors = {
36252
36867
  /**
36253
- * INVALID_PARAMS
36868
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36254
36869
  */
36255
36870
  400: BrowserError;
36256
36871
  /**
@@ -36258,11 +36873,15 @@ export type BrowserCreateSessionErrors = {
36258
36873
  */
36259
36874
  401: BrowserError;
36260
36875
  /**
36261
- * INSUFFICIENT_BALANCE
36876
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36262
36877
  */
36263
36878
  402: BrowserError;
36264
36879
  /**
36265
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
36880
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
36881
+ */
36882
+ 403: BrowserError;
36883
+ /**
36884
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36266
36885
  */
36267
36886
  404: BrowserError;
36268
36887
  /**
@@ -36274,13 +36893,21 @@ export type BrowserCreateSessionErrors = {
36274
36893
  */
36275
36894
  429: BrowserError;
36276
36895
  /**
36277
- * PROVIDER_UNSUPPORTED
36896
+ * INTERNAL
36897
+ */
36898
+ 500: BrowserError;
36899
+ /**
36900
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36278
36901
  */
36279
36902
  501: BrowserError;
36280
36903
  /**
36281
36904
  * PROVIDER_FAILED
36282
36905
  */
36283
36906
  502: BrowserError;
36907
+ /**
36908
+ * SERVICE_UNAVAILABLE
36909
+ */
36910
+ 503: BrowserError;
36284
36911
  };
36285
36912
  export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
36286
36913
  export type BrowserCreateSessionResponses = {
@@ -36308,7 +36935,7 @@ export type BrowserGetSessionData = {
36308
36935
  };
36309
36936
  export type BrowserGetSessionErrors = {
36310
36937
  /**
36311
- * INVALID_PARAMS
36938
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36312
36939
  */
36313
36940
  400: BrowserError;
36314
36941
  /**
@@ -36316,11 +36943,15 @@ export type BrowserGetSessionErrors = {
36316
36943
  */
36317
36944
  401: BrowserError;
36318
36945
  /**
36319
- * INSUFFICIENT_BALANCE
36946
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36320
36947
  */
36321
36948
  402: BrowserError;
36322
36949
  /**
36323
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
36950
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
36951
+ */
36952
+ 403: BrowserError;
36953
+ /**
36954
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36324
36955
  */
36325
36956
  404: BrowserError;
36326
36957
  /**
@@ -36332,13 +36963,21 @@ export type BrowserGetSessionErrors = {
36332
36963
  */
36333
36964
  429: BrowserError;
36334
36965
  /**
36335
- * PROVIDER_UNSUPPORTED
36966
+ * INTERNAL
36967
+ */
36968
+ 500: BrowserError;
36969
+ /**
36970
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36336
36971
  */
36337
36972
  501: BrowserError;
36338
36973
  /**
36339
36974
  * PROVIDER_FAILED
36340
36975
  */
36341
36976
  502: BrowserError;
36977
+ /**
36978
+ * SERVICE_UNAVAILABLE
36979
+ */
36980
+ 503: BrowserError;
36342
36981
  };
36343
36982
  export type BrowserGetSessionError = BrowserGetSessionErrors[keyof BrowserGetSessionErrors];
36344
36983
  export type BrowserGetSessionResponses = {
@@ -36366,7 +37005,7 @@ export type BrowserCloseSessionData = {
36366
37005
  };
36367
37006
  export type BrowserCloseSessionErrors = {
36368
37007
  /**
36369
- * INVALID_PARAMS
37008
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36370
37009
  */
36371
37010
  400: BrowserError;
36372
37011
  /**
@@ -36374,11 +37013,15 @@ export type BrowserCloseSessionErrors = {
36374
37013
  */
36375
37014
  401: BrowserError;
36376
37015
  /**
36377
- * INSUFFICIENT_BALANCE
37016
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36378
37017
  */
36379
37018
  402: BrowserError;
36380
37019
  /**
36381
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37020
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37021
+ */
37022
+ 403: BrowserError;
37023
+ /**
37024
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36382
37025
  */
36383
37026
  404: BrowserError;
36384
37027
  /**
@@ -36390,13 +37033,21 @@ export type BrowserCloseSessionErrors = {
36390
37033
  */
36391
37034
  429: BrowserError;
36392
37035
  /**
36393
- * PROVIDER_UNSUPPORTED
37036
+ * INTERNAL
37037
+ */
37038
+ 500: BrowserError;
37039
+ /**
37040
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36394
37041
  */
36395
37042
  501: BrowserError;
36396
37043
  /**
36397
37044
  * PROVIDER_FAILED
36398
37045
  */
36399
37046
  502: BrowserError;
37047
+ /**
37048
+ * SERVICE_UNAVAILABLE
37049
+ */
37050
+ 503: BrowserError;
36400
37051
  };
36401
37052
  export type BrowserCloseSessionError = BrowserCloseSessionErrors[keyof BrowserCloseSessionErrors];
36402
37053
  export type BrowserCloseSessionResponses = {
@@ -36419,7 +37070,7 @@ export type BrowserGetDebugData = {
36419
37070
  };
36420
37071
  export type BrowserGetDebugErrors = {
36421
37072
  /**
36422
- * INVALID_PARAMS
37073
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36423
37074
  */
36424
37075
  400: BrowserError;
36425
37076
  /**
@@ -36427,11 +37078,15 @@ export type BrowserGetDebugErrors = {
36427
37078
  */
36428
37079
  401: BrowserError;
36429
37080
  /**
36430
- * INSUFFICIENT_BALANCE
37081
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36431
37082
  */
36432
37083
  402: BrowserError;
36433
37084
  /**
36434
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37085
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37086
+ */
37087
+ 403: BrowserError;
37088
+ /**
37089
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36435
37090
  */
36436
37091
  404: BrowserError;
36437
37092
  /**
@@ -36443,13 +37098,21 @@ export type BrowserGetDebugErrors = {
36443
37098
  */
36444
37099
  429: BrowserError;
36445
37100
  /**
36446
- * PROVIDER_UNSUPPORTED
37101
+ * INTERNAL
37102
+ */
37103
+ 500: BrowserError;
37104
+ /**
37105
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36447
37106
  */
36448
37107
  501: BrowserError;
36449
37108
  /**
36450
37109
  * PROVIDER_FAILED
36451
37110
  */
36452
37111
  502: BrowserError;
37112
+ /**
37113
+ * SERVICE_UNAVAILABLE
37114
+ */
37115
+ 503: BrowserError;
36453
37116
  };
36454
37117
  export type BrowserGetDebugError = BrowserGetDebugErrors[keyof BrowserGetDebugErrors];
36455
37118
  export type BrowserGetDebugResponses = {
@@ -36485,7 +37148,7 @@ export type BrowserListEventsData = {
36485
37148
  };
36486
37149
  export type BrowserListEventsErrors = {
36487
37150
  /**
36488
- * INVALID_PARAMS
37151
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36489
37152
  */
36490
37153
  400: BrowserError;
36491
37154
  /**
@@ -36493,11 +37156,15 @@ export type BrowserListEventsErrors = {
36493
37156
  */
36494
37157
  401: BrowserError;
36495
37158
  /**
36496
- * INSUFFICIENT_BALANCE
37159
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36497
37160
  */
36498
37161
  402: BrowserError;
36499
37162
  /**
36500
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37163
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37164
+ */
37165
+ 403: BrowserError;
37166
+ /**
37167
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36501
37168
  */
36502
37169
  404: BrowserError;
36503
37170
  /**
@@ -36509,13 +37176,21 @@ export type BrowserListEventsErrors = {
36509
37176
  */
36510
37177
  429: BrowserError;
36511
37178
  /**
36512
- * PROVIDER_UNSUPPORTED
37179
+ * INTERNAL
37180
+ */
37181
+ 500: BrowserError;
37182
+ /**
37183
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36513
37184
  */
36514
37185
  501: BrowserError;
36515
37186
  /**
36516
37187
  * PROVIDER_FAILED
36517
37188
  */
36518
37189
  502: BrowserError;
37190
+ /**
37191
+ * SERVICE_UNAVAILABLE
37192
+ */
37193
+ 503: BrowserError;
36519
37194
  };
36520
37195
  export type BrowserListEventsError = BrowserListEventsErrors[keyof BrowserListEventsErrors];
36521
37196
  export type BrowserListEventsResponses = {
@@ -36556,7 +37231,7 @@ export type BrowserRequestHandoffData = {
36556
37231
  };
36557
37232
  export type BrowserRequestHandoffErrors = {
36558
37233
  /**
36559
- * INVALID_PARAMS
37234
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36560
37235
  */
36561
37236
  400: BrowserError;
36562
37237
  /**
@@ -36564,11 +37239,15 @@ export type BrowserRequestHandoffErrors = {
36564
37239
  */
36565
37240
  401: BrowserError;
36566
37241
  /**
36567
- * INSUFFICIENT_BALANCE
37242
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36568
37243
  */
36569
37244
  402: BrowserError;
36570
37245
  /**
36571
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37246
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37247
+ */
37248
+ 403: BrowserError;
37249
+ /**
37250
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36572
37251
  */
36573
37252
  404: BrowserError;
36574
37253
  /**
@@ -36580,20 +37259,28 @@ export type BrowserRequestHandoffErrors = {
36580
37259
  */
36581
37260
  429: BrowserError;
36582
37261
  /**
36583
- * PROVIDER_UNSUPPORTED
37262
+ * INTERNAL
37263
+ */
37264
+ 500: BrowserError;
37265
+ /**
37266
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36584
37267
  */
36585
37268
  501: BrowserError;
36586
37269
  /**
36587
37270
  * PROVIDER_FAILED
36588
37271
  */
36589
37272
  502: BrowserError;
37273
+ /**
37274
+ * SERVICE_UNAVAILABLE
37275
+ */
37276
+ 503: BrowserError;
36590
37277
  };
36591
37278
  export type BrowserRequestHandoffError = BrowserRequestHandoffErrors[keyof BrowserRequestHandoffErrors];
36592
37279
  export type BrowserRequestHandoffResponses = {
36593
37280
  /**
36594
37281
  * 请求成功。
36595
37282
  */
36596
- 200: BrowserEventRecord;
37283
+ 201: BrowserEventRecord;
36597
37284
  };
36598
37285
  export type BrowserRequestHandoffResponse = BrowserRequestHandoffResponses[keyof BrowserRequestHandoffResponses];
36599
37286
  export type BrowserCompleteHandoffData = {
@@ -36609,7 +37296,7 @@ export type BrowserCompleteHandoffData = {
36609
37296
  };
36610
37297
  export type BrowserCompleteHandoffErrors = {
36611
37298
  /**
36612
- * INVALID_PARAMS
37299
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36613
37300
  */
36614
37301
  400: BrowserError;
36615
37302
  /**
@@ -36617,11 +37304,15 @@ export type BrowserCompleteHandoffErrors = {
36617
37304
  */
36618
37305
  401: BrowserError;
36619
37306
  /**
36620
- * INSUFFICIENT_BALANCE
37307
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36621
37308
  */
36622
37309
  402: BrowserError;
36623
37310
  /**
36624
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37311
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37312
+ */
37313
+ 403: BrowserError;
37314
+ /**
37315
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36625
37316
  */
36626
37317
  404: BrowserError;
36627
37318
  /**
@@ -36633,13 +37324,21 @@ export type BrowserCompleteHandoffErrors = {
36633
37324
  */
36634
37325
  429: BrowserError;
36635
37326
  /**
36636
- * PROVIDER_UNSUPPORTED
37327
+ * INTERNAL
37328
+ */
37329
+ 500: BrowserError;
37330
+ /**
37331
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36637
37332
  */
36638
37333
  501: BrowserError;
36639
37334
  /**
36640
37335
  * PROVIDER_FAILED
36641
37336
  */
36642
37337
  502: BrowserError;
37338
+ /**
37339
+ * SERVICE_UNAVAILABLE
37340
+ */
37341
+ 503: BrowserError;
36643
37342
  };
36644
37343
  export type BrowserCompleteHandoffError = BrowserCompleteHandoffErrors[keyof BrowserCompleteHandoffErrors];
36645
37344
  export type BrowserCompleteHandoffResponses = {
@@ -36667,7 +37366,7 @@ export type BrowserViewerHeartbeatData = {
36667
37366
  };
36668
37367
  export type BrowserViewerHeartbeatErrors = {
36669
37368
  /**
36670
- * INVALID_PARAMS
37369
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36671
37370
  */
36672
37371
  400: BrowserError;
36673
37372
  /**
@@ -36675,11 +37374,15 @@ export type BrowserViewerHeartbeatErrors = {
36675
37374
  */
36676
37375
  401: BrowserError;
36677
37376
  /**
36678
- * INSUFFICIENT_BALANCE
37377
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36679
37378
  */
36680
37379
  402: BrowserError;
36681
37380
  /**
36682
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37381
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37382
+ */
37383
+ 403: BrowserError;
37384
+ /**
37385
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36683
37386
  */
36684
37387
  404: BrowserError;
36685
37388
  /**
@@ -36691,13 +37394,21 @@ export type BrowserViewerHeartbeatErrors = {
36691
37394
  */
36692
37395
  429: BrowserError;
36693
37396
  /**
36694
- * PROVIDER_UNSUPPORTED
37397
+ * INTERNAL
37398
+ */
37399
+ 500: BrowserError;
37400
+ /**
37401
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36695
37402
  */
36696
37403
  501: BrowserError;
36697
37404
  /**
36698
37405
  * PROVIDER_FAILED
36699
37406
  */
36700
37407
  502: BrowserError;
37408
+ /**
37409
+ * SERVICE_UNAVAILABLE
37410
+ */
37411
+ 503: BrowserError;
36701
37412
  };
36702
37413
  export type BrowserViewerHeartbeatError = BrowserViewerHeartbeatErrors[keyof BrowserViewerHeartbeatErrors];
36703
37414
  export type BrowserViewerHeartbeatResponses = {
@@ -36729,7 +37440,7 @@ export type BrowserListContextsData = {
36729
37440
  };
36730
37441
  export type BrowserListContextsErrors = {
36731
37442
  /**
36732
- * INVALID_PARAMS
37443
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36733
37444
  */
36734
37445
  400: BrowserError;
36735
37446
  /**
@@ -36737,11 +37448,15 @@ export type BrowserListContextsErrors = {
36737
37448
  */
36738
37449
  401: BrowserError;
36739
37450
  /**
36740
- * INSUFFICIENT_BALANCE
37451
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36741
37452
  */
36742
37453
  402: BrowserError;
36743
37454
  /**
36744
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37455
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37456
+ */
37457
+ 403: BrowserError;
37458
+ /**
37459
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36745
37460
  */
36746
37461
  404: BrowserError;
36747
37462
  /**
@@ -36753,13 +37468,21 @@ export type BrowserListContextsErrors = {
36753
37468
  */
36754
37469
  429: BrowserError;
36755
37470
  /**
36756
- * PROVIDER_UNSUPPORTED
37471
+ * INTERNAL
37472
+ */
37473
+ 500: BrowserError;
37474
+ /**
37475
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36757
37476
  */
36758
37477
  501: BrowserError;
36759
37478
  /**
36760
37479
  * PROVIDER_FAILED
36761
37480
  */
36762
37481
  502: BrowserError;
37482
+ /**
37483
+ * SERVICE_UNAVAILABLE
37484
+ */
37485
+ 503: BrowserError;
36763
37486
  };
36764
37487
  export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
36765
37488
  export type BrowserListContextsResponses = {
@@ -36801,7 +37524,7 @@ export type BrowserCreateContextData = {
36801
37524
  };
36802
37525
  export type BrowserCreateContextErrors = {
36803
37526
  /**
36804
- * INVALID_PARAMS
37527
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36805
37528
  */
36806
37529
  400: BrowserError;
36807
37530
  /**
@@ -36809,11 +37532,15 @@ export type BrowserCreateContextErrors = {
36809
37532
  */
36810
37533
  401: BrowserError;
36811
37534
  /**
36812
- * INSUFFICIENT_BALANCE
37535
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36813
37536
  */
36814
37537
  402: BrowserError;
36815
37538
  /**
36816
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37539
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37540
+ */
37541
+ 403: BrowserError;
37542
+ /**
37543
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36817
37544
  */
36818
37545
  404: BrowserError;
36819
37546
  /**
@@ -36825,13 +37552,21 @@ export type BrowserCreateContextErrors = {
36825
37552
  */
36826
37553
  429: BrowserError;
36827
37554
  /**
36828
- * PROVIDER_UNSUPPORTED
37555
+ * INTERNAL
37556
+ */
37557
+ 500: BrowserError;
37558
+ /**
37559
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36829
37560
  */
36830
37561
  501: BrowserError;
36831
37562
  /**
36832
37563
  * PROVIDER_FAILED
36833
37564
  */
36834
37565
  502: BrowserError;
37566
+ /**
37567
+ * SERVICE_UNAVAILABLE
37568
+ */
37569
+ 503: BrowserError;
36835
37570
  };
36836
37571
  export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
36837
37572
  export type BrowserCreateContextResponses = {
@@ -36854,7 +37589,7 @@ export type BrowserDeleteContextData = {
36854
37589
  };
36855
37590
  export type BrowserDeleteContextErrors = {
36856
37591
  /**
36857
- * INVALID_PARAMS
37592
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36858
37593
  */
36859
37594
  400: BrowserError;
36860
37595
  /**
@@ -36862,11 +37597,15 @@ export type BrowserDeleteContextErrors = {
36862
37597
  */
36863
37598
  401: BrowserError;
36864
37599
  /**
36865
- * INSUFFICIENT_BALANCE
37600
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36866
37601
  */
36867
37602
  402: BrowserError;
36868
37603
  /**
36869
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37604
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37605
+ */
37606
+ 403: BrowserError;
37607
+ /**
37608
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36870
37609
  */
36871
37610
  404: BrowserError;
36872
37611
  /**
@@ -36878,13 +37617,21 @@ export type BrowserDeleteContextErrors = {
36878
37617
  */
36879
37618
  429: BrowserError;
36880
37619
  /**
36881
- * PROVIDER_UNSUPPORTED
37620
+ * INTERNAL
37621
+ */
37622
+ 500: BrowserError;
37623
+ /**
37624
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36882
37625
  */
36883
37626
  501: BrowserError;
36884
37627
  /**
36885
37628
  * PROVIDER_FAILED
36886
37629
  */
36887
37630
  502: BrowserError;
37631
+ /**
37632
+ * SERVICE_UNAVAILABLE
37633
+ */
37634
+ 503: BrowserError;
36888
37635
  };
36889
37636
  export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
36890
37637
  export type BrowserDeleteContextResponses = {
@@ -36912,7 +37659,7 @@ export type BrowserGetContextData = {
36912
37659
  };
36913
37660
  export type BrowserGetContextErrors = {
36914
37661
  /**
36915
- * INVALID_PARAMS
37662
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36916
37663
  */
36917
37664
  400: BrowserError;
36918
37665
  /**
@@ -36920,11 +37667,15 @@ export type BrowserGetContextErrors = {
36920
37667
  */
36921
37668
  401: BrowserError;
36922
37669
  /**
36923
- * INSUFFICIENT_BALANCE
37670
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36924
37671
  */
36925
37672
  402: BrowserError;
36926
37673
  /**
36927
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37674
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37675
+ */
37676
+ 403: BrowserError;
37677
+ /**
37678
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36928
37679
  */
36929
37680
  404: BrowserError;
36930
37681
  /**
@@ -36936,13 +37687,21 @@ export type BrowserGetContextErrors = {
36936
37687
  */
36937
37688
  429: BrowserError;
36938
37689
  /**
36939
- * PROVIDER_UNSUPPORTED
37690
+ * INTERNAL
37691
+ */
37692
+ 500: BrowserError;
37693
+ /**
37694
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
36940
37695
  */
36941
37696
  501: BrowserError;
36942
37697
  /**
36943
37698
  * PROVIDER_FAILED
36944
37699
  */
36945
37700
  502: BrowserError;
37701
+ /**
37702
+ * SERVICE_UNAVAILABLE
37703
+ */
37704
+ 503: BrowserError;
36946
37705
  };
36947
37706
  export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
36948
37707
  export type BrowserGetContextResponses = {
@@ -36976,7 +37735,7 @@ export type BrowserUpdateContextData = {
36976
37735
  };
36977
37736
  export type BrowserUpdateContextErrors = {
36978
37737
  /**
36979
- * INVALID_PARAMS
37738
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
36980
37739
  */
36981
37740
  400: BrowserError;
36982
37741
  /**
@@ -36984,11 +37743,15 @@ export type BrowserUpdateContextErrors = {
36984
37743
  */
36985
37744
  401: BrowserError;
36986
37745
  /**
36987
- * INSUFFICIENT_BALANCE
37746
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
36988
37747
  */
36989
37748
  402: BrowserError;
36990
37749
  /**
36991
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37750
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37751
+ */
37752
+ 403: BrowserError;
37753
+ /**
37754
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
36992
37755
  */
36993
37756
  404: BrowserError;
36994
37757
  /**
@@ -37000,13 +37763,21 @@ export type BrowserUpdateContextErrors = {
37000
37763
  */
37001
37764
  429: BrowserError;
37002
37765
  /**
37003
- * PROVIDER_UNSUPPORTED
37766
+ * INTERNAL
37767
+ */
37768
+ 500: BrowserError;
37769
+ /**
37770
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
37004
37771
  */
37005
37772
  501: BrowserError;
37006
37773
  /**
37007
37774
  * PROVIDER_FAILED
37008
37775
  */
37009
37776
  502: BrowserError;
37777
+ /**
37778
+ * SERVICE_UNAVAILABLE
37779
+ */
37780
+ 503: BrowserError;
37010
37781
  };
37011
37782
  export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
37012
37783
  export type BrowserUpdateContextResponses = {
@@ -37061,7 +37832,7 @@ export type BrowserConnectData = {
37061
37832
  };
37062
37833
  export type BrowserConnectErrors = {
37063
37834
  /**
37064
- * INVALID_PARAMS
37835
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
37065
37836
  */
37066
37837
  400: BrowserError;
37067
37838
  /**
@@ -37069,11 +37840,15 @@ export type BrowserConnectErrors = {
37069
37840
  */
37070
37841
  401: BrowserError;
37071
37842
  /**
37072
- * INSUFFICIENT_BALANCE
37843
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
37073
37844
  */
37074
37845
  402: BrowserError;
37075
37846
  /**
37076
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37847
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37848
+ */
37849
+ 403: BrowserError;
37850
+ /**
37851
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
37077
37852
  */
37078
37853
  404: BrowserError;
37079
37854
  /**
@@ -37085,13 +37860,21 @@ export type BrowserConnectErrors = {
37085
37860
  */
37086
37861
  429: BrowserError;
37087
37862
  /**
37088
- * PROVIDER_UNSUPPORTED
37863
+ * INTERNAL
37864
+ */
37865
+ 500: BrowserError;
37866
+ /**
37867
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
37089
37868
  */
37090
37869
  501: BrowserError;
37091
37870
  /**
37092
37871
  * PROVIDER_FAILED
37093
37872
  */
37094
37873
  502: BrowserError;
37874
+ /**
37875
+ * SERVICE_UNAVAILABLE
37876
+ */
37877
+ 503: BrowserError;
37095
37878
  };
37096
37879
  export type BrowserConnectError = BrowserConnectErrors[keyof BrowserConnectErrors];
37097
37880
  export type BrowserLiveViewData = {
@@ -37116,7 +37899,7 @@ export type BrowserLiveViewData = {
37116
37899
  };
37117
37900
  export type BrowserLiveViewErrors = {
37118
37901
  /**
37119
- * INVALID_PARAMS
37902
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
37120
37903
  */
37121
37904
  400: BrowserError;
37122
37905
  /**
@@ -37124,11 +37907,15 @@ export type BrowserLiveViewErrors = {
37124
37907
  */
37125
37908
  401: BrowserError;
37126
37909
  /**
37127
- * INSUFFICIENT_BALANCE
37910
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
37128
37911
  */
37129
37912
  402: BrowserError;
37130
37913
  /**
37131
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37914
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37915
+ */
37916
+ 403: BrowserError;
37917
+ /**
37918
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
37132
37919
  */
37133
37920
  404: BrowserError;
37134
37921
  /**
@@ -37140,13 +37927,21 @@ export type BrowserLiveViewErrors = {
37140
37927
  */
37141
37928
  429: BrowserError;
37142
37929
  /**
37143
- * PROVIDER_UNSUPPORTED
37930
+ * INTERNAL
37931
+ */
37932
+ 500: BrowserError;
37933
+ /**
37934
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
37144
37935
  */
37145
37936
  501: BrowserError;
37146
37937
  /**
37147
37938
  * PROVIDER_FAILED
37148
37939
  */
37149
37940
  502: BrowserError;
37941
+ /**
37942
+ * SERVICE_UNAVAILABLE
37943
+ */
37944
+ 503: BrowserError;
37150
37945
  };
37151
37946
  export type BrowserLiveViewError = BrowserLiveViewErrors[keyof BrowserLiveViewErrors];
37152
37947
  export type BrowserStreamSessionData = {
@@ -37162,7 +37957,7 @@ export type BrowserStreamSessionData = {
37162
37957
  };
37163
37958
  export type BrowserStreamSessionErrors = {
37164
37959
  /**
37165
- * INVALID_PARAMS
37960
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
37166
37961
  */
37167
37962
  400: BrowserError;
37168
37963
  /**
@@ -37170,11 +37965,15 @@ export type BrowserStreamSessionErrors = {
37170
37965
  */
37171
37966
  401: BrowserError;
37172
37967
  /**
37173
- * INSUFFICIENT_BALANCE
37968
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
37174
37969
  */
37175
37970
  402: BrowserError;
37176
37971
  /**
37177
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND
37972
+ * PERMISSION_DENIED / ACCOUNT_SUSPENDED
37973
+ */
37974
+ 403: BrowserError;
37975
+ /**
37976
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
37178
37977
  */
37179
37978
  404: BrowserError;
37180
37979
  /**
@@ -37186,13 +37985,21 @@ export type BrowserStreamSessionErrors = {
37186
37985
  */
37187
37986
  429: BrowserError;
37188
37987
  /**
37189
- * PROVIDER_UNSUPPORTED
37988
+ * INTERNAL
37989
+ */
37990
+ 500: BrowserError;
37991
+ /**
37992
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
37190
37993
  */
37191
37994
  501: BrowserError;
37192
37995
  /**
37193
37996
  * PROVIDER_FAILED
37194
37997
  */
37195
37998
  502: BrowserError;
37999
+ /**
38000
+ * SERVICE_UNAVAILABLE
38001
+ */
38002
+ 503: BrowserError;
37196
38003
  };
37197
38004
  export type BrowserStreamSessionError = BrowserStreamSessionErrors[keyof BrowserStreamSessionErrors];
37198
38005
  export type BrowserStreamSessionResponses = {
@@ -37210,7 +38017,7 @@ export type BrowserSeleniumUnsupportedData = {
37210
38017
  };
37211
38018
  export type BrowserSeleniumUnsupportedErrors = {
37212
38019
  /**
37213
- * PROVIDER_UNSUPPORTED
38020
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
37214
38021
  */
37215
38022
  501: BrowserError;
37216
38023
  };
@@ -37635,6 +38442,107 @@ export type MetaMethodsRetrieveResponses = {
37635
38442
  200: MetaMethod;
37636
38443
  };
37637
38444
  export type MetaMethodsRetrieveResponse = MetaMethodsRetrieveResponses[keyof MetaMethodsRetrieveResponses];
38445
+ export type MetaDocsRetrieveData = {
38446
+ body?: never;
38447
+ path: {
38448
+ /**
38449
+ * Slash-separated documentation path from docs.search; optionally append #heading-id to select a section.
38450
+ */
38451
+ path: string;
38452
+ };
38453
+ query?: {
38454
+ /**
38455
+ * Documentation language: zh for Chinese (default), en for English.
38456
+ */
38457
+ lang?: 'zh' | 'en';
38458
+ };
38459
+ url: '/meta/v1/docs/{path}';
38460
+ };
38461
+ export type MetaDocsRetrieveErrors = {
38462
+ /**
38463
+ * INVALID_PARAMS: lang must be zh or en; correct the language and retry.
38464
+ */
38465
+ 400: MetaProblem;
38466
+ /**
38467
+ * DOC_NOT_FOUND: page or anchor does not exist; use docs.search to find a valid documentation path.
38468
+ */
38469
+ 404: MetaProblem;
38470
+ };
38471
+ export type MetaDocsRetrieveError = MetaDocsRetrieveErrors[keyof MetaDocsRetrieveErrors];
38472
+ export type MetaDocsRetrieveResponses = {
38473
+ /**
38474
+ * Documentation page as Markdown, never the HTML website.
38475
+ */
38476
+ 200: {
38477
+ /**
38478
+ * Documentation path, including the requested section anchor when present.
38479
+ */
38480
+ path: string;
38481
+ /**
38482
+ * Human-readable title of the documentation page.
38483
+ */
38484
+ title: string;
38485
+ /**
38486
+ * Canonical documentation URL for reading the page in a browser.
38487
+ */
38488
+ url: string;
38489
+ /**
38490
+ * Compiled page Markdown, or only the requested heading section and its subsections.
38491
+ */
38492
+ markdown: string;
38493
+ };
38494
+ };
38495
+ export type MetaDocsRetrieveResponse = MetaDocsRetrieveResponses[keyof MetaDocsRetrieveResponses];
38496
+ export type MetaDocsSearchData = {
38497
+ body?: never;
38498
+ path?: never;
38499
+ query: {
38500
+ /**
38501
+ * Keywords describing the syntax or guide needed, for example export or workflow.
38502
+ */
38503
+ q: string;
38504
+ /**
38505
+ * Maximum number of matching pages returned; integer 1–50, default 20.
38506
+ */
38507
+ limit?: number;
38508
+ /**
38509
+ * Documentation language: zh for Chinese (default), en for English.
38510
+ */
38511
+ lang?: 'zh' | 'en';
38512
+ };
38513
+ url: '/meta/v1/docs/search';
38514
+ };
38515
+ export type MetaDocsSearchErrors = {
38516
+ /**
38517
+ * INVALID_PARAMS: supply nonempty q, limit from 1 to 50 and lang zh or en.
38518
+ */
38519
+ 400: MetaProblem;
38520
+ };
38521
+ export type MetaDocsSearchError = MetaDocsSearchErrors[keyof MetaDocsSearchErrors];
38522
+ export type MetaDocsSearchResponses = {
38523
+ /**
38524
+ * Matching documentation pages; empty when no page contains all keywords.
38525
+ */
38526
+ 200: Array<{
38527
+ /**
38528
+ * Documentation path, including the requested section anchor when present.
38529
+ */
38530
+ path: string;
38531
+ /**
38532
+ * Human-readable title of the documentation page.
38533
+ */
38534
+ title: string;
38535
+ /**
38536
+ * Canonical documentation URL for reading the page in a browser.
38537
+ */
38538
+ url: string;
38539
+ /**
38540
+ * Short excerpt from the matching page to help choose which documentation to retrieve.
38541
+ */
38542
+ snippet: string;
38543
+ }>;
38544
+ };
38545
+ export type MetaDocsSearchResponse = MetaDocsSearchResponses[keyof MetaDocsSearchResponses];
37638
38546
  export type ListModelsData = {
37639
38547
  body?: never;
37640
38548
  path?: never;
@@ -44244,15 +45152,15 @@ export type AgentsListData = {
44244
45152
  limit?: number;
44245
45153
  page?: null | string;
44246
45154
  /**
44247
- * Personal agents use a durable computer; service agents use a clean environment per session.
45155
+ * General agents use a durable computer and act for their owner; personal agents behave like general agents for now and are reserved for the personal agent; service agents use a clean environment per session.
44248
45156
  */
44249
- kind?: 'personal' | 'service';
45157
+ kind?: 'general' | 'personal' | 'service';
44250
45158
  };
44251
45159
  url: '/agent/v1/agents';
44252
45160
  };
44253
45161
  export type AgentsListErrors = {
44254
45162
  /**
44255
- * include_archived is not true or false, kind is not personal or service, a created_at bound is not an RFC 3339 timestamp, or INVALID_PARAMS when limit is not an integer from 1 to 100 (limit must be an integer between 1 and 100), or INVALID_PAGE_TOKEN when page is not a cursor from this same query (restart from the first page). Pass next_page unchanged, with the same filters, to continue.
45163
+ * include_archived is not true or false, kind is not general, personal or service, a created_at bound is not an RFC 3339 timestamp, or INVALID_PARAMS when limit is not an integer from 1 to 100 (limit must be an integer between 1 and 100), or INVALID_PAGE_TOKEN when page is not a cursor from this same query (restart from the first page). Pass next_page unchanged, with the same filters, to continue.
44256
45164
  */
44257
45165
  400: AgentError;
44258
45166
  /**
@@ -44396,7 +45304,7 @@ export type AgentsListResponses = {
44396
45304
  */
44397
45305
  note: string | null;
44398
45306
  /**
44399
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
45307
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
44400
45308
  */
44401
45309
  bindings: Array<{
44402
45310
  /**
@@ -44438,9 +45346,9 @@ export type AgentsListResponses = {
44438
45346
  enabled?: boolean;
44439
45347
  }>;
44440
45348
  /**
44441
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
45349
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
44442
45350
  */
44443
- kind: 'personal' | 'service';
45351
+ kind: 'general' | 'personal' | 'service';
44444
45352
  /**
44445
45353
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
44446
45354
  */
@@ -44791,6 +45699,10 @@ export type AgentsListResponses = {
44791
45699
  */
44792
45700
  hooks?: Array<string>;
44793
45701
  };
45702
+ /**
45703
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
45704
+ */
45705
+ idleCompaction?: boolean;
44794
45706
  } | null;
44795
45707
  /**
44796
45708
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -44906,7 +45818,7 @@ export type AgentsCreateData = {
44906
45818
  */
44907
45819
  tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
44908
45820
  /**
44909
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
45821
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
44910
45822
  */
44911
45823
  bindings?: Array<{
44912
45824
  /**
@@ -44948,9 +45860,9 @@ export type AgentsCreateData = {
44948
45860
  enabled?: boolean;
44949
45861
  }>;
44950
45862
  /**
44951
- * Immutable agent kind. personal requires computer_id; service cannot bind a computer. Omit on create to infer from computer_id. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
45863
+ * Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
44952
45864
  */
44953
- kind?: 'personal' | 'service';
45865
+ kind?: 'general' | 'personal' | 'service';
44954
45866
  /**
44955
45867
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined.
44956
45868
  */
@@ -45301,6 +46213,10 @@ export type AgentsCreateData = {
45301
46213
  */
45302
46214
  hooks?: Array<string>;
45303
46215
  };
46216
+ /**
46217
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
46218
+ */
46219
+ idleCompaction?: boolean;
45304
46220
  } | null;
45305
46221
  /**
45306
46222
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -45312,7 +46228,7 @@ export type AgentsCreateData = {
45312
46228
  allowed: Array<string>;
45313
46229
  };
45314
46230
  /**
45315
- * Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. Both personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it.
46231
+ * Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it.
45316
46232
  */
45317
46233
  avatar?: string | null;
45318
46234
  /**
@@ -45478,7 +46394,7 @@ export type AgentsCreateResponses = {
45478
46394
  */
45479
46395
  note: string | null;
45480
46396
  /**
45481
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
46397
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
45482
46398
  */
45483
46399
  bindings: Array<{
45484
46400
  /**
@@ -45520,9 +46436,9 @@ export type AgentsCreateResponses = {
45520
46436
  enabled?: boolean;
45521
46437
  }>;
45522
46438
  /**
45523
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
46439
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
45524
46440
  */
45525
- kind: 'personal' | 'service';
46441
+ kind: 'general' | 'personal' | 'service';
45526
46442
  /**
45527
46443
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
45528
46444
  */
@@ -45873,6 +46789,10 @@ export type AgentsCreateResponses = {
45873
46789
  */
45874
46790
  hooks?: Array<string>;
45875
46791
  };
46792
+ /**
46793
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
46794
+ */
46795
+ idleCompaction?: boolean;
45876
46796
  } | null;
45877
46797
  /**
45878
46798
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -46077,7 +46997,7 @@ export type AgentsRetrieveResponses = {
46077
46997
  */
46078
46998
  note: string | null;
46079
46999
  /**
46080
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
47000
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
46081
47001
  */
46082
47002
  bindings: Array<{
46083
47003
  /**
@@ -46119,9 +47039,9 @@ export type AgentsRetrieveResponses = {
46119
47039
  enabled?: boolean;
46120
47040
  }>;
46121
47041
  /**
46122
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
47042
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
46123
47043
  */
46124
- kind: 'personal' | 'service';
47044
+ kind: 'general' | 'personal' | 'service';
46125
47045
  /**
46126
47046
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
46127
47047
  */
@@ -46472,6 +47392,10 @@ export type AgentsRetrieveResponses = {
46472
47392
  */
46473
47393
  hooks?: Array<string>;
46474
47394
  };
47395
+ /**
47396
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
47397
+ */
47398
+ idleCompaction?: boolean;
46475
47399
  } | null;
46476
47400
  /**
46477
47401
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -46638,9 +47562,9 @@ export type AgentsUpdateData = {
46638
47562
  enabled?: boolean;
46639
47563
  }> | null;
46640
47564
  /**
46641
- * Immutable agent kind. personal requires computer_id; service cannot bind a computer. Omit on create to infer from computer_id. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
47565
+ * Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
46642
47566
  */
46643
- kind?: 'personal' | 'service';
47567
+ kind?: 'general' | 'personal' | 'service';
46644
47568
  /**
46645
47569
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined.
46646
47570
  */
@@ -46991,6 +47915,10 @@ export type AgentsUpdateData = {
46991
47915
  */
46992
47916
  hooks?: Array<string>;
46993
47917
  };
47918
+ /**
47919
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
47920
+ */
47921
+ idleCompaction?: boolean;
46994
47922
  } | null;
46995
47923
  /**
46996
47924
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -47002,7 +47930,7 @@ export type AgentsUpdateData = {
47002
47930
  allowed: Array<string>;
47003
47931
  };
47004
47932
  /**
47005
- * Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. Both personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it.
47933
+ * Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it.
47006
47934
  */
47007
47935
  avatar?: string | null;
47008
47936
  /**
@@ -47181,7 +48109,7 @@ export type AgentsUpdateResponses = {
47181
48109
  */
47182
48110
  note: string | null;
47183
48111
  /**
47184
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
48112
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
47185
48113
  */
47186
48114
  bindings: Array<{
47187
48115
  /**
@@ -47223,9 +48151,9 @@ export type AgentsUpdateResponses = {
47223
48151
  enabled?: boolean;
47224
48152
  }>;
47225
48153
  /**
47226
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
48154
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
47227
48155
  */
47228
- kind: 'personal' | 'service';
48156
+ kind: 'general' | 'personal' | 'service';
47229
48157
  /**
47230
48158
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
47231
48159
  */
@@ -47576,6 +48504,10 @@ export type AgentsUpdateResponses = {
47576
48504
  */
47577
48505
  hooks?: Array<string>;
47578
48506
  };
48507
+ /**
48508
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
48509
+ */
48510
+ idleCompaction?: boolean;
47579
48511
  } | null;
47580
48512
  /**
47581
48513
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -47766,7 +48698,7 @@ export type AgentsArchiveResponses = {
47766
48698
  */
47767
48699
  note: string | null;
47768
48700
  /**
47769
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
48701
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
47770
48702
  */
47771
48703
  bindings: Array<{
47772
48704
  /**
@@ -47808,9 +48740,9 @@ export type AgentsArchiveResponses = {
47808
48740
  enabled?: boolean;
47809
48741
  }>;
47810
48742
  /**
47811
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
48743
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
47812
48744
  */
47813
- kind: 'personal' | 'service';
48745
+ kind: 'general' | 'personal' | 'service';
47814
48746
  /**
47815
48747
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
47816
48748
  */
@@ -48161,6 +49093,10 @@ export type AgentsArchiveResponses = {
48161
49093
  */
48162
49094
  hooks?: Array<string>;
48163
49095
  };
49096
+ /**
49097
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
49098
+ */
49099
+ idleCompaction?: boolean;
48164
49100
  } | null;
48165
49101
  /**
48166
49102
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -48369,7 +49305,7 @@ export type AgentsVersionsListResponses = {
48369
49305
  */
48370
49306
  note: string | null;
48371
49307
  /**
48372
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
49308
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
48373
49309
  */
48374
49310
  bindings: Array<{
48375
49311
  /**
@@ -48411,9 +49347,9 @@ export type AgentsVersionsListResponses = {
48411
49347
  enabled?: boolean;
48412
49348
  }>;
48413
49349
  /**
48414
- * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
49350
+ * Immutable agent kind. general uses a durable computer and acts for its owner; personal behaves like general for now and is reserved for the personal agent; service uses a clean environment per session. Historical agents infer kind from their computer binding and read as general.
48415
49351
  */
48416
- kind: 'personal' | 'service';
49352
+ kind: 'general' | 'personal' | 'service';
48417
49353
  /**
48418
49354
  * Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. computer_id selects a tenant-owned active computer. Session selection overrides the agent default; a sandbox environment_id and computer_id cannot be combined. Omitted when no computer is selected.
48419
49355
  */
@@ -48764,6 +49700,10 @@ export type AgentsVersionsListResponses = {
48764
49700
  */
48765
49701
  hooks?: Array<string>;
48766
49702
  };
49703
+ /**
49704
+ * Whether new sessions compact large contexts while idle before the prompt cache expires; defaults to true.
49705
+ */
49706
+ idleCompaction?: boolean;
48767
49707
  } | null;
48768
49708
  /**
48769
49709
  * Praxis extension: switchable model ids on /agent/v1 only. The default model must be included. When omitted, only the default model is selectable.
@@ -49904,6 +50844,10 @@ export type SessionsEventsListResponses = {
49904
50844
  */
49905
50845
  message_id?: string;
49906
50846
  } | {
50847
+ /**
50848
+ * True only for a native primary-session approval in build, edit or guarded mode that is neither user-once nor an intrinsic always-ask or user-interaction gate. When true, allow with permission_mode=yolo to grant full access.
50849
+ */
50850
+ full_access_available?: boolean;
49907
50851
  /**
49908
50852
  * Unique identifier for this event.
49909
50853
  */
@@ -49982,6 +50926,44 @@ export type SessionsEventsListResponses = {
49982
50926
  * Praxis extension (MCP Apps, SEP-1865): present when `source` is `codemode`; the id of the codemode tool use whose program made this call. Absent otherwise.
49983
50927
  */
49984
50928
  parent_tool_use_id?: string;
50929
+ /**
50930
+ * When present, this dangerous shell call requires approval for this execution only; offer allow once or deny.
50931
+ */
50932
+ user_once?: true;
50933
+ /**
50934
+ * Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches.
50935
+ */
50936
+ guarded_rule?: string;
50937
+ /**
50938
+ * 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.
50939
+ */
50940
+ permission_suggestions?: Array<{
50941
+ /**
50942
+ * add_rules adds the offered allow rules.
50943
+ */
50944
+ type: 'add_rules';
50945
+ /**
50946
+ * allow grants permission for matching calls.
50947
+ */
50948
+ behavior: 'allow';
50949
+ /**
50950
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
50951
+ */
50952
+ destination: 'agent' | 'session';
50953
+ /**
50954
+ * The complete set of rules from one offered suggestion, without changes.
50955
+ */
50956
+ rules: Array<{
50957
+ /**
50958
+ * The offered tool name, including the full mcp__server__tool name for an MCP tool.
50959
+ */
50960
+ tool_name: string;
50961
+ /**
50962
+ * The offered command, stable command prefix, exact file path, domain or whole-tool wildcard.
50963
+ */
50964
+ rule_content: string;
50965
+ }>;
50966
+ }>;
49985
50967
  /**
49986
50968
  * 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.
49987
50969
  */
@@ -50036,6 +51018,10 @@ export type SessionsEventsListResponses = {
50036
51018
  */
50037
51019
  source?: 'app' | 'codemode';
50038
51020
  } | {
51021
+ /**
51022
+ * True only for a native primary-session approval in build, edit or guarded mode that is neither user-once nor an intrinsic always-ask or user-interaction gate. When true, allow with permission_mode=yolo to grant full access.
51023
+ */
51024
+ full_access_available?: boolean;
50039
51025
  /**
50040
51026
  * Unique identifier for this event.
50041
51027
  */
@@ -50078,6 +51064,44 @@ export type SessionsEventsListResponses = {
50078
51064
  * Run that produced this event; null when no run identity was recorded.
50079
51065
  */
50080
51066
  run_id: string | null;
51067
+ /**
51068
+ * When present, this dangerous shell call requires approval for this execution only; offer allow once or deny.
51069
+ */
51070
+ user_once?: true;
51071
+ /**
51072
+ * Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches.
51073
+ */
51074
+ guarded_rule?: string;
51075
+ /**
51076
+ * 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.
51077
+ */
51078
+ permission_suggestions?: Array<{
51079
+ /**
51080
+ * add_rules adds the offered allow rules.
51081
+ */
51082
+ type: 'add_rules';
51083
+ /**
51084
+ * allow grants permission for matching calls.
51085
+ */
51086
+ behavior: 'allow';
51087
+ /**
51088
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
51089
+ */
51090
+ destination: 'agent' | 'session';
51091
+ /**
51092
+ * The complete set of rules from one offered suggestion, without changes.
51093
+ */
51094
+ rules: Array<{
51095
+ /**
51096
+ * The offered tool name, including the full mcp__server__tool name for an MCP tool.
51097
+ */
51098
+ tool_name: string;
51099
+ /**
51100
+ * The offered command, stable command prefix, exact file path, domain or whole-tool wildcard.
51101
+ */
51102
+ rule_content: string;
51103
+ }>;
51104
+ }>;
50081
51105
  } | {
50082
51106
  /**
50083
51107
  * Unique identifier for this event.
@@ -50146,6 +51170,18 @@ export type SessionsEventsListResponses = {
50146
51170
  */
50147
51171
  run_id: string | null;
50148
51172
  } | AgentManaged230 | AgentManaged231 | AgentManaged232 | AgentManaged233 | AgentManaged235 | AgentManaged236 | AgentManaged237 | AgentManaged238 | AgentManaged239 | AgentManaged240 | AgentManaged241 | AgentManaged242 | AgentManaged243 | AgentManaged244 | {
51173
+ /**
51174
+ * Monotone permission-mode version, incremented once per mode update.
51175
+ */
51176
+ permission_mode_version?: number;
51177
+ /**
51178
+ * The permission mode before this change, or null when none was selected.
51179
+ */
51180
+ previous_permission_mode?: string | null;
51181
+ /**
51182
+ * The new native session permission mode; null restores configured tool policies.
51183
+ */
51184
+ permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | 'guarded' | null;
50149
51185
  /**
50150
51186
  * Unique identifier for this event.
50151
51187
  */
@@ -51021,6 +52057,10 @@ export type SessionsThreadsEventsListResponses = {
51021
52057
  */
51022
52058
  message_id?: string;
51023
52059
  } | {
52060
+ /**
52061
+ * True only for a native primary-session approval in build, edit or guarded mode that is neither user-once nor an intrinsic always-ask or user-interaction gate. When true, allow with permission_mode=yolo to grant full access.
52062
+ */
52063
+ full_access_available?: boolean;
51024
52064
  /**
51025
52065
  * Unique identifier for this event.
51026
52066
  */
@@ -51099,6 +52139,44 @@ export type SessionsThreadsEventsListResponses = {
51099
52139
  * Praxis extension (MCP Apps, SEP-1865): `app` when the call was made by an MCP Apps view, `codemode` when a program run by the codemode tool called an MCP tool that declares a view (the event pair exists so a client can render that view; the model already has the result in the codemode tool result); absent for the model's own calls.
51100
52140
  */
51101
52141
  source?: 'app' | 'codemode';
52142
+ /**
52143
+ * When present, this dangerous shell call requires approval for this execution only; offer allow once or deny.
52144
+ */
52145
+ user_once?: true;
52146
+ /**
52147
+ * Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches.
52148
+ */
52149
+ guarded_rule?: string;
52150
+ /**
52151
+ * 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.
52152
+ */
52153
+ permission_suggestions?: Array<{
52154
+ /**
52155
+ * add_rules adds the offered allow rules.
52156
+ */
52157
+ type: 'add_rules';
52158
+ /**
52159
+ * allow grants permission for matching calls.
52160
+ */
52161
+ behavior: 'allow';
52162
+ /**
52163
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
52164
+ */
52165
+ destination: 'agent' | 'session';
52166
+ /**
52167
+ * The complete set of rules from one offered suggestion, without changes.
52168
+ */
52169
+ rules: Array<{
52170
+ /**
52171
+ * The offered tool name, including the full mcp__server__tool name for an MCP tool.
52172
+ */
52173
+ tool_name: string;
52174
+ /**
52175
+ * The offered command, stable command prefix, exact file path, domain or whole-tool wildcard.
52176
+ */
52177
+ rule_content: string;
52178
+ }>;
52179
+ }>;
51102
52180
  /**
51103
52181
  * 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.
51104
52182
  */
@@ -51153,6 +52231,10 @@ export type SessionsThreadsEventsListResponses = {
51153
52231
  */
51154
52232
  source?: 'app' | 'codemode';
51155
52233
  } | {
52234
+ /**
52235
+ * True only for a native primary-session approval in build, edit or guarded mode that is neither user-once nor an intrinsic always-ask or user-interaction gate. When true, allow with permission_mode=yolo to grant full access.
52236
+ */
52237
+ full_access_available?: boolean;
51156
52238
  /**
51157
52239
  * Unique identifier for this event.
51158
52240
  */
@@ -51195,6 +52277,44 @@ export type SessionsThreadsEventsListResponses = {
51195
52277
  * Run that produced this event; null when no run identity was recorded.
51196
52278
  */
51197
52279
  run_id: string | null;
52280
+ /**
52281
+ * When present, this dangerous shell call requires approval for this execution only; offer allow once or deny.
52282
+ */
52283
+ user_once?: true;
52284
+ /**
52285
+ * Deterministic dangerous-command rule that requires single-execution approval; present only for guarded matches.
52286
+ */
52287
+ guarded_rule?: string;
52288
+ /**
52289
+ * 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.
52290
+ */
52291
+ permission_suggestions?: Array<{
52292
+ /**
52293
+ * add_rules adds the offered allow rules.
52294
+ */
52295
+ type: 'add_rules';
52296
+ /**
52297
+ * allow grants permission for matching calls.
52298
+ */
52299
+ behavior: 'allow';
52300
+ /**
52301
+ * agent shares the grant across a general or personal agent's sessions; session keeps it in this session. Service agents reject agent with 400.
52302
+ */
52303
+ destination: 'agent' | 'session';
52304
+ /**
52305
+ * The complete set of rules from one offered suggestion, without changes.
52306
+ */
52307
+ rules: Array<{
52308
+ /**
52309
+ * The offered tool name, including the full mcp__server__tool name for an MCP tool.
52310
+ */
52311
+ tool_name: string;
52312
+ /**
52313
+ * The offered command, stable command prefix, exact file path, domain or whole-tool wildcard.
52314
+ */
52315
+ rule_content: string;
52316
+ }>;
52317
+ }>;
51198
52318
  } | {
51199
52319
  /**
51200
52320
  * Unique identifier for this event.
@@ -51263,6 +52383,18 @@ export type SessionsThreadsEventsListResponses = {
51263
52383
  */
51264
52384
  run_id: string | null;
51265
52385
  } | AgentManaged230 | AgentManaged231 | AgentManaged232 | AgentManaged233 | AgentManaged235 | AgentManaged236 | AgentManaged237 | AgentManaged238 | AgentManaged239 | AgentManaged240 | AgentManaged241 | AgentManaged242 | AgentManaged243 | AgentManaged244 | {
52386
+ /**
52387
+ * Monotone permission-mode version, incremented once per mode update.
52388
+ */
52389
+ permission_mode_version?: number;
52390
+ /**
52391
+ * The permission mode before this change, or null when none was selected.
52392
+ */
52393
+ previous_permission_mode?: string | null;
52394
+ /**
52395
+ * The new native session permission mode; null restores configured tool policies.
52396
+ */
52397
+ permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | 'guarded' | null;
51266
52398
  /**
51267
52399
  * Unique identifier for this event.
51268
52400
  */
@@ -51801,7 +52933,7 @@ export type SessionsResourcesListData = {
51801
52933
  };
51802
52934
  query?: {
51803
52935
  /**
51804
- * Number of items per page.
52936
+ * Number of resources per page, from 1 to 100; defaults to 100.
51805
52937
  */
51806
52938
  limit?: number;
51807
52939
  page?: null | string;
@@ -52078,7 +53210,7 @@ export type DeploymentsListResponses = {
52078
53210
  /**
52079
53211
  * Permission mode for each new session; omitted or null inherits the agent policies.
52080
53212
  */
52081
- permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | null;
53213
+ permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | 'guarded' | null;
52082
53214
  /**
52083
53215
  * Working directory for each new session; omitted uses the session default.
52084
53216
  */
@@ -52173,11 +53305,11 @@ export type DeploymentsListResponses = {
52173
53305
  */
52174
53306
  budget?: null | AgentManaged76;
52175
53307
  /**
52176
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
53308
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
52177
53309
  */
52178
53310
  target: {
52179
53311
  /**
52180
- * environment uses an environment recipe; computer uses the personal agent computer.
53312
+ * environment uses an environment recipe; computer uses the agent computer.
52181
53313
  */
52182
53314
  type: 'environment' | 'computer';
52183
53315
  };
@@ -52208,7 +53340,7 @@ export type DeploymentsCreateData = {
52208
53340
  /**
52209
53341
  * Permission mode for each new session; omitted or null inherits the agent policies.
52210
53342
  */
52211
- permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | null;
53343
+ permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | 'guarded' | null;
52212
53344
  /**
52213
53345
  * Working directory for each new session; omitted uses the session default.
52214
53346
  */
@@ -52283,11 +53415,11 @@ export type DeploymentsCreateData = {
52283
53415
  */
52284
53416
  vault_ids?: Array<string>;
52285
53417
  /**
52286
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
53418
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
52287
53419
  */
52288
53420
  target?: {
52289
53421
  /**
52290
- * environment uses an environment recipe; computer uses the personal agent computer.
53422
+ * environment uses an environment recipe; computer uses the agent computer.
52291
53423
  */
52292
53424
  type: 'environment' | 'computer';
52293
53425
  };
@@ -52348,7 +53480,7 @@ export type DeploymentsCreateResponses = {
52348
53480
  /**
52349
53481
  * Permission mode for each new session; omitted or null inherits the agent policies.
52350
53482
  */
52351
- permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | null;
53483
+ permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | 'guarded' | null;
52352
53484
  /**
52353
53485
  * Working directory for each new session; omitted uses the session default.
52354
53486
  */
@@ -52443,11 +53575,11 @@ export type DeploymentsCreateResponses = {
52443
53575
  */
52444
53576
  budget?: null | AgentManaged76;
52445
53577
  /**
52446
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
53578
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
52447
53579
  */
52448
53580
  target: {
52449
53581
  /**
52450
- * environment uses an environment recipe; computer uses the personal agent computer.
53582
+ * environment uses an environment recipe; computer uses the agent computer.
52451
53583
  */
52452
53584
  type: 'environment' | 'computer';
52453
53585
  };
@@ -52517,7 +53649,7 @@ export type DeploymentsRetrieveResponses = {
52517
53649
  /**
52518
53650
  * Permission mode for each new session; omitted or null inherits the agent policies.
52519
53651
  */
52520
- permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | null;
53652
+ permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | 'guarded' | null;
52521
53653
  /**
52522
53654
  * Working directory for each new session; omitted uses the session default.
52523
53655
  */
@@ -52612,11 +53744,11 @@ export type DeploymentsRetrieveResponses = {
52612
53744
  */
52613
53745
  budget?: null | AgentManaged76;
52614
53746
  /**
52615
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
53747
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
52616
53748
  */
52617
53749
  target: {
52618
53750
  /**
52619
- * environment uses an environment recipe; computer uses the personal agent computer.
53751
+ * environment uses an environment recipe; computer uses the agent computer.
52620
53752
  */
52621
53753
  type: 'environment' | 'computer';
52622
53754
  };
@@ -52642,7 +53774,7 @@ export type DeploymentsUpdateData = {
52642
53774
  /**
52643
53775
  * Permission mode for each new session; omitted or null inherits the agent policies.
52644
53776
  */
52645
- permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | null;
53777
+ permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | 'guarded' | null;
52646
53778
  /**
52647
53779
  * Working directory for each new session; omitted uses the session default.
52648
53780
  */
@@ -52719,11 +53851,11 @@ export type DeploymentsUpdateData = {
52719
53851
  */
52720
53852
  vault_ids?: null | Array<string>;
52721
53853
  /**
52722
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
53854
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
52723
53855
  */
52724
53856
  target?: {
52725
53857
  /**
52726
- * environment uses an environment recipe; computer uses the personal agent computer.
53858
+ * environment uses an environment recipe; computer uses the agent computer.
52727
53859
  */
52728
53860
  type: 'environment' | 'computer';
52729
53861
  };
@@ -52797,7 +53929,7 @@ export type DeploymentsUpdateResponses = {
52797
53929
  /**
52798
53930
  * Permission mode for each new session; omitted or null inherits the agent policies.
52799
53931
  */
52800
- permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | null;
53932
+ permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | 'guarded' | null;
52801
53933
  /**
52802
53934
  * Working directory for each new session; omitted uses the session default.
52803
53935
  */
@@ -52892,11 +54024,11 @@ export type DeploymentsUpdateResponses = {
52892
54024
  */
52893
54025
  budget?: null | AgentManaged76;
52894
54026
  /**
52895
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
54027
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
52896
54028
  */
52897
54029
  target: {
52898
54030
  /**
52899
- * environment uses an environment recipe; computer uses the personal agent computer.
54031
+ * environment uses an environment recipe; computer uses the agent computer.
52900
54032
  */
52901
54033
  type: 'environment' | 'computer';
52902
54034
  };
@@ -52966,7 +54098,7 @@ export type DeploymentsArchiveResponses = {
52966
54098
  /**
52967
54099
  * Permission mode for each new session; omitted or null inherits the agent policies.
52968
54100
  */
52969
- permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | null;
54101
+ permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | 'guarded' | null;
52970
54102
  /**
52971
54103
  * Working directory for each new session; omitted uses the session default.
52972
54104
  */
@@ -53061,11 +54193,11 @@ export type DeploymentsArchiveResponses = {
53061
54193
  */
53062
54194
  budget?: null | AgentManaged76;
53063
54195
  /**
53064
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
54196
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
53065
54197
  */
53066
54198
  target: {
53067
54199
  /**
53068
- * environment uses an environment recipe; computer uses the personal agent computer.
54200
+ * environment uses an environment recipe; computer uses the agent computer.
53069
54201
  */
53070
54202
  type: 'environment' | 'computer';
53071
54203
  };
@@ -53139,7 +54271,7 @@ export type DeploymentsPauseResponses = {
53139
54271
  /**
53140
54272
  * Permission mode for each new session; omitted or null inherits the agent policies.
53141
54273
  */
53142
- permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | null;
54274
+ permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | 'guarded' | null;
53143
54275
  /**
53144
54276
  * Working directory for each new session; omitted uses the session default.
53145
54277
  */
@@ -53234,11 +54366,11 @@ export type DeploymentsPauseResponses = {
53234
54366
  */
53235
54367
  budget?: null | AgentManaged76;
53236
54368
  /**
53237
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
54369
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
53238
54370
  */
53239
54371
  target: {
53240
54372
  /**
53241
- * environment uses an environment recipe; computer uses the personal agent computer.
54373
+ * environment uses an environment recipe; computer uses the agent computer.
53242
54374
  */
53243
54375
  type: 'environment' | 'computer';
53244
54376
  };
@@ -53312,7 +54444,7 @@ export type DeploymentsUnpauseResponses = {
53312
54444
  /**
53313
54445
  * Permission mode for each new session; omitted or null inherits the agent policies.
53314
54446
  */
53315
- permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | null;
54447
+ permission_mode?: 'build' | 'edit' | 'plan' | 'yolo' | 'guarded' | null;
53316
54448
  /**
53317
54449
  * Working directory for each new session; omitted uses the session default.
53318
54450
  */
@@ -53407,11 +54539,11 @@ export type DeploymentsUnpauseResponses = {
53407
54539
  */
53408
54540
  budget?: null | AgentManaged76;
53409
54541
  /**
53410
- * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted.
54542
+ * Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted.
53411
54543
  */
53412
54544
  target: {
53413
54545
  /**
53414
- * environment uses an environment recipe; computer uses the personal agent computer.
54546
+ * environment uses an environment recipe; computer uses the agent computer.
53415
54547
  */
53416
54548
  type: 'environment' | 'computer';
53417
54549
  };
@@ -57220,7 +58352,7 @@ export type AutomationRunsCreateData = {
57220
58352
  [key: string]: string;
57221
58353
  };
57222
58354
  /**
57223
- * Positive integer seconds up to 604,800. Scripts default to and are capped at 300 seconds; workflows default to 86,400 seconds and allow up to seven days.
58355
+ * Positive integer seconds up to 2,592,000. Scripts default to and are capped at 300 seconds; workflows default to 86,400 seconds and allow up to 30 days.
57224
58356
  */
57225
58357
  deadline_seconds?: number;
57226
58358
  } | {
@@ -57247,7 +58379,7 @@ export type AutomationRunsCreateData = {
57247
58379
  [key: string]: string;
57248
58380
  };
57249
58381
  /**
57250
- * Positive integer seconds up to 604,800. Scripts default to and are capped at 300 seconds; workflows default to 86,400 seconds and allow up to seven days.
58382
+ * Positive integer seconds up to 2,592,000. Scripts default to and are capped at 300 seconds; workflows default to 86,400 seconds and allow up to 30 days.
57251
58383
  */
57252
58384
  deadline_seconds?: number;
57253
58385
  };
@@ -58767,6 +59899,247 @@ export type AutomationHooksReceiveResponses = {
58767
59899
  202: AutomationFiring;
58768
59900
  };
58769
59901
  export type AutomationHooksReceiveResponse = AutomationHooksReceiveResponses[keyof AutomationHooksReceiveResponses];
59902
+ export type AutomationHumanTasksListData = {
59903
+ body?: never;
59904
+ path?: never;
59905
+ query?: {
59906
+ /**
59907
+ * Page size, 1–100, default 50.
59908
+ */
59909
+ limit?: number;
59910
+ /**
59911
+ * The next_cursor of the previous page; omit for the first page.
59912
+ */
59913
+ cursor?: string;
59914
+ /**
59915
+ * Filter by status, comma-separated: open, completed, expired, cancelled. Defaults to open.
59916
+ */
59917
+ status?: Array<AutomationHumanTaskStatus>;
59918
+ /**
59919
+ * Only tasks opened by this run (run_).
59920
+ */
59921
+ run_id?: string;
59922
+ /**
59923
+ * assigned (default) lists only tasks assigned to the caller; all lists every task of the organization.
59924
+ */
59925
+ scope?: 'assigned' | 'all';
59926
+ };
59927
+ url: '/automation/v1/human-tasks';
59928
+ };
59929
+ export type AutomationHumanTasksListErrors = {
59930
+ /**
59931
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
59932
+ */
59933
+ 400: AutomationAutomationProblemDetails;
59934
+ /**
59935
+ * RFC 9457 automation problem. 429 includes Retry-After.
59936
+ */
59937
+ default: AutomationAutomationProblemDetails;
59938
+ };
59939
+ export type AutomationHumanTasksListError = AutomationHumanTasksListErrors[keyof AutomationHumanTasksListErrors];
59940
+ export type AutomationHumanTasksListResponses = {
59941
+ /**
59942
+ * Success
59943
+ */
59944
+ 200: {
59945
+ /**
59946
+ * Human tasks on this page, newest first.
59947
+ */
59948
+ data: Array<AutomationHumanTask>;
59949
+ /**
59950
+ * Cursor for the next page, passed back as cursor; null when there are no more.
59951
+ */
59952
+ next_cursor: string | null;
59953
+ };
59954
+ };
59955
+ export type AutomationHumanTasksListResponse = AutomationHumanTasksListResponses[keyof AutomationHumanTasksListResponses];
59956
+ export type AutomationHumanTasksGetData = {
59957
+ body?: never;
59958
+ path: {
59959
+ /**
59960
+ * Human task ID (htask_), from the list or the run's waits.
59961
+ */
59962
+ id: string;
59963
+ };
59964
+ query?: never;
59965
+ url: '/automation/v1/human-tasks/{id}';
59966
+ };
59967
+ export type AutomationHumanTasksGetErrors = {
59968
+ /**
59969
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
59970
+ */
59971
+ 400: AutomationAutomationProblemDetails;
59972
+ /**
59973
+ * HUMAN_TASK_NOT_FOUND: The human task does not exist or belongs to another organization; take the htask_ ID from the human-tasks list or the run's waits.
59974
+ */
59975
+ 404: AutomationAutomationProblemDetails;
59976
+ /**
59977
+ * RFC 9457 automation problem. 429 includes Retry-After.
59978
+ */
59979
+ default: AutomationAutomationProblemDetails;
59980
+ };
59981
+ export type AutomationHumanTasksGetError = AutomationHumanTasksGetErrors[keyof AutomationHumanTasksGetErrors];
59982
+ export type AutomationHumanTasksGetResponses = {
59983
+ /**
59984
+ * Success
59985
+ */
59986
+ 200: AutomationHumanTask;
59987
+ };
59988
+ export type AutomationHumanTasksGetResponse = AutomationHumanTasksGetResponses[keyof AutomationHumanTasksGetResponses];
59989
+ export type AutomationHumanTasksRespondData = {
59990
+ body: AutomationHumanTaskRespondInput;
59991
+ headers?: {
59992
+ /**
59993
+ * Optional; 1–256 characters. Within 24 hours, the same key replays the first response with Idempotent-Replayed: true; a different request body returns 422; an in-flight request returns 409.
59994
+ */
59995
+ 'Idempotency-Key'?: string;
59996
+ };
59997
+ path: {
59998
+ /**
59999
+ * Human task ID (htask_).
60000
+ */
60001
+ id: string;
60002
+ };
60003
+ query?: never;
60004
+ url: '/automation/v1/human-tasks/{id}/respond';
60005
+ };
60006
+ export type AutomationHumanTasksRespondErrors = {
60007
+ /**
60008
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60009
+ * COMMENT_REQUIRED: The chosen action requires a comment (require_comment: true); retry with comment set.
60010
+ * INVALID_ACTION: action_id is not one of the task's actions; read the task's actions for the valid ids.
60011
+ * INVALID_VALUES: values do not match the task's form_schema (unknown field, missing required field, wrong type or out-of-range value), or comment exceeds 4000 characters.
60012
+ */
60013
+ 400: AutomationAutomationProblemDetails;
60014
+ /**
60015
+ * NOT_ASSIGNED: The caller is not an assignee of this task, it is not yet their turn in sequential mode, or (for cancel) the caller is neither the run's initiator nor an organization API key.
60016
+ * SELF_APPROVAL: The person who started the run cannot respond to, or be delegated, their own request unless the workflow set allow_self_approval: true.
60017
+ * AGENT_NOT_ALLOWED: The request comes from an agent (an agent session or run token) and the task did not set allow_agent_decision: true; the person must respond from the Console or with their own credential.
60018
+ */
60019
+ 403: AutomationAutomationProblemDetails;
60020
+ /**
60021
+ * HUMAN_TASK_NOT_FOUND: The human task does not exist or belongs to another organization; take the htask_ ID from the human-tasks list or the run's waits.
60022
+ */
60023
+ 404: AutomationAutomationProblemDetails;
60024
+ /**
60025
+ * TASK_CLOSED: The task is already closed (decided, expired or cancelled) or past due_at; it no longer accepts responses, delegation or cancellation. Retrieve the task to read its outcome.
60026
+ * ALREADY_RESPONDED: The caller already responded; each assignee responds once.
60027
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
60028
+ */
60029
+ 409: AutomationAutomationProblemDetails;
60030
+ /**
60031
+ * IDEMPOTENCY_KEY_MISMATCH: The idempotency key was already used for different request content.
60032
+ */
60033
+ 422: AutomationAutomationProblemDetails;
60034
+ /**
60035
+ * RFC 9457 automation problem. 429 includes Retry-After.
60036
+ */
60037
+ default: AutomationAutomationProblemDetails;
60038
+ };
60039
+ export type AutomationHumanTasksRespondError = AutomationHumanTasksRespondErrors[keyof AutomationHumanTasksRespondErrors];
60040
+ export type AutomationHumanTasksRespondResponses = {
60041
+ /**
60042
+ * Success
60043
+ */
60044
+ 200: AutomationHumanTask;
60045
+ };
60046
+ export type AutomationHumanTasksRespondResponse = AutomationHumanTasksRespondResponses[keyof AutomationHumanTasksRespondResponses];
60047
+ export type AutomationHumanTasksCancelData = {
60048
+ body?: AutomationHumanTaskCancelInput;
60049
+ headers?: {
60050
+ /**
60051
+ * Optional; 1–256 characters. Within 24 hours, the same key replays the first response with Idempotent-Replayed: true; a different request body returns 422; an in-flight request returns 409.
60052
+ */
60053
+ 'Idempotency-Key'?: string;
60054
+ };
60055
+ path: {
60056
+ /**
60057
+ * Human task ID (htask_).
60058
+ */
60059
+ id: string;
60060
+ };
60061
+ query?: never;
60062
+ url: '/automation/v1/human-tasks/{id}/cancel';
60063
+ };
60064
+ export type AutomationHumanTasksCancelErrors = {
60065
+ /**
60066
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60067
+ */
60068
+ 400: AutomationAutomationProblemDetails;
60069
+ /**
60070
+ * NOT_ASSIGNED: The caller is not an assignee of this task, it is not yet their turn in sequential mode, or (for cancel) the caller is neither the run's initiator nor an organization API key.
60071
+ */
60072
+ 403: AutomationAutomationProblemDetails;
60073
+ /**
60074
+ * HUMAN_TASK_NOT_FOUND: The human task does not exist or belongs to another organization; take the htask_ ID from the human-tasks list or the run's waits.
60075
+ */
60076
+ 404: AutomationAutomationProblemDetails;
60077
+ /**
60078
+ * TASK_CLOSED: The task is already closed (decided, expired or cancelled) or past due_at; it no longer accepts responses, delegation or cancellation. Retrieve the task to read its outcome.
60079
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
60080
+ */
60081
+ 409: AutomationAutomationProblemDetails;
60082
+ /**
60083
+ * IDEMPOTENCY_KEY_MISMATCH: The idempotency key was already used for different request content.
60084
+ */
60085
+ 422: AutomationAutomationProblemDetails;
60086
+ /**
60087
+ * RFC 9457 automation problem. 429 includes Retry-After.
60088
+ */
60089
+ default: AutomationAutomationProblemDetails;
60090
+ };
60091
+ export type AutomationHumanTasksCancelError = AutomationHumanTasksCancelErrors[keyof AutomationHumanTasksCancelErrors];
60092
+ export type AutomationHumanTasksCancelResponses = {
60093
+ /**
60094
+ * Success
60095
+ */
60096
+ 200: AutomationHumanTask;
60097
+ };
60098
+ export type AutomationHumanTasksCancelResponse = AutomationHumanTasksCancelResponses[keyof AutomationHumanTasksCancelResponses];
60099
+ export type AutomationHumanTasksDelegateData = {
60100
+ body: AutomationHumanTaskDelegateInput;
60101
+ path: {
60102
+ /**
60103
+ * Human task ID (htask_).
60104
+ */
60105
+ id: string;
60106
+ };
60107
+ query?: never;
60108
+ url: '/automation/v1/human-tasks/{id}/delegate';
60109
+ };
60110
+ export type AutomationHumanTasksDelegateErrors = {
60111
+ /**
60112
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60113
+ */
60114
+ 400: AutomationAutomationProblemDetails;
60115
+ /**
60116
+ * NOT_ASSIGNED: The caller is not an assignee of this task, it is not yet their turn in sequential mode, or (for cancel) the caller is neither the run's initiator nor an organization API key.
60117
+ * SELF_APPROVAL: The person who started the run cannot respond to, or be delegated, their own request unless the workflow set allow_self_approval: true.
60118
+ */
60119
+ 403: AutomationAutomationProblemDetails;
60120
+ /**
60121
+ * HUMAN_TASK_NOT_FOUND: The human task does not exist or belongs to another organization; take the htask_ ID from the human-tasks list or the run's waits.
60122
+ */
60123
+ 404: AutomationAutomationProblemDetails;
60124
+ /**
60125
+ * TASK_CLOSED: The task is already closed (decided, expired or cancelled) or past due_at; it no longer accepts responses, delegation or cancellation. Retrieve the task to read its outcome.
60126
+ * ALREADY_RESPONDED: The caller already responded; each assignee responds once.
60127
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
60128
+ */
60129
+ 409: AutomationAutomationProblemDetails;
60130
+ /**
60131
+ * RFC 9457 automation problem. 429 includes Retry-After.
60132
+ */
60133
+ default: AutomationAutomationProblemDetails;
60134
+ };
60135
+ export type AutomationHumanTasksDelegateError = AutomationHumanTasksDelegateErrors[keyof AutomationHumanTasksDelegateErrors];
60136
+ export type AutomationHumanTasksDelegateResponses = {
60137
+ /**
60138
+ * Success
60139
+ */
60140
+ 200: AutomationHumanTask;
60141
+ };
60142
+ export type AutomationHumanTasksDelegateResponse = AutomationHumanTasksDelegateResponses[keyof AutomationHumanTasksDelegateResponses];
58770
60143
  export type DatabaseListDatabasesData = {
58771
60144
  body?: never;
58772
60145
  path?: never;
@@ -61265,6 +62638,10 @@ export type MediaListLibrariesErrors = {
61265
62638
  * Request failed; see the error code reference.
61266
62639
  */
61267
62640
  400: MediaMediaError;
62641
+ /**
62642
+ * Request failed; see the error code reference.
62643
+ */
62644
+ 403: MediaMediaError;
61268
62645
  /**
61269
62646
  * Request failed; see the error code reference.
61270
62647
  */
@@ -61352,6 +62729,10 @@ export type MediaCreateLibraryErrors = {
61352
62729
  * Request failed; see the error code reference.
61353
62730
  */
61354
62731
  400: MediaMediaError;
62732
+ /**
62733
+ * Request failed; see the error code reference.
62734
+ */
62735
+ 403: MediaMediaError;
61355
62736
  /**
61356
62737
  * Request failed; see the error code reference.
61357
62738
  */
@@ -61409,6 +62790,10 @@ export type MediaDeleteLibraryErrors = {
61409
62790
  * Request failed; see the error code reference.
61410
62791
  */
61411
62792
  400: MediaMediaError;
62793
+ /**
62794
+ * Request failed; see the error code reference.
62795
+ */
62796
+ 403: MediaMediaError;
61412
62797
  /**
61413
62798
  * Request failed; see the error code reference.
61414
62799
  */
@@ -61466,6 +62851,10 @@ export type MediaGetLibraryErrors = {
61466
62851
  * Request failed; see the error code reference.
61467
62852
  */
61468
62853
  400: MediaMediaError;
62854
+ /**
62855
+ * Request failed; see the error code reference.
62856
+ */
62857
+ 403: MediaMediaError;
61469
62858
  /**
61470
62859
  * Request failed; see the error code reference.
61471
62860
  */
@@ -61558,6 +62947,10 @@ export type MediaUpdateLibraryErrors = {
61558
62947
  * Request failed; see the error code reference.
61559
62948
  */
61560
62949
  400: MediaMediaError;
62950
+ /**
62951
+ * Request failed; see the error code reference.
62952
+ */
62953
+ 403: MediaMediaError;
61561
62954
  /**
61562
62955
  * Request failed; see the error code reference.
61563
62956
  */
@@ -61615,6 +63008,10 @@ export type MediaRestoreLibraryErrors = {
61615
63008
  * Request failed; see the error code reference.
61616
63009
  */
61617
63010
  400: MediaMediaError;
63011
+ /**
63012
+ * Request failed; see the error code reference.
63013
+ */
63014
+ 403: MediaMediaError;
61618
63015
  /**
61619
63016
  * Request failed; see the error code reference.
61620
63017
  */
@@ -61672,6 +63069,10 @@ export type MediaPurgeLibraryErrors = {
61672
63069
  * Request failed; see the error code reference.
61673
63070
  */
61674
63071
  400: MediaMediaError;
63072
+ /**
63073
+ * Request failed; see the error code reference.
63074
+ */
63075
+ 403: MediaMediaError;
61675
63076
  /**
61676
63077
  * Request failed; see the error code reference.
61677
63078
  */
@@ -61746,6 +63147,10 @@ export type MediaListAssetsErrors = {
61746
63147
  * Request failed; see the error code reference.
61747
63148
  */
61748
63149
  400: MediaMediaError;
63150
+ /**
63151
+ * Request failed; see the error code reference.
63152
+ */
63153
+ 403: MediaMediaError;
61749
63154
  /**
61750
63155
  * Request failed; see the error code reference.
61751
63156
  */
@@ -61829,7 +63234,7 @@ export type MediaUploadAssetData = {
61829
63234
  */
61830
63235
  filename_override?: string;
61831
63236
  /**
61832
- * Allow replacing an existing public_id, preserving its asset_id and increasing its version. False returns the existing resource without replacing it; defaults to true.
63237
+ * Allow replacing an existing public_id, preserving its asset_id and increasing its version. Only the latest version is deliverable; old version URLs return 404. Create a new public_id to retain old deliveries. False returns the existing resource without replacing it; defaults to true.
61833
63238
  */
61834
63239
  overwrite?: boolean;
61835
63240
  /**
@@ -61875,6 +63280,10 @@ export type MediaUploadAssetErrors = {
61875
63280
  * Request failed; see the error code reference.
61876
63281
  */
61877
63282
  400: MediaMediaError;
63283
+ /**
63284
+ * Request failed; see the error code reference.
63285
+ */
63286
+ 403: MediaMediaError;
61878
63287
  /**
61879
63288
  * Request failed; see the error code reference.
61880
63289
  */
@@ -61921,6 +63330,9 @@ export type MediaImportAssetData = {
61921
63330
  * Source and upload options for copying content into the library.
61922
63331
  */
61923
63332
  body: {
63333
+ /**
63334
+ * File ID to copy into this library; passed as the upload source instead of file bytes. This creates an independent public copy readable without authentication. Deleting the source File does not delete this asset; do not import confidential content.
63335
+ */
61924
63336
  file_id: string;
61925
63337
  /**
61926
63338
  * Explicit delivery identifier. If omitted, a random value is generated unless use_filename is true.
@@ -61955,7 +63367,7 @@ export type MediaImportAssetData = {
61955
63367
  */
61956
63368
  filename_override?: string;
61957
63369
  /**
61958
- * Allow replacing an existing public_id, preserving its asset_id and increasing its version. False returns the existing resource without replacing it; defaults to true.
63370
+ * Allow replacing an existing public_id, preserving its asset_id and increasing its version. Only the latest version is deliverable; old version URLs return 404. Create a new public_id to retain old deliveries. False returns the existing resource without replacing it; defaults to true.
61959
63371
  */
61960
63372
  overwrite?: boolean;
61961
63373
  /**
@@ -61991,6 +63403,10 @@ export type MediaImportAssetErrors = {
61991
63403
  * Request failed; see the error code reference.
61992
63404
  */
61993
63405
  400: MediaMediaError;
63406
+ /**
63407
+ * Request failed; see the error code reference.
63408
+ */
63409
+ 403: MediaMediaError;
61994
63410
  /**
61995
63411
  * Request failed; see the error code reference.
61996
63412
  */
@@ -62052,6 +63468,10 @@ export type MediaDeleteAssetErrors = {
62052
63468
  * Request failed; see the error code reference.
62053
63469
  */
62054
63470
  400: MediaMediaError;
63471
+ /**
63472
+ * Request failed; see the error code reference.
63473
+ */
63474
+ 403: MediaMediaError;
62055
63475
  /**
62056
63476
  * Request failed; see the error code reference.
62057
63477
  */
@@ -62113,6 +63533,10 @@ export type MediaGetAssetErrors = {
62113
63533
  * Request failed; see the error code reference.
62114
63534
  */
62115
63535
  400: MediaMediaError;
63536
+ /**
63537
+ * Request failed; see the error code reference.
63538
+ */
63539
+ 403: MediaMediaError;
62116
63540
  /**
62117
63541
  * Request failed; see the error code reference.
62118
63542
  */
@@ -62196,6 +63620,10 @@ export type MediaUpdateAssetErrors = {
62196
63620
  * Request failed; see the error code reference.
62197
63621
  */
62198
63622
  400: MediaMediaError;
63623
+ /**
63624
+ * Request failed; see the error code reference.
63625
+ */
63626
+ 403: MediaMediaError;
62199
63627
  /**
62200
63628
  * Request failed; see the error code reference.
62201
63629
  */
@@ -62265,6 +63693,10 @@ export type MediaReprocessAssetErrors = {
62265
63693
  * Request failed; see the error code reference.
62266
63694
  */
62267
63695
  400: MediaMediaError;
63696
+ /**
63697
+ * Request failed; see the error code reference.
63698
+ */
63699
+ 403: MediaMediaError;
62268
63700
  /**
62269
63701
  * Request failed; see the error code reference.
62270
63702
  */
@@ -62343,6 +63775,10 @@ export type MediaListUnderstandingsErrors = {
62343
63775
  * Request failed; see the error code reference.
62344
63776
  */
62345
63777
  400: MediaMediaError;
63778
+ /**
63779
+ * Request failed; see the error code reference.
63780
+ */
63781
+ 403: MediaMediaError;
62346
63782
  /**
62347
63783
  * Request failed; see the error code reference.
62348
63784
  */
@@ -62390,7 +63826,7 @@ export type MediaExpressionSearchData = {
62390
63826
  */
62391
63827
  body: {
62392
63828
  /**
62393
- * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets.
63829
+ * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context.
62394
63830
  */
62395
63831
  expression?: string;
62396
63832
  /**
@@ -62430,6 +63866,10 @@ export type MediaExpressionSearchErrors = {
62430
63866
  * Request failed; see the error code reference.
62431
63867
  */
62432
63868
  400: MediaMediaError;
63869
+ /**
63870
+ * Request failed; see the error code reference.
63871
+ */
63872
+ 403: MediaMediaError;
62433
63873
  /**
62434
63874
  * Request failed; see the error code reference.
62435
63875
  */
@@ -62513,6 +63953,10 @@ export type MediaVisualSearchErrors = {
62513
63953
  * Request failed; see the error code reference.
62514
63954
  */
62515
63955
  400: MediaMediaError;
63956
+ /**
63957
+ * Request failed; see the error code reference.
63958
+ */
63959
+ 403: MediaMediaError;
62516
63960
  /**
62517
63961
  * Request failed; see the error code reference.
62518
63962
  */
@@ -62590,6 +64034,10 @@ export type MediaSemanticSearchErrors = {
62590
64034
  * Request failed; see the error code reference.
62591
64035
  */
62592
64036
  400: MediaMediaError;
64037
+ /**
64038
+ * Request failed; see the error code reference.
64039
+ */
64040
+ 403: MediaMediaError;
62593
64041
  /**
62594
64042
  * Request failed; see the error code reference.
62595
64043
  */
@@ -62667,6 +64115,10 @@ export type MediaSearchErrors = {
62667
64115
  * Request failed; see the error code reference.
62668
64116
  */
62669
64117
  400: MediaMediaError;
64118
+ /**
64119
+ * Request failed; see the error code reference.
64120
+ */
64121
+ 403: MediaMediaError;
62670
64122
  /**
62671
64123
  * Request failed; see the error code reference.
62672
64124
  */
@@ -62729,6 +64181,10 @@ export type MediaListFoldersErrors = {
62729
64181
  * Request failed; see the error code reference.
62730
64182
  */
62731
64183
  400: MediaMediaError;
64184
+ /**
64185
+ * Request failed; see the error code reference.
64186
+ */
64187
+ 403: MediaMediaError;
62732
64188
  /**
62733
64189
  * Request failed; see the error code reference.
62734
64190
  */
@@ -62794,6 +64250,10 @@ export type MediaCreateBatchErrors = {
62794
64250
  * Request failed; see the error code reference.
62795
64251
  */
62796
64252
  400: MediaMediaError;
64253
+ /**
64254
+ * Request failed; see the error code reference.
64255
+ */
64256
+ 403: MediaMediaError;
62797
64257
  /**
62798
64258
  * Request failed; see the error code reference.
62799
64259
  */
@@ -62855,6 +64315,10 @@ export type MediaGetBatchErrors = {
62855
64315
  * Request failed; see the error code reference.
62856
64316
  */
62857
64317
  400: MediaMediaError;
64318
+ /**
64319
+ * Request failed; see the error code reference.
64320
+ */
64321
+ 403: MediaMediaError;
62858
64322
  /**
62859
64323
  * Request failed; see the error code reference.
62860
64324
  */
@@ -62920,6 +64384,10 @@ export type MediaBatchAssetsErrors = {
62920
64384
  * Request failed; see the error code reference.
62921
64385
  */
62922
64386
  400: MediaMediaError;
64387
+ /**
64388
+ * Request failed; see the error code reference.
64389
+ */
64390
+ 403: MediaMediaError;
62923
64391
  /**
62924
64392
  * Request failed; see the error code reference.
62925
64393
  */
@@ -62981,6 +64449,10 @@ export type MediaGetJobErrors = {
62981
64449
  * Request failed; see the error code reference.
62982
64450
  */
62983
64451
  400: MediaMediaError;
64452
+ /**
64453
+ * Request failed; see the error code reference.
64454
+ */
64455
+ 403: MediaMediaError;
62984
64456
  /**
62985
64457
  * Request failed; see the error code reference.
62986
64458
  */
@@ -63055,6 +64527,10 @@ export type MediaListEventsErrors = {
63055
64527
  * Request failed; see the error code reference.
63056
64528
  */
63057
64529
  400: MediaMediaError;
64530
+ /**
64531
+ * Request failed; see the error code reference.
64532
+ */
64533
+ 403: MediaMediaError;
63058
64534
  /**
63059
64535
  * Request failed; see the error code reference.
63060
64536
  */