@wildix/xbees-users-client 1.0.10 → 1.0.11

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 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");
@@ -51,6 +51,7 @@ const se_CreateBotCommand = async (input, context) => {
51
51
  'callback': _ => (0, smithy_client_1._json)(_),
52
52
  'name': [],
53
53
  'picture': [],
54
+ 'searchable': [],
54
55
  }));
55
56
  b.m("POST")
56
57
  .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 = {
@@ -409,6 +426,21 @@ const de_UpdateBotCallbackCommand = async (output, context) => {
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);
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
+ }
@@ -10,4 +10,5 @@ export * from "./ListBotApiKeysCommand";
10
10
  export * from "./ListBotsCommand";
11
11
  export * from "./UpdateBotCommand";
12
12
  export * from "./UpdateBotCallbackCommand";
13
+ export * from "./UploadPictureCommand";
13
14
  export * from "./VerifyBotSecretKeyCommand";
@@ -46,6 +46,7 @@ export const se_CreateBotCommand = async (input, context) => {
46
46
  'callback': _ => _json(_),
47
47
  'name': [],
48
48
  'picture': [],
49
+ 'searchable': [],
49
50
  }));
50
51
  b.m("POST")
51
52
  .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 = {
@@ -381,6 +397,20 @@ export const de_UpdateBotCallbackCommand = async (output, context) => {
381
397
  Object.assign(contents, doc);
382
398
  return contents;
383
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,
410
+ });
411
+ Object.assign(contents, doc);
412
+ return contents;
413
+ };
384
414
  export const de_VerifyBotSecretKeyCommand = async (output, context) => {
385
415
  if (output.statusCode !== 200 && output.statusCode >= 300) {
386
416
  return de_CommandError(output, context);
@@ -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,16 @@ 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
  * projectId: "STRING_VALUE", // required
45
46
  * agentId: "STRING_VALUE", // required
46
47
  * location: "STRING_VALUE", // required
47
- * privateKeyId: "STRING_VALUE", // required
48
+ * language: "STRING_VALUE", // required
48
49
  * privateKey: "STRING_VALUE", // required
49
50
  * clientEmail: "STRING_VALUE",
50
- * clientId: "STRING_VALUE",
51
51
  * },
52
52
  * openAiAssistant: { // BotOpenAiAssistantEndpoint
53
53
  * key: "STRING_VALUE", // required
@@ -47,10 +47,9 @@ declare const GetBotCallbackCommand_base: {
47
47
  * // projectId: "STRING_VALUE", // required
48
48
  * // agentId: "STRING_VALUE", // required
49
49
  * // location: "STRING_VALUE", // required
50
- * // privateKeyId: "STRING_VALUE", // required
50
+ * // language: "STRING_VALUE", // required
51
51
  * // privateKey: "STRING_VALUE", // required
52
52
  * // clientEmail: "STRING_VALUE",
53
- * // clientId: "STRING_VALUE",
54
53
  * // },
55
54
  * // openAiAssistant: { // BotOpenAiAssistantEndpoint
56
55
  * // key: "STRING_VALUE", // required
@@ -43,10 +43,9 @@ declare const UpdateBotCallbackCommand_base: {
43
43
  * projectId: "STRING_VALUE", // required
44
44
  * agentId: "STRING_VALUE", // required
45
45
  * location: "STRING_VALUE", // required
46
- * privateKeyId: "STRING_VALUE", // required
46
+ * language: "STRING_VALUE", // required
47
47
  * privateKey: "STRING_VALUE", // required
48
48
  * clientEmail: "STRING_VALUE",
49
- * clientId: "STRING_VALUE",
50
49
  * },
51
50
  * openAiAssistant: { // BotOpenAiAssistantEndpoint
52
51
  * key: "STRING_VALUE", // required
@@ -73,10 +72,9 @@ declare const UpdateBotCallbackCommand_base: {
73
72
  * // projectId: "STRING_VALUE", // required
74
73
  * // agentId: "STRING_VALUE", // required
75
74
  * // location: "STRING_VALUE", // required
76
- * // privateKeyId: "STRING_VALUE", // required
75
+ * // language: "STRING_VALUE", // required
77
76
  * // privateKey: "STRING_VALUE", // required
78
77
  * // clientEmail: "STRING_VALUE",
79
- * // clientId: "STRING_VALUE",
80
78
  * // },
81
79
  * // openAiAssistant: { // BotOpenAiAssistantEndpoint
82
80
  * // 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
+ }
@@ -10,4 +10,5 @@ export * from "./ListBotApiKeysCommand";
10
10
  export * from "./ListBotsCommand";
11
11
  export * from "./UpdateBotCommand";
12
12
  export * from "./UpdateBotCallbackCommand";
13
+ export * from "./UploadPictureCommand";
13
14
  export * from "./VerifyBotSecretKeyCommand";
@@ -119,26 +119,25 @@ export interface BotDialogflowCxEndpoint {
119
119
  */
120
120
  agentId: string;
121
121
  /**
122
- * Region (example: europe-west3)
122
+ * Dialogflow Agent Region (example: europe-west3)
123
123
  * @public
124
124
  */
125
125
  location: string;
126
126
  /**
127
- * Private Key Id (example: 4aece3c7e549216a9c1e920e37f9cf6beb3a9c42)
127
+ * Language
128
128
  * @public
129
129
  */
130
- privateKeyId: string;
131
- privateKey: string;
130
+ language: string;
132
131
  /**
133
- * Service Account Email (example name@fluent-imprint-571.iam.gserviceaccount.com)
132
+ * Service Account Private Key
134
133
  * @public
135
134
  */
136
- clientEmail?: string;
135
+ privateKey: string;
137
136
  /**
138
- * Service Account Id (example 111958626790109061534)
137
+ * Service Account Email (example name@fluent-imprint-571.iam.gserviceaccount.com)
139
138
  * @public
140
139
  */
141
- clientId?: string;
140
+ clientEmail?: string;
142
141
  }
143
142
  /**
144
143
  * @public
@@ -251,7 +250,16 @@ export declare class BotSecretKeyNotValidException extends __BaseException {
251
250
  export interface CreateBotInput {
252
251
  company?: string;
253
252
  name: string;
253
+ /**
254
+ * A link to the bot picture.
255
+ * @public
256
+ */
254
257
  picture?: string;
258
+ /**
259
+ * A flag enables users to discover the bot via the search function in the x-bees application.
260
+ * @public
261
+ */
262
+ searchable?: boolean;
255
263
  callback: BotCallback;
256
264
  }
257
265
  /**
@@ -381,6 +389,22 @@ export interface UpdateBotCallbackInput {
381
389
  export interface UpdateBotCallbackOutput {
382
390
  callback: BotCallback;
383
391
  }
392
+ /**
393
+ * @public
394
+ */
395
+ export interface UploadPictureInput {
396
+ /**
397
+ * A base64 encoded image file in PNG or JPG format, with dimensions of 140 x 140 pixels.
398
+ * @public
399
+ */
400
+ picture: string;
401
+ }
402
+ /**
403
+ * @public
404
+ */
405
+ export interface UploadPictureOutput {
406
+ url: string;
407
+ }
384
408
  /**
385
409
  * @public
386
410
  */
@@ -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.10",
4
+ "version": "1.0.11",
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",