v0-api 0.0.2 → 0.0.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/client.d.mts +28 -27
- package/dist/client.d.ts +28 -27
- package/dist/generated/components.d.mts +80 -68
- package/dist/generated/components.d.ts +80 -68
- package/dist/generated/components.js +157 -99
- package/dist/generated/components.mjs +156 -99
- package/dist/generated/mcp.d.mts +261 -0
- package/dist/generated/mcp.d.ts +261 -0
- package/dist/generated/mcp.js +554 -0
- package/dist/generated/mcp.mjs +524 -0
- package/dist/generated/schemas.d.mts +520 -151
- package/dist/generated/schemas.d.ts +520 -151
- package/dist/generated/schemas.js +106 -69
- package/dist/generated/schemas.mjs +100 -63
- package/dist/generated/types.d.mts +41 -0
- package/dist/generated/types.d.ts +41 -0
- package/dist/generated/types.js +12 -12
- package/dist/generated/types.mjs +12 -12
- package/dist/index.d.mts +50 -43
- package/dist/index.d.ts +50 -43
- 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 +1 -1
- package/dist/utils/fetcher.d.ts +1 -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/client.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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";
|
|
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
5
|
export interface VercelApiOptions {
|
|
6
6
|
token: string | null;
|
|
7
7
|
fetch?: FetchImpl;
|
|
@@ -29,29 +29,30 @@ export declare class XataApi {
|
|
|
29
29
|
constructor(options: VercelApiOptions);
|
|
30
30
|
get api(): ApiClient;
|
|
31
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
|
-
'
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'GET
|
|
45
|
-
'GET
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'POST
|
|
50
|
-
'
|
|
51
|
-
'GET
|
|
52
|
-
'GET
|
|
53
|
-
'GET
|
|
54
|
-
'GET
|
|
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;
|
|
55
56
|
}[Endpoint]>>;
|
|
56
57
|
}
|
|
57
58
|
export {};
|
package/dist/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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";
|
|
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
5
|
export interface VercelApiOptions {
|
|
6
6
|
token: string | null;
|
|
7
7
|
fetch?: FetchImpl;
|
|
@@ -29,29 +29,30 @@ export declare class XataApi {
|
|
|
29
29
|
constructor(options: VercelApiOptions);
|
|
30
30
|
get api(): ApiClient;
|
|
31
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
|
-
'
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'GET
|
|
45
|
-
'GET
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'POST
|
|
50
|
-
'
|
|
51
|
-
'GET
|
|
52
|
-
'GET
|
|
53
|
-
'GET
|
|
54
|
-
'GET
|
|
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;
|
|
55
56
|
}[Endpoint]>>;
|
|
56
57
|
}
|
|
57
58
|
export {};
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Generated by Kubb (https://kubb.dev/).
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
*/
|
|
5
|
-
import client from "../utils/fetcher.mjs";
|
|
6
5
|
import type { FetcherConfig } from "../utils/fetcher.mjs";
|
|
7
|
-
import
|
|
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
8
|
/**
|
|
9
9
|
* @description Create a new chat
|
|
10
10
|
* @summary Create Chat
|
|
11
|
-
* {@link chats}
|
|
11
|
+
* {@link /chats}
|
|
12
12
|
*/
|
|
13
13
|
export declare function chatsCreate({ config }: {
|
|
14
14
|
config?: Partial<FetcherConfig> & {
|
|
@@ -18,10 +18,20 @@ export declare function chatsCreate({ config }: {
|
|
|
18
18
|
/**
|
|
19
19
|
* @description Find all chats
|
|
20
20
|
* @summary Find Chats
|
|
21
|
-
* {@link 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}
|
|
22
33
|
*/
|
|
23
|
-
export declare function
|
|
24
|
-
queryParams?: ChatsFindQueryParams;
|
|
34
|
+
export declare function chatsInitCreate({ config }: {
|
|
25
35
|
config?: Partial<FetcherConfig> & {
|
|
26
36
|
client?: typeof client;
|
|
27
37
|
};
|
|
@@ -29,9 +39,9 @@ export declare function chatsFind({ queryParams, config, }: {
|
|
|
29
39
|
/**
|
|
30
40
|
* @description Delete a chat
|
|
31
41
|
* @summary Delete Chat
|
|
32
|
-
* {@link
|
|
42
|
+
* {@link /chats/:chatId}
|
|
33
43
|
*/
|
|
34
|
-
export declare function chatsDelete({ pathParams: { chatId }, config
|
|
44
|
+
export declare function chatsDelete({ pathParams: { chatId }, config }: {
|
|
35
45
|
pathParams: ChatsDeletePathParams;
|
|
36
46
|
config?: Partial<FetcherConfig> & {
|
|
37
47
|
client?: typeof client;
|
|
@@ -40,9 +50,9 @@ export declare function chatsDelete({ pathParams: { chatId }, config, }: {
|
|
|
40
50
|
/**
|
|
41
51
|
* @description Get a chat
|
|
42
52
|
* @summary Get Chat
|
|
43
|
-
* {@link
|
|
53
|
+
* {@link /chats/:chatId}
|
|
44
54
|
*/
|
|
45
|
-
export declare function chatsGetById({ pathParams: { chatId }, config
|
|
55
|
+
export declare function chatsGetById({ pathParams: { chatId }, config }: {
|
|
46
56
|
pathParams: ChatsGetByIdPathParams;
|
|
47
57
|
config?: Partial<FetcherConfig> & {
|
|
48
58
|
client?: typeof client;
|
|
@@ -51,9 +61,9 @@ export declare function chatsGetById({ pathParams: { chatId }, config, }: {
|
|
|
51
61
|
/**
|
|
52
62
|
* @description Update a chat
|
|
53
63
|
* @summary Update Chat
|
|
54
|
-
* {@link
|
|
64
|
+
* {@link /chats/:chatId}
|
|
55
65
|
*/
|
|
56
|
-
export declare function chatsUpdate({ pathParams: { chatId }, config
|
|
66
|
+
export declare function chatsUpdate({ pathParams: { chatId }, config }: {
|
|
57
67
|
pathParams: ChatsUpdatePathParams;
|
|
58
68
|
config?: Partial<FetcherConfig> & {
|
|
59
69
|
client?: typeof client;
|
|
@@ -62,9 +72,9 @@ export declare function chatsUpdate({ pathParams: { chatId }, config, }: {
|
|
|
62
72
|
/**
|
|
63
73
|
* @description Favorite a chat
|
|
64
74
|
* @summary Favorite Chat
|
|
65
|
-
* {@link
|
|
75
|
+
* {@link /chats/:chatId/favorite}
|
|
66
76
|
*/
|
|
67
|
-
export declare function chatsFavorite({ pathParams: { chatId }, config
|
|
77
|
+
export declare function chatsFavorite({ pathParams: { chatId }, config }: {
|
|
68
78
|
pathParams: ChatsFavoritePathParams;
|
|
69
79
|
config?: Partial<FetcherConfig> & {
|
|
70
80
|
client?: typeof client;
|
|
@@ -73,9 +83,9 @@ export declare function chatsFavorite({ pathParams: { chatId }, config, }: {
|
|
|
73
83
|
/**
|
|
74
84
|
* @description Fork a version in a chat
|
|
75
85
|
* @summary Fork Chat
|
|
76
|
-
* {@link
|
|
86
|
+
* {@link /chats/:chatId/fork}
|
|
77
87
|
*/
|
|
78
|
-
export declare function chatsFork({ pathParams: { chatId }, config
|
|
88
|
+
export declare function chatsFork({ pathParams: { chatId }, config }: {
|
|
79
89
|
pathParams: ChatsForkPathParams;
|
|
80
90
|
config?: Partial<FetcherConfig> & {
|
|
81
91
|
client?: typeof client;
|
|
@@ -84,9 +94,9 @@ export declare function chatsFork({ pathParams: { chatId }, config, }: {
|
|
|
84
94
|
/**
|
|
85
95
|
* @description Get the project for a chat
|
|
86
96
|
* @summary Get Project by Chat ID
|
|
87
|
-
* {@link
|
|
97
|
+
* {@link /chats/:chatId/project}
|
|
88
98
|
*/
|
|
89
|
-
export declare function projectsGetByChatId({ pathParams: { chatId }, config
|
|
99
|
+
export declare function projectsGetByChatId({ pathParams: { chatId }, config }: {
|
|
90
100
|
pathParams: ProjectsGetByChatIdPathParams;
|
|
91
101
|
config?: Partial<FetcherConfig> & {
|
|
92
102
|
client?: typeof client;
|
|
@@ -95,9 +105,9 @@ export declare function projectsGetByChatId({ pathParams: { chatId }, config, }:
|
|
|
95
105
|
/**
|
|
96
106
|
* @description Create a new message in a chat
|
|
97
107
|
* @summary Create Message
|
|
98
|
-
* {@link
|
|
108
|
+
* {@link /chats/:chatId/messages}
|
|
99
109
|
*/
|
|
100
|
-
export declare function chatsSendMessage({ pathParams: { chatId }, config
|
|
110
|
+
export declare function chatsSendMessage({ pathParams: { chatId }, config }: {
|
|
101
111
|
pathParams: ChatsSendMessagePathParams;
|
|
102
112
|
config?: Partial<FetcherConfig> & {
|
|
103
113
|
client?: typeof client;
|
|
@@ -106,9 +116,9 @@ export declare function chatsSendMessage({ pathParams: { chatId }, config, }: {
|
|
|
106
116
|
/**
|
|
107
117
|
* @description Get the metadata for a chat
|
|
108
118
|
* @summary Get Chat Metadata
|
|
109
|
-
* {@link
|
|
119
|
+
* {@link /chats/:chatId/metadata}
|
|
110
120
|
*/
|
|
111
|
-
export declare function chatsGetMetadata({ pathParams: { chatId }, config
|
|
121
|
+
export declare function chatsGetMetadata({ pathParams: { chatId }, config }: {
|
|
112
122
|
pathParams: ChatsGetMetadataPathParams;
|
|
113
123
|
config?: Partial<FetcherConfig> & {
|
|
114
124
|
client?: typeof client;
|
|
@@ -117,9 +127,9 @@ export declare function chatsGetMetadata({ pathParams: { chatId }, config, }: {
|
|
|
117
127
|
/**
|
|
118
128
|
* @description Resume a chat message
|
|
119
129
|
* @summary Resume Chat Message
|
|
120
|
-
* {@link
|
|
130
|
+
* {@link /chats/:chatId/messages/:messageId/resume}
|
|
121
131
|
*/
|
|
122
|
-
export declare function chatsResume({ pathParams: { chatId, messageId }, config
|
|
132
|
+
export declare function chatsResume({ pathParams: { chatId, messageId }, config }: {
|
|
123
133
|
pathParams: ChatsResumePathParams;
|
|
124
134
|
config?: Partial<FetcherConfig> & {
|
|
125
135
|
client?: typeof client;
|
|
@@ -128,11 +138,11 @@ export declare function chatsResume({ pathParams: { chatId, messageId }, config,
|
|
|
128
138
|
/**
|
|
129
139
|
* @description Find logs for a deployment
|
|
130
140
|
* @summary Find Deployment Logs
|
|
131
|
-
* {@link
|
|
141
|
+
* {@link /deployments/:deploymentId/logs}
|
|
132
142
|
*/
|
|
133
|
-
export declare function deploymentsFindLogs({ pathParams: { deploymentId }, queryParams, config
|
|
143
|
+
export declare function deploymentsFindLogs({ pathParams: { deploymentId }, queryParams, config }: {
|
|
134
144
|
pathParams: DeploymentsFindLogsPathParams;
|
|
135
|
-
queryParams?: DeploymentsFindLogsQueryParams;
|
|
145
|
+
queryParams?: DeploymentsFindLogsQueryParams | undefined;
|
|
136
146
|
config?: Partial<FetcherConfig> & {
|
|
137
147
|
client?: typeof client;
|
|
138
148
|
};
|
|
@@ -140,9 +150,9 @@ export declare function deploymentsFindLogs({ pathParams: { deploymentId }, quer
|
|
|
140
150
|
/**
|
|
141
151
|
* @description Find errors for a deployment
|
|
142
152
|
* @summary Find Deployment Errors
|
|
143
|
-
* {@link
|
|
153
|
+
* {@link /deployments/:deploymentId/errors}
|
|
144
154
|
*/
|
|
145
|
-
export declare function deploymentsFindErrors({ pathParams: { deploymentId }, config
|
|
155
|
+
export declare function deploymentsFindErrors({ pathParams: { deploymentId }, config }: {
|
|
146
156
|
pathParams: DeploymentsFindErrorsPathParams;
|
|
147
157
|
config?: Partial<FetcherConfig> & {
|
|
148
158
|
client?: typeof client;
|
|
@@ -151,7 +161,7 @@ export declare function deploymentsFindErrors({ pathParams: { deploymentId }, co
|
|
|
151
161
|
/**
|
|
152
162
|
* @description Find all Vercel projects
|
|
153
163
|
* @summary Find Vercel Projects
|
|
154
|
-
* {@link
|
|
164
|
+
* {@link /integrations/vercel/projects}
|
|
155
165
|
*/
|
|
156
166
|
export declare function integrationsVercelProjectsFind({ config }: {
|
|
157
167
|
config?: Partial<FetcherConfig> & {
|
|
@@ -161,7 +171,7 @@ export declare function integrationsVercelProjectsFind({ config }: {
|
|
|
161
171
|
/**
|
|
162
172
|
* @description Create a new Vercel project
|
|
163
173
|
* @summary Create Vercel Project
|
|
164
|
-
* {@link
|
|
174
|
+
* {@link /integrations/vercel/projects}
|
|
165
175
|
*/
|
|
166
176
|
export declare function integrationsVercelProjectsCreate({ config }: {
|
|
167
177
|
config?: Partial<FetcherConfig> & {
|
|
@@ -171,7 +181,7 @@ export declare function integrationsVercelProjectsCreate({ config }: {
|
|
|
171
181
|
/**
|
|
172
182
|
* @description Find all projects
|
|
173
183
|
* @summary Find Projects
|
|
174
|
-
* {@link projects}
|
|
184
|
+
* {@link /projects}
|
|
175
185
|
*/
|
|
176
186
|
export declare function projectsFind({ config }: {
|
|
177
187
|
config?: Partial<FetcherConfig> & {
|
|
@@ -181,7 +191,7 @@ export declare function projectsFind({ config }: {
|
|
|
181
191
|
/**
|
|
182
192
|
* @description Create a new project
|
|
183
193
|
* @summary Create Project
|
|
184
|
-
* {@link projects}
|
|
194
|
+
* {@link /projects}
|
|
185
195
|
*/
|
|
186
196
|
export declare function projectsCreate({ config }: {
|
|
187
197
|
config?: Partial<FetcherConfig> & {
|
|
@@ -191,9 +201,9 @@ export declare function projectsCreate({ config }: {
|
|
|
191
201
|
/**
|
|
192
202
|
* @description Assign a project to a chat
|
|
193
203
|
* @summary Assign Project to Chat
|
|
194
|
-
* {@link
|
|
204
|
+
* {@link /projects/:projectId/assign}
|
|
195
205
|
*/
|
|
196
|
-
export declare function projectsAssign({ pathParams: { projectId }, config
|
|
206
|
+
export declare function projectsAssign({ pathParams: { projectId }, config }: {
|
|
197
207
|
pathParams: ProjectsAssignPathParams;
|
|
198
208
|
config?: Partial<FetcherConfig> & {
|
|
199
209
|
client?: typeof client;
|
|
@@ -202,10 +212,10 @@ export declare function projectsAssign({ pathParams: { projectId }, config, }: {
|
|
|
202
212
|
/**
|
|
203
213
|
* @description Find the rate limit for a scope
|
|
204
214
|
* @summary Find Rate Limit
|
|
205
|
-
* {@link
|
|
215
|
+
* {@link /rate-limits}
|
|
206
216
|
*/
|
|
207
|
-
export declare function rateLimitsFind({ queryParams, config
|
|
208
|
-
queryParams?: RateLimitsFindQueryParams;
|
|
217
|
+
export declare function rateLimitsFind({ queryParams, config }: {
|
|
218
|
+
queryParams?: RateLimitsFindQueryParams | undefined;
|
|
209
219
|
config?: Partial<FetcherConfig> & {
|
|
210
220
|
client?: typeof client;
|
|
211
221
|
};
|
|
@@ -213,7 +223,7 @@ export declare function rateLimitsFind({ queryParams, config, }: {
|
|
|
213
223
|
/**
|
|
214
224
|
* @description Get the user
|
|
215
225
|
* @summary Get User
|
|
216
|
-
* {@link user}
|
|
226
|
+
* {@link /user}
|
|
217
227
|
*/
|
|
218
228
|
export declare function userGet({ config }: {
|
|
219
229
|
config?: Partial<FetcherConfig> & {
|
|
@@ -223,10 +233,10 @@ export declare function userGet({ config }: {
|
|
|
223
233
|
/**
|
|
224
234
|
* @description Get the billing for the user
|
|
225
235
|
* @summary Get Billing
|
|
226
|
-
* {@link
|
|
236
|
+
* {@link /user/billing}
|
|
227
237
|
*/
|
|
228
|
-
export declare function userGetBilling({ queryParams, config
|
|
229
|
-
queryParams?: UserGetBillingQueryParams;
|
|
238
|
+
export declare function userGetBilling({ queryParams, config }: {
|
|
239
|
+
queryParams?: UserGetBillingQueryParams | undefined;
|
|
230
240
|
config?: Partial<FetcherConfig> & {
|
|
231
241
|
client?: typeof client;
|
|
232
242
|
};
|
|
@@ -234,7 +244,7 @@ export declare function userGetBilling({ queryParams, config, }: {
|
|
|
234
244
|
/**
|
|
235
245
|
* @description Get the plan for the user
|
|
236
246
|
* @summary Get Plan
|
|
237
|
-
* {@link
|
|
247
|
+
* {@link /user/plan}
|
|
238
248
|
*/
|
|
239
249
|
export declare function userGetPlan({ config }: {
|
|
240
250
|
config?: Partial<FetcherConfig> & {
|
|
@@ -244,7 +254,7 @@ export declare function userGetPlan({ config }: {
|
|
|
244
254
|
/**
|
|
245
255
|
* @description Get all scopes for the user
|
|
246
256
|
* @summary Get User Scopes
|
|
247
|
-
* {@link
|
|
257
|
+
* {@link /user/scopes}
|
|
248
258
|
*/
|
|
249
259
|
export declare function userGetScopes({ config }: {
|
|
250
260
|
config?: Partial<FetcherConfig> & {
|
|
@@ -252,34 +262,36 @@ export declare function userGetScopes({ config }: {
|
|
|
252
262
|
};
|
|
253
263
|
}): Promise<unknown>;
|
|
254
264
|
export declare const operationsByPath: {
|
|
255
|
-
'POST chats': typeof chatsCreate;
|
|
256
|
-
'GET chats': typeof chatsFind;
|
|
257
|
-
'
|
|
258
|
-
'
|
|
259
|
-
'
|
|
260
|
-
'
|
|
261
|
-
'
|
|
262
|
-
'
|
|
263
|
-
'
|
|
264
|
-
'
|
|
265
|
-
'
|
|
266
|
-
'
|
|
267
|
-
'GET
|
|
268
|
-
'GET
|
|
269
|
-
'
|
|
270
|
-
'
|
|
271
|
-
'
|
|
272
|
-
'POST
|
|
273
|
-
'
|
|
274
|
-
'GET
|
|
275
|
-
'GET
|
|
276
|
-
'GET
|
|
277
|
-
'GET
|
|
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;
|
|
278
289
|
};
|
|
279
290
|
export declare const operationsByTag: {
|
|
280
291
|
chats: {
|
|
281
292
|
chatsCreate: typeof chatsCreate;
|
|
282
293
|
chatsFind: typeof chatsFind;
|
|
294
|
+
chatsInitCreate: typeof chatsInitCreate;
|
|
283
295
|
chatsDelete: typeof chatsDelete;
|
|
284
296
|
chatsGetById: typeof chatsGetById;
|
|
285
297
|
chatsUpdate: typeof chatsUpdate;
|
|
@@ -315,7 +327,7 @@ export declare const operationsByTag: {
|
|
|
315
327
|
};
|
|
316
328
|
export declare const tagDictionary: {
|
|
317
329
|
readonly chats: {
|
|
318
|
-
readonly POST: readonly ["chatsCreate", "chatsFork", "chatsSendMessage", "chatsResume"];
|
|
330
|
+
readonly POST: readonly ["chatsCreate", "chatsInitCreate", "chatsFork", "chatsSendMessage", "chatsResume"];
|
|
319
331
|
readonly GET: readonly ["chatsFind", "chatsGetById", "chatsGetMetadata"];
|
|
320
332
|
readonly DELETE: readonly ["chatsDelete"];
|
|
321
333
|
readonly PATCH: readonly ["chatsUpdate"];
|