@wildix/xbees-users-client 1.0.41 → 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 = {}));
@@ -362,6 +362,7 @@ const se_QueryColleaguesCommand = async (input, context) => {
362
362
  });
363
363
  let body;
364
364
  body = JSON.stringify((0, smithy_client_1.take)(input, {
365
+ 'invite': [],
365
366
  'query': _ => (0, smithy_client_1._json)(_),
366
367
  }));
367
368
  b.m("POST")
@@ -1250,6 +1251,7 @@ const se_BotLlmFunctionDefinition = (input, context) => {
1250
1251
  };
1251
1252
  const se_BotLlmFunctionIntegration = (input, context) => {
1252
1253
  return models_0_1.BotLlmFunctionIntegration.visit(input, {
1254
+ aiTool: value => ({ "aiTool": (0, smithy_client_1._json)(value) }),
1253
1255
  webhook: value => ({ "webhook": se_BotLlmFunctionIntegrationWebhook(value, context) }),
1254
1256
  _: (name, value) => ({ [name]: value })
1255
1257
  });
@@ -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)
@@ -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 = {}));
@@ -337,6 +337,7 @@ export const se_QueryColleaguesCommand = async (input, context) => {
337
337
  });
338
338
  let body;
339
339
  body = JSON.stringify(take(input, {
340
+ 'invite': [],
340
341
  'query': _ => _json(_),
341
342
  }));
342
343
  b.m("POST")
@@ -1180,6 +1181,7 @@ const se_BotLlmFunctionDefinition = (input, context) => {
1180
1181
  };
1181
1182
  const se_BotLlmFunctionIntegration = (input, context) => {
1182
1183
  return BotLlmFunctionIntegration.visit(input, {
1184
+ aiTool: value => ({ "aiTool": _json(value) }),
1183
1185
  webhook: value => ({ "webhook": se_BotLlmFunctionIntegrationWebhook(value, context) }),
1184
1186
  _: (name, value) => ({ [name]: value })
1185
1187
  });
@@ -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)
@@ -88,6 +88,9 @@ declare const CreateBotCommand_base: {
88
88
  * timeout: Number("int"),
89
89
  * parameters: "DOCUMENT_VALUE",
90
90
  * },
91
+ * aiTool: { // BotLlmFunctionIntegrationAiTool
92
+ * toolId: "STRING_VALUE", // required
93
+ * },
91
94
  * },
92
95
  * },
93
96
  * },
@@ -89,6 +89,9 @@ declare const GetBotCallbackCommand_base: {
89
89
  * // timeout: Number("int"),
90
90
  * // parameters: "DOCUMENT_VALUE",
91
91
  * // },
92
+ * // aiTool: { // BotLlmFunctionIntegrationAiTool
93
+ * // toolId: "STRING_VALUE", // required
94
+ * // },
92
95
  * // },
93
96
  * // },
94
97
  * // },
@@ -67,6 +67,7 @@ declare const QueryColleaguesCommand_base: {
67
67
  * count: Number("int"),
68
68
  * dir: "asc" || "desc",
69
69
  * },
70
+ * invite: true || false,
70
71
  * };
71
72
  * const command = new QueryColleaguesCommand(input);
72
73
  * const response = await client.send(command);
@@ -85,6 +85,9 @@ declare const UpdateBotCallbackCommand_base: {
85
85
  * timeout: Number("int"),
86
86
  * parameters: "DOCUMENT_VALUE",
87
87
  * },
88
+ * aiTool: { // BotLlmFunctionIntegrationAiTool
89
+ * toolId: "STRING_VALUE", // required
90
+ * },
88
91
  * },
89
92
  * },
90
93
  * },
@@ -162,6 +165,9 @@ declare const UpdateBotCallbackCommand_base: {
162
165
  * // timeout: Number("int"),
163
166
  * // parameters: "DOCUMENT_VALUE",
164
167
  * // },
168
+ * // aiTool: { // BotLlmFunctionIntegrationAiTool
169
+ * // toolId: "STRING_VALUE", // required
170
+ * // },
165
171
  * // },
166
172
  * // },
167
173
  * // },
@@ -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
  */
@@ -724,13 +734,19 @@ export interface BotLlmFunctionIntegrationWebhook {
724
734
  /**
725
735
  * @public
726
736
  */
727
- export type BotLlmFunctionIntegration = BotLlmFunctionIntegration.WebhookMember | BotLlmFunctionIntegration.$UnknownMember;
737
+ export type BotLlmFunctionIntegration = BotLlmFunctionIntegration.AiToolMember | BotLlmFunctionIntegration.WebhookMember | BotLlmFunctionIntegration.$UnknownMember;
728
738
  /**
729
739
  * @public
730
740
  */
731
741
  export declare namespace BotLlmFunctionIntegration {
732
742
  interface WebhookMember {
733
743
  webhook: BotLlmFunctionIntegrationWebhook;
744
+ aiTool?: never;
745
+ $unknown?: never;
746
+ }
747
+ interface AiToolMember {
748
+ webhook?: never;
749
+ aiTool: BotLlmFunctionIntegrationAiTool;
734
750
  $unknown?: never;
735
751
  }
736
752
  /**
@@ -738,10 +754,12 @@ export declare namespace BotLlmFunctionIntegration {
738
754
  */
739
755
  interface $UnknownMember {
740
756
  webhook?: never;
757
+ aiTool?: never;
741
758
  $unknown: [string, any];
742
759
  }
743
760
  interface Visitor<T> {
744
761
  webhook: (value: BotLlmFunctionIntegrationWebhook) => T;
762
+ aiTool: (value: BotLlmFunctionIntegrationAiTool) => T;
745
763
  _: (name: string, value: any) => T;
746
764
  }
747
765
  const visit: <T>(value: BotLlmFunctionIntegration, visitor: Visitor<T>) => T;
@@ -1291,6 +1309,11 @@ export interface QueryColleaguesInput {
1291
1309
  */
1292
1310
  company?: string | undefined;
1293
1311
  query?: QueryColleaguesParameters | undefined;
1312
+ /**
1313
+ * If enabled, the system will automatically invite users for colleagues returned from the PBX if they haven't logged in yet.
1314
+ * @public
1315
+ */
1316
+ invite?: boolean | undefined;
1294
1317
  }
1295
1318
  /**
1296
1319
  * @public
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.41",
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",