@seclai/sdk 1.1.5 → 1.2.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/README.md +20 -1
- package/dist/index.cjs +22 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +291 -3
- package/dist/index.d.ts +291 -3
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -20,6 +20,28 @@ interface components {
|
|
|
20
20
|
*/
|
|
21
21
|
user_input: string;
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* AgentDefinitionImportErrorResponse
|
|
25
|
+
* @description 422 body for invalid `agent_definition` payloads.
|
|
26
|
+
*
|
|
27
|
+
* Mirrors :py:meth:`AgentDefinitionImportError.to_response_dict`.
|
|
28
|
+
*/
|
|
29
|
+
AgentDefinitionImportErrorResponse: {
|
|
30
|
+
/**
|
|
31
|
+
* Error
|
|
32
|
+
* @default invalid_agent_definition
|
|
33
|
+
*/
|
|
34
|
+
error: string;
|
|
35
|
+
/** Errors */
|
|
36
|
+
errors: components["schemas"]["ImportFieldErrorModel"][];
|
|
37
|
+
/** Message */
|
|
38
|
+
message: string;
|
|
39
|
+
/**
|
|
40
|
+
* Source
|
|
41
|
+
* @description Canonical pretty-printed echo of the supplied payload — error line/column refer to this string.
|
|
42
|
+
*/
|
|
43
|
+
source: string;
|
|
44
|
+
};
|
|
23
45
|
/** AgentDefinitionResponse */
|
|
24
46
|
AgentDefinitionResponse: {
|
|
25
47
|
/**
|
|
@@ -29,7 +51,7 @@ interface components {
|
|
|
29
51
|
change_id: string;
|
|
30
52
|
/**
|
|
31
53
|
* Definition
|
|
32
|
-
* @description The agent definition containing name, description, tags, and step workflow tree. Step types include prompt_call, retrieval,
|
|
54
|
+
* @description The agent definition containing name, description, tags, and step workflow tree. Step types include prompt_call, retrieval, regex_replace, gate, retry, evaluate_step, extract_data, extract_content, add_chat_turn, load_chat_history, add_memory, search_memory, load_memory, streaming_result, send_email, webhook_call, call_agent, write_metadata, write_content_attachment, load_content_attachment, load_content, display_result, merge, for_each, and others.
|
|
33
55
|
*/
|
|
34
56
|
definition: {
|
|
35
57
|
[key: string]: unknown;
|
|
@@ -179,6 +201,11 @@ interface components {
|
|
|
179
201
|
* @description List of attempts made for this agent run.
|
|
180
202
|
*/
|
|
181
203
|
attempts: components["schemas"]["AgentRunAttemptResponse"][];
|
|
204
|
+
/**
|
|
205
|
+
* Blocked Policies
|
|
206
|
+
* @description Governance policies that produced at least one BLOCK verdict during this run. Deduplicated by policy id.
|
|
207
|
+
*/
|
|
208
|
+
blocked_policies?: components["schemas"]["routers__api__agents__GovernancePolicyRefResponse"][];
|
|
182
209
|
/**
|
|
183
210
|
* Credits
|
|
184
211
|
* @description Credits consumed by the agent run, if applicable.
|
|
@@ -189,11 +216,31 @@ interface components {
|
|
|
189
216
|
* @description Number of errors encountered during the run.
|
|
190
217
|
*/
|
|
191
218
|
error_count: number;
|
|
219
|
+
/**
|
|
220
|
+
* Flagged Policies
|
|
221
|
+
* @description Governance policies that produced at least one FLAG verdict during this run. Deduplicated by policy id.
|
|
222
|
+
*/
|
|
223
|
+
flagged_policies?: components["schemas"]["routers__api__agents__GovernancePolicyRefResponse"][];
|
|
224
|
+
/**
|
|
225
|
+
* Governance Input Status
|
|
226
|
+
* @description Result of the governance input evaluation: safe, blocked, skipped, or timed_out.
|
|
227
|
+
*/
|
|
228
|
+
governance_input_status?: string | null;
|
|
229
|
+
/**
|
|
230
|
+
* Governance Input Wait Ms
|
|
231
|
+
* @description Milliseconds spent waiting for governance input evaluation.
|
|
232
|
+
*/
|
|
233
|
+
governance_input_wait_ms?: number | null;
|
|
192
234
|
/**
|
|
193
235
|
* Input
|
|
194
236
|
* @description Input provided to the agent for this run.
|
|
195
237
|
*/
|
|
196
238
|
input: string | null;
|
|
239
|
+
/**
|
|
240
|
+
* Input Scan Status
|
|
241
|
+
* @description Result of the prompt injection scan: safe, unsafe, skipped, timed_out, or error.
|
|
242
|
+
*/
|
|
243
|
+
input_scan_status?: string | null;
|
|
197
244
|
/**
|
|
198
245
|
* Output
|
|
199
246
|
* @description Output produced by the agent run.
|
|
@@ -209,6 +256,11 @@ interface components {
|
|
|
209
256
|
* @description Unique identifier for the agent run.
|
|
210
257
|
*/
|
|
211
258
|
run_id: string;
|
|
259
|
+
/**
|
|
260
|
+
* Scan Wait Ms
|
|
261
|
+
* @description Milliseconds spent waiting for prompt injection scan.
|
|
262
|
+
*/
|
|
263
|
+
scan_wait_ms?: number | null;
|
|
212
264
|
/** @description Current status of the agent run. */
|
|
213
265
|
status: components["schemas"]["PendingProcessingCompletedFailedStatus"];
|
|
214
266
|
/**
|
|
@@ -315,6 +367,11 @@ interface components {
|
|
|
315
367
|
* @description Unique agent identifier.
|
|
316
368
|
*/
|
|
317
369
|
id: string;
|
|
370
|
+
/**
|
|
371
|
+
* Import Warnings
|
|
372
|
+
* @description One entry per item dropped or substituted during import. Present only on endpoints that accept agent_definition; null on non-import calls; [] when the import had no skips.
|
|
373
|
+
*/
|
|
374
|
+
import_warnings?: components["schemas"]["ImportSkipResponse"][] | null;
|
|
318
375
|
/**
|
|
319
376
|
* Max Retries
|
|
320
377
|
* @description Max retries for eval_and_retry mode.
|
|
@@ -1495,7 +1552,7 @@ interface components {
|
|
|
1495
1552
|
step_id?: string | null;
|
|
1496
1553
|
/**
|
|
1497
1554
|
* Step Type
|
|
1498
|
-
* @description The step type to generate config for (e.g. '
|
|
1555
|
+
* @description The step type to generate config for (e.g. 'regex_replace', 'gate', 'text', 'prompt_call', 'retrieval').
|
|
1499
1556
|
*/
|
|
1500
1557
|
step_type: string;
|
|
1501
1558
|
/**
|
|
@@ -1606,6 +1663,64 @@ interface components {
|
|
|
1606
1663
|
/** Detail */
|
|
1607
1664
|
detail?: components["schemas"]["ValidationError"][];
|
|
1608
1665
|
};
|
|
1666
|
+
/**
|
|
1667
|
+
* ImportFieldErrorModel
|
|
1668
|
+
* @description Single agent_definition validation error with source position.
|
|
1669
|
+
*/
|
|
1670
|
+
ImportFieldErrorModel: {
|
|
1671
|
+
/**
|
|
1672
|
+
* Column
|
|
1673
|
+
* @description 1-indexed column in `source`.
|
|
1674
|
+
*/
|
|
1675
|
+
column: number;
|
|
1676
|
+
/**
|
|
1677
|
+
* Line
|
|
1678
|
+
* @description 1-indexed line in `source`.
|
|
1679
|
+
*/
|
|
1680
|
+
line: number;
|
|
1681
|
+
/**
|
|
1682
|
+
* Message
|
|
1683
|
+
* @description Human-readable description of the problem.
|
|
1684
|
+
*/
|
|
1685
|
+
message: string;
|
|
1686
|
+
/**
|
|
1687
|
+
* Path
|
|
1688
|
+
* @description Dotted path of the offending field, e.g. `agent.definition.child_steps[0].step_type`.
|
|
1689
|
+
*/
|
|
1690
|
+
path: string;
|
|
1691
|
+
};
|
|
1692
|
+
/**
|
|
1693
|
+
* ImportSkipResponse
|
|
1694
|
+
* @description One item that was not applied during an agent import.
|
|
1695
|
+
*
|
|
1696
|
+
* Used as the element type for ``import_warnings`` on every
|
|
1697
|
+
* response model that accepts an ``agent_definition`` payload.
|
|
1698
|
+
* See :py:class:`services.agent_definition_import.AgentImportSkip`
|
|
1699
|
+
* for the full category list.
|
|
1700
|
+
*
|
|
1701
|
+
* Lives here (not on each router) so the authenticated and public
|
|
1702
|
+
* API responses share one definition — keeping the shape that
|
|
1703
|
+
* clients (UI modal, MCP, OpenAPI consumers) depend on aligned.
|
|
1704
|
+
*/
|
|
1705
|
+
ImportSkipResponse: {
|
|
1706
|
+
/**
|
|
1707
|
+
* Category
|
|
1708
|
+
* @description The kind of item that was skipped or substituted: 'schedule', 'evaluation_criteria', 'alert_config', 'alert_recipient', 'governance_policy', 'governance_kb_link', 'solution_link'.
|
|
1709
|
+
*/
|
|
1710
|
+
category: string;
|
|
1711
|
+
/**
|
|
1712
|
+
* Details
|
|
1713
|
+
* @description Category-specific identifiers for the skipped item (step_id, alert_type, kb_name, etc.). Stable keys per category; absent keys are simply not applicable.
|
|
1714
|
+
*/
|
|
1715
|
+
details?: {
|
|
1716
|
+
[key: string]: unknown;
|
|
1717
|
+
};
|
|
1718
|
+
/**
|
|
1719
|
+
* Message
|
|
1720
|
+
* @description Human-readable explanation of what was skipped and why.
|
|
1721
|
+
*/
|
|
1722
|
+
message: string;
|
|
1723
|
+
};
|
|
1609
1724
|
/**
|
|
1610
1725
|
* InlineTextReplaceRequest
|
|
1611
1726
|
* @description Request model for inline text content replacement.
|
|
@@ -2152,6 +2267,13 @@ interface components {
|
|
|
2152
2267
|
params: {
|
|
2153
2268
|
[key: string]: unknown;
|
|
2154
2269
|
};
|
|
2270
|
+
/**
|
|
2271
|
+
* Preview
|
|
2272
|
+
* @description Planning-time dry-run preview attached by the solution AI assistant for create_agent / update_agent actions. Contains ``steps`` (the generated step tree), ``step_count``, ``warnings`` (a mix of heuristic structural issues — e.g. brittle JSONPath, pass-through ``regex_replace``, ``prompt_call`` missing a model — and deterministic resource-usage issues: every pre-bound knowledge base / memory bank must be referenced by at least one step, and no step may reference an unknown id), and ``skipped`` / ``skipped_reason`` when preview couldn't run (e.g. the action depends on resources created earlier in the same plan). ``None`` for non-agent actions or when generation failed.
|
|
2273
|
+
*/
|
|
2274
|
+
preview?: {
|
|
2275
|
+
[key: string]: unknown;
|
|
2276
|
+
} | null;
|
|
2155
2277
|
};
|
|
2156
2278
|
/**
|
|
2157
2279
|
* ProposedPolicyActionResponse
|
|
@@ -2944,6 +3066,94 @@ interface components {
|
|
|
2944
3066
|
/** Value */
|
|
2945
3067
|
value: string;
|
|
2946
3068
|
};
|
|
3069
|
+
/**
|
|
3070
|
+
* AgentImportPreviewRequest
|
|
3071
|
+
* @description Dry-run import request — same payload shape as the export endpoint.
|
|
3072
|
+
*/
|
|
3073
|
+
routers__api__agents__AgentImportPreviewRequest: {
|
|
3074
|
+
/**
|
|
3075
|
+
* Agent Definition
|
|
3076
|
+
* @description Payload in the same shape as GET /api/agents/{agent_id}/export.
|
|
3077
|
+
*/
|
|
3078
|
+
agent_definition: {
|
|
3079
|
+
[key: string]: unknown;
|
|
3080
|
+
};
|
|
3081
|
+
};
|
|
3082
|
+
/**
|
|
3083
|
+
* AgentImportPreviewResponse
|
|
3084
|
+
* @description Summary of a successfully validated import payload (no DB writes).
|
|
3085
|
+
*
|
|
3086
|
+
* Counts are derived from the validated payload as supplied — they
|
|
3087
|
+
* reflect what was requested, not what would eventually be persisted
|
|
3088
|
+
* (cross-account skips for recipients and KB names happen later, only
|
|
3089
|
+
* on commit).
|
|
3090
|
+
*/
|
|
3091
|
+
routers__api__agents__AgentImportPreviewResponse: {
|
|
3092
|
+
/**
|
|
3093
|
+
* Agent Name
|
|
3094
|
+
* @description Imported agent name, if any.
|
|
3095
|
+
*/
|
|
3096
|
+
agent_name: string | null;
|
|
3097
|
+
/**
|
|
3098
|
+
* Alert Configs
|
|
3099
|
+
* @description Number of alert configs in the payload.
|
|
3100
|
+
*/
|
|
3101
|
+
alert_configs: number;
|
|
3102
|
+
/**
|
|
3103
|
+
* Description
|
|
3104
|
+
* @description Imported agent description, if any.
|
|
3105
|
+
*/
|
|
3106
|
+
description: string | null;
|
|
3107
|
+
/**
|
|
3108
|
+
* Evaluation Criteria
|
|
3109
|
+
* @description Number of evaluation criteria in the payload.
|
|
3110
|
+
*/
|
|
3111
|
+
evaluation_criteria: number;
|
|
3112
|
+
/**
|
|
3113
|
+
* Governance Policies
|
|
3114
|
+
* @description Number of agent-scoped governance policies in the payload.
|
|
3115
|
+
*/
|
|
3116
|
+
governance_policies: number;
|
|
3117
|
+
/**
|
|
3118
|
+
* Ok
|
|
3119
|
+
* @description Always true on a 200 response; failures use HTTP 422.
|
|
3120
|
+
*/
|
|
3121
|
+
ok: boolean;
|
|
3122
|
+
/**
|
|
3123
|
+
* Payload Export Version
|
|
3124
|
+
* @description Export-format version the payload claims (or ``null`` for legacy payloads). When this differs from ``supported_export_version``, fields may have been silently dropped or defaulted on import.
|
|
3125
|
+
*/
|
|
3126
|
+
payload_export_version?: string | null;
|
|
3127
|
+
/**
|
|
3128
|
+
* Schedules
|
|
3129
|
+
* @description Number of trigger schedules in the payload.
|
|
3130
|
+
*/
|
|
3131
|
+
schedules: number;
|
|
3132
|
+
/**
|
|
3133
|
+
* Solutions
|
|
3134
|
+
* @description Number of solutions the source agent belonged to. On import these are matched by name in the target account; unmatched names are silently skipped.
|
|
3135
|
+
* @default 0
|
|
3136
|
+
*/
|
|
3137
|
+
solutions: number;
|
|
3138
|
+
/**
|
|
3139
|
+
* Step Count
|
|
3140
|
+
* @description Total number of steps in the workflow tree (recursive).
|
|
3141
|
+
*/
|
|
3142
|
+
step_count: number;
|
|
3143
|
+
/**
|
|
3144
|
+
* Supported Export Version
|
|
3145
|
+
* @description Export-format version this server understands. Compare against ``payload_export_version`` to detect cross-version imports.
|
|
3146
|
+
* @default 2
|
|
3147
|
+
*/
|
|
3148
|
+
supported_export_version: string;
|
|
3149
|
+
/**
|
|
3150
|
+
* Unresolved Refs
|
|
3151
|
+
* @description Entity references in the imported workflow that don't exist in the target account. Each entry: {category, ref_id, ref_name?, locations:[step:<id>], alternatives:[{id, name, description?}]}. Pass {source_uuid: target_uuid} as ``entity_remap`` on the create/update call to substitute these references before save.
|
|
3152
|
+
*/
|
|
3153
|
+
unresolved_refs?: {
|
|
3154
|
+
[key: string]: unknown;
|
|
3155
|
+
}[];
|
|
3156
|
+
};
|
|
2947
3157
|
/** AgentListResponse */
|
|
2948
3158
|
routers__api__agents__AgentListResponse: {
|
|
2949
3159
|
/**
|
|
@@ -2993,6 +3203,13 @@ interface components {
|
|
|
2993
3203
|
};
|
|
2994
3204
|
/** CreateAgentRequest */
|
|
2995
3205
|
routers__api__agents__CreateAgentRequest: {
|
|
3206
|
+
/**
|
|
3207
|
+
* Agent Definition
|
|
3208
|
+
* @description Optional payload in the same format produced by GET /agents/{id}/export. When provided, replaces any template-derived workflow and pre-fills metadata/trigger fields the request does not specify explicitly. Validation errors include line/column references against a canonical pretty-printed echo of the supplied payload.
|
|
3209
|
+
*/
|
|
3210
|
+
agent_definition?: {
|
|
3211
|
+
[key: string]: unknown;
|
|
3212
|
+
} | null;
|
|
2996
3213
|
/**
|
|
2997
3214
|
* Agent Template
|
|
2998
3215
|
* @description Template to initialize the agent from. Values: blank, retrieval_example, simple_qa, summarizer, json_extractor, content_change_notifier, scheduled_report, webhook_pipeline.
|
|
@@ -3003,6 +3220,13 @@ interface components {
|
|
|
3003
3220
|
* @description Optional description.
|
|
3004
3221
|
*/
|
|
3005
3222
|
description?: string | null;
|
|
3223
|
+
/**
|
|
3224
|
+
* Entity Remap
|
|
3225
|
+
* @description Optional UUID-substitution map applied to the imported workflow before save. Each key is a source-account UUID (as returned by /agents/preview-import's ``unresolved_refs``); each value is the target-account UUID to substitute. Used to relink knowledge bases, memory banks, source connections, and sub-agents on cross-account imports.
|
|
3226
|
+
*/
|
|
3227
|
+
entity_remap?: {
|
|
3228
|
+
[key: string]: string;
|
|
3229
|
+
} | null;
|
|
3006
3230
|
/**
|
|
3007
3231
|
* Name
|
|
3008
3232
|
* @description Name for the new agent.
|
|
@@ -3015,8 +3239,31 @@ interface components {
|
|
|
3015
3239
|
*/
|
|
3016
3240
|
trigger_type: string;
|
|
3017
3241
|
};
|
|
3242
|
+
/**
|
|
3243
|
+
* GovernancePolicyRefResponse
|
|
3244
|
+
* @description Reference to a governance policy by id and name.
|
|
3245
|
+
*/
|
|
3246
|
+
routers__api__agents__GovernancePolicyRefResponse: {
|
|
3247
|
+
/**
|
|
3248
|
+
* Policy Id
|
|
3249
|
+
* @description Governance policy identifier.
|
|
3250
|
+
*/
|
|
3251
|
+
policy_id: string;
|
|
3252
|
+
/**
|
|
3253
|
+
* Policy Name
|
|
3254
|
+
* @description Display name of the policy at evaluation time. May be null when the policy has been deleted.
|
|
3255
|
+
*/
|
|
3256
|
+
policy_name?: string | null;
|
|
3257
|
+
};
|
|
3018
3258
|
/** UpdateAgentRequest */
|
|
3019
3259
|
routers__api__agents__UpdateAgentRequest: {
|
|
3260
|
+
/**
|
|
3261
|
+
* Agent Definition
|
|
3262
|
+
* @description Optional payload in the same format produced by GET /agents/{id}/export. When provided, agent metadata fields the request does not set explicitly are taken from the payload, and the agent's workflow is replaced from `agent.definition`. The previous version is preserved in history. Validation errors include line/column references against a canonical pretty-printed echo of the supplied payload.
|
|
3263
|
+
*/
|
|
3264
|
+
agent_definition?: {
|
|
3265
|
+
[key: string]: unknown;
|
|
3266
|
+
} | null;
|
|
3020
3267
|
/**
|
|
3021
3268
|
* Default Evaluation Tier
|
|
3022
3269
|
* @description Default evaluation tier: 'fast', 'balanced', or 'thorough'.
|
|
@@ -3027,6 +3274,13 @@ interface components {
|
|
|
3027
3274
|
* @description New description for the agent.
|
|
3028
3275
|
*/
|
|
3029
3276
|
description?: string | null;
|
|
3277
|
+
/**
|
|
3278
|
+
* Entity Remap
|
|
3279
|
+
* @description Optional UUID-substitution map applied to the imported workflow before save (same shape as on POST /agents).
|
|
3280
|
+
*/
|
|
3281
|
+
entity_remap?: {
|
|
3282
|
+
[key: string]: string;
|
|
3283
|
+
} | null;
|
|
3030
3284
|
/**
|
|
3031
3285
|
* Evaluation Mode
|
|
3032
3286
|
* @description Evaluation mode: 'output_expectation', 'eval_and_retry', or 'sample_and_flag'.
|
|
@@ -4056,6 +4310,21 @@ type CreateAgentRequest = components["schemas"]["routers__api__agents__CreateAge
|
|
|
4056
4310
|
type UpdateAgentRequest = components["schemas"]["routers__api__agents__UpdateAgentRequest"];
|
|
4057
4311
|
/** Request body for updating an agent definition (steps, model, etc.). */
|
|
4058
4312
|
type UpdateAgentDefinitionRequest = components["schemas"]["UpdateAgentDefinitionRequest"];
|
|
4313
|
+
/** Request body for previewing an agent_definition import (dry-run validation). */
|
|
4314
|
+
type AgentImportPreviewRequest = components["schemas"]["routers__api__agents__AgentImportPreviewRequest"];
|
|
4315
|
+
/** Response body summarising a successfully validated agent_definition import payload. */
|
|
4316
|
+
type AgentImportPreviewResponse = components["schemas"]["routers__api__agents__AgentImportPreviewResponse"];
|
|
4317
|
+
/**
|
|
4318
|
+
* 422 response body for invalid `agent_definition` payloads on create/update/preview-import.
|
|
4319
|
+
* Errors carry 1-indexed line/column references into the canonical `source` echo.
|
|
4320
|
+
*/
|
|
4321
|
+
type AgentDefinitionImportErrorResponse = components["schemas"]["AgentDefinitionImportErrorResponse"];
|
|
4322
|
+
/** Single validation error within an {@link AgentDefinitionImportErrorResponse} (with source position). */
|
|
4323
|
+
type ImportFieldErrorModel = components["schemas"]["ImportFieldErrorModel"];
|
|
4324
|
+
/** One item dropped or substituted during an agent import (emitted in `import_warnings`). */
|
|
4325
|
+
type ImportSkipResponse = components["schemas"]["ImportSkipResponse"];
|
|
4326
|
+
/** Reference to a governance policy (id and optional display name). */
|
|
4327
|
+
type GovernancePolicyRefResponse = components["schemas"]["routers__api__agents__GovernancePolicyRefResponse"];
|
|
4059
4328
|
/** Request body for starting an agent run. */
|
|
4060
4329
|
type AgentRunRequest = components["schemas"]["AgentRunRequest"];
|
|
4061
4330
|
/** Request body for starting an agent run in streaming mode (SSE). */
|
|
@@ -4495,6 +4764,25 @@ declare class Seclai {
|
|
|
4495
4764
|
* @returns The exported agent snapshot.
|
|
4496
4765
|
*/
|
|
4497
4766
|
exportAgent(agentId: string, download?: boolean): Promise<AgentExportResponse>;
|
|
4767
|
+
/**
|
|
4768
|
+
* Validate an `agent_definition` payload (same shape as {@link exportAgent})
|
|
4769
|
+
* without creating or modifying any agent.
|
|
4770
|
+
*
|
|
4771
|
+
* Use this before {@link createAgent} or {@link updateAgent} with an
|
|
4772
|
+
* `agent_definition` to surface `unresolved_refs` — workflow references to
|
|
4773
|
+
* knowledge bases, memory banks, source connections, or sub-agents that
|
|
4774
|
+
* don't exist in the target account. Pass the returned ids back in
|
|
4775
|
+
* `entity_remap` on the commit call to substitute them.
|
|
4776
|
+
*
|
|
4777
|
+
* @param body - The preview payload (`{ agent_definition: ... }`).
|
|
4778
|
+
* @returns Summary of the validated payload (step counts, schedules,
|
|
4779
|
+
* alert configs, evaluation criteria, governance policies, and any
|
|
4780
|
+
* `unresolved_refs`).
|
|
4781
|
+
* @throws {SeclaiAPIValidationError} On HTTP 422 — the body is an
|
|
4782
|
+
* {@link AgentDefinitionImportErrorResponse} with 1-indexed
|
|
4783
|
+
* line/column-anchored errors against a canonical `source` echo.
|
|
4784
|
+
*/
|
|
4785
|
+
previewImportAgent(body: AgentImportPreviewRequest): Promise<AgentImportPreviewResponse>;
|
|
4498
4786
|
/**
|
|
4499
4787
|
* Get an agent's full definition (steps, model config, etc.).
|
|
4500
4788
|
*
|
|
@@ -5702,4 +5990,4 @@ declare class SeclaiStreamingError extends SeclaiError {
|
|
|
5702
5990
|
constructor(message: string, runId?: string);
|
|
5703
5991
|
}
|
|
5704
5992
|
|
|
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 };
|
|
5993
|
+
export { type AccessTokenProvider, type AddCommentRequest, type AddConversationTurnRequest, type AgentDefinitionImportErrorResponse, type AgentDefinitionResponse, type AgentEvaluationTier, type AgentExportResponse, type AgentImportPreviewRequest, type AgentImportPreviewResponse, 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 GovernancePolicyRefResponse, type GovernanceProposedPolicyActionResponse, type HTTPValidationError, type ImportFieldErrorModel, type ImportSkipResponse, 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 };
|