@wildix/xbees-users-client 1.2.9 → 1.3.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/dist-cjs/models/models_0.js +40 -1
- package/dist-cjs/protocols/Aws_restJson1.js +48 -0
- package/dist-es/models/models_0.js +36 -0
- package/dist-es/protocols/Aws_restJson1.js +49 -1
- package/dist-types/commands/CreateAnonymousSessionCommand.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +33 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkspaceNotFoundException = exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.IdentityNotFoundException = exports.IdentityAlreadyLinkedException = exports.WorkspaceType = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.CannotUnbindDefaultWorkspaceException = exports.CannotRemovePrimaryIdentityException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotLlmToolType = exports.BotLlmFunctionIntegration = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmEmbeddedToolType = exports.BotCapability = exports.BotToolVariableHandler = exports.BotCapabilityToolPipelineType = exports.BotApiKeyNotFoundException = exports.BotIntegrationType = exports.BotAccess = exports.AppType = exports.AnonymousEntryContext = exports.AccountNotFoundException = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
3
|
+
exports.WorkspaceNotFoundException = exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.IdentityNotFoundException = exports.IdentityAlreadyLinkedException = exports.WorkspaceType = exports.PublicAccessIsRestrictedException = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.CannotUnbindDefaultWorkspaceException = exports.CannotRemovePrimaryIdentityException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotLlmToolType = exports.BotLlmFunctionIntegration = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmEmbeddedToolType = exports.BotCapability = exports.BotToolVariableHandler = exports.BotCapabilityToolPipelineType = exports.BotApiKeyNotFoundException = exports.BotIntegrationType = exports.BotAccess = exports.AppType = exports.AnonymousEntryContext = exports.AccountNotFoundException = exports.WidgetNotFoundException = exports.ChannelNotFoundException = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
4
4
|
const UsersServiceException_1 = require("./UsersServiceException");
|
|
5
5
|
class ForbiddenException extends UsersServiceException_1.UsersServiceException {
|
|
6
6
|
name = "ForbiddenException";
|
|
@@ -69,6 +69,32 @@ exports.PbxColleaguesSearchStrategy = {
|
|
|
69
69
|
CONTAIN: "contain",
|
|
70
70
|
STARTS_WITH: "startsWith",
|
|
71
71
|
};
|
|
72
|
+
class ChannelNotFoundException extends UsersServiceException_1.UsersServiceException {
|
|
73
|
+
name = "ChannelNotFoundException";
|
|
74
|
+
$fault = "client";
|
|
75
|
+
constructor(opts) {
|
|
76
|
+
super({
|
|
77
|
+
name: "ChannelNotFoundException",
|
|
78
|
+
$fault: "client",
|
|
79
|
+
...opts
|
|
80
|
+
});
|
|
81
|
+
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.ChannelNotFoundException = ChannelNotFoundException;
|
|
85
|
+
class WidgetNotFoundException extends UsersServiceException_1.UsersServiceException {
|
|
86
|
+
name = "WidgetNotFoundException";
|
|
87
|
+
$fault = "client";
|
|
88
|
+
constructor(opts) {
|
|
89
|
+
super({
|
|
90
|
+
name: "WidgetNotFoundException",
|
|
91
|
+
$fault: "client",
|
|
92
|
+
...opts
|
|
93
|
+
});
|
|
94
|
+
Object.setPrototypeOf(this, WidgetNotFoundException.prototype);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.WidgetNotFoundException = WidgetNotFoundException;
|
|
72
98
|
class AccountNotFoundException extends UsersServiceException_1.UsersServiceException {
|
|
73
99
|
name = "AccountNotFoundException";
|
|
74
100
|
$fault = "client";
|
|
@@ -278,6 +304,19 @@ class UserNotFoundException extends UsersServiceException_1.UsersServiceExceptio
|
|
|
278
304
|
}
|
|
279
305
|
}
|
|
280
306
|
exports.UserNotFoundException = UserNotFoundException;
|
|
307
|
+
class PublicAccessIsRestrictedException extends UsersServiceException_1.UsersServiceException {
|
|
308
|
+
name = "PublicAccessIsRestrictedException";
|
|
309
|
+
$fault = "client";
|
|
310
|
+
constructor(opts) {
|
|
311
|
+
super({
|
|
312
|
+
name: "PublicAccessIsRestrictedException",
|
|
313
|
+
$fault: "client",
|
|
314
|
+
...opts
|
|
315
|
+
});
|
|
316
|
+
Object.setPrototypeOf(this, PublicAccessIsRestrictedException.prototype);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
exports.PublicAccessIsRestrictedException = PublicAccessIsRestrictedException;
|
|
281
320
|
exports.WorkspaceType = {
|
|
282
321
|
PERSONAL: "personal",
|
|
283
322
|
SUPPORT: "support",
|
|
@@ -1435,6 +1435,15 @@ const de_CommandError = async (output, context) => {
|
|
|
1435
1435
|
case "UserNotFoundException":
|
|
1436
1436
|
case "wildix.xbees.users#UserNotFoundException":
|
|
1437
1437
|
throw await de_UserNotFoundExceptionRes(parsedOutput, context);
|
|
1438
|
+
case "ChannelNotFoundException":
|
|
1439
|
+
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1440
|
+
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1441
|
+
case "PublicAccessIsRestrictedException":
|
|
1442
|
+
case "wildix.xbees.users#PublicAccessIsRestrictedException":
|
|
1443
|
+
throw await de_PublicAccessIsRestrictedExceptionRes(parsedOutput, context);
|
|
1444
|
+
case "WidgetNotFoundException":
|
|
1445
|
+
case "wildix.xbees.kite#WidgetNotFoundException":
|
|
1446
|
+
throw await de_WidgetNotFoundExceptionRes(parsedOutput, context);
|
|
1438
1447
|
case "BotNotFoundException":
|
|
1439
1448
|
case "wildix.xbees.users#BotNotFoundException":
|
|
1440
1449
|
throw await de_BotNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1501,6 +1510,32 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1501
1510
|
});
|
|
1502
1511
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1503
1512
|
};
|
|
1513
|
+
const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1514
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1515
|
+
const data = parsedOutput.body;
|
|
1516
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1517
|
+
'message': smithy_client_1.expectString,
|
|
1518
|
+
});
|
|
1519
|
+
Object.assign(contents, doc);
|
|
1520
|
+
const exception = new models_0_1.ChannelNotFoundException({
|
|
1521
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1522
|
+
...contents
|
|
1523
|
+
});
|
|
1524
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1525
|
+
};
|
|
1526
|
+
const de_WidgetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1527
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1528
|
+
const data = parsedOutput.body;
|
|
1529
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1530
|
+
'message': smithy_client_1.expectString,
|
|
1531
|
+
});
|
|
1532
|
+
Object.assign(contents, doc);
|
|
1533
|
+
const exception = new models_0_1.WidgetNotFoundException({
|
|
1534
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1535
|
+
...contents
|
|
1536
|
+
});
|
|
1537
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1538
|
+
};
|
|
1504
1539
|
const de_AccountNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1505
1540
|
const contents = (0, smithy_client_1.map)({});
|
|
1506
1541
|
const data = parsedOutput.body;
|
|
@@ -1605,6 +1640,19 @@ const de_IdentityNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1605
1640
|
});
|
|
1606
1641
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1607
1642
|
};
|
|
1643
|
+
const de_PublicAccessIsRestrictedExceptionRes = async (parsedOutput, context) => {
|
|
1644
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1645
|
+
const data = parsedOutput.body;
|
|
1646
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1647
|
+
'message': smithy_client_1.expectString,
|
|
1648
|
+
});
|
|
1649
|
+
Object.assign(contents, doc);
|
|
1650
|
+
const exception = new models_0_1.PublicAccessIsRestrictedException({
|
|
1651
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1652
|
+
...contents
|
|
1653
|
+
});
|
|
1654
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1655
|
+
};
|
|
1608
1656
|
const de_UserCompanyNotValidExceptionRes = async (parsedOutput, context) => {
|
|
1609
1657
|
const contents = (0, smithy_client_1.map)({});
|
|
1610
1658
|
const data = parsedOutput.body;
|
|
@@ -64,6 +64,30 @@ export const PbxColleaguesSearchStrategy = {
|
|
|
64
64
|
CONTAIN: "contain",
|
|
65
65
|
STARTS_WITH: "startsWith",
|
|
66
66
|
};
|
|
67
|
+
export class ChannelNotFoundException extends __BaseException {
|
|
68
|
+
name = "ChannelNotFoundException";
|
|
69
|
+
$fault = "client";
|
|
70
|
+
constructor(opts) {
|
|
71
|
+
super({
|
|
72
|
+
name: "ChannelNotFoundException",
|
|
73
|
+
$fault: "client",
|
|
74
|
+
...opts
|
|
75
|
+
});
|
|
76
|
+
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
export class WidgetNotFoundException extends __BaseException {
|
|
80
|
+
name = "WidgetNotFoundException";
|
|
81
|
+
$fault = "client";
|
|
82
|
+
constructor(opts) {
|
|
83
|
+
super({
|
|
84
|
+
name: "WidgetNotFoundException",
|
|
85
|
+
$fault: "client",
|
|
86
|
+
...opts
|
|
87
|
+
});
|
|
88
|
+
Object.setPrototypeOf(this, WidgetNotFoundException.prototype);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
67
91
|
export class AccountNotFoundException extends __BaseException {
|
|
68
92
|
name = "AccountNotFoundException";
|
|
69
93
|
$fault = "client";
|
|
@@ -265,6 +289,18 @@ export class UserNotFoundException extends __BaseException {
|
|
|
265
289
|
Object.setPrototypeOf(this, UserNotFoundException.prototype);
|
|
266
290
|
}
|
|
267
291
|
}
|
|
292
|
+
export class PublicAccessIsRestrictedException extends __BaseException {
|
|
293
|
+
name = "PublicAccessIsRestrictedException";
|
|
294
|
+
$fault = "client";
|
|
295
|
+
constructor(opts) {
|
|
296
|
+
super({
|
|
297
|
+
name: "PublicAccessIsRestrictedException",
|
|
298
|
+
$fault: "client",
|
|
299
|
+
...opts
|
|
300
|
+
});
|
|
301
|
+
Object.setPrototypeOf(this, PublicAccessIsRestrictedException.prototype);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
268
304
|
export const WorkspaceType = {
|
|
269
305
|
PERSONAL: "personal",
|
|
270
306
|
SUPPORT: "support",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UsersServiceException as __BaseException } from "../models/UsersServiceException";
|
|
2
|
-
import { AccountNotFoundException, BotApiKeyNotFoundException, BotEndpoint, BotLlmFunctionIntegration, BotNotFoundException, BotSecretKeyNotValidException, CannotRemovePrimaryIdentityException, CannotUnbindDefaultWorkspaceException, ForbiddenException, IdentityAlreadyLinkedException, IdentityNotFoundException, UserCompanyNotValidException, UserNotFoundException, UserQueryPredicateNotMetException, ValidationException, WorkspaceNotFoundException, } from "../models/models_0";
|
|
2
|
+
import { AccountNotFoundException, BotApiKeyNotFoundException, BotEndpoint, BotLlmFunctionIntegration, BotNotFoundException, BotSecretKeyNotValidException, CannotRemovePrimaryIdentityException, CannotUnbindDefaultWorkspaceException, ChannelNotFoundException, ForbiddenException, IdentityAlreadyLinkedException, IdentityNotFoundException, PublicAccessIsRestrictedException, UserCompanyNotValidException, UserNotFoundException, UserQueryPredicateNotMetException, ValidationException, WidgetNotFoundException, WorkspaceNotFoundException, } from "../models/models_0";
|
|
3
3
|
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
4
|
import { requestBuilder as rb } from "@smithy/core";
|
|
5
5
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
@@ -1341,6 +1341,15 @@ const de_CommandError = async (output, context) => {
|
|
|
1341
1341
|
case "UserNotFoundException":
|
|
1342
1342
|
case "wildix.xbees.users#UserNotFoundException":
|
|
1343
1343
|
throw await de_UserNotFoundExceptionRes(parsedOutput, context);
|
|
1344
|
+
case "ChannelNotFoundException":
|
|
1345
|
+
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
1346
|
+
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1347
|
+
case "PublicAccessIsRestrictedException":
|
|
1348
|
+
case "wildix.xbees.users#PublicAccessIsRestrictedException":
|
|
1349
|
+
throw await de_PublicAccessIsRestrictedExceptionRes(parsedOutput, context);
|
|
1350
|
+
case "WidgetNotFoundException":
|
|
1351
|
+
case "wildix.xbees.kite#WidgetNotFoundException":
|
|
1352
|
+
throw await de_WidgetNotFoundExceptionRes(parsedOutput, context);
|
|
1344
1353
|
case "BotNotFoundException":
|
|
1345
1354
|
case "wildix.xbees.users#BotNotFoundException":
|
|
1346
1355
|
throw await de_BotNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1407,6 +1416,32 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1407
1416
|
});
|
|
1408
1417
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1409
1418
|
};
|
|
1419
|
+
const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1420
|
+
const contents = map({});
|
|
1421
|
+
const data = parsedOutput.body;
|
|
1422
|
+
const doc = take(data, {
|
|
1423
|
+
'message': __expectString,
|
|
1424
|
+
});
|
|
1425
|
+
Object.assign(contents, doc);
|
|
1426
|
+
const exception = new ChannelNotFoundException({
|
|
1427
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1428
|
+
...contents
|
|
1429
|
+
});
|
|
1430
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1431
|
+
};
|
|
1432
|
+
const de_WidgetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1433
|
+
const contents = map({});
|
|
1434
|
+
const data = parsedOutput.body;
|
|
1435
|
+
const doc = take(data, {
|
|
1436
|
+
'message': __expectString,
|
|
1437
|
+
});
|
|
1438
|
+
Object.assign(contents, doc);
|
|
1439
|
+
const exception = new WidgetNotFoundException({
|
|
1440
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1441
|
+
...contents
|
|
1442
|
+
});
|
|
1443
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1444
|
+
};
|
|
1410
1445
|
const de_AccountNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1411
1446
|
const contents = map({});
|
|
1412
1447
|
const data = parsedOutput.body;
|
|
@@ -1511,6 +1546,19 @@ const de_IdentityNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1511
1546
|
});
|
|
1512
1547
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1513
1548
|
};
|
|
1549
|
+
const de_PublicAccessIsRestrictedExceptionRes = async (parsedOutput, context) => {
|
|
1550
|
+
const contents = map({});
|
|
1551
|
+
const data = parsedOutput.body;
|
|
1552
|
+
const doc = take(data, {
|
|
1553
|
+
'message': __expectString,
|
|
1554
|
+
});
|
|
1555
|
+
Object.assign(contents, doc);
|
|
1556
|
+
const exception = new PublicAccessIsRestrictedException({
|
|
1557
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1558
|
+
...contents
|
|
1559
|
+
});
|
|
1560
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1561
|
+
};
|
|
1514
1562
|
const de_UserCompanyNotValidExceptionRes = async (parsedOutput, context) => {
|
|
1515
1563
|
const contents = map({});
|
|
1516
1564
|
const data = parsedOutput.body;
|
|
@@ -57,6 +57,12 @@ declare const CreateAnonymousSessionCommand_base: {
|
|
|
57
57
|
* @see {@link CreateAnonymousSessionCommandOutput} for command's `response` shape.
|
|
58
58
|
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
59
59
|
*
|
|
60
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link WidgetNotFoundException} (client fault)
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link PublicAccessIsRestrictedException} (client fault)
|
|
65
|
+
*
|
|
60
66
|
* @throws {@link ForbiddenException} (client fault)
|
|
61
67
|
*
|
|
62
68
|
* @throws {@link ValidationException} (client fault)
|
|
@@ -227,6 +227,28 @@ export interface UserToInvite {
|
|
|
227
227
|
*/
|
|
228
228
|
colleague?: boolean | undefined;
|
|
229
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* @public
|
|
232
|
+
*/
|
|
233
|
+
export declare class ChannelNotFoundException extends __BaseException {
|
|
234
|
+
readonly name: "ChannelNotFoundException";
|
|
235
|
+
readonly $fault: "client";
|
|
236
|
+
/**
|
|
237
|
+
* @internal
|
|
238
|
+
*/
|
|
239
|
+
constructor(opts: __ExceptionOptionType<ChannelNotFoundException, __BaseException>);
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @public
|
|
243
|
+
*/
|
|
244
|
+
export declare class WidgetNotFoundException extends __BaseException {
|
|
245
|
+
readonly name: "WidgetNotFoundException";
|
|
246
|
+
readonly $fault: "client";
|
|
247
|
+
/**
|
|
248
|
+
* @internal
|
|
249
|
+
*/
|
|
250
|
+
constructor(opts: __ExceptionOptionType<WidgetNotFoundException, __BaseException>);
|
|
251
|
+
}
|
|
230
252
|
/**
|
|
231
253
|
* @public
|
|
232
254
|
*/
|
|
@@ -1275,6 +1297,17 @@ export interface CreateAnonymousSessionInput {
|
|
|
1275
1297
|
export interface CreateAnonymousSessionOutput {
|
|
1276
1298
|
syntheticEmail: string;
|
|
1277
1299
|
}
|
|
1300
|
+
/**
|
|
1301
|
+
* @public
|
|
1302
|
+
*/
|
|
1303
|
+
export declare class PublicAccessIsRestrictedException extends __BaseException {
|
|
1304
|
+
readonly name: "PublicAccessIsRestrictedException";
|
|
1305
|
+
readonly $fault: "client";
|
|
1306
|
+
/**
|
|
1307
|
+
* @internal
|
|
1308
|
+
*/
|
|
1309
|
+
constructor(opts: __ExceptionOptionType<PublicAccessIsRestrictedException, __BaseException>);
|
|
1310
|
+
}
|
|
1278
1311
|
/**
|
|
1279
1312
|
* @public
|
|
1280
1313
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-users-client",
|
|
3
3
|
"description": "@wildix/xbees-users-client client",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
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",
|