@wildix/xbees-users-client 4.0.7 → 4.0.10

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/Users.js CHANGED
@@ -17,6 +17,7 @@ const GetAccountCommand_1 = require("./commands/GetAccountCommand");
17
17
  const GetAppVersionCommand_1 = require("./commands/GetAppVersionCommand");
18
18
  const GetBotCallbackCommand_1 = require("./commands/GetBotCallbackCommand");
19
19
  const GetBotCommand_1 = require("./commands/GetBotCommand");
20
+ const GetPhoneSignInCountriesCommand_1 = require("./commands/GetPhoneSignInCountriesCommand");
20
21
  const GetUserCommand_1 = require("./commands/GetUserCommand");
21
22
  const GetUserEmailNotificationsSettingsCommand_1 = require("./commands/GetUserEmailNotificationsSettingsCommand");
22
23
  const GetUserPbxLinkDataCommand_1 = require("./commands/GetUserPbxLinkDataCommand");
@@ -64,6 +65,7 @@ const commands = {
64
65
  GetAppVersionCommand: GetAppVersionCommand_1.GetAppVersionCommand,
65
66
  GetBotCommand: GetBotCommand_1.GetBotCommand,
66
67
  GetBotCallbackCommand: GetBotCallbackCommand_1.GetBotCallbackCommand,
68
+ GetPhoneSignInCountriesCommand: GetPhoneSignInCountriesCommand_1.GetPhoneSignInCountriesCommand,
67
69
  GetUserCommand: GetUserCommand_1.GetUserCommand,
68
70
  GetUserEmailNotificationsSettingsCommand: GetUserEmailNotificationsSettingsCommand_1.GetUserEmailNotificationsSettingsCommand,
69
71
  GetUserPbxLinkDataCommand: GetUserPbxLinkDataCommand_1.GetUserPbxLinkDataCommand,
@@ -53,6 +53,12 @@ const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
53
53
  break;
54
54
  }
55
55
  ;
56
+ case "GetPhoneSignInCountries":
57
+ {
58
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
59
+ break;
60
+ }
61
+ ;
56
62
  case "ToggleTranscriptionEmailNotificationsSubscription":
