@persistmemory/sdk 0.1.2 → 0.2.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/dist/client.d.ts +3 -0
- package/dist/http.d.ts +20 -0
- package/dist/index.cjs +153 -3
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +153 -3
- package/dist/index.js.map +3 -3
- package/dist/resources/google.d.ts +84 -0
- package/dist/types.d.ts +56 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -533,3 +533,59 @@ export interface HealthResponse {
|
|
|
533
533
|
readonly status: string;
|
|
534
534
|
readonly [key: string]: unknown;
|
|
535
535
|
}
|
|
536
|
+
export interface DriveFile {
|
|
537
|
+
readonly id: string;
|
|
538
|
+
readonly name: string;
|
|
539
|
+
readonly mimeType: string;
|
|
540
|
+
readonly size?: number;
|
|
541
|
+
readonly modifiedTime?: string;
|
|
542
|
+
readonly link?: string;
|
|
543
|
+
readonly owner?: string;
|
|
544
|
+
/** True for Docs, Sheets and Slides, which have no bytes of their own. */
|
|
545
|
+
readonly native: boolean;
|
|
546
|
+
}
|
|
547
|
+
export interface SearchDriveParams {
|
|
548
|
+
readonly query?: string;
|
|
549
|
+
readonly limit?: number;
|
|
550
|
+
}
|
|
551
|
+
export interface SaveToDriveParams {
|
|
552
|
+
readonly name: string;
|
|
553
|
+
readonly bytes: Uint8Array;
|
|
554
|
+
readonly contentType?: string;
|
|
555
|
+
readonly folderId?: string;
|
|
556
|
+
}
|
|
557
|
+
export interface MailSummary {
|
|
558
|
+
readonly id: string;
|
|
559
|
+
readonly threadId?: string;
|
|
560
|
+
readonly from?: string;
|
|
561
|
+
readonly to?: string;
|
|
562
|
+
readonly subject?: string;
|
|
563
|
+
readonly date?: string;
|
|
564
|
+
/** Gmail's own one-line preview. Never the whole body. */
|
|
565
|
+
readonly snippet?: string;
|
|
566
|
+
readonly unread: boolean;
|
|
567
|
+
readonly hasAttachments: boolean;
|
|
568
|
+
}
|
|
569
|
+
export interface MailAttachment {
|
|
570
|
+
readonly id: string;
|
|
571
|
+
readonly filename: string;
|
|
572
|
+
readonly mimeType: string;
|
|
573
|
+
readonly size?: number;
|
|
574
|
+
}
|
|
575
|
+
export interface MailMessage extends MailSummary {
|
|
576
|
+
readonly body: string;
|
|
577
|
+
/** Named, not fetched. Use `downloadAttachment` for the bytes. */
|
|
578
|
+
readonly attachments: readonly MailAttachment[];
|
|
579
|
+
}
|
|
580
|
+
export interface SearchMailParams {
|
|
581
|
+
/** Gmail search syntax: `from:priya`, `has:attachment`, `newer_than:7d`. */
|
|
582
|
+
readonly query?: string;
|
|
583
|
+
readonly limit?: number;
|
|
584
|
+
}
|
|
585
|
+
export interface Person {
|
|
586
|
+
readonly id: string;
|
|
587
|
+
readonly name?: string;
|
|
588
|
+
readonly emails: readonly string[];
|
|
589
|
+
readonly phones: readonly string[];
|
|
590
|
+
readonly organisation?: string;
|
|
591
|
+
}
|