mcpscraper-sdk 0.31.1 → 0.33.0
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 +3 -3
- package/dist/index.cjs +40 -0
- package/dist/index.d.cts +602 -3
- package/dist/index.d.ts +602 -3
- package/dist/index.js +41 -0
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessNamespace, CaptureNamespace, ChannelsNamespace, FactsNamespace, GraphNamespace, LibraryNamespace, MemoryNamespace, RecallNamespace, ScheduleNamespace, StorageNamespace, TablesNamespace, TagsNamespace, VaultsNamespace, VideoNamespace as VideoNamespace$1, WebhooksNamespace, CallToolFn, McpToolsClient } from 'mcpscraper-memory-sdk';
|
|
1
|
+
import { AccessNamespace, CaptureNamespace, ChannelsNamespace, FactsNamespace, FilesNamespace, GraphNamespace, LibraryNamespace, MemoryNamespace, RecallNamespace, ScheduleNamespace, StorageNamespace, TablesNamespace, TagsNamespace, VaultsNamespace, VideoNamespace as VideoNamespace$1, WebhooksNamespace, CallToolFn, McpToolsClient } from 'mcpscraper-memory-sdk';
|
|
2
2
|
export { GeneratedMcpToolsClient, MCP_TOOL_BINDINGS, MCP_TOOL_COUNT, McpContentBlock, McpToolCallResult, McpToolDescriptor, McpToolError, McpToolErrorDetails, McpToolsClient, McpToolsClientOptions } from 'mcpscraper-memory-sdk';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -838,6 +838,179 @@ interface paths {
|
|
|
838
838
|
patch?: never;
|
|
839
839
|
trace?: never;
|
|
840
840
|
};
|
|
841
|
+
"/api/gmail/messages/search": {
|
|
842
|
+
parameters: {
|
|
843
|
+
query?: never;
|
|
844
|
+
header?: never;
|
|
845
|
+
path?: never;
|
|
846
|
+
cookie?: never;
|
|
847
|
+
};
|
|
848
|
+
get?: never;
|
|
849
|
+
put?: never;
|
|
850
|
+
/** Search Gmail messages and receive normalized previews plus an opaque cursor */
|
|
851
|
+
post: operations["gmailSearchMessages"];
|
|
852
|
+
delete?: never;
|
|
853
|
+
options?: never;
|
|
854
|
+
head?: never;
|
|
855
|
+
patch?: never;
|
|
856
|
+
trace?: never;
|
|
857
|
+
};
|
|
858
|
+
"/api/gmail/messages/{messageId}": {
|
|
859
|
+
parameters: {
|
|
860
|
+
query?: never;
|
|
861
|
+
header?: never;
|
|
862
|
+
path?: never;
|
|
863
|
+
cookie?: never;
|
|
864
|
+
};
|
|
865
|
+
get?: never;
|
|
866
|
+
put?: never;
|
|
867
|
+
/** Read one complete normalized Gmail message and its attachment references */
|
|
868
|
+
post: operations["gmailGetMessage"];
|
|
869
|
+
delete?: never;
|
|
870
|
+
options?: never;
|
|
871
|
+
head?: never;
|
|
872
|
+
patch?: never;
|
|
873
|
+
trace?: never;
|
|
874
|
+
};
|
|
875
|
+
"/api/gmail/attachments/get": {
|
|
876
|
+
parameters: {
|
|
877
|
+
query?: never;
|
|
878
|
+
header?: never;
|
|
879
|
+
path?: never;
|
|
880
|
+
cookie?: never;
|
|
881
|
+
};
|
|
882
|
+
get?: never;
|
|
883
|
+
put?: never;
|
|
884
|
+
/** Resolve an opaque attachment reference to verified private bytes */
|
|
885
|
+
post: operations["gmailGetAttachment"];
|
|
886
|
+
delete?: never;
|
|
887
|
+
options?: never;
|
|
888
|
+
head?: never;
|
|
889
|
+
patch?: never;
|
|
890
|
+
trace?: never;
|
|
891
|
+
};
|
|
892
|
+
"/api/gmail/selections": {
|
|
893
|
+
parameters: {
|
|
894
|
+
query?: never;
|
|
895
|
+
header?: never;
|
|
896
|
+
path?: never;
|
|
897
|
+
cookie?: never;
|
|
898
|
+
};
|
|
899
|
+
get?: never;
|
|
900
|
+
put?: never;
|
|
901
|
+
/** Freeze an exact owner-scoped Gmail selection for one purpose */
|
|
902
|
+
post: operations["gmailPrepareSelection"];
|
|
903
|
+
delete?: never;
|
|
904
|
+
options?: never;
|
|
905
|
+
head?: never;
|
|
906
|
+
patch?: never;
|
|
907
|
+
trace?: never;
|
|
908
|
+
};
|
|
909
|
+
"/api/gmail/selections/{selectionId}/export": {
|
|
910
|
+
parameters: {
|
|
911
|
+
query?: never;
|
|
912
|
+
header?: never;
|
|
913
|
+
path?: never;
|
|
914
|
+
cookie?: never;
|
|
915
|
+
};
|
|
916
|
+
get?: never;
|
|
917
|
+
put?: never;
|
|
918
|
+
/** Export every message in an unchanged frozen selection */
|
|
919
|
+
post: operations["gmailExportSelection"];
|
|
920
|
+
delete?: never;
|
|
921
|
+
options?: never;
|
|
922
|
+
head?: never;
|
|
923
|
+
patch?: never;
|
|
924
|
+
trace?: never;
|
|
925
|
+
};
|
|
926
|
+
"/api/gmail/selections/{selectionId}/manage": {
|
|
927
|
+
parameters: {
|
|
928
|
+
query?: never;
|
|
929
|
+
header?: never;
|
|
930
|
+
path?: never;
|
|
931
|
+
cookie?: never;
|
|
932
|
+
};
|
|
933
|
+
get?: never;
|
|
934
|
+
put?: never;
|
|
935
|
+
/** Apply one reversible mailbox operation to an unchanged selection */
|
|
936
|
+
post: operations["gmailBulkManageMessages"];
|
|
937
|
+
delete?: never;
|
|
938
|
+
options?: never;
|
|
939
|
+
head?: never;
|
|
940
|
+
patch?: never;
|
|
941
|
+
trace?: never;
|
|
942
|
+
};
|
|
943
|
+
"/api/gmail/selections/{selectionId}/delete": {
|
|
944
|
+
parameters: {
|
|
945
|
+
query?: never;
|
|
946
|
+
header?: never;
|
|
947
|
+
path?: never;
|
|
948
|
+
cookie?: never;
|
|
949
|
+
};
|
|
950
|
+
get?: never;
|
|
951
|
+
put?: never;
|
|
952
|
+
/**
|
|
953
|
+
* Permanently and irreversibly delete an unchanged Gmail selection
|
|
954
|
+
* @description This is not trash. It requires an exact selection receipt, a stable Idempotency-Key, and literal confirmPermanentDelete true.
|
|
955
|
+
*/
|
|
956
|
+
post: operations["gmailBulkDeleteMessages"];
|
|
957
|
+
delete?: never;
|
|
958
|
+
options?: never;
|
|
959
|
+
head?: never;
|
|
960
|
+
patch?: never;
|
|
961
|
+
trace?: never;
|
|
962
|
+
};
|
|
963
|
+
"/api/gmail/imports/prepare": {
|
|
964
|
+
parameters: {
|
|
965
|
+
query?: never;
|
|
966
|
+
header?: never;
|
|
967
|
+
path?: never;
|
|
968
|
+
cookie?: never;
|
|
969
|
+
};
|
|
970
|
+
get?: never;
|
|
971
|
+
put?: never;
|
|
972
|
+
/** Review exact Memory routes, attachment handling, and refusals before writes */
|
|
973
|
+
post: operations["gmailPrepareMemoryImport"];
|
|
974
|
+
delete?: never;
|
|
975
|
+
options?: never;
|
|
976
|
+
head?: never;
|
|
977
|
+
patch?: never;
|
|
978
|
+
trace?: never;
|
|
979
|
+
};
|
|
980
|
+
"/api/gmail/imports/{importPlanId}/start": {
|
|
981
|
+
parameters: {
|
|
982
|
+
query?: never;
|
|
983
|
+
header?: never;
|
|
984
|
+
path?: never;
|
|
985
|
+
cookie?: never;
|
|
986
|
+
};
|
|
987
|
+
get?: never;
|
|
988
|
+
put?: never;
|
|
989
|
+
/** Start or resume a reviewed Gmail import to Memory */
|
|
990
|
+
post: operations["gmailImportToMemory"];
|
|
991
|
+
delete?: never;
|
|
992
|
+
options?: never;
|
|
993
|
+
head?: never;
|
|
994
|
+
patch?: never;
|
|
995
|
+
trace?: never;
|
|
996
|
+
};
|
|
997
|
+
"/api/gmail/imports/{ingestId}": {
|
|
998
|
+
parameters: {
|
|
999
|
+
query?: never;
|
|
1000
|
+
header?: never;
|
|
1001
|
+
path?: never;
|
|
1002
|
+
cookie?: never;
|
|
1003
|
+
};
|
|
1004
|
+
/** Observe Gmail Memory import state without continuing work */
|
|
1005
|
+
get: operations["gmailImportStatus"];
|
|
1006
|
+
put?: never;
|
|
1007
|
+
post?: never;
|
|
1008
|
+
delete?: never;
|
|
1009
|
+
options?: never;
|
|
1010
|
+
head?: never;
|
|
1011
|
+
patch?: never;
|
|
1012
|
+
trace?: never;
|
|
1013
|
+
};
|
|
841
1014
|
"/memory/mcp-call": {
|
|
842
1015
|
parameters: {
|
|
843
1016
|
query?: never;
|
|
@@ -849,7 +1022,7 @@ interface paths {
|
|
|
849
1022
|
put?: never;
|
|
850
1023
|
/**
|
|
851
1024
|
* Call one memory.mcpscraper.dev tool by name, using this account's mcpscraper.dev API key
|
|
852
|
-
* @description Generic dispatch: names one of the
|
|
1025
|
+
* @description Generic dispatch: names one of the 116 tools documented in this repo's
|
|
853
1026
|
* `contracts/memory.tools.json` and forwards `args` to it, using a memory identity
|
|
854
1027
|
* auto-provisioned for the calling mcpscraper.dev account. The response shape depends
|
|
855
1028
|
* entirely on which tool was called — see that tool's `outputSchema` in the manifest.
|
|
@@ -1650,6 +1823,91 @@ interface components {
|
|
|
1650
1823
|
} & {
|
|
1651
1824
|
[key: string]: unknown;
|
|
1652
1825
|
};
|
|
1826
|
+
GmailSearchMessagesRequest: {
|
|
1827
|
+
connectionId: string;
|
|
1828
|
+
query: string;
|
|
1829
|
+
/** @default 50 */
|
|
1830
|
+
limit: number;
|
|
1831
|
+
cursor?: string;
|
|
1832
|
+
};
|
|
1833
|
+
GmailGetMessageRequest: {
|
|
1834
|
+
connectionId: string;
|
|
1835
|
+
/** @default true */
|
|
1836
|
+
includeRawArtifact: boolean;
|
|
1837
|
+
};
|
|
1838
|
+
GmailGetAttachmentRequest: {
|
|
1839
|
+
attachmentRef: string;
|
|
1840
|
+
};
|
|
1841
|
+
GmailSelectionSource: {
|
|
1842
|
+
/** @enum {string} */
|
|
1843
|
+
kind: "query";
|
|
1844
|
+
query: string;
|
|
1845
|
+
} | {
|
|
1846
|
+
/** @enum {string} */
|
|
1847
|
+
kind: "message_ids";
|
|
1848
|
+
messageIds: string[];
|
|
1849
|
+
};
|
|
1850
|
+
GmailPrepareSelectionRequest: {
|
|
1851
|
+
connectionId: string;
|
|
1852
|
+
/** @enum {string} */
|
|
1853
|
+
purpose: "export" | "mailbox_action" | "memory_import";
|
|
1854
|
+
source: components["schemas"]["GmailSelectionSource"];
|
|
1855
|
+
};
|
|
1856
|
+
GmailSelectionReceiptRequest: {
|
|
1857
|
+
connectionId: string;
|
|
1858
|
+
selectionSha256: string;
|
|
1859
|
+
expectedCount: number;
|
|
1860
|
+
};
|
|
1861
|
+
GmailBulkManageRequest: {
|
|
1862
|
+
connectionId: string;
|
|
1863
|
+
selectionSha256: string;
|
|
1864
|
+
expectedCount: number;
|
|
1865
|
+
operation: {
|
|
1866
|
+
/** @enum {string} */
|
|
1867
|
+
kind: "mark_read" | "mark_unread" | "archive" | "move_to_inbox" | "trash" | "restore";
|
|
1868
|
+
} | {
|
|
1869
|
+
/** @enum {string} */
|
|
1870
|
+
kind: "labels";
|
|
1871
|
+
addLabelIds?: string[];
|
|
1872
|
+
removeLabelIds?: string[];
|
|
1873
|
+
};
|
|
1874
|
+
};
|
|
1875
|
+
GmailBulkDeleteRequest: {
|
|
1876
|
+
connectionId: string;
|
|
1877
|
+
selectionSha256: string;
|
|
1878
|
+
expectedCount: number;
|
|
1879
|
+
/** @enum {boolean} */
|
|
1880
|
+
confirmPermanentDelete: true;
|
|
1881
|
+
};
|
|
1882
|
+
GmailPrepareMemoryImportRequest: {
|
|
1883
|
+
connectionId: string;
|
|
1884
|
+
selectionId: string;
|
|
1885
|
+
selectionSha256: string;
|
|
1886
|
+
/**
|
|
1887
|
+
* @default source_archive
|
|
1888
|
+
* @enum {string}
|
|
1889
|
+
*/
|
|
1890
|
+
filingPolicy: "source_archive" | "relationship_communications";
|
|
1891
|
+
destination?: {
|
|
1892
|
+
/** @enum {string} */
|
|
1893
|
+
mode: "auto";
|
|
1894
|
+
} | {
|
|
1895
|
+
/** @enum {string} */
|
|
1896
|
+
mode: "vault";
|
|
1897
|
+
vault: string;
|
|
1898
|
+
};
|
|
1899
|
+
/**
|
|
1900
|
+
* @default preserve_all
|
|
1901
|
+
* @enum {string}
|
|
1902
|
+
*/
|
|
1903
|
+
attachmentPolicy: "preserve_all" | "index_supported" | "metadata_only" | "exclude";
|
|
1904
|
+
};
|
|
1905
|
+
GmailWorkflowResponse: {
|
|
1906
|
+
ok: boolean;
|
|
1907
|
+
error: string | null;
|
|
1908
|
+
} & {
|
|
1909
|
+
[key: string]: unknown;
|
|
1910
|
+
};
|
|
1653
1911
|
};
|
|
1654
1912
|
responses: {
|
|
1655
1913
|
/** @description Missing or invalid `x-api-key`. */
|
|
@@ -3429,6 +3687,278 @@ interface operations {
|
|
|
3429
3687
|
500: components["responses"]["ServerError"];
|
|
3430
3688
|
};
|
|
3431
3689
|
};
|
|
3690
|
+
gmailSearchMessages: {
|
|
3691
|
+
parameters: {
|
|
3692
|
+
query?: never;
|
|
3693
|
+
header?: never;
|
|
3694
|
+
path?: never;
|
|
3695
|
+
cookie?: never;
|
|
3696
|
+
};
|
|
3697
|
+
requestBody: {
|
|
3698
|
+
content: {
|
|
3699
|
+
"application/json": components["schemas"]["GmailSearchMessagesRequest"];
|
|
3700
|
+
};
|
|
3701
|
+
};
|
|
3702
|
+
responses: {
|
|
3703
|
+
/** @description Normalized message page. */
|
|
3704
|
+
200: {
|
|
3705
|
+
headers: {
|
|
3706
|
+
[name: string]: unknown;
|
|
3707
|
+
};
|
|
3708
|
+
content: {
|
|
3709
|
+
"application/json": components["schemas"]["GmailWorkflowResponse"];
|
|
3710
|
+
};
|
|
3711
|
+
};
|
|
3712
|
+
400: components["responses"]["BadRequest"];
|
|
3713
|
+
401: components["responses"]["Unauthorized"];
|
|
3714
|
+
};
|
|
3715
|
+
};
|
|
3716
|
+
gmailGetMessage: {
|
|
3717
|
+
parameters: {
|
|
3718
|
+
query?: never;
|
|
3719
|
+
header?: never;
|
|
3720
|
+
path: {
|
|
3721
|
+
messageId: string;
|
|
3722
|
+
};
|
|
3723
|
+
cookie?: never;
|
|
3724
|
+
};
|
|
3725
|
+
requestBody: {
|
|
3726
|
+
content: {
|
|
3727
|
+
"application/json": components["schemas"]["GmailGetMessageRequest"];
|
|
3728
|
+
};
|
|
3729
|
+
};
|
|
3730
|
+
responses: {
|
|
3731
|
+
/** @description Complete normalized message, MIME tree, and artifact pointers. */
|
|
3732
|
+
200: {
|
|
3733
|
+
headers: {
|
|
3734
|
+
[name: string]: unknown;
|
|
3735
|
+
};
|
|
3736
|
+
content: {
|
|
3737
|
+
"application/json": components["schemas"]["GmailWorkflowResponse"];
|
|
3738
|
+
};
|
|
3739
|
+
};
|
|
3740
|
+
400: components["responses"]["BadRequest"];
|
|
3741
|
+
401: components["responses"]["Unauthorized"];
|
|
3742
|
+
404: components["responses"]["NotFound"];
|
|
3743
|
+
};
|
|
3744
|
+
};
|
|
3745
|
+
gmailGetAttachment: {
|
|
3746
|
+
parameters: {
|
|
3747
|
+
query?: never;
|
|
3748
|
+
header?: never;
|
|
3749
|
+
path?: never;
|
|
3750
|
+
cookie?: never;
|
|
3751
|
+
};
|
|
3752
|
+
requestBody: {
|
|
3753
|
+
content: {
|
|
3754
|
+
"application/json": components["schemas"]["GmailGetAttachmentRequest"];
|
|
3755
|
+
};
|
|
3756
|
+
};
|
|
3757
|
+
responses: {
|
|
3758
|
+
/** @description Canonical artifact pointer plus bounded text when safe. */
|
|
3759
|
+
200: {
|
|
3760
|
+
headers: {
|
|
3761
|
+
[name: string]: unknown;
|
|
3762
|
+
};
|
|
3763
|
+
content: {
|
|
3764
|
+
"application/json": components["schemas"]["GmailWorkflowResponse"];
|
|
3765
|
+
};
|
|
3766
|
+
};
|
|
3767
|
+
400: components["responses"]["BadRequest"];
|
|
3768
|
+
401: components["responses"]["Unauthorized"];
|
|
3769
|
+
404: components["responses"]["NotFound"];
|
|
3770
|
+
};
|
|
3771
|
+
};
|
|
3772
|
+
gmailPrepareSelection: {
|
|
3773
|
+
parameters: {
|
|
3774
|
+
query?: never;
|
|
3775
|
+
header?: never;
|
|
3776
|
+
path?: never;
|
|
3777
|
+
cookie?: never;
|
|
3778
|
+
};
|
|
3779
|
+
requestBody: {
|
|
3780
|
+
content: {
|
|
3781
|
+
"application/json": components["schemas"]["GmailPrepareSelectionRequest"];
|
|
3782
|
+
};
|
|
3783
|
+
};
|
|
3784
|
+
responses: {
|
|
3785
|
+
/** @description Immutable 24-hour selection receipt and bounded preview. */
|
|
3786
|
+
200: {
|
|
3787
|
+
headers: {
|
|
3788
|
+
[name: string]: unknown;
|
|
3789
|
+
};
|
|
3790
|
+
content: {
|
|
3791
|
+
"application/json": components["schemas"]["GmailWorkflowResponse"];
|
|
3792
|
+
};
|
|
3793
|
+
};
|
|
3794
|
+
400: components["responses"]["BadRequest"];
|
|
3795
|
+
401: components["responses"]["Unauthorized"];
|
|
3796
|
+
};
|
|
3797
|
+
};
|
|
3798
|
+
gmailExportSelection: {
|
|
3799
|
+
parameters: {
|
|
3800
|
+
query?: never;
|
|
3801
|
+
header?: never;
|
|
3802
|
+
path: {
|
|
3803
|
+
selectionId: string;
|
|
3804
|
+
};
|
|
3805
|
+
cookie?: never;
|
|
3806
|
+
};
|
|
3807
|
+
requestBody: {
|
|
3808
|
+
content: {
|
|
3809
|
+
"application/json": components["schemas"]["GmailSelectionReceiptRequest"];
|
|
3810
|
+
};
|
|
3811
|
+
};
|
|
3812
|
+
responses: {
|
|
3813
|
+
/** @description Complete export artifact and bounded preview. */
|
|
3814
|
+
200: {
|
|
3815
|
+
headers: {
|
|
3816
|
+
[name: string]: unknown;
|
|
3817
|
+
};
|
|
3818
|
+
content: {
|
|
3819
|
+
"application/json": components["schemas"]["GmailWorkflowResponse"];
|
|
3820
|
+
};
|
|
3821
|
+
};
|
|
3822
|
+
400: components["responses"]["BadRequest"];
|
|
3823
|
+
401: components["responses"]["Unauthorized"];
|
|
3824
|
+
};
|
|
3825
|
+
};
|
|
3826
|
+
gmailBulkManageMessages: {
|
|
3827
|
+
parameters: {
|
|
3828
|
+
query?: never;
|
|
3829
|
+
header: {
|
|
3830
|
+
"Idempotency-Key": string;
|
|
3831
|
+
};
|
|
3832
|
+
path: {
|
|
3833
|
+
selectionId: string;
|
|
3834
|
+
};
|
|
3835
|
+
cookie?: never;
|
|
3836
|
+
};
|
|
3837
|
+
requestBody: {
|
|
3838
|
+
content: {
|
|
3839
|
+
"application/json": components["schemas"]["GmailBulkManageRequest"];
|
|
3840
|
+
};
|
|
3841
|
+
};
|
|
3842
|
+
responses: {
|
|
3843
|
+
/** @description Per-chunk action receipt with exact partial/retry state. */
|
|
3844
|
+
200: {
|
|
3845
|
+
headers: {
|
|
3846
|
+
[name: string]: unknown;
|
|
3847
|
+
};
|
|
3848
|
+
content: {
|
|
3849
|
+
"application/json": components["schemas"]["GmailWorkflowResponse"];
|
|
3850
|
+
};
|
|
3851
|
+
};
|
|
3852
|
+
400: components["responses"]["BadRequest"];
|
|
3853
|
+
401: components["responses"]["Unauthorized"];
|
|
3854
|
+
};
|
|
3855
|
+
};
|
|
3856
|
+
gmailBulkDeleteMessages: {
|
|
3857
|
+
parameters: {
|
|
3858
|
+
query?: never;
|
|
3859
|
+
header: {
|
|
3860
|
+
"Idempotency-Key": string;
|
|
3861
|
+
};
|
|
3862
|
+
path: {
|
|
3863
|
+
selectionId: string;
|
|
3864
|
+
};
|
|
3865
|
+
cookie?: never;
|
|
3866
|
+
};
|
|
3867
|
+
requestBody: {
|
|
3868
|
+
content: {
|
|
3869
|
+
"application/json": components["schemas"]["GmailBulkDeleteRequest"];
|
|
3870
|
+
};
|
|
3871
|
+
};
|
|
3872
|
+
responses: {
|
|
3873
|
+
/** @description Irreversible batch submission receipt. */
|
|
3874
|
+
200: {
|
|
3875
|
+
headers: {
|
|
3876
|
+
[name: string]: unknown;
|
|
3877
|
+
};
|
|
3878
|
+
content: {
|
|
3879
|
+
"application/json": components["schemas"]["GmailWorkflowResponse"];
|
|
3880
|
+
};
|
|
3881
|
+
};
|
|
3882
|
+
400: components["responses"]["BadRequest"];
|
|
3883
|
+
401: components["responses"]["Unauthorized"];
|
|
3884
|
+
};
|
|
3885
|
+
};
|
|
3886
|
+
gmailPrepareMemoryImport: {
|
|
3887
|
+
parameters: {
|
|
3888
|
+
query?: never;
|
|
3889
|
+
header?: never;
|
|
3890
|
+
path?: never;
|
|
3891
|
+
cookie?: never;
|
|
3892
|
+
};
|
|
3893
|
+
requestBody: {
|
|
3894
|
+
content: {
|
|
3895
|
+
"application/json": components["schemas"]["GmailPrepareMemoryImportRequest"];
|
|
3896
|
+
};
|
|
3897
|
+
};
|
|
3898
|
+
responses: {
|
|
3899
|
+
/** @description Immutable import plan with exact routes and attachment totals. */
|
|
3900
|
+
200: {
|
|
3901
|
+
headers: {
|
|
3902
|
+
[name: string]: unknown;
|
|
3903
|
+
};
|
|
3904
|
+
content: {
|
|
3905
|
+
"application/json": components["schemas"]["GmailWorkflowResponse"];
|
|
3906
|
+
};
|
|
3907
|
+
};
|
|
3908
|
+
400: components["responses"]["BadRequest"];
|
|
3909
|
+
401: components["responses"]["Unauthorized"];
|
|
3910
|
+
};
|
|
3911
|
+
};
|
|
3912
|
+
gmailImportToMemory: {
|
|
3913
|
+
parameters: {
|
|
3914
|
+
query?: never;
|
|
3915
|
+
header: {
|
|
3916
|
+
"Idempotency-Key": string;
|
|
3917
|
+
};
|
|
3918
|
+
path: {
|
|
3919
|
+
importPlanId: string;
|
|
3920
|
+
};
|
|
3921
|
+
cookie?: never;
|
|
3922
|
+
};
|
|
3923
|
+
requestBody?: never;
|
|
3924
|
+
responses: {
|
|
3925
|
+
/** @description Durable ingest receipt and exact next action. */
|
|
3926
|
+
200: {
|
|
3927
|
+
headers: {
|
|
3928
|
+
[name: string]: unknown;
|
|
3929
|
+
};
|
|
3930
|
+
content: {
|
|
3931
|
+
"application/json": components["schemas"]["GmailWorkflowResponse"];
|
|
3932
|
+
};
|
|
3933
|
+
};
|
|
3934
|
+
400: components["responses"]["BadRequest"];
|
|
3935
|
+
401: components["responses"]["Unauthorized"];
|
|
3936
|
+
};
|
|
3937
|
+
};
|
|
3938
|
+
gmailImportStatus: {
|
|
3939
|
+
parameters: {
|
|
3940
|
+
query?: never;
|
|
3941
|
+
header?: never;
|
|
3942
|
+
path: {
|
|
3943
|
+
ingestId: string;
|
|
3944
|
+
};
|
|
3945
|
+
cookie?: never;
|
|
3946
|
+
};
|
|
3947
|
+
requestBody?: never;
|
|
3948
|
+
responses: {
|
|
3949
|
+
/** @description Current message, attachment, checkpoint, and manifest state. */
|
|
3950
|
+
200: {
|
|
3951
|
+
headers: {
|
|
3952
|
+
[name: string]: unknown;
|
|
3953
|
+
};
|
|
3954
|
+
content: {
|
|
3955
|
+
"application/json": components["schemas"]["GmailWorkflowResponse"];
|
|
3956
|
+
};
|
|
3957
|
+
};
|
|
3958
|
+
401: components["responses"]["Unauthorized"];
|
|
3959
|
+
404: components["responses"]["NotFound"];
|
|
3960
|
+
};
|
|
3961
|
+
};
|
|
3432
3962
|
callMemoryTool: {
|
|
3433
3963
|
parameters: {
|
|
3434
3964
|
query?: never;
|
|
@@ -3490,6 +4020,9 @@ interface ScraperClientOptions {
|
|
|
3490
4020
|
interface IdempotentRequestOptions {
|
|
3491
4021
|
idempotencyKey?: string;
|
|
3492
4022
|
}
|
|
4023
|
+
interface GmailMutationOptions {
|
|
4024
|
+
idempotencyKey: string;
|
|
4025
|
+
}
|
|
3493
4026
|
type SerpIntelligenceCaptureDefaultedKey = 'gl' | 'hl' | 'device' | 'proxyMode' | 'pages' | 'debug' | 'includePageSnapshots' | 'pageSnapshotLimit';
|
|
3494
4027
|
type SerpIntelligenceCaptureParams = Omit<RequestBodyOf<'serpIntelligenceCapture'>, SerpIntelligenceCaptureDefaultedKey> & Partial<Pick<RequestBodyOf<'serpIntelligenceCapture'>, SerpIntelligenceCaptureDefaultedKey>>;
|
|
3495
4028
|
interface SerpIntelligenceCaptureOptions {
|
|
@@ -3770,11 +4303,76 @@ declare class WorkflowsNamespace {
|
|
|
3770
4303
|
};
|
|
3771
4304
|
}>;
|
|
3772
4305
|
}
|
|
4306
|
+
declare class GmailNamespace {
|
|
4307
|
+
private readonly r;
|
|
4308
|
+
constructor(r: Requester);
|
|
4309
|
+
searchMessages(params: RequestBodyOf<'gmailSearchMessages'>): Promise<{
|
|
4310
|
+
ok: boolean;
|
|
4311
|
+
error: string | null;
|
|
4312
|
+
} & {
|
|
4313
|
+
[key: string]: unknown;
|
|
4314
|
+
}>;
|
|
4315
|
+
getMessage(messageId: string, params: RequestBodyOf<'gmailGetMessage'>): Promise<{
|
|
4316
|
+
ok: boolean;
|
|
4317
|
+
error: string | null;
|
|
4318
|
+
} & {
|
|
4319
|
+
[key: string]: unknown;
|
|
4320
|
+
}>;
|
|
4321
|
+
getAttachment(params: RequestBodyOf<'gmailGetAttachment'>): Promise<{
|
|
4322
|
+
ok: boolean;
|
|
4323
|
+
error: string | null;
|
|
4324
|
+
} & {
|
|
4325
|
+
[key: string]: unknown;
|
|
4326
|
+
}>;
|
|
4327
|
+
prepareSelection(params: RequestBodyOf<'gmailPrepareSelection'>): Promise<{
|
|
4328
|
+
ok: boolean;
|
|
4329
|
+
error: string | null;
|
|
4330
|
+
} & {
|
|
4331
|
+
[key: string]: unknown;
|
|
4332
|
+
}>;
|
|
4333
|
+
exportSelection(selectionId: string, params: RequestBodyOf<'gmailExportSelection'>): Promise<{
|
|
4334
|
+
ok: boolean;
|
|
4335
|
+
error: string | null;
|
|
4336
|
+
} & {
|
|
4337
|
+
[key: string]: unknown;
|
|
4338
|
+
}>;
|
|
4339
|
+
bulkManage(selectionId: string, params: RequestBodyOf<'gmailBulkManageMessages'>, options: GmailMutationOptions): Promise<{
|
|
4340
|
+
ok: boolean;
|
|
4341
|
+
error: string | null;
|
|
4342
|
+
} & {
|
|
4343
|
+
[key: string]: unknown;
|
|
4344
|
+
}>;
|
|
4345
|
+
bulkDelete(selectionId: string, params: RequestBodyOf<'gmailBulkDeleteMessages'>, options: GmailMutationOptions): Promise<{
|
|
4346
|
+
ok: boolean;
|
|
4347
|
+
error: string | null;
|
|
4348
|
+
} & {
|
|
4349
|
+
[key: string]: unknown;
|
|
4350
|
+
}>;
|
|
4351
|
+
prepareMemoryImport(params: RequestBodyOf<'gmailPrepareMemoryImport'>): Promise<{
|
|
4352
|
+
ok: boolean;
|
|
4353
|
+
error: string | null;
|
|
4354
|
+
} & {
|
|
4355
|
+
[key: string]: unknown;
|
|
4356
|
+
}>;
|
|
4357
|
+
importToMemory(importPlanId: string, options: GmailMutationOptions): Promise<{
|
|
4358
|
+
ok: boolean;
|
|
4359
|
+
error: string | null;
|
|
4360
|
+
} & {
|
|
4361
|
+
[key: string]: unknown;
|
|
4362
|
+
}>;
|
|
4363
|
+
importStatus(ingestId: string): Promise<{
|
|
4364
|
+
ok: boolean;
|
|
4365
|
+
error: string | null;
|
|
4366
|
+
} & {
|
|
4367
|
+
[key: string]: unknown;
|
|
4368
|
+
}>;
|
|
4369
|
+
}
|
|
3773
4370
|
declare class MemoryTools {
|
|
3774
4371
|
readonly access: AccessNamespace;
|
|
3775
4372
|
readonly capture: CaptureNamespace;
|
|
3776
4373
|
readonly channels: ChannelsNamespace;
|
|
3777
4374
|
readonly facts: FactsNamespace;
|
|
4375
|
+
readonly files: FilesNamespace;
|
|
3778
4376
|
readonly graph: GraphNamespace;
|
|
3779
4377
|
readonly library: LibraryNamespace;
|
|
3780
4378
|
readonly memory: MemoryNamespace;
|
|
@@ -3801,6 +4399,7 @@ declare class ScraperClient {
|
|
|
3801
4399
|
readonly directory: DirectoryNamespace;
|
|
3802
4400
|
readonly serpIntelligence: SerpIntelligenceNamespace;
|
|
3803
4401
|
readonly workflows: WorkflowsNamespace;
|
|
4402
|
+
readonly gmail: GmailNamespace;
|
|
3804
4403
|
readonly memoryTools: MemoryTools;
|
|
3805
4404
|
readonly tools: McpToolsClient;
|
|
3806
4405
|
constructor(options: ScraperClientOptions);
|
|
@@ -4118,4 +4717,4 @@ declare class ScraperApiError extends Error {
|
|
|
4118
4717
|
};
|
|
4119
4718
|
}
|
|
4120
4719
|
|
|
4121
|
-
export { type ConcurrencyAccountViewBody, type ConcurrencyLimitBody, type ConcurrencyPackBody, type IdempotentRequestOptions, type InsufficientBalanceBody, type PublicErrorEnvelopeBody, ScraperApiError, ScraperClient, type ScraperClientOptions, type SerpIntelligenceCaptureOptions, type SerpIntelligenceCaptureParams, type SerpIntelligenceCaptureReceipt, type StructuredErrorBody, type components, type operations, type paths };
|
|
4720
|
+
export { type ConcurrencyAccountViewBody, type ConcurrencyLimitBody, type ConcurrencyPackBody, type GmailMutationOptions, type IdempotentRequestOptions, type InsufficientBalanceBody, type PublicErrorEnvelopeBody, ScraperApiError, ScraperClient, type ScraperClientOptions, type SerpIntelligenceCaptureOptions, type SerpIntelligenceCaptureParams, type SerpIntelligenceCaptureReceipt, type StructuredErrorBody, type components, type operations, type paths };
|