@elizaos/plugin-google 2.0.0-beta.1 → 2.0.3-beta.3

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.
Files changed (56) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +124 -17
  3. package/package.json +22 -4
  4. package/registry-entry.json +82 -0
  5. package/dist/auth.d.ts +0 -9
  6. package/dist/auth.d.ts.map +0 -1
  7. package/dist/auth.js +0 -45
  8. package/dist/auth.js.map +0 -1
  9. package/dist/calendar.d.ts +0 -26
  10. package/dist/calendar.d.ts.map +0 -1
  11. package/dist/calendar.js +0 -237
  12. package/dist/calendar.js.map +0 -1
  13. package/dist/client-factory.d.ts +0 -17
  14. package/dist/client-factory.d.ts.map +0 -1
  15. package/dist/client-factory.js +0 -66
  16. package/dist/client-factory.js.map +0 -1
  17. package/dist/connector-account-provider.d.ts +0 -23
  18. package/dist/connector-account-provider.d.ts.map +0 -1
  19. package/dist/connector-account-provider.js +0 -348
  20. package/dist/connector-account-provider.js.map +0 -1
  21. package/dist/connector-credential-refs.d.ts +0 -43
  22. package/dist/connector-credential-refs.d.ts.map +0 -1
  23. package/dist/connector-credential-refs.js +0 -252
  24. package/dist/connector-credential-refs.js.map +0 -1
  25. package/dist/credential-resolver.d.ts +0 -45
  26. package/dist/credential-resolver.d.ts.map +0 -1
  27. package/dist/credential-resolver.js +0 -525
  28. package/dist/credential-resolver.js.map +0 -1
  29. package/dist/drive.d.ts +0 -41
  30. package/dist/drive.d.ts.map +0 -1
  31. package/dist/drive.js +0 -207
  32. package/dist/drive.js.map +0 -1
  33. package/dist/gmail.d.ts +0 -89
  34. package/dist/gmail.d.ts.map +0 -1
  35. package/dist/gmail.js +0 -765
  36. package/dist/gmail.js.map +0 -1
  37. package/dist/index.d.ts +0 -16
  38. package/dist/index.d.ts.map +0 -1
  39. package/dist/index.js +0 -46
  40. package/dist/index.js.map +0 -1
  41. package/dist/meet.d.ts +0 -61
  42. package/dist/meet.d.ts.map +0 -1
  43. package/dist/meet.js +0 -329
  44. package/dist/meet.js.map +0 -1
  45. package/dist/scopes.d.ts +0 -59
  46. package/dist/scopes.d.ts.map +0 -1
  47. package/dist/scopes.js +0 -142
  48. package/dist/scopes.js.map +0 -1
  49. package/dist/service.d.ts +0 -165
  50. package/dist/service.d.ts.map +0 -1
  51. package/dist/service.js +0 -170
  52. package/dist/service.js.map +0 -1
  53. package/dist/types.d.ts +0 -492
  54. package/dist/types.d.ts.map +0 -1
  55. package/dist/types.js +0 -9
  56. package/dist/types.js.map +0 -1
