@valbuild/shared 0.72.4 → 0.73.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -295,13 +295,6 @@ export declare const Api: {
295
295
  };
296
296
  }>;
297
297
  }, "strip", z.ZodTypeAny, {
298
- val_enable: {
299
- value: "true";
300
- options: {
301
- httpOnly: false;
302
- sameSite: "lax";
303
- };
304
- };
305
298
  val_state: {
306
299
  value: string;
307
300
  options: {
@@ -310,7 +303,6 @@ export declare const Api: {
310
303
  expires: Date;
311
304
  };
312
305
  };
313
- }, {
314
306
  val_enable: {
315
307
  value: "true";
316
308
  options: {
@@ -318,6 +310,7 @@ export declare const Api: {
318
310
  sameSite: "lax";
319
311
  };
320
312
  };
313
+ }, {
321
314
  val_state: {
322
315
  value: string;
323
316
  options: {
@@ -326,11 +319,6 @@ export declare const Api: {
326
319
  expires: Date;
327
320
  };
328
321
  };
329
- }>;
330
- }, "strip", z.ZodTypeAny, {
331
- status: 302;
332
- redirectTo: string;
333
- cookies: {
334
322
  val_enable: {
335
323
  value: "true";
336
324
  options: {
@@ -338,6 +326,11 @@ export declare const Api: {
338
326
  sameSite: "lax";
339
327
  };
340
328
  };
329
+ }>;
330
+ }, "strip", z.ZodTypeAny, {
331
+ status: 302;
332
+ redirectTo: string;
333
+ cookies: {
341
334
  val_state: {
342
335
  value: string;
343
336
  options: {
@@ -346,11 +339,6 @@ export declare const Api: {
346
339
  expires: Date;
347
340
  };
348
341
  };
349
- };
350
- }, {
351
- status: 302;
352
- redirectTo: string;
353
- cookies: {
354
342
  val_enable: {
355
343
  value: "true";
356
344
  options: {
@@ -358,6 +346,11 @@ export declare const Api: {
358
346
  sameSite: "lax";
359
347
  };
360
348
  };
349
+ };
350
+ }, {
351
+ status: 302;
352
+ redirectTo: string;
353
+ cookies: {
361
354
  val_state: {
362
355
  value: string;
363
356
  options: {
@@ -366,6 +359,13 @@ export declare const Api: {
366
359
  expires: Date;
367
360
  };
368
361
  };
362
+ val_enable: {
363
+ value: "true";
364
+ options: {
365
+ httpOnly: false;
366
+ sameSite: "lax";
367
+ };
368
+ };
369
369
  };
370
370
  }>, z.ZodObject<{
371
371
  status: z.ZodLiteral<302>;
@@ -613,13 +613,6 @@ export declare const Api: {
613
613
  };
614
614
  }>;
615
615
  }, "strip", z.ZodTypeAny, {
616
- val_enable: {
617
- value: "true";
618
- options: {
619
- httpOnly: false;
620
- sameSite: "lax";
621
- };
622
- };
623
616
  val_state: {
624
617
  value: string;
625
618
  options: {
@@ -628,7 +621,6 @@ export declare const Api: {
628
621
  expires: Date;
629
622
  };
630
623
  };
631
- }, {
632
624
  val_enable: {
633
625
  value: "true";
634
626
  options: {
@@ -636,6 +628,7 @@ export declare const Api: {
636
628
  sameSite: "lax";
637
629
  };
638
630
  };
631
+ }, {
639
632
  val_state: {
640
633
  value: string;
641
634
  options: {
@@ -644,11 +637,6 @@ export declare const Api: {
644
637
  expires: Date;
645
638
  };
646
639
  };
647
- }>;
648
- }, "strip", z.ZodTypeAny, {
649
- status: 302;
650
- redirectTo: string;
651
- cookies: {
652
640
  val_enable: {
653
641
  value: "true";
654
642
  options: {
@@ -656,6 +644,11 @@ export declare const Api: {
656
644
  sameSite: "lax";
657
645
  };
658
646
  };
647
+ }>;
648
+ }, "strip", z.ZodTypeAny, {
649
+ status: 302;
650
+ redirectTo: string;
651
+ cookies: {
659
652
  val_state: {
660
653
  value: string;
661
654
  options: {
@@ -664,11 +657,6 @@ export declare const Api: {
664
657
  expires: Date;
665
658
  };
666
659
  };
667
- };
668
- }, {
669
- status: 302;
670
- redirectTo: string;
671
- cookies: {
672
660
  val_enable: {
673
661
  value: "true";
674
662
  options: {
@@ -676,6 +664,11 @@ export declare const Api: {
676
664
  sameSite: "lax";
677
665
  };
678
666
  };
667
+ };
668
+ }, {
669
+ status: 302;
670
+ redirectTo: string;
671
+ cookies: {
679
672
  val_state: {
680
673
  value: string;
681
674
  options: {
@@ -684,6 +677,13 @@ export declare const Api: {
684
677
  expires: Date;
685
678
  };
686
679
  };
680
+ val_enable: {
681
+ value: "true";
682
+ options: {
683
+ httpOnly: false;
684
+ sameSite: "lax";
685
+ };
686
+ };
687
687
  };
688
688
  }>, z.ZodObject<{
689
689
  status: z.ZodLiteral<400>;
@@ -798,13 +798,6 @@ export declare const Api: {
798
798
  val_state: {
799
799
  value: null;
800
800
  };
801
- val_enable?: {
802
- value: "true";
803
- options: {
804
- httpOnly: false;
805
- sameSite: "lax";
806
- };
807
- } | undefined;
808
801
  val_session?: {
809
802
  value: string;
810
803
  options?: {
@@ -815,10 +808,6 @@ export declare const Api: {
815
808
  secure: true;
816
809
  } | undefined;
817
810
  } | undefined;
818
- }, {
819
- val_state: {
820
- value: null;
821
- };
822
811
  val_enable?: {
823
812
  value: "true";
824
813
  options: {
@@ -826,6 +815,10 @@ export declare const Api: {
826
815
  sameSite: "lax";
827
816
  };
828
817
  } | undefined;
818
+ }, {
819
+ val_state: {
820
+ value: null;
821
+ };
829
822
  val_session?: {
830
823
  value: string;
831
824
  options?: {
@@ -836,6 +829,13 @@ export declare const Api: {
836
829
  secure: true;
837
830
  } | undefined;
838
831
  } | undefined;
832
+ val_enable?: {
833
+ value: "true";
834
+ options: {
835
+ httpOnly: false;
836
+ sameSite: "lax";
837
+ };
838
+ } | undefined;
839
839
  }>;
840
840
  }, "strip", z.ZodTypeAny, {
841
841
  status: 302;
@@ -844,13 +844,6 @@ export declare const Api: {
844
844
  val_state: {
845
845
  value: null;
846
846
  };
847
- val_enable?: {
848
- value: "true";
849
- options: {
850
- httpOnly: false;
851
- sameSite: "lax";
852
- };
853
- } | undefined;
854
847
  val_session?: {
855
848
  value: string;
856
849
  options?: {
@@ -861,6 +854,13 @@ export declare const Api: {
861
854
  secure: true;
862
855
  } | undefined;
863
856
  } | undefined;
857
+ val_enable?: {
858
+ value: "true";
859
+ options: {
860
+ httpOnly: false;
861
+ sameSite: "lax";
862
+ };
863
+ } | undefined;
864
864
  };
865
865
  }, {
866
866
  status: 302;
@@ -869,13 +869,6 @@ export declare const Api: {
869
869
  val_state: {
870
870
  value: null;
871
871
  };
872
- val_enable?: {
873
- value: "true";
874
- options: {
875
- httpOnly: false;
876
- sameSite: "lax";
877
- };
878
- } | undefined;
879
872
  val_session?: {
880
873
  value: string;
881
874
  options?: {
@@ -886,6 +879,13 @@ export declare const Api: {
886
879
  secure: true;
887
880
  } | undefined;
888
881
  } | undefined;
882
+ val_enable?: {
883
+ value: "true";
884
+ options: {
885
+ httpOnly: false;
886
+ sameSite: "lax";
887
+ };
888
+ } | undefined;
889
889
  };
890
890
  }>;
891
891
  };
@@ -1063,43 +1063,163 @@ export declare const Api: {
1063
1063
  value: null;
1064
1064
  }>;
1065
1065
  }, "strip", z.ZodTypeAny, {
1066
- val_state: {
1067
- value: null;
1068
- };
1069
1066
  val_session: {
1070
1067
  value: null;
1071
1068
  };
1072
- }, {
1073
1069
  val_state: {
1074
1070
  value: null;
1075
1071
  };
1072
+ }, {
1076
1073
  val_session: {
1077
1074
  value: null;
1078
1075
  };
1076
+ val_state: {
1077
+ value: null;
1078
+ };
1079
1079
  }>;
1080
1080
  }, "strip", z.ZodTypeAny, {
1081
1081
  status: 200;
1082
1082
  cookies: {
1083
- val_state: {
1083
+ val_session: {
1084
1084
  value: null;
1085
1085
  };
1086
- val_session: {
1086
+ val_state: {
1087
1087
  value: null;
1088
1088
  };
1089
1089
  };
1090
1090
  }, {
1091
1091
  status: 200;
1092
1092
  cookies: {
1093
- val_state: {
1093
+ val_session: {
1094
1094
  value: null;
1095
1095
  };
1096
- val_session: {
1096
+ val_state: {
1097
1097
  value: null;
1098
1098
  };
1099
1099
  };
1100
1100
  }>;
1101
1101
  };
1102
1102
  };
1103
+ "/remote/settings": {
1104
+ GET: {
1105
+ req: {
1106
+ cookies: {
1107
+ val_session: z.ZodOptional<z.ZodString>;
1108
+ };
1109
+ };
1110
+ res: z.ZodUnion<[z.ZodObject<{
1111
+ status: z.ZodLiteral<200>;
1112
+ json: z.ZodObject<{
1113
+ publicProjectId: z.ZodString;
1114
+ coreVersion: z.ZodString;
1115
+ remoteFileBuckets: z.ZodArray<z.ZodObject<{
1116
+ bucket: z.ZodString;
1117
+ }, "strip", z.ZodTypeAny, {
1118
+ bucket: string;
1119
+ }, {
1120
+ bucket: string;
1121
+ }>, "many">;
1122
+ }, "strip", z.ZodTypeAny, {
1123
+ publicProjectId: string;
1124
+ coreVersion: string;
1125
+ remoteFileBuckets: {
1126
+ bucket: string;
1127
+ }[];
1128
+ }, {
1129
+ publicProjectId: string;
1130
+ coreVersion: string;
1131
+ remoteFileBuckets: {
1132
+ bucket: string;
1133
+ }[];
1134
+ }>;
1135
+ }, "strip", z.ZodTypeAny, {
1136
+ status: 200;
1137
+ json: {
1138
+ publicProjectId: string;
1139
+ coreVersion: string;
1140
+ remoteFileBuckets: {
1141
+ bucket: string;
1142
+ }[];
1143
+ };
1144
+ }, {
1145
+ status: 200;
1146
+ json: {
1147
+ publicProjectId: string;
1148
+ coreVersion: string;
1149
+ remoteFileBuckets: {
1150
+ bucket: string;
1151
+ }[];
1152
+ };
1153
+ }>, z.ZodObject<{
1154
+ status: z.ZodLiteral<400>;
1155
+ json: z.ZodObject<{
1156
+ errorCode: z.ZodUnion<[z.ZodLiteral<"project-not-configured">, z.ZodLiteral<"error-could-not-get-settings">, z.ZodLiteral<"project-not-configured">, z.ZodLiteral<"pat-error">, z.ZodLiteral<"api-key-missing">]>;
1157
+ message: z.ZodString;
1158
+ }, "strip", z.ZodTypeAny, {
1159
+ message: string;
1160
+ errorCode: "project-not-configured" | "error-could-not-get-settings" | "pat-error" | "api-key-missing";
1161
+ }, {
1162
+ message: string;
1163
+ errorCode: "project-not-configured" | "error-could-not-get-settings" | "pat-error" | "api-key-missing";
1164
+ }>;
1165
+ }, "strip", z.ZodTypeAny, {
1166
+ status: 400;
1167
+ json: {
1168
+ message: string;
1169
+ errorCode: "project-not-configured" | "error-could-not-get-settings" | "pat-error" | "api-key-missing";
1170
+ };
1171
+ }, {
1172
+ status: 400;
1173
+ json: {
1174
+ message: string;
1175
+ errorCode: "project-not-configured" | "error-could-not-get-settings" | "pat-error" | "api-key-missing";
1176
+ };
1177
+ }>, z.ZodObject<{
1178
+ status: z.ZodLiteral<401>;
1179
+ json: z.ZodObject<{
1180
+ errorCode: z.ZodOptional<z.ZodLiteral<"unauthorized">>;
1181
+ message: z.ZodString;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ message: string;
1184
+ errorCode?: "unauthorized" | undefined;
1185
+ }, {
1186
+ message: string;
1187
+ errorCode?: "unauthorized" | undefined;
1188
+ }>;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ status: 401;
1191
+ json: {
1192
+ message: string;
1193
+ errorCode?: "unauthorized" | undefined;
1194
+ };
1195
+ }, {
1196
+ status: 401;
1197
+ json: {
1198
+ message: string;
1199
+ errorCode?: "unauthorized" | undefined;
1200
+ };
1201
+ }>, z.ZodObject<{
1202
+ status: z.ZodLiteral<500>;
1203
+ json: z.ZodObject<{
1204
+ message: z.ZodString;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ message: string;
1207
+ }, {
1208
+ message: string;
1209
+ }>;
1210
+ }, "strip", z.ZodTypeAny, {
1211
+ status: 500;
1212
+ json: {
1213
+ message: string;
1214
+ };
1215
+ }, {
1216
+ status: 500;
1217
+ json: {
1218
+ message: string;
1219
+ };
1220
+ }>]>;
1221
+ };
1222
+ };
1103
1223
  "/stat": {
1104
1224
  POST: {
1105
1225
  req: {
@@ -2379,17 +2499,17 @@ export declare const Api: {
2379
2499
  message: z.ZodString;
2380
2500
  value: z.ZodOptional<z.ZodUnknown>;
2381
2501
  fatal: z.ZodOptional<z.ZodBoolean>;
2382
- fixes: z.ZodOptional<z.ZodArray<z.ZodType<"image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "keyof:check-keys", z.ZodTypeDef, "image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "keyof:check-keys">, "many">>;
2502
+ fixes: z.ZodOptional<z.ZodArray<z.ZodType<"image:change-extension" | "image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys", z.ZodTypeDef, "image:change-extension" | "image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys">, "many">>;
2383
2503
  }, "strip", z.ZodTypeAny, {
2384
2504
  message: string;
2385
2505
  value?: unknown;
2386
2506
  fatal?: boolean | undefined;
2387
- fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "keyof:check-keys")[] | undefined;
2507
+ fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys")[] | undefined;
2388
2508
  }, {
2389
2509
  message: string;
2390
2510
  value?: unknown;
2391
2511
  fatal?: boolean | undefined;
2392
- fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "keyof:check-keys")[] | undefined;
2512
+ fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys")[] | undefined;
2393
2513
  }>, "many">>>;
2394
2514
  }, "strip", z.ZodTypeAny, {
2395
2515
  patches?: {
@@ -2404,7 +2524,7 @@ export declare const Api: {
2404
2524
  message: string;
2405
2525
  value?: unknown;
2406
2526
  fatal?: boolean | undefined;
2407
- fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "keyof:check-keys")[] | undefined;
2527
+ fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys")[] | undefined;
2408
2528
  }[]> | undefined;
2409
2529
  }, {
2410
2530
  patches?: {
@@ -2419,7 +2539,7 @@ export declare const Api: {
2419
2539
  message: string;
2420
2540
  value?: unknown;
2421
2541
  fatal?: boolean | undefined;
2422
- fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "keyof:check-keys")[] | undefined;
2542
+ fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys")[] | undefined;
2423
2543
  }[]> | undefined;
2424
2544
  }>>;
2425
2545
  }, "strip", z.ZodTypeAny, {
@@ -2437,7 +2557,7 @@ export declare const Api: {
2437
2557
  message: string;
2438
2558
  value?: unknown;
2439
2559
  fatal?: boolean | undefined;
2440
- fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "keyof:check-keys")[] | undefined;
2560
+ fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys")[] | undefined;
2441
2561
  }[]> | undefined;
2442
2562
  }>>;
2443
2563
  }, {
@@ -2455,7 +2575,7 @@ export declare const Api: {
2455
2575
  message: string;
2456
2576
  value?: unknown;
2457
2577
  fatal?: boolean | undefined;
2458
- fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "keyof:check-keys")[] | undefined;
2578
+ fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys")[] | undefined;
2459
2579
  }[]> | undefined;
2460
2580
  }>;
2461
2581
  }>;
@@ -2476,7 +2596,7 @@ export declare const Api: {
2476
2596
  message: string;
2477
2597
  value?: unknown;
2478
2598
  fatal?: boolean | undefined;
2479
- fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "keyof:check-keys")[] | undefined;
2599
+ fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys")[] | undefined;
2480
2600
  }[]> | undefined;
2481
2601
  }>>;
2482
2602
  };
@@ -2497,7 +2617,7 @@ export declare const Api: {
2497
2617
  message: string;
2498
2618
  value?: unknown;
2499
2619
  fatal?: boolean | undefined;
2500
- fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "keyof:check-keys")[] | undefined;
2620
+ fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "image:upload-remote" | "image:download-remote" | "image:check-remote" | "file:change-extension" | "file:add-metadata" | "file:check-metadata" | "file:upload-remote" | "file:download-remote" | "file:check-remote" | "keyof:check-keys")[] | undefined;
2501
2621
  }[]> | undefined;
2502
2622
  }>;
2503
2623
  };
@@ -2749,7 +2869,7 @@ export declare const Api: {
2749
2869
  };
2750
2870
  }>, z.ZodObject<{
2751
2871
  status: z.ZodLiteral<400>;
2752
- json: z.ZodObject<{
2872
+ json: z.ZodUnion<[z.ZodObject<{
2753
2873
  message: z.ZodString;
2754
2874
  details: z.ZodUnion<[z.ZodObject<{
2755
2875
  sourceFilePatchErrors: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodArray<z.ZodObject<{
@@ -2811,7 +2931,16 @@ export declare const Api: {
2811
2931
  message: string;
2812
2932
  }>;
2813
2933
  };
2814
- }>;
2934
+ }>, z.ZodObject<{
2935
+ message: z.ZodString;
2936
+ errorCode: z.ZodUnion<[z.ZodLiteral<"project-not-configured">, z.ZodLiteral<"pat-error">]>;
2937
+ }, "strip", z.ZodTypeAny, {
2938
+ message: string;
2939
+ errorCode: "project-not-configured" | "pat-error";
2940
+ }, {
2941
+ message: string;
2942
+ errorCode: "project-not-configured" | "pat-error";
2943
+ }>]>;
2815
2944
  }, "strip", z.ZodTypeAny, {
2816
2945
  status: 400;
2817
2946
  json: {
@@ -2826,6 +2955,9 @@ export declare const Api: {
2826
2955
  message: string;
2827
2956
  }>;
2828
2957
  };
2958
+ } | {
2959
+ message: string;
2960
+ errorCode: "project-not-configured" | "pat-error";
2829
2961
  };
2830
2962
  }, {
2831
2963
  status: 400;
@@ -2841,6 +2973,9 @@ export declare const Api: {
2841
2973
  message: string;
2842
2974
  }>;
2843
2975
  };
2976
+ } | {
2977
+ message: string;
2978
+ errorCode: "project-not-configured" | "pat-error";
2844
2979
  };
2845
2980
  }>]>;
