v0-api 0.0.2 → 0.0.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.
@@ -2,13 +2,13 @@
2
2
  * Generated by Kubb (https://kubb.dev/).
3
3
  * Do not edit manually.
4
4
  */
5
- import client from "../utils/fetcher.js";
6
5
  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";
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
8
  /**
9
9
  * @description Create a new chat
10
10
  * @summary Create Chat
11
- * {@link chats}
11
+ * {@link /chats}
12
12
  */
13
13
  export declare function chatsCreate({ config }: {
14
14
  config?: Partial<FetcherConfig> & {
@@ -18,10 +18,20 @@ export declare function chatsCreate({ config }: {
18
18
  /**
19
19
  * @description Find all chats
20
20
  * @summary Find Chats
21
- * {@link 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}
22
33
  */
23
- export declare function chatsFind({ queryParams, config, }: {
24
- queryParams?: ChatsFindQueryParams;
34
+ export declare function chatsInitCreate({ config }: {
25
35
  config?: Partial<FetcherConfig> & {
26
36
  client?: typeof client;
27
37
  };
@@ -29,9 +39,9 @@ export declare function chatsFind({ queryParams, config, }: {
29
39
  /**
30
40
  * @description Delete a chat
31
41
  * @summary Delete Chat
32
- * {@link chatsChatId}
42
+ * {@link /chats/:chatId}
33
43
  */
34
- export declare function chatsDelete({ pathParams: { chatId }, config, }: {
44
+ export declare function chatsDelete({ pathParams: { chatId }, config }: {
35
45
  pathParams: ChatsDeletePathParams;
36
46
  config?: Partial<FetcherConfig> & {
37
47
  client?: typeof client;
@@ -40,9 +50,9 @@ export declare function chatsDelete({ pathParams: { chatId }, config, }: {
40
50
  /**
41
51
  * @description Get a chat
42
52
  * @summary Get Chat
43
- * {@link chatsChatId}
53
+ * {@link /chats/:chatId}
44
54
  */
45
- export declare function chatsGetById({ pathParams: { chatId }, config, }: {
55
+ export declare function chatsGetById({ pathParams: { chatId }, config }: {
46
56
  pathParams: ChatsGetByIdPathParams;
47
57
  config?: Partial<FetcherConfig> & {
48
58
  client?: typeof client;
@@ -51,9 +61,9 @@ export declare function chatsGetById({ pathParams: { chatId }, config, }: {
51
61
  /**
52
62
  * @description Update a chat
53
63
  * @summary Update Chat
54
- * {@link chatsChatId}
64
+ * {@link /chats/:chatId}
55
65
  */
56
- export declare function chatsUpdate({ pathParams: { chatId }, config, }: {
66
+ export declare function chatsUpdate({ pathParams: { chatId }, config }: {
57
67
  pathParams: ChatsUpdatePathParams;
58
68
  config?: Partial<FetcherConfig> & {
59
69
  client?: typeof client;
@@ -62,9 +72,9 @@ export declare function chatsUpdate({ pathParams: { chatId }, config, }: {
62
72
  /**
63
73
  * @description Favorite a chat
64
74
  * @summary Favorite Chat
65
- * {@link chatsChatIdFavorite}
75
+ * {@link /chats/:chatId/favorite}
66
76
  */
67
- export declare function chatsFavorite({ pathParams: { chatId }, config, }: {
77
+ export declare function chatsFavorite({ pathParams: { chatId }, config }: {
68
78
  pathParams: ChatsFavoritePathParams;
69
79
  config?: Partial<FetcherConfig> & {
70
80
  client?: typeof client;
@@ -73,9 +83,9 @@ export declare function chatsFavorite({ pathParams: { chatId }, config, }: {
73
83
  /**
74
84
  * @description Fork a version in a chat
75
85
  * @summary Fork Chat
76
- * {@link chatsChatIdFork}
86
+ * {@link /chats/:chatId/fork}
77
87
  */
78
- export declare function chatsFork({ pathParams: { chatId }, config, }: {
88
+ export declare function chatsFork({ pathParams: { chatId }, config }: {
79
89
  pathParams: ChatsForkPathParams;
80
90
  config?: Partial<FetcherConfig> & {
81
91
  client?: typeof client;
@@ -84,9 +94,9 @@ export declare function chatsFork({ pathParams: { chatId }, config, }: {
84
94
  /**
85
95
  * @description Get the project for a chat
86
96
  * @summary Get Project by Chat ID
87
- * {@link chatsChatIdProject}
97
+ * {@link /chats/:chatId/project}
88
98
  */
89
- export declare function projectsGetByChatId({ pathParams: { chatId }, config, }: {
99
+ export declare function projectsGetByChatId({ pathParams: { chatId }, config }: {
90
100
  pathParams: ProjectsGetByChatIdPathParams;
91
101
  config?: Partial<FetcherConfig> & {
92
102
  client?: typeof client;
@@ -95,9 +105,9 @@ export declare function projectsGetByChatId({ pathParams: { chatId }, config, }:
95
105
  /**
96
106
  * @description Create a new message in a chat
97
107
  * @summary Create Message
98
- * {@link chatsChatIdMessages}
108
+ * {@link /chats/:chatId/messages}
99
109
  */
100
- export declare function chatsSendMessage({ pathParams: { chatId }, config, }: {
110
+ export declare function chatsSendMessage({ pathParams: { chatId }, config }: {
101
111
  pathParams: ChatsSendMessagePathParams;
102
112
  config?: Partial<FetcherConfig> & {
103
113
  client?: typeof client;
@@ -106,9 +116,9 @@ export declare function chatsSendMessage({ pathParams: { chatId }, config, }: {
106
116
  /**
107
117
  * @description Get the metadata for a chat
108
118
  * @summary Get Chat Metadata
109
- * {@link chatsChatIdMetadata}
119
+ * {@link /chats/:chatId/metadata}
110
120
  */
111
- export declare function chatsGetMetadata({ pathParams: { chatId }, config, }: {
121
+ export declare function chatsGetMetadata({ pathParams: { chatId }, config }: {
112
122
  pathParams: ChatsGetMetadataPathParams;
113
123
  config?: Partial<FetcherConfig> & {
114
124
  client?: typeof client;
@@ -117,9 +127,9 @@ export declare function chatsGetMetadata({ pathParams: { chatId }, config, }: {
117
127
  /**
118
128
  * @description Resume a chat message
119
129
  * @summary Resume Chat Message
120
- * {@link chatsChatIdMessagesMessageIdResume}
130
+ * {@link /chats/:chatId/messages/:messageId/resume}
121
131
  */
122
- export declare function chatsResume({ pathParams: { chatId, messageId }, config, }: {
132
+ export declare function chatsResume({ pathParams: { chatId, messageId }, config }: {
123
133
  pathParams: ChatsResumePathParams;
124
134
  config?: Partial<FetcherConfig> & {
125
135
  client?: typeof client;
@@ -128,11 +138,11 @@ export declare function chatsResume({ pathParams: { chatId, messageId }, config,
128
138
  /**
129
139
  * @description Find logs for a deployment
130
140
  * @summary Find Deployment Logs
131
- * {@link deploymentsDeploymentIdLogs}
141
+ * {@link /deployments/:deploymentId/logs}
132
142
  */
133
- export declare function deploymentsFindLogs({ pathParams: { deploymentId }, queryParams, config, }: {
143
+ export declare function deploymentsFindLogs({ pathParams: { deploymentId }, queryParams, config }: {
134
144
  pathParams: DeploymentsFindLogsPathParams;
135
- queryParams?: DeploymentsFindLogsQueryParams;
145
+ queryParams?: DeploymentsFindLogsQueryParams | undefined;
136
146
  config?: Partial<FetcherConfig> & {
137
147
  client?: typeof client;
138
148
  };
@@ -140,9 +150,9 @@ export declare function deploymentsFindLogs({ pathParams: { deploymentId }, quer
140
150
  /**
141
151
  * @description Find errors for a deployment
142
152
  * @summary Find Deployment Errors
143
- * {@link deploymentsDeploymentIdErrors}
153
+ * {@link /deployments/:deploymentId/errors}
144
154
  */
145
- export declare function deploymentsFindErrors({ pathParams: { deploymentId }, config, }: {
155
+ export declare function deploymentsFindErrors({ pathParams: { deploymentId }, config }: {
146
156
  pathParams: DeploymentsFindErrorsPathParams;
147
157
  config?: Partial<FetcherConfig> & {
148
158
  client?: typeof client;
@@ -151,7 +161,7 @@ export declare function deploymentsFindErrors({ pathParams: { deploymentId }, co
151
161
  /**
152
162
  * @description Find all Vercel projects
153
163
  * @summary Find Vercel Projects
154
- * {@link integrationsVercelProjects}
164
+ * {@link /integrations/vercel/projects}
155
165
  */
156
166
  export declare function integrationsVercelProjectsFind({ config }: {
157
167
  config?: Partial<FetcherConfig> & {
@@ -161,7 +171,7 @@ export declare function integrationsVercelProjectsFind({ config }: {
161
171
  /**
162
172
  * @description Create a new Vercel project
163
173
  * @summary Create Vercel Project
164
- * {@link integrationsVercelProjects}
174
+ * {@link /integrations/vercel/projects}
165
175
  */
166
176
  export declare function integrationsVercelProjectsCreate({ config }: {
167
177
  config?: Partial<FetcherConfig> & {
@@ -171,7 +181,7 @@ export declare function integrationsVercelProjectsCreate({ config }: {
171
181
  /**
172
182
  * @description Find all projects
173
183
  * @summary Find Projects
174
- * {@link projects}
184
+ * {@link /projects}
175
185
  */
176
186
  export declare function projectsFind({ config }: {
177
187
  config?: Partial<FetcherConfig> & {
@@ -181,7 +191,7 @@ export declare function projectsFind({ config }: {
181
191
  /**
182
192
  * @description Create a new project
183
193
  * @summary Create Project
184
- * {@link projects}
194
+ * {@link /projects}
185
195
  */
186
196
  export declare function projectsCreate({ config }: {
187
197
  config?: Partial<FetcherConfig> & {
@@ -191,9 +201,9 @@ export declare function projectsCreate({ config }: {
191
201
  /**
192
202
  * @description Assign a project to a chat
193
203
  * @summary Assign Project to Chat
194
- * {@link projectsProjectIdAssign}
204
+ * {@link /projects/:projectId/assign}
195
205
  */
196
- export declare function projectsAssign({ pathParams: { projectId }, config, }: {
206
+ export declare function projectsAssign({ pathParams: { projectId }, config }: {
197
207
  pathParams: ProjectsAssignPathParams;
198
208
  config?: Partial<FetcherConfig> & {
199
209
  client?: typeof client;
@@ -202,10 +212,10 @@ export declare function projectsAssign({ pathParams: { projectId }, config, }: {
202
212
  /**
203
213
  * @description Find the rate limit for a scope
204
214
  * @summary Find Rate Limit
205
- * {@link rateLimits}
215
+ * {@link /rate-limits}
206
216
  */
207
- export declare function rateLimitsFind({ queryParams, config, }: {
208
- queryParams?: RateLimitsFindQueryParams;
217
+ export declare function rateLimitsFind({ queryParams, config }: {
218
+ queryParams?: RateLimitsFindQueryParams | undefined;
209
219
  config?: Partial<FetcherConfig> & {
210
220
  client?: typeof client;
211
221
  };
@@ -213,7 +223,7 @@ export declare function rateLimitsFind({ queryParams, config, }: {
213
223
  /**
214
224
  * @description Get the user
215
225
  * @summary Get User
216
- * {@link user}
226
+ * {@link /user}
217
227
  */
218
228
  export declare function userGet({ config }: {
219
229
  config?: Partial<FetcherConfig> & {
@@ -223,10 +233,10 @@ export declare function userGet({ config }: {
223
233
  /**
224
234
  * @description Get the billing for the user
225
235
  * @summary Get Billing
226
- * {@link userBilling}
236
+ * {@link /user/billing}
227
237
  */
228
- export declare function userGetBilling({ queryParams, config, }: {
229
- queryParams?: UserGetBillingQueryParams;
238
+ export declare function userGetBilling({ queryParams, config }: {
239
+ queryParams?: UserGetBillingQueryParams | undefined;
230
240
  config?: Partial<FetcherConfig> & {
231
241
  client?: typeof client;
232
242
  };
@@ -234,7 +244,7 @@ export declare function userGetBilling({ queryParams, config, }: {
234
244
  /**
235
245
  * @description Get the plan for the user
236
246
  * @summary Get Plan
237
- * {@link userPlan}
247
+ * {@link /user/plan}
238
248
  */
239
249
  export declare function userGetPlan({ config }: {
240
250
  config?: Partial<FetcherConfig> & {
@@ -244,7 +254,7 @@ export declare function userGetPlan({ config }: {
244
254
  /**
245
255
  * @description Get all scopes for the user
246
256
  * @summary Get User Scopes
247
- * {@link userScopes}
257
+ * {@link /user/scopes}
248
258
  */
249
259
  export declare function userGetScopes({ config }: {
250
260
  config?: Partial<FetcherConfig> & {
@@ -252,34 +262,36 @@ export declare function userGetScopes({ config }: {
252
262
  };
253
263
  }): Promise<unknown>;
254
264
  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;
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;
278
289
  };
279
290
  export declare const operationsByTag: {
280
291
  chats: {
281
292
  chatsCreate: typeof chatsCreate;
282
293
  chatsFind: typeof chatsFind;
294
+ chatsInitCreate: typeof chatsInitCreate;
283
295
  chatsDelete: typeof chatsDelete;
284
296
  chatsGetById: typeof chatsGetById;
285
297
  chatsUpdate: typeof chatsUpdate;
@@ -315,7 +327,7 @@ export declare const operationsByTag: {
315
327
  };
316
328
  export declare const tagDictionary: {
317
329
  readonly chats: {
318
- readonly POST: readonly ["chatsCreate", "chatsFork", "chatsSendMessage", "chatsResume"];
330
+ readonly POST: readonly ["chatsCreate", "chatsInitCreate", "chatsFork", "chatsSendMessage", "chatsResume"];
319
331
  readonly GET: readonly ["chatsFind", "chatsGetById", "chatsGetMetadata"];
320
332
  readonly DELETE: readonly ["chatsDelete"];
321
333
  readonly PATCH: readonly ["chatsUpdate"];