57
63
  {
58
64
  options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetPhoneSignInCountriesCommand = exports.$Command = void 0;
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class GetPhoneSignInCountriesCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
12
+ .m(function (Command, cs, config, o) {
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
14
+ })
15
+ .s("Users", "GetPhoneSignInCountries", {})
16
+ .n("UsersClient", "GetPhoneSignInCountriesCommand")
17
+ .sc(schemas_0_1.GetPhoneSignInCountries$)
18
+ .build() {
19
+ }
20
+ exports.GetPhoneSignInCountriesCommand = GetPhoneSignInCountriesCommand;
@@ -16,6 +16,7 @@ tslib_1.__exportStar(require("./GetAccountCommand"), exports);
16
16
  tslib_1.__exportStar(require("./GetAppVersionCommand"), exports);
17
17
  tslib_1.__exportStar(require("./GetBotCallbackCommand"), exports);
18
18
  tslib_1.__exportStar(require("./GetBotCommand"), exports);
19
+ tslib_1.__exportStar(require("./GetPhoneSignInCountriesCommand"), exports);
19
20
  tslib_1.__exportStar(require("./GetUserCommand"), exports);
20
21
  tslib_1.__exportStar(require("./GetUserEmailNotificationsSettingsCommand"), exports);
21
22
  tslib_1.__exportStar(require("./GetUserPbxLinkDataCommand"), exports);
@@ -1,6 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkspaceType = exports.BotLlmToolType = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmEmbeddedToolType = exports.BotCapabilityToolPipelineType = exports.BotIntegrationType = exports.BotAccess = exports.AppType = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.SearchThresholdValue = exports.SearchStrategy = exports.PbxLicenseType = void 0;
3
+ exports.WorkspaceType = exports.BotLlmToolType = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmEmbeddedToolType = exports.BotCapabilityToolPipelineType = exports.BotIntegrationType = exports.BotAccess = exports.AppType = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.SearchThresholdValue = exports.SearchStrategy = exports.BotSessionTimeoutMinutes = exports.PbxLicenseType = exports.PhoneCountry = void 0;
4
+ exports.PhoneCountry = {
5
+ AT: "AT",
6
+ BE: "BE",
7
+ CH: "CH",
8
+ CZ: "CZ",
9
+ DE: "DE",
10
+ ES: "ES",
11
+ FR: "FR",
12
+ GB: "GB",
13
+ IT: "IT",
14
+ NL: "NL",
15
+ PT: "PT",
16
+ UA: "UA",
17
+ };
4
18
  exports.PbxLicenseType = {
5
19
  BASIC: "basic",
6
20
  BUSINESS: "business",
@@ -8,6 +22,13 @@ exports.PbxLicenseType = {
8
22
  PREMIUM: "premium",
9
23
  WIZYCONF: "wizyconf",
10
24
  };
25
+ var BotSessionTimeoutMinutes;
26
+ (function (BotSessionTimeoutMinutes) {
27
+ BotSessionTimeoutMinutes[BotSessionTimeoutMinutes["MINUTES_15"] = 15] = "MINUTES_15";
28
+ BotSessionTimeoutMinutes[BotSessionTimeoutMinutes["MINUTES_30"] = 30] = "MINUTES_30";
29
+ BotSessionTimeoutMinutes[BotSessionTimeoutMinutes["HOUR_1"] = 60] = "HOUR_1";
30
+ BotSessionTimeoutMinutes[BotSessionTimeoutMinutes["HOURS_2"] = 120] = "HOURS_2";
31
+ })(BotSessionTimeoutMinutes || (exports.BotSessionTimeoutMinutes = BotSessionTimeoutMinutes = {}));
11
32
  exports.SearchStrategy = {
12
33
  BM25: "bm25",
13
34
  HYBRID: "hybrid",
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BotSqsEndpoint$ = exports.BotOpenAiAssistantEndpoint$ = exports.BotLlmTool$ = exports.BotLlmFunctionIntegrationWebhookHeader$ = exports.BotLlmFunctionIntegrationWebhookAuthorizationOAuth$ = exports.BotLlmFunctionIntegrationWebhookAuthorizationBearer$ = exports.BotLlmFunctionIntegrationWebhookAuthorizationBasic$ = exports.BotLlmFunctionIntegrationWebhook$ = exports.BotLlmFunctionDefinition$ = exports.BotLlmEndpoint$ = exports.BotLlmEmbeddedTool$ = exports.BotKnowledgeBase$ = exports.BotDialogflowCxEndpoint$ = exports.BotCapabilityToolPipeline$ = exports.BotCapabilityTool$ = exports.BotCallback$ = exports.BotApiKey$ = exports.Bot$ = exports.BatchGetUsersPbxLinkDataV1Output$ = exports.BatchGetUsersPbxLinkDataV1Input$ = exports.BatchGetUsersPbxLinkDataOutput$ = exports.BatchGetUsersPbxLinkDataInput$ = exports.BatchGetUsersOutput$ = exports.BatchGetUsersInput$ = exports.BatchGetUsersEmailNotificationsSettingsOutput$ = exports.BatchGetUsersEmailNotificationsSettingsInput$ = exports.Account$ = exports.UserToInvite$ = exports.User$ = exports.SkippedMember$ = exports.PbxColleague$ = exports.errorTypeRegistries = exports.WorkspaceNotFoundException$ = exports.UserQueryPredicateNotMetException$ = exports.UserNotFoundException$ = exports.UserCompanyNotValidException$ = exports.PublicAccessIsRestrictedException$ = exports.IdentityNotFoundException$ = exports.IdentityAlreadyLinkedException$ = exports.CannotUnbindDefaultWorkspaceException$ = exports.CannotRemovePrimaryIdentityException$ = exports.BotSecretKeyNotValidException$ = exports.BotNotFoundException$ = exports.BotApiKeyNotFoundException$ = exports.AccountNotFoundException$ = exports.WidgetNotFoundException$ = exports.ChannelNotFoundException$ = exports.ValidationException$ = exports.ForbiddenException$ = exports.UsersServiceException$ = void 0;
4
- exports.ListBotApiKeysInput$ = exports.LinkIdentityOutput$ = exports.LinkIdentityInput$ = exports.InviteOutput$ = exports.InviteInput$ = exports.IntelligenceSearchOutput$ = exports.IntelligenceSearchInput$ = exports.Identity$ = exports.GetUserPbxLinkSuggestionV1Output$ = exports.GetUserPbxLinkSuggestionV1Input$ = exports.GetUserPbxLinkSuggestionOutput$ = exports.GetUserPbxLinkSuggestionInput$ = exports.GetUserPbxLinkDataOutput$ = exports.GetUserPbxLinkDataInput$ = exports.GetUserOutput$ = exports.GetUserInput$ = exports.GetUserEmailNotificationsSettingsOutput$ = exports.GetUserEmailNotificationsSettingsInput$ = exports.GetBotOutput$ = exports.GetBotInput$ = exports.GetBotCallbackOutput$ = exports.GetBotCallbackInput$ = exports.GetAppVersionOutput$ = exports.GetAppVersionInput$ = exports.GetAccountOutput$ = exports.GetAccountInput$ = exports.DirectoryItem$ = exports.DeleteBotOutput$ = exports.DeleteBotInput$ = exports.DeleteBotApiKeyOutput$ = exports.DeleteBotApiKeyInput$ = exports.CreateSystemBotOutput$ = exports.CreateSystemBotInput$ = exports.CreateBotOutput$ = exports.CreateBotInput$ = exports.CreateBotApiKeyOutput$ = exports.CreateBotApiKeyInput$ = exports.CreateAnonymousSessionOutput$ = exports.CreateAnonymousSessionInput$ = exports.ChangeUserEmailOutput$ = exports.ChangeUserEmailInput$ = exports.BotWebhookEndpoint$ = exports.BotToolVariablesAnnotation$ = exports.BotToolVariablePredefinedHandler$ = exports.BotToolVariableGuidedHandler$ = exports.BotToolVariableAutoHandler$ = exports.BotToolVariable$ = exports.BotToolTagAnnotation$ = exports.BotToolResultAnnotation$ = exports.BotToolCommentAnnotation$ = void 0;
5
- exports.UserQueryPredicate$ = exports.UserPersonalInfo$ = exports.UserPbxServices$ = exports.UserPbxPersonalSettings$ = exports.UserPbxLinkSuggestion$ = exports.UserPbxLinkData$ = exports.UserPbxInfo$ = exports.UserPbxDialplanSettings$ = exports.UserEmailNotificationsSettings$ = exports.UploadPictureV1Output$ = exports.UploadPictureV1Input$ = exports.UploadPictureOutput$ = exports.UploadPictureInput$ = exports.UpdateWorkspaceOutput$ = exports.UpdateWorkspaceInput$ = exports.UpdateUserEmailNotificationsSettingsOutput$ = exports.UpdateUserEmailNotificationsSettingsInput$ = exports.UpdateBotOutput$ = exports.UpdateBotInput$ = exports.UpdateBotCallbackOutput$ = exports.UpdateBotCallbackInput$ = exports.UpdateAccountOutput$ = exports.UpdateAccountInput$ = exports.UnlinkWorkspaceOutput$ = exports.UnlinkWorkspaceInput$ = exports.UnlinkIdentityOutput$ = exports.UnlinkIdentityInput$ = exports.ToggleUnreadEmailNotificationsSubscriptionOutput$ = exports.ToggleUnreadEmailNotificationsSubscriptionInput$ = exports.ToggleTranscriptionEmailNotificationsSubscriptionOutput$ = exports.ToggleTranscriptionEmailNotificationsSubscriptionInput$ = exports.QueryUsersOutput$ = exports.QueryUsersInput$ = exports.QueryUserOutput$ = exports.QueryUserInput$ = exports.QueryColleaguesParameters$ = exports.QueryColleaguesOutputItem$ = exports.QueryColleaguesOutput$ = exports.QueryColleaguesInput$ = exports.PartialUpdateUserEmailNotificationsSettingsOutput$ = exports.PartialUpdateUserEmailNotificationsSettingsInput$ = exports.OldEmailData$ = exports.NewEmailData$ = exports.ListWorkspacesOutput$ = exports.ListWorkspacesInput$ = exports.ListIdentitiesOutput$ = exports.ListIdentitiesInput$ = exports.ListBotsOutput$ = exports.ListBotsInput$ = exports.ListBotApiKeysOutput$ = void 0;
6
- exports.UnlinkWorkspace$ = exports.UnlinkIdentity$ = exports.ToggleUnreadEmailNotificationsSubscription$ = exports.ToggleTranscriptionEmailNotificationsSubscription$ = exports.QueryUsers$ = exports.QueryUser$ = exports.QueryColleagues$ = exports.PartialUpdateUserEmailNotificationsSettings$ = exports.ListWorkspaces$ = exports.ListIdentities$ = exports.ListBots$ = exports.ListBotApiKeys$ = exports.LinkIdentity$ = exports.Invite$ = exports.IntelligenceSearch$ = exports.GetUserPbxLinkSuggestionV1$ = exports.GetUserPbxLinkSuggestion$ = exports.GetUserPbxLinkData$ = exports.GetUserEmailNotificationsSettings$ = exports.GetUser$ = exports.GetBotCallback$ = exports.GetBot$ = exports.GetAppVersion$ = exports.GetAccount$ = exports.DeleteBotApiKey$ = exports.DeleteBot$ = exports.CreateSystemBot$ = exports.CreateBotApiKey$ = exports.CreateBot$ = exports.CreateAnonymousSession$ = exports.ChangeUserEmail$ = exports.BatchGetUsersPbxLinkDataV1$ = exports.BatchGetUsersPbxLinkData$ = exports.BatchGetUsersEmailNotificationsSettings$ = exports.BatchGetUsers$ = exports.UserQuery$ = exports.BotToolVariableHandler$ = exports.BotToolAnnotation$ = exports.BotLlmFunctionIntegrationWebhookAuthorization$ = exports.BotLlmFunctionIntegration$ = exports.BotEndpoint$ = exports.BotCapability$ = exports.AnonymousEntryContext$ = exports.Workspace$ = exports.VerifyIdentityOutput$ = exports.VerifyIdentityInput$ = exports.VerifyBotSecretKeyV1Output$ = exports.VerifyBotSecretKeyV1Input$ = exports.VerifyBotSecretKeyOutput$ = exports.VerifyBotSecretKeyInput$ = void 0;
7
- exports.VerifyIdentity$ = exports.VerifyBotSecretKeyV1$ = exports.VerifyBotSecretKey$ = exports.UploadPictureV1$ = exports.UploadPicture$ = exports.UpdateWorkspace$ = exports.UpdateUserEmailNotificationsSettings$ = exports.UpdateBotCallback$ = exports.UpdateBot$ = exports.UpdateAccount$ = void 0;
4
+ exports.LinkIdentityOutput$ = exports.LinkIdentityInput$ = exports.InviteOutput$ = exports.InviteInput$ = exports.IntelligenceSearchOutput$ = exports.IntelligenceSearchInput$ = exports.Identity$ = exports.GetUserPbxLinkSuggestionV1Output$ = exports.GetUserPbxLinkSuggestionV1Input$ = exports.GetUserPbxLinkSuggestionOutput$ = exports.GetUserPbxLinkSuggestionInput$ = exports.GetUserPbxLinkDataOutput$ = exports.GetUserPbxLinkDataInput$ = exports.GetUserOutput$ = exports.GetUserInput$ = exports.GetUserEmailNotificationsSettingsOutput$ = exports.GetUserEmailNotificationsSettingsInput$ = exports.GetPhoneSignInCountriesOutput$ = exports.GetBotOutput$ = exports.GetBotInput$ = exports.GetBotCallbackOutput$ = exports.GetBotCallbackInput$ = exports.GetAppVersionOutput$ = exports.GetAppVersionInput$ = exports.GetAccountOutput$ = exports.GetAccountInput$ = exports.DirectoryItem$ = exports.DeleteBotOutput$ = exports.DeleteBotInput$ = exports.DeleteBotApiKeyOutput$ = exports.DeleteBotApiKeyInput$ = exports.CreateSystemBotOutput$ = exports.CreateSystemBotInput$ = exports.CreateBotOutput$ = exports.CreateBotInput$ = exports.CreateBotApiKeyOutput$ = exports.CreateBotApiKeyInput$ = exports.CreateAnonymousSessionOutput$ = exports.CreateAnonymousSessionInput$ = exports.ChangeUserEmailOutput$ = exports.ChangeUserEmailInput$ = exports.BotWebhookEndpoint$ = exports.BotToolVariablesAnnotation$ = exports.BotToolVariablePredefinedHandler$ = exports.BotToolVariableGuidedHandler$ = exports.BotToolVariableAutoHandler$ = exports.BotToolVariable$ = exports.BotToolTagAnnotation$ = exports.BotToolResultAnnotation$ = exports.BotToolCommentAnnotation$ = void 0;
5
+ exports.UserPersonalInfo$ = exports.UserPbxServices$ = exports.UserPbxPersonalSettings$ = exports.UserPbxLinkSuggestion$ = exports.UserPbxLinkData$ = exports.UserPbxInfo$ = exports.UserPbxDialplanSettings$ = exports.UserEmailNotificationsSettings$ = exports.UploadPictureV1Output$ = exports.UploadPictureV1Input$ = exports.UploadPictureOutput$ = exports.UploadPictureInput$ = exports.UpdateWorkspaceOutput$ = exports.UpdateWorkspaceInput$ = exports.UpdateUserEmailNotificationsSettingsOutput$ = exports.UpdateUserEmailNotificationsSettingsInput$ = exports.UpdateBotOutput$ = exports.UpdateBotInput$ = exports.UpdateBotCallbackOutput$ = exports.UpdateBotCallbackInput$ = exports.UpdateAccountOutput$ = exports.UpdateAccountInput$ = exports.UnlinkWorkspaceOutput$ = exports.UnlinkWorkspaceInput$ = exports.UnlinkIdentityOutput$ = exports.UnlinkIdentityInput$ = exports.ToggleUnreadEmailNotificationsSubscriptionOutput$ = exports.ToggleUnreadEmailNotificationsSubscriptionInput$ = exports.ToggleTranscriptionEmailNotificationsSubscriptionOutput$ = exports.ToggleTranscriptionEmailNotificationsSubscriptionInput$ = exports.QueryUsersOutput$ = exports.QueryUsersInput$ = exports.QueryUserOutput$ = exports.QueryUserInput$ = exports.QueryColleaguesParameters$ = exports.QueryColleaguesOutputItem$ = exports.QueryColleaguesOutput$ = exports.QueryColleaguesInput$ = exports.PartialUpdateUserEmailNotificationsSettingsOutput$ = exports.PartialUpdateUserEmailNotificationsSettingsInput$ = exports.OldEmailData$ = exports.NewEmailData$ = exports.ListWorkspacesOutput$ = exports.ListWorkspacesInput$ = exports.ListIdentitiesOutput$ = exports.ListIdentitiesInput$ = exports.ListBotsOutput$ = exports.ListBotsInput$ = exports.ListBotApiKeysOutput$ = exports.ListBotApiKeysInput$ = void 0;
6
+ exports.ToggleUnreadEmailNotificationsSubscription$ = exports.ToggleTranscriptionEmailNotificationsSubscription$ = exports.QueryUsers$ = exports.QueryUser$ = exports.QueryColleagues$ = exports.PartialUpdateUserEmailNotificationsSettings$ = exports.ListWorkspaces$ = exports.ListIdentities$ = exports.ListBots$ = exports.ListBotApiKeys$ = exports.LinkIdentity$ = exports.Invite$ = exports.IntelligenceSearch$ = exports.GetUserPbxLinkSuggestionV1$ = exports.GetUserPbxLinkSuggestion$ = exports.GetUserPbxLinkData$ = exports.GetUserEmailNotificationsSettings$ = exports.GetUser$ = exports.GetPhoneSignInCountries$ = exports.GetBotCallback$ = exports.GetBot$ = exports.GetAppVersion$ = exports.GetAccount$ = exports.DeleteBotApiKey$ = exports.DeleteBot$ = exports.CreateSystemBot$ = exports.CreateBotApiKey$ = exports.CreateBot$ = exports.CreateAnonymousSession$ = exports.ChangeUserEmail$ = exports.BatchGetUsersPbxLinkDataV1$ = exports.BatchGetUsersPbxLinkData$ = exports.BatchGetUsersEmailNotificationsSettings$ = exports.BatchGetUsers$ = exports.UserQuery$ = exports.BotToolVariableHandler$ = exports.BotToolAnnotation$ = exports.BotLlmFunctionIntegrationWebhookAuthorization$ = exports.BotLlmFunctionIntegration$ = exports.BotEndpoint$ = exports.BotCapability$ = exports.AnonymousEntryContext$ = exports.Workspace$ = exports.VerifyIdentityOutput$ = exports.VerifyIdentityInput$ = exports.VerifyBotSecretKeyV1Output$ = exports.VerifyBotSecretKeyV1Input$ = exports.VerifyBotSecretKeyOutput$ = exports.VerifyBotSecretKeyInput$ = exports.UserQueryPredicate$ = void 0;
7
+ exports.VerifyIdentity$ = exports.VerifyBotSecretKeyV1$ = exports.VerifyBotSecretKey$ = exports.UploadPictureV1$ = exports.UploadPicture$ = exports.UpdateWorkspace$ = exports.UpdateUserEmailNotificationsSettings$ = exports.UpdateBotCallback$ = exports.UpdateBot$ = exports.UpdateAccount$ = exports.UnlinkWorkspace$ = exports.UnlinkIdentity$ = void 0;
8
8
  const _A = "Account";
9
9
  const _AEC = "AnonymousEntryContext";
10
10
  const _ANFE = "AccountNotFoundException";
@@ -103,6 +103,8 @@ const _GBCI = "GetBotCallbackInput";
103
103
  const _GBCO = "GetBotCallbackOutput";
104
104
  const _GBI = "GetBotInput";
105
105
  const _GBO = "GetBotOutput";
106
+ const _GPSIC = "GetPhoneSignInCountries";
107
+ const _GPSICO = "GetPhoneSignInCountriesOutput";
106
108
  const _GU = "GetUser";
107
109
  const _GUENS = "GetUserEmailNotificationsSettings";
108
110
  const _GUENSI = "GetUserEmailNotificationsSettingsInput";
@@ -267,7 +269,8 @@ const _col = "colleague";
267
269
  const _coll = "colleagues";
268
270
  const _com = "comment";
269
271
  const _con = "context";
270
- const _cou = "count";
272
+ const _cou = "countries";
273
+ const _coun = "count";
271
274
  const _cr = "credentials";
272
275
  const _d = "dialplan";
273
276
  const _dC = "dialogflowCx";
@@ -373,6 +376,7 @@ const _sL = "searchLimit";
373
376
  const _sP = "sipPassword";
374
377
  const _sS = "searchStrategy";
375
378
  const _sT = "searchThreshold";
379
+ const _sTM = "sessionTimeoutMinutes";
376
380
  const _sU = "streamUser";
377
381
  const _sc = "scope";
378
382
  const _se = "searchable";
@@ -538,6 +542,7 @@ exports.errorTypeRegistries = [
538
542
  n2_registry,
539
543
  n3_registry,
540
544
  ];
545
+ var __Unit = "unit";
541
546
  exports.PbxColleague$ = [3, n4, _PC,
542
547
  0,
543
548
  [_i, _ex, _pD, _p, _r, _gN, _gD, _l, _d, _fD, _pi, _lT, _j, _n, _lo, _oP, _mP, _fN, _em, _de, _sI],
@@ -605,8 +610,8 @@ exports.BatchGetUsersPbxLinkDataV1Output$ = [3, n3, _BGUPLDVO,
605
610
  ];
606
611
  exports.Bot$ = [3, n3, _B,
607
612
  0,
608
- [_n, _i, _iT, _iAKC, _cA, _ca, _pi, _se, _a, _gI, _up],
609
- [0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0], 5
613
+ [_n, _i, _iT, _iAKC, _cA, _ca, _pi, _se, _a, _gI, _sTM, _up],
614
+ [0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 1, 0], 5
610
615
  ];
611
616
  exports.BotApiKey$ = [3, n3, _BAK,
612
617
  0,
@@ -770,8 +775,8 @@ exports.CreateBotApiKeyOutput$ = [3, n3, _CBAKO,
770
775
  ];
771
776
  exports.CreateBotInput$ = [3, n3, _CBI,
772
777
  0,
773
- [_n, _cal, _ca, _pi, _se, _a, _gI, _co],
774
- [0, () => exports.BotCallback$, 0, 0, 2, 0, 0, [0, { [_hQ]: _co }]], 2
778
+ [_n, _cal, _ca, _pi, _se, _a, _gI, _sTM, _co],
779
+ [0, () => exports.BotCallback$, 0, 0, 2, 0, 0, 1, [0, { [_hQ]: _co }]], 2
775
780
  ];
776
781
  exports.CreateBotOutput$ = [3, n3, _CBO,
777
782
  0,
@@ -853,6 +858,11 @@ exports.GetBotOutput$ = [3, n3, _GBO,
853
858
  [_b],
854
859
  [() => exports.Bot$], 1
855
860
  ];
861
+ exports.GetPhoneSignInCountriesOutput$ = [3, n3, _GPSICO,
862
+ 0,
863
+ [_cou],
864
+ [64 | 0], 1
865
+ ];
856
866
  exports.GetUserEmailNotificationsSettingsInput$ = [3, n3, _GUENSI,
857
867
  0,
858
868
  [_uIs],
@@ -1015,7 +1025,7 @@ exports.QueryColleaguesOutputItem$ = [3, n3, _QCOI,
1015
1025
  ];
1016
1026
  exports.QueryColleaguesParameters$ = [3, n3, _QCP,
1017
1027
  0,
1018
- [_i, _ex, _oP, _mP, _n, _em, _de, _sea, _sF, _sS, _so, _st, _cou, _di],
1028
+ [_i, _ex, _oP, _mP, _n, _em, _de, _sea, _sF, _sS, _so, _st, _coun, _di],
1019
1029
  [64 | 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0, 0, 64 | 0, 0, 64 | 0, 1, 1, 0]
1020
1030
  ];
1021
1031
  exports.QueryUserInput$ = [3, n3, _QUI,
@@ -1100,8 +1110,8 @@ exports.UpdateBotCallbackOutput$ = [3, n3, _UBCO,
1100
1110
  ];
1101
1111
  exports.UpdateBotInput$ = [3, n3, _UBI,
1102
1112
  0,
1103
- [_n, _bI, _ca, _pi, _se, _a, _gI, _co],
1104
- [0, [0, 1], 0, 0, 2, 0, 0, [0, { [_hQ]: _co }]], 2
1113
+ [_n, _bI, _ca, _pi, _se, _a, _gI, _sTM, _co],
1114
+ [0, [0, 1], 0, 0, 2, 0, 0, 1, [0, { [_hQ]: _co }]], 2
1105
1115
  ];
1106
1116
  exports.UpdateBotOutput$ = [3, n3, _UBO,
1107
1117
  0,
@@ -1270,6 +1280,7 @@ var DirectoryItems = [1, n3, _DIi,
1270
1280
  var IdentityList = [1, n3, _IL,
1271
1281
  0, () => exports.Identity$
1272
1282
  ];
1283
+ var PhoneCountryList = 64 | 0;
1273
1284
  var QueryColleaguesOutputItemList = [1, n3, _QCOIL,
1274
1285
  0, () => exports.QueryColleaguesOutputItem$
1275
1286
  ];
@@ -1373,6 +1384,9 @@ exports.GetBot$ = [9, n3, _GB,
1373
1384
  exports.GetBotCallback$ = [9, n3, _GBC,
1374
1385
  { [_ht]: ["GET", "/v2/users/bots/{botId}/callback", 200] }, () => exports.GetBotCallbackInput$, () => exports.GetBotCallbackOutput$
1375
1386
  ];
1387
+ exports.GetPhoneSignInCountries$ = [9, n3, _GPSIC,
1388
+ { [_ht]: ["GET", "/v2/users/phone-sign-in-countries", 200] }, () => __Unit, () => exports.GetPhoneSignInCountriesOutput$
1389
+ ];
1376
1390
  exports.GetUser$ = [9, n3, _GU,
1377
1391
  { [_ht]: ["GET", "/v2/users/cloud/{userId}", 200] }, () => exports.GetUserInput$, () => exports.GetUserOutput$
1378
1392
  ];
package/dist-es/Users.js CHANGED
@@ -14,6 +14,7 @@ import { GetAccountCommand, } from "./commands/GetAccountCommand";
14
14
  import { GetAppVersionCommand, } from "./commands/GetAppVersionCommand";
15
15
  import { GetBotCallbackCommand, } from "./commands/GetBotCallbackCommand";
16
16
  import { GetBotCommand } from "./commands/GetBotCommand";
17
+ import { GetPhoneSignInCountriesCommand, } from "./commands/GetPhoneSignInCountriesCommand";
17
18
  import { GetUserCommand } from "./commands/GetUserCommand";
18
19
  import { GetUserEmailNotificationsSettingsCommand, } from "./commands/GetUserEmailNotificationsSettingsCommand";
19
20
  import { GetUserPbxLinkDataCommand, } from "./commands/GetUserPbxLinkDataCommand";
@@ -61,6 +62,7 @@ const commands = {
61
62
  GetAppVersionCommand,
62
63
  GetBotCommand,
63
64
  GetBotCallbackCommand,
65
+ GetPhoneSignInCountriesCommand,
64
66
  GetUserCommand,
65
67
  GetUserEmailNotificationsSettingsCommand,
66
68
  GetUserPbxLinkDataCommand,
@@ -49,6 +49,12 @@ export const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
49
49
  break;
50
50
  }
51
51
  ;
52
+ case "GetPhoneSignInCountries":
53
+ {
54
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
55
+ break;
56
+ }
57
+ ;
52
58
  case "ToggleTranscriptionEmailNotificationsSubscription":
53
59
  {
54
60
  options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetPhoneSignInCountries$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetPhoneSignInCountriesCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("Users", "GetPhoneSignInCountries", {})
13
+ .n("UsersClient", "GetPhoneSignInCountriesCommand")
14
+ .sc(GetPhoneSignInCountries$)
15
+ .build() {
16
+ }
@@ -13,6 +13,7 @@ export * from "./GetAccountCommand";
13
13
  export * from "./GetAppVersionCommand";
14
14
  export * from "./GetBotCallbackCommand";
15
15
  export * from "./GetBotCommand";
16
+ export * from "./GetPhoneSignInCountriesCommand";
16
17
  export * from "./GetUserCommand";
17
18
  export * from "./GetUserEmailNotificationsSettingsCommand";
18
19
  export * from "./GetUserPbxLinkDataCommand";
@@ -1,3 +1,17 @@
1
+ export const PhoneCountry = {
2
+ AT: "AT",
3
+ BE: "BE",
4
+ CH: "CH",
5
+ CZ: "CZ",
6
+ DE: "DE",
7
+ ES: "ES",
8
+ FR: "FR",
9
+ GB: "GB",
10
+ IT: "IT",
11
+ NL: "NL",
12
+ PT: "PT",
13
+ UA: "UA",
14
+ };
1
15
  export const PbxLicenseType = {
2
16
  BASIC: "basic",
3
17
  BUSINESS: "business",
@@ -5,6 +19,13 @@ export const PbxLicenseType = {
5
19
  PREMIUM: "premium",
6
20
  WIZYCONF: "wizyconf",
7
21
  };
22
+ export var BotSessionTimeoutMinutes;
23
+ (function (BotSessionTimeoutMinutes) {
24
+ BotSessionTimeoutMinutes[BotSessionTimeoutMinutes["MINUTES_15"] = 15] = "MINUTES_15";
25
+ BotSessionTimeoutMinutes[BotSessionTimeoutMinutes["MINUTES_30"] = 30] = "MINUTES_30";
26
+ BotSessionTimeoutMinutes[BotSessionTimeoutMinutes["HOUR_1"] = 60] = "HOUR_1";
27
+ BotSessionTimeoutMinutes[BotSessionTimeoutMinutes["HOURS_2"] = 120] = "HOURS_2";
28
+ })(BotSessionTimeoutMinutes || (BotSessionTimeoutMinutes = {}));
8
29
  export const SearchStrategy = {
9
30
  BM25: "bm25",
10
31
  HYBRID: "hybrid",
@@ -96,6 +96,8 @@ const _GBCI = "GetBotCallbackInput";
96
96
  const _GBCO = "GetBotCallbackOutput";
97
97
  const _GBI = "GetBotInput";
98
98
  const _GBO = "GetBotOutput";
99
+ const _GPSIC = "GetPhoneSignInCountries";
100
+ const _GPSICO = "GetPhoneSignInCountriesOutput";
99
101
  const _GU = "GetUser";
100
102
  const _GUENS = "GetUserEmailNotificationsSettings";
101
103
  const _GUENSI = "GetUserEmailNotificationsSettingsInput";
@@ -260,7 +262,8 @@ const _col = "colleague";
260
262
  const _coll = "colleagues";
261
263
  const _com = "comment";
262
264
  const _con = "context";
263
- const _cou = "count";
265
+ const _cou = "countries";
266
+ const _coun = "count";
264
267
  const _cr = "credentials";
265
268
  const _d = "dialplan";
266
269
  const _dC = "dialogflowCx";
@@ -366,6 +369,7 @@ const _sL = "searchLimit";
366
369
  const _sP = "sipPassword";
367
370
  const _sS = "searchStrategy";
368
371
  const _sT = "searchThreshold";
372
+ const _sTM = "sessionTimeoutMinutes";
369
373
  const _sU = "streamUser";
370
374
  const _sc = "scope";
371
375
  const _se = "searchable";
@@ -531,6 +535,7 @@ export const errorTypeRegistries = [
531
535
  n2_registry,
532
536
  n3_registry,
533
537
  ];
538
+ var __Unit = "unit";
534
539
  export var PbxColleague$ = [3, n4, _PC,
535
540
  0,
536
541
  [_i, _ex, _pD, _p, _r, _gN, _gD, _l, _d, _fD, _pi, _lT, _j, _n, _lo, _oP, _mP, _fN, _em, _de, _sI],
@@ -598,8 +603,8 @@ export var BatchGetUsersPbxLinkDataV1Output$ = [3, n3, _BGUPLDVO,
598
603
  ];
599
604
  export var Bot$ = [3, n3, _B,
600
605
  0,
601
- [_n, _i, _iT, _iAKC, _cA, _ca, _pi, _se, _a, _gI, _up],
602
- [0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0], 5
606
+ [_n, _i, _iT, _iAKC, _cA, _ca, _pi, _se, _a, _gI, _sTM, _up],
607
+ [0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 1, 0], 5
603
608
  ];
604
609
  export var BotApiKey$ = [3, n3, _BAK,
605
610
  0,
@@ -763,8 +768,8 @@ export var CreateBotApiKeyOutput$ = [3, n3, _CBAKO,
763
768
  ];
764
769
  export var CreateBotInput$ = [3, n3, _CBI,
765
770
  0,
766
- [_n, _cal, _ca, _pi, _se, _a, _gI, _co],
767
- [0, () => BotCallback$, 0, 0, 2, 0, 0, [0, { [_hQ]: _co }]], 2
771
+ [_n, _cal, _ca, _pi, _se, _a, _gI, _sTM, _co],
772
+ [0, () => BotCallback$, 0, 0, 2, 0, 0, 1, [0, { [_hQ]: _co }]], 2
768
773
  ];
769
774
  export var CreateBotOutput$ = [3, n3, _CBO,
770
775
  0,
@@ -846,6 +851,11 @@ export var GetBotOutput$ = [3, n3, _GBO,
846
851
  [_b],
847
852
  [() => Bot$], 1
848
853
  ];
854
+ export var GetPhoneSignInCountriesOutput$ = [3, n3, _GPSICO,
855
+ 0,
856
+ [_cou],
857
+ [64 | 0], 1
858
+ ];
849
859
  export var GetUserEmailNotificationsSettingsInput$ = [3, n3, _GUENSI,
850
860
  0,
851
861
  [_uIs],
@@ -1008,7 +1018,7 @@ export var QueryColleaguesOutputItem$ = [3, n3, _QCOI,
1008
1018
  ];
1009
1019
  export var QueryColleaguesParameters$ = [3, n3, _QCP,
1010
1020
  0,
1011
- [_i, _ex, _oP, _mP, _n, _em, _de, _sea, _sF, _sS, _so, _st, _cou, _di],
1021
+ [_i, _ex, _oP, _mP, _n, _em, _de, _sea, _sF, _sS, _so, _st, _coun, _di],
1012
1022
  [64 | 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0, 0, 64 | 0, 0, 64 | 0, 1, 1, 0]
1013
1023
  ];
1014
1024
  export var QueryUserInput$ = [3, n3, _QUI,
@@ -1093,8 +1103,8 @@ export var UpdateBotCallbackOutput$ = [3, n3, _UBCO,
1093
1103
  ];
1094
1104
  export var UpdateBotInput$ = [3, n3, _UBI,
1095
1105
  0,
1096
- [_n, _bI, _ca, _pi, _se, _a, _gI, _co],
1097
- [0, [0, 1], 0, 0, 2, 0, 0, [0, { [_hQ]: _co }]], 2
1106
+ [_n, _bI, _ca, _pi, _se, _a, _gI, _sTM, _co],
1107
+ [0, [0, 1], 0, 0, 2, 0, 0, 1, [0, { [_hQ]: _co }]], 2
1098
1108
  ];
1099
1109
  export var UpdateBotOutput$ = [3, n3, _UBO,
1100
1110
  0,
@@ -1263,6 +1273,7 @@ var DirectoryItems = [1, n3, _DIi,
1263
1273
  var IdentityList = [1, n3, _IL,
1264
1274
  0, () => Identity$
1265
1275
  ];
1276
+ var PhoneCountryList = 64 | 0;
1266
1277
  var QueryColleaguesOutputItemList = [1, n3, _QCOIL,
1267
1278
  0, () => QueryColleaguesOutputItem$
1268
1279
  ];
@@ -1366,6 +1377,9 @@ export var GetBot$ = [9, n3, _GB,
1366
1377
  export var GetBotCallback$ = [9, n3, _GBC,
1367
1378
  { [_ht]: ["GET", "/v2/users/bots/{botId}/callback", 200] }, () => GetBotCallbackInput$, () => GetBotCallbackOutput$
1368
1379
  ];
1380
+ export var GetPhoneSignInCountries$ = [9, n3, _GPSIC,
1381
+ { [_ht]: ["GET", "/v2/users/phone-sign-in-countries", 200] }, () => __Unit, () => GetPhoneSignInCountriesOutput$
1382
+ ];
1369
1383
  export var GetUser$ = [9, n3, _GU,
1370
1384
  { [_ht]: ["GET", "/v2/users/cloud/{userId}", 200] }, () => GetUserInput$, () => GetUserOutput$
1371
1385
  ];
@@ -14,6 +14,7 @@ import { type GetAccountCommandInput, type GetAccountCommandOutput } from "./com
14
14
  import { type GetAppVersionCommandInput, type GetAppVersionCommandOutput } from "./commands/GetAppVersionCommand";
15
15
  import { type GetBotCallbackCommandInput, type GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
16
16
  import { type GetBotCommandInput, type GetBotCommandOutput } from "./commands/GetBotCommand";
17
+ import { type GetPhoneSignInCountriesCommandInput, type GetPhoneSignInCountriesCommandOutput } from "./commands/GetPhoneSignInCountriesCommand";
17
18
  import { type GetUserCommandInput, type GetUserCommandOutput } from "./commands/GetUserCommand";
18
19
  import { type GetUserEmailNotificationsSettingsCommandInput, type GetUserEmailNotificationsSettingsCommandOutput } from "./commands/GetUserEmailNotificationsSettingsCommand";
19
20
  import { type GetUserPbxLinkDataCommandInput, type GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
@@ -136,6 +137,13 @@ export interface Users {
136
137
  getBotCallback(args: GetBotCallbackCommandInput, options?: __HttpHandlerOptions): Promise<GetBotCallbackCommandOutput>;
137
138
  getBotCallback(args: GetBotCallbackCommandInput, cb: (err: any, data?: GetBotCallbackCommandOutput) => void): void;
138
139
  getBotCallback(args: GetBotCallbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBotCallbackCommandOutput) => void): void;
140
+ /**
141
+ * @see {@link GetPhoneSignInCountriesCommand}
142
+ */
143
+ getPhoneSignInCountries(): Promise<GetPhoneSignInCountriesCommandOutput>;
144
+ getPhoneSignInCountries(args: GetPhoneSignInCountriesCommandInput, options?: __HttpHandlerOptions): Promise<GetPhoneSignInCountriesCommandOutput>;
145
+ getPhoneSignInCountries(args: GetPhoneSignInCountriesCommandInput, cb: (err: any, data?: GetPhoneSignInCountriesCommandOutput) => void): void;
146
+ getPhoneSignInCountries(args: GetPhoneSignInCountriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPhoneSignInCountriesCommandOutput) => void): void;
139
147
  /**
140
148
  * @see {@link GetUserCommand}
141
149
  */
@@ -20,6 +20,7 @@ import type { GetAccountCommandInput, GetAccountCommandOutput } from "./commands
20
20
  import type { GetAppVersionCommandInput, GetAppVersionCommandOutput } from "./commands/GetAppVersionCommand";
21
21
  import type { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
22
22
  import type { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
23
+ import type { GetPhoneSignInCountriesCommandInput, GetPhoneSignInCountriesCommandOutput } from "./commands/GetPhoneSignInCountriesCommand";
23
24
  import type { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
24
25
  import type { GetUserEmailNotificationsSettingsCommandInput, GetUserEmailNotificationsSettingsCommandOutput } from "./commands/GetUserEmailNotificationsSettingsCommand";
25
26
  import type { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
@@ -56,11 +57,11 @@ export { __Client };
56
57
  /**
57
58
  * @public
58
59
  */
59
- export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersEmailNotificationsSettingsCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateAnonymousSessionCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetAccountCommandInput | GetAppVersionCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserEmailNotificationsSettingsCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | IntelligenceSearchCommandInput | InviteCommandInput | LinkIdentityCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | ListIdentitiesCommandInput | ListWorkspacesCommandInput | PartialUpdateUserEmailNotificationsSettingsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | ToggleTranscriptionEmailNotificationsSubscriptionCommandInput | ToggleUnreadEmailNotificationsSubscriptionCommandInput | UnlinkIdentityCommandInput | UnlinkWorkspaceCommandInput | UpdateAccountCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UpdateUserEmailNotificationsSettingsCommandInput | UpdateWorkspaceCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput | VerifyIdentityCommandInput;
60
+ export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersEmailNotificationsSettingsCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateAnonymousSessionCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetAccountCommandInput | GetAppVersionCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetPhoneSignInCountriesCommandInput | GetUserCommandInput | GetUserEmailNotificationsSettingsCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | IntelligenceSearchCommandInput | InviteCommandInput | LinkIdentityCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | ListIdentitiesCommandInput | ListWorkspacesCommandInput | PartialUpdateUserEmailNotificationsSettingsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | ToggleTranscriptionEmailNotificationsSubscriptionCommandInput | ToggleUnreadEmailNotificationsSubscriptionCommandInput | UnlinkIdentityCommandInput | UnlinkWorkspaceCommandInput | UpdateAccountCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UpdateUserEmailNotificationsSettingsCommandInput | UpdateWorkspaceCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput | VerifyIdentityCommandInput;
60
61
  /**
61
62
  * @public
62
63
  */
63
- export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersEmailNotificationsSettingsCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateAnonymousSessionCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetAccountCommandOutput | GetAppVersionCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserEmailNotificationsSettingsCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | IntelligenceSearchCommandOutput | InviteCommandOutput | LinkIdentityCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | ListIdentitiesCommandOutput | ListWorkspacesCommandOutput | PartialUpdateUserEmailNotificationsSettingsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput | ToggleUnreadEmailNotificationsSubscriptionCommandOutput | UnlinkIdentityCommandOutput | UnlinkWorkspaceCommandOutput | UpdateAccountCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UpdateUserEmailNotificationsSettingsCommandOutput | UpdateWorkspaceCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput | VerifyIdentityCommandOutput;
64
+ export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersEmailNotificationsSettingsCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateAnonymousSessionCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetAccountCommandOutput | GetAppVersionCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetPhoneSignInCountriesCommandOutput | GetUserCommandOutput | GetUserEmailNotificationsSettingsCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | IntelligenceSearchCommandOutput | InviteCommandOutput | LinkIdentityCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | ListIdentitiesCommandOutput | ListWorkspacesCommandOutput | PartialUpdateUserEmailNotificationsSettingsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput | ToggleUnreadEmailNotificationsSubscriptionCommandOutput | UnlinkIdentityCommandOutput | UnlinkWorkspaceCommandOutput | UpdateAccountCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UpdateUserEmailNotificationsSettingsCommandOutput | UpdateWorkspaceCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput | VerifyIdentityCommandOutput;
64
65
  /**
65
66
  * @public
66
67
  */
@@ -51,6 +51,7 @@ declare const CreateBotApiKeyCommand_base: {
51
51
  * // searchable: true || false,
52
52
  * // access: "EVERYBODY" || "ORGANIZATION",
53
53
  * // groupId: "STRING_VALUE",
54
+ * // sessionTimeoutMinutes: 15 || 30 || 60 || 120,
54
55
  * // id: "STRING_VALUE", // required
55
56
  * // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
56
57
  * // integrationApiKeysCount: Number("int"), // required
@@ -43,6 +43,7 @@ declare const CreateBotCommand_base: {
43
43
  * searchable: true || false,
44
44
  * access: "EVERYBODY" || "ORGANIZATION",
45
45
  * groupId: "STRING_VALUE",
46
+ * sessionTimeoutMinutes: 15 || 30 || 60 || 120,
46
47
  * company: "STRING_VALUE",
47
48
  * callback: { // BotCallback
48
49
  * endpoint: { // BotEndpoint Union: only one key present
@@ -228,6 +229,7 @@ declare const CreateBotCommand_base: {
228
229
  * // searchable: true || false,
229
230
  * // access: "EVERYBODY" || "ORGANIZATION",
230
231
  * // groupId: "STRING_VALUE",
232
+ * // sessionTimeoutMinutes: 15 || 30 || 60 || 120,
231
233
  * // id: "STRING_VALUE", // required
232
234
  * // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
233
235
  * // integrationApiKeysCount: Number("int"), // required
@@ -50,6 +50,7 @@ declare const GetBotCommand_base: {
50
50
  * // searchable: true || false,
51
51
  * // access: "EVERYBODY" || "ORGANIZATION",
52
52
  * // groupId: "STRING_VALUE",
53
+ * // sessionTimeoutMinutes: 15 || 30 || 60 || 120,
53
54
  * // id: "STRING_VALUE", // required
54
55
  * // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
55
56
  * // integrationApiKeysCount: Number("int"), // required
@@ -0,0 +1,85 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { GetPhoneSignInCountriesOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetPhoneSignInCountriesCommand}.
14
+ */
15
+ export interface GetPhoneSignInCountriesCommandInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetPhoneSignInCountriesCommand}.
21
+ */
22
+ export interface GetPhoneSignInCountriesCommandOutput extends GetPhoneSignInCountriesOutput, __MetadataBearer {
23
+ }
24
+ declare const GetPhoneSignInCountriesCommand_base: {
25
+ new (input: GetPhoneSignInCountriesCommandInput): import("@smithy/core/client").CommandImpl<GetPhoneSignInCountriesCommandInput, GetPhoneSignInCountriesCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [GetPhoneSignInCountriesCommandInput]): import("@smithy/core/client").CommandImpl<GetPhoneSignInCountriesCommandInput, GetPhoneSignInCountriesCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Countries that phone sign-in supports - the PhoneCountry allowlist, whose single source of truth is
31
+ * wildix.shapes. Unauthenticated, because it is read before sign-in.
32
+ *
33
+ * Clients take the generated PhoneCountry enum at build time and do not need to call this, so the
34
+ * operation exists for two other reasons: it makes the enum reachable from the service, which is what
35
+ * puts it in the generated Users client at all, and it leaves the door open to serving the list
36
+ * dynamically later.
37
+ *
38
+ * @example
39
+ * Use a bare-bones client and the command you need to make an API call.
40
+ * ```javascript
41
+ * import { UsersClient, GetPhoneSignInCountriesCommand } from "@wildix/xbees-users-client"; // ES Modules import
42
+ * // const { UsersClient, GetPhoneSignInCountriesCommand } = require("@wildix/xbees-users-client"); // CommonJS import
43
+ * // import type { UsersClientConfig } from "@wildix/xbees-users-client";
44
+ * const config = {}; // type is UsersClientConfig
45
+ * const client = new UsersClient(config);
46
+ * const input = {};
47
+ * const command = new GetPhoneSignInCountriesCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // GetPhoneSignInCountriesOutput
50
+ * // countries: [ // PhoneCountryList // required
51
+ * // "IT" || "DE" || "FR" || "ES" || "GB" || "NL" || "BE" || "AT" || "CH" || "PT" || "UA" || "CZ",
52
+ * // ],
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param GetPhoneSignInCountriesCommandInput - {@link GetPhoneSignInCountriesCommandInput}
58
+ * @returns {@link GetPhoneSignInCountriesCommandOutput}
59
+ * @see {@link GetPhoneSignInCountriesCommandInput} for command's `input` shape.
60
+ * @see {@link GetPhoneSignInCountriesCommandOutput} for command's `response` shape.
61
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
62
+ *
63
+ * @throws {@link ForbiddenException} (client fault)
64
+ *
65
+ * @throws {@link ValidationException} (client fault)
66
+ *
67
+ * @throws {@link UsersServiceException}
68
+ * <p>Base exception class for all service exceptions from Users service.</p>
69
+ *
70
+ *
71
+ * @public
72
+ */
73
+ export declare class GetPhoneSignInCountriesCommand extends GetPhoneSignInCountriesCommand_base {
74
+ /** @internal type navigation helper, not in runtime. */
75
+ protected static __types: {
76
+ api: {
77
+ input: {};
78
+ output: GetPhoneSignInCountriesOutput;
79
+ };
80
+ sdk: {
81
+ input: GetPhoneSignInCountriesCommandInput;
82
+ output: GetPhoneSignInCountriesCommandOutput;
83
+ };
84
+ };
85
+ }
@@ -50,6 +50,7 @@ declare const ListBotsCommand_base: {
50
50
  * // searchable: true || false,
51
51
  * // access: "EVERYBODY" || "ORGANIZATION",
52
52
  * // groupId: "STRING_VALUE",
53
+ * // sessionTimeoutMinutes: 15 || 30 || 60 || 120,
53
54
  * // id: "STRING_VALUE", // required
54
55
  * // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
55
56
  * // integrationApiKeysCount: Number("int"), // required
@@ -43,6 +43,7 @@ declare const UpdateBotCommand_base: {
43
43
  * searchable: true || false,
44
44
  * access: "EVERYBODY" || "ORGANIZATION",
45
45
  * groupId: "STRING_VALUE",
46
+ * sessionTimeoutMinutes: 15 || 30 || 60 || 120,
46
47
  * company: "STRING_VALUE",
47
48
  * botId: "STRING_VALUE", // required
48
49
  * };
@@ -56,6 +57,7 @@ declare const UpdateBotCommand_base: {
56
57
  * // searchable: true || false,
57
58
  * // access: "EVERYBODY" || "ORGANIZATION",
58
59
  * // groupId: "STRING_VALUE",
60
+ * // sessionTimeoutMinutes: 15 || 30 || 60 || 120,
59
61
  * // id: "STRING_VALUE", // required
60
62
  * // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
61
63
  * // integrationApiKeysCount: Number("int"), // required
@@ -13,6 +13,7 @@ export * from "./GetAccountCommand";
13
13
  export * from "./GetAppVersionCommand";
14
14
  export * from "./GetBotCallbackCommand";
15
15
  export * from "./GetBotCommand";
16
+ export * from "./GetPhoneSignInCountriesCommand";
16
17
  export * from "./GetUserCommand";
17
18
  export * from "./GetUserEmailNotificationsSettingsCommand";
18
19
  export * from "./GetUserPbxLinkDataCommand";
@@ -1,3 +1,25 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const PhoneCountry: {
6
+ readonly AT: "AT";
7
+ readonly BE: "BE";
8
+ readonly CH: "CH";
9
+ readonly CZ: "CZ";
10
+ readonly DE: "DE";
11
+ readonly ES: "ES";
12
+ readonly FR: "FR";
13
+ readonly GB: "GB";
14
+ readonly IT: "IT";
15
+ readonly NL: "NL";
16
+ readonly PT: "PT";
17
+ readonly UA: "UA";
18
+ };
19
+ /**
20
+ * @public
21
+ */
22
+ export type PhoneCountry = (typeof PhoneCountry)[keyof typeof PhoneCountry];
1
23
  /**
2
24
  * @public
3
25
  * @enum
@@ -13,6 +35,12 @@ export declare const PbxLicenseType: {
13
35
  * @public
14
36
  */
15
37
  export type PbxLicenseType = (typeof PbxLicenseType)[keyof typeof PbxLicenseType];
38
+ export declare enum BotSessionTimeoutMinutes {
39
+ MINUTES_15 = 15,
40
+ MINUTES_30 = 30,
41
+ HOUR_1 = 60,
42
+ HOURS_2 = 120
43
+ }
16
44
  /**
17
45
  * @public
18
46
  * @enum
@@ -1,5 +1,5 @@
1
1
  import type { DocumentType as __DocumentType } from "@smithy/types";
2
- import type { AppType, BotAccess, BotCapabilityToolPipelineType, BotIntegrationType, BotLlmEmbeddedToolType, BotLlmFunctionIntegrationMethod, BotLlmToolType, GetPbxColleaguesDir, PbxColleagueRole, PbxColleaguesQueryField, PbxColleaguesSearchStrategy, PbxLicenseType, SearchStrategy, SearchThresholdValue, WorkspaceType } from "./enums";
2
+ import type { AppType, BotAccess, BotCapabilityToolPipelineType, BotIntegrationType, BotLlmEmbeddedToolType, BotLlmFunctionIntegrationMethod, BotLlmToolType, BotSessionTimeoutMinutes, GetPbxColleaguesDir, PbxColleagueRole, PbxColleaguesQueryField, PbxColleaguesSearchStrategy, PbxLicenseType, PhoneCountry, SearchStrategy, SearchThresholdValue, WorkspaceType } from "./enums";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -552,6 +552,11 @@ export interface Bot {
552
552
  * @public
553
553
  */
554
554
  groupId?: string | undefined;
555
+ /**
556
+ * Closes the chat session after this many minutes of inactivity. When omitted, the session closes at the end of the local day.
557
+ * @public
558
+ */
559
+ sessionTimeoutMinutes?: BotSessionTimeoutMinutes | undefined;
555
560
  id: string;
556
561
  integrationType: BotIntegrationType;
557
562
  integrationApiKeysCount: number;
@@ -1206,6 +1211,11 @@ export interface CreateBotInput {
1206
1211
  * @public
1207
1212
  */
1208
1213
  groupId?: string | undefined;
1214
+ /**
1215
+ * Closes the chat session after this many minutes of inactivity. When omitted, the session closes at the end of the local day.
1216
+ * @public
1217
+ */
1218
+ sessionTimeoutMinutes?: BotSessionTimeoutMinutes | undefined;
1209
1219
  company?: string | undefined;
1210
1220
  callback: BotCallback;
1211
1221
  }
@@ -1340,6 +1350,16 @@ export interface GetBotCallbackInput {
1340
1350
  export interface GetBotCallbackOutput {
1341
1351
  callback: BotCallback;
1342
1352
  }
1353
+ /**
1354
+ * @public
1355
+ */
1356
+ export interface GetPhoneSignInCountriesOutput {
1357
+ /**
1358
+ * Supported ISO 3166-1 alpha-2 country codes.
1359
+ * @public
1360
+ */
1361
+ countries: PhoneCountry[];
1362
+ }
1343
1363
  /**
1344
1364
  * @public
1345
1365
  */
@@ -1953,6 +1973,11 @@ export interface UpdateBotInput {
1953
1973
  * @public
1954
1974
  */
1955
1975
  groupId?: string | undefined;
1976
+ /**
1977
+ * Closes the chat session after this many minutes of inactivity. When omitted, the session closes at the end of the local day.
1978
+ * @public
1979
+ */
1980
+ sessionTimeoutMinutes?: BotSessionTimeoutMinutes | undefined;
1956
1981
  company?: string | undefined;
1957
1982
  botId: string;
1958
1983
  }
@@ -87,6 +87,7 @@ export declare var GetBotCallbackInput$: StaticStructureSchema;
87
87
  export declare var GetBotCallbackOutput$: StaticStructureSchema;
88
88
  export declare var GetBotInput$: StaticStructureSchema;
89
89
  export declare var GetBotOutput$: StaticStructureSchema;
90
+ export declare var GetPhoneSignInCountriesOutput$: StaticStructureSchema;
90
91
  export declare var GetUserEmailNotificationsSettingsInput$: StaticStructureSchema;
91
92
  export declare var GetUserEmailNotificationsSettingsOutput$: StaticStructureSchema;
92
93
  export declare var GetUserInput$: StaticStructureSchema;
@@ -185,6 +186,7 @@ export declare var GetAccount$: StaticOperationSchema;
185
186
  export declare var GetAppVersion$: StaticOperationSchema;
186
187
  export declare var GetBot$: StaticOperationSchema;
187
188
  export declare var GetBotCallback$: StaticOperationSchema;
189
+ export declare var GetPhoneSignInCountries$: StaticOperationSchema;
188
190
  export declare var GetUser$: StaticOperationSchema;
189
191
  export declare var GetUserEmailNotificationsSettings$: StaticOperationSchema;
190
192
  export declare var GetUserPbxLinkData$: StaticOperationSchema;
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": "4.0.7",
4
+ "version": "4.0.10",
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",