@wildix/xbees-users-client 4.3.2 → 4.3.3-wms26787.2
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 +10 -6
- package/dist-cjs/auth/httpAuthSchemeProvider.js +30 -17
- package/dist-cjs/commands/{LinkIdentityCommand.js → ApplyIdentityRemovalCommand.js} +6 -6
- package/dist-cjs/commands/ConfirmIdentityChallengeCommand.js +20 -0
- package/dist-cjs/commands/ResendIdentityChallengeCodeCommand.js +20 -0
- package/dist-cjs/commands/{UnlinkIdentityCommand.js → ResetUserChatHistoryCommand.js} +6 -6
- package/dist-cjs/commands/{VerifyIdentityCommand.js → StartIdentityChallengeCommand.js} +6 -6
- package/dist-cjs/commands/index.js +5 -3
- package/dist-cjs/models/enums.js +17 -1
- package/dist-cjs/models/errors.js +106 -24
- package/dist-cjs/schemas/schemas_0.js +199 -85
- package/dist-es/Users.js +10 -6
- package/dist-es/auth/httpAuthSchemeProvider.js +30 -17
- package/dist-es/commands/{UnlinkIdentityCommand.js → ApplyIdentityRemovalCommand.js} +5 -5
- package/dist-es/commands/ConfirmIdentityChallengeCommand.js +16 -0
- package/dist-es/commands/ResendIdentityChallengeCodeCommand.js +16 -0
- package/dist-es/commands/{VerifyIdentityCommand.js → ResetUserChatHistoryCommand.js} +5 -5
- package/dist-es/commands/{LinkIdentityCommand.js → StartIdentityChallengeCommand.js} +5 -5
- package/dist-es/commands/index.js +5 -3
- package/dist-es/models/enums.js +16 -0
- package/dist-es/models/errors.js +96 -20
- package/dist-es/schemas/schemas_0.js +195 -81
- package/dist-types/Users.d.ts +35 -21
- package/dist-types/UsersClient.d.ts +7 -5
- package/dist-types/commands/ApplyIdentityRemovalCommand.d.ts +93 -0
- package/dist-types/commands/ConfirmIdentityChallengeCommand.d.ts +138 -0
- package/dist-types/commands/ListIdentitiesCommand.d.ts +4 -2
- package/dist-types/commands/QueryUserCommand.d.ts +1 -1
- package/dist-types/commands/QueryUsersCommand.d.ts +1 -1
- package/dist-types/commands/ResendIdentityChallengeCodeCommand.d.ts +96 -0
- package/dist-types/commands/ResetUserChatHistoryCommand.d.ts +89 -0
- package/dist-types/commands/StartIdentityChallengeCommand.d.ts +139 -0
- package/dist-types/commands/UpdateAccountCommand.d.ts +2 -1
- package/dist-types/commands/index.d.ts +5 -3
- package/dist-types/models/enums.d.ts +70 -0
- package/dist-types/models/errors.d.ts +102 -17
- package/dist-types/models/models_0.d.ts +302 -83
- package/dist-types/schemas/schemas_0.d.ts +24 -9
- package/package.json +5 -5
- package/dist-types/commands/LinkIdentityCommand.d.ts +0 -89
- package/dist-types/commands/UnlinkIdentityCommand.d.ts +0 -85
- package/dist-types/commands/VerifyIdentityCommand.d.ts +0 -90
package/dist-es/Users.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
|
+
import { ApplyIdentityRemovalCommand, } from "./commands/ApplyIdentityRemovalCommand";
|
|
2
3
|
import { BatchGetUsersCommand, } from "./commands/BatchGetUsersCommand";
|
|
3
4
|
import { BatchGetUsersEmailNotificationsSettingsCommand, } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
|
|
4
5
|
import { BatchGetUsersPbxLinkDataCommand, } from "./commands/BatchGetUsersPbxLinkDataCommand";
|
|
5
6
|
import { BatchGetUsersPbxLinkDataV1Command, } from "./commands/BatchGetUsersPbxLinkDataV1Command";
|
|
6
7
|
import { ChangeUserEmailCommand, } from "./commands/ChangeUserEmailCommand";
|
|
8
|
+
import { ConfirmIdentityChallengeCommand, } from "./commands/ConfirmIdentityChallengeCommand";
|
|
7
9
|
import { CreateAnonymousSessionCommand, } from "./commands/CreateAnonymousSessionCommand";
|
|
8
10
|
import { CreateBotApiKeyCommand, } from "./commands/CreateBotApiKeyCommand";
|
|
9
11
|
import { CreateBotCommand } from "./commands/CreateBotCommand";
|
|
@@ -21,7 +23,6 @@ import { GetUserPbxLinkSuggestionCommand, } from "./commands/GetUserPbxLinkSugge
|
|
|
21
23
|
import { GetUserPbxLinkSuggestionV1Command, } from "./commands/GetUserPbxLinkSuggestionV1Command";
|
|
22
24
|
import { IntelligenceSearchCommand, } from "./commands/IntelligenceSearchCommand";
|
|
23
25
|
import { InviteCommand } from "./commands/InviteCommand";
|
|
24
|
-
import { LinkIdentityCommand, } from "./commands/LinkIdentityCommand";
|
|
25
26
|
import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
|
|
26
27
|
import { ListBotsCommand } from "./commands/ListBotsCommand";
|
|
27
28
|
import { ListIdentitiesCommand, } from "./commands/ListIdentitiesCommand";
|
|
@@ -30,9 +31,11 @@ import { PartialUpdateUserEmailNotificationsSettingsCommand, } from "./commands/
|
|
|
30
31
|
import { QueryColleaguesCommand, } from "./commands/QueryColleaguesCommand";
|
|
31
32
|
import { QueryUserCommand } from "./commands/QueryUserCommand";
|
|
32
33
|
import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
|
|
34
|
+
import { ResendIdentityChallengeCodeCommand, } from "./commands/ResendIdentityChallengeCodeCommand";
|
|
35
|
+
import { ResetUserChatHistoryCommand, } from "./commands/ResetUserChatHistoryCommand";
|
|
36
|
+
import { StartIdentityChallengeCommand, } from "./commands/StartIdentityChallengeCommand";
|
|
33
37
|
import { ToggleTranscriptionEmailNotificationsSubscriptionCommand, } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
|
|
34
38
|
import { ToggleUnreadEmailNotificationsSubscriptionCommand, } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
|
|
35
|
-
import { UnlinkIdentityCommand, } from "./commands/UnlinkIdentityCommand";
|
|
36
39
|
import { UnlinkWorkspaceCommand, } from "./commands/UnlinkWorkspaceCommand";
|
|
37
40
|
import { UpdateAccountCommand, } from "./commands/UpdateAccountCommand";
|
|
38
41
|
import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
|
|
@@ -43,14 +46,15 @@ import { UploadPictureCommand, } from "./commands/UploadPictureCommand";
|
|
|
43
46
|
import { UploadPictureV1Command, } from "./commands/UploadPictureV1Command";
|
|
44
47
|
import { VerifyBotSecretKeyCommand, } from "./commands/VerifyBotSecretKeyCommand";
|
|
45
48
|
import { VerifyBotSecretKeyV1Command, } from "./commands/VerifyBotSecretKeyV1Command";
|
|
46
|
-
import { VerifyIdentityCommand, } from "./commands/VerifyIdentityCommand";
|
|
47
49
|
import { UsersClient } from "./UsersClient";
|
|
48
50
|
const commands = {
|
|
51
|
+
ApplyIdentityRemovalCommand,
|
|
49
52
|
BatchGetUsersCommand,
|
|
50
53
|
BatchGetUsersEmailNotificationsSettingsCommand,
|
|
51
54
|
BatchGetUsersPbxLinkDataCommand,
|
|
52
55
|
BatchGetUsersPbxLinkDataV1Command,
|
|
53
56
|
ChangeUserEmailCommand,
|
|
57
|
+
ConfirmIdentityChallengeCommand,
|
|
54
58
|
CreateAnonymousSessionCommand,
|
|
55
59
|
CreateBotCommand,
|
|
56
60
|
CreateBotApiKeyCommand,
|
|
@@ -68,7 +72,6 @@ const commands = {
|
|
|
68
72
|
GetUserPbxLinkSuggestionV1Command,
|
|
69
73
|
IntelligenceSearchCommand,
|
|
70
74
|
InviteCommand,
|
|
71
|
-
LinkIdentityCommand,
|
|
72
75
|
ListBotApiKeysCommand,
|
|
73
76
|
ListBotsCommand,
|
|
74
77
|
ListIdentitiesCommand,
|
|
@@ -77,9 +80,11 @@ const commands = {
|
|
|
77
80
|
QueryColleaguesCommand,
|
|
78
81
|
QueryUserCommand,
|
|
79
82
|
QueryUsersCommand,
|
|
83
|
+
ResendIdentityChallengeCodeCommand,
|
|
84
|
+
ResetUserChatHistoryCommand,
|
|
85
|
+
StartIdentityChallengeCommand,
|
|
80
86
|
ToggleTranscriptionEmailNotificationsSubscriptionCommand,
|
|
81
87
|
ToggleUnreadEmailNotificationsSubscriptionCommand,
|
|
82
|
-
UnlinkIdentityCommand,
|
|
83
88
|
UnlinkWorkspaceCommand,
|
|
84
89
|
UpdateAccountCommand,
|
|
85
90
|
UpdateBotCommand,
|
|
@@ -90,7 +95,6 @@ const commands = {
|
|
|
90
95
|
UploadPictureV1Command,
|
|
91
96
|
VerifyBotSecretKeyCommand,
|
|
92
97
|
VerifyBotSecretKeyV1Command,
|
|
93
|
-
VerifyIdentityCommand,
|
|
94
98
|
};
|
|
95
99
|
export class Users extends UsersClient {
|
|
96
100
|
}
|
|
@@ -43,6 +43,20 @@ function createWildixAuthXbsHttpAuthOption(authParameters) {
|
|
|
43
43
|
export const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
|
|
44
44
|
const options = [];
|
|
45
45
|
switch (authParameters.operation) {
|
|
46
|
+
case "ApplyIdentityRemoval":
|
|
47
|
+
{
|
|
48
|
+
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
49
|
+
options.push(createWildixAuthXbsHttpAuthOption(authParameters));
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
;
|
|
53
|
+
case "ConfirmIdentityChallenge":
|
|
54
|
+
{
|
|
55
|
+
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
56
|
+
options.push(createWildixAuthXbsHttpAuthOption(authParameters));
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
;
|
|
46
60
|
case "CreateAnonymousSession":
|
|
47
61
|
{
|
|
48
62
|
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
@@ -56,21 +70,34 @@ export const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
|
|
|
56
70
|
break;
|
|
57
71
|
}
|
|
58
72
|
;
|
|
59
|
-
case "
|
|
73
|
+
case "ListIdentities":
|
|
60
74
|
{
|
|
61
75
|
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
62
76
|
options.push(createWildixAuthXbsHttpAuthOption(authParameters));
|
|
63
77
|
break;
|
|
64
78
|
}
|
|
65
79
|
;
|
|
66
|
-
case "
|
|
80
|
+
case "ListWorkspaces":
|
|
67
81
|
{
|
|
68
82
|
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
69
83
|
options.push(createWildixAuthXbsHttpAuthOption(authParameters));
|
|
70
84
|
break;
|
|
71
85
|
}
|
|
72
86
|
;
|
|
73
|
-
case "
|
|
87
|
+
case "ResendIdentityChallengeCode":
|
|
88
|
+
{
|
|
89
|
+
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
90
|
+
options.push(createWildixAuthXbsHttpAuthOption(authParameters));
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
;
|
|
94
|
+
case "ResetUserChatHistory":
|
|
95
|
+
{
|
|
96
|
+
options.push(createWildixAuthPbxHttpAuthOption(authParameters));
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
;
|
|
100
|
+
case "StartIdentityChallenge":
|
|
74
101
|
{
|
|
75
102
|
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
76
103
|
options.push(createWildixAuthXbsHttpAuthOption(authParameters));
|
|
@@ -101,13 +128,6 @@ export const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
|
|
|
101
128
|
break;
|
|
102
129
|
}
|
|
103
130
|
;
|
|
104
|
-
case "UnlinkIdentity":
|
|
105
|
-
{
|
|
106
|
-
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
107
|
-
options.push(createWildixAuthXbsHttpAuthOption(authParameters));
|
|
108
|
-
break;
|
|
109
|
-
}
|
|
110
|
-
;
|
|
111
131
|
case "UnlinkWorkspace":
|
|
112
132
|
{
|
|
113
133
|
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
@@ -128,13 +148,6 @@ export const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
|
|
|
128
148
|
break;
|
|
129
149
|
}
|
|
130
150
|
;
|
|
131
|
-
case "VerifyIdentity":
|
|
132
|
-
{
|
|
133
|
-
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
134
|
-
options.push(createWildixAuthXbsHttpAuthOption(authParameters));
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
;
|
|
138
151
|
default: {
|
|
139
152
|
options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
|
|
140
153
|
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import {
|
|
4
|
+
import { ApplyIdentityRemoval$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
|
-
export class
|
|
6
|
+
export class ApplyIdentityRemovalCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
8
8
|
.ep(commonParams)
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
11
|
})
|
|
12
|
-
.s("Users", "
|
|
13
|
-
.n("UsersClient", "
|
|
14
|
-
.sc(
|
|
12
|
+
.s("Users", "ApplyIdentityRemoval", {})
|
|
13
|
+
.n("UsersClient", "ApplyIdentityRemovalCommand")
|
|
14
|
+
.sc(ApplyIdentityRemoval$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -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 { ConfirmIdentityChallenge$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ConfirmIdentityChallengeCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Users", "ConfirmIdentityChallenge", {})
|
|
13
|
+
.n("UsersClient", "ConfirmIdentityChallengeCommand")
|
|
14
|
+
.sc(ConfirmIdentityChallenge$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -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 { ResendIdentityChallengeCode$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ResendIdentityChallengeCodeCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Users", "ResendIdentityChallengeCode", {})
|
|
13
|
+
.n("UsersClient", "ResendIdentityChallengeCodeCommand")
|
|
14
|
+
.sc(ResendIdentityChallengeCode$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import {
|
|
4
|
+
import { ResetUserChatHistory$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
|
-
export class
|
|
6
|
+
export class ResetUserChatHistoryCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
8
8
|
.ep(commonParams)
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
11
|
})
|
|
12
|
-
.s("Users", "
|
|
13
|
-
.n("UsersClient", "
|
|
14
|
-
.sc(
|
|
12
|
+
.s("Users", "ResetUserChatHistory", {})
|
|
13
|
+
.n("UsersClient", "ResetUserChatHistoryCommand")
|
|
14
|
+
.sc(ResetUserChatHistory$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import {
|
|
4
|
+
import { StartIdentityChallenge$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
|
-
export class
|
|
6
|
+
export class StartIdentityChallengeCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
8
8
|
.ep(commonParams)
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
11
|
})
|
|
12
|
-
.s("Users", "
|
|
13
|
-
.n("UsersClient", "
|
|
14
|
-
.sc(
|
|
12
|
+
.s("Users", "StartIdentityChallenge", {})
|
|
13
|
+
.n("UsersClient", "StartIdentityChallengeCommand")
|
|
14
|
+
.sc(StartIdentityChallenge$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
export * from "./ApplyIdentityRemovalCommand";
|
|
1
2
|
export * from "./BatchGetUsersCommand";
|
|
2
3
|
export * from "./BatchGetUsersEmailNotificationsSettingsCommand";
|
|
3
4
|
export * from "./BatchGetUsersPbxLinkDataCommand";
|
|
4
5
|
export * from "./BatchGetUsersPbxLinkDataV1Command";
|
|
5
6
|
export * from "./ChangeUserEmailCommand";
|
|
7
|
+
export * from "./ConfirmIdentityChallengeCommand";
|
|
6
8
|
export * from "./CreateAnonymousSessionCommand";
|
|
7
9
|
export * from "./CreateBotApiKeyCommand";
|
|
8
10
|
export * from "./CreateBotCommand";
|
|
@@ -20,7 +22,6 @@ export * from "./GetUserPbxLinkSuggestionCommand";
|
|
|
20
22
|
export * from "./GetUserPbxLinkSuggestionV1Command";
|
|
21
23
|
export * from "./IntelligenceSearchCommand";
|
|
22
24
|
export * from "./InviteCommand";
|
|
23
|
-
export * from "./LinkIdentityCommand";
|
|
24
25
|
export * from "./ListBotApiKeysCommand";
|
|
25
26
|
export * from "./ListBotsCommand";
|
|
26
27
|
export * from "./ListIdentitiesCommand";
|
|
@@ -29,9 +30,11 @@ export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
|
|
|
29
30
|
export * from "./QueryColleaguesCommand";
|
|
30
31
|
export * from "./QueryUserCommand";
|
|
31
32
|
export * from "./QueryUsersCommand";
|
|
33
|
+
export * from "./ResendIdentityChallengeCodeCommand";
|
|
34
|
+
export * from "./ResetUserChatHistoryCommand";
|
|
35
|
+
export * from "./StartIdentityChallengeCommand";
|
|
32
36
|
export * from "./ToggleTranscriptionEmailNotificationsSubscriptionCommand";
|
|
33
37
|
export * from "./ToggleUnreadEmailNotificationsSubscriptionCommand";
|
|
34
|
-
export * from "./UnlinkIdentityCommand";
|
|
35
38
|
export * from "./UnlinkWorkspaceCommand";
|
|
36
39
|
export * from "./UpdateAccountCommand";
|
|
37
40
|
export * from "./UpdateBotCallbackCommand";
|
|
@@ -42,4 +45,3 @@ export * from "./UploadPictureCommand";
|
|
|
42
45
|
export * from "./UploadPictureV1Command";
|
|
43
46
|
export * from "./VerifyBotSecretKeyCommand";
|
|
44
47
|
export * from "./VerifyBotSecretKeyV1Command";
|
|
45
|
-
export * from "./VerifyIdentityCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -93,6 +93,22 @@ export const BotLlmFunctionIntegrationMethod = {
|
|
|
93
93
|
export const BotLlmToolType = {
|
|
94
94
|
FUNCTION: "function",
|
|
95
95
|
};
|
|
96
|
+
export const IdentityType = {
|
|
97
|
+
EMAIL: "email",
|
|
98
|
+
PHONE: "phone",
|
|
99
|
+
};
|
|
100
|
+
export const IdentityChallengeStep = {
|
|
101
|
+
DONE: "done",
|
|
102
|
+
PRIMARY_CODE: "primaryCode",
|
|
103
|
+
READY_TO_APPLY: "readyToApply",
|
|
104
|
+
TARGET_CODE: "targetCode",
|
|
105
|
+
};
|
|
106
|
+
export const IdentityChallengeOperation = {
|
|
107
|
+
ADD: "add",
|
|
108
|
+
MAKE_PRIMARY: "makePrimary",
|
|
109
|
+
REMOVE: "remove",
|
|
110
|
+
VERIFY: "verify",
|
|
111
|
+
};
|
|
96
112
|
export const WorkspaceType = {
|
|
97
113
|
PERSONAL: "personal",
|
|
98
114
|
SUPPORT: "support",
|
package/dist-es/models/errors.js
CHANGED
|
@@ -31,6 +31,18 @@ export class RateLimitExceededException extends __BaseException {
|
|
|
31
31
|
this.retryAfter = opts.retryAfter;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
export class ServiceUnavailableException extends __BaseException {
|
|
35
|
+
name = "ServiceUnavailableException";
|
|
36
|
+
$fault = "server";
|
|
37
|
+
constructor(opts) {
|
|
38
|
+
super({
|
|
39
|
+
name: "ServiceUnavailableException",
|
|
40
|
+
$fault: "server",
|
|
41
|
+
...opts,
|
|
42
|
+
});
|
|
43
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
34
46
|
export class ValidationException extends __BaseException {
|
|
35
47
|
name = "ValidationException";
|
|
36
48
|
$fault = "client";
|
|
@@ -79,6 +91,42 @@ export class AccountNotFoundException extends __BaseException {
|
|
|
79
91
|
Object.setPrototypeOf(this, AccountNotFoundException.prototype);
|
|
80
92
|
}
|
|
81
93
|
}
|
|
94
|
+
export class CannotRemovePrimaryIdentityException extends __BaseException {
|
|
95
|
+
name = "CannotRemovePrimaryIdentityException";
|
|
96
|
+
$fault = "client";
|
|
97
|
+
constructor(opts) {
|
|
98
|
+
super({
|
|
99
|
+
name: "CannotRemovePrimaryIdentityException",
|
|
100
|
+
$fault: "client",
|
|
101
|
+
...opts,
|
|
102
|
+
});
|
|
103
|
+
Object.setPrototypeOf(this, CannotRemovePrimaryIdentityException.prototype);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export class ChallengeNotFoundException extends __BaseException {
|
|
107
|
+
name = "ChallengeNotFoundException";
|
|
108
|
+
$fault = "client";
|
|
109
|
+
constructor(opts) {
|
|
110
|
+
super({
|
|
111
|
+
name: "ChallengeNotFoundException",
|
|
112
|
+
$fault: "client",
|
|
113
|
+
...opts,
|
|
114
|
+
});
|
|
115
|
+
Object.setPrototypeOf(this, ChallengeNotFoundException.prototype);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export class IdentityNotFoundException extends __BaseException {
|
|
119
|
+
name = "IdentityNotFoundException";
|
|
120
|
+
$fault = "client";
|
|
121
|
+
constructor(opts) {
|
|
122
|
+
super({
|
|
123
|
+
name: "IdentityNotFoundException",
|
|
124
|
+
$fault: "client",
|
|
125
|
+
...opts,
|
|
126
|
+
});
|
|
127
|
+
Object.setPrototypeOf(this, IdentityNotFoundException.prototype);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
82
130
|
export class BotAlreadyExistsException extends __BaseException {
|
|
83
131
|
name = "BotAlreadyExistsException";
|
|
84
132
|
$fault = "client";
|
|
@@ -127,18 +175,6 @@ export class BotSecretKeyNotValidException extends __BaseException {
|
|
|
127
175
|
Object.setPrototypeOf(this, BotSecretKeyNotValidException.prototype);
|
|
128
176
|
}
|
|
129
177
|
}
|
|
130
|
-
export class CannotRemovePrimaryIdentityException extends __BaseException {
|
|
131
|
-
name = "CannotRemovePrimaryIdentityException";
|
|
132
|
-
$fault = "client";
|
|
133
|
-
constructor(opts) {
|
|
134
|
-
super({
|
|
135
|
-
name: "CannotRemovePrimaryIdentityException",
|
|
136
|
-
$fault: "client",
|
|
137
|
-
...opts,
|
|
138
|
-
});
|
|
139
|
-
Object.setPrototypeOf(this, CannotRemovePrimaryIdentityException.prototype);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
178
|
export class CannotUnbindDefaultWorkspaceException extends __BaseException {
|
|
143
179
|
name = "CannotUnbindDefaultWorkspaceException";
|
|
144
180
|
$fault = "client";
|
|
@@ -175,16 +211,16 @@ export class UserNotFoundException extends __BaseException {
|
|
|
175
211
|
Object.setPrototypeOf(this, UserNotFoundException.prototype);
|
|
176
212
|
}
|
|
177
213
|
}
|
|
178
|
-
export class
|
|
179
|
-
name = "
|
|
214
|
+
export class CodeExpiredException extends __BaseException {
|
|
215
|
+
name = "CodeExpiredException";
|
|
180
216
|
$fault = "client";
|
|
181
217
|
constructor(opts) {
|
|
182
218
|
super({
|
|
183
|
-
name: "
|
|
219
|
+
name: "CodeExpiredException",
|
|
184
220
|
$fault: "client",
|
|
185
221
|
...opts,
|
|
186
222
|
});
|
|
187
|
-
Object.setPrototypeOf(this,
|
|
223
|
+
Object.setPrototypeOf(this, CodeExpiredException.prototype);
|
|
188
224
|
}
|
|
189
225
|
}
|
|
190
226
|
export class IdentityAlreadyLinkedException extends __BaseException {
|
|
@@ -199,16 +235,56 @@ export class IdentityAlreadyLinkedException extends __BaseException {
|
|
|
199
235
|
Object.setPrototypeOf(this, IdentityAlreadyLinkedException.prototype);
|
|
200
236
|
}
|
|
201
237
|
}
|
|
202
|
-
export class
|
|
203
|
-
name = "
|
|
238
|
+
export class IncorrectCodeException extends __BaseException {
|
|
239
|
+
name = "IncorrectCodeException";
|
|
204
240
|
$fault = "client";
|
|
205
241
|
constructor(opts) {
|
|
206
242
|
super({
|
|
207
|
-
name: "
|
|
243
|
+
name: "IncorrectCodeException",
|
|
208
244
|
$fault: "client",
|
|
209
245
|
...opts,
|
|
210
246
|
});
|
|
211
|
-
Object.setPrototypeOf(this,
|
|
247
|
+
Object.setPrototypeOf(this, IncorrectCodeException.prototype);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
export class RateLimitedException extends __BaseException {
|
|
251
|
+
name = "RateLimitedException";
|
|
252
|
+
$fault = "client";
|
|
253
|
+
retryAfter;
|
|
254
|
+
constructor(opts) {
|
|
255
|
+
super({
|
|
256
|
+
name: "RateLimitedException",
|
|
257
|
+
$fault: "client",
|
|
258
|
+
...opts,
|
|
259
|
+
});
|
|
260
|
+
Object.setPrototypeOf(this, RateLimitedException.prototype);
|
|
261
|
+
this.retryAfter = opts.retryAfter;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
export class TooManyAttemptsException extends __BaseException {
|
|
265
|
+
name = "TooManyAttemptsException";
|
|
266
|
+
$fault = "client";
|
|
267
|
+
retryAfter;
|
|
268
|
+
constructor(opts) {
|
|
269
|
+
super({
|
|
270
|
+
name: "TooManyAttemptsException",
|
|
271
|
+
$fault: "client",
|
|
272
|
+
...opts,
|
|
273
|
+
});
|
|
274
|
+
Object.setPrototypeOf(this, TooManyAttemptsException.prototype);
|
|
275
|
+
this.retryAfter = opts.retryAfter;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
export class PublicAccessIsRestrictedException extends __BaseException {
|
|
279
|
+
name = "PublicAccessIsRestrictedException";
|
|
280
|
+
$fault = "client";
|
|
281
|
+
constructor(opts) {
|
|
282
|
+
super({
|
|
283
|
+
name: "PublicAccessIsRestrictedException",
|
|
284
|
+
$fault: "client",
|
|
285
|
+
...opts,
|
|
286
|
+
});
|
|
287
|
+
Object.setPrototypeOf(this, PublicAccessIsRestrictedException.prototype);
|
|
212
288
|
}
|
|
213
289
|
}
|
|
214
290
|
export class UserQueryPredicateNotMetException extends __BaseException {
|