vercel-api-js 1.0.0 → 1.0.1
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/client.d.mts +182 -182
- package/dist/client.d.ts +182 -182
- package/dist/generated/components.d.mts +664 -664
- package/dist/generated/components.d.ts +664 -664
- package/dist/generated/components.js +1071 -801
- package/dist/generated/components.mjs +1071 -801
- package/dist/generated/mcp.d.mts +2061 -0
- package/dist/generated/mcp.d.ts +2061 -0
- package/dist/generated/mcp.js +4692 -0
- package/dist/generated/mcp.mjs +4508 -0
- package/dist/generated/schemas.d.mts +14785 -1918
- package/dist/generated/schemas.d.ts +14785 -1918
- package/dist/generated/schemas.js +1501 -989
- package/dist/generated/schemas.mjs +1501 -989
- package/dist/generated/types.d.mts +11 -2
- package/dist/generated/types.d.ts +11 -2
- package/dist/generated/types.js +133 -132
- package/dist/generated/types.mjs +133 -132
- package/dist/index.d.mts +484 -484
- package/dist/index.d.ts +484 -484
- package/dist/mcp.d.mts +1 -0
- package/dist/mcp.d.ts +1 -0
- package/dist/mcp.js +5 -0
- package/dist/mcp.mjs +1 -0
- package/dist/utils/fetcher.d.mts +2 -3
- package/dist/utils/fetcher.d.ts +2 -3
- package/dist/utils/fetcher.js +2 -1
- package/dist/utils/fetcher.mjs +2 -1
- package/dist/utils/mcp.d.mts +1 -0
- package/dist/utils/mcp.d.ts +1 -0
- package/dist/utils/mcp.js +2 -0
- package/dist/utils/mcp.mjs +1 -0
- package/package.json +14 -4
package/dist/mcp.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { initMcpTools } from "./generated/mcp.mjs";
|
package/dist/mcp.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { initMcpTools } from "./generated/mcp.js";
|
package/dist/mcp.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initMcpTools = void 0;
|
|
4
|
+
var mcp_1 = require("./generated/mcp.js");
|
|
5
|
+
Object.defineProperty(exports, "initMcpTools", { enumerable: true, get: function () { return mcp_1.initMcpTools; } });
|
package/dist/mcp.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { initMcpTools } from "./generated/mcp.mjs";
|
package/dist/utils/fetcher.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FetchImpl } from "./fetch.mjs";
|
|
1
|
+
import type { FetchImpl } from "./fetch.mjs";
|
|
2
2
|
export type FetcherConfig = {
|
|
3
|
-
baseUrl?: string;
|
|
4
3
|
token?: string | null;
|
|
5
4
|
fetchImpl?: FetchImpl;
|
|
6
5
|
headers?: Record<string, any>;
|
|
@@ -18,5 +17,5 @@ export type FetcherOptions<TBody, THeaders, TQueryParams, TPathParams> = {
|
|
|
18
17
|
pathParams?: TPathParams | undefined;
|
|
19
18
|
signal?: AbortSignal | undefined;
|
|
20
19
|
} & FetcherConfig;
|
|
21
|
-
export declare function client<TData, TError, TBody, THeaders, TQueryParams, TPathParams>({ url, method, body, headers, queryParams, signal, token,
|
|
20
|
+
export declare function client<TData, TError, TBody, THeaders, TQueryParams, TPathParams>({ url, method, body, headers, queryParams, signal, token, fetchImpl }: FetcherOptions<TBody, THeaders, TQueryParams, TPathParams>): Promise<TData>;
|
|
22
21
|
export default client;
|
package/dist/utils/fetcher.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FetchImpl } from "./fetch.js";
|
|
1
|
+
import type { FetchImpl } from "./fetch.js";
|
|
2
2
|
export type FetcherConfig = {
|
|
3
|
-
baseUrl?: string;
|
|
4
3
|
token?: string | null;
|
|
5
4
|
fetchImpl?: FetchImpl;
|
|
6
5
|
headers?: Record<string, any>;
|
|
@@ -18,5 +17,5 @@ export type FetcherOptions<TBody, THeaders, TQueryParams, TPathParams> = {
|
|
|
18
17
|
pathParams?: TPathParams | undefined;
|
|
19
18
|
signal?: AbortSignal | undefined;
|
|
20
19
|
} & FetcherConfig;
|
|
21
|
-
export declare function client<TData, TError, TBody, THeaders, TQueryParams, TPathParams>({ url, method, body, headers, queryParams, signal, token,
|
|
20
|
+
export declare function client<TData, TError, TBody, THeaders, TQueryParams, TPathParams>({ url, method, body, headers, queryParams, signal, token, fetchImpl }: FetcherOptions<TBody, THeaders, TQueryParams, TPathParams>): Promise<TData>;
|
|
22
21
|
export default client;
|
package/dist/utils/fetcher.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.client = client;
|
|
4
4
|
const lang_1 = require("./lang.js");
|
|
5
|
-
|
|
5
|
+
const baseUrl = 'https://api.vercel.com';
|
|
6
|
+
async function client({ url, method, body, headers, queryParams, signal, token = null, fetchImpl = fetch }) {
|
|
6
7
|
try {
|
|
7
8
|
const requestHeaders = (0, lang_1.compactObject)({
|
|
8
9
|
'Content-Type': 'application/json',
|
package/dist/utils/fetcher.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { compactObject } from "./lang.mjs";
|
|
2
|
-
|
|
2
|
+
const baseUrl = 'https://api.vercel.com';
|
|
3
|
+
export async function client({ url, method, body, headers, queryParams, signal, token = null, fetchImpl = fetch }) {
|
|
3
4
|
try {
|
|
4
5
|
const requestHeaders = compactObject({
|
|
5
6
|
'Content-Type': 'application/json',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vercel-api-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Vercel auto-generated type-safe API client",
|
|
5
5
|
"author": "SferaDev",
|
|
6
6
|
"license": "ISC",
|
|
@@ -8,7 +8,12 @@
|
|
|
8
8
|
"url": "https://github.com/SferaDev/openapi-clients/issues"
|
|
9
9
|
},
|
|
10
10
|
"homepage": "https://github.com/SferaDev/openapi-clients#readme",
|
|
11
|
-
"zshy":
|
|
11
|
+
"zshy": {
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./src/index.ts",
|
|
14
|
+
"./mcp": "./src/mcp.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
12
17
|
"repository": {
|
|
13
18
|
"type": "git",
|
|
14
19
|
"url": "git+https://github.com/SferaDev/openapi-clients.git"
|
|
@@ -16,14 +21,14 @@
|
|
|
16
21
|
"devDependencies": {
|
|
17
22
|
"@kubb/cli": "^3.16.0",
|
|
18
23
|
"@kubb/core": "^3.16.0",
|
|
19
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
24
|
+
"@modelcontextprotocol/sdk": "^1.16.0",
|
|
20
25
|
"openapi-utils": "0.0.1"
|
|
21
26
|
},
|
|
22
27
|
"peerDependencies": {
|
|
23
28
|
"@modelcontextprotocol/sdk": "^1.15.1"
|
|
24
29
|
},
|
|
25
30
|
"dependencies": {
|
|
26
|
-
"zod": "
|
|
31
|
+
"zod": "=3.25.76"
|
|
27
32
|
},
|
|
28
33
|
"files": [
|
|
29
34
|
"dist"
|
|
@@ -36,6 +41,11 @@
|
|
|
36
41
|
"types": "./dist/index.d.ts",
|
|
37
42
|
"import": "./dist/index.mjs",
|
|
38
43
|
"require": "./dist/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./mcp": {
|
|
46
|
+
"types": "./dist/mcp.d.ts",
|
|
47
|
+
"import": "./dist/mcp.mjs",
|
|
48
|
+
"require": "./dist/mcp.js"
|
|
39
49
|
}
|
|
40
50
|
},
|
|
41
51
|
"scripts": {
|