@seclai/sdk 1.4.0 → 1.6.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.cts CHANGED
@@ -1,3 +1,33 @@
1
+ /**
2
+ * Dated API versions known to this release, for use with the `apiVersion`
3
+ * client option.
4
+ *
5
+ * The set is open: the API adds versions without an SDK release, and
6
+ * {@link ApiVersion} widens to `string`, so a date newer than this release
7
+ * knows about can be passed directly. Treat these as convenience constants
8
+ * rather than an exhaustive list — `getApiVersion()` reports what the server
9
+ * actually supports.
10
+ */
11
+ declare const SeclaiApiVersion: {
12
+ readonly V2026_07_01: "2026-07-01";
13
+ readonly V2026_07_27: "2026-07-27";
14
+ readonly V2026_08_03: "2026-08-03";
15
+ readonly V2026_08_21: "2026-08-21";
16
+ readonly V2026_09_28: "2026-09-28";
17
+ readonly V2026_09_30: "2026-09-30";
18
+ readonly V2026_10_03: "2026-10-03";
19
+ /** Baseline applied to an unpinned, header-less caller. */
20
+ readonly Default: "2026-07-01";
21
+ /** Newest version known to this SDK release. May lag the server. */
22
+ readonly Latest: "2026-10-03";
23
+ };
24
+ /**
25
+ * A dated API version. Known values autocomplete; any `YYYY-MM-DD` string still
26
+ * typechecks, but one this release was not built against is rejected at
27
+ * construction unless `allowUnknownApiVersion` is set.
28
+ */
29
+ type ApiVersion = (typeof SeclaiApiVersion)[keyof typeof SeclaiApiVersion] | (string & {});
30
+
1
31
  interface components {
2
32
  schemas: {
3
33
  /** AddConversationTurnRequest */
@@ -197,7 +227,7 @@ interface components {
197
227
  }[] | null;
198
228
  /**
199
229
  * Export Version
200
- * @description Schema version of the export format (currently "2").
230
+ * @description Schema version of the export format (currently "5").
201
231
  */
202
232
  export_version: string;
203
233
  /**
@@ -250,6 +280,38 @@ interface components {
250
280
  /** @description Status of the agent run attempt. */
251
281
  status: components["schemas"]["PendingProcessingCompletedFailedStatus"];
252
282
  };
283
+ /**
284
+ * AgentRunFileResponse
285
+ * @description A file in a run's or a step's output.
286
+ */
287
+ AgentRunFileResponse: {
288
+ /**
289
+ * Bytes
290
+ * @description Size of the file in bytes, when known.
291
+ */
292
+ bytes: number | null;
293
+ /**
294
+ * Download Url
295
+ * @description `GET` URL that streams the file; accepts an API key or OAuth token.
296
+ */
297
+ download_url: string;
298
+ /**
299
+ * Id
300
+ * Format: uuid
301
+ * @description File identifier, used to download it.
302
+ */
303
+ id: string;
304
+ /**
305
+ * Mime
306
+ * @description MIME type of the file.
307
+ */
308
+ mime: string;
309
+ /**
310
+ * Name
311
+ * @description The file's name in this run, as sent to email recipients and webhooks and matched by `{{attachments[...]}}` selectors.
312
+ */
313
+ name: string | null;
314
+ };
253
315
  /** AgentRunRequest */
254
316
  AgentRunRequest: {
255
317
  /**
@@ -259,7 +321,7 @@ interface components {
259
321
  input?: string | null;
260
322
  /**
261
323
  * Input Upload Id
262
- * @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 the 'input' field. Use ``input_upload_ids`` to attach multiple files.
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.
263
325
  *
264
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]}}``).
265
327
  *
@@ -268,7 +330,7 @@ interface components {
268
330
  input_upload_id?: string | null;
269
331
  /**
270
332
  * Input Upload Ids
271
- * @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`` and ``input_upload_id`` — pass exactly one of the three. Max 20 uploads per run.
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.
272
334
  */
273
335
  input_upload_ids?: string[] | null;
274
336
  /**
@@ -292,6 +354,11 @@ interface components {
292
354
  };
293
355
  /** AgentRunResponse */
294
356
  AgentRunResponse: {
357
+ /**
358
+ * Attachments
359
+ * @description Files in the run's output, in order. Empty for runs that produced none, for runs made before files were listed here, and once the run's trace is purged.
360
+ */
361
+ attachments?: components["schemas"]["AgentRunFileResponse"][];
295
362
  /**
296
363
  * Attempts
297
364
  * @description List of attempts made for this agent run.
@@ -304,7 +371,7 @@ interface components {
304
371
  blocked_policies?: components["schemas"]["routers__api__agents__GovernancePolicyRefResponse"][];
305
372
  /**
306
373
  * Credits
307
- * @description Credits consumed by the agent run, if applicable.
374
+ * @description Credits consumed by the agent run, if applicable. Can still rise briefly after the run ends, while governance screening finishes.
308
375
  */
309
376
  credits: number | null;
310
377
  /**
@@ -344,12 +411,12 @@ interface components {
344
411
  input_scan_status?: string | null;
345
412
  /**
346
413
  * Output
347
- * @description Output produced by the agent run.
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.
348
415
  */
349
416
  output: string | null;
350
417
  /**
351
418
  * Output Content Type
352
- * @description MIME type of `output` — mirrors the terminal step's `output_content_type`. Consumers interpret `output` differently depending on this value: `application/vnd.seclai.manifest+json` is a multi-asset manifest with shape `{text, attachments: [{storage_key, mime, name, bytes}]}` — fetch each attachment via `GET /api/v2/agent-runs/{run_id}/attachments/{attachment_id}`, where `attachment_id` is the URL-safe base64 of the attachment's `storage_key` (accepts an API key or OAuth token). `text/plain` / `text/*` are free-form text. `application/json` is a JSON document. Null on runs that produced no terminal output or that pre-date this column.
419
+ * @description MIME type of `output` — mirrors the terminal step's `output_content_type`. `text/plain` / `text/*` are free-form text and `application/json` is a JSON document. Below `Seclai-Version: 2026-09-30` an output that has files reads `application/vnd.seclai.manifest+json` (see `output`); the same files are in `attachments` on every version, each with a `download_url`. Null on runs that produced no terminal output or that pre-date this column.
353
420
  */
354
421
  output_content_type?: string | null;
355
422
  /**
@@ -374,6 +441,11 @@ interface components {
374
441
  * @description Step outputs and per-step timing/credits. Only included when requested.
375
442
  */
376
443
  steps?: components["schemas"]["AgentRunStepResponse"][] | null;
444
+ /**
445
+ * 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.
447
+ */
448
+ trace_purged_at?: string | null;
377
449
  /**
378
450
  * Wait Ms
379
451
  * @description Cumulative milliseconds the run was parked on standard-mode wait steps. Subtracted from active duration in run-detail and duration-stats responses, exactly like hitl_wait_ms. Priority waits block inline and are not counted here.
@@ -387,9 +459,14 @@ interface components {
387
459
  * @description Agent step identifier.
388
460
  */
389
461
  agent_step_id: string;
462
+ /**
463
+ * Attachments
464
+ * @description Files in this step's output, in order. Empty for steps that produced none, for steps run before files were listed here, and once the run's trace is purged.
465
+ */
466
+ attachments?: components["schemas"]["AgentRunFileResponse"][];
390
467
  /**
391
468
  * Credits Used
392
- * @description Credits consumed by the step attempt, if applicable.
469
+ * @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.
393
470
  */
394
471
  credits_used: number;
395
472
  /**
@@ -404,12 +481,12 @@ interface components {
404
481
  ended_at: string | null;
405
482
  /**
406
483
  * Input
407
- * @description Input provided to the step, if any.
484
+ * @description Input text provided to the step, if any. Below `Seclai-Version: 2026-09-30`, the manifest JSON when the step that produced it output files and is not a `for_each`.
408
485
  */
409
486
  input: string | null;
410
487
  /**
411
488
  * Output
412
- * @description Output produced by the step, if any.
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`.
413
490
  */
414
491
  output: string | null;
415
492
  /**
@@ -434,6 +511,11 @@ interface components {
434
511
  * @description LLM tool calls made during this step (prompt_call steps only), ordered by execution. Empty for steps that invoked no tools.
435
512
  */
436
513
  tool_calls?: components["schemas"]["AgentRunToolCallResponse"][];
514
+ /**
515
+ * 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.
517
+ */
518
+ warnings?: string[] | null;
437
519
  };
438
520
  /** AgentRunStreamRequest */
439
521
  AgentRunStreamRequest: {
@@ -444,12 +526,12 @@ interface components {
444
526
  input?: string | null;
445
527
  /**
446
528
  * Input Upload Id
447
- * @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 the 'input' field. Use ``input_upload_ids`` to attach multiple files. Subject to the same per-batch attachment-selector validation as the non-streaming endpoint.
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.
448
530
  */
449
531
  input_upload_id?: string | null;
450
532
  /**
451
533
  * Input Upload Ids
452
- * @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). Max 20.
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.
453
535
  */
454
536
  input_upload_ids?: string[] | null;
455
537
  /**
@@ -519,7 +601,7 @@ interface components {
519
601
  round_index: number;
520
602
  /**
521
603
  * Sequence
522
- * @description 0-based ordinal of this call within its step run.
604
+ * @description 0-based ordinal of this call within one attempt of the step, so it repeats across a retried step's attempts. This list holds the latest attempt only.
523
605
  * @default 0
524
606
  */
525
607
  sequence: number;
@@ -697,6 +779,34 @@ interface components {
697
779
  */
698
780
  total: number;
699
781
  };
782
+ /** AgentUsingCloudDriveResponseModel */
783
+ AgentUsingCloudDriveResponseModel: {
784
+ /**
785
+ * Agent Id
786
+ * @description Agent identifier.
787
+ */
788
+ agent_id: string;
789
+ /**
790
+ * Agent Name
791
+ * @description Agent name.
792
+ */
793
+ agent_name: string;
794
+ /**
795
+ * Trigger Types
796
+ * @description File-change trigger types bound to this drive.
797
+ */
798
+ trigger_types: string[];
799
+ /**
800
+ * Via Prompt Tool
801
+ * @description Uses a prompt_call cloud-drive tool.
802
+ */
803
+ via_prompt_tool: boolean;
804
+ /**
805
+ * Via Step
806
+ * @description Uses a list/read/write cloud-drive step.
807
+ */
808
+ via_step: boolean;
809
+ };
700
810
  /**
701
811
  * AiAssistantAcceptResponse
702
812
  * @description Response from accepting and executing a plan.
@@ -837,6 +947,96 @@ interface components {
837
947
  */
838
948
  user_input: string;
839
949
  };
950
+ /**
951
+ * AlertConfigListResponse
952
+ * @description ``GET /alerts/configs`` legacy/default shape (header-less clients).
953
+ *
954
+ * ``Seclai-Version: 2026-07-27+`` clients receive the canonical
955
+ * ``{data, pagination}`` envelope instead (the handler returns a ``JSONResponse``
956
+ * that bypasses this ``response_model``); this documents the default shape.
957
+ */
958
+ AlertConfigListResponse: {
959
+ /** Configs */
960
+ configs: components["schemas"]["AlertConfigResponse"][];
961
+ /** Total */
962
+ total: number;
963
+ };
964
+ /** AlertConfigResponse */
965
+ AlertConfigResponse: {
966
+ /** Account Id */
967
+ account_id: string;
968
+ /** Agent Id */
969
+ agent_id: string | null;
970
+ /** Alert Type */
971
+ alert_type: string;
972
+ /** Cooldown Minutes */
973
+ cooldown_minutes: number;
974
+ /** Created At */
975
+ created_at: string | null;
976
+ /** Distribution Type */
977
+ distribution_type: string;
978
+ /** Enabled */
979
+ enabled: boolean;
980
+ /** Id */
981
+ id: string;
982
+ /** Last Alerted At */
983
+ last_alerted_at: string | null;
984
+ /** Recipient User Ids */
985
+ recipient_user_ids: string[];
986
+ /** Source Connection Id */
987
+ source_connection_id: string | null;
988
+ /** Threshold */
989
+ threshold: {
990
+ [key: string]: unknown;
991
+ } | null;
992
+ /** Updated At */
993
+ updated_at: string | null;
994
+ };
995
+ /** AlertHistoryEntryResponse */
996
+ AlertHistoryEntryResponse: {
997
+ /** Changed By Name */
998
+ changed_by_name: string | null;
999
+ /** Changed By User Id */
1000
+ changed_by_user_id: string | null;
1001
+ /** Created At */
1002
+ created_at: string | null;
1003
+ /** Id */
1004
+ id: string;
1005
+ /** New Status */
1006
+ new_status: string;
1007
+ /** Note */
1008
+ note: string | null;
1009
+ /** Previous Status */
1010
+ previous_status: string | null;
1011
+ };
1012
+ /** ApiVersionResponse */
1013
+ ApiVersionResponse: {
1014
+ /**
1015
+ * Default Version
1016
+ * @description Baseline for an unpinned, header-less caller.
1017
+ */
1018
+ default_version: string;
1019
+ /**
1020
+ * Effective Version
1021
+ * @description The version THIS request resolved to (header > pin > default).
1022
+ */
1023
+ effective_version: string;
1024
+ /**
1025
+ * Known Versions
1026
+ * @description All dated versions, oldest first.
1027
+ */
1028
+ known_versions: string[];
1029
+ /**
1030
+ * Latest Version
1031
+ * @description Newest version the server knows about.
1032
+ */
1033
+ latest_version: string;
1034
+ /**
1035
+ * Pinned Version
1036
+ * @description The account's sticky pinned version, or null when unpinned (the account resolves to the default). Applies to header-less requests.
1037
+ */
1038
+ pinned_version: string | null;
1039
+ };
840
1040
  /**
841
1041
  * AppliedActionResponse
842
1042
  * @description Result of a single executed governance action.
@@ -968,6 +1168,11 @@ interface components {
968
1168
  */
969
1169
  title?: string;
970
1170
  };
1171
+ /** CancelExperimentResponse */
1172
+ CancelExperimentResponse: {
1173
+ /** Status */
1174
+ status: string;
1175
+ };
971
1176
  /** CancelQueuedRunsResponse */
972
1177
  CancelQueuedRunsResponse: {
973
1178
  /** Cancelled */
@@ -986,6 +1191,215 @@ interface components {
986
1191
  */
987
1192
  status: string;
988
1193
  };
1194
+ /** CloudDriveAccessLevelResponseModel */
1195
+ CloudDriveAccessLevelResponseModel: {
1196
+ /**
1197
+ * Default
1198
+ * @description Whether connecting without a choice uses it.
1199
+ */
1200
+ default: boolean;
1201
+ /**
1202
+ * Description
1203
+ * @description What agents can do at this level.
1204
+ */
1205
+ description: string;
1206
+ /**
1207
+ * Key
1208
+ * @description Level identifier, e.g. `read_write`/`read_only`.
1209
+ */
1210
+ key: string;
1211
+ /**
1212
+ * Label
1213
+ * @description Short human-readable name.
1214
+ */
1215
+ label: string;
1216
+ };
1217
+ /** CloudDriveProviderResponseModel */
1218
+ CloudDriveProviderResponseModel: {
1219
+ /**
1220
+ * Access Levels
1221
+ * @description Mutually-exclusive permission bundles offered when connecting. Connecting happens in the app, so this is informational here — it explains what a connection's `access_level` can be.
1222
+ */
1223
+ access_levels: components["schemas"]["CloudDriveAccessLevelResponseModel"][];
1224
+ /**
1225
+ * Display Name
1226
+ * @description Human-readable provider name.
1227
+ */
1228
+ display_name: string;
1229
+ /**
1230
+ * Key
1231
+ * @description Provider key used as `provider` on a connection.
1232
+ */
1233
+ key: string;
1234
+ /**
1235
+ * Scopes
1236
+ * @description OAuth permissions this provider can request.
1237
+ */
1238
+ scopes: components["schemas"]["CloudDriveScopeResponseModel"][];
1239
+ };
1240
+ /**
1241
+ * CloudDriveRejectionResponseModel
1242
+ * @description One file the connection deliberately did not process.
1243
+ */
1244
+ CloudDriveRejectionResponseModel: {
1245
+ /**
1246
+ * Created At
1247
+ * @description When the file was skipped.
1248
+ */
1249
+ created_at: string;
1250
+ /**
1251
+ * Detail
1252
+ * @description Extra context, e.g. the cap that was hit.
1253
+ */
1254
+ detail?: string | null;
1255
+ /**
1256
+ * File Id
1257
+ * @description The provider's file id, when the file was known.
1258
+ */
1259
+ file_id?: string | null;
1260
+ /**
1261
+ * File Path
1262
+ * @description Path of the skipped file, when known.
1263
+ */
1264
+ file_path?: string | null;
1265
+ /**
1266
+ * Id
1267
+ * @description Rejection identifier.
1268
+ */
1269
+ id: string;
1270
+ /**
1271
+ * Reason
1272
+ * @description `too_large`, `download_failed`, or `flood`.
1273
+ */
1274
+ reason: string;
1275
+ };
1276
+ /**
1277
+ * CloudDriveResponseModel
1278
+ * @description A cloud-drive connection, without any secret material.
1279
+ */
1280
+ CloudDriveResponseModel: {
1281
+ /**
1282
+ * Access Level
1283
+ * @description The permission bundle the granted scopes correspond to — `read_write` or `read_only`. Null when the grant matches no level the provider currently offers; treat that as unknown rather than assuming write access.
1284
+ */
1285
+ access_level?: string | null;
1286
+ /**
1287
+ * Connected
1288
+ * @description True when the connection is usable.
1289
+ */
1290
+ connected: boolean;
1291
+ /**
1292
+ * Created At
1293
+ * @description When the connection was created.
1294
+ */
1295
+ created_at: string;
1296
+ /**
1297
+ * Drive Id
1298
+ * @description Opaque id of the shared drive the folder resolves to, or null for the user's own drive. Stable across renames — compare on this rather than on the name in `folder_path`.
1299
+ */
1300
+ drive_id?: string | null;
1301
+ /**
1302
+ * Drive Name
1303
+ * @description Display name the shared drive last resolved to. Presentation only; never match on it.
1304
+ */
1305
+ drive_name?: string | null;
1306
+ /**
1307
+ * Drive Name Stale
1308
+ * @description True when `drive_name` could not be re-confirmed (the drive was deleted, access was lost, or the provider was unreachable). The last known name is still reported — treat it as possibly out of date rather than current.
1309
+ */
1310
+ drive_name_stale: boolean;
1311
+ /**
1312
+ * External Account Id
1313
+ * @description The provider's own opaque account identifier (never an email).
1314
+ */
1315
+ external_account_id?: string | null;
1316
+ /**
1317
+ * Folder Path
1318
+ * @description Watched folder; empty string means the drive root. A folder on a shared drive is written `/Shared drives/<drive name>/<folder>`.
1319
+ */
1320
+ folder_path: string;
1321
+ /**
1322
+ * Id
1323
+ * @description Connection identifier.
1324
+ */
1325
+ id: string;
1326
+ /**
1327
+ * Last Error
1328
+ * @description Most recent sync or authorization error, if any.
1329
+ */
1330
+ last_error?: string | null;
1331
+ /**
1332
+ * Last Synced At
1333
+ * @description When the connection last synced successfully.
1334
+ */
1335
+ last_synced_at?: string | null;
1336
+ /**
1337
+ * Name
1338
+ * @description Human-readable name.
1339
+ */
1340
+ name?: string | null;
1341
+ /**
1342
+ * Oauth Scopes
1343
+ * @description Space-separated OAuth scopes granted to this connection.
1344
+ */
1345
+ oauth_scopes?: string | null;
1346
+ /**
1347
+ * Provider
1348
+ * @description Provider key, e.g. `dropbox` or `google_drive`.
1349
+ */
1350
+ provider: string;
1351
+ /**
1352
+ * Realtime Updates
1353
+ * @description True when changes arrive via the provider's push notifications. False means the drive still syncs, but only on the scheduled backstop sweep rather than within seconds of a change.
1354
+ */
1355
+ realtime_updates: boolean;
1356
+ /**
1357
+ * Status
1358
+ * @description One of `active`, `pending_auth`, `error`, `disconnected`.
1359
+ */
1360
+ status: string;
1361
+ /**
1362
+ * Updated At
1363
+ * @description When the connection was last modified.
1364
+ */
1365
+ updated_at: string;
1366
+ };
1367
+ /** CloudDriveScopeResponseModel */
1368
+ CloudDriveScopeResponseModel: {
1369
+ /**
1370
+ * Description
1371
+ * @description What the scope allows.
1372
+ */
1373
+ description: string;
1374
+ /**
1375
+ * Key
1376
+ * @description The OAuth scope string sent to the provider.
1377
+ */
1378
+ key: string;
1379
+ /**
1380
+ * Label
1381
+ * @description Short human-readable name.
1382
+ */
1383
+ label: string;
1384
+ /**
1385
+ * Recommended
1386
+ * @description Whether this scope is requested by default on connect.
1387
+ */
1388
+ recommended: boolean;
1389
+ };
1390
+ /** CloudDriveUpdateRequest */
1391
+ CloudDriveUpdateRequest: {
1392
+ /**
1393
+ * Folder Path
1394
+ * @description New watched folder; empty means the whole drive. A folder on a shared drive is written `/Shared drives/<drive name>/<folder>`. Changing it resets the sync cursor, so files already in the new folder are NOT replayed as triggers — only subsequent changes fire, matching connect-time behaviour. Rejected when the new folder would make an agent that writes there re-trigger itself.
1395
+ */
1396
+ folder_path?: string | null;
1397
+ /**
1398
+ * Name
1399
+ * @description New display name for the connection.
1400
+ */
1401
+ name?: string | null;
1402
+ };
989
1403
  /**
990
1404
  * CompactionEvaluationModel
991
1405
  * @description Structured LLM-as-judge evaluation result.
@@ -1007,6 +1421,16 @@ interface components {
1007
1421
  */
1008
1422
  verdict: string;
1009
1423
  };
1424
+ /**
1425
+ * CompactionScheduledResponse
1426
+ * @description Acknowledgement that an on-demand compaction run was scheduled.
1427
+ */
1428
+ CompactionScheduledResponse: {
1429
+ /** Memory Bank Id */
1430
+ memory_bank_id: string;
1431
+ /** Status */
1432
+ status: string;
1433
+ };
1010
1434
  /**
1011
1435
  * CompactionTestResponseModel
1012
1436
  * @description Response from a compaction prompt test.
@@ -1086,6 +1510,14 @@ interface components {
1086
1510
  batch_size: number;
1087
1511
  /** Id */
1088
1512
  id: string;
1513
+ /** Media Name */
1514
+ media_name?: string | null;
1515
+ /** Page Number */
1516
+ page_number?: number | null;
1517
+ /** Source Mime */
1518
+ source_mime?: string | null;
1519
+ /** Source Url */
1520
+ source_url?: string | null;
1089
1521
  /** Text */
1090
1522
  text: string;
1091
1523
  /** Text End */
@@ -1109,10 +1541,9 @@ interface components {
1109
1541
  alert_type: string;
1110
1542
  /**
1111
1543
  * Cooldown Minutes
1112
- * @description Cooldown period in minutes
1113
- * @default 60
1544
+ * @description Cooldown period in minutes. Omit to use the per-alert-type default (1440 for credit alerts, 60 otherwise).
1114
1545
  */
1115
- cooldown_minutes: number;
1546
+ cooldown_minutes?: number | null;
1116
1547
  /**
1117
1548
  * Distribution Type
1118
1549
  * @description Distribution type (owner, owner_admins, selected_members)
@@ -1208,6 +1639,13 @@ interface components {
1208
1639
  score?: number | null;
1209
1640
  status: components["schemas"]["EvaluationStatus"];
1210
1641
  };
1642
+ /** CreateExperimentResponse */
1643
+ CreateExperimentResponse: {
1644
+ /** Experiment Id */
1645
+ experiment_id: string;
1646
+ /** Status */
1647
+ status: string;
1648
+ };
1211
1649
  /**
1212
1650
  * CreateKnowledgeBaseBody
1213
1651
  * @description Request body for creating a knowledge base.
@@ -1215,17 +1653,17 @@ interface components {
1215
1653
  CreateKnowledgeBaseBody: {
1216
1654
  /**
1217
1655
  * Default Score Threshold
1218
- * @description Default minimum rerank score threshold.
1656
+ * @description Prefilled into Minimum Rerank Score on a new retrieval step in the editor. Not applied at retrieval time — the step's own value is used.
1219
1657
  */
1220
1658
  default_score_threshold?: number | null;
1221
1659
  /**
1222
1660
  * Default Top K
1223
- * @description Default results after reranking.
1661
+ * @description Prefilled into Top K on a new retrieval step in the editor. Not applied at retrieval time.
1224
1662
  */
1225
1663
  default_top_k?: number | null;
1226
1664
  /**
1227
1665
  * Default Top N
1228
- * @description Default number of results.
1666
+ * @description Prefilled into Top N on a new retrieval step in the editor. Not applied at retrieval time — the step's own value is used.
1229
1667
  */
1230
1668
  default_top_n?: number | null;
1231
1669
  /**
@@ -1240,7 +1678,7 @@ interface components {
1240
1678
  name: string;
1241
1679
  /**
1242
1680
  * Reranker Model
1243
- * @description Reranker model to use (null for no reranking).
1681
+ * @description Reranker model to use — a `model_type` from `GET /models/rerankers`. Pass "none" to disable reranking (not a value from that list). Omit it for a default chosen from the sources ("none" when every source embeds media natively, whose chunks carry no text for a reranker to score). "" is accepted as a synonym for "none".
1244
1682
  */
1245
1683
  reranker_model?: string | null;
1246
1684
  /**
@@ -1286,7 +1724,7 @@ interface components {
1286
1724
  embedding_model?: string | null;
1287
1725
  /**
1288
1726
  * Max Age Days
1289
- * @description Max entry age in days before compaction. Checked inline after each write and by the hourly background sweep.
1727
+ * @description DEPRECATED and no longer applied. Age used to trigger compaction, which duplicated retention_days — both removed the same entries at the same age. Age now belongs solely to retention_days, which deletes; compaction triggers on max_size_tokens and max_turns. Rejected with 400 for clients sending Seclai-Version 2026-08-03 or later; accepted and stored but inert for older clients.
1290
1728
  */
1291
1729
  max_age_days?: number | null;
1292
1730
  /**
@@ -1312,10 +1750,15 @@ interface components {
1312
1750
  name: string;
1313
1751
  /**
1314
1752
  * Retention Days
1315
- * @description Content source retention in days.
1316
- * @default 30
1753
+ * @description Retention in days — when entries are deleted outright, text and embeddings. This is the only age-based control; compaction triggers on max_size_tokens and max_turns. For clients sending Seclai-Version 2026-08-03 or later, omitting the field resolves per bank type: 90 days for a conversation bank, indefinite for a general bank. Older clients keep the previous default of 30 days for a conversation bank — unless a longer max_age_days was sent, which wins, since the window is never lowered beneath the only age the caller expressed — while a general bank keeps entries indefinitely. Send an explicit value (or null for indefinite) to be unambiguous on every version.
1317
1754
  */
1318
- retention_days: number | null;
1755
+ retention_days?: number | null;
1756
+ /**
1757
+ * Strip Quoted Reply Chains
1758
+ * @description Conversation banks only. When true, a conversation turn written to this bank has the quoted reply chain an email client prepends to a reply dropped from it. Only inbound (user) turns are affected, and only words in a run of at least ~40 matching a recent turn word for word are dropped (line wrapping and punctuation at a word's edge are ignored). A word the sender changed is kept, including a one-character change inside a link, address or amount, unless the change is only to that edge punctuation.
1759
+ * @default false
1760
+ */
1761
+ strip_quoted_reply_chains: boolean;
1319
1762
  /**
1320
1763
  * Type
1321
1764
  * @description Bank type. 'conversation' for chat-turn data with conversation_key + speaker; 'general' for flat entries with optional group_key.
@@ -1367,14 +1810,14 @@ interface components {
1367
1810
  dimensions?: number | null;
1368
1811
  /**
1369
1812
  * Embedding Model
1370
- * @description Embedding model override.
1813
+ * @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.
1371
1814
  */
1372
1815
  embedding_model?: string | null;
1373
1816
  /** @description Index mode for custom_index sources: fast_and_cheap (default), balanced, slow_and_thorough, or custom. */
1374
1817
  index_mode?: components["schemas"]["SourceIndexMode"] | null;
1375
1818
  /**
1376
1819
  * Media Types
1377
- * @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; unsupported values are dropped. Omit / [] for text-only.
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.
1378
1821
  */
1379
1822
  media_types?: string[] | null;
1380
1823
  /**
@@ -1490,6 +1933,42 @@ interface components {
1490
1933
  /** Value */
1491
1934
  value: string;
1492
1935
  };
1936
+ /** DocsSearchResultResponse */
1937
+ DocsSearchResultResponse: {
1938
+ /** Anchor */
1939
+ anchor: string | null;
1940
+ /** Doc Slug */
1941
+ doc_slug: string;
1942
+ /** Highlight */
1943
+ highlight: string | null;
1944
+ /** Score */
1945
+ score: number;
1946
+ /** Snippet */
1947
+ snippet: string | null;
1948
+ /** Title */
1949
+ title: string;
1950
+ };
1951
+ /**
1952
+ * EffortOptionsResponse
1953
+ * @description The reasoning-effort values a model accepts.
1954
+ */
1955
+ EffortOptionsResponse: {
1956
+ /**
1957
+ * Default
1958
+ * @description The vendor's default level, when known.
1959
+ */
1960
+ default?: string | null;
1961
+ /**
1962
+ * Kind
1963
+ * @description `levels` today: `values` lists them.
1964
+ */
1965
+ kind: string;
1966
+ /**
1967
+ * Values
1968
+ * @description Accepted values, weakest first.
1969
+ */
1970
+ values?: string[];
1971
+ };
1493
1972
  /** EmailDomainResponse */
1494
1973
  EmailDomainResponse: {
1495
1974
  /**
@@ -1603,6 +2082,163 @@ interface components {
1603
2082
  /** Trigger Type */
1604
2083
  trigger_type: string;
1605
2084
  };
2085
+ /**
2086
+ * EmbeddingModalityRateResponse
2087
+ * @description Per-modality rate for a multi-modal embedder.
2088
+ *
2089
+ * The default ``credits`` field on :class:`EmbeddingModelResponse` is the
2090
+ * text rate (credits per ~1k English words). Embedders that index image or
2091
+ * video chunks natively charge those modalities at a different rate and unit
2092
+ * — e.g. Cohere Embed v4 prices images per record; Nova 2 Multimodal prices
2093
+ * video per second. Surfacing the modality and unit lets a caller render an
2094
+ * honest cost breakdown alongside the text rate.
2095
+ */
2096
+ EmbeddingModalityRateResponse: {
2097
+ /**
2098
+ * Credits
2099
+ * @description Rate value in the unit below
2100
+ */
2101
+ credits: number;
2102
+ /**
2103
+ * Modality
2104
+ * @description Modality kind, e.g. image / video
2105
+ */
2106
+ modality: string;
2107
+ /**
2108
+ * Unit
2109
+ * @description Billing unit for this rate (credit_per_record / credit_per_second / credit_per_1000_tokens).
2110
+ */
2111
+ unit: string;
2112
+ };
2113
+ /**
2114
+ * EmbeddingModelListResponse
2115
+ * @description Legacy (header-less) response shape for the embedder catalog.
2116
+ */
2117
+ EmbeddingModelListResponse: {
2118
+ /**
2119
+ * Default Dimension
2120
+ * @description Dimensions used with the default embedding model
2121
+ */
2122
+ default_dimension?: number | null;
2123
+ /**
2124
+ * Default Model Type
2125
+ * @description Embedding model used when a source does not override it
2126
+ */
2127
+ default_model_type?: string | null;
2128
+ /**
2129
+ * File Processing Credits Per Mb
2130
+ * @description Credits per MB for file processing at ingest
2131
+ */
2132
+ file_processing_credits_per_mb: number;
2133
+ /**
2134
+ * Models
2135
+ * @description Available embedding models
2136
+ */
2137
+ models: components["schemas"]["EmbeddingModelResponse"][];
2138
+ /**
2139
+ * Storage Credits
2140
+ * @description Monthly storage credits per dimension count
2141
+ */
2142
+ storage_credits: components["schemas"]["EmbeddingStorageCreditsResponse"][];
2143
+ };
2144
+ /**
2145
+ * EmbeddingModelResponse
2146
+ * @description Information about an embedding model.
2147
+ */
2148
+ EmbeddingModelResponse: {
2149
+ /**
2150
+ * Credits
2151
+ * @description Estimated credits per 1,000 English words
2152
+ */
2153
+ credits: number;
2154
+ /**
2155
+ * Description
2156
+ * @description Model description
2157
+ */
2158
+ description?: string | null;
2159
+ /**
2160
+ * Dimensions
2161
+ * @description Dimensions options
2162
+ */
2163
+ dimensions: number[];
2164
+ /**
2165
+ * Is New
2166
+ * @description Whether the model is newly released
2167
+ * @default false
2168
+ */
2169
+ is_new: boolean;
2170
+ /**
2171
+ * Max Input Tokens
2172
+ * @description Max input tokens per request
2173
+ */
2174
+ max_input_tokens?: number | null;
2175
+ /**
2176
+ * Model Id
2177
+ * @description Model identifier
2178
+ */
2179
+ model_id: string;
2180
+ /**
2181
+ * Model Type
2182
+ * @description Full model type identifier (enum value). This is the value to send as embedding_model when creating a source.
2183
+ */
2184
+ model_type: string;
2185
+ /**
2186
+ * Mteb Retrieval Score
2187
+ * @description MTEB retrieval score
2188
+ */
2189
+ mteb_retrieval_score?: number | null;
2190
+ /**
2191
+ * Name
2192
+ * @description Human-readable model name
2193
+ */
2194
+ name?: string | null;
2195
+ /**
2196
+ * Per Modality Rates
2197
+ * @description Non-text rates the vendor charges for this embedder (image, video, audio). Empty for text-only embedders.
2198
+ */
2199
+ per_modality_rates?: components["schemas"]["EmbeddingModalityRateResponse"][];
2200
+ /**
2201
+ * Provider
2202
+ * @description Model provider identifier
2203
+ */
2204
+ provider?: string | null;
2205
+ /**
2206
+ * Speed
2207
+ * @description Model processing speed
2208
+ */
2209
+ speed?: string | null;
2210
+ /**
2211
+ * Supported Input Media
2212
+ * @description Modalities the embedder accepts on input (short kinds like text / image / video, or full MIMEs). null means text-only. A source only honours a media_types entry its embedder lists here.
2213
+ */
2214
+ supported_input_media?: string[] | null;
2215
+ /**
2216
+ * Supported Languages
2217
+ * @description Supported languages
2218
+ */
2219
+ supported_languages?: string[] | null;
2220
+ /**
2221
+ * Url
2222
+ * @description Model documentation URL
2223
+ */
2224
+ url?: string | null;
2225
+ };
2226
+ /**
2227
+ * EmbeddingStorageCreditsResponse
2228
+ * @description Monthly storage credits per stored record at a dimension count.
2229
+ */
2230
+ EmbeddingStorageCreditsResponse: {
2231
+ /**
2232
+ * Credits
2233
+ * @description Credits per record per month
2234
+ */
2235
+ credits: number;
2236
+ /**
2237
+ * Dimensions
2238
+ * @description Number of embedding dimensions
2239
+ */
2240
+ dimensions: number;
2241
+ };
1606
2242
  /**
1607
2243
  * EvaluationCriteriaResponse
1608
2244
  * @description Response schema for evaluation criteria.
@@ -1915,6 +2551,82 @@ interface components {
1915
2551
  */
1916
2552
  success: boolean;
1917
2553
  };
2554
+ /** ExperimentDetailResponse */
2555
+ ExperimentDetailResponse: {
2556
+ /** Completed At */
2557
+ completed_at: string | null;
2558
+ /** Created At */
2559
+ created_at: string;
2560
+ /**
2561
+ * Effort
2562
+ * @description The reasoning effort each model was run at, by model ID.
2563
+ */
2564
+ effort?: {
2565
+ [key: string]: string;
2566
+ };
2567
+ /** Error Message */
2568
+ error_message: string | null;
2569
+ /** Evaluation Complexity */
2570
+ evaluation_complexity: string;
2571
+ /** Evaluation Mode */
2572
+ evaluation_mode: string;
2573
+ /** Evaluator Model Id */
2574
+ evaluator_model_id: string | null;
2575
+ /** Id */
2576
+ id: string;
2577
+ /** Include Step Output In Evaluation */
2578
+ include_step_output_in_evaluation: boolean;
2579
+ /** Json Template */
2580
+ json_template: string | null;
2581
+ /** Progress Current */
2582
+ progress_current: number | null;
2583
+ /** Progress Message */
2584
+ progress_message: string | null;
2585
+ /** Progress Total */
2586
+ progress_total: number | null;
2587
+ /** Prompt */
2588
+ prompt: string;
2589
+ /** Result Data */
2590
+ result_data: {
2591
+ [key: string]: unknown;
2592
+ } | null;
2593
+ /** Selected Model Ids */
2594
+ selected_model_ids: string[];
2595
+ /** Selected Step Output */
2596
+ selected_step_output: string | null;
2597
+ /** Started At */
2598
+ started_at: string | null;
2599
+ /** Status */
2600
+ status: string;
2601
+ /** System Prompt */
2602
+ system_prompt: string;
2603
+ };
2604
+ /**
2605
+ * ExperimentListResponse
2606
+ * @description ``GET /models/playground/experiments`` legacy/default shape; 2026-07-27+
2607
+ * clients get the canonical ``{data, pagination}`` envelope.
2608
+ */
2609
+ ExperimentListResponse: {
2610
+ /** Experiments */
2611
+ experiments: components["schemas"]["ExperimentSummaryResponse"][];
2612
+ /** Total */
2613
+ total: number;
2614
+ };
2615
+ /** ExperimentSummaryResponse */
2616
+ ExperimentSummaryResponse: {
2617
+ /** Created At */
2618
+ created_at: string;
2619
+ /** Evaluation Complexity */
2620
+ evaluation_complexity: string;
2621
+ /** Evaluation Mode */
2622
+ evaluation_mode: string;
2623
+ /** Id */
2624
+ id: string;
2625
+ /** Selected Model Ids */
2626
+ selected_model_ids: string[];
2627
+ /** Status */
2628
+ status: string;
2629
+ };
1918
2630
  /**
1919
2631
  * ExportFormat
1920
2632
  * @description Supported export file formats.
@@ -2070,6 +2782,32 @@ interface components {
2070
2782
  */
2071
2783
  success: boolean;
2072
2784
  };
