@wildix/wilma-agents-client 1.0.13 → 1.0.15
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-cjs/models/enums.js +7 -7
- package/dist-cjs/models/errors.js +16 -110
- package/dist-cjs/runtimeConfig.native.js +3 -0
- package/dist-cjs/schemas/schemas_0.js +208 -209
- package/dist-es/models/enums.js +6 -6
- package/dist-es/models/errors.js +12 -100
- package/dist-es/runtimeConfig.native.js +3 -0
- package/dist-es/schemas/schemas_0.js +206 -207
- package/dist-types/commands/CompareAgentVersionsCommand.d.ts +1 -3
- package/dist-types/commands/CreateAgentApiKeyCommand.d.ts +1 -1
- package/dist-types/commands/CreateAgentCommand.d.ts +90 -61
- package/dist-types/commands/CreateAgentDeploymentCommand.d.ts +3 -4
- package/dist-types/commands/DeleteAgentApiKeyCommand.d.ts +1 -3
- package/dist-types/commands/DeleteAgentCommand.d.ts +3 -3
- package/dist-types/commands/DeleteAgentDeploymentCommand.d.ts +3 -5
- package/dist-types/commands/GetAgentCommand.d.ts +45 -31
- package/dist-types/commands/GetAgentDeploymentCommand.d.ts +1 -3
- package/dist-types/commands/GetAgentVersionCommand.d.ts +45 -33
- package/dist-types/commands/ListAgentApiKeysCommand.d.ts +1 -1
- package/dist-types/commands/ListAgentDeploymentsCommand.d.ts +1 -1
- package/dist-types/commands/ListAgentVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListAgentsCommand.d.ts +44 -30
- package/dist-types/commands/PublishAgentVersionCommand.d.ts +45 -31
- package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +45 -33
- package/dist-types/commands/UpdateAgentCommand.d.ts +91 -62
- package/dist-types/commands/UpdateAgentDeploymentCommand.d.ts +1 -5
- package/dist-types/models/enums.d.ts +26 -26
- package/dist-types/models/errors.d.ts +10 -85
- package/dist-types/models/models_0.d.ts +177 -15
- package/dist-types/runtimeConfig.native.d.ts +2 -1
- package/dist-types/schemas/schemas_0.d.ts +8 -8
- package/package.json +7 -5
|
@@ -47,6 +47,32 @@ export declare const AgentDeploymentStatus: {
|
|
|
47
47
|
* @public
|
|
48
48
|
*/
|
|
49
49
|
export type AgentDeploymentStatus = (typeof AgentDeploymentStatus)[keyof typeof AgentDeploymentStatus];
|
|
50
|
+
/**
|
|
51
|
+
* @public
|
|
52
|
+
* @enum
|
|
53
|
+
*/
|
|
54
|
+
export declare const AgentToolPipelineType: {
|
|
55
|
+
/**
|
|
56
|
+
* Fire-and-forget; do not synthesize a reply.
|
|
57
|
+
*/
|
|
58
|
+
readonly ASYNC_REQUEST: "async_request";
|
|
59
|
+
/**
|
|
60
|
+
* Fire-and-forget; synthesize a reply using `instructions`.
|
|
61
|
+
*/
|
|
62
|
+
readonly ASYNC_REQUEST_GUIDED: "async_request_guided";
|
|
63
|
+
/**
|
|
64
|
+
* Wait for the tool; do not synthesize a reply from its result.
|
|
65
|
+
*/
|
|
66
|
+
readonly BLOCKING_REQUEST: "blocking_request";
|
|
67
|
+
/**
|
|
68
|
+
* Wait for the tool; synthesize a reply from its result using `instructions`.
|
|
69
|
+
*/
|
|
70
|
+
readonly BLOCKING_REQUEST_GUIDED: "blocking_request_guided";
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export type AgentToolPipelineType = (typeof AgentToolPipelineType)[keyof typeof AgentToolPipelineType];
|
|
50
76
|
/**
|
|
51
77
|
* @public
|
|
52
78
|
* @enum
|
|
@@ -122,32 +148,6 @@ export declare const SandboxNetworkAccess: {
|
|
|
122
148
|
* @public
|
|
123
149
|
*/
|
|
124
150
|
export type SandboxNetworkAccess = (typeof SandboxNetworkAccess)[keyof typeof SandboxNetworkAccess];
|
|
125
|
-
/**
|
|
126
|
-
* @public
|
|
127
|
-
* @enum
|
|
128
|
-
*/
|
|
129
|
-
export declare const AgentToolPipelineType: {
|
|
130
|
-
/**
|
|
131
|
-
* Fire-and-forget; do not synthesize a reply.
|
|
132
|
-
*/
|
|
133
|
-
readonly ASYNC_REQUEST: "async_request";
|
|
134
|
-
/**
|
|
135
|
-
* Fire-and-forget; synthesize a reply using `instructions`.
|
|
136
|
-
*/
|
|
137
|
-
readonly ASYNC_REQUEST_GUIDED: "async_request_guided";
|
|
138
|
-
/**
|
|
139
|
-
* Wait for the tool; do not synthesize a reply from its result.
|
|
140
|
-
*/
|
|
141
|
-
readonly BLOCKING_REQUEST: "blocking_request";
|
|
142
|
-
/**
|
|
143
|
-
* Wait for the tool; synthesize a reply from its result using `instructions`.
|
|
144
|
-
*/
|
|
145
|
-
readonly BLOCKING_REQUEST_GUIDED: "blocking_request_guided";
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* @public
|
|
149
|
-
*/
|
|
150
|
-
export type AgentToolPipelineType = (typeof AgentToolPipelineType)[keyof typeof AgentToolPipelineType];
|
|
151
151
|
/**
|
|
152
152
|
* @public
|
|
153
153
|
* @enum
|
|
@@ -1,113 +1,38 @@
|
|
|
1
1
|
import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
|
|
2
2
|
import { WilmaAgentsServiceException as __BaseException } from "./WilmaAgentsServiceException";
|
|
3
3
|
/**
|
|
4
|
+
* The request conflicts with the current state of the resource, e.g. a duplicate name, a resource still in use, or an unmet precondition.
|
|
4
5
|
* @public
|
|
5
6
|
*/
|
|
6
|
-
export declare class
|
|
7
|
-
readonly name: "
|
|
8
|
-
readonly $fault: "client";
|
|
9
|
-
/**
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
17
|
-
export declare class AgentApiKeyNotFoundException extends __BaseException {
|
|
18
|
-
readonly name: "AgentApiKeyNotFoundException";
|
|
19
|
-
readonly $fault: "client";
|
|
20
|
-
type?: string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
*/
|
|
24
|
-
constructor(opts: __ExceptionOptionType<AgentApiKeyNotFoundException, __BaseException>);
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* The deployment cannot be deleted because it is the agent's required 'production' deployment or is referenced by another agent capability.
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
30
|
-
export declare class AgentDeploymentInUseException extends __BaseException {
|
|
31
|
-
readonly name: "AgentDeploymentInUseException";
|
|
32
|
-
readonly $fault: "client";
|
|
33
|
-
type?: string | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
|
-
constructor(opts: __ExceptionOptionType<AgentDeploymentInUseException, __BaseException>);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @public
|
|
41
|
-
*/
|
|
42
|
-
export declare class AgentDeploymentNonUniqueNameException extends __BaseException {
|
|
43
|
-
readonly name: "AgentDeploymentNonUniqueNameException";
|
|
44
|
-
readonly $fault: "client";
|
|
45
|
-
type?: string | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
|
-
constructor(opts: __ExceptionOptionType<AgentDeploymentNonUniqueNameException, __BaseException>);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @public
|
|
53
|
-
*/
|
|
54
|
-
export declare class AgentDeploymentNotFoundException extends __BaseException {
|
|
55
|
-
readonly name: "AgentDeploymentNotFoundException";
|
|
7
|
+
export declare class ConflictException extends __BaseException {
|
|
8
|
+
readonly name: "ConflictException";
|
|
56
9
|
readonly $fault: "client";
|
|
57
|
-
type?: string | undefined;
|
|
58
10
|
/**
|
|
59
11
|
* @internal
|
|
60
12
|
*/
|
|
61
|
-
constructor(opts: __ExceptionOptionType<
|
|
13
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
62
14
|
}
|
|
63
15
|
/**
|
|
64
|
-
* The agent cannot be deleted because it has active sessions or is referenced by other agents (delegation, handover or agent-call capabilities). Recent invocations can be inspected via the wilma-traces QueryUsage operation filtered by agent.id.
|
|
65
16
|
* @public
|
|
66
17
|
*/
|
|
67
|
-
export declare class
|
|
68
|
-
readonly name: "
|
|
18
|
+
export declare class NotFoundException extends __BaseException {
|
|
19
|
+
readonly name: "NotFoundException";
|
|
69
20
|
readonly $fault: "client";
|
|
70
|
-
type?: string | undefined;
|
|
71
21
|
/**
|
|
72
22
|
* @internal
|
|
73
23
|
*/
|
|
74
|
-
constructor(opts: __ExceptionOptionType<
|
|
24
|
+
constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
|
|
75
25
|
}
|
|
76
26
|
/**
|
|
77
27
|
* @public
|
|
78
28
|
*/
|
|
79
|
-
export declare class
|
|
80
|
-
readonly name: "
|
|
81
|
-
readonly $fault: "client";
|
|
82
|
-
type?: string | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* @internal
|
|
85
|
-
*/
|
|
86
|
-
constructor(opts: __ExceptionOptionType<AgentNonUniqueNameException, __BaseException>);
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* @public
|
|
90
|
-
*/
|
|
91
|
-
export declare class AgentNotFoundException extends __BaseException {
|
|
92
|
-
readonly name: "AgentNotFoundException";
|
|
93
|
-
readonly $fault: "client";
|
|
94
|
-
type?: string | undefined;
|
|
95
|
-
/**
|
|
96
|
-
* @internal
|
|
97
|
-
*/
|
|
98
|
-
constructor(opts: __ExceptionOptionType<AgentNotFoundException, __BaseException>);
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* @public
|
|
102
|
-
*/
|
|
103
|
-
export declare class AgentVersionNotFoundException extends __BaseException {
|
|
104
|
-
readonly name: "AgentVersionNotFoundException";
|
|
29
|
+
export declare class ValidationException extends __BaseException {
|
|
30
|
+
readonly name: "ValidationException";
|
|
105
31
|
readonly $fault: "client";
|
|
106
|
-
type?: string | undefined;
|
|
107
32
|
/**
|
|
108
33
|
* @internal
|
|
109
34
|
*/
|
|
110
|
-
constructor(opts: __ExceptionOptionType<
|
|
35
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
111
36
|
}
|
|
112
37
|
/**
|
|
113
38
|
* The draft has not changed since the last published version; there is nothing to publish.
|
|
@@ -587,6 +587,62 @@ export declare namespace AgentToolAnnotation {
|
|
|
587
587
|
_: (name: string, value: any) => T;
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
+
/**
|
|
591
|
+
* Human-in-the-loop confirmation for a tool. Presence requires approval: the agent pauses before running the tool and the session user (whoever controls the session) approves or denies inline.
|
|
592
|
+
* @public
|
|
593
|
+
*/
|
|
594
|
+
export interface AgentToolApproval {
|
|
595
|
+
/**
|
|
596
|
+
* Optional message shown in the confirmation prompt. Supports handlebars against agent variables and the pending tool arguments. When omitted, a default prompt is shown.
|
|
597
|
+
* @public
|
|
598
|
+
*/
|
|
599
|
+
prompt?: string | undefined;
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* @public
|
|
603
|
+
*/
|
|
604
|
+
export interface AgentToolPipeline {
|
|
605
|
+
/**
|
|
606
|
+
* How the model waits for a tool and whether it synthesizes a reply from the result. Mirrors the legacy VoiceBot/Bot capability-tool pipeline.
|
|
607
|
+
* @public
|
|
608
|
+
*/
|
|
609
|
+
type?: AgentToolPipelineType | undefined;
|
|
610
|
+
/**
|
|
611
|
+
* Reply instructions for the *_GUIDED pipeline types. Use \{\{response\}\} to reference the tool result.
|
|
612
|
+
* @public
|
|
613
|
+
*/
|
|
614
|
+
instructions?: string | undefined;
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* A configured connector (wilma-tools) exposed to the model as a single meta-tool named
|
|
618
|
+
* after the connector. The model calls the reserved `help` action to learn the callable
|
|
619
|
+
* actions, then dispatches an action through the same tool. Progressive disclosure runs
|
|
620
|
+
* through the connector tool itself, not the skills catalogue.
|
|
621
|
+
* @public
|
|
622
|
+
*/
|
|
623
|
+
export interface AgentConnectorCapability {
|
|
624
|
+
/**
|
|
625
|
+
* Configured connector instance in wilma-tools. Its pinned definition, permission `grant` and authorization govern what the model can discover via `help` and call.
|
|
626
|
+
* @public
|
|
627
|
+
*/
|
|
628
|
+
id: string;
|
|
629
|
+
/**
|
|
630
|
+
* Message spoken when a connector action call starts. Honoured on the voice channel. Mirrors `AgentTool.startMessage`. Not applied to the read-only `help` action.
|
|
631
|
+
* @public
|
|
632
|
+
*/
|
|
633
|
+
startMessage?: string | undefined;
|
|
634
|
+
/**
|
|
635
|
+
* How the model waits for a connector action and whether it synthesizes a reply from the result. The `help` action carries no pipeline.
|
|
636
|
+
* @public
|
|
637
|
+
*/
|
|
638
|
+
pipeline?: AgentToolPipeline | undefined;
|
|
639
|
+
/**
|
|
640
|
+
* When present, write actions require inline approval from the session user before they run. The reserved `help` action and actions marked `readOnlyHint` on the pinned definition are exempt.
|
|
641
|
+
* @public
|
|
642
|
+
*/
|
|
643
|
+
approval?: AgentToolApproval | undefined;
|
|
644
|
+
annotations?: AgentToolAnnotation[] | undefined;
|
|
645
|
+
}
|
|
590
646
|
/**
|
|
591
647
|
* Delegate the conversation to another agent (max 3 transitions per turn). One capability entry per delegate target.
|
|
592
648
|
* @public
|
|
@@ -820,30 +876,74 @@ export interface AgentSuggestionsCapability {
|
|
|
820
876
|
annotations?: AgentToolAnnotation[] | undefined;
|
|
821
877
|
}
|
|
822
878
|
/**
|
|
823
|
-
*
|
|
879
|
+
* Keeps the field model-fillable but overrides its description in the schema shown to the model.
|
|
824
880
|
* @public
|
|
825
881
|
*/
|
|
826
|
-
export interface
|
|
827
|
-
|
|
828
|
-
* Optional message shown in the confirmation prompt. Supports handlebars against agent variables and the pending tool arguments. When omitted, a default prompt is shown.
|
|
829
|
-
* @public
|
|
830
|
-
*/
|
|
831
|
-
prompt?: string | undefined;
|
|
882
|
+
export interface AgentToolFieldGuidedHandler {
|
|
883
|
+
description: string;
|
|
832
884
|
}
|
|
833
885
|
/**
|
|
886
|
+
* A fixed value injected at the field path and excluded from the schema shown to the model, so the model neither sees nor sets it. A JSON value, or a string with handlebars templates resolved against agent variables and session context (e.g. '\{\{callerName\}\}').
|
|
834
887
|
* @public
|
|
835
888
|
*/
|
|
836
|
-
export interface
|
|
889
|
+
export interface AgentToolFieldPredefinedHandler {
|
|
890
|
+
value: __DocumentType;
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* @public
|
|
894
|
+
*/
|
|
895
|
+
export type AgentToolFieldHandler = AgentToolFieldHandler.GuidedMember | AgentToolFieldHandler.PredefinedMember | AgentToolFieldHandler.$UnknownMember;
|
|
896
|
+
/**
|
|
897
|
+
* @public
|
|
898
|
+
*/
|
|
899
|
+
export declare namespace AgentToolFieldHandler {
|
|
837
900
|
/**
|
|
838
|
-
*
|
|
901
|
+
* Keeps the field model-fillable but overrides its description in the schema shown to the model.
|
|
839
902
|
* @public
|
|
840
903
|
*/
|
|
841
|
-
|
|
904
|
+
interface GuidedMember {
|
|
905
|
+
guided: AgentToolFieldGuidedHandler;
|
|
906
|
+
predefined?: never;
|
|
907
|
+
$unknown?: never;
|
|
908
|
+
}
|
|
842
909
|
/**
|
|
843
|
-
*
|
|
910
|
+
* A fixed value injected at the field path and excluded from the schema shown to the model, so the model neither sees nor sets it. A JSON value, or a string with handlebars templates resolved against agent variables and session context (e.g. '\{\{callerName\}\}').
|
|
844
911
|
* @public
|
|
845
912
|
*/
|
|
846
|
-
|
|
913
|
+
interface PredefinedMember {
|
|
914
|
+
guided?: never;
|
|
915
|
+
predefined: AgentToolFieldPredefinedHandler;
|
|
916
|
+
$unknown?: never;
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* @public
|
|
920
|
+
*/
|
|
921
|
+
interface $UnknownMember {
|
|
922
|
+
guided?: never;
|
|
923
|
+
predefined?: never;
|
|
924
|
+
$unknown: [string, any];
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* @deprecated unused in schema-serde mode.
|
|
928
|
+
*
|
|
929
|
+
*/
|
|
930
|
+
interface Visitor<T> {
|
|
931
|
+
guided: (value: AgentToolFieldGuidedHandler) => T;
|
|
932
|
+
predefined: (value: AgentToolFieldPredefinedHandler) => T;
|
|
933
|
+
_: (name: string, value: any) => T;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* Per-field override applied to a shared tool's input schema for this agent.
|
|
938
|
+
* @public
|
|
939
|
+
*/
|
|
940
|
+
export interface AgentToolField {
|
|
941
|
+
/**
|
|
942
|
+
* JSON Pointer to the target property in the tool input schema.
|
|
943
|
+
* @public
|
|
944
|
+
*/
|
|
945
|
+
path: string;
|
|
946
|
+
handler: AgentToolFieldHandler;
|
|
847
947
|
}
|
|
848
948
|
/**
|
|
849
949
|
* @public
|
|
@@ -854,7 +954,16 @@ export interface AgentTool {
|
|
|
854
954
|
* @public
|
|
855
955
|
*/
|
|
856
956
|
id: string;
|
|
857
|
-
|
|
957
|
+
/**
|
|
958
|
+
* Override the tool's description for this agent. When omitted, the tool's own description is used.
|
|
959
|
+
* @public
|
|
960
|
+
*/
|
|
961
|
+
description?: string | undefined;
|
|
962
|
+
/**
|
|
963
|
+
* Per-field overrides on the tool input schema: pin fixed values (hidden from the model) or refine field descriptions. Fields not listed are filled by the model per the tool schema.
|
|
964
|
+
* @public
|
|
965
|
+
*/
|
|
966
|
+
fields?: AgentToolField[] | undefined;
|
|
858
967
|
/**
|
|
859
968
|
* Message spoken when the tool call starts. Honoured on the voice channel. Maps from the legacy wim-voicebots capability-tool `startMessage`.
|
|
860
969
|
* @public
|
|
@@ -982,13 +1091,37 @@ export interface AgentWebSearchCapability {
|
|
|
982
1091
|
/**
|
|
983
1092
|
* @public
|
|
984
1093
|
*/
|
|
985
|
-
export type AgentCapability = AgentCapability.AgentMember | AgentCapability.DelegationMember | AgentCapability.HandoverMember | AgentCapability.HangupMember | AgentCapability.KbMember | AgentCapability.SandboxMember | AgentCapability.SuggestionsMember | AgentCapability.ToolMember | AgentCapability.TransferMember | AgentCapability.WaitMember | AgentCapability.WebFetchMember | AgentCapability.WebSearchMember | AgentCapability.$UnknownMember;
|
|
1094
|
+
export type AgentCapability = AgentCapability.AgentMember | AgentCapability.ConnectorMember | AgentCapability.DelegationMember | AgentCapability.HandoverMember | AgentCapability.HangupMember | AgentCapability.KbMember | AgentCapability.SandboxMember | AgentCapability.SuggestionsMember | AgentCapability.ToolMember | AgentCapability.TransferMember | AgentCapability.WaitMember | AgentCapability.WebFetchMember | AgentCapability.WebSearchMember | AgentCapability.$UnknownMember;
|
|
986
1095
|
/**
|
|
987
1096
|
* @public
|
|
988
1097
|
*/
|
|
989
1098
|
export declare namespace AgentCapability {
|
|
990
1099
|
interface ToolMember {
|
|
991
1100
|
tool: AgentTool;
|
|
1101
|
+
connector?: never;
|
|
1102
|
+
kb?: never;
|
|
1103
|
+
sandbox?: never;
|
|
1104
|
+
webSearch?: never;
|
|
1105
|
+
webFetch?: never;
|
|
1106
|
+
agent?: never;
|
|
1107
|
+
handover?: never;
|
|
1108
|
+
delegation?: never;
|
|
1109
|
+
transfer?: never;
|
|
1110
|
+
suggestions?: never;
|
|
1111
|
+
hangup?: never;
|
|
1112
|
+
wait?: never;
|
|
1113
|
+
$unknown?: never;
|
|
1114
|
+
}
|
|
1115
|
+
/**
|
|
1116
|
+
* A configured connector (wilma-tools) exposed to the model as a single meta-tool named
|
|
1117
|
+
* after the connector. The model calls the reserved `help` action to learn the callable
|
|
1118
|
+
* actions, then dispatches an action through the same tool. Progressive disclosure runs
|
|
1119
|
+
* through the connector tool itself, not the skills catalogue.
|
|
1120
|
+
* @public
|
|
1121
|
+
*/
|
|
1122
|
+
interface ConnectorMember {
|
|
1123
|
+
tool?: never;
|
|
1124
|
+
connector: AgentConnectorCapability;
|
|
992
1125
|
kb?: never;
|
|
993
1126
|
sandbox?: never;
|
|
994
1127
|
webSearch?: never;
|
|
@@ -1004,6 +1137,7 @@ export declare namespace AgentCapability {
|
|
|
1004
1137
|
}
|
|
1005
1138
|
interface KbMember {
|
|
1006
1139
|
tool?: never;
|
|
1140
|
+
connector?: never;
|
|
1007
1141
|
kb: AgentKnowledgeBase;
|
|
1008
1142
|
sandbox?: never;
|
|
1009
1143
|
webSearch?: never;
|
|
@@ -1023,6 +1157,7 @@ export declare namespace AgentCapability {
|
|
|
1023
1157
|
*/
|
|
1024
1158
|
interface SandboxMember {
|
|
1025
1159
|
tool?: never;
|
|
1160
|
+
connector?: never;
|
|
1026
1161
|
kb?: never;
|
|
1027
1162
|
sandbox: AgentSandboxCapability;
|
|
1028
1163
|
webSearch?: never;
|
|
@@ -1042,6 +1177,7 @@ export declare namespace AgentCapability {
|
|
|
1042
1177
|
*/
|
|
1043
1178
|
interface WebSearchMember {
|
|
1044
1179
|
tool?: never;
|
|
1180
|
+
connector?: never;
|
|
1045
1181
|
kb?: never;
|
|
1046
1182
|
sandbox?: never;
|
|
1047
1183
|
webSearch: AgentWebSearchCapability;
|
|
@@ -1061,6 +1197,7 @@ export declare namespace AgentCapability {
|
|
|
1061
1197
|
*/
|
|
1062
1198
|
interface WebFetchMember {
|
|
1063
1199
|
tool?: never;
|
|
1200
|
+
connector?: never;
|
|
1064
1201
|
kb?: never;
|
|
1065
1202
|
sandbox?: never;
|
|
1066
1203
|
webSearch?: never;
|
|
@@ -1080,6 +1217,7 @@ export declare namespace AgentCapability {
|
|
|
1080
1217
|
*/
|
|
1081
1218
|
interface AgentMember {
|
|
1082
1219
|
tool?: never;
|
|
1220
|
+
connector?: never;
|
|
1083
1221
|
kb?: never;
|
|
1084
1222
|
sandbox?: never;
|
|
1085
1223
|
webSearch?: never;
|
|
@@ -1099,6 +1237,7 @@ export declare namespace AgentCapability {
|
|
|
1099
1237
|
*/
|
|
1100
1238
|
interface HandoverMember {
|
|
1101
1239
|
tool?: never;
|
|
1240
|
+
connector?: never;
|
|
1102
1241
|
kb?: never;
|
|
1103
1242
|
sandbox?: never;
|
|
1104
1243
|
webSearch?: never;
|
|
@@ -1118,6 +1257,7 @@ export declare namespace AgentCapability {
|
|
|
1118
1257
|
*/
|
|
1119
1258
|
interface DelegationMember {
|
|
1120
1259
|
tool?: never;
|
|
1260
|
+
connector?: never;
|
|
1121
1261
|
kb?: never;
|
|
1122
1262
|
sandbox?: never;
|
|
1123
1263
|
webSearch?: never;
|
|
@@ -1137,6 +1277,7 @@ export declare namespace AgentCapability {
|
|
|
1137
1277
|
*/
|
|
1138
1278
|
interface TransferMember {
|
|
1139
1279
|
tool?: never;
|
|
1280
|
+
connector?: never;
|
|
1140
1281
|
kb?: never;
|
|
1141
1282
|
sandbox?: never;
|
|
1142
1283
|
webSearch?: never;
|
|
@@ -1156,6 +1297,7 @@ export declare namespace AgentCapability {
|
|
|
1156
1297
|
*/
|
|
1157
1298
|
interface SuggestionsMember {
|
|
1158
1299
|
tool?: never;
|
|
1300
|
+
connector?: never;
|
|
1159
1301
|
kb?: never;
|
|
1160
1302
|
sandbox?: never;
|
|
1161
1303
|
webSearch?: never;
|
|
@@ -1175,6 +1317,7 @@ export declare namespace AgentCapability {
|
|
|
1175
1317
|
*/
|
|
1176
1318
|
interface HangupMember {
|
|
1177
1319
|
tool?: never;
|
|
1320
|
+
connector?: never;
|
|
1178
1321
|
kb?: never;
|
|
1179
1322
|
sandbox?: never;
|
|
1180
1323
|
webSearch?: never;
|
|
@@ -1194,6 +1337,7 @@ export declare namespace AgentCapability {
|
|
|
1194
1337
|
*/
|
|
1195
1338
|
interface WaitMember {
|
|
1196
1339
|
tool?: never;
|
|
1340
|
+
connector?: never;
|
|
1197
1341
|
kb?: never;
|
|
1198
1342
|
sandbox?: never;
|
|
1199
1343
|
webSearch?: never;
|
|
@@ -1212,6 +1356,7 @@ export declare namespace AgentCapability {
|
|
|
1212
1356
|
*/
|
|
1213
1357
|
interface $UnknownMember {
|
|
1214
1358
|
tool?: never;
|
|
1359
|
+
connector?: never;
|
|
1215
1360
|
kb?: never;
|
|
1216
1361
|
sandbox?: never;
|
|
1217
1362
|
webSearch?: never;
|
|
@@ -1231,6 +1376,7 @@ export declare namespace AgentCapability {
|
|
|
1231
1376
|
*/
|
|
1232
1377
|
interface Visitor<T> {
|
|
1233
1378
|
tool: (value: AgentTool) => T;
|
|
1379
|
+
connector: (value: AgentConnectorCapability) => T;
|
|
1234
1380
|
kb: (value: AgentKnowledgeBase) => T;
|
|
1235
1381
|
sandbox: (value: AgentSandboxCapability) => T;
|
|
1236
1382
|
webSearch: (value: AgentWebSearchCapability) => T;
|
|
@@ -1294,6 +1440,18 @@ export interface AgentAiEngine {
|
|
|
1294
1440
|
capabilities?: AgentCapability[] | undefined;
|
|
1295
1441
|
variables?: AgentVariable[] | undefined;
|
|
1296
1442
|
}
|
|
1443
|
+
/**
|
|
1444
|
+
* A reference to a stored secret, held by other services in place of the value.
|
|
1445
|
+
* Resolved server-to-server via GetSecretValue at execution time — always to the current value.
|
|
1446
|
+
* @public
|
|
1447
|
+
*/
|
|
1448
|
+
export interface SecretRef {
|
|
1449
|
+
/**
|
|
1450
|
+
* Unique identifier of a secret.
|
|
1451
|
+
* @public
|
|
1452
|
+
*/
|
|
1453
|
+
id: string;
|
|
1454
|
+
}
|
|
1297
1455
|
/**
|
|
1298
1456
|
* Bring-your-own backend over SQS: turns are forwarded to the queue, replies are posted back via the API.
|
|
1299
1457
|
* @public
|
|
@@ -1301,7 +1459,11 @@ export interface AgentAiEngine {
|
|
|
1301
1459
|
export interface AgentSqsEngine {
|
|
1302
1460
|
url: string;
|
|
1303
1461
|
key: string;
|
|
1304
|
-
|
|
1462
|
+
/**
|
|
1463
|
+
* Reference to the SQS secret access key in wilma-secrets.
|
|
1464
|
+
* @public
|
|
1465
|
+
*/
|
|
1466
|
+
secret: SecretRef;
|
|
1305
1467
|
}
|
|
1306
1468
|
/**
|
|
1307
1469
|
* Bring-your-own backend over HTTPS: each turn is POSTed to the URL, the response is the reply.
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { XhrHttpHandler as RequestHandler } from "@wildix/smithy-react-native";
|
|
1
2
|
import type { WilmaAgentsClientConfig } from "./WilmaAgentsClient";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
*/
|
|
5
6
|
export declare const getRuntimeConfig: (config: WilmaAgentsClientConfig) => {
|
|
6
7
|
runtime: string;
|
|
8
|
+
requestHandler: RequestHandler;
|
|
7
9
|
sha256: import("@smithy/types").HashConstructor;
|
|
8
|
-
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
9
10
|
cacheMiddleware?: boolean;
|
|
10
11
|
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
11
12
|
protocolSettings: {
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
|
|
3
3
|
export declare var WilmaAgentsServiceException$: StaticErrorSchema;
|
|
4
|
+
export declare var ConflictException$: StaticErrorSchema;
|
|
5
|
+
export declare var NotFoundException$: StaticErrorSchema;
|
|
4
6
|
export declare var ValidationException$: StaticErrorSchema;
|
|
5
|
-
export declare var AgentApiKeyNotFoundException$: StaticErrorSchema;
|
|
6
|
-
export declare var AgentDeploymentInUseException$: StaticErrorSchema;
|
|
7
|
-
export declare var AgentDeploymentNonUniqueNameException$: StaticErrorSchema;
|
|
8
|
-
export declare var AgentDeploymentNotFoundException$: StaticErrorSchema;
|
|
9
|
-
export declare var AgentInUseException$: StaticErrorSchema;
|
|
10
|
-
export declare var AgentNonUniqueNameException$: StaticErrorSchema;
|
|
11
|
-
export declare var AgentNotFoundException$: StaticErrorSchema;
|
|
12
|
-
export declare var AgentVersionNotFoundException$: StaticErrorSchema;
|
|
13
7
|
export declare var NothingToPublishException$: StaticErrorSchema;
|
|
14
8
|
export declare var RevisionConflictException$: StaticErrorSchema;
|
|
15
9
|
/**
|
|
@@ -24,6 +18,7 @@ export declare var AgentAiEngine$: StaticStructureSchema;
|
|
|
24
18
|
export declare var AgentApiKey$: StaticStructureSchema;
|
|
25
19
|
export declare var AgentCallCapability$: StaticStructureSchema;
|
|
26
20
|
export declare var AgentChannels$: StaticStructureSchema;
|
|
21
|
+
export declare var AgentConnectorCapability$: StaticStructureSchema;
|
|
27
22
|
export declare var AgentDefinitionSnapshot$: StaticStructureSchema;
|
|
28
23
|
export declare var AgentDelegationCapability$: StaticStructureSchema;
|
|
29
24
|
export declare var AgentDeployment$: StaticStructureSchema;
|
|
@@ -41,6 +36,9 @@ export declare var AgentSuggestionsCapability$: StaticStructureSchema;
|
|
|
41
36
|
export declare var AgentTool$: StaticStructureSchema;
|
|
42
37
|
export declare var AgentToolApproval$: StaticStructureSchema;
|
|
43
38
|
export declare var AgentToolCommentAnnotation$: StaticStructureSchema;
|
|
39
|
+
export declare var AgentToolField$: StaticStructureSchema;
|
|
40
|
+
export declare var AgentToolFieldGuidedHandler$: StaticStructureSchema;
|
|
41
|
+
export declare var AgentToolFieldPredefinedHandler$: StaticStructureSchema;
|
|
44
42
|
export declare var AgentToolPipeline$: StaticStructureSchema;
|
|
45
43
|
export declare var AgentToolResultAnnotation$: StaticStructureSchema;
|
|
46
44
|
export declare var AgentToolTagAnnotation$: StaticStructureSchema;
|
|
@@ -111,12 +109,14 @@ export declare var VoiceTransferTarget$: StaticStructureSchema;
|
|
|
111
109
|
export declare var WebSearchUserLocation$: StaticStructureSchema;
|
|
112
110
|
export declare var WorkflowChannelSettings$: StaticStructureSchema;
|
|
113
111
|
export declare var Actor$: StaticStructureSchema;
|
|
112
|
+
export declare var SecretRef$: StaticStructureSchema;
|
|
114
113
|
export declare var AgentSkillReference$: StaticStructureSchema;
|
|
115
114
|
export declare var AgentCapability$: StaticUnionSchema;
|
|
116
115
|
export declare var AgentEngine$: StaticUnionSchema;
|
|
117
116
|
export declare var AgentGrantPrincipal$: StaticUnionSchema;
|
|
118
117
|
export declare var AgentSandboxCapability$: StaticUnionSchema;
|
|
119
118
|
export declare var AgentToolAnnotation$: StaticUnionSchema;
|
|
119
|
+
export declare var AgentToolFieldHandler$: StaticUnionSchema;
|
|
120
120
|
export declare var AgentToolVariableHandler$: StaticUnionSchema;
|
|
121
121
|
export declare var VoiceTerminateAction$: StaticUnionSchema;
|
|
122
122
|
export declare var CompareAgentVersions$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wilma-agents-client",
|
|
3
3
|
"description": "@wildix/wilma-agents-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.15",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"@smithy/core": "^3.24.5",
|
|
25
25
|
"@smithy/fetch-http-handler": "^5.4.5",
|
|
26
26
|
"@smithy/node-http-handler": "^4.7.5",
|
|
27
|
-
"@smithy/types": "^4.14.2"
|
|
27
|
+
"@smithy/types": "^4.14.2",
|
|
28
|
+
"@wildix/smithy-react-native": "^1.0.0"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@tsconfig/node20": "20.1.8",
|
|
@@ -48,10 +49,11 @@
|
|
|
48
49
|
"dist-*/**"
|
|
49
50
|
],
|
|
50
51
|
"license": "Apache-2.0",
|
|
51
|
-
"browser": {
|
|
52
|
-
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
53
|
-
},
|
|
54
52
|
"react-native": {
|
|
53
|
+
"@aws-sdk/core/client": "@aws-sdk/core/dist-es/submodules/client/index.native.js",
|
|
55
54
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
55
|
+
},
|
|
56
|
+
"browser": {
|
|
57
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
56
58
|
}
|
|
57
59
|
}
|