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/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";
@@ -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, baseUrl, fetchImpl }: FetcherOptions<TBody, THeaders, TQueryParams, TPathParams>): Promise<TData>;
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;
@@ -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, baseUrl, fetchImpl }: FetcherOptions<TBody, THeaders, TQueryParams, TPathParams>): Promise<TData>;
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;
@@ -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
- async function client({ url, method, body, headers, queryParams, signal, token = null, baseUrl = '', fetchImpl = fetch }) {
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',
@@ -1,5 +1,6 @@
1
1
  import { compactObject } from "./lang.mjs";
2
- export async function client({ url, method, body, headers, queryParams, signal, token = null, baseUrl = '', fetchImpl = fetch }) {
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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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.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": "./src/index.ts",
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.15.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": "^4.0.5"
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": {