@prismicio/types-internal 2.5.0 → 2.6.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.
@@ -822,7 +822,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
822
822
  }>>]>>;
823
823
  repeat: t.ArrayC<t.ExactC<t.TypeC<{
824
824
  __TYPE__: t.LiteralC<"GroupItemContent">;
825
- value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
825
+ value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
826
826
  type: t.StringC;
827
827
  __TYPE__: t.LiteralC<"EmptyContent">;
828
828
  }>>, t.ExactC<t.TypeC<{
@@ -1224,7 +1224,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1224
1224
  }>]>>]>>;
1225
1225
  }>>, t.ExactC<t.TypeC<{
1226
1226
  __TYPE__: t.LiteralC<"SeparatorContent">;
1227
- }>>]>]>>;
1227
+ }>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>]>>;
1228
1228
  }>>>;
1229
1229
  }>>, t.ExactC<t.TypeC<{
1230
1230
  __TYPE__: t.LiteralC<"SharedSliceContent">;
@@ -1634,7 +1634,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1634
1634
  }>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>>;
1635
1635
  items: t.ArrayC<t.ExactC<t.TypeC<{
1636
1636
  __TYPE__: t.LiteralC<"GroupItemContent">;
1637
- value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
1637
+ value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
1638
1638
  type: t.StringC;
1639
1639
  __TYPE__: t.LiteralC<"EmptyContent">;
1640
1640
  }>>, t.ExactC<t.TypeC<{
@@ -2036,7 +2036,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2036
2036
  }>]>>]>>;
2037
2037
  }>>, t.ExactC<t.TypeC<{
2038
2038
  __TYPE__: t.LiteralC<"SeparatorContent">;
2039
- }>>]>]>>;
2039
+ }>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>]>>;
2040
2040
  }>>>;
2041
2041
  }>>, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
2042
2042
  type: t.StringC;
@@ -2440,415 +2440,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2440
2440
  }>]>>]>>;
2441
2441
  }>>, t.ExactC<t.TypeC<{
2442
2442
  __TYPE__: t.LiteralC<"SeparatorContent">;
2443
- }>>]>, t.ExactC<t.TypeC<{
2444
- __TYPE__: t.LiteralC<"GroupContentType">;
2445
- value: t.ArrayC<t.ExactC<t.TypeC<{
2446
- __TYPE__: t.LiteralC<"GroupItemContent">;
2447
- value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
2448
- type: t.StringC;
2449
- __TYPE__: t.LiteralC<"EmptyContent">;
2450
- }>>, t.ExactC<t.TypeC<{
2451
- __TYPE__: t.LiteralC<"BooleanContent">;
2452
- value: t.BooleanC;
2453
- }>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2454
- embed_url: t.StringC;
2455
- type: t.StringC;
2456
- }>, t.PartialC<{
2457
- version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2458
- title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2459
- author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2460
- author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2461
- provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2462
- provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2463
- cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2464
- thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2465
- thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2466
- thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2467
- html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2468
- }>]>>, t.ExactC<t.TypeC<{
2469
- __TYPE__: t.LiteralC<"EmbedContent">;
2470
- all: t.UnknownC;
2471
- }>>]>, t.ExactC<t.TypeC<{
2472
- type: t.LiteralC<"Text">;
2473
- value: t.Type<string, string, unknown>;
2474
- __TYPE__: t.LiteralC<"FieldContent">;
2475
- }>>, t.ExactC<t.TypeC<{
2476
- type: t.LiteralC<"Timestamp">;
2477
- value: t.Type<string, string, unknown>;
2478
- __TYPE__: t.LiteralC<"FieldContent">;
2479
- }>>, t.ExactC<t.TypeC<{
2480
- type: t.LiteralC<"Select">;
2481
- value: t.Type<string, string, unknown>;
2482
- __TYPE__: t.LiteralC<"FieldContent">;
2483
- }>>, t.ExactC<t.TypeC<{
2484
- type: t.LiteralC<"Range">;
2485
- value: t.Type<string, string, unknown>;
2486
- __TYPE__: t.LiteralC<"FieldContent">;
2487
- }>>, t.ExactC<t.TypeC<{
2488
- type: t.LiteralC<"Number">;
2489
- value: t.Type<string, string, unknown>;
2490
- __TYPE__: t.LiteralC<"FieldContent">;
2491
- }>>, t.ExactC<t.TypeC<{
2492
- type: t.LiteralC<"Date">;
2493
- value: t.Type<string, string, unknown>;
2494
- __TYPE__: t.LiteralC<"FieldContent">;
2495
- }>>, t.ExactC<t.TypeC<{
2496
- type: t.LiteralC<"Color">;
2497
- value: t.Type<string, string, unknown>;
2498
- __TYPE__: t.LiteralC<"FieldContent">;
2499
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
2500
- position: t.ExactC<t.TypeC<{
2501
- lat: t.NumberC;
2502
- lng: t.NumberC;
2503
- }>>;
2504
- }>>, t.ExactC<t.TypeC<{
2505
- __TYPE__: t.LiteralC<"GeoPointContent">;
2506
- }>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2507
- origin: t.ExactC<t.TypeC<{
2508
- id: t.StringC;
2509
- url: t.StringC;
2510
- width: t.NumberC;
2511
- height: t.NumberC;
2512
- }>>;
2513
- width: t.NumberC;
2514
- height: t.NumberC;
2515
- edit: t.TypeC<{
2516
- zoom: t.NumberC;
2517
- crop: t.TypeC<{
2518
- x: t.NumberC;
2519
- y: t.NumberC;
2520
- }>;
2521
- background: t.StringC;
2522
- }>;
2523
- }>, t.PartialC<{
2524
- url: t.StringC;
2525
- credits: t.Type<string | null, string | null, unknown>;
2526
- alt: t.Type<string | null, string | null, unknown>;
2527
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2528
- }>]>>, t.PartialC<{
2529
- thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
2530
- origin: t.ExactC<t.TypeC<{
2531
- id: t.StringC;
2532
- url: t.StringC;
2533
- width: t.NumberC;
2534
- height: t.NumberC;
2535
- }>>;
2536
- width: t.NumberC;
2537
- height: t.NumberC;
2538
- edit: t.TypeC<{
2539
- zoom: t.NumberC;
2540
- crop: t.TypeC<{
2541
- x: t.NumberC;
2542
- y: t.NumberC;
2543
- }>;
2544
- background: t.StringC;
2545
- }>;
2546
- }>, t.PartialC<{
2547
- url: t.StringC;
2548
- credits: t.Type<string | null, string | null, unknown>;
2549
- alt: t.Type<string | null, string | null, unknown>;
2550
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2551
- }>]>>>;
2552
- }>]>, t.ExactC<t.TypeC<{
2553
- __TYPE__: t.LiteralC<"ImageContent">;
2554
- }>>]>, t.ExactC<t.TypeC<{
2555
- __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
2556
- value: t.StringC;
2557
- }>>, t.ExactC<t.TypeC<{
2558
- __TYPE__: t.LiteralC<"LinkContent">;
2559
- value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2560
- __TYPE__: t.LiteralC<"ImageLink">;
2561
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2562
- id: t.StringC;
2563
- url: t.StringC;
2564
- height: t.StringC;
2565
- width: t.StringC;
2566
- size: t.StringC;
2567
- name: t.StringC;
2568
- kind: t.StringC;
2569
- }>, t.PartialC<{
2570
- date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2571
- }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2572
- id: t.StringC;
2573
- url: t.StringC;
2574
- name: t.StringC;
2575
- kind: t.StringC;
2576
- size: t.StringC;
2577
- }>, t.PartialC<{
2578
- date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2579
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2580
- __TYPE__: t.LiteralC<"FileLink">;
2581
- }>, t.PartialC<{
2582
- size: t.StringC;
2583
- }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2584
- __TYPE__: t.LiteralC<"DocumentLink">;
2585
- }>>, t.ExactC<t.TypeC<{
2586
- id: t.Type<string, string, unknown>;
2587
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2588
- __TYPE__: t.LiteralC<"ExternalLink">;
2589
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2590
- url: t.StringC;
2591
- }>, t.PartialC<{
2592
- kind: t.LiteralC<"web">;
2593
- target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2594
- preview: t.UnionC<[t.Type<{
2595
- title?: string;
2596
- }, {
2597
- title?: string;
2598
- }, unknown>, t.NullC, t.UndefinedC]>;
2599
- }>]>>]>]>;
2600
- }>>, t.ExactC<t.TypeC<{
2601
- __TYPE__: t.LiteralC<"StructuredTextContent">;
2602
- value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2603
- type: t.LiteralC<"image">;
2604
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2605
- origin: t.ExactC<t.TypeC<{
2606
- id: t.StringC;
2607
- url: t.StringC;
2608
- width: t.NumberC;
2609
- height: t.NumberC;
2610
- }>>;
2611
- width: t.NumberC;
2612
- height: t.NumberC;
2613
- edit: t.TypeC<{
2614
- zoom: t.NumberC;
2615
- crop: t.TypeC<{
2616
- x: t.NumberC;
2617
- y: t.NumberC;
2618
- }>;
2619
- background: t.StringC;
2620
- }>;
2621
- }>, t.PartialC<{
2622
- url: t.StringC;
2623
- credits: t.Type<string | null, string | null, unknown>;
2624
- alt: t.Type<string | null, string | null, unknown>;
2625
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2626
- }>]>>, t.PartialC<{
2627
- linkTo: t.UnionC<[t.Type<({
2628
- __TYPE__: "ImageLink";
2629
- } & {
2630
- id: string;
2631
- url: string;
2632
- height: string;
2633
- width: string;
2634
- size: string;
2635
- name: string;
2636
- kind: string;
2637
- } & {
2638
- date?: string | null | undefined;
2639
- }) | ({
2640
- id: string;
2641
- url: string;
2642
- name: string;
2643
- kind: string;
2644
- size: string;
2645
- } & {
2646
- date?: string | null | undefined;
2647
- } & {
2648
- __TYPE__: "FileLink";
2649
- } & {
2650
- size?: string;
2651
- }) | ({
2652
- __TYPE__: "DocumentLink";
2653
- } & {
2654
- id: string;
2655
- }) | ({
2656
- __TYPE__: "ExternalLink";
2657
- } & {
2658
- url: string;
2659
- } & {
2660
- kind?: "web";
2661
- target?: string | null | undefined;
2662
- preview?: {
2663
- title?: string;
2664
- } | null | undefined;
2665
- }), ({
2666
- __TYPE__: "ImageLink";
2667
- } & {
2668
- id: string;
2669
- url: string;
2670
- height: string;
2671
- width: string;
2672
- size: string;
2673
- name: string;
2674
- kind: string;
2675
- } & {
2676
- date?: string | null | undefined;
2677
- }) | ({
2678
- id: string;
2679
- url: string;
2680
- name: string;
2681
- kind: string;
2682
- size: string;
2683
- } & {
2684
- date?: string | null | undefined;
2685
- } & {
2686
- __TYPE__: "FileLink";
2687
- } & {
2688
- size?: string;
2689
- }) | ({
2690
- __TYPE__: "DocumentLink";
2691
- } & {
2692
- id: string;
2693
- }) | ({
2694
- __TYPE__: "ExternalLink";
2695
- } & {
2696
- url: string;
2697
- } & {
2698
- kind?: "web";
2699
- target?: string | null | undefined;
2700
- preview?: {
2701
- title?: string;
2702
- } | null | undefined;
2703
- }), unknown>, t.NullC, t.UndefinedC]>;
2704
- }>]>;
2705
- }>, t.PartialC<{
2706
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2707
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2708
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2709
- type: t.LiteralC<"embed">;
2710
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2711
- embed_url: t.StringC;
2712
- type: t.StringC;
2713
- }>, t.PartialC<{
2714
- version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2715
- title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2716
- author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2717
- author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2718
- provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2719
- provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2720
- cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2721
- thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2722
- thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2723
- thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2724
- html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2725
- }>]>>, t.ExactC<t.TypeC<{
2726
- __TYPE__: t.LiteralC<"EmbedContent">;
2727
- all: t.UnknownC;
2728
- }>>]>;
2729
- }>, t.PartialC<{
2730
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2731
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2732
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2733
- type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
2734
- content: t.IntersectionC<[t.TypeC<{
2735
- text: t.StringC;
2736
- }>, t.PartialC<{
2737
- spans: t.Type<({
2738
- data: ({
2739
- __TYPE__: "ImageLink";
2740
- } & {
2741
- id: string;
2742
- url: string;
2743
- height: string;
2744
- width: string;
2745
- size: string;
2746
- name: string;
2747
- kind: string;
2748
- } & {
2749
- date?: string | null | undefined;
2750
- }) | ({
2751
- id: string;
2752
- url: string;
2753
- name: string;
2754
- kind: string;
2755
- size: string;
2756
- } & {
2757
- date?: string | null | undefined;
2758
- } & {
2759
- __TYPE__: "FileLink";
2760
- } & {
2761
- size?: string;
2762
- }) | ({
2763
- __TYPE__: "DocumentLink";
2764
- } & {
2765
- id: string;
2766
- }) | ({
2767
- __TYPE__: "ExternalLink";
2768
- } & {
2769
- url: string;
2770
- } & {
2771
- kind?: "web";
2772
- target?: string | null | undefined;
2773
- preview?: {
2774
- title?: string;
2775
- } | null | undefined;
2776
- });
2777
- start: number;
2778
- end: number;
2779
- type: "hyperlink";
2780
- } | {
2781
- data: string;
2782
- start: number;
2783
- end: number;
2784
- type: "label";
2785
- } | {
2786
- start: number;
2787
- end: number;
2788
- type: "strong" | "em" | "list-item";
2789
- })[], ({
2790
- data: ({
2791
- __TYPE__: "ImageLink";
2792
- } & {
2793
- id: string;
2794
- url: string;
2795
- height: string;
2796
- width: string;
2797
- size: string;
2798
- name: string;
2799
- kind: string;
2800
- } & {
2801
- date?: string | null | undefined;
2802
- }) | ({
2803
- id: string;
2804
- url: string;
2805
- name: string;
2806
- kind: string;
2807
- size: string;
2808
- } & {
2809
- date?: string | null | undefined;
2810
- } & {
2811
- __TYPE__: "FileLink";
2812
- } & {
2813
- size?: string;
2814
- }) | ({
2815
- __TYPE__: "DocumentLink";
2816
- } & {
2817
- id: string;
2818
- }) | ({
2819
- __TYPE__: "ExternalLink";
2820
- } & {
2821
- url: string;
2822
- } & {
2823
- kind?: "web";
2824
- target?: string | null | undefined;
2825
- preview?: {
2826
- title?: string;
2827
- } | null | undefined;
2828
- });
2829
- start: number;
2830
- end: number;
2831
- type: "hyperlink";
2832
- } | {
2833
- data: string;
2834
- start: number;
2835
- end: number;
2836
- type: "label";
2837
- } | {
2838
- start: number;
2839
- end: number;
2840
- type: "strong" | "em" | "list-item";
2841
- })[], unknown>;
2842
- }>]>;
2843
- }>, t.PartialC<{
2844
- label: t.StringC;
2845
- direction: t.StringC;
2846
- }>]>>]>>;
2847
- }>>, t.ExactC<t.TypeC<{
2848
- __TYPE__: t.LiteralC<"SeparatorContent">;
2849
- }>>]>]>>;
2850
- }>>>;
2851
- }>>]>]>;
2443
+ }>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>]>;
2852
2444
  }>>;
