@wildix/xbees-users-client 1.0.1 → 1.0.3

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 (44) hide show
  1. package/dist-cjs/Users.js +16 -0
  2. package/dist-cjs/commands/CreateBotApiKeyCommand.js +41 -0
  3. package/dist-cjs/commands/CreateBotCommand.js +41 -0
  4. package/dist-cjs/commands/DeleteBotApiKeyCommand.js +41 -0
  5. package/dist-cjs/commands/DeleteBotCommand.js +41 -0
  6. package/dist-cjs/commands/ListBotApiKeysCommand.js +41 -0
  7. package/dist-cjs/commands/ListBotsCommand.js +41 -0
  8. package/dist-cjs/commands/UpdateBotCommand.js +41 -0
  9. package/dist-cjs/commands/VerifyBotSecretKeyCommand.js +41 -0
  10. package/dist-cjs/commands/index.js +8 -0
  11. package/dist-cjs/models/models_0.js +63 -1
  12. package/dist-cjs/protocols/Aws_restJson1.js +548 -1
  13. package/dist-es/Users.js +16 -0
  14. package/dist-es/commands/CreateBotApiKeyCommand.js +37 -0
  15. package/dist-es/commands/CreateBotCommand.js +37 -0
  16. package/dist-es/commands/DeleteBotApiKeyCommand.js +37 -0
  17. package/dist-es/commands/DeleteBotCommand.js +37 -0
  18. package/dist-es/commands/ListBotApiKeysCommand.js +37 -0
  19. package/dist-es/commands/ListBotsCommand.js +37 -0
  20. package/dist-es/commands/UpdateBotCommand.js +37 -0
  21. package/dist-es/commands/VerifyBotSecretKeyCommand.js +37 -0
  22. package/dist-es/commands/index.js +8 -0
  23. package/dist-es/models/models_0.js +58 -0
  24. package/dist-es/protocols/Aws_restJson1.js +533 -2
  25. package/dist-types/Users.d.ts +56 -0
  26. package/dist-types/UsersClient.d.ts +10 -2
  27. package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +2 -0
  28. package/dist-types/commands/BatchGetUsersStreamLinkDataCommand.d.ts +2 -0
  29. package/dist-types/commands/CreateBotApiKeyCommand.d.ts +113 -0
  30. package/dist-types/commands/CreateBotCommand.d.ts +132 -0
  31. package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +79 -0
  32. package/dist-types/commands/DeleteBotCommand.d.ts +76 -0
  33. package/dist-types/commands/ListBotApiKeysCommand.d.ts +82 -0
  34. package/dist-types/commands/ListBotsCommand.d.ts +108 -0
  35. package/dist-types/commands/UpdateBotCommand.d.ts +133 -0
  36. package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +79 -0
  37. package/dist-types/commands/index.d.ts +8 -0
  38. package/dist-types/models/models_0.d.ts +247 -0
  39. package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
  40. package/dist-types/runtimeConfig.browser.d.ts +3 -3
  41. package/dist-types/runtimeConfig.d.ts +3 -3
  42. package/dist-types/runtimeConfig.native.d.ts +3 -3
  43. package/dist-types/runtimeConfig.shared.d.ts +2 -2
  44. package/package.json +2 -2
