@marktoflow/integrations 2.0.1 → 2.0.2
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/adapters/claude-agent-hooks.d.ts +176 -0
- package/dist/adapters/claude-agent-types.d.ts +24 -24
- package/dist/adapters/claude-agent-workflow.d.ts +10 -10
- package/dist/adapters/codex-types.d.ts +20 -20
- package/dist/adapters/codex-workflow.d.ts +12 -12
- package/dist/adapters/github-copilot-types.d.ts +44 -44
- package/dist/adapters/github-copilot-workflow.d.ts +28 -28
- package/dist/adapters/ollama-types.d.ts +126 -126
- package/dist/services/github.d.ts +3 -0
- package/dist/services/gmail-trigger.d.ts +92 -0
- package/dist/services/gmail.d.ts +116 -0
- package/dist/services/google-calendar.d.ts +220 -0
- package/dist/services/google-docs.d.ts +197 -0
- package/dist/services/google-drive.d.ts +149 -0
- package/dist/services/google-sheets.d.ts +165 -0
- package/dist/services/http.d.ts +120 -0
- package/dist/services/jira.d.ts +3 -0
- package/dist/services/linear.d.ts +163 -0
- package/dist/services/mysql.d.ts +91 -0
- package/dist/services/outlook-trigger.d.ts +121 -0
- package/dist/services/outlook.d.ts +237 -0
- package/dist/services/postgres.d.ts +83 -0
- package/dist/services/slack-socket.d.ts +18 -0
- package/dist/services/slack.d.ts +3 -0
- package/dist/services/whatsapp.d.ts +311 -0
- package/package.json +2 -2
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Calendar Integration
|
|
3
|
+
*
|
|
4
|
+
* Calendar and event management.
|
|
5
|
+
* API Docs: https://developers.google.com/calendar/api
|
|
6
|
+
*/
|
|
7
|
+
import { calendar_v3 } from 'googleapis';
|
|
8
|
+
import { SDKInitializer } from '@marktoflow/core';
|
|
9
|
+
export interface CalendarEvent {
|
|
10
|
+
id: string;
|
|
11
|
+
summary: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
location?: string;
|
|
14
|
+
start: {
|
|
15
|
+
dateTime?: string;
|
|
16
|
+
date?: string;
|
|
17
|
+
timeZone?: string;
|
|
18
|
+
};
|
|
19
|
+
end: {
|
|
20
|
+
dateTime?: string;
|
|
21
|
+
date?: string;
|
|
22
|
+
timeZone?: string;
|
|
23
|
+
};
|
|
24
|
+
attendees?: {
|
|
25
|
+
email: string;
|
|
26
|
+
displayName?: string;
|
|
27
|
+
responseStatus?: string;
|
|
28
|
+
}[];
|
|
29
|
+
creator?: {
|
|
30
|
+
email: string;
|
|
31
|
+
displayName?: string;
|
|
32
|
+
};
|
|
33
|
+
organizer?: {
|
|
34
|
+
email: string;
|
|
35
|
+
displayName?: string;
|
|
36
|
+
};
|
|
37
|
+
status?: string;
|
|
38
|
+
htmlLink?: string;
|
|
39
|
+
recurringEventId?: string;
|
|
40
|
+
recurrence?: string[];
|
|
41
|
+
reminders?: {
|
|
42
|
+
useDefault: boolean;
|
|
43
|
+
overrides?: {
|
|
44
|
+
method: string;
|
|
45
|
+
minutes: number;
|
|
46
|
+
}[];
|
|
47
|
+
};
|
|
48
|
+
conferenceData?: {
|
|
49
|
+
conferenceId?: string;
|
|
50
|
+
conferenceSolution?: {
|
|
51
|
+
name: string;
|
|
52
|
+
iconUri?: string;
|
|
53
|
+
};
|
|
54
|
+
entryPoints?: {
|
|
55
|
+
entryPointType: string;
|
|
56
|
+
uri: string;
|
|
57
|
+
label?: string;
|
|
58
|
+
}[];
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export interface CalendarInfo {
|
|
62
|
+
id: string;
|
|
63
|
+
summary: string;
|
|
64
|
+
description?: string;
|
|
65
|
+
location?: string;
|
|
66
|
+
timeZone?: string;
|
|
67
|
+
accessRole?: string;
|
|
68
|
+
primary?: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface CreateEventOptions {
|
|
71
|
+
summary: string;
|
|
72
|
+
description?: string;
|
|
73
|
+
location?: string;
|
|
74
|
+
start: {
|
|
75
|
+
dateTime?: string;
|
|
76
|
+
date?: string;
|
|
77
|
+
timeZone?: string;
|
|
78
|
+
};
|
|
79
|
+
end: {
|
|
80
|
+
dateTime?: string;
|
|
81
|
+
date?: string;
|
|
82
|
+
timeZone?: string;
|
|
83
|
+
};
|
|
84
|
+
attendees?: string[] | {
|
|
85
|
+
email: string;
|
|
86
|
+
displayName?: string;
|
|
87
|
+
}[];
|
|
88
|
+
recurrence?: string[];
|
|
89
|
+
reminders?: {
|
|
90
|
+
useDefault?: boolean;
|
|
91
|
+
overrides?: {
|
|
92
|
+
method: 'email' | 'popup';
|
|
93
|
+
minutes: number;
|
|
94
|
+
}[];
|
|
95
|
+
};
|
|
96
|
+
conferenceData?: {
|
|
97
|
+
createRequest?: {
|
|
98
|
+
requestId: string;
|
|
99
|
+
conferenceSolutionKey?: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
sendUpdates?: 'all' | 'externalOnly' | 'none';
|
|
105
|
+
}
|
|
106
|
+
export interface UpdateEventOptions extends Partial<CreateEventOptions> {
|
|
107
|
+
sendUpdates?: 'all' | 'externalOnly' | 'none';
|
|
108
|
+
}
|
|
109
|
+
export interface ListEventsOptions {
|
|
110
|
+
timeMin?: string;
|
|
111
|
+
timeMax?: string;
|
|
112
|
+
maxResults?: number;
|
|
113
|
+
orderBy?: 'startTime' | 'updated';
|
|
114
|
+
q?: string;
|
|
115
|
+
singleEvents?: boolean;
|
|
116
|
+
showDeleted?: boolean;
|
|
117
|
+
pageToken?: string;
|
|
118
|
+
}
|
|
119
|
+
export interface FreeBusyQuery {
|
|
120
|
+
timeMin: string;
|
|
121
|
+
timeMax: string;
|
|
122
|
+
items: {
|
|
123
|
+
id: string;
|
|
124
|
+
}[];
|
|
125
|
+
timeZone?: string;
|
|
126
|
+
}
|
|
127
|
+
export interface FreeBusyResponse {
|
|
128
|
+
calendars: {
|
|
129
|
+
[calendarId: string]: {
|
|
130
|
+
busy: {
|
|
131
|
+
start: string;
|
|
132
|
+
end: string;
|
|
133
|
+
}[];
|
|
134
|
+
errors?: unknown[];
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Google Calendar actions for workflow integration
|
|
140
|
+
*/
|
|
141
|
+
export declare class GoogleCalendarActions {
|
|
142
|
+
private calendar;
|
|
143
|
+
constructor(calendar: calendar_v3.Calendar);
|
|
144
|
+
/**
|
|
145
|
+
* List user's calendars
|
|
146
|
+
*/
|
|
147
|
+
listCalendars(): Promise<CalendarInfo[]>;
|
|
148
|
+
/**
|
|
149
|
+
* Get a specific calendar
|
|
150
|
+
*/
|
|
151
|
+
getCalendar(calendarId?: string): Promise<CalendarInfo>;
|
|
152
|
+
/**
|
|
153
|
+
* List events from a calendar
|
|
154
|
+
*/
|
|
155
|
+
listEvents(calendarId?: string, options?: ListEventsOptions): Promise<{
|
|
156
|
+
events: CalendarEvent[];
|
|
157
|
+
nextPageToken?: string;
|
|
158
|
+
}>;
|
|
159
|
+
/**
|
|
160
|
+
* Get a specific event
|
|
161
|
+
*/
|
|
162
|
+
getEvent(calendarId: string, eventId: string): Promise<CalendarEvent>;
|
|
163
|
+
/**
|
|
164
|
+
* Create a new event
|
|
165
|
+
*/
|
|
166
|
+
createEvent(calendarId: string | undefined, options: CreateEventOptions): Promise<CalendarEvent>;
|
|
167
|
+
/**
|
|
168
|
+
* Update an existing event
|
|
169
|
+
*/
|
|
170
|
+
updateEvent(calendarId: string, eventId: string, options: UpdateEventOptions): Promise<CalendarEvent>;
|
|
171
|
+
/**
|
|
172
|
+
* Delete an event
|
|
173
|
+
*/
|
|
174
|
+
deleteEvent(calendarId: string, eventId: string, sendUpdates?: 'all' | 'externalOnly' | 'none'): Promise<void>;
|
|
175
|
+
/**
|
|
176
|
+
* Quick add event using natural language
|
|
177
|
+
*/
|
|
178
|
+
quickAddEvent(calendarId: string | undefined, text: string): Promise<CalendarEvent>;
|
|
179
|
+
/**
|
|
180
|
+
* Move event to another calendar
|
|
181
|
+
*/
|
|
182
|
+
moveEvent(sourceCalendarId: string, eventId: string, destinationCalendarId: string): Promise<CalendarEvent>;
|
|
183
|
+
/**
|
|
184
|
+
* Query free/busy information
|
|
185
|
+
*/
|
|
186
|
+
queryFreeBusy(query: FreeBusyQuery): Promise<FreeBusyResponse>;
|
|
187
|
+
/**
|
|
188
|
+
* Create a calendar
|
|
189
|
+
*/
|
|
190
|
+
createCalendar(summary: string, options?: {
|
|
191
|
+
description?: string;
|
|
192
|
+
location?: string;
|
|
193
|
+
timeZone?: string;
|
|
194
|
+
}): Promise<CalendarInfo>;
|
|
195
|
+
/**
|
|
196
|
+
* Delete a calendar
|
|
197
|
+
*/
|
|
198
|
+
deleteCalendar(calendarId: string): Promise<void>;
|
|
199
|
+
/**
|
|
200
|
+
* Watch for changes to a calendar
|
|
201
|
+
*/
|
|
202
|
+
watchEvents(calendarId: string, webhookUrl: string, options?: {
|
|
203
|
+
token?: string;
|
|
204
|
+
expiration?: number;
|
|
205
|
+
}): Promise<{
|
|
206
|
+
id: string;
|
|
207
|
+
resourceId: string;
|
|
208
|
+
expiration: string;
|
|
209
|
+
}>;
|
|
210
|
+
/**
|
|
211
|
+
* Stop watching for changes
|
|
212
|
+
*/
|
|
213
|
+
stopWatching(channelId: string, resourceId: string): Promise<void>;
|
|
214
|
+
/**
|
|
215
|
+
* Parse calendar event from API response
|
|
216
|
+
*/
|
|
217
|
+
private parseEvent;
|
|
218
|
+
}
|
|
219
|
+
export declare const GoogleCalendarInitializer: SDKInitializer;
|
|
220
|
+
//# sourceMappingURL=google-calendar.d.ts.map
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Docs Integration
|
|
3
|
+
*
|
|
4
|
+
* Document creation and editing platform.
|
|
5
|
+
* API Docs: https://developers.google.com/docs/api
|
|
6
|
+
*/
|
|
7
|
+
import { docs_v1 } from 'googleapis';
|
|
8
|
+
import { SDKInitializer } from '@marktoflow/core';
|
|
9
|
+
export interface Document {
|
|
10
|
+
documentId: string;
|
|
11
|
+
title: string;
|
|
12
|
+
body?: DocumentBody;
|
|
13
|
+
revisionId?: string;
|
|
14
|
+
suggestionsViewMode?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface DocumentBody {
|
|
17
|
+
content: StructuralElement[];
|
|
18
|
+
}
|
|
19
|
+
export interface StructuralElement {
|
|
20
|
+
startIndex?: number;
|
|
21
|
+
endIndex?: number;
|
|
22
|
+
paragraph?: Paragraph;
|
|
23
|
+
table?: Table;
|
|
24
|
+
sectionBreak?: unknown;
|
|
25
|
+
}
|
|
26
|
+
export interface Paragraph {
|
|
27
|
+
elements: ParagraphElement[];
|
|
28
|
+
paragraphStyle?: ParagraphStyle;
|
|
29
|
+
}
|
|
30
|
+
export interface ParagraphElement {
|
|
31
|
+
startIndex?: number;
|
|
32
|
+
endIndex?: number;
|
|
33
|
+
textRun?: TextRun;
|
|
34
|
+
}
|
|
35
|
+
export interface TextRun {
|
|
36
|
+
content: string;
|
|
37
|
+
textStyle?: TextStyle;
|
|
38
|
+
}
|
|
39
|
+
export interface TextStyle {
|
|
40
|
+
bold?: boolean;
|
|
41
|
+
italic?: boolean;
|
|
42
|
+
underline?: boolean;
|
|
43
|
+
strikethrough?: boolean;
|
|
44
|
+
fontSize?: {
|
|
45
|
+
magnitude: number;
|
|
46
|
+
unit: string;
|
|
47
|
+
};
|
|
48
|
+
foregroundColor?: Color;
|
|
49
|
+
backgroundColor?: Color;
|
|
50
|
+
link?: {
|
|
51
|
+
url: string;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export interface ParagraphStyle {
|
|
55
|
+
headingId?: string;
|
|
56
|
+
namedStyleType?: string;
|
|
57
|
+
alignment?: string;
|
|
58
|
+
lineSpacing?: number;
|
|
59
|
+
direction?: string;
|
|
60
|
+
spacingMode?: string;
|
|
61
|
+
spaceAbove?: {
|
|
62
|
+
magnitude: number;
|
|
63
|
+
unit: string;
|
|
64
|
+
};
|
|
65
|
+
spaceBelow?: {
|
|
66
|
+
magnitude: number;
|
|
67
|
+
unit: string;
|
|
68
|
+
};
|
|
69
|
+
indentFirstLine?: {
|
|
70
|
+
magnitude: number;
|
|
71
|
+
unit: string;
|
|
72
|
+
};
|
|
73
|
+
indentStart?: {
|
|
74
|
+
magnitude: number;
|
|
75
|
+
unit: string;
|
|
76
|
+
};
|
|
77
|
+
indentEnd?: {
|
|
78
|
+
magnitude: number;
|
|
79
|
+
unit: string;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export interface Color {
|
|
83
|
+
rgbColor?: {
|
|
84
|
+
red: number;
|
|
85
|
+
green: number;
|
|
86
|
+
blue: number;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export interface Table {
|
|
90
|
+
rows: number;
|
|
91
|
+
columns: number;
|
|
92
|
+
tableRows: TableRow[];
|
|
93
|
+
}
|
|
94
|
+
export interface TableRow {
|
|
95
|
+
tableCells: TableCell[];
|
|
96
|
+
}
|
|
97
|
+
export interface TableCell {
|
|
98
|
+
content: StructuralElement[];
|
|
99
|
+
}
|
|
100
|
+
export interface CreateDocumentOptions {
|
|
101
|
+
title: string;
|
|
102
|
+
}
|
|
103
|
+
export interface InsertTextOptions {
|
|
104
|
+
text: string;
|
|
105
|
+
index?: number;
|
|
106
|
+
}
|
|
107
|
+
export interface DeleteContentOptions {
|
|
108
|
+
startIndex: number;
|
|
109
|
+
endIndex: number;
|
|
110
|
+
}
|
|
111
|
+
export interface FormatTextOptions {
|
|
112
|
+
startIndex: number;
|
|
113
|
+
endIndex: number;
|
|
114
|
+
bold?: boolean;
|
|
115
|
+
italic?: boolean;
|
|
116
|
+
underline?: boolean;
|
|
117
|
+
fontSize?: number;
|
|
118
|
+
foregroundColor?: {
|
|
119
|
+
red: number;
|
|
120
|
+
green: number;
|
|
121
|
+
blue: number;
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
export interface InsertTableOptions {
|
|
125
|
+
rows: number;
|
|
126
|
+
columns: number;
|
|
127
|
+
index?: number;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Google Docs actions for workflow integration
|
|
131
|
+
*/
|
|
132
|
+
export declare class GoogleDocsActions {
|
|
133
|
+
private docs;
|
|
134
|
+
constructor(docs: docs_v1.Docs);
|
|
135
|
+
/**
|
|
136
|
+
* Get a document by ID
|
|
137
|
+
*/
|
|
138
|
+
getDocument(documentId: string): Promise<Document>;
|
|
139
|
+
/**
|
|
140
|
+
* Create a new document
|
|
141
|
+
*/
|
|
142
|
+
createDocument(options: CreateDocumentOptions): Promise<Document>;
|
|
143
|
+
/**
|
|
144
|
+
* Get document text content
|
|
145
|
+
*/
|
|
146
|
+
getDocumentText(documentId: string): Promise<string>;
|
|
147
|
+
/**
|
|
148
|
+
* Insert text into a document
|
|
149
|
+
*/
|
|
150
|
+
insertText(documentId: string, options: InsertTextOptions): Promise<void>;
|
|
151
|
+
/**
|
|
152
|
+
* Append text to the end of a document
|
|
153
|
+
*/
|
|
154
|
+
appendText(documentId: string, text: string): Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* Delete content from a document
|
|
157
|
+
*/
|
|
158
|
+
deleteContent(documentId: string, options: DeleteContentOptions): Promise<void>;
|
|
159
|
+
/**
|
|
160
|
+
* Replace all occurrences of text
|
|
161
|
+
*/
|
|
162
|
+
replaceAllText(documentId: string, find: string, replace: string, matchCase?: boolean): Promise<number>;
|
|
163
|
+
/**
|
|
164
|
+
* Format text
|
|
165
|
+
*/
|
|
166
|
+
formatText(documentId: string, options: FormatTextOptions): Promise<void>;
|
|
167
|
+
/**
|
|
168
|
+
* Insert a table
|
|
169
|
+
*/
|
|
170
|
+
insertTable(documentId: string, options: InsertTableOptions): Promise<void>;
|
|
171
|
+
/**
|
|
172
|
+
* Insert a page break
|
|
173
|
+
*/
|
|
174
|
+
insertPageBreak(documentId: string, index?: number): Promise<void>;
|
|
175
|
+
/**
|
|
176
|
+
* Create a named range
|
|
177
|
+
*/
|
|
178
|
+
createNamedRange(documentId: string, name: string, startIndex: number, endIndex: number): Promise<string>;
|
|
179
|
+
/**
|
|
180
|
+
* Update paragraph style
|
|
181
|
+
*/
|
|
182
|
+
updateParagraphStyle(documentId: string, startIndex: number, endIndex: number, style: {
|
|
183
|
+
headingId?: string;
|
|
184
|
+
namedStyleType?: string;
|
|
185
|
+
alignment?: 'ALIGNMENT_UNSPECIFIED' | 'START' | 'CENTER' | 'END' | 'JUSTIFIED';
|
|
186
|
+
}): Promise<void>;
|
|
187
|
+
/**
|
|
188
|
+
* Insert inline image
|
|
189
|
+
*/
|
|
190
|
+
insertImage(documentId: string, imageUri: string, index?: number): Promise<void>;
|
|
191
|
+
/**
|
|
192
|
+
* Batch update operations
|
|
193
|
+
*/
|
|
194
|
+
batchUpdate(documentId: string, requests: docs_v1.Schema$Request[]): Promise<docs_v1.Schema$BatchUpdateDocumentResponse>;
|
|
195
|
+
}
|
|
196
|
+
export declare const GoogleDocsInitializer: SDKInitializer;
|
|
197
|
+
//# sourceMappingURL=google-docs.d.ts.map
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Drive Integration
|
|
3
|
+
*
|
|
4
|
+
* File storage and collaboration platform.
|
|
5
|
+
* API Docs: https://developers.google.com/drive/api
|
|
6
|
+
*/
|
|
7
|
+
import { drive_v3 } from 'googleapis';
|
|
8
|
+
import { SDKInitializer } from '@marktoflow/core';
|
|
9
|
+
import { Readable } from 'stream';
|
|
10
|
+
export interface DriveFile {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
mimeType: string;
|
|
14
|
+
parents?: string[];
|
|
15
|
+
size?: string;
|
|
16
|
+
createdTime?: string;
|
|
17
|
+
modifiedTime?: string;
|
|
18
|
+
webViewLink?: string;
|
|
19
|
+
webContentLink?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
starred?: boolean;
|
|
22
|
+
trashed?: boolean;
|
|
23
|
+
shared?: boolean;
|
|
24
|
+
owners?: {
|
|
25
|
+
displayName?: string;
|
|
26
|
+
emailAddress?: string;
|
|
27
|
+
}[];
|
|
28
|
+
permissions?: DrivePermission[];
|
|
29
|
+
}
|
|
30
|
+
export interface DrivePermission {
|
|
31
|
+
id: string;
|
|
32
|
+
type: 'user' | 'group' | 'domain' | 'anyone';
|
|
33
|
+
role: 'owner' | 'organizer' | 'fileOrganizer' | 'writer' | 'commenter' | 'reader';
|
|
34
|
+
emailAddress?: string;
|
|
35
|
+
displayName?: string;
|
|
36
|
+
deleted?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface ListFilesOptions {
|
|
39
|
+
q?: string;
|
|
40
|
+
pageSize?: number;
|
|
41
|
+
pageToken?: string;
|
|
42
|
+
orderBy?: string;
|
|
43
|
+
spaces?: string;
|
|
44
|
+
fields?: string;
|
|
45
|
+
includeItemsFromAllDrives?: boolean;
|
|
46
|
+
supportsAllDrives?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface CreateFileOptions {
|
|
49
|
+
name: string;
|
|
50
|
+
mimeType?: string;
|
|
51
|
+
parents?: string[];
|
|
52
|
+
description?: string;
|
|
53
|
+
content?: string | Buffer | Readable;
|
|
54
|
+
contentType?: string;
|
|
55
|
+
}
|
|
56
|
+
export interface UpdateFileOptions {
|
|
57
|
+
name?: string;
|
|
58
|
+
description?: string;
|
|
59
|
+
starred?: boolean;
|
|
60
|
+
trashed?: boolean;
|
|
61
|
+
parents?: string[];
|
|
62
|
+
content?: string | Buffer | Readable;
|
|
63
|
+
contentType?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface ShareFileOptions {
|
|
66
|
+
type: 'user' | 'group' | 'domain' | 'anyone';
|
|
67
|
+
role: 'owner' | 'organizer' | 'fileOrganizer' | 'writer' | 'commenter' | 'reader';
|
|
68
|
+
emailAddress?: string;
|
|
69
|
+
domain?: string;
|
|
70
|
+
allowFileDiscovery?: boolean;
|
|
71
|
+
sendNotificationEmail?: boolean;
|
|
72
|
+
emailMessage?: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Google Drive actions for workflow integration
|
|
76
|
+
*/
|
|
77
|
+
export declare class GoogleDriveActions {
|
|
78
|
+
private drive;
|
|
79
|
+
constructor(drive: drive_v3.Drive);
|
|
80
|
+
/**
|
|
81
|
+
* List files and folders
|
|
82
|
+
*/
|
|
83
|
+
listFiles(options?: ListFilesOptions): Promise<{
|
|
84
|
+
files: DriveFile[];
|
|
85
|
+
nextPageToken?: string;
|
|
86
|
+
}>;
|
|
87
|
+
/**
|
|
88
|
+
* Get a file by ID
|
|
89
|
+
*/
|
|
90
|
+
getFile(fileId: string, fields?: string): Promise<DriveFile>;
|
|
91
|
+
/**
|
|
92
|
+
* Download file content
|
|
93
|
+
*/
|
|
94
|
+
downloadFile(fileId: string): Promise<Buffer>;
|
|
95
|
+
/**
|
|
96
|
+
* Export Google Workspace file to another format
|
|
97
|
+
*/
|
|
98
|
+
exportFile(fileId: string, mimeType: string): Promise<Buffer>;
|
|
99
|
+
/**
|
|
100
|
+
* Create a file or folder
|
|
101
|
+
*/
|
|
102
|
+
createFile(options: CreateFileOptions): Promise<DriveFile>;
|
|
103
|
+
/**
|
|
104
|
+
* Create a folder
|
|
105
|
+
*/
|
|
106
|
+
createFolder(name: string, parentId?: string): Promise<DriveFile>;
|
|
107
|
+
/**
|
|
108
|
+
* Update a file
|
|
109
|
+
*/
|
|
110
|
+
updateFile(fileId: string, options: UpdateFileOptions): Promise<DriveFile>;
|
|
111
|
+
/**
|
|
112
|
+
* Delete a file
|
|
113
|
+
*/
|
|
114
|
+
deleteFile(fileId: string): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* Copy a file
|
|
117
|
+
*/
|
|
118
|
+
copyFile(fileId: string, name: string, parents?: string[]): Promise<DriveFile>;
|
|
119
|
+
/**
|
|
120
|
+
* Move a file
|
|
121
|
+
*/
|
|
122
|
+
moveFile(fileId: string, newParentId: string): Promise<DriveFile>;
|
|
123
|
+
/**
|
|
124
|
+
* Share a file
|
|
125
|
+
*/
|
|
126
|
+
shareFile(fileId: string, options: ShareFileOptions): Promise<DrivePermission>;
|
|
127
|
+
/**
|
|
128
|
+
* List permissions for a file
|
|
129
|
+
*/
|
|
130
|
+
listPermissions(fileId: string): Promise<DrivePermission[]>;
|
|
131
|
+
/**
|
|
132
|
+
* Remove a permission
|
|
133
|
+
*/
|
|
134
|
+
removePermission(fileId: string, permissionId: string): Promise<void>;
|
|
135
|
+
/**
|
|
136
|
+
* Search files
|
|
137
|
+
*/
|
|
138
|
+
searchFiles(query: string, options?: Omit<ListFilesOptions, 'q'>): Promise<DriveFile[]>;
|
|
139
|
+
/**
|
|
140
|
+
* Get files in a folder
|
|
141
|
+
*/
|
|
142
|
+
getFilesInFolder(folderId: string): Promise<DriveFile[]>;
|
|
143
|
+
/**
|
|
144
|
+
* Parse file from API response
|
|
145
|
+
*/
|
|
146
|
+
private parseFile;
|
|
147
|
+
}
|
|
148
|
+
export declare const GoogleDriveInitializer: SDKInitializer;
|
|
149
|
+
//# sourceMappingURL=google-drive.d.ts.map
|