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

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.
@@ -804,7 +804,7 @@ export declare const SliceItemContent: t.TypeC<{
804
804
  }>>, t.ExactC<t.TypeC<{
805
805
  __TYPE__: t.LiteralC<"SharedSliceContent">;
806
806
  variation: t.StringC;
807
- primary: t.RecordC<t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
807
+ primary: t.RecordC<t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
808
808
  type: t.StringC;
809
809
  __TYPE__: t.LiteralC<"EmptyContent">;
810
810
  }>>, t.ExactC<t.TypeC<{
@@ -1196,6 +1196,404 @@ export declare const SliceItemContent: t.TypeC<{
1196
1196
  }>]>>]>>;
1197
1197
  }>>, t.ExactC<t.TypeC<{
1198
1198
  __TYPE__: t.LiteralC<"SeparatorContent">;
1199
+ }>>]>, t.ExactC<t.TypeC<{
1200
+ __TYPE__: t.LiteralC<"GroupContentType">;
1201
+ value: t.ArrayC<t.ExactC<t.TypeC<{
1202
+ __TYPE__: t.LiteralC<"GroupItemContent">;
1203
+ value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
1204
+ type: t.StringC;
1205
+ __TYPE__: t.LiteralC<"EmptyContent">;
1206
+ }>>, t.ExactC<t.TypeC<{
1207
+ __TYPE__: t.LiteralC<"BooleanContent">;
1208
+ value: t.BooleanC;
1209
+ }>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1210
+ embed_url: t.StringC;
1211
+ type: t.StringC;
1212
+ }>, t.PartialC<{
1213
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1214
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1215
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1216
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1217
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1218
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1219
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1220
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1221
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1222
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1223
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1224
+ }>]>>, t.ExactC<t.TypeC<{
1225
+ __TYPE__: t.LiteralC<"EmbedContent">;
1226
+ all: t.UnknownC;
1227
+ }>>]>, t.ExactC<t.TypeC<{
1228
+ type: t.LiteralC<"Text">;
1229
+ value: t.Type<string, string, unknown>;
1230
+ __TYPE__: t.LiteralC<"FieldContent">;
1231
+ }>>, t.ExactC<t.TypeC<{
1232
+ type: t.LiteralC<"Timestamp">;
1233
+ value: t.Type<string, string, unknown>;
1234
+ __TYPE__: t.LiteralC<"FieldContent">;
1235
+ }>>, t.ExactC<t.TypeC<{
1236
+ type: t.LiteralC<"Select">;
1237
+ value: t.Type<string, string, unknown>;
1238
+ __TYPE__: t.LiteralC<"FieldContent">;
1239
+ }>>, t.ExactC<t.TypeC<{
1240
+ type: t.LiteralC<"Range">;
1241
+ value: t.Type<string, string, unknown>;
1242
+ __TYPE__: t.LiteralC<"FieldContent">;
1243
+ }>>, t.ExactC<t.TypeC<{
1244
+ type: t.LiteralC<"Number">;
1245
+ value: t.Type<string, string, unknown>;
1246
+ __TYPE__: t.LiteralC<"FieldContent">;
1247
+ }>>, t.ExactC<t.TypeC<{
1248
+ type: t.LiteralC<"Date">;
1249
+ value: t.Type<string, string, unknown>;
1250
+ __TYPE__: t.LiteralC<"FieldContent">;
1251
+ }>>, t.ExactC<t.TypeC<{
1252
+ type: t.LiteralC<"Color">;
1253
+ value: t.Type<string, string, unknown>;
1254
+ __TYPE__: t.LiteralC<"FieldContent">;
1255
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
1256
+ position: t.ExactC<t.TypeC<{
1257
+ lat: t.NumberC;
1258
+ lng: t.NumberC;
1259
+ }>>;
1260
+ }>>, t.ExactC<t.TypeC<{
1261
+ __TYPE__: t.LiteralC<"GeoPointContent">;
1262
+ }>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1263
+ origin: t.ExactC<t.TypeC<{
1264
+ id: t.StringC;
1265
+ url: t.StringC;
1266
+ width: t.NumberC;
1267
+ height: t.NumberC;
1268
+ }>>;
1269
+ width: t.NumberC;
1270
+ height: t.NumberC;
1271
+ edit: t.TypeC<{
1272
+ zoom: t.NumberC;
1273
+ crop: t.TypeC<{
1274
+ x: t.NumberC;
1275
+ y: t.NumberC;
1276
+ }>;
1277
+ background: t.StringC;
1278
+ }>;
1279
+ }>, t.PartialC<{
1280
+ url: t.StringC;
1281
+ credits: t.Type<string | null, string | null, unknown>;
1282
+ alt: t.Type<string | null, string | null, unknown>;
1283
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1284
+ }>]>>, t.PartialC<{
1285
+ thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
1286
+ origin: t.ExactC<t.TypeC<{
1287
+ id: t.StringC;
1288
+ url: t.StringC;
1289
+ width: t.NumberC;
1290
+ height: t.NumberC;
1291
+ }>>;
1292
+ width: t.NumberC;
1293
+ height: t.NumberC;
1294
+ edit: t.TypeC<{
1295
+ zoom: t.NumberC;
1296
+ crop: t.TypeC<{
1297
+ x: t.NumberC;
1298
+ y: t.NumberC;
1299
+ }>;
1300
+ background: t.StringC;
1301
+ }>;
1302
+ }>, t.PartialC<{
1303
+ url: t.StringC;
1304
+ credits: t.Type<string | null, string | null, unknown>;
1305
+ alt: t.Type<string | null, string | null, unknown>;
1306
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1307
+ }>]>>>;
1308
+ }>]>, t.ExactC<t.TypeC<{
1309
+ __TYPE__: t.LiteralC<"ImageContent">;
1310
+ }>>]>, t.ExactC<t.TypeC<{
1311
+ __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
1312
+ value: t.StringC;
1313
+ }>>, t.ExactC<t.TypeC<{
1314
+ __TYPE__: t.LiteralC<"LinkContent">;
1315
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1316
+ __TYPE__: t.LiteralC<"ImageLink">;
1317
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1318
+ id: t.StringC;
1319
+ url: t.StringC;
1320
+ height: t.StringC;
1321
+ width: t.StringC;
1322
+ size: t.StringC;
1323
+ name: t.StringC;
1324
+ kind: t.StringC;
1325
+ }>, t.PartialC<{
1326
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1327
+ }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1328
+ id: t.StringC;
1329
+ url: t.StringC;
1330
+ name: t.StringC;
1331
+ kind: t.StringC;
1332
+ size: t.StringC;
1333
+ }>, t.PartialC<{
1334
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1335
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1336
+ __TYPE__: t.LiteralC<"FileLink">;
1337
+ }>, t.PartialC<{
1338
+ size: t.StringC;
1339
+ }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1340
+ __TYPE__: t.LiteralC<"DocumentLink">;
1341
+ }>>, t.ExactC<t.TypeC<{
1342
+ id: t.Type<string, string, unknown>;
1343
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1344
+ __TYPE__: t.LiteralC<"ExternalLink">;
1345
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1346
+ url: t.StringC;
1347
+ }>, t.PartialC<{
1348
+ kind: t.LiteralC<"web">;
1349
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1350
+ preview: t.UnionC<[t.Type<{
1351
+ title?: string;
1352
+ }, {
1353
+ title?: string;
1354
+ }, unknown>, t.NullC, t.UndefinedC]>;
1355
+ }>]>>]>]>;
1356
+ }>>, t.ExactC<t.TypeC<{
1357
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
1358
+ value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1359
+ type: t.LiteralC<"image">;
1360
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1361
+ origin: t.ExactC<t.TypeC<{
1362
+ id: t.StringC;
1363
+ url: t.StringC;
1364
+ width: t.NumberC;
1365
+ height: t.NumberC;
1366
+ }>>;
1367
+ width: t.NumberC;
1368
+ height: t.NumberC;
1369
+ edit: t.TypeC<{
1370
+ zoom: t.NumberC;
1371
+ crop: t.TypeC<{
1372
+ x: t.NumberC;
1373
+ y: t.NumberC;
1374
+ }>;
1375
+ background: t.StringC;
1376
+ }>;
1377
+ }>, t.PartialC<{
1378
+ url: t.StringC;
1379
+ credits: t.Type<string | null, string | null, unknown>;
1380
+ alt: t.Type<string | null, string | null, unknown>;
1381
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1382
+ }>]>>, t.PartialC<{
1383
+ linkTo: t.UnionC<[t.Type<({
1384
+ __TYPE__: "ImageLink";
1385
+ } & {
1386
+ id: string;
1387
+ url: string;
1388
+ height: string;
1389
+ width: string;
1390
+ size: string;
1391
+ name: string;
1392
+ kind: string;
1393
+ } & {
1394
+ date?: string | null | undefined;
1395
+ }) | ({
1396
+ id: string;
1397
+ url: string;
1398
+ name: string;
1399
+ kind: string;
1400
+ size: string;
1401
+ } & {
1402
+ date?: string | null | undefined;
1403
+ } & {
1404
+ __TYPE__: "FileLink";
1405
+ } & {
1406
+ size?: string;
1407
+ }) | ({
1408
+ __TYPE__: "DocumentLink";
1409
+ } & {
1410
+ id: string;
1411
+ }) | ({
1412
+ __TYPE__: "ExternalLink";
1413
+ } & {
1414
+ url: string;
1415
+ } & {
1416
+ kind?: "web";
1417
+ target?: string | null | undefined;
1418
+ preview?: {
1419
+ title?: string;
1420
+ } | null | undefined;
1421
+ }), ({
1422
+ id: string;
1423
+ url: string;
1424
+ height: string;
1425
+ width: string;
1426
+ size: string;
1427
+ name: string;
1428
+ kind: string;
1429
+ } & {
1430
+ date?: string | null | undefined;
1431
+ }) | ({
1432
+ id: string;
1433
+ url: string;
1434
+ name: string;
1435
+ kind: string;
1436
+ size: string;
1437
+ } & {
1438
+ date?: string | null | undefined;
1439
+ }) | {
1440
+ id: string;
1441
+ } | ({
1442
+ url: string;
1443
+ } & {
1444
+ kind?: "web";
1445
+ target?: string | null | undefined;
1446
+ preview?: {
1447
+ title?: string;
1448
+ } | null | undefined;
1449
+ }), unknown>, t.NullC, t.UndefinedC]>;
1450
+ }>]>;
1451
+ }>, t.PartialC<{
1452
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1453
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1454
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1455
+ type: t.LiteralC<"embed">;
1456
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1457
+ embed_url: t.StringC;
1458
+ type: t.StringC;
1459
+ }>, t.PartialC<{
1460
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1461
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1462
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1463
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1464
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1465
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1466
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1467
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1468
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1469
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1470
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1471
+ }>]>>, t.ExactC<t.TypeC<{
1472
+ __TYPE__: t.LiteralC<"EmbedContent">;
1473
+ all: t.UnknownC;
1474
+ }>>]>;
1475
+ }>, t.PartialC<{
1476
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1477
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1478
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1479
+ 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>;
1480
+ content: t.IntersectionC<[t.TypeC<{
1481
+ text: t.StringC;
1482
+ }>, t.PartialC<{
1483
+ spans: t.Type<({
1484
+ data: ({
1485
+ __TYPE__: "ImageLink";
1486
+ } & {
1487
+ id: string;
1488
+ url: string;
1489
+ height: string;
1490
+ width: string;
1491
+ size: string;
1492
+ name: string;
1493
+ kind: string;
1494
+ } & {
1495
+ date?: string | null | undefined;
1496
+ }) | ({
1497
+ id: string;
1498
+ url: string;
1499
+ name: string;
1500
+ kind: string;
1501
+ size: string;
1502
+ } & {
1503
+ date?: string | null | undefined;
1504
+ } & {
1505
+ __TYPE__: "FileLink";
1506
+ } & {
1507
+ size?: string;
1508
+ }) | ({
1509
+ __TYPE__: "DocumentLink";
1510
+ } & {
1511
+ id: string;
1512
+ }) | ({
1513
+ __TYPE__: "ExternalLink";
1514
+ } & {
1515
+ url: string;
1516
+ } & {
1517
+ kind?: "web";
1518
+ target?: string | null | undefined;
1519
+ preview?: {
1520
+ title?: string;
1521
+ } | null | undefined;
1522
+ });
1523
+ start: number;
1524
+ end: number;
1525
+ type: "hyperlink";
1526
+ } | {
1527
+ data: string;
1528
+ start: number;
1529
+ end: number;
1530
+ type: "label";
1531
+ } | {
1532
+ start: number;
1533
+ end: number;
1534
+ type: "strong" | "em" | "list-item";
1535
+ })[], ({
1536
+ data: ({
1537
+ __TYPE__: "ImageLink";
1538
+ } & {
1539
+ id: string;
1540
+ url: string;
1541
+ height: string;
1542
+ width: string;
1543
+ size: string;
1544
+ name: string;
1545
+ kind: string;
1546
+ } & {
1547
+ date?: string | null | undefined;
1548
+ }) | ({
1549
+ id: string;
1550
+ url: string;
1551
+ name: string;
1552
+ kind: string;
1553
+ size: string;
1554
+ } & {
1555
+ date?: string | null | undefined;
1556
+ } & {
1557
+ __TYPE__: "FileLink";
1558
+ } & {
1559
+ size?: string;
1560
+ }) | ({
1561
+ __TYPE__: "DocumentLink";
1562
+ } & {
1563
+ id: string;
1564
+ }) | ({
1565
+ __TYPE__: "ExternalLink";
1566
+ } & {
1567
+ url: string;
1568
+ } & {
1569
+ kind?: "web";
1570
+ target?: string | null | undefined;
1571
+ preview?: {
1572
+ title?: string;
1573
+ } | null | undefined;
1574
+ });
1575
+ start: number;
1576
+ end: number;
1577
+ type: "hyperlink";
1578
+ } | {
1579
+ data: string;
1580
+ start: number;
1581
+ end: number;
1582
+ type: "label";
1583
+ } | {
1584
+ start: number;
1585
+ end: number;
1586
+ type: "strong" | "em" | "list-item";
1587
+ })[], unknown>;
1588
+ }>]>;
1589
+ }>, t.PartialC<{
1590
+ label: t.StringC;
1591
+ direction: t.StringC;
1592
+ }>]>>]>>;
1593
+ }>>, t.ExactC<t.TypeC<{
1594
+ __TYPE__: t.LiteralC<"SeparatorContent">;
1595
+ }>>]>]>>;
1596
+ }>>>;
1199
1597
  }>>]>>;
