@seclai/sdk 1.6.1 → 1.8.0

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.
package/dist/index.d.ts CHANGED
@@ -16,10 +16,17 @@ declare const SeclaiApiVersion: {
16
16
  readonly V2026_09_28: "2026-09-28";
17
17
  readonly V2026_09_30: "2026-09-30";
18
18
  readonly V2026_10_03: "2026-10-03";
19
+ readonly V2026_10_05: "2026-10-05";
20
+ readonly V2026_10_13: "2026-10-13";
21
+ readonly V2026_10_16: "2026-10-16";
22
+ readonly V2026_10_18: "2026-10-18";
23
+ readonly V2026_10_19: "2026-10-19";
24
+ readonly V2026_10_21: "2026-10-21";
25
+ readonly V2026_10_28: "2026-10-28";
19
26
  /** Baseline applied to an unpinned, header-less caller. */
20
27
  readonly Default: "2026-07-01";
21
28
  /** Newest version known to this SDK release. May lag the server. */
22
- readonly Latest: "2026-10-03";
29
+ readonly Latest: "2026-10-28";
23
30
  };
24
31
  /**
25
32
  * A dated API version. Known values autocomplete; any `YYYY-MM-DD` string still
@@ -30,6 +37,55 @@ type ApiVersion = (typeof SeclaiApiVersion)[keyof typeof SeclaiApiVersion] | (st
30
37
 
31
38
  interface components {
32
39
  schemas: {
40
+ /** AcceptedAttachmentSlot */
41
+ AcceptedAttachmentSlot: {
42
+ /**
43
+ * Content Types
44
+ * @description Accepted types, e.g. ``application/pdf`` or ``image/*``; empty accepts any type.
45
+ */
46
+ content_types?: string[];
47
+ /**
48
+ * Label
49
+ * @description Shown to people.
50
+ */
51
+ label?: string | null;
52
+ /**
53
+ * Max
54
+ * @description Most files a run may include; empty is no limit.
55
+ */
56
+ max?: number | null;
57
+ /**
58
+ * Min
59
+ * @description Fewest files a run must include; fewer refuses the run, except on an email trigger set to run anyway, which lists the shortfall.
60
+ * @default 0
61
+ */
62
+ min: number;
63
+ /**
64
+ * Name
65
+ * @description Lowercase letters, digits and underscores, starting with a letter. Steps reference the files as ``{{agent.attachments.<name>}}``.
66
+ */
67
+ name: string;
68
+ /**
69
+ * Name Pattern
70
+ * @description Filename glob a file must also match, ignoring case.
71
+ */
72
+ name_pattern?: string | null;
73
+ };
74
+ /** AcceptedAttachmentsResponse */
75
+ AcceptedAttachmentsResponse: {
76
+ /** Accepted Attachments */
77
+ accepted_attachments: components["schemas"]["AcceptedAttachmentSlot"][];
78
+ /**
79
+ * Agent Id
80
+ * Format: uuid
81
+ */
82
+ agent_id: string;
83
+ /**
84
+ * Trigger Id
85
+ * Format: uuid
86
+ */
87
+ trigger_id: string;
88
+ };
33
89
  /** AddConversationTurnRequest */
