@wildix/xbees-users-client 4.4.0-wms29809.2 → 4.6.0
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 +1 -9
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -12
- package/dist-cjs/commands/index.js +0 -2
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/enums.js +6 -67
- package/dist-cjs/models/errors.js +1 -39
- package/dist-cjs/schemas/schemas_0.js +106 -294
- package/dist-es/Users.js +1 -9
- package/dist-es/auth/httpAuthSchemeProvider.js +0 -12
- package/dist-es/commands/index.js +0 -2
- package/dist-es/index.js +0 -1
- package/dist-es/models/enums.js +5 -66
- package/dist-es/models/errors.js +0 -36
- package/dist-es/schemas/schemas_0.js +102 -290
- package/dist-types/Users.d.ts +1 -22
- package/dist-types/UsersClient.d.ts +2 -4
- package/dist-types/commands/QueryColleaguesCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +0 -2
- package/dist-types/index.d.ts +0 -1
- package/dist-types/models/enums.d.ts +22 -264
- package/dist-types/models/errors.d.ts +0 -56
- package/dist-types/models/models_0.d.ts +12 -417
- package/dist-types/schemas/schemas_0.d.ts +0 -19
- package/package.json +1 -1
- package/dist-cjs/commands/ApplyAccountWorkspaceChangesCommand.js +0 -20
- package/dist-cjs/commands/ListAccountEmailChangesCommand.js +0 -20
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListAccountEmailChangesPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -5
- package/dist-es/commands/ApplyAccountWorkspaceChangesCommand.js +0 -16
- package/dist-es/commands/ListAccountEmailChangesCommand.js +0 -16
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListAccountEmailChangesPaginator.js +0 -4
- package/dist-es/pagination/index.js +0 -2
- package/dist-types/commands/ApplyAccountWorkspaceChangesCommand.d.ts +0 -194
- package/dist-types/commands/ListAccountEmailChangesCommand.d.ts +0 -101
- package/dist-types/pagination/Interfaces.d.ts +0 -8
- package/dist-types/pagination/ListAccountEmailChangesPaginator.d.ts +0 -7
- package/dist-types/pagination/index.d.ts +0 -2
package/dist-types/Users.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions
|
|
2
|
-
import { type ApplyAccountWorkspaceChangesCommandInput, type ApplyAccountWorkspaceChangesCommandOutput } from "./commands/ApplyAccountWorkspaceChangesCommand";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
3
2
|
import { type BatchGetUsersCommandInput, type BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
|
|
4
3
|
import { type BatchGetUsersEmailNotificationsSettingsCommandInput, type BatchGetUsersEmailNotificationsSettingsCommandOutput } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
|
|
5
4
|
import { type BatchGetUsersPbxLinkDataCommandInput, type BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
|
|
@@ -23,7 +22,6 @@ import { type GetUserPbxLinkSuggestionV1CommandInput, type GetUserPbxLinkSuggest
|
|
|
23
22
|
import { type IntelligenceSearchCommandInput, type IntelligenceSearchCommandOutput } from "./commands/IntelligenceSearchCommand";
|
|
24
23
|
import { type InviteCommandInput, type InviteCommandOutput } from "./commands/InviteCommand";
|
|
25
24
|
import { type LinkIdentityCommandInput, type LinkIdentityCommandOutput } from "./commands/LinkIdentityCommand";
|
|
26
|
-
import { type ListAccountEmailChangesCommandInput, type ListAccountEmailChangesCommandOutput } from "./commands/ListAccountEmailChangesCommand";
|
|
27
25
|
import { type ListBotApiKeysCommandInput, type ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
|
|
28
26
|
import { type ListBotsCommandInput, type ListBotsCommandOutput } from "./commands/ListBotsCommand";
|
|
29
27
|
import { type ListIdentitiesCommandInput, type ListIdentitiesCommandOutput } from "./commands/ListIdentitiesCommand";
|
|
@@ -48,12 +46,6 @@ import { type VerifyBotSecretKeyV1CommandInput, type VerifyBotSecretKeyV1Command
|
|
|
48
46
|
import { type VerifyIdentityCommandInput, type VerifyIdentityCommandOutput } from "./commands/VerifyIdentityCommand";
|
|
49
47
|
import { UsersClient } from "./UsersClient";
|
|
50
48
|
export interface Users {
|
|
51
|
-
/**
|
|
52
|
-
* @see {@link ApplyAccountWorkspaceChangesCommand}
|
|
53
|
-
*/
|
|
54
|
-
applyAccountWorkspaceChanges(args: ApplyAccountWorkspaceChangesCommandInput, options?: __HttpHandlerOptions): Promise<ApplyAccountWorkspaceChangesCommandOutput>;
|
|
55
|
-
applyAccountWorkspaceChanges(args: ApplyAccountWorkspaceChangesCommandInput, cb: (err: any, data?: ApplyAccountWorkspaceChangesCommandOutput) => void): void;
|
|
56
|
-
applyAccountWorkspaceChanges(args: ApplyAccountWorkspaceChangesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ApplyAccountWorkspaceChangesCommandOutput) => void): void;
|
|
57
49
|
/**
|
|
58
50
|
* @see {@link BatchGetUsersCommand}
|
|
59
51
|
*/
|
|
@@ -194,12 +186,6 @@ export interface Users {
|
|
|
194
186
|
linkIdentity(args: LinkIdentityCommandInput, options?: __HttpHandlerOptions): Promise<LinkIdentityCommandOutput>;
|
|
195
187
|
linkIdentity(args: LinkIdentityCommandInput, cb: (err: any, data?: LinkIdentityCommandOutput) => void): void;
|
|
196
188
|
linkIdentity(args: LinkIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LinkIdentityCommandOutput) => void): void;
|
|
197
|
-
/**
|
|
198
|
-
* @see {@link ListAccountEmailChangesCommand}
|
|
199
|
-
*/
|
|
200
|
-
listAccountEmailChanges(args: ListAccountEmailChangesCommandInput, options?: __HttpHandlerOptions): Promise<ListAccountEmailChangesCommandOutput>;
|
|
201
|
-
listAccountEmailChanges(args: ListAccountEmailChangesCommandInput, cb: (err: any, data?: ListAccountEmailChangesCommandOutput) => void): void;
|
|
202
|
-
listAccountEmailChanges(args: ListAccountEmailChangesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountEmailChangesCommandOutput) => void): void;
|
|
203
189
|
/**
|
|
204
190
|
* @see {@link ListBotApiKeysCommand}
|
|
205
191
|
*/
|
|
@@ -334,13 +320,6 @@ export interface Users {
|
|
|
334
320
|
verifyIdentity(args: VerifyIdentityCommandInput, options?: __HttpHandlerOptions): Promise<VerifyIdentityCommandOutput>;
|
|
335
321
|
verifyIdentity(args: VerifyIdentityCommandInput, cb: (err: any, data?: VerifyIdentityCommandOutput) => void): void;
|
|
336
322
|
verifyIdentity(args: VerifyIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifyIdentityCommandOutput) => void): void;
|
|
337
|
-
/**
|
|
338
|
-
* @see {@link ListAccountEmailChangesCommand}
|
|
339
|
-
* @param args - command input.
|
|
340
|
-
* @param paginationConfig - optional pagination config.
|
|
341
|
-
* @returns AsyncIterable of {@link ListAccountEmailChangesCommandOutput}.
|
|
342
|
-
*/
|
|
343
|
-
paginateListAccountEmailChanges(args: ListAccountEmailChangesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAccountEmailChangesCommandOutput>;
|
|
344
323
|
}
|
|
345
324
|
/**
|
|
346
325
|
* @public
|
|
@@ -5,7 +5,6 @@ import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/cor
|
|
|
5
5
|
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
|
|
6
6
|
import type { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
7
7
|
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
8
|
-
import type { ApplyAccountWorkspaceChangesCommandInput, ApplyAccountWorkspaceChangesCommandOutput } from "./commands/ApplyAccountWorkspaceChangesCommand";
|
|
9
8
|
import type { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
|
|
10
9
|
import type { BatchGetUsersEmailNotificationsSettingsCommandInput, BatchGetUsersEmailNotificationsSettingsCommandOutput } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
|
|
11
10
|
import type { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
|
|
@@ -29,7 +28,6 @@ import type { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1
|
|
|
29
28
|
import type { IntelligenceSearchCommandInput, IntelligenceSearchCommandOutput } from "./commands/IntelligenceSearchCommand";
|
|
30
29
|
import type { InviteCommandInput, InviteCommandOutput } from "./commands/InviteCommand";
|
|
31
30
|
import type { LinkIdentityCommandInput, LinkIdentityCommandOutput } from "./commands/LinkIdentityCommand";
|
|
32
|
-
import type { ListAccountEmailChangesCommandInput, ListAccountEmailChangesCommandOutput } from "./commands/ListAccountEmailChangesCommand";
|
|
33
31
|
import type { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
|
|
34
32
|
import type { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
|
|
35
33
|
import type { ListIdentitiesCommandInput, ListIdentitiesCommandOutput } from "./commands/ListIdentitiesCommand";
|
|
@@ -58,11 +56,11 @@ export { __Client };
|
|
|
58
56
|
/**
|
|
59
57
|
* @public
|
|
60
58
|
*/
|
|
61
|
-
export type ServiceInputTypes =
|
|
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;
|
|
62
60
|
/**
|
|
63
61
|
* @public
|
|
64
62
|
*/
|
|
65
|
-
export type ServiceOutputTypes =
|
|
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;
|
|
66
64
|
/**
|
|
67
65
|
* @public
|
|
68
66
|
*/
|
|
@@ -64,6 +64,7 @@ declare const QueryColleaguesCommand_base: {
|
|
|
64
64
|
* sort: [
|
|
65
65
|
* "extension" || "officePhone" || "mobilePhone" || "name" || "email" || "role" || "groupDn" || "language" || "dialplan" || "faxDialplan" || "department" || "login" || "id" || "pbxDn" || "picture" || "sourceId" || "licenseType",
|
|
66
66
|
* ],
|
|
67
|
+
* sortBy: "extension" || "officePhone" || "mobilePhone" || "name" || "email" || "role" || "groupDn" || "language" || "dialplan" || "faxDialplan" || "department" || "login" || "id" || "pbxDn" || "picture" || "sourceId" || "licenseType",
|
|
67
68
|
* start: Number("int"),
|
|
68
69
|
* count: Number("int"),
|
|
69
70
|
* dir: "asc" || "desc",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from "./ApplyAccountWorkspaceChangesCommand";
|
|
2
1
|
export * from "./BatchGetUsersCommand";
|
|
3
2
|
export * from "./BatchGetUsersEmailNotificationsSettingsCommand";
|
|
4
3
|
export * from "./BatchGetUsersPbxLinkDataCommand";
|
|
@@ -22,7 +21,6 @@ export * from "./GetUserPbxLinkSuggestionV1Command";
|
|
|
22
21
|
export * from "./IntelligenceSearchCommand";
|
|
23
22
|
export * from "./InviteCommand";
|
|
24
23
|
export * from "./LinkIdentityCommand";
|
|
25
|
-
export * from "./ListAccountEmailChangesCommand";
|
|
26
24
|
export * from "./ListBotApiKeysCommand";
|
|
27
25
|
export * from "./ListBotsCommand";
|
|
28
26
|
export * from "./ListIdentitiesCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export type { RuntimeExtension } from "./runtimeExtensions";
|
|
|
5
5
|
export type { UsersExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
7
|
export * from "./schemas/schemas_0";
|
|
8
|
-
export * from "./pagination";
|
|
9
8
|
export * from "./models/enums";
|
|
10
9
|
export * from "./models/errors";
|
|
11
10
|
export * from "./models/models_0";
|
|
@@ -124,270 +124,6 @@ export declare const AppType: {
|
|
|
124
124
|
* @public
|
|
125
125
|
*/
|
|
126
126
|
export type AppType = (typeof AppType)[keyof typeof AppType];
|
|
127
|
-
/**
|
|
128
|
-
* @public
|
|
129
|
-
* @enum
|
|
130
|
-
*/
|
|
131
|
-
export declare const AccountEmailChangeStatus: {
|
|
132
|
-
readonly ABORTED: "ABORTED";
|
|
133
|
-
readonly FAILED: "FAILED";
|
|
134
|
-
readonly PENDING_REDRIVE: "PENDING_REDRIVE";
|
|
135
|
-
readonly RUNNING: "RUNNING";
|
|
136
|
-
readonly SUCCEEDED: "SUCCEEDED";
|
|
137
|
-
readonly TIMED_OUT: "TIMED_OUT";
|
|
138
|
-
};
|
|
139
|
-
/**
|
|
140
|
-
* @public
|
|
141
|
-
*/
|
|
142
|
-
export type AccountEmailChangeStatus = (typeof AccountEmailChangeStatus)[keyof typeof AccountEmailChangeStatus];
|
|
143
|
-
/**
|
|
144
|
-
* @public
|
|
145
|
-
* @enum
|
|
146
|
-
*/
|
|
147
|
-
export declare const AccountWorkspaceChangeOperation: {
|
|
148
|
-
/**
|
|
149
|
-
* Move the membership of the workspace from `fromAccountId` to the change's account (keeping its `type`), or, without `fromAccountId`, attach a workspace that has no membership in any account.
|
|
150
|
-
*/
|
|
151
|
-
readonly ATTACH: "attach";
|
|
152
|
-
/**
|
|
153
|
-
* Remove the membership of the workspace from the change's account. The Stream and Pbx rows of the workspace and its channels stay.
|
|
154
|
-
*/
|
|
155
|
-
readonly DETACH: "detach";
|
|
156
|
-
/**
|
|
157
|
-
* Make the workspace the account's default (the one sign-in opens). Only the default changes: the PBX link stays on the workspace that holds it.
|
|
158
|
-
*/
|
|
159
|
-
readonly MAKE_DEFAULT: "makeDefault";
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* @public
|
|
163
|
-
*/
|
|
164
|
-
export type AccountWorkspaceChangeOperation = (typeof AccountWorkspaceChangeOperation)[keyof typeof AccountWorkspaceChangeOperation];
|
|
165
|
-
/**
|
|
166
|
-
* @public
|
|
167
|
-
* @enum
|
|
168
|
-
*/
|
|
169
|
-
export declare const AccountWorkspaceRefusalCode: {
|
|
170
|
-
/**
|
|
171
|
-
* attach: the account would hold two workspaces of one company and one address type, or two workspaces without a company. Address type: `phone` when the workspace's effective Stream email (`Workspace#<ws>/Stream`, else the legacy `User#<ws>/Stream`) is `<8 to 15 digits>@phone.wildix.com`, otherwise `email` (no Stream row or no email counts as `email`). Company: the `company` of the effective Stream row, else of the effective Pbx row; none when both lack it. The rule counts the active memberships of the account after all the changes of the call (a deleted workspace is still a member and counts): at most one email workspace and one phone workspace per company, and at most one workspace without a company, whatever its address type. Accounts that already break the rule are not blocked as a whole: a change is refused only when the draft makes a group worse, that is, a group that holds more than one workspace after the changes and whose workspaces are not all in the same group before them (so a detach, a makeDefault, or a draft that touches only other accounts passes). `accountId` is the account and `workspaceId` the incoming workspace; the message names the company (or no company), the address type and the workspace already in the account.
|
|
172
|
-
*/
|
|
173
|
-
readonly COMPANY_WORKSPACE_TAKEN: "company_workspace_taken";
|
|
174
|
-
/**
|
|
175
|
-
* The workspace is deleted.
|
|
176
|
-
*/
|
|
177
|
-
readonly DELETED_WORKSPACE: "deleted_workspace";
|
|
178
|
-
/**
|
|
179
|
-
* A row the change touches is missing from `expected`, or lacks the fields it must carry.
|
|
180
|
-
*/
|
|
181
|
-
readonly EXPECTED_INCOMPLETE: "expected_incomplete";
|
|
182
|
-
/**
|
|
183
|
-
* The workspace's Stream email belongs to another person.
|
|
184
|
-
*/
|
|
185
|
-
readonly FOREIGN_STREAM_EMAIL: "foreign_stream_email";
|
|
186
|
-
/**
|
|
187
|
-
* A login account (one that still has an identity) would be left without a default workspace. It never gets an automatic default.
|
|
188
|
-
*/
|
|
189
|
-
readonly NO_DEFAULT: "no_default";
|
|
190
|
-
/**
|
|
191
|
-
* The plan needs more row writes than one DynamoDB transaction holds (100).
|
|
192
|
-
*/
|
|
193
|
-
readonly TOO_MANY_WRITES: "too_many_writes";
|
|
194
|
-
/**
|
|
195
|
-
* attach: the workspace is already a membership of the change's `accountId`.
|
|
196
|
-
*/
|
|
197
|
-
readonly WORKSPACE_ALREADY_IN_ACCOUNT: "workspace_already_in_account";
|
|
198
|
-
/**
|
|
199
|
-
* attach without `fromAccountId`: the workspace is a member of an account (found through the `AccountsByWorkspace` index), so it is not detached. Name the account in `fromAccountId`.
|
|
200
|
-
*/
|
|
201
|
-
readonly WORKSPACE_HAS_ACCOUNT: "workspace_has_account";
|
|
202
|
-
/**
|
|
203
|
-
* detach or makeDefault: the workspace is not a membership of the change's `accountId`.
|
|
204
|
-
*/
|
|
205
|
-
readonly WORKSPACE_NOT_IN_ACCOUNT: "workspace_not_in_account";
|
|
206
|
-
/**
|
|
207
|
-
* attach with `fromAccountId`: the workspace is not a membership of `fromAccountId` (or that account does not exist).
|
|
208
|
-
*/
|
|
209
|
-
readonly WORKSPACE_NOT_IN_SOURCE_ACCOUNT: "workspace_not_in_source_account";
|
|
210
|
-
};
|
|
211
|
-
/**
|
|
212
|
-
* @public
|
|
213
|
-
*/
|
|
214
|
-
export type AccountWorkspaceRefusalCode = (typeof AccountWorkspaceRefusalCode)[keyof typeof AccountWorkspaceRefusalCode];
|
|
215
|
-
/**
|
|
216
|
-
* @public
|
|
217
|
-
* @enum
|
|
218
|
-
*/
|
|
219
|
-
export declare const AccountWorkspaceCheckCode: {
|
|
220
|
-
/**
|
|
221
|
-
* Blocking, see AccountWorkspaceRefusalCode.
|
|
222
|
-
*/
|
|
223
|
-
readonly COMPANY_WORKSPACE_TAKEN: "company_workspace_taken";
|
|
224
|
-
/**
|
|
225
|
-
* Blocking. A row differs from `expected`: `row` names it, and `field` the differing attribute when the row exists as expected. On apply: AccountWorkspaceConflictException.
|
|
226
|
-
*/
|
|
227
|
-
readonly CONFLICT: "conflict";
|
|
228
|
-
/**
|
|
229
|
-
* Blocking, see AccountWorkspaceRefusalCode.
|
|
230
|
-
*/
|
|
231
|
-
readonly DELETED_WORKSPACE: "deleted_workspace";
|
|
232
|
-
/**
|
|
233
|
-
* Not blocking. The account gets a new default: email resolution (direct messages, invites, call messages) follows it.
|
|
234
|
-
*/
|
|
235
|
-
readonly EMAIL_ROUTING_CHANGES: "email_routing_changes";
|
|
236
|
-
/**
|
|
237
|
-
* Blocking, see AccountWorkspaceRefusalCode.
|
|
238
|
-
*/
|
|
239
|
-
readonly EXPECTED_INCOMPLETE: "expected_incomplete";
|
|
240
|
-
/**
|
|
241
|
-
* Blocking, see AccountWorkspaceRefusalCode.
|
|
242
|
-
*/
|
|
243
|
-
readonly FOREIGN_STREAM_EMAIL: "foreign_stream_email";
|
|
244
|
-
/**
|
|
245
|
-
* Blocking, see AccountWorkspaceRefusalCode.
|
|
246
|
-
*/
|
|
247
|
-
readonly NO_DEFAULT: "no_default";
|
|
248
|
-
/**
|
|
249
|
-
* Not blocking. An orphaned account loses its default: the default moves to its remaining active workspace with the latest `lastUsedAt` (`workspaceId`, `accountId`).
|
|
250
|
-
*/
|
|
251
|
-
readonly ORPHAN_DEFAULT_MOVED: "orphan_default_moved";
|
|
252
|
-
/**
|
|
253
|
-
* Not blocking. An orphaned account is left with no active workspace: a new personal workspace is created and becomes its default.
|
|
254
|
-
*/
|
|
255
|
-
readonly ORPHAN_PERSONAL_WORKSPACE_CREATED: "orphan_personal_workspace_created";
|
|
256
|
-
/**
|
|
257
|
-
* Blocking, see AccountWorkspaceRefusalCode.
|
|
258
|
-
*/
|
|
259
|
-
readonly TOO_MANY_WRITES: "too_many_writes";
|
|
260
|
-
/**
|
|
261
|
-
* Blocking, see AccountWorkspaceRefusalCode.
|
|
262
|
-
*/
|
|
263
|
-
readonly WORKSPACE_ALREADY_IN_ACCOUNT: "workspace_already_in_account";
|
|
264
|
-
/**
|
|
265
|
-
* Blocking, see AccountWorkspaceRefusalCode.
|
|
266
|
-
*/
|
|
267
|
-
readonly WORKSPACE_HAS_ACCOUNT: "workspace_has_account";
|
|
268
|
-
/**
|
|
269
|
-
* Blocking, see AccountWorkspaceRefusalCode.
|
|
270
|
-
*/
|
|
271
|
-
readonly WORKSPACE_NOT_IN_ACCOUNT: "workspace_not_in_account";
|
|
272
|
-
/**
|
|
273
|
-
* Blocking, see AccountWorkspaceRefusalCode.
|
|
274
|
-
*/
|
|
275
|
-
readonly WORKSPACE_NOT_IN_SOURCE_ACCOUNT: "workspace_not_in_source_account";
|
|
276
|
-
};
|
|
277
|
-
/**
|
|
278
|
-
* @public
|
|
279
|
-
*/
|
|
280
|
-
export type AccountWorkspaceCheckCode = (typeof AccountWorkspaceCheckCode)[keyof typeof AccountWorkspaceCheckCode];
|
|
281
|
-
/**
|
|
282
|
-
* @public
|
|
283
|
-
* @enum
|
|
284
|
-
*/
|
|
285
|
-
export declare const AccountWorkspaceEffectName: {
|
|
286
|
-
/**
|
|
287
|
-
* Workspaces cache of a touched account invalidated (version bump).
|
|
288
|
-
*/
|
|
289
|
-
readonly CACHE: "cache";
|
|
290
|
-
/**
|
|
291
|
-
* `custom:wid` set to the new default on the Cognito users of the account's identities. Applies at the next token refresh.
|
|
292
|
-
*/
|
|
293
|
-
readonly COGNITO: "cognito";
|
|
294
|
-
};
|
|
295
|
-
/**
|
|
296
|
-
* @public
|
|
297
|
-
*/
|
|
298
|
-
export type AccountWorkspaceEffectName = (typeof AccountWorkspaceEffectName)[keyof typeof AccountWorkspaceEffectName];
|
|
299
|
-
/**
|
|
300
|
-
* @public
|
|
301
|
-
* @enum
|
|
302
|
-
*/
|
|
303
|
-
export declare const AccountWorkspaceEffectStatus: {
|
|
304
|
-
/**
|
|
305
|
-
* Failed. The committed change stays; `detail` says what failed.
|
|
306
|
-
*/
|
|
307
|
-
readonly FAILED: "failed";
|
|
308
|
-
/**
|
|
309
|
-
* Done.
|
|
310
|
-
*/
|
|
311
|
-
readonly OK: "ok";
|
|
312
|
-
/**
|
|
313
|
-
* Not needed or nothing to do, e.g. no Cognito user found for an identity; `detail` says why.
|
|
314
|
-
*/
|
|
315
|
-
readonly SKIPPED: "skipped";
|
|
316
|
-
};
|
|
317
|
-
/**
|
|
318
|
-
* @public
|
|
319
|
-
*/
|
|
320
|
-
export type AccountWorkspaceEffectStatus = (typeof AccountWorkspaceEffectStatus)[keyof typeof AccountWorkspaceEffectStatus];
|
|
321
|
-
/**
|
|
322
|
-
* @public
|
|
323
|
-
* @enum
|
|
324
|
-
*/
|
|
325
|
-
export declare const AccountWorkspaceRowEntity: {
|
|
326
|
-
/**
|
|
327
|
-
* Account settings: `Account#<acc>/Settings` (`defaultWorkspace`).
|
|
328
|
-
*/
|
|
329
|
-
readonly ACCOUNT_SETTINGS: "accountSettings";
|
|
330
|
-
/**
|
|
331
|
-
* Membership of a workspace in an account: `Account#<acc>/Workspace#<ws>`.
|
|
332
|
-
*/
|
|
333
|
-
readonly MEMBERSHIP: "membership";
|
|
334
|
-
/**
|
|
335
|
-
* PBX link of a workspace: `Workspace#<ws>/Pbx`.
|
|
336
|
-
*/
|
|
337
|
-
readonly PBX: "pbx";
|
|
338
|
-
/**
|
|
339
|
-
* Stream link of a workspace: `Workspace#<ws>/Stream`.
|
|
340
|
-
*/
|
|
341
|
-
readonly STREAM: "stream";
|
|
342
|
-
};
|
|
343
|
-
/**
|
|
344
|
-
* @public
|
|
345
|
-
*/
|
|
346
|
-
export type AccountWorkspaceRowEntity = (typeof AccountWorkspaceRowEntity)[keyof typeof AccountWorkspaceRowEntity];
|
|
347
|
-
/**
|
|
348
|
-
* @public
|
|
349
|
-
* @enum
|
|
350
|
-
*/
|
|
351
|
-
export declare const WorkspaceType: {
|
|
352
|
-
/**
|
|
353
|
-
* User is not linked to any company.
|
|
354
|
-
*/
|
|
355
|
-
readonly PERSONAL: "personal";
|
|
356
|
-
/**
|
|
357
|
-
* Support staff with temporary access to a user's workspace.
|
|
358
|
-
*/
|
|
359
|
-
readonly SUPPORT: "support";
|
|
360
|
-
/**
|
|
361
|
-
* User is a colleague of the company.
|
|
362
|
-
*/
|
|
363
|
-
readonly WORK: "work";
|
|
364
|
-
};
|
|
365
|
-
/**
|
|
366
|
-
* @public
|
|
367
|
-
*/
|
|
368
|
-
export type WorkspaceType = (typeof WorkspaceType)[keyof typeof WorkspaceType];
|
|
369
|
-
/**
|
|
370
|
-
* @public
|
|
371
|
-
* @enum
|
|
372
|
-
*/
|
|
373
|
-
export declare const AccountWorkspaceWriteKind: {
|
|
374
|
-
/**
|
|
375
|
-
* The row is deleted: `before` is the whole deleted row, `after` is absent.
|
|
376
|
-
*/
|
|
377
|
-
readonly DELETE: "delete";
|
|
378
|
-
/**
|
|
379
|
-
* The row is created or replaced: `after` is the whole new row, `before` the replaced row (absent when the row did not exist).
|
|
380
|
-
*/
|
|
381
|
-
readonly PUT: "put";
|
|
382
|
-
/**
|
|
383
|
-
* Attributes of an existing row are set or removed: `before` and `after` hold the changed attributes only (`null` = absent).
|
|
384
|
-
*/
|
|
385
|
-
readonly UPDATE: "update";
|
|
386
|
-
};
|
|
387
|
-
/**
|
|
388
|
-
* @public
|
|
389
|
-
*/
|
|
390
|
-
export type AccountWorkspaceWriteKind = (typeof AccountWorkspaceWriteKind)[keyof typeof AccountWorkspaceWriteKind];
|
|
391
127
|
/**
|
|
392
128
|
* @public
|
|
393
129
|
* @enum
|
|
@@ -468,3 +204,25 @@ export declare const BotLlmToolType: {
|
|
|
468
204
|
* @public
|
|
469
205
|
*/
|
|
470
206
|
export type BotLlmToolType = (typeof BotLlmToolType)[keyof typeof BotLlmToolType];
|
|
207
|
+
/**
|
|
208
|
+
* @public
|
|
209
|
+
* @enum
|
|
210
|
+
*/
|
|
211
|
+
export declare const WorkspaceType: {
|
|
212
|
+
/**
|
|
213
|
+
* User is not linked to any company.
|
|
214
|
+
*/
|
|
215
|
+
readonly PERSONAL: "personal";
|
|
216
|
+
/**
|
|
217
|
+
* Support staff with temporary access to a user's workspace.
|
|
218
|
+
*/
|
|
219
|
+
readonly SUPPORT: "support";
|
|
220
|
+
/**
|
|
221
|
+
* User is a colleague of the company.
|
|
222
|
+
*/
|
|
223
|
+
readonly WORK: "work";
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* @public
|
|
227
|
+
*/
|
|
228
|
+
export type WorkspaceType = (typeof WorkspaceType)[keyof typeof WorkspaceType];
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
|
|
2
|
-
import type { AccountWorkspaceRefusalCode } from "./enums";
|
|
3
|
-
import type { AccountWorkspaceRowKey } from "./models_0";
|
|
4
2
|
import { UsersServiceException as __BaseException } from "./UsersServiceException";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
@@ -88,60 +86,6 @@ export declare class AccountNotFoundException extends __BaseException {
|
|
|
88
86
|
*/
|
|
89
87
|
constructor(opts: __ExceptionOptionType<AccountNotFoundException, __BaseException>);
|
|
90
88
|
}
|
|
91
|
-
/**
|
|
92
|
-
* The change breaks a rule of the owner and is refused (an apply whose checks hold a blocking refusal). Nothing was written. When several refusals apply, the first one found is named; a dry run lists every one as a blocking check.
|
|
93
|
-
* @public
|
|
94
|
-
*/
|
|
95
|
-
export declare class AccountWorkspaceChangeRefusedException extends __BaseException {
|
|
96
|
-
readonly name: "AccountWorkspaceChangeRefusedException";
|
|
97
|
-
readonly $fault: "client";
|
|
98
|
-
/**
|
|
99
|
-
* Why the change is refused.
|
|
100
|
-
* @public
|
|
101
|
-
*/
|
|
102
|
-
code: AccountWorkspaceRefusalCode;
|
|
103
|
-
/**
|
|
104
|
-
* The row the refusal is about, when it is about one (always for `expected_incomplete`).
|
|
105
|
-
* @public
|
|
106
|
-
*/
|
|
107
|
-
row?: AccountWorkspaceRowKey | undefined;
|
|
108
|
-
/**
|
|
109
|
-
* The account the refusal is about, when it is about one.
|
|
110
|
-
* @public
|
|
111
|
-
*/
|
|
112
|
-
accountId?: string | undefined;
|
|
113
|
-
/**
|
|
114
|
-
* The workspace the refusal is about, when it is about one.
|
|
115
|
-
* @public
|
|
116
|
-
*/
|
|
117
|
-
workspaceId?: string | undefined;
|
|
118
|
-
/**
|
|
119
|
-
* @internal
|
|
120
|
-
*/
|
|
121
|
-
constructor(opts: __ExceptionOptionType<AccountWorkspaceChangeRefusedException, __BaseException>);
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* A row the change touches no longer holds the values in `expected` (another writer changed it after the caller read it). Nothing was written. When several rows differ, the first one found is named; a dry run lists every one as a `conflict` check. Read the rows again and retry with fresh `expected`.
|
|
125
|
-
* @public
|
|
126
|
-
*/
|
|
127
|
-
export declare class AccountWorkspaceConflictException extends __BaseException {
|
|
128
|
-
readonly name: "AccountWorkspaceConflictException";
|
|
129
|
-
readonly $fault: "client";
|
|
130
|
-
/**
|
|
131
|
-
* The row that differs.
|
|
132
|
-
* @public
|
|
133
|
-
*/
|
|
134
|
-
row: AccountWorkspaceRowKey;
|
|
135
|
-
/**
|
|
136
|
-
* The attribute of that row whose stored value differs from `expected`. Present when the row exists as expected but a listed field differs; absent when a row expected absent now exists or a row expected present is gone, then only `row` names the conflict.
|
|
137
|
-
* @public
|
|
138
|
-
*/
|
|
139
|
-
field?: string | undefined;
|
|
140
|
-
/**
|
|
141
|
-
* @internal
|
|
142
|
-
*/
|
|
143
|
-
constructor(opts: __ExceptionOptionType<AccountWorkspaceConflictException, __BaseException>);
|
|
144
|
-
}
|
|
145
89
|
/**
|
|
146
90
|
* @public
|
|
147
91
|
*/
|