@seclai/sdk 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -7826,6 +7826,10 @@ type EmbeddingStorageCreditsResponse = components["schemas"]["EmbeddingStorageCr
7826
7826
  type RerankerModelResponse = components["schemas"]["RerankerModelResponse"];
7827
7827
  /** The reranker models, with the default and pricing that apply to all of them. */
7828
7828
  type RerankerModelListResponse = VersionedList<components["schemas"]["RerankerModelListResponse"], "models">;
7829
+ /** A media-generation quality tier and the model and cost it resolves to. */
7830
+ type GenerationTierResponse = components["schemas"]["GenerationTierResponse"];
7831
+ /** The media-generation quality tiers {@link Seclai.getGenerationTiers} returns. */
7832
+ type GenerationTierListResponse = VersionedList<components["schemas"]["GenerationTierListResponse"], "tiers">;
7829
7833
  /** Variant category for model pricing tiers. */
7830
7834
  type VariantCategoryResponse = components["schemas"]["VariantCategoryResponse"];
7831
7835
  /** Variant option with credit pricing and context limits. */
@@ -8429,11 +8433,11 @@ declare class Seclai {
8429
8433
  /**
8430
8434
  * Run an agent in streaming mode (SSE) and wait for the final result.
8431
8435
  *
8432
- * Consumes the entire SSE stream and returns only the terminal `done` payload.
8433
- * For real-time event access, use {@link runStreamingAgent} instead. The body
8434
- * takes no `include_reasoning` or `include_commentary`, and one passed anyway
8435
- * is not sent: this method returns no `stream_reasoning` or
8436
- * `stream_commentary` events.
8436
+ * Reads the events of {@link runStreamingAgent} and returns the run from the
8437
+ * terminal `done` event. For real-time event access, use
8438
+ * {@link runStreamingAgent} instead. The body takes no `include_reasoning`
8439
+ * or `include_commentary`, and one passed anyway is not sent: this method
8440
+ * returns no `stream_reasoning` or `stream_commentary` events.
8437
8441
  *
8438
8442
  * A `result` event carries the run's answer in `output` once
8439
8443
  * `result_reported_at` is set, and can arrive while later steps still run.
@@ -8442,17 +8446,24 @@ declare class Seclai {
8442
8446
  * its `status` is not terminal and the run can still fail, so check
8443
8447
  * `result_reported_at`, not `status`.
8444
8448
  *
8445
- * If `timeoutMs` elapses, this throws {@link SeclaiStreamingError} with the
8446
- * latest snapshot in `run`: the `result` snapshot if one arrived, else the
8447
- * `init` snapshot. An abort from `signal` rethrows the abort error.
8449
+ * The latest snapshot is the `result` event's run if one arrived, else the
8450
+ * `init` event's run. When the server sends an `error`
8451
+ * event, this throws {@link SeclaiStreamingError} with the server's error
8452
+ * text in its message; when the server sends a `timeout` event, or
8453
+ * `timeoutMs` elapses (unless an HTTP error status arrives as it elapses),
8454
+ * it throws {@link SeclaiStreamingError} too. Each
8455
+ * carries the latest snapshot in `run`. An abort from `signal` rethrows the
8456
+ * abort error. Every way out of this method closes the response body.
8448
8457
  *
8449
8458
  * By default, a stream that ends before `done` returns the latest snapshot
8450
- * when its status is not `pending`, so the run returned may not have
8451
- * finished: check `status` and `result_reported_at`. A stream that breaks
8452
- * throws the fetch error. Pass `throwOnIncomplete: true` to throw
8453
- * {@link SeclaiStreamingError} with the snapshot in `run` in both cases
8454
- * instead; it is recommended, and becomes the default in the next major
8455
- * version.
8459
+ * when its status is not `pending`, so the run returned may
8460
+ * not have finished: check `status` and `result_reported_at`. A stream that
8461
+ * breaks throws the fetch error, unless a `done` event, or with
8462
+ * `returnOnResult` a `result` event, was read in full before it
8463
+ * broke. Pass `throwOnIncomplete: true` to throw
8464
+ * {@link SeclaiStreamingError} with the latest snapshot in `run` in both
8465
+ * cases instead; it is recommended, and becomes the default in the next
8466
+ * major version.
8456
8467
  *
8457
8468
  * @param agentId - Agent identifier.
8458
8469
  * @param body - Streaming run request payload, without `include_reasoning`
@@ -8461,9 +8472,14 @@ declare class Seclai {
8461
8472
  * @returns The run from the `done` event; with `returnOnResult`, the
8462
8473
  * `result` snapshot; without `throwOnIncomplete`, possibly an unfinished
8463
8474
  * snapshot (see above).
8464
- * @throws {@link SeclaiStreamingError} If `timeoutMs` elapses, or, with
8465
- * `throwOnIncomplete`, the stream ends or breaks, before the run finished.
8466
- * Its `run` holds the latest snapshot.
8475
+ * @throws {@link SeclaiStreamingError} If the server sends an `error` or
8476
+ * `timeout` event, `timeoutMs` elapses (unless an HTTP error status
8477
+ * arrives as it elapses), or, with `throwOnIncomplete`, the
8478
+ * stream ends or breaks, before the run finished. Its `run` holds the
8479
+ * latest snapshot. On `timeoutMs`, when the request or read was cut off,
8480
+ * its `cause` is the error it ended with.
8481
+ * @throws {@link SeclaiAPIStatusError} For an HTTP error status, also one
8482
+ * that arrives as `timeoutMs` elapses.
8467
8483
  *
8468
8484
  * @example
8469
8485
  * ```ts
@@ -8502,6 +8518,13 @@ declare class Seclai {
8502
8518
  * `include_commentary` in `body` to also receive `stream_reasoning` or
8503
8519
  * `stream_commentary` events.
8504
8520
  *
8521
+ * The server ends the stream after `done`, after `error` (data
8522
+ * `{ run_id, error }`, the stream failed on the server) or after `timeout`
8523
+ * (data `{ run_id }`); all three are yielded like any other event. When the
8524
+ * server answers with plain JSON instead of SSE, its run is yielded as one
8525
+ * `done` event. Leaving the loop early (`break`, `return` or a throw)
8526
+ * closes the response body.
8527
+ *
8505
8528
  * From `apiVersion` `2026-11-14`, an agent whose definition fails to validate
8506
8529
  * is refused with HTTP 409 ({@link SeclaiAPIStatusError}) before any event,
8507
8530
  * and no run is created.
@@ -8510,6 +8533,11 @@ declare class Seclai {
8510
8533
  * @param body - Streaming run request payload.
8511
8534
  * @param opts - Timeout and abort signal options.
8512
8535
  * @yields {@link AgentRunEvent} for each SSE message.
8536
+ * @throws {@link SeclaiStreamingError} If `timeoutMs` elapses, with the
8537
+ * error the request or read ended with as its `cause`. An HTTP error
8538
+ * status that arrives as it elapses is thrown as itself. An event read
8539
+ * in full before the stream broke or timed out is yielded first, unless
8540
+ * `signal` was aborted.
8513
8541
  *
8514
8542
  * @example
8515
8543
  * ```ts
@@ -8528,6 +8556,12 @@ declare class Seclai {
8528
8556
  timeoutMs?: number;
8529
8557
  signal?: AbortSignal;
8530
8558
  }): AsyncGenerator<AgentRunEvent, void, undefined>;
8559
+ /**
8560
+ * The stream behind {@link runStreamingAgent} and
8561
+ * {@link runStreamingAgentAndWait}: one request, reader and parser for both.
8562
+ * `progress` tells the wait helper what the events alone do not.
8563
+ */
8564
+ private streamRunEvents;
8531
8565
  /**
8532
8566
  * Run an agent and poll until it reaches a terminal status.
8533
8567
  *
@@ -8537,22 +8571,33 @@ declare class Seclai {
8537
8571
  * `result_reported_at` is set, `output` holds the answer. Pass
8538
8572
  * `returnOnResult: true` to return as soon as a run has it set, the run
8539
8573
  * `runAgent()` returns included. With `includeStepOutputs`, when that run
8540
- * would end the poll and `signal` is not aborted, it is fetched again at
8541
- * once for its step outputs.
8574
+ * would end the poll, it is fetched again at once for its step outputs.
8542
8575
  * Such a run may still be in progress: its `status` is not terminal and the
8543
8576
  * run can still fail, so check `result_reported_at`, not `status`.
8544
8577
  *
8545
8578
  * When `timeoutMs` elapses first, this throws {@link SeclaiStreamingError}
8546
- * with the latest run it has (the `runAgent()` response if no poll ran) in
8547
- * `run`. If that run has `result_reported_at`
8548
- * set, its `output` is the answer.
8549
- *
8550
- * `signal` is checked at the top of each poll, after the check for a run
8551
- * that ends the poll. A run that has ended the poll by then, whether the
8552
- * start run or a polled one, is returned even after an abort; the start run
8553
- * then comes back without step outputs, even when `includeStepOutputs` is
8554
- * set. Otherwise an abort throws `SeclaiError("Polling aborted.")`, which is
8555
- * not an `AbortError` and does not carry `signal.reason`.
8579
+ * with the latest run it has (the `runAgent()` response if no poll answered)
8580
+ * in `run`. If that run has `result_reported_at` set, its `output` is the
8581
+ * answer. No poll is sent at or after the deadline: a wait between polls that
8582
+ * reaches it ends the call with the timeout, so a `timeoutMs` no greater than
8583
+ * `pollIntervalMs` sends no poll. With a `fetch` that honours `signal`, a
8584
+ * poll still in flight at the deadline is aborted and the timeout is thrown.
8585
+ * Any error but an HTTP error status that a poll ends with once the deadline
8586
+ * has passed is the timeout's `cause`; an HTTP error status a poll gets after
8587
+ * the deadline is thrown as itself, and a caller abort throws `signal.reason`
8588
+ * instead. `timeoutMs` does not cut off the start request (the server may
8589
+ * already have created the run) or the fetch for an ended start run's step
8590
+ * outputs; only `signal` does. A request is not cut off while more than
8591
+ * 2^31-1 ms remain.
8592
+ *
8593
+ * `signal` is passed to every request and to the wait between polls. An
8594
+ * abort throws `signal.reason`, as `signal.throwIfAborted()` does (by
8595
+ * default an `AbortError`), or an `AbortError` for a signal that has no
8596
+ * `reason`: an already-aborted signal starts no run. A run
8597
+ * that has ended the poll is returned even after an abort. When the start
8598
+ * run has ended it and `includeStepOutputs` is set, an abort during the
8599
+ * fetch for its step outputs (with a `fetch` that honours `signal`) returns
8600
+ * the start run without step outputs.
8556
8601
  *
8557
8602
  * @param agentId - Agent identifier.
8558
8603
  * @param body - Run request payload.
@@ -8561,10 +8606,11 @@ declare class Seclai {
8561
8606
  * with `result_reported_at` set.
8562
8607
  * @throws {@link SeclaiStreamingError} If `timeoutMs` elapses before the run
8563
8608
  * finished. Its `run` holds the latest run it has (the `runAgent()`
8564
- * response if no poll ran).
8565
- * @throws {@link SeclaiError} `"Polling aborted."` If `signal` is aborted and,
8566
- * at the next poll's check, the run has not ended the poll. It is not an
8567
- * `AbortError` and does not carry `signal.reason`.
8609
+ * response if no poll answered), and its `cause` the error a poll ended
8610
+ * with at the deadline, if one did (a caller abort throws `signal.reason`
8611
+ * instead).
8612
+ * @throws `signal.reason` If `signal` is aborted before the run has ended
8613
+ * the poll.
8568
8614
  */
8569
8615
  runAgentAndPoll(agentId: string, body: AgentRunRequest, opts?: {
8570
8616
  /** Polling interval in ms (default: 2000). */
@@ -9737,7 +9783,7 @@ declare class Seclai {
9737
9783
  *
9738
9784
  * Global routing/pricing (the same for every account); read-only.
9739
9785
  */
9740
- getGenerationTiers(): Promise<Record<string, unknown>>;
9786
+ getGenerationTiers(): Promise<GenerationTierListResponse>;
9741
9787
  /**
9742
9788
  * List the embedding models a source can index with, and their pricing.
9743
9789
  *
@@ -10267,4 +10313,4 @@ declare class SeclaiStreamingError extends SeclaiError {
10267
10313
  constructor(message: string, runId?: string, run?: AgentRunResponse);
10268
10314
  }
10269
10315
 
10270
- export { type AcceptedAttachmentSlot, type AcceptedAttachmentSlotInput, type AcceptedAttachmentsResponse, type AccessTokenProvider, type AddCommentRequest, type AddConversationTurnRequest, type AddEmailDomainInput, type AddEmailDomainRequest, type AgentAttachmentRefsApiResponse, type AgentCallerApiResponse, type AgentDefinitionImportErrorResponse, type AgentDefinitionResponse, type AgentEmailOptOutListResponse, type AgentEmailOptOutResponse, type AgentEvaluationTier, type AgentExample, type AgentExampleListResponse, type AgentExampleResource, type AgentExportResponse, type AgentImportPreviewRequest, type AgentImportPreviewResponse, type AgentListResponse, type AgentRunAttemptResponse, type AgentRunEvent, type AgentRunFileResponse, type AgentRunListResponse, type AgentRunRequest, type AgentRunResponse, type AgentRunStepResponse, type AgentRunStreamRequest, type AgentRunToolCallResponse, type AgentSummaryResponse, type AgentTraceMatchResponse, type AgentTraceSearchRequest, type AgentTraceSearchResponse, type AgentUsingCloudDriveResponse, type AiAssistantAcceptRequest, type AiAssistantAcceptResponse, type AiAssistantFeedbackRequest, type AiAssistantFeedbackResponse, type AiAssistantGenerateRequest, type AiAssistantGenerateResponse, type AiConversationHistoryResponse, type AiConversationTurnResponse, type AlertCommentResponse, type AlertConfigListResponse, type AlertConfigResponse, type AlertDetailResponse, type AlertListResponse, type AlertResponse, type AlertSubscriberResponse, type ApiVersion, type ApiVersionResponse, type AttachmentRefsSourceApiSummary, type AuthState, type BlockEmailSenderRequest, type BlockedEmailSenderListResponse, type BlockedEmailSenderResponse, type CancelExperimentResponse, type CancelQueuedRunsResponse, type ChangeStatusRequest, type CloudDriveAccessLevelResponse, type CloudDriveProviderResponse, type CloudDriveRejectionResponse, type CloudDriveResponse, type CloudDriveScopeResponse, type CloudDriveUpdateRequest, type CompactionEvaluationModel, type CompactionTestResponse, type CompatibleRunListResponse, type CompatibleRunResponse, type ContentAttachmentDetailResponse, type ContentAttachmentResponse, type ContentAttachmentsListResponse, type ContentDetailResponse, type ContentEmbeddingResponse, type ContentEmbeddingsListResponse, type ContentFileUploadResponse, type CreateAgentRequest, type CreateAlertConfigRequest, type CreateEvaluationCriteriaRequest, type CreateEvaluationResultRequest, type CreateExperimentInput, type CreateExperimentResponse, type CreateExportRequest, type CreateKnowledgeBaseBody, type CreateMemoryBankBody, type CreateSolutionRequest, type CreateSourceBody, type CredentialChainOptions, DEFAULT_SSO_CLIENT_ID, DEFAULT_SSO_DOMAIN, DEFAULT_SSO_REGION, type DateRangeOptions, type DeclarableMetadataKey, type DmarcFailingSourceResponse, type DmarcSummaryResponse, type DnsProviderResponse, type DnsRecordResponse, type EffortOptionsResponse, type EmailDomainResponse, type EmailDomainsListResponse, type EmailSourceRejectionListResponse, type EmailSourceRejectionResponse, type EmailTriggerConfigResponse, type EmbeddingModalityRateResponse, type EmbeddingModelListResponse, type EmbeddingModelResponse, type EmbeddingStorageCreditsResponse, type EstimateExportRequest, type EstimateExportResponse, type EvaluationCriteriaListResponse, type EvaluationCriteriaResponse, type EvaluationResultListResponse, type EvaluationResultResponse, type EvaluationResultSummaryResponse, type EvaluationResultWithCriteriaListResponse, type EvaluationResultWithCriteriaResponse, type EvaluationRunSummaryListResponse, type EvaluationRunSummaryResponse, type EvaluationStatus, type ExamplePrompt, type ExecutedActionResponse, type ExperimentDetailResponse, type ExperimentListResponse, type ExperimentSummaryResponse, type ExportFormat, type ExportListResponse, type ExportResponse, type FetchLike, type FileUploadResponse, type GenerateAgentStepsRequest, type GenerateAgentStepsResponse, type GenerateStepConfigRequest, type GenerateStepConfigResponse, type GovernanceAiAcceptResponse, type GovernanceAiAssistantRequest, type GovernanceAiAssistantResponse, type GovernanceAppliedActionResponse, type GovernanceConversationResponse, type GovernancePolicyRefResponse, type GovernanceProposedPolicyActionResponse, type HTTPValidationError, type ImportFieldErrorModel, type ImportSkipResponse, type InboundEmailRejectionResponse, type InboundEmailStatusResponse, type InlineTextReplaceRequest, type InlineTextUploadRequest, type InsufficientCreditsDetail, type InsufficientCreditsResponse, type JSONValue, type KnowledgeBaseListResponse, type KnowledgeBaseMetadataKeyStatsResponse, type KnowledgeBaseResponse, type LinkResourcesRequest, type ListAgentEvaluationResultsOptions, type ListAgentExamplesOptions, type ListAlertConfigsOptions, type ListAlertsOptions, type ListCompatibleRunsOptions, type ListEvaluationResultsOptions, type ListEvaluationRunsOptions, type ListMemoryBanksOptions, type ListModelAlertsOptions, type ListOptions, type ListOrganizationAlertPreferencesOptions, type ListSolutionsOptions, type ListSourceContentsOptions, type MarkAiSuggestionRequest, type MarkConversationTurnRequest, type MeResponse, type MemoryBankAcceptRequest, type MemoryBankAiAssistantRequest, type MemoryBankAiAssistantResponse, type MemoryBankConfigResponse, type MemoryBankConversationTurnResponse, type MemoryBankLastConversationResponse, type MemoryBankListResponse, type MemoryBankResponse, type MetadataKeyCountResponse, type MetadataKeyDeclaration, type MetadataKeyDeclarationInput, type MetadataKeyWindowResponse, type MetadataKeysResponse, type MetadataOrigin, type MetadataValueCountResponse, type ModalityRateResponse, type ModelAlertListResponse, type ModelAlertResponse, type ModelRecommendationResponse, type ModelRecommendationsOptions, type ModelRecommendationsResponse, type NonManualEvaluationModeStatResponse, type NonManualEvaluationSummaryResponse, type OffsetPageOptions, type OkResponse, type OrganizationAlertPreferenceListResponse, type OrganizationAlertPreferenceResponse, type OrganizationInfoResponse, type PaginatedPage, type PaginationResponse, type PendingProcessingCompletedFailedStatus, type PlaygroundCreateRequest, type PromptModelAutoUpgradeStrategy, type PromptModelResponse, type PromptToolResponse, type ProposedActionResponse, type ProviderGroupResponse, type RemoveEmailDomainResponse, type RerankerModelListResponse, type RerankerModelResponse, type ResumeInboundResponse, SECLAI_API_URL, type SearchResponse, type SearchResultResponse, Seclai, SeclaiAPIStatusError, SeclaiAPIValidationError, SeclaiApiVersion, SeclaiConfigurationError, SeclaiError, type SeclaiOptions, SeclaiStreamingError, type SendTestEmailResponse, type SetAcceptedAttachmentsInput, type SetAcceptedAttachmentsRequest, type SetAutoBlockModeRequest, type SetEmailTriggerConfigRequest, type SetMetadataKeysRequest, type SetSlackTriggerConfigRequest, type SkippedAttachmentReason, type SkippedAttachmentResponse, type SlackReplyVisibility, type SlackTriggerActivation, type SlackTriggerConfigResponse, type SlackTriggerScope, type SolutionAgentResponse, type SolutionConversationResponse, type SolutionKnowledgeBaseResponse, type SolutionListResponse, type SolutionResponse, type SolutionSourceConnectionResponse, type SolutionSummaryResponse, type SortableListOptions, type SourceConnectionResponse, type SourceContentStatusListResponse, type SourceContentStatusResponse, type SourceEmbeddingMigrationResponse, type SourceIndexMode, type SourceListResponse, type SourceResponse, type SpendCapAction, type SpendCapDeleteOrder, type SsoCacheEntry, type SsoProfile, type StandaloneTestCompactionRequest, type StartSourceEmbeddingMigrationRequest, type TestCompactionRequest, type TestDraftEvaluationRequest, type TestDraftEvaluationResponse, type UnlinkResourcesRequest, type UnreadCountResponse, type UpdateAgentDefinitionRequest, type UpdateAgentRequest, type UpdateAlertConfigRequest, type UpdateEvaluationCriteriaRequest, type UpdateKnowledgeBaseBody, type UpdateMemoryBankBody, type UpdateOrganizationAlertPreferenceRequest, type UpdateSolutionRequest, type UpdateSourceBody, type UploadAgentInputApiResponse, type ValidationError, type VariantCategoryResponse, type VariantOptionResponse, deleteSsoCache, isTokenValid, loadSsoProfile, readSsoCache, writeSsoCache };
10316
+ export { type AcceptedAttachmentSlot, type AcceptedAttachmentSlotInput, type AcceptedAttachmentsResponse, type AccessTokenProvider, type AddCommentRequest, type AddConversationTurnRequest, type AddEmailDomainInput, type AddEmailDomainRequest, type AgentAttachmentRefsApiResponse, type AgentCallerApiResponse, type AgentDefinitionImportErrorResponse, type AgentDefinitionResponse, type AgentEmailOptOutListResponse, type AgentEmailOptOutResponse, type AgentEvaluationTier, type AgentExample, type AgentExampleListResponse, type AgentExampleResource, type AgentExportResponse, type AgentImportPreviewRequest, type AgentImportPreviewResponse, type AgentListResponse, type AgentRunAttemptResponse, type AgentRunEvent, type AgentRunFileResponse, type AgentRunListResponse, type AgentRunRequest, type AgentRunResponse, type AgentRunStepResponse, type AgentRunStreamRequest, type AgentRunToolCallResponse, type AgentSummaryResponse, type AgentTraceMatchResponse, type AgentTraceSearchRequest, type AgentTraceSearchResponse, type AgentUsingCloudDriveResponse, type AiAssistantAcceptRequest, type AiAssistantAcceptResponse, type AiAssistantFeedbackRequest, type AiAssistantFeedbackResponse, type AiAssistantGenerateRequest, type AiAssistantGenerateResponse, type AiConversationHistoryResponse, type AiConversationTurnResponse, type AlertCommentResponse, type AlertConfigListResponse, type AlertConfigResponse, type AlertDetailResponse, type AlertListResponse, type AlertResponse, type AlertSubscriberResponse, type ApiVersion, type ApiVersionResponse, type AttachmentRefsSourceApiSummary, type AuthState, type BlockEmailSenderRequest, type BlockedEmailSenderListResponse, type BlockedEmailSenderResponse, type CancelExperimentResponse, type CancelQueuedRunsResponse, type ChangeStatusRequest, type CloudDriveAccessLevelResponse, type CloudDriveProviderResponse, type CloudDriveRejectionResponse, type CloudDriveResponse, type CloudDriveScopeResponse, type CloudDriveUpdateRequest, type CompactionEvaluationModel, type CompactionTestResponse, type CompatibleRunListResponse, type CompatibleRunResponse, type ContentAttachmentDetailResponse, type ContentAttachmentResponse, type ContentAttachmentsListResponse, type ContentDetailResponse, type ContentEmbeddingResponse, type ContentEmbeddingsListResponse, type ContentFileUploadResponse, type CreateAgentRequest, type CreateAlertConfigRequest, type CreateEvaluationCriteriaRequest, type CreateEvaluationResultRequest, type CreateExperimentInput, type CreateExperimentResponse, type CreateExportRequest, type CreateKnowledgeBaseBody, type CreateMemoryBankBody, type CreateSolutionRequest, type CreateSourceBody, type CredentialChainOptions, DEFAULT_SSO_CLIENT_ID, DEFAULT_SSO_DOMAIN, DEFAULT_SSO_REGION, type DateRangeOptions, type DeclarableMetadataKey, type DmarcFailingSourceResponse, type DmarcSummaryResponse, type DnsProviderResponse, type DnsRecordResponse, type EffortOptionsResponse, type EmailDomainResponse, type EmailDomainsListResponse, type EmailSourceRejectionListResponse, type EmailSourceRejectionResponse, type EmailTriggerConfigResponse, type EmbeddingModalityRateResponse, type EmbeddingModelListResponse, type EmbeddingModelResponse, type EmbeddingStorageCreditsResponse, type EstimateExportRequest, type EstimateExportResponse, type EvaluationCriteriaListResponse, type EvaluationCriteriaResponse, type EvaluationResultListResponse, type EvaluationResultResponse, type EvaluationResultSummaryResponse, type EvaluationResultWithCriteriaListResponse, type EvaluationResultWithCriteriaResponse, type EvaluationRunSummaryListResponse, type EvaluationRunSummaryResponse, type EvaluationStatus, type ExamplePrompt, type ExecutedActionResponse, type ExperimentDetailResponse, type ExperimentListResponse, type ExperimentSummaryResponse, type ExportFormat, type ExportListResponse, type ExportResponse, type FetchLike, type FileUploadResponse, type GenerateAgentStepsRequest, type GenerateAgentStepsResponse, type GenerateStepConfigRequest, type GenerateStepConfigResponse, type GenerationTierListResponse, type GenerationTierResponse, type GovernanceAiAcceptResponse, type GovernanceAiAssistantRequest, type GovernanceAiAssistantResponse, type GovernanceAppliedActionResponse, type GovernanceConversationResponse, type GovernancePolicyRefResponse, type GovernanceProposedPolicyActionResponse, type HTTPValidationError, type ImportFieldErrorModel, type ImportSkipResponse, type InboundEmailRejectionResponse, type InboundEmailStatusResponse, type InlineTextReplaceRequest, type InlineTextUploadRequest, type InsufficientCreditsDetail, type InsufficientCreditsResponse, type JSONValue, type KnowledgeBaseListResponse, type KnowledgeBaseMetadataKeyStatsResponse, type KnowledgeBaseResponse, type LinkResourcesRequest, type ListAgentEvaluationResultsOptions, type ListAgentExamplesOptions, type ListAlertConfigsOptions, type ListAlertsOptions, type ListCompatibleRunsOptions, type ListEvaluationResultsOptions, type ListEvaluationRunsOptions, type ListMemoryBanksOptions, type ListModelAlertsOptions, type ListOptions, type ListOrganizationAlertPreferencesOptions, type ListSolutionsOptions, type ListSourceContentsOptions, type MarkAiSuggestionRequest, type MarkConversationTurnRequest, type MeResponse, type MemoryBankAcceptRequest, type MemoryBankAiAssistantRequest, type MemoryBankAiAssistantResponse, type MemoryBankConfigResponse, type MemoryBankConversationTurnResponse, type MemoryBankLastConversationResponse, type MemoryBankListResponse, type MemoryBankResponse, type MetadataKeyCountResponse, type MetadataKeyDeclaration, type MetadataKeyDeclarationInput, type MetadataKeyWindowResponse, type MetadataKeysResponse, type MetadataOrigin, type MetadataValueCountResponse, type ModalityRateResponse, type ModelAlertListResponse, type ModelAlertResponse, type ModelRecommendationResponse, type ModelRecommendationsOptions, type ModelRecommendationsResponse, type NonManualEvaluationModeStatResponse, type NonManualEvaluationSummaryResponse, type OffsetPageOptions, type OkResponse, type OrganizationAlertPreferenceListResponse, type OrganizationAlertPreferenceResponse, type OrganizationInfoResponse, type PaginatedPage, type PaginationResponse, type PendingProcessingCompletedFailedStatus, type PlaygroundCreateRequest, type PromptModelAutoUpgradeStrategy, type PromptModelResponse, type PromptToolResponse, type ProposedActionResponse, type ProviderGroupResponse, type RemoveEmailDomainResponse, type RerankerModelListResponse, type RerankerModelResponse, type ResumeInboundResponse, SECLAI_API_URL, type SearchResponse, type SearchResultResponse, Seclai, SeclaiAPIStatusError, SeclaiAPIValidationError, SeclaiApiVersion, SeclaiConfigurationError, SeclaiError, type SeclaiOptions, SeclaiStreamingError, type SendTestEmailResponse, type SetAcceptedAttachmentsInput, type SetAcceptedAttachmentsRequest, type SetAutoBlockModeRequest, type SetEmailTriggerConfigRequest, type SetMetadataKeysRequest, type SetSlackTriggerConfigRequest, type SkippedAttachmentReason, type SkippedAttachmentResponse, type SlackReplyVisibility, type SlackTriggerActivation, type SlackTriggerConfigResponse, type SlackTriggerScope, type SolutionAgentResponse, type SolutionConversationResponse, type SolutionKnowledgeBaseResponse, type SolutionListResponse, type SolutionResponse, type SolutionSourceConnectionResponse, type SolutionSummaryResponse, type SortableListOptions, type SourceConnectionResponse, type SourceContentStatusListResponse, type SourceContentStatusResponse, type SourceEmbeddingMigrationResponse, type SourceIndexMode, type SourceListResponse, type SourceResponse, type SpendCapAction, type SpendCapDeleteOrder, type SsoCacheEntry, type SsoProfile, type StandaloneTestCompactionRequest, type StartSourceEmbeddingMigrationRequest, type TestCompactionRequest, type TestDraftEvaluationRequest, type TestDraftEvaluationResponse, type UnlinkResourcesRequest, type UnreadCountResponse, type UpdateAgentDefinitionRequest, type UpdateAgentRequest, type UpdateAlertConfigRequest, type UpdateEvaluationCriteriaRequest, type UpdateKnowledgeBaseBody, type UpdateMemoryBankBody, type UpdateOrganizationAlertPreferenceRequest, type UpdateSolutionRequest, type UpdateSourceBody, type UploadAgentInputApiResponse, type ValidationError, type VariantCategoryResponse, type VariantOptionResponse, deleteSsoCache, isTokenValid, loadSsoProfile, readSsoCache, writeSsoCache };
package/dist/index.d.ts CHANGED
@@ -7826,6 +7826,10 @@ type EmbeddingStorageCreditsResponse = components["schemas"]["EmbeddingStorageCr
7826
7826
  type RerankerModelResponse = components["schemas"]["RerankerModelResponse"];
7827
7827
  /** The reranker models, with the default and pricing that apply to all of them. */
7828
7828
  type RerankerModelListResponse = VersionedList<components["schemas"]["RerankerModelListResponse"], "models">;
7829
+ /** A media-generation quality tier and the model and cost it resolves to. */
7830
+ type GenerationTierResponse = components["schemas"]["GenerationTierResponse"];
7831
+ /** The media-generation quality tiers {@link Seclai.getGenerationTiers} returns. */
7832
+ type GenerationTierListResponse = VersionedList<components["schemas"]["GenerationTierListResponse"], "tiers">;
7829
7833
  /** Variant category for model pricing tiers. */
7830
7834
  type VariantCategoryResponse = components["schemas"]["VariantCategoryResponse"];
7831
7835
  /** Variant option with credit pricing and context limits. */
@@ -8429,11 +8433,11 @@ declare class Seclai {
8429
8433
  /**
8430
8434
  * Run an agent in streaming mode (SSE) and wait for the final result.
8431
8435
  *
8432
- * Consumes the entire SSE stream and returns only the terminal `done` payload.
8433
- * For real-time event access, use {@link runStreamingAgent} instead. The body
8434
- * takes no `include_reasoning` or `include_commentary`, and one passed anyway
8435
- * is not sent: this method returns no `stream_reasoning` or
8436
- * `stream_commentary` events.
8436
+ * Reads the events of {@link runStreamingAgent} and returns the run from the
8437
+ * terminal `done` event. For real-time event access, use
8438
+ * {@link runStreamingAgent} instead. The body takes no `include_reasoning`
8439
+ * or `include_commentary`, and one passed anyway is not sent: this method
8440
+ * returns no `stream_reasoning` or `stream_commentary` events.
8437
8441
  *
8438
8442
  * A `result` event carries the run's answer in `output` once
8439
8443
  * `result_reported_at` is set, and can arrive while later steps still run.
@@ -8442,17 +8446,24 @@ declare class Seclai {
8442
8446
  * its `status` is not terminal and the run can still fail, so check
8443
8447
  * `result_reported_at`, not `status`.
8444
8448
  *
8445
- * If `timeoutMs` elapses, this throws {@link SeclaiStreamingError} with the
8446
- * latest snapshot in `run`: the `result` snapshot if one arrived, else the
8447
- * `init` snapshot. An abort from `signal` rethrows the abort error.
8449
+ * The latest snapshot is the `result` event's run if one arrived, else the
8450
+ * `init` event's run. When the server sends an `error`
8451
+ * event, this throws {@link SeclaiStreamingError} with the server's error
8452
+ * text in its message; when the server sends a `timeout` event, or
8453
+ * `timeoutMs` elapses (unless an HTTP error status arrives as it elapses),
8454
+ * it throws {@link SeclaiStreamingError} too. Each
8455
+ * carries the latest snapshot in `run`. An abort from `signal` rethrows the
8456
+ * abort error. Every way out of this method closes the response body.
8448
8457
  *
8449
8458
  * By default, a stream that ends before `done` returns the latest snapshot
8450
- * when its status is not `pending`, so the run returned may not have
8451
- * finished: check `status` and `result_reported_at`. A stream that breaks
8452
- * throws the fetch error. Pass `throwOnIncomplete: true` to throw
8453
- * {@link SeclaiStreamingError} with the snapshot in `run` in both cases
8454
- * instead; it is recommended, and becomes the default in the next major
8455
- * version.
8459
+ * when its status is not `pending`, so the run returned may
8460
+ * not have finished: check `status` and `result_reported_at`. A stream that
8461
+ * breaks throws the fetch error, unless a `done` event, or with
8462
+ * `returnOnResult` a `result` event, was read in full before it
8463
+ * broke. Pass `throwOnIncomplete: true` to throw
8464
+ * {@link SeclaiStreamingError} with the latest snapshot in `run` in both
8465
+ * cases instead; it is recommended, and becomes the default in the next
8466
+ * major version.
8456
8467
  *
8457
8468
  * @param agentId - Agent identifier.
8458
8469
  * @param body - Streaming run request payload, without `include_reasoning`
@@ -8461,9 +8472,14 @@ declare class Seclai {
8461
8472
  * @returns The run from the `done` event; with `returnOnResult`, the
8462
8473
  * `result` snapshot; without `throwOnIncomplete`, possibly an unfinished
8463
8474
  * snapshot (see above).
8464
- * @throws {@link SeclaiStreamingError} If `timeoutMs` elapses, or, with
8465
- * `throwOnIncomplete`, the stream ends or breaks, before the run finished.
8466
- * Its `run` holds the latest snapshot.
8475
+ * @throws {@link SeclaiStreamingError} If the server sends an `error` or
8476
+ * `timeout` event, `timeoutMs` elapses (unless an HTTP error status
8477
+ * arrives as it elapses), or, with `throwOnIncomplete`, the
8478
+ * stream ends or breaks, before the run finished. Its `run` holds the
8479
+ * latest snapshot. On `timeoutMs`, when the request or read was cut off,
8480
+ * its `cause` is the error it ended with.
8481
+ * @throws {@link SeclaiAPIStatusError} For an HTTP error status, also one
8482
+ * that arrives as `timeoutMs` elapses.
8467
8483
  *
8468
8484
  * @example
8469
8485
  * ```ts
@@ -8502,6 +8518,13 @@ declare class Seclai {
8502
8518
  * `include_commentary` in `body` to also receive `stream_reasoning` or
8503
8519
  * `stream_commentary` events.
8504
8520
  *
8521
+ * The server ends the stream after `done`, after `error` (data
8522
+ * `{ run_id, error }`, the stream failed on the server) or after `timeout`
8523
+ * (data `{ run_id }`); all three are yielded like any other event. When the
8524
+ * server answers with plain JSON instead of SSE, its run is yielded as one
8525
+ * `done` event. Leaving the loop early (`break`, `return` or a throw)
8526
+ * closes the response body.
8527
+ *
8505
8528
  * From `apiVersion` `2026-11-14`, an agent whose definition fails to validate
8506
8529
  * is refused with HTTP 409 ({@link SeclaiAPIStatusError}) before any event,
8507
8530
  * and no run is created.
@@ -8510,6 +8533,11 @@ declare class Seclai {
8510
8533
  * @param body - Streaming run request payload.
8511
8534
  * @param opts - Timeout and abort signal options.
8512
8535
  * @yields {@link AgentRunEvent} for each SSE message.
8536
+ * @throws {@link SeclaiStreamingError} If `timeoutMs` elapses, with the
8537
+ * error the request or read ended with as its `cause`. An HTTP error
8538
+ * status that arrives as it elapses is thrown as itself. An event read
8539
+ * in full before the stream broke or timed out is yielded first, unless
8540
+ * `signal` was aborted.
8513
8541
  *
8514
8542
  * @example
8515
8543
  * ```ts
@@ -8528,6 +8556,12 @@ declare class Seclai {
8528
8556
  timeoutMs?: number;
8529
8557
  signal?: AbortSignal;
8530
8558
  }): AsyncGenerator<AgentRunEvent, void, undefined>;
8559
+ /**
8560
+ * The stream behind {@link runStreamingAgent} and
8561
+ * {@link runStreamingAgentAndWait}: one request, reader and parser for both.
8562
+ * `progress` tells the wait helper what the events alone do not.
8563
+ */
8564
+ private streamRunEvents;
8531
8565
  /**
8532
8566
  * Run an agent and poll until it reaches a terminal status.
8533
8567
  *
@@ -8537,22 +8571,33 @@ declare class Seclai {
8537
8571
  * `result_reported_at` is set, `output` holds the answer. Pass
8538
8572
  * `returnOnResult: true` to return as soon as a run has it set, the run
8539
8573
  * `runAgent()` returns included. With `includeStepOutputs`, when that run
8540
- * would end the poll and `signal` is not aborted, it is fetched again at
8541
- * once for its step outputs.
8574
+ * would end the poll, it is fetched again at once for its step outputs.
8542
8575
  * Such a run may still be in progress: its `status` is not terminal and the
8543
8576
  * run can still fail, so check `result_reported_at`, not `status`.
8544
8577
  *
8545
8578
  * When `timeoutMs` elapses first, this throws {@link SeclaiStreamingError}
8546
- * with the latest run it has (the `runAgent()` response if no poll ran) in
8547
- * `run`. If that run has `result_reported_at`
8548
- * set, its `output` is the answer.
8549
- *
8550
- * `signal` is checked at the top of each poll, after the check for a run
8551
- * that ends the poll. A run that has ended the poll by then, whether the
8552
- * start run or a polled one, is returned even after an abort; the start run
8553
- * then comes back without step outputs, even when `includeStepOutputs` is
8554
- * set. Otherwise an abort throws `SeclaiError("Polling aborted.")`, which is
8555
- * not an `AbortError` and does not carry `signal.reason`.
8579
+ * with the latest run it has (the `runAgent()` response if no poll answered)
8580
+ * in `run`. If that run has `result_reported_at` set, its `output` is the
8581
+ * answer. No poll is sent at or after the deadline: a wait between polls that
8582
+ * reaches it ends the call with the timeout, so a `timeoutMs` no greater than
8583
+ * `pollIntervalMs` sends no poll. With a `fetch` that honours `signal`, a
8584
+ * poll still in flight at the deadline is aborted and the timeout is thrown.
8585
+ * Any error but an HTTP error status that a poll ends with once the deadline
8586
+ * has passed is the timeout's `cause`; an HTTP error status a poll gets after
8587
+ * the deadline is thrown as itself, and a caller abort throws `signal.reason`
8588
+ * instead. `timeoutMs` does not cut off the start request (the server may
8589
+ * already have created the run) or the fetch for an ended start run's step
8590
+ * outputs; only `signal` does. A request is not cut off while more than
8591
+ * 2^31-1 ms remain.
8592
+ *
8593
+ * `signal` is passed to every request and to the wait between polls. An
8594
+ * abort throws `signal.reason`, as `signal.throwIfAborted()` does (by
8595
+ * default an `AbortError`), or an `AbortError` for a signal that has no
8596
+ * `reason`: an already-aborted signal starts no run. A run
8597
+ * that has ended the poll is returned even after an abort. When the start
8598
+ * run has ended it and `includeStepOutputs` is set, an abort during the
8599
+ * fetch for its step outputs (with a `fetch` that honours `signal`) returns
8600
+ * the start run without step outputs.
8556
8601
  *
8557
8602
  * @param agentId - Agent identifier.
8558
8603
  * @param body - Run request payload.
@@ -8561,10 +8606,11 @@ declare class Seclai {
8561
8606
  * with `result_reported_at` set.
8562
8607
  * @throws {@link SeclaiStreamingError} If `timeoutMs` elapses before the run
8563
8608
  * finished. Its `run` holds the latest run it has (the `runAgent()`
8564
- * response if no poll ran).
8565
- * @throws {@link SeclaiError} `"Polling aborted."` If `signal` is aborted and,
8566
- * at the next poll's check, the run has not ended the poll. It is not an
8567
- * `AbortError` and does not carry `signal.reason`.
8609
+ * response if no poll answered), and its `cause` the error a poll ended
8610
+ * with at the deadline, if one did (a caller abort throws `signal.reason`
8611
+ * instead).
8612
+ * @throws `signal.reason` If `signal` is aborted before the run has ended
8613
+ * the poll.
8568
8614
  */
8569
8615
  runAgentAndPoll(agentId: string, body: AgentRunRequest, opts?: {
8570
8616
  /** Polling interval in ms (default: 2000). */
@@ -9737,7 +9783,7 @@ declare class Seclai {
9737
9783
  *
9738
9784
  * Global routing/pricing (the same for every account); read-only.
9739
9785
  */
9740
- getGenerationTiers(): Promise<Record<string, unknown>>;
9786
+ getGenerationTiers(): Promise<GenerationTierListResponse>;
9741
9787
  /**
9742
9788
  * List the embedding models a source can index with, and their pricing.
9743
9789
  *
@@ -10267,4 +10313,4 @@ declare class SeclaiStreamingError extends SeclaiError {
10267
10313
  constructor(message: string, runId?: string, run?: AgentRunResponse);
10268
10314
  }
10269
10315
 
10270
- export { type AcceptedAttachmentSlot, type AcceptedAttachmentSlotInput, type AcceptedAttachmentsResponse, type AccessTokenProvider, type AddCommentRequest, type AddConversationTurnRequest, type AddEmailDomainInput, type AddEmailDomainRequest, type AgentAttachmentRefsApiResponse, type AgentCallerApiResponse, type AgentDefinitionImportErrorResponse, type AgentDefinitionResponse, type AgentEmailOptOutListResponse, type AgentEmailOptOutResponse, type AgentEvaluationTier, type AgentExample, type AgentExampleListResponse, type AgentExampleResource, type AgentExportResponse, type AgentImportPreviewRequest, type AgentImportPreviewResponse, type AgentListResponse, type AgentRunAttemptResponse, type AgentRunEvent, type AgentRunFileResponse, type AgentRunListResponse, type AgentRunRequest, type AgentRunResponse, type AgentRunStepResponse, type AgentRunStreamRequest, type AgentRunToolCallResponse, type AgentSummaryResponse, type AgentTraceMatchResponse, type AgentTraceSearchRequest, type AgentTraceSearchResponse, type AgentUsingCloudDriveResponse, type AiAssistantAcceptRequest, type AiAssistantAcceptResponse, type AiAssistantFeedbackRequest, type AiAssistantFeedbackResponse, type AiAssistantGenerateRequest, type AiAssistantGenerateResponse, type AiConversationHistoryResponse, type AiConversationTurnResponse, type AlertCommentResponse, type AlertConfigListResponse, type AlertConfigResponse, type AlertDetailResponse, type AlertListResponse, type AlertResponse, type AlertSubscriberResponse, type ApiVersion, type ApiVersionResponse, type AttachmentRefsSourceApiSummary, type AuthState, type BlockEmailSenderRequest, type BlockedEmailSenderListResponse, type BlockedEmailSenderResponse, type CancelExperimentResponse, type CancelQueuedRunsResponse, type ChangeStatusRequest, type CloudDriveAccessLevelResponse, type CloudDriveProviderResponse, type CloudDriveRejectionResponse, type CloudDriveResponse, type CloudDriveScopeResponse, type CloudDriveUpdateRequest, type CompactionEvaluationModel, type CompactionTestResponse, type CompatibleRunListResponse, type CompatibleRunResponse, type ContentAttachmentDetailResponse, type ContentAttachmentResponse, type ContentAttachmentsListResponse, type ContentDetailResponse, type ContentEmbeddingResponse, type ContentEmbeddingsListResponse, type ContentFileUploadResponse, type CreateAgentRequest, type CreateAlertConfigRequest, type CreateEvaluationCriteriaRequest, type CreateEvaluationResultRequest, type CreateExperimentInput, type CreateExperimentResponse, type CreateExportRequest, type CreateKnowledgeBaseBody, type CreateMemoryBankBody, type CreateSolutionRequest, type CreateSourceBody, type CredentialChainOptions, DEFAULT_SSO_CLIENT_ID, DEFAULT_SSO_DOMAIN, DEFAULT_SSO_REGION, type DateRangeOptions, type DeclarableMetadataKey, type DmarcFailingSourceResponse, type DmarcSummaryResponse, type DnsProviderResponse, type DnsRecordResponse, type EffortOptionsResponse, type EmailDomainResponse, type EmailDomainsListResponse, type EmailSourceRejectionListResponse, type EmailSourceRejectionResponse, type EmailTriggerConfigResponse, type EmbeddingModalityRateResponse, type EmbeddingModelListResponse, type EmbeddingModelResponse, type EmbeddingStorageCreditsResponse, type EstimateExportRequest, type EstimateExportResponse, type EvaluationCriteriaListResponse, type EvaluationCriteriaResponse, type EvaluationResultListResponse, type EvaluationResultResponse, type EvaluationResultSummaryResponse, type EvaluationResultWithCriteriaListResponse, type EvaluationResultWithCriteriaResponse, type EvaluationRunSummaryListResponse, type EvaluationRunSummaryResponse, type EvaluationStatus, type ExamplePrompt, type ExecutedActionResponse, type ExperimentDetailResponse, type ExperimentListResponse, type ExperimentSummaryResponse, type ExportFormat, type ExportListResponse, type ExportResponse, type FetchLike, type FileUploadResponse, type GenerateAgentStepsRequest, type GenerateAgentStepsResponse, type GenerateStepConfigRequest, type GenerateStepConfigResponse, type GovernanceAiAcceptResponse, type GovernanceAiAssistantRequest, type GovernanceAiAssistantResponse, type GovernanceAppliedActionResponse, type GovernanceConversationResponse, type GovernancePolicyRefResponse, type GovernanceProposedPolicyActionResponse, type HTTPValidationError, type ImportFieldErrorModel, type ImportSkipResponse, type InboundEmailRejectionResponse, type InboundEmailStatusResponse, type InlineTextReplaceRequest, type InlineTextUploadRequest, type InsufficientCreditsDetail, type InsufficientCreditsResponse, type JSONValue, type KnowledgeBaseListResponse, type KnowledgeBaseMetadataKeyStatsResponse, type KnowledgeBaseResponse, type LinkResourcesRequest, type ListAgentEvaluationResultsOptions, type ListAgentExamplesOptions, type ListAlertConfigsOptions, type ListAlertsOptions, type ListCompatibleRunsOptions, type ListEvaluationResultsOptions, type ListEvaluationRunsOptions, type ListMemoryBanksOptions, type ListModelAlertsOptions, type ListOptions, type ListOrganizationAlertPreferencesOptions, type ListSolutionsOptions, type ListSourceContentsOptions, type MarkAiSuggestionRequest, type MarkConversationTurnRequest, type MeResponse, type MemoryBankAcceptRequest, type MemoryBankAiAssistantRequest, type MemoryBankAiAssistantResponse, type MemoryBankConfigResponse, type MemoryBankConversationTurnResponse, type MemoryBankLastConversationResponse, type MemoryBankListResponse, type MemoryBankResponse, type MetadataKeyCountResponse, type MetadataKeyDeclaration, type MetadataKeyDeclarationInput, type MetadataKeyWindowResponse, type MetadataKeysResponse, type MetadataOrigin, type MetadataValueCountResponse, type ModalityRateResponse, type ModelAlertListResponse, type ModelAlertResponse, type ModelRecommendationResponse, type ModelRecommendationsOptions, type ModelRecommendationsResponse, type NonManualEvaluationModeStatResponse, type NonManualEvaluationSummaryResponse, type OffsetPageOptions, type OkResponse, type OrganizationAlertPreferenceListResponse, type OrganizationAlertPreferenceResponse, type OrganizationInfoResponse, type PaginatedPage, type PaginationResponse, type PendingProcessingCompletedFailedStatus, type PlaygroundCreateRequest, type PromptModelAutoUpgradeStrategy, type PromptModelResponse, type PromptToolResponse, type ProposedActionResponse, type ProviderGroupResponse, type RemoveEmailDomainResponse, type RerankerModelListResponse, type RerankerModelResponse, type ResumeInboundResponse, SECLAI_API_URL, type SearchResponse, type SearchResultResponse, Seclai, SeclaiAPIStatusError, SeclaiAPIValidationError, SeclaiApiVersion, SeclaiConfigurationError, SeclaiError, type SeclaiOptions, SeclaiStreamingError, type SendTestEmailResponse, type SetAcceptedAttachmentsInput, type SetAcceptedAttachmentsRequest, type SetAutoBlockModeRequest, type SetEmailTriggerConfigRequest, type SetMetadataKeysRequest, type SetSlackTriggerConfigRequest, type SkippedAttachmentReason, type SkippedAttachmentResponse, type SlackReplyVisibility, type SlackTriggerActivation, type SlackTriggerConfigResponse, type SlackTriggerScope, type SolutionAgentResponse, type SolutionConversationResponse, type SolutionKnowledgeBaseResponse, type SolutionListResponse, type SolutionResponse, type SolutionSourceConnectionResponse, type SolutionSummaryResponse, type SortableListOptions, type SourceConnectionResponse, type SourceContentStatusListResponse, type SourceContentStatusResponse, type SourceEmbeddingMigrationResponse, type SourceIndexMode, type SourceListResponse, type SourceResponse, type SpendCapAction, type SpendCapDeleteOrder, type SsoCacheEntry, type SsoProfile, type StandaloneTestCompactionRequest, type StartSourceEmbeddingMigrationRequest, type TestCompactionRequest, type TestDraftEvaluationRequest, type TestDraftEvaluationResponse, type UnlinkResourcesRequest, type UnreadCountResponse, type UpdateAgentDefinitionRequest, type UpdateAgentRequest, type UpdateAlertConfigRequest, type UpdateEvaluationCriteriaRequest, type UpdateKnowledgeBaseBody, type UpdateMemoryBankBody, type UpdateOrganizationAlertPreferenceRequest, type UpdateSolutionRequest, type UpdateSourceBody, type UploadAgentInputApiResponse, type ValidationError, type VariantCategoryResponse, type VariantOptionResponse, deleteSsoCache, isTokenValid, loadSsoProfile, readSsoCache, writeSsoCache };
10316
+ export { type AcceptedAttachmentSlot, type AcceptedAttachmentSlotInput, type AcceptedAttachmentsResponse, type AccessTokenProvider, type AddCommentRequest, type AddConversationTurnRequest, type AddEmailDomainInput, type AddEmailDomainRequest, type AgentAttachmentRefsApiResponse, type AgentCallerApiResponse, type AgentDefinitionImportErrorResponse, type AgentDefinitionResponse, type AgentEmailOptOutListResponse, type AgentEmailOptOutResponse, type AgentEvaluationTier, type AgentExample, type AgentExampleListResponse, type AgentExampleResource, type AgentExportResponse, type AgentImportPreviewRequest, type AgentImportPreviewResponse, type AgentListResponse, type AgentRunAttemptResponse, type AgentRunEvent, type AgentRunFileResponse, type AgentRunListResponse, type AgentRunRequest, type AgentRunResponse, type AgentRunStepResponse, type AgentRunStreamRequest, type AgentRunToolCallResponse, type AgentSummaryResponse, type AgentTraceMatchResponse, type AgentTraceSearchRequest, type AgentTraceSearchResponse, type AgentUsingCloudDriveResponse, type AiAssistantAcceptRequest, type AiAssistantAcceptResponse, type AiAssistantFeedbackRequest, type AiAssistantFeedbackResponse, type AiAssistantGenerateRequest, type AiAssistantGenerateResponse, type AiConversationHistoryResponse, type AiConversationTurnResponse, type AlertCommentResponse, type AlertConfigListResponse, type AlertConfigResponse, type AlertDetailResponse, type AlertListResponse, type AlertResponse, type AlertSubscriberResponse, type ApiVersion, type ApiVersionResponse, type AttachmentRefsSourceApiSummary, type AuthState, type BlockEmailSenderRequest, type BlockedEmailSenderListResponse, type BlockedEmailSenderResponse, type CancelExperimentResponse, type CancelQueuedRunsResponse, type ChangeStatusRequest, type CloudDriveAccessLevelResponse, type CloudDriveProviderResponse, type CloudDriveRejectionResponse, type CloudDriveResponse, type CloudDriveScopeResponse, type CloudDriveUpdateRequest, type CompactionEvaluationModel, type CompactionTestResponse, type CompatibleRunListResponse, type CompatibleRunResponse, type ContentAttachmentDetailResponse, type ContentAttachmentResponse, type ContentAttachmentsListResponse, type ContentDetailResponse, type ContentEmbeddingResponse, type ContentEmbeddingsListResponse, type ContentFileUploadResponse, type CreateAgentRequest, type CreateAlertConfigRequest, type CreateEvaluationCriteriaRequest, type CreateEvaluationResultRequest, type CreateExperimentInput, type CreateExperimentResponse, type CreateExportRequest, type CreateKnowledgeBaseBody, type CreateMemoryBankBody, type CreateSolutionRequest, type CreateSourceBody, type CredentialChainOptions, DEFAULT_SSO_CLIENT_ID, DEFAULT_SSO_DOMAIN, DEFAULT_SSO_REGION, type DateRangeOptions, type DeclarableMetadataKey, type DmarcFailingSourceResponse, type DmarcSummaryResponse, type DnsProviderResponse, type DnsRecordResponse, type EffortOptionsResponse, type EmailDomainResponse, type EmailDomainsListResponse, type EmailSourceRejectionListResponse, type EmailSourceRejectionResponse, type EmailTriggerConfigResponse, type EmbeddingModalityRateResponse, type EmbeddingModelListResponse, type EmbeddingModelResponse, type EmbeddingStorageCreditsResponse, type EstimateExportRequest, type EstimateExportResponse, type EvaluationCriteriaListResponse, type EvaluationCriteriaResponse, type EvaluationResultListResponse, type EvaluationResultResponse, type EvaluationResultSummaryResponse, type EvaluationResultWithCriteriaListResponse, type EvaluationResultWithCriteriaResponse, type EvaluationRunSummaryListResponse, type EvaluationRunSummaryResponse, type EvaluationStatus, type ExamplePrompt, type ExecutedActionResponse, type ExperimentDetailResponse, type ExperimentListResponse, type ExperimentSummaryResponse, type ExportFormat, type ExportListResponse, type ExportResponse, type FetchLike, type FileUploadResponse, type GenerateAgentStepsRequest, type GenerateAgentStepsResponse, type GenerateStepConfigRequest, type GenerateStepConfigResponse, type GenerationTierListResponse, type GenerationTierResponse, type GovernanceAiAcceptResponse, type GovernanceAiAssistantRequest, type GovernanceAiAssistantResponse, type GovernanceAppliedActionResponse, type GovernanceConversationResponse, type GovernancePolicyRefResponse, type GovernanceProposedPolicyActionResponse, type HTTPValidationError, type ImportFieldErrorModel, type ImportSkipResponse, type InboundEmailRejectionResponse, type InboundEmailStatusResponse, type InlineTextReplaceRequest, type InlineTextUploadRequest, type InsufficientCreditsDetail, type InsufficientCreditsResponse, type JSONValue, type KnowledgeBaseListResponse, type KnowledgeBaseMetadataKeyStatsResponse, type KnowledgeBaseResponse, type LinkResourcesRequest, type ListAgentEvaluationResultsOptions, type ListAgentExamplesOptions, type ListAlertConfigsOptions, type ListAlertsOptions, type ListCompatibleRunsOptions, type ListEvaluationResultsOptions, type ListEvaluationRunsOptions, type ListMemoryBanksOptions, type ListModelAlertsOptions, type ListOptions, type ListOrganizationAlertPreferencesOptions, type ListSolutionsOptions, type ListSourceContentsOptions, type MarkAiSuggestionRequest, type MarkConversationTurnRequest, type MeResponse, type MemoryBankAcceptRequest, type MemoryBankAiAssistantRequest, type MemoryBankAiAssistantResponse, type MemoryBankConfigResponse, type MemoryBankConversationTurnResponse, type MemoryBankLastConversationResponse, type MemoryBankListResponse, type MemoryBankResponse, type MetadataKeyCountResponse, type MetadataKeyDeclaration, type MetadataKeyDeclarationInput, type MetadataKeyWindowResponse, type MetadataKeysResponse, type MetadataOrigin, type MetadataValueCountResponse, type ModalityRateResponse, type ModelAlertListResponse, type ModelAlertResponse, type ModelRecommendationResponse, type ModelRecommendationsOptions, type ModelRecommendationsResponse, type NonManualEvaluationModeStatResponse, type NonManualEvaluationSummaryResponse, type OffsetPageOptions, type OkResponse, type OrganizationAlertPreferenceListResponse, type OrganizationAlertPreferenceResponse, type OrganizationInfoResponse, type PaginatedPage, type PaginationResponse, type PendingProcessingCompletedFailedStatus, type PlaygroundCreateRequest, type PromptModelAutoUpgradeStrategy, type PromptModelResponse, type PromptToolResponse, type ProposedActionResponse, type ProviderGroupResponse, type RemoveEmailDomainResponse, type RerankerModelListResponse, type RerankerModelResponse, type ResumeInboundResponse, SECLAI_API_URL, type SearchResponse, type SearchResultResponse, Seclai, SeclaiAPIStatusError, SeclaiAPIValidationError, SeclaiApiVersion, SeclaiConfigurationError, SeclaiError, type SeclaiOptions, SeclaiStreamingError, type SendTestEmailResponse, type SetAcceptedAttachmentsInput, type SetAcceptedAttachmentsRequest, type SetAutoBlockModeRequest, type SetEmailTriggerConfigRequest, type SetMetadataKeysRequest, type SetSlackTriggerConfigRequest, type SkippedAttachmentReason, type SkippedAttachmentResponse, type SlackReplyVisibility, type SlackTriggerActivation, type SlackTriggerConfigResponse, type SlackTriggerScope, type SolutionAgentResponse, type SolutionConversationResponse, type SolutionKnowledgeBaseResponse, type SolutionListResponse, type SolutionResponse, type SolutionSourceConnectionResponse, type SolutionSummaryResponse, type SortableListOptions, type SourceConnectionResponse, type SourceContentStatusListResponse, type SourceContentStatusResponse, type SourceEmbeddingMigrationResponse, type SourceIndexMode, type SourceListResponse, type SourceResponse, type SpendCapAction, type SpendCapDeleteOrder, type SsoCacheEntry, type SsoProfile, type StandaloneTestCompactionRequest, type StartSourceEmbeddingMigrationRequest, type TestCompactionRequest, type TestDraftEvaluationRequest, type TestDraftEvaluationResponse, type UnlinkResourcesRequest, type UnreadCountResponse, type UpdateAgentDefinitionRequest, type UpdateAgentRequest, type UpdateAlertConfigRequest, type UpdateEvaluationCriteriaRequest, type UpdateKnowledgeBaseBody, type UpdateMemoryBankBody, type UpdateOrganizationAlertPreferenceRequest, type UpdateSolutionRequest, type UpdateSourceBody, type UploadAgentInputApiResponse, type ValidationError, type VariantCategoryResponse, type VariantOptionResponse, deleteSsoCache, isTokenValid, loadSsoProfile, readSsoCache, writeSsoCache };