@wildix/xbees-users-client 1.0.46 → 1.0.47

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotLlmToolType = exports.BotLlmFunctionIntegration = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmEmbeddedToolType = exports.BotApiKeyNotFoundException = exports.BotIntegrationType = exports.BotAccess = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ValidationException = exports.ForbiddenException = void 0;
3
+ exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotLlmToolType = exports.BotLlmFunctionIntegration = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmEmbeddedToolType = exports.BotCapability = exports.BotToolVariableHandler = exports.BotApiKeyNotFoundException = exports.BotIntegrationType = exports.BotAccess = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ValidationException = exports.ForbiddenException = void 0;
4
4
  const UsersServiceException_1 = require("./UsersServiceException");
5
5
  class ForbiddenException extends UsersServiceException_1.UsersServiceException {
6
6
  name = "ForbiddenException";
@@ -93,6 +93,28 @@ class BotApiKeyNotFoundException extends UsersServiceException_1.UsersServiceExc
93
93
  }
94
94
  }
95
95
  exports.BotApiKeyNotFoundException = BotApiKeyNotFoundException;
96
+ var BotToolVariableHandler;
97
+ (function (BotToolVariableHandler) {
98
+ BotToolVariableHandler.visit = (value, visitor) => {
99
+ if (value.auto !== undefined)
100
+ return visitor.auto(value.auto);
101
+ if (value.guided !== undefined)
102
+ return visitor.guided(value.guided);
103
+ if (value.predefined !== undefined)
104
+ return visitor.predefined(value.predefined);
105
+ return visitor._(value.$unknown[0], value.$unknown[1]);
106
+ };
107
+ })(BotToolVariableHandler || (exports.BotToolVariableHandler = BotToolVariableHandler = {}));
108
+ var BotCapability;
109
+ (function (BotCapability) {
110
+ BotCapability.visit = (value, visitor) => {
111
+ if (value.tool !== undefined)
112
+ return visitor.tool(value.tool);
113
+ if (value.kb !== undefined)
114
+ return visitor.kb(value.kb);
115
+ return visitor._(value.$unknown[0], value.$unknown[1]);
116
+ };
117
+ })(BotCapability || (exports.BotCapability = BotCapability = {}));
96
118
  exports.BotLlmEmbeddedToolType = {
97
119
  DELEGATE: "DELEGATE",
98
120
  HANDOVER: "HANDOVER",
@@ -1236,6 +1236,7 @@ const se_BotLlmEmbeddedToolsList = (input, context) => {
1236
1236
  };
1237
1237
  const se_BotLlmEndpoint = (input, context) => {
1238
1238
  return (0, smithy_client_1.take)(input, {
1239
+ 'capabilities': smithy_client_1._json,
1239
1240
  'embeddedTools': _ => se_BotLlmEmbeddedToolsList(_, context),
1240
1241
  'model': [],
1241
1242
  'prompt': [],
@@ -1337,6 +1338,7 @@ const de_BotLlmEmbeddedToolsList = (output, context) => {
1337
1338
  };
1338
1339
  const de_BotLlmEndpoint = (output, context) => {
1339
1340
  return (0, smithy_client_1.take)(output, {
1341
+ 'capabilities': smithy_client_1._json,
1340
1342
  'embeddedTools': (_) => de_BotLlmEmbeddedToolsList(_, context),
1341
1343
  'model': smithy_client_1.expectString,
1342
1344
  'prompt': smithy_client_1.expectString,
@@ -87,6 +87,28 @@ export class BotApiKeyNotFoundException extends __BaseException {
87
87
  Object.setPrototypeOf(this, BotApiKeyNotFoundException.prototype);
88
88
  }
89
89
  }
90
+ export var BotToolVariableHandler;
91
+ (function (BotToolVariableHandler) {
92
+ BotToolVariableHandler.visit = (value, visitor) => {
93
+ if (value.auto !== undefined)
94
+ return visitor.auto(value.auto);
95
+ if (value.guided !== undefined)
96
+ return visitor.guided(value.guided);
97
+ if (value.predefined !== undefined)
98
+ return visitor.predefined(value.predefined);
99
+ return visitor._(value.$unknown[0], value.$unknown[1]);
100
+ };
101
+ })(BotToolVariableHandler || (BotToolVariableHandler = {}));
102
+ export var BotCapability;
103
+ (function (BotCapability) {
104
+ BotCapability.visit = (value, visitor) => {
105
+ if (value.tool !== undefined)
106
+ return visitor.tool(value.tool);
107
+ if (value.kb !== undefined)
108
+ return visitor.kb(value.kb);
109
+ return visitor._(value.$unknown[0], value.$unknown[1]);
110
+ };
111
+ })(BotCapability || (BotCapability = {}));
90
112
  export const BotLlmEmbeddedToolType = {
91
113
  DELEGATE: "DELEGATE",
92
114
  HANDOVER: "HANDOVER",
@@ -1166,6 +1166,7 @@ const se_BotLlmEmbeddedToolsList = (input, context) => {
1166
1166
  };
1167
1167
  const se_BotLlmEndpoint = (input, context) => {
1168
1168
  return take(input, {
1169
+ 'capabilities': _json,
1169
1170
  'embeddedTools': _ => se_BotLlmEmbeddedToolsList(_, context),
1170
1171
  'model': [],
1171
1172
  'prompt': [],
@@ -1267,6 +1268,7 @@ const de_BotLlmEmbeddedToolsList = (output, context) => {
1267
1268
  };
1268
1269
  const de_BotLlmEndpoint = (output, context) => {
1269
1270
  return take(output, {
1271
+ 'capabilities': _json,
1270
1272
  'embeddedTools': (_) => de_BotLlmEmbeddedToolsList(_, context),
1271
1273
  'model': __expectString,
1272
1274
  'prompt': __expectString,
@@ -92,6 +92,31 @@ declare const CreateBotCommand_base: {
92
92
  * },
93
93
  * },
94
94
  * ],
95
+ * capabilities: [ // BotCapabilitiesList
96
+ * { // BotCapability Union: only one key present
97
+ * tool: { // BotCapabilityTool
98
+ * id: "STRING_VALUE", // required
99
+ * variables: [ // BotToolVariablesList
100
+ * { // BotToolVariable
101
+ * name: "STRING_VALUE", // required
102
+ * handler: { // BotToolVariableHandler Union: only one key present
103
+ * auto: {},
104
+ * guided: { // BotToolVariableGuidedHandler
105
+ * description: "STRING_VALUE", // required
106
+ * },
107
+ * predefined: { // BotToolVariablePredefinedHandler
108
+ * description: "STRING_VALUE", // required
109
+ * },
110
+ * },
111
+ * },
112
+ * ],
113
+ * },
114
+ * kb: { // BotKnowledgeBase
115
+ * knowledgeBaseId: "STRING_VALUE",
116
+ * instructions: "STRING_VALUE",
117
+ * },
118
+ * },
119
+ * ],
95
120
  * },
96
121
  * dialogflowCx: { // BotDialogflowCxEndpoint
97
122
  * credentials: "DOCUMENT_VALUE", // required
@@ -93,6 +93,31 @@ declare const GetBotCallbackCommand_base: {
93
93
  * // },
94
94
  * // },
95
95
  * // ],
96
+ * // capabilities: [ // BotCapabilitiesList
97
+ * // { // BotCapability Union: only one key present
98
+ * // tool: { // BotCapabilityTool
99
+ * // id: "STRING_VALUE", // required
100
+ * // variables: [ // BotToolVariablesList
101
+ * // { // BotToolVariable
102
+ * // name: "STRING_VALUE", // required
103
+ * // handler: { // BotToolVariableHandler Union: only one key present
104
+ * // auto: {},
105
+ * // guided: { // BotToolVariableGuidedHandler
106
+ * // description: "STRING_VALUE", // required
107
+ * // },
108
+ * // predefined: { // BotToolVariablePredefinedHandler
109
+ * // description: "STRING_VALUE", // required
110
+ * // },
111
+ * // },
112
+ * // },
113
+ * // ],
114
+ * // },
115
+ * // kb: { // BotKnowledgeBase
116
+ * // knowledgeBaseId: "STRING_VALUE",
117
+ * // instructions: "STRING_VALUE",
118
+ * // },
119
+ * // },
120
+ * // ],
96
121
  * // },
97
122
  * // dialogflowCx: { // BotDialogflowCxEndpoint
98
123
  * // credentials: "DOCUMENT_VALUE", // required
@@ -89,6 +89,31 @@ declare const UpdateBotCallbackCommand_base: {
89
89
  * },
90
90
  * },
91
91
  * ],
92
+ * capabilities: [ // BotCapabilitiesList
93
+ * { // BotCapability Union: only one key present
94
+ * tool: { // BotCapabilityTool
95
+ * id: "STRING_VALUE", // required
96
+ * variables: [ // BotToolVariablesList
97
+ * { // BotToolVariable
98
+ * name: "STRING_VALUE", // required
99
+ * handler: { // BotToolVariableHandler Union: only one key present
100
+ * auto: {},
101
+ * guided: { // BotToolVariableGuidedHandler
102
+ * description: "STRING_VALUE", // required
103
+ * },
104
+ * predefined: { // BotToolVariablePredefinedHandler
105
+ * description: "STRING_VALUE", // required
106
+ * },
107
+ * },
108
+ * },
109
+ * ],
110
+ * },
111
+ * kb: { // BotKnowledgeBase
112
+ * knowledgeBaseId: "STRING_VALUE",
113
+ * instructions: "STRING_VALUE",
114
+ * },
115
+ * },
116
+ * ],
92
117
  * },
93
118
  * dialogflowCx: { // BotDialogflowCxEndpoint
94
119
  * credentials: "DOCUMENT_VALUE", // required
@@ -167,6 +192,31 @@ declare const UpdateBotCallbackCommand_base: {
167
192
  * // },
168
193
  * // },
169
194
  * // ],
195
+ * // capabilities: [ // BotCapabilitiesList
196
+ * // { // BotCapability Union: only one key present
197
+ * // tool: { // BotCapabilityTool
198
+ * // id: "STRING_VALUE", // required
199
+ * // variables: [ // BotToolVariablesList
200
+ * // { // BotToolVariable
201
+ * // name: "STRING_VALUE", // required
202
+ * // handler: { // BotToolVariableHandler Union: only one key present
203
+ * // auto: {},
204
+ * // guided: { // BotToolVariableGuidedHandler
205
+ * // description: "STRING_VALUE", // required
206
+ * // },
207
+ * // predefined: { // BotToolVariablePredefinedHandler
208
+ * // description: "STRING_VALUE", // required
209
+ * // },
210
+ * // },
211
+ * // },
212
+ * // ],
213
+ * // },
214
+ * // kb: { // BotKnowledgeBase
215
+ * // knowledgeBaseId: "STRING_VALUE",
216
+ * // instructions: "STRING_VALUE",
217
+ * // },
218
+ * // },
219
+ * // ],
170
220
  * // },
171
221
  * // dialogflowCx: { // BotDialogflowCxEndpoint
172
222
  * // credentials: "DOCUMENT_VALUE", // required
@@ -594,6 +594,132 @@ export declare class BotApiKeyNotFoundException extends __BaseException {
594
594
  */
595
595
  constructor(opts: __ExceptionOptionType<BotApiKeyNotFoundException, __BaseException>);
596
596
  }
597
+ /**
598
+ * @public
599
+ */
600
+ export interface BotKnowledgeBase {
601
+ knowledgeBaseId?: string | undefined;
602
+ /**
603
+ * Additional instructions for when the bot should use this knowledge base.
604
+ * @public
605
+ */
606
+ instructions?: string | undefined;
607
+ }
608
+ /**
609
+ * @public
610
+ */
611
+ export interface BotToolVariableAutoHandler {
612
+ }
613
+ /**
614
+ * @public
615
+ */
616
+ export interface BotToolVariableGuidedHandler {
617
+ description: string;
618
+ }
619
+ /**
620
+ * @public
621
+ */
622
+ export interface BotToolVariablePredefinedHandler {
623
+ description: string;
624
+ }
625
+ /**
626
+ * @public
627
+ */
628
+ export type BotToolVariableHandler = BotToolVariableHandler.AutoMember | BotToolVariableHandler.GuidedMember | BotToolVariableHandler.PredefinedMember | BotToolVariableHandler.$UnknownMember;
629
+ /**
630
+ * @public
631
+ */
632
+ export declare namespace BotToolVariableHandler {
633
+ interface AutoMember {
634
+ auto: BotToolVariableAutoHandler;
635
+ guided?: never;
636
+ predefined?: never;
637
+ $unknown?: never;
638
+ }
639
+ interface GuidedMember {
640
+ auto?: never;
641
+ guided: BotToolVariableGuidedHandler;
642
+ predefined?: never;
643
+ $unknown?: never;
644
+ }
645
+ interface PredefinedMember {
646
+ auto?: never;
647
+ guided?: never;
648
+ predefined: BotToolVariablePredefinedHandler;
649
+ $unknown?: never;
650
+ }
651
+ /**
652
+ * @public
653
+ */
654
+ interface $UnknownMember {
655
+ auto?: never;
656
+ guided?: never;
657
+ predefined?: never;
658
+ $unknown: [string, any];
659
+ }
660
+ interface Visitor<T> {
661
+ auto: (value: BotToolVariableAutoHandler) => T;
662
+ guided: (value: BotToolVariableGuidedHandler) => T;
663
+ predefined: (value: BotToolVariablePredefinedHandler) => T;
664
+ _: (name: string, value: any) => T;
665
+ }
666
+ const visit: <T>(value: BotToolVariableHandler, visitor: Visitor<T>) => T;
667
+ }
668
+ /**
669
+ * @public
670
+ */
671
+ export interface BotToolVariable {
672
+ /**
673
+ * Name of the tool variable, e.g.: 'myvar'
674
+ * @public
675
+ */
676
+ name: string;
677
+ handler?: BotToolVariableHandler | undefined;
678
+ }
679
+ /**
680
+ * @public
681
+ */
682
+ export interface BotCapabilityTool {
683
+ /**
684
+ * Unique identifier of the tool using nanoid format
685
+ * @public
686
+ */
687
+ id: string;
688
+ variables?: (BotToolVariable)[] | undefined;
689
+ }
690
+ /**
691
+ * @public
692
+ */
693
+ export type BotCapability = BotCapability.KbMember | BotCapability.ToolMember | BotCapability.$UnknownMember;
694
+ /**
695
+ * @public
696
+ */
697
+ export declare namespace BotCapability {
698
+ interface ToolMember {
699
+ tool: BotCapabilityTool;
700
+ kb?: never;
701
+ $unknown?: never;
702
+ }
703
+ interface KbMember {
704
+ tool?: never;
705
+ kb: BotKnowledgeBase;
706
+ $unknown?: never;
707
+ }
708
+ /**
709
+ * @public
710
+ */
711
+ interface $UnknownMember {
712
+ tool?: never;
713
+ kb?: never;
714
+ $unknown: [string, any];
715
+ }
716
+ interface Visitor<T> {
717
+ tool: (value: BotCapabilityTool) => T;
718
+ kb: (value: BotKnowledgeBase) => T;
719
+ _: (name: string, value: any) => T;
720
+ }
721
+ const visit: <T>(value: BotCapability, visitor: Visitor<T>) => T;
722
+ }
597
723
  /**
598
724
  * @public
599
725
  * @enum
@@ -806,6 +932,7 @@ export interface BotLlmEndpoint {
806
932
  * @public
807
933
  */
808
934
  tools?: (BotLlmTool)[] | undefined;
935
+ capabilities?: (BotCapability)[] | undefined;
809
936
  }
810
937
  /**
811
938
  * @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.46",
4
+ "version": "1.0.47",
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",