@wildix/wim-tools-client 0.0.41 → 0.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.
- package/dist-cjs/models/models_0.js +7 -1
- package/dist-es/models/models_0.js +6 -0
- package/dist-types/commands/CreateToolCommand.d.ts +6 -2
- package/dist-types/commands/GetToolCommand.d.ts +3 -1
- package/dist-types/commands/ListToolsCommand.d.ts +3 -1
- package/dist-types/commands/UpdateToolCommand.d.ts +6 -2
- package/dist-types/models/models_0.d.ts +19 -5
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ToolExecutionServerException = exports.ToolExecutionException = exports.ToolVariableType = exports.ToolHandler = exports.ToolWebhookMethod = exports.ToolWebhookAuth = exports.ToolMcpAuthorization = exports.ToolEmailHandler = exports.ToolChatRecipient = exports.ValidationException = exports.NotFoundException = exports.ForbiddenException = exports.AlreadyExistException = void 0;
|
|
3
|
+
exports.ToolExecutionServerException = exports.ToolExecutionException = exports.ToolVariableType = exports.ToolHandler = exports.ToolWebhookMethod = exports.ToolWebhookAuth = exports.ToolMcpAuthorization = exports.ToolEmailHandler = exports.ToolChatRecipient = exports.ToolCalendarOperation = exports.ValidationException = exports.NotFoundException = exports.ForbiddenException = exports.AlreadyExistException = void 0;
|
|
4
4
|
const ToolsServiceException_1 = require("./ToolsServiceException");
|
|
5
5
|
class AlreadyExistException extends ToolsServiceException_1.ToolsServiceException {
|
|
6
6
|
name = "AlreadyExistException";
|
|
@@ -54,6 +54,12 @@ class ValidationException extends ToolsServiceException_1.ToolsServiceException
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
exports.ValidationException = ValidationException;
|
|
57
|
+
exports.ToolCalendarOperation = {
|
|
58
|
+
CANCEL: "cancel",
|
|
59
|
+
GET_SLOTS: "get_slots",
|
|
60
|
+
RESCHEDULE: "reschedule",
|
|
61
|
+
SCHEDULE: "schedule",
|
|
62
|
+
};
|
|
57
63
|
var ToolChatRecipient;
|
|
58
64
|
(function (ToolChatRecipient) {
|
|
59
65
|
ToolChatRecipient.visit = (value, visitor) => {
|
|
@@ -47,6 +47,12 @@ export class ValidationException extends __BaseException {
|
|
|
47
47
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
+
export const ToolCalendarOperation = {
|
|
51
|
+
CANCEL: "cancel",
|
|
52
|
+
GET_SLOTS: "get_slots",
|
|
53
|
+
RESCHEDULE: "reschedule",
|
|
54
|
+
SCHEDULE: "schedule",
|
|
55
|
+
};
|
|
50
56
|
export var ToolChatRecipient;
|
|
51
57
|
(function (ToolChatRecipient) {
|
|
52
58
|
ToolChatRecipient.visit = (value, visitor) => {
|
|
@@ -120,7 +120,9 @@ declare const CreateToolCommand_base: {
|
|
|
120
120
|
* message: "STRING_VALUE", // required
|
|
121
121
|
* },
|
|
122
122
|
* },
|
|
123
|
-
* calendar: {
|
|
123
|
+
* calendar: { // ToolCalendarConfig
|
|
124
|
+
* operation: "schedule" || "reschedule" || "cancel" || "get_slots", // required
|
|
125
|
+
* },
|
|
124
126
|
* mcp: { // ToolMcpHandler
|
|
125
127
|
* serverUrl: "STRING_VALUE", // required
|
|
126
128
|
* authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -231,7 +233,9 @@ declare const CreateToolCommand_base: {
|
|
|
231
233
|
* // message: "STRING_VALUE", // required
|
|
232
234
|
* // },
|
|
233
235
|
* // },
|
|
234
|
-
* // calendar: {
|
|
236
|
+
* // calendar: { // ToolCalendarConfig
|
|
237
|
+
* // operation: "schedule" || "reschedule" || "cancel" || "get_slots", // required
|
|
238
|
+
* // },
|
|
235
239
|
* // mcp: { // ToolMcpHandler
|
|
236
240
|
* // serverUrl: "STRING_VALUE", // required
|
|
237
241
|
* // authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -128,7 +128,9 @@ declare const GetToolCommand_base: {
|
|
|
128
128
|
* // message: "STRING_VALUE", // required
|
|
129
129
|
* // },
|
|
130
130
|
* // },
|
|
131
|
-
* // calendar: {
|
|
131
|
+
* // calendar: { // ToolCalendarConfig
|
|
132
|
+
* // operation: "schedule" || "reschedule" || "cancel" || "get_slots", // required
|
|
133
|
+
* // },
|
|
132
134
|
* // mcp: { // ToolMcpHandler
|
|
133
135
|
* // serverUrl: "STRING_VALUE", // required
|
|
134
136
|
* // authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -128,7 +128,9 @@ declare const ListToolsCommand_base: {
|
|
|
128
128
|
* // message: "STRING_VALUE", // required
|
|
129
129
|
* // },
|
|
130
130
|
* // },
|
|
131
|
-
* // calendar: {
|
|
131
|
+
* // calendar: { // ToolCalendarConfig
|
|
132
|
+
* // operation: "schedule" || "reschedule" || "cancel" || "get_slots", // required
|
|
133
|
+
* // },
|
|
132
134
|
* // mcp: { // ToolMcpHandler
|
|
133
135
|
* // serverUrl: "STRING_VALUE", // required
|
|
134
136
|
* // authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -121,7 +121,9 @@ declare const UpdateToolCommand_base: {
|
|
|
121
121
|
* message: "STRING_VALUE", // required
|
|
122
122
|
* },
|
|
123
123
|
* },
|
|
124
|
-
* calendar: {
|
|
124
|
+
* calendar: { // ToolCalendarConfig
|
|
125
|
+
* operation: "schedule" || "reschedule" || "cancel" || "get_slots", // required
|
|
126
|
+
* },
|
|
125
127
|
* mcp: { // ToolMcpHandler
|
|
126
128
|
* serverUrl: "STRING_VALUE", // required
|
|
127
129
|
* authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -232,7 +234,9 @@ declare const UpdateToolCommand_base: {
|
|
|
232
234
|
* // message: "STRING_VALUE", // required
|
|
233
235
|
* // },
|
|
234
236
|
* // },
|
|
235
|
-
* // calendar: {
|
|
237
|
+
* // calendar: { // ToolCalendarConfig
|
|
238
|
+
* // operation: "schedule" || "reschedule" || "cancel" || "get_slots", // required
|
|
239
|
+
* // },
|
|
236
240
|
* // mcp: { // ToolMcpHandler
|
|
237
241
|
* // serverUrl: "STRING_VALUE", // required
|
|
238
242
|
* // authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -46,10 +46,28 @@ export declare class ValidationException extends __BaseException {
|
|
|
46
46
|
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* @public
|
|
50
|
+
* @enum
|
|
51
|
+
*/
|
|
52
|
+
export declare const ToolCalendarOperation: {
|
|
53
|
+
readonly CANCEL: "cancel";
|
|
54
|
+
readonly GET_SLOTS: "get_slots";
|
|
55
|
+
readonly RESCHEDULE: "reschedule";
|
|
56
|
+
readonly SCHEDULE: "schedule";
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
export type ToolCalendarOperation = typeof ToolCalendarOperation[keyof typeof ToolCalendarOperation];
|
|
62
|
+
/**
|
|
50
63
|
* @public
|
|
51
64
|
*/
|
|
52
65
|
export interface ToolCalendarConfig {
|
|
66
|
+
/**
|
|
67
|
+
* Type of calendar operation to perform
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
operation: ToolCalendarOperation;
|
|
53
71
|
}
|
|
54
72
|
/**
|
|
55
73
|
* @public
|
|
@@ -612,10 +630,6 @@ export declare namespace ToolHandler {
|
|
|
612
630
|
mcpTool?: never;
|
|
613
631
|
$unknown?: never;
|
|
614
632
|
}
|
|
615
|
-
/**
|
|
616
|
-
* Calendar handler configuration. All parameters come from tool input variables.
|
|
617
|
-
* @public
|
|
618
|
-
*/
|
|
619
633
|
interface CalendarMember {
|
|
620
634
|
email?: never;
|
|
621
635
|
webhook?: never;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-tools-client",
|
|
3
3
|
"description": "@wildix/wim-tools-client client",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.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",
|