@seclai/sdk 1.6.0 → 1.6.1
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 +18 -0
- package/README.md +45 -27
- package/dist/index.cjs +223 -124
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -28
- package/dist/index.d.ts +40 -28
- package/dist/index.js +223 -124
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -6213,6 +6213,15 @@ type HTTPValidationError = components["schemas"]["HTTPValidationError"];
|
|
|
6213
6213
|
type ValidationError = components["schemas"]["ValidationError"];
|
|
6214
6214
|
/** Pagination metadata included in list responses. */
|
|
6215
6215
|
type PaginationResponse = components["schemas"]["PaginationResponse"];
|
|
6216
|
+
/**
|
|
6217
|
+
* A list response whose endpoint is version-gated. `T` is the default shape,
|
|
6218
|
+
* which the client returns on every version; `data` and `pagination` are also
|
|
6219
|
+
* present when `apiVersion` is `2026-07-27` or later.
|
|
6220
|
+
*/
|
|
6221
|
+
type VersionedList<T, K extends keyof T> = T & {
|
|
6222
|
+
data?: T[K];
|
|
6223
|
+
pagination?: PaginationResponse;
|
|
6224
|
+
};
|
|
6216
6225
|
/** The authenticated user's personal account ID and the organizations they belong to. */
|
|
6217
6226
|
type MeResponse = components["schemas"]["MeResponse"];
|
|
6218
6227
|
/** One organization the authenticated user belongs to, within a {@link MeResponse}. */
|
|
@@ -6259,13 +6268,13 @@ type EmailTriggerConfigResponse = components["schemas"]["EmailTriggerConfigRespo
|
|
|
6259
6268
|
/** A recipient's opt-out from an account's agent emails (one agent, or account-wide). */
|
|
6260
6269
|
type AgentEmailOptOutResponse = components["schemas"]["AgentEmailOptOutResponse"];
|
|
6261
6270
|
/** A page of agent-email opt-outs plus the total count. */
|
|
6262
|
-
type AgentEmailOptOutListResponse = components["schemas"]["AgentEmailOptOutListResponse"]
|
|
6271
|
+
type AgentEmailOptOutListResponse = VersionedList<components["schemas"]["AgentEmailOptOutListResponse"], "items">;
|
|
6263
6272
|
/** Request body for blocking an inbound email sender or domain. */
|
|
6264
6273
|
type BlockEmailSenderRequest = components["schemas"]["BlockEmailSenderRequest"];
|
|
6265
6274
|
/** A single blocked inbound email sender. */
|
|
6266
6275
|
type BlockedEmailSenderResponse = components["schemas"]["BlockedEmailSenderResponse"];
|
|
6267
6276
|
/** A page of blocked senders plus the account's governance auto-block mode. */
|
|
6268
|
-
type BlockedEmailSenderListResponse = components["schemas"]["BlockedEmailSenderListResponse"]
|
|
6277
|
+
type BlockedEmailSenderListResponse = VersionedList<components["schemas"]["BlockedEmailSenderListResponse"], "items">;
|
|
6269
6278
|
/** Request body for setting the governance auto-block mode. */
|
|
6270
6279
|
type SetAutoBlockModeRequest = components["schemas"]["SetAutoBlockModeRequest"];
|
|
6271
6280
|
/** An inbound email that was discarded before running an agent. */
|
|
@@ -6336,9 +6345,8 @@ type AlertConfigResponse = components["schemas"]["AlertConfigResponse"];
|
|
|
6336
6345
|
/**
|
|
6337
6346
|
* A page of alert configurations.
|
|
6338
6347
|
*
|
|
6339
|
-
*
|
|
6340
|
-
*
|
|
6341
|
-
* or later. Both are declared optional so either shape type-checks.
|
|
6348
|
+
* `configs` and `total` are populated on every API version; `data` and
|
|
6349
|
+
* `pagination` are also present once `apiVersion` is `2026-07-27` or later.
|
|
6342
6350
|
*/
|
|
6343
6351
|
type AlertConfigListResponse = {
|
|
6344
6352
|
configs?: AlertConfigResponse[];
|
|
@@ -6351,9 +6359,8 @@ type ModelAlertResponse = components["schemas"]["routers__api__model_lifecycle__
|
|
|
6351
6359
|
/**
|
|
6352
6360
|
* A page of model lifecycle alerts.
|
|
6353
6361
|
*
|
|
6354
|
-
*
|
|
6355
|
-
*
|
|
6356
|
-
* later. Both are declared optional so either shape type-checks.
|
|
6362
|
+
* `alerts` and `total` are populated on every API version; `data` and
|
|
6363
|
+
* `pagination` are also present once `apiVersion` is `2026-07-27` or later.
|
|
6357
6364
|
*/
|
|
6358
6365
|
type ModelAlertListResponse = {
|
|
6359
6366
|
alerts?: ModelAlertResponse[];
|
|
@@ -6374,7 +6381,7 @@ type ModelRecommendationsResponse = components["schemas"]["routers__api__model_l
|
|
|
6374
6381
|
/** A single successor recommendation. */
|
|
6375
6382
|
type ModelRecommendationResponse = components["schemas"]["routers__api__model_lifecycle__ModelRecommendationResponse"];
|
|
6376
6383
|
/** A page of model playground experiments. */
|
|
6377
|
-
type ExperimentListResponse = components["schemas"]["ExperimentListResponse"]
|
|
6384
|
+
type ExperimentListResponse = VersionedList<components["schemas"]["ExperimentListResponse"], "experiments">;
|
|
6378
6385
|
/** A model playground experiment in a listing. */
|
|
6379
6386
|
type ExperimentSummaryResponse = components["schemas"]["ExperimentSummaryResponse"];
|
|
6380
6387
|
/** A model playground experiment with its results. */
|
|
@@ -6410,7 +6417,7 @@ type UpdateEvaluationCriteriaRequest = components["schemas"]["UpdateEvaluationCr
|
|
|
6410
6417
|
/** Individual evaluation result. */
|
|
6411
6418
|
type EvaluationResultResponse = components["schemas"]["EvaluationResultResponse"];
|
|
6412
6419
|
/** Paginated list of evaluation results. */
|
|
6413
|
-
type EvaluationResultListResponse = components["schemas"]["EvaluationResultListResponse"]
|
|
6420
|
+
type EvaluationResultListResponse = VersionedList<components["schemas"]["EvaluationResultListResponse"], "data">;
|
|
6414
6421
|
/** Request body for creating a manual evaluation result. */
|
|
6415
6422
|
type CreateEvaluationResultRequest = components["schemas"]["CreateEvaluationResultRequest"];
|
|
6416
6423
|
/** Summary of evaluation results for a criteria. */
|
|
@@ -6428,8 +6435,8 @@ type EvaluationResultWithCriteriaResponse = components["schemas"]["EvaluationRes
|
|
|
6428
6435
|
* `page` and `limit`.
|
|
6429
6436
|
* - `GET /agents/{id}/runs/{runId}/evaluation-results` is version-gated: a bare
|
|
6430
6437
|
* array by default, and the canonical `{data, pagination}` envelope once
|
|
6431
|
-
* `apiVersion` is `2026-07-27` or later
|
|
6432
|
-
* `
|
|
6438
|
+
* `apiVersion` is `2026-07-27` or later. The client then fills `total`,
|
|
6439
|
+
* `page` and `limit` from `pagination`; on the bare array they are absent.
|
|
6433
6440
|
*/
|
|
6434
6441
|
type EvaluationResultWithCriteriaListResponse = Omit<components["schemas"]["EvaluationResultWithCriteriaListResponse"], "total" | "page" | "limit"> & {
|
|
6435
6442
|
pagination?: PaginationResponse;
|
|
@@ -6440,7 +6447,7 @@ type EvaluationResultWithCriteriaListResponse = Omit<components["schemas"]["Eval
|
|
|
6440
6447
|
/** Summary of an evaluation run. */
|
|
6441
6448
|
type EvaluationRunSummaryResponse = components["schemas"]["EvaluationRunSummaryResponse"];
|
|
6442
6449
|
/** Paginated list of evaluation run summaries. */
|
|
6443
|
-
type EvaluationRunSummaryListResponse = components["schemas"]["EvaluationRunSummaryListResponse"]
|
|
6450
|
+
type EvaluationRunSummaryListResponse = VersionedList<components["schemas"]["EvaluationRunSummaryListResponse"], "data">;
|
|
6444
6451
|
/** Status of an evaluation: pending, passed, failed, skipped, or error. */
|
|
6445
6452
|
type EvaluationStatus = components["schemas"]["EvaluationStatus"];
|
|
6446
6453
|
/** Summary of non-manual (automated) evaluation results. */
|
|
@@ -6452,11 +6459,11 @@ type TestDraftEvaluationRequest = components["schemas"]["TestDraftEvaluationRequ
|
|
|
6452
6459
|
/** Response from testing a draft evaluation. */
|
|
6453
6460
|
type TestDraftEvaluationResponse = components["schemas"]["TestDraftEvaluationResponse"];
|
|
6454
6461
|
/** Paginated list of runs compatible with a specific evaluation criteria. */
|
|
6455
|
-
type CompatibleRunListResponse = components["schemas"]["CompatibleRunListResponse"]
|
|
6462
|
+
type CompatibleRunListResponse = VersionedList<components["schemas"]["CompatibleRunListResponse"], "data">;
|
|
6456
6463
|
/** Individual compatible run. */
|
|
6457
6464
|
type CompatibleRunResponse = components["schemas"]["CompatibleRunResponse"];
|
|
6458
6465
|
/** Paginated list of knowledge bases. */
|
|
6459
|
-
type KnowledgeBaseListResponse = components["schemas"]["KnowledgeBaseListResponseModel"]
|
|
6466
|
+
type KnowledgeBaseListResponse = VersionedList<components["schemas"]["KnowledgeBaseListResponseModel"], "knowledge_bases">;
|
|
6460
6467
|
/** Full knowledge base configuration and metadata. */
|
|
6461
6468
|
type KnowledgeBaseResponse = components["schemas"]["KnowledgeBaseResponseModel"];
|
|
6462
6469
|
/** Request body for creating a knowledge base. */
|
|
@@ -6464,7 +6471,7 @@ type CreateKnowledgeBaseBody = components["schemas"]["CreateKnowledgeBaseBody"];
|
|
|
6464
6471
|
/** Request body for updating a knowledge base. */
|
|
6465
6472
|
type UpdateKnowledgeBaseBody = components["schemas"]["UpdateKnowledgeBaseBody"];
|
|
6466
6473
|
/** Paginated list of memory banks. */
|
|
6467
|
-
type MemoryBankListResponse = components["schemas"]["MemoryBankListResponseModel"]
|
|
6474
|
+
type MemoryBankListResponse = VersionedList<components["schemas"]["MemoryBankListResponseModel"], "memory_banks">;
|
|
6468
6475
|
/** Full memory bank configuration and metadata. */
|
|
6469
6476
|
type MemoryBankResponse = components["schemas"]["MemoryBankResponseModel"];
|
|
6470
6477
|
/** Request body for creating a memory bank. */
|
|
@@ -6621,7 +6628,7 @@ type AddCommentRequest = components["schemas"]["routers__api__alerts__AddComment
|
|
|
6621
6628
|
/** Organization alert preference. */
|
|
6622
6629
|
type OrganizationAlertPreferenceResponse = components["schemas"]["routers__api__alerts__OrganizationAlertPreferenceResponse"];
|
|
6623
6630
|
/** Paginated list of organization alert preferences. */
|
|
6624
|
-
type OrganizationAlertPreferenceListResponse = components["schemas"]["OrganizationAlertPreferenceListResponse"]
|
|
6631
|
+
type OrganizationAlertPreferenceListResponse = VersionedList<components["schemas"]["OrganizationAlertPreferenceListResponse"], "preferences">;
|
|
6625
6632
|
/** Request to update an organization alert preference. */
|
|
6626
6633
|
type UpdateOrganizationAlertPreferenceRequest = components["schemas"]["routers__api__alerts__UpdateOrganizationAlertPreferenceRequest"];
|
|
6627
6634
|
/** Request body for AI assistant feedback. */
|
|
@@ -6643,7 +6650,7 @@ type EffortOptionsResponse = components["schemas"]["EffortOptionsResponse"];
|
|
|
6643
6650
|
/** An embedding model a source can index with. */
|
|
6644
6651
|
type EmbeddingModelResponse = components["schemas"]["EmbeddingModelResponse"];
|
|
6645
6652
|
/** The embedding models, with the defaults and pricing that apply to all of them. */
|
|
6646
|
-
type EmbeddingModelListResponse = components["schemas"]["EmbeddingModelListResponse"]
|
|
6653
|
+
type EmbeddingModelListResponse = VersionedList<components["schemas"]["EmbeddingModelListResponse"], "models">;
|
|
6647
6654
|
/** Per-modality rate for an embedding model. */
|
|
6648
6655
|
type EmbeddingModalityRateResponse = components["schemas"]["EmbeddingModalityRateResponse"];
|
|
6649
6656
|
/** Storage credits for one embedding dimension. */
|
|
@@ -6651,7 +6658,7 @@ type EmbeddingStorageCreditsResponse = components["schemas"]["EmbeddingStorageCr
|
|
|
6651
6658
|
/** A reranker model a knowledge base can use. */
|
|
6652
6659
|
type RerankerModelResponse = components["schemas"]["RerankerModelResponse"];
|
|
6653
6660
|
/** The reranker models, with the default and pricing that apply to all of them. */
|
|
6654
|
-
type RerankerModelListResponse = components["schemas"]["RerankerModelListResponse"]
|
|
6661
|
+
type RerankerModelListResponse = VersionedList<components["schemas"]["RerankerModelListResponse"], "models">;
|
|
6655
6662
|
/** Variant category for model pricing tiers. */
|
|
6656
6663
|
type VariantCategoryResponse = components["schemas"]["VariantCategoryResponse"];
|
|
6657
6664
|
/** Variant option with credit pricing and context limits. */
|
|
@@ -6678,7 +6685,7 @@ type AddEmailDomainInput = Pick<AddEmailDomainRequest, "kind" | "value"> & Parti
|
|
|
6678
6685
|
/** An agent-email domain with its verification status and required DNS records. */
|
|
6679
6686
|
type EmailDomainResponse = components["schemas"]["EmailDomainResponse"];
|
|
6680
6687
|
/** The account's email domains plus the plan capabilities for adding more. */
|
|
6681
|
-
type EmailDomainsListResponse = components["schemas"]["EmailDomainsListResponse"]
|
|
6688
|
+
type EmailDomainsListResponse = VersionedList<components["schemas"]["EmailDomainsListResponse"], "domains">;
|
|
6682
6689
|
/** Result of removing an email domain (with an optional registrar `cleanup_note`). */
|
|
6683
6690
|
type RemoveEmailDomainResponse = components["schemas"]["RemoveEmailDomainResponse"];
|
|
6684
6691
|
/** Result of sending a test email from a verified domain. */
|
|
@@ -6839,6 +6846,7 @@ type PaginatedPage<T> = T[] | {
|
|
|
6839
6846
|
declare class Seclai {
|
|
6840
6847
|
private readonly baseUrl;
|
|
6841
6848
|
private readonly defaultHeaders;
|
|
6849
|
+
private readonly allowUnknownApiVersion;
|
|
6842
6850
|
private readonly fetcher;
|
|
6843
6851
|
private _authState;
|
|
6844
6852
|
private _authInitPromise;
|
|
@@ -6859,6 +6867,13 @@ declare class Seclai {
|
|
|
6859
6867
|
constructor(opts?: SeclaiOptions);
|
|
6860
6868
|
/** Ensure the credential chain has been resolved. */
|
|
6861
6869
|
private ensureAuth;
|
|
6870
|
+
/** Throw unless the `Seclai-Version` in `headers` is one this release was built against. */
|
|
6871
|
+
private assertKnownApiVersion;
|
|
6872
|
+
/**
|
|
6873
|
+
* The headers one request sends: `layers` merged in order, later winning,
|
|
6874
|
+
* with the resulting `Seclai-Version` checked against the known versions.
|
|
6875
|
+
*/
|
|
6876
|
+
private requestHeaders;
|
|
6862
6877
|
/** Resolve auth headers for the current request. */
|
|
6863
6878
|
private authHeaders;
|
|
6864
6879
|
/**
|
|
@@ -7260,10 +7275,9 @@ declare class Seclai {
|
|
|
7260
7275
|
/**
|
|
7261
7276
|
* List evaluation criteria for an agent, with pagination metadata.
|
|
7262
7277
|
*
|
|
7263
|
-
*
|
|
7264
|
-
*
|
|
7265
|
-
*
|
|
7266
|
-
* when the endpoint answers with a bare array.
|
|
7278
|
+
* The endpoint answers with a bare array by default and with `{data,
|
|
7279
|
+
* pagination}` once `apiVersion` is 2026-07-27 or later; `pagination` is
|
|
7280
|
+
* absent on the bare array.
|
|
7267
7281
|
*
|
|
7268
7282
|
* @param agentId - Agent identifier.
|
|
7269
7283
|
* @param opts - Pagination options.
|
|
@@ -8023,10 +8037,8 @@ declare class Seclai {
|
|
|
8023
8037
|
* @returns Paginated list of alert configs.
|
|
8024
8038
|
*/
|
|
8025
8039
|
/**
|
|
8026
|
-
*
|
|
8027
|
-
*
|
|
8028
|
-
* returns the canonical `{data, pagination}` envelope instead, so the
|
|
8029
|
-
* top-level key changes.
|
|
8040
|
+
* `configs` and `total` are populated on every API version; `data` and
|
|
8041
|
+
* `pagination` are also present once `apiVersion` is 2026-07-27 or later.
|
|
8030
8042
|
*/
|
|
8031
8043
|
listAlertConfigs(opts?: ListOptions): Promise<AlertConfigListResponse>;
|
|
8032
8044
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -6213,6 +6213,15 @@ type HTTPValidationError = components["schemas"]["HTTPValidationError"];
|
|
|
6213
6213
|
type ValidationError = components["schemas"]["ValidationError"];
|
|
6214
6214
|
/** Pagination metadata included in list responses. */
|
|
6215
6215
|
type PaginationResponse = components["schemas"]["PaginationResponse"];
|
|
6216
|
+
/**
|
|
6217
|
+
* A list response whose endpoint is version-gated. `T` is the default shape,
|
|
6218
|
+
* which the client returns on every version; `data` and `pagination` are also
|
|
6219
|
+
* present when `apiVersion` is `2026-07-27` or later.
|
|
6220
|
+
*/
|
|
6221
|
+
type VersionedList<T, K extends keyof T> = T & {
|
|
6222
|
+
data?: T[K];
|
|
6223
|
+
pagination?: PaginationResponse;
|
|
6224
|
+
};
|
|
6216
6225
|
/** The authenticated user's personal account ID and the organizations they belong to. */
|
|
6217
6226
|
type MeResponse = components["schemas"]["MeResponse"];
|
|
6218
6227
|
/** One organization the authenticated user belongs to, within a {@link MeResponse}. */
|
|
@@ -6259,13 +6268,13 @@ type EmailTriggerConfigResponse = components["schemas"]["EmailTriggerConfigRespo
|
|
|
6259
6268
|
/** A recipient's opt-out from an account's agent emails (one agent, or account-wide). */
|
|
6260
6269
|
type AgentEmailOptOutResponse = components["schemas"]["AgentEmailOptOutResponse"];
|
|
6261
6270
|
/** A page of agent-email opt-outs plus the total count. */
|
|
6262
|
-
type AgentEmailOptOutListResponse = components["schemas"]["AgentEmailOptOutListResponse"]
|
|
6271
|
+
type AgentEmailOptOutListResponse = VersionedList<components["schemas"]["AgentEmailOptOutListResponse"], "items">;
|
|
6263
6272
|
/** Request body for blocking an inbound email sender or domain. */
|
|
6264
6273
|
type BlockEmailSenderRequest = components["schemas"]["BlockEmailSenderRequest"];
|
|
6265
6274
|
/** A single blocked inbound email sender. */
|
|
6266
6275
|
type BlockedEmailSenderResponse = components["schemas"]["BlockedEmailSenderResponse"];
|
|
6267
6276
|
/** A page of blocked senders plus the account's governance auto-block mode. */
|
|
6268
|
-
type BlockedEmailSenderListResponse = components["schemas"]["BlockedEmailSenderListResponse"]
|
|
6277
|
+
type BlockedEmailSenderListResponse = VersionedList<components["schemas"]["BlockedEmailSenderListResponse"], "items">;
|
|
6269
6278
|
/** Request body for setting the governance auto-block mode. */
|
|
6270
6279
|
type SetAutoBlockModeRequest = components["schemas"]["SetAutoBlockModeRequest"];
|
|
6271
6280
|
/** An inbound email that was discarded before running an agent. */
|
|
@@ -6336,9 +6345,8 @@ type AlertConfigResponse = components["schemas"]["AlertConfigResponse"];
|
|
|
6336
6345
|
/**
|
|
6337
6346
|
* A page of alert configurations.
|
|
6338
6347
|
*
|
|
6339
|
-
*
|
|
6340
|
-
*
|
|
6341
|
-
* or later. Both are declared optional so either shape type-checks.
|
|
6348
|
+
* `configs` and `total` are populated on every API version; `data` and
|
|
6349
|
+
* `pagination` are also present once `apiVersion` is `2026-07-27` or later.
|
|
6342
6350
|
*/
|
|
6343
6351
|
type AlertConfigListResponse = {
|
|
6344
6352
|
configs?: AlertConfigResponse[];
|
|
@@ -6351,9 +6359,8 @@ type ModelAlertResponse = components["schemas"]["routers__api__model_lifecycle__
|
|
|
6351
6359
|
/**
|
|
6352
6360
|
* A page of model lifecycle alerts.
|
|
6353
6361
|
*
|
|
6354
|
-
*
|
|
6355
|
-
*
|
|
6356
|
-
* later. Both are declared optional so either shape type-checks.
|
|
6362
|
+
* `alerts` and `total` are populated on every API version; `data` and
|
|
6363
|
+
* `pagination` are also present once `apiVersion` is `2026-07-27` or later.
|
|
6357
6364
|
*/
|
|
6358
6365
|
type ModelAlertListResponse = {
|
|
6359
6366
|
alerts?: ModelAlertResponse[];
|
|
@@ -6374,7 +6381,7 @@ type ModelRecommendationsResponse = components["schemas"]["routers__api__model_l
|
|
|
6374
6381
|
/** A single successor recommendation. */
|
|
6375
6382
|
type ModelRecommendationResponse = components["schemas"]["routers__api__model_lifecycle__ModelRecommendationResponse"];
|
|
6376
6383
|
/** A page of model playground experiments. */
|
|
6377
|
-
type ExperimentListResponse = components["schemas"]["ExperimentListResponse"]
|
|
6384
|
+
type ExperimentListResponse = VersionedList<components["schemas"]["ExperimentListResponse"], "experiments">;
|
|
6378
6385
|
/** A model playground experiment in a listing. */
|
|
6379
6386
|
type ExperimentSummaryResponse = components["schemas"]["ExperimentSummaryResponse"];
|
|
6380
6387
|
/** A model playground experiment with its results. */
|
|
@@ -6410,7 +6417,7 @@ type UpdateEvaluationCriteriaRequest = components["schemas"]["UpdateEvaluationCr
|
|
|
6410
6417
|
/** Individual evaluation result. */
|
|
6411
6418
|
type EvaluationResultResponse = components["schemas"]["EvaluationResultResponse"];
|
|
6412
6419
|
/** Paginated list of evaluation results. */
|
|
6413
|
-
type EvaluationResultListResponse = components["schemas"]["EvaluationResultListResponse"]
|
|
6420
|
+
type EvaluationResultListResponse = VersionedList<components["schemas"]["EvaluationResultListResponse"], "data">;
|
|
6414
6421
|
/** Request body for creating a manual evaluation result. */
|
|
6415
6422
|
type CreateEvaluationResultRequest = components["schemas"]["CreateEvaluationResultRequest"];
|
|
6416
6423
|
/** Summary of evaluation results for a criteria. */
|
|
@@ -6428,8 +6435,8 @@ type EvaluationResultWithCriteriaResponse = components["schemas"]["EvaluationRes
|
|
|
6428
6435
|
* `page` and `limit`.
|
|
6429
6436
|
* - `GET /agents/{id}/runs/{runId}/evaluation-results` is version-gated: a bare
|
|
6430
6437
|
* array by default, and the canonical `{data, pagination}` envelope once
|
|
6431
|
-
* `apiVersion` is `2026-07-27` or later
|
|
6432
|
-
* `
|
|
6438
|
+
* `apiVersion` is `2026-07-27` or later. The client then fills `total`,
|
|
6439
|
+
* `page` and `limit` from `pagination`; on the bare array they are absent.
|
|
6433
6440
|
*/
|
|
6434
6441
|
type EvaluationResultWithCriteriaListResponse = Omit<components["schemas"]["EvaluationResultWithCriteriaListResponse"], "total" | "page" | "limit"> & {
|
|
6435
6442
|
pagination?: PaginationResponse;
|
|
@@ -6440,7 +6447,7 @@ type EvaluationResultWithCriteriaListResponse = Omit<components["schemas"]["Eval
|
|
|
6440
6447
|
/** Summary of an evaluation run. */
|
|
6441
6448
|
type EvaluationRunSummaryResponse = components["schemas"]["EvaluationRunSummaryResponse"];
|
|
6442
6449
|
/** Paginated list of evaluation run summaries. */
|
|
6443
|
-
type EvaluationRunSummaryListResponse = components["schemas"]["EvaluationRunSummaryListResponse"]
|
|
6450
|
+
type EvaluationRunSummaryListResponse = VersionedList<components["schemas"]["EvaluationRunSummaryListResponse"], "data">;
|
|
6444
6451
|
/** Status of an evaluation: pending, passed, failed, skipped, or error. */
|
|
6445
6452
|
type EvaluationStatus = components["schemas"]["EvaluationStatus"];
|
|
6446
6453
|
/** Summary of non-manual (automated) evaluation results. */
|
|
@@ -6452,11 +6459,11 @@ type TestDraftEvaluationRequest = components["schemas"]["TestDraftEvaluationRequ
|
|
|
6452
6459
|
/** Response from testing a draft evaluation. */
|
|
6453
6460
|
type TestDraftEvaluationResponse = components["schemas"]["TestDraftEvaluationResponse"];
|
|
6454
6461
|
/** Paginated list of runs compatible with a specific evaluation criteria. */
|
|
6455
|
-
type CompatibleRunListResponse = components["schemas"]["CompatibleRunListResponse"]
|
|
6462
|
+
type CompatibleRunListResponse = VersionedList<components["schemas"]["CompatibleRunListResponse"], "data">;
|
|
6456
6463
|
/** Individual compatible run. */
|
|
6457
6464
|
type CompatibleRunResponse = components["schemas"]["CompatibleRunResponse"];
|
|
6458
6465
|
/** Paginated list of knowledge bases. */
|
|
6459
|
-
type KnowledgeBaseListResponse = components["schemas"]["KnowledgeBaseListResponseModel"]
|
|
6466
|
+
type KnowledgeBaseListResponse = VersionedList<components["schemas"]["KnowledgeBaseListResponseModel"], "knowledge_bases">;
|
|
6460
6467
|
/** Full knowledge base configuration and metadata. */
|
|
6461
6468
|
type KnowledgeBaseResponse = components["schemas"]["KnowledgeBaseResponseModel"];
|
|
6462
6469
|
/** Request body for creating a knowledge base. */
|
|
@@ -6464,7 +6471,7 @@ type CreateKnowledgeBaseBody = components["schemas"]["CreateKnowledgeBaseBody"];
|
|
|
6464
6471
|
/** Request body for updating a knowledge base. */
|
|
6465
6472
|
type UpdateKnowledgeBaseBody = components["schemas"]["UpdateKnowledgeBaseBody"];
|
|
6466
6473
|
/** Paginated list of memory banks. */
|
|
6467
|
-
type MemoryBankListResponse = components["schemas"]["MemoryBankListResponseModel"]
|
|
6474
|
+
type MemoryBankListResponse = VersionedList<components["schemas"]["MemoryBankListResponseModel"], "memory_banks">;
|
|
6468
6475
|
/** Full memory bank configuration and metadata. */
|
|
6469
6476
|
type MemoryBankResponse = components["schemas"]["MemoryBankResponseModel"];
|
|
6470
6477
|
/** Request body for creating a memory bank. */
|
|
@@ -6621,7 +6628,7 @@ type AddCommentRequest = components["schemas"]["routers__api__alerts__AddComment
|
|
|
6621
6628
|
/** Organization alert preference. */
|
|
6622
6629
|
type OrganizationAlertPreferenceResponse = components["schemas"]["routers__api__alerts__OrganizationAlertPreferenceResponse"];
|
|
6623
6630
|
/** Paginated list of organization alert preferences. */
|
|
6624
|
-
type OrganizationAlertPreferenceListResponse = components["schemas"]["OrganizationAlertPreferenceListResponse"]
|
|
6631
|
+
type OrganizationAlertPreferenceListResponse = VersionedList<components["schemas"]["OrganizationAlertPreferenceListResponse"], "preferences">;
|
|
6625
6632
|
/** Request to update an organization alert preference. */
|
|
6626
6633
|
type UpdateOrganizationAlertPreferenceRequest = components["schemas"]["routers__api__alerts__UpdateOrganizationAlertPreferenceRequest"];
|
|
6627
6634
|
/** Request body for AI assistant feedback. */
|
|
@@ -6643,7 +6650,7 @@ type EffortOptionsResponse = components["schemas"]["EffortOptionsResponse"];
|
|
|
6643
6650
|
/** An embedding model a source can index with. */
|
|
6644
6651
|
type EmbeddingModelResponse = components["schemas"]["EmbeddingModelResponse"];
|
|
6645
6652
|
/** The embedding models, with the defaults and pricing that apply to all of them. */
|
|
6646
|
-
type EmbeddingModelListResponse = components["schemas"]["EmbeddingModelListResponse"]
|
|
6653
|
+
type EmbeddingModelListResponse = VersionedList<components["schemas"]["EmbeddingModelListResponse"], "models">;
|
|
6647
6654
|
/** Per-modality rate for an embedding model. */
|
|
6648
6655
|
type EmbeddingModalityRateResponse = components["schemas"]["EmbeddingModalityRateResponse"];
|
|
6649
6656
|
/** Storage credits for one embedding dimension. */
|
|
@@ -6651,7 +6658,7 @@ type EmbeddingStorageCreditsResponse = components["schemas"]["EmbeddingStorageCr
|
|
|
6651
6658
|
/** A reranker model a knowledge base can use. */
|
|
6652
6659
|
type RerankerModelResponse = components["schemas"]["RerankerModelResponse"];
|
|
6653
6660
|
/** The reranker models, with the default and pricing that apply to all of them. */
|
|
6654
|
-
type RerankerModelListResponse = components["schemas"]["RerankerModelListResponse"]
|
|
6661
|
+
type RerankerModelListResponse = VersionedList<components["schemas"]["RerankerModelListResponse"], "models">;
|
|
6655
6662
|
/** Variant category for model pricing tiers. */
|
|
6656
6663
|
type VariantCategoryResponse = components["schemas"]["VariantCategoryResponse"];
|
|
6657
6664
|
/** Variant option with credit pricing and context limits. */
|
|
@@ -6678,7 +6685,7 @@ type AddEmailDomainInput = Pick<AddEmailDomainRequest, "kind" | "value"> & Parti
|
|
|
6678
6685
|
/** An agent-email domain with its verification status and required DNS records. */
|
|
6679
6686
|
type EmailDomainResponse = components["schemas"]["EmailDomainResponse"];
|
|
6680
6687
|
/** The account's email domains plus the plan capabilities for adding more. */
|
|
6681
|
-
type EmailDomainsListResponse = components["schemas"]["EmailDomainsListResponse"]
|
|
6688
|
+
type EmailDomainsListResponse = VersionedList<components["schemas"]["EmailDomainsListResponse"], "domains">;
|
|
6682
6689
|
/** Result of removing an email domain (with an optional registrar `cleanup_note`). */
|
|
6683
6690
|
type RemoveEmailDomainResponse = components["schemas"]["RemoveEmailDomainResponse"];
|
|
6684
6691
|
/** Result of sending a test email from a verified domain. */
|
|
@@ -6839,6 +6846,7 @@ type PaginatedPage<T> = T[] | {
|
|
|
6839
6846
|
declare class Seclai {
|
|
6840
6847
|
private readonly baseUrl;
|
|
6841
6848
|
private readonly defaultHeaders;
|
|
6849
|
+
private readonly allowUnknownApiVersion;
|
|
6842
6850
|
private readonly fetcher;
|
|
6843
6851
|
private _authState;
|
|
6844
6852
|
private _authInitPromise;
|
|
@@ -6859,6 +6867,13 @@ declare class Seclai {
|
|
|
6859
6867
|
constructor(opts?: SeclaiOptions);
|
|
6860
6868
|
/** Ensure the credential chain has been resolved. */
|
|
6861
6869
|
private ensureAuth;
|
|
6870
|
+
/** Throw unless the `Seclai-Version` in `headers` is one this release was built against. */
|
|
6871
|
+
private assertKnownApiVersion;
|
|
6872
|
+
/**
|
|
6873
|
+
* The headers one request sends: `layers` merged in order, later winning,
|
|
6874
|
+
* with the resulting `Seclai-Version` checked against the known versions.
|
|
6875
|
+
*/
|
|
6876
|
+
private requestHeaders;
|
|
6862
6877
|
/** Resolve auth headers for the current request. */
|
|
6863
6878
|
private authHeaders;
|
|
6864
6879
|
/**
|
|
@@ -7260,10 +7275,9 @@ declare class Seclai {
|
|
|
7260
7275
|
/**
|
|
7261
7276
|
* List evaluation criteria for an agent, with pagination metadata.
|
|
7262
7277
|
*
|
|
7263
|
-
*
|
|
7264
|
-
*
|
|
7265
|
-
*
|
|
7266
|
-
* when the endpoint answers with a bare array.
|
|
7278
|
+
* The endpoint answers with a bare array by default and with `{data,
|
|
7279
|
+
* pagination}` once `apiVersion` is 2026-07-27 or later; `pagination` is
|
|
7280
|
+
* absent on the bare array.
|
|
7267
7281
|
*
|
|
7268
7282
|
* @param agentId - Agent identifier.
|
|
7269
7283
|
* @param opts - Pagination options.
|
|
@@ -8023,10 +8037,8 @@ declare class Seclai {
|
|
|
8023
8037
|
* @returns Paginated list of alert configs.
|
|
8024
8038
|
*/
|
|
8025
8039
|
/**
|
|
8026
|
-
*
|
|
8027
|
-
*
|
|
8028
|
-
* returns the canonical `{data, pagination}` envelope instead, so the
|
|
8029
|
-
* top-level key changes.
|
|
8040
|
+
* `configs` and `total` are populated on every API version; `data` and
|
|
8041
|
+
* `pagination` are also present once `apiVersion` is 2026-07-27 or later.
|
|
8030
8042
|
*/
|
|
8031
8043
|
listAlertConfigs(opts?: ListOptions): Promise<AlertConfigListResponse>;
|
|
8032
8044
|
/**
|