@wildix/wim-tools-client 0.0.36 → 0.0.37
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 +0 -2
- package/dist-es/models/models_0.js +0 -2
- package/dist-types/commands/CreateToolCommand.d.ts +0 -8
- package/dist-types/commands/DiscoverToolsCommand.d.ts +0 -4
- package/dist-types/commands/GetToolCommand.d.ts +0 -4
- package/dist-types/commands/ListToolsCommand.d.ts +0 -4
- package/dist-types/commands/UpdateToolCommand.d.ts +0 -8
- package/dist-types/models/models_0.d.ts +3 -32
- package/package.json +1 -1
|
@@ -77,8 +77,6 @@ var ToolEmailHandler;
|
|
|
77
77
|
var ToolMcpAuthorization;
|
|
78
78
|
(function (ToolMcpAuthorization) {
|
|
79
79
|
ToolMcpAuthorization.visit = (value, visitor) => {
|
|
80
|
-
if (value.apiKey !== undefined)
|
|
81
|
-
return visitor.apiKey(value.apiKey);
|
|
82
80
|
if (value.bearer !== undefined)
|
|
83
81
|
return visitor.bearer(value.bearer);
|
|
84
82
|
if (value.customHeaders !== undefined)
|
|
@@ -70,8 +70,6 @@ export var ToolEmailHandler;
|
|
|
70
70
|
export var ToolMcpAuthorization;
|
|
71
71
|
(function (ToolMcpAuthorization) {
|
|
72
72
|
ToolMcpAuthorization.visit = (value, visitor) => {
|
|
73
|
-
if (value.apiKey !== undefined)
|
|
74
|
-
return visitor.apiKey(value.apiKey);
|
|
75
73
|
if (value.bearer !== undefined)
|
|
76
74
|
return visitor.bearer(value.bearer);
|
|
77
75
|
if (value.customHeaders !== undefined)
|
|
@@ -122,10 +122,6 @@ declare const CreateToolCommand_base: {
|
|
|
122
122
|
* mcp: { // ToolMcpHandler
|
|
123
123
|
* serverUrl: "STRING_VALUE", // required
|
|
124
124
|
* authorization: { // ToolMcpAuthorization Union: only one key present
|
|
125
|
-
* apiKey: { // ToolMcpApiKeyAuthorization
|
|
126
|
-
* apiKey: "STRING_VALUE", // required
|
|
127
|
-
* paramName: "STRING_VALUE",
|
|
128
|
-
* },
|
|
129
125
|
* bearer: {
|
|
130
126
|
* token: "STRING_VALUE", // required
|
|
131
127
|
* },
|
|
@@ -235,10 +231,6 @@ declare const CreateToolCommand_base: {
|
|
|
235
231
|
* // mcp: { // ToolMcpHandler
|
|
236
232
|
* // serverUrl: "STRING_VALUE", // required
|
|
237
233
|
* // authorization: { // ToolMcpAuthorization Union: only one key present
|
|
238
|
-
* // apiKey: { // ToolMcpApiKeyAuthorization
|
|
239
|
-
* // apiKey: "STRING_VALUE", // required
|
|
240
|
-
* // paramName: "STRING_VALUE",
|
|
241
|
-
* // },
|
|
242
234
|
* // bearer: {
|
|
243
235
|
* // token: "STRING_VALUE", // required
|
|
244
236
|
* // },
|
|
@@ -38,10 +38,6 @@ declare const DiscoverToolsCommand_base: {
|
|
|
38
38
|
* companyId: "STRING_VALUE",
|
|
39
39
|
* serverUrl: "STRING_VALUE", // required
|
|
40
40
|
* authorization: { // ToolMcpAuthorization Union: only one key present
|
|
41
|
-
* apiKey: { // ToolMcpApiKeyAuthorization
|
|
42
|
-
* apiKey: "STRING_VALUE", // required
|
|
43
|
-
* paramName: "STRING_VALUE",
|
|
44
|
-
* },
|
|
45
41
|
* bearer: { // ToolWebhookAuthBearer
|
|
46
42
|
* token: "STRING_VALUE", // required
|
|
47
43
|
* },
|
|
@@ -130,10 +130,6 @@ declare const GetToolCommand_base: {
|
|
|
130
130
|
* // mcp: { // ToolMcpHandler
|
|
131
131
|
* // serverUrl: "STRING_VALUE", // required
|
|
132
132
|
* // authorization: { // ToolMcpAuthorization Union: only one key present
|
|
133
|
-
* // apiKey: { // ToolMcpApiKeyAuthorization
|
|
134
|
-
* // apiKey: "STRING_VALUE", // required
|
|
135
|
-
* // paramName: "STRING_VALUE",
|
|
136
|
-
* // },
|
|
137
133
|
* // bearer: {
|
|
138
134
|
* // token: "STRING_VALUE", // required
|
|
139
135
|
* // },
|
|
@@ -130,10 +130,6 @@ declare const ListToolsCommand_base: {
|
|
|
130
130
|
* // mcp: { // ToolMcpHandler
|
|
131
131
|
* // serverUrl: "STRING_VALUE", // required
|
|
132
132
|
* // authorization: { // ToolMcpAuthorization Union: only one key present
|
|
133
|
-
* // apiKey: { // ToolMcpApiKeyAuthorization
|
|
134
|
-
* // apiKey: "STRING_VALUE", // required
|
|
135
|
-
* // paramName: "STRING_VALUE",
|
|
136
|
-
* // },
|
|
137
133
|
* // bearer: {
|
|
138
134
|
* // token: "STRING_VALUE", // required
|
|
139
135
|
* // },
|
|
@@ -123,10 +123,6 @@ declare const UpdateToolCommand_base: {
|
|
|
123
123
|
* mcp: { // ToolMcpHandler
|
|
124
124
|
* serverUrl: "STRING_VALUE", // required
|
|
125
125
|
* authorization: { // ToolMcpAuthorization Union: only one key present
|
|
126
|
-
* apiKey: { // ToolMcpApiKeyAuthorization
|
|
127
|
-
* apiKey: "STRING_VALUE", // required
|
|
128
|
-
* paramName: "STRING_VALUE",
|
|
129
|
-
* },
|
|
130
126
|
* bearer: {
|
|
131
127
|
* token: "STRING_VALUE", // required
|
|
132
128
|
* },
|
|
@@ -236,10 +232,6 @@ declare const UpdateToolCommand_base: {
|
|
|
236
232
|
* // mcp: { // ToolMcpHandler
|
|
237
233
|
* // serverUrl: "STRING_VALUE", // required
|
|
238
234
|
* // authorization: { // ToolMcpAuthorization Union: only one key present
|
|
239
|
-
* // apiKey: { // ToolMcpApiKeyAuthorization
|
|
240
|
-
* // apiKey: "STRING_VALUE", // required
|
|
241
|
-
* // paramName: "STRING_VALUE",
|
|
242
|
-
* // },
|
|
243
235
|
* // bearer: {
|
|
244
236
|
* // token: "STRING_VALUE", // required
|
|
245
237
|
* // },
|
|
@@ -257,21 +257,6 @@ export declare namespace ToolEmailHandler {
|
|
|
257
257
|
}
|
|
258
258
|
const visit: <T>(value: ToolEmailHandler, visitor: Visitor<T>) => T;
|
|
259
259
|
}
|
|
260
|
-
/**
|
|
261
|
-
* @public
|
|
262
|
-
*/
|
|
263
|
-
export interface ToolMcpApiKeyAuthorization {
|
|
264
|
-
/**
|
|
265
|
-
* API key value
|
|
266
|
-
* @public
|
|
267
|
-
*/
|
|
268
|
-
apiKey: string;
|
|
269
|
-
/**
|
|
270
|
-
* Optional: parameter name for URL-based API keys. If not provided, uses Authorization: Bearer header
|
|
271
|
-
* @public
|
|
272
|
-
*/
|
|
273
|
-
paramName?: string | undefined;
|
|
274
|
-
}
|
|
275
260
|
/**
|
|
276
261
|
* @public
|
|
277
262
|
*/
|
|
@@ -285,27 +270,16 @@ export interface ToolWebhookAuthBearer {
|
|
|
285
270
|
/**
|
|
286
271
|
* @public
|
|
287
272
|
*/
|
|
288
|
-
export type ToolMcpAuthorization = ToolMcpAuthorization.
|
|
273
|
+
export type ToolMcpAuthorization = ToolMcpAuthorization.BearerMember | ToolMcpAuthorization.CustomHeadersMember | ToolMcpAuthorization.$UnknownMember;
|
|
289
274
|
/**
|
|
290
275
|
* @public
|
|
291
276
|
*/
|
|
292
277
|
export declare namespace ToolMcpAuthorization {
|
|
293
|
-
/**
|
|
294
|
-
* API key-based authorization
|
|
295
|
-
* @public
|
|
296
|
-
*/
|
|
297
|
-
interface ApiKeyMember {
|
|
298
|
-
apiKey: ToolMcpApiKeyAuthorization;
|
|
299
|
-
bearer?: never;
|
|
300
|
-
customHeaders?: never;
|
|
301
|
-
$unknown?: never;
|
|
302
|
-
}
|
|
303
278
|
/**
|
|
304
279
|
* Bearer token authorization (reuses webhook bearer auth structure)
|
|
305
280
|
* @public
|
|
306
281
|
*/
|
|
307
282
|
interface BearerMember {
|
|
308
|
-
apiKey?: never;
|
|
309
283
|
bearer: ToolWebhookAuthBearer;
|
|
310
284
|
customHeaders?: never;
|
|
311
285
|
$unknown?: never;
|
|
@@ -315,7 +289,6 @@ export declare namespace ToolMcpAuthorization {
|
|
|
315
289
|
* @public
|
|
316
290
|
*/
|
|
317
291
|
interface CustomHeadersMember {
|
|
318
|
-
apiKey?: never;
|
|
319
292
|
bearer?: never;
|
|
320
293
|
customHeaders: Record<string, string>;
|
|
321
294
|
$unknown?: never;
|
|
@@ -324,13 +297,11 @@ export declare namespace ToolMcpAuthorization {
|
|
|
324
297
|
* @public
|
|
325
298
|
*/
|
|
326
299
|
interface $UnknownMember {
|
|
327
|
-
apiKey?: never;
|
|
328
300
|
bearer?: never;
|
|
329
301
|
customHeaders?: never;
|
|
330
302
|
$unknown: [string, any];
|
|
331
303
|
}
|
|
332
304
|
interface Visitor<T> {
|
|
333
|
-
apiKey: (value: ToolMcpApiKeyAuthorization) => T;
|
|
334
305
|
bearer: (value: ToolWebhookAuthBearer) => T;
|
|
335
306
|
customHeaders: (value: Record<string, string>) => T;
|
|
336
307
|
_: (name: string, value: any) => T;
|
|
@@ -347,10 +318,10 @@ export interface ToolMcpHandler {
|
|
|
347
318
|
*/
|
|
348
319
|
serverUrl: string;
|
|
349
320
|
/**
|
|
350
|
-
* Authorization configuration (API key, bearer token, or custom headers)
|
|
321
|
+
* Authorization configuration (API key, bearer token, or custom headers). Optional - MCP servers can be configured without authorization.
|
|
351
322
|
* @public
|
|
352
323
|
*/
|
|
353
|
-
authorization
|
|
324
|
+
authorization?: ToolMcpAuthorization | undefined;
|
|
354
325
|
/**
|
|
355
326
|
* List of tools enabled for this MCP server.
|
|
356
327
|
* @public
|
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.37",
|
|
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",
|