@wildix/xbees-users-client 1.2.9 → 1.3.1

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.
@@ -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.BotToolAnnotation = 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";
@@ -121,6 +147,20 @@ class BotApiKeyNotFoundException extends UsersServiceException_1.UsersServiceExc
121
147
  }
122
148
  }
123
149
  exports.BotApiKeyNotFoundException = BotApiKeyNotFoundException;
150
+ var BotToolAnnotation;
151
+ (function (BotToolAnnotation) {
152
+ BotToolAnnotation.visit = (value, visitor) => {
153
+ if (value.tag !== undefined)
154
+ return visitor.tag(value.tag);
155
+ if (value.comment !== undefined)
156
+ return visitor.comment(value.comment);
157
+ if (value.variables !== undefined)
158
+ return visitor.variables(value.variables);
159
+ if (value.result !== undefined)
160
+ return visitor.result(value.result);
161
+ return visitor._(value.$unknown[0], value.$unknown[1]);
162
+ };
163
+ })(BotToolAnnotation || (exports.BotToolAnnotation = BotToolAnnotation = {}));
124
164
  exports.BotCapabilityToolPipelineType = {
125
165
  ASYNC_REQUEST: "async_request",
126
166
  ASYNC_REQUEST_GUIDED: "async_request_guided",
@@ -278,6 +318,19 @@ class UserNotFoundException extends UsersServiceException_1.UsersServiceExceptio
278
318
  }
279
319
  }
280
320
  exports.UserNotFoundException = UserNotFoundException;
