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,362 +0,0 @@
1
- /**
2
- * Generated by Kubb (https://kubb.dev/).
3
- * Do not edit manually.
4
- */
5
- import client from "../utils/fetcher.mjs";
6
- /**
7
- * @description Create a new chat
8
- * @summary Create Chat
9
- * {@link chats}
10
- */
11
- export async function chatsCreate({ config = {} }) {
12
- const { client: request = client, ...requestConfig } = config;
13
- const data = await request({ method: 'POST', url: `chats`, ...requestConfig, headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers } });
14
- return data;
15
- }
16
- /**
17
- * @description Find all chats
18
- * @summary Find Chats
19
- * {@link chats}
20
- */
21
- export async function chatsFind({ queryParams, config = {}, }) {
22
- const { client: request = client, ...requestConfig } = config;
23
- const data = await request({ method: 'GET', url: `chats`, queryParams, ...requestConfig });
24
- return data;
25
- }
26
- /**
27
- * @description Delete a chat
28
- * @summary Delete Chat
29
- * {@link chatsChatId}
30
- */
31
- export async function chatsDelete({ pathParams: { chatId }, config = {}, }) {
32
- const { client: request = client, ...requestConfig } = config;
33
- if (!chatId) {
34
- throw new Error(`Missing required path parameter: chatId`);
35
- }
36
- const data = await request({ method: 'DELETE', url: `chatsChatId`, ...requestConfig });
37
- return data;
38
- }
39
- /**
40
- * @description Get a chat
41
- * @summary Get Chat
42
- * {@link chatsChatId}
43
- */
44
- export async function chatsGetById({ pathParams: { chatId }, config = {}, }) {
45
- const { client: request = client, ...requestConfig } = config;
46
- if (!chatId) {
47
- throw new Error(`Missing required path parameter: chatId`);
48
- }
49
- const data = await request({ method: 'GET', url: `chatsChatId`, ...requestConfig });
50
- return data;
51
- }
52
- /**
53
- * @description Update a chat
54
- * @summary Update Chat
55
- * {@link chatsChatId}
56
- */
57
- export async function chatsUpdate({ pathParams: { chatId }, config = {}, }) {
58
- const { client: request = client, ...requestConfig } = config;
59
- if (!chatId) {
60
- throw new Error(`Missing required path parameter: chatId`);
61
- }
62
- const data = await request({ method: 'PATCH', url: `chatsChatId`, ...requestConfig, headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers } });
63
- return data;
64
- }
65
- /**
66
- * @description Favorite a chat
67
- * @summary Favorite Chat
68
- * {@link chatsChatIdFavorite}
69
- */
70
- export async function chatsFavorite({ pathParams: { chatId }, config = {}, }) {
71
- const { client: request = client, ...requestConfig } = config;
72
- if (!chatId) {
73
- throw new Error(`Missing required path parameter: chatId`);
74
- }
75
- const data = await request({ method: 'PUT', url: `chatsChatIdFavorite`, ...requestConfig, headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers } });
76
- return data;
77
- }
78
- /**
79
- * @description Fork a version in a chat
80
- * @summary Fork Chat
81
- * {@link chatsChatIdFork}
82
- */
83
- export async function chatsFork({ pathParams: { chatId }, config = {}, }) {
84
- const { client: request = client, ...requestConfig } = config;
85
- if (!chatId) {
86
- throw new Error(`Missing required path parameter: chatId`);
87
- }
88
- const data = await request({ method: 'POST', url: `chatsChatIdFork`, ...requestConfig, headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers } });
89
- return data;
90
- }
91
- /**
92
- * @description Get the project for a chat
93
- * @summary Get Project by Chat ID
94
- * {@link chatsChatIdProject}
95
- */
96
- export async function projectsGetByChatId({ pathParams: { chatId }, config = {}, }) {
97
- const { client: request = client, ...requestConfig } = config;
98
- if (!chatId) {
99
- throw new Error(`Missing required path parameter: chatId`);
100
- }
101
- const data = await request({ method: 'GET', url: `chatsChatIdProject`, ...requestConfig });
102
- return data;
103
- }
104
- /**
105
- * @description Create a new message in a chat
106
- * @summary Create Message
107
- * {@link chatsChatIdMessages}
108
- */
109
- export async function chatsSendMessage({ pathParams: { chatId }, config = {}, }) {
110
- const { client: request = client, ...requestConfig } = config;
111
- if (!chatId) {
112
- throw new Error(`Missing required path parameter: chatId`);
113
- }
114
- const data = await request({ method: 'POST', url: `chatsChatIdMessages`, ...requestConfig, headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers } });
115
- return data;
116
- }
117
- /**
118
- * @description Get the metadata for a chat
119
- * @summary Get Chat Metadata
120
- * {@link chatsChatIdMetadata}
121
- */
122
- export async function chatsGetMetadata({ pathParams: { chatId }, config = {}, }) {
123
- const { client: request = client, ...requestConfig } = config;
124
- if (!chatId) {
125
- throw new Error(`Missing required path parameter: chatId`);
126
- }
127
- const data = await request({ method: 'GET', url: `chatsChatIdMetadata`, ...requestConfig });
128
- return data;
129
- }
130
- /**
131
- * @description Resume a chat message
132
- * @summary Resume Chat Message
133
- * {@link chatsChatIdMessagesMessageIdResume}
134
- */
135
- export async function chatsResume({ pathParams: { chatId, messageId }, config = {}, }) {
136
- const { client: request = client, ...requestConfig } = config;
137
- if (!chatId) {
138
- throw new Error(`Missing required path parameter: chatId`);
139
- }
140
- if (!messageId) {
141
- throw new Error(`Missing required path parameter: messageId`);
142
- }
143
- const data = await request({ method: 'POST', url: `chatsChatIdMessagesMessageIdResume`, ...requestConfig });
144
- return data;
145
- }
146
- /**
147
- * @description Find logs for a deployment
148
- * @summary Find Deployment Logs
149
- * {@link deploymentsDeploymentIdLogs}
150
- */
151
- export async function deploymentsFindLogs({ pathParams: { deploymentId }, queryParams, config = {}, }) {
152
- const { client: request = client, ...requestConfig } = config;
153
- if (!deploymentId) {
154
- throw new Error(`Missing required path parameter: deploymentId`);
155
- }
156
- const data = await request({ method: 'GET', url: `deploymentsDeploymentIdLogs`, queryParams, ...requestConfig });
157
- return data;
158
- }
159
- /**
160
- * @description Find errors for a deployment
161
- * @summary Find Deployment Errors
162
- * {@link deploymentsDeploymentIdErrors}
163
- */
164
- export async function deploymentsFindErrors({ pathParams: { deploymentId }, config = {}, }) {
165
- const { client: request = client, ...requestConfig } = config;
166
- if (!deploymentId) {
167
- throw new Error(`Missing required path parameter: deploymentId`);
168
- }
169
- const data = await request({ method: 'GET', url: `deploymentsDeploymentIdErrors`, ...requestConfig });
170
- return data;
171
- }
172
- /**
173
- * @description Find all Vercel projects
174
- * @summary Find Vercel Projects
175
- * {@link integrationsVercelProjects}
176
- */
177
- export async function integrationsVercelProjectsFind({ config = {} }) {
178
- const { client: request = client, ...requestConfig } = config;
179
- const data = await request({ method: 'GET', url: `integrationsVercelProjects`, ...requestConfig });
180
- return data;
181
- }
182
- /**
183
- * @description Create a new Vercel project
184
- * @summary Create Vercel Project
185
- * {@link integrationsVercelProjects}
186
- */
187
- export async function integrationsVercelProjectsCreate({ config = {} }) {
188
- const { client: request = client, ...requestConfig } = config;
189
- const data = await request({ method: 'POST', url: `integrationsVercelProjects`, ...requestConfig, headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers } });
190
- return data;
191
- }
192
- /**
193
- * @description Find all projects
194
- * @summary Find Projects
195
- * {@link projects}
196
- */
197
- export async function projectsFind({ config = {} }) {
198
- const { client: request = client, ...requestConfig } = config;
199
- const data = await request({ method: 'GET', url: `projects`, ...requestConfig });
200
- return data;
201
- }
202
- /**
203
- * @description Create a new project
204
- * @summary Create Project
205
- * {@link projects}
206
- */
207
- export async function projectsCreate({ config = {} }) {
208
- const { client: request = client, ...requestConfig } = config;
209
- const data = await request({ method: 'POST', url: `projects`, ...requestConfig, headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers } });
210
- return data;
211
- }
212
- /**
213
- * @description Assign a project to a chat
214
- * @summary Assign Project to Chat
215
- * {@link projectsProjectIdAssign}
216
- */
217
- export async function projectsAssign({ pathParams: { projectId }, config = {}, }) {
218
- const { client: request = client, ...requestConfig } = config;
219
- if (!projectId) {
220
- throw new Error(`Missing required path parameter: projectId`);
221
- }
222
- const data = await request({ method: 'POST', url: `projectsProjectIdAssign`, ...requestConfig, headers: { 'Content-Type': 'applicationJson', ...requestConfig.headers } });
223
- return data;
224
- }
225
- /**
226
- * @description Find the rate limit for a scope
227
- * @summary Find Rate Limit
228
- * {@link rateLimits}
229
- */
230
- export async function rateLimitsFind({ queryParams, config = {}, }) {
231
- const { client: request = client, ...requestConfig } = config;
232
- const data = await request({ method: 'GET', url: `rateLimits`, queryParams, ...requestConfig });
233
- return data;
234
- }
235
- /**
236
- * @description Get the user
237
- * @summary Get User
238
- * {@link user}
239
- */
240
- export async function userGet({ config = {} }) {
241
- const { client: request = client, ...requestConfig } = config;
242
- const data = await request({ method: 'GET', url: `user`, ...requestConfig });
243
- return data;
244
- }
245
- /**
246
- * @description Get the billing for the user
247
- * @summary Get Billing
248
- * {@link userBilling}
249
- */
250
- export async function userGetBilling({ queryParams, config = {}, }) {
251
- const { client: request = client, ...requestConfig } = config;
252
- const data = await request({ method: 'GET', url: `userBilling`, queryParams, ...requestConfig });
253
- return data;
254
- }
255
- /**
256
- * @description Get the plan for the user
257
- * @summary Get Plan
258
- * {@link userPlan}
259
- */
260
- export async function userGetPlan({ config = {} }) {
261
- const { client: request = client, ...requestConfig } = config;
262
- const data = await request({ method: 'GET', url: `userPlan`, ...requestConfig });
263
- return data;
264
- }
265
- /**
266
- * @description Get all scopes for the user
267
- * @summary Get User Scopes
268
- * {@link userScopes}
269
- */
270
- export async function userGetScopes({ config = {} }) {
271
- const { client: request = client, ...requestConfig } = config;
272
- const data = await request({ method: 'GET', url: `userScopes`, ...requestConfig });
273
- return data;
274
- }
275
- export const operationsByPath = {
276
- 'POST chats': chatsCreate,
277
- 'GET chats': chatsFind,
278
- 'DELETE chatsChatId': chatsDelete,
279
- 'GET chatsChatId': chatsGetById,
280
- 'PATCH chatsChatId': chatsUpdate,
281
- 'PUT chatsChatIdFavorite': chatsFavorite,
282
- 'POST chatsChatIdFork': chatsFork,
283
- 'GET chatsChatIdProject': projectsGetByChatId,
284
- 'POST chatsChatIdMessages': chatsSendMessage,
285
- 'GET chatsChatIdMetadata': chatsGetMetadata,
286
- 'POST chatsChatIdMessagesMessageIdResume': chatsResume,
287
- 'GET deploymentsDeploymentIdLogs': deploymentsFindLogs,
288
- 'GET deploymentsDeploymentIdErrors': deploymentsFindErrors,
289
- 'GET integrationsVercelProjects': integrationsVercelProjectsFind,
290
- 'POST integrationsVercelProjects': integrationsVercelProjectsCreate,
291
- 'GET projects': projectsFind,
292
- 'POST projects': projectsCreate,
293
- 'POST projectsProjectIdAssign': projectsAssign,
294
- 'GET rateLimits': rateLimitsFind,
295
- 'GET user': userGet,
296
- 'GET userBilling': userGetBilling,
297
- 'GET userPlan': userGetPlan,
298
- 'GET userScopes': userGetScopes,
299
- };
300
- export const operationsByTag = {
301
- chats: {
302
- chatsCreate,
303
- chatsFind,
304
- chatsDelete,
305
- chatsGetById,
306
- chatsUpdate,
307
- chatsFavorite,
308
- chatsFork,
309
- chatsSendMessage,
310
- chatsGetMetadata,
311
- chatsResume,
312
- },
313
- projects: {
314
- projectsGetByChatId,
315
- projectsFind,
316
- projectsCreate,
317
- projectsAssign,
318
- },
319
- deployments: {
320
- deploymentsFindLogs,
321
- deploymentsFindErrors,
322
- },
323
- integrations: {
324
- integrationsVercelProjectsFind,
325
- integrationsVercelProjectsCreate,
326
- },
327
- ratelimits: {
328
- rateLimitsFind,
329
- },
330
- user: {
331
- userGet,
332
- userGetBilling,
333
- userGetPlan,
334
- userGetScopes,
335
- },
336
- };
337
- export const tagDictionary = {
338
- chats: {
339
- POST: ['chatsCreate', 'chatsFork', 'chatsSendMessage', 'chatsResume'],
340
- GET: ['chatsFind', 'chatsGetById', 'chatsGetMetadata'],
341
- DELETE: ['chatsDelete'],
342
- PATCH: ['chatsUpdate'],
343
- PUT: ['chatsFavorite'],
344
- },
345
- projects: {
346
- GET: ['projectsGetByChatId', 'projectsFind'],
347
- POST: ['projectsCreate', 'projectsAssign'],
348
- },
349
- deployments: {
350
- GET: ['deploymentsFindLogs', 'deploymentsFindErrors'],
351
- },
352
- integrations: {
353
- GET: ['integrationsVercelProjectsFind'],
354
- POST: ['integrationsVercelProjectsCreate'],
355
- },
356
- ratelimits: {
357
- GET: ['rateLimitsFind'],
358
- },
359
- user: {
360
- GET: ['userGet', 'userGetBilling', 'userGetPlan', 'userGetScopes'],
361
- },
362
- };