@wildix/xbees-users-client 1.0.42 → 1.0.43

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.
@@ -122,6 +122,8 @@ var BotLlmFunctionIntegration;
122
122
  BotLlmFunctionIntegration.visit = (value, visitor) => {
123
123
  if (value.webhook !== undefined)
124
124
  return visitor.webhook(value.webhook);
125
+ if (value.aiTool !== undefined)
126
+ return visitor.aiTool(value.aiTool);
125
127
  return visitor._(value.$unknown[0], value.$unknown[1]);
126
128
  };
127
129
  })(BotLlmFunctionIntegration || (exports.BotLlmFunctionIntegration = BotLlmFunctionIntegration = {}));
@@ -1251,6 +1251,7 @@ const se_BotLlmFunctionDefinition = (input, context) => {
1251
1251
  };
1252
1252
  const se_BotLlmFunctionIntegration = (input, context) => {
1253
1253
  return models_0_1.BotLlmFunctionIntegration.visit(input, {
1254
+ aiTool: value => ({ "aiTool": (0, smithy_client_1._json)(value) }),
1254
1255
  webhook: value => ({ "webhook": se_BotLlmFunctionIntegrationWebhook(value, context) }),
1255
1256
  _: (name, value) => ({ [name]: value })
1256
1257
  });
@@ -1262,6 +1263,7 @@ const se_BotLlmFunctionIntegrationWebhook = (input, context) => {
1262
1263
  'headers': smithy_client_1._json,
1263
1264
  'method': [],
1264
1265
  'parameters': _ => se_Document(_, context),
1266
+ 'timeout': [],
1265
1267
  'url': [],
1266
1268
  });
1267
1269
  };
@@ -1349,6 +1351,11 @@ const de_BotLlmFunctionDefinition = (output, context) => {
1349
1351
  });
1350
1352
  };
1351
1353
  const de_BotLlmFunctionIntegration = (output, context) => {
1354
+ if (output.aiTool != null) {
1355
+ return {
1356
+ aiTool: (0, smithy_client_1._json)(output.aiTool)
1357
+ };
1358
+ }
1352
1359
  if (output.webhook != null) {
1353
1360
  return {
1354
1361
  webhook: de_BotLlmFunctionIntegrationWebhook(output.webhook, context)
@@ -1363,6 +1370,7 @@ const de_BotLlmFunctionIntegrationWebhook = (output, context) => {
1363
1370
  'headers': smithy_client_1._json,
1364
1371
  'method': smithy_client_1.expectString,
1365
1372
  'parameters': (_) => de_Document(_, context),
1373
+ 'timeout': smithy_client_1.expectInt32,
1366
1374
  'url': smithy_client_1.expectString,
1367
1375
  });
1368
1376
  };
@@ -116,6 +116,8 @@ export var BotLlmFunctionIntegration;
116
116
  BotLlmFunctionIntegration.visit = (value, visitor) => {
117
117
  if (value.webhook !== undefined)
118
118
  return visitor.webhook(value.webhook);
119
+ if (value.aiTool !== undefined)
120
+ return visitor.aiTool(value.aiTool);
119
121
  return visitor._(value.$unknown[0], value.$unknown[1]);
120
122
  };
121
123
  })(BotLlmFunctionIntegration || (BotLlmFunctionIntegration = {}));
@@ -2,7 +2,7 @@ import { UsersServiceException as __BaseException } from "../models/UsersService
2
2
  import { BotApiKeyNotFoundException, BotEndpoint, BotLlmFunctionIntegration, BotNotFoundException, BotSecretKeyNotValidException, ForbiddenException, UserCompanyNotValidException, UserNotFoundException, UserQueryPredicateNotMetException, ValidationException, } from "../models/models_0";
3
3
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
4
4
  import { requestBuilder as rb } from "@smithy/core";
5
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
5
+ import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
6
6
  export const se_BatchGetUsersCommand = async (input, context) => {
7
7
  const b = rb(input, context);
8
8
  const headers = {
@@ -1181,6 +1181,7 @@ const se_BotLlmFunctionDefinition = (input, context) => {
1181
1181
  };
1182
1182
  const se_BotLlmFunctionIntegration = (input, context) => {
1183
1183
  return BotLlmFunctionIntegration.visit(input, {
1184
+ aiTool: value => ({ "aiTool": _json(value) }),
1184
1185
  webhook: value => ({ "webhook": se_BotLlmFunctionIntegrationWebhook(value, context) }),
1185
1186
  _: (name, value) => ({ [name]: value })
1186
1187
  });
@@ -1192,6 +1193,7 @@ const se_BotLlmFunctionIntegrationWebhook = (input, context) => {
1192
1193
  'headers': _json,
1193
1194
  'method': [],
1194
1195
  'parameters': _ => se_Document(_, context),
1196
+ 'timeout': [],
1195
1197
  'url': [],
1196
1198
  });
1197
1199
  };
@@ -1279,6 +1281,11 @@ const de_BotLlmFunctionDefinition = (output, context) => {
1279
1281
  });
1280
1282
  };
