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