@wildix/xbees-users-client 1.1.0 → 1.2.3
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 +20 -0
- package/dist-cjs/commands/AddIdentityCommand.js +21 -0
- package/dist-cjs/commands/GetAccountCommand.js +21 -0
- package/dist-cjs/commands/InviteCommand.js +21 -0
- package/dist-cjs/commands/ListAccountIdentitiesCommand.js +21 -0
- package/dist-cjs/commands/ListWorkspacesCommand.js +21 -0
- package/dist-cjs/commands/RemoveIdentityCommand.js +21 -0
- package/dist-cjs/commands/UnbindWorkspaceCommand.js +21 -0
- package/dist-cjs/commands/UpdateAccountCommand.js +21 -0
- package/dist-cjs/commands/UpdateWorkspaceCommand.js +21 -0
- package/dist-cjs/commands/VerifyAddIdentityCommand.js +21 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/models/models_0.js +84 -1
- package/dist-cjs/protocols/Aws_restJson1.js +398 -2
- package/dist-es/Users.js +20 -0
- package/dist-es/commands/AddIdentityCommand.js +17 -0
- package/dist-es/commands/GetAccountCommand.js +17 -0
- package/dist-es/commands/InviteCommand.js +17 -0
- package/dist-es/commands/ListAccountIdentitiesCommand.js +17 -0
- package/dist-es/commands/ListWorkspacesCommand.js +17 -0
- package/dist-es/commands/RemoveIdentityCommand.js +17 -0
- package/dist-es/commands/UnbindWorkspaceCommand.js +17 -0
- package/dist-es/commands/UpdateAccountCommand.js +17 -0
- package/dist-es/commands/UpdateWorkspaceCommand.js +17 -0
- package/dist-es/commands/VerifyAddIdentityCommand.js +17 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/models/models_0.js +77 -0
- package/dist-es/protocols/Aws_restJson1.js +377 -1
- package/dist-types/Users.d.ts +70 -0
- package/dist-types/UsersClient.d.ts +12 -2
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +420 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/package.json +3 -3
- package/dist-types/commands/BatchGetUsersCommand.d.ts +0 -98
- package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +0 -83
- package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +0 -134
- package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +0 -134
- package/dist-types/commands/ChangeUserEmailCommand.d.ts +0 -88
- package/dist-types/commands/CreateBotApiKeyCommand.d.ts +0 -96
- package/dist-types/commands/CreateBotCommand.d.ts +0 -198
- package/dist-types/commands/CreateSystemBotCommand.d.ts +0 -78
- package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +0 -80
- package/dist-types/commands/DeleteBotCommand.d.ts +0 -77
- package/dist-types/commands/GetAppVersionCommand.d.ts +0 -76
- package/dist-types/commands/GetBotCallbackCommand.d.ts +0 -184
- package/dist-types/commands/GetBotCommand.d.ts +0 -90
- package/dist-types/commands/GetUserCommand.d.ts +0 -96
- package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +0 -81
- package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +0 -132
- package/dist-types/commands/GetUserPbxLinkSuggestionCommand.d.ts +0 -79
- package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +0 -79
- package/dist-types/commands/IntelligenceSearchCommand.d.ts +0 -85
- package/dist-types/commands/ListBotApiKeysCommand.d.ts +0 -83
- package/dist-types/commands/ListBotsCommand.d.ts +0 -89
- package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +0 -81
- package/dist-types/commands/QueryColleaguesCommand.d.ts +0 -152
- package/dist-types/commands/QueryUserCommand.d.ts +0 -105
- package/dist-types/commands/QueryUsersCommand.d.ts +0 -105
- package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +0 -75
- package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +0 -75
- package/dist-types/commands/UpdateBotCallbackCommand.d.ts +0 -288
- package/dist-types/commands/UpdateBotCommand.d.ts +0 -93
- package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +0 -81
- package/dist-types/commands/UploadPictureCommand.d.ts +0 -76
- package/dist-types/commands/UploadPictureV1Command.d.ts +0 -78
- package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +0 -80
- package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +0 -80
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AddIdentityCommandInput, AddIdentityCommandOutput } from "./commands/AddIdentityCommand";
|
|
1
2
|
import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
|
|
2
3
|
import { BatchGetUsersEmailNotificationsSettingsCommandInput, BatchGetUsersEmailNotificationsSettingsCommandOutput } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
|
|
3
4
|
import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
|
|
@@ -8,6 +9,7 @@ import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/Create
|
|
|
8
9
|
import { CreateSystemBotCommandInput, CreateSystemBotCommandOutput } from "./commands/CreateSystemBotCommand";
|
|
9
10
|
import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "./commands/DeleteBotApiKeyCommand";
|
|
10
11
|
import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/DeleteBotCommand";
|
|
12
|
+
import { GetAccountCommandInput, GetAccountCommandOutput } from "./commands/GetAccountCommand";
|
|
11
13
|
import { GetAppVersionCommandInput, GetAppVersionCommandOutput } from "./commands/GetAppVersionCommand";
|
|
12
14
|
import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
|
|
13
15
|
import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
|
|
@@ -17,19 +19,27 @@ import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from
|
|
|
17
19
|
import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
|
|
18
20
|
import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
|
|
19
21
|
import { IntelligenceSearchCommandInput, IntelligenceSearchCommandOutput } from "./commands/IntelligenceSearchCommand";
|
|
22
|
+
import { InviteCommandInput, InviteCommandOutput } from "./commands/InviteCommand";
|
|
23
|
+
import { ListAccountIdentitiesCommandInput, ListAccountIdentitiesCommandOutput } from "./commands/ListAccountIdentitiesCommand";
|
|
20
24
|
import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
|
|
21
25
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
|
|
26
|
+
import { ListWorkspacesCommandInput, ListWorkspacesCommandOutput } from "./commands/ListWorkspacesCommand";
|
|
22
27
|
import { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
|
|
23
28
|
import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
|
|
24
29
|
import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
|
|
25
30
|
import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
|
|
31
|
+
import { RemoveIdentityCommandInput, RemoveIdentityCommandOutput } from "./commands/RemoveIdentityCommand";
|
|
26
32
|
import { ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
|
|
27
33
|
import { ToggleUnreadEmailNotificationsSubscriptionCommandInput, ToggleUnreadEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
|
|
34
|
+
import { UnbindWorkspaceCommandInput, UnbindWorkspaceCommandOutput } from "./commands/UnbindWorkspaceCommand";
|
|
35
|
+
import { UpdateAccountCommandInput, UpdateAccountCommandOutput } from "./commands/UpdateAccountCommand";
|
|
28
36
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
|
|
29
37
|
import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
|
|
30
38
|
import { UpdateUserEmailNotificationsSettingsCommandInput, UpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
|
|
39
|
+
import { UpdateWorkspaceCommandInput, UpdateWorkspaceCommandOutput } from "./commands/UpdateWorkspaceCommand";
|
|
31
40
|
import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
|
|
32
41
|
import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
|
|
42
|
+
import { VerifyAddIdentityCommandInput, VerifyAddIdentityCommandOutput } from "./commands/VerifyAddIdentityCommand";
|
|
33
43
|
import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
|
|
34
44
|
import { VerifyBotSecretKeyV1CommandInput, VerifyBotSecretKeyV1CommandOutput } from "./commands/VerifyBotSecretKeyV1Command";
|
|
35
45
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
@@ -43,11 +53,11 @@ export { __Client };
|
|
|
43
53
|
/**
|
|
44
54
|
* @public
|
|
45
55
|
*/
|
|
46
|
-
export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersEmailNotificationsSettingsCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetAppVersionCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserEmailNotificationsSettingsCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | IntelligenceSearchCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | PartialUpdateUserEmailNotificationsSettingsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | ToggleTranscriptionEmailNotificationsSubscriptionCommandInput | ToggleUnreadEmailNotificationsSubscriptionCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UpdateUserEmailNotificationsSettingsCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
|
|
56
|
+
export type ServiceInputTypes = AddIdentityCommandInput | BatchGetUsersCommandInput | BatchGetUsersEmailNotificationsSettingsCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetAccountCommandInput | GetAppVersionCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserEmailNotificationsSettingsCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | IntelligenceSearchCommandInput | InviteCommandInput | ListAccountIdentitiesCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | ListWorkspacesCommandInput | PartialUpdateUserEmailNotificationsSettingsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | RemoveIdentityCommandInput | ToggleTranscriptionEmailNotificationsSubscriptionCommandInput | ToggleUnreadEmailNotificationsSubscriptionCommandInput | UnbindWorkspaceCommandInput | UpdateAccountCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UpdateUserEmailNotificationsSettingsCommandInput | UpdateWorkspaceCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyAddIdentityCommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
|
|
47
57
|
/**
|
|
48
58
|
* @public
|
|
49
59
|
*/
|
|
50
|
-
export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersEmailNotificationsSettingsCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetAppVersionCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserEmailNotificationsSettingsCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | IntelligenceSearchCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | PartialUpdateUserEmailNotificationsSettingsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput | ToggleUnreadEmailNotificationsSubscriptionCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UpdateUserEmailNotificationsSettingsCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
|
|
60
|
+
export type ServiceOutputTypes = AddIdentityCommandOutput | BatchGetUsersCommandOutput | BatchGetUsersEmailNotificationsSettingsCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetAccountCommandOutput | GetAppVersionCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserEmailNotificationsSettingsCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | IntelligenceSearchCommandOutput | InviteCommandOutput | ListAccountIdentitiesCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | ListWorkspacesCommandOutput | PartialUpdateUserEmailNotificationsSettingsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | RemoveIdentityCommandOutput | ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput | ToggleUnreadEmailNotificationsSubscriptionCommandOutput | UnbindWorkspaceCommandOutput | UpdateAccountCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UpdateUserEmailNotificationsSettingsCommandOutput | UpdateWorkspaceCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyAddIdentityCommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
|
|
51
61
|
/**
|
|
52
62
|
* @public
|
|
53
63
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./AddIdentityCommand";
|
|
1
2
|
export * from "./BatchGetUsersCommand";
|
|
2
3
|
export * from "./BatchGetUsersEmailNotificationsSettingsCommand";
|
|
3
4
|
export * from "./BatchGetUsersPbxLinkDataCommand";
|
|
@@ -8,6 +9,7 @@ export * from "./CreateBotApiKeyCommand";
|
|
|
8
9
|
export * from "./CreateSystemBotCommand";
|
|
9
10
|
export * from "./DeleteBotCommand";
|
|
10
11
|
export * from "./DeleteBotApiKeyCommand";
|
|
12
|
+
export * from "./GetAccountCommand";
|
|
11
13
|
export * from "./GetAppVersionCommand";
|
|
12
14
|
export * from "./GetBotCommand";
|
|
13
15
|
export * from "./GetBotCallbackCommand";
|
|
@@ -17,18 +19,26 @@ export * from "./GetUserPbxLinkDataCommand";
|
|
|
17
19
|
export * from "./GetUserPbxLinkSuggestionCommand";
|
|
18
20
|
export * from "./GetUserPbxLinkSuggestionV1Command";
|
|
19
21
|
export * from "./IntelligenceSearchCommand";
|
|
22
|
+
export * from "./InviteCommand";
|
|
23
|
+
export * from "./ListAccountIdentitiesCommand";
|
|
20
24
|
export * from "./ListBotApiKeysCommand";
|
|
21
25
|
export * from "./ListBotsCommand";
|
|
26
|
+
export * from "./ListWorkspacesCommand";
|
|
22
27
|
export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
|
|
23
28
|
export * from "./QueryColleaguesCommand";
|
|
24
29
|
export * from "./QueryUserCommand";
|
|
25
30
|
export * from "./QueryUsersCommand";
|
|
31
|
+
export * from "./RemoveIdentityCommand";
|
|
26
32
|
export * from "./ToggleTranscriptionEmailNotificationsSubscriptionCommand";
|
|
27
33
|
export * from "./ToggleUnreadEmailNotificationsSubscriptionCommand";
|
|
34
|
+
export * from "./UnbindWorkspaceCommand";
|
|
35
|
+
export * from "./UpdateAccountCommand";
|
|
28
36
|
export * from "./UpdateBotCommand";
|
|
29
37
|
export * from "./UpdateBotCallbackCommand";
|
|
30
38
|
export * from "./UpdateUserEmailNotificationsSettingsCommand";
|
|
39
|
+
export * from "./UpdateWorkspaceCommand";
|
|
31
40
|
export * from "./UploadPictureCommand";
|
|
32
41
|
export * from "./UploadPictureV1Command";
|
|
42
|
+
export * from "./VerifyAddIdentityCommand";
|
|
33
43
|
export * from "./VerifyBotSecretKeyCommand";
|
|
34
44
|
export * from "./VerifyBotSecretKeyV1Command";
|
|
@@ -199,6 +199,161 @@ export declare const PbxColleaguesSearchStrategy: {
|
|
|
199
199
|
* @public
|
|
200
200
|
*/
|
|
201
201
|
export type PbxColleaguesSearchStrategy = typeof PbxColleaguesSearchStrategy[keyof typeof PbxColleaguesSearchStrategy];
|
|
202
|
+
/**
|
|
203
|
+
* @public
|
|
204
|
+
*/
|
|
205
|
+
export interface UserToInvite {
|
|
206
|
+
/**
|
|
207
|
+
* The email address of the invited user. If no user exists with the specified email and "colleague" flag is provided, the system will retrieve the colleague's details from the PBX.
|
|
208
|
+
* @public
|
|
209
|
+
*/
|
|
210
|
+
email?: string | undefined;
|
|
211
|
+
/**
|
|
212
|
+
* 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.
|
|
213
|
+
* @public
|
|
214
|
+
*/
|
|
215
|
+
phone?: string | undefined;
|
|
216
|
+
/**
|
|
217
|
+
* An optional name for the invited user. If the user logs in later and a different name is provided via SSO or the PBX, the system will update the user's name accordingly.
|
|
218
|
+
* @public
|
|
219
|
+
*/
|
|
220
|
+
name?: string | undefined;
|
|
221
|
+
/**
|
|
222
|
+
* A flag to indicate that specified email are registered colleague on the PBX.
|
|
223
|
+
* When provided, the system will search for the colleague on the PBX and automatically establish a connection to the organization if one does not already exist.
|
|
224
|
+
* If the specified colleague does not exist on the WMS, a ValidationException will be thrown and no users will be invited.
|
|
225
|
+
*
|
|
226
|
+
* @public
|
|
227
|
+
*/
|
|
228
|
+
colleague?: boolean | undefined;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* @public
|
|
232
|
+
*/
|
|
233
|
+
export interface Account {
|
|
234
|
+
/**
|
|
235
|
+
* Unique identifier of the account.
|
|
236
|
+
* @public
|
|
237
|
+
*/
|
|
238
|
+
id: string;
|
|
239
|
+
/**
|
|
240
|
+
* The ID of the default workspace, if any.
|
|
241
|
+
* @public
|
|
242
|
+
*/
|
|
243
|
+
defaultWorkspace?: string | undefined;
|
|
244
|
+
primaryIdentity?: string | undefined;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* @public
|
|
248
|
+
*/
|
|
249
|
+
export declare class AccountNotFoundException extends __BaseException {
|
|
250
|
+
readonly name: "AccountNotFoundException";
|
|
251
|
+
readonly $fault: "client";
|
|
252
|
+
/**
|
|
253
|
+
* @internal
|
|
254
|
+
*/
|
|
255
|
+
constructor(opts: __ExceptionOptionType<AccountNotFoundException, __BaseException>);
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* @public
|
|
259
|
+
*/
|
|
260
|
+
export interface AddIdentityInput {
|
|
261
|
+
/**
|
|
262
|
+
* The unique identifier of the account.
|
|
263
|
+
* @public
|
|
264
|
+
*/
|
|
265
|
+
accountId: string;
|
|
266
|
+
/**
|
|
267
|
+
* The identity value: email address or phone number in E.164.
|
|
268
|
+
* @public
|
|
269
|
+
*/
|
|
270
|
+
identity: string;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* @public
|
|
274
|
+
*/
|
|
275
|
+
export interface Identity {
|
|
276
|
+
/**
|
|
277
|
+
* The identity value (email address or phone number in E.164)
|
|
278
|
+
* @public
|
|
279
|
+
*/
|
|
280
|
+
identity: string;
|
|
281
|
+
/**
|
|
282
|
+
* The unique identifier of the account.
|
|
283
|
+
* @public
|
|
284
|
+
*/
|
|
285
|
+
account: string;
|
|
286
|
+
/**
|
|
287
|
+
* When the identity was verified.
|
|
288
|
+
* @public
|
|
289
|
+
*/
|
|
290
|
+
verified?: boolean | undefined;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* @public
|
|
294
|
+
*/
|
|
295
|
+
export interface AddIdentityOutput {
|
|
296
|
+
/**
|
|
297
|
+
* The identity in pending state. OTP has been sent; call VerifyAddIdentity to complete.
|
|
298
|
+
* @public
|
|
299
|
+
*/
|
|
300
|
+
identity: Identity;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* @public
|
|
304
|
+
*/
|
|
305
|
+
export declare class CannotRemovePrimaryIdentityException extends __BaseException {
|
|
306
|
+
readonly name: "CannotRemovePrimaryIdentityException";
|
|
307
|
+
readonly $fault: "client";
|
|
308
|
+
/**
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
constructor(opts: __ExceptionOptionType<CannotRemovePrimaryIdentityException, __BaseException>);
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* @public
|
|
315
|
+
*/
|
|
316
|
+
export declare class CannotUnbindDefaultWorkspaceException extends __BaseException {
|
|
317
|
+
readonly name: "CannotUnbindDefaultWorkspaceException";
|
|
318
|
+
readonly $fault: "client";
|
|
319
|
+
/**
|
|
320
|
+
* @internal
|
|
321
|
+
*/
|
|
322
|
+
constructor(opts: __ExceptionOptionType<CannotUnbindDefaultWorkspaceException, __BaseException>);
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* @public
|
|
326
|
+
*/
|
|
327
|
+
export declare class IdentityAlreadyLinkedException extends __BaseException {
|
|
328
|
+
readonly name: "IdentityAlreadyLinkedException";
|
|
329
|
+
readonly $fault: "client";
|
|
330
|
+
/**
|
|
331
|
+
* @internal
|
|
332
|
+
*/
|
|
333
|
+
constructor(opts: __ExceptionOptionType<IdentityAlreadyLinkedException, __BaseException>);
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* @public
|
|
337
|
+
*/
|
|
338
|
+
export declare class IdentityNotFoundException extends __BaseException {
|
|
339
|
+
readonly name: "IdentityNotFoundException";
|
|
340
|
+
readonly $fault: "client";
|
|
341
|
+
/**
|
|
342
|
+
* @internal
|
|
343
|
+
*/
|
|
344
|
+
constructor(opts: __ExceptionOptionType<IdentityNotFoundException, __BaseException>);
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* @public
|
|
348
|
+
*/
|
|
349
|
+
export declare class WorkspaceNotFoundException extends __BaseException {
|
|
350
|
+
readonly name: "WorkspaceNotFoundException";
|
|
351
|
+
readonly $fault: "client";
|
|
352
|
+
/**
|
|
353
|
+
* @internal
|
|
354
|
+
*/
|
|
355
|
+
constructor(opts: __ExceptionOptionType<WorkspaceNotFoundException, __BaseException>);
|
|
356
|
+
}
|
|
202
357
|
/**
|
|
203
358
|
* @public
|
|
204
359
|
* @enum
|
|
@@ -1247,6 +1402,86 @@ export interface DirectoryItem {
|
|
|
1247
1402
|
department?: string | undefined;
|
|
1248
1403
|
group?: string | undefined;
|
|
1249
1404
|
}
|
|
1405
|
+
/**
|
|
1406
|
+
* @public
|
|
1407
|
+
*/
|
|
1408
|
+
export interface GetAccountInput {
|
|
1409
|
+
/**
|
|
1410
|
+
* The unique identifier of the account.
|
|
1411
|
+
* @public
|
|
1412
|
+
*/
|
|
1413
|
+
accountId: string;
|
|
1414
|
+
}
|
|
1415
|
+
/**
|
|
1416
|
+
* @public
|
|
1417
|
+
* @enum
|
|
1418
|
+
*/
|
|
1419
|
+
export declare const WorkspaceType: {
|
|
1420
|
+
/**
|
|
1421
|
+
* User is not linked to any company.
|
|
1422
|
+
*/
|
|
1423
|
+
readonly PERSONAL: "personal";
|
|
1424
|
+
/**
|
|
1425
|
+
* Support staff with temporary access to a user's workspace.
|
|
1426
|
+
*/
|
|
1427
|
+
readonly SUPPORT: "support";
|
|
1428
|
+
/**
|
|
1429
|
+
* User is a colleague of the company.
|
|
1430
|
+
*/
|
|
1431
|
+
readonly WORK: "work";
|
|
1432
|
+
};
|
|
1433
|
+
/**
|
|
1434
|
+
* @public
|
|
1435
|
+
*/
|
|
1436
|
+
export type WorkspaceType = typeof WorkspaceType[keyof typeof WorkspaceType];
|
|
1437
|
+
/**
|
|
1438
|
+
* @public
|
|
1439
|
+
*/
|
|
1440
|
+
export interface Workspace {
|
|
1441
|
+
/**
|
|
1442
|
+
* The unique identifier of the tenant (company).
|
|
1443
|
+
* @public
|
|
1444
|
+
*/
|
|
1445
|
+
companyId?: string | undefined;
|
|
1446
|
+
/**
|
|
1447
|
+
* PBX information where user connected to.
|
|
1448
|
+
* @public
|
|
1449
|
+
*/
|
|
1450
|
+
pbxUser?: UserPbxLinkData | undefined;
|
|
1451
|
+
/**
|
|
1452
|
+
* Personal information of the user. If user is not logged in yet, this field will might be empty.
|
|
1453
|
+
* @public
|
|
1454
|
+
*/
|
|
1455
|
+
streamUser?: User | undefined;
|
|
1456
|
+
/**
|
|
1457
|
+
* The type of workspace.
|
|
1458
|
+
* @public
|
|
1459
|
+
*/
|
|
1460
|
+
type?: WorkspaceType | undefined;
|
|
1461
|
+
/**
|
|
1462
|
+
* The unique identifier
|
|
1463
|
+
* @public
|
|
1464
|
+
*/
|
|
1465
|
+
id: string;
|
|
1466
|
+
/**
|
|
1467
|
+
* The unique identifier of the account.
|
|
1468
|
+
* @public
|
|
1469
|
+
*/
|
|
1470
|
+
accountId: string;
|
|
1471
|
+
/**
|
|
1472
|
+
* Indicates if the workspace is active.
|
|
1473
|
+
* @public
|
|
1474
|
+
*/
|
|
1475
|
+
active: boolean;
|
|
1476
|
+
}
|
|
1477
|
+
/**
|
|
1478
|
+
* @public
|
|
1479
|
+
*/
|
|
1480
|
+
export interface GetAccountOutput {
|
|
1481
|
+
account: Account;
|
|
1482
|
+
workspaces: (Workspace)[];
|
|
1483
|
+
identities: (Identity)[];
|
|
1484
|
+
}
|
|
1250
1485
|
/**
|
|
1251
1486
|
* @public
|
|
1252
1487
|
*/
|
|
@@ -1410,6 +1645,47 @@ export interface IntelligenceSearchInput {
|
|
|
1410
1645
|
export interface IntelligenceSearchOutput {
|
|
1411
1646
|
items: (DirectoryItem)[];
|
|
1412
1647
|
}
|
|
1648
|
+
/**
|
|
1649
|
+
* @public
|
|
1650
|
+
*/
|
|
1651
|
+
export interface InviteInput {
|
|
1652
|
+
/**
|
|
1653
|
+
* The unique identifier of the tenant when a service token is used.
|
|
1654
|
+
* @public
|
|
1655
|
+
*/
|
|
1656
|
+
companyId?: string | undefined;
|
|
1657
|
+
/**
|
|
1658
|
+
* A list of users to invite. The list must contain between 1 and 20 users.
|
|
1659
|
+
* @public
|
|
1660
|
+
*/
|
|
1661
|
+
invitees: (UserToInvite)[];
|
|
1662
|
+
}
|
|
1663
|
+
/**
|
|
1664
|
+
* @public
|
|
1665
|
+
*/
|
|
1666
|
+
export interface InviteOutput {
|
|
1667
|
+
/**
|
|
1668
|
+
* A list of users who were successfully invited.
|
|
1669
|
+
* @public
|
|
1670
|
+
*/
|
|
1671
|
+
users: (User)[];
|
|
1672
|
+
}
|
|
1673
|
+
/**
|
|
1674
|
+
* @public
|
|
1675
|
+
*/
|
|
1676
|
+
export interface ListAccountIdentitiesInput {
|
|
1677
|
+
/**
|
|
1678
|
+
* The unique identifier of the account.
|
|
1679
|
+
* @public
|
|
1680
|
+
*/
|
|
1681
|
+
accountId: string;
|
|
1682
|
+
}
|
|
1683
|
+
/**
|
|
1684
|
+
* @public
|
|
1685
|
+
*/
|
|
1686
|
+
export interface ListAccountIdentitiesOutput {
|
|
1687
|
+
identities: (Identity)[];
|
|
1688
|
+
}
|
|
1413
1689
|
/**
|
|
1414
1690
|
* @public
|
|
1415
1691
|
*/
|
|
@@ -1435,6 +1711,22 @@ export interface ListBotsInput {
|
|
|
1435
1711
|
export interface ListBotsOutput {
|
|
1436
1712
|
bots: (Bot)[];
|
|
1437
1713
|
}
|
|
1714
|
+
/**
|
|
1715
|
+
* @public
|
|
1716
|
+
*/
|
|
1717
|
+
export interface ListWorkspacesInput {
|
|
1718
|
+
/**
|
|
1719
|
+
* The unique identifier of the account.
|
|
1720
|
+
* @public
|
|
1721
|
+
*/
|
|
1722
|
+
accountId: string;
|
|
1723
|
+
}
|
|
1724
|
+
/**
|
|
1725
|
+
* @public
|
|
1726
|
+
*/
|
|
1727
|
+
export interface ListWorkspacesOutput {
|
|
1728
|
+
workspaces: (Workspace)[];
|
|
1729
|
+
}
|
|
1438
1730
|
/**
|
|
1439
1731
|
* @public
|
|
1440
1732
|
*/
|
|
@@ -1631,6 +1923,26 @@ export interface QueryUsersOutput {
|
|
|
1631
1923
|
*/
|
|
1632
1924
|
users: (User)[];
|
|
1633
1925
|
}
|
|
1926
|
+
/**
|
|
1927
|
+
* @public
|
|
1928
|
+
*/
|
|
1929
|
+
export interface RemoveIdentityInput {
|
|
1930
|
+
/**
|
|
1931
|
+
* The unique identifier of the account.
|
|
1932
|
+
* @public
|
|
1933
|
+
*/
|
|
1934
|
+
accountId: string;
|
|
1935
|
+
/**
|
|
1936
|
+
* The identity value (email or phone) to remove.
|
|
1937
|
+
* @public
|
|
1938
|
+
*/
|
|
1939
|
+
identity: string;
|
|
1940
|
+
}
|
|
1941
|
+
/**
|
|
1942
|
+
* @public
|
|
1943
|
+
*/
|
|
1944
|
+
export interface RemoveIdentityOutput {
|
|
1945
|
+
}
|
|
1634
1946
|
/**
|
|
1635
1947
|
* @public
|
|
1636
1948
|
*/
|
|
@@ -1663,6 +1975,52 @@ export interface ToggleUnreadEmailNotificationsSubscriptionInput {
|
|
|
1663
1975
|
*/
|
|
1664
1976
|
export interface ToggleUnreadEmailNotificationsSubscriptionOutput {
|
|
1665
1977
|
}
|
|
1978
|
+
/**
|
|
1979
|
+
* @public
|
|
1980
|
+
*/
|
|
1981
|
+
export interface UnbindWorkspaceInput {
|
|
1982
|
+
/**
|
|
1983
|
+
* The unique identifier of the workspace (Stream user ID).
|
|
1984
|
+
* @public
|
|
1985
|
+
*/
|
|
1986
|
+
workspaceId: string;
|
|
1987
|
+
/**
|
|
1988
|
+
* The unique identifier of the account.
|
|
1989
|
+
* @public
|
|
1990
|
+
*/
|
|
1991
|
+
accountId: string;
|
|
1992
|
+
}
|
|
1993
|
+
/**
|
|
1994
|
+
* @public
|
|
1995
|
+
*/
|
|
1996
|
+
export interface UnbindWorkspaceOutput {
|
|
1997
|
+
}
|
|
1998
|
+
/**
|
|
1999
|
+
* @public
|
|
2000
|
+
*/
|
|
2001
|
+
export interface UpdateAccountInput {
|
|
2002
|
+
/**
|
|
2003
|
+
* The unique identifier of the account.
|
|
2004
|
+
* @public
|
|
2005
|
+
*/
|
|
2006
|
+
accountId: string;
|
|
2007
|
+
/**
|
|
2008
|
+
* The workspace to set as default.
|
|
2009
|
+
* @public
|
|
2010
|
+
*/
|
|
2011
|
+
defaultWorkspace?: string | undefined;
|
|
2012
|
+
/**
|
|
2013
|
+
* The identity value (email or phone) to set as primary.
|
|
2014
|
+
* @public
|
|
2015
|
+
*/
|
|
2016
|
+
primaryIdentity?: string | undefined;
|
|
2017
|
+
}
|
|
2018
|
+
/**
|
|
2019
|
+
* @public
|
|
2020
|
+
*/
|
|
2021
|
+
export interface UpdateAccountOutput {
|
|
2022
|
+
account: Account;
|
|
2023
|
+
}
|
|
1666
2024
|
/**
|
|
1667
2025
|
* @public
|
|
1668
2026
|
*/
|
|
@@ -1737,6 +2095,37 @@ export interface UpdateUserEmailNotificationsSettingsInput {
|
|
|
1737
2095
|
export interface UpdateUserEmailNotificationsSettingsOutput {
|
|
1738
2096
|
notifications: UserEmailNotificationsSettings;
|
|
1739
2097
|
}
|
|
2098
|
+
/**
|
|
2099
|
+
* @public
|
|
2100
|
+
*/
|
|
2101
|
+
export interface UpdateWorkspaceInput {
|
|
2102
|
+
/**
|
|
2103
|
+
* The unique identifier of the account.
|
|
2104
|
+
* @public
|
|
2105
|
+
*/
|
|
2106
|
+
accountId: string;
|
|
2107
|
+
/**
|
|
2108
|
+
* The unique identifier of the workspace to deactivate.
|
|
2109
|
+
* @public
|
|
2110
|
+
*/
|
|
2111
|
+
workspaceId: string;
|
|
2112
|
+
/**
|
|
2113
|
+
* Indicates if the workspace is active.
|
|
2114
|
+
* @public
|
|
2115
|
+
*/
|
|
2116
|
+
active?: boolean | undefined;
|
|
2117
|
+
/**
|
|
2118
|
+
* The type of workspace.
|
|
2119
|
+
* @public
|
|
2120
|
+
*/
|
|
2121
|
+
type?: WorkspaceType | undefined;
|
|
2122
|
+
}
|
|
2123
|
+
/**
|
|
2124
|
+
* @public
|
|
2125
|
+
*/
|
|
2126
|
+
export interface UpdateWorkspaceOutput {
|
|
2127
|
+
workspace: Workspace;
|
|
2128
|
+
}
|
|
1740
2129
|
/**
|
|
1741
2130
|
* @public
|
|
1742
2131
|
*/
|
|
@@ -1769,6 +2158,37 @@ export interface UploadPictureV1Input {
|
|
|
1769
2158
|
export interface UploadPictureV1Output {
|
|
1770
2159
|
url: string;
|
|
1771
2160
|
}
|
|
2161
|
+
/**
|
|
2162
|
+
* @public
|
|
2163
|
+
*/
|
|
2164
|
+
export interface VerifyAddIdentityInput {
|
|
2165
|
+
/**
|
|
2166
|
+
* The unique identifier of the account.
|
|
2167
|
+
* @public
|
|
2168
|
+
*/
|
|
2169
|
+
accountId: string;
|
|
2170
|
+
/**
|
|
2171
|
+
* The identity value that was added (email or phone).
|
|
2172
|
+
* @public
|
|
2173
|
+
*/
|
|
2174
|
+
identity: string;
|
|
2175
|
+
/**
|
|
2176
|
+
* OTP sent to the new identity to prove ownership.
|
|
2177
|
+
* @public
|
|
2178
|
+
*/
|
|
2179
|
+
otp: string;
|
|
2180
|
+
/**
|
|
2181
|
+
* OTP sent to the primary identity for verification.
|
|
2182
|
+
* @public
|
|
2183
|
+
*/
|
|
2184
|
+
primaryOtp: string;
|
|
2185
|
+
}
|
|
2186
|
+
/**
|
|
2187
|
+
* @public
|
|
2188
|
+
*/
|
|
2189
|
+
export interface VerifyAddIdentityOutput {
|
|
2190
|
+
identity: Identity;
|
|
2191
|
+
}
|
|
1772
2192
|
/**
|
|
1773
2193
|
* @public
|
|
1774
2194
|
*/
|