@prismicio/types-internal 2.4.0-alpha.3 → 2.4.0-alpha.5

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.
@@ -1,6 +1,6 @@
1
1
  import * as t from "io-ts";
2
2
  import type { ContentPath, TraverseSliceContentFn, TraverseWidgetContentFn } from "../../../../_internal/utils";
3
- import type { SharedSlice, VariationFields } from "../../../../customtypes";
3
+ import { type SharedSlice, type VariationFields } from "../../../../customtypes";
4
4
  import { LegacyContentCtx, WithTypes } from "../../../LegacyContentCtx";
5
5
  import type { SharedSliceItemContent } from "../SliceItem";
6
6
  export declare const SharedSliceContentType = "SharedSliceContent";
@@ -320,6 +320,324 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
320
320
  }))[];
321
321
  } | {
322
322
  __TYPE__: "SeparatorContent";
323
+ } | {
324
+ __TYPE__: "GroupContentType";
325
+ value: {
326
+ __TYPE__: "GroupItemContent";
327
+ value: [string, {
328
+ type: string;
329
+ __TYPE__: "EmptyContent";
330
+ } | {
331
+ __TYPE__: "BooleanContent";
332
+ value: boolean;
333
+ } | ({
334
+ embed_url: string;
335
+ type: string;
336
+ } & {
337
+ version?: string | number | null;
338
+ title?: string | null | undefined;
339
+ author_name?: string | null | undefined;
340
+ author_url?: string | null | undefined;
341
+ provider_name?: string | null | undefined;
342
+ provider_url?: string | null | undefined;
343
+ cache_age?: string | number | null;
344
+ thumbnail_url?: string | null | undefined;
345
+ thumbnail_width?: number | null | undefined;
346
+ thumbnail_height?: number | null | undefined;
347
+ html?: string | null | undefined;
348
+ } & {
349
+ __TYPE__: "EmbedContent";
350
+ all: unknown;
351
+ }) | {
352
+ type: "Color";
353
+ value: string;
354
+ __TYPE__: "FieldContent";
355
+ } | {
356
+ type: "Date";
357
+ value: string;
358
+ __TYPE__: "FieldContent";
359
+ } | {
360
+ type: "Number";
361
+ value: string;
362
+ __TYPE__: "FieldContent";
363
+ } | {
364
+ type: "Range";
365
+ value: string;
366
+ __TYPE__: "FieldContent";
367
+ } | {
368
+ type: "Select";
369
+ value: string;
370
+ __TYPE__: "FieldContent";
371
+ } | {
372
+ type: "Text";
373
+ value: string;
374
+ __TYPE__: "FieldContent";
375
+ } | {
376
+ type: "Timestamp";
377
+ value: string;
378
+ __TYPE__: "FieldContent";
379
+ } | ({
380
+ position: {
381
+ lat: number;
382
+ lng: number;
383
+ };
384
+ } & {
385
+ __TYPE__: "GeoPointContent";
386
+ }) | ({
387
+ origin: {
388
+ id: string;
389
+ url: string;
390
+ width: number;
391
+ height: number;
392
+ };
393
+ width: number;
394
+ height: number;
395
+ edit: {
396
+ zoom: number;
397
+ crop: {
398
+ x: number;
399
+ y: number;
400
+ };
401
+ background: string;
402
+ };
403
+ } & {
404
+ url?: string;
405
+ credits?: string | null;
406
+ alt?: string | null;
407
+ provider?: string | null | undefined;
408
+ } & {
409
+ thumbnails?: {
410
+ [x: string]: {
411
+ origin: {
412
+ id: string;
413
+ url: string;
414
+ width: number;
415
+ height: number;
416
+ };
417
+ width: number;
418
+ height: number;
419
+ edit: {
420
+ zoom: number;
421
+ crop: {
422
+ x: number;
423
+ y: number;
424
+ };
425
+ background: string;
426
+ };
427
+ } & {
428
+ url?: string;
429
+ credits?: string | null;
430
+ alt?: string | null;
431
+ provider?: string | null | undefined;
432
+ };
433
+ };
434
+ } & {
435
+ __TYPE__: "ImageContent";
436
+ }) | {
437
+ __TYPE__: "IntegrationFieldsContent";
438
+ value: string;
439
+ } | {
440
+ __TYPE__: "LinkContent";
441
+ value: ({
442
+ __TYPE__: "ImageLink";
443
+ } & {
444
+ id: string;
445
+ url: string;
446
+ height: string;
447
+ width: string;
448
+ size: string;
449
+ name: string;
450
+ kind: string;
451
+ } & {
452
+ date?: string | null | undefined;
453
+ }) | ({
454
+ id: string;
455
+ url: string;
456
+ name: string;
457
+ kind: string;
458
+ size: string;
459
+ } & {
460
+ date?: string | null | undefined;
461
+ } & {
462
+ __TYPE__: "FileLink";
463
+ } & {
464
+ size?: string;
465
+ }) | ({
466
+ __TYPE__: "DocumentLink";
467
+ } & {
468
+ id: string;
469
+ }) | ({
470
+ __TYPE__: "ExternalLink";
471
+ } & {
472
+ url: string;
473
+ } & {
474
+ kind?: "web";
475
+ target?: string | null | undefined;
476
+ preview?: {
477
+ title?: string;
478
+ } | null | undefined;
479
+ });
480
+ } | {
481
+ __TYPE__: "StructuredTextContent";
482
+ value: (({
483
+ type: "image";
484
+ data: {
485
+ origin: {
486
+ id: string;
487
+ url: string;
488
+ width: number;
489
+ height: number;
490
+ };
491
+ width: number;
492
+ height: number;
493
+ edit: {
494
+ zoom: number;
495
+ crop: {
496
+ x: number;
497
+ y: number;
498
+ };
499
+ background: string;
500
+ };
501
+ } & {
502
+ url?: string;
503
+ credits?: string | null;
504
+ alt?: string | null;
505
+ provider?: string | null | undefined;
506
+ } & {
507
+ linkTo?: ({
508
+ __TYPE__: "ImageLink";
509
+ } & {
510
+ id: string;
511
+ url: string;
512
+ height: string;
513
+ width: string;
514
+ size: string;
515
+ name: string;
516
+ kind: string;
517
+ } & {
518
+ date?: string | null | undefined;
519
+ }) | ({
520
+ id: string;
521
+ url: string;
522
+ name: string;
523
+ kind: string;
524
+ size: string;
525
+ } & {
526
+ date?: string | null | undefined;
527
+ } & {
528
+ __TYPE__: "FileLink";
529
+ } & {
530
+ size?: string;
531
+ }) | ({
532
+ __TYPE__: "DocumentLink";
533
+ } & {
534
+ id: string;
535
+ }) | ({
536
+ __TYPE__: "ExternalLink";
537
+ } & {
538
+ url: string;
539
+ } & {
540
+ kind?: "web";
541
+ target?: string | null | undefined;
542
+ preview?: {
543
+ title?: string;
544
+ } | null | undefined;
545
+ }) | null | undefined;
546
+ };
547
+ } & {
548
+ label?: string | null | undefined;
549
+ direction?: string | null | undefined;
550
+ }) | ({
551
+ type: "embed";
552
+ data: {
553
+ embed_url: string;
554
+ type: string;
555
+ } & {
556
+ version?: string | number | null;
557
+ title?: string | null | undefined;
558
+ author_name?: string | null | undefined;
559
+ author_url?: string | null | undefined;
560
+ provider_name?: string | null | undefined;
561
+ provider_url?: string | null | undefined;
562
+ cache_age?: string | number | null;
563
+ thumbnail_url?: string | null | undefined;
564
+ thumbnail_width?: number | null | undefined;
565
+ thumbnail_height?: number | null | undefined;
566
+ html?: string | null | undefined;
567
+ } & {
568
+ __TYPE__: "EmbedContent";
569
+ all: unknown;
570
+ };
571
+ } & {
572
+ label?: string | null | undefined;
573
+ direction?: string | null | undefined;
574
+ }) | ({
575
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
576
+ content: {
577
+ text: string;
578
+ } & {
579
+ spans?: ({
580
+ data: ({
581
+ __TYPE__: "ImageLink";
582
+ } & {
583
+ id: string;
584
+ url: string;
585
+ height: string;
586
+ width: string;
587
+ size: string;
588
+ name: string;
589
+ kind: string;
590
+ } & {
591
+ date?: string | null | undefined;
592
+ }) | ({
593
+ id: string;
594
+ url: string;
595
+ name: string;
596
+ kind: string;
597
+ size: string;
598
+ } & {
599
+ date?: string | null | undefined;
600
+ } & {
601
+ __TYPE__: "FileLink";
602
+ } & {
603
+ size?: string;
604
+ }) | ({
605
+ __TYPE__: "DocumentLink";
606
+ } & {
607
+ id: string;
608
+ }) | ({
609
+ __TYPE__: "ExternalLink";
610
+ } & {
611
+ url: string;
612
+ } & {
613
+ kind?: "web";
614
+ target?: string | null | undefined;
615
+ preview?: {
616
+ title?: string;
617
+ } | null | undefined;
618
+ });
619
+ start: number;
620
+ end: number;
621
+ type: "hyperlink";
622
+ } | {
623
+ data: string;
624
+ start: number;
625
+ end: number;
626
+ type: "label";
627
+ } | {
628
+ start: number;
629
+ end: number;
630
+ type: "strong" | "em" | "list-item";
631
+ })[];
632
+ };
633
+ } & {
634
+ label?: string;
635
+ direction?: string;
636
+ }))[];
637
+ } | {
638
+ __TYPE__: "SeparatorContent";
639
+ }][];
640
+ }[];
323
641
  };
