qwksearch-api-client 1.0.37 → 1.0.39
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 +209 -335
- package/dist/api-client.js +1 -1
- package/dist/api-client.umd.cjs +1 -1
- package/dist/index.d.ts +2926 -0
- package/package.json +14 -7
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2926 @@
|
|
|
1
|
+
import { Client } from './client';
|
|
2
|
+
import { Options as Options_2 } from './client';
|
|
3
|
+
import { RequestResult } from './client';
|
|
4
|
+
import { TDataShape } from './client';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Add a favorite
|
|
8
|
+
*/
|
|
9
|
+
export declare const addFavorite: <ThrowOnError extends boolean = false>(options: Options<AddFavoriteData, ThrowOnError>) => RequestResult<AddFavoriteResponses, AddFavoriteErrors, ThrowOnError, "fields">;
|
|
10
|
+
|
|
11
|
+
export declare type AddFavoriteData = {
|
|
12
|
+
body: {
|
|
13
|
+
url: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
cite?: string;
|
|
16
|
+
author?: string;
|
|
17
|
+
author_cite?: string;
|
|
18
|
+
date?: string;
|
|
19
|
+
source?: string;
|
|
20
|
+
word_count?: number;
|
|
21
|
+
html?: string;
|
|
22
|
+
};
|
|
23
|
+
path?: never;
|
|
24
|
+
query?: never;
|
|
25
|
+
url: '/doc/favorites';
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export declare type AddFavoriteError = AddFavoriteErrors[keyof AddFavoriteErrors];
|
|
29
|
+
|
|
30
|
+
export declare type AddFavoriteErrors = {
|
|
31
|
+
/**
|
|
32
|
+
* Authentication required
|
|
33
|
+
*/
|
|
34
|
+
401: ErrorResponse;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export declare type AddFavoriteResponse = AddFavoriteResponses[keyof AddFavoriteResponses];
|
|
38
|
+
|
|
39
|
+
export declare type AddFavoriteResponses = {
|
|
40
|
+
/**
|
|
41
|
+
* Already favorited
|
|
42
|
+
*/
|
|
43
|
+
200: {
|
|
44
|
+
message?: string;
|
|
45
|
+
favorite?: Favorite;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Created
|
|
49
|
+
*/
|
|
50
|
+
201: {
|
|
51
|
+
message?: string;
|
|
52
|
+
favorite?: Favorite;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Add an MCP server
|
|
58
|
+
*/
|
|
59
|
+
export declare const addMcpServer: <ThrowOnError extends boolean = false>(options: Options<AddMcpServerData, ThrowOnError>) => RequestResult<AddMcpServerResponses, unknown, ThrowOnError, "fields">;
|
|
60
|
+
|
|
61
|
+
export declare type AddMcpServerData = {
|
|
62
|
+
body: {
|
|
63
|
+
type: string;
|
|
64
|
+
name: string;
|
|
65
|
+
config: {
|
|
66
|
+
[key: string]: unknown;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
path?: never;
|
|
70
|
+
query?: never;
|
|
71
|
+
url: '/agent/mcpservers';
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export declare type AddMcpServerResponse = AddMcpServerResponses[keyof AddMcpServerResponses];
|
|
75
|
+
|
|
76
|
+
export declare type AddMcpServerResponses = {
|
|
77
|
+
/**
|
|
78
|
+
* Created server
|
|
79
|
+
*/
|
|
80
|
+
200: {
|
|
81
|
+
server?: McpServer;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Add a source to a notebook
|
|
87
|
+
*/
|
|
88
|
+
export declare const addNotebookSource: <ThrowOnError extends boolean = false>(options: Options<AddNotebookSourceData, ThrowOnError>) => RequestResult<AddNotebookSourceResponses, AddNotebookSourceErrors, ThrowOnError, "fields">;
|
|
89
|
+
|
|
90
|
+
export declare type AddNotebookSourceData = {
|
|
91
|
+
body: {
|
|
92
|
+
url?: string;
|
|
93
|
+
text?: string;
|
|
94
|
+
title?: string;
|
|
95
|
+
};
|
|
96
|
+
path: {
|
|
97
|
+
id: string;
|
|
98
|
+
};
|
|
99
|
+
query?: never;
|
|
100
|
+
url: '/notebooklm/notebooks/{id}/sources';
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export declare type AddNotebookSourceError = AddNotebookSourceErrors[keyof AddNotebookSourceErrors];
|
|
104
|
+
|
|
105
|
+
export declare type AddNotebookSourceErrors = {
|
|
106
|
+
/**
|
|
107
|
+
* Authentication required
|
|
108
|
+
*/
|
|
109
|
+
401: ErrorResponse;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export declare type AddNotebookSourceResponse = AddNotebookSourceResponses[keyof AddNotebookSourceResponses];
|
|
113
|
+
|
|
114
|
+
export declare type AddNotebookSourceResponses = {
|
|
115
|
+
/**
|
|
116
|
+
* Source added
|
|
117
|
+
*/
|
|
118
|
+
201: {
|
|
119
|
+
source?: NotebookSource;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Add a provider
|
|
125
|
+
*/
|
|
126
|
+
export declare const addProvider: <ThrowOnError extends boolean = false>(options: Options<AddProviderData, ThrowOnError>) => RequestResult<AddProviderResponses, unknown, ThrowOnError, "fields">;
|
|
127
|
+
|
|
128
|
+
export declare type AddProviderData = {
|
|
129
|
+
body: {
|
|
130
|
+
type: string;
|
|
131
|
+
config: {
|
|
132
|
+
[key: string]: unknown;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
path?: never;
|
|
136
|
+
query?: never;
|
|
137
|
+
url: '/agent/providers';
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Add a model to a provider
|
|
142
|
+
*/
|
|
143
|
+
export declare const addProviderModel: <ThrowOnError extends boolean = false>(options: Options<AddProviderModelData, ThrowOnError>) => RequestResult<AddProviderModelResponses, unknown, ThrowOnError, "fields">;
|
|
144
|
+
|
|
145
|
+
export declare type AddProviderModelData = {
|
|
146
|
+
body: {
|
|
147
|
+
key: string;
|
|
148
|
+
name?: string;
|
|
149
|
+
type: 'chat';
|
|
150
|
+
};
|
|
151
|
+
path: {
|
|
152
|
+
id: string;
|
|
153
|
+
};
|
|
154
|
+
query?: never;
|
|
155
|
+
url: '/agent/providers/{id}/models';
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export declare type AddProviderModelResponse = AddProviderModelResponses[keyof AddProviderModelResponses];
|
|
159
|
+
|
|
160
|
+
export declare type AddProviderModelResponses = {
|
|
161
|
+
/**
|
|
162
|
+
* Model added
|
|
163
|
+
*/
|
|
164
|
+
200: {
|
|
165
|
+
message?: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
export declare type AddProviderResponse = AddProviderResponses[keyof AddProviderResponses];
|
|
170
|
+
|
|
171
|
+
export declare type AddProviderResponses = {
|
|
172
|
+
/**
|
|
173
|
+
* Created provider
|
|
174
|
+
*/
|
|
175
|
+
200: {
|
|
176
|
+
provider?: Provider;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Streaming research chat
|
|
182
|
+
*/
|
|
183
|
+
export declare const agentChat: <ThrowOnError extends boolean = false>(options: Options<AgentChatData, ThrowOnError>) => Promise< ServerSentEventsResult<AgentChatResponses, AgentChatErrors>>;
|
|
184
|
+
|
|
185
|
+
export declare type AgentChatData = {
|
|
186
|
+
body: {
|
|
187
|
+
message: {
|
|
188
|
+
messageId: string;
|
|
189
|
+
chatId: string;
|
|
190
|
+
content: string;
|
|
191
|
+
};
|
|
192
|
+
optimizationMode: 'speed' | 'balanced' | 'quality';
|
|
193
|
+
focusMode: string;
|
|
194
|
+
category?: string;
|
|
195
|
+
history?: Array<[
|
|
196
|
+
string,
|
|
197
|
+
string
|
|
198
|
+
]>;
|
|
199
|
+
files?: Array<string>;
|
|
200
|
+
chatModel: ModelWithProvider;
|
|
201
|
+
sourceExtractionEnabled?: boolean;
|
|
202
|
+
thinkingTimeLimit?: number;
|
|
203
|
+
systemInstructions?: string;
|
|
204
|
+
queryExpansionPrompt?: string;
|
|
205
|
+
};
|
|
206
|
+
path?: never;
|
|
207
|
+
query?: never;
|
|
208
|
+
url: '/agent/chat';
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
export declare type AgentChatError = AgentChatErrors[keyof AgentChatErrors];
|
|
212
|
+
|
|
213
|
+
export declare type AgentChatErrors = {
|
|
214
|
+
/**
|
|
215
|
+
* Bad request
|
|
216
|
+
*/
|
|
217
|
+
400: ErrorResponse;
|
|
218
|
+
/**
|
|
219
|
+
* Internal server error
|
|
220
|
+
*/
|
|
221
|
+
500: ErrorResponse;
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
export declare type AgentChatResponse = AgentChatResponses[keyof AgentChatResponses];
|
|
225
|
+
|
|
226
|
+
export declare type AgentChatResponses = {
|
|
227
|
+
/**
|
|
228
|
+
* Server-sent events stream
|
|
229
|
+
*/
|
|
230
|
+
200: string;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Meta-search via SearXNG
|
|
235
|
+
*/
|
|
236
|
+
export declare const agentSearch: <ThrowOnError extends boolean = false>(options: Options<AgentSearchData, ThrowOnError>) => RequestResult<AgentSearchResponses, AgentSearchErrors, ThrowOnError, "fields">;
|
|
237
|
+
|
|
238
|
+
export declare type AgentSearchData = {
|
|
239
|
+
body?: never;
|
|
240
|
+
path?: never;
|
|
241
|
+
query: {
|
|
242
|
+
q: string;
|
|
243
|
+
cat?: 'general' | 'news' | 'images' | 'videos' | 'it' | 'science';
|
|
244
|
+
page?: number;
|
|
245
|
+
lang?: string;
|
|
246
|
+
safesearch?: boolean;
|
|
247
|
+
recency?: 'day' | 'week' | 'month' | 'year';
|
|
248
|
+
publicInstances?: boolean;
|
|
249
|
+
};
|
|
250
|
+
url: '/agent/search';
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
export declare type AgentSearchError = AgentSearchErrors[keyof AgentSearchErrors];
|
|
254
|
+
|
|
255
|
+
export declare type AgentSearchErrors = {
|
|
256
|
+
/**
|
|
257
|
+
* Bad request
|
|
258
|
+
*/
|
|
259
|
+
400: ErrorResponse;
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
export declare type AgentSearchResponse = AgentSearchResponses[keyof AgentSearchResponses];
|
|
263
|
+
|
|
264
|
+
export declare type AgentSearchResponses = {
|
|
265
|
+
/**
|
|
266
|
+
* Search results
|
|
267
|
+
*/
|
|
268
|
+
200: {
|
|
269
|
+
results?: Array<SearchResult>;
|
|
270
|
+
suggestions?: Array<string>;
|
|
271
|
+
elapsedTime?: number;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
export declare type Article = {
|
|
276
|
+
url?: string;
|
|
277
|
+
title?: string;
|
|
278
|
+
cite?: string;
|
|
279
|
+
author?: string;
|
|
280
|
+
author_cite?: string;
|
|
281
|
+
author_short?: string;
|
|
282
|
+
author_type?: string;
|
|
283
|
+
date?: string;
|
|
284
|
+
source?: string;
|
|
285
|
+
word_count?: number;
|
|
286
|
+
html?: string;
|
|
287
|
+
followUpQuestions?: Array<string>;
|
|
288
|
+
qaHistory?: Array<{
|
|
289
|
+
question?: string;
|
|
290
|
+
answer?: string;
|
|
291
|
+
}>;
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Generate follow-up questions for an article
|
|
296
|
+
*/
|
|
297
|
+
export declare const articleFollowups: <ThrowOnError extends boolean = false>(options: Options<ArticleFollowupsData, ThrowOnError>) => RequestResult<ArticleFollowupsResponses, ArticleFollowupsErrors, ThrowOnError, "fields">;
|
|
298
|
+
|
|
299
|
+
export declare type ArticleFollowupsData = {
|
|
300
|
+
body: {
|
|
301
|
+
article: string;
|
|
302
|
+
chatHistory?: Array<{
|
|
303
|
+
role?: string;
|
|
304
|
+
content?: string;
|
|
305
|
+
}>;
|
|
306
|
+
maxQuestions?: number;
|
|
307
|
+
provider?: string;
|
|
308
|
+
chatModel?: ModelWithProvider;
|
|
309
|
+
};
|
|
310
|
+
path?: never;
|
|
311
|
+
query?: never;
|
|
312
|
+
url: '/agent/article-followups';
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
export declare type ArticleFollowupsError = ArticleFollowupsErrors[keyof ArticleFollowupsErrors];
|
|
316
|
+
|
|
317
|
+
export declare type ArticleFollowupsErrors = {
|
|
318
|
+
/**
|
|
319
|
+
* Internal server error
|
|
320
|
+
*/
|
|
321
|
+
500: ErrorResponse;
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
export declare type ArticleFollowupsResponse = ArticleFollowupsResponses[keyof ArticleFollowupsResponses];
|
|
325
|
+
|
|
326
|
+
export declare type ArticleFollowupsResponses = {
|
|
327
|
+
/**
|
|
328
|
+
* Follow-up questions
|
|
329
|
+
*/
|
|
330
|
+
200: {
|
|
331
|
+
extract?: Array<string>;
|
|
332
|
+
success?: boolean;
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Answer a question grounded in an article
|
|
338
|
+
*/
|
|
339
|
+
export declare const articleQa: <ThrowOnError extends boolean = false>(options: Options<ArticleQaData, ThrowOnError>) => RequestResult<ArticleQaResponses, ArticleQaErrors, ThrowOnError, "fields">;
|
|
340
|
+
|
|
341
|
+
export declare type ArticleQaData = {
|
|
342
|
+
body: {
|
|
343
|
+
article: string;
|
|
344
|
+
question: string;
|
|
345
|
+
chatHistory?: Array<{
|
|
346
|
+
role?: string;
|
|
347
|
+
content?: string;
|
|
348
|
+
}>;
|
|
349
|
+
provider?: string;
|
|
350
|
+
chatModel?: ModelWithProvider;
|
|
351
|
+
};
|
|
352
|
+
path?: never;
|
|
353
|
+
query?: never;
|
|
354
|
+
url: '/agent/article-qa';
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
export declare type ArticleQaError = ArticleQaErrors[keyof ArticleQaErrors];
|
|
358
|
+
|
|
359
|
+
export declare type ArticleQaErrors = {
|
|
360
|
+
/**
|
|
361
|
+
* Internal server error
|
|
362
|
+
*/
|
|
363
|
+
500: ErrorResponse;
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
export declare type ArticleQaResponse = ArticleQaResponses[keyof ArticleQaResponses];
|
|
367
|
+
|
|
368
|
+
export declare type ArticleQaResponses = {
|
|
369
|
+
/**
|
|
370
|
+
* Answer
|
|
371
|
+
*/
|
|
372
|
+
200: {
|
|
373
|
+
content?: string;
|
|
374
|
+
success?: boolean;
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Ask a question against a notebook
|
|
380
|
+
*/
|
|
381
|
+
export declare const askNotebook: <ThrowOnError extends boolean = false>(options: Options<AskNotebookData, ThrowOnError>) => RequestResult<AskNotebookResponses, AskNotebookErrors, ThrowOnError, "fields">;
|
|
382
|
+
|
|
383
|
+
export declare type AskNotebookData = {
|
|
384
|
+
body: {
|
|
385
|
+
query: string;
|
|
386
|
+
};
|
|
387
|
+
path: {
|
|
388
|
+
id: string;
|
|
389
|
+
};
|
|
390
|
+
query?: never;
|
|
391
|
+
url: '/notebooklm/notebooks/{id}/ask';
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
export declare type AskNotebookError = AskNotebookErrors[keyof AskNotebookErrors];
|
|
395
|
+
|
|
396
|
+
export declare type AskNotebookErrors = {
|
|
397
|
+
/**
|
|
398
|
+
* Authentication required
|
|
399
|
+
*/
|
|
400
|
+
401: ErrorResponse;
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
export declare type AskNotebookResponse = AskNotebookResponses[keyof AskNotebookResponses];
|
|
404
|
+
|
|
405
|
+
export declare type AskNotebookResponses = {
|
|
406
|
+
/**
|
|
407
|
+
* Answer
|
|
408
|
+
*/
|
|
409
|
+
200: {
|
|
410
|
+
[key: string]: unknown;
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Query autocomplete suggestions
|
|
416
|
+
*/
|
|
417
|
+
export declare const autocomplete: <ThrowOnError extends boolean = false>(options: Options<AutocompleteData, ThrowOnError>) => RequestResult<AutocompleteResponses, unknown, ThrowOnError, "fields">;
|
|
418
|
+
|
|
419
|
+
export declare type AutocompleteData = {
|
|
420
|
+
body?: never;
|
|
421
|
+
path?: never;
|
|
422
|
+
query: {
|
|
423
|
+
q: string;
|
|
424
|
+
locale?: string;
|
|
425
|
+
/**
|
|
426
|
+
* Comma-separated: google, ddg, wikipedia
|
|
427
|
+
*/
|
|
428
|
+
backends?: string;
|
|
429
|
+
limit?: number;
|
|
430
|
+
};
|
|
431
|
+
url: '/agent/autocomplete';
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
export declare type AutocompleteResponse = AutocompleteResponses[keyof AutocompleteResponses];
|
|
435
|
+
|
|
436
|
+
export declare type AutocompleteResponses = {
|
|
437
|
+
/**
|
|
438
|
+
* Autocomplete results
|
|
439
|
+
*/
|
|
440
|
+
200: {
|
|
441
|
+
suggestions?: Array<string>;
|
|
442
|
+
domains?: Array<DomainSuggestion>;
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Change password
|
|
448
|
+
*/
|
|
449
|
+
export declare const changePassword: <ThrowOnError extends boolean = false>(options: Options<ChangePasswordData, ThrowOnError>) => RequestResult<ChangePasswordResponses, ChangePasswordErrors, ThrowOnError, "fields">;
|
|
450
|
+
|
|
451
|
+
export declare type ChangePasswordData = {
|
|
452
|
+
body: {
|
|
453
|
+
currentPassword: string;
|
|
454
|
+
newPassword: string;
|
|
455
|
+
};
|
|
456
|
+
path?: never;
|
|
457
|
+
query?: never;
|
|
458
|
+
url: '/user/password';
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
export declare type ChangePasswordError = ChangePasswordErrors[keyof ChangePasswordErrors];
|
|
462
|
+
|
|
463
|
+
export declare type ChangePasswordErrors = {
|
|
464
|
+
/**
|
|
465
|
+
* Authentication required
|
|
466
|
+
*/
|
|
467
|
+
401: ErrorResponse;
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
export declare type ChangePasswordResponse = ChangePasswordResponses[keyof ChangePasswordResponses];
|
|
471
|
+
|
|
472
|
+
export declare type ChangePasswordResponses = {
|
|
473
|
+
/**
|
|
474
|
+
* Changed
|
|
475
|
+
*/
|
|
476
|
+
200: {
|
|
477
|
+
message?: string;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
export declare type Chat = {
|
|
482
|
+
id?: string;
|
|
483
|
+
title?: string;
|
|
484
|
+
createdAt?: string;
|
|
485
|
+
focusMode?: string;
|
|
486
|
+
userId?: string;
|
|
487
|
+
files?: Array<string>;
|
|
488
|
+
messageCount?: number;
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
export declare type ClientOptions = {
|
|
492
|
+
baseUrl: 'https://qwksearch.com/api' | (string & {});
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Create a document
|
|
497
|
+
*/
|
|
498
|
+
export declare const createDocument: <ThrowOnError extends boolean = false>(options: Options<CreateDocumentData, ThrowOnError>) => RequestResult<CreateDocumentResponses, unknown, ThrowOnError, "fields">;
|
|
499
|
+
|
|
500
|
+
export declare type CreateDocumentData = {
|
|
501
|
+
body: {
|
|
502
|
+
name?: string;
|
|
503
|
+
title?: string;
|
|
504
|
+
content?: string;
|
|
505
|
+
parentId?: number;
|
|
506
|
+
isFolder?: boolean;
|
|
507
|
+
metadata?: {
|
|
508
|
+
[key: string]: unknown;
|
|
509
|
+
};
|
|
510
|
+
tags?: Array<string>;
|
|
511
|
+
};
|
|
512
|
+
path?: never;
|
|
513
|
+
query?: never;
|
|
514
|
+
url: '/doc/documents';
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
export declare type CreateDocumentResponse = CreateDocumentResponses[keyof CreateDocumentResponses];
|
|
518
|
+
|
|
519
|
+
export declare type CreateDocumentResponses = {
|
|
520
|
+
/**
|
|
521
|
+
* Created document
|
|
522
|
+
*/
|
|
523
|
+
201: Document_2;
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Create a notebook
|
|
528
|
+
*/
|
|
529
|
+
export declare const createNotebook: <ThrowOnError extends boolean = false>(options: Options<CreateNotebookData, ThrowOnError>) => RequestResult<CreateNotebookResponses, CreateNotebookErrors, ThrowOnError, "fields">;
|
|
530
|
+
|
|
531
|
+
export declare type CreateNotebookData = {
|
|
532
|
+
body: {
|
|
533
|
+
title: string;
|
|
534
|
+
};
|
|
535
|
+
path?: never;
|
|
536
|
+
query?: never;
|
|
537
|
+
url: '/notebooklm/notebooks';
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
export declare type CreateNotebookError = CreateNotebookErrors[keyof CreateNotebookErrors];
|
|
541
|
+
|
|
542
|
+
export declare type CreateNotebookErrors = {
|
|
543
|
+
/**
|
|
544
|
+
* Authentication required
|
|
545
|
+
*/
|
|
546
|
+
401: ErrorResponse;
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
export declare type CreateNotebookResponse = CreateNotebookResponses[keyof CreateNotebookResponses];
|
|
550
|
+
|
|
551
|
+
export declare type CreateNotebookResponses = {
|
|
552
|
+
/**
|
|
553
|
+
* Created notebook
|
|
554
|
+
*/
|
|
555
|
+
201: {
|
|
556
|
+
notebook?: Notebook;
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Create a quote
|
|
562
|
+
*/
|
|
563
|
+
export declare const createQuote: <ThrowOnError extends boolean = false>(options: Options<CreateQuoteData, ThrowOnError>) => RequestResult<CreateQuoteResponses, unknown, ThrowOnError, "fields">;
|
|
564
|
+
|
|
565
|
+
export declare type CreateQuoteData = {
|
|
566
|
+
body: {
|
|
567
|
+
documentId: string;
|
|
568
|
+
text: string;
|
|
569
|
+
source?: string;
|
|
570
|
+
author?: string;
|
|
571
|
+
url?: string;
|
|
572
|
+
pageNumber?: number;
|
|
573
|
+
tags?: Array<string>;
|
|
574
|
+
};
|
|
575
|
+
path?: never;
|
|
576
|
+
query?: never;
|
|
577
|
+
url: '/doc/quotes';
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
export declare type CreateQuoteResponse = CreateQuoteResponses[keyof CreateQuoteResponses];
|
|
581
|
+
|
|
582
|
+
export declare type CreateQuoteResponses = {
|
|
583
|
+
/**
|
|
584
|
+
* Created
|
|
585
|
+
*/
|
|
586
|
+
201: {
|
|
587
|
+
success?: boolean;
|
|
588
|
+
data?: Quote;
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Delete all user chats
|
|
594
|
+
*/
|
|
595
|
+
export declare const deleteAllChats: <ThrowOnError extends boolean = false>(options?: Options<DeleteAllChatsData, ThrowOnError>) => RequestResult<DeleteAllChatsResponses, DeleteAllChatsErrors, ThrowOnError, "fields">;
|
|
596
|
+
|
|
597
|
+
export declare type DeleteAllChatsData = {
|
|
598
|
+
body?: never;
|
|
599
|
+
path?: never;
|
|
600
|
+
query?: never;
|
|
601
|
+
url: '/agent/chats';
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
export declare type DeleteAllChatsError = DeleteAllChatsErrors[keyof DeleteAllChatsErrors];
|
|
605
|
+
|
|
606
|
+
export declare type DeleteAllChatsErrors = {
|
|
607
|
+
/**
|
|
608
|
+
* Authentication required
|
|
609
|
+
*/
|
|
610
|
+
401: ErrorResponse;
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
export declare type DeleteAllChatsResponse = DeleteAllChatsResponses[keyof DeleteAllChatsResponses];
|
|
614
|
+
|
|
615
|
+
export declare type DeleteAllChatsResponses = {
|
|
616
|
+
/**
|
|
617
|
+
* All chats deleted
|
|
618
|
+
*/
|
|
619
|
+
200: {
|
|
620
|
+
message?: string;
|
|
621
|
+
};
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Delete a chat
|
|
626
|
+
*/
|
|
627
|
+
export declare const deleteChatById: <ThrowOnError extends boolean = false>(options: Options<DeleteChatByIdData, ThrowOnError>) => RequestResult<DeleteChatByIdResponses, DeleteChatByIdErrors, ThrowOnError, "fields">;
|
|
628
|
+
|
|
629
|
+
export declare type DeleteChatByIdData = {
|
|
630
|
+
body?: never;
|
|
631
|
+
path: {
|
|
632
|
+
id: string;
|
|
633
|
+
};
|
|
634
|
+
query?: never;
|
|
635
|
+
url: '/agent/chats/{id}';
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
export declare type DeleteChatByIdError = DeleteChatByIdErrors[keyof DeleteChatByIdErrors];
|
|
639
|
+
|
|
640
|
+
export declare type DeleteChatByIdErrors = {
|
|
641
|
+
/**
|
|
642
|
+
* Authentication required
|
|
643
|
+
*/
|
|
644
|
+
401: ErrorResponse;
|
|
645
|
+
/**
|
|
646
|
+
* Not found
|
|
647
|
+
*/
|
|
648
|
+
404: ErrorResponse;
|
|
649
|
+
};
|
|
650
|
+
|
|
651
|
+
export declare type DeleteChatByIdResponse = DeleteChatByIdResponses[keyof DeleteChatByIdResponses];
|
|
652
|
+
|
|
653
|
+
export declare type DeleteChatByIdResponses = {
|
|
654
|
+
/**
|
|
655
|
+
* Deleted
|
|
656
|
+
*/
|
|
657
|
+
200: {
|
|
658
|
+
message?: string;
|
|
659
|
+
};
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Delete a document
|
|
664
|
+
*/
|
|
665
|
+
export declare const deleteDocument: <ThrowOnError extends boolean = false>(options: Options<DeleteDocumentData, ThrowOnError>) => RequestResult<DeleteDocumentResponses, DeleteDocumentErrors, ThrowOnError, "fields">;
|
|
666
|
+
|
|
667
|
+
export declare type DeleteDocumentData = {
|
|
668
|
+
body?: never;
|
|
669
|
+
path: {
|
|
670
|
+
id: number;
|
|
671
|
+
};
|
|
672
|
+
query?: never;
|
|
673
|
+
url: '/doc/documents/{id}';
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
export declare type DeleteDocumentError = DeleteDocumentErrors[keyof DeleteDocumentErrors];
|
|
677
|
+
|
|
678
|
+
export declare type DeleteDocumentErrors = {
|
|
679
|
+
/**
|
|
680
|
+
* Not found
|
|
681
|
+
*/
|
|
682
|
+
404: ErrorResponse;
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
export declare type DeleteDocumentResponse = DeleteDocumentResponses[keyof DeleteDocumentResponses];
|
|
686
|
+
|
|
687
|
+
export declare type DeleteDocumentResponses = {
|
|
688
|
+
/**
|
|
689
|
+
* Deleted
|
|
690
|
+
*/
|
|
691
|
+
200: {
|
|
692
|
+
success?: boolean;
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* Delete an MCP server
|
|
698
|
+
*/
|
|
699
|
+
export declare const deleteMcpServer: <ThrowOnError extends boolean = false>(options: Options<DeleteMcpServerData, ThrowOnError>) => RequestResult<DeleteMcpServerResponses, unknown, ThrowOnError, "fields">;
|
|
700
|
+
|
|
701
|
+
export declare type DeleteMcpServerData = {
|
|
702
|
+
body?: never;
|
|
703
|
+
path: {
|
|
704
|
+
id: string;
|
|
705
|
+
};
|
|
706
|
+
query?: never;
|
|
707
|
+
url: '/agent/mcpservers/{id}';
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
export declare type DeleteMcpServerResponse = DeleteMcpServerResponses[keyof DeleteMcpServerResponses];
|
|
711
|
+
|
|
712
|
+
export declare type DeleteMcpServerResponses = {
|
|
713
|
+
/**
|
|
714
|
+
* Deleted
|
|
715
|
+
*/
|
|
716
|
+
200: {
|
|
717
|
+
message?: string;
|
|
718
|
+
};
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Delete a notebook
|
|
723
|
+
*/
|
|
724
|
+
export declare const deleteNotebook: <ThrowOnError extends boolean = false>(options: Options<DeleteNotebookData, ThrowOnError>) => RequestResult<DeleteNotebookResponses, DeleteNotebookErrors, ThrowOnError, "fields">;
|
|
725
|
+
|
|
726
|
+
export declare type DeleteNotebookData = {
|
|
727
|
+
body?: never;
|
|
728
|
+
path: {
|
|
729
|
+
id: string;
|
|
730
|
+
};
|
|
731
|
+
query?: never;
|
|
732
|
+
url: '/notebooklm/notebooks/{id}';
|
|
733
|
+
};
|
|
734
|
+
|
|
735
|
+
export declare type DeleteNotebookError = DeleteNotebookErrors[keyof DeleteNotebookErrors];
|
|
736
|
+
|
|
737
|
+
export declare type DeleteNotebookErrors = {
|
|
738
|
+
/**
|
|
739
|
+
* Authentication required
|
|
740
|
+
*/
|
|
741
|
+
401: ErrorResponse;
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
export declare type DeleteNotebookResponse = DeleteNotebookResponses[keyof DeleteNotebookResponses];
|
|
745
|
+
|
|
746
|
+
export declare type DeleteNotebookResponses = {
|
|
747
|
+
/**
|
|
748
|
+
* Deleted
|
|
749
|
+
*/
|
|
750
|
+
200: {
|
|
751
|
+
success?: boolean;
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Delete a provider
|
|
757
|
+
*/
|
|
758
|
+
export declare const deleteProvider: <ThrowOnError extends boolean = false>(options: Options<DeleteProviderData, ThrowOnError>) => RequestResult<DeleteProviderResponses, unknown, ThrowOnError, "fields">;
|
|
759
|
+
|
|
760
|
+
export declare type DeleteProviderData = {
|
|
761
|
+
body?: never;
|
|
762
|
+
path: {
|
|
763
|
+
id: string;
|
|
764
|
+
};
|
|
765
|
+
query?: never;
|
|
766
|
+
url: '/agent/providers/{id}';
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Remove a model from a provider
|
|
771
|
+
*/
|
|
772
|
+
export declare const deleteProviderModel: <ThrowOnError extends boolean = false>(options: Options<DeleteProviderModelData, ThrowOnError>) => RequestResult<DeleteProviderModelResponses, unknown, ThrowOnError, "fields">;
|
|
773
|
+
|
|
774
|
+
export declare type DeleteProviderModelData = {
|
|
775
|
+
body: {
|
|
776
|
+
key: string;
|
|
777
|
+
type: 'chat';
|
|
778
|
+
};
|
|
779
|
+
path: {
|
|
780
|
+
id: string;
|
|
781
|
+
};
|
|
782
|
+
query?: never;
|
|
783
|
+
url: '/agent/providers/{id}/models';
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
export declare type DeleteProviderModelResponse = DeleteProviderModelResponses[keyof DeleteProviderModelResponses];
|
|
787
|
+
|
|
788
|
+
export declare type DeleteProviderModelResponses = {
|
|
789
|
+
/**
|
|
790
|
+
* Model removed
|
|
791
|
+
*/
|
|
792
|
+
200: {
|
|
793
|
+
message?: string;
|
|
794
|
+
};
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
export declare type DeleteProviderResponse = DeleteProviderResponses[keyof DeleteProviderResponses];
|
|
798
|
+
|
|
799
|
+
export declare type DeleteProviderResponses = {
|
|
800
|
+
/**
|
|
801
|
+
* Deleted
|
|
802
|
+
*/
|
|
803
|
+
200: {
|
|
804
|
+
message?: string;
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Delete a quote
|
|
810
|
+
*/
|
|
811
|
+
export declare const deleteQuote: <ThrowOnError extends boolean = false>(options: Options<DeleteQuoteData, ThrowOnError>) => RequestResult<DeleteQuoteResponses, unknown, ThrowOnError, "fields">;
|
|
812
|
+
|
|
813
|
+
export declare type DeleteQuoteData = {
|
|
814
|
+
body?: never;
|
|
815
|
+
path: {
|
|
816
|
+
id: string;
|
|
817
|
+
};
|
|
818
|
+
query?: never;
|
|
819
|
+
url: '/doc/quotes/{id}';
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
export declare type DeleteQuoteResponse = DeleteQuoteResponses[keyof DeleteQuoteResponses];
|
|
823
|
+
|
|
824
|
+
export declare type DeleteQuoteResponses = {
|
|
825
|
+
/**
|
|
826
|
+
* Deleted
|
|
827
|
+
*/
|
|
828
|
+
200: {
|
|
829
|
+
success?: boolean;
|
|
830
|
+
data?: {
|
|
831
|
+
id?: string;
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Delete an uploaded file from R2
|
|
838
|
+
*/
|
|
839
|
+
export declare const deleteUploadedFile: <ThrowOnError extends boolean = false>(options: Options<DeleteUploadedFileData, ThrowOnError>) => RequestResult<DeleteUploadedFileResponses, unknown, ThrowOnError, "fields">;
|
|
840
|
+
|
|
841
|
+
export declare type DeleteUploadedFileData = {
|
|
842
|
+
body?: never;
|
|
843
|
+
path?: never;
|
|
844
|
+
query: {
|
|
845
|
+
fileId: string;
|
|
846
|
+
ext?: string;
|
|
847
|
+
sizeBytes?: number;
|
|
848
|
+
};
|
|
849
|
+
url: '/doc/uploads';
|
|
850
|
+
};
|
|
851
|
+
|
|
852
|
+
export declare type DeleteUploadedFileResponse = DeleteUploadedFileResponses[keyof DeleteUploadedFileResponses];
|
|
853
|
+
|
|
854
|
+
export declare type DeleteUploadedFileResponses = {
|
|
855
|
+
/**
|
|
856
|
+
* Deleted
|
|
857
|
+
*/
|
|
858
|
+
200: {
|
|
859
|
+
success?: boolean;
|
|
860
|
+
fileId?: string;
|
|
861
|
+
deleted?: Array<{
|
|
862
|
+
key?: string;
|
|
863
|
+
success?: boolean;
|
|
864
|
+
}>;
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* Delete account
|
|
870
|
+
*/
|
|
871
|
+
export declare const deleteUser: <ThrowOnError extends boolean = false>(options?: Options<DeleteUserData, ThrowOnError>) => RequestResult<DeleteUserResponses, DeleteUserErrors, ThrowOnError, "fields">;
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Unlink an OAuth account
|
|
875
|
+
*/
|
|
876
|
+
export declare const deleteUserAccount: <ThrowOnError extends boolean = false>(options: Options<DeleteUserAccountData, ThrowOnError>) => RequestResult<DeleteUserAccountResponses, DeleteUserAccountErrors, ThrowOnError, "fields">;
|
|
877
|
+
|
|
878
|
+
export declare type DeleteUserAccountData = {
|
|
879
|
+
body: {
|
|
880
|
+
accountId: string;
|
|
881
|
+
};
|
|
882
|
+
path?: never;
|
|
883
|
+
query?: never;
|
|
884
|
+
url: '/user/accounts';
|
|
885
|
+
};
|
|
886
|
+
|
|
887
|
+
export declare type DeleteUserAccountError = DeleteUserAccountErrors[keyof DeleteUserAccountErrors];
|
|
888
|
+
|
|
889
|
+
export declare type DeleteUserAccountErrors = {
|
|
890
|
+
/**
|
|
891
|
+
* Bad request
|
|
892
|
+
*/
|
|
893
|
+
400: ErrorResponse;
|
|
894
|
+
/**
|
|
895
|
+
* Authentication required
|
|
896
|
+
*/
|
|
897
|
+
401: ErrorResponse;
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
export declare type DeleteUserAccountResponse = DeleteUserAccountResponses[keyof DeleteUserAccountResponses];
|
|
901
|
+
|
|
902
|
+
export declare type DeleteUserAccountResponses = {
|
|
903
|
+
/**
|
|
904
|
+
* Unlinked
|
|
905
|
+
*/
|
|
906
|
+
200: {
|
|
907
|
+
success?: boolean;
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
|
|
911
|
+
export declare type DeleteUserData = {
|
|
912
|
+
body?: never;
|
|
913
|
+
path?: never;
|
|
914
|
+
query?: never;
|
|
915
|
+
url: '/user';
|
|
916
|
+
};
|
|
917
|
+
|
|
918
|
+
export declare type DeleteUserError = DeleteUserErrors[keyof DeleteUserErrors];
|
|
919
|
+
|
|
920
|
+
export declare type DeleteUserErrors = {
|
|
921
|
+
/**
|
|
922
|
+
* Authentication required
|
|
923
|
+
*/
|
|
924
|
+
401: ErrorResponse;
|
|
925
|
+
};
|
|
926
|
+
|
|
927
|
+
export declare type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
|
|
928
|
+
|
|
929
|
+
export declare type DeleteUserResponses = {
|
|
930
|
+
/**
|
|
931
|
+
* Deleted
|
|
932
|
+
*/
|
|
933
|
+
200: {
|
|
934
|
+
message?: string;
|
|
935
|
+
};
|
|
936
|
+
};
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* Disconnect NotebookLM
|
|
940
|
+
*/
|
|
941
|
+
export declare const disconnectNotebooklm: <ThrowOnError extends boolean = false>(options?: Options<DisconnectNotebooklmData, ThrowOnError>) => RequestResult<DisconnectNotebooklmResponses, DisconnectNotebooklmErrors, ThrowOnError, "fields">;
|
|
942
|
+
|
|
943
|
+
export declare type DisconnectNotebooklmData = {
|
|
944
|
+
body?: never;
|
|
945
|
+
path?: never;
|
|
946
|
+
query?: never;
|
|
947
|
+
url: '/notebooklm/status';
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
export declare type DisconnectNotebooklmError = DisconnectNotebooklmErrors[keyof DisconnectNotebooklmErrors];
|
|
951
|
+
|
|
952
|
+
export declare type DisconnectNotebooklmErrors = {
|
|
953
|
+
/**
|
|
954
|
+
* Authentication required
|
|
955
|
+
*/
|
|
956
|
+
401: ErrorResponse;
|
|
957
|
+
};
|
|
958
|
+
|
|
959
|
+
export declare type DisconnectNotebooklmResponse = DisconnectNotebooklmResponses[keyof DisconnectNotebooklmResponses];
|
|
960
|
+
|
|
961
|
+
export declare type DisconnectNotebooklmResponses = {
|
|
962
|
+
/**
|
|
963
|
+
* Disconnected
|
|
964
|
+
*/
|
|
965
|
+
200: {
|
|
966
|
+
success?: boolean;
|
|
967
|
+
message?: string;
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* Discover curated content by topic
|
|
973
|
+
*/
|
|
974
|
+
export declare const discoverContent: <ThrowOnError extends boolean = false>(options?: Options<DiscoverContentData, ThrowOnError>) => RequestResult<DiscoverContentResponses, DiscoverContentErrors, ThrowOnError, "fields">;
|
|
975
|
+
|
|
976
|
+
export declare type DiscoverContentData = {
|
|
977
|
+
body?: never;
|
|
978
|
+
path?: never;
|
|
979
|
+
query?: {
|
|
980
|
+
topic?: 'tech' | 'finance' | 'art' | 'sports' | 'entertainment';
|
|
981
|
+
mode?: 'normal' | 'preview';
|
|
982
|
+
};
|
|
983
|
+
url: '/agent/discover';
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
export declare type DiscoverContentError = DiscoverContentErrors[keyof DiscoverContentErrors];
|
|
987
|
+
|
|
988
|
+
export declare type DiscoverContentErrors = {
|
|
989
|
+
/**
|
|
990
|
+
* Internal server error
|
|
991
|
+
*/
|
|
992
|
+
500: ErrorResponse;
|
|
993
|
+
};
|
|
994
|
+
|
|
995
|
+
export declare type DiscoverContentResponse = DiscoverContentResponses[keyof DiscoverContentResponses];
|
|
996
|
+
|
|
997
|
+
export declare type DiscoverContentResponses = {
|
|
998
|
+
/**
|
|
999
|
+
* Discovered content
|
|
1000
|
+
*/
|
|
1001
|
+
200: {
|
|
1002
|
+
blogs?: Array<SearchResult>;
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
1005
|
+
|
|
1006
|
+
declare type Document_2 = {
|
|
1007
|
+
id?: number;
|
|
1008
|
+
title?: string;
|
|
1009
|
+
name?: string;
|
|
1010
|
+
content?: string;
|
|
1011
|
+
parentId?: number;
|
|
1012
|
+
isFolder?: boolean;
|
|
1013
|
+
isExpanded?: boolean;
|
|
1014
|
+
metadata?: {
|
|
1015
|
+
[key: string]: unknown;
|
|
1016
|
+
};
|
|
1017
|
+
tags?: Array<string>;
|
|
1018
|
+
userId?: string;
|
|
1019
|
+
createdAt?: string;
|
|
1020
|
+
updatedAt?: string;
|
|
1021
|
+
};
|
|
1022
|
+
export { Document_2 as Document }
|
|
1023
|
+
|
|
1024
|
+
export declare type DomainSuggestion = {
|
|
1025
|
+
domain?: string;
|
|
1026
|
+
name?: string;
|
|
1027
|
+
favicon?: string;
|
|
1028
|
+
rank?: number;
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
export declare type ErrorResponse = {
|
|
1032
|
+
error?: string;
|
|
1033
|
+
message?: string;
|
|
1034
|
+
};
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* Export document to Google Docs
|
|
1038
|
+
*/
|
|
1039
|
+
export declare const exportToGoogleDocs: <ThrowOnError extends boolean = false>(options: Options<ExportToGoogleDocsData, ThrowOnError>) => RequestResult<ExportToGoogleDocsResponses, unknown, ThrowOnError, "fields">;
|
|
1040
|
+
|
|
1041
|
+
export declare type ExportToGoogleDocsData = {
|
|
1042
|
+
body: {
|
|
1043
|
+
documentId: string;
|
|
1044
|
+
accessToken: string;
|
|
1045
|
+
refreshToken?: string;
|
|
1046
|
+
};
|
|
1047
|
+
path?: never;
|
|
1048
|
+
query?: never;
|
|
1049
|
+
url: '/doc/google-docs/export';
|
|
1050
|
+
};
|
|
1051
|
+
|
|
1052
|
+
export declare type ExportToGoogleDocsResponse = ExportToGoogleDocsResponses[keyof ExportToGoogleDocsResponses];
|
|
1053
|
+
|
|
1054
|
+
export declare type ExportToGoogleDocsResponses = {
|
|
1055
|
+
/**
|
|
1056
|
+
* Export result
|
|
1057
|
+
*/
|
|
1058
|
+
200: {
|
|
1059
|
+
[key: string]: unknown;
|
|
1060
|
+
};
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
export declare type Favorite = {
|
|
1064
|
+
id?: number;
|
|
1065
|
+
userId?: string;
|
|
1066
|
+
url?: string;
|
|
1067
|
+
title?: string;
|
|
1068
|
+
cite?: string;
|
|
1069
|
+
author?: string;
|
|
1070
|
+
author_cite?: string;
|
|
1071
|
+
date?: string;
|
|
1072
|
+
source?: string;
|
|
1073
|
+
word_count?: number;
|
|
1074
|
+
html?: string;
|
|
1075
|
+
createdAt?: string;
|
|
1076
|
+
};
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* Generate audio overview for a notebook
|
|
1080
|
+
*/
|
|
1081
|
+
export declare const generateNotebookAudio: <ThrowOnError extends boolean = false>(options: Options<GenerateNotebookAudioData, ThrowOnError>) => RequestResult<GenerateNotebookAudioResponses, GenerateNotebookAudioErrors, ThrowOnError, "fields">;
|
|
1082
|
+
|
|
1083
|
+
export declare type GenerateNotebookAudioData = {
|
|
1084
|
+
body?: {
|
|
1085
|
+
instructions?: string;
|
|
1086
|
+
};
|
|
1087
|
+
path: {
|
|
1088
|
+
id: string;
|
|
1089
|
+
};
|
|
1090
|
+
query?: never;
|
|
1091
|
+
url: '/notebooklm/notebooks/{id}/audio';
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
export declare type GenerateNotebookAudioError = GenerateNotebookAudioErrors[keyof GenerateNotebookAudioErrors];
|
|
1095
|
+
|
|
1096
|
+
export declare type GenerateNotebookAudioErrors = {
|
|
1097
|
+
/**
|
|
1098
|
+
* Authentication required
|
|
1099
|
+
*/
|
|
1100
|
+
401: ErrorResponse;
|
|
1101
|
+
};
|
|
1102
|
+
|
|
1103
|
+
export declare type GenerateNotebookAudioResponse = GenerateNotebookAudioResponses[keyof GenerateNotebookAudioResponses];
|
|
1104
|
+
|
|
1105
|
+
export declare type GenerateNotebookAudioResponses = {
|
|
1106
|
+
/**
|
|
1107
|
+
* Audio result
|
|
1108
|
+
*/
|
|
1109
|
+
200: {
|
|
1110
|
+
[key: string]: unknown;
|
|
1111
|
+
};
|
|
1112
|
+
};
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* Generate follow-up suggestions for a chat
|
|
1116
|
+
*/
|
|
1117
|
+
export declare const generateSuggestions: <ThrowOnError extends boolean = false>(options: Options<GenerateSuggestionsData, ThrowOnError>) => RequestResult<GenerateSuggestionsResponses, GenerateSuggestionsErrors, ThrowOnError, "fields">;
|
|
1118
|
+
|
|
1119
|
+
export declare type GenerateSuggestionsData = {
|
|
1120
|
+
body: {
|
|
1121
|
+
chatHistory: Array<{
|
|
1122
|
+
[key: string]: unknown;
|
|
1123
|
+
}>;
|
|
1124
|
+
chatModel: ModelWithProvider;
|
|
1125
|
+
maxQuestions?: number;
|
|
1126
|
+
promptTemplate?: string;
|
|
1127
|
+
};
|
|
1128
|
+
path?: never;
|
|
1129
|
+
query?: never;
|
|
1130
|
+
url: '/agent/suggestions';
|
|
1131
|
+
};
|
|
1132
|
+
|
|
1133
|
+
export declare type GenerateSuggestionsError = GenerateSuggestionsErrors[keyof GenerateSuggestionsErrors];
|
|
1134
|
+
|
|
1135
|
+
export declare type GenerateSuggestionsErrors = {
|
|
1136
|
+
/**
|
|
1137
|
+
* Internal server error
|
|
1138
|
+
*/
|
|
1139
|
+
500: ErrorResponse;
|
|
1140
|
+
};
|
|
1141
|
+
|
|
1142
|
+
export declare type GenerateSuggestionsResponse = GenerateSuggestionsResponses[keyof GenerateSuggestionsResponses];
|
|
1143
|
+
|
|
1144
|
+
export declare type GenerateSuggestionsResponses = {
|
|
1145
|
+
/**
|
|
1146
|
+
* Suggestions
|
|
1147
|
+
*/
|
|
1148
|
+
200: {
|
|
1149
|
+
suggestions?: Array<string>;
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Fetch and cache article from URL
|
|
1155
|
+
*/
|
|
1156
|
+
export declare const getArticle: <ThrowOnError extends boolean = false>(options: Options<GetArticleData, ThrowOnError>) => RequestResult<GetArticleResponses, GetArticleErrors, ThrowOnError, "fields">;
|
|
1157
|
+
|
|
1158
|
+
export declare type GetArticleData = {
|
|
1159
|
+
body?: never;
|
|
1160
|
+
path?: never;
|
|
1161
|
+
query: {
|
|
1162
|
+
url: string;
|
|
1163
|
+
};
|
|
1164
|
+
url: '/doc/article';
|
|
1165
|
+
};
|
|
1166
|
+
|
|
1167
|
+
export declare type GetArticleError = GetArticleErrors[keyof GetArticleErrors];
|
|
1168
|
+
|
|
1169
|
+
export declare type GetArticleErrors = {
|
|
1170
|
+
/**
|
|
1171
|
+
* Bad request
|
|
1172
|
+
*/
|
|
1173
|
+
400: ErrorResponse;
|
|
1174
|
+
/**
|
|
1175
|
+
* Internal server error
|
|
1176
|
+
*/
|
|
1177
|
+
500: ErrorResponse;
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1180
|
+
export declare type GetArticleResponse = GetArticleResponses[keyof GetArticleResponses];
|
|
1181
|
+
|
|
1182
|
+
export declare type GetArticleResponses = {
|
|
1183
|
+
/**
|
|
1184
|
+
* Article content
|
|
1185
|
+
*/
|
|
1186
|
+
200: {
|
|
1187
|
+
cached?: boolean;
|
|
1188
|
+
article?: Article;
|
|
1189
|
+
isVideo?: boolean;
|
|
1190
|
+
};
|
|
1191
|
+
};
|
|
1192
|
+
|
|
1193
|
+
/**
|
|
1194
|
+
* Get a chat with messages
|
|
1195
|
+
*/
|
|
1196
|
+
export declare const getChatById: <ThrowOnError extends boolean = false>(options: Options<GetChatByIdData, ThrowOnError>) => RequestResult<GetChatByIdResponses, GetChatByIdErrors, ThrowOnError, "fields">;
|
|
1197
|
+
|
|
1198
|
+
export declare type GetChatByIdData = {
|
|
1199
|
+
body?: never;
|
|
1200
|
+
path: {
|
|
1201
|
+
id: string;
|
|
1202
|
+
};
|
|
1203
|
+
query?: never;
|
|
1204
|
+
url: '/agent/chats/{id}';
|
|
1205
|
+
};
|
|
1206
|
+
|
|
1207
|
+
export declare type GetChatByIdError = GetChatByIdErrors[keyof GetChatByIdErrors];
|
|
1208
|
+
|
|
1209
|
+
export declare type GetChatByIdErrors = {
|
|
1210
|
+
/**
|
|
1211
|
+
* Not found
|
|
1212
|
+
*/
|
|
1213
|
+
404: ErrorResponse;
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
export declare type GetChatByIdResponse = GetChatByIdResponses[keyof GetChatByIdResponses];
|
|
1217
|
+
|
|
1218
|
+
export declare type GetChatByIdResponses = {
|
|
1219
|
+
/**
|
|
1220
|
+
* Chat and messages
|
|
1221
|
+
*/
|
|
1222
|
+
200: {
|
|
1223
|
+
chat?: Chat;
|
|
1224
|
+
messages?: Array<{
|
|
1225
|
+
[key: string]: unknown;
|
|
1226
|
+
}>;
|
|
1227
|
+
};
|
|
1228
|
+
};
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Get application configuration
|
|
1232
|
+
*/
|
|
1233
|
+
export declare const getConfig: <ThrowOnError extends boolean = false>(options?: Options<GetConfigData, ThrowOnError>) => RequestResult<GetConfigResponses, unknown, ThrowOnError, "fields">;
|
|
1234
|
+
|
|
1235
|
+
export declare type GetConfigData = {
|
|
1236
|
+
body?: never;
|
|
1237
|
+
path?: never;
|
|
1238
|
+
query?: never;
|
|
1239
|
+
url: '/config';
|
|
1240
|
+
};
|
|
1241
|
+
|
|
1242
|
+
export declare type GetConfigResponse = GetConfigResponses[keyof GetConfigResponses];
|
|
1243
|
+
|
|
1244
|
+
export declare type GetConfigResponses = {
|
|
1245
|
+
/**
|
|
1246
|
+
* Config values and UI field definitions
|
|
1247
|
+
*/
|
|
1248
|
+
200: {
|
|
1249
|
+
[key: string]: unknown;
|
|
1250
|
+
};
|
|
1251
|
+
};
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* Get a document by ID
|
|
1255
|
+
*/
|
|
1256
|
+
export declare const getDocumentById: <ThrowOnError extends boolean = false>(options: Options<GetDocumentByIdData, ThrowOnError>) => RequestResult<GetDocumentByIdResponses, GetDocumentByIdErrors, ThrowOnError, "fields">;
|
|
1257
|
+
|
|
1258
|
+
export declare type GetDocumentByIdData = {
|
|
1259
|
+
body?: never;
|
|
1260
|
+
path: {
|
|
1261
|
+
id: number;
|
|
1262
|
+
};
|
|
1263
|
+
query?: never;
|
|
1264
|
+
url: '/doc/documents/{id}';
|
|
1265
|
+
};
|
|
1266
|
+
|
|
1267
|
+
export declare type GetDocumentByIdError = GetDocumentByIdErrors[keyof GetDocumentByIdErrors];
|
|
1268
|
+
|
|
1269
|
+
export declare type GetDocumentByIdErrors = {
|
|
1270
|
+
/**
|
|
1271
|
+
* Not found
|
|
1272
|
+
*/
|
|
1273
|
+
404: ErrorResponse;
|
|
1274
|
+
};
|
|
1275
|
+
|
|
1276
|
+
export declare type GetDocumentByIdResponse = GetDocumentByIdResponses[keyof GetDocumentByIdResponses];
|
|
1277
|
+
|
|
1278
|
+
export declare type GetDocumentByIdResponses = {
|
|
1279
|
+
/**
|
|
1280
|
+
* Document
|
|
1281
|
+
*/
|
|
1282
|
+
200: Document_2;
|
|
1283
|
+
};
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* Get enabled search engines
|
|
1287
|
+
*/
|
|
1288
|
+
export declare const getEngineStatus: <ThrowOnError extends boolean = false>(options?: Options<GetEngineStatusData, ThrowOnError>) => RequestResult<GetEngineStatusResponses, unknown, ThrowOnError, "fields">;
|
|
1289
|
+
|
|
1290
|
+
export declare type GetEngineStatusData = {
|
|
1291
|
+
body?: never;
|
|
1292
|
+
path?: never;
|
|
1293
|
+
query?: never;
|
|
1294
|
+
url: '/search/engines/status';
|
|
1295
|
+
};
|
|
1296
|
+
|
|
1297
|
+
export declare type GetEngineStatusResponse = GetEngineStatusResponses[keyof GetEngineStatusResponses];
|
|
1298
|
+
|
|
1299
|
+
export declare type GetEngineStatusResponses = {
|
|
1300
|
+
/**
|
|
1301
|
+
* Enabled engines
|
|
1302
|
+
*/
|
|
1303
|
+
200: {
|
|
1304
|
+
enabledEngines?: Array<string>;
|
|
1305
|
+
};
|
|
1306
|
+
};
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* Download a Google Drive file by ID
|
|
1310
|
+
*/
|
|
1311
|
+
export declare const getGoogleDriveFile: <ThrowOnError extends boolean = false>(options: Options<GetGoogleDriveFileData, ThrowOnError>) => RequestResult<GetGoogleDriveFileResponses, unknown, ThrowOnError, "fields">;
|
|
1312
|
+
|
|
1313
|
+
export declare type GetGoogleDriveFileData = {
|
|
1314
|
+
body?: never;
|
|
1315
|
+
path?: never;
|
|
1316
|
+
query: {
|
|
1317
|
+
fileId: string;
|
|
1318
|
+
};
|
|
1319
|
+
url: '/doc/google-docs/files';
|
|
1320
|
+
};
|
|
1321
|
+
|
|
1322
|
+
export declare type GetGoogleDriveFileResponse = GetGoogleDriveFileResponses[keyof GetGoogleDriveFileResponses];
|
|
1323
|
+
|
|
1324
|
+
export declare type GetGoogleDriveFileResponses = {
|
|
1325
|
+
/**
|
|
1326
|
+
* File content (base64)
|
|
1327
|
+
*/
|
|
1328
|
+
200: {
|
|
1329
|
+
[key: string]: unknown;
|
|
1330
|
+
};
|
|
1331
|
+
};
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* Get Google access token from cookies
|
|
1335
|
+
*/
|
|
1336
|
+
export declare const getGoogleToken: <ThrowOnError extends boolean = false>(options?: Options<GetGoogleTokenData, ThrowOnError>) => RequestResult<GetGoogleTokenResponses, unknown, ThrowOnError, "fields">;
|
|
1337
|
+
|
|
1338
|
+
export declare type GetGoogleTokenData = {
|
|
1339
|
+
body?: never;
|
|
1340
|
+
path?: never;
|
|
1341
|
+
query?: never;
|
|
1342
|
+
url: '/doc/google-docs/token';
|
|
1343
|
+
};
|
|
1344
|
+
|
|
1345
|
+
export declare type GetGoogleTokenResponse = GetGoogleTokenResponses[keyof GetGoogleTokenResponses];
|
|
1346
|
+
|
|
1347
|
+
export declare type GetGoogleTokenResponses = {
|
|
1348
|
+
/**
|
|
1349
|
+
* Access token
|
|
1350
|
+
*/
|
|
1351
|
+
200: {
|
|
1352
|
+
success?: boolean;
|
|
1353
|
+
accessToken?: string;
|
|
1354
|
+
};
|
|
1355
|
+
};
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* Get NotebookLM connection status
|
|
1359
|
+
*/
|
|
1360
|
+
export declare const getNotebooklmStatus: <ThrowOnError extends boolean = false>(options?: Options<GetNotebooklmStatusData, ThrowOnError>) => RequestResult<GetNotebooklmStatusResponses, GetNotebooklmStatusErrors, ThrowOnError, "fields">;
|
|
1361
|
+
|
|
1362
|
+
export declare type GetNotebooklmStatusData = {
|
|
1363
|
+
body?: never;
|
|
1364
|
+
path?: never;
|
|
1365
|
+
query?: never;
|
|
1366
|
+
url: '/notebooklm/status';
|
|
1367
|
+
};
|
|
1368
|
+
|
|
1369
|
+
export declare type GetNotebooklmStatusError = GetNotebooklmStatusErrors[keyof GetNotebooklmStatusErrors];
|
|
1370
|
+
|
|
1371
|
+
export declare type GetNotebooklmStatusErrors = {
|
|
1372
|
+
/**
|
|
1373
|
+
* Authentication required
|
|
1374
|
+
*/
|
|
1375
|
+
401: ErrorResponse;
|
|
1376
|
+
};
|
|
1377
|
+
|
|
1378
|
+
export declare type GetNotebooklmStatusResponse = GetNotebooklmStatusResponses[keyof GetNotebooklmStatusResponses];
|
|
1379
|
+
|
|
1380
|
+
export declare type GetNotebooklmStatusResponses = {
|
|
1381
|
+
/**
|
|
1382
|
+
* Connection status
|
|
1383
|
+
*/
|
|
1384
|
+
200: {
|
|
1385
|
+
connected?: boolean;
|
|
1386
|
+
googleEmail?: string;
|
|
1387
|
+
createdAt?: string;
|
|
1388
|
+
expiresAt?: string;
|
|
1389
|
+
};
|
|
1390
|
+
};
|
|
1391
|
+
|
|
1392
|
+
/**
|
|
1393
|
+
* Resolve a share token to a document
|
|
1394
|
+
*/
|
|
1395
|
+
export declare const getSharedDocument: <ThrowOnError extends boolean = false>(options: Options<GetSharedDocumentData, ThrowOnError>) => RequestResult<GetSharedDocumentResponses, GetSharedDocumentErrors, ThrowOnError, "fields">;
|
|
1396
|
+
|
|
1397
|
+
export declare type GetSharedDocumentData = {
|
|
1398
|
+
body?: never;
|
|
1399
|
+
path: {
|
|
1400
|
+
/**
|
|
1401
|
+
* Share token
|
|
1402
|
+
*/
|
|
1403
|
+
id: string;
|
|
1404
|
+
};
|
|
1405
|
+
query?: never;
|
|
1406
|
+
url: '/doc/share/{id}';
|
|
1407
|
+
};
|
|
1408
|
+
|
|
1409
|
+
export declare type GetSharedDocumentError = GetSharedDocumentErrors[keyof GetSharedDocumentErrors];
|
|
1410
|
+
|
|
1411
|
+
export declare type GetSharedDocumentErrors = {
|
|
1412
|
+
/**
|
|
1413
|
+
* Not found
|
|
1414
|
+
*/
|
|
1415
|
+
404: ErrorResponse;
|
|
1416
|
+
/**
|
|
1417
|
+
* Share link expired
|
|
1418
|
+
*/
|
|
1419
|
+
410: ErrorResponse;
|
|
1420
|
+
};
|
|
1421
|
+
|
|
1422
|
+
export declare type GetSharedDocumentResponse = GetSharedDocumentResponses[keyof GetSharedDocumentResponses];
|
|
1423
|
+
|
|
1424
|
+
export declare type GetSharedDocumentResponses = {
|
|
1425
|
+
/**
|
|
1426
|
+
* Shared document
|
|
1427
|
+
*/
|
|
1428
|
+
200: {
|
|
1429
|
+
success?: boolean;
|
|
1430
|
+
data?: Document_2;
|
|
1431
|
+
};
|
|
1432
|
+
};
|
|
1433
|
+
|
|
1434
|
+
/**
|
|
1435
|
+
* Get extracted content for an uploaded file
|
|
1436
|
+
*/
|
|
1437
|
+
export declare const getUploadedFile: <ThrowOnError extends boolean = false>(options: Options<GetUploadedFileData, ThrowOnError>) => RequestResult<GetUploadedFileResponses, unknown, ThrowOnError, "fields">;
|
|
1438
|
+
|
|
1439
|
+
export declare type GetUploadedFileData = {
|
|
1440
|
+
body?: never;
|
|
1441
|
+
path?: never;
|
|
1442
|
+
query: {
|
|
1443
|
+
fileId: string;
|
|
1444
|
+
};
|
|
1445
|
+
url: '/doc/uploads';
|
|
1446
|
+
};
|
|
1447
|
+
|
|
1448
|
+
export declare type GetUploadedFileResponse = GetUploadedFileResponses[keyof GetUploadedFileResponses];
|
|
1449
|
+
|
|
1450
|
+
export declare type GetUploadedFileResponses = {
|
|
1451
|
+
/**
|
|
1452
|
+
* File content
|
|
1453
|
+
*/
|
|
1454
|
+
200: {
|
|
1455
|
+
title?: string;
|
|
1456
|
+
content?: string;
|
|
1457
|
+
};
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* Get current user profile
|
|
1462
|
+
*/
|
|
1463
|
+
export declare const getUser: <ThrowOnError extends boolean = false>(options?: Options<GetUserData, ThrowOnError>) => RequestResult<GetUserResponses, GetUserErrors, ThrowOnError, "fields">;
|
|
1464
|
+
|
|
1465
|
+
export declare type GetUserData = {
|
|
1466
|
+
body?: never;
|
|
1467
|
+
path?: never;
|
|
1468
|
+
query?: never;
|
|
1469
|
+
url: '/user';
|
|
1470
|
+
};
|
|
1471
|
+
|
|
1472
|
+
export declare type GetUserError = GetUserErrors[keyof GetUserErrors];
|
|
1473
|
+
|
|
1474
|
+
export declare type GetUserErrors = {
|
|
1475
|
+
/**
|
|
1476
|
+
* Authentication required
|
|
1477
|
+
*/
|
|
1478
|
+
401: ErrorResponse;
|
|
1479
|
+
};
|
|
1480
|
+
|
|
1481
|
+
export declare type GetUserResponse = GetUserResponses[keyof GetUserResponses];
|
|
1482
|
+
|
|
1483
|
+
export declare type GetUserResponses = {
|
|
1484
|
+
/**
|
|
1485
|
+
* User profile
|
|
1486
|
+
*/
|
|
1487
|
+
200: UserProfile;
|
|
1488
|
+
};
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* Get storage usage
|
|
1492
|
+
*/
|
|
1493
|
+
export declare const getUserStorage: <ThrowOnError extends boolean = false>(options?: Options<GetUserStorageData, ThrowOnError>) => RequestResult<GetUserStorageResponses, GetUserStorageErrors, ThrowOnError, "fields">;
|
|
1494
|
+
|
|
1495
|
+
export declare type GetUserStorageData = {
|
|
1496
|
+
body?: never;
|
|
1497
|
+
path?: never;
|
|
1498
|
+
query?: never;
|
|
1499
|
+
url: '/user/storage';
|
|
1500
|
+
};
|
|
1501
|
+
|
|
1502
|
+
export declare type GetUserStorageError = GetUserStorageErrors[keyof GetUserStorageErrors];
|
|
1503
|
+
|
|
1504
|
+
export declare type GetUserStorageErrors = {
|
|
1505
|
+
/**
|
|
1506
|
+
* Authentication required
|
|
1507
|
+
*/
|
|
1508
|
+
401: ErrorResponse;
|
|
1509
|
+
};
|
|
1510
|
+
|
|
1511
|
+
export declare type GetUserStorageResponse = GetUserStorageResponses[keyof GetUserStorageResponses];
|
|
1512
|
+
|
|
1513
|
+
export declare type GetUserStorageResponses = {
|
|
1514
|
+
/**
|
|
1515
|
+
* Storage info
|
|
1516
|
+
*/
|
|
1517
|
+
200: StorageInfo;
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* Get Google OAuth consent URL
|
|
1522
|
+
*/
|
|
1523
|
+
export declare const googleDocsAuth: <ThrowOnError extends boolean = false>(options?: Options<GoogleDocsAuthData, ThrowOnError>) => RequestResult<GoogleDocsAuthResponses, unknown, ThrowOnError, "fields">;
|
|
1524
|
+
|
|
1525
|
+
export declare type GoogleDocsAuthData = {
|
|
1526
|
+
body?: never;
|
|
1527
|
+
path?: never;
|
|
1528
|
+
query?: never;
|
|
1529
|
+
url: '/doc/google-docs/auth';
|
|
1530
|
+
};
|
|
1531
|
+
|
|
1532
|
+
export declare type GoogleDocsAuthResponse = GoogleDocsAuthResponses[keyof GoogleDocsAuthResponses];
|
|
1533
|
+
|
|
1534
|
+
export declare type GoogleDocsAuthResponses = {
|
|
1535
|
+
/**
|
|
1536
|
+
* Auth URL
|
|
1537
|
+
*/
|
|
1538
|
+
200: {
|
|
1539
|
+
success?: boolean;
|
|
1540
|
+
data?: {
|
|
1541
|
+
authUrl?: string;
|
|
1542
|
+
};
|
|
1543
|
+
};
|
|
1544
|
+
};
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* Check Google Drive connection status
|
|
1548
|
+
*/
|
|
1549
|
+
export declare const googleDocsAuthStatus: <ThrowOnError extends boolean = false>(options?: Options<GoogleDocsAuthStatusData, ThrowOnError>) => RequestResult<GoogleDocsAuthStatusResponses, unknown, ThrowOnError, "fields">;
|
|
1550
|
+
|
|
1551
|
+
export declare type GoogleDocsAuthStatusData = {
|
|
1552
|
+
body?: never;
|
|
1553
|
+
path?: never;
|
|
1554
|
+
query?: never;
|
|
1555
|
+
url: '/doc/google-docs/auth/status';
|
|
1556
|
+
};
|
|
1557
|
+
|
|
1558
|
+
export declare type GoogleDocsAuthStatusResponse = GoogleDocsAuthStatusResponses[keyof GoogleDocsAuthStatusResponses];
|
|
1559
|
+
|
|
1560
|
+
export declare type GoogleDocsAuthStatusResponses = {
|
|
1561
|
+
/**
|
|
1562
|
+
* Connection status
|
|
1563
|
+
*/
|
|
1564
|
+
200: {
|
|
1565
|
+
success?: boolean;
|
|
1566
|
+
isConnected?: boolean;
|
|
1567
|
+
hasAccessToken?: boolean;
|
|
1568
|
+
hasRefreshToken?: boolean;
|
|
1569
|
+
};
|
|
1570
|
+
};
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
* OAuth callback — exchanges code for tokens
|
|
1574
|
+
*/
|
|
1575
|
+
export declare const googleDocsCallback: <ThrowOnError extends boolean = false>(options: Options<GoogleDocsCallbackData, ThrowOnError>) => RequestResult<GoogleDocsCallbackResponses, unknown, ThrowOnError, "fields">;
|
|
1576
|
+
|
|
1577
|
+
export declare type GoogleDocsCallbackData = {
|
|
1578
|
+
body?: never;
|
|
1579
|
+
path?: never;
|
|
1580
|
+
query: {
|
|
1581
|
+
code: string;
|
|
1582
|
+
};
|
|
1583
|
+
url: '/doc/google-docs/callback';
|
|
1584
|
+
};
|
|
1585
|
+
|
|
1586
|
+
export declare type GoogleDocsCallbackResponse = GoogleDocsCallbackResponses[keyof GoogleDocsCallbackResponses];
|
|
1587
|
+
|
|
1588
|
+
export declare type GoogleDocsCallbackResponses = {
|
|
1589
|
+
/**
|
|
1590
|
+
* HTML popup-close page
|
|
1591
|
+
*/
|
|
1592
|
+
200: string;
|
|
1593
|
+
};
|
|
1594
|
+
|
|
1595
|
+
/**
|
|
1596
|
+
* Import a Google Docs document
|
|
1597
|
+
*/
|
|
1598
|
+
export declare const importFromGoogleDocs: <ThrowOnError extends boolean = false>(options: Options<ImportFromGoogleDocsData, ThrowOnError>) => RequestResult<ImportFromGoogleDocsResponses, unknown, ThrowOnError, "fields">;
|
|
1599
|
+
|
|
1600
|
+
export declare type ImportFromGoogleDocsData = {
|
|
1601
|
+
body: {
|
|
1602
|
+
googleDocId: string;
|
|
1603
|
+
accessToken: string;
|
|
1604
|
+
refreshToken?: string;
|
|
1605
|
+
parentId?: string;
|
|
1606
|
+
};
|
|
1607
|
+
path?: never;
|
|
1608
|
+
query?: never;
|
|
1609
|
+
url: '/doc/google-docs/import';
|
|
1610
|
+
};
|
|
1611
|
+
|
|
1612
|
+
export declare type ImportFromGoogleDocsResponse = ImportFromGoogleDocsResponses[keyof ImportFromGoogleDocsResponses];
|
|
1613
|
+
|
|
1614
|
+
export declare type ImportFromGoogleDocsResponses = {
|
|
1615
|
+
/**
|
|
1616
|
+
* Imported
|
|
1617
|
+
*/
|
|
1618
|
+
201: {
|
|
1619
|
+
success?: boolean;
|
|
1620
|
+
};
|
|
1621
|
+
};
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* List user's chats
|
|
1625
|
+
*/
|
|
1626
|
+
export declare const listChats: <ThrowOnError extends boolean = false>(options?: Options<ListChatsData, ThrowOnError>) => RequestResult<ListChatsResponses, ListChatsErrors, ThrowOnError, "fields">;
|
|
1627
|
+
|
|
1628
|
+
export declare type ListChatsData = {
|
|
1629
|
+
body?: never;
|
|
1630
|
+
path?: never;
|
|
1631
|
+
query?: never;
|
|
1632
|
+
url: '/agent/chats';
|
|
1633
|
+
};
|
|
1634
|
+
|
|
1635
|
+
export declare type ListChatsError = ListChatsErrors[keyof ListChatsErrors];
|
|
1636
|
+
|
|
1637
|
+
export declare type ListChatsErrors = {
|
|
1638
|
+
/**
|
|
1639
|
+
* Authentication required
|
|
1640
|
+
*/
|
|
1641
|
+
401: ErrorResponse;
|
|
1642
|
+
};
|
|
1643
|
+
|
|
1644
|
+
export declare type ListChatsResponse = ListChatsResponses[keyof ListChatsResponses];
|
|
1645
|
+
|
|
1646
|
+
export declare type ListChatsResponses = {
|
|
1647
|
+
/**
|
|
1648
|
+
* Chat list
|
|
1649
|
+
*/
|
|
1650
|
+
200: {
|
|
1651
|
+
chats?: Array<Chat>;
|
|
1652
|
+
};
|
|
1653
|
+
};
|
|
1654
|
+
|
|
1655
|
+
/**
|
|
1656
|
+
* List documents
|
|
1657
|
+
*/
|
|
1658
|
+
export declare const listDocuments: <ThrowOnError extends boolean = false>(options?: Options<ListDocumentsData, ThrowOnError>) => RequestResult<ListDocumentsResponses, unknown, ThrowOnError, "fields">;
|
|
1659
|
+
|
|
1660
|
+
export declare type ListDocumentsData = {
|
|
1661
|
+
body?: never;
|
|
1662
|
+
path?: never;
|
|
1663
|
+
query?: never;
|
|
1664
|
+
url: '/doc/documents';
|
|
1665
|
+
};
|
|
1666
|
+
|
|
1667
|
+
export declare type ListDocumentsResponse = ListDocumentsResponses[keyof ListDocumentsResponses];
|
|
1668
|
+
|
|
1669
|
+
export declare type ListDocumentsResponses = {
|
|
1670
|
+
/**
|
|
1671
|
+
* Document list
|
|
1672
|
+
*/
|
|
1673
|
+
200: Array<Document_2>;
|
|
1674
|
+
};
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* List favorites
|
|
1678
|
+
*/
|
|
1679
|
+
export declare const listFavorites: <ThrowOnError extends boolean = false>(options?: Options<ListFavoritesData, ThrowOnError>) => RequestResult<ListFavoritesResponses, ListFavoritesErrors, ThrowOnError, "fields">;
|
|
1680
|
+
|
|
1681
|
+
export declare type ListFavoritesData = {
|
|
1682
|
+
body?: never;
|
|
1683
|
+
path?: never;
|
|
1684
|
+
query?: never;
|
|
1685
|
+
url: '/doc/favorites';
|
|
1686
|
+
};
|
|
1687
|
+
|
|
1688
|
+
export declare type ListFavoritesError = ListFavoritesErrors[keyof ListFavoritesErrors];
|
|
1689
|
+
|
|
1690
|
+
export declare type ListFavoritesErrors = {
|
|
1691
|
+
/**
|
|
1692
|
+
* Authentication required
|
|
1693
|
+
*/
|
|
1694
|
+
401: ErrorResponse;
|
|
1695
|
+
};
|
|
1696
|
+
|
|
1697
|
+
export declare type ListFavoritesResponse = ListFavoritesResponses[keyof ListFavoritesResponses];
|
|
1698
|
+
|
|
1699
|
+
export declare type ListFavoritesResponses = {
|
|
1700
|
+
/**
|
|
1701
|
+
* Favorites
|
|
1702
|
+
*/
|
|
1703
|
+
200: {
|
|
1704
|
+
favorites?: Array<Favorite>;
|
|
1705
|
+
};
|
|
1706
|
+
};
|
|
1707
|
+
|
|
1708
|
+
/**
|
|
1709
|
+
* List MCP servers
|
|
1710
|
+
*/
|
|
1711
|
+
export declare const listMcpServers: <ThrowOnError extends boolean = false>(options?: Options<ListMcpServersData, ThrowOnError>) => RequestResult<ListMcpServersResponses, unknown, ThrowOnError, "fields">;
|
|
1712
|
+
|
|
1713
|
+
export declare type ListMcpServersData = {
|
|
1714
|
+
body?: never;
|
|
1715
|
+
path?: never;
|
|
1716
|
+
query?: never;
|
|
1717
|
+
url: '/agent/mcpservers';
|
|
1718
|
+
};
|
|
1719
|
+
|
|
1720
|
+
export declare type ListMcpServersResponse = ListMcpServersResponses[keyof ListMcpServersResponses];
|
|
1721
|
+
|
|
1722
|
+
export declare type ListMcpServersResponses = {
|
|
1723
|
+
/**
|
|
1724
|
+
* MCP server list
|
|
1725
|
+
*/
|
|
1726
|
+
200: {
|
|
1727
|
+
servers?: Array<McpServer>;
|
|
1728
|
+
};
|
|
1729
|
+
};
|
|
1730
|
+
|
|
1731
|
+
/**
|
|
1732
|
+
* List notebooks
|
|
1733
|
+
*/
|
|
1734
|
+
export declare const listNotebooks: <ThrowOnError extends boolean = false>(options?: Options<ListNotebooksData, ThrowOnError>) => RequestResult<ListNotebooksResponses, ListNotebooksErrors, ThrowOnError, "fields">;
|
|
1735
|
+
|
|
1736
|
+
export declare type ListNotebooksData = {
|
|
1737
|
+
body?: never;
|
|
1738
|
+
path?: never;
|
|
1739
|
+
query?: never;
|
|
1740
|
+
url: '/notebooklm/notebooks';
|
|
1741
|
+
};
|
|
1742
|
+
|
|
1743
|
+
export declare type ListNotebooksError = ListNotebooksErrors[keyof ListNotebooksErrors];
|
|
1744
|
+
|
|
1745
|
+
export declare type ListNotebooksErrors = {
|
|
1746
|
+
/**
|
|
1747
|
+
* Authentication required
|
|
1748
|
+
*/
|
|
1749
|
+
401: ErrorResponse;
|
|
1750
|
+
};
|
|
1751
|
+
|
|
1752
|
+
/**
|
|
1753
|
+
* List notebook sources
|
|
1754
|
+
*/
|
|
1755
|
+
export declare const listNotebookSources: <ThrowOnError extends boolean = false>(options: Options<ListNotebookSourcesData, ThrowOnError>) => RequestResult<ListNotebookSourcesResponses, ListNotebookSourcesErrors, ThrowOnError, "fields">;
|
|
1756
|
+
|
|
1757
|
+
export declare type ListNotebookSourcesData = {
|
|
1758
|
+
body?: never;
|
|
1759
|
+
path: {
|
|
1760
|
+
id: string;
|
|
1761
|
+
};
|
|
1762
|
+
query?: never;
|
|
1763
|
+
url: '/notebooklm/notebooks/{id}/sources';
|
|
1764
|
+
};
|
|
1765
|
+
|
|
1766
|
+
export declare type ListNotebookSourcesError = ListNotebookSourcesErrors[keyof ListNotebookSourcesErrors];
|
|
1767
|
+
|
|
1768
|
+
export declare type ListNotebookSourcesErrors = {
|
|
1769
|
+
/**
|
|
1770
|
+
* Authentication required
|
|
1771
|
+
*/
|
|
1772
|
+
401: ErrorResponse;
|
|
1773
|
+
};
|
|
1774
|
+
|
|
1775
|
+
export declare type ListNotebookSourcesResponse = ListNotebookSourcesResponses[keyof ListNotebookSourcesResponses];
|
|
1776
|
+
|
|
1777
|
+
export declare type ListNotebookSourcesResponses = {
|
|
1778
|
+
/**
|
|
1779
|
+
* Sources
|
|
1780
|
+
*/
|
|
1781
|
+
200: {
|
|
1782
|
+
sources?: Array<NotebookSource>;
|
|
1783
|
+
};
|
|
1784
|
+
};
|
|
1785
|
+
|
|
1786
|
+
export declare type ListNotebooksResponse = ListNotebooksResponses[keyof ListNotebooksResponses];
|
|
1787
|
+
|
|
1788
|
+
export declare type ListNotebooksResponses = {
|
|
1789
|
+
/**
|
|
1790
|
+
* Notebooks
|
|
1791
|
+
*/
|
|
1792
|
+
200: {
|
|
1793
|
+
notebooks?: Array<Notebook>;
|
|
1794
|
+
};
|
|
1795
|
+
};
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* List LLM providers
|
|
1799
|
+
*/
|
|
1800
|
+
export declare const listProviders: <ThrowOnError extends boolean = false>(options?: Options<ListProvidersData, ThrowOnError>) => RequestResult<ListProvidersResponses, unknown, ThrowOnError, "fields">;
|
|
1801
|
+
|
|
1802
|
+
export declare type ListProvidersData = {
|
|
1803
|
+
body?: never;
|
|
1804
|
+
path?: never;
|
|
1805
|
+
query?: {
|
|
1806
|
+
guest?: 'true';
|
|
1807
|
+
};
|
|
1808
|
+
url: '/agent/providers';
|
|
1809
|
+
};
|
|
1810
|
+
|
|
1811
|
+
export declare type ListProvidersResponse = ListProvidersResponses[keyof ListProvidersResponses];
|
|
1812
|
+
|
|
1813
|
+
export declare type ListProvidersResponses = {
|
|
1814
|
+
/**
|
|
1815
|
+
* Provider list
|
|
1816
|
+
*/
|
|
1817
|
+
200: {
|
|
1818
|
+
providers?: Array<Provider>;
|
|
1819
|
+
isGuest?: boolean;
|
|
1820
|
+
};
|
|
1821
|
+
};
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* List quotes for a document
|
|
1825
|
+
*/
|
|
1826
|
+
export declare const listQuotes: <ThrowOnError extends boolean = false>(options: Options<ListQuotesData, ThrowOnError>) => RequestResult<ListQuotesResponses, ListQuotesErrors, ThrowOnError, "fields">;
|
|
1827
|
+
|
|
1828
|
+
export declare type ListQuotesData = {
|
|
1829
|
+
body?: never;
|
|
1830
|
+
path?: never;
|
|
1831
|
+
query: {
|
|
1832
|
+
documentId: string;
|
|
1833
|
+
};
|
|
1834
|
+
url: '/doc/quotes';
|
|
1835
|
+
};
|
|
1836
|
+
|
|
1837
|
+
export declare type ListQuotesError = ListQuotesErrors[keyof ListQuotesErrors];
|
|
1838
|
+
|
|
1839
|
+
export declare type ListQuotesErrors = {
|
|
1840
|
+
/**
|
|
1841
|
+
* Bad request
|
|
1842
|
+
*/
|
|
1843
|
+
400: ErrorResponse;
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1846
|
+
export declare type ListQuotesResponse = ListQuotesResponses[keyof ListQuotesResponses];
|
|
1847
|
+
|
|
1848
|
+
export declare type ListQuotesResponses = {
|
|
1849
|
+
/**
|
|
1850
|
+
* Quotes
|
|
1851
|
+
*/
|
|
1852
|
+
200: {
|
|
1853
|
+
success?: boolean;
|
|
1854
|
+
data?: Array<Quote>;
|
|
1855
|
+
};
|
|
1856
|
+
};
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
* List all available search engines by category
|
|
1860
|
+
*/
|
|
1861
|
+
export declare const listSearchEngines: <ThrowOnError extends boolean = false>(options?: Options<ListSearchEnginesData, ThrowOnError>) => RequestResult<ListSearchEnginesResponses, unknown, ThrowOnError, "fields">;
|
|
1862
|
+
|
|
1863
|
+
export declare type ListSearchEnginesData = {
|
|
1864
|
+
body?: never;
|
|
1865
|
+
path?: never;
|
|
1866
|
+
query?: never;
|
|
1867
|
+
url: '/search/engines';
|
|
1868
|
+
};
|
|
1869
|
+
|
|
1870
|
+
export declare type ListSearchEnginesResponse = ListSearchEnginesResponses[keyof ListSearchEnginesResponses];
|
|
1871
|
+
|
|
1872
|
+
export declare type ListSearchEnginesResponses = {
|
|
1873
|
+
/**
|
|
1874
|
+
* Engines grouped by category
|
|
1875
|
+
*/
|
|
1876
|
+
200: {
|
|
1877
|
+
engines?: {
|
|
1878
|
+
[key: string]: Array<{
|
|
1879
|
+
name?: string;
|
|
1880
|
+
categories?: Array<string>;
|
|
1881
|
+
}>;
|
|
1882
|
+
};
|
|
1883
|
+
};
|
|
1884
|
+
};
|
|
1885
|
+
|
|
1886
|
+
/**
|
|
1887
|
+
* List active sessions
|
|
1888
|
+
*/
|
|
1889
|
+
export declare const listSessions: <ThrowOnError extends boolean = false>(options?: Options<ListSessionsData, ThrowOnError>) => RequestResult<ListSessionsResponses, ListSessionsErrors, ThrowOnError, "fields">;
|
|
1890
|
+
|
|
1891
|
+
export declare type ListSessionsData = {
|
|
1892
|
+
body?: never;
|
|
1893
|
+
path?: never;
|
|
1894
|
+
query?: never;
|
|
1895
|
+
url: '/user/sessions';
|
|
1896
|
+
};
|
|
1897
|
+
|
|
1898
|
+
export declare type ListSessionsError = ListSessionsErrors[keyof ListSessionsErrors];
|
|
1899
|
+
|
|
1900
|
+
export declare type ListSessionsErrors = {
|
|
1901
|
+
/**
|
|
1902
|
+
* Authentication required
|
|
1903
|
+
*/
|
|
1904
|
+
401: ErrorResponse;
|
|
1905
|
+
};
|
|
1906
|
+
|
|
1907
|
+
export declare type ListSessionsResponse = ListSessionsResponses[keyof ListSessionsResponses];
|
|
1908
|
+
|
|
1909
|
+
export declare type ListSessionsResponses = {
|
|
1910
|
+
/**
|
|
1911
|
+
* Sessions
|
|
1912
|
+
*/
|
|
1913
|
+
200: Array<UserSession>;
|
|
1914
|
+
};
|
|
1915
|
+
|
|
1916
|
+
/**
|
|
1917
|
+
* List linked OAuth accounts
|
|
1918
|
+
*/
|
|
1919
|
+
export declare const listUserAccounts: <ThrowOnError extends boolean = false>(options?: Options<ListUserAccountsData, ThrowOnError>) => RequestResult<ListUserAccountsResponses, ListUserAccountsErrors, ThrowOnError, "fields">;
|
|
1920
|
+
|
|
1921
|
+
export declare type ListUserAccountsData = {
|
|
1922
|
+
body?: never;
|
|
1923
|
+
path?: never;
|
|
1924
|
+
query?: never;
|
|
1925
|
+
url: '/user/accounts';
|
|
1926
|
+
};
|
|
1927
|
+
|
|
1928
|
+
export declare type ListUserAccountsError = ListUserAccountsErrors[keyof ListUserAccountsErrors];
|
|
1929
|
+
|
|
1930
|
+
export declare type ListUserAccountsErrors = {
|
|
1931
|
+
/**
|
|
1932
|
+
* Authentication required
|
|
1933
|
+
*/
|
|
1934
|
+
401: ErrorResponse;
|
|
1935
|
+
};
|
|
1936
|
+
|
|
1937
|
+
export declare type ListUserAccountsResponse = ListUserAccountsResponses[keyof ListUserAccountsResponses];
|
|
1938
|
+
|
|
1939
|
+
export declare type ListUserAccountsResponses = {
|
|
1940
|
+
/**
|
|
1941
|
+
* Accounts
|
|
1942
|
+
*/
|
|
1943
|
+
200: Array<{
|
|
1944
|
+
id?: string;
|
|
1945
|
+
providerId?: string;
|
|
1946
|
+
accountId?: string;
|
|
1947
|
+
createdAt?: string;
|
|
1948
|
+
}>;
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1951
|
+
export declare type McpServer = {
|
|
1952
|
+
id?: string;
|
|
1953
|
+
type?: string;
|
|
1954
|
+
name?: string;
|
|
1955
|
+
config?: {
|
|
1956
|
+
[key: string]: unknown;
|
|
1957
|
+
};
|
|
1958
|
+
enabled?: boolean;
|
|
1959
|
+
};
|
|
1960
|
+
|
|
1961
|
+
export declare type ModelWithProvider = {
|
|
1962
|
+
providerId: string;
|
|
1963
|
+
key: string;
|
|
1964
|
+
};
|
|
1965
|
+
|
|
1966
|
+
export declare type Notebook = {
|
|
1967
|
+
id?: string;
|
|
1968
|
+
title?: string;
|
|
1969
|
+
createdAt?: string;
|
|
1970
|
+
};
|
|
1971
|
+
|
|
1972
|
+
/**
|
|
1973
|
+
* Connect NotebookLM with Google credentials
|
|
1974
|
+
*/
|
|
1975
|
+
export declare const notebooklmLogin: <ThrowOnError extends boolean = false>(options: Options<NotebooklmLoginData, ThrowOnError>) => RequestResult<NotebooklmLoginResponses, NotebooklmLoginErrors, ThrowOnError, "fields">;
|
|
1976
|
+
|
|
1977
|
+
export declare type NotebooklmLoginData = {
|
|
1978
|
+
body: {
|
|
1979
|
+
email: string;
|
|
1980
|
+
password: string;
|
|
1981
|
+
};
|
|
1982
|
+
path?: never;
|
|
1983
|
+
query?: never;
|
|
1984
|
+
url: '/notebooklm/login';
|
|
1985
|
+
};
|
|
1986
|
+
|
|
1987
|
+
export declare type NotebooklmLoginError = NotebooklmLoginErrors[keyof NotebooklmLoginErrors];
|
|
1988
|
+
|
|
1989
|
+
export declare type NotebooklmLoginErrors = {
|
|
1990
|
+
/**
|
|
1991
|
+
* Authentication required
|
|
1992
|
+
*/
|
|
1993
|
+
401: ErrorResponse;
|
|
1994
|
+
};
|
|
1995
|
+
|
|
1996
|
+
export declare type NotebooklmLoginResponse = NotebooklmLoginResponses[keyof NotebooklmLoginResponses];
|
|
1997
|
+
|
|
1998
|
+
export declare type NotebooklmLoginResponses = {
|
|
1999
|
+
/**
|
|
2000
|
+
* Login result
|
|
2001
|
+
*/
|
|
2002
|
+
200: {
|
|
2003
|
+
success?: boolean;
|
|
2004
|
+
googleEmail?: string;
|
|
2005
|
+
message?: string;
|
|
2006
|
+
};
|
|
2007
|
+
};
|
|
2008
|
+
|
|
2009
|
+
export declare type NotebookSource = {
|
|
2010
|
+
id?: string;
|
|
2011
|
+
title?: string;
|
|
2012
|
+
url?: string;
|
|
2013
|
+
};
|
|
2014
|
+
|
|
2015
|
+
export declare type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options_2<TData, ThrowOnError> & {
|
|
2016
|
+
/**
|
|
2017
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
2018
|
+
* individual options. This might be also useful if you want to implement a
|
|
2019
|
+
* custom client.
|
|
2020
|
+
*/
|
|
2021
|
+
client?: Client;
|
|
2022
|
+
/**
|
|
2023
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
2024
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
2025
|
+
*/
|
|
2026
|
+
meta?: Record<string, unknown>;
|
|
2027
|
+
};
|
|
2028
|
+
|
|
2029
|
+
export declare type Provider = {
|
|
2030
|
+
id?: string;
|
|
2031
|
+
type?: string;
|
|
2032
|
+
name?: string;
|
|
2033
|
+
config?: {
|
|
2034
|
+
[key: string]: unknown;
|
|
2035
|
+
};
|
|
2036
|
+
models?: Array<{
|
|
2037
|
+
[key: string]: unknown;
|
|
2038
|
+
}>;
|
|
2039
|
+
};
|
|
2040
|
+
|
|
2041
|
+
export declare type Quote = {
|
|
2042
|
+
id: string;
|
|
2043
|
+
documentId: string;
|
|
2044
|
+
text: string;
|
|
2045
|
+
source?: string;
|
|
2046
|
+
author?: string;
|
|
2047
|
+
url?: string;
|
|
2048
|
+
pageNumber?: number;
|
|
2049
|
+
tags?: Array<string>;
|
|
2050
|
+
createdAt?: string;
|
|
2051
|
+
};
|
|
2052
|
+
|
|
2053
|
+
/**
|
|
2054
|
+
* Refresh Google access token using stored refresh token
|
|
2055
|
+
*/
|
|
2056
|
+
export declare const refreshGoogleToken: <ThrowOnError extends boolean = false>(options?: Options<RefreshGoogleTokenData, ThrowOnError>) => RequestResult<RefreshGoogleTokenResponses, unknown, ThrowOnError, "fields">;
|
|
2057
|
+
|
|
2058
|
+
export declare type RefreshGoogleTokenData = {
|
|
2059
|
+
body?: never;
|
|
2060
|
+
path?: never;
|
|
2061
|
+
query?: never;
|
|
2062
|
+
url: '/doc/google-docs/refresh-token';
|
|
2063
|
+
};
|
|
2064
|
+
|
|
2065
|
+
export declare type RefreshGoogleTokenResponse = RefreshGoogleTokenResponses[keyof RefreshGoogleTokenResponses];
|
|
2066
|
+
|
|
2067
|
+
export declare type RefreshGoogleTokenResponses = {
|
|
2068
|
+
/**
|
|
2069
|
+
* Refresh result
|
|
2070
|
+
*/
|
|
2071
|
+
200: {
|
|
2072
|
+
success?: boolean;
|
|
2073
|
+
message?: string;
|
|
2074
|
+
expiresAt?: string;
|
|
2075
|
+
error?: string;
|
|
2076
|
+
needsReauth?: boolean;
|
|
2077
|
+
};
|
|
2078
|
+
};
|
|
2079
|
+
|
|
2080
|
+
/**
|
|
2081
|
+
* Remove a favorite
|
|
2082
|
+
*/
|
|
2083
|
+
export declare const removeFavorite: <ThrowOnError extends boolean = false>(options: Options<RemoveFavoriteData, ThrowOnError>) => RequestResult<RemoveFavoriteResponses, RemoveFavoriteErrors, ThrowOnError, "fields">;
|
|
2084
|
+
|
|
2085
|
+
export declare type RemoveFavoriteData = {
|
|
2086
|
+
body?: never;
|
|
2087
|
+
path?: never;
|
|
2088
|
+
query: {
|
|
2089
|
+
url: string;
|
|
2090
|
+
};
|
|
2091
|
+
url: '/doc/favorites';
|
|
2092
|
+
};
|
|
2093
|
+
|
|
2094
|
+
export declare type RemoveFavoriteError = RemoveFavoriteErrors[keyof RemoveFavoriteErrors];
|
|
2095
|
+
|
|
2096
|
+
export declare type RemoveFavoriteErrors = {
|
|
2097
|
+
/**
|
|
2098
|
+
* Authentication required
|
|
2099
|
+
*/
|
|
2100
|
+
401: ErrorResponse;
|
|
2101
|
+
};
|
|
2102
|
+
|
|
2103
|
+
export declare type RemoveFavoriteResponse = RemoveFavoriteResponses[keyof RemoveFavoriteResponses];
|
|
2104
|
+
|
|
2105
|
+
export declare type RemoveFavoriteResponses = {
|
|
2106
|
+
/**
|
|
2107
|
+
* Removed
|
|
2108
|
+
*/
|
|
2109
|
+
200: {
|
|
2110
|
+
message?: string;
|
|
2111
|
+
};
|
|
2112
|
+
};
|
|
2113
|
+
|
|
2114
|
+
/**
|
|
2115
|
+
* Revoke all other sessions
|
|
2116
|
+
*/
|
|
2117
|
+
export declare const revokeOtherSessions: <ThrowOnError extends boolean = false>(options?: Options<RevokeOtherSessionsData, ThrowOnError>) => RequestResult<RevokeOtherSessionsResponses, RevokeOtherSessionsErrors, ThrowOnError, "fields">;
|
|
2118
|
+
|
|
2119
|
+
export declare type RevokeOtherSessionsData = {
|
|
2120
|
+
body?: never;
|
|
2121
|
+
path?: never;
|
|
2122
|
+
query?: never;
|
|
2123
|
+
url: '/user/sessions';
|
|
2124
|
+
};
|
|
2125
|
+
|
|
2126
|
+
export declare type RevokeOtherSessionsError = RevokeOtherSessionsErrors[keyof RevokeOtherSessionsErrors];
|
|
2127
|
+
|
|
2128
|
+
export declare type RevokeOtherSessionsErrors = {
|
|
2129
|
+
/**
|
|
2130
|
+
* Authentication required
|
|
2131
|
+
*/
|
|
2132
|
+
401: ErrorResponse;
|
|
2133
|
+
};
|
|
2134
|
+
|
|
2135
|
+
export declare type RevokeOtherSessionsResponse = RevokeOtherSessionsResponses[keyof RevokeOtherSessionsResponses];
|
|
2136
|
+
|
|
2137
|
+
export declare type RevokeOtherSessionsResponses = {
|
|
2138
|
+
/**
|
|
2139
|
+
* Revoked
|
|
2140
|
+
*/
|
|
2141
|
+
200: {
|
|
2142
|
+
message?: string;
|
|
2143
|
+
};
|
|
2144
|
+
};
|
|
2145
|
+
|
|
2146
|
+
/**
|
|
2147
|
+
* Revoke a specific session
|
|
2148
|
+
*/
|
|
2149
|
+
export declare const revokeSession: <ThrowOnError extends boolean = false>(options: Options<RevokeSessionData, ThrowOnError>) => RequestResult<RevokeSessionResponses, RevokeSessionErrors, ThrowOnError, "fields">;
|
|
2150
|
+
|
|
2151
|
+
export declare type RevokeSessionData = {
|
|
2152
|
+
body?: never;
|
|
2153
|
+
path: {
|
|
2154
|
+
id: string;
|
|
2155
|
+
};
|
|
2156
|
+
query?: never;
|
|
2157
|
+
url: '/user/sessions/{id}';
|
|
2158
|
+
};
|
|
2159
|
+
|
|
2160
|
+
export declare type RevokeSessionError = RevokeSessionErrors[keyof RevokeSessionErrors];
|
|
2161
|
+
|
|
2162
|
+
export declare type RevokeSessionErrors = {
|
|
2163
|
+
/**
|
|
2164
|
+
* Authentication required
|
|
2165
|
+
*/
|
|
2166
|
+
401: ErrorResponse;
|
|
2167
|
+
};
|
|
2168
|
+
|
|
2169
|
+
export declare type RevokeSessionResponse = RevokeSessionResponses[keyof RevokeSessionResponses];
|
|
2170
|
+
|
|
2171
|
+
export declare type RevokeSessionResponses = {
|
|
2172
|
+
/**
|
|
2173
|
+
* Revoked
|
|
2174
|
+
*/
|
|
2175
|
+
200: {
|
|
2176
|
+
message?: string;
|
|
2177
|
+
};
|
|
2178
|
+
};
|
|
2179
|
+
|
|
2180
|
+
/**
|
|
2181
|
+
* Rewrite text with AI (Groq)
|
|
2182
|
+
*/
|
|
2183
|
+
export declare const rewriteText: <ThrowOnError extends boolean = false>(options: Options<RewriteTextData, ThrowOnError>) => RequestResult<RewriteTextResponses, RewriteTextErrors, ThrowOnError, "fields">;
|
|
2184
|
+
|
|
2185
|
+
export declare type RewriteTextData = {
|
|
2186
|
+
body: {
|
|
2187
|
+
text: string;
|
|
2188
|
+
prompt?: string;
|
|
2189
|
+
};
|
|
2190
|
+
path?: never;
|
|
2191
|
+
query?: never;
|
|
2192
|
+
url: '/agent/rewrite';
|
|
2193
|
+
};
|
|
2194
|
+
|
|
2195
|
+
export declare type RewriteTextError = RewriteTextErrors[keyof RewriteTextErrors];
|
|
2196
|
+
|
|
2197
|
+
export declare type RewriteTextErrors = {
|
|
2198
|
+
/**
|
|
2199
|
+
* Internal server error
|
|
2200
|
+
*/
|
|
2201
|
+
500: ErrorResponse;
|
|
2202
|
+
};
|
|
2203
|
+
|
|
2204
|
+
export declare type RewriteTextResponse = RewriteTextResponses[keyof RewriteTextResponses];
|
|
2205
|
+
|
|
2206
|
+
export declare type RewriteTextResponses = {
|
|
2207
|
+
/**
|
|
2208
|
+
* Rewritten text
|
|
2209
|
+
*/
|
|
2210
|
+
200: {
|
|
2211
|
+
rewrittenText?: string;
|
|
2212
|
+
};
|
|
2213
|
+
};
|
|
2214
|
+
|
|
2215
|
+
/**
|
|
2216
|
+
* Save a config value
|
|
2217
|
+
*/
|
|
2218
|
+
export declare const saveConfig: <ThrowOnError extends boolean = false>(options: Options<SaveConfigData, ThrowOnError>) => RequestResult<SaveConfigResponses, unknown, ThrowOnError, "fields">;
|
|
2219
|
+
|
|
2220
|
+
export declare type SaveConfigData = {
|
|
2221
|
+
body: {
|
|
2222
|
+
key: string;
|
|
2223
|
+
value: string;
|
|
2224
|
+
};
|
|
2225
|
+
path?: never;
|
|
2226
|
+
query?: never;
|
|
2227
|
+
url: '/config';
|
|
2228
|
+
};
|
|
2229
|
+
|
|
2230
|
+
export declare type SaveConfigResponse = SaveConfigResponses[keyof SaveConfigResponses];
|
|
2231
|
+
|
|
2232
|
+
export declare type SaveConfigResponses = {
|
|
2233
|
+
/**
|
|
2234
|
+
* Saved
|
|
2235
|
+
*/
|
|
2236
|
+
200: {
|
|
2237
|
+
message?: string;
|
|
2238
|
+
};
|
|
2239
|
+
};
|
|
2240
|
+
|
|
2241
|
+
/**
|
|
2242
|
+
* Save a chat message
|
|
2243
|
+
*/
|
|
2244
|
+
export declare const saveMessage: <ThrowOnError extends boolean = false>(options: Options<SaveMessageData, ThrowOnError>) => RequestResult<SaveMessageResponses, SaveMessageErrors, ThrowOnError, "fields">;
|
|
2245
|
+
|
|
2246
|
+
export declare type SaveMessageData = {
|
|
2247
|
+
body: {
|
|
2248
|
+
chatId: string;
|
|
2249
|
+
messageId: string;
|
|
2250
|
+
role: 'user' | 'assistant';
|
|
2251
|
+
content?: string;
|
|
2252
|
+
suggestions?: Array<string>;
|
|
2253
|
+
sources?: Array<{
|
|
2254
|
+
[key: string]: unknown;
|
|
2255
|
+
}>;
|
|
2256
|
+
};
|
|
2257
|
+
path?: never;
|
|
2258
|
+
query?: never;
|
|
2259
|
+
url: '/agent/messages';
|
|
2260
|
+
};
|
|
2261
|
+
|
|
2262
|
+
export declare type SaveMessageError = SaveMessageErrors[keyof SaveMessageErrors];
|
|
2263
|
+
|
|
2264
|
+
export declare type SaveMessageErrors = {
|
|
2265
|
+
/**
|
|
2266
|
+
* Authentication required
|
|
2267
|
+
*/
|
|
2268
|
+
401: ErrorResponse;
|
|
2269
|
+
};
|
|
2270
|
+
|
|
2271
|
+
export declare type SaveMessageResponse = SaveMessageResponses[keyof SaveMessageResponses];
|
|
2272
|
+
|
|
2273
|
+
export declare type SaveMessageResponses = {
|
|
2274
|
+
/**
|
|
2275
|
+
* Saved
|
|
2276
|
+
*/
|
|
2277
|
+
200: {
|
|
2278
|
+
message?: string;
|
|
2279
|
+
};
|
|
2280
|
+
};
|
|
2281
|
+
|
|
2282
|
+
/**
|
|
2283
|
+
* Scrape a URL (GET)
|
|
2284
|
+
*/
|
|
2285
|
+
export declare const scrapeGet: <ThrowOnError extends boolean = false>(options: Options<ScrapeGetData, ThrowOnError>) => RequestResult<ScrapeGetResponses, unknown, ThrowOnError, "fields">;
|
|
2286
|
+
|
|
2287
|
+
export declare type ScrapeGetData = {
|
|
2288
|
+
body?: never;
|
|
2289
|
+
path?: never;
|
|
2290
|
+
query: {
|
|
2291
|
+
url: string;
|
|
2292
|
+
blockImages?: boolean;
|
|
2293
|
+
bypassCaptcha?: boolean;
|
|
2294
|
+
timeout?: number;
|
|
2295
|
+
format?: 'html' | 'json';
|
|
2296
|
+
};
|
|
2297
|
+
url: '/scraper';
|
|
2298
|
+
};
|
|
2299
|
+
|
|
2300
|
+
export declare type ScrapeGetResponse = ScrapeGetResponses[keyof ScrapeGetResponses];
|
|
2301
|
+
|
|
2302
|
+
export declare type ScrapeGetResponses = {
|
|
2303
|
+
/**
|
|
2304
|
+
* Scraped content
|
|
2305
|
+
*/
|
|
2306
|
+
200: {
|
|
2307
|
+
[key: string]: unknown;
|
|
2308
|
+
};
|
|
2309
|
+
};
|
|
2310
|
+
|
|
2311
|
+
/**
|
|
2312
|
+
* Scrape a URL (POST)
|
|
2313
|
+
*/
|
|
2314
|
+
export declare const scrapePost: <ThrowOnError extends boolean = false>(options: Options<ScrapePostData, ThrowOnError>) => RequestResult<ScrapePostResponses, unknown, ThrowOnError, "fields">;
|
|
2315
|
+
|
|
2316
|
+
export declare type ScrapePostData = {
|
|
2317
|
+
body: {
|
|
2318
|
+
url: string;
|
|
2319
|
+
blockImages?: boolean;
|
|
2320
|
+
bypassCaptcha?: boolean;
|
|
2321
|
+
timeout?: number;
|
|
2322
|
+
format?: 'html' | 'json';
|
|
2323
|
+
};
|
|
2324
|
+
path?: never;
|
|
2325
|
+
query?: never;
|
|
2326
|
+
url: '/scraper';
|
|
2327
|
+
};
|
|
2328
|
+
|
|
2329
|
+
export declare type ScrapePostResponse = ScrapePostResponses[keyof ScrapePostResponses];
|
|
2330
|
+
|
|
2331
|
+
export declare type ScrapePostResponses = {
|
|
2332
|
+
/**
|
|
2333
|
+
* Scraped content
|
|
2334
|
+
*/
|
|
2335
|
+
200: {
|
|
2336
|
+
[key: string]: unknown;
|
|
2337
|
+
};
|
|
2338
|
+
};
|
|
2339
|
+
|
|
2340
|
+
/**
|
|
2341
|
+
* Search chats by title
|
|
2342
|
+
*/
|
|
2343
|
+
export declare const searchChats: <ThrowOnError extends boolean = false>(options: Options<SearchChatsData, ThrowOnError>) => RequestResult<SearchChatsResponses, SearchChatsErrors, ThrowOnError, "fields">;
|
|
2344
|
+
|
|
2345
|
+
export declare type SearchChatsData = {
|
|
2346
|
+
body?: never;
|
|
2347
|
+
path?: never;
|
|
2348
|
+
query: {
|
|
2349
|
+
q: string;
|
|
2350
|
+
};
|
|
2351
|
+
url: '/agent/chats/search';
|
|
2352
|
+
};
|
|
2353
|
+
|
|
2354
|
+
export declare type SearchChatsError = SearchChatsErrors[keyof SearchChatsErrors];
|
|
2355
|
+
|
|
2356
|
+
export declare type SearchChatsErrors = {
|
|
2357
|
+
/**
|
|
2358
|
+
* Authentication required
|
|
2359
|
+
*/
|
|
2360
|
+
401: ErrorResponse;
|
|
2361
|
+
};
|
|
2362
|
+
|
|
2363
|
+
export declare type SearchChatsResponse = SearchChatsResponses[keyof SearchChatsResponses];
|
|
2364
|
+
|
|
2365
|
+
export declare type SearchChatsResponses = {
|
|
2366
|
+
/**
|
|
2367
|
+
* Matching chats
|
|
2368
|
+
*/
|
|
2369
|
+
200: {
|
|
2370
|
+
chats?: Array<Chat>;
|
|
2371
|
+
};
|
|
2372
|
+
};
|
|
2373
|
+
|
|
2374
|
+
export declare type SearchResult = {
|
|
2375
|
+
title?: string;
|
|
2376
|
+
url?: string;
|
|
2377
|
+
content?: string;
|
|
2378
|
+
img_src?: string;
|
|
2379
|
+
engine?: string;
|
|
2380
|
+
parsed_url?: Array<string>;
|
|
2381
|
+
};
|
|
2382
|
+
|
|
2383
|
+
declare type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
2384
|
+
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
2385
|
+
};
|
|
2386
|
+
|
|
2387
|
+
/**
|
|
2388
|
+
* Share a chat
|
|
2389
|
+
*/
|
|
2390
|
+
export declare const shareChat: <ThrowOnError extends boolean = false>(options: Options<ShareChatData, ThrowOnError>) => RequestResult<ShareChatResponses, ShareChatErrors, ThrowOnError, "fields">;
|
|
2391
|
+
|
|
2392
|
+
export declare type ShareChatData = {
|
|
2393
|
+
body: {
|
|
2394
|
+
chatId: string;
|
|
2395
|
+
};
|
|
2396
|
+
path?: never;
|
|
2397
|
+
query?: never;
|
|
2398
|
+
url: '/agent/chats/share';
|
|
2399
|
+
};
|
|
2400
|
+
|
|
2401
|
+
export declare type ShareChatError = ShareChatErrors[keyof ShareChatErrors];
|
|
2402
|
+
|
|
2403
|
+
export declare type ShareChatErrors = {
|
|
2404
|
+
/**
|
|
2405
|
+
* Authentication required
|
|
2406
|
+
*/
|
|
2407
|
+
401: ErrorResponse;
|
|
2408
|
+
};
|
|
2409
|
+
|
|
2410
|
+
export declare type ShareChatResponse = ShareChatResponses[keyof ShareChatResponses];
|
|
2411
|
+
|
|
2412
|
+
export declare type ShareChatResponses = {
|
|
2413
|
+
/**
|
|
2414
|
+
* Share URL
|
|
2415
|
+
*/
|
|
2416
|
+
200: {
|
|
2417
|
+
success?: boolean;
|
|
2418
|
+
data?: {
|
|
2419
|
+
chatId?: string;
|
|
2420
|
+
shareUrl?: string;
|
|
2421
|
+
};
|
|
2422
|
+
};
|
|
2423
|
+
};
|
|
2424
|
+
|
|
2425
|
+
/**
|
|
2426
|
+
* Create or retrieve a share token for a document
|
|
2427
|
+
*/
|
|
2428
|
+
export declare const shareDocument: <ThrowOnError extends boolean = false>(options: Options<ShareDocumentData, ThrowOnError>) => RequestResult<ShareDocumentResponses, unknown, ThrowOnError, "fields">;
|
|
2429
|
+
|
|
2430
|
+
export declare type ShareDocumentData = {
|
|
2431
|
+
body: {
|
|
2432
|
+
documentId: string;
|
|
2433
|
+
};
|
|
2434
|
+
path?: never;
|
|
2435
|
+
query?: never;
|
|
2436
|
+
url: '/doc/share';
|
|
2437
|
+
};
|
|
2438
|
+
|
|
2439
|
+
export declare type ShareDocumentResponse = ShareDocumentResponses[keyof ShareDocumentResponses];
|
|
2440
|
+
|
|
2441
|
+
export declare type ShareDocumentResponses = {
|
|
2442
|
+
/**
|
|
2443
|
+
* Share info
|
|
2444
|
+
*/
|
|
2445
|
+
200: {
|
|
2446
|
+
success?: boolean;
|
|
2447
|
+
data?: {
|
|
2448
|
+
shareId?: string;
|
|
2449
|
+
shareUrl?: string;
|
|
2450
|
+
};
|
|
2451
|
+
};
|
|
2452
|
+
};
|
|
2453
|
+
|
|
2454
|
+
/**
|
|
2455
|
+
* Share a Google Doc
|
|
2456
|
+
*/
|
|
2457
|
+
export declare const shareGoogleDoc: <ThrowOnError extends boolean = false>(options: Options<ShareGoogleDocData, ThrowOnError>) => RequestResult<ShareGoogleDocResponses, unknown, ThrowOnError, "fields">;
|
|
2458
|
+
|
|
2459
|
+
export declare type ShareGoogleDocData = {
|
|
2460
|
+
body: {
|
|
2461
|
+
googleDocId: string;
|
|
2462
|
+
accessToken: string;
|
|
2463
|
+
refreshToken?: string;
|
|
2464
|
+
emailAddress?: string;
|
|
2465
|
+
role?: 'reader' | 'commenter' | 'writer';
|
|
2466
|
+
publicLink?: boolean;
|
|
2467
|
+
};
|
|
2468
|
+
path?: never;
|
|
2469
|
+
query?: never;
|
|
2470
|
+
url: '/doc/google-docs/share';
|
|
2471
|
+
};
|
|
2472
|
+
|
|
2473
|
+
export declare type ShareGoogleDocResponse = ShareGoogleDocResponses[keyof ShareGoogleDocResponses];
|
|
2474
|
+
|
|
2475
|
+
export declare type ShareGoogleDocResponses = {
|
|
2476
|
+
/**
|
|
2477
|
+
* Share result
|
|
2478
|
+
*/
|
|
2479
|
+
200: {
|
|
2480
|
+
[key: string]: unknown;
|
|
2481
|
+
};
|
|
2482
|
+
};
|
|
2483
|
+
|
|
2484
|
+
export declare type StorageInfo = {
|
|
2485
|
+
used?: number;
|
|
2486
|
+
quota?: number;
|
|
2487
|
+
remaining?: number;
|
|
2488
|
+
allowed?: boolean;
|
|
2489
|
+
usedMB?: number;
|
|
2490
|
+
quotaMB?: number;
|
|
2491
|
+
remainingMB?: number;
|
|
2492
|
+
percentage?: number;
|
|
2493
|
+
};
|
|
2494
|
+
|
|
2495
|
+
/**
|
|
2496
|
+
* Test which models are available for a provider
|
|
2497
|
+
*/
|
|
2498
|
+
export declare const testModels: <ThrowOnError extends boolean = false>(options: Options<TestModelsData, ThrowOnError>) => RequestResult<TestModelsResponses, unknown, ThrowOnError, "fields">;
|
|
2499
|
+
|
|
2500
|
+
export declare type TestModelsData = {
|
|
2501
|
+
body: {
|
|
2502
|
+
providerType: string;
|
|
2503
|
+
apiKey: string;
|
|
2504
|
+
onlyFree?: boolean;
|
|
2505
|
+
};
|
|
2506
|
+
path?: never;
|
|
2507
|
+
query?: never;
|
|
2508
|
+
url: '/agent/test-models';
|
|
2509
|
+
};
|
|
2510
|
+
|
|
2511
|
+
export declare type TestModelsResponse = TestModelsResponses[keyof TestModelsResponses];
|
|
2512
|
+
|
|
2513
|
+
export declare type TestModelsResponses = {
|
|
2514
|
+
/**
|
|
2515
|
+
* Test results
|
|
2516
|
+
*/
|
|
2517
|
+
200: {
|
|
2518
|
+
[key: string]: unknown;
|
|
2519
|
+
};
|
|
2520
|
+
};
|
|
2521
|
+
|
|
2522
|
+
/**
|
|
2523
|
+
* Test whether search engines are working
|
|
2524
|
+
*/
|
|
2525
|
+
export declare const testSearchEngines: <ThrowOnError extends boolean = false>(options: Options<TestSearchEnginesData, ThrowOnError>) => RequestResult<TestSearchEnginesResponses, unknown, ThrowOnError, "fields">;
|
|
2526
|
+
|
|
2527
|
+
export declare type TestSearchEnginesData = {
|
|
2528
|
+
body: {
|
|
2529
|
+
engines: Array<string>;
|
|
2530
|
+
};
|
|
2531
|
+
path?: never;
|
|
2532
|
+
query?: never;
|
|
2533
|
+
url: '/search/engines/test';
|
|
2534
|
+
};
|
|
2535
|
+
|
|
2536
|
+
export declare type TestSearchEnginesResponse = TestSearchEnginesResponses[keyof TestSearchEnginesResponses];
|
|
2537
|
+
|
|
2538
|
+
export declare type TestSearchEnginesResponses = {
|
|
2539
|
+
/**
|
|
2540
|
+
* Test results per engine
|
|
2541
|
+
*/
|
|
2542
|
+
200: {
|
|
2543
|
+
results?: {
|
|
2544
|
+
[key: string]: {
|
|
2545
|
+
working?: boolean;
|
|
2546
|
+
error?: string;
|
|
2547
|
+
};
|
|
2548
|
+
};
|
|
2549
|
+
};
|
|
2550
|
+
};
|
|
2551
|
+
|
|
2552
|
+
/**
|
|
2553
|
+
* Text-to-speech via Kokoro or Deepgram (10/day guest limit)
|
|
2554
|
+
*/
|
|
2555
|
+
export declare const textToSpeech: <ThrowOnError extends boolean = false>(options: Options<TextToSpeechData, ThrowOnError>) => RequestResult<TextToSpeechResponses, TextToSpeechErrors, ThrowOnError, "fields">;
|
|
2556
|
+
|
|
2557
|
+
export declare type TextToSpeechData = {
|
|
2558
|
+
body: {
|
|
2559
|
+
text: string;
|
|
2560
|
+
voice?: string;
|
|
2561
|
+
provider?: 'kokoro' | 'deepgram';
|
|
2562
|
+
};
|
|
2563
|
+
path?: never;
|
|
2564
|
+
query?: never;
|
|
2565
|
+
url: '/agent/voice';
|
|
2566
|
+
};
|
|
2567
|
+
|
|
2568
|
+
export declare type TextToSpeechError = TextToSpeechErrors[keyof TextToSpeechErrors];
|
|
2569
|
+
|
|
2570
|
+
export declare type TextToSpeechErrors = {
|
|
2571
|
+
/**
|
|
2572
|
+
* Rate limit exceeded
|
|
2573
|
+
*/
|
|
2574
|
+
429: {
|
|
2575
|
+
error?: string;
|
|
2576
|
+
rateLimited?: boolean;
|
|
2577
|
+
};
|
|
2578
|
+
};
|
|
2579
|
+
|
|
2580
|
+
export declare type TextToSpeechResponse = TextToSpeechResponses[keyof TextToSpeechResponses];
|
|
2581
|
+
|
|
2582
|
+
export declare type TextToSpeechResponses = {
|
|
2583
|
+
/**
|
|
2584
|
+
* Audio binary
|
|
2585
|
+
*/
|
|
2586
|
+
200: Blob | File;
|
|
2587
|
+
};
|
|
2588
|
+
|
|
2589
|
+
/**
|
|
2590
|
+
* Enable or disable an MCP server
|
|
2591
|
+
*/
|
|
2592
|
+
export declare const toggleMcpServer: <ThrowOnError extends boolean = false>(options: Options<ToggleMcpServerData, ThrowOnError>) => RequestResult<ToggleMcpServerResponses, unknown, ThrowOnError, "fields">;
|
|
2593
|
+
|
|
2594
|
+
export declare type ToggleMcpServerData = {
|
|
2595
|
+
body: {
|
|
2596
|
+
enabled: boolean;
|
|
2597
|
+
};
|
|
2598
|
+
path: {
|
|
2599
|
+
id: string;
|
|
2600
|
+
};
|
|
2601
|
+
query?: never;
|
|
2602
|
+
url: '/agent/mcpservers/{id}/toggle';
|
|
2603
|
+
};
|
|
2604
|
+
|
|
2605
|
+
export declare type ToggleMcpServerResponse = ToggleMcpServerResponses[keyof ToggleMcpServerResponses];
|
|
2606
|
+
|
|
2607
|
+
export declare type ToggleMcpServerResponses = {
|
|
2608
|
+
/**
|
|
2609
|
+
* Updated server
|
|
2610
|
+
*/
|
|
2611
|
+
200: {
|
|
2612
|
+
server?: McpServer;
|
|
2613
|
+
};
|
|
2614
|
+
};
|
|
2615
|
+
|
|
2616
|
+
/**
|
|
2617
|
+
* Transcribe audio via Whisper (Cloudflare Workers AI)
|
|
2618
|
+
*/
|
|
2619
|
+
export declare const transcribeAudio: <ThrowOnError extends boolean = false>(options: Options<TranscribeAudioData, ThrowOnError>) => RequestResult<TranscribeAudioResponses, unknown, ThrowOnError, "fields">;
|
|
2620
|
+
|
|
2621
|
+
export declare type TranscribeAudioData = {
|
|
2622
|
+
body: {
|
|
2623
|
+
file: Blob | File;
|
|
2624
|
+
model?: 'small' | 'fast' | 'medium' | 'turbo' | 'large';
|
|
2625
|
+
};
|
|
2626
|
+
path?: never;
|
|
2627
|
+
query?: never;
|
|
2628
|
+
url: '/agent/transcript';
|
|
2629
|
+
};
|
|
2630
|
+
|
|
2631
|
+
export declare type TranscribeAudioResponse = TranscribeAudioResponses[keyof TranscribeAudioResponses];
|
|
2632
|
+
|
|
2633
|
+
export declare type TranscribeAudioResponses = {
|
|
2634
|
+
/**
|
|
2635
|
+
* Transcript
|
|
2636
|
+
*/
|
|
2637
|
+
200: {
|
|
2638
|
+
text?: string;
|
|
2639
|
+
model?: string;
|
|
2640
|
+
};
|
|
2641
|
+
};
|
|
2642
|
+
|
|
2643
|
+
/**
|
|
2644
|
+
* Store article Q&A or follow-up questions
|
|
2645
|
+
*/
|
|
2646
|
+
export declare const updateArticle: <ThrowOnError extends boolean = false>(options: Options<UpdateArticleData, ThrowOnError>) => RequestResult<UpdateArticleResponses, UpdateArticleErrors, ThrowOnError, "fields">;
|
|
2647
|
+
|
|
2648
|
+
export declare type UpdateArticleData = {
|
|
2649
|
+
body: {
|
|
2650
|
+
url: string;
|
|
2651
|
+
question?: string;
|
|
2652
|
+
answer?: string;
|
|
2653
|
+
followUpQuestions?: Array<string>;
|
|
2654
|
+
};
|
|
2655
|
+
path?: never;
|
|
2656
|
+
query?: never;
|
|
2657
|
+
url: '/doc/article';
|
|
2658
|
+
};
|
|
2659
|
+
|
|
2660
|
+
export declare type UpdateArticleError = UpdateArticleErrors[keyof UpdateArticleErrors];
|
|
2661
|
+
|
|
2662
|
+
export declare type UpdateArticleErrors = {
|
|
2663
|
+
/**
|
|
2664
|
+
* Bad request
|
|
2665
|
+
*/
|
|
2666
|
+
400: ErrorResponse;
|
|
2667
|
+
};
|
|
2668
|
+
|
|
2669
|
+
export declare type UpdateArticleResponse = UpdateArticleResponses[keyof UpdateArticleResponses];
|
|
2670
|
+
|
|
2671
|
+
export declare type UpdateArticleResponses = {
|
|
2672
|
+
/**
|
|
2673
|
+
* Stored
|
|
2674
|
+
*/
|
|
2675
|
+
200: {
|
|
2676
|
+
success?: boolean;
|
|
2677
|
+
};
|
|
2678
|
+
};
|
|
2679
|
+
|
|
2680
|
+
/**
|
|
2681
|
+
* Update a document
|
|
2682
|
+
*/
|
|
2683
|
+
export declare const updateDocument: <ThrowOnError extends boolean = false>(options: Options<UpdateDocumentData, ThrowOnError>) => RequestResult<UpdateDocumentResponses, UpdateDocumentErrors, ThrowOnError, "fields">;
|
|
2684
|
+
|
|
2685
|
+
export declare type UpdateDocumentData = {
|
|
2686
|
+
body: {
|
|
2687
|
+
title?: string;
|
|
2688
|
+
content?: string;
|
|
2689
|
+
parentId?: number;
|
|
2690
|
+
isExpanded?: boolean;
|
|
2691
|
+
metadata?: {
|
|
2692
|
+
[key: string]: unknown;
|
|
2693
|
+
};
|
|
2694
|
+
name?: string;
|
|
2695
|
+
};
|
|
2696
|
+
path: {
|
|
2697
|
+
id: number;
|
|
2698
|
+
};
|
|
2699
|
+
query?: never;
|
|
2700
|
+
url: '/doc/documents/{id}';
|
|
2701
|
+
};
|
|
2702
|
+
|
|
2703
|
+
export declare type UpdateDocumentError = UpdateDocumentErrors[keyof UpdateDocumentErrors];
|
|
2704
|
+
|
|
2705
|
+
export declare type UpdateDocumentErrors = {
|
|
2706
|
+
/**
|
|
2707
|
+
* Not found
|
|
2708
|
+
*/
|
|
2709
|
+
404: ErrorResponse;
|
|
2710
|
+
};
|
|
2711
|
+
|
|
2712
|
+
export declare type UpdateDocumentResponse = UpdateDocumentResponses[keyof UpdateDocumentResponses];
|
|
2713
|
+
|
|
2714
|
+
export declare type UpdateDocumentResponses = {
|
|
2715
|
+
/**
|
|
2716
|
+
* Updated document
|
|
2717
|
+
*/
|
|
2718
|
+
200: Document_2;
|
|
2719
|
+
};
|
|
2720
|
+
|
|
2721
|
+
/**
|
|
2722
|
+
* Update enabled search engines
|
|
2723
|
+
*/
|
|
2724
|
+
export declare const updateEngineStatus: <ThrowOnError extends boolean = false>(options: Options<UpdateEngineStatusData, ThrowOnError>) => RequestResult<UpdateEngineStatusResponses, unknown, ThrowOnError, "fields">;
|
|
2725
|
+
|
|
2726
|
+
export declare type UpdateEngineStatusData = {
|
|
2727
|
+
body: {
|
|
2728
|
+
enabledEngines: Array<string>;
|
|
2729
|
+
};
|
|
2730
|
+
path?: never;
|
|
2731
|
+
query?: never;
|
|
2732
|
+
url: '/search/engines/status';
|
|
2733
|
+
};
|
|
2734
|
+
|
|
2735
|
+
export declare type UpdateEngineStatusResponse = UpdateEngineStatusResponses[keyof UpdateEngineStatusResponses];
|
|
2736
|
+
|
|
2737
|
+
export declare type UpdateEngineStatusResponses = {
|
|
2738
|
+
/**
|
|
2739
|
+
* Updated
|
|
2740
|
+
*/
|
|
2741
|
+
200: {
|
|
2742
|
+
message?: string;
|
|
2743
|
+
};
|
|
2744
|
+
};
|
|
2745
|
+
|
|
2746
|
+
/**
|
|
2747
|
+
* Update an MCP server
|
|
2748
|
+
*/
|
|
2749
|
+
export declare const updateMcpServer: <ThrowOnError extends boolean = false>(options: Options<UpdateMcpServerData, ThrowOnError>) => RequestResult<UpdateMcpServerResponses, unknown, ThrowOnError, "fields">;
|
|
2750
|
+
|
|
2751
|
+
export declare type UpdateMcpServerData = {
|
|
2752
|
+
body: {
|
|
2753
|
+
name?: string;
|
|
2754
|
+
config?: {
|
|
2755
|
+
[key: string]: unknown;
|
|
2756
|
+
};
|
|
2757
|
+
};
|
|
2758
|
+
path: {
|
|
2759
|
+
id: string;
|
|
2760
|
+
};
|
|
2761
|
+
query?: never;
|
|
2762
|
+
url: '/agent/mcpservers/{id}';
|
|
2763
|
+
};
|
|
2764
|
+
|
|
2765
|
+
export declare type UpdateMcpServerResponse = UpdateMcpServerResponses[keyof UpdateMcpServerResponses];
|
|
2766
|
+
|
|
2767
|
+
export declare type UpdateMcpServerResponses = {
|
|
2768
|
+
/**
|
|
2769
|
+
* Updated server
|
|
2770
|
+
*/
|
|
2771
|
+
200: {
|
|
2772
|
+
server?: McpServer;
|
|
2773
|
+
};
|
|
2774
|
+
};
|
|
2775
|
+
|
|
2776
|
+
/**
|
|
2777
|
+
* Update a provider
|
|
2778
|
+
*/
|
|
2779
|
+
export declare const updateProvider: <ThrowOnError extends boolean = false>(options: Options<UpdateProviderData, ThrowOnError>) => RequestResult<UpdateProviderResponses, unknown, ThrowOnError, "fields">;
|
|
2780
|
+
|
|
2781
|
+
export declare type UpdateProviderData = {
|
|
2782
|
+
body: {
|
|
2783
|
+
config?: {
|
|
2784
|
+
[key: string]: unknown;
|
|
2785
|
+
};
|
|
2786
|
+
};
|
|
2787
|
+
path: {
|
|
2788
|
+
id: string;
|
|
2789
|
+
};
|
|
2790
|
+
query?: never;
|
|
2791
|
+
url: '/agent/providers/{id}';
|
|
2792
|
+
};
|
|
2793
|
+
|
|
2794
|
+
export declare type UpdateProviderResponse = UpdateProviderResponses[keyof UpdateProviderResponses];
|
|
2795
|
+
|
|
2796
|
+
export declare type UpdateProviderResponses = {
|
|
2797
|
+
/**
|
|
2798
|
+
* Updated provider
|
|
2799
|
+
*/
|
|
2800
|
+
200: {
|
|
2801
|
+
provider?: Provider;
|
|
2802
|
+
};
|
|
2803
|
+
};
|
|
2804
|
+
|
|
2805
|
+
/**
|
|
2806
|
+
* Update a quote
|
|
2807
|
+
*/
|
|
2808
|
+
export declare const updateQuote: <ThrowOnError extends boolean = false>(options: Options<UpdateQuoteData, ThrowOnError>) => RequestResult<UpdateQuoteResponses, unknown, ThrowOnError, "fields">;
|
|
2809
|
+
|
|
2810
|
+
export declare type UpdateQuoteData = {
|
|
2811
|
+
body: {
|
|
2812
|
+
text: string;
|
|
2813
|
+
source?: string;
|
|
2814
|
+
author?: string;
|
|
2815
|
+
url?: string;
|
|
2816
|
+
pageNumber?: number;
|
|
2817
|
+
tags?: Array<string>;
|
|
2818
|
+
};
|
|
2819
|
+
path: {
|
|
2820
|
+
id: string;
|
|
2821
|
+
};
|
|
2822
|
+
query?: never;
|
|
2823
|
+
url: '/doc/quotes/{id}';
|
|
2824
|
+
};
|
|
2825
|
+
|
|
2826
|
+
export declare type UpdateQuoteResponse = UpdateQuoteResponses[keyof UpdateQuoteResponses];
|
|
2827
|
+
|
|
2828
|
+
export declare type UpdateQuoteResponses = {
|
|
2829
|
+
/**
|
|
2830
|
+
* Updated
|
|
2831
|
+
*/
|
|
2832
|
+
200: {
|
|
2833
|
+
success?: boolean;
|
|
2834
|
+
data?: Quote;
|
|
2835
|
+
};
|
|
2836
|
+
};
|
|
2837
|
+
|
|
2838
|
+
/**
|
|
2839
|
+
* Update user profile
|
|
2840
|
+
*/
|
|
2841
|
+
export declare const updateUser: <ThrowOnError extends boolean = false>(options: Options<UpdateUserData, ThrowOnError>) => RequestResult<UpdateUserResponses, UpdateUserErrors, ThrowOnError, "fields">;
|
|
2842
|
+
|
|
2843
|
+
export declare type UpdateUserData = {
|
|
2844
|
+
body: {
|
|
2845
|
+
name?: string;
|
|
2846
|
+
email?: string;
|
|
2847
|
+
image?: string;
|
|
2848
|
+
regenerateApiKey?: boolean;
|
|
2849
|
+
};
|
|
2850
|
+
path?: never;
|
|
2851
|
+
query?: never;
|
|
2852
|
+
url: '/user';
|
|
2853
|
+
};
|
|
2854
|
+
|
|
2855
|
+
export declare type UpdateUserError = UpdateUserErrors[keyof UpdateUserErrors];
|
|
2856
|
+
|
|
2857
|
+
export declare type UpdateUserErrors = {
|
|
2858
|
+
/**
|
|
2859
|
+
* Authentication required
|
|
2860
|
+
*/
|
|
2861
|
+
401: ErrorResponse;
|
|
2862
|
+
};
|
|
2863
|
+
|
|
2864
|
+
export declare type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
|
|
2865
|
+
|
|
2866
|
+
export declare type UpdateUserResponses = {
|
|
2867
|
+
/**
|
|
2868
|
+
* Updated
|
|
2869
|
+
*/
|
|
2870
|
+
200: {
|
|
2871
|
+
message?: string;
|
|
2872
|
+
};
|
|
2873
|
+
};
|
|
2874
|
+
|
|
2875
|
+
export declare type UploadedFile = {
|
|
2876
|
+
fileName?: string;
|
|
2877
|
+
fileExtension?: string;
|
|
2878
|
+
fileId?: string;
|
|
2879
|
+
sizeBytes?: number;
|
|
2880
|
+
};
|
|
2881
|
+
|
|
2882
|
+
/**
|
|
2883
|
+
* Upload files to Cloudflare R2 (PDF, DOCX, TXT, HTML)
|
|
2884
|
+
*/
|
|
2885
|
+
export declare const uploadFiles: <ThrowOnError extends boolean = false>(options: Options<UploadFilesData, ThrowOnError>) => RequestResult<UploadFilesResponses, unknown, ThrowOnError, "fields">;
|
|
2886
|
+
|
|
2887
|
+
export declare type UploadFilesData = {
|
|
2888
|
+
body: {
|
|
2889
|
+
files: Array<Blob | File>;
|
|
2890
|
+
};
|
|
2891
|
+
path?: never;
|
|
2892
|
+
query?: never;
|
|
2893
|
+
url: '/doc/uploads';
|
|
2894
|
+
};
|
|
2895
|
+
|
|
2896
|
+
export declare type UploadFilesResponse = UploadFilesResponses[keyof UploadFilesResponses];
|
|
2897
|
+
|
|
2898
|
+
export declare type UploadFilesResponses = {
|
|
2899
|
+
/**
|
|
2900
|
+
* Uploaded files
|
|
2901
|
+
*/
|
|
2902
|
+
200: {
|
|
2903
|
+
files?: Array<UploadedFile>;
|
|
2904
|
+
};
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
export declare type UserProfile = {
|
|
2908
|
+
id?: string;
|
|
2909
|
+
name?: string;
|
|
2910
|
+
email?: string;
|
|
2911
|
+
image?: string;
|
|
2912
|
+
apiKey?: string;
|
|
2913
|
+
createdAt?: string;
|
|
2914
|
+
};
|
|
2915
|
+
|
|
2916
|
+
export declare type UserSession = {
|
|
2917
|
+
id?: string;
|
|
2918
|
+
token?: string;
|
|
2919
|
+
ipAddress?: string;
|
|
2920
|
+
userAgent?: string;
|
|
2921
|
+
createdAt?: string;
|
|
2922
|
+
expiresAt?: string;
|
|
2923
|
+
isCurrent?: boolean;
|
|
2924
|
+
};
|
|
2925
|
+
|
|
2926
|
+
export { }
|