v0-api 0.0.2 → 0.0.4
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/index.cjs +548 -0
- package/dist/index.d.cts +4394 -0
- package/dist/index.d.mts +4295 -129
- package/dist/index.d.ts +4295 -129
- package/dist/index.mjs +541 -5
- package/dist/mcp.cjs +519 -0
- package/dist/mcp.d.cts +5 -0
- package/dist/mcp.d.mts +5 -0
- package/dist/mcp.d.ts +5 -0
- package/dist/mcp.mjs +517 -0
- package/dist/shared/v0-api.B8nEbJhM.d.cts +36 -0
- package/dist/shared/v0-api.B8nEbJhM.d.mts +36 -0
- package/dist/shared/v0-api.B8nEbJhM.d.ts +36 -0
- package/dist/shared/v0-api.D3CFh7k4.cjs +833 -0
- package/dist/shared/v0-api.mzMaOyDB.mjs +814 -0
- package/package.json +31 -12
- package/dist/client.d.mts +0 -57
- package/dist/client.d.ts +0 -57
- package/dist/client.js +0 -53
- package/dist/client.mjs +0 -46
- package/dist/generated/components.d.mts +0 -341
- package/dist/generated/components.d.ts +0 -341
- package/dist/generated/components.js +0 -391
- package/dist/generated/components.mjs +0 -362
- package/dist/generated/schemas.d.mts +0 -1115
- package/dist/generated/schemas.d.ts +0 -1115
- package/dist/generated/schemas.js +0 -1096
- package/dist/generated/schemas.mjs +0 -1088
- package/dist/generated/types.d.mts +0 -1628
- package/dist/generated/types.d.ts +0 -1628
- package/dist/generated/types.js +0 -93
- package/dist/generated/types.mjs +0 -90
- package/dist/index.js +0 -49
- package/dist/utils/fetch.d.mts +0 -18
- package/dist/utils/fetch.d.ts +0 -18
- package/dist/utils/fetch.js +0 -8
- package/dist/utils/fetch.mjs +0 -5
- package/dist/utils/fetcher.d.mts +0 -22
- package/dist/utils/fetcher.d.ts +0 -22
- package/dist/utils/fetcher.js +0 -68
- package/dist/utils/fetcher.mjs +0 -65
- package/dist/utils/lang.d.mts +0 -1
- package/dist/utils/lang.d.ts +0 -1
- package/dist/utils/lang.js +0 -9
- package/dist/utils/lang.mjs +0 -6
- package/dist/utils/types.d.mts +0 -3
- package/dist/utils/types.d.ts +0 -3
- package/dist/utils/types.js +0 -2
- package/dist/utils/types.mjs +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "v0-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Vercel v0 auto-generated type-safe API client",
|
|
5
5
|
"author": "SferaDev",
|
|
6
6
|
"license": "ISC",
|
|
@@ -8,7 +8,6 @@
|
|
|
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",
|
|
12
11
|
"repository": {
|
|
13
12
|
"type": "git",
|
|
14
13
|
"url": "git+https://github.com/SferaDev/openapi-clients.git"
|
|
@@ -16,31 +15,51 @@
|
|
|
16
15
|
"devDependencies": {
|
|
17
16
|
"@kubb/cli": "^3.16.0",
|
|
18
17
|
"@kubb/core": "^3.16.0",
|
|
19
|
-
"@
|
|
18
|
+
"@kubb/plugin-zod": "^3.16.0",
|
|
19
|
+
"@kubb/react": "^3.16.0",
|
|
20
|
+
"@modelcontextprotocol/sdk": "^1.16.0",
|
|
20
21
|
"openapi-utils": "0.0.1"
|
|
21
22
|
},
|
|
22
23
|
"peerDependencies": {
|
|
23
24
|
"@modelcontextprotocol/sdk": "^1.15.1"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
|
-
"zod": "
|
|
27
|
+
"zod": "=3.25.76"
|
|
27
28
|
},
|
|
28
29
|
"files": [
|
|
29
30
|
"dist"
|
|
30
31
|
],
|
|
31
|
-
"main": "
|
|
32
|
-
"module": "
|
|
33
|
-
"
|
|
32
|
+
"main": "dist/index.cjs",
|
|
33
|
+
"module": "dist/index.mjs",
|
|
34
|
+
"typings": "dist/index.d.ts",
|
|
34
35
|
"exports": {
|
|
36
|
+
"./package.json": "./package.json",
|
|
35
37
|
".": {
|
|
36
|
-
"
|
|
37
|
-
"import":
|
|
38
|
-
|
|
38
|
+
"development": "./src/index.ts",
|
|
39
|
+
"import": {
|
|
40
|
+
"types": "./dist/index.d.mts",
|
|
41
|
+
"default": "./dist/index.mjs"
|
|
42
|
+
},
|
|
43
|
+
"require": {
|
|
44
|
+
"types": "./dist/index.d.cts",
|
|
45
|
+
"default": "./dist/index.cjs"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"./mcp": {
|
|
49
|
+
"development": "./src/mcp.ts",
|
|
50
|
+
"import": {
|
|
51
|
+
"types": "./dist/mcp.d.mts",
|
|
52
|
+
"default": "./dist/mcp.mjs"
|
|
53
|
+
},
|
|
54
|
+
"require": {
|
|
55
|
+
"types": "./dist/mcp.d.cts",
|
|
56
|
+
"default": "./dist/mcp.cjs"
|
|
57
|
+
}
|
|
39
58
|
}
|
|
40
59
|
},
|
|
41
60
|
"scripts": {
|
|
42
|
-
"tsc": "
|
|
43
|
-
"build": "
|
|
61
|
+
"tsc": "tsgo --noEmit",
|
|
62
|
+
"build": "unbuild",
|
|
44
63
|
"generate": "rimraf ./src/generated && kubb generate"
|
|
45
64
|
}
|
|
46
65
|
}
|
package/dist/client.d.mts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { operationsByPath, operationsByTag, tagDictionary } from "./generated/components.mjs";
|
|
2
|
-
import { FetchImpl } from "./utils/fetch.mjs";
|
|
3
|
-
import { FetcherConfig } from "./utils/fetcher.mjs";
|
|
4
|
-
import { RequiredKeys } from "./utils/types.mjs";
|
|
5
|
-
export interface VercelApiOptions {
|
|
6
|
-
token: string | null;
|
|
7
|
-
fetch?: FetchImpl;
|
|
8
|
-
}
|
|
9
|
-
export type ApiClient = {
|
|
10
|
-
[Tag in keyof typeof operationsByTag]: {
|
|
11
|
-
[Method in keyof (typeof operationsByTag)[Tag]]: (typeof operationsByTag)[Tag][Method] extends infer Operation extends (...args: any) => any ? Omit<Parameters<Operation>[0], keyof FetcherConfig> extends infer Params ? RequiredKeys<Params> extends never ? (params?: Params) => ReturnType<Operation> : (params: Params) => ReturnType<Operation> : never : never;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
15
|
-
export type ApiOperation = {
|
|
16
|
-
[Tag in keyof typeof operationsByTag]: keyof (typeof operationsByTag)[Tag] extends string ? `${Tag}.${keyof (typeof operationsByTag)[Tag]}` : never;
|
|
17
|
-
}[keyof typeof operationsByTag];
|
|
18
|
-
export type ApiOperationByMethod<Method extends HttpMethod> = {
|
|
19
|
-
[Tag in keyof typeof tagDictionary]: {
|
|
20
|
-
[TagMethod in keyof (typeof tagDictionary)[Tag]]: TagMethod extends Method ? (typeof tagDictionary)[Tag][TagMethod] extends readonly any[] ? `${Tag}.${(typeof tagDictionary)[Tag][TagMethod][number]}` : never : never;
|
|
21
|
-
}[keyof (typeof tagDictionary)[Tag]];
|
|
22
|
-
}[keyof typeof tagDictionary];
|
|
23
|
-
export type ApiOperationParams<T extends ApiOperation> = T extends `${infer Tag}.${infer Operation}` ? Tag extends keyof typeof operationsByTag ? Operation extends keyof (typeof operationsByTag)[Tag] ? (typeof operationsByTag)[Tag][Operation] extends infer Operation extends (...args: any) => any ? Omit<Parameters<Operation>[0], keyof FetcherConfig> : never : never : never : never;
|
|
24
|
-
export type ApiOperationResult<T extends ApiOperation> = T extends `${infer Tag}.${infer Operation}` ? Tag extends keyof typeof operationsByTag ? Operation extends keyof (typeof operationsByTag)[Tag] ? (typeof operationsByTag)[Tag][Operation] extends (...args: any) => any ? Awaited<ReturnType<(typeof operationsByTag)[Tag][Operation]>> : never : never : never : never;
|
|
25
|
-
type RequestEndpointParams<T extends keyof typeof operationsByPath> = Omit<Parameters<(typeof operationsByPath)[T]>[0], keyof FetcherConfig>;
|
|
26
|
-
export declare class XataApi {
|
|
27
|
-
token: string | null;
|
|
28
|
-
fetch: FetchImpl;
|
|
29
|
-
constructor(options: VercelApiOptions);
|
|
30
|
-
get api(): ApiClient;
|
|
31
|
-
request<Endpoint extends keyof typeof operationsByPath>(endpoint: Endpoint, params: RequestEndpointParams<Endpoint>): Promise<ReturnType<{
|
|
32
|
-
'POST chats': typeof import("./generated/components").chatsCreate;
|
|
33
|
-
'GET chats': typeof import("./generated/components").chatsFind;
|
|
34
|
-
'DELETE chatsChatId': typeof import("./generated/components").chatsDelete;
|
|
35
|
-
'GET chatsChatId': typeof import("./generated/components").chatsGetById;
|
|
36
|
-
'PATCH chatsChatId': typeof import("./generated/components").chatsUpdate;
|
|
37
|
-
'PUT chatsChatIdFavorite': typeof import("./generated/components").chatsFavorite;
|
|
38
|
-
'POST chatsChatIdFork': typeof import("./generated/components").chatsFork;
|
|
39
|
-
'GET chatsChatIdProject': typeof import("./generated/components").projectsGetByChatId;
|
|
40
|
-
'POST chatsChatIdMessages': typeof import("./generated/components").chatsSendMessage;
|
|
41
|
-
'GET chatsChatIdMetadata': typeof import("./generated/components").chatsGetMetadata;
|
|
42
|
-
'POST chatsChatIdMessagesMessageIdResume': typeof import("./generated/components").chatsResume;
|
|
43
|
-
'GET deploymentsDeploymentIdLogs': typeof import("./generated/components").deploymentsFindLogs;
|
|
44
|
-
'GET deploymentsDeploymentIdErrors': typeof import("./generated/components").deploymentsFindErrors;
|
|
45
|
-
'GET integrationsVercelProjects': typeof import("./generated/components").integrationsVercelProjectsFind;
|
|
46
|
-
'POST integrationsVercelProjects': typeof import("./generated/components").integrationsVercelProjectsCreate;
|
|
47
|
-
'GET projects': typeof import("./generated/components").projectsFind;
|
|
48
|
-
'POST projects': typeof import("./generated/components").projectsCreate;
|
|
49
|
-
'POST projectsProjectIdAssign': typeof import("./generated/components").projectsAssign;
|
|
50
|
-
'GET rateLimits': typeof import("./generated/components").rateLimitsFind;
|
|
51
|
-
'GET user': typeof import("./generated/components").userGet;
|
|
52
|
-
'GET userBilling': typeof import("./generated/components").userGetBilling;
|
|
53
|
-
'GET userPlan': typeof import("./generated/components").userGetPlan;
|
|
54
|
-
'GET userScopes': typeof import("./generated/components").userGetScopes;
|
|
55
|
-
}[Endpoint]>>;
|
|
56
|
-
}
|
|
57
|
-
export {};
|
package/dist/client.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { operationsByPath, operationsByTag, tagDictionary } from "./generated/components.js";
|
|
2
|
-
import { FetchImpl } from "./utils/fetch.js";
|
|
3
|
-
import { FetcherConfig } from "./utils/fetcher.js";
|
|
4
|
-
import { RequiredKeys } from "./utils/types.js";
|
|
5
|
-
export interface VercelApiOptions {
|
|
6
|
-
token: string | null;
|
|
7
|
-
fetch?: FetchImpl;
|
|
8
|
-
}
|
|
9
|
-
export type ApiClient = {
|
|
10
|
-
[Tag in keyof typeof operationsByTag]: {
|
|
11
|
-
[Method in keyof (typeof operationsByTag)[Tag]]: (typeof operationsByTag)[Tag][Method] extends infer Operation extends (...args: any) => any ? Omit<Parameters<Operation>[0], keyof FetcherConfig> extends infer Params ? RequiredKeys<Params> extends never ? (params?: Params) => ReturnType<Operation> : (params: Params) => ReturnType<Operation> : never : never;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
15
|
-
export type ApiOperation = {
|
|
16
|
-
[Tag in keyof typeof operationsByTag]: keyof (typeof operationsByTag)[Tag] extends string ? `${Tag}.${keyof (typeof operationsByTag)[Tag]}` : never;
|
|
17
|
-
}[keyof typeof operationsByTag];
|
|
18
|
-
export type ApiOperationByMethod<Method extends HttpMethod> = {
|
|
19
|
-
[Tag in keyof typeof tagDictionary]: {
|
|
20
|
-
[TagMethod in keyof (typeof tagDictionary)[Tag]]: TagMethod extends Method ? (typeof tagDictionary)[Tag][TagMethod] extends readonly any[] ? `${Tag}.${(typeof tagDictionary)[Tag][TagMethod][number]}` : never : never;
|
|
21
|
-
}[keyof (typeof tagDictionary)[Tag]];
|
|
22
|
-
}[keyof typeof tagDictionary];
|
|
23
|
-
export type ApiOperationParams<T extends ApiOperation> = T extends `${infer Tag}.${infer Operation}` ? Tag extends keyof typeof operationsByTag ? Operation extends keyof (typeof operationsByTag)[Tag] ? (typeof operationsByTag)[Tag][Operation] extends infer Operation extends (...args: any) => any ? Omit<Parameters<Operation>[0], keyof FetcherConfig> : never : never : never : never;
|
|
24
|
-
export type ApiOperationResult<T extends ApiOperation> = T extends `${infer Tag}.${infer Operation}` ? Tag extends keyof typeof operationsByTag ? Operation extends keyof (typeof operationsByTag)[Tag] ? (typeof operationsByTag)[Tag][Operation] extends (...args: any) => any ? Awaited<ReturnType<(typeof operationsByTag)[Tag][Operation]>> : never : never : never : never;
|
|
25
|
-
type RequestEndpointParams<T extends keyof typeof operationsByPath> = Omit<Parameters<(typeof operationsByPath)[T]>[0], keyof FetcherConfig>;
|
|
26
|
-
export declare class XataApi {
|
|
27
|
-
token: string | null;
|
|
28
|
-
fetch: FetchImpl;
|
|
29
|
-
constructor(options: VercelApiOptions);
|
|
30
|
-
get api(): ApiClient;
|
|
31
|
-
request<Endpoint extends keyof typeof operationsByPath>(endpoint: Endpoint, params: RequestEndpointParams<Endpoint>): Promise<ReturnType<{
|
|
32
|
-
'POST chats': typeof import("./generated/components").chatsCreate;
|
|
33
|
-
'GET chats': typeof import("./generated/components").chatsFind;
|
|
34
|
-
'DELETE chatsChatId': typeof import("./generated/components").chatsDelete;
|
|
35
|
-
'GET chatsChatId': typeof import("./generated/components").chatsGetById;
|
|
36
|
-
'PATCH chatsChatId': typeof import("./generated/components").chatsUpdate;
|
|
37
|
-
'PUT chatsChatIdFavorite': typeof import("./generated/components").chatsFavorite;
|
|
38
|
-
'POST chatsChatIdFork': typeof import("./generated/components").chatsFork;
|
|
39
|
-
'GET chatsChatIdProject': typeof import("./generated/components").projectsGetByChatId;
|
|
40
|
-
'POST chatsChatIdMessages': typeof import("./generated/components").chatsSendMessage;
|
|
41
|
-
'GET chatsChatIdMetadata': typeof import("./generated/components").chatsGetMetadata;
|
|
42
|
-
'POST chatsChatIdMessagesMessageIdResume': typeof import("./generated/components").chatsResume;
|
|
43
|
-
'GET deploymentsDeploymentIdLogs': typeof import("./generated/components").deploymentsFindLogs;
|
|
44
|
-
'GET deploymentsDeploymentIdErrors': typeof import("./generated/components").deploymentsFindErrors;
|
|
45
|
-
'GET integrationsVercelProjects': typeof import("./generated/components").integrationsVercelProjectsFind;
|
|
46
|
-
'POST integrationsVercelProjects': typeof import("./generated/components").integrationsVercelProjectsCreate;
|
|
47
|
-
'GET projects': typeof import("./generated/components").projectsFind;
|
|
48
|
-
'POST projects': typeof import("./generated/components").projectsCreate;
|
|
49
|
-
'POST projectsProjectIdAssign': typeof import("./generated/components").projectsAssign;
|
|
50
|
-
'GET rateLimits': typeof import("./generated/components").rateLimitsFind;
|
|
51
|
-
'GET user': typeof import("./generated/components").userGet;
|
|
52
|
-
'GET userBilling': typeof import("./generated/components").userGetBilling;
|
|
53
|
-
'GET userPlan': typeof import("./generated/components").userGetPlan;
|
|
54
|
-
'GET userScopes': typeof import("./generated/components").userGetScopes;
|
|
55
|
-
}[Endpoint]>>;
|
|
56
|
-
}
|
|
57
|
-
export {};
|
package/dist/client.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.XataApi = void 0;
|
|
7
|
-
const components_1 = require("./generated/components.js");
|
|
8
|
-
const fetcher_1 = __importDefault(require("./utils/fetcher.js"));
|
|
9
|
-
class XataApi {
|
|
10
|
-
constructor(options) {
|
|
11
|
-
this.token = options.token;
|
|
12
|
-
this.fetch = options.fetch || fetch;
|
|
13
|
-
if (!this.fetch)
|
|
14
|
-
throw new Error('Fetch is required');
|
|
15
|
-
}
|
|
16
|
-
get api() {
|
|
17
|
-
const getConfig = async () => ({
|
|
18
|
-
token: this.token,
|
|
19
|
-
fetchImpl: this.fetch
|
|
20
|
-
});
|
|
21
|
-
return new Proxy({}, {
|
|
22
|
-
get: (_target, namespace) => {
|
|
23
|
-
if (components_1.operationsByTag[namespace] === undefined) {
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
return new Proxy({}, {
|
|
27
|
-
get: (_target, operation) => {
|
|
28
|
-
if (components_1.operationsByTag[namespace][operation] === undefined) {
|
|
29
|
-
return undefined;
|
|
30
|
-
}
|
|
31
|
-
const method = components_1.operationsByTag[namespace][operation];
|
|
32
|
-
return async (params) => {
|
|
33
|
-
return await method({ ...params, config: await getConfig() });
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
async request(endpoint, params) {
|
|
41
|
-
const [method = '', url = ''] = endpoint.split(' ');
|
|
42
|
-
const extraParams = (params || {});
|
|
43
|
-
const result = await (0, fetcher_1.default)({
|
|
44
|
-
...extraParams,
|
|
45
|
-
method,
|
|
46
|
-
url,
|
|
47
|
-
token: this.token,
|
|
48
|
-
fetchImpl: this.fetch
|
|
49
|
-
});
|
|
50
|
-
return result;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.XataApi = XataApi;
|
package/dist/client.mjs
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { operationsByTag } from "./generated/components.mjs";
|
|
2
|
-
import fetchFn from "./utils/fetcher.mjs";
|
|
3
|
-
export class XataApi {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
this.token = options.token;
|
|
6
|
-
this.fetch = options.fetch || fetch;
|
|
7
|
-
if (!this.fetch)
|
|
8
|
-
throw new Error('Fetch is required');
|
|
9
|
-
}
|
|
10
|
-
get api() {
|
|
11
|
-
const getConfig = async () => ({
|
|
12
|
-
token: this.token,
|
|
13
|
-
fetchImpl: this.fetch
|
|
14
|
-
});
|
|
15
|
-
return new Proxy({}, {
|
|
16
|
-
get: (_target, namespace) => {
|
|
17
|
-
if (operationsByTag[namespace] === undefined) {
|
|
18
|
-
return undefined;
|
|
19
|
-
}
|
|
20
|
-
return new Proxy({}, {
|
|
21
|
-
get: (_target, operation) => {
|
|
22
|
-
if (operationsByTag[namespace][operation] === undefined) {
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
25
|
-
const method = operationsByTag[namespace][operation];
|
|
26
|
-
return async (params) => {
|
|
27
|
-
return await method({ ...params, config: await getConfig() });
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
async request(endpoint, params) {
|
|
35
|
-
const [method = '', url = ''] = endpoint.split(' ');
|
|
36
|
-
const extraParams = (params || {});
|
|
37
|
-
const result = await fetchFn({
|
|
38
|
-
...extraParams,
|
|
39
|
-
method,
|
|
40
|
-
url,
|
|
41
|
-
token: this.token,
|
|
42
|
-
fetchImpl: this.fetch
|
|
43
|
-
});
|
|
44
|
-
return result;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
import client from "../utils/fetcher.mjs";
|
|
6
|
-
import type { FetcherConfig } from "../utils/fetcher.mjs";
|
|
7
|
-
import type { ChatsFindQueryParams, ChatsDeletePathParams, ChatsGetByIdPathParams, ChatsUpdatePathParams, ChatsFavoritePathParams, ChatsForkPathParams, ProjectsGetByChatIdPathParams, ChatsSendMessagePathParams, ChatsGetMetadataPathParams, ChatsResumePathParams, DeploymentsFindLogsPathParams, DeploymentsFindLogsQueryParams, DeploymentsFindErrorsPathParams, ProjectsAssignPathParams, RateLimitsFindQueryParams, UserGetBillingQueryParams } from "./types.mjs";
|
|
8
|
-
/**
|
|
9
|
-
* @description Create a new chat
|
|
10
|
-
* @summary Create Chat
|
|
11
|
-
* {@link chats}
|
|
12
|
-
*/
|
|
13
|
-
export declare function chatsCreate({ config }: {
|
|
14
|
-
config?: Partial<FetcherConfig> & {
|
|
15
|
-
client?: typeof client;
|
|
16
|
-
};
|
|
17
|
-
}): Promise<unknown>;
|
|
18
|
-
/**
|
|
19
|
-
* @description Find all chats
|
|
20
|
-
* @summary Find Chats
|
|
21
|
-
* {@link chats}
|
|
22
|
-
*/
|
|
23
|
-
export declare function chatsFind({ queryParams, config, }: {
|
|
24
|
-
queryParams?: ChatsFindQueryParams;
|
|
25
|
-
config?: Partial<FetcherConfig> & {
|
|
26
|
-
client?: typeof client;
|
|
27
|
-
};
|
|
28
|
-
}): Promise<unknown>;
|
|
29
|
-
/**
|
|
30
|
-
* @description Delete a chat
|
|
31
|
-
* @summary Delete Chat
|
|
32
|
-
* {@link chatsChatId}
|
|
33
|
-
*/
|
|
34
|
-
export declare function chatsDelete({ pathParams: { chatId }, config, }: {
|
|
35
|
-
pathParams: ChatsDeletePathParams;
|
|
36
|
-
config?: Partial<FetcherConfig> & {
|
|
37
|
-
client?: typeof client;
|
|
38
|
-
};
|
|
39
|
-
}): Promise<unknown>;
|
|
40
|
-
/**
|
|
41
|
-
* @description Get a chat
|
|
42
|
-
* @summary Get Chat
|
|
43
|
-
* {@link chatsChatId}
|
|
44
|
-
*/
|
|
45
|
-
export declare function chatsGetById({ pathParams: { chatId }, config, }: {
|
|
46
|
-
pathParams: ChatsGetByIdPathParams;
|
|
47
|
-
config?: Partial<FetcherConfig> & {
|
|
48
|
-
client?: typeof client;
|
|
49
|
-
};
|
|
50
|
-
}): Promise<unknown>;
|
|
51
|
-
/**
|
|
52
|
-
* @description Update a chat
|
|
53
|
-
* @summary Update Chat
|
|
54
|
-
* {@link chatsChatId}
|
|
55
|
-
*/
|
|
56
|
-
export declare function chatsUpdate({ pathParams: { chatId }, config, }: {
|
|
57
|
-
pathParams: ChatsUpdatePathParams;
|
|
58
|
-
config?: Partial<FetcherConfig> & {
|
|
59
|
-
client?: typeof client;
|
|
60
|
-
};
|
|
61
|
-
}): Promise<unknown>;
|
|
62
|
-
/**
|
|
63
|
-
* @description Favorite a chat
|
|
64
|
-
* @summary Favorite Chat
|
|
65
|
-
* {@link chatsChatIdFavorite}
|
|
66
|
-
*/
|
|
67
|
-
export declare function chatsFavorite({ pathParams: { chatId }, config, }: {
|
|
68
|
-
pathParams: ChatsFavoritePathParams;
|
|
69
|
-
config?: Partial<FetcherConfig> & {
|
|
70
|
-
client?: typeof client;
|
|
71
|
-
};
|
|
72
|
-
}): Promise<unknown>;
|
|
73
|
-
/**
|
|
74
|
-
* @description Fork a version in a chat
|
|
75
|
-
* @summary Fork Chat
|
|
76
|
-
* {@link chatsChatIdFork}
|
|
77
|
-
*/
|
|
78
|
-
export declare function chatsFork({ pathParams: { chatId }, config, }: {
|
|
79
|
-
pathParams: ChatsForkPathParams;
|
|
80
|
-
config?: Partial<FetcherConfig> & {
|
|
81
|
-
client?: typeof client;
|
|
82
|
-
};
|
|
83
|
-
}): Promise<unknown>;
|
|
84
|
-
/**
|
|
85
|
-
* @description Get the project for a chat
|
|
86
|
-
* @summary Get Project by Chat ID
|
|
87
|
-
* {@link chatsChatIdProject}
|
|
88
|
-
*/
|
|
89
|
-
export declare function projectsGetByChatId({ pathParams: { chatId }, config, }: {
|
|
90
|
-
pathParams: ProjectsGetByChatIdPathParams;
|
|
91
|
-
config?: Partial<FetcherConfig> & {
|
|
92
|
-
client?: typeof client;
|
|
93
|
-
};
|
|
94
|
-
}): Promise<unknown>;
|
|
95
|
-
/**
|
|
96
|
-
* @description Create a new message in a chat
|
|
97
|
-
* @summary Create Message
|
|
98
|
-
* {@link chatsChatIdMessages}
|
|
99
|
-
*/
|
|
100
|
-
export declare function chatsSendMessage({ pathParams: { chatId }, config, }: {
|
|
101
|
-
pathParams: ChatsSendMessagePathParams;
|
|
102
|
-
config?: Partial<FetcherConfig> & {
|
|
103
|
-
client?: typeof client;
|
|
104
|
-
};
|
|
105
|
-
}): Promise<unknown>;
|
|
106
|
-
/**
|
|
107
|
-
* @description Get the metadata for a chat
|
|
108
|
-
* @summary Get Chat Metadata
|
|
109
|
-
* {@link chatsChatIdMetadata}
|
|
110
|
-
*/
|
|
111
|
-
export declare function chatsGetMetadata({ pathParams: { chatId }, config, }: {
|
|
112
|
-
pathParams: ChatsGetMetadataPathParams;
|
|
113
|
-
config?: Partial<FetcherConfig> & {
|
|
114
|
-
client?: typeof client;
|
|
115
|
-
};
|
|
116
|
-
}): Promise<unknown>;
|
|
117
|
-
/**
|
|
118
|
-
* @description Resume a chat message
|
|
119
|
-
* @summary Resume Chat Message
|
|
120
|
-
* {@link chatsChatIdMessagesMessageIdResume}
|
|
121
|
-
*/
|
|
122
|
-
export declare function chatsResume({ pathParams: { chatId, messageId }, config, }: {
|
|
123
|
-
pathParams: ChatsResumePathParams;
|
|
124
|
-
config?: Partial<FetcherConfig> & {
|
|
125
|
-
client?: typeof client;
|
|
126
|
-
};
|
|
127
|
-
}): Promise<unknown>;
|
|
128
|
-
/**
|
|
129
|
-
* @description Find logs for a deployment
|
|
130
|
-
* @summary Find Deployment Logs
|
|
131
|
-
* {@link deploymentsDeploymentIdLogs}
|
|
132
|
-
*/
|
|
133
|
-
export declare function deploymentsFindLogs({ pathParams: { deploymentId }, queryParams, config, }: {
|
|
134
|
-
pathParams: DeploymentsFindLogsPathParams;
|
|
135
|
-
queryParams?: DeploymentsFindLogsQueryParams;
|
|
136
|
-
config?: Partial<FetcherConfig> & {
|
|
137
|
-
client?: typeof client;
|
|
138
|
-
};
|
|
139
|
-
}): Promise<unknown>;
|
|
140
|
-
/**
|
|
141
|
-
* @description Find errors for a deployment
|
|
142
|
-
* @summary Find Deployment Errors
|
|
143
|
-
* {@link deploymentsDeploymentIdErrors}
|
|
144
|
-
*/
|
|
145
|
-
export declare function deploymentsFindErrors({ pathParams: { deploymentId }, config, }: {
|
|
146
|
-
pathParams: DeploymentsFindErrorsPathParams;
|
|
147
|
-
config?: Partial<FetcherConfig> & {
|
|
148
|
-
client?: typeof client;
|
|
149
|
-
};
|
|
150
|
-
}): Promise<unknown>;
|
|
151
|
-
/**
|
|
152
|
-
* @description Find all Vercel projects
|
|
153
|
-
* @summary Find Vercel Projects
|
|
154
|
-
* {@link integrationsVercelProjects}
|
|
155
|
-
*/
|
|
156
|
-
export declare function integrationsVercelProjectsFind({ config }: {
|
|
157
|
-
config?: Partial<FetcherConfig> & {
|
|
158
|
-
client?: typeof client;
|
|
159
|
-
};
|
|
160
|
-
}): Promise<unknown>;
|
|
161
|
-
/**
|
|
162
|
-
* @description Create a new Vercel project
|
|
163
|
-
* @summary Create Vercel Project
|
|
164
|
-
* {@link integrationsVercelProjects}
|
|
165
|
-
*/
|
|
166
|
-
export declare function integrationsVercelProjectsCreate({ config }: {
|
|
167
|
-
config?: Partial<FetcherConfig> & {
|
|
168
|
-
client?: typeof client;
|
|
169
|
-
};
|
|
170
|
-
}): Promise<unknown>;
|
|
171
|
-
/**
|
|
172
|
-
* @description Find all projects
|
|
173
|
-
* @summary Find Projects
|
|
174
|
-
* {@link projects}
|
|
175
|
-
*/
|
|
176
|
-
export declare function projectsFind({ config }: {
|
|
177
|
-
config?: Partial<FetcherConfig> & {
|
|
178
|
-
client?: typeof client;
|
|
179
|
-
};
|
|
180
|
-
}): Promise<unknown>;
|
|
181
|
-
/**
|
|
182
|
-
* @description Create a new project
|
|
183
|
-
* @summary Create Project
|
|
184
|
-
* {@link projects}
|
|
185
|
-
*/
|
|
186
|
-
export declare function projectsCreate({ config }: {
|
|
187
|
-
config?: Partial<FetcherConfig> & {
|
|
188
|
-
client?: typeof client;
|
|
189
|
-
};
|
|
190
|
-
}): Promise<unknown>;
|
|
191
|
-
/**
|
|
192
|
-
* @description Assign a project to a chat
|
|
193
|
-
* @summary Assign Project to Chat
|
|
194
|
-
* {@link projectsProjectIdAssign}
|
|
195
|
-
*/
|
|
196
|
-
export declare function projectsAssign({ pathParams: { projectId }, config, }: {
|
|
197
|
-
pathParams: ProjectsAssignPathParams;
|
|
198
|
-
config?: Partial<FetcherConfig> & {
|
|
199
|
-
client?: typeof client;
|
|
200
|
-
};
|
|
201
|
-
}): Promise<unknown>;
|
|
202
|
-
/**
|
|
203
|
-
* @description Find the rate limit for a scope
|
|
204
|
-
* @summary Find Rate Limit
|
|
205
|
-
* {@link rateLimits}
|
|
206
|
-
*/
|
|
207
|
-
export declare function rateLimitsFind({ queryParams, config, }: {
|
|
208
|
-
queryParams?: RateLimitsFindQueryParams;
|
|
209
|
-
config?: Partial<FetcherConfig> & {
|
|
210
|
-
client?: typeof client;
|
|
211
|
-
};
|
|
212
|
-
}): Promise<unknown>;
|
|
213
|
-
/**
|
|
214
|
-
* @description Get the user
|
|
215
|
-
* @summary Get User
|
|
216
|
-
* {@link user}
|
|
217
|
-
*/
|
|
218
|
-
export declare function userGet({ config }: {
|
|
219
|
-
config?: Partial<FetcherConfig> & {
|
|
220
|
-
client?: typeof client;
|
|
221
|
-
};
|
|
222
|
-
}): Promise<unknown>;
|
|
223
|
-
/**
|
|
224
|
-
* @description Get the billing for the user
|
|
225
|
-
* @summary Get Billing
|
|
226
|
-
* {@link userBilling}
|
|
227
|
-
*/
|
|
228
|
-
export declare function userGetBilling({ queryParams, config, }: {
|
|
229
|
-
queryParams?: UserGetBillingQueryParams;
|
|
230
|
-
config?: Partial<FetcherConfig> & {
|
|
231
|
-
client?: typeof client;
|
|
232
|
-
};
|
|
233
|
-
}): Promise<unknown>;
|
|
234
|
-
/**
|
|
235
|
-
* @description Get the plan for the user
|
|
236
|
-
* @summary Get Plan
|
|
237
|
-
* {@link userPlan}
|
|
238
|
-
*/
|
|
239
|
-
export declare function userGetPlan({ config }: {
|
|
240
|
-
config?: Partial<FetcherConfig> & {
|
|
241
|
-
client?: typeof client;
|
|
242
|
-
};
|
|
243
|
-
}): Promise<unknown>;
|
|
244
|
-
/**
|
|
245
|
-
* @description Get all scopes for the user
|
|
246
|
-
* @summary Get User Scopes
|
|
247
|
-
* {@link userScopes}
|
|
248
|
-
*/
|
|
249
|
-
export declare function userGetScopes({ config }: {
|
|
250
|
-
config?: Partial<FetcherConfig> & {
|
|
251
|
-
client?: typeof client;
|
|
252
|
-
};
|
|
253
|
-
}): Promise<unknown>;
|
|
254
|
-
export declare const operationsByPath: {
|
|
255
|
-
'POST chats': typeof chatsCreate;
|
|
256
|
-
'GET chats': typeof chatsFind;
|
|
257
|
-
'DELETE chatsChatId': typeof chatsDelete;
|
|
258
|
-
'GET chatsChatId': typeof chatsGetById;
|
|
259
|
-
'PATCH chatsChatId': typeof chatsUpdate;
|
|
260
|
-
'PUT chatsChatIdFavorite': typeof chatsFavorite;
|
|
261
|
-
'POST chatsChatIdFork': typeof chatsFork;
|
|
262
|
-
'GET chatsChatIdProject': typeof projectsGetByChatId;
|
|
263
|
-
'POST chatsChatIdMessages': typeof chatsSendMessage;
|
|
264
|
-
'GET chatsChatIdMetadata': typeof chatsGetMetadata;
|
|
265
|
-
'POST chatsChatIdMessagesMessageIdResume': typeof chatsResume;
|
|
266
|
-
'GET deploymentsDeploymentIdLogs': typeof deploymentsFindLogs;
|
|
267
|
-
'GET deploymentsDeploymentIdErrors': typeof deploymentsFindErrors;
|
|
268
|
-
'GET integrationsVercelProjects': typeof integrationsVercelProjectsFind;
|
|
269
|
-
'POST integrationsVercelProjects': typeof integrationsVercelProjectsCreate;
|
|
270
|
-
'GET projects': typeof projectsFind;
|
|
271
|
-
'POST projects': typeof projectsCreate;
|
|
272
|
-
'POST projectsProjectIdAssign': typeof projectsAssign;
|
|
273
|
-
'GET rateLimits': typeof rateLimitsFind;
|
|
274
|
-
'GET user': typeof userGet;
|
|
275
|
-
'GET userBilling': typeof userGetBilling;
|
|
276
|
-
'GET userPlan': typeof userGetPlan;
|
|
277
|
-
'GET userScopes': typeof userGetScopes;
|
|
278
|
-
};
|
|
279
|
-
export declare const operationsByTag: {
|
|
280
|
-
chats: {
|
|
281
|
-
chatsCreate: typeof chatsCreate;
|
|
282
|
-
chatsFind: typeof chatsFind;
|
|
283
|
-
chatsDelete: typeof chatsDelete;
|
|
284
|
-
chatsGetById: typeof chatsGetById;
|
|
285
|
-
chatsUpdate: typeof chatsUpdate;
|
|
286
|
-
chatsFavorite: typeof chatsFavorite;
|
|
287
|
-
chatsFork: typeof chatsFork;
|
|
288
|
-
chatsSendMessage: typeof chatsSendMessage;
|
|
289
|
-
chatsGetMetadata: typeof chatsGetMetadata;
|
|
290
|
-
chatsResume: typeof chatsResume;
|
|
291
|
-
};
|
|
292
|
-
projects: {
|
|
293
|
-
projectsGetByChatId: typeof projectsGetByChatId;
|
|
294
|
-
projectsFind: typeof projectsFind;
|
|
295
|
-
projectsCreate: typeof projectsCreate;
|
|
296
|
-
projectsAssign: typeof projectsAssign;
|
|
297
|
-
};
|
|
298
|
-
deployments: {
|
|
299
|
-
deploymentsFindLogs: typeof deploymentsFindLogs;
|
|
300
|
-
deploymentsFindErrors: typeof deploymentsFindErrors;
|
|
301
|
-
};
|
|
302
|
-
integrations: {
|
|
303
|
-
integrationsVercelProjectsFind: typeof integrationsVercelProjectsFind;
|
|
304
|
-
integrationsVercelProjectsCreate: typeof integrationsVercelProjectsCreate;
|
|
305
|
-
};
|
|
306
|
-
ratelimits: {
|
|
307
|
-
rateLimitsFind: typeof rateLimitsFind;
|
|
308
|
-
};
|
|
309
|
-
user: {
|
|
310
|
-
userGet: typeof userGet;
|
|
311
|
-
userGetBilling: typeof userGetBilling;
|
|
312
|
-
userGetPlan: typeof userGetPlan;
|
|
313
|
-
userGetScopes: typeof userGetScopes;
|
|
314
|
-
};
|
|
315
|
-
};
|
|
316
|
-
export declare const tagDictionary: {
|
|
317
|
-
readonly chats: {
|
|
318
|
-
readonly POST: readonly ["chatsCreate", "chatsFork", "chatsSendMessage", "chatsResume"];
|
|
319
|
-
readonly GET: readonly ["chatsFind", "chatsGetById", "chatsGetMetadata"];
|
|
320
|
-
readonly DELETE: readonly ["chatsDelete"];
|
|
321
|
-
readonly PATCH: readonly ["chatsUpdate"];
|
|
322
|
-
readonly PUT: readonly ["chatsFavorite"];
|
|
323
|
-
};
|
|
324
|
-
readonly projects: {
|
|
325
|
-
readonly GET: readonly ["projectsGetByChatId", "projectsFind"];
|
|
326
|
-
readonly POST: readonly ["projectsCreate", "projectsAssign"];
|
|
327
|
-
};
|
|
328
|
-
readonly deployments: {
|
|
329
|
-
readonly GET: readonly ["deploymentsFindLogs", "deploymentsFindErrors"];
|
|
330
|
-
};
|
|
331
|
-
readonly integrations: {
|
|
332
|
-
readonly GET: readonly ["integrationsVercelProjectsFind"];
|
|
333
|
-
readonly POST: readonly ["integrationsVercelProjectsCreate"];
|
|
334
|
-
};
|
|
335
|
-
readonly ratelimits: {
|
|
336
|
-
readonly GET: readonly ["rateLimitsFind"];
|
|
337
|
-
};
|
|
338
|
-
readonly user: {
|
|
339
|
-
readonly GET: readonly ["userGet", "userGetBilling", "userGetPlan", "userGetScopes"];
|
|
340
|
-
};
|
|
341
|
-
};
|