@v0-sdk/react 0.5.1 → 3.0.0-canary.9e23bac

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.
@@ -0,0 +1,1033 @@
1
+ import * as _$v0_browser0 from "v0/browser";
2
+ import { ChatsCreateAsyncData, ChatsCreateAsyncError, ChatsCreateAsyncResponse, ChatsCreateData, ChatsCreateError, ChatsCreateFromFilesData, ChatsCreateFromFilesError, ChatsCreateFromFilesResponse, ChatsCreateFromRepoData, ChatsCreateFromRepoError, ChatsCreateFromRepoResponse, ChatsCreateFromZipData, ChatsCreateFromZipError, ChatsCreateFromZipResponse, ChatsCreateResponse, ChatsCreateStreamData, ChatsCreateStreamError, ChatsCreateVercelProjectData, ChatsCreateVercelProjectError, ChatsCreateVercelProjectResponse, ChatsDeleteError, ChatsDeleteResponse, ChatsDeployError, ChatsDeployResponse, ChatsDownloadFilesError, ChatsDuplicateData, ChatsDuplicateError, ChatsDuplicateResponse, ChatsGetError, ChatsGetFilesError, ChatsGetFilesResponse, ChatsGetPreviewError, ChatsGetPreviewResponse, ChatsGetResponse, ChatsListData, ChatsListError, ChatsListResponse, ChatsRestoreMessageData, ChatsRestoreMessageError, ChatsRestoreMessageResponse, ChatsResumeError, ChatsUpdateData, ChatsUpdateError, ChatsUpdateFilesData, ChatsUpdateFilesError, ChatsUpdateFilesResponse, ChatsUpdateResponse, McpServersCreateData, McpServersCreateError, McpServersCreateResponse, McpServersDeleteError, McpServersDeleteResponse, McpServersGetError, McpServersGetResponse, McpServersListError, McpServersListResponse, McpServersUpdateData, McpServersUpdateError, McpServersUpdateResponse, MessagesGetError, MessagesGetResponse, MessagesListData, MessagesListError, MessagesListResponse, MessagesResolveAsyncData, MessagesResolveAsyncError, MessagesResolveAsyncResponse, MessagesResolveData, MessagesResolveError, MessagesResolveResponse, MessagesResolveStreamData, MessagesResolveStreamError, MessagesSendAsyncData, MessagesSendAsyncError, MessagesSendAsyncResponse, MessagesSendData, MessagesSendError, MessagesSendResponse, MessagesSendStreamData, MessagesSendStreamError, MessagesStopError, MessagesStopResponse, WebhooksCreateData, WebhooksCreateError, WebhooksCreateResponse, WebhooksDeleteError, WebhooksDeleteResponse, WebhooksGetError, WebhooksGetResponse, WebhooksListError, WebhooksListResponse, WebhooksUpdateData, WebhooksUpdateError, WebhooksUpdateResponse } from "v0/browser";
3
+ import * as _$swr from "swr";
4
+ import { Key, SWRConfiguration } from "swr";
5
+ import * as _$swr_mutation0 from "swr/mutation";
6
+ import { SWRMutationConfiguration } from "swr/mutation";
7
+ import * as _$swr__internal0 from "swr/_internal";
8
+ import * as _$swr_infinite0 from "swr/infinite";
9
+ import { SWRInfiniteConfiguration } from "swr/infinite";
10
+ export * from "v0/browser";
11
+
12
+ //#region src/request.d.ts
13
+ type V0Fetch = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
14
+ interface V0RequestOptions extends Omit<RequestInit, 'body' | 'method'> {
15
+ /** Override the Fetch implementation for this hook. */
16
+ fetch?: V0Fetch;
17
+ }
18
+ type V0HttpMethod = Uppercase<'get' | 'post' | 'patch' | 'delete' | 'put'>;
19
+ type V0ResponseKind = 'json' | 'stream' | 'blob';
20
+ type V0ResponseTransformer<Data> = (data: unknown) => Data | Promise<Data>;
21
+ interface V0Operation<Data> {
22
+ id: string;
23
+ method: V0HttpMethod;
24
+ response: V0ResponseKind;
25
+ transform?: V0ResponseTransformer<Data>;
26
+ }
27
+ /** HTTP error returned by the application's v0 proxy. */
28
+ declare class V0ResponseError<Body = unknown> extends Error {
29
+ readonly status: number;
30
+ readonly statusText: string;
31
+ readonly body: Body;
32
+ readonly response: Response;
33
+ constructor(response: Response, body: Body, message?: string);
34
+ }
35
+ //#endregion
36
+ //#region src/hooks.d.ts
37
+ type V0Url = string | null;
38
+ interface V0QueryConfiguration<Data, ErrorBody = unknown> extends SWRConfiguration<Data, V0ResponseError<ErrorBody>> {
39
+ /** Disable this query without changing hook order. */
40
+ enabled?: boolean;
41
+ /** Override request options for this hook. */
42
+ request?: V0RequestOptions;
43
+ }
44
+ interface V0InfiniteConfiguration<Data, ErrorBody = unknown> extends SWRInfiniteConfiguration<Data, V0ResponseError<ErrorBody>> {
45
+ /** Disable this query without changing hook order. */
46
+ enabled?: boolean;
47
+ /** Override request options for this hook. */
48
+ request?: V0RequestOptions;
49
+ }
50
+ interface V0MutationConfiguration<Data, ErrorBody, Input> extends SWRMutationConfiguration<Data, V0ResponseError<ErrorBody>, Key, Input, Data> {
51
+ /** Override request options for this hook. */
52
+ request?: V0RequestOptions;
53
+ }
54
+ declare function createV0Key(operation: string, url: string, input: unknown): readonly ['v0', string, string, unknown];
55
+ //#endregion
56
+ //#region src/generated/hooks.d.ts
57
+ declare const V0_REACT_OPERATION_HOOKS: {
58
+ readonly 'chats.create': "useCreateChatBlocking";
59
+ readonly 'chats.createAsync': "useCreateChatAsync";
60
+ readonly 'chats.createFromFiles': "useCreateChatFromFiles";
61
+ readonly 'chats.createFromRepo': "useCreateChatFromRepo";
62
+ readonly 'chats.createFromZip': "useCreateChatFromZip";
63
+ readonly 'chats.createStream': "useCreateChat";
64
+ readonly 'chats.createVercelProject': "useCreateProject";
65
+ readonly 'chats.delete': "useDeleteChat";
66
+ readonly 'chats.deploy': "useDeployChat";
67
+ readonly 'chats.downloadFiles': "useDownloadChatFiles";
68
+ readonly 'chats.duplicate': "useDuplicateChat";
69
+ readonly 'chats.get': "useChat";
70
+ readonly 'chats.getFiles': "useFiles";
71
+ readonly 'chats.getPreview': "usePreview";
72
+ readonly 'chats.list': "useChats";
73
+ readonly 'chats.restoreMessage': "useRestoreMessage";
74
+ readonly 'chats.resume': "useResumeChat";
75
+ readonly 'chats.update': "useUpdateChat";
76
+ readonly 'chats.updateFiles': "useUpdateChatFiles";
77
+ readonly 'mcpServers.create': "useCreateMcpServer";
78
+ readonly 'mcpServers.delete': "useDeleteMcpServer";
79
+ readonly 'mcpServers.get': "useMcpServer";
80
+ readonly 'mcpServers.list': "useMcpServers";
81
+ readonly 'mcpServers.update': "useUpdateMcpServer";
82
+ readonly 'messages.get': "useMessage";
83
+ readonly 'messages.list': "useMessages";
84
+ readonly 'messages.resolve': "useResolveTaskBlocking";
85
+ readonly 'messages.resolveAsync': "useResolveTaskAsync";
86
+ readonly 'messages.resolveStream': "useResolveTask";
87
+ readonly 'messages.send': "useSendMessageBlocking";
88
+ readonly 'messages.sendAsync': "useSendMessageAsync";
89
+ readonly 'messages.sendStream': "useSendMessage";
90
+ readonly 'messages.stop': "useStopMessage";
91
+ readonly 'webhooks.create': "useCreateWebhook";
92
+ readonly 'webhooks.delete': "useDeleteWebhook";
93
+ readonly 'webhooks.get': "useWebhook";
94
+ readonly 'webhooks.list': "useWebhooks";
95
+ readonly 'webhooks.update': "useUpdateWebhook";
96
+ };
97
+ type CreateChatBlockingInput = ChatsCreateData['body'];
98
+ declare function useCreateChatBlocking(url: string, configuration?: V0MutationConfiguration<ChatsCreateResponse, ChatsCreateError, ChatsCreateData['body']>): _$swr_mutation0.SWRMutationResponse<_$v0_browser0.ChatWithUsage, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
99
+ message: string;
100
+ systemPrompt?: string;
101
+ modelConfiguration?: {
102
+ modelId: "v0-auto" | "v0-mini" | "v0-pro" | "v0-max" | "v0-max-fast";
103
+ imageGenerations: boolean;
104
+ };
105
+ attachments?: Array<{
106
+ url: string;
107
+ }>;
108
+ mcpServerIds?: Array<string>;
109
+ skills?: Array<{
110
+ type: "remote";
111
+ id: string;
112
+ } | {
113
+ type: "memory";
114
+ scope: "user" | "team";
115
+ skillName: string;
116
+ } | {
117
+ type: "project";
118
+ skillName: string;
119
+ }>;
120
+ privacy?: "public" | "private" | "team" | "team-edit" | "unlisted";
121
+ title?: string;
122
+ metadata?: {
123
+ [key: string]: string;
124
+ };
125
+ }>;
126
+ type CreateChatAsyncInput = ChatsCreateAsyncData['body'];
127
+ declare function useCreateChatAsync(url: string, configuration?: V0MutationConfiguration<ChatsCreateAsyncResponse, ChatsCreateAsyncError, ChatsCreateAsyncData['body']>): _$swr_mutation0.SWRMutationResponse<_$v0_browser0.AsyncChat, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
128
+ message: string;
129
+ systemPrompt?: string;
130
+ modelConfiguration?: {
131
+ modelId: "v0-auto" | "v0-mini" | "v0-pro" | "v0-max" | "v0-max-fast";
132
+ imageGenerations: boolean;
133
+ };
134
+ attachments?: Array<{
135
+ url: string;
136
+ }>;
137
+ mcpServerIds?: Array<string>;
138
+ skills?: Array<{
139
+ type: "remote";
140
+ id: string;
141
+ } | {
142
+ type: "memory";
143
+ scope: "user" | "team";
144
+ skillName: string;
145
+ } | {
146
+ type: "project";
147
+ skillName: string;
148
+ }>;
149
+ privacy?: "public" | "private" | "team" | "team-edit" | "unlisted";
150
+ title?: string;
151
+ metadata?: {
152
+ [key: string]: string;
153
+ };
154
+ }>;
155
+ type CreateChatFromFilesInput = ChatsCreateFromFilesData['body'];
156
+ declare function useCreateChatFromFiles(url: string, configuration?: V0MutationConfiguration<ChatsCreateFromFilesResponse, ChatsCreateFromFilesError, ChatsCreateFromFilesData['body']>): _$swr_mutation0.SWRMutationResponse<_$v0_browser0.ChatWithUsage, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
157
+ files: Array<{
158
+ name: string;
159
+ content: string;
160
+ }>;
161
+ privacy?: "public" | "private" | "team" | "team-edit" | "unlisted";
162
+ title?: string;
163
+ metadata?: {
164
+ [key: string]: string;
165
+ };
166
+ }>;
167
+ type CreateChatFromRepoInput = ChatsCreateFromRepoData['body'];
168
+ declare function useCreateChatFromRepo(url: string, configuration?: V0MutationConfiguration<ChatsCreateFromRepoResponse, ChatsCreateFromRepoError, ChatsCreateFromRepoData['body']>): _$swr_mutation0.SWRMutationResponse<_$v0_browser0.ChatWithUsage, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
169
+ repo: {
170
+ url: string;
171
+ branch?: string;
172
+ };
173
+ privacy?: "public" | "private" | "team" | "team-edit" | "unlisted";
174
+ title?: string;
175
+ metadata?: {
176
+ [key: string]: string;
177
+ };
178
+ }>;
179
+ type CreateChatFromZipInput = ChatsCreateFromZipData['body'];
180
+ declare function useCreateChatFromZip(url: string, configuration?: V0MutationConfiguration<ChatsCreateFromZipResponse, ChatsCreateFromZipError, ChatsCreateFromZipData['body']>): _$swr_mutation0.SWRMutationResponse<_$v0_browser0.ChatWithUsage, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
181
+ url: string;
182
+ privacy?: "public" | "private" | "team" | "team-edit" | "unlisted";
183
+ title?: string;
184
+ metadata?: {
185
+ [key: string]: string;
186
+ };
187
+ }>;
188
+ type CreateChatInput = ChatsCreateStreamData['body'];
189
+ declare function useCreateChat(url: string, configuration?: V0MutationConfiguration<Response, ChatsCreateStreamError, ChatsCreateStreamData['body']>): _$swr_mutation0.SWRMutationResponse<Response, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
190
+ message: string;
191
+ systemPrompt?: string;
192
+ modelConfiguration?: {
193
+ modelId: "v0-auto" | "v0-mini" | "v0-pro" | "v0-max" | "v0-max-fast";
194
+ imageGenerations: boolean;
195
+ };
196
+ attachments?: Array<{
197
+ url: string;
198
+ }>;
199
+ mcpServerIds?: Array<string>;
200
+ skills?: Array<{
201
+ type: "remote";
202
+ id: string;
203
+ } | {
204
+ type: "memory";
205
+ scope: "user" | "team";
206
+ skillName: string;
207
+ } | {
208
+ type: "project";
209
+ skillName: string;
210
+ }>;
211
+ privacy?: "public" | "private" | "team" | "team-edit" | "unlisted";
212
+ title?: string;
213
+ metadata?: {
214
+ [key: string]: string;
215
+ };
216
+ }>;
217
+ type CreateProjectInput = ChatsCreateVercelProjectData['body'];
218
+ declare function useCreateProject(url: string, configuration?: V0MutationConfiguration<ChatsCreateVercelProjectResponse, ChatsCreateVercelProjectError, ChatsCreateVercelProjectData['body']>): _$swr_mutation0.SWRMutationResponse<{
219
+ vercelProjectId: string;
220
+ }, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
221
+ name?: string;
222
+ }>;
223
+ declare function useDeleteChat(url: string, configuration?: V0MutationConfiguration<ChatsDeleteResponse, ChatsDeleteError, never>): _$swr_mutation0.SWRMutationResponse<{
224
+ chatId: string;
225
+ success: true;
226
+ }, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, never>;
227
+ declare function useDeployChat(url: string, configuration?: V0MutationConfiguration<ChatsDeployResponse, ChatsDeployError, never>): _$swr_mutation0.SWRMutationResponse<{
228
+ deploymentId: string;
229
+ vercelProjectId: string;
230
+ }, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, never>;
231
+ declare function useDownloadChatFiles(url: string, configuration?: V0MutationConfiguration<Blob, ChatsDownloadFilesError, never>): _$swr_mutation0.SWRMutationResponse<Blob, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, never>;
232
+ type DuplicateChatInput = ChatsDuplicateData['body'];
233
+ declare function useDuplicateChat(url: string, configuration?: V0MutationConfiguration<ChatsDuplicateResponse, ChatsDuplicateError, ChatsDuplicateData['body']>): _$swr_mutation0.SWRMutationResponse<_$v0_browser0.Chat, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
234
+ privacy: "public" | "private" | "team" | "team-edit" | "unlisted";
235
+ title?: string;
236
+ }>;
237
+ declare function useChat(url: V0Url, configuration?: V0QueryConfiguration<ChatsGetResponse, ChatsGetError>): _$swr.SWRResponse<_$v0_browser0.Chat, V0ResponseError<_$v0_browser0.Error>, _$swr.SWRConfiguration<_$v0_browser0.Chat, V0ResponseError<_$v0_browser0.Error>, ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<_$v0_browser0.Chat>) | ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<_$v0_browser0.Chat>)> | undefined>;
238
+ declare function useFiles(url: V0Url, configuration?: V0QueryConfiguration<ChatsGetFilesResponse, ChatsGetFilesError>): _$swr.SWRResponse<_$v0_browser0.Files, V0ResponseError<_$v0_browser0.Error>, _$swr.SWRConfiguration<_$v0_browser0.Files, V0ResponseError<_$v0_browser0.Error>, ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<_$v0_browser0.Files>) | ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<_$v0_browser0.Files>)> | undefined>;
239
+ declare function usePreview(url: V0Url, configuration?: V0QueryConfiguration<ChatsGetPreviewResponse, ChatsGetPreviewError>): _$swr.SWRResponse<{
240
+ url: string;
241
+ token: string;
242
+ expiresAt: Date;
243
+ } | null, V0ResponseError<_$v0_browser0.Error>, _$swr.SWRConfiguration<{
244
+ url: string;
245
+ token: string;
246
+ expiresAt: Date;
247
+ } | null, V0ResponseError<_$v0_browser0.Error>, ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<{
248
+ url: string;
249
+ token: string;
250
+ expiresAt: Date;
251
+ } | null>) | ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<{
252
+ url: string;
253
+ token: string;
254
+ expiresAt: Date;
255
+ } | null>)> | undefined>;
256
+ declare function useChats(url: V0Url, params?: NonNullable<ChatsListData['query']>, configuration?: V0QueryConfiguration<ChatsListResponse, ChatsListError>): _$swr.SWRResponse<{
257
+ chats: Array<{
258
+ id: string;
259
+ title?: string;
260
+ privacy: "public" | "private" | "team" | "team-edit" | "unlisted";
261
+ createdAt: Date;
262
+ updatedAt?: Date;
263
+ authorId: string;
264
+ vercelProjectId?: string;
265
+ metadata: {
266
+ [key: string]: string;
267
+ };
268
+ writePermission: boolean;
269
+ }>;
270
+ cursor: string | null;
271
+ }, V0ResponseError<_$v0_browser0.Error>, _$swr.SWRConfiguration<{
272
+ chats: Array<{
273
+ id: string;
274
+ title?: string;
275
+ privacy: "public" | "private" | "team" | "team-edit" | "unlisted";
276
+ createdAt: Date;
277
+ updatedAt?: Date;
278
+ authorId: string;
279
+ vercelProjectId?: string;
280
+ metadata: {
281
+ [key: string]: string;
282
+ };
283
+ writePermission: boolean;
284
+ }>;
285
+ cursor: string | null;
286
+ }, V0ResponseError<_$v0_browser0.Error>, ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<{
287
+ chats: Array<{
288
+ id: string;
289
+ title?: string;
290
+ privacy: "public" | "private" | "team" | "team-edit" | "unlisted";
291
+ createdAt: Date;
292
+ updatedAt?: Date;
293
+ authorId: string;
294
+ vercelProjectId?: string;
295
+ metadata: {
296
+ [key: string]: string;
297
+ };
298
+ writePermission: boolean;
299
+ }>;
300
+ cursor: string | null;
301
+ }>) | ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<{
302
+ chats: Array<{
303
+ id: string;
304
+ title?: string;
305
+ privacy: "public" | "private" | "team" | "team-edit" | "unlisted";
306
+ createdAt: Date;
307
+ updatedAt?: Date;
308
+ authorId: string;
309
+ vercelProjectId?: string;
310
+ metadata: {
311
+ [key: string]: string;
312
+ };
313
+ writePermission: boolean;
314
+ }>;
315
+ cursor: string | null;
316
+ }>)> | undefined>;
317
+ declare function useChatsInfinite(url: V0Url, params?: Omit<NonNullable<ChatsListData['query']>, 'cursor'>, configuration?: V0InfiniteConfiguration<ChatsListResponse, ChatsListError>): _$swr_infinite0.SWRInfiniteResponse<{
318
+ chats: Array<{
319
+ id: string;
320
+ title?: string;
321
+ privacy: "public" | "private" | "team" | "team-edit" | "unlisted";
322
+ createdAt: Date;
323
+ updatedAt?: Date;
324
+ authorId: string;
325
+ vercelProjectId?: string;
326
+ metadata: {
327
+ [key: string]: string;
328
+ };
329
+ writePermission: boolean;
330
+ }>;
331
+ cursor: string | null;
332
+ }, V0ResponseError<_$v0_browser0.Error>>;
333
+ type RestoreMessageInput = ChatsRestoreMessageData['body'];
334
+ declare function useRestoreMessage(url: string, configuration?: V0MutationConfiguration<ChatsRestoreMessageResponse, ChatsRestoreMessageError, ChatsRestoreMessageData['body']>): _$swr_mutation0.SWRMutationResponse<{
335
+ messages: Array<{
336
+ id: string;
337
+ chatId: string;
338
+ role: "user" | "assistant";
339
+ createdAt: Date;
340
+ updatedAt: Date;
341
+ content: string;
342
+ parts: Array<{
343
+ type: "text";
344
+ text: string;
345
+ startedAt?: Date;
346
+ finishedAt?: Date;
347
+ } | {
348
+ type: "thinking";
349
+ text: string;
350
+ startedAt?: Date;
351
+ finishedAt?: Date;
352
+ } | {
353
+ type: "file-read";
354
+ paths: Array<string>;
355
+ startedAt?: Date;
356
+ finishedAt?: Date;
357
+ } | {
358
+ type: "file-edit";
359
+ operation: "create" | "update" | "delete" | "rename" | "patch";
360
+ path: string;
361
+ toPath?: string;
362
+ startedAt?: Date;
363
+ finishedAt?: Date;
364
+ } | {
365
+ type: "search";
366
+ scope: "repo" | "web";
367
+ query: string;
368
+ startedAt?: Date;
369
+ finishedAt?: Date;
370
+ } | {
371
+ type: "bash";
372
+ command: string;
373
+ output?: string;
374
+ exitCode?: number | null;
375
+ isDangerous?: boolean;
376
+ timeoutMs?: number;
377
+ startedAt?: Date;
378
+ finishedAt?: Date;
379
+ } | {
380
+ type: "tool-call";
381
+ name: string;
382
+ input?: unknown;
383
+ output?: unknown;
384
+ status: "ok" | "error";
385
+ suggestedPermissions?: Array<{
386
+ type: "ALLOW_DYNAMIC_TOOL_STRICT";
387
+ toolName: string;
388
+ input?: unknown;
389
+ taskNameActive?: string | null;
390
+ taskNameComplete?: string | null;
391
+ userMessage?: string;
392
+ }>;
393
+ startedAt?: Date;
394
+ finishedAt?: Date;
395
+ } | {
396
+ type: "agent-action";
397
+ name: string;
398
+ summary: string;
399
+ data?: {
400
+ questions: Array<{
401
+ id: string;
402
+ question: string;
403
+ header: string;
404
+ multiSelect: boolean;
405
+ options: Array<{
406
+ id: string;
407
+ label: string;
408
+ description?: string;
409
+ }>;
410
+ }>;
411
+ } | {
412
+ plan: string;
413
+ summary?: string;
414
+ path: string;
415
+ } | {
416
+ requestedIntegrations: Array<string>;
417
+ requestedMcpPresets: Array<string>;
418
+ };
419
+ startedAt?: Date;
420
+ finishedAt?: Date;
421
+ }>;
422
+ finishReason: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | null;
423
+ attachments?: Array<{
424
+ url: string;
425
+ name?: string;
426
+ contentType?: string;
427
+ size?: number;
428
+ }>;
429
+ authorId: string | null;
430
+ usage: {
431
+ tokens: {
432
+ input: number;
433
+ output: number;
434
+ cacheRead: number;
435
+ cacheWrite: number;
436
+ total: number;
437
+ };
438
+ creditsCost: {
439
+ input: number;
440
+ output: number;
441
+ cacheRead: number;
442
+ cacheWrite: number;
443
+ total: number;
444
+ };
445
+ };
446
+ }>;
447
+ }, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
448
+ messageId: string;
449
+ }>;
450
+ declare function useResumeChat(url: string, configuration?: V0MutationConfiguration<Response, ChatsResumeError, never>): _$swr_mutation0.SWRMutationResponse<Response, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, never>;
451
+ type UpdateChatInput = ChatsUpdateData['body'];
452
+ declare function useUpdateChat(url: string, configuration?: V0MutationConfiguration<ChatsUpdateResponse, ChatsUpdateError, ChatsUpdateData['body']>): _$swr_mutation0.SWRMutationResponse<_$v0_browser0.Chat, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
453
+ title?: string;
454
+ privacy?: "public" | "private" | "team" | "team-edit" | "unlisted";
455
+ metadata?: {
456
+ [key: string]: string | null;
457
+ } | null;
458
+ }>;
459
+ type UpdateChatFilesInput = ChatsUpdateFilesData['body'];
460
+ declare function useUpdateChatFiles(url: string, configuration?: V0MutationConfiguration<ChatsUpdateFilesResponse, ChatsUpdateFilesError, ChatsUpdateFilesData['body']>): _$swr_mutation0.SWRMutationResponse<{
461
+ messages: Array<{
462
+ id: string;
463
+ chatId: string;
464
+ role: "user" | "assistant";
465
+ createdAt: Date;
466
+ updatedAt: Date;
467
+ content: string;
468
+ parts: Array<{
469
+ type: "text";
470
+ text: string;
471
+ startedAt?: Date;
472
+ finishedAt?: Date;
473
+ } | {
474
+ type: "thinking";
475
+ text: string;
476
+ startedAt?: Date;
477
+ finishedAt?: Date;
478
+ } | {
479
+ type: "file-read";
480
+ paths: Array<string>;
481
+ startedAt?: Date;
482
+ finishedAt?: Date;
483
+ } | {
484
+ type: "file-edit";
485
+ operation: "create" | "update" | "delete" | "rename" | "patch";
486
+ path: string;
487
+ toPath?: string;
488
+ startedAt?: Date;
489
+ finishedAt?: Date;
490
+ } | {
491
+ type: "search";
492
+ scope: "repo" | "web";
493
+ query: string;
494
+ startedAt?: Date;
495
+ finishedAt?: Date;
496
+ } | {
497
+ type: "bash";
498
+ command: string;
499
+ output?: string;
500
+ exitCode?: number | null;
501
+ isDangerous?: boolean;
502
+ timeoutMs?: number;
503
+ startedAt?: Date;
504
+ finishedAt?: Date;
505
+ } | {
506
+ type: "tool-call";
507
+ name: string;
508
+ input?: unknown;
509
+ output?: unknown;
510
+ status: "ok" | "error";
511
+ suggestedPermissions?: Array<{
512
+ type: "ALLOW_DYNAMIC_TOOL_STRICT";
513
+ toolName: string;
514
+ input?: unknown;
515
+ taskNameActive?: string | null;
516
+ taskNameComplete?: string | null;
517
+ userMessage?: string;
518
+ }>;
519
+ startedAt?: Date;
520
+ finishedAt?: Date;
521
+ } | {
522
+ type: "agent-action";
523
+ name: string;
524
+ summary: string;
525
+ data?: {
526
+ questions: Array<{
527
+ id: string;
528
+ question: string;
529
+ header: string;
530
+ multiSelect: boolean;
531
+ options: Array<{
532
+ id: string;
533
+ label: string;
534
+ description?: string;
535
+ }>;
536
+ }>;
537
+ } | {
538
+ plan: string;
539
+ summary?: string;
540
+ path: string;
541
+ } | {
542
+ requestedIntegrations: Array<string>;
543
+ requestedMcpPresets: Array<string>;
544
+ };
545
+ startedAt?: Date;
546
+ finishedAt?: Date;
547
+ }>;
548
+ finishReason: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | null;
549
+ attachments?: Array<{
550
+ url: string;
551
+ name?: string;
552
+ contentType?: string;
553
+ size?: number;
554
+ }>;
555
+ authorId: string | null;
556
+ usage: {
557
+ tokens: {
558
+ input: number;
559
+ output: number;
560
+ cacheRead: number;
561
+ cacheWrite: number;
562
+ total: number;
563
+ };
564
+ creditsCost: {
565
+ input: number;
566
+ output: number;
567
+ cacheRead: number;
568
+ cacheWrite: number;
569
+ total: number;
570
+ };
571
+ };
572
+ }>;
573
+ }, V0ResponseError<ChatsUpdateFilesError>, _$swr.Key, {
574
+ files: Array<{
575
+ path: string;
576
+ content: string | null;
577
+ }>;
578
+ }>;
579
+ type CreateMcpServerInput = McpServersCreateData['body'];
580
+ declare function useCreateMcpServer(url: string, configuration?: V0MutationConfiguration<McpServersCreateResponse, McpServersCreateError, McpServersCreateData['body']>): _$swr_mutation0.SWRMutationResponse<_$v0_browser0.McpServer, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
581
+ name: string;
582
+ url: string;
583
+ description?: string;
584
+ enabled: boolean;
585
+ auth: {
586
+ type: "none";
587
+ } | {
588
+ type: "bearer";
589
+ token: string;
590
+ } | {
591
+ type: "custom-headers";
592
+ headers: {
593
+ [key: string]: string;
594
+ };
595
+ } | {
596
+ type: "oauth";
597
+ config?: {
598
+ authorizationUrl: string;
599
+ tokenUrl: string;
600
+ registrationUrl?: string;
601
+ clientId: string;
602
+ clientSecret?: string;
603
+ scopes: Array<string>;
604
+ usePKCE: boolean;
605
+ issuer?: string;
606
+ resource?: string;
607
+ clientIdMetadataDocumentSupported?: boolean;
608
+ };
609
+ connected: boolean;
610
+ expiresAt?: string;
611
+ };
612
+ scope: "user" | "team";
613
+ }>;
614
+ declare function useDeleteMcpServer(url: string, configuration?: V0MutationConfiguration<McpServersDeleteResponse, McpServersDeleteError, never>): _$swr_mutation0.SWRMutationResponse<{
615
+ success: true;
616
+ }, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, never>;
617
+ declare function useMcpServer(url: V0Url, configuration?: V0QueryConfiguration<McpServersGetResponse, McpServersGetError>): _$swr.SWRResponse<_$v0_browser0.McpServer, V0ResponseError<_$v0_browser0.Error>, _$swr.SWRConfiguration<_$v0_browser0.McpServer, V0ResponseError<_$v0_browser0.Error>, ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<_$v0_browser0.McpServer>) | ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<_$v0_browser0.McpServer>)> | undefined>;
618
+ declare function useMcpServers(url: V0Url, configuration?: V0QueryConfiguration<McpServersListResponse, McpServersListError>): _$swr.SWRResponse<{
619
+ id: string;
620
+ name: string;
621
+ url: string;
622
+ description: string;
623
+ createdAt: Date;
624
+ updatedAt: Date;
625
+ userId: string;
626
+ enabled: boolean;
627
+ auth: {
628
+ type: "none";
629
+ } | {
630
+ type: "bearer";
631
+ token: string;
632
+ } | {
633
+ type: "custom-headers";
634
+ headers: {
635
+ [key: string]: string;
636
+ };
637
+ } | {
638
+ type: "oauth";
639
+ config?: {
640
+ authorizationUrl: string;
641
+ tokenUrl: string;
642
+ registrationUrl?: string;
643
+ clientId: string;
644
+ clientSecret?: string;
645
+ scopes: Array<string>;
646
+ usePKCE: boolean;
647
+ issuer?: string;
648
+ resource?: string;
649
+ clientIdMetadataDocumentSupported?: boolean;
650
+ };
651
+ connected: boolean;
652
+ expiresAt?: string;
653
+ };
654
+ scope: "user" | "team";
655
+ }[], V0ResponseError<_$v0_browser0.Error>, _$swr.SWRConfiguration<{
656
+ id: string;
657
+ name: string;
658
+ url: string;
659
+ description: string;
660
+ createdAt: Date;
661
+ updatedAt: Date;
662
+ userId: string;
663
+ enabled: boolean;
664
+ auth: {
665
+ type: "none";
666
+ } | {
667
+ type: "bearer";
668
+ token: string;
669
+ } | {
670
+ type: "custom-headers";
671
+ headers: {
672
+ [key: string]: string;
673
+ };
674
+ } | {
675
+ type: "oauth";
676
+ config?: {
677
+ authorizationUrl: string;
678
+ tokenUrl: string;
679
+ registrationUrl?: string;
680
+ clientId: string;
681
+ clientSecret?: string;
682
+ scopes: Array<string>;
683
+ usePKCE: boolean;
684
+ issuer?: string;
685
+ resource?: string;
686
+ clientIdMetadataDocumentSupported?: boolean;
687
+ };
688
+ connected: boolean;
689
+ expiresAt?: string;
690
+ };
691
+ scope: "user" | "team";
692
+ }[], V0ResponseError<_$v0_browser0.Error>, ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<{
693
+ id: string;
694
+ name: string;
695
+ url: string;
696
+ description: string;
697
+ createdAt: Date;
698
+ updatedAt: Date;
699
+ userId: string;
700
+ enabled: boolean;
701
+ auth: {
702
+ type: "none";
703
+ } | {
704
+ type: "bearer";
705
+ token: string;
706
+ } | {
707
+ type: "custom-headers";
708
+ headers: {
709
+ [key: string]: string;
710
+ };
711
+ } | {
712
+ type: "oauth";
713
+ config?: {
714
+ authorizationUrl: string;
715
+ tokenUrl: string;
716
+ registrationUrl?: string;
717
+ clientId: string;
718
+ clientSecret?: string;
719
+ scopes: Array<string>;
720
+ usePKCE: boolean;
721
+ issuer?: string;
722
+ resource?: string;
723
+ clientIdMetadataDocumentSupported?: boolean;
724
+ };
725
+ connected: boolean;
726
+ expiresAt?: string;
727
+ };
728
+ scope: "user" | "team";
729
+ }[]>) | ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<{
730
+ id: string;
731
+ name: string;
732
+ url: string;
733
+ description: string;
734
+ createdAt: Date;
735
+ updatedAt: Date;
736
+ userId: string;
737
+ enabled: boolean;
738
+ auth: {
739
+ type: "none";
740
+ } | {
741
+ type: "bearer";
742
+ token: string;
743
+ } | {
744
+ type: "custom-headers";
745
+ headers: {
746
+ [key: string]: string;
747
+ };
748
+ } | {
749
+ type: "oauth";
750
+ config?: {
751
+ authorizationUrl: string;
752
+ tokenUrl: string;
753
+ registrationUrl?: string;
754
+ clientId: string;
755
+ clientSecret?: string;
756
+ scopes: Array<string>;
757
+ usePKCE: boolean;
758
+ issuer?: string;
759
+ resource?: string;
760
+ clientIdMetadataDocumentSupported?: boolean;
761
+ };
762
+ connected: boolean;
763
+ expiresAt?: string;
764
+ };
765
+ scope: "user" | "team";
766
+ }[]>)> | undefined>;
767
+ type UpdateMcpServerInput = McpServersUpdateData['body'];
768
+ declare function useUpdateMcpServer(url: string, configuration?: V0MutationConfiguration<McpServersUpdateResponse, McpServersUpdateError, McpServersUpdateData['body']>): _$swr_mutation0.SWRMutationResponse<_$v0_browser0.McpServer, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
769
+ name?: string;
770
+ url?: string;
771
+ description?: string;
772
+ enabled?: boolean;
773
+ auth?: {
774
+ type: "none";
775
+ } | {
776
+ type: "bearer";
777
+ token: string;
778
+ } | {
779
+ type: "custom-headers";
780
+ headers: {
781
+ [key: string]: string;
782
+ };
783
+ } | {
784
+ type: "oauth";
785
+ config?: {
786
+ authorizationUrl: string;
787
+ tokenUrl: string;
788
+ registrationUrl?: string;
789
+ clientId: string;
790
+ clientSecret?: string;
791
+ scopes: Array<string>;
792
+ usePKCE: boolean;
793
+ issuer?: string;
794
+ resource?: string;
795
+ clientIdMetadataDocumentSupported?: boolean;
796
+ };
797
+ connected: boolean;
798
+ expiresAt?: string;
799
+ };
800
+ scope?: "user" | "team";
801
+ }>;
802
+ declare function useMessage(url: V0Url, configuration?: V0QueryConfiguration<MessagesGetResponse, MessagesGetError>): _$swr.SWRResponse<_$v0_browser0.Message, V0ResponseError<_$v0_browser0.Error>, _$swr.SWRConfiguration<_$v0_browser0.Message, V0ResponseError<_$v0_browser0.Error>, ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<_$v0_browser0.Message>) | ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<_$v0_browser0.Message>)> | undefined>;
803
+ declare function useMessages(url: V0Url, params: NonNullable<MessagesListData['query']>, configuration?: V0QueryConfiguration<MessagesListResponse, MessagesListError>): _$swr.SWRResponse<_$v0_browser0.MessageListResponse, V0ResponseError<_$v0_browser0.Error>, _$swr.SWRConfiguration<_$v0_browser0.MessageListResponse, V0ResponseError<_$v0_browser0.Error>, ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<_$v0_browser0.MessageListResponse>) | ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<_$v0_browser0.MessageListResponse>)> | undefined>;
804
+ declare function useMessagesInfinite(url: V0Url, params: Omit<NonNullable<MessagesListData['query']>, 'cursor'>, configuration?: V0InfiniteConfiguration<MessagesListResponse, MessagesListError>): _$swr_infinite0.SWRInfiniteResponse<_$v0_browser0.MessageListResponse, V0ResponseError<_$v0_browser0.Error>>;
805
+ type ResolveTaskBlockingInput = MessagesResolveData['body'];
806
+ declare function useResolveTaskBlocking(url: string, configuration?: V0MutationConfiguration<MessagesResolveResponse, MessagesResolveError, MessagesResolveData['body']>): _$swr_mutation0.SWRMutationResponse<_$v0_browser0.Message, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
807
+ task: {
808
+ type: "confirmed-steps";
809
+ connectedIntegrationNames?: Array<string>;
810
+ connectedMcpPresetNames?: Array<"Linear" | "Notion" | "Context7" | "Sentry" | "Zapier" | "Glean" | "Hex" | "Sanity" | "Granola" | "PostHog" | "Contentful" | "Slack">;
811
+ appliedScripts?: Array<string>;
812
+ addedEnvVars?: Array<string>;
813
+ } | {
814
+ type: "plan-exit-response";
815
+ status: "approved" | "rejected" | "request-changes";
816
+ content: string;
817
+ } | {
818
+ type: "answered-questions";
819
+ answers: Array<{
820
+ questionId: string;
821
+ questionText: string;
822
+ selectedLabels: Array<string>;
823
+ customText?: string;
824
+ }>;
825
+ } | {
826
+ type: "confirmed-permissions";
827
+ permissions: Array<{
828
+ type: "ALLOW_DYNAMIC_TOOL_STRICT";
829
+ toolName: string;
830
+ input: unknown;
831
+ taskNameActive?: string | null;
832
+ taskNameComplete?: string | null;
833
+ userMessage?: string;
834
+ }>;
835
+ userMessage?: string;
836
+ };
837
+ modelConfiguration?: {
838
+ modelId?: "v0-auto" | "v0-mini" | "v0-pro" | "v0-max" | "v0-max-fast";
839
+ imageGenerations?: boolean;
840
+ };
841
+ }>;
842
+ type ResolveTaskAsyncInput = MessagesResolveAsyncData['body'];
843
+ declare function useResolveTaskAsync(url: string, configuration?: V0MutationConfiguration<MessagesResolveAsyncResponse, MessagesResolveAsyncError, MessagesResolveAsyncData['body']>): _$swr_mutation0.SWRMutationResponse<_$v0_browser0.AsyncMessage, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
844
+ task: {
845
+ type: "confirmed-steps";
846
+ connectedIntegrationNames?: Array<string>;
847
+ connectedMcpPresetNames?: Array<"Linear" | "Notion" | "Context7" | "Sentry" | "Zapier" | "Glean" | "Hex" | "Sanity" | "Granola" | "PostHog" | "Contentful" | "Slack">;
848
+ appliedScripts?: Array<string>;
849
+ addedEnvVars?: Array<string>;
850
+ } | {
851
+ type: "plan-exit-response";
852
+ status: "approved" | "rejected" | "request-changes";
853
+ content: string;
854
+ } | {
855
+ type: "answered-questions";
856
+ answers: Array<{
857
+ questionId: string;
858
+ questionText: string;
859
+ selectedLabels: Array<string>;
860
+ customText?: string;
861
+ }>;
862
+ } | {
863
+ type: "confirmed-permissions";
864
+ permissions: Array<{
865
+ type: "ALLOW_DYNAMIC_TOOL_STRICT";
866
+ toolName: string;
867
+ input: unknown;
868
+ taskNameActive?: string | null;
869
+ taskNameComplete?: string | null;
870
+ userMessage?: string;
871
+ }>;
872
+ userMessage?: string;
873
+ };
874
+ modelConfiguration?: {
875
+ modelId?: "v0-auto" | "v0-mini" | "v0-pro" | "v0-max" | "v0-max-fast";
876
+ imageGenerations?: boolean;
877
+ };
878
+ }>;
879
+ type ResolveTaskInput = MessagesResolveStreamData['body'];
880
+ declare function useResolveTask(url: string, configuration?: V0MutationConfiguration<Response, MessagesResolveStreamError, MessagesResolveStreamData['body']>): _$swr_mutation0.SWRMutationResponse<Response, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
881
+ task: {
882
+ type: "confirmed-steps";
883
+ connectedIntegrationNames?: Array<string>;
884
+ connectedMcpPresetNames?: Array<"Linear" | "Notion" | "Context7" | "Sentry" | "Zapier" | "Glean" | "Hex" | "Sanity" | "Granola" | "PostHog" | "Contentful" | "Slack">;
885
+ appliedScripts?: Array<string>;
886
+ addedEnvVars?: Array<string>;
887
+ } | {
888
+ type: "plan-exit-response";
889
+ status: "approved" | "rejected" | "request-changes";
890
+ content: string;
891
+ } | {
892
+ type: "answered-questions";
893
+ answers: Array<{
894
+ questionId: string;
895
+ questionText: string;
896
+ selectedLabels: Array<string>;
897
+ customText?: string;
898
+ }>;
899
+ } | {
900
+ type: "confirmed-permissions";
901
+ permissions: Array<{
902
+ type: "ALLOW_DYNAMIC_TOOL_STRICT";
903
+ toolName: string;
904
+ input: unknown;
905
+ taskNameActive?: string | null;
906
+ taskNameComplete?: string | null;
907
+ userMessage?: string;
908
+ }>;
909
+ userMessage?: string;
910
+ };
911
+ modelConfiguration?: {
912
+ modelId?: "v0-auto" | "v0-mini" | "v0-pro" | "v0-max" | "v0-max-fast";
913
+ imageGenerations?: boolean;
914
+ };
915
+ }>;
916
+ type SendMessageBlockingInput = MessagesSendData['body'];
917
+ declare function useSendMessageBlocking(url: string, configuration?: V0MutationConfiguration<MessagesSendResponse, MessagesSendError, MessagesSendData['body']>): _$swr_mutation0.SWRMutationResponse<_$v0_browser0.Message, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
918
+ message: string;
919
+ systemPrompt?: string;
920
+ modelConfiguration?: {
921
+ modelId: "v0-auto" | "v0-mini" | "v0-pro" | "v0-max" | "v0-max-fast";
922
+ imageGenerations: boolean;
923
+ };
924
+ mcpServerIds?: Array<string>;
925
+ attachments?: Array<{
926
+ url: string;
927
+ }>;
928
+ skills?: Array<{
929
+ type: "remote";
930
+ id: string;
931
+ } | {
932
+ type: "memory";
933
+ scope: "user" | "team";
934
+ skillName: string;
935
+ } | {
936
+ type: "project";
937
+ skillName: string;
938
+ }>;
939
+ action?: {
940
+ type: "fix-with-v0";
941
+ };
942
+ }>;
943
+ type SendMessageAsyncInput = MessagesSendAsyncData['body'];
944
+ declare function useSendMessageAsync(url: string, configuration?: V0MutationConfiguration<MessagesSendAsyncResponse, MessagesSendAsyncError, MessagesSendAsyncData['body']>): _$swr_mutation0.SWRMutationResponse<_$v0_browser0.AsyncMessage, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
945
+ message: string;
946
+ systemPrompt?: string;
947
+ modelConfiguration?: {
948
+ modelId: "v0-auto" | "v0-mini" | "v0-pro" | "v0-max" | "v0-max-fast";
949
+ imageGenerations: boolean;
950
+ };
951
+ mcpServerIds?: Array<string>;
952
+ attachments?: Array<{
953
+ url: string;
954
+ }>;
955
+ skills?: Array<{
956
+ type: "remote";
957
+ id: string;
958
+ } | {
959
+ type: "memory";
960
+ scope: "user" | "team";
961
+ skillName: string;
962
+ } | {
963
+ type: "project";
964
+ skillName: string;
965
+ }>;
966
+ action?: {
967
+ type: "fix-with-v0";
968
+ };
969
+ }>;
970
+ type SendMessageInput = MessagesSendStreamData['body'];
971
+ declare function useSendMessage(url: string, configuration?: V0MutationConfiguration<Response, MessagesSendStreamError, MessagesSendStreamData['body']>): _$swr_mutation0.SWRMutationResponse<Response, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
972
+ message: string;
973
+ systemPrompt?: string;
974
+ modelConfiguration?: {
975
+ modelId: "v0-auto" | "v0-mini" | "v0-pro" | "v0-max" | "v0-max-fast";
976
+ imageGenerations: boolean;
977
+ };
978
+ mcpServerIds?: Array<string>;
979
+ attachments?: Array<{
980
+ url: string;
981
+ }>;
982
+ skills?: Array<{
983
+ type: "remote";
984
+ id: string;
985
+ } | {
986
+ type: "memory";
987
+ scope: "user" | "team";
988
+ skillName: string;
989
+ } | {
990
+ type: "project";
991
+ skillName: string;
992
+ }>;
993
+ action?: {
994
+ type: "fix-with-v0";
995
+ };
996
+ }>;
997
+ declare function useStopMessage(url: string, configuration?: V0MutationConfiguration<MessagesStopResponse, MessagesStopError, never>): _$swr_mutation0.SWRMutationResponse<{
998
+ success: true;
999
+ }, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, never>;
1000
+ type CreateWebhookInput = WebhooksCreateData['body'];
1001
+ declare function useCreateWebhook(url: string, configuration?: V0MutationConfiguration<WebhooksCreateResponse, WebhooksCreateError, WebhooksCreateData['body']>): _$swr_mutation0.SWRMutationResponse<_$v0_browser0.Webhook, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
1002
+ name: string;
1003
+ events: Array<"chat.created" | "chat.updated" | "chat.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.finished">;
1004
+ url: string;
1005
+ chatId: string | null;
1006
+ }>;
1007
+ declare function useDeleteWebhook(url: string, configuration?: V0MutationConfiguration<WebhooksDeleteResponse, WebhooksDeleteError, never>): _$swr_mutation0.SWRMutationResponse<{
1008
+ id: string;
1009
+ deleted: true;
1010
+ }, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, never>;
1011
+ declare function useWebhook(url: V0Url, configuration?: V0QueryConfiguration<WebhooksGetResponse, WebhooksGetError>): _$swr.SWRResponse<_$v0_browser0.Webhook, V0ResponseError<_$v0_browser0.Error>, _$swr.SWRConfiguration<_$v0_browser0.Webhook, V0ResponseError<_$v0_browser0.Error>, ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<_$v0_browser0.Webhook>) | ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<_$v0_browser0.Webhook>)> | undefined>;
1012
+ declare function useWebhooks(url: V0Url, configuration?: V0QueryConfiguration<WebhooksListResponse, WebhooksListError>): _$swr.SWRResponse<{
1013
+ id: string;
1014
+ name: string;
1015
+ }[], V0ResponseError<_$v0_browser0.Error>, _$swr.SWRConfiguration<{
1016
+ id: string;
1017
+ name: string;
1018
+ }[], V0ResponseError<_$v0_browser0.Error>, ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<{
1019
+ id: string;
1020
+ name: string;
1021
+ }[]>) | ((arg: readonly [any, ...unknown[]]) => _$swr__internal0.FetcherResponse<{
1022
+ id: string;
1023
+ name: string;
1024
+ }[]>)> | undefined>;
1025
+ type UpdateWebhookInput = WebhooksUpdateData['body'];
1026
+ declare function useUpdateWebhook(url: string, configuration?: V0MutationConfiguration<WebhooksUpdateResponse, WebhooksUpdateError, WebhooksUpdateData['body']>): _$swr_mutation0.SWRMutationResponse<_$v0_browser0.Webhook, V0ResponseError<_$v0_browser0.Error>, _$swr.Key, {
1027
+ name?: string;
1028
+ events?: Array<"chat.created" | "chat.updated" | "chat.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.finished">;
1029
+ url?: string;
1030
+ }>;
1031
+ //#endregion
1032
+ export { CreateChatAsyncInput, CreateChatBlockingInput, CreateChatFromFilesInput, CreateChatFromRepoInput, CreateChatFromZipInput, CreateChatInput, CreateMcpServerInput, CreateProjectInput, CreateWebhookInput, DuplicateChatInput, ResolveTaskAsyncInput, ResolveTaskBlockingInput, ResolveTaskInput, RestoreMessageInput, SendMessageAsyncInput, SendMessageBlockingInput, SendMessageInput, UpdateChatFilesInput, UpdateChatInput, UpdateMcpServerInput, UpdateWebhookInput, type V0Fetch, type V0HttpMethod, type V0InfiniteConfiguration, type V0MutationConfiguration, type V0Operation, type V0QueryConfiguration, type V0RequestOptions, V0ResponseError, type V0ResponseKind, type V0ResponseTransformer, type V0Url, V0_REACT_OPERATION_HOOKS, createV0Key, useChat, useChats, useChatsInfinite, useCreateChat, useCreateChatAsync, useCreateChatBlocking, useCreateChatFromFiles, useCreateChatFromRepo, useCreateChatFromZip, useCreateMcpServer, useCreateProject, useCreateWebhook, useDeleteChat, useDeleteMcpServer, useDeleteWebhook, useDeployChat, useDownloadChatFiles, useDuplicateChat, useFiles, useMcpServer, useMcpServers, useMessage, useMessages, useMessagesInfinite, usePreview, useResolveTask, useResolveTaskAsync, useResolveTaskBlocking, useRestoreMessage, useResumeChat, useSendMessage, useSendMessageAsync, useSendMessageBlocking, useStopMessage, useUpdateChat, useUpdateChatFiles, useUpdateMcpServer, useUpdateWebhook, useWebhook, useWebhooks };
1033
+ //# sourceMappingURL=index.d.cts.map