@milaboratories/pl-model-middle-layer 1.32.0 → 1.32.1
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 +8 -10
- package/dist/block_meta/block_components.d.ts.map +1 -1
- package/dist/block_meta/block_description.d.ts +80 -82
- package/dist/block_meta/block_description.d.ts.map +1 -1
- package/dist/block_meta/block_id.d.ts +10 -12
- package/dist/block_meta/block_id.d.ts.map +1 -1
- package/dist/block_meta/block_manifest.d.ts +13 -15
- package/dist/block_meta/block_manifest.d.ts.map +1 -1
- package/dist/block_meta/block_meta.d.ts +10 -12
- package/dist/block_meta/block_meta.d.ts.map +1 -1
- package/dist/block_meta/common.d.ts +2 -3
- package/dist/block_meta/common.d.ts.map +1 -1
- package/dist/block_meta/content_conversion.d.ts +2 -4
- package/dist/block_meta/content_conversion.d.ts.map +1 -1
- package/dist/block_meta/content_types.d.ts +29 -28
- package/dist/block_meta/content_types.d.ts.map +1 -1
- package/dist/block_meta/semver.d.ts +1 -3
- package/dist/block_meta/semver.d.ts.map +1 -1
- package/dist/block_registry/block_pack_spec.d.ts +16 -18
- package/dist/block_registry/block_pack_spec.d.ts.map +1 -1
- package/dist/block_registry/overview.d.ts +137 -139
- package/dist/block_registry/overview.d.ts.map +1 -1
- package/dist/block_registry/registry_spec.d.ts +16 -18
- package/dist/block_registry/registry_spec.d.ts.map +1 -1
- package/dist/block_settings.d.ts +5 -5
- package/dist/block_settings.d.ts.map +1 -1
- package/dist/block_state.d.ts +9 -7
- package/dist/block_state.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/json.d.ts +5 -7
- package/dist/json.d.ts.map +1 -1
- package/dist/pframe/internal_api/api_factory.d.ts +10 -12
- package/dist/pframe/internal_api/api_factory.d.ts.map +1 -1
- package/dist/pframe/internal_api/api_read.d.ts +2 -4
- package/dist/pframe/internal_api/api_read.d.ts.map +1 -1
- package/dist/pframe/internal_api/common.d.ts +6 -8
- package/dist/pframe/internal_api/common.d.ts.map +1 -1
- package/dist/pframe/internal_api/create_table.d.ts +9 -11
- package/dist/pframe/internal_api/create_table.d.ts.map +1 -1
- package/dist/pframe/internal_api/delete_column.d.ts +2 -4
- package/dist/pframe/internal_api/delete_column.d.ts.map +1 -1
- package/dist/pframe/internal_api/discover_columns.d.ts +11 -12
- package/dist/pframe/internal_api/discover_columns.d.ts.map +1 -1
- package/dist/pframe/internal_api/find_columns.d.ts +5 -7
- package/dist/pframe/internal_api/find_columns.d.ts.map +1 -1
- package/dist/pframe/internal_api/http_helpers.d.ts +87 -53
- package/dist/pframe/internal_api/http_helpers.d.ts.map +1 -1
- package/dist/pframe/internal_api/index.d.ts +0 -2
- package/dist/pframe/internal_api/pframe.d.ts +8 -7
- package/dist/pframe/internal_api/pframe.d.ts.map +1 -1
- package/dist/pframe/internal_api/table.d.ts +1 -3
- package/dist/pframe/internal_api/table.d.ts.map +1 -1
- package/dist/project.d.ts +1 -2
- package/dist/project.d.ts.map +1 -1
- package/dist/project_list.d.ts +1 -3
- package/dist/project_list.d.ts.map +1 -1
- package/dist/project_overview.d.ts +25 -15
- package/dist/project_overview.d.ts.map +1 -1
- package/dist/storage_debug_view.d.ts +1 -2
- package/dist/storage_debug_view.d.ts.map +1 -1
- package/dist/update_info.d.ts +3 -3
- package/dist/update_info.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ContentAbsoluteUrl, ContentAnyLocal, ContentExplicitOrRelative, ContentRelative } from "./content_types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/block_meta/content_conversion.d.ts
|
|
4
|
-
declare function mapRemoteToAbsolute(rootUrl: string): <T extends ContentAnyLocal>(value: T) => Exclude<T, ContentRelative> | ContentAbsoluteUrl;
|
|
3
|
+
export declare function mapRemoteToAbsolute(rootUrl: string): <T extends ContentAnyLocal>(value: T) => Exclude<T, ContentRelative> | ContentAbsoluteUrl;
|
|
5
4
|
/**
|
|
6
5
|
* Creates transformer of relative content paths, that adds a specific prefix to the relative path.
|
|
7
6
|
*
|
|
@@ -9,7 +8,6 @@ declare function mapRemoteToAbsolute(rootUrl: string): <T extends ContentAnyLoca
|
|
|
9
8
|
*
|
|
10
9
|
* @param prefix prefix to add to the relative path, slash at the end will be added automatically if missed
|
|
11
10
|
*/
|
|
12
|
-
declare function addPrefixToRelative(prefix: string): <T extends ContentExplicitOrRelative>(value: T) => T;
|
|
11
|
+
export declare function addPrefixToRelative(prefix: string): <T extends ContentExplicitOrRelative>(value: T) => T;
|
|
13
12
|
//#endregion
|
|
14
|
-
export { addPrefixToRelative, mapRemoteToAbsolute };
|
|
15
13
|
//# sourceMappingURL=content_conversion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content_conversion.d.ts","names":[],"sources":["../../src/block_meta/content_conversion.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"content_conversion.d.ts","names":[],"sources":["../../src/block_meta/content_conversion.ts"],"mappings":";;wBAOgB,oBACd,mBACE,UAAU,iBAAiB,OAAO,MAAM,QAAQ,GAAG,mBAAmB;;;;;;;;wBAe1D,oBACd,kBACE,UAAU,2BAA2B,OAAO,MAAM"}
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
3
2
|
//#region src/block_meta/content_types.d.ts
|
|
4
3
|
/** Inlined plain string (e.g. a short text snippet or markdown body). */
|
|
5
|
-
type ContentExplicitString = {
|
|
4
|
+
export type ContentExplicitString = {
|
|
6
5
|
type: "explicit-string";
|
|
7
6
|
content: string;
|
|
8
7
|
};
|
|
9
8
|
/** Inlined binary blob carried as base64 (e.g. a serialized logo image). */
|
|
10
|
-
type ContentExplicitBase64 = {
|
|
11
|
-
type: "explicit-base64";
|
|
12
|
-
|
|
9
|
+
export type ContentExplicitBase64 = {
|
|
10
|
+
type: "explicit-base64";
|
|
11
|
+
/** MIME type used to interpret `content`. */
|
|
12
|
+
mimeType: string;
|
|
13
|
+
/** Base64-encoded binary payload. */
|
|
13
14
|
content: string;
|
|
14
15
|
};
|
|
15
16
|
/** Inlined binary blob carried as raw bytes. Wire form only; not used in JSON. */
|
|
16
|
-
type ContentExplicitBytes = {
|
|
17
|
-
type: "explicit-bytes";
|
|
17
|
+
export type ContentExplicitBytes = {
|
|
18
|
+
type: "explicit-bytes";
|
|
19
|
+
/** MIME type used to interpret `content`. */
|
|
18
20
|
mimeType: string;
|
|
19
21
|
content: Uint8Array;
|
|
20
22
|
};
|
|
21
23
|
/** Reference to a file by path relative to the carrying structure. */
|
|
22
|
-
type ContentRelative = {
|
|
24
|
+
export type ContentRelative = {
|
|
23
25
|
type: "relative";
|
|
24
26
|
path: string;
|
|
25
27
|
};
|
|
26
28
|
/** Reference to a file at an absolute local path. */
|
|
27
|
-
type ContentAbsoluteFile = {
|
|
29
|
+
export type ContentAbsoluteFile = {
|
|
28
30
|
type: "absolute-file";
|
|
29
31
|
file: string;
|
|
30
32
|
};
|
|
@@ -33,34 +35,34 @@ type ContentAbsoluteFile = {
|
|
|
33
35
|
* delivered as folders; the desktop "add block" dialog reads such folders on
|
|
34
36
|
* demand instead of pulling every UI bundle eagerly.
|
|
35
37
|
*/
|
|
36
|
-
type ContentAbsoluteFolder = {
|
|
38
|
+
export type ContentAbsoluteFolder = {
|
|
37
39
|
type: "absolute-folder";
|
|
38
40
|
folder: string;
|
|
39
41
|
};
|
|
40
42
|
/** Reference to a file by remote URL (e.g. served from the registry). */
|
|
41
|
-
type ContentAbsoluteUrl = {
|
|
43
|
+
export type ContentAbsoluteUrl = {
|
|
42
44
|
type: "absolute-url";
|
|
43
45
|
url: string;
|
|
44
46
|
};
|
|
45
47
|
/** Canonical union of every content carrier shape used across the platform. */
|
|
46
|
-
type Content = ContentExplicitString | ContentExplicitBase64 | ContentExplicitBytes | ContentRelative | ContentAbsoluteFile | ContentAbsoluteFolder | ContentAbsoluteUrl;
|
|
48
|
+
export type Content = ContentExplicitString | ContentExplicitBase64 | ContentExplicitBytes | ContentRelative | ContentAbsoluteFile | ContentAbsoluteFolder | ContentAbsoluteUrl;
|
|
47
49
|
/** Inlined or relative-path content (text/binary inlined, or relative path). */
|
|
48
|
-
type ContentExplicitOrRelative = ContentExplicitString | ContentExplicitBase64 | ContentRelative;
|
|
50
|
+
export type ContentExplicitOrRelative = ContentExplicitString | ContentExplicitBase64 | ContentRelative;
|
|
49
51
|
/** Any locally-resolvable content (inlined, relative path, or absolute file). */
|
|
50
|
-
type ContentAnyLocal = ContentExplicitString | ContentExplicitBase64 | ContentRelative | ContentAbsoluteFile;
|
|
52
|
+
export type ContentAnyLocal = ContentExplicitString | ContentExplicitBase64 | ContentRelative | ContentAbsoluteFile;
|
|
51
53
|
/** Text content available locally (inlined, relative path, or absolute file). */
|
|
52
|
-
type ContentAnyTextLocal = ContentExplicitString | ContentRelative | ContentAbsoluteFile;
|
|
54
|
+
export type ContentAnyTextLocal = ContentExplicitString | ContentRelative | ContentAbsoluteFile;
|
|
53
55
|
/** Binary content available locally (inlined base64, relative path, or absolute file). */
|
|
54
|
-
type ContentAnyBinaryLocal = ContentExplicitBase64 | ContentRelative | ContentAbsoluteFile;
|
|
56
|
+
export type ContentAnyBinaryLocal = ContentExplicitBase64 | ContentRelative | ContentAbsoluteFile;
|
|
55
57
|
/** Binary content fully resolved (inlined base64 or absolute file). */
|
|
56
|
-
type ContentAbsoluteBinaryLocal = ContentExplicitBase64 | ContentAbsoluteFile;
|
|
58
|
+
export type ContentAbsoluteBinaryLocal = ContentExplicitBase64 | ContentAbsoluteFile;
|
|
57
59
|
/** Text content fully resolved (inlined string or absolute file). */
|
|
58
|
-
type ContentAbsoluteTextLocal = ContentExplicitString | ContentAbsoluteFile;
|
|
60
|
+
export type ContentAbsoluteTextLocal = ContentExplicitString | ContentAbsoluteFile;
|
|
59
61
|
/** Binary content in manifest form (inlined base64 or path relative to the manifest). */
|
|
60
|
-
type ContentRelativeBinary = ContentExplicitBase64 | ContentRelative;
|
|
62
|
+
export type ContentRelativeBinary = ContentExplicitBase64 | ContentRelative;
|
|
61
63
|
/** Text content in manifest form (inlined string or path relative to the manifest). */
|
|
62
|
-
type ContentRelativeText = ContentExplicitString | ContentRelative;
|
|
63
|
-
declare const ContentExplicitBase64: z.ZodObject<{
|
|
64
|
+
export type ContentRelativeText = ContentExplicitString | ContentRelative;
|
|
65
|
+
export declare const ContentExplicitBase64: z.ZodObject<{
|
|
64
66
|
type: z.ZodLiteral<"explicit-base64">;
|
|
65
67
|
mimeType: z.ZodString;
|
|
66
68
|
content: z.ZodString;
|
|
@@ -73,7 +75,7 @@ declare const ContentExplicitBase64: z.ZodObject<{
|
|
|
73
75
|
mimeType: string;
|
|
74
76
|
content: string;
|
|
75
77
|
}>;
|
|
76
|
-
declare const ContentExplicitBytes: z.ZodObject<{
|
|
78
|
+
export declare const ContentExplicitBytes: z.ZodObject<{
|
|
77
79
|
type: z.ZodLiteral<"explicit-bytes">;
|
|
78
80
|
mimeType: z.ZodString;
|
|
79
81
|
content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
|
|
@@ -86,7 +88,7 @@ declare const ContentExplicitBytes: z.ZodObject<{
|
|
|
86
88
|
mimeType: string;
|
|
87
89
|
content: Uint8Array<ArrayBuffer>;
|
|
88
90
|
}>;
|
|
89
|
-
declare const ContentRelative: z.ZodObject<{
|
|
91
|
+
export declare const ContentRelative: z.ZodObject<{
|
|
90
92
|
type: z.ZodLiteral<"relative">;
|
|
91
93
|
path: z.ZodString;
|
|
92
94
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -96,7 +98,7 @@ declare const ContentRelative: z.ZodObject<{
|
|
|
96
98
|
type: "relative";
|
|
97
99
|
path: string;
|
|
98
100
|
}>;
|
|
99
|
-
declare const ContentRelativeBinary: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
101
|
+
export declare const ContentRelativeBinary: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
100
102
|
type: z.ZodLiteral<"explicit-base64">;
|
|
101
103
|
mimeType: z.ZodString;
|
|
102
104
|
content: z.ZodString;
|
|
@@ -118,7 +120,7 @@ declare const ContentRelativeBinary: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
118
120
|
type: "relative";
|
|
119
121
|
path: string;
|
|
120
122
|
}>]>;
|
|
121
|
-
declare const ContentRelativeText: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
123
|
+
export declare const ContentRelativeText: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
122
124
|
type: z.ZodLiteral<"explicit-string">;
|
|
123
125
|
content: z.ZodString;
|
|
124
126
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -137,7 +139,7 @@ declare const ContentRelativeText: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
137
139
|
type: "relative";
|
|
138
140
|
path: string;
|
|
139
141
|
}>]>;
|
|
140
|
-
declare const DescriptionContentBinary: z.ZodUnion<[z.ZodEffects<z.ZodString, ContentRelativeBinary, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
142
|
+
export declare const DescriptionContentBinary: z.ZodUnion<[z.ZodEffects<z.ZodString, ContentRelativeBinary, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
141
143
|
type: z.ZodLiteral<"explicit-base64">;
|
|
142
144
|
mimeType: z.ZodString;
|
|
143
145
|
content: z.ZodString;
|
|
@@ -168,7 +170,7 @@ declare const DescriptionContentBinary: z.ZodUnion<[z.ZodEffects<z.ZodString, Co
|
|
|
168
170
|
type: "absolute-file";
|
|
169
171
|
file: string;
|
|
170
172
|
}>]>]>;
|
|
171
|
-
declare const DescriptionContentText: z.ZodUnion<[z.ZodEffects<z.ZodString, ContentRelativeText, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
173
|
+
export declare const DescriptionContentText: z.ZodUnion<[z.ZodEffects<z.ZodString, ContentRelativeText, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
172
174
|
type: z.ZodLiteral<"explicit-string">;
|
|
173
175
|
content: z.ZodString;
|
|
174
176
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -197,5 +199,4 @@ declare const DescriptionContentText: z.ZodUnion<[z.ZodEffects<z.ZodString, Cont
|
|
|
197
199
|
file: string;
|
|
198
200
|
}>]>]>;
|
|
199
201
|
//#endregion
|
|
200
|
-
export { Content, ContentAbsoluteBinaryLocal, ContentAbsoluteFile, ContentAbsoluteFolder, ContentAbsoluteTextLocal, ContentAbsoluteUrl, ContentAnyBinaryLocal, ContentAnyLocal, ContentAnyTextLocal, ContentExplicitBase64, ContentExplicitBytes, ContentExplicitOrRelative, ContentExplicitString, ContentRelative, ContentRelativeBinary, ContentRelativeText, DescriptionContentBinary, DescriptionContentText };
|
|
201
202
|
//# sourceMappingURL=content_types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content_types.d.ts","names":[],"sources":["../../src/block_meta/content_types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"content_types.d.ts","names":[],"sources":["../../src/block_meta/content_types.ts"],"mappings":";;;YAUY;EACV;EACA;;;YAIU;EACV;;EAEA;;EAEA;;;YAIU;EACV;;EAEA;EACA,SAAS;;;YAIC;EACV;EACA;;;YAIU;EACV;EACA;;;;;;;YAQU;EACV;EACA;;;YAIU;EACV;EACA;;;YAIU,UACR,wBACA,wBACA,uBACA,kBACA,sBACA,wBACA;;YAQQ,4BACR,wBACA,wBACA;;YAGQ,kBACR,wBACA,wBACA,kBACA;;YAGQ,sBAAsB,wBAAwB,kBAAkB;;YAGhE,wBAAwB,wBAAwB,kBAAkB;;YAGlE,6BAA6B,wBAAwB;;YAGrD,2BAA2B,wBAAwB;;YAGnD,wBAAwB,wBAAwB;;YAGhD,sBAAsB,wBAAwB;qBAkB7C,uBAAqB,EAAA;;;;;;;;;;;;;qBAQrB,sBAAoB,EAAA;;;;;;;;;;;;;qBAQpB,iBAAe,EAAA;;;;;;;;;;qBAcf,uBAAqB,EAAA,+BAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;qBAKrB,qBAAmB,EAAA,+BAAA,EAAA;;;;;;;;;;;;;;;;;;;qBAYnB,0BAAwB,EAAA,UAAA,EAAA,WAAA,EAAA,WAAA,gCAAA,EAAA,+BAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAWxB,wBAAsB,EAAA,UAAA,EAAA,WAAA,EAAA,WAAA,8BAAA,EAAA,+BAAA,EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semver.d.ts","names":[],"sources":["../../src/block_meta/semver.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"semver.d.ts","names":[],"sources":["../../src/block_meta/semver.ts"],"mappings":";;qBAIa,QAAM,EAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
3
2
|
//#region src/block_registry/block_pack_spec.d.ts
|
|
4
3
|
/** Block pack from local folder, to be used during block development. Old layout.
|
|
5
4
|
* @deprecated don't use */
|
|
6
|
-
declare const BlockPackDevV1: z.ZodObject<{
|
|
5
|
+
export declare const BlockPackDevV1: z.ZodObject<{
|
|
7
6
|
type: z.ZodLiteral<"dev-v1">;
|
|
8
7
|
folder: z.ZodString;
|
|
9
8
|
mtime: z.ZodOptional<z.ZodString>;
|
|
@@ -17,9 +16,9 @@ declare const BlockPackDevV1: z.ZodObject<{
|
|
|
17
16
|
mtime?: string | undefined;
|
|
18
17
|
}>;
|
|
19
18
|
/** @deprecated don't use */
|
|
20
|
-
type BlockPackDevV1 = z.infer<typeof BlockPackDevV1>;
|
|
19
|
+
export type BlockPackDevV1 = z.infer<typeof BlockPackDevV1>;
|
|
21
20
|
/** Block pack from local folder, to be used during block development. New layout. */
|
|
22
|
-
declare const BlockPackDevV2: z.ZodObject<{
|
|
21
|
+
export declare const BlockPackDevV2: z.ZodObject<{
|
|
23
22
|
type: z.ZodLiteral<"dev-v2">;
|
|
24
23
|
folder: z.ZodString;
|
|
25
24
|
mtime: z.ZodOptional<z.ZodString>;
|
|
@@ -32,12 +31,12 @@ declare const BlockPackDevV2: z.ZodObject<{
|
|
|
32
31
|
folder: string;
|
|
33
32
|
mtime?: string | undefined;
|
|
34
33
|
}>;
|
|
35
|
-
type BlockPackDevV2 = z.infer<typeof BlockPackDevV2>;
|
|
34
|
+
export type BlockPackDevV2 = z.infer<typeof BlockPackDevV2>;
|
|
36
35
|
/** Block pack consumed from an npm-installed package's `block-pack/` folder
|
|
37
36
|
* (manifest + ui.tgz). Emitted by the facade's engine-generated BlockPointer.
|
|
38
37
|
* Self-describes its pack location (`packUrl`, `rootUrl`) rather than carrying
|
|
39
38
|
* `dev-v2`'s `folder`. */
|
|
40
|
-
declare const BlockPackFromPackV2: z.ZodObject<{
|
|
39
|
+
export declare const BlockPackFromPackV2: z.ZodObject<{
|
|
41
40
|
type: z.ZodLiteral<"from-pack-v2">;
|
|
42
41
|
/** `file:` URL of the block-pack directory itself — it directly contains
|
|
43
42
|
* `manifest.json`, `ui.tgz`, `model.json`, `published.json`, … This is a URL,
|
|
@@ -58,21 +57,21 @@ declare const BlockPackFromPackV2: z.ZodObject<{
|
|
|
58
57
|
}, "strip", z.ZodTypeAny, {
|
|
59
58
|
type: "from-pack-v2";
|
|
60
59
|
packUrl: string;
|
|
61
|
-
mtime?: string | undefined;
|
|
62
60
|
rootUrl?: string | undefined;
|
|
61
|
+
mtime?: string | undefined;
|
|
63
62
|
}, {
|
|
64
63
|
type: "from-pack-v2";
|
|
65
64
|
packUrl: string;
|
|
66
|
-
mtime?: string | undefined;
|
|
67
65
|
rootUrl?: string | undefined;
|
|
66
|
+
mtime?: string | undefined;
|
|
68
67
|
}>;
|
|
69
|
-
type BlockPackFromPackV2 = z.infer<typeof BlockPackFromPackV2>;
|
|
68
|
+
export type BlockPackFromPackV2 = z.infer<typeof BlockPackFromPackV2>;
|
|
70
69
|
/**
|
|
71
70
|
* Block pack from registry with version 2 layout, to be loaded directly
|
|
72
71
|
* from the client.
|
|
73
72
|
* @deprecated don't use
|
|
74
73
|
* */
|
|
75
|
-
declare const BlockPackFromRegistryV1: z.ZodObject<{
|
|
74
|
+
export declare const BlockPackFromRegistryV1: z.ZodObject<{
|
|
76
75
|
type: z.ZodLiteral<"from-registry-v1">;
|
|
77
76
|
registryUrl: z.ZodString;
|
|
78
77
|
id: z.ZodObject<{
|
|
@@ -106,10 +105,10 @@ declare const BlockPackFromRegistryV1: z.ZodObject<{
|
|
|
106
105
|
};
|
|
107
106
|
}>;
|
|
108
107
|
/** @deprecated don't use */
|
|
109
|
-
type BlockPackFromRegistryV1 = z.infer<typeof BlockPackFromRegistryV1>;
|
|
108
|
+
export type BlockPackFromRegistryV1 = z.infer<typeof BlockPackFromRegistryV1>;
|
|
110
109
|
/** Block pack from registry with version 2 layout, to be loaded directly
|
|
111
110
|
* from the client. */
|
|
112
|
-
declare const BlockPackFromRegistryV2: z.ZodObject<{
|
|
111
|
+
export declare const BlockPackFromRegistryV2: z.ZodObject<{
|
|
113
112
|
type: z.ZodLiteral<"from-registry-v2">;
|
|
114
113
|
registryUrl: z.ZodString;
|
|
115
114
|
id: z.ZodObject<{
|
|
@@ -145,9 +144,9 @@ declare const BlockPackFromRegistryV2: z.ZodObject<{
|
|
|
145
144
|
};
|
|
146
145
|
channel?: string | undefined;
|
|
147
146
|
}>;
|
|
148
|
-
type BlockPackFromRegistryV2 = z.infer<typeof BlockPackFromRegistryV2>;
|
|
147
|
+
export type BlockPackFromRegistryV2 = z.infer<typeof BlockPackFromRegistryV2>;
|
|
149
148
|
/** Information about block origin, can be used to instantiate new blocks */
|
|
150
|
-
declare const BlockPackSpec: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
149
|
+
export declare const BlockPackSpec: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
151
150
|
type: z.ZodLiteral<"dev-v1">;
|
|
152
151
|
folder: z.ZodString;
|
|
153
152
|
mtime: z.ZodOptional<z.ZodString>;
|
|
@@ -192,13 +191,13 @@ declare const BlockPackSpec: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
192
191
|
}, "strip", z.ZodTypeAny, {
|
|
193
192
|
type: "from-pack-v2";
|
|
194
193
|
packUrl: string;
|
|
195
|
-
mtime?: string | undefined;
|
|
196
194
|
rootUrl?: string | undefined;
|
|
195
|
+
mtime?: string | undefined;
|
|
197
196
|
}, {
|
|
198
197
|
type: "from-pack-v2";
|
|
199
198
|
packUrl: string;
|
|
200
|
-
mtime?: string | undefined;
|
|
201
199
|
rootUrl?: string | undefined;
|
|
200
|
+
mtime?: string | undefined;
|
|
202
201
|
}>, z.ZodObject<{
|
|
203
202
|
type: z.ZodLiteral<"from-registry-v1">;
|
|
204
203
|
registryUrl: z.ZodString;
|
|
@@ -267,7 +266,6 @@ declare const BlockPackSpec: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
267
266
|
};
|
|
268
267
|
channel?: string | undefined;
|
|
269
268
|
}>]>;
|
|
270
|
-
type BlockPackSpec = z.infer<typeof BlockPackSpec>;
|
|
269
|
+
export type BlockPackSpec = z.infer<typeof BlockPackSpec>;
|
|
271
270
|
//#endregion
|
|
272
|
-
export { BlockPackDevV1, BlockPackDevV2, BlockPackFromPackV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackSpec };
|
|
273
271
|
//# sourceMappingURL=block_pack_spec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_pack_spec.d.ts","names":[],"sources":["../../src/block_registry/block_pack_spec.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"block_pack_spec.d.ts","names":[],"sources":["../../src/block_registry/block_pack_spec.ts"],"mappings":";;;;qBAKa,gBAAc,EAAA;;;;;;;;;;;;;;YAMf,iBAAiB,EAAE,aAAa;;qBAG/B,gBAAc,EAAA;;;;;;;;;;;;;YAKf,iBAAiB,EAAE,aAAa;;;;;qBAM/B,qBAAmB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAmBpB,sBAAsB,EAAE,aAAa;;;;;;qBAOpC,yBAAuB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAMxB,0BAA0B,EAAE,aAAa;;;qBAIxC,yBAAuB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAMxB,0BAA0B,EAAE,aAAa;;qBAGxC,eAAa,EAAA,+BAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAOd,gBAAgB,EAAE,aAAa"}
|