@wildix/xbees-users-client 4.3.2 → 4.3.3-wms26787.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 +10 -6
- package/dist-cjs/auth/httpAuthSchemeProvider.js +30 -17
- package/dist-cjs/commands/{LinkIdentityCommand.js → ApplyIdentityRemovalCommand.js} +6 -6
- package/dist-cjs/commands/ConfirmIdentityChallengeCommand.js +20 -0
- package/dist-cjs/commands/ResendIdentityChallengeCodeCommand.js +20 -0
- package/dist-cjs/commands/{UnlinkIdentityCommand.js → ResetUserChatHistoryCommand.js} +6 -6
- package/dist-cjs/commands/{VerifyIdentityCommand.js → StartIdentityChallengeCommand.js} +6 -6
- package/dist-cjs/commands/index.js +5 -3
- package/dist-cjs/models/enums.js +17 -1
- package/dist-cjs/models/errors.js +106 -24
- package/dist-cjs/schemas/schemas_0.js +199 -85
- package/dist-es/Users.js +10 -6
- package/dist-es/auth/httpAuthSchemeProvider.js +30 -17
- package/dist-es/commands/{UnlinkIdentityCommand.js → ApplyIdentityRemovalCommand.js} +5 -5
- package/dist-es/commands/ConfirmIdentityChallengeCommand.js +16 -0
- package/dist-es/commands/ResendIdentityChallengeCodeCommand.js +16 -0
- package/dist-es/commands/{VerifyIdentityCommand.js → ResetUserChatHistoryCommand.js} +5 -5
- package/dist-es/commands/{LinkIdentityCommand.js → StartIdentityChallengeCommand.js} +5 -5
- package/dist-es/commands/index.js +5 -3
- package/dist-es/models/enums.js +16 -0
- package/dist-es/models/errors.js +96 -20
- package/dist-es/schemas/schemas_0.js +195 -81
- package/dist-types/Users.d.ts +35 -21
- package/dist-types/UsersClient.d.ts +7 -5
- package/dist-types/commands/ApplyIdentityRemovalCommand.d.ts +93 -0
- package/dist-types/commands/ConfirmIdentityChallengeCommand.d.ts +138 -0
- package/dist-types/commands/ListIdentitiesCommand.d.ts +4 -2
- package/dist-types/commands/QueryUserCommand.d.ts +1 -1
- package/dist-types/commands/QueryUsersCommand.d.ts +1 -1
- package/dist-types/commands/ResendIdentityChallengeCodeCommand.d.ts +96 -0
- package/dist-types/commands/ResetUserChatHistoryCommand.d.ts +89 -0
- package/dist-types/commands/StartIdentityChallengeCommand.d.ts +139 -0
- package/dist-types/commands/UpdateAccountCommand.d.ts +2 -1
- package/dist-types/commands/index.d.ts +5 -3
- package/dist-types/models/enums.d.ts +70 -0
- package/dist-types/models/errors.d.ts +102 -17
- package/dist-types/models/models_0.d.ts +302 -83
- package/dist-types/schemas/schemas_0.d.ts +24 -9
- package/package.json +5 -5
- package/dist-types/commands/LinkIdentityCommand.d.ts +0 -89
- package/dist-types/commands/UnlinkIdentityCommand.d.ts +0 -85
- package/dist-types/commands/VerifyIdentityCommand.d.ts +0 -90
|
@@ -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
|
-
}
|