@milaboratories/pl-model-middle-layer 1.29.2 → 1.30.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_description.d.ts +158 -158
- package/dist/block_meta/block_manifest.d.ts +650 -650
- package/dist/block_meta/block_meta.d.ts +36 -36
- package/dist/block_meta/content_types.d.ts +10 -10
- package/dist/block_registry/overview.d.ts +24 -24
- package/dist/block_registry/registry_spec.d.ts +20 -20
- package/dist/pframe/internal_api/api_factory.cjs.map +1 -1
- package/dist/pframe/internal_api/api_factory.d.ts +57 -3
- package/dist/pframe/internal_api/api_factory.d.ts.map +1 -1
- package/dist/pframe/internal_api/api_factory.js.map +1 -1
- package/dist/pframe/internal_api/index.d.ts +3 -3
- package/dist/pframe/internal_api/pframe.d.ts +27 -2
- package/dist/pframe/internal_api/pframe.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/pframe/internal_api/api_factory.ts +70 -2
- package/src/pframe/internal_api/pframe.ts +29 -1
|
@@ -220,11 +220,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
220
220
|
type: z.ZodLiteral<"relative">;
|
|
221
221
|
path: z.ZodString;
|
|
222
222
|
}, "strict", z.ZodTypeAny, {
|
|
223
|
-
path: string;
|
|
224
223
|
type: "relative";
|
|
225
|
-
}, {
|
|
226
224
|
path: string;
|
|
225
|
+
}, {
|
|
227
226
|
type: "relative";
|
|
227
|
+
path: string;
|
|
228
228
|
}>, z.ZodObject<{
|
|
229
229
|
type: z.ZodLiteral<"absolute-file">;
|
|
230
230
|
file: z.ZodString;
|
|
@@ -248,11 +248,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
248
248
|
type: z.ZodLiteral<"relative">;
|
|
249
249
|
path: z.ZodString;
|
|
250
250
|
}, "strict", z.ZodTypeAny, {
|
|
251
|
-
path: string;
|
|
252
251
|
type: "relative";
|
|
253
|
-
}, {
|
|
254
252
|
path: string;
|
|
253
|
+
}, {
|
|
255
254
|
type: "relative";
|
|
255
|
+
path: string;
|
|
256
256
|
}>, z.ZodObject<{
|
|
257
257
|
type: z.ZodLiteral<"absolute-file">;
|
|
258
258
|
file: z.ZodString;
|
|
@@ -279,11 +279,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
279
279
|
type: z.ZodLiteral<"relative">;
|
|
280
280
|
path: z.ZodString;
|
|
281
281
|
}, "strict", z.ZodTypeAny, {
|
|
282
|
-
path: string;
|
|
283
282
|
type: "relative";
|
|
284
|
-
}, {
|
|
285
283
|
path: string;
|
|
284
|
+
}, {
|
|
286
285
|
type: "relative";
|
|
286
|
+
path: string;
|
|
287
287
|
}>, z.ZodObject<{
|
|
288
288
|
type: z.ZodLiteral<"absolute-file">;
|
|
289
289
|
file: z.ZodString;
|
|
@@ -317,11 +317,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
317
317
|
type: z.ZodLiteral<"relative">;
|
|
318
318
|
path: z.ZodString;
|
|
319
319
|
}, "strict", z.ZodTypeAny, {
|
|
320
|
-
path: string;
|
|
321
320
|
type: "relative";
|
|
322
|
-
}, {
|
|
323
321
|
path: string;
|
|
322
|
+
}, {
|
|
324
323
|
type: "relative";
|
|
324
|
+
path: string;
|
|
325
325
|
}>, z.ZodObject<{
|
|
326
326
|
type: z.ZodLiteral<"absolute-file">;
|
|
327
327
|
file: z.ZodString;
|
|
@@ -351,11 +351,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
351
351
|
type: z.ZodLiteral<"relative">;
|
|
352
352
|
path: z.ZodString;
|
|
353
353
|
}, "strict", z.ZodTypeAny, {
|
|
354
|
-
path: string;
|
|
355
354
|
type: "relative";
|
|
356
|
-
}, {
|
|
357
355
|
path: string;
|
|
356
|
+
}, {
|
|
358
357
|
type: "relative";
|
|
358
|
+
path: string;
|
|
359
359
|
}>, z.ZodObject<{
|
|
360
360
|
type: z.ZodLiteral<"absolute-file">;
|
|
361
361
|
file: z.ZodString;
|
|
@@ -385,11 +385,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
385
385
|
type: z.ZodLiteral<"relative">;
|
|
386
386
|
path: z.ZodString;
|
|
387
387
|
}, "strict", z.ZodTypeAny, {
|
|
388
|
-
path: string;
|
|
389
388
|
type: "relative";
|
|
390
|
-
}, {
|
|
391
389
|
path: string;
|
|
390
|
+
}, {
|
|
392
391
|
type: "relative";
|
|
392
|
+
path: string;
|
|
393
393
|
}>, z.ZodObject<{
|
|
394
394
|
type: z.ZodLiteral<"absolute-file">;
|
|
395
395
|
file: z.ZodString;
|
|
@@ -448,11 +448,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
448
448
|
type: z.ZodLiteral<"relative">;
|
|
449
449
|
path: z.ZodString;
|
|
450
450
|
}, "strict", z.ZodTypeAny, {
|
|
451
|
-
path: string;
|
|
452
451
|
type: "relative";
|
|
453
|
-
}, {
|
|
454
452
|
path: string;
|
|
453
|
+
}, {
|
|
455
454
|
type: "relative";
|
|
455
|
+
path: string;
|
|
456
456
|
}>, z.ZodObject<{
|
|
457
457
|
type: z.ZodLiteral<"absolute-file">;
|
|
458
458
|
file: z.ZodString;
|
|
@@ -476,11 +476,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
476
476
|
type: z.ZodLiteral<"relative">;
|
|
477
477
|
path: z.ZodString;
|
|
478
478
|
}, "strict", z.ZodTypeAny, {
|
|
479
|
-
path: string;
|
|
480
479
|
type: "relative";
|
|
481
|
-
}, {
|
|
482
480
|
path: string;
|
|
481
|
+
}, {
|
|
483
482
|
type: "relative";
|
|
483
|
+
path: string;
|
|
484
484
|
}>, z.ZodObject<{
|
|
485
485
|
type: z.ZodLiteral<"absolute-file">;
|
|
486
486
|
file: z.ZodString;
|
|
@@ -507,11 +507,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
507
507
|
type: z.ZodLiteral<"relative">;
|
|
508
508
|
path: z.ZodString;
|
|
509
509
|
}, "strict", z.ZodTypeAny, {
|
|
510
|
-
path: string;
|
|
511
510
|
type: "relative";
|
|
512
|
-
}, {
|
|
513
511
|
path: string;
|
|
512
|
+
}, {
|
|
514
513
|
type: "relative";
|
|
514
|
+
path: string;
|
|
515
515
|
}>, z.ZodObject<{
|
|
516
516
|
type: z.ZodLiteral<"absolute-file">;
|
|
517
517
|
file: z.ZodString;
|
|
@@ -545,11 +545,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
545
545
|
type: z.ZodLiteral<"relative">;
|
|
546
546
|
path: z.ZodString;
|
|
547
547
|
}, "strict", z.ZodTypeAny, {
|
|
548
|
-
path: string;
|
|
549
548
|
type: "relative";
|
|
550
|
-
}, {
|
|
551
549
|
path: string;
|
|
550
|
+
}, {
|
|
552
551
|
type: "relative";
|
|
552
|
+
path: string;
|
|
553
553
|
}>, z.ZodObject<{
|
|
554
554
|
type: z.ZodLiteral<"absolute-file">;
|
|
555
555
|
file: z.ZodString;
|
|
@@ -579,11 +579,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
579
579
|
type: z.ZodLiteral<"relative">;
|
|
580
580
|
path: z.ZodString;
|
|
581
581
|
}, "strict", z.ZodTypeAny, {
|
|
582
|
-
path: string;
|
|
583
582
|
type: "relative";
|
|
584
|
-
}, {
|
|
585
583
|
path: string;
|
|
584
|
+
}, {
|
|
586
585
|
type: "relative";
|
|
586
|
+
path: string;
|
|
587
587
|
}>, z.ZodObject<{
|
|
588
588
|
type: z.ZodLiteral<"absolute-file">;
|
|
589
589
|
file: z.ZodString;
|
|
@@ -613,11 +613,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
613
613
|
type: z.ZodLiteral<"relative">;
|
|
614
614
|
path: z.ZodString;
|
|
615
615
|
}, "strict", z.ZodTypeAny, {
|
|
616
|
-
path: string;
|
|
617
616
|
type: "relative";
|
|
618
|
-
}, {
|
|
619
617
|
path: string;
|
|
618
|
+
}, {
|
|
620
619
|
type: "relative";
|
|
620
|
+
path: string;
|
|
621
621
|
}>, z.ZodObject<{
|
|
622
622
|
type: z.ZodLiteral<"absolute-file">;
|
|
623
623
|
file: z.ZodString;
|
|
@@ -676,11 +676,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
676
676
|
type: z.ZodLiteral<"relative">;
|
|
677
677
|
path: z.ZodString;
|
|
678
678
|
}, "strict", z.ZodTypeAny, {
|
|
679
|
-
path: string;
|
|
680
679
|
type: "relative";
|
|
681
|
-
}, {
|
|
682
680
|
path: string;
|
|
681
|
+
}, {
|
|
683
682
|
type: "relative";
|
|
683
|
+
path: string;
|
|
684
684
|
}>, z.ZodObject<{
|
|
685
685
|
type: z.ZodLiteral<"absolute-file">;
|
|
686
686
|
file: z.ZodString;
|
|
@@ -704,11 +704,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
704
704
|
type: z.ZodLiteral<"relative">;
|
|
705
705
|
path: z.ZodString;
|
|
706
706
|
}, "strict", z.ZodTypeAny, {
|
|
707
|
-
path: string;
|
|
708
707
|
type: "relative";
|
|
709
|
-
}, {
|
|
710
708
|
path: string;
|
|
709
|
+
}, {
|
|
711
710
|
type: "relative";
|
|
711
|
+
path: string;
|
|
712
712
|
}>, z.ZodObject<{
|
|
713
713
|
type: z.ZodLiteral<"absolute-file">;
|
|
714
714
|
file: z.ZodString;
|
|
@@ -735,11 +735,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
735
735
|
type: z.ZodLiteral<"relative">;
|
|
736
736
|
path: z.ZodString;
|
|
737
737
|
}, "strict", z.ZodTypeAny, {
|
|
738
|
-
path: string;
|
|
739
738
|
type: "relative";
|
|
740
|
-
}, {
|
|
741
739
|
path: string;
|
|
740
|
+
}, {
|
|
742
741
|
type: "relative";
|
|
742
|
+
path: string;
|
|
743
743
|
}>, z.ZodObject<{
|
|
744
744
|
type: z.ZodLiteral<"absolute-file">;
|
|
745
745
|
file: z.ZodString;
|
|
@@ -773,11 +773,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
773
773
|
type: z.ZodLiteral<"relative">;
|
|
774
774
|
path: z.ZodString;
|
|
775
775
|
}, "strict", z.ZodTypeAny, {
|
|
776
|
-
path: string;
|
|
777
776
|
type: "relative";
|
|
778
|
-
}, {
|
|
779
777
|
path: string;
|
|
778
|
+
}, {
|
|
780
779
|
type: "relative";
|
|
780
|
+
path: string;
|
|
781
781
|
}>, z.ZodObject<{
|
|
782
782
|
type: z.ZodLiteral<"absolute-file">;
|
|
783
783
|
file: z.ZodString;
|
|
@@ -807,11 +807,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
807
807
|
type: z.ZodLiteral<"relative">;
|
|
808
808
|
path: z.ZodString;
|
|
809
809
|
}, "strict", z.ZodTypeAny, {
|
|
810
|
-
path: string;
|
|
811
810
|
type: "relative";
|
|
812
|
-
}, {
|
|
813
811
|
path: string;
|
|
812
|
+
}, {
|
|
814
813
|
type: "relative";
|
|
814
|
+
path: string;
|
|
815
815
|
}>, z.ZodObject<{
|
|
816
816
|
type: z.ZodLiteral<"absolute-file">;
|
|
817
817
|
file: z.ZodString;
|
|
@@ -841,11 +841,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
841
841
|
type: z.ZodLiteral<"relative">;
|
|
842
842
|
path: z.ZodString;
|
|
843
843
|
}, "strict", z.ZodTypeAny, {
|
|
844
|
-
path: string;
|
|
845
844
|
type: "relative";
|
|
846
|
-
}, {
|
|
847
845
|
path: string;
|
|
846
|
+
}, {
|
|
848
847
|
type: "relative";
|
|
848
|
+
path: string;
|
|
849
849
|
}>, z.ZodObject<{
|
|
850
850
|
type: z.ZodLiteral<"absolute-file">;
|
|
851
851
|
file: z.ZodString;
|
|
@@ -90,11 +90,11 @@ declare const ContentRelative: z.ZodObject<{
|
|
|
90
90
|
type: z.ZodLiteral<"relative">;
|
|
91
91
|
path: z.ZodString;
|
|
92
92
|
}, "strict", z.ZodTypeAny, {
|
|
93
|
-
path: string;
|
|
94
93
|
type: "relative";
|
|
95
|
-
}, {
|
|
96
94
|
path: string;
|
|
95
|
+
}, {
|
|
97
96
|
type: "relative";
|
|
97
|
+
path: string;
|
|
98
98
|
}>;
|
|
99
99
|
declare const ContentRelativeBinary: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
100
100
|
type: z.ZodLiteral<"explicit-base64">;
|
|
@@ -112,11 +112,11 @@ declare const ContentRelativeBinary: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
112
112
|
type: z.ZodLiteral<"relative">;
|
|
113
113
|
path: z.ZodString;
|
|
114
114
|
}, "strict", z.ZodTypeAny, {
|
|
115
|
-
path: string;
|
|
116
115
|
type: "relative";
|
|
117
|
-
}, {
|
|
118
116
|
path: string;
|
|
117
|
+
}, {
|
|
119
118
|
type: "relative";
|
|
119
|
+
path: string;
|
|
120
120
|
}>]>;
|
|
121
121
|
declare const ContentRelativeText: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
122
122
|
type: z.ZodLiteral<"explicit-string">;
|
|
@@ -131,11 +131,11 @@ declare const ContentRelativeText: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
131
131
|
type: z.ZodLiteral<"relative">;
|
|
132
132
|
path: z.ZodString;
|
|
133
133
|
}, "strict", z.ZodTypeAny, {
|
|
134
|
-
path: string;
|
|
135
134
|
type: "relative";
|
|
136
|
-
}, {
|
|
137
135
|
path: string;
|
|
136
|
+
}, {
|
|
138
137
|
type: "relative";
|
|
138
|
+
path: string;
|
|
139
139
|
}>]>;
|
|
140
140
|
declare const DescriptionContentBinary: z.ZodUnion<[z.ZodEffects<z.ZodString, ContentRelativeBinary, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
141
141
|
type: z.ZodLiteral<"explicit-base64">;
|
|
@@ -153,11 +153,11 @@ declare const DescriptionContentBinary: z.ZodUnion<[z.ZodEffects<z.ZodString, Co
|
|
|
153
153
|
type: z.ZodLiteral<"relative">;
|
|
154
154
|
path: z.ZodString;
|
|
155
155
|
}, "strict", z.ZodTypeAny, {
|
|
156
|
-
path: string;
|
|
157
156
|
type: "relative";
|
|
158
|
-
}, {
|
|
159
157
|
path: string;
|
|
158
|
+
}, {
|
|
160
159
|
type: "relative";
|
|
160
|
+
path: string;
|
|
161
161
|
}>, z.ZodObject<{
|
|
162
162
|
type: z.ZodLiteral<"absolute-file">;
|
|
163
163
|
file: z.ZodString;
|
|
@@ -181,11 +181,11 @@ declare const DescriptionContentText: z.ZodUnion<[z.ZodEffects<z.ZodString, Cont
|
|
|
181
181
|
type: z.ZodLiteral<"relative">;
|
|
182
182
|
path: z.ZodString;
|
|
183
183
|
}, "strict", z.ZodTypeAny, {
|
|
184
|
-
path: string;
|
|
185
184
|
type: "relative";
|
|
186
|
-
}, {
|
|
187
185
|
path: string;
|
|
186
|
+
}, {
|
|
188
187
|
type: "relative";
|
|
188
|
+
path: string;
|
|
189
189
|
}>, z.ZodObject<{
|
|
190
190
|
type: z.ZodLiteral<"absolute-file">;
|
|
191
191
|
file: z.ZodString;
|
|
@@ -3079,11 +3079,11 @@ declare const BlockPackOverviewRaw: z.ZodObject<{
|
|
|
3079
3079
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
3080
3080
|
registryId: z.ZodString;
|
|
3081
3081
|
}, "strip", z.ZodTypeAny, {
|
|
3082
|
-
registryId: string;
|
|
3083
3082
|
id: {
|
|
3084
3083
|
organization: string;
|
|
3085
3084
|
name: string;
|
|
3086
3085
|
};
|
|
3086
|
+
registryId: string;
|
|
3087
3087
|
latestByChannel: Record<string, z.objectOutputType<{
|
|
3088
3088
|
id: z.ZodObject<{
|
|
3089
3089
|
organization: z.ZodString;
|
|
@@ -3426,11 +3426,11 @@ declare const BlockPackOverviewRaw: z.ZodObject<{
|
|
|
3426
3426
|
channels: z.ZodArray<z.ZodString, "many">;
|
|
3427
3427
|
}, z.ZodTypeAny, "passthrough">[];
|
|
3428
3428
|
}, {
|
|
3429
|
-
registryId: string;
|
|
3430
3429
|
id: {
|
|
3431
3430
|
organization: string;
|
|
3432
3431
|
name: string;
|
|
3433
3432
|
};
|
|
3433
|
+
registryId: string;
|
|
3434
3434
|
latestByChannel: Record<string, z.objectInputType<{
|
|
3435
3435
|
id: z.ZodObject<{
|
|
3436
3436
|
organization: z.ZodString;
|
|
@@ -9994,11 +9994,11 @@ declare const RegistryStatus: z.ZodObject<{
|
|
|
9994
9994
|
type: z.ZodLiteral<"local-dev">;
|
|
9995
9995
|
path: z.ZodString;
|
|
9996
9996
|
}, "strip", z.ZodTypeAny, {
|
|
9997
|
-
path: string;
|
|
9998
9997
|
type: "local-dev";
|
|
9999
|
-
}, {
|
|
10000
9998
|
path: string;
|
|
9999
|
+
}, {
|
|
10001
10000
|
type: "local-dev";
|
|
10001
|
+
path: string;
|
|
10002
10002
|
}>]>;
|
|
10003
10003
|
} & {
|
|
10004
10004
|
status: z.ZodUnion<[z.ZodLiteral<"online">, z.ZodLiteral<"offline">]>;
|
|
@@ -10006,28 +10006,28 @@ declare const RegistryStatus: z.ZodObject<{
|
|
|
10006
10006
|
status: "online" | "offline";
|
|
10007
10007
|
id: string;
|
|
10008
10008
|
spec: {
|
|
10009
|
+
type: "local-dev";
|
|
10010
|
+
path: string;
|
|
10011
|
+
} | {
|
|
10009
10012
|
type: "remote-v1";
|
|
10010
10013
|
url: string;
|
|
10011
10014
|
} | {
|
|
10012
10015
|
type: "remote-v2";
|
|
10013
10016
|
url: string;
|
|
10014
|
-
} | {
|
|
10015
|
-
path: string;
|
|
10016
|
-
type: "local-dev";
|
|
10017
10017
|
};
|
|
10018
10018
|
title?: string | undefined;
|
|
10019
10019
|
}, {
|
|
10020
10020
|
status: "online" | "offline";
|
|
10021
10021
|
id: string;
|
|
10022
10022
|
spec: {
|
|
10023
|
+
type: "local-dev";
|
|
10024
|
+
path: string;
|
|
10025
|
+
} | {
|
|
10023
10026
|
type: "remote-v1";
|
|
10024
10027
|
url: string;
|
|
10025
10028
|
} | {
|
|
10026
10029
|
type: "remote-v2";
|
|
10027
10030
|
url: string;
|
|
10028
|
-
} | {
|
|
10029
|
-
path: string;
|
|
10030
|
-
type: "local-dev";
|
|
10031
10031
|
};
|
|
10032
10032
|
title?: string | undefined;
|
|
10033
10033
|
}>;
|
|
@@ -10058,11 +10058,11 @@ declare const BlockPackListing: z.ZodObject<{
|
|
|
10058
10058
|
type: z.ZodLiteral<"local-dev">;
|
|
10059
10059
|
path: z.ZodString;
|
|
10060
10060
|
}, "strip", z.ZodTypeAny, {
|
|
10061
|
-
path: string;
|
|
10062
10061
|
type: "local-dev";
|
|
10063
|
-
}, {
|
|
10064
10062
|
path: string;
|
|
10063
|
+
}, {
|
|
10065
10064
|
type: "local-dev";
|
|
10065
|
+
path: string;
|
|
10066
10066
|
}>]>;
|
|
10067
10067
|
} & {
|
|
10068
10068
|
status: z.ZodUnion<[z.ZodLiteral<"online">, z.ZodLiteral<"offline">]>;
|
|
@@ -10070,28 +10070,28 @@ declare const BlockPackListing: z.ZodObject<{
|
|
|
10070
10070
|
status: "online" | "offline";
|
|
10071
10071
|
id: string;
|
|
10072
10072
|
spec: {
|
|
10073
|
+
type: "local-dev";
|
|
10074
|
+
path: string;
|
|
10075
|
+
} | {
|
|
10073
10076
|
type: "remote-v1";
|
|
10074
10077
|
url: string;
|
|
10075
10078
|
} | {
|
|
10076
10079
|
type: "remote-v2";
|
|
10077
10080
|
url: string;
|
|
10078
|
-
} | {
|
|
10079
|
-
path: string;
|
|
10080
|
-
type: "local-dev";
|
|
10081
10081
|
};
|
|
10082
10082
|
title?: string | undefined;
|
|
10083
10083
|
}, {
|
|
10084
10084
|
status: "online" | "offline";
|
|
10085
10085
|
id: string;
|
|
10086
10086
|
spec: {
|
|
10087
|
+
type: "local-dev";
|
|
10088
|
+
path: string;
|
|
10089
|
+
} | {
|
|
10087
10090
|
type: "remote-v1";
|
|
10088
10091
|
url: string;
|
|
10089
10092
|
} | {
|
|
10090
10093
|
type: "remote-v2";
|
|
10091
10094
|
url: string;
|
|
10092
|
-
} | {
|
|
10093
|
-
path: string;
|
|
10094
|
-
type: "local-dev";
|
|
10095
10095
|
};
|
|
10096
10096
|
title?: string | undefined;
|
|
10097
10097
|
}>, "many">;
|
|
@@ -13197,14 +13197,14 @@ declare const BlockPackListing: z.ZodObject<{
|
|
|
13197
13197
|
status: "online" | "offline";
|
|
13198
13198
|
id: string;
|
|
13199
13199
|
spec: {
|
|
13200
|
+
type: "local-dev";
|
|
13201
|
+
path: string;
|
|
13202
|
+
} | {
|
|
13200
13203
|
type: "remote-v1";
|
|
13201
13204
|
url: string;
|
|
13202
13205
|
} | {
|
|
13203
13206
|
type: "remote-v2";
|
|
13204
13207
|
url: string;
|
|
13205
|
-
} | {
|
|
13206
|
-
path: string;
|
|
13207
|
-
type: "local-dev";
|
|
13208
13208
|
};
|
|
13209
13209
|
title?: string | undefined;
|
|
13210
13210
|
}[];
|
|
@@ -14246,14 +14246,14 @@ declare const BlockPackListing: z.ZodObject<{
|
|
|
14246
14246
|
status: "online" | "offline";
|
|
14247
14247
|
id: string;
|
|
14248
14248
|
spec: {
|
|
14249
|
+
type: "local-dev";
|
|
14250
|
+
path: string;
|
|
14251
|
+
} | {
|
|
14249
14252
|
type: "remote-v1";
|
|
14250
14253
|
url: string;
|
|
14251
14254
|
} | {
|
|
14252
14255
|
type: "remote-v2";
|
|
14253
14256
|
url: string;
|
|
14254
|
-
} | {
|
|
14255
|
-
path: string;
|
|
14256
|
-
type: "local-dev";
|
|
14257
14257
|
};
|
|
14258
14258
|
title?: string | undefined;
|
|
14259
14259
|
}[];
|
|
@@ -5,11 +5,11 @@ declare const LocalDevFolder: z.ZodObject<{
|
|
|
5
5
|
type: z.ZodLiteral<"local-dev">;
|
|
6
6
|
path: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
path: string;
|
|
9
8
|
type: "local-dev";
|
|
10
|
-
}, {
|
|
11
9
|
path: string;
|
|
10
|
+
}, {
|
|
12
11
|
type: "local-dev";
|
|
12
|
+
path: string;
|
|
13
13
|
}>;
|
|
14
14
|
type LocalDevFolder = z.infer<typeof LocalDevFolder>;
|
|
15
15
|
/** @deprecated don't use */
|
|
@@ -58,11 +58,11 @@ declare const RegistrySpec: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
58
58
|
type: z.ZodLiteral<"local-dev">;
|
|
59
59
|
path: z.ZodString;
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
path: string;
|
|
62
61
|
type: "local-dev";
|
|
63
|
-
}, {
|
|
64
62
|
path: string;
|
|
63
|
+
}, {
|
|
65
64
|
type: "local-dev";
|
|
65
|
+
path: string;
|
|
66
66
|
}>]>;
|
|
67
67
|
type RegistrySpec = z.infer<typeof RegistrySpec>;
|
|
68
68
|
declare const RegistryEntry: z.ZodObject<{
|
|
@@ -90,36 +90,36 @@ declare const RegistryEntry: z.ZodObject<{
|
|
|
90
90
|
type: z.ZodLiteral<"local-dev">;
|
|
91
91
|
path: z.ZodString;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
path: string;
|
|
94
93
|
type: "local-dev";
|
|
95
|
-
}, {
|
|
96
94
|
path: string;
|
|
95
|
+
}, {
|
|
97
96
|
type: "local-dev";
|
|
97
|
+
path: string;
|
|
98
98
|
}>]>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
100
|
id: string;
|
|
101
101
|
spec: {
|
|
102
|
+
type: "local-dev";
|
|
103
|
+
path: string;
|
|
104
|
+
} | {
|
|
102
105
|
type: "remote-v1";
|
|
103
106
|
url: string;
|
|
104
107
|
} | {
|
|
105
108
|
type: "remote-v2";
|
|
106
109
|
url: string;
|
|
107
|
-
} | {
|
|
108
|
-
path: string;
|
|
109
|
-
type: "local-dev";
|
|
110
110
|
};
|
|
111
111
|
title?: string | undefined;
|
|
112
112
|
}, {
|
|
113
113
|
id: string;
|
|
114
114
|
spec: {
|
|
115
|
+
type: "local-dev";
|
|
116
|
+
path: string;
|
|
117
|
+
} | {
|
|
115
118
|
type: "remote-v1";
|
|
116
119
|
url: string;
|
|
117
120
|
} | {
|
|
118
121
|
type: "remote-v2";
|
|
119
122
|
url: string;
|
|
120
|
-
} | {
|
|
121
|
-
path: string;
|
|
122
|
-
type: "local-dev";
|
|
123
123
|
};
|
|
124
124
|
title?: string | undefined;
|
|
125
125
|
}>;
|
|
@@ -149,36 +149,36 @@ declare const RegistryList: z.ZodArray<z.ZodObject<{
|
|
|
149
149
|
type: z.ZodLiteral<"local-dev">;
|
|
150
150
|
path: z.ZodString;
|
|
151
151
|
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
path: string;
|
|
153
152
|
type: "local-dev";
|
|
154
|
-
}, {
|
|
155
153
|
path: string;
|
|
154
|
+
}, {
|
|
156
155
|
type: "local-dev";
|
|
156
|
+
path: string;
|
|
157
157
|
}>]>;
|
|
158
158
|
}, "strip", z.ZodTypeAny, {
|
|
159
159
|
id: string;
|
|
160
160
|
spec: {
|
|
161
|
+
type: "local-dev";
|
|
162
|
+
path: string;
|
|
163
|
+
} | {
|
|
161
164
|
type: "remote-v1";
|
|
162
165
|
url: string;
|
|
163
166
|
} | {
|
|
164
167
|
type: "remote-v2";
|
|
165
168
|
url: string;
|
|
166
|
-
} | {
|
|
167
|
-
path: string;
|
|
168
|
-
type: "local-dev";
|
|
169
169
|
};
|
|
170
170
|
title?: string | undefined;
|
|
171
171
|
}, {
|
|
172
172
|
id: string;
|
|
173
173
|
spec: {
|
|
174
|
+
type: "local-dev";
|
|
175
|
+
path: string;
|
|
176
|
+
} | {
|
|
174
177
|
type: "remote-v1";
|
|
175
178
|
url: string;
|
|
176
179
|
} | {
|
|
177
180
|
type: "remote-v2";
|
|
178
181
|
url: string;
|
|
179
|
-
} | {
|
|
180
|
-
path: string;
|
|
181
|
-
type: "local-dev";
|
|
182
182
|
};
|
|
183
183
|
title?: string | undefined;
|
|
184
184
|
}>, "many">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_factory.cjs","names":[],"sources":["../../../src/pframe/internal_api/api_factory.ts"],"sourcesContent":["import type {\n AxisValueType,\n BinaryPartitionedDataInfo,\n Branded,\n ColumnValueType,\n JsonDataInfo,\n JsonPartitionedDataInfo,\n ParquetChunk,\n ParquetPartitionedDataInfo,\n PObjectId,\n} from \"@milaboratories/pl-model-common\";\nimport type { HttpServerInfo } from \"./http_helpers\";\n\n/** PColumn spec file extension */\nexport const SpecExtension = \".spec\" as const;\n\n/** PColumn data info file extension */\nexport const DataInfoExtension = \".datainfo\" as const;\n\n/** Abstract identifier of a data blob that can be requested from the storage backend */\nexport type PFrameBlobId = Branded<string, \"PFrameInternal.PFrameBlobId\">;\n\n/** Path of the file containing requested data (blob). This path is returned by\n * {@link BlobPathResolver} as soon as blob materialized in the file system. */\nexport type FilePath = string;\n\n/** Data source allows PFrame to retrieve the data blobs for columns with assigned data info. */\nexport interface PFrameDataSourceV2 {\n /**\n * PFrame may notify storage backend about its plans to use particular blobs in the future.\n * Storage backend will do its best to preload specified blob so the subsequent\n * {@link resolveBlob} will quickly return preloaded file path.\n */\n preloadBlob(blobIds: PFrameBlobId[]): Promise<void>;\n\n /** Returns raw blob data given the blob id from {@link DataInfo}. */\n resolveBlobContent(blobId: PFrameBlobId): Promise<Uint8Array>;\n\n /**\n * Parquet HTTP(S) server connection settings, {@link HttpHelpers.createHttpServer}\n * When not provided, parquet BlobIds would be treated as local file paths.\n */\n parquetServer?: HttpServerInfo;\n}\n\n/**\n * Union type representing all possible data storage formats for PColumn data.\n * The specific format used depends on data size, access patterns, and performance requirements.\n *\n * @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)\n */\nexport type DataInfo<Blob> =\n | JsonDataInfo\n | JsonPartitionedDataInfo<Blob>\n | BinaryPartitionedDataInfo<Blob>\n | ParquetPartitionedDataInfo<ParquetChunk<Blob>>;\n\n/**\n * Structural type information needed by the data side: axis value\n * types and column value types, in their canonical order. Mirrors\n * the bridge-side `TypeSpec`.\n */\nexport interface
|
|
1
|
+
{"version":3,"file":"api_factory.cjs","names":[],"sources":["../../../src/pframe/internal_api/api_factory.ts"],"sourcesContent":["import type {\n AxisValueType,\n BinaryPartitionedDataInfo,\n Branded,\n ColumnValueType,\n JsonDataInfo,\n JsonPartitionedDataInfo,\n ParquetChunk,\n ParquetPartitionedDataInfo,\n PObjectId,\n} from \"@milaboratories/pl-model-common\";\nimport type { HttpServerInfo } from \"./http_helpers\";\n\n/** PColumn spec file extension */\nexport const SpecExtension = \".spec\" as const;\n\n/** PColumn data info file extension */\nexport const DataInfoExtension = \".datainfo\" as const;\n\n/** Abstract identifier of a data blob that can be requested from the storage backend */\nexport type PFrameBlobId = Branded<string, \"PFrameInternal.PFrameBlobId\">;\n\n/** Path of the file containing requested data (blob). This path is returned by\n * {@link BlobPathResolver} as soon as blob materialized in the file system. */\nexport type FilePath = string;\n\n/** Data source allows PFrame to retrieve the data blobs for columns with assigned data info. */\nexport interface PFrameDataSourceV2 {\n /**\n * PFrame may notify storage backend about its plans to use particular blobs in the future.\n * Storage backend will do its best to preload specified blob so the subsequent\n * {@link resolveBlob} will quickly return preloaded file path.\n */\n preloadBlob(blobIds: PFrameBlobId[]): Promise<void>;\n\n /** Returns raw blob data given the blob id from {@link DataInfo}. */\n resolveBlobContent(blobId: PFrameBlobId): Promise<Uint8Array>;\n\n /**\n * Parquet HTTP(S) server connection settings, {@link HttpHelpers.createHttpServer}\n * When not provided, parquet BlobIds would be treated as local file paths.\n */\n parquetServer?: HttpServerInfo;\n}\n\n/**\n * Structural type information for a single PColumn needed by the data side:\n * the axis value types (in canonical order) and the column value type. Mirrors\n * the on-disk `typeSpec` shape (`{ axes, column }`).\n */\nexport type PColumnValueTypeSpec = {\n readonly axes: AxisValueType[];\n readonly column: ColumnValueType;\n};\n\n/**\n * Union type representing all possible data storage formats for PColumn data.\n * The specific format used depends on data size, access patterns, and performance requirements.\n *\n * @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)\n */\nexport type DataInfo<Blob> =\n | JsonDataInfo\n | JsonPartitionedDataInfo<Blob>\n | BinaryPartitionedDataInfo<Blob>\n | ParquetPartitionedDataInfo<ParquetChunk<Blob>>;\n\n/**\n * Self-contained data info: a PColumn data storage format with an embedded\n * {@link PColumnValueTypeSpec}, so the data layer can interpret the values\n * without a separate spec. This is the on-disk `.datainfo` shape and the\n * payload accepted by {@link PFrameFactoryAPIV6.addColumns}.\n *\n * Declared independently of {@link DataInfo} (not as an intersection) so the\n * legacy v1 type can be removed without affecting this one.\n *\n * @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)\n */\nexport type DataInfoV2<Blob> = (\n | JsonDataInfo\n | JsonPartitionedDataInfo<Blob>\n | BinaryPartitionedDataInfo<Blob>\n | ParquetPartitionedDataInfo<ParquetChunk<Blob>>\n) & {\n readonly typeSpec: PColumnValueTypeSpec;\n};\n\n/**\n * Structural type information needed by the data side: axis value\n * types and column value types, in their canonical order. Mirrors\n * the bridge-side `TypeSpec`.\n */\nexport interface ValueTypeSpec {\n readonly axes: AxisValueType[];\n readonly columns: ColumnValueType[];\n}\n\n/** Single column entry for {@link PFrameFactoryAPIV5.addColumns}. */\nexport interface AddColumnEntry {\n /** Unique column identifier within the PFrame. */\n readonly id: PObjectId;\n /** Structural type info (axes / column value types). */\n readonly typeSpec: ValueTypeSpec;\n /** Data info for the column. */\n readonly data: DataInfo<PFrameBlobId>;\n}\n\n/**\n * Single column entry for {@link PFrameFactoryAPIV6.addColumns}. The structural\n * type info is carried inside {@link DataInfoV2.typeSpec} rather than as a\n * separate field, so `data` is self-describing.\n */\nexport interface AddColumnEntryV2 {\n /** Unique column identifier within the PFrame. */\n readonly id: PObjectId;\n /** Self-contained data info (carries its own `typeSpec`). */\n readonly data: DataInfoV2<PFrameBlobId>;\n}\n\n/** API for populating a PFrame with columns and a data source. */\nexport interface PFrameFactoryAPIV5 extends Disposable {\n /** Associates data source with this PFrame. */\n setDataSource(dataSource: PFrameDataSourceV2): void;\n\n /**\n * Registers all PColumns at once: specs are recorded and data info\n * is attached atomically. For parquet data info, schema resolution\n * via network is performed during this call.\n */\n addColumns(\n columns: AddColumnEntry[],\n options?: {\n signal?: AbortSignal;\n },\n ): Promise<void>;\n\n /** Releases all the data previously added to PFrame using methods above,\n * any interactions with disposed PFrame will result in exception */\n dispose(): void;\n}\n\n/**\n * API for populating a PFrame with columns and a data source. Unlike\n * {@link PFrameFactoryAPIV5}, each column's structural type info is embedded in\n * its self-contained {@link AddColumnEntryV2.data} instead of a separate field.\n */\nexport interface PFrameFactoryAPIV6 extends Disposable {\n /** Associates data source with this PFrame. */\n setDataSource(dataSource: PFrameDataSourceV2): void;\n\n /**\n * Registers all PColumns at once: data info (self-contained, carrying its own\n * `typeSpec`) is attached atomically. For parquet data info, schema resolution\n * via network is performed during this call.\n */\n addColumns(\n columns: AddColumnEntryV2[],\n options?: {\n signal?: AbortSignal;\n },\n ): Promise<void>;\n\n /** Releases all the data previously added to PFrame using methods above,\n * any interactions with disposed PFrame will result in exception */\n dispose(): void;\n}\n"],"mappings":";;AAcA,MAAa,gBAAgB;;AAG7B,MAAa,oBAAoB"}
|