@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
package/dist-cjs/models/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChannelType = exports.AgentStatus = exports.AgentVariableType = exports.WebSearchContextSize = exports.AgentTransferVariant = exports.AgentTransferPipelineType = exports.
|
|
3
|
+
exports.ChannelType = exports.AgentStatus = exports.AgentVariableType = exports.WebSearchContextSize = exports.AgentTransferVariant = exports.AgentTransferPipelineType = exports.SandboxNetworkAccess = exports.AgentHangupPipelineType = exports.AgentHandoverVariant = exports.AgentHandoverPipelineType = exports.AgentToolPipelineType = exports.AgentDeploymentStatus = exports.ActorType = exports.AgentVisibility = void 0;
|
|
4
4
|
exports.AgentVisibility = {
|
|
5
5
|
EXPLICIT: "explicit",
|
|
6
6
|
ORGANIZATION: "organization",
|
|
@@ -14,6 +14,12 @@ exports.AgentDeploymentStatus = {
|
|
|
14
14
|
ACTIVE: "active",
|
|
15
15
|
PAUSED: "paused",
|
|
16
16
|
};
|
|
17
|
+
exports.AgentToolPipelineType = {
|
|
18
|
+
ASYNC_REQUEST: "async_request",
|
|
19
|
+
ASYNC_REQUEST_GUIDED: "async_request_guided",
|
|
20
|
+
BLOCKING_REQUEST: "blocking_request",
|
|
21
|
+
BLOCKING_REQUEST_GUIDED: "blocking_request_guided",
|
|
22
|
+
};
|
|
17
23
|
exports.AgentHandoverPipelineType = {
|
|
18
24
|
HANDOVER: "handover",
|
|
19
25
|
REPLY_AND_HANDOVER: "reply_and_handover",
|
|
@@ -33,12 +39,6 @@ exports.SandboxNetworkAccess = {
|
|
|
33
39
|
ALLOWLIST: "allowlist",
|
|
34
40
|
NONE: "deny-all",
|
|
35
41
|
};
|
|
36
|
-
exports.AgentToolPipelineType = {
|
|
37
|
-
ASYNC_REQUEST: "async_request",
|
|
38
|
-
ASYNC_REQUEST_GUIDED: "async_request_guided",
|
|
39
|
-
BLOCKING_REQUEST: "blocking_request",
|
|
40
|
-
BLOCKING_REQUEST_GUIDED: "blocking_request_guided",
|
|
41
|
-
};
|
|
42
42
|
exports.AgentTransferPipelineType = {
|
|
43
43
|
REPLY_AND_TRANSFER: "reply_and_transfer",
|
|
44
44
|
REPLY_INSTRUCTED_AND_TRANSFER: "reply_instructed_and_transfer",
|
|
@@ -1,140 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RevisionConflictException = exports.NothingToPublishException = exports.
|
|
3
|
+
exports.RevisionConflictException = exports.NothingToPublishException = exports.ValidationException = exports.NotFoundException = exports.ConflictException = void 0;
|
|
4
4
|
const WilmaAgentsServiceException_1 = require("./WilmaAgentsServiceException");
|
|
5
|
-
class
|
|
6
|
-
name = "
|
|
7
|
-
$fault = "client";
|
|
8
|
-
constructor(opts) {
|
|
9
|
-
super({
|
|
10
|
-
name: "ValidationException",
|
|
11
|
-
$fault: "client",
|
|
12
|
-
...opts,
|
|
13
|
-
});
|
|
14
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.ValidationException = ValidationException;
|
|
18
|
-
class AgentApiKeyNotFoundException extends WilmaAgentsServiceException_1.WilmaAgentsServiceException {
|
|
19
|
-
name = "AgentApiKeyNotFoundException";
|
|
20
|
-
$fault = "client";
|
|
21
|
-
type;
|
|
22
|
-
constructor(opts) {
|
|
23
|
-
super({
|
|
24
|
-
name: "AgentApiKeyNotFoundException",
|
|
25
|
-
$fault: "client",
|
|
26
|
-
...opts,
|
|
27
|
-
});
|
|
28
|
-
Object.setPrototypeOf(this, AgentApiKeyNotFoundException.prototype);
|
|
29
|
-
this.type = opts.type;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.AgentApiKeyNotFoundException = AgentApiKeyNotFoundException;
|
|
33
|
-
class AgentDeploymentInUseException extends WilmaAgentsServiceException_1.WilmaAgentsServiceException {
|
|
34
|
-
name = "AgentDeploymentInUseException";
|
|
35
|
-
$fault = "client";
|
|
36
|
-
type;
|
|
37
|
-
constructor(opts) {
|
|
38
|
-
super({
|
|
39
|
-
name: "AgentDeploymentInUseException",
|
|
40
|
-
$fault: "client",
|
|
41
|
-
...opts,
|
|
42
|
-
});
|
|
43
|
-
Object.setPrototypeOf(this, AgentDeploymentInUseException.prototype);
|
|
44
|
-
this.type = opts.type;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.AgentDeploymentInUseException = AgentDeploymentInUseException;
|
|
48
|
-
class AgentDeploymentNonUniqueNameException extends WilmaAgentsServiceException_1.WilmaAgentsServiceException {
|
|
49
|
-
name = "AgentDeploymentNonUniqueNameException";
|
|
50
|
-
$fault = "client";
|
|
51
|
-
type;
|
|
52
|
-
constructor(opts) {
|
|
53
|
-
super({
|
|
54
|
-
name: "AgentDeploymentNonUniqueNameException",
|
|
55
|
-
$fault: "client",
|
|
56
|
-
...opts,
|
|
57
|
-
});
|
|
58
|
-
Object.setPrototypeOf(this, AgentDeploymentNonUniqueNameException.prototype);
|
|
59
|
-
this.type = opts.type;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
exports.AgentDeploymentNonUniqueNameException = AgentDeploymentNonUniqueNameException;
|
|
63
|
-
class AgentDeploymentNotFoundException extends WilmaAgentsServiceException_1.WilmaAgentsServiceException {
|
|
64
|
-
name = "AgentDeploymentNotFoundException";
|
|
5
|
+
class ConflictException extends WilmaAgentsServiceException_1.WilmaAgentsServiceException {
|
|
6
|
+
name = "ConflictException";
|
|
65
7
|
$fault = "client";
|
|
66
|
-
type;
|
|
67
8
|
constructor(opts) {
|
|
68
9
|
super({
|
|
69
|
-
name: "
|
|
10
|
+
name: "ConflictException",
|
|
70
11
|
$fault: "client",
|
|
71
12
|
...opts,
|
|
72
13
|
});
|
|
73
|
-
Object.setPrototypeOf(this,
|
|
74
|
-
this.type = opts.type;
|
|
14
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
75
15
|
}
|
|
76
16
|
}
|
|
77
|
-
exports.
|
|
78
|
-
class
|
|
79
|
-
name = "
|
|
17
|
+
exports.ConflictException = ConflictException;
|
|
18
|
+
class NotFoundException extends WilmaAgentsServiceException_1.WilmaAgentsServiceException {
|
|
19
|
+
name = "NotFoundException";
|
|
80
20
|
$fault = "client";
|
|
81
|
-
type;
|
|
82
21
|
constructor(opts) {
|
|
83
22
|
super({
|
|
84
|
-
name: "
|
|
23
|
+
name: "NotFoundException",
|
|
85
24
|
$fault: "client",
|
|
86
25
|
...opts,
|
|
87
26
|
});
|
|
88
|
-
Object.setPrototypeOf(this,
|
|
89
|
-
this.type = opts.type;
|
|
27
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
90
28
|
}
|
|
91
29
|
}
|
|
92
|
-
exports.
|
|
93
|
-
class
|
|
94
|
-
name = "
|
|
95
|
-
$fault = "client";
|
|
96
|
-
type;
|
|
97
|
-
constructor(opts) {
|
|
98
|
-
super({
|
|
99
|
-
name: "AgentNonUniqueNameException",
|
|
100
|
-
$fault: "client",
|
|
101
|
-
...opts,
|
|
102
|
-
});
|
|
103
|
-
Object.setPrototypeOf(this, AgentNonUniqueNameException.prototype);
|
|
104
|
-
this.type = opts.type;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
exports.AgentNonUniqueNameException = AgentNonUniqueNameException;
|
|
108
|
-
class AgentNotFoundException extends WilmaAgentsServiceException_1.WilmaAgentsServiceException {
|
|
109
|
-
name = "AgentNotFoundException";
|
|
110
|
-
$fault = "client";
|
|
111
|
-
type;
|
|
112
|
-
constructor(opts) {
|
|
113
|
-
super({
|
|
114
|
-
name: "AgentNotFoundException",
|
|
115
|
-
$fault: "client",
|
|
116
|
-
...opts,
|
|
117
|
-
});
|
|
118
|
-
Object.setPrototypeOf(this, AgentNotFoundException.prototype);
|
|
119
|
-
this.type = opts.type;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
exports.AgentNotFoundException = AgentNotFoundException;
|
|
123
|
-
class AgentVersionNotFoundException extends WilmaAgentsServiceException_1.WilmaAgentsServiceException {
|
|
124
|
-
name = "AgentVersionNotFoundException";
|
|
30
|
+
exports.NotFoundException = NotFoundException;
|
|
31
|
+
class ValidationException extends WilmaAgentsServiceException_1.WilmaAgentsServiceException {
|
|
32
|
+
name = "ValidationException";
|
|
125
33
|
$fault = "client";
|
|
126
|
-
type;
|
|
127
34
|
constructor(opts) {
|
|
128
35
|
super({
|
|
129
|
-
name: "
|
|
36
|
+
name: "ValidationException",
|
|
130
37
|
$fault: "client",
|
|
131
38
|
...opts,
|
|
132
39
|
});
|
|
133
|
-
Object.setPrototypeOf(this,
|
|
134
|
-
this.type = opts.type;
|
|
40
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
135
41
|
}
|
|
136
42
|
}
|
|
137
|
-
exports.
|
|
43
|
+
exports.ValidationException = ValidationException;
|
|
138
44
|
class NothingToPublishException extends WilmaAgentsServiceException_1.WilmaAgentsServiceException {
|
|
139
45
|
name = "NothingToPublishException";
|
|
140
46
|
$fault = "client";
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const smithy_react_native_1 = require("@wildix/smithy-react-native");
|
|
5
6
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
7
|
const getRuntimeConfig = (config) => {
|
|
7
8
|
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
|
+
(0, smithy_react_native_1.installReactNativeGlobals)();
|
|
8
10
|
return {
|
|
9
11
|
...browserDefaults,
|
|
10
12
|
...config,
|
|
11
13
|
runtime: "react-native",
|
|
14
|
+
requestHandler: smithy_react_native_1.XhrHttpHandler.create(config?.requestHandler),
|
|
12
15
|
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
13
16
|
};
|
|
14
17
|
};
|