@wildix/xbees-users-client 1.0.24 → 1.0.26
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 +12 -0
- package/dist-cjs/commands/BatchGetUsersPbxLinkDataV1Command.js +21 -0
- package/dist-cjs/commands/GetUserPbxLinkSuggestionV1Command.js +21 -0
- package/dist-cjs/commands/GetUserSettingsCommand.js +21 -0
- package/dist-cjs/commands/PartialUpdateUserSettingsCommand.js +21 -0
- package/dist-cjs/commands/UploadPictureV1Command.js +21 -0
- package/dist-cjs/commands/VerifyBotSecretKeyV1Command.js +21 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +202 -16
- package/dist-es/Users.js +12 -0
- package/dist-es/commands/BatchGetUsersPbxLinkDataV1Command.js +17 -0
- package/dist-es/commands/GetUserPbxLinkSuggestionV1Command.js +17 -0
- package/dist-es/commands/GetUserSettingsCommand.js +17 -0
- package/dist-es/commands/PartialUpdateUserSettingsCommand.js +17 -0
- package/dist-es/commands/UploadPictureV1Command.js +17 -0
- package/dist-es/commands/VerifyBotSecretKeyV1Command.js +17 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +184 -11
- package/dist-types/Users.d.ts +43 -0
- package/dist-types/UsersClient.d.ts +8 -2
- package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +122 -0
- package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +1 -1
- package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +67 -0
- package/dist-types/commands/GetUserSettingsCommand.d.ts +69 -0
- package/dist-types/commands/PartialUpdateUserSettingsCommand.d.ts +76 -0
- package/dist-types/commands/UploadPictureV1Command.d.ts +64 -0
- package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +68 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +157 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
- package/package.json +2 -2
|
@@ -36,7 +36,7 @@ declare const GetUserPbxLinkDataCommand_base: {
|
|
|
36
36
|
* // const { UsersClient, GetUserPbxLinkDataCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
37
37
|
* const client = new UsersClient(config);
|
|
38
38
|
* const input = { // GetUserPbxLinkDataInput
|
|
39
|
-
*
|
|
39
|
+
* userId: "STRING_VALUE", // required
|
|
40
40
|
* };
|
|
41
41
|
* const command = new GetUserPbxLinkDataCommand(input);
|
|
42
42
|
* const response = await client.send(command);
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { GetUserPbxLinkSuggestionV1Input, GetUserPbxLinkSuggestionV1Output } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetUserPbxLinkSuggestionV1Command}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetUserPbxLinkSuggestionV1CommandInput extends GetUserPbxLinkSuggestionV1Input {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetUserPbxLinkSuggestionV1Command}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetUserPbxLinkSuggestionV1CommandOutput extends GetUserPbxLinkSuggestionV1Output, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetUserPbxLinkSuggestionV1Command_base: {
|
|
25
|
+
new (input: GetUserPbxLinkSuggestionV1CommandInput): import("@smithy/smithy-client").CommandImpl<GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GetUserPbxLinkSuggestionV1CommandInput]): import("@smithy/smithy-client").CommandImpl<GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { UsersClient, GetUserPbxLinkSuggestionV1Command } from "@wildix/xbees-users-client"; // ES Modules import
|
|
36
|
+
* // const { UsersClient, GetUserPbxLinkSuggestionV1Command } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
37
|
+
* const client = new UsersClient(config);
|
|
38
|
+
* const input = { // GetUserPbxLinkSuggestionV1Input
|
|
39
|
+
* email: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetUserPbxLinkSuggestionV1Command(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetUserPbxLinkSuggestionV1Output
|
|
44
|
+
* // suggestion: { // UserPbxLinkSuggestion
|
|
45
|
+
* // domain: "STRING_VALUE", // required
|
|
46
|
+
* // port: "STRING_VALUE", // required
|
|
47
|
+
* // },
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param GetUserPbxLinkSuggestionV1CommandInput - {@link GetUserPbxLinkSuggestionV1CommandInput}
|
|
53
|
+
* @returns {@link GetUserPbxLinkSuggestionV1CommandOutput}
|
|
54
|
+
* @see {@link GetUserPbxLinkSuggestionV1CommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link GetUserPbxLinkSuggestionV1CommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ValidationException} (client fault)
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link UsersServiceException}
|
|
63
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
export declare class GetUserPbxLinkSuggestionV1Command extends GetUserPbxLinkSuggestionV1Command_base {
|
|
67
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { GetUserSettingsInput, GetUserSettingsOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetUserSettingsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetUserSettingsCommandInput extends GetUserSettingsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetUserSettingsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetUserSettingsCommandOutput extends GetUserSettingsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetUserSettingsCommand_base: {
|
|
25
|
+
new (input: GetUserSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserSettingsCommandInput, GetUserSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetUserSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserSettingsCommandInput, GetUserSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Getting settings for the user.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { UsersClient, GetUserSettingsCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
35
|
+
* // const { UsersClient, GetUserSettingsCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
36
|
+
* const client = new UsersClient(config);
|
|
37
|
+
* const input = { // GetUserSettingsInput
|
|
38
|
+
* userId: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetUserSettingsCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetUserSettingsOutput
|
|
43
|
+
* // emailNotifications: { // EmailNotificationsSettings
|
|
44
|
+
* // unread: true || false, // required
|
|
45
|
+
* // transcription: true || false, // required
|
|
46
|
+
* // },
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param GetUserSettingsCommandInput - {@link GetUserSettingsCommandInput}
|
|
52
|
+
* @returns {@link GetUserSettingsCommandOutput}
|
|
53
|
+
* @see {@link GetUserSettingsCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link GetUserSettingsCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link UserNotFoundException} (client fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ValidationException} (client fault)
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link UsersServiceException}
|
|
64
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
65
|
+
*
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
export declare class GetUserSettingsCommand extends GetUserSettingsCommand_base {
|
|
69
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { PartialUpdateUserSettingsInput, PartialUpdateUserSettingsOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link PartialUpdateUserSettingsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PartialUpdateUserSettingsCommandInput extends PartialUpdateUserSettingsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PartialUpdateUserSettingsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PartialUpdateUserSettingsCommandOutput extends PartialUpdateUserSettingsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const PartialUpdateUserSettingsCommand_base: {
|
|
25
|
+
new (input: PartialUpdateUserSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<PartialUpdateUserSettingsCommandInput, PartialUpdateUserSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: PartialUpdateUserSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<PartialUpdateUserSettingsCommandInput, PartialUpdateUserSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Getting settings for the user.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { UsersClient, PartialUpdateUserSettingsCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
35
|
+
* // const { UsersClient, PartialUpdateUserSettingsCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
36
|
+
* const client = new UsersClient(config);
|
|
37
|
+
* const input = { // PartialUpdateUserSettingsInput
|
|
38
|
+
* userId: "STRING_VALUE",
|
|
39
|
+
* token: "STRING_VALUE",
|
|
40
|
+
* settings: { // PartialUserSettings
|
|
41
|
+
* emailNotifications: { // PartialEmailNotificationsSettings
|
|
42
|
+
* unread: true || false,
|
|
43
|
+
* transcription: true || false,
|
|
44
|
+
* },
|
|
45
|
+
* },
|
|
46
|
+
* };
|
|
47
|
+
* const command = new PartialUpdateUserSettingsCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // PartialUpdateUserSettingsOutput
|
|
50
|
+
* // emailNotifications: { // EmailNotificationsSettings
|
|
51
|
+
* // unread: true || false, // required
|
|
52
|
+
* // transcription: true || false, // required
|
|
53
|
+
* // },
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param PartialUpdateUserSettingsCommandInput - {@link PartialUpdateUserSettingsCommandInput}
|
|
59
|
+
* @returns {@link PartialUpdateUserSettingsCommandOutput}
|
|
60
|
+
* @see {@link PartialUpdateUserSettingsCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link PartialUpdateUserSettingsCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link UserNotFoundException} (client fault)
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ValidationException} (client fault)
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link UsersServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export declare class PartialUpdateUserSettingsCommand extends PartialUpdateUserSettingsCommand_base {
|
|
76
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { UploadPictureV1Input, UploadPictureV1Output } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UploadPictureV1Command}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UploadPictureV1CommandInput extends UploadPictureV1Input {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UploadPictureV1Command}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UploadPictureV1CommandOutput extends UploadPictureV1Output, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UploadPictureV1Command_base: {
|
|
25
|
+
new (input: UploadPictureV1CommandInput): import("@smithy/smithy-client").CommandImpl<UploadPictureV1CommandInput, UploadPictureV1CommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UploadPictureV1CommandInput): import("@smithy/smithy-client").CommandImpl<UploadPictureV1CommandInput, UploadPictureV1CommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { UsersClient, UploadPictureV1Command } from "@wildix/xbees-users-client"; // ES Modules import
|
|
36
|
+
* // const { UsersClient, UploadPictureV1Command } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
37
|
+
* const client = new UsersClient(config);
|
|
38
|
+
* const input = { // UploadPictureV1Input
|
|
39
|
+
* picture: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new UploadPictureV1Command(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // UploadPictureV1Output
|
|
44
|
+
* // url: "STRING_VALUE", // required
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param UploadPictureV1CommandInput - {@link UploadPictureV1CommandInput}
|
|
50
|
+
* @returns {@link UploadPictureV1CommandOutput}
|
|
51
|
+
* @see {@link UploadPictureV1CommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link UploadPictureV1CommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ValidationException} (client fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link UsersServiceException}
|
|
60
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export declare class UploadPictureV1Command extends UploadPictureV1Command_base {
|
|
64
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { VerifyBotSecretKeyV1Input, VerifyBotSecretKeyV1Output } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link VerifyBotSecretKeyV1Command}.
|
|
14
|
+
*/
|
|
15
|
+
export interface VerifyBotSecretKeyV1CommandInput extends VerifyBotSecretKeyV1Input {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link VerifyBotSecretKeyV1Command}.
|
|
21
|
+
*/
|
|
22
|
+
export interface VerifyBotSecretKeyV1CommandOutput extends VerifyBotSecretKeyV1Output, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const VerifyBotSecretKeyV1Command_base: {
|
|
25
|
+
new (input: VerifyBotSecretKeyV1CommandInput): import("@smithy/smithy-client").CommandImpl<VerifyBotSecretKeyV1CommandInput, VerifyBotSecretKeyV1CommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: VerifyBotSecretKeyV1CommandInput): import("@smithy/smithy-client").CommandImpl<VerifyBotSecretKeyV1CommandInput, VerifyBotSecretKeyV1CommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { UsersClient, VerifyBotSecretKeyV1Command } from "@wildix/xbees-users-client"; // ES Modules import
|
|
36
|
+
* // const { UsersClient, VerifyBotSecretKeyV1Command } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
37
|
+
* const client = new UsersClient(config);
|
|
38
|
+
* const input = { // VerifyBotSecretKeyV1Input
|
|
39
|
+
* secret: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new VerifyBotSecretKeyV1Command(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // VerifyBotSecretKeyV1Output
|
|
44
|
+
* // company: "STRING_VALUE", // required
|
|
45
|
+
* // id: "STRING_VALUE", // required
|
|
46
|
+
* // name: "STRING_VALUE",
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param VerifyBotSecretKeyV1CommandInput - {@link VerifyBotSecretKeyV1CommandInput}
|
|
52
|
+
* @returns {@link VerifyBotSecretKeyV1CommandOutput}
|
|
53
|
+
* @see {@link VerifyBotSecretKeyV1CommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link VerifyBotSecretKeyV1CommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link BotSecretKeyNotValidException} (client fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ValidationException} (client fault)
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link UsersServiceException}
|
|
64
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
export declare class VerifyBotSecretKeyV1Command extends VerifyBotSecretKeyV1Command_base {
|
|
68
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./BatchGetUsersCommand";
|
|
2
2
|
export * from "./BatchGetUsersPbxLinkDataCommand";
|
|
3
|
+
export * from "./BatchGetUsersPbxLinkDataV1Command";
|
|
3
4
|
export * from "./ChangeUserEmailCommand";
|
|
4
5
|
export * from "./CreateBotCommand";
|
|
5
6
|
export * from "./CreateBotApiKeyCommand";
|
|
@@ -10,11 +11,16 @@ export * from "./GetBotCallbackCommand";
|
|
|
10
11
|
export * from "./GetUserCommand";
|
|
11
12
|
export * from "./GetUserPbxLinkDataCommand";
|
|
12
13
|
export * from "./GetUserPbxLinkSuggestionCommand";
|
|
14
|
+
export * from "./GetUserPbxLinkSuggestionV1Command";
|
|
15
|
+
export * from "./GetUserSettingsCommand";
|
|
13
16
|
export * from "./ListBotApiKeysCommand";
|
|
14
17
|
export * from "./ListBotsCommand";
|
|
18
|
+
export * from "./PartialUpdateUserSettingsCommand";
|
|
15
19
|
export * from "./QueryUserCommand";
|
|
16
20
|
export * from "./QueryUsersCommand";
|
|
17
21
|
export * from "./UpdateBotCommand";
|
|
18
22
|
export * from "./UpdateBotCallbackCommand";
|
|
19
23
|
export * from "./UploadPictureCommand";
|
|
24
|
+
export * from "./UploadPictureV1Command";
|
|
20
25
|
export * from "./VerifyBotSecretKeyCommand";
|
|
26
|
+
export * from "./VerifyBotSecretKeyV1Command";
|
|
@@ -386,6 +386,18 @@ export interface UserPbxLinkData {
|
|
|
386
386
|
export interface BatchGetUsersPbxLinkDataOutput {
|
|
387
387
|
users: (UserPbxLinkData)[];
|
|
388
388
|
}
|
|
389
|
+
/**
|
|
390
|
+
* @public
|
|
391
|
+
*/
|
|
392
|
+
export interface BatchGetUsersPbxLinkDataV1Input {
|
|
393
|
+
id: (string)[];
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* @public
|
|
397
|
+
*/
|
|
398
|
+
export interface BatchGetUsersPbxLinkDataV1Output {
|
|
399
|
+
users: (UserPbxLinkData)[];
|
|
400
|
+
}
|
|
389
401
|
/**
|
|
390
402
|
* @public
|
|
391
403
|
*/
|
|
@@ -625,6 +637,21 @@ export interface DeleteBotApiKeyInput {
|
|
|
625
637
|
*/
|
|
626
638
|
export interface DeleteBotApiKeyOutput {
|
|
627
639
|
}
|
|
640
|
+
/**
|
|
641
|
+
* @public
|
|
642
|
+
*/
|
|
643
|
+
export interface EmailNotificationsSettings {
|
|
644
|
+
/**
|
|
645
|
+
* Indicates whether the user wants to receive email notifications about unread messages.
|
|
646
|
+
* @public
|
|
647
|
+
*/
|
|
648
|
+
unread: boolean;
|
|
649
|
+
/**
|
|
650
|
+
* Indicates whether the user wants to receive email notifications about AI transcription.
|
|
651
|
+
* @public
|
|
652
|
+
*/
|
|
653
|
+
transcription: boolean;
|
|
654
|
+
}
|
|
628
655
|
/**
|
|
629
656
|
* @public
|
|
630
657
|
*/
|
|
@@ -671,7 +698,11 @@ export interface GetUserOutput {
|
|
|
671
698
|
* @public
|
|
672
699
|
*/
|
|
673
700
|
export interface GetUserPbxLinkDataInput {
|
|
674
|
-
|
|
701
|
+
/**
|
|
702
|
+
* The unique identifier of the user (Cloud ID, not ID of the user on PBX).
|
|
703
|
+
* @public
|
|
704
|
+
*/
|
|
705
|
+
userId: string;
|
|
675
706
|
}
|
|
676
707
|
/**
|
|
677
708
|
* @public
|
|
@@ -714,6 +745,46 @@ export interface GetUserPbxLinkSuggestionOutput {
|
|
|
714
745
|
*/
|
|
715
746
|
suggestion?: UserPbxLinkSuggestion;
|
|
716
747
|
}
|
|
748
|
+
/**
|
|
749
|
+
* @public
|
|
750
|
+
*/
|
|
751
|
+
export interface GetUserPbxLinkSuggestionV1Input {
|
|
752
|
+
/**
|
|
753
|
+
* An email address of the user when a service token is used. If not provided, the email will be taken from the token.
|
|
754
|
+
* @public
|
|
755
|
+
*/
|
|
756
|
+
email?: string;
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* @public
|
|
760
|
+
*/
|
|
761
|
+
export interface GetUserPbxLinkSuggestionV1Output {
|
|
762
|
+
/**
|
|
763
|
+
* If the PBX data link information is available, the user can attempt to connect using the provided PBX domain and port. Can be empty if no information found for the specified email.
|
|
764
|
+
* @public
|
|
765
|
+
*/
|
|
766
|
+
suggestion?: UserPbxLinkSuggestion;
|
|
767
|
+
}
|
|
768
|
+
/**
|
|
769
|
+
* @public
|
|
770
|
+
*/
|
|
771
|
+
export interface GetUserSettingsInput {
|
|
772
|
+
/**
|
|
773
|
+
* The unique identifier of the user (Cloud ID, not ID of the user on PBX).
|
|
774
|
+
* @public
|
|
775
|
+
*/
|
|
776
|
+
userId: string;
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* @public
|
|
780
|
+
*/
|
|
781
|
+
export interface GetUserSettingsOutput {
|
|
782
|
+
/**
|
|
783
|
+
* Indicates whether the user wants to receive email notifications.
|
|
784
|
+
* @public
|
|
785
|
+
*/
|
|
786
|
+
emailNotifications?: EmailNotificationsSettings;
|
|
787
|
+
}
|
|
717
788
|
/**
|
|
718
789
|
* @public
|
|
719
790
|
*/
|
|
@@ -739,6 +810,53 @@ export interface ListBotsInput {
|
|
|
739
810
|
export interface ListBotsOutput {
|
|
740
811
|
bots: (Bot)[];
|
|
741
812
|
}
|
|
813
|
+
/**
|
|
814
|
+
* @public
|
|
815
|
+
*/
|
|
816
|
+
export interface PartialEmailNotificationsSettings {
|
|
817
|
+
/**
|
|
818
|
+
* Indicates whether the user wants to receive email notifications about unread messages.
|
|
819
|
+
* @public
|
|
820
|
+
*/
|
|
821
|
+
unread?: boolean;
|
|
822
|
+
/**
|
|
823
|
+
* Indicates whether the user wants to receive email notifications about AI transcription.
|
|
824
|
+
* @public
|
|
825
|
+
*/
|
|
826
|
+
transcription?: boolean;
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* @public
|
|
830
|
+
*/
|
|
831
|
+
export interface PartialUserSettings {
|
|
832
|
+
/**
|
|
833
|
+
* Indicates whether the user wants to receive email notifications.
|
|
834
|
+
* @public
|
|
835
|
+
*/
|
|
836
|
+
emailNotifications?: PartialEmailNotificationsSettings;
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* @public
|
|
840
|
+
*/
|
|
841
|
+
export interface PartialUpdateUserSettingsInput {
|
|
842
|
+
/**
|
|
843
|
+
* The unique identifier of the user (Cloud ID, not ID of the user on PBX).
|
|
844
|
+
* @public
|
|
845
|
+
*/
|
|
846
|
+
userId?: string;
|
|
847
|
+
/**
|
|
848
|
+
* Email unsubscribe token.
|
|
849
|
+
* @public
|
|
850
|
+
*/
|
|
851
|
+
token?: string;
|
|
852
|
+
settings: PartialUserSettings;
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* @public
|
|
856
|
+
*/
|
|
857
|
+
export interface PartialUpdateUserSettingsOutput {
|
|
858
|
+
emailNotifications?: EmailNotificationsSettings;
|
|
859
|
+
}
|
|
742
860
|
/**
|
|
743
861
|
* @public
|
|
744
862
|
*/
|
|
@@ -895,6 +1013,22 @@ export interface UploadPictureInput {
|
|
|
895
1013
|
export interface UploadPictureOutput {
|
|
896
1014
|
url: string;
|
|
897
1015
|
}
|
|
1016
|
+
/**
|
|
1017
|
+
* @public
|
|
1018
|
+
*/
|
|
1019
|
+
export interface UploadPictureV1Input {
|
|
1020
|
+
/**
|
|
1021
|
+
* A base64 encoded image file in PNG or JPG format, with dimensions of 140 x 140 pixels.
|
|
1022
|
+
* @public
|
|
1023
|
+
*/
|
|
1024
|
+
picture: string;
|
|
1025
|
+
}
|
|
1026
|
+
/**
|
|
1027
|
+
* @public
|
|
1028
|
+
*/
|
|
1029
|
+
export interface UploadPictureV1Output {
|
|
1030
|
+
url: string;
|
|
1031
|
+
}
|
|
898
1032
|
/**
|
|
899
1033
|
* @public
|
|
900
1034
|
*/
|
|
@@ -917,3 +1051,25 @@ export interface VerifyBotSecretKeyOutput {
|
|
|
917
1051
|
id: string;
|
|
918
1052
|
name?: string;
|
|
919
1053
|
}
|
|
1054
|
+
/**
|
|
1055
|
+
* @public
|
|
1056
|
+
*/
|
|
1057
|
+
export interface VerifyBotSecretKeyV1Input {
|
|
1058
|
+
/**
|
|
1059
|
+
* A secret key string with "sk-"
|
|
1060
|
+
* @public
|
|
1061
|
+
*/
|
|
1062
|
+
secret: string;
|
|
1063
|
+
}
|
|
1064
|
+
/**
|
|
1065
|
+
* @public
|
|
1066
|
+
*/
|
|
1067
|
+
export interface VerifyBotSecretKeyV1Output {
|
|
1068
|
+
company: string;
|
|
1069
|
+
/**
|
|
1070
|
+
* A unique ID for the Bot that corresponds to the bot's x-bees user ID.
|
|
1071
|
+
* @public
|
|
1072
|
+
*/
|
|
1073
|
+
id: string;
|
|
1074
|
+
name?: string;
|
|
1075
|
+
}
|