@bubblelab/bubble-core 0.1.9 → 0.1.10
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/bubble-bundle.d.ts +252 -1686
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +51 -19
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubble-flow/bubble-flow-class.d.ts +17 -1
- package/dist/bubble-flow/bubble-flow-class.d.ts.map +1 -1
- package/dist/bubble-flow/bubble-flow-class.js +16 -0
- package/dist/bubble-flow/bubble-flow-class.js.map +1 -1
- package/dist/bubble-flow/sample/data-analyst-flow.d.ts +1 -1
- package/dist/bubble-flow/sample/data-analyst-flow.d.ts.map +1 -1
- package/dist/bubble-flow/sample/error-ts.d.ts +1 -1
- package/dist/bubble-flow/sample/error-ts.d.ts.map +1 -1
- package/dist/bubble-flow/sample/sanitytest.d.ts +1 -1
- package/dist/bubble-flow/sample/sanitytest.d.ts.map +1 -1
- package/dist/bubble-flow/sample/simple-webhook-2.d.ts +1 -1
- package/dist/bubble-flow/sample/simple-webhook-2.d.ts.map +1 -1
- package/dist/bubble-flow/sample/simple-webhook.d.ts +1 -1
- package/dist/bubble-flow/sample/simple-webhook.d.ts.map +1 -1
- package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts +1 -1
- package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts.map +1 -1
- package/dist/bubble-flow/sample/slack-v0.1.d.ts +1 -1
- package/dist/bubble-flow/sample/slack-v0.1.d.ts.map +1 -1
- package/dist/bubble-flow/sample/slackagenttest.d.ts +1 -1
- package/dist/bubble-flow/sample/slackagenttest.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.d.ts +30 -30
- package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.js +3 -1
- package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +34 -34
- package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +42 -42
- package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +21 -21
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +6 -6
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +184 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js +145 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts +52 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js +29 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +338 -109
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js +16 -0
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/apify.d.ts +10 -10
- package/dist/bubbles/service-bubble/apify/index.d.ts +2 -0
- package/dist/bubbles/service-bubble/apify/index.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/apify/index.js +3 -0
- package/dist/bubbles/service-bubble/apify/index.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/types.js +1 -2
- package/dist/bubbles/service-bubble/apify/types.js.map +1 -1
- package/dist/bubbles/service-bubble/gmail.d.ts +678 -184
- package/dist/bubbles/service-bubble/gmail.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/gmail.js +435 -7
- package/dist/bubbles/service-bubble/gmail.js.map +1 -1
- package/dist/bubbles/service-bubble/google-calendar.d.ts +60 -60
- package/dist/bubbles/service-bubble/google-drive.d.ts +301 -72
- package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/google-drive.js +65 -75
- package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
- package/dist/bubbles/service-bubble/google-sheets.d.ts +76 -76
- package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
- package/dist/bubbles/service-bubble/hello-world.js +2 -2
- package/dist/bubbles/service-bubble/hello-world.js.map +1 -1
- package/dist/bubbles/service-bubble/http.d.ts +10 -10
- package/dist/bubbles/service-bubble/postgresql.d.ts +12 -12
- package/dist/bubbles/service-bubble/resend.d.ts +16 -16
- package/dist/bubbles/service-bubble/slack.d.ts +469 -469
- package/dist/bubbles/service-bubble/storage.d.ts +36 -36
- package/dist/bubbles/service-bubble/storage.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/storage.js +16 -5
- package/dist/bubbles/service-bubble/storage.js.map +1 -1
- package/dist/bubbles/service-bubble/x-twitter.d.ts +814 -0
- package/dist/bubbles/service-bubble/x-twitter.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/x-twitter.js +445 -0
- package/dist/bubbles/service-bubble/x-twitter.js.map +1 -0
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +20 -20
- package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.js +17 -9
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/instagram-tool.d.ts +86 -86
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +134 -134
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +69 -64
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.js +97 -22
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +6 -6
- package/dist/bubbles/tool-bubble/research-agent-tool.js +4 -4
- package/dist/bubbles/tool-bubble/research-agent-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/tool-template.d.ts +8 -8
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +12 -12
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts +11 -10
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/web-search-tool.js +5 -1
- package/dist/bubbles/tool-bubble/web-search-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +394 -0
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/youtube-tool.js +352 -0
- package/dist/bubbles/tool-bubble/youtube-tool.js.map +1 -0
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +47 -36
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +1 -1
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +91 -65
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +1 -1
- package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +70 -70
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +66 -66
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +56 -56
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts.map +1 -1
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js.map +1 -1
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +44 -44
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts.map +1 -1
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js +1 -1
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js.map +1 -1
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +32 -32
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +58 -58
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +18 -18
- package/dist/bubbles.json +69 -54
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/logging/BubbleLogger.d.ts.map +1 -1
- package/dist/logging/BubbleLogger.js +20 -13
- package/dist/logging/BubbleLogger.js.map +1 -1
- package/dist/logging/StreamingBubbleLogger.d.ts.map +1 -1
- package/dist/logging/StreamingBubbleLogger.js +5 -5
- package/dist/logging/StreamingBubbleLogger.js.map +1 -1
- package/dist/test-gm.d.ts +10 -0
- package/dist/test-gm.d.ts.map +1 -0
- package/dist/test-gm.js +95 -0
- package/dist/test-gm.js.map +1 -0
- package/dist/types/base-bubble-class.d.ts +1 -1
- package/dist/types/base-bubble-class.d.ts.map +1 -1
- package/dist/types/base-bubble-class.js +29 -21
- package/dist/types/base-bubble-class.js.map +1 -1
- package/dist/types/bubble.d.ts +1 -10
- package/dist/types/bubble.d.ts.map +1 -1
- package/dist/types/bubble.js +1 -1
- package/dist/types/bubble.js.map +1 -1
- package/dist/types/service-bubble-class.d.ts +1 -1
- package/dist/types/service-bubble-class.d.ts.map +1 -1
- package/dist/types/tool-bubble-class.d.ts +1 -1
- package/dist/types/tool-bubble-class.d.ts.map +1 -1
- package/dist/types/tool-bubble-class.js +0 -2
- package/dist/types/tool-bubble-class.js.map +1 -1
- package/dist/types/workflow-bubble-class.d.ts +1 -1
- package/dist/types/workflow-bubble-class.d.ts.map +1 -1
- package/dist/utils/agent-formatter.d.ts.map +1 -1
- package/dist/utils/agent-formatter.js +2 -2
- package/dist/utils/agent-formatter.js.map +1 -1
- package/dist/utils/bubbleflow-validation.d.ts.map +1 -1
- package/dist/utils/bubbleflow-validation.js +89 -32
- package/dist/utils/bubbleflow-validation.js.map +1 -1
- package/dist/utils/error-sanitizer.d.ts +12 -0
- package/dist/utils/error-sanitizer.d.ts.map +1 -0
- package/dist/utils/error-sanitizer.js +77 -0
- package/dist/utils/error-sanitizer.js.map +1 -0
- package/package.json +4 -4
- package/dist/bubble-trigger/index.d.ts +0 -2
- package/dist/bubble-trigger/index.d.ts.map +0 -1
- package/dist/bubble-trigger/index.js +0 -2
- package/dist/bubble-trigger/index.js.map +0 -1
- package/dist/bubble-trigger/types.d.ts +0 -87
- package/dist/bubble-trigger/types.d.ts.map +0 -1
- package/dist/bubble-trigger/types.js +0 -14
- package/dist/bubble-trigger/types.js.map +0 -1
- package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts +0 -370
- package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts.map +0 -1
- package/dist/bubbles/service-bubble/apify/api-scraper.schema.js +0 -14
- package/dist/bubbles/service-bubble/apify/api-scraper.schema.js.map +0 -1
- package/dist/bubbles/service-bubble/apify.d.ts +0 -136
- package/dist/bubbles/service-bubble/apify.d.ts.map +0 -1
- package/dist/bubbles/service-bubble/apify.js +0 -282
- package/dist/bubbles/service-bubble/apify.js.map +0 -1
- package/dist/types/ai-models.d.ts +0 -4
- package/dist/types/ai-models.d.ts.map +0 -1
- package/dist/types/ai-models.js +0 -20
- package/dist/types/ai-models.js.map +0 -1
- package/dist/types/api-scraper.schema.d.ts +0 -453
- package/dist/types/api-scraper.schema.d.ts.map +0 -1
- package/dist/types/api-scraper.schema.js +0 -160
- package/dist/types/api-scraper.schema.js.map +0 -1
|
@@ -15,15 +15,15 @@ declare const GoogleDriveParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
15
15
|
content: string;
|
|
16
16
|
operation: "upload_file";
|
|
17
17
|
convert_to_google_docs: boolean;
|
|
18
|
-
mimeType?: string | undefined;
|
|
19
18
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
19
|
+
mimeType?: string | undefined;
|
|
20
20
|
parent_folder_id?: string | undefined;
|
|
21
21
|
}, {
|
|
22
22
|
name: string;
|
|
23
23
|
content: string;
|
|
24
24
|
operation: "upload_file";
|
|
25
|
-
mimeType?: string | undefined;
|
|
26
25
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
26
|
+
mimeType?: string | undefined;
|
|
27
27
|
parent_folder_id?: string | undefined;
|
|
28
28
|
convert_to_google_docs?: boolean | undefined;
|
|
29
29
|
}>, z.ZodObject<{
|
|
@@ -119,21 +119,39 @@ declare const GoogleDriveParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
119
119
|
send_notification: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
120
120
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
121
121
|
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
type: "
|
|
122
|
+
type: "domain" | "user" | "group" | "anyone";
|
|
123
123
|
operation: "share_file";
|
|
124
124
|
file_id: string;
|
|
125
|
-
role: "
|
|
125
|
+
role: "writer" | "reader" | "commenter" | "owner";
|
|
126
126
|
send_notification: boolean;
|
|
127
127
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
128
128
|
email_address?: string | undefined;
|
|
129
129
|
}, {
|
|
130
130
|
operation: "share_file";
|
|
131
131
|
file_id: string;
|
|
132
|
-
type?: "
|
|
132
|
+
type?: "domain" | "user" | "group" | "anyone" | undefined;
|
|
133
133
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
134
134
|
email_address?: string | undefined;
|
|
135
|
-
role?: "
|
|
135
|
+
role?: "writer" | "reader" | "commenter" | "owner" | undefined;
|
|
136
136
|
send_notification?: boolean | undefined;
|
|
137
|
+
}>, z.ZodObject<{
|
|
138
|
+
operation: z.ZodLiteral<"move_file">;
|
|
139
|
+
file_id: z.ZodString;
|
|
140
|
+
new_parent_folder_id: z.ZodOptional<z.ZodString>;
|
|
141
|
+
remove_parent_folder_id: z.ZodOptional<z.ZodString>;
|
|
142
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
operation: "move_file";
|
|
145
|
+
file_id: string;
|
|
146
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
147
|
+
new_parent_folder_id?: string | undefined;
|
|
148
|
+
remove_parent_folder_id?: string | undefined;
|
|
149
|
+
}, {
|
|
150
|
+
operation: "move_file";
|
|
151
|
+
file_id: string;
|
|
152
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
153
|
+
new_parent_folder_id?: string | undefined;
|
|
154
|
+
remove_parent_folder_id?: string | undefined;
|
|
137
155
|
}>]>;
|
|
138
156
|
declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
|
|
139
157
|
operation: z.ZodLiteral<"upload_file">;
|
|
@@ -160,8 +178,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
160
178
|
emailAddress?: string | undefined;
|
|
161
179
|
}>, "many">>;
|
|
162
180
|
}, "strip", z.ZodTypeAny, {
|
|
163
|
-
mimeType: string;
|
|
164
181
|
name: string;
|
|
182
|
+
mimeType: string;
|
|
165
183
|
id: string;
|
|
166
184
|
size?: string | undefined;
|
|
167
185
|
createdTime?: string | undefined;
|
|
@@ -175,8 +193,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
175
193
|
emailAddress?: string | undefined;
|
|
176
194
|
}[] | undefined;
|
|
177
195
|
}, {
|
|
178
|
-
mimeType: string;
|
|
179
196
|
name: string;
|
|
197
|
+
mimeType: string;
|
|
180
198
|
id: string;
|
|
181
199
|
size?: string | undefined;
|
|
182
200
|
createdTime?: string | undefined;
|
|
@@ -192,12 +210,12 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
192
210
|
}>>;
|
|
193
211
|
error: z.ZodString;
|
|
194
212
|
}, "strip", z.ZodTypeAny, {
|
|
195
|
-
error: string;
|
|
196
213
|
success: boolean;
|
|
214
|
+
error: string;
|
|
197
215
|
operation: "upload_file";
|
|
198
216
|
file?: {
|
|
199
|
-
mimeType: string;
|
|
200
217
|
name: string;
|
|
218
|
+
mimeType: string;
|
|
201
219
|
id: string;
|
|
202
220
|
size?: string | undefined;
|
|
203
221
|
createdTime?: string | undefined;
|
|
@@ -212,12 +230,12 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
212
230
|
}[] | undefined;
|
|
213
231
|
} | undefined;
|
|
214
232
|
}, {
|
|
215
|
-
error: string;
|
|
216
233
|
success: boolean;
|
|
234
|
+
error: string;
|
|
217
235
|
operation: "upload_file";
|
|
218
236
|
file?: {
|
|
219
|
-
mimeType: string;
|
|
220
237
|
name: string;
|
|
238
|
+
mimeType: string;
|
|
221
239
|
id: string;
|
|
222
240
|
size?: string | undefined;
|
|
223
241
|
createdTime?: string | undefined;
|
|
@@ -239,18 +257,18 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
239
257
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
240
258
|
error: z.ZodString;
|
|
241
259
|
}, "strip", z.ZodTypeAny, {
|
|
242
|
-
error: string;
|
|
243
260
|
success: boolean;
|
|
261
|
+
error: string;
|
|
244
262
|
operation: "download_file";
|
|
245
|
-
mimeType?: string | undefined;
|
|
246
263
|
content?: string | undefined;
|
|
264
|
+
mimeType?: string | undefined;
|
|
247
265
|
filename?: string | undefined;
|
|
248
266
|
}, {
|
|
249
|
-
error: string;
|
|
250
267
|
success: boolean;
|
|
268
|
+
error: string;
|
|
251
269
|
operation: "download_file";
|
|
252
|
-
mimeType?: string | undefined;
|
|
253
270
|
content?: string | undefined;
|
|
271
|
+
mimeType?: string | undefined;
|
|
254
272
|
filename?: string | undefined;
|
|
255
273
|
}>, z.ZodObject<{
|
|
256
274
|
operation: z.ZodLiteral<"list_files">;
|
|
@@ -277,8 +295,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
277
295
|
emailAddress?: string | undefined;
|
|
278
296
|
}>, "many">>;
|
|
279
297
|
}, "strip", z.ZodTypeAny, {
|
|
280
|
-
mimeType: string;
|
|
281
298
|
name: string;
|
|
299
|
+
mimeType: string;
|
|
282
300
|
id: string;
|
|
283
301
|
size?: string | undefined;
|
|
284
302
|
createdTime?: string | undefined;
|
|
@@ -292,8 +310,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
292
310
|
emailAddress?: string | undefined;
|
|
293
311
|
}[] | undefined;
|
|
294
312
|
}, {
|
|
295
|
-
mimeType: string;
|
|
296
313
|
name: string;
|
|
314
|
+
mimeType: string;
|
|
297
315
|
id: string;
|
|
298
316
|
size?: string | undefined;
|
|
299
317
|
createdTime?: string | undefined;
|
|
@@ -311,13 +329,12 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
311
329
|
next_page_token: z.ZodOptional<z.ZodString>;
|
|
312
330
|
error: z.ZodString;
|
|
313
331
|
}, "strip", z.ZodTypeAny, {
|
|
314
|
-
error: string;
|
|
315
332
|
success: boolean;
|
|
333
|
+
error: string;
|
|
316
334
|
operation: "list_files";
|
|
317
|
-
total_count?: number | undefined;
|
|
318
335
|
files?: {
|
|
319
|
-
mimeType: string;
|
|
320
336
|
name: string;
|
|
337
|
+
mimeType: string;
|
|
321
338
|
id: string;
|
|
322
339
|
size?: string | undefined;
|
|
323
340
|
createdTime?: string | undefined;
|
|
@@ -331,15 +348,15 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
331
348
|
emailAddress?: string | undefined;
|
|
332
349
|
}[] | undefined;
|
|
333
350
|
}[] | undefined;
|
|
351
|
+
total_count?: number | undefined;
|
|
334
352
|
next_page_token?: string | undefined;
|
|
335
353
|
}, {
|
|
336
|
-
error: string;
|
|
337
354
|
success: boolean;
|
|
355
|
+
error: string;
|
|
338
356
|
operation: "list_files";
|
|
339
|
-
total_count?: number | undefined;
|
|
340
357
|
files?: {
|
|
341
|
-
mimeType: string;
|
|
342
358
|
name: string;
|
|
359
|
+
mimeType: string;
|
|
343
360
|
id: string;
|
|
344
361
|
size?: string | undefined;
|
|
345
362
|
createdTime?: string | undefined;
|
|
@@ -353,6 +370,7 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
353
370
|
emailAddress?: string | undefined;
|
|
354
371
|
}[] | undefined;
|
|
355
372
|
}[] | undefined;
|
|
373
|
+
total_count?: number | undefined;
|
|
356
374
|
next_page_token?: string | undefined;
|
|
357
375
|
}>, z.ZodObject<{
|
|
358
376
|
operation: z.ZodLiteral<"create_folder">;
|
|
@@ -375,8 +393,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
375
393
|
}>>;
|
|
376
394
|
error: z.ZodString;
|
|
377
395
|
}, "strip", z.ZodTypeAny, {
|
|
378
|
-
error: string;
|
|
379
396
|
success: boolean;
|
|
397
|
+
error: string;
|
|
380
398
|
operation: "create_folder";
|
|
381
399
|
folder?: {
|
|
382
400
|
name: string;
|
|
@@ -385,8 +403,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
385
403
|
parents?: string[] | undefined;
|
|
386
404
|
} | undefined;
|
|
387
405
|
}, {
|
|
388
|
-
error: string;
|
|
389
406
|
success: boolean;
|
|
407
|
+
error: string;
|
|
390
408
|
operation: "create_folder";
|
|
391
409
|
folder?: {
|
|
392
410
|
name: string;
|
|
@@ -400,13 +418,13 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
400
418
|
deleted_file_id: z.ZodOptional<z.ZodString>;
|
|
401
419
|
error: z.ZodString;
|
|
402
420
|
}, "strip", z.ZodTypeAny, {
|
|
403
|
-
error: string;
|
|
404
421
|
success: boolean;
|
|
422
|
+
error: string;
|
|
405
423
|
operation: "delete_file";
|
|
406
424
|
deleted_file_id?: string | undefined;
|
|
407
425
|
}, {
|
|
408
|
-
error: string;
|
|
409
426
|
success: boolean;
|
|
427
|
+
error: string;
|
|
410
428
|
operation: "delete_file";
|
|
411
429
|
deleted_file_id?: string | undefined;
|
|
412
430
|
}>, z.ZodObject<{
|
|
@@ -434,8 +452,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
434
452
|
emailAddress?: string | undefined;
|
|
435
453
|
}>, "many">>;
|
|
436
454
|
}, "strip", z.ZodTypeAny, {
|
|
437
|
-
mimeType: string;
|
|
438
455
|
name: string;
|
|
456
|
+
mimeType: string;
|
|
439
457
|
id: string;
|
|
440
458
|
size?: string | undefined;
|
|
441
459
|
createdTime?: string | undefined;
|
|
@@ -449,8 +467,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
449
467
|
emailAddress?: string | undefined;
|
|
450
468
|
}[] | undefined;
|
|
451
469
|
}, {
|
|
452
|
-
mimeType: string;
|
|
453
470
|
name: string;
|
|
471
|
+
mimeType: string;
|
|
454
472
|
id: string;
|
|
455
473
|
size?: string | undefined;
|
|
456
474
|
createdTime?: string | undefined;
|
|
@@ -485,12 +503,12 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
485
503
|
}>, "many">>;
|
|
486
504
|
error: z.ZodString;
|
|
487
505
|
}, "strip", z.ZodTypeAny, {
|
|
488
|
-
error: string;
|
|
489
506
|
success: boolean;
|
|
507
|
+
error: string;
|
|
490
508
|
operation: "get_file_info";
|
|
491
509
|
file?: {
|
|
492
|
-
mimeType: string;
|
|
493
510
|
name: string;
|
|
511
|
+
mimeType: string;
|
|
494
512
|
id: string;
|
|
495
513
|
size?: string | undefined;
|
|
496
514
|
createdTime?: string | undefined;
|
|
@@ -512,12 +530,12 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
512
530
|
emailAddress?: string | undefined;
|
|
513
531
|
}[] | undefined;
|
|
514
532
|
}, {
|
|
515
|
-
error: string;
|
|
516
533
|
success: boolean;
|
|
534
|
+
error: string;
|
|
517
535
|
operation: "get_file_info";
|
|
518
536
|
file?: {
|
|
519
|
-
mimeType: string;
|
|
520
537
|
name: string;
|
|
538
|
+
mimeType: string;
|
|
521
539
|
id: string;
|
|
522
540
|
size?: string | undefined;
|
|
523
541
|
createdTime?: string | undefined;
|
|
@@ -545,17 +563,113 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
|
|
|
545
563
|
share_link: z.ZodOptional<z.ZodString>;
|
|
546
564
|
error: z.ZodString;
|
|
547
565
|
}, "strip", z.ZodTypeAny, {
|
|
548
|
-
error: string;
|
|
549
566
|
success: boolean;
|
|
567
|
+
error: string;
|
|
550
568
|
operation: "share_file";
|
|
551
569
|
permission_id?: string | undefined;
|
|
552
570
|
share_link?: string | undefined;
|
|
553
571
|
}, {
|
|
554
|
-
error: string;
|
|
555
572
|
success: boolean;
|
|
573
|
+
error: string;
|
|
556
574
|
operation: "share_file";
|
|
557
575
|
permission_id?: string | undefined;
|
|
558
576
|
share_link?: string | undefined;
|
|
577
|
+
}>, z.ZodObject<{
|
|
578
|
+
operation: z.ZodLiteral<"move_file">;
|
|
579
|
+
success: z.ZodBoolean;
|
|
580
|
+
file: z.ZodOptional<z.ZodObject<{
|
|
581
|
+
id: z.ZodString;
|
|
582
|
+
name: z.ZodString;
|
|
583
|
+
mimeType: z.ZodString;
|
|
584
|
+
size: z.ZodOptional<z.ZodString>;
|
|
585
|
+
createdTime: z.ZodOptional<z.ZodString>;
|
|
586
|
+
modifiedTime: z.ZodOptional<z.ZodString>;
|
|
587
|
+
webViewLink: z.ZodOptional<z.ZodString>;
|
|
588
|
+
webContentLink: z.ZodOptional<z.ZodString>;
|
|
589
|
+
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
590
|
+
shared: z.ZodOptional<z.ZodBoolean>;
|
|
591
|
+
owners: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
592
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
593
|
+
emailAddress: z.ZodOptional<z.ZodString>;
|
|
594
|
+
}, "strip", z.ZodTypeAny, {
|
|
595
|
+
displayName?: string | undefined;
|
|
596
|
+
emailAddress?: string | undefined;
|
|
597
|
+
}, {
|
|
598
|
+
displayName?: string | undefined;
|
|
599
|
+
emailAddress?: string | undefined;
|
|
600
|
+
}>, "many">>;
|
|
601
|
+
}, "strip", z.ZodTypeAny, {
|
|
602
|
+
name: string;
|
|
603
|
+
mimeType: string;
|
|
604
|
+
id: string;
|
|
605
|
+
size?: string | undefined;
|
|
606
|
+
createdTime?: string | undefined;
|
|
607
|
+
modifiedTime?: string | undefined;
|
|
608
|
+
webViewLink?: string | undefined;
|
|
609
|
+
webContentLink?: string | undefined;
|
|
610
|
+
parents?: string[] | undefined;
|
|
611
|
+
shared?: boolean | undefined;
|
|
612
|
+
owners?: {
|
|
613
|
+
displayName?: string | undefined;
|
|
614
|
+
emailAddress?: string | undefined;
|
|
615
|
+
}[] | undefined;
|
|
616
|
+
}, {
|
|
617
|
+
name: string;
|
|
618
|
+
mimeType: string;
|
|
619
|
+
id: string;
|
|
620
|
+
size?: string | undefined;
|
|
621
|
+
createdTime?: string | undefined;
|
|
622
|
+
modifiedTime?: string | undefined;
|
|
623
|
+
webViewLink?: string | undefined;
|
|
624
|
+
webContentLink?: string | undefined;
|
|
625
|
+
parents?: string[] | undefined;
|
|
626
|
+
shared?: boolean | undefined;
|
|
627
|
+
owners?: {
|
|
628
|
+
displayName?: string | undefined;
|
|
629
|
+
emailAddress?: string | undefined;
|
|
630
|
+
}[] | undefined;
|
|
631
|
+
}>>;
|
|
632
|
+
error: z.ZodString;
|
|
633
|
+
}, "strip", z.ZodTypeAny, {
|
|
634
|
+
success: boolean;
|
|
635
|
+
error: string;
|
|
636
|
+
operation: "move_file";
|
|
637
|
+
file?: {
|
|
638
|
+
name: string;
|
|
639
|
+
mimeType: string;
|
|
640
|
+
id: string;
|
|
641
|
+
size?: string | undefined;
|
|
642
|
+
createdTime?: string | undefined;
|
|
643
|
+
modifiedTime?: string | undefined;
|
|
644
|
+
webViewLink?: string | undefined;
|
|
645
|
+
webContentLink?: string | undefined;
|
|
646
|
+
parents?: string[] | undefined;
|
|
647
|
+
shared?: boolean | undefined;
|
|
648
|
+
owners?: {
|
|
649
|
+
displayName?: string | undefined;
|
|
650
|
+
emailAddress?: string | undefined;
|
|
651
|
+
}[] | undefined;
|
|
652
|
+
} | undefined;
|
|
653
|
+
}, {
|
|
654
|
+
success: boolean;
|
|
655
|
+
error: string;
|
|
656
|
+
operation: "move_file";
|
|
657
|
+
file?: {
|
|
658
|
+
name: string;
|
|
659
|
+
mimeType: string;
|
|
660
|
+
id: string;
|
|
661
|
+
size?: string | undefined;
|
|
662
|
+
createdTime?: string | undefined;
|
|
663
|
+
modifiedTime?: string | undefined;
|
|
664
|
+
webViewLink?: string | undefined;
|
|
665
|
+
webContentLink?: string | undefined;
|
|
666
|
+
parents?: string[] | undefined;
|
|
667
|
+
shared?: boolean | undefined;
|
|
668
|
+
owners?: {
|
|
669
|
+
displayName?: string | undefined;
|
|
670
|
+
emailAddress?: string | undefined;
|
|
671
|
+
}[] | undefined;
|
|
672
|
+
} | undefined;
|
|
559
673
|
}>]>;
|
|
560
674
|
type GoogleDriveResult = z.output<typeof GoogleDriveResultSchema>;
|
|
561
675
|
type GoogleDriveParams = z.input<typeof GoogleDriveParamsSchema>;
|
|
@@ -583,15 +697,15 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
583
697
|
content: string;
|
|
584
698
|
operation: "upload_file";
|
|
585
699
|
convert_to_google_docs: boolean;
|
|
586
|
-
mimeType?: string | undefined;
|
|
587
700
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
701
|
+
mimeType?: string | undefined;
|
|
588
702
|
parent_folder_id?: string | undefined;
|
|
589
703
|
}, {
|
|
590
704
|
name: string;
|
|
591
705
|
content: string;
|
|
592
706
|
operation: "upload_file";
|
|
593
|
-
mimeType?: string | undefined;
|
|
594
707
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
708
|
+
mimeType?: string | undefined;
|
|
595
709
|
parent_folder_id?: string | undefined;
|
|
596
710
|
convert_to_google_docs?: boolean | undefined;
|
|
597
711
|
}>, z.ZodObject<{
|
|
@@ -687,21 +801,39 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
687
801
|
send_notification: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
688
802
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
689
803
|
}, "strip", z.ZodTypeAny, {
|
|
690
|
-
type: "
|
|
804
|
+
type: "domain" | "user" | "group" | "anyone";
|
|
691
805
|
operation: "share_file";
|
|
692
806
|
file_id: string;
|
|
693
|
-
role: "
|
|
807
|
+
role: "writer" | "reader" | "commenter" | "owner";
|
|
694
808
|
send_notification: boolean;
|
|
695
809
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
696
810
|
email_address?: string | undefined;
|
|
697
811
|
}, {
|
|
698
812
|
operation: "share_file";
|
|
699
813
|
file_id: string;
|
|
700
|
-
type?: "
|
|
814
|
+
type?: "domain" | "user" | "group" | "anyone" | undefined;
|
|
701
815
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
702
816
|
email_address?: string | undefined;
|
|
703
|
-
role?: "
|
|
817
|
+
role?: "writer" | "reader" | "commenter" | "owner" | undefined;
|
|
704
818
|
send_notification?: boolean | undefined;
|
|
819
|
+
}>, z.ZodObject<{
|
|
820
|
+
operation: z.ZodLiteral<"move_file">;
|
|
821
|
+
file_id: z.ZodString;
|
|
822
|
+
new_parent_folder_id: z.ZodOptional<z.ZodString>;
|
|
823
|
+
remove_parent_folder_id: z.ZodOptional<z.ZodString>;
|
|
824
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
825
|
+
}, "strip", z.ZodTypeAny, {
|
|
826
|
+
operation: "move_file";
|
|
827
|
+
file_id: string;
|
|
828
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
829
|
+
new_parent_folder_id?: string | undefined;
|
|
830
|
+
remove_parent_folder_id?: string | undefined;
|
|
831
|
+
}, {
|
|
832
|
+
operation: "move_file";
|
|
833
|
+
file_id: string;
|
|
834
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
835
|
+
new_parent_folder_id?: string | undefined;
|
|
836
|
+
remove_parent_folder_id?: string | undefined;
|
|
705
837
|
}>]>;
|
|
706
838
|
static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
|
|
707
839
|
operation: z.ZodLiteral<"upload_file">;
|
|
@@ -728,8 +860,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
728
860
|
emailAddress?: string | undefined;
|
|
729
861
|
}>, "many">>;
|
|
730
862
|
}, "strip", z.ZodTypeAny, {
|
|
731
|
-
mimeType: string;
|
|
732
863
|
name: string;
|
|
864
|
+
mimeType: string;
|
|
733
865
|
id: string;
|
|
734
866
|
size?: string | undefined;
|
|
735
867
|
createdTime?: string | undefined;
|
|
@@ -743,8 +875,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
743
875
|
emailAddress?: string | undefined;
|
|
744
876
|
}[] | undefined;
|
|
745
877
|
}, {
|
|
746
|
-
mimeType: string;
|
|
747
878
|
name: string;
|
|
879
|
+
mimeType: string;
|
|
748
880
|
id: string;
|
|
749
881
|
size?: string | undefined;
|
|
750
882
|
createdTime?: string | undefined;
|
|
@@ -760,12 +892,12 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
760
892
|
}>>;
|
|
761
893
|
error: z.ZodString;
|
|
762
894
|
}, "strip", z.ZodTypeAny, {
|
|
763
|
-
error: string;
|
|
764
895
|
success: boolean;
|
|
896
|
+
error: string;
|
|
765
897
|
operation: "upload_file";
|
|
766
898
|
file?: {
|
|
767
|
-
mimeType: string;
|
|
768
899
|
name: string;
|
|
900
|
+
mimeType: string;
|
|
769
901
|
id: string;
|
|
770
902
|
size?: string | undefined;
|
|
771
903
|
createdTime?: string | undefined;
|
|
@@ -780,12 +912,12 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
780
912
|
}[] | undefined;
|
|
781
913
|
} | undefined;
|
|
782
914
|
}, {
|
|
783
|
-
error: string;
|
|
784
915
|
success: boolean;
|
|
916
|
+
error: string;
|
|
785
917
|
operation: "upload_file";
|
|
786
918
|
file?: {
|
|
787
|
-
mimeType: string;
|
|
788
919
|
name: string;
|
|
920
|
+
mimeType: string;
|
|
789
921
|
id: string;
|
|
790
922
|
size?: string | undefined;
|
|
791
923
|
createdTime?: string | undefined;
|
|
@@ -807,18 +939,18 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
807
939
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
808
940
|
error: z.ZodString;
|
|
809
941
|
}, "strip", z.ZodTypeAny, {
|
|
810
|
-
error: string;
|
|
811
942
|
success: boolean;
|
|
943
|
+
error: string;
|
|
812
944
|
operation: "download_file";
|
|
813
|
-
mimeType?: string | undefined;
|
|
814
945
|
content?: string | undefined;
|
|
946
|
+
mimeType?: string | undefined;
|
|
815
947
|
filename?: string | undefined;
|
|
816
948
|
}, {
|
|
817
|
-
error: string;
|
|
818
949
|
success: boolean;
|
|
950
|
+
error: string;
|
|
819
951
|
operation: "download_file";
|
|
820
|
-
mimeType?: string | undefined;
|
|
821
952
|
content?: string | undefined;
|
|
953
|
+
mimeType?: string | undefined;
|
|
822
954
|
filename?: string | undefined;
|
|
823
955
|
}>, z.ZodObject<{
|
|
824
956
|
operation: z.ZodLiteral<"list_files">;
|
|
@@ -845,8 +977,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
845
977
|
emailAddress?: string | undefined;
|
|
846
978
|
}>, "many">>;
|
|
847
979
|
}, "strip", z.ZodTypeAny, {
|
|
848
|
-
mimeType: string;
|
|
849
980
|
name: string;
|
|
981
|
+
mimeType: string;
|
|
850
982
|
id: string;
|
|
851
983
|
size?: string | undefined;
|
|
852
984
|
createdTime?: string | undefined;
|
|
@@ -860,8 +992,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
860
992
|
emailAddress?: string | undefined;
|
|
861
993
|
}[] | undefined;
|
|
862
994
|
}, {
|
|
863
|
-
mimeType: string;
|
|
864
995
|
name: string;
|
|
996
|
+
mimeType: string;
|
|
865
997
|
id: string;
|
|
866
998
|
size?: string | undefined;
|
|
867
999
|
createdTime?: string | undefined;
|
|
@@ -879,13 +1011,12 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
879
1011
|
next_page_token: z.ZodOptional<z.ZodString>;
|
|
880
1012
|
error: z.ZodString;
|
|
881
1013
|
}, "strip", z.ZodTypeAny, {
|
|
882
|
-
error: string;
|
|
883
1014
|
success: boolean;
|
|
1015
|
+
error: string;
|
|
884
1016
|
operation: "list_files";
|
|
885
|
-
total_count?: number | undefined;
|
|
886
1017
|
files?: {
|
|
887
|
-
mimeType: string;
|
|
888
1018
|
name: string;
|
|
1019
|
+
mimeType: string;
|
|
889
1020
|
id: string;
|
|
890
1021
|
size?: string | undefined;
|
|
891
1022
|
createdTime?: string | undefined;
|
|
@@ -899,15 +1030,15 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
899
1030
|
emailAddress?: string | undefined;
|
|
900
1031
|
}[] | undefined;
|
|
901
1032
|
}[] | undefined;
|
|
1033
|
+
total_count?: number | undefined;
|
|
902
1034
|
next_page_token?: string | undefined;
|
|
903
1035
|
}, {
|
|
904
|
-
error: string;
|
|
905
1036
|
success: boolean;
|
|
1037
|
+
error: string;
|
|
906
1038
|
operation: "list_files";
|
|
907
|
-
total_count?: number | undefined;
|
|
908
1039
|
files?: {
|
|
909
|
-
mimeType: string;
|
|
910
1040
|
name: string;
|
|
1041
|
+
mimeType: string;
|
|
911
1042
|
id: string;
|
|
912
1043
|
size?: string | undefined;
|
|
913
1044
|
createdTime?: string | undefined;
|
|
@@ -921,6 +1052,7 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
921
1052
|
emailAddress?: string | undefined;
|
|
922
1053
|
}[] | undefined;
|
|
923
1054
|
}[] | undefined;
|
|
1055
|
+
total_count?: number | undefined;
|
|
924
1056
|
next_page_token?: string | undefined;
|
|
925
1057
|
}>, z.ZodObject<{
|
|
926
1058
|
operation: z.ZodLiteral<"create_folder">;
|
|
@@ -943,8 +1075,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
943
1075
|
}>>;
|
|
944
1076
|
error: z.ZodString;
|
|
945
1077
|
}, "strip", z.ZodTypeAny, {
|
|
946
|
-
error: string;
|
|
947
1078
|
success: boolean;
|
|
1079
|
+
error: string;
|
|
948
1080
|
operation: "create_folder";
|
|
949
1081
|
folder?: {
|
|
950
1082
|
name: string;
|
|
@@ -953,8 +1085,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
953
1085
|
parents?: string[] | undefined;
|
|
954
1086
|
} | undefined;
|
|
955
1087
|
}, {
|
|
956
|
-
error: string;
|
|
957
1088
|
success: boolean;
|
|
1089
|
+
error: string;
|
|
958
1090
|
operation: "create_folder";
|
|
959
1091
|
folder?: {
|
|
960
1092
|
name: string;
|
|
@@ -968,13 +1100,13 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
968
1100
|
deleted_file_id: z.ZodOptional<z.ZodString>;
|
|
969
1101
|
error: z.ZodString;
|
|
970
1102
|
}, "strip", z.ZodTypeAny, {
|
|
971
|
-
error: string;
|
|
972
1103
|
success: boolean;
|
|
1104
|
+
error: string;
|
|
973
1105
|
operation: "delete_file";
|
|
974
1106
|
deleted_file_id?: string | undefined;
|
|
975
1107
|
}, {
|
|
976
|
-
error: string;
|
|
977
1108
|
success: boolean;
|
|
1109
|
+
error: string;
|
|
978
1110
|
operation: "delete_file";
|
|
979
1111
|
deleted_file_id?: string | undefined;
|
|
980
1112
|
}>, z.ZodObject<{
|
|
@@ -1002,8 +1134,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1002
1134
|
emailAddress?: string | undefined;
|
|
1003
1135
|
}>, "many">>;
|
|
1004
1136
|
}, "strip", z.ZodTypeAny, {
|
|
1005
|
-
mimeType: string;
|
|
1006
1137
|
name: string;
|
|
1138
|
+
mimeType: string;
|
|
1007
1139
|
id: string;
|
|
1008
1140
|
size?: string | undefined;
|
|
1009
1141
|
createdTime?: string | undefined;
|
|
@@ -1017,8 +1149,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1017
1149
|
emailAddress?: string | undefined;
|
|
1018
1150
|
}[] | undefined;
|
|
1019
1151
|
}, {
|
|
1020
|
-
mimeType: string;
|
|
1021
1152
|
name: string;
|
|
1153
|
+
mimeType: string;
|
|
1022
1154
|
id: string;
|
|
1023
1155
|
size?: string | undefined;
|
|
1024
1156
|
createdTime?: string | undefined;
|
|
@@ -1053,12 +1185,12 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1053
1185
|
}>, "many">>;
|
|
1054
1186
|
error: z.ZodString;
|
|
1055
1187
|
}, "strip", z.ZodTypeAny, {
|
|
1056
|
-
error: string;
|
|
1057
1188
|
success: boolean;
|
|
1189
|
+
error: string;
|
|
1058
1190
|
operation: "get_file_info";
|
|
1059
1191
|
file?: {
|
|
1060
|
-
mimeType: string;
|
|
1061
1192
|
name: string;
|
|
1193
|
+
mimeType: string;
|
|
1062
1194
|
id: string;
|
|
1063
1195
|
size?: string | undefined;
|
|
1064
1196
|
createdTime?: string | undefined;
|
|
@@ -1080,12 +1212,12 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1080
1212
|
emailAddress?: string | undefined;
|
|
1081
1213
|
}[] | undefined;
|
|
1082
1214
|
}, {
|
|
1083
|
-
error: string;
|
|
1084
1215
|
success: boolean;
|
|
1216
|
+
error: string;
|
|
1085
1217
|
operation: "get_file_info";
|
|
1086
1218
|
file?: {
|
|
1087
|
-
mimeType: string;
|
|
1088
1219
|
name: string;
|
|
1220
|
+
mimeType: string;
|
|
1089
1221
|
id: string;
|
|
1090
1222
|
size?: string | undefined;
|
|
1091
1223
|
createdTime?: string | undefined;
|
|
@@ -1113,17 +1245,113 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1113
1245
|
share_link: z.ZodOptional<z.ZodString>;
|
|
1114
1246
|
error: z.ZodString;
|
|
1115
1247
|
}, "strip", z.ZodTypeAny, {
|
|
1116
|
-
error: string;
|
|
1117
1248
|
success: boolean;
|
|
1249
|
+
error: string;
|
|
1118
1250
|
operation: "share_file";
|
|
1119
1251
|
permission_id?: string | undefined;
|
|
1120
1252
|
share_link?: string | undefined;
|
|
1121
1253
|
}, {
|
|
1122
|
-
error: string;
|
|
1123
1254
|
success: boolean;
|
|
1255
|
+
error: string;
|
|
1124
1256
|
operation: "share_file";
|
|
1125
1257
|
permission_id?: string | undefined;
|
|
1126
1258
|
share_link?: string | undefined;
|
|
1259
|
+
}>, z.ZodObject<{
|
|
1260
|
+
operation: z.ZodLiteral<"move_file">;
|
|
1261
|
+
success: z.ZodBoolean;
|
|
1262
|
+
file: z.ZodOptional<z.ZodObject<{
|
|
1263
|
+
id: z.ZodString;
|
|
1264
|
+
name: z.ZodString;
|
|
1265
|
+
mimeType: z.ZodString;
|
|
1266
|
+
size: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
createdTime: z.ZodOptional<z.ZodString>;
|
|
1268
|
+
modifiedTime: z.ZodOptional<z.ZodString>;
|
|
1269
|
+
webViewLink: z.ZodOptional<z.ZodString>;
|
|
1270
|
+
webContentLink: z.ZodOptional<z.ZodString>;
|
|
1271
|
+
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1272
|
+
shared: z.ZodOptional<z.ZodBoolean>;
|
|
1273
|
+
owners: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1274
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1275
|
+
emailAddress: z.ZodOptional<z.ZodString>;
|
|
1276
|
+
}, "strip", z.ZodTypeAny, {
|
|
1277
|
+
displayName?: string | undefined;
|
|
1278
|
+
emailAddress?: string | undefined;
|
|
1279
|
+
}, {
|
|
1280
|
+
displayName?: string | undefined;
|
|
1281
|
+
emailAddress?: string | undefined;
|
|
1282
|
+
}>, "many">>;
|
|
1283
|
+
}, "strip", z.ZodTypeAny, {
|
|
1284
|
+
name: string;
|
|
1285
|
+
mimeType: string;
|
|
1286
|
+
id: string;
|
|
1287
|
+
size?: string | undefined;
|
|
1288
|
+
createdTime?: string | undefined;
|
|
1289
|
+
modifiedTime?: string | undefined;
|
|
1290
|
+
webViewLink?: string | undefined;
|
|
1291
|
+
webContentLink?: string | undefined;
|
|
1292
|
+
parents?: string[] | undefined;
|
|
1293
|
+
shared?: boolean | undefined;
|
|
1294
|
+
owners?: {
|
|
1295
|
+
displayName?: string | undefined;
|
|
1296
|
+
emailAddress?: string | undefined;
|
|
1297
|
+
}[] | undefined;
|
|
1298
|
+
}, {
|
|
1299
|
+
name: string;
|
|
1300
|
+
mimeType: string;
|
|
1301
|
+
id: string;
|
|
1302
|
+
size?: string | undefined;
|
|
1303
|
+
createdTime?: string | undefined;
|
|
1304
|
+
modifiedTime?: string | undefined;
|
|
1305
|
+
webViewLink?: string | undefined;
|
|
1306
|
+
webContentLink?: string | undefined;
|
|
1307
|
+
parents?: string[] | undefined;
|
|
1308
|
+
shared?: boolean | undefined;
|
|
1309
|
+
owners?: {
|
|
1310
|
+
displayName?: string | undefined;
|
|
1311
|
+
emailAddress?: string | undefined;
|
|
1312
|
+
}[] | undefined;
|
|
1313
|
+
}>>;
|
|
1314
|
+
error: z.ZodString;
|
|
1315
|
+
}, "strip", z.ZodTypeAny, {
|
|
1316
|
+
success: boolean;
|
|
1317
|
+
error: string;
|
|
1318
|
+
operation: "move_file";
|
|
1319
|
+
file?: {
|
|
1320
|
+
name: string;
|
|
1321
|
+
mimeType: string;
|
|
1322
|
+
id: string;
|
|
1323
|
+
size?: string | undefined;
|
|
1324
|
+
createdTime?: string | undefined;
|
|
1325
|
+
modifiedTime?: string | undefined;
|
|
1326
|
+
webViewLink?: string | undefined;
|
|
1327
|
+
webContentLink?: string | undefined;
|
|
1328
|
+
parents?: string[] | undefined;
|
|
1329
|
+
shared?: boolean | undefined;
|
|
1330
|
+
owners?: {
|
|
1331
|
+
displayName?: string | undefined;
|
|
1332
|
+
emailAddress?: string | undefined;
|
|
1333
|
+
}[] | undefined;
|
|
1334
|
+
} | undefined;
|
|
1335
|
+
}, {
|
|
1336
|
+
success: boolean;
|
|
1337
|
+
error: string;
|
|
1338
|
+
operation: "move_file";
|
|
1339
|
+
file?: {
|
|
1340
|
+
name: string;
|
|
1341
|
+
mimeType: string;
|
|
1342
|
+
id: string;
|
|
1343
|
+
size?: string | undefined;
|
|
1344
|
+
createdTime?: string | undefined;
|
|
1345
|
+
modifiedTime?: string | undefined;
|
|
1346
|
+
webViewLink?: string | undefined;
|
|
1347
|
+
webContentLink?: string | undefined;
|
|
1348
|
+
parents?: string[] | undefined;
|
|
1349
|
+
shared?: boolean | undefined;
|
|
1350
|
+
owners?: {
|
|
1351
|
+
displayName?: string | undefined;
|
|
1352
|
+
emailAddress?: string | undefined;
|
|
1353
|
+
}[] | undefined;
|
|
1354
|
+
} | undefined;
|
|
1127
1355
|
}>]>;
|
|
1128
1356
|
static readonly shortDescription = "Google Drive integration for file management";
|
|
1129
1357
|
static readonly longDescription = "\n Google Drive service integration for comprehensive file and folder management.\n Use cases:\n - Upload files and documents to Google Drive\n - Download files with format conversion support\n - List and search files with advanced filtering\n - Create and organize folders\n - Share files and manage permissions\n - Get detailed file metadata and information\n \n Security Features:\n - OAuth 2.0 authentication with Google\n - Scoped access permissions\n - Secure file handling and validation\n - User-controlled sharing and permissions\n ";
|
|
@@ -1141,6 +1369,7 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
|
|
|
1141
1369
|
private deleteFile;
|
|
1142
1370
|
private getFileInfo;
|
|
1143
1371
|
private shareFile;
|
|
1372
|
+
private moveFile;
|
|
1144
1373
|
private isBase64;
|
|
1145
1374
|
private extractBase64Content;
|
|
1146
1375
|
private findAndExtractBase64;
|