@wildix/wilma-copilot-client 1.0.2
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/WilmaCopilot.js +75 -0
- package/dist-cjs/WilmaCopilotClient.js +49 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
- package/dist-cjs/commands/AttachProfileResourceCommand.js +20 -0
- package/dist-cjs/commands/CompareProfileVersionsCommand.js +20 -0
- package/dist-cjs/commands/CreateAssetCommand.js +20 -0
- package/dist-cjs/commands/CreateAutomationCommand.js +20 -0
- package/dist-cjs/commands/CreateEvaluationCommand.js +20 -0
- package/dist-cjs/commands/CreateIntentCommand.js +20 -0
- package/dist-cjs/commands/CreateProfileCommand.js +20 -0
- package/dist-cjs/commands/DeleteAssetCommand.js +20 -0
- package/dist-cjs/commands/DeleteAutomationCommand.js +20 -0
- package/dist-cjs/commands/DeleteEvaluationCommand.js +20 -0
- package/dist-cjs/commands/DeleteIntentCommand.js +20 -0
- package/dist-cjs/commands/DeleteProfileCommand.js +20 -0
- package/dist-cjs/commands/DeleteProfileResourceCommand.js +20 -0
- package/dist-cjs/commands/GetAssetCommand.js +20 -0
- package/dist-cjs/commands/GetAutomationCommand.js +20 -0
- package/dist-cjs/commands/GetEvaluationCommand.js +20 -0
- package/dist-cjs/commands/GetIntentCommand.js +20 -0
- package/dist-cjs/commands/GetProfileCommand.js +20 -0
- package/dist-cjs/commands/GetProfileVersionCommand.js +20 -0
- package/dist-cjs/commands/ListAssetsCommand.js +20 -0
- package/dist-cjs/commands/ListAutomationsCommand.js +20 -0
- package/dist-cjs/commands/ListEvaluationsCommand.js +20 -0
- package/dist-cjs/commands/ListIntentsCommand.js +20 -0
- package/dist-cjs/commands/ListProfileVersionsCommand.js +20 -0
- package/dist-cjs/commands/ListProfilesCommand.js +20 -0
- package/dist-cjs/commands/PublishProfileVersionCommand.js +20 -0
- package/dist-cjs/commands/RestoreProfileVersionToDraftCommand.js +20 -0
- package/dist-cjs/commands/UpdateAssetCommand.js +20 -0
- package/dist-cjs/commands/UpdateAutomationCommand.js +20 -0
- package/dist-cjs/commands/UpdateEvaluationCommand.js +20 -0
- package/dist-cjs/commands/UpdateIntentCommand.js +20 -0
- package/dist-cjs/commands/UpdateProfileCommand.js +20 -0
- package/dist-cjs/commands/index.js +35 -0
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +13 -0
- package/dist-cjs/models/WilmaCopilotServiceException.js +12 -0
- package/dist-cjs/models/enums.js +95 -0
- package/dist-cjs/models/errors.js +287 -0
- package/dist-cjs/models/models_0.js +2 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +41 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +41 -0
- package/dist-cjs/runtimeExtensions.js +12 -0
- package/dist-cjs/schemas/schemas_0.js +1249 -0
- package/dist-es/WilmaCopilot.js +71 -0
- package/dist-es/WilmaCopilotClient.js +45 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
- package/dist-es/commands/AttachProfileResourceCommand.js +16 -0
- package/dist-es/commands/CompareProfileVersionsCommand.js +16 -0
- package/dist-es/commands/CreateAssetCommand.js +16 -0
- package/dist-es/commands/CreateAutomationCommand.js +16 -0
- package/dist-es/commands/CreateEvaluationCommand.js +16 -0
- package/dist-es/commands/CreateIntentCommand.js +16 -0
- package/dist-es/commands/CreateProfileCommand.js +16 -0
- package/dist-es/commands/DeleteAssetCommand.js +16 -0
- package/dist-es/commands/DeleteAutomationCommand.js +16 -0
- package/dist-es/commands/DeleteEvaluationCommand.js +16 -0
- package/dist-es/commands/DeleteIntentCommand.js +16 -0
- package/dist-es/commands/DeleteProfileCommand.js +16 -0
- package/dist-es/commands/DeleteProfileResourceCommand.js +16 -0
- package/dist-es/commands/GetAssetCommand.js +16 -0
- package/dist-es/commands/GetAutomationCommand.js +16 -0
- package/dist-es/commands/GetEvaluationCommand.js +16 -0
- package/dist-es/commands/GetIntentCommand.js +16 -0
- package/dist-es/commands/GetProfileCommand.js +16 -0
- package/dist-es/commands/GetProfileVersionCommand.js +16 -0
- package/dist-es/commands/ListAssetsCommand.js +16 -0
- package/dist-es/commands/ListAutomationsCommand.js +16 -0
- package/dist-es/commands/ListEvaluationsCommand.js +16 -0
- package/dist-es/commands/ListIntentsCommand.js +16 -0
- package/dist-es/commands/ListProfileVersionsCommand.js +16 -0
- package/dist-es/commands/ListProfilesCommand.js +16 -0
- package/dist-es/commands/PublishProfileVersionCommand.js +16 -0
- package/dist-es/commands/RestoreProfileVersionToDraftCommand.js +16 -0
- package/dist-es/commands/UpdateAssetCommand.js +16 -0
- package/dist-es/commands/UpdateAutomationCommand.js +16 -0
- package/dist-es/commands/UpdateEvaluationCommand.js +16 -0
- package/dist-es/commands/UpdateIntentCommand.js +16 -0
- package/dist-es/commands/UpdateProfileCommand.js +16 -0
- package/dist-es/commands/index.js +32 -0
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +8 -0
- package/dist-es/models/WilmaCopilotServiceException.js +8 -0
- package/dist-es/models/enums.js +92 -0
- package/dist-es/models/errors.js +265 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/runtimeConfig.browser.js +27 -0
- package/dist-es/runtimeConfig.js +36 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +37 -0
- package/dist-es/runtimeExtensions.js +8 -0
- package/dist-es/schemas/schemas_0.js +1243 -0
- package/dist-types/WilmaCopilot.d.ts +254 -0
- package/dist-types/WilmaCopilotClient.d.ts +209 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/AttachProfileResourceCommand.d.ts +165 -0
- package/dist-types/commands/CompareProfileVersionsCommand.d.ts +91 -0
- package/dist-types/commands/CreateAssetCommand.d.ts +328 -0
- package/dist-types/commands/CreateAutomationCommand.d.ts +176 -0
- package/dist-types/commands/CreateEvaluationCommand.d.ts +196 -0
- package/dist-types/commands/CreateIntentCommand.d.ts +202 -0
- package/dist-types/commands/CreateProfileCommand.d.ts +181 -0
- package/dist-types/commands/DeleteAssetCommand.d.ts +83 -0
- package/dist-types/commands/DeleteAutomationCommand.d.ts +83 -0
- package/dist-types/commands/DeleteEvaluationCommand.d.ts +83 -0
- package/dist-types/commands/DeleteIntentCommand.d.ts +83 -0
- package/dist-types/commands/DeleteProfileCommand.d.ts +79 -0
- package/dist-types/commands/DeleteProfileResourceCommand.d.ts +147 -0
- package/dist-types/commands/GetAssetCommand.d.ts +213 -0
- package/dist-types/commands/GetAutomationCommand.d.ts +137 -0
- package/dist-types/commands/GetEvaluationCommand.d.ts +147 -0
- package/dist-types/commands/GetIntentCommand.d.ts +150 -0
- package/dist-types/commands/GetProfileCommand.d.ts +141 -0
- package/dist-types/commands/GetProfileVersionCommand.d.ts +82 -0
- package/dist-types/commands/ListAssetsCommand.d.ts +107 -0
- package/dist-types/commands/ListAutomationsCommand.d.ts +103 -0
- package/dist-types/commands/ListEvaluationsCommand.d.ts +104 -0
- package/dist-types/commands/ListIntentsCommand.d.ts +103 -0
- package/dist-types/commands/ListProfileVersionsCommand.d.ts +95 -0
- package/dist-types/commands/ListProfilesCommand.d.ts +110 -0
- package/dist-types/commands/PublishProfileVersionCommand.d.ts +87 -0
- package/dist-types/commands/RestoreProfileVersionToDraftCommand.d.ts +146 -0
- package/dist-types/commands/UpdateAssetCommand.d.ts +335 -0
- package/dist-types/commands/UpdateAutomationCommand.d.ts +183 -0
- package/dist-types/commands/UpdateEvaluationCommand.d.ts +203 -0
- package/dist-types/commands/UpdateIntentCommand.d.ts +209 -0
- package/dist-types/commands/UpdateProfileCommand.d.ts +160 -0
- package/dist-types/commands/index.d.ts +32 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +31 -0
- package/dist-types/models/WilmaCopilotServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +287 -0
- package/dist-types/models/errors.d.ts +239 -0
- package/dist-types/models/models_0.d.ts +2808 -0
- package/dist-types/runtimeConfig.browser.d.ts +55 -0
- package/dist-types/runtimeConfig.d.ts +55 -0
- package/dist-types/runtimeConfig.native.d.ts +54 -0
- package/dist-types/runtimeConfig.shared.d.ts +32 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +182 -0
- package/package.json +57 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntentNotFoundException = exports.IntentInUseException = exports.EvaluationNotFoundException = exports.EvaluationInUseException = exports.ProfileNonUniqueNameException = exports.IntentNonUniqueNameException = exports.EvaluationNonUniqueNameException = exports.ProfileVersionNotFoundException = exports.AutomationNotFoundException = exports.AutomationNonUniqueNameException = exports.AutomationInUseException = exports.ProfileNotFoundException = exports.AssetNotFoundException = exports.AssetNonUniqueNameException = exports.AssetInUseException = exports.RevisionConflictException = exports.NothingToPublishException = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
4
|
+
const WilmaCopilotServiceException_1 = require("./WilmaCopilotServiceException");
|
|
5
|
+
class ForbiddenException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
6
|
+
name = "ForbiddenException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "ForbiddenException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ForbiddenException = ForbiddenException;
|
|
18
|
+
class ValidationException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
19
|
+
name = "ValidationException";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "ValidationException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ValidationException = ValidationException;
|
|
31
|
+
class NothingToPublishException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
32
|
+
name = "NothingToPublishException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
type;
|
|
35
|
+
constructor(opts) {
|
|
36
|
+
super({
|
|
37
|
+
name: "NothingToPublishException",
|
|
38
|
+
$fault: "client",
|
|
39
|
+
...opts,
|
|
40
|
+
});
|
|
41
|
+
Object.setPrototypeOf(this, NothingToPublishException.prototype);
|
|
42
|
+
this.type = opts.type;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.NothingToPublishException = NothingToPublishException;
|
|
46
|
+
class RevisionConflictException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
47
|
+
name = "RevisionConflictException";
|
|
48
|
+
$fault = "client";
|
|
49
|
+
type;
|
|
50
|
+
currentRevision;
|
|
51
|
+
constructor(opts) {
|
|
52
|
+
super({
|
|
53
|
+
name: "RevisionConflictException",
|
|
54
|
+
$fault: "client",
|
|
55
|
+
...opts,
|
|
56
|
+
});
|
|
57
|
+
Object.setPrototypeOf(this, RevisionConflictException.prototype);
|
|
58
|
+
this.type = opts.type;
|
|
59
|
+
this.currentRevision = opts.currentRevision;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.RevisionConflictException = RevisionConflictException;
|
|
63
|
+
class AssetInUseException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
64
|
+
name = "AssetInUseException";
|
|
65
|
+
$fault = "client";
|
|
66
|
+
type;
|
|
67
|
+
constructor(opts) {
|
|
68
|
+
super({
|
|
69
|
+
name: "AssetInUseException",
|
|
70
|
+
$fault: "client",
|
|
71
|
+
...opts,
|
|
72
|
+
});
|
|
73
|
+
Object.setPrototypeOf(this, AssetInUseException.prototype);
|
|
74
|
+
this.type = opts.type;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.AssetInUseException = AssetInUseException;
|
|
78
|
+
class AssetNonUniqueNameException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
79
|
+
name = "AssetNonUniqueNameException";
|
|
80
|
+
$fault = "client";
|
|
81
|
+
type;
|
|
82
|
+
constructor(opts) {
|
|
83
|
+
super({
|
|
84
|
+
name: "AssetNonUniqueNameException",
|
|
85
|
+
$fault: "client",
|
|
86
|
+
...opts,
|
|
87
|
+
});
|
|
88
|
+
Object.setPrototypeOf(this, AssetNonUniqueNameException.prototype);
|
|
89
|
+
this.type = opts.type;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.AssetNonUniqueNameException = AssetNonUniqueNameException;
|
|
93
|
+
class AssetNotFoundException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
94
|
+
name = "AssetNotFoundException";
|
|
95
|
+
$fault = "client";
|
|
96
|
+
type;
|
|
97
|
+
constructor(opts) {
|
|
98
|
+
super({
|
|
99
|
+
name: "AssetNotFoundException",
|
|
100
|
+
$fault: "client",
|
|
101
|
+
...opts,
|
|
102
|
+
});
|
|
103
|
+
Object.setPrototypeOf(this, AssetNotFoundException.prototype);
|
|
104
|
+
this.type = opts.type;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.AssetNotFoundException = AssetNotFoundException;
|
|
108
|
+
class ProfileNotFoundException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
109
|
+
name = "ProfileNotFoundException";
|
|
110
|
+
$fault = "client";
|
|
111
|
+
type;
|
|
112
|
+
constructor(opts) {
|
|
113
|
+
super({
|
|
114
|
+
name: "ProfileNotFoundException",
|
|
115
|
+
$fault: "client",
|
|
116
|
+
...opts,
|
|
117
|
+
});
|
|
118
|
+
Object.setPrototypeOf(this, ProfileNotFoundException.prototype);
|
|
119
|
+
this.type = opts.type;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
exports.ProfileNotFoundException = ProfileNotFoundException;
|
|
123
|
+
class AutomationInUseException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
124
|
+
name = "AutomationInUseException";
|
|
125
|
+
$fault = "client";
|
|
126
|
+
type;
|
|
127
|
+
constructor(opts) {
|
|
128
|
+
super({
|
|
129
|
+
name: "AutomationInUseException",
|
|
130
|
+
$fault: "client",
|
|
131
|
+
...opts,
|
|
132
|
+
});
|
|
133
|
+
Object.setPrototypeOf(this, AutomationInUseException.prototype);
|
|
134
|
+
this.type = opts.type;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
exports.AutomationInUseException = AutomationInUseException;
|
|
138
|
+
class AutomationNonUniqueNameException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
139
|
+
name = "AutomationNonUniqueNameException";
|
|
140
|
+
$fault = "client";
|
|
141
|
+
type;
|
|
142
|
+
constructor(opts) {
|
|
143
|
+
super({
|
|
144
|
+
name: "AutomationNonUniqueNameException",
|
|
145
|
+
$fault: "client",
|
|
146
|
+
...opts,
|
|
147
|
+
});
|
|
148
|
+
Object.setPrototypeOf(this, AutomationNonUniqueNameException.prototype);
|
|
149
|
+
this.type = opts.type;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
exports.AutomationNonUniqueNameException = AutomationNonUniqueNameException;
|
|
153
|
+
class AutomationNotFoundException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
154
|
+
name = "AutomationNotFoundException";
|
|
155
|
+
$fault = "client";
|
|
156
|
+
type;
|
|
157
|
+
constructor(opts) {
|
|
158
|
+
super({
|
|
159
|
+
name: "AutomationNotFoundException",
|
|
160
|
+
$fault: "client",
|
|
161
|
+
...opts,
|
|
162
|
+
});
|
|
163
|
+
Object.setPrototypeOf(this, AutomationNotFoundException.prototype);
|
|
164
|
+
this.type = opts.type;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
exports.AutomationNotFoundException = AutomationNotFoundException;
|
|
168
|
+
class ProfileVersionNotFoundException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
169
|
+
name = "ProfileVersionNotFoundException";
|
|
170
|
+
$fault = "client";
|
|
171
|
+
type;
|
|
172
|
+
constructor(opts) {
|
|
173
|
+
super({
|
|
174
|
+
name: "ProfileVersionNotFoundException",
|
|
175
|
+
$fault: "client",
|
|
176
|
+
...opts,
|
|
177
|
+
});
|
|
178
|
+
Object.setPrototypeOf(this, ProfileVersionNotFoundException.prototype);
|
|
179
|
+
this.type = opts.type;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
exports.ProfileVersionNotFoundException = ProfileVersionNotFoundException;
|
|
183
|
+
class EvaluationNonUniqueNameException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
184
|
+
name = "EvaluationNonUniqueNameException";
|
|
185
|
+
$fault = "client";
|
|
186
|
+
type;
|
|
187
|
+
constructor(opts) {
|
|
188
|
+
super({
|
|
189
|
+
name: "EvaluationNonUniqueNameException",
|
|
190
|
+
$fault: "client",
|
|
191
|
+
...opts,
|
|
192
|
+
});
|
|
193
|
+
Object.setPrototypeOf(this, EvaluationNonUniqueNameException.prototype);
|
|
194
|
+
this.type = opts.type;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
exports.EvaluationNonUniqueNameException = EvaluationNonUniqueNameException;
|
|
198
|
+
class IntentNonUniqueNameException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
199
|
+
name = "IntentNonUniqueNameException";
|
|
200
|
+
$fault = "client";
|
|
201
|
+
type;
|
|
202
|
+
constructor(opts) {
|
|
203
|
+
super({
|
|
204
|
+
name: "IntentNonUniqueNameException",
|
|
205
|
+
$fault: "client",
|
|
206
|
+
...opts,
|
|
207
|
+
});
|
|
208
|
+
Object.setPrototypeOf(this, IntentNonUniqueNameException.prototype);
|
|
209
|
+
this.type = opts.type;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
exports.IntentNonUniqueNameException = IntentNonUniqueNameException;
|
|
213
|
+
class ProfileNonUniqueNameException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
214
|
+
name = "ProfileNonUniqueNameException";
|
|
215
|
+
$fault = "client";
|
|
216
|
+
type;
|
|
217
|
+
constructor(opts) {
|
|
218
|
+
super({
|
|
219
|
+
name: "ProfileNonUniqueNameException",
|
|
220
|
+
$fault: "client",
|
|
221
|
+
...opts,
|
|
222
|
+
});
|
|
223
|
+
Object.setPrototypeOf(this, ProfileNonUniqueNameException.prototype);
|
|
224
|
+
this.type = opts.type;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
exports.ProfileNonUniqueNameException = ProfileNonUniqueNameException;
|
|
228
|
+
class EvaluationInUseException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
229
|
+
name = "EvaluationInUseException";
|
|
230
|
+
$fault = "client";
|
|
231
|
+
type;
|
|
232
|
+
constructor(opts) {
|
|
233
|
+
super({
|
|
234
|
+
name: "EvaluationInUseException",
|
|
235
|
+
$fault: "client",
|
|
236
|
+
...opts,
|
|
237
|
+
});
|
|
238
|
+
Object.setPrototypeOf(this, EvaluationInUseException.prototype);
|
|
239
|
+
this.type = opts.type;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
exports.EvaluationInUseException = EvaluationInUseException;
|
|
243
|
+
class EvaluationNotFoundException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
244
|
+
name = "EvaluationNotFoundException";
|
|
245
|
+
$fault = "client";
|
|
246
|
+
type;
|
|
247
|
+
constructor(opts) {
|
|
248
|
+
super({
|
|
249
|
+
name: "EvaluationNotFoundException",
|
|
250
|
+
$fault: "client",
|
|
251
|
+
...opts,
|
|
252
|
+
});
|
|
253
|
+
Object.setPrototypeOf(this, EvaluationNotFoundException.prototype);
|
|
254
|
+
this.type = opts.type;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
exports.EvaluationNotFoundException = EvaluationNotFoundException;
|
|
258
|
+
class IntentInUseException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
259
|
+
name = "IntentInUseException";
|
|
260
|
+
$fault = "client";
|
|
261
|
+
type;
|
|
262
|
+
constructor(opts) {
|
|
263
|
+
super({
|
|
264
|
+
name: "IntentInUseException",
|
|
265
|
+
$fault: "client",
|
|
266
|
+
...opts,
|
|
267
|
+
});
|
|
268
|
+
Object.setPrototypeOf(this, IntentInUseException.prototype);
|
|
269
|
+
this.type = opts.type;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
exports.IntentInUseException = IntentInUseException;
|
|
273
|
+
class IntentNotFoundException extends WilmaCopilotServiceException_1.WilmaCopilotServiceException {
|
|
274
|
+
name = "IntentNotFoundException";
|
|
275
|
+
$fault = "client";
|
|
276
|
+
type;
|
|
277
|
+
constructor(opts) {
|
|
278
|
+
super({
|
|
279
|
+
name: "IntentNotFoundException",
|
|
280
|
+
$fault: "client",
|
|
281
|
+
...opts,
|
|
282
|
+
});
|
|
283
|
+
Object.setPrototypeOf(this, IntentNotFoundException.prototype);
|
|
284
|
+
this.type = opts.type;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
exports.IntentNotFoundException = IntentNotFoundException;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const client_1 = require("@aws-sdk/core/client");
|
|
8
|
+
const client_2 = require("@smithy/core/client");
|
|
9
|
+
const config_1 = require("@smithy/core/config");
|
|
10
|
+
const retry_1 = require("@smithy/core/retry");
|
|
11
|
+
const serde_1 = require("@smithy/core/serde");
|
|
12
|
+
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
13
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
14
|
+
const getRuntimeConfig = (config) => {
|
|
15
|
+
const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
|
|
16
|
+
const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
|
|
17
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
18
|
+
return {
|
|
19
|
+
...clientSharedValues,
|
|
20
|
+
...config,
|
|
21
|
+
runtime: "browser",
|
|
22
|
+
defaultsMode,
|
|
23
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
|
|
24
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ clientVersion: package_json_1.default.version }),
|
|
25
|
+
maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
26
|
+
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
27
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
|
|
28
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
29
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const client_1 = require("@aws-sdk/core/client");
|
|
7
|
+
const client_2 = require("@smithy/core/client");
|
|
8
|
+
const config_1 = require("@smithy/core/config");
|
|
9
|
+
const retry_1 = require("@smithy/core/retry");
|
|
10
|
+
const serde_1 = require("@smithy/core/serde");
|
|
11
|
+
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
12
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
13
|
+
const getRuntimeConfig = (config) => {
|
|
14
|
+
(0, client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
15
|
+
const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
|
|
16
|
+
const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
|
|
17
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
18
|
+
const loaderConfig = {
|
|
19
|
+
profile: config?.profile,
|
|
20
|
+
logger: clientSharedValues.logger,
|
|
21
|
+
};
|
|
22
|
+
return {
|
|
23
|
+
...clientSharedValues,
|
|
24
|
+
...config,
|
|
25
|
+
runtime: "node",
|
|
26
|
+
defaultsMode,
|
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
|
|
28
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ clientVersion: package_json_1.default.version }),
|
|
29
|
+
maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
30
|
+
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
31
|
+
retryMode: config?.retryMode ??
|
|
32
|
+
(0, config_1.loadConfig)({
|
|
33
|
+
...retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
34
|
+
default: async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE,
|
|
35
|
+
}, config),
|
|
36
|
+
sha256: config?.sha256 ?? serde_1.Hash.bind(null, "sha256"),
|
|
37
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
38
|
+
userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(client_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
8
|
+
return {
|
|
9
|
+
...browserDefaults,
|
|
10
|
+
...config,
|
|
11
|
+
runtime: "react-native",
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
|
+
const client_1 = require("@smithy/core/client");
|
|
7
|
+
const protocols_2 = require("@smithy/core/protocols");
|
|
8
|
+
const serde_1 = require("@smithy/core/serde");
|
|
9
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
10
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
11
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
|
+
const getRuntimeConfig = (config) => {
|
|
13
|
+
return {
|
|
14
|
+
apiVersion: "v1",
|
|
15
|
+
base64Decoder: config?.base64Decoder ?? serde_1.fromBase64,
|
|
16
|
+
base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
|
|
17
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
18
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
19
|
+
extensions: config?.extensions ?? [],
|
|
20
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultWilmaCopilotHttpAuthSchemeProvider,
|
|
21
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
22
|
+
{
|
|
23
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
24
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"),
|
|
25
|
+
signer: new core_1.HttpBearerAuthSigner(),
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
logger: config?.logger ?? new client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
30
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
31
|
+
defaultNamespace: "wildix.wilma.copilot",
|
|
32
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
33
|
+
version: "v1",
|
|
34
|
+
serviceTarget: "WilmaCopilot",
|
|
35
|
+
},
|
|
36
|
+
urlParser: config?.urlParser ?? protocols_2.parseUrl,
|
|
37
|
+
utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
|
|
38
|
+
utf8Encoder: config?.utf8Encoder ?? serde_1.toUtf8,
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
const protocols_1 = require("@smithy/core/protocols");
|
|
6
|
+
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
7
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
8
|
+
const extensionConfiguration = Object.assign((0, client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocols_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
|
|
9
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
10
|
+
return Object.assign(runtimeConfig, (0, client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocols_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
|
|
11
|
+
};
|
|
12
|
+
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|