2846
2981
  };
@@ -2851,6 +2986,7 @@ export declare const Api: {
2851
2986
  path: z.ZodString;
2852
2987
  query: {
2853
2988
  patch_id: z.ZodOptional<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>>;
2989
+ remote: z.ZodOptional<z.ZodString>;
2854
2990
  };
2855
2991
  };
2856
2992
  res: z.ZodUnion<[z.ZodObject<{
@@ -1,6 +1,13 @@
1
- import { RichTextSource, AllRichTextOptions, ConfigDirectory } from "@valbuild/core";
1
+ import { RichTextSource, AllRichTextOptions, ConfigDirectory, SerializedImageSchema } from "@valbuild/core";
2
2
  import { RemirrorJSON } from "./remirrorTypes.js";
3
- export declare function remirrorToRichTextSource(node: RemirrorJSON, configDirectory: ConfigDirectory): {
3
+ export type RemoteRichTextOptions = {
4
+ publicProjectId: string;
5
+ coreVersion: string;
6
+ bucket: string;
7
+ schema: SerializedImageSchema;
8
+ remoteHost: string;
9
+ };
10
+ export declare function remirrorToRichTextSource(node: RemirrorJSON, configDirectory: ConfigDirectory, remoteOptions: RemoteRichTextOptions | null): {
4
11
  blocks: RichTextSource<AllRichTextOptions>;
5
12
  files: Record<string, {
6
13
  value: string;