@milaboratories/pl-model-middle-layer 1.2.20 → 1.4.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.
- package/dist/block_meta/block_components.d.ts +221 -85
- package/dist/block_meta/block_components.d.ts.map +1 -1
- package/dist/block_meta/block_description.d.ts +872 -0
- package/dist/block_meta/block_description.d.ts.map +1 -0
- package/dist/block_meta/{block_pack_id.d.ts → block_id.d.ts} +1 -1
- package/dist/block_meta/block_id.d.ts.map +1 -0
- package/dist/block_meta/block_manifest.d.ts +1246 -0
- package/dist/block_meta/block_manifest.d.ts.map +1 -0
- package/dist/block_meta/{meta.d.ts → block_meta.d.ts} +36 -102
- package/dist/block_meta/block_meta.d.ts.map +1 -0
- package/dist/block_meta/content_conversion.d.ts +9 -1
- package/dist/block_meta/content_conversion.d.ts.map +1 -1
- package/dist/block_meta/content_types.d.ts +40 -5
- package/dist/block_meta/content_types.d.ts.map +1 -1
- package/dist/block_meta/index.d.ts +6 -1665
- package/dist/block_meta/index.d.ts.map +1 -1
- package/dist/block_registry/block_pack_spec.d.ts +201 -0
- package/dist/block_registry/block_pack_spec.d.ts.map +1 -0
- package/dist/block_registry/index.d.ts +4 -0
- package/dist/block_registry/index.d.ts.map +1 -0
- package/dist/block_registry/overview.d.ts +914 -0
- package/dist/block_registry/overview.d.ts.map +1 -0
- package/dist/block_registry/registry_spec.d.ts +184 -0
- package/dist/block_registry/registry_spec.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +202 -125
- package/dist/index.mjs.map +1 -1
- package/dist/project_overview.d.ts +1 -1
- package/dist/project_overview.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/block_meta/block_components.ts +5 -5
- package/src/block_meta/block_description.ts +29 -0
- package/src/block_meta/block_manifest.ts +40 -0
- package/src/block_meta/{meta.ts → block_meta.ts} +8 -13
- package/src/block_meta/content_conversion.ts +24 -4
- package/src/block_meta/content_types.ts +14 -3
- package/src/block_meta/index.ts +6 -52
- package/src/block_registry/block_pack_spec.ts +51 -0
- package/src/block_registry/index.ts +3 -0
- package/src/block_registry/overview.ts +27 -0
- package/src/block_registry/registry_spec.ts +38 -0
- package/src/index.ts +1 -1
- package/src/project_overview.ts +1 -1
- package/dist/block_meta/block_pack_id.d.ts.map +0 -1
- package/dist/block_meta/meta.d.ts.map +0 -1
- package/dist/block_pack.d.ts +0 -24
- package/dist/block_pack.d.ts.map +0 -1
- package/src/block_pack.ts +0 -29
- /package/src/block_meta/{block_pack_id.ts → block_id.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block_manifest.d.ts","sourceRoot":"","sources":["../../src/block_meta/block_manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoD,CAAC;AACzF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4D,CAAC;AAC/F,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,qDAAqD;AACrD,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,eAAO,MAAM,qBAAqB,kBAAkB,CAAC"}
|
|
@@ -387,29 +387,11 @@ export declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
387
387
|
tags?: string[] | undefined;
|
|
388
388
|
}>;
|
|
389
389
|
export type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;
|
|
390
|
-
export declare const
|
|
390
|
+
export declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
|
|
391
391
|
title: z.ZodString;
|
|
392
392
|
description: z.ZodString;
|
|
393
|
-
longDescription: z.ZodOptional<z.
|
|
394
|
-
|
|
395
|
-
content: z.ZodString;
|
|
396
|
-
}, "strict", z.ZodTypeAny, {
|
|
397
|
-
type: "explicit-string";
|
|
398
|
-
content: string;
|
|
399
|
-
}, {
|
|
400
|
-
type: "explicit-string";
|
|
401
|
-
content: string;
|
|
402
|
-
}>, z.ZodObject<{
|
|
403
|
-
type: z.ZodLiteral<"relative">;
|
|
404
|
-
path: z.ZodString;
|
|
405
|
-
}, "strict", z.ZodTypeAny, {
|
|
406
|
-
type: "relative";
|
|
407
|
-
path: string;
|
|
408
|
-
}, {
|
|
409
|
-
type: "relative";
|
|
410
|
-
path: string;
|
|
411
|
-
}>]>>;
|
|
412
|
-
logo: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
393
|
+
longDescription: z.ZodOptional<z.ZodString>;
|
|
394
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
413
395
|
type: z.ZodLiteral<"explicit-base64">;
|
|
414
396
|
mimeType: z.ZodString;
|
|
415
397
|
content: z.ZodString;
|
|
@@ -421,16 +403,7 @@ export declare const BlockPackMetaManifest: z.ZodObject<{
|
|
|
421
403
|
type: "explicit-base64";
|
|
422
404
|
content: string;
|
|
423
405
|
mimeType: string;
|
|
424
|
-
}
|
|
425
|
-
type: z.ZodLiteral<"relative">;
|
|
426
|
-
path: z.ZodString;
|
|
427
|
-
}, "strict", z.ZodTypeAny, {
|
|
428
|
-
type: "relative";
|
|
429
|
-
path: string;
|
|
430
|
-
}, {
|
|
431
|
-
type: "relative";
|
|
432
|
-
path: string;
|
|
433
|
-
}>]>>;
|
|
406
|
+
}>>;
|
|
434
407
|
url: z.ZodOptional<z.ZodString>;
|
|
435
408
|
docs: z.ZodOptional<z.ZodString>;
|
|
436
409
|
support: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
|
|
@@ -438,7 +411,7 @@ export declare const BlockPackMetaManifest: z.ZodObject<{
|
|
|
438
411
|
organization: z.ZodObject<{
|
|
439
412
|
name: z.ZodString;
|
|
440
413
|
url: z.ZodString;
|
|
441
|
-
logo: z.ZodOptional<z.
|
|
414
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
442
415
|
type: z.ZodLiteral<"explicit-base64">;
|
|
443
416
|
mimeType: z.ZodString;
|
|
444
417
|
content: z.ZodString;
|
|
@@ -450,16 +423,7 @@ export declare const BlockPackMetaManifest: z.ZodObject<{
|
|
|
450
423
|
type: "explicit-base64";
|
|
451
424
|
content: string;
|
|
452
425
|
mimeType: string;
|
|
453
|
-
}
|
|
454
|
-
type: z.ZodLiteral<"relative">;
|
|
455
|
-
path: z.ZodString;
|
|
456
|
-
}, "strict", z.ZodTypeAny, {
|
|
457
|
-
type: "relative";
|
|
458
|
-
path: string;
|
|
459
|
-
}, {
|
|
460
|
-
type: "relative";
|
|
461
|
-
path: string;
|
|
462
|
-
}>]>>;
|
|
426
|
+
}>>;
|
|
463
427
|
}, "strip", z.ZodTypeAny, {
|
|
464
428
|
url: string;
|
|
465
429
|
name: string;
|
|
@@ -467,9 +431,6 @@ export declare const BlockPackMetaManifest: z.ZodObject<{
|
|
|
467
431
|
type: "explicit-base64";
|
|
468
432
|
content: string;
|
|
469
433
|
mimeType: string;
|
|
470
|
-
} | {
|
|
471
|
-
type: "relative";
|
|
472
|
-
path: string;
|
|
473
434
|
} | undefined;
|
|
474
435
|
}, {
|
|
475
436
|
url: string;
|
|
@@ -478,9 +439,6 @@ export declare const BlockPackMetaManifest: z.ZodObject<{
|
|
|
478
439
|
type: "explicit-base64";
|
|
479
440
|
content: string;
|
|
480
441
|
mimeType: string;
|
|
481
|
-
} | {
|
|
482
|
-
type: "relative";
|
|
483
|
-
path: string;
|
|
484
442
|
} | undefined;
|
|
485
443
|
}>;
|
|
486
444
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -491,28 +449,16 @@ export declare const BlockPackMetaManifest: z.ZodObject<{
|
|
|
491
449
|
type: "explicit-base64";
|
|
492
450
|
content: string;
|
|
493
451
|
mimeType: string;
|
|
494
|
-
} | {
|
|
495
|
-
type: "relative";
|
|
496
|
-
path: string;
|
|
497
452
|
} | undefined;
|
|
498
453
|
};
|
|
499
454
|
title: string;
|
|
500
455
|
description: string;
|
|
501
456
|
url?: string | undefined;
|
|
502
|
-
longDescription?:
|
|
503
|
-
type: "explicit-string";
|
|
504
|
-
content: string;
|
|
505
|
-
} | {
|
|
506
|
-
type: "relative";
|
|
507
|
-
path: string;
|
|
508
|
-
} | undefined;
|
|
457
|
+
longDescription?: string | undefined;
|
|
509
458
|
logo?: {
|
|
510
459
|
type: "explicit-base64";
|
|
511
460
|
content: string;
|
|
512
461
|
mimeType: string;
|
|
513
|
-
} | {
|
|
514
|
-
type: "relative";
|
|
515
|
-
path: string;
|
|
516
462
|
} | undefined;
|
|
517
463
|
docs?: string | undefined;
|
|
518
464
|
support?: string | undefined;
|
|
@@ -525,49 +471,37 @@ export declare const BlockPackMetaManifest: z.ZodObject<{
|
|
|
525
471
|
type: "explicit-base64";
|
|
526
472
|
content: string;
|
|
527
473
|
mimeType: string;
|
|
528
|
-
} | {
|
|
529
|
-
type: "relative";
|
|
530
|
-
path: string;
|
|
531
474
|
} | undefined;
|
|
532
475
|
};
|
|
533
476
|
title: string;
|
|
534
477
|
description: string;
|
|
535
478
|
url?: string | undefined;
|
|
536
|
-
longDescription?:
|
|
537
|
-
type: "explicit-string";
|
|
538
|
-
content: string;
|
|
539
|
-
} | {
|
|
540
|
-
type: "relative";
|
|
541
|
-
path: string;
|
|
542
|
-
} | undefined;
|
|
479
|
+
longDescription?: string | undefined;
|
|
543
480
|
logo?: {
|
|
544
481
|
type: "explicit-base64";
|
|
545
482
|
content: string;
|
|
546
483
|
mimeType: string;
|
|
547
|
-
} | {
|
|
548
|
-
type: "relative";
|
|
549
|
-
path: string;
|
|
550
484
|
} | undefined;
|
|
551
485
|
docs?: string | undefined;
|
|
552
486
|
support?: string | undefined;
|
|
553
487
|
tags?: string[] | undefined;
|
|
554
488
|
}>;
|
|
555
|
-
export type
|
|
556
|
-
export declare const
|
|
489
|
+
export type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;
|
|
490
|
+
export declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{
|
|
557
491
|
title: z.ZodString;
|
|
558
492
|
description: z.ZodString;
|
|
559
493
|
longDescription: z.ZodOptional<z.ZodString>;
|
|
560
494
|
logo: z.ZodOptional<z.ZodObject<{
|
|
561
|
-
type: z.ZodLiteral<"explicit-
|
|
495
|
+
type: z.ZodLiteral<"explicit-bytes">;
|
|
562
496
|
mimeType: z.ZodString;
|
|
563
|
-
content: z.
|
|
497
|
+
content: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
564
498
|
}, "strict", z.ZodTypeAny, {
|
|
565
|
-
type: "explicit-
|
|
566
|
-
content:
|
|
499
|
+
type: "explicit-bytes";
|
|
500
|
+
content: Uint8Array;
|
|
567
501
|
mimeType: string;
|
|
568
502
|
}, {
|
|
569
|
-
type: "explicit-
|
|
570
|
-
content:
|
|
503
|
+
type: "explicit-bytes";
|
|
504
|
+
content: Uint8Array;
|
|
571
505
|
mimeType: string;
|
|
572
506
|
}>>;
|
|
573
507
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -578,32 +512,32 @@ export declare const BlockPackMetaEmbeddedContent: z.ZodObject<{
|
|
|
578
512
|
name: z.ZodString;
|
|
579
513
|
url: z.ZodString;
|
|
580
514
|
logo: z.ZodOptional<z.ZodObject<{
|
|
581
|
-
type: z.ZodLiteral<"explicit-
|
|
515
|
+
type: z.ZodLiteral<"explicit-bytes">;
|
|
582
516
|
mimeType: z.ZodString;
|
|
583
|
-
content: z.
|
|
517
|
+
content: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
584
518
|
}, "strict", z.ZodTypeAny, {
|
|
585
|
-
type: "explicit-
|
|
586
|
-
content:
|
|
519
|
+
type: "explicit-bytes";
|
|
520
|
+
content: Uint8Array;
|
|
587
521
|
mimeType: string;
|
|
588
522
|
}, {
|
|
589
|
-
type: "explicit-
|
|
590
|
-
content:
|
|
523
|
+
type: "explicit-bytes";
|
|
524
|
+
content: Uint8Array;
|
|
591
525
|
mimeType: string;
|
|
592
526
|
}>>;
|
|
593
527
|
}, "strip", z.ZodTypeAny, {
|
|
594
528
|
url: string;
|
|
595
529
|
name: string;
|
|
596
530
|
logo?: {
|
|
597
|
-
type: "explicit-
|
|
598
|
-
content:
|
|
531
|
+
type: "explicit-bytes";
|
|
532
|
+
content: Uint8Array;
|
|
599
533
|
mimeType: string;
|
|
600
534
|
} | undefined;
|
|
601
535
|
}, {
|
|
602
536
|
url: string;
|
|
603
537
|
name: string;
|
|
604
538
|
logo?: {
|
|
605
|
-
type: "explicit-
|
|
606
|
-
content:
|
|
539
|
+
type: "explicit-bytes";
|
|
540
|
+
content: Uint8Array;
|
|
607
541
|
mimeType: string;
|
|
608
542
|
} | undefined;
|
|
609
543
|
}>;
|
|
@@ -612,8 +546,8 @@ export declare const BlockPackMetaEmbeddedContent: z.ZodObject<{
|
|
|
612
546
|
url: string;
|
|
613
547
|
name: string;
|
|
614
548
|
logo?: {
|
|
615
|
-
type: "explicit-
|
|
616
|
-
content:
|
|
549
|
+
type: "explicit-bytes";
|
|
550
|
+
content: Uint8Array;
|
|
617
551
|
mimeType: string;
|
|
618
552
|
} | undefined;
|
|
619
553
|
};
|
|
@@ -622,8 +556,8 @@ export declare const BlockPackMetaEmbeddedContent: z.ZodObject<{
|
|
|
622
556
|
url?: string | undefined;
|
|
623
557
|
longDescription?: string | undefined;
|
|
624
558
|
logo?: {
|
|
625
|
-
type: "explicit-
|
|
626
|
-
content:
|
|
559
|
+
type: "explicit-bytes";
|
|
560
|
+
content: Uint8Array;
|
|
627
561
|
mimeType: string;
|
|
628
562
|
} | undefined;
|
|
629
563
|
docs?: string | undefined;
|
|
@@ -634,8 +568,8 @@ export declare const BlockPackMetaEmbeddedContent: z.ZodObject<{
|
|
|
634
568
|
url: string;
|
|
635
569
|
name: string;
|
|
636
570
|
logo?: {
|
|
637
|
-
type: "explicit-
|
|
638
|
-
content:
|
|
571
|
+
type: "explicit-bytes";
|
|
572
|
+
content: Uint8Array;
|
|
639
573
|
mimeType: string;
|
|
640
574
|
} | undefined;
|
|
641
575
|
};
|
|
@@ -644,13 +578,13 @@ export declare const BlockPackMetaEmbeddedContent: z.ZodObject<{
|
|
|
644
578
|
url?: string | undefined;
|
|
645
579
|
longDescription?: string | undefined;
|
|
646
580
|
logo?: {
|
|
647
|
-
type: "explicit-
|
|
648
|
-
content:
|
|
581
|
+
type: "explicit-bytes";
|
|
582
|
+
content: Uint8Array;
|
|
649
583
|
mimeType: string;
|
|
650
584
|
} | undefined;
|
|
651
585
|
docs?: string | undefined;
|
|
652
586
|
support?: string | undefined;
|
|
653
587
|
tags?: string[] | undefined;
|
|
654
588
|
}>;
|
|
655
|
-
export type
|
|
656
|
-
//# sourceMappingURL=
|
|
589
|
+
export type BlockPackMetaEmbeddedBytes = z.inf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,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtC,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import { ContentAbsoluteUrl, ContentAnyLocal, ContentRelative } from './content_types';
|
|
1
|
+
import { ContentAbsoluteUrl, ContentAnyLocal, ContentExplicitOrRelative, ContentRelative } from './content_types';
|
|
2
2
|
export declare function mapRemoteToAbsolute(rootUrl: string): <T extends ContentAnyLocal>(value: T) => Exclude<T, ContentRelative> | ContentAbsoluteUrl;
|
|
3
|
+
/**
|
|
4
|
+
* Creates transformer of relative content paths, that adds a specific prefix to the relative path.
|
|
5
|
+
*
|
|
6
|
+
* If prefix = "nested-path/", paths like "somefile.txt" will be transformed to "nested-path/somefile.txt".
|
|
7
|
+
*
|
|
8
|
+
* @param prefix prefix to add to the relaive path, slesh at the end will be added automatically if missed
|
|
9
|
+
*/
|
|
10
|
+
export declare function addPrefixToRelative(prefix: string): <T extends ContentExplicitOrRelative>(value: T) => T;
|
|
3
11
|
//# sourceMappingURL=content_conversion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content_conversion.d.ts","sourceRoot":"","sources":["../../src/block_meta/content_conversion.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"content_conversion.d.ts","sourceRoot":"","sources":["../../src/block_meta/content_conversion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,yBAAyB,EACzB,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAEzB,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,GACd,CAAC,CAAC,SAAS,eAAe,EAAE,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,EAAE,eAAe,CAAC,GAAG,kBAAkB,CAM3F;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,GACb,CAAC,CAAC,SAAS,yBAAyB,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,CAMtD"}
|
|
@@ -57,17 +57,20 @@ export declare const ContentAbsoluteUrl: z.ZodObject<{
|
|
|
57
57
|
url: string;
|
|
58
58
|
}>;
|
|
59
59
|
export type ContentAbsoluteUrl = z.infer<typeof ContentAbsoluteUrl>;
|
|
60
|
-
export declare const
|
|
61
|
-
type: z.ZodLiteral<"explicit">;
|
|
60
|
+
export declare const ContentExplicitBytes: z.ZodObject<{
|
|
61
|
+
type: z.ZodLiteral<"explicit-bytes">;
|
|
62
|
+
mimeType: z.ZodString;
|
|
62
63
|
content: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
63
64
|
}, "strict", z.ZodTypeAny, {
|
|
64
|
-
type: "explicit";
|
|
65
|
+
type: "explicit-bytes";
|
|
65
66
|
content: Uint8Array;
|
|
67
|
+
mimeType: string;
|
|
66
68
|
}, {
|
|
67
|
-
type: "explicit";
|
|
69
|
+
type: "explicit-bytes";
|
|
68
70
|
content: Uint8Array;
|
|
71
|
+
mimeType: string;
|
|
69
72
|
}>;
|
|
70
|
-
export type
|
|
73
|
+
export type ContentExplicitBytes = z.infer<typeof ContentExplicitBytes>;
|
|
71
74
|
export declare const ContentAbsoluteFolder: z.ZodObject<{
|
|
72
75
|
type: z.ZodLiteral<"absolute-folder">;
|
|
73
76
|
folder: z.ZodString;
|
|
@@ -129,6 +132,38 @@ export declare const ContentAny: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
129
132
|
url: string;
|
|
130
133
|
}>]>;
|
|
131
134
|
export type ContentAny = z.infer<typeof ContentAny>;
|
|
135
|
+
export declare const ContentExplicitOrRelative: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
136
|
+
type: z.ZodLiteral<"explicit-string">;
|
|
137
|
+
content: z.ZodString;
|
|
138
|
+
}, "strict", z.ZodTypeAny, {
|
|
139
|
+
type: "explicit-string";
|
|
140
|
+
content: string;
|
|
141
|
+
}, {
|
|
142
|
+
type: "explicit-string";
|
|
143
|
+
content: string;
|
|
144
|
+
}>, z.ZodObject<{
|
|
145
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
146
|
+
mimeType: z.ZodString;
|
|
147
|
+
content: z.ZodString;
|
|
148
|
+
}, "strict", z.ZodTypeAny, {
|
|
149
|
+
type: "explicit-base64";
|
|
150
|
+
content: string;
|
|
151
|
+
mimeType: string;
|
|
152
|
+
}, {
|
|
153
|
+
type: "explicit-base64";
|
|
154
|
+
content: string;
|
|
155
|
+
mimeType: string;
|
|
156
|
+
}>, z.ZodObject<{
|
|
157
|
+
type: z.ZodLiteral<"relative">;
|
|
158
|
+
path: z.ZodString;
|
|
159
|
+
}, "strict", z.ZodTypeAny, {
|
|
160
|
+
type: "relative";
|
|
161
|
+
path: string;
|
|
162
|
+
}, {
|
|
163
|
+
type: "relative";
|
|
164
|
+
path: string;
|
|
165
|
+
}>]>;
|
|
166
|
+
export type ContentExplicitOrRelative = z.infer<typeof ContentExplicitOrRelative>;
|
|
132
167
|
export declare const ContentAnyLocal: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
133
168
|
type: z.ZodLiteral<"explicit-string">;
|
|
134
169
|
content: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content_types.d.ts","sourceRoot":"","sources":["../../src/block_meta/content_types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,qBAAqB;;;;;;;;;EAKvB,CAAC;AACZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,eAAO,MAAM,qBAAqB;;;;;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