@bubblelab/bubble-core 0.1.20 → 0.1.21

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.
@@ -11,21 +11,21 @@ declare const GoogleDriveParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
11
11
  convert_to_google_docs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12
12
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
13
13
  }, "strip", z.ZodTypeAny, {
14
+ operation: "upload_file";
14
15
  name: string;
15
16
  content: string;
16
- operation: "upload_file";
17
17
  convert_to_google_docs: boolean;
18
- credentials?: Partial<Record<CredentialType, string>> | undefined;
19
18
  mimeType?: string | undefined;
20
19
  parent_folder_id?: string | undefined;
20
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
21
21
  }, {
22
+ operation: "upload_file";
22
23
  name: string;
23
24
  content: string;
24
- operation: "upload_file";
25
- credentials?: Partial<Record<CredentialType, string>> | undefined;
26
25
  mimeType?: string | undefined;
27
26
  parent_folder_id?: string | undefined;
28
27
  convert_to_google_docs?: boolean | undefined;
28
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
29
29
  }>, z.ZodObject<{
30
30
  operation: z.ZodLiteral<"download_file">;
31
31
  file_id: z.ZodString;
@@ -55,13 +55,13 @@ declare const GoogleDriveParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
55
55
  include_folders: boolean;
56
56
  order_by: string;
57
57
  credentials?: Partial<Record<CredentialType, string>> | undefined;
58
- query?: string | undefined;
59
58
  folder_id?: string | undefined;
59
+ query?: string | undefined;
60
60
  }, {
61
61
  operation: "list_files";
62
62
  credentials?: Partial<Record<CredentialType, string>> | undefined;
63
- query?: string | undefined;
64
63
  folder_id?: string | undefined;
64
+ query?: string | undefined;
65
65
  max_results?: number | undefined;
66
66
  include_folders?: boolean | undefined;
67
67
  order_by?: string | undefined;
@@ -71,15 +71,15 @@ declare const GoogleDriveParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
71
71
  parent_folder_id: z.ZodOptional<z.ZodString>;
72
72
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
73
73
  }, "strip", z.ZodTypeAny, {
74
- name: string;
75
74
  operation: "create_folder";
76
- credentials?: Partial<Record<CredentialType, string>> | undefined;
75
+ name: string;
77
76
  parent_folder_id?: string | undefined;
77
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
78
78
  }, {
79
- name: string;
80
79
  operation: "create_folder";
81
- credentials?: Partial<Record<CredentialType, string>> | undefined;
80
+ name: string;
82
81
  parent_folder_id?: string | undefined;
82
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
83
83
  }>, z.ZodObject<{
84
84
  operation: z.ZodLiteral<"delete_file">;
85
85
  file_id: z.ZodString;
@@ -119,8 +119,8 @@ 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: "user" | "group" | "domain" | "anyone";
123
122
  operation: "share_file";
123
+ type: "user" | "group" | "domain" | "anyone";
124
124
  file_id: string;
125
125
  role: "reader" | "writer" | "commenter" | "owner";
126
126
  send_notification: boolean;
@@ -164,6 +164,24 @@ declare const GoogleDriveParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
164
164
  operation: "get_doc";
165
165
  document_id: string;
166
166
  credentials?: Partial<Record<CredentialType, string>> | undefined;
167
+ }>, z.ZodObject<{
168
+ operation: z.ZodLiteral<"update_doc">;
169
+ document_id: z.ZodString;
170
+ content: z.ZodString;
171
+ mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["replace", "append"]>>>;
172
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ operation: "update_doc";
175
+ content: string;
176
+ document_id: string;
177
+ mode: "replace" | "append";
178
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
179
+ }, {
180
+ operation: "update_doc";
181
+ content: string;
182
+ document_id: string;
183
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
184
+ mode?: "replace" | "append" | undefined;
167
185
  }>]>;
168
186
  declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
169
187
  operation: z.ZodLiteral<"upload_file">;
@@ -222,9 +240,9 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
222
240
  }>>;
223
241
  error: z.ZodString;
224
242
  }, "strip", z.ZodTypeAny, {
243
+ operation: "upload_file";
225
244
  success: boolean;
226
245
  error: string;
227
- operation: "upload_file";
228
246
  file?: {
229
247
  name: string;
230
248
  mimeType: string;
@@ -242,9 +260,9 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
242
260
  }[] | undefined;
243
261
  } | undefined;