2853
2445
  }>]>>;
2854
2446
  export declare type Document = t.TypeOf<typeof Document>;
@@ -3360,266 +2952,17 @@ export declare const DocumentLegacy: {
3360
2952
  zoom: number;
3361
2953
  crop: {
3362
2954
  x: number;
3363
- y: number;
3364
- };
3365
- background: string;
3366
- };
3367
- } & {
3368
- url?: string;
3369
- credits?: string | null;
3370
- alt?: string | null;
3371
- provider?: string | null | undefined;
3372
- } & {
3373
- linkTo?: ({
3374
- __TYPE__: "ImageLink";
3375
- } & {
3376
- id: string;
3377
- url: string;
3378
- height: string;
3379
- width: string;
3380
- size: string;
3381
- name: string;
3382
- kind: string;
3383
- } & {
3384
- date?: string | null | undefined;
3385
- }) | ({
3386
- id: string;
3387
- url: string;
3388
- name: string;
3389
- kind: string;
3390
- size: string;
3391
- } & {
3392
- date?: string | null | undefined;
3393
- } & {
3394
- __TYPE__: "FileLink";
3395
- } & {
3396
- size?: string;
3397
- }) | ({
3398
- __TYPE__: "DocumentLink";
3399
- } & {
3400
- id: string;
3401
- }) | ({
3402
- __TYPE__: "ExternalLink";
3403
- } & {
3404
- url: string;
3405
- } & {
3406
- kind?: "web";
3407
- target?: string | null | undefined;
3408
- preview?: {
3409
- title?: string;
3410
- } | null | undefined;
3411
- }) | null | undefined;
3412
- };
3413
- } & {
3414
- label?: string | null | undefined;
3415
- direction?: string | null | undefined;
3416
- }) | ({
3417
- type: "embed";
3418
- data: {
3419
- embed_url: string;
3420
- type: string;
3421
- } & {
3422
- version?: string | number | null;
3423
- title?: string | null | undefined;
3424
- author_name?: string | null | undefined;
3425
- author_url?: string | null | undefined;
3426
- provider_name?: string | null | undefined;
3427
- provider_url?: string | null | undefined;
3428
- cache_age?: string | number | null;
3429
- thumbnail_url?: string | null | undefined;
3430
- thumbnail_width?: number | null | undefined;
3431
- thumbnail_height?: number | null | undefined;
3432
- html?: string | null | undefined;
3433
- } & {
3434
- __TYPE__: "EmbedContent";
3435
- all: unknown;
3436
- };
3437
- } & {
3438
- label?: string | null | undefined;
3439
- direction?: string | null | undefined;
3440
- }) | ({
3441
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
3442
- content: {
3443
- text: string;
3444
- } & {
3445
- spans?: ({
3446
- data: ({
3447
- __TYPE__: "ImageLink";
3448
- } & {
3449
- id: string;
3450
- url: string;
3451
- height: string;
3452
- width: string;
3453
- size: string;
3454
- name: string;
3455
- kind: string;
3456
- } & {
3457
- date?: string | null | undefined;
3458
- }) | ({
3459
- id: string;
3460
- url: string;
3461
- name: string;
3462
- kind: string;
3463
- size: string;
3464
- } & {
3465
- date?: string | null | undefined;
3466
- } & {
3467
- __TYPE__: "FileLink";
3468
- } & {
3469
- size?: string;
3470
- }) | ({
3471
- __TYPE__: "DocumentLink";
3472
- } & {
3473
- id: string;
3474
- }) | ({
3475
- __TYPE__: "ExternalLink";
3476
- } & {
3477
- url: string;
3478
- } & {
3479
- kind?: "web";
3480
- target?: string | null | undefined;
3481
- preview?: {
3482
- title?: string;
3483
- } | null | undefined;
3484
- });
3485
- start: number;
3486
- end: number;
3487
- type: "hyperlink";
3488
- } | {
3489
- data: string;
3490
- start: number;
3491
- end: number;
3492
- type: "label";
3493
- } | {
3494
- start: number;
3495
- end: number;
3496
- type: "strong" | "em" | "list-item";
3497
- })[];
3498
- };
3499
- } & {
3500
- label?: string;
3501
- direction?: string;
3502
- }))[];
3503
- } | {
3504
- __TYPE__: "SeparatorContent";
3505
- } | {
3506
- __TYPE__: "CompositeSliceContent";
3507
- nonRepeat: {
3508
- [x: string]: {
3509
- type: string;
3510
- __TYPE__: "EmptyContent";
3511
- } | {
3512
- __TYPE__: "BooleanContent";
3513
- value: boolean;
3514
- } | ({
3515
- embed_url: string;
3516
- type: string;
3517
- } & {
3518
- version?: string | number | null;
3519
- title?: string | null | undefined;
3520
- author_name?: string | null | undefined;
3521
- author_url?: string | null | undefined;
3522
- provider_name?: string | null | undefined;
3523
- provider_url?: string | null | undefined;
3524
- cache_age?: string | number | null;
3525
- thumbnail_url?: string | null | undefined;
3526
- thumbnail_width?: number | null | undefined;
3527
- thumbnail_height?: number | null | undefined;
3528
- html?: string | null | undefined;
3529
- } & {
3530
- __TYPE__: "EmbedContent";
3531
- all: unknown;
3532
- }) | {
3533
- type: "Color";
3534
- value: string;
3535
- __TYPE__: "FieldContent";
3536
- } | {
3537
- type: "Date";
3538
- value: string;
3539
- __TYPE__: "FieldContent";
3540
- } | {
3541
- type: "Number";
3542
- value: string;
3543
- __TYPE__: "FieldContent";
3544
- } | {
3545
- type: "Range";
3546
- value: string;
3547
- __TYPE__: "FieldContent";
3548
- } | {
3549
- type: "Select";
3550
- value: string;
3551
- __TYPE__: "FieldContent";
3552
- } | {
3553
- type: "Text";
3554
- value: string;
3555
- __TYPE__: "FieldContent";
3556
- } | {
3557
- type: "Timestamp";
3558
- value: string;
3559
- __TYPE__: "FieldContent";
3560
- } | ({
3561
- position: {
3562
- lat: number;
3563
- lng: number;
3564
- };
3565
- } & {
3566
- __TYPE__: "GeoPointContent";
3567
- }) | ({
3568
- origin: {
3569
- id: string;
3570
- url: string;
3571
- width: number;
3572
- height: number;
3573
- };
3574
- width: number;
3575
- height: number;
3576
- edit: {
3577
- zoom: number;
3578
- crop: {
3579
- x: number;
3580
- y: number;
3581
- };
3582
- background: string;
3583
- };
3584
- } & {
3585
- url?: string;
3586
- credits?: string | null;
3587
- alt?: string | null;
3588
- provider?: string | null | undefined;
3589
- } & {
3590
- thumbnails?: {
3591
- [x: string]: {
3592
- origin: {
3593
- id: string;
3594
- url: string;
3595
- width: number;
3596
- height: number;
3597
- };
3598
- width: number;
3599
- height: number;
3600
- edit: {
3601
- zoom: number;
3602
- crop: {
3603
- x: number;
3604
- y: number;
3605
- };
3606
- background: string;
3607
- };
3608
- } & {
3609
- url?: string;
3610
- credits?: string | null;
3611
- alt?: string | null;
3612
- provider?: string | null | undefined;
2955
+ y: number;
3613
2956
  };
2957
+ background: string;
3614
2958
  };
3615
2959
  } & {
3616
- __TYPE__: "ImageContent";
3617
- }) | {
3618
- __TYPE__: "IntegrationFieldsContent";
3619
- value: string;
3620
- } | {
3621
- __TYPE__: "LinkContent";
3622
- value: ({
2960
+ url?: string;
2961
+ credits?: string | null;
2962
+ alt?: string | null;
2963
+ provider?: string | null | undefined;
2964
+ } & {
2965
+ linkTo?: ({
3623
2966
  __TYPE__: "ImageLink";
3624
2967
  } & {
3625
2968
  id: string;
@@ -3657,171 +3000,104 @@ export declare const DocumentLegacy: {
3657
3000
  preview?: {
3658
3001
  title?: string;
3659
3002
  } | null | undefined;
3660
- });
3661
- } | {
3662
- __TYPE__: "StructuredTextContent";
3663
- value: (({
3664
- type: "image";
3665
- data: {
3666
- origin: {
3667
- id: string;
3668
- url: string;
3669
- width: number;
3670
- height: number;
3671
- };
3672
- width: number;
3673
- height: number;
3674
- edit: {
3675
- zoom: number;
3676
- crop: {
3677
- x: number;
3678
- y: number;
3679
- };
3680
- background: string;
3681
- };
3003
+ }) | null | undefined;
3004
+ };
3005
+ } & {
3006
+ label?: string | null | undefined;
3007
+ direction?: string | null | undefined;
3008
+ }) | ({
3009
+ type: "embed";
3010
+ data: {
3011
+ embed_url: string;
3012
+ type: string;
3013
+ } & {
3014
+ version?: string | number | null;
3015
+ title?: string | null | undefined;
3016
+ author_name?: string | null | undefined;
3017
+ author_url?: string | null | undefined;
3018
+ provider_name?: string | null | undefined;
3019
+ provider_url?: string | null | undefined;
3020
+ cache_age?: string | number | null;
3021
+ thumbnail_url?: string | null | undefined;
3022
+ thumbnail_width?: number | null | undefined;
3023
+ thumbnail_height?: number | null | undefined;
3024
+ html?: string | null | undefined;
3025
+ } & {
3026
+ __TYPE__: "EmbedContent";
3027
+ all: unknown;
3028
+ };
3029
+ } & {
3030
+ label?: string | null | undefined;
3031
+ direction?: string | null | undefined;
3032
+ }) | ({
3033
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
3034
+ content: {
3035
+ text: string;
3036
+ } & {
3037
+ spans?: ({
3038
+ data: ({
3039
+ __TYPE__: "ImageLink";
3682
3040
  } & {
3683
- url?: string;
3684
- credits?: string | null;
3685
- alt?: string | null;
3686
- provider?: string | null | undefined;
3041
+ id: string;
3042
+ url: string;
3043
+ height: string;
3044
+ width: string;
3045
+ size: string;
3046
+ name: string;
3047
+ kind: string;
3687
3048
  } & {
3688
- linkTo?: ({
3689
- __TYPE__: "ImageLink";
3690
- } & {
3691
- id: string;
3692
- url: string;
3693
- height: string;
3694
- width: string;
3695
- size: string;
3696
- name: string;
3697
- kind: string;
3698
- } & {
3699
- date?: string | null | undefined;
3700
- }) | ({
3701
- id: string;
3702
- url: string;
3703
- name: string;
3704
- kind: string;
3705
- size: string;
3706
- } & {
3707
- date?: string | null | undefined;
3708
- } & {
3709
- __TYPE__: "FileLink";
3710
- } & {
3711
- size?: string;
3712
- }) | ({
3713
- __TYPE__: "DocumentLink";
3714
- } & {
3715
- id: string;
3716
- }) | ({
3717
- __TYPE__: "ExternalLink";
3718
- } & {
3719
- url: string;
3720
- } & {
3721
- kind?: "web";
3722
- target?: string | null | undefined;
3723
- preview?: {
3724
- title?: string;
3725
- } | null | undefined;
3726
- }) | null | undefined;
3727
- };
3728
- } & {
3729
- label?: string | null | undefined;
3730
- direction?: string | null | undefined;
3731
- }) | ({
3732
- type: "embed";
3733
- data: {
3734
- embed_url: string;
3735
- type: string;
3049
+ date?: string | null | undefined;
3050
+ }) | ({
3051
+ id: string;
3052
+ url: string;
3053
+ name: string;
3054
+ kind: string;
3055
+ size: string;
3736
3056
  } & {
3737
- version?: string | number | null;
3738
- title?: string | null | undefined;
3739
- author_name?: string | null | undefined;
3740
- author_url?: string | null | undefined;
3741
- provider_name?: string | null | undefined;
3742
- provider_url?: string | null | undefined;
3743
- cache_age?: string | number | null;
3744
- thumbnail_url?: string | null | undefined;
3745
- thumbnail_width?: number | null | undefined;
3746
- thumbnail_height?: number | null | undefined;
3747
- html?: string | null | undefined;
3057
+ date?: string | null | undefined;
3748
3058
  } & {
3749
- __TYPE__: "EmbedContent";
3750
- all: unknown;
3751
- };
3752
- } & {
3753
- label?: string | null | undefined;
3754
- direction?: string | null | undefined;
3755
- }) | ({
3756
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
3757
- content: {
3758
- text: string;
3059
+ __TYPE__: "FileLink";
3759
3060
  } & {
3760
- spans?: ({
3761
- data: ({
3762
- __TYPE__: "ImageLink";
3763
- } & {
3764
- id: string;
3765
- url: string;
3766
- height: string;
3767
- width: string;
3768
- size: string;
3769
- name: string;
3770
- kind: string;
3771
- } & {
3772
- date?: string | null | undefined;
3773
- }) | ({
3774
- id: string;
3775
- url: string;
3776
- name: string;
3777
- kind: string;
3778
- size: string;
3779
- } & {
3780
- date?: string | null | undefined;
3781
- } & {
3782
- __TYPE__: "FileLink";
3783
- } & {
3784
- size?: string;
3785
- }) | ({
3786
- __TYPE__: "DocumentLink";
3787
- } & {
3788
- id: string;
3789
- }) | ({
3790
- __TYPE__: "ExternalLink";
3791
- } & {
3792
- url: string;
3793
- } & {
3794
- kind?: "web";
3795
- target?: string | null | undefined;
3796
- preview?: {
3797
- title?: string;
3798
- } | null | undefined;
3799
- });
3800
- start: number;
3801
- end: number;
3802
- type: "hyperlink";
3803
- } | {
3804
- data: string;
3805
- start: number;
3806
- end: number;
3807
- type: "label";
3808
- } | {
3809
- start: number;
3810
- end: number;
3811
- type: "strong" | "em" | "list-item";
3812
- })[];
3813
- };
3814
- } & {
3815
- label?: string;
3816
- direction?: string;
3817
- }))[];
3818
- } | {
3819
- __TYPE__: "SeparatorContent";
3820
- };
3821
- };
3822
- repeat: {
3823
- __TYPE__: "GroupItemContent";
3824
- value: [string, {
3061
+ size?: string;
3062
+ }) | ({
3063
+ __TYPE__: "DocumentLink";
3064
+ } & {
3065
+ id: string;
3066
+ }) | ({
3067
+ __TYPE__: "ExternalLink";
3068
+ } & {
3069
+ url: string;
3070
+ } & {
3071
+ kind?: "web";
3072
+ target?: string | null | undefined;
3073
+ preview?: {
3074
+ title?: string;
3075
+ } | null | undefined;
3076
+ });
3077
+ start: number;
3078
+ end: number;
3079
+ type: "hyperlink";
3080
+ } | {
3081
+ data: string;
3082
+ start: number;
3083
+ end: number;
3084
+ type: "label";
3085
+ } | {
3086
+ start: number;
3087
+ end: number;
3088
+ type: "strong" | "em" | "list-item";
3089
+ })[];
3090
+ };
3091
+ } & {
3092
+ label?: string;
3093
+ direction?: string;
3094
+ }))[];
3095
+ } | {
3096
+ __TYPE__: "SeparatorContent";
3097
+ } | import("./fields").GroupContent | {
3098
+ __TYPE__: "CompositeSliceContent";
3099
+ nonRepeat: {
3100
+ [x: string]: {
3825
3101
  type: string;
3826
3102
  __TYPE__: "EmptyContent";
3827
3103
  } | {
@@ -4133,13 +3409,11 @@ export declare const DocumentLegacy: {
4133
3409
  }))[];
4134
3410
  } | {
4135
3411
  __TYPE__: "SeparatorContent";
4136
- }][];
4137
- }[];
4138
- } | {
4139
- __TYPE__: "SharedSliceContent";
4140
- variation: string;
4141
- primary: {
4142
- [x: string]: {
3412
+ };
3413
+ };
3414
+ repeat: {
3415
+ __TYPE__: "GroupItemContent";
3416
+ value: [string, {
4143
3417
  type: string;
4144
3418
  __TYPE__: "EmptyContent";
4145
3419
  } | {
@@ -4451,11 +3725,13 @@ export declare const DocumentLegacy: {
4451
3725
  }))[];
4452
3726
  } | {
4453
3727
  __TYPE__: "SeparatorContent";
4454
- } | import("./fields").GroupContent;
4455
- };
4456
- items: {
4457
- __TYPE__: "GroupItemContent";
4458
- value: [string, {
3728
+ } | import("./fields").GroupContent][];
3729
+ }[];
3730
+ } | {
3731
+ __TYPE__: "SharedSliceContent";
3732
+ variation: string;
3733
+ primary: {
3734
+ [x: string]: {
4459
3735
  type: string;
4460
3736
  __TYPE__: "EmptyContent";
4461
3737
  } | {
@@ -4767,11 +4043,9 @@ export declare const DocumentLegacy: {
4767
4043
  }))[];
4768
4044
  } | {
4769
4045
  __TYPE__: "SeparatorContent";
4770
- }][];
4771
- }[];
4772
- } | {
4773
- __TYPE__: "GroupContentType";
4774
- value: {
4046
+ } | import("./fields").GroupContent;
4047
+ };
4048
+ items: {
4775
4049
  __TYPE__: "GroupItemContent";
4776
4050
  value: [string, {
4777
4051
  type: string;
@@ -5085,7 +4359,7 @@ export declare const DocumentLegacy: {
5085
4359
  }))[];
5086
4360
  } | {
5087
4361
  __TYPE__: "SeparatorContent";
5088
- }][];
4362
+ } | import("./fields").GroupContent][];
5089
4363
  }[];