324
642
  };
325
643
  items: {
@@ -955,6 +1273,324 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
955
1273
  }))[];
956
1274
  } | {
957
1275
  __TYPE__: "SeparatorContent";
1276
+ } | {
1277
+ __TYPE__: "GroupContentType";
1278
+ value: {
1279
+ __TYPE__: "GroupItemContent";
1280
+ value: [string, {
1281
+ type: string;
1282
+ __TYPE__: "EmptyContent";
1283
+ } | {
1284
+ __TYPE__: "BooleanContent";
1285
+ value: boolean;
1286
+ } | ({
1287
+ embed_url: string;
1288
+ type: string;
1289
+ } & {
1290
+ version?: string | number | null;
1291
+ title?: string | null | undefined;
1292
+ author_name?: string | null | undefined;
1293
+ author_url?: string | null | undefined;
1294
+ provider_name?: string | null | undefined;
1295
+ provider_url?: string | null | undefined;
1296
+ cache_age?: string | number | null;
1297
+ thumbnail_url?: string | null | undefined;
1298
+ thumbnail_width?: number | null | undefined;
1299
+ thumbnail_height?: number | null | undefined;
1300
+ html?: string | null | undefined;
1301
+ } & {
1302
+ __TYPE__: "EmbedContent";
1303
+ all: unknown;
1304
+ }) | {
1305
+ type: "Color";
1306
+ value: string;
1307
+ __TYPE__: "FieldContent";
1308
+ } | {
1309
+ type: "Date";
1310
+ value: string;
1311
+ __TYPE__: "FieldContent";
1312
+ } | {
1313
+ type: "Number";
1314
+ value: string;
1315
+ __TYPE__: "FieldContent";
1316
+ } | {
1317
+ type: "Range";
1318
+ value: string;
1319
+ __TYPE__: "FieldContent";
1320
+ } | {
1321
+ type: "Select";
1322
+ value: string;
1323
+ __TYPE__: "FieldContent";
1324
+ } | {
1325
+ type: "Text";
1326
+ value: string;
1327
+ __TYPE__: "FieldContent";
1328
+ } | {
1329
+ type: "Timestamp";
1330
+ value: string;
1331
+ __TYPE__: "FieldContent";
1332
+ } | ({
1333
+ position: {
1334
+ lat: number;
1335
+ lng: number;
1336
+ };
1337
+ } & {
1338
+ __TYPE__: "GeoPointContent";
1339
+ }) | ({
1340
+ origin: {
1341
+ id: string;
1342
+ url: string;
1343
+ width: number;
1344
+ height: number;
1345
+ };
1346
+ width: number;
1347
+ height: number;
1348
+ edit: {
1349
+ zoom: number;
1350
+ crop: {
1351
+ x: number;
1352
+ y: number;
1353
+ };
1354
+ background: string;
1355
+ };
1356
+ } & {
1357
+ url?: string;
1358
+ credits?: string | null;
1359
+ alt?: string | null;
1360
+ provider?: string | null | undefined;
1361
+ } & {
1362
+ thumbnails?: {
1363
+ [x: string]: {
1364
+ origin: {
1365
+ id: string;
1366
+ url: string;
1367
+ width: number;
1368
+ height: number;
1369
+ };
1370
+ width: number;
1371
+ height: number;
1372
+ edit: {
1373
+ zoom: number;
1374
+ crop: {
1375
+ x: number;
1376
+ y: number;
1377
+ };
1378
+ background: string;
1379
+ };
1380
+ } & {
1381
+ url?: string;
1382
+ credits?: string | null;
1383
+ alt?: string | null;
1384
+ provider?: string | null | undefined;
1385
+ };
1386
+ };
1387
+ } & {
1388
+ __TYPE__: "ImageContent";
1389
+ }) | {
1390
+ __TYPE__: "IntegrationFieldsContent";
1391
+ value: string;
1392
+ } | {
1393
+ __TYPE__: "LinkContent";
1394
+ value: ({
1395
+ __TYPE__: "ImageLink";
1396
+ } & {
1397
+ id: string;
1398
+ url: string;
1399
+ height: string;
1400
+ width: string;
1401
+ size: string;
1402
+ name: string;
1403
+ kind: string;
1404
+ } & {
1405
+ date?: string | null | undefined;
1406
+ }) | ({
1407
+ id: string;
1408
+ url: string;
1409
+ name: string;
1410
+ kind: string;
1411
+ size: string;
1412
+ } & {
1413
+ date?: string | null | undefined;
1414
+ } & {
1415
+ __TYPE__: "FileLink";
1416
+ } & {
1417
+ size?: string;
1418
+ }) | ({
1419
+ __TYPE__: "DocumentLink";
1420
+ } & {
1421
+ id: string;
1422
+ }) | ({
1423
+ __TYPE__: "ExternalLink";
1424
+ } & {
1425
+ url: string;
1426
+ } & {
1427
+ kind?: "web";
1428
+ target?: string | null | undefined;
1429
+ preview?: {
1430
+ title?: string;
1431
+ } | null | undefined;
1432
+ });
1433
+ } | {
1434
+ __TYPE__: "StructuredTextContent";
1435
+ value: (({
1436
+ type: "image";
1437
+ data: {
1438
+ origin: {
1439
+ id: string;
1440
+ url: string;
1441
+ width: number;
1442
+ height: number;
1443
+ };
1444
+ width: number;
1445
+ height: number;
1446
+ edit: {
1447
+ zoom: number;
1448
+ crop: {
1449
+ x: number;
1450
+ y: number;
1451
+ };
1452
+ background: string;
1453
+ };
1454
+ } & {
1455
+ url?: string;
1456
+ credits?: string | null;
1457
+ alt?: string | null;
1458
+ provider?: string | null | undefined;
1459
+ } & {
1460
+ linkTo?: ({
1461
+ __TYPE__: "ImageLink";
1462
+ } & {
1463
+ id: string;
1464
+ url: string;
1465
+ height: string;
1466
+ width: string;
1467
+ size: string;
1468
+ name: string;
1469
+ kind: string;
1470
+ } & {
1471
+ date?: string | null | undefined;
1472
+ }) | ({
1473
+ id: string;
1474
+ url: string;
1475
+ name: string;
1476
+ kind: string;
1477
+ size: string;
1478
+ } & {
1479
+ date?: string | null | undefined;
1480
+ } & {
1481
+ __TYPE__: "FileLink";
1482
+ } & {
1483
+ size?: string;
1484
+ }) | ({
1485
+ __TYPE__: "DocumentLink";
1486
+ } & {
1487
+ id: string;
1488
+ }) | ({
1489
+ __TYPE__: "ExternalLink";
1490
+ } & {
1491
+ url: string;
1492
+ } & {
1493
+ kind?: "web";
1494
+ target?: string | null | undefined;
1495
+ preview?: {
1496
+ title?: string;
1497
+ } | null | undefined;
1498
+ }) | null | undefined;
1499
+ };
1500
+ } & {
1501
+ label?: string | null | undefined;
1502
+ direction?: string | null | undefined;
1503
+ }) | ({
1504
+ type: "embed";
1505
+ data: {
1506
+ embed_url: string;
1507
+ type: string;
1508
+ } & {
1509
+ version?: string | number | null;
1510
+ title?: string | null | undefined;
1511
+ author_name?: string | null | undefined;
1512
+ author_url?: string | null | undefined;
1513
+ provider_name?: string | null | undefined;
1514
+ provider_url?: string | null | undefined;
1515
+ cache_age?: string | number | null;
1516
+ thumbnail_url?: string | null | undefined;
1517
+ thumbnail_width?: number | null | undefined;
1518
+ thumbnail_height?: number | null | undefined;
1519
+ html?: string | null | undefined;
1520
+ } & {
1521
+ __TYPE__: "EmbedContent";
1522
+ all: unknown;
1523
+ };
1524
+ } & {
1525
+ label?: string | null | undefined;
1526
+ direction?: string | null | undefined;
1527
+ }) | ({
1528
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1529
+ content: {
1530
+ text: string;
1531
+ } & {
1532
+ spans?: ({
1533
+ data: ({
1534
+ __TYPE__: "ImageLink";
1535
+ } & {
1536
+ id: string;
1537
+ url: string;
1538
+ height: string;
1539
+ width: string;
1540
+ size: string;
1541
+ name: string;
1542
+ kind: string;
1543
+ } & {
1544
+ date?: string | null | undefined;
1545
+ }) | ({
1546
+ id: string;
1547
+ url: string;
1548
+ name: string;
1549
+ kind: string;
1550
+ size: string;
1551
+ } & {
1552
+ date?: string | null | undefined;
1553
+ } & {
1554
+ __TYPE__: "FileLink";
1555
+ } & {
1556
+ size?: string;
1557
+ }) | ({
1558
+ __TYPE__: "DocumentLink";
1559
+ } & {
1560
+ id: string;
1561
+ }) | ({
1562
+ __TYPE__: "ExternalLink";
1563
+ } & {
1564
+ url: string;
1565
+ } & {
1566
+ kind?: "web";
1567
+ target?: string | null | undefined;
1568
+ preview?: {
1569
+ title?: string;
1570
+ } | null | undefined;
1571
+ });
1572
+ start: number;
1573
+ end: number;
1574
+ type: "hyperlink";
1575
+ } | {
1576
+ data: string;
1577
+ start: number;
1578
+ end: number;
1579
+ type: "label";
1580
+ } | {
1581
+ start: number;
1582
+ end: number;
1583
+ type: "strong" | "em" | "list-item";
1584
+ })[];
1585
+ };
1586
+ } & {
1587
+ label?: string;
1588
+ direction?: string;
1589
+ }))[];
1590
+ } | {
1591
+ __TYPE__: "SeparatorContent";
1592
+ }][];
1593
+ }[];
958
1594
  };
