@wildix/xbees-users-client 4.3.3-wms26787.2 → 4.4.0-stage.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Users.js +9 -1
- package/dist-cjs/auth/httpAuthSchemeProvider.js +12 -0
- package/dist-cjs/commands/ApplyAccountWorkspaceChangesCommand.js +20 -0
- package/dist-cjs/commands/ListAccountEmailChangesCommand.js +20 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/models/enums.js +73 -6
- package/dist-cjs/models/errors.js +39 -1
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListAccountEmailChangesPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/schemas/schemas_0.js +288 -102
- package/dist-es/Users.js +9 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +12 -0
- package/dist-es/commands/ApplyAccountWorkspaceChangesCommand.js +16 -0
- package/dist-es/commands/ListAccountEmailChangesCommand.js +16 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/enums.js +72 -5
- package/dist-es/models/errors.js +36 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAccountEmailChangesPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +284 -98
- package/dist-types/Users.d.ts +22 -1
- package/dist-types/UsersClient.d.ts +4 -2
- package/dist-types/commands/ApplyAccountWorkspaceChangesCommand.d.ts +193 -0
- package/dist-types/commands/ListAccountEmailChangesCommand.d.ts +101 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +288 -22
- package/dist-types/models/errors.d.ts +56 -0
- package/dist-types/models/models_0.d.ts +418 -2
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAccountEmailChangesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +19 -0
- package/package.json +5 -5
package/dist-es/Users.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
|
+
import { ApplyAccountWorkspaceChangesCommand, } from "./commands/ApplyAccountWorkspaceChangesCommand";
|
|
2
3
|
import { ApplyIdentityRemovalCommand, } from "./commands/ApplyIdentityRemovalCommand";
|
|
3
4
|
import { BatchGetUsersCommand, } from "./commands/BatchGetUsersCommand";
|
|
4
5
|
import { BatchGetUsersEmailNotificationsSettingsCommand, } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
|
|
@@ -23,6 +24,7 @@ import { GetUserPbxLinkSuggestionCommand, } from "./commands/GetUserPbxLinkSugge
|
|
|
23
24
|
import { GetUserPbxLinkSuggestionV1Command, } from "./commands/GetUserPbxLinkSuggestionV1Command";
|
|
24
25
|
import { IntelligenceSearchCommand, } from "./commands/IntelligenceSearchCommand";
|
|
25
26
|
import { InviteCommand } from "./commands/InviteCommand";
|
|
27
|
+
import { ListAccountEmailChangesCommand, } from "./commands/ListAccountEmailChangesCommand";
|
|
26
28
|
import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
|
|
27
29
|
import { ListBotsCommand } from "./commands/ListBotsCommand";
|
|
28
30
|
import { ListIdentitiesCommand, } from "./commands/ListIdentitiesCommand";
|
|
@@ -46,8 +48,10 @@ import { UploadPictureCommand, } from "./commands/UploadPictureCommand";
|
|
|
46
48
|
import { UploadPictureV1Command, } from "./commands/UploadPictureV1Command";
|
|
47
49
|
import { VerifyBotSecretKeyCommand, } from "./commands/VerifyBotSecretKeyCommand";
|
|
48
50
|
import { VerifyBotSecretKeyV1Command, } from "./commands/VerifyBotSecretKeyV1Command";
|
|
51
|
+
import { paginateListAccountEmailChanges } from "./pagination/ListAccountEmailChangesPaginator";
|
|
49
52
|
import { UsersClient } from "./UsersClient";
|
|
50
53
|
const commands = {
|
|
54
|
+
ApplyAccountWorkspaceChangesCommand,
|
|
51
55
|
ApplyIdentityRemovalCommand,
|
|
52
56
|
BatchGetUsersCommand,
|
|
53
57
|
BatchGetUsersEmailNotificationsSettingsCommand,
|
|
@@ -72,6 +76,7 @@ const commands = {
|
|
|
72
76
|
GetUserPbxLinkSuggestionV1Command,
|
|
73
77
|
IntelligenceSearchCommand,
|
|
74
78
|
InviteCommand,
|
|
79
|
+
ListAccountEmailChangesCommand,
|
|
75
80
|
ListBotApiKeysCommand,
|
|
76
81
|
ListBotsCommand,
|
|
77
82
|
ListIdentitiesCommand,
|
|
@@ -96,6 +101,9 @@ const commands = {
|
|
|
96
101
|
VerifyBotSecretKeyCommand,
|
|
97
102
|
VerifyBotSecretKeyV1Command,
|
|
98
103
|
};
|
|
104
|
+
const paginators = {
|
|
105
|
+
paginateListAccountEmailChanges,
|
|
106
|
+
};
|
|
99
107
|
export class Users extends UsersClient {
|
|
100
108
|
}
|
|
101
|
-
createAggregatedClient(commands, Users);
|
|
109
|
+
createAggregatedClient(commands, Users, { paginators });
|
|
@@ -43,6 +43,12 @@ function createWildixAuthXbsHttpAuthOption(authParameters) {
|
|
|
43
43
|
export const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
|
|
44
44
|
const options = [];
|
|
45
45
|
switch (authParameters.operation) {
|
|
46
|
+
case "ApplyAccountWorkspaceChanges":
|
|
47
|
+
{
|
|
48
|
+
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
;
|
|
46
52
|
case "ApplyIdentityRemoval":
|
|
47
53
|
{
|
|
48
54
|
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
@@ -70,6 +76,12 @@ export const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
|
|
|
70
76
|
break;
|
|
71
77
|
}
|
|
72
78
|
;
|
|
79
|
+
case "ListAccountEmailChanges":
|
|
80
|
+
{
|
|
81
|
+
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
;
|
|
73
85
|
case "ListIdentities":
|
|
74
86
|
{
|
|
75
87
|
options.push(createWildixAuthS2sHttpAuthOption(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 { ApplyAccountWorkspaceChanges$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ApplyAccountWorkspaceChangesCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Users", "ApplyAccountWorkspaceChanges", {})
|
|
13
|
+
.n("UsersClient", "ApplyAccountWorkspaceChangesCommand")
|
|
14
|
+
.sc(ApplyAccountWorkspaceChanges$)
|
|
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 { ListAccountEmailChanges$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListAccountEmailChangesCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Users", "ListAccountEmailChanges", {})
|
|
13
|
+
.n("UsersClient", "ListAccountEmailChangesCommand")
|
|
14
|
+
.sc(ListAccountEmailChanges$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./ApplyAccountWorkspaceChangesCommand";
|
|
1
2
|
export * from "./ApplyIdentityRemovalCommand";
|
|
2
3
|
export * from "./BatchGetUsersCommand";
|
|
3
4
|
export * from "./BatchGetUsersEmailNotificationsSettingsCommand";
|
|
@@ -22,6 +23,7 @@ export * from "./GetUserPbxLinkSuggestionCommand";
|
|
|
22
23
|
export * from "./GetUserPbxLinkSuggestionV1Command";
|
|
23
24
|
export * from "./IntelligenceSearchCommand";
|
|
24
25
|
export * from "./InviteCommand";
|
|
26
|
+
export * from "./ListAccountEmailChangesCommand";
|
|
25
27
|
export * from "./ListBotApiKeysCommand";
|
|
26
28
|
export * from "./ListBotsCommand";
|
|
27
29
|
export * from "./ListIdentitiesCommand";
|
package/dist-es/index.js
CHANGED
package/dist-es/models/enums.js
CHANGED
|
@@ -61,6 +61,78 @@ export const AppType = {
|
|
|
61
61
|
X_BEES: "x-bees",
|
|
62
62
|
X_HOPPERS: "x-hoppers",
|
|
63
63
|
};
|
|
64
|
+
export const AccountEmailChangeStatus = {
|
|
65
|
+
ABORTED: "ABORTED",
|
|
66
|
+
FAILED: "FAILED",
|
|
67
|
+
PENDING_REDRIVE: "PENDING_REDRIVE",
|
|
68
|
+
RUNNING: "RUNNING",
|
|
69
|
+
SUCCEEDED: "SUCCEEDED",
|
|
70
|
+
TIMED_OUT: "TIMED_OUT",
|
|
71
|
+
};
|
|
72
|
+
export const AccountWorkspaceChangeOperation = {
|
|
73
|
+
ATTACH: "attach",
|
|
74
|
+
DETACH: "detach",
|
|
75
|
+
MAKE_DEFAULT: "makeDefault",
|
|
76
|
+
};
|
|
77
|
+
export const AccountWorkspaceRefusalCode = {
|
|
78
|
+
DELETED_WORKSPACE: "deleted_workspace",
|
|
79
|
+
EXPECTED_INCOMPLETE: "expected_incomplete",
|
|
80
|
+
FOREIGN_STREAM_EMAIL: "foreign_stream_email",
|
|
81
|
+
NO_DEFAULT: "no_default",
|
|
82
|
+
PBX_OTHER_COMPANY: "pbx_other_company",
|
|
83
|
+
TOO_MANY_WRITES: "too_many_writes",
|
|
84
|
+
WORKSPACE_ALREADY_IN_ACCOUNT: "workspace_already_in_account",
|
|
85
|
+
WORKSPACE_HAS_ACCOUNT: "workspace_has_account",
|
|
86
|
+
WORKSPACE_NOT_IN_ACCOUNT: "workspace_not_in_account",
|
|
87
|
+
WORKSPACE_NOT_IN_SOURCE_ACCOUNT: "workspace_not_in_source_account",
|
|
88
|
+
};
|
|
89
|
+
export const AccountWorkspaceCheckCode = {
|
|
90
|
+
CONFLICT: "conflict",
|
|
91
|
+
DELETED_WORKSPACE: "deleted_workspace",
|
|
92
|
+
EMAIL_ROUTING_CHANGES: "email_routing_changes",
|
|
93
|
+
EXPECTED_INCOMPLETE: "expected_incomplete",
|
|
94
|
+
FOREIGN_STREAM_EMAIL: "foreign_stream_email",
|
|
95
|
+
NO_DEFAULT: "no_default",
|
|
96
|
+
ORPHAN_DEFAULT_MOVED: "orphan_default_moved",
|
|
97
|
+
ORPHAN_PERSONAL_WORKSPACE_CREATED: "orphan_personal_workspace_created",
|
|
98
|
+
PBX_LINK_MOVES: "pbx_link_moves",
|
|
99
|
+
PBX_LINK_STAYS: "pbx_link_stays",
|
|
100
|
+
PBX_OTHER_COMPANY: "pbx_other_company",
|
|
101
|
+
TOO_MANY_WRITES: "too_many_writes",
|
|
102
|
+
WORKSPACE_ALREADY_IN_ACCOUNT: "workspace_already_in_account",
|
|
103
|
+
WORKSPACE_HAS_ACCOUNT: "workspace_has_account",
|
|
104
|
+
WORKSPACE_NOT_IN_ACCOUNT: "workspace_not_in_account",
|
|
105
|
+
WORKSPACE_NOT_IN_SOURCE_ACCOUNT: "workspace_not_in_source_account",
|
|
106
|
+
};
|
|
107
|
+
export const AccountWorkspaceEffectName = {
|
|
108
|
+
CACHE: "cache",
|
|
109
|
+
COGNITO: "cognito",
|
|
110
|
+
JOB: "job",
|
|
111
|
+
STREAM: "stream",
|
|
112
|
+
};
|
|
113
|
+
export const AccountWorkspaceEffectStatus = {
|
|
114
|
+
FAILED: "failed",
|
|
115
|
+
OK: "ok",
|
|
116
|
+
SKIPPED: "skipped",
|
|
117
|
+
};
|
|
118
|
+
export const AccountWorkspaceRowEntity = {
|
|
119
|
+
ACCOUNT_SETTINGS: "accountSettings",
|
|
120
|
+
MEMBERSHIP: "membership",
|
|
121
|
+
PBX: "pbx",
|
|
122
|
+
PBX_USER: "pbxUser",
|
|
123
|
+
STREAM: "stream",
|
|
124
|
+
};
|
|
125
|
+
export const WorkspaceType = {
|
|
126
|
+
PERSONAL: "personal",
|
|
127
|
+
SUPPORT: "support",
|
|
128
|
+
WORK: "work",
|
|
129
|
+
};
|
|
130
|
+
export const AccountWorkspaceWriteKind = {
|
|
131
|
+
APPEND: "append",
|
|
132
|
+
DELETE: "delete",
|
|
133
|
+
PUT: "put",
|
|
134
|
+
UPDATE: "update",
|
|
135
|
+
};
|
|
64
136
|
export const BotAccess = {
|
|
65
137
|
EVERYBODY: "EVERYBODY",
|
|
66
138
|
ORGANIZATION: "ORGANIZATION",
|
|
@@ -109,8 +181,3 @@ export const IdentityChallengeOperation = {
|
|
|
109
181
|
REMOVE: "remove",
|
|
110
182
|
VERIFY: "verify",
|
|
111
183
|
};
|
|
112
|
-
export const WorkspaceType = {
|
|
113
|
-
PERSONAL: "personal",
|
|
114
|
-
SUPPORT: "support",
|
|
115
|
-
WORK: "work",
|
|
116
|
-
};
|
package/dist-es/models/errors.js
CHANGED
|
@@ -91,6 +91,42 @@ export class AccountNotFoundException extends __BaseException {
|
|
|
91
91
|
Object.setPrototypeOf(this, AccountNotFoundException.prototype);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
+
export class AccountWorkspaceChangeRefusedException extends __BaseException {
|
|
95
|
+
name = "AccountWorkspaceChangeRefusedException";
|
|
96
|
+
$fault = "client";
|
|
97
|
+
code;
|
|
98
|
+
row;
|
|
99
|
+
accountId;
|
|
100
|
+
workspaceId;
|
|
101
|
+
constructor(opts) {
|
|
102
|
+
super({
|
|
103
|
+
name: "AccountWorkspaceChangeRefusedException",
|
|
104
|
+
$fault: "client",
|
|
105
|
+
...opts,
|
|
106
|
+
});
|
|
107
|
+
Object.setPrototypeOf(this, AccountWorkspaceChangeRefusedException.prototype);
|
|
108
|
+
this.code = opts.code;
|
|
109
|
+
this.row = opts.row;
|
|
110
|
+
this.accountId = opts.accountId;
|
|
111
|
+
this.workspaceId = opts.workspaceId;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
export class AccountWorkspaceConflictException extends __BaseException {
|
|
115
|
+
name = "AccountWorkspaceConflictException";
|
|
116
|
+
$fault = "client";
|
|
117
|
+
row;
|
|
118
|
+
field;
|
|
119
|
+
constructor(opts) {
|
|
120
|
+
super({
|
|
121
|
+
name: "AccountWorkspaceConflictException",
|
|
122
|
+
$fault: "client",
|
|
123
|
+
...opts,
|
|
124
|
+
});
|
|
125
|
+
Object.setPrototypeOf(this, AccountWorkspaceConflictException.prototype);
|
|
126
|
+
this.row = opts.row;
|
|
127
|
+
this.field = opts.field;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
94
130
|
export class CannotRemovePrimaryIdentityException extends __BaseException {
|
|
95
131
|
name = "CannotRemovePrimaryIdentityException";
|
|
96
132
|
$fault = "client";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListAccountEmailChangesCommand, } from "../commands/ListAccountEmailChangesCommand";
|
|
3
|
+
import { UsersClient } from "../UsersClient";
|
|
4
|
+
export const paginateListAccountEmailChanges = createPaginator(UsersClient, ListAccountEmailChangesCommand, "nextToken", "nextToken", "limit");
|