v0-api 0.0.3 → 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 (58) hide show
  1. package/dist/index.cjs +548 -0
  2. package/dist/index.d.cts +4394 -0
  3. package/dist/index.d.mts +4276 -117
  4. package/dist/index.d.ts +4276 -117
  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 -1
  9. package/dist/mcp.d.ts +5 -1
  10. package/dist/mcp.mjs +517 -1
  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 +27 -18
  17. package/dist/client.d.mts +0 -58
  18. package/dist/client.d.ts +0 -58
  19. package/dist/client.js +0 -53
  20. package/dist/client.mjs +0 -46
  21. package/dist/generated/components.d.mts +0 -353
  22. package/dist/generated/components.d.ts +0 -353
  23. package/dist/generated/components.js +0 -449
  24. package/dist/generated/components.mjs +0 -419
  25. package/dist/generated/mcp.d.mts +0 -261
  26. package/dist/generated/mcp.d.ts +0 -261
  27. package/dist/generated/mcp.js +0 -554
  28. package/dist/generated/mcp.mjs +0 -524
  29. package/dist/generated/schemas.d.mts +0 -1484
  30. package/dist/generated/schemas.d.ts +0 -1484
  31. package/dist/generated/schemas.js +0 -1133
  32. package/dist/generated/schemas.mjs +0 -1125
  33. package/dist/generated/types.d.mts +0 -1669
  34. package/dist/generated/types.d.ts +0 -1669
  35. package/dist/generated/types.js +0 -93
  36. package/dist/generated/types.mjs +0 -90
  37. package/dist/index.js +0 -49
  38. package/dist/mcp.js +0 -5
  39. package/dist/utils/fetch.d.mts +0 -18
  40. package/dist/utils/fetch.d.ts +0 -18
  41. package/dist/utils/fetch.js +0 -8
  42. package/dist/utils/fetch.mjs +0 -5
  43. package/dist/utils/fetcher.d.mts +0 -22
  44. package/dist/utils/fetcher.d.ts +0 -22
  45. package/dist/utils/fetcher.js +0 -68
  46. package/dist/utils/fetcher.mjs +0 -65
  47. package/dist/utils/lang.d.mts +0 -1
  48. package/dist/utils/lang.d.ts +0 -1
  49. package/dist/utils/lang.js +0 -9
  50. package/dist/utils/lang.mjs +0 -6
  51. package/dist/utils/mcp.d.mts +0 -1
  52. package/dist/utils/mcp.d.ts +0 -1
  53. package/dist/utils/mcp.js +0 -2
  54. package/dist/utils/mcp.mjs +0 -1
  55. package/dist/utils/types.d.mts +0 -3
  56. package/dist/utils/types.d.ts +0 -3
  57. package/dist/utils/types.js +0 -2
  58. package/dist/utils/types.mjs +0 -1
