@v0-sdk/react 0.5.1 → 3.0.0-canary.15d19a4

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