244
262
  }, {
263
+ operation: "upload_file";
245
264
  success: boolean;
246
265
  error: string;
247
- operation: "upload_file";
248
266
  file?: {
249
267
  name: string;
250
268
  mimeType: string;
@@ -269,16 +287,16 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
269
287
  mimeType: z.ZodOptional<z.ZodString>;
270
288
  error: z.ZodString;
271
289
  }, "strip", z.ZodTypeAny, {
290
+ operation: "download_file";
272
291
  success: boolean;
273
292
  error: string;
274
- operation: "download_file";
275
293
  content?: string | undefined;
276
294
  mimeType?: string | undefined;
277
295
  filename?: string | undefined;
278
296
  }, {
297
+ operation: "download_file";
279
298
  success: boolean;
280
299
  error: string;
281
- operation: "download_file";
282
300
  content?: string | undefined;
283
301
  mimeType?: string | undefined;
284
302
  filename?: string | undefined;
@@ -341,9 +359,9 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
341
359
  next_page_token: z.ZodOptional<z.ZodString>;
342
360
  error: z.ZodString;
343
361
  }, "strip", z.ZodTypeAny, {
362
+ operation: "list_files";
344
363
  success: boolean;
345
364
  error: string;
346
- operation: "list_files";
347
365
  files?: {
348
366
  name: string;
349
367
  mimeType: string;
@@ -363,9 +381,9 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
363
381
  total_count?: number | undefined;
364
382
  next_page_token?: string | undefined;
365
383
  }, {
384
+ operation: "list_files";
366
385
  success: boolean;
367
386
  error: string;
368
- operation: "list_files";
369
387
  files?: {
370
388
  name: string;
371
389
  mimeType: string;
@@ -405,9 +423,9 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
405
423
  }>>;
406
424
  error: z.ZodString;
407
425
  }, "strip", z.ZodTypeAny, {
426
+ operation: "create_folder";
408
427
  success: boolean;
409
428
  error: string;
410
- operation: "create_folder";
411
429
  folder?: {
412
430
  name: string;
413
431
  id: string;
@@ -415,9 +433,9 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
415
433
  parents?: string[] | undefined;
416
434
  } | undefined;
417
435
  }, {
436
+ operation: "create_folder";
418
437
  success: boolean;
419
438
  error: string;
420
- operation: "create_folder";
421
439
  folder?: {
422
440
  name: string;
423
441
  id: string;
@@ -430,14 +448,14 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
430
448
  deleted_file_id: z.ZodOptional<z.ZodString>;
431
449
  error: z.ZodString;
432
450
  }, "strip", z.ZodTypeAny, {
451
+ operation: "delete_file";
433
452
  success: boolean;
434
453
  error: string;
435
- operation: "delete_file";
436
454
  deleted_file_id?: string | undefined;
437
455
  }, {
456
+ operation: "delete_file";
438
457
  success: boolean;
439
458
  error: string;
440
- operation: "delete_file";
441
459
  deleted_file_id?: string | undefined;
442
460
  }>, z.ZodObject<{
443
461
  operation: z.ZodLiteral<"get_file_info">;
@@ -502,22 +520,22 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
502
520
  displayName: z.ZodOptional<z.ZodString>;
503
521
  }, "strip", z.ZodTypeAny, {
504
522
  type: string;
505
- id: string;
506
523
  role: string;
524
+ id: string;
507
525
  displayName?: string | undefined;
508
526
  emailAddress?: string | undefined;
509
527
  }, {
510
528
  type: string;
511
- id: string;
512
529
  role: string;
530
+ id: string;
513
531
  displayName?: string | undefined;
514
532
  emailAddress?: string | undefined;
515
533
  }>, "many">>;
516
534
  error: z.ZodString;
517
535
  }, "strip", z.ZodTypeAny, {
536
+ operation: "get_file_info";
518
537
  success: boolean;
519
538
  error: string;
520
- operation: "get_file_info";
521
539
  file?: {
522
540
  name: string;
523
541
  mimeType: string;
@@ -536,15 +554,15 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
536
554
  } | undefined;
537
555
  permissions?: {
538
556
  type: string;
539
- id: string;
540
557
  role: string;
558
+ id: string;
541
559
  displayName?: string | undefined;
542
560
  emailAddress?: string | undefined;
543
561
  }[] | undefined;
544
562
  }, {
563
+ operation: "get_file_info";
545
564
  success: boolean;
546
565
  error: string;
547
- operation: "get_file_info";
548
566
  file?: {
549
567
  name: string;
550
568
  mimeType: string;
@@ -563,8 +581,8 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
563
581
  } | undefined;
564
582
  permissions?: {
565
583
  type: string;
566
- id: string;
567
584
  role: string;
585
+ id: string;
568
586
  displayName?: string | undefined;
569
587
  emailAddress?: string | undefined;
570
588
  }[] | undefined;
@@ -575,15 +593,15 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
575
593
  share_link: z.ZodOptional<z.ZodString>;
576
594
  error: z.ZodString;
577
595
  }, "strip", z.ZodTypeAny, {
596
+ operation: "share_file";
578
597
  success: boolean;
579
598
  error: string;
580
- operation: "share_file";
581
599
  permission_id?: string | undefined;
582
600
  share_link?: string | undefined;
583
601
  }, {
602
+ operation: "share_file";
584
603
  success: boolean;
585
604
  error: string;
586
- operation: "share_file";
587
605
  permission_id?: string | undefined;
588
606
  share_link?: string | undefined;
589
607
  }>, z.ZodObject<{
@@ -643,9 +661,9 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
643
661
  }>>;
644
662
  error: z.ZodString;
645
663
  }, "strip", z.ZodTypeAny, {
664
+ operation: "move_file";
646
665
  success: boolean;
647
666
  error: string;
648
- operation: "move_file";
649
667
  file?: {
650
668
  name: string;
651
669
  mimeType: string;
@@ -663,9 +681,9 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
663
681
  }[] | undefined;
664
682
  } | undefined;
665
683
  }, {
684
+ operation: "move_file";
666
685
  success: boolean;
667
686
  error: string;
668
- operation: "move_file";
669
687
  file?: {
670
688
  name: string;
671
689
  mimeType: string;
@@ -713,9 +731,9 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
713
731
  plainText: z.ZodOptional<z.ZodString>;
714
732
  error: z.ZodString;
715
733
  }, "strip", z.ZodTypeAny, {
734
+ operation: "get_doc";
716
735
  success: boolean;
717
736
  error: string;
718
- operation: "get_doc";
719
737
  document?: z.objectOutputType<{
720
738
  documentId: z.ZodString;
721
739
  title: z.ZodString;
@@ -727,9 +745,9 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
727
745
  }, z.ZodTypeAny, "passthrough"> | undefined;
728
746
  plainText?: string | undefined;
729
747
  }, {
748
+ operation: "get_doc";
730
749
  success: boolean;
731
750
  error: string;
732
- operation: "get_doc";
733
751
  document?: z.objectInputType<{
734
752
  documentId: z.ZodString;
735
753
  title: z.ZodString;
@@ -740,6 +758,24 @@ declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.Z
740
758
  lists: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
741
759
  }, z.ZodTypeAny, "passthrough"> | undefined;
742
760
  plainText?: string | undefined;
761
+ }>, z.ZodObject<{
762
+ operation: z.ZodLiteral<"update_doc">;
763
+ success: z.ZodBoolean;
764
+ documentId: z.ZodOptional<z.ZodString>;
765
+ revisionId: z.ZodOptional<z.ZodString>;
766
+ error: z.ZodString;
767
+ }, "strip", z.ZodTypeAny, {
768
+ operation: "update_doc";
769
+ success: boolean;
770
+ error: string;
771
+ documentId?: string | undefined;
772
+ revisionId?: string | undefined;
773
+ }, {
774
+ operation: "update_doc";
775
+ success: boolean;
776
+ error: string;
777
+ documentId?: string | undefined;
778
+ revisionId?: string | undefined;
743
779
  }>]>;