1200
1598
  items: t.ArrayC<t.ExactC<t.TypeC<{
1201
1599
  __TYPE__: t.LiteralC<"GroupItemContent">;
@@ -3982,6 +4380,324 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
3982
4380
  }))[];
3983
4381
  } | {
3984
4382
  __TYPE__: "SeparatorContent";
4383
+ } | {
4384
+ __TYPE__: "GroupContentType";
4385
+ value: {
4386
+ __TYPE__: "GroupItemContent";
4387
+ value: [string, {
4388
+ type: string;
4389
+ __TYPE__: "EmptyContent";
4390
+ } | {
4391
+ __TYPE__: "BooleanContent";
4392
+ value: boolean;
4393
+ } | ({
4394
+ embed_url: string;
4395
+ type: string;
4396
+ } & {
4397
+ version?: string | number | null;
4398
+ title?: string | null | undefined;
4399
+ author_name?: string | null | undefined;
4400
+ author_url?: string | null | undefined;
4401
+ provider_name?: string | null | undefined;
4402
+ provider_url?: string | null | undefined;
4403
+ cache_age?: string | number | null;
4404
+ thumbnail_url?: string | null | undefined;
4405
+ thumbnail_width?: number | null | undefined;
4406
+ thumbnail_height?: number | null | undefined;
4407
+ html?: string | null | undefined;
4408
+ } & {
4409
+ __TYPE__: "EmbedContent";
4410
+ all: unknown;
4411
+ }) | {
4412
+ type: "Color";
4413
+ value: string;
4414
+ __TYPE__: "FieldContent";
4415
+ } | {
4416
+ type: "Date";
4417
+ value: string;
4418
+ __TYPE__: "FieldContent";
4419
+ } | {
4420
+ type: "Number";
4421
+ value: string;
4422
+ __TYPE__: "FieldContent";
4423
+ } | {
4424
+ type: "Range";
4425
+ value: string;
4426
+ __TYPE__: "FieldContent";
4427
+ } | {
4428
+ type: "Select";
4429
+ value: string;
4430
+ __TYPE__: "FieldContent";
4431
+ } | {
4432
+ type: "Text";
4433
+ value: string;
4434
+ __TYPE__: "FieldContent";
4435
+ } | {
4436
+ type: "Timestamp";
4437
+ value: string;
4438
+ __TYPE__: "FieldContent";
4439
+ } | ({
4440
+ position: {
4441
+ lat: number;
4442
+ lng: number;
4443
+ };
4444
+ } & {
4445
+ __TYPE__: "GeoPointContent";
4446
+ }) | ({
4447
+ origin: {
4448
+ id: string;
4449
+ url: string;
4450
+ width: number;
4451
+ height: number;
4452
+ };
4453
+ width: number;
4454
+ height: number;
4455
+ edit: {
4456
+ zoom: number;
4457
+ crop: {
4458
+ x: number;
4459
+ y: number;
4460
+ };
4461
+ background: string;
4462
+ };
4463
+ } & {
4464
+ url?: string;
4465
+ credits?: string | null;
4466
+ alt?: string | null;
4467
+ provider?: string | null | undefined;
4468
+ } & {
4469
+ thumbnails?: {
4470
+ [x: string]: {
4471
+ origin: {
4472
+ id: string;
4473
+ url: string;
4474
+ width: number;
4475
+ height: number;
4476
+ };
4477
+ width: number;
4478
+ height: number;
4479
+ edit: {
4480
+ zoom: number;
4481
+ crop: {
4482
+ x: number;
4483
+ y: number;
4484
+ };
4485
+ background: string;
4486
+ };
4487
+ } & {
4488
+ url?: string;
4489
+ credits?: string | null;
4490
+ alt?: string | null;
4491
+ provider?: string | null | undefined;
4492
+ };
4493
+ };
4494
+ } & {
4495
+ __TYPE__: "ImageContent";
4496
+ }) | {
4497
+ __TYPE__: "IntegrationFieldsContent";
4498
+ value: string;
4499
+ } | {
4500
+ __TYPE__: "LinkContent";
4501
+ value: ({
4502
+ __TYPE__: "ImageLink";
4503
+ } & {
4504
+ id: string;
4505
+ url: string;
4506
+ height: string;
4507
+ width: string;
4508
+ size: string;
4509
+ name: string;
4510
+ kind: string;
4511
+ } & {
4512
+ date?: string | null | undefined;
4513
+ }) | ({
4514
+ id: string;
4515
+ url: string;
4516
+ name: string;
4517
+ kind: string;
4518
+ size: string;
4519
+ } & {
4520
+ date?: string | null | undefined;
4521
+ } & {
4522
+ __TYPE__: "FileLink";
4523
+ } & {
4524
+ size?: string;
4525
+ }) | ({
4526
+ __TYPE__: "DocumentLink";
4527
+ } & {
4528
+ id: string;
4529
+ }) | ({
4530
+ __TYPE__: "ExternalLink";
4531
+ } & {
4532
+ url: string;
4533
+ } & {
4534
+ kind?: "web";
4535
+ target?: string | null | undefined;
4536
+ preview?: {
4537
+ title?: string;
4538
+ } | null | undefined;
4539
+ });
4540
+ } | {
4541
+ __TYPE__: "StructuredTextContent";
4542
+ value: (({
4543
+ type: "image";
4544
+ data: {
4545
+ origin: {
4546
+ id: string;
4547
+ url: string;
4548
+ width: number;
4549
+ height: number;
4550
+ };
4551
+ width: number;
4552
+ height: number;
4553
+ edit: {
4554
+ zoom: number;
4555
+ crop: {
4556
+ x: number;
4557
+ y: number;
4558
+ };
4559
+ background: string;
4560
+ };
4561
+ } & {
4562
+ url?: string;
4563
+ credits?: string | null;
4564
+ alt?: string | null;
4565
+ provider?: string | null | undefined;
4566
+ } & {
4567
+ linkTo?: ({
4568
+ __TYPE__: "ImageLink";
4569
+ } & {
4570
+ id: string;
4571
+ url: string;
4572
+ height: string;
4573
+ width: string;
4574
+ size: string;
4575
+ name: string;
4576
+ kind: string;
4577
+ } & {
4578
+ date?: string | null | undefined;
4579
+ }) | ({
4580
+ id: string;
4581
+ url: string;
4582
+ name: string;
4583
+ kind: string;
4584
+ size: string;
4585
+ } & {
4586
+ date?: string | null | undefined;
4587
+ } & {
4588
+ __TYPE__: "FileLink";
4589
+ } & {
4590
+ size?: string;
4591
+ }) | ({
4592
+ __TYPE__: "DocumentLink";
4593
+ } & {
4594
+ id: string;
4595
+ }) | ({
4596
+ __TYPE__: "ExternalLink";
4597
+ } & {
4598
+ url: string;
4599
+ } & {
4600
+ kind?: "web";
4601
+ target?: string | null | undefined;
4602
+ preview?: {
4603
+ title?: string;
4604
+ } | null | undefined;
4605
+ }) | null | undefined;
4606
+ };
4607
+ } & {
4608
+ label?: string | null | undefined;
4609
+ direction?: string | null | undefined;
4610
+ }) | ({
4611
+ type: "embed";
4612
+ data: {
4613
+ embed_url: string;
4614
+ type: string;
4615
+ } & {
4616
+ version?: string | number | null;
4617
+ title?: string | null | undefined;
4618
+ author_name?: string | null | undefined;
4619
+ author_url?: string | null | undefined;
4620
+ provider_name?: string | null | undefined;
4621
+ provider_url?: string | null | undefined;
4622
+ cache_age?: string | number | null;
4623
+ thumbnail_url?: string | null | undefined;
4624
+ thumbnail_width?: number | null | undefined;
4625
+ thumbnail_height?: number | null | undefined;
4626
+ html?: string | null | undefined;
4627
+ } & {
4628
+ __TYPE__: "EmbedContent";
4629
+ all: unknown;
4630
+ };
4631
+ } & {
4632
+ label?: string | null | undefined;
4633
+ direction?: string | null | undefined;
4634
+ }) | ({
4635
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
4636
+ content: {
4637
+ text: string;
4638
+ } & {
4639
+ spans?: ({
4640
+ data: ({
4641
+ __TYPE__: "ImageLink";
4642
+ } & {
4643
+ id: string;
4644
+ url: string;
4645
+ height: string;
4646
+ width: string;
4647
+ size: string;
4648
+ name: string;
4649
+ kind: string;
4650
+ } & {
4651
+ date?: string | null | undefined;
4652
+ }) | ({
4653
+ id: string;
4654
+ url: string;
4655
+ name: string;
4656
+ kind: string;
4657
+ size: string;
4658
+ } & {
4659
+ date?: string | null | undefined;
4660
+ } & {
4661
+ __TYPE__: "FileLink";
4662
+ } & {
4663
+ size?: string;
4664
+ }) | ({
4665
+ __TYPE__: "DocumentLink";
4666
+ } & {
4667
+ id: string;
4668
+ }) | ({
4669
+ __TYPE__: "ExternalLink";
4670
+ } & {
4671
+ url: string;
4672
+ } & {
4673
+ kind?: "web";
4674
+ target?: string | null | undefined;
4675
+ preview?: {
4676
+ title?: string;
4677
+ } | null | undefined;
4678
+ });
4679
+ start: number;
4680
+ end: number;
4681
+ type: "hyperlink";
4682
+ } | {
4683
+ data: string;
4684
+ start: number;
4685
+ end: number;
4686
+ type: "label";
4687
+ } | {
4688
+ start: number;
4689
+ end: number;
4690
+ type: "strong" | "em" | "list-item";
4691
+ })[];
4692
+ };
4693
+ } & {
4694
+ label?: string;
4695
+ direction?: string;
4696
+ }))[];
4697
+ } | {
4698
+ __TYPE__: "SeparatorContent";
4699
+ }][];
4700
+ }[];
3985
4701
  };
3986
4702
  };
3987
4703
  items: {