@seclai/sdk 1.7.0 → 1.9.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 +48 -0
- package/README.md +204 -19
- package/dist/index.cjs +322 -56
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +988 -112
- package/dist/index.d.ts +988 -112
- package/dist/index.js +322 -56
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -22,10 +22,13 @@ declare const SeclaiApiVersion: {
|
|
|
22
22
|
readonly V2026_10_18: "2026-10-18";
|
|
23
23
|
readonly V2026_10_19: "2026-10-19";
|
|
24
24
|
readonly V2026_10_21: "2026-10-21";
|
|
25
|
+
readonly V2026_10_28: "2026-10-28";
|
|
26
|
+
readonly V2026_11_02: "2026-11-02";
|
|
27
|
+
readonly V2026_11_04: "2026-11-04";
|
|
25
28
|
/** Baseline applied to an unpinned, header-less caller. */
|
|
26
29
|
readonly Default: "2026-07-01";
|
|
27
30
|
/** Newest version known to this SDK release. May lag the server. */
|
|
28
|
-
readonly Latest: "2026-
|
|
31
|
+
readonly Latest: "2026-11-04";
|
|
29
32
|
};
|
|
30
33
|
/**
|
|
31
34
|
* A dated API version. Known values autocomplete; any `YYYY-MM-DD` string still
|
|
@@ -189,7 +192,7 @@ interface components {
|
|
|
189
192
|
change_id: string;
|
|
190
193
|
/**
|
|
191
194
|
* Definition
|
|
192
|
-
* @description The agent definition containing name, description, tags, and step workflow tree. Step types include prompt_call, retrieval, regex_replace,
|
|
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, streaming_result, send_email, webhook_call, call_agent, write_metadata, write_content_attachment, load_content_attachment, load_content, display_result, merge, for_each, if_else, switch, and others.
|
|
193
196
|
*/
|
|
194
197
|
definition: {
|
|
195
198
|
[key: string]: unknown;
|
|
@@ -251,6 +254,12 @@ interface components {
|
|
|
251
254
|
* @enum {string}
|
|
252
255
|
*/
|
|
253
256
|
AgentEvaluationTier: "fast" | "balanced" | "thorough";
|
|
257
|
+
/** AgentExampleListResponse */
|
|
258
|
+
AgentExampleListResponse: {
|
|
259
|
+
/** Data */
|
|
260
|
+
data: unknown[];
|
|
261
|
+
pagination: components["schemas"]["PaginationResponse"];
|
|
262
|
+
};
|
|
254
263
|
/**
|
|
255
264
|
* AgentExportResponse
|
|
256
265
|
* @description Portable JSON snapshot of an agent definition.
|
|
@@ -258,7 +267,7 @@ interface components {
|
|
|
258
267
|
AgentExportResponse: {
|
|
259
268
|
/**
|
|
260
269
|
* Agent
|
|
261
|
-
* @description Agent metadata and full definition. Keys: name, description, schema_version, definition, default_evaluation_tier, evaluation_mode, sampling_config, max_retries, retry_on_failure, prompt_model_auto_upgrade_strategy, prompt_model_auto_rollback_enabled, prompt_model_auto_rollback_triggers, created_at, updated_at.
|
|
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.
|
|
262
271
|
*/
|
|
263
272
|
agent: {
|
|
264
273
|
[key: string]: unknown;
|
|
@@ -286,7 +295,7 @@ interface components {
|
|
|
286
295
|
}[] | null;
|
|
287
296
|
/**
|
|
288
297
|
* Export Version
|
|
289
|
-
* @description Schema version of the export format (currently "
|
|
298
|
+
* @description Schema version of the export format (currently "6").
|
|
290
299
|
*/
|
|
291
300
|
export_version: string;
|
|
292
301
|
/**
|
|
@@ -394,7 +403,7 @@ interface components {
|
|
|
394
403
|
input_upload_ids?: string[] | null;
|
|
395
404
|
/**
|
|
396
405
|
* Metadata
|
|
397
|
-
* @description Metadata
|
|
406
|
+
* @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.
|
|
398
407
|
*/
|
|
399
408
|
metadata?: {
|
|
400
409
|
[key: string]: components["schemas"]["JsonValue"];
|
|
@@ -445,7 +454,7 @@ interface components {
|
|
|
445
454
|
flagged_policies?: components["schemas"]["routers__api__agents__GovernancePolicyRefResponse"][];
|
|
446
455
|
/**
|
|
447
456
|
* Governance Input Status
|
|
448
|
-
* @description Result of the governance input evaluation: safe, blocked, skipped, or
|
|
457
|
+
* @description Result of the governance input evaluation: pending, safe, blocked, skipped, timed_out, or error.
|
|
449
458
|
*/
|
|
450
459
|
governance_input_status?: string | null;
|
|
451
460
|
/**
|
|
@@ -455,7 +464,7 @@ interface components {
|
|
|
455
464
|
governance_input_wait_ms?: number | null;
|
|
456
465
|
/**
|
|
457
466
|
* Hitl Wait Ms
|
|
458
|
-
* @description
|
|
467
|
+
* @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.
|
|
459
468
|
*/
|
|
460
469
|
hitl_wait_ms?: number | null;
|
|
461
470
|
/**
|
|
@@ -483,6 +492,11 @@ interface components {
|
|
|
483
492
|
* @description Indicates if the run was treated as a priority execution.
|
|
484
493
|
*/
|
|
485
494
|
priority: boolean;
|
|
495
|
+
/**
|
|
496
|
+
* Result Reported At
|
|
497
|
+
* @description When the run reported success: for an agent whose `report_success` is `on_result`, once its result step published, or once its run started if it has no result step; 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
|
+
*/
|
|
499
|
+
result_reported_at?: string | null;
|
|
486
500
|
/**
|
|
487
501
|
* Run Id
|
|
488
502
|
* @description Unique identifier for the agent run.
|
|
@@ -507,7 +521,7 @@ interface components {
|
|
|
507
521
|
trace_purged_at?: string | null;
|
|
508
522
|
/**
|
|
509
523
|
* Wait Ms
|
|
510
|
-
* @description
|
|
524
|
+
* @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.
|
|
511
525
|
*/
|
|
512
526
|
wait_ms?: number | null;
|
|
513
527
|
};
|
|
@@ -528,6 +542,11 @@ interface components {
|
|
|
528
542
|
* @description Credits consumed by this step across every attempt it made. Some charges made outside any step, such as governance screening of the run's input, count toward the run's total but no step's. The timestamps above and the tool calls below describe the latest attempt only.
|
|
529
543
|
*/
|
|
530
544
|
credits_used: number;
|
|
545
|
+
/**
|
|
546
|
+
* Decision
|
|
547
|
+
* @description The arm an `if_else` or `switch` step took: `then` or `else`, or the case name or `else`. Null for other step types, until the step has decided, and when a `switch` took no arm.
|
|
548
|
+
*/
|
|
549
|
+
decision?: string | null;
|
|
531
550
|
/**
|
|
532
551
|
* Duration Seconds
|
|
533
552
|
* @description Duration of the step attempt in seconds.
|
|
@@ -545,7 +564,7 @@ interface components {
|
|
|
545
564
|
input: string | null;
|
|
546
565
|
/**
|
|
547
566
|
* Output
|
|
548
|
-
* @description Output text produced by the step, if any; its files are in `attachments`. Below `Seclai-Version: 2026-09-30`, the manifest JSON when the step output files and is not a `for_each`.
|
|
567
|
+
* @description Output text produced by the step, if any; its files are in `attachments`. Below `Seclai-Version: 2026-09-30`, the manifest JSON when the step output files and is not a `for_each`. For an `if_else` or `switch`, the result of the arm it took (its input when that arm is empty or it took none); below `Seclai-Version: 2026-10-28`, the `{"branch": ...}` marker naming that arm, with no `attachments`.
|
|
549
568
|
*/
|
|
550
569
|
output: string | null;
|
|
551
570
|
/**
|
|
@@ -601,7 +620,7 @@ interface components {
|
|
|
601
620
|
input_upload_ids?: string[] | null;
|
|
602
621
|
/**
|
|
603
622
|
* Metadata
|
|
604
|
-
* @description Metadata
|
|
623
|
+
* @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.
|
|
605
624
|
*/
|
|
606
625
|
metadata?: {
|
|
607
626
|
[key: string]: components["schemas"]["JsonValue"];
|
|
@@ -689,6 +708,13 @@ interface components {
|
|
|
689
708
|
* @description ISO 8601 creation timestamp.
|
|
690
709
|
*/
|
|
691
710
|
created_at: string;
|
|
711
|
+
/**
|
|
712
|
+
* Created Resources
|
|
713
|
+
* @description On a create from an `agent_template`: {slot: resource_id} for each resource `create_missing_resources` created.
|
|
714
|
+
*/
|
|
715
|
+
created_resources?: {
|
|
716
|
+
[key: string]: string;
|
|
717
|
+
} | null;
|
|
692
718
|
/**
|
|
693
719
|
* Default Evaluation Tier
|
|
694
720
|
* @description Default evaluation tier: fast, balanced, or thorough.
|
|
@@ -717,8 +743,8 @@ interface components {
|
|
|
717
743
|
disabled_reason?: string | null;
|
|
718
744
|
/**
|
|
719
745
|
* Evaluation Mode
|
|
720
|
-
* @description Evaluation mode: output_expectation
|
|
721
|
-
* @default
|
|
746
|
+
* @description Evaluation mode: output_expectation or sample_and_flag.
|
|
747
|
+
* @default sample_and_flag
|
|
722
748
|
*/
|
|
723
749
|
evaluation_mode: string;
|
|
724
750
|
/**
|
|
@@ -731,12 +757,37 @@ interface components {
|
|
|
731
757
|
* @description One entry per item dropped or substituted during import. Present only on endpoints that accept agent_definition; null on non-import calls; [] when the import had no skips.
|
|
732
758
|
*/
|
|
733
759
|
import_warnings?: components["schemas"]["ImportSkipResponse"][] | null;
|
|
760
|
+
/**
|
|
761
|
+
* Max Credits Per Period
|
|
762
|
+
* @description Credit limit per billing period; null when none.
|
|
763
|
+
*/
|
|
764
|
+
max_credits_per_period?: number | null;
|
|
765
|
+
/**
|
|
766
|
+
* Max Credits Per Run
|
|
767
|
+
* @description Credit limit per run; null when none.
|
|
768
|
+
*/
|
|
769
|
+
max_credits_per_run?: number | null;
|
|
734
770
|
/**
|
|
735
771
|
* Max Retries
|
|
736
|
-
* @description
|
|
772
|
+
* @description Deprecated: has no effect.
|
|
737
773
|
* @default 3
|
|
738
774
|
*/
|
|
739
775
|
max_retries: number;
|
|
776
|
+
/**
|
|
777
|
+
* Max Runs Per Day
|
|
778
|
+
* @description Runs per day limit; null when none.
|
|
779
|
+
*/
|
|
780
|
+
max_runs_per_day?: number | null;
|
|
781
|
+
/**
|
|
782
|
+
* Max Runs Per Hour
|
|
783
|
+
* @description Runs per hour limit; null when none.
|
|
784
|
+
*/
|
|
785
|
+
max_runs_per_hour?: number | null;
|
|
786
|
+
/**
|
|
787
|
+
* Max Runs Total
|
|
788
|
+
* @description Limit on runs in total; null when none.
|
|
789
|
+
*/
|
|
790
|
+
max_runs_total?: number | null;
|
|
740
791
|
/**
|
|
741
792
|
* Name
|
|
742
793
|
* @description Agent name.
|
|
@@ -750,7 +801,7 @@ interface components {
|
|
|
750
801
|
prompt_model_auto_rollback_enabled: boolean;
|
|
751
802
|
/**
|
|
752
803
|
* Prompt Model Auto Rollback Triggers
|
|
753
|
-
* @description Failure signals that trigger rollback. Defaults to
|
|
804
|
+
* @description Failure signals that trigger rollback. Defaults to governance_block, agent_run_failed when null.
|
|
754
805
|
*/
|
|
755
806
|
prompt_model_auto_rollback_triggers?: string[] | null;
|
|
756
807
|
/**
|
|
@@ -761,7 +812,7 @@ interface components {
|
|
|
761
812
|
prompt_model_auto_upgrade_strategy: string;
|
|
762
813
|
/**
|
|
763
814
|
* Retry On Failure
|
|
764
|
-
* @description
|
|
815
|
+
* @description Deprecated: has no effect.
|
|
765
816
|
* @default true
|
|
766
817
|
*/
|
|
767
818
|
retry_on_failure: boolean;
|
|
@@ -772,6 +823,11 @@ interface components {
|
|
|
772
823
|
sampling_config?: {
|
|
773
824
|
[key: string]: unknown;
|
|
774
825
|
} | null;
|
|
826
|
+
/**
|
|
827
|
+
* Solution Id
|
|
828
|
+
* @description On a create from an `agent_template` that created resources: the solution grouping the agent with them.
|
|
829
|
+
*/
|
|
830
|
+
solution_id?: string | null;
|
|
775
831
|
/**
|
|
776
832
|
* Trigger Id
|
|
777
833
|
* @description ID of the agent's trigger, for the `/agents/{agent_id}/triggers/{trigger_id}/…` endpoints such as `accepted-attachments` and `email-config`.
|
|
@@ -1706,7 +1762,8 @@ interface components {
|
|
|
1706
1762
|
* CreateEvaluationCriteriaRequest
|
|
1707
1763
|
* @description Request body for creating an evaluation criteria.
|
|
1708
1764
|
*
|
|
1709
|
-
*
|
|
1765
|
+
* step_id names the display_result or streaming_result step to score. The
|
|
1766
|
+
* evaluation mode and sample frequency are set at the
|
|
1710
1767
|
* agent level, not per-criteria.
|
|
1711
1768
|
*/
|
|
1712
1769
|
CreateEvaluationCriteriaRequest: {
|
|
@@ -1755,11 +1812,13 @@ interface components {
|
|
|
1755
1812
|
flagged: boolean;
|
|
1756
1813
|
/**
|
|
1757
1814
|
* Retry Count
|
|
1815
|
+
* @description Deprecated: has no effect on any count.
|
|
1758
1816
|
* @default 0
|
|
1759
1817
|
*/
|
|
1760
1818
|
retry_count: number;
|
|
1761
1819
|
/**
|
|
1762
1820
|
* Retry Triggered
|
|
1821
|
+
* @description Retired; true returns 400 from Seclai-Version 2026-11-04.
|
|
1763
1822
|
* @default false
|
|
1764
1823
|
*/
|
|
1765
1824
|
retry_triggered: boolean;
|
|
@@ -2024,6 +2083,17 @@ interface components {
|
|
|
2024
2083
|
*/
|
|
2025
2084
|
url_id?: string | null;
|
|
2026
2085
|
};
|
|
2086
|
+
/** DeclarableMetadataKey */
|
|
2087
|
+
DeclarableMetadataKey: {
|
|
2088
|
+
/**
|
|
2089
|
+
* Always Present
|
|
2090
|
+
* @description Whether every run carries this key.
|
|
2091
|
+
*/
|
|
2092
|
+
always_present: boolean;
|
|
2093
|
+
/** Key */
|
|
2094
|
+
key: string;
|
|
2095
|
+
origin: components["schemas"]["MetadataOrigin"];
|
|
2096
|
+
};
|
|
2027
2097
|
/** DmarcFailingSourceResponse */
|
|
2028
2098
|
DmarcFailingSourceResponse: {
|
|
2029
2099
|
/** Failed Count */
|
|
@@ -2255,7 +2325,7 @@ interface components {
|
|
|
2255
2325
|
id: string;
|
|
2256
2326
|
/**
|
|
2257
2327
|
* Reason
|
|
2258
|
-
* @description Why it was refused: sender_not_allowed, unauthenticated_sender, unreadable_from, sender_blocked, spam, virus, unsafe_content, rate_limited, account_not_chargeable or empty_message; or, for a message the source received before, what became of the earlier one: repeat_stored, repeat_held, repeat_deleted or repeat_in_progress.
|
|
2328
|
+
* @description Why it was refused: sender_not_allowed, unauthenticated_sender, unreadable_from, sender_blocked, spam, virus, unsafe_content, rate_limited, account_not_chargeable, spend_limit_reached or empty_message; or, for a message the source received before, what became of the earlier one: repeat_stored, repeat_held, repeat_deleted or repeat_in_progress.
|
|
2259
2329
|
*/
|
|
2260
2330
|
reason: string;
|
|
2261
2331
|
/**
|
|
@@ -2498,7 +2568,7 @@ interface components {
|
|
|
2498
2568
|
enabled: boolean;
|
|
2499
2569
|
/**
|
|
2500
2570
|
* Evaluation Mode
|
|
2501
|
-
* @description Runtime behavior mode. output_expectation (manual validation),
|
|
2571
|
+
* @description Runtime behavior mode. output_expectation (manual validation), sample_and_flag (sampled monitoring).
|
|
2502
2572
|
*/
|
|
2503
2573
|
evaluation_mode: string;
|
|
2504
2574
|
/** Evaluation Prompt */
|
|
@@ -2514,7 +2584,10 @@ interface components {
|
|
|
2514
2584
|
* Format: uuid
|
|
2515
2585
|
*/
|
|
2516
2586
|
id: string;
|
|
2517
|
-
/**
|
|
2587
|
+
/**
|
|
2588
|
+
* Max Retries
|
|
2589
|
+
* @description Deprecated: has no effect.
|
|
2590
|
+
*/
|
|
2518
2591
|
max_retries: number;
|
|
2519
2592
|
/**
|
|
2520
2593
|
* Pass Threshold
|
|
@@ -2525,7 +2598,10 @@ interface components {
|
|
|
2525
2598
|
result_summary: {
|
|
2526
2599
|
[key: string]: number;
|
|
2527
2600
|
};
|
|
2528
|
-
/**
|
|
2601
|
+
/**
|
|
2602
|
+
* Retry On Failure
|
|
2603
|
+
* @description Deprecated: has no effect.
|
|
2604
|
+
*/
|
|
2529
2605
|
retry_on_failure: boolean;
|
|
2530
2606
|
/** Step Id */
|
|
2531
2607
|
step_id: string | null;
|
|
@@ -2584,9 +2660,15 @@ interface components {
|
|
|
2584
2660
|
* Format: uuid
|
|
2585
2661
|
*/
|
|
2586
2662
|
id: string;
|
|
2587
|
-
/**
|
|
2663
|
+
/**
|
|
2664
|
+
* Retry Count
|
|
2665
|
+
* @description Deprecated.
|
|
2666
|
+
*/
|
|
2588
2667
|
retry_count: number;
|
|
2589
|
-
/**
|
|
2668
|
+
/**
|
|
2669
|
+
* Retry Triggered
|
|
2670
|
+
* @description Deprecated.
|
|
2671
|
+
*/
|
|
2590
2672
|
retry_triggered: boolean;
|
|
2591
2673
|
/**
|
|
2592
2674
|
* Score
|
|
@@ -2674,9 +2756,15 @@ interface components {
|
|
|
2674
2756
|
* Format: uuid
|
|
2675
2757
|
*/
|
|
2676
2758
|
id: string;
|
|
2677
|
-
/**
|
|
2759
|
+
/**
|
|
2760
|
+
* Retry Count
|
|
2761
|
+
* @description Deprecated.
|
|
2762
|
+
*/
|
|
2678
2763
|
retry_count: number;
|
|
2679
|
-
/**
|
|
2764
|
+
/**
|
|
2765
|
+
* Retry Triggered
|
|
2766
|
+
* @description Deprecated.
|
|
2767
|
+
*/
|
|
2680
2768
|
retry_triggered: boolean;
|
|
2681
2769
|
/**
|
|
2682
2770
|
* Score
|
|
@@ -2974,7 +3062,7 @@ interface components {
|
|
|
2974
3062
|
step_id?: string | null;
|
|
2975
3063
|
/**
|
|
2976
3064
|
* Step Type
|
|
2977
|
-
* @description The step type to generate config for (e.g. 'regex_replace', '
|
|
3065
|
+
* @description The step type to generate config for (e.g. 'regex_replace', 'if_else', 'text', 'prompt_call', 'retrieval').
|
|
2978
3066
|
*/
|
|
2979
3067
|
step_type: string;
|
|
2980
3068
|
/**
|
|
@@ -3319,6 +3407,13 @@ interface components {
|
|
|
3319
3407
|
*/
|
|
3320
3408
|
total: number;
|
|
3321
3409
|
};
|
|
3410
|
+
/** KnowledgeBaseMetadataKeyStats */
|
|
3411
|
+
KnowledgeBaseMetadataKeyStatsResponse: {
|
|
3412
|
+
/** Knowledge Base Id */
|
|
3413
|
+
knowledge_base_id: string;
|
|
3414
|
+
/** Windows */
|
|
3415
|
+
windows: components["schemas"]["MetadataKeyWindowResponse"][];
|
|
3416
|
+
};
|
|
3322
3417
|
/**
|
|
3323
3418
|
* KnowledgeBase
|
|
3324
3419
|
* @description Response model for a single knowledge base.
|
|
@@ -3623,6 +3718,120 @@ interface components {
|
|
|
3623
3718
|
*/
|
|
3624
3719
|
updated_at: string;
|
|
3625
3720
|
};
|
|
3721
|
+
/** MetadataKeyCountResponse */
|
|
3722
|
+
MetadataKeyCountResponse: {
|
|
3723
|
+
/**
|
|
3724
|
+
* Distinct Values
|
|
3725
|
+
* @description How many different values it takes.
|
|
3726
|
+
*/
|
|
3727
|
+
distinct_values: number;
|
|
3728
|
+
/**
|
|
3729
|
+
* Items
|
|
3730
|
+
* @description Items in the window carrying the key.
|
|
3731
|
+
*/
|
|
3732
|
+
items: number;
|
|
3733
|
+
/**
|
|
3734
|
+
* Key
|
|
3735
|
+
* @description The item-metadata key.
|
|
3736
|
+
*/
|
|
3737
|
+
key: string;
|
|
3738
|
+
/**
|
|
3739
|
+
* Top Values
|
|
3740
|
+
* @description Its 5 most frequent values, most frequent first.
|
|
3741
|
+
*/
|
|
3742
|
+
top_values: components["schemas"]["MetadataValueCountResponse"][];
|
|
3743
|
+
};
|
|
3744
|
+
/** MetadataKeyDeclaration */
|
|
3745
|
+
MetadataKeyDeclaration: {
|
|
3746
|
+
/**
|
|
3747
|
+
* Key
|
|
3748
|
+
* @description Steps reference the key as ``{{metadata.<key>}}``.
|
|
3749
|
+
*/
|
|
3750
|
+
key: string;
|
|
3751
|
+
/** @description ``system`` and ``source`` keys are written by the platform; ``custom`` keys are sent by the caller or set on the trigger. */
|
|
3752
|
+
origin: components["schemas"]["MetadataOrigin"];
|
|
3753
|
+
/**
|
|
3754
|
+
* Required
|
|
3755
|
+
* @description A caller-started run without this key is refused. Only a ``custom`` key can be required.
|
|
3756
|
+
* @default false
|
|
3757
|
+
*/
|
|
3758
|
+
required: boolean;
|
|
3759
|
+
};
|
|
3760
|
+
/** MetadataKeyWindowResponse */
|
|
3761
|
+
MetadataKeyWindowResponse: {
|
|
3762
|
+
/**
|
|
3763
|
+
* Keys
|
|
3764
|
+
* @description Keys seen in the window, most frequent first.
|
|
3765
|
+
*/
|
|
3766
|
+
keys: components["schemas"]["MetadataKeyCountResponse"][];
|
|
3767
|
+
/**
|
|
3768
|
+
* Since
|
|
3769
|
+
* @description The window's start; null for all time.
|
|
3770
|
+
*/
|
|
3771
|
+
since: string | null;
|
|
3772
|
+
/**
|
|
3773
|
+
* Total Items
|
|
3774
|
+
* @description Items in the window.
|
|
3775
|
+
*/
|
|
3776
|
+
total_items: number;
|
|
3777
|
+
/**
|
|
3778
|
+
* Window
|
|
3779
|
+
* @enum {string}
|
|
3780
|
+
*/
|
|
3781
|
+
window: "all_time" | "last_30_days" | "last_7_days";
|
|
3782
|
+
};
|
|
3783
|
+
/** MetadataKeysResponse */
|
|
3784
|
+
MetadataKeysResponse: {
|
|
3785
|
+
/**
|
|
3786
|
+
* Accepts Any Source Key
|
|
3787
|
+
* @description True for content triggers, which may declare any item-metadata key.
|
|
3788
|
+
*/
|
|
3789
|
+
accepts_any_source_key: boolean;
|
|
3790
|
+
/**
|
|
3791
|
+
* Agent Id
|
|
3792
|
+
* Format: uuid
|
|
3793
|
+
*/
|
|
3794
|
+
agent_id: string;
|
|
3795
|
+
/**
|
|
3796
|
+
* Declarable Keys
|
|
3797
|
+
* @description The system and source keys this trigger's type can declare.
|
|
3798
|
+
*/
|
|
3799
|
+
declarable_keys: components["schemas"]["DeclarableMetadataKey"][];
|
|
3800
|
+
/**
|
|
3801
|
+
* Metadata Keys
|
|
3802
|
+
* @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.
|
|
3803
|
+
*/
|
|
3804
|
+
metadata_keys: components["schemas"]["MetadataKeyDeclaration"][];
|
|
3805
|
+
/**
|
|
3806
|
+
* Trigger Id
|
|
3807
|
+
* Format: uuid
|
|
3808
|
+
*/
|
|
3809
|
+
trigger_id: string;
|
|
3810
|
+
/**
|
|
3811
|
+
* Warnings
|
|
3812
|
+
* @description Set by a PUT that changes the declaration: agents whose `call_agent` mapping no longer fits it. Always empty on GET.
|
|
3813
|
+
*/
|
|
3814
|
+
warnings?: string[];
|
|
3815
|
+
};
|
|
3816
|
+
/**
|
|
3817
|
+
* MetadataOrigin
|
|
3818
|
+
* @description Who writes a run metadata key (docs/architecture/run-metadata.md, Q2).
|
|
3819
|
+
* @enum {string}
|
|
3820
|
+
*/
|
|
3821
|
+
MetadataOrigin: "system" | "source" | "custom";
|
|
3822
|
+
/** MetadataValueCountResponse */
|
|
3823
|
+
MetadataValueCountResponse: {
|
|
3824
|
+
/**
|
|
3825
|
+
* Items
|
|
3826
|
+
* @description Items carrying this value.
|
|
3827
|
+
*/
|
|
3828
|
+
items: number;
|
|
3829
|
+
/**
|
|
3830
|
+
* Value
|
|
3831
|
+
* @description The value as text, cut to 100 characters; an object is shown as {…} and a list as […].
|
|
3832
|
+
*/
|
|
3833
|
+
value: string;
|
|
3834
|
+
};
|
|
3626
3835
|
/**
|
|
3627
3836
|
* ModalityRateResponse
|
|
3628
3837
|
* @description Per-modality rate for an LLM that prices image/audio/video output
|
|
@@ -3964,7 +4173,7 @@ interface components {
|
|
|
3964
4173
|
SetAcceptedAttachmentsRequest: {
|
|
3965
4174
|
/**
|
|
3966
4175
|
* Accepted Attachments
|
|
3967
|
-
* @description The input attachments the trigger accepts; ``null`` accepts any files (one attachment named ``files``). Only ``dynamic_input`` and ``
|
|
4176
|
+
* @description The input attachments the trigger accepts; ``null`` accepts any files (one attachment named ``files``). Only ``dynamic_input``, ``email_received`` and ``slack_command`` triggers take files.
|
|
3968
4177
|
*/
|
|
3969
4178
|
accepted_attachments: components["schemas"]["AcceptedAttachmentSlot"][] | null;
|
|
3970
4179
|
};
|
|
@@ -3976,6 +4185,62 @@ interface components {
|
|
|
3976
4185
|
/** Mode */
|
|
3977
4186
|
mode: string;
|
|
3978
4187
|
};
|
|
4188
|
+
/** SetMetadataKeysRequest */
|
|
4189
|
+
SetMetadataKeysRequest: {
|
|
4190
|
+
/**
|
|
4191
|
+
* Metadata Keys
|
|
4192
|
+
* @description The whole declaration; replaces the trigger's current one.
|
|
4193
|
+
*/
|
|
4194
|
+
metadata_keys: components["schemas"]["MetadataKeyDeclaration"][];
|
|
4195
|
+
};
|
|
4196
|
+
/**
|
|
4197
|
+
* SetSlackTriggerConfigApiRequest
|
|
4198
|
+
* @description Omitted fields are left unchanged.
|
|
4199
|
+
*/
|
|
4200
|
+
SetSlackTriggerConfigApiRequest: {
|
|
4201
|
+
/** @description `everywhere` in scope, or `channel_opt_in`. */
|
|
4202
|
+
activation?: components["schemas"]["SlackTriggerActivation"] | null;
|
|
4203
|
+
/**
|
|
4204
|
+
* Alias
|
|
4205
|
+
* @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.
|
|
4206
|
+
*/
|
|
4207
|
+
alias?: string | null;
|
|
4208
|
+
/**
|
|
4209
|
+
* Allow Dms
|
|
4210
|
+
* @description Runnable in the app's own DMs.
|
|
4211
|
+
*/
|
|
4212
|
+
allow_dms?: boolean | null;
|
|
4213
|
+
/** Channel Ids */
|
|
4214
|
+
channel_ids?: string[] | null;
|
|
4215
|
+
/**
|
|
4216
|
+
* Form
|
|
4217
|
+
* @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.
|
|
4218
|
+
*/
|
|
4219
|
+
form?: {
|
|
4220
|
+
[key: string]: unknown;
|
|
4221
|
+
}[] | null;
|
|
4222
|
+
/** Include Invoker Email */
|
|
4223
|
+
include_invoker_email?: boolean | null;
|
|
4224
|
+
/** Max Turns */
|
|
4225
|
+
max_turns?: number | null;
|
|
4226
|
+
/**
|
|
4227
|
+
* Mcp Client Id
|
|
4228
|
+
* @description The account's connected Slack (Bot) MCP client.
|
|
4229
|
+
*/
|
|
4230
|
+
mcp_client_id?: string | null;
|
|
4231
|
+
/** Notify Failure After Answer */
|
|
4232
|
+
notify_failure_after_answer?: boolean | null;
|
|
4233
|
+
/** @description `selected_channels` (see `channel_ids`) or `bot_channels`. */
|
|
4234
|
+
scope?: components["schemas"]["SlackTriggerScope"] | null;
|
|
4235
|
+
/** Start Without Form */
|
|
4236
|
+
start_without_form?: boolean | null;
|
|
4237
|
+
/** Turns Anyone */
|
|
4238
|
+
turns_anyone?: boolean | null;
|
|
4239
|
+
/** Turns Enabled */
|
|
4240
|
+
turns_enabled?: boolean | null;
|
|
4241
|
+
/** @description `channel`, or `private` (replies in the person's DM). */
|
|
4242
|
+
visibility?: components["schemas"]["SlackReplyVisibility"] | null;
|
|
4243
|
+
};
|
|
3979
4244
|
/**
|
|
3980
4245
|
* SkippedAttachmentReason
|
|
3981
4246
|
* @enum {string}
|
|
@@ -4004,6 +4269,74 @@ interface components {
|
|
|
4004
4269
|
*/
|
|
4005
4270
|
size_bytes: number | null;
|
|
4006
4271
|
};
|
|
4272
|
+
/**
|
|
4273
|
+
* SlackReplyVisibility
|
|
4274
|
+
* @enum {string}
|
|
4275
|
+
*/
|
|
4276
|
+
SlackReplyVisibility: "channel" | "private";
|
|
4277
|
+
/**
|
|
4278
|
+
* SlackTriggerActivation
|
|
4279
|
+
* @enum {string}
|
|
4280
|
+
*/
|
|
4281
|
+
SlackTriggerActivation: "everywhere" | "channel_opt_in";
|
|
4282
|
+
/** SlackTriggerConfigApiResponse */
|
|
4283
|
+
SlackTriggerConfigApiResponse: {
|
|
4284
|
+
/** Activation */
|
|
4285
|
+
activation: string;
|
|
4286
|
+
/**
|
|
4287
|
+
* Agent Id
|
|
4288
|
+
* Format: uuid
|
|
4289
|
+
*/
|
|
4290
|
+
agent_id: string;
|
|
4291
|
+
/**
|
|
4292
|
+
* Alias
|
|
4293
|
+
* @description The name people type after `/seclai` to run this agent.
|
|
4294
|
+
*/
|
|
4295
|
+
alias?: string | null;
|
|
4296
|
+
/** Allow Dms */
|
|
4297
|
+
allow_dms: boolean;
|
|
4298
|
+
/** Channel Ids */
|
|
4299
|
+
channel_ids: string[];
|
|
4300
|
+
/** Form */
|
|
4301
|
+
form: {
|
|
4302
|
+
[key: string]: unknown;
|
|
4303
|
+
}[];
|
|
4304
|
+
/** Include Invoker Email */
|
|
4305
|
+
include_invoker_email: boolean;
|
|
4306
|
+
/** Max Turns */
|
|
4307
|
+
max_turns: number | null;
|
|
4308
|
+
/** Mcp Client Id */
|
|
4309
|
+
mcp_client_id: string | null;
|
|
4310
|
+
/**
|
|
4311
|
+
* Missing Scopes
|
|
4312
|
+
* @description Scopes the Slack connection lacks for optional features.
|
|
4313
|
+
*/
|
|
4314
|
+
missing_scopes: string[];
|
|
4315
|
+
/** Notify Failure After Answer */
|
|
4316
|
+
notify_failure_after_answer: boolean;
|
|
4317
|
+
/** Scope */
|
|
4318
|
+
scope: string;
|
|
4319
|
+
/** Slack Team Id */
|
|
4320
|
+
slack_team_id: string | null;
|
|
4321
|
+
/** Start Without Form */
|
|
4322
|
+
start_without_form: boolean;
|
|
4323
|
+
/**
|
|
4324
|
+
* Trigger Id
|
|
4325
|
+
* Format: uuid
|
|
4326
|
+
*/
|
|
4327
|
+
trigger_id: string;
|
|
4328
|
+
/** Turns Anyone */
|
|
4329
|
+
turns_anyone: boolean;
|
|
4330
|
+
/** Turns Enabled */
|
|
4331
|
+
turns_enabled: boolean;
|
|
4332
|
+
/** Visibility */
|
|
4333
|
+
visibility: string;
|
|
4334
|
+
};
|
|
4335
|
+
/**
|
|
4336
|
+
* SlackTriggerScope
|
|
4337
|
+
* @enum {string}
|
|
4338
|
+
*/
|
|
4339
|
+
SlackTriggerScope: "selected_channels" | "bot_channels";
|
|
4007
4340
|
/** SolutionSourceConnectionResponse */
|
|
4008
4341
|
SolutionSourceConnectionResponse: {
|
|
4009
4342
|
/**
|
|
@@ -4170,7 +4503,7 @@ interface components {
|
|
|
4170
4503
|
extracted_media_limit?: number | null;
|
|
4171
4504
|
/**
|
|
4172
4505
|
* Held For Review
|
|
4173
|
-
* @description An ENFORCE governance policy blocked this item at import. It is held for review and is not retrievable: resolving its blocking evaluations releases it into the source,
|
|
4506
|
+
* @description An ENFORCE governance policy blocked this item at import. It is held for review and is not retrievable: resolving its blocking evaluations releases it into the source; left unresolved, it is purged when the hold window ends.
|
|
4174
4507
|
* @default false
|
|
4175
4508
|
*/
|
|
4176
4509
|
held_for_review: boolean;
|
|
@@ -4194,9 +4527,14 @@ interface components {
|
|
|
4194
4527
|
* @description Timestamp when the item was uploaded or pulled.
|
|
4195
4528
|
*/
|
|
4196
4529
|
pulled_at: string;
|
|
4530
|
+
/**
|
|
4531
|
+
* Release Waiting Reason
|
|
4532
|
+
* @description Set on a held item review approved whose release was refused: why it waits, the account being unable to pay for it or the source's spend limit having no room for it. Its release is retried; null until one is refused.
|
|
4533
|
+
*/
|
|
4534
|
+
release_waiting_reason?: string | null;
|
|
4197
4535
|
/**
|
|
4198
4536
|
* Source Connection Content Version Id
|
|
4199
|
-
* @description ID to pass to `GET /contents/{id}`. `null`
|
|
4537
|
+
* @description ID to pass to `GET /contents/{id}`. `null` while the item has no retrievable content.
|
|
4200
4538
|
*/
|
|
4201
4539
|
source_connection_content_version_id: string | null;
|
|
4202
4540
|
/**
|
|
@@ -4404,6 +4742,11 @@ interface components {
|
|
|
4404
4742
|
id: string;
|
|
4405
4743
|
/** @description Index mode for custom_index sources: fast_and_cheap, balanced, slow_and_thorough, or custom. */
|
|
4406
4744
|
index_mode?: components["schemas"]["SourceIndexMode"] | null;
|
|
4745
|
+
/**
|
|
4746
|
+
* Max Credits Per Period
|
|
4747
|
+
* @description The source's spend limit: credits it may commit per billing period. Null when it has none.
|
|
4748
|
+
*/
|
|
4749
|
+
max_credits_per_period?: number | null;
|
|
4407
4750
|
/**
|
|
4408
4751
|
* Media Types
|
|
4409
4752
|
* @description Media kinds in a web page's main content that are attached to the page's item and indexed (subset of ['images', 'video']). On a website or RSS source 'images' also covers the images inside PDF, DOCX, PPTX and XLSX files.
|
|
@@ -4455,6 +4798,22 @@ interface components {
|
|
|
4455
4798
|
* @description Type of the source connection.
|
|
4456
4799
|
*/
|
|
4457
4800
|
source_type: string;
|
|
4801
|
+
/**
|
|
4802
|
+
* @description What the source does once it reaches its spend limit.
|
|
4803
|
+
* @default stop
|
|
4804
|
+
*/
|
|
4805
|
+
spend_cap_action: components["schemas"]["SpendCapAction"];
|
|
4806
|
+
/**
|
|
4807
|
+
* @description Which entries a `delete` spend limit removes first.
|
|
4808
|
+
* @default oldest_added
|
|
4809
|
+
*/
|
|
4810
|
+
spend_cap_delete_order: components["schemas"]["SpendCapDeleteOrder"];
|
|
4811
|
+
/**
|
|
4812
|
+
* Spend Cap Reached
|
|
4813
|
+
* @description True while the spend limit refuses uploads and email to this source.
|
|
4814
|
+
* @default false
|
|
4815
|
+
*/
|
|
4816
|
+
spend_cap_reached: boolean;
|
|
4458
4817
|
/**
|
|
4459
4818
|
* System Managed
|
|
4460
4819
|
* @description Indicates if this source is automatically managed by the system (e.g., agent traces).
|
|
@@ -4472,6 +4831,17 @@ interface components {
|
|
|
4472
4831
|
*/
|
|
4473
4832
|
url: string | null;
|
|
4474
4833
|
};
|
|
4834
|
+
/**
|
|
4835
|
+
* SpendCapAction
|
|
4836
|
+
* @enum {string}
|
|
4837
|
+
*/
|
|
4838
|
+
SpendCapAction: "stop" | "delete";
|
|
4839
|
+
/**
|
|
4840
|
+
* SpendCapDeleteOrder
|
|
4841
|
+
* @description Which entries a DELETE cap removes first.
|
|
4842
|
+
* @enum {string}
|
|
4843
|
+
*/
|
|
4844
|
+
SpendCapDeleteOrder: "oldest_added" | "oldest_published" | "largest_first";
|
|
4475
4845
|
/**
|
|
4476
4846
|
* StandaloneTestCompactionRequest
|
|
4477
4847
|
* @description Request body for testing a compaction prompt *without* an existing bank.
|
|
@@ -4719,7 +5089,7 @@ interface components {
|
|
|
4719
5089
|
* UpdateEvaluationCriteriaRequest
|
|
4720
5090
|
* @description Request body for updating an evaluation criteria.
|
|
4721
5091
|
*
|
|
4722
|
-
*
|
|
5092
|
+
* The evaluation mode and sample frequency are set at the agent level.
|
|
4723
5093
|
*/
|
|
4724
5094
|
UpdateEvaluationCriteriaRequest: {
|
|
4725
5095
|
/** Description */
|
|
@@ -4884,6 +5254,11 @@ interface components {
|
|
|
4884
5254
|
* @description Kinds of file listed beside a feed item's content to attach to the item and index, on an RSS source. Subset of ['enclosures', 'item_image', 'media_rss']; any other value is refused. [] attaches none. Applies to items added after it changes. Omit the field to leave it unchanged.
|
|
4885
5255
|
*/
|
|
4886
5256
|
feed_attachments?: string[] | null;
|
|
5257
|
+
/**
|
|
5258
|
+
* Max Credits Per Period
|
|
5259
|
+
* @description Spend limit: the credits this source may commit per billing period — what the account was charged for it this period plus the storage of what it holds until the period ends. Send null to remove the limit; omit to leave it unchanged.
|
|
5260
|
+
*/
|
|
5261
|
+
max_credits_per_period?: number | null;
|
|
4887
5262
|
/**
|
|
4888
5263
|
* Media Types
|
|
4889
5264
|
* @description Media kinds in a web page's main content to attach to the page's item and index, on a website or RSS source. Subset of ['images', 'video']. From `Seclai-Version: 2026-10-13` any other value, and any kind on another source type, is refused with a 400; older versions drop an unknown value and store the rest. A kind the source's embedder cannot index is stored and not indexed (see `supported_input_media` on GET /models/embedders). [] attaches no media from web pages. 'images' also covers the images inside PDF, DOCX, PPTX and XLSX files. Applies to pages and documents added after it changes.
|
|
@@ -4904,6 +5279,10 @@ interface components {
|
|
|
4904
5279
|
* @description New retention period in days — content older than this is deleted permanently. Send null to clear the window: content is then kept indefinitely. Omit the field to leave it unchanged.
|
|
4905
5280
|
*/
|
|
4906
5281
|
retention_days?: number | null;
|
|
5282
|
+
/** @description Once the limit is reached: `stop` refuses new content; `delete` deletes entries, in `spend_cap_delete_order`, to make room, and refuses new content as `stop` does once spend already fills the limit. Deleting does not return credits already spent. */
|
|
5283
|
+
spend_cap_action?: components["schemas"]["SpendCapAction"] | null;
|
|
5284
|
+
/** @description Which entries `delete` removes first: `oldest_added`, `oldest_published` or `largest_first`. */
|
|
5285
|
+
spend_cap_delete_order?: components["schemas"]["SpendCapDeleteOrder"] | null;
|
|
4907
5286
|
};
|
|
4908
5287
|
/** UploadAgentInputApiResponse */
|
|
4909
5288
|
UploadAgentInputApiResponse: {
|
|
@@ -5163,9 +5542,15 @@ interface components {
|
|
|
5163
5542
|
} | null;
|
|
5164
5543
|
/**
|
|
5165
5544
|
* Agent Template
|
|
5166
|
-
* @description
|
|
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.
|
|
5167
5546
|
*/
|
|
5168
5547
|
agent_template?: string | null;
|
|
5548
|
+
/**
|
|
5549
|
+
* Create Missing Resources
|
|
5550
|
+
* @description For an `agent_template`: create each creatable resource slot left out of `resource_bindings`, and group the agent with them in a new solution. When false, an unbound slot the template needs is an error.
|
|
5551
|
+
* @default false
|
|
5552
|
+
*/
|
|
5553
|
+
create_missing_resources: boolean;
|
|
5169
5554
|
/**
|
|
5170
5555
|
* Description
|
|
5171
5556
|
* @description Optional description.
|
|
@@ -5183,12 +5568,18 @@ interface components {
|
|
|
5183
5568
|
* @description Name for the new agent.
|
|
5184
5569
|
*/
|
|
5185
5570
|
name: string;
|
|
5571
|
+
/**
|
|
5572
|
+
* Resource Bindings
|
|
5573
|
+
* @description For an `agent_template`: the existing resource to use for each of the template's resource slots, as {slot: resource_id}. GET /agents/examples lists each template's slots.
|
|
5574
|
+
*/
|
|
5575
|
+
resource_bindings?: {
|
|
5576
|
+
[key: string]: string;
|
|
5577
|
+
} | null;
|
|
5186
5578
|
/**
|
|
5187
5579
|
* Trigger Type
|
|
5188
|
-
* @description
|
|
5189
|
-
* @default dynamic_input
|
|
5580
|
+
* @description Defaults to dynamic_input, or to the template's own trigger type for an `agent_template` without `agent_definition`.
|
|
5190
5581
|
*/
|
|
5191
|
-
trigger_type
|
|
5582
|
+
trigger_type?: string | null;
|
|
5192
5583
|
};
|
|
5193
5584
|
/**
|
|
5194
5585
|
* GovernancePolicyRefResponse
|
|
@@ -5254,6 +5645,12 @@ interface components {
|
|
|
5254
5645
|
agent_definition?: {
|
|
5255
5646
|
[key: string]: unknown;
|
|
5256
5647
|
} | null;
|
|
5648
|
+
/**
|
|
5649
|
+
* Apply Import Run Limits
|
|
5650
|
+
* @description With `agent_definition`, also replace the agent's run limits with the payload's (a null there removes a limit). Off by default: the agent keeps its limits.
|
|
5651
|
+
* @default false
|
|
5652
|
+
*/
|
|
5653
|
+
apply_import_run_limits: boolean;
|
|
5257
5654
|
/**
|
|
5258
5655
|
* Default Evaluation Tier
|
|
5259
5656
|
* @description Default evaluation tier: 'fast', 'balanced', or 'thorough'.
|
|
@@ -5273,14 +5670,39 @@ interface components {
|
|
|
5273
5670
|
} | null;
|
|
5274
5671
|
/**
|
|
5275
5672
|
* Evaluation Mode
|
|
5276
|
-
* @description Evaluation mode: 'output_expectation'
|
|
5673
|
+
* @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'.
|
|
5277
5674
|
*/
|
|
5278
5675
|
evaluation_mode?: string | null;
|
|
5676
|
+
/**
|
|
5677
|
+
* Max Credits Per Period
|
|
5678
|
+
* @description Credit limit per billing period of the paying account: once reached, runs stop at their next step and new runs are refused.
|
|
5679
|
+
*/
|
|
5680
|
+
max_credits_per_period?: number | null;
|
|
5681
|
+
/**
|
|
5682
|
+
* Max Credits Per Run
|
|
5683
|
+
* @description Credit limit per run: a run that reaches it is stopped before its next step.
|
|
5684
|
+
*/
|
|
5685
|
+
max_credits_per_run?: number | null;
|
|
5279
5686
|
/**
|
|
5280
5687
|
* Max Retries
|
|
5281
|
-
* @description
|
|
5688
|
+
* @description Deprecated: accepted and has no effect.
|
|
5282
5689
|
*/
|
|
5283
5690
|
max_retries?: number | null;
|
|
5691
|
+
/**
|
|
5692
|
+
* Max Runs Per Day
|
|
5693
|
+
* @description Runs per day; at most the plan's run quota.
|
|
5694
|
+
*/
|
|
5695
|
+
max_runs_per_day?: number | null;
|
|
5696
|
+
/**
|
|
5697
|
+
* Max Runs Per Hour
|
|
5698
|
+
* @description Runs per hour; at most the plan's run quota.
|
|
5699
|
+
*/
|
|
5700
|
+
max_runs_per_hour?: number | null;
|
|
5701
|
+
/**
|
|
5702
|
+
* Max Runs Total
|
|
5703
|
+
* @description Runs in total; once reached, new runs are refused.
|
|
5704
|
+
*/
|
|
5705
|
+
max_runs_total?: number | null;
|
|
5284
5706
|
/**
|
|
5285
5707
|
* Name
|
|
5286
5708
|
* @description New name for the agent.
|
|
@@ -5293,14 +5715,14 @@ interface components {
|
|
|
5293
5715
|
prompt_model_auto_rollback_enabled?: boolean | null;
|
|
5294
5716
|
/**
|
|
5295
5717
|
* Prompt Model Auto Rollback Triggers
|
|
5296
|
-
* @description Failure signals that trigger rollback:
|
|
5718
|
+
* @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.
|
|
5297
5719
|
*/
|
|
5298
5720
|
prompt_model_auto_rollback_triggers?: string[] | null;
|
|
5299
5721
|
/** @description Auto-upgrade strategy: none, early_adopter, middle_of_road, cautious_adopter. */
|
|
5300
5722
|
prompt_model_auto_upgrade_strategy?: components["schemas"]["PromptModelAutoUpgradeStrategy"] | null;
|
|
5301
5723
|
/**
|
|
5302
5724
|
* Retry On Failure
|
|
5303
|
-
* @description
|
|
5725
|
+
* @description Deprecated: accepted and has no effect.
|
|
5304
5726
|
*/
|
|
5305
5727
|
retry_on_failure?: boolean | null;
|
|
5306
5728
|
/**
|
|
@@ -5316,6 +5738,36 @@ interface components {
|
|
|
5316
5738
|
* @default false
|
|
5317
5739
|
*/
|
|
5318
5740
|
set_default_evaluation_tier: boolean;
|
|
5741
|
+
/**
|
|
5742
|
+
* Set Max Credits Per Period
|
|
5743
|
+
* @description When true and max_credits_per_period is omitted, removes the limit.
|
|
5744
|
+
* @default false
|
|
5745
|
+
*/
|
|
5746
|
+
set_max_credits_per_period: boolean;
|
|
5747
|
+
/**
|
|
5748
|
+
* Set Max Credits Per Run
|
|
5749
|
+
* @description When true and max_credits_per_run is omitted, removes the limit.
|
|
5750
|
+
* @default false
|
|
5751
|
+
*/
|
|
5752
|
+
set_max_credits_per_run: boolean;
|
|
5753
|
+
/**
|
|
5754
|
+
* Set Max Runs Per Day
|
|
5755
|
+
* @description When true and max_runs_per_day is omitted, removes the limit.
|
|
5756
|
+
* @default false
|
|
5757
|
+
*/
|
|
5758
|
+
set_max_runs_per_day: boolean;
|
|
5759
|
+
/**
|
|
5760
|
+
* Set Max Runs Per Hour
|
|
5761
|
+
* @description When true and max_runs_per_hour is omitted, removes the limit.
|
|
5762
|
+
* @default false
|
|
5763
|
+
*/
|
|
5764
|
+
set_max_runs_per_hour: boolean;
|
|
5765
|
+
/**
|
|
5766
|
+
* Set Max Runs Total
|
|
5767
|
+
* @description When true and max_runs_total is omitted, removes the limit.
|
|
5768
|
+
* @default false
|
|
5769
|
+
*/
|
|
5770
|
+
set_max_runs_total: boolean;
|
|
5319
5771
|
/**
|
|
5320
5772
|
* Set Prompt Model Auto Rollback Triggers
|
|
5321
5773
|
* @description When true and prompt_model_auto_rollback_triggers is omitted, clears the list to null (revert to system defaults).
|
|
@@ -6679,6 +7131,14 @@ interface components {
|
|
|
6679
7131
|
* are regenerated.
|
|
6680
7132
|
*/
|
|
6681
7133
|
|
|
7134
|
+
/**
|
|
7135
|
+
* `T` with the keys `K` optional. openapi-typescript marks every property that
|
|
7136
|
+
* declares a `default` as required, which is right for a response (the server
|
|
7137
|
+
* always sends it) and wrong for a request body (the server fills it in). Apply
|
|
7138
|
+
* this to a request type's server-defaulted keys only; the test
|
|
7139
|
+
* "request types leave server-defaulted fields optional" lists them from the spec.
|
|
7140
|
+
*/
|
|
7141
|
+
type WithServerDefaults<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
6682
7142
|
/** JSON-serializable values accepted/returned by the SDK's low-level `request()` method. */
|
|
6683
7143
|
type JSONValue = {
|
|
6684
7144
|
[key: string]: JSONValue;
|
|
@@ -6704,6 +7164,70 @@ type MeResponse = components["schemas"]["MeResponse"];
|
|
|
6704
7164
|
type OrganizationInfoResponse = components["schemas"]["OrganizationInfoResponse"];
|
|
6705
7165
|
/** Paginated list of agents. */
|
|
6706
7166
|
type AgentListResponse = components["schemas"]["routers__api__agents__AgentListResponse"];
|
|
7167
|
+
/**
|
|
7168
|
+
* A page of the agent gallery. Each entry's `key` goes in `agent_template` on
|
|
7169
|
+
* {@link CreateAgentRequest}, with `resource_bindings` for the resources it needs.
|
|
7170
|
+
*/
|
|
7171
|
+
type AgentExampleListResponse = Omit<components["schemas"]["AgentExampleListResponse"], "data"> & {
|
|
7172
|
+
data: AgentExample[];
|
|
7173
|
+
};
|
|
7174
|
+
/**
|
|
7175
|
+
* A resource an {@link AgentExample} needs: bind it in `resource_bindings` under
|
|
7176
|
+
* `slot`, or let `create_missing_resources` create it when `creatable`.
|
|
7177
|
+
*/
|
|
7178
|
+
interface AgentExampleResource {
|
|
7179
|
+
/** Slot name, the key in `resource_bindings`. */
|
|
7180
|
+
slot: string;
|
|
7181
|
+
/** Resource kind: knowledge_base, memory_bank, source_connection, mcp_client or cloud_drive_connection. */
|
|
7182
|
+
kind: string;
|
|
7183
|
+
/** Display name of the slot. */
|
|
7184
|
+
label: string;
|
|
7185
|
+
/** What the slot is used for. */
|
|
7186
|
+
description: string;
|
|
7187
|
+
/** The id that stands for this resource in `definition`. */
|
|
7188
|
+
placeholder: string;
|
|
7189
|
+
/** Whether `create_missing_resources` can create it. When false it must be bound to an existing resource. */
|
|
7190
|
+
creatable: boolean;
|
|
7191
|
+
/** For a memory_bank slot, the bank type a bound bank must have. */
|
|
7192
|
+
memory_bank_type: string | null;
|
|
7193
|
+
/** Whether the steps in `definition` name this slot. */
|
|
7194
|
+
named_in_definition: boolean;
|
|
7195
|
+
/** Whether the entry's trigger names this slot; it applies only when the agent keeps the entry's trigger type. */
|
|
7196
|
+
named_in_trigger: boolean;
|
|
7197
|
+
/** Slots whose creation uses this one. */
|
|
7198
|
+
named_in_create_of: string[];
|
|
7199
|
+
}
|
|
7200
|
+
/**
|
|
7201
|
+
* One agent gallery entry from {@link Seclai.listAgentExamples}. Pass `key` as
|
|
7202
|
+
* `agent_template` on {@link CreateAgentRequest}.
|
|
7203
|
+
*
|
|
7204
|
+
* Typed by hand: the spec declares the list's items without a schema.
|
|
7205
|
+
*/
|
|
7206
|
+
interface AgentExample {
|
|
7207
|
+
/** Pass as `agent_template` when creating an agent. */
|
|
7208
|
+
key: string;
|
|
7209
|
+
title: string;
|
|
7210
|
+
summary: string;
|
|
7211
|
+
use_cases: string[];
|
|
7212
|
+
tags: string[];
|
|
7213
|
+
/** Other `agent_template` values that create this entry. */
|
|
7214
|
+
aliases: string[];
|
|
7215
|
+
/** A request to the AI assistant that describes this agent. */
|
|
7216
|
+
prompt: string;
|
|
7217
|
+
/** The trigger type the entry is built for. */
|
|
7218
|
+
trigger_type: string;
|
|
7219
|
+
/** The date the entry was added to the gallery, `YYYY-MM-DD`. */
|
|
7220
|
+
created_at: string;
|
|
7221
|
+
/** The template_input trigger's input, when the entry sets one. */
|
|
7222
|
+
trigger_input: string | null;
|
|
7223
|
+
/** The template_input trigger's schedules, applied on create when the trigger type is the entry's own. */
|
|
7224
|
+
schedules: Record<string, unknown>[];
|
|
7225
|
+
/** The trigger's declared attachment slots. Empty when the entry declares none. */
|
|
7226
|
+
accepted_attachments: Record<string, unknown>[];
|
|
7227
|
+
resources: AgentExampleResource[];
|
|
7228
|
+
/** The agent definition, naming each resource by its placeholder. */
|
|
7229
|
+
definition: Record<string, unknown>;
|
|
7230
|
+
}
|
|
6707
7231
|
/** Full agent configuration including definition and metadata. */
|
|
6708
7232
|
type AgentDefinitionResponse = components["schemas"]["AgentDefinitionResponse"];
|
|
6709
7233
|
/** Portable JSON snapshot of an agent definition. */
|
|
@@ -6716,11 +7240,23 @@ type AgentSummaryResponse = components["schemas"]["AgentSummaryResponse"];
|
|
|
6716
7240
|
* `accepted_attachments` takes {@link AcceptedAttachmentSlotInput}, so a slot's
|
|
6717
7241
|
* server-defaulted `min` can be omitted.
|
|
6718
7242
|
*/
|
|
6719
|
-
type CreateAgentRequest = Omit<components["schemas"]["routers__api__agents__CreateAgentRequest"], "accepted_attachments"> & {
|
|
7243
|
+
type CreateAgentRequest = Omit<WithServerDefaults<components["schemas"]["routers__api__agents__CreateAgentRequest"], "create_missing_resources">, "accepted_attachments"> & {
|
|
6720
7244
|
accepted_attachments?: AcceptedAttachmentSlotInput[] | null;
|
|
6721
7245
|
};
|
|
6722
|
-
/**
|
|
6723
|
-
|
|
7246
|
+
/**
|
|
7247
|
+
* Request body for updating an agent. Every field is optional.
|
|
7248
|
+
*
|
|
7249
|
+
* To remove a run or credit limit, send its `set_max_*` flag as `true` and omit
|
|
7250
|
+
* the matching `max_*` field. The `set_*` flags and `apply_import_run_limits`
|
|
7251
|
+
* default to `false` on the server; the generated schema marks them required
|
|
7252
|
+
* only because they declare a default.
|
|
7253
|
+
*/
|
|
7254
|
+
type UpdateAgentRequest = Omit<Partial<components["schemas"]["routers__api__agents__UpdateAgentRequest"]>, "max_retries" | "retry_on_failure"> & {
|
|
7255
|
+
/** @deprecated Has no effect: the API accepts it and ignores it. Evaluations never retry a step. */
|
|
7256
|
+
max_retries?: number | null;
|
|
7257
|
+
/** @deprecated Has no effect: the API accepts it and ignores it. Evaluations never retry a step. */
|
|
7258
|
+
retry_on_failure?: boolean | null;
|
|
7259
|
+
};
|
|
6724
7260
|
/**
|
|
6725
7261
|
* Request body for updating an agent definition (steps, model, etc.).
|
|
6726
7262
|
*
|
|
@@ -6783,12 +7319,58 @@ type AgentCallerApiResponse = components["schemas"]["AgentCallerApiResponse"];
|
|
|
6783
7319
|
type SetEmailTriggerConfigRequest = components["schemas"]["routers__api__agents__SetEmailTriggerConfigRequest"];
|
|
6784
7320
|
/** An `EMAIL_RECEIVED` trigger's resolved email address(es) and inbound-handling config. */
|
|
6785
7321
|
type EmailTriggerConfigResponse = components["schemas"]["EmailTriggerConfigResponse"];
|
|
7322
|
+
/**
|
|
7323
|
+
* Request body for configuring a `SLACK_COMMAND` trigger.
|
|
7324
|
+
*
|
|
7325
|
+
* Every field is optional, and an omitted field is left unchanged. `alias` is
|
|
7326
|
+
* the name people type after `/seclai` to run the agent.
|
|
7327
|
+
*/
|
|
7328
|
+
type SetSlackTriggerConfigRequest = components["schemas"]["SetSlackTriggerConfigApiRequest"] & {
|
|
7329
|
+
/**
|
|
7330
|
+
* @deprecated The API ignores `input`; use `alias` to choose the name people
|
|
7331
|
+
* type after `/seclai`. A run's input is the text after `/seclai <alias>`, or
|
|
7332
|
+
* the message the shortcut was used on.
|
|
7333
|
+
*/
|
|
7334
|
+
input?: string | null;
|
|
7335
|
+
};
|
|
7336
|
+
/** A `SLACK_COMMAND` trigger's Slack connection, form, channels and conversation settings. */
|
|
7337
|
+
type SlackTriggerConfigResponse = components["schemas"]["SlackTriggerConfigApiResponse"];
|
|
7338
|
+
/** Who writes a run metadata key: `system`, `source` (both written by the platform) or `custom`. */
|
|
7339
|
+
type MetadataOrigin = components["schemas"]["MetadataOrigin"];
|
|
7340
|
+
/**
|
|
7341
|
+
* One run metadata key a trigger declares, which steps reference as
|
|
7342
|
+
* `{{metadata.<key>}}`.
|
|
7343
|
+
*/
|
|
7344
|
+
type MetadataKeyDeclaration = components["schemas"]["MetadataKeyDeclaration"];
|
|
7345
|
+
/**
|
|
7346
|
+
* A {@link MetadataKeyDeclaration} as sent to {@link Seclai.setMetadataKeys}:
|
|
7347
|
+
* `required` defaults to `false` and can be omitted — the generated type marks
|
|
7348
|
+
* it required only because the schema declares a default.
|
|
7349
|
+
*/
|
|
7350
|
+
type MetadataKeyDeclarationInput = WithServerDefaults<MetadataKeyDeclaration, "required">;
|
|
7351
|
+
/**
|
|
7352
|
+
* Request body for {@link Seclai.setMetadataKeys}: the whole declaration, which
|
|
7353
|
+
* replaces the trigger's current one.
|
|
7354
|
+
*/
|
|
7355
|
+
type SetMetadataKeysRequest = Omit<components["schemas"]["SetMetadataKeysRequest"], "metadata_keys"> & {
|
|
7356
|
+
metadata_keys: MetadataKeyDeclarationInput[];
|
|
7357
|
+
};
|
|
7358
|
+
/** A system or source metadata key a trigger's type can declare. */
|
|
7359
|
+
type DeclarableMetadataKey = components["schemas"]["DeclarableMetadataKey"];
|
|
7360
|
+
/** The run metadata keys a trigger declares, and the ones its type could declare. */
|
|
7361
|
+
type MetadataKeysResponse = components["schemas"]["MetadataKeysResponse"];
|
|
7362
|
+
/** Where a Slack trigger runs within its scope: `everywhere` or `channel_opt_in`. */
|
|
7363
|
+
type SlackTriggerActivation = components["schemas"]["SlackTriggerActivation"];
|
|
7364
|
+
/** Which channels a Slack trigger covers: `selected_channels` or `bot_channels`. */
|
|
7365
|
+
type SlackTriggerScope = components["schemas"]["SlackTriggerScope"];
|
|
7366
|
+
/** Who sees a Slack trigger's reply: `channel` or `private`. */
|
|
7367
|
+
type SlackReplyVisibility = components["schemas"]["SlackReplyVisibility"];
|
|
6786
7368
|
/** A recipient's opt-out from an account's agent emails (one agent, or account-wide). */
|
|
6787
7369
|
type AgentEmailOptOutResponse = components["schemas"]["AgentEmailOptOutResponse"];
|
|
6788
7370
|
/** A page of agent-email opt-outs plus the total count. */
|
|
6789
7371
|
type AgentEmailOptOutListResponse = VersionedList<components["schemas"]["AgentEmailOptOutListResponse"], "items">;
|
|
6790
7372
|
/** Request body for blocking an inbound email sender or domain. */
|
|
6791
|
-
type BlockEmailSenderRequest = components["schemas"]["BlockEmailSenderRequest"]
|
|
7373
|
+
type BlockEmailSenderRequest = WithServerDefaults<components["schemas"]["BlockEmailSenderRequest"], "match_type">;
|
|
6792
7374
|
/** A single blocked inbound email sender. */
|
|
6793
7375
|
type BlockedEmailSenderResponse = components["schemas"]["BlockedEmailSenderResponse"];
|
|
6794
7376
|
/** A page of blocked senders plus the account's governance auto-block mode. */
|
|
@@ -6808,14 +7390,9 @@ type CancelQueuedRunsResponse = components["schemas"]["CancelQueuedRunsResponse"
|
|
|
6808
7390
|
/** Result of manually lifting the inbound-email pause. */
|
|
6809
7391
|
type ResumeInboundResponse = components["schemas"]["ResumeInboundResponse"];
|
|
6810
7392
|
/** Request body for starting an agent run. */
|
|
6811
|
-
type AgentRunRequest = components["schemas"]["AgentRunRequest"]
|
|
6812
|
-
/**
|
|
6813
|
-
|
|
6814
|
-
*
|
|
6815
|
-
* `include_reasoning` has a server-side default of `false` and stays optional —
|
|
6816
|
-
* the generated type marks it required only because the schema declares a default.
|
|
6817
|
-
*/
|
|
6818
|
-
type AgentRunStreamRequest = Omit<components["schemas"]["AgentRunStreamRequest"], "include_reasoning"> & Partial<Pick<components["schemas"]["AgentRunStreamRequest"], "include_reasoning">>;
|
|
7393
|
+
type AgentRunRequest = WithServerDefaults<components["schemas"]["AgentRunRequest"], "priority">;
|
|
7394
|
+
/** Request body for starting an agent run in streaming mode (SSE). `include_reasoning` defaults to `false`. */
|
|
7395
|
+
type AgentRunStreamRequest = WithServerDefaults<components["schemas"]["AgentRunStreamRequest"], "include_reasoning">;
|
|
6819
7396
|
/** Response body describing an agent run. */
|
|
6820
7397
|
type AgentRunResponse = components["schemas"]["AgentRunResponse"];
|
|
6821
7398
|
/** Paginated list of agent runs. */
|
|
@@ -6829,7 +7406,7 @@ type AgentRunFileResponse = components["schemas"]["AgentRunFileResponse"];
|
|
|
6829
7406
|
/** A single LLM tool call made during a `prompt_call` step (within {@link AgentRunStepResponse}'s `tool_calls`). */
|
|
6830
7407
|
type AgentRunToolCallResponse = components["schemas"]["AgentRunToolCallResponse"];
|
|
6831
7408
|
/** Search request for agent runs (traces). */
|
|
6832
|
-
type AgentTraceSearchRequest = components["schemas"]["routers__api__agents__AgentTraceSearchRequest"]
|
|
7409
|
+
type AgentTraceSearchRequest = WithServerDefaults<components["schemas"]["routers__api__agents__AgentTraceSearchRequest"], "top_n">;
|
|
6833
7410
|
/** Search response containing matching agent runs. */
|
|
6834
7411
|
type AgentTraceSearchResponse = components["schemas"]["AgentTraceSearchResponse"];
|
|
6835
7412
|
/** Individual match within an agent trace search. */
|
|
@@ -6844,7 +7421,7 @@ type AgentAttachmentRefsApiResponse = components["schemas"]["AgentAttachmentRefs
|
|
|
6844
7421
|
/** Per-source attachment-reference summary (exact names, indexes, glob patterns) within an {@link AgentAttachmentRefsApiResponse}. */
|
|
6845
7422
|
type AttachmentRefsSourceApiSummary = components["schemas"]["AttachmentRefsSourceApiSummary"];
|
|
6846
7423
|
/** Request body for generating agent workflow steps via AI. */
|
|
6847
|
-
type GenerateAgentStepsRequest = components["schemas"]["GenerateAgentStepsRequest"]
|
|
7424
|
+
type GenerateAgentStepsRequest = WithServerDefaults<components["schemas"]["GenerateAgentStepsRequest"], "mode">;
|
|
6848
7425
|
/** Response containing AI-generated agent workflow steps. */
|
|
6849
7426
|
type GenerateAgentStepsResponse = components["schemas"]["GenerateAgentStepsResponse"];
|
|
6850
7427
|
/** Request body for generating a single step config via AI. */
|
|
@@ -6938,7 +7515,7 @@ type EvaluationCriteriaListResponse = {
|
|
|
6938
7515
|
pagination?: PaginationResponse;
|
|
6939
7516
|
};
|
|
6940
7517
|
/** Request body for creating evaluation criteria. */
|
|
6941
|
-
type CreateEvaluationCriteriaRequest = components["schemas"]["CreateEvaluationCriteriaRequest"]
|
|
7518
|
+
type CreateEvaluationCriteriaRequest = WithServerDefaults<components["schemas"]["CreateEvaluationCriteriaRequest"], "enabled" | "pass_threshold">;
|
|
6942
7519
|
/** Request body for updating evaluation criteria. */
|
|
6943
7520
|
type UpdateEvaluationCriteriaRequest = components["schemas"]["UpdateEvaluationCriteriaRequest"];
|
|
6944
7521
|
/** Individual evaluation result. */
|
|
@@ -6946,7 +7523,15 @@ type EvaluationResultResponse = components["schemas"]["EvaluationResultResponse"
|
|
|
6946
7523
|
/** Paginated list of evaluation results. */
|
|
6947
7524
|
type EvaluationResultListResponse = VersionedList<components["schemas"]["EvaluationResultListResponse"], "data">;
|
|
6948
7525
|
/** Request body for creating a manual evaluation result. */
|
|
6949
|
-
type CreateEvaluationResultRequest = components["schemas"]["CreateEvaluationResultRequest"]
|
|
7526
|
+
type CreateEvaluationResultRequest = Omit<WithServerDefaults<components["schemas"]["CreateEvaluationResultRequest"], "flagged">, "retry_count" | "retry_triggered"> & {
|
|
7527
|
+
/** @deprecated Has no effect on any count. */
|
|
7528
|
+
retry_count?: number;
|
|
7529
|
+
/**
|
|
7530
|
+
* @deprecated Retired: evaluations never retry a step. `true` returns HTTP 400
|
|
7531
|
+
* from `Seclai-Version` `2026-11-04`.
|
|
7532
|
+
*/
|
|
7533
|
+
retry_triggered?: boolean;
|
|
7534
|
+
};
|
|
6950
7535
|
/** Summary of evaluation results for a criteria. */
|
|
6951
7536
|
type EvaluationResultSummaryResponse = components["schemas"]["EvaluationResultSummaryResponse"];
|
|
6952
7537
|
/** Evaluation result with its associated criteria. */
|
|
@@ -6982,7 +7567,7 @@ type NonManualEvaluationSummaryResponse = components["schemas"]["schemas__v1__ag
|
|
|
6982
7567
|
/** Per-mode stats within a non-manual evaluation summary. */
|
|
6983
7568
|
type NonManualEvaluationModeStatResponse = components["schemas"]["schemas__v1__agent_evaluations__NonManualEvaluationModeStatResponse"];
|
|
6984
7569
|
/** Request for testing a draft evaluation. */
|
|
6985
|
-
type TestDraftEvaluationRequest = components["schemas"]["TestDraftEvaluationRequest"]
|
|
7570
|
+
type TestDraftEvaluationRequest = WithServerDefaults<components["schemas"]["TestDraftEvaluationRequest"], "pass_threshold">;
|
|
6986
7571
|
/**
|
|
6987
7572
|
* Response from testing a draft evaluation. When `status` is `error` (no
|
|
6988
7573
|
* verdict), `score` and `passed` are `null` with `apiVersion` `2026-10-21` or
|
|
@@ -7009,12 +7594,20 @@ type KnowledgeBaseResponse = components["schemas"]["KnowledgeBaseResponseModel"]
|
|
|
7009
7594
|
type CreateKnowledgeBaseBody = components["schemas"]["CreateKnowledgeBaseBody"];
|
|
7010
7595
|
/** Request body for updating a knowledge base. */
|
|
7011
7596
|
type UpdateKnowledgeBaseBody = components["schemas"]["UpdateKnowledgeBaseBody"];
|
|
7597
|
+
/** Item-metadata keys seen in a knowledge base's content, per time window. */
|
|
7598
|
+
type KnowledgeBaseMetadataKeyStatsResponse = components["schemas"]["KnowledgeBaseMetadataKeyStatsResponse"];
|
|
7599
|
+
/** The item-metadata keys seen in one window (`all_time`, `last_30_days` or `last_7_days`). */
|
|
7600
|
+
type MetadataKeyWindowResponse = components["schemas"]["MetadataKeyWindowResponse"];
|
|
7601
|
+
/** One item-metadata key: how many items carry it, how many values it takes, and its top values. */
|
|
7602
|
+
type MetadataKeyCountResponse = components["schemas"]["MetadataKeyCountResponse"];
|
|
7603
|
+
/** One value of an item-metadata key and how many items carry it. */
|
|
7604
|
+
type MetadataValueCountResponse = components["schemas"]["MetadataValueCountResponse"];
|
|
7012
7605
|
/** Paginated list of memory banks. */
|
|
7013
7606
|
type MemoryBankListResponse = VersionedList<components["schemas"]["MemoryBankListResponseModel"], "memory_banks">;
|
|
7014
7607
|
/** Full memory bank configuration and metadata. */
|
|
7015
7608
|
type MemoryBankResponse = components["schemas"]["MemoryBankResponseModel"];
|
|
7016
7609
|
/** Request body for creating a memory bank. */
|
|
7017
|
-
type CreateMemoryBankBody = components["schemas"]["CreateMemoryBankBody"]
|
|
7610
|
+
type CreateMemoryBankBody = WithServerDefaults<components["schemas"]["CreateMemoryBankBody"], "mode" | "strip_quoted_reply_chains" | "type">;
|
|
7018
7611
|
/** Request body for updating a memory bank. */
|
|
7019
7612
|
type UpdateMemoryBankBody = components["schemas"]["UpdateMemoryBankBody"];
|
|
7020
7613
|
/** Memory bank AI assistant request. */
|
|
@@ -7030,11 +7623,11 @@ type MemoryBankLastConversationResponse = components["schemas"]["routers__api__m
|
|
|
7030
7623
|
/** Individual turn in a memory bank AI conversation. */
|
|
7031
7624
|
type MemoryBankConversationTurnResponse = components["schemas"]["routers__api__memory_banks__MemoryBankConversationTurnResponse"];
|
|
7032
7625
|
/** Compaction test request for memory banks. */
|
|
7033
|
-
type TestCompactionRequest = components["schemas"]["TestCompactionRequest"]
|
|
7626
|
+
type TestCompactionRequest = WithServerDefaults<components["schemas"]["TestCompactionRequest"], "entry_count">;
|
|
7034
7627
|
/** Compaction test response. */
|
|
7035
7628
|
type CompactionTestResponse = components["schemas"]["CompactionTestResponseModel"];
|
|
7036
7629
|
/** Standalone compaction test request. */
|
|
7037
|
-
type StandaloneTestCompactionRequest = components["schemas"]["StandaloneTestCompactionRequest"]
|
|
7630
|
+
type StandaloneTestCompactionRequest = WithServerDefaults<components["schemas"]["StandaloneTestCompactionRequest"], "bank_type" | "entry_count">;
|
|
7038
7631
|
/** Compaction evaluation model result. */
|
|
7039
7632
|
type CompactionEvaluationModel = components["schemas"]["CompactionEvaluationModel"];
|
|
7040
7633
|
/** Paginated list of sources. */
|
|
@@ -7047,12 +7640,19 @@ type SourceConnectionResponse = components["schemas"]["SourceConnectionResponseM
|
|
|
7047
7640
|
type CreateSourceBody = components["schemas"]["CreateSourceBody"];
|
|
7048
7641
|
/** Request body for updating a source. */
|
|
7049
7642
|
type UpdateSourceBody = components["schemas"]["UpdateSourceBody"];
|
|
7643
|
+
/** What a source does when it reaches `max_credits_per_period`: `stop` or `delete`. */
|
|
7644
|
+
type SpendCapAction = components["schemas"]["SpendCapAction"];
|
|
7645
|
+
/**
|
|
7646
|
+
* Which entries a `delete` spend cap removes first: `oldest_added`,
|
|
7647
|
+
* `oldest_published` or `largest_first`.
|
|
7648
|
+
*/
|
|
7649
|
+
type SpendCapDeleteOrder = components["schemas"]["SpendCapDeleteOrder"];
|
|
7050
7650
|
/** Upload response for file uploads to a source. */
|
|
7051
7651
|
type FileUploadResponse = components["schemas"]["routers__api__sources__FileUploadResponse"];
|
|
7052
7652
|
/** Request body for uploading inline text to a source. */
|
|
7053
|
-
type InlineTextUploadRequest = components["schemas"]["InlineTextUploadRequest"]
|
|
7653
|
+
type InlineTextUploadRequest = WithServerDefaults<components["schemas"]["InlineTextUploadRequest"], "content_type">;
|
|
7054
7654
|
/** Request body for replacing content with inline text. */
|
|
7055
|
-
type InlineTextReplaceRequest = components["schemas"]["InlineTextReplaceRequest"]
|
|
7655
|
+
type InlineTextReplaceRequest = WithServerDefaults<components["schemas"]["InlineTextReplaceRequest"], "content_type">;
|
|
7056
7656
|
/** One content item's indexing status within a source. */
|
|
7057
7657
|
type SourceContentStatusResponse = components["schemas"]["SourceContentStatusResponse"];
|
|
7058
7658
|
/** Paginated list of a source's content items and their indexing status. */
|
|
@@ -7123,7 +7723,7 @@ type SolutionResponse = components["schemas"]["routers__api__solutions__Solution
|
|
|
7123
7723
|
/** Summary of a solution. */
|
|
7124
7724
|
type SolutionSummaryResponse = components["schemas"]["SolutionSummaryResponse"];
|
|
7125
7725
|
/** Request body for creating a solution. */
|
|
7126
|
-
type CreateSolutionRequest = components["schemas"]["CreateSolutionRequest"]
|
|
7726
|
+
type CreateSolutionRequest = WithServerDefaults<components["schemas"]["CreateSolutionRequest"], "description">;
|
|
7127
7727
|
/** Request body for updating a solution. */
|
|
7128
7728
|
type UpdateSolutionRequest = components["schemas"]["UpdateSolutionRequest"];
|
|
7129
7729
|
/** Agent within a solution. */
|
|
@@ -7143,7 +7743,7 @@ type AiAssistantGenerateRequest = components["schemas"]["routers__api__solutions
|
|
|
7143
7743
|
/** AI assistant generate response for solutions. */
|
|
7144
7744
|
type AiAssistantGenerateResponse = components["schemas"]["AiAssistantGenerateResponse"];
|
|
7145
7745
|
/** AI assistant accept request for solutions. */
|
|
7146
|
-
type AiAssistantAcceptRequest = components["schemas"]["routers__api__solutions__AiAssistantAcceptRequest"]
|
|
7746
|
+
type AiAssistantAcceptRequest = WithServerDefaults<components["schemas"]["routers__api__solutions__AiAssistantAcceptRequest"], "confirm_deletions">;
|
|
7147
7747
|
/** AI assistant accept response for solutions. */
|
|
7148
7748
|
type AiAssistantAcceptResponse = components["schemas"]["AiAssistantAcceptResponse"];
|
|
7149
7749
|
/** Proposed action in a solution AI plan. */
|
|
@@ -7167,7 +7767,7 @@ type GovernanceProposedPolicyActionResponse = components["schemas"]["ProposedPol
|
|
|
7167
7767
|
/** Applied policy action from governance AI. */
|
|
7168
7768
|
type GovernanceAppliedActionResponse = components["schemas"]["AppliedActionResponse"];
|
|
7169
7769
|
/** Request body for creating an alert config. */
|
|
7170
|
-
type CreateAlertConfigRequest = components["schemas"]["CreateAlertConfigRequest"]
|
|
7770
|
+
type CreateAlertConfigRequest = WithServerDefaults<components["schemas"]["CreateAlertConfigRequest"], "distribution_type" | "enabled">;
|
|
7171
7771
|
/** Request body for updating an alert config. */
|
|
7172
7772
|
type UpdateAlertConfigRequest = components["schemas"]["UpdateAlertConfigRequest"];
|
|
7173
7773
|
/** Request body to change alert status. */
|
|
@@ -7213,7 +7813,7 @@ type VariantCategoryResponse = components["schemas"]["VariantCategoryResponse"];
|
|
|
7213
7813
|
/** Variant option with credit pricing and context limits. */
|
|
7214
7814
|
type VariantOptionResponse = components["schemas"]["VariantOptionResponse"];
|
|
7215
7815
|
/** Request body for creating a model playground experiment. */
|
|
7216
|
-
type PlaygroundCreateRequest = components["schemas"]["PlaygroundCreateRequest"]
|
|
7816
|
+
type PlaygroundCreateRequest = WithServerDefaults<components["schemas"]["PlaygroundCreateRequest"], "evaluation_complexity" | "evaluation_mode" | "include_step_output_in_evaluation" | "system_prompt">;
|
|
7217
7817
|
/**
|
|
7218
7818
|
* Input type for {@link SeclaiClient.createExperiment}.
|
|
7219
7819
|
*
|
|
@@ -7222,7 +7822,7 @@ type PlaygroundCreateRequest = components["schemas"]["PlaygroundCreateRequest"];
|
|
|
7222
7822
|
*/
|
|
7223
7823
|
type CreateExperimentInput = Pick<PlaygroundCreateRequest, "model_ids" | "prompt"> & Partial<Omit<PlaygroundCreateRequest, "model_ids" | "prompt">>;
|
|
7224
7824
|
/** Request body for adding a vanity or custom agent-email domain. */
|
|
7225
|
-
type AddEmailDomainRequest = components["schemas"]["AddEmailDomainRequest"]
|
|
7825
|
+
type AddEmailDomainRequest = WithServerDefaults<components["schemas"]["AddEmailDomainRequest"], "delegated">;
|
|
7226
7826
|
/**
|
|
7227
7827
|
* Input type for {@link Seclai.addEmailDomain}.
|
|
7228
7828
|
*
|
|
@@ -7276,6 +7876,122 @@ interface SortableListOptions extends ListOptions {
|
|
|
7276
7876
|
/** Sort order. */
|
|
7277
7877
|
order?: "asc" | "desc";
|
|
7278
7878
|
}
|
|
7879
|
+
/** Filters for {@link Seclai.listAgentExamples}. */
|
|
7880
|
+
interface ListAgentExamplesOptions extends ListOptions {
|
|
7881
|
+
/** Words every matching example must contain. */
|
|
7882
|
+
query?: string;
|
|
7883
|
+
/** Only examples for this use case. */
|
|
7884
|
+
useCase?: string;
|
|
7885
|
+
}
|
|
7886
|
+
/** Filters for {@link Seclai.listSolutions}. */
|
|
7887
|
+
interface ListSolutionsOptions extends SortableListOptions {
|
|
7888
|
+
/** Keep solutions whose name contains this text (case-insensitive). */
|
|
7889
|
+
search?: string;
|
|
7890
|
+
}
|
|
7891
|
+
/** Filters for {@link Seclai.listMemoryBanks}. */
|
|
7892
|
+
interface ListMemoryBanksOptions extends SortableListOptions {
|
|
7893
|
+
/** Keep only one bank type. */
|
|
7894
|
+
type?: "conversation" | "general" | (string & {});
|
|
7895
|
+
}
|
|
7896
|
+
/** Filters for {@link Seclai.listEvaluationResults}. */
|
|
7897
|
+
interface ListEvaluationResultsOptions extends ListOptions {
|
|
7898
|
+
/** Keep only one result status. */
|
|
7899
|
+
status?: string;
|
|
7900
|
+
/** Keep only flagged results. Defaults to `false`. */
|
|
7901
|
+
flaggedOnly?: boolean;
|
|
7902
|
+
/** Earliest result time, ISO 8601. */
|
|
7903
|
+
timeFrom?: string;
|
|
7904
|
+
/** Latest result time, ISO 8601. */
|
|
7905
|
+
timeTo?: string;
|
|
7906
|
+
}
|
|
7907
|
+
/** Filters for {@link Seclai.listAgentEvaluationResults}. */
|
|
7908
|
+
interface ListAgentEvaluationResultsOptions extends ListEvaluationResultsOptions {
|
|
7909
|
+
/** Keep only results for this agent step. */
|
|
7910
|
+
step?: string;
|
|
7911
|
+
}
|
|
7912
|
+
/** Filters for {@link Seclai.listEvaluationRuns}: those of {@link ListAgentEvaluationResultsOptions} except `flaggedOnly`. */
|
|
7913
|
+
type ListEvaluationRunsOptions = Omit<ListAgentEvaluationResultsOptions, "flaggedOnly">;
|
|
7914
|
+
/** Filters for {@link Seclai.listCompatibleRuns}. */
|
|
7915
|
+
interface ListCompatibleRunsOptions extends ListOptions {
|
|
7916
|
+
/** Only runs started after this time, ISO 8601. */
|
|
7917
|
+
startedAfter?: string;
|
|
7918
|
+
}
|
|
7919
|
+
/**
|
|
7920
|
+
* Date range for {@link Seclai.getNonManualEvaluationSummary},
|
|
7921
|
+
* {@link Seclai.getMemoryBankStats} and {@link Seclai.listExperiments}. Each
|
|
7922
|
+
* endpoint combines the dates with `days` its own way; see the method.
|
|
7923
|
+
*/
|
|
7924
|
+
interface DateRangeOptions {
|
|
7925
|
+
/** Days back from today. The server defaults to 30. */
|
|
7926
|
+
days?: number;
|
|
7927
|
+
/** First day, `YYYY-MM-DD`. */
|
|
7928
|
+
startDate?: string;
|
|
7929
|
+
/** Last day, `YYYY-MM-DD`. */
|
|
7930
|
+
endDate?: string;
|
|
7931
|
+
}
|
|
7932
|
+
/** Offset paging. Each method documents its server defaults and bounds. */
|
|
7933
|
+
interface OffsetPageOptions {
|
|
7934
|
+
/** Most items to return. */
|
|
7935
|
+
limit?: number;
|
|
7936
|
+
/** Items to skip. */
|
|
7937
|
+
offset?: number;
|
|
7938
|
+
}
|
|
7939
|
+
/** Filters for {@link Seclai.listAlerts}. */
|
|
7940
|
+
interface ListAlertsOptions extends ListOptions {
|
|
7941
|
+
/** Keep only one alert status. */
|
|
7942
|
+
status?: string;
|
|
7943
|
+
/**
|
|
7944
|
+
* Accepted for compatibility and never sent: `GET /alerts` has no severity
|
|
7945
|
+
* filter.
|
|
7946
|
+
*
|
|
7947
|
+
* @deprecated The API has no severity filter; this never filtered anything.
|
|
7948
|
+
*/
|
|
7949
|
+
severity?: string;
|
|
7950
|
+
/** Keep only alerts for this agent. */
|
|
7951
|
+
agentId?: string;
|
|
7952
|
+
/** Keep only alerts for this source connection. */
|
|
7953
|
+
sourceConnectionId?: string;
|
|
7954
|
+
/** Earliest alert time, ISO 8601. */
|
|
7955
|
+
timeFrom?: string;
|
|
7956
|
+
/** Latest alert time, ISO 8601. */
|
|
7957
|
+
timeTo?: string;
|
|
7958
|
+
}
|
|
7959
|
+
/** Filters for {@link Seclai.listAlertConfigs}. */
|
|
7960
|
+
interface ListAlertConfigsOptions extends ListOptions {
|
|
7961
|
+
/** Keep only configs for this agent. */
|
|
7962
|
+
agentId?: string;
|
|
7963
|
+
/** Keep only configs for this source connection. */
|
|
7964
|
+
sourceConnectionId?: string;
|
|
7965
|
+
/** `source` lists the account-level source alert configs. */
|
|
7966
|
+
scope?: "source" | (string & {});
|
|
7967
|
+
}
|
|
7968
|
+
/** Filters for {@link Seclai.listOrganizationAlertPreferences}. */
|
|
7969
|
+
interface ListOrganizationAlertPreferencesOptions {
|
|
7970
|
+
/** Keep only one organization's preferences. */
|
|
7971
|
+
organizationId?: string;
|
|
7972
|
+
/** Also list the default subscription for every alert type. Defaults to `false`. */
|
|
7973
|
+
includeDefaults?: boolean;
|
|
7974
|
+
}
|
|
7975
|
+
/** Filters for {@link Seclai.listModelAlerts}. */
|
|
7976
|
+
interface ListModelAlertsOptions extends ListOptions {
|
|
7977
|
+
/** Keep only alerts for this agent. */
|
|
7978
|
+
agentId?: string;
|
|
7979
|
+
/** Keep only unread alerts. Defaults to `false`. */
|
|
7980
|
+
unreadOnly?: boolean;
|
|
7981
|
+
}
|
|
7982
|
+
/** Requirements for {@link Seclai.getModelRecommendations}. */
|
|
7983
|
+
interface ModelRecommendationsOptions {
|
|
7984
|
+
/** Only models that support tool use. */
|
|
7985
|
+
requireToolUse?: boolean;
|
|
7986
|
+
/** Only models that support structured output. */
|
|
7987
|
+
requireStructuredOutput?: boolean;
|
|
7988
|
+
/** Only models that support thinking. */
|
|
7989
|
+
requireThinking?: boolean;
|
|
7990
|
+
/** Smallest acceptable context window, in tokens. */
|
|
7991
|
+
minContextTokens?: number;
|
|
7992
|
+
/** Smallest acceptable output limit, in tokens. */
|
|
7993
|
+
minOutputTokens?: number;
|
|
7994
|
+
}
|
|
7279
7995
|
|
|
7280
7996
|
/** Default API base URL (can be overridden with `baseUrl` or `SECLAI_API_URL`). */
|
|
7281
7997
|
declare const SECLAI_API_URL = "https://api.seclai.com";
|
|
@@ -7500,6 +8216,16 @@ declare class Seclai {
|
|
|
7500
8216
|
* @returns Paginated list of agents.
|
|
7501
8217
|
*/
|
|
7502
8218
|
listAgents(opts?: ListOptions): Promise<AgentListResponse>;
|
|
8219
|
+
/**
|
|
8220
|
+
* List the agent gallery: example agents to start from.
|
|
8221
|
+
*
|
|
8222
|
+
* Pass an entry's `key` as `agent_template` to {@link createAgent}, with
|
|
8223
|
+
* `resource_bindings` for the resources it needs.
|
|
8224
|
+
*
|
|
8225
|
+
* @param opts - Text search, use-case filter and pagination.
|
|
8226
|
+
* @returns A page of gallery entries.
|
|
8227
|
+
*/
|
|
8228
|
+
listAgentExamples(opts?: ListAgentExamplesOptions): Promise<AgentExampleListResponse>;
|
|
7503
8229
|
/**
|
|
7504
8230
|
* Create a new agent.
|
|
7505
8231
|
*
|
|
@@ -7667,15 +8393,63 @@ declare class Seclai {
|
|
|
7667
8393
|
* takes no `include_reasoning`, and one passed anyway is not sent: this method
|
|
7668
8394
|
* returns no `stream_reasoning` events.
|
|
7669
8395
|
*
|
|
8396
|
+
* A `result` event carries the run's answer in `output` once
|
|
8397
|
+
* `result_reported_at` is set, and can arrive while later steps still run.
|
|
8398
|
+
* Pass `returnOnResult: true` to return that `result` snapshot as soon as it
|
|
8399
|
+
* arrives, without waiting for `done`. Such a run may still be in progress:
|
|
8400
|
+
* its `status` is not terminal and the run can still fail, so check
|
|
8401
|
+
* `result_reported_at`, not `status`.
|
|
8402
|
+
*
|
|
8403
|
+
* If `timeoutMs` elapses, this throws {@link SeclaiStreamingError} with the
|
|
8404
|
+
* latest snapshot in `run`: the `result` snapshot if one arrived, else the
|
|
8405
|
+
* `init` snapshot. An abort from `signal` rethrows the abort error.
|
|
8406
|
+
*
|
|
8407
|
+
* By default, a stream that ends before `done` returns the latest snapshot
|
|
8408
|
+
* when its status is not `pending`, so the run returned may not have
|
|
8409
|
+
* finished: check `status` and `result_reported_at`. A stream that breaks
|
|
8410
|
+
* throws the fetch error. Pass `throwOnIncomplete: true` to throw
|
|
8411
|
+
* {@link SeclaiStreamingError} with the snapshot in `run` in both cases
|
|
8412
|
+
* instead; it is recommended, and becomes the default in the next major
|
|
8413
|
+
* version.
|
|
8414
|
+
*
|
|
7670
8415
|
* @param agentId - Agent identifier.
|
|
7671
8416
|
* @param body - Streaming run request payload, without `include_reasoning`.
|
|
7672
|
-
* @param opts - Timeout
|
|
7673
|
-
* @returns
|
|
7674
|
-
*
|
|
8417
|
+
* @param opts - Timeout, abort signal and `returnOnResult` options.
|
|
8418
|
+
* @returns The run from the `done` event; with `returnOnResult`, the
|
|
8419
|
+
* `result` snapshot; without `throwOnIncomplete`, possibly an unfinished
|
|
8420
|
+
* snapshot (see above).
|
|
8421
|
+
* @throws {@link SeclaiStreamingError} If `timeoutMs` elapses, or, with
|
|
8422
|
+
* `throwOnIncomplete`, the stream ends or breaks, before the run finished.
|
|
8423
|
+
* Its `run` holds the latest snapshot.
|
|
8424
|
+
*
|
|
8425
|
+
* @example
|
|
8426
|
+
* ```ts
|
|
8427
|
+
* try {
|
|
8428
|
+
* const run = await client.runStreamingAgentAndWait("agent-id", { input: "Hello" }, { throwOnIncomplete: true });
|
|
8429
|
+
* console.log(run.output);
|
|
8430
|
+
* } catch (err) {
|
|
8431
|
+
* if (err instanceof SeclaiStreamingError && err.run?.result_reported_at) {
|
|
8432
|
+
* console.log("Answer (run not finished):", err.run.output);
|
|
8433
|
+
* } else throw err;
|
|
8434
|
+
* }
|
|
8435
|
+
* ```
|
|
7675
8436
|
*/
|
|
7676
8437
|
runStreamingAgentAndWait(agentId: string, body: Omit<AgentRunStreamRequest, "include_reasoning">, opts?: {
|
|
7677
8438
|
timeoutMs?: number;
|
|
7678
8439
|
signal?: AbortSignal;
|
|
8440
|
+
/**
|
|
8441
|
+
* Return the `result` snapshot as soon as a `result` event arrives (its
|
|
8442
|
+
* answer is in `output`), without waiting for `done` (default: false).
|
|
8443
|
+
*/
|
|
8444
|
+
returnOnResult?: boolean;
|
|
8445
|
+
/**
|
|
8446
|
+
* Throw {@link SeclaiStreamingError}, with the latest snapshot in `run`,
|
|
8447
|
+
* whenever the stream ends or breaks before `done`, or the server answers
|
|
8448
|
+
* with plain JSON for a run that has not finished, instead of returning
|
|
8449
|
+
* an unfinished run or throwing the fetch error (default: false). This
|
|
8450
|
+
* becomes the default in the next major version.
|
|
8451
|
+
*/
|
|
8452
|
+
throwOnIncomplete?: boolean;
|
|
7679
8453
|
}): Promise<AgentRunResponse>;
|
|
7680
8454
|
/**
|
|
7681
8455
|
* Run an agent in streaming mode and yield each SSE event as it arrives.
|
|
@@ -7691,6 +8465,10 @@ declare class Seclai {
|
|
|
7691
8465
|
* @example
|
|
7692
8466
|
* ```ts
|
|
7693
8467
|
* for await (const event of client.runStreamingAgent("agent-id", { input: "Hello!" })) {
|
|
8468
|
+
* // `result` carries the answer in `output`, possibly before later steps finish.
|
|
8469
|
+
* if (event.event === "result") {
|
|
8470
|
+
* console.log("Answer:", (event.data as AgentRunResponse).output);
|
|
8471
|
+
* }
|
|
7694
8472
|
* if (event.event === "done") {
|
|
7695
8473
|
* console.log("Final:", event.data);
|
|
7696
8474
|
* }
|
|
@@ -7706,11 +8484,38 @@ declare class Seclai {
|
|
|
7706
8484
|
*
|
|
7707
8485
|
* This is useful in environments where SSE streaming is unavailable.
|
|
7708
8486
|
*
|
|
8487
|
+
* A run's answer can be ready before its last step finishes: once
|
|
8488
|
+
* `result_reported_at` is set, `output` holds the answer. Pass
|
|
8489
|
+
* `returnOnResult: true` to return as soon as a run has it set, the run
|
|
8490
|
+
* `runAgent()` returns included. With `includeStepOutputs`, when that run
|
|
8491
|
+
* would end the poll and `signal` is not aborted, it is fetched again at
|
|
8492
|
+
* once for its step outputs.
|
|
8493
|
+
* Such a run may still be in progress: its `status` is not terminal and the
|
|
8494
|
+
* run can still fail, so check `result_reported_at`, not `status`.
|
|
8495
|
+
*
|
|
8496
|
+
* When `timeoutMs` elapses first, this throws {@link SeclaiStreamingError}
|
|
8497
|
+
* with the latest run it has (the `runAgent()` response if no poll ran) in
|
|
8498
|
+
* `run`. If that run has `result_reported_at`
|
|
8499
|
+
* set, its `output` is the answer.
|
|
8500
|
+
*
|
|
8501
|
+
* `signal` is checked at the top of each poll, after the check for a run
|
|
8502
|
+
* that ends the poll. A run that has ended the poll by then, whether the
|
|
8503
|
+
* start run or a polled one, is returned even after an abort; the start run
|
|
8504
|
+
* then comes back without step outputs, even when `includeStepOutputs` is
|
|
8505
|
+
* set. Otherwise an abort throws `SeclaiError("Polling aborted.")`, which is
|
|
8506
|
+
* not an `AbortError` and does not carry `signal.reason`.
|
|
8507
|
+
*
|
|
7709
8508
|
* @param agentId - Agent identifier.
|
|
7710
8509
|
* @param body - Run request payload.
|
|
7711
8510
|
* @param opts - Polling configuration and abort signal.
|
|
7712
|
-
* @returns The terminal agent run
|
|
7713
|
-
*
|
|
8511
|
+
* @returns The terminal agent run, or, with `returnOnResult`, the first run
|
|
8512
|
+
* with `result_reported_at` set.
|
|
8513
|
+
* @throws {@link SeclaiStreamingError} If `timeoutMs` elapses before the run
|
|
8514
|
+
* finished. Its `run` holds the latest run it has (the `runAgent()`
|
|
8515
|
+
* response if no poll ran).
|
|
8516
|
+
* @throws {@link SeclaiError} `"Polling aborted."` If `signal` is aborted and,
|
|
8517
|
+
* at the next poll's check, the run has not ended the poll. It is not an
|
|
8518
|
+
* `AbortError` and does not carry `signal.reason`.
|
|
7714
8519
|
*/
|
|
7715
8520
|
runAgentAndPoll(agentId: string, body: AgentRunRequest, opts?: {
|
|
7716
8521
|
/** Polling interval in ms (default: 2000). */
|
|
@@ -7719,6 +8524,12 @@ declare class Seclai {
|
|
|
7719
8524
|
timeoutMs?: number;
|
|
7720
8525
|
/** Include per-step outputs in the final result. */
|
|
7721
8526
|
includeStepOutputs?: boolean;
|
|
8527
|
+
/**
|
|
8528
|
+
* Return as soon as a run, the `runAgent()` response included, has
|
|
8529
|
+
* `result_reported_at` set (its answer is in `output`), without waiting
|
|
8530
|
+
* for later steps to finish (default: false).
|
|
8531
|
+
*/
|
|
8532
|
+
returnOnResult?: boolean;
|
|
7722
8533
|
signal?: AbortSignal;
|
|
7723
8534
|
}): Promise<AgentRunResponse>;
|
|
7724
8535
|
/**
|
|
@@ -7883,9 +8694,9 @@ declare class Seclai {
|
|
|
7883
8694
|
* List evaluation results for a specific criteria.
|
|
7884
8695
|
*
|
|
7885
8696
|
* @param criteriaId - Criteria identifier.
|
|
7886
|
-
* @param opts - Pagination
|
|
8697
|
+
* @param opts - Pagination, status, flag and time-range filters.
|
|
7887
8698
|
*/
|
|
7888
|
-
listEvaluationResults(criteriaId: string, opts?:
|
|
8699
|
+
listEvaluationResults(criteriaId: string, opts?: ListEvaluationResultsOptions): Promise<EvaluationResultListResponse>;
|
|
7889
8700
|
/**
|
|
7890
8701
|
* Create a manual evaluation result for a criteria.
|
|
7891
8702
|
*
|
|
@@ -7898,9 +8709,9 @@ declare class Seclai {
|
|
|
7898
8709
|
* List runs compatible with a specific evaluation criteria.
|
|
7899
8710
|
*
|
|
7900
8711
|
* @param criteriaId - Criteria identifier.
|
|
7901
|
-
* @param opts - Pagination
|
|
8712
|
+
* @param opts - Pagination and a `startedAfter` filter.
|
|
7902
8713
|
*/
|
|
7903
|
-
listCompatibleRuns(criteriaId: string, opts?:
|
|
8714
|
+
listCompatibleRuns(criteriaId: string, opts?: ListCompatibleRunsOptions): Promise<CompatibleRunListResponse>;
|
|
7904
8715
|
/**
|
|
7905
8716
|
* Test a draft evaluation criteria without persisting it.
|
|
7906
8717
|
*
|
|
@@ -7913,22 +8724,25 @@ declare class Seclai {
|
|
|
7913
8724
|
* List all evaluation results for an agent.
|
|
7914
8725
|
*
|
|
7915
8726
|
* @param agentId - Agent identifier.
|
|
7916
|
-
* @param opts - Pagination
|
|
8727
|
+
* @param opts - Pagination, status, step, flag and time-range filters.
|
|
7917
8728
|
*/
|
|
7918
|
-
listAgentEvaluationResults(agentId: string, opts?:
|
|
8729
|
+
listAgentEvaluationResults(agentId: string, opts?: ListAgentEvaluationResultsOptions): Promise<EvaluationResultWithCriteriaListResponse>;
|
|
7919
8730
|
/**
|
|
7920
8731
|
* List evaluation run summaries for an agent.
|
|
7921
8732
|
*
|
|
7922
8733
|
* @param agentId - Agent identifier.
|
|
7923
|
-
* @param opts - Pagination
|
|
8734
|
+
* @param opts - Pagination, status, step and time-range filters.
|
|
7924
8735
|
*/
|
|
7925
|
-
listEvaluationRuns(agentId: string, opts?:
|
|
8736
|
+
listEvaluationRuns(agentId: string, opts?: ListEvaluationRunsOptions): Promise<EvaluationRunSummaryListResponse>;
|
|
7926
8737
|
/**
|
|
7927
|
-
* Get a summary of non-manual evaluations
|
|
8738
|
+
* Get a summary of non-manual evaluations, for one agent or the whole account.
|
|
7928
8739
|
*
|
|
7929
|
-
* @param agentId - Agent identifier.
|
|
8740
|
+
* @param agentId - Agent identifier. Omit (pass `undefined`) for the account-wide summary.
|
|
8741
|
+
* @param opts - Date range. `startDate` and `endDate` together set the range;
|
|
8742
|
+
* `startDate` alone runs from it through today; otherwise the last `days`
|
|
8743
|
+
* days apply (server default 30), and an `endDate` without `startDate` is ignored.
|
|
7930
8744
|
*/
|
|
7931
|
-
getNonManualEvaluationSummary(agentId
|
|
8745
|
+
getNonManualEvaluationSummary(agentId?: string, opts?: DateRangeOptions): Promise<NonManualEvaluationSummaryResponse>;
|
|
7932
8746
|
/**
|
|
7933
8747
|
* Configure an agent's `EMAIL_RECEIVED` trigger and return its computed
|
|
7934
8748
|
* email address(es).
|
|
@@ -7943,6 +8757,20 @@ declare class Seclai {
|
|
|
7943
8757
|
* @returns The trigger's resolved addresses and config.
|
|
7944
8758
|
*/
|
|
7945
8759
|
setEmailTriggerConfig(agentId: string, triggerId: string, body: SetEmailTriggerConfigRequest): Promise<EmailTriggerConfigResponse>;
|
|
8760
|
+
/**
|
|
8761
|
+
* Configure an agent's `SLACK_COMMAND` trigger, which people run from Slack
|
|
8762
|
+
* with `/seclai` or the message shortcut.
|
|
8763
|
+
*
|
|
8764
|
+
* Sets the Slack connection, `alias` (the name people type after `/seclai`),
|
|
8765
|
+
* form, channels, reply visibility and conversation settings. Omitted fields
|
|
8766
|
+
* are left unchanged. `input` is deprecated and ignored by the API.
|
|
8767
|
+
*
|
|
8768
|
+
* @param agentId - Agent identifier.
|
|
8769
|
+
* @param triggerId - Trigger identifier.
|
|
8770
|
+
* @param body - The fields to set.
|
|
8771
|
+
* @returns The trigger's full Slack config, including any `missing_scopes`.
|
|
8772
|
+
*/
|
|
8773
|
+
setSlackTriggerConfig(agentId: string, triggerId: string, body: SetSlackTriggerConfigRequest): Promise<SlackTriggerConfigResponse>;
|
|
7946
8774
|
/**
|
|
7947
8775
|
* Replace the input attachments a trigger accepts.
|
|
7948
8776
|
*
|
|
@@ -7957,6 +8785,31 @@ declare class Seclai {
|
|
|
7957
8785
|
* @returns The trigger's accepted attachments.
|
|
7958
8786
|
*/
|
|
7959
8787
|
setAcceptedAttachments(agentId: string, triggerId: string, body: SetAcceptedAttachmentsInput): Promise<AcceptedAttachmentsResponse>;
|
|
8788
|
+
/**
|
|
8789
|
+
* Get the run metadata keys a trigger declares.
|
|
8790
|
+
*
|
|
8791
|
+
* Steps may reference a declared key as `{{metadata.<key>}}`. The response
|
|
8792
|
+
* also lists the system and source keys the trigger's type can declare.
|
|
8793
|
+
*
|
|
8794
|
+
* @param agentId - Agent identifier.
|
|
8795
|
+
* @param triggerId - Trigger identifier, as `getAgent()` returns it.
|
|
8796
|
+
* @returns The trigger's declared and declarable metadata keys.
|
|
8797
|
+
*/
|
|
8798
|
+
getMetadataKeys(agentId: string, triggerId: string): Promise<MetadataKeysResponse>;
|
|
8799
|
+
/**
|
|
8800
|
+
* Replace the run metadata keys a trigger declares.
|
|
8801
|
+
*
|
|
8802
|
+
* The body is the whole declaration and replaces the current one. The API
|
|
8803
|
+
* answers 400 when the agent references a key that no trigger of its branch
|
|
8804
|
+
* declares.
|
|
8805
|
+
*
|
|
8806
|
+
* @param agentId - Agent identifier.
|
|
8807
|
+
* @param triggerId - Trigger identifier, as `getAgent()` returns it.
|
|
8808
|
+
* @param body - The full declaration; each key's `required` defaults to `false`.
|
|
8809
|
+
* @returns The trigger's metadata keys, with `warnings` naming agents whose
|
|
8810
|
+
* `call_agent` mapping no longer fits.
|
|
8811
|
+
*/
|
|
8812
|
+
setMetadataKeys(agentId: string, triggerId: string, body: SetMetadataKeysRequest): Promise<MetadataKeysResponse>;
|
|
7960
8813
|
/**
|
|
7961
8814
|
* List recipients who have opted out of this account's agent emails.
|
|
7962
8815
|
*
|
|
@@ -7985,10 +8838,7 @@ declare class Seclai {
|
|
|
7985
8838
|
* @param opts.limit - Page size (1-200, default 50).
|
|
7986
8839
|
* @param opts.offset - Rows to skip (default 0).
|
|
7987
8840
|
*/
|
|
7988
|
-
listBlockedEmailSenders(opts?:
|
|
7989
|
-
limit?: number;
|
|
7990
|
-
offset?: number;
|
|
7991
|
-
}): Promise<BlockedEmailSenderListResponse>;
|
|
8841
|
+
listBlockedEmailSenders(opts?: OffsetPageOptions): Promise<BlockedEmailSenderListResponse>;
|
|
7992
8842
|
/**
|
|
7993
8843
|
* Add a sender address or a whole domain to the account blocklist.
|
|
7994
8844
|
*
|
|
@@ -8073,6 +8923,16 @@ declare class Seclai {
|
|
|
8073
8923
|
* @returns Knowledge base details.
|
|
8074
8924
|
*/
|
|
8075
8925
|
getKnowledgeBase(knowledgeBaseId: string): Promise<KnowledgeBaseResponse>;
|
|
8926
|
+
/**
|
|
8927
|
+
* Get the item-metadata keys seen in a knowledge base's content.
|
|
8928
|
+
*
|
|
8929
|
+
* Reports, for all time and the last 30 and 7 days, each key's item count,
|
|
8930
|
+
* number of distinct values and five most frequent values.
|
|
8931
|
+
*
|
|
8932
|
+
* @param knowledgeBaseId - Knowledge base identifier.
|
|
8933
|
+
* @returns The key statistics per window.
|
|
8934
|
+
*/
|
|
8935
|
+
getKnowledgeBaseMetadataKeyStats(knowledgeBaseId: string): Promise<KnowledgeBaseMetadataKeyStatsResponse>;
|
|
8076
8936
|
/**
|
|
8077
8937
|
* Update a knowledge base.
|
|
8078
8938
|
*
|
|
@@ -8090,10 +8950,10 @@ declare class Seclai {
|
|
|
8090
8950
|
/**
|
|
8091
8951
|
* List memory banks.
|
|
8092
8952
|
*
|
|
8093
|
-
* @param opts - Pagination and
|
|
8953
|
+
* @param opts - Pagination, sorting and a `type` filter.
|
|
8094
8954
|
* @returns Paginated list of memory banks.
|
|
8095
8955
|
*/
|
|
8096
|
-
listMemoryBanks(opts?:
|
|
8956
|
+
listMemoryBanks(opts?: ListMemoryBanksOptions): Promise<MemoryBankListResponse>;
|
|
8097
8957
|
/**
|
|
8098
8958
|
* Create a new memory bank.
|
|
8099
8959
|
*
|
|
@@ -8135,8 +8995,10 @@ declare class Seclai {
|
|
|
8135
8995
|
* Get stats for a memory bank.
|
|
8136
8996
|
*
|
|
8137
8997
|
* @param memoryBankId - Memory bank identifier.
|
|
8998
|
+
* @param opts - Date range. Only `startDate` and `endDate` together replace
|
|
8999
|
+
* `days`; either one alone is ignored and the last `days` days apply (server default 30).
|
|
8138
9000
|
*/
|
|
8139
|
-
getMemoryBankStats(memoryBankId: string): Promise<unknown>;
|
|
9001
|
+
getMemoryBankStats(memoryBankId: string, opts?: DateRangeOptions): Promise<unknown>;
|
|
8140
9002
|
/**
|
|
8141
9003
|
* Compact a memory bank (trigger compaction).
|
|
8142
9004
|
*
|
|
@@ -8175,8 +9037,10 @@ declare class Seclai {
|
|
|
8175
9037
|
generateMemoryBankConfig(body: MemoryBankAiAssistantRequest): Promise<MemoryBankAiAssistantResponse>;
|
|
8176
9038
|
/**
|
|
8177
9039
|
* Get the last AI conversation for memory banks.
|
|
9040
|
+
*
|
|
9041
|
+
* @param opts - Turns to return (server default 5) and most-recent turns to skip (default 0).
|
|
8178
9042
|
*/
|
|
8179
|
-
getMemoryBankAiLastConversation(): Promise<MemoryBankLastConversationResponse>;
|
|
9043
|
+
getMemoryBankAiLastConversation(opts?: OffsetPageOptions): Promise<MemoryBankLastConversationResponse>;
|
|
8180
9044
|
/**
|
|
8181
9045
|
* Accept a memory bank AI suggestion.
|
|
8182
9046
|
*
|
|
@@ -8474,10 +9338,10 @@ declare class Seclai {
|
|
|
8474
9338
|
/**
|
|
8475
9339
|
* List solutions.
|
|
8476
9340
|
*
|
|
8477
|
-
* @param opts - Pagination and
|
|
9341
|
+
* @param opts - Pagination, sorting and a name `search`.
|
|
8478
9342
|
* @returns Paginated list of solutions.
|
|
8479
9343
|
*/
|
|
8480
|
-
listSolutions(opts?:
|
|
9344
|
+
listSolutions(opts?: ListSolutionsOptions): Promise<SolutionListResponse>;
|
|
8481
9345
|
/**
|
|
8482
9346
|
* Create a new solution.
|
|
8483
9347
|
*
|
|
@@ -8626,8 +9490,12 @@ declare class Seclai {
|
|
|
8626
9490
|
generateGovernanceAiPlan(body: GovernanceAiAssistantRequest): Promise<GovernanceAiAssistantResponse>;
|
|
8627
9491
|
/**
|
|
8628
9492
|
* List governance AI conversations.
|
|
9493
|
+
*
|
|
9494
|
+
* @param opts - `limit`: how many conversations (the server defaults to 20).
|
|
8629
9495
|
*/
|
|
8630
|
-
listGovernanceAiConversations(
|
|
9496
|
+
listGovernanceAiConversations(opts?: {
|
|
9497
|
+
limit?: number;
|
|
9498
|
+
}): Promise<GovernanceConversationResponse[]>;
|
|
8631
9499
|
/**
|
|
8632
9500
|
* Accept a governance AI plan.
|
|
8633
9501
|
*
|
|
@@ -8647,10 +9515,7 @@ declare class Seclai {
|
|
|
8647
9515
|
* @param opts - Pagination and filter options.
|
|
8648
9516
|
* @returns Paginated list of alerts.
|
|
8649
9517
|
*/
|
|
8650
|
-
listAlerts(opts?:
|
|
8651
|
-
status?: string;
|
|
8652
|
-
severity?: string;
|
|
8653
|
-
}): Promise<AlertListResponse>;
|
|
9518
|
+
listAlerts(opts?: ListAlertsOptions): Promise<AlertListResponse>;
|
|
8654
9519
|
/**
|
|
8655
9520
|
* Get alert details by ID.
|
|
8656
9521
|
*
|
|
@@ -8694,7 +9559,7 @@ declare class Seclai {
|
|
|
8694
9559
|
* `configs` and `total` are populated on every API version; `data` and
|
|
8695
9560
|
* `pagination` are also present once `apiVersion` is 2026-07-27 or later.
|
|
8696
9561
|
*/
|
|
8697
|
-
listAlertConfigs(opts?:
|
|
9562
|
+
listAlertConfigs(opts?: ListAlertConfigsOptions): Promise<AlertConfigListResponse>;
|
|
8698
9563
|
/**
|
|
8699
9564
|
* Create an alert configuration.
|
|
8700
9565
|
*
|
|
@@ -8725,8 +9590,10 @@ declare class Seclai {
|
|
|
8725
9590
|
deleteAlertConfig(configId: string): Promise<void>;
|
|
8726
9591
|
/**
|
|
8727
9592
|
* List organization alert preferences.
|
|
9593
|
+
*
|
|
9594
|
+
* @param opts - Organization filter, and whether to include default subscriptions.
|
|
8728
9595
|
*/
|
|
8729
|
-
listOrganizationAlertPreferences(): Promise<OrganizationAlertPreferenceListResponse>;
|
|
9596
|
+
listOrganizationAlertPreferences(opts?: ListOrganizationAlertPreferencesOptions): Promise<OrganizationAlertPreferenceListResponse>;
|
|
8730
9597
|
/**
|
|
8731
9598
|
* Update an organization alert preference.
|
|
8732
9599
|
*
|
|
@@ -8738,9 +9605,9 @@ declare class Seclai {
|
|
|
8738
9605
|
/**
|
|
8739
9606
|
* List model alerts.
|
|
8740
9607
|
*
|
|
8741
|
-
* @param opts - Pagination
|
|
9608
|
+
* @param opts - Pagination, an agent filter and `unreadOnly`.
|
|
8742
9609
|
*/
|
|
8743
|
-
listModelAlerts(opts?:
|
|
9610
|
+
listModelAlerts(opts?: ListModelAlertsOptions): Promise<ModelAlertListResponse>;
|
|
8744
9611
|
/**
|
|
8745
9612
|
* Mark all model alerts as read.
|
|
8746
9613
|
*/
|
|
@@ -8759,8 +9626,9 @@ declare class Seclai {
|
|
|
8759
9626
|
* Get model recommendations.
|
|
8760
9627
|
*
|
|
8761
9628
|
* @param modelId - Model identifier.
|
|
9629
|
+
* @param opts - Capabilities and limits a recommended model must have.
|
|
8762
9630
|
*/
|
|
8763
|
-
getModelRecommendations(modelId: string): Promise<ModelRecommendationsResponse>;
|
|
9631
|
+
getModelRecommendations(modelId: string, opts?: ModelRecommendationsOptions): Promise<ModelRecommendationsResponse>;
|
|
8764
9632
|
/**
|
|
8765
9633
|
* List all enabled LLM models grouped by provider.
|
|
8766
9634
|
*
|
|
@@ -8813,15 +9681,11 @@ declare class Seclai {
|
|
|
8813
9681
|
/**
|
|
8814
9682
|
* List model playground experiments.
|
|
8815
9683
|
*
|
|
8816
|
-
* @param opts -
|
|
9684
|
+
* @param opts - Date range and offset paging. Only `startDate` and `endDate`
|
|
9685
|
+
* together replace `days`; either one alone is ignored and the last `days`
|
|
9686
|
+
* days apply (server default 30).
|
|
8817
9687
|
*/
|
|
8818
|
-
listExperiments(opts?:
|
|
8819
|
-
days?: number;
|
|
8820
|
-
startDate?: string;
|
|
8821
|
-
endDate?: string;
|
|
8822
|
-
limit?: number;
|
|
8823
|
-
offset?: number;
|
|
8824
|
-
}): Promise<ExperimentListResponse>;
|
|
9688
|
+
listExperiments(opts?: DateRangeOptions & OffsetPageOptions): Promise<ExperimentListResponse>;
|
|
8825
9689
|
/**
|
|
8826
9690
|
* Create a model playground experiment.
|
|
8827
9691
|
*
|
|
@@ -9077,8 +9941,10 @@ declare class Seclai {
|
|
|
9077
9941
|
aiAssistantMemoryBank(body: MemoryBankAiAssistantRequest): Promise<MemoryBankAiAssistantResponse>;
|
|
9078
9942
|
/**
|
|
9079
9943
|
* Get AI assistant memory bank conversation history.
|
|
9944
|
+
*
|
|
9945
|
+
* @param opts - Turns to return (server default 5) and most-recent turns to skip (default 0).
|
|
9080
9946
|
*/
|
|
9081
|
-
getAiAssistantMemoryBankHistory(): Promise<MemoryBankLastConversationResponse>;
|
|
9947
|
+
getAiAssistantMemoryBankHistory(opts?: OffsetPageOptions): Promise<MemoryBankLastConversationResponse>;
|
|
9082
9948
|
/**
|
|
9083
9949
|
* Accept an AI assistant suggestion.
|
|
9084
9950
|
*
|
|
@@ -9245,6 +10111,7 @@ interface AuthState {
|
|
|
9245
10111
|
* All errors extend {@link SeclaiError}, so a single `catch (err instanceof SeclaiError)`
|
|
9246
10112
|
* handles every SDK error. Narrow to more specific subclasses for finer handling.
|
|
9247
10113
|
*/
|
|
10114
|
+
|
|
9248
10115
|
/** Base error class for the Seclai SDK. */
|
|
9249
10116
|
declare class SeclaiError extends Error {
|
|
9250
10117
|
constructor(message: string);
|
|
@@ -9294,11 +10161,20 @@ declare class SeclaiAPIValidationError extends SeclaiAPIStatusError {
|
|
|
9294
10161
|
validationError: unknown;
|
|
9295
10162
|
});
|
|
9296
10163
|
}
|
|
9297
|
-
/**
|
|
10164
|
+
/**
|
|
10165
|
+
* Thrown when a streaming operation fails (e.g. stream ends unexpectedly), or
|
|
10166
|
+
* when a run helper stops waiting before the run finished.
|
|
10167
|
+
*/
|
|
9298
10168
|
declare class SeclaiStreamingError extends SeclaiError {
|
|
9299
10169
|
/** The run ID associated with the failed stream, when available. */
|
|
9300
10170
|
readonly runId: string | undefined;
|
|
9301
|
-
|
|
10171
|
+
/**
|
|
10172
|
+
* Set by `runStreamingAgentAndWait()` and `runAgentAndPoll()` to the latest
|
|
10173
|
+
* run they had, if any (when it has `result_reported_at` set, its `output`
|
|
10174
|
+
* is the answer). The run may still be in progress, and can still fail.
|
|
10175
|
+
*/
|
|
10176
|
+
readonly run: AgentRunResponse | undefined;
|
|
10177
|
+
constructor(message: string, runId?: string, run?: AgentRunResponse);
|
|
9302
10178
|
}
|
|
9303
10179
|
|
|
9304
|
-
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 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 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 ListOptions, type ListSourceContentsOptions, type MarkAiSuggestionRequest, type MarkConversationTurnRequest, type MeResponse, type MemoryBankAcceptRequest, type MemoryBankAiAssistantRequest, type MemoryBankAiAssistantResponse, type MemoryBankConfigResponse, type MemoryBankConversationTurnResponse, type MemoryBankLastConversationResponse, type MemoryBankListResponse, type MemoryBankResponse, type ModalityRateResponse, type ModelAlertListResponse, type ModelAlertResponse, type ModelRecommendationResponse, type ModelRecommendationsResponse, type NonManualEvaluationModeStatResponse, type NonManualEvaluationSummaryResponse, type OkResponse, type OrganizationAlertPreferenceListResponse, type OrganizationAlertPreferenceResponse, type OrganizationInfoResponse, type PaginatedPage, type PaginationResponse, type PendingProcessingCompletedFailedStatus, type PlaygroundCreateRequest, type PromptModelAutoUpgradeStrategy, type PromptModelResponse, type PromptToolResponse, type ProposedActionResponse, type ProviderGroupResponse, type RemoveEmailDomainResponse, type RerankerModelListResponse, type RerankerModelResponse, type ResumeInboundResponse, SECLAI_API_URL, type SearchResponse, type SearchResultResponse, Seclai, SeclaiAPIStatusError, SeclaiAPIValidationError, SeclaiApiVersion, SeclaiConfigurationError, SeclaiError, type SeclaiOptions, SeclaiStreamingError, type SendTestEmailResponse, type SetAcceptedAttachmentsInput, type SetAcceptedAttachmentsRequest, type SetAutoBlockModeRequest, type SetEmailTriggerConfigRequest, type SkippedAttachmentReason, type SkippedAttachmentResponse, type SolutionAgentResponse, type SolutionConversationResponse, type SolutionKnowledgeBaseResponse, type SolutionListResponse, type SolutionResponse, type SolutionSourceConnectionResponse, type SolutionSummaryResponse, type SortableListOptions, type SourceConnectionResponse, type SourceContentStatusListResponse, type SourceContentStatusResponse, type SourceEmbeddingMigrationResponse, type SourceIndexMode, type SourceListResponse, type SourceResponse, type SsoCacheEntry, type SsoProfile, type StandaloneTestCompactionRequest, type StartSourceEmbeddingMigrationRequest, type TestCompactionRequest, type TestDraftEvaluationRequest, type TestDraftEvaluationResponse, type UnlinkResourcesRequest, type UnreadCountResponse, type UpdateAgentDefinitionRequest, type UpdateAgentRequest, type UpdateAlertConfigRequest, type UpdateEvaluationCriteriaRequest, type UpdateKnowledgeBaseBody, type UpdateMemoryBankBody, type UpdateOrganizationAlertPreferenceRequest, type UpdateSolutionRequest, type UpdateSourceBody, type UploadAgentInputApiResponse, type ValidationError, type VariantCategoryResponse, type VariantOptionResponse, deleteSsoCache, isTokenValid, loadSsoProfile, readSsoCache, writeSsoCache };
|
|
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 };
|