v0-api 0.0.3 → 0.1.3
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/components.cjs +1498 -0
- package/dist/components.d.cts +1011 -0
- package/dist/components.d.cts.map +1 -0
- package/dist/components.d.mts +1011 -0
- package/dist/components.d.mts.map +1 -0
- package/dist/components.mjs +1435 -0
- package/dist/effect.cjs +1334 -0
- package/dist/effect.d.cts +970 -0
- package/dist/effect.d.cts.map +1 -0
- package/dist/effect.d.mts +970 -0
- package/dist/effect.d.mts.map +1 -0
- package/dist/effect.mjs +1312 -0
- package/dist/index.cjs +5132 -0
- package/dist/index.d.cts +11385 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +11378 -228
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +11378 -228
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +4311 -7
- package/dist/schemas.cjs +3229 -0
- package/dist/schemas.d.cts +1856 -0
- package/dist/schemas.d.cts.map +1 -0
- package/dist/schemas.d.mts +1856 -0
- package/dist/schemas.d.mts.map +1 -0
- package/dist/schemas.mjs +2488 -0
- package/dist/types.cjs +420 -0
- package/dist/types.d.cts +8429 -0
- package/dist/types.d.cts.map +1 -0
- package/dist/types.d.mts +8429 -0
- package/dist/types.d.mts.map +1 -0
- package/dist/types.mjs +343 -0
- package/package.json +84 -31
- package/README.md +0 -3
- package/dist/client.d.mts +0 -58
- package/dist/client.d.ts +0 -58
- package/dist/client.js +0 -53
- package/dist/client.mjs +0 -46
- package/dist/generated/components.d.mts +0 -353
- package/dist/generated/components.d.ts +0 -353
- package/dist/generated/components.js +0 -449
- package/dist/generated/components.mjs +0 -419
- package/dist/generated/mcp.d.mts +0 -261
- package/dist/generated/mcp.d.ts +0 -261
- package/dist/generated/mcp.js +0 -554
- package/dist/generated/mcp.mjs +0 -524
- package/dist/generated/schemas.d.mts +0 -1484
- package/dist/generated/schemas.d.ts +0 -1484
- package/dist/generated/schemas.js +0 -1133
- package/dist/generated/schemas.mjs +0 -1125
- package/dist/generated/types.d.mts +0 -1669
- package/dist/generated/types.d.ts +0 -1669
- package/dist/generated/types.js +0 -93
- package/dist/generated/types.mjs +0 -90
- package/dist/index.js +0 -49
- package/dist/mcp.d.mts +0 -1
- package/dist/mcp.d.ts +0 -1
- package/dist/mcp.js +0 -5
- package/dist/mcp.mjs +0 -1
- 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/mcp.d.mts +0 -1
- package/dist/utils/mcp.d.ts +0 -1
- package/dist/utils/mcp.js +0 -2
- package/dist/utils/mcp.mjs +0 -1
- 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/dist/client.d.mts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { type operationsByPath, operationsByTag, type tagDictionary } from "./generated/components.mjs";
|
|
2
|
-
import type { FetchImpl } from "./utils/fetch.mjs";
|
|
3
|
-
import { type FetcherConfig } from "./utils/fetcher.mjs";
|
|
4
|
-
import type { 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
|
-
'POST /chats/init': typeof import("./generated/components").chatsInitCreate;
|
|
35
|
-
'DELETE /chats/{chatId}': typeof import("./generated/components").chatsDelete;
|
|
36
|
-
'GET /chats/{chatId}': typeof import("./generated/components").chatsGetById;
|
|
37
|
-
'PATCH /chats/{chatId}': typeof import("./generated/components").chatsUpdate;
|
|
38
|
-
'PUT /chats/{chatId}/favorite': typeof import("./generated/components").chatsFavorite;
|
|
39
|
-
'POST /chats/{chatId}/fork': typeof import("./generated/components").chatsFork;
|
|
40
|
-
'GET /chats/{chatId}/project': typeof import("./generated/components").projectsGetByChatId;
|
|
41
|
-
'POST /chats/{chatId}/messages': typeof import("./generated/components").chatsSendMessage;
|
|
42
|
-
'GET /chats/{chatId}/metadata': typeof import("./generated/components").chatsGetMetadata;
|
|
43
|
-
'POST /chats/{chatId}/messages/{messageId}/resume': typeof import("./generated/components").chatsResume;
|
|
44
|
-
'GET /deployments/{deploymentId}/logs': typeof import("./generated/components").deploymentsFindLogs;
|
|
45
|
-
'GET /deployments/{deploymentId}/errors': typeof import("./generated/components").deploymentsFindErrors;
|
|
46
|
-
'GET /integrations/vercel/projects': typeof import("./generated/components").integrationsVercelProjectsFind;
|
|
47
|
-
'POST /integrations/vercel/projects': typeof import("./generated/components").integrationsVercelProjectsCreate;
|
|
48
|
-
'GET /projects': typeof import("./generated/components").projectsFind;
|
|
49
|
-
'POST /projects': typeof import("./generated/components").projectsCreate;
|
|
50
|
-
'POST /projects/{projectId}/assign': typeof import("./generated/components").projectsAssign;
|
|
51
|
-
'GET /rate-limits': typeof import("./generated/components").rateLimitsFind;
|
|
52
|
-
'GET /user': typeof import("./generated/components").userGet;
|
|
53
|
-
'GET /user/billing': typeof import("./generated/components").userGetBilling;
|
|
54
|
-
'GET /user/plan': typeof import("./generated/components").userGetPlan;
|
|
55
|
-
'GET /user/scopes': typeof import("./generated/components").userGetScopes;
|
|
56
|
-
}[Endpoint]>>;
|
|
57
|
-
}
|
|
58
|
-
export {};
|
package/dist/client.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { type operationsByPath, operationsByTag, type tagDictionary } from "./generated/components.js";
|
|
2
|
-
import type { FetchImpl } from "./utils/fetch.js";
|
|
3
|
-
import { type FetcherConfig } from "./utils/fetcher.js";
|
|
4
|
-
import type { 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
|
-
'POST /chats/init': typeof import("./generated/components").chatsInitCreate;
|
|
35
|
-
'DELETE /chats/{chatId}': typeof import("./generated/components").chatsDelete;
|
|
36
|
-
'GET /chats/{chatId}': typeof import("./generated/components").chatsGetById;
|
|
37
|
-
'PATCH /chats/{chatId}': typeof import("./generated/components").chatsUpdate;
|
|
38
|
-
'PUT /chats/{chatId}/favorite': typeof import("./generated/components").chatsFavorite;
|
|
39
|
-
'POST /chats/{chatId}/fork': typeof import("./generated/components").chatsFork;
|
|
40
|
-
'GET /chats/{chatId}/project': typeof import("./generated/components").projectsGetByChatId;
|
|
41
|
-
'POST /chats/{chatId}/messages': typeof import("./generated/components").chatsSendMessage;
|
|
42
|
-
'GET /chats/{chatId}/metadata': typeof import("./generated/components").chatsGetMetadata;
|
|
43
|
-
'POST /chats/{chatId}/messages/{messageId}/resume': typeof import("./generated/components").chatsResume;
|
|
44
|
-
'GET /deployments/{deploymentId}/logs': typeof import("./generated/components").deploymentsFindLogs;
|
|
45
|
-
'GET /deployments/{deploymentId}/errors': typeof import("./generated/components").deploymentsFindErrors;
|
|
46
|
-
'GET /integrations/vercel/projects': typeof import("./generated/components").integrationsVercelProjectsFind;
|
|
47
|
-
'POST /integrations/vercel/projects': typeof import("./generated/components").integrationsVercelProjectsCreate;
|
|
48
|
-
'GET /projects': typeof import("./generated/components").projectsFind;
|
|
49
|
-
'POST /projects': typeof import("./generated/components").projectsCreate;
|
|
50
|
-
'POST /projects/{projectId}/assign': typeof import("./generated/components").projectsAssign;
|
|
51
|
-
'GET /rate-limits': typeof import("./generated/components").rateLimitsFind;
|
|
52
|
-
'GET /user': typeof import("./generated/components").userGet;
|
|
53
|
-
'GET /user/billing': typeof import("./generated/components").userGetBilling;
|
|
54
|
-
'GET /user/plan': typeof import("./generated/components").userGetPlan;
|
|
55
|
-
'GET /user/scopes': typeof import("./generated/components").userGetScopes;
|
|
56
|
-
}[Endpoint]>>;
|
|
57
|
-
}
|
|
58
|
-
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,353 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
import type { FetcherConfig } from "../utils/fetcher.mjs";
|
|
6
|
-
import client from "../utils/fetcher.mjs";
|
|
7
|
-
import type { ChatsDeletePathParams, ChatsFavoritePathParams, ChatsFindQueryParams, ChatsForkPathParams, ChatsGetByIdPathParams, ChatsGetMetadataPathParams, ChatsResumePathParams, ChatsSendMessagePathParams, ChatsUpdatePathParams, DeploymentsFindErrorsPathParams, DeploymentsFindLogsPathParams, DeploymentsFindLogsQueryParams, ProjectsAssignPathParams, ProjectsGetByChatIdPathParams, 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 | undefined;
|
|
25
|
-
config?: Partial<FetcherConfig> & {
|
|
26
|
-
client?: typeof client;
|
|
27
|
-
};
|
|
28
|
-
}): Promise<unknown>;
|
|
29
|
-
/**
|
|
30
|
-
* @description Initialize a new chat from files
|
|
31
|
-
* @summary Initialize Chat
|
|
32
|
-
* {@link /chats/init}
|
|
33
|
-
*/
|
|
34
|
-
export declare function chatsInitCreate({ config }: {
|
|
35
|
-
config?: Partial<FetcherConfig> & {
|
|
36
|
-
client?: typeof client;
|
|
37
|
-
};
|
|
38
|
-
}): Promise<unknown>;
|
|
39
|
-
/**
|
|
40
|
-
* @description Delete a chat
|
|
41
|
-
* @summary Delete Chat
|
|
42
|
-
* {@link /chats/:chatId}
|
|
43
|
-
*/
|
|
44
|
-
export declare function chatsDelete({ pathParams: { chatId }, config }: {
|
|
45
|
-
pathParams: ChatsDeletePathParams;
|
|
46
|
-
config?: Partial<FetcherConfig> & {
|
|
47
|
-
client?: typeof client;
|
|
48
|
-
};
|
|
49
|
-
}): Promise<unknown>;
|
|
50
|
-
/**
|
|
51
|
-
* @description Get a chat
|
|
52
|
-
* @summary Get Chat
|
|
53
|
-
* {@link /chats/:chatId}
|
|
54
|
-
*/
|
|
55
|
-
export declare function chatsGetById({ pathParams: { chatId }, config }: {
|
|
56
|
-
pathParams: ChatsGetByIdPathParams;
|
|
57
|
-
config?: Partial<FetcherConfig> & {
|
|
58
|
-
client?: typeof client;
|
|
59
|
-
};
|
|
60
|
-
}): Promise<unknown>;
|
|
61
|
-
/**
|
|
62
|
-
* @description Update a chat
|
|
63
|
-
* @summary Update Chat
|
|
64
|
-
* {@link /chats/:chatId}
|
|
65
|
-
*/
|
|
66
|
-
export declare function chatsUpdate({ pathParams: { chatId }, config }: {
|
|
67
|
-
pathParams: ChatsUpdatePathParams;
|
|
68
|
-
config?: Partial<FetcherConfig> & {
|
|
69
|
-
client?: typeof client;
|
|
70
|
-
};
|
|
71
|
-
}): Promise<unknown>;
|
|
72
|
-
/**
|
|
73
|
-
* @description Favorite a chat
|
|
74
|
-
* @summary Favorite Chat
|
|
75
|
-
* {@link /chats/:chatId/favorite}
|
|
76
|
-
*/
|
|
77
|
-
export declare function chatsFavorite({ pathParams: { chatId }, config }: {
|
|
78
|
-
pathParams: ChatsFavoritePathParams;
|
|
79
|
-
config?: Partial<FetcherConfig> & {
|
|
80
|
-
client?: typeof client;
|
|
81
|
-
};
|
|
82
|
-
}): Promise<unknown>;
|
|
83
|
-
/**
|
|
84
|
-
* @description Fork a version in a chat
|
|
85
|
-
* @summary Fork Chat
|
|
86
|
-
* {@link /chats/:chatId/fork}
|
|
87
|
-
*/
|
|
88
|
-
export declare function chatsFork({ pathParams: { chatId }, config }: {
|
|
89
|
-
pathParams: ChatsForkPathParams;
|
|
90
|
-
config?: Partial<FetcherConfig> & {
|
|
91
|
-
client?: typeof client;
|
|
92
|
-
};
|
|
93
|
-
}): Promise<unknown>;
|
|
94
|
-
/**
|
|
95
|
-
* @description Get the project for a chat
|
|
96
|
-
* @summary Get Project by Chat ID
|
|
97
|
-
* {@link /chats/:chatId/project}
|
|
98
|
-
*/
|
|
99
|
-
export declare function projectsGetByChatId({ pathParams: { chatId }, config }: {
|
|
100
|
-
pathParams: ProjectsGetByChatIdPathParams;
|
|
101
|
-
config?: Partial<FetcherConfig> & {
|
|
102
|
-
client?: typeof client;
|
|
103
|
-
};
|
|
104
|
-
}): Promise<unknown>;
|
|
105
|
-
/**
|
|
106
|
-
* @description Create a new message in a chat
|
|
107
|
-
* @summary Create Message
|
|
108
|
-
* {@link /chats/:chatId/messages}
|
|
109
|
-
*/
|
|
110
|
-
export declare function chatsSendMessage({ pathParams: { chatId }, config }: {
|
|
111
|
-
pathParams: ChatsSendMessagePathParams;
|
|
112
|
-
config?: Partial<FetcherConfig> & {
|
|
113
|
-
client?: typeof client;
|
|
114
|
-
};
|
|
115
|
-
}): Promise<unknown>;
|
|
116
|
-
/**
|
|
117
|
-
* @description Get the metadata for a chat
|
|
118
|
-
* @summary Get Chat Metadata
|
|
119
|
-
* {@link /chats/:chatId/metadata}
|
|
120
|
-
*/
|
|
121
|
-
export declare function chatsGetMetadata({ pathParams: { chatId }, config }: {
|
|
122
|
-
pathParams: ChatsGetMetadataPathParams;
|
|
123
|
-
config?: Partial<FetcherConfig> & {
|
|
124
|
-
client?: typeof client;
|
|
125
|
-
};
|
|
126
|
-
}): Promise<unknown>;
|
|
127
|
-
/**
|
|
128
|
-
* @description Resume a chat message
|
|
129
|
-
* @summary Resume Chat Message
|
|
130
|
-
* {@link /chats/:chatId/messages/:messageId/resume}
|
|
131
|
-
*/
|
|
132
|
-
export declare function chatsResume({ pathParams: { chatId, messageId }, config }: {
|
|
133
|
-
pathParams: ChatsResumePathParams;
|
|
134
|
-
config?: Partial<FetcherConfig> & {
|
|
135
|
-
client?: typeof client;
|
|
136
|
-
};
|
|
137
|
-
}): Promise<unknown>;
|
|
138
|
-
/**
|
|
139
|
-
* @description Find logs for a deployment
|
|
140
|
-
* @summary Find Deployment Logs
|
|
141
|
-
* {@link /deployments/:deploymentId/logs}
|
|
142
|
-
*/
|
|
143
|
-
export declare function deploymentsFindLogs({ pathParams: { deploymentId }, queryParams, config }: {
|
|
144
|
-
pathParams: DeploymentsFindLogsPathParams;
|
|
145
|
-
queryParams?: DeploymentsFindLogsQueryParams | undefined;
|
|
146
|
-
config?: Partial<FetcherConfig> & {
|
|
147
|
-
client?: typeof client;
|
|
148
|
-
};
|
|
149
|
-
}): Promise<unknown>;
|
|
150
|
-
/**
|
|
151
|
-
* @description Find errors for a deployment
|
|
152
|
-
* @summary Find Deployment Errors
|
|
153
|
-
* {@link /deployments/:deploymentId/errors}
|
|
154
|
-
*/
|
|
155
|
-
export declare function deploymentsFindErrors({ pathParams: { deploymentId }, config }: {
|
|
156
|
-
pathParams: DeploymentsFindErrorsPathParams;
|
|
157
|
-
config?: Partial<FetcherConfig> & {
|
|
158
|
-
client?: typeof client;
|
|
159
|
-
};
|
|
160
|
-
}): Promise<unknown>;
|
|
161
|
-
/**
|
|
162
|
-
* @description Find all Vercel projects
|
|
163
|
-
* @summary Find Vercel Projects
|
|
164
|
-
* {@link /integrations/vercel/projects}
|
|
165
|
-
*/
|
|
166
|
-
export declare function integrationsVercelProjectsFind({ config }: {
|
|
167
|
-
config?: Partial<FetcherConfig> & {
|
|
168
|
-
client?: typeof client;
|
|
169
|
-
};
|
|
170
|
-
}): Promise<unknown>;
|
|
171
|
-
/**
|
|
172
|
-
* @description Create a new Vercel project
|
|
173
|
-
* @summary Create Vercel Project
|
|
174
|
-
* {@link /integrations/vercel/projects}
|
|
175
|
-
*/
|
|
176
|
-
export declare function integrationsVercelProjectsCreate({ config }: {
|
|
177
|
-
config?: Partial<FetcherConfig> & {
|
|
178
|
-
client?: typeof client;
|
|
179
|
-
};
|
|
180
|
-
}): Promise<unknown>;
|
|
181
|
-
/**
|
|
182
|
-
* @description Find all projects
|
|
183
|
-
* @summary Find Projects
|
|
184
|
-
* {@link /projects}
|
|
185
|
-
*/
|
|
186
|
-
export declare function projectsFind({ config }: {
|
|
187
|
-
config?: Partial<FetcherConfig> & {
|
|
188
|
-
client?: typeof client;
|
|
189
|
-
};
|
|
190
|
-
}): Promise<unknown>;
|
|
191
|
-
/**
|
|
192
|
-
* @description Create a new project
|
|
193
|
-
* @summary Create Project
|
|
194
|
-
* {@link /projects}
|
|
195
|
-
*/
|
|
196
|
-
export declare function projectsCreate({ config }: {
|
|
197
|
-
config?: Partial<FetcherConfig> & {
|
|
198
|
-
client?: typeof client;
|
|
199
|
-
};
|
|
200
|
-
}): Promise<unknown>;
|
|
201
|
-
/**
|
|
202
|
-
* @description Assign a project to a chat
|
|
203
|
-
* @summary Assign Project to Chat
|
|
204
|
-
* {@link /projects/:projectId/assign}
|
|
205
|
-
*/
|
|
206
|
-
export declare function projectsAssign({ pathParams: { projectId }, config }: {
|
|
207
|
-
pathParams: ProjectsAssignPathParams;
|
|
208
|
-
config?: Partial<FetcherConfig> & {
|
|
209
|
-
client?: typeof client;
|
|
210
|
-
};
|
|
211
|
-
}): Promise<unknown>;
|
|
212
|
-
/**
|
|
213
|
-
* @description Find the rate limit for a scope
|
|
214
|
-
* @summary Find Rate Limit
|
|
215
|
-
* {@link /rate-limits}
|
|
216
|
-
*/
|
|
217
|
-
export declare function rateLimitsFind({ queryParams, config }: {
|
|
218
|
-
queryParams?: RateLimitsFindQueryParams | undefined;
|
|
219
|
-
config?: Partial<FetcherConfig> & {
|
|
220
|
-
client?: typeof client;
|
|
221
|
-
};
|
|
222
|
-
}): Promise<unknown>;
|
|
223
|
-
/**
|
|
224
|
-
* @description Get the user
|
|
225
|
-
* @summary Get User
|
|
226
|
-
* {@link /user}
|
|
227
|
-
*/
|
|
228
|
-
export declare function userGet({ config }: {
|
|
229
|
-
config?: Partial<FetcherConfig> & {
|
|
230
|
-
client?: typeof client;
|
|
231
|
-
};
|
|
232
|
-
}): Promise<unknown>;
|
|
233
|
-
/**
|
|
234
|
-
* @description Get the billing for the user
|
|
235
|
-
* @summary Get Billing
|
|
236
|
-
* {@link /user/billing}
|
|
237
|
-
*/
|
|
238
|
-
export declare function userGetBilling({ queryParams, config }: {
|
|
239
|
-
queryParams?: UserGetBillingQueryParams | undefined;
|
|
240
|
-
config?: Partial<FetcherConfig> & {
|
|
241
|
-
client?: typeof client;
|
|
242
|
-
};
|
|
243
|
-
}): Promise<unknown>;
|
|
244
|
-
/**
|
|
245
|
-
* @description Get the plan for the user
|
|
246
|
-
* @summary Get Plan
|
|
247
|
-
* {@link /user/plan}
|
|
248
|
-
*/
|
|
249
|
-
export declare function userGetPlan({ config }: {
|
|
250
|
-
config?: Partial<FetcherConfig> & {
|
|
251
|
-
client?: typeof client;
|
|
252
|
-
};
|
|
253
|
-
}): Promise<unknown>;
|
|
254
|
-
/**
|
|
255
|
-
* @description Get all scopes for the user
|
|
256
|
-
* @summary Get User Scopes
|
|
257
|
-
* {@link /user/scopes}
|
|
258
|
-
*/
|
|
259
|
-
export declare function userGetScopes({ config }: {
|
|
260
|
-
config?: Partial<FetcherConfig> & {
|
|
261
|
-
client?: typeof client;
|
|
262
|
-
};
|
|
263
|
-
}): Promise<unknown>;
|
|
264
|
-
export declare const operationsByPath: {
|
|
265
|
-
'POST /chats': typeof chatsCreate;
|
|
266
|
-
'GET /chats': typeof chatsFind;
|
|
267
|
-
'POST /chats/init': typeof chatsInitCreate;
|
|
268
|
-
'DELETE /chats/{chatId}': typeof chatsDelete;
|
|
269
|
-
'GET /chats/{chatId}': typeof chatsGetById;
|
|
270
|
-
'PATCH /chats/{chatId}': typeof chatsUpdate;
|
|
271
|
-
'PUT /chats/{chatId}/favorite': typeof chatsFavorite;
|
|
272
|
-
'POST /chats/{chatId}/fork': typeof chatsFork;
|
|
273
|
-
'GET /chats/{chatId}/project': typeof projectsGetByChatId;
|
|
274
|
-
'POST /chats/{chatId}/messages': typeof chatsSendMessage;
|
|
275
|
-
'GET /chats/{chatId}/metadata': typeof chatsGetMetadata;
|
|
276
|
-
'POST /chats/{chatId}/messages/{messageId}/resume': typeof chatsResume;
|
|
277
|
-
'GET /deployments/{deploymentId}/logs': typeof deploymentsFindLogs;
|
|
278
|
-
'GET /deployments/{deploymentId}/errors': typeof deploymentsFindErrors;
|
|
279
|
-
'GET /integrations/vercel/projects': typeof integrationsVercelProjectsFind;
|
|
280
|
-
'POST /integrations/vercel/projects': typeof integrationsVercelProjectsCreate;
|
|
281
|
-
'GET /projects': typeof projectsFind;
|
|
282
|
-
'POST /projects': typeof projectsCreate;
|
|
283
|
-
'POST /projects/{projectId}/assign': typeof projectsAssign;
|
|
284
|
-
'GET /rate-limits': typeof rateLimitsFind;
|
|
285
|
-
'GET /user': typeof userGet;
|
|
286
|
-
'GET /user/billing': typeof userGetBilling;
|
|
287
|
-
'GET /user/plan': typeof userGetPlan;
|
|
288
|
-
'GET /user/scopes': typeof userGetScopes;
|
|
289
|
-
};
|
|
290
|
-
export declare const operationsByTag: {
|
|
291
|
-
chats: {
|
|
292
|
-
chatsCreate: typeof chatsCreate;
|
|
293
|
-
chatsFind: typeof chatsFind;
|
|
294
|
-
chatsInitCreate: typeof chatsInitCreate;
|
|
295
|
-
chatsDelete: typeof chatsDelete;
|
|
296
|
-
chatsGetById: typeof chatsGetById;
|
|
297
|
-
chatsUpdate: typeof chatsUpdate;
|
|
298
|
-
chatsFavorite: typeof chatsFavorite;
|
|
299
|
-
chatsFork: typeof chatsFork;
|
|
300
|
-
chatsSendMessage: typeof chatsSendMessage;
|
|
301
|
-
chatsGetMetadata: typeof chatsGetMetadata;
|
|
302
|
-
chatsResume: typeof chatsResume;
|
|
303
|
-
};
|
|
304
|
-
projects: {
|
|
305
|
-
projectsGetByChatId: typeof projectsGetByChatId;
|
|
306
|
-
projectsFind: typeof projectsFind;
|
|
307
|
-
projectsCreate: typeof projectsCreate;
|
|
308
|
-
projectsAssign: typeof projectsAssign;
|
|
309
|
-
};
|
|
310
|
-
deployments: {
|
|
311
|
-
deploymentsFindLogs: typeof deploymentsFindLogs;
|
|
312
|
-
deploymentsFindErrors: typeof deploymentsFindErrors;
|
|
313
|
-
};
|
|
314
|
-
integrations: {
|
|
315
|
-
integrationsVercelProjectsFind: typeof integrationsVercelProjectsFind;
|
|
316
|
-
integrationsVercelProjectsCreate: typeof integrationsVercelProjectsCreate;
|
|
317
|
-
};
|
|
318
|
-
ratelimits: {
|
|
319
|
-
rateLimitsFind: typeof rateLimitsFind;
|
|
320
|
-
};
|
|
321
|
-
user: {
|
|
322
|
-
userGet: typeof userGet;
|
|
323
|
-
userGetBilling: typeof userGetBilling;
|
|
324
|
-
userGetPlan: typeof userGetPlan;
|
|
325
|
-
userGetScopes: typeof userGetScopes;
|
|
326
|
-
};
|
|
327
|
-
};
|
|
328
|
-
export declare const tagDictionary: {
|
|
329
|
-
readonly chats: {
|
|
330
|
-
readonly POST: readonly ["chatsCreate", "chatsInitCreate", "chatsFork", "chatsSendMessage", "chatsResume"];
|
|
331
|
-
readonly GET: readonly ["chatsFind", "chatsGetById", "chatsGetMetadata"];
|
|
332
|
-
readonly DELETE: readonly ["chatsDelete"];
|
|
333
|
-
readonly PATCH: readonly ["chatsUpdate"];
|
|
334
|
-
readonly PUT: readonly ["chatsFavorite"];
|
|
335
|
-
};
|
|
336
|
-
readonly projects: {
|
|
337
|
-
readonly GET: readonly ["projectsGetByChatId", "projectsFind"];
|
|
338
|
-
readonly POST: readonly ["projectsCreate", "projectsAssign"];
|
|
339
|
-
};
|
|
340
|
-
readonly deployments: {
|
|
341
|
-
readonly GET: readonly ["deploymentsFindLogs", "deploymentsFindErrors"];
|
|
342
|
-
};
|
|
343
|
-
readonly integrations: {
|
|
344
|
-
readonly GET: readonly ["integrationsVercelProjectsFind"];
|
|
345
|
-
readonly POST: readonly ["integrationsVercelProjectsCreate"];
|
|
346
|
-
};
|
|
347
|
-
readonly ratelimits: {
|
|
348
|
-
readonly GET: readonly ["rateLimitsFind"];
|
|
349
|
-
};
|
|
350
|
-
readonly user: {
|
|
351
|
-
readonly GET: readonly ["userGet", "userGetBilling", "userGetPlan", "userGetScopes"];
|
|
352
|
-
};
|
|
353
|
-
};
|