2785
+ /**
2786
+ * GenerationTierListResponse
2787
+ * @description ``GET /models/generation-tiers`` legacy/default shape; 2026-07-27+ clients
2788
+ * get the canonical ``{data, pagination}`` envelope.
2789
+ */
2790
+ GenerationTierListResponse: {
2791
+ /** Tiers */
2792
+ tiers: components["schemas"]["GenerationTierResponse"][];
2793
+ };
2794
+ /** GenerationTierResponse */
2795
+ GenerationTierResponse: {
2796
+ /** Credits Per Unit */
2797
+ credits_per_unit: number | null;
2798
+ /** Modality */
2799
+ modality: string;
2800
+ /** Model Id */
2801
+ model_id: string;
2802
+ /** Model Name */
2803
+ model_name: string;
2804
+ /** Price Label */
2805
+ price_label: string | null;
2806
+ /** Tier */
2807
+ tier: string;
2808
+ /** Unit Label */
2809
+ unit_label: string | null;
2810
+ };
2073
2811
  /**
2074
2812
  * GovernanceAiAcceptResponse
2075
2813
  * @description Response from accepting a governance AI assistant plan.
@@ -2355,17 +3093,17 @@ interface components {
2355
3093
  created_at: string;
2356
3094
  /**
2357
3095
  * Default Score Threshold
2358
- * @description Default minimum rerank score.
3096
+ * @description Editor default for a new retrieval step's Minimum Rerank Score.
2359
3097
  */