@@ -0,0 +1,133 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
+ import { UpdateBotInput, UpdateBotOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link UpdateBotCommand}.
13
+ */
14
+ export interface UpdateBotCommandInput extends UpdateBotInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link UpdateBotCommand}.
20
+ */
21
+ export interface UpdateBotCommandOutput extends UpdateBotOutput, __MetadataBearer {
22
+ }
23
+ /**
24
+ * @public
25
+ *
26
+ * @example
27
+ * Use a bare-bones client and the command you need to make an API call.
28
+ * ```javascript
29
+ * import { UsersClient, UpdateBotCommand } from "@wildix/xbees-users-client"; // ES Modules import
30
+ * // const { UsersClient, UpdateBotCommand } = require("@wildix/xbees-users-client"); // CommonJS import
31
+ * const client = new UsersClient(config);
32
+ * const input = { // UpdateBotInput
33
+ * company: "STRING_VALUE",
34
+ * botId: "STRING_VALUE", // required
35
+ * name: "STRING_VALUE", // required
36
+ * visibility: { // BotVisibilitySettings
37
+ * search: true || false,
38
+ * mention: true || false,
39
+ * },
40
+ * callback: { // BotCallbackSettings Union: only one key present
41
+ * webhook: { // BotCallbackWebhook
42
+ * url: "STRING_VALUE", // required
43
+ * secret: "STRING_VALUE", // required
44
+ * triggers: { // BotCallbackTriggers
45
+ * channel: true || false,
46
+ * company: true || false,
47
+ * mention: true || false,
48
+ * },
49
+ * },
50
+ * sqs: { // BotCallbackSqs
51
+ * url: "STRING_VALUE", // required
52
+ * key: "STRING_VALUE", // required
53
+ * secret: "STRING_VALUE", // required
54
+ * triggers: {
55
+ * channel: true || false,
56
+ * company: true || false,
57
+ * mention: true || false,
58
+ * },
59
+ * },
60
+ * },
61
+ * };
62
+ * const command = new UpdateBotCommand(input);
63
+ * const response = await client.send(command);
64
+ * // { // UpdateBotOutput
65
+ * // bot: { // Bot
66
+ * // id: "STRING_VALUE", // required
67
+ * // name: "STRING_VALUE", // required
68
+ * // secret: "STRING_VALUE", // required
69
+ * // visibility: { // BotVisibilitySettings
70
+ * // search: true || false,
71
+ * // mention: true || false,
72
+ * // },
73
+ * // callback: { // BotCallbackSettings Union: only one key present
74
+ * // webhook: { // BotCallbackWebhook
75
+ * // url: "STRING_VALUE", // required
76
+ * // secret: "STRING_VALUE", // required
77
+ * // triggers: { // BotCallbackTriggers
78
+ * // channel: true || false,
79
+ * // company: true || false,
80
+ * // mention: true || false,
81
+ * // },
82
+ * // },
83
+ * // sqs: { // BotCallbackSqs
84
+ * // url: "STRING_VALUE", // required
85
+ * // key: "STRING_VALUE", // required
86
+ * // secret: "STRING_VALUE", // required
87
+ * // triggers: {
88
+ * // channel: true || false,
89
+ * // company: true || false,
90
+ * // mention: true || false,
91
+ * // },
92
+ * // },
93
+ * // },
94
+ * // createdAt: "STRING_VALUE", // required
95
+ * // updated: "STRING_VALUE",
96
+ * // },
97
+ * // };
98
+ *
99
+ * ```
100
+ *
101
+ * @param UpdateBotCommandInput - {@link UpdateBotCommandInput}
102
+ * @returns {@link UpdateBotCommandOutput}
103
+ * @see {@link UpdateBotCommandInput} for command's `input` shape.
104
+ * @see {@link UpdateBotCommandOutput} for command's `response` shape.
105
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
106
+ *
107
+ * @throws {@link ForbiddenException} (client fault)
108
+ *
109
+ * @throws {@link ValidationException} (client fault)
110
+ *
111
+ * @throws {@link UsersServiceException}
112
+ * <p>Base exception class for all service exceptions from Users service.</p>
113
+ *
114
+ */
115
+ export declare class UpdateBotCommand extends $Command<UpdateBotCommandInput, UpdateBotCommandOutput, UsersClientResolvedConfig> {
116
+ readonly input: UpdateBotCommandInput;
117
+ /**
118
+ * @public
119
+ */
120
+ constructor(input: UpdateBotCommandInput);
121
+ /**
122
+ * @internal
123
+ */
124
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateBotCommandInput, UpdateBotCommandOutput>;
125
+ /**
126
+ * @internal
127
+ */
128
+ private serialize;
129
+ /**
130
+ * @internal
131
+ */
132
+ private deserialize;
133
+ }
@@ -0,0 +1,79 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
+ import { VerifyBotSecretKeyInput, VerifyBotSecretKeyOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link VerifyBotSecretKeyCommand}.
13
+ */
14
+ export interface VerifyBotSecretKeyCommandInput extends VerifyBotSecretKeyInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link VerifyBotSecretKeyCommand}.
20
+ */
21
+ export interface VerifyBotSecretKeyCommandOutput extends VerifyBotSecretKeyOutput, __MetadataBearer {
22
+ }
23
+ /**
24
+ * @public
25
+ *
26
+ * @example
27
+ * Use a bare-bones client and the command you need to make an API call.
28
+ * ```javascript
29
+ * import { UsersClient, VerifyBotSecretKeyCommand } from "@wildix/xbees-users-client"; // ES Modules import
30
+ * // const { UsersClient, VerifyBotSecretKeyCommand } = require("@wildix/xbees-users-client"); // CommonJS import
31
+ * const client = new UsersClient(config);
32
+ * const input = { // VerifyBotSecretKeyInput
33
+ * secret: "STRING_VALUE", // required
34
+ * };
35
+ * const command = new VerifyBotSecretKeyCommand(input);
36
+ * const response = await client.send(command);
37
+ * // { // VerifyBotSecretKeyOutput
38
+ * // company: "STRING_VALUE", // required
39
+ * // id: "STRING_VALUE", // required
40
+ * // name: "STRING_VALUE",
41
+ * // };
42
+ *
43
+ * ```
44
+ *
45
+ * @param VerifyBotSecretKeyCommandInput - {@link VerifyBotSecretKeyCommandInput}
46
+ * @returns {@link VerifyBotSecretKeyCommandOutput}
47
+ * @see {@link VerifyBotSecretKeyCommandInput} for command's `input` shape.
48
+ * @see {@link VerifyBotSecretKeyCommandOutput} for command's `response` shape.
49
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
50
+ *
51
+ * @throws {@link BotSecretKeyNotValidException} (client fault)
52
+ *
53
+ * @throws {@link ForbiddenException} (client fault)
54
+ *
55
+ * @throws {@link ValidationException} (client fault)
56
+ *
57
+ * @throws {@link UsersServiceException}
58
+ * <p>Base exception class for all service exceptions from Users service.</p>
59
+ *
60
+ */
61
+ export declare class VerifyBotSecretKeyCommand extends $Command<VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput, UsersClientResolvedConfig> {
62
+ readonly input: VerifyBotSecretKeyCommandInput;
63
+ /**
64
+ * @public
65
+ */
66
+ constructor(input: VerifyBotSecretKeyCommandInput);
67
+ /**
68
+ * @internal
69
+ */
70
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput>;
71
+ /**
72
+ * @internal
73
+ */
74
+ private serialize;
75
+ /**
76
+ * @internal
77
+ */
78
+ private deserialize;
79
+ }
@@ -1,2 +1,10 @@
1
1
  export * from "./BatchGetUsersPbxLinkDataCommand";
2
2
  export * from "./BatchGetUsersStreamLinkDataCommand";
3
+ export * from "./CreateBotCommand";
4
+ export * from "./CreateBotApiKeyCommand";
5
+ export * from "./DeleteBotCommand";
6
+ export * from "./DeleteBotApiKeyCommand";
7
+ export * from "./ListBotApiKeysCommand";
8
+ export * from "./ListBotsCommand";
9
+ export * from "./UpdateBotCommand";
10
+ export * from "./VerifyBotSecretKeyCommand";
@@ -1,5 +1,16 @@
1
1
  import { UsersServiceException as __BaseException } from "./UsersServiceException";
2
2
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
3
+ /**
4
+ * @public
5
+ */
6
+ export declare class ForbiddenException extends __BaseException {
7
+ readonly name: "ForbiddenException";
8
+ readonly $fault: "client";
9
+ /**
10
+ * @internal
11
+ */
12
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
13
+ }
3
14
  /**
4
15
  * @public
5
16
  */
@@ -63,3 +74,239 @@ export interface StreamLinkData {
63
74
  export interface BatchGetUsersStreamLinkDataOutput {
64
75
  users: Record<string, StreamLinkData>;
65
76
  }
77
+ /**
78
+ * @public
79
+ */
80
+ export interface BotCallbackTriggers {
81
+ channel?: boolean;
82
+ company?: boolean;
83
+ mention?: boolean;
84
+ }
85
+ /**
86
+ * @public
87
+ */
88
+ export interface BotCallbackSqs {
89
+ url: string;
90
+ key: string;
91
+ secret: string;
92
+ triggers: BotCallbackTriggers;
93
+ }
94
+ /**
95
+ * @public
96
+ */
97
+ export interface BotCallbackWebhook {
98
+ url: string;
99
+ secret: string;
100
+ triggers: BotCallbackTriggers;
101
+ }
102
+ /**
103
+ * @public
104
+ */
105
+ export type BotCallbackSettings = BotCallbackSettings.SqsMember | BotCallbackSettings.WebhookMember | BotCallbackSettings.$UnknownMember;
106
+ /**
107
+ * @public
108
+ */
109
+ export declare namespace BotCallbackSettings {
110
+ interface WebhookMember {
111
+ webhook: BotCallbackWebhook;
112
+ sqs?: never;
113
+ $unknown?: never;
114
+ }
115
+ interface SqsMember {
116
+ webhook?: never;
117
+ sqs: BotCallbackSqs;
118
+ $unknown?: never;
119
+ }
120
+ /**
121
+ * @public
122
+ */
123
+ interface $UnknownMember {
124
+ webhook?: never;
125
+ sqs?: never;
126
+ $unknown: [string, any];
127
+ }
128
+ interface Visitor<T> {
129
+ webhook: (value: BotCallbackWebhook) => T;
130
+ sqs: (value: BotCallbackSqs) => T;
131
+ _: (name: string, value: any) => T;
132
+ }
133
+ const visit: <T>(value: BotCallbackSettings, visitor: Visitor<T>) => T;
134
+ }
135
+ /**
136
+ * @public
137
+ */
138
+ export interface BotVisibilitySettings {
139
+ search?: boolean;
140
+ mention?: boolean;
141
+ }
142
+ /**
143
+ * @public
144
+ */
145
+ export interface Bot {
146
+ id: string;
147
+ name: string;
148
+ secret: string;
149
+ visibility?: BotVisibilitySettings;
150
+ callback?: BotCallbackSettings;
151
+ createdAt: string;
152
+ updated?: string;
153
+ }
154
+ /**
155
+ * @public
156
+ */
157
+ export interface BotApiKey {
158
+ secret: string;
159
+ name?: string;
160
+ createdAt: string;
161
+ }
162
+ /**
163
+ * @public
164
+ */
165
+ export declare class BotApiKeyNotFoundException extends __BaseException {
166
+ readonly name: "BotApiKeyNotFoundException";
167
+ readonly $fault: "client";
168
+ /**
169
+ * @internal
170
+ */
171
+ constructor(opts: __ExceptionOptionType<BotApiKeyNotFoundException, __BaseException>);
172
+ }
173
+ /**
174
+ * @public
175
+ */
176
+ export declare class BotNotFoundException extends __BaseException {
177
+ readonly name: "BotNotFoundException";
178
+ readonly $fault: "client";
179
+ /**
180
+ * @internal
181
+ */
182
+ constructor(opts: __ExceptionOptionType<BotNotFoundException, __BaseException>);
183
+ }
184
+ /**
185
+ * @public
186
+ */
187
+ export declare class BotSecretKeyNotValidException extends __BaseException {
188
+ readonly name: "BotSecretKeyNotValidException";
189
+ readonly $fault: "client";
190
+ /**
191
+ * @internal
192
+ */
193
+ constructor(opts: __ExceptionOptionType<BotSecretKeyNotValidException, __BaseException>);
194
+ }
195
+ /**
196
+ * @public
197
+ */
198
+ export interface CreateBotInput {
199
+ company?: string;
200
+ name: string;
201
+ visibility?: BotVisibilitySettings;
202
+ callback?: BotCallbackSettings;
203
+ }
204
+ /**
205
+ * @public
206
+ */
207
+ export interface CreateBotOutput {
208
+ bot: Bot;
209
+ }
210
+ /**
211
+ * @public
212
+ */
213
+ export interface CreateBotApiKeyInput {
214
+ company?: string;
215
+ botId: string;
216
+ name?: string;
217
+ }
218
+ /**
219
+ * @public
220
+ */
221
+ export interface CreateBotApiKeyOutput {
222
+ bot: Bot;
223
+ key: BotApiKey;
224
+ }
225
+ /**
226
+ * @public
227
+ */
228
+ export interface DeleteBotInput {
229
+ company?: string;
230
+ botId: string;
231
+ }
232
+ /**
233
+ * @public
234
+ */
235
+ export interface DeleteBotOutput {
236
+ }
237
+ /**
238
+ * @public
239
+ */
240
+ export interface DeleteBotApiKeyInput {
241
+ company?: string;
242
+ botId: string;
243
+ apiKeySecret: string;
244
+ }
245
+ /**
246
+ * @public
247
+ */
248
+ export interface DeleteBotApiKeyOutput {
249
+ }
250
+ /**
251
+ * @public
252
+ */
253
+ export interface ListBotApiKeysInput {
254
+ company?: string;
255
+ botId: string;
256
+ }
257
+ /**
258
+ * @public
259
+ */
260
+ export interface ListBotApiKeysOutput {
261
+ keys: (BotApiKey)[];
262
+ }
263
+ /**
264
+ * @public
265
+ */
266
+ export interface ListBotsInput {
267
+ company?: string;
268
+ }
269
+ /**
270
+ * @public
271
+ */
272
+ export interface ListBotsOutput {
273
+ bots: (Bot)[];
274
+ }
275
+ /**
276
+ * @public
277
+ */
278
+ export interface UpdateBotInput {
279
+ company?: string;
280
+ botId: string;
281
+ name: string;
282
+ visibility?: BotVisibilitySettings;
283
+ callback?: BotCallbackSettings;
284
+ }
285
+ /**
286
+ * @public
287
+ */
288
+ export interface UpdateBotOutput {
289
+ bot: Bot;
290
+ }
291
+ /**
292
+ * @public
293
+ */
294
+ export interface VerifyBotSecretKeyInput {
295
+ /**
296
+ * @public
297
+ * A secret key string with "sk-"
298
+ */
299
+ secret: string;
300
+ }
301
+ /**
302
+ * @public
303
+ */
304
+ export interface VerifyBotSecretKeyOutput {
305
+ company: string;
306
+ /**
307
+ * @public
308
+ * A unique ID for the Bot that corresponds to the bot's x-bees user ID.
309
+ */
310
+ id: string;
311
+ name?: string;
312
+ }
@@ -1,5 +1,13 @@
1
1
  import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "../commands/BatchGetUsersPbxLinkDataCommand";
2
2
  import { BatchGetUsersStreamLinkDataCommandInput, BatchGetUsersStreamLinkDataCommandOutput } from "../commands/BatchGetUsersStreamLinkDataCommand";
3
+ import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "../commands/CreateBotApiKeyCommand";
4
+ import { CreateBotCommandInput, CreateBotCommandOutput } from "../commands/CreateBotCommand";
5
+ import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "../commands/DeleteBotApiKeyCommand";
6
+ import { DeleteBotCommandInput, DeleteBotCommandOutput } from "../commands/DeleteBotCommand";
7
+ import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "../commands/ListBotApiKeysCommand";
8
+ import { ListBotsCommandInput, ListBotsCommandOutput } from "../commands/ListBotsCommand";
9
+ import { UpdateBotCommandInput, UpdateBotCommandOutput } from "../commands/UpdateBotCommand";
10
+ import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "../commands/VerifyBotSecretKeyCommand";
3
11
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
4
12
  import { SerdeContext as __SerdeContext } from "@smithy/types";
5
13
  /**
@@ -10,6 +18,38 @@ export declare const se_BatchGetUsersPbxLinkDataCommand: (input: BatchGetUsersPb
10
18
  * serializeAws_restJson1BatchGetUsersStreamLinkDataCommand
11
19
  */
12
20
  export declare const se_BatchGetUsersStreamLinkDataCommand: (input: BatchGetUsersStreamLinkDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
21
+ /**
22
+ * serializeAws_restJson1CreateBotCommand
23
+ */
24
+ export declare const se_CreateBotCommand: (input: CreateBotCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
25
+ /**
26
+ * serializeAws_restJson1CreateBotApiKeyCommand
27
+ */
28
+ export declare const se_CreateBotApiKeyCommand: (input: CreateBotApiKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
29
+ /**
30
+ * serializeAws_restJson1DeleteBotCommand
31
+ */
32
+ export declare const se_DeleteBotCommand: (input: DeleteBotCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
33
+ /**
34
+ * serializeAws_restJson1DeleteBotApiKeyCommand
35
+ */
36
+ export declare const se_DeleteBotApiKeyCommand: (input: DeleteBotApiKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
37
+ /**
38
+ * serializeAws_restJson1ListBotApiKeysCommand
39
+ */
40
+ export declare const se_ListBotApiKeysCommand: (input: ListBotApiKeysCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
41
+ /**
42
+ * serializeAws_restJson1ListBotsCommand
43
+ */
44
+ export declare const se_ListBotsCommand: (input: ListBotsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
45
+ /**
46
+ * serializeAws_restJson1UpdateBotCommand
47
+ */
48
+ export declare const se_UpdateBotCommand: (input: UpdateBotCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
49
+ /**
50
+ * serializeAws_restJson1VerifyBotSecretKeyCommand
51
+ */
52
+ export declare const se_VerifyBotSecretKeyCommand: (input: VerifyBotSecretKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
13
53
  /**
14
54
  * deserializeAws_restJson1BatchGetUsersPbxLinkDataCommand
15
55
  */
@@ -18,3 +58,35 @@ export declare const de_BatchGetUsersPbxLinkDataCommand: (output: __HttpResponse
18
58
  * deserializeAws_restJson1BatchGetUsersStreamLinkDataCommand
19
59
  */
20
60
  export declare const de_BatchGetUsersStreamLinkDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetUsersStreamLinkDataCommandOutput>;
61
+ /**
62
+ * deserializeAws_restJson1CreateBotCommand
63
+ */
64
+ export declare const de_CreateBotCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateBotCommandOutput>;
65
+ /**
66
+ * deserializeAws_restJson1CreateBotApiKeyCommand
67
+ */
68
+ export declare const de_CreateBotApiKeyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateBotApiKeyCommandOutput>;
69
+ /**
70
+ * deserializeAws_restJson1DeleteBotCommand
71
+ */
72
+ export declare const de_DeleteBotCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteBotCommandOutput>;
73
+ /**
74
+ * deserializeAws_restJson1DeleteBotApiKeyCommand
75
+ */
76
+ export declare const de_DeleteBotApiKeyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteBotApiKeyCommandOutput>;
77
+ /**
78
+ * deserializeAws_restJson1ListBotApiKeysCommand
79
+ */
80
+ export declare const de_ListBotApiKeysCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListBotApiKeysCommandOutput>;
81
+ /**
82
+ * deserializeAws_restJson1ListBotsCommand
83
+ */
84
+ export declare const de_ListBotsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListBotsCommandOutput>;
85
+ /**
86
+ * deserializeAws_restJson1UpdateBotCommand
87
+ */
88
+ export declare const de_UpdateBotCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateBotCommandOutput>;
89
+ /**
90
+ * deserializeAws_restJson1VerifyBotSecretKeyCommand
91
+ */
92
+ export declare const de_VerifyBotSecretKeyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<VerifyBotSecretKeyCommandOutput>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  maxAttempts: number | import("@smithy/types").Provider<number>;
11
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
11
+ requestHandler: ((import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> | Record<string, unknown> | import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/fetch-http-handler").FetchHttpHandlerOptions) & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
12
12
  updateHttpClientConfig(key: never, value: never): void;
13
13
  httpHandlerConfigs(): {};
14
14
  }) | RequestHandler;
@@ -18,9 +18,9 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
18
18
  apiVersion: string;
19
19
  urlParser: import("@smithy/types").UrlParser;
20
20
  base64Decoder: import("@smithy/types").Decoder;
21
- base64Encoder: import("@smithy/types").Encoder;
21
+ base64Encoder: (_input: string | Uint8Array) => string;
22
22
  utf8Decoder: import("@smithy/types").Decoder;
23
- utf8Encoder: import("@smithy/types").Encoder;
23
+ utf8Encoder: (input: string | Uint8Array) => string;
24
24
  disableHostPrefix: boolean;
25
25
  logger: import("@smithy/types").Logger;
26
26
  extensions: import("./runtimeExtensions").RuntimeExtension[];
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  maxAttempts: number | import("@smithy/types").Provider<number>;
11
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
11
+ requestHandler: ((import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> | Record<string, unknown> | import("@smithy/node-http-handler").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions) & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
12
12
  updateHttpClientConfig(key: never, value: never): void;
13
13
  httpHandlerConfigs(): {};
14
14
  }) | RequestHandler;
@@ -18,9 +18,9 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
18
18
  apiVersion: string;
19
19
  urlParser: import("@smithy/types").UrlParser;
20
20
  base64Decoder: import("@smithy/types").Decoder;
21
- base64Encoder: import("@smithy/types").Encoder;
21
+ base64Encoder: (_input: string | Uint8Array) => string;
22
22
  utf8Decoder: import("@smithy/types").Decoder;
23
- utf8Encoder: import("@smithy/types").Encoder;
23
+ utf8Encoder: (input: string | Uint8Array) => string;
24
24
  disableHostPrefix: boolean;
25
25
  logger: import("@smithy/types").Logger;
26
26
  extensions: import("./runtimeExtensions").RuntimeExtension[];
@@ -5,7 +5,7 @@ import { UsersClientConfig } from "./UsersClient";
5
5
  export declare const getRuntimeConfig: (config: UsersClientConfig) => {
6
6
  runtime: string;
7
7
  sha256: import("@smithy/types").HashConstructor;
8
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
8
+ requestHandler: ((import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> | Record<string, unknown> | import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions) & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
9
9
  updateHttpClientConfig(key: never, value: never): void;
10
10
  httpHandlerConfigs(): {};
11
11
  }) | import("@smithy/fetch-http-handler").FetchHttpHandler;
@@ -14,9 +14,9 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
14
14
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
15
15
  streamCollector: import("@smithy/types").StreamCollector;
16
16
  base64Decoder: import("@smithy/types").Decoder;
17
- base64Encoder: import("@smithy/types").Encoder;
17
+ base64Encoder: (_input: string | Uint8Array) => string;
18
18
  utf8Decoder: import("@smithy/types").Decoder;
19
- utf8Encoder: import("@smithy/types").Encoder;
19
+ utf8Encoder: (input: string | Uint8Array) => string;
20
20
  disableHostPrefix: boolean;
21
21
  maxAttempts: number | import("@smithy/types").Provider<number>;
22
22
  retryMode: string | import("@smithy/types").Provider<string>;
@@ -5,11 +5,11 @@ import { UsersClientConfig } from "./UsersClient";
5
5
  export declare const getRuntimeConfig: (config: UsersClientConfig) => {
6
6
  apiVersion: string;
7
7
  base64Decoder: import("@smithy/types").Decoder;
8
- base64Encoder: import("@smithy/types").Encoder;
8
+ base64Encoder: (_input: string | Uint8Array) => string;
9
9
  disableHostPrefix: boolean;
10
10
  extensions: import("./runtimeExtensions").RuntimeExtension[];
11
11
  logger: import("@smithy/types").Logger;
12
12
  urlParser: import("@smithy/types").UrlParser;
13
13
  utf8Decoder: import("@smithy/types").Decoder;
14
- utf8Encoder: import("@smithy/types").Encoder;
14
+ utf8Encoder: (input: string | Uint8Array) => string;
15
15
  };
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.1",
4
+ "version": "1.0.3",
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",
@@ -73,4 +73,4 @@
73
73
  "react-native": {
74
74
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
75
75
  }
76
- }
76
+ }