@wildix/xbees-users-client 1.0.10 → 1.0.12
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 +2 -0
- package/dist-cjs/commands/UploadPictureCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +101 -5
- package/dist-es/Users.js +2 -0
- package/dist-es/commands/UploadPictureCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +100 -6
- package/dist-types/Users.d.ts +7 -0
- package/dist-types/UsersClient.d.ts +3 -2
- package/dist-types/commands/CreateBotCommand.d.ts +4 -6
- package/dist-types/commands/GetBotCallbackCommand.d.ts +3 -6
- package/dist-types/commands/UpdateBotCallbackCommand.d.ts +6 -12
- package/dist-types/commands/UploadPictureCommand.d.ts +63 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +32 -17
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +1 -1
package/dist-cjs/Users.js
CHANGED
|
@@ -14,6 +14,7 @@ const ListBotApiKeysCommand_1 = require("./commands/ListBotApiKeysCommand");
|
|
|
14
14
|
const ListBotsCommand_1 = require("./commands/ListBotsCommand");
|
|
15
15
|
const UpdateBotCallbackCommand_1 = require("./commands/UpdateBotCallbackCommand");
|
|
16
16
|
const UpdateBotCommand_1 = require("./commands/UpdateBotCommand");
|
|
17
|
+
const UploadPictureCommand_1 = require("./commands/UploadPictureCommand");
|
|
17
18
|
const VerifyBotSecretKeyCommand_1 = require("./commands/VerifyBotSecretKeyCommand");
|
|
18
19
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
19
20
|
const commands = {
|
|
@@ -29,6 +30,7 @@ const commands = {
|
|
|
29
30
|
ListBotsCommand: ListBotsCommand_1.ListBotsCommand,
|
|
30
31
|
UpdateBotCommand: UpdateBotCommand_1.UpdateBotCommand,
|
|
31
32
|
UpdateBotCallbackCommand: UpdateBotCallbackCommand_1.UpdateBotCallbackCommand,
|
|
33
|
+
UploadPictureCommand: UploadPictureCommand_1.UploadPictureCommand,
|
|
32
34
|
VerifyBotSecretKeyCommand: VerifyBotSecretKeyCommand_1.VerifyBotSecretKeyCommand,
|
|
33
35
|
};
|
|
34
36
|
class Users extends UsersClient_1.UsersClient {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UploadPictureCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class UploadPictureCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Users", "UploadPicture", {})
|
|
15
|
+
.n("UsersClient", "UploadPictureCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_UploadPictureCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_UploadPictureCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.UploadPictureCommand = UploadPictureCommand;
|
|
@@ -13,4 +13,5 @@ tslib_1.__exportStar(require("./ListBotApiKeysCommand"), exports);
|
|
|
13
13
|
tslib_1.__exportStar(require("./ListBotsCommand"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./UpdateBotCommand"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./UpdateBotCallbackCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./UploadPictureCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./VerifyBotSecretKeyCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_VerifyBotSecretKeyCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_ListBotsCommand = exports.de_ListBotApiKeysCommand = exports.de_GetBotCallbackCommand = exports.de_GetBotCommand = exports.de_DeleteBotApiKeyCommand = exports.de_DeleteBotCommand = exports.de_CreateBotApiKeyCommand = exports.de_CreateBotCommand = exports.de_BatchGetUsersStreamLinkDataCommand = exports.de_BatchGetUsersPbxLinkDataCommand = exports.se_VerifyBotSecretKeyCommand = exports.se_UpdateBotCallbackCommand = exports.se_UpdateBotCommand = exports.se_ListBotsCommand = exports.se_ListBotApiKeysCommand = exports.se_GetBotCallbackCommand = exports.se_GetBotCommand = exports.se_DeleteBotApiKeyCommand = exports.se_DeleteBotCommand = exports.se_CreateBotApiKeyCommand = exports.se_CreateBotCommand = exports.se_BatchGetUsersStreamLinkDataCommand = exports.se_BatchGetUsersPbxLinkDataCommand = void 0;
|
|
3
|
+
exports.de_VerifyBotSecretKeyCommand = exports.de_UploadPictureCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_ListBotsCommand = exports.de_ListBotApiKeysCommand = exports.de_GetBotCallbackCommand = exports.de_GetBotCommand = exports.de_DeleteBotApiKeyCommand = exports.de_DeleteBotCommand = exports.de_CreateBotApiKeyCommand = exports.de_CreateBotCommand = exports.de_BatchGetUsersStreamLinkDataCommand = exports.de_BatchGetUsersPbxLinkDataCommand = exports.se_VerifyBotSecretKeyCommand = exports.se_UploadPictureCommand = exports.se_UpdateBotCallbackCommand = exports.se_UpdateBotCommand = exports.se_ListBotsCommand = exports.se_ListBotApiKeysCommand = exports.se_GetBotCallbackCommand = exports.se_GetBotCommand = exports.se_DeleteBotApiKeyCommand = exports.se_DeleteBotCommand = exports.se_CreateBotApiKeyCommand = exports.se_CreateBotCommand = exports.se_BatchGetUsersStreamLinkDataCommand = exports.se_BatchGetUsersPbxLinkDataCommand = void 0;
|
|
4
4
|
const UsersServiceException_1 = require("../models/UsersServiceException");
|
|
5
5
|
const models_0_1 = require("../models/models_0");
|
|
6
6
|
const core_1 = require("@smithy/core");
|
|
@@ -48,9 +48,10 @@ const se_CreateBotCommand = async (input, context) => {
|
|
|
48
48
|
});
|
|
49
49
|
let body;
|
|
50
50
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
51
|
-
'callback': _ => (
|
|
51
|
+
'callback': _ => se_BotCallback(_, context),
|
|
52
52
|
'name': [],
|
|
53
53
|
'picture': [],
|
|
54
|
+
'searchable': [],
|
|
54
55
|
}));
|
|
55
56
|
b.m("POST")
|
|
56
57
|
.h(headers)
|
|
@@ -211,7 +212,7 @@ const se_UpdateBotCallbackCommand = async (input, context) => {
|
|
|
211
212
|
});
|
|
212
213
|
let body;
|
|
213
214
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
214
|
-
'callback': _ => (
|
|
215
|
+
'callback': _ => se_BotCallback(_, context),
|
|
215
216
|
}));
|
|
216
217
|
b.m("PUT")
|
|
217
218
|
.h(headers)
|
|
@@ -220,6 +221,22 @@ const se_UpdateBotCallbackCommand = async (input, context) => {
|
|
|
220
221
|
return b.build();
|
|
221
222
|
};
|
|
222
223
|
exports.se_UpdateBotCallbackCommand = se_UpdateBotCallbackCommand;
|
|
224
|
+
const se_UploadPictureCommand = async (input, context) => {
|
|
225
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
226
|
+
const headers = {
|
|
227
|
+
'content-type': 'application/json',
|
|
228
|
+
};
|
|
229
|
+
b.bp("/v2/users/UploadPicture");
|
|
230
|
+
let body;
|
|
231
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
232
|
+
'picture': [],
|
|
233
|
+
}));
|
|
234
|
+
b.m("POST")
|
|
235
|
+
.h(headers)
|
|
236
|
+
.b(body);
|
|
237
|
+
return b.build();
|
|
238
|
+
};
|
|
239
|
+
exports.se_UploadPictureCommand = se_UploadPictureCommand;
|
|
223
240
|
const se_VerifyBotSecretKeyCommand = async (input, context) => {
|
|
224
241
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
225
242
|
const headers = {
|
|
@@ -343,7 +360,7 @@ const de_GetBotCallbackCommand = async (output, context) => {
|
|
|
343
360
|
});
|
|
344
361
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
345
362
|
const doc = (0, smithy_client_1.take)(data, {
|
|
346
|
-
'callback':
|
|
363
|
+
'callback': _ => de_BotCallback(_, context),
|
|
347
364
|
});
|
|
348
365
|
Object.assign(contents, doc);
|
|
349
366
|
return contents;
|
|
@@ -403,12 +420,27 @@ const de_UpdateBotCallbackCommand = async (output, context) => {
|
|
|
403
420
|
});
|
|
404
421
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
405
422
|
const doc = (0, smithy_client_1.take)(data, {
|
|
406
|
-
'callback':
|
|
423
|
+
'callback': _ => de_BotCallback(_, context),
|
|
407
424
|
});
|
|
408
425
|
Object.assign(contents, doc);
|
|
409
426
|
return contents;
|
|
410
427
|
};
|
|
411
428
|
exports.de_UpdateBotCallbackCommand = de_UpdateBotCallbackCommand;
|
|
429
|
+
const de_UploadPictureCommand = async (output, context) => {
|
|
430
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
431
|
+
return de_CommandError(output, context);
|
|
432
|
+
}
|
|
433
|
+
const contents = (0, smithy_client_1.map)({
|
|
434
|
+
$metadata: deserializeMetadata(output),
|
|
435
|
+
});
|
|
436
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
437
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
438
|
+
'url': smithy_client_1.expectString,
|
|
439
|
+
});
|
|
440
|
+
Object.assign(contents, doc);
|
|
441
|
+
return contents;
|
|
442
|
+
};
|
|
443
|
+
exports.de_UploadPictureCommand = de_UploadPictureCommand;
|
|
412
444
|
const de_VerifyBotSecretKeyCommand = async (output, context) => {
|
|
413
445
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
414
446
|
return de_CommandError(output, context);
|
|
@@ -523,6 +555,70 @@ const de_BotSecretKeyNotValidExceptionRes = async (parsedOutput, context) => {
|
|
|
523
555
|
});
|
|
524
556
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
525
557
|
};
|
|
558
|
+
const se_Document = (input, context) => {
|
|
559
|
+
return input;
|
|
560
|
+
};
|
|
561
|
+
const se_BotCallback = (input, context) => {
|
|
562
|
+
return (0, smithy_client_1.take)(input, {
|
|
563
|
+
'endpoint': _ => se_BotEndpoint(_, context),
|
|
564
|
+
});
|
|
565
|
+
};
|
|
566
|
+
const se_BotDialogflowCxEndpoint = (input, context) => {
|
|
567
|
+
return (0, smithy_client_1.take)(input, {
|
|
568
|
+
'agent': [],
|
|
569
|
+
'credentials': _ => se_Document(_, context),
|
|
570
|
+
'language': [],
|
|
571
|
+
'location': [],
|
|
572
|
+
});
|
|
573
|
+
};
|
|
574
|
+
const se_BotEndpoint = (input, context) => {
|
|
575
|
+
return models_0_1.BotEndpoint.visit(input, {
|
|
576
|
+
dialogflowCx: value => ({ "dialogflowCx": se_BotDialogflowCxEndpoint(value, context) }),
|
|
577
|
+
openAiAssistant: value => ({ "openAiAssistant": (0, smithy_client_1._json)(value) }),
|
|
578
|
+
sqs: value => ({ "sqs": (0, smithy_client_1._json)(value) }),
|
|
579
|
+
webhook: value => ({ "webhook": (0, smithy_client_1._json)(value) }),
|
|
580
|
+
_: (name, value) => ({ name: value })
|
|
581
|
+
});
|
|
582
|
+
};
|
|
583
|
+
const de_Document = (output, context) => {
|
|
584
|
+
return output;
|
|
585
|
+
};
|
|
586
|
+
const de_BotCallback = (output, context) => {
|
|
587
|
+
return (0, smithy_client_1.take)(output, {
|
|
588
|
+
'endpoint': (_) => de_BotEndpoint((0, smithy_client_1.expectUnion)(_), context),
|
|
589
|
+
});
|
|
590
|
+
};
|
|
591
|
+
const de_BotDialogflowCxEndpoint = (output, context) => {
|
|
592
|
+
return (0, smithy_client_1.take)(output, {
|
|
593
|
+
'agent': smithy_client_1.expectString,
|
|
594
|
+
'credentials': (_) => de_Document(_, context),
|
|
595
|
+
'language': smithy_client_1.expectString,
|
|
596
|
+
'location': smithy_client_1.expectString,
|
|
597
|
+
});
|
|
598
|
+
};
|
|
599
|
+
const de_BotEndpoint = (output, context) => {
|
|
600
|
+
if (output.dialogflowCx != null) {
|
|
601
|
+
return {
|
|
602
|
+
dialogflowCx: de_BotDialogflowCxEndpoint(output.dialogflowCx, context)
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
if (output.openAiAssistant != null) {
|
|
606
|
+
return {
|
|
607
|
+
openAiAssistant: (0, smithy_client_1._json)(output.openAiAssistant)
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
if (output.sqs != null) {
|
|
611
|
+
return {
|
|
612
|
+
sqs: (0, smithy_client_1._json)(output.sqs)
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
if (output.webhook != null) {
|
|
616
|
+
return {
|
|
617
|
+
webhook: (0, smithy_client_1._json)(output.webhook)
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
return { $unknown: Object.entries(output)[0] };
|
|
621
|
+
};
|
|
526
622
|
const deserializeMetadata = (output) => ({
|
|
527
623
|
httpStatusCode: output.statusCode,
|
|
528
624
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-es/Users.js
CHANGED
|
@@ -11,6 +11,7 @@ import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
|
|
|
11
11
|
import { ListBotsCommand, } from "./commands/ListBotsCommand";
|
|
12
12
|
import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
|
|
13
13
|
import { UpdateBotCommand, } from "./commands/UpdateBotCommand";
|
|
14
|
+
import { UploadPictureCommand, } from "./commands/UploadPictureCommand";
|
|
14
15
|
import { VerifyBotSecretKeyCommand, } from "./commands/VerifyBotSecretKeyCommand";
|
|
15
16
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
16
17
|
const commands = {
|
|
@@ -26,6 +27,7 @@ const commands = {
|
|
|
26
27
|
ListBotsCommand,
|
|
27
28
|
UpdateBotCommand,
|
|
28
29
|
UpdateBotCallbackCommand,
|
|
30
|
+
UploadPictureCommand,
|
|
29
31
|
VerifyBotSecretKeyCommand,
|
|
30
32
|
};
|
|
31
33
|
export class Users extends UsersClient {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_UploadPictureCommand, se_UploadPictureCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class UploadPictureCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Users", "UploadPicture", {})
|
|
12
|
+
.n("UsersClient", "UploadPictureCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_UploadPictureCommand)
|
|
15
|
+
.de(de_UploadPictureCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UsersServiceException as __BaseException } from "../models/UsersServiceException";
|
|
2
|
-
import { BotApiKeyNotFoundException, BotNotFoundException, BotSecretKeyNotValidException, ForbiddenException, ValidationException, } from "../models/models_0";
|
|
2
|
+
import { BotApiKeyNotFoundException, BotEndpoint, BotNotFoundException, BotSecretKeyNotValidException, ForbiddenException, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
5
|
export const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
|
|
6
6
|
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
@@ -43,9 +43,10 @@ export const se_CreateBotCommand = async (input, context) => {
|
|
|
43
43
|
});
|
|
44
44
|
let body;
|
|
45
45
|
body = JSON.stringify(take(input, {
|
|
46
|
-
'callback': _ =>
|
|
46
|
+
'callback': _ => se_BotCallback(_, context),
|
|
47
47
|
'name': [],
|
|
48
48
|
'picture': [],
|
|
49
|
+
'searchable': [],
|
|
49
50
|
}));
|
|
50
51
|
b.m("POST")
|
|
51
52
|
.h(headers)
|
|
@@ -197,7 +198,7 @@ export const se_UpdateBotCallbackCommand = async (input, context) => {
|
|
|
197
198
|
});
|
|
198
199
|
let body;
|
|
199
200
|
body = JSON.stringify(take(input, {
|
|
200
|
-
'callback': _ =>
|
|
201
|
+
'callback': _ => se_BotCallback(_, context),
|
|
201
202
|
}));
|
|
202
203
|
b.m("PUT")
|
|
203
204
|
.h(headers)
|
|
@@ -205,6 +206,21 @@ export const se_UpdateBotCallbackCommand = async (input, context) => {
|
|
|
205
206
|
.b(body);
|
|
206
207
|
return b.build();
|
|
207
208
|
};
|
|
209
|
+
export const se_UploadPictureCommand = async (input, context) => {
|
|
210
|
+
const b = rb(input, context);
|
|
211
|
+
const headers = {
|
|
212
|
+
'content-type': 'application/json',
|
|
213
|
+
};
|
|
214
|
+
b.bp("/v2/users/UploadPicture");
|
|
215
|
+
let body;
|
|
216
|
+
body = JSON.stringify(take(input, {
|
|
217
|
+
'picture': [],
|
|
218
|
+
}));
|
|
219
|
+
b.m("POST")
|
|
220
|
+
.h(headers)
|
|
221
|
+
.b(body);
|
|
222
|
+
return b.build();
|
|
223
|
+
};
|
|
208
224
|
export const se_VerifyBotSecretKeyCommand = async (input, context) => {
|
|
209
225
|
const b = rb(input, context);
|
|
210
226
|
const headers = {
|
|
@@ -320,7 +336,7 @@ export const de_GetBotCallbackCommand = async (output, context) => {
|
|
|
320
336
|
});
|
|
321
337
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
322
338
|
const doc = take(data, {
|
|
323
|
-
'callback':
|
|
339
|
+
'callback': _ => de_BotCallback(_, context),
|
|
324
340
|
});
|
|
325
341
|
Object.assign(contents, doc);
|
|
326
342
|
return contents;
|
|
@@ -376,7 +392,21 @@ export const de_UpdateBotCallbackCommand = async (output, context) => {
|
|
|
376
392
|
});
|
|
377
393
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
378
394
|
const doc = take(data, {
|
|
379
|
-
'callback':
|
|
395
|
+
'callback': _ => de_BotCallback(_, context),
|
|
396
|
+
});
|
|
397
|
+
Object.assign(contents, doc);
|
|
398
|
+
return contents;
|
|
399
|
+
};
|
|
400
|
+
export const de_UploadPictureCommand = async (output, context) => {
|
|
401
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
402
|
+
return de_CommandError(output, context);
|
|
403
|
+
}
|
|
404
|
+
const contents = map({
|
|
405
|
+
$metadata: deserializeMetadata(output),
|
|
406
|
+
});
|
|
407
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
408
|
+
const doc = take(data, {
|
|
409
|
+
'url': __expectString,
|
|
380
410
|
});
|
|
381
411
|
Object.assign(contents, doc);
|
|
382
412
|
return contents;
|
|
@@ -494,6 +524,70 @@ const de_BotSecretKeyNotValidExceptionRes = async (parsedOutput, context) => {
|
|
|
494
524
|
});
|
|
495
525
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
496
526
|
};
|
|
527
|
+
const se_Document = (input, context) => {
|
|
528
|
+
return input;
|
|
529
|
+
};
|
|
530
|
+
const se_BotCallback = (input, context) => {
|
|
531
|
+
return take(input, {
|
|
532
|
+
'endpoint': _ => se_BotEndpoint(_, context),
|
|
533
|
+
});
|
|
534
|
+
};
|
|
535
|
+
const se_BotDialogflowCxEndpoint = (input, context) => {
|
|
536
|
+
return take(input, {
|
|
537
|
+
'agent': [],
|
|
538
|
+
'credentials': _ => se_Document(_, context),
|
|
539
|
+
'language': [],
|
|
540
|
+
'location': [],
|
|
541
|
+
});
|
|
542
|
+
};
|
|
543
|
+
const se_BotEndpoint = (input, context) => {
|
|
544
|
+
return BotEndpoint.visit(input, {
|
|
545
|
+
dialogflowCx: value => ({ "dialogflowCx": se_BotDialogflowCxEndpoint(value, context) }),
|
|
546
|
+
openAiAssistant: value => ({ "openAiAssistant": _json(value) }),
|
|
547
|
+
sqs: value => ({ "sqs": _json(value) }),
|
|
548
|
+
webhook: value => ({ "webhook": _json(value) }),
|
|
549
|
+
_: (name, value) => ({ name: value })
|
|
550
|
+
});
|
|
551
|
+
};
|
|
552
|
+
const de_Document = (output, context) => {
|
|
553
|
+
return output;
|
|
554
|
+
};
|
|
555
|
+
const de_BotCallback = (output, context) => {
|
|
556
|
+
return take(output, {
|
|
557
|
+
'endpoint': (_) => de_BotEndpoint(__expectUnion(_), context),
|
|
558
|
+
});
|
|
559
|
+
};
|
|
560
|
+
const de_BotDialogflowCxEndpoint = (output, context) => {
|
|
561
|
+
return take(output, {
|
|
562
|
+
'agent': __expectString,
|
|
563
|
+
'credentials': (_) => de_Document(_, context),
|
|
564
|
+
'language': __expectString,
|
|
565
|
+
'location': __expectString,
|
|
566
|
+
});
|
|
567
|
+
};
|
|
568
|
+
const de_BotEndpoint = (output, context) => {
|
|
569
|
+
if (output.dialogflowCx != null) {
|
|
570
|
+
return {
|
|
571
|
+
dialogflowCx: de_BotDialogflowCxEndpoint(output.dialogflowCx, context)
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
if (output.openAiAssistant != null) {
|
|
575
|
+
return {
|
|
576
|
+
openAiAssistant: _json(output.openAiAssistant)
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
if (output.sqs != null) {
|
|
580
|
+
return {
|
|
581
|
+
sqs: _json(output.sqs)
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
if (output.webhook != null) {
|
|
585
|
+
return {
|
|
586
|
+
webhook: _json(output.webhook)
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
return { $unknown: Object.entries(output)[0] };
|
|
590
|
+
};
|
|
497
591
|
const deserializeMetadata = (output) => ({
|
|
498
592
|
httpStatusCode: output.statusCode,
|
|
499
593
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-types/Users.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./comma
|
|
|
11
11
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
|
|
12
12
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
|
|
13
13
|
import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
|
|
14
|
+
import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
|
|
14
15
|
import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
|
|
15
16
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
16
17
|
export interface Users {
|
|
@@ -87,6 +88,12 @@ export interface Users {
|
|
|
87
88
|
updateBotCallback(args: UpdateBotCallbackCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBotCallbackCommandOutput>;
|
|
88
89
|
updateBotCallback(args: UpdateBotCallbackCommandInput, cb: (err: any, data?: UpdateBotCallbackCommandOutput) => void): void;
|
|
89
90
|
updateBotCallback(args: UpdateBotCallbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBotCallbackCommandOutput) => void): void;
|
|
91
|
+
/**
|
|
92
|
+
* @see {@link UploadPictureCommand}
|
|
93
|
+
*/
|
|
94
|
+
uploadPicture(args: UploadPictureCommandInput, options?: __HttpHandlerOptions): Promise<UploadPictureCommandOutput>;
|
|
95
|
+
uploadPicture(args: UploadPictureCommandInput, cb: (err: any, data?: UploadPictureCommandOutput) => void): void;
|
|
96
|
+
uploadPicture(args: UploadPictureCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UploadPictureCommandOutput) => void): void;
|
|
90
97
|
/**
|
|
91
98
|
* @see {@link VerifyBotSecretKeyCommand}
|
|
92
99
|
*/
|
|
@@ -10,6 +10,7 @@ import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./comma
|
|
|
10
10
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
|
|
11
11
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
|
|
12
12
|
import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
|
|
13
|
+
import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
|
|
13
14
|
import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
|
|
14
15
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
15
16
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
@@ -21,11 +22,11 @@ export { __Client };
|
|
|
21
22
|
/**
|
|
22
23
|
* @public
|
|
23
24
|
*/
|
|
24
|
-
export type ServiceInputTypes = BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersStreamLinkDataCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | VerifyBotSecretKeyCommandInput;
|
|
25
|
+
export type ServiceInputTypes = BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersStreamLinkDataCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | VerifyBotSecretKeyCommandInput;
|
|
25
26
|
/**
|
|
26
27
|
* @public
|
|
27
28
|
*/
|
|
28
|
-
export type ServiceOutputTypes = BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersStreamLinkDataCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | VerifyBotSecretKeyCommandOutput;
|
|
29
|
+
export type ServiceOutputTypes = BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersStreamLinkDataCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | VerifyBotSecretKeyCommandOutput;
|
|
29
30
|
/**
|
|
30
31
|
* @public
|
|
31
32
|
*/
|
|
@@ -38,16 +38,14 @@ declare const CreateBotCommand_base: {
|
|
|
38
38
|
* company: "STRING_VALUE",
|
|
39
39
|
* name: "STRING_VALUE", // required
|
|
40
40
|
* picture: "STRING_VALUE",
|
|
41
|
+
* searchable: true || false,
|
|
41
42
|
* callback: { // BotCallback
|
|
42
43
|
* endpoint: { // BotEndpoint Union: only one key present
|
|
43
44
|
* dialogflowCx: { // BotDialogflowCxEndpoint
|
|
44
|
-
*
|
|
45
|
-
*
|
|
45
|
+
* credentials: "DOCUMENT_VALUE", // required
|
|
46
|
+
* agent: "STRING_VALUE", // required
|
|
46
47
|
* location: "STRING_VALUE", // required
|
|
47
|
-
*
|
|
48
|
-
* privateKey: "STRING_VALUE", // required
|
|
49
|
-
* clientEmail: "STRING_VALUE",
|
|
50
|
-
* clientId: "STRING_VALUE",
|
|
48
|
+
* language: "STRING_VALUE", // required
|
|
51
49
|
* },
|
|
52
50
|
* openAiAssistant: { // BotOpenAiAssistantEndpoint
|
|
53
51
|
* key: "STRING_VALUE", // required
|
|
@@ -44,13 +44,10 @@ declare const GetBotCallbackCommand_base: {
|
|
|
44
44
|
* // callback: { // BotCallback
|
|
45
45
|
* // endpoint: { // BotEndpoint Union: only one key present
|
|
46
46
|
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
47
|
-
* //
|
|
48
|
-
* //
|
|
47
|
+
* // credentials: "DOCUMENT_VALUE", // required
|
|
48
|
+
* // agent: "STRING_VALUE", // required
|
|
49
49
|
* // location: "STRING_VALUE", // required
|
|
50
|
-
* //
|
|
51
|
-
* // privateKey: "STRING_VALUE", // required
|
|
52
|
-
* // clientEmail: "STRING_VALUE",
|
|
53
|
-
* // clientId: "STRING_VALUE",
|
|
50
|
+
* // language: "STRING_VALUE", // required
|
|
54
51
|
* // },
|
|
55
52
|
* // openAiAssistant: { // BotOpenAiAssistantEndpoint
|
|
56
53
|
* // key: "STRING_VALUE", // required
|
|
@@ -40,13 +40,10 @@ declare const UpdateBotCallbackCommand_base: {
|
|
|
40
40
|
* callback: { // BotCallback
|
|
41
41
|
* endpoint: { // BotEndpoint Union: only one key present
|
|
42
42
|
* dialogflowCx: { // BotDialogflowCxEndpoint
|
|
43
|
-
*
|
|
44
|
-
*
|
|
43
|
+
* credentials: "DOCUMENT_VALUE", // required
|
|
44
|
+
* agent: "STRING_VALUE", // required
|
|
45
45
|
* location: "STRING_VALUE", // required
|
|
46
|
-
*
|
|
47
|
-
* privateKey: "STRING_VALUE", // required
|
|
48
|
-
* clientEmail: "STRING_VALUE",
|
|
49
|
-
* clientId: "STRING_VALUE",
|
|
46
|
+
* language: "STRING_VALUE", // required
|
|
50
47
|
* },
|
|
51
48
|
* openAiAssistant: { // BotOpenAiAssistantEndpoint
|
|
52
49
|
* key: "STRING_VALUE", // required
|
|
@@ -70,13 +67,10 @@ declare const UpdateBotCallbackCommand_base: {
|
|
|
70
67
|
* // callback: { // BotCallback
|
|
71
68
|
* // endpoint: { // BotEndpoint Union: only one key present
|
|
72
69
|
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
73
|
-
* //
|
|
74
|
-
* //
|
|
70
|
+
* // credentials: "DOCUMENT_VALUE", // required
|
|
71
|
+
* // agent: "STRING_VALUE", // required
|
|
75
72
|
* // location: "STRING_VALUE", // required
|
|
76
|
-
* //
|
|
77
|
-
* // privateKey: "STRING_VALUE", // required
|
|
78
|
-
* // clientEmail: "STRING_VALUE",
|
|
79
|
-
* // clientId: "STRING_VALUE",
|
|
73
|
+
* // language: "STRING_VALUE", // required
|
|
80
74
|
* // },
|
|
81
75
|
* // openAiAssistant: { // BotOpenAiAssistantEndpoint
|
|
82
76
|
* // key: "STRING_VALUE", // required
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { UploadPictureInput, UploadPictureOutput } 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 { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link UploadPictureCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface UploadPictureCommandInput extends UploadPictureInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link UploadPictureCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface UploadPictureCommandOutput extends UploadPictureOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const UploadPictureCommand_base: {
|
|
24
|
+
new (input: UploadPictureCommandInput): import("@smithy/smithy-client").CommandImpl<UploadPictureCommandInput, UploadPictureCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: UploadPictureCommandInput): import("@smithy/smithy-client").CommandImpl<UploadPictureCommandInput, UploadPictureCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { UsersClient, UploadPictureCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
35
|
+
* // const { UsersClient, UploadPictureCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
36
|
+
* const client = new UsersClient(config);
|
|
37
|
+
* const input = { // UploadPictureInput
|
|
38
|
+
* picture: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new UploadPictureCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // UploadPictureOutput
|
|
43
|
+
* // url: "STRING_VALUE", // required
|
|
44
|
+
* // };
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param UploadPictureCommandInput - {@link UploadPictureCommandInput}
|
|
49
|
+
* @returns {@link UploadPictureCommandOutput}
|
|
50
|
+
* @see {@link UploadPictureCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link UploadPictureCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ValidationException} (client fault)
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link UsersServiceException}
|
|
59
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
export declare class UploadPictureCommand extends UploadPictureCommand_base {
|
|
63
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UsersServiceException as __BaseException } from "./UsersServiceException";
|
|
2
2
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
3
|
+
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
3
4
|
/**
|
|
4
5
|
* @public
|
|
5
6
|
*/
|
|
@@ -109,36 +110,25 @@ export declare class BotApiKeyNotFoundException extends __BaseException {
|
|
|
109
110
|
*/
|
|
110
111
|
export interface BotDialogflowCxEndpoint {
|
|
111
112
|
/**
|
|
112
|
-
* Dialogflow
|
|
113
|
+
* Dialogflow Service Account Credentials
|
|
113
114
|
* @public
|
|
114
115
|
*/
|
|
115
|
-
|
|
116
|
+
credentials: __DocumentType;
|
|
116
117
|
/**
|
|
117
118
|
* Dialogflow Agent Id (example - 88ff4635-0852-4f97-ae44-b19ae9fa6ea1
|
|
118
119
|
* @public
|
|
119
120
|
*/
|
|
120
|
-
|
|
121
|
+
agent: string;
|
|
121
122
|
/**
|
|
122
|
-
* Region (example: europe-west3)
|
|
123
|
+
* Dialogflow Agent Region (example: europe-west3)
|
|
123
124
|
* @public
|
|
124
125
|
*/
|
|
125
126
|
location: string;
|
|
126
127
|
/**
|
|
127
|
-
*
|
|
128
|
+
* Language
|
|
128
129
|
* @public
|
|
129
130
|
*/
|
|
130
|
-
|
|
131
|
-
privateKey: string;
|
|
132
|
-
/**
|
|
133
|
-
* Service Account Email (example name@fluent-imprint-571.iam.gserviceaccount.com)
|
|
134
|
-
* @public
|
|
135
|
-
*/
|
|
136
|
-
clientEmail?: string;
|
|
137
|
-
/**
|
|
138
|
-
* Service Account Id (example 111958626790109061534)
|
|
139
|
-
* @public
|
|
140
|
-
*/
|
|
141
|
-
clientId?: string;
|
|
131
|
+
language: string;
|
|
142
132
|
}
|
|
143
133
|
/**
|
|
144
134
|
* @public
|
|
@@ -251,7 +241,16 @@ export declare class BotSecretKeyNotValidException extends __BaseException {
|
|
|
251
241
|
export interface CreateBotInput {
|
|
252
242
|
company?: string;
|
|
253
243
|
name: string;
|
|
244
|
+
/**
|
|
245
|
+
* A link to the bot picture.
|
|
246
|
+
* @public
|
|
247
|
+
*/
|
|
254
248
|
picture?: string;
|
|
249
|
+
/**
|
|
250
|
+
* A flag enables users to discover the bot via the search function in the x-bees application.
|
|
251
|
+
* @public
|
|
252
|
+
*/
|
|
253
|
+
searchable?: boolean;
|
|
255
254
|
callback: BotCallback;
|
|
256
255
|
}
|
|
257
256
|
/**
|
|
@@ -381,6 +380,22 @@ export interface UpdateBotCallbackInput {
|
|
|
381
380
|
export interface UpdateBotCallbackOutput {
|
|
382
381
|
callback: BotCallback;
|
|
383
382
|
}
|
|
383
|
+
/**
|
|
384
|
+
* @public
|
|
385
|
+
*/
|
|
386
|
+
export interface UploadPictureInput {
|
|
387
|
+
/**
|
|
388
|
+
* A base64 encoded image file in PNG or JPG format, with dimensions of 140 x 140 pixels.
|
|
389
|
+
* @public
|
|
390
|
+
*/
|
|
391
|
+
picture: string;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* @public
|
|
395
|
+
*/
|
|
396
|
+
export interface UploadPictureOutput {
|
|
397
|
+
url: string;
|
|
398
|
+
}
|
|
384
399
|
/**
|
|
385
400
|
* @public
|
|
386
401
|
*/
|
|
@@ -10,6 +10,7 @@ import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "../comm
|
|
|
10
10
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "../commands/ListBotsCommand";
|
|
11
11
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "../commands/UpdateBotCallbackCommand";
|
|
12
12
|
import { UpdateBotCommandInput, UpdateBotCommandOutput } from "../commands/UpdateBotCommand";
|
|
13
|
+
import { UploadPictureCommandInput, UploadPictureCommandOutput } from "../commands/UploadPictureCommand";
|
|
13
14
|
import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "../commands/VerifyBotSecretKeyCommand";
|
|
14
15
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
15
16
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
@@ -61,6 +62,10 @@ export declare const se_UpdateBotCommand: (input: UpdateBotCommandInput, context
|
|
|
61
62
|
* serializeAws_restJson1UpdateBotCallbackCommand
|
|
62
63
|
*/
|
|
63
64
|
export declare const se_UpdateBotCallbackCommand: (input: UpdateBotCallbackCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
65
|
+
/**
|
|
66
|
+
* serializeAws_restJson1UploadPictureCommand
|
|
67
|
+
*/
|
|
68
|
+
export declare const se_UploadPictureCommand: (input: UploadPictureCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
64
69
|
/**
|
|
65
70
|
* serializeAws_restJson1VerifyBotSecretKeyCommand
|
|
66
71
|
*/
|
|
@@ -113,6 +118,10 @@ export declare const de_UpdateBotCommand: (output: __HttpResponse, context: __Se
|
|
|
113
118
|
* deserializeAws_restJson1UpdateBotCallbackCommand
|
|
114
119
|
*/
|
|
115
120
|
export declare const de_UpdateBotCallbackCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateBotCallbackCommandOutput>;
|
|
121
|
+
/**
|
|
122
|
+
* deserializeAws_restJson1UploadPictureCommand
|
|
123
|
+
*/
|
|
124
|
+
export declare const de_UploadPictureCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UploadPictureCommandOutput>;
|
|
116
125
|
/**
|
|
117
126
|
* deserializeAws_restJson1VerifyBotSecretKeyCommand
|
|
118
127
|
*/
|
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.12",
|
|
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",
|