2360
3098
  default_score_threshold?: number | null;
2361
3099
  /**
2362
3100
  * Default Top K
2363
- * @description Default results after reranking.
3101
+ * @description Editor default for a new retrieval step's Top K.
2364
3102
  */
2365
3103
  default_top_k?: number | null;
2366
3104
  /**
2367
3105
  * Default Top N
2368
- * @description Default number of results to return.
3106
+ * @description Editor default for a new retrieval step's Top N.
2369
3107
  */
2370
3108
  default_top_n?: number | null;
2371
3109
  /**
@@ -2490,7 +3228,7 @@ interface components {
2490
3228
  description?: string | null;
2491
3229
  /**
2492
3230
  * Max Age Days
2493
- * @description Max age in days.
3231
+ * @description Always null. Age-based compaction is retired — the assistant never suggests it. Kept so an SDK generated before the change still validates this response.
2494
3232
  */
2495
3233
  max_age_days?: number | null;
2496
3234
  /**
@@ -2597,7 +3335,7 @@ interface components {
2597
3335
  id: string;
2598
3336
  /**
2599
3337
  * Max Age Days
2600
- * @description Max entry age in days before compaction. Checked both inline after each write and by the hourly background sweep.
3338
+ * @description DEPRECATED and no longer applied. Age now belongs solely to retention_days, which deletes; compaction triggers on max_size_tokens and max_turns. Always null for clients sending Seclai-Version 2026-08-03 or later; older clients keep reading whatever value was stored.
2601
3339
  */
2602
3340
  max_age_days?: number | null;
2603
3341
  /**
@@ -2630,6 +3368,12 @@ interface components {
2630
3368
  * @description Linked content source ID (null if not yet provisioned).
2631
3369
  */
2632
3370
  source_connection_id?: string | null;
3371
+ /**
3372
+ * Strip Quoted Reply Chains
3373
+ * @description Conversation banks only. When true, a conversation turn written to this bank has the quoted reply chain an email client prepends to a reply dropped from it. Only inbound (user) turns are affected, and only words in a run of at least ~40 matching a recent turn word for word are dropped (line wrapping and punctuation at a word's edge are ignored). A word the sender changed is kept, including a one-character change inside a link, address or amount, unless the change is only to that edge punctuation.
3374
+ * @default false
3375
+ */
3376
+ strip_quoted_reply_chains: boolean;
2633
3377
  /**
2634
3378
  * Type
2635
3379
  * @description Bank type: conversation (chat-turn with speaker) or general (flat entries).
@@ -2659,6 +3403,15 @@ interface components {
2659
3403
  /** Output Credits Per 1000 Tokens */
2660
3404
  output_credits_per_1000_tokens?: number | null;
2661
3405
  };
3406
+ /**
3407
+ * OkResponse
3408
+ * @description A minimal ``{"ok": true}`` acknowledgement for state-mutating actions
3409
+ * that have no richer resource to return (e.g. accept/decline a suggestion).
3410
+ */
3411
+ OkResponse: {
3412
+ /** Ok */
3413
+ ok: boolean;
3414
+ };
2662
3415
  /** OrganizationAlertPreferenceListResponse */
