@wildix/xbees-users-client 1.0.48 → 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.
- package/dist-cjs/models/models_0.js +7 -1
- package/dist-cjs/protocols/Aws_restJson1.js +2 -0
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/CreateBotApiKeyCommand.d.ts +1 -1
- package/dist-types/commands/CreateBotCommand.d.ts +6 -1
- package/dist-types/commands/GetBotCallbackCommand.d.ts +4 -0
- package/dist-types/commands/GetBotCommand.d.ts +1 -1
- package/dist-types/commands/ListBotsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateBotCallbackCommand.d.ts +8 -0
- package/dist-types/commands/UpdateBotCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +45 -5
- package/package.json +1 -1
|
@@ -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) => {
|
|
@@ -101,6 +101,7 @@ const se_CreateBotCommand = async (input, context) => {
|
|
|
101
101
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
102
102
|
'access': [],
|
|
103
103
|
'callback': _ => se_BotCallback(_, context),
|
|
104
|
+
'category': [],
|
|
104
105
|
'name': [],
|
|
105
106
|
'picture': [],
|
|
106
107
|
'searchable': [],
|
|
@@ -453,6 +454,7 @@ const se_UpdateBotCommand = async (input, context) => {
|
|
|
453
454
|
let body;
|
|
454
455
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
455
456
|
'access': [],
|
|
457
|
+
'category': [],
|
|
456
458
|
'name': [],
|
|
457
459
|
'picture': [],
|
|
458
460
|
'searchable': [],
|
|
@@ -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) => {
|
|
@@ -92,6 +92,7 @@ export const se_CreateBotCommand = async (input, context) => {
|
|
|
92
92
|
body = JSON.stringify(take(input, {
|
|
93
93
|
'access': [],
|
|
94
94
|
'callback': _ => se_BotCallback(_, context),
|
|
95
|
+
'category': [],
|
|
95
96
|
'name': [],
|
|
96
97
|
'picture': [],
|
|
97
98
|
'searchable': [],
|
|
@@ -423,6 +424,7 @@ export const se_UpdateBotCommand = async (input, context) => {
|
|
|
423
424
|
let body;
|
|
424
425
|
body = JSON.stringify(take(input, {
|
|
425
426
|
'access': [],
|
|
427
|
+
'category': [],
|
|
426
428
|
'name': [],
|
|
427
429
|
'picture': [],
|
|
428
430
|
'searchable': [],
|
|
@@ -44,11 +44,11 @@ declare const CreateBotApiKeyCommand_base: {
|
|
|
44
44
|
* // { // CreateBotApiKeyOutput
|
|
45
45
|
* // bot: { // Bot
|
|
46
46
|
* // name: "STRING_VALUE", // required
|
|
47
|
+
* // category: "STRING_VALUE",
|
|
47
48
|
* // picture: "STRING_VALUE",
|
|
48
49
|
* // searchable: true || false,
|
|
49
50
|
* // access: "EVERYBODY" || "ORGANIZATION",
|
|
50
51
|
* // id: "STRING_VALUE", // required
|
|
51
|
-
* // category: "STRING_VALUE",
|
|
52
52
|
* // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
|
|
53
53
|
* // integrationApiKeysCount: Number("int"), // required
|
|
54
54
|
* // createdAt: "STRING_VALUE", // required
|
|
@@ -36,6 +36,7 @@ declare const CreateBotCommand_base: {
|
|
|
36
36
|
* const client = new UsersClient(config);
|
|
37
37
|
* const input = { // CreateBotInput
|
|
38
38
|
* name: "STRING_VALUE", // required
|
|
39
|
+
* category: "STRING_VALUE",
|
|
39
40
|
* picture: "STRING_VALUE",
|
|
40
41
|
* searchable: true || false,
|
|
41
42
|
* access: "EVERYBODY" || "ORGANIZATION",
|
|
@@ -110,6 +111,10 @@ declare const CreateBotCommand_base: {
|
|
|
110
111
|
* },
|
|
111
112
|
* },
|
|
112
113
|
* ],
|
|
114
|
+
* pipeline: { // BotCapabilityToolPipeline
|
|
115
|
+
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
116
|
+
* instructions: "STRING_VALUE",
|
|
117
|
+
* },
|
|
113
118
|
* },
|
|
114
119
|
* kb: { // BotKnowledgeBase
|
|
115
120
|
* knowledgeBaseId: "STRING_VALUE",
|
|
@@ -145,11 +150,11 @@ declare const CreateBotCommand_base: {
|
|
|
145
150
|
* // { // CreateBotOutput
|
|
146
151
|
* // bot: { // Bot
|
|
147
152
|
* // name: "STRING_VALUE", // required
|
|
153
|
+
* // category: "STRING_VALUE",
|
|
148
154
|
* // picture: "STRING_VALUE",
|
|
149
155
|
* // searchable: true || false,
|
|
150
156
|
* // access: "EVERYBODY" || "ORGANIZATION",
|
|
151
157
|
* // id: "STRING_VALUE", // required
|
|
152
|
-
* // category: "STRING_VALUE",
|
|
153
158
|
* // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
|
|
154
159
|
* // integrationApiKeysCount: Number("int"), // required
|
|
155
160
|
* // createdAt: "STRING_VALUE", // required
|
|
@@ -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",
|
|
@@ -43,11 +43,11 @@ declare const GetBotCommand_base: {
|
|
|
43
43
|
* // { // GetBotOutput
|
|
44
44
|
* // bot: { // Bot
|
|
45
45
|
* // name: "STRING_VALUE", // required
|
|
46
|
+
* // category: "STRING_VALUE",
|
|
46
47
|
* // picture: "STRING_VALUE",
|
|
47
48
|
* // searchable: true || false,
|
|
48
49
|
* // access: "EVERYBODY" || "ORGANIZATION",
|
|
49
50
|
* // id: "STRING_VALUE", // required
|
|
50
|
-
* // category: "STRING_VALUE",
|
|
51
51
|
* // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
|
|
52
52
|
* // integrationApiKeysCount: Number("int"), // required
|
|
53
53
|
* // createdAt: "STRING_VALUE", // required
|
|
@@ -43,11 +43,11 @@ declare const ListBotsCommand_base: {
|
|
|
43
43
|
* // bots: [ // BotList // required
|
|
44
44
|
* // { // Bot
|
|
45
45
|
* // name: "STRING_VALUE", // required
|
|
46
|
+
* // category: "STRING_VALUE",
|
|
46
47
|
* // picture: "STRING_VALUE",
|
|
47
48
|
* // searchable: true || false,
|
|
48
49
|
* // access: "EVERYBODY" || "ORGANIZATION",
|
|
49
50
|
* // id: "STRING_VALUE", // required
|
|
50
|
-
* // category: "STRING_VALUE",
|
|
51
51
|
* // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
|
|
52
52
|
* // integrationApiKeysCount: Number("int"), // required
|
|
53
53
|
* // createdAt: "STRING_VALUE", // required
|
|
@@ -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",
|
|
@@ -36,6 +36,7 @@ declare const UpdateBotCommand_base: {
|
|
|
36
36
|
* const client = new UsersClient(config);
|
|
37
37
|
* const input = { // UpdateBotInput
|
|
38
38
|
* name: "STRING_VALUE", // required
|
|
39
|
+
* category: "STRING_VALUE",
|
|
39
40
|
* picture: "STRING_VALUE",
|
|
40
41
|
* searchable: true || false,
|
|
41
42
|
* access: "EVERYBODY" || "ORGANIZATION",
|
|
@@ -47,11 +48,11 @@ declare const UpdateBotCommand_base: {
|
|
|
47
48
|
* // { // UpdateBotOutput
|
|
48
49
|
* // bot: { // Bot
|
|
49
50
|
* // name: "STRING_VALUE", // required
|
|
51
|
+
* // category: "STRING_VALUE",
|
|
50
52
|
* // picture: "STRING_VALUE",
|
|
51
53
|
* // searchable: true || false,
|
|
52
54
|
* // access: "EVERYBODY" || "ORGANIZATION",
|
|
53
55
|
* // id: "STRING_VALUE", // required
|
|
54
|
-
* // category: "STRING_VALUE",
|
|
55
56
|
* // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
|
|
56
57
|
* // integrationApiKeysCount: Number("int"), // required
|
|
57
58
|
* // createdAt: "STRING_VALUE", // required
|
|
@@ -554,6 +554,11 @@ export type BotIntegrationType = typeof BotIntegrationType[keyof typeof BotInteg
|
|
|
554
554
|
*/
|
|
555
555
|
export interface Bot {
|
|
556
556
|
name: string;
|
|
557
|
+
/**
|
|
558
|
+
* Category of the bot
|
|
559
|
+
* @public
|
|
560
|
+
*/
|
|
561
|
+
category?: string | undefined;
|
|
557
562
|
/**
|
|
558
563
|
* A link to the bot picture.
|
|
559
564
|
* @public
|
|
@@ -570,11 +575,6 @@ export interface Bot {
|
|
|
570
575
|
*/
|
|
571
576
|
access?: BotAccess | undefined;
|
|
572
577
|
id: string;
|
|
573
|
-
/**
|
|
574
|
-
* Category of the bot
|
|
575
|
-
* @public
|
|
576
|
-
*/
|
|
577
|
-
category?: string | undefined;
|
|
578
578
|
integrationType: BotIntegrationType;
|
|
579
579
|
integrationApiKeysCount: number;
|
|
580
580
|
createdAt: string;
|
|
@@ -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
|
|
@@ -1103,6 +1133,11 @@ export declare class UserNotFoundException extends __BaseException {
|
|
|
1103
1133
|
*/
|
|
1104
1134
|
export interface CreateBotInput {
|
|
1105
1135
|
name: string;
|
|
1136
|
+
/**
|
|
1137
|
+
* Category of the bot
|
|
1138
|
+
* @public
|
|
1139
|
+
*/
|
|
1140
|
+
category?: string | undefined;
|
|
1106
1141
|
/**
|
|
1107
1142
|
* A link to the bot picture.
|
|
1108
1143
|
* @public
|
|
@@ -1607,6 +1642,11 @@ export interface ToggleUnreadEmailNotificationsSubscriptionOutput {
|
|
|
1607
1642
|
*/
|
|
1608
1643
|
export interface UpdateBotInput {
|
|
1609
1644
|
name: string;
|
|
1645
|
+
/**
|
|
1646
|
+
* Category of the bot
|
|
1647
|
+
* @public
|
|
1648
|
+
*/
|
|
1649
|
+
category?: string | undefined;
|
|
1610
1650
|
/**
|
|
1611
1651
|
* A link to the bot picture.
|
|
1612
1652
|
* @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.
|
|
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",
|