34
90
  AddConversationTurnRequest: {
35
91
  /**
@@ -67,19 +123,23 @@ interface components {
67
123
  };
68
124
  /**
69
125
  * AgentAttachmentRefsApiResponse
70
- * @description Static attachment-reference contract for an agent.
126
+ * @description The input attachments an agent's trigger declares.
71
127
  *
72
- * Mirrors the MCP ``get_agent_attachment_references`` tool: returns
73
- * what files (if any) an agent's templates expect on a run so API
74
- * consumers can stage uploads correctly before calling
128
+ * Mirrors the MCP ``get_agent_attachment_references`` tool, so API
129
+ * consumers can stage uploads that fit before calling
75
130
  * ``POST /agents/{id}/runs``.
76
131
  */
77
132
  AgentAttachmentRefsApiResponse: {
78
- /** @description Aggregated selector summary across all consumer steps. ``exact_names`` entries must each appear in the upload batch; ``indexes_max+1`` is the minimum file count; every ``patterns`` glob must match at least one upload. */
133
+ /**
134
+ * Accepted Attachments
135
+ * @description The attachments the agent's trigger declares. A run's files are each assigned to one; a file none accepts, or an attachment with fewer files than its ``min``, rejects the run with HTTP 400. Steps reference one as ``{{agent.attachments.<name>}}``.
136
+ */
137
+ accepted_attachments?: components["schemas"]["AcceptedAttachmentSlot"][];
138
+ /** @description Aggregated summary of the agent-file references in the steps. Informational: which files a run accepts is ``accepted_attachments``. */
79
139
  agent?: components["schemas"]["AttachmentRefsSourceApiSummary"];
80
140
  /**
81
141
  * Requires Uploads
82
- * @description When ``false`` the agent's definition does NOT reference any uploaded attachments — ``POST /agents/{id}/upload-input`` will reject with HTTP 400. When ``true`` the ``agent`` block lists the specific selectors a run-time batch must satisfy.
142
+ * @description When ``false`` the agent takes no files through the API — it has no ``dynamic_input`` trigger, or that trigger declares no attachments — and ``POST /agents/{id}/upload-input`` will reject with HTTP 400. When ``true`` ``accepted_attachments`` lists what a run's files must fit.
83
143
  */
84
144
  requires_uploads: boolean;
85
145
  };
@@ -192,6 +252,12 @@ interface components {
192
252
  * @enum {string}
193
253
  */
194
254
  AgentEvaluationTier: "fast" | "balanced" | "thorough";
255
+ /** AgentExampleListResponse */
256
+ AgentExampleListResponse: {
257
+ /** Data */
258
+ data: unknown[];
259
+ pagination: components["schemas"]["PaginationResponse"];
260
+ };
195
261
  /**
196
262
  * AgentExportResponse
197
263
  * @description Portable JSON snapshot of an agent definition.
@@ -199,7 +265,7 @@ interface components {
199
265
  AgentExportResponse: {
200
266
  /**
201
267
  * Agent
202
- * @description Agent metadata and full definition. Keys: name, description, schema_version, definition, default_evaluation_tier, evaluation_mode, sampling_config, max_retries, retry_on_failure, prompt_model_auto_upgrade_strategy, prompt_model_auto_rollback_enabled, prompt_model_auto_rollback_triggers, created_at, updated_at.
268
+ * @description Agent metadata and full definition. Keys: name, description, schema_version, definition, default_evaluation_tier, evaluation_mode, sampling_config, max_retries, retry_on_failure, prompt_model_auto_upgrade_strategy, prompt_model_auto_rollback_enabled, prompt_model_auto_rollback_triggers, max_credits_per_run, max_credits_per_period, max_runs_per_hour, max_runs_per_day, max_runs_total, created_at, updated_at.
203
269
  */
204
270
  agent: {
205
271
  [key: string]: unknown;
@@ -321,16 +387,16 @@ interface components {
321
387
  input?: string | null;
322
388
  /**
323
389
  * Input Upload Id
324
- * @description ID of a previously uploaded file (via POST /{agent_id}/upload-input) to use as the run input for dynamic-input triggers. Mutually exclusive with ``input_upload_ids`` — use that field to attach multiple files. May be combined with ``input``: the prompt text leads and the file's extracted text follows under a ``# {filename}`` heading.
390
+ * @description ID of a previously uploaded file (via POST /{agent_id}/upload-input) to use as the run input for dynamic-input triggers. Mutually exclusive with ``input_upload_ids`` — use that field to attach multiple files. May be combined with ``input``: the prompt text leads and the file follows under a ``# {filename}`` heading (before ``Seclai-Version: 2026-10-16``, followed by its extracted text).
325
391
  *
326
- * **Attachment visibility:** a step only sees the upload when its template references the input — via ``{{input}}`` / ``{{agent.input}}`` / ``{{step.<id>.input|output}}`` (implicit, all attachments) or the ``{{attachments[…]}}`` family (explicit narrowing — e.g. ``{{attachments[0]}}``, ``{{attachments[*.pdf]}}``).
392
+ * **Which steps receive it:** a step that sends or stores files takes the files its ``attachments`` field selects. An LLM step (``prompt_call``, ``extract_data``, ``evaluate_step``) takes the files its ``attachments`` field names, or else the files its plain-text templates reference: ``{{agent.attachments.<name>}}`` for one attachment the trigger declares, or ``{{agent.input}}`` for every upload unless a template also names an agent attachment.
327
393
  *
328
- * **Per-batch validation:** every selector the agent's definition declares must be satisfied or the run is rejected with HTTP 400. Exact-name selectors require that filename to be present; indexed selectors require at least N+1 files; glob patterns require at least one matching filename.
394
+ * **Per-batch validation:** the batch must fit the trigger's ``accepted_attachments`` — every file fits one declared attachment and each attachment gets at least its ``min`` files — or the run is rejected with HTTP 400.
329
395
  */
330
396
  input_upload_id?: string | null;
331
397
  /**
332
398
  * Input Upload Ids
333
- * @description IDs of multiple previously uploaded files. Each upload's extracted text is concatenated under a heading; each upload's binary is surfaced as a separate ``MediaAttachment`` so multi-modal prompt steps reason over all files at once. Steps narrow visibility via ``{{attachments[…]}}`` selectors (by index, filename, or fnmatch glob). The batch must satisfy every selector the agent declares — exact names, indexed references (length must exceed the highest index), and glob patterns (each pattern needs at least one match). Mismatches return HTTP 400 with the unmet requirements listed. Mutually exclusive with ``input_upload_id`` (two spellings of the same batch), but may be combined with ``input`` — the prompt text leads and the per-file sections follow, so "a photo plus a sentence about it" needs no synthetic text upload. Max 20 uploads per run.
399
+ * @description IDs of multiple previously uploaded files. Each upload gets a heading in ``input`` (before ``Seclai-Version: 2026-10-16``, followed by its extracted text); each upload reaches steps as a separate file (before ``Seclai-Version: 2026-10-16``, a text upload in the open ``files`` attachment is written into ``input`` instead). Steps choose files as described under ``input_upload_id``. The batch must fit the trigger's ``accepted_attachments``; a mismatch returns HTTP 400 listing what does not fit. Mutually exclusive with ``input_upload_id`` (two spellings of the same batch), but may be combined with ``input`` — the prompt text leads and the per-file sections follow, so "a photo plus a sentence about it" needs no synthetic text upload. Max 20 uploads per run.
334
400
  */
335
401
  input_upload_ids?: string[] | null;
336
402
  /**
@@ -348,7 +414,7 @@ interface components {
348
414
  priority: boolean;
349
415
  /**
350
416
  * Replay Of Run Id
351
- * @description Re-run this agent reusing a prior run's uploaded input files. The files are re-resolved server-side from the source run (which must belong to this account and agent) — you do not re-upload them. Combine with ``input`` to change the text while keeping the files. A fresh upload batch (``input_upload_id(s)``) takes precedence and disables replay. Binaries swept by retention fall back to their extracted text.
417
+ * @description Re-run this agent reusing a prior run's uploaded input files. The files are re-resolved server-side from the source run (which must belong to this account and agent) — you do not re-upload them. Combine with ``input`` to change the text while keeping the files. A fresh upload batch (``input_upload_id(s)``) takes precedence and disables replay. Binaries swept by retention fall back to their extracted text. Files the trigger's ``accepted_attachments`` no longer accepts are left out.
352
418
  */
353
419
  replay_of_run_id?: string | null;
354
420
  };
@@ -411,7 +477,7 @@ interface components {
411
477
  input_scan_status?: string | null;
412
478
  /**
413
479
  * Output
414
- * @description The run's output text; its files are in `attachments`. Below `Seclai-Version: 2026-09-30` an output that has files is instead the manifest JSON `{schema, text, attachments: [{storage_key, mime, name, label, bytes}]}`; `bytes` is absent on runs made before that version shipped.
480
+ * @description The run's output text; its files are in `attachments`. Below `Seclai-Version: 2026-09-30` an output that has files is instead the manifest JSON `{schema, text, attachments: [{storage_key, mime, name, label, bytes}]}`; `bytes` can be `null` on runs made before that version shipped.
415
481
  */
416
482
  output: string | null;
417
483
  /**
@@ -443,7 +509,7 @@ interface components {
443
509
  steps?: components["schemas"]["AgentRunStepResponse"][] | null;
444
510
  /**
445
511
  * Trace Purged At
446
- * @description When this run's trace content was deleted under the account's agent-trace retention window. Non-null means `input`, `output` and every step's and tool call's I/O are null **by design** and will never be available again — the run aged out, it did not fail. Branch on this rather than on a null `output`: a run that genuinely produced nothing looks identical. Status, timing and credits remain accurate.
512
+ * @description When this run's trace content was deleted under the account's agent-trace retention window. Non-null means `input`, `output` and every step's and tool call's I/O are null **by design** and will never be available again — the run aged out, it did not fail. A tool call's `error` may be null as well, so a failed tool call can report its status without a message. Branch on this rather than on a null `output`: a run that genuinely produced nothing looks identical. Status, timing and credits remain accurate.
447
513
  */
448
514
  trace_purged_at?: string | null;
449
515
  /**
@@ -469,6 +535,11 @@ interface components {
469
535
  * @description Credits consumed by this step across every attempt it made. Some charges made outside any step, such as governance screening of the run's input, count toward the run's total but no step's. The timestamps above and the tool calls below describe the latest attempt only.
470
536
  */
471
537
  credits_used: number;
538
+ /**
539
+ * Decision
540
+ * @description The arm an `if_else` or `switch` step took: `then` or `else`, or the case name or `else`. Null for other step types, until the step has decided, and when a `switch` took no arm.
541
+ */
542
+ decision?: string | null;
472
543
  /**
473
544
  * Duration Seconds
474
545
  * @description Duration of the step attempt in seconds.
@@ -486,7 +557,7 @@ interface components {
486
557
  input: string | null;
487
558
  /**
488
559
  * Output
489
- * @description Output text produced by the step, if any; its files are in `attachments`. Below `Seclai-Version: 2026-09-30`, the manifest JSON when the step output files and is not a `for_each`.
560
+ * @description Output text produced by the step, if any; its files are in `attachments`. Below `Seclai-Version: 2026-09-30`, the manifest JSON when the step output files and is not a `for_each`. For an `if_else` or `switch`, the result of the arm it took (its input when that arm is empty or it took none); below `Seclai-Version: 2026-10-28`, the `{"branch": ...}` marker naming that arm, with no `attachments`.
490
561
  */
491
562
  output: string | null;
492
563
  /**
@@ -513,12 +584,18 @@ interface components {
513
584
  tool_calls?: components["schemas"]["AgentRunToolCallResponse"][];
514
585
  /**
515
586
  * Warnings
516
- * @description Authoring problems the step ran into, whether or not it then failed, such as a file name selector that matched none of its source's files.
587
+ * @description Problems the step ran into, whether or not it then failed, such as a file name selector that matched none of its source's files, or a model that returned no answer.
517
588
  */
518
589
  warnings?: string[] | null;
519
590
  };
520
591
  /** AgentRunStreamRequest */
521
592
  AgentRunStreamRequest: {
593
+ /**
594
+ * Include Reasoning
595
+ * @description Receive `stream_reasoning` events carrying the model's reasoning while it thinks. They are sent only for a `streaming_result` step whose author enabled `show_reasoning`, and never when a governance policy redacts that step.
596
+ * @default false
597
+ */
598
+ include_reasoning: boolean;
522
599
  /**
523
600
  * Input
524
601
  * @description Input to provide to the agent upon running for agents with dynamic triggers.
@@ -526,12 +603,12 @@ interface components {
526
603
  input?: string | null;
527
604
  /**
528
605
  * Input Upload Id
529
- * @description ID of a previously uploaded file (via POST /{agent_id}/upload-input) to use as the run input for dynamic-input triggers. Mutually exclusive with ``input_upload_ids`` — use that field to attach multiple files. May be combined with ``input``. Subject to the same per-batch attachment-selector validation as the non-streaming endpoint.
606
+ * @description ID of a previously uploaded file (via POST /{agent_id}/upload-input) to use as the run input for dynamic-input triggers. Mutually exclusive with ``input_upload_ids`` — use that field to attach multiple files. May be combined with ``input``. Must fit the trigger's ``accepted_attachments``, as on the non-streaming endpoint.
530
607
  */
531
608
  input_upload_id?: string | null;
532
609
  /**
533
610
  * Input Upload Ids
534
- * @description IDs of multiple previously uploaded files. See the non-streaming endpoint for full semantics, including per-batch selector validation (exact names, indexed references, and glob patterns must all be satisfied or the run is rejected with HTTP 400) and combining the batch with ``input`` prompt text. Max 20.
611
+ * @description IDs of multiple previously uploaded files. See the non-streaming endpoint for full semantics, including fitting the trigger's ``accepted_attachments`` (else HTTP 400) and combining the batch with ``input`` prompt text. Max 20.
535
612
  */
536
613
  input_upload_ids?: string[] | null;
537
614
  /**
@@ -543,7 +620,7 @@ interface components {
543
620
  } | null;
544
621
  /**
545
622
  * Replay Of Run Id
546
- * @description Re-run reusing a prior run's uploaded input files (re-resolved server-side from the source run, which must belong to this account and agent). A fresh upload batch takes precedence.
623
+ * @description Re-run reusing a prior run's uploaded input files (re-resolved server-side from the source run, which must belong to this account and agent). A fresh upload batch takes precedence. Files the trigger's ``accepted_attachments`` no longer accepts are left out.
547
624
  */
548
625
  replay_of_run_id?: string | null;
549
626
  };
@@ -624,6 +701,13 @@ interface components {
624
701
  * @description ISO 8601 creation timestamp.
625
702
  */
626
703
  created_at: string;
704
+ /**
705
+ * Created Resources
706
+ * @description On a create from an `agent_template`: {slot: resource_id} for each resource `create_missing_resources` created.
707
+ */
708
+ created_resources?: {
709
+ [key: string]: string;
710
+ } | null;
627
711
  /**
628
712
  * Default Evaluation Tier
629
713
  * @description Default evaluation tier: fast, balanced, or thorough.
@@ -666,12 +750,37 @@ interface components {
666
750
  * @description One entry per item dropped or substituted during import. Present only on endpoints that accept agent_definition; null on non-import calls; [] when the import had no skips.
667
751
  */
668
752
  import_warnings?: components["schemas"]["ImportSkipResponse"][] | null;
753
+ /**
754
+ * Max Credits Per Period
755
+ * @description Credit limit per billing period; null when none.
756
+ */
757
+ max_credits_per_period?: number | null;
758
+ /**
759
+ * Max Credits Per Run
760
+ * @description Credit limit per run; null when none.
761
+ */
762
+ max_credits_per_run?: number | null;
669
763
  /**
670
764
  * Max Retries
671
765
  * @description Max retries for eval_and_retry mode.
672
766
  * @default 3
673
767
  */
674
768
  max_retries: number;
769
+ /**
770
+ * Max Runs Per Day
771
+ * @description Runs per day limit; null when none.
772
+ */
773
+ max_runs_per_day?: number | null;
774
+ /**
775
+ * Max Runs Per Hour
776
+ * @description Runs per hour limit; null when none.
777
+ */
778
+ max_runs_per_hour?: number | null;
779
+ /**
780
+ * Max Runs Total
781
+ * @description Limit on runs in total; null when none.
782
+ */
783
+ max_runs_total?: number | null;
675
784
  /**
676
785
  * Name
677
786
  * @description Agent name.
@@ -707,6 +816,16 @@ interface components {
707
816
  sampling_config?: {
708
817
  [key: string]: unknown;
709
818
  } | null;
819
+ /**
820
+ * Solution Id
821
+ * @description On a create from an `agent_template` that created resources: the solution grouping the agent with them.
822
+ */
823
+ solution_id?: string | null;
824
+ /**
825
+ * Trigger Id
826
+ * @description ID of the agent's trigger, for the `/agents/{agent_id}/triggers/{trigger_id}/…` endpoints such as `accepted-attachments` and `email-config`.
827
+ */
828
+ trigger_id?: string | null;
710
829
  /**
711
830
  * Trigger Type
712
831
  * @description Trigger type for the agent.
@@ -1499,6 +1618,64 @@ interface components {
1499
1618
  /** Started At */
1500
1619
  started_at?: string | null;
1501
1620
  };
1621
+ /**
1622
+ * ContentAttachmentResponse
1623
+ * @description A file attached to a content item.
1624
+ */
1625
+ ContentAttachmentResponse: {
1626
+ /**
1627
+ * Content Type
1628
+ * @description MIME type of the attached file.
1629
+ */
1630
+ content_type: string;
1631
+ /**
1632
+ * Created At
1633
+ * @description When the file was first attached.
1634
+ */
1635
+ created_at: string;
1636
+ /**
1637
+ * Id
1638
+ * @description The attachment's id, which the single-attachment endpoints take.
1639
+ */
1640
+ id: string;
1641
+ /**
1642
+ * Indexed
1643
+ * @description Whether indexing the file for search was asked for.
1644
+ */
1645
+ indexed: boolean;
1646
+ /**
1647
+ * Indexing Error
1648
+ * @description Why the file was not indexed, when `indexing_status` is `failed`.
1649
+ */
1650
+ indexing_error: string | null;
1651
+ /**
1652
+ * Indexing Status
1653
+ * @description `pending`, `completed` or `failed`; null when indexing was not asked for. Search finds the file only when `completed`.
1654
+ */
1655
+ indexing_status: string | null;
1656
+ /**
1657
+ * Key
1658
+ * @description The attachment's key, unique within the item.
1659
+ */
1660
+ key: string;
1661
+ /**
1662
+ * Metadata
1663
+ * @description What is known about the file beyond its bytes. An image extracted from a PDF carries its `page_number`, and `page_render: true` when it is a render of the whole page. An image or video from a web page carries `source_url` (the address it was fetched from), `position` (its place among the media the page listed, from 0) and, when the page gave one, `alt_text`. Empty for most files. A retrieval metadata filter matches these keys, except `alt_text`, which is indexed as the attachment's text.
1664
+ */
1665
+ metadata: {
1666
+ [key: string]: unknown;
1667
+ };
1668
+ /**
1669
+ * Size Bytes
1670
+ * @description Size of the attached file in bytes.
1671
+ */
1672
+ size_bytes: number;
1673
+ /**
1674
+ * Updated At
1675
+ * @description When the attachment last changed.
1676
+ */
1677
+ updated_at: string;
1678
+ };
1502
1679
  /**
1503
1680
  * ContentEmbeddingResponse
1504
1681
  * @description Response model for content embedding.
@@ -1798,6 +1975,31 @@ interface components {
1798
1975
  * @description Chunk size for content processing.
1799
1976
  */
1800
1977
  chunk_size?: number | null;
1978
+ /**
1979
+ * Cloud Drive Connection Id
1980
+ * @description Required for a cloud_drive source, and ignored on any other: the id of a connected drive, from GET /cloud-drives.
1981
+ */
1982
+ cloud_drive_connection_id?: string | null;
1983
+ /**
1984
+ * Cloud Drive Content Types
1985
+ * @description For a cloud_drive source: comma-separated MIME types a file must have to be indexed. Omit for no filter.
1986
+ */
1987
+ cloud_drive_content_types?: string | null;
1988
+ /**
1989
+ * Cloud Drive Folder Path
1990
+ * @description For a cloud_drive source: the folder to index, as a path inside the drive. Omit to index the connected drive's own folder.
1991
+ */
1992
+ cloud_drive_folder_path?: string | null;
1993
+ /**
1994
+ * Cloud Drive Max File Mb
1995
+ * @description For a cloud_drive source: files larger than this many megabytes are skipped. Omit for no limit of the source's own.
1996
+ */
1997
+ cloud_drive_max_file_mb?: number | null;
1998
+ /**
1999
+ * Cloud Drive Path Pattern
2000
+ * @description For a cloud_drive source: a glob a file's path must match to be indexed, such as `**\/*.pdf` or `/reports/*`. Omit for no filter.
2001
+ */
2002
+ cloud_drive_path_pattern?: string | null;
1801
2003
  /**
1802
2004
  * Content Filter
1803
2005
  * @description Content filter type.
@@ -1808,16 +2010,31 @@ interface components {
1808
2010
  * @description Embedding dimensions override.
1809
2011
  */
1810
2012
  dimensions?: number | null;
2013
+ /**
2014
+ * Document Images
2015
+ * @description Whether the images inside PDF, DOCX, PPTX and XLSX files are attached to the item and indexed; on a text-only embedder, by the text in each image. Applies to documents added after it changes. Defaults to true; below Seclai-Version 2026-10-18 it defaults to false on a text-only embedder. On a website or RSS source it is ignored: `media_types` decides.
2016
+ */
2017
+ document_images?: boolean | null;
2018
+ /**
2019
+ * Email Allowed Senders
2020
+ * @description Required for an email source, and only valid there: the senders whose mail is stored. Each entry is a full address (news@example.com) or a bare domain (example.com), which also matches its sub-domains. Matched against the message's From address, which must pass DMARC.
2021
+ */
2022
+ email_allowed_senders?: string[] | null;
1811
2023
  /**
1812
2024
  * Embedding Model
1813
2025
  * @description Embedding model override — a `model_type` from `GET /models/embedders`, which also reports each embedder's `supported_input_media`. Defaults to the platform embedder (`default_model_type` on that endpoint) when omitted. Indexing images or video requires an embedder that lists that modality.
1814
2026
  */
1815
2027
  embedding_model?: string | null;
2028
+ /**
2029
+ * Feed Attachments
2030
+ * @description Kinds of file listed beside a feed item's content to attach to the item and index, on an RSS source. Subset of ['enclosures', 'item_image', 'media_rss']; any other value is refused. None are attached unless chosen.
2031
+ */
2032
+ feed_attachments?: string[] | null;
1816
2033
  /** @description Index mode for custom_index sources: fast_and_cheap (default), balanced, slow_and_thorough, or custom. */
1817
2034
  index_mode?: components["schemas"]["SourceIndexMode"] | null;
1818
2035
  /**
1819
2036
  * Media Types
1820
- * @description Media kinds to extract from indexed content and embed as multi-modal KB chunks. Subset of ['images', 'video']. Only kinds the source's embedder can index are honored (see `supported_input_media` on GET /models/embedders); unsupported values are dropped. Omit / [] for text-only.
2037
+ * @description Media kinds in a web page's main content to attach to the page's item and index, on a website or RSS source. Subset of ['images', 'video']. From `Seclai-Version: 2026-10-13` any other value, and any kind on another source type, is refused with a 400; older versions drop an unknown value and store the rest. A kind the source's embedder cannot index is stored and not indexed (see `supported_input_media` on GET /models/embedders). 'images' also covers the images inside PDF, DOCX, PPTX and XLSX files. Applies to pages and documents added after it is set.
1821
2038
  */
1822
2039
  media_types?: string[] | null;
1823
2040
  /**
@@ -1837,7 +2054,7 @@ interface components {
1837
2054
  polling_action?: string | null;
1838
2055
  /**
1839
2056
  * Polling Max Items
1840
- * @description Max items per poll.
2057
+ * @description The most new feed items a scheduled poll takes. Read for RSS feeds only: from Seclai-Version 2026-10-19 any other source type rejects it with 400. Earlier versions store it there. An email source rejects it at every version.
1841
2058
  */
1842
2059
  polling_max_items?: number | null;
1843
2060
  /**
@@ -1847,7 +2064,7 @@ interface components {
1847
2064
  retention?: number | null;
1848
2065
  /**
1849
2066
  * Source Type
1850
- * @description Source type: rss, website, or custom_index. The legacy value 'file_uploads' is accepted as an alias for custom_index.
2067
+ * @description Source type: rss_feed, website, custom_index, cloud_drive or email. The legacy value 'file_uploads' is accepted as an alias for custom_index.
1851
2068
  */
1852
2069
  source_type: string;
1853
2070
  /**
@@ -2043,6 +2260,69 @@ interface components {
2043
2260
  /** Vanity Plan Names */
2044
2261
  vanity_plan_names?: string[];
2045
2262
  };
2263
+ /**
2264
+ * EmailSourceRejectionListResponse
2265
+ * @description A page of mail an email content source refused.
2266
+ */
2267
+ EmailSourceRejectionListResponse: {
2268
+ /** Data */
2269
+ data: components["schemas"]["EmailSourceRejectionResponse"][];
2270
+ pagination: components["schemas"]["PaginationResponse"];
2271
+ };
2272
+ /**
2273
+ * EmailSourceRejectionResponse
2274
+ * @description Mail an email content source refused: who sent it and why, never what
2275
+ * it said.
2276
+ */
2277
+ EmailSourceRejectionResponse: {
2278
+ /**
2279
+ * Auth Verdicts
2280
+ * @description The SPF, DKIM and DMARC verdicts reported for the message.
2281
+ */
2282
+ auth_verdicts?: {
2283
+ [key: string]: string;
2284
+ };
2285
+ /**
2286
+ * Authenticated
2287
+ * @description Whether the message passed DMARC, which is what authenticates its From address. Adding an unauthenticated sender to the allowed senders does not let its mail in.
2288
+ */
2289
+ authenticated: boolean;
2290
+ /**
2291
+ * Created At
2292
+ * @description When the mail was refused.
2293
+ */
2294
+ created_at: string;
2295
+ /**
2296
+ * From Address
2297
+ * @description The address in the message's From line, which the source's allowed senders are matched against. Null when no single From address could be read from the message unambiguously.
2298
+ */
2299
+ from_address?: string | null;
2300
+ /**
2301
+ * Id
2302
+ * @description Unique identifier of the refusal.
2303
+ */
2304
+ id: string;
2305
+ /**
2306
+ * Reason
2307
+ * @description Why it was refused: sender_not_allowed, unauthenticated_sender, unreadable_from, sender_blocked, spam, virus, unsafe_content, rate_limited, account_not_chargeable, spend_limit_reached or empty_message; or, for a message the source received before, what became of the earlier one: repeat_stored, repeat_held, repeat_deleted or repeat_in_progress.
2308
+ */
2309
+ reason: string;
2310
+ /**
2311
+ * Recipient
2312
+ * @description The source address it was sent to.
2313
+ */
2314
+ recipient: string;
2315
+ /**
2316
+ * Sender
2317
+ * @description The envelope sender. For bulk mail this is the delivery provider's bounce address, not the From address.
2318
+ */
2319
+ sender: string;
2320
+ /**
2321
+ * Sender Ip
2322
+ * @description IP address the mail came from.
2323
+ */
2324
+ sender_ip: string | null;
2325
+ };
2046
2326
  /**
2047
2327
  * EmailTriggerConfigResponse
2048
2328
  * @description An EMAIL_RECEIVED trigger's resolved address(es) and config.
@@ -2074,6 +2354,11 @@ interface components {
2074
2354
  * @default true
2075
2355
  */
2076
2356
  email_require_sender_auth: boolean;
2357
+ /**
2358
+ * Email Run On Attachment Mismatch
2359
+ * @default false
2360
+ */
2361
+ email_run_on_attachment_mismatch: boolean;
2077
2362
  /**
2078
2363
  * Trigger Id
2079
2364
  * Format: uuid
@@ -2370,7 +2655,7 @@ interface components {
2370
2655
  EvaluationResultSummaryResponse: {
2371
2656
  /**
2372
2657
  * Average Score
2373
- * @description Mean score across all evaluated results, or null if none.
2658
+ * @description Mean score of the final passed and failed results, or null if none. On /api before Seclai-Version 2026-10-21 it averages every final result's stored score, `error` included.
2374
2659
  */
2375
2660
  average_score?: number | null;
2376
2661
  /** Error */
@@ -2677,7 +2962,7 @@ interface components {
2677
2962
  GenerateAgentStepsResponse: {
2678
2963
  /**
2679
2964
  * Agent Config
2680
- * @description Suggested agent-level configuration, if any.
2965
+ * @description Suggested agent-level configuration, if any. For an email_received agent it may carry `email_run_on_attachment_mismatch`, which the caller applies through the trigger's email-config endpoint. For a dynamic_input or email_received agent it may carry `accepted_attachments`, which the caller passes with the steps to `PUT /agents/{agent_id}/definition` so both save together.
2681
2966
  */
2682
2967
  agent_config?: {
2683
2968
  [key: string]: unknown;
@@ -3027,7 +3312,7 @@ interface components {
3027
3312
  };
3028
3313
  /**
3029
3314
  * InsufficientCreditsDetail
3030
- * @description ``detail`` body for a 402 ``insufficient_credits`` response.
3315
+ * @description ``error`` body of a 402 ``insufficient_credits`` response.
3031
3316
  */
3032
3317
  InsufficientCreditsDetail: {
3033
3318
  /**
@@ -3036,11 +3321,11 @@ interface components {
3036
3321
  */
3037
3322
  account_id: string;
3038
3323
  /**
3039
- * Error
3324
+ * Code
3040
3325
  * @description Stable machine-readable error code.
3041
3326
  * @constant
3042
3327
  */
3043
- error: "insufficient_credits";
3328
+ code: "insufficient_credits";
3044
3329
  /**
3045
3330
  * Message
3046
3331
  * @description Human-readable explanation.
@@ -3050,9 +3335,11 @@ interface components {
3050
3335
  /**
3051
3336
  * InsufficientCreditsResponse
3052
3337
  * @description 402 envelope returned when the account has exhausted its credits.
3338
+ *
3339
+ * The wire shape ``http_exception_handler`` and ``insufficient_credits_exception_handler`` send.
3053
3340
  */
3054
3341
  InsufficientCreditsResponse: {
3055
- detail: components["schemas"]["InsufficientCreditsDetail"];
3342
+ error: components["schemas"]["InsufficientCreditsDetail"];
3056
3343
  };
3057
3344
  JsonValue: unknown;
3058
3345
  /**
@@ -3722,6 +4009,14 @@ interface components {
3722
4009
  message: string;
3723
4010
  };
3724
4011
  };
4012
+ /** SetAcceptedAttachmentsRequest */
4013
+ SetAcceptedAttachmentsRequest: {
4014
+ /**
4015
+ * Accepted Attachments
4016
+ * @description The input attachments the trigger accepts; ``null`` accepts any files (one attachment named ``files``). Only ``dynamic_input``, ``email_received`` and ``slack_command`` triggers take files.
4017
+ */
4018
+ accepted_attachments: components["schemas"]["AcceptedAttachmentSlot"][] | null;
4019
+ };
3725
4020
  /**
3726
4021
  * SetAutoBlockModeRequest
3727
4022
  * @description Set the account's governance auto-block mode (shared REST request).
@@ -3730,6 +4025,145 @@ interface components {
3730
4025
  /** Mode */
3731
4026
  mode: string;
3732
4027
  };
4028
+ /**
4029
+ * SetSlackTriggerConfigApiRequest
4030
+ * @description Omitted fields are left unchanged.
4031
+ */
4032
+ SetSlackTriggerConfigApiRequest: {
4033
+ /** @description `everywhere` in scope, or `channel_opt_in`. */
4034
+ activation?: components["schemas"]["SlackTriggerActivation"] | null;
4035
+ /**
4036
+ * Allow Dms
4037
+ * @description Runnable in the app's own DMs.
4038
+ */
4039
+ allow_dms?: boolean | null;
4040
+ /** Channel Ids */
4041
+ channel_ids?: string[] | null;
4042
+ /**
4043
+ * Form
4044
+ * @description Form fields `{key, label, type, required, hint, choices, max_length}`. `type`: short_text, long_text, number, single_choice, multi_choice, yes_no, date, slack_user or slack_channel. Each value reaches the run as `{{metadata.<key>}}`.
4045
+ */
4046
+ form?: {
4047
+ [key: string]: unknown;
4048
+ }[] | null;
4049
+ /** Include Invoker Email */
4050
+ include_invoker_email?: boolean | null;
4051
+ /**
4052
+ * Input
4053
+ * @description The trigger's input template. Each `{{metadata.<key>}}` in it must be a form field key or a platform key; it is checked together with `form`.
4054
+ */
4055
+ input?: string | null;
4056
+ /** Max Turns */
4057
+ max_turns?: number | null;
4058
+ /**
4059
+ * Mcp Client Id
4060
+ * @description The account's connected Slack (Bot) MCP client.
4061
+ */
4062
+ mcp_client_id?: string | null;
4063
+ /** Notify Failure After Answer */
4064
+ notify_failure_after_answer?: boolean | null;
4065
+ /** @description `selected_channels` (see `channel_ids`) or `bot_channels`. */
4066
+ scope?: components["schemas"]["SlackTriggerScope"] | null;
4067
+ /** Start Without Form */
4068
+ start_without_form?: boolean | null;
4069
+ /** Turns Anyone */
4070
+ turns_anyone?: boolean | null;
4071
+ /** Turns Enabled */
4072
+ turns_enabled?: boolean | null;
4073
+ /** @description `channel`, or `private` (replies in the person's DM). */
4074
+ visibility?: components["schemas"]["SlackReplyVisibility"] | null;
4075
+ };
4076
+ /**
4077
+ * SkippedAttachmentReason
4078
+ * @enum {string}
4079
+ */
4080
+ SkippedAttachmentReason: "displayed_in_body" | "over_cap" | "no_filename" | "undecodable";
4081
+ /**
4082
+ * SkippedAttachmentResponse
4083
+ * @description A part of an email that was not stored as an attachment.
4084
+ */
4085
+ SkippedAttachmentResponse: {
4086
+ /**
4087
+ * Content Type
4088
+ * @description The part's declared media type.
4089
+ */
4090
+ content_type: string;
4091
+ /**
4092
+ * Filename
4093
+ * @description The file name the part is listed under; null when it had none.
4094
+ */
4095
+ filename: string | null;
4096
+ /** @description Why the part was not stored. */
4097
+ reason: components["schemas"]["SkippedAttachmentReason"];
4098
+ /**
4099
+ * Size Bytes
4100
+ * @description Decoded size in bytes.
4101
+ */
4102
+ size_bytes: number | null;
4103
+ };
4104
+ /**
4105
+ * SlackReplyVisibility
4106
+ * @enum {string}
4107
+ */
4108
+ SlackReplyVisibility: "channel" | "private";
4109
+ /**
4110
+ * SlackTriggerActivation
4111
+ * @enum {string}
4112
+ */
4113
+ SlackTriggerActivation: "everywhere" | "channel_opt_in";
4114
+ /** SlackTriggerConfigApiResponse */
4115
+ SlackTriggerConfigApiResponse: {
4116
+ /** Activation */
4117
+ activation: string;
4118
+ /**
4119
+ * Agent Id
4120
+ * Format: uuid
4121
+ */
4122
+ agent_id: string;
4123
+ /** Allow Dms */
4124
+ allow_dms: boolean;
4125
+ /** Channel Ids */
4126
+ channel_ids: string[];
4127
+ /** Form */
4128
+ form: {
4129
+ [key: string]: unknown;
4130
+ }[];
4131
+ /** Include Invoker Email */
4132
+ include_invoker_email: boolean;
4133
+ /** Max Turns */
4134
+ max_turns: number | null;
4135
+ /** Mcp Client Id */
4136
+ mcp_client_id: string | null;
4137
+ /**
4138
+ * Missing Scopes
4139
+ * @description Scopes the Slack connection lacks for optional features.
4140
+ */
4141
+ missing_scopes: string[];
4142
+ /** Notify Failure After Answer */
4143
+ notify_failure_after_answer: boolean;
4144
+ /** Scope */
4145
+ scope: string;
4146
+ /** Slack Team Id */
4147
+ slack_team_id: string | null;
4148
+ /** Start Without Form */
4149
+ start_without_form: boolean;
4150
+ /**
4151
+ * Trigger Id
4152
+ * Format: uuid
4153
+ */
4154
+ trigger_id: string;
4155
+ /** Turns Anyone */
4156
+ turns_anyone: boolean;
4157
+ /** Turns Enabled */
4158
+ turns_enabled: boolean;
4159
+ /** Visibility */
4160
+ visibility: string;
4161
+ };
4162
+ /**
4163
+ * SlackTriggerScope
4164
+ * @enum {string}
4165
+ */
4166
+ SlackTriggerScope: "selected_channels" | "bot_channels";
3733
4167
  /** SolutionSourceConnectionResponse */
3734
4168
  SolutionSourceConnectionResponse: {
3735
4169
  /**
@@ -3880,20 +4314,26 @@ interface components {
3880
4314
  error: string | null;
3881
4315
  /**
3882
4316
  * Extracted Media Capped
3883
- * @description True when extraction stopped with media still unread, so the item references more media than was indexed and media search will not match anything past the cut. Two causes: a web page that ran out of the budget for fetching remote assets, or a container that could not be read to the end (a truncated or hostile archive). An uploaded document that reads cleanly is never capped, however much media it holds — there is no limit on that.
4317
+ * @description True when extraction stopped with media still unread, so the item references more media than was attached and media search will not match anything past the cut. The cause is a web page that ran out of the budget for fetching remote assets or listed more media than is recorded, or a web page or document that could not be read to the end.
3884
4318
  * @default false
3885
4319
  */
3886
4320
  extracted_media_capped: boolean;
3887
4321
  /**
3888
4322
  * Extracted Media Count
3889
- * @description Number of embedded images / videos extracted from inside this item and indexed as their own chunks. There is no limit on this — a document contributes as many as it holds. Null when there is no media record for the item: the extraction pass has not run, does not apply to this container, or found nothing. Treat null as 'unknown', never as zero.
4323
+ * @description Number of images / videos in this web page's main content, or of images inside this PDF or Office document, that were attached to the item on this source; a file over the per-file size limit, listed as a failed attachment, is not counted. Null when there is no media record for the item: the extraction pass has not run, does not apply to this container or this source's settings, or found nothing. Treat null as 'unknown', never as zero.
3890
4324
  */
3891
4325
  extracted_media_count?: number | null;
3892
4326
  /**
3893
4327
  * Extracted Media Limit
3894
- * @description The bound that was reached, when extracted_media_capped is true and the stop was a bound — a number of fetch attempts, or a number of seconds. Null when extraction was not capped, or when it stopped because the container could not be read rather than because a bound fired.
4328
+ * @description The bound that was reached, when extracted_media_capped is true and the stop was a bound — a number of fetch attempts, of seconds, of bytes, or of media listed. Null when extraction was not capped, or when it stopped because the container could not be read rather than because a bound fired.
3895
4329
  */
3896
4330
  extracted_media_limit?: number | null;
4331
+ /**
4332
+ * Held For Review
4333
+ * @description An ENFORCE governance policy blocked this item at import. It is held for review and is not retrievable: resolving its blocking evaluations releases it into the source; left unresolved, it is purged when the hold window ends.
4334
+ * @default false
4335
+ */
4336
+ held_for_review: boolean;
3897
4337
  /**
3898
4338
  * Indexed At
3899
4339
  * @description Timestamp when the item finished indexing and became retrievable. `null` until then.
@@ -3914,9 +4354,14 @@ interface components {
3914
4354
  * @description Timestamp when the item was uploaded or pulled.
3915
4355
  */
3916
4356
  pulled_at: string;
4357
+ /**
4358
+ * Release Waiting Reason
4359
+ * @description Set on a held item review approved whose release was refused: why it waits, the account being unable to pay for it or the source's spend limit having no room for it. Its release is retried; null until one is refused.
4360
+ */
4361
+ release_waiting_reason?: string | null;
3917
4362
  /**
3918
4363
  * Source Connection Content Version Id
3919
- * @description ID to pass to `GET /contents/{id}`. `null` until the item has finished indexing — an item that is still processing, or that failed, has no retrievable content and keeps this `null`.
4364
+ * @description ID to pass to `GET /contents/{id}`. `null` while the item has no retrievable content.
3920
4365
  */
3921
4366
  source_connection_content_version_id: string | null;
3922
4367
  /**
@@ -4029,6 +4474,31 @@ interface components {
4029
4474
  * @description Chunk size for content processing.
4030
4475
  */
4031
4476
  chunk_size?: number | null;
4477
+ /**
4478
+ * Cloud Drive Connection Id
4479
+ * @description For a cloud_drive source: the id of the connected drive it indexes. Null for every other source type.
4480
+ */
4481
+ cloud_drive_connection_id?: string | null;
4482
+ /**
4483
+ * Cloud Drive Content Types
4484
+ * @description For a cloud_drive source: the comma-separated MIME types a file must have to be indexed. Null when there is no filter.
4485
+ */
4486
+ cloud_drive_content_types?: string | null;
4487
+ /**
4488
+ * Cloud Drive Folder Path
4489
+ * @description For a cloud_drive source: the folder it indexes. Null when it indexes the connected drive's own folder.
4490
+ */
4491
+ cloud_drive_folder_path?: string | null;
4492
+ /**
4493
+ * Cloud Drive Max File Mb
4494
+ * @description For a cloud_drive source: the size in megabytes above which a file is skipped. Null when the source sets no limit of its own.
4495
+ */
4496
+ cloud_drive_max_file_mb?: number | null;
4497
+ /**
4498
+ * Cloud Drive Path Pattern
4499
+ * @description For a cloud_drive source: the glob a file's path must match to be indexed. Null when there is none.
4500
+ */
4501
+ cloud_drive_path_pattern?: string | null;
4032
4502
  /**
4033
4503
  * Content Count
4034
4504
  * @description Number of content items associated with the source connection.
@@ -4050,6 +4520,22 @@ interface components {
4050
4520
  * @description Dimensions of the embedding model.
4051
4521
  */
4052
4522
  dimensions?: number | null;
4523
+ /**
4524
+ * Document Images
4525
+ * @description Whether the images inside PDF, DOCX, PPTX and XLSX files are attached to the item and indexed; on a source that follows no web pages and has a text-only embedder, by the text in each image. Applies to documents added after it changes. On a website or RSS source it reports whether `media_types` holds 'images', and the images are attached only when the source's embedder indexes images.
4526
+ * @default true
4527
+ */
4528
+ document_images: boolean;
4529
+ /**
4530
+ * Email Address
4531
+ * @description For an email source: the address to send mail to. Null for every other source type.
4532
+ */
4533
+ email_address?: string | null;
4534
+ /**
4535
+ * Email Allowed Senders
4536
+ * @description For an email source: the addresses and domains whose mail is stored. Null for every other source type.
4537
+ */
4538
+ email_allowed_senders?: string[] | null;
4053
4539
  /**
4054
4540
  * Embedding Model
4055
4541
  * @description Embedding model used for the source connection.
@@ -4060,6 +4546,11 @@ interface components {
4060
4546
  * @description Type of the embedding model.
4061
4547
  */
4062
4548
  embedding_model_type?: string | null;
4549
+ /**
4550
+ * Feed Attachments
4551
+ * @description Kinds of file listed beside a feed item's content that an RSS source attaches to the item and indexes (subset of ['enclosures', 'item_image', 'media_rss']).
4552
+ */
4553
+ feed_attachments?: string[];
4063
4554
  /**
4064
4555
  * Free Retention Days
4065
4556
  * @description Number of days content is stored for free before billing applies.
@@ -4078,9 +4569,14 @@ interface components {
4078
4569
  id: string;
4079
4570
  /** @description Index mode for custom_index sources: fast_and_cheap, balanced, slow_and_thorough, or custom. */
4080
4571
  index_mode?: components["schemas"]["SourceIndexMode"] | null;
4572
+ /**
4573
+ * Max Credits Per Period
4574
+ * @description The source's spend limit: credits it may commit per billing period. Null when it has none.
4575
+ */
4576
+ max_credits_per_period?: number | null;
4081
4577
  /**
4082
4578
  * Media Types
4083
- * @description Media kinds extracted from indexed content and embedded as multi-modal KB chunks (subset of ['images', 'video']). Empty = text-only.
4579
+ * @description Media kinds in a web page's main content that are attached to the page's item and indexed (subset of ['images', 'video']). On a website or RSS source 'images' also covers the images inside PDF, DOCX, PPTX and XLSX files.
4084
4580
  */
4085
4581
  media_types?: string[];
4086
4582
  /**
@@ -4105,7 +4601,7 @@ interface components {
4105
4601
  polling_action: string | null;
4106
4602
  /**
4107
4603
  * Polling Max Items
4108
- * @description Maximum items to poll for the source connection.
4604
+ * @description The most new feed items a scheduled poll takes. Read for RSS feeds only.
4109
4605
  */
4110
4606
  polling_max_items: number | null;
4111
4607
  /**
@@ -4129,6 +4625,22 @@ interface components {
4129
4625
  * @description Type of the source connection.
4130
4626
  */
4131
4627
  source_type: string;
4628
+ /**
4629
+ * @description What the source does once it reaches its spend limit.
4630
+ * @default stop
4631
+ */
4632
+ spend_cap_action: components["schemas"]["SpendCapAction"];
4633
+ /**
4634
+ * @description Which entries a `delete` spend limit removes first.
4635
+ * @default oldest_added
4636
+ */
4637
+ spend_cap_delete_order: components["schemas"]["SpendCapDeleteOrder"];
4638
+ /**
4639
+ * Spend Cap Reached
4640
+ * @description True while the spend limit refuses uploads and email to this source.
4641
+ * @default false
4642
+ */
4643
+ spend_cap_reached: boolean;
4132
4644
  /**
4133
4645
  * System Managed
4134
4646
  * @description Indicates if this source is automatically managed by the system (e.g., agent traces).
@@ -4146,6 +4658,17 @@ interface components {
4146
4658
  */
4147
4659
  url: string | null;
4148
4660
  };
4661
+ /**
4662
+ * SpendCapAction
4663
+ * @enum {string}
4664
+ */
4665
+ SpendCapAction: "stop" | "delete";
4666
+ /**
4667
+ * SpendCapDeleteOrder
4668
+ * @description Which entries a DELETE cap removes first.
4669
+ * @enum {string}
4670
+ */
4671
+ SpendCapDeleteOrder: "oldest_added" | "oldest_published" | "largest_first";
4149
4672
  /**
4150
4673
  * StandaloneTestCompactionRequest
4151
4674
  * @description Request body for testing a compaction prompt *without* an existing bank.
@@ -4315,6 +4838,8 @@ interface components {
4315
4838
  passed: boolean;
4316
4839
  /** Score */
4317
4840
  score: number;
4841
+ /** @description `passed`, `failed`, or `error` when the evaluator returned no verdict. */
4842
+ status: components["schemas"]["EvaluationStatus"];
4318
4843
  };
4319
4844
  /** UnlinkResourcesRequest */
4320
4845
  UnlinkResourcesRequest: {
@@ -4331,6 +4856,11 @@ interface components {
4331
4856
  };
4332
4857
  /** UpdateAgentDefinitionRequest */
4333
4858
  UpdateAgentDefinitionRequest: {
4859
+ /**
4860
+ * Accepted Attachments
4861
+ * @description When given, declared on the main branch's file-taking triggers in the same save, so the steps may read its slots as `{{agent.attachments.<slot>}}`; omitted, the triggers keep theirs.
4862
+ */
4863
+ accepted_attachments?: components["schemas"]["AcceptedAttachmentSlot"][] | null;
4334
4864
  /**
4335
4865
  * Definition
4336
4866
  * @description The full agent definition (name, description, tags, steps). Steps form a tree workflow. Each step has a `step_type`, `id`, `name`, and type-specific config. Content enrichment steps (write_metadata, write_content_attachment, load_content_attachment, load_content) require content-triggered agents.
@@ -4516,9 +5046,49 @@ interface components {
4516
5046
  * @description Request body for updating a content source.
4517
5047
  */
4518
5048
  UpdateSourceBody: {
5049
+ /**
5050
+ * Cloud Drive Content Types
5051
+ * @description For a cloud_drive source: comma-separated MIME types a file must have to be indexed. Send an empty string to clear it; omit to leave it unchanged.
5052
+ */
5053
+ cloud_drive_content_types?: string | null;
5054
+ /**
5055
+ * Cloud Drive Folder Path
5056
+ * @description For a cloud_drive source: the folder to index, as a path inside the drive. Send an empty string to index the connected drive's own folder; omit to leave it unchanged.
5057
+ */
5058
+ cloud_drive_folder_path?: string | null;
5059
+ /**
5060
+ * Cloud Drive Max File Mb
5061
+ * @description For a cloud_drive source: files larger than this many megabytes are skipped. Send 0 to clear the source's own limit; omit to leave it unchanged.
5062
+ */
5063
+ cloud_drive_max_file_mb?: number | null;
5064
+ /**
5065
+ * Cloud Drive Path Pattern
5066
+ * @description For a cloud_drive source: a glob a file's path must match to be indexed, such as `**\/*.pdf` or `/reports/*`. Send an empty string to clear it; omit to leave it unchanged.
5067
+ */
5068
+ cloud_drive_path_pattern?: string | null;
5069
+ /**
5070
+ * Document Images
5071
+ * @description Whether the images inside PDF, DOCX, PPTX and XLSX files are attached to the item and indexed; on a text-only embedder, by the text in each image. Applies to documents added after it changes. Omit the field to leave it unchanged. On a website or RSS source it is ignored: `media_types` decides.
5072
+ */
5073
+ document_images?: boolean | null;
5074
+ /**
5075
+ * Email Allowed Senders
5076
+ * @description For an email source: replaces the allowed senders. Each entry is a full address or a bare domain. The list cannot be emptied. Omit to leave it unchanged.
5077
+ */
5078
+ email_allowed_senders?: string[] | null;
5079
+ /**
5080
+ * Feed Attachments
5081
+ * @description Kinds of file listed beside a feed item's content to attach to the item and index, on an RSS source. Subset of ['enclosures', 'item_image', 'media_rss']; any other value is refused. [] attaches none. Applies to items added after it changes. Omit the field to leave it unchanged.
5082
+ */
5083
+ feed_attachments?: string[] | null;
5084
+ /**
5085
+ * Max Credits Per Period
5086
+ * @description Spend limit: the credits this source may commit per billing period — what the account was charged for it this period plus the storage of what it holds until the period ends. Send null to remove the limit; omit to leave it unchanged.
5087
+ */
5088
+ max_credits_per_period?: number | null;
4519
5089
  /**
4520
5090
  * Media Types
4521
- * @description Media kinds to extract from indexed content and embed as multi-modal KB chunks. Subset of ['images', 'video']. Only kinds the source's embedder can index are honored (see `supported_input_media` on GET /models/embedders); unsupported values are dropped. [] disables media extraction (text-only).
5091
+ * @description Media kinds in a web page's main content to attach to the page's item and index, on a website or RSS source. Subset of ['images', 'video']. From `Seclai-Version: 2026-10-13` any other value, and any kind on another source type, is refused with a 400; older versions drop an unknown value and store the rest. A kind the source's embedder cannot index is stored and not indexed (see `supported_input_media` on GET /models/embedders). [] attaches no media from web pages. 'images' also covers the images inside PDF, DOCX, PPTX and XLSX files. Applies to pages and documents added after it changes.
4522
5092
  */
4523
5093
  media_types?: string[] | null;
4524
5094
  /**
@@ -4536,6 +5106,10 @@ interface components {
4536
5106
  * @description New retention period in days — content older than this is deleted permanently. Send null to clear the window: content is then kept indefinitely. Omit the field to leave it unchanged.
4537
5107
  */
4538
5108
  retention_days?: number | null;
5109
+ /** @description Once the limit is reached: `stop` refuses new content; `delete` deletes entries, in `spend_cap_delete_order`, to make room, and refuses new content as `stop` does once spend already fills the limit. Deleting does not return credits already spent. */
5110
+ spend_cap_action?: components["schemas"]["SpendCapAction"] | null;
5111
+ /** @description Which entries `delete` removes first: `oldest_added`, `oldest_published` or `largest_first`. */
5112
+ spend_cap_delete_order?: components["schemas"]["SpendCapDeleteOrder"] | null;
4539
5113
  };
4540
5114
  /** UploadAgentInputApiResponse */
4541
5115
  UploadAgentInputApiResponse: {
@@ -4781,6 +5355,11 @@ interface components {
4781
5355
  };
4782
5356
  /** CreateAgentRequest */
4783
5357
  routers__api__agents__CreateAgentRequest: {
5358
+ /**
5359
+ * Accepted Attachments
5360
+ * @description The input attachments the trigger accepts. Omitted, the ``agent_definition`` trigger's declaration is kept when the export carries one and both trigger types take files; otherwise a dynamic_input or email_received trigger accepts any files (one attachment named ``files``), and any other trigger none.
5361
+ */
5362
+ accepted_attachments?: components["schemas"]["AcceptedAttachmentSlot"][] | null;
4784
5363
  /**
4785
5364
  * Agent Definition
4786
5365
  * @description Optional payload in the same format produced by GET /agents/{id}/export. When provided, replaces any template-derived workflow and pre-fills metadata/trigger fields the request does not specify explicitly. Validation errors include line/column references against a canonical pretty-printed echo of the supplied payload.
@@ -4790,9 +5369,15 @@ interface components {
4790
5369
  } | null;
4791
5370
  /**
4792
5371
  * Agent Template
4793
- * @description Template to initialize the agent from. Values: blank, retrieval_example, simple_qa, summarizer, json_extractor, content_change_notifier, scheduled_report, webhook_pipeline.
5372
+ * @description Agent gallery entry to start from: a `key` from GET /agents/examples, or `blank`. The keys retrieval_example and simple_qa remain accepted for their gallery entries.
4794
5373
  */
4795
5374
  agent_template?: string | null;
5375
+ /**
5376
+ * Create Missing Resources
5377
+ * @description For an `agent_template`: create each creatable resource slot left out of `resource_bindings`, and group the agent with them in a new solution. When false, an unbound slot the template needs is an error.
5378
+ * @default false
5379
+ */
5380
+ create_missing_resources: boolean;
4796
5381
  /**
4797
5382
  * Description
4798
5383
  * @description Optional description.
@@ -4810,12 +5395,18 @@ interface components {
4810
5395
  * @description Name for the new agent.
4811
5396
  */
4812
5397
  name: string;
5398
+ /**
5399
+ * Resource Bindings
5400
+ * @description For an `agent_template`: the existing resource to use for each of the template's resource slots, as {slot: resource_id}. GET /agents/examples lists each template's slots.
5401
+ */
5402
+ resource_bindings?: {
5403
+ [key: string]: string;
5404
+ } | null;
4813
5405
  /**
4814
5406
  * Trigger Type
4815
- * @description Trigger type: dynamic_input, template_input, schedule, new_content, email_received.
4816
- * @default dynamic_input
5407
+ * @description Defaults to dynamic_input, or to the template's own trigger type for an `agent_template` without `agent_definition`.
4817
5408
  */
4818
- trigger_type: string;
5409
+ trigger_type?: string | null;
4819
5410
  };
4820
5411
  /**
4821
5412
  * GovernancePolicyRefResponse
@@ -4866,6 +5457,11 @@ interface components {
4866
5457
  * @description When true (default for new triggers), the envelope sender must pass SPF or DMARC even on an open inbox (no allowlist); unauthenticated, spoofable mail is rejected. Set false to accept fully unauthenticated mail on an open inbox.
4867
5458
  */
4868
5459
  require_sender_auth?: boolean | null;
5460
+ /**
5461
+ * Run On Attachment Mismatch
5462
+ * @description When true (default false), an email whose attachments don't fit what the agent expects still runs: files the agent can't take are left out and the problems are listed in the `email_attachment_issues` run metadata. When false, the run fails.
5463
+ */
5464
+ run_on_attachment_mismatch?: boolean | null;
4869
5465
  };
4870
5466
  /** UpdateAgentRequest */
4871
5467
  routers__api__agents__UpdateAgentRequest: {
@@ -4876,6 +5472,12 @@ interface components {
4876
5472
  agent_definition?: {
4877
5473
  [key: string]: unknown;
4878
5474
  } | null;
5475
+ /**
5476
+ * Apply Import Run Limits
5477
+ * @description With `agent_definition`, also replace the agent's run limits with the payload's (a null there removes a limit). Off by default: the agent keeps its limits.
5478
+ * @default false
5479
+ */
5480
+ apply_import_run_limits: boolean;
4879
5481
  /**
4880
5482
  * Default Evaluation Tier
4881
5483
  * @description Default evaluation tier: 'fast', 'balanced', or 'thorough'.
@@ -4898,11 +5500,36 @@ interface components {
4898
5500
  * @description Evaluation mode: 'output_expectation', 'eval_and_retry', or 'sample_and_flag'.
4899
5501
  */
4900
5502
  evaluation_mode?: string | null;
5503
+ /**
5504
+ * Max Credits Per Period
5505
+ * @description Credit limit per billing period of the paying account: once reached, runs stop at their next step and new runs are refused.
5506
+ */
5507
+ max_credits_per_period?: number | null;
5508
+ /**
5509
+ * Max Credits Per Run
5510
+ * @description Credit limit per run: a run that reaches it is stopped before its next step.
5511
+ */
5512
+ max_credits_per_run?: number | null;
4901
5513
  /**
4902
5514
  * Max Retries
4903
5515
  * @description Max retries for eval_and_retry mode (1-10).
4904
5516
  */
4905
5517
  max_retries?: number | null;
5518
+ /**
5519
+ * Max Runs Per Day
5520
+ * @description Runs per day; at most the plan's run quota.
5521
+ */
5522
+ max_runs_per_day?: number | null;
5523
+ /**
5524
+ * Max Runs Per Hour
5525
+ * @description Runs per hour; at most the plan's run quota.
5526
+ */
5527
+ max_runs_per_hour?: number | null;
5528
+ /**
5529
+ * Max Runs Total
5530
+ * @description Runs in total; once reached, new runs are refused.
5531
+ */
5532
+ max_runs_total?: number | null;
4906
5533
  /**
4907
5534
  * Name
4908
5535
  * @description New name for the agent.
@@ -4938,6 +5565,36 @@ interface components {
4938
5565
  * @default false
4939
5566
  */
4940
5567
  set_default_evaluation_tier: boolean;
5568
+ /**
5569
+ * Set Max Credits Per Period
5570
+ * @description When true and max_credits_per_period is omitted, removes the limit.
5571
+ * @default false
5572
+ */
5573
+ set_max_credits_per_period: boolean;
5574
+ /**
5575
+ * Set Max Credits Per Run
5576
+ * @description When true and max_credits_per_run is omitted, removes the limit.
5577
+ * @default false
5578
+ */
5579
+ set_max_credits_per_run: boolean;
5580
+ /**
5581
+ * Set Max Runs Per Day
5582
+ * @description When true and max_runs_per_day is omitted, removes the limit.
5583
+ * @default false
5584
+ */
5585
+ set_max_runs_per_day: boolean;
5586
+ /**
5587
+ * Set Max Runs Per Hour
5588
+ * @description When true and max_runs_per_hour is omitted, removes the limit.
5589
+ * @default false
5590
+ */
5591
+ set_max_runs_per_hour: boolean;
5592
+ /**
5593
+ * Set Max Runs Total
5594
+ * @description When true and max_runs_total is omitted, removes the limit.
5595
+ * @default false
5596
+ */
5597
+ set_max_runs_total: boolean;
4941
5598
  /**
4942
5599
  * Set Prompt Model Auto Rollback Triggers
4943
5600
  * @description When true and prompt_model_auto_rollback_triggers is omitted, clears the list to null (revert to system defaults).
@@ -5108,6 +5765,89 @@ interface components {
5108
5765
  */
5109
5766
  subscribed: boolean;
5110
5767
  };
5768
+ /**
5769
+ * ContentAttachmentDetailResponse
5770
+ * @description One attached file, with the text indexed from it.
5771
+ */
5772
+ routers__api__contents__ContentAttachmentDetailResponse: {
5773
+ /**
5774
+ * Content Type
5775
+ * @description MIME type of the attached file.
5776
+ */
5777
+ content_type: string;
5778
+ /**
5779
+ * Created At
5780
+ * @description When the file was first attached.
5781
+ */
5782
+ created_at: string;
5783
+ /**
5784
+ * File Withheld
5785
+ * @description Why the file's bytes are not served, or null when they are: `blocked_by_governance_policy`, `redacted_by_governance_policy` (any text below is the redacted text), or `pending_screening`.
5786
+ */
5787
+ file_withheld: string | null;
5788
+ /**
5789
+ * Id
5790
+ * @description The attachment's id, which the single-attachment endpoints take.
5791
+ */
5792
+ id: string;
5793
+ /**
5794
+ * Indexed
5795
+ * @description Whether indexing the file for search was asked for.
5796
+ */
5797
+ indexed: boolean;
5798
+ /**
5799
+ * Indexing Error
5800
+ * @description Why the file was not indexed, when `indexing_status` is `failed`.
5801
+ */
5802
+ indexing_error: string | null;
5803
+ /**
5804
+ * Indexing Status
5805
+ * @description `pending`, `completed` or `failed`; null when indexing was not asked for. Search finds the file only when `completed`.
5806
+ */
5807
+ indexing_status: string | null;
5808
+ /**
5809
+ * Key
5810
+ * @description The attachment's key, unique within the item.
5811
+ */
5812
+ key: string;
5813
+ /**
5814
+ * Metadata
5815
+ * @description What is known about the file beyond its bytes. An image extracted from a PDF carries its `page_number`, and `page_render: true` when it is a render of the whole page. An image or video from a web page carries `source_url` (the address it was fetched from), `position` (its place among the media the page listed, from 0) and, when the page gave one, `alt_text`. Empty for most files. A retrieval metadata filter matches these keys, except `alt_text`, which is indexed as the attachment's text.
5816
+ */
5817
+ metadata: {
5818
+ [key: string]: unknown;
5819
+ };
5820
+ /**
5821
+ * Size Bytes
5822
+ * @description Size of the attached file in bytes.
5823
+ */
5824
+ size_bytes: number;
5825
+ /**
5826
+ * Text Content
5827
+ * @description The requested range of the text the file is indexed by; null when the file has no completed index or was indexed without text.
5828
+ */
5829
+ text_content: string | null;
5830
+ /** Text Content End */
5831
+ text_content_end: number;
5832
+ /** Text Content Start */
5833
+ text_content_start: number;
5834
+ /** Text Content Total Length */
5835
+ text_content_total_length: number;
5836
+ /**
5837
+ * Updated At
5838
+ * @description When the attachment last changed.
5839
+ */
5840
+ updated_at: string;
5841
+ };
5842
+ /**
5843
+ * ContentAttachmentsListResponse
5844
+ * @description Response model for a content item's attachments.
5845
+ */
5846
+ routers__api__contents__ContentAttachmentsListResponse: {
5847
+ /** Data */
5848
+ data: components["schemas"]["ContentAttachmentResponse"][];
5849
+ pagination: components["schemas"]["PaginationResponse"];
5850
+ };
5111
5851
  /**
5112
5852
  * ContentDetailResponse
5113
5853
  * @description Response model for content detail.
@@ -5160,18 +5900,18 @@ interface components {
5160
5900
  error: string | null;
5161
5901
  /**
5162
5902
  * Extracted Media Capped
5163
- * @description True when extraction stopped with media still unread, so the item references more media than was indexed and media search will not match anything past the cut. Two causes: a web page that ran out of the budget for fetching remote assets, or a container that could not be read to the end (a truncated or hostile archive). An uploaded document that reads cleanly is never capped, however much media it holds — there is no limit on that.
5903
+ * @description True when extraction stopped with media still unread, so the item references more media than was attached and media search will not match anything past the cut. The cause is a web page that ran out of the budget for fetching remote assets or listed more media than is recorded, or a web page or document that could not be read to the end.
5164
5904
  * @default false
5165
5905
  */
5166
5906
  extracted_media_capped: boolean;
5167
5907
  /**
5168
5908
  * Extracted Media Count
5169
- * @description Number of embedded images / videos extracted from inside this item and indexed as their own chunks. There is no limit on this — a document contributes as many as it holds. Null when there is no media record for the item: the extraction pass has not run, does not apply to this container, or found nothing. Treat null as 'unknown', never as zero.
5909
+ * @description Number of images / videos in this web page's main content, or of images inside this PDF or Office document, that were attached to the item on this source; a file over the per-file size limit, listed as a failed attachment, is not counted. Null when there is no media record for the item: the extraction pass has not run, does not apply to this container or this source's settings, or found nothing. Treat null as 'unknown', never as zero.
5170
5910
  */
5171
5911
  extracted_media_count?: number | null;
5172
5912
  /**
5173
5913
  * Extracted Media Limit
5174
- * @description The bound that was reached, when extracted_media_capped is true and the stop was a bound — a number of fetch attempts, or a number of seconds. Null when extraction was not capped, or when it stopped because the container could not be read rather than because a bound fired.
5914
+ * @description The bound that was reached, when extracted_media_capped is true and the stop was a bound — a number of fetch attempts, of seconds, of bytes, or of media listed. Null when extraction was not capped, or when it stopped because the container could not be read rather than because a bound fired.
5175
5915
  */
5176
5916
  extracted_media_limit?: number | null;
5177
5917
  /**
@@ -5196,6 +5936,11 @@ interface components {
5196
5936
  * @description Timestamp when the content was pulled.
5197
5937
  */
5198
5938
  pulled_at: string;
5939
+ /**
5940
+ * Skipped Attachments
5941
+ * @description Parts of an email delivered to an email content source that were not stored as attachments of this item, each with the reason: displayed_in_body (an image the message body shows, such as a signature logo), over_cap (beyond the per-message attachment limit), no_filename, or undecodable. size_bytes is null for a part that was never decoded. Empty for every other item.
5942
+ */
5943
+ skipped_attachments?: components["schemas"]["SkippedAttachmentResponse"][];
5199
5944
  /**
5200
5945
  * Source Connection Content Version Id
5201
5946
  * @description ID of the source connection content version.
@@ -5928,7 +6673,7 @@ interface components {
5928
6673
  content_version_id: string | null;
5929
6674
  /**
5930
6675
  * Embedder Warning
5931
- * @description Set when the file is non-text but the source's embedder is text-only — indexing will rely on OCR / transcription and may produce a FAILED row if no text can be extracted.
6676
+ * @description Set when a file that is not text is indexed from its extracted text alone rather than embedded whole: the item is FAILED if no text can be extracted. Says so when the images inside a document are attached to the item and indexed as well.
5932
6677
  */
5933
6678
  embedder_warning?: string | null;
5934
6679
  /**
@@ -6145,6 +6890,11 @@ interface components {
6145
6890
  * @description Per-mode rollup for evaluation activity.
6146
6891
  */
6147
6892
  schemas__v1__agent_evaluations__NonManualEvaluationModeStatResponse: {
6893
+ /**
6894
+ * Error
6895
+ * @description Results whose evaluator returned no verdict.
6896
+ */
6897
+ error: number;
6148
6898
  /** Failed */
6149
6899
  failed: number;
6150
6900
  /** Failure Rate */
@@ -6167,6 +6917,11 @@ interface components {
6167
6917
  schemas__v1__agent_evaluations__NonManualEvaluationSummaryResponse: {
6168
6918
  /** By Mode */
6169
6919
  by_mode: components["schemas"]["schemas__v1__agent_evaluations__NonManualEvaluationModeStatResponse"][];
6920
+ /**
6921
+ * Error
6922
+ * @description Results whose evaluator returned no verdict.
6923
+ */
6924
+ error: number;
6170
6925
  /** Failed */
6171
6926
  failed: number;
6172
6927
  /** Failure Rate */
@@ -6203,6 +6958,14 @@ interface components {
6203
6958
  * are regenerated.
6204
6959
  */
6205
6960
 
6961
+ /**
6962
+ * `T` with the keys `K` optional. openapi-typescript marks every property that
6963
+ * declares a `default` as required, which is right for a response (the server
6964
+ * always sends it) and wrong for a request body (the server fills it in). Apply
6965
+ * this to a request type's server-defaulted keys only; the test
6966
+ * "request types leave server-defaulted fields optional" lists them from the spec.
6967
+ */
6968
+ type WithServerDefaults<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
6206
6969
  /** JSON-serializable values accepted/returned by the SDK's low-level `request()` method. */
6207
6970
  type JSONValue = {
6208
6971
  [key: string]: JSONValue;
@@ -6228,18 +6991,131 @@ type MeResponse = components["schemas"]["MeResponse"];
6228
6991
  type OrganizationInfoResponse = components["schemas"]["OrganizationInfoResponse"];
6229
6992
  /** Paginated list of agents. */
6230
6993
  type AgentListResponse = components["schemas"]["routers__api__agents__AgentListResponse"];
6994
+ /**
6995
+ * A page of the agent gallery. Each entry's `key` goes in `agent_template` on
6996
+ * {@link CreateAgentRequest}, with `resource_bindings` for the resources it needs.
6997
+ */
6998
+ type AgentExampleListResponse = Omit<components["schemas"]["AgentExampleListResponse"], "data"> & {
6999
+ data: AgentExample[];
7000
+ };
7001
+ /**
7002
+ * A resource an {@link AgentExample} needs: bind it in `resource_bindings` under
7003
+ * `slot`, or let `create_missing_resources` create it when `creatable`.
7004
+ */
7005
+ interface AgentExampleResource {
7006
+ /** Slot name, the key in `resource_bindings`. */
7007
+ slot: string;
7008
+ /** Resource kind: knowledge_base, memory_bank, source_connection, mcp_client or cloud_drive_connection. */
7009
+ kind: string;
7010
+ /** Display name of the slot. */
7011
+ label: string;
7012
+ /** What the slot is used for. */
7013
+ description: string;
7014
+ /** The id that stands for this resource in `definition`. */
7015
+ placeholder: string;
7016
+ /** Whether `create_missing_resources` can create it. When false it must be bound to an existing resource. */
7017
+ creatable: boolean;
7018
+ /** For a memory_bank slot, the bank type a bound bank must have. */
7019
+ memory_bank_type: string | null;
7020
+ /** Whether the steps in `definition` name this slot. */
7021
+ named_in_definition: boolean;
7022
+ /** Whether the entry's trigger names this slot; it applies only when the agent keeps the entry's trigger type. */
7023
+ named_in_trigger: boolean;
7024
+ /** Slots whose creation uses this one. */
7025
+ named_in_create_of: string[];
7026
+ }
7027
+ /**
7028
+ * One agent gallery entry from {@link Seclai.listAgentExamples}. Pass `key` as
7029
+ * `agent_template` on {@link CreateAgentRequest}.
7030
+ *
7031
+ * Typed by hand: the spec declares the list's items without a schema.
7032
+ */
7033
+ interface AgentExample {
7034
+ /** Pass as `agent_template` when creating an agent. */
7035
+ key: string;
7036
+ title: string;
7037
+ summary: string;
7038
+ use_cases: string[];
7039
+ tags: string[];
7040
+ /** Other `agent_template` values that create this entry. */
7041
+ aliases: string[];
7042
+ /** A request to the AI assistant that describes this agent. */
7043
+ prompt: string;
7044
+ /** The trigger type the entry is built for. */
7045
+ trigger_type: string;
7046
+ /** The date the entry was added to the gallery, `YYYY-MM-DD`. */
7047
+ created_at: string;
7048
+ /** The template_input trigger's input, when the entry sets one. */
7049
+ trigger_input: string | null;
7050
+ /** The template_input trigger's schedules, applied on create when the trigger type is the entry's own. */
7051
+ schedules: Record<string, unknown>[];
7052
+ /** The trigger's declared attachment slots. Empty when the entry declares none. */
7053
+ accepted_attachments: Record<string, unknown>[];
7054
+ resources: AgentExampleResource[];
7055
+ /** The agent definition, naming each resource by its placeholder. */
7056
+ definition: Record<string, unknown>;
7057
+ }
6231
7058
  /** Full agent configuration including definition and metadata. */
6232
7059
  type AgentDefinitionResponse = components["schemas"]["AgentDefinitionResponse"];
6233
7060
  /** Portable JSON snapshot of an agent definition. */
6234
7061
  type AgentExportResponse = components["schemas"]["AgentExportResponse"];
6235
7062
  /** Summary of an agent (returned on create/update). */
6236
7063
  type AgentSummaryResponse = components["schemas"]["AgentSummaryResponse"];
6237
- /** Request body for creating an agent. */
6238
- type CreateAgentRequest = components["schemas"]["routers__api__agents__CreateAgentRequest"];
6239
- /** Request body for updating an agent. */
6240
- type UpdateAgentRequest = components["schemas"]["routers__api__agents__UpdateAgentRequest"];
6241
- /** Request body for updating an agent definition (steps, model, etc.). */
6242
- type UpdateAgentDefinitionRequest = components["schemas"]["UpdateAgentDefinitionRequest"];
7064
+ /**
7065
+ * Request body for creating an agent.
7066
+ *
7067
+ * `accepted_attachments` takes {@link AcceptedAttachmentSlotInput}, so a slot's
7068
+ * server-defaulted `min` can be omitted.
7069
+ */
7070
+ type CreateAgentRequest = Omit<WithServerDefaults<components["schemas"]["routers__api__agents__CreateAgentRequest"], "create_missing_resources">, "accepted_attachments"> & {
7071
+ accepted_attachments?: AcceptedAttachmentSlotInput[] | null;
7072
+ };
7073
+ /**
7074
+ * Request body for updating an agent. Every field is optional.
7075
+ *
7076
+ * To remove a run or credit limit, send its `set_max_*` flag as `true` and omit
7077
+ * the matching `max_*` field. The `set_*` flags and `apply_import_run_limits`
7078
+ * default to `false` on the server; the generated schema marks them required
7079
+ * only because they declare a default.
7080
+ */
7081
+ type UpdateAgentRequest = Partial<components["schemas"]["routers__api__agents__UpdateAgentRequest"]>;
7082
+ /**
7083
+ * Request body for updating an agent definition (steps, model, etc.).
7084
+ *
7085
+ * `accepted_attachments` takes {@link AcceptedAttachmentSlotInput}, so a slot's
7086
+ * server-defaulted `min` can be omitted.
7087
+ */
7088
+ type UpdateAgentDefinitionRequest = Omit<components["schemas"]["UpdateAgentDefinitionRequest"], "accepted_attachments"> & {
7089
+ accepted_attachments?: AcceptedAttachmentSlotInput[] | null;
7090
+ };
7091
+ /**
7092
+ * One input attachment a trigger accepts: a named slot that a run's files are
7093
+ * assigned to before any step runs. Steps reference it as
7094
+ * `{{agent.attachments.<name>}}`.
7095
+ */
7096
+ type AcceptedAttachmentSlot = components["schemas"]["AcceptedAttachmentSlot"];
7097
+ /**
7098
+ * An {@link AcceptedAttachmentSlot} as written: `min` has a server-side
7099
+ * default of `0` and can be omitted — the generated type marks
7100
+ * it required only because the schema declares a default.
7101
+ */
7102
+ type AcceptedAttachmentSlotInput = Omit<AcceptedAttachmentSlot, "min"> & {
7103
+ min?: number;
7104
+ };
7105
+ /**
7106
+ * Request body for {@link Seclai.setAcceptedAttachments}: the full list of
7107
+ * accepted attachments, with each slot's server-defaulted `min` optional.
7108
+ */
7109
+ type SetAcceptedAttachmentsInput = Omit<components["schemas"]["SetAcceptedAttachmentsRequest"], "accepted_attachments"> & {
7110
+ accepted_attachments: AcceptedAttachmentSlotInput[] | null;
7111
+ };
7112
+ /**
7113
+ * Request body for declaring the input attachments a trigger accepts. The same
7114
+ * type as {@link SetAcceptedAttachmentsInput}, so a slot's `min` can be omitted.
7115
+ */
7116
+ type SetAcceptedAttachmentsRequest = SetAcceptedAttachmentsInput;
7117
+ /** The input attachments a trigger now accepts. */
7118
+ type AcceptedAttachmentsResponse = components["schemas"]["AcceptedAttachmentsResponse"];
6243
7119
  /** Request body for previewing an agent_definition import (dry-run validation). */
6244
7120
  type AgentImportPreviewRequest = components["schemas"]["routers__api__agents__AgentImportPreviewRequest"];
6245
7121
  /** Response body summarising a successfully validated agent_definition import payload. */
@@ -6265,12 +7141,26 @@ type AgentCallerApiResponse = components["schemas"]["AgentCallerApiResponse"];
6265
7141
  type SetEmailTriggerConfigRequest = components["schemas"]["routers__api__agents__SetEmailTriggerConfigRequest"];
6266
7142
  /** An `EMAIL_RECEIVED` trigger's resolved email address(es) and inbound-handling config. */
6267
7143
  type EmailTriggerConfigResponse = components["schemas"]["EmailTriggerConfigResponse"];
7144
+ /**
7145
+ * Request body for configuring a `SLACK_COMMAND` trigger.
7146
+ *
7147
+ * Every field is optional, and an omitted field is left unchanged.
7148
+ */
7149
+ type SetSlackTriggerConfigRequest = components["schemas"]["SetSlackTriggerConfigApiRequest"];
7150
+ /** A `SLACK_COMMAND` trigger's Slack connection, form, channels and conversation settings. */
7151
+ type SlackTriggerConfigResponse = components["schemas"]["SlackTriggerConfigApiResponse"];
7152
+ /** Where a Slack trigger runs within its scope: `everywhere` or `channel_opt_in`. */
7153
+ type SlackTriggerActivation = components["schemas"]["SlackTriggerActivation"];
7154
+ /** Which channels a Slack trigger covers: `selected_channels` or `bot_channels`. */
7155
+ type SlackTriggerScope = components["schemas"]["SlackTriggerScope"];
7156
+ /** Who sees a Slack trigger's reply: `channel` or `private`. */
7157
+ type SlackReplyVisibility = components["schemas"]["SlackReplyVisibility"];
6268
7158
  /** A recipient's opt-out from an account's agent emails (one agent, or account-wide). */
6269
7159
  type AgentEmailOptOutResponse = components["schemas"]["AgentEmailOptOutResponse"];
6270
7160
  /** A page of agent-email opt-outs plus the total count. */
6271
7161
  type AgentEmailOptOutListResponse = VersionedList<components["schemas"]["AgentEmailOptOutListResponse"], "items">;
6272
7162
  /** Request body for blocking an inbound email sender or domain. */
6273
- type BlockEmailSenderRequest = components["schemas"]["BlockEmailSenderRequest"];
7163
+ type BlockEmailSenderRequest = WithServerDefaults<components["schemas"]["BlockEmailSenderRequest"], "match_type">;
6274
7164
  /** A single blocked inbound email sender. */
6275
7165
  type BlockedEmailSenderResponse = components["schemas"]["BlockedEmailSenderResponse"];
6276
7166
  /** A page of blocked senders plus the account's governance auto-block mode. */
@@ -6279,6 +7169,10 @@ type BlockedEmailSenderListResponse = VersionedList<components["schemas"]["Block
6279
7169
  type SetAutoBlockModeRequest = components["schemas"]["SetAutoBlockModeRequest"];
6280
7170
  /** An inbound email that was discarded before running an agent. */
6281
7171
  type InboundEmailRejectionResponse = components["schemas"]["InboundEmailRejectionResponse"];
7172
+ /** Mail an email content source refused: who sent it and why, never its subject or body. */
7173
+ type EmailSourceRejectionResponse = components["schemas"]["EmailSourceRejectionResponse"];
7174
+ /** A page of an email source's refused mail, under `data` with `pagination`. */
7175
+ type EmailSourceRejectionListResponse = components["schemas"]["EmailSourceRejectionListResponse"];
6282
7176
  /** Account-wide inbound-email overload state (breaker paused + queued backlog size). */
6283
7177
  type InboundEmailStatusResponse = components["schemas"]["InboundEmailStatusResponse"];
6284
7178
  /** Number of queued inbound-email runs cancelled. */
@@ -6286,9 +7180,9 @@ type CancelQueuedRunsResponse = components["schemas"]["CancelQueuedRunsResponse"
6286
7180
  /** Result of manually lifting the inbound-email pause. */
6287
7181
  type ResumeInboundResponse = components["schemas"]["ResumeInboundResponse"];
6288
7182
  /** Request body for starting an agent run. */
6289
- type AgentRunRequest = components["schemas"]["AgentRunRequest"];
6290
- /** Request body for starting an agent run in streaming mode (SSE). */
6291
- type AgentRunStreamRequest = components["schemas"]["AgentRunStreamRequest"];
7183
+ type AgentRunRequest = WithServerDefaults<components["schemas"]["AgentRunRequest"], "priority">;
7184
+ /** Request body for starting an agent run in streaming mode (SSE). `include_reasoning` defaults to `false`. */
7185
+ type AgentRunStreamRequest = WithServerDefaults<components["schemas"]["AgentRunStreamRequest"], "include_reasoning">;
6292
7186
  /** Response body describing an agent run. */
6293
7187
  type AgentRunResponse = components["schemas"]["AgentRunResponse"];
6294
7188
  /** Paginated list of agent runs. */
@@ -6302,7 +7196,7 @@ type AgentRunFileResponse = components["schemas"]["AgentRunFileResponse"];
6302
7196
  /** A single LLM tool call made during a `prompt_call` step (within {@link AgentRunStepResponse}'s `tool_calls`). */
6303
7197
  type AgentRunToolCallResponse = components["schemas"]["AgentRunToolCallResponse"];
6304
7198
  /** Search request for agent runs (traces). */
6305
- type AgentTraceSearchRequest = components["schemas"]["routers__api__agents__AgentTraceSearchRequest"];
7199
+ type AgentTraceSearchRequest = WithServerDefaults<components["schemas"]["routers__api__agents__AgentTraceSearchRequest"], "top_n">;
6306
7200
  /** Search response containing matching agent runs. */
6307
7201
  type AgentTraceSearchResponse = components["schemas"]["AgentTraceSearchResponse"];
6308
7202
  /** Individual match within an agent trace search. */
@@ -6317,7 +7211,7 @@ type AgentAttachmentRefsApiResponse = components["schemas"]["AgentAttachmentRefs
6317
7211
  /** Per-source attachment-reference summary (exact names, indexes, glob patterns) within an {@link AgentAttachmentRefsApiResponse}. */
6318
7212
  type AttachmentRefsSourceApiSummary = components["schemas"]["AttachmentRefsSourceApiSummary"];
6319
7213
  /** Request body for generating agent workflow steps via AI. */
6320
- type GenerateAgentStepsRequest = components["schemas"]["GenerateAgentStepsRequest"];
7214
+ type GenerateAgentStepsRequest = WithServerDefaults<components["schemas"]["GenerateAgentStepsRequest"], "mode">;
6321
7215
  /** Response containing AI-generated agent workflow steps. */
6322
7216
  type GenerateAgentStepsResponse = components["schemas"]["GenerateAgentStepsResponse"];
6323
7217
  /** Request body for generating a single step config via AI. */
@@ -6411,7 +7305,7 @@ type EvaluationCriteriaListResponse = {
6411
7305
  pagination?: PaginationResponse;
6412
7306
  };
6413
7307
  /** Request body for creating evaluation criteria. */
6414
- type CreateEvaluationCriteriaRequest = components["schemas"]["CreateEvaluationCriteriaRequest"];
7308
+ type CreateEvaluationCriteriaRequest = WithServerDefaults<components["schemas"]["CreateEvaluationCriteriaRequest"], "enabled" | "pass_threshold">;
6415
7309
  /** Request body for updating evaluation criteria. */
6416
7310
  type UpdateEvaluationCriteriaRequest = components["schemas"]["UpdateEvaluationCriteriaRequest"];
6417
7311
  /** Individual evaluation result. */
@@ -6419,7 +7313,7 @@ type EvaluationResultResponse = components["schemas"]["EvaluationResultResponse"
6419
7313
  /** Paginated list of evaluation results. */
6420
7314
  type EvaluationResultListResponse = VersionedList<components["schemas"]["EvaluationResultListResponse"], "data">;
6421
7315
  /** Request body for creating a manual evaluation result. */
6422
- type CreateEvaluationResultRequest = components["schemas"]["CreateEvaluationResultRequest"];
7316
+ type CreateEvaluationResultRequest = WithServerDefaults<components["schemas"]["CreateEvaluationResultRequest"], "flagged" | "retry_count" | "retry_triggered">;
6423
7317
  /** Summary of evaluation results for a criteria. */
6424
7318
  type EvaluationResultSummaryResponse = components["schemas"]["EvaluationResultSummaryResponse"];
6425
7319
  /** Evaluation result with its associated criteria. */
@@ -6455,9 +7349,21 @@ type NonManualEvaluationSummaryResponse = components["schemas"]["schemas__v1__ag
6455
7349
  /** Per-mode stats within a non-manual evaluation summary. */
6456
7350
  type NonManualEvaluationModeStatResponse = components["schemas"]["schemas__v1__agent_evaluations__NonManualEvaluationModeStatResponse"];
6457
7351
  /** Request for testing a draft evaluation. */
6458
- type TestDraftEvaluationRequest = components["schemas"]["TestDraftEvaluationRequest"];
6459
- /** Response from testing a draft evaluation. */
6460
- type TestDraftEvaluationResponse = components["schemas"]["TestDraftEvaluationResponse"];
7352
+ type TestDraftEvaluationRequest = WithServerDefaults<components["schemas"]["TestDraftEvaluationRequest"], "pass_threshold">;
7353
+ /**
7354
+ * Response from testing a draft evaluation. When `status` is `error` (no
7355
+ * verdict), `score` and `passed` are `null` with `apiVersion` `2026-10-21` or
7356
+ * later, and 0.5 and `false` below it; the spec documents only the latter.
7357
+ */
7358
+ type TestDraftEvaluationResponse = Omit<components["schemas"]["TestDraftEvaluationResponse"], "status" | "score" | "passed"> & ({
7359
+ status: Exclude<EvaluationStatus, "error">;
7360
+ score: number;
7361
+ passed: boolean;
7362
+ } | {
7363
+ status: "error";
7364
+ score: number | null;
7365
+ passed: boolean | null;
7366
+ });
6461
7367
  /** Paginated list of runs compatible with a specific evaluation criteria. */
6462
7368
  type CompatibleRunListResponse = VersionedList<components["schemas"]["CompatibleRunListResponse"], "data">;
6463
7369
  /** Individual compatible run. */
@@ -6475,7 +7381,7 @@ type MemoryBankListResponse = VersionedList<components["schemas"]["MemoryBankLis
6475
7381
  /** Full memory bank configuration and metadata. */
6476
7382
  type MemoryBankResponse = components["schemas"]["MemoryBankResponseModel"];
6477
7383
  /** Request body for creating a memory bank. */
6478
- type CreateMemoryBankBody = components["schemas"]["CreateMemoryBankBody"];
7384
+ type CreateMemoryBankBody = WithServerDefaults<components["schemas"]["CreateMemoryBankBody"], "mode" | "strip_quoted_reply_chains" | "type">;
6479
7385
  /** Request body for updating a memory bank. */
6480
7386
  type UpdateMemoryBankBody = components["schemas"]["UpdateMemoryBankBody"];
6481
7387
  /** Memory bank AI assistant request. */
@@ -6491,11 +7397,11 @@ type MemoryBankLastConversationResponse = components["schemas"]["routers__api__m
6491
7397
  /** Individual turn in a memory bank AI conversation. */
6492
7398
  type MemoryBankConversationTurnResponse = components["schemas"]["routers__api__memory_banks__MemoryBankConversationTurnResponse"];
6493
7399
  /** Compaction test request for memory banks. */
6494
- type TestCompactionRequest = components["schemas"]["TestCompactionRequest"];
7400
+ type TestCompactionRequest = WithServerDefaults<components["schemas"]["TestCompactionRequest"], "entry_count">;
6495
7401
  /** Compaction test response. */
6496
7402
  type CompactionTestResponse = components["schemas"]["CompactionTestResponseModel"];
6497
7403
  /** Standalone compaction test request. */
6498
- type StandaloneTestCompactionRequest = components["schemas"]["StandaloneTestCompactionRequest"];
7404
+ type StandaloneTestCompactionRequest = WithServerDefaults<components["schemas"]["StandaloneTestCompactionRequest"], "bank_type" | "entry_count">;
6499
7405
  /** Compaction evaluation model result. */
6500
7406
  type CompactionEvaluationModel = components["schemas"]["CompactionEvaluationModel"];
6501
7407
  /** Paginated list of sources. */
@@ -6508,12 +7414,19 @@ type SourceConnectionResponse = components["schemas"]["SourceConnectionResponseM
6508
7414
  type CreateSourceBody = components["schemas"]["CreateSourceBody"];
6509
7415
  /** Request body for updating a source. */
6510
7416
  type UpdateSourceBody = components["schemas"]["UpdateSourceBody"];
7417
+ /** What a source does when it reaches `max_credits_per_period`: `stop` or `delete`. */
7418
+ type SpendCapAction = components["schemas"]["SpendCapAction"];
7419
+ /**
7420
+ * Which entries a `delete` spend cap removes first: `oldest_added`,
7421
+ * `oldest_published` or `largest_first`.
7422
+ */
7423
+ type SpendCapDeleteOrder = components["schemas"]["SpendCapDeleteOrder"];
6511
7424
  /** Upload response for file uploads to a source. */
6512
7425
  type FileUploadResponse = components["schemas"]["routers__api__sources__FileUploadResponse"];
6513
7426
  /** Request body for uploading inline text to a source. */
6514
- type InlineTextUploadRequest = components["schemas"]["InlineTextUploadRequest"];
7427
+ type InlineTextUploadRequest = WithServerDefaults<components["schemas"]["InlineTextUploadRequest"], "content_type">;
6515
7428
  /** Request body for replacing content with inline text. */
6516
- type InlineTextReplaceRequest = components["schemas"]["InlineTextReplaceRequest"];
7429
+ type InlineTextReplaceRequest = WithServerDefaults<components["schemas"]["InlineTextReplaceRequest"], "content_type">;
6517
7430
  /** One content item's indexing status within a source. */
6518
7431
  type SourceContentStatusResponse = components["schemas"]["SourceContentStatusResponse"];
6519
7432
  /** Paginated list of a source's content items and their indexing status. */
@@ -6565,6 +7478,16 @@ type ContentDetailResponse = components["schemas"]["routers__api__contents__Cont
6565
7478
  type ContentEmbeddingsListResponse = components["schemas"]["routers__api__contents__ContentEmbeddingsListResponse"];
6566
7479
  /** Individual content embedding. */
6567
7480
  type ContentEmbeddingResponse = components["schemas"]["ContentEmbeddingResponse"];
7481
+ /** A file attached to a content item, with whether it is indexed and, if indexing failed, why. */
7482
+ type ContentAttachmentResponse = components["schemas"]["ContentAttachmentResponse"];
7483
+ /** A page of a content item's attachments, under `data` with `pagination`. */
7484
+ type ContentAttachmentsListResponse = components["schemas"]["routers__api__contents__ContentAttachmentsListResponse"];
7485
+ /** One content attachment with its indexing status, metadata and a range of the text it is indexed by. */
7486
+ type ContentAttachmentDetailResponse = components["schemas"]["routers__api__contents__ContentAttachmentDetailResponse"];
7487
+ /** A file on an email that was not attached to the content item, with the reason. */
7488
+ type SkippedAttachmentResponse = components["schemas"]["SkippedAttachmentResponse"];
7489
+ /** Why an email's file was not attached: `displayed_in_body`, `over_cap`, `no_filename` or `undecodable`. */
7490
+ type SkippedAttachmentReason = components["schemas"]["SkippedAttachmentReason"];
6568
7491
  /** Upload response for content replacement uploads. */
6569
7492
  type ContentFileUploadResponse = components["schemas"]["routers__api__contents__FileUploadResponse"];
6570
7493
  /** Paginated list of solutions. */
@@ -6574,7 +7497,7 @@ type SolutionResponse = components["schemas"]["routers__api__solutions__Solution
6574
7497
  /** Summary of a solution. */
6575
7498
  type SolutionSummaryResponse = components["schemas"]["SolutionSummaryResponse"];
6576
7499
  /** Request body for creating a solution. */
6577
- type CreateSolutionRequest = components["schemas"]["CreateSolutionRequest"];
7500
+ type CreateSolutionRequest = WithServerDefaults<components["schemas"]["CreateSolutionRequest"], "description">;
6578
7501
  /** Request body for updating a solution. */
6579
7502
  type UpdateSolutionRequest = components["schemas"]["UpdateSolutionRequest"];
6580
7503
  /** Agent within a solution. */
@@ -6594,7 +7517,7 @@ type AiAssistantGenerateRequest = components["schemas"]["routers__api__solutions
6594
7517
  /** AI assistant generate response for solutions. */
6595
7518
  type AiAssistantGenerateResponse = components["schemas"]["AiAssistantGenerateResponse"];
6596
7519
  /** AI assistant accept request for solutions. */
6597
- type AiAssistantAcceptRequest = components["schemas"]["routers__api__solutions__AiAssistantAcceptRequest"];
7520
+ type AiAssistantAcceptRequest = WithServerDefaults<components["schemas"]["routers__api__solutions__AiAssistantAcceptRequest"], "confirm_deletions">;
6598
7521
  /** AI assistant accept response for solutions. */
6599
7522
  type AiAssistantAcceptResponse = components["schemas"]["AiAssistantAcceptResponse"];
6600
7523
  /** Proposed action in a solution AI plan. */
@@ -6618,7 +7541,7 @@ type GovernanceProposedPolicyActionResponse = components["schemas"]["ProposedPol
6618
7541
  /** Applied policy action from governance AI. */
6619
7542
  type GovernanceAppliedActionResponse = components["schemas"]["AppliedActionResponse"];
6620
7543
  /** Request body for creating an alert config. */
6621
- type CreateAlertConfigRequest = components["schemas"]["CreateAlertConfigRequest"];
7544
+ type CreateAlertConfigRequest = WithServerDefaults<components["schemas"]["CreateAlertConfigRequest"], "distribution_type" | "enabled">;
6622
7545
  /** Request body for updating an alert config. */
6623
7546
  type UpdateAlertConfigRequest = components["schemas"]["UpdateAlertConfigRequest"];
6624
7547
  /** Request body to change alert status. */
@@ -6664,7 +7587,7 @@ type VariantCategoryResponse = components["schemas"]["VariantCategoryResponse"];
6664
7587
  /** Variant option with credit pricing and context limits. */
6665
7588
  type VariantOptionResponse = components["schemas"]["VariantOptionResponse"];
6666
7589
  /** Request body for creating a model playground experiment. */
6667
- type PlaygroundCreateRequest = components["schemas"]["PlaygroundCreateRequest"];
7590
+ type PlaygroundCreateRequest = WithServerDefaults<components["schemas"]["PlaygroundCreateRequest"], "evaluation_complexity" | "evaluation_mode" | "include_step_output_in_evaluation" | "system_prompt">;
6668
7591
  /**
6669
7592
  * Input type for {@link SeclaiClient.createExperiment}.
6670
7593
  *
@@ -6673,7 +7596,7 @@ type PlaygroundCreateRequest = components["schemas"]["PlaygroundCreateRequest"];
6673
7596
  */
6674
7597
  type CreateExperimentInput = Pick<PlaygroundCreateRequest, "model_ids" | "prompt"> & Partial<Omit<PlaygroundCreateRequest, "model_ids" | "prompt">>;
6675
7598
  /** Request body for adding a vanity or custom agent-email domain. */
6676
- type AddEmailDomainRequest = components["schemas"]["AddEmailDomainRequest"];
7599
+ type AddEmailDomainRequest = WithServerDefaults<components["schemas"]["AddEmailDomainRequest"], "delegated">;
6677
7600
  /**
6678
7601
  * Input type for {@link Seclai.addEmailDomain}.
6679
7602
  *
@@ -6700,7 +7623,7 @@ type DmarcSummaryResponse = components["schemas"]["DmarcSummaryResponse"];
6700
7623
  type DmarcFailingSourceResponse = components["schemas"]["DmarcFailingSourceResponse"];
6701
7624
  /** 402 envelope returned when an account has exhausted its credits. */
6702
7625
  type InsufficientCreditsResponse = components["schemas"]["InsufficientCreditsResponse"];
6703
- /** `detail` body of an {@link InsufficientCreditsResponse} (error code, message, and account id). */
7626
+ /** `error` body of an {@link InsufficientCreditsResponse} (`code`, message, and account id). */
6704
7627
  type InsufficientCreditsDetail = components["schemas"]["InsufficientCreditsDetail"];
6705
7628
  /** Source index mode: fast_and_cheap, balanced, slow_and_thorough, or custom. */
6706
7629
  type SourceIndexMode = components["schemas"]["SourceIndexMode"];
@@ -6727,6 +7650,122 @@ interface SortableListOptions extends ListOptions {
6727
7650
  /** Sort order. */
6728
7651
  order?: "asc" | "desc";
6729
7652
  }
7653
+ /** Filters for {@link Seclai.listAgentExamples}. */
7654
+ interface ListAgentExamplesOptions extends ListOptions {
7655
+ /** Words every matching example must contain. */
7656
+ query?: string;
7657
+ /** Only examples for this use case. */
7658
+ useCase?: string;
7659
+ }
7660
+ /** Filters for {@link Seclai.listSolutions}. */
7661
+ interface ListSolutionsOptions extends SortableListOptions {
7662
+ /** Keep solutions whose name contains this text (case-insensitive). */
7663
+ search?: string;
7664
+ }
7665
+ /** Filters for {@link Seclai.listMemoryBanks}. */
7666
+ interface ListMemoryBanksOptions extends SortableListOptions {
7667
+ /** Keep only one bank type. */
7668
+ type?: "conversation" | "general" | (string & {});
7669
+ }
7670
+ /** Filters for {@link Seclai.listEvaluationResults}. */
7671
+ interface ListEvaluationResultsOptions extends ListOptions {
7672
+ /** Keep only one result status. */
7673
+ status?: string;
7674
+ /** Keep only flagged results. Defaults to `false`. */
7675
+ flaggedOnly?: boolean;
7676
+ /** Earliest result time, ISO 8601. */
7677
+ timeFrom?: string;
7678
+ /** Latest result time, ISO 8601. */
7679
+ timeTo?: string;
7680
+ }
7681
+ /** Filters for {@link Seclai.listAgentEvaluationResults}. */
7682
+ interface ListAgentEvaluationResultsOptions extends ListEvaluationResultsOptions {
7683
+ /** Keep only results for this agent step. */
7684
+ step?: string;
7685
+ }
7686
+ /** Filters for {@link Seclai.listEvaluationRuns}: those of {@link ListAgentEvaluationResultsOptions} except `flaggedOnly`. */
7687
+ type ListEvaluationRunsOptions = Omit<ListAgentEvaluationResultsOptions, "flaggedOnly">;
7688
+ /** Filters for {@link Seclai.listCompatibleRuns}. */
7689
+ interface ListCompatibleRunsOptions extends ListOptions {
7690
+ /** Only runs started after this time, ISO 8601. */
7691
+ startedAfter?: string;
7692
+ }
7693
+ /**
7694
+ * Date range for {@link Seclai.getNonManualEvaluationSummary},
7695
+ * {@link Seclai.getMemoryBankStats} and {@link Seclai.listExperiments}. Each
7696
+ * endpoint combines the dates with `days` its own way; see the method.
7697
+ */
7698
+ interface DateRangeOptions {
7699
+ /** Days back from today. The server defaults to 30. */
7700
+ days?: number;
7701
+ /** First day, `YYYY-MM-DD`. */
7702
+ startDate?: string;
7703
+ /** Last day, `YYYY-MM-DD`. */
7704
+ endDate?: string;
7705
+ }
7706
+ /** Offset paging. Each method documents its server defaults and bounds. */
7707
+ interface OffsetPageOptions {
7708
+ /** Most items to return. */
7709
+ limit?: number;
7710
+ /** Items to skip. */
7711
+ offset?: number;
7712
+ }
7713
+ /** Filters for {@link Seclai.listAlerts}. */
7714
+ interface ListAlertsOptions extends ListOptions {
7715
+ /** Keep only one alert status. */
7716
+ status?: string;
7717
+ /**
7718
+ * Accepted for compatibility and never sent: `GET /alerts` has no severity
7719
+ * filter.
7720
+ *
7721
+ * @deprecated The API has no severity filter; this never filtered anything.
7722
+ */
7723
+ severity?: string;
7724
+ /** Keep only alerts for this agent. */
7725
+ agentId?: string;
7726
+ /** Keep only alerts for this source connection. */
7727
+ sourceConnectionId?: string;
7728
+ /** Earliest alert time, ISO 8601. */
7729
+ timeFrom?: string;
7730
+ /** Latest alert time, ISO 8601. */
7731
+ timeTo?: string;
7732
+ }
7733
+ /** Filters for {@link Seclai.listAlertConfigs}. */
7734
+ interface ListAlertConfigsOptions extends ListOptions {
7735
+ /** Keep only configs for this agent. */
7736
+ agentId?: string;
7737
+ /** Keep only configs for this source connection. */
7738
+ sourceConnectionId?: string;
7739
+ /** `source` lists the account-level source alert configs. */
7740
+ scope?: "source" | (string & {});
7741
+ }
7742
+ /** Filters for {@link Seclai.listOrganizationAlertPreferences}. */
7743
+ interface ListOrganizationAlertPreferencesOptions {
7744
+ /** Keep only one organization's preferences. */
7745
+ organizationId?: string;
7746
+ /** Also list the default subscription for every alert type. Defaults to `false`. */
7747
+ includeDefaults?: boolean;
7748
+ }
7749
+ /** Filters for {@link Seclai.listModelAlerts}. */
7750
+ interface ListModelAlertsOptions extends ListOptions {
7751
+ /** Keep only alerts for this agent. */
7752
+ agentId?: string;
7753
+ /** Keep only unread alerts. Defaults to `false`. */
7754
+ unreadOnly?: boolean;
7755
+ }
7756
+ /** Requirements for {@link Seclai.getModelRecommendations}. */
7757
+ interface ModelRecommendationsOptions {
7758
+ /** Only models that support tool use. */
7759
+ requireToolUse?: boolean;
7760
+ /** Only models that support structured output. */
7761
+ requireStructuredOutput?: boolean;
7762
+ /** Only models that support thinking. */
7763
+ requireThinking?: boolean;
7764
+ /** Smallest acceptable context window, in tokens. */
7765
+ minContextTokens?: number;
7766
+ /** Smallest acceptable output limit, in tokens. */
7767
+ minOutputTokens?: number;
7768
+ }
6730
7769
 
6731
7770
  /** Default API base URL (can be overridden with `baseUrl` or `SECLAI_API_URL`). */
6732
7771
  declare const SECLAI_API_URL = "https://api.seclai.com";
@@ -6908,7 +7947,7 @@ declare class Seclai {
6908
7947
  query?: Record<string, unknown>;
6909
7948
  json?: unknown;
6910
7949
  headers?: Record<string, string>;
6911
- signal?: AbortSignal;
7950
+ signal?: AbortSignal | undefined;
6912
7951
  }): Promise<Response>;
6913
7952
  /** Shared multipart upload helper. */
6914
7953
  private uploadFile;
@@ -6951,6 +7990,16 @@ declare class Seclai {
6951
7990
  * @returns Paginated list of agents.
6952
7991
  */
6953
7992
  listAgents(opts?: ListOptions): Promise<AgentListResponse>;
7993
+ /**
7994
+ * List the agent gallery: example agents to start from.
7995
+ *
7996
+ * Pass an entry's `key` as `agent_template` to {@link createAgent}, with
7997
+ * `resource_bindings` for the resources it needs.
7998
+ *
7999
+ * @param opts - Text search, use-case filter and pagination.
8000
+ * @returns A page of gallery entries.
8001
+ */
8002
+ listAgentExamples(opts?: ListAgentExamplesOptions): Promise<AgentExampleListResponse>;
6954
8003
  /**
6955
8004
  * Create a new agent.
6956
8005
  *
@@ -7114,15 +8163,17 @@ declare class Seclai {
7114
8163
  * Run an agent in streaming mode (SSE) and wait for the final result.
7115
8164
  *
7116
8165
  * Consumes the entire SSE stream and returns only the terminal `done` payload.
7117
- * For real-time event access, use {@link runStreamingAgent} instead.
8166
+ * For real-time event access, use {@link runStreamingAgent} instead. The body
8167
+ * takes no `include_reasoning`, and one passed anyway is not sent: this method
8168
+ * returns no `stream_reasoning` events.
7118
8169
  *
7119
8170
  * @param agentId - Agent identifier.
7120
- * @param body - Streaming run request payload.
8171
+ * @param body - Streaming run request payload, without `include_reasoning`.
7121
8172
  * @param opts - Timeout and abort signal options.
7122
8173
  * @returns Final agent run payload from the `done` event.
7123
8174
  * @throws {@link SeclaiStreamingError} If the stream ends before a `done` event.
7124
8175
  */
7125
- runStreamingAgentAndWait(agentId: string, body: AgentRunStreamRequest, opts?: {
8176
+ runStreamingAgentAndWait(agentId: string, body: Omit<AgentRunStreamRequest, "include_reasoning">, opts?: {
7126
8177
  timeoutMs?: number;
7127
8178
  signal?: AbortSignal;
7128
8179
  }): Promise<AgentRunResponse>;
@@ -7180,10 +8231,14 @@ declare class Seclai {
7180
8231
  */
7181
8232
  listRunEvaluationResults(agentId: string, runId: string, opts?: ListOptions): Promise<EvaluationResultWithCriteriaListResponse>;
7182
8233
  /**
7183
- * Upload a file to use as input for a `dynamic_input` agent run.
8234
+ * Upload a file to use as input for a `dynamic_input` agent run. Any other
8235
+ * agent rejects the upload with HTTP 400. Files are limited to 200 MB.
7184
8236
  *
7185
- * After uploading, poll {@link getAgentInputUploadStatus} until `status` is `ready`,
7186
- * then pass `input_upload_id` to {@link runAgent}.
8237
+ * From API version `2026-10-16` a file of any type is accepted and is `ready`
8238
+ * at once: pass its `id` as `input_upload_id` to {@link runAgent}.
8239
+ * Earlier versions accept only a fixed list of extensions and write each
8240
+ * file's extracted text into the run's `input`, so poll
8241
+ * {@link getAgentInputUploadStatus} until `status` is `ready` before running.
7187
8242
  *
7188
8243
  * @param agentId - Agent identifier.
7189
8244
  * @param opts - File payload and optional metadata.
@@ -7223,11 +8278,15 @@ declare class Seclai {
7223
8278
  * @param runId - Run identifier.
7224
8279
  * @param attachmentId - URL-safe-base64-encoded `storage_key` of the attachment
7225
8280
  * (as surfaced in run output manifests and webhook/email payloads).
7226
- * @param opts - Optional `downloadName` filename hint for the download disposition.
8281
+ * @param opts - Optional `downloadName` filename hint for the download
8282
+ * disposition, and `signal`, which cancels the request; with a standard `fetch` this
8283
+ * includes reading the body, so `AbortSignal.timeout(ms)` bounds the whole
8284
+ * transfer.
7227
8285
  * @returns Raw response with the attachment bytes.
7228
8286
  */
7229
8287
  downloadAgentRunAttachment(runId: string, attachmentId: string, opts?: {
7230
8288
  downloadName?: string;
8289
+ signal?: AbortSignal;
7231
8290
  }): Promise<Response>;
7232
8291
  /**
7233
8292
  * Generate agent workflow steps from natural language using AI.
@@ -7324,9 +8383,9 @@ declare class Seclai {
7324
8383
  * List evaluation results for a specific criteria.
7325
8384
  *
7326
8385
  * @param criteriaId - Criteria identifier.
7327
- * @param opts - Pagination options.
8386
+ * @param opts - Pagination, status, flag and time-range filters.
7328
8387
  */
7329
- listEvaluationResults(criteriaId: string, opts?: ListOptions): Promise<EvaluationResultListResponse>;
8388
+ listEvaluationResults(criteriaId: string, opts?: ListEvaluationResultsOptions): Promise<EvaluationResultListResponse>;
7330
8389
  /**
7331
8390
  * Create a manual evaluation result for a criteria.
7332
8391
  *
@@ -7339,9 +8398,9 @@ declare class Seclai {
7339
8398
  * List runs compatible with a specific evaluation criteria.
7340
8399
  *
7341
8400
  * @param criteriaId - Criteria identifier.
7342
- * @param opts - Pagination options.
8401
+ * @param opts - Pagination and a `startedAfter` filter.
7343
8402
  */
7344
- listCompatibleRuns(criteriaId: string, opts?: ListOptions): Promise<CompatibleRunListResponse>;
8403
+ listCompatibleRuns(criteriaId: string, opts?: ListCompatibleRunsOptions): Promise<CompatibleRunListResponse>;
7345
8404
  /**
7346
8405
  * Test a draft evaluation criteria without persisting it.
7347
8406
  *
@@ -7354,22 +8413,25 @@ declare class Seclai {
7354
8413
  * List all evaluation results for an agent.
7355
8414
  *
7356
8415
  * @param agentId - Agent identifier.
7357
- * @param opts - Pagination options.
8416
+ * @param opts - Pagination, status, step, flag and time-range filters.
7358
8417
  */
7359
- listAgentEvaluationResults(agentId: string, opts?: ListOptions): Promise<EvaluationResultWithCriteriaListResponse>;
8418
+ listAgentEvaluationResults(agentId: string, opts?: ListAgentEvaluationResultsOptions): Promise<EvaluationResultWithCriteriaListResponse>;
7360
8419
  /**
7361
8420
  * List evaluation run summaries for an agent.
7362
8421
  *
7363
8422
  * @param agentId - Agent identifier.
7364
- * @param opts - Pagination options.
8423
+ * @param opts - Pagination, status, step and time-range filters.
7365
8424
  */
7366
- listEvaluationRuns(agentId: string, opts?: ListOptions): Promise<EvaluationRunSummaryListResponse>;
8425
+ listEvaluationRuns(agentId: string, opts?: ListEvaluationRunsOptions): Promise<EvaluationRunSummaryListResponse>;
7367
8426
  /**
7368
- * Get a summary of non-manual evaluations across an agent's runs.
8427
+ * Get a summary of non-manual evaluations, for one agent or the whole account.
7369
8428
  *
7370
- * @param agentId - Agent identifier.
8429
+ * @param agentId - Agent identifier. Omit (pass `undefined`) for the account-wide summary.
8430
+ * @param opts - Date range. `startDate` and `endDate` together set the range;
8431
+ * `startDate` alone runs from it through today; otherwise the last `days`
8432
+ * days apply (server default 30), and an `endDate` without `startDate` is ignored.
7371
8433
  */
7372
- getNonManualEvaluationSummary(agentId: string): Promise<NonManualEvaluationSummaryResponse>;
8434
+ getNonManualEvaluationSummary(agentId?: string, opts?: DateRangeOptions): Promise<NonManualEvaluationSummaryResponse>;
7373
8435
  /**
7374
8436
  * Configure an agent's `EMAIL_RECEIVED` trigger and return its computed
7375
8437
  * email address(es).
@@ -7384,6 +8446,33 @@ declare class Seclai {
7384
8446
  * @returns The trigger's resolved addresses and config.
7385
8447
  */
7386
8448
  setEmailTriggerConfig(agentId: string, triggerId: string, body: SetEmailTriggerConfigRequest): Promise<EmailTriggerConfigResponse>;
8449
+ /**
8450
+ * Configure an agent's `SLACK_COMMAND` trigger, which people run from Slack
8451
+ * with `/seclai` or the message shortcut.
8452
+ *
8453
+ * Sets the Slack connection, form, channels, reply visibility and conversation
8454
+ * settings. Omitted fields are left unchanged.
8455
+ *
8456
+ * @param agentId - Agent identifier.
8457
+ * @param triggerId - Trigger identifier.
8458
+ * @param body - The fields to set.
8459
+ * @returns The trigger's full Slack config, including any `missing_scopes`.
8460
+ */
8461
+ setSlackTriggerConfig(agentId: string, triggerId: string, body: SetSlackTriggerConfigRequest): Promise<SlackTriggerConfigResponse>;
8462
+ /**
8463
+ * Replace the input attachments a trigger accepts.
8464
+ *
8465
+ * A run's files are each assigned to one declared attachment before any step
8466
+ * runs, and steps reference one as `{{agent.attachments.<name>}}`. The API
8467
+ * answers 400 when the agent references an attachment the new declaration
8468
+ * leaves out.
8469
+ *
8470
+ * @param agentId - Agent identifier.
8471
+ * @param triggerId - Trigger identifier, as `getAgent()` returns it.
8472
+ * @param body - The full list of accepted attachments; a slot's `min` defaults to 0.
8473
+ * @returns The trigger's accepted attachments.
8474
+ */
8475
+ setAcceptedAttachments(agentId: string, triggerId: string, body: SetAcceptedAttachmentsInput): Promise<AcceptedAttachmentsResponse>;
7387
8476
  /**
7388
8477
  * List recipients who have opted out of this account's agent emails.
7389
8478
  *
@@ -7412,10 +8501,7 @@ declare class Seclai {
7412
8501
  * @param opts.limit - Page size (1-200, default 50).
7413
8502
  * @param opts.offset - Rows to skip (default 0).
7414
8503
  */
7415
- listBlockedEmailSenders(opts?: {
7416
- limit?: number;
7417
- offset?: number;
7418
- }): Promise<BlockedEmailSenderListResponse>;
8504
+ listBlockedEmailSenders(opts?: OffsetPageOptions): Promise<BlockedEmailSenderListResponse>;
7419
8505
  /**
7420
8506
  * Add a sender address or a whole domain to the account blocklist.
7421
8507
  *
@@ -7517,10 +8603,10 @@ declare class Seclai {
7517
8603
  /**
7518
8604
  * List memory banks.
7519
8605
  *
7520
- * @param opts - Pagination and sorting options.
8606
+ * @param opts - Pagination, sorting and a `type` filter.
7521
8607
  * @returns Paginated list of memory banks.
7522
8608
  */
7523
- listMemoryBanks(opts?: SortableListOptions): Promise<MemoryBankListResponse>;
8609
+ listMemoryBanks(opts?: ListMemoryBanksOptions): Promise<MemoryBankListResponse>;
7524
8610
  /**
7525
8611
  * Create a new memory bank.
7526
8612
  *
@@ -7562,8 +8648,10 @@ declare class Seclai {
7562
8648
  * Get stats for a memory bank.
7563
8649
  *
7564
8650
  * @param memoryBankId - Memory bank identifier.
8651
+ * @param opts - Date range. Only `startDate` and `endDate` together replace
8652
+ * `days`; either one alone is ignored and the last `days` days apply (server default 30).
7565
8653
  */
7566
- getMemoryBankStats(memoryBankId: string): Promise<unknown>;
8654
+ getMemoryBankStats(memoryBankId: string, opts?: DateRangeOptions): Promise<unknown>;
7567
8655
  /**
7568
8656
  * Compact a memory bank (trigger compaction).
7569
8657
  *
@@ -7602,8 +8690,10 @@ declare class Seclai {
7602
8690
  generateMemoryBankConfig(body: MemoryBankAiAssistantRequest): Promise<MemoryBankAiAssistantResponse>;
7603
8691
  /**
7604
8692
  * Get the last AI conversation for memory banks.
8693
+ *
8694
+ * @param opts - Turns to return (server default 5) and most-recent turns to skip (default 0).
7605
8695
  */
7606
- getMemoryBankAiLastConversation(): Promise<MemoryBankLastConversationResponse>;
8696
+ getMemoryBankAiLastConversation(opts?: OffsetPageOptions): Promise<MemoryBankLastConversationResponse>;
7607
8697
  /**
7608
8698
  * Accept a memory bank AI suggestion.
7609
8699
  *
@@ -7693,6 +8783,20 @@ declare class Seclai {
7693
8783
  * @param contentVersionId - The `content_version_id` an upload returned.
7694
8784
  */
7695
8785
  getSourceContentStatus(sourceId: string, contentVersionId: string): Promise<SourceContentStatusResponse>;
8786
+ /**
8787
+ * List mail an email content source refused, newest first.
8788
+ *
8789
+ * Each entry says who sent the message and why it was refused, never its
8790
+ * subject or body. To accept a refused sender, add its `from_address` or that
8791
+ * address's domain to the source's `email_allowed_senders` — which only helps
8792
+ * when `authenticated` is true. Requires an account owner or administrator;
8793
+ * the API answers 404 for a source that is not an email source.
8794
+ *
8795
+ * @param sourceId - Source connection identifier.
8796
+ * @param opts - Pagination options (`limit` 1-100).
8797
+ * @returns The rejections under `data` with `pagination`.
8798
+ */
8799
+ listEmailSourceRejections(sourceId: string, opts?: ListOptions): Promise<EmailSourceRejectionListResponse>;
7696
8800
  /**
7697
8801
  * List exports for a source.
7698
8802
  *
@@ -7731,9 +8835,14 @@ declare class Seclai {
7731
8835
  *
7732
8836
  * @param sourceId - Source connection identifier.
7733
8837
  * @param exportId - Export identifier.
8838
+ * @param opts - Optional `signal`, which cancels the request; with a standard `fetch` this
8839
+ * includes reading the body, so `AbortSignal.timeout(ms)` bounds the whole
8840
+ * transfer.
7734
8841
  * @returns Raw response with the export file.
7735
8842
  */
7736
- downloadSourceExport(sourceId: string, exportId: string): Promise<Response>;
8843
+ downloadSourceExport(sourceId: string, exportId: string, opts?: {
8844
+ signal?: AbortSignal;
8845
+ }): Promise<Response>;
7737
8846
  /**
7738
8847
  * Estimate a source export.
7739
8848
  *
@@ -7803,6 +8912,68 @@ declare class Seclai {
7803
8912
  * @returns Paginated list of embeddings.
7804
8913
  */
7805
8914
  listContentEmbeddings(contentVersionId: string, opts?: ListOptions): Promise<ContentEmbeddingsListResponse>;
8915
+ /**
8916
+ * List the files attached to a content item.
8917
+ *
8918
+ * Files arrive from an agent's `write_content_attachment` step, with an email
8919
+ * message, from an RSS feed's `feed_attachments`, from a web page's media, or
8920
+ * as the images inside a document. Each entry says whether it is indexed for
8921
+ * search and, when indexing failed, why.
8922
+ *
8923
+ * @param contentVersionId - Content version identifier.
8924
+ * @param opts - Pagination options.
8925
+ * @returns The attachments under `data` with `pagination`.
8926
+ */
8927
+ listContentAttachments(contentVersionId: string, opts?: ListOptions): Promise<ContentAttachmentsListResponse>;
8928
+ /**
8929
+ * Get one file attached to a content item: its indexing status and reason,
8930
+ * its metadata, and the text it is indexed by.
8931
+ *
8932
+ * @param contentVersionId - Content version identifier.
8933
+ * @param attachmentId - The `id` of an entry from {@link listContentAttachments}.
8934
+ * @param opts - `start` and `end` character offsets for paging through long text
8935
+ * (server defaults 0 and 5000). Both are sent as given, so `end: 0` asks for
8936
+ * the metadata without any text. A file that was not indexed has no text.
8937
+ * @returns The attachment with the requested range of its text.
8938
+ * @throws {SeclaiAPIStatusError} 402 when the account has no credits left
8939
+ * (`error.code` `insufficient_credits`).
8940
+ */
8941
+ getContentAttachment(contentVersionId: string, attachmentId: string, opts?: {
8942
+ start?: number;
8943
+ end?: number;
8944
+ }): Promise<ContentAttachmentDetailResponse>;
8945
+ /**
8946
+ * List the embeddings (chunk vectors) a content attachment is indexed by.
8947
+ * The list is empty for a file that has no completed index.
8948
+ *
8949
+ * @param contentVersionId - Content version identifier.
8950
+ * @param attachmentId - Attachment identifier.
8951
+ * @param opts - Pagination options (`limit` 1-100).
8952
+ * @returns Paginated list of embeddings.
8953
+ * @throws {SeclaiAPIStatusError} 402 when the account has no credits left
8954
+ * (`error.code` `insufficient_credits`).
8955
+ */
8956
+ listContentAttachmentEmbeddings(contentVersionId: string, attachmentId: string, opts?: ListOptions): Promise<ContentEmbeddingsListResponse>;
8957
+ /**
8958
+ * Download a content attachment's bytes.
8959
+ *
8960
+ * Returns the raw `Response` so you can stream or save the binary data. The
8961
+ * API answers 403 when the file is withheld — blocked or redacted by a
8962
+ * governance policy, or still being indexed after arriving from outside; the
8963
+ * attachment's `file_withheld` field says which before you ask.
8964
+ *
8965
+ * @param contentVersionId - Content version identifier.
8966
+ * @param attachmentId - Attachment identifier.
8967
+ * @param opts - Optional `signal`, which cancels the request; with a standard `fetch` this
8968
+ * includes reading the body, so `AbortSignal.timeout(ms)` bounds the whole
8969
+ * transfer.
8970
+ * @returns Raw response with the attachment bytes.
8971
+ * @throws {SeclaiAPIStatusError} 403 when the file is withheld, and 402 when
8972
+ * the account has no credits left (`error.code` `insufficient_credits`).
8973
+ */
8974
+ downloadContentAttachment(contentVersionId: string, attachmentId: string, opts?: {
8975
+ signal?: AbortSignal;
8976
+ }): Promise<Response>;
7806
8977
  /**
7807
8978
  * Upload a file to replace content for an existing content version.
7808
8979
  *
@@ -7820,10 +8991,10 @@ declare class Seclai {
7820
8991
  /**
7821
8992
  * List solutions.
7822
8993
  *
7823
- * @param opts - Pagination and sorting options.
8994
+ * @param opts - Pagination, sorting and a name `search`.
7824
8995
  * @returns Paginated list of solutions.
7825
8996
  */
7826
- listSolutions(opts?: SortableListOptions): Promise<SolutionListResponse>;
8997
+ listSolutions(opts?: ListSolutionsOptions): Promise<SolutionListResponse>;
7827
8998
  /**
7828
8999
  * Create a new solution.
7829
9000
  *
@@ -7972,8 +9143,12 @@ declare class Seclai {
7972
9143
  generateGovernanceAiPlan(body: GovernanceAiAssistantRequest): Promise<GovernanceAiAssistantResponse>;
7973
9144
  /**
7974
9145
  * List governance AI conversations.
9146
+ *
9147
+ * @param opts - `limit`: how many conversations (the server defaults to 20).
7975
9148
  */
7976
- listGovernanceAiConversations(): Promise<GovernanceConversationResponse[]>;
9149
+ listGovernanceAiConversations(opts?: {
9150
+ limit?: number;
9151
+ }): Promise<GovernanceConversationResponse[]>;
7977
9152
  /**
7978
9153
  * Accept a governance AI plan.
7979
9154
  *
@@ -7993,10 +9168,7 @@ declare class Seclai {
7993
9168
  * @param opts - Pagination and filter options.
7994
9169
  * @returns Paginated list of alerts.
7995
9170
  */
7996
- listAlerts(opts?: ListOptions & {
7997
- status?: string;
7998
- severity?: string;
7999
- }): Promise<AlertListResponse>;
9171
+ listAlerts(opts?: ListAlertsOptions): Promise<AlertListResponse>;
8000
9172
  /**
8001
9173
  * Get alert details by ID.
8002
9174
  *
@@ -8040,7 +9212,7 @@ declare class Seclai {
8040
9212
  * `configs` and `total` are populated on every API version; `data` and
8041
9213
  * `pagination` are also present once `apiVersion` is 2026-07-27 or later.
8042
9214
  */
8043
- listAlertConfigs(opts?: ListOptions): Promise<AlertConfigListResponse>;
9215
+ listAlertConfigs(opts?: ListAlertConfigsOptions): Promise<AlertConfigListResponse>;
8044
9216
  /**
8045
9217
  * Create an alert configuration.
8046
9218
  *
@@ -8071,8 +9243,10 @@ declare class Seclai {
8071
9243
  deleteAlertConfig(configId: string): Promise<void>;
8072
9244
  /**
8073
9245
  * List organization alert preferences.
9246
+ *
9247
+ * @param opts - Organization filter, and whether to include default subscriptions.
8074
9248
  */
8075
- listOrganizationAlertPreferences(): Promise<OrganizationAlertPreferenceListResponse>;
9249
+ listOrganizationAlertPreferences(opts?: ListOrganizationAlertPreferencesOptions): Promise<OrganizationAlertPreferenceListResponse>;
8076
9250
  /**
8077
9251
  * Update an organization alert preference.
8078
9252
  *
@@ -8084,9 +9258,9 @@ declare class Seclai {
8084
9258
  /**
8085
9259
  * List model alerts.
8086
9260
  *
8087
- * @param opts - Pagination options.
9261
+ * @param opts - Pagination, an agent filter and `unreadOnly`.
8088
9262
  */
8089
- listModelAlerts(opts?: ListOptions): Promise<ModelAlertListResponse>;
9263
+ listModelAlerts(opts?: ListModelAlertsOptions): Promise<ModelAlertListResponse>;
8090
9264
  /**
8091
9265
  * Mark all model alerts as read.
8092
9266
  */
@@ -8105,8 +9279,9 @@ declare class Seclai {
8105
9279
  * Get model recommendations.
8106
9280
  *
8107
9281
  * @param modelId - Model identifier.
9282
+ * @param opts - Capabilities and limits a recommended model must have.
8108
9283
  */
8109
- getModelRecommendations(modelId: string): Promise<ModelRecommendationsResponse>;
9284
+ getModelRecommendations(modelId: string, opts?: ModelRecommendationsOptions): Promise<ModelRecommendationsResponse>;
8110
9285
  /**
8111
9286
  * List all enabled LLM models grouped by provider.
8112
9287
  *
@@ -8159,15 +9334,11 @@ declare class Seclai {
8159
9334
  /**
8160
9335
  * List model playground experiments.
8161
9336
  *
8162
- * @param opts - Optional filters and pagination.
9337
+ * @param opts - Date range and offset paging. Only `startDate` and `endDate`
9338
+ * together replace `days`; either one alone is ignored and the last `days`
9339
+ * days apply (server default 30).
8163
9340
  */
8164
- listExperiments(opts?: {
8165
- days?: number;
8166
- startDate?: string;
8167
- endDate?: string;
8168
- limit?: number;
8169
- offset?: number;
8170
- }): Promise<ExperimentListResponse>;
9341
+ listExperiments(opts?: DateRangeOptions & OffsetPageOptions): Promise<ExperimentListResponse>;
8171
9342
  /**
8172
9343
  * Create a model playground experiment.
8173
9344
  *
@@ -8423,8 +9594,10 @@ declare class Seclai {
8423
9594
  aiAssistantMemoryBank(body: MemoryBankAiAssistantRequest): Promise<MemoryBankAiAssistantResponse>;
8424
9595
  /**
8425
9596
  * Get AI assistant memory bank conversation history.
9597
+ *
9598
+ * @param opts - Turns to return (server default 5) and most-recent turns to skip (default 0).
8426
9599
  */
8427
- getAiAssistantMemoryBankHistory(): Promise<MemoryBankLastConversationResponse>;
9600
+ getAiAssistantMemoryBankHistory(opts?: OffsetPageOptions): Promise<MemoryBankLastConversationResponse>;
8428
9601
  /**
8429
9602
  * Accept an AI assistant suggestion.
8430
9603
  *
@@ -8647,4 +9820,4 @@ declare class SeclaiStreamingError extends SeclaiError {
8647
9820
  constructor(message: string, runId?: string);
8648
9821
  }
8649
9822
 
8650
- export { type AccessTokenProvider, type AddCommentRequest, type AddConversationTurnRequest, type AddEmailDomainInput, type AddEmailDomainRequest, type AgentAttachmentRefsApiResponse, type AgentCallerApiResponse, type AgentDefinitionImportErrorResponse, type AgentDefinitionResponse, type AgentEmailOptOutListResponse, type AgentEmailOptOutResponse, type AgentEvaluationTier, type AgentExportResponse, type AgentImportPreviewRequest, type AgentImportPreviewResponse, type AgentListResponse, type AgentRunAttemptResponse, type AgentRunEvent, type AgentRunFileResponse, type AgentRunListResponse, type AgentRunRequest, type AgentRunResponse, type AgentRunStepResponse, type AgentRunStreamRequest, type AgentRunToolCallResponse, type AgentSummaryResponse, type AgentTraceMatchResponse, type AgentTraceSearchRequest, type AgentTraceSearchResponse, type AgentUsingCloudDriveResponse, type AiAssistantAcceptRequest, type AiAssistantAcceptResponse, type AiAssistantFeedbackRequest, type AiAssistantFeedbackResponse, type AiAssistantGenerateRequest, type AiAssistantGenerateResponse, type AiConversationHistoryResponse, type AiConversationTurnResponse, type AlertCommentResponse, type AlertConfigListResponse, type AlertConfigResponse, type AlertDetailResponse, type AlertListResponse, type AlertResponse, type AlertSubscriberResponse, type ApiVersion, type ApiVersionResponse, type AttachmentRefsSourceApiSummary, type AuthState, type BlockEmailSenderRequest, type BlockedEmailSenderListResponse, type BlockedEmailSenderResponse, type CancelExperimentResponse, type CancelQueuedRunsResponse, type ChangeStatusRequest, type CloudDriveAccessLevelResponse, type CloudDriveProviderResponse, type CloudDriveRejectionResponse, type CloudDriveResponse, type CloudDriveScopeResponse, type CloudDriveUpdateRequest, type CompactionEvaluationModel, type CompactionTestResponse, type CompatibleRunListResponse, type CompatibleRunResponse, type ContentDetailResponse, type ContentEmbeddingResponse, type ContentEmbeddingsListResponse, type ContentFileUploadResponse, type CreateAgentRequest, type CreateAlertConfigRequest, type CreateEvaluationCriteriaRequest, type CreateEvaluationResultRequest, type CreateExperimentInput, type CreateExperimentResponse, type CreateExportRequest, type CreateKnowledgeBaseBody, type CreateMemoryBankBody, type CreateSolutionRequest, type CreateSourceBody, type CredentialChainOptions, DEFAULT_SSO_CLIENT_ID, DEFAULT_SSO_DOMAIN, DEFAULT_SSO_REGION, type DmarcFailingSourceResponse, type DmarcSummaryResponse, type DnsProviderResponse, type DnsRecordResponse, type EffortOptionsResponse, type EmailDomainResponse, type EmailDomainsListResponse, type EmailTriggerConfigResponse, type EmbeddingModalityRateResponse, type EmbeddingModelListResponse, type EmbeddingModelResponse, type EmbeddingStorageCreditsResponse, type EstimateExportRequest, type EstimateExportResponse, type EvaluationCriteriaListResponse, type EvaluationCriteriaResponse, type EvaluationResultListResponse, type EvaluationResultResponse, type EvaluationResultSummaryResponse, type EvaluationResultWithCriteriaListResponse, type EvaluationResultWithCriteriaResponse, type EvaluationRunSummaryListResponse, type EvaluationRunSummaryResponse, type EvaluationStatus, type ExamplePrompt, type ExecutedActionResponse, type ExperimentDetailResponse, type ExperimentListResponse, type ExperimentSummaryResponse, type ExportFormat, type ExportListResponse, type ExportResponse, type FetchLike, type FileUploadResponse, type GenerateAgentStepsRequest, type GenerateAgentStepsResponse, type GenerateStepConfigRequest, type GenerateStepConfigResponse, type GovernanceAiAcceptResponse, type GovernanceAiAssistantRequest, type GovernanceAiAssistantResponse, type GovernanceAppliedActionResponse, type GovernanceConversationResponse, type GovernancePolicyRefResponse, type GovernanceProposedPolicyActionResponse, type HTTPValidationError, type ImportFieldErrorModel, type ImportSkipResponse, type InboundEmailRejectionResponse, type InboundEmailStatusResponse, type InlineTextReplaceRequest, type InlineTextUploadRequest, type InsufficientCreditsDetail, type InsufficientCreditsResponse, type JSONValue, type KnowledgeBaseListResponse, type KnowledgeBaseResponse, type LinkResourcesRequest, type ListOptions, type ListSourceContentsOptions, type MarkAiSuggestionRequest, type MarkConversationTurnRequest, type MeResponse, type MemoryBankAcceptRequest, type MemoryBankAiAssistantRequest, type MemoryBankAiAssistantResponse, type MemoryBankConfigResponse, type MemoryBankConversationTurnResponse, type MemoryBankLastConversationResponse, type MemoryBankListResponse, type MemoryBankResponse, type ModalityRateResponse, type ModelAlertListResponse, type ModelAlertResponse, type ModelRecommendationResponse, type ModelRecommendationsResponse, type NonManualEvaluationModeStatResponse, type NonManualEvaluationSummaryResponse, type OkResponse, type OrganizationAlertPreferenceListResponse, type OrganizationAlertPreferenceResponse, type OrganizationInfoResponse, type PaginatedPage, type PaginationResponse, type PendingProcessingCompletedFailedStatus, type PlaygroundCreateRequest, type PromptModelAutoUpgradeStrategy, type PromptModelResponse, type PromptToolResponse, type ProposedActionResponse, type ProviderGroupResponse, type RemoveEmailDomainResponse, type RerankerModelListResponse, type RerankerModelResponse, type ResumeInboundResponse, SECLAI_API_URL, type SearchResponse, type SearchResultResponse, Seclai, SeclaiAPIStatusError, SeclaiAPIValidationError, SeclaiApiVersion, SeclaiConfigurationError, SeclaiError, type SeclaiOptions, SeclaiStreamingError, type SendTestEmailResponse, type SetAutoBlockModeRequest, type SetEmailTriggerConfigRequest, type SolutionAgentResponse, type SolutionConversationResponse, type SolutionKnowledgeBaseResponse, type SolutionListResponse, type SolutionResponse, type SolutionSourceConnectionResponse, type SolutionSummaryResponse, type SortableListOptions, type SourceConnectionResponse, type SourceContentStatusListResponse, type SourceContentStatusResponse, type SourceEmbeddingMigrationResponse, type SourceIndexMode, type SourceListResponse, type SourceResponse, type SsoCacheEntry, type SsoProfile, type StandaloneTestCompactionRequest, type StartSourceEmbeddingMigrationRequest, type TestCompactionRequest, type TestDraftEvaluationRequest, type TestDraftEvaluationResponse, type UnlinkResourcesRequest, type UnreadCountResponse, type UpdateAgentDefinitionRequest, type UpdateAgentRequest, type UpdateAlertConfigRequest, type UpdateEvaluationCriteriaRequest, type UpdateKnowledgeBaseBody, type UpdateMemoryBankBody, type UpdateOrganizationAlertPreferenceRequest, type UpdateSolutionRequest, type UpdateSourceBody, type UploadAgentInputApiResponse, type ValidationError, type VariantCategoryResponse, type VariantOptionResponse, deleteSsoCache, isTokenValid, loadSsoProfile, readSsoCache, writeSsoCache };
9823
+ export { type AcceptedAttachmentSlot, type AcceptedAttachmentSlotInput, type AcceptedAttachmentsResponse, type AccessTokenProvider, type AddCommentRequest, type AddConversationTurnRequest, type AddEmailDomainInput, type AddEmailDomainRequest, type AgentAttachmentRefsApiResponse, type AgentCallerApiResponse, type AgentDefinitionImportErrorResponse, type AgentDefinitionResponse, type AgentEmailOptOutListResponse, type AgentEmailOptOutResponse, type AgentEvaluationTier, type AgentExample, type AgentExampleListResponse, type AgentExampleResource, type AgentExportResponse, type AgentImportPreviewRequest, type AgentImportPreviewResponse, type AgentListResponse, type AgentRunAttemptResponse, type AgentRunEvent, type AgentRunFileResponse, type AgentRunListResponse, type AgentRunRequest, type AgentRunResponse, type AgentRunStepResponse, type AgentRunStreamRequest, type AgentRunToolCallResponse, type AgentSummaryResponse, type AgentTraceMatchResponse, type AgentTraceSearchRequest, type AgentTraceSearchResponse, type AgentUsingCloudDriveResponse, type AiAssistantAcceptRequest, type AiAssistantAcceptResponse, type AiAssistantFeedbackRequest, type AiAssistantFeedbackResponse, type AiAssistantGenerateRequest, type AiAssistantGenerateResponse, type AiConversationHistoryResponse, type AiConversationTurnResponse, type AlertCommentResponse, type AlertConfigListResponse, type AlertConfigResponse, type AlertDetailResponse, type AlertListResponse, type AlertResponse, type AlertSubscriberResponse, type ApiVersion, type ApiVersionResponse, type AttachmentRefsSourceApiSummary, type AuthState, type BlockEmailSenderRequest, type BlockedEmailSenderListResponse, type BlockedEmailSenderResponse, type CancelExperimentResponse, type CancelQueuedRunsResponse, type ChangeStatusRequest, type CloudDriveAccessLevelResponse, type CloudDriveProviderResponse, type CloudDriveRejectionResponse, type CloudDriveResponse, type CloudDriveScopeResponse, type CloudDriveUpdateRequest, type CompactionEvaluationModel, type CompactionTestResponse, type CompatibleRunListResponse, type CompatibleRunResponse, type ContentAttachmentDetailResponse, type ContentAttachmentResponse, type ContentAttachmentsListResponse, type ContentDetailResponse, type ContentEmbeddingResponse, type ContentEmbeddingsListResponse, type ContentFileUploadResponse, type CreateAgentRequest, type CreateAlertConfigRequest, type CreateEvaluationCriteriaRequest, type CreateEvaluationResultRequest, type CreateExperimentInput, type CreateExperimentResponse, type CreateExportRequest, type CreateKnowledgeBaseBody, type CreateMemoryBankBody, type CreateSolutionRequest, type CreateSourceBody, type CredentialChainOptions, DEFAULT_SSO_CLIENT_ID, DEFAULT_SSO_DOMAIN, DEFAULT_SSO_REGION, type DateRangeOptions, type DmarcFailingSourceResponse, type DmarcSummaryResponse, type DnsProviderResponse, type DnsRecordResponse, type EffortOptionsResponse, type EmailDomainResponse, type EmailDomainsListResponse, type EmailSourceRejectionListResponse, type EmailSourceRejectionResponse, type EmailTriggerConfigResponse, type EmbeddingModalityRateResponse, type EmbeddingModelListResponse, type EmbeddingModelResponse, type EmbeddingStorageCreditsResponse, type EstimateExportRequest, type EstimateExportResponse, type EvaluationCriteriaListResponse, type EvaluationCriteriaResponse, type EvaluationResultListResponse, type EvaluationResultResponse, type EvaluationResultSummaryResponse, type EvaluationResultWithCriteriaListResponse, type EvaluationResultWithCriteriaResponse, type EvaluationRunSummaryListResponse, type EvaluationRunSummaryResponse, type EvaluationStatus, type ExamplePrompt, type ExecutedActionResponse, type ExperimentDetailResponse, type ExperimentListResponse, type ExperimentSummaryResponse, type ExportFormat, type ExportListResponse, type ExportResponse, type FetchLike, type FileUploadResponse, type GenerateAgentStepsRequest, type GenerateAgentStepsResponse, type GenerateStepConfigRequest, type GenerateStepConfigResponse, type GovernanceAiAcceptResponse, type GovernanceAiAssistantRequest, type GovernanceAiAssistantResponse, type GovernanceAppliedActionResponse, type GovernanceConversationResponse, type GovernancePolicyRefResponse, type GovernanceProposedPolicyActionResponse, type HTTPValidationError, type ImportFieldErrorModel, type ImportSkipResponse, type InboundEmailRejectionResponse, type InboundEmailStatusResponse, type InlineTextReplaceRequest, type InlineTextUploadRequest, type InsufficientCreditsDetail, type InsufficientCreditsResponse, type JSONValue, type KnowledgeBaseListResponse, type KnowledgeBaseResponse, type LinkResourcesRequest, type ListAgentEvaluationResultsOptions, type ListAgentExamplesOptions, type ListAlertConfigsOptions, type ListAlertsOptions, type ListCompatibleRunsOptions, type ListEvaluationResultsOptions, type ListEvaluationRunsOptions, type ListMemoryBanksOptions, type ListModelAlertsOptions, type ListOptions, type ListOrganizationAlertPreferencesOptions, type ListSolutionsOptions, type ListSourceContentsOptions, type MarkAiSuggestionRequest, type MarkConversationTurnRequest, type MeResponse, type MemoryBankAcceptRequest, type MemoryBankAiAssistantRequest, type MemoryBankAiAssistantResponse, type MemoryBankConfigResponse, type MemoryBankConversationTurnResponse, type MemoryBankLastConversationResponse, type MemoryBankListResponse, type MemoryBankResponse, type ModalityRateResponse, type ModelAlertListResponse, type ModelAlertResponse, type ModelRecommendationResponse, type ModelRecommendationsOptions, type ModelRecommendationsResponse, type NonManualEvaluationModeStatResponse, type NonManualEvaluationSummaryResponse, type OffsetPageOptions, type OkResponse, type OrganizationAlertPreferenceListResponse, type OrganizationAlertPreferenceResponse, type OrganizationInfoResponse, type PaginatedPage, type PaginationResponse, type PendingProcessingCompletedFailedStatus, type PlaygroundCreateRequest, type PromptModelAutoUpgradeStrategy, type PromptModelResponse, type PromptToolResponse, type ProposedActionResponse, type ProviderGroupResponse, type RemoveEmailDomainResponse, type RerankerModelListResponse, type RerankerModelResponse, type ResumeInboundResponse, SECLAI_API_URL, type SearchResponse, type SearchResultResponse, Seclai, SeclaiAPIStatusError, SeclaiAPIValidationError, SeclaiApiVersion, SeclaiConfigurationError, SeclaiError, type SeclaiOptions, SeclaiStreamingError, type SendTestEmailResponse, type SetAcceptedAttachmentsInput, type SetAcceptedAttachmentsRequest, type SetAutoBlockModeRequest, type SetEmailTriggerConfigRequest, type SetSlackTriggerConfigRequest, type SkippedAttachmentReason, type SkippedAttachmentResponse, type SlackReplyVisibility, type SlackTriggerActivation, type SlackTriggerConfigResponse, type SlackTriggerScope, type SolutionAgentResponse, type SolutionConversationResponse, type SolutionKnowledgeBaseResponse, type SolutionListResponse, type SolutionResponse, type SolutionSourceConnectionResponse, type SolutionSummaryResponse, type SortableListOptions, type SourceConnectionResponse, type SourceContentStatusListResponse, type SourceContentStatusResponse, type SourceEmbeddingMigrationResponse, type SourceIndexMode, type SourceListResponse, type SourceResponse, type SpendCapAction, type SpendCapDeleteOrder, type SsoCacheEntry, type SsoProfile, type StandaloneTestCompactionRequest, type StartSourceEmbeddingMigrationRequest, type TestCompactionRequest, type TestDraftEvaluationRequest, type TestDraftEvaluationResponse, type UnlinkResourcesRequest, type UnreadCountResponse, type UpdateAgentDefinitionRequest, type UpdateAgentRequest, type UpdateAlertConfigRequest, type UpdateEvaluationCriteriaRequest, type UpdateKnowledgeBaseBody, type UpdateMemoryBankBody, type UpdateOrganizationAlertPreferenceRequest, type UpdateSolutionRequest, type UpdateSourceBody, type UploadAgentInputApiResponse, type ValidationError, type VariantCategoryResponse, type VariantOptionResponse, deleteSsoCache, isTokenValid, loadSsoProfile, readSsoCache, writeSsoCache };