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