package/dist/scopes.js DELETED
@@ -1,142 +0,0 @@
1
- export const GOOGLE_CAPABILITIES = [
2
- "gmail.read",
3
- "gmail.send",
4
- "gmail.manage",
5
- "calendar.read",
6
- "calendar.write",
7
- "drive.read",
8
- "drive.write",
9
- "meet.create",
10
- "meet.read",
11
- ];
12
- export const GOOGLE_CAPABILITY_GROUPS = ["gmail", "calendar", "drive", "meet"];
13
- export const GOOGLE_OAUTH_SCOPES = {
14
- gmail: {
15
- read: "https://www.googleapis.com/auth/gmail.readonly",
16
- send: "https://www.googleapis.com/auth/gmail.send",
17
- manage: "https://www.googleapis.com/auth/gmail.modify",
18
- settings: "https://www.googleapis.com/auth/gmail.settings.basic",
19
- },
20
- calendar: {
21
- read: "https://www.googleapis.com/auth/calendar.readonly",
22
- write: "https://www.googleapis.com/auth/calendar.events",
23
- },
24
- drive: {
25
- read: "https://www.googleapis.com/auth/drive.readonly",
26
- write: "https://www.googleapis.com/auth/drive.file",
27
- },
28
- meet: {
29
- create: "https://www.googleapis.com/auth/meetings.space.created",
30
- read: "https://www.googleapis.com/auth/meetings.space.readonly",
31
- },
32
- profile: {
33
- email: "https://www.googleapis.com/auth/userinfo.email",
34
- profile: "https://www.googleapis.com/auth/userinfo.profile",
35
- openid: "openid",
36
- },
37
- };
38
- export const GOOGLE_CAPABILITY_SCOPES = {
39
- "gmail.read": [GOOGLE_OAUTH_SCOPES.gmail.read],
40
- "gmail.send": [GOOGLE_OAUTH_SCOPES.gmail.send],
41
- "gmail.manage": [GOOGLE_OAUTH_SCOPES.gmail.manage, GOOGLE_OAUTH_SCOPES.gmail.settings],
42
- "calendar.read": [GOOGLE_OAUTH_SCOPES.calendar.read],
43
- "calendar.write": [GOOGLE_OAUTH_SCOPES.calendar.write],
44
- "drive.read": [GOOGLE_OAUTH_SCOPES.drive.read],
45
- "drive.write": [GOOGLE_OAUTH_SCOPES.drive.write],
46
- "meet.create": [GOOGLE_OAUTH_SCOPES.meet.create],
47
- "meet.read": [GOOGLE_OAUTH_SCOPES.meet.read],
48
- };
49
- const GOOGLE_CAPABILITY_DETAILS = {
50
- "gmail.read": {
51
- label: "Read Gmail",
52
- description: "Search and read Gmail message metadata and message bodies.",
53
- },
54
- "gmail.send": {
55
- label: "Send Gmail",
56
- description: "Send email through Gmail for the selected account.",
57
- },
58
- "gmail.manage": {
59
- label: "Manage Gmail",
60
- description: "Modify Gmail labels, message state, and basic mail settings.",
61
- },
62
- "calendar.read": {
63
- label: "Read Calendar",
64
- description: "List Google Calendar events for the selected account.",
65
- },
66
- "calendar.write": {
67
- label: "Write Calendar",
68
- description: "Create and update Google Calendar events.",
69
- },
70
- "drive.read": {
71
- label: "Read Drive",
72
- description: "Search and read Google Drive file metadata.",
73
- },
74
- "drive.write": {
75
- label: "Write Drive",
76
- description: "Create or update files opened or created by this integration.",
77
- },
78
- "meet.create": {
79
- label: "Create Meet Spaces",
80
- description: "Create Google Meet spaces and end active conferences created by the user.",
81
- },
82
- "meet.read": {
83
- label: "Read Meet Artifacts",
84
- description: "Read Google Meet spaces, conference records, participants, transcripts, and recordings.",
85
- },
86
- };
87
- export const GOOGLE_CAPABILITY_METADATA = GOOGLE_CAPABILITIES.reduce((metadata, capability) => {
88
- metadata[capability] = {
89
- id: capability,
90
- group: capability.split(".")[0],
91
- ...GOOGLE_CAPABILITY_DETAILS[capability],
92
- scopes: GOOGLE_CAPABILITY_SCOPES[capability],
93
- };
94
- return metadata;
95
- }, {});
96
- export const GOOGLE_CAPABILITY_DESCRIPTORS = GOOGLE_CAPABILITY_METADATA;
97
- export const GOOGLE_IDENTITY_SCOPES = [
98
- GOOGLE_OAUTH_SCOPES.profile.openid,
99
- GOOGLE_OAUTH_SCOPES.profile.email,
100
- GOOGLE_OAUTH_SCOPES.profile.profile,
101
- ];
102
- const GOOGLE_CAPABILITY_SET = new Set(GOOGLE_CAPABILITIES);
103
- export function isGoogleCapability(value) {
104
- return typeof value === "string" && GOOGLE_CAPABILITY_SET.has(value);
105
- }
106
- export function normalizeGoogleCapabilities(capabilities) {
107
- const normalized = [];
108
- const seen = new Set();
109
- for (const candidate of capabilities ?? []) {
110
- if (!isGoogleCapability(candidate) || seen.has(candidate)) {
111
- continue;
112
- }
113
- seen.add(candidate);
114
- normalized.push(candidate);
115
- }
116
- return normalized;
117
- }
118
- export function scopesForGoogleCapabilities(capabilities, options = {}) {
119
- const selected = new Set();
120
- if (options.includeIdentityScopes !== false) {
121
- for (const scope of GOOGLE_IDENTITY_SCOPES) {
122
- selected.add(scope);
123
- }
124
- }
125
- for (const capability of normalizeGoogleCapabilities(capabilities)) {
126
- for (const scope of GOOGLE_CAPABILITY_METADATA[capability].scopes) {
127
- selected.add(scope);
128
- }
129
- }
130
- return Array.from(selected);
131
- }
132
- export function capabilityGroups(capabilities) {
133
- const groups = new Set();
134
- for (const capability of normalizeGoogleCapabilities(capabilities)) {
135
- groups.add(capability.split(".")[0]);
136
- }
137
- return Array.from(groups);
138
- }
139
- export const GOOGLE_DEFAULT_CONNECT_SCOPES = scopesForGoogleCapabilities([], {
140
- includeIdentityScopes: true,
141
- });
142
- //# sourceMappingURL=scopes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scopes.js","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,YAAY;IACZ,YAAY;IACZ,cAAc;IACd,eAAe;IACf,gBAAgB;IAChB,YAAY;IACZ,a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AAU,CAAC,CAAC,MAAM,EAAE,CAAC;YAClE,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC9B,YAAyC;IAEzC,MAAM,MAAM,GAAG,IAAI,GAAG,EAAyB,CAAC;IAChD,KAAK,MAAM,UAAU,IAAI,2BAA2B,CAAC,YAAY,CAAC,EAAE,CAAC;QACnE,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAA0B,CAAC,CAAC;IAChE,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC5B,CAAC;AAED,MAAM,CAAC,MAAM,6BAA6B,GAAG,2BAA2B,CAAC,EAAE,EAAE;IAC3E,qBAAqB,EAAE,IAAI;CAC5B,CAAC,CAAC"}
package/dist/service.d.ts DELETED
@@ -1,165 +0,0 @@
1
- import type { IAgentRuntime } from "@elizaos/core";
2
- import { Service } from "@elizaos/core";
3
- import type { GoogleCapability } from "./scopes.js";
4
- import { type GoogleAccountRef, type GoogleCalendarEvent, type GoogleCalendarEventInput, type GoogleCalendarEventPatchInput, type GoogleCalendarListEntry, type GoogleCredentialResolver, type GoogleDocContent, type GoogleDriveCreateFileInput, type GoogleDriveFile, type GoogleDriveFileList, type GoogleGmailBulkOperation, type GoogleGmailFilterCreateResult, type GoogleGmailMessageDetail, type GoogleGmailMessageSummary, type GoogleGmailSendResult, type GoogleGmailSubscriptionMessageHeaders, type GoogleGmailUnrespondedThread, type GoogleMeetConferenceRecord, type GoogleMeetConferenceRecordInput, type GoogleMeetCreateMeetingInput, type GoogleMeetGenerateReportInput, type GoogleMeetGetMeetingInput, type GoogleMeetMeeting, type GoogleMeetParticipant, type GoogleMeetRecording, type GoogleMeetRecordingInput, type GoogleMeetReport, type GoogleMeetSpace, type GoogleMeetTranscript, type GoogleMeetTranscriptArtifact, type GoogleMeetTranscriptInput, type GoogleMessageSummary, type GoogleOAuthProviderConfig, type GoogleOAuthProviderMetadata, type GoogleParsedMailto, type GoogleSendEmailInput, type GoogleSheetContent, type GoogleSheetUpdateResult, type IGoogleWorkspaceService } from "./types.js";
5
- export interface GoogleWorkspaceServiceOptions {
6
- credentialResolver?: GoogleCredentialResolver;
7
- }
8
- export declare class GoogleWorkspaceService extends Service implements IGoogleWorkspaceService {
9
- static serviceType: string;
10
- capabilityDescription: string;
11
- private readonly clientFactory;
12
- private readonly gmailClient;
13
- private readonly calendarClient;
14
- private readonly driveClient;
15
- private readonly meetClient;
16
- constructor(runtime?: IAgentRuntime, options?: GoogleWorkspaceServiceOptions);
17
- static start(runtime: IAgentRuntime): Promise<GoogleWorkspaceService>;
18
- setCredentialResolver(credentialResolver: GoogleCredentialResolver): void;
19
- stop(): Promise<void>;
20
- getOAuthProviderMetadata(): GoogleOAuthProviderMetadata;
21
- getOAuthProviderConfig(capabilities: readonly GoogleCapability[]): GoogleOAuthProviderConfig;
22
- searchMessages(params: GoogleAccountRef & {
23
- query: string;
24
- limit?: number;
25
- }): Promise<GoogleMessageSummary[]>;
26
- getMessage(params: GoogleAccountRef & {
27
- messageId: string;
28
- includeBody?: boolean;
29
- }): Promise<GoogleMessageSummary>;
30
- sendEmail(params: GoogleSendEmailInput): Promise<{
31
- id: string;
32
- threadId?: string;
33
- }>;
34
- listGmailTriageMessages(params: GoogleAccountRef & {
35
- selfEmail?: string | null;
36
- maxResults?: number;
37
- }): Promise<GoogleGmailMessageSummary[]>;
38
- searchGmailMessages(params: GoogleAccountRef & {
39
- query: string;
40
- selfEmail?: string | null;
41
- maxResults?: number;
42
- includeSpamTrash?: boolean;
43
- }): Promise<GoogleGmailMessageSummary[]>;
44
- getGmailMessage(params: GoogleAccountRef & {
45
- messageId: string;
46
- selfEmail?: string | null;
47
- }): Promise<GoogleGmailMessageSummary | null>;
48
- getGmailMessageDetail(params: GoogleAccountRef & {
49
- messageId: string;
50
- selfEmail?: string | null;
51
- }): Promise<GoogleGmailMessageDetail | null>;
52
- listGmailUnrespondedThreads(params: GoogleAccountRef & {
53
- selfEmail?: string | null;
54
- olderThanDays?: number;
55
- maxResults?: number;
56
- now?: Date;
57
- }): Promise<GoogleGmailUnrespondedThread[]>;
58
- modifyGmailMessages(params: GoogleAccountRef & {
59
- messageIds: readonly string[];
60
- operation: GoogleGmailBulkOperation;
61
- labelIds?: readonly string[];
62
- }): Promise<void>;
63
- sendGmailReply(params: GoogleAccountRef & {
64
- to: string[];
65
- cc?: string[];
66
- subject: string;
67
- bodyText: string;
68
- inReplyTo?: string | null;
69
- references?: string | null;
70
- }): Promise<GoogleGmailSendResult>;
71
- sendGmailMessage(params: GoogleAccountRef & {
72
- to: string[];
73
- cc?: string[];
74
- bcc?: string[];
75
- subject: string;
76
- bodyText: string;
77
- }): Promise<GoogleGmailSendResult>;
78
- getGmailSubscriptionHeaders(params: GoogleAccountRef & {
79
- query?: string;
80
- maxMessages?: number;
81
- }): Promise<GoogleGmailSubscriptionMessageHeaders[]>;
82
- createGmailFilterForSender(params: GoogleAccountRef & {
83
- fromAddress: string;
84
- trash?: boolean;
85
- }): Promise<GoogleGmailFilterCreateResult>;
86
- trashGmailThread(params: GoogleAccountRef & {
87
- threadId: string;
88
- }): Promise<void>;
89
- modifyGmailMessageLabels(params: GoogleAccountRef & {
90
- messageId: string;
91
- addLabelIds?: string[];
92
- removeLabelIds?: string[];
93
- }): Promise<void>;
94
- sendMailtoUnsubscribeEmail(params: GoogleAccountRef & {
95
- mailto: GoogleParsedMailto;
96
- }): Promise<void>;
97
- listCalendars(params: GoogleAccountRef): Promise<GoogleCalendarListEntry[]>;
98
- listEvents(params: GoogleAccountRef & {
99
- calendarId?: string;
100
- timeMin?: string;
101
- timeMax?: string;
102
- limit?: number;
103
- }): Promise<GoogleCalendarEvent[]>;
104
- getEvent(params: GoogleAccountRef & {
105
- calendarId?: string;
106
- eventId: string;
107
- timeZone?: string;
108
- }): Promise<GoogleCalendarEvent>;
109
- createEvent(params: GoogleCalendarEventInput): Promise<GoogleCalendarEvent>;
110
- updateEvent(params: GoogleCalendarEventPatchInput): Promise<GoogleCalendarEvent>;
111
- deleteEvent(params: GoogleAccountRef & {
112
- calendarId?: string;
113
- eventId: string;
114
- }): Promise<void>;
115
- searchFiles(params: GoogleAccountRef & {
116
- query: string;
117
- limit?: number;
118
- }): Promise<GoogleDriveFile[]>;
119
- getFile(params: GoogleAccountRef & {
120
- fileId: string;
121
- }): Promise<GoogleDriveFile>;
122
- listDriveFiles(params: GoogleAccountRef & {
123
- folderId?: string;
124
- maxResults?: number;
125
- pageToken?: string;
126
- }): Promise<GoogleDriveFileList>;
127
- searchDriveFiles(params: GoogleAccountRef & {
128
- query: string;
129
- maxResults?: number;
130
- pageToken?: string;
131
- }): Promise<GoogleDriveFileList>;
132
- getDocContent(params: GoogleAccountRef & {
133
- documentId: string;
134
- }): Promise<GoogleDocContent>;
135
- getSheetContent(params: GoogleAccountRef & {
136
- spreadsheetId: string;
137
- range?: string;
138
- }): Promise<GoogleSheetContent>;
139
- createDriveFile(params: GoogleDriveCreateFileInput): Promise<GoogleDriveFile>;
140
- appendToDoc(params: GoogleAccountRef & {
141
- documentId: string;
142
- text: string;
143
- }): Promise<void>;
144
- updateSheetCells(params: GoogleAccountRef & {
145
- spreadsheetId: string;
146
- range: string;
147
- values: ReadonlyArray<ReadonlyArray<string | number>>;
148
- }): Promise<GoogleSheetUpdateResult>;
149
- createMeeting(params: GoogleMeetCreateMeetingInput): Promise<GoogleMeetMeeting>;
150
- getMeeting(params: GoogleMeetGetMeetingInput): Promise<GoogleMeetMeeting>;
151
- getMeetingSpace(params: GoogleMeetGetMeetingInput): Promise<GoogleMeetSpace>;
152
- getConferenceRecord(params: GoogleMeetConferenceRecordInput): Promise<GoogleMeetConferenceRecord>;
153
- listMeetingParticipants(params: GoogleMeetConferenceRecordInput & {
154
- limit?: number;
155
- }): Promise<GoogleMeetParticipant[]>;
156
- listMeetingTranscripts(params: GoogleMeetConferenceRecordInput): Promise<GoogleMeetTranscriptArtifact[]>;
157
- getMeetingTranscript(params: GoogleMeetTranscriptInput): Promise<GoogleMeetTranscript[]>;
158
- listMeetingRecordings(params: GoogleMeetConferenceRecordInput): Promise<GoogleMeetRecording[]>;
159
- getMeetingRecordingUrl(params: GoogleMeetRecordingInput): Promise<string | null>;
160
- endMeeting(params: GoogleAccountRef & {
161
- spaceName: string;
162
- }): Promise<void>;
163
- generateReport(params: GoogleMeetGenerateReportInput): Promise<GoogleMeetReport>;
164
- }
165
- //# sourceMappingURL=service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAU,OAAO,EAAE,MAAM,eAAe,CAAC;AAQhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,qCAAqC,EAC1C,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,gBAA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,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAI/E,UAAU,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIzE,eAAe,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,eAAe,CAAC;IAI5E,mBAAmB,CACjB,MAAM,EAAE,+BAA+B,GACtC,OAAO,CAAC,0BAA0B,CAAC;IAItC,uBAAuB,CACrB,MAAM,EAAE,+BAA+B,GAAG;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAC3D,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAInC,sBAAsB,CACpB,MAAM,EAAE,+BAA+B,GACtC,OAAO,CAAC,4BAA4B,EAAE,CAAC;IAI1C,oBAAoB,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAIxF,qBAAqB,CAAC,MAAM,EAAE,+BAA+B,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAI9F,sBAAsB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIhF,UAAU,CAAC,MAAM,EAAE,gBAAgB,GAAG;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3E,cAAc,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAGjF"}
package/dist/service.js DELETED
@@ -1,170 +0,0 @@
1
- import { logger, Service } from "@elizaos/core";
2
- import { getGoogleOAuthProviderConfig, getGoogleOAuthProviderMetadata } from "./auth.js";
3
- import { GoogleCalendarClient } from "./calendar.js";
4
- import { GoogleApiClientFactory } from "./client-factory.js";
5
- import { DefaultGoogleCredentialResolver } from "./credential-resolver.js";
6
- import { GoogleDriveClient } from "./drive.js";
7
- import { GoogleGmailClient } from "./gmail.js";
8
- import { GoogleMeetClient } from "./meet.js";
9
- import { GOOGLE_SERVICE_NAME, } from "./types.js";
10
- export class GoogleWorkspaceService extends Service {
11
- static serviceType = GOOGLE_SERVICE_NAME;
12
- capabilityDescription = "Google Workspace service for Gmail, Calendar, Drive, and Meet using account-scoped OAuth";
13
- clientFactory;
14
- gmailClient;
15
- calendarClient;
16
- driveClient;
17
- meetClient;
18
- constructor(runtime, options = {}) {
19
- super(runtime);
20
- this.clientFactory = new GoogleApiClientFactory(options.credentialResolver ?? new DefaultGoogleCredentialResolver({ runtime }));
21
- this.gmailClient = new GoogleGmailClient(this.clientFactory);
22
- this.calendarClient = new GoogleCalendarClient(this.clientFactory);
23
- this.driveClient = new GoogleDriveClient(this.clientFactory);
24
- this.meetClient = new GoogleMeetClient(this.clientFactory);
25
- }
26
- static async start(runtime) {
27
- const service = new GoogleWorkspaceService(runtime);
28
- logger.info("Starting Google Workspace plugin");
29
- return service;
30
- }
31
- setCredentialResolver(credentialResolver) {
32
- this.clientFactory.setCredentialResolver(credentialResolver);
33
- }
34
- async stop() {
35
- logger.info("Stopping Google Workspace plugin");
36
- }
37
- getOAuthProviderMetadata() {
38
- return getGoogleOAuthProviderMetadata();
39
- }
40
- getOAuthProviderConfig(capabilities) {
41
- return getGoogleOAuthProviderConfig(capabilities);
42
- }
43
- searchMessages(params) {
44
- return this.gmailClient.searchMessages(params);
45
- }
46
- getMessage(params) {
47
- return this.gmailClient.getMessage(params);
48
- }
49
- sendEmail(params) {
50
- return this.gmailClient.sendEmail(params);
51
- }
52
- listGmailTriageMessages(params) {
53
- return this.gmailClient.listGmailTriageMessages(params);
54
- }
55
- searchGmailMessages(params) {
56
- return this.gmailClient.searchGmailMessages(params);
57
- }
58
- getGmailMessage(params) {
59
- return this.gmailClient.getGmailMessage(params);
60
- }
61
- getGmailMessageDetail(params) {
62
- return this.gmailClient.getGmailMessageDetail(params);
63
- }
64
- listGmailUnrespondedThreads(params) {
65
- return this.gmailClient.listGmailUnrespondedThreads(params);
66
- }
67
- modifyGmailMessages(params) {
68
- return this.gmailClient.modifyGmailMessages(params);
69
- }
70
- sendGmailReply(params) {
71
- return this.gmailClient.sendGmailReply(params);
72
- }
73
- sendGmailMessage(params) {
74
- return this.gmailClient.sendGmailMessage(params);
75
- }
76
- getGmailSubscriptionHeaders(params) {
77
- return this.gmailClient.getGmailSubscriptionHeaders(params);
78
- }
79
- createGmailFilterForSender(params) {
80
- return this.gmailClient.createGmailFilterForSender(params);
81
- }
82
- trashGmailThread(params) {
83
- return this.gmailClient.trashGmailThread(params);
84
- }
85
- modifyGmailMessageLabels(params) {
86
- return this.gmailClient.modifyGmailMessageLabels(params);
87
- }
88
- sendMailtoUnsubscribeEmail(params) {
89
- return this.gmailClient.sendMailtoUnsubscribeEmail(params);
90
- }
91
- listCalendars(params) {
92
- return this.calendarClient.listCalendars(params);
93
- }
94
- listEvents(params) {
95
- return this.calendarClient.listEvents(params);
96
- }
97
- getEvent(params) {
98
- return this.calendarClient.getEvent(params);
99
- }
100
- createEvent(params) {
101
- return this.calendarClient.createEvent(params);
102
- }
103
- updateEvent(params) {
104
- return this.calendarClient.updateEvent(params);
105
- }
106
- deleteEvent(params) {
107
- return this.calendarClient.deleteEvent(params);
108
- }
109
- searchFiles(params) {
110
- return this.driveClient.searchFiles(params);
111
- }
112
- getFile(params) {
113
- return this.driveClient.getFile(params);
114
- }
115
- listDriveFiles(params) {
116
- return this.driveClient.listDriveFiles(params);
117
- }
118
- searchDriveFiles(params) {
119
- return this.driveClient.searchDriveFiles(params);
120
- }
121
- getDocContent(params) {
122
- return this.driveClient.getDocContent(params);
123
- }
124
- getSheetContent(params) {
125
- return this.driveClient.getSheetContent(params);
126
- }
127
- createDriveFile(params) {
128
- return this.driveClient.createDriveFile(params);
129
- }
130
- appendToDoc(params) {
131
- return this.driveClient.appendToDoc(params);
132
- }
133
- updateSheetCells(params) {
134
- return this.driveClient.updateSheetCells(params);
135
- }
136
- createMeeting(params) {
137
- return this.meetClient.createMeeting(params);
138
- }
139
- getMeeting(params) {
140
- return this.meetClient.getMeeting(params);
141
- }
142
- getMeetingSpace(params) {
143
- return this.meetClient.getMeetingSpace(params);
144
- }
145
- getConferenceRecord(params) {
146
- return this.meetClient.getConferenceRecord(params);
147
- }
148
- listMeetingParticipants(params) {
149
- return this.meetClient.listMeetingParticipants(params);
150
- }
151
- listMeetingTranscripts(params) {
152
- return this.meetClient.listMeetingTranscripts(params);
153
- }
154
- getMeetingTranscript(params) {
155
- return this.meetClient.getMeetingTranscript(params);
156
- }
157
- listMeetingRecordings(params) {
158
- return this.meetClient.listMeetingRecordings(params);
159
- }
160
- getMeetingRecordingUrl(params) {
161
- return this.meetClient.getMeetingRecordingUrl(params);
162
- }
163
- endMeeting(params) {
164
- return this.meetClient.endMeeting(params);
165
- }
166
- generateReport(params) {
167
- return this.meetClient.generateReport(params);
168
- }
169
- }
170
- //# sourceMappingURL=service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"service.js","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,4BAA4B,EAAE,8BAA8B,EAAE,MAAM,WAAW,CAAC;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,OAAO,EACL,mBAAmB,GAwCpB,MAAM,YAAY,CAAC;AAMpB,MAAM,OAAO,sBAAuB,SAAQ,OAAO;IACjD,MAAM,CAAC,WAAW,GAAG,mBAAmB,CAAC;IAEzC,qBAAqB,GACnB,0FAA0F,CAAC;IAE5E,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