5090
4364
  };
5091
4365
  }[];
@@ -5212,300 +4486,77 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5212
4486
  origin: {
5213
4487
  id: string;
5214
4488
  url: string;
5215
- width: number;
5216
- height: number;
5217
- };
5218
- width: number;
5219
- height: number;
5220
- edit: {
5221
- zoom: number;
5222
- crop: {
5223
- x: number;
5224
- y: number;
5225
- };
5226
- background: string;
5227
- };
5228
- } & {
5229
- url?: string;
5230
- credits?: string | null;
5231
- alt?: string | null;
5232
- provider?: string | null | undefined;
5233
- };
5234
- };
5235
- } & {
5236
- __TYPE__: "ImageContent";
5237
- }) | {
5238
- __TYPE__: "IntegrationFieldsContent";
5239
- value: string;
5240
- } | {
5241
- __TYPE__: "LinkContent";
5242
- value: ({
5243
- __TYPE__: "ImageLink";
5244
- } & {
5245
- id: string;
5246
- url: string;
5247
- height: string;
5248
- width: string;
5249
- size: string;
5250
- name: string;
5251
- kind: string;
5252
- } & {
5253
- date?: string | null | undefined;
5254
- }) | ({
5255
- id: string;
5256
- url: string;
5257
- name: string;
5258
- kind: string;
5259
- size: string;
5260
- } & {
5261
- date?: string | null | undefined;
5262
- } & {
5263
- __TYPE__: "FileLink";
5264
- } & {
5265
- size?: string;
5266
- }) | ({
5267
- __TYPE__: "DocumentLink";
5268
- } & {
5269
- id: string;
5270
- }) | ({
5271
- __TYPE__: "ExternalLink";
5272
- } & {
5273
- url: string;
5274
- } & {
5275
- kind?: "web";
5276
- target?: string | null | undefined;
5277
- preview?: {
5278
- title?: string;
5279
- } | null | undefined;
5280
- });
5281
- } | {
5282
- __TYPE__: "StructuredTextContent";
5283
- value: (({
5284
- type: "image";
5285
- data: {
5286
- origin: {
5287
- id: string;
5288
- url: string;
5289
- width: number;
5290
- height: number;
5291
- };
5292
- width: number;
5293
- height: number;
5294
- edit: {
5295
- zoom: number;
5296
- crop: {
5297
- x: number;
5298
- y: number;
5299
- };
5300
- background: string;
5301
- };
5302
- } & {
5303
- url?: string;
5304
- credits?: string | null;
5305
- alt?: string | null;
5306
- provider?: string | null | undefined;
5307
- } & {
5308
- linkTo?: ({
5309
- __TYPE__: "ImageLink";
5310
- } & {
5311
- id: string;
5312
- url: string;
5313
- height: string;
5314
- width: string;
5315
- size: string;
5316
- name: string;
5317
- kind: string;
5318
- } & {
5319
- date?: string | null | undefined;
5320
- }) | ({
5321
- id: string;
5322
- url: string;
5323
- name: string;
5324
- kind: string;
5325
- size: string;
5326
- } & {
5327
- date?: string | null | undefined;
5328
- } & {
5329
- __TYPE__: "FileLink";
5330
- } & {
5331
- size?: string;
5332
- }) | ({
5333
- __TYPE__: "DocumentLink";
5334
- } & {
5335
- id: string;
5336
- }) | ({
5337
- __TYPE__: "ExternalLink";
5338
- } & {
5339
- url: string;
5340
- } & {
5341
- kind?: "web";
5342
- target?: string | null | undefined;
5343
- preview?: {
5344
- title?: string;
5345
- } | null | undefined;
5346
- }) | null | undefined;
5347
- };
5348
- } & {
5349
- label?: string | null | undefined;
5350
- direction?: string | null | undefined;
5351
- }) | ({
5352
- type: "embed";
5353
- data: {
5354
- embed_url: string;
5355
- type: string;
5356
- } & {
5357
- version?: string | number | null;
5358
- title?: string | null | undefined;
5359
- author_name?: string | null | undefined;
5360
- author_url?: string | null | undefined;
5361
- provider_name?: string | null | undefined;
5362
- provider_url?: string | null | undefined;
5363
- cache_age?: string | number | null;
5364
- thumbnail_url?: string | null | undefined;
5365
- thumbnail_width?: number | null | undefined;
5366
- thumbnail_height?: number | null | undefined;
5367
- html?: string | null | undefined;
5368
- } & {
5369
- __TYPE__: "EmbedContent";
5370
- all: unknown;
5371
- };
5372
- } & {
5373
- label?: string | null | undefined;
5374
- direction?: string | null | undefined;
5375
- }) | ({
5376
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5377
- content: {
5378
- text: string;
5379
- } & {
5380
- spans?: ({
5381
- data: ({
5382
- __TYPE__: "ImageLink";
5383
- } & {
5384
- id: string;
5385
- url: string;
5386
- height: string;
5387
- width: string;
5388
- size: string;
5389
- name: string;
5390
- kind: string;
5391
- } & {
5392
- date?: string | null | undefined;
5393
- }) | ({
5394
- id: string;
5395
- url: string;
5396
- name: string;
5397
- kind: string;
5398
- size: string;
5399
- } & {
5400
- date?: string | null | undefined;
5401
- } & {
5402
- __TYPE__: "FileLink";
5403
- } & {
5404
- size?: string;
5405
- }) | ({
5406
- __TYPE__: "DocumentLink";
5407
- } & {
5408
- id: string;
5409
- }) | ({
5410
- __TYPE__: "ExternalLink";
5411
- } & {
5412
- url: string;
5413
- } & {
5414
- kind?: "web";
5415
- target?: string | null | undefined;
5416
- preview?: {
5417
- title?: string;
5418
- } | null | undefined;
5419
- });
5420
- start: number;
5421
- end: number;
5422
- type: "hyperlink";
5423
- } | {
5424
- data: string;
5425
- start: number;
5426
- end: number;
5427
- type: "label";
5428
- } | {
5429
- start: number;
5430
- end: number;
5431
- type: "strong" | "em" | "list-item";
5432
- })[];
4489
+ width: number;
4490
+ height: number;
4491
+ };
4492
+ width: number;
4493
+ height: number;
4494
+ edit: {
4495
+ zoom: number;
4496
+ crop: {
4497
+ x: number;
4498
+ y: number;
4499
+ };
4500
+ background: string;
4501
+ };
4502
+ } & {
4503
+ url?: string;
4504
+ credits?: string | null;
4505
+ alt?: string | null;
4506
+ provider?: string | null | undefined;
5433
4507
  };
5434
- } & {
5435
- label?: string;
5436
- direction?: string;
5437
- }))[];
5438
- } | {
5439
- __TYPE__: "SeparatorContent";
5440
- } | import("./fields").GroupContent | {
5441
- __TYPE__: "UIDContent";
4508
+ };
4509
+ } & {
4510
+ __TYPE__: "ImageContent";
4511
+ }) | {
4512
+ __TYPE__: "IntegrationFieldsContent";
5442
4513
  value: string;
5443
4514
  } | {
5444
- __TYPE__: "SliceContentType";
5445
- value: {
5446
- key: string;
4515
+ __TYPE__: "LinkContent";
4516
+ value: ({
4517
+ __TYPE__: "ImageLink";
4518
+ } & {
4519
+ id: string;
4520
+ url: string;
4521
+ height: string;
4522
+ width: string;
4523
+ size: string;
5447
4524
  name: string;
5448
- maybeLabel: string | undefined;
5449
- widget: {
5450
- type: string;
5451
- __TYPE__: "EmptyContent";
5452
- } | {
5453
- __TYPE__: "BooleanContent";
5454
- value: boolean;
5455
- } | ({
5456
- embed_url: string;
5457
- type: string;
5458
- } & {
5459
- version?: string | number | null;
5460
- title?: string | null | undefined;
5461
- author_name?: string | null | undefined;
5462
- author_url?: string | null | undefined;
5463
- provider_name?: string | null | undefined;
5464
- provider_url?: string | null | undefined;
5465
- cache_age?: string | number | null;
5466
- thumbnail_url?: string | null | undefined;
5467
- thumbnail_width?: number | null | undefined;
5468
- thumbnail_height?: number | null | undefined;
5469
- html?: string | null | undefined;
5470
- } & {
5471
- __TYPE__: "EmbedContent";
5472
- all: unknown;
5473
- }) | {
5474
- type: "Color";
5475
- value: string;
5476
- __TYPE__: "FieldContent";
5477
- } | {
5478
- type: "Date";
5479
- value: string;
5480
- __TYPE__: "FieldContent";
5481
- } | {
5482
- type: "Number";
5483
- value: string;
5484
- __TYPE__: "FieldContent";
5485
- } | {
5486
- type: "Range";
5487
- value: string;
5488
- __TYPE__: "FieldContent";
5489
- } | {
5490
- type: "Select";
5491
- value: string;
5492
- __TYPE__: "FieldContent";
5493
- } | {
5494
- type: "Text";
5495
- value: string;
5496
- __TYPE__: "FieldContent";
5497
- } | {
5498
- type: "Timestamp";
5499
- value: string;
5500
- __TYPE__: "FieldContent";
5501
- } | ({
5502
- position: {
5503
- lat: number;
5504
- lng: number;
5505
- };
5506
- } & {
5507
- __TYPE__: "GeoPointContent";
5508
- }) | ({
4525
+ kind: string;
4526
+ } & {
4527
+ date?: string | null | undefined;
4528
+ }) | ({
4529
+ id: string;
4530
+ url: string;
4531
+ name: string;
4532
+ kind: string;
4533
+ size: string;
4534
+ } & {
4535
+ date?: string | null | undefined;
4536
+ } & {
4537
+ __TYPE__: "FileLink";
4538
+ } & {
4539
+ size?: string;
4540
+ }) | ({
4541
+ __TYPE__: "DocumentLink";
4542
+ } & {
4543
+ id: string;
4544
+ }) | ({
4545
+ __TYPE__: "ExternalLink";
4546
+ } & {
4547
+ url: string;
4548
+ } & {
4549
+ kind?: "web";
4550
+ target?: string | null | undefined;
4551
+ preview?: {
4552
+ title?: string;
4553
+ } | null | undefined;
4554
+ });
4555
+ } | {
4556
+ __TYPE__: "StructuredTextContent";
4557
+ value: (({
4558
+ type: "image";
4559
+ data: {
5509
4560
  origin: {
5510
4561
  id: string;
5511
4562
  url: string;
@@ -5528,39 +4579,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5528
4579
  alt?: string | null;
5529
4580
  provider?: string | null | undefined;
5530
4581
  } & {
5531
- thumbnails?: {
5532
- [x: string]: {
5533
- origin: {
5534
- id: string;
5535
- url: string;
5536
- width: number;
5537
- height: number;
5538
- };
5539
- width: number;
5540
- height: number;
5541
- edit: {
5542
- zoom: number;
5543
- crop: {
5544
- x: number;
5545
- y: number;
5546
- };
5547
- background: string;
5548
- };
5549
- } & {
5550
- url?: string;
5551
- credits?: string | null;
5552
- alt?: string | null;
5553
- provider?: string | null | undefined;
5554
- };
5555
- };
5556
- } & {
5557
- __TYPE__: "ImageContent";
5558
- }) | {
5559
- __TYPE__: "IntegrationFieldsContent";
5560
- value: string;
5561
- } | {
5562
- __TYPE__: "LinkContent";
5563
- value: ({
4582
+ linkTo?: ({
5564
4583
  __TYPE__: "ImageLink";
5565
4584
  } & {
5566
4585
  id: string;
@@ -5598,229 +4617,193 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5598
4617
  preview?: {
5599
4618
  title?: string;
5600
4619
  } | null | undefined;
5601
- });
5602
- } | {
5603
- __TYPE__: "StructuredTextContent";
5604
- value: (({
5605
- type: "image";
5606
- data: {
5607
- origin: {
5608
- id: string;
5609
- url: string;
5610
- width: number;
5611
- height: number;
5612
- };
5613
- width: number;
5614
- height: number;
5615
- edit: {
5616
- zoom: number;
5617
- crop: {
5618
- x: number;
5619
- y: number;
5620
- };
5621
- background: string;
5622
- };
5623
- } & {
5624
- url?: string;
5625
- credits?: string | null;
5626
- alt?: string | null;
5627
- provider?: string | null | undefined;
5628
- } & {
5629
- linkTo?: ({
5630
- __TYPE__: "ImageLink";
5631
- } & {
5632
- id: string;
5633
- url: string;
5634
- height: string;
5635
- width: string;
5636
- size: string;
5637
- name: string;
5638
- kind: string;
5639
- } & {
5640
- date?: string | null | undefined;
5641
- }) | ({
5642
- id: string;
5643
- url: string;
5644
- name: string;
5645
- kind: string;
5646
- size: string;
5647
- } & {
5648
- date?: string | null | undefined;
5649
- } & {
5650
- __TYPE__: "FileLink";
5651
- } & {
5652
- size?: string;
5653
- }) | ({
5654
- __TYPE__: "DocumentLink";
5655
- } & {
5656
- id: string;
5657
- }) | ({
5658
- __TYPE__: "ExternalLink";
5659
- } & {
5660
- url: string;
5661
- } & {
5662
- kind?: "web";
5663
- target?: string | null | undefined;
5664
- preview?: {
5665
- title?: string;
5666
- } | null | undefined;
5667
- }) | null | undefined;
5668
- };
5669
- } & {
5670
- label?: string | null | undefined;
5671
- direction?: string | null | undefined;
5672
- }) | ({
5673
- type: "embed";
5674
- data: {
5675
- embed_url: string;
5676
- type: string;
4620
+ }) | null | undefined;
4621
+ };
4622
+ } & {
4623
+ label?: string | null | undefined;
4624
+ direction?: string | null | undefined;
4625
+ }) | ({
4626
+ type: "embed";
4627
+ data: {
4628
+ embed_url: string;
4629
+ type: string;
4630
+ } & {
4631
+ version?: string | number | null;
4632
+ title?: string | null | undefined;
4633
+ author_name?: string | null | undefined;
4634
+ author_url?: string | null | undefined;
4635
+ provider_name?: string | null | undefined;
4636
+ provider_url?: string | null | undefined;
4637
+ cache_age?: string | number | null;
4638
+ thumbnail_url?: string | null | undefined;
4639
+ thumbnail_width?: number | null | undefined;
4640
+ thumbnail_height?: number | null | undefined;
4641
+ html?: string | null | undefined;
4642
+ } & {
4643
+ __TYPE__: "EmbedContent";
4644
+ all: unknown;
4645
+ };
4646
+ } & {
4647
+ label?: string | null | undefined;
4648
+ direction?: string | null | undefined;
4649
+ }) | ({
4650
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
4651
+ content: {
4652
+ text: string;
4653
+ } & {
4654
+ spans?: ({
4655
+ data: ({
4656
+ __TYPE__: "ImageLink";
5677
4657
  } & {
5678
- version?: string | number | null;
5679
- title?: string | null | undefined;
5680
- author_name?: string | null | undefined;
5681
- author_url?: string | null | undefined;
5682
- provider_name?: string | null | undefined;
5683
- provider_url?: string | null | undefined;
5684
- cache_age?: string | number | null;
5685
- thumbnail_url?: string | null | undefined;
5686
- thumbnail_width?: number | null | undefined;
5687
- thumbnail_height?: number | null | undefined;
5688
- html?: string | null | undefined;
4658
+ id: string;
4659
+ url: string;
4660
+ height: string;
4661
+ width: string;
4662
+ size: string;
4663
+ name: string;
4664
+ kind: string;
5689
4665
  } & {
5690
- __TYPE__: "EmbedContent";
5691
- all: unknown;
5692
- };
5693
- } & {
5694
- label?: string | null | undefined;
5695
- direction?: string | null | undefined;
5696
- }) | ({
5697
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5698
- content: {
5699
- text: string;
4666
+ date?: string | null | undefined;
4667
+ }) | ({
4668
+ id: string;
4669
+ url: string;
4670
+ name: string;
4671
+ kind: string;
4672
+ size: string;
5700
4673
  } & {
5701
- spans?: ({
5702
- data: ({
5703
- __TYPE__: "ImageLink";
5704
- } & {
5705
- id: string;
5706
- url: string;
5707
- height: string;
5708
- width: string;
5709
- size: string;
5710
- name: string;
5711
- kind: string;
5712
- } & {
5713
- date?: string | null | undefined;
5714
- }) | ({
5715
- id: string;
5716
- url: string;
5717
- name: string;
5718
- kind: string;
5719
- size: string;
5720
- } & {
5721
- date?: string | null | undefined;
5722
- } & {
5723
- __TYPE__: "FileLink";
5724
- } & {
5725
- size?: string;
5726
- }) | ({
5727
- __TYPE__: "DocumentLink";
5728
- } & {
5729
- id: string;
5730
- }) | ({
5731
- __TYPE__: "ExternalLink";
5732
- } & {
5733
- url: string;
5734
- } & {
5735
- kind?: "web";
5736
- target?: string | null | undefined;
5737
- preview?: {
5738
- title?: string;
5739
- } | null | undefined;
5740
- });
5741
- start: number;
5742
- end: number;
5743
- type: "hyperlink";
5744
- } | {
5745
- data: string;
5746
- start: number;
5747
- end: number;
5748
- type: "label";
5749
- } | {
5750
- start: number;
5751
- end: number;
5752
- type: "strong" | "em" | "list-item";
5753
- })[];
5754
- };
5755
- } & {
5756
- label?: string;
5757
- direction?: string;
5758
- }))[];
5759
- } | {
5760
- __TYPE__: "SeparatorContent";
5761
- } | {
5762
- __TYPE__: "CompositeSliceContent";
5763
- nonRepeat: {
5764
- [x: string]: {
5765
- type: string;
5766
- __TYPE__: "EmptyContent";
5767
- } | {
5768
- __TYPE__: "BooleanContent";
5769
- value: boolean;
5770
- } | ({
5771
- embed_url: string;
5772
- type: string;
4674
+ date?: string | null | undefined;
5773
4675
  } & {
5774
- version?: string | number | null;
5775
- title?: string | null | undefined;
5776
- author_name?: string | null | undefined;
5777
- author_url?: string | null | undefined;
5778
- provider_name?: string | null | undefined;
5779
- provider_url?: string | null | undefined;
5780
- cache_age?: string | number | null;
5781
- thumbnail_url?: string | null | undefined;
5782
- thumbnail_width?: number | null | undefined;
5783
- thumbnail_height?: number | null | undefined;
5784
- html?: string | null | undefined;
4676
+ __TYPE__: "FileLink";
5785
4677
  } & {
5786
- __TYPE__: "EmbedContent";
5787
- all: unknown;
5788
- }) | {
5789
- type: "Color";
5790
- value: string;
5791
- __TYPE__: "FieldContent";
5792
- } | {
5793
- type: "Date";
5794
- value: string;
5795
- __TYPE__: "FieldContent";
5796
- } | {
5797
- type: "Number";
5798
- value: string;
5799
- __TYPE__: "FieldContent";
5800
- } | {
5801
- type: "Range";
5802
- value: string;
5803
- __TYPE__: "FieldContent";
5804
- } | {
5805
- type: "Select";
5806
- value: string;
5807
- __TYPE__: "FieldContent";
5808
- } | {
5809
- type: "Text";
5810
- value: string;
5811
- __TYPE__: "FieldContent";
5812
- } | {
5813
- type: "Timestamp";
5814
- value: string;
5815
- __TYPE__: "FieldContent";
5816
- } | ({
5817
- position: {
5818
- lat: number;
5819
- lng: number;
5820
- };
4678
+ size?: string;
4679
+ }) | ({
4680
+ __TYPE__: "DocumentLink";
5821
4681
  } & {
5822
- __TYPE__: "GeoPointContent";
4682
+ id: string;
5823
4683
  }) | ({
4684
+ __TYPE__: "ExternalLink";
4685
+ } & {
4686
+ url: string;
4687
+ } & {
4688
+ kind?: "web";
4689
+ target?: string | null | undefined;
4690
+ preview?: {
4691
+ title?: string;
4692
+ } | null | undefined;
4693
+ });
4694
+ start: number;
4695
+ end: number;
4696
+ type: "hyperlink";
4697
+ } | {
4698
+ data: string;
4699
+ start: number;
4700
+ end: number;
4701
+ type: "label";
4702
+ } | {
4703
+ start: number;
4704
+ end: number;
4705
+ type: "strong" | "em" | "list-item";
4706
+ })[];
4707
+ };
4708
+ } & {
4709
+ label?: string;
4710
+ direction?: string;
4711
+ }))[];
4712
+ } | {
4713
+ __TYPE__: "SeparatorContent";
4714
+ } | import("./fields").GroupContent | {
4715
+ __TYPE__: "UIDContent";
4716
+ value: string;
4717
+ } | {
4718
+ __TYPE__: "SliceContentType";
4719
+ value: {
4720
+ key: string;
4721
+ name: string;
4722
+ maybeLabel: string | undefined;
4723
+ widget: {
4724
+ type: string;
4725
+ __TYPE__: "EmptyContent";
4726
+ } | {
4727
+ __TYPE__: "BooleanContent";
4728
+ value: boolean;
4729
+ } | ({
4730
+ embed_url: string;
4731
+ type: string;
4732
+ } & {
4733
+ version?: string | number | null;
4734
+ title?: string | null | undefined;
4735
+ author_name?: string | null | undefined;
4736
+ author_url?: string | null | undefined;
4737
+ provider_name?: string | null | undefined;
4738
+ provider_url?: string | null | undefined;
4739
+ cache_age?: string | number | null;
4740
+ thumbnail_url?: string | null | undefined;
4741
+ thumbnail_width?: number | null | undefined;
4742
+ thumbnail_height?: number | null | undefined;
4743
+ html?: string | null | undefined;
4744
+ } & {
4745
+ __TYPE__: "EmbedContent";
4746
+ all: unknown;
4747
+ }) | {
4748
+ type: "Color";
4749
+ value: string;
4750
+ __TYPE__: "FieldContent";
4751
+ } | {
4752
+ type: "Date";
4753
+ value: string;
4754
+ __TYPE__: "FieldContent";
4755
+ } | {
4756
+ type: "Number";
4757
+ value: string;
4758
+ __TYPE__: "FieldContent";
4759
+ } | {
4760
+ type: "Range";
4761
+ value: string;
4762
+ __TYPE__: "FieldContent";
4763
+ } | {
4764
+ type: "Select";
4765
+ value: string;
4766
+ __TYPE__: "FieldContent";
4767
+ } | {
4768
+ type: "Text";
4769
+ value: string;
4770
+ __TYPE__: "FieldContent";
4771
+ } | {
4772
+ type: "Timestamp";
4773
+ value: string;
4774
+ __TYPE__: "FieldContent";
4775
+ } | ({
4776
+ position: {
4777
+ lat: number;
4778
+ lng: number;
4779
+ };
4780
+ } & {
4781
+ __TYPE__: "GeoPointContent";
4782
+ }) | ({
4783
+ origin: {
4784
+ id: string;
4785
+ url: string;
4786
+ width: number;
4787
+ height: number;
4788
+ };
4789
+ width: number;
4790
+ height: number;
4791
+ edit: {
4792
+ zoom: number;
4793
+ crop: {
4794
+ x: number;
4795
+ y: number;
4796
+ };
4797
+ background: string;
4798
+ };
4799
+ } & {
4800
+ url?: string;
4801
+ credits?: string | null;
4802
+ alt?: string | null;
4803
+ provider?: string | null | undefined;
4804
+ } & {
4805
+ thumbnails?: {
4806
+ [x: string]: {
5824
4807
  origin: {
5825
4808
  id: string;
5826
4809
  url: string;
@@ -5842,242 +4825,217 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5842
4825
  credits?: string | null;
5843
4826
  alt?: string | null;
5844
4827
  provider?: string | null | undefined;
5845
- } & {
5846
- thumbnails?: {
5847
- [x: string]: {
5848
- origin: {
5849
- id: string;
5850
- url: string;
5851
- width: number;
5852
- height: number;
5853
- };
5854
- width: number;
5855
- height: number;
5856
- edit: {
5857
- zoom: number;
5858
- crop: {
5859
- x: number;
5860
- y: number;
5861
- };
5862
- background: string;
5863
- };
5864
- } & {
5865
- url?: string;
5866
- credits?: string | null;
5867
- alt?: string | null;
5868
- provider?: string | null | undefined;
5869
- };
5870
- };
5871
- } & {
5872
- __TYPE__: "ImageContent";
5873
- }) | {
5874
- __TYPE__: "IntegrationFieldsContent";
5875
- value: string;
5876
- } | {
5877
- __TYPE__: "LinkContent";
5878
- value: ({
5879
- __TYPE__: "ImageLink";
5880
- } & {
5881
- id: string;
5882
- url: string;
5883
- height: string;
5884
- width: string;
5885
- size: string;
5886
- name: string;
5887
- kind: string;
5888
- } & {
5889
- date?: string | null | undefined;
5890
- }) | ({
5891
- id: string;
5892
- url: string;
5893
- name: string;
5894
- kind: string;
5895
- size: string;
5896
- } & {
5897
- date?: string | null | undefined;
5898
- } & {
5899
- __TYPE__: "FileLink";
5900
- } & {
5901
- size?: string;
5902
- }) | ({
5903
- __TYPE__: "DocumentLink";
5904
- } & {
4828
+ };
4829
+ };
4830
+ } & {
4831
+ __TYPE__: "ImageContent";
4832
+ }) | {
4833
+ __TYPE__: "IntegrationFieldsContent";
4834
+ value: string;
4835
+ } | {
4836
+ __TYPE__: "LinkContent";
4837
+ value: ({
4838
+ __TYPE__: "ImageLink";
4839
+ } & {
4840
+ id: string;
4841
+ url: string;
4842
+ height: string;
4843
+ width: string;
4844
+ size: string;
4845
+ name: string;
4846
+ kind: string;
4847
+ } & {
4848
+ date?: string | null | undefined;
4849
+ }) | ({
4850
+ id: string;
4851
+ url: string;
4852
+ name: string;
4853
+ kind: string;
4854
+ size: string;
4855
+ } & {
4856
+ date?: string | null | undefined;
4857
+ } & {
4858
+ __TYPE__: "FileLink";
4859
+ } & {
4860
+ size?: string;
4861
+ }) | ({
4862
+ __TYPE__: "DocumentLink";
4863
+ } & {
4864
+ id: string;
4865
+ }) | ({
4866
+ __TYPE__: "ExternalLink";
4867
+ } & {
4868
+ url: string;
4869
+ } & {
4870
+ kind?: "web";
4871
+ target?: string | null | undefined;
4872
+ preview?: {
4873
+ title?: string;
4874
+ } | null | undefined;
4875
+ });
4876
+ } | {
4877
+ __TYPE__: "StructuredTextContent";
4878
+ value: (({
4879
+ type: "image";
4880
+ data: {
4881
+ origin: {
5905
4882
  id: string;
5906
- }) | ({
5907
- __TYPE__: "ExternalLink";
5908
- } & {
5909
4883
  url: string;
5910
- } & {
5911
- kind?: "web";
5912
- target?: string | null | undefined;
5913
- preview?: {
5914
- title?: string;
5915
- } | null | undefined;
5916
- });
5917
- } | {
5918
- __TYPE__: "StructuredTextContent";
5919
- value: (({
5920
- type: "image";
5921
- data: {
5922
- origin: {
5923
- id: string;
5924
- url: string;
5925
- width: number;
5926
- height: number;
5927
- };
5928
- width: number;
5929
- height: number;
5930
- edit: {
5931
- zoom: number;
5932
- crop: {
5933
- x: number;
5934
- y: number;
5935
- };
5936
- background: string;
5937
- };
5938
- } & {
5939
- url?: string;
5940
- credits?: string | null;
5941
- alt?: string | null;
5942
- provider?: string | null | undefined;
5943
- } & {
5944
- linkTo?: ({
5945
- __TYPE__: "ImageLink";
5946
- } & {
5947
- id: string;
5948
- url: string;
5949
- height: string;
5950
- width: string;
5951
- size: string;
5952
- name: string;
5953
- kind: string;
5954
- } & {
5955
- date?: string | null | undefined;
5956
- }) | ({
5957
- id: string;
5958
- url: string;
5959
- name: string;
5960
- kind: string;
5961
- size: string;
5962
- } & {
5963
- date?: string | null | undefined;
5964
- } & {
5965
- __TYPE__: "FileLink";
5966
- } & {
5967
- size?: string;
5968
- }) | ({
5969
- __TYPE__: "DocumentLink";
5970
- } & {
5971
- id: string;
5972
- }) | ({
5973
- __TYPE__: "ExternalLink";
5974
- } & {
5975
- url: string;
5976
- } & {
5977
- kind?: "web";
5978
- target?: string | null | undefined;
5979
- preview?: {
5980
- title?: string;
5981
- } | null | undefined;
5982
- }) | null | undefined;
4884
+ width: number;
4885
+ height: number;
4886
+ };
4887
+ width: number;
4888
+ height: number;
4889
+ edit: {
4890
+ zoom: number;
4891
+ crop: {
4892
+ x: number;
4893
+ y: number;
5983
4894
  };
4895
+ background: string;
4896
+ };
4897
+ } & {
4898
+ url?: string;
4899
+ credits?: string | null;
4900
+ alt?: string | null;
4901
+ provider?: string | null | undefined;
4902
+ } & {
4903
+ linkTo?: ({
4904
+ __TYPE__: "ImageLink";
5984
4905
  } & {
5985
- label?: string | null | undefined;
5986
- direction?: string | null | undefined;
4906
+ id: string;
4907
+ url: string;
4908
+ height: string;
4909
+ width: string;
4910
+ size: string;
4911
+ name: string;
4912
+ kind: string;
4913
+ } & {
4914
+ date?: string | null | undefined;
5987
4915
  }) | ({
5988
- type: "embed";
5989
- data: {
5990
- embed_url: string;
5991
- type: string;
5992
- } & {
5993
- version?: string | number | null;
5994
- title?: string | null | undefined;
5995
- author_name?: string | null | undefined;
5996
- author_url?: string | null | undefined;
5997
- provider_name?: string | null | undefined;
5998
- provider_url?: string | null | undefined;
5999
- cache_age?: string | number | null;
6000
- thumbnail_url?: string | null | undefined;
6001
- thumbnail_width?: number | null | undefined;
6002
- thumbnail_height?: number | null | undefined;
6003
- html?: string | null | undefined;
6004
- } & {
6005
- __TYPE__: "EmbedContent";
6006
- all: unknown;
6007
- };
4916
+ id: string;
4917
+ url: string;
4918
+ name: string;
4919
+ kind: string;
4920
+ size: string;
6008
4921
  } & {
6009
- label?: string | null | undefined;
6010
- direction?: string | null | undefined;
4922
+ date?: string | null | undefined;
4923
+ } & {
4924
+ __TYPE__: "FileLink";
4925
+ } & {
4926
+ size?: string;
6011
4927
  }) | ({
6012
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6013
- content: {
6014
- text: string;
6015
- } & {
6016
- spans?: ({
6017
- data: ({
6018
- __TYPE__: "ImageLink";
6019
- } & {
6020
- id: string;
6021
- url: string;
6022
- height: string;
6023
- width: string;
6024
- size: string;
6025
- name: string;
6026
- kind: string;
6027
- } & {
6028
- date?: string | null | undefined;
6029
- }) | ({
6030
- id: string;
6031
- url: string;
6032
- name: string;
6033
- kind: string;
6034
- size: string;
6035
- } & {
6036
- date?: string | null | undefined;
6037
- } & {
6038
- __TYPE__: "FileLink";
6039
- } & {
6040
- size?: string;
6041
- }) | ({
6042
- __TYPE__: "DocumentLink";
6043
- } & {
6044
- id: string;
6045
- }) | ({
6046
- __TYPE__: "ExternalLink";
6047
- } & {
6048
- url: string;
6049
- } & {
6050
- kind?: "web";
6051
- target?: string | null | undefined;
6052
- preview?: {
6053
- title?: string;
6054
- } | null | undefined;
6055
- });
6056
- start: number;
6057
- end: number;
6058
- type: "hyperlink";
6059
- } | {
6060
- data: string;
6061
- start: number;
6062
- end: number;
6063
- type: "label";
6064
- } | {
6065
- start: number;
6066
- end: number;
6067
- type: "strong" | "em" | "list-item";
6068
- })[];
6069
- };
4928
+ __TYPE__: "DocumentLink";
6070
4929
  } & {
6071
- label?: string;
6072
- direction?: string;
6073
- }))[];
6074
- } | {
6075
- __TYPE__: "SeparatorContent";
4930
+ id: string;
4931
+ }) | ({
4932
+ __TYPE__: "ExternalLink";
4933
+ } & {
4934
+ url: string;
4935
+ } & {
4936
+ kind?: "web";
4937
+ target?: string | null | undefined;
4938
+ preview?: {
4939
+ title?: string;
4940
+ } | null | undefined;
4941
+ }) | null | undefined;
6076
4942
  };
6077
- };
6078
- repeat: {
6079
- __TYPE__: "GroupItemContent";
6080
- value: [string, {
4943
+ } & {
4944
+ label?: string | null | undefined;
4945
+ direction?: string | null | undefined;
4946
+ }) | ({
4947
+ type: "embed";
4948
+ data: {
4949
+ embed_url: string;
4950
+ type: string;
4951
+ } & {
4952
+ version?: string | number | null;
4953
+ title?: string | null | undefined;
4954
+ author_name?: string | null | undefined;
4955
+ author_url?: string | null | undefined;
4956
+ provider_name?: string | null | undefined;
4957
+ provider_url?: string | null | undefined;
4958
+ cache_age?: string | number | null;
4959
+ thumbnail_url?: string | null | undefined;
4960
+ thumbnail_width?: number | null | undefined;
4961
+ thumbnail_height?: number | null | undefined;
4962
+ html?: string | null | undefined;
4963
+ } & {
4964
+ __TYPE__: "EmbedContent";
4965
+ all: unknown;
4966
+ };
4967
+ } & {
4968
+ label?: string | null | undefined;
4969
+ direction?: string | null | undefined;
4970
+ }) | ({
4971
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
4972
+ content: {
4973
+ text: string;
4974
+ } & {
4975
+ spans?: ({
4976
+ data: ({
4977
+ __TYPE__: "ImageLink";
4978
+ } & {
4979
+ id: string;
4980
+ url: string;
4981
+ height: string;
4982
+ width: string;
4983
+ size: string;
4984
+ name: string;
4985
+ kind: string;
4986
+ } & {
4987
+ date?: string | null | undefined;
4988
+ }) | ({
4989
+ id: string;
4990
+ url: string;
4991
+ name: string;
4992
+ kind: string;
4993
+ size: string;
4994
+ } & {
4995
+ date?: string | null | undefined;
4996
+ } & {
4997
+ __TYPE__: "FileLink";
4998
+ } & {
4999
+ size?: string;
5000
+ }) | ({
5001
+ __TYPE__: "DocumentLink";
5002
+ } & {
5003
+ id: string;
5004
+ }) | ({
5005
+ __TYPE__: "ExternalLink";
5006
+ } & {
5007
+ url: string;
5008
+ } & {
5009
+ kind?: "web";
5010
+ target?: string | null | undefined;
5011
+ preview?: {
5012
+ title?: string;
5013
+ } | null | undefined;
5014
+ });
5015
+ start: number;
5016
+ end: number;
5017
+ type: "hyperlink";
5018
+ } | {
5019
+ data: string;
5020
+ start: number;
5021
+ end: number;
5022
+ type: "label";
5023
+ } | {
5024
+ start: number;
5025
+ end: number;
5026
+ type: "strong" | "em" | "list-item";
5027
+ })[];
5028
+ };
5029
+ } & {
5030
+ label?: string;
5031
+ direction?: string;
5032
+ }))[];
5033
+ } | {
5034
+ __TYPE__: "SeparatorContent";
5035
+ } | import("./fields").GroupContent | {
5036
+ __TYPE__: "CompositeSliceContent";
5037
+ nonRepeat: {
5038
+ [x: string]: {
6081
5039
  type: string;
6082
5040
  __TYPE__: "EmptyContent";
6083
5041
  } | {
@@ -6389,13 +5347,11 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6389
5347
  }))[];
6390
5348
  } | {
6391
5349
  __TYPE__: "SeparatorContent";
6392
- }][];
6393
- }[];
6394
- } | {
6395
- __TYPE__: "SharedSliceContent";
6396
- variation: string;
6397
- primary: {
6398
- [x: string]: {
5350
+ };
5351
+ };
5352
+ repeat: {
5353
+ __TYPE__: "GroupItemContent";
5354
+ value: [string, {
6399
5355
  type: string;
6400
5356
  __TYPE__: "EmptyContent";
6401
5357
  } | {
@@ -6707,11 +5663,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6707
5663
  }))[];
6708
5664
  } | {
6709
5665
  __TYPE__: "SeparatorContent";
6710
- } | import("./fields").GroupContent;
6711
- };
6712
- items: {
6713
- __TYPE__: "GroupItemContent";
6714
- value: [string, {
5666
+ } | import("./fields").GroupContent][];
5667
+ }[];
5668
+ } | {
5669
+ __TYPE__: "SharedSliceContent";
5670
+ variation: string;
5671
+ primary: {
5672
+ [x: string]: {
6715
5673
  type: string;
6716
5674
  __TYPE__: "EmptyContent";
6717
5675
  } | {
@@ -7023,11 +5981,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7023
5981
  }))[];
7024
5982
  } | {
7025
5983
  __TYPE__: "SeparatorContent";
7026
- }][];
7027
- }[];
7028
- } | {
7029
- __TYPE__: "GroupContentType";
7030
- value: {
5984
+ } | import("./fields").GroupContent;
5985
+ };
5986
+ items: {
7031
5987
  __TYPE__: "GroupItemContent";
7032
5988
  value: [string, {
7033
5989
  type: string;
@@ -7341,7 +6297,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7341
6297
  }))[];
7342
6298
  } | {
7343
6299
  __TYPE__: "SeparatorContent";
7344
- }][];
6300
+ } | import("./fields").GroupContent][];
7345
6301
  }[];
7346
6302
  };
7347
6303
  }[];