v0-api 0.3.1 → 1.0.16
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.
- package/LICENSE +15 -0
- package/README.md +13 -3
- package/dist/{components-eb0j7zgr.d.ts → components-lojiycjm.d.ts} +165 -284
- package/dist/components-lojiycjm.d.ts.map +1 -0
- package/dist/components-mcjsnuad.d.ts +894 -0
- package/dist/components-mcjsnuad.d.ts.map +1 -0
- package/dist/components.cjs +1567 -63
- package/dist/components.d.cts +1 -1
- package/dist/components.d.mts +1 -1
- package/dist/components.mjs +1509 -1
- package/dist/effect.cjs +131 -24
- package/dist/effect.d.cts +75 -5
- package/dist/effect.d.cts.map +1 -1
- package/dist/effect.d.mts +75 -5
- package/dist/effect.d.mts.map +1 -1
- package/dist/effect.mjs +125 -4
- package/dist/index.cjs +139 -23
- package/dist/index.d.cts +13 -8
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +13 -8
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +21676 -7155
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +30 -25
- package/dist/{schemas-mph32a3e.cjs → schemas-eef01xgn.cjs} +2004 -590
- package/dist/schemas-kunw251r.js +3825 -0
- package/dist/schemas.cjs +78 -1
- package/dist/schemas.d.cts +13169 -788
- package/dist/schemas.d.cts.map +1 -1
- package/dist/schemas.d.mts +13169 -788
- package/dist/schemas.d.mts.map +1 -1
- package/dist/schemas.mjs +1 -1
- package/dist/types.cjs +249 -10
- package/dist/types.d.cts +2943 -686
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +2943 -686
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +215 -10
- package/package.json +18 -15
- package/dist/components-da0zh5te.cjs +0 -1497
- package/dist/components-eb0j7zgr.d.ts.map +0 -1
- package/dist/components-ja14lgg1.js +0 -1435
- package/dist/schemas-mkhkzrad.js +0 -2488
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ChatsCreateBody, ChatDetail, ChatsDeletePath, ChatsDeleteStatus200, ChatsDeleteVersionFilesPath, ChatsDeleteVersionFilesBody, VersionDetail, ChatsDownloadVersionPath, ChatsDownloadVersionQuery, ChatsFavoritePath, ChatsFavoriteBody, ChatsFavoriteStatus200, ChatsFindQuery, ChatsFindStatus200, ChatsFindMessagesPath, ChatsFindMessagesQuery, ChatsFindMessagesStatus200, ChatsFindVersionsPath, ChatsFindVersionsQuery, ChatsFindVersionsStatus200, ChatsForkPath, ChatsForkBody, ChatsGetByIdPath, ChatsGetMessagePath, MessageDetail, ChatsGetVersionPath, ChatsGetVersionQuery, ChatsInitBody, ChatsResolveTaskPath, ChatsResolveTaskBody, ChatsRestorePath, ChatsResumePath, ChatsSendMessagePath, ChatsSendMessageBody, ChatsStopPath, ChatsStopStatus200, ChatsUpdatePath, ChatsUpdateBody, ChatsUpdateVersionPath, ChatsUpdateVersionBody, DeploymentsCreateBody, DeploymentDetail, DeploymentsDeletePath, DeploymentsDeleteStatus200, DeploymentsFindQuery, DeploymentsFindStatus200, DeploymentsFindErrorsPath, DeploymentsFindErrorsStatus200, DeploymentsFindLogsPath, DeploymentsFindLogsQuery, DeploymentsFindLogsStatus200, DeploymentsGetByIdPath, HooksCreateBody, HookDetail, HooksDeletePath, HooksDeleteStatus200, HooksFindStatus200, HooksGetByIdPath, HooksUpdatePath, HooksUpdateBody, IntegrationsVercelProjectsCreateBody, VercelProjectDetail, IntegrationsVercelProjectsFindStatus200, McpServersCreateBody, McpServersCreateStatus200, McpServersCreateOAuthAuthorizationUrlPath, McpServersCreateOAuthAuthorizationUrlBody, McpServersCreateOAuthAuthorizationUrlStatus200, McpServersDeletePath, McpServersDeleteStatus200, McpServersFindStatus200, McpServersGetByIdPath, McpServersGetByIdStatus200, McpServersUpdatePath, McpServersUpdateBody, McpServersUpdateStatus200, ProjectsGetByChatIdPath, ProjectDetail, ProjectsFindStatus200, ProjectsCreateBody, ProjectsGetByIdPath, ProjectsUpdatePath, ProjectsUpdateBody, ProjectsDeletePath, ProjectsDeleteQuery, ProjectsDeleteStatus200, ProjectsAssignPath, ProjectsAssignBody, ProjectsAssignStatus200, ProjectsFindEnvVarsPath, ProjectsFindEnvVarsQuery, ProjectsFindEnvVarsStatus200, ProjectsCreateEnvVarsPath, ProjectsCreateEnvVarsBody, ProjectsCreateEnvVarsQuery, ProjectsCreateEnvVarsStatus200, ProjectsUpdateEnvVarsPath, ProjectsUpdateEnvVarsBody, ProjectsUpdateEnvVarsQuery, ProjectsUpdateEnvVarsStatus200, ProjectsDeleteEnvVarsPath, ProjectsDeleteEnvVarsBody, ProjectsDeleteEnvVarsStatus200, ProjectsGetEnvVarPath, ProjectsGetEnvVarQuery, ProjectsGetEnvVarStatus200, RateLimitsFindQuery, RateLimitsFindStatus200, UserSummarySchema, UserGetBillingQuery, UserGetBillingStatus200, UserGetPlanStatus200, UserGetScopesStatus200, ReportsGetUsageQuery, ReportsGetUsageStatus200, ReportsGetAIUsageQuery, ReportsGetAIUsageStatus200, ReportsGetUserActivityQuery, ReportsGetUserActivityStatus200 } from './types.cjs';
|
|
2
|
+
|
|
1
3
|
type RequestInit = {
|
|
2
4
|
body?: string | FormData | undefined;
|
|
3
5
|
headers?: Record<string, string> | undefined;
|
|
@@ -10,6 +12,7 @@ type Response = {
|
|
|
10
12
|
url: string;
|
|
11
13
|
json(): Promise<any>;
|
|
12
14
|
text(): Promise<string>;
|
|
15
|
+
blob?(): Promise<Blob>;
|
|
13
16
|
headers?: {
|
|
14
17
|
get(name: string): string | null;
|
|
15
18
|
} | undefined;
|
|
@@ -21,6 +24,7 @@ type FetcherConfig = {
|
|
|
21
24
|
token?: string | null;
|
|
22
25
|
fetchImpl?: FetchImpl;
|
|
23
26
|
headers?: Record<string, any>;
|
|
27
|
+
signal?: AbortSignal | undefined;
|
|
24
28
|
};
|
|
25
29
|
type FetcherOptions<TBody, THeaders, TQueryParams, TPathParams> = {
|
|
26
30
|
url: string;
|
|
@@ -29,376 +33,307 @@ type FetcherOptions<TBody, THeaders, TQueryParams, TPathParams> = {
|
|
|
29
33
|
headers?: THeaders | undefined;
|
|
30
34
|
queryParams?: TQueryParams | undefined;
|
|
31
35
|
pathParams?: TPathParams | undefined;
|
|
32
|
-
signal?: AbortSignal | undefined;
|
|
33
36
|
} & FetcherConfig;
|
|
34
37
|
declare function client<TData, TError, TBody, THeaders, TQueryParams, TPathParams>({ url, method, body, headers, queryParams, signal, token, baseUrl, fetchImpl, }: FetcherOptions<TBody, THeaders, TQueryParams, TPathParams>): Promise<TData>;
|
|
35
38
|
|
|
36
|
-
/**
|
|
37
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
38
|
-
* Do not edit manually.
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
39
|
/**
|
|
42
40
|
* @summary Create Chat
|
|
43
41
|
* @description Creates a new chat using a user message, optional system context, and model configuration. Useful for prompting the model within the scope of a specific project.
|
|
44
42
|
* @link /chats
|
|
45
43
|
*/
|
|
46
|
-
declare function chatsCreate({ config }?: {
|
|
44
|
+
declare function chatsCreate({ body, config, }?: {
|
|
45
|
+
body: ChatsCreateBody;
|
|
47
46
|
config?: Partial<FetcherConfig> & {
|
|
48
47
|
client?: typeof client;
|
|
49
48
|
};
|
|
50
|
-
}): Promise<
|
|
49
|
+
}): Promise<ChatDetail>;
|
|
51
50
|
/**
|
|
52
51
|
* @summary Find Chats
|
|
53
52
|
* @description Retrieves a list of existing chats, with support for pagination and filtering by favorite status, Vercel project, or Git branch. Helps manage and navigate chat history.
|
|
54
53
|
* @link /chats
|
|
55
54
|
*/
|
|
56
55
|
declare function chatsFind({ queryParams, config, }?: {
|
|
57
|
-
queryParams?:
|
|
58
|
-
limit?: number;
|
|
59
|
-
offset?: number;
|
|
60
|
-
isFavorite?: "true" | "false";
|
|
61
|
-
vercelProjectId?: string;
|
|
62
|
-
branch?: string;
|
|
63
|
-
metadata?: unknown;
|
|
64
|
-
};
|
|
56
|
+
queryParams?: Partial<ChatsFindQuery>;
|
|
65
57
|
config?: Partial<FetcherConfig> & {
|
|
66
58
|
client?: typeof client;
|
|
67
59
|
};
|
|
68
|
-
}): Promise<
|
|
60
|
+
}): Promise<ChatsFindStatus200>;
|
|
69
61
|
/**
|
|
70
62
|
* @summary Initialize Chat
|
|
71
63
|
* @description Initializes a new chat from source content such as files, repositories, registries, or zip archives. Enables context-rich conversations based on code or assets.
|
|
72
64
|
* @link /chats/init
|
|
73
65
|
*/
|
|
74
|
-
declare function chatsInit({ config }?: {
|
|
66
|
+
declare function chatsInit({ body, config, }?: {
|
|
67
|
+
body: ChatsInitBody;
|
|
75
68
|
config?: Partial<FetcherConfig> & {
|
|
76
69
|
client?: typeof client;
|
|
77
70
|
};
|
|
78
|
-
}): Promise<
|
|
71
|
+
}): Promise<ChatDetail>;
|
|
79
72
|
/**
|
|
80
73
|
* @summary Delete Chat
|
|
81
74
|
* @description Deletes a specific chat based on the provided chatId. The chat and its contents are moved to trash and stop being retrievable immediately, then retained for 30 days before being permanently removed.
|
|
82
75
|
* @link /chats/{chatId}
|
|
83
76
|
*/
|
|
84
77
|
declare function chatsDelete({ pathParams, config, }?: {
|
|
85
|
-
pathParams:
|
|
86
|
-
chatId: string;
|
|
87
|
-
};
|
|
78
|
+
pathParams: ChatsDeletePath;
|
|
88
79
|
config?: Partial<FetcherConfig> & {
|
|
89
80
|
client?: typeof client;
|
|
90
81
|
};
|
|
91
|
-
}): Promise<
|
|
82
|
+
}): Promise<ChatsDeleteStatus200>;
|
|
92
83
|
/**
|
|
93
84
|
* @summary Get Chat
|
|
94
85
|
* @description Retrieves the full details of a specific chat using its `chatId`. Includes messages, metadata, and associated configuration.
|
|
95
86
|
* @link /chats/{chatId}
|
|
96
87
|
*/
|
|
97
88
|
declare function chatsGetById({ pathParams, config, }?: {
|
|
98
|
-
pathParams:
|
|
99
|
-
chatId: string;
|
|
100
|
-
};
|
|
89
|
+
pathParams: ChatsGetByIdPath;
|
|
101
90
|
config?: Partial<FetcherConfig> & {
|
|
102
91
|
client?: typeof client;
|
|
103
92
|
};
|
|
104
|
-
}): Promise<
|
|
93
|
+
}): Promise<ChatDetail>;
|
|
105
94
|
/**
|
|
106
95
|
* @summary Update Chat
|
|
107
96
|
* @description Updates the metadata of an existing chat using its `chatId`. Supports changes to the chat name and privacy setting.
|
|
108
97
|
* @link /chats/{chatId}
|
|
109
98
|
*/
|
|
110
|
-
declare function chatsUpdate({ pathParams, config, }?: {
|
|
111
|
-
pathParams:
|
|
112
|
-
|
|
113
|
-
};
|
|
99
|
+
declare function chatsUpdate({ pathParams, body, config, }?: {
|
|
100
|
+
pathParams: ChatsUpdatePath;
|
|
101
|
+
body: ChatsUpdateBody;
|
|
114
102
|
config?: Partial<FetcherConfig> & {
|
|
115
103
|
client?: typeof client;
|
|
116
104
|
};
|
|
117
|
-
}): Promise<
|
|
105
|
+
}): Promise<ChatDetail>;
|
|
118
106
|
/**
|
|
119
107
|
* @summary Favorite Chat
|
|
120
108
|
* @description Marks or unmarks a chat as a favorite using its `chatId`. This helps with organizing and quickly accessing important chats.
|
|
121
109
|
* @link /chats/{chatId}/favorite
|
|
122
110
|
*/
|
|
123
|
-
declare function chatsFavorite({ pathParams, config, }?: {
|
|
124
|
-
pathParams:
|
|
125
|
-
|
|
126
|
-
};
|
|
111
|
+
declare function chatsFavorite({ pathParams, body, config, }?: {
|
|
112
|
+
pathParams: ChatsFavoritePath;
|
|
113
|
+
body: ChatsFavoriteBody;
|
|
127
114
|
config?: Partial<FetcherConfig> & {
|
|
128
115
|
client?: typeof client;
|
|
129
116
|
};
|
|
130
|
-
}): Promise<
|
|
117
|
+
}): Promise<ChatsFavoriteStatus200>;
|
|
131
118
|
/**
|
|
132
119
|
* @summary Fork Chat
|
|
133
120
|
* @description Creates a new chat fork (duplicate) from a specific version within a chat created through Platform API v1. To duplicate chats created in v0 web or Platform API v2, use POST /v2/chats/{chatId}/duplicate.
|
|
134
121
|
* @link /chats/{chatId}/fork
|
|
135
122
|
*/
|
|
136
|
-
declare function chatsFork({ pathParams, config, }?: {
|
|
137
|
-
pathParams:
|
|
138
|
-
|
|
139
|
-
};
|
|
123
|
+
declare function chatsFork({ pathParams, body, config, }?: {
|
|
124
|
+
pathParams: ChatsForkPath;
|
|
125
|
+
body: ChatsForkBody;
|
|
140
126
|
config?: Partial<FetcherConfig> & {
|
|
141
127
|
client?: typeof client;
|
|
142
128
|
};
|
|
143
|
-
}): Promise<
|
|
129
|
+
}): Promise<ChatDetail>;
|
|
144
130
|
/**
|
|
145
131
|
* @summary Get Project by Chat ID
|
|
146
132
|
* @description Retrieves the v0 project associated with a given chat. Useful for determining the context or scope of a chat session.
|
|
147
133
|
* @link /chats/{chatId}/project
|
|
148
134
|
*/
|
|
149
135
|
declare function projectsGetByChatId({ pathParams, config, }?: {
|
|
150
|
-
pathParams:
|
|
151
|
-
chatId: string;
|
|
152
|
-
};
|
|
136
|
+
pathParams: ProjectsGetByChatIdPath;
|
|
153
137
|
config?: Partial<FetcherConfig> & {
|
|
154
138
|
client?: typeof client;
|
|
155
139
|
};
|
|
156
|
-
}): Promise<
|
|
140
|
+
}): Promise<ProjectDetail>;
|
|
157
141
|
/**
|
|
158
142
|
* @summary Find Chat Messages
|
|
159
143
|
* @description Retrieves a list of all messages for a specific chat, ordered by creation date (newest first). Supports cursor-based pagination and includes message content, role, and type information.
|
|
160
144
|
* @link /chats/{chatId}/messages
|
|
161
145
|
*/
|
|
162
146
|
declare function chatsFindMessages({ pathParams, queryParams, config, }?: {
|
|
163
|
-
pathParams:
|
|
164
|
-
|
|
165
|
-
};
|
|
166
|
-
queryParams?: {
|
|
167
|
-
limit?: number;
|
|
168
|
-
cursor?: string;
|
|
169
|
-
};
|
|
147
|
+
pathParams: ChatsFindMessagesPath;
|
|
148
|
+
queryParams?: Partial<ChatsFindMessagesQuery>;
|
|
170
149
|
config?: Partial<FetcherConfig> & {
|
|
171
150
|
client?: typeof client;
|
|
172
151
|
};
|
|
173
|
-
}): Promise<
|
|
152
|
+
}): Promise<ChatsFindMessagesStatus200>;
|
|
174
153
|
/**
|
|
175
154
|
* @summary Send Message
|
|
176
155
|
* @description Creates a new message in an existing chat. Triggers a model response using the provided prompt, with optional attachments and configuration settings.
|
|
177
156
|
* @link /chats/{chatId}/messages
|
|
178
157
|
*/
|
|
179
|
-
declare function chatsSendMessage({ pathParams, config, }?: {
|
|
180
|
-
pathParams:
|
|
181
|
-
|
|
182
|
-
};
|
|
158
|
+
declare function chatsSendMessage({ pathParams, body, config, }?: {
|
|
159
|
+
pathParams: ChatsSendMessagePath;
|
|
160
|
+
body: ChatsSendMessageBody;
|
|
183
161
|
config?: Partial<FetcherConfig> & {
|
|
184
162
|
client?: typeof client;
|
|
185
163
|
};
|
|
186
|
-
}): Promise<
|
|
164
|
+
}): Promise<ChatDetail>;
|
|
187
165
|
/**
|
|
188
166
|
* @summary Get Chat Message
|
|
189
167
|
* @description Retrieves detailed information about a specific message within a chat, including content, files, model configuration, and demo URLs.
|
|
190
168
|
* @link /chats/{chatId}/messages/{messageId}
|
|
191
169
|
*/
|
|
192
170
|
declare function chatsGetMessage({ pathParams, config, }?: {
|
|
193
|
-
pathParams:
|
|
194
|
-
chatId: string;
|
|
195
|
-
messageId: string;
|
|
196
|
-
};
|
|
171
|
+
pathParams: ChatsGetMessagePath;
|
|
197
172
|
config?: Partial<FetcherConfig> & {
|
|
198
173
|
client?: typeof client;
|
|
199
174
|
};
|
|
200
|
-
}): Promise<
|
|
175
|
+
}): Promise<MessageDetail>;
|
|
201
176
|
/**
|
|
202
177
|
* @summary Find Chat Versions
|
|
203
178
|
* @description Retrieves a list of all versions (iterations) for a specific chat, ordered by creation date (newest first). Supports cursor-based pagination and includes version status and demo URLs.
|
|
204
179
|
* @link /chats/{chatId}/versions
|
|
205
180
|
*/
|
|
206
181
|
declare function chatsFindVersions({ pathParams, queryParams, config, }?: {
|
|
207
|
-
pathParams:
|
|
208
|
-
|
|
209
|
-
};
|
|
210
|
-
queryParams?: {
|
|
211
|
-
limit?: number;
|
|
212
|
-
cursor?: string;
|
|
213
|
-
};
|
|
182
|
+
pathParams: ChatsFindVersionsPath;
|
|
183
|
+
queryParams?: Partial<ChatsFindVersionsQuery>;
|
|
214
184
|
config?: Partial<FetcherConfig> & {
|
|
215
185
|
client?: typeof client;
|
|
216
186
|
};
|
|
217
|
-
}): Promise<
|
|
187
|
+
}): Promise<ChatsFindVersionsStatus200>;
|
|
218
188
|
/**
|
|
219
189
|
* @summary Get Chat Version
|
|
220
190
|
* @description Retrieves detailed information about a specific version of a chat, including all files with their content and lock status.
|
|
221
191
|
* @link /chats/{chatId}/versions/{versionId}
|
|
222
192
|
*/
|
|
223
193
|
declare function chatsGetVersion({ pathParams, queryParams, config, }?: {
|
|
224
|
-
pathParams:
|
|
225
|
-
|
|
226
|
-
versionId: string;
|
|
227
|
-
};
|
|
228
|
-
queryParams?: {
|
|
229
|
-
includeDefaultFiles?: "true" | "false";
|
|
230
|
-
};
|
|
194
|
+
pathParams: ChatsGetVersionPath;
|
|
195
|
+
queryParams?: Partial<ChatsGetVersionQuery>;
|
|
231
196
|
config?: Partial<FetcherConfig> & {
|
|
232
197
|
client?: typeof client;
|
|
233
198
|
};
|
|
234
|
-
}): Promise<
|
|
199
|
+
}): Promise<VersionDetail>;
|
|
235
200
|
/**
|
|
236
201
|
* @summary Update Chat Version Files
|
|
237
202
|
* @description Updates the source files of a specific chat version (block) manually. This allows editing generated files directly through the API.
|
|
238
203
|
* @link /chats/{chatId}/versions/{versionId}
|
|
239
204
|
*/
|
|
240
|
-
declare function chatsUpdateVersion({ pathParams, config, }?: {
|
|
241
|
-
pathParams:
|
|
242
|
-
|
|
243
|
-
versionId: string;
|
|
244
|
-
};
|
|
205
|
+
declare function chatsUpdateVersion({ pathParams, body, config, }?: {
|
|
206
|
+
pathParams: ChatsUpdateVersionPath;
|
|
207
|
+
body: ChatsUpdateVersionBody;
|
|
245
208
|
config?: Partial<FetcherConfig> & {
|
|
246
209
|
client?: typeof client;
|
|
247
210
|
};
|
|
248
|
-
}): Promise<
|
|
211
|
+
}): Promise<VersionDetail>;
|
|
249
212
|
/**
|
|
250
213
|
* @summary Download version files
|
|
251
214
|
* @description Download all files for a specific chat version as a zip or tarball archive. Use includeDefaultFiles=true to include all deployment files (package.json, configuration files, etc.) or false/omitted to return only the generated source files.
|
|
252
215
|
* @link /chats/{chatId}/versions/{versionId}/download
|
|
253
216
|
*/
|
|
254
217
|
declare function chatsDownloadVersion({ pathParams, queryParams, config, }?: {
|
|
255
|
-
pathParams:
|
|
256
|
-
|
|
257
|
-
versionId: string;
|
|
258
|
-
};
|
|
259
|
-
queryParams?: {
|
|
260
|
-
format?: "zip" | "tarball";
|
|
261
|
-
includeDefaultFiles?: "true" | "false";
|
|
262
|
-
};
|
|
218
|
+
pathParams: ChatsDownloadVersionPath;
|
|
219
|
+
queryParams?: Partial<ChatsDownloadVersionQuery>;
|
|
263
220
|
config?: Partial<FetcherConfig> & {
|
|
264
221
|
client?: typeof client;
|
|
265
222
|
};
|
|
266
|
-
}): Promise<
|
|
223
|
+
}): Promise<Blob>;
|
|
267
224
|
/**
|
|
268
225
|
* @summary Delete Chat Version Files
|
|
269
226
|
* @description Deletes source files from a specific chat version (block). Files are removed from the version and a new source version is created.
|
|
270
227
|
* @link /chats/{chatId}/versions/{versionId}/files/delete
|
|
271
228
|
*/
|
|
272
|
-
declare function chatsDeleteVersionFiles({ pathParams, config, }?: {
|
|
273
|
-
pathParams:
|
|
274
|
-
|
|
275
|
-
versionId: string;
|
|
276
|
-
};
|
|
229
|
+
declare function chatsDeleteVersionFiles({ pathParams, body, config, }?: {
|
|
230
|
+
pathParams: ChatsDeleteVersionFilesPath;
|
|
231
|
+
body: ChatsDeleteVersionFilesBody;
|
|
277
232
|
config?: Partial<FetcherConfig> & {
|
|
278
233
|
client?: typeof client;
|
|
279
234
|
};
|
|
280
|
-
}): Promise<
|
|
235
|
+
}): Promise<VersionDetail>;
|
|
281
236
|
/**
|
|
282
237
|
* @summary Resume Message
|
|
283
238
|
* @description Reconnects to an active assistant message stream and returns it as Server-Sent Events. This does not restart or continue a stopped generation.
|
|
284
239
|
* @link /chats/{chatId}/messages/{messageId}/resume
|
|
285
240
|
*/
|
|
286
241
|
declare function chatsResume({ pathParams, config, }?: {
|
|
287
|
-
pathParams:
|
|
288
|
-
chatId: string;
|
|
289
|
-
messageId: string;
|
|
290
|
-
};
|
|
242
|
+
pathParams: ChatsResumePath;
|
|
291
243
|
config?: Partial<FetcherConfig> & {
|
|
292
244
|
client?: typeof client;
|
|
293
245
|
};
|
|
294
|
-
}): Promise<
|
|
246
|
+
}): Promise<string>;
|
|
295
247
|
/**
|
|
296
248
|
* @summary Stop Message
|
|
297
249
|
* @description Stops an in-flight message generation in a chat. Useful for cancelling a streaming response that is still being generated.
|
|
298
250
|
* @link /chats/{chatId}/messages/{messageId}/stop
|
|
299
251
|
*/
|
|
300
252
|
declare function chatsStop({ pathParams, config, }?: {
|
|
301
|
-
pathParams:
|
|
302
|
-
chatId: string;
|
|
303
|
-
messageId: string;
|
|
304
|
-
};
|
|
253
|
+
pathParams: ChatsStopPath;
|
|
305
254
|
config?: Partial<FetcherConfig> & {
|
|
306
255
|
client?: typeof client;
|
|
307
256
|
};
|
|
308
|
-
}): Promise<
|
|
257
|
+
}): Promise<ChatsStopStatus200>;
|
|
309
258
|
/**
|
|
310
259
|
* @summary Resolve Task
|
|
311
260
|
* @description Resolves a pending task in a chat, continuing the conversation. The latest message in the active chat fork must be an assistant message currently blocked on a matching task (integration setup, plan approval, question answers, or permission grants).
|
|
312
261
|
* @link /chats/{chatId}/tasks/resolve
|
|
313
262
|
*/
|
|
314
|
-
declare function chatsResolveTask({ pathParams, config, }?: {
|
|
315
|
-
pathParams:
|
|
316
|
-
|
|
317
|
-
};
|
|
263
|
+
declare function chatsResolveTask({ pathParams, body, config, }?: {
|
|
264
|
+
pathParams: ChatsResolveTaskPath;
|
|
265
|
+
body: ChatsResolveTaskBody;
|
|
318
266
|
config?: Partial<FetcherConfig> & {
|
|
319
267
|
client?: typeof client;
|
|
320
268
|
};
|
|
321
|
-
}): Promise<
|
|
269
|
+
}): Promise<ChatDetail>;
|
|
322
270
|
/**
|
|
323
271
|
* @summary Find Deployments
|
|
324
272
|
* @description Find deployments by project and chat IDs. This will return a list of deployments for the given project and chat IDs.
|
|
325
273
|
* @link /deployments
|
|
326
274
|
*/
|
|
327
275
|
declare function deploymentsFind({ queryParams, config, }?: {
|
|
328
|
-
queryParams
|
|
329
|
-
projectId?: string;
|
|
330
|
-
chatId?: string;
|
|
331
|
-
versionId?: string;
|
|
332
|
-
};
|
|
276
|
+
queryParams: DeploymentsFindQuery;
|
|
333
277
|
config?: Partial<FetcherConfig> & {
|
|
334
278
|
client?: typeof client;
|
|
335
279
|
};
|
|
336
|
-
}): Promise<
|
|
280
|
+
}): Promise<DeploymentsFindStatus200>;
|
|
337
281
|
/**
|
|
338
282
|
* @summary Create Deployment
|
|
339
283
|
* @description Create a new deployment for a specific chat and version. This will trigger a deployment to Vercel.
|
|
340
284
|
* @link /deployments
|
|
341
285
|
*/
|
|
342
|
-
declare function deploymentsCreate({ config }?: {
|
|
286
|
+
declare function deploymentsCreate({ body, config, }?: {
|
|
287
|
+
body: DeploymentsCreateBody;
|
|
343
288
|
config?: Partial<FetcherConfig> & {
|
|
344
289
|
client?: typeof client;
|
|
345
290
|
};
|
|
346
|
-
}): Promise<
|
|
291
|
+
}): Promise<DeploymentDetail>;
|
|
347
292
|
/**
|
|
348
293
|
* @summary Get Deployment
|
|
349
294
|
* @description Get a deployment by ID. This will return the details of the deployment, including the inspector URL, chat ID, project ID, version ID, API URL, and web URL.
|
|
350
295
|
* @link /deployments/{deploymentId}
|
|
351
296
|
*/
|
|
352
297
|
declare function deploymentsGetById({ pathParams, config, }?: {
|
|
353
|
-
pathParams:
|
|
354
|
-
deploymentId: string;
|
|
355
|
-
};
|
|
298
|
+
pathParams: DeploymentsGetByIdPath;
|
|
356
299
|
config?: Partial<FetcherConfig> & {
|
|
357
300
|
client?: typeof client;
|
|
358
301
|
};
|
|
359
|
-
}): Promise<
|
|
302
|
+
}): Promise<DeploymentDetail>;
|
|
360
303
|
/**
|
|
361
304
|
* @summary Delete Deployment
|
|
362
305
|
* @description Delete a deployment by ID. This will delete the deployment from Vercel.
|
|
363
306
|
* @link /deployments/{deploymentId}
|
|
364
307
|
*/
|
|
365
308
|
declare function deploymentsDelete({ pathParams, config, }?: {
|
|
366
|
-
pathParams:
|
|
367
|
-
deploymentId: string;
|
|
368
|
-
};
|
|
309
|
+
pathParams: DeploymentsDeletePath;
|
|
369
310
|
config?: Partial<FetcherConfig> & {
|
|
370
311
|
client?: typeof client;
|
|
371
312
|
};
|
|
372
|
-
}): Promise<
|
|
313
|
+
}): Promise<DeploymentsDeleteStatus200>;
|
|
373
314
|
/**
|
|
374
315
|
* @summary Find Deployment Logs
|
|
375
316
|
* @description Retrieves logs for a specific deployment. Supports filtering by timestamp to fetch only recent logs.
|
|
376
317
|
* @link /deployments/{deploymentId}/logs
|
|
377
318
|
*/
|
|
378
319
|
declare function deploymentsFindLogs({ pathParams, queryParams, config, }?: {
|
|
379
|
-
pathParams:
|
|
380
|
-
|
|
381
|
-
};
|
|
382
|
-
queryParams?: {
|
|
383
|
-
since?: number;
|
|
384
|
-
};
|
|
320
|
+
pathParams: DeploymentsFindLogsPath;
|
|
321
|
+
queryParams?: Partial<DeploymentsFindLogsQuery>;
|
|
385
322
|
config?: Partial<FetcherConfig> & {
|
|
386
323
|
client?: typeof client;
|
|
387
324
|
};
|
|
388
|
-
}): Promise<
|
|
325
|
+
}): Promise<DeploymentsFindLogsStatus200>;
|
|
389
326
|
/**
|
|
390
327
|
* @summary Find Deployment Errors
|
|
391
328
|
* @description Retrieves a list of errors that occurred during a specific deployment. Useful for diagnosing and debugging deployment issues.
|
|
392
329
|
* @link /deployments/{deploymentId}/errors
|
|
393
330
|
*/
|
|
394
331
|
declare function deploymentsFindErrors({ pathParams, config, }?: {
|
|
395
|
-
pathParams:
|
|
396
|
-
deploymentId: string;
|
|
397
|
-
};
|
|
332
|
+
pathParams: DeploymentsFindErrorsPath;
|
|
398
333
|
config?: Partial<FetcherConfig> & {
|
|
399
334
|
client?: typeof client;
|
|
400
335
|
};
|
|
401
|
-
}): Promise<
|
|
336
|
+
}): Promise<DeploymentsFindErrorsStatus200>;
|
|
402
337
|
/**
|
|
403
338
|
* @summary Find Hooks
|
|
404
339
|
* @description Retrieves a list of existing hooks in your workspace. Useful for managing active webhooks tied to chat events or deployments.
|
|
@@ -408,56 +343,52 @@ declare function hooksFind({ config }?: {
|
|
|
408
343
|
config?: Partial<FetcherConfig> & {
|
|
409
344
|
client?: typeof client;
|
|
410
345
|
};
|
|
411
|
-
}): Promise<
|
|
346
|
+
}): Promise<HooksFindStatus200>;
|
|
412
347
|
/**
|
|
413
348
|
* @summary Create Hook
|
|
414
349
|
* @description Creates a new webhook that listens for specific events. Supports optional association with a chat.
|
|
415
350
|
* @link /hooks
|
|
416
351
|
*/
|
|
417
|
-
declare function hooksCreate({ config }?: {
|
|
352
|
+
declare function hooksCreate({ body, config, }?: {
|
|
353
|
+
body: HooksCreateBody;
|
|
418
354
|
config?: Partial<FetcherConfig> & {
|
|
419
355
|
client?: typeof client;
|
|
420
356
|
};
|
|
421
|
-
}): Promise<
|
|
357
|
+
}): Promise<HookDetail>;
|
|
422
358
|
/**
|
|
423
359
|
* @summary Get Hook
|
|
424
360
|
* @description Retrieves the details of a specific webhook using its ID.
|
|
425
361
|
* @link /hooks/{hookId}
|
|
426
362
|
*/
|
|
427
363
|
declare function hooksGetById({ pathParams, config, }?: {
|
|
428
|
-
pathParams:
|
|
429
|
-
hookId: string;
|
|
430
|
-
};
|
|
364
|
+
pathParams: HooksGetByIdPath;
|
|
431
365
|
config?: Partial<FetcherConfig> & {
|
|
432
366
|
client?: typeof client;
|
|
433
367
|
};
|
|
434
|
-
}): Promise<
|
|
368
|
+
}): Promise<HookDetail>;
|
|
435
369
|
/**
|
|
436
370
|
* @summary Update Hook
|
|
437
371
|
* @description Updates the configuration of an existing webhook, including its name, event subscriptions, or target URL.
|
|
438
372
|
* @link /hooks/{hookId}
|
|
439
373
|
*/
|
|
440
|
-
declare function hooksUpdate({ pathParams, config, }?: {
|
|
441
|
-
pathParams:
|
|
442
|
-
|
|
443
|
-
};
|
|
374
|
+
declare function hooksUpdate({ pathParams, body, config, }?: {
|
|
375
|
+
pathParams: HooksUpdatePath;
|
|
376
|
+
body: HooksUpdateBody;
|
|
444
377
|
config?: Partial<FetcherConfig> & {
|
|
445
378
|
client?: typeof client;
|
|
446
379
|
};
|
|
447
|
-
}): Promise<
|
|
380
|
+
}): Promise<HookDetail>;
|
|
448
381
|
/**
|
|
449
382
|
* @summary Delete Hook
|
|
450
383
|
* @description Deletes a webhook based on its ID. This action is irreversible.
|
|
451
384
|
* @link /hooks/{hookId}
|
|
452
385
|
*/
|
|
453
386
|
declare function hooksDelete({ pathParams, config, }?: {
|
|
454
|
-
pathParams:
|
|
455
|
-
hookId: string;
|
|
456
|
-
};
|
|
387
|
+
pathParams: HooksDeletePath;
|
|
457
388
|
config?: Partial<FetcherConfig> & {
|
|
458
389
|
client?: typeof client;
|
|
459
390
|
};
|
|
460
|
-
}): Promise<
|
|
391
|
+
}): Promise<HooksDeleteStatus200>;
|
|
461
392
|
/**
|
|
462
393
|
* @summary Find Vercel Projects
|
|
463
394
|
* @description Retrieves a list of Vercel projects linked to your integration. Useful for associating chats, deployments, or hooks with specific Vercel projects.
|
|
@@ -467,17 +398,18 @@ declare function integrationsVercelProjectsFind({ config }?: {
|
|
|
467
398
|
config?: Partial<FetcherConfig> & {
|
|
468
399
|
client?: typeof client;
|
|
469
400
|
};
|
|
470
|
-
}): Promise<
|
|
401
|
+
}): Promise<IntegrationsVercelProjectsFindStatus200>;
|
|
471
402
|
/**
|
|
472
403
|
* @summary Create Vercel Project
|
|
473
404
|
* @description Links a Vercel project to an existing v0 project. Enables Vercel-related features and deployment integration within the v0 workspace.
|
|
474
405
|
* @link /integrations/vercel/projects
|
|
475
406
|
*/
|
|
476
|
-
declare function integrationsVercelProjectsCreate({ config }?: {
|
|
407
|
+
declare function integrationsVercelProjectsCreate({ body, config, }?: {
|
|
408
|
+
body: IntegrationsVercelProjectsCreateBody;
|
|
477
409
|
config?: Partial<FetcherConfig> & {
|
|
478
410
|
client?: typeof client;
|
|
479
411
|
};
|
|
480
|
-
}): Promise<
|
|
412
|
+
}): Promise<VercelProjectDetail>;
|
|
481
413
|
/**
|
|
482
414
|
* @summary Find Projects
|
|
483
415
|
* @description Returns a list of all v0 projects in your workspace. Useful for browsing or managing projects across different chats or use cases.
|
|
@@ -487,163 +419,138 @@ declare function projectsFind({ config }?: {
|
|
|
487
419
|
config?: Partial<FetcherConfig> & {
|
|
488
420
|
client?: typeof client;
|
|
489
421
|
};
|
|
490
|
-
}): Promise<
|
|
422
|
+
}): Promise<ProjectsFindStatus200>;
|
|
491
423
|
/**
|
|
492
424
|
* @summary Create Project
|
|
493
425
|
* @description Creates a new v0 project with an optional description, icon, environment variables, and instructions. Projects help organize chats and manage context.
|
|
494
426
|
* @link /projects
|
|
495
427
|
*/
|
|
496
|
-
declare function projectsCreate({ config }?: {
|
|
428
|
+
declare function projectsCreate({ body, config, }?: {
|
|
429
|
+
body: ProjectsCreateBody;
|
|
497
430
|
config?: Partial<FetcherConfig> & {
|
|
498
431
|
client?: typeof client;
|
|
499
432
|
};
|
|
500
|
-
}): Promise<
|
|
433
|
+
}): Promise<ProjectDetail>;
|
|
501
434
|
/**
|
|
502
435
|
* @summary Get Project by ID
|
|
503
436
|
* @description Retrieves the details of a specific v0 project by its ID.
|
|
504
437
|
* @link /projects/{projectId}
|
|
505
438
|
*/
|
|
506
439
|
declare function projectsGetById({ pathParams, config, }?: {
|
|
507
|
-
pathParams:
|
|
508
|
-
projectId: string;
|
|
509
|
-
};
|
|
440
|
+
pathParams: ProjectsGetByIdPath;
|
|
510
441
|
config?: Partial<FetcherConfig> & {
|
|
511
442
|
client?: typeof client;
|
|
512
443
|
};
|
|
513
|
-
}): Promise<
|
|
444
|
+
}): Promise<ProjectDetail>;
|
|
514
445
|
/**
|
|
515
446
|
* @summary Update Project
|
|
516
447
|
* @description Updates the metadata of an existing project using its `projectId`. Supports changes to the project name and privacy setting.
|
|
517
448
|
* @link /projects/{projectId}
|
|
518
449
|
*/
|
|
519
|
-
declare function projectsUpdate({ pathParams, config, }?: {
|
|
520
|
-
pathParams:
|
|
521
|
-
|
|
522
|
-
};
|
|
450
|
+
declare function projectsUpdate({ pathParams, body, config, }?: {
|
|
451
|
+
pathParams: ProjectsUpdatePath;
|
|
452
|
+
body: ProjectsUpdateBody;
|
|
523
453
|
config?: Partial<FetcherConfig> & {
|
|
524
454
|
client?: typeof client;
|
|
525
455
|
};
|
|
526
|
-
}): Promise<
|
|
456
|
+
}): Promise<ProjectDetail>;
|
|
527
457
|
/**
|
|
528
458
|
* @summary Delete Project
|
|
529
459
|
* @description Deletes a specific project based on the provided projectId. This operation marks the project as deleted and is irreversible.
|
|
530
460
|
* @link /projects/{projectId}
|
|
531
461
|
*/
|
|
532
462
|
declare function projectsDelete({ pathParams, queryParams, config, }?: {
|
|
533
|
-
pathParams:
|
|
534
|
-
|
|
535
|
-
};
|
|
536
|
-
queryParams?: {
|
|
537
|
-
deleteAllChats?: "true" | "false";
|
|
538
|
-
};
|
|
463
|
+
pathParams: ProjectsDeletePath;
|
|
464
|
+
queryParams?: Partial<ProjectsDeleteQuery>;
|
|
539
465
|
config?: Partial<FetcherConfig> & {
|
|
540
466
|
client?: typeof client;
|
|
541
467
|
};
|
|
542
|
-
}): Promise<
|
|
468
|
+
}): Promise<ProjectsDeleteStatus200>;
|
|
543
469
|
/**
|
|
544
470
|
* @summary Assign Project to Chat
|
|
545
471
|
* @description Links an existing v0 project to a specific chat. Helps group conversations under a shared project context.
|
|
546
472
|
* @link /projects/{projectId}/assign
|
|
547
473
|
*/
|
|
548
|
-
declare function projectsAssign({ pathParams, config, }?: {
|
|
549
|
-
pathParams:
|
|
550
|
-
|
|
551
|
-
};
|
|
474
|
+
declare function projectsAssign({ pathParams, body, config, }?: {
|
|
475
|
+
pathParams: ProjectsAssignPath;
|
|
476
|
+
body: ProjectsAssignBody;
|
|
552
477
|
config?: Partial<FetcherConfig> & {
|
|
553
478
|
client?: typeof client;
|
|
554
479
|
};
|
|
555
|
-
}): Promise<
|
|
480
|
+
}): Promise<ProjectsAssignStatus200>;
|
|
556
481
|
/**
|
|
557
482
|
* @summary Find Environment Variables
|
|
558
483
|
* @description Retrieves all environment variables for a given project.
|
|
559
484
|
* @link /projects/{projectId}/env-vars
|
|
560
485
|
*/
|
|
561
486
|
declare function projectsFindEnvVars({ pathParams, queryParams, config, }?: {
|
|
562
|
-
pathParams:
|
|
563
|
-
|
|
564
|
-
};
|
|
565
|
-
queryParams?: {
|
|
566
|
-
decrypted?: "true" | "false";
|
|
567
|
-
};
|
|
487
|
+
pathParams: ProjectsFindEnvVarsPath;
|
|
488
|
+
queryParams?: Partial<ProjectsFindEnvVarsQuery>;
|
|
568
489
|
config?: Partial<FetcherConfig> & {
|
|
569
490
|
client?: typeof client;
|
|
570
491
|
};
|
|
571
|
-
}): Promise<
|
|
492
|
+
}): Promise<ProjectsFindEnvVarsStatus200>;
|
|
572
493
|
/**
|
|
573
494
|
* @summary Create Environment Variables
|
|
574
495
|
* @description Creates new environment variables for a given project. This endpoint will fail if any of the specified environment variable keys already exist, unless upsert is set to true.
|
|
575
496
|
* @link /projects/{projectId}/env-vars
|
|
576
497
|
*/
|
|
577
|
-
declare function projectsCreateEnvVars({ pathParams, queryParams, config, }?: {
|
|
578
|
-
pathParams:
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
queryParams?: {
|
|
582
|
-
decrypted?: "true" | "false";
|
|
583
|
-
};
|
|
498
|
+
declare function projectsCreateEnvVars({ pathParams, body, queryParams, config, }?: {
|
|
499
|
+
pathParams: ProjectsCreateEnvVarsPath;
|
|
500
|
+
body: ProjectsCreateEnvVarsBody;
|
|
501
|
+
queryParams?: Partial<ProjectsCreateEnvVarsQuery>;
|
|
584
502
|
config?: Partial<FetcherConfig> & {
|
|
585
503
|
client?: typeof client;
|
|
586
504
|
};
|
|
587
|
-
}): Promise<
|
|
505
|
+
}): Promise<ProjectsCreateEnvVarsStatus200>;
|
|
588
506
|
/**
|
|
589
507
|
* @summary Update Environment Variables
|
|
590
508
|
* @description Updates multiple environment variables for a given project. Only the value of each environment variable can be updated.
|
|
591
509
|
* @link /projects/{projectId}/env-vars
|
|
592
510
|
*/
|
|
593
|
-
declare function projectsUpdateEnvVars({ pathParams, queryParams, config, }?: {
|
|
594
|
-
pathParams:
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
queryParams?: {
|
|
598
|
-
decrypted?: "true" | "false";
|
|
599
|
-
};
|
|
511
|
+
declare function projectsUpdateEnvVars({ pathParams, body, queryParams, config, }?: {
|
|
512
|
+
pathParams: ProjectsUpdateEnvVarsPath;
|
|
513
|
+
body: ProjectsUpdateEnvVarsBody;
|
|
514
|
+
queryParams?: Partial<ProjectsUpdateEnvVarsQuery>;
|
|
600
515
|
config?: Partial<FetcherConfig> & {
|
|
601
516
|
client?: typeof client;
|
|
602
517
|
};
|
|
603
|
-
}): Promise<
|
|
518
|
+
}): Promise<ProjectsUpdateEnvVarsStatus200>;
|
|
604
519
|
/**
|
|
605
520
|
* @summary Delete Environment Variables
|
|
606
521
|
* @description Deletes multiple environment variables for a given project by their IDs.
|
|
607
522
|
* @link /projects/{projectId}/env-vars/delete
|
|
608
523
|
*/
|
|
609
|
-
declare function projectsDeleteEnvVars({ pathParams, config, }?: {
|
|
610
|
-
pathParams:
|
|
611
|
-
|
|
612
|
-
};
|
|
524
|
+
declare function projectsDeleteEnvVars({ pathParams, body, config, }?: {
|
|
525
|
+
pathParams: ProjectsDeleteEnvVarsPath;
|
|
526
|
+
body: ProjectsDeleteEnvVarsBody;
|
|
613
527
|
config?: Partial<FetcherConfig> & {
|
|
614
528
|
client?: typeof client;
|
|
615
529
|
};
|
|
616
|
-
}): Promise<
|
|
530
|
+
}): Promise<ProjectsDeleteEnvVarsStatus200>;
|
|
617
531
|
/**
|
|
618
532
|
* @summary Get Environment Variable
|
|
619
533
|
* @description Retrieves a specific environment variable for a given project by its ID, including its value.
|
|
620
534
|
* @link /projects/{projectId}/env-vars/{environmentVariableId}
|
|
621
535
|
*/
|
|
622
536
|
declare function projectsGetEnvVar({ pathParams, queryParams, config, }?: {
|
|
623
|
-
pathParams:
|
|
624
|
-
|
|
625
|
-
environmentVariableId: string;
|
|
626
|
-
};
|
|
627
|
-
queryParams?: {
|
|
628
|
-
decrypted?: "true" | "false";
|
|
629
|
-
};
|
|
537
|
+
pathParams: ProjectsGetEnvVarPath;
|
|
538
|
+
queryParams?: Partial<ProjectsGetEnvVarQuery>;
|
|
630
539
|
config?: Partial<FetcherConfig> & {
|
|
631
540
|
client?: typeof client;
|
|
632
541
|
};
|
|
633
|
-
}): Promise<
|
|
542
|
+
}): Promise<ProjectsGetEnvVarStatus200>;
|
|
634
543
|
/**
|
|
635
544
|
* @summary Find Rate Limit
|
|
636
545
|
* @description Retrieves rate limit information for a given scope. Useful for monitoring usage limits and avoiding throttling.
|
|
637
546
|
* @link /rate-limits
|
|
638
547
|
*/
|
|
639
548
|
declare function rateLimitsFind({ queryParams, config, }?: {
|
|
640
|
-
queryParams?:
|
|
641
|
-
scope?: string;
|
|
642
|
-
};
|
|
549
|
+
queryParams?: Partial<RateLimitsFindQuery>;
|
|
643
550
|
config?: Partial<FetcherConfig> & {
|
|
644
551
|
client?: typeof client;
|
|
645
552
|
};
|
|
646
|
-
}): Promise<
|
|
553
|
+
}): Promise<RateLimitsFindStatus200>;
|
|
647
554
|
/**
|
|
648
555
|
* @summary Get User
|
|
649
556
|
* @description Retrieves information about the authenticated user, including their ID, name, email, and account metadata.
|
|
@@ -653,20 +560,18 @@ declare function userGet({ config }?: {
|
|
|
653
560
|
config?: Partial<FetcherConfig> & {
|
|
654
561
|
client?: typeof client;
|
|
655
562
|
};
|
|
656
|
-
}): Promise<
|
|
563
|
+
}): Promise<UserSummarySchema>;
|
|
657
564
|
/**
|
|
658
565
|
* @summary Get Billing
|
|
659
566
|
* @description Fetches billing usage and quota information for the authenticated user. Can be scoped to a specific context (e.g. project or namespace).
|
|
660
567
|
* @link /user/billing
|
|
661
568
|
*/
|
|
662
569
|
declare function userGetBilling({ queryParams, config, }?: {
|
|
663
|
-
queryParams?:
|
|
664
|
-
scope?: string;
|
|
665
|
-
};
|
|
570
|
+
queryParams?: Partial<UserGetBillingQuery>;
|
|
666
571
|
config?: Partial<FetcherConfig> & {
|
|
667
572
|
client?: typeof client;
|
|
668
573
|
};
|
|
669
|
-
}): Promise<
|
|
574
|
+
}): Promise<UserGetBillingStatus200>;
|
|
670
575
|
/**
|
|
671
576
|
* @summary Get Plan
|
|
672
577
|
* @description Returns the current subscription plan for the authenticated user, including tier details and feature limits.
|
|
@@ -676,7 +581,7 @@ declare function userGetPlan({ config }?: {
|
|
|
676
581
|
config?: Partial<FetcherConfig> & {
|
|
677
582
|
client?: typeof client;
|
|
678
583
|
};
|
|
679
|
-
}): Promise<
|
|
584
|
+
}): Promise<UserGetPlanStatus200>;
|
|
680
585
|
/**
|
|
681
586
|
* @summary Get User Scopes
|
|
682
587
|
* @description Retrieves all accessible scopes for the authenticated user, such as personal workspaces or shared teams.
|
|
@@ -686,70 +591,51 @@ declare function userGetScopes({ config }?: {
|
|
|
686
591
|
config?: Partial<FetcherConfig> & {
|
|
687
592
|
client?: typeof client;
|
|
688
593
|
};
|
|
689
|
-
}): Promise<
|
|
594
|
+
}): Promise<UserGetScopesStatus200>;
|
|
690
595
|
/**
|
|
691
596
|
* @summary Restore Block
|
|
692
597
|
* @description Restores a block to a specific version.
|
|
693
598
|
* @link /chats/{chatId}/versions/{versionId}/restore
|
|
694
599
|
*/
|
|
695
600
|
declare function chatsRestore({ pathParams, config, }?: {
|
|
696
|
-
pathParams:
|
|
697
|
-
chatId: string;
|
|
698
|
-
versionId: string;
|
|
699
|
-
};
|
|
601
|
+
pathParams: ChatsRestorePath;
|
|
700
602
|
config?: Partial<FetcherConfig> & {
|
|
701
603
|
client?: typeof client;
|
|
702
604
|
};
|
|
703
|
-
}): Promise<
|
|
605
|
+
}): Promise<VersionDetail>;
|
|
704
606
|
/**
|
|
705
607
|
* @summary Get Usage Report
|
|
706
608
|
* @description Retrieves detailed usage events for the authenticated user or team, including costs, event types, models used, and metadata. Shows the same data as displayed in the usage dashboard. Can be filtered by chatId to show usage for a specific chat, or by userId to show usage for a specific user.
|
|
707
609
|
* @link /reports/usage
|
|
708
610
|
*/
|
|
709
611
|
declare function reportsGetUsage({ queryParams, config, }?: {
|
|
710
|
-
queryParams?:
|
|
711
|
-
startDate?: string;
|
|
712
|
-
endDate?: string;
|
|
713
|
-
chatId?: string;
|
|
714
|
-
messageId?: string;
|
|
715
|
-
userId?: string;
|
|
716
|
-
limit?: number;
|
|
717
|
-
cursor?: string;
|
|
718
|
-
};
|
|
612
|
+
queryParams?: Partial<ReportsGetUsageQuery>;
|
|
719
613
|
config?: Partial<FetcherConfig> & {
|
|
720
614
|
client?: typeof client;
|
|
721
615
|
};
|
|
722
|
-
}): Promise<
|
|
616
|
+
}): Promise<ReportsGetUsageStatus200>;
|
|
723
617
|
/**
|
|
724
618
|
* @summary Get AI Usage Report
|
|
725
619
|
* @description Retrieves v0 AI usage events for the authenticated user or active team scope.
|
|
726
620
|
* @link /reports/usage/ai
|
|
727
621
|
*/
|
|
728
622
|
declare function reportsGetAIUsage({ queryParams, config, }?: {
|
|
729
|
-
queryParams?:
|
|
730
|
-
start?: string;
|
|
731
|
-
end?: string;
|
|
732
|
-
cursor?: string;
|
|
733
|
-
limit?: number;
|
|
734
|
-
};
|
|
623
|
+
queryParams?: Partial<ReportsGetAIUsageQuery>;
|
|
735
624
|
config?: Partial<FetcherConfig> & {
|
|
736
625
|
client?: typeof client;
|
|
737
626
|
};
|
|
738
|
-
}): Promise<
|
|
627
|
+
}): Promise<ReportsGetAIUsageStatus200>;
|
|
739
628
|
/**
|
|
740
629
|
* @summary Get User Activity Report
|
|
741
630
|
* @description Retrieves aggregated user activity data for team members, including chat counts, message counts, and activity timestamps. Only available for Enterprise teams with OWNER or BILLING role. Shows the same data as displayed in the Usage settings for Enterprise teams.
|
|
742
631
|
* @link /reports/user-activity
|
|
743
632
|
*/
|
|
744
633
|
declare function reportsGetUserActivity({ queryParams, config, }?: {
|
|
745
|
-
queryParams?:
|
|
746
|
-
startDate?: string;
|
|
747
|
-
endDate?: string;
|
|
748
|
-
};
|
|
634
|
+
queryParams?: Partial<ReportsGetUserActivityQuery>;
|
|
749
635
|
config?: Partial<FetcherConfig> & {
|
|
750
636
|
client?: typeof client;
|
|
751
637
|
};
|
|
752
|
-
}): Promise<
|
|
638
|
+
}): Promise<ReportsGetUserActivityStatus200>;
|
|
753
639
|
/**
|
|
754
640
|
* @summary List MCP Servers
|
|
755
641
|
* @description Retrieves all MCP servers configured for the authenticated user.
|
|
@@ -759,69 +645,64 @@ declare function mcpServersFind({ config }?: {
|
|
|
759
645
|
config?: Partial<FetcherConfig> & {
|
|
760
646
|
client?: typeof client;
|
|
761
647
|
};
|
|
762
|
-
}): Promise<
|
|
648
|
+
}): Promise<McpServersFindStatus200>;
|
|
763
649
|
/**
|
|
764
650
|
* @summary Create MCP Server
|
|
765
651
|
* @description Creates a new MCP server configuration for the authenticated user. Supports OAuth, bearer token, custom headers, and unauthenticated servers.
|
|
766
652
|
* @link /mcp-servers
|
|
767
653
|
*/
|
|
768
|
-
declare function mcpServersCreate({ config }?: {
|
|
654
|
+
declare function mcpServersCreate({ body, config, }?: {
|
|
655
|
+
body: McpServersCreateBody;
|
|
769
656
|
config?: Partial<FetcherConfig> & {
|
|
770
657
|
client?: typeof client;
|
|
771
658
|
};
|
|
772
|
-
}): Promise<
|
|
659
|
+
}): Promise<McpServersCreateStatus200>;
|
|
773
660
|
/**
|
|
774
661
|
* @summary Get MCP Server
|
|
775
662
|
* @description Retrieves the details of a specific MCP server by its ID.
|
|
776
663
|
* @link /mcp-servers/{mcpServerId}
|
|
777
664
|
*/
|
|
778
665
|
declare function mcpServersGetById({ pathParams, config, }?: {
|
|
779
|
-
pathParams:
|
|
780
|
-
mcpServerId: string;
|
|
781
|
-
};
|
|
666
|
+
pathParams: McpServersGetByIdPath;
|
|
782
667
|
config?: Partial<FetcherConfig> & {
|
|
783
668
|
client?: typeof client;
|
|
784
669
|
};
|
|
785
|
-
}): Promise<
|
|
670
|
+
}): Promise<McpServersGetByIdStatus200>;
|
|
786
671
|
/**
|
|
787
672
|
* @summary Update MCP Server
|
|
788
673
|
* @description Updates the configuration of an existing MCP server, including its name, URL, description, enabled status, and authentication settings.
|
|
789
674
|
* @link /mcp-servers/{mcpServerId}
|
|
790
675
|
*/
|
|
791
|
-
declare function mcpServersUpdate({ pathParams, config, }?: {
|
|
792
|
-
pathParams:
|
|
793
|
-
|
|
794
|
-
};
|
|
676
|
+
declare function mcpServersUpdate({ pathParams, body, config, }?: {
|
|
677
|
+
pathParams: McpServersUpdatePath;
|
|
678
|
+
body: McpServersUpdateBody;
|
|
795
679
|
config?: Partial<FetcherConfig> & {
|
|
796
680
|
client?: typeof client;
|
|
797
681
|
};
|
|
798
|
-
}): Promise<
|
|
682
|
+
}): Promise<McpServersUpdateStatus200>;
|
|
799
683
|
/**
|
|
800
684
|
* @summary Delete MCP Server
|
|
801
685
|
* @description Deletes an MCP server based on its ID. This action is irreversible and will also remove any associated OAuth tokens.
|
|
802
686
|
* @link /mcp-servers/{mcpServerId}
|
|
803
687
|
*/
|
|
804
688
|
declare function mcpServersDelete({ pathParams, config, }?: {
|
|
805
|
-
pathParams:
|
|
806
|
-
mcpServerId: string;
|
|
807
|
-
};
|
|
689
|
+
pathParams: McpServersDeletePath;
|
|
808
690
|
config?: Partial<FetcherConfig> & {
|
|
809
691
|
client?: typeof client;
|
|
810
692
|
};
|
|
811
|
-
}): Promise<
|
|
693
|
+
}): Promise<McpServersDeleteStatus200>;
|
|
812
694
|
/**
|
|
813
695
|
* @summary Create MCP Server OAuth Authorization URL
|
|
814
696
|
* @description Creates an OAuth authorization URL for an OAuth MCP server. Redirect the user to the returned URL, and the Platform API OAuth callback will store the resulting tokens before redirecting to your returnUrl.
|
|
815
697
|
* @link /mcp-servers/{mcpServerId}/oauth/authorize
|
|
816
698
|
*/
|
|
817
|
-
declare function mcpServersCreateOAuthAuthorizationUrl({ pathParams, config, }?: {
|
|
818
|
-
pathParams:
|
|
819
|
-
|
|
820
|
-
};
|
|
699
|
+
declare function mcpServersCreateOAuthAuthorizationUrl({ pathParams, body, config, }?: {
|
|
700
|
+
pathParams: McpServersCreateOAuthAuthorizationUrlPath;
|
|
701
|
+
body: McpServersCreateOAuthAuthorizationUrlBody;
|
|
821
702
|
config?: Partial<FetcherConfig> & {
|
|
822
703
|
client?: typeof client;
|
|
823
704
|
};
|
|
824
|
-
}): Promise<
|
|
705
|
+
}): Promise<McpServersCreateOAuthAuthorizationUrlStatus200>;
|
|
825
706
|
declare const operationsByPath: {
|
|
826
707
|
"POST /chats": typeof chatsCreate;
|
|
827
708
|
"GET /chats": typeof chatsFind;
|
|
@@ -1008,6 +889,6 @@ declare const tagDictionary: {
|
|
|
1008
889
|
};
|
|
1009
890
|
};
|
|
1010
891
|
|
|
1011
|
-
export { mcpServersFind as $, projectsAssign as A, projectsFindEnvVars as B, projectsCreateEnvVars as C, projectsUpdateEnvVars as D, projectsDeleteEnvVars as E, projectsGetEnvVar as F, deploymentsFind as G, deploymentsCreate as H, deploymentsGetById as I, deploymentsDelete as J, deploymentsFindLogs as K, deploymentsFindErrors as L, hooksFind as M, hooksCreate as N, hooksGetById as O, hooksUpdate as P, hooksDelete as Q, integrationsVercelProjectsFind as R, integrationsVercelProjectsCreate as S, rateLimitsFind as T, userGet as U, userGetBilling as V, userGetPlan as W, userGetScopes as X, reportsGetUsage as Y, reportsGetAIUsage as Z, reportsGetUserActivity as _, chatsFind as a, mcpServersCreate as a0, mcpServersGetById as a1, mcpServersUpdate as a2, mcpServersDelete as a3, mcpServersCreateOAuthAuthorizationUrl as a4, operationsByTag as a5, tagDictionary as
|
|
1012
|
-
export type {
|
|
1013
|
-
//# sourceMappingURL=components-
|
|
892
|
+
export { mcpServersFind as $, projectsAssign as A, projectsFindEnvVars as B, projectsCreateEnvVars as C, projectsUpdateEnvVars as D, projectsDeleteEnvVars as E, projectsGetEnvVar as F, deploymentsFind as G, deploymentsCreate as H, deploymentsGetById as I, deploymentsDelete as J, deploymentsFindLogs as K, deploymentsFindErrors as L, hooksFind as M, hooksCreate as N, hooksGetById as O, hooksUpdate as P, hooksDelete as Q, integrationsVercelProjectsFind as R, integrationsVercelProjectsCreate as S, rateLimitsFind as T, userGet as U, userGetBilling as V, userGetPlan as W, userGetScopes as X, reportsGetUsage as Y, reportsGetAIUsage as Z, reportsGetUserActivity as _, chatsFind as a, mcpServersCreate as a0, mcpServersGetById as a1, mcpServersUpdate as a2, mcpServersDelete as a3, mcpServersCreateOAuthAuthorizationUrl as a4, operationsByTag as a5, tagDictionary as a6, operationsByPath as a8, chatsInit as b, chatsCreate as c, chatsDelete as d, chatsGetById as e, chatsUpdate as f, chatsFavorite as g, chatsFork as h, chatsFindMessages as i, chatsSendMessage as j, chatsGetMessage as k, chatsFindVersions as l, chatsGetVersion as m, chatsUpdateVersion as n, chatsDownloadVersion as o, chatsDeleteVersionFiles as p, chatsResume as q, chatsStop as r, chatsResolveTask as s, chatsRestore as t, projectsGetByChatId as u, projectsFind as v, projectsCreate as w, projectsGetById as x, projectsUpdate as y, projectsDelete as z };
|
|
893
|
+
export type { FetchImpl as a7, FetcherConfig as a9 };
|
|
894
|
+
//# sourceMappingURL=components-lojiycjm.d.ts.map
|