321
+ class PublicAccessIsRestrictedException extends UsersServiceException_1.UsersServiceException {
322
+ name = "PublicAccessIsRestrictedException";
323
+ $fault = "client";
324
+ constructor(opts) {
325
+ super({
326
+ name: "PublicAccessIsRestrictedException",
327
+ $fault: "client",
328
+ ...opts
329
+ });
330
+ Object.setPrototypeOf(this, PublicAccessIsRestrictedException.prototype);
331
+ }
332
+ }
333
+ exports.PublicAccessIsRestrictedException = PublicAccessIsRestrictedException;
281
334
  exports.WorkspaceType = {
282
335
  PERSONAL: "personal",
283
336
  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;
@@ -1685,6 +1733,7 @@ const se_BotEndpoint = (input, context) => {
1685
1733
  };
1686
1734
  const se_BotLlmEmbeddedTool = (input, context) => {
1687
1735
  return (0, smithy_client_1.take)(input, {
1736
+ 'annotations': smithy_client_1._json,
1688
1737
  'name': [],
1689
1738
  'parameters': _ => se_Document(_, context),
1690
1739
  'type': [],
@@ -1732,6 +1781,7 @@ const se_BotLlmFunctionIntegrationWebhook = (input, context) => {
1732
1781
  };
1733
1782
  const se_BotLlmTool = (input, context) => {
1734
1783
  return (0, smithy_client_1.take)(input, {
1784
+ 'annotations': smithy_client_1._json,
1735
1785
  'function': _ => se_BotLlmFunctionDefinition(_, context),
1736
1786
  'type': [],
1737
1787
  });
@@ -1787,6 +1837,7 @@ const de_BotEndpoint = (output, context) => {
1787
1837
  };
1788
1838
  const de_BotLlmEmbeddedTool = (output, context) => {
1789
1839
  return (0, smithy_client_1.take)(output, {
1840
+ 'annotations': smithy_client_1._json,
1790
1841
  'name': smithy_client_1.expectString,
1791
1842
  'parameters': (_) => de_Document(_, context),
1792
1843
  'type': smithy_client_1.expectString,
@@ -1837,6 +1888,7 @@ const de_BotLlmFunctionIntegrationWebhook = (output, context) => {
1837
1888
  };
1838
1889
  const de_BotLlmTool = (output, context) => {
1839
1890
  return (0, smithy_client_1.take)(output, {
1891
+ 'annotations': smithy_client_1._json,
1840
1892
  'function': (_) => de_BotLlmFunctionDefinition(_, context),
1841
1893
  'type': smithy_client_1.expectString,
1842
1894
  });
@@ -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";
@@ -114,6 +138,20 @@ export class BotApiKeyNotFoundException extends __BaseException {
114
138
  Object.setPrototypeOf(this, BotApiKeyNotFoundException.prototype);
115
139
  }
116
140
  }
141
+ export var BotToolAnnotation;
142
+ (function (BotToolAnnotation) {
143
+ BotToolAnnotation.visit = (value, visitor) => {
144
+ if (value.tag !== undefined)
145
+ return visitor.tag(value.tag);
146
+ if (value.comment !== undefined)
147
+ return visitor.comment(value.comment);
148
+ if (value.variables !== undefined)
149
+ return visitor.variables(value.variables);
150
+ if (value.result !== undefined)
151
+ return visitor.result(value.result);
152
+ return visitor._(value.$unknown[0], value.$unknown[1]);
153
+ };
154
+ })(BotToolAnnotation || (BotToolAnnotation = {}));
117
155
  export const BotCapabilityToolPipelineType = {
118
156
  ASYNC_REQUEST: "async_request",
119
157
  ASYNC_REQUEST_GUIDED: "async_request_guided",
@@ -265,6 +303,18 @@ export class UserNotFoundException extends __BaseException {
265
303
  Object.setPrototypeOf(this, UserNotFoundException.prototype);
266
304
  }
267
305
  }
306
+ export class PublicAccessIsRestrictedException extends __BaseException {
307
+ name = "PublicAccessIsRestrictedException";
308
+ $fault = "client";
309
+ constructor(opts) {
310
+ super({
311
+ name: "PublicAccessIsRestrictedException",
312
+ $fault: "client",
313
+ ...opts
314
+ });
315
+ Object.setPrototypeOf(this, PublicAccessIsRestrictedException.prototype);
316
+ }
317
+ }
268
318
  export const WorkspaceType = {
269
319
  PERSONAL: "personal",
270
320
  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;
@@ -1591,6 +1639,7 @@ const se_BotEndpoint = (input, context) => {
1591
1639
  };
1592
1640
  const se_BotLlmEmbeddedTool = (input, context) => {
1593
1641
  return take(input, {
1642
+ 'annotations': _json,
1594
1643
  'name': [],
1595
1644
  'parameters': _ => se_Document(_, context),
1596
1645
  'type': [],
@@ -1638,6 +1687,7 @@ const se_BotLlmFunctionIntegrationWebhook = (input, context) => {
1638
1687
  };
1639
1688
  const se_BotLlmTool = (input, context) => {
1640
1689
  return take(input, {
1690
+ 'annotations': _json,
1641
1691
  'function': _ => se_BotLlmFunctionDefinition(_, context),
1642
1692
  'type': [],
1643
1693
  });
@@ -1693,6 +1743,7 @@ const de_BotEndpoint = (output, context) => {
1693
1743
  };
1694
1744
  const de_BotLlmEmbeddedTool = (output, context) => {
1695
1745
  return take(output, {
1746
+ 'annotations': _json,
1696
1747
  'name': __expectString,
1697
1748
  'parameters': (_) => de_Document(_, context),
1698
1749
  'type': __expectString,
@@ -1743,6 +1794,7 @@ const de_BotLlmFunctionIntegrationWebhook = (output, context) => {
1743
1794
  };
1744
1795
  const de_BotLlmTool = (output, context) => {
1745
1796
  return take(output, {
1797
+ 'annotations': _json,
1746
1798
  'function': (_) => de_BotLlmFunctionDefinition(_, context),
1747
1799
  'type': __expectString,
1748
1800
  });
@@ -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)
@@ -55,6 +55,22 @@ declare const CreateBotCommand_base: {
55
55
  * type: "HANDOVER" || "DELEGATE" || "SUGGESTIONS", // required
56
56
  * name: "STRING_VALUE", // required
57
57
  * parameters: "DOCUMENT_VALUE",
58
+ * annotations: [ // BotToolAnnotationsList
59
+ * { // BotToolAnnotation Union: only one key present
60
+ * tag: { // BotToolTagAnnotation
61
+ * value: "STRING_VALUE",
62
+ * applyOnSuccess: true || false,
63
+ * applyOnFailure: true || false,
64
+ * },
65
+ * comment: { // BotToolCommentAnnotation
66
+ * value: "STRING_VALUE",
67
+ * applyOnSuccess: true || false,
68
+ * applyOnFailure: true || false,
69
+ * },
70
+ * variables: {},
71
+ * result: {},
72
+ * },
73
+ * ],
58
74
  * },
59
75
  * ],
60
76
  * tools: [ // BotLlmToolsList
@@ -95,6 +111,22 @@ declare const CreateBotCommand_base: {
95
111
  * },
96
112
  * },
97
113
  * },
114
+ * annotations: [
115
+ * {// Union: only one key present
116
+ * tag: {
117
+ * value: "STRING_VALUE",
118
+ * applyOnSuccess: true || false,
119
+ * applyOnFailure: true || false,
120
+ * },
121
+ * comment: {
122
+ * value: "STRING_VALUE",
123
+ * applyOnSuccess: true || false,
124
+ * applyOnFailure: true || false,
125
+ * },
126
+ * variables: {},
127
+ * result: {},
128
+ * },
129
+ * ],
98
130
  * },
99
131
  * ],
100
132
  * capabilities: [ // BotCapabilitiesList
@@ -119,10 +151,42 @@ declare const CreateBotCommand_base: {
119
151
  * type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
120
152
  * instructions: "STRING_VALUE",
121
153
  * },
154
+ * annotations: [
155
+ * {// Union: only one key present
156
+ * tag: {
157
+ * value: "STRING_VALUE",
158
+ * applyOnSuccess: true || false,
159
+ * applyOnFailure: true || false,
160
+ * },
161
+ * comment: {
162
+ * value: "STRING_VALUE",
163
+ * applyOnSuccess: true || false,
164
+ * applyOnFailure: true || false,
165
+ * },
166
+ * variables: {},
167
+ * result: {},
168
+ * },
169
+ * ],
122
170
  * },
123
171
  * kb: { // BotKnowledgeBase
124
172
  * knowledgeBaseId: "STRING_VALUE",
125
173
  * instructions: "STRING_VALUE",
174
+ * annotations: [
175
+ * {// Union: only one key present
176
+ * tag: {
177
+ * value: "STRING_VALUE",
178
+ * applyOnSuccess: true || false,
179
+ * applyOnFailure: true || false,
180
+ * },
181
+ * comment: {
182
+ * value: "STRING_VALUE",
183
+ * applyOnSuccess: true || false,
184
+ * applyOnFailure: true || false,
185
+ * },
186
+ * variables: {},
187
+ * result: {},
188
+ * },
189
+ * ],
126
190
  * },
127
191
  * },
128
192
  * ],
@@ -54,6 +54,22 @@ declare const GetBotCallbackCommand_base: {
54
54
  * // type: "HANDOVER" || "DELEGATE" || "SUGGESTIONS", // required
55
55
  * // name: "STRING_VALUE", // required
56
56
  * // parameters: "DOCUMENT_VALUE",
57
+ * // annotations: [ // BotToolAnnotationsList
58
+ * // { // BotToolAnnotation Union: only one key present
59
+ * // tag: { // BotToolTagAnnotation
60
+ * // value: "STRING_VALUE",
61
+ * // applyOnSuccess: true || false,
62
+ * // applyOnFailure: true || false,
63
+ * // },
64
+ * // comment: { // BotToolCommentAnnotation
65
+ * // value: "STRING_VALUE",
66
+ * // applyOnSuccess: true || false,
67
+ * // applyOnFailure: true || false,
68
+ * // },
69
+ * // variables: {},
70
+ * // result: {},
71
+ * // },
72
+ * // ],
57
73
  * // },
58
74
  * // ],
59
75
  * // tools: [ // BotLlmToolsList
@@ -94,6 +110,22 @@ declare const GetBotCallbackCommand_base: {
94
110
  * // },
95
111
  * // },
96
112
  * // },
113
+ * // annotations: [
114
+ * // {// Union: only one key present
115
+ * // tag: {
116
+ * // value: "STRING_VALUE",
117
+ * // applyOnSuccess: true || false,
118
+ * // applyOnFailure: true || false,
119
+ * // },
120
+ * // comment: {
121
+ * // value: "STRING_VALUE",
122
+ * // applyOnSuccess: true || false,
123
+ * // applyOnFailure: true || false,
124
+ * // },
125
+ * // variables: {},
126
+ * // result: {},
127
+ * // },
128
+ * // ],
97
129
  * // },
98
130
  * // ],
99
131
  * // capabilities: [ // BotCapabilitiesList
@@ -118,10 +150,42 @@ declare const GetBotCallbackCommand_base: {
118
150
  * // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
119
151
  * // instructions: "STRING_VALUE",
120
152
  * // },
153
+ * // annotations: [
154
+ * // {// Union: only one key present
155
+ * // tag: {
156
+ * // value: "STRING_VALUE",
157
+ * // applyOnSuccess: true || false,
158
+ * // applyOnFailure: true || false,
159
+ * // },
160
+ * // comment: {
161
+ * // value: "STRING_VALUE",
162
+ * // applyOnSuccess: true || false,
163
+ * // applyOnFailure: true || false,
164
+ * // },
165
+ * // variables: {},
166
+ * // result: {},
167
+ * // },
168
+ * // ],
121
169
  * // },
122
170
  * // kb: { // BotKnowledgeBase
123
171
  * // knowledgeBaseId: "STRING_VALUE",
124
172
  * // instructions: "STRING_VALUE",
173
+ * // annotations: [
174
+ * // {// Union: only one key present
175
+ * // tag: {
176
+ * // value: "STRING_VALUE",
177
+ * // applyOnSuccess: true || false,
178
+ * // applyOnFailure: true || false,
179
+ * // },
180
+ * // comment: {
181
+ * // value: "STRING_VALUE",
182
+ * // applyOnSuccess: true || false,
183
+ * // applyOnFailure: true || false,
184
+ * // },
185
+ * // variables: {},
186
+ * // result: {},
187
+ * // },
188
+ * // ],
125
189
  * // },
126
190
  * // },
127
191
  * // ],
@@ -50,6 +50,22 @@ declare const UpdateBotCallbackCommand_base: {
50
50
  * type: "HANDOVER" || "DELEGATE" || "SUGGESTIONS", // required
51
51
  * name: "STRING_VALUE", // required
52
52
  * parameters: "DOCUMENT_VALUE",
53
+ * annotations: [ // BotToolAnnotationsList
54
+ * { // BotToolAnnotation Union: only one key present
55
+ * tag: { // BotToolTagAnnotation
56
+ * value: "STRING_VALUE",
57
+ * applyOnSuccess: true || false,
58
+ * applyOnFailure: true || false,
59
+ * },
60
+ * comment: { // BotToolCommentAnnotation
61
+ * value: "STRING_VALUE",
62
+ * applyOnSuccess: true || false,
63
+ * applyOnFailure: true || false,
64
+ * },
65
+ * variables: {},
66
+ * result: {},
67
+ * },
68
+ * ],
53
69
  * },
54
70
  * ],
55
71
  * tools: [ // BotLlmToolsList
@@ -90,6 +106,22 @@ declare const UpdateBotCallbackCommand_base: {
90
106
  * },
91
107
  * },
92
108
  * },
109
+ * annotations: [
110
+ * {// Union: only one key present
111
+ * tag: {
112
+ * value: "STRING_VALUE",
113
+ * applyOnSuccess: true || false,
114
+ * applyOnFailure: true || false,
115
+ * },
116
+ * comment: {
117
+ * value: "STRING_VALUE",
118
+ * applyOnSuccess: true || false,
119
+ * applyOnFailure: true || false,
120
+ * },
121
+ * variables: {},
122
+ * result: {},
123
+ * },
124
+ * ],
93
125
  * },
94
126
  * ],
95
127
  * capabilities: [ // BotCapabilitiesList
@@ -114,10 +146,42 @@ declare const UpdateBotCallbackCommand_base: {
114
146
  * type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
115
147
  * instructions: "STRING_VALUE",
116
148
  * },
149
+ * annotations: [
150
+ * {// Union: only one key present
151
+ * tag: {
152
+ * value: "STRING_VALUE",
153
+ * applyOnSuccess: true || false,
154
+ * applyOnFailure: true || false,
155
+ * },
156
+ * comment: {
157
+ * value: "STRING_VALUE",
158
+ * applyOnSuccess: true || false,
159
+ * applyOnFailure: true || false,
160
+ * },
161
+ * variables: {},
162
+ * result: {},
163
+ * },
164
+ * ],
117
165
  * },
118
166
  * kb: { // BotKnowledgeBase
119
167
  * knowledgeBaseId: "STRING_VALUE",
120
168
  * instructions: "STRING_VALUE",
169
+ * annotations: [
170
+ * {// Union: only one key present
171
+ * tag: {
172
+ * value: "STRING_VALUE",
173
+ * applyOnSuccess: true || false,
174
+ * applyOnFailure: true || false,
175
+ * },
176
+ * comment: {
177
+ * value: "STRING_VALUE",
178
+ * applyOnSuccess: true || false,
179
+ * applyOnFailure: true || false,
180
+ * },
181
+ * variables: {},
182
+ * result: {},
183
+ * },
184
+ * ],
121
185
  * },
122
186
  * },
123
187
  * ],
@@ -160,6 +224,22 @@ declare const UpdateBotCallbackCommand_base: {
160
224
  * // type: "HANDOVER" || "DELEGATE" || "SUGGESTIONS", // required
161
225
  * // name: "STRING_VALUE", // required
162
226
  * // parameters: "DOCUMENT_VALUE",
227
+ * // annotations: [ // BotToolAnnotationsList
228
+ * // { // BotToolAnnotation Union: only one key present
229
+ * // tag: { // BotToolTagAnnotation
230
+ * // value: "STRING_VALUE",
231
+ * // applyOnSuccess: true || false,
232
+ * // applyOnFailure: true || false,
233
+ * // },
234
+ * // comment: { // BotToolCommentAnnotation
235
+ * // value: "STRING_VALUE",
236
+ * // applyOnSuccess: true || false,
237
+ * // applyOnFailure: true || false,
238
+ * // },
239
+ * // variables: {},
240
+ * // result: {},
241
+ * // },
242
+ * // ],
163
243
  * // },
164
244
  * // ],
165
245
  * // tools: [ // BotLlmToolsList
@@ -200,6 +280,22 @@ declare const UpdateBotCallbackCommand_base: {
200
280
  * // },
201
281
  * // },
202
282
  * // },
283
+ * // annotations: [
284
+ * // {// Union: only one key present
285
+ * // tag: {
286
+ * // value: "STRING_VALUE",
287
+ * // applyOnSuccess: true || false,
288
+ * // applyOnFailure: true || false,
289
+ * // },
290
+ * // comment: {
291
+ * // value: "STRING_VALUE",
292
+ * // applyOnSuccess: true || false,
293
+ * // applyOnFailure: true || false,
294
+ * // },
295
+ * // variables: {},
296
+ * // result: {},
297
+ * // },
298
+ * // ],
203
299
  * // },
204
300
  * // ],
205
301
  * // capabilities: [ // BotCapabilitiesList
@@ -224,10 +320,42 @@ declare const UpdateBotCallbackCommand_base: {
224
320
  * // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
225
321
  * // instructions: "STRING_VALUE",
226
322
  * // },
323
+ * // annotations: [
324
+ * // {// Union: only one key present
325
+ * // tag: {
326
+ * // value: "STRING_VALUE",
327
+ * // applyOnSuccess: true || false,
328
+ * // applyOnFailure: true || false,
329
+ * // },
330
+ * // comment: {
331
+ * // value: "STRING_VALUE",
332
+ * // applyOnSuccess: true || false,
333
+ * // applyOnFailure: true || false,
334
+ * // },
335
+ * // variables: {},
336
+ * // result: {},
337
+ * // },
338
+ * // ],
227
339
  * // },
228
340
  * // kb: { // BotKnowledgeBase
229
341
  * // knowledgeBaseId: "STRING_VALUE",
230
342
  * // instructions: "STRING_VALUE",
343
+ * // annotations: [
344
+ * // {// Union: only one key present
345
+ * // tag: {
346
+ * // value: "STRING_VALUE",
347
+ * // applyOnSuccess: true || false,
348
+ * // applyOnFailure: true || false,
349
+ * // },
350
+ * // comment: {
351
+ * // value: "STRING_VALUE",
352
+ * // applyOnSuccess: true || false,
353
+ * // applyOnFailure: true || false,
354
+ * // },
355
+ * // variables: {},
356
+ * // result: {},
357
+ * // },
358
+ * // ],
231
359
  * // },
232
360
  * // },
233
361
  * // ],
@@ -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
  */
@@ -709,6 +731,132 @@ export declare class BotApiKeyNotFoundException extends __BaseException {
709
731
  */
710
732
  constructor(opts: __ExceptionOptionType<BotApiKeyNotFoundException, __BaseException>);
711
733
  }
734
+ /**
735
+ * Comment annotation emitted after a tool completes.
736
+ * @public
737
+ */
738
+ export interface BotToolCommentAnnotation {
739
+ /**
740
+ * Static handlebars expression resolved against bot variables and helpers.
741
+ * @public
742
+ */
743
+ value?: string | undefined;
744
+ /**
745
+ * Apply when the tool succeeds.
746
+ * @public
747
+ */
748
+ applyOnSuccess?: boolean | undefined;
749
+ /**
750
+ * Apply when the tool fails.
751
+ * @public
752
+ */
753
+ applyOnFailure?: boolean | undefined;
754
+ }
755
+ /**
756
+ * Result annotation emitted after a tool completes.
757
+ * @public
758
+ */
759
+ export interface BotToolResultAnnotation {
760
+ }
761
+ /**
762
+ * Tag annotation emitted after a tool completes.
763
+ * @public
764
+ */
765
+ export interface BotToolTagAnnotation {
766
+ /**
767
+ * Static handlebars expression resolved against bot variables and helpers.
768
+ * @public
769
+ */
770
+ value?: string | undefined;
771
+ /**
772
+ * Apply when the tool succeeds.
773
+ * @public
774
+ */
775
+ applyOnSuccess?: boolean | undefined;
776
+ /**
777
+ * Apply when the tool fails.
778
+ * @public
779
+ */
780
+ applyOnFailure?: boolean | undefined;
781
+ }
782
+ /**
783
+ * Variables annotation emitted after a tool completes.
784
+ * @public
785
+ */
786
+ export interface BotToolVariablesAnnotation {
787
+ }
788
+ /**
789
+ * Configuration for annotations emitted after a tool completes. Tag and comment annotations can provide a handlebars value, while variables and result annotations opt into logging runtime data.
790
+ * @public
791
+ */
792
+ export type BotToolAnnotation = BotToolAnnotation.CommentMember | BotToolAnnotation.ResultMember | BotToolAnnotation.TagMember | BotToolAnnotation.VariablesMember | BotToolAnnotation.$UnknownMember;
793
+ /**
794
+ * @public
795
+ */
796
+ export declare namespace BotToolAnnotation {
797
+ /**
798
+ * Tag annotation emitted after a tool completes.
799
+ * @public
800
+ */
801
+ interface TagMember {
802
+ tag: BotToolTagAnnotation;
803
+ comment?: never;
804
+ variables?: never;
805
+ result?: never;
806
+ $unknown?: never;
807
+ }
808
+ /**
809
+ * Comment annotation emitted after a tool completes.
810
+ * @public
811
+ */
812
+ interface CommentMember {
813
+ tag?: never;
814
+ comment: BotToolCommentAnnotation;
815
+ variables?: never;
816
+ result?: never;
817
+ $unknown?: never;
818
+ }
819
+ /**
820
+ * Variables annotation emitted after a tool completes.
821
+ * @public
822
+ */
823
+ interface VariablesMember {
824
+ tag?: never;
825
+ comment?: never;
826
+ variables: BotToolVariablesAnnotation;
827
+ result?: never;
828
+ $unknown?: never;
829
+ }
830
+ /**
831
+ * Result annotation emitted after a tool completes.
832
+ * @public
833
+ */
834
+ interface ResultMember {
835
+ tag?: never;
836
+ comment?: never;
837
+ variables?: never;
838
+ result: BotToolResultAnnotation;
839
+ $unknown?: never;
840
+ }
841
+ /**
842
+ * @public
843
+ */
844
+ interface $UnknownMember {
845
+ tag?: never;
846
+ comment?: never;
847
+ variables?: never;
848
+ result?: never;
849
+ $unknown: [string, any];
850
+ }
851
+ interface Visitor<T> {
852
+ tag: (value: BotToolTagAnnotation) => T;
853
+ comment: (value: BotToolCommentAnnotation) => T;
854
+ variables: (value: BotToolVariablesAnnotation) => T;
855
+ result: (value: BotToolResultAnnotation) => T;
856
+ _: (name: string, value: any) => T;
857
+ }
858
+ const visit: <T>(value: BotToolAnnotation, visitor: Visitor<T>) => T;
859
+ }
712
860
  /**
713
861
  * @public
714
862
  */
@@ -719,6 +867,7 @@ export interface BotKnowledgeBase {
719
867
  * @public
720
868
  */
721
869
  instructions?: string | undefined;
870
+ annotations?: (BotToolAnnotation)[] | undefined;
722
871
  }
723
872
  /**
724
873
  * @public
@@ -831,6 +980,7 @@ export interface BotCapabilityTool {
831
980
  id: string;
832
981
  variables?: (BotToolVariable)[] | undefined;
833
982
  pipeline?: BotCapabilityToolPipeline | undefined;
983
+ annotations?: (BotToolAnnotation)[] | undefined;
834
984
  }
835
985
  /**
836
986
  * @public
@@ -889,6 +1039,7 @@ export interface BotLlmEmbeddedTool {
889
1039
  * @public
890
1040
  */
891
1041
  parameters?: __DocumentType | undefined;
1042
+ annotations?: (BotToolAnnotation)[] | undefined;
892
1043
  }
893
1044
  /**
894
1045
  * @public
@@ -1056,6 +1207,7 @@ export type BotLlmToolType = typeof BotLlmToolType[keyof typeof BotLlmToolType];
1056
1207
  export interface BotLlmTool {
1057
1208
  type: BotLlmToolType;
1058
1209
  function?: BotLlmFunctionDefinition | undefined;
1210
+ annotations?: (BotToolAnnotation)[] | undefined;
1059
1211
  }
1060
1212
  /**
1061
1213
  * @public
@@ -1275,6 +1427,17 @@ export interface CreateAnonymousSessionInput {
1275
1427
  export interface CreateAnonymousSessionOutput {
1276
1428
  syntheticEmail: string;
1277
1429
  }
1430
+ /**
1431
+ * @public
1432
+ */
1433
+ export declare class PublicAccessIsRestrictedException extends __BaseException {
1434
+ readonly name: "PublicAccessIsRestrictedException";
1435
+ readonly $fault: "client";
1436
+ /**
1437
+ * @internal
1438
+ */
1439
+ constructor(opts: __ExceptionOptionType<PublicAccessIsRestrictedException, __BaseException>);
1440
+ }
1278
1441
  /**
1279
1442
  * @public
1280
1443
  */
@@ -9,7 +9,7 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
11
11
  maxAttempts: number | import("@smithy/types").Provider<number>;
12
- requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
12
+ requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
13
13
  retryMode: string | import("@smithy/types").Provider<string>;
14
14
  sha256: import("@smithy/types").HashConstructor;
15
15
  streamCollector: import("@smithy/types").StreamCollector;
@@ -9,7 +9,7 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
11
11
  maxAttempts: number | import("@smithy/types").Provider<number>;
12
- requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
12
+ requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
13
13
  retryMode: string | import("@smithy/types").Provider<string>;
14
14
  sha256: import("@smithy/types").HashConstructor;
15
15
  streamCollector: import("@smithy/types").StreamCollector;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
7
7
  sha256: import("@smithy/types").HashConstructor;
8
8
  env?: "stage" | "stable" | "prod" | undefined;
9
9
  token: import("@wildix/smithy-utils").TokenProvider;
10
- requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
10
+ requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
11
11
  cacheMiddleware?: boolean | undefined;
12
12
  protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
13
13
  protocolSettings?: {
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.2.9",
4
+ "version": "1.3.1",
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",