2663
3416
  OrganizationAlertPreferenceListResponse: {
2664
3417
  /** Preferences */
@@ -2709,6 +3462,13 @@ interface components {
2709
3462
  * @description Create a model playground experiment via the public API.
2710
3463
  */
2711
3464
  PlaygroundCreateRequest: {
3465
+ /**
3466
+ * Effort
3467
+ * @description Reasoning effort per model id, each one of that model's `effort_options` values. Not combinable with `json_template`.
3468
+ */
3469
+ effort?: {
3470
+ [key: string]: string;
3471
+ } | null;
2712
3472
  /**
2713
3473
  * Evaluation Complexity
2714
3474
  * @description simple, medium, or complex
@@ -2863,6 +3623,84 @@ interface components {
2863
3623
  */
2864
3624
  removed: boolean;
2865
3625
  };
3626
+ /**
3627
+ * RerankerModelListResponse
3628
+ * @description Legacy (header-less) response shape for the reranker catalog.
3629
+ */
3630
+ RerankerModelListResponse: {
3631
+ /**
3632
+ * Default Model Type
3633
+ * @description Reranker used when a knowledge base does not choose one
3634
+ */
3635
+ default_model_type: string;
3636
+ /**
3637
+ * Models
3638
+ * @description Available reranker models
3639
+ */
3640
+ models: components["schemas"]["RerankerModelResponse"][];
3641
+ /**
3642
+ * Search Processing Credits
3643
+ * @description Credits charged for processing a search request
3644
+ */
3645
+ search_processing_credits: number;
3646
+ };
3647
+ /**
3648
+ * RerankerModelResponse
3649
+ * @description Information about a reranker model.
3650
+ */
3651
+ RerankerModelResponse: {
3652
+ /**
3653
+ * Credits Per Action
3654
+ * @description Credits charged per rerank action
3655
+ */
3656
+ credits_per_action: number;
3657
+ /**
3658
+ * Description
3659
+ * @description Model description
3660
+ */
3661
+ description?: string | null;
3662
+ /**
3663
+ * Is Default
3664
+ * @description Whether this is the platform default reranker
3665
+ */
3666
+ is_default: boolean;
3667
+ /**
3668
+ * Is New
3669
+ * @description Whether the model is newly released
3670
+ * @default false
3671
+ */
3672
+ is_new: boolean;
3673
+ /**
3674
+ * Max Input Tokens
3675
+ * @description Max input tokens per request
3676
+ */
3677
+ max_input_tokens?: number | null;
3678
+ /**
3679
+ * Model Type
3680
+ * @description Full model type identifier. This is the value to send as reranker_model on a knowledge base; send "none" or an empty string to disable reranking.
3681
+ */
3682
+ model_type: string;
3683
+ /**
3684
+ * Name
3685
+ * @description Human-readable model name
3686
+ */
3687
+ name: string;
3688
+ /**
3689
+ * Provider
3690
+ * @description Model provider identifier
3691
+ */
3692
+ provider?: string | null;
3693
+ /**
3694
+ * Supported Languages
3695
+ * @description Supported languages
3696
+ */
3697
+ supported_languages?: string[] | null;
3698
+ /**
3699
+ * Url
3700
+ * @description Model documentation URL
3701
+ */
3702
+ url?: string | null;
3703
+ };
2866
3704
  /** ResumeInboundResponse */
2867
3705
  ResumeInboundResponse: {
2868
3706
  /** Resumed */
@@ -2876,6 +3714,14 @@ interface components {
2876
3714
  */
2877
3715
  sent: boolean;
2878
3716
  };
3717
+ /** ServiceUnavailableError */
3718
+ ServiceUnavailableError: {
3719
+ error: {
3720
+ /** @enum {string} */
3721
+ code: "database_unavailable" | "vector_store_unavailable";
3722
+ message: string;
3723
+ };
3724
+ };
2879
3725
  /**
2880
3726
  * SetAutoBlockModeRequest
2881
3727
  * @description Set the account's governance auto-block mode (shared REST request).
@@ -2952,30 +3798,132 @@ interface components {
2952
3798
  */
2953
3799
  SourceConnectionResponseModel: {
2954
3800
  /**
2955
- * Id
2956
- * @description Source connection identifier.
3801
+ * Id
3802
+ * @description Source connection identifier.
3803
+ */
3804
+ id: string;
3805
+ /**
3806
+ * Name
3807
+ * @description Source connection name.
3808
+ */
3809
+ name: string;
3810
+ /**
3811
+ * Polling
3812
+ * @description Polling configuration.
3813
+ */
3814
+ polling?: string | null;
3815
+ /**
3816
+ * Source Type
3817
+ * @description Type of source (rss, website, etc.).
3818
+ */
3819
+ source_type: string;
3820
+ /**
3821
+ * Url
3822
+ * @description Source URL.
3823
+ */
3824
+ url: string;
3825
+ };
3826
+ /**
3827
+ * SourceContentStatusListResponse
3828
+ * @description Response model for a paginated per-item indexing status list.
3829
+ */
3830
+ SourceContentStatusListResponse: {
3831
+ /** Data */
3832
+ data: components["schemas"]["SourceContentStatusResponse"][];
3833
+ pagination: components["schemas"]["PaginationResponse"];
3834
+ };
3835
+ /**
3836
+ * SourceContentStatusResponse
3837
+ * @description Response model for one content item's indexing status.
3838
+ */
3839
+ SourceContentStatusResponse: {
3840
+ /**
3841
+ * Awaiting Reindex
3842
+ * @description True when the item is linked and reports completed but its content is not yet embedded under the index the source connection currently uses, because it still sits under the index that connection used before an embedding migration switched it. Anything ingested while a migration ran can land in this state. Semantic and content search will not match it until it is re-embedded; a title keyword match can still return it, so the item may appear in results while its body is unsearchable. It clears on its own — a reconciliation pass re-embeds the item under the current index, typically within minutes of the migration finishing, and a daily sweep retries whatever is still outstanding, so a large backlog can take more than one sweep to drain. The re-embedding is not charged to your account: nothing you did caused it, so Seclai absorbs the cost. Never true for an item that is simply still indexing; content_status covers that.
3843
+ * @default false
3844
+ */
3845
+ awaiting_reindex: boolean;
3846
+ /**
3847
+ * Content Status
3848
+ * @description Indexing status: pending, fetching, transcribing, scanning, indexing, completed, or failed.
3849
+ */
3850
+ content_status: string;
3851
+ /**
3852
+ * Content Token Count
3853
+ * @description Extracted token count.
3854
+ */
3855
+ content_token_count: number | null;
3856
+ /**
3857
+ * Content Type
3858
+ * @description Content type group: text, audio, video, image, or document.
3859
+ */
3860
+ content_type: string;
3861
+ /**
3862
+ * Content Url
3863
+ * @description Internal URL identifying the item. Uploaded files use a `file-upload://` URL.
3864
+ */
3865
+ content_url: string | null;
3866
+ /**
3867
+ * Content Version Id
3868
+ * @description ID of the content version. This is the `content_version_id` returned by the upload endpoints, so it is what you match an upload against.
3869
+ */
3870
+ content_version_id: string;
3871
+ /**
3872
+ * Content Word Count
3873
+ * @description Extracted word count.
3874
+ */
3875
+ content_word_count: number | null;
3876
+ /**
3877
+ * Error
3878
+ * @description Why the item failed, when `content_status` is `failed`.
3879
+ */
3880
+ error: string | null;
3881
+ /**
3882
+ * 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.
3884
+ * @default false
3885
+ */
3886
+ extracted_media_capped: boolean;
3887
+ /**
3888
+ * 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.
3890
+ */
3891
+ extracted_media_count?: number | null;
3892
+ /**
3893
+ * 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.
3895
+ */
3896
+ extracted_media_limit?: number | null;
3897
+ /**
3898
+ * Indexed At
3899
+ * @description Timestamp when the item finished indexing and became retrievable. `null` until then.
3900
+ */
3901
+ indexed_at: string | null;
3902
+ /**
3903
+ * Mime Type
3904
+ * @description MIME type the item was ingested as, when known.
2957
3905
  */
2958
- id: string;
3906
+ mime_type: string | null;
2959
3907
  /**
2960
- * Name
2961
- * @description Source connection name.
3908
+ * Published At
3909
+ * @description Publication timestamp of the item, when known.
2962
3910
  */
2963
- name: string;
3911
+ published_at: string | null;
2964
3912
  /**
2965
- * Polling
2966
- * @description Polling configuration.
3913
+ * Pulled At
3914
+ * @description Timestamp when the item was uploaded or pulled.
2967
3915
  */
2968
- polling?: string | null;
3916
+ pulled_at: string;
2969
3917
  /**
2970
- * Source Type
2971
- * @description Type of source (rss, website, etc.).
3918
+ * 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`.
2972
3920
  */
2973
- source_type: string;
3921
+ source_connection_content_version_id: string | null;
2974
3922
  /**
2975
- * Url
2976
- * @description Source URL.
3923
+ * Title
3924
+ * @description Title of the content item.
2977
3925
  */
2978
- url: string;
3926
+ title: string | null;
2979
3927
  };
2980
3928
  /**
2981
3929
  * SourceEmbeddingMigrationResponse
@@ -3278,7 +4226,7 @@ interface components {
3278
4226
  target_dimensions: number;
3279
4227
  /**
3280
4228
  * Target Embedding Model
3281
- * @description Target embedding model enum
4229
+ * @description Target embedding model — a `model_type` from `GET /models/embedders`, which also reports the `dimensions` each embedder supports and the modalities it can index.
3282
4230
  */
3283
4231
  target_embedding_model: string;
3284
4232
  };
@@ -3376,6 +4324,11 @@ interface components {
3376
4324
  */
3377
4325
  ids: string[];
3378
4326
  };
4327
+ /** UnreadCountResponse */
4328
+ UnreadCountResponse: {
4329
+ /** Count */
4330
+ count: number;
4331
+ };
3379
4332
  /** UpdateAgentDefinitionRequest */
3380
4333
  UpdateAgentDefinitionRequest: {
3381
4334
  /**
@@ -3421,6 +4374,14 @@ interface components {
3421
4374
  [key: string]: unknown;
3422
4375
  } | null;
3423
4376
  };
4377
+ /** UpdateApiVersionRequest */
4378
+ UpdateApiVersionRequest: {
4379
+ /**
4380
+ * Version
4381
+ * @description A YYYY-MM-DD date to pin the account to, or null to clear the pin (revert to the default baseline).
4382
+ */
4383
+ version?: string | null;
4384
+ };
3424
4385
  /**
3425
4386
  * UpdateEvaluationCriteriaRequest
3426
4387
  * @description Request body for updating an evaluation criteria.
@@ -3451,17 +4412,17 @@ interface components {
3451
4412
  UpdateKnowledgeBaseBody: {
3452
4413
  /**
3453
4414
  * Default Score Threshold
3454
- * @description Default score threshold (-1 to clear).
4415
+ * @description Prefilled into Minimum Rerank Score on a new retrieval step (-1 to clear).
3455
4416
  */
3456
4417
  default_score_threshold?: number | null;
3457
4418
  /**
3458
4419
  * Default Top K
3459
- * @description Default reranked results (0 to clear).
4420
+ * @description Prefilled into Top K on a new retrieval step (0 to clear).
3460
4421
  */
3461
4422
  default_top_k?: number | null;
3462
4423
  /**
3463
4424
  * Default Top N
3464
- * @description Default results (0 to clear).
4425
+ * @description Prefilled into Top N on a new retrieval step (0 to clear).
3465
4426
  */
3466
4427
  default_top_n?: number | null;
3467
4428
  /**
@@ -3476,7 +4437,7 @@ interface components {
3476
4437
  name?: string | null;
3477
4438
  /**
3478
4439
  * Reranker Model
3479
- * @description Reranker model (empty string for no reranking).
4440
+ * @description New reranker model — a `model_type` from `GET /models/rerankers`. Pass "none" to turn reranking off (not a value from that list). Omitting the field (or sending null) leaves the current reranker in place — it does NOT turn it off. "" is accepted as a synonym for "none", but prefer "none": an empty string does not survive every client's serialization.
3480
4441
  */
3481
4442
  reranker_model?: string | null;
3482
4443
  /**
@@ -3505,7 +4466,7 @@ interface components {
3505
4466
  description?: string | null;
3506
4467
  /**
3507
4468
  * Max Age Days
3508
- * @description Max entry age in days before compaction. Checked inline after each write and by the hourly background sweep. Send 0 to disable.
4469
+ * @description DEPRECATED and no longer applied. Age now belongs solely to retention_days, which deletes; compaction triggers on max_size_tokens and max_turns. Rejected with 400 for clients sending Seclai-Version 2026-08-03 or later, except 0, which clears a value stored earlier. Accepted and stored but inert for older clients.
3509
4470
  */
3510
4471
  max_age_days?: number | null;
3511
4472
  /**
@@ -3528,6 +4489,11 @@ interface components {
3528
4489
  * @description Content source retention in days. Send 0 to clear (indefinite).
3529
4490
  */
3530
4491
  retention_days?: number | null;
4492
+ /**
4493
+ * Strip Quoted Reply Chains
4494
+ * @description Conversation banks only. When true, a conversation turn written to this bank has the quoted reply chain an email client prepends to a reply dropped from it. Only inbound (user) turns are affected, and only words in a run of at least ~40 matching a recent turn word for word are dropped (line wrapping and punctuation at a word's edge are ignored). A word the sender changed is kept, including a one-character change inside a link, address or amount, unless the change is only to that edge punctuation.
4495
+ */
4496
+ strip_quoted_reply_chains?: boolean | null;
3531
4497
  };
3532
4498
  /**
3533
4499
  * UpdateSolutionRequest
@@ -3552,7 +4518,7 @@ interface components {
3552
4518
  UpdateSourceBody: {
3553
4519
  /**
3554
4520
  * Media Types
3555
- * @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; unsupported values are dropped. [] disables media extraction (text-only).
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).
3556
4522
  */
3557
4523
  media_types?: string[] | null;
3558
4524
  /**
@@ -3567,10 +4533,9 @@ interface components {
3567
4533
  polling?: string | null;
3568
4534
  /**
3569
4535
  * Retention Days
3570
- * @description New retention period in days (null for unlimited).
3571
- * @default -1
4536
+ * @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.
3572
4537
  */
3573
- retention_days: number | null;
4538
+ retention_days?: number | null;
3574
4539
  };
3575
4540
  /** UploadAgentInputApiResponse */
3576
4541
  UploadAgentInputApiResponse: {
@@ -3639,15 +4604,32 @@ interface components {
3639
4604
  default: boolean;
3640
4605
  /** Description */
3641
4606
  description?: string | null;
3642
- /** Input 1H Cache Write Credits Per 1000 Tokens */
4607
+ /**
4608
+ * Input 1H Cache Write Credits Per 1000 Tokens
4609
+ * @description Credits per 1,000 input tokens written to a 1-hour prompt cache.
4610
+ */
3643
4611
  input_1h_cache_write_credits_per_1000_tokens?: number | null;
3644
- /** Input 5M Cache Write Credits Per 1000 Tokens */
4612
+ /**
4613
+ * Input 30M Cache Write Credits Per 1000 Tokens
4614
+ * @description Credits per 1,000 input tokens written to a 30-minute prompt cache.
4615
+ */
4616
+ input_30m_cache_write_credits_per_1000_tokens?: number | null;
4617
+ /**
4618
+ * Input 5M Cache Write Credits Per 1000 Tokens
4619
+ * @description Credits per 1,000 input tokens written to a 5-minute prompt cache.
4620
+ */
3645
4621
  input_5m_cache_write_credits_per_1000_tokens?: number | null;
3646
- /** Input Cache Hit Credits Per 1000 Tokens */
4622
+ /**
4623
+ * Input Cache Hit Credits Per 1000 Tokens
4624
+ * @description Credits per 1,000 input tokens read from a prompt cache.
4625
+ */
3647
4626
  input_cache_hit_credits_per_1000_tokens?: number | null;
3648
4627
  /** Input Credits Per 1000 Tokens */
3649
4628
  input_credits_per_1000_tokens?: number | null;
3650
- /** Long Context Input Cache Hit Credits Per 1000 Tokens */
4629
+ /**
4630
+ * Long Context Input Cache Hit Credits Per 1000 Tokens
4631
+ * @description Credits per 1,000 input tokens read from a prompt cache, on a call whose input exceeds `long_context_threshold` tokens.
4632
+ */
3651
4633
  long_context_input_cache_hit_credits_per_1000_tokens?: number | null;
3652
4634
  /** Long Context Input Credits Per 1000 Tokens */
3653
4635
  long_context_input_credits_per_1000_tokens?: number | null;
@@ -3669,7 +4651,7 @@ interface components {
3669
4651
  routers__api__agents__AgentImportPreviewRequest: {
3670
4652
  /**
3671
4653
  * Agent Definition
3672
- * @description Payload in the same shape as GET /api/agents/{agent_id}/export.
4654
+ * @description Payload in the same shape as GET /agents/{agent_id}/export.
3673
4655
  */
3674
4656
  agent_definition: {
3675
4657
  [key: string]: unknown;
@@ -3861,7 +4843,7 @@ interface components {
3861
4843
  routers__api__agents__SetEmailTriggerConfigRequest: {
3862
4844
  /**
3863
4845
  * Alias
3864
- * @description Custom alias for the address `<alias>.<accountID>@agent.seclai.com` (alphanumeric plus '+', '.', '-'; 1–32 chars; not starting/ending with '+', '.', '-'; not UUID-shaped). Pass null/empty to clear.
4846
+ * @description Custom alias, unique per account, answering as `<alias>.<accountID>@agent.seclai.com` and as `<alias>@<domain>` on each verified account email domain (alphanumeric plus '+', '.', '-'; 1–32 chars; not starting/ending with '+', '.', '-'; not UUID-shaped). Pass null/empty to clear.
3865
4847
  */
3866
4848
  alias?: string | null;
3867
4849
  /**
@@ -4001,6 +4983,11 @@ interface components {
4001
4983
  * @description Feature name (e.g. 'source', 'solution').
4002
4984
  */
4003
4985
  feature: string;
4986
+ /**
4987
+ * Governance Conversation Id
4988
+ * @description Governance conversation ID, if applicable.
4989
+ */
4990
+ governance_conversation_id?: string | null;
4004
4991
  /**
4005
4992
  * Prompt Call Id
4006
4993
  * @description Prompt call ID for credit tracking.
@@ -4020,6 +5007,88 @@ interface components {
4020
5007
  */
4021
5008
  body: string;
4022
5009
  };
5010
+ /** AlertCommentResponse */
5011
+ routers__api__alerts__AlertCommentResponse: {
5012
+ /** Body */
5013
+ body: string;
5014
+ /** Created At */
5015
+ created_at: string | null;
5016
+ /** Id */
5017
+ id: string;
5018
+ /** User Id */
5019
+ user_id: string;
5020
+ /** User Name */
5021
+ user_name: string | null;
5022
+ };
5023
+ /** AlertDetailResponse */
5024
+ routers__api__alerts__AlertDetailResponse: {
5025
+ alert: components["schemas"]["routers__api__alerts__AlertResponse"];
5026
+ /** Comments */
5027
+ comments: components["schemas"]["routers__api__alerts__AlertCommentResponse"][];
5028
+ /** History */
5029
+ history: components["schemas"]["AlertHistoryEntryResponse"][];
5030
+ /** Subscribers */
5031
+ subscribers: components["schemas"]["routers__api__alerts__AlertSubscriberResponse"][];
5032
+ };
5033
+ /**
5034
+ * AlertListResponse
5035
+ * @description ``GET /alerts`` — always the canonical ``{data, pagination}`` envelope.
5036
+ */
5037
+ routers__api__alerts__AlertListResponse: {
5038
+ /** Data */
5039
+ data: components["schemas"]["routers__api__alerts__AlertResponse"][];
5040
+ pagination: components["schemas"]["PaginationResponse"];
5041
+ };
5042
+ /** AlertResponse */
5043
+ routers__api__alerts__AlertResponse: {
5044
+ /** Account Id */
5045
+ account_id: string;
5046
+ /** Agent Id */
5047
+ agent_id: string | null;
5048
+ /** Agent Run Id */
5049
+ agent_run_id: string | null;
5050
+ /** Alert Config Id */
5051
+ alert_config_id: string | null;
5052
+ /** Alert Type */
5053
+ alert_type: string;
5054
+ /** Comment Count */
5055
+ comment_count: number;
5056
+ /** Created At */
5057
+ created_at: string | null;
5058
+ /** Description */
5059
+ description: string | null;
5060
+ /** Details */
5061
+ details?: unknown;
5062
+ /** Id */
5063
+ id: string;
5064
+ /** Is Subscribed */
5065
+ is_subscribed: boolean;
5066
+ /** Mcp Client Id */
5067
+ mcp_client_id: string | null;
5068
+ /** Source Connection Id */
5069
+ source_connection_id: string | null;
5070
+ /** Source Connection Pull Id */
5071
+ source_connection_pull_id: string | null;
5072
+ /** Status */
5073
+ status: string;
5074
+ /** Subscriber Count */
5075
+ subscriber_count: number;
5076
+ /** Title */
5077
+ title: string;
5078
+ /** Updated At */
5079
+ updated_at: string | null;
5080
+ };
5081
+ /** AlertSubscriberResponse */
5082
+ routers__api__alerts__AlertSubscriberResponse: {
5083
+ /** Created At */
5084
+ created_at: string | null;
5085
+ /** Id */
5086
+ id: string;
5087
+ /** User Id */
5088
+ user_id: string;
5089
+ /** User Name */
5090
+ user_name: string | null;
5091
+ };
4023
5092
  /** OrganizationAlertPreferenceResponse */
4024
5093
  routers__api__alerts__OrganizationAlertPreferenceResponse: {
4025
5094
  /** Alert Type */
@@ -4089,6 +5158,22 @@ interface components {
4089
5158
  * @description Error message, if any.
4090
5159
  */
4091
5160
  error: string | null;
5161
+ /**
5162
+ * 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.
5164
+ * @default false
5165
+ */
5166
+ extracted_media_capped: boolean;
5167
+ /**
5168
+ * 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.
5170
+ */
5171
+ extracted_media_count?: number | null;
5172
+ /**
5173
+ * 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.
5175
+ */
5176
+ extracted_media_limit?: number | null;
4092
5177
  /**
4093
5178
  * Id
4094
5179
  * @description Unique identifier for the content version.
@@ -4173,9 +5258,14 @@ interface components {
4173
5258
  routers__api__contents__FileUploadResponse: {
4174
5259
  /**
4175
5260
  * Content Version Id
4176
- * @description ID of the content version being replaced
5261
+ * @description ID of the newly created content version. A replacement creates a new version rather than overwriting the previous one.
4177
5262
  */
4178
5263
  content_version_id: string | null;
5264
+ /**
5265
+ * Embedder Warning
5266
+ * @description Set when the file's type is not embedded directly on this source, so indexing relies on extracted text. Content with none (e.g. a photograph) will be marked FAILED.
5267
+ */
5268
+ embedder_warning?: string | null;
4179
5269
  /**
4180
5270
  * Filename
4181
5271
  * @description Original filename
@@ -4183,15 +5273,24 @@ interface components {
4183
5273
  filename: string;
4184
5274
  /**
4185
5275
  * Source Connection Content Version Id
4186
- * @description ID of the source connection content version
5276
+ * @description ID of the source connection content version. Unchanged by a replacement, so it stays a stable handle for the content.
4187
5277
  */
4188
5278
  source_connection_content_version_id: string | null;
4189
5279
  /**
4190
5280
  * Status
4191
- * @description Processing status
5281
+ * @description Always `uploaded`. Unlike the create endpoints, a replacement is never rejected as a duplicate of another item.
4192
5282
  */
4193
5283
  status: string;
4194
5284
  };
5285
+ /**
5286
+ * DocsSearchResponse
5287
+ * @description Ranked results, NOT a paginated collection — the ``{results}`` shape is a
5288
+ * deliberate carve-out matching the MCP ``search_docs`` tool.
5289
+ */
5290
+ routers__api__docs_search__DocsSearchResponse: {
5291
+ /** Results */
5292
+ results: components["schemas"]["DocsSearchResultResponse"][];
5293
+ };
4195
5294
  /**
4196
5295
  * GovernanceAiAssistantRequest
4197
5296
  * @description Request body for the governance AI assistant.
@@ -4340,6 +5439,116 @@ interface components {
4340
5439
  */
4341
5440
  user_input?: string | null;
4342
5441
  };
5442
+ /**
5443
+ * ModelAlertListResponse
5444
+ * @description ``GET /models/alerts`` legacy/default shape; 2026-07-27+ clients get the
5445
+ * canonical ``{data, pagination}`` envelope (bypasses this ``response_model``).
5446
+ */
5447
+ routers__api__model_lifecycle__ModelAlertListResponse: {
5448
+ /** Alerts */
5449
+ alerts: components["schemas"]["routers__api__model_lifecycle__ModelAlertResponse"][];
5450
+ /** Total */
5451
+ total: number;
5452
+ };
5453
+ /** ModelAlertResponse */
5454
+ routers__api__model_lifecycle__ModelAlertResponse: {
5455
+ /** Account Id */
5456
+ account_id: string;
5457
+ /** Agent Id */
5458
+ agent_id: string | null;
5459
+ /** Alert Type */
5460
+ alert_type: string;
5461
+ /** Created At */
5462
+ created_at: string;
5463
+ /** Id */
5464
+ id: string;
5465
+ /** Message */
5466
+ message: string;
5467
+ /** Model Name */
5468
+ model_name: string;
5469
+ /** Prompt Model Id */
5470
+ prompt_model_id: string;
5471
+ /** Read At */
5472
+ read_at: string | null;
5473
+ /** Successor Model Name */
5474
+ successor_model_name: string | null;
5475
+ };
5476
+ /** ModelRecommendationResponse */
5477
+ routers__api__model_lifecycle__ModelRecommendationResponse: {
5478
+ /** Deprecated At */
5479
+ deprecated_at?: string | null;
5480
+ /** Description */
5481
+ description: string;
5482
+ effort_options?: components["schemas"]["EffortOptionsResponse"] | null;
5483
+ /** Family */
5484
+ family?: string | null;
5485
+ /** Family Generation */
5486
+ family_generation?: number | null;
5487
+ /** Id */
5488
+ id: string;
5489
+ /** Max Context Tokens */
5490
+ max_context_tokens: number;
5491
+ /** Max Output Tokens */
5492
+ max_output_tokens: number;
5493
+ /** Model Id */
5494
+ model_id: string;
5495
+ /** Name */
5496
+ name: string;
5497
+ /** Provider */
5498
+ provider: string;
5499
+ /** Reason */
5500
+ reason: string;
5501
+ /** Recommendation Type */
5502
+ recommendation_type: string;
5503
+ /** Released At */
5504
+ released_at?: string | null;
5505
+ /** Sunset At */
5506
+ sunset_at?: string | null;
5507
+ /** Supports Openai Arguments */
5508
+ supports_openai_arguments: boolean;
5509
+ /** Supports Streaming */
5510
+ supports_streaming: boolean;
5511
+ /** Supports Structured Output */
5512
+ supports_structured_output: boolean;
5513
+ /** Supports Thinking */
5514
+ supports_thinking: boolean;
5515
+ /** Supports Tool Use */
5516
+ supports_tool_use: boolean;
5517
+ };
5518
+ /** ModelRecommendationsResponse */
5519
+ routers__api__model_lifecycle__ModelRecommendationsResponse: {
5520
+ /** Alternatives */
5521
+ alternatives: components["schemas"]["routers__api__model_lifecycle__ModelRecommendationResponse"][];
5522
+ /** Current Model Id */
5523
+ current_model_id: string;
5524
+ /** Current Model Name */
5525
+ current_model_name: string;
5526
+ /** Same Provider */
5527
+ same_provider: components["schemas"]["routers__api__model_lifecycle__ModelRecommendationResponse"][];
5528
+ successor?: components["schemas"]["routers__api__model_lifecycle__ModelRecommendationResponse"] | null;
5529
+ /** Upgrades */
5530
+ upgrades: components["schemas"]["routers__api__model_lifecycle__ModelRecommendationResponse"][];
5531
+ };
5532
+ /**
5533
+ * SearchResponse
5534
+ * @description Ranked results, NOT a paginated collection — the ``{results}`` shape is a
5535
+ * deliberate carve-out matching the MCP ``search_resources`` tool.
5536
+ */
5537
+ routers__api__search__SearchResponse: {
5538
+ /** Results */
5539
+ results: components["schemas"]["routers__api__search__SearchResultResponse"][];
5540
+ };
5541
+ /** SearchResultResponse */
5542
+ routers__api__search__SearchResultResponse: {
5543
+ /** Description */
5544
+ description: string | null;
5545
+ /** Entity Type */
5546
+ entity_type: string;
5547
+ /** Id */
5548
+ id: string;
5549
+ /** Name */
5550
+ name: string;
5551
+ };
4343
5552
  /**
4344
5553
  * AiAssistantAcceptRequest
4345
5554
  * @description Request body for accepting a proposed plan.
@@ -4714,7 +5923,7 @@ interface components {
4714
5923
  routers__api__sources__FileUploadResponse: {
4715
5924
  /**
4716
5925
  * Content Version Id
4717
- * @description ID of the created content version
5926
+ * @description ID of the created content version, and what the source content status endpoints take. Set when `status` is `uploaded`; `null` when `status` is `duplicate`, because no new version was created.
4718
5927
  */
4719
5928
  content_version_id: string | null;
4720
5929
  /**
@@ -4729,12 +5938,12 @@ interface components {
4729
5938
  filename: string;
4730
5939
  /**
4731
5940
  * Source Connection Content Version Id
4732
- * @description ID of the duplicate source connection content version
5941
+ * @description ID of the existing, already-indexed item this file duplicates, and what `GET /contents/{id}` takes. Set only when `status` is `duplicate`; `null` on a new upload, which has no such id until it finishes indexing.
4733
5942
  */
4734
5943
  source_connection_content_version_id: string | null;
4735
5944
  /**
4736
5945
  * Status
4737
- * @description Processing status
5946
+ * @description `uploaded` for a new item, or `duplicate` when this exact file is already on the source.
4738
5947
  */
4739
5948
  status: string;
4740
5949
  };
@@ -4752,12 +5961,20 @@ interface components {
4752
5961
  * @description Response model for prompt model data
4753
5962
  */
4754
5963
  schemas__model_responses__PromptModelResponse: {
5964
+ /**
5965
+ * Chat Capable
5966
+ * @description Whether this model can serve a chat request (`prompt_call`, `extract_data`). True for every plain text LLM, and for a dual-capability model that generates media AND holds a conversation; false for a dedicated generator (Imagen, Veo, a TTS voice), which bills per produced unit and has no chat interface. Authoritative: consumers must read this rather than inferring it from `generation_params` or `supported_output_media`, because the answer also depends on which inference interface serves the model — something no response field exposes.
5967
+ * @default true
5968
+ */
5969
+ chat_capable: boolean;
4755
5970
  /** Default */
4756
5971
  default: boolean;
4757
5972
  /** Deprecated At */
4758
5973
  deprecated_at?: string | null;
4759
5974
  /** Description */
4760
5975
  description: string;
5976
+ /** @description The reasoning-effort values a prompt_call or extract_data step may set as `effort` with this model. Null when the model takes none. */
5977
+ effort_options?: components["schemas"]["EffortOptionsResponse"] | null;
4761
5978
  /** Enabled */
4762
5979
  enabled: boolean;
4763
5980
  /** Family */
@@ -4766,12 +5983,19 @@ interface components {
4766
5983
  family_generation?: number | null;
4767
5984
  /**
4768
5985
  * Generation Credits Per Unit
4769
- * @description Per-unit credit cost for a dedicated media-generation model, in the unit named by ``generation_params.pricing_unit`` (per image / per second / per character / per output token). Multiply by the produced unit count (images, seconds, characters) for the run cost. None for token-billed (non-generation) models.
5986
+ * @description Per-unit credit cost for a dedicated media-generation model, in the unit named by ``generation_params.pricing_unit`` (per image / per second / per character / per output token). Multiply by the produced unit count (images, seconds, characters) for the run cost. None for models with no generation descriptor. This rate applies when the model is used in a generate_image/audio/video step; a model that also serves the chat path is billed per token there instead, using the input/output token rates on this same record. When `generation_params.price_varies_by` is set the model has one rate per value of that option and this is the **highest** of them — read `generation_credits_per_variant` for the real spread rather than presenting this as the price.
4770
5987
  */
4771
5988
  generation_credits_per_unit?: number | null;
5989
+ /**
5990
+ * Generation Credits Per Variant
5991
+ * @description Per-unit credit cost keyed by the value of the option named in `generation_params.price_varies_by` (e.g. `{'720p': 1330, '1080p': 1995}`). None for a model with a single rate, where `generation_credits_per_unit` already describes it exactly.
5992
+ */
5993
+ generation_credits_per_variant?: {
5994
+ [key: string]: number;
5995
+ } | null;
4772
5996
  /**
4773
5997
  * Generation Params
4774
- * @description Media-generation descriptor (modality, pricing_unit, and modality-specific constraints). NULL for text LLMs; present for image/audio/video generation models. See schemas.generation_params.
5998
+ * @description Media-generation descriptor (modality, pricing_unit, and modality-specific constraints). NULL for text LLMs; present for image/audio/video generation models. See schemas.generation_params. A present descriptor does NOT imply the model is generation-only: some models serve both paths (they generate media AND hold a chat conversation). Read `chat_capable` to tell whether a model with a descriptor can also be used as a chat model — do not branch on this field being non-null alone, and do not re-derive the answer from `supported_output_media`.
4775
5999
  */
4776
6000
  generation_params?: {
4777
6001
  [key: string]: unknown;
@@ -4788,11 +6012,25 @@ interface components {
4788
6012
  * @description Per-image credit cost of using the built-in image_generation tool (it runs gpt-image-1). Set only for models that actually support the tool (tool-use capable); None otherwise.
4789
6013
  */
4790
6014
  image_generation_tool_credits_per_image?: number | null;
4791
- /** Input 1H Cache Write Credits Per 1000 Tokens */
6015
+ /**
6016
+ * Input 1H Cache Write Credits Per 1000 Tokens
6017
+ * @description Credits per 1,000 input tokens written to a 1-hour prompt cache.
6018
+ */
4792
6019
  input_1h_cache_write_credits_per_1000_tokens?: number | null;
4793
- /** Input 5M Cache Write Credits Per 1000 Tokens */
6020
+ /**
6021
+ * Input 30M Cache Write Credits Per 1000 Tokens
6022
+ * @description Credits per 1,000 input tokens written to a 30-minute prompt cache.
6023
+ */
6024
+ input_30m_cache_write_credits_per_1000_tokens?: number | null;
6025
+ /**
6026
+ * Input 5M Cache Write Credits Per 1000 Tokens
6027
+ * @description Credits per 1,000 input tokens written to a 5-minute prompt cache.
6028
+ */
4794
6029
  input_5m_cache_write_credits_per_1000_tokens?: number | null;
4795
- /** Input Cache Hit Credits Per 1000 Tokens */
6030
+ /**
6031
+ * Input Cache Hit Credits Per 1000 Tokens
6032
+ * @description Credits per 1,000 input tokens read from a prompt cache.
6033
+ */
4796
6034
  input_cache_hit_credits_per_1000_tokens?: number | null;
4797
6035
  /** Input Credits Per 1000 Tokens */
4798
6036
  input_credits_per_1000_tokens?: number | null;
@@ -4945,6 +6183,8 @@ interface components {
4945
6183
  };
4946
6184
  responses: never;
4947
6185
  parameters: {
6186
+ /** @description Opt into dated, backward-incompatible API changes (format YYYY-MM-DD). When omitted, the account's pinned baseline version is used and responses keep their legacy shapes. Send a date on or after a change's release to adopt it — e.g. `2026-07-27` enables rejection of undeclared query parameters (422) and the canonical `{data, pagination}` envelope (pagination = `{page, limit, total, pages, has_next, has_prev}`) on every list endpoint that previously returned a bare array, a flat `{data, total, page, limit}`, a `{configs, total}`, or another per-resource key. */
6187
+ "Seclai-Version": string;
4948
6188
  /** @description Target a different organization account (OAuth only). When omitted, the user's default account is used. Ignored for API key authentication — the key's account is always used. */
4949
6189
  "X-Account-Id": string;
4950
6190
  };
@@ -5048,6 +6288,8 @@ type AgentRunListResponse = components["schemas"]["routers__api__agents__AgentRu
5048
6288
  type AgentRunStepResponse = components["schemas"]["AgentRunStepResponse"];
5049
6289
  /** Details of a single attempt within an agent run step. */
5050
6290
  type AgentRunAttemptResponse = components["schemas"]["AgentRunAttemptResponse"];
6291
+ /** A file a run or step produced or received (within `attachments`). */
6292
+ type AgentRunFileResponse = components["schemas"]["AgentRunFileResponse"];
5051
6293
  /** A single LLM tool call made during a `prompt_call` step (within {@link AgentRunStepResponse}'s `tool_calls`). */
5052
6294
  type AgentRunToolCallResponse = components["schemas"]["AgentRunToolCallResponse"];
5053
6295
  /** Search request for agent runs (traces). */
@@ -5085,6 +6327,82 @@ type AiConversationTurnResponse = components["schemas"]["AiConversationTurnRespo
5085
6327
  type AgentEvaluationTier = components["schemas"]["AgentEvaluationTier"];
5086
6328
  /** Evaluation criteria configuration for an agent. */
5087
6329
  type EvaluationCriteriaResponse = components["schemas"]["EvaluationCriteriaResponse"];
6330
+ /** A page of alerts. Always the canonical `{data, pagination}` envelope. */
6331
+ type AlertListResponse = components["schemas"]["routers__api__alerts__AlertListResponse"];
6332
+ /** A single alert. */
6333
+ type AlertResponse = components["schemas"]["routers__api__alerts__AlertResponse"];
6334
+ /** A single alert configuration. */
6335
+ type AlertConfigResponse = components["schemas"]["AlertConfigResponse"];
6336
+ /**
6337
+ * A page of alert configurations.
6338
+ *
6339
+ * The top-level key is version-gated: `configs` alongside `total` by default,
6340
+ * the canonical `{data, pagination}` envelope once `apiVersion` is `2026-07-27`
6341
+ * or later. Both are declared optional so either shape type-checks.
6342
+ */
6343
+ type AlertConfigListResponse = {
6344
+ configs?: AlertConfigResponse[];
6345
+ data?: AlertConfigResponse[];
6346
+ pagination?: PaginationResponse;
6347
+ total?: number;
6348
+ };
6349
+ /** A single model lifecycle alert. */
6350
+ type ModelAlertResponse = components["schemas"]["routers__api__model_lifecycle__ModelAlertResponse"];
6351
+ /**
6352
+ * A page of model lifecycle alerts.
6353
+ *
6354
+ * The top-level key is version-gated: `alerts` alongside `total` by default, the
6355
+ * canonical `{data, pagination}` envelope once `apiVersion` is `2026-07-27` or
6356
+ * later. Both are declared optional so either shape type-checks.
6357
+ */
6358
+ type ModelAlertListResponse = {
6359
+ alerts?: ModelAlertResponse[];
6360
+ data?: ModelAlertResponse[];
6361
+ pagination?: PaginationResponse;
6362
+ total?: number;
6363
+ };
6364
+ /** A single alert with its comments, subscribers and history. */
6365
+ type AlertDetailResponse = components["schemas"]["routers__api__alerts__AlertDetailResponse"];
6366
+ /** A comment on an alert. */
6367
+ type AlertCommentResponse = components["schemas"]["routers__api__alerts__AlertCommentResponse"];
6368
+ /** A subscriber to an alert. */
6369
+ type AlertSubscriberResponse = components["schemas"]["routers__api__alerts__AlertSubscriberResponse"];
6370
+ /** A count of unread items. */
6371
+ type UnreadCountResponse = components["schemas"]["UnreadCountResponse"];
6372
+ /** Successor recommendations for a model. */
6373
+ type ModelRecommendationsResponse = components["schemas"]["routers__api__model_lifecycle__ModelRecommendationsResponse"];
6374
+ /** A single successor recommendation. */
6375
+ type ModelRecommendationResponse = components["schemas"]["routers__api__model_lifecycle__ModelRecommendationResponse"];
6376
+ /** A page of model playground experiments. */
6377
+ type ExperimentListResponse = components["schemas"]["ExperimentListResponse"];
6378
+ /** A model playground experiment in a listing. */
6379
+ type ExperimentSummaryResponse = components["schemas"]["ExperimentSummaryResponse"];
6380
+ /** A model playground experiment with its results. */
6381
+ type ExperimentDetailResponse = components["schemas"]["ExperimentDetailResponse"];
6382
+ /** Acknowledgement of a created experiment. */
6383
+ type CreateExperimentResponse = components["schemas"]["CreateExperimentResponse"];
6384
+ /** Acknowledgement of a cancelled experiment. */
6385
+ type CancelExperimentResponse = components["schemas"]["CancelExperimentResponse"];
6386
+ /** A ranked set of search results. Deliberately not paginated. */
6387
+ type SearchResponse = components["schemas"]["routers__api__search__SearchResponse"];
6388
+ /** A single search hit. */
6389
+ type SearchResultResponse = components["schemas"]["routers__api__search__SearchResultResponse"];
6390
+ /** A simple acknowledgement. */
6391
+ type OkResponse = components["schemas"]["OkResponse"];
6392
+ /** The API version a request resolved to, and the versions available. */
6393
+ type ApiVersionResponse = components["schemas"]["ApiVersionResponse"];
6394
+ /**
6395
+ * A page of evaluation criteria.
6396
+ *
6397
+ * Not a generated type: the endpoint returns a bare array by default, and only
6398
+ * emits the canonical `{data, pagination}` envelope once the caller opts in with
6399
+ * `apiVersion: "2026-07-27"` or later. `pagination` is therefore absent unless
6400
+ * opted in.
6401
+ */
6402
+ type EvaluationCriteriaListResponse = {
6403
+ data: EvaluationCriteriaResponse[];
6404
+ pagination?: PaginationResponse;
6405
+ };
5088
6406
  /** Request body for creating evaluation criteria. */
5089
6407
  type CreateEvaluationCriteriaRequest = components["schemas"]["CreateEvaluationCriteriaRequest"];
5090
6408
  /** Request body for updating evaluation criteria. */
@@ -5100,7 +6418,25 @@ type EvaluationResultSummaryResponse = components["schemas"]["EvaluationResultSu
5100
6418
  /** Evaluation result with its associated criteria. */
5101
6419
  type EvaluationResultWithCriteriaResponse = components["schemas"]["EvaluationResultWithCriteriaResponse"];
5102
6420
  /** Paginated list of evaluation results with criteria. */
5103
- type EvaluationResultWithCriteriaListResponse = components["schemas"]["EvaluationResultWithCriteriaListResponse"];
6421
+ /**
6422
+ * A page of evaluation results with criteria context.
6423
+ *
6424
+ * Not a generated type: two endpoints share this shape and populate different
6425
+ * halves of it.
6426
+ *
6427
+ * - `GET /agents/{id}/evaluation-results` is always paginated and fills `total`,
6428
+ * `page` and `limit`.
6429
+ * - `GET /agents/{id}/runs/{runId}/evaluation-results` is version-gated: a bare
6430
+ * array by default, and the canonical `{data, pagination}` envelope once
6431
+ * `apiVersion` is `2026-07-27` or later — in which case the metadata is on
6432
+ * `pagination` and the flat fields are absent.
6433
+ */
6434
+ type EvaluationResultWithCriteriaListResponse = Omit<components["schemas"]["EvaluationResultWithCriteriaListResponse"], "total" | "page" | "limit"> & {
6435
+ pagination?: PaginationResponse;
6436
+ total?: number;
6437
+ page?: number;
6438
+ limit?: number;
6439
+ };
5104
6440
  /** Summary of an evaluation run. */
5105
6441
  type EvaluationRunSummaryResponse = components["schemas"]["EvaluationRunSummaryResponse"];
5106
6442
  /** Paginated list of evaluation run summaries. */
@@ -5171,6 +6507,35 @@ type FileUploadResponse = components["schemas"]["routers__api__sources__FileUplo
5171
6507
  type InlineTextUploadRequest = components["schemas"]["InlineTextUploadRequest"];
5172
6508
  /** Request body for replacing content with inline text. */
5173
6509
  type InlineTextReplaceRequest = components["schemas"]["InlineTextReplaceRequest"];
6510
+ /** One content item's indexing status within a source. */
6511
+ type SourceContentStatusResponse = components["schemas"]["SourceContentStatusResponse"];
6512
+ /** Paginated list of a source's content items and their indexing status. */
6513
+ type SourceContentStatusListResponse = components["schemas"]["SourceContentStatusListResponse"];
6514
+ /** Filters for {@link Seclai.listSourceContents}. */
6515
+ interface ListSourceContentsOptions extends SortableListOptions {
6516
+ /** Keep only one status: pending, fetching, transcribing, scanning, indexing, completed or failed. */
6517
+ status?: string;
6518
+ /**
6519
+ * Keep only these items — the `content_version_id` values the upload methods
6520
+ * return. Keep it to about 100: the ids travel in the query string, and a URL
6521
+ * over 8,192 bytes is rejected with a 414. The API itself accepts at most 500.
6522
+ */
6523
+ contentVersionIds?: string[];
6524
+ }
6525
+ /** A cloud-drive provider this deployment has configured. */
6526
+ type CloudDriveProviderResponse = components["schemas"]["CloudDriveProviderResponseModel"];
6527
+ /** An OAuth scope a {@link CloudDriveProviderResponse} can request. */
6528
+ type CloudDriveScopeResponse = components["schemas"]["CloudDriveScopeResponseModel"];
6529
+ /** An access level a {@link CloudDriveProviderResponse} offers. */
6530
+ type CloudDriveAccessLevelResponse = components["schemas"]["CloudDriveAccessLevelResponseModel"];
6531
+ /** A cloud-drive connection. */
6532
+ type CloudDriveResponse = components["schemas"]["CloudDriveResponseModel"];
6533
+ /** Request body for updating a cloud-drive connection. */
6534
+ type CloudDriveUpdateRequest = components["schemas"]["CloudDriveUpdateRequest"];
6535
+ /** An agent that uses a cloud-drive connection. */
6536
+ type AgentUsingCloudDriveResponse = components["schemas"]["AgentUsingCloudDriveResponseModel"];
6537
+ /** A file a cloud-drive connection skipped, and why. */
6538
+ type CloudDriveRejectionResponse = components["schemas"]["CloudDriveRejectionResponseModel"];
5174
6539
  /** Paginated list of source exports. */
5175
6540
  type ExportListResponse = components["schemas"]["ExportListResponse"];
5176
6541
  /** Response for a single source export. */
@@ -5273,6 +6638,20 @@ type PromptModelResponse = components["schemas"]["schemas__model_responses__Prom
5273
6638
  type PromptToolResponse = components["schemas"]["PromptToolResponse"];
5274
6639
  /** Per-modality rate for a model that prices image/audio/video distinctly from its default text rate. */
5275
6640
  type ModalityRateResponse = components["schemas"]["ModalityRateResponse"];
6641
+ /** The effort levels a model accepts, and its default. */
6642
+ type EffortOptionsResponse = components["schemas"]["EffortOptionsResponse"];
6643
+ /** An embedding model a source can index with. */
6644
+ type EmbeddingModelResponse = components["schemas"]["EmbeddingModelResponse"];
6645
+ /** The embedding models, with the defaults and pricing that apply to all of them. */
6646
+ type EmbeddingModelListResponse = components["schemas"]["EmbeddingModelListResponse"];
6647
+ /** Per-modality rate for an embedding model. */
6648
+ type EmbeddingModalityRateResponse = components["schemas"]["EmbeddingModalityRateResponse"];
6649
+ /** Storage credits for one embedding dimension. */
6650
+ type EmbeddingStorageCreditsResponse = components["schemas"]["EmbeddingStorageCreditsResponse"];
6651
+ /** A reranker model a knowledge base can use. */
6652
+ type RerankerModelResponse = components["schemas"]["RerankerModelResponse"];
6653
+ /** The reranker models, with the default and pricing that apply to all of them. */
6654
+ type RerankerModelListResponse = components["schemas"]["RerankerModelListResponse"];
5276
6655
  /** Variant category for model pricing tiers. */
5277
6656
  type VariantCategoryResponse = components["schemas"]["VariantCategoryResponse"];
5278
6657
  /** Variant option with credit pricing and context limits. */
@@ -5387,7 +6766,52 @@ interface SeclaiOptions {
5387
6766
  * Overrides the profile's `sso_account_id` when using SSO auth.
5388
6767
  */
5389
6768
  accountId?: string;
6769
+ /**
6770
+ * Dated API version (`YYYY-MM-DD`) sent as the `Seclai-Version` header, opting
6771
+ * this client into backward-incompatible API changes released on or before
6772
+ * that date.
6773
+ *
6774
+ * Left unset the header is omitted and the account's pinned baseline applies,
6775
+ * so responses keep their current shapes and upgrading the SDK alone never
6776
+ * changes the wire contract. Pin the account instead with
6777
+ * {@link Seclai.updateApiVersion}, and read what a request resolves to with
6778
+ * {@link Seclai.getApiVersion}.
6779
+ *
6780
+ * From `2026-07-27` the API rejects undeclared query parameters with a 422
6781
+ * rather than ignoring them, and list endpoints return the canonical
6782
+ * `{data, pagination}` envelope.
6783
+ */
6784
+ apiVersion?: ApiVersion;
6785
+ /**
6786
+ * Permit an {@link apiVersion} this release was not built against.
6787
+ *
6788
+ * Off by default. A newer API version can change response shapes, and this
6789
+ * client would decode them incorrectly rather than reject them — a
6790
+ * request-side mistake answers 422, but a reshaped response just mis-decodes,
6791
+ * silently. Prefer upgrading the package.
6792
+ */
6793
+ allowUnknownApiVersion?: boolean;
5390
6794
  }
6795
+ /**
6796
+ * One page as a fetcher handed to {@link Seclai.paginate} may return it: a list
6797
+ * method's `{data, pagination}` envelope or flat `{data, total, page, limit}`,
6798
+ * a bare array, or `{items, pagination}` with a `total_pages` count.
6799
+ */
6800
+ type PaginatedPage<T> = T[] | {
6801
+ data?: T[] | null;
6802
+ pagination?: {
6803
+ pages?: number;
6804
+ has_next?: boolean;
6805
+ } | null;
6806
+ total?: number;
6807
+ limit?: number;
6808
+ } | {
6809
+ items: T[];
6810
+ pagination?: {
6811
+ page: number;
6812
+ total_pages: number;
6813
+ };
6814
+ };
5391
6815
  /**
5392
6816
  * Seclai JavaScript/TypeScript client.
5393
6817
  *
@@ -5401,7 +6825,7 @@ interface SeclaiOptions {
5401
6825
  * const client = new Seclai({ apiKey: "sk-..." });
5402
6826
  *
5403
6827
  * // List agents
5404
- * const { items } = await client.listAgents();
6828
+ * const { data: agents } = await client.listAgents();
5405
6829
  *
5406
6830
  * // Run an agent
5407
6831
  * const run = await client.runAgent("agent-id", { input: "Hello!" });
@@ -5484,6 +6908,27 @@ declare class Seclai {
5484
6908
  * @returns The current user's account ID and organization memberships.
5485
6909
  */
5486
6910
  getMe(): Promise<MeResponse>;
6911
+ /**
6912
+ * Read the API version this request resolved to, and the versions available.
6913
+ *
6914
+ * Resolution order is the `Seclai-Version` header, then the account pin, then
6915
+ * the default — so `effective_version` reflects the client's `apiVersion`
6916
+ * option when that is set.
6917
+ *
6918
+ * @returns The pinned, effective, default and latest versions.
6919
+ */
6920
+ getApiVersion(): Promise<ApiVersionResponse>;
6921
+ /**
6922
+ * Pin the account to a dated API version, or clear the pin.
6923
+ *
6924
+ * Owner/admin only. The pin applies to later header-less requests; a
6925
+ * `Seclai-Version` header still overrides it, so `effective_version` in the
6926
+ * response describes this request rather than the pin just written.
6927
+ *
6928
+ * @param version - A `YYYY-MM-DD` date to pin to, or `null` to clear the pin.
6929
+ * @returns The updated version state.
6930
+ */
6931
+ updateApiVersion(version: string | null): Promise<ApiVersionResponse>;
5487
6932
  /**
5488
6933
  * List agents.
5489
6934
  *
@@ -5630,7 +7075,11 @@ declare class Seclai {
5630
7075
  includeStepOutputs?: boolean;
5631
7076
  }): Promise<AgentRunResponse>;
5632
7077
  /**
5633
- * Delete an agent run.
7078
+ * Cancel an agent run.
7079
+ *
7080
+ * @deprecated This never deleted anything — the endpoint it calls is documented
7081
+ * as "Cancel an agent run", and the API has no delete-a-run operation. It also
7082
+ * discards the returned run state. Use {@link cancelAgentRun} instead.
5634
7083
  *
5635
7084
  * @param runId - Run identifier.
5636
7085
  */
@@ -5638,6 +7087,10 @@ declare class Seclai {
5638
7087
  /**
5639
7088
  * Cancel a running agent run.
5640
7089
  *
7090
+ * Cancellation is `DELETE` on the run resource — the API exposes no
7091
+ * `POST .../cancel` route, and no operation that deletes a run. Rejected when
7092
+ * the run has already reached a terminal state.
7093
+ *
5641
7094
  * @param runId - Run identifier.
5642
7095
  * @returns Updated run (with cancelled status).
5643
7096
  */
@@ -5783,7 +7236,12 @@ declare class Seclai {
5783
7236
  * @param agentId - Agent identifier.
5784
7237
  * @returns Conversation history.
5785
7238
  */
5786
- getAgentAiConversationHistory(agentId: string): Promise<AiConversationHistoryResponse>;
7239
+ getAgentAiConversationHistory(agentId: string, opts?: {
7240
+ stepType?: string;
7241
+ stepId?: string;
7242
+ limit?: number;
7243
+ offset?: number;
7244
+ }): Promise<AiConversationHistoryResponse>;
5787
7245
  /**
5788
7246
  * Mark an AI suggestion as accepted or rejected.
5789
7247
  *
@@ -5799,6 +7257,19 @@ declare class Seclai {
5799
7257
  * @param opts - Pagination options.
5800
7258
  */
5801
7259
  listEvaluationCriteria(agentId: string, opts?: ListOptions): Promise<EvaluationCriteriaResponse[]>;
7260
+ /**
7261
+ * List evaluation criteria for an agent, with pagination metadata.
7262
+ *
7263
+ * Accepts either wire shape. The endpoint answered with a bare array before
7264
+ * 2026-07 and with a paginated envelope after, so a client that decodes only
7265
+ * one breaks the day the other ships. `total`, `page` and `limit` are absent
7266
+ * when the endpoint answers with a bare array.
7267
+ *
7268
+ * @param agentId - Agent identifier.
7269
+ * @param opts - Pagination options.
7270
+ * @returns The criteria under `data`, plus the page metadata when present.
7271
+ */
7272
+ listEvaluationCriteriaPage(agentId: string, opts?: ListOptions): Promise<EvaluationCriteriaListResponse>;
5802
7273
  /**
5803
7274
  * Create evaluation criteria for an agent.
5804
7275
  *
@@ -6125,7 +7596,7 @@ declare class Seclai {
6125
7596
  * @param conversationId - Conversation identifier.
6126
7597
  * @param body - Accept request payload.
6127
7598
  */
6128
- acceptMemoryBankAiSuggestion(conversationId: string, body: MemoryBankAcceptRequest): Promise<unknown>;
7599
+ acceptMemoryBankAiSuggestion(conversationId: string, body: MemoryBankAcceptRequest): Promise<OkResponse>;
6129
7600
  /**
6130
7601
  * List sources.
6131
7602
  *
@@ -6188,6 +7659,26 @@ declare class Seclai {
6188
7659
  * @returns Upload response.
6189
7660
  */
6190
7661
  uploadInlineTextToSource(sourceId: string, body: InlineTextUploadRequest): Promise<FileUploadResponse>;
7662
+ /**
7663
+ * List a source's content items and their indexing status.
7664
+ *
7665
+ * @param sourceId - Source connection identifier.
7666
+ * @param opts - Pagination, sorting, and filters. Pass the `content_version_id`
7667
+ * values the upload methods return as `contentVersionIds` to poll a batch of
7668
+ * uploads in one request — about 100 at a time, since the ids travel in the
7669
+ * query string and a URL over 8,192 bytes is rejected with a 414. An empty
7670
+ * `contentVersionIds` matches nothing, so it returns an empty page without
7671
+ * sending a request.
7672
+ * @returns The items under `data` with `pagination`, on every API version.
7673
+ */
7674
+ listSourceContents(sourceId: string, opts?: ListSourceContentsOptions): Promise<SourceContentStatusListResponse>;
7675
+ /**
7676
+ * Get one content item's indexing status.
7677
+ *
7678
+ * @param sourceId - Source connection identifier.
7679
+ * @param contentVersionId - The `content_version_id` an upload returned.
7680
+ */
7681
+ getSourceContentStatus(sourceId: string, contentVersionId: string): Promise<SourceContentStatusResponse>;
6191
7682
  /**
6192
7683
  * List exports for a source.
6193
7684
  *
@@ -6491,61 +7982,67 @@ declare class Seclai {
6491
7982
  listAlerts(opts?: ListOptions & {
6492
7983
  status?: string;
6493
7984
  severity?: string;
6494
- }): Promise<unknown>;
7985
+ }): Promise<AlertListResponse>;
6495
7986
  /**
6496
7987
  * Get alert details by ID.
6497
7988
  *
6498
7989
  * @param alertId - Alert identifier.
6499
7990
  * @returns Alert details.
6500
7991
  */
6501
- getAlert(alertId: string): Promise<unknown>;
7992
+ getAlert(alertId: string): Promise<AlertDetailResponse>;
6502
7993
  /**
6503
7994
  * Change the status of an alert.
6504
7995
  *
6505
7996
  * @param alertId - Alert identifier.
6506
7997
  * @param body - Status change request.
6507
7998
  */
6508
- changeAlertStatus(alertId: string, body: ChangeStatusRequest): Promise<unknown>;
7999
+ changeAlertStatus(alertId: string, body: ChangeStatusRequest): Promise<AlertDetailResponse>;
6509
8000
  /**
6510
8001
  * Add a comment to an alert.
6511
8002
  *
6512
8003
  * @param alertId - Alert identifier.
6513
8004
  * @param body - Comment payload.
6514
8005
  */
6515
- addAlertComment(alertId: string, body: AddCommentRequest): Promise<unknown>;
8006
+ addAlertComment(alertId: string, body: AddCommentRequest): Promise<AlertDetailResponse>;
6516
8007
  /**
6517
8008
  * Subscribe to an alert.
6518
8009
  *
6519
8010
  * @param alertId - Alert identifier.
6520
8011
  */
6521
- subscribeToAlert(alertId: string): Promise<unknown>;
8012
+ subscribeToAlert(alertId: string): Promise<AlertDetailResponse>;
6522
8013
  /**
6523
8014
  * Unsubscribe from an alert.
6524
8015
  *
6525
8016
  * @param alertId - Alert identifier.
6526
8017
  */
6527
- unsubscribeFromAlert(alertId: string): Promise<unknown>;
8018
+ unsubscribeFromAlert(alertId: string): Promise<AlertDetailResponse>;
6528
8019
  /**
6529
8020
  * List alert configurations.
6530
8021
  *
6531
8022
  * @param opts - Pagination options.
6532
8023
  * @returns Paginated list of alert configs.
6533
8024
  */
6534
- listAlertConfigs(opts?: ListOptions): Promise<unknown>;
8025
+ /**
8026
+ * The configurations arrive under `configs` alongside `total` by default.
8027
+ * Once the caller opts in with `apiVersion` 2026-07-27 or later the endpoint
8028
+ * returns the canonical `{data, pagination}` envelope instead, so the
8029
+ * top-level key changes.
8030
+ */
8031
+ listAlertConfigs(opts?: ListOptions): Promise<AlertConfigListResponse>;
6535
8032
  /**
6536
8033
  * Create an alert configuration.
6537
8034
  *
6538
8035
  * @param body - Alert config definition.
6539
8036
  * @returns Created alert config.
6540
8037
  */
6541
- createAlertConfig(body: CreateAlertConfigRequest): Promise<unknown>;
8038
+ createAlertConfig(body: CreateAlertConfigRequest): Promise<AlertConfigResponse>;
6542
8039
  /**
6543
8040
  * Get an alert configuration by ID.
6544
8041
  *
6545
8042
  * @param configId - Alert config identifier.
6546
8043
  * @returns Alert config details.
6547
8044
  */
6548
- getAlertConfig(configId: string): Promise<unknown>;
8045
+ getAlertConfig(configId: string): Promise<AlertConfigResponse>;
6549
8046
  /**
6550
8047
  * Update an alert configuration.
6551
8048
  *
@@ -6553,7 +8050,7 @@ declare class Seclai {
6553
8050
  * @param body - Fields to update.
6554
8051
  * @returns Updated alert config.
6555
8052
  */
6556
- updateAlertConfig(configId: string, body: UpdateAlertConfigRequest): Promise<unknown>;
8053
+ updateAlertConfig(configId: string, body: UpdateAlertConfigRequest): Promise<AlertConfigResponse>;
6557
8054
  /**
6558
8055
  * Delete an alert configuration.
6559
8056
  *
@@ -6577,7 +8074,7 @@ declare class Seclai {
6577
8074
  *
6578
8075
  * @param opts - Pagination options.
6579
8076
  */
6580
- listModelAlerts(opts?: ListOptions): Promise<unknown>;
8077
+ listModelAlerts(opts?: ListOptions): Promise<ModelAlertListResponse>;
6581
8078
  /**
6582
8079
  * Mark all model alerts as read.
6583
8080
  */
@@ -6585,7 +8082,7 @@ declare class Seclai {
6585
8082
  /**
6586
8083
  * Get unread model alert count.
6587
8084
  */
6588
- getUnreadModelAlertCount(): Promise<unknown>;
8085
+ getUnreadModelAlertCount(): Promise<UnreadCountResponse>;
6589
8086
  /**
6590
8087
  * Mark a specific model alert as read.
6591
8088
  *
@@ -6597,7 +8094,7 @@ declare class Seclai {
6597
8094
  *
6598
8095
  * @param modelId - Model identifier.
6599
8096
  */
6600
- getModelRecommendations(modelId: string): Promise<unknown>;
8097
+ getModelRecommendations(modelId: string): Promise<ModelRecommendationsResponse>;
6601
8098
  /**
6602
8099
  * List all enabled LLM models grouped by provider.
6603
8100
  *
@@ -6628,6 +8125,25 @@ declare class Seclai {
6628
8125
  * Global routing/pricing (the same for every account); read-only.
6629
8126
  */
6630
8127
  getGenerationTiers(): Promise<Record<string, unknown>>;
8128
+ /**
8129
+ * List the embedding models a source can index with, and their pricing.
8130
+ *
8131
+ * The endpoint lists the embedders under `models` by default and under `data`
8132
+ * once the caller opts in with `apiVersion` 2026-07-27 or later; `models` is
8133
+ * populated on either, with the defaults and pricing beside it.
8134
+ *
8135
+ * @param opts.supportsInputMedia - Keep only embedders that can index this
8136
+ * input modality — a coarse kind (text, image, video, audio) or a full MIME.
8137
+ */
8138
+ listEmbeddingModels(opts?: {
8139
+ supportsInputMedia?: string;
8140
+ }): Promise<EmbeddingModelListResponse>;
8141
+ /**
8142
+ * List the reranker models a knowledge base can use, and their pricing.
8143
+ *
8144
+ * `models` is populated on either wire shape, as for {@link Seclai.listEmbeddingModels}.
8145
+ */
8146
+ listRerankerModels(): Promise<RerankerModelListResponse>;
6631
8147
  /**
6632
8148
  * List model playground experiments.
6633
8149
  *
@@ -6639,25 +8155,25 @@ declare class Seclai {
6639
8155
  endDate?: string;
6640
8156
  limit?: number;
6641
8157
  offset?: number;
6642
- }): Promise<unknown>;
8158
+ }): Promise<ExperimentListResponse>;
6643
8159
  /**
6644
8160
  * Create a model playground experiment.
6645
8161
  *
6646
8162
  * @param body - Experiment configuration.
6647
8163
  */
6648
- createExperiment(body: CreateExperimentInput): Promise<unknown>;
8164
+ createExperiment(body: CreateExperimentInput): Promise<CreateExperimentResponse>;
6649
8165
  /**
6650
8166
  * Get a model playground experiment by ID.
6651
8167
  *
6652
8168
  * @param experimentId - Experiment identifier.
6653
8169
  */
6654
- getExperiment(experimentId: string): Promise<unknown>;
8170
+ getExperiment(experimentId: string): Promise<ExperimentDetailResponse>;
6655
8171
  /**
6656
8172
  * Cancel a running model playground experiment.
6657
8173
  *
6658
8174
  * @param experimentId - Experiment identifier.
6659
8175
  */
6660
- cancelExperiment(experimentId: string): Promise<unknown>;
8176
+ cancelExperiment(experimentId: string): Promise<CancelExperimentResponse>;
6661
8177
  /**
6662
8178
  * Soft-delete a model playground experiment.
6663
8179
  *
@@ -6667,6 +8183,65 @@ declare class Seclai {
6667
8183
  * @param experimentId - Experiment identifier.
6668
8184
  */
6669
8185
  deleteExperiment(experimentId: string): Promise<void>;
8186
+ /**
8187
+ * List the cloud-drive providers this deployment has configured.
8188
+ *
8189
+ * @returns The providers, read from either wire shape.
8190
+ */
8191
+ listCloudDriveProviders(): Promise<CloudDriveProviderResponse[]>;
8192
+ /**
8193
+ * List the account's cloud-drive connections.
8194
+ *
8195
+ * @returns The connections, read from either wire shape.
8196
+ */
8197
+ listCloudDrives(): Promise<CloudDriveResponse[]>;
8198
+ /**
8199
+ * Get a cloud-drive connection.
8200
+ *
8201
+ * @param connectionId - Cloud-drive connection identifier.
8202
+ */
8203
+ getCloudDrive(connectionId: string): Promise<CloudDriveResponse>;
8204
+ /**
8205
+ * Update a cloud-drive connection.
8206
+ *
8207
+ * @param connectionId - Cloud-drive connection identifier.
8208
+ * @param body - Fields to change — `name` and/or `folder_path`.
8209
+ * @returns The updated connection.
8210
+ */
8211
+ updateCloudDrive(connectionId: string, body: CloudDriveUpdateRequest): Promise<CloudDriveResponse>;
8212
+ /**
8213
+ * Disconnect a cloud-drive connection, keeping the connection itself.
8214
+ *
8215
+ * @param connectionId - Cloud-drive connection identifier.
8216
+ * @returns The connection in its disconnected state.
8217
+ */
8218
+ disconnectCloudDrive(connectionId: string): Promise<CloudDriveResponse>;
8219
+ /**
8220
+ * Delete a cloud-drive connection.
8221
+ *
8222
+ * @param connectionId - Cloud-drive connection identifier.
8223
+ */
8224
+ deleteCloudDrive(connectionId: string): Promise<void>;
8225
+ /**
8226
+ * List the agents that use a cloud-drive connection.
8227
+ *
8228
+ * @param connectionId - Cloud-drive connection identifier.
8229
+ * @returns The agents, read from either wire shape.
8230
+ */
8231
+ getAgentsUsingCloudDrive(connectionId: string): Promise<AgentUsingCloudDriveResponse[]>;
8232
+ /**
8233
+ * List the files a cloud-drive connection skipped, newest first.
8234
+ *
8235
+ * A skipped file fires no trigger, so this is where to look when an agent
8236
+ * did not run for a file.
8237
+ *
8238
+ * @param connectionId - Cloud-drive connection identifier.
8239
+ * @param opts.limit - Maximum number of rejections (1-200, default 50).
8240
+ * @returns The rejections with their reasons, read from either wire shape.
8241
+ */
8242
+ listCloudDriveRejections(connectionId: string, opts?: {
8243
+ limit?: number;
8244
+ }): Promise<CloudDriveRejectionResponse[]>;
6670
8245
  /**
6671
8246
  * Search across all resource types in your account.
6672
8247
  *
@@ -6683,7 +8258,7 @@ declare class Seclai {
6683
8258
  query: string;
6684
8259
  limit?: number;
6685
8260
  entityType?: string;
6686
- }): Promise<unknown>;
8261
+ }): Promise<SearchResponse>;
6687
8262
  /**
6688
8263
  * Search the Seclai documentation by content.
6689
8264
  *
@@ -6857,35 +8432,31 @@ declare class Seclai {
6857
8432
  * @param conversationId - Conversation identifier.
6858
8433
  * @param body - Acceptance payload for the memory bank suggestion.
6859
8434
  */
6860
- acceptAiMemoryBankSuggestion(conversationId: string, body: MemoryBankAcceptRequest): Promise<unknown>;
8435
+ acceptAiMemoryBankSuggestion(conversationId: string, body: MemoryBankAcceptRequest): Promise<OkResponse>;
6861
8436
  /**
6862
8437
  * Auto-paginate through a list endpoint.
6863
8438
  *
6864
- * Yields individual items from each page, automatically fetching the next page
6865
- * until all items have been returned.
8439
+ * Yields individual items from each page, fetching the next page until the
8440
+ * response reports there is none. A fetcher that answers with a bare array has
8441
+ * no further pages, so its items are yielded once.
6866
8442
  *
6867
8443
  * @param fetchPage - A function that fetches a single page given `{ page, limit }`.
6868
8444
  * @param opts - Page size (default: 50).
8445
+ * @throws {@link SeclaiError} When a page carries its items under neither `data` nor `items`.
6869
8446
  *
6870
8447
  * @example
6871
8448
  * ```ts
6872
8449
  * for await (const agent of client.paginate(
6873
8450
  * (opts) => client.listAgents(opts),
6874
8451
  * )) {
6875
- * console.log(agent);
8452
+ * console.log(agent.name);
6876
8453
  * }
6877
8454
  * ```
6878
8455
  */
6879
8456
  paginate<T>(fetchPage: (opts: {
6880
8457
  page: number;
6881
8458
  limit: number;
6882
- }) => Promise<{
6883
- items: T[];
6884
- pagination?: {
6885
- page: number;
6886
- total_pages: number;
6887
- };
6888
- }>, opts?: {
8459
+ }) => Promise<PaginatedPage<T>>, opts?: {
6889
8460
  limit?: number;
6890
8461
  }): AsyncGenerator<T, void, undefined>;
6891
8462
  }
@@ -7064,4 +8635,4 @@ declare class SeclaiStreamingError extends SeclaiError {
7064
8635
  constructor(message: string, runId?: string);
7065
8636
  }
7066
8637
 
7067
- 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 AgentRunListResponse, type AgentRunRequest, type AgentRunResponse, type AgentRunStepResponse, type AgentRunStreamRequest, type AgentRunToolCallResponse, type AgentSummaryResponse, type AgentTraceMatchResponse, type AgentTraceSearchRequest, type AgentTraceSearchResponse, type AiAssistantAcceptRequest, type AiAssistantAcceptResponse, type AiAssistantFeedbackRequest, type AiAssistantFeedbackResponse, type AiAssistantGenerateRequest, type AiAssistantGenerateResponse, type AiConversationHistoryResponse, type AiConversationTurnResponse, type AttachmentRefsSourceApiSummary, type AuthState, type BlockEmailSenderRequest, type BlockedEmailSenderListResponse, type BlockedEmailSenderResponse, type CancelQueuedRunsResponse, type ChangeStatusRequest, 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 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 EmailDomainResponse, type EmailDomainsListResponse, type EmailTriggerConfigResponse, type EstimateExportRequest, type EstimateExportResponse, type EvaluationCriteriaResponse, type EvaluationResultListResponse, type EvaluationResultResponse, type EvaluationResultSummaryResponse, type EvaluationResultWithCriteriaListResponse, type EvaluationResultWithCriteriaResponse, type EvaluationRunSummaryListResponse, type EvaluationRunSummaryResponse, type EvaluationStatus, type ExamplePrompt, type ExecutedActionResponse, 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 MarkAiSuggestionRequest, type MarkConversationTurnRequest, type MeResponse, type MemoryBankAcceptRequest, type MemoryBankAiAssistantRequest, type MemoryBankAiAssistantResponse, type MemoryBankConfigResponse, type MemoryBankConversationTurnResponse, type MemoryBankLastConversationResponse, type MemoryBankListResponse, type MemoryBankResponse, type ModalityRateResponse, type NonManualEvaluationModeStatResponse, type NonManualEvaluationSummaryResponse, type OrganizationAlertPreferenceListResponse, type OrganizationAlertPreferenceResponse, type OrganizationInfoResponse, type PaginationResponse, type PendingProcessingCompletedFailedStatus, type PlaygroundCreateRequest, type PromptModelAutoUpgradeStrategy, type PromptModelResponse, type PromptToolResponse, type ProposedActionResponse, type ProviderGroupResponse, type RemoveEmailDomainResponse, type ResumeInboundResponse, SECLAI_API_URL, Seclai, SeclaiAPIStatusError, SeclaiAPIValidationError, 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 SourceEmbeddingMigrationResponse, type SourceIndexMode, type SourceListResponse, type SourceResponse, type SsoCacheEntry, type SsoProfile, type StandaloneTestCompactionRequest, type StartSourceEmbeddingMigrationRequest, type TestCompactionRequest, type TestDraftEvaluationRequest, type TestDraftEvaluationResponse, type UnlinkResourcesRequest, 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 };
8638
+ 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 };