@seclai/sdk 1.1.3 → 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;
@@ -58,6 +58,69 @@ interface components {
58
58
  * @enum {string}
59
59
  */
60
60
  AgentEvaluationTier: "fast" | "balanced" | "thorough";
61
+ /**
62
+ * AgentExportResponse
63
+ * @description Portable JSON snapshot of an agent definition.
64
+ */
65
+ AgentExportResponse: {
66
+ /**
67
+ * Agent
68
+ * @description Agent metadata and full definition. Keys: name, description, schema_version, definition, default_evaluation_tier, evaluation_mode, sampling_config, max_retries, retry_on_failure, prompt_model_auto_upgrade_strategy, prompt_model_auto_rollback_enabled, prompt_model_auto_rollback_triggers, created_at, updated_at.
69
+ */
70
+ agent: {
71
+ [key: string]: unknown;
72
+ };
73
+ /**
74
+ * Alert Configs
75
+ * @description Alert configurations.
76
+ */
77
+ alert_configs?: {
78
+ [key: string]: unknown;
79
+ }[] | null;
80
+ /**
81
+ * Dependencies
82
+ * @description Resolved dependency manifest. Keys: knowledge_bases, memory_banks, source_connections, agents, users — each a list of {id, name, description, …}.
83
+ */
84
+ dependencies?: {
85
+ [key: string]: unknown;
86
+ } | null;
87
+ /**
88
+ * Evaluation Criteria
89
+ * @description Evaluation criteria for agent steps.
90
+ */
91
+ evaluation_criteria?: {
92
+ [key: string]: unknown;
93
+ }[] | null;
94
+ /**
95
+ * Export Version
96
+ * @description Schema version of the export format (currently "2").
97
+ */
98
+ export_version: string;
99
+ /**
100
+ * Exported At
101
+ * @description ISO-8601 timestamp of when the export was generated.
102
+ */
103
+ exported_at: string;
104
+ /**
105
+ * Governance Policies
106
+ * @description Agent-scoped governance policies.
107
+ */
108
+ governance_policies?: {
109
+ [key: string]: unknown;
110
+ }[] | null;
111
+ /**
112
+ * Software Version
113
+ * @description Application version that produced this export.
114
+ */
115
+ software_version: string;
116
+ /**
117
+ * Trigger
118
+ * @description Trigger configuration with schedules.
119
+ */
120
+ trigger?: {
121
+ [key: string]: unknown;
122
+ } | null;
123
+ };
61
124
  /** AgentRunAttemptResponse */
62
125
  AgentRunAttemptResponse: {
63
126
  /**
@@ -176,6 +239,11 @@ interface components {
176
239
  * @description Timestamp when the step attempt ended.
177
240
  */
178
241
  ended_at: string | null;
242
+ /**
243
+ * Input
244
+ * @description Input provided to the step, if any.
245
+ */
246
+ input: string | null;
179
247
  /**
180
248
  * Output
181
249
  * @description Output produced by the step, if any.
@@ -977,6 +1045,8 @@ interface components {
977
1045
  * @description Embedding model override.
978
1046
  */
979
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;
980
1050
  /**
981
1051
  * Name
982
1052
  * @description Source name.
@@ -1004,7 +1074,7 @@ interface components {
1004
1074
  retention?: number | null;
1005
1075
  /**
1006
1076
  * Source Type
1007
- * @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.
1008
1078
  */
1009
1079
  source_type: string;
1010
1080
  /**
@@ -1964,11 +2034,96 @@ interface components {
1964
2034
  * @enum {string}
1965
2035
  */
1966
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
+ };
1967
2094
  /**
1968
2095
  * PromptModelAutoUpgradeStrategy
1969
2096
  * @enum {string}
1970
2097
  */
1971
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
+ };
1972
2127
  /**
1973
2128
  * ProposedActionResponse
1974
2129
  * @description A single proposed action.
@@ -2156,6 +2311,22 @@ interface components {
2156
2311
  /** Updated At */
2157
2312
  updated_at: string;
2158
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";
2159
2330
  /**
2160
2331
  * SourceResponse
2161
2332
  * @description Response model for source data.
@@ -2249,6 +2420,8 @@ interface components {
2249
2420
  * @description Unique identifier for the source connection.
2250
2421
  */
2251
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;
2252
2425
  /**
2253
2426
  * Name
2254
2427
  * @description Name of the source connection.
@@ -2723,6 +2896,54 @@ interface components {
2723
2896
  /** Error Type */
2724
2897
  type: string;
2725
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
+ };
2726
2947
  /** AgentListResponse */
