@wildix/xbees-users-client 4.4.0-stage.1 → 4.4.0-wms29809.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 +6 -10
- package/dist-cjs/auth/httpAuthSchemeProvider.js +18 -31
- package/dist-cjs/commands/{ApplyIdentityRemovalCommand.js → LinkIdentityCommand.js} +6 -6
- package/dist-cjs/commands/{ResetUserChatHistoryCommand.js → UnlinkIdentityCommand.js} +6 -6
- package/dist-cjs/commands/{StartIdentityChallengeCommand.js → VerifyIdentityCommand.js} +6 -6
- package/dist-cjs/commands/index.js +3 -5
- package/dist-cjs/models/enums.js +3 -25
- package/dist-cjs/models/errors.js +24 -106
- package/dist-cjs/schemas/schemas_0.js +69 -180
- package/dist-es/Users.js +6 -10
- package/dist-es/auth/httpAuthSchemeProvider.js +18 -31
- package/dist-es/commands/{ApplyIdentityRemovalCommand.js → LinkIdentityCommand.js} +5 -5
- package/dist-es/commands/{ResetUserChatHistoryCommand.js → UnlinkIdentityCommand.js} +5 -5
- package/dist-es/commands/{StartIdentityChallengeCommand.js → VerifyIdentityCommand.js} +5 -5
- package/dist-es/commands/index.js +3 -5
- package/dist-es/models/enums.js +2 -24
- package/dist-es/models/errors.js +20 -96
- package/dist-es/schemas/schemas_0.js +65 -176
- package/dist-types/Users.d.ts +21 -35
- package/dist-types/UsersClient.d.ts +5 -7
- package/dist-types/commands/ApplyAccountWorkspaceChangesCommand.d.ts +9 -8
- package/dist-types/commands/LinkIdentityCommand.d.ts +89 -0
- package/dist-types/commands/ListIdentitiesCommand.d.ts +2 -4
- package/dist-types/commands/UnlinkIdentityCommand.d.ts +85 -0
- package/dist-types/commands/UpdateAccountCommand.d.ts +1 -2
- package/dist-types/commands/VerifyIdentityCommand.d.ts +90 -0
- package/dist-types/commands/index.d.ts +3 -5
- package/dist-types/models/enums.d.ts +9 -103
- package/dist-types/models/errors.d.ts +17 -102
- package/dist-types/models/models_0.d.ts +80 -299
- package/dist-types/schemas/schemas_0.d.ts +9 -24
- package/package.json +1 -1
- package/dist-cjs/commands/ConfirmIdentityChallengeCommand.js +0 -20
- package/dist-cjs/commands/ResendIdentityChallengeCodeCommand.js +0 -20
- package/dist-es/commands/ConfirmIdentityChallengeCommand.js +0 -16
- package/dist-es/commands/ResendIdentityChallengeCodeCommand.js +0 -16
- package/dist-types/commands/ApplyIdentityRemovalCommand.d.ts +0 -93
- package/dist-types/commands/ConfirmIdentityChallengeCommand.d.ts +0 -138
- package/dist-types/commands/ResendIdentityChallengeCodeCommand.d.ts +0 -96
- package/dist-types/commands/ResetUserChatHistoryCommand.d.ts +0 -89
- package/dist-types/commands/StartIdentityChallengeCommand.d.ts +0 -139
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
-
import type { AccountEmailChangeStatus, AccountWorkspaceChangeOperation, AccountWorkspaceCheckCode, AccountWorkspaceEffectName, AccountWorkspaceEffectStatus, AccountWorkspaceRowEntity, AccountWorkspaceWriteKind, AppType, BotAccess, BotCapabilityToolPipelineType, BotIntegrationType, BotLlmEmbeddedToolType, BotLlmFunctionIntegrationMethod, BotLlmToolType, BotSessionTimeoutMinutes, GetPbxColleaguesDir,
|
|
2
|
+
import type { AccountEmailChangeStatus, AccountWorkspaceChangeOperation, AccountWorkspaceCheckCode, AccountWorkspaceEffectName, AccountWorkspaceEffectStatus, AccountWorkspaceRowEntity, AccountWorkspaceWriteKind, AppType, BotAccess, BotCapabilityToolPipelineType, BotIntegrationType, BotLlmEmbeddedToolType, BotLlmFunctionIntegrationMethod, BotLlmToolType, BotSessionTimeoutMinutes, GetPbxColleaguesDir, PbxColleagueRole, PbxColleaguesQueryField, PbxColleaguesSearchStrategy, PbxLicenseType, SearchStrategy, SearchThresholdValue, WorkspaceType } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
@@ -190,7 +190,7 @@ export interface Account {
|
|
|
190
190
|
*/
|
|
191
191
|
defaultWorkspace?: string | undefined;
|
|
192
192
|
/**
|
|
193
|
-
* The
|
|
193
|
+
* The identity value (email address or phone number in E.164).
|
|
194
194
|
* @public
|
|
195
195
|
*/
|
|
196
196
|
primaryIdentity?: string | undefined;
|
|
@@ -571,7 +571,7 @@ export interface ApplyAccountWorkspaceChangesInput {
|
|
|
571
571
|
*/
|
|
572
572
|
changes: AccountWorkspaceChange[];
|
|
573
573
|
/**
|
|
574
|
-
* The rows the caller read, with the values it read, for every row the changes touch: the membership rows (`Account#<acc>/Workspace#<ws>`) and the `Settings` rows (`defaultWorkspace`) of every account touched, that is every `accountId` and every `fromAccountId` of the changes (for an attach without `fromAccountId` the destination membership row of the workspace, sent without `fields`: expected absent), and the `Pbx` and `Stream` rows (`Workspace#<ws>/Pbx`, `Workspace#<ws>/Stream`) of the
|
|
574
|
+
* The rows the caller read, with the values it read, for every row the changes touch: the membership rows (`Account#<acc>/Workspace#<ws>`) and the `Settings` rows (`defaultWorkspace`) of every account touched, that is every `accountId` and every `fromAccountId` of the changes (for an attach without `fromAccountId` the destination membership row of the workspace, sent without `fields`: expected absent), and the `Pbx` and `Stream` rows (`Workspace#<ws>/Pbx`, `Workspace#<ws>/Stream`) of the workspaces an attach names (makeDefault and detach need only the membership and `Settings` rows). Rows the owner creates with a new id (an orphaned account's new personal workspace) are not part of it. Stream Console passes the `observed` rows of its board read through unchanged.
|
|
575
575
|
* @public
|
|
576
576
|
*/
|
|
577
577
|
expected: AccountWorkspaceExpectedRow[];
|
|
@@ -596,7 +596,7 @@ export interface ApplyAccountWorkspaceChangesInput {
|
|
|
596
596
|
*/
|
|
597
597
|
export interface ApplyAccountWorkspaceChangesOutput {
|
|
598
598
|
/**
|
|
599
|
-
* The row writes of the change: planned (dry run) or done (apply), in the order of the transaction. Enough to show a diff and to keep a backup; how to build the inverse plan
|
|
599
|
+
* The row writes of the change: planned (dry run) or done (apply), in the order of the transaction. Enough to show a diff and to keep a backup; how to build the inverse plan: see the Inverse and backup paragraph of the operation documentation.
|
|
600
600
|
* @public
|
|
601
601
|
*/
|
|
602
602
|
writes: AccountWorkspaceWrite[];
|
|
@@ -616,26 +616,6 @@ export interface ApplyAccountWorkspaceChangesOutput {
|
|
|
616
616
|
*/
|
|
617
617
|
effects: AccountWorkspaceEffect[];
|
|
618
618
|
}
|
|
619
|
-
/**
|
|
620
|
-
* @public
|
|
621
|
-
*/
|
|
622
|
-
export interface ApplyIdentityRemovalInput {
|
|
623
|
-
/**
|
|
624
|
-
* The unique identifier of the account.
|
|
625
|
-
* @public
|
|
626
|
-
*/
|
|
627
|
-
accountId: string;
|
|
628
|
-
/**
|
|
629
|
-
* The `remove` challenge returned by `StartIdentityChallenge`, at `step: readyToApply`.
|
|
630
|
-
* @public
|
|
631
|
-
*/
|
|
632
|
-
challengeId: string;
|
|
633
|
-
}
|
|
634
|
-
/**
|
|
635
|
-
* @public
|
|
636
|
-
*/
|
|
637
|
-
export interface ApplyIdentityRemovalOutput {
|
|
638
|
-
}
|
|
639
619
|
/**
|
|
640
620
|
* @public
|
|
641
621
|
*/
|
|
@@ -1604,125 +1584,6 @@ export interface ChangeUserEmailInput {
|
|
|
1604
1584
|
export interface ChangeUserEmailOutput {
|
|
1605
1585
|
sfnArn: string;
|
|
1606
1586
|
}
|
|
1607
|
-
/**
|
|
1608
|
-
* @public
|
|
1609
|
-
*/
|
|
1610
|
-
export interface ConfirmIdentityChallengeInput {
|
|
1611
|
-
/**
|
|
1612
|
-
* The unique identifier of the account.
|
|
1613
|
-
* @public
|
|
1614
|
-
*/
|
|
1615
|
-
accountId: string;
|
|
1616
|
-
/**
|
|
1617
|
-
* The challenge returned by `StartIdentityChallenge`.
|
|
1618
|
-
* @public
|
|
1619
|
-
*/
|
|
1620
|
-
challengeId: string;
|
|
1621
|
-
/**
|
|
1622
|
-
* The code of the current step, as the user entered it.
|
|
1623
|
-
* @public
|
|
1624
|
-
*/
|
|
1625
|
-
code: string;
|
|
1626
|
-
}
|
|
1627
|
-
/**
|
|
1628
|
-
* A company workspace the account loses access to when the address is removed: the removed address is its last link to that PBX user.
|
|
1629
|
-
* @public
|
|
1630
|
-
*/
|
|
1631
|
-
export interface IdentityRemovalLostWorkspace {
|
|
1632
|
-
/**
|
|
1633
|
-
* The workspace that becomes inactive after the removal.
|
|
1634
|
-
* @public
|
|
1635
|
-
*/
|
|
1636
|
-
workspaceId: string;
|
|
1637
|
-
/**
|
|
1638
|
-
* The name of the company of the workspace, for the warning text.
|
|
1639
|
-
* @public
|
|
1640
|
-
*/
|
|
1641
|
-
companyName: string;
|
|
1642
|
-
}
|
|
1643
|
-
/**
|
|
1644
|
-
* What removing the address will do, for the removal dialog. Computed when the challenge starts.
|
|
1645
|
-
* @public
|
|
1646
|
-
*/
|
|
1647
|
-
export interface IdentityRemovalDryRun {
|
|
1648
|
-
/**
|
|
1649
|
-
* True when the session that makes the request signed in with the address being removed: the removal signs it out, and the app should sign out right after `ApplyIdentityRemoval`.
|
|
1650
|
-
* @public
|
|
1651
|
-
*/
|
|
1652
|
-
endsThisSession: boolean;
|
|
1653
|
-
/**
|
|
1654
|
-
* Company workspaces for which the address is the last link of the account; empty when there are none.
|
|
1655
|
-
* @public
|
|
1656
|
-
*/
|
|
1657
|
-
lostWorkspaces: IdentityRemovalLostWorkspace[];
|
|
1658
|
-
/**
|
|
1659
|
-
* True when devices are signed in with the address being removed; they will be signed out.
|
|
1660
|
-
* @public
|
|
1661
|
-
*/
|
|
1662
|
-
signsOutDevices: boolean;
|
|
1663
|
-
}
|
|
1664
|
-
/**
|
|
1665
|
-
* A sign-in method (identity) of the account.
|
|
1666
|
-
* @public
|
|
1667
|
-
*/
|
|
1668
|
-
export interface Identity {
|
|
1669
|
-
/**
|
|
1670
|
-
* The identity value: an email in lower case or a phone number in E.164.
|
|
1671
|
-
* @public
|
|
1672
|
-
*/
|
|
1673
|
-
identity: string;
|
|
1674
|
-
/**
|
|
1675
|
-
* The unique identifier of the account.
|
|
1676
|
-
* @public
|
|
1677
|
-
*/
|
|
1678
|
-
account: string;
|
|
1679
|
-
/**
|
|
1680
|
-
* The kind of the sign-in method.
|
|
1681
|
-
* @public
|
|
1682
|
-
*/
|
|
1683
|
-
type: IdentityType;
|
|
1684
|
-
/**
|
|
1685
|
-
* True when the address has been confirmed with a code and can be used to sign in. False for an address being added (pending): it cannot sign in, gets nothing but its own verification code and is not reserved, so it disappears when another account verifies it first.
|
|
1686
|
-
* @public
|
|
1687
|
-
*/
|
|
1688
|
-
verified: boolean;
|
|
1689
|
-
/**
|
|
1690
|
-
* True for the primary sign-in method of the account, the one confirmation codes go to. Exactly one identity of the account is primary, and it is always verified.
|
|
1691
|
-
* @public
|
|
1692
|
-
*/
|
|
1693
|
-
primary: boolean;
|
|
1694
|
-
}
|
|
1695
|
-
/**
|
|
1696
|
-
* The state of an identity challenge, returned by `StartIdentityChallenge` and `ConfirmIdentityChallenge`.
|
|
1697
|
-
* @public
|
|
1698
|
-
*/
|
|
1699
|
-
export interface ConfirmIdentityChallengeOutput {
|
|
1700
|
-
/**
|
|
1701
|
-
* The identifier to pass to `ConfirmIdentityChallenge`, `ResendIdentityChallengeCode` and `ApplyIdentityRemoval`.
|
|
1702
|
-
* @public
|
|
1703
|
-
*/
|
|
1704
|
-
challengeId: string;
|
|
1705
|
-
/**
|
|
1706
|
-
* Where the challenge stands after this call.
|
|
1707
|
-
* @public
|
|
1708
|
-
*/
|
|
1709
|
-
step: IdentityChallengeStep;
|
|
1710
|
-
/**
|
|
1711
|
-
* Seconds until `ResendIdentityChallengeCode` may send the code of this step again. Present when this call sent a code (`step` is `primaryCode` or `targetCode`).
|
|
1712
|
-
* @public
|
|
1713
|
-
*/
|
|
1714
|
-
resendAfter?: number | undefined;
|
|
1715
|
-
/**
|
|
1716
|
-
* What the removal will do. Present on every response of a `remove` challenge.
|
|
1717
|
-
* @public
|
|
1718
|
-
*/
|
|
1719
|
-
dryRun?: IdentityRemovalDryRun | undefined;
|
|
1720
|
-
/**
|
|
1721
|
-
* The identity as it is now. Present when `step` is `done`.
|
|
1722
|
-
* @public
|
|
1723
|
-
*/
|
|
1724
|
-
identity?: Identity | undefined;
|
|
1725
|
-
}
|
|
1726
1587
|
/**
|
|
1727
1588
|
* @public
|
|
1728
1589
|
*/
|
|
@@ -2015,20 +1876,24 @@ export interface GetUserPbxLinkSuggestionV1Output {
|
|
|
2015
1876
|
suggestion?: UserPbxLinkSuggestion | undefined;
|
|
2016
1877
|
}
|
|
2017
1878
|
/**
|
|
2018
|
-
* The address an identity challenge is about.
|
|
2019
1879
|
* @public
|
|
2020
1880
|
*/
|
|
2021
|
-
export interface
|
|
1881
|
+
export interface Identity {
|
|
2022
1882
|
/**
|
|
2023
|
-
* The
|
|
1883
|
+
* The identity value (email address or phone number in E.164)
|
|
2024
1884
|
* @public
|
|
2025
1885
|
*/
|
|
2026
|
-
|
|
1886
|
+
identity: string;
|
|
2027
1887
|
/**
|
|
2028
|
-
* The
|
|
1888
|
+
* The unique identifier of the account.
|
|
2029
1889
|
* @public
|
|
2030
1890
|
*/
|
|
2031
|
-
|
|
1891
|
+
account: string;
|
|
1892
|
+
/**
|
|
1893
|
+
* Indicates if the identity is verified.
|
|
1894
|
+
* @public
|
|
1895
|
+
*/
|
|
1896
|
+
verified?: boolean | undefined;
|
|
2032
1897
|
}
|
|
2033
1898
|
/**
|
|
2034
1899
|
* @public
|
|
@@ -2082,6 +1947,31 @@ export interface InviteOutput {
|
|
|
2082
1947
|
*/
|
|
2083
1948
|
skippedInvitees: SkippedMember[];
|
|
2084
1949
|
}
|
|
1950
|
+
/**
|
|
1951
|
+
* @public
|
|
1952
|
+
*/
|
|
1953
|
+
export interface LinkIdentityInput {
|
|
1954
|
+
/**
|
|
1955
|
+
* The unique identifier of the account.
|
|
1956
|
+
* @public
|
|
1957
|
+
*/
|
|
1958
|
+
accountId: string;
|
|
1959
|
+
/**
|
|
1960
|
+
* The identity value: email address or phone number in E.164.
|
|
1961
|
+
* @public
|
|
1962
|
+
*/
|
|
1963
|
+
identity: string;
|
|
1964
|
+
}
|
|
1965
|
+
/**
|
|
1966
|
+
* @public
|
|
1967
|
+
*/
|
|
1968
|
+
export interface LinkIdentityOutput {
|
|
1969
|
+
/**
|
|
1970
|
+
* The identity in pending state. OTP has been sent; call VerifyIdentity to complete.
|
|
1971
|
+
* @public
|
|
1972
|
+
*/
|
|
1973
|
+
identity: Identity;
|
|
1974
|
+
}
|
|
2085
1975
|
/**
|
|
2086
1976
|
* @public
|
|
2087
1977
|
*/
|
|
@@ -2156,10 +2046,6 @@ export interface ListIdentitiesInput {
|
|
|
2156
2046
|
* @public
|
|
2157
2047
|
*/
|
|
2158
2048
|
export interface ListIdentitiesOutput {
|
|
2159
|
-
/**
|
|
2160
|
-
* The verified and pending sign-in methods of the account.
|
|
2161
|
-
* @public
|
|
2162
|
-
*/
|
|
2163
2049
|
identities: Identity[];
|
|
2164
2050
|
}
|
|
2165
2051
|
/**
|
|
@@ -2443,185 +2329,54 @@ export interface QueryUsersOutput {
|
|
|
2443
2329
|
/**
|
|
2444
2330
|
* @public
|
|
2445
2331
|
*/
|
|
2446
|
-
export interface
|
|
2447
|
-
|
|
2448
|
-
* The unique identifier of the account.
|
|
2449
|
-
* @public
|
|
2450
|
-
*/
|
|
2451
|
-
accountId: string;
|
|
2332
|
+
export interface ToggleTranscriptionEmailNotificationsSubscriptionInput {
|
|
2333
|
+
unsubscribeToken: string;
|
|
2452
2334
|
/**
|
|
2453
|
-
*
|
|
2335
|
+
* A flag that indicates whether the system should send email notifications about AI transcription.
|
|
2454
2336
|
* @public
|
|
2455
2337
|
*/
|
|
2456
|
-
|
|
2338
|
+
subscribe: boolean;
|
|
2457
2339
|
}
|
|
2458
2340
|
/**
|
|
2459
2341
|
* @public
|
|
2460
2342
|
*/
|
|
2461
|
-
export interface
|
|
2462
|
-
/**
|
|
2463
|
-
* The step the new code is for: `primaryCode` or `targetCode`.
|
|
2464
|
-
* @public
|
|
2465
|
-
*/
|
|
2466
|
-
step: IdentityChallengeStep;
|
|
2467
|
-
/**
|
|
2468
|
-
* Seconds until the code may be sent again.
|
|
2469
|
-
* @public
|
|
2470
|
-
*/
|
|
2471
|
-
resendAfter: number;
|
|
2343
|
+
export interface ToggleTranscriptionEmailNotificationsSubscriptionOutput {
|
|
2472
2344
|
}
|
|
2473
2345
|
/**
|
|
2474
2346
|
* @public
|
|
2475
2347
|
*/
|
|
2476
|
-
export interface
|
|
2477
|
-
|
|
2478
|
-
* Identifies the reset. A retry of the same reset must send the same value.
|
|
2479
|
-
* @public
|
|
2480
|
-
*/
|
|
2481
|
-
requestId: string;
|
|
2482
|
-
/**
|
|
2483
|
-
* The id of the user on the PBX.
|
|
2484
|
-
* @public
|
|
2485
|
-
*/
|
|
2486
|
-
pbxUserId: string;
|
|
2487
|
-
/**
|
|
2488
|
-
* The user's email, as it was before the removal.
|
|
2489
|
-
* @public
|
|
2490
|
-
*/
|
|
2491
|
-
email?: string | undefined;
|
|
2492
|
-
/**
|
|
2493
|
-
* The user's mobile phone, as it was before the removal.
|
|
2494
|
-
* @public
|
|
2495
|
-
*/
|
|
2496
|
-
mobilePhone?: string | undefined;
|
|
2348
|
+
export interface ToggleUnreadEmailNotificationsSubscriptionInput {
|
|
2349
|
+
unsubscribeToken: string;
|
|
2497
2350
|
/**
|
|
2498
|
-
*
|
|
2351
|
+
* A flag that indicates whether the system should send email notifications about unread messages.
|
|
2499
2352
|
* @public
|
|
2500
2353
|
*/
|
|
2501
|
-
|
|
2354
|
+
subscribe: boolean;
|
|
2502
2355
|
}
|
|
2503
2356
|
/**
|
|
2504
2357
|
* @public
|
|
2505
2358
|
*/
|
|
2506
|
-
export interface
|
|
2507
|
-
/**
|
|
2508
|
-
* The workspaces marked deleted. Empty when no workspace matched.
|
|
2509
|
-
* @public
|
|
2510
|
-
*/
|
|
2511
|
-
deletedWorkspaceIds: string[];
|
|
2512
|
-
/**
|
|
2513
|
-
* The new workspaces, one for each account that lost a workspace. Empty when the user does not stay on the PBX or nothing was deleted.
|
|
2514
|
-
* @public
|
|
2515
|
-
*/
|
|
2516
|
-
createdWorkspaceIds: string[];
|
|
2359
|
+
export interface ToggleUnreadEmailNotificationsSubscriptionOutput {
|
|
2517
2360
|
}
|
|
2518
2361
|
/**
|
|
2519
2362
|
* @public
|
|
2520
2363
|
*/
|
|
2521
|
-
export interface
|
|
2364
|
+
export interface UnlinkIdentityInput {
|
|
2522
2365
|
/**
|
|
2523
2366
|
* The unique identifier of the account.
|
|
2524
2367
|
* @public
|
|
2525
2368
|
*/
|
|
2526
2369
|
accountId: string;
|
|
2527
2370
|
/**
|
|
2528
|
-
* The
|
|
2529
|
-
* @public
|
|
2530
|
-
*/
|
|
2531
|
-
operation: IdentityChallengeOperation;
|
|
2532
|
-
/**
|
|
2533
|
-
* The address the change is about.
|
|
2534
|
-
* @public
|
|
2535
|
-
*/
|
|
2536
|
-
target: IdentityTarget;
|
|
2537
|
-
/**
|
|
2538
|
-
* Cloudflare Turnstile token, as in SMS sign-in. Required when a code goes to a phone target: `add` of a phone number and `verify` of a pending phone number. A missing token or one Cloudflare rejects gives `ValidationException`; Turnstile unreachable or timing out gives `ServiceUnavailableException`.
|
|
2539
|
-
* @public
|
|
2540
|
-
*/
|
|
2541
|
-
captchaToken?: string | undefined;
|
|
2542
|
-
/**
|
|
2543
|
-
* The user agreed to receive one-time codes by SMS from Wildix, Inc. Required (true) for a US or Canadian number in `add` and `verify`; a missing consent gives `ValidationException`.
|
|
2544
|
-
* @public
|
|
2545
|
-
*/
|
|
2546
|
-
smsConsent?: boolean | undefined;
|
|
2547
|
-
/**
|
|
2548
|
-
* The user accepted the Terms of Service and the Privacy Policy. Required (true) for a US or Canadian number in `add` and `verify`; a missing consent gives `ValidationException`.
|
|
2549
|
-
* @public
|
|
2550
|
-
*/
|
|
2551
|
-
termsAccepted?: boolean | undefined;
|
|
2552
|
-
/**
|
|
2553
|
-
* The app's current locale, used for the letters and SMS with codes of this challenge. English when absent or not supported.
|
|
2554
|
-
* @public
|
|
2555
|
-
*/
|
|
2556
|
-
language?: string | undefined;
|
|
2557
|
-
/**
|
|
2558
|
-
* The app the user is in. Picks the brand of the code SMS and email. When absent (S2S callers), x-bees.
|
|
2559
|
-
* @public
|
|
2560
|
-
*/
|
|
2561
|
-
appType?: AppType | undefined;
|
|
2562
|
-
}
|
|
2563
|
-
/**
|
|
2564
|
-
* The state of an identity challenge, returned by `StartIdentityChallenge` and `ConfirmIdentityChallenge`.
|
|
2565
|
-
* @public
|
|
2566
|
-
*/
|
|
2567
|
-
export interface StartIdentityChallengeOutput {
|
|
2568
|
-
/**
|
|
2569
|
-
* The identifier to pass to `ConfirmIdentityChallenge`, `ResendIdentityChallengeCode` and `ApplyIdentityRemoval`.
|
|
2570
|
-
* @public
|
|
2571
|
-
*/
|
|
2572
|
-
challengeId: string;
|
|
2573
|
-
/**
|
|
2574
|
-
* Where the challenge stands after this call.
|
|
2575
|
-
* @public
|
|
2576
|
-
*/
|
|
2577
|
-
step: IdentityChallengeStep;
|
|
2578
|
-
/**
|
|
2579
|
-
* Seconds until `ResendIdentityChallengeCode` may send the code of this step again. Present when this call sent a code (`step` is `primaryCode` or `targetCode`).
|
|
2580
|
-
* @public
|
|
2581
|
-
*/
|
|
2582
|
-
resendAfter?: number | undefined;
|
|
2583
|
-
/**
|
|
2584
|
-
* What the removal will do. Present on every response of a `remove` challenge.
|
|
2585
|
-
* @public
|
|
2586
|
-
*/
|
|
2587
|
-
dryRun?: IdentityRemovalDryRun | undefined;
|
|
2588
|
-
/**
|
|
2589
|
-
* The identity as it is now. Present when `step` is `done`.
|
|
2590
|
-
* @public
|
|
2591
|
-
*/
|
|
2592
|
-
identity?: Identity | undefined;
|
|
2593
|
-
}
|
|
2594
|
-
/**
|
|
2595
|
-
* @public
|
|
2596
|
-
*/
|
|
2597
|
-
export interface ToggleTranscriptionEmailNotificationsSubscriptionInput {
|
|
2598
|
-
unsubscribeToken: string;
|
|
2599
|
-
/**
|
|
2600
|
-
* A flag that indicates whether the system should send email notifications about AI transcription.
|
|
2601
|
-
* @public
|
|
2602
|
-
*/
|
|
2603
|
-
subscribe: boolean;
|
|
2604
|
-
}
|
|
2605
|
-
/**
|
|
2606
|
-
* @public
|
|
2607
|
-
*/
|
|
2608
|
-
export interface ToggleTranscriptionEmailNotificationsSubscriptionOutput {
|
|
2609
|
-
}
|
|
2610
|
-
/**
|
|
2611
|
-
* @public
|
|
2612
|
-
*/
|
|
2613
|
-
export interface ToggleUnreadEmailNotificationsSubscriptionInput {
|
|
2614
|
-
unsubscribeToken: string;
|
|
2615
|
-
/**
|
|
2616
|
-
* A flag that indicates whether the system should send email notifications about unread messages.
|
|
2371
|
+
* The identity value (email or phone) to remove.
|
|
2617
2372
|
* @public
|
|
2618
2373
|
*/
|
|
2619
|
-
|
|
2374
|
+
identity: string;
|
|
2620
2375
|
}
|
|
2621
2376
|
/**
|
|
2622
2377
|
* @public
|
|
2623
2378
|
*/
|
|
2624
|
-
export interface
|
|
2379
|
+
export interface UnlinkIdentityOutput {
|
|
2625
2380
|
}
|
|
2626
2381
|
/**
|
|
2627
2382
|
* @public
|
|
@@ -2658,7 +2413,7 @@ export interface UpdateAccountInput {
|
|
|
2658
2413
|
*/
|
|
2659
2414
|
defaultWorkspace?: string | undefined;
|
|
2660
2415
|
/**
|
|
2661
|
-
* The
|
|
2416
|
+
* The identity value (email or phone) to set as primary.
|
|
2662
2417
|
* @public
|
|
2663
2418
|
*/
|
|
2664
2419
|
primaryIdentity?: string | undefined;
|
|
@@ -2860,3 +2615,29 @@ export interface VerifyBotSecretKeyV1Output {
|
|
|
2860
2615
|
id: string;
|
|
2861
2616
|
name?: string | undefined;
|
|
2862
2617
|
}
|
|
2618
|
+
/**
|
|
2619
|
+
* @public
|
|
2620
|
+
*/
|
|
2621
|
+
export interface VerifyIdentityInput {
|
|
2622
|
+
/**
|
|
2623
|
+
* The unique identifier of the account.
|
|
2624
|
+
* @public
|
|
2625
|
+
*/
|
|
2626
|
+
accountId: string;
|
|
2627
|
+
/**
|
|
2628
|
+
* The identity value that was added (email or phone).
|
|
2629
|
+
* @public
|
|
2630
|
+
*/
|
|
2631
|
+
identity: string;
|
|
2632
|
+
/**
|
|
2633
|
+
* OTP sent to the new identity to prove ownership.
|
|
2634
|
+
* @public
|
|
2635
|
+
*/
|
|
2636
|
+
otp: string;
|
|
2637
|
+
}
|
|
2638
|
+
/**
|
|
2639
|
+
* @public
|
|
2640
|
+
*/
|
|
2641
|
+
export interface VerifyIdentityOutput {
|
|
2642
|
+
identity: Identity;
|
|
2643
|
+
}
|
|
@@ -3,7 +3,6 @@ import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, S
|
|
|
3
3
|
export declare var UsersServiceException$: StaticErrorSchema;
|
|
4
4
|
export declare var ForbiddenException$: StaticErrorSchema;
|
|
5
5
|
export declare var RateLimitExceededException$: StaticErrorSchema;
|
|
6
|
-
export declare var ServiceUnavailableException$: StaticErrorSchema;
|
|
7
6
|
export declare var ValidationException$: StaticErrorSchema;
|
|
8
7
|
export declare var ChannelNotFoundException$: StaticErrorSchema;
|
|
9
8
|
export declare var WidgetNotFoundException$: StaticErrorSchema;
|
|
@@ -16,14 +15,9 @@ export declare var BotNotFoundException$: StaticErrorSchema;
|
|
|
16
15
|
export declare var BotSecretKeyNotValidException$: StaticErrorSchema;
|
|
17
16
|
export declare var CannotRemovePrimaryIdentityException$: StaticErrorSchema;
|
|
18
17
|
export declare var CannotUnbindDefaultWorkspaceException$: StaticErrorSchema;
|
|
19
|
-
export declare var ChallengeNotFoundException$: StaticErrorSchema;
|
|
20
|
-
export declare var CodeExpiredException$: StaticErrorSchema;
|
|
21
18
|
export declare var IdentityAlreadyLinkedException$: StaticErrorSchema;
|
|
22
19
|
export declare var IdentityNotFoundException$: StaticErrorSchema;
|
|
23
|
-
export declare var IncorrectCodeException$: StaticErrorSchema;
|
|
24
20
|
export declare var PublicAccessIsRestrictedException$: StaticErrorSchema;
|
|
25
|
-
export declare var RateLimitedException$: StaticErrorSchema;
|
|
26
|
-
export declare var TooManyAttemptsException$: StaticErrorSchema;
|
|
27
21
|
export declare var UserCompanyNotValidException$: StaticErrorSchema;
|
|
28
22
|
export declare var UserNotFoundException$: StaticErrorSchema;
|
|
29
23
|
export declare var UserQueryPredicateNotMetException$: StaticErrorSchema;
|
|
@@ -53,8 +47,6 @@ export declare var AccountWorkspaceState$: StaticStructureSchema;
|
|
|
53
47
|
export declare var AccountWorkspaceWrite$: StaticStructureSchema;
|
|
54
48
|
export declare var ApplyAccountWorkspaceChangesInput$: StaticStructureSchema;
|
|
55
49
|
export declare var ApplyAccountWorkspaceChangesOutput$: StaticStructureSchema;
|
|
56
|
-
export declare var ApplyIdentityRemovalInput$: StaticStructureSchema;
|
|
57
|
-
export declare var ApplyIdentityRemovalOutput$: StaticStructureSchema;
|
|
58
50
|
export declare var BatchGetUsersEmailNotificationsSettingsInput$: StaticStructureSchema;
|
|
59
51
|
export declare var BatchGetUsersEmailNotificationsSettingsOutput$: StaticStructureSchema;
|
|
60
52
|
export declare var BatchGetUsersInput$: StaticStructureSchema;
|
|
@@ -92,8 +84,6 @@ export declare var BotToolVariablesAnnotation$: StaticStructureSchema;
|
|
|
92
84
|
export declare var BotWebhookEndpoint$: StaticStructureSchema;
|
|
93
85
|
export declare var ChangeUserEmailInput$: StaticStructureSchema;
|
|
94
86
|
export declare var ChangeUserEmailOutput$: StaticStructureSchema;
|
|
95
|
-
export declare var ConfirmIdentityChallengeInput$: StaticStructureSchema;
|
|
96
|
-
export declare var ConfirmIdentityChallengeOutput$: StaticStructureSchema;
|
|
97
87
|
export declare var CreateAnonymousSessionInput$: StaticStructureSchema;
|
|
98
88
|
export declare var CreateAnonymousSessionOutput$: StaticStructureSchema;
|
|
99
89
|
export declare var CreateBotApiKeyInput$: StaticStructureSchema;
|
|
@@ -126,13 +116,12 @@ export declare var GetUserPbxLinkSuggestionOutput$: StaticStructureSchema;
|
|
|
126
116
|
export declare var GetUserPbxLinkSuggestionV1Input$: StaticStructureSchema;
|
|
127
117
|
export declare var GetUserPbxLinkSuggestionV1Output$: StaticStructureSchema;
|
|
128
118
|
export declare var Identity$: StaticStructureSchema;
|
|
129
|
-
export declare var IdentityRemovalDryRun$: StaticStructureSchema;
|
|
130
|
-
export declare var IdentityRemovalLostWorkspace$: StaticStructureSchema;
|
|
131
|
-
export declare var IdentityTarget$: StaticStructureSchema;
|
|
132
119
|
export declare var IntelligenceSearchInput$: StaticStructureSchema;
|
|
133
120
|
export declare var IntelligenceSearchOutput$: StaticStructureSchema;
|
|
134
121
|
export declare var InviteInput$: StaticStructureSchema;
|
|
135
122
|
export declare var InviteOutput$: StaticStructureSchema;
|
|
123
|
+
export declare var LinkIdentityInput$: StaticStructureSchema;
|
|
124
|
+
export declare var LinkIdentityOutput$: StaticStructureSchema;
|
|
136
125
|
export declare var ListAccountEmailChangesInput$: StaticStructureSchema;
|
|
137
126
|
export declare var ListAccountEmailChangesOutput$: StaticStructureSchema;
|
|
138
127
|
export declare var ListBotApiKeysInput$: StaticStructureSchema;
|
|
@@ -155,16 +144,12 @@ export declare var QueryUserInput$: StaticStructureSchema;
|
|
|
155
144
|
export declare var QueryUserOutput$: StaticStructureSchema;
|
|
156
145
|
export declare var QueryUsersInput$: StaticStructureSchema;
|
|
157
146
|
export declare var QueryUsersOutput$: StaticStructureSchema;
|
|
158
|
-
export declare var ResendIdentityChallengeCodeInput$: StaticStructureSchema;
|
|
159
|
-
export declare var ResendIdentityChallengeCodeOutput$: StaticStructureSchema;
|
|
160
|
-
export declare var ResetUserChatHistoryInput$: StaticStructureSchema;
|
|
161
|
-
export declare var ResetUserChatHistoryOutput$: StaticStructureSchema;
|
|
162
|
-
export declare var StartIdentityChallengeInput$: StaticStructureSchema;
|
|
163
|
-
export declare var StartIdentityChallengeOutput$: StaticStructureSchema;
|
|
164
147
|
export declare var ToggleTranscriptionEmailNotificationsSubscriptionInput$: StaticStructureSchema;
|
|
165
148
|
export declare var ToggleTranscriptionEmailNotificationsSubscriptionOutput$: StaticStructureSchema;
|
|
166
149
|
export declare var ToggleUnreadEmailNotificationsSubscriptionInput$: StaticStructureSchema;
|
|
167
150
|
export declare var ToggleUnreadEmailNotificationsSubscriptionOutput$: StaticStructureSchema;
|
|
151
|
+
export declare var UnlinkIdentityInput$: StaticStructureSchema;
|
|
152
|
+
export declare var UnlinkIdentityOutput$: StaticStructureSchema;
|
|
168
153
|
export declare var UnlinkWorkspaceInput$: StaticStructureSchema;
|
|
169
154
|
export declare var UnlinkWorkspaceOutput$: StaticStructureSchema;
|
|
170
155
|
export declare var UpdateAccountInput$: StaticStructureSchema;
|
|
@@ -194,6 +179,8 @@ export declare var VerifyBotSecretKeyInput$: StaticStructureSchema;
|
|
|
194
179
|
export declare var VerifyBotSecretKeyOutput$: StaticStructureSchema;
|
|
195
180
|
export declare var VerifyBotSecretKeyV1Input$: StaticStructureSchema;
|
|
196
181
|
export declare var VerifyBotSecretKeyV1Output$: StaticStructureSchema;
|
|
182
|
+
export declare var VerifyIdentityInput$: StaticStructureSchema;
|
|
183
|
+
export declare var VerifyIdentityOutput$: StaticStructureSchema;
|
|
197
184
|
export declare var Workspace$: StaticStructureSchema;
|
|
198
185
|
export declare var AnonymousEntryContext$: StaticUnionSchema;
|
|
199
186
|
export declare var BotCapability$: StaticUnionSchema;
|
|
@@ -204,13 +191,11 @@ export declare var BotToolAnnotation$: StaticUnionSchema;
|
|
|
204
191
|
export declare var BotToolVariableHandler$: StaticUnionSchema;
|
|
205
192
|
export declare var UserQuery$: StaticUnionSchema;
|
|
206
193
|
export declare var ApplyAccountWorkspaceChanges$: StaticOperationSchema;
|
|
207
|
-
export declare var ApplyIdentityRemoval$: StaticOperationSchema;
|
|
208
194
|
export declare var BatchGetUsers$: StaticOperationSchema;
|
|
209
195
|
export declare var BatchGetUsersEmailNotificationsSettings$: StaticOperationSchema;
|
|
210
196
|
export declare var BatchGetUsersPbxLinkData$: StaticOperationSchema;
|
|
211
197
|
export declare var BatchGetUsersPbxLinkDataV1$: StaticOperationSchema;
|
|
212
198
|
export declare var ChangeUserEmail$: StaticOperationSchema;
|
|
213
|
-
export declare var ConfirmIdentityChallenge$: StaticOperationSchema;
|
|
214
199
|
export declare var CreateAnonymousSession$: StaticOperationSchema;
|
|
215
200
|
export declare var CreateBot$: StaticOperationSchema;
|
|
216
201
|
export declare var CreateBotApiKey$: StaticOperationSchema;
|
|
@@ -228,6 +213,7 @@ export declare var GetUserPbxLinkSuggestion$: StaticOperationSchema;
|
|
|
228
213
|
export declare var GetUserPbxLinkSuggestionV1$: StaticOperationSchema;
|
|
229
214
|
export declare var IntelligenceSearch$: StaticOperationSchema;
|
|
230
215
|
export declare var Invite$: StaticOperationSchema;
|
|
216
|
+
export declare var LinkIdentity$: StaticOperationSchema;
|
|
231
217
|
export declare var ListAccountEmailChanges$: StaticOperationSchema;
|
|
232
218
|
export declare var ListBotApiKeys$: StaticOperationSchema;
|
|
233
219
|
export declare var ListBots$: StaticOperationSchema;
|
|
@@ -237,11 +223,9 @@ export declare var PartialUpdateUserEmailNotificationsSettings$: StaticOperation
|
|
|
237
223
|
export declare var QueryColleagues$: StaticOperationSchema;
|
|
238
224
|
export declare var QueryUser$: StaticOperationSchema;
|
|
239
225
|
export declare var QueryUsers$: StaticOperationSchema;
|
|
240
|
-
export declare var ResendIdentityChallengeCode$: StaticOperationSchema;
|
|
241
|
-
export declare var ResetUserChatHistory$: StaticOperationSchema;
|
|
242
|
-
export declare var StartIdentityChallenge$: StaticOperationSchema;
|
|
243
226
|
export declare var ToggleTranscriptionEmailNotificationsSubscription$: StaticOperationSchema;
|
|
244
227
|
export declare var ToggleUnreadEmailNotificationsSubscription$: StaticOperationSchema;
|
|
228
|
+
export declare var UnlinkIdentity$: StaticOperationSchema;
|
|
245
229
|
export declare var UnlinkWorkspace$: StaticOperationSchema;
|
|
246
230
|
export declare var UpdateAccount$: StaticOperationSchema;
|
|
247
231
|
export declare var UpdateBot$: StaticOperationSchema;
|
|
@@ -252,3 +236,4 @@ export declare var UploadPicture$: StaticOperationSchema;
|
|
|
252
236
|
export declare var UploadPictureV1$: StaticOperationSchema;
|
|
253
237
|
export declare var VerifyBotSecretKey$: StaticOperationSchema;
|
|
254
238
|
export declare var VerifyBotSecretKeyV1$: StaticOperationSchema;
|
|
239
|
+
export declare var VerifyIdentity$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-users-client",
|
|
3
3
|
"description": "@wildix/xbees-users-client client",
|
|
4
|
-
"version": "4.4.0-
|
|
4
|
+
"version": "4.4.0-wms29809.2",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConfirmIdentityChallengeCommand = exports.$Command = void 0;
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
-
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
-
class ConfirmIdentityChallengeCommand extends client_1.Command
|
|
10
|
-
.classBuilder()
|
|
11
|
-
.ep(EndpointParameters_1.commonParams)
|
|
12
|
-
.m(function (Command, cs, config, o) {
|
|
13
|
-
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
|
-
})
|
|
15
|
-
.s("Users", "ConfirmIdentityChallenge", {})
|
|
16
|
-
.n("UsersClient", "ConfirmIdentityChallengeCommand")
|
|
17
|
-
.sc(schemas_0_1.ConfirmIdentityChallenge$)
|
|
18
|
-
.build() {
|
|
19
|
-
}
|
|
20
|
-
exports.ConfirmIdentityChallengeCommand = ConfirmIdentityChallengeCommand;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResendIdentityChallengeCodeCommand = exports.$Command = void 0;
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
-
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
-
class ResendIdentityChallengeCodeCommand extends client_1.Command
|
|
10
|
-
.classBuilder()
|
|
11
|
-
.ep(EndpointParameters_1.commonParams)
|
|
12
|
-
.m(function (Command, cs, config, o) {
|
|
13
|
-
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
|
-
})
|
|
15
|
-
.s("Users", "ResendIdentityChallengeCode", {})
|
|
16
|
-
.n("UsersClient", "ResendIdentityChallengeCodeCommand")
|
|
17
|
-
.sc(schemas_0_1.ResendIdentityChallengeCode$)
|
|
18
|
-
.build() {
|
|
19
|
-
}
|
|
20
|
-
exports.ResendIdentityChallengeCodeCommand = ResendIdentityChallengeCodeCommand;
|