@wildix/xbees-users-client 1.0.49 → 1.0.50

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.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;
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.BotCapabilityToolPipelineType = 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,12 @@ class BotApiKeyNotFoundException extends UsersServiceException_1.UsersServiceExc
93
93
  }
94
94
  }
95
95
  exports.BotApiKeyNotFoundException = BotApiKeyNotFoundException;
96
+ exports.BotCapabilityToolPipelineType = {
97
+ ASYNC_REQUEST: "async_request",
98
+ ASYNC_REQUEST_GUIDED: "async_request_guided",
99
+ BLOCKING_REQUEST: "blocking_request",
100
+ BLOCKING_REQUEST_GUIDED: "blocking_request_guided",
101
+ };
96
102
  var BotToolVariableHandler;
97
103
  (function (BotToolVariableHandler) {
98
104
  BotToolVariableHandler.visit = (value, visitor) => {
@@ -87,6 +87,12 @@ export class BotApiKeyNotFoundException extends __BaseException {
87
87
  Object.setPrototypeOf(this, BotApiKeyNotFoundException.prototype);
88
88
  }
89
89
  }
90
+ export const BotCapabilityToolPipelineType = {
91
+ ASYNC_REQUEST: "async_request",
92
+ ASYNC_REQUEST_GUIDED: "async_request_guided",
93
+ BLOCKING_REQUEST: "blocking_request",
94
+ BLOCKING_REQUEST_GUIDED: "blocking_request_guided",
95
+ };
90
96
  export var BotToolVariableHandler;
91
97
  (function (BotToolVariableHandler) {
92
98
  BotToolVariableHandler.visit = (value, visitor) => {
@@ -111,6 +111,10 @@ declare const CreateBotCommand_base: {
111
111
  * },
112
112
  * },
113
113
  * ],
114
+ * pipeline: { // BotCapabilityToolPipeline
115
+ * type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
116
+ * instructions: "STRING_VALUE",
117
+ * },
114
118
  * },
115
119
  * kb: { // BotKnowledgeBase
116
120
  * knowledgeBaseId: "STRING_VALUE",
@@ -111,6 +111,10 @@ declare const GetBotCallbackCommand_base: {
111
111
  * // },
112
112
  * // },
113
113
  * // ],
114
+ * // pipeline: { // BotCapabilityToolPipeline
115
+ * // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
116
+ * // instructions: "STRING_VALUE",
117
+ * // },
114
118
  * // },
115
119
  * // kb: { // BotKnowledgeBase
116
120
  * // knowledgeBaseId: "STRING_VALUE",
@@ -107,6 +107,10 @@ declare const UpdateBotCallbackCommand_base: {
107
107
  * },
108
108
  * },
109
109
  * ],
110
+ * pipeline: { // BotCapabilityToolPipeline
111
+ * type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
112
+ * instructions: "STRING_VALUE",
113
+ * },
110
114
  * },
111
115
  * kb: { // BotKnowledgeBase
112
116
  * knowledgeBaseId: "STRING_VALUE",
@@ -210,6 +214,10 @@ declare const UpdateBotCallbackCommand_base: {
210
214
  * // },
211
215
  * // },
212
216
  * // ],
217
+ * // pipeline: { // BotCapabilityToolPipeline
218
+ * // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
219
+ * // instructions: "STRING_VALUE",
220
+ * // },
213
221
  * // },
214
222
  * // kb: { // BotKnowledgeBase
215
223
  * // knowledgeBaseId: "STRING_VALUE",
@@ -610,6 +610,35 @@ export interface BotKnowledgeBase {
610
610
  */
611
611
  instructions?: string | undefined;
612
612
  }
613
+ /**
614
+ * @public
615
+ * @enum
616
+ */
617
+ export declare const BotCapabilityToolPipelineType: {
618
+ readonly ASYNC_REQUEST: "async_request";
619
+ readonly ASYNC_REQUEST_GUIDED: "async_request_guided";
620
+ readonly BLOCKING_REQUEST: "blocking_request";
621
+ readonly BLOCKING_REQUEST_GUIDED: "blocking_request_guided";
622
+ };
623
+ /**
624
+ * @public
625
+ */
626
+ export type BotCapabilityToolPipelineType = typeof BotCapabilityToolPipelineType[keyof typeof BotCapabilityToolPipelineType];
627
+ /**
628
+ * @public
629
+ */
630
+ export interface BotCapabilityToolPipeline {
631
+ /**
632
+ * Pipeline type for tool execution. Determines whether to wait for response and how to handle the reply.
633
+ * @public
634
+ */
635
+ type?: BotCapabilityToolPipelineType | undefined;
636
+ /**
637
+ * Instructions for generating a reply when using guided pipeline types. Use \{\{response\}\} to reference the tool response.
638
+ * @public
639
+ */
640
+ instructions?: string | undefined;
641
+ }
613
642
  /**
614
643
  * @public
615
644
  */
@@ -691,6 +720,7 @@ export interface BotCapabilityTool {
691
720
  */
692
721
  id: string;
693
722
  variables?: (BotToolVariable)[] | undefined;
723
+ pipeline?: BotCapabilityToolPipeline | undefined;
694
724
  }
695
725
  /**
696
726
  * @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.49",
4
+ "version": "1.0.50",
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",