@seclai/sdk 1.4.0 → 1.5.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 +32 -0
- package/README.md +54 -2
- package/dist/index.cjs +113 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +669 -26
- package/dist/index.d.ts +669 -26
- package/dist/index.js +112 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dated API versions known to this release, for use with the `apiVersion`
|
|
3
|
+
* client option.
|
|
4
|
+
*
|
|
5
|
+
* The set is open: the API adds versions without an SDK release, and
|
|
6
|
+
* {@link ApiVersion} widens to `string`, so a date newer than this release
|
|
7
|
+
* knows about can be passed directly. Treat these as convenience constants
|
|
8
|
+
* rather than an exhaustive list — `getApiVersion()` reports what the server
|
|
9
|
+
* actually supports.
|
|
10
|
+
*/
|
|
11
|
+
declare const SeclaiApiVersion: {
|
|
12
|
+
readonly V2026_07_01: "2026-07-01";
|
|
13
|
+
readonly V2026_07_27: "2026-07-27";
|
|
14
|
+
/** Baseline applied to an unpinned, header-less caller. */
|
|
15
|
+
readonly Default: "2026-07-01";
|
|
16
|
+
/** Newest version known to this SDK release. May lag the server. */
|
|
17
|
+
readonly Latest: "2026-07-27";
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* A dated API version. Known values autocomplete; any `YYYY-MM-DD` string still
|
|
21
|
+
* typechecks, but one this release was not built against is rejected at
|
|
22
|
+
* construction unless `allowUnknownApiVersion` is set.
|
|
23
|
+
*/
|
|
24
|
+
type ApiVersion = (typeof SeclaiApiVersion)[keyof typeof SeclaiApiVersion] | (string & {});
|
|
25
|
+
|
|
1
26
|
interface components {
|
|
2
27
|
schemas: {
|
|
3
28
|
/** AddConversationTurnRequest */
|
|
@@ -349,7 +374,7 @@ interface components {
|
|
|
349
374
|
output: string | null;
|
|
350
375
|
/**
|
|
351
376
|
* Output Content Type
|
|
352
|
-
* @description MIME type of `output` — mirrors the terminal step's `output_content_type`. Consumers interpret `output` differently depending on this value: `application/vnd.seclai.manifest+json` is a multi-asset manifest with shape `{text, attachments: [{storage_key, mime, name, bytes}]}` — fetch each attachment via `GET /
|
|
377
|
+
* @description MIME type of `output` — mirrors the terminal step's `output_content_type`. Consumers interpret `output` differently depending on this value: `application/vnd.seclai.manifest+json` is a multi-asset manifest with shape `{text, attachments: [{storage_key, mime, name, bytes}]}` — fetch each attachment via `GET /v2/agent-runs/{run_id}/attachments/{attachment_id}`, where `attachment_id` is the URL-safe base64 of the attachment's `storage_key` (accepts an API key or OAuth token). `text/plain` / `text/*` are free-form text. `application/json` is a JSON document. Null on runs that produced no terminal output or that pre-date this column.
|
|
353
378
|
*/
|
|
354
379
|
output_content_type?: string | null;
|
|
355
380
|
/**
|
|
@@ -837,6 +862,96 @@ interface components {
|
|
|
837
862
|
*/
|
|
838
863
|
user_input: string;
|
|
839
864
|
};
|
|
865
|
+
/**
|
|
866
|
+
* AlertConfigListResponse
|
|
867
|
+
* @description ``GET /alerts/configs`` legacy/default shape (header-less clients).
|
|
868
|
+
*
|
|
869
|
+
* ``Seclai-Version: 2026-07-27+`` clients receive the canonical
|
|
870
|
+
* ``{data, pagination}`` envelope instead (the handler returns a ``JSONResponse``
|
|
871
|
+
* that bypasses this ``response_model``); this documents the default shape.
|
|
872
|
+
*/
|
|
873
|
+
AlertConfigListResponse: {
|
|
874
|
+
/** Configs */
|
|
875
|
+
configs: components["schemas"]["AlertConfigResponse"][];
|
|
876
|
+
/** Total */
|
|
877
|
+
total: number;
|
|
878
|
+
};
|
|
879
|
+
/** AlertConfigResponse */
|
|
880
|
+
AlertConfigResponse: {
|
|
881
|
+
/** Account Id */
|
|
882
|
+
account_id: string;
|
|
883
|
+
/** Agent Id */
|
|
884
|
+
agent_id: string | null;
|
|
885
|
+
/** Alert Type */
|
|
886
|
+
alert_type: string;
|
|
887
|
+
/** Cooldown Minutes */
|
|
888
|
+
cooldown_minutes: number;
|
|
889
|
+
/** Created At */
|
|
890
|
+
created_at: string | null;
|
|
891
|
+
/** Distribution Type */
|
|
892
|
+
distribution_type: string;
|
|
893
|
+
/** Enabled */
|
|
894
|
+
enabled: boolean;
|
|
895
|
+
/** Id */
|
|
896
|
+
id: string;
|
|
897
|
+
/** Last Alerted At */
|
|
898
|
+
last_alerted_at: string | null;
|
|
899
|
+
/** Recipient User Ids */
|
|
900
|
+
recipient_user_ids: string[];
|
|
901
|
+
/** Source Connection Id */
|
|
902
|
+
source_connection_id: string | null;
|
|
903
|
+
/** Threshold */
|
|
904
|
+
threshold: {
|
|
905
|
+
[key: string]: unknown;
|
|
906
|
+
} | null;
|
|
907
|
+
/** Updated At */
|
|
908
|
+
updated_at: string | null;
|
|
909
|
+
};
|
|
910
|
+
/** AlertHistoryEntryResponse */
|
|
911
|
+
AlertHistoryEntryResponse: {
|
|
912
|
+
/** Changed By Name */
|
|
913
|
+
changed_by_name: string | null;
|
|
914
|
+
/** Changed By User Id */
|
|
915
|
+
changed_by_user_id: string | null;
|
|
916
|
+
/** Created At */
|
|
917
|
+
created_at: string | null;
|
|
918
|
+
/** Id */
|
|
919
|
+
id: string;
|
|
920
|
+
/** New Status */
|
|
921
|
+
new_status: string;
|
|
922
|
+
/** Note */
|
|
923
|
+
note: string | null;
|
|
924
|
+
/** Previous Status */
|
|
925
|
+
previous_status: string | null;
|
|
926
|
+
};
|
|
927
|
+
/** ApiVersionResponse */
|
|
928
|
+
ApiVersionResponse: {
|
|
929
|
+
/**
|
|
930
|
+
* Default Version
|
|
931
|
+
* @description Baseline for an unpinned, header-less caller.
|
|
932
|
+
*/
|
|
933
|
+
default_version: string;
|
|
934
|
+
/**
|
|
935
|
+
* Effective Version
|
|
936
|
+
* @description The version THIS request resolved to (header > pin > default).
|
|
937
|
+
*/
|
|
938
|
+
effective_version: string;
|
|
939
|
+
/**
|
|
940
|
+
* Known Versions
|
|
941
|
+
* @description All dated versions, oldest first.
|
|
942
|
+
*/
|
|
943
|
+
known_versions: string[];
|
|
944
|
+
/**
|
|
945
|
+
* Latest Version
|
|
946
|
+
* @description Newest version the server knows about.
|
|
947
|
+
*/
|
|
948
|
+
latest_version: string;
|
|
949
|
+
/**
|
|
950
|
+
* Pinned Version
|
|
951
|
+
* @description The account's sticky pinned version, or null when unpinned (the account resolves to the default). Applies to header-less requests.
|
|
952
|
+
*/
|
|
953
|
+
pinned_version: string | null;
|
|
954
|
+
};
|
|
840
955
|
/**
|
|
841
956
|
* AppliedActionResponse
|
|
842
957
|
* @description Result of a single executed governance action.
|
|
@@ -968,6 +1083,11 @@ interface components {
|
|
|
968
1083
|
*/
|
|
969
1084
|
title?: string;
|
|
970
1085
|
};
|
|
1086
|
+
/** CancelExperimentResponse */
|
|
1087
|
+
CancelExperimentResponse: {
|
|
1088
|
+
/** Status */
|
|
1089
|
+
status: string;
|
|
1090
|
+
};
|
|
971
1091
|
/** CancelQueuedRunsResponse */
|
|
972
1092
|
CancelQueuedRunsResponse: {
|
|
973
1093
|
/** Cancelled */
|
|
@@ -1007,6 +1127,16 @@ interface components {
|
|
|
1007
1127
|
*/
|
|
1008
1128
|
verdict: string;
|
|
1009
1129
|
};
|
|
1130
|
+
/**
|
|
1131
|
+
* CompactionScheduledResponse
|
|
1132
|
+
* @description Acknowledgement that an on-demand compaction run was scheduled.
|
|
1133
|
+
*/
|
|
1134
|
+
CompactionScheduledResponse: {
|
|
1135
|
+
/** Memory Bank Id */
|
|
1136
|
+
memory_bank_id: string;
|
|
1137
|
+
/** Status */
|
|
1138
|
+
status: string;
|
|
1139
|
+
};
|
|
1010
1140
|
/**
|
|
1011
1141
|
* CompactionTestResponseModel
|
|
1012
1142
|
* @description Response from a compaction prompt test.
|
|
@@ -1208,6 +1338,13 @@ interface components {
|
|
|
1208
1338
|
score?: number | null;
|
|
1209
1339
|
status: components["schemas"]["EvaluationStatus"];
|
|
1210
1340
|
};
|
|
1341
|
+
/** CreateExperimentResponse */
|
|
1342
|
+
CreateExperimentResponse: {
|
|
1343
|
+
/** Experiment Id */
|
|
1344
|
+
experiment_id: string;
|
|
1345
|
+
/** Status */
|
|
1346
|
+
status: string;
|
|
1347
|
+
};
|
|
1211
1348
|
/**
|
|
1212
1349
|
* CreateKnowledgeBaseBody
|
|
1213
1350
|
* @description Request body for creating a knowledge base.
|
|
@@ -1490,6 +1627,21 @@ interface components {
|
|
|
1490
1627
|
/** Value */
|
|
1491
1628
|
value: string;
|
|
1492
1629
|
};
|
|
1630
|
+
/** DocsSearchResultResponse */
|
|
1631
|
+
DocsSearchResultResponse: {
|
|
1632
|
+
/** Anchor */
|
|
1633
|
+
anchor: string | null;
|
|
1634
|
+
/** Doc Slug */
|
|
1635
|
+
doc_slug: string;
|
|
1636
|
+
/** Highlight */
|
|
1637
|
+
highlight: string | null;
|
|
1638
|
+
/** Score */
|
|
1639
|
+
score: number;
|
|
1640
|
+
/** Snippet */
|
|
1641
|
+
snippet: string | null;
|
|
1642
|
+
/** Title */
|
|
1643
|
+
title: string;
|
|
1644
|
+
};
|
|
1493
1645
|
/** EmailDomainResponse */
|
|
1494
1646
|
EmailDomainResponse: {
|
|
1495
1647
|
/**
|
|
@@ -1915,6 +2067,75 @@ interface components {
|
|
|
1915
2067
|
*/
|
|
1916
2068
|
success: boolean;
|
|
1917
2069
|
};
|
|
2070
|
+
/** ExperimentDetailResponse */
|
|
2071
|
+
ExperimentDetailResponse: {
|
|
2072
|
+
/** Completed At */
|
|
2073
|
+
completed_at: string | null;
|
|
2074
|
+
/** Created At */
|
|
2075
|
+
created_at: string;
|
|
2076
|
+
/** Error Message */
|
|
2077
|
+
error_message: string | null;
|
|
2078
|
+
/** Evaluation Complexity */
|
|
2079
|
+
evaluation_complexity: string;
|
|
2080
|
+
/** Evaluation Mode */
|
|
2081
|
+
evaluation_mode: string;
|
|
2082
|
+
/** Evaluator Model Id */
|
|
2083
|
+
evaluator_model_id: string | null;
|
|
2084
|
+
/** Id */
|
|
2085
|
+
id: string;
|
|
2086
|
+
/** Include Step Output In Evaluation */
|
|
2087
|
+
include_step_output_in_evaluation: boolean;
|
|
2088
|
+
/** Json Template */
|
|
2089
|
+
json_template: string | null;
|
|
2090
|
+
/** Progress Current */
|
|
2091
|
+
progress_current: number | null;
|
|
2092
|
+
/** Progress Message */
|
|
2093
|
+
progress_message: string | null;
|
|
2094
|
+
/** Progress Total */
|
|
2095
|
+
progress_total: number | null;
|
|
2096
|
+
/** Prompt */
|
|
2097
|
+
prompt: string;
|
|
2098
|
+
/** Result Data */
|
|
2099
|
+
result_data: {
|
|
2100
|
+
[key: string]: unknown;
|
|
2101
|
+
} | null;
|
|
2102
|
+
/** Selected Model Ids */
|
|
2103
|
+
selected_model_ids: string[];
|
|
2104
|
+
/** Selected Step Output */
|
|
2105
|
+
selected_step_output: string | null;
|
|
2106
|
+
/** Started At */
|
|
2107
|
+
started_at: string | null;
|
|
2108
|
+
/** Status */
|
|
2109
|
+
status: string;
|
|
2110
|
+
/** System Prompt */
|
|
2111
|
+
system_prompt: string;
|
|
2112
|
+
};
|
|
2113
|
+
/**
|
|
2114
|
+
* ExperimentListResponse
|
|
2115
|
+
* @description ``GET /models/playground/experiments`` legacy/default shape; 2026-07-27+
|
|
2116
|
+
* clients get the canonical ``{data, pagination}`` envelope.
|
|
2117
|
+
*/
|
|
2118
|
+
ExperimentListResponse: {
|
|
2119
|
+
/** Experiments */
|
|
2120
|
+
experiments: components["schemas"]["ExperimentSummaryResponse"][];
|
|
2121
|
+
/** Total */
|
|
2122
|
+
total: number;
|
|
2123
|
+
};
|
|
2124
|
+
/** ExperimentSummaryResponse */
|
|
2125
|
+
ExperimentSummaryResponse: {
|
|
2126
|
+
/** Created At */
|
|
2127
|
+
created_at: string;
|
|
2128
|
+
/** Evaluation Complexity */
|
|
2129
|
+
evaluation_complexity: string;
|
|
2130
|
+
/** Evaluation Mode */
|
|
2131
|
+
evaluation_mode: string;
|
|
2132
|
+
/** Id */
|
|
2133
|
+
id: string;
|
|
2134
|
+
/** Selected Model Ids */
|
|
2135
|
+
selected_model_ids: string[];
|
|
2136
|
+
/** Status */
|
|
2137
|
+
status: string;
|
|
2138
|
+
};
|
|
1918
2139
|
/**
|
|
1919
2140
|
* ExportFormat
|
|
1920
2141
|
* @description Supported export file formats.
|
|
@@ -2070,6 +2291,32 @@ interface components {
|
|
|
2070
2291
|
*/
|
|
2071
2292
|
success: boolean;
|
|
2072
2293
|
};
|
|
2294
|
+
/**
|
|
2295
|
+
* GenerationTierListResponse
|
|
2296
|
+
* @description ``GET /models/generation-tiers`` legacy/default shape; 2026-07-27+ clients
|
|
2297
|
+
* get the canonical ``{data, pagination}`` envelope.
|
|
2298
|
+
*/
|
|
2299
|
+
GenerationTierListResponse: {
|
|
2300
|
+
/** Tiers */
|
|
2301
|
+
tiers: components["schemas"]["GenerationTierResponse"][];
|
|
2302
|
+
};
|
|
2303
|
+
/** GenerationTierResponse */
|
|
2304
|
+
GenerationTierResponse: {
|
|
2305
|
+
/** Credits Per Unit */
|
|
2306
|
+
credits_per_unit: number | null;
|
|
2307
|
+
/** Modality */
|
|
2308
|
+
modality: string;
|
|
2309
|
+
/** Model Id */
|
|
2310
|
+
model_id: string;
|
|
2311
|
+
/** Model Name */
|
|
2312
|
+
model_name: string;
|
|
2313
|
+
/** Price Label */
|
|
2314
|
+
price_label: string | null;
|
|
2315
|
+
/** Tier */
|
|
2316
|
+
tier: string;
|
|
2317
|
+
/** Unit Label */
|
|
2318
|
+
unit_label: string | null;
|
|
2319
|
+
};
|
|
2073
2320
|
/**
|
|
2074
2321
|
* GovernanceAiAcceptResponse
|
|
2075
2322
|
* @description Response from accepting a governance AI assistant plan.
|
|
@@ -2659,6 +2906,15 @@ interface components {
|
|
|
2659
2906
|
/** Output Credits Per 1000 Tokens */
|
|
2660
2907
|
output_credits_per_1000_tokens?: number | null;
|
|
2661
2908
|
};
|
|
2909
|
+
/**
|
|
2910
|
+
* OkResponse
|
|
2911
|
+
* @description A minimal ``{"ok": true}`` acknowledgement for state-mutating actions
|
|
2912
|
+
* that have no richer resource to return (e.g. accept/decline a suggestion).
|
|
2913
|
+
*/
|
|
2914
|
+
OkResponse: {
|
|
2915
|
+
/** Ok */
|
|
2916
|
+
ok: boolean;
|
|
2917
|
+
};
|
|
2662
2918
|
/** OrganizationAlertPreferenceListResponse */
|
|
2663
2919
|
OrganizationAlertPreferenceListResponse: {
|
|
2664
2920
|
/** Preferences */
|
|
@@ -3376,6 +3632,11 @@ interface components {
|
|
|
3376
3632
|
*/
|
|
3377
3633
|
ids: string[];
|
|
3378
3634
|
};
|
|
3635
|
+
/** UnreadCountResponse */
|
|
3636
|
+
UnreadCountResponse: {
|
|
3637
|
+
/** Count */
|
|
3638
|
+
count: number;
|
|
3639
|
+
};
|
|
3379
3640
|
/** UpdateAgentDefinitionRequest */
|
|
3380
3641
|
UpdateAgentDefinitionRequest: {
|
|
3381
3642
|
/**
|
|
@@ -3421,6 +3682,14 @@ interface components {
|
|
|
3421
3682
|
[key: string]: unknown;
|
|
3422
3683
|
} | null;
|
|
3423
3684
|
};
|
|
3685
|
+
/** UpdateApiVersionRequest */
|
|
3686
|
+
UpdateApiVersionRequest: {
|
|
3687
|
+
/**
|
|
3688
|
+
* Version
|
|
3689
|
+
* @description A YYYY-MM-DD date to pin the account to, or null to clear the pin (revert to the default baseline).
|
|
3690
|
+
*/
|
|
3691
|
+
version?: string | null;
|
|
3692
|
+
};
|
|
3424
3693
|
/**
|
|
3425
3694
|
* UpdateEvaluationCriteriaRequest
|
|
3426
3695
|
* @description Request body for updating an evaluation criteria.
|
|
@@ -3669,7 +3938,7 @@ interface components {
|
|
|
3669
3938
|
routers__api__agents__AgentImportPreviewRequest: {
|
|
3670
3939
|
/**
|
|
3671
3940
|
* Agent Definition
|
|
3672
|
-
* @description Payload in the same shape as GET /
|
|
3941
|
+
* @description Payload in the same shape as GET /agents/{agent_id}/export.
|
|
3673
3942
|
*/
|
|
3674
3943
|
agent_definition: {
|
|
3675
3944
|
[key: string]: unknown;
|
|
@@ -4020,6 +4289,88 @@ interface components {
|
|
|
4020
4289
|
*/
|
|
4021
4290
|
body: string;
|
|
4022
4291
|
};
|
|
4292
|
+
/** AlertCommentResponse */
|
|
4293
|
+
routers__api__alerts__AlertCommentResponse: {
|
|
4294
|
+
/** Body */
|
|
4295
|
+
body: string;
|
|
4296
|
+
/** Created At */
|
|
4297
|
+
created_at: string | null;
|
|
4298
|
+
/** Id */
|
|
4299
|
+
id: string;
|
|
4300
|
+
/** User Id */
|
|
4301
|
+
user_id: string;
|
|
4302
|
+
/** User Name */
|
|
4303
|
+
user_name: string | null;
|
|
4304
|
+
};
|
|
4305
|
+
/** AlertDetailResponse */
|
|
4306
|
+
routers__api__alerts__AlertDetailResponse: {
|
|
4307
|
+
alert: components["schemas"]["routers__api__alerts__AlertResponse"];
|
|
4308
|
+
/** Comments */
|
|
4309
|
+
comments: components["schemas"]["routers__api__alerts__AlertCommentResponse"][];
|
|
4310
|
+
/** History */
|
|
4311
|
+
history: components["schemas"]["AlertHistoryEntryResponse"][];
|
|
4312
|
+
/** Subscribers */
|
|
4313
|
+
subscribers: components["schemas"]["routers__api__alerts__AlertSubscriberResponse"][];
|
|
4314
|
+
};
|
|
4315
|
+
/**
|
|
4316
|
+
* AlertListResponse
|
|
4317
|
+
* @description ``GET /alerts`` — always the canonical ``{data, pagination}`` envelope.
|
|
4318
|
+
*/
|
|
4319
|
+
routers__api__alerts__AlertListResponse: {
|
|
4320
|
+
/** Data */
|
|
4321
|
+
data: components["schemas"]["routers__api__alerts__AlertResponse"][];
|
|
4322
|
+
pagination: components["schemas"]["PaginationResponse"];
|
|
4323
|
+
};
|
|
4324
|
+
/** AlertResponse */
|
|
4325
|
+
routers__api__alerts__AlertResponse: {
|
|
4326
|
+
/** Account Id */
|
|
4327
|
+
account_id: string;
|
|
4328
|
+
/** Agent Id */
|
|
4329
|
+
agent_id: string | null;
|
|
4330
|
+
/** Agent Run Id */
|
|
4331
|
+
agent_run_id: string | null;
|
|
4332
|
+
/** Alert Config Id */
|
|
4333
|
+
alert_config_id: string | null;
|
|
4334
|
+
/** Alert Type */
|
|
4335
|
+
alert_type: string;
|
|
4336
|
+
/** Comment Count */
|
|
4337
|
+
comment_count: number;
|
|
4338
|
+
/** Created At */
|
|
4339
|
+
created_at: string | null;
|
|
4340
|
+
/** Description */
|
|
4341
|
+
description: string | null;
|
|
4342
|
+
/** Details */
|
|
4343
|
+
details?: unknown;
|
|
4344
|
+
/** Id */
|
|
4345
|
+
id: string;
|
|
4346
|
+
/** Is Subscribed */
|
|
4347
|
+
is_subscribed: boolean;
|
|
4348
|
+
/** Mcp Client Id */
|
|
4349
|
+
mcp_client_id: string | null;
|
|
4350
|
+
/** Source Connection Id */
|
|
4351
|
+
source_connection_id: string | null;
|
|
4352
|
+
/** Source Connection Pull Id */
|
|
4353
|
+
source_connection_pull_id: string | null;
|
|
4354
|
+
/** Status */
|
|
4355
|
+
status: string;
|
|
4356
|
+
/** Subscriber Count */
|
|
4357
|
+
subscriber_count: number;
|
|
4358
|
+
/** Title */
|
|
4359
|
+
title: string;
|
|
4360
|
+
/** Updated At */
|
|
4361
|
+
updated_at: string | null;
|
|
4362
|
+
};
|
|
4363
|
+
/** AlertSubscriberResponse */
|
|
4364
|
+
routers__api__alerts__AlertSubscriberResponse: {
|
|
4365
|
+
/** Created At */
|
|
4366
|
+
created_at: string | null;
|
|
4367
|
+
/** Id */
|
|
4368
|
+
id: string;
|
|
4369
|
+
/** User Id */
|
|
4370
|
+
user_id: string;
|
|
4371
|
+
/** User Name */
|
|
4372
|
+
user_name: string | null;
|
|
4373
|
+
};
|
|
4023
4374
|
/** OrganizationAlertPreferenceResponse */
|
|
4024
4375
|
routers__api__alerts__OrganizationAlertPreferenceResponse: {
|
|
4025
4376
|
/** Alert Type */
|
|
@@ -4192,6 +4543,15 @@ interface components {
|
|
|
4192
4543
|
*/
|
|
4193
4544
|
status: string;
|
|
4194
4545
|
};
|
|
4546
|
+
/**
|
|
4547
|
+
* DocsSearchResponse
|
|
4548
|
+
* @description Ranked results, NOT a paginated collection — the ``{results}`` shape is a
|
|
4549
|
+
* deliberate carve-out matching the MCP ``search_docs`` tool.
|
|
4550
|
+
*/
|
|
4551
|
+
routers__api__docs_search__DocsSearchResponse: {
|
|
4552
|
+
/** Results */
|
|
4553
|
+
results: components["schemas"]["DocsSearchResultResponse"][];
|
|
4554
|
+
};
|
|
4195
4555
|
/**
|
|
4196
4556
|
* GovernanceAiAssistantRequest
|
|
4197
4557
|
* @description Request body for the governance AI assistant.
|
|
@@ -4340,6 +4700,115 @@ interface components {
|
|
|
4340
4700
|
*/
|
|
4341
4701
|
user_input?: string | null;
|
|
4342
4702
|
};
|
|
4703
|
+
/**
|
|
4704
|
+
* ModelAlertListResponse
|
|
4705
|
+
* @description ``GET /models/alerts`` legacy/default shape; 2026-07-27+ clients get the
|
|
4706
|
+
* canonical ``{data, pagination}`` envelope (bypasses this ``response_model``).
|
|
4707
|
+
*/
|
|
4708
|
+
routers__api__model_lifecycle__ModelAlertListResponse: {
|
|
4709
|
+
/** Alerts */
|
|
4710
|
+
alerts: components["schemas"]["routers__api__model_lifecycle__ModelAlertResponse"][];
|
|
4711
|
+
/** Total */
|
|
4712
|
+
total: number;
|
|
4713
|
+
};
|
|
4714
|
+
/** ModelAlertResponse */
|
|
4715
|
+
routers__api__model_lifecycle__ModelAlertResponse: {
|
|
4716
|
+
/** Account Id */
|
|
4717
|
+
account_id: string;
|
|
4718
|
+
/** Agent Id */
|
|
4719
|
+
agent_id: string | null;
|
|
4720
|
+
/** Alert Type */
|
|
4721
|
+
alert_type: string;
|
|
4722
|
+
/** Created At */
|
|
4723
|
+
created_at: string;
|
|
4724
|
+
/** Id */
|
|
4725
|
+
id: string;
|
|
4726
|
+
/** Message */
|
|
4727
|
+
message: string;
|
|
4728
|
+
/** Model Name */
|
|
4729
|
+
model_name: string;
|
|
4730
|
+
/** Prompt Model Id */
|
|
4731
|
+
prompt_model_id: string;
|
|
4732
|
+
/** Read At */
|
|
4733
|
+
read_at: string | null;
|
|
4734
|
+
/** Successor Model Name */
|
|
4735
|
+
successor_model_name: string | null;
|
|
4736
|
+
};
|
|
4737
|
+
/** ModelRecommendationResponse */
|
|
4738
|
+
routers__api__model_lifecycle__ModelRecommendationResponse: {
|
|
4739
|
+
/** Deprecated At */
|
|
4740
|
+
deprecated_at?: string | null;
|
|
4741
|
+
/** Description */
|
|
4742
|
+
description: string;
|
|
4743
|
+
/** Family */
|
|
4744
|
+
family?: string | null;
|
|
4745
|
+
/** Family Generation */
|
|
4746
|
+
family_generation?: number | null;
|
|
4747
|
+
/** Id */
|
|
4748
|
+
id: string;
|
|
4749
|
+
/** Max Context Tokens */
|
|
4750
|
+
max_context_tokens: number;
|
|
4751
|
+
/** Max Output Tokens */
|
|
4752
|
+
max_output_tokens: number;
|
|
4753
|
+
/** Model Id */
|
|
4754
|
+
model_id: string;
|
|
4755
|
+
/** Name */
|
|
4756
|
+
name: string;
|
|
4757
|
+
/** Provider */
|
|
4758
|
+
provider: string;
|
|
4759
|
+
/** Reason */
|
|
4760
|
+
reason: string;
|
|
4761
|
+
/** Recommendation Type */
|
|
4762
|
+
recommendation_type: string;
|
|
4763
|
+
/** Released At */
|
|
4764
|
+
released_at?: string | null;
|
|
4765
|
+
/** Sunset At */
|
|
4766
|
+
sunset_at?: string | null;
|
|
4767
|
+
/** Supports Openai Arguments */
|
|
4768
|
+
supports_openai_arguments: boolean;
|
|
4769
|
+
/** Supports Streaming */
|
|
4770
|
+
supports_streaming: boolean;
|
|
4771
|
+
/** Supports Structured Output */
|
|
4772
|
+
supports_structured_output: boolean;
|
|
4773
|
+
/** Supports Thinking */
|
|
4774
|
+
supports_thinking: boolean;
|
|
4775
|
+
/** Supports Tool Use */
|
|
4776
|
+
supports_tool_use: boolean;
|
|
4777
|
+
};
|
|
4778
|
+
/** ModelRecommendationsResponse */
|
|
4779
|
+
routers__api__model_lifecycle__ModelRecommendationsResponse: {
|
|
4780
|
+
/** Alternatives */
|
|
4781
|
+
alternatives: components["schemas"]["routers__api__model_lifecycle__ModelRecommendationResponse"][];
|
|
4782
|
+
/** Current Model Id */
|
|
4783
|
+
current_model_id: string;
|
|
4784
|
+
/** Current Model Name */
|
|
4785
|
+
current_model_name: string;
|
|
4786
|
+
/** Same Provider */
|
|
4787
|
+
same_provider: components["schemas"]["routers__api__model_lifecycle__ModelRecommendationResponse"][];
|
|
4788
|
+
successor?: components["schemas"]["routers__api__model_lifecycle__ModelRecommendationResponse"] | null;
|
|
4789
|
+
/** Upgrades */
|
|
4790
|
+
upgrades: components["schemas"]["routers__api__model_lifecycle__ModelRecommendationResponse"][];
|
|
4791
|
+
};
|
|
4792
|
+
/**
|
|
4793
|
+
* SearchResponse
|
|
4794
|
+
* @description Ranked results, NOT a paginated collection — the ``{results}`` shape is a
|
|
4795
|
+
* deliberate carve-out matching the MCP ``search_resources`` tool.
|
|
4796
|
+
*/
|
|
4797
|
+
routers__api__search__SearchResponse: {
|
|
4798
|
+
/** Results */
|
|
4799
|
+
results: components["schemas"]["routers__api__search__SearchResultResponse"][];
|
|
4800
|
+
};
|
|
4801
|
+
/** SearchResultResponse */
|
|
4802
|
+
routers__api__search__SearchResultResponse: {
|
|
4803
|
+
/** Description */
|
|
4804
|
+
description: string | null;
|
|
4805
|
+
/** Entity Type */
|
|
4806
|
+
entity_type: string;
|
|
4807
|
+
/** Id */
|
|
4808
|
+
id: string;
|
|
4809
|
+
/** Name */
|
|
4810
|
+
name: string;
|
|
4811
|
+
};
|
|
4343
4812
|
/**
|
|
4344
4813
|
* AiAssistantAcceptRequest
|
|
4345
4814
|
* @description Request body for accepting a proposed plan.
|
|
@@ -4945,6 +5414,8 @@ interface components {
|
|
|
4945
5414
|
};
|
|
4946
5415
|
responses: never;
|
|
4947
5416
|
parameters: {
|
|
5417
|
+
/** @description Opt into dated, backward-incompatible API changes (format YYYY-MM-DD). When omitted, the account's pinned baseline version is used and responses keep their legacy shapes. Send a date on or after a change's release to adopt it — e.g. `2026-07-27` enables rejection of undeclared query parameters (422) and the canonical `{data, pagination}` envelope (pagination = `{page, limit, total, pages, has_next, has_prev}`) on every list endpoint that previously returned a bare array, a flat `{data, total, page, limit}`, a `{configs, total}`, or another per-resource key. */
|
|
5418
|
+
"Seclai-Version": string;
|
|
4948
5419
|
/** @description Target a different organization account (OAuth only). When omitted, the user's default account is used. Ignored for API key authentication — the key's account is always used. */
|
|
4949
5420
|
"X-Account-Id": string;
|
|
4950
5421
|
};
|
|
@@ -5085,6 +5556,82 @@ type AiConversationTurnResponse = components["schemas"]["AiConversationTurnRespo
|
|
|
5085
5556
|
type AgentEvaluationTier = components["schemas"]["AgentEvaluationTier"];
|
|
5086
5557
|
/** Evaluation criteria configuration for an agent. */
|
|
5087
5558
|
type EvaluationCriteriaResponse = components["schemas"]["EvaluationCriteriaResponse"];
|
|
5559
|
+
/** A page of alerts. Always the canonical `{data, pagination}` envelope. */
|
|
5560
|
+
type AlertListResponse = components["schemas"]["routers__api__alerts__AlertListResponse"];
|
|
5561
|
+
/** A single alert. */
|
|
5562
|
+
type AlertResponse = components["schemas"]["routers__api__alerts__AlertResponse"];
|
|
5563
|
+
/** A single alert configuration. */
|
|
5564
|
+
type AlertConfigResponse = components["schemas"]["AlertConfigResponse"];
|
|
5565
|
+
/**
|
|
5566
|
+
* A page of alert configurations.
|
|
5567
|
+
*
|
|
5568
|
+
* The top-level key is version-gated: `configs` alongside `total` by default,
|
|
5569
|
+
* the canonical `{data, pagination}` envelope once `apiVersion` is `2026-07-27`
|
|
5570
|
+
* or later. Both are declared optional so either shape type-checks.
|
|
5571
|
+
*/
|
|
5572
|
+
type AlertConfigListResponse = {
|
|
5573
|
+
configs?: AlertConfigResponse[];
|
|
5574
|
+
data?: AlertConfigResponse[];
|
|
5575
|
+
pagination?: PaginationResponse;
|
|
5576
|
+
total?: number;
|
|
5577
|
+
};
|
|
5578
|
+
/** A single model lifecycle alert. */
|
|
5579
|
+
type ModelAlertResponse = components["schemas"]["routers__api__model_lifecycle__ModelAlertResponse"];
|
|
5580
|
+
/**
|
|
5581
|
+
* A page of model lifecycle alerts.
|
|
5582
|
+
*
|
|
5583
|
+
* The top-level key is version-gated: `alerts` alongside `total` by default, the
|
|
5584
|
+
* canonical `{data, pagination}` envelope once `apiVersion` is `2026-07-27` or
|
|
5585
|
+
* later. Both are declared optional so either shape type-checks.
|
|
5586
|
+
*/
|
|
5587
|
+
type ModelAlertListResponse = {
|
|
5588
|
+
alerts?: ModelAlertResponse[];
|
|
5589
|
+
data?: ModelAlertResponse[];
|
|
5590
|
+
pagination?: PaginationResponse;
|
|
5591
|
+
total?: number;
|
|
5592
|
+
};
|
|
5593
|
+
/** A single alert with its comments, subscribers and history. */
|
|
5594
|
+
type AlertDetailResponse = components["schemas"]["routers__api__alerts__AlertDetailResponse"];
|
|
5595
|
+
/** A comment on an alert. */
|
|
5596
|
+
type AlertCommentResponse = components["schemas"]["routers__api__alerts__AlertCommentResponse"];
|
|
5597
|
+
/** A subscriber to an alert. */
|
|
5598
|
+
type AlertSubscriberResponse = components["schemas"]["routers__api__alerts__AlertSubscriberResponse"];
|
|
5599
|
+
/** A count of unread items. */
|
|
5600
|
+
type UnreadCountResponse = components["schemas"]["UnreadCountResponse"];
|
|
5601
|
+
/** Successor recommendations for a model. */
|
|
5602
|
+
type ModelRecommendationsResponse = components["schemas"]["routers__api__model_lifecycle__ModelRecommendationsResponse"];
|
|
5603
|
+
/** A single successor recommendation. */
|
|
5604
|
+
type ModelRecommendationResponse = components["schemas"]["routers__api__model_lifecycle__ModelRecommendationResponse"];
|
|
5605
|
+
/** A page of model playground experiments. */
|
|
5606
|
+
type ExperimentListResponse = components["schemas"]["ExperimentListResponse"];
|
|
5607
|
+
/** A model playground experiment in a listing. */
|
|
5608
|
+
type ExperimentSummaryResponse = components["schemas"]["ExperimentSummaryResponse"];
|
|
5609
|
+
/** A model playground experiment with its results. */
|
|
5610
|
+
type ExperimentDetailResponse = components["schemas"]["ExperimentDetailResponse"];
|
|
5611
|
+
/** Acknowledgement of a created experiment. */
|
|
5612
|
+
type CreateExperimentResponse = components["schemas"]["CreateExperimentResponse"];
|
|
5613
|
+
/** Acknowledgement of a cancelled experiment. */
|
|
5614
|
+
type CancelExperimentResponse = components["schemas"]["CancelExperimentResponse"];
|
|
5615
|
+
/** A ranked set of search results. Deliberately not paginated. */
|
|
5616
|
+
type SearchResponse = components["schemas"]["routers__api__search__SearchResponse"];
|
|
5617
|
+
/** A single search hit. */
|
|
5618
|
+
type SearchResultResponse = components["schemas"]["routers__api__search__SearchResultResponse"];
|
|
5619
|
+
/** A simple acknowledgement. */
|
|
5620
|
+
type OkResponse = components["schemas"]["OkResponse"];
|
|
5621
|
+
/** The API version a request resolved to, and the versions available. */
|
|
5622
|
+
type ApiVersionResponse = components["schemas"]["ApiVersionResponse"];
|
|
5623
|
+
/**
|
|
5624
|
+
* A page of evaluation criteria.
|
|
5625
|
+
*
|
|
5626
|
+
* Not a generated type: the endpoint returns a bare array by default, and only
|
|
5627
|
+
* emits the canonical `{data, pagination}` envelope once the caller opts in with
|
|
5628
|
+
* `apiVersion: "2026-07-27"` or later. `pagination` is therefore absent unless
|
|
5629
|
+
* opted in.
|
|
5630
|
+
*/
|
|
5631
|
+
type EvaluationCriteriaListResponse = {
|
|
5632
|
+
data: EvaluationCriteriaResponse[];
|
|
5633
|
+
pagination?: PaginationResponse;
|
|
5634
|
+
};
|
|
5088
5635
|
/** Request body for creating evaluation criteria. */
|
|
5089
5636
|
type CreateEvaluationCriteriaRequest = components["schemas"]["CreateEvaluationCriteriaRequest"];
|
|
5090
5637
|
/** Request body for updating evaluation criteria. */
|
|
@@ -5100,7 +5647,25 @@ type EvaluationResultSummaryResponse = components["schemas"]["EvaluationResultSu
|
|
|
5100
5647
|
/** Evaluation result with its associated criteria. */
|
|
5101
5648
|
type EvaluationResultWithCriteriaResponse = components["schemas"]["EvaluationResultWithCriteriaResponse"];
|
|
5102
5649
|
/** Paginated list of evaluation results with criteria. */
|
|
5103
|
-
|
|
5650
|
+
/**
|
|
5651
|
+
* A page of evaluation results with criteria context.
|
|
5652
|
+
*
|
|
5653
|
+
* Not a generated type: two endpoints share this shape and populate different
|
|
5654
|
+
* halves of it.
|
|
5655
|
+
*
|
|
5656
|
+
* - `GET /agents/{id}/evaluation-results` is always paginated and fills `total`,
|
|
5657
|
+
* `page` and `limit`.
|
|
5658
|
+
* - `GET /agents/{id}/runs/{runId}/evaluation-results` is version-gated: a bare
|
|
5659
|
+
* array by default, and the canonical `{data, pagination}` envelope once
|
|
5660
|
+
* `apiVersion` is `2026-07-27` or later — in which case the metadata is on
|
|
5661
|
+
* `pagination` and the flat fields are absent.
|
|
5662
|
+
*/
|
|
5663
|
+
type EvaluationResultWithCriteriaListResponse = Omit<components["schemas"]["EvaluationResultWithCriteriaListResponse"], "total" | "page" | "limit"> & {
|
|
5664
|
+
pagination?: PaginationResponse;
|
|
5665
|
+
total?: number;
|
|
5666
|
+
page?: number;
|
|
5667
|
+
limit?: number;
|
|
5668
|
+
};
|
|
5104
5669
|
/** Summary of an evaluation run. */
|
|
5105
5670
|
type EvaluationRunSummaryResponse = components["schemas"]["EvaluationRunSummaryResponse"];
|
|
5106
5671
|
/** Paginated list of evaluation run summaries. */
|
|
@@ -5387,6 +5952,31 @@ interface SeclaiOptions {
|
|
|
5387
5952
|
* Overrides the profile's `sso_account_id` when using SSO auth.
|
|
5388
5953
|
*/
|
|
5389
5954
|
accountId?: string;
|
|
5955
|
+
/**
|
|
5956
|
+
* Dated API version (`YYYY-MM-DD`) sent as the `Seclai-Version` header, opting
|
|
5957
|
+
* this client into backward-incompatible API changes released on or before
|
|
5958
|
+
* that date.
|
|
5959
|
+
*
|
|
5960
|
+
* Left unset the header is omitted and the account's pinned baseline applies,
|
|
5961
|
+
* so responses keep their current shapes and upgrading the SDK alone never
|
|
5962
|
+
* changes the wire contract. Pin the account instead with
|
|
5963
|
+
* {@link Seclai.updateApiVersion}, and read what a request resolves to with
|
|
5964
|
+
* {@link Seclai.getApiVersion}.
|
|
5965
|
+
*
|
|
5966
|
+
* From `2026-07-27` the API rejects undeclared query parameters with a 422
|
|
5967
|
+
* rather than ignoring them, and list endpoints return the canonical
|
|
5968
|
+
* `{data, pagination}` envelope.
|
|
5969
|
+
*/
|
|
5970
|
+
apiVersion?: ApiVersion;
|
|
5971
|
+
/**
|
|
5972
|
+
* Permit an {@link apiVersion} this release was not built against.
|
|
5973
|
+
*
|
|
5974
|
+
* Off by default. A newer API version can change response shapes, and this
|
|
5975
|
+
* client would decode them incorrectly rather than reject them — a
|
|
5976
|
+
* request-side mistake answers 422, but a reshaped response just mis-decodes,
|
|
5977
|
+
* silently. Prefer upgrading the package.
|
|
5978
|
+
*/
|
|
5979
|
+
allowUnknownApiVersion?: boolean;
|
|
5390
5980
|
}
|
|
5391
5981
|
/**
|
|
5392
5982
|
* Seclai JavaScript/TypeScript client.
|
|
@@ -5484,6 +6074,27 @@ declare class Seclai {
|
|
|
5484
6074
|
* @returns The current user's account ID and organization memberships.
|
|
5485
6075
|
*/
|
|
5486
6076
|
getMe(): Promise<MeResponse>;
|
|
6077
|
+
/**
|
|
6078
|
+
* Read the API version this request resolved to, and the versions available.
|
|
6079
|
+
*
|
|
6080
|
+
* Resolution order is the `Seclai-Version` header, then the account pin, then
|
|
6081
|
+
* the default — so `effective_version` reflects the client's `apiVersion`
|
|
6082
|
+
* option when that is set.
|
|
6083
|
+
*
|
|
6084
|
+
* @returns The pinned, effective, default and latest versions.
|
|
6085
|
+
*/
|
|
6086
|
+
getApiVersion(): Promise<ApiVersionResponse>;
|
|
6087
|
+
/**
|
|
6088
|
+
* Pin the account to a dated API version, or clear the pin.
|
|
6089
|
+
*
|
|
6090
|
+
* Owner/admin only. The pin applies to later header-less requests; a
|
|
6091
|
+
* `Seclai-Version` header still overrides it, so `effective_version` in the
|
|
6092
|
+
* response describes this request rather than the pin just written.
|
|
6093
|
+
*
|
|
6094
|
+
* @param version - A `YYYY-MM-DD` date to pin to, or `null` to clear the pin.
|
|
6095
|
+
* @returns The updated version state.
|
|
6096
|
+
*/
|
|
6097
|
+
updateApiVersion(version: string | null): Promise<ApiVersionResponse>;
|
|
5487
6098
|
/**
|
|
5488
6099
|
* List agents.
|
|
5489
6100
|
*
|
|
@@ -5630,7 +6241,11 @@ declare class Seclai {
|
|
|
5630
6241
|
includeStepOutputs?: boolean;
|
|
5631
6242
|
}): Promise<AgentRunResponse>;
|
|
5632
6243
|
/**
|
|
5633
|
-
*
|
|
6244
|
+
* Cancel an agent run.
|
|
6245
|
+
*
|
|
6246
|
+
* @deprecated This never deleted anything — the endpoint it calls is documented
|
|
6247
|
+
* as "Cancel an agent run", and the API has no delete-a-run operation. It also
|
|
6248
|
+
* discards the returned run state. Use {@link cancelAgentRun} instead.
|
|
5634
6249
|
*
|
|
5635
6250
|
* @param runId - Run identifier.
|
|
5636
6251
|
*/
|
|
@@ -5638,6 +6253,10 @@ declare class Seclai {
|
|
|
5638
6253
|
/**
|
|
5639
6254
|
* Cancel a running agent run.
|
|
5640
6255
|
*
|
|
6256
|
+
* Cancellation is `DELETE` on the run resource — the API exposes no
|
|
6257
|
+
* `POST .../cancel` route, and no operation that deletes a run. Rejected when
|
|
6258
|
+
* the run has already reached a terminal state.
|
|
6259
|
+
*
|
|
5641
6260
|
* @param runId - Run identifier.
|
|
5642
6261
|
* @returns Updated run (with cancelled status).
|
|
5643
6262
|
*/
|
|
@@ -5783,7 +6402,12 @@ declare class Seclai {
|
|
|
5783
6402
|
* @param agentId - Agent identifier.
|
|
5784
6403
|
* @returns Conversation history.
|
|
5785
6404
|
*/
|
|
5786
|
-
getAgentAiConversationHistory(agentId: string
|
|
6405
|
+
getAgentAiConversationHistory(agentId: string, opts?: {
|
|
6406
|
+
stepType?: string;
|
|
6407
|
+
stepId?: string;
|
|
6408
|
+
limit?: number;
|
|
6409
|
+
offset?: number;
|
|
6410
|
+
}): Promise<AiConversationHistoryResponse>;
|
|
5787
6411
|
/**
|
|
5788
6412
|
* Mark an AI suggestion as accepted or rejected.
|
|
5789
6413
|
*
|
|
@@ -5799,6 +6423,19 @@ declare class Seclai {
|
|
|
5799
6423
|
* @param opts - Pagination options.
|
|
5800
6424
|
*/
|
|
5801
6425
|
listEvaluationCriteria(agentId: string, opts?: ListOptions): Promise<EvaluationCriteriaResponse[]>;
|
|
6426
|
+
/**
|
|
6427
|
+
* List evaluation criteria for an agent, with pagination metadata.
|
|
6428
|
+
*
|
|
6429
|
+
* Accepts either wire shape. The endpoint answered with a bare array before
|
|
6430
|
+
* 2026-07 and with a paginated envelope after, so a client that decodes only
|
|
6431
|
+
* one breaks the day the other ships. `total`, `page` and `limit` are absent
|
|
6432
|
+
* when the endpoint answers with a bare array.
|
|
6433
|
+
*
|
|
6434
|
+
* @param agentId - Agent identifier.
|
|
6435
|
+
* @param opts - Pagination options.
|
|
6436
|
+
* @returns The criteria under `data`, plus the page metadata when present.
|
|
6437
|
+
*/
|
|
6438
|
+
listEvaluationCriteriaPage(agentId: string, opts?: ListOptions): Promise<EvaluationCriteriaListResponse>;
|
|
5802
6439
|
/**
|
|
5803
6440
|
* Create evaluation criteria for an agent.
|
|
5804
6441
|
*
|
|
@@ -6125,7 +6762,7 @@ declare class Seclai {
|
|
|
6125
6762
|
* @param conversationId - Conversation identifier.
|
|
6126
6763
|
* @param body - Accept request payload.
|
|
6127
6764
|
*/
|
|
6128
|
-
acceptMemoryBankAiSuggestion(conversationId: string, body: MemoryBankAcceptRequest): Promise<
|
|
6765
|
+
acceptMemoryBankAiSuggestion(conversationId: string, body: MemoryBankAcceptRequest): Promise<OkResponse>;
|
|
6129
6766
|
/**
|
|
6130
6767
|
* List sources.
|
|
6131
6768
|
*
|
|
@@ -6491,61 +7128,67 @@ declare class Seclai {
|
|
|
6491
7128
|
listAlerts(opts?: ListOptions & {
|
|
6492
7129
|
status?: string;
|
|
6493
7130
|
severity?: string;
|
|
6494
|
-
}): Promise<
|
|
7131
|
+
}): Promise<AlertListResponse>;
|
|
6495
7132
|
/**
|
|
6496
7133
|
* Get alert details by ID.
|
|
6497
7134
|
*
|
|
6498
7135
|
* @param alertId - Alert identifier.
|
|
6499
7136
|
* @returns Alert details.
|
|
6500
7137
|
*/
|
|
6501
|
-
getAlert(alertId: string): Promise<
|
|
7138
|
+
getAlert(alertId: string): Promise<AlertDetailResponse>;
|
|
6502
7139
|
/**
|
|
6503
7140
|
* Change the status of an alert.
|
|
6504
7141
|
*
|
|
6505
7142
|
* @param alertId - Alert identifier.
|
|
6506
7143
|
* @param body - Status change request.
|
|
6507
7144
|
*/
|
|
6508
|
-
changeAlertStatus(alertId: string, body: ChangeStatusRequest): Promise<
|
|
7145
|
+
changeAlertStatus(alertId: string, body: ChangeStatusRequest): Promise<AlertDetailResponse>;
|
|
6509
7146
|
/**
|
|
6510
7147
|
* Add a comment to an alert.
|
|
6511
7148
|
*
|
|
6512
7149
|
* @param alertId - Alert identifier.
|
|
6513
7150
|
* @param body - Comment payload.
|
|
6514
7151
|
*/
|
|
6515
|
-
addAlertComment(alertId: string, body: AddCommentRequest): Promise<
|
|
7152
|
+
addAlertComment(alertId: string, body: AddCommentRequest): Promise<AlertDetailResponse>;
|
|
6516
7153
|
/**
|
|
6517
7154
|
* Subscribe to an alert.
|
|
6518
7155
|
*
|
|
6519
7156
|
* @param alertId - Alert identifier.
|
|
6520
7157
|
*/
|
|
6521
|
-
subscribeToAlert(alertId: string): Promise<
|
|
7158
|
+
subscribeToAlert(alertId: string): Promise<AlertDetailResponse>;
|
|
6522
7159
|
/**
|
|
6523
7160
|
* Unsubscribe from an alert.
|
|
6524
7161
|
*
|
|
6525
7162
|
* @param alertId - Alert identifier.
|
|
6526
7163
|
*/
|
|
6527
|
-
unsubscribeFromAlert(alertId: string): Promise<
|
|
7164
|
+
unsubscribeFromAlert(alertId: string): Promise<AlertDetailResponse>;
|
|
6528
7165
|
/**
|
|
6529
7166
|
* List alert configurations.
|
|
6530
7167
|
*
|
|
6531
7168
|
* @param opts - Pagination options.
|
|
6532
7169
|
* @returns Paginated list of alert configs.
|
|
6533
7170
|
*/
|
|
6534
|
-
|
|
7171
|
+
/**
|
|
7172
|
+
* The configurations arrive under `configs` alongside `total` by default.
|
|
7173
|
+
* Once the caller opts in with `apiVersion` 2026-07-27 or later the endpoint
|
|
7174
|
+
* returns the canonical `{data, pagination}` envelope instead, so the
|
|
7175
|
+
* top-level key changes.
|
|
7176
|
+
*/
|
|
7177
|
+
listAlertConfigs(opts?: ListOptions): Promise<AlertConfigListResponse>;
|
|
6535
7178
|
/**
|
|
6536
7179
|
* Create an alert configuration.
|
|
6537
7180
|
*
|
|
6538
7181
|
* @param body - Alert config definition.
|
|
6539
7182
|
* @returns Created alert config.
|
|
6540
7183
|
*/
|
|
6541
|
-
createAlertConfig(body: CreateAlertConfigRequest): Promise<
|
|
7184
|
+
createAlertConfig(body: CreateAlertConfigRequest): Promise<AlertConfigResponse>;
|
|
6542
7185
|
/**
|
|
6543
7186
|
* Get an alert configuration by ID.
|
|
6544
7187
|
*
|
|
6545
7188
|
* @param configId - Alert config identifier.
|
|
6546
7189
|
* @returns Alert config details.
|
|
6547
7190
|
*/
|
|
6548
|
-
getAlertConfig(configId: string): Promise<
|
|
7191
|
+
getAlertConfig(configId: string): Promise<AlertConfigResponse>;
|
|
6549
7192
|
/**
|
|
6550
7193
|
* Update an alert configuration.
|
|
6551
7194
|
*
|
|
@@ -6553,7 +7196,7 @@ declare class Seclai {
|
|
|
6553
7196
|
* @param body - Fields to update.
|
|
6554
7197
|
* @returns Updated alert config.
|
|
6555
7198
|
*/
|
|
6556
|
-
updateAlertConfig(configId: string, body: UpdateAlertConfigRequest): Promise<
|
|
7199
|
+
updateAlertConfig(configId: string, body: UpdateAlertConfigRequest): Promise<AlertConfigResponse>;
|
|
6557
7200
|
/**
|
|
6558
7201
|
* Delete an alert configuration.
|
|
6559
7202
|
*
|
|
@@ -6577,7 +7220,7 @@ declare class Seclai {
|
|
|
6577
7220
|
*
|
|
6578
7221
|
* @param opts - Pagination options.
|
|
6579
7222
|
*/
|
|
6580
|
-
listModelAlerts(opts?: ListOptions): Promise<
|
|
7223
|
+
listModelAlerts(opts?: ListOptions): Promise<ModelAlertListResponse>;
|
|
6581
7224
|
/**
|
|
6582
7225
|
* Mark all model alerts as read.
|
|
6583
7226
|
*/
|
|
@@ -6585,7 +7228,7 @@ declare class Seclai {
|
|
|
6585
7228
|
/**
|
|
6586
7229
|
* Get unread model alert count.
|
|
6587
7230
|
*/
|
|
6588
|
-
getUnreadModelAlertCount(): Promise<
|
|
7231
|
+
getUnreadModelAlertCount(): Promise<UnreadCountResponse>;
|
|
6589
7232
|
/**
|
|
6590
7233
|
* Mark a specific model alert as read.
|
|
6591
7234
|
*
|
|
@@ -6597,7 +7240,7 @@ declare class Seclai {
|
|
|
6597
7240
|
*
|
|
6598
7241
|
* @param modelId - Model identifier.
|
|
6599
7242
|
*/
|
|
6600
|
-
getModelRecommendations(modelId: string): Promise<
|
|
7243
|
+
getModelRecommendations(modelId: string): Promise<ModelRecommendationsResponse>;
|
|
6601
7244
|
/**
|
|
6602
7245
|
* List all enabled LLM models grouped by provider.
|
|
6603
7246
|
*
|
|
@@ -6639,25 +7282,25 @@ declare class Seclai {
|
|
|
6639
7282
|
endDate?: string;
|
|
6640
7283
|
limit?: number;
|
|
6641
7284
|
offset?: number;
|
|
6642
|
-
}): Promise<
|
|
7285
|
+
}): Promise<ExperimentListResponse>;
|
|
6643
7286
|
/**
|
|
6644
7287
|
* Create a model playground experiment.
|
|
6645
7288
|
*
|
|
6646
7289
|
* @param body - Experiment configuration.
|
|
6647
7290
|
*/
|
|
6648
|
-
createExperiment(body: CreateExperimentInput): Promise<
|
|
7291
|
+
createExperiment(body: CreateExperimentInput): Promise<CreateExperimentResponse>;
|
|
6649
7292
|
/**
|
|
6650
7293
|
* Get a model playground experiment by ID.
|
|
6651
7294
|
*
|
|
6652
7295
|
* @param experimentId - Experiment identifier.
|
|
6653
7296
|
*/
|
|
6654
|
-
getExperiment(experimentId: string): Promise<
|
|
7297
|
+
getExperiment(experimentId: string): Promise<ExperimentDetailResponse>;
|
|
6655
7298
|
/**
|
|
6656
7299
|
* Cancel a running model playground experiment.
|
|
6657
7300
|
*
|
|
6658
7301
|
* @param experimentId - Experiment identifier.
|
|
6659
7302
|
*/
|
|
6660
|
-
cancelExperiment(experimentId: string): Promise<
|
|
7303
|
+
cancelExperiment(experimentId: string): Promise<CancelExperimentResponse>;
|
|
6661
7304
|
/**
|
|
6662
7305
|
* Soft-delete a model playground experiment.
|
|
6663
7306
|
*
|
|
@@ -6683,7 +7326,7 @@ declare class Seclai {
|
|
|
6683
7326
|
query: string;
|
|
6684
7327
|
limit?: number;
|
|
6685
7328
|
entityType?: string;
|
|
6686
|
-
}): Promise<
|
|
7329
|
+
}): Promise<SearchResponse>;
|
|
6687
7330
|
/**
|
|
6688
7331
|
* Search the Seclai documentation by content.
|
|
6689
7332
|
*
|
|
@@ -6857,7 +7500,7 @@ declare class Seclai {
|
|
|
6857
7500
|
* @param conversationId - Conversation identifier.
|
|
6858
7501
|
* @param body - Acceptance payload for the memory bank suggestion.
|
|
6859
7502
|
*/
|
|
6860
|
-
acceptAiMemoryBankSuggestion(conversationId: string, body: MemoryBankAcceptRequest): Promise<
|
|
7503
|
+
acceptAiMemoryBankSuggestion(conversationId: string, body: MemoryBankAcceptRequest): Promise<OkResponse>;
|
|
6861
7504
|
/**
|
|
6862
7505
|
* Auto-paginate through a list endpoint.
|
|
6863
7506
|
*
|
|
@@ -7064,4 +7707,4 @@ declare class SeclaiStreamingError extends SeclaiError {
|
|
|
7064
7707
|
constructor(message: string, runId?: string);
|
|
7065
7708
|
}
|
|
7066
7709
|
|
|
7067
|
-
export { type AccessTokenProvider, type AddCommentRequest, type AddConversationTurnRequest, type AddEmailDomainInput, type AddEmailDomainRequest, type AgentAttachmentRefsApiResponse, type AgentCallerApiResponse, type AgentDefinitionImportErrorResponse, type AgentDefinitionResponse, type AgentEmailOptOutListResponse, type AgentEmailOptOutResponse, type AgentEvaluationTier, type AgentExportResponse, type AgentImportPreviewRequest, type AgentImportPreviewResponse, type AgentListResponse, type AgentRunAttemptResponse, type AgentRunEvent, type AgentRunListResponse, type AgentRunRequest, type AgentRunResponse, type AgentRunStepResponse, type AgentRunStreamRequest, type AgentRunToolCallResponse, type AgentSummaryResponse, type AgentTraceMatchResponse, type AgentTraceSearchRequest, type AgentTraceSearchResponse, type AiAssistantAcceptRequest, type AiAssistantAcceptResponse, type AiAssistantFeedbackRequest, type AiAssistantFeedbackResponse, type AiAssistantGenerateRequest, type AiAssistantGenerateResponse, type AiConversationHistoryResponse, type AiConversationTurnResponse, type AttachmentRefsSourceApiSummary, type AuthState, type BlockEmailSenderRequest, type BlockedEmailSenderListResponse, type BlockedEmailSenderResponse, type CancelQueuedRunsResponse, type ChangeStatusRequest, type CompactionEvaluationModel, type CompactionTestResponse, type CompatibleRunListResponse, type CompatibleRunResponse, type ContentDetailResponse, type ContentEmbeddingResponse, type ContentEmbeddingsListResponse, type ContentFileUploadResponse, type CreateAgentRequest, type CreateAlertConfigRequest, type CreateEvaluationCriteriaRequest, type CreateEvaluationResultRequest, type CreateExperimentInput, type CreateExportRequest, type CreateKnowledgeBaseBody, type CreateMemoryBankBody, type CreateSolutionRequest, type CreateSourceBody, type CredentialChainOptions, DEFAULT_SSO_CLIENT_ID, DEFAULT_SSO_DOMAIN, DEFAULT_SSO_REGION, type DmarcFailingSourceResponse, type DmarcSummaryResponse, type DnsProviderResponse, type DnsRecordResponse, type EmailDomainResponse, type EmailDomainsListResponse, type EmailTriggerConfigResponse, type EstimateExportRequest, type EstimateExportResponse, type EvaluationCriteriaResponse, type EvaluationResultListResponse, type EvaluationResultResponse, type EvaluationResultSummaryResponse, type EvaluationResultWithCriteriaListResponse, type EvaluationResultWithCriteriaResponse, type EvaluationRunSummaryListResponse, type EvaluationRunSummaryResponse, type EvaluationStatus, type ExamplePrompt, type ExecutedActionResponse, type ExportFormat, type ExportListResponse, type ExportResponse, type FetchLike, type FileUploadResponse, type GenerateAgentStepsRequest, type GenerateAgentStepsResponse, type GenerateStepConfigRequest, type GenerateStepConfigResponse, type GovernanceAiAcceptResponse, type GovernanceAiAssistantRequest, type GovernanceAiAssistantResponse, type GovernanceAppliedActionResponse, type GovernanceConversationResponse, type GovernancePolicyRefResponse, type GovernanceProposedPolicyActionResponse, type HTTPValidationError, type ImportFieldErrorModel, type ImportSkipResponse, type InboundEmailRejectionResponse, type InboundEmailStatusResponse, type InlineTextReplaceRequest, type InlineTextUploadRequest, type InsufficientCreditsDetail, type InsufficientCreditsResponse, type JSONValue, type KnowledgeBaseListResponse, type KnowledgeBaseResponse, type LinkResourcesRequest, type ListOptions, type MarkAiSuggestionRequest, type MarkConversationTurnRequest, type MeResponse, type MemoryBankAcceptRequest, type MemoryBankAiAssistantRequest, type MemoryBankAiAssistantResponse, type MemoryBankConfigResponse, type MemoryBankConversationTurnResponse, type MemoryBankLastConversationResponse, type MemoryBankListResponse, type MemoryBankResponse, type ModalityRateResponse, type NonManualEvaluationModeStatResponse, type NonManualEvaluationSummaryResponse, type OrganizationAlertPreferenceListResponse, type OrganizationAlertPreferenceResponse, type OrganizationInfoResponse, type PaginationResponse, type PendingProcessingCompletedFailedStatus, type PlaygroundCreateRequest, type PromptModelAutoUpgradeStrategy, type PromptModelResponse, type PromptToolResponse, type ProposedActionResponse, type ProviderGroupResponse, type RemoveEmailDomainResponse, type ResumeInboundResponse, SECLAI_API_URL, Seclai, SeclaiAPIStatusError, SeclaiAPIValidationError, SeclaiConfigurationError, SeclaiError, type SeclaiOptions, SeclaiStreamingError, type SendTestEmailResponse, type SetAutoBlockModeRequest, type SetEmailTriggerConfigRequest, type SolutionAgentResponse, type SolutionConversationResponse, type SolutionKnowledgeBaseResponse, type SolutionListResponse, type SolutionResponse, type SolutionSourceConnectionResponse, type SolutionSummaryResponse, type SortableListOptions, type SourceConnectionResponse, type SourceEmbeddingMigrationResponse, type SourceIndexMode, type SourceListResponse, type SourceResponse, type SsoCacheEntry, type SsoProfile, type StandaloneTestCompactionRequest, type StartSourceEmbeddingMigrationRequest, type TestCompactionRequest, type TestDraftEvaluationRequest, type TestDraftEvaluationResponse, type UnlinkResourcesRequest, type UpdateAgentDefinitionRequest, type UpdateAgentRequest, type UpdateAlertConfigRequest, type UpdateEvaluationCriteriaRequest, type UpdateKnowledgeBaseBody, type UpdateMemoryBankBody, type UpdateOrganizationAlertPreferenceRequest, type UpdateSolutionRequest, type UpdateSourceBody, type UploadAgentInputApiResponse, type ValidationError, type VariantCategoryResponse, type VariantOptionResponse, deleteSsoCache, isTokenValid, loadSsoProfile, readSsoCache, writeSsoCache };
|
|
7710
|
+
export { type AccessTokenProvider, type AddCommentRequest, type AddConversationTurnRequest, type AddEmailDomainInput, type AddEmailDomainRequest, type AgentAttachmentRefsApiResponse, type AgentCallerApiResponse, type AgentDefinitionImportErrorResponse, type AgentDefinitionResponse, type AgentEmailOptOutListResponse, type AgentEmailOptOutResponse, type AgentEvaluationTier, type AgentExportResponse, type AgentImportPreviewRequest, type AgentImportPreviewResponse, type AgentListResponse, type AgentRunAttemptResponse, type AgentRunEvent, type AgentRunListResponse, type AgentRunRequest, type AgentRunResponse, type AgentRunStepResponse, type AgentRunStreamRequest, type AgentRunToolCallResponse, type AgentSummaryResponse, type AgentTraceMatchResponse, type AgentTraceSearchRequest, type AgentTraceSearchResponse, type AiAssistantAcceptRequest, type AiAssistantAcceptResponse, type AiAssistantFeedbackRequest, type AiAssistantFeedbackResponse, type AiAssistantGenerateRequest, type AiAssistantGenerateResponse, type AiConversationHistoryResponse, type AiConversationTurnResponse, type 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 CompactionEvaluationModel, type CompactionTestResponse, type CompatibleRunListResponse, type CompatibleRunResponse, type ContentDetailResponse, type ContentEmbeddingResponse, type ContentEmbeddingsListResponse, type ContentFileUploadResponse, type CreateAgentRequest, type CreateAlertConfigRequest, type CreateEvaluationCriteriaRequest, type CreateEvaluationResultRequest, type CreateExperimentInput, type CreateExperimentResponse, type CreateExportRequest, type CreateKnowledgeBaseBody, type CreateMemoryBankBody, type CreateSolutionRequest, type CreateSourceBody, type CredentialChainOptions, DEFAULT_SSO_CLIENT_ID, DEFAULT_SSO_DOMAIN, DEFAULT_SSO_REGION, type DmarcFailingSourceResponse, type DmarcSummaryResponse, type DnsProviderResponse, type DnsRecordResponse, type EmailDomainResponse, type EmailDomainsListResponse, type EmailTriggerConfigResponse, 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 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 PaginationResponse, type PendingProcessingCompletedFailedStatus, type PlaygroundCreateRequest, type PromptModelAutoUpgradeStrategy, type PromptModelResponse, type PromptToolResponse, type ProposedActionResponse, type ProviderGroupResponse, type RemoveEmailDomainResponse, type ResumeInboundResponse, SECLAI_API_URL, type SearchResponse, type SearchResultResponse, Seclai, SeclaiAPIStatusError, SeclaiAPIValidationError, SeclaiApiVersion, SeclaiConfigurationError, SeclaiError, type SeclaiOptions, SeclaiStreamingError, type SendTestEmailResponse, type SetAutoBlockModeRequest, type SetEmailTriggerConfigRequest, type SolutionAgentResponse, type SolutionConversationResponse, type SolutionKnowledgeBaseResponse, type SolutionListResponse, type SolutionResponse, type SolutionSourceConnectionResponse, type SolutionSummaryResponse, type SortableListOptions, type SourceConnectionResponse, type 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 };
|