2727
2948
  routers__api__agents__AgentListResponse: {
2728
2949
  /**
@@ -3621,6 +3842,135 @@ interface components {
3621
3842
  data: components["schemas"]["SourceResponse"][];
3622
3843
  pagination: components["schemas"]["PaginationResponse"];
3623
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
+ };
3624
3974
  /**
3625
3975
  * NonManualEvaluationModeStatResponse
3626
3976
  * @description Per-mode rollup for evaluation activity.
@@ -3696,6 +4046,8 @@ type PaginationResponse = components["schemas"]["PaginationResponse"];
3696
4046
  type AgentListResponse = components["schemas"]["routers__api__agents__AgentListResponse"];
3697
4047
  /** Full agent configuration including definition and metadata. */
3698
4048
  type AgentDefinitionResponse = components["schemas"]["AgentDefinitionResponse"];
4049
+ /** Portable JSON snapshot of an agent definition. */
4050
+ type AgentExportResponse = components["schemas"]["AgentExportResponse"];
3699
4051
  /** Summary of an agent (returned on create/update). */
3700
4052
  type AgentSummaryResponse = components["schemas"]["AgentSummaryResponse"];
3701
4053
  /** Request body for creating an agent. */
@@ -3924,6 +4276,27 @@ type AiAssistantFeedbackRequest = components["schemas"]["routers__api__ai_assist
3924
4276
  type AiAssistantFeedbackResponse = components["schemas"]["AiAssistantFeedbackResponse"];
3925
4277
  /** Prompt model auto-upgrade strategy. */
3926
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"];
3927
4300
  /** Processing status: pending, processing, completed, or failed. */
3928
4301
  type PendingProcessingCompletedFailedStatus = components["schemas"]["PendingProcessingCompletedFailedStatus"];
3929
4302
  /** An SSE event emitted during a streaming agent run. */
@@ -4114,6 +4487,14 @@ declare class Seclai {
4114
4487
  * @param agentId - Agent identifier.
4115
4488
  */
4116
4489
  deleteAgent(agentId: string): Promise<void>;
4490
+ /**
4491
+ * Export an agent definition as a portable JSON snapshot.
4492
+ *
4493
+ * @param agentId - Agent identifier.
4494
+ * @param download - When true (default), the server sets Content-Disposition: attachment.
4495
+ * @returns The exported agent snapshot.
4496
+ */
4497
+ exportAgent(agentId: string, download?: boolean): Promise<AgentExportResponse>;
4117
4498
  /**
4118
4499
  * Get an agent's full definition (steps, model config, etc.).
4119
4500
  *
@@ -4997,6 +5378,52 @@ declare class Seclai {
4997
5378
  * @param modelId - Model identifier.
4998
5379
  */
4999
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>;
5000
5427
  /**
5001
5428
  * Search across all resource types in your account.
5002
5429
  *
@@ -5275,4 +5702,4 @@ declare class SeclaiStreamingError extends SeclaiError {
5275
5702
  constructor(message: string, runId?: string);
5276
5703
  }
5277
5704
 
5278
- export { type AccessTokenProvider, type AddCommentRequest, type AddConversationTurnRequest, type AgentDefinitionResponse, type AgentEvaluationTier, 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
@@ -747,6 +747,21 @@ var Seclai = class {
747
747
  await this.request("DELETE", `/agents/${agentId}`);
748
748
  }
749
749
  // ═══════════════════════════════════════════════════════════════════════════
750
+ // Agent Export
751
+ // ═══════════════════════════════════════════════════════════════════════════
752
+ /**
753
+ * Export an agent definition as a portable JSON snapshot.
754
+ *
755
+ * @param agentId - Agent identifier.
756
+ * @param download - When true (default), the server sets Content-Disposition: attachment.
757
+ * @returns The exported agent snapshot.
758
+ */
759
+ async exportAgent(agentId, download = true) {
760
+ return await this.request("GET", `/agents/${agentId}/export`, {
761
+ query: { download }
762
+ });
763
+ }
764
+ // ═══════════════════════════════════════════════════════════════════════════
750
765
  // Agent Definitions
751
766
  // ═══════════════════════════════════════════════════════════════════════════
752
767
  /**
@@ -2109,6 +2124,61 @@ var Seclai = class {
2109
2124
  async getModelRecommendations(modelId) {
2110
2125
  return await this.request("GET", `/models/${modelId}/recommendations`);
2111
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
+ }
2112
2182
  // ═══════════════════════════════════════════════════════════════════════════
2113
2183
  // Search
2114
2184
  // ═══════════════════════════════════════════════════════════════════════════