@deepraxis/sdk 0.1.1-dev.61eb886 → 0.1.1-dev.68542bb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1020,19 +1020,10 @@ export type OwnFileCreateFileRequest = {
1020
1020
  */
1021
1021
  file: Blob | File;
1022
1022
  /**
1023
- * Purpose label stored with the file: user_data, assistants or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.
1023
+ * Purpose label stored with the file: user_data or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.
1024
1024
  */
1025
- purpose: 'user_data' | 'assistants' | 'vision';
1025
+ purpose: 'user_data' | 'vision';
1026
1026
  expires_after?: OwnFileFileExpirationAfter;
1027
- /**
1028
- * Own-face extensions. Use at most one expiry setting.
1029
- */
1030
- praxis?: {
1031
- /**
1032
- * Lifetime in seconds after creation, from 3600 through 7776000. Send as the multipart field praxis[expires_in_seconds]; mutually exclusive with expires_after.
1033
- */
1034
- expires_in_seconds?: number;
1035
- };
1036
1027
  };
1037
1028
  /**
1038
1029
  * OpenAIFile
@@ -1067,7 +1058,7 @@ export type OwnFileOpenAiFile = {
1067
1058
  /**
1068
1059
  * Upload purpose. Image references in conversations require user_data.
1069
1060
  */
1070
- purpose: 'user_data' | 'assistants' | 'vision';
1061
+ purpose: 'user_data' | 'vision';
1071
1062
  /**
1072
1063
  * Deprecated. The current status of the file, which can be either `uploaded`, `processed`, or `error`.
1073
1064
  *
@@ -1165,9 +1156,9 @@ export type OwnFilePraxisCreateUpload = {
1165
1156
  */
1166
1157
  mime_type: string;
1167
1158
  /**
1168
- * Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images.
1159
+ * Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images.
1169
1160
  */
1170
- purpose: 'user_data' | 'assistants' | 'vision';
1161
+ purpose: 'user_data' | 'vision';
1171
1162
  /**
1172
1163
  * Optional expiry policy for the resulting file; omission retains the file until deletion.
1173
1164
  */