@@ -1,261 +0,0 @@
1
- import type { FetcherConfig } from "../utils/fetcher.js";
2
- import client from "../utils/fetcher.js";
3
- import type { CallToolResult } from "../utils/mcp.js";
4
- import type { ChatsDeletePathParams, ChatsFavoritePathParams, ChatsFindQueryParams, ChatsForkPathParams, ChatsGetByIdPathParams, ChatsGetMetadataPathParams, ChatsResumePathParams, ChatsSendMessagePathParams, ChatsUpdatePathParams, DeploymentsFindErrorsPathParams, DeploymentsFindLogsPathParams, DeploymentsFindLogsQueryParams, ProjectsAssignPathParams, ProjectsGetByChatIdPathParams, RateLimitsFindQueryParams, UserGetBillingQueryParams } from "./types.js";
5
- /**
6
- * @description Create a new chat
7
- * @summary Create Chat
8
- * {@link /chats}
9
- */
10
- export declare function chatsCreate({ config }: {
11
- config?: Partial<FetcherConfig> & {
12
- client?: typeof client;
13
- };
14
- }): Promise<Promise<CallToolResult>>;
15
- /**
16
- * @description Find all chats
17
- * @summary Find Chats
18
- * {@link /chats}
19
- */
20
- export declare function chatsFind({ queryParams, config }: {
21
- queryParams?: ChatsFindQueryParams | undefined;
22
- config?: Partial<FetcherConfig> & {
23
- client?: typeof client;
24
- };
25
- }): Promise<Promise<CallToolResult>>;
26
- /**
27
- * @description Initialize a new chat from files
28
- * @summary Initialize Chat
29
- * {@link /chats/init}
30
- */
31
- export declare function chatsInitCreate({ config }: {
32
- config?: Partial<FetcherConfig> & {
33
- client?: typeof client;
34
- };
35
- }): Promise<Promise<CallToolResult>>;
36
- /**
37
- * @description Delete a chat
38
- * @summary Delete Chat
39
- * {@link /chats/:chatId}
40
- */
41
- export declare function chatsDelete({ pathParams: { chatId }, config }: {
42
- pathParams: ChatsDeletePathParams;
43
- config?: Partial<FetcherConfig> & {
44
- client?: typeof client;
45
- };
46
- }): Promise<Promise<CallToolResult>>;
47
- /**
48
- * @description Get a chat
49
- * @summary Get Chat
50
- * {@link /chats/:chatId}
51
- */
52
- export declare function chatsGetById({ pathParams: { chatId }, config }: {
53
- pathParams: ChatsGetByIdPathParams;
54
- config?: Partial<FetcherConfig> & {
55
- client?: typeof client;
56
- };
57
- }): Promise<Promise<CallToolResult>>;
58
- /**
59
- * @description Update a chat
60
- * @summary Update Chat
61
- * {@link /chats/:chatId}
62
- */
63
- export declare function chatsUpdate({ pathParams: { chatId }, config }: {
64
- pathParams: ChatsUpdatePathParams;
65
- config?: Partial<FetcherConfig> & {
66
- client?: typeof client;
67
- };
68
- }): Promise<Promise<CallToolResult>>;
69
- /**
70
- * @description Favorite a chat
71
- * @summary Favorite Chat
72
- * {@link /chats/:chatId/favorite}
73
- */
74
- export declare function chatsFavorite({ pathParams: { chatId }, config }: {
75
- pathParams: ChatsFavoritePathParams;
76
- config?: Partial<FetcherConfig> & {
77
- client?: typeof client;
78
- };
79
- }): Promise<Promise<CallToolResult>>;
80
- /**
81
- * @description Fork a version in a chat
82
- * @summary Fork Chat
83
- * {@link /chats/:chatId/fork}
84
- */
85
- export declare function chatsFork({ pathParams: { chatId }, config }: {
86
- pathParams: ChatsForkPathParams;
87
- config?: Partial<FetcherConfig> & {
88
- client?: typeof client;
89
- };
90
- }): Promise<Promise<CallToolResult>>;
91
- /**
92
- * @description Get the project for a chat
93
- * @summary Get Project by Chat ID
94
- * {@link /chats/:chatId/project}
95
- */
96
- export declare function projectsGetByChatId({ pathParams: { chatId }, config }: {
97
- pathParams: ProjectsGetByChatIdPathParams;
98
- config?: Partial<FetcherConfig> & {
99
- client?: typeof client;
100
- };
101
- }): Promise<Promise<CallToolResult>>;
102
- /**
103
- * @description Create a new message in a chat
104
- * @summary Create Message
105
- * {@link /chats/:chatId/messages}
106
- */
107
- export declare function chatsSendMessage({ pathParams: { chatId }, config }: {
108
- pathParams: ChatsSendMessagePathParams;
109
- config?: Partial<FetcherConfig> & {
110
- client?: typeof client;
111
- };
112
- }): Promise<Promise<CallToolResult>>;
113
- /**
114
- * @description Get the metadata for a chat
115
- * @summary Get Chat Metadata
116
- * {@link /chats/:chatId/metadata}
117
- */
118
- export declare function chatsGetMetadata({ pathParams: { chatId }, config }: {
119
- pathParams: ChatsGetMetadataPathParams;
120
- config?: Partial<FetcherConfig> & {
121
- client?: typeof client;
122
- };
123
- }): Promise<Promise<CallToolResult>>;
124
- /**
125
- * @description Resume a chat message
126
- * @summary Resume Chat Message
127
- * {@link /chats/:chatId/messages/:messageId/resume}
128
- */
129
- export declare function chatsResume({ pathParams: { chatId, messageId }, config }: {
130
- pathParams: ChatsResumePathParams;
131
- config?: Partial<FetcherConfig> & {
132
- client?: typeof client;
133
- };
134
- }): Promise<Promise<CallToolResult>>;
135
- /**
136
- * @description Find logs for a deployment
137
- * @summary Find Deployment Logs
138
- * {@link /deployments/:deploymentId/logs}
139
- */
140
- export declare function deploymentsFindLogs({ pathParams: { deploymentId }, queryParams, config }: {
141
- pathParams: DeploymentsFindLogsPathParams;
142
- queryParams?: DeploymentsFindLogsQueryParams | undefined;
143
- config?: Partial<FetcherConfig> & {
144
- client?: typeof client;
145
- };
146
- }): Promise<Promise<CallToolResult>>;
147
- /**
148
- * @description Find errors for a deployment
149
- * @summary Find Deployment Errors
150
- * {@link /deployments/:deploymentId/errors}
151
- */
152
- export declare function deploymentsFindErrors({ pathParams: { deploymentId }, config }: {
153
- pathParams: DeploymentsFindErrorsPathParams;
154
- config?: Partial<FetcherConfig> & {
155
- client?: typeof client;
156
- };
157
- }): Promise<Promise<CallToolResult>>;
158
- /**
159
- * @description Find all Vercel projects
160
- * @summary Find Vercel Projects
161
- * {@link /integrations/vercel/projects}
162
- */
163
- export declare function integrationsVercelProjectsFind({ config }: {
164
- config?: Partial<FetcherConfig> & {
165
- client?: typeof client;
166
- };
167
- }): Promise<Promise<CallToolResult>>;
168
- /**
169
- * @description Create a new Vercel project
170
- * @summary Create Vercel Project
171
- * {@link /integrations/vercel/projects}
172
- */
173
- export declare function integrationsVercelProjectsCreate({ config }: {
174
- config?: Partial<FetcherConfig> & {
175
- client?: typeof client;
176
- };
177
- }): Promise<Promise<CallToolResult>>;
178
- /**
179
- * @description Find all projects
180
- * @summary Find Projects
181
- * {@link /projects}
182
- */
183
- export declare function projectsFind({ config }: {
184
- config?: Partial<FetcherConfig> & {
185
- client?: typeof client;
186
- };
187
- }): Promise<Promise<CallToolResult>>;
188
- /**
189
- * @description Create a new project
190
- * @summary Create Project
191
- * {@link /projects}
192
- */
193
- export declare function projectsCreate({ config }: {
194
- config?: Partial<FetcherConfig> & {
195
- client?: typeof client;
196
- };
197
- }): Promise<Promise<CallToolResult>>;
198
- /**
199
- * @description Assign a project to a chat
200
- * @summary Assign Project to Chat
201
- * {@link /projects/:projectId/assign}
202
- */
203
- export declare function projectsAssign({ pathParams: { projectId }, config }: {
204
- pathParams: ProjectsAssignPathParams;
205
- config?: Partial<FetcherConfig> & {
206
- client?: typeof client;
207
- };
208
- }): Promise<Promise<CallToolResult>>;
209
- /**
210
- * @description Find the rate limit for a scope
211
- * @summary Find Rate Limit
212
- * {@link /rate-limits}
213
- */
214
- export declare function rateLimitsFind({ queryParams, config }: {
215
- queryParams?: RateLimitsFindQueryParams | undefined;
216
- config?: Partial<FetcherConfig> & {
217
- client?: typeof client;
218
- };
219
- }): Promise<Promise<CallToolResult>>;
220
- /**
221
- * @description Get the user
222
- * @summary Get User
223
- * {@link /user}
224
- */
225
- export declare function userGet({ config }: {
226
- config?: Partial<FetcherConfig> & {
227
- client?: typeof client;
228
- };
229
- }): Promise<Promise<CallToolResult>>;
230
- /**
231
- * @description Get the billing for the user
232
- * @summary Get Billing
233
- * {@link /user/billing}
234
- */
235
- export declare function userGetBilling({ queryParams, config }: {
236
- queryParams?: UserGetBillingQueryParams | undefined;
237
- config?: Partial<FetcherConfig> & {
238
- client?: typeof client;
239
- };
240
- }): Promise<Promise<CallToolResult>>;
241
- /**
242
- * @description Get the plan for the user
243
- * @summary Get Plan
244
- * {@link /user/plan}
245
- */
246
- export declare function userGetPlan({ config }: {
247
- config?: Partial<FetcherConfig> & {
248
- client?: typeof client;
249
- };
250
- }): Promise<Promise<CallToolResult>>;
251
- /**
252
- * @description Get all scopes for the user
253
- * @summary Get User Scopes
254
- * {@link /user/scopes}
255
- */
256
- export declare function userGetScopes({ config }: {
257
- config?: Partial<FetcherConfig> & {
258
- client?: typeof client;
259
- };
260
- }): Promise<Promise<CallToolResult>>;
261
- export declare function initMcpTools<Server>(serverLike: Server, config: FetcherConfig): void;