qwksearch-api-client 1.0.232 → 1.0.233
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 +4 -4
- package/dist/api-client.js +1 -1
- package/dist/api-client.umd.cjs +1 -1
- package/dist/index.d.ts +2543 -197
- package/package.json +2 -2
- package/qwksearch-openapi.json +7654 -1619
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,56 @@
|
|
|
1
1
|
import { Client } from './client';
|
|
2
|
+
import { ClientMeta } from './client';
|
|
2
3
|
import { Options as Options_2 } from './client';
|
|
3
4
|
import { RequestResult } from './client';
|
|
5
|
+
import { ServerSentEventsResult } from './client';
|
|
4
6
|
import { TDataShape } from './client';
|
|
5
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Accept a playlist invite
|
|
10
|
+
*/
|
|
11
|
+
export declare const acceptPlaylistInvite: <ThrowOnError extends boolean = false>(options: Options<AcceptPlaylistInviteData, ThrowOnError>) => RequestResult<AcceptPlaylistInviteResponses, AcceptPlaylistInviteErrors, ThrowOnError>;
|
|
12
|
+
|
|
13
|
+
export declare type AcceptPlaylistInviteData = {
|
|
14
|
+
body: {
|
|
15
|
+
token: string;
|
|
16
|
+
};
|
|
17
|
+
path?: never;
|
|
18
|
+
query?: never;
|
|
19
|
+
url: '/learn/playlists/accept-invite';
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export declare type AcceptPlaylistInviteError = AcceptPlaylistInviteErrors[keyof AcceptPlaylistInviteErrors];
|
|
23
|
+
|
|
24
|
+
export declare type AcceptPlaylistInviteErrors = {
|
|
25
|
+
/**
|
|
26
|
+
* Authentication required
|
|
27
|
+
*/
|
|
28
|
+
401: ErrorResponse;
|
|
29
|
+
/**
|
|
30
|
+
* Signed in, but not allowed to do this
|
|
31
|
+
*/
|
|
32
|
+
403: ErrorResponse;
|
|
33
|
+
/**
|
|
34
|
+
* Not found
|
|
35
|
+
*/
|
|
36
|
+
404: ErrorResponse;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export declare type AcceptPlaylistInviteResponse = AcceptPlaylistInviteResponses[keyof AcceptPlaylistInviteResponses];
|
|
40
|
+
|
|
41
|
+
export declare type AcceptPlaylistInviteResponses = {
|
|
42
|
+
/**
|
|
43
|
+
* Playlist
|
|
44
|
+
*/
|
|
45
|
+
200: {
|
|
46
|
+
playlist: Playlist;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
|
|
6
50
|
/**
|
|
7
51
|
* Add a favorite
|
|
8
52
|
*/
|
|
9
|
-
export declare const addFavorite: <ThrowOnError extends boolean = false>(options: Options<AddFavoriteData, ThrowOnError>) => RequestResult<AddFavoriteResponses, AddFavoriteErrors, ThrowOnError
|
|
53
|
+
export declare const addFavorite: <ThrowOnError extends boolean = false>(options: Options<AddFavoriteData, ThrowOnError>) => RequestResult<AddFavoriteResponses, AddFavoriteErrors, ThrowOnError>;
|
|
10
54
|
|
|
11
55
|
export declare type AddFavoriteData = {
|
|
12
56
|
body: {
|
|
@@ -56,7 +100,7 @@ export declare type AddFavoriteResponses = {
|
|
|
56
100
|
/**
|
|
57
101
|
* Add an MCP server
|
|
58
102
|
*/
|
|
59
|
-
export declare const addMcpServer: <ThrowOnError extends boolean = false>(options: Options<AddMcpServerData, ThrowOnError>) => RequestResult<AddMcpServerResponses, unknown, ThrowOnError
|
|
103
|
+
export declare const addMcpServer: <ThrowOnError extends boolean = false>(options: Options<AddMcpServerData, ThrowOnError>) => RequestResult<AddMcpServerResponses, unknown, ThrowOnError>;
|
|
60
104
|
|
|
61
105
|
export declare type AddMcpServerData = {
|
|
62
106
|
body: {
|
|
@@ -85,7 +129,7 @@ export declare type AddMcpServerResponses = {
|
|
|
85
129
|
/**
|
|
86
130
|
* Add a source to a notebook
|
|
87
131
|
*/
|
|
88
|
-
export declare const addNotebookSource: <ThrowOnError extends boolean = false>(options: Options<AddNotebookSourceData, ThrowOnError>) => RequestResult<AddNotebookSourceResponses, AddNotebookSourceErrors, ThrowOnError
|
|
132
|
+
export declare const addNotebookSource: <ThrowOnError extends boolean = false>(options: Options<AddNotebookSourceData, ThrowOnError>) => RequestResult<AddNotebookSourceResponses, AddNotebookSourceErrors, ThrowOnError>;
|
|
89
133
|
|
|
90
134
|
export declare type AddNotebookSourceData = {
|
|
91
135
|
body: {
|
|
@@ -123,7 +167,7 @@ export declare type AddNotebookSourceResponses = {
|
|
|
123
167
|
/**
|
|
124
168
|
* Add a provider
|
|
125
169
|
*/
|
|
126
|
-
export declare const addProvider: <ThrowOnError extends boolean = false>(options: Options<AddProviderData, ThrowOnError>) => RequestResult<AddProviderResponses, unknown, ThrowOnError
|
|
170
|
+
export declare const addProvider: <ThrowOnError extends boolean = false>(options: Options<AddProviderData, ThrowOnError>) => RequestResult<AddProviderResponses, unknown, ThrowOnError>;
|
|
127
171
|
|
|
128
172
|
export declare type AddProviderData = {
|
|
129
173
|
body: {
|
|
@@ -140,7 +184,7 @@ export declare type AddProviderData = {
|
|
|
140
184
|
/**
|
|
141
185
|
* Add a model to a provider
|
|
142
186
|
*/
|
|
143
|
-
export declare const addProviderModel: <ThrowOnError extends boolean = false>(options: Options<AddProviderModelData, ThrowOnError>) => RequestResult<AddProviderModelResponses, unknown, ThrowOnError
|
|
187
|
+
export declare const addProviderModel: <ThrowOnError extends boolean = false>(options: Options<AddProviderModelData, ThrowOnError>) => RequestResult<AddProviderModelResponses, unknown, ThrowOnError>;
|
|
144
188
|
|
|
145
189
|
export declare type AddProviderModelData = {
|
|
146
190
|
body: {
|
|
@@ -161,9 +205,7 @@ export declare type AddProviderModelResponses = {
|
|
|
161
205
|
/**
|
|
162
206
|
* Model added
|
|
163
207
|
*/
|
|
164
|
-
200:
|
|
165
|
-
message?: string;
|
|
166
|
-
};
|
|
208
|
+
200: MessageResponse;
|
|
167
209
|
};
|
|
168
210
|
|
|
169
211
|
export declare type AddProviderResponse = AddProviderResponses[keyof AddProviderResponses];
|
|
@@ -180,7 +222,7 @@ export declare type AddProviderResponses = {
|
|
|
180
222
|
/**
|
|
181
223
|
* Streaming research chat
|
|
182
224
|
*/
|
|
183
|
-
export declare const agentChat: <ThrowOnError extends boolean = false>(options: Options<AgentChatData, ThrowOnError>) => Promise<
|
|
225
|
+
export declare const agentChat: <ThrowOnError extends boolean = false>(options: Options<AgentChatData, ThrowOnError, AgentChatResponse>) => Promise<ServerSentEventsResult<AgentChatResponses>>;
|
|
184
226
|
|
|
185
227
|
export declare type AgentChatData = {
|
|
186
228
|
body: {
|
|
@@ -234,7 +276,7 @@ export declare type AgentChatResponses = {
|
|
|
234
276
|
/**
|
|
235
277
|
* Meta-search via SearXNG
|
|
236
278
|
*/
|
|
237
|
-
export declare const agentSearch: <ThrowOnError extends boolean = false>(options: Options<AgentSearchData, ThrowOnError>) => RequestResult<AgentSearchResponses, AgentSearchErrors, ThrowOnError
|
|
279
|
+
export declare const agentSearch: <ThrowOnError extends boolean = false>(options: Options<AgentSearchData, ThrowOnError>) => RequestResult<AgentSearchResponses, AgentSearchErrors, ThrowOnError>;
|
|
238
280
|
|
|
239
281
|
export declare type AgentSearchData = {
|
|
240
282
|
body?: never;
|
|
@@ -273,6 +315,39 @@ export declare type AgentSearchResponses = {
|
|
|
273
315
|
};
|
|
274
316
|
};
|
|
275
317
|
|
|
318
|
+
/**
|
|
319
|
+
* Approve or deny a partner's sign-in request
|
|
320
|
+
*
|
|
321
|
+
* The consent form's submit, same-origin only. Approving issues a two-minute, PKCE-bound code.
|
|
322
|
+
*/
|
|
323
|
+
export declare const approveConnectRequest: <ThrowOnError extends boolean = false>(options: Options<ApproveConnectRequestData, ThrowOnError>) => RequestResult<unknown, ApproveConnectRequestErrors, ThrowOnError>;
|
|
324
|
+
|
|
325
|
+
export declare type ApproveConnectRequestData = {
|
|
326
|
+
body: {
|
|
327
|
+
redirect_uri: string;
|
|
328
|
+
state?: string;
|
|
329
|
+
code_challenge: string;
|
|
330
|
+
code_challenge_method?: 'S256';
|
|
331
|
+
decision: 'approve' | 'deny';
|
|
332
|
+
};
|
|
333
|
+
path?: never;
|
|
334
|
+
query?: never;
|
|
335
|
+
url: '/connect/authorize';
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
export declare type ApproveConnectRequestError = ApproveConnectRequestErrors[keyof ApproveConnectRequestErrors];
|
|
339
|
+
|
|
340
|
+
export declare type ApproveConnectRequestErrors = {
|
|
341
|
+
/**
|
|
342
|
+
* redirect_uri is not an allowlisted partner
|
|
343
|
+
*/
|
|
344
|
+
400: ErrorResponse;
|
|
345
|
+
/**
|
|
346
|
+
* Signed in, but not allowed to do this
|
|
347
|
+
*/
|
|
348
|
+
403: ErrorResponse;
|
|
349
|
+
};
|
|
350
|
+
|
|
276
351
|
export declare type Article = {
|
|
277
352
|
url?: string;
|
|
278
353
|
title?: string;
|
|
@@ -295,7 +370,7 @@ export declare type Article = {
|
|
|
295
370
|
/**
|
|
296
371
|
* Generate follow-up questions for an article
|
|
297
372
|
*/
|
|
298
|
-
export declare const articleFollowups: <ThrowOnError extends boolean = false>(options: Options<ArticleFollowupsData, ThrowOnError>) => RequestResult<ArticleFollowupsResponses, ArticleFollowupsErrors, ThrowOnError
|
|
373
|
+
export declare const articleFollowups: <ThrowOnError extends boolean = false>(options: Options<ArticleFollowupsData, ThrowOnError>) => RequestResult<ArticleFollowupsResponses, ArticleFollowupsErrors, ThrowOnError>;
|
|
299
374
|
|
|
300
375
|
export declare type ArticleFollowupsData = {
|
|
301
376
|
body: {
|
|
@@ -337,7 +412,7 @@ export declare type ArticleFollowupsResponses = {
|
|
|
337
412
|
/**
|
|
338
413
|
* Answer a question grounded in an article
|
|
339
414
|
*/
|
|
340
|
-
export declare const articleQa: <ThrowOnError extends boolean = false>(options: Options<ArticleQaData, ThrowOnError>) => RequestResult<ArticleQaResponses, ArticleQaErrors, ThrowOnError
|
|
415
|
+
export declare const articleQa: <ThrowOnError extends boolean = false>(options: Options<ArticleQaData, ThrowOnError>) => RequestResult<ArticleQaResponses, ArticleQaErrors, ThrowOnError>;
|
|
341
416
|
|
|
342
417
|
export declare type ArticleQaData = {
|
|
343
418
|
body: {
|
|
@@ -379,7 +454,7 @@ export declare type ArticleQaResponses = {
|
|
|
379
454
|
/**
|
|
380
455
|
* Ask a question against a notebook
|
|
381
456
|
*/
|
|
382
|
-
export declare const askNotebook: <ThrowOnError extends boolean = false>(options: Options<AskNotebookData, ThrowOnError>) => RequestResult<AskNotebookResponses, AskNotebookErrors, ThrowOnError
|
|
457
|
+
export declare const askNotebook: <ThrowOnError extends boolean = false>(options: Options<AskNotebookData, ThrowOnError>) => RequestResult<AskNotebookResponses, AskNotebookErrors, ThrowOnError>;
|
|
383
458
|
|
|
384
459
|
export declare type AskNotebookData = {
|
|
385
460
|
body: {
|
|
@@ -415,7 +490,7 @@ export declare type AskNotebookResponses = {
|
|
|
415
490
|
/**
|
|
416
491
|
* Query autocomplete suggestions
|
|
417
492
|
*/
|
|
418
|
-
export declare const autocomplete: <ThrowOnError extends boolean = false>(options: Options<AutocompleteData, ThrowOnError>) => RequestResult<AutocompleteResponses, unknown, ThrowOnError
|
|
493
|
+
export declare const autocomplete: <ThrowOnError extends boolean = false>(options: Options<AutocompleteData, ThrowOnError>) => RequestResult<AutocompleteResponses, unknown, ThrowOnError>;
|
|
419
494
|
|
|
420
495
|
export declare type AutocompleteData = {
|
|
421
496
|
body?: never;
|
|
@@ -447,7 +522,7 @@ export declare type AutocompleteResponses = {
|
|
|
447
522
|
/**
|
|
448
523
|
* Change password
|
|
449
524
|
*/
|
|
450
|
-
export declare const changePassword: <ThrowOnError extends boolean = false>(options: Options<ChangePasswordData, ThrowOnError>) => RequestResult<ChangePasswordResponses, ChangePasswordErrors, ThrowOnError
|
|
525
|
+
export declare const changePassword: <ThrowOnError extends boolean = false>(options: Options<ChangePasswordData, ThrowOnError>) => RequestResult<ChangePasswordResponses, ChangePasswordErrors, ThrowOnError>;
|
|
451
526
|
|
|
452
527
|
export declare type ChangePasswordData = {
|
|
453
528
|
body: {
|
|
@@ -474,9 +549,7 @@ export declare type ChangePasswordResponses = {
|
|
|
474
549
|
/**
|
|
475
550
|
* Changed
|
|
476
551
|
*/
|
|
477
|
-
200:
|
|
478
|
-
message?: string;
|
|
479
|
-
};
|
|
552
|
+
200: MessageResponse;
|
|
480
553
|
};
|
|
481
554
|
|
|
482
555
|
export declare type Chat = {
|
|
@@ -489,14 +562,76 @@ export declare type Chat = {
|
|
|
489
562
|
messageCount?: number;
|
|
490
563
|
};
|
|
491
564
|
|
|
565
|
+
/**
|
|
566
|
+
* Empty the news archive
|
|
567
|
+
*/
|
|
568
|
+
export declare const clearAdminNews: <ThrowOnError extends boolean = false>(options?: Options<ClearAdminNewsData, ThrowOnError>) => RequestResult<ClearAdminNewsResponses, ClearAdminNewsErrors, ThrowOnError>;
|
|
569
|
+
|
|
570
|
+
export declare type ClearAdminNewsData = {
|
|
571
|
+
body?: never;
|
|
572
|
+
path?: never;
|
|
573
|
+
query?: never;
|
|
574
|
+
url: '/admin/news';
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
export declare type ClearAdminNewsError = ClearAdminNewsErrors[keyof ClearAdminNewsErrors];
|
|
578
|
+
|
|
579
|
+
export declare type ClearAdminNewsErrors = {
|
|
580
|
+
/**
|
|
581
|
+
* Authentication required
|
|
582
|
+
*/
|
|
583
|
+
401: ErrorResponse;
|
|
584
|
+
/**
|
|
585
|
+
* Signed in, but not allowed to do this
|
|
586
|
+
*/
|
|
587
|
+
403: ErrorResponse;
|
|
588
|
+
/**
|
|
589
|
+
* Internal server error
|
|
590
|
+
*/
|
|
591
|
+
500: ErrorResponse;
|
|
592
|
+
};
|
|
593
|
+
|
|
594
|
+
export declare type ClearAdminNewsResponse = ClearAdminNewsResponses[keyof ClearAdminNewsResponses];
|
|
595
|
+
|
|
596
|
+
export declare type ClearAdminNewsResponses = {
|
|
597
|
+
/**
|
|
598
|
+
* Deleted count and stats
|
|
599
|
+
*/
|
|
600
|
+
200: {
|
|
601
|
+
deleted?: number;
|
|
602
|
+
stats?: {
|
|
603
|
+
[key: string]: unknown;
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
export declare type ClientLocation = {
|
|
609
|
+
ip: string | null;
|
|
610
|
+
city?: string;
|
|
611
|
+
region?: string;
|
|
612
|
+
country?: string;
|
|
613
|
+
countryCode?: string;
|
|
614
|
+
timezone?: string;
|
|
615
|
+
latitude?: number;
|
|
616
|
+
longitude?: number;
|
|
617
|
+
source: 'edge' | 'ipapi' | 'none';
|
|
618
|
+
};
|
|
619
|
+
|
|
492
620
|
export declare type ClientOptions = {
|
|
493
|
-
baseUrl: 'https://qwksearch.com/api' | (string & {});
|
|
621
|
+
baseUrl: 'https://qwksearch.com/api' | `${string}://${string}/api` | (string & {});
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
export declare type ConnectUser = {
|
|
625
|
+
id: string;
|
|
626
|
+
name: string;
|
|
627
|
+
email: string;
|
|
628
|
+
image: string | null;
|
|
494
629
|
};
|
|
495
630
|
|
|
496
631
|
/**
|
|
497
632
|
* Create a document
|
|
498
633
|
*/
|
|
499
|
-
export declare const createDocument: <ThrowOnError extends boolean = false>(options: Options<CreateDocumentData, ThrowOnError>) => RequestResult<CreateDocumentResponses, unknown, ThrowOnError
|
|
634
|
+
export declare const createDocument: <ThrowOnError extends boolean = false>(options: Options<CreateDocumentData, ThrowOnError>) => RequestResult<CreateDocumentResponses, unknown, ThrowOnError>;
|
|
500
635
|
|
|
501
636
|
export declare type CreateDocumentData = {
|
|
502
637
|
body: {
|
|
@@ -524,10 +659,61 @@ export declare type CreateDocumentResponses = {
|
|
|
524
659
|
201: Document_2;
|
|
525
660
|
};
|
|
526
661
|
|
|
662
|
+
/**
|
|
663
|
+
* Save a memory
|
|
664
|
+
*/
|
|
665
|
+
export declare const createMemory: <ThrowOnError extends boolean = false>(options: Options<CreateMemoryData, ThrowOnError>) => RequestResult<CreateMemoryResponses, CreateMemoryErrors, ThrowOnError>;
|
|
666
|
+
|
|
667
|
+
export declare type CreateMemoryData = {
|
|
668
|
+
body: {
|
|
669
|
+
name: string;
|
|
670
|
+
type: 'user' | 'feedback' | 'project' | 'reference' | 'conversation';
|
|
671
|
+
description?: string;
|
|
672
|
+
content: string;
|
|
673
|
+
importance?: number;
|
|
674
|
+
tags?: Array<string>;
|
|
675
|
+
metadata?: {
|
|
676
|
+
[key: string]: unknown;
|
|
677
|
+
};
|
|
678
|
+
};
|
|
679
|
+
path?: never;
|
|
680
|
+
query?: never;
|
|
681
|
+
url: '/user/memories';
|
|
682
|
+
};
|
|
683
|
+
|
|
684
|
+
export declare type CreateMemoryError = CreateMemoryErrors[keyof CreateMemoryErrors];
|
|
685
|
+
|
|
686
|
+
export declare type CreateMemoryErrors = {
|
|
687
|
+
/**
|
|
688
|
+
* Bad request
|
|
689
|
+
*/
|
|
690
|
+
400: ErrorResponse;
|
|
691
|
+
/**
|
|
692
|
+
* Authentication required
|
|
693
|
+
*/
|
|
694
|
+
401: ErrorResponse;
|
|
695
|
+
/**
|
|
696
|
+
* Internal server error
|
|
697
|
+
*/
|
|
698
|
+
500: ErrorResponse;
|
|
699
|
+
};
|
|
700
|
+
|
|
701
|
+
export declare type CreateMemoryResponse = CreateMemoryResponses[keyof CreateMemoryResponses];
|
|
702
|
+
|
|
703
|
+
export declare type CreateMemoryResponses = {
|
|
704
|
+
/**
|
|
705
|
+
* Created
|
|
706
|
+
*/
|
|
707
|
+
201: {
|
|
708
|
+
id?: string;
|
|
709
|
+
message?: string;
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
|
|
527
713
|
/**
|
|
528
714
|
* Create a notebook
|
|
529
715
|
*/
|
|
530
|
-
export declare const createNotebook: <ThrowOnError extends boolean = false>(options: Options<CreateNotebookData, ThrowOnError>) => RequestResult<CreateNotebookResponses, CreateNotebookErrors, ThrowOnError
|
|
716
|
+
export declare const createNotebook: <ThrowOnError extends boolean = false>(options: Options<CreateNotebookData, ThrowOnError>) => RequestResult<CreateNotebookResponses, CreateNotebookErrors, ThrowOnError>;
|
|
531
717
|
|
|
532
718
|
export declare type CreateNotebookData = {
|
|
533
719
|
body: {
|
|
@@ -561,7 +747,7 @@ export declare type CreateNotebookResponses = {
|
|
|
561
747
|
/**
|
|
562
748
|
* Create a quote
|
|
563
749
|
*/
|
|
564
|
-
export declare const createQuote: <ThrowOnError extends boolean = false>(options: Options<CreateQuoteData, ThrowOnError>) => RequestResult<CreateQuoteResponses, unknown, ThrowOnError
|
|
750
|
+
export declare const createQuote: <ThrowOnError extends boolean = false>(options: Options<CreateQuoteData, ThrowOnError>) => RequestResult<CreateQuoteResponses, unknown, ThrowOnError>;
|
|
565
751
|
|
|
566
752
|
export declare type CreateQuoteData = {
|
|
567
753
|
body: {
|
|
@@ -590,10 +776,148 @@ export declare type CreateQuoteResponses = {
|
|
|
590
776
|
};
|
|
591
777
|
};
|
|
592
778
|
|
|
779
|
+
/**
|
|
780
|
+
* Transcribe audio (OpenAI-compatible)
|
|
781
|
+
*
|
|
782
|
+
* OpenAI-compatible: point a client's base URL at `https://qwksearch.com/api/v1`. Always requires a QwkSearch API key in a header (`Authorization: Bearer` or `X-API-Key`); a query-string key or a session cookie is rejected. Same Whisper tiers as `/agent/transcript`.
|
|
783
|
+
*/
|
|
784
|
+
export declare const createTranscription: <ThrowOnError extends boolean = false>(options: Options<CreateTranscriptionData, ThrowOnError>) => RequestResult<CreateTranscriptionResponses, CreateTranscriptionErrors, ThrowOnError>;
|
|
785
|
+
|
|
786
|
+
export declare type CreateTranscriptionData = {
|
|
787
|
+
body: {
|
|
788
|
+
file: Blob | File;
|
|
789
|
+
model?: 'small' | 'fast' | 'medium' | 'turbo' | 'large';
|
|
790
|
+
response_format?: 'json';
|
|
791
|
+
};
|
|
792
|
+
path?: never;
|
|
793
|
+
query?: never;
|
|
794
|
+
url: '/v1/audio/transcriptions';
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
export declare type CreateTranscriptionError = CreateTranscriptionErrors[keyof CreateTranscriptionErrors];
|
|
798
|
+
|
|
799
|
+
export declare type CreateTranscriptionErrors = {
|
|
800
|
+
/**
|
|
801
|
+
* Missing or empty file, unknown model, unsupported response_format, or a non-multipart body
|
|
802
|
+
*/
|
|
803
|
+
400: OpenAiError;
|
|
804
|
+
/**
|
|
805
|
+
* Missing or invalid API key
|
|
806
|
+
*/
|
|
807
|
+
401: OpenAiError;
|
|
808
|
+
/**
|
|
809
|
+
* Transcription failed
|
|
810
|
+
*/
|
|
811
|
+
500: OpenAiError;
|
|
812
|
+
/**
|
|
813
|
+
* Key store or Workers AI unavailable
|
|
814
|
+
*/
|
|
815
|
+
503: OpenAiError;
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
export declare type CreateTranscriptionResponse = CreateTranscriptionResponses[keyof CreateTranscriptionResponses];
|
|
819
|
+
|
|
820
|
+
export declare type CreateTranscriptionResponses = {
|
|
821
|
+
/**
|
|
822
|
+
* Transcript
|
|
823
|
+
*/
|
|
824
|
+
200: {
|
|
825
|
+
text: string;
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* Delete a row
|
|
831
|
+
*/
|
|
832
|
+
export declare const deleteAdminTableRow: <ThrowOnError extends boolean = false>(options: Options<DeleteAdminTableRowData, ThrowOnError>) => RequestResult<DeleteAdminTableRowResponses, DeleteAdminTableRowErrors, ThrowOnError>;
|
|
833
|
+
|
|
834
|
+
export declare type DeleteAdminTableRowData = {
|
|
835
|
+
body?: never;
|
|
836
|
+
path: {
|
|
837
|
+
table: string;
|
|
838
|
+
id: string;
|
|
839
|
+
};
|
|
840
|
+
query?: never;
|
|
841
|
+
url: '/admin/database/{table}/{id}';
|
|
842
|
+
};
|
|
843
|
+
|
|
844
|
+
export declare type DeleteAdminTableRowError = DeleteAdminTableRowErrors[keyof DeleteAdminTableRowErrors];
|
|
845
|
+
|
|
846
|
+
export declare type DeleteAdminTableRowErrors = {
|
|
847
|
+
/**
|
|
848
|
+
* Authentication required
|
|
849
|
+
*/
|
|
850
|
+
401: ErrorResponse;
|
|
851
|
+
/**
|
|
852
|
+
* Signed in, but not allowed to do this
|
|
853
|
+
*/
|
|
854
|
+
403: ErrorResponse;
|
|
855
|
+
/**
|
|
856
|
+
* Not found
|
|
857
|
+
*/
|
|
858
|
+
404: ErrorResponse;
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
export declare type DeleteAdminTableRowResponse = DeleteAdminTableRowResponses[keyof DeleteAdminTableRowResponses];
|
|
862
|
+
|
|
863
|
+
export declare type DeleteAdminTableRowResponses = {
|
|
864
|
+
/**
|
|
865
|
+
* Deleted
|
|
866
|
+
*/
|
|
867
|
+
200: {
|
|
868
|
+
ok?: boolean;
|
|
869
|
+
row?: {
|
|
870
|
+
[key: string]: unknown;
|
|
871
|
+
};
|
|
872
|
+
};
|
|
873
|
+
};
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Delete a user
|
|
877
|
+
*/
|
|
878
|
+
export declare const deleteAdminUser: <ThrowOnError extends boolean = false>(options: Options<DeleteAdminUserData, ThrowOnError>) => RequestResult<DeleteAdminUserResponses, DeleteAdminUserErrors, ThrowOnError>;
|
|
879
|
+
|
|
880
|
+
export declare type DeleteAdminUserData = {
|
|
881
|
+
body?: never;
|
|
882
|
+
path: {
|
|
883
|
+
id: string;
|
|
884
|
+
};
|
|
885
|
+
query?: never;
|
|
886
|
+
url: '/admin/users/{id}';
|
|
887
|
+
};
|
|
888
|
+
|
|
889
|
+
export declare type DeleteAdminUserError = DeleteAdminUserErrors[keyof DeleteAdminUserErrors];
|
|
890
|
+
|
|
891
|
+
export declare type DeleteAdminUserErrors = {
|
|
892
|
+
/**
|
|
893
|
+
* Authentication required
|
|
894
|
+
*/
|
|
895
|
+
401: ErrorResponse;
|
|
896
|
+
/**
|
|
897
|
+
* Signed in, but not allowed to do this
|
|
898
|
+
*/
|
|
899
|
+
403: ErrorResponse;
|
|
900
|
+
/**
|
|
901
|
+
* Not found
|
|
902
|
+
*/
|
|
903
|
+
404: ErrorResponse;
|
|
904
|
+
};
|
|
905
|
+
|
|
906
|
+
export declare type DeleteAdminUserResponse = DeleteAdminUserResponses[keyof DeleteAdminUserResponses];
|
|
907
|
+
|
|
908
|
+
export declare type DeleteAdminUserResponses = {
|
|
909
|
+
/**
|
|
910
|
+
* Deleted
|
|
911
|
+
*/
|
|
912
|
+
200: {
|
|
913
|
+
ok?: boolean;
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
|
|
593
917
|
/**
|
|
594
918
|
* Delete all user chats
|
|
595
919
|
*/
|
|
596
|
-
export declare const deleteAllChats: <ThrowOnError extends boolean = false>(options?: Options<DeleteAllChatsData, ThrowOnError>) => RequestResult<DeleteAllChatsResponses, DeleteAllChatsErrors, ThrowOnError
|
|
920
|
+
export declare const deleteAllChats: <ThrowOnError extends boolean = false>(options?: Options<DeleteAllChatsData, ThrowOnError>) => RequestResult<DeleteAllChatsResponses, DeleteAllChatsErrors, ThrowOnError>;
|
|
597
921
|
|
|
598
922
|
export declare type DeleteAllChatsData = {
|
|
599
923
|
body?: never;
|
|
@@ -617,15 +941,13 @@ export declare type DeleteAllChatsResponses = {
|
|
|
617
941
|
/**
|
|
618
942
|
* All chats deleted
|
|
619
943
|
*/
|
|
620
|
-
200:
|
|
621
|
-
message?: string;
|
|
622
|
-
};
|
|
944
|
+
200: MessageResponse;
|
|
623
945
|
};
|
|
624
946
|
|
|
625
947
|
/**
|
|
626
948
|
* Delete a chat
|
|
627
949
|
*/
|
|
628
|
-
export declare const deleteChatById: <ThrowOnError extends boolean = false>(options: Options<DeleteChatByIdData, ThrowOnError>) => RequestResult<DeleteChatByIdResponses, DeleteChatByIdErrors, ThrowOnError
|
|
950
|
+
export declare const deleteChatById: <ThrowOnError extends boolean = false>(options: Options<DeleteChatByIdData, ThrowOnError>) => RequestResult<DeleteChatByIdResponses, DeleteChatByIdErrors, ThrowOnError>;
|
|
629
951
|
|
|
630
952
|
export declare type DeleteChatByIdData = {
|
|
631
953
|
body?: never;
|
|
@@ -655,15 +977,13 @@ export declare type DeleteChatByIdResponses = {
|
|
|
655
977
|
/**
|
|
656
978
|
* Deleted
|
|
657
979
|
*/
|
|
658
|
-
200:
|
|
659
|
-
message?: string;
|
|
660
|
-
};
|
|
980
|
+
200: MessageResponse;
|
|
661
981
|
};
|
|
662
982
|
|
|
663
983
|
/**
|
|
664
984
|
* Delete a document
|
|
665
985
|
*/
|
|
666
|
-
export declare const deleteDocument: <ThrowOnError extends boolean = false>(options: Options<DeleteDocumentData, ThrowOnError>) => RequestResult<DeleteDocumentResponses, DeleteDocumentErrors, ThrowOnError
|
|
986
|
+
export declare const deleteDocument: <ThrowOnError extends boolean = false>(options: Options<DeleteDocumentData, ThrowOnError>) => RequestResult<DeleteDocumentResponses, DeleteDocumentErrors, ThrowOnError>;
|
|
667
987
|
|
|
668
988
|
export declare type DeleteDocumentData = {
|
|
669
989
|
body?: never;
|
|
@@ -697,7 +1017,7 @@ export declare type DeleteDocumentResponses = {
|
|
|
697
1017
|
/**
|
|
698
1018
|
* Delete an MCP server
|
|
699
1019
|
*/
|
|
700
|
-
export declare const deleteMcpServer: <ThrowOnError extends boolean = false>(options: Options<DeleteMcpServerData, ThrowOnError>) => RequestResult<DeleteMcpServerResponses, unknown, ThrowOnError
|
|
1020
|
+
export declare const deleteMcpServer: <ThrowOnError extends boolean = false>(options: Options<DeleteMcpServerData, ThrowOnError>) => RequestResult<DeleteMcpServerResponses, unknown, ThrowOnError>;
|
|
701
1021
|
|
|
702
1022
|
export declare type DeleteMcpServerData = {
|
|
703
1023
|
body?: never;
|
|
@@ -714,15 +1034,49 @@ export declare type DeleteMcpServerResponses = {
|
|
|
714
1034
|
/**
|
|
715
1035
|
* Deleted
|
|
716
1036
|
*/
|
|
717
|
-
200:
|
|
718
|
-
|
|
1037
|
+
200: MessageResponse;
|
|
1038
|
+
};
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* Delete a memory
|
|
1042
|
+
*/
|
|
1043
|
+
export declare const deleteMemory: <ThrowOnError extends boolean = false>(options: Options<DeleteMemoryData, ThrowOnError>) => RequestResult<DeleteMemoryResponses, DeleteMemoryErrors, ThrowOnError>;
|
|
1044
|
+
|
|
1045
|
+
export declare type DeleteMemoryData = {
|
|
1046
|
+
body?: never;
|
|
1047
|
+
path: {
|
|
1048
|
+
id: string;
|
|
719
1049
|
};
|
|
1050
|
+
query?: never;
|
|
1051
|
+
url: '/user/memories/{id}';
|
|
1052
|
+
};
|
|
1053
|
+
|
|
1054
|
+
export declare type DeleteMemoryError = DeleteMemoryErrors[keyof DeleteMemoryErrors];
|
|
1055
|
+
|
|
1056
|
+
export declare type DeleteMemoryErrors = {
|
|
1057
|
+
/**
|
|
1058
|
+
* Authentication required
|
|
1059
|
+
*/
|
|
1060
|
+
401: ErrorResponse;
|
|
1061
|
+
/**
|
|
1062
|
+
* Not found
|
|
1063
|
+
*/
|
|
1064
|
+
404: ErrorResponse;
|
|
1065
|
+
};
|
|
1066
|
+
|
|
1067
|
+
export declare type DeleteMemoryResponse = DeleteMemoryResponses[keyof DeleteMemoryResponses];
|
|
1068
|
+
|
|
1069
|
+
export declare type DeleteMemoryResponses = {
|
|
1070
|
+
/**
|
|
1071
|
+
* Done
|
|
1072
|
+
*/
|
|
1073
|
+
200: MessageResponse;
|
|
720
1074
|
};
|
|
721
1075
|
|
|
722
1076
|
/**
|
|
723
1077
|
* Delete a notebook
|
|
724
1078
|
*/
|
|
725
|
-
export declare const deleteNotebook: <ThrowOnError extends boolean = false>(options: Options<DeleteNotebookData, ThrowOnError>) => RequestResult<DeleteNotebookResponses, DeleteNotebookErrors, ThrowOnError
|
|
1079
|
+
export declare const deleteNotebook: <ThrowOnError extends boolean = false>(options: Options<DeleteNotebookData, ThrowOnError>) => RequestResult<DeleteNotebookResponses, DeleteNotebookErrors, ThrowOnError>;
|
|
726
1080
|
|
|
727
1081
|
export declare type DeleteNotebookData = {
|
|
728
1082
|
body?: never;
|
|
@@ -754,11 +1108,55 @@ export declare type DeleteNotebookResponses = {
|
|
|
754
1108
|
};
|
|
755
1109
|
|
|
756
1110
|
/**
|
|
757
|
-
* Delete a
|
|
1111
|
+
* Delete a playlist
|
|
1112
|
+
*
|
|
1113
|
+
* Owner only.
|
|
758
1114
|
*/
|
|
759
|
-
export declare const
|
|
1115
|
+
export declare const deletePlaylist: <ThrowOnError extends boolean = false>(options: Options<DeletePlaylistData, ThrowOnError>) => RequestResult<DeletePlaylistResponses, DeletePlaylistErrors, ThrowOnError>;
|
|
760
1116
|
|
|
761
|
-
export declare type
|
|
1117
|
+
export declare type DeletePlaylistData = {
|
|
1118
|
+
body?: never;
|
|
1119
|
+
path: {
|
|
1120
|
+
id: string;
|
|
1121
|
+
};
|
|
1122
|
+
query?: never;
|
|
1123
|
+
url: '/learn/playlists/{id}';
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1126
|
+
export declare type DeletePlaylistError = DeletePlaylistErrors[keyof DeletePlaylistErrors];
|
|
1127
|
+
|
|
1128
|
+
export declare type DeletePlaylistErrors = {
|
|
1129
|
+
/**
|
|
1130
|
+
* Authentication required
|
|
1131
|
+
*/
|
|
1132
|
+
401: ErrorResponse;
|
|
1133
|
+
/**
|
|
1134
|
+
* Signed in, but not allowed to do this
|
|
1135
|
+
*/
|
|
1136
|
+
403: ErrorResponse;
|
|
1137
|
+
/**
|
|
1138
|
+
* Not found
|
|
1139
|
+
*/
|
|
1140
|
+
404: ErrorResponse;
|
|
1141
|
+
};
|
|
1142
|
+
|
|
1143
|
+
export declare type DeletePlaylistResponse = DeletePlaylistResponses[keyof DeletePlaylistResponses];
|
|
1144
|
+
|
|
1145
|
+
export declare type DeletePlaylistResponses = {
|
|
1146
|
+
/**
|
|
1147
|
+
* Deleted
|
|
1148
|
+
*/
|
|
1149
|
+
200: {
|
|
1150
|
+
ok?: boolean;
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* Delete a provider
|
|
1156
|
+
*/
|
|
1157
|
+
export declare const deleteProvider: <ThrowOnError extends boolean = false>(options: Options<DeleteProviderData, ThrowOnError>) => RequestResult<DeleteProviderResponses, unknown, ThrowOnError>;
|
|
1158
|
+
|
|
1159
|
+
export declare type DeleteProviderData = {
|
|
762
1160
|
body?: never;
|
|
763
1161
|
path: {
|
|
764
1162
|
id: string;
|
|
@@ -770,7 +1168,7 @@ export declare type DeleteProviderData = {
|
|
|
770
1168
|
/**
|
|
771
1169
|
* Remove a model from a provider
|
|
772
1170
|
*/
|
|
773
|
-
export declare const deleteProviderModel: <ThrowOnError extends boolean = false>(options: Options<DeleteProviderModelData, ThrowOnError>) => RequestResult<DeleteProviderModelResponses, unknown, ThrowOnError
|
|
1171
|
+
export declare const deleteProviderModel: <ThrowOnError extends boolean = false>(options: Options<DeleteProviderModelData, ThrowOnError>) => RequestResult<DeleteProviderModelResponses, unknown, ThrowOnError>;
|
|
774
1172
|
|
|
775
1173
|
export declare type DeleteProviderModelData = {
|
|
776
1174
|
body: {
|
|
@@ -790,9 +1188,7 @@ export declare type DeleteProviderModelResponses = {
|
|
|
790
1188
|
/**
|
|
791
1189
|
* Model removed
|
|
792
1190
|
*/
|
|
793
|
-
200:
|
|
794
|
-
message?: string;
|
|
795
|
-
};
|
|
1191
|
+
200: MessageResponse;
|
|
796
1192
|
};
|
|
797
1193
|
|
|
798
1194
|
export declare type DeleteProviderResponse = DeleteProviderResponses[keyof DeleteProviderResponses];
|
|
@@ -801,15 +1197,13 @@ export declare type DeleteProviderResponses = {
|
|
|
801
1197
|
/**
|
|
802
1198
|
* Deleted
|
|
803
1199
|
*/
|
|
804
|
-
200:
|
|
805
|
-
message?: string;
|
|
806
|
-
};
|
|
1200
|
+
200: MessageResponse;
|
|
807
1201
|
};
|
|
808
1202
|
|
|
809
1203
|
/**
|
|
810
1204
|
* Delete a quote
|
|
811
1205
|
*/
|
|
812
|
-
export declare const deleteQuote: <ThrowOnError extends boolean = false>(options: Options<DeleteQuoteData, ThrowOnError>) => RequestResult<DeleteQuoteResponses, unknown, ThrowOnError
|
|
1206
|
+
export declare const deleteQuote: <ThrowOnError extends boolean = false>(options: Options<DeleteQuoteData, ThrowOnError>) => RequestResult<DeleteQuoteResponses, unknown, ThrowOnError>;
|
|
813
1207
|
|
|
814
1208
|
export declare type DeleteQuoteData = {
|
|
815
1209
|
body?: never;
|
|
@@ -837,7 +1231,7 @@ export declare type DeleteQuoteResponses = {
|
|
|
837
1231
|
/**
|
|
838
1232
|
* Delete an uploaded file from R2
|
|
839
1233
|
*/
|
|
840
|
-
export declare const deleteUploadedFile: <ThrowOnError extends boolean = false>(options: Options<DeleteUploadedFileData, ThrowOnError>) => RequestResult<DeleteUploadedFileResponses, unknown, ThrowOnError
|
|
1234
|
+
export declare const deleteUploadedFile: <ThrowOnError extends boolean = false>(options: Options<DeleteUploadedFileData, ThrowOnError>) => RequestResult<DeleteUploadedFileResponses, unknown, ThrowOnError>;
|
|
841
1235
|
|
|
842
1236
|
export declare type DeleteUploadedFileData = {
|
|
843
1237
|
body?: never;
|
|
@@ -869,12 +1263,12 @@ export declare type DeleteUploadedFileResponses = {
|
|
|
869
1263
|
/**
|
|
870
1264
|
* Delete account
|
|
871
1265
|
*/
|
|
872
|
-
export declare const deleteUser: <ThrowOnError extends boolean = false>(options?: Options<DeleteUserData, ThrowOnError>) => RequestResult<DeleteUserResponses, DeleteUserErrors, ThrowOnError
|
|
1266
|
+
export declare const deleteUser: <ThrowOnError extends boolean = false>(options?: Options<DeleteUserData, ThrowOnError>) => RequestResult<DeleteUserResponses, DeleteUserErrors, ThrowOnError>;
|
|
873
1267
|
|
|
874
1268
|
/**
|
|
875
1269
|
* Unlink an OAuth account
|
|
876
1270
|
*/
|
|
877
|
-
export declare const deleteUserAccount: <ThrowOnError extends boolean = false>(options: Options<DeleteUserAccountData, ThrowOnError>) => RequestResult<DeleteUserAccountResponses, DeleteUserAccountErrors, ThrowOnError
|
|
1271
|
+
export declare const deleteUserAccount: <ThrowOnError extends boolean = false>(options: Options<DeleteUserAccountData, ThrowOnError>) => RequestResult<DeleteUserAccountResponses, DeleteUserAccountErrors, ThrowOnError>;
|
|
878
1272
|
|
|
879
1273
|
export declare type DeleteUserAccountData = {
|
|
880
1274
|
body: {
|
|
@@ -931,15 +1325,97 @@ export declare type DeleteUserResponses = {
|
|
|
931
1325
|
/**
|
|
932
1326
|
* Deleted
|
|
933
1327
|
*/
|
|
1328
|
+
200: MessageResponse;
|
|
1329
|
+
};
|
|
1330
|
+
|
|
1331
|
+
/**
|
|
1332
|
+
* Describe a pending "Sign in with QwkSearch" request
|
|
1333
|
+
*/
|
|
1334
|
+
export declare const describeConnectRequest: <ThrowOnError extends boolean = false>(options: Options<DescribeConnectRequestData, ThrowOnError>) => RequestResult<DescribeConnectRequestResponses, DescribeConnectRequestErrors, ThrowOnError>;
|
|
1335
|
+
|
|
1336
|
+
export declare type DescribeConnectRequestData = {
|
|
1337
|
+
body?: never;
|
|
1338
|
+
path?: never;
|
|
1339
|
+
query: {
|
|
1340
|
+
redirect_uri: string;
|
|
1341
|
+
};
|
|
1342
|
+
url: '/connect/authorize';
|
|
1343
|
+
};
|
|
1344
|
+
|
|
1345
|
+
export declare type DescribeConnectRequestError = DescribeConnectRequestErrors[keyof DescribeConnectRequestErrors];
|
|
1346
|
+
|
|
1347
|
+
export declare type DescribeConnectRequestErrors = {
|
|
1348
|
+
/**
|
|
1349
|
+
* redirect_uri is not an allowlisted partner
|
|
1350
|
+
*/
|
|
1351
|
+
400: ErrorResponse;
|
|
1352
|
+
};
|
|
1353
|
+
|
|
1354
|
+
export declare type DescribeConnectRequestResponse = DescribeConnectRequestResponses[keyof DescribeConnectRequestResponses];
|
|
1355
|
+
|
|
1356
|
+
export declare type DescribeConnectRequestResponses = {
|
|
1357
|
+
/**
|
|
1358
|
+
* Partner and current user
|
|
1359
|
+
*/
|
|
934
1360
|
200: {
|
|
935
|
-
|
|
1361
|
+
client?: {
|
|
1362
|
+
[key: string]: unknown;
|
|
1363
|
+
};
|
|
1364
|
+
user?: {
|
|
1365
|
+
name?: string;
|
|
1366
|
+
email?: string;
|
|
1367
|
+
image?: string | null;
|
|
1368
|
+
} | null;
|
|
1369
|
+
};
|
|
1370
|
+
};
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* Diagnose free-model providers and auth config
|
|
1374
|
+
*
|
|
1375
|
+
* Which provider keys are visible, the provider list guests receive, a live test per provider, and auth diagnostics.
|
|
1376
|
+
*/
|
|
1377
|
+
export declare const diagnoseFreeModels: <ThrowOnError extends boolean = false>(options?: Options<DiagnoseFreeModelsData, ThrowOnError>) => RequestResult<DiagnoseFreeModelsResponses, DiagnoseFreeModelsErrors, ThrowOnError>;
|
|
1378
|
+
|
|
1379
|
+
export declare type DiagnoseFreeModelsData = {
|
|
1380
|
+
body?: never;
|
|
1381
|
+
path?: never;
|
|
1382
|
+
query?: {
|
|
1383
|
+
/**
|
|
1384
|
+
* Live-test every free model for these providers.
|
|
1385
|
+
*/
|
|
1386
|
+
testAll?: 'nvidia' | 'openrouter' | 'anyapi' | 'all';
|
|
1387
|
+
};
|
|
1388
|
+
url: '/admin/freekeys';
|
|
1389
|
+
};
|
|
1390
|
+
|
|
1391
|
+
export declare type DiagnoseFreeModelsError = DiagnoseFreeModelsErrors[keyof DiagnoseFreeModelsErrors];
|
|
1392
|
+
|
|
1393
|
+
export declare type DiagnoseFreeModelsErrors = {
|
|
1394
|
+
/**
|
|
1395
|
+
* Authentication required
|
|
1396
|
+
*/
|
|
1397
|
+
401: ErrorResponse;
|
|
1398
|
+
/**
|
|
1399
|
+
* Signed in, but not allowed to do this
|
|
1400
|
+
*/
|
|
1401
|
+
403: ErrorResponse;
|
|
1402
|
+
};
|
|
1403
|
+
|
|
1404
|
+
export declare type DiagnoseFreeModelsResponse = DiagnoseFreeModelsResponses[keyof DiagnoseFreeModelsResponses];
|
|
1405
|
+
|
|
1406
|
+
export declare type DiagnoseFreeModelsResponses = {
|
|
1407
|
+
/**
|
|
1408
|
+
* Diagnostics
|
|
1409
|
+
*/
|
|
1410
|
+
200: {
|
|
1411
|
+
[key: string]: unknown;
|
|
936
1412
|
};
|
|
937
1413
|
};
|
|
938
1414
|
|
|
939
1415
|
/**
|
|
940
1416
|
* Disconnect NotebookLM
|
|
941
1417
|
*/
|
|
942
|
-
export declare const disconnectNotebooklm: <ThrowOnError extends boolean = false>(options?: Options<DisconnectNotebooklmData, ThrowOnError>) => RequestResult<DisconnectNotebooklmResponses, DisconnectNotebooklmErrors, ThrowOnError
|
|
1418
|
+
export declare const disconnectNotebooklm: <ThrowOnError extends boolean = false>(options?: Options<DisconnectNotebooklmData, ThrowOnError>) => RequestResult<DisconnectNotebooklmResponses, DisconnectNotebooklmErrors, ThrowOnError>;
|
|
943
1419
|
|
|
944
1420
|
export declare type DisconnectNotebooklmData = {
|
|
945
1421
|
body?: never;
|
|
@@ -972,7 +1448,7 @@ export declare type DisconnectNotebooklmResponses = {
|
|
|
972
1448
|
/**
|
|
973
1449
|
* Discover curated content by topic
|
|
974
1450
|
*/
|
|
975
|
-
export declare const discoverContent: <ThrowOnError extends boolean = false>(options?: Options<DiscoverContentData, ThrowOnError>) => RequestResult<DiscoverContentResponses, DiscoverContentErrors, ThrowOnError
|
|
1451
|
+
export declare const discoverContent: <ThrowOnError extends boolean = false>(options?: Options<DiscoverContentData, ThrowOnError>) => RequestResult<DiscoverContentResponses, DiscoverContentErrors, ThrowOnError>;
|
|
976
1452
|
|
|
977
1453
|
export declare type DiscoverContentData = {
|
|
978
1454
|
body?: never;
|
|
@@ -1029,15 +1505,85 @@ export declare type DomainSuggestion = {
|
|
|
1029
1505
|
rank?: number;
|
|
1030
1506
|
};
|
|
1031
1507
|
|
|
1508
|
+
/**
|
|
1509
|
+
* One Google Drive file or folder.
|
|
1510
|
+
*/
|
|
1511
|
+
export declare type DriveItem = {
|
|
1512
|
+
id: string;
|
|
1513
|
+
name: string;
|
|
1514
|
+
mimeType: string;
|
|
1515
|
+
parents?: Array<string>;
|
|
1516
|
+
modifiedTime?: string;
|
|
1517
|
+
/**
|
|
1518
|
+
* Bytes, as Drive reports it (a string).
|
|
1519
|
+
*/
|
|
1520
|
+
size?: string;
|
|
1521
|
+
webViewLink?: string;
|
|
1522
|
+
};
|
|
1523
|
+
|
|
1032
1524
|
export declare type ErrorResponse = {
|
|
1033
1525
|
error?: string;
|
|
1034
1526
|
message?: string;
|
|
1035
1527
|
};
|
|
1036
1528
|
|
|
1529
|
+
/**
|
|
1530
|
+
* Exchange a sign-in code for the user's API key
|
|
1531
|
+
*
|
|
1532
|
+
* Server-to-server, called by the partner with the code, the same `redirect_uri` and its PKCE `code_verifier`. Accepts JSON or a form body.
|
|
1533
|
+
*/
|
|
1534
|
+
export declare const exchangeConnectCode: <ThrowOnError extends boolean = false>(options: Options<ExchangeConnectCodeData, ThrowOnError>) => RequestResult<ExchangeConnectCodeResponses, ExchangeConnectCodeErrors, ThrowOnError>;
|
|
1535
|
+
|
|
1536
|
+
export declare type ExchangeConnectCodeData = {
|
|
1537
|
+
body: {
|
|
1538
|
+
code: string;
|
|
1539
|
+
redirect_uri: string;
|
|
1540
|
+
code_verifier: string;
|
|
1541
|
+
};
|
|
1542
|
+
path?: never;
|
|
1543
|
+
query?: never;
|
|
1544
|
+
url: '/connect/token';
|
|
1545
|
+
};
|
|
1546
|
+
|
|
1547
|
+
export declare type ExchangeConnectCodeError = ExchangeConnectCodeErrors[keyof ExchangeConnectCodeErrors];
|
|
1548
|
+
|
|
1549
|
+
export declare type ExchangeConnectCodeErrors = {
|
|
1550
|
+
/**
|
|
1551
|
+
* OAuth-style error (`invalid_grant`, `invalid_request`, …)
|
|
1552
|
+
*/
|
|
1553
|
+
400: {
|
|
1554
|
+
error?: string;
|
|
1555
|
+
};
|
|
1556
|
+
/**
|
|
1557
|
+
* Internal server error
|
|
1558
|
+
*/
|
|
1559
|
+
500: ErrorResponse;
|
|
1560
|
+
};
|
|
1561
|
+
|
|
1562
|
+
export declare type ExchangeConnectCodeResponse = ExchangeConnectCodeResponses[keyof ExchangeConnectCodeResponses];
|
|
1563
|
+
|
|
1564
|
+
export declare type ExchangeConnectCodeResponses = {
|
|
1565
|
+
/**
|
|
1566
|
+
* Linked account
|
|
1567
|
+
*/
|
|
1568
|
+
200: {
|
|
1569
|
+
token_type: 'api_key';
|
|
1570
|
+
api_key: string;
|
|
1571
|
+
user: ConnectUser;
|
|
1572
|
+
/**
|
|
1573
|
+
* Lower-case plan key, e.g. `free`, `pro`.
|
|
1574
|
+
*/
|
|
1575
|
+
plan: string;
|
|
1576
|
+
/**
|
|
1577
|
+
* Payment link for the next plan; null when already paid.
|
|
1578
|
+
*/
|
|
1579
|
+
upgrade_url?: string | null;
|
|
1580
|
+
};
|
|
1581
|
+
};
|
|
1582
|
+
|
|
1037
1583
|
/**
|
|
1038
1584
|
* Export document to Google Docs
|
|
1039
1585
|
*/
|
|
1040
|
-
export declare const exportToGoogleDocs: <ThrowOnError extends boolean = false>(options: Options<ExportToGoogleDocsData, ThrowOnError>) => RequestResult<ExportToGoogleDocsResponses, unknown, ThrowOnError
|
|
1586
|
+
export declare const exportToGoogleDocs: <ThrowOnError extends boolean = false>(options: Options<ExportToGoogleDocsData, ThrowOnError>) => RequestResult<ExportToGoogleDocsResponses, unknown, ThrowOnError>;
|
|
1041
1587
|
|
|
1042
1588
|
export declare type ExportToGoogleDocsData = {
|
|
1043
1589
|
body: {
|
|
@@ -1076,10 +1622,66 @@ export declare type Favorite = {
|
|
|
1076
1622
|
createdAt?: string;
|
|
1077
1623
|
};
|
|
1078
1624
|
|
|
1625
|
+
export declare type FollowUpQuestion = {
|
|
1626
|
+
id: string;
|
|
1627
|
+
question: string;
|
|
1628
|
+
/**
|
|
1629
|
+
* Quick answers; free text is also accepted.
|
|
1630
|
+
*/
|
|
1631
|
+
options: Array<string>;
|
|
1632
|
+
};
|
|
1633
|
+
|
|
1634
|
+
/**
|
|
1635
|
+
* Generate a title for a conversation
|
|
1636
|
+
*
|
|
1637
|
+
* Generates a short LLM title from the chat history. When the caller is signed in (or sends their API key) and owns `chatId`, the title is also saved to the chat; it is always returned so guests can store it locally.
|
|
1638
|
+
*/
|
|
1639
|
+
export declare const generateChatTitle: <ThrowOnError extends boolean = false>(options: Options<GenerateChatTitleData, ThrowOnError>) => RequestResult<GenerateChatTitleResponses, GenerateChatTitleErrors, ThrowOnError>;
|
|
1640
|
+
|
|
1641
|
+
export declare type GenerateChatTitleData = {
|
|
1642
|
+
body: {
|
|
1643
|
+
chatId?: string;
|
|
1644
|
+
/**
|
|
1645
|
+
* Messages so far.
|
|
1646
|
+
*/
|
|
1647
|
+
chatHistory: Array<{
|
|
1648
|
+
[key: string]: unknown;
|
|
1649
|
+
}>;
|
|
1650
|
+
chatModel: ModelWithProvider;
|
|
1651
|
+
};
|
|
1652
|
+
path?: never;
|
|
1653
|
+
query?: never;
|
|
1654
|
+
url: '/agent/chat-title';
|
|
1655
|
+
};
|
|
1656
|
+
|
|
1657
|
+
export declare type GenerateChatTitleError = GenerateChatTitleErrors[keyof GenerateChatTitleErrors];
|
|
1658
|
+
|
|
1659
|
+
export declare type GenerateChatTitleErrors = {
|
|
1660
|
+
/**
|
|
1661
|
+
* Bad request
|
|
1662
|
+
*/
|
|
1663
|
+
400: ErrorResponse;
|
|
1664
|
+
/**
|
|
1665
|
+
* Internal server error
|
|
1666
|
+
*/
|
|
1667
|
+
500: ErrorResponse;
|
|
1668
|
+
};
|
|
1669
|
+
|
|
1670
|
+
export declare type GenerateChatTitleResponse = GenerateChatTitleResponses[keyof GenerateChatTitleResponses];
|
|
1671
|
+
|
|
1672
|
+
export declare type GenerateChatTitleResponses = {
|
|
1673
|
+
/**
|
|
1674
|
+
* Title
|
|
1675
|
+
*/
|
|
1676
|
+
200: {
|
|
1677
|
+
title: string;
|
|
1678
|
+
};
|
|
1679
|
+
};
|
|
1680
|
+
|
|
1079
1681
|
/**
|
|
1080
1682
|
* Generate audio overview for a notebook
|
|
1081
1683
|
*/
|
|
1082
|
-
export declare const generateNotebookAudio: <ThrowOnError extends boolean = false>(options: Options<GenerateNotebookAudioData, ThrowOnError>) => RequestResult<GenerateNotebookAudioResponses, GenerateNotebookAudioErrors, ThrowOnError
|
|
1684
|
+
export declare const generateNotebookAudio: <ThrowOnError extends boolean = false>(options: Options<GenerateNotebookAudioData, ThrowOnError>) => RequestResult<GenerateNotebookAudioResponses, GenerateNotebookAudioErrors, ThrowOnError>;
|
|
1083
1685
|
|
|
1084
1686
|
export declare type GenerateNotebookAudioData = {
|
|
1085
1687
|
body?: {
|
|
@@ -1112,10 +1714,58 @@ export declare type GenerateNotebookAudioResponses = {
|
|
|
1112
1714
|
};
|
|
1113
1715
|
};
|
|
1114
1716
|
|
|
1717
|
+
/**
|
|
1718
|
+
* Generate short tips about a page
|
|
1719
|
+
*/
|
|
1720
|
+
export declare const generatePageTips: <ThrowOnError extends boolean = false>(options: Options<GeneratePageTipsData, ThrowOnError>) => RequestResult<GeneratePageTipsResponses, GeneratePageTipsErrors, ThrowOnError>;
|
|
1721
|
+
|
|
1722
|
+
export declare type GeneratePageTipsData = {
|
|
1723
|
+
body: {
|
|
1724
|
+
title?: string;
|
|
1725
|
+
/**
|
|
1726
|
+
* Page text; the first 15,000 characters are used.
|
|
1727
|
+
*/
|
|
1728
|
+
content: string;
|
|
1729
|
+
/**
|
|
1730
|
+
* How many tips to return.
|
|
1731
|
+
*/
|
|
1732
|
+
maxTips?: number;
|
|
1733
|
+
chatModel?: ModelWithProvider;
|
|
1734
|
+
};
|
|
1735
|
+
path?: never;
|
|
1736
|
+
query?: never;
|
|
1737
|
+
url: '/agent/page-tips';
|
|
1738
|
+
};
|
|
1739
|
+
|
|
1740
|
+
export declare type GeneratePageTipsError = GeneratePageTipsErrors[keyof GeneratePageTipsErrors];
|
|
1741
|
+
|
|
1742
|
+
export declare type GeneratePageTipsErrors = {
|
|
1743
|
+
/**
|
|
1744
|
+
* Bad request
|
|
1745
|
+
*/
|
|
1746
|
+
400: ErrorResponse;
|
|
1747
|
+
/**
|
|
1748
|
+
* Internal server error
|
|
1749
|
+
*/
|
|
1750
|
+
500: ErrorResponse;
|
|
1751
|
+
};
|
|
1752
|
+
|
|
1753
|
+
export declare type GeneratePageTipsResponse = GeneratePageTipsResponses[keyof GeneratePageTipsResponses];
|
|
1754
|
+
|
|
1755
|
+
export declare type GeneratePageTipsResponses = {
|
|
1756
|
+
/**
|
|
1757
|
+
* Tips
|
|
1758
|
+
*/
|
|
1759
|
+
200: {
|
|
1760
|
+
tips: Array<string>;
|
|
1761
|
+
success: boolean;
|
|
1762
|
+
};
|
|
1763
|
+
};
|
|
1764
|
+
|
|
1115
1765
|
/**
|
|
1116
1766
|
* Generate follow-up suggestions for a chat
|
|
1117
1767
|
*/
|
|
1118
|
-
export declare const generateSuggestions: <ThrowOnError extends boolean = false>(options: Options<GenerateSuggestionsData, ThrowOnError>) => RequestResult<GenerateSuggestionsResponses, GenerateSuggestionsErrors, ThrowOnError
|
|
1768
|
+
export declare const generateSuggestions: <ThrowOnError extends boolean = false>(options: Options<GenerateSuggestionsData, ThrowOnError>) => RequestResult<GenerateSuggestionsResponses, GenerateSuggestionsErrors, ThrowOnError>;
|
|
1119
1769
|
|
|
1120
1770
|
export declare type GenerateSuggestionsData = {
|
|
1121
1771
|
body: {
|
|
@@ -1152,22 +1802,31 @@ export declare type GenerateSuggestionsResponses = {
|
|
|
1152
1802
|
};
|
|
1153
1803
|
|
|
1154
1804
|
/**
|
|
1155
|
-
*
|
|
1805
|
+
* Suggest related searches for a page
|
|
1156
1806
|
*/
|
|
1157
|
-
export declare const
|
|
1807
|
+
export declare const generateTopicSearches: <ThrowOnError extends boolean = false>(options: Options<GenerateTopicSearchesData, ThrowOnError>) => RequestResult<GenerateTopicSearchesResponses, GenerateTopicSearchesErrors, ThrowOnError>;
|
|
1158
1808
|
|
|
1159
|
-
export declare type
|
|
1160
|
-
body
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1809
|
+
export declare type GenerateTopicSearchesData = {
|
|
1810
|
+
body: {
|
|
1811
|
+
title?: string;
|
|
1812
|
+
/**
|
|
1813
|
+
* Page text; the first 15,000 characters are used.
|
|
1814
|
+
*/
|
|
1815
|
+
content: string;
|
|
1816
|
+
/**
|
|
1817
|
+
* How many queries to return.
|
|
1818
|
+
*/
|
|
1819
|
+
maxTopics?: number;
|
|
1820
|
+
chatModel?: ModelWithProvider;
|
|
1164
1821
|
};
|
|
1165
|
-
|
|
1822
|
+
path?: never;
|
|
1823
|
+
query?: never;
|
|
1824
|
+
url: '/agent/topic-searches';
|
|
1166
1825
|
};
|
|
1167
1826
|
|
|
1168
|
-
export declare type
|
|
1827
|
+
export declare type GenerateTopicSearchesError = GenerateTopicSearchesErrors[keyof GenerateTopicSearchesErrors];
|
|
1169
1828
|
|
|
1170
|
-
export declare type
|
|
1829
|
+
export declare type GenerateTopicSearchesErrors = {
|
|
1171
1830
|
/**
|
|
1172
1831
|
* Bad request
|
|
1173
1832
|
*/
|
|
@@ -1178,66 +1837,248 @@ export declare type GetArticleErrors = {
|
|
|
1178
1837
|
500: ErrorResponse;
|
|
1179
1838
|
};
|
|
1180
1839
|
|
|
1181
|
-
export declare type
|
|
1840
|
+
export declare type GenerateTopicSearchesResponse = GenerateTopicSearchesResponses[keyof GenerateTopicSearchesResponses];
|
|
1182
1841
|
|
|
1183
|
-
export declare type
|
|
1842
|
+
export declare type GenerateTopicSearchesResponses = {
|
|
1184
1843
|
/**
|
|
1185
|
-
*
|
|
1844
|
+
* Search queries
|
|
1186
1845
|
*/
|
|
1187
1846
|
200: {
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
isVideo?: boolean;
|
|
1847
|
+
topics: Array<string>;
|
|
1848
|
+
success: boolean;
|
|
1191
1849
|
};
|
|
1192
1850
|
};
|
|
1193
1851
|
|
|
1194
1852
|
/**
|
|
1195
|
-
*
|
|
1853
|
+
* List browsable tables and maintenance actions
|
|
1196
1854
|
*/
|
|
1197
|
-
export declare const
|
|
1855
|
+
export declare const getAdminDatabase: <ThrowOnError extends boolean = false>(options?: Options<GetAdminDatabaseData, ThrowOnError>) => RequestResult<GetAdminDatabaseResponses, GetAdminDatabaseErrors, ThrowOnError>;
|
|
1198
1856
|
|
|
1199
|
-
export declare type
|
|
1857
|
+
export declare type GetAdminDatabaseData = {
|
|
1200
1858
|
body?: never;
|
|
1201
|
-
path
|
|
1202
|
-
id: string;
|
|
1203
|
-
};
|
|
1859
|
+
path?: never;
|
|
1204
1860
|
query?: never;
|
|
1205
|
-
url: '/
|
|
1861
|
+
url: '/admin/database';
|
|
1206
1862
|
};
|
|
1207
1863
|
|
|
1208
|
-
export declare type
|
|
1864
|
+
export declare type GetAdminDatabaseError = GetAdminDatabaseErrors[keyof GetAdminDatabaseErrors];
|
|
1209
1865
|
|
|
1210
|
-
export declare type
|
|
1866
|
+
export declare type GetAdminDatabaseErrors = {
|
|
1211
1867
|
/**
|
|
1212
|
-
*
|
|
1868
|
+
* Authentication required
|
|
1213
1869
|
*/
|
|
1214
|
-
|
|
1870
|
+
401: ErrorResponse;
|
|
1871
|
+
/**
|
|
1872
|
+
* Signed in, but not allowed to do this
|
|
1873
|
+
*/
|
|
1874
|
+
403: ErrorResponse;
|
|
1215
1875
|
};
|
|
1216
1876
|
|
|
1217
|
-
export declare type
|
|
1877
|
+
export declare type GetAdminDatabaseResponse = GetAdminDatabaseResponses[keyof GetAdminDatabaseResponses];
|
|
1218
1878
|
|
|
1219
|
-
export declare type
|
|
1879
|
+
export declare type GetAdminDatabaseResponses = {
|
|
1220
1880
|
/**
|
|
1221
|
-
*
|
|
1881
|
+
* Tables with row counts, writable columns and cleanups
|
|
1222
1882
|
*/
|
|
1223
1883
|
200: {
|
|
1224
|
-
|
|
1225
|
-
messages?: Array<{
|
|
1226
|
-
[key: string]: unknown;
|
|
1227
|
-
}>;
|
|
1884
|
+
[key: string]: unknown;
|
|
1228
1885
|
};
|
|
1229
1886
|
};
|
|
1230
1887
|
|
|
1231
1888
|
/**
|
|
1232
|
-
* Get
|
|
1889
|
+
* Get news widget settings and archive stats
|
|
1233
1890
|
*/
|
|
1234
|
-
export declare const
|
|
1891
|
+
export declare const getAdminNews: <ThrowOnError extends boolean = false>(options?: Options<GetAdminNewsData, ThrowOnError>) => RequestResult<GetAdminNewsResponses, GetAdminNewsErrors, ThrowOnError>;
|
|
1235
1892
|
|
|
1236
|
-
export declare type
|
|
1893
|
+
export declare type GetAdminNewsData = {
|
|
1237
1894
|
body?: never;
|
|
1238
1895
|
path?: never;
|
|
1239
|
-
query?:
|
|
1240
|
-
|
|
1896
|
+
query?: {
|
|
1897
|
+
/**
|
|
1898
|
+
* Return the archived articles for this topic.
|
|
1899
|
+
*/
|
|
1900
|
+
topic?: string;
|
|
1901
|
+
};
|
|
1902
|
+
url: '/admin/news';
|
|
1903
|
+
};
|
|
1904
|
+
|
|
1905
|
+
export declare type GetAdminNewsError = GetAdminNewsErrors[keyof GetAdminNewsErrors];
|
|
1906
|
+
|
|
1907
|
+
export declare type GetAdminNewsErrors = {
|
|
1908
|
+
/**
|
|
1909
|
+
* Authentication required
|
|
1910
|
+
*/
|
|
1911
|
+
401: ErrorResponse;
|
|
1912
|
+
/**
|
|
1913
|
+
* Signed in, but not allowed to do this
|
|
1914
|
+
*/
|
|
1915
|
+
403: ErrorResponse;
|
|
1916
|
+
};
|
|
1917
|
+
|
|
1918
|
+
export declare type GetAdminNewsResponse = GetAdminNewsResponses[keyof GetAdminNewsResponses];
|
|
1919
|
+
|
|
1920
|
+
export declare type GetAdminNewsResponses = {
|
|
1921
|
+
/**
|
|
1922
|
+
* Settings and stats, or one topic's stored articles with `topic`
|
|
1923
|
+
*/
|
|
1924
|
+
200: {
|
|
1925
|
+
[key: string]: unknown;
|
|
1926
|
+
};
|
|
1927
|
+
};
|
|
1928
|
+
|
|
1929
|
+
/**
|
|
1930
|
+
* Get site telemetry
|
|
1931
|
+
*/
|
|
1932
|
+
export declare const getAdminOverview: <ThrowOnError extends boolean = false>(options?: Options<GetAdminOverviewData, ThrowOnError>) => RequestResult<GetAdminOverviewResponses, GetAdminOverviewErrors, ThrowOnError>;
|
|
1933
|
+
|
|
1934
|
+
export declare type GetAdminOverviewData = {
|
|
1935
|
+
body?: never;
|
|
1936
|
+
path?: never;
|
|
1937
|
+
query?: never;
|
|
1938
|
+
url: '/admin/overview';
|
|
1939
|
+
};
|
|
1940
|
+
|
|
1941
|
+
export declare type GetAdminOverviewError = GetAdminOverviewErrors[keyof GetAdminOverviewErrors];
|
|
1942
|
+
|
|
1943
|
+
export declare type GetAdminOverviewErrors = {
|
|
1944
|
+
/**
|
|
1945
|
+
* Authentication required
|
|
1946
|
+
*/
|
|
1947
|
+
401: ErrorResponse;
|
|
1948
|
+
/**
|
|
1949
|
+
* Signed in, but not allowed to do this
|
|
1950
|
+
*/
|
|
1951
|
+
403: ErrorResponse;
|
|
1952
|
+
};
|
|
1953
|
+
|
|
1954
|
+
export declare type GetAdminOverviewResponse = GetAdminOverviewResponses[keyof GetAdminOverviewResponses];
|
|
1955
|
+
|
|
1956
|
+
export declare type GetAdminOverviewResponses = {
|
|
1957
|
+
/**
|
|
1958
|
+
* Counters
|
|
1959
|
+
*/
|
|
1960
|
+
200: {
|
|
1961
|
+
[key: string]: unknown;
|
|
1962
|
+
};
|
|
1963
|
+
};
|
|
1964
|
+
|
|
1965
|
+
/**
|
|
1966
|
+
* Fetch and cache article from URL
|
|
1967
|
+
*/
|
|
1968
|
+
export declare const getArticle: <ThrowOnError extends boolean = false>(options: Options<GetArticleData, ThrowOnError>) => RequestResult<GetArticleResponses, GetArticleErrors, ThrowOnError>;
|
|
1969
|
+
|
|
1970
|
+
export declare type GetArticleData = {
|
|
1971
|
+
body?: never;
|
|
1972
|
+
path?: never;
|
|
1973
|
+
query: {
|
|
1974
|
+
url: string;
|
|
1975
|
+
};
|
|
1976
|
+
url: '/doc/article';
|
|
1977
|
+
};
|
|
1978
|
+
|
|
1979
|
+
export declare type GetArticleError = GetArticleErrors[keyof GetArticleErrors];
|
|
1980
|
+
|
|
1981
|
+
export declare type GetArticleErrors = {
|
|
1982
|
+
/**
|
|
1983
|
+
* Bad request
|
|
1984
|
+
*/
|
|
1985
|
+
400: ErrorResponse;
|
|
1986
|
+
/**
|
|
1987
|
+
* Internal server error
|
|
1988
|
+
*/
|
|
1989
|
+
500: ErrorResponse;
|
|
1990
|
+
};
|
|
1991
|
+
|
|
1992
|
+
export declare type GetArticleResponse = GetArticleResponses[keyof GetArticleResponses];
|
|
1993
|
+
|
|
1994
|
+
export declare type GetArticleResponses = {
|
|
1995
|
+
/**
|
|
1996
|
+
* Article content
|
|
1997
|
+
*/
|
|
1998
|
+
200: {
|
|
1999
|
+
cached?: boolean;
|
|
2000
|
+
article?: Article;
|
|
2001
|
+
isVideo?: boolean;
|
|
2002
|
+
};
|
|
2003
|
+
};
|
|
2004
|
+
|
|
2005
|
+
/**
|
|
2006
|
+
* Get a chat with messages
|
|
2007
|
+
*/
|
|
2008
|
+
export declare const getChatById: <ThrowOnError extends boolean = false>(options: Options<GetChatByIdData, ThrowOnError>) => RequestResult<GetChatByIdResponses, GetChatByIdErrors, ThrowOnError>;
|
|
2009
|
+
|
|
2010
|
+
export declare type GetChatByIdData = {
|
|
2011
|
+
body?: never;
|
|
2012
|
+
path: {
|
|
2013
|
+
id: string;
|
|
2014
|
+
};
|
|
2015
|
+
query?: never;
|
|
2016
|
+
url: '/agent/chats/{id}';
|
|
2017
|
+
};
|
|
2018
|
+
|
|
2019
|
+
export declare type GetChatByIdError = GetChatByIdErrors[keyof GetChatByIdErrors];
|
|
2020
|
+
|
|
2021
|
+
export declare type GetChatByIdErrors = {
|
|
2022
|
+
/**
|
|
2023
|
+
* Not found
|
|
2024
|
+
*/
|
|
2025
|
+
404: ErrorResponse;
|
|
2026
|
+
};
|
|
2027
|
+
|
|
2028
|
+
export declare type GetChatByIdResponse = GetChatByIdResponses[keyof GetChatByIdResponses];
|
|
2029
|
+
|
|
2030
|
+
export declare type GetChatByIdResponses = {
|
|
2031
|
+
/**
|
|
2032
|
+
* Chat and messages
|
|
2033
|
+
*/
|
|
2034
|
+
200: {
|
|
2035
|
+
chat?: Chat;
|
|
2036
|
+
messages?: Array<{
|
|
2037
|
+
[key: string]: unknown;
|
|
2038
|
+
}>;
|
|
2039
|
+
};
|
|
2040
|
+
};
|
|
2041
|
+
|
|
2042
|
+
/**
|
|
2043
|
+
* Get the location this request geolocates to
|
|
2044
|
+
*/
|
|
2045
|
+
export declare const getClientLocation: <ThrowOnError extends boolean = false>(options?: Options<GetClientLocationData, ThrowOnError>) => RequestResult<GetClientLocationResponses, GetClientLocationErrors, ThrowOnError>;
|
|
2046
|
+
|
|
2047
|
+
export declare type GetClientLocationData = {
|
|
2048
|
+
body?: never;
|
|
2049
|
+
path?: never;
|
|
2050
|
+
query?: never;
|
|
2051
|
+
url: '/geolocation';
|
|
2052
|
+
};
|
|
2053
|
+
|
|
2054
|
+
export declare type GetClientLocationError = GetClientLocationErrors[keyof GetClientLocationErrors];
|
|
2055
|
+
|
|
2056
|
+
export declare type GetClientLocationErrors = {
|
|
2057
|
+
/**
|
|
2058
|
+
* Internal server error
|
|
2059
|
+
*/
|
|
2060
|
+
500: ErrorResponse;
|
|
2061
|
+
};
|
|
2062
|
+
|
|
2063
|
+
export declare type GetClientLocationResponse = GetClientLocationResponses[keyof GetClientLocationResponses];
|
|
2064
|
+
|
|
2065
|
+
export declare type GetClientLocationResponses = {
|
|
2066
|
+
/**
|
|
2067
|
+
* Location
|
|
2068
|
+
*/
|
|
2069
|
+
200: ClientLocation;
|
|
2070
|
+
};
|
|
2071
|
+
|
|
2072
|
+
/**
|
|
2073
|
+
* Get application configuration
|
|
2074
|
+
*/
|
|
2075
|
+
export declare const getConfig: <ThrowOnError extends boolean = false>(options?: Options<GetConfigData, ThrowOnError>) => RequestResult<GetConfigResponses, unknown, ThrowOnError>;
|
|
2076
|
+
|
|
2077
|
+
export declare type GetConfigData = {
|
|
2078
|
+
body?: never;
|
|
2079
|
+
path?: never;
|
|
2080
|
+
query?: never;
|
|
2081
|
+
url: '/config';
|
|
1241
2082
|
};
|
|
1242
2083
|
|
|
1243
2084
|
export declare type GetConfigResponse = GetConfigResponses[keyof GetConfigResponses];
|
|
@@ -1251,10 +2092,54 @@ export declare type GetConfigResponses = {
|
|
|
1251
2092
|
};
|
|
1252
2093
|
};
|
|
1253
2094
|
|
|
2095
|
+
/**
|
|
2096
|
+
* Refresh a linked account's profile and plan
|
|
2097
|
+
*
|
|
2098
|
+
* The key must be sent in a header; the query-string form is not accepted here.
|
|
2099
|
+
*/
|
|
2100
|
+
export declare const getConnectedAccount: <ThrowOnError extends boolean = false>(options?: Options<GetConnectedAccountData, ThrowOnError>) => RequestResult<GetConnectedAccountResponses, GetConnectedAccountErrors, ThrowOnError>;
|
|
2101
|
+
|
|
2102
|
+
export declare type GetConnectedAccountData = {
|
|
2103
|
+
body?: never;
|
|
2104
|
+
path?: never;
|
|
2105
|
+
query?: never;
|
|
2106
|
+
url: '/connect/me';
|
|
2107
|
+
};
|
|
2108
|
+
|
|
2109
|
+
export declare type GetConnectedAccountError = GetConnectedAccountErrors[keyof GetConnectedAccountErrors];
|
|
2110
|
+
|
|
2111
|
+
export declare type GetConnectedAccountErrors = {
|
|
2112
|
+
/**
|
|
2113
|
+
* Invalid API key
|
|
2114
|
+
*/
|
|
2115
|
+
401: {
|
|
2116
|
+
error?: string;
|
|
2117
|
+
};
|
|
2118
|
+
};
|
|
2119
|
+
|
|
2120
|
+
export declare type GetConnectedAccountResponse = GetConnectedAccountResponses[keyof GetConnectedAccountResponses];
|
|
2121
|
+
|
|
2122
|
+
export declare type GetConnectedAccountResponses = {
|
|
2123
|
+
/**
|
|
2124
|
+
* Account
|
|
2125
|
+
*/
|
|
2126
|
+
200: {
|
|
2127
|
+
user: ConnectUser;
|
|
2128
|
+
/**
|
|
2129
|
+
* Lower-case plan key, e.g. `free`, `pro`.
|
|
2130
|
+
*/
|
|
2131
|
+
plan: string;
|
|
2132
|
+
/**
|
|
2133
|
+
* Payment link for the next plan; null when already paid.
|
|
2134
|
+
*/
|
|
2135
|
+
upgrade_url?: string | null;
|
|
2136
|
+
};
|
|
2137
|
+
};
|
|
2138
|
+
|
|
1254
2139
|
/**
|
|
1255
2140
|
* Get a document by ID
|
|
1256
2141
|
*/
|
|
1257
|
-
export declare const getDocumentById: <ThrowOnError extends boolean = false>(options: Options<GetDocumentByIdData, ThrowOnError>) => RequestResult<GetDocumentByIdResponses, GetDocumentByIdErrors, ThrowOnError
|
|
2142
|
+
export declare const getDocumentById: <ThrowOnError extends boolean = false>(options: Options<GetDocumentByIdData, ThrowOnError>) => RequestResult<GetDocumentByIdResponses, GetDocumentByIdErrors, ThrowOnError>;
|
|
1258
2143
|
|
|
1259
2144
|
export declare type GetDocumentByIdData = {
|
|
1260
2145
|
body?: never;
|
|
@@ -1286,7 +2171,7 @@ export declare type GetDocumentByIdResponses = {
|
|
|
1286
2171
|
/**
|
|
1287
2172
|
* Get enabled search engines
|
|
1288
2173
|
*/
|
|
1289
|
-
export declare const getEngineStatus: <ThrowOnError extends boolean = false>(options?: Options<GetEngineStatusData, ThrowOnError>) => RequestResult<GetEngineStatusResponses, unknown, ThrowOnError
|
|
2174
|
+
export declare const getEngineStatus: <ThrowOnError extends boolean = false>(options?: Options<GetEngineStatusData, ThrowOnError>) => RequestResult<GetEngineStatusResponses, unknown, ThrowOnError>;
|
|
1290
2175
|
|
|
1291
2176
|
export declare type GetEngineStatusData = {
|
|
1292
2177
|
body?: never;
|
|
@@ -1306,10 +2191,54 @@ export declare type GetEngineStatusResponses = {
|
|
|
1306
2191
|
};
|
|
1307
2192
|
};
|
|
1308
2193
|
|
|
2194
|
+
/**
|
|
2195
|
+
* Stream a Drive file's contents
|
|
2196
|
+
*/
|
|
2197
|
+
export declare const getGoogleDriveContent: <ThrowOnError extends boolean = false>(options: Options<GetGoogleDriveContentData, ThrowOnError>) => RequestResult<GetGoogleDriveContentResponses, GetGoogleDriveContentErrors, ThrowOnError>;
|
|
2198
|
+
|
|
2199
|
+
export declare type GetGoogleDriveContentData = {
|
|
2200
|
+
body?: never;
|
|
2201
|
+
path?: never;
|
|
2202
|
+
query: {
|
|
2203
|
+
fileId: string;
|
|
2204
|
+
};
|
|
2205
|
+
url: '/doc/google-docs/content';
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2208
|
+
export declare type GetGoogleDriveContentError = GetGoogleDriveContentErrors[keyof GetGoogleDriveContentErrors];
|
|
2209
|
+
|
|
2210
|
+
export declare type GetGoogleDriveContentErrors = {
|
|
2211
|
+
/**
|
|
2212
|
+
* Bad request
|
|
2213
|
+
*/
|
|
2214
|
+
400: ErrorResponse;
|
|
2215
|
+
/**
|
|
2216
|
+
* Not connected to Google Drive
|
|
2217
|
+
*/
|
|
2218
|
+
401: {
|
|
2219
|
+
success?: boolean;
|
|
2220
|
+
error?: string;
|
|
2221
|
+
needsReauth?: boolean;
|
|
2222
|
+
};
|
|
2223
|
+
/**
|
|
2224
|
+
* This kind of Google file has no preview
|
|
2225
|
+
*/
|
|
2226
|
+
415: ErrorResponse;
|
|
2227
|
+
};
|
|
2228
|
+
|
|
2229
|
+
export declare type GetGoogleDriveContentResponse = GetGoogleDriveContentResponses[keyof GetGoogleDriveContentResponses];
|
|
2230
|
+
|
|
2231
|
+
export declare type GetGoogleDriveContentResponses = {
|
|
2232
|
+
/**
|
|
2233
|
+
* File bytes: PDFs and images as-is, Google Docs as HTML, Sheets and Slides as PDF
|
|
2234
|
+
*/
|
|
2235
|
+
200: Blob | File;
|
|
2236
|
+
};
|
|
2237
|
+
|
|
1309
2238
|
/**
|
|
1310
2239
|
* Download a Google Drive file by ID
|
|
1311
2240
|
*/
|
|
1312
|
-
export declare const getGoogleDriveFile: <ThrowOnError extends boolean = false>(options: Options<GetGoogleDriveFileData, ThrowOnError>) => RequestResult<GetGoogleDriveFileResponses, unknown, ThrowOnError
|
|
2241
|
+
export declare const getGoogleDriveFile: <ThrowOnError extends boolean = false>(options: Options<GetGoogleDriveFileData, ThrowOnError>) => RequestResult<GetGoogleDriveFileResponses, unknown, ThrowOnError>;
|
|
1313
2242
|
|
|
1314
2243
|
export declare type GetGoogleDriveFileData = {
|
|
1315
2244
|
body?: never;
|
|
@@ -1331,10 +2260,61 @@ export declare type GetGoogleDriveFileResponses = {
|
|
|
1331
2260
|
};
|
|
1332
2261
|
};
|
|
1333
2262
|
|
|
2263
|
+
/**
|
|
2264
|
+
* List every file under a Drive folder
|
|
2265
|
+
*/
|
|
2266
|
+
export declare const getGoogleDriveFolderTree: <ThrowOnError extends boolean = false>(options: Options<GetGoogleDriveFolderTreeData, ThrowOnError>) => RequestResult<GetGoogleDriveFolderTreeResponses, GetGoogleDriveFolderTreeErrors, ThrowOnError>;
|
|
2267
|
+
|
|
2268
|
+
export declare type GetGoogleDriveFolderTreeData = {
|
|
2269
|
+
body?: never;
|
|
2270
|
+
path?: never;
|
|
2271
|
+
query: {
|
|
2272
|
+
/**
|
|
2273
|
+
* Folder to walk; `root` for all of My Drive.
|
|
2274
|
+
*/
|
|
2275
|
+
folderId: string;
|
|
2276
|
+
};
|
|
2277
|
+
url: '/doc/google-docs/folder-tree';
|
|
2278
|
+
};
|
|
2279
|
+
|
|
2280
|
+
export declare type GetGoogleDriveFolderTreeError = GetGoogleDriveFolderTreeErrors[keyof GetGoogleDriveFolderTreeErrors];
|
|
2281
|
+
|
|
2282
|
+
export declare type GetGoogleDriveFolderTreeErrors = {
|
|
2283
|
+
/**
|
|
2284
|
+
* Bad request
|
|
2285
|
+
*/
|
|
2286
|
+
400: ErrorResponse;
|
|
2287
|
+
/**
|
|
2288
|
+
* Not connected to Google Drive
|
|
2289
|
+
*/
|
|
2290
|
+
401: {
|
|
2291
|
+
success?: boolean;
|
|
2292
|
+
error?: string;
|
|
2293
|
+
needsReauth?: boolean;
|
|
2294
|
+
};
|
|
2295
|
+
};
|
|
2296
|
+
|
|
2297
|
+
export declare type GetGoogleDriveFolderTreeResponse = GetGoogleDriveFolderTreeResponses[keyof GetGoogleDriveFolderTreeResponses];
|
|
2298
|
+
|
|
2299
|
+
export declare type GetGoogleDriveFolderTreeResponses = {
|
|
2300
|
+
/**
|
|
2301
|
+
* Walk result
|
|
2302
|
+
*/
|
|
2303
|
+
200: {
|
|
2304
|
+
success?: boolean;
|
|
2305
|
+
root?: DriveItem;
|
|
2306
|
+
items?: Array<DriveItem>;
|
|
2307
|
+
/**
|
|
2308
|
+
* True when the walk stopped early (2,000 items or 8 levels).
|
|
2309
|
+
*/
|
|
2310
|
+
truncated?: boolean;
|
|
2311
|
+
};
|
|
2312
|
+
};
|
|
2313
|
+
|
|
1334
2314
|
/**
|
|
1335
2315
|
* Get Google access token from cookies
|
|
1336
2316
|
*/
|
|
1337
|
-
export declare const getGoogleToken: <ThrowOnError extends boolean = false>(options?: Options<GetGoogleTokenData, ThrowOnError>) => RequestResult<GetGoogleTokenResponses, unknown, ThrowOnError
|
|
2317
|
+
export declare const getGoogleToken: <ThrowOnError extends boolean = false>(options?: Options<GetGoogleTokenData, ThrowOnError>) => RequestResult<GetGoogleTokenResponses, unknown, ThrowOnError>;
|
|
1338
2318
|
|
|
1339
2319
|
export declare type GetGoogleTokenData = {
|
|
1340
2320
|
body?: never;
|
|
@@ -1355,10 +2335,67 @@ export declare type GetGoogleTokenResponses = {
|
|
|
1355
2335
|
};
|
|
1356
2336
|
};
|
|
1357
2337
|
|
|
2338
|
+
/**
|
|
2339
|
+
* Get a memory
|
|
2340
|
+
*/
|
|
2341
|
+
export declare const getMemory: <ThrowOnError extends boolean = false>(options: Options<GetMemoryData, ThrowOnError>) => RequestResult<GetMemoryResponses, GetMemoryErrors, ThrowOnError>;
|
|
2342
|
+
|
|
2343
|
+
export declare type GetMemoryData = {
|
|
2344
|
+
body?: never;
|
|
2345
|
+
path: {
|
|
2346
|
+
id: string;
|
|
2347
|
+
};
|
|
2348
|
+
query?: never;
|
|
2349
|
+
url: '/user/memories/{id}';
|
|
2350
|
+
};
|
|
2351
|
+
|
|
2352
|
+
export declare type GetMemoryError = GetMemoryErrors[keyof GetMemoryErrors];
|
|
2353
|
+
|
|
2354
|
+
export declare type GetMemoryErrors = {
|
|
2355
|
+
/**
|
|
2356
|
+
* Authentication required
|
|
2357
|
+
*/
|
|
2358
|
+
401: ErrorResponse;
|
|
2359
|
+
/**
|
|
2360
|
+
* Not found
|
|
2361
|
+
*/
|
|
2362
|
+
404: ErrorResponse;
|
|
2363
|
+
};
|
|
2364
|
+
|
|
2365
|
+
export declare type GetMemoryResponse = GetMemoryResponses[keyof GetMemoryResponses];
|
|
2366
|
+
|
|
2367
|
+
export declare type GetMemoryResponses = {
|
|
2368
|
+
/**
|
|
2369
|
+
* Memory
|
|
2370
|
+
*/
|
|
2371
|
+
200: Memory;
|
|
2372
|
+
};
|
|
2373
|
+
|
|
2374
|
+
/**
|
|
2375
|
+
* Get the news widget's public settings
|
|
2376
|
+
*/
|
|
2377
|
+
export declare const getNewsSettings: <ThrowOnError extends boolean = false>(options?: Options<GetNewsSettingsData, ThrowOnError>) => RequestResult<GetNewsSettingsResponses, unknown, ThrowOnError>;
|
|
2378
|
+
|
|
2379
|
+
export declare type GetNewsSettingsData = {
|
|
2380
|
+
body?: never;
|
|
2381
|
+
path?: never;
|
|
2382
|
+
query?: never;
|
|
2383
|
+
url: '/news/settings';
|
|
2384
|
+
};
|
|
2385
|
+
|
|
2386
|
+
export declare type GetNewsSettingsResponse = GetNewsSettingsResponses[keyof GetNewsSettingsResponses];
|
|
2387
|
+
|
|
2388
|
+
export declare type GetNewsSettingsResponses = {
|
|
2389
|
+
/**
|
|
2390
|
+
* Settings
|
|
2391
|
+
*/
|
|
2392
|
+
200: NewsWidgetSettings;
|
|
2393
|
+
};
|
|
2394
|
+
|
|
1358
2395
|
/**
|
|
1359
2396
|
* Get NotebookLM connection status
|
|
1360
2397
|
*/
|
|
1361
|
-
export declare const getNotebooklmStatus: <ThrowOnError extends boolean = false>(options?: Options<GetNotebooklmStatusData, ThrowOnError>) => RequestResult<GetNotebooklmStatusResponses, GetNotebooklmStatusErrors, ThrowOnError
|
|
2398
|
+
export declare const getNotebooklmStatus: <ThrowOnError extends boolean = false>(options?: Options<GetNotebooklmStatusData, ThrowOnError>) => RequestResult<GetNotebooklmStatusResponses, GetNotebooklmStatusErrors, ThrowOnError>;
|
|
1362
2399
|
|
|
1363
2400
|
export declare type GetNotebooklmStatusData = {
|
|
1364
2401
|
body?: never;
|
|
@@ -1390,10 +2427,46 @@ export declare type GetNotebooklmStatusResponses = {
|
|
|
1390
2427
|
};
|
|
1391
2428
|
};
|
|
1392
2429
|
|
|
2430
|
+
/**
|
|
2431
|
+
* Get a playlist
|
|
2432
|
+
*
|
|
2433
|
+
* Public playlists are readable by anyone; others only by their members.
|
|
2434
|
+
*/
|
|
2435
|
+
export declare const getPlaylist: <ThrowOnError extends boolean = false>(options: Options<GetPlaylistData, ThrowOnError>) => RequestResult<GetPlaylistResponses, GetPlaylistErrors, ThrowOnError>;
|
|
2436
|
+
|
|
2437
|
+
export declare type GetPlaylistData = {
|
|
2438
|
+
body?: never;
|
|
2439
|
+
path: {
|
|
2440
|
+
id: string;
|
|
2441
|
+
};
|
|
2442
|
+
query?: never;
|
|
2443
|
+
url: '/learn/playlists/{id}';
|
|
2444
|
+
};
|
|
2445
|
+
|
|
2446
|
+
export declare type GetPlaylistError = GetPlaylistErrors[keyof GetPlaylistErrors];
|
|
2447
|
+
|
|
2448
|
+
export declare type GetPlaylistErrors = {
|
|
2449
|
+
/**
|
|
2450
|
+
* Not found
|
|
2451
|
+
*/
|
|
2452
|
+
404: ErrorResponse;
|
|
2453
|
+
};
|
|
2454
|
+
|
|
2455
|
+
export declare type GetPlaylistResponse = GetPlaylistResponses[keyof GetPlaylistResponses];
|
|
2456
|
+
|
|
2457
|
+
export declare type GetPlaylistResponses = {
|
|
2458
|
+
/**
|
|
2459
|
+
* Playlist
|
|
2460
|
+
*/
|
|
2461
|
+
200: {
|
|
2462
|
+
playlist: Playlist;
|
|
2463
|
+
};
|
|
2464
|
+
};
|
|
2465
|
+
|
|
1393
2466
|
/**
|
|
1394
2467
|
* Resolve a share token to a document
|
|
1395
2468
|
*/
|
|
1396
|
-
export declare const getSharedDocument: <ThrowOnError extends boolean = false>(options: Options<GetSharedDocumentData, ThrowOnError>) => RequestResult<GetSharedDocumentResponses, GetSharedDocumentErrors, ThrowOnError
|
|
2469
|
+
export declare const getSharedDocument: <ThrowOnError extends boolean = false>(options: Options<GetSharedDocumentData, ThrowOnError>) => RequestResult<GetSharedDocumentResponses, GetSharedDocumentErrors, ThrowOnError>;
|
|
1397
2470
|
|
|
1398
2471
|
export declare type GetSharedDocumentData = {
|
|
1399
2472
|
body?: never;
|
|
@@ -1432,10 +2505,67 @@ export declare type GetSharedDocumentResponses = {
|
|
|
1432
2505
|
};
|
|
1433
2506
|
};
|
|
1434
2507
|
|
|
2508
|
+
/**
|
|
2509
|
+
* Get trending topics with headlines
|
|
2510
|
+
*
|
|
2511
|
+
* Wikipedia's daily most-viewed topics joined to matching headlines from The News API. Answers are cached and archived, so an upstream outage serves the last good copy.
|
|
2512
|
+
*/
|
|
2513
|
+
export declare const getTrendingNews: <ThrowOnError extends boolean = false>(options?: Options<GetTrendingNewsData, ThrowOnError>) => RequestResult<GetTrendingNewsResponses, GetTrendingNewsErrors, ThrowOnError>;
|
|
2514
|
+
|
|
2515
|
+
export declare type GetTrendingNewsData = {
|
|
2516
|
+
body?: never;
|
|
2517
|
+
path?: never;
|
|
2518
|
+
query?: {
|
|
2519
|
+
/**
|
|
2520
|
+
* How many topics.
|
|
2521
|
+
*/
|
|
2522
|
+
limit?: number;
|
|
2523
|
+
/**
|
|
2524
|
+
* Return headlines for this one topic instead of the trending list.
|
|
2525
|
+
*/
|
|
2526
|
+
topic?: string;
|
|
2527
|
+
/**
|
|
2528
|
+
* Comma-separated topics to use instead of the site defaults (max 20).
|
|
2529
|
+
*/
|
|
2530
|
+
topics?: string;
|
|
2531
|
+
};
|
|
2532
|
+
url: '/news/trending';
|
|
2533
|
+
};
|
|
2534
|
+
|
|
2535
|
+
export declare type GetTrendingNewsError = GetTrendingNewsErrors[keyof GetTrendingNewsErrors];
|
|
2536
|
+
|
|
2537
|
+
export declare type GetTrendingNewsErrors = {
|
|
2538
|
+
/**
|
|
2539
|
+
* The news widget is switched off on this site
|
|
2540
|
+
*/
|
|
2541
|
+
404: ErrorResponse;
|
|
2542
|
+
/**
|
|
2543
|
+
* Upstream news source failed and nothing is archived
|
|
2544
|
+
*/
|
|
2545
|
+
502: ErrorResponse;
|
|
2546
|
+
};
|
|
2547
|
+
|
|
2548
|
+
export declare type GetTrendingNewsResponse = GetTrendingNewsResponses[keyof GetTrendingNewsResponses];
|
|
2549
|
+
|
|
2550
|
+
export declare type GetTrendingNewsResponses = {
|
|
2551
|
+
/**
|
|
2552
|
+
* Trending topics, or one topic's headlines with `topic`
|
|
2553
|
+
*/
|
|
2554
|
+
200: {
|
|
2555
|
+
source?: string;
|
|
2556
|
+
date?: string;
|
|
2557
|
+
topics: Array<NewsTopic>;
|
|
2558
|
+
} | {
|
|
2559
|
+
topic: string;
|
|
2560
|
+
news_count?: number;
|
|
2561
|
+
articles: Array<NewsArticle>;
|
|
2562
|
+
};
|
|
2563
|
+
};
|
|
2564
|
+
|
|
1435
2565
|
/**
|
|
1436
2566
|
* Get extracted content for an uploaded file
|
|
1437
2567
|
*/
|
|
1438
|
-
export declare const getUploadedFile: <ThrowOnError extends boolean = false>(options: Options<GetUploadedFileData, ThrowOnError>) => RequestResult<GetUploadedFileResponses, unknown, ThrowOnError
|
|
2568
|
+
export declare const getUploadedFile: <ThrowOnError extends boolean = false>(options: Options<GetUploadedFileData, ThrowOnError>) => RequestResult<GetUploadedFileResponses, unknown, ThrowOnError>;
|
|
1439
2569
|
|
|
1440
2570
|
export declare type GetUploadedFileData = {
|
|
1441
2571
|
body?: never;
|
|
@@ -1461,7 +2591,7 @@ export declare type GetUploadedFileResponses = {
|
|
|
1461
2591
|
/**
|
|
1462
2592
|
* Get current user profile
|
|
1463
2593
|
*/
|
|
1464
|
-
export declare const getUser: <ThrowOnError extends boolean = false>(options?: Options<GetUserData, ThrowOnError>) => RequestResult<GetUserResponses, GetUserErrors, ThrowOnError
|
|
2594
|
+
export declare const getUser: <ThrowOnError extends boolean = false>(options?: Options<GetUserData, ThrowOnError>) => RequestResult<GetUserResponses, GetUserErrors, ThrowOnError>;
|
|
1465
2595
|
|
|
1466
2596
|
export declare type GetUserData = {
|
|
1467
2597
|
body?: never;
|
|
@@ -1491,7 +2621,7 @@ export declare type GetUserResponses = {
|
|
|
1491
2621
|
/**
|
|
1492
2622
|
* Get storage usage
|
|
1493
2623
|
*/
|
|
1494
|
-
export declare const getUserStorage: <ThrowOnError extends boolean = false>(options?: Options<GetUserStorageData, ThrowOnError>) => RequestResult<GetUserStorageResponses, GetUserStorageErrors, ThrowOnError
|
|
2624
|
+
export declare const getUserStorage: <ThrowOnError extends boolean = false>(options?: Options<GetUserStorageData, ThrowOnError>) => RequestResult<GetUserStorageResponses, GetUserStorageErrors, ThrowOnError>;
|
|
1495
2625
|
|
|
1496
2626
|
export declare type GetUserStorageData = {
|
|
1497
2627
|
body?: never;
|
|
@@ -1521,7 +2651,7 @@ export declare type GetUserStorageResponses = {
|
|
|
1521
2651
|
/**
|
|
1522
2652
|
* Get Google OAuth consent URL
|
|
1523
2653
|
*/
|
|
1524
|
-
export declare const googleDocsAuth: <ThrowOnError extends boolean = false>(options?: Options<GoogleDocsAuthData, ThrowOnError>) => RequestResult<GoogleDocsAuthResponses, unknown, ThrowOnError
|
|
2654
|
+
export declare const googleDocsAuth: <ThrowOnError extends boolean = false>(options?: Options<GoogleDocsAuthData, ThrowOnError>) => RequestResult<GoogleDocsAuthResponses, unknown, ThrowOnError>;
|
|
1525
2655
|
|
|
1526
2656
|
export declare type GoogleDocsAuthData = {
|
|
1527
2657
|
body?: never;
|
|
@@ -1547,7 +2677,7 @@ export declare type GoogleDocsAuthResponses = {
|
|
|
1547
2677
|
/**
|
|
1548
2678
|
* Check Google Drive connection status
|
|
1549
2679
|
*/
|
|
1550
|
-
export declare const googleDocsAuthStatus: <ThrowOnError extends boolean = false>(options?: Options<GoogleDocsAuthStatusData, ThrowOnError>) => RequestResult<GoogleDocsAuthStatusResponses, unknown, ThrowOnError
|
|
2680
|
+
export declare const googleDocsAuthStatus: <ThrowOnError extends boolean = false>(options?: Options<GoogleDocsAuthStatusData, ThrowOnError>) => RequestResult<GoogleDocsAuthStatusResponses, unknown, ThrowOnError>;
|
|
1551
2681
|
|
|
1552
2682
|
export declare type GoogleDocsAuthStatusData = {
|
|
1553
2683
|
body?: never;
|
|
@@ -1573,7 +2703,7 @@ export declare type GoogleDocsAuthStatusResponses = {
|
|
|
1573
2703
|
/**
|
|
1574
2704
|
* OAuth callback — exchanges code for tokens
|
|
1575
2705
|
*/
|
|
1576
|
-
export declare const googleDocsCallback: <ThrowOnError extends boolean = false>(options: Options<GoogleDocsCallbackData, ThrowOnError>) => RequestResult<GoogleDocsCallbackResponses, unknown, ThrowOnError
|
|
2706
|
+
export declare const googleDocsCallback: <ThrowOnError extends boolean = false>(options: Options<GoogleDocsCallbackData, ThrowOnError>) => RequestResult<GoogleDocsCallbackResponses, unknown, ThrowOnError>;
|
|
1577
2707
|
|
|
1578
2708
|
export declare type GoogleDocsCallbackData = {
|
|
1579
2709
|
body?: never;
|
|
@@ -1593,10 +2723,12 @@ export declare type GoogleDocsCallbackResponses = {
|
|
|
1593
2723
|
200: string;
|
|
1594
2724
|
};
|
|
1595
2725
|
|
|
2726
|
+
export declare type IdPath = string;
|
|
2727
|
+
|
|
1596
2728
|
/**
|
|
1597
2729
|
* Import a Google Docs document
|
|
1598
2730
|
*/
|
|
1599
|
-
export declare const importFromGoogleDocs: <ThrowOnError extends boolean = false>(options: Options<ImportFromGoogleDocsData, ThrowOnError>) => RequestResult<ImportFromGoogleDocsResponses, unknown, ThrowOnError
|
|
2731
|
+
export declare const importFromGoogleDocs: <ThrowOnError extends boolean = false>(options: Options<ImportFromGoogleDocsData, ThrowOnError>) => RequestResult<ImportFromGoogleDocsResponses, unknown, ThrowOnError>;
|
|
1600
2732
|
|
|
1601
2733
|
export declare type ImportFromGoogleDocsData = {
|
|
1602
2734
|
body: {
|
|
@@ -1607,24 +2739,201 @@ export declare type ImportFromGoogleDocsData = {
|
|
|
1607
2739
|
};
|
|
1608
2740
|
path?: never;
|
|
1609
2741
|
query?: never;
|
|
1610
|
-
url: '/doc/google-docs/import';
|
|
2742
|
+
url: '/doc/google-docs/import';
|
|
2743
|
+
};
|
|
2744
|
+
|
|
2745
|
+
export declare type ImportFromGoogleDocsResponse = ImportFromGoogleDocsResponses[keyof ImportFromGoogleDocsResponses];
|
|
2746
|
+
|
|
2747
|
+
export declare type ImportFromGoogleDocsResponses = {
|
|
2748
|
+
/**
|
|
2749
|
+
* Imported
|
|
2750
|
+
*/
|
|
2751
|
+
201: {
|
|
2752
|
+
success?: boolean;
|
|
2753
|
+
};
|
|
2754
|
+
};
|
|
2755
|
+
|
|
2756
|
+
export declare type LimitQuery = number;
|
|
2757
|
+
|
|
2758
|
+
/**
|
|
2759
|
+
* Get one page of a table's rows
|
|
2760
|
+
*/
|
|
2761
|
+
export declare const listAdminTableRows: <ThrowOnError extends boolean = false>(options: Options<ListAdminTableRowsData, ThrowOnError>) => RequestResult<ListAdminTableRowsResponses, ListAdminTableRowsErrors, ThrowOnError>;
|
|
2762
|
+
|
|
2763
|
+
export declare type ListAdminTableRowsData = {
|
|
2764
|
+
body?: never;
|
|
2765
|
+
path: {
|
|
2766
|
+
/**
|
|
2767
|
+
* A registered table key.
|
|
2768
|
+
*/
|
|
2769
|
+
table: string;
|
|
2770
|
+
};
|
|
2771
|
+
query?: {
|
|
2772
|
+
page?: number;
|
|
2773
|
+
limit?: number;
|
|
2774
|
+
/**
|
|
2775
|
+
* Free-text filter.
|
|
2776
|
+
*/
|
|
2777
|
+
q?: string;
|
|
2778
|
+
};
|
|
2779
|
+
url: '/admin/database/{table}';
|
|
2780
|
+
};
|
|
2781
|
+
|
|
2782
|
+
export declare type ListAdminTableRowsError = ListAdminTableRowsErrors[keyof ListAdminTableRowsErrors];
|
|
2783
|
+
|
|
2784
|
+
export declare type ListAdminTableRowsErrors = {
|
|
2785
|
+
/**
|
|
2786
|
+
* Authentication required
|
|
2787
|
+
*/
|
|
2788
|
+
401: ErrorResponse;
|
|
2789
|
+
/**
|
|
2790
|
+
* Signed in, but not allowed to do this
|
|
2791
|
+
*/
|
|
2792
|
+
403: ErrorResponse;
|
|
2793
|
+
/**
|
|
2794
|
+
* Not found
|
|
2795
|
+
*/
|
|
2796
|
+
404: ErrorResponse;
|
|
2797
|
+
};
|
|
2798
|
+
|
|
2799
|
+
export declare type ListAdminTableRowsResponse = ListAdminTableRowsResponses[keyof ListAdminTableRowsResponses];
|
|
2800
|
+
|
|
2801
|
+
export declare type ListAdminTableRowsResponses = {
|
|
2802
|
+
/**
|
|
2803
|
+
* Rows
|
|
2804
|
+
*/
|
|
2805
|
+
200: {
|
|
2806
|
+
[key: string]: unknown;
|
|
2807
|
+
};
|
|
2808
|
+
};
|
|
2809
|
+
|
|
2810
|
+
/**
|
|
2811
|
+
* List users with usage counters
|
|
2812
|
+
*/
|
|
2813
|
+
export declare const listAdminUsers: <ThrowOnError extends boolean = false>(options?: Options<ListAdminUsersData, ThrowOnError>) => RequestResult<ListAdminUsersResponses, ListAdminUsersErrors, ThrowOnError>;
|
|
2814
|
+
|
|
2815
|
+
export declare type ListAdminUsersData = {
|
|
2816
|
+
body?: never;
|
|
2817
|
+
path?: never;
|
|
2818
|
+
query?: {
|
|
2819
|
+
page?: number;
|
|
2820
|
+
limit?: number;
|
|
2821
|
+
/**
|
|
2822
|
+
* Free-text filter.
|
|
2823
|
+
*/
|
|
2824
|
+
q?: string;
|
|
2825
|
+
hideAnonymous?: boolean;
|
|
2826
|
+
/**
|
|
2827
|
+
* Any column, usage counters included.
|
|
2828
|
+
*/
|
|
2829
|
+
sort?: string;
|
|
2830
|
+
dir?: 'asc' | 'desc';
|
|
2831
|
+
};
|
|
2832
|
+
url: '/admin/users';
|
|
2833
|
+
};
|
|
2834
|
+
|
|
2835
|
+
export declare type ListAdminUsersError = ListAdminUsersErrors[keyof ListAdminUsersErrors];
|
|
2836
|
+
|
|
2837
|
+
export declare type ListAdminUsersErrors = {
|
|
2838
|
+
/**
|
|
2839
|
+
* Authentication required
|
|
2840
|
+
*/
|
|
2841
|
+
401: ErrorResponse;
|
|
2842
|
+
/**
|
|
2843
|
+
* Signed in, but not allowed to do this
|
|
2844
|
+
*/
|
|
2845
|
+
403: ErrorResponse;
|
|
2846
|
+
};
|
|
2847
|
+
|
|
2848
|
+
export declare type ListAdminUsersResponse = ListAdminUsersResponses[keyof ListAdminUsersResponses];
|
|
2849
|
+
|
|
2850
|
+
export declare type ListAdminUsersResponses = {
|
|
2851
|
+
/**
|
|
2852
|
+
* Page of users
|
|
2853
|
+
*/
|
|
2854
|
+
200: {
|
|
2855
|
+
users?: Array<{
|
|
2856
|
+
[key: string]: unknown;
|
|
2857
|
+
}>;
|
|
2858
|
+
page?: number;
|
|
2859
|
+
limit?: number;
|
|
2860
|
+
matchedUsers?: number;
|
|
2861
|
+
pageCount?: number;
|
|
2862
|
+
totals?: {
|
|
2863
|
+
[key: string]: unknown;
|
|
2864
|
+
};
|
|
2865
|
+
/**
|
|
2866
|
+
* Alias of matchedUsers.
|
|
2867
|
+
*/
|
|
2868
|
+
total?: number;
|
|
2869
|
+
/**
|
|
2870
|
+
* Alias of pageCount.
|
|
2871
|
+
*/
|
|
2872
|
+
pages?: number;
|
|
2873
|
+
};
|
|
2874
|
+
};
|
|
2875
|
+
|
|
2876
|
+
/**
|
|
2877
|
+
* List my saved agent-skill preferences
|
|
2878
|
+
*/
|
|
2879
|
+
export declare const listAgentSkills: <ThrowOnError extends boolean = false>(options?: Options<ListAgentSkillsData, ThrowOnError>) => RequestResult<ListAgentSkillsResponses, ListAgentSkillsErrors, ThrowOnError>;
|
|
2880
|
+
|
|
2881
|
+
export declare type ListAgentSkillsData = {
|
|
2882
|
+
body?: never;
|
|
2883
|
+
path?: never;
|
|
2884
|
+
query?: never;
|
|
2885
|
+
url: '/user/agent-skills';
|
|
2886
|
+
};
|
|
2887
|
+
|
|
2888
|
+
export declare type ListAgentSkillsError = ListAgentSkillsErrors[keyof ListAgentSkillsErrors];
|
|
2889
|
+
|
|
2890
|
+
export declare type ListAgentSkillsErrors = {
|
|
2891
|
+
/**
|
|
2892
|
+
* Authentication required
|
|
2893
|
+
*/
|
|
2894
|
+
401: ErrorResponse;
|
|
2895
|
+
};
|
|
2896
|
+
|
|
2897
|
+
export declare type ListAgentSkillsResponse = ListAgentSkillsResponses[keyof ListAgentSkillsResponses];
|
|
2898
|
+
|
|
2899
|
+
export declare type ListAgentSkillsResponses = {
|
|
2900
|
+
/**
|
|
2901
|
+
* Stored preferences
|
|
2902
|
+
*/
|
|
2903
|
+
200: Array<{
|
|
2904
|
+
[key: string]: unknown;
|
|
2905
|
+
}>;
|
|
2906
|
+
};
|
|
2907
|
+
|
|
2908
|
+
/**
|
|
2909
|
+
* List the social sign-in providers configured here
|
|
2910
|
+
*
|
|
2911
|
+
* Used to show only the sign-in buttons that will work. Sign-in itself is Better Auth, under `/auth*`.
|
|
2912
|
+
*/
|
|
2913
|
+
export declare const listAuthProviders: <ThrowOnError extends boolean = false>(options?: Options<ListAuthProvidersData, ThrowOnError>) => RequestResult<ListAuthProvidersResponses, unknown, ThrowOnError>;
|
|
2914
|
+
|
|
2915
|
+
export declare type ListAuthProvidersData = {
|
|
2916
|
+
body?: never;
|
|
2917
|
+
path?: never;
|
|
2918
|
+
query?: never;
|
|
2919
|
+
url: '/auth/providers';
|
|
1611
2920
|
};
|
|
1612
2921
|
|
|
1613
|
-
export declare type
|
|
2922
|
+
export declare type ListAuthProvidersResponse = ListAuthProvidersResponses[keyof ListAuthProvidersResponses];
|
|
1614
2923
|
|
|
1615
|
-
export declare type
|
|
2924
|
+
export declare type ListAuthProvidersResponses = {
|
|
1616
2925
|
/**
|
|
1617
|
-
*
|
|
2926
|
+
* Providers
|
|
1618
2927
|
*/
|
|
1619
|
-
|
|
1620
|
-
|
|
2928
|
+
200: {
|
|
2929
|
+
providers: Array<'google' | 'discord' | 'linkedin'>;
|
|
1621
2930
|
};
|
|
1622
2931
|
};
|
|
1623
2932
|
|
|
1624
2933
|
/**
|
|
1625
2934
|
* List user's chats
|
|
1626
2935
|
*/
|
|
1627
|
-
export declare const listChats: <ThrowOnError extends boolean = false>(options?: Options<ListChatsData, ThrowOnError>) => RequestResult<ListChatsResponses, ListChatsErrors, ThrowOnError
|
|
2936
|
+
export declare const listChats: <ThrowOnError extends boolean = false>(options?: Options<ListChatsData, ThrowOnError>) => RequestResult<ListChatsResponses, ListChatsErrors, ThrowOnError>;
|
|
1628
2937
|
|
|
1629
2938
|
export declare type ListChatsData = {
|
|
1630
2939
|
body?: never;
|
|
@@ -1656,7 +2965,7 @@ export declare type ListChatsResponses = {
|
|
|
1656
2965
|
/**
|
|
1657
2966
|
* List documents
|
|
1658
2967
|
*/
|
|
1659
|
-
export declare const listDocuments: <ThrowOnError extends boolean = false>(options?: Options<ListDocumentsData, ThrowOnError>) => RequestResult<ListDocumentsResponses, unknown, ThrowOnError
|
|
2968
|
+
export declare const listDocuments: <ThrowOnError extends boolean = false>(options?: Options<ListDocumentsData, ThrowOnError>) => RequestResult<ListDocumentsResponses, unknown, ThrowOnError>;
|
|
1660
2969
|
|
|
1661
2970
|
export declare type ListDocumentsData = {
|
|
1662
2971
|
body?: never;
|
|
@@ -1674,10 +2983,47 @@ export declare type ListDocumentsResponses = {
|
|
|
1674
2983
|
200: Array<Document_2>;
|
|
1675
2984
|
};
|
|
1676
2985
|
|
|
2986
|
+
/**
|
|
2987
|
+
* List skills and whether each is enabled
|
|
2988
|
+
*/
|
|
2989
|
+
export declare const listEnabledSkills: <ThrowOnError extends boolean = false>(options?: Options<ListEnabledSkillsData, ThrowOnError>) => RequestResult<ListEnabledSkillsResponses, ListEnabledSkillsErrors, ThrowOnError>;
|
|
2990
|
+
|
|
2991
|
+
export declare type ListEnabledSkillsData = {
|
|
2992
|
+
body?: never;
|
|
2993
|
+
path?: never;
|
|
2994
|
+
query?: never;
|
|
2995
|
+
url: '/user/enabled-skills';
|
|
2996
|
+
};
|
|
2997
|
+
|
|
2998
|
+
export declare type ListEnabledSkillsError = ListEnabledSkillsErrors[keyof ListEnabledSkillsErrors];
|
|
2999
|
+
|
|
3000
|
+
export declare type ListEnabledSkillsErrors = {
|
|
3001
|
+
/**
|
|
3002
|
+
* Authentication required
|
|
3003
|
+
*/
|
|
3004
|
+
401: ErrorResponse;
|
|
3005
|
+
/**
|
|
3006
|
+
* Internal server error
|
|
3007
|
+
*/
|
|
3008
|
+
500: ErrorResponse;
|
|
3009
|
+
};
|
|
3010
|
+
|
|
3011
|
+
export declare type ListEnabledSkillsResponse = ListEnabledSkillsResponses[keyof ListEnabledSkillsResponses];
|
|
3012
|
+
|
|
3013
|
+
export declare type ListEnabledSkillsResponses = {
|
|
3014
|
+
/**
|
|
3015
|
+
* Skills
|
|
3016
|
+
*/
|
|
3017
|
+
200: Array<{
|
|
3018
|
+
id?: string;
|
|
3019
|
+
enabled?: boolean;
|
|
3020
|
+
}>;
|
|
3021
|
+
};
|
|
3022
|
+
|
|
1677
3023
|
/**
|
|
1678
3024
|
* List favorites
|
|
1679
3025
|
*/
|
|
1680
|
-
export declare const listFavorites: <ThrowOnError extends boolean = false>(options?: Options<ListFavoritesData, ThrowOnError>) => RequestResult<ListFavoritesResponses, ListFavoritesErrors, ThrowOnError
|
|
3026
|
+
export declare const listFavorites: <ThrowOnError extends boolean = false>(options?: Options<ListFavoritesData, ThrowOnError>) => RequestResult<ListFavoritesResponses, ListFavoritesErrors, ThrowOnError>;
|
|
1681
3027
|
|
|
1682
3028
|
export declare type ListFavoritesData = {
|
|
1683
3029
|
body?: never;
|
|
@@ -1706,10 +3052,63 @@ export declare type ListFavoritesResponses = {
|
|
|
1706
3052
|
};
|
|
1707
3053
|
};
|
|
1708
3054
|
|
|
3055
|
+
/**
|
|
3056
|
+
* List the folders inside a Drive folder
|
|
3057
|
+
*/
|
|
3058
|
+
export declare const listGoogleDriveFolders: <ThrowOnError extends boolean = false>(options?: Options<ListGoogleDriveFoldersData, ThrowOnError>) => RequestResult<ListGoogleDriveFoldersResponses, ListGoogleDriveFoldersErrors, ThrowOnError>;
|
|
3059
|
+
|
|
3060
|
+
export declare type ListGoogleDriveFoldersData = {
|
|
3061
|
+
body?: never;
|
|
3062
|
+
path?: never;
|
|
3063
|
+
query?: {
|
|
3064
|
+
/**
|
|
3065
|
+
* Folder to open; `root` is My Drive.
|
|
3066
|
+
*/
|
|
3067
|
+
parentId?: string;
|
|
3068
|
+
};
|
|
3069
|
+
url: '/doc/google-docs/folders';
|
|
3070
|
+
};
|
|
3071
|
+
|
|
3072
|
+
export declare type ListGoogleDriveFoldersError = ListGoogleDriveFoldersErrors[keyof ListGoogleDriveFoldersErrors];
|
|
3073
|
+
|
|
3074
|
+
export declare type ListGoogleDriveFoldersErrors = {
|
|
3075
|
+
/**
|
|
3076
|
+
* Bad request
|
|
3077
|
+
*/
|
|
3078
|
+
400: ErrorResponse;
|
|
3079
|
+
/**
|
|
3080
|
+
* Not connected to Google Drive
|
|
3081
|
+
*/
|
|
3082
|
+
401: {
|
|
3083
|
+
success?: boolean;
|
|
3084
|
+
error?: string;
|
|
3085
|
+
needsReauth?: boolean;
|
|
3086
|
+
};
|
|
3087
|
+
};
|
|
3088
|
+
|
|
3089
|
+
export declare type ListGoogleDriveFoldersResponse = ListGoogleDriveFoldersResponses[keyof ListGoogleDriveFoldersResponses];
|
|
3090
|
+
|
|
3091
|
+
export declare type ListGoogleDriveFoldersResponses = {
|
|
3092
|
+
/**
|
|
3093
|
+
* Folder and its subfolders
|
|
3094
|
+
*/
|
|
3095
|
+
200: {
|
|
3096
|
+
success?: boolean;
|
|
3097
|
+
folder?: {
|
|
3098
|
+
id?: string;
|
|
3099
|
+
name?: string;
|
|
3100
|
+
};
|
|
3101
|
+
folders?: Array<{
|
|
3102
|
+
id?: string;
|
|
3103
|
+
name?: string;
|
|
3104
|
+
}>;
|
|
3105
|
+
};
|
|
3106
|
+
};
|
|
3107
|
+
|
|
1709
3108
|
/**
|
|
1710
3109
|
* List MCP servers
|
|
1711
3110
|
*/
|
|
1712
|
-
export declare const listMcpServers: <ThrowOnError extends boolean = false>(options?: Options<ListMcpServersData, ThrowOnError>) => RequestResult<ListMcpServersResponses, unknown, ThrowOnError
|
|
3111
|
+
export declare const listMcpServers: <ThrowOnError extends boolean = false>(options?: Options<ListMcpServersData, ThrowOnError>) => RequestResult<ListMcpServersResponses, unknown, ThrowOnError>;
|
|
1713
3112
|
|
|
1714
3113
|
export declare type ListMcpServersData = {
|
|
1715
3114
|
body?: never;
|
|
@@ -1729,10 +3128,52 @@ export declare type ListMcpServersResponses = {
|
|
|
1729
3128
|
};
|
|
1730
3129
|
};
|
|
1731
3130
|
|
|
3131
|
+
/**
|
|
3132
|
+
* List my memories
|
|
3133
|
+
*/
|
|
3134
|
+
export declare const listMemories: <ThrowOnError extends boolean = false>(options?: Options<ListMemoriesData, ThrowOnError>) => RequestResult<ListMemoriesResponses, ListMemoriesErrors, ThrowOnError>;
|
|
3135
|
+
|
|
3136
|
+
export declare type ListMemoriesData = {
|
|
3137
|
+
body?: never;
|
|
3138
|
+
path?: never;
|
|
3139
|
+
query?: {
|
|
3140
|
+
search?: string;
|
|
3141
|
+
type?: 'user' | 'feedback' | 'project' | 'reference' | 'conversation';
|
|
3142
|
+
/**
|
|
3143
|
+
* Minimum importance.
|
|
3144
|
+
*/
|
|
3145
|
+
importance?: number;
|
|
3146
|
+
limit?: number;
|
|
3147
|
+
};
|
|
3148
|
+
url: '/user/memories';
|
|
3149
|
+
};
|
|
3150
|
+
|
|
3151
|
+
export declare type ListMemoriesError = ListMemoriesErrors[keyof ListMemoriesErrors];
|
|
3152
|
+
|
|
3153
|
+
export declare type ListMemoriesErrors = {
|
|
3154
|
+
/**
|
|
3155
|
+
* Authentication required
|
|
3156
|
+
*/
|
|
3157
|
+
401: ErrorResponse;
|
|
3158
|
+
/**
|
|
3159
|
+
* Internal server error
|
|
3160
|
+
*/
|
|
3161
|
+
500: ErrorResponse;
|
|
3162
|
+
};
|
|
3163
|
+
|
|
3164
|
+
export declare type ListMemoriesResponse = ListMemoriesResponses[keyof ListMemoriesResponses];
|
|
3165
|
+
|
|
3166
|
+
export declare type ListMemoriesResponses = {
|
|
3167
|
+
/**
|
|
3168
|
+
* Memories, most important first
|
|
3169
|
+
*/
|
|
3170
|
+
200: Array<Memory>;
|
|
3171
|
+
};
|
|
3172
|
+
|
|
1732
3173
|
/**
|
|
1733
3174
|
* List notebooks
|
|
1734
3175
|
*/
|
|
1735
|
-
export declare const listNotebooks: <ThrowOnError extends boolean = false>(options?: Options<ListNotebooksData, ThrowOnError>) => RequestResult<ListNotebooksResponses, ListNotebooksErrors, ThrowOnError
|
|
3176
|
+
export declare const listNotebooks: <ThrowOnError extends boolean = false>(options?: Options<ListNotebooksData, ThrowOnError>) => RequestResult<ListNotebooksResponses, ListNotebooksErrors, ThrowOnError>;
|
|
1736
3177
|
|
|
1737
3178
|
export declare type ListNotebooksData = {
|
|
1738
3179
|
body?: never;
|
|
@@ -1753,7 +3194,7 @@ export declare type ListNotebooksErrors = {
|
|
|
1753
3194
|
/**
|
|
1754
3195
|
* List notebook sources
|
|
1755
3196
|
*/
|
|
1756
|
-
export declare const listNotebookSources: <ThrowOnError extends boolean = false>(options: Options<ListNotebookSourcesData, ThrowOnError>) => RequestResult<ListNotebookSourcesResponses, ListNotebookSourcesErrors, ThrowOnError
|
|
3197
|
+
export declare const listNotebookSources: <ThrowOnError extends boolean = false>(options: Options<ListNotebookSourcesData, ThrowOnError>) => RequestResult<ListNotebookSourcesResponses, ListNotebookSourcesErrors, ThrowOnError>;
|
|
1757
3198
|
|
|
1758
3199
|
export declare type ListNotebookSourcesData = {
|
|
1759
3200
|
body?: never;
|
|
@@ -1795,10 +3236,45 @@ export declare type ListNotebooksResponses = {
|
|
|
1795
3236
|
};
|
|
1796
3237
|
};
|
|
1797
3238
|
|
|
3239
|
+
/**
|
|
3240
|
+
* List my saved playlists and invites
|
|
3241
|
+
*/
|
|
3242
|
+
export declare const listPlaylists: <ThrowOnError extends boolean = false>(options?: Options<ListPlaylistsData, ThrowOnError>) => RequestResult<ListPlaylistsResponses, ListPlaylistsErrors, ThrowOnError>;
|
|
3243
|
+
|
|
3244
|
+
export declare type ListPlaylistsData = {
|
|
3245
|
+
body?: never;
|
|
3246
|
+
path?: never;
|
|
3247
|
+
query?: never;
|
|
3248
|
+
url: '/learn/playlists';
|
|
3249
|
+
};
|
|
3250
|
+
|
|
3251
|
+
export declare type ListPlaylistsError = ListPlaylistsErrors[keyof ListPlaylistsErrors];
|
|
3252
|
+
|
|
3253
|
+
export declare type ListPlaylistsErrors = {
|
|
3254
|
+
/**
|
|
3255
|
+
* Authentication required
|
|
3256
|
+
*/
|
|
3257
|
+
401: ErrorResponse;
|
|
3258
|
+
};
|
|
3259
|
+
|
|
3260
|
+
export declare type ListPlaylistsResponse = ListPlaylistsResponses[keyof ListPlaylistsResponses];
|
|
3261
|
+
|
|
3262
|
+
export declare type ListPlaylistsResponses = {
|
|
3263
|
+
/**
|
|
3264
|
+
* Playlists
|
|
3265
|
+
*/
|
|
3266
|
+
200: {
|
|
3267
|
+
playlists: Array<Playlist>;
|
|
3268
|
+
invites: Array<{
|
|
3269
|
+
[key: string]: unknown;
|
|
3270
|
+
}>;
|
|
3271
|
+
};
|
|
3272
|
+
};
|
|
3273
|
+
|
|
1798
3274
|
/**
|
|
1799
3275
|
* List LLM providers
|
|
1800
3276
|
*/
|
|
1801
|
-
export declare const listProviders: <ThrowOnError extends boolean = false>(options?: Options<ListProvidersData, ThrowOnError>) => RequestResult<ListProvidersResponses, unknown, ThrowOnError
|
|
3277
|
+
export declare const listProviders: <ThrowOnError extends boolean = false>(options?: Options<ListProvidersData, ThrowOnError>) => RequestResult<ListProvidersResponses, unknown, ThrowOnError>;
|
|
1802
3278
|
|
|
1803
3279
|
export declare type ListProvidersData = {
|
|
1804
3280
|
body?: never;
|
|
@@ -1824,7 +3300,7 @@ export declare type ListProvidersResponses = {
|
|
|
1824
3300
|
/**
|
|
1825
3301
|
* List quotes for a document
|
|
1826
3302
|
*/
|
|
1827
|
-
export declare const listQuotes: <ThrowOnError extends boolean = false>(options: Options<ListQuotesData, ThrowOnError>) => RequestResult<ListQuotesResponses, ListQuotesErrors, ThrowOnError
|
|
3303
|
+
export declare const listQuotes: <ThrowOnError extends boolean = false>(options: Options<ListQuotesData, ThrowOnError>) => RequestResult<ListQuotesResponses, ListQuotesErrors, ThrowOnError>;
|
|
1828
3304
|
|
|
1829
3305
|
export declare type ListQuotesData = {
|
|
1830
3306
|
body?: never;
|
|
@@ -1859,7 +3335,7 @@ export declare type ListQuotesResponses = {
|
|
|
1859
3335
|
/**
|
|
1860
3336
|
* List all available search engines by category
|
|
1861
3337
|
*/
|
|
1862
|
-
export declare const listSearchEngines: <ThrowOnError extends boolean = false>(options?: Options<ListSearchEnginesData, ThrowOnError>) => RequestResult<ListSearchEnginesResponses, unknown, ThrowOnError
|
|
3338
|
+
export declare const listSearchEngines: <ThrowOnError extends boolean = false>(options?: Options<ListSearchEnginesData, ThrowOnError>) => RequestResult<ListSearchEnginesResponses, unknown, ThrowOnError>;
|
|
1863
3339
|
|
|
1864
3340
|
export declare type ListSearchEnginesData = {
|
|
1865
3341
|
body?: never;
|
|
@@ -1887,7 +3363,7 @@ export declare type ListSearchEnginesResponses = {
|
|
|
1887
3363
|
/**
|
|
1888
3364
|
* List active sessions
|
|
1889
3365
|
*/
|
|
1890
|
-
export declare const listSessions: <ThrowOnError extends boolean = false>(options?: Options<ListSessionsData, ThrowOnError>) => RequestResult<ListSessionsResponses, ListSessionsErrors, ThrowOnError
|
|
3366
|
+
export declare const listSessions: <ThrowOnError extends boolean = false>(options?: Options<ListSessionsData, ThrowOnError>) => RequestResult<ListSessionsResponses, ListSessionsErrors, ThrowOnError>;
|
|
1891
3367
|
|
|
1892
3368
|
export declare type ListSessionsData = {
|
|
1893
3369
|
body?: never;
|
|
@@ -1914,10 +3390,54 @@ export declare type ListSessionsResponses = {
|
|
|
1914
3390
|
200: Array<UserSession>;
|
|
1915
3391
|
};
|
|
1916
3392
|
|
|
3393
|
+
/**
|
|
3394
|
+
* List speech-to-text models (OpenAI-compatible)
|
|
3395
|
+
*
|
|
3396
|
+
* OpenAI-compatible: point a client's base URL at `https://qwksearch.com/api/v1`. Always requires a QwkSearch API key in a header (`Authorization: Bearer` or `X-API-Key`); a query-string key or a session cookie is rejected.
|
|
3397
|
+
*/
|
|
3398
|
+
export declare const listTranscriptionModels: <ThrowOnError extends boolean = false>(options?: Options<ListTranscriptionModelsData, ThrowOnError>) => RequestResult<ListTranscriptionModelsResponses, ListTranscriptionModelsErrors, ThrowOnError>;
|
|
3399
|
+
|
|
3400
|
+
export declare type ListTranscriptionModelsData = {
|
|
3401
|
+
body?: never;
|
|
3402
|
+
path?: never;
|
|
3403
|
+
query?: never;
|
|
3404
|
+
url: '/v1/models';
|
|
3405
|
+
};
|
|
3406
|
+
|
|
3407
|
+
export declare type ListTranscriptionModelsError = ListTranscriptionModelsErrors[keyof ListTranscriptionModelsErrors];
|
|
3408
|
+
|
|
3409
|
+
export declare type ListTranscriptionModelsErrors = {
|
|
3410
|
+
/**
|
|
3411
|
+
* Missing or invalid API key
|
|
3412
|
+
*/
|
|
3413
|
+
401: OpenAiError;
|
|
3414
|
+
/**
|
|
3415
|
+
* Key store unavailable
|
|
3416
|
+
*/
|
|
3417
|
+
503: OpenAiError;
|
|
3418
|
+
};
|
|
3419
|
+
|
|
3420
|
+
export declare type ListTranscriptionModelsResponse = ListTranscriptionModelsResponses[keyof ListTranscriptionModelsResponses];
|
|
3421
|
+
|
|
3422
|
+
export declare type ListTranscriptionModelsResponses = {
|
|
3423
|
+
/**
|
|
3424
|
+
* Models
|
|
3425
|
+
*/
|
|
3426
|
+
200: {
|
|
3427
|
+
object: 'list';
|
|
3428
|
+
data: Array<{
|
|
3429
|
+
id: 'small' | 'fast' | 'medium' | 'turbo' | 'large';
|
|
3430
|
+
object: 'model';
|
|
3431
|
+
created: number;
|
|
3432
|
+
owned_by: string;
|
|
3433
|
+
}>;
|
|
3434
|
+
};
|
|
3435
|
+
};
|
|
3436
|
+
|
|
1917
3437
|
/**
|
|
1918
3438
|
* List linked OAuth accounts
|
|
1919
3439
|
*/
|
|
1920
|
-
export declare const listUserAccounts: <ThrowOnError extends boolean = false>(options?: Options<ListUserAccountsData, ThrowOnError>) => RequestResult<ListUserAccountsResponses, ListUserAccountsErrors, ThrowOnError
|
|
3440
|
+
export declare const listUserAccounts: <ThrowOnError extends boolean = false>(options?: Options<ListUserAccountsData, ThrowOnError>) => RequestResult<ListUserAccountsResponses, ListUserAccountsErrors, ThrowOnError>;
|
|
1921
3441
|
|
|
1922
3442
|
export declare type ListUserAccountsData = {
|
|
1923
3443
|
body?: never;
|
|
@@ -1959,11 +3479,62 @@ export declare type McpServer = {
|
|
|
1959
3479
|
enabled?: boolean;
|
|
1960
3480
|
};
|
|
1961
3481
|
|
|
3482
|
+
export declare type Memory = {
|
|
3483
|
+
id: string;
|
|
3484
|
+
userId?: string;
|
|
3485
|
+
name: string;
|
|
3486
|
+
type: 'user' | 'feedback' | 'project' | 'reference' | 'conversation';
|
|
3487
|
+
description?: string;
|
|
3488
|
+
content: string;
|
|
3489
|
+
importance: number;
|
|
3490
|
+
accessCount?: number;
|
|
3491
|
+
tags?: Array<string>;
|
|
3492
|
+
metadata?: {
|
|
3493
|
+
[key: string]: unknown;
|
|
3494
|
+
};
|
|
3495
|
+
createdAt?: string;
|
|
3496
|
+
updatedAt?: string;
|
|
3497
|
+
};
|
|
3498
|
+
|
|
3499
|
+
/**
|
|
3500
|
+
* A human-readable confirmation.
|
|
3501
|
+
*/
|
|
3502
|
+
export declare type MessageResponse = {
|
|
3503
|
+
message: string;
|
|
3504
|
+
};
|
|
3505
|
+
|
|
1962
3506
|
export declare type ModelWithProvider = {
|
|
1963
3507
|
providerId: string;
|
|
1964
3508
|
key: string;
|
|
1965
3509
|
};
|
|
1966
3510
|
|
|
3511
|
+
export declare type NewsArticle = {
|
|
3512
|
+
title: string;
|
|
3513
|
+
url?: string;
|
|
3514
|
+
source?: string;
|
|
3515
|
+
published_at?: string;
|
|
3516
|
+
image_url?: string;
|
|
3517
|
+
};
|
|
3518
|
+
|
|
3519
|
+
export declare type NewsTopic = {
|
|
3520
|
+
topic: string;
|
|
3521
|
+
wiki_rank?: number;
|
|
3522
|
+
wiki_views?: number;
|
|
3523
|
+
news_count: number;
|
|
3524
|
+
articles: Array<NewsArticle>;
|
|
3525
|
+
};
|
|
3526
|
+
|
|
3527
|
+
export declare type NewsWidgetSettings = {
|
|
3528
|
+
enabled: boolean;
|
|
3529
|
+
allowUserTopics: boolean;
|
|
3530
|
+
/**
|
|
3531
|
+
* Comma-separated topics shown when the visitor named none.
|
|
3532
|
+
*/
|
|
3533
|
+
defaultTopics: string;
|
|
3534
|
+
maxTopics: number;
|
|
3535
|
+
showImages: boolean;
|
|
3536
|
+
};
|
|
3537
|
+
|
|
1967
3538
|
export declare type Notebook = {
|
|
1968
3539
|
id?: string;
|
|
1969
3540
|
title?: string;
|
|
@@ -1973,7 +3544,7 @@ export declare type Notebook = {
|
|
|
1973
3544
|
/**
|
|
1974
3545
|
* Connect NotebookLM with Google credentials
|
|
1975
3546
|
*/
|
|
1976
|
-
export declare const notebooklmLogin: <ThrowOnError extends boolean = false>(options: Options<NotebooklmLoginData, ThrowOnError>) => RequestResult<NotebooklmLoginResponses, NotebooklmLoginErrors, ThrowOnError
|
|
3547
|
+
export declare const notebooklmLogin: <ThrowOnError extends boolean = false>(options: Options<NotebooklmLoginData, ThrowOnError>) => RequestResult<NotebooklmLoginResponses, NotebooklmLoginErrors, ThrowOnError>;
|
|
1977
3548
|
|
|
1978
3549
|
export declare type NotebooklmLoginData = {
|
|
1979
3550
|
body: {
|
|
@@ -2013,7 +3584,21 @@ export declare type NotebookSource = {
|
|
|
2013
3584
|
url?: string;
|
|
2014
3585
|
};
|
|
2015
3586
|
|
|
2016
|
-
export declare type
|
|
3587
|
+
export declare type NumericIdPath = number;
|
|
3588
|
+
|
|
3589
|
+
/**
|
|
3590
|
+
* OpenAI-shaped error body, used by the `/v1*` routes.
|
|
3591
|
+
*/
|
|
3592
|
+
export declare type OpenAiError = {
|
|
3593
|
+
error: {
|
|
3594
|
+
message: string;
|
|
3595
|
+
type: string;
|
|
3596
|
+
param?: string | null;
|
|
3597
|
+
code?: string | null;
|
|
3598
|
+
};
|
|
3599
|
+
};
|
|
3600
|
+
|
|
3601
|
+
export declare type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options_2<TData, ThrowOnError, TResponse> & {
|
|
2017
3602
|
/**
|
|
2018
3603
|
* You can provide a client instance returned by `createClient()` instead of
|
|
2019
3604
|
* individual options. This might be also useful if you want to implement a
|
|
@@ -2024,7 +3609,114 @@ export declare type Options<TData extends TDataShape = TDataShape, ThrowOnError
|
|
|
2024
3609
|
* You can pass arbitrary values through the `meta` object. This can be
|
|
2025
3610
|
* used to access values that aren't defined as part of the SDK function.
|
|
2026
3611
|
*/
|
|
2027
|
-
meta?: Record<string, unknown
|
|
3612
|
+
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
3613
|
+
};
|
|
3614
|
+
|
|
3615
|
+
export declare type PageQuery = number;
|
|
3616
|
+
|
|
3617
|
+
export declare type Pagination = {
|
|
3618
|
+
page?: number;
|
|
3619
|
+
limit?: number;
|
|
3620
|
+
total?: number;
|
|
3621
|
+
pages?: number;
|
|
3622
|
+
};
|
|
3623
|
+
|
|
3624
|
+
export declare type PlanAnswer = {
|
|
3625
|
+
question: string;
|
|
3626
|
+
answer: string;
|
|
3627
|
+
};
|
|
3628
|
+
|
|
3629
|
+
/**
|
|
3630
|
+
* Plan a learning playlist
|
|
3631
|
+
*
|
|
3632
|
+
* Plans a self-paced study playlist from free courseware and lecture videos. Past the guest rate limit, or with no model configured, it answers in `offline` mode from the bundled catalog instead of failing.
|
|
3633
|
+
*/
|
|
3634
|
+
export declare const planPlaylist: <ThrowOnError extends boolean = false>(options: Options<PlanPlaylistData, ThrowOnError>) => RequestResult<PlanPlaylistResponses, PlanPlaylistErrors, ThrowOnError>;
|
|
3635
|
+
|
|
3636
|
+
export declare type PlanPlaylistData = {
|
|
3637
|
+
body: PlanRequest;
|
|
3638
|
+
path?: never;
|
|
3639
|
+
query?: never;
|
|
3640
|
+
url: '/learn';
|
|
3641
|
+
};
|
|
3642
|
+
|
|
3643
|
+
export declare type PlanPlaylistError = PlanPlaylistErrors[keyof PlanPlaylistErrors];
|
|
3644
|
+
|
|
3645
|
+
export declare type PlanPlaylistErrors = {
|
|
3646
|
+
/**
|
|
3647
|
+
* Bad request
|
|
3648
|
+
*/
|
|
3649
|
+
400: ErrorResponse;
|
|
3650
|
+
/**
|
|
3651
|
+
* Body too large
|
|
3652
|
+
*/
|
|
3653
|
+
413: ErrorResponse;
|
|
3654
|
+
};
|
|
3655
|
+
|
|
3656
|
+
export declare type PlanPlaylistResponse = PlanPlaylistResponses[keyof PlanPlaylistResponses];
|
|
3657
|
+
|
|
3658
|
+
export declare type PlanPlaylistResponses = {
|
|
3659
|
+
/**
|
|
3660
|
+
* Plan
|
|
3661
|
+
*/
|
|
3662
|
+
200: {
|
|
3663
|
+
playlist: Playlist;
|
|
3664
|
+
searches: Array<string>;
|
|
3665
|
+
mode: 'llm' | 'offline';
|
|
3666
|
+
minutesPerWeek?: number;
|
|
3667
|
+
};
|
|
3668
|
+
};
|
|
3669
|
+
|
|
3670
|
+
export declare type PlanRequest = {
|
|
3671
|
+
/**
|
|
3672
|
+
* What the learner wants to learn.
|
|
3673
|
+
*/
|
|
3674
|
+
goal: string;
|
|
3675
|
+
/**
|
|
3676
|
+
* Answers to the follow-up questions.
|
|
3677
|
+
*/
|
|
3678
|
+
answers?: Array<PlanAnswer>;
|
|
3679
|
+
};
|
|
3680
|
+
|
|
3681
|
+
/**
|
|
3682
|
+
* An education playlist.
|
|
3683
|
+
*/
|
|
3684
|
+
export declare type Playlist = {
|
|
3685
|
+
id: string;
|
|
3686
|
+
title: string;
|
|
3687
|
+
description?: string;
|
|
3688
|
+
categoryId?: string;
|
|
3689
|
+
majorId?: string;
|
|
3690
|
+
programId?: string;
|
|
3691
|
+
level?: string;
|
|
3692
|
+
visibility: 'private' | 'unlisted' | 'public';
|
|
3693
|
+
ownerId?: string;
|
|
3694
|
+
members?: Array<{
|
|
3695
|
+
[key: string]: unknown;
|
|
3696
|
+
}>;
|
|
3697
|
+
items: Array<PlaylistItem>;
|
|
3698
|
+
plannedFrom?: {
|
|
3699
|
+
goal?: string;
|
|
3700
|
+
answers?: Array<PlanAnswer>;
|
|
3701
|
+
};
|
|
3702
|
+
createdAt?: string;
|
|
3703
|
+
updatedAt?: string;
|
|
3704
|
+
};
|
|
3705
|
+
|
|
3706
|
+
export declare type PlaylistItem = {
|
|
3707
|
+
id: string;
|
|
3708
|
+
title: string;
|
|
3709
|
+
url: string;
|
|
3710
|
+
/**
|
|
3711
|
+
* e.g. `course`, `video`, `reading`.
|
|
3712
|
+
*/
|
|
3713
|
+
kind: string;
|
|
3714
|
+
/**
|
|
3715
|
+
* Expected time to finish.
|
|
3716
|
+
*/
|
|
3717
|
+
minutes: number;
|
|
3718
|
+
estimate: 'exact' | 'rough';
|
|
3719
|
+
estimateBasis?: string;
|
|
2028
3720
|
};
|
|
2029
3721
|
|
|
2030
3722
|
export declare type Provider = {
|
|
@@ -2051,10 +3743,48 @@ export declare type Quote = {
|
|
|
2051
3743
|
createdAt?: string;
|
|
2052
3744
|
};
|
|
2053
3745
|
|
|
3746
|
+
/**
|
|
3747
|
+
* Record that a memory was used
|
|
3748
|
+
*/
|
|
3749
|
+
export declare const recordMemoryUsage: <ThrowOnError extends boolean = false>(options: Options<RecordMemoryUsageData, ThrowOnError>) => RequestResult<RecordMemoryUsageResponses, RecordMemoryUsageErrors, ThrowOnError>;
|
|
3750
|
+
|
|
3751
|
+
export declare type RecordMemoryUsageData = {
|
|
3752
|
+
body?: never;
|
|
3753
|
+
path: {
|
|
3754
|
+
id: string;
|
|
3755
|
+
};
|
|
3756
|
+
query?: never;
|
|
3757
|
+
url: '/user/memories/{id}/usage';
|
|
3758
|
+
};
|
|
3759
|
+
|
|
3760
|
+
export declare type RecordMemoryUsageError = RecordMemoryUsageErrors[keyof RecordMemoryUsageErrors];
|
|
3761
|
+
|
|
3762
|
+
export declare type RecordMemoryUsageErrors = {
|
|
3763
|
+
/**
|
|
3764
|
+
* Authentication required
|
|
3765
|
+
*/
|
|
3766
|
+
401: ErrorResponse;
|
|
3767
|
+
/**
|
|
3768
|
+
* Not found
|
|
3769
|
+
*/
|
|
3770
|
+
404: ErrorResponse;
|
|
3771
|
+
};
|
|
3772
|
+
|
|
3773
|
+
export declare type RecordMemoryUsageResponse = RecordMemoryUsageResponses[keyof RecordMemoryUsageResponses];
|
|
3774
|
+
|
|
3775
|
+
export declare type RecordMemoryUsageResponses = {
|
|
3776
|
+
/**
|
|
3777
|
+
* Recorded
|
|
3778
|
+
*/
|
|
3779
|
+
200: {
|
|
3780
|
+
[key: string]: unknown;
|
|
3781
|
+
};
|
|
3782
|
+
};
|
|
3783
|
+
|
|
2054
3784
|
/**
|
|
2055
3785
|
* Refresh Google access token using stored refresh token
|
|
2056
3786
|
*/
|
|
2057
|
-
export declare const refreshGoogleToken: <ThrowOnError extends boolean = false>(options?: Options<RefreshGoogleTokenData, ThrowOnError>) => RequestResult<RefreshGoogleTokenResponses, unknown, ThrowOnError
|
|
3787
|
+
export declare const refreshGoogleToken: <ThrowOnError extends boolean = false>(options?: Options<RefreshGoogleTokenData, ThrowOnError>) => RequestResult<RefreshGoogleTokenResponses, unknown, ThrowOnError>;
|
|
2058
3788
|
|
|
2059
3789
|
export declare type RefreshGoogleTokenData = {
|
|
2060
3790
|
body?: never;
|
|
@@ -2081,7 +3811,7 @@ export declare type RefreshGoogleTokenResponses = {
|
|
|
2081
3811
|
/**
|
|
2082
3812
|
* Remove a favorite
|
|
2083
3813
|
*/
|
|
2084
|
-
export declare const removeFavorite: <ThrowOnError extends boolean = false>(options: Options<RemoveFavoriteData, ThrowOnError>) => RequestResult<RemoveFavoriteResponses, RemoveFavoriteErrors, ThrowOnError
|
|
3814
|
+
export declare const removeFavorite: <ThrowOnError extends boolean = false>(options: Options<RemoveFavoriteData, ThrowOnError>) => RequestResult<RemoveFavoriteResponses, RemoveFavoriteErrors, ThrowOnError>;
|
|
2085
3815
|
|
|
2086
3816
|
export declare type RemoveFavoriteData = {
|
|
2087
3817
|
body?: never;
|
|
@@ -2107,15 +3837,66 @@ export declare type RemoveFavoriteResponses = {
|
|
|
2107
3837
|
/**
|
|
2108
3838
|
* Removed
|
|
2109
3839
|
*/
|
|
2110
|
-
200:
|
|
2111
|
-
|
|
3840
|
+
200: MessageResponse;
|
|
3841
|
+
};
|
|
3842
|
+
|
|
3843
|
+
/**
|
|
3844
|
+
* Ask a document's owner for access
|
|
3845
|
+
*
|
|
3846
|
+
* Emails the owner once. A second request for the same document by the same user is refused.
|
|
3847
|
+
*/
|
|
3848
|
+
export declare const requestDocumentAccess: <ThrowOnError extends boolean = false>(options: Options<RequestDocumentAccessData, ThrowOnError>) => RequestResult<RequestDocumentAccessResponses, RequestDocumentAccessErrors, ThrowOnError>;
|
|
3849
|
+
|
|
3850
|
+
export declare type RequestDocumentAccessData = {
|
|
3851
|
+
body?: never;
|
|
3852
|
+
path: {
|
|
3853
|
+
id: number;
|
|
3854
|
+
};
|
|
3855
|
+
query?: never;
|
|
3856
|
+
url: '/doc/documents/{id}/access-request';
|
|
3857
|
+
};
|
|
3858
|
+
|
|
3859
|
+
export declare type RequestDocumentAccessError = RequestDocumentAccessErrors[keyof RequestDocumentAccessErrors];
|
|
3860
|
+
|
|
3861
|
+
export declare type RequestDocumentAccessErrors = {
|
|
3862
|
+
/**
|
|
3863
|
+
* Bad request
|
|
3864
|
+
*/
|
|
3865
|
+
400: ErrorResponse;
|
|
3866
|
+
/**
|
|
3867
|
+
* Authentication required
|
|
3868
|
+
*/
|
|
3869
|
+
401: ErrorResponse;
|
|
3870
|
+
/**
|
|
3871
|
+
* Not found
|
|
3872
|
+
*/
|
|
3873
|
+
404: ErrorResponse;
|
|
3874
|
+
/**
|
|
3875
|
+
* Already requested, or already has access
|
|
3876
|
+
*/
|
|
3877
|
+
409: ErrorResponse;
|
|
3878
|
+
/**
|
|
3879
|
+
* Internal server error
|
|
3880
|
+
*/
|
|
3881
|
+
500: ErrorResponse;
|
|
3882
|
+
};
|
|
3883
|
+
|
|
3884
|
+
export declare type RequestDocumentAccessResponse = RequestDocumentAccessResponses[keyof RequestDocumentAccessResponses];
|
|
3885
|
+
|
|
3886
|
+
export declare type RequestDocumentAccessResponses = {
|
|
3887
|
+
/**
|
|
3888
|
+
* Requested
|
|
3889
|
+
*/
|
|
3890
|
+
201: {
|
|
3891
|
+
success?: boolean;
|
|
3892
|
+
accessRequested?: boolean;
|
|
2112
3893
|
};
|
|
2113
3894
|
};
|
|
2114
3895
|
|
|
2115
3896
|
/**
|
|
2116
3897
|
* Revoke all other sessions
|
|
2117
3898
|
*/
|
|
2118
|
-
export declare const revokeOtherSessions: <ThrowOnError extends boolean = false>(options?: Options<RevokeOtherSessionsData, ThrowOnError>) => RequestResult<RevokeOtherSessionsResponses, RevokeOtherSessionsErrors, ThrowOnError
|
|
3899
|
+
export declare const revokeOtherSessions: <ThrowOnError extends boolean = false>(options?: Options<RevokeOtherSessionsData, ThrowOnError>) => RequestResult<RevokeOtherSessionsResponses, RevokeOtherSessionsErrors, ThrowOnError>;
|
|
2119
3900
|
|
|
2120
3901
|
export declare type RevokeOtherSessionsData = {
|
|
2121
3902
|
body?: never;
|
|
@@ -2139,15 +3920,13 @@ export declare type RevokeOtherSessionsResponses = {
|
|
|
2139
3920
|
/**
|
|
2140
3921
|
* Revoked
|
|
2141
3922
|
*/
|
|
2142
|
-
200:
|
|
2143
|
-
message?: string;
|
|
2144
|
-
};
|
|
3923
|
+
200: MessageResponse;
|
|
2145
3924
|
};
|
|
2146
3925
|
|
|
2147
3926
|
/**
|
|
2148
3927
|
* Revoke a specific session
|
|
2149
3928
|
*/
|
|
2150
|
-
export declare const revokeSession: <ThrowOnError extends boolean = false>(options: Options<RevokeSessionData, ThrowOnError>) => RequestResult<RevokeSessionResponses, RevokeSessionErrors, ThrowOnError
|
|
3929
|
+
export declare const revokeSession: <ThrowOnError extends boolean = false>(options: Options<RevokeSessionData, ThrowOnError>) => RequestResult<RevokeSessionResponses, RevokeSessionErrors, ThrowOnError>;
|
|
2151
3930
|
|
|
2152
3931
|
export declare type RevokeSessionData = {
|
|
2153
3932
|
body?: never;
|
|
@@ -2173,15 +3952,13 @@ export declare type RevokeSessionResponses = {
|
|
|
2173
3952
|
/**
|
|
2174
3953
|
* Revoked
|
|
2175
3954
|
*/
|
|
2176
|
-
200:
|
|
2177
|
-
message?: string;
|
|
2178
|
-
};
|
|
3955
|
+
200: MessageResponse;
|
|
2179
3956
|
};
|
|
2180
3957
|
|
|
2181
3958
|
/**
|
|
2182
3959
|
* Rewrite text with AI (Groq)
|
|
2183
3960
|
*/
|
|
2184
|
-
export declare const rewriteText: <ThrowOnError extends boolean = false>(options: Options<RewriteTextData, ThrowOnError>) => RequestResult<RewriteTextResponses, RewriteTextErrors, ThrowOnError
|
|
3961
|
+
export declare const rewriteText: <ThrowOnError extends boolean = false>(options: Options<RewriteTextData, ThrowOnError>) => RequestResult<RewriteTextResponses, RewriteTextErrors, ThrowOnError>;
|
|
2185
3962
|
|
|
2186
3963
|
export declare type RewriteTextData = {
|
|
2187
3964
|
body: {
|
|
@@ -2213,10 +3990,62 @@ export declare type RewriteTextResponses = {
|
|
|
2213
3990
|
};
|
|
2214
3991
|
};
|
|
2215
3992
|
|
|
3993
|
+
/**
|
|
3994
|
+
* Run a named database cleanup
|
|
3995
|
+
*/
|
|
3996
|
+
export declare const runAdminMaintenance: <ThrowOnError extends boolean = false>(options: Options<RunAdminMaintenanceData, ThrowOnError>) => RequestResult<RunAdminMaintenanceResponses, RunAdminMaintenanceErrors, ThrowOnError>;
|
|
3997
|
+
|
|
3998
|
+
export declare type RunAdminMaintenanceData = {
|
|
3999
|
+
body: {
|
|
4000
|
+
/**
|
|
4001
|
+
* A maintenance action key from `GET /admin/database`.
|
|
4002
|
+
*/
|
|
4003
|
+
action: string;
|
|
4004
|
+
};
|
|
4005
|
+
path?: never;
|
|
4006
|
+
query?: never;
|
|
4007
|
+
url: '/admin/database/maintenance';
|
|
4008
|
+
};
|
|
4009
|
+
|
|
4010
|
+
export declare type RunAdminMaintenanceError = RunAdminMaintenanceErrors[keyof RunAdminMaintenanceErrors];
|
|
4011
|
+
|
|
4012
|
+
export declare type RunAdminMaintenanceErrors = {
|
|
4013
|
+
/**
|
|
4014
|
+
* Bad request
|
|
4015
|
+
*/
|
|
4016
|
+
400: ErrorResponse;
|
|
4017
|
+
/**
|
|
4018
|
+
* Authentication required
|
|
4019
|
+
*/
|
|
4020
|
+
401: ErrorResponse;
|
|
4021
|
+
/**
|
|
4022
|
+
* Signed in, but not allowed to do this
|
|
4023
|
+
*/
|
|
4024
|
+
403: ErrorResponse;
|
|
4025
|
+
/**
|
|
4026
|
+
* Internal server error
|
|
4027
|
+
*/
|
|
4028
|
+
500: ErrorResponse;
|
|
4029
|
+
};
|
|
4030
|
+
|
|
4031
|
+
export declare type RunAdminMaintenanceResponse = RunAdminMaintenanceResponses[keyof RunAdminMaintenanceResponses];
|
|
4032
|
+
|
|
4033
|
+
export declare type RunAdminMaintenanceResponses = {
|
|
4034
|
+
/**
|
|
4035
|
+
* Result
|
|
4036
|
+
*/
|
|
4037
|
+
200: {
|
|
4038
|
+
action?: string;
|
|
4039
|
+
[key: string]: unknown;
|
|
4040
|
+
};
|
|
4041
|
+
};
|
|
4042
|
+
|
|
2216
4043
|
/**
|
|
2217
4044
|
* Save a config value
|
|
4045
|
+
*
|
|
4046
|
+
* Admin only.
|
|
2218
4047
|
*/
|
|
2219
|
-
export declare const saveConfig: <ThrowOnError extends boolean = false>(options: Options<SaveConfigData, ThrowOnError>) => RequestResult<SaveConfigResponses,
|
|
4048
|
+
export declare const saveConfig: <ThrowOnError extends boolean = false>(options: Options<SaveConfigData, ThrowOnError>) => RequestResult<SaveConfigResponses, SaveConfigErrors, ThrowOnError>;
|
|
2220
4049
|
|
|
2221
4050
|
export declare type SaveConfigData = {
|
|
2222
4051
|
body: {
|
|
@@ -2228,21 +4057,28 @@ export declare type SaveConfigData = {
|
|
|
2228
4057
|
url: '/config';
|
|
2229
4058
|
};
|
|
2230
4059
|
|
|
4060
|
+
export declare type SaveConfigError = SaveConfigErrors[keyof SaveConfigErrors];
|
|
4061
|
+
|
|
4062
|
+
export declare type SaveConfigErrors = {
|
|
4063
|
+
/**
|
|
4064
|
+
* Authentication required
|
|
4065
|
+
*/
|
|
4066
|
+
401: ErrorResponse;
|
|
4067
|
+
};
|
|
4068
|
+
|
|
2231
4069
|
export declare type SaveConfigResponse = SaveConfigResponses[keyof SaveConfigResponses];
|
|
2232
4070
|
|
|
2233
4071
|
export declare type SaveConfigResponses = {
|
|
2234
4072
|
/**
|
|
2235
4073
|
* Saved
|
|
2236
4074
|
*/
|
|
2237
|
-
200:
|
|
2238
|
-
message?: string;
|
|
2239
|
-
};
|
|
4075
|
+
200: MessageResponse;
|
|
2240
4076
|
};
|
|
2241
4077
|
|
|
2242
4078
|
/**
|
|
2243
4079
|
* Save a chat message
|
|
2244
4080
|
*/
|
|
2245
|
-
export declare const saveMessage: <ThrowOnError extends boolean = false>(options: Options<SaveMessageData, ThrowOnError>) => RequestResult<SaveMessageResponses, SaveMessageErrors, ThrowOnError
|
|
4081
|
+
export declare const saveMessage: <ThrowOnError extends boolean = false>(options: Options<SaveMessageData, ThrowOnError>) => RequestResult<SaveMessageResponses, SaveMessageErrors, ThrowOnError>;
|
|
2246
4082
|
|
|
2247
4083
|
export declare type SaveMessageData = {
|
|
2248
4084
|
body: {
|
|
@@ -2275,15 +4111,71 @@ export declare type SaveMessageResponses = {
|
|
|
2275
4111
|
/**
|
|
2276
4112
|
* Saved
|
|
2277
4113
|
*/
|
|
4114
|
+
200: MessageResponse;
|
|
4115
|
+
};
|
|
4116
|
+
|
|
4117
|
+
/**
|
|
4118
|
+
* Create or update a playlist
|
|
4119
|
+
*
|
|
4120
|
+
* Creates the playlist when `id` is new (201), otherwise updates it (owner or editor).
|
|
4121
|
+
*/
|
|
4122
|
+
export declare const savePlaylist: <ThrowOnError extends boolean = false>(options: Options<SavePlaylistData, ThrowOnError>) => RequestResult<SavePlaylistResponses, SavePlaylistErrors, ThrowOnError>;
|
|
4123
|
+
|
|
4124
|
+
export declare type SavePlaylistData = {
|
|
4125
|
+
body: Playlist;
|
|
4126
|
+
path: {
|
|
4127
|
+
id: string;
|
|
4128
|
+
};
|
|
4129
|
+
query?: never;
|
|
4130
|
+
url: '/learn/playlists/{id}';
|
|
4131
|
+
};
|
|
4132
|
+
|
|
4133
|
+
export declare type SavePlaylistError = SavePlaylistErrors[keyof SavePlaylistErrors];
|
|
4134
|
+
|
|
4135
|
+
export declare type SavePlaylistErrors = {
|
|
4136
|
+
/**
|
|
4137
|
+
* Bad request
|
|
4138
|
+
*/
|
|
4139
|
+
400: ErrorResponse;
|
|
4140
|
+
/**
|
|
4141
|
+
* Authentication required
|
|
4142
|
+
*/
|
|
4143
|
+
401: ErrorResponse;
|
|
4144
|
+
/**
|
|
4145
|
+
* Signed in, but not allowed to do this
|
|
4146
|
+
*/
|
|
4147
|
+
403: ErrorResponse;
|
|
4148
|
+
/**
|
|
4149
|
+
* Conflicts with the current state
|
|
4150
|
+
*/
|
|
4151
|
+
409: ErrorResponse;
|
|
4152
|
+
/**
|
|
4153
|
+
* Body too large
|
|
4154
|
+
*/
|
|
4155
|
+
413: ErrorResponse;
|
|
4156
|
+
};
|
|
4157
|
+
|
|
4158
|
+
export declare type SavePlaylistResponse = SavePlaylistResponses[keyof SavePlaylistResponses];
|
|
4159
|
+
|
|
4160
|
+
export declare type SavePlaylistResponses = {
|
|
4161
|
+
/**
|
|
4162
|
+
* Playlist
|
|
4163
|
+
*/
|
|
2278
4164
|
200: {
|
|
2279
|
-
|
|
4165
|
+
playlist: Playlist;
|
|
4166
|
+
};
|
|
4167
|
+
/**
|
|
4168
|
+
* Playlist
|
|
4169
|
+
*/
|
|
4170
|
+
201: {
|
|
4171
|
+
playlist: Playlist;
|
|
2280
4172
|
};
|
|
2281
4173
|
};
|
|
2282
4174
|
|
|
2283
4175
|
/**
|
|
2284
4176
|
* Scrape a URL (GET)
|
|
2285
4177
|
*/
|
|
2286
|
-
export declare const scrapeGet: <ThrowOnError extends boolean = false>(options: Options<ScrapeGetData, ThrowOnError>) => RequestResult<ScrapeGetResponses, unknown, ThrowOnError
|
|
4178
|
+
export declare const scrapeGet: <ThrowOnError extends boolean = false>(options: Options<ScrapeGetData, ThrowOnError>) => RequestResult<ScrapeGetResponses, unknown, ThrowOnError>;
|
|
2287
4179
|
|
|
2288
4180
|
export declare type ScrapeGetData = {
|
|
2289
4181
|
body?: never;
|
|
@@ -2312,7 +4204,7 @@ export declare type ScrapeGetResponses = {
|
|
|
2312
4204
|
/**
|
|
2313
4205
|
* Scrape a URL (POST)
|
|
2314
4206
|
*/
|
|
2315
|
-
export declare const scrapePost: <ThrowOnError extends boolean = false>(options: Options<ScrapePostData, ThrowOnError>) => RequestResult<ScrapePostResponses, unknown, ThrowOnError
|
|
4207
|
+
export declare const scrapePost: <ThrowOnError extends boolean = false>(options: Options<ScrapePostData, ThrowOnError>) => RequestResult<ScrapePostResponses, unknown, ThrowOnError>;
|
|
2316
4208
|
|
|
2317
4209
|
export declare type ScrapePostData = {
|
|
2318
4210
|
body: {
|
|
@@ -2341,7 +4233,7 @@ export declare type ScrapePostResponses = {
|
|
|
2341
4233
|
/**
|
|
2342
4234
|
* Search chats by title
|
|
2343
4235
|
*/
|
|
2344
|
-
export declare const searchChats: <ThrowOnError extends boolean = false>(options: Options<SearchChatsData, ThrowOnError>) => RequestResult<SearchChatsResponses, SearchChatsErrors, ThrowOnError
|
|
4236
|
+
export declare const searchChats: <ThrowOnError extends boolean = false>(options: Options<SearchChatsData, ThrowOnError>) => RequestResult<SearchChatsResponses, SearchChatsErrors, ThrowOnError>;
|
|
2345
4237
|
|
|
2346
4238
|
export declare type SearchChatsData = {
|
|
2347
4239
|
body?: never;
|
|
@@ -2372,6 +4264,11 @@ export declare type SearchChatsResponses = {
|
|
|
2372
4264
|
};
|
|
2373
4265
|
};
|
|
2374
4266
|
|
|
4267
|
+
/**
|
|
4268
|
+
* Free-text filter.
|
|
4269
|
+
*/
|
|
4270
|
+
export declare type SearchQuery = string;
|
|
4271
|
+
|
|
2375
4272
|
export declare type SearchResult = {
|
|
2376
4273
|
title?: string;
|
|
2377
4274
|
url?: string;
|
|
@@ -2381,14 +4278,44 @@ export declare type SearchResult = {
|
|
|
2381
4278
|
parsed_url?: Array<string>;
|
|
2382
4279
|
};
|
|
2383
4280
|
|
|
2384
|
-
|
|
2385
|
-
|
|
4281
|
+
/**
|
|
4282
|
+
* Enable or disable an agent skill (saved to the account)
|
|
4283
|
+
*/
|
|
4284
|
+
export declare const setAgentSkill: <ThrowOnError extends boolean = false>(options: Options<SetAgentSkillData, ThrowOnError>) => RequestResult<SetAgentSkillResponses, SetAgentSkillErrors, ThrowOnError>;
|
|
4285
|
+
|
|
4286
|
+
export declare type SetAgentSkillData = {
|
|
4287
|
+
body: SkillToggle;
|
|
4288
|
+
path?: never;
|
|
4289
|
+
query?: never;
|
|
4290
|
+
url: '/user/agent-skills';
|
|
4291
|
+
};
|
|
4292
|
+
|
|
4293
|
+
export declare type SetAgentSkillError = SetAgentSkillErrors[keyof SetAgentSkillErrors];
|
|
4294
|
+
|
|
4295
|
+
export declare type SetAgentSkillErrors = {
|
|
4296
|
+
/**
|
|
4297
|
+
* Bad request
|
|
4298
|
+
*/
|
|
4299
|
+
400: ErrorResponse;
|
|
4300
|
+
/**
|
|
4301
|
+
* Authentication required
|
|
4302
|
+
*/
|
|
4303
|
+
401: ErrorResponse;
|
|
4304
|
+
};
|
|
4305
|
+
|
|
4306
|
+
export declare type SetAgentSkillResponse = SetAgentSkillResponses[keyof SetAgentSkillResponses];
|
|
4307
|
+
|
|
4308
|
+
export declare type SetAgentSkillResponses = {
|
|
4309
|
+
/**
|
|
4310
|
+
* Done
|
|
4311
|
+
*/
|
|
4312
|
+
200: MessageResponse;
|
|
2386
4313
|
};
|
|
2387
4314
|
|
|
2388
4315
|
/**
|
|
2389
4316
|
* Share a chat
|
|
2390
4317
|
*/
|
|
2391
|
-
export declare const shareChat: <ThrowOnError extends boolean = false>(options: Options<ShareChatData, ThrowOnError>) => RequestResult<ShareChatResponses, ShareChatErrors, ThrowOnError
|
|
4318
|
+
export declare const shareChat: <ThrowOnError extends boolean = false>(options: Options<ShareChatData, ThrowOnError>) => RequestResult<ShareChatResponses, ShareChatErrors, ThrowOnError>;
|
|
2392
4319
|
|
|
2393
4320
|
export declare type ShareChatData = {
|
|
2394
4321
|
body: {
|
|
@@ -2426,7 +4353,7 @@ export declare type ShareChatResponses = {
|
|
|
2426
4353
|
/**
|
|
2427
4354
|
* Create or retrieve a share token for a document
|
|
2428
4355
|
*/
|
|
2429
|
-
export declare const shareDocument: <ThrowOnError extends boolean = false>(options: Options<ShareDocumentData, ThrowOnError>) => RequestResult<ShareDocumentResponses, unknown, ThrowOnError
|
|
4356
|
+
export declare const shareDocument: <ThrowOnError extends boolean = false>(options: Options<ShareDocumentData, ThrowOnError>) => RequestResult<ShareDocumentResponses, unknown, ThrowOnError>;
|
|
2430
4357
|
|
|
2431
4358
|
export declare type ShareDocumentData = {
|
|
2432
4359
|
body: {
|
|
@@ -2453,50 +4380,177 @@ export declare type ShareDocumentResponses = {
|
|
|
2453
4380
|
};
|
|
2454
4381
|
|
|
2455
4382
|
/**
|
|
2456
|
-
* Share a Google Doc
|
|
4383
|
+
* Share a Google Doc
|
|
4384
|
+
*/
|
|
4385
|
+
export declare const shareGoogleDoc: <ThrowOnError extends boolean = false>(options: Options<ShareGoogleDocData, ThrowOnError>) => RequestResult<ShareGoogleDocResponses, unknown, ThrowOnError>;
|
|
4386
|
+
|
|
4387
|
+
export declare type ShareGoogleDocData = {
|
|
4388
|
+
body: {
|
|
4389
|
+
googleDocId: string;
|
|
4390
|
+
accessToken: string;
|
|
4391
|
+
refreshToken?: string;
|
|
4392
|
+
emailAddress?: string;
|
|
4393
|
+
role?: 'reader' | 'commenter' | 'writer';
|
|
4394
|
+
publicLink?: boolean;
|
|
4395
|
+
};
|
|
4396
|
+
path?: never;
|
|
4397
|
+
query?: never;
|
|
4398
|
+
url: '/doc/google-docs/share';
|
|
4399
|
+
};
|
|
4400
|
+
|
|
4401
|
+
export declare type ShareGoogleDocResponse = ShareGoogleDocResponses[keyof ShareGoogleDocResponses];
|
|
4402
|
+
|
|
4403
|
+
export declare type ShareGoogleDocResponses = {
|
|
4404
|
+
/**
|
|
4405
|
+
* Share result
|
|
4406
|
+
*/
|
|
4407
|
+
200: {
|
|
4408
|
+
[key: string]: unknown;
|
|
4409
|
+
};
|
|
4410
|
+
};
|
|
4411
|
+
|
|
4412
|
+
export declare type SkillToggle = {
|
|
4413
|
+
skillId: string;
|
|
4414
|
+
enabled: boolean;
|
|
4415
|
+
};
|
|
4416
|
+
|
|
4417
|
+
export declare type StorageInfo = {
|
|
4418
|
+
used?: number;
|
|
4419
|
+
quota?: number;
|
|
4420
|
+
remaining?: number;
|
|
4421
|
+
allowed?: boolean;
|
|
4422
|
+
usedMB?: number;
|
|
4423
|
+
quotaMB?: number;
|
|
4424
|
+
remainingMB?: number;
|
|
4425
|
+
percentage?: number;
|
|
4426
|
+
};
|
|
4427
|
+
|
|
4428
|
+
/**
|
|
4429
|
+
* Submit an enterprise / white-label enquiry
|
|
4430
|
+
*/
|
|
4431
|
+
export declare const submitEnterpriseRequest: <ThrowOnError extends boolean = false>(options: Options<SubmitEnterpriseRequestData, ThrowOnError>) => RequestResult<SubmitEnterpriseRequestResponses, SubmitEnterpriseRequestErrors, ThrowOnError>;
|
|
4432
|
+
|
|
4433
|
+
export declare type SubmitEnterpriseRequestData = {
|
|
4434
|
+
body: {
|
|
4435
|
+
name: string;
|
|
4436
|
+
email: string;
|
|
4437
|
+
businessType: 'startup' | 'agency' | 'saas' | 'enterprise' | 'ecommerce' | 'other';
|
|
4438
|
+
teamSize: '1-10' | '11-50' | '51-200' | '201-1000' | '1000+';
|
|
4439
|
+
message?: string;
|
|
4440
|
+
consent?: boolean;
|
|
4441
|
+
};
|
|
4442
|
+
path?: never;
|
|
4443
|
+
query?: never;
|
|
4444
|
+
url: '/enterprise-request';
|
|
4445
|
+
};
|
|
4446
|
+
|
|
4447
|
+
export declare type SubmitEnterpriseRequestError = SubmitEnterpriseRequestErrors[keyof SubmitEnterpriseRequestErrors];
|
|
4448
|
+
|
|
4449
|
+
export declare type SubmitEnterpriseRequestErrors = {
|
|
4450
|
+
/**
|
|
4451
|
+
* Bad request
|
|
4452
|
+
*/
|
|
4453
|
+
400: ErrorResponse;
|
|
4454
|
+
/**
|
|
4455
|
+
* Internal server error
|
|
4456
|
+
*/
|
|
4457
|
+
500: ErrorResponse;
|
|
4458
|
+
};
|
|
4459
|
+
|
|
4460
|
+
export declare type SubmitEnterpriseRequestResponse = SubmitEnterpriseRequestResponses[keyof SubmitEnterpriseRequestResponses];
|
|
4461
|
+
|
|
4462
|
+
export declare type SubmitEnterpriseRequestResponses = {
|
|
4463
|
+
/**
|
|
4464
|
+
* Received
|
|
4465
|
+
*/
|
|
4466
|
+
200: {
|
|
4467
|
+
[key: string]: unknown;
|
|
4468
|
+
};
|
|
4469
|
+
};
|
|
4470
|
+
|
|
4471
|
+
export declare type SuccessResponse = {
|
|
4472
|
+
success: boolean;
|
|
4473
|
+
};
|
|
4474
|
+
|
|
4475
|
+
/**
|
|
4476
|
+
* Get follow-up questions for a learning goal
|
|
4477
|
+
*/
|
|
4478
|
+
export declare const suggestLearningQuestions: <ThrowOnError extends boolean = false>(options: Options<SuggestLearningQuestionsData, ThrowOnError>) => RequestResult<SuggestLearningQuestionsResponses, SuggestLearningQuestionsErrors, ThrowOnError>;
|
|
4479
|
+
|
|
4480
|
+
export declare type SuggestLearningQuestionsData = {
|
|
4481
|
+
body: {
|
|
4482
|
+
goal: string;
|
|
4483
|
+
};
|
|
4484
|
+
path?: never;
|
|
4485
|
+
query?: never;
|
|
4486
|
+
url: '/learn/questions';
|
|
4487
|
+
};
|
|
4488
|
+
|
|
4489
|
+
export declare type SuggestLearningQuestionsError = SuggestLearningQuestionsErrors[keyof SuggestLearningQuestionsErrors];
|
|
4490
|
+
|
|
4491
|
+
export declare type SuggestLearningQuestionsErrors = {
|
|
4492
|
+
/**
|
|
4493
|
+
* Bad request
|
|
4494
|
+
*/
|
|
4495
|
+
400: ErrorResponse;
|
|
4496
|
+
};
|
|
4497
|
+
|
|
4498
|
+
export declare type SuggestLearningQuestionsResponse = SuggestLearningQuestionsResponses[keyof SuggestLearningQuestionsResponses];
|
|
4499
|
+
|
|
4500
|
+
export declare type SuggestLearningQuestionsResponses = {
|
|
4501
|
+
/**
|
|
4502
|
+
* Questions
|
|
4503
|
+
*/
|
|
4504
|
+
200: {
|
|
4505
|
+
questions: Array<FollowUpQuestion>;
|
|
4506
|
+
mode: 'llm' | 'offline';
|
|
4507
|
+
};
|
|
4508
|
+
};
|
|
4509
|
+
|
|
4510
|
+
/**
|
|
4511
|
+
* Synthesize speech from text
|
|
4512
|
+
*
|
|
4513
|
+
* Kokoro or Deepgram text-to-speech. Unlike `/agent/voice` there is no per-guest quota and no account lookup; the response is cacheable for a year.
|
|
2457
4514
|
*/
|
|
2458
|
-
export declare const
|
|
4515
|
+
export declare const synthesizeSpeech: <ThrowOnError extends boolean = false>(options: Options<SynthesizeSpeechData, ThrowOnError>) => RequestResult<SynthesizeSpeechResponses, SynthesizeSpeechErrors, ThrowOnError>;
|
|
2459
4516
|
|
|
2460
|
-
export declare type
|
|
4517
|
+
export declare type SynthesizeSpeechData = {
|
|
2461
4518
|
body: {
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
emailAddress?: string;
|
|
2466
|
-
role?: 'reader' | 'commenter' | 'writer';
|
|
2467
|
-
publicLink?: boolean;
|
|
4519
|
+
text: string;
|
|
4520
|
+
provider?: 'kokoro' | 'deepgram';
|
|
4521
|
+
voice?: string;
|
|
2468
4522
|
};
|
|
2469
4523
|
path?: never;
|
|
2470
4524
|
query?: never;
|
|
2471
|
-
url: '/
|
|
4525
|
+
url: '/speech/tts';
|
|
2472
4526
|
};
|
|
2473
4527
|
|
|
2474
|
-
export declare type
|
|
4528
|
+
export declare type SynthesizeSpeechError = SynthesizeSpeechErrors[keyof SynthesizeSpeechErrors];
|
|
2475
4529
|
|
|
2476
|
-
export declare type
|
|
4530
|
+
export declare type SynthesizeSpeechErrors = {
|
|
2477
4531
|
/**
|
|
2478
|
-
*
|
|
4532
|
+
* Bad request
|
|
2479
4533
|
*/
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
4534
|
+
400: ErrorResponse;
|
|
4535
|
+
/**
|
|
4536
|
+
* Internal server error
|
|
4537
|
+
*/
|
|
4538
|
+
500: ErrorResponse;
|
|
2483
4539
|
};
|
|
2484
4540
|
|
|
2485
|
-
export declare type
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
remainingMB?: number;
|
|
2493
|
-
percentage?: number;
|
|
4541
|
+
export declare type SynthesizeSpeechResponse = SynthesizeSpeechResponses[keyof SynthesizeSpeechResponses];
|
|
4542
|
+
|
|
4543
|
+
export declare type SynthesizeSpeechResponses = {
|
|
4544
|
+
/**
|
|
4545
|
+
* Audio
|
|
4546
|
+
*/
|
|
4547
|
+
200: Blob | File;
|
|
2494
4548
|
};
|
|
2495
4549
|
|
|
2496
4550
|
/**
|
|
2497
4551
|
* Test which models are available for a provider
|
|
2498
4552
|
*/
|
|
2499
|
-
export declare const testModels: <ThrowOnError extends boolean = false>(options: Options<TestModelsData, ThrowOnError>) => RequestResult<TestModelsResponses, unknown, ThrowOnError
|
|
4553
|
+
export declare const testModels: <ThrowOnError extends boolean = false>(options: Options<TestModelsData, ThrowOnError>) => RequestResult<TestModelsResponses, unknown, ThrowOnError>;
|
|
2500
4554
|
|
|
2501
4555
|
export declare type TestModelsData = {
|
|
2502
4556
|
body: {
|
|
@@ -2523,7 +4577,7 @@ export declare type TestModelsResponses = {
|
|
|
2523
4577
|
/**
|
|
2524
4578
|
* Test whether search engines are working
|
|
2525
4579
|
*/
|
|
2526
|
-
export declare const testSearchEngines: <ThrowOnError extends boolean = false>(options: Options<TestSearchEnginesData, ThrowOnError>) => RequestResult<TestSearchEnginesResponses, unknown, ThrowOnError
|
|
4580
|
+
export declare const testSearchEngines: <ThrowOnError extends boolean = false>(options: Options<TestSearchEnginesData, ThrowOnError>) => RequestResult<TestSearchEnginesResponses, unknown, ThrowOnError>;
|
|
2527
4581
|
|
|
2528
4582
|
export declare type TestSearchEnginesData = {
|
|
2529
4583
|
body: {
|
|
@@ -2553,7 +4607,7 @@ export declare type TestSearchEnginesResponses = {
|
|
|
2553
4607
|
/**
|
|
2554
4608
|
* Text-to-speech via Kokoro or Deepgram (10/day guest limit)
|
|
2555
4609
|
*/
|
|
2556
|
-
export declare const textToSpeech: <ThrowOnError extends boolean = false>(options: Options<TextToSpeechData, ThrowOnError>) => RequestResult<TextToSpeechResponses, TextToSpeechErrors, ThrowOnError
|
|
4610
|
+
export declare const textToSpeech: <ThrowOnError extends boolean = false>(options: Options<TextToSpeechData, ThrowOnError>) => RequestResult<TextToSpeechResponses, TextToSpeechErrors, ThrowOnError>;
|
|
2557
4611
|
|
|
2558
4612
|
export declare type TextToSpeechData = {
|
|
2559
4613
|
body: {
|
|
@@ -2590,7 +4644,7 @@ export declare type TextToSpeechResponses = {
|
|
|
2590
4644
|
/**
|
|
2591
4645
|
* Enable or disable an MCP server
|
|
2592
4646
|
*/
|
|
2593
|
-
export declare const toggleMcpServer: <ThrowOnError extends boolean = false>(options: Options<ToggleMcpServerData, ThrowOnError>) => RequestResult<ToggleMcpServerResponses, unknown, ThrowOnError
|
|
4647
|
+
export declare const toggleMcpServer: <ThrowOnError extends boolean = false>(options: Options<ToggleMcpServerData, ThrowOnError>) => RequestResult<ToggleMcpServerResponses, unknown, ThrowOnError>;
|
|
2594
4648
|
|
|
2595
4649
|
export declare type ToggleMcpServerData = {
|
|
2596
4650
|
body: {
|
|
@@ -2614,10 +4668,95 @@ export declare type ToggleMcpServerResponses = {
|
|
|
2614
4668
|
};
|
|
2615
4669
|
};
|
|
2616
4670
|
|
|
4671
|
+
/**
|
|
4672
|
+
* Enable or disable a skill
|
|
4673
|
+
*/
|
|
4674
|
+
export declare const toggleSkill: <ThrowOnError extends boolean = false>(options: Options<ToggleSkillData, ThrowOnError>) => RequestResult<ToggleSkillResponses, ToggleSkillErrors, ThrowOnError>;
|
|
4675
|
+
|
|
4676
|
+
export declare type ToggleSkillData = {
|
|
4677
|
+
body: SkillToggle;
|
|
4678
|
+
path?: never;
|
|
4679
|
+
query?: never;
|
|
4680
|
+
url: '/user/enabled-skills';
|
|
4681
|
+
};
|
|
4682
|
+
|
|
4683
|
+
export declare type ToggleSkillError = ToggleSkillErrors[keyof ToggleSkillErrors];
|
|
4684
|
+
|
|
4685
|
+
export declare type ToggleSkillErrors = {
|
|
4686
|
+
/**
|
|
4687
|
+
* Bad request
|
|
4688
|
+
*/
|
|
4689
|
+
400: ErrorResponse;
|
|
4690
|
+
/**
|
|
4691
|
+
* Authentication required
|
|
4692
|
+
*/
|
|
4693
|
+
401: ErrorResponse;
|
|
4694
|
+
/**
|
|
4695
|
+
* Internal server error
|
|
4696
|
+
*/
|
|
4697
|
+
500: ErrorResponse;
|
|
4698
|
+
};
|
|
4699
|
+
|
|
4700
|
+
export declare type ToggleSkillResponse = ToggleSkillResponses[keyof ToggleSkillResponses];
|
|
4701
|
+
|
|
4702
|
+
export declare type ToggleSkillResponses = {
|
|
4703
|
+
/**
|
|
4704
|
+
* Updated
|
|
4705
|
+
*/
|
|
4706
|
+
200: {
|
|
4707
|
+
message?: string;
|
|
4708
|
+
skillId?: string;
|
|
4709
|
+
enabled?: boolean;
|
|
4710
|
+
};
|
|
4711
|
+
};
|
|
4712
|
+
|
|
4713
|
+
/**
|
|
4714
|
+
* Enable or disable several skills
|
|
4715
|
+
*/
|
|
4716
|
+
export declare const toggleSkills: <ThrowOnError extends boolean = false>(options: Options<ToggleSkillsData, ThrowOnError>) => RequestResult<ToggleSkillsResponses, ToggleSkillsErrors, ThrowOnError>;
|
|
4717
|
+
|
|
4718
|
+
export declare type ToggleSkillsData = {
|
|
4719
|
+
body: {
|
|
4720
|
+
updates: Array<SkillToggle>;
|
|
4721
|
+
};
|
|
4722
|
+
path?: never;
|
|
4723
|
+
query?: never;
|
|
4724
|
+
url: '/user/enabled-skills/batch';
|
|
4725
|
+
};
|
|
4726
|
+
|
|
4727
|
+
export declare type ToggleSkillsError = ToggleSkillsErrors[keyof ToggleSkillsErrors];
|
|
4728
|
+
|
|
4729
|
+
export declare type ToggleSkillsErrors = {
|
|
4730
|
+
/**
|
|
4731
|
+
* Bad request
|
|
4732
|
+
*/
|
|
4733
|
+
400: ErrorResponse;
|
|
4734
|
+
/**
|
|
4735
|
+
* Authentication required
|
|
4736
|
+
*/
|
|
4737
|
+
401: ErrorResponse;
|
|
4738
|
+
/**
|
|
4739
|
+
* Internal server error
|
|
4740
|
+
*/
|
|
4741
|
+
500: ErrorResponse;
|
|
4742
|
+
};
|
|
4743
|
+
|
|
4744
|
+
export declare type ToggleSkillsResponse = ToggleSkillsResponses[keyof ToggleSkillsResponses];
|
|
4745
|
+
|
|
4746
|
+
export declare type ToggleSkillsResponses = {
|
|
4747
|
+
/**
|
|
4748
|
+
* Updated
|
|
4749
|
+
*/
|
|
4750
|
+
200: {
|
|
4751
|
+
message?: string;
|
|
4752
|
+
results?: Array<SkillToggle>;
|
|
4753
|
+
};
|
|
4754
|
+
};
|
|
4755
|
+
|
|
2617
4756
|
/**
|
|
2618
4757
|
* Transcribe audio via Whisper (Cloudflare Workers AI)
|
|
2619
4758
|
*/
|
|
2620
|
-
export declare const transcribeAudio: <ThrowOnError extends boolean = false>(options: Options<TranscribeAudioData, ThrowOnError>) => RequestResult<TranscribeAudioResponses, unknown, ThrowOnError
|
|
4759
|
+
export declare const transcribeAudio: <ThrowOnError extends boolean = false>(options: Options<TranscribeAudioData, ThrowOnError>) => RequestResult<TranscribeAudioResponses, unknown, ThrowOnError>;
|
|
2621
4760
|
|
|
2622
4761
|
export declare type TranscribeAudioData = {
|
|
2623
4762
|
body: {
|
|
@@ -2641,10 +4780,174 @@ export declare type TranscribeAudioResponses = {
|
|
|
2641
4780
|
};
|
|
2642
4781
|
};
|
|
2643
4782
|
|
|
4783
|
+
/**
|
|
4784
|
+
* Save news settings, or run refresh / prune / diagnose
|
|
4785
|
+
*
|
|
4786
|
+
* A body with `action` runs it; otherwise the named settings fields are saved (partial update) to D1.
|
|
4787
|
+
*/
|
|
4788
|
+
export declare const updateAdminNews: <ThrowOnError extends boolean = false>(options: Options<UpdateAdminNewsData, ThrowOnError>) => RequestResult<UpdateAdminNewsResponses, UpdateAdminNewsErrors, ThrowOnError>;
|
|
4789
|
+
|
|
4790
|
+
export declare type UpdateAdminNewsData = {
|
|
4791
|
+
body: {
|
|
4792
|
+
action: 'refresh' | 'prune' | 'diagnose';
|
|
4793
|
+
} | {
|
|
4794
|
+
enabled?: boolean;
|
|
4795
|
+
defaultTopics?: string;
|
|
4796
|
+
allowUserTopics?: boolean;
|
|
4797
|
+
maxTopics?: number;
|
|
4798
|
+
showImages?: boolean;
|
|
4799
|
+
cacheMinutes?: number;
|
|
4800
|
+
retentionDays?: number;
|
|
4801
|
+
};
|
|
4802
|
+
path?: never;
|
|
4803
|
+
query?: never;
|
|
4804
|
+
url: '/admin/news';
|
|
4805
|
+
};
|
|
4806
|
+
|
|
4807
|
+
export declare type UpdateAdminNewsError = UpdateAdminNewsErrors[keyof UpdateAdminNewsErrors];
|
|
4808
|
+
|
|
4809
|
+
export declare type UpdateAdminNewsErrors = {
|
|
4810
|
+
/**
|
|
4811
|
+
* Bad request
|
|
4812
|
+
*/
|
|
4813
|
+
400: ErrorResponse;
|
|
4814
|
+
/**
|
|
4815
|
+
* Authentication required
|
|
4816
|
+
*/
|
|
4817
|
+
401: ErrorResponse;
|
|
4818
|
+
/**
|
|
4819
|
+
* Signed in, but not allowed to do this
|
|
4820
|
+
*/
|
|
4821
|
+
403: ErrorResponse;
|
|
4822
|
+
/**
|
|
4823
|
+
* Internal server error
|
|
4824
|
+
*/
|
|
4825
|
+
500: ErrorResponse;
|
|
4826
|
+
};
|
|
4827
|
+
|
|
4828
|
+
export declare type UpdateAdminNewsResponse = UpdateAdminNewsResponses[keyof UpdateAdminNewsResponses];
|
|
4829
|
+
|
|
4830
|
+
export declare type UpdateAdminNewsResponses = {
|
|
4831
|
+
/**
|
|
4832
|
+
* Saved settings or action result
|
|
4833
|
+
*/
|
|
4834
|
+
200: {
|
|
4835
|
+
[key: string]: unknown;
|
|
4836
|
+
};
|
|
4837
|
+
};
|
|
4838
|
+
|
|
4839
|
+
/**
|
|
4840
|
+
* Update a row
|
|
4841
|
+
*
|
|
4842
|
+
* Only the registry-approved columns are written; everything else in the body is dropped.
|
|
4843
|
+
*/
|
|
4844
|
+
export declare const updateAdminTableRow: <ThrowOnError extends boolean = false>(options: Options<UpdateAdminTableRowData, ThrowOnError>) => RequestResult<UpdateAdminTableRowResponses, UpdateAdminTableRowErrors, ThrowOnError>;
|
|
4845
|
+
|
|
4846
|
+
export declare type UpdateAdminTableRowData = {
|
|
4847
|
+
body: {
|
|
4848
|
+
[key: string]: unknown;
|
|
4849
|
+
};
|
|
4850
|
+
path: {
|
|
4851
|
+
table: string;
|
|
4852
|
+
id: string;
|
|
4853
|
+
};
|
|
4854
|
+
query?: never;
|
|
4855
|
+
url: '/admin/database/{table}/{id}';
|
|
4856
|
+
};
|
|
4857
|
+
|
|
4858
|
+
export declare type UpdateAdminTableRowError = UpdateAdminTableRowErrors[keyof UpdateAdminTableRowErrors];
|
|
4859
|
+
|
|
4860
|
+
export declare type UpdateAdminTableRowErrors = {
|
|
4861
|
+
/**
|
|
4862
|
+
* Bad request
|
|
4863
|
+
*/
|
|
4864
|
+
400: ErrorResponse;
|
|
4865
|
+
/**
|
|
4866
|
+
* Authentication required
|
|
4867
|
+
*/
|
|
4868
|
+
401: ErrorResponse;
|
|
4869
|
+
/**
|
|
4870
|
+
* Signed in, but not allowed to do this
|
|
4871
|
+
*/
|
|
4872
|
+
403: ErrorResponse;
|
|
4873
|
+
/**
|
|
4874
|
+
* Not found
|
|
4875
|
+
*/
|
|
4876
|
+
404: ErrorResponse;
|
|
4877
|
+
};
|
|
4878
|
+
|
|
4879
|
+
export declare type UpdateAdminTableRowResponse = UpdateAdminTableRowResponses[keyof UpdateAdminTableRowResponses];
|
|
4880
|
+
|
|
4881
|
+
export declare type UpdateAdminTableRowResponses = {
|
|
4882
|
+
/**
|
|
4883
|
+
* Updated row
|
|
4884
|
+
*/
|
|
4885
|
+
200: {
|
|
4886
|
+
row?: {
|
|
4887
|
+
[key: string]: unknown;
|
|
4888
|
+
};
|
|
4889
|
+
};
|
|
4890
|
+
};
|
|
4891
|
+
|
|
4892
|
+
/**
|
|
4893
|
+
* Update a user
|
|
4894
|
+
*/
|
|
4895
|
+
export declare const updateAdminUser: <ThrowOnError extends boolean = false>(options: Options<UpdateAdminUserData, ThrowOnError>) => RequestResult<UpdateAdminUserResponses, UpdateAdminUserErrors, ThrowOnError>;
|
|
4896
|
+
|
|
4897
|
+
export declare type UpdateAdminUserData = {
|
|
4898
|
+
/**
|
|
4899
|
+
* Only these fields are written.
|
|
4900
|
+
*/
|
|
4901
|
+
body: {
|
|
4902
|
+
name?: string;
|
|
4903
|
+
trialAllowed?: boolean;
|
|
4904
|
+
storageQuotaBytes?: number;
|
|
4905
|
+
};
|
|
4906
|
+
path: {
|
|
4907
|
+
id: string;
|
|
4908
|
+
};
|
|
4909
|
+
query?: never;
|
|
4910
|
+
url: '/admin/users/{id}';
|
|
4911
|
+
};
|
|
4912
|
+
|
|
4913
|
+
export declare type UpdateAdminUserError = UpdateAdminUserErrors[keyof UpdateAdminUserErrors];
|
|
4914
|
+
|
|
4915
|
+
export declare type UpdateAdminUserErrors = {
|
|
4916
|
+
/**
|
|
4917
|
+
* Bad request
|
|
4918
|
+
*/
|
|
4919
|
+
400: ErrorResponse;
|
|
4920
|
+
/**
|
|
4921
|
+
* Authentication required
|
|
4922
|
+
*/
|
|
4923
|
+
401: ErrorResponse;
|
|
4924
|
+
/**
|
|
4925
|
+
* Signed in, but not allowed to do this
|
|
4926
|
+
*/
|
|
4927
|
+
403: ErrorResponse;
|
|
4928
|
+
/**
|
|
4929
|
+
* Not found
|
|
4930
|
+
*/
|
|
4931
|
+
404: ErrorResponse;
|
|
4932
|
+
};
|
|
4933
|
+
|
|
4934
|
+
export declare type UpdateAdminUserResponse = UpdateAdminUserResponses[keyof UpdateAdminUserResponses];
|
|
4935
|
+
|
|
4936
|
+
export declare type UpdateAdminUserResponses = {
|
|
4937
|
+
/**
|
|
4938
|
+
* Updated
|
|
4939
|
+
*/
|
|
4940
|
+
200: {
|
|
4941
|
+
user?: {
|
|
4942
|
+
[key: string]: unknown;
|
|
4943
|
+
};
|
|
4944
|
+
};
|
|
4945
|
+
};
|
|
4946
|
+
|
|
2644
4947
|
/**
|
|
2645
4948
|
* Store article Q&A or follow-up questions
|
|
2646
4949
|
*/
|
|
2647
|
-
export declare const updateArticle: <ThrowOnError extends boolean = false>(options: Options<UpdateArticleData, ThrowOnError>) => RequestResult<UpdateArticleResponses, UpdateArticleErrors, ThrowOnError
|
|
4950
|
+
export declare const updateArticle: <ThrowOnError extends boolean = false>(options: Options<UpdateArticleData, ThrowOnError>) => RequestResult<UpdateArticleResponses, UpdateArticleErrors, ThrowOnError>;
|
|
2648
4951
|
|
|
2649
4952
|
export declare type UpdateArticleData = {
|
|
2650
4953
|
body: {
|
|
@@ -2681,7 +4984,7 @@ export declare type UpdateArticleResponses = {
|
|
|
2681
4984
|
/**
|
|
2682
4985
|
* Update a document
|
|
2683
4986
|
*/
|
|
2684
|
-
export declare const updateDocument: <ThrowOnError extends boolean = false>(options: Options<UpdateDocumentData, ThrowOnError>) => RequestResult<UpdateDocumentResponses, UpdateDocumentErrors, ThrowOnError
|
|
4987
|
+
export declare const updateDocument: <ThrowOnError extends boolean = false>(options: Options<UpdateDocumentData, ThrowOnError>) => RequestResult<UpdateDocumentResponses, UpdateDocumentErrors, ThrowOnError>;
|
|
2685
4988
|
|
|
2686
4989
|
export declare type UpdateDocumentData = {
|
|
2687
4990
|
body: {
|
|
@@ -2722,7 +5025,7 @@ export declare type UpdateDocumentResponses = {
|
|
|
2722
5025
|
/**
|
|
2723
5026
|
* Update enabled search engines
|
|
2724
5027
|
*/
|
|
2725
|
-
export declare const updateEngineStatus: <ThrowOnError extends boolean = false>(options: Options<UpdateEngineStatusData, ThrowOnError>) => RequestResult<UpdateEngineStatusResponses, unknown, ThrowOnError
|
|
5028
|
+
export declare const updateEngineStatus: <ThrowOnError extends boolean = false>(options: Options<UpdateEngineStatusData, ThrowOnError>) => RequestResult<UpdateEngineStatusResponses, unknown, ThrowOnError>;
|
|
2726
5029
|
|
|
2727
5030
|
export declare type UpdateEngineStatusData = {
|
|
2728
5031
|
body: {
|
|
@@ -2739,15 +5042,13 @@ export declare type UpdateEngineStatusResponses = {
|
|
|
2739
5042
|
/**
|
|
2740
5043
|
* Updated
|
|
2741
5044
|
*/
|
|
2742
|
-
200:
|
|
2743
|
-
message?: string;
|
|
2744
|
-
};
|
|
5045
|
+
200: MessageResponse;
|
|
2745
5046
|
};
|
|
2746
5047
|
|
|
2747
5048
|
/**
|
|
2748
5049
|
* Update an MCP server
|
|
2749
5050
|
*/
|
|
2750
|
-
export declare const updateMcpServer: <ThrowOnError extends boolean = false>(options: Options<UpdateMcpServerData, ThrowOnError>) => RequestResult<UpdateMcpServerResponses, unknown, ThrowOnError
|
|
5051
|
+
export declare const updateMcpServer: <ThrowOnError extends boolean = false>(options: Options<UpdateMcpServerData, ThrowOnError>) => RequestResult<UpdateMcpServerResponses, unknown, ThrowOnError>;
|
|
2751
5052
|
|
|
2752
5053
|
export declare type UpdateMcpServerData = {
|
|
2753
5054
|
body: {
|
|
@@ -2774,10 +5075,57 @@ export declare type UpdateMcpServerResponses = {
|
|
|
2774
5075
|
};
|
|
2775
5076
|
};
|
|
2776
5077
|
|
|
5078
|
+
/**
|
|
5079
|
+
* Update a memory
|
|
5080
|
+
*/
|
|
5081
|
+
export declare const updateMemory: <ThrowOnError extends boolean = false>(options: Options<UpdateMemoryData, ThrowOnError>) => RequestResult<UpdateMemoryResponses, UpdateMemoryErrors, ThrowOnError>;
|
|
5082
|
+
|
|
5083
|
+
export declare type UpdateMemoryData = {
|
|
5084
|
+
body: {
|
|
5085
|
+
name?: string;
|
|
5086
|
+
description?: string;
|
|
5087
|
+
importance?: number;
|
|
5088
|
+
tags?: Array<string>;
|
|
5089
|
+
metadata?: {
|
|
5090
|
+
[key: string]: unknown;
|
|
5091
|
+
};
|
|
5092
|
+
};
|
|
5093
|
+
path: {
|
|
5094
|
+
id: string;
|
|
5095
|
+
};
|
|
5096
|
+
query?: never;
|
|
5097
|
+
url: '/user/memories/{id}';
|
|
5098
|
+
};
|
|
5099
|
+
|
|
5100
|
+
export declare type UpdateMemoryError = UpdateMemoryErrors[keyof UpdateMemoryErrors];
|
|
5101
|
+
|
|
5102
|
+
export declare type UpdateMemoryErrors = {
|
|
5103
|
+
/**
|
|
5104
|
+
* Authentication required
|
|
5105
|
+
*/
|
|
5106
|
+
401: ErrorResponse;
|
|
5107
|
+
/**
|
|
5108
|
+
* Not found
|
|
5109
|
+
*/
|
|
5110
|
+
404: ErrorResponse;
|
|
5111
|
+
};
|
|
5112
|
+
|
|
5113
|
+
export declare type UpdateMemoryResponse = UpdateMemoryResponses[keyof UpdateMemoryResponses];
|
|
5114
|
+
|
|
5115
|
+
export declare type UpdateMemoryResponses = {
|
|
5116
|
+
/**
|
|
5117
|
+
* Updated
|
|
5118
|
+
*/
|
|
5119
|
+
200: {
|
|
5120
|
+
message?: string;
|
|
5121
|
+
memory?: Memory;
|
|
5122
|
+
};
|
|
5123
|
+
};
|
|
5124
|
+
|
|
2777
5125
|
/**
|
|
2778
5126
|
* Update a provider
|
|
2779
5127
|
*/
|
|
2780
|
-
export declare const updateProvider: <ThrowOnError extends boolean = false>(options: Options<UpdateProviderData, ThrowOnError>) => RequestResult<UpdateProviderResponses, unknown, ThrowOnError
|
|
5128
|
+
export declare const updateProvider: <ThrowOnError extends boolean = false>(options: Options<UpdateProviderData, ThrowOnError>) => RequestResult<UpdateProviderResponses, unknown, ThrowOnError>;
|
|
2781
5129
|
|
|
2782
5130
|
export declare type UpdateProviderData = {
|
|
2783
5131
|
body: {
|
|
@@ -2806,7 +5154,7 @@ export declare type UpdateProviderResponses = {
|
|
|
2806
5154
|
/**
|
|
2807
5155
|
* Update a quote
|
|
2808
5156
|
*/
|
|
2809
|
-
export declare const updateQuote: <ThrowOnError extends boolean = false>(options: Options<UpdateQuoteData, ThrowOnError>) => RequestResult<UpdateQuoteResponses, unknown, ThrowOnError
|
|
5157
|
+
export declare const updateQuote: <ThrowOnError extends boolean = false>(options: Options<UpdateQuoteData, ThrowOnError>) => RequestResult<UpdateQuoteResponses, unknown, ThrowOnError>;
|
|
2810
5158
|
|
|
2811
5159
|
export declare type UpdateQuoteData = {
|
|
2812
5160
|
body: {
|
|
@@ -2839,7 +5187,7 @@ export declare type UpdateQuoteResponses = {
|
|
|
2839
5187
|
/**
|
|
2840
5188
|
* Update user profile
|
|
2841
5189
|
*/
|
|
2842
|
-
export declare const updateUser: <ThrowOnError extends boolean = false>(options: Options<UpdateUserData, ThrowOnError>) => RequestResult<UpdateUserResponses, UpdateUserErrors, ThrowOnError
|
|
5190
|
+
export declare const updateUser: <ThrowOnError extends boolean = false>(options: Options<UpdateUserData, ThrowOnError>) => RequestResult<UpdateUserResponses, UpdateUserErrors, ThrowOnError>;
|
|
2843
5191
|
|
|
2844
5192
|
export declare type UpdateUserData = {
|
|
2845
5193
|
body: {
|
|
@@ -2868,9 +5216,7 @@ export declare type UpdateUserResponses = {
|
|
|
2868
5216
|
/**
|
|
2869
5217
|
* Updated
|
|
2870
5218
|
*/
|
|
2871
|
-
200:
|
|
2872
|
-
message?: string;
|
|
2873
|
-
};
|
|
5219
|
+
200: MessageResponse;
|
|
2874
5220
|
};
|
|
2875
5221
|
|
|
2876
5222
|
export declare type UploadedFile = {
|
|
@@ -2883,7 +5229,7 @@ export declare type UploadedFile = {
|
|
|
2883
5229
|
/**
|
|
2884
5230
|
* Upload files to Cloudflare R2 (PDF, DOCX, TXT, HTML)
|
|
2885
5231
|
*/
|
|
2886
|
-
export declare const uploadFiles: <ThrowOnError extends boolean = false>(options: Options<UploadFilesData, ThrowOnError>) => RequestResult<UploadFilesResponses, unknown, ThrowOnError
|
|
5232
|
+
export declare const uploadFiles: <ThrowOnError extends boolean = false>(options: Options<UploadFilesData, ThrowOnError>) => RequestResult<UploadFilesResponses, unknown, ThrowOnError>;
|
|
2887
5233
|
|
|
2888
5234
|
export declare type UploadFilesData = {
|
|
2889
5235
|
body: {
|