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

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