@seclai/sdk 1.8.0 → 1.10.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 +40 -0
- package/README.md +194 -14
- package/dist/index.cjs +310 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +523 -76
- package/dist/index.d.ts +523 -76
- package/dist/index.js +310 -47
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -23,10 +23,16 @@ declare const SeclaiApiVersion: {
|
|
|
23
23
|
readonly V2026_10_19: "2026-10-19";
|
|
24
24
|
readonly V2026_10_21: "2026-10-21";
|
|
25
25
|
readonly V2026_10_28: "2026-10-28";
|
|
26
|
+
readonly V2026_11_02: "2026-11-02";
|
|
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";
|
|
26
32
|
/** Baseline applied to an unpinned, header-less caller. */
|
|
27
33
|
readonly Default: "2026-07-01";
|
|
28
34
|
/** Newest version known to this SDK release. May lag the server. */
|
|
29
|
-
readonly Latest: "2026-
|
|
35
|
+
readonly Latest: "2026-11-19";
|
|
30
36
|
};
|
|
31
37
|
/**
|
|
32
38
|
* A dated API version. Known values autocomplete; any `YYYY-MM-DD` string still
|
|
@@ -190,7 +196,7 @@ interface components {
|
|
|
190
196
|
change_id: string;
|
|
191
197
|
/**
|
|
192
198
|
* Definition
|
|
193
|
-
* @description The agent definition containing name, description, tags, and step workflow tree. Step types include prompt_call, retrieval, regex_replace,
|
|
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.
|
|
194
200
|
*/
|
|
195
201
|
definition: {
|
|
196
202
|
[key: string]: unknown;
|
|
@@ -202,7 +208,7 @@ interface components {
|
|
|
202
208
|
schema_version: string;
|
|
203
209
|
/**
|
|
204
210
|
* Warnings
|
|
205
|
-
* @description Validation warnings, if any.
|
|
211
|
+
* @description Validation warnings, if any. Each has `step_path`, `message` and `severity` (`info` or `warning`).
|
|
206
212
|
*/
|
|
207
213
|
warnings?: {
|
|
208
214
|
[key: string]: string;
|
|
@@ -265,7 +271,7 @@ interface components {
|
|
|
265
271
|
AgentExportResponse: {
|
|
266
272
|
/**
|
|
267
273
|
* Agent
|
|
268
|
-
* @description Agent metadata and full definition. Keys: name, description, schema_version, definition, default_evaluation_tier, evaluation_mode, sampling_config, max_retries, retry_on_failure, prompt_model_auto_upgrade_strategy, prompt_model_auto_rollback_enabled, prompt_model_auto_rollback_triggers, max_credits_per_run, max_credits_per_period, max_runs_per_hour, max_runs_per_day, max_runs_total, created_at, updated_at.
|
|
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.
|
|
269
275
|
*/
|
|
270
276
|
agent: {
|
|
271
277
|
[key: string]: unknown;
|
|
@@ -293,7 +299,7 @@ interface components {
|
|
|
293
299
|
}[] | null;
|
|
294
300
|
/**
|
|
295
301
|
* Export Version
|
|
296
|
-
* @description Schema version of the export format (currently "
|
|
302
|
+
* @description Schema version of the export format (currently "7").
|
|
297
303
|
*/
|
|
298
304
|
export_version: string;
|
|
299
305
|
/**
|
|
@@ -401,7 +407,7 @@ interface components {
|
|
|
401
407
|
input_upload_ids?: string[] | null;
|
|
402
408
|
/**
|
|
403
409
|
* Metadata
|
|
404
|
-
* @description Metadata
|
|
410
|
+
* @description Metadata for string substitution in agent tasks. Each key must be one the agent's trigger declares (or sets); a run that sends another custom key, or lacks a required one, is refused with HTTP 400.
|
|
405
411
|
*/
|
|
406
412
|
metadata?: {
|
|
407
413
|
[key: string]: components["schemas"]["JsonValue"];
|
|
@@ -452,7 +458,7 @@ interface components {
|
|
|
452
458
|
flagged_policies?: components["schemas"]["routers__api__agents__GovernancePolicyRefResponse"][];
|
|
453
459
|
/**
|
|
454
460
|
* Governance Input Status
|
|
455
|
-
* @description Result of the governance input evaluation: safe, blocked, skipped, or
|
|
461
|
+
* @description Result of the governance input evaluation: pending, safe, blocked, skipped, timed_out, or error.
|
|
456
462
|
*/
|
|
457
463
|
governance_input_status?: string | null;
|
|
458
464
|
/**
|
|
@@ -462,7 +468,7 @@ interface components {
|
|
|
462
468
|
governance_input_wait_ms?: number | null;
|
|
463
469
|
/**
|
|
464
470
|
* Hitl Wait Ms
|
|
465
|
-
* @description
|
|
471
|
+
* @description Sum over the run's human_in_the_loop steps of each one's wait for a decision, in milliseconds. Waits that overlap are each counted in full, so the sum can exceed the run's duration.
|
|
466
472
|
*/
|
|
467
473
|
hitl_wait_ms?: number | null;
|
|
468
474
|
/**
|
|
@@ -490,6 +496,11 @@ interface components {
|
|
|
490
496
|
* @description Indicates if the run was treated as a priority execution.
|
|
491
497
|
*/
|
|
492
498
|
priority: boolean;
|
|
499
|
+
/**
|
|
500
|
+
* Result Reported At
|
|
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.
|
|
502
|
+
*/
|
|
503
|
+
result_reported_at?: string | null;
|
|
493
504
|
/**
|
|
494
505
|
* Run Id
|
|
495
506
|
* @description Unique identifier for the agent run.
|
|
@@ -514,7 +525,7 @@ interface components {
|
|
|
514
525
|
trace_purged_at?: string | null;
|
|
515
526
|
/**
|
|
516
527
|
* Wait Ms
|
|
517
|
-
* @description
|
|
528
|
+
* @description Sum over the run's standard-mode wait steps of each one's wait, in milliseconds. Waits that overlap are each counted in full. Priority waits block inline and are not counted here.
|
|
518
529
|
*/
|
|
519
530
|
wait_ms?: number | null;
|
|
520
531
|
};
|
|
@@ -590,9 +601,15 @@ interface components {
|
|
|
590
601
|
};
|
|
591
602
|
/** AgentRunStreamRequest */
|
|
592
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;
|
|
593
610
|
/**
|
|
594
611
|
* Include Reasoning
|
|
595
|
-
* @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.
|
|
596
613
|
* @default false
|
|
597
614
|
*/
|
|
598
615
|
include_reasoning: boolean;
|
|
@@ -613,7 +630,7 @@ interface components {
|
|
|
613
630
|
input_upload_ids?: string[] | null;
|
|
614
631
|
/**
|
|
615
632
|
* Metadata
|
|
616
|
-
* @description Metadata
|
|
633
|
+
* @description Metadata for string substitution in agent tasks. Each key must be one the agent's trigger declares (or sets); a run that sends another custom key, or lacks a required one, is refused with HTTP 400.
|
|
617
634
|
*/
|
|
618
635
|
metadata?: {
|
|
619
636
|
[key: string]: components["schemas"]["JsonValue"];
|
|
@@ -736,8 +753,8 @@ interface components {
|
|
|
736
753
|
disabled_reason?: string | null;
|
|
737
754
|
/**
|
|
738
755
|
* Evaluation Mode
|
|
739
|
-
* @description Evaluation mode: output_expectation
|
|
740
|
-
* @default
|
|
756
|
+
* @description Evaluation mode: output_expectation or sample_and_flag.
|
|
757
|
+
* @default sample_and_flag
|
|
741
758
|
*/
|
|
742
759
|
evaluation_mode: string;
|
|
743
760
|
/**
|
|
@@ -762,7 +779,7 @@ interface components {
|
|
|
762
779
|
max_credits_per_run?: number | null;
|
|
763
780
|
/**
|
|
764
781
|
* Max Retries
|
|
765
|
-
* @description
|
|
782
|
+
* @description Deprecated: has no effect.
|
|
766
783
|
* @default 3
|
|
767
784
|
*/
|
|
768
785
|
max_retries: number;
|
|
@@ -794,7 +811,7 @@ interface components {
|
|
|
794
811
|
prompt_model_auto_rollback_enabled: boolean;
|
|
795
812
|
/**
|
|
796
813
|
* Prompt Model Auto Rollback Triggers
|
|
797
|
-
* @description Failure signals that trigger rollback. Defaults to
|
|
814
|
+
* @description Failure signals that trigger rollback. Defaults to governance_block, agent_run_failed when null.
|
|
798
815
|
*/
|
|
799
816
|
prompt_model_auto_rollback_triggers?: string[] | null;
|
|
800
817
|
/**
|
|
@@ -805,7 +822,7 @@ interface components {
|
|
|
805
822
|
prompt_model_auto_upgrade_strategy: string;
|
|
806
823
|
/**
|
|
807
824
|
* Retry On Failure
|
|
808
|
-
* @description
|
|
825
|
+
* @description Deprecated: has no effect.
|
|
809
826
|
* @default true
|
|
810
827
|
*/
|
|
811
828
|
retry_on_failure: boolean;
|
|
@@ -1718,7 +1735,7 @@ interface components {
|
|
|
1718
1735
|
alert_type: string;
|
|
1719
1736
|
/**
|
|
1720
1737
|
* Cooldown Minutes
|
|
1721
|
-
* @description Cooldown period in minutes. Omit to use the
|
|
1738
|
+
* @description Cooldown period in minutes. Omit to use the alert type's default.
|
|
1722
1739
|
*/
|
|
1723
1740
|
cooldown_minutes?: number | null;
|
|
1724
1741
|
/**
|
|
@@ -1755,7 +1772,8 @@ interface components {
|
|
|
1755
1772
|
* CreateEvaluationCriteriaRequest
|
|
1756
1773
|
* @description Request body for creating an evaluation criteria.
|
|
1757
1774
|
*
|
|
1758
|
-
*
|
|
1775
|
+
* step_id names the step carrying run_result, the run's answer, to score. The
|
|
1776
|
+
* evaluation mode and sample frequency are set at the
|
|
1759
1777
|
* agent level, not per-criteria.
|
|
1760
1778
|
*/
|
|
1761
1779
|
CreateEvaluationCriteriaRequest: {
|
|
@@ -1804,11 +1822,13 @@ interface components {
|
|
|
1804
1822
|
flagged: boolean;
|
|
1805
1823
|
/**
|
|
1806
1824
|
* Retry Count
|
|
1825
|
+
* @description Deprecated: has no effect on any count.
|
|
1807
1826
|
* @default 0
|
|
1808
1827
|
*/
|
|
1809
1828
|
retry_count: number;
|
|
1810
1829
|
/**
|
|
1811
1830
|
* Retry Triggered
|
|
1831
|
+
* @description Retired; true returns 400 from Seclai-Version 2026-11-04.
|
|
1812
1832
|
* @default false
|
|
1813
1833
|
*/
|
|
1814
1834
|
retry_triggered: boolean;
|
|
@@ -2073,6 +2093,17 @@ interface components {
|
|
|
2073
2093
|
*/
|
|
2074
2094
|
url_id?: string | null;
|
|
2075
2095
|
};
|
|
2096
|
+
/** DeclarableMetadataKey */
|
|
2097
|
+
DeclarableMetadataKey: {
|
|
2098
|
+
/**
|
|
2099
|
+
* Always Present
|
|
2100
|
+
* @description Whether every run carries this key.
|
|
2101
|
+
*/
|
|
2102
|
+
always_present: boolean;
|
|
2103
|
+
/** Key */
|
|
2104
|
+
key: string;
|
|
2105
|
+
origin: components["schemas"]["MetadataOrigin"];
|
|
2106
|
+
};
|
|
2076
2107
|
/** DmarcFailingSourceResponse */
|
|
2077
2108
|
DmarcFailingSourceResponse: {
|
|
2078
2109
|
/** Failed Count */
|
|
@@ -2547,7 +2578,7 @@ interface components {
|
|
|
2547
2578
|
enabled: boolean;
|
|
2548
2579
|
/**
|
|
2549
2580
|
* Evaluation Mode
|
|
2550
|
-
* @description Runtime behavior mode. output_expectation (manual validation),
|
|
2581
|
+
* @description Runtime behavior mode. output_expectation (manual validation), sample_and_flag (sampled monitoring).
|
|
2551
2582
|
*/
|
|
2552
2583
|
evaluation_mode: string;
|
|
2553
2584
|
/** Evaluation Prompt */
|
|
@@ -2563,7 +2594,10 @@ interface components {
|
|
|
2563
2594
|
* Format: uuid
|
|
2564
2595
|
*/
|
|
2565
2596
|
id: string;
|
|
2566
|
-
/**
|
|
2597
|
+
/**
|
|
2598
|
+
* Max Retries
|
|
2599
|
+
* @description Deprecated: has no effect.
|
|
2600
|
+
*/
|
|
2567
2601
|
max_retries: number;
|
|
2568
2602
|
/**
|
|
2569
2603
|
* Pass Threshold
|
|
@@ -2574,7 +2608,10 @@ interface components {
|
|
|
2574
2608
|
result_summary: {
|
|
2575
2609
|
[key: string]: number;
|
|
2576
2610
|
};
|
|
2577
|
-
/**
|
|
2611
|
+
/**
|
|
2612
|
+
* Retry On Failure
|
|
2613
|
+
* @description Deprecated: has no effect.
|
|
2614
|
+
*/
|
|
2578
2615
|
retry_on_failure: boolean;
|
|
2579
2616
|
/** Step Id */
|
|
2580
2617
|
step_id: string | null;
|
|
@@ -2633,9 +2670,15 @@ interface components {
|
|
|
2633
2670
|
* Format: uuid
|
|
2634
2671
|
*/
|
|
2635
2672
|
id: string;
|
|
2636
|
-
/**
|
|
2673
|
+
/**
|
|
2674
|
+
* Retry Count
|
|
2675
|
+
* @description Deprecated.
|
|
2676
|
+
*/
|
|
2637
2677
|
retry_count: number;
|
|
2638
|
-
/**
|
|
2678
|
+
/**
|
|
2679
|
+
* Retry Triggered
|
|
2680
|
+
* @description Deprecated.
|
|
2681
|
+
*/
|
|
2639
2682
|
retry_triggered: boolean;
|
|
2640
2683
|
/**
|
|
2641
2684
|
* Score
|
|
@@ -2723,9 +2766,15 @@ interface components {
|
|
|
2723
2766
|
* Format: uuid
|
|
2724
2767
|
*/
|
|
2725
2768
|
id: string;
|
|
2726
|
-
/**
|
|
2769
|
+
/**
|
|
2770
|
+
* Retry Count
|
|
2771
|
+
* @description Deprecated.
|
|
2772
|
+
*/
|
|
2727
2773
|
retry_count: number;
|
|
2728
|
-
/**
|
|
2774
|
+
/**
|
|
2775
|
+
* Retry Triggered
|
|
2776
|
+
* @description Deprecated.
|
|
2777
|
+
*/
|
|
2729
2778
|
retry_triggered: boolean;
|
|
2730
2779
|
/**
|
|
2731
2780
|
* Score
|
|
@@ -3023,7 +3072,7 @@ interface components {
|
|
|
3023
3072
|
step_id?: string | null;
|
|
3024
3073
|
/**
|
|
3025
3074
|
* Step Type
|
|
3026
|
-
* @description The step type to generate config for (e.g. 'regex_replace', '
|
|
3075
|
+
* @description The step type to generate config for (e.g. 'regex_replace', 'if_else', 'text', 'prompt_call', 'retrieval').
|
|
3027
3076
|
*/
|
|
3028
3077
|
step_type: string;
|
|
3029
3078
|
/**
|
|
@@ -3078,6 +3127,11 @@ interface components {
|
|
|
3078
3127
|
};
|
|
3079
3128
|
/** GenerationTierResponse */
|
|
3080
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[];
|
|
3081
3135
|
/** Credits Per Unit */
|
|
3082
3136
|
credits_per_unit: number | null;
|
|
3083
3137
|
/** Modality */
|
|
@@ -3368,6 +3422,13 @@ interface components {
|
|
|
3368
3422
|
*/
|
|
3369
3423
|
total: number;
|
|
3370
3424
|
};
|
|
3425
|
+
/** KnowledgeBaseMetadataKeyStats */
|
|
3426
|
+
KnowledgeBaseMetadataKeyStatsResponse: {
|
|
3427
|
+
/** Knowledge Base Id */
|
|
3428
|
+
knowledge_base_id: string;
|
|
3429
|
+
/** Windows */
|
|
3430
|
+
windows: components["schemas"]["MetadataKeyWindowResponse"][];
|
|
3431
|
+
};
|
|
3371
3432
|
/**
|
|
3372
3433
|
* KnowledgeBase
|
|
3373
3434
|
* @description Response model for a single knowledge base.
|
|
@@ -3672,6 +3733,120 @@ interface components {
|
|
|
3672
3733
|
*/
|
|
3673
3734
|
updated_at: string;
|
|
3674
3735
|
};
|
|
3736
|
+
/** MetadataKeyCountResponse */
|
|
3737
|
+
MetadataKeyCountResponse: {
|
|
3738
|
+
/**
|
|
3739
|
+
* Distinct Values
|
|
3740
|
+
* @description How many different values it takes.
|
|
3741
|
+
*/
|
|
3742
|
+
distinct_values: number;
|
|
3743
|
+
/**
|
|
3744
|
+
* Items
|
|
3745
|
+
* @description Items in the window carrying the key.
|
|
3746
|
+
*/
|
|
3747
|
+
items: number;
|
|
3748
|
+
/**
|
|
3749
|
+
* Key
|
|
3750
|
+
* @description The item-metadata key.
|
|
3751
|
+
*/
|
|
3752
|
+
key: string;
|
|
3753
|
+
/**
|
|
3754
|
+
* Top Values
|
|
3755
|
+
* @description Its 5 most frequent values, most frequent first.
|
|
3756
|
+
*/
|
|
3757
|
+
top_values: components["schemas"]["MetadataValueCountResponse"][];
|
|
3758
|
+
};
|
|
3759
|
+
/** MetadataKeyDeclaration */
|
|
3760
|
+
MetadataKeyDeclaration: {
|
|
3761
|
+
/**
|
|
3762
|
+
* Key
|
|
3763
|
+
* @description Steps reference the key as ``{{metadata.<key>}}``.
|
|
3764
|
+
*/
|
|
3765
|
+
key: string;
|
|
3766
|
+
/** @description ``system`` and ``source`` keys are written by the platform; ``custom`` keys are sent by the caller or set on the trigger. */
|
|
3767
|
+
origin: components["schemas"]["MetadataOrigin"];
|
|
3768
|
+
/**
|
|
3769
|
+
* Required
|
|
3770
|
+
* @description A caller-started run without this key is refused. Only a ``custom`` key can be required.
|
|
3771
|
+
* @default false
|
|
3772
|
+
*/
|
|
3773
|
+
required: boolean;
|
|
3774
|
+
};
|
|
3775
|
+
/** MetadataKeyWindowResponse */
|
|
3776
|
+
MetadataKeyWindowResponse: {
|
|
3777
|
+
/**
|
|
3778
|
+
* Keys
|
|
3779
|
+
* @description Keys seen in the window, most frequent first.
|
|
3780
|
+
*/
|
|
3781
|
+
keys: components["schemas"]["MetadataKeyCountResponse"][];
|
|
3782
|
+
/**
|
|
3783
|
+
* Since
|
|
3784
|
+
* @description The window's start; null for all time.
|
|
3785
|
+
*/
|
|
3786
|
+
since: string | null;
|
|
3787
|
+
/**
|
|
3788
|
+
* Total Items
|
|
3789
|
+
* @description Items in the window.
|
|
3790
|
+
*/
|
|
3791
|
+
total_items: number;
|
|
3792
|
+
/**
|
|
3793
|
+
* Window
|
|
3794
|
+
* @enum {string}
|
|
3795
|
+
*/
|
|
3796
|
+
window: "all_time" | "last_30_days" | "last_7_days";
|
|
3797
|
+
};
|
|
3798
|
+
/** MetadataKeysResponse */
|
|
3799
|
+
MetadataKeysResponse: {
|
|
3800
|
+
/**
|
|
3801
|
+
* Accepts Any Source Key
|
|
3802
|
+
* @description True for content triggers, which may declare any item-metadata key.
|
|
3803
|
+
*/
|
|
3804
|
+
accepts_any_source_key: boolean;
|
|
3805
|
+
/**
|
|
3806
|
+
* Agent Id
|
|
3807
|
+
* Format: uuid
|
|
3808
|
+
*/
|
|
3809
|
+
agent_id: string;
|
|
3810
|
+
/**
|
|
3811
|
+
* Declarable Keys
|
|
3812
|
+
* @description The system and source keys this trigger's type can declare.
|
|
3813
|
+
*/
|
|
3814
|
+
declarable_keys: components["schemas"]["DeclarableMetadataKey"][];
|
|
3815
|
+
/**
|
|
3816
|
+
* Metadata Keys
|
|
3817
|
+
* @description The keys the agent's steps may reference. Static trigger metadata and Slack form fields are declared custom keys too, and are not repeated here.
|
|
3818
|
+
*/
|
|
3819
|
+
metadata_keys: components["schemas"]["MetadataKeyDeclaration"][];
|
|
3820
|
+
/**
|
|
3821
|
+
* Trigger Id
|
|
3822
|
+
* Format: uuid
|
|
3823
|
+
*/
|
|
3824
|
+
trigger_id: string;
|
|
3825
|
+
/**
|
|
3826
|
+
* Warnings
|
|
3827
|
+
* @description Set by a PUT that changes the declaration: agents whose `call_agent` mapping no longer fits it. Always empty on GET.
|
|
3828
|
+
*/
|
|
3829
|
+
warnings?: string[];
|
|
3830
|
+
};
|
|
3831
|
+
/**
|
|
3832
|
+
* MetadataOrigin
|
|
3833
|
+
* @description Who writes a run metadata key (docs/architecture/run-metadata.md, Q2).
|
|
3834
|
+
* @enum {string}
|
|
3835
|
+
*/
|
|
3836
|
+
MetadataOrigin: "system" | "source" | "custom";
|
|
3837
|
+
/** MetadataValueCountResponse */
|
|
3838
|
+
MetadataValueCountResponse: {
|
|
3839
|
+
/**
|
|
3840
|
+
* Items
|
|
3841
|
+
* @description Items carrying this value.
|
|
3842
|
+
*/
|
|
3843
|
+
items: number;
|
|
3844
|
+
/**
|
|
3845
|
+
* Value
|
|
3846
|
+
* @description The value as text, cut to 100 characters; an object is shown as {…} and a list as […].
|
|
3847
|
+
*/
|
|
3848
|
+
value: string;
|
|
3849
|
+
};
|
|
3675
3850
|
/**
|
|
3676
3851
|
* ModalityRateResponse
|
|
3677
3852
|
* @description Per-modality rate for an LLM that prices image/audio/video output
|
|
@@ -3743,7 +3918,7 @@ interface components {
|
|
|
3743
3918
|
* PendingProcessingCompletedFailedStatus
|
|
3744
3919
|
* @enum {string}
|
|
3745
3920
|
*/
|
|
3746
|
-
PendingProcessingCompletedFailedStatus: "pending" | "processing" | "completed" | "failed" | "queued" | "waiting_human" | "waiting_scheduled";
|
|
3921
|
+
PendingProcessingCompletedFailedStatus: "pending" | "processing" | "completed" | "failed" | "queued" | "waiting_human" | "waiting_scheduled" | "cancelled";
|
|
3747
3922
|
/**
|
|
3748
3923
|
* PlaygroundCreateRequest
|
|
3749
3924
|
* @description Create a model playground experiment via the public API.
|
|
@@ -4025,6 +4200,14 @@ interface components {
|
|
|
4025
4200
|
/** Mode */
|
|
4026
4201
|
mode: string;
|
|
4027
4202
|
};
|
|
4203
|
+
/** SetMetadataKeysRequest */
|
|
4204
|
+
SetMetadataKeysRequest: {
|
|
4205
|
+
/**
|
|
4206
|
+
* Metadata Keys
|
|
4207
|
+
* @description The whole declaration; replaces the trigger's current one.
|
|
4208
|
+
*/
|
|
4209
|
+
metadata_keys: components["schemas"]["MetadataKeyDeclaration"][];
|
|
4210
|
+
};
|
|
4028
4211
|
/**
|
|
4029
4212
|
* SetSlackTriggerConfigApiRequest
|
|
4030
4213
|
* @description Omitted fields are left unchanged.
|
|
@@ -4032,6 +4215,11 @@ interface components {
|
|
|
4032
4215
|
SetSlackTriggerConfigApiRequest: {
|
|
4033
4216
|
/** @description `everywhere` in scope, or `channel_opt_in`. */
|
|
4034
4217
|
activation?: components["schemas"]["SlackTriggerActivation"] | null;
|
|
4218
|
+
/**
|
|
4219
|
+
* Alias
|
|
4220
|
+
* @description The name people type after `/seclai` to run this agent: lowercase letters, digits and hyphens, starting with a letter, unique in the Slack workspace. Generated from the agent's name when not set or empty.
|
|
4221
|
+
*/
|
|
4222
|
+
alias?: string | null;
|
|
4035
4223
|
/**
|
|
4036
4224
|
* Allow Dms
|
|
4037
4225
|
* @description Runnable in the app's own DMs.
|
|
@@ -4041,18 +4229,13 @@ interface components {
|
|
|
4041
4229
|
channel_ids?: string[] | null;
|
|
4042
4230
|
/**
|
|
4043
4231
|
* Form
|
|
4044
|
-
* @description Form fields `{key, label, type, required, hint, choices, max_length}`. `type`: short_text, long_text, number, single_choice, multi_choice, yes_no, date, slack_user or slack_channel. Each value reaches the run as `{{metadata.<key>}}
|
|
4232
|
+
* @description Form fields `{key, label, type, required, hint, choices, max_length}`. `type`: short_text, long_text, number, single_choice, multi_choice, yes_no, date, slack_user or slack_channel. Each value reaches the run as `{{metadata.<key>}}`, not in the run's input, which is the text after `/seclai <alias>` or the message the shortcut was used on, and its files.
|
|
4045
4233
|
*/
|
|
4046
4234
|
form?: {
|
|
4047
4235
|
[key: string]: unknown;
|
|
4048
4236
|
}[] | null;
|
|
4049
4237
|
/** Include Invoker Email */
|
|
4050
4238
|
include_invoker_email?: boolean | null;
|
|
4051
|
-
/**
|
|
4052
|
-
* Input
|
|
4053
|
-
* @description The trigger's input template. Each `{{metadata.<key>}}` in it must be a form field key or a platform key; it is checked together with `form`.
|
|
4054
|
-
*/
|
|
4055
|
-
input?: string | null;
|
|
4056
4239
|
/** Max Turns */
|
|
4057
4240
|
max_turns?: number | null;
|
|
4058
4241
|
/**
|
|
@@ -4120,6 +4303,11 @@ interface components {
|
|
|
4120
4303
|
* Format: uuid
|
|
4121
4304
|
*/
|
|
4122
4305
|
agent_id: string;
|
|
4306
|
+
/**
|
|
4307
|
+
* Alias
|
|
4308
|
+
* @description The name people type after `/seclai` to run this agent.
|
|
4309
|
+
*/
|
|
4310
|
+
alias?: string | null;
|
|
4123
4311
|
/** Allow Dms */
|
|
4124
4312
|
allow_dms: boolean;
|
|
4125
4313
|
/** Channel Ids */
|
|
@@ -4916,7 +5104,7 @@ interface components {
|
|
|
4916
5104
|
* UpdateEvaluationCriteriaRequest
|
|
4917
5105
|
* @description Request body for updating an evaluation criteria.
|
|
4918
5106
|
*
|
|
4919
|
-
*
|
|
5107
|
+
* The evaluation mode and sample frequency are set at the agent level.
|
|
4920
5108
|
*/
|
|
4921
5109
|
UpdateEvaluationCriteriaRequest: {
|
|
4922
5110
|
/** Description */
|
|
@@ -5369,7 +5557,7 @@ interface components {
|
|
|
5369
5557
|
} | null;
|
|
5370
5558
|
/**
|
|
5371
5559
|
* Agent Template
|
|
5372
|
-
* @description Agent gallery entry to start from: a `key` from GET /agents/examples, or `blank`. The keys retrieval_example and simple_qa remain accepted for their gallery entries.
|
|
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.
|
|
5373
5561
|
*/
|
|
5374
5562
|
agent_template?: string | null;
|
|
5375
5563
|
/**
|
|
@@ -5497,7 +5685,7 @@ interface components {
|
|
|
5497
5685
|
} | null;
|
|
5498
5686
|
/**
|
|
5499
5687
|
* Evaluation Mode
|
|
5500
|
-
* @description Evaluation mode: 'output_expectation'
|
|
5688
|
+
* @description Evaluation mode: 'output_expectation' or 'sample_and_flag'. From Seclai-Version 2026-11-04 'eval_and_retry' returns 400; earlier versions store it as 'sample_and_flag'.
|
|
5501
5689
|
*/
|
|
5502
5690
|
evaluation_mode?: string | null;
|
|
5503
5691
|
/**
|
|
@@ -5512,7 +5700,7 @@ interface components {
|
|
|
5512
5700
|
max_credits_per_run?: number | null;
|
|
5513
5701
|
/**
|
|
5514
5702
|
* Max Retries
|
|
5515
|
-
* @description
|
|
5703
|
+
* @description Deprecated: accepted and has no effect.
|
|
5516
5704
|
*/
|
|
5517
5705
|
max_retries?: number | null;
|
|
5518
5706
|
/**
|
|
@@ -5542,14 +5730,14 @@ interface components {
|
|
|
5542
5730
|
prompt_model_auto_rollback_enabled?: boolean | null;
|
|
5543
5731
|
/**
|
|
5544
5732
|
* Prompt Model Auto Rollback Triggers
|
|
5545
|
-
* @description Failure signals that trigger rollback:
|
|
5733
|
+
* @description Failure signals that trigger rollback: governance_flag, governance_block, agent_run_failed. agent_eval_fail is accepted and never fires; in the list, a run with a failed evaluation is never picked as the rollback target.
|
|
5546
5734
|
*/
|
|
5547
5735
|
prompt_model_auto_rollback_triggers?: string[] | null;
|
|
5548
5736
|
/** @description Auto-upgrade strategy: none, early_adopter, middle_of_road, cautious_adopter. */
|
|
5549
5737
|
prompt_model_auto_upgrade_strategy?: components["schemas"]["PromptModelAutoUpgradeStrategy"] | null;
|
|
5550
5738
|
/**
|
|
5551
5739
|
* Retry On Failure
|
|
5552
|
-
* @description
|
|
5740
|
+
* @description Deprecated: accepted and has no effect.
|
|
5553
5741
|
*/
|
|
5554
5742
|
retry_on_failure?: boolean | null;
|
|
5555
5743
|
/**
|
|
@@ -6728,12 +6916,12 @@ interface components {
|
|
|
6728
6916
|
family_generation?: number | null;
|
|
6729
6917
|
/**
|
|
6730
6918
|
* Generation Credits Per Unit
|
|
6731
|
-
* @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.
|
|
6732
6920
|
*/
|
|
6733
6921
|
generation_credits_per_unit?: number | null;
|
|
6734
6922
|
/**
|
|
6735
6923
|
* Generation Credits Per Variant
|
|
6736
|
-
* @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.
|
|
6737
6925
|
*/
|
|
6738
6926
|
generation_credits_per_variant?: {
|
|
6739
6927
|
[key: string]: number;
|
|
@@ -7078,7 +7266,12 @@ type CreateAgentRequest = Omit<WithServerDefaults<components["schemas"]["routers
|
|
|
7078
7266
|
* default to `false` on the server; the generated schema marks them required
|
|
7079
7267
|
* only because they declare a default.
|
|
7080
7268
|
*/
|
|
7081
|
-
type UpdateAgentRequest = Partial<components["schemas"]["routers__api__agents__UpdateAgentRequest"]
|
|
7269
|
+
type UpdateAgentRequest = Omit<Partial<components["schemas"]["routers__api__agents__UpdateAgentRequest"]>, "max_retries" | "retry_on_failure"> & {
|
|
7270
|
+
/** @deprecated Has no effect: the API accepts it and ignores it. Evaluations never retry a step. */
|
|
7271
|
+
max_retries?: number | null;
|
|
7272
|
+
/** @deprecated Has no effect: the API accepts it and ignores it. Evaluations never retry a step. */
|
|
7273
|
+
retry_on_failure?: boolean | null;
|
|
7274
|
+
};
|
|
7082
7275
|
/**
|
|
7083
7276
|
* Request body for updating an agent definition (steps, model, etc.).
|
|
7084
7277
|
*
|
|
@@ -7144,11 +7337,43 @@ type EmailTriggerConfigResponse = components["schemas"]["EmailTriggerConfigRespo
|
|
|
7144
7337
|
/**
|
|
7145
7338
|
* Request body for configuring a `SLACK_COMMAND` trigger.
|
|
7146
7339
|
*
|
|
7147
|
-
* Every field is optional, and an omitted field is left unchanged.
|
|
7340
|
+
* Every field is optional, and an omitted field is left unchanged. `alias` is
|
|
7341
|
+
* the name people type after `/seclai` to run the agent.
|
|
7148
7342
|
*/
|
|
7149
|
-
type SetSlackTriggerConfigRequest = components["schemas"]["SetSlackTriggerConfigApiRequest"]
|
|
7343
|
+
type SetSlackTriggerConfigRequest = components["schemas"]["SetSlackTriggerConfigApiRequest"] & {
|
|
7344
|
+
/**
|
|
7345
|
+
* @deprecated The API ignores `input`; use `alias` to choose the name people
|
|
7346
|
+
* type after `/seclai`. A run's input is the text after `/seclai <alias>`, or
|
|
7347
|
+
* the message the shortcut was used on.
|
|
7348
|
+
*/
|
|
7349
|
+
input?: string | null;
|
|
7350
|
+
};
|
|
7150
7351
|
/** A `SLACK_COMMAND` trigger's Slack connection, form, channels and conversation settings. */
|
|
7151
7352
|
type SlackTriggerConfigResponse = components["schemas"]["SlackTriggerConfigApiResponse"];
|
|
7353
|
+
/** Who writes a run metadata key: `system`, `source` (both written by the platform) or `custom`. */
|
|
7354
|
+
type MetadataOrigin = components["schemas"]["MetadataOrigin"];
|
|
7355
|
+
/**
|
|
7356
|
+
* One run metadata key a trigger declares, which steps reference as
|
|
7357
|
+
* `{{metadata.<key>}}`.
|
|
7358
|
+
*/
|
|
7359
|
+
type MetadataKeyDeclaration = components["schemas"]["MetadataKeyDeclaration"];
|
|
7360
|
+
/**
|
|
7361
|
+
* A {@link MetadataKeyDeclaration} as sent to {@link Seclai.setMetadataKeys}:
|
|
7362
|
+
* `required` defaults to `false` and can be omitted — the generated type marks
|
|
7363
|
+
* it required only because the schema declares a default.
|
|
7364
|
+
*/
|
|
7365
|
+
type MetadataKeyDeclarationInput = WithServerDefaults<MetadataKeyDeclaration, "required">;
|
|
7366
|
+
/**
|
|
7367
|
+
* Request body for {@link Seclai.setMetadataKeys}: the whole declaration, which
|
|
7368
|
+
* replaces the trigger's current one.
|
|
7369
|
+
*/
|
|
7370
|
+
type SetMetadataKeysRequest = Omit<components["schemas"]["SetMetadataKeysRequest"], "metadata_keys"> & {
|
|
7371
|
+
metadata_keys: MetadataKeyDeclarationInput[];
|
|
7372
|
+
};
|
|
7373
|
+
/** A system or source metadata key a trigger's type can declare. */
|
|
7374
|
+
type DeclarableMetadataKey = components["schemas"]["DeclarableMetadataKey"];
|
|
7375
|
+
/** The run metadata keys a trigger declares, and the ones its type could declare. */
|
|
7376
|
+
type MetadataKeysResponse = components["schemas"]["MetadataKeysResponse"];
|
|
7152
7377
|
/** Where a Slack trigger runs within its scope: `everywhere` or `channel_opt_in`. */
|
|
7153
7378
|
type SlackTriggerActivation = components["schemas"]["SlackTriggerActivation"];
|
|
7154
7379
|
/** Which channels a Slack trigger covers: `selected_channels` or `bot_channels`. */
|
|
@@ -7181,8 +7406,11 @@ type CancelQueuedRunsResponse = components["schemas"]["CancelQueuedRunsResponse"
|
|
|
7181
7406
|
type ResumeInboundResponse = components["schemas"]["ResumeInboundResponse"];
|
|
7182
7407
|
/** Request body for starting an agent run. */
|
|
7183
7408
|
type AgentRunRequest = WithServerDefaults<components["schemas"]["AgentRunRequest"], "priority">;
|
|
7184
|
-
/**
|
|
7185
|
-
|
|
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">;
|
|
7186
7414
|
/** Response body describing an agent run. */
|
|
7187
7415
|
type AgentRunResponse = components["schemas"]["AgentRunResponse"];
|
|
7188
7416
|
/** Paginated list of agent runs. */
|
|
@@ -7313,7 +7541,15 @@ type EvaluationResultResponse = components["schemas"]["EvaluationResultResponse"
|
|
|
7313
7541
|
/** Paginated list of evaluation results. */
|
|
7314
7542
|
type EvaluationResultListResponse = VersionedList<components["schemas"]["EvaluationResultListResponse"], "data">;
|
|
7315
7543
|
/** Request body for creating a manual evaluation result. */
|
|
7316
|
-
type CreateEvaluationResultRequest = WithServerDefaults<components["schemas"]["CreateEvaluationResultRequest"], "flagged"
|
|
7544
|
+
type CreateEvaluationResultRequest = Omit<WithServerDefaults<components["schemas"]["CreateEvaluationResultRequest"], "flagged">, "retry_count" | "retry_triggered"> & {
|
|
7545
|
+
/** @deprecated Has no effect on any count. */
|
|
7546
|
+
retry_count?: number;
|
|
7547
|
+
/**
|
|
7548
|
+
* @deprecated Retired: evaluations never retry a step. `true` returns HTTP 400
|
|
7549
|
+
* from `Seclai-Version` `2026-11-04`.
|
|
7550
|
+
*/
|
|
7551
|
+
retry_triggered?: boolean;
|
|
7552
|
+
};
|
|
7317
7553
|
/** Summary of evaluation results for a criteria. */
|
|
7318
7554
|
type EvaluationResultSummaryResponse = components["schemas"]["EvaluationResultSummaryResponse"];
|
|
7319
7555
|
/** Evaluation result with its associated criteria. */
|
|
@@ -7376,6 +7612,14 @@ type KnowledgeBaseResponse = components["schemas"]["KnowledgeBaseResponseModel"]
|
|
|
7376
7612
|
type CreateKnowledgeBaseBody = components["schemas"]["CreateKnowledgeBaseBody"];
|
|
7377
7613
|
/** Request body for updating a knowledge base. */
|
|
7378
7614
|
type UpdateKnowledgeBaseBody = components["schemas"]["UpdateKnowledgeBaseBody"];
|
|
7615
|
+
/** Item-metadata keys seen in a knowledge base's content, per time window. */
|
|
7616
|
+
type KnowledgeBaseMetadataKeyStatsResponse = components["schemas"]["KnowledgeBaseMetadataKeyStatsResponse"];
|
|
7617
|
+
/** The item-metadata keys seen in one window (`all_time`, `last_30_days` or `last_7_days`). */
|
|
7618
|
+
type MetadataKeyWindowResponse = components["schemas"]["MetadataKeyWindowResponse"];
|
|
7619
|
+
/** One item-metadata key: how many items carry it, how many values it takes, and its top values. */
|
|
7620
|
+
type MetadataKeyCountResponse = components["schemas"]["MetadataKeyCountResponse"];
|
|
7621
|
+
/** One value of an item-metadata key and how many items carry it. */
|
|
7622
|
+
type MetadataValueCountResponse = components["schemas"]["MetadataValueCountResponse"];
|
|
7379
7623
|
/** Paginated list of memory banks. */
|
|
7380
7624
|
type MemoryBankListResponse = VersionedList<components["schemas"]["MemoryBankListResponseModel"], "memory_banks">;
|
|
7381
7625
|
/** Full memory bank configuration and metadata. */
|
|
@@ -7627,7 +7871,12 @@ type InsufficientCreditsResponse = components["schemas"]["InsufficientCreditsRes
|
|
|
7627
7871
|
type InsufficientCreditsDetail = components["schemas"]["InsufficientCreditsDetail"];
|
|
7628
7872
|
/** Source index mode: fast_and_cheap, balanced, slow_and_thorough, or custom. */
|
|
7629
7873
|
type SourceIndexMode = components["schemas"]["SourceIndexMode"];
|
|
7630
|
-
/**
|
|
7874
|
+
/**
|
|
7875
|
+
* Status of an agent run, run attempt or run step: pending, queued,
|
|
7876
|
+
* processing, waiting_human, waiting_scheduled, completed, failed or
|
|
7877
|
+
* cancelled. An agent run cancelled under `apiVersion` `2026-11-08` or later
|
|
7878
|
+
* ends `cancelled`; on earlier versions it ends `failed`.
|
|
7879
|
+
*/
|
|
7631
7880
|
type PendingProcessingCompletedFailedStatus = components["schemas"]["PendingProcessingCompletedFailedStatus"];
|
|
7632
7881
|
/** An SSE event emitted during a streaming agent run. */
|
|
7633
7882
|
interface AgentRunEvent {
|
|
@@ -7652,7 +7901,13 @@ interface SortableListOptions extends ListOptions {
|
|
|
7652
7901
|
}
|
|
7653
7902
|
/** Filters for {@link Seclai.listAgentExamples}. */
|
|
7654
7903
|
interface ListAgentExamplesOptions extends ListOptions {
|
|
7655
|
-
/**
|
|
7904
|
+
/**
|
|
7905
|
+
* What the agent should do. From `apiVersion` `2026-11-09`, entries are
|
|
7906
|
+
* ranked by how well they match it, in words and meaning, best first, and a
|
|
7907
|
+
* query of several words that are all filler ("create an agent") counts as
|
|
7908
|
+
* no query. Before
|
|
7909
|
+
* it, only entries containing every word match.
|
|
7910
|
+
*/
|
|
7656
7911
|
query?: string;
|
|
7657
7912
|
/** Only examples for this use case. */
|
|
7658
7913
|
useCase?: string;
|
|
@@ -7993,6 +8248,10 @@ declare class Seclai {
|
|
|
7993
8248
|
/**
|
|
7994
8249
|
* List the agent gallery: example agents to start from.
|
|
7995
8250
|
*
|
|
8251
|
+
* From `apiVersion` `2026-11-09`, `query` describes what the agent should do
|
|
8252
|
+
* and entries come back ranked by how well they match it, best first. Before
|
|
8253
|
+
* it, only entries containing every word of `query` are returned.
|
|
8254
|
+
*
|
|
7996
8255
|
* Pass an entry's `key` as `agent_template` to {@link createAgent}, with
|
|
7997
8256
|
* `resource_bindings` for the resources it needs.
|
|
7998
8257
|
*
|
|
@@ -8106,6 +8365,11 @@ declare class Seclai {
|
|
|
8106
8365
|
/**
|
|
8107
8366
|
* Start an agent run.
|
|
8108
8367
|
*
|
|
8368
|
+
* From `apiVersion` `2026-11-14`, an agent whose definition fails to validate
|
|
8369
|
+
* is refused with HTTP 409 ({@link SeclaiAPIStatusError}) and no run is
|
|
8370
|
+
* created; earlier versions return the run, already failed with the
|
|
8371
|
+
* validation error as its cause.
|
|
8372
|
+
*
|
|
8109
8373
|
* @param agentId - Agent identifier.
|
|
8110
8374
|
* @param body - Run request payload (`input`, `metadata`, `priority`, etc.).
|
|
8111
8375
|
* @returns The created agent run.
|
|
@@ -8149,14 +8413,17 @@ declare class Seclai {
|
|
|
8149
8413
|
*/
|
|
8150
8414
|
deleteAgentRun(runId: string): Promise<void>;
|
|
8151
8415
|
/**
|
|
8152
|
-
* Cancel
|
|
8416
|
+
* Cancel an agent run that has not ended: `queued`, `pending`, `processing`,
|
|
8417
|
+
* `waiting_human` or `waiting_scheduled`.
|
|
8153
8418
|
*
|
|
8154
8419
|
* Cancellation is `DELETE` on the run resource — the API exposes no
|
|
8155
8420
|
* `POST .../cancel` route, and no operation that deletes a run. Rejected when
|
|
8156
|
-
* the run has already
|
|
8421
|
+
* the run has already ended (`completed`, `failed` or `cancelled`). From
|
|
8422
|
+
* `apiVersion` `2026-11-08` the cancelled run ends with status `cancelled`;
|
|
8423
|
+
* on earlier versions it ends `failed`.
|
|
8157
8424
|
*
|
|
8158
8425
|
* @param runId - Run identifier.
|
|
8159
|
-
* @returns
|
|
8426
|
+
* @returns The updated run.
|
|
8160
8427
|
*/
|
|
8161
8428
|
cancelAgentRun(runId: string): Promise<AgentRunResponse>;
|
|
8162
8429
|
/**
|
|
@@ -8164,24 +8431,80 @@ declare class Seclai {
|
|
|
8164
8431
|
*
|
|
8165
8432
|
* Consumes the entire SSE stream and returns only the terminal `done` payload.
|
|
8166
8433
|
* For real-time event access, use {@link runStreamingAgent} instead. The body
|
|
8167
|
-
* takes no `include_reasoning`, and one passed anyway
|
|
8168
|
-
* returns no `stream_reasoning`
|
|
8434
|
+
* takes no `include_reasoning` or `include_commentary`, and one passed anyway
|
|
8435
|
+
* is not sent: this method returns no `stream_reasoning` or
|
|
8436
|
+
* `stream_commentary` events.
|
|
8437
|
+
*
|
|
8438
|
+
* A `result` event carries the run's answer in `output` once
|
|
8439
|
+
* `result_reported_at` is set, and can arrive while later steps still run.
|
|
8440
|
+
* Pass `returnOnResult: true` to return that `result` snapshot as soon as it
|
|
8441
|
+
* arrives, without waiting for `done`. Such a run may still be in progress:
|
|
8442
|
+
* its `status` is not terminal and the run can still fail, so check
|
|
8443
|
+
* `result_reported_at`, not `status`.
|
|
8444
|
+
*
|
|
8445
|
+
* If `timeoutMs` elapses, this throws {@link SeclaiStreamingError} with the
|
|
8446
|
+
* latest snapshot in `run`: the `result` snapshot if one arrived, else the
|
|
8447
|
+
* `init` snapshot. An abort from `signal` rethrows the abort error.
|
|
8448
|
+
*
|
|
8449
|
+
* By default, a stream that ends before `done` returns the latest snapshot
|
|
8450
|
+
* when its status is not `pending`, so the run returned may not have
|
|
8451
|
+
* finished: check `status` and `result_reported_at`. A stream that breaks
|
|
8452
|
+
* throws the fetch error. Pass `throwOnIncomplete: true` to throw
|
|
8453
|
+
* {@link SeclaiStreamingError} with the snapshot in `run` in both cases
|
|
8454
|
+
* instead; it is recommended, and becomes the default in the next major
|
|
8455
|
+
* version.
|
|
8169
8456
|
*
|
|
8170
8457
|
* @param agentId - Agent identifier.
|
|
8171
|
-
* @param body - Streaming run request payload, without `include_reasoning
|
|
8172
|
-
*
|
|
8173
|
-
* @
|
|
8174
|
-
* @
|
|
8458
|
+
* @param body - Streaming run request payload, without `include_reasoning`
|
|
8459
|
+
* or `include_commentary`.
|
|
8460
|
+
* @param opts - Timeout, abort signal and `returnOnResult` options.
|
|
8461
|
+
* @returns The run from the `done` event; with `returnOnResult`, the
|
|
8462
|
+
* `result` snapshot; without `throwOnIncomplete`, possibly an unfinished
|
|
8463
|
+
* snapshot (see above).
|
|
8464
|
+
* @throws {@link SeclaiStreamingError} If `timeoutMs` elapses, or, with
|
|
8465
|
+
* `throwOnIncomplete`, the stream ends or breaks, before the run finished.
|
|
8466
|
+
* Its `run` holds the latest snapshot.
|
|
8467
|
+
*
|
|
8468
|
+
* @example
|
|
8469
|
+
* ```ts
|
|
8470
|
+
* try {
|
|
8471
|
+
* const run = await client.runStreamingAgentAndWait("agent-id", { input: "Hello" }, { throwOnIncomplete: true });
|
|
8472
|
+
* console.log(run.output);
|
|
8473
|
+
* } catch (err) {
|
|
8474
|
+
* if (err instanceof SeclaiStreamingError && err.run?.result_reported_at) {
|
|
8475
|
+
* console.log("Answer (run not finished):", err.run.output);
|
|
8476
|
+
* } else throw err;
|
|
8477
|
+
* }
|
|
8478
|
+
* ```
|
|
8175
8479
|
*/
|
|
8176
|
-
runStreamingAgentAndWait(agentId: string, body: Omit<AgentRunStreamRequest, "include_reasoning">, opts?: {
|
|
8480
|
+
runStreamingAgentAndWait(agentId: string, body: Omit<AgentRunStreamRequest, "include_reasoning" | "include_commentary">, opts?: {
|
|
8177
8481
|
timeoutMs?: number;
|
|
8178
8482
|
signal?: AbortSignal;
|
|
8483
|
+
/**
|
|
8484
|
+
* Return the `result` snapshot as soon as a `result` event arrives (its
|
|
8485
|
+
* answer is in `output`), without waiting for `done` (default: false).
|
|
8486
|
+
*/
|
|
8487
|
+
returnOnResult?: boolean;
|
|
8488
|
+
/**
|
|
8489
|
+
* Throw {@link SeclaiStreamingError}, with the latest snapshot in `run`,
|
|
8490
|
+
* whenever the stream ends or breaks before `done`, or the server answers
|
|
8491
|
+
* with plain JSON for a run that has not finished, instead of returning
|
|
8492
|
+
* an unfinished run or throwing the fetch error (default: false). This
|
|
8493
|
+
* becomes the default in the next major version.
|
|
8494
|
+
*/
|
|
8495
|
+
throwOnIncomplete?: boolean;
|
|
8179
8496
|
}): Promise<AgentRunResponse>;
|
|
8180
8497
|
/**
|
|
8181
8498
|
* Run an agent in streaming mode and yield each SSE event as it arrives.
|
|
8182
8499
|
*
|
|
8183
8500
|
* This is an `AsyncGenerator` suitable for real-time UIs that want to render
|
|
8184
|
-
* step progress as it happens.
|
|
8501
|
+
* step progress as it happens. Set `include_reasoning` or
|
|
8502
|
+
* `include_commentary` in `body` to also receive `stream_reasoning` or
|
|
8503
|
+
* `stream_commentary` events.
|
|
8504
|
+
*
|
|
8505
|
+
* From `apiVersion` `2026-11-14`, an agent whose definition fails to validate
|
|
8506
|
+
* is refused with HTTP 409 ({@link SeclaiAPIStatusError}) before any event,
|
|
8507
|
+
* and no run is created.
|
|
8185
8508
|
*
|
|
8186
8509
|
* @param agentId - Agent identifier.
|
|
8187
8510
|
* @param body - Streaming run request payload.
|
|
@@ -8191,6 +8514,10 @@ declare class Seclai {
|
|
|
8191
8514
|
* @example
|
|
8192
8515
|
* ```ts
|
|
8193
8516
|
* for await (const event of client.runStreamingAgent("agent-id", { input: "Hello!" })) {
|
|
8517
|
+
* // `result` carries the answer in `output`, possibly before later steps finish.
|
|
8518
|
+
* if (event.event === "result") {
|
|
8519
|
+
* console.log("Answer:", (event.data as AgentRunResponse).output);
|
|
8520
|
+
* }
|
|
8194
8521
|
* if (event.event === "done") {
|
|
8195
8522
|
* console.log("Final:", event.data);
|
|
8196
8523
|
* }
|
|
@@ -8206,11 +8533,38 @@ declare class Seclai {
|
|
|
8206
8533
|
*
|
|
8207
8534
|
* This is useful in environments where SSE streaming is unavailable.
|
|
8208
8535
|
*
|
|
8536
|
+
* A run's answer can be ready before its last step finishes: once
|
|
8537
|
+
* `result_reported_at` is set, `output` holds the answer. Pass
|
|
8538
|
+
* `returnOnResult: true` to return as soon as a run has it set, the run
|
|
8539
|
+
* `runAgent()` returns included. With `includeStepOutputs`, when that run
|
|
8540
|
+
* would end the poll and `signal` is not aborted, it is fetched again at
|
|
8541
|
+
* once for its step outputs.
|
|
8542
|
+
* Such a run may still be in progress: its `status` is not terminal and the
|
|
8543
|
+
* run can still fail, so check `result_reported_at`, not `status`.
|
|
8544
|
+
*
|
|
8545
|
+
* When `timeoutMs` elapses first, this throws {@link SeclaiStreamingError}
|
|
8546
|
+
* with the latest run it has (the `runAgent()` response if no poll ran) in
|
|
8547
|
+
* `run`. If that run has `result_reported_at`
|
|
8548
|
+
* set, its `output` is the answer.
|
|
8549
|
+
*
|
|
8550
|
+
* `signal` is checked at the top of each poll, after the check for a run
|
|
8551
|
+
* that ends the poll. A run that has ended the poll by then, whether the
|
|
8552
|
+
* start run or a polled one, is returned even after an abort; the start run
|
|
8553
|
+
* then comes back without step outputs, even when `includeStepOutputs` is
|
|
8554
|
+
* set. Otherwise an abort throws `SeclaiError("Polling aborted.")`, which is
|
|
8555
|
+
* not an `AbortError` and does not carry `signal.reason`.
|
|
8556
|
+
*
|
|
8209
8557
|
* @param agentId - Agent identifier.
|
|
8210
8558
|
* @param body - Run request payload.
|
|
8211
8559
|
* @param opts - Polling configuration and abort signal.
|
|
8212
|
-
* @returns The terminal agent run
|
|
8213
|
-
*
|
|
8560
|
+
* @returns The terminal agent run, or, with `returnOnResult`, the first run
|
|
8561
|
+
* with `result_reported_at` set.
|
|
8562
|
+
* @throws {@link SeclaiStreamingError} If `timeoutMs` elapses before the run
|
|
8563
|
+
* finished. Its `run` holds the latest run it has (the `runAgent()`
|
|
8564
|
+
* response if no poll ran).
|
|
8565
|
+
* @throws {@link SeclaiError} `"Polling aborted."` If `signal` is aborted and,
|
|
8566
|
+
* at the next poll's check, the run has not ended the poll. It is not an
|
|
8567
|
+
* `AbortError` and does not carry `signal.reason`.
|
|
8214
8568
|
*/
|
|
8215
8569
|
runAgentAndPoll(agentId: string, body: AgentRunRequest, opts?: {
|
|
8216
8570
|
/** Polling interval in ms (default: 2000). */
|
|
@@ -8219,6 +8573,12 @@ declare class Seclai {
|
|
|
8219
8573
|
timeoutMs?: number;
|
|
8220
8574
|
/** Include per-step outputs in the final result. */
|
|
8221
8575
|
includeStepOutputs?: boolean;
|
|
8576
|
+
/**
|
|
8577
|
+
* Return as soon as a run, the `runAgent()` response included, has
|
|
8578
|
+
* `result_reported_at` set (its answer is in `output`), without waiting
|
|
8579
|
+
* for later steps to finish (default: false).
|
|
8580
|
+
*/
|
|
8581
|
+
returnOnResult?: boolean;
|
|
8222
8582
|
signal?: AbortSignal;
|
|
8223
8583
|
}): Promise<AgentRunResponse>;
|
|
8224
8584
|
/**
|
|
@@ -8271,21 +8631,50 @@ declare class Seclai {
|
|
|
8271
8631
|
*/
|
|
8272
8632
|
getAgentAttachmentReferences(agentId: string): Promise<AgentAttachmentRefsApiResponse>;
|
|
8273
8633
|
/**
|
|
8274
|
-
* Download a file
|
|
8634
|
+
* Download a file of an agent run (one a step emitted or one the run started
|
|
8635
|
+
* with), or one byte range of it.
|
|
8275
8636
|
*
|
|
8276
8637
|
* Returns the raw `Response` so you can stream or save the binary data.
|
|
8277
8638
|
*
|
|
8639
|
+
* To fetch part of the file, set a byte range. Offsets are zero-based and
|
|
8640
|
+
* `rangeEnd` is inclusive:
|
|
8641
|
+
*
|
|
8642
|
+
* - `rangeStart` alone sends `Range: bytes=<rangeStart>-`, from that byte to the end.
|
|
8643
|
+
* - `rangeStart` and `rangeEnd` send `Range: bytes=<rangeStart>-<rangeEnd>`.
|
|
8644
|
+
* - `rangeSuffix` alone sends `Range: bytes=-<rangeSuffix>`, the last that many bytes.
|
|
8645
|
+
*
|
|
8646
|
+
* With none of them set, the SDK adds no `Range` header. The server answers a range
|
|
8647
|
+
* with status 206 and a `Content-Range` header, so check `resp.status` before
|
|
8648
|
+
* treating the body as the whole file. A range of an empty file is answered with
|
|
8649
|
+
* 200 and the whole (empty) file. A range that starts at or past the end of a
|
|
8650
|
+
* non-empty file throws {@link SeclaiAPIStatusError} with `statusCode` 416,
|
|
8651
|
+
* and its `headers.get("content-range")` ends in `/<size>`, the file's size in
|
|
8652
|
+
* bytes.
|
|
8653
|
+
*
|
|
8278
8654
|
* @param runId - Run identifier.
|
|
8279
|
-
* @param attachmentId -
|
|
8280
|
-
*
|
|
8655
|
+
* @param attachmentId - The `id` of an entry in the run's or a step's
|
|
8656
|
+
* `attachments`, or the URL-safe-base64-encoded storage key that webhook and
|
|
8657
|
+
* email links carry.
|
|
8281
8658
|
* @param opts - Optional `downloadName` filename hint for the download
|
|
8282
|
-
* disposition
|
|
8659
|
+
* disposition; `rangeStart`, `rangeEnd` and `rangeSuffix`, the byte range
|
|
8660
|
+
* described above; and `signal`, which cancels the request; with a standard `fetch` this
|
|
8283
8661
|
* includes reading the body, so `AbortSignal.timeout(ms)` bounds the whole
|
|
8284
8662
|
* transfer.
|
|
8285
|
-
* @returns Raw response with the attachment bytes
|
|
8663
|
+
* @returns Raw response with the attachment bytes: status 200 with the whole
|
|
8664
|
+
* file, or 206 with the requested range.
|
|
8665
|
+
* @throws {@link SeclaiConfigurationError} Before any request, when the range
|
|
8666
|
+
* options are not one of the three forms above: `rangeEnd` without
|
|
8667
|
+
* `rangeStart`, `rangeSuffix` with either of them, `rangeEnd` less than
|
|
8668
|
+
* `rangeStart`, a negative `rangeStart` or `rangeEnd`, a `rangeSuffix` below
|
|
8669
|
+
* 1, or a value that is not a safe integer (`Number.isSafeInteger`).
|
|
8670
|
+
* @throws {@link SeclaiAPIStatusError} On a non-2xx response, including 416
|
|
8671
|
+
* when the range cannot be satisfied.
|
|
8286
8672
|
*/
|
|
8287
8673
|
downloadAgentRunAttachment(runId: string, attachmentId: string, opts?: {
|
|
8288
8674
|
downloadName?: string;
|
|
8675
|
+
rangeStart?: number;
|
|
8676
|
+
rangeEnd?: number;
|
|
8677
|
+
rangeSuffix?: number;
|
|
8289
8678
|
signal?: AbortSignal;
|
|
8290
8679
|
}): Promise<Response>;
|
|
8291
8680
|
/**
|
|
@@ -8450,8 +8839,9 @@ declare class Seclai {
|
|
|
8450
8839
|
* Configure an agent's `SLACK_COMMAND` trigger, which people run from Slack
|
|
8451
8840
|
* with `/seclai` or the message shortcut.
|
|
8452
8841
|
*
|
|
8453
|
-
* Sets the Slack connection,
|
|
8454
|
-
* settings. Omitted fields
|
|
8842
|
+
* Sets the Slack connection, `alias` (the name people type after `/seclai`),
|
|
8843
|
+
* form, channels, reply visibility and conversation settings. Omitted fields
|
|
8844
|
+
* are left unchanged. `input` is deprecated and ignored by the API.
|
|
8455
8845
|
*
|
|
8456
8846
|
* @param agentId - Agent identifier.
|
|
8457
8847
|
* @param triggerId - Trigger identifier.
|
|
@@ -8473,6 +8863,31 @@ declare class Seclai {
|
|
|
8473
8863
|
* @returns The trigger's accepted attachments.
|
|
8474
8864
|
*/
|
|
8475
8865
|
setAcceptedAttachments(agentId: string, triggerId: string, body: SetAcceptedAttachmentsInput): Promise<AcceptedAttachmentsResponse>;
|
|
8866
|
+
/**
|
|
8867
|
+
* Get the run metadata keys a trigger declares.
|
|
8868
|
+
*
|
|
8869
|
+
* Steps may reference a declared key as `{{metadata.<key>}}`. The response
|
|
8870
|
+
* also lists the system and source keys the trigger's type can declare.
|
|
8871
|
+
*
|
|
8872
|
+
* @param agentId - Agent identifier.
|
|
8873
|
+
* @param triggerId - Trigger identifier, as `getAgent()` returns it.
|
|
8874
|
+
* @returns The trigger's declared and declarable metadata keys.
|
|
8875
|
+
*/
|
|
8876
|
+
getMetadataKeys(agentId: string, triggerId: string): Promise<MetadataKeysResponse>;
|
|
8877
|
+
/**
|
|
8878
|
+
* Replace the run metadata keys a trigger declares.
|
|
8879
|
+
*
|
|
8880
|
+
* The body is the whole declaration and replaces the current one. The API
|
|
8881
|
+
* answers 400 when the agent references a key that no trigger of its branch
|
|
8882
|
+
* declares.
|
|
8883
|
+
*
|
|
8884
|
+
* @param agentId - Agent identifier.
|
|
8885
|
+
* @param triggerId - Trigger identifier, as `getAgent()` returns it.
|
|
8886
|
+
* @param body - The full declaration; each key's `required` defaults to `false`.
|
|
8887
|
+
* @returns The trigger's metadata keys, with `warnings` naming agents whose
|
|
8888
|
+
* `call_agent` mapping no longer fits.
|
|
8889
|
+
*/
|
|
8890
|
+
setMetadataKeys(agentId: string, triggerId: string, body: SetMetadataKeysRequest): Promise<MetadataKeysResponse>;
|
|
8476
8891
|
/**
|
|
8477
8892
|
* List recipients who have opted out of this account's agent emails.
|
|
8478
8893
|
*
|
|
@@ -8548,11 +8963,12 @@ declare class Seclai {
|
|
|
8548
8963
|
*/
|
|
8549
8964
|
getInboundEmailStatus(): Promise<InboundEmailStatusResponse>;
|
|
8550
8965
|
/**
|
|
8551
|
-
*
|
|
8552
|
-
* once.
|
|
8966
|
+
* Cancel all of the account's QUEUED (over-quota parked) inbound-email runs
|
|
8967
|
+
* at once.
|
|
8553
8968
|
*
|
|
8554
|
-
* A queued run consumed no quota or credits at queue time
|
|
8555
|
-
*
|
|
8969
|
+
* A queued run consumed no quota or credits at queue time. Each ends
|
|
8970
|
+
* `cancelled`, or `failed` with an `apiVersion` before `2026-11-08`.
|
|
8971
|
+
* Requires an account owner/admin.
|
|
8556
8972
|
*
|
|
8557
8973
|
* @returns The count cancelled.
|
|
8558
8974
|
*/
|
|
@@ -8586,6 +9002,16 @@ declare class Seclai {
|
|
|
8586
9002
|
* @returns Knowledge base details.
|
|
8587
9003
|
*/
|
|
8588
9004
|
getKnowledgeBase(knowledgeBaseId: string): Promise<KnowledgeBaseResponse>;
|
|
9005
|
+
/**
|
|
9006
|
+
* Get the item-metadata keys seen in a knowledge base's content.
|
|
9007
|
+
*
|
|
9008
|
+
* Reports, for all time and the last 30 and 7 days, each key's item count,
|
|
9009
|
+
* number of distinct values and five most frequent values.
|
|
9010
|
+
*
|
|
9011
|
+
* @param knowledgeBaseId - Knowledge base identifier.
|
|
9012
|
+
* @returns The key statistics per window.
|
|
9013
|
+
*/
|
|
9014
|
+
getKnowledgeBaseMetadataKeyStats(knowledgeBaseId: string): Promise<KnowledgeBaseMetadataKeyStatsResponse>;
|
|
8589
9015
|
/**
|
|
8590
9016
|
* Update a knowledge base.
|
|
8591
9017
|
*
|
|
@@ -9764,6 +10190,7 @@ interface AuthState {
|
|
|
9764
10190
|
* All errors extend {@link SeclaiError}, so a single `catch (err instanceof SeclaiError)`
|
|
9765
10191
|
* handles every SDK error. Narrow to more specific subclasses for finer handling.
|
|
9766
10192
|
*/
|
|
10193
|
+
|
|
9767
10194
|
/** Base error class for the Seclai SDK. */
|
|
9768
10195
|
declare class SeclaiError extends Error {
|
|
9769
10196
|
constructor(message: string);
|
|
@@ -9787,6 +10214,14 @@ declare class SeclaiAPIStatusError extends SeclaiError {
|
|
|
9787
10214
|
readonly url: string;
|
|
9788
10215
|
/** Best-effort response body text (if available). */
|
|
9789
10216
|
readonly responseText: string | undefined;
|
|
10217
|
+
/**
|
|
10218
|
+
* Headers of the error response, such as `Retry-After` on a 503, or
|
|
10219
|
+
* `Content-Range` on a 416 from a ranged `downloadAgentRunAttachment()`, whose
|
|
10220
|
+
* value ends in `/<size>`, the file's size in bytes. Empty when the response
|
|
10221
|
+
* headers are unknown. In a browser, only the headers the server's CORS policy
|
|
10222
|
+
* exposes are present.
|
|
10223
|
+
*/
|
|
10224
|
+
readonly headers: Headers;
|
|
9790
10225
|
constructor(opts: {
|
|
9791
10226
|
/** Human-readable error message. */
|
|
9792
10227
|
message: string;
|
|
@@ -9794,6 +10229,8 @@ declare class SeclaiAPIStatusError extends SeclaiError {
|
|
|
9794
10229
|
method: string;
|
|
9795
10230
|
url: string;
|
|
9796
10231
|
responseText: string | undefined;
|
|
10232
|
+
/** Response headers; defaults to an empty `Headers`. */
|
|
10233
|
+
headers?: Headers;
|
|
9797
10234
|
});
|
|
9798
10235
|
}
|
|
9799
10236
|
/**
|
|
@@ -9810,14 +10247,24 @@ declare class SeclaiAPIValidationError extends SeclaiAPIStatusError {
|
|
|
9810
10247
|
method: string;
|
|
9811
10248
|
url: string;
|
|
9812
10249
|
responseText: string | undefined;
|
|
10250
|
+
headers?: Headers;
|
|
9813
10251
|
validationError: unknown;
|
|
9814
10252
|
});
|
|
9815
10253
|
}
|
|
9816
|
-
/**
|
|
10254
|
+
/**
|
|
10255
|
+
* Thrown when a streaming operation fails (e.g. stream ends unexpectedly), or
|
|
10256
|
+
* when a run helper stops waiting before the run finished.
|
|
10257
|
+
*/
|
|
9817
10258
|
declare class SeclaiStreamingError extends SeclaiError {
|
|
9818
10259
|
/** The run ID associated with the failed stream, when available. */
|
|
9819
10260
|
readonly runId: string | undefined;
|
|
9820
|
-
|
|
10261
|
+
/**
|
|
10262
|
+
* Set by `runStreamingAgentAndWait()` and `runAgentAndPoll()` to the latest
|
|
10263
|
+
* run they had, if any (when it has `result_reported_at` set, its `output`
|
|
10264
|
+
* is the answer). The run may still be in progress, and can still fail.
|
|
10265
|
+
*/
|
|
10266
|
+
readonly run: AgentRunResponse | undefined;
|
|
10267
|
+
constructor(message: string, runId?: string, run?: AgentRunResponse);
|
|
9821
10268
|
}
|
|
9822
10269
|
|
|
9823
|
-
export { type AcceptedAttachmentSlot, type AcceptedAttachmentSlotInput, type AcceptedAttachmentsResponse, type AccessTokenProvider, type AddCommentRequest, type AddConversationTurnRequest, type AddEmailDomainInput, type AddEmailDomainRequest, type AgentAttachmentRefsApiResponse, type AgentCallerApiResponse, type AgentDefinitionImportErrorResponse, type AgentDefinitionResponse, type AgentEmailOptOutListResponse, type AgentEmailOptOutResponse, type AgentEvaluationTier, type AgentExample, type AgentExampleListResponse, type AgentExampleResource, type AgentExportResponse, type AgentImportPreviewRequest, type AgentImportPreviewResponse, type AgentListResponse, type AgentRunAttemptResponse, type AgentRunEvent, type AgentRunFileResponse, type AgentRunListResponse, type AgentRunRequest, type AgentRunResponse, type AgentRunStepResponse, type AgentRunStreamRequest, type AgentRunToolCallResponse, type AgentSummaryResponse, type AgentTraceMatchResponse, type AgentTraceSearchRequest, type AgentTraceSearchResponse, type AgentUsingCloudDriveResponse, type AiAssistantAcceptRequest, type AiAssistantAcceptResponse, type AiAssistantFeedbackRequest, type AiAssistantFeedbackResponse, type AiAssistantGenerateRequest, type AiAssistantGenerateResponse, type AiConversationHistoryResponse, type AiConversationTurnResponse, type AlertCommentResponse, type AlertConfigListResponse, type AlertConfigResponse, type AlertDetailResponse, type AlertListResponse, type AlertResponse, type AlertSubscriberResponse, type ApiVersion, type ApiVersionResponse, type AttachmentRefsSourceApiSummary, type AuthState, type BlockEmailSenderRequest, type BlockedEmailSenderListResponse, type BlockedEmailSenderResponse, type CancelExperimentResponse, type CancelQueuedRunsResponse, type ChangeStatusRequest, type CloudDriveAccessLevelResponse, type CloudDriveProviderResponse, type CloudDriveRejectionResponse, type CloudDriveResponse, type CloudDriveScopeResponse, type CloudDriveUpdateRequest, type CompactionEvaluationModel, type CompactionTestResponse, type CompatibleRunListResponse, type CompatibleRunResponse, type ContentAttachmentDetailResponse, type ContentAttachmentResponse, type ContentAttachmentsListResponse, type ContentDetailResponse, type ContentEmbeddingResponse, type ContentEmbeddingsListResponse, type ContentFileUploadResponse, type CreateAgentRequest, type CreateAlertConfigRequest, type CreateEvaluationCriteriaRequest, type CreateEvaluationResultRequest, type CreateExperimentInput, type CreateExperimentResponse, type CreateExportRequest, type CreateKnowledgeBaseBody, type CreateMemoryBankBody, type CreateSolutionRequest, type CreateSourceBody, type CredentialChainOptions, DEFAULT_SSO_CLIENT_ID, DEFAULT_SSO_DOMAIN, DEFAULT_SSO_REGION, type DateRangeOptions, type DmarcFailingSourceResponse, type DmarcSummaryResponse, type DnsProviderResponse, type DnsRecordResponse, type EffortOptionsResponse, type EmailDomainResponse, type EmailDomainsListResponse, type EmailSourceRejectionListResponse, type EmailSourceRejectionResponse, type EmailTriggerConfigResponse, type EmbeddingModalityRateResponse, type EmbeddingModelListResponse, type EmbeddingModelResponse, type EmbeddingStorageCreditsResponse, type EstimateExportRequest, type EstimateExportResponse, type EvaluationCriteriaListResponse, type EvaluationCriteriaResponse, type EvaluationResultListResponse, type EvaluationResultResponse, type EvaluationResultSummaryResponse, type EvaluationResultWithCriteriaListResponse, type EvaluationResultWithCriteriaResponse, type EvaluationRunSummaryListResponse, type EvaluationRunSummaryResponse, type EvaluationStatus, type ExamplePrompt, type ExecutedActionResponse, type ExperimentDetailResponse, type ExperimentListResponse, type ExperimentSummaryResponse, type ExportFormat, type ExportListResponse, type ExportResponse, type FetchLike, type FileUploadResponse, type GenerateAgentStepsRequest, type GenerateAgentStepsResponse, type GenerateStepConfigRequest, type GenerateStepConfigResponse, type GovernanceAiAcceptResponse, type GovernanceAiAssistantRequest, type GovernanceAiAssistantResponse, type GovernanceAppliedActionResponse, type GovernanceConversationResponse, type GovernancePolicyRefResponse, type GovernanceProposedPolicyActionResponse, type HTTPValidationError, type ImportFieldErrorModel, type ImportSkipResponse, type InboundEmailRejectionResponse, type InboundEmailStatusResponse, type InlineTextReplaceRequest, type InlineTextUploadRequest, type InsufficientCreditsDetail, type InsufficientCreditsResponse, type JSONValue, type KnowledgeBaseListResponse, type KnowledgeBaseResponse, type LinkResourcesRequest, type ListAgentEvaluationResultsOptions, type ListAgentExamplesOptions, type ListAlertConfigsOptions, type ListAlertsOptions, type ListCompatibleRunsOptions, type ListEvaluationResultsOptions, type ListEvaluationRunsOptions, type ListMemoryBanksOptions, type ListModelAlertsOptions, type ListOptions, type ListOrganizationAlertPreferencesOptions, type ListSolutionsOptions, type ListSourceContentsOptions, type MarkAiSuggestionRequest, type MarkConversationTurnRequest, type MeResponse, type MemoryBankAcceptRequest, type MemoryBankAiAssistantRequest, type MemoryBankAiAssistantResponse, type MemoryBankConfigResponse, type MemoryBankConversationTurnResponse, type MemoryBankLastConversationResponse, type MemoryBankListResponse, type MemoryBankResponse, type ModalityRateResponse, type ModelAlertListResponse, type ModelAlertResponse, type ModelRecommendationResponse, type ModelRecommendationsOptions, type ModelRecommendationsResponse, type NonManualEvaluationModeStatResponse, type NonManualEvaluationSummaryResponse, type OffsetPageOptions, type OkResponse, type OrganizationAlertPreferenceListResponse, type OrganizationAlertPreferenceResponse, type OrganizationInfoResponse, type PaginatedPage, type PaginationResponse, type PendingProcessingCompletedFailedStatus, type PlaygroundCreateRequest, type PromptModelAutoUpgradeStrategy, type PromptModelResponse, type PromptToolResponse, type ProposedActionResponse, type ProviderGroupResponse, type RemoveEmailDomainResponse, type RerankerModelListResponse, type RerankerModelResponse, type ResumeInboundResponse, SECLAI_API_URL, type SearchResponse, type SearchResultResponse, Seclai, SeclaiAPIStatusError, SeclaiAPIValidationError, SeclaiApiVersion, SeclaiConfigurationError, SeclaiError, type SeclaiOptions, SeclaiStreamingError, type SendTestEmailResponse, type SetAcceptedAttachmentsInput, type SetAcceptedAttachmentsRequest, type SetAutoBlockModeRequest, type SetEmailTriggerConfigRequest, type SetSlackTriggerConfigRequest, type SkippedAttachmentReason, type SkippedAttachmentResponse, type SlackReplyVisibility, type SlackTriggerActivation, type SlackTriggerConfigResponse, type SlackTriggerScope, type SolutionAgentResponse, type SolutionConversationResponse, type SolutionKnowledgeBaseResponse, type SolutionListResponse, type SolutionResponse, type SolutionSourceConnectionResponse, type SolutionSummaryResponse, type SortableListOptions, type SourceConnectionResponse, type SourceContentStatusListResponse, type SourceContentStatusResponse, type SourceEmbeddingMigrationResponse, type SourceIndexMode, type SourceListResponse, type SourceResponse, type SpendCapAction, type SpendCapDeleteOrder, type SsoCacheEntry, type SsoProfile, type StandaloneTestCompactionRequest, type StartSourceEmbeddingMigrationRequest, type TestCompactionRequest, type TestDraftEvaluationRequest, type TestDraftEvaluationResponse, type UnlinkResourcesRequest, type UnreadCountResponse, type UpdateAgentDefinitionRequest, type UpdateAgentRequest, type UpdateAlertConfigRequest, type UpdateEvaluationCriteriaRequest, type UpdateKnowledgeBaseBody, type UpdateMemoryBankBody, type UpdateOrganizationAlertPreferenceRequest, type UpdateSolutionRequest, type UpdateSourceBody, type UploadAgentInputApiResponse, type ValidationError, type VariantCategoryResponse, type VariantOptionResponse, deleteSsoCache, isTokenValid, loadSsoProfile, readSsoCache, writeSsoCache };
|
|
10270
|
+
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 };
|