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.
Files changed (49) hide show
  1. package/dist/index.cjs +548 -0
  2. package/dist/index.d.cts +4394 -0
  3. package/dist/index.d.mts +4295 -129
  4. package/dist/index.d.ts +4295 -129
  5. package/dist/index.mjs +541 -5
  6. package/dist/mcp.cjs +519 -0
  7. package/dist/mcp.d.cts +5 -0
  8. package/dist/mcp.d.mts +5 -0
  9. package/dist/mcp.d.ts +5 -0
  10. package/dist/mcp.mjs +517 -0
  11. package/dist/shared/v0-api.B8nEbJhM.d.cts +36 -0
  12. package/dist/shared/v0-api.B8nEbJhM.d.mts +36 -0
  13. package/dist/shared/v0-api.B8nEbJhM.d.ts +36 -0
  14. package/dist/shared/v0-api.D3CFh7k4.cjs +833 -0
  15. package/dist/shared/v0-api.mzMaOyDB.mjs +814 -0
  16. package/package.json +31 -12
  17. package/dist/client.d.mts +0 -57
  18. package/dist/client.d.ts +0 -57
  19. package/dist/client.js +0 -53
  20. package/dist/client.mjs +0 -46
  21. package/dist/generated/components.d.mts +0 -341
  22. package/dist/generated/components.d.ts +0 -341
  23. package/dist/generated/components.js +0 -391
  24. package/dist/generated/components.mjs +0 -362
  25. package/dist/generated/schemas.d.mts +0 -1115
  26. package/dist/generated/schemas.d.ts +0 -1115
  27. package/dist/generated/schemas.js +0 -1096
  28. package/dist/generated/schemas.mjs +0 -1088
  29. package/dist/generated/types.d.mts +0 -1628
  30. package/dist/generated/types.d.ts +0 -1628
  31. package/dist/generated/types.js +0 -93
  32. package/dist/generated/types.mjs +0 -90
  33. package/dist/index.js +0 -49
  34. package/dist/utils/fetch.d.mts +0 -18
  35. package/dist/utils/fetch.d.ts +0 -18
  36. package/dist/utils/fetch.js +0 -8
  37. package/dist/utils/fetch.mjs +0 -5
  38. package/dist/utils/fetcher.d.mts +0 -22
  39. package/dist/utils/fetcher.d.ts +0 -22
  40. package/dist/utils/fetcher.js +0 -68
  41. package/dist/utils/fetcher.mjs +0 -65
  42. package/dist/utils/lang.d.mts +0 -1
  43. package/dist/utils/lang.d.ts +0 -1
  44. package/dist/utils/lang.js +0 -9
  45. package/dist/utils/lang.mjs +0 -6
  46. package/dist/utils/types.d.mts +0 -3
  47. package/dist/utils/types.d.ts +0 -3
  48. package/dist/utils/types.js +0 -2
  49. package/dist/utils/types.mjs +0 -1
@@ -1,341 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import client from "../utils/fetcher.js";
6
- import type { FetcherConfig } from "../utils/fetcher.js";
7
- import type { ChatsFindQueryParams, ChatsDeletePathParams, ChatsGetByIdPathParams, ChatsUpdatePathParams, ChatsFavoritePathParams, ChatsForkPathParams, ProjectsGetByChatIdPathParams, ChatsSendMessagePathParams, ChatsGetMetadataPathParams, ChatsResumePathParams, DeploymentsFindLogsPathParams, DeploymentsFindLogsQueryParams, DeploymentsFindErrorsPathParams, ProjectsAssignPathParams, 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;
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
- };