@wildix/xbees-users-client 1.0.46 → 1.0.48

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,
@@ -48,6 +48,7 @@ declare const CreateBotApiKeyCommand_base: {
48
48
  * // searchable: true || false,
49
49
  * // access: "EVERYBODY" || "ORGANIZATION",
50
50
  * // id: "STRING_VALUE", // required
51
+ * // category: "STRING_VALUE",
51
52
  * // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
52
53
  * // integrationApiKeysCount: Number("int"), // required
53
54
  * // createdAt: "STRING_VALUE", // required
@@ -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
@@ -124,6 +149,7 @@ declare const CreateBotCommand_base: {
124
149
  * // searchable: true || false,
125
150
  * // access: "EVERYBODY" || "ORGANIZATION",
126
151
  * // id: "STRING_VALUE", // required
152
+ * // category: "STRING_VALUE",
127
153
  * // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
128
154
  * // integrationApiKeysCount: Number("int"), // required
129
155
  * // createdAt: "STRING_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
@@ -47,6 +47,7 @@ declare const GetBotCommand_base: {
47
47
  * // searchable: true || false,
48
48
  * // access: "EVERYBODY" || "ORGANIZATION",
49
49
  * // id: "STRING_VALUE", // required
50
+ * // category: "STRING_VALUE",
50
51
  * // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
51
52
  * // integrationApiKeysCount: Number("int"), // required
52
53
  * // createdAt: "STRING_VALUE", // required
@@ -47,6 +47,7 @@ declare const ListBotsCommand_base: {
47
47
  * // searchable: true || false,
48
48
  * // access: "EVERYBODY" || "ORGANIZATION",
49
49
  * // id: "STRING_VALUE", // required
50
+ * // category: "STRING_VALUE",
50
51
  * // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
51
52
  * // integrationApiKeysCount: Number("int"), // required
52
53
  * // createdAt: "STRING_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
@@ -51,6 +51,7 @@ declare const UpdateBotCommand_base: {
51
51
  * // searchable: true || false,
52
52
  * // access: "EVERYBODY" || "ORGANIZATION",
53
53
  * // id: "STRING_VALUE", // required
54
+ * // category: "STRING_VALUE",
54
55
  * // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
55
56
  * // integrationApiKeysCount: Number("int"), // required
56
57
  * // createdAt: "STRING_VALUE", // required
@@ -570,6 +570,11 @@ export interface Bot {
570
570
  */
571
571
  access?: BotAccess | undefined;
572
572
  id: string;
573
+ /**
574
+ * Category of the bot
575
+ * @public
576
+ */
577
+ category?: string | undefined;
573
578
  integrationType: BotIntegrationType;
574
579
  integrationApiKeysCount: number;
575
580
  createdAt: string;
@@ -594,6 +599,132 @@ export declare class BotApiKeyNotFoundException extends __BaseException {
594
599
  */
595
600
  constructor(opts: __ExceptionOptionType<BotApiKeyNotFoundException, __BaseException>);
596
601
  }
602
+ /**
603
+ * @public
604
+ */
605
+ export interface BotKnowledgeBase {
606
+ knowledgeBaseId?: string | undefined;
607
+ /**
608
+ * Additional instructions for when the bot should use this knowledge base.
609
+ * @public
610
+ */
611
+ instructions?: string | undefined;
612
+ }
613
+ /**
614
+ * @public
615
+ */
616
+ export interface BotToolVariableAutoHandler {
617
+ }
618
+ /**
619
+ * @public
620
+ */
621
+ export interface BotToolVariableGuidedHandler {
622
+ description: string;
623
+ }
624
+ /**
625
+ * @public
626
+ */
627
+ export interface BotToolVariablePredefinedHandler {
628
+ description: string;
629
+ }
630
+ /**
631
+ * @public
632
+ */
633
+ export type BotToolVariableHandler = BotToolVariableHandler.AutoMember | BotToolVariableHandler.GuidedMember | BotToolVariableHandler.PredefinedMember | BotToolVariableHandler.$UnknownMember;
634
+ /**
635
+ * @public
636
+ */
637
+ export declare namespace BotToolVariableHandler {
638
+ interface AutoMember {
639
+ auto: BotToolVariableAutoHandler;
640
+ guided?: never;
641
+ predefined?: never;
642
+ $unknown?: never;
643
+ }
644
+ interface GuidedMember {
645
+ auto?: never;
646
+ guided: BotToolVariableGuidedHandler;
647
+ predefined?: never;
648
+ $unknown?: never;
649
+ }
650
+ interface PredefinedMember {
651
+ auto?: never;
652
+ guided?: never;
653
+ predefined: BotToolVariablePredefinedHandler;
654
+ $unknown?: never;
655
+ }
656
+ /**
657
+ * @public
658
+ */
659
+ interface $UnknownMember {
660
+ auto?: never;
661
+ guided?: never;
662
+ predefined?: never;
663
+ $unknown: [string, any];
664
+ }
665
+ interface Visitor<T> {
666
+ auto: (value: BotToolVariableAutoHandler) => T;
667
+ guided: (value: BotToolVariableGuidedHandler) => T;
668
+ predefined: (value: BotToolVariablePredefinedHandler) => T;
669
+ _: (name: string, value: any) => T;
670
+ }
671
+ const visit: <T>(value: BotToolVariableHandler, visitor: Visitor<T>) => T;
672
+ }
673
+ /**
674
+ * @public
675
+ */
676
+ export interface BotToolVariable {
677
+ /**
678
+ * Name of the tool variable, e.g.: 'myvar'
679
+ * @public
680
+ */
681
+ name: string;
682
+ handler?: BotToolVariableHandler | undefined;
683
+ }
684
+ /**
685
+ * @public
686
+ */
687
+ export interface BotCapabilityTool {
688
+ /**
689
+ * Unique identifier of the tool using nanoid format
690
+ * @public
691
+ */
692
+ id: string;
693
+ variables?: (BotToolVariable)[] | undefined;
694
+ }
695
+ /**
696
+ * @public
697
+ */
698
+ export type BotCapability = BotCapability.KbMember | BotCapability.ToolMember | BotCapability.$UnknownMember;
699
+ /**
700
+ * @public
701
+ */
702
+ export declare namespace BotCapability {
703
+ interface ToolMember {
704
+ tool: BotCapabilityTool;
705
+ kb?: never;
706
+ $unknown?: never;
707
+ }
708
+ interface KbMember {
709
+ tool?: never;
710
+ kb: BotKnowledgeBase;
711
+ $unknown?: never;
712
+ }
713
+ /**
714
+ * @public
715
+ */
716
+ interface $UnknownMember {
717
+ tool?: never;
718
+ kb?: never;
719
+ $unknown: [string, any];
720
+ }
721
+ interface Visitor<T> {
722
+ tool: (value: BotCapabilityTool) => T;
723
+ kb: (value: BotKnowledgeBase) => T;
724
+ _: (name: string, value: any) => T;
725
+ }
726
+ const visit: <T>(value: BotCapability, visitor: Visitor<T>) => T;
727
+ }
597
728
  /**
598
729
  * @public
599
730
  * @enum
@@ -806,6 +937,7 @@ export interface BotLlmEndpoint {
806
937
  * @public
807
938
  */
808
939
  tools?: (BotLlmTool)[] | undefined;
940
+ capabilities?: (BotCapability)[] | undefined;
809
941
  }
810
942
  /**
811
943
  * @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.48",
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",