@wildix/xbees-users-client 1.0.24 → 1.0.25
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 +8 -0
- package/dist-cjs/commands/BatchGetUsersPbxLinkDataV1Command.js +21 -0
- package/dist-cjs/commands/GetUserPbxLinkSuggestionV1Command.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 +4 -0
- package/dist-cjs/protocols/Aws_restJson1.js +137 -16
- package/dist-es/Users.js +8 -0
- package/dist-es/commands/BatchGetUsersPbxLinkDataV1Command.js +17 -0
- package/dist-es/commands/GetUserPbxLinkSuggestionV1Command.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 +4 -0
- package/dist-es/protocols/Aws_restJson1.js +124 -11
- package/dist-types/Users.d.ts +29 -0
- package/dist-types/UsersClient.d.ts +6 -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/UploadPictureV1Command.d.ts +64 -0
- package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +68 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +75 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +1 -1
|
@@ -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,6 +11,7 @@ export * from "./GetBotCallbackCommand";
|
|
|
10
11
|
export * from "./GetUserCommand";
|
|
11
12
|
export * from "./GetUserPbxLinkDataCommand";
|
|
12
13
|
export * from "./GetUserPbxLinkSuggestionCommand";
|
|
14
|
+
export * from "./GetUserPbxLinkSuggestionV1Command";
|
|
13
15
|
export * from "./ListBotApiKeysCommand";
|
|
14
16
|
export * from "./ListBotsCommand";
|
|
15
17
|
export * from "./QueryUserCommand";
|
|
@@ -17,4 +19,6 @@ export * from "./QueryUsersCommand";
|
|
|
17
19
|
export * from "./UpdateBotCommand";
|
|
18
20
|
export * from "./UpdateBotCallbackCommand";
|
|
19
21
|
export * from "./UploadPictureCommand";
|
|
22
|
+
export * from "./UploadPictureV1Command";
|
|
20
23
|
export * from "./VerifyBotSecretKeyCommand";
|
|
24
|
+
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
|
*/
|
|
@@ -671,7 +683,11 @@ export interface GetUserOutput {
|
|
|
671
683
|
* @public
|
|
672
684
|
*/
|
|
673
685
|
export interface GetUserPbxLinkDataInput {
|
|
674
|
-
|
|
686
|
+
/**
|
|
687
|
+
* The unique identifier of the user (Cloud ID, not ID of the user on PBX).
|
|
688
|
+
* @public
|
|
689
|
+
*/
|
|
690
|
+
userId: string;
|
|
675
691
|
}
|
|
676
692
|
/**
|
|
677
693
|
* @public
|
|
@@ -714,6 +730,26 @@ export interface GetUserPbxLinkSuggestionOutput {
|
|
|
714
730
|
*/
|
|
715
731
|
suggestion?: UserPbxLinkSuggestion;
|
|
716
732
|
}
|
|
733
|
+
/**
|
|
734
|
+
* @public
|
|
735
|
+
*/
|
|
736
|
+
export interface GetUserPbxLinkSuggestionV1Input {
|
|
737
|
+
/**
|
|
738
|
+
* An email address of the user when a service token is used. If not provided, the email will be taken from the token.
|
|
739
|
+
* @public
|
|
740
|
+
*/
|
|
741
|
+
email?: string;
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
* @public
|
|
745
|
+
*/
|
|
746
|
+
export interface GetUserPbxLinkSuggestionV1Output {
|
|
747
|
+
/**
|
|
748
|
+
* 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.
|
|
749
|
+
* @public
|
|
750
|
+
*/
|
|
751
|
+
suggestion?: UserPbxLinkSuggestion;
|
|
752
|
+
}
|
|
717
753
|
/**
|
|
718
754
|
* @public
|
|
719
755
|
*/
|
|
@@ -895,6 +931,22 @@ export interface UploadPictureInput {
|
|
|
895
931
|
export interface UploadPictureOutput {
|
|
896
932
|
url: string;
|
|
897
933
|
}
|
|
934
|
+
/**
|
|
935
|
+
* @public
|
|
936
|
+
*/
|
|
937
|
+
export interface UploadPictureV1Input {
|
|
938
|
+
/**
|
|
939
|
+
* A base64 encoded image file in PNG or JPG format, with dimensions of 140 x 140 pixels.
|
|
940
|
+
* @public
|
|
941
|
+
*/
|
|
942
|
+
picture: string;
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
* @public
|
|
946
|
+
*/
|
|
947
|
+
export interface UploadPictureV1Output {
|
|
948
|
+
url: string;
|
|
949
|
+
}
|
|
898
950
|
/**
|
|
899
951
|
* @public
|
|
900
952
|
*/
|
|
@@ -917,3 +969,25 @@ export interface VerifyBotSecretKeyOutput {
|
|
|
917
969
|
id: string;
|
|
918
970
|
name?: string;
|
|
919
971
|
}
|
|
972
|
+
/**
|
|
973
|
+
* @public
|
|
974
|
+
*/
|
|
975
|
+
export interface VerifyBotSecretKeyV1Input {
|
|
976
|
+
/**
|
|
977
|
+
* A secret key string with "sk-"
|
|
978
|
+
* @public
|
|
979
|
+
*/
|
|
980
|
+
secret: string;
|
|
981
|
+
}
|
|
982
|
+
/**
|
|
983
|
+
* @public
|
|
984
|
+
*/
|
|
985
|
+
export interface VerifyBotSecretKeyV1Output {
|
|
986
|
+
company: string;
|
|
987
|
+
/**
|
|
988
|
+
* A unique ID for the Bot that corresponds to the bot's x-bees user ID.
|
|
989
|
+
* @public
|
|
990
|
+
*/
|
|
991
|
+
id: string;
|
|
992
|
+
name?: string;
|
|
993
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "../commands/BatchGetUsersCommand";
|
|
2
2
|
import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "../commands/BatchGetUsersPbxLinkDataCommand";
|
|
3
|
+
import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput } from "../commands/BatchGetUsersPbxLinkDataV1Command";
|
|
3
4
|
import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "../commands/ChangeUserEmailCommand";
|
|
4
5
|
import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "../commands/CreateBotApiKeyCommand";
|
|
5
6
|
import { CreateBotCommandInput, CreateBotCommandOutput } from "../commands/CreateBotCommand";
|
|
@@ -10,6 +11,7 @@ import { GetBotCommandInput, GetBotCommandOutput } from "../commands/GetBotComma
|
|
|
10
11
|
import { GetUserCommandInput, GetUserCommandOutput } from "../commands/GetUserCommand";
|
|
11
12
|
import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "../commands/GetUserPbxLinkDataCommand";
|
|
12
13
|
import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "../commands/GetUserPbxLinkSuggestionCommand";
|
|
14
|
+
import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "../commands/GetUserPbxLinkSuggestionV1Command";
|
|
13
15
|
import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "../commands/ListBotApiKeysCommand";
|
|
14
16
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "../commands/ListBotsCommand";
|
|
15
17
|
import { QueryUserCommandInput, QueryUserCommandOutput } from "../commands/QueryUserCommand";
|
|
@@ -17,7 +19,9 @@ import { QueryUsersCommandInput, QueryUsersCommandOutput } from "../commands/Que
|
|
|
17
19
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "../commands/UpdateBotCallbackCommand";
|
|
18
20
|
import { UpdateBotCommandInput, UpdateBotCommandOutput } from "../commands/UpdateBotCommand";
|
|
19
21
|
import { UploadPictureCommandInput, UploadPictureCommandOutput } from "../commands/UploadPictureCommand";
|
|
22
|
+
import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "../commands/UploadPictureV1Command";
|
|
20
23
|
import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "../commands/VerifyBotSecretKeyCommand";
|
|
24
|
+
import { VerifyBotSecretKeyV1CommandInput, VerifyBotSecretKeyV1CommandOutput } from "../commands/VerifyBotSecretKeyV1Command";
|
|
21
25
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
22
26
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
23
27
|
/**
|
|
@@ -28,6 +32,10 @@ export declare const se_BatchGetUsersCommand: (input: BatchGetUsersCommandInput,
|
|
|
28
32
|
* serializeAws_restJson1BatchGetUsersPbxLinkDataCommand
|
|
29
33
|
*/
|
|
30
34
|
export declare const se_BatchGetUsersPbxLinkDataCommand: (input: BatchGetUsersPbxLinkDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
35
|
+
/**
|
|
36
|
+
* serializeAws_restJson1BatchGetUsersPbxLinkDataV1Command
|
|
37
|
+
*/
|
|
38
|
+
export declare const se_BatchGetUsersPbxLinkDataV1Command: (input: BatchGetUsersPbxLinkDataV1CommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
31
39
|
/**
|
|
32
40
|
* serializeAws_restJson1ChangeUserEmailCommand
|
|
33
41
|
*/
|
|
@@ -68,6 +76,10 @@ export declare const se_GetUserPbxLinkDataCommand: (input: GetUserPbxLinkDataCom
|
|
|
68
76
|
* serializeAws_restJson1GetUserPbxLinkSuggestionCommand
|
|
69
77
|
*/
|
|
70
78
|
export declare const se_GetUserPbxLinkSuggestionCommand: (input: GetUserPbxLinkSuggestionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
79
|
+
/**
|
|
80
|
+
* serializeAws_restJson1GetUserPbxLinkSuggestionV1Command
|
|
81
|
+
*/
|
|
82
|
+
export declare const se_GetUserPbxLinkSuggestionV1Command: (input: GetUserPbxLinkSuggestionV1CommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
71
83
|
/**
|
|
72
84
|
* serializeAws_restJson1ListBotApiKeysCommand
|
|
73
85
|
*/
|
|
@@ -96,10 +108,18 @@ export declare const se_UpdateBotCallbackCommand: (input: UpdateBotCallbackComma
|
|
|
96
108
|
* serializeAws_restJson1UploadPictureCommand
|
|
97
109
|
*/
|
|
98
110
|
export declare const se_UploadPictureCommand: (input: UploadPictureCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
111
|
+
/**
|
|
112
|
+
* serializeAws_restJson1UploadPictureV1Command
|
|
113
|
+
*/
|
|
114
|
+
export declare const se_UploadPictureV1Command: (input: UploadPictureV1CommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
99
115
|
/**
|
|
100
116
|
* serializeAws_restJson1VerifyBotSecretKeyCommand
|
|
101
117
|
*/
|
|
102
118
|
export declare const se_VerifyBotSecretKeyCommand: (input: VerifyBotSecretKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
119
|
+
/**
|
|
120
|
+
* serializeAws_restJson1VerifyBotSecretKeyV1Command
|
|
121
|
+
*/
|
|
122
|
+
export declare const se_VerifyBotSecretKeyV1Command: (input: VerifyBotSecretKeyV1CommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
103
123
|
/**
|
|
104
124
|
* deserializeAws_restJson1BatchGetUsersCommand
|
|
105
125
|
*/
|
|
@@ -108,6 +128,10 @@ export declare const de_BatchGetUsersCommand: (output: __HttpResponse, context:
|
|
|
108
128
|
* deserializeAws_restJson1BatchGetUsersPbxLinkDataCommand
|
|
109
129
|
*/
|
|
110
130
|
export declare const de_BatchGetUsersPbxLinkDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetUsersPbxLinkDataCommandOutput>;
|
|
131
|
+
/**
|
|
132
|
+
* deserializeAws_restJson1BatchGetUsersPbxLinkDataV1Command
|
|
133
|
+
*/
|
|
134
|
+
export declare const de_BatchGetUsersPbxLinkDataV1Command: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetUsersPbxLinkDataV1CommandOutput>;
|
|
111
135
|
/**
|
|
112
136
|
* deserializeAws_restJson1ChangeUserEmailCommand
|
|
113
137
|
*/
|
|
@@ -148,6 +172,10 @@ export declare const de_GetUserPbxLinkDataCommand: (output: __HttpResponse, cont
|
|
|
148
172
|
* deserializeAws_restJson1GetUserPbxLinkSuggestionCommand
|
|
149
173
|
*/
|
|
150
174
|
export declare const de_GetUserPbxLinkSuggestionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserPbxLinkSuggestionCommandOutput>;
|
|
175
|
+
/**
|
|
176
|
+
* deserializeAws_restJson1GetUserPbxLinkSuggestionV1Command
|
|
177
|
+
*/
|
|
178
|
+
export declare const de_GetUserPbxLinkSuggestionV1Command: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserPbxLinkSuggestionV1CommandOutput>;
|
|
151
179
|
/**
|
|
152
180
|
* deserializeAws_restJson1ListBotApiKeysCommand
|
|
153
181
|
*/
|
|
@@ -176,7 +204,15 @@ export declare const de_UpdateBotCallbackCommand: (output: __HttpResponse, conte
|
|
|
176
204
|
* deserializeAws_restJson1UploadPictureCommand
|
|
177
205
|
*/
|
|
178
206
|
export declare const de_UploadPictureCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UploadPictureCommandOutput>;
|
|
207
|
+
/**
|
|
208
|
+
* deserializeAws_restJson1UploadPictureV1Command
|
|
209
|
+
*/
|
|
210
|
+
export declare const de_UploadPictureV1Command: (output: __HttpResponse, context: __SerdeContext) => Promise<UploadPictureV1CommandOutput>;
|
|
179
211
|
/**
|
|
180
212
|
* deserializeAws_restJson1VerifyBotSecretKeyCommand
|
|
181
213
|
*/
|
|
182
214
|
export declare const de_VerifyBotSecretKeyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<VerifyBotSecretKeyCommandOutput>;
|
|
215
|
+
/**
|
|
216
|
+
* deserializeAws_restJson1VerifyBotSecretKeyV1Command
|
|
217
|
+
*/
|
|
218
|
+
export declare const de_VerifyBotSecretKeyV1Command: (output: __HttpResponse, context: __SerdeContext) => Promise<VerifyBotSecretKeyV1CommandOutput>;
|
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": "1.0.
|
|
4
|
+
"version": "1.0.25",
|
|
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",
|