959
1595
  };
960
1596
  items: {
@@ -1283,7 +1919,7 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
1283
1919
  export declare const SharedSliceContent: t.ExactC<t.TypeC<{
1284
1920
  __TYPE__: t.LiteralC<"SharedSliceContent">;
1285
1921
  variation: t.StringC;
1286
- primary: t.RecordC<t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
1922
+ primary: t.RecordC<t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
1287
1923
  type: t.StringC;
1288
1924
  __TYPE__: t.LiteralC<"EmptyContent">;
1289
1925
  }>>, t.ExactC<t.TypeC<{
@@ -1675,6 +2311,404 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
1675
2311
  }>]>>]>>;
1676
2312
  }>>, t.ExactC<t.TypeC<{
1677
2313
  __TYPE__: t.LiteralC<"SeparatorContent">;
2314
+ }>>]>, t.ExactC<t.TypeC<{
2315
+ __TYPE__: t.LiteralC<"GroupContentType">;
2316
+ value: t.ArrayC<t.ExactC<t.TypeC<{
2317
+ __TYPE__: t.LiteralC<"GroupItemContent">;
2318
+ value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
2319
+ type: t.StringC;
2320
+ __TYPE__: t.LiteralC<"EmptyContent">;
2321
+ }>>, t.ExactC<t.TypeC<{
2322
+ __TYPE__: t.LiteralC<"BooleanContent">;
2323
+ value: t.BooleanC;
2324
+ }>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2325
+ embed_url: t.StringC;
2326
+ type: t.StringC;
2327
+ }>, t.PartialC<{
2328
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2329
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2330
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2331
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2332
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2333
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2334
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2335
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2336
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2337
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2338
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2339
+ }>]>>, t.ExactC<t.TypeC<{
2340
+ __TYPE__: t.LiteralC<"EmbedContent">;
2341
+ all: t.UnknownC;
2342
+ }>>]>, t.ExactC<t.TypeC<{
2343
+ type: t.LiteralC<"Text">;
2344
+ value: t.Type<string, string, unknown>;
2345
+ __TYPE__: t.LiteralC<"FieldContent">;
2346
+ }>>, t.ExactC<t.TypeC<{
2347
+ type: t.LiteralC<"Timestamp">;
2348
+ value: t.Type<string, string, unknown>;
2349
+ __TYPE__: t.LiteralC<"FieldContent">;
2350
+ }>>, t.ExactC<t.TypeC<{
2351
+ type: t.LiteralC<"Select">;
2352
+ value: t.Type<string, string, unknown>;
2353
+ __TYPE__: t.LiteralC<"FieldContent">;
2354
+ }>>, t.ExactC<t.TypeC<{
2355
+ type: t.LiteralC<"Range">;
2356
+ value: t.Type<string, string, unknown>;
2357
+ __TYPE__: t.LiteralC<"FieldContent">;
2358
+ }>>, t.ExactC<t.TypeC<{
2359
+ type: t.LiteralC<"Number">;
2360
+ value: t.Type<string, string, unknown>;
2361
+ __TYPE__: t.LiteralC<"FieldContent">;
2362
+ }>>, t.ExactC<t.TypeC<{
2363
+ type: t.LiteralC<"Date">;
2364
+ value: t.Type<string, string, unknown>;
2365
+ __TYPE__: t.LiteralC<"FieldContent">;
2366
+ }>>, t.ExactC<t.TypeC<{
2367
+ type: t.LiteralC<"Color">;
2368
+ value: t.Type<string, string, unknown>;
2369
+ __TYPE__: t.LiteralC<"FieldContent">;
2370
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
2371
+ position: t.ExactC<t.TypeC<{
2372
+ lat: t.NumberC;
2373
+ lng: t.NumberC;
2374
+ }>>;
2375
+ }>>, t.ExactC<t.TypeC<{
2376
+ __TYPE__: t.LiteralC<"GeoPointContent">;
2377
+ }>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2378
+ origin: t.ExactC<t.TypeC<{
2379
+ id: t.StringC;
2380
+ url: t.StringC;
2381
+ width: t.NumberC;
2382
+ height: t.NumberC;
2383
+ }>>;
2384
+ width: t.NumberC;
2385
+ height: t.NumberC;
2386
+ edit: t.TypeC<{
2387
+ zoom: t.NumberC;
2388
+ crop: t.TypeC<{
2389
+ x: t.NumberC;
2390
+ y: t.NumberC;
2391
+ }>;
2392
+ background: t.StringC;
2393
+ }>;
2394
+ }>, t.PartialC<{
2395
+ url: t.StringC;
2396
+ credits: t.Type<string | null, string | null, unknown>;
2397
+ alt: t.Type<string | null, string | null, unknown>;
2398
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2399
+ }>]>>, t.PartialC<{
2400
+ thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
2401
+ origin: t.ExactC<t.TypeC<{
2402
+ id: t.StringC;
2403
+ url: t.StringC;
2404
+ width: t.NumberC;
2405
+ height: t.NumberC;
2406
+ }>>;
2407
+ width: t.NumberC;
2408
+ height: t.NumberC;
2409
+ edit: t.TypeC<{
2410
+ zoom: t.NumberC;
2411
+ crop: t.TypeC<{
2412
+ x: t.NumberC;
2413
+ y: t.NumberC;
2414
+ }>;
2415
+ background: t.StringC;
2416
+ }>;
2417
+ }>, t.PartialC<{
2418
+ url: t.StringC;
2419
+ credits: t.Type<string | null, string | null, unknown>;
2420
+ alt: t.Type<string | null, string | null, unknown>;
2421
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2422
+ }>]>>>;
2423
+ }>]>, t.ExactC<t.TypeC<{
2424
+ __TYPE__: t.LiteralC<"ImageContent">;
2425
+ }>>]>, t.ExactC<t.TypeC<{
2426
+ __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
2427
+ value: t.StringC;
2428
+ }>>, t.ExactC<t.TypeC<{
2429
+ __TYPE__: t.LiteralC<"LinkContent">;
2430
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2431
+ __TYPE__: t.LiteralC<"ImageLink">;
2432
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2433
+ id: t.StringC;
2434
+ url: t.StringC;
2435
+ height: t.StringC;
2436
+ width: t.StringC;
2437
+ size: t.StringC;
2438
+ name: t.StringC;
2439
+ kind: t.StringC;
2440
+ }>, t.PartialC<{
2441
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2442
+ }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2443
+ id: t.StringC;
2444
+ url: t.StringC;
2445
+ name: t.StringC;
2446
+ kind: t.StringC;
2447
+ size: t.StringC;
2448
+ }>, t.PartialC<{
2449
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2450
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2451
+ __TYPE__: t.LiteralC<"FileLink">;
2452
+ }>, t.PartialC<{
2453
+ size: t.StringC;
2454
+ }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2455
+ __TYPE__: t.LiteralC<"DocumentLink">;
2456
+ }>>, t.ExactC<t.TypeC<{
2457
+ id: t.Type<string, string, unknown>;
2458
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2459
+ __TYPE__: t.LiteralC<"ExternalLink">;
2460
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2461
+ url: t.StringC;
2462
+ }>, t.PartialC<{
2463
+ kind: t.LiteralC<"web">;
2464
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2465
+ preview: t.UnionC<[t.Type<{
2466
+ title?: string;
2467
+ }, {
2468
+ title?: string;
2469
+ }, unknown>, t.NullC, t.UndefinedC]>;
2470
+ }>]>>]>]>;
2471
+ }>>, t.ExactC<t.TypeC<{
2472
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
2473
+ value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2474
+ type: t.LiteralC<"image">;
2475
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2476
+ origin: t.ExactC<t.TypeC<{
2477
+ id: t.StringC;
2478
+ url: t.StringC;
2479
+ width: t.NumberC;
2480
+ height: t.NumberC;
2481
+ }>>;
2482
+ width: t.NumberC;
2483
+ height: t.NumberC;
2484
+ edit: t.TypeC<{
2485
+ zoom: t.NumberC;
2486
+ crop: t.TypeC<{
2487
+ x: t.NumberC;
2488
+ y: t.NumberC;
2489
+ }>;
2490
+ background: t.StringC;
2491
+ }>;
2492
+ }>, t.PartialC<{
2493
+ url: t.StringC;
2494
+ credits: t.Type<string | null, string | null, unknown>;
2495
+ alt: t.Type<string | null, string | null, unknown>;
2496
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2497
+ }>]>>, t.PartialC<{
2498
+ linkTo: t.UnionC<[t.Type<({
2499
+ __TYPE__: "ImageLink";
2500
+ } & {
2501
+ id: string;
2502
+ url: string;
2503
+ height: string;
2504
+ width: string;
2505
+ size: string;
2506
+ name: string;
2507
+ kind: string;
2508
+ } & {
2509
+ date?: string | null | undefined;
2510
+ }) | ({
2511
+ id: string;
2512
+ url: string;
2513
+ name: string;
2514
+ kind: string;
2515
+ size: string;
2516
+ } & {
2517
+ date?: string | null | undefined;
2518
+ } & {
2519
+ __TYPE__: "FileLink";
2520
+ } & {
2521
+ size?: string;
2522
+ }) | ({
2523
+ __TYPE__: "DocumentLink";
2524
+ } & {
2525
+ id: string;
2526
+ }) | ({
2527
+ __TYPE__: "ExternalLink";
2528
+ } & {
2529
+ url: string;
2530
+ } & {
2531
+ kind?: "web";
2532
+ target?: string | null | undefined;
2533
+ preview?: {
2534
+ title?: string;
2535
+ } | null | undefined;
2536
+ }), ({
2537
+ id: string;
2538
+ url: string;
2539
+ height: string;
2540
+ width: string;
2541
+ size: string;
2542
+ name: string;
2543
+ kind: string;
2544
+ } & {
2545
+ date?: string | null | undefined;
2546
+ }) | ({
2547
+ id: string;
2548
+ url: string;
2549
+ name: string;
2550
+ kind: string;
2551
+ size: string;
2552
+ } & {
2553
+ date?: string | null | undefined;
2554
+ }) | {
2555
+ id: string;
2556
+ } | ({
2557
+ url: string;
2558
+ } & {
2559
+ kind?: "web";
2560
+ target?: string | null | undefined;
2561
+ preview?: {
2562
+ title?: string;
2563
+ } | null | undefined;
2564
+ }), unknown>, t.NullC, t.UndefinedC]>;
2565
+ }>]>;
2566
+ }>, t.PartialC<{
2567
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2568
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2569
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2570
+ type: t.LiteralC<"embed">;
2571
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2572
+ embed_url: t.StringC;
2573
+ type: t.StringC;
2574
+ }>, t.PartialC<{
2575
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2576
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2577
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2578
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2579
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2580
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2581
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2582
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2583
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2584
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2585
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2586
+ }>]>>, t.ExactC<t.TypeC<{
2587
+ __TYPE__: t.LiteralC<"EmbedContent">;
2588
+ all: t.UnknownC;
2589
+ }>>]>;
2590
+ }>, t.PartialC<{
2591
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2592
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2593
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2594
+ 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>;
2595
+ content: t.IntersectionC<[t.TypeC<{
2596
+ text: t.StringC;
2597
+ }>, t.PartialC<{
2598
+ spans: t.Type<({
2599
+ data: ({
2600
+ __TYPE__: "ImageLink";
2601
+ } & {
2602
+ id: string;
2603
+ url: string;
2604
+ height: string;
2605
+ width: string;
2606
+ size: string;
2607
+ name: string;
2608
+ kind: string;
2609
+ } & {
2610
+ date?: string | null | undefined;
2611
+ }) | ({
2612
+ id: string;
2613
+ url: string;
2614
+ name: string;
2615
+ kind: string;
2616
+ size: string;
2617
+ } & {
2618
+ date?: string | null | undefined;
2619
+ } & {
2620
+ __TYPE__: "FileLink";
2621
+ } & {
2622
+ size?: string;
2623
+ }) | ({
2624
+ __TYPE__: "DocumentLink";
2625
+ } & {
2626
+ id: string;
2627
+ }) | ({
2628
+ __TYPE__: "ExternalLink";
2629
+ } & {
2630
+ url: string;
2631
+ } & {
2632
+ kind?: "web";
2633
+ target?: string | null | undefined;
2634
+ preview?: {
2635
+ title?: string;
2636
+ } | null | undefined;
2637
+ });
2638
+ start: number;
2639
+ end: number;
2640
+ type: "hyperlink";
2641
+ } | {
2642
+ data: string;
2643
+ start: number;
2644
+ end: number;
2645
+ type: "label";
2646
+ } | {
2647
+ start: number;
2648
+ end: number;
2649
+ type: "strong" | "em" | "list-item";
2650
+ })[], ({
2651
+ data: ({
2652
+ __TYPE__: "ImageLink";
2653
+ } & {
2654
+ id: string;
2655
+ url: string;
2656
+ height: string;
2657
+ width: string;
2658
+ size: string;
2659
+ name: string;
2660
+ kind: string;
2661
+ } & {
2662
+ date?: string | null | undefined;
2663
+ }) | ({
2664
+ id: string;
2665
+ url: string;
2666
+ name: string;
2667
+ kind: string;
2668
+ size: string;
2669
+ } & {
2670
+ date?: string | null | undefined;
2671
+ } & {
2672
+ __TYPE__: "FileLink";
2673
+ } & {
2674
+ size?: string;
2675
+ }) | ({
2676
+ __TYPE__: "DocumentLink";
2677
+ } & {
2678
+ id: string;
2679
+ }) | ({
2680
+ __TYPE__: "ExternalLink";
2681
+ } & {
2682
+ url: string;
2683
+ } & {
2684
+ kind?: "web";
2685
+ target?: string | null | undefined;
2686
+ preview?: {
2687
+ title?: string;
2688
+ } | null | undefined;
2689
+ });
2690
+ start: number;
2691
+ end: number;
2692
+ type: "hyperlink";
2693
+ } | {
2694
+ data: string;
2695
+ start: number;
2696
+ end: number;
2697
+ type: "label";
2698
+ } | {
2699
+ start: number;
2700
+ end: number;
2701
+ type: "strong" | "em" | "list-item";
2702
+ })[], unknown>;
2703
+ }>]>;
2704
+ }>, t.PartialC<{
2705
+ label: t.StringC;
2706
+ direction: t.StringC;
2707
+ }>]>>]>>;
2708
+ }>>, t.ExactC<t.TypeC<{
2709
+ __TYPE__: t.LiteralC<"SeparatorContent">;
2710
+ }>>]>]>>;
2711
+ }>>>;
1678
2712
  }>>]>>;
1679
2713
  items: t.ArrayC<t.ExactC<t.TypeC<{
1680
2714
  __TYPE__: t.LiteralC<"GroupItemContent">;