@wildix/xbees-users-client 1.0.37 → 1.0.39
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/UsersClient.js +4 -5
- package/dist-cjs/models/models_0.js +33 -21
- package/dist-cjs/protocols/Aws_restJson1.js +73 -116
- package/dist-cjs/runtimeConfig.browser.js +1 -1
- package/dist-cjs/runtimeConfig.js +4 -3
- package/dist-cjs/runtimeExtensions.js +2 -10
- package/dist-es/UsersClient.js +4 -5
- package/dist-es/models/models_0.js +28 -16
- package/dist-es/protocols/Aws_restJson1.js +6 -49
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +5 -4
- package/dist-es/runtimeExtensions.js +2 -10
- package/dist-types/UsersClient.d.ts +1 -1
- package/dist-types/commands/BatchGetUsersCommand.d.ts +12 -0
- package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +12 -0
- package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +12 -0
- package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +12 -0
- package/dist-types/commands/ChangeUserEmailCommand.d.ts +12 -0
- package/dist-types/commands/CreateBotApiKeyCommand.d.ts +16 -1
- package/dist-types/commands/CreateBotCommand.d.ts +19 -3
- package/dist-types/commands/CreateSystemBotCommand.d.ts +12 -0
- package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +12 -0
- package/dist-types/commands/DeleteBotCommand.d.ts +12 -0
- package/dist-types/commands/GetBotCallbackCommand.d.ts +13 -1
- package/dist-types/commands/GetBotCommand.d.ts +16 -1
- package/dist-types/commands/GetUserCommand.d.ts +12 -0
- package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +12 -0
- package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +12 -0
- package/dist-types/commands/GetUserPbxLinkSuggestionCommand.d.ts +12 -0
- package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +12 -0
- package/dist-types/commands/IntelligenceSearchCommand.d.ts +12 -0
- package/dist-types/commands/ListBotApiKeysCommand.d.ts +12 -0
- package/dist-types/commands/ListBotsCommand.d.ts +16 -1
- package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +12 -0
- package/dist-types/commands/QueryColleaguesCommand.d.ts +12 -0
- package/dist-types/commands/QueryUserCommand.d.ts +12 -0
- package/dist-types/commands/QueryUsersCommand.d.ts +12 -0
- package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +12 -0
- package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +12 -0
- package/dist-types/commands/UpdateBotCallbackCommand.d.ts +14 -2
- package/dist-types/commands/UpdateBotCommand.d.ts +19 -3
- package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +12 -0
- package/dist-types/commands/UploadPictureCommand.d.ts +12 -0
- package/dist-types/commands/UploadPictureV1Command.d.ts +12 -0
- package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +12 -0
- package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +179 -118
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +3 -2
- package/dist-types/runtimeConfig.native.d.ts +3 -2
- package/package.json +38 -34
package/dist-cjs/UsersClient.js
CHANGED
|
@@ -10,8 +10,11 @@ const smithy_client_1 = require("@smithy/smithy-client");
|
|
|
10
10
|
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
11
11
|
const smithy_utils_1 = require("@wildix/smithy-utils");
|
|
12
12
|
class UsersClient extends smithy_client_1.Client {
|
|
13
|
+
config;
|
|
13
14
|
constructor(...[configuration]) {
|
|
14
15
|
let _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
16
|
+
super(_config_0);
|
|
17
|
+
this.initConfig = _config_0;
|
|
15
18
|
let _config_1 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_0);
|
|
16
19
|
let _config_2 = (0, middleware_retry_1.resolveRetryConfig)(_config_1);
|
|
17
20
|
let _config_3 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_2, configuration?.extensions || []);
|
|
@@ -24,11 +27,7 @@ class UsersClient extends smithy_client_1.Client {
|
|
|
24
27
|
path: ''
|
|
25
28
|
};
|
|
26
29
|
};
|
|
27
|
-
const config = {
|
|
28
|
-
..._config_3,
|
|
29
|
-
endpoint,
|
|
30
|
-
};
|
|
31
|
-
super(config);
|
|
30
|
+
const config = { ..._config_3, endpoint };
|
|
32
31
|
this.config = config;
|
|
33
32
|
this.middlewareStack.add(smithy_utils_1.authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
34
33
|
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotLlmToolType = exports.BotLlmFunctionIntegration = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmEmbeddedToolType = exports.BotApiKeyNotFoundException = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
3
|
+
exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotLlmToolType = exports.BotLlmFunctionIntegration = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmEmbeddedToolType = exports.BotApiKeyNotFoundException = exports.BotIntegrationType = exports.BotAccess = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const UsersServiceException_1 = require("./UsersServiceException");
|
|
5
5
|
class ValidationException extends UsersServiceException_1.UsersServiceException {
|
|
6
|
+
name = "ValidationException";
|
|
7
|
+
$fault = "client";
|
|
6
8
|
constructor(opts) {
|
|
7
9
|
super({
|
|
8
10
|
name: "ValidationException",
|
|
9
11
|
$fault: "client",
|
|
10
12
|
...opts
|
|
11
13
|
});
|
|
12
|
-
this.name = "ValidationException";
|
|
13
|
-
this.$fault = "client";
|
|
14
14
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.ValidationException = ValidationException;
|
|
18
18
|
class ForbiddenException extends UsersServiceException_1.UsersServiceException {
|
|
19
|
+
name = "ForbiddenException";
|
|
20
|
+
$fault = "client";
|
|
19
21
|
constructor(opts) {
|
|
20
22
|
super({
|
|
21
23
|
name: "ForbiddenException",
|
|
22
24
|
$fault: "client",
|
|
23
25
|
...opts
|
|
24
26
|
});
|
|
25
|
-
this.name = "ForbiddenException";
|
|
26
|
-
this.$fault = "client";
|
|
27
27
|
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -69,15 +69,26 @@ exports.PbxColleaguesSearchStrategy = {
|
|
|
69
69
|
CONTAIN: "contain",
|
|
70
70
|
STARTS_WITH: "startsWith",
|
|
71
71
|
};
|
|
72
|
+
exports.BotAccess = {
|
|
73
|
+
EVERYBODY: "EVERYBODY",
|
|
74
|
+
ORGANIZATION: "ORGANIZATION",
|
|
75
|
+
};
|
|
76
|
+
exports.BotIntegrationType = {
|
|
77
|
+
DIALOGFLOW_CX: "DIALOGFLOW_CX",
|
|
78
|
+
LLM: "LLM",
|
|
79
|
+
OPEN_AI_ASSISTANT: "OPEN_AI_ASSISTANT",
|
|
80
|
+
SQS: "SQS",
|
|
81
|
+
WEBHOOK: "WEBHOOK",
|
|
82
|
+
};
|
|
72
83
|
class BotApiKeyNotFoundException extends UsersServiceException_1.UsersServiceException {
|
|
84
|
+
name = "BotApiKeyNotFoundException";
|
|
85
|
+
$fault = "client";
|
|
73
86
|
constructor(opts) {
|
|
74
87
|
super({
|
|
75
88
|
name: "BotApiKeyNotFoundException",
|
|
76
89
|
$fault: "client",
|
|
77
90
|
...opts
|
|
78
91
|
});
|
|
79
|
-
this.name = "BotApiKeyNotFoundException";
|
|
80
|
-
this.$fault = "client";
|
|
81
92
|
Object.setPrototypeOf(this, BotApiKeyNotFoundException.prototype);
|
|
82
93
|
}
|
|
83
94
|
}
|
|
@@ -85,6 +96,7 @@ exports.BotApiKeyNotFoundException = BotApiKeyNotFoundException;
|
|
|
85
96
|
exports.BotLlmEmbeddedToolType = {
|
|
86
97
|
DELEGATE: "DELEGATE",
|
|
87
98
|
HANDOVER: "HANDOVER",
|
|
99
|
+
SUGGESTIONS: "SUGGESTIONS",
|
|
88
100
|
};
|
|
89
101
|
var BotLlmFunctionIntegrationWebhookAuthorization;
|
|
90
102
|
(function (BotLlmFunctionIntegrationWebhookAuthorization) {
|
|
@@ -97,7 +109,7 @@ var BotLlmFunctionIntegrationWebhookAuthorization;
|
|
|
97
109
|
return visitor.oauth(value.oauth);
|
|
98
110
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
99
111
|
};
|
|
100
|
-
})(BotLlmFunctionIntegrationWebhookAuthorization
|
|
112
|
+
})(BotLlmFunctionIntegrationWebhookAuthorization || (exports.BotLlmFunctionIntegrationWebhookAuthorization = BotLlmFunctionIntegrationWebhookAuthorization = {}));
|
|
101
113
|
exports.BotLlmFunctionIntegrationMethod = {
|
|
102
114
|
DELETE: "delete",
|
|
103
115
|
GET: "get",
|
|
@@ -112,7 +124,7 @@ var BotLlmFunctionIntegration;
|
|
|
112
124
|
return visitor.webhook(value.webhook);
|
|
113
125
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
114
126
|
};
|
|
115
|
-
})(BotLlmFunctionIntegration
|
|
127
|
+
})(BotLlmFunctionIntegration || (exports.BotLlmFunctionIntegration = BotLlmFunctionIntegration = {}));
|
|
116
128
|
exports.BotLlmToolType = {
|
|
117
129
|
FUNCTION: "function",
|
|
118
130
|
};
|
|
@@ -131,55 +143,55 @@ var BotEndpoint;
|
|
|
131
143
|
return visitor.sqs(value.sqs);
|
|
132
144
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
133
145
|
};
|
|
134
|
-
})(BotEndpoint
|
|
146
|
+
})(BotEndpoint || (exports.BotEndpoint = BotEndpoint = {}));
|
|
135
147
|
class BotNotFoundException extends UsersServiceException_1.UsersServiceException {
|
|
148
|
+
name = "BotNotFoundException";
|
|
149
|
+
$fault = "client";
|
|
136
150
|
constructor(opts) {
|
|
137
151
|
super({
|
|
138
152
|
name: "BotNotFoundException",
|
|
139
153
|
$fault: "client",
|
|
140
154
|
...opts
|
|
141
155
|
});
|
|
142
|
-
this.name = "BotNotFoundException";
|
|
143
|
-
this.$fault = "client";
|
|
144
156
|
Object.setPrototypeOf(this, BotNotFoundException.prototype);
|
|
145
157
|
}
|
|
146
158
|
}
|
|
147
159
|
exports.BotNotFoundException = BotNotFoundException;
|
|
148
160
|
class BotSecretKeyNotValidException extends UsersServiceException_1.UsersServiceException {
|
|
161
|
+
name = "BotSecretKeyNotValidException";
|
|
162
|
+
$fault = "client";
|
|
149
163
|
constructor(opts) {
|
|
150
164
|
super({
|
|
151
165
|
name: "BotSecretKeyNotValidException",
|
|
152
166
|
$fault: "client",
|
|
153
167
|
...opts
|
|
154
168
|
});
|
|
155
|
-
this.name = "BotSecretKeyNotValidException";
|
|
156
|
-
this.$fault = "client";
|
|
157
169
|
Object.setPrototypeOf(this, BotSecretKeyNotValidException.prototype);
|
|
158
170
|
}
|
|
159
171
|
}
|
|
160
172
|
exports.BotSecretKeyNotValidException = BotSecretKeyNotValidException;
|
|
161
173
|
class UserCompanyNotValidException extends UsersServiceException_1.UsersServiceException {
|
|
174
|
+
name = "UserCompanyNotValidException";
|
|
175
|
+
$fault = "client";
|
|
162
176
|
constructor(opts) {
|
|
163
177
|
super({
|
|
164
178
|
name: "UserCompanyNotValidException",
|
|
165
179
|
$fault: "client",
|
|
166
180
|
...opts
|
|
167
181
|
});
|
|
168
|
-
this.name = "UserCompanyNotValidException";
|
|
169
|
-
this.$fault = "client";
|
|
170
182
|
Object.setPrototypeOf(this, UserCompanyNotValidException.prototype);
|
|
171
183
|
}
|
|
172
184
|
}
|
|
173
185
|
exports.UserCompanyNotValidException = UserCompanyNotValidException;
|
|
174
186
|
class UserNotFoundException extends UsersServiceException_1.UsersServiceException {
|
|
187
|
+
name = "UserNotFoundException";
|
|
188
|
+
$fault = "client";
|
|
175
189
|
constructor(opts) {
|
|
176
190
|
super({
|
|
177
191
|
name: "UserNotFoundException",
|
|
178
192
|
$fault: "client",
|
|
179
193
|
...opts
|
|
180
194
|
});
|
|
181
|
-
this.name = "UserNotFoundException";
|
|
182
|
-
this.$fault = "client";
|
|
183
195
|
Object.setPrototypeOf(this, UserNotFoundException.prototype);
|
|
184
196
|
}
|
|
185
197
|
}
|
|
@@ -195,16 +207,16 @@ var UserQuery;
|
|
|
195
207
|
return visitor.phone(value.phone);
|
|
196
208
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
197
209
|
};
|
|
198
|
-
})(UserQuery
|
|
210
|
+
})(UserQuery || (exports.UserQuery = UserQuery = {}));
|
|
199
211
|
class UserQueryPredicateNotMetException extends UsersServiceException_1.UsersServiceException {
|
|
212
|
+
name = "UserQueryPredicateNotMetException";
|
|
213
|
+
$fault = "client";
|
|
200
214
|
constructor(opts) {
|
|
201
215
|
super({
|
|
202
216
|
name: "UserQueryPredicateNotMetException",
|
|
203
217
|
$fault: "client",
|
|
204
218
|
...opts
|
|
205
219
|
});
|
|
206
|
-
this.name = "UserQueryPredicateNotMetException";
|
|
207
|
-
this.$fault = "client";
|
|
208
220
|
Object.setPrototypeOf(this, UserQueryPredicateNotMetException.prototype);
|
|
209
221
|
}
|
|
210
222
|
}
|