@@ -1212,9 +1203,9 @@ export type OwnFilePraxisUpload = {
1212
1203
  */
1213
1204
  filename: string;
1214
1205
  /**
1215
- * File purpose: user_data for conversation attachments, assistants for assistant files, vision for images.
1206
+ * File purpose: user_data for conversation attachments, vision for images.
1216
1207
  */
1217
- purpose: 'user_data' | 'assistants' | 'vision';
1208
+ purpose: 'user_data' | 'vision';
1218
1209
  /**
1219
1210
  * Upload state: pending accepts parts; completed has a file; cancelled was cancelled; expired exceeded its one-hour lifetime.
1220
1211
  */
@@ -6054,6 +6045,40 @@ export type AgentSseEvent = ({
6054
6045
  */
6055
6046
  type: 'session.status_terminated';
6056
6047
  };
6048
+ } | {
6049
+ /**
6050
+ * Always `agent.thread_context_compacting`. SSE event name of this frame; its data is a agent.thread_context_compacting payload. Context compaction started; compaction_id identifies it and trigger is manual or auto.
6051
+ */
6052
+ event?: 'agent.thread_context_compacting';
6053
+ /**
6054
+ * Decoded JSON payload of this frame; its shape is selected by the event name.
6055
+ */
6056
+ data?: {
6057
+ /**
6058
+ * Text of the block.
6059
+ */
6060
+ id: string;
6061
+ /**
6062
+ * Always `agent.thread_context_compacting`. Context compaction started; compaction_id identifies it and trigger is manual or auto.
6063
+ */
6064
+ type: 'agent.thread_context_compacting';
6065
+ /**
6066
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
6067
+ */
6068
+ processed_at: string;
6069
+ /**
6070
+ * Text of the block.
6071
+ */
6072
+ session_thread_id?: string;
6073
+ /**
6074
+ * Identifier of the manual operation or automatic compaction record that has started.
6075
+ */
6076
+ compaction_id: string;
6077
+ /**
6078
+ * Whether a caller requested compaction or the session started it automatically.
6079
+ */
6080
+ trigger: 'manual' | 'auto';
6081
+ };
6057
6082
  } | {
6058
6083
  /**
6059
6084
  * Always `agent.thread_context_compacted`. SSE event name of this frame; its data is a agent.thread_context_compacted payload. The thread's context was compacted into a summary.
@@ -7453,7 +7478,7 @@ export type AgentSseEvent = ({
7453
7478
  /**
7454
7479
  * Server-Sent Events event name of this frame.
7455
7480
  */
7456
- event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'event_start' | 'event_delta' | 'ping' | 'error';
7481
+ event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'event_start' | 'event_delta' | 'ping' | 'error';
7457
7482
  data: AgentSseData;
7458
7483
  };
7459
7484
  export type AgentManaged256 = {
@@ -8726,7 +8751,7 @@ export type AutomationAutomationProblemDetails = {
8726
8751
  title: string;
8727
8752
  status: number;
8728
8753
  detail: string;
8729
- code: 'METHOD_NOT_ALLOWED' | 'TRIGGER_NOT_FOUND' | 'SCHEDULE_INVALID' | 'TIMEZONE_INVALID' | 'INTERVAL_TOO_SHORT' | 'TRIGGER_MANAGED' | 'TRIGGER_PAUSED' | 'TRIGGER_LIMIT' | 'ACTION_NOT_FOUND' | 'TARGET_NOT_FOUND' | 'VERSION_NOT_FOUND' | 'RUN_NOT_FOUND' | 'WAIT_NOT_FOUND' | 'NAME_TAKEN' | 'VERSION_EXISTS' | 'RUN_INVALID_STATE' | 'IDEMPOTENCY_IN_FLIGHT' | 'TARGET_ARCHIVED' | 'OPERATION_NOT_SUPPORTED' | 'WAIT_ALREADY_RESOLVED' | 'WAIT_EXPIRED' | 'PRECONDITION_FAILED' | 'PAYLOAD_TOO_LARGE' | 'SCHEMA_INCOMPATIBLE' | 'IDEMPOTENCY_KEY_MISMATCH' | 'NO_MATCHING_VERSION' | 'CYCLE_DETECTED' | 'DEFINITION_IDENTITY_MISMATCH' | 'DEFINITION_INVALID' | 'INPUT_INVALID' | 'TAG_INVALID' | 'TAG_REQUIRED' | 'INVALID_PARAMS' | 'NAMESPACE_FORBIDDEN' | 'OWNER_SUSPENDED' | 'RATE_LIMITED' | 'QUOTA_EXCEEDED' | 'SCRIPT_ERROR' | 'OUTPUT_INVALID' | 'CPU_LIMIT_EXCEEDED' | 'NOT_IMPLEMENTED';
8754
+ code: 'METHOD_NOT_ALLOWED' | 'TRIGGER_NOT_FOUND' | 'SCHEDULE_INVALID' | 'TIMEZONE_INVALID' | 'INTERVAL_TOO_SHORT' | 'TRIGGER_MANAGED' | 'TRIGGER_PAUSED' | 'TRIGGER_LIMIT' | 'ACTION_NOT_FOUND' | 'TARGET_NOT_FOUND' | 'VERSION_NOT_FOUND' | 'RUN_NOT_FOUND' | 'WAIT_NOT_FOUND' | 'NAME_TAKEN' | 'VERSION_EXISTS' | 'RUN_INVALID_STATE' | 'IDEMPOTENCY_IN_FLIGHT' | 'TARGET_ARCHIVED' | 'OPERATION_NOT_SUPPORTED' | 'WAIT_ALREADY_RESOLVED' | 'WAIT_EXPIRED' | 'PRECONDITION_FAILED' | 'PAYLOAD_TOO_LARGE' | 'SCHEMA_INCOMPATIBLE' | 'IDEMPOTENCY_KEY_MISMATCH' | 'NO_MATCHING_VERSION' | 'CYCLE_DETECTED' | 'DEFINITION_IDENTITY_MISMATCH' | 'DEFINITION_INVALID' | 'INPUT_INVALID' | 'TAG_INVALID' | 'TAG_REQUIRED' | 'INVALID_PARAMS' | 'NAMESPACE_FORBIDDEN' | 'OWNER_SUSPENDED' | 'RATE_LIMITED' | 'QUOTA_EXCEEDED' | 'SCRIPT_ERROR' | 'OUTPUT_INVALID' | 'CPU_LIMIT_EXCEEDED' | 'NOT_IMPLEMENTED' | 'HUMAN_TASK_NOT_FOUND' | 'TASK_CLOSED' | 'ALREADY_RESPONDED' | 'NOT_ASSIGNED' | 'SELF_APPROVAL' | 'AGENT_NOT_ALLOWED' | 'COMMENT_REQUIRED' | 'INVALID_ACTION' | 'INVALID_VALUES' | 'HUMAN_TASK_CANCELLED';
8730
8755
  errors: Array<AutomationDiagnostic>;
8731
8756
  issues: Array<AutomationCompatIssue>;
8732
8757
  hint: string | null;
@@ -9598,7 +9623,7 @@ export type AutomationRun = {
9598
9623
  */
9599
9624
  attach: null | 'wait' | 'detach';
9600
9625
  /**
9601
- * Deadline of the run (RFC 3339 UTC): creation time plus deadline_seconds (scripts default to and are capped at 300 seconds; workflows default to 86400 and are capped at 604800), and an awaited child ends at least 1 second before its parent's deadline.
9626
+ * Deadline of the run (RFC 3339 UTC): creation time plus deadline_seconds (scripts default to and are capped at 300 seconds; workflows default to 86400 and are capped at 2592000 (30 days)), and an awaited child ends at least 1 second before its parent's deadline.
9602
9627
  */
9603
9628
  deadline_at: string;
9604
9629
  /**
@@ -9792,7 +9817,7 @@ export type AutomationExpandedRun = {
9792
9817
  */
9793
9818
  attach: null | 'wait' | 'detach';
9794
9819
  /**
9795
- * Deadline of the run (RFC 3339 UTC): creation time plus deadline_seconds (scripts default to and are capped at 300 seconds; workflows default to 86400 and are capped at 604800), and an awaited child ends at least 1 second before its parent's deadline.
9820
+ * Deadline of the run (RFC 3339 UTC): creation time plus deadline_seconds (scripts default to and are capped at 300 seconds; workflows default to 86400 and are capped at 2592000 (30 days)), and an awaited child ends at least 1 second before its parent's deadline.
9796
9821
  */
9797
9822
  deadline_at: string;
9798
9823
  /**
@@ -10743,6 +10768,183 @@ export type AutomationTriggerPreview = {
10743
10768
  */
10744
10769
  next_fire_times: Array<string>;
10745
10770
  };
10771
+ export type AutomationHumanTaskStatus = 'open' | 'completed' | 'expired' | 'cancelled';
10772
+ export type AutomationHumanTask = {
10773
+ /**
10774
+ * Human task ID (htask_), derived deterministically from the run and step; use it with retrieve, respond, cancel and delegate. The Console page is /automation/tasks/{id}.
10775
+ */
10776
+ id: string;
10777
+ /**
10778
+ * ID of the organization that owns the task.
10779
+ */
10780
+ owner: string;
10781
+ /**
10782
+ * ID of the workflow run (run_) that opened the task; the run continues once the task closes.
10783
+ */
10784
+ run_id: string;
10785
+ /**
10786
+ * The published workflow of the run; null for an ad hoc run.
10787
+ */
10788
+ workflow: {
10789
+ /**
10790
+ * Workflow namespace.
10791
+ */
10792
+ namespace: string;
10793
+ /**
10794
+ * Workflow name.
10795
+ */
10796
+ name: string;
10797
+ } | null;
10798
+ /**
10799
+ * JSON Pointer of the approval step in the workflow source, for example /do/1/approveRefund.
10800
+ */
10801
+ task_reference: string;
10802
+ /**
10803
+ * ID of the run's wait (wait_htask_); it closes only through respond, never through the run wait completion endpoint.
10804
+ */
10805
+ wait_id: string;
10806
+ /**
10807
+ * Task kind; currently only approval.
10808
+ */
10809
+ kind: 'approval';
10810
+ /**
10811
+ * Approval title, at most 200 characters.
10812
+ */
10813
+ title: string;
10814
+ /**
10815
+ * Markdown details for the assignees, up to 16 KiB; empty string when not given.
10816
+ */
10817
+ body: string;
10818
+ /**
10819
+ * JSON context the workflow attached (for example the order), up to 32 KiB; null when not given.
10820
+ */
10821
+ context: AutomationJsonValue;
10822
+ /**
10823
+ * The 1–6 buttons an assignee chooses from; defaults to approve and reject.
10824
+ */
10825
+ actions: Array<AutomationHumanTaskAction>;
10826
+ /**
10827
+ * The form an assignee fills in (a JSON Schema subset - an object with at most 30 string, number, integer, boolean or enum fields); null when there is no form.
10828
+ */
10829
+ form_schema: AutomationJsonObject | null;
10830
+ /**
10831
+ * The assignees.
10832
+ */
10833
+ assignees: {
10834
+ /**
10835
+ * Assignee user IDs, 1–20; sequential mode follows this order. Delegation replaces an entry in place.
10836
+ */
10837
+ users: Array<string>;
10838
+ /**
10839
+ * Group assignment; not supported yet, always an empty array.
10840
+ */
10841
+ groups: Array<string>;
10842
+ };
10843
+ /**
10844
+ * Decision rule. any: the first response decides. all: everyone must respond and any rejection rejects at once. quorum: quorum approvals approve, and it rejects once that many approvals are no longer possible. sequential: assignees respond in users order; any rejection rejects at once and the last approval approves.
10845
+ */
10846
+ mode: 'any' | 'all' | 'quorum' | 'sequential';
10847
+ /**
10848
+ * Number of approvals required in quorum mode; null in other modes.
10849
+ */
10850
+ quorum: number | null;
10851
+ /**
10852
+ * When true, the person who started the run may respond to their own request; false by default.
10853
+ */
10854
+ allow_self_approval: boolean;
10855
+ /**
10856
+ * When true, an agent (agent session or run token) may respond; false by default.
10857
+ */
10858
+ allow_agent_decision: boolean;
10859
+ /**
10860
+ * The subject that started the run.
10861
+ */
10862
+ initiator: {
10863
+ /**
10864
+ * Initiator type: user, api_key, agent, run (a parent run) or trigger.
10865
+ */
10866
+ type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
10867
+ /**
10868
+ * Initiator ID.
10869
+ */
10870
+ id: string;
10871
+ /**
10872
+ * The user behind the initiator (the owner of an API key or trigger), null when unknown; the self-approval rule uses it.
10873
+ */
10874
+ user_id: string | null;
10875
+ };
10876
+ /**
10877
+ * Due time (RFC 3339); defaults to 3 days after creation, at most 30 days and never later than the run's deadline. on_timeout applies when it passes.
10878
+ */
10879
+ due_at: string;
10880
+ /**
10881
+ * What happens at due_at.
10882
+ */
10883
+ on_timeout: {
10884
+ /**
10885
+ * reject: the workflow receives decision timeout:reject. approve: it receives timeout:approve. fault (default): the step raises a timeout error that try/catch can catch.
10886
+ */
10887
+ action: 'reject' | 'approve' | 'fault';
10888
+ };
10889
+ /**
10890
+ * Reminder intervals (ISO 8601 durations, up to 3); stored, not yet sent in this version.
10891
+ */
10892
+ remind: Array<string>;
10893
+ /**
10894
+ * Notification channels: console or email; stored, delivery is not wired yet.
10895
+ */
10896
+ channels: Array<'console' | 'email'>;
10897
+ /**
10898
+ * An agent's proposal (any JSON up to 32 KiB) for the assignees to consider; null when not given.
10899
+ */
10900
+ proposal: AutomationJsonValue;
10901
+ /**
10902
+ * open: awaiting responses. completed: decided. expired: due_at passed. cancelled: withdrawn, including automatically when the run ended.
10903
+ */
10904
+ status: AutomationHumanTaskStatus;
10905
+ /**
10906
+ * Responses submitted so far, in order.
10907
+ */
10908
+ responses: Array<AutomationHumanTaskResponse>;
10909
+ /**
10910
+ * The decision, which is also the workflow step's output; null while open, and after a fault timeout or cancellation.
10911
+ */
10912
+ outcome: AutomationHumanTaskOutcome | null;
10913
+ /**
10914
+ * Creation time (RFC 3339).
10915
+ */
10916
+ created_at: string;
10917
+ /**
10918
+ * Last change time (RFC 3339).
10919
+ */
10920
+ updated_at: string;
10921
+ };
10922
+ export type AutomationHumanTaskRespondInput = {
10923
+ /**
10924
+ * The chosen action ID from the task's actions, for example approve.
10925
+ */
10926
+ action_id: string;
10927
+ /**
10928
+ * Form values matching the task's form_schema; omit or pass {} when there is no form.
10929
+ */
10930
+ values?: AutomationJsonObject;
10931
+ /**
10932
+ * Comment of at most 4000 characters; required when the action has require_comment true.
10933
+ */
10934
+ comment?: string;
10935
+ };
10936
+ export type AutomationHumanTaskCancelInput = {
10937
+ /**
10938
+ * Optional cancellation reason, at most 500 characters.
10939
+ */
10940
+ reason?: string;
10941
+ };
10942
+ export type AutomationHumanTaskDelegateInput = {
10943
+ /**
10944
+ * User ID taking over; cannot already be an assignee, nor the initiator unless self-approval is allowed.
10945
+ */
10946
+ to_user: string;
10947
+ };
10746
10948
  export type DatabaseCreateDatabaseInput = {
10747
10949
  /**
10748
10950
  * Display name for the database: 1–64 visible characters after trimming; control characters are rejected. It is not an identifier, so later calls still use the returned id.
@@ -10907,7 +11109,7 @@ export type DatabaseNewField = {
10907
11109
  */
10908
11110
  unique?: boolean;
10909
11111
  /**
10910
- * Whether to maintain an index for faster filters and ordering. Defaults to true for scalar types and is not allowed for json and link fields. At most 16 indexed or unique fields per table.
11112
+ * Whether to maintain an index for faster filters and ordering. Defaults to false and is not allowed for json and link fields. At most 16 indexed or unique fields per table.
10911
11113
  */
10912
11114
  indexed?: boolean;
10913
11115
  /**
@@ -10942,7 +11144,7 @@ export type DatabaseNewField = {
10942
11144
  */
10943
11145
  unique?: boolean;
10944
11146
  /**
10945
- * Whether to maintain an index for faster filters and ordering. Defaults to true for scalar types and is not allowed for json and link fields. At most 16 indexed or unique fields per table.
11147
+ * Whether to maintain an index for faster filters and ordering. Defaults to false and is not allowed for json and link fields. At most 16 indexed or unique fields per table.
10946
11148
  */
10947
11149
  indexed?: boolean;
10948
11150
  /**
@@ -10982,7 +11184,7 @@ export type DatabaseNewField = {
10982
11184
  */
10983
11185
  unique?: boolean;
10984
11186
  /**
10985
- * Whether to maintain an index for faster filters and ordering. Defaults to true for scalar types and is not allowed for json and link fields. At most 16 indexed or unique fields per table.
11187
+ * Whether to maintain an index for faster filters and ordering. Defaults to false and is not allowed for json and link fields. At most 16 indexed or unique fields per table.
10986
11188
  */
10987
11189
  indexed?: boolean;
10988
11190
  /**
@@ -13694,7 +13896,7 @@ export type OwnFileFileExpirationAfter = {
13694
13896
  */
13695
13897
  anchor: 'created_at';
13696
13898
  /**
13697
- * Lifetime in seconds after creation, from 3600 through 2592000. Send as expires_after[seconds]; do not combine with praxis[expires_in_seconds].
13899
+ * Lifetime in seconds after creation, from 3600 through 7776000. Send as expires_after[seconds].
13698
13900
  */
13699
13901
  seconds: number;
13700
13902
  };
@@ -19211,6 +19413,31 @@ export type AgentSseData = {
19211
19413
  * Always `session.status_terminated`. The session ended and accepts no more work.
19212
19414
  */
19213
19415
  type: 'session.status_terminated';
19416
+ } | {
19417
+ /**
19418
+ * Text of the block.
19419
+ */
19420
+ id: string;
19421
+ /**
19422
+ * Always `agent.thread_context_compacting`. Context compaction started; compaction_id identifies it and trigger is manual or auto.
19423
+ */
19424
+ type: 'agent.thread_context_compacting';
19425
+ /**
19426
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
19427
+ */
19428
+ processed_at: string;
19429
+ /**
19430
+ * Text of the block.
19431
+ */
19432
+ session_thread_id?: string;
19433
+ /**
19434
+ * Identifier of the manual operation or automatic compaction record that has started.
19435
+ */
19436
+ compaction_id: string;
19437
+ /**
19438
+ * Whether a caller requested compaction or the session started it automatically.
19439
+ */
19440
+ trigger: 'manual' | 'auto';
19214
19441
  } | {
19215
19442
  /**
19216
19443
  * Unique identifier for this event.
@@ -21332,6 +21559,72 @@ export type AutomationAttributedUsage = {
21332
21559
  */
21333
21560
  pending_events: number;
21334
21561
  };
21562
+ export type AutomationHumanTaskAction = {
21563
+ /**
21564
+ * Action ID to pass as action_id to respond; starts with a lowercase letter, at most 32 characters.
21565
+ */
21566
+ id: string;
21567
+ /**
21568
+ * Button label.
21569
+ */
21570
+ label: string;
21571
+ /**
21572
+ * primary: the main button. danger: a destructive button, which is the rejection in all, quorum and sequential modes. default: a plain button.
21573
+ */
21574
+ style: 'primary' | 'danger' | 'default';
21575
+ /**
21576
+ * When true, choosing this action requires a comment.
21577
+ */
21578
+ require_comment: boolean;
21579
+ };
21580
+ export type AutomationHumanTaskResponse = {
21581
+ /**
21582
+ * Who responded.
21583
+ */
21584
+ actor: AutomationHumanTaskActor;
21585
+ /**
21586
+ * The chosen action ID.
21587
+ */
21588
+ action_id: string;
21589
+ /**
21590
+ * Submitted form values; an empty object when there is no form.
21591
+ */
21592
+ values: AutomationJsonObject;
21593
+ /**
21594
+ * Comment; null when none.
21595
+ */
21596
+ comment: string | null;
21597
+ /**
21598
+ * Where it came from: console, api (the public API) or agent.
21599
+ */
21600
+ via: 'console' | 'api' | 'agent';
21601
+ /**
21602
+ * Submission time (RFC 3339).
21603
+ */
21604
+ at: string;
21605
+ };
21606
+ export type AutomationHumanTaskOutcome = {
21607
+ /**
21608
+ * The deciding action ID, or timeout:reject / timeout:approve when on_timeout decided.
21609
+ */
21610
+ decision: string;
21611
+ /**
21612
+ * Form values of the deciding response; an empty object on timeout.
21613
+ */
21614
+ values: AutomationJsonObject;
21615
+ /**
21616
+ * Comment of the deciding response; null on timeout.
21617
+ */
21618
+ comment: string | null;
21619
+ /**
21620
+ * Who decided; null on timeout.
21621
+ */
21622
+ decided_by: AutomationHumanTaskActor | null;
21623
+ /**
21624
+ * All responses at the time the task closed.
21625
+ */
21626
+ responses: Array<AutomationHumanTaskResponse>;
21627
+ };
21335
21628
  export type DatabaseField = {
21336
21629
  /**
21337
21630
  * Field identifier, prefixed fld_. Stable across renames; accepted wherever a field path parameter takes an id or name.
@@ -22180,7 +22473,7 @@ export type MediaSemanticHit = {
22180
22473
  */
22181
22474
  asset: MediaAsset;
22182
22475
  /**
22183
- * Ranking score: cosine similarity for semantic or visual search; normalized rank-fusion score for hybrid search. Higher values rank first.
22476
+ * Ranking score: cosine similarity for semantic or visual search; normalized rank-fusion score for hybrid search. Higher values rank first; hybrid scores are not probabilities or confidence.
22184
22477
  */
22185
22478
  score: number;
22186
22479
  /**
@@ -26210,6 +26503,20 @@ export type AgentManaged141 = {
26210
26503
  */
26211
26504
  type?: 'packages';
26212
26505
  };
26506
+ export type AutomationHumanTaskActor = {
26507
+ /**
26508
+ * The responder's user ID (for an agent, the user it acts for).
26509
+ */
26510
+ id: string;
26511
+ /**
26512
+ * human: the person responded. agent: an agent responded on their behalf.
26513
+ */
26514
+ kind: 'human' | 'agent';
26515
+ /**
26516
+ * Display name; this service does not resolve names, so it is null and the Console resolves it from the user ID.
26517
+ */
26518
+ display_name: string | null;
26519
+ };
26213
26520
  export type KnowledgeStaticChunking = {
26214
26521
  /**
26215
26522
  * static selects explicit chunk-size and overlap settings.
@@ -36146,11 +36453,11 @@ export type CompactSessionResponses = {
36146
36453
  */
36147
36454
  id: string;
36148
36455
  /**
36149
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36456
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
36150
36457
  */
36151
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36458
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
36152
36459
  /**
36153
- * Why the compaction was skipped or failed; absent otherwise.
36460
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
36154
36461
  */
36155
36462
  reason?: string;
36156
36463
  };
@@ -36167,11 +36474,11 @@ export type CompactSessionResponses = {
36167
36474
  */
36168
36475
  id: string;
36169
36476
  /**
36170
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36477
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
36171
36478
  */
36172
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36479
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
36173
36480
  /**
36174
- * Why the compaction was skipped or failed; absent otherwise.
36481
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
36175
36482
  */
36176
36483
  reason?: string;
36177
36484
  };
@@ -36229,11 +36536,11 @@ export type GetSessionCompactionResponses = {
36229
36536
  */
36230
36537
  id: string;
36231
36538
  /**
36232
- * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded and failed are final.
36539
+ * State of the compaction operation: queued and running are in progress, skipped means nothing needed compaction, succeeded, failed and cancelled are final.
36233
36540
  */
36234
- status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed';
36541
+ status: 'queued' | 'running' | 'skipped' | 'succeeded' | 'failed' | 'cancelled';
36235
36542
  /**
36236
- * Why the compaction was skipped or failed; absent otherwise.
36543
+ * Why the compaction was skipped, failed or cancelled; absent otherwise.
36237
36544
  */
36238
36545
  reason?: string;
36239
36546
  };
@@ -36278,6 +36585,27 @@ export type ListSessionCompactionsResponses = {
36278
36585
  * Compaction history
36279
36586
  */
36280
36587
  200: {
36588
+ /**
36589
+ * Current compaction, including queued manual requests; null when none is in progress. Manual takes precedence over automatic work.
36590
+ */
36591
+ active: {
36592
+ /**
36593
+ * Always `session_compaction`. Result of a compaction request.
36594
+ */
36595
+ type: 'session_compaction';
36596
+ /**
36597
+ * Identifier of the active manual operation or automatic compaction record.
36598
+ */
36599
+ id: string;
36600
+ /**
36601
+ * Whether compaction is waiting to start or generating its summary.
36602
+ */
36603
+ status: 'queued' | 'running';
36604
+ /**
36605
+ * Whether a caller requested compaction or the session started it automatically.
36606
+ */
36607
+ trigger: 'manual' | 'auto';
36608
+ } | null;
36281
36609
  /**
36282
36610
  * Items of this page, in the order requested by the call.
36283
36611
  */
@@ -38106,6 +38434,107 @@ export type MetaMethodsRetrieveResponses = {
38106
38434
  200: MetaMethod;
38107
38435
  };
38108
38436
  export type MetaMethodsRetrieveResponse = MetaMethodsRetrieveResponses[keyof MetaMethodsRetrieveResponses];
38437
+ export type MetaDocsRetrieveData = {
38438
+ body?: never;
38439
+ path: {
38440
+ /**
38441
+ * Slash-separated documentation path from docs.search; optionally append #heading-id to select a section.
38442
+ */
38443
+ path: string;
38444
+ };
38445
+ query?: {
38446
+ /**
38447
+ * Documentation language: zh for Chinese (default), en for English.
38448
+ */
38449
+ lang?: 'zh' | 'en';
38450
+ };
38451
+ url: '/meta/v1/docs/{path}';
38452
+ };
38453
+ export type MetaDocsRetrieveErrors = {
38454
+ /**
38455
+ * INVALID_PARAMS: lang must be zh or en; correct the language and retry.
38456
+ */
38457
+ 400: MetaProblem;
38458
+ /**
38459
+ * DOC_NOT_FOUND: page or anchor does not exist; use docs.search to find a valid documentation path.
38460
+ */
38461
+ 404: MetaProblem;
38462
+ };
38463
+ export type MetaDocsRetrieveError = MetaDocsRetrieveErrors[keyof MetaDocsRetrieveErrors];
38464
+ export type MetaDocsRetrieveResponses = {
38465
+ /**
38466
+ * Documentation page as Markdown, never the HTML website.
38467
+ */
38468
+ 200: {
38469
+ /**
38470
+ * Documentation path, including the requested section anchor when present.
38471
+ */
38472
+ path: string;
38473
+ /**
38474
+ * Human-readable title of the documentation page.
38475
+ */
38476
+ title: string;
38477
+ /**
38478
+ * Canonical documentation URL for reading the page in a browser.
38479
+ */
38480
+ url: string;
38481
+ /**
38482
+ * Compiled page Markdown, or only the requested heading section and its subsections.
38483
+ */
38484
+ markdown: string;
38485
+ };
38486
+ };
38487
+ export type MetaDocsRetrieveResponse = MetaDocsRetrieveResponses[keyof MetaDocsRetrieveResponses];
38488
+ export type MetaDocsSearchData = {
38489
+ body?: never;
38490
+ path?: never;
38491
+ query: {
38492
+ /**
38493
+ * Keywords describing the syntax or guide needed, for example export or workflow.
38494
+ */
38495
+ q: string;
38496
+ /**
38497
+ * Maximum number of matching pages returned; integer 1–50, default 20.
38498
+ */
38499
+ limit?: number;
38500
+ /**
38501
+ * Documentation language: zh for Chinese (default), en for English.
38502
+ */
38503
+ lang?: 'zh' | 'en';
38504
+ };
38505
+ url: '/meta/v1/docs/search';
38506
+ };
38507
+ export type MetaDocsSearchErrors = {
38508
+ /**
38509
+ * INVALID_PARAMS: supply nonempty q, limit from 1 to 50 and lang zh or en.
38510
+ */
38511
+ 400: MetaProblem;
38512
+ };
38513
+ export type MetaDocsSearchError = MetaDocsSearchErrors[keyof MetaDocsSearchErrors];
38514
+ export type MetaDocsSearchResponses = {
38515
+ /**
38516
+ * Matching documentation pages; empty when no page contains all keywords.
38517
+ */
38518
+ 200: Array<{
38519
+ /**
38520
+ * Documentation path, including the requested section anchor when present.
38521
+ */
38522
+ path: string;
38523
+ /**
38524
+ * Human-readable title of the documentation page.
38525
+ */
38526
+ title: string;
38527
+ /**
38528
+ * Canonical documentation URL for reading the page in a browser.
38529
+ */
38530
+ url: string;
38531
+ /**
38532
+ * Short excerpt from the matching page to help choose which documentation to retrieve.
38533
+ */
38534
+ snippet: string;
38535
+ }>;
38536
+ };
38537
+ export type MetaDocsSearchResponse = MetaDocsSearchResponses[keyof MetaDocsSearchResponses];
38109
38538
  export type ListModelsData = {
38110
38539
  body?: never;
38111
38540
  path?: never;
@@ -57883,7 +58312,7 @@ export type AutomationRunsCreateData = {
57883
58312
  [key: string]: string;
57884
58313
  };
57885
58314
  /**
57886
- * Positive integer seconds up to 604,800. Scripts default to and are capped at 300 seconds; workflows default to 86,400 seconds and allow up to seven days.
58315
+ * Positive integer seconds up to 2,592,000. Scripts default to and are capped at 300 seconds; workflows default to 86,400 seconds and allow up to 30 days.
57887
58316
  */
57888
58317
  deadline_seconds?: number;
57889
58318
  } | {
@@ -57910,7 +58339,7 @@ export type AutomationRunsCreateData = {
57910
58339
  [key: string]: string;
57911
58340
  };
57912
58341
  /**
57913
- * Positive integer seconds up to 604,800. Scripts default to and are capped at 300 seconds; workflows default to 86,400 seconds and allow up to seven days.
58342
+ * Positive integer seconds up to 2,592,000. Scripts default to and are capped at 300 seconds; workflows default to 86,400 seconds and allow up to 30 days.
57914
58343
  */
57915
58344
  deadline_seconds?: number;
57916
58345
  };
@@ -59430,6 +59859,247 @@ export type AutomationHooksReceiveResponses = {
59430
59859
  202: AutomationFiring;
59431
59860
  };
59432
59861
  export type AutomationHooksReceiveResponse = AutomationHooksReceiveResponses[keyof AutomationHooksReceiveResponses];
59862
+ export type AutomationHumanTasksListData = {
59863
+ body?: never;
59864
+ path?: never;
59865
+ query?: {
59866
+ /**
59867
+ * Page size, 1–100, default 50.
59868
+ */
59869
+ limit?: number;
59870
+ /**
59871
+ * The next_cursor of the previous page; omit for the first page.
59872
+ */
59873
+ cursor?: string;
59874
+ /**
59875
+ * Filter by status, comma-separated: open, completed, expired, cancelled. Defaults to open.
59876
+ */
59877
+ status?: Array<AutomationHumanTaskStatus>;
59878
+ /**
59879
+ * Only tasks opened by this run (run_).
59880
+ */
59881
+ run_id?: string;
59882
+ /**
59883
+ * assigned (default) lists only tasks assigned to the caller; all lists every task of the organization.
59884
+ */
59885
+ scope?: 'assigned' | 'all';
59886
+ };
59887
+ url: '/automation/v1/human-tasks';
59888
+ };
59889
+ export type AutomationHumanTasksListErrors = {
59890
+ /**
59891
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
59892
+ */
59893
+ 400: AutomationAutomationProblemDetails;
59894
+ /**
59895
+ * RFC 9457 automation problem. 429 includes Retry-After.
59896
+ */
59897
+ default: AutomationAutomationProblemDetails;
59898
+ };
59899
+ export type AutomationHumanTasksListError = AutomationHumanTasksListErrors[keyof AutomationHumanTasksListErrors];
59900
+ export type AutomationHumanTasksListResponses = {
59901
+ /**
59902
+ * Success
59903
+ */
59904
+ 200: {
59905
+ /**
59906
+ * Human tasks on this page, newest first.
59907
+ */
59908
+ data: Array<AutomationHumanTask>;
59909
+ /**
59910
+ * Cursor for the next page, passed back as cursor; null when there are no more.
59911
+ */
59912
+ next_cursor: string | null;
59913
+ };
59914
+ };
59915
+ export type AutomationHumanTasksListResponse = AutomationHumanTasksListResponses[keyof AutomationHumanTasksListResponses];
59916
+ export type AutomationHumanTasksGetData = {
59917
+ body?: never;
59918
+ path: {
59919
+ /**
59920
+ * Human task ID (htask_), from the list or the run's waits.
59921
+ */
59922
+ id: string;
59923
+ };
59924
+ query?: never;
59925
+ url: '/automation/v1/human-tasks/{id}';
59926
+ };
59927
+ export type AutomationHumanTasksGetErrors = {
59928
+ /**
59929
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
59930
+ */
59931
+ 400: AutomationAutomationProblemDetails;
59932
+ /**
59933
+ * HUMAN_TASK_NOT_FOUND: The human task does not exist or belongs to another organization; take the htask_ ID from the human-tasks list or the run's waits.
59934
+ */
59935
+ 404: AutomationAutomationProblemDetails;
59936
+ /**
59937
+ * RFC 9457 automation problem. 429 includes Retry-After.
59938
+ */
59939
+ default: AutomationAutomationProblemDetails;
59940
+ };
59941
+ export type AutomationHumanTasksGetError = AutomationHumanTasksGetErrors[keyof AutomationHumanTasksGetErrors];
59942
+ export type AutomationHumanTasksGetResponses = {
59943
+ /**
59944
+ * Success
59945
+ */
59946
+ 200: AutomationHumanTask;
59947
+ };
59948
+ export type AutomationHumanTasksGetResponse = AutomationHumanTasksGetResponses[keyof AutomationHumanTasksGetResponses];
59949
+ export type AutomationHumanTasksRespondData = {
59950
+ body: AutomationHumanTaskRespondInput;
59951
+ headers?: {
59952
+ /**
59953
+ * Optional; 1–256 characters. Within 24 hours, the same key replays the first response with Idempotent-Replayed: true; a different request body returns 422; an in-flight request returns 409.
59954
+ */
59955
+ 'Idempotency-Key'?: string;
59956
+ };
59957
+ path: {
59958
+ /**
59959
+ * Human task ID (htask_).
59960
+ */
59961
+ id: string;
59962
+ };
59963
+ query?: never;
59964
+ url: '/automation/v1/human-tasks/{id}/respond';
59965
+ };
59966
+ export type AutomationHumanTasksRespondErrors = {
59967
+ /**
59968
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
59969
+ * COMMENT_REQUIRED: The chosen action requires a comment (require_comment: true); retry with comment set.
59970
+ * INVALID_ACTION: action_id is not one of the task's actions; read the task's actions for the valid ids.
59971
+ * INVALID_VALUES: values do not match the task's form_schema (unknown field, missing required field, wrong type or out-of-range value), or comment exceeds 4000 characters.
59972
+ */
59973
+ 400: AutomationAutomationProblemDetails;
59974
+ /**
59975
+ * NOT_ASSIGNED: The caller is not an assignee of this task, it is not yet their turn in sequential mode, or (for cancel) the caller is neither the run's initiator nor an organization API key.
59976
+ * SELF_APPROVAL: The person who started the run cannot respond to, or be delegated, their own request unless the workflow set allow_self_approval: true.
59977
+ * AGENT_NOT_ALLOWED: The request comes from an agent (an agent session or run token) and the task did not set allow_agent_decision: true; the person must respond from the Console or with their own credential.
59978
+ */
59979
+ 403: AutomationAutomationProblemDetails;
59980
+ /**
59981
+ * HUMAN_TASK_NOT_FOUND: The human task does not exist or belongs to another organization; take the htask_ ID from the human-tasks list or the run's waits.
59982
+ */
59983
+ 404: AutomationAutomationProblemDetails;
59984
+ /**
59985
+ * TASK_CLOSED: The task is already closed (decided, expired or cancelled) or past due_at; it no longer accepts responses, delegation or cancellation. Retrieve the task to read its outcome.
59986
+ * ALREADY_RESPONDED: The caller already responded; each assignee responds once.
59987
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
59988
+ */
59989
+ 409: AutomationAutomationProblemDetails;
59990
+ /**
59991
+ * IDEMPOTENCY_KEY_MISMATCH: The idempotency key was already used for different request content.
59992
+ */
59993
+ 422: AutomationAutomationProblemDetails;
59994
+ /**
59995
+ * RFC 9457 automation problem. 429 includes Retry-After.
59996
+ */
59997
+ default: AutomationAutomationProblemDetails;
59998
+ };
59999
+ export type AutomationHumanTasksRespondError = AutomationHumanTasksRespondErrors[keyof AutomationHumanTasksRespondErrors];
60000
+ export type AutomationHumanTasksRespondResponses = {
60001
+ /**
60002
+ * Success
60003
+ */
60004
+ 200: AutomationHumanTask;
60005
+ };
60006
+ export type AutomationHumanTasksRespondResponse = AutomationHumanTasksRespondResponses[keyof AutomationHumanTasksRespondResponses];
60007
+ export type AutomationHumanTasksCancelData = {
60008
+ body?: AutomationHumanTaskCancelInput;
60009
+ headers?: {
60010
+ /**
60011
+ * Optional; 1–256 characters. Within 24 hours, the same key replays the first response with Idempotent-Replayed: true; a different request body returns 422; an in-flight request returns 409.
60012
+ */
60013
+ 'Idempotency-Key'?: string;
60014
+ };
60015
+ path: {
60016
+ /**
60017
+ * Human task ID (htask_).
60018
+ */
60019
+ id: string;
60020
+ };
60021
+ query?: never;
60022
+ url: '/automation/v1/human-tasks/{id}/cancel';
60023
+ };
60024
+ export type AutomationHumanTasksCancelErrors = {
60025
+ /**
60026
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60027
+ */
60028
+ 400: AutomationAutomationProblemDetails;
60029
+ /**
60030
+ * NOT_ASSIGNED: The caller is not an assignee of this task, it is not yet their turn in sequential mode, or (for cancel) the caller is neither the run's initiator nor an organization API key.
60031
+ */
60032
+ 403: AutomationAutomationProblemDetails;
60033
+ /**
60034
+ * HUMAN_TASK_NOT_FOUND: The human task does not exist or belongs to another organization; take the htask_ ID from the human-tasks list or the run's waits.
60035
+ */
60036
+ 404: AutomationAutomationProblemDetails;
60037
+ /**
60038
+ * TASK_CLOSED: The task is already closed (decided, expired or cancelled) or past due_at; it no longer accepts responses, delegation or cancellation. Retrieve the task to read its outcome.
60039
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
60040
+ */
60041
+ 409: AutomationAutomationProblemDetails;
60042
+ /**
60043
+ * IDEMPOTENCY_KEY_MISMATCH: The idempotency key was already used for different request content.
60044
+ */
60045
+ 422: AutomationAutomationProblemDetails;
60046
+ /**
60047
+ * RFC 9457 automation problem. 429 includes Retry-After.
60048
+ */
60049
+ default: AutomationAutomationProblemDetails;
60050
+ };
60051
+ export type AutomationHumanTasksCancelError = AutomationHumanTasksCancelErrors[keyof AutomationHumanTasksCancelErrors];
60052
+ export type AutomationHumanTasksCancelResponses = {
60053
+ /**
60054
+ * Success
60055
+ */
60056
+ 200: AutomationHumanTask;
60057
+ };
60058
+ export type AutomationHumanTasksCancelResponse = AutomationHumanTasksCancelResponses[keyof AutomationHumanTasksCancelResponses];
60059
+ export type AutomationHumanTasksDelegateData = {
60060
+ body: AutomationHumanTaskDelegateInput;
60061
+ path: {
60062
+ /**
60063
+ * Human task ID (htask_).
60064
+ */
60065
+ id: string;
60066
+ };
60067
+ query?: never;
60068
+ url: '/automation/v1/human-tasks/{id}/delegate';
60069
+ };
60070
+ export type AutomationHumanTasksDelegateErrors = {
60071
+ /**
60072
+ * INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
60073
+ */
60074
+ 400: AutomationAutomationProblemDetails;
60075
+ /**
60076
+ * NOT_ASSIGNED: The caller is not an assignee of this task, it is not yet their turn in sequential mode, or (for cancel) the caller is neither the run's initiator nor an organization API key.
60077
+ * SELF_APPROVAL: The person who started the run cannot respond to, or be delegated, their own request unless the workflow set allow_self_approval: true.
60078
+ */
60079
+ 403: AutomationAutomationProblemDetails;
60080
+ /**
60081
+ * HUMAN_TASK_NOT_FOUND: The human task does not exist or belongs to another organization; take the htask_ ID from the human-tasks list or the run's waits.
60082
+ */
60083
+ 404: AutomationAutomationProblemDetails;
60084
+ /**
60085
+ * TASK_CLOSED: The task is already closed (decided, expired or cancelled) or past due_at; it no longer accepts responses, delegation or cancellation. Retrieve the task to read its outcome.
60086
+ * ALREADY_RESPONDED: The caller already responded; each assignee responds once.
60087
+ * IDEMPOTENCY_IN_FLIGHT: A request with the same idempotency key is still in progress.
60088
+ */
60089
+ 409: AutomationAutomationProblemDetails;
60090
+ /**
60091
+ * RFC 9457 automation problem. 429 includes Retry-After.
60092
+ */
60093
+ default: AutomationAutomationProblemDetails;
60094
+ };
60095
+ export type AutomationHumanTasksDelegateError = AutomationHumanTasksDelegateErrors[keyof AutomationHumanTasksDelegateErrors];
60096
+ export type AutomationHumanTasksDelegateResponses = {
60097
+ /**
60098
+ * Success
60099
+ */
60100
+ 200: AutomationHumanTask;
60101
+ };
60102
+ export type AutomationHumanTasksDelegateResponse = AutomationHumanTasksDelegateResponses[keyof AutomationHumanTasksDelegateResponses];
59433
60103
  export type DatabaseListDatabasesData = {
59434
60104
  body?: never;
59435
60105
  path?: never;
@@ -62524,7 +63194,7 @@ export type MediaUploadAssetData = {
62524
63194
  */
62525
63195
  filename_override?: string;
62526
63196
  /**
62527
- * Allow replacing an existing public_id, preserving its asset_id and increasing its version. False returns the existing resource without replacing it; defaults to true.
63197
+ * Allow replacing an existing public_id, preserving its asset_id and increasing its version. Only the latest version is deliverable; old version URLs return 404. Create a new public_id to retain old deliveries. False returns the existing resource without replacing it; defaults to true.
62528
63198
  */
62529
63199
  overwrite?: boolean;
62530
63200
  /**
@@ -62621,7 +63291,7 @@ export type MediaImportAssetData = {
62621
63291
  */
62622
63292
  body: {
62623
63293
  /**
62624
- * File ID to copy into this library; passed as the upload source instead of file bytes.
63294
+ * File ID to copy into this library; passed as the upload source instead of file bytes. This creates an independent public copy readable without authentication. Deleting the source File does not delete this asset; do not import confidential content.
62625
63295
  */
62626
63296
  file_id: string;
62627
63297
  /**
@@ -62657,7 +63327,7 @@ export type MediaImportAssetData = {
62657
63327
  */
62658
63328
  filename_override?: string;
62659
63329
  /**
62660
- * Allow replacing an existing public_id, preserving its asset_id and increasing its version. False returns the existing resource without replacing it; defaults to true.
63330
+ * Allow replacing an existing public_id, preserving its asset_id and increasing its version. Only the latest version is deliverable; old version URLs return 404. Create a new public_id to retain old deliveries. False returns the existing resource without replacing it; defaults to true.
62661
63331
  */
62662
63332
  overwrite?: boolean;
62663
63333
  /**
@@ -63116,7 +63786,7 @@ export type MediaExpressionSearchData = {
63116
63786
  */
63117
63787
  body: {
63118
63788
  /**
63119
- * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets.
63789
+ * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context.
63120
63790
  */
63121
63791
  expression?: string;
63122
63792
  /**