@seclai/sdk 1.1.3 → 1.1.4
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/README.md +1 -1
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +79 -1
- package/dist/index.d.ts +79 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -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.
|
|
@@ -3696,6 +3764,8 @@ type PaginationResponse = components["schemas"]["PaginationResponse"];
|
|
|
3696
3764
|
type AgentListResponse = components["schemas"]["routers__api__agents__AgentListResponse"];
|
|
3697
3765
|
/** Full agent configuration including definition and metadata. */
|
|
3698
3766
|
type AgentDefinitionResponse = components["schemas"]["AgentDefinitionResponse"];
|
|
3767
|
+
/** Portable JSON snapshot of an agent definition. */
|
|
3768
|
+
type AgentExportResponse = components["schemas"]["AgentExportResponse"];
|
|
3699
3769
|
/** Summary of an agent (returned on create/update). */
|
|
3700
3770
|
type AgentSummaryResponse = components["schemas"]["AgentSummaryResponse"];
|
|
3701
3771
|
/** Request body for creating an agent. */
|
|
@@ -4114,6 +4184,14 @@ declare class Seclai {
|
|
|
4114
4184
|
* @param agentId - Agent identifier.
|
|
4115
4185
|
*/
|
|
4116
4186
|
deleteAgent(agentId: string): Promise<void>;
|
|
4187
|
+
/**
|
|
4188
|
+
* Export an agent definition as a portable JSON snapshot.
|
|
4189
|
+
*
|
|
4190
|
+
* @param agentId - Agent identifier.
|
|
4191
|
+
* @param download - When true (default), the server sets Content-Disposition: attachment.
|
|
4192
|
+
* @returns The exported agent snapshot.
|
|
4193
|
+
*/
|
|
4194
|
+
exportAgent(agentId: string, download?: boolean): Promise<AgentExportResponse>;
|
|
4117
4195
|
/**
|
|
4118
4196
|
* Get an agent's full definition (steps, model config, etc.).
|
|
4119
4197
|
*
|
|
@@ -5275,4 +5353,4 @@ declare class SeclaiStreamingError extends SeclaiError {
|
|
|
5275
5353
|
constructor(message: string, runId?: string);
|
|
5276
5354
|
}
|
|
5277
5355
|
|
|
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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -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.
|
|
@@ -3696,6 +3764,8 @@ type PaginationResponse = components["schemas"]["PaginationResponse"];
|
|
|
3696
3764
|
type AgentListResponse = components["schemas"]["routers__api__agents__AgentListResponse"];
|
|
3697
3765
|
/** Full agent configuration including definition and metadata. */
|
|
3698
3766
|
type AgentDefinitionResponse = components["schemas"]["AgentDefinitionResponse"];
|
|
3767
|
+
/** Portable JSON snapshot of an agent definition. */
|
|
3768
|
+
type AgentExportResponse = components["schemas"]["AgentExportResponse"];
|
|
3699
3769
|
/** Summary of an agent (returned on create/update). */
|
|
3700
3770
|
type AgentSummaryResponse = components["schemas"]["AgentSummaryResponse"];
|
|
3701
3771
|
/** Request body for creating an agent. */
|
|
@@ -4114,6 +4184,14 @@ declare class Seclai {
|
|
|
4114
4184
|
* @param agentId - Agent identifier.
|
|
4115
4185
|
*/
|
|
4116
4186
|
deleteAgent(agentId: string): Promise<void>;
|
|
4187
|
+
/**
|
|
4188
|
+
* Export an agent definition as a portable JSON snapshot.
|
|
4189
|
+
*
|
|
4190
|
+
* @param agentId - Agent identifier.
|
|
4191
|
+
* @param download - When true (default), the server sets Content-Disposition: attachment.
|
|
4192
|
+
* @returns The exported agent snapshot.
|
|
4193
|
+
*/
|
|
4194
|
+
exportAgent(agentId: string, download?: boolean): Promise<AgentExportResponse>;
|
|
4117
4195
|
/**
|
|
4118
4196
|
* Get an agent's full definition (steps, model config, etc.).
|
|
4119
4197
|
*
|
|
@@ -5275,4 +5353,4 @@ declare class SeclaiStreamingError extends SeclaiError {
|
|
|
5275
5353
|
constructor(message: string, runId?: string);
|
|
5276
5354
|
}
|
|
5277
5355
|
|
|
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 };
|
|
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 };
|
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
|
/**
|