@wildix/xbees-users-client 1.0.1 → 1.0.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.
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 +523 -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 +508 -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 +111 -0
  30. package/dist-types/commands/CreateBotCommand.d.ts +130 -0
  31. package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +78 -0
  32. package/dist-types/commands/DeleteBotCommand.d.ts +75 -0
  33. package/dist-types/commands/ListBotApiKeysCommand.d.ts +81 -0
  34. package/dist-types/commands/ListBotsCommand.d.ts +105 -0
  35. package/dist-types/commands/UpdateBotCommand.d.ts +131 -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 +239 -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,131 @@
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
+ * botId: "STRING_VALUE", // required
34
+ * name: "STRING_VALUE", // required
35
+ * visibility: { // BotVisibilitySettings
36
+ * search: true || false,
37
+ * mention: true || false,
38
+ * },
39
+ * callback: { // BotCallbackSettings Union: only one key present
40
+ * webhook: { // BotCallbackWebhook
41
+ * url: "STRING_VALUE", // required
42
+ * secret: "STRING_VALUE", // required
43
+ * triggers: { // BotCallbackTriggers
44
+ * channel: true || false,
45
+ * company: true || false,
46
+ * mention: true || false,
47
+ * },
48
+ * },
49
+ * sqs: { // BotCallbackSqs
50
+ * url: "STRING_VALUE", // required
51
+ * key: "STRING_VALUE", // required
52
+ * secret: "STRING_VALUE", // required
53
+ * triggers: {
54
+ * channel: true || false,
55
+ * company: true || false,
56
+ * mention: true || false,
57
+ * },
58
+ * },
59
+ * },
60
+ * };
61
+ * const command = new UpdateBotCommand(input);
62
+ * const response = await client.send(command);
63
+ * // { // UpdateBotOutput
64
+ * // bot: { // Bot
65
+ * // id: "STRING_VALUE", // required
66
+ * // name: "STRING_VALUE", // required
67
+ * // secret: "STRING_VALUE", // required
68
+ * // visibility: { // BotVisibilitySettings
69
+ * // search: true || false,
70
+ * // mention: true || false,
71
+ * // },
72
+ * // callback: { // BotCallbackSettings Union: only one key present
73
+ * // webhook: { // BotCallbackWebhook
74
+ * // url: "STRING_VALUE", // required
75
+ * // secret: "STRING_VALUE", // required
76
+ * // triggers: { // BotCallbackTriggers
77
+ * // channel: true || false,
78
+ * // company: true || false,
79
+ * // mention: true || false,
80
+ * // },
81
+ * // },
82
+ * // sqs: { // BotCallbackSqs
83
+ * // url: "STRING_VALUE", // required
84
+ * // key: "STRING_VALUE", // required
85
+ * // secret: "STRING_VALUE", // required
86
+ * // triggers: {
87
+ * // channel: true || false,
88
+ * // company: true || false,
89
+ * // mention: true || false,
90
+ * // },
91
+ * // },
92
+ * // },
93
+ * // createdAt: "STRING_VALUE",
94
+ * // },
95
+ * // };
96
+ *
97
+ * ```
98
+ *
99
+ * @param UpdateBotCommandInput - {@link UpdateBotCommandInput}
100
+ * @returns {@link UpdateBotCommandOutput}
101
+ * @see {@link UpdateBotCommandInput} for command's `input` shape.
102
+ * @see {@link UpdateBotCommandOutput} for command's `response` shape.
103
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
104
+ *
105
+ * @throws {@link ForbiddenException} (client fault)
106
+ *
107
+ * @throws {@link ValidationException} (client fault)
108
+ *
109
+ * @throws {@link UsersServiceException}
110
+ * <p>Base exception class for all service exceptions from Users service.</p>
111
+ *
112
+ */
113
+ export declare class UpdateBotCommand extends $Command<UpdateBotCommandInput, UpdateBotCommandOutput, UsersClientResolvedConfig> {
114
+ readonly input: UpdateBotCommandInput;
115
+ /**
116
+ * @public
117
+ */
118
+ constructor(input: UpdateBotCommandInput);
119
+ /**
120
+ * @internal
121
+ */
122
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateBotCommandInput, UpdateBotCommandOutput>;
123
+ /**
124
+ * @internal
125
+ */
126
+ private serialize;
127
+ /**
128
+ * @internal
129
+ */
130
+ private deserialize;
131
+ }
@@ -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,231 @@ 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
+ }
153
+ /**
154
+ * @public
155
+ */
156
+ export interface BotApiKey {
157
+ secret: string;
158
+ name?: string;
159
+ createdAt?: string;
160
+ }
161
+ /**
162
+ * @public
163
+ */
164
+ export declare class BotApiKeyNotFoundException extends __BaseException {
165
+ readonly name: "BotApiKeyNotFoundException";
166
+ readonly $fault: "client";
167
+ /**
168
+ * @internal
169
+ */
170
+ constructor(opts: __ExceptionOptionType<BotApiKeyNotFoundException, __BaseException>);
171
+ }
172
+ /**
173
+ * @public
174
+ */
175
+ export declare class BotNotFoundException extends __BaseException {
176
+ readonly name: "BotNotFoundException";
177
+ readonly $fault: "client";
178
+ /**
179
+ * @internal
180
+ */
181
+ constructor(opts: __ExceptionOptionType<BotNotFoundException, __BaseException>);
182
+ }
183
+ /**
184
+ * @public
185
+ */
186
+ export declare class BotSecretKeyNotValidException extends __BaseException {
187
+ readonly name: "BotSecretKeyNotValidException";
188
+ readonly $fault: "client";
189
+ /**
190
+ * @internal
191
+ */
192
+ constructor(opts: __ExceptionOptionType<BotSecretKeyNotValidException, __BaseException>);
193
+ }
194
+ /**
195
+ * @public
196
+ */
197
+ export interface CreateBotInput {
198
+ name: string;
199
+ visibility?: BotVisibilitySettings;
200
+ callback?: BotCallbackSettings;
201
+ }
202
+ /**
203
+ * @public
204
+ */
205
+ export interface CreateBotOutput {
206
+ bot?: Bot;
207
+ }
208
+ /**
209
+ * @public
210
+ */
211
+ export interface CreateBotApiKeyInput {
212
+ botId: string;
213
+ name?: string;
214
+ }
215
+ /**
216
+ * @public
217
+ */
218
+ export interface CreateBotApiKeyOutput {
219
+ bot?: Bot;
220
+ key?: BotApiKey;
221
+ }
222
+ /**
223
+ * @public
224
+ */
225
+ export interface DeleteBotInput {
226
+ botId: string;
227
+ }
228
+ /**
229
+ * @public
230
+ */
231
+ export interface DeleteBotOutput {
232
+ }
233
+ /**
234
+ * @public
235
+ */
236
+ export interface DeleteBotApiKeyInput {
237
+ botId: string;
238
+ apiKeySecret: string;
239
+ }
240
+ /**
241
+ * @public
242
+ */
243
+ export interface DeleteBotApiKeyOutput {
244
+ }
245
+ /**
246
+ * @public
247
+ */
248
+ export interface ListBotApiKeysInput {
249
+ botId: string;
250
+ }
251
+ /**
252
+ * @public
253
+ */
254
+ export interface ListBotApiKeysOutput {
255
+ keys?: (BotApiKey)[];
256
+ }
257
+ /**
258
+ * @public
259
+ */
260
+ export interface ListBotsInput {
261
+ }
262
+ /**
263
+ * @public
264
+ */
265
+ export interface ListBotsOutput {
266
+ bots?: (Bot)[];
267
+ }
268
+ /**
269
+ * @public
270
+ */
271
+ export interface UpdateBotInput {
272
+ botId: string;
273
+ name: string;
274
+ visibility?: BotVisibilitySettings;
275
+ callback?: BotCallbackSettings;
276
+ }
277
+ /**
278
+ * @public
279
+ */
280
+ export interface UpdateBotOutput {
281
+ bot?: Bot;
282
+ }
283
+ /**
284
+ * @public
285
+ */
286
+ export interface VerifyBotSecretKeyInput {
287
+ /**
288
+ * @public
289
+ * A secret key string with "sk-"
290
+ */
291
+ secret: string;
292
+ }
293
+ /**
294
+ * @public
295
+ */
296
+ export interface VerifyBotSecretKeyOutput {
297
+ company: string;
298
+ /**
299
+ * @public
300
+ * A unique ID for the Bot that corresponds to the bot's x-bees user ID.
301
+ */
302
+ id: string;
303
+ name?: string;
304
+ }
@@ -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.2",
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
+ }