@wildix/xbees-users-client 4.0.7 → 4.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/models/enums.js +8 -1
- package/dist-cjs/models/errors.js +14 -1
- package/dist-cjs/schemas/schemas_0.js +30 -22
- package/dist-es/models/enums.js +7 -0
- package/dist-es/models/errors.js +12 -0
- package/dist-es/schemas/schemas_0.js +26 -18
- package/dist-types/commands/CreateBotApiKeyCommand.d.ts +1 -0
- package/dist-types/commands/CreateBotCommand.d.ts +5 -0
- package/dist-types/commands/GetAccountCommand.d.ts +91 -1
- package/dist-types/commands/GetBotCommand.d.ts +1 -0
- package/dist-types/commands/ListBotsCommand.d.ts +1 -0
- package/dist-types/commands/UpdateBotCommand.d.ts +2 -0
- package/dist-types/models/enums.d.ts +6 -0
- package/dist-types/models/errors.d.ts +11 -0
- package/dist-types/models/models_0.d.ts +84 -62
- package/dist-types/runtimeConfig.browser.d.ts +0 -1
- package/dist-types/runtimeConfig.d.ts +0 -1
- package/dist-types/runtimeConfig.native.d.ts +0 -1
- package/dist-types/schemas/schemas_0.d.ts +1 -0
- package/package.json +1 -1
package/dist-cjs/models/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 = void 0;
|
|
4
4
|
exports.PbxLicenseType = {
|
|
5
5
|
BASIC: "basic",
|
|
6
6
|
BUSINESS: "business",
|
|
@@ -8,6 +8,13 @@ exports.PbxLicenseType = {
|
|
|
8
8
|
PREMIUM: "premium",
|
|
9
9
|
WIZYCONF: "wizyconf",
|
|
10
10
|
};
|
|
11
|
+
var BotSessionTimeoutMinutes;
|
|
12
|
+
(function (BotSessionTimeoutMinutes) {
|
|
13
|
+
BotSessionTimeoutMinutes[BotSessionTimeoutMinutes["MINUTES_15"] = 15] = "MINUTES_15";
|
|
14
|
+
BotSessionTimeoutMinutes[BotSessionTimeoutMinutes["MINUTES_30"] = 30] = "MINUTES_30";
|
|
15
|
+
BotSessionTimeoutMinutes[BotSessionTimeoutMinutes["HOUR_1"] = 60] = "HOUR_1";
|
|
16
|
+
BotSessionTimeoutMinutes[BotSessionTimeoutMinutes["HOURS_2"] = 120] = "HOURS_2";
|
|
17
|
+
})(BotSessionTimeoutMinutes || (exports.BotSessionTimeoutMinutes = BotSessionTimeoutMinutes = {}));
|
|
11
18
|
exports.SearchStrategy = {
|
|
12
19
|
BM25: "bm25",
|
|
13
20
|
HYBRID: "hybrid",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkspaceNotFoundException = exports.UserQueryPredicateNotMetException = exports.IdentityNotFoundException = exports.IdentityAlreadyLinkedException = exports.PublicAccessIsRestrictedException = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.CannotUnbindDefaultWorkspaceException = exports.CannotRemovePrimaryIdentityException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotApiKeyNotFoundException = exports.AccountNotFoundException = exports.WidgetNotFoundException = exports.ChannelNotFoundException = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
3
|
+
exports.WorkspaceNotFoundException = exports.UserQueryPredicateNotMetException = exports.IdentityNotFoundException = exports.IdentityAlreadyLinkedException = exports.PublicAccessIsRestrictedException = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.CannotUnbindDefaultWorkspaceException = exports.CannotRemovePrimaryIdentityException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotApiKeyNotFoundException = exports.BotAlreadyExistsException = exports.AccountNotFoundException = exports.WidgetNotFoundException = exports.ChannelNotFoundException = 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";
|
|
@@ -67,6 +67,19 @@ class AccountNotFoundException extends UsersServiceException_1.UsersServiceExcep
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
exports.AccountNotFoundException = AccountNotFoundException;
|
|
70
|
+
class BotAlreadyExistsException extends UsersServiceException_1.UsersServiceException {
|
|
71
|
+
name = "BotAlreadyExistsException";
|
|
72
|
+
$fault = "client";
|
|
73
|
+
constructor(opts) {
|
|
74
|
+
super({
|
|
75
|
+
name: "BotAlreadyExistsException",
|
|
76
|
+
$fault: "client",
|
|
77
|
+
...opts,
|
|
78
|
+
});
|
|
79
|
+
Object.setPrototypeOf(this, BotAlreadyExistsException.prototype);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.BotAlreadyExistsException = BotAlreadyExistsException;
|
|
70
83
|
class BotApiKeyNotFoundException extends UsersServiceException_1.UsersServiceException {
|
|
71
84
|
name = "BotApiKeyNotFoundException";
|
|
72
85
|
$fault = "client";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.VerifyIdentity$ = exports.VerifyBotSecretKeyV1$ = exports.VerifyBotSecretKey$ = exports.UploadPictureV1$ = exports.UploadPicture$ = exports.UpdateWorkspace$ = exports.UpdateUserEmailNotificationsSettings$ = exports.UpdateBotCallback$ = exports.UpdateBot$ = exports.UpdateAccount$ = void 0;
|
|
3
|
+
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.BotAlreadyExistsException$ = exports.AccountNotFoundException$ = exports.WidgetNotFoundException$ = exports.ChannelNotFoundException$ = exports.ValidationException$ = exports.ForbiddenException$ = exports.UsersServiceException$ = 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.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$ = exports.BotSqsEndpoint$ = 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.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$ = 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$ = void 0;
|
|
8
8
|
const _A = "Account";
|
|
9
9
|
const _AEC = "AnonymousEntryContext";
|
|
10
10
|
const _ANFE = "AccountNotFoundException";
|
|
11
11
|
const _B = "Bot";
|
|
12
|
+
const _BAEE = "BotAlreadyExistsException";
|
|
12
13
|
const _BAK = "BotApiKey";
|
|
13
14
|
const _BAKL = "BotApiKeysList";
|
|
14
15
|
const _BAKNFE = "BotApiKeyNotFoundException";
|
|
@@ -304,8 +305,8 @@ const _ht = "http";
|
|
|
304
305
|
const _i = "id";
|
|
305
306
|
const _iAKC = "integrationApiKeysCount";
|
|
306
307
|
const _iT = "integrationType";
|
|
307
|
-
const _id = "
|
|
308
|
-
const _ide = "
|
|
308
|
+
const _id = "identities";
|
|
309
|
+
const _ide = "identity";
|
|
309
310
|
const _in = "instructions";
|
|
310
311
|
const _inf = "info";
|
|
311
312
|
const _int = "integration";
|
|
@@ -373,6 +374,7 @@ const _sL = "searchLimit";
|
|
|
373
374
|
const _sP = "sipPassword";
|
|
374
375
|
const _sS = "searchStrategy";
|
|
375
376
|
const _sT = "searchThreshold";
|
|
377
|
+
const _sTM = "sessionTimeoutMinutes";
|
|
376
378
|
const _sU = "streamUser";
|
|
377
379
|
const _sc = "scope";
|
|
378
380
|
const _se = "searchable";
|
|
@@ -459,6 +461,12 @@ exports.AccountNotFoundException$ = [-3, n3, _ANFE,
|
|
|
459
461
|
[0], 1
|
|
460
462
|
];
|
|
461
463
|
n3_registry.registerError(exports.AccountNotFoundException$, errors_1.AccountNotFoundException);
|
|
464
|
+
exports.BotAlreadyExistsException$ = [-3, n3, _BAEE,
|
|
465
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
466
|
+
[_m],
|
|
467
|
+
[0], 1
|
|
468
|
+
];
|
|
469
|
+
n3_registry.registerError(exports.BotAlreadyExistsException$, errors_1.BotAlreadyExistsException);
|
|
462
470
|
exports.BotApiKeyNotFoundException$ = [-3, n3, _BAKNFE,
|
|
463
471
|
{ [_e]: _c, [_hE]: 404 },
|
|
464
472
|
[_m],
|
|
@@ -605,8 +613,8 @@ exports.BatchGetUsersPbxLinkDataV1Output$ = [3, n3, _BGUPLDVO,
|
|
|
605
613
|
];
|
|
606
614
|
exports.Bot$ = [3, n3, _B,
|
|
607
615
|
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
|
|
616
|
+
[_n, _i, _iT, _iAKC, _cA, _ca, _pi, _se, _a, _gI, _sTM, _up],
|
|
617
|
+
[0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 1, 0], 5
|
|
610
618
|
];
|
|
611
619
|
exports.BotApiKey$ = [3, n3, _BAK,
|
|
612
620
|
0,
|
|
@@ -770,8 +778,8 @@ exports.CreateBotApiKeyOutput$ = [3, n3, _CBAKO,
|
|
|
770
778
|
];
|
|
771
779
|
exports.CreateBotInput$ = [3, n3, _CBI,
|
|
772
780
|
0,
|
|
773
|
-
[_n, _cal, _ca, _pi, _se, _a, _gI, _co],
|
|
774
|
-
[0, () => exports.BotCallback$, 0, 0, 2, 0, 0, [0, { [_hQ]: _co }]], 2
|
|
781
|
+
[_n, _cal, _ca, _pi, _se, _a, _gI, _sTM, _co, _i],
|
|
782
|
+
[0, () => exports.BotCallback$, 0, 0, 2, 0, 0, 1, [0, { [_hQ]: _co }], 0], 2
|
|
775
783
|
];
|
|
776
784
|
exports.CreateBotOutput$ = [3, n3, _CBO,
|
|
777
785
|
0,
|
|
@@ -820,8 +828,8 @@ exports.GetAccountInput$ = [3, n3, _GAI,
|
|
|
820
828
|
];
|
|
821
829
|
exports.GetAccountOutput$ = [3, n3, _GAO,
|
|
822
830
|
0,
|
|
823
|
-
[_ac],
|
|
824
|
-
[() => exports.Account
|
|
831
|
+
[_ac, _w, _id],
|
|
832
|
+
[() => exports.Account$, () => WorkspaceList, () => IdentityList], 3
|
|
825
833
|
];
|
|
826
834
|
exports.GetAppVersionInput$ = [3, n3, _GAVI,
|
|
827
835
|
0,
|
|
@@ -905,7 +913,7 @@ exports.GetUserPbxLinkSuggestionV1Output$ = [3, n3, _GUPLSVO,
|
|
|
905
913
|
];
|
|
906
914
|
exports.Identity$ = [3, n3, _I,
|
|
907
915
|
0,
|
|
908
|
-
[
|
|
916
|
+
[_ide, _ac, _ver],
|
|
909
917
|
[0, 0, 2], 2
|
|
910
918
|
];
|
|
911
919
|
exports.IntelligenceSearchInput$ = [3, n3, _ISI,
|
|
@@ -930,12 +938,12 @@ exports.InviteOutput$ = [3, n3, _IO,
|
|
|
930
938
|
];
|
|
931
939
|
exports.LinkIdentityInput$ = [3, n3, _LII,
|
|
932
940
|
0,
|
|
933
|
-
[_aIc,
|
|
941
|
+
[_aIc, _ide],
|
|
934
942
|
[[0, 1], 0], 2
|
|
935
943
|
];
|
|
936
944
|
exports.LinkIdentityOutput$ = [3, n3, _LIO,
|
|
937
945
|
0,
|
|
938
|
-
[
|
|
946
|
+
[_ide],
|
|
939
947
|
[() => exports.Identity$], 1
|
|
940
948
|
];
|
|
941
949
|
exports.ListBotApiKeysInput$ = [3, n3, _LBAKI,
|
|
@@ -965,7 +973,7 @@ exports.ListIdentitiesInput$ = [3, n3, _LIIi,
|
|
|
965
973
|
];
|
|
966
974
|
exports.ListIdentitiesOutput$ = [3, n3, _LIOi,
|
|
967
975
|
0,
|
|
968
|
-
[
|
|
976
|
+
[_id],
|
|
969
977
|
[() => IdentityList], 1
|
|
970
978
|
];
|
|
971
979
|
exports.ListWorkspacesInput$ = [3, n3, _LWI,
|
|
@@ -1060,7 +1068,7 @@ exports.ToggleUnreadEmailNotificationsSubscriptionOutput$ = [3, n3, _TUENSO,
|
|
|
1060
1068
|
];
|
|
1061
1069
|
exports.UnlinkIdentityInput$ = [3, n3, _UII,
|
|
1062
1070
|
0,
|
|
1063
|
-
[_aIc,
|
|
1071
|
+
[_aIc, _ide],
|
|
1064
1072
|
[[0, 1], [0, 1]], 2
|
|
1065
1073
|
];
|
|
1066
1074
|
exports.UnlinkIdentityOutput$ = [3, n3, _UIO,
|
|
@@ -1100,8 +1108,8 @@ exports.UpdateBotCallbackOutput$ = [3, n3, _UBCO,
|
|
|
1100
1108
|
];
|
|
1101
1109
|
exports.UpdateBotInput$ = [3, n3, _UBI,
|
|
1102
1110
|
0,
|
|
1103
|
-
[_n, _bI, _ca, _pi, _se, _a, _gI, _co],
|
|
1104
|
-
[0, [0, 1], 0, 0, 2, 0, 0, [0, { [_hQ]: _co }]], 2
|
|
1111
|
+
[_n, _bI, _ca, _pi, _se, _a, _gI, _sTM, _co],
|
|
1112
|
+
[0, [0, 1], 0, 0, 2, 0, 0, 1, [0, { [_hQ]: _co }]], 2
|
|
1105
1113
|
];
|
|
1106
1114
|
exports.UpdateBotOutput$ = [3, n3, _UBO,
|
|
1107
1115
|
0,
|
|
@@ -1215,12 +1223,12 @@ exports.VerifyBotSecretKeyV1Output$ = [3, n3, _VBSKVO,
|
|
|
1215
1223
|
];
|
|
1216
1224
|
exports.VerifyIdentityInput$ = [3, n3, _VII,
|
|
1217
1225
|
0,
|
|
1218
|
-
[_aIc,
|
|
1226
|
+
[_aIc, _ide, _o],
|
|
1219
1227
|
[[0, 1], 0, 0], 3
|
|
1220
1228
|
];
|
|
1221
1229
|
exports.VerifyIdentityOutput$ = [3, n3, _VIO,
|
|
1222
1230
|
0,
|
|
1223
|
-
[
|
|
1231
|
+
[_ide],
|
|
1224
1232
|
[() => exports.Identity$], 1
|
|
1225
1233
|
];
|
|
1226
1234
|
exports.Workspace$ = [3, n3, _W,
|
package/dist-es/models/enums.js
CHANGED
|
@@ -5,6 +5,13 @@ export const PbxLicenseType = {
|
|
|
5
5
|
PREMIUM: "premium",
|
|
6
6
|
WIZYCONF: "wizyconf",
|
|
7
7
|
};
|
|
8
|
+
export var BotSessionTimeoutMinutes;
|
|
9
|
+
(function (BotSessionTimeoutMinutes) {
|
|
10
|
+
BotSessionTimeoutMinutes[BotSessionTimeoutMinutes["MINUTES_15"] = 15] = "MINUTES_15";
|
|
11
|
+
BotSessionTimeoutMinutes[BotSessionTimeoutMinutes["MINUTES_30"] = 30] = "MINUTES_30";
|
|
12
|
+
BotSessionTimeoutMinutes[BotSessionTimeoutMinutes["HOUR_1"] = 60] = "HOUR_1";
|
|
13
|
+
BotSessionTimeoutMinutes[BotSessionTimeoutMinutes["HOURS_2"] = 120] = "HOURS_2";
|
|
14
|
+
})(BotSessionTimeoutMinutes || (BotSessionTimeoutMinutes = {}));
|
|
8
15
|
export const SearchStrategy = {
|
|
9
16
|
BM25: "bm25",
|
|
10
17
|
HYBRID: "hybrid",
|
package/dist-es/models/errors.js
CHANGED
|
@@ -59,6 +59,18 @@ export class AccountNotFoundException extends __BaseException {
|
|
|
59
59
|
Object.setPrototypeOf(this, AccountNotFoundException.prototype);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
+
export class BotAlreadyExistsException extends __BaseException {
|
|
63
|
+
name = "BotAlreadyExistsException";
|
|
64
|
+
$fault = "client";
|
|
65
|
+
constructor(opts) {
|
|
66
|
+
super({
|
|
67
|
+
name: "BotAlreadyExistsException",
|
|
68
|
+
$fault: "client",
|
|
69
|
+
...opts,
|
|
70
|
+
});
|
|
71
|
+
Object.setPrototypeOf(this, BotAlreadyExistsException.prototype);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
62
74
|
export class BotApiKeyNotFoundException extends __BaseException {
|
|
63
75
|
name = "BotApiKeyNotFoundException";
|
|
64
76
|
$fault = "client";
|
|
@@ -2,6 +2,7 @@ const _A = "Account";
|
|
|
2
2
|
const _AEC = "AnonymousEntryContext";
|
|
3
3
|
const _ANFE = "AccountNotFoundException";
|
|
4
4
|
const _B = "Bot";
|
|
5
|
+
const _BAEE = "BotAlreadyExistsException";
|
|
5
6
|
const _BAK = "BotApiKey";
|
|
6
7
|
const _BAKL = "BotApiKeysList";
|
|
7
8
|
const _BAKNFE = "BotApiKeyNotFoundException";
|
|
@@ -297,8 +298,8 @@ const _ht = "http";
|
|
|
297
298
|
const _i = "id";
|
|
298
299
|
const _iAKC = "integrationApiKeysCount";
|
|
299
300
|
const _iT = "integrationType";
|
|
300
|
-
const _id = "
|
|
301
|
-
const _ide = "
|
|
301
|
+
const _id = "identities";
|
|
302
|
+
const _ide = "identity";
|
|
302
303
|
const _in = "instructions";
|
|
303
304
|
const _inf = "info";
|
|
304
305
|
const _int = "integration";
|
|
@@ -366,6 +367,7 @@ const _sL = "searchLimit";
|
|
|
366
367
|
const _sP = "sipPassword";
|
|
367
368
|
const _sS = "searchStrategy";
|
|
368
369
|
const _sT = "searchThreshold";
|
|
370
|
+
const _sTM = "sessionTimeoutMinutes";
|
|
369
371
|
const _sU = "streamUser";
|
|
370
372
|
const _sc = "scope";
|
|
371
373
|
const _se = "searchable";
|
|
@@ -413,7 +415,7 @@ const n2 = "wildix.xbees.kite";
|
|
|
413
415
|
const n3 = "wildix.xbees.users";
|
|
414
416
|
const n4 = "wildix.wms.api";
|
|
415
417
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
416
|
-
import { AccountNotFoundException, BotApiKeyNotFoundException, BotNotFoundException, BotSecretKeyNotValidException, CannotRemovePrimaryIdentityException, CannotUnbindDefaultWorkspaceException, ChannelNotFoundException, ForbiddenException, IdentityAlreadyLinkedException, IdentityNotFoundException, PublicAccessIsRestrictedException, UserCompanyNotValidException, UserNotFoundException, UserQueryPredicateNotMetException, ValidationException, WidgetNotFoundException, WorkspaceNotFoundException, } from "../models/errors";
|
|
418
|
+
import { AccountNotFoundException, BotAlreadyExistsException, BotApiKeyNotFoundException, BotNotFoundException, BotSecretKeyNotValidException, CannotRemovePrimaryIdentityException, CannotUnbindDefaultWorkspaceException, ChannelNotFoundException, ForbiddenException, IdentityAlreadyLinkedException, IdentityNotFoundException, PublicAccessIsRestrictedException, UserCompanyNotValidException, UserNotFoundException, UserQueryPredicateNotMetException, ValidationException, WidgetNotFoundException, WorkspaceNotFoundException, } from "../models/errors";
|
|
417
419
|
import { UsersServiceException } from "../models/UsersServiceException";
|
|
418
420
|
const _s_registry = TypeRegistry.for(_s);
|
|
419
421
|
export var UsersServiceException$ = [-3, _s, "UsersServiceException", 0, [], []];
|
|
@@ -452,6 +454,12 @@ export var AccountNotFoundException$ = [-3, n3, _ANFE,
|
|
|
452
454
|
[0], 1
|
|
453
455
|
];
|
|
454
456
|
n3_registry.registerError(AccountNotFoundException$, AccountNotFoundException);
|
|
457
|
+
export var BotAlreadyExistsException$ = [-3, n3, _BAEE,
|
|
458
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
459
|
+
[_m],
|
|
460
|
+
[0], 1
|
|
461
|
+
];
|
|
462
|
+
n3_registry.registerError(BotAlreadyExistsException$, BotAlreadyExistsException);
|
|
455
463
|
export var BotApiKeyNotFoundException$ = [-3, n3, _BAKNFE,
|
|
456
464
|
{ [_e]: _c, [_hE]: 404 },
|
|
457
465
|
[_m],
|
|
@@ -598,8 +606,8 @@ export var BatchGetUsersPbxLinkDataV1Output$ = [3, n3, _BGUPLDVO,
|
|
|
598
606
|
];
|
|
599
607
|
export var Bot$ = [3, n3, _B,
|
|
600
608
|
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
|
|
609
|
+
[_n, _i, _iT, _iAKC, _cA, _ca, _pi, _se, _a, _gI, _sTM, _up],
|
|
610
|
+
[0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 1, 0], 5
|
|
603
611
|
];
|
|
604
612
|
export var BotApiKey$ = [3, n3, _BAK,
|
|
605
613
|
0,
|
|
@@ -763,8 +771,8 @@ export var CreateBotApiKeyOutput$ = [3, n3, _CBAKO,
|
|
|
763
771
|
];
|
|
764
772
|
export var CreateBotInput$ = [3, n3, _CBI,
|
|
765
773
|
0,
|
|
766
|
-
[_n, _cal, _ca, _pi, _se, _a, _gI, _co],
|
|
767
|
-
[0, () => BotCallback$, 0, 0, 2, 0, 0, [0, { [_hQ]: _co }]], 2
|
|
774
|
+
[_n, _cal, _ca, _pi, _se, _a, _gI, _sTM, _co, _i],
|
|
775
|
+
[0, () => BotCallback$, 0, 0, 2, 0, 0, 1, [0, { [_hQ]: _co }], 0], 2
|
|
768
776
|
];
|
|
769
777
|
export var CreateBotOutput$ = [3, n3, _CBO,
|
|
770
778
|
0,
|
|
@@ -813,8 +821,8 @@ export var GetAccountInput$ = [3, n3, _GAI,
|
|
|
813
821
|
];
|
|
814
822
|
export var GetAccountOutput$ = [3, n3, _GAO,
|
|
815
823
|
0,
|
|
816
|
-
[_ac],
|
|
817
|
-
[() => Account
|
|
824
|
+
[_ac, _w, _id],
|
|
825
|
+
[() => Account$, () => WorkspaceList, () => IdentityList], 3
|
|
818
826
|
];
|
|
819
827
|
export var GetAppVersionInput$ = [3, n3, _GAVI,
|
|
820
828
|
0,
|
|
@@ -898,7 +906,7 @@ export var GetUserPbxLinkSuggestionV1Output$ = [3, n3, _GUPLSVO,
|
|
|
898
906
|
];
|
|
899
907
|
export var Identity$ = [3, n3, _I,
|
|
900
908
|
0,
|
|
901
|
-
[
|
|
909
|
+
[_ide, _ac, _ver],
|
|
902
910
|
[0, 0, 2], 2
|
|
903
911
|
];
|
|
904
912
|
export var IntelligenceSearchInput$ = [3, n3, _ISI,
|
|
@@ -923,12 +931,12 @@ export var InviteOutput$ = [3, n3, _IO,
|
|
|
923
931
|
];
|
|
924
932
|
export var LinkIdentityInput$ = [3, n3, _LII,
|
|
925
933
|
0,
|
|
926
|
-
[_aIc,
|
|
934
|
+
[_aIc, _ide],
|
|
927
935
|
[[0, 1], 0], 2
|
|
928
936
|
];
|
|
929
937
|
export var LinkIdentityOutput$ = [3, n3, _LIO,
|
|
930
938
|
0,
|
|
931
|
-
[
|
|
939
|
+
[_ide],
|
|
932
940
|
[() => Identity$], 1
|
|
933
941
|
];
|
|
934
942
|
export var ListBotApiKeysInput$ = [3, n3, _LBAKI,
|
|
@@ -958,7 +966,7 @@ export var ListIdentitiesInput$ = [3, n3, _LIIi,
|
|
|
958
966
|
];
|
|
959
967
|
export var ListIdentitiesOutput$ = [3, n3, _LIOi,
|
|
960
968
|
0,
|
|
961
|
-
[
|
|
969
|
+
[_id],
|
|
962
970
|
[() => IdentityList], 1
|
|
963
971
|
];
|
|
964
972
|
export var ListWorkspacesInput$ = [3, n3, _LWI,
|
|
@@ -1053,7 +1061,7 @@ export var ToggleUnreadEmailNotificationsSubscriptionOutput$ = [3, n3, _TUENSO,
|
|
|
1053
1061
|
];
|
|
1054
1062
|
export var UnlinkIdentityInput$ = [3, n3, _UII,
|
|
1055
1063
|
0,
|
|
1056
|
-
[_aIc,
|
|
1064
|
+
[_aIc, _ide],
|
|
1057
1065
|
[[0, 1], [0, 1]], 2
|
|
1058
1066
|
];
|
|
1059
1067
|
export var UnlinkIdentityOutput$ = [3, n3, _UIO,
|
|
@@ -1093,8 +1101,8 @@ export var UpdateBotCallbackOutput$ = [3, n3, _UBCO,
|
|
|
1093
1101
|
];
|
|
1094
1102
|
export var UpdateBotInput$ = [3, n3, _UBI,
|
|
1095
1103
|
0,
|
|
1096
|
-
[_n, _bI, _ca, _pi, _se, _a, _gI, _co],
|
|
1097
|
-
[0, [0, 1], 0, 0, 2, 0, 0, [0, { [_hQ]: _co }]], 2
|
|
1104
|
+
[_n, _bI, _ca, _pi, _se, _a, _gI, _sTM, _co],
|
|
1105
|
+
[0, [0, 1], 0, 0, 2, 0, 0, 1, [0, { [_hQ]: _co }]], 2
|
|
1098
1106
|
];
|
|
1099
1107
|
export var UpdateBotOutput$ = [3, n3, _UBO,
|
|
1100
1108
|
0,
|
|
@@ -1208,12 +1216,12 @@ export var VerifyBotSecretKeyV1Output$ = [3, n3, _VBSKVO,
|
|
|
1208
1216
|
];
|
|
1209
1217
|
export var VerifyIdentityInput$ = [3, n3, _VII,
|
|
1210
1218
|
0,
|
|
1211
|
-
[_aIc,
|
|
1219
|
+
[_aIc, _ide, _o],
|
|
1212
1220
|
[[0, 1], 0, 0], 3
|
|
1213
1221
|
];
|
|
1214
1222
|
export var VerifyIdentityOutput$ = [3, n3, _VIO,
|
|
1215
1223
|
0,
|
|
1216
|
-
[
|
|
1224
|
+
[_ide],
|
|
1217
1225
|
[() => Identity$], 1
|
|
1218
1226
|
];
|
|
1219
1227
|
export var Workspace$ = [3, n3, _W,
|
|
@@ -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,7 +43,9 @@ 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",
|
|
48
|
+
* id: "STRING_VALUE",
|
|
47
49
|
* callback: { // BotCallback
|
|
48
50
|
* endpoint: { // BotEndpoint Union: only one key present
|
|
49
51
|
* llm: { // BotLlmEndpoint
|
|
@@ -228,6 +230,7 @@ declare const CreateBotCommand_base: {
|
|
|
228
230
|
* // searchable: true || false,
|
|
229
231
|
* // access: "EVERYBODY" || "ORGANIZATION",
|
|
230
232
|
* // groupId: "STRING_VALUE",
|
|
233
|
+
* // sessionTimeoutMinutes: 15 || 30 || 60 || 120,
|
|
231
234
|
* // id: "STRING_VALUE", // required
|
|
232
235
|
* // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
|
|
233
236
|
* // integrationApiKeysCount: Number("int"), // required
|
|
@@ -244,6 +247,8 @@ declare const CreateBotCommand_base: {
|
|
|
244
247
|
* @see {@link CreateBotCommandOutput} for command's `response` shape.
|
|
245
248
|
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
246
249
|
*
|
|
250
|
+
* @throws {@link BotAlreadyExistsException} (client fault)
|
|
251
|
+
*
|
|
247
252
|
* @throws {@link ForbiddenException} (client fault)
|
|
248
253
|
*
|
|
249
254
|
* @throws {@link ValidationException} (client fault)
|
|
@@ -27,7 +27,7 @@ declare const GetAccountCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Retrieves the account.
|
|
30
|
+
* Retrieves the current account with identities and workspaces.
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -47,6 +47,96 @@ declare const GetAccountCommand_base: {
|
|
|
47
47
|
* // defaultWorkspace: "STRING_VALUE",
|
|
48
48
|
* // primaryIdentity: "STRING_VALUE",
|
|
49
49
|
* // },
|
|
50
|
+
* // workspaces: [ // WorkspaceList // required
|
|
51
|
+
* // { // Workspace
|
|
52
|
+
* // companyId: "STRING_VALUE",
|
|
53
|
+
* // pbxUser: { // UserPbxLinkData
|
|
54
|
+
* // id: "STRING_VALUE", // required
|
|
55
|
+
* // company: "STRING_VALUE", // required
|
|
56
|
+
* // companyName: "STRING_VALUE",
|
|
57
|
+
* // domain: "STRING_VALUE", // required
|
|
58
|
+
* // email: "STRING_VALUE",
|
|
59
|
+
* // info: { // UserPersonalInfo
|
|
60
|
+
* // dn: "STRING_VALUE", // required
|
|
61
|
+
* // id: "STRING_VALUE", // required
|
|
62
|
+
* // name: "STRING_VALUE", // required
|
|
63
|
+
* // extension: "STRING_VALUE", // required
|
|
64
|
+
* // officePhone: "STRING_VALUE",
|
|
65
|
+
* // mobilePhone: "STRING_VALUE",
|
|
66
|
+
* // faxNumber: "STRING_VALUE",
|
|
67
|
+
* // email: "STRING_VALUE",
|
|
68
|
+
* // role: "STRING_VALUE", // required
|
|
69
|
+
* // language: "STRING_VALUE", // required
|
|
70
|
+
* // dialplan: "STRING_VALUE", // required
|
|
71
|
+
* // faxDialplan: "STRING_VALUE", // required
|
|
72
|
+
* // departament: "STRING_VALUE",
|
|
73
|
+
* // picture: "STRING_VALUE", // required
|
|
74
|
+
* // groupDn: "STRING_VALUE", // required
|
|
75
|
+
* // groupName: "STRING_VALUE", // required
|
|
76
|
+
* // jid: "STRING_VALUE", // required
|
|
77
|
+
* // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
|
|
78
|
+
* // login: "STRING_VALUE",
|
|
79
|
+
* // pbx: "STRING_VALUE",
|
|
80
|
+
* // pbxDn: "STRING_VALUE", // required
|
|
81
|
+
* // sourceId: "STRING_VALUE",
|
|
82
|
+
* // sipPassword: "STRING_VALUE",
|
|
83
|
+
* // },
|
|
84
|
+
* // pbx: { // UserPbxInfo
|
|
85
|
+
* // networkAddresses: [ // UserPbxInfoNetworkAddresses // required
|
|
86
|
+
* // "STRING_VALUE",
|
|
87
|
+
* // ],
|
|
88
|
+
* // ports: [ // UserPbxInfoPorts // required
|
|
89
|
+
* // "STRING_VALUE",
|
|
90
|
+
* // ],
|
|
91
|
+
* // externalLinePrefix: "STRING_VALUE",
|
|
92
|
+
* // version: "STRING_VALUE", // required
|
|
93
|
+
* // serial: "STRING_VALUE", // required
|
|
94
|
+
* // },
|
|
95
|
+
* // picture: "STRING_VALUE", // required
|
|
96
|
+
* // pictureDeleted: true || false,
|
|
97
|
+
* // port: "STRING_VALUE", // required
|
|
98
|
+
* // serial: "STRING_VALUE", // required
|
|
99
|
+
* // services: { // UserPbxServices
|
|
100
|
+
* // xcaracal: true || false,
|
|
101
|
+
* // wizyWebinar: true || false,
|
|
102
|
+
* // },
|
|
103
|
+
* // personalSettings: {},
|
|
104
|
+
* // dialplanSettings: {},
|
|
105
|
+
* // awsRegion: "STRING_VALUE",
|
|
106
|
+
* // updatedAt: "STRING_VALUE",
|
|
107
|
+
* // },
|
|
108
|
+
* // streamUser: { // User
|
|
109
|
+
* // id: "STRING_VALUE", // required
|
|
110
|
+
* // name: "STRING_VALUE",
|
|
111
|
+
* // email: "STRING_VALUE",
|
|
112
|
+
* // phone: "STRING_VALUE",
|
|
113
|
+
* // picture: "STRING_VALUE",
|
|
114
|
+
* // locale: "STRING_VALUE",
|
|
115
|
+
* // timeZone: "STRING_VALUE",
|
|
116
|
+
* // company: "STRING_VALUE",
|
|
117
|
+
* // bot: true || false,
|
|
118
|
+
* // pbxDomain: "STRING_VALUE",
|
|
119
|
+
* // pbxPort: "STRING_VALUE",
|
|
120
|
+
* // pbxExtension: "STRING_VALUE",
|
|
121
|
+
* // pbxSerial: "STRING_VALUE",
|
|
122
|
+
* // pbxUserId: "STRING_VALUE",
|
|
123
|
+
* // pbxGroupId: "STRING_VALUE",
|
|
124
|
+
* // createdAt: "STRING_VALUE",
|
|
125
|
+
* // updatedAt: "STRING_VALUE",
|
|
126
|
+
* // },
|
|
127
|
+
* // type: "personal" || "work" || "support",
|
|
128
|
+
* // id: "STRING_VALUE", // required
|
|
129
|
+
* // accountId: "STRING_VALUE", // required
|
|
130
|
+
* // active: true || false, // required
|
|
131
|
+
* // },
|
|
132
|
+
* // ],
|
|
133
|
+
* // identities: [ // IdentityList // required
|
|
134
|
+
* // { // Identity
|
|
135
|
+
* // identity: "STRING_VALUE", // required
|
|
136
|
+
* // account: "STRING_VALUE", // required
|
|
137
|
+
* // verified: true || false,
|
|
138
|
+
* // },
|
|
139
|
+
* // ],
|
|
50
140
|
* // };
|
|
51
141
|
*
|
|
52
142
|
* ```
|
|
@@ -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
|
|
@@ -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,12 @@ export declare const PbxLicenseType: {
|
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
15
|
export type PbxLicenseType = (typeof PbxLicenseType)[keyof typeof PbxLicenseType];
|
|
16
|
+
export declare enum BotSessionTimeoutMinutes {
|
|
17
|
+
MINUTES_15 = 15,
|
|
18
|
+
MINUTES_30 = 30,
|
|
19
|
+
HOUR_1 = 60,
|
|
20
|
+
HOURS_2 = 120
|
|
21
|
+
}
|
|
16
22
|
/**
|
|
17
23
|
* @public
|
|
18
24
|
* @enum
|
|
@@ -55,6 +55,17 @@ export declare class AccountNotFoundException extends __BaseException {
|
|
|
55
55
|
*/
|
|
56
56
|
constructor(opts: __ExceptionOptionType<AccountNotFoundException, __BaseException>);
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
export declare class BotAlreadyExistsException extends __BaseException {
|
|
62
|
+
readonly name: "BotAlreadyExistsException";
|
|
63
|
+
readonly $fault: "client";
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
constructor(opts: __ExceptionOptionType<BotAlreadyExistsException, __BaseException>);
|
|
68
|
+
}
|
|
58
69
|
/**
|
|
59
70
|
* @public
|
|
60
71
|
*/
|
|
@@ -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, SearchStrategy, SearchThresholdValue, WorkspaceType } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
@@ -105,7 +105,7 @@ export interface UserToInvite {
|
|
|
105
105
|
*/
|
|
106
106
|
email?: string | undefined;
|
|
107
107
|
/**
|
|
108
|
-
* The phone number of the invited user. This phone number is used to create or find the user if an email address is not provided.
|
|
108
|
+
* The phone number of the invited user. This phone number is used to create or find the user if an email address is not provided. On Facebook Messenger it is not a phone number at all: the caller passes the Page Scoped ID, so the identity key stays the one the supplier reports. UserPhone allows up to 17 digits and a Page Scoped ID is 17, so there is no headroom left.
|
|
109
109
|
* @public
|
|
110
110
|
*/
|
|
111
111
|
phone?: string | undefined;
|
|
@@ -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,7 +1211,17 @@ 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;
|
|
1220
|
+
/**
|
|
1221
|
+
* Optional bot id. Omit to mint a random 12-character id. Supply a Wilma agent id (`a_` plus 10) so RNA search and conversation members share that id. Conflicts if the id already exists.
|
|
1222
|
+
* @public
|
|
1223
|
+
*/
|
|
1224
|
+
id?: string | undefined;
|
|
1210
1225
|
callback: BotCallback;
|
|
1211
1226
|
}
|
|
1212
1227
|
/**
|
|
@@ -1296,11 +1311,73 @@ export interface GetAccountInput {
|
|
|
1296
1311
|
*/
|
|
1297
1312
|
accountId: string;
|
|
1298
1313
|
}
|
|
1314
|
+
/**
|
|
1315
|
+
* @public
|
|
1316
|
+
*/
|
|
1317
|
+
export interface Identity {
|
|
1318
|
+
/**
|
|
1319
|
+
* The identity value (email address or phone number in E.164)
|
|
1320
|
+
* @public
|
|
1321
|
+
*/
|
|
1322
|
+
identity: string;
|
|
1323
|
+
/**
|
|
1324
|
+
* The unique identifier of the account.
|
|
1325
|
+
* @public
|
|
1326
|
+
*/
|
|
1327
|
+
account: string;
|
|
1328
|
+
/**
|
|
1329
|
+
* Indicates if the identity is verified.
|
|
1330
|
+
* @public
|
|
1331
|
+
*/
|
|
1332
|
+
verified?: boolean | undefined;
|
|
1333
|
+
}
|
|
1334
|
+
/**
|
|
1335
|
+
* @public
|
|
1336
|
+
*/
|
|
1337
|
+
export interface Workspace {
|
|
1338
|
+
/**
|
|
1339
|
+
* The unique identifier of the tenant (company).
|
|
1340
|
+
* @public
|
|
1341
|
+
*/
|
|
1342
|
+
companyId?: string | undefined;
|
|
1343
|
+
/**
|
|
1344
|
+
* PBX information where user connected to.
|
|
1345
|
+
* @public
|
|
1346
|
+
*/
|
|
1347
|
+
pbxUser?: UserPbxLinkData | undefined;
|
|
1348
|
+
/**
|
|
1349
|
+
* Personal information of the user. If user is not logged in yet, this field will might be empty.
|
|
1350
|
+
* @public
|
|
1351
|
+
*/
|
|
1352
|
+
streamUser?: User | undefined;
|
|
1353
|
+
/**
|
|
1354
|
+
* The type of workspace.
|
|
1355
|
+
* @public
|
|
1356
|
+
*/
|
|
1357
|
+
type?: WorkspaceType | undefined;
|
|
1358
|
+
/**
|
|
1359
|
+
* The unique identifier
|
|
1360
|
+
* @public
|
|
1361
|
+
*/
|
|
1362
|
+
id: string;
|
|
1363
|
+
/**
|
|
1364
|
+
* The unique identifier of the account.
|
|
1365
|
+
* @public
|
|
1366
|
+
*/
|
|
1367
|
+
accountId: string;
|
|
1368
|
+
/**
|
|
1369
|
+
* Indicates if the workspace is active.
|
|
1370
|
+
* @public
|
|
1371
|
+
*/
|
|
1372
|
+
active: boolean;
|
|
1373
|
+
}
|
|
1299
1374
|
/**
|
|
1300
1375
|
* @public
|
|
1301
1376
|
*/
|
|
1302
1377
|
export interface GetAccountOutput {
|
|
1303
1378
|
account: Account;
|
|
1379
|
+
workspaces: Workspace[];
|
|
1380
|
+
identities: Identity[];
|
|
1304
1381
|
}
|
|
1305
1382
|
/**
|
|
1306
1383
|
* @public
|
|
@@ -1443,26 +1520,6 @@ export interface GetUserPbxLinkSuggestionV1Output {
|
|
|
1443
1520
|
*/
|
|
1444
1521
|
suggestion?: UserPbxLinkSuggestion | undefined;
|
|
1445
1522
|
}
|
|
1446
|
-
/**
|
|
1447
|
-
* @public
|
|
1448
|
-
*/
|
|
1449
|
-
export interface Identity {
|
|
1450
|
-
/**
|
|
1451
|
-
* The identity value (email address or phone number in E.164)
|
|
1452
|
-
* @public
|
|
1453
|
-
*/
|
|
1454
|
-
identity: string;
|
|
1455
|
-
/**
|
|
1456
|
-
* The unique identifier of the account.
|
|
1457
|
-
* @public
|
|
1458
|
-
*/
|
|
1459
|
-
account: string;
|
|
1460
|
-
/**
|
|
1461
|
-
* Indicates if the identity is verified.
|
|
1462
|
-
* @public
|
|
1463
|
-
*/
|
|
1464
|
-
verified?: boolean | undefined;
|
|
1465
|
-
}
|
|
1466
1523
|
/**
|
|
1467
1524
|
* @public
|
|
1468
1525
|
*/
|
|
@@ -1591,46 +1648,6 @@ export interface ListWorkspacesInput {
|
|
|
1591
1648
|
*/
|
|
1592
1649
|
accountId: string;
|
|
1593
1650
|
}
|
|
1594
|
-
/**
|
|
1595
|
-
* @public
|
|
1596
|
-
*/
|
|
1597
|
-
export interface Workspace {
|
|
1598
|
-
/**
|
|
1599
|
-
* The unique identifier of the tenant (company).
|
|
1600
|
-
* @public
|
|
1601
|
-
*/
|
|
1602
|
-
companyId?: string | undefined;
|
|
1603
|
-
/**
|
|
1604
|
-
* PBX information where user connected to.
|
|
1605
|
-
* @public
|
|
1606
|
-
*/
|
|
1607
|
-
pbxUser?: UserPbxLinkData | undefined;
|
|
1608
|
-
/**
|
|
1609
|
-
* Personal information of the user. If user is not logged in yet, this field will might be empty.
|
|
1610
|
-
* @public
|
|
1611
|
-
*/
|
|
1612
|
-
streamUser?: User | undefined;
|
|
1613
|
-
/**
|
|
1614
|
-
* The type of workspace.
|
|
1615
|
-
* @public
|
|
1616
|
-
*/
|
|
1617
|
-
type?: WorkspaceType | undefined;
|
|
1618
|
-
/**
|
|
1619
|
-
* The unique identifier
|
|
1620
|
-
* @public
|
|
1621
|
-
*/
|
|
1622
|
-
id: string;
|
|
1623
|
-
/**
|
|
1624
|
-
* The unique identifier of the account.
|
|
1625
|
-
* @public
|
|
1626
|
-
*/
|
|
1627
|
-
accountId: string;
|
|
1628
|
-
/**
|
|
1629
|
-
* Indicates if the workspace is active.
|
|
1630
|
-
* @public
|
|
1631
|
-
*/
|
|
1632
|
-
active: boolean;
|
|
1633
|
-
}
|
|
1634
1651
|
/**
|
|
1635
1652
|
* @public
|
|
1636
1653
|
*/
|
|
@@ -1953,6 +1970,11 @@ export interface UpdateBotInput {
|
|
|
1953
1970
|
* @public
|
|
1954
1971
|
*/
|
|
1955
1972
|
groupId?: string | undefined;
|
|
1973
|
+
/**
|
|
1974
|
+
* Closes the chat session after this many minutes of inactivity. When omitted, the session closes at the end of the local day.
|
|
1975
|
+
* @public
|
|
1976
|
+
*/
|
|
1977
|
+
sessionTimeoutMinutes?: BotSessionTimeoutMinutes | undefined;
|
|
1956
1978
|
company?: string | undefined;
|
|
1957
1979
|
botId: string;
|
|
1958
1980
|
}
|
|
@@ -39,7 +39,6 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
|
|
|
39
39
|
tls?: boolean;
|
|
40
40
|
useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
41
41
|
useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
42
|
-
ignoreConfiguredEndpointUrls?: boolean;
|
|
43
42
|
serviceConfiguredEndpoint?: never;
|
|
44
43
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
45
44
|
httpAuthSchemes: ({
|
|
@@ -39,7 +39,6 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
|
|
|
39
39
|
tls?: boolean;
|
|
40
40
|
useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
41
41
|
useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
42
|
-
ignoreConfiguredEndpointUrls?: boolean;
|
|
43
42
|
serviceConfiguredEndpoint?: never;
|
|
44
43
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
45
44
|
httpAuthSchemes: ({
|
|
@@ -39,7 +39,6 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
|
|
|
39
39
|
tls?: boolean;
|
|
40
40
|
useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
41
41
|
useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
42
|
-
ignoreConfiguredEndpointUrls?: boolean;
|
|
43
42
|
serviceConfiguredEndpoint?: never;
|
|
44
43
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
45
44
|
httpAuthSchemes: ({
|
|
@@ -6,6 +6,7 @@ export declare var ValidationException$: StaticErrorSchema;
|
|
|
6
6
|
export declare var ChannelNotFoundException$: StaticErrorSchema;
|
|
7
7
|
export declare var WidgetNotFoundException$: StaticErrorSchema;
|
|
8
8
|
export declare var AccountNotFoundException$: StaticErrorSchema;
|
|
9
|
+
export declare var BotAlreadyExistsException$: StaticErrorSchema;
|
|
9
10
|
export declare var BotApiKeyNotFoundException$: StaticErrorSchema;
|
|
10
11
|
export declare var BotNotFoundException$: StaticErrorSchema;
|
|
11
12
|
export declare var BotSecretKeyNotValidException$: StaticErrorSchema;
|
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.
|
|
4
|
+
"version": "4.0.9",
|
|
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",
|