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
|
@@ -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.js";
|
|
6
|
-
import client from "../utils/fetcher.js";
|
|
7
|
-
import type { ChatsDeletePathParams, ChatsFavoritePathParams, ChatsFindQueryParams, ChatsForkPathParams, ChatsGetByIdPathParams, ChatsGetMetadataPathParams, ChatsResumePathParams, ChatsSendMessagePathParams, ChatsUpdatePathParams, DeploymentsFindErrorsPathParams, DeploymentsFindLogsPathParams, DeploymentsFindLogsQueryParams, ProjectsAssignPathParams, ProjectsGetByChatIdPathParams, RateLimitsFindQueryParams, UserGetBillingQueryParams } from "./types.js";
|
|
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
|
-
};
|