@seclai/sdk 1.9.0 → 1.11.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/CHANGELOG.md +43 -0
- package/README.md +109 -25
- package/dist/index.cjs +416 -209
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +202 -66
- package/dist/index.d.ts +202 -66
- package/dist/index.js +416 -209
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -25,10 +25,14 @@ declare const SeclaiApiVersion: {
|
|
|
25
25
|
readonly V2026_10_28: "2026-10-28";
|
|
26
26
|
readonly V2026_11_02: "2026-11-02";
|
|
27
27
|
readonly V2026_11_04: "2026-11-04";
|
|
28
|
+
readonly V2026_11_08: "2026-11-08";
|
|
29
|
+
readonly V2026_11_09: "2026-11-09";
|
|
30
|
+
readonly V2026_11_14: "2026-11-14";
|
|
31
|
+
readonly V2026_11_19: "2026-11-19";
|
|
28
32
|
/** Baseline applied to an unpinned, header-less caller. */
|
|
29
33
|
readonly Default: "2026-07-01";
|
|
30
34
|
/** Newest version known to this SDK release. May lag the server. */
|
|
31
|
-
readonly Latest: "2026-11-
|
|
35
|
+
readonly Latest: "2026-11-19";
|
|
32
36
|
};
|
|
33
37
|
/**
|
|
34
38
|
* A dated API version. Known values autocomplete; any `YYYY-MM-DD` string still
|
|
@@ -192,7 +196,7 @@ interface components {
|
|
|
192
196
|
change_id: string;
|
|
193
197
|
/**
|
|
194
198
|
* Definition
|
|
195
|
-
* @description The agent definition containing name, description, tags, and step workflow tree. Step types include prompt_call, retrieval, regex_replace, evaluate_step, extract_data, extract_content, add_chat_turn, load_chat_history, add_memory, search_memory, load_memory,
|
|
199
|
+
* @description The agent definition containing name, description, tags, and step workflow tree. Step types include prompt_call, retrieval, regex_replace, evaluate_step, extract_data, extract_content, add_chat_turn, load_chat_history, add_memory, search_memory, load_memory, send_email, webhook_call, call_agent, write_metadata, write_content_attachment, load_content_attachment, load_content, text, for_each, if_else, switch, parallel, and others.
|
|
196
200
|
*/
|
|
197
201
|
definition: {
|
|
198
202
|
[key: string]: unknown;
|
|
@@ -204,7 +208,7 @@ interface components {
|
|
|
204
208
|
schema_version: string;
|
|
205
209
|
/**
|
|
206
210
|
* Warnings
|
|
207
|
-
* @description Validation warnings, if any.
|
|
211
|
+
* @description Validation warnings, if any. Each has `step_path`, `message` and `severity` (`info` or `warning`).
|
|
208
212
|
*/
|
|
209
213
|
warnings?: {
|
|
210
214
|
[key: string]: string;
|
|
@@ -267,7 +271,7 @@ interface components {
|
|
|
267
271
|
AgentExportResponse: {
|
|
268
272
|
/**
|
|
269
273
|
* Agent
|
|
270
|
-
* @description Agent metadata and full definition. Keys: name, description, schema_version, definition, default_evaluation_tier, evaluation_mode, sampling_config, max_retries, retry_on_failure, prompt_model_auto_upgrade_strategy, prompt_model_auto_rollback_enabled, prompt_model_auto_rollback_triggers, max_credits_per_run, max_credits_per_period, max_runs_per_hour, max_runs_per_day, max_runs_total, created_at, updated_at.
|
|
274
|
+
* @description Agent metadata and full definition. Keys: name, description, schema_version, definition, default_evaluation_tier, evaluation_mode, sampling_config, max_retries, retry_on_failure, prompt_model_auto_upgrade_strategy, prompt_model_auto_rollback_enabled, prompt_model_auto_rollback_triggers, max_credits_per_run, max_credits_per_period, max_runs_per_hour, max_runs_per_day, max_runs_total, gallery_example (a copy of a gallery example's setup guidance, or null), created_at, updated_at.
|
|
271
275
|
*/
|
|
272
276
|
agent: {
|
|
273
277
|
[key: string]: unknown;
|
|
@@ -295,7 +299,7 @@ interface components {
|
|
|
295
299
|
}[] | null;
|
|
296
300
|
/**
|
|
297
301
|
* Export Version
|
|
298
|
-
* @description Schema version of the export format (currently "
|
|
302
|
+
* @description Schema version of the export format (currently "7").
|
|
299
303
|
*/
|
|
300
304
|
export_version: string;
|
|
301
305
|
/**
|
|
@@ -494,7 +498,7 @@ interface components {
|
|
|
494
498
|
priority: boolean;
|
|
495
499
|
/**
|
|
496
500
|
* Result Reported At
|
|
497
|
-
* @description When the run reported success: for an agent whose `report_success` is `on_result`, once
|
|
501
|
+
* @description When the run reported success: for an agent whose `report_success` is `on_result`, once the step carrying `run_result` published, or once its run started if no step carries it; else when the run completed. From then on `output` is the run's answer and never changes; stop polling here if you only need the answer. `status` still follows every step, so a run can report success and later fail. Null until the run reports, for a run that failed before reporting, and for runs that ended before this field existed.
|
|
498
502
|
*/
|
|
499
503
|
result_reported_at?: string | null;
|
|
500
504
|
/**
|
|
@@ -597,9 +601,15 @@ interface components {
|
|
|
597
601
|
};
|
|
598
602
|
/** AgentRunStreamRequest */
|
|
599
603
|
AgentRunStreamRequest: {
|
|
604
|
+
/**
|
|
605
|
+
* Include Commentary
|
|
606
|
+
* @description Receive `stream_commentary` events carrying the text a model on OpenAI's Responses API writes outside its final answer, with its `phase` and `message` number. They are sent only for a `prompt_call` whose `run_result` enables `show_commentary`, and never when a governance policy redacts that step.
|
|
607
|
+
* @default false
|
|
608
|
+
*/
|
|
609
|
+
include_commentary: boolean;
|
|
600
610
|
/**
|
|
601
611
|
* Include Reasoning
|
|
602
|
-
* @description Receive `stream_reasoning` events carrying the model's reasoning while it thinks. They are sent only for a `
|
|
612
|
+
* @description Receive `stream_reasoning` events carrying the model's reasoning while it thinks. They are sent only for a `prompt_call` whose `run_result` enables `show_reasoning`, and never when a governance policy redacts that step.
|
|
603
613
|
* @default false
|
|
604
614
|
*/
|
|
605
615
|
include_reasoning: boolean;
|
|
@@ -1725,7 +1735,7 @@ interface components {
|
|
|
1725
1735
|
alert_type: string;
|
|
1726
1736
|
/**
|
|
1727
1737
|
* Cooldown Minutes
|
|
1728
|
-
* @description Cooldown period in minutes. Omit to use the
|
|
1738
|
+
* @description Cooldown period in minutes. Omit to use the alert type's default.
|
|
1729
1739
|
*/
|
|
1730
1740
|
cooldown_minutes?: number | null;
|
|
1731
1741
|
/**
|
|
@@ -1762,7 +1772,7 @@ interface components {
|
|
|
1762
1772
|
* CreateEvaluationCriteriaRequest
|
|
1763
1773
|
* @description Request body for creating an evaluation criteria.
|
|
1764
1774
|
*
|
|
1765
|
-
* step_id names the
|
|
1775
|
+
* step_id names the step carrying run_result, the run's answer, to score. The
|
|
1766
1776
|
* evaluation mode and sample frequency are set at the
|
|
1767
1777
|
* agent level, not per-criteria.
|
|
1768
1778
|
*/
|
|
@@ -3117,6 +3127,11 @@ interface components {
|
|
|
3117
3127
|
};
|
|
3118
3128
|
/** GenerationTierResponse */
|
|
3119
3129
|
GenerationTierResponse: {
|
|
3130
|
+
/**
|
|
3131
|
+
* Aspect Ratios
|
|
3132
|
+
* @description The aspect ratios the tier's model can be asked for, and so the values a media_generation image generator's aspect_ratio pin may take. Empty for audio and video tiers and for an image model that takes no ratio.
|
|
3133
|
+
*/
|
|
3134
|
+
aspect_ratios?: string[];
|
|
3120
3135
|
/** Credits Per Unit */
|
|
3121
3136
|
credits_per_unit: number | null;
|
|
3122
3137
|
/** Modality */
|
|
@@ -3903,7 +3918,7 @@ interface components {
|
|
|
3903
3918
|
* PendingProcessingCompletedFailedStatus
|
|
3904
3919
|
* @enum {string}
|
|
3905
3920
|
*/
|
|
3906
|
-
PendingProcessingCompletedFailedStatus: "pending" | "processing" | "completed" | "failed" | "queued" | "waiting_human" | "waiting_scheduled";
|
|
3921
|
+
PendingProcessingCompletedFailedStatus: "pending" | "processing" | "completed" | "failed" | "queued" | "waiting_human" | "waiting_scheduled" | "cancelled";
|
|
3907
3922
|
/**
|
|
3908
3923
|
* PlaygroundCreateRequest
|
|
3909
3924
|
* @description Create a model playground experiment via the public API.
|
|
@@ -5542,7 +5557,7 @@ interface components {
|
|
|
5542
5557
|
} | null;
|
|
5543
5558
|
/**
|
|
5544
5559
|
* Agent Template
|
|
5545
|
-
* @description Agent gallery entry to start from: a `key` from GET /agents/examples, or `blank`. The keys retrieval_example and simple_qa remain accepted for their gallery entries.
|
|
5560
|
+
* @description Agent gallery entry to start from: a `key` from GET /agents/examples, or `blank`. The keys retrieval_example and simple_qa remain accepted for their gallery entries. An entry's safety policies, which its summary may describe, are not created on an agent created here.
|
|
5546
5561
|
*/
|
|
5547
5562
|
agent_template?: string | null;
|
|
5548
5563
|
/**
|
|
@@ -6901,12 +6916,12 @@ interface components {
|
|
|
6901
6916
|
family_generation?: number | null;
|
|
6902
6917
|
/**
|
|
6903
6918
|
* Generation Credits Per Unit
|
|
6904
|
-
* @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
|
|
6919
|
+
* @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 (or combination) and this is the **highest** of them — read `generation_credits_per_variant` for the real spread rather than presenting this as the price.
|
|
6905
6920
|
*/
|
|
6906
6921
|
generation_credits_per_unit?: number | null;
|
|
6907
6922
|
/**
|
|
6908
6923
|
* Generation Credits Per Variant
|
|
6909
|
-
* @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.
|
|
6924
|
+
* @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}`); when it names several options (a list), the key joins their values with ':' in that order (`'1080p:audio'`). None for a model with a single rate, where `generation_credits_per_unit` already describes it exactly.
|
|
6910
6925
|
*/
|
|
6911
6926
|
generation_credits_per_variant?: {
|
|
6912
6927
|
[key: string]: number;
|
|
@@ -7391,8 +7406,11 @@ type CancelQueuedRunsResponse = components["schemas"]["CancelQueuedRunsResponse"
|
|
|
7391
7406
|
type ResumeInboundResponse = components["schemas"]["ResumeInboundResponse"];
|
|
7392
7407
|
/** Request body for starting an agent run. */
|
|
7393
7408
|
type AgentRunRequest = WithServerDefaults<components["schemas"]["AgentRunRequest"], "priority">;
|
|
7394
|
-
/**
|
|
7395
|
-
|
|
7409
|
+
/**
|
|
7410
|
+
* Request body for starting an agent run in streaming mode (SSE).
|
|
7411
|
+
* `include_reasoning` and `include_commentary` default to `false`.
|
|
7412
|
+
*/
|
|
7413
|
+
type AgentRunStreamRequest = WithServerDefaults<components["schemas"]["AgentRunStreamRequest"], "include_reasoning" | "include_commentary">;
|
|
7396
7414
|
/** Response body describing an agent run. */
|
|
7397
7415
|
type AgentRunResponse = components["schemas"]["AgentRunResponse"];
|
|
7398
7416
|
/** Paginated list of agent runs. */
|
|
@@ -7808,6 +7826,10 @@ type EmbeddingStorageCreditsResponse = components["schemas"]["EmbeddingStorageCr
|
|
|
7808
7826
|
type RerankerModelResponse = components["schemas"]["RerankerModelResponse"];
|
|
7809
7827
|
/** The reranker models, with the default and pricing that apply to all of them. */
|
|
7810
7828
|
type RerankerModelListResponse = VersionedList<components["schemas"]["RerankerModelListResponse"], "models">;
|
|
7829
|
+
/** A media-generation quality tier and the model and cost it resolves to. */
|
|
7830
|
+
type GenerationTierResponse = components["schemas"]["GenerationTierResponse"];
|
|
7831
|
+
/** The media-generation quality tiers {@link Seclai.getGenerationTiers} returns. */
|
|
7832
|
+
type GenerationTierListResponse = VersionedList<components["schemas"]["GenerationTierListResponse"], "tiers">;
|
|
7811
7833
|
/** Variant category for model pricing tiers. */
|
|
7812
7834
|
type VariantCategoryResponse = components["schemas"]["VariantCategoryResponse"];
|
|
7813
7835
|
/** Variant option with credit pricing and context limits. */
|
|
@@ -7853,7 +7875,12 @@ type InsufficientCreditsResponse = components["schemas"]["InsufficientCreditsRes
|
|
|
7853
7875
|
type InsufficientCreditsDetail = components["schemas"]["InsufficientCreditsDetail"];
|
|
7854
7876
|
/** Source index mode: fast_and_cheap, balanced, slow_and_thorough, or custom. */
|
|
7855
7877
|
type SourceIndexMode = components["schemas"]["SourceIndexMode"];
|
|
7856
|
-
/**
|
|
7878
|
+
/**
|
|
7879
|
+
* Status of an agent run, run attempt or run step: pending, queued,
|
|
7880
|
+
* processing, waiting_human, waiting_scheduled, completed, failed or
|
|
7881
|
+
* cancelled. An agent run cancelled under `apiVersion` `2026-11-08` or later
|
|
7882
|
+
* ends `cancelled`; on earlier versions it ends `failed`.
|
|
7883
|
+
*/
|
|
7857
7884
|
type PendingProcessingCompletedFailedStatus = components["schemas"]["PendingProcessingCompletedFailedStatus"];
|
|
7858
7885
|
/** An SSE event emitted during a streaming agent run. */
|
|
7859
7886
|
interface AgentRunEvent {
|
|
@@ -7878,7 +7905,13 @@ interface SortableListOptions extends ListOptions {
|
|
|
7878
7905
|
}
|
|
7879
7906
|
/** Filters for {@link Seclai.listAgentExamples}. */
|
|
7880
7907
|
interface ListAgentExamplesOptions extends ListOptions {
|
|
7881
|
-
/**
|
|
7908
|
+
/**
|
|
7909
|
+
* What the agent should do. From `apiVersion` `2026-11-09`, entries are
|
|
7910
|
+
* ranked by how well they match it, in words and meaning, best first, and a
|
|
7911
|
+
* query of several words that are all filler ("create an agent") counts as
|
|
7912
|
+
* no query. Before
|
|
7913
|
+
* it, only entries containing every word match.
|
|
7914
|
+
*/
|
|
7882
7915
|
query?: string;
|
|
7883
7916
|
/** Only examples for this use case. */
|
|
7884
7917
|
useCase?: string;
|
|
@@ -8219,6 +8252,10 @@ declare class Seclai {
|
|
|
8219
8252
|
/**
|
|
8220
8253
|
* List the agent gallery: example agents to start from.
|
|
8221
8254
|
*
|
|
8255
|
+
* From `apiVersion` `2026-11-09`, `query` describes what the agent should do
|
|
8256
|
+
* and entries come back ranked by how well they match it, best first. Before
|
|
8257
|
+
* it, only entries containing every word of `query` are returned.
|
|
8258
|
+
*
|
|
8222
8259
|
* Pass an entry's `key` as `agent_template` to {@link createAgent}, with
|
|
8223
8260
|
* `resource_bindings` for the resources it needs.
|
|
8224
8261
|
*
|
|
@@ -8332,6 +8369,11 @@ declare class Seclai {
|
|
|
8332
8369
|
/**
|
|
8333
8370
|
* Start an agent run.
|
|
8334
8371
|
*
|
|
8372
|
+
* From `apiVersion` `2026-11-14`, an agent whose definition fails to validate
|
|
8373
|
+
* is refused with HTTP 409 ({@link SeclaiAPIStatusError}) and no run is
|
|
8374
|
+
* created; earlier versions return the run, already failed with the
|
|
8375
|
+
* validation error as its cause.
|
|
8376
|
+
*
|
|
8335
8377
|
* @param agentId - Agent identifier.
|
|
8336
8378
|
* @param body - Run request payload (`input`, `metadata`, `priority`, etc.).
|
|
8337
8379
|
* @returns The created agent run.
|
|
@@ -8375,23 +8417,27 @@ declare class Seclai {
|
|
|
8375
8417
|
*/
|
|
8376
8418
|
deleteAgentRun(runId: string): Promise<void>;
|
|
8377
8419
|
/**
|
|
8378
|
-
* Cancel
|
|
8420
|
+
* Cancel an agent run that has not ended: `queued`, `pending`, `processing`,
|
|
8421
|
+
* `waiting_human` or `waiting_scheduled`.
|
|
8379
8422
|
*
|
|
8380
8423
|
* Cancellation is `DELETE` on the run resource — the API exposes no
|
|
8381
8424
|
* `POST .../cancel` route, and no operation that deletes a run. Rejected when
|
|
8382
|
-
* the run has already
|
|
8425
|
+
* the run has already ended (`completed`, `failed` or `cancelled`). From
|
|
8426
|
+
* `apiVersion` `2026-11-08` the cancelled run ends with status `cancelled`;
|
|
8427
|
+
* on earlier versions it ends `failed`.
|
|
8383
8428
|
*
|
|
8384
8429
|
* @param runId - Run identifier.
|
|
8385
|
-
* @returns
|
|
8430
|
+
* @returns The updated run.
|
|
8386
8431
|
*/
|
|
8387
8432
|
cancelAgentRun(runId: string): Promise<AgentRunResponse>;
|
|
8388
8433
|
/**
|
|
8389
8434
|
* Run an agent in streaming mode (SSE) and wait for the final result.
|
|
8390
8435
|
*
|
|
8391
|
-
*
|
|
8392
|
-
* For real-time event access, use
|
|
8393
|
-
*
|
|
8394
|
-
*
|
|
8436
|
+
* Reads the events of {@link runStreamingAgent} and returns the run from the
|
|
8437
|
+
* terminal `done` event. For real-time event access, use
|
|
8438
|
+
* {@link runStreamingAgent} instead. The body takes no `include_reasoning`
|
|
8439
|
+
* or `include_commentary`, and one passed anyway is not sent: this method
|
|
8440
|
+
* returns no `stream_reasoning` or `stream_commentary` events.
|
|
8395
8441
|
*
|
|
8396
8442
|
* A `result` event carries the run's answer in `output` once
|
|
8397
8443
|
* `result_reported_at` is set, and can arrive while later steps still run.
|
|
@@ -8400,27 +8446,40 @@ declare class Seclai {
|
|
|
8400
8446
|
* its `status` is not terminal and the run can still fail, so check
|
|
8401
8447
|
* `result_reported_at`, not `status`.
|
|
8402
8448
|
*
|
|
8403
|
-
*
|
|
8404
|
-
*
|
|
8405
|
-
*
|
|
8449
|
+
* The latest snapshot is the `result` event's run if one arrived, else the
|
|
8450
|
+
* `init` event's run. When the server sends an `error`
|
|
8451
|
+
* event, this throws {@link SeclaiStreamingError} with the server's error
|
|
8452
|
+
* text in its message; when the server sends a `timeout` event, or
|
|
8453
|
+
* `timeoutMs` elapses (unless an HTTP error status arrives as it elapses),
|
|
8454
|
+
* it throws {@link SeclaiStreamingError} too. Each
|
|
8455
|
+
* carries the latest snapshot in `run`. An abort from `signal` rethrows the
|
|
8456
|
+
* abort error. Every way out of this method closes the response body.
|
|
8406
8457
|
*
|
|
8407
8458
|
* By default, a stream that ends before `done` returns the latest snapshot
|
|
8408
|
-
* when its status is not `pending`, so the run returned may
|
|
8409
|
-
* finished: check `status` and `result_reported_at`. A stream that
|
|
8410
|
-
* throws the fetch error
|
|
8411
|
-
*
|
|
8412
|
-
*
|
|
8413
|
-
*
|
|
8459
|
+
* when its status is not `pending`, so the run returned may
|
|
8460
|
+
* not have finished: check `status` and `result_reported_at`. A stream that
|
|
8461
|
+
* breaks throws the fetch error, unless a `done` event, or with
|
|
8462
|
+
* `returnOnResult` a `result` event, was read in full before it
|
|
8463
|
+
* broke. Pass `throwOnIncomplete: true` to throw
|
|
8464
|
+
* {@link SeclaiStreamingError} with the latest snapshot in `run` in both
|
|
8465
|
+
* cases instead; it is recommended, and becomes the default in the next
|
|
8466
|
+
* major version.
|
|
8414
8467
|
*
|
|
8415
8468
|
* @param agentId - Agent identifier.
|
|
8416
|
-
* @param body - Streaming run request payload, without `include_reasoning
|
|
8469
|
+
* @param body - Streaming run request payload, without `include_reasoning`
|
|
8470
|
+
* or `include_commentary`.
|
|
8417
8471
|
* @param opts - Timeout, abort signal and `returnOnResult` options.
|
|
8418
8472
|
* @returns The run from the `done` event; with `returnOnResult`, the
|
|
8419
8473
|
* `result` snapshot; without `throwOnIncomplete`, possibly an unfinished
|
|
8420
8474
|
* snapshot (see above).
|
|
8421
|
-
* @throws {@link SeclaiStreamingError} If `
|
|
8422
|
-
* `
|
|
8423
|
-
*
|
|
8475
|
+
* @throws {@link SeclaiStreamingError} If the server sends an `error` or
|
|
8476
|
+
* `timeout` event, `timeoutMs` elapses (unless an HTTP error status
|
|
8477
|
+
* arrives as it elapses), or, with `throwOnIncomplete`, the
|
|
8478
|
+
* stream ends or breaks, before the run finished. Its `run` holds the
|
|
8479
|
+
* latest snapshot. On `timeoutMs`, when the request or read was cut off,
|
|
8480
|
+
* its `cause` is the error it ended with.
|
|
8481
|
+
* @throws {@link SeclaiAPIStatusError} For an HTTP error status, also one
|
|
8482
|
+
* that arrives as `timeoutMs` elapses.
|
|
8424
8483
|
*
|
|
8425
8484
|
* @example
|
|
8426
8485
|
* ```ts
|
|
@@ -8434,7 +8493,7 @@ declare class Seclai {
|
|
|
8434
8493
|
* }
|
|
8435
8494
|
* ```
|
|
8436
8495
|
*/
|
|
8437
|
-
runStreamingAgentAndWait(agentId: string, body: Omit<AgentRunStreamRequest, "include_reasoning">, opts?: {
|
|
8496
|
+
runStreamingAgentAndWait(agentId: string, body: Omit<AgentRunStreamRequest, "include_reasoning" | "include_commentary">, opts?: {
|
|
8438
8497
|
timeoutMs?: number;
|
|
8439
8498
|
signal?: AbortSignal;
|
|
8440
8499
|
/**
|
|
@@ -8455,12 +8514,30 @@ declare class Seclai {
|
|
|
8455
8514
|
* Run an agent in streaming mode and yield each SSE event as it arrives.
|
|
8456
8515
|
*
|
|
8457
8516
|
* This is an `AsyncGenerator` suitable for real-time UIs that want to render
|
|
8458
|
-
* step progress as it happens.
|
|
8517
|
+
* step progress as it happens. Set `include_reasoning` or
|
|
8518
|
+
* `include_commentary` in `body` to also receive `stream_reasoning` or
|
|
8519
|
+
* `stream_commentary` events.
|
|
8520
|
+
*
|
|
8521
|
+
* The server ends the stream after `done`, after `error` (data
|
|
8522
|
+
* `{ run_id, error }`, the stream failed on the server) or after `timeout`
|
|
8523
|
+
* (data `{ run_id }`); all three are yielded like any other event. When the
|
|
8524
|
+
* server answers with plain JSON instead of SSE, its run is yielded as one
|
|
8525
|
+
* `done` event. Leaving the loop early (`break`, `return` or a throw)
|
|
8526
|
+
* closes the response body.
|
|
8527
|
+
*
|
|
8528
|
+
* From `apiVersion` `2026-11-14`, an agent whose definition fails to validate
|
|
8529
|
+
* is refused with HTTP 409 ({@link SeclaiAPIStatusError}) before any event,
|
|
8530
|
+
* and no run is created.
|
|
8459
8531
|
*
|
|
8460
8532
|
* @param agentId - Agent identifier.
|
|
8461
8533
|
* @param body - Streaming run request payload.
|
|
8462
8534
|
* @param opts - Timeout and abort signal options.
|
|
8463
8535
|
* @yields {@link AgentRunEvent} for each SSE message.
|
|
8536
|
+
* @throws {@link SeclaiStreamingError} If `timeoutMs` elapses, with the
|
|
8537
|
+
* error the request or read ended with as its `cause`. An HTTP error
|
|
8538
|
+
* status that arrives as it elapses is thrown as itself. An event read
|
|
8539
|
+
* in full before the stream broke or timed out is yielded first, unless
|
|
8540
|
+
* `signal` was aborted.
|
|
8464
8541
|
*
|
|
8465
8542
|
* @example
|
|
8466
8543
|
* ```ts
|
|
@@ -8479,6 +8556,12 @@ declare class Seclai {
|
|
|
8479
8556
|
timeoutMs?: number;
|
|
8480
8557
|
signal?: AbortSignal;
|
|
8481
8558
|
}): AsyncGenerator<AgentRunEvent, void, undefined>;
|
|
8559
|
+
/**
|
|
8560
|
+
* The stream behind {@link runStreamingAgent} and
|
|
8561
|
+
* {@link runStreamingAgentAndWait}: one request, reader and parser for both.
|
|
8562
|
+
* `progress` tells the wait helper what the events alone do not.
|
|
8563
|
+
*/
|
|
8564
|
+
private streamRunEvents;
|
|
8482
8565
|
/**
|
|
8483
8566
|
* Run an agent and poll until it reaches a terminal status.
|
|
8484
8567
|
*
|
|
@@ -8488,22 +8571,33 @@ declare class Seclai {
|
|
|
8488
8571
|
* `result_reported_at` is set, `output` holds the answer. Pass
|
|
8489
8572
|
* `returnOnResult: true` to return as soon as a run has it set, the run
|
|
8490
8573
|
* `runAgent()` returns included. With `includeStepOutputs`, when that run
|
|
8491
|
-
* would end the poll
|
|
8492
|
-
* once for its step outputs.
|
|
8574
|
+
* would end the poll, it is fetched again at once for its step outputs.
|
|
8493
8575
|
* Such a run may still be in progress: its `status` is not terminal and the
|
|
8494
8576
|
* run can still fail, so check `result_reported_at`, not `status`.
|
|
8495
8577
|
*
|
|
8496
8578
|
* When `timeoutMs` elapses first, this throws {@link SeclaiStreamingError}
|
|
8497
|
-
* with the latest run it has (the `runAgent()` response if no poll
|
|
8498
|
-
* `run`. If that run has `result_reported_at`
|
|
8499
|
-
*
|
|
8500
|
-
*
|
|
8501
|
-
* `
|
|
8502
|
-
*
|
|
8503
|
-
*
|
|
8504
|
-
*
|
|
8505
|
-
*
|
|
8506
|
-
*
|
|
8579
|
+
* with the latest run it has (the `runAgent()` response if no poll answered)
|
|
8580
|
+
* in `run`. If that run has `result_reported_at` set, its `output` is the
|
|
8581
|
+
* answer. No poll is sent at or after the deadline: a wait between polls that
|
|
8582
|
+
* reaches it ends the call with the timeout, so a `timeoutMs` no greater than
|
|
8583
|
+
* `pollIntervalMs` sends no poll. With a `fetch` that honours `signal`, a
|
|
8584
|
+
* poll still in flight at the deadline is aborted and the timeout is thrown.
|
|
8585
|
+
* Any error but an HTTP error status that a poll ends with once the deadline
|
|
8586
|
+
* has passed is the timeout's `cause`; an HTTP error status a poll gets after
|
|
8587
|
+
* the deadline is thrown as itself, and a caller abort throws `signal.reason`
|
|
8588
|
+
* instead. `timeoutMs` does not cut off the start request (the server may
|
|
8589
|
+
* already have created the run) or the fetch for an ended start run's step
|
|
8590
|
+
* outputs; only `signal` does. A request is not cut off while more than
|
|
8591
|
+
* 2^31-1 ms remain.
|
|
8592
|
+
*
|
|
8593
|
+
* `signal` is passed to every request and to the wait between polls. An
|
|
8594
|
+
* abort throws `signal.reason`, as `signal.throwIfAborted()` does (by
|
|
8595
|
+
* default an `AbortError`), or an `AbortError` for a signal that has no
|
|
8596
|
+
* `reason`: an already-aborted signal starts no run. A run
|
|
8597
|
+
* that has ended the poll is returned even after an abort. When the start
|
|
8598
|
+
* run has ended it and `includeStepOutputs` is set, an abort during the
|
|
8599
|
+
* fetch for its step outputs (with a `fetch` that honours `signal`) returns
|
|
8600
|
+
* the start run without step outputs.
|
|
8507
8601
|
*
|
|
8508
8602
|
* @param agentId - Agent identifier.
|
|
8509
8603
|
* @param body - Run request payload.
|
|
@@ -8512,10 +8606,11 @@ declare class Seclai {
|
|
|
8512
8606
|
* with `result_reported_at` set.
|
|
8513
8607
|
* @throws {@link SeclaiStreamingError} If `timeoutMs` elapses before the run
|
|
8514
8608
|
* finished. Its `run` holds the latest run it has (the `runAgent()`
|
|
8515
|
-
* response if no poll
|
|
8516
|
-
*
|
|
8517
|
-
*
|
|
8518
|
-
*
|
|
8609
|
+
* response if no poll answered), and its `cause` the error a poll ended
|
|
8610
|
+
* with at the deadline, if one did (a caller abort throws `signal.reason`
|
|
8611
|
+
* instead).
|
|
8612
|
+
* @throws `signal.reason` If `signal` is aborted before the run has ended
|
|
8613
|
+
* the poll.
|
|
8519
8614
|
*/
|
|
8520
8615
|
runAgentAndPoll(agentId: string, body: AgentRunRequest, opts?: {
|
|
8521
8616
|
/** Polling interval in ms (default: 2000). */
|
|
@@ -8582,21 +8677,50 @@ declare class Seclai {
|
|
|
8582
8677
|
*/
|
|
8583
8678
|
getAgentAttachmentReferences(agentId: string): Promise<AgentAttachmentRefsApiResponse>;
|
|
8584
8679
|
/**
|
|
8585
|
-
* Download a file
|
|
8680
|
+
* Download a file of an agent run (one a step emitted or one the run started
|
|
8681
|
+
* with), or one byte range of it.
|
|
8586
8682
|
*
|
|
8587
8683
|
* Returns the raw `Response` so you can stream or save the binary data.
|
|
8588
8684
|
*
|
|
8685
|
+
* To fetch part of the file, set a byte range. Offsets are zero-based and
|
|
8686
|
+
* `rangeEnd` is inclusive:
|
|
8687
|
+
*
|
|
8688
|
+
* - `rangeStart` alone sends `Range: bytes=<rangeStart>-`, from that byte to the end.
|
|
8689
|
+
* - `rangeStart` and `rangeEnd` send `Range: bytes=<rangeStart>-<rangeEnd>`.
|
|
8690
|
+
* - `rangeSuffix` alone sends `Range: bytes=-<rangeSuffix>`, the last that many bytes.
|
|
8691
|
+
*
|
|
8692
|
+
* With none of them set, the SDK adds no `Range` header. The server answers a range
|
|
8693
|
+
* with status 206 and a `Content-Range` header, so check `resp.status` before
|
|
8694
|
+
* treating the body as the whole file. A range of an empty file is answered with
|
|
8695
|
+
* 200 and the whole (empty) file. A range that starts at or past the end of a
|
|
8696
|
+
* non-empty file throws {@link SeclaiAPIStatusError} with `statusCode` 416,
|
|
8697
|
+
* and its `headers.get("content-range")` ends in `/<size>`, the file's size in
|
|
8698
|
+
* bytes.
|
|
8699
|
+
*
|
|
8589
8700
|
* @param runId - Run identifier.
|
|
8590
|
-
* @param attachmentId -
|
|
8591
|
-
*
|
|
8701
|
+
* @param attachmentId - The `id` of an entry in the run's or a step's
|
|
8702
|
+
* `attachments`, or the URL-safe-base64-encoded storage key that webhook and
|
|
8703
|
+
* email links carry.
|
|
8592
8704
|
* @param opts - Optional `downloadName` filename hint for the download
|
|
8593
|
-
* disposition
|
|
8705
|
+
* disposition; `rangeStart`, `rangeEnd` and `rangeSuffix`, the byte range
|
|
8706
|
+
* described above; and `signal`, which cancels the request; with a standard `fetch` this
|
|
8594
8707
|
* includes reading the body, so `AbortSignal.timeout(ms)` bounds the whole
|
|
8595
8708
|
* transfer.
|
|
8596
|
-
* @returns Raw response with the attachment bytes
|
|
8709
|
+
* @returns Raw response with the attachment bytes: status 200 with the whole
|
|
8710
|
+
* file, or 206 with the requested range.
|
|
8711
|
+
* @throws {@link SeclaiConfigurationError} Before any request, when the range
|
|
8712
|
+
* options are not one of the three forms above: `rangeEnd` without
|
|
8713
|
+
* `rangeStart`, `rangeSuffix` with either of them, `rangeEnd` less than
|
|
8714
|
+
* `rangeStart`, a negative `rangeStart` or `rangeEnd`, a `rangeSuffix` below
|
|
8715
|
+
* 1, or a value that is not a safe integer (`Number.isSafeInteger`).
|
|
8716
|
+
* @throws {@link SeclaiAPIStatusError} On a non-2xx response, including 416
|
|
8717
|
+
* when the range cannot be satisfied.
|
|
8597
8718
|
*/
|
|
8598
8719
|
downloadAgentRunAttachment(runId: string, attachmentId: string, opts?: {
|
|
8599
8720
|
downloadName?: string;
|
|
8721
|
+
rangeStart?: number;
|
|
8722
|
+
rangeEnd?: number;
|
|
8723
|
+
rangeSuffix?: number;
|
|
8600
8724
|
signal?: AbortSignal;
|
|
8601
8725
|
}): Promise<Response>;
|
|
8602
8726
|
/**
|
|
@@ -8885,11 +9009,12 @@ declare class Seclai {
|
|
|
8885
9009
|
*/
|
|
8886
9010
|
getInboundEmailStatus(): Promise<InboundEmailStatusResponse>;
|
|
8887
9011
|
/**
|
|
8888
|
-
*
|
|
8889
|
-
* once.
|
|
9012
|
+
* Cancel all of the account's QUEUED (over-quota parked) inbound-email runs
|
|
9013
|
+
* at once.
|
|
8890
9014
|
*
|
|
8891
|
-
* A queued run consumed no quota or credits at queue time
|
|
8892
|
-
*
|
|
9015
|
+
* A queued run consumed no quota or credits at queue time. Each ends
|
|
9016
|
+
* `cancelled`, or `failed` with an `apiVersion` before `2026-11-08`.
|
|
9017
|
+
* Requires an account owner/admin.
|
|
8893
9018
|
*
|
|
8894
9019
|
* @returns The count cancelled.
|
|
8895
9020
|
*/
|
|
@@ -9658,7 +9783,7 @@ declare class Seclai {
|
|
|
9658
9783
|
*
|
|
9659
9784
|
* Global routing/pricing (the same for every account); read-only.
|
|
9660
9785
|
*/
|
|
9661
|
-
getGenerationTiers(): Promise<
|
|
9786
|
+
getGenerationTiers(): Promise<GenerationTierListResponse>;
|
|
9662
9787
|
/**
|
|
9663
9788
|
* List the embedding models a source can index with, and their pricing.
|
|
9664
9789
|
*
|
|
@@ -10135,6 +10260,14 @@ declare class SeclaiAPIStatusError extends SeclaiError {
|
|
|
10135
10260
|
readonly url: string;
|
|
10136
10261
|
/** Best-effort response body text (if available). */
|
|
10137
10262
|
readonly responseText: string | undefined;
|
|
10263
|
+
/**
|
|
10264
|
+
* Headers of the error response, such as `Retry-After` on a 503, or
|
|
10265
|
+
* `Content-Range` on a 416 from a ranged `downloadAgentRunAttachment()`, whose
|
|
10266
|
+
* value ends in `/<size>`, the file's size in bytes. Empty when the response
|
|
10267
|
+
* headers are unknown. In a browser, only the headers the server's CORS policy
|
|
10268
|
+
* exposes are present.
|
|
10269
|
+
*/
|
|
10270
|
+
readonly headers: Headers;
|
|
10138
10271
|
constructor(opts: {
|
|
10139
10272
|
/** Human-readable error message. */
|
|
10140
10273
|
message: string;
|
|
@@ -10142,6 +10275,8 @@ declare class SeclaiAPIStatusError extends SeclaiError {
|
|
|
10142
10275
|
method: string;
|
|
10143
10276
|
url: string;
|
|
10144
10277
|
responseText: string | undefined;
|
|
10278
|
+
/** Response headers; defaults to an empty `Headers`. */
|
|
10279
|
+
headers?: Headers;
|
|
10145
10280
|
});
|
|
10146
10281
|
}
|
|
10147
10282
|
/**
|
|
@@ -10158,6 +10293,7 @@ declare class SeclaiAPIValidationError extends SeclaiAPIStatusError {
|
|
|
10158
10293
|
method: string;
|
|
10159
10294
|
url: string;
|
|
10160
10295
|
responseText: string | undefined;
|
|
10296
|
+
headers?: Headers;
|
|
10161
10297
|
validationError: unknown;
|
|
10162
10298
|
});
|
|
10163
10299
|
}
|
|
@@ -10177,4 +10313,4 @@ declare class SeclaiStreamingError extends SeclaiError {
|
|
|
10177
10313
|
constructor(message: string, runId?: string, run?: AgentRunResponse);
|
|
10178
10314
|
}
|
|
10179
10315
|
|
|
10180
|
-
export { type AcceptedAttachmentSlot, type AcceptedAttachmentSlotInput, type AcceptedAttachmentsResponse, type AccessTokenProvider, type AddCommentRequest, type AddConversationTurnRequest, type AddEmailDomainInput, type AddEmailDomainRequest, type AgentAttachmentRefsApiResponse, type AgentCallerApiResponse, type AgentDefinitionImportErrorResponse, type AgentDefinitionResponse, type AgentEmailOptOutListResponse, type AgentEmailOptOutResponse, type AgentEvaluationTier, type AgentExample, type AgentExampleListResponse, type AgentExampleResource, type AgentExportResponse, type AgentImportPreviewRequest, type AgentImportPreviewResponse, type AgentListResponse, type AgentRunAttemptResponse, type AgentRunEvent, type AgentRunFileResponse, type AgentRunListResponse, type AgentRunRequest, type AgentRunResponse, type AgentRunStepResponse, type AgentRunStreamRequest, type AgentRunToolCallResponse, type AgentSummaryResponse, type AgentTraceMatchResponse, type AgentTraceSearchRequest, type AgentTraceSearchResponse, type AgentUsingCloudDriveResponse, type AiAssistantAcceptRequest, type AiAssistantAcceptResponse, type AiAssistantFeedbackRequest, type AiAssistantFeedbackResponse, type AiAssistantGenerateRequest, type AiAssistantGenerateResponse, type AiConversationHistoryResponse, type AiConversationTurnResponse, type AlertCommentResponse, type AlertConfigListResponse, type AlertConfigResponse, type AlertDetailResponse, type AlertListResponse, type AlertResponse, type AlertSubscriberResponse, type ApiVersion, type ApiVersionResponse, type AttachmentRefsSourceApiSummary, type AuthState, type BlockEmailSenderRequest, type BlockedEmailSenderListResponse, type BlockedEmailSenderResponse, type CancelExperimentResponse, type CancelQueuedRunsResponse, type ChangeStatusRequest, type CloudDriveAccessLevelResponse, type CloudDriveProviderResponse, type CloudDriveRejectionResponse, type CloudDriveResponse, type CloudDriveScopeResponse, type CloudDriveUpdateRequest, type CompactionEvaluationModel, type CompactionTestResponse, type CompatibleRunListResponse, type CompatibleRunResponse, type ContentAttachmentDetailResponse, type ContentAttachmentResponse, type ContentAttachmentsListResponse, type ContentDetailResponse, type ContentEmbeddingResponse, type ContentEmbeddingsListResponse, type ContentFileUploadResponse, type CreateAgentRequest, type CreateAlertConfigRequest, type CreateEvaluationCriteriaRequest, type CreateEvaluationResultRequest, type CreateExperimentInput, type CreateExperimentResponse, type CreateExportRequest, type CreateKnowledgeBaseBody, type CreateMemoryBankBody, type CreateSolutionRequest, type CreateSourceBody, type CredentialChainOptions, DEFAULT_SSO_CLIENT_ID, DEFAULT_SSO_DOMAIN, DEFAULT_SSO_REGION, type DateRangeOptions, type DeclarableMetadataKey, type DmarcFailingSourceResponse, type DmarcSummaryResponse, type DnsProviderResponse, type DnsRecordResponse, type EffortOptionsResponse, type EmailDomainResponse, type EmailDomainsListResponse, type EmailSourceRejectionListResponse, type EmailSourceRejectionResponse, type EmailTriggerConfigResponse, type EmbeddingModalityRateResponse, type EmbeddingModelListResponse, type EmbeddingModelResponse, type EmbeddingStorageCreditsResponse, type EstimateExportRequest, type EstimateExportResponse, type EvaluationCriteriaListResponse, type EvaluationCriteriaResponse, type EvaluationResultListResponse, type EvaluationResultResponse, type EvaluationResultSummaryResponse, type EvaluationResultWithCriteriaListResponse, type EvaluationResultWithCriteriaResponse, type EvaluationRunSummaryListResponse, type EvaluationRunSummaryResponse, type EvaluationStatus, type ExamplePrompt, type ExecutedActionResponse, type ExperimentDetailResponse, type ExperimentListResponse, type ExperimentSummaryResponse, type ExportFormat, type ExportListResponse, type ExportResponse, type FetchLike, type FileUploadResponse, type GenerateAgentStepsRequest, type GenerateAgentStepsResponse, type GenerateStepConfigRequest, type GenerateStepConfigResponse, type GovernanceAiAcceptResponse, type GovernanceAiAssistantRequest, type GovernanceAiAssistantResponse, type GovernanceAppliedActionResponse, type GovernanceConversationResponse, type GovernancePolicyRefResponse, type GovernanceProposedPolicyActionResponse, type HTTPValidationError, type ImportFieldErrorModel, type ImportSkipResponse, type InboundEmailRejectionResponse, type InboundEmailStatusResponse, type InlineTextReplaceRequest, type InlineTextUploadRequest, type InsufficientCreditsDetail, type InsufficientCreditsResponse, type JSONValue, type KnowledgeBaseListResponse, type KnowledgeBaseMetadataKeyStatsResponse, type KnowledgeBaseResponse, type LinkResourcesRequest, type ListAgentEvaluationResultsOptions, type ListAgentExamplesOptions, type ListAlertConfigsOptions, type ListAlertsOptions, type ListCompatibleRunsOptions, type ListEvaluationResultsOptions, type ListEvaluationRunsOptions, type ListMemoryBanksOptions, type ListModelAlertsOptions, type ListOptions, type ListOrganizationAlertPreferencesOptions, type ListSolutionsOptions, type ListSourceContentsOptions, type MarkAiSuggestionRequest, type MarkConversationTurnRequest, type MeResponse, type MemoryBankAcceptRequest, type MemoryBankAiAssistantRequest, type MemoryBankAiAssistantResponse, type MemoryBankConfigResponse, type MemoryBankConversationTurnResponse, type MemoryBankLastConversationResponse, type MemoryBankListResponse, type MemoryBankResponse, type MetadataKeyCountResponse, type MetadataKeyDeclaration, type MetadataKeyDeclarationInput, type MetadataKeyWindowResponse, type MetadataKeysResponse, type MetadataOrigin, type MetadataValueCountResponse, type ModalityRateResponse, type ModelAlertListResponse, type ModelAlertResponse, type ModelRecommendationResponse, type ModelRecommendationsOptions, type ModelRecommendationsResponse, type NonManualEvaluationModeStatResponse, type NonManualEvaluationSummaryResponse, type OffsetPageOptions, type OkResponse, type OrganizationAlertPreferenceListResponse, type OrganizationAlertPreferenceResponse, type OrganizationInfoResponse, type PaginatedPage, type PaginationResponse, type PendingProcessingCompletedFailedStatus, type PlaygroundCreateRequest, type PromptModelAutoUpgradeStrategy, type PromptModelResponse, type PromptToolResponse, type ProposedActionResponse, type ProviderGroupResponse, type RemoveEmailDomainResponse, type RerankerModelListResponse, type RerankerModelResponse, type ResumeInboundResponse, SECLAI_API_URL, type SearchResponse, type SearchResultResponse, Seclai, SeclaiAPIStatusError, SeclaiAPIValidationError, SeclaiApiVersion, SeclaiConfigurationError, SeclaiError, type SeclaiOptions, SeclaiStreamingError, type SendTestEmailResponse, type SetAcceptedAttachmentsInput, type SetAcceptedAttachmentsRequest, type SetAutoBlockModeRequest, type SetEmailTriggerConfigRequest, type SetMetadataKeysRequest, type SetSlackTriggerConfigRequest, type SkippedAttachmentReason, type SkippedAttachmentResponse, type SlackReplyVisibility, type SlackTriggerActivation, type SlackTriggerConfigResponse, type SlackTriggerScope, type SolutionAgentResponse, type SolutionConversationResponse, type SolutionKnowledgeBaseResponse, type SolutionListResponse, type SolutionResponse, type SolutionSourceConnectionResponse, type SolutionSummaryResponse, type SortableListOptions, type SourceConnectionResponse, type SourceContentStatusListResponse, type SourceContentStatusResponse, type SourceEmbeddingMigrationResponse, type SourceIndexMode, type SourceListResponse, type SourceResponse, type SpendCapAction, type SpendCapDeleteOrder, type SsoCacheEntry, type SsoProfile, type StandaloneTestCompactionRequest, type StartSourceEmbeddingMigrationRequest, type TestCompactionRequest, type TestDraftEvaluationRequest, type TestDraftEvaluationResponse, type UnlinkResourcesRequest, type UnreadCountResponse, type UpdateAgentDefinitionRequest, type UpdateAgentRequest, type UpdateAlertConfigRequest, type UpdateEvaluationCriteriaRequest, type UpdateKnowledgeBaseBody, type UpdateMemoryBankBody, type UpdateOrganizationAlertPreferenceRequest, type UpdateSolutionRequest, type UpdateSourceBody, type UploadAgentInputApiResponse, type ValidationError, type VariantCategoryResponse, type VariantOptionResponse, deleteSsoCache, isTokenValid, loadSsoProfile, readSsoCache, writeSsoCache };
|
|
10316
|
+
export { type AcceptedAttachmentSlot, type AcceptedAttachmentSlotInput, type AcceptedAttachmentsResponse, type AccessTokenProvider, type AddCommentRequest, type AddConversationTurnRequest, type AddEmailDomainInput, type AddEmailDomainRequest, type AgentAttachmentRefsApiResponse, type AgentCallerApiResponse, type AgentDefinitionImportErrorResponse, type AgentDefinitionResponse, type AgentEmailOptOutListResponse, type AgentEmailOptOutResponse, type AgentEvaluationTier, type AgentExample, type AgentExampleListResponse, type AgentExampleResource, type AgentExportResponse, type AgentImportPreviewRequest, type AgentImportPreviewResponse, type AgentListResponse, type AgentRunAttemptResponse, type AgentRunEvent, type AgentRunFileResponse, type AgentRunListResponse, type AgentRunRequest, type AgentRunResponse, type AgentRunStepResponse, type AgentRunStreamRequest, type AgentRunToolCallResponse, type AgentSummaryResponse, type AgentTraceMatchResponse, type AgentTraceSearchRequest, type AgentTraceSearchResponse, type AgentUsingCloudDriveResponse, type AiAssistantAcceptRequest, type AiAssistantAcceptResponse, type AiAssistantFeedbackRequest, type AiAssistantFeedbackResponse, type AiAssistantGenerateRequest, type AiAssistantGenerateResponse, type AiConversationHistoryResponse, type AiConversationTurnResponse, type AlertCommentResponse, type AlertConfigListResponse, type AlertConfigResponse, type AlertDetailResponse, type AlertListResponse, type AlertResponse, type AlertSubscriberResponse, type ApiVersion, type ApiVersionResponse, type AttachmentRefsSourceApiSummary, type AuthState, type BlockEmailSenderRequest, type BlockedEmailSenderListResponse, type BlockedEmailSenderResponse, type CancelExperimentResponse, type CancelQueuedRunsResponse, type ChangeStatusRequest, type CloudDriveAccessLevelResponse, type CloudDriveProviderResponse, type CloudDriveRejectionResponse, type CloudDriveResponse, type CloudDriveScopeResponse, type CloudDriveUpdateRequest, type CompactionEvaluationModel, type CompactionTestResponse, type CompatibleRunListResponse, type CompatibleRunResponse, type ContentAttachmentDetailResponse, type ContentAttachmentResponse, type ContentAttachmentsListResponse, type ContentDetailResponse, type ContentEmbeddingResponse, type ContentEmbeddingsListResponse, type ContentFileUploadResponse, type CreateAgentRequest, type CreateAlertConfigRequest, type CreateEvaluationCriteriaRequest, type CreateEvaluationResultRequest, type CreateExperimentInput, type CreateExperimentResponse, type CreateExportRequest, type CreateKnowledgeBaseBody, type CreateMemoryBankBody, type CreateSolutionRequest, type CreateSourceBody, type CredentialChainOptions, DEFAULT_SSO_CLIENT_ID, DEFAULT_SSO_DOMAIN, DEFAULT_SSO_REGION, type DateRangeOptions, type DeclarableMetadataKey, type DmarcFailingSourceResponse, type DmarcSummaryResponse, type DnsProviderResponse, type DnsRecordResponse, type EffortOptionsResponse, type EmailDomainResponse, type EmailDomainsListResponse, type EmailSourceRejectionListResponse, type EmailSourceRejectionResponse, type EmailTriggerConfigResponse, type EmbeddingModalityRateResponse, type EmbeddingModelListResponse, type EmbeddingModelResponse, type EmbeddingStorageCreditsResponse, type EstimateExportRequest, type EstimateExportResponse, type EvaluationCriteriaListResponse, type EvaluationCriteriaResponse, type EvaluationResultListResponse, type EvaluationResultResponse, type EvaluationResultSummaryResponse, type EvaluationResultWithCriteriaListResponse, type EvaluationResultWithCriteriaResponse, type EvaluationRunSummaryListResponse, type EvaluationRunSummaryResponse, type EvaluationStatus, type ExamplePrompt, type ExecutedActionResponse, type ExperimentDetailResponse, type ExperimentListResponse, type ExperimentSummaryResponse, type ExportFormat, type ExportListResponse, type ExportResponse, type FetchLike, type FileUploadResponse, type GenerateAgentStepsRequest, type GenerateAgentStepsResponse, type GenerateStepConfigRequest, type GenerateStepConfigResponse, type GenerationTierListResponse, type GenerationTierResponse, 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 KnowledgeBaseMetadataKeyStatsResponse, type KnowledgeBaseResponse, type LinkResourcesRequest, type ListAgentEvaluationResultsOptions, type ListAgentExamplesOptions, type ListAlertConfigsOptions, type ListAlertsOptions, type ListCompatibleRunsOptions, type ListEvaluationResultsOptions, type ListEvaluationRunsOptions, type ListMemoryBanksOptions, type ListModelAlertsOptions, type ListOptions, type ListOrganizationAlertPreferencesOptions, type ListSolutionsOptions, type ListSourceContentsOptions, type MarkAiSuggestionRequest, type MarkConversationTurnRequest, type MeResponse, type MemoryBankAcceptRequest, type MemoryBankAiAssistantRequest, type MemoryBankAiAssistantResponse, type MemoryBankConfigResponse, type MemoryBankConversationTurnResponse, type MemoryBankLastConversationResponse, type MemoryBankListResponse, type MemoryBankResponse, type MetadataKeyCountResponse, type MetadataKeyDeclaration, type MetadataKeyDeclarationInput, type MetadataKeyWindowResponse, type MetadataKeysResponse, type MetadataOrigin, type MetadataValueCountResponse, type ModalityRateResponse, type ModelAlertListResponse, type ModelAlertResponse, type ModelRecommendationResponse, type ModelRecommendationsOptions, type ModelRecommendationsResponse, type NonManualEvaluationModeStatResponse, type NonManualEvaluationSummaryResponse, type OffsetPageOptions, type OkResponse, type OrganizationAlertPreferenceListResponse, type OrganizationAlertPreferenceResponse, type OrganizationInfoResponse, type PaginatedPage, type PaginationResponse, type PendingProcessingCompletedFailedStatus, type PlaygroundCreateRequest, type PromptModelAutoUpgradeStrategy, type PromptModelResponse, type PromptToolResponse, type ProposedActionResponse, type ProviderGroupResponse, type RemoveEmailDomainResponse, type RerankerModelListResponse, type RerankerModelResponse, type ResumeInboundResponse, SECLAI_API_URL, type SearchResponse, type SearchResultResponse, Seclai, SeclaiAPIStatusError, SeclaiAPIValidationError, SeclaiApiVersion, SeclaiConfigurationError, SeclaiError, type SeclaiOptions, SeclaiStreamingError, type SendTestEmailResponse, type SetAcceptedAttachmentsInput, type SetAcceptedAttachmentsRequest, type SetAutoBlockModeRequest, type SetEmailTriggerConfigRequest, type SetMetadataKeysRequest, type SetSlackTriggerConfigRequest, type SkippedAttachmentReason, type SkippedAttachmentResponse, type SlackReplyVisibility, type SlackTriggerActivation, type SlackTriggerConfigResponse, type SlackTriggerScope, type SolutionAgentResponse, type SolutionConversationResponse, type SolutionKnowledgeBaseResponse, type SolutionListResponse, type SolutionResponse, type SolutionSourceConnectionResponse, type SolutionSummaryResponse, type SortableListOptions, type SourceConnectionResponse, type SourceContentStatusListResponse, type SourceContentStatusResponse, type SourceEmbeddingMigrationResponse, type SourceIndexMode, type SourceListResponse, type SourceResponse, type SpendCapAction, type SpendCapDeleteOrder, type SsoCacheEntry, type SsoProfile, type StandaloneTestCompactionRequest, type StartSourceEmbeddingMigrationRequest, type TestCompactionRequest, type TestDraftEvaluationRequest, type TestDraftEvaluationResponse, type UnlinkResourcesRequest, type UnreadCountResponse, type UpdateAgentDefinitionRequest, type UpdateAgentRequest, type UpdateAlertConfigRequest, type UpdateEvaluationCriteriaRequest, type UpdateKnowledgeBaseBody, type UpdateMemoryBankBody, type UpdateOrganizationAlertPreferenceRequest, type UpdateSolutionRequest, type UpdateSourceBody, type UploadAgentInputApiResponse, type ValidationError, type VariantCategoryResponse, type VariantOptionResponse, deleteSsoCache, isTokenValid, loadSsoProfile, readSsoCache, writeSsoCache };
|