1281
1283
  const de_BotLlmFunctionIntegration = (output, context) => {
1284
+ if (output.aiTool != null) {
1285
+ return {
1286
+ aiTool: _json(output.aiTool)
1287
+ };
1288
+ }
1282
1289
  if (output.webhook != null) {
1283
1290
  return {
1284
1291
  webhook: de_BotLlmFunctionIntegrationWebhook(output.webhook, context)
@@ -1293,6 +1300,7 @@ const de_BotLlmFunctionIntegrationWebhook = (output, context) => {
1293
1300
  'headers': _json,
1294
1301
  'method': __expectString,
1295
1302
  'parameters': (_) => de_Document(_, context),
1303
+ 'timeout': __expectInt32,
1296
1304
  'url': __expectString,
1297
1305
  });
1298
1306
  };
@@ -85,8 +85,12 @@ declare const CreateBotCommand_base: {
85
85
  * value: "STRING_VALUE", // required
86
86
  * },
87
87
  * ],
88
+ * timeout: Number("int"),
88
89
  * parameters: "DOCUMENT_VALUE",
89
90
  * },
91
+ * aiTool: { // BotLlmFunctionIntegrationAiTool
92
+ * toolId: "STRING_VALUE", // required
93
+ * },
90
94
  * },
91
95
  * },
92
96
  * },
@@ -86,8 +86,12 @@ declare const GetBotCallbackCommand_base: {
86
86
  * // value: "STRING_VALUE", // required
87
87
  * // },
88
88
  * // ],
89
+ * // timeout: Number("int"),
89
90
  * // parameters: "DOCUMENT_VALUE",
90
91
  * // },
92
+ * // aiTool: { // BotLlmFunctionIntegrationAiTool
93
+ * // toolId: "STRING_VALUE", // required
94
+ * // },
91
95
  * // },
92
96
  * // },
93
97
  * // },
@@ -82,8 +82,12 @@ declare const UpdateBotCallbackCommand_base: {
82
82
  * value: "STRING_VALUE", // required
83
83
  * },
84
84
  * ],
85
+ * timeout: Number("int"),
85
86
  * parameters: "DOCUMENT_VALUE",
86
87
  * },
88
+ * aiTool: { // BotLlmFunctionIntegrationAiTool
89
+ * toolId: "STRING_VALUE", // required
90
+ * },
87
91
  * },
88
92
  * },
89
93
  * },
@@ -158,8 +162,12 @@ declare const UpdateBotCallbackCommand_base: {
158
162
  * // value: "STRING_VALUE", // required
159
163
  * // },
160
164
  * // ],
165
+ * // timeout: Number("int"),
161
166
  * // parameters: "DOCUMENT_VALUE",
162
167
  * // },
168
+ * // aiTool: { // BotLlmFunctionIntegrationAiTool
169
+ * // toolId: "STRING_VALUE", // required
170
+ * // },
163
171
  * // },
164
172
  * // },
165
173
  * // },
@@ -28,6 +28,7 @@ declare const UploadPictureV1Command_base: {
28
28
  };
29
29
  /**
30
30
  * @public
31
+ * @deprecated
31
32
  *
32
33
  * @example
33
34
  * Use a bare-bones client and the command you need to make an API call.
@@ -618,6 +618,16 @@ export interface BotLlmEmbeddedTool {
618
618
  */
619
619
  parameters?: __DocumentType | undefined;
620
620
  }
621
+ /**
622
+ * @public
623
+ */
624
+ export interface BotLlmFunctionIntegrationAiTool {
625
+ /**
626
+ * The ID of the AI Tool from wim-tools service
627
+ * @public
628
+ */
629
+ toolId: string;
630
+ }
621
631
  /**
622
632
  * @public
623
633
  */
@@ -714,18 +724,29 @@ export interface BotLlmFunctionIntegrationWebhook {
714
724
  async?: boolean | undefined;
715
725
  authorization?: BotLlmFunctionIntegrationWebhookAuthorization | undefined;
716
726
  headers?: (BotLlmFunctionIntegrationWebhookHeader)[] | undefined;
727
+ /**
728
+ * Timeout in milliseconds for the webhook request.
729
+ * @public
730
+ */
731
+ timeout?: number | undefined;
717
732
  parameters?: __DocumentType | undefined;
718
733
  }
719
734
  /**
720
735
  * @public
721
736
  */
722
- export type BotLlmFunctionIntegration = BotLlmFunctionIntegration.WebhookMember | BotLlmFunctionIntegration.$UnknownMember;
737
+ export type BotLlmFunctionIntegration = BotLlmFunctionIntegration.AiToolMember | BotLlmFunctionIntegration.WebhookMember | BotLlmFunctionIntegration.$UnknownMember;
723
738
  /**
724
739
  * @public
725
740
  */
726
741
  export declare namespace BotLlmFunctionIntegration {
727
742
  interface WebhookMember {
728
743
  webhook: BotLlmFunctionIntegrationWebhook;
744
+ aiTool?: never;
745
+ $unknown?: never;
746
+ }
747
+ interface AiToolMember {
748
+ webhook?: never;
749
+ aiTool: BotLlmFunctionIntegrationAiTool;
729
750
  $unknown?: never;
730
751
  }
731
752
  /**
@@ -733,10 +754,12 @@ export declare namespace BotLlmFunctionIntegration {
733
754
  */
734
755
  interface $UnknownMember {
735
756
  webhook?: never;
757
+ aiTool?: never;
736
758
  $unknown: [string, any];
737
759
  }
738
760
  interface Visitor<T> {
739
761
  webhook: (value: BotLlmFunctionIntegrationWebhook) => T;
762
+ aiTool: (value: BotLlmFunctionIntegrationAiTool) => T;
740
763
  _: (name: string, value: any) => T;
741
764
  }
742
765
  const visit: <T>(value: BotLlmFunctionIntegration, visitor: Visitor<T>) => T;
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.42",
4
+ "version": "1.0.43",
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",