@seclai/sdk 1.1.4 → 1.1.5

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.ts CHANGED
@@ -29,7 +29,7 @@ interface components {
29
29
  change_id: string;
30
30
  /**
31
31
  * Definition
32
- * @description The agent definition containing name, description, tags, and step workflow tree. Step types include prompt_call, retrieval, transform, gate, retry, evaluate_step, insight, extract_json, send_email, webhook_call, call_agent, write_metadata, write_content_attachment, load_content_attachment, load_content, display_result, and others.
32
+ * @description The agent definition containing name, description, tags, and step workflow tree. Step types include prompt_call, retrieval, transform, gate, retry, evaluate_step, insight, extract_content, streaming_result, send_email, webhook_call, call_agent, write_metadata, write_content_attachment, load_content_attachment, load_content, display_result, and others.
33
33
  */
34
34
  definition: {
35
35
  [key: string]: unknown;
@@ -1045,6 +1045,8 @@ interface components {
1045
1045
  * @description Embedding model override.
1046
1046
  */
1047
1047
  embedding_model?: string | null;
1048
+ /** @description Index mode for custom_index sources: fast_and_cheap (default), balanced, slow_and_thorough, or custom. */
1049
+ index_mode?: components["schemas"]["SourceIndexMode"] | null;
1048
1050
  /**
1049
1051
  * Name
1050
1052
  * @description Source name.
@@ -1072,7 +1074,7 @@ interface components {
1072
1074
  retention?: number | null;
1073
1075
  /**
1074
1076
  * Source Type
1075
- * @description Source type: rss, website, file_uploads, or custom_index.
1077
+ * @description Source type: rss, website, or custom_index. The legacy value 'file_uploads' is accepted as an alias for custom_index.
1076
1078
  */
1077
1079
  source_type: string;
1078
1080
  /**
@@ -2032,11 +2034,96 @@ interface components {
2032
2034
  * @enum {string}
2033
2035
  */
2034
2036
  PendingProcessingCompletedFailedStatus: "pending" | "processing" | "completed" | "failed";
2037
+ /**
2038
+ * PlaygroundCreateRequest
2039
+ * @description Create a model playground experiment via the public API.
2040
+ */
2041
+ PlaygroundCreateRequest: {
2042
+ /**
2043
+ * Evaluation Complexity
2044
+ * @description simple, medium, or complex
2045
+ * @default medium
2046
+ * @enum {string}
2047
+ */
2048
+ evaluation_complexity: "simple" | "medium" | "complex";
2049
+ /**
2050
+ * Evaluation Mode
2051
+ * @description manual or prompt
2052
+ * @default manual
2053
+ * @enum {string}
2054
+ */
2055
+ evaluation_mode: "manual" | "prompt";
2056
+ /**
2057
+ * Evaluator Model Id
2058
+ * @description Evaluator model ID when evaluation_mode is prompt.
2059
+ */
2060
+ evaluator_model_id?: string | null;
2061
+ /**
2062
+ * Include Step Output In Evaluation
2063
+ * @description Whether to include selected step output as evaluator context.
2064
+ * @default false
2065
+ */
2066
+ include_step_output_in_evaluation: boolean;
2067
+ /**
2068
+ * Json Template
2069
+ * @description Optional JSON template for advanced mode.
2070
+ */
2071
+ json_template?: string | null;
2072
+ /**
2073
+ * Model Ids
2074
+ * @description Selected model IDs (1-10).
2075
+ */
2076
+ model_ids: string[];
2077
+ /**
2078
+ * Prompt
2079
+ * @description Prompt text for the experiment.
2080
+ */
2081
+ prompt: string;
2082
+ /**
2083
+ * Selected Step Output
2084
+ * @description Optional step output text for evaluator context.
2085
+ */
2086
+ selected_step_output?: string | null;
2087
+ /**
2088
+ * System Prompt
2089
+ * @description Optional system prompt.
2090
+ * @default
2091
+ */
2092
+ system_prompt: string;
2093
+ };
2035
2094
  /**
2036
2095
  * PromptModelAutoUpgradeStrategy
2037
2096
  * @enum {string}
2038
2097
  */
2039
2098
  PromptModelAutoUpgradeStrategy: "none" | "early_adopter" | "middle_of_road" | "cautious_adopter";
2099
+ /**
2100
+ * PromptToolResponse
2101
+ * @description Response model for a prompt tool.
2102
+ */
2103
+ PromptToolResponse: {
2104
+ /** Description */
2105
+ description?: string | null;
2106
+ /** Documentation Url */
2107
+ documentation_url?: string | null;
2108
+ /** Example */
2109
+ example?: string | null;
2110
+ /** Headers */
2111
+ headers?: {
2112
+ [key: string]: string;
2113
+ } | null;
2114
+ /** Id */
2115
+ id: string;
2116
+ /** Name */
2117
+ name: string;
2118
+ /** Notes */
2119
+ notes?: string | null;
2120
+ /** Tool Name */
2121
+ tool_name?: string | null;
2122
+ /** Tool Type */
2123
+ tool_type: string;
2124
+ /** Tool Type Pattern */
2125
+ tool_type_pattern?: string | null;
2126
+ };
2040
2127
  /**
2041
2128
  * ProposedActionResponse
2042
2129
  * @description A single proposed action.
@@ -2224,6 +2311,22 @@ interface components {
2224
2311
  /** Updated At */
2225
2312
  updated_at: string;
2226
2313
  };
2314
+ /**
2315
+ * SourceIndexMode
2316
+ * @description Embedding quality / cost trade-off preset for custom_index sources.
2317
+ *
2318
+ * Each preset controls the default embedding dimensions, chunk size, and
2319
+ * chunk overlap. The embedding model is always the account-level default
2320
+ * (currently ``AWS_BEDROCK_AMAZON_NOVA_2_MULTIMODAL``).
2321
+ *
2322
+ * Presets:
2323
+ * FAST_AND_CHEAP: 256 dimensions, 3 000 char chunks, 500 char overlap.
2324
+ * BALANCED: 384 dimensions, 1 500 char chunks, 300 char overlap.
2325
+ * SLOW_AND_THOROUGH: 1 024 dimensions, 1 000 char chunks, 200 char overlap.
2326
+ * CUSTOM: Caller supplies embedding model, dimensions, and chunk config.
2327
+ * @enum {string}
2328
+ */
2329
+ SourceIndexMode: "fast_and_cheap" | "balanced" | "slow_and_thorough" | "custom";
2227
2330
  /**
2228
2331
  * SourceResponse
2229
2332
  * @description Response model for source data.
@@ -2317,6 +2420,8 @@ interface components {
2317
2420
  * @description Unique identifier for the source connection.
2318
2421
  */
2319
2422
  id: string;
2423
+ /** @description Index mode for custom_index sources: fast_and_cheap, balanced, slow_and_thorough, or custom. */
2424
+ index_mode?: components["schemas"]["SourceIndexMode"] | null;
2320
2425
  /**
2321
2426
  * Name
2322
2427
  * @description Name of the source connection.
@@ -2791,6 +2896,54 @@ interface components {
2791
2896
  /** Error Type */
2792
2897
  type: string;
2793
2898
  };
2899
+ /**
2900
+ * VariantCategoryResponse
2901
+ * @description Response model for a variant category
2902
+ */
2903
+ VariantCategoryResponse: {
2904
+ /** Category */
2905
+ category: string;
2906
+ /** Configurable */
2907
+ configurable: boolean;
2908
+ /** Description */
2909
+ description: string;
2910
+ /** Options */
2911
+ options: components["schemas"]["VariantOptionResponse"][];
2912
+ /** Title */
2913
+ title: string;
2914
+ };
2915
+ /**
2916
+ * VariantOptionResponse
2917
+ * @description Response model for a variant option
2918
+ */
2919
+ VariantOptionResponse: {
2920
+ /** Default */
2921
+ default: boolean;
2922
+ /** Description */
2923
+ description?: string | null;
2924
+ /** Input 1H Cache Write Credits Per 1000 Tokens */
2925
+ input_1h_cache_write_credits_per_1000_tokens?: number | null;
2926
+ /** Input 5M Cache Write Credits Per 1000 Tokens */
2927
+ input_5m_cache_write_credits_per_1000_tokens?: number | null;
2928
+ /** Input Cache Hit Credits Per 1000 Tokens */
2929
+ input_cache_hit_credits_per_1000_tokens?: number | null;
2930
+ /** Input Credits Per 1000 Tokens */
2931
+ input_credits_per_1000_tokens?: number | null;
2932
+ /** Long Context Input Cache Hit Credits Per 1000 Tokens */
2933
+ long_context_input_cache_hit_credits_per_1000_tokens?: number | null;
2934
+ /** Long Context Input Credits Per 1000 Tokens */
2935
+ long_context_input_credits_per_1000_tokens?: number | null;
2936
+ /** Long Context Output Credits Per 1000 Tokens */
2937
+ long_context_output_credits_per_1000_tokens?: number | null;
2938
+ /** Long Context Threshold */
2939
+ long_context_threshold?: number | null;
2940
+ /** Output Credits Per 1000 Tokens */
2941
+ output_credits_per_1000_tokens?: number | null;
2942
+ /** Title */
2943
+ title: string;
2944
+ /** Value */
2945
+ value: string;
2946
+ };
2794
2947
  /** AgentListResponse */
2795
2948
  routers__api__agents__AgentListResponse: {
2796
2949
  /**
@@ -3689,6 +3842,135 @@ interface components {
3689
3842
  data: components["schemas"]["SourceResponse"][];
3690
3843
  pagination: components["schemas"]["PaginationResponse"];
3691
3844
  };
3845
+ /**
3846
+ * PromptModelResponse
3847
+ * @description Response model for prompt model data
3848
+ */
3849
+ schemas__model_responses__PromptModelResponse: {
3850
+ /** Default */
3851
+ default: boolean;
3852
+ /** Deprecated At */
3853
+ deprecated_at?: string | null;
3854
+ /** Description */
3855
+ description: string;
3856
+ /** Enabled */
3857
+ enabled: boolean;
3858
+ /** Family */
3859
+ family?: string | null;
3860
+ /** Family Generation */
3861
+ family_generation?: number | null;
3862
+ /** Id */
3863
+ id: string;
3864
+ /** Input 1H Cache Write Credits Per 1000 Tokens */
3865
+ input_1h_cache_write_credits_per_1000_tokens?: number | null;
3866
+ /** Input 5M Cache Write Credits Per 1000 Tokens */
3867
+ input_5m_cache_write_credits_per_1000_tokens?: number | null;
3868
+ /** Input Cache Hit Credits Per 1000 Tokens */
3869
+ input_cache_hit_credits_per_1000_tokens?: number | null;
3870
+ /** Input Credits Per 1000 Tokens */
3871
+ input_credits_per_1000_tokens?: number | null;
3872
+ /**
3873
+ * Is New
3874
+ * @default false
3875
+ */
3876
+ is_new: boolean;
3877
+ /**
3878
+ * Last Used
3879
+ * @default false
3880
+ */
3881
+ last_used: boolean;
3882
+ /** Max Context Tokens */
3883
+ max_context_tokens: number;
3884
+ /** Max Conversation Length */
3885
+ max_conversation_length: number;
3886
+ /** Max Output Tokens */
3887
+ max_output_tokens: number;
3888
+ /** Model Id */
3889
+ model_id: string;
3890
+ /** Name */
3891
+ name: string;
3892
+ /** Output Credits Per 1000 Tokens */
3893
+ output_credits_per_1000_tokens?: number | null;
3894
+ /**
3895
+ * Payload Schema
3896
+ * @description Model-specific JSON schema for advanced prompt_call json_template payloads.
3897
+ */
3898
+ payload_schema?: {
3899
+ [key: string]: unknown;
3900
+ } | null;
3901
+ /**
3902
+ * Payload Schema Source Url
3903
+ * @description Source URL used to derive payload_schema guidance for this model.
3904
+ */
3905
+ payload_schema_source_url?: string | null;
3906
+ /** Provider */
3907
+ provider: string;
3908
+ /** Released At */
3909
+ released_at?: string | null;
3910
+ /**
3911
+ * Schema Documentation Url
3912
+ * @description Model documentation URL with request/response payload details.
3913
+ */
3914
+ schema_documentation_url?: string | null;
3915
+ /**
3916
+ * Schema Notes
3917
+ * @description Human-readable notes about request payload compatibility.
3918
+ */
3919
+ schema_notes?: string | null;
3920
+ /** Successor Model Id */
3921
+ successor_model_id?: string | null;
3922
+ /** Sunset At */
3923
+ sunset_at?: string | null;
3924
+ /** Supported Input Media */
3925
+ supported_input_media?: string[] | null;
3926
+ /** Supported Languages */
3927
+ supported_languages?: string[] | null;
3928
+ /**
3929
+ * Supports Openai Arguments
3930
+ * @default false
3931
+ */
3932
+ supports_openai_arguments: boolean;
3933
+ /**
3934
+ * Supports Streaming
3935
+ * @default false
3936
+ */
3937
+ supports_streaming: boolean;
3938
+ /**
3939
+ * Supports Structured Output
3940
+ * @default true
3941
+ */
3942
+ supports_structured_output: boolean;
3943
+ /**
3944
+ * Supports Thinking
3945
+ * @default false
3946
+ */
3947
+ supports_thinking: boolean;
3948
+ /**
3949
+ * Supports Tool Use
3950
+ * @default true
3951
+ */
3952
+ supports_tool_use: boolean;
3953
+ /** Tools Disabled */
3954
+ tools_disabled?: components["schemas"]["PromptToolResponse"][];
3955
+ /** Tools Enabled */
3956
+ tools_enabled?: components["schemas"]["PromptToolResponse"][];
3957
+ /** Training Cutoff At */
3958
+ training_cutoff_at?: string | null;
3959
+ /** Url */
3960
+ url?: string | null;
3961
+ /** Variants */
3962
+ variants?: components["schemas"]["VariantCategoryResponse"][] | null;
3963
+ };
3964
+ /**
3965
+ * ProviderGroupResponse
3966
+ * @description Response model for provider group with models
3967
+ */
3968
+ schemas__model_responses__ProviderGroupResponse: {
3969
+ /** Models */
3970
+ models: components["schemas"]["schemas__model_responses__PromptModelResponse"][];
3971
+ /** Provider */
3972
+ provider: string;
3973
+ };
3692
3974
  /**
3693
3975
  * NonManualEvaluationModeStatResponse
3694
3976
  * @description Per-mode rollup for evaluation activity.
@@ -3994,6 +4276,27 @@ type AiAssistantFeedbackRequest = components["schemas"]["routers__api__ai_assist
3994
4276
  type AiAssistantFeedbackResponse = components["schemas"]["AiAssistantFeedbackResponse"];
3995
4277
  /** Prompt model auto-upgrade strategy. */
3996
4278
  type PromptModelAutoUpgradeStrategy = components["schemas"]["PromptModelAutoUpgradeStrategy"];
4279
+ /** Models grouped by provider. */
4280
+ type ProviderGroupResponse = components["schemas"]["schemas__model_responses__ProviderGroupResponse"];
4281
+ /** Full model details including capabilities, pricing, and lifecycle status. */
4282
+ type PromptModelResponse = components["schemas"]["schemas__model_responses__PromptModelResponse"];
4283
+ /** Prompt tool configuration within a model. */
4284
+ type PromptToolResponse = components["schemas"]["PromptToolResponse"];
4285
+ /** Variant category for model pricing tiers. */
4286
+ type VariantCategoryResponse = components["schemas"]["VariantCategoryResponse"];
4287
+ /** Variant option with credit pricing and context limits. */
4288
+ type VariantOptionResponse = components["schemas"]["VariantOptionResponse"];
4289
+ /** Request body for creating a model playground experiment. */
4290
+ type PlaygroundCreateRequest = components["schemas"]["PlaygroundCreateRequest"];
4291
+ /**
4292
+ * Input type for {@link SeclaiClient.createExperiment}.
4293
+ *
4294
+ * Only `model_ids` and `prompt` are required — every other field has a
4295
+ * server-side default and can be omitted.
4296
+ */
4297
+ type CreateExperimentInput = Pick<PlaygroundCreateRequest, "model_ids" | "prompt"> & Partial<Omit<PlaygroundCreateRequest, "model_ids" | "prompt">>;
4298
+ /** Source index mode: fast_and_cheap, balanced, slow_and_thorough, or custom. */
4299
+ type SourceIndexMode = components["schemas"]["SourceIndexMode"];
3997
4300
  /** Processing status: pending, processing, completed, or failed. */
3998
4301
  type PendingProcessingCompletedFailedStatus = components["schemas"]["PendingProcessingCompletedFailedStatus"];
3999
4302
  /** An SSE event emitted during a streaming agent run. */
@@ -5075,6 +5378,52 @@ declare class Seclai {
5075
5378
  * @param modelId - Model identifier.
5076
5379
  */
5077
5380
  getModelRecommendations(modelId: string): Promise<unknown>;
5381
+ /**
5382
+ * List all enabled LLM models grouped by provider.
5383
+ *
5384
+ * @param opts - Optional filters.
5385
+ */
5386
+ listModels(opts?: {
5387
+ provider?: string;
5388
+ supportsToolUse?: boolean;
5389
+ supportsThinking?: boolean;
5390
+ }): Promise<ProviderGroupResponse[]>;
5391
+ /**
5392
+ * Get full details for a specific model.
5393
+ *
5394
+ * @param modelId - Model identifier.
5395
+ */
5396
+ getModel(modelId: string): Promise<PromptModelResponse>;
5397
+ /**
5398
+ * List model playground experiments.
5399
+ *
5400
+ * @param opts - Optional filters and pagination.
5401
+ */
5402
+ listExperiments(opts?: {
5403
+ days?: number;
5404
+ startDate?: string;
5405
+ endDate?: string;
5406
+ limit?: number;
5407
+ offset?: number;
5408
+ }): Promise<unknown>;
5409
+ /**
5410
+ * Create a model playground experiment.
5411
+ *
5412
+ * @param body - Experiment configuration.
5413
+ */
5414
+ createExperiment(body: CreateExperimentInput): Promise<unknown>;
5415
+ /**
5416
+ * Get a model playground experiment by ID.
5417
+ *
5418
+ * @param experimentId - Experiment identifier.
5419
+ */
5420
+ getExperiment(experimentId: string): Promise<unknown>;
5421
+ /**
5422
+ * Cancel a running model playground experiment.
5423
+ *
5424
+ * @param experimentId - Experiment identifier.
5425
+ */
5426
+ cancelExperiment(experimentId: string): Promise<unknown>;
5078
5427
  /**
5079
5428
  * Search across all resource types in your account.
5080
5429
  *
@@ -5353,4 +5702,4 @@ declare class SeclaiStreamingError extends SeclaiError {
5353
5702
  constructor(message: string, runId?: string);
5354
5703
  }
5355
5704
 
5356
- export { type AccessTokenProvider, type AddCommentRequest, type AddConversationTurnRequest, type AgentDefinitionResponse, type AgentEvaluationTier, type AgentExportResponse, type AgentListResponse, type AgentRunAttemptResponse, type AgentRunEvent, type AgentRunListResponse, type AgentRunRequest, type AgentRunResponse, type AgentRunStepResponse, type AgentRunStreamRequest, 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 AuthState, 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 CreateExportRequest, type CreateKnowledgeBaseBody, type CreateMemoryBankBody, type CreateSolutionRequest, type CreateSourceBody, type CredentialChainOptions, DEFAULT_SSO_CLIENT_ID, DEFAULT_SSO_DOMAIN, DEFAULT_SSO_REGION, 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 GovernanceProposedPolicyActionResponse, type HTTPValidationError, type InlineTextReplaceRequest, type InlineTextUploadRequest, type JSONValue, type KnowledgeBaseListResponse, type KnowledgeBaseResponse, type LinkResourcesRequest, type ListOptions, type MarkAiSuggestionRequest, type MarkConversationTurnRequest, type MemoryBankAcceptRequest, type MemoryBankAiAssistantRequest, type MemoryBankAiAssistantResponse, type MemoryBankConfigResponse, type MemoryBankConversationTurnResponse, type MemoryBankLastConversationResponse, type MemoryBankListResponse, type MemoryBankResponse, type NonManualEvaluationModeStatResponse, type NonManualEvaluationSummaryResponse, type OrganizationAlertPreferenceListResponse, type OrganizationAlertPreferenceResponse, type PaginationResponse, type PendingProcessingCompletedFailedStatus, type PromptModelAutoUpgradeStrategy, type ProposedActionResponse, SECLAI_API_URL, Seclai, SeclaiAPIStatusError, SeclaiAPIValidationError, SeclaiConfigurationError, SeclaiError, type SeclaiOptions, SeclaiStreamingError, type SolutionAgentResponse, type SolutionConversationResponse, type SolutionKnowledgeBaseResponse, type SolutionListResponse, type SolutionResponse, type SolutionSourceConnectionResponse, type SolutionSummaryResponse, type SortableListOptions, type SourceConnectionResponse, type SourceEmbeddingMigrationResponse, 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, deleteSsoCache, isTokenValid, loadSsoProfile, readSsoCache, writeSsoCache };
5705
+ export { type AccessTokenProvider, type AddCommentRequest, type AddConversationTurnRequest, type AgentDefinitionResponse, type AgentEvaluationTier, type AgentExportResponse, type AgentListResponse, type AgentRunAttemptResponse, type AgentRunEvent, type AgentRunListResponse, type AgentRunRequest, type AgentRunResponse, type AgentRunStepResponse, type AgentRunStreamRequest, 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 AuthState, 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 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 GovernanceProposedPolicyActionResponse, type HTTPValidationError, type InlineTextReplaceRequest, type InlineTextUploadRequest, type JSONValue, type KnowledgeBaseListResponse, type KnowledgeBaseResponse, type LinkResourcesRequest, type ListOptions, type MarkAiSuggestionRequest, type MarkConversationTurnRequest, type MemoryBankAcceptRequest, type MemoryBankAiAssistantRequest, type MemoryBankAiAssistantResponse, type MemoryBankConfigResponse, type MemoryBankConversationTurnResponse, type MemoryBankLastConversationResponse, type MemoryBankListResponse, type MemoryBankResponse, type NonManualEvaluationModeStatResponse, type NonManualEvaluationSummaryResponse, type OrganizationAlertPreferenceListResponse, type OrganizationAlertPreferenceResponse, type PaginationResponse, type PendingProcessingCompletedFailedStatus, type PlaygroundCreateRequest, type PromptModelAutoUpgradeStrategy, type PromptModelResponse, type PromptToolResponse, type ProposedActionResponse, type ProviderGroupResponse, SECLAI_API_URL, Seclai, SeclaiAPIStatusError, SeclaiAPIValidationError, SeclaiConfigurationError, SeclaiError, type SeclaiOptions, SeclaiStreamingError, 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 };
package/dist/index.js CHANGED
@@ -2124,6 +2124,61 @@ var Seclai = class {
2124
2124
  async getModelRecommendations(modelId) {
2125
2125
  return await this.request("GET", `/models/${modelId}/recommendations`);
2126
2126
  }
2127
+ /**
2128
+ * List all enabled LLM models grouped by provider.
2129
+ *
2130
+ * @param opts - Optional filters.
2131
+ */
2132
+ async listModels(opts = {}) {
2133
+ return await this.request("GET", "/models", {
2134
+ query: { provider: opts.provider, supports_tool_use: opts.supportsToolUse, supports_thinking: opts.supportsThinking }
2135
+ });
2136
+ }
2137
+ /**
2138
+ * Get full details for a specific model.
2139
+ *
2140
+ * @param modelId - Model identifier.
2141
+ */
2142
+ async getModel(modelId) {
2143
+ return await this.request("GET", `/models/${modelId}/details`);
2144
+ }
2145
+ // ═══════════════════════════════════════════════════════════════════════════
2146
+ // Model Playground Experiments
2147
+ // ═══════════════════════════════════════════════════════════════════════════
2148
+ /**
2149
+ * List model playground experiments.
2150
+ *
2151
+ * @param opts - Optional filters and pagination.
2152
+ */
2153
+ async listExperiments(opts = {}) {
2154
+ return await this.request("GET", "/models/playground/experiments", {
2155
+ query: { days: opts.days, start_date: opts.startDate, end_date: opts.endDate, limit: opts.limit, offset: opts.offset }
2156
+ });
2157
+ }
2158
+ /**
2159
+ * Create a model playground experiment.
2160
+ *
2161
+ * @param body - Experiment configuration.
2162
+ */
2163
+ async createExperiment(body) {
2164
+ return await this.request("POST", "/models/playground/experiments", { json: body });
2165
+ }
2166
+ /**
2167
+ * Get a model playground experiment by ID.
2168
+ *
2169
+ * @param experimentId - Experiment identifier.
2170
+ */
2171
+ async getExperiment(experimentId) {
2172
+ return await this.request("GET", `/models/playground/experiments/${experimentId}`);
2173
+ }
2174
+ /**
2175
+ * Cancel a running model playground experiment.
2176
+ *
2177
+ * @param experimentId - Experiment identifier.
2178
+ */
2179
+ async cancelExperiment(experimentId) {
2180
+ return await this.request("POST", `/models/playground/experiments/${experimentId}/cancel`);
2181
+ }
2127
2182
  // ═══════════════════════════════════════════════════════════════════════════
2128
2183
  // Search
2129
2184
  // ═══════════════════════════════════════════════════════════════════════════