744
780
  type GoogleDriveResult = z.output<typeof GoogleDriveResultSchema>;
745
781
  type GoogleDriveParams = z.input<typeof GoogleDriveParamsSchema>;
@@ -763,21 +799,21 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
763
799
  convert_to_google_docs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
764
800
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
765
801
  }, "strip", z.ZodTypeAny, {
802
+ operation: "upload_file";
766
803
  name: string;
767
804
  content: string;
768
- operation: "upload_file";
769
805
  convert_to_google_docs: boolean;
770
- credentials?: Partial<Record<CredentialType, string>> | undefined;
771
806
  mimeType?: string | undefined;
772
807
  parent_folder_id?: string | undefined;
808
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
773
809
  }, {
810
+ operation: "upload_file";
774
811
  name: string;
775
812
  content: string;
776
- operation: "upload_file";
777
- credentials?: Partial<Record<CredentialType, string>> | undefined;
778
813
  mimeType?: string | undefined;
779
814
  parent_folder_id?: string | undefined;
780
815
  convert_to_google_docs?: boolean | undefined;
816
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
781
817
  }>, z.ZodObject<{
782
818
  operation: z.ZodLiteral<"download_file">;
783
819
  file_id: z.ZodString;
@@ -807,13 +843,13 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
807
843
  include_folders: boolean;
808
844
  order_by: string;
809
845
  credentials?: Partial<Record<CredentialType, string>> | undefined;
810
- query?: string | undefined;
811
846
  folder_id?: string | undefined;
847
+ query?: string | undefined;
812
848
  }, {
813
849
  operation: "list_files";
814
850
  credentials?: Partial<Record<CredentialType, string>> | undefined;
815
- query?: string | undefined;
816
851
  folder_id?: string | undefined;
852
+ query?: string | undefined;
817
853
  max_results?: number | undefined;
818
854
  include_folders?: boolean | undefined;
819
855
  order_by?: string | undefined;
@@ -823,15 +859,15 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
823
859
  parent_folder_id: z.ZodOptional<z.ZodString>;
824
860
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
825
861
  }, "strip", z.ZodTypeAny, {
826
- name: string;
827
862
  operation: "create_folder";
828
- credentials?: Partial<Record<CredentialType, string>> | undefined;
863
+ name: string;
829
864
  parent_folder_id?: string | undefined;
865
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
830
866
  }, {
831
- name: string;
832
867
  operation: "create_folder";
833
- credentials?: Partial<Record<CredentialType, string>> | undefined;
868
+ name: string;
834
869
  parent_folder_id?: string | undefined;
870
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
835
871
  }>, z.ZodObject<{
836
872
  operation: z.ZodLiteral<"delete_file">;
837
873
  file_id: z.ZodString;
@@ -871,8 +907,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
871
907
  send_notification: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
872
908
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
873
909
  }, "strip", z.ZodTypeAny, {
874
- type: "user" | "group" | "domain" | "anyone";
875
910
  operation: "share_file";
911
+ type: "user" | "group" | "domain" | "anyone";
876
912
  file_id: string;
877
913
  role: "reader" | "writer" | "commenter" | "owner";
878
914
  send_notification: boolean;
@@ -916,6 +952,24 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
916
952
  operation: "get_doc";
917
953
  document_id: string;
918
954
  credentials?: Partial<Record<CredentialType, string>> | undefined;
955
+ }>, z.ZodObject<{
956
+ operation: z.ZodLiteral<"update_doc">;
957
+ document_id: z.ZodString;
958
+ content: z.ZodString;
959
+ mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["replace", "append"]>>>;
960
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
961
+ }, "strip", z.ZodTypeAny, {
962
+ operation: "update_doc";
963
+ content: string;
964
+ document_id: string;
965
+ mode: "replace" | "append";
966
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
967
+ }, {
968
+ operation: "update_doc";
969
+ content: string;
970
+ document_id: string;
971
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
972
+ mode?: "replace" | "append" | undefined;
919
973
  }>]>;
920
974
  static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
921
975
  operation: z.ZodLiteral<"upload_file">;
@@ -974,9 +1028,9 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
974
1028
  }>>;
975
1029
  error: z.ZodString;
976
1030
  }, "strip", z.ZodTypeAny, {
1031
+ operation: "upload_file";
977
1032
  success: boolean;
978
1033
  error: string;
979
- operation: "upload_file";
980
1034
  file?: {
981
1035
  name: string;
982
1036
  mimeType: string;
@@ -994,9 +1048,9 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
994
1048
  }[] | undefined;
995
1049
  } | undefined;
996
1050
  }, {
1051
+ operation: "upload_file";
997
1052
  success: boolean;
998
1053
  error: string;
999
- operation: "upload_file";
1000
1054
  file?: {
1001
1055
  name: string;
1002
1056
  mimeType: string;
@@ -1021,16 +1075,16 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
1021
1075
  mimeType: z.ZodOptional<z.ZodString>;
1022
1076
  error: z.ZodString;
1023
1077
  }, "strip", z.ZodTypeAny, {
1078
+ operation: "download_file";
1024
1079
  success: boolean;
1025
1080
  error: string;
1026
- operation: "download_file";
1027
1081
  content?: string | undefined;
1028
1082
  mimeType?: string | undefined;
1029
1083
  filename?: string | undefined;
1030
1084
  }, {
1085
+ operation: "download_file";
1031
1086
  success: boolean;
1032
1087
  error: string;
1033
- operation: "download_file";
1034
1088
  content?: string | undefined;
1035
1089
  mimeType?: string | undefined;
1036
1090
  filename?: string | undefined;
@@ -1093,9 +1147,9 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
1093
1147
  next_page_token: z.ZodOptional<z.ZodString>;
1094
1148
  error: z.ZodString;
1095
1149
  }, "strip", z.ZodTypeAny, {
1150
+ operation: "list_files";
1096
1151
  success: boolean;
1097
1152
  error: string;
1098
- operation: "list_files";
1099
1153
  files?: {
1100
1154
  name: string;
1101
1155
  mimeType: string;
@@ -1115,9 +1169,9 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
1115
1169
  total_count?: number | undefined;
1116
1170
  next_page_token?: string | undefined;
1117
1171
  }, {
1172
+ operation: "list_files";
1118
1173
  success: boolean;
1119
1174
  error: string;
1120
- operation: "list_files";
1121
1175
  files?: {
1122
1176
  name: string;
1123
1177
  mimeType: string;
@@ -1157,9 +1211,9 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
1157
1211
  }>>;
1158
1212
  error: z.ZodString;
1159
1213
  }, "strip", z.ZodTypeAny, {
1214
+ operation: "create_folder";
1160
1215
  success: boolean;
1161
1216
  error: string;
1162
- operation: "create_folder";
1163
1217
  folder?: {
1164
1218
  name: string;
1165
1219
  id: string;
@@ -1167,9 +1221,9 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
1167
1221
  parents?: string[] | undefined;
1168
1222
  } | undefined;
1169
1223
  }, {
1224
+ operation: "create_folder";
1170
1225
  success: boolean;
1171
1226
  error: string;
1172
- operation: "create_folder";
1173
1227
  folder?: {
1174
1228
  name: string;
1175
1229
  id: string;
@@ -1182,14 +1236,14 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
1182
1236
  deleted_file_id: z.ZodOptional<z.ZodString>;
1183
1237
  error: z.ZodString;
1184
1238
  }, "strip", z.ZodTypeAny, {
1239
+ operation: "delete_file";
1185
1240
  success: boolean;
1186
1241
  error: string;
1187
- operation: "delete_file";
1188
1242
  deleted_file_id?: string | undefined;
1189
1243
  }, {
1244
+ operation: "delete_file";
1190
1245
  success: boolean;
1191
1246
  error: string;
1192
- operation: "delete_file";
1193
1247
  deleted_file_id?: string | undefined;
1194
1248
  }>, z.ZodObject<{
1195
1249
  operation: z.ZodLiteral<"get_file_info">;
@@ -1254,22 +1308,22 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
1254
1308
  displayName: z.ZodOptional<z.ZodString>;
1255
1309
  }, "strip", z.ZodTypeAny, {
1256
1310
  type: string;
1257
- id: string;
1258
1311
  role: string;
1312
+ id: string;
1259
1313
  displayName?: string | undefined;
1260
1314
  emailAddress?: string | undefined;
1261
1315
  }, {
1262
1316
  type: string;
1263
- id: string;
1264
1317
  role: string;
1318
+ id: string;
1265
1319
  displayName?: string | undefined;
1266
1320
  emailAddress?: string | undefined;
1267
1321
  }>, "many">>;
1268
1322
  error: z.ZodString;
1269
1323
  }, "strip", z.ZodTypeAny, {
1324
+ operation: "get_file_info";
1270
1325
  success: boolean;
1271
1326
  error: string;
1272
- operation: "get_file_info";
1273
1327
  file?: {
1274
1328
  name: string;
1275
1329
  mimeType: string;
@@ -1288,15 +1342,15 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
1288
1342
  } | undefined;
1289
1343
  permissions?: {
1290
1344
  type: string;
1291
- id: string;
1292
1345
  role: string;
1346
+ id: string;
1293
1347
  displayName?: string | undefined;
1294
1348
  emailAddress?: string | undefined;
1295
1349
  }[] | undefined;
1296
1350
  }, {
1351
+ operation: "get_file_info";
1297
1352
  success: boolean;
1298
1353
  error: string;
1299
- operation: "get_file_info";
1300
1354
  file?: {
1301
1355
  name: string;
1302
1356
  mimeType: string;
@@ -1315,8 +1369,8 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
1315
1369
  } | undefined;
1316
1370
  permissions?: {
1317
1371
  type: string;
1318
- id: string;
1319
1372
  role: string;
1373
+ id: string;
1320
1374
  displayName?: string | undefined;
1321
1375
  emailAddress?: string | undefined;
1322
1376
  }[] | undefined;
@@ -1327,15 +1381,15 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
1327
1381
  share_link: z.ZodOptional<z.ZodString>;
1328
1382
  error: z.ZodString;
1329
1383
  }, "strip", z.ZodTypeAny, {
1384
+ operation: "share_file";
1330
1385
  success: boolean;
1331
1386
  error: string;
1332
- operation: "share_file";
1333
1387
  permission_id?: string | undefined;
1334
1388
  share_link?: string | undefined;
1335
1389
  }, {
1390
+ operation: "share_file";
1336
1391
  success: boolean;
1337
1392
  error: string;
1338
- operation: "share_file";
1339
1393
  permission_id?: string | undefined;
1340
1394
  share_link?: string | undefined;
1341
1395
  }>, z.ZodObject<{
@@ -1395,9 +1449,9 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
1395
1449
  }>>;
1396
1450
  error: z.ZodString;
1397
1451
  }, "strip", z.ZodTypeAny, {
1452
+ operation: "move_file";
1398
1453
  success: boolean;
1399
1454
  error: string;
1400
- operation: "move_file";
1401
1455
  file?: {
1402
1456
  name: string;
1403
1457
  mimeType: string;
@@ -1415,9 +1469,9 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
1415
1469
  }[] | undefined;
1416
1470
  } | undefined;
1417
1471
  }, {
1472
+ operation: "move_file";
1418
1473
  success: boolean;
1419
1474
  error: string;
1420
- operation: "move_file";
1421
1475
  file?: {
1422
1476
  name: string;
1423
1477
  mimeType: string;
@@ -1465,9 +1519,9 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
1465
1519
  plainText: z.ZodOptional<z.ZodString>;
1466
1520
  error: z.ZodString;
1467
1521
  }, "strip", z.ZodTypeAny, {
1522
+ operation: "get_doc";
1468
1523
  success: boolean;
1469
1524
  error: string;
1470
- operation: "get_doc";
1471
1525
  document?: z.objectOutputType<{
1472
1526
  documentId: z.ZodString;
1473
1527
  title: z.ZodString;
@@ -1479,9 +1533,9 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
1479
1533
  }, z.ZodTypeAny, "passthrough"> | undefined;
1480
1534
  plainText?: string | undefined;
1481
1535
  }, {
1536
+ operation: "get_doc";
1482
1537
  success: boolean;
1483
1538
  error: string;
1484
- operation: "get_doc";
1485
1539
  document?: z.objectInputType<{
1486
1540
  documentId: z.ZodString;
1487
1541
  title: z.ZodString;
@@ -1492,6 +1546,24 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
1492
1546
  lists: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1493
1547
  }, z.ZodTypeAny, "passthrough"> | undefined;
1494
1548
  plainText?: string | undefined;
1549
+ }>, z.ZodObject<{
1550
+ operation: z.ZodLiteral<"update_doc">;
1551
+ success: z.ZodBoolean;
1552
+ documentId: z.ZodOptional<z.ZodString>;
1553
+ revisionId: z.ZodOptional<z.ZodString>;
1554
+ error: z.ZodString;
1555
+ }, "strip", z.ZodTypeAny, {
1556
+ operation: "update_doc";
1557
+ success: boolean;
1558
+ error: string;
1559
+ documentId?: string | undefined;
1560
+ revisionId?: string | undefined;
1561
+ }, {
1562
+ operation: "update_doc";
1563
+ success: boolean;
1564
+ error: string;
1565
+ documentId?: string | undefined;
1566
+ revisionId?: string | undefined;
1495
1567
  }>]>;
1496
1568
  static readonly shortDescription = "Google Drive integration for file management";
1497
1569
  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 ";
@@ -1512,6 +1584,7 @@ export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDrive
1512
1584
  private shareFile;
1513
1585
  private moveFile;
1514
1586
  private getDoc;
1587
+ private updateDoc;
1515
1588
  /**
1516
1589
  * Extracts plain text content from a Google Docs document body
1517
1590
  */
@@ -1 +1 @@
1
- {"version":3,"file":"google-drive.d.ts","sourceRoot":"","sources":["../../../src/bubbles/service-bubble/google-drive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AA+E3D,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwP3B,CAAC;AAGH,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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