@wildix/xbees-users-client 4.3.3-wms28830.1 → 4.4.0-stage.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist-cjs/Users.js +17 -7
  2. package/dist-cjs/auth/httpAuthSchemeProvider.js +35 -16
  3. package/dist-cjs/commands/ApplyAccountWorkspaceChangesCommand.js +20 -0
  4. package/dist-cjs/commands/{LinkIdentityCommand.js → ApplyIdentityRemovalCommand.js} +6 -6
  5. package/dist-cjs/commands/ConfirmIdentityChallengeCommand.js +20 -0
  6. package/dist-cjs/commands/{VerifyIdentityCommand.js → ListAccountEmailChangesCommand.js} +6 -6
  7. package/dist-cjs/commands/ResendIdentityChallengeCodeCommand.js +20 -0
  8. package/dist-cjs/commands/{UnlinkIdentityCommand.js → StartIdentityChallengeCommand.js} +6 -6
  9. package/dist-cjs/commands/index.js +6 -3
  10. package/dist-cjs/index.js +1 -0
  11. package/dist-cjs/models/enums.js +88 -5
  12. package/dist-cjs/models/errors.js +144 -24
  13. package/dist-cjs/pagination/Interfaces.js +2 -0
  14. package/dist-cjs/pagination/ListAccountEmailChangesPaginator.js +7 -0
  15. package/dist-cjs/pagination/index.js +5 -0
  16. package/dist-cjs/schemas/schemas_0.js +431 -151
  17. package/dist-es/Users.js +17 -7
  18. package/dist-es/auth/httpAuthSchemeProvider.js +35 -16
  19. package/dist-es/commands/ApplyAccountWorkspaceChangesCommand.js +16 -0
  20. package/dist-es/commands/{UnlinkIdentityCommand.js → ApplyIdentityRemovalCommand.js} +5 -5
  21. package/dist-es/commands/ConfirmIdentityChallengeCommand.js +16 -0
  22. package/dist-es/commands/{LinkIdentityCommand.js → ListAccountEmailChangesCommand.js} +5 -5
  23. package/dist-es/commands/ResendIdentityChallengeCodeCommand.js +16 -0
  24. package/dist-es/commands/{VerifyIdentityCommand.js → StartIdentityChallengeCommand.js} +5 -5
  25. package/dist-es/commands/index.js +6 -3
  26. package/dist-es/index.js +1 -0
  27. package/dist-es/models/enums.js +87 -4
  28. package/dist-es/models/errors.js +132 -20
  29. package/dist-es/pagination/Interfaces.js +1 -0
  30. package/dist-es/pagination/ListAccountEmailChangesPaginator.js +4 -0
  31. package/dist-es/pagination/index.js +2 -0
  32. package/dist-es/schemas/schemas_0.js +427 -147
  33. package/dist-types/Users.d.ts +46 -18
  34. package/dist-types/UsersClient.d.ts +8 -5
  35. package/dist-types/commands/ApplyAccountWorkspaceChangesCommand.d.ts +193 -0
  36. package/dist-types/commands/ApplyIdentityRemovalCommand.d.ts +93 -0
  37. package/dist-types/commands/ConfirmIdentityChallengeCommand.d.ts +138 -0
  38. package/dist-types/commands/ListAccountEmailChangesCommand.d.ts +101 -0
  39. package/dist-types/commands/ListIdentitiesCommand.d.ts +4 -2
  40. package/dist-types/commands/QueryUserCommand.d.ts +1 -1
  41. package/dist-types/commands/QueryUsersCommand.d.ts +1 -1
  42. package/dist-types/commands/ResendIdentityChallengeCodeCommand.d.ts +96 -0
  43. package/dist-types/commands/StartIdentityChallengeCommand.d.ts +139 -0
  44. package/dist-types/commands/UpdateAccountCommand.d.ts +2 -1
  45. package/dist-types/commands/index.d.ts +6 -3
  46. package/dist-types/index.d.ts +1 -0
  47. package/dist-types/models/enums.d.ts +344 -8
  48. package/dist-types/models/errors.d.ts +158 -17
  49. package/dist-types/models/models_0.d.ts +659 -69
  50. package/dist-types/pagination/Interfaces.d.ts +8 -0
  51. package/dist-types/pagination/ListAccountEmailChangesPaginator.d.ts +7 -0
  52. package/dist-types/pagination/index.d.ts +2 -0
  53. package/dist-types/schemas/schemas_0.d.ts +40 -9
  54. package/package.json +5 -5
  55. package/dist-types/commands/LinkIdentityCommand.d.ts +0 -89
  56. package/dist-types/commands/UnlinkIdentityCommand.d.ts +0 -85
  57. package/dist-types/commands/VerifyIdentityCommand.d.ts +0 -90
@@ -0,0 +1,8 @@
1
+ import type { PaginationConfiguration } from "@smithy/types";
2
+ import { UsersClient } from "../UsersClient";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface UsersPaginationConfiguration extends PaginationConfiguration {
7
+ client: UsersClient;
8
+ }
@@ -0,0 +1,7 @@
1
+ import type { Paginator } from "@smithy/types";
2
+ import { ListAccountEmailChangesCommandInput, ListAccountEmailChangesCommandOutput } from "../commands/ListAccountEmailChangesCommand";
3
+ import type { UsersPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListAccountEmailChanges: (config: UsersPaginationConfiguration, input: ListAccountEmailChangesCommandInput, ...rest: any[]) => Paginator<ListAccountEmailChangesCommandOutput>;
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListAccountEmailChangesPaginator";
@@ -3,19 +3,27 @@ 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;
6
7
  export declare var ValidationException$: StaticErrorSchema;
7
8
  export declare var ChannelNotFoundException$: StaticErrorSchema;
8
9
  export declare var WidgetNotFoundException$: StaticErrorSchema;
9
10
  export declare var AccountNotFoundException$: StaticErrorSchema;
11
+ export declare var AccountWorkspaceChangeRefusedException$: StaticErrorSchema;
12
+ export declare var AccountWorkspaceConflictException$: StaticErrorSchema;
10
13
  export declare var BotAlreadyExistsException$: StaticErrorSchema;
11
14
  export declare var BotApiKeyNotFoundException$: StaticErrorSchema;
12
15
  export declare var BotNotFoundException$: StaticErrorSchema;
13
16
  export declare var BotSecretKeyNotValidException$: StaticErrorSchema;
14
17
  export declare var CannotRemovePrimaryIdentityException$: StaticErrorSchema;
15
18
  export declare var CannotUnbindDefaultWorkspaceException$: StaticErrorSchema;
19
+ export declare var ChallengeNotFoundException$: StaticErrorSchema;
20
+ export declare var CodeExpiredException$: StaticErrorSchema;
16
21
  export declare var IdentityAlreadyLinkedException$: StaticErrorSchema;
17
22
  export declare var IdentityNotFoundException$: StaticErrorSchema;
23
+ export declare var IncorrectCodeException$: StaticErrorSchema;
18
24
  export declare var PublicAccessIsRestrictedException$: StaticErrorSchema;
25
+ export declare var RateLimitedException$: StaticErrorSchema;
26
+ export declare var TooManyAttemptsException$: StaticErrorSchema;
19
27
  export declare var UserCompanyNotValidException$: StaticErrorSchema;
20
28
  export declare var UserNotFoundException$: StaticErrorSchema;
21
29
  export declare var UserQueryPredicateNotMetException$: StaticErrorSchema;
@@ -32,6 +40,21 @@ export declare var SkippedMember$: StaticStructureSchema;
32
40
  export declare var User$: StaticStructureSchema;
33
41
  export declare var UserToInvite$: StaticStructureSchema;
34
42
  export declare var Account$: StaticStructureSchema;
43
+ export declare var AccountEmailChange$: StaticStructureSchema;
44
+ export declare var AccountWorkspaceChange$: StaticStructureSchema;
45
+ export declare var AccountWorkspaceChangeOperator$: StaticStructureSchema;
46
+ export declare var AccountWorkspaceCheck$: StaticStructureSchema;
47
+ export declare var AccountWorkspaceEffect$: StaticStructureSchema;
48
+ export declare var AccountWorkspaceExpectedRow$: StaticStructureSchema;
49
+ export declare var AccountWorkspacePbxLink$: StaticStructureSchema;
50
+ export declare var AccountWorkspaceRowKey$: StaticStructureSchema;
51
+ export declare var AccountWorkspacesState$: StaticStructureSchema;
52
+ export declare var AccountWorkspaceState$: StaticStructureSchema;
53
+ export declare var AccountWorkspaceWrite$: StaticStructureSchema;
54
+ export declare var ApplyAccountWorkspaceChangesInput$: StaticStructureSchema;
55
+ export declare var ApplyAccountWorkspaceChangesOutput$: StaticStructureSchema;
56
+ export declare var ApplyIdentityRemovalInput$: StaticStructureSchema;
57
+ export declare var ApplyIdentityRemovalOutput$: StaticStructureSchema;
35
58
  export declare var BatchGetUsersEmailNotificationsSettingsInput$: StaticStructureSchema;
36
59
  export declare var BatchGetUsersEmailNotificationsSettingsOutput$: StaticStructureSchema;
37
60
  export declare var BatchGetUsersInput$: StaticStructureSchema;
@@ -69,6 +92,8 @@ export declare var BotToolVariablesAnnotation$: StaticStructureSchema;
69
92
  export declare var BotWebhookEndpoint$: StaticStructureSchema;
70
93
  export declare var ChangeUserEmailInput$: StaticStructureSchema;
71
94
  export declare var ChangeUserEmailOutput$: StaticStructureSchema;
95
+ export declare var ConfirmIdentityChallengeInput$: StaticStructureSchema;
96
+ export declare var ConfirmIdentityChallengeOutput$: StaticStructureSchema;
72
97
  export declare var CreateAnonymousSessionInput$: StaticStructureSchema;
73
98
  export declare var CreateAnonymousSessionOutput$: StaticStructureSchema;
74
99
  export declare var CreateBotApiKeyInput$: StaticStructureSchema;
@@ -101,12 +126,15 @@ export declare var GetUserPbxLinkSuggestionOutput$: StaticStructureSchema;
101
126
  export declare var GetUserPbxLinkSuggestionV1Input$: StaticStructureSchema;
102
127
  export declare var GetUserPbxLinkSuggestionV1Output$: StaticStructureSchema;
103
128
  export declare var Identity$: StaticStructureSchema;
129
+ export declare var IdentityRemovalDryRun$: StaticStructureSchema;
130
+ export declare var IdentityRemovalLostWorkspace$: StaticStructureSchema;
131
+ export declare var IdentityTarget$: StaticStructureSchema;
104
132
  export declare var IntelligenceSearchInput$: StaticStructureSchema;
105
133
  export declare var IntelligenceSearchOutput$: StaticStructureSchema;
106
134
  export declare var InviteInput$: StaticStructureSchema;
107
135
  export declare var InviteOutput$: StaticStructureSchema;
108
- export declare var LinkIdentityInput$: StaticStructureSchema;
109
- export declare var LinkIdentityOutput$: StaticStructureSchema;
136
+ export declare var ListAccountEmailChangesInput$: StaticStructureSchema;
137
+ export declare var ListAccountEmailChangesOutput$: StaticStructureSchema;
110
138
  export declare var ListBotApiKeysInput$: StaticStructureSchema;
111
139
  export declare var ListBotApiKeysOutput$: StaticStructureSchema;
112
140
  export declare var ListBotsInput$: StaticStructureSchema;
@@ -127,14 +155,16 @@ export declare var QueryUserInput$: StaticStructureSchema;
127
155
  export declare var QueryUserOutput$: StaticStructureSchema;
128
156
  export declare var QueryUsersInput$: StaticStructureSchema;
129
157
  export declare var QueryUsersOutput$: StaticStructureSchema;
158
+ export declare var ResendIdentityChallengeCodeInput$: StaticStructureSchema;
159
+ export declare var ResendIdentityChallengeCodeOutput$: StaticStructureSchema;
130
160
  export declare var ResetUserChatHistoryInput$: StaticStructureSchema;
131
161
  export declare var ResetUserChatHistoryOutput$: StaticStructureSchema;
162
+ export declare var StartIdentityChallengeInput$: StaticStructureSchema;
163
+ export declare var StartIdentityChallengeOutput$: StaticStructureSchema;
132
164
  export declare var ToggleTranscriptionEmailNotificationsSubscriptionInput$: StaticStructureSchema;
133
165
  export declare var ToggleTranscriptionEmailNotificationsSubscriptionOutput$: StaticStructureSchema;
134
166
  export declare var ToggleUnreadEmailNotificationsSubscriptionInput$: StaticStructureSchema;
135
167
  export declare var ToggleUnreadEmailNotificationsSubscriptionOutput$: StaticStructureSchema;
136
- export declare var UnlinkIdentityInput$: StaticStructureSchema;
137
- export declare var UnlinkIdentityOutput$: StaticStructureSchema;
138
168
  export declare var UnlinkWorkspaceInput$: StaticStructureSchema;
139
169
  export declare var UnlinkWorkspaceOutput$: StaticStructureSchema;
140
170
  export declare var UpdateAccountInput$: StaticStructureSchema;
@@ -164,8 +194,6 @@ export declare var VerifyBotSecretKeyInput$: StaticStructureSchema;
164
194
  export declare var VerifyBotSecretKeyOutput$: StaticStructureSchema;
165
195
  export declare var VerifyBotSecretKeyV1Input$: StaticStructureSchema;
166
196
  export declare var VerifyBotSecretKeyV1Output$: StaticStructureSchema;
167
- export declare var VerifyIdentityInput$: StaticStructureSchema;
168
- export declare var VerifyIdentityOutput$: StaticStructureSchema;
169
197
  export declare var Workspace$: StaticStructureSchema;
170
198
  export declare var AnonymousEntryContext$: StaticUnionSchema;
171
199
  export declare var BotCapability$: StaticUnionSchema;
@@ -175,11 +203,14 @@ export declare var BotLlmFunctionIntegrationWebhookAuthorization$: StaticUnionSc
175
203
  export declare var BotToolAnnotation$: StaticUnionSchema;
176
204
  export declare var BotToolVariableHandler$: StaticUnionSchema;
177
205
  export declare var UserQuery$: StaticUnionSchema;
206
+ export declare var ApplyAccountWorkspaceChanges$: StaticOperationSchema;
207
+ export declare var ApplyIdentityRemoval$: StaticOperationSchema;
178
208
  export declare var BatchGetUsers$: StaticOperationSchema;
179
209
  export declare var BatchGetUsersEmailNotificationsSettings$: StaticOperationSchema;
180
210
  export declare var BatchGetUsersPbxLinkData$: StaticOperationSchema;
181
211
  export declare var BatchGetUsersPbxLinkDataV1$: StaticOperationSchema;
182
212
  export declare var ChangeUserEmail$: StaticOperationSchema;
213
+ export declare var ConfirmIdentityChallenge$: StaticOperationSchema;
183
214
  export declare var CreateAnonymousSession$: StaticOperationSchema;
184
215
  export declare var CreateBot$: StaticOperationSchema;
185
216
  export declare var CreateBotApiKey$: StaticOperationSchema;
@@ -197,7 +228,7 @@ export declare var GetUserPbxLinkSuggestion$: StaticOperationSchema;
197
228
  export declare var GetUserPbxLinkSuggestionV1$: StaticOperationSchema;
198
229
  export declare var IntelligenceSearch$: StaticOperationSchema;
199
230
  export declare var Invite$: StaticOperationSchema;
200
- export declare var LinkIdentity$: StaticOperationSchema;
231
+ export declare var ListAccountEmailChanges$: StaticOperationSchema;
201
232
  export declare var ListBotApiKeys$: StaticOperationSchema;
202
233
  export declare var ListBots$: StaticOperationSchema;
203
234
  export declare var ListIdentities$: StaticOperationSchema;
@@ -206,10 +237,11 @@ export declare var PartialUpdateUserEmailNotificationsSettings$: StaticOperation
206
237
  export declare var QueryColleagues$: StaticOperationSchema;
207
238
  export declare var QueryUser$: StaticOperationSchema;
208
239
  export declare var QueryUsers$: StaticOperationSchema;
240
+ export declare var ResendIdentityChallengeCode$: StaticOperationSchema;
209
241
  export declare var ResetUserChatHistory$: StaticOperationSchema;
242
+ export declare var StartIdentityChallenge$: StaticOperationSchema;
210
243
  export declare var ToggleTranscriptionEmailNotificationsSubscription$: StaticOperationSchema;
211
244
  export declare var ToggleUnreadEmailNotificationsSubscription$: StaticOperationSchema;
212
- export declare var UnlinkIdentity$: StaticOperationSchema;
213
245
  export declare var UnlinkWorkspace$: StaticOperationSchema;
214
246
  export declare var UpdateAccount$: StaticOperationSchema;
215
247
  export declare var UpdateBot$: StaticOperationSchema;
@@ -220,4 +252,3 @@ export declare var UploadPicture$: StaticOperationSchema;
220
252
  export declare var UploadPictureV1$: StaticOperationSchema;
221
253
  export declare var VerifyBotSecretKey$: StaticOperationSchema;
222
254
  export declare var VerifyBotSecretKeyV1$: StaticOperationSchema;
223
- 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.3.3-wms28830.1",
4
+ "version": "4.4.0-stage.1",
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",
@@ -17,24 +17,24 @@
17
17
  "module": "./dist-es/index.js",
18
18
  "sideEffects": false,
19
19
  "dependencies": {
20
+ "tslib": "^2.6.2",
20
21
  "@aws-crypto/sha256-browser": "5.2.0",
21
22
  "@aws-crypto/sha256-js": "5.2.0",
22
23
  "@aws-sdk/core": "^3.974.15",
23
24
  "@smithy/core": "^3.24.5",
24
25
  "@smithy/fetch-http-handler": "^5.4.5",
25
- "@smithy/middleware-endpoint": "^4.7.2",
26
26
  "@smithy/node-http-handler": "^4.7.5",
27
27
  "@smithy/types": "^4.14.2",
28
28
  "@wildix/smithy-react-native": "^1.0.0",
29
- "tslib": "^2.6.2"
29
+ "@smithy/middleware-endpoint": "^4.7.2"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@tsconfig/node20": "20.1.8",
33
- "@types/node": "^20.14.8",
34
33
  "concurrently": "7.0.0",
35
34
  "downlevel-dts": "0.10.1",
36
35
  "premove": "4.0.0",
37
- "typescript": "~5.8.3"
36
+ "typescript": "~5.8.3",
37
+ "@types/node": "^20.14.8"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=20.0.0"
@@ -1,89 +0,0 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { LinkIdentityInput, LinkIdentityOutput } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
5
- /**
6
- * @public
7
- */
8
- export type { __MetadataBearer };
9
- export { $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link LinkIdentityCommand}.
14
- */
15
- export interface LinkIdentityCommandInput extends LinkIdentityInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link LinkIdentityCommand}.
21
- */
22
- export interface LinkIdentityCommandOutput extends LinkIdentityOutput, __MetadataBearer {
23
- }
24
- declare const LinkIdentityCommand_base: {
25
- new (input: LinkIdentityCommandInput): import("@smithy/core/client").CommandImpl<LinkIdentityCommandInput, LinkIdentityCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: LinkIdentityCommandInput): import("@smithy/core/client").CommandImpl<LinkIdentityCommandInput, LinkIdentityCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Adds a new identity (email or phone) to the account. Requires OTP verification for the new identity. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { UsersClient, LinkIdentityCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
- * // const { UsersClient, LinkIdentityCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
- * // import type { UsersClientConfig } from "@wildix/xbees-users-client";
37
- * const config = {}; // type is UsersClientConfig
38
- * const client = new UsersClient(config);
39
- * const input = { // LinkIdentityInput
40
- * accountId: "STRING_VALUE", // required
41
- * identity: "STRING_VALUE", // required
42
- * };
43
- * const command = new LinkIdentityCommand(input);
44
- * const response = await client.send(command);
45
- * // { // LinkIdentityOutput
46
- * // identity: { // Identity
47
- * // identity: "STRING_VALUE", // required
48
- * // account: "STRING_VALUE", // required
49
- * // verified: true || false,
50
- * // },
51
- * // };
52
- *
53
- * ```
54
- *
55
- * @param LinkIdentityCommandInput - {@link LinkIdentityCommandInput}
56
- * @returns {@link LinkIdentityCommandOutput}
57
- * @see {@link LinkIdentityCommandInput} for command's `input` shape.
58
- * @see {@link LinkIdentityCommandOutput} for command's `response` shape.
59
- * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
60
- *
61
- * @throws {@link AccountNotFoundException} (client fault)
62
- *
63
- * @throws {@link IdentityAlreadyLinkedException} (client fault)
64
- *
65
- * @throws {@link ValidationException} (client fault)
66
- *
67
- * @throws {@link ForbiddenException} (client fault)
68
- *
69
- * @throws {@link RateLimitExceededException} (client fault)
70
- *
71
- * @throws {@link UsersServiceException}
72
- * <p>Base exception class for all service exceptions from Users service.</p>
73
- *
74
- *
75
- * @public
76
- */
77
- export declare class LinkIdentityCommand extends LinkIdentityCommand_base {
78
- /** @internal type navigation helper, not in runtime. */
79
- protected static __types: {
80
- api: {
81
- input: LinkIdentityInput;
82
- output: LinkIdentityOutput;
83
- };
84
- sdk: {
85
- input: LinkIdentityCommandInput;
86
- output: LinkIdentityCommandOutput;
87
- };
88
- };
89
- }
@@ -1,85 +0,0 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { UnlinkIdentityInput, UnlinkIdentityOutput } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
5
- /**
6
- * @public
7
- */
8
- export type { __MetadataBearer };
9
- export { $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link UnlinkIdentityCommand}.
14
- */
15
- export interface UnlinkIdentityCommandInput extends UnlinkIdentityInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link UnlinkIdentityCommand}.
21
- */
22
- export interface UnlinkIdentityCommandOutput extends UnlinkIdentityOutput, __MetadataBearer {
23
- }
24
- declare const UnlinkIdentityCommand_base: {
25
- new (input: UnlinkIdentityCommandInput): import("@smithy/core/client").CommandImpl<UnlinkIdentityCommandInput, UnlinkIdentityCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: UnlinkIdentityCommandInput): import("@smithy/core/client").CommandImpl<UnlinkIdentityCommandInput, UnlinkIdentityCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Removes a non-primary identity from the account. Requires step-up verification for the primary identity. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { UsersClient, UnlinkIdentityCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
- * // const { UsersClient, UnlinkIdentityCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
- * // import type { UsersClientConfig } from "@wildix/xbees-users-client";
37
- * const config = {}; // type is UsersClientConfig
38
- * const client = new UsersClient(config);
39
- * const input = { // UnlinkIdentityInput
40
- * accountId: "STRING_VALUE", // required
41
- * identity: "STRING_VALUE", // required
42
- * };
43
- * const command = new UnlinkIdentityCommand(input);
44
- * const response = await client.send(command);
45
- * // {};
46
- *
47
- * ```
48
- *
49
- * @param UnlinkIdentityCommandInput - {@link UnlinkIdentityCommandInput}
50
- * @returns {@link UnlinkIdentityCommandOutput}
51
- * @see {@link UnlinkIdentityCommandInput} for command's `input` shape.
52
- * @see {@link UnlinkIdentityCommandOutput} for command's `response` shape.
53
- * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
54
- *
55
- * @throws {@link AccountNotFoundException} (client fault)
56
- *
57
- * @throws {@link IdentityNotFoundException} (client fault)
58
- *
59
- * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
60
- *
61
- * @throws {@link ValidationException} (client fault)
62
- *
63
- * @throws {@link ForbiddenException} (client fault)
64
- *
65
- * @throws {@link RateLimitExceededException} (client fault)
66
- *
67
- * @throws {@link UsersServiceException}
68
- * <p>Base exception class for all service exceptions from Users service.</p>
69
- *
70
- *
71
- * @public
72
- */
73
- export declare class UnlinkIdentityCommand extends UnlinkIdentityCommand_base {
74
- /** @internal type navigation helper, not in runtime. */
75
- protected static __types: {
76
- api: {
77
- input: UnlinkIdentityInput;
78
- output: {};
79
- };
80
- sdk: {
81
- input: UnlinkIdentityCommandInput;
82
- output: UnlinkIdentityCommandOutput;
83
- };
84
- };
85
- }
@@ -1,90 +0,0 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { VerifyIdentityInput, VerifyIdentityOutput } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
5
- /**
6
- * @public
7
- */
8
- export type { __MetadataBearer };
9
- export { $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link VerifyIdentityCommand}.
14
- */
15
- export interface VerifyIdentityCommandInput extends VerifyIdentityInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link VerifyIdentityCommand}.
21
- */
22
- export interface VerifyIdentityCommandOutput extends VerifyIdentityOutput, __MetadataBearer {
23
- }
24
- declare const VerifyIdentityCommand_base: {
25
- new (input: VerifyIdentityCommandInput): import("@smithy/core/client").CommandImpl<VerifyIdentityCommandInput, VerifyIdentityCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: VerifyIdentityCommandInput): import("@smithy/core/client").CommandImpl<VerifyIdentityCommandInput, VerifyIdentityCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Completes adding an identity by verifying the OTP sent to the new identity. Call after LinkIdentity. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { UsersClient, VerifyIdentityCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
- * // const { UsersClient, VerifyIdentityCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
- * // import type { UsersClientConfig } from "@wildix/xbees-users-client";
37
- * const config = {}; // type is UsersClientConfig
38
- * const client = new UsersClient(config);
39
- * const input = { // VerifyIdentityInput
40
- * accountId: "STRING_VALUE", // required
41
- * identity: "STRING_VALUE", // required
42
- * otp: "STRING_VALUE", // required
43
- * };
44
- * const command = new VerifyIdentityCommand(input);
45
- * const response = await client.send(command);
46
- * // { // VerifyIdentityOutput
47
- * // identity: { // Identity
48
- * // identity: "STRING_VALUE", // required
49
- * // account: "STRING_VALUE", // required
50
- * // verified: true || false,
51
- * // },
52
- * // };
53
- *
54
- * ```
55
- *
56
- * @param VerifyIdentityCommandInput - {@link VerifyIdentityCommandInput}
57
- * @returns {@link VerifyIdentityCommandOutput}
58
- * @see {@link VerifyIdentityCommandInput} for command's `input` shape.
59
- * @see {@link VerifyIdentityCommandOutput} for command's `response` shape.
60
- * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
61
- *
62
- * @throws {@link AccountNotFoundException} (client fault)
63
- *
64
- * @throws {@link IdentityNotFoundException} (client fault)
65
- *
66
- * @throws {@link ValidationException} (client fault)
67
- *
68
- * @throws {@link ForbiddenException} (client fault)
69
- *
70
- * @throws {@link RateLimitExceededException} (client fault)
71
- *
72
- * @throws {@link UsersServiceException}
73
- * <p>Base exception class for all service exceptions from Users service.</p>
74
- *
75
- *
76
- * @public
77
- */
78
- export declare class VerifyIdentityCommand extends VerifyIdentityCommand_base {
79
- /** @internal type navigation helper, not in runtime. */
80
- protected static __types: {
81
- api: {
82
- input: VerifyIdentityInput;
83
- output: VerifyIdentityOutput;
84
- };
85
- sdk: {
86
- input: VerifyIdentityCommandInput;
87
- output: VerifyIdentityCommandOutput;
88
- };
89
- };
90
- }