@milaboratories/pl-model-middle-layer 1.30.8 → 1.30.10
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/author_marker.d.ts +1 -1
- package/dist/block_meta/block_components.cjs +0 -1
- package/dist/block_meta/block_components.cjs.map +1 -1
- package/dist/block_meta/block_components.d.ts.map +1 -1
- package/dist/block_meta/block_components.js.map +1 -1
- package/dist/block_meta/block_description.cjs +0 -1
- package/dist/block_meta/block_description.cjs.map +1 -1
- package/dist/block_meta/block_description.d.ts +2 -2
- package/dist/block_meta/block_description.d.ts.map +1 -1
- package/dist/block_meta/block_description.js.map +1 -1
- package/dist/block_meta/block_id.cjs +0 -1
- package/dist/block_meta/block_id.cjs.map +1 -1
- package/dist/block_meta/block_id.d.ts.map +1 -1
- package/dist/block_meta/block_id.js.map +1 -1
- package/dist/block_meta/block_manifest.cjs +0 -1
- package/dist/block_meta/block_manifest.cjs.map +1 -1
- package/dist/block_meta/block_manifest.d.ts +12 -13
- package/dist/block_meta/block_manifest.d.ts.map +1 -1
- package/dist/block_meta/block_manifest.js.map +1 -1
- package/dist/block_meta/block_meta.cjs +26 -1
- package/dist/block_meta/block_meta.cjs.map +1 -1
- package/dist/block_meta/block_meta.d.ts.map +1 -1
- package/dist/block_meta/block_meta.js +26 -0
- package/dist/block_meta/block_meta.js.map +1 -1
- package/dist/block_meta/content_conversion.cjs.map +1 -1
- package/dist/block_meta/content_conversion.js.map +1 -1
- package/dist/block_meta/content_types.cjs +0 -1
- package/dist/block_meta/content_types.cjs.map +1 -1
- package/dist/block_meta/content_types.d.ts.map +1 -1
- package/dist/block_meta/content_types.js.map +1 -1
- package/dist/block_meta/index.cjs +44 -8
- package/dist/block_meta/index.d.ts +2 -1
- package/dist/block_meta/index.js +9 -8
- package/dist/block_meta/semver.cjs +0 -1
- package/dist/block_meta/semver.cjs.map +1 -1
- package/dist/block_meta/semver.d.ts.map +1 -1
- package/dist/block_meta/semver.js.map +1 -1
- package/dist/block_registry/block_pack_spec.cjs +25 -1
- package/dist/block_registry/block_pack_spec.cjs.map +1 -1
- package/dist/block_registry/block_pack_spec.d.ts +63 -1
- package/dist/block_registry/block_pack_spec.d.ts.map +1 -1
- package/dist/block_registry/block_pack_spec.js +25 -1
- package/dist/block_registry/block_pack_spec.js.map +1 -1
- package/dist/block_registry/index.cjs +26 -3
- package/dist/block_registry/index.d.ts +3 -2
- package/dist/block_registry/index.js +4 -3
- package/dist/block_registry/overview.cjs +0 -1
- package/dist/block_registry/overview.cjs.map +1 -1
- package/dist/block_registry/overview.d.ts +719 -60
- package/dist/block_registry/overview.d.ts.map +1 -1
- package/dist/block_registry/overview.js.map +1 -1
- package/dist/block_registry/registry_spec.cjs +0 -1
- package/dist/block_registry/registry_spec.cjs.map +1 -1
- package/dist/block_registry/registry_spec.d.ts +12 -12
- package/dist/block_registry/registry_spec.d.ts.map +1 -1
- package/dist/block_registry/registry_spec.js.map +1 -1
- package/dist/block_settings.cjs.map +1 -1
- package/dist/block_settings.d.ts.map +1 -1
- package/dist/block_settings.js.map +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/json.cjs +1 -1
- package/dist/json.cjs.map +1 -1
- package/dist/json.d.ts.map +1 -1
- package/dist/json.js.map +1 -1
- package/dist/pframe/index.d.ts +2 -1
- package/dist/pframe/internal_api/api_factory.d.ts.map +1 -1
- package/dist/pframe/internal_api/api_read.d.ts.map +1 -1
- package/dist/pframe/internal_api/api_wasm.d.ts.map +1 -1
- package/dist/pframe/internal_api/common.d.ts.map +1 -1
- package/dist/pframe/internal_api/create_table.d.ts.map +1 -1
- package/dist/pframe/internal_api/delete_column.d.ts.map +1 -1
- package/dist/pframe/internal_api/discover_columns.d.ts.map +1 -1
- package/dist/pframe/internal_api/find_columns.d.ts.map +1 -1
- package/dist/pframe/internal_api/http_helpers.cjs.map +1 -1
- package/dist/pframe/internal_api/http_helpers.d.ts.map +1 -1
- package/dist/pframe/internal_api/http_helpers.js.map +1 -1
- package/dist/pframe/internal_api/index.cjs +4 -0
- package/dist/pframe/internal_api/index.d.ts +1 -1
- package/dist/pframe/internal_api/index.js +1 -1
- package/dist/pframe/internal_api/pframe.d.ts.map +1 -1
- package/dist/project.d.ts.map +1 -1
- package/dist/project_overview.d.ts.map +1 -1
- package/dist/storage_debug_view.d.ts.map +1 -1
- package/dist/update_info.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/block_registry/block_pack_spec.ts +26 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overview.d.ts","names":[],"sources":["../../src/block_registry/overview.ts"],"mappings":";;;;;;;cAea,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;KAIjB,gBAAA,GAAmB,CAAA,CAAE,KAAK,QAAQ,gBAAA;AAAA,iBAE9B,yBAAA,CAA0B,GAAA,EAAK,iBAAA,GAAoB,uBAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overview.js","names":[],"sources":["../../src/block_registry/overview.ts"],"sourcesContent":["import { z } from \"zod\";\nimport {\n BlockPackId,\n BlockPackIdNoVersion,\n BlockPackMetaEmbeddedBytes,\n FeatureFlags,\n SemVer,\n} from \"../block_meta\";\nimport type { BlockPackFromRegistryV2 } from \"./block_pack_spec\";\nimport { BlockPackSpec } from \"./block_pack_spec\";\nimport { RegistryEntry } from \"./registry_spec\";\n\n/**\n * Latest information about specific block pack. Contain information about latest version of the package.\n * */\nexport const BlockPackOverviewLegacy = z\n .object({\n registryId: z.string(),\n id: BlockPackId,\n meta: BlockPackMetaEmbeddedBytes,\n spec: BlockPackSpec,\n otherVersions: z.array(SemVer),\n })\n .passthrough();\nexport type BlockPackOverviewLegacy = z.infer<typeof BlockPackOverviewLegacy>;\n\nexport const AnyChannel = \"any\";\nexport const StableChannel = \"stable\";\n\nexport const VersionWithChannels = z\n .object({\n version: SemVer,\n channels: z.array(z.string()),\n })\n .passthrough();\n\n/**\n * Information about specific block pack version.\n * */\nexport const SingleBlockPackOverview = z\n .object({\n id: BlockPackId,\n meta: BlockPackMetaEmbeddedBytes,\n featureFlags: FeatureFlags.optional(),\n spec: BlockPackSpec,\n })\n .passthrough();\nexport type SingleBlockPackOverview = z.infer<typeof SingleBlockPackOverview>;\n\n/**\n * Latest information about specific block pack. Contain information about latest version of the package.\n * */\nexport const BlockPackOverviewRaw = z.object({\n id: BlockPackIdNoVersion,\n latestByChannel: z.record(z.string(), SingleBlockPackOverview),\n allVersions: z.array(VersionWithChannels),\n registryId: z.string(),\n});\nexport const BlockPackOverview = BlockPackOverviewRaw.passthrough();\nexport type BlockPackOverview = z.infer<typeof BlockPackOverview>;\n\nexport const BlockPackOverviewNoRegistryId = BlockPackOverviewRaw.omit({\n registryId: true,\n}).passthrough();\nexport type BlockPackOverviewNoRegistryId = z.infer<typeof BlockPackOverviewNoRegistryId>;\n\nexport const RegistryStatus = RegistryEntry.extend({\n status: z.union([z.literal(\"online\"), z.literal(\"offline\")]),\n});\nexport type RegistryStatus = z.infer<typeof RegistryStatus>;\n\nexport const BlockPackListing = z.object({\n registries: z.array(RegistryStatus),\n blockPacks: z.array(BlockPackOverview),\n});\nexport type BlockPackListing = z.infer<typeof BlockPackListing>;\n\nexport function blockPackOverviewToLegacy(bpo: BlockPackOverview): BlockPackOverviewLegacy {\n const mainChannel = bpo.latestByChannel[StableChannel] !== undefined ? StableChannel : AnyChannel;\n const latestOverview = bpo.latestByChannel[mainChannel];\n return {\n id: latestOverview.id,\n meta: latestOverview.meta,\n // so we only add stable channel specs to projects, to smooth the transition\n spec: { ...(latestOverview.spec as BlockPackFromRegistryV2), channel: StableChannel },\n otherVersions: bpo.allVersions\n .filter((v) => v.channels.indexOf(mainChannel) >= 0)\n .map((v) => v.version),\n registryId: bpo.registryId,\n };\n}\n"],"mappings":";;;;;;;;;;;;AAeA,MAAa,0BAA0B,EACpC,OAAO;CACN,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"overview.js","names":[],"sources":["../../src/block_registry/overview.ts"],"sourcesContent":["import { z } from \"zod\";\nimport {\n BlockPackId,\n BlockPackIdNoVersion,\n BlockPackMetaEmbeddedBytes,\n FeatureFlags,\n SemVer,\n} from \"../block_meta\";\nimport type { BlockPackFromRegistryV2 } from \"./block_pack_spec\";\nimport { BlockPackSpec } from \"./block_pack_spec\";\nimport { RegistryEntry } from \"./registry_spec\";\n\n/**\n * Latest information about specific block pack. Contain information about latest version of the package.\n * */\nexport const BlockPackOverviewLegacy = z\n .object({\n registryId: z.string(),\n id: BlockPackId,\n meta: BlockPackMetaEmbeddedBytes,\n spec: BlockPackSpec,\n otherVersions: z.array(SemVer),\n })\n .passthrough();\nexport type BlockPackOverviewLegacy = z.infer<typeof BlockPackOverviewLegacy>;\n\nexport const AnyChannel = \"any\";\nexport const StableChannel = \"stable\";\n\nexport const VersionWithChannels = z\n .object({\n version: SemVer,\n channels: z.array(z.string()),\n })\n .passthrough();\n\n/**\n * Information about specific block pack version.\n * */\nexport const SingleBlockPackOverview = z\n .object({\n id: BlockPackId,\n meta: BlockPackMetaEmbeddedBytes,\n featureFlags: FeatureFlags.optional(),\n spec: BlockPackSpec,\n })\n .passthrough();\nexport type SingleBlockPackOverview = z.infer<typeof SingleBlockPackOverview>;\n\n/**\n * Latest information about specific block pack. Contain information about latest version of the package.\n * */\nexport const BlockPackOverviewRaw = z.object({\n id: BlockPackIdNoVersion,\n latestByChannel: z.record(z.string(), SingleBlockPackOverview),\n allVersions: z.array(VersionWithChannels),\n registryId: z.string(),\n});\nexport const BlockPackOverview = BlockPackOverviewRaw.passthrough();\nexport type BlockPackOverview = z.infer<typeof BlockPackOverview>;\n\nexport const BlockPackOverviewNoRegistryId = BlockPackOverviewRaw.omit({\n registryId: true,\n}).passthrough();\nexport type BlockPackOverviewNoRegistryId = z.infer<typeof BlockPackOverviewNoRegistryId>;\n\nexport const RegistryStatus = RegistryEntry.extend({\n status: z.union([z.literal(\"online\"), z.literal(\"offline\")]),\n});\nexport type RegistryStatus = z.infer<typeof RegistryStatus>;\n\nexport const BlockPackListing = z.object({\n registries: z.array(RegistryStatus),\n blockPacks: z.array(BlockPackOverview),\n});\nexport type BlockPackListing = z.infer<typeof BlockPackListing>;\n\nexport function blockPackOverviewToLegacy(bpo: BlockPackOverview): BlockPackOverviewLegacy {\n const mainChannel = bpo.latestByChannel[StableChannel] !== undefined ? StableChannel : AnyChannel;\n const latestOverview = bpo.latestByChannel[mainChannel];\n return {\n id: latestOverview.id,\n meta: latestOverview.meta,\n // so we only add stable channel specs to projects, to smooth the transition\n spec: { ...(latestOverview.spec as BlockPackFromRegistryV2), channel: StableChannel },\n otherVersions: bpo.allVersions\n .filter((v)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I,eAAe;GAAkC,SAAS;EAAc;EACpF,eAAe,IAAI,YAChB,QAAQ,MAAM,EAAE,SAAS,QAAQ,WAAW,KAAK,CAAC,CAAC,CACnD,KAAK,MAAM,EAAE,OAAO;EACvB,YAAY,IAAI;CAClB;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry_spec.cjs","names":["z"],"sources":["../../src/block_registry/registry_spec.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const LocalDevFolder = z.object({\n type: z.literal(\"local-dev\"),\n path: z.string(),\n});\nexport type LocalDevFolder = z.infer<typeof LocalDevFolder>;\n\n/** @deprecated don't use */\nexport const RemoteRegistryV1Spec = z.object({\n type: z.literal(\"remote-v1\"),\n url: z.string().url(),\n});\n/** @deprecated don't use */\nexport type RemoteRegistryV1Spec = z.infer<typeof RemoteRegistryV1Spec>;\n\nexport const RemoteRegistryV2Spec = z.object({\n type: z.literal(\"remote-v2\"),\n url: z.string().url(),\n});\nexport type RemoteRegistryV2Spec = z.infer<typeof RemoteRegistryV2Spec>;\n\nexport const RegistrySpec = z.discriminatedUnion(\"type\", [\n RemoteRegistryV1Spec,\n RemoteRegistryV2Spec,\n LocalDevFolder,\n]);\nexport type RegistrySpec = z.infer<typeof RegistrySpec>;\n\nexport const RegistryEntry = z.object({\n id: z.string(),\n title: z.string().optional(),\n spec: RegistrySpec,\n});\nexport type RegistryEntry = z.infer<typeof RegistryEntry>;\n\nexport const RegistryList = z.array(RegistryEntry);\nexport type RegistryList = z.infer<typeof RegistryList>;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"registry_spec.cjs","names":["z"],"sources":["../../src/block_registry/registry_spec.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const LocalDevFolder = z.object({\n type: z.literal(\"local-dev\"),\n path: z.string(),\n});\nexport type LocalDevFolder = z.infer<typeof LocalDevFolder>;\n\n/** @deprecated don't use */\nexport const RemoteRegistryV1Spec = z.object({\n type: z.literal(\"remote-v1\"),\n url: z.string().url(),\n});\n/** @deprecated don't use */\nexport type RemoteRegistryV1Spec = z.infer<typeof RemoteRegistryV1Spec>;\n\nexport const RemoteRegistryV2Spec = z.object({\n type: z.literal(\"remote-v2\"),\n url: z.string().url(),\n});\nexport type RemoteRegistryV2Spec = z.infer<typeof RemoteRegistryV2Spec>;\n\nexport const RegistrySpec = z.discriminatedUnion(\"type\", [\n RemoteRegistryV1Spec,\n RemoteRegistryV2Spec,\n LocalDevFolder,\n]);\nexport type RegistrySpec = z.infer<typeof RegistrySpec>;\n\nexport const RegistryEntry = z.object({\n id: z.string(),\n title: z.string().optional(),\n spec: RegistrySpec,\n});\nexport type RegistryEntry = z.infer<typeof RegistryEntry>;\n\nexport const RegistryList = z.array(RegistryEntry);\nexport type RegistryList = z.infer<typeof RegistryList>;\n"],"mappings":";;AAEA,MAAa,iBAAiBA,IAAAA,EAAE,OAAO;CACrC,MAAMA,IAAAA,EAAE,QAAQ,WAAW;CAC3B,MAAMA,IAAAA,EAAE,OAAO;AACjB,CAAC;;AAID,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,QAAQ,WAAW;CAC3B,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;AACtB,CAAC;AAID,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,QAAQ,WAAW;CAC3B,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;AACtB,CAAC;AAGD,MAAa,eAAeA,IAAAA,EAAE,mBAAmB,QAAQ;CACvD;CACA;CACA;AACF,CAAC;AAGD,MAAa,gBAAgBA,IAAAA,EAAE,OAAO;CACpC,IAAIA,IAAAA,EAAE,OAAO;CACb,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC3B,MAAM;AACR,CAAC;AAGD,MAAa,eAAeA,IAAAA,EAAE,MAAM,aAAa"}
|
|
@@ -99,27 +99,27 @@ declare const RegistryEntry: z.ZodObject<{
|
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
100
|
id: string;
|
|
101
101
|
spec: {
|
|
102
|
-
type: "local-dev";
|
|
103
|
-
path: string;
|
|
104
|
-
} | {
|
|
105
102
|
type: "remote-v1";
|
|
106
103
|
url: string;
|
|
107
104
|
} | {
|
|
108
105
|
type: "remote-v2";
|
|
109
106
|
url: string;
|
|
107
|
+
} | {
|
|
108
|
+
type: "local-dev";
|
|
109
|
+
path: string;
|
|
110
110
|
};
|
|
111
111
|
title?: string | undefined;
|
|
112
112
|
}, {
|
|
113
113
|
id: string;
|
|
114
114
|
spec: {
|
|
115
|
-
type: "local-dev";
|
|
116
|
-
path: string;
|
|
117
|
-
} | {
|
|
118
115
|
type: "remote-v1";
|
|
119
116
|
url: string;
|
|
120
117
|
} | {
|
|
121
118
|
type: "remote-v2";
|
|
122
119
|
url: string;
|
|
120
|
+
} | {
|
|
121
|
+
type: "local-dev";
|
|
122
|
+
path: string;
|
|
123
123
|
};
|
|
124
124
|
title?: string | undefined;
|
|
125
125
|
}>;
|
|
@@ -158,27 +158,27 @@ declare const RegistryList: z.ZodArray<z.ZodObject<{
|
|
|
158
158
|
}, "strip", z.ZodTypeAny, {
|
|
159
159
|
id: string;
|
|
160
160
|
spec: {
|
|
161
|
-
type: "local-dev";
|
|
162
|
-
path: string;
|
|
163
|
-
} | {
|
|
164
161
|
type: "remote-v1";
|
|
165
162
|
url: string;
|
|
166
163
|
} | {
|
|
167
164
|
type: "remote-v2";
|
|
168
165
|
url: string;
|
|
166
|
+
} | {
|
|
167
|
+
type: "local-dev";
|
|
168
|
+
path: string;
|
|
169
169
|
};
|
|
170
170
|
title?: string | undefined;
|
|
171
171
|
}, {
|
|
172
172
|
id: string;
|
|
173
173
|
spec: {
|
|
174
|
-
type: "local-dev";
|
|
175
|
-
path: string;
|
|
176
|
-
} | {
|
|
177
174
|
type: "remote-v1";
|
|
178
175
|
url: string;
|
|
179
176
|
} | {
|
|
180
177
|
type: "remote-v2";
|
|
181
178
|
url: string;
|
|
179
|
+
} | {
|
|
180
|
+
type: "local-dev";
|
|
181
|
+
path: string;
|
|
182
182
|
};
|
|
183
183
|
title?: string | undefined;
|
|
184
184
|
}>, "many">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry_spec.d.ts","names":[],"sources":["../../src/block_registry/registry_spec.ts"],"mappings":";;;cAEa,cAAA,EAAc,CAAA,CAAA,SAAA;;;;;;;;;;KAIf,cAAA,GAAiB,CAAA,CAAE,
|
|
1
|
+
{"version":3,"file":"registry_spec.d.ts","names":[],"sources":["../../src/block_registry/registry_spec.ts"],"mappings":";;;cAEa,cAAA,EAAc,CAAA,CAAA,SAAA;;;;;;;;;;KAIf,cAAA,GAAiB,CAAA,CAAE,KAAK,QAAQ,cAAA;;cAG/B,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;KAKrB,oBAAA,GAAuB,CAAA,CAAE,KAAK,QAAQ,oBAAA;AAAA,cAErC,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;KAIrB,oBAAA,GAAuB,CAAA,CAAE,KAAK,QAAQ,oBAAA;AAAA,cAErC,YAAA,EAAY,CAAA,CAAA,qBAAA,UAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKb,YAAA,GAAe,CAAA,CAAE,KAAK,QAAQ,YAAA;AAAA,cAE7B,aAAA,EAAa,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKd,aAAA,GAAgB,CAAA,CAAE,KAAK,QAAQ,aAAA;AAAA,cAE9B,YAAA,EAAY,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KACb,YAAA,GAAe,CAAA,CAAE,KAAK,QAAQ,YAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry_spec.js","names":[],"sources":["../../src/block_registry/registry_spec.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const LocalDevFolder = z.object({\n type: z.literal(\"local-dev\"),\n path: z.string(),\n});\nexport type LocalDevFolder = z.infer<typeof LocalDevFolder>;\n\n/** @deprecated don't use */\nexport const RemoteRegistryV1Spec = z.object({\n type: z.literal(\"remote-v1\"),\n url: z.string().url(),\n});\n/** @deprecated don't use */\nexport type RemoteRegistryV1Spec = z.infer<typeof RemoteRegistryV1Spec>;\n\nexport const RemoteRegistryV2Spec = z.object({\n type: z.literal(\"remote-v2\"),\n url: z.string().url(),\n});\nexport type RemoteRegistryV2Spec = z.infer<typeof RemoteRegistryV2Spec>;\n\nexport const RegistrySpec = z.discriminatedUnion(\"type\", [\n RemoteRegistryV1Spec,\n RemoteRegistryV2Spec,\n LocalDevFolder,\n]);\nexport type RegistrySpec = z.infer<typeof RegistrySpec>;\n\nexport const RegistryEntry = z.object({\n id: z.string(),\n title: z.string().optional(),\n spec: RegistrySpec,\n});\nexport type RegistryEntry = z.infer<typeof RegistryEntry>;\n\nexport const RegistryList = z.array(RegistryEntry);\nexport type RegistryList = z.infer<typeof RegistryList>;\n"],"mappings":";;AAEA,MAAa,iBAAiB,EAAE,OAAO;CACrC,MAAM,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"registry_spec.js","names":[],"sources":["../../src/block_registry/registry_spec.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const LocalDevFolder = z.object({\n type: z.literal(\"local-dev\"),\n path: z.string(),\n});\nexport type LocalDevFolder = z.infer<typeof LocalDevFolder>;\n\n/** @deprecated don't use */\nexport const RemoteRegistryV1Spec = z.object({\n type: z.literal(\"remote-v1\"),\n url: z.string().url(),\n});\n/** @deprecated don't use */\nexport type RemoteRegistryV1Spec = z.infer<typeof RemoteRegistryV1Spec>;\n\nexport const RemoteRegistryV2Spec = z.object({\n type: z.literal(\"remote-v2\"),\n url: z.string().url(),\n});\nexport type RemoteRegistryV2Spec = z.infer<typeof RemoteRegistryV2Spec>;\n\nexport const RegistrySpec = z.discriminatedUnion(\"type\", [\n RemoteRegistryV1Spec,\n RemoteRegistryV2Spec,\n LocalDevFolder,\n]);\nexport type RegistrySpec = z.infer<typeof RegistrySpec>;\n\nexport const RegistryEntry = z.object({\n id: z.string(),\n title: z.string().optional(),\n spec: RegistrySpec,\n});\nexport type RegistryEntry = z.infer<typeof RegistryEntry>;\n\nexport const RegistryList = z.array(RegistryEntry);\nexport type RegistryList = z.infer<typeof RegistryList>;\n"],"mappings":";;AAEA,MAAa,iBAAiB,EAAE,OAAO;CACrC,MAAM,EAAE,QAAQ,WAAW;CAC3B,MAAM,EAAE,OAAO;AACjB,CAAC;;AAID,MAAa,uBAAuB,EAAE,OAAO;CAC3C,MAAM,EAAE,QAAQ,WAAW;CAC3B,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI;AACtB,CAAC;AAID,MAAa,uBAAuB,EAAE,OAAO;CAC3C,MAAM,EAAE,QAAQ,WAAW;CAC3B,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI;AACtB,CAAC;AAGD,MAAa,eAAe,EAAE,mBAAmB,QAAQ;CACvD;CACA;CACA;AACF,CAAC;AAGD,MAAa,gBAAgB,EAAE,OAAO;CACpC,IAAI,EAAE,OAAO;CACb,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS;CAC3B,MAAM;AACR,CAAC;AAGD,MAAa,eAAe,EAAE,MAAM,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_settings.cjs","names":[],"sources":["../src/block_settings.ts"],"sourcesContent":["/**\n * What part of block version should be locked against updates.\n *\n * - `major` - 1.2.3 can be updated to 1.4.7\n * - `minor` - 1.2.3 can be updated to 1.2.5\n * - `patch` - version of the block is completely locked\n *\n * */\nexport type VersionLock = \"major\" | \"minor\" | \"patch\";\n\n/**\n * Block settings, persisted on the backend.\n *\n * Settings modulate different aspects of block behaviour,\n * currently only updates.\n * */\nexport type BlockSettings = {\n /** Only version strictly greater that this one will be suggested for auto-update. */\n skipVersion?: string;\n /**\n * If certain version locking policy is set, auto-updates will only be suggested,\n * if there is an update within the specified release line.\n * */\n versionLock?: VersionLock;\n};\n\nexport const InitialBlockSettings: BlockSettings = {};\n"],"mappings":";AA0BA,MAAa,uBAAsC,
|
|
1
|
+
{"version":3,"file":"block_settings.cjs","names":[],"sources":["../src/block_settings.ts"],"sourcesContent":["/**\n * What part of block version should be locked against updates.\n *\n * - `major` - 1.2.3 can be updated to 1.4.7\n * - `minor` - 1.2.3 can be updated to 1.2.5\n * - `patch` - version of the block is completely locked\n *\n * */\nexport type VersionLock = \"major\" | \"minor\" | \"patch\";\n\n/**\n * Block settings, persisted on the backend.\n *\n * Settings modulate different aspects of block behaviour,\n * currently only updates.\n * */\nexport type BlockSettings = {\n /** Only version strictly greater that this one will be suggested for auto-update. */\n skipVersion?: string;\n /**\n * If certain version locking policy is set, auto-updates will only be suggested,\n * if there is an update within the specified release line.\n * */\n versionLock?: VersionLock;\n};\n\nexport const InitialBlockSettings: BlockSettings = {};\n"],"mappings":";AA0BA,MAAa,uBAAsC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_settings.d.ts","names":[],"sources":["../src/block_settings.ts"],"mappings":";;AAQA
|
|
1
|
+
{"version":3,"file":"block_settings.d.ts","names":[],"sources":["../src/block_settings.ts"],"mappings":";;AAQA;;;;AAAuB;AAQvB;;KARY,WAAA;;;;;;AAee;KAPf,aAAA;EAUyC,qFARnD,WAAA;EAQmD;AAAA;;;EAHnD,WAAA,GAAc,WAAW;AAAA;AAAA,cAGd,oBAAA,EAAsB,aAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_settings.js","names":[],"sources":["../src/block_settings.ts"],"sourcesContent":["/**\n * What part of block version should be locked against updates.\n *\n * - `major` - 1.2.3 can be updated to 1.4.7\n * - `minor` - 1.2.3 can be updated to 1.2.5\n * - `patch` - version of the block is completely locked\n *\n * */\nexport type VersionLock = \"major\" | \"minor\" | \"patch\";\n\n/**\n * Block settings, persisted on the backend.\n *\n * Settings modulate different aspects of block behaviour,\n * currently only updates.\n * */\nexport type BlockSettings = {\n /** Only version strictly greater that this one will be suggested for auto-update. */\n skipVersion?: string;\n /**\n * If certain version locking policy is set, auto-updates will only be suggested,\n * if there is an update within the specified release line.\n * */\n versionLock?: VersionLock;\n};\n\nexport const InitialBlockSettings: BlockSettings = {};\n"],"mappings":";AA0BA,MAAa,uBAAsC,
|
|
1
|
+
{"version":3,"file":"block_settings.js","names":[],"sources":["../src/block_settings.ts"],"sourcesContent":["/**\n * What part of block version should be locked against updates.\n *\n * - `major` - 1.2.3 can be updated to 1.4.7\n * - `minor` - 1.2.3 can be updated to 1.2.5\n * - `patch` - version of the block is completely locked\n *\n * */\nexport type VersionLock = \"major\" | \"minor\" | \"patch\";\n\n/**\n * Block settings, persisted on the backend.\n *\n * Settings modulate different aspects of block behaviour,\n * currently only updates.\n * */\nexport type BlockSettings = {\n /** Only version strictly greater that this one will be suggested for auto-update. */\n skipVersion?: string;\n /**\n * If certain version locking policy is set, auto-updates will only be suggested,\n * if there is an update within the specified release line.\n * */\n versionLock?: VersionLock;\n};\n\nexport const InitialBlockSettings: BlockSettings = {};\n"],"mappings":";AA0BA,MAAa,uBAAsC,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -23,6 +23,7 @@ exports.BlockPackDescriptionManifest = require_block_manifest.BlockPackDescripti
|
|
|
23
23
|
exports.BlockPackDescriptionRaw = require_block_description.BlockPackDescriptionRaw;
|
|
24
24
|
exports.BlockPackDevV1 = require_block_pack_spec.BlockPackDevV1;
|
|
25
25
|
exports.BlockPackDevV2 = require_block_pack_spec.BlockPackDevV2;
|
|
26
|
+
exports.BlockPackFromPackV2 = require_block_pack_spec.BlockPackFromPackV2;
|
|
26
27
|
exports.BlockPackFromRegistryV1 = require_block_pack_spec.BlockPackFromRegistryV1;
|
|
27
28
|
exports.BlockPackFromRegistryV2 = require_block_pack_spec.BlockPackFromRegistryV2;
|
|
28
29
|
exports.BlockPackId = require_block_id.BlockPackId;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { StorageDebugView } from "./storage_debug_view.js";
|
|
|
4
4
|
import { BlockStateInternal, BlockStateInternalV3 } from "./block_state.js";
|
|
5
5
|
import { ProjectMeta } from "./project.js";
|
|
6
6
|
import { ProjectListEntry } from "./project_list.js";
|
|
7
|
-
import { BlockPackDevV1, BlockPackDevV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackSpec } from "./block_registry/block_pack_spec.js";
|
|
7
|
+
import { BlockPackDevV1, BlockPackDevV2, BlockPackFromPackV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackSpec } from "./block_registry/block_pack_spec.js";
|
|
8
8
|
import { AnyChannel, BlockPackListing, BlockPackOverview, BlockPackOverviewLegacy, BlockPackOverviewNoRegistryId, BlockPackOverviewRaw, RegistryStatus, SingleBlockPackOverview, StableChannel, VersionWithChannels, blockPackOverviewToLegacy } from "./block_registry/overview.js";
|
|
9
9
|
import { LocalDevFolder, RegistryEntry, RegistryList, RegistrySpec, RemoteRegistryV1Spec, RemoteRegistryV2Spec } from "./block_registry/registry_spec.js";
|
|
10
10
|
import { UpdateSuggestion, UpdateSuggestions } from "./update_info.js";
|
|
@@ -20,4 +20,4 @@ import { BlockPackDescription, BlockPackDescriptionFromPackageJsonRaw, BlockPack
|
|
|
20
20
|
import { BlockComponentsManifest, BlockPackDescriptionManifest, BlockPackManifest, BlockPackManifestFile, BlockPackMetaManifest, ManifestFileInfo, Sha256Schema, overrideManifestVersion } from "./block_meta/block_manifest.js";
|
|
21
21
|
import { index_d_exports } from "./pframe/internal_api/index.js";
|
|
22
22
|
import { HashedJson, hashJson, readJson, readJsonSync } from "./json.js";
|
|
23
|
-
export { AnyChannel, AuthorMarker, BlockCalculationStatus, BlockComponents, BlockComponentsDescriptionRaw, BlockComponentsManifest, BlockPackDescription, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionManifest, BlockPackDescriptionRaw, BlockPackDevV1, BlockPackDevV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackId, BlockPackIdNoVersion, BlockPackListing, BlockPackManifest, BlockPackManifestFile, BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPackMetaManifest, BlockPackOverview, BlockPackOverviewLegacy, BlockPackOverviewNoRegistryId, BlockPackOverviewRaw, BlockPackSpec, BlockPlatform, BlockSettings, BlockStateInternal, BlockStateInternalV3, BlockStateOverview, Content, ContentAbsoluteBinaryLocal, ContentAbsoluteFile, ContentAbsoluteFolder, ContentAbsoluteTextLocal, ContentAbsoluteUrl, ContentAnyBinaryLocal, ContentAnyLocal, ContentAnyTextLocal, ContentExplicitBase64, ContentExplicitBytes, ContentExplicitOrRelative, ContentExplicitString, ContentRelative, ContentRelativeBinary, ContentRelativeText, ContentType, ContextType, CreateBlockPackDescriptionSchema, DescriptionContentBinary, DescriptionContentText, FeatureFlags, HashedJson, InitialBlockSettings, LocalDevFolder, ManifestFileInfo, index_d_exports as PFrameInternal, ProjectListEntry, ProjectMeta, ProjectOverview, RegistryEntry, RegistryList, RegistrySpec, RegistryStatus, RemoteRegistryV1Spec, RemoteRegistryV2Spec, SemVer, Sha256Schema, SingleBlockPackOverview, StableChannel, StorageDebugView, UpdateSuggestion, UpdateSuggestions, VersionLock, VersionWithChannels, Workflow, WorkflowSchemaV1, WorkflowV1, addPrefixToRelative, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString, blockPackOverviewToLegacy, hashJson, mapRemoteToAbsolute, overrideDescriptionVersion, overrideManifestVersion, readJson, readJsonSync };
|
|
23
|
+
export { AnyChannel, type AuthorMarker, BlockCalculationStatus, BlockComponents, BlockComponentsDescriptionRaw, BlockComponentsManifest, BlockPackDescription, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionManifest, BlockPackDescriptionRaw, BlockPackDevV1, BlockPackDevV2, BlockPackFromPackV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackId, BlockPackIdNoVersion, BlockPackListing, BlockPackManifest, BlockPackManifestFile, BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPackMetaManifest, BlockPackOverview, BlockPackOverviewLegacy, BlockPackOverviewNoRegistryId, BlockPackOverviewRaw, BlockPackSpec, BlockPlatform, BlockSettings, BlockStateInternal, BlockStateInternalV3, BlockStateOverview, Content, ContentAbsoluteBinaryLocal, ContentAbsoluteFile, ContentAbsoluteFolder, ContentAbsoluteTextLocal, ContentAbsoluteUrl, ContentAnyBinaryLocal, ContentAnyLocal, ContentAnyTextLocal, ContentExplicitBase64, ContentExplicitBytes, ContentExplicitOrRelative, ContentExplicitString, ContentRelative, ContentRelativeBinary, ContentRelativeText, ContentType, ContextType, CreateBlockPackDescriptionSchema, DescriptionContentBinary, DescriptionContentText, FeatureFlags, HashedJson, InitialBlockSettings, LocalDevFolder, ManifestFileInfo, index_d_exports as PFrameInternal, ProjectListEntry, ProjectMeta, ProjectOverview, RegistryEntry, RegistryList, RegistrySpec, RegistryStatus, RemoteRegistryV1Spec, RemoteRegistryV2Spec, SemVer, Sha256Schema, SingleBlockPackOverview, StableChannel, StorageDebugView, UpdateSuggestion, UpdateSuggestions, VersionLock, VersionWithChannels, Workflow, WorkflowSchemaV1, WorkflowV1, addPrefixToRelative, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString, blockPackOverviewToLegacy, hashJson, mapRemoteToAbsolute, overrideDescriptionVersion, overrideManifestVersion, readJson, readJsonSync };
|
package/dist/index.js
CHANGED
|
@@ -8,10 +8,10 @@ import { BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64
|
|
|
8
8
|
import { BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionRaw, CreateBlockPackDescriptionSchema, FeatureFlags, overrideDescriptionVersion } from "./block_meta/block_description.js";
|
|
9
9
|
import { BlockComponentsManifest, BlockPackDescriptionManifest, BlockPackManifest, BlockPackManifestFile, BlockPackMetaManifest, ManifestFileInfo, Sha256Schema, overrideManifestVersion } from "./block_meta/block_manifest.js";
|
|
10
10
|
import "./block_meta/index.js";
|
|
11
|
-
import { BlockPackDevV1, BlockPackDevV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackSpec } from "./block_registry/block_pack_spec.js";
|
|
11
|
+
import { BlockPackDevV1, BlockPackDevV2, BlockPackFromPackV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackSpec } from "./block_registry/block_pack_spec.js";
|
|
12
12
|
import { LocalDevFolder, RegistryEntry, RegistryList, RegistrySpec, RemoteRegistryV1Spec, RemoteRegistryV2Spec } from "./block_registry/registry_spec.js";
|
|
13
13
|
import { AnyChannel, BlockPackListing, BlockPackOverview, BlockPackOverviewLegacy, BlockPackOverviewNoRegistryId, BlockPackOverviewRaw, RegistryStatus, SingleBlockPackOverview, StableChannel, VersionWithChannels, blockPackOverviewToLegacy } from "./block_registry/overview.js";
|
|
14
14
|
import "./block_registry/index.js";
|
|
15
15
|
import { internal_api_exports } from "./pframe/internal_api/index.js";
|
|
16
16
|
import { hashJson, readJson, readJsonSync } from "./json.js";
|
|
17
|
-
export { AnyChannel, BlockComponentsDescriptionRaw, BlockComponentsManifest, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionManifest, BlockPackDescriptionRaw, BlockPackDevV1, BlockPackDevV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackId, BlockPackIdNoVersion, BlockPackListing, BlockPackManifest, BlockPackManifestFile, BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPackMetaManifest, BlockPackOverview, BlockPackOverviewLegacy, BlockPackOverviewNoRegistryId, BlockPackOverviewRaw, BlockPackSpec, BlockPlatform, ContentExplicitBase64, ContentExplicitBytes, ContentRelative, ContentRelativeBinary, ContentRelativeText, CreateBlockPackDescriptionSchema, DescriptionContentBinary, DescriptionContentText, FeatureFlags, InitialBlockSettings, LocalDevFolder, ManifestFileInfo, internal_api_exports as PFrameInternal, RegistryEntry, RegistryList, RegistrySpec, RegistryStatus, RemoteRegistryV1Spec, RemoteRegistryV2Spec, SemVer, Sha256Schema, SingleBlockPackOverview, StableChannel, VersionWithChannels, WorkflowSchemaV1, addPrefixToRelative, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString, blockPackOverviewToLegacy, hashJson, mapRemoteToAbsolute, overrideDescriptionVersion, overrideManifestVersion, readJson, readJsonSync };
|
|
17
|
+
export { AnyChannel, BlockComponentsDescriptionRaw, BlockComponentsManifest, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionManifest, BlockPackDescriptionRaw, BlockPackDevV1, BlockPackDevV2, BlockPackFromPackV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackId, BlockPackIdNoVersion, BlockPackListing, BlockPackManifest, BlockPackManifestFile, BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPackMetaManifest, BlockPackOverview, BlockPackOverviewLegacy, BlockPackOverviewNoRegistryId, BlockPackOverviewRaw, BlockPackSpec, BlockPlatform, ContentExplicitBase64, ContentExplicitBytes, ContentRelative, ContentRelativeBinary, ContentRelativeText, CreateBlockPackDescriptionSchema, DescriptionContentBinary, DescriptionContentText, FeatureFlags, InitialBlockSettings, LocalDevFolder, ManifestFileInfo, internal_api_exports as PFrameInternal, RegistryEntry, RegistryList, RegistrySpec, RegistryStatus, RemoteRegistryV1Spec, RemoteRegistryV2Spec, SemVer, Sha256Schema, SingleBlockPackOverview, StableChannel, VersionWithChannels, WorkflowSchemaV1, addPrefixToRelative, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString, blockPackOverviewToLegacy, hashJson, mapRemoteToAbsolute, overrideDescriptionVersion, overrideManifestVersion, readJson, readJsonSync };
|
package/dist/json.cjs
CHANGED
|
@@ -2,7 +2,7 @@ const require_runtime = require("./_virtual/_rolldown/runtime.cjs");
|
|
|
2
2
|
let _milaboratories_pl_model_common = require("@milaboratories/pl-model-common");
|
|
3
3
|
let node_crypto = require("node:crypto");
|
|
4
4
|
let node_fs = require("node:fs");
|
|
5
|
-
node_fs = require_runtime.__toESM(node_fs);
|
|
5
|
+
node_fs = require_runtime.__toESM(node_fs, 1);
|
|
6
6
|
//#region src/json.ts
|
|
7
7
|
function hashJson(value) {
|
|
8
8
|
const hash = (0, node_crypto.createHash)("sha256");
|
package/dist/json.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.cjs","names":["fs"],"sources":["../src/json.ts"],"sourcesContent":["import {\n canonicalizeJson,\n parseJson,\n type JsonCompatible,\n type JsonSerializable,\n type StringifiedJson,\n} from \"@milaboratories/pl-model-common\";\nimport { createHash } from \"node:crypto\";\nimport fs from \"node:fs\";\n\nexport type HashedJson<T = unknown> =\n JsonCompatible<T> extends never\n ? never\n : string & {\n __json_hashed: T;\n };\n\nexport function hashJson<T>(value: JsonCompatible<T>): HashedJson<T>;\nexport function hashJson<T extends JsonSerializable>(value: T): string;\nexport function hashJson(value: unknown): string {\n const hash = createHash(\"sha256\");\n hash.update(canonicalizeJson(value));\n return hash.digest().toString(\"hex\");\n}\n\nexport async function readJson<T extends JsonSerializable>(\n filePath: string,\n signal?: AbortSignal,\n): Promise<T> {\n const content = await fs.promises.readFile(filePath, { encoding: \"utf8\", signal });\n return parseJson(content as StringifiedJson<T>);\n}\n\nexport function readJsonSync<T extends JsonSerializable>(filePath: string): T {\n const content = fs.readFileSync(filePath, { encoding: \"utf8\" });\n return parseJson(content as StringifiedJson<T>);\n}\n"],"mappings":";;;;;;AAmBA,SAAgB,SAAS,OAAwB;CAC/C,MAAM,QAAA,GAAA,YAAA,
|
|
1
|
+
{"version":3,"file":"json.cjs","names":["fs"],"sources":["../src/json.ts"],"sourcesContent":["import {\n canonicalizeJson,\n parseJson,\n type JsonCompatible,\n type JsonSerializable,\n type StringifiedJson,\n} from \"@milaboratories/pl-model-common\";\nimport { createHash } from \"node:crypto\";\nimport fs from \"node:fs\";\n\nexport type HashedJson<T = unknown> =\n JsonCompatible<T> extends never\n ? never\n : string & {\n __json_hashed: T;\n };\n\nexport function hashJson<T>(value: JsonCompatible<T>): HashedJson<T>;\nexport function hashJson<T extends JsonSerializable>(value: T): string;\nexport function hashJson(value: unknown): string {\n const hash = createHash(\"sha256\");\n hash.update(canonicalizeJson(value));\n return hash.digest().toString(\"hex\");\n}\n\nexport async function readJson<T extends JsonSerializable>(\n filePath: string,\n signal?: AbortSignal,\n): Promise<T> {\n const content = await fs.promises.readFile(filePath, { encoding: \"utf8\", signal });\n return parseJson(content as StringifiedJson<T>);\n}\n\nexport function readJsonSync<T extends JsonSerializable>(filePath: string): T {\n const content = fs.readFileSync(filePath, { encoding: \"utf8\" });\n return parseJson(content as StringifiedJson<T>);\n}\n"],"mappings":";;;;;;AAmBA,SAAgB,SAAS,OAAwB;CAC/C,MAAM,QAAA,GAAA,YAAA,WAAA,CAAkB,QAAQ;CAChC,KAAK,QAAA,GAAA,gCAAA,iBAAA,CAAwB,KAAK,CAAC;CACnC,OAAO,KAAK,OAAO,CAAC,CAAC,SAAS,KAAK;AACrC;AAEA,eAAsB,SACpB,UACA,QACY;CAEZ,QAAA,GAAA,gCAAA,UAAA,CAAiB,MADKA,QAAAA,QAAG,SAAS,SAAS,UAAU;EAAE,UAAU;EAAQ;CAAO,CAAC,CACnC;AAChD;AAEA,SAAgB,aAAyC,UAAqB;CAE5E,QAAA,GAAA,gCAAA,UAAA,CADgBA,QAAAA,QAAG,aAAa,UAAU,EAAE,UAAU,OAAO,CACtC,CAAuB;AAChD"}
|
package/dist/json.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","names":[],"sources":["../src/json.ts"],"mappings":";;;KAUY,UAAA,gBACV,cAAA,CAAe,CAAA;EAGT,aAAA,EAAe,CAAA;AAAA;AAAA,iBAGP,QAAA,
|
|
1
|
+
{"version":3,"file":"json.d.ts","names":[],"sources":["../src/json.ts"],"mappings":";;;KAUY,UAAA,gBACV,cAAA,CAAe,CAAA;EAGT,aAAA,EAAe,CAAA;AAAA;AAAA,iBAGP,QAAA,IAAY,KAAA,EAAO,cAAA,CAAe,CAAA,IAAK,UAAA,CAAW,CAAA;AAAA,iBAClD,QAAA,WAAmB,gBAAA,EAAkB,KAAA,EAAO,CAAC;AAAA,iBAOvC,QAAA,WAAmB,gBAAA,EACvC,QAAA,UACA,MAAA,GAAS,WAAA,GACR,OAAA,CAAQ,CAAA;AAAA,iBAKK,YAAA,WAAuB,gBAAA,EAAkB,QAAA,WAAmB,CAAC"}
|
package/dist/json.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.js","names":[],"sources":["../src/json.ts"],"sourcesContent":["import {\n canonicalizeJson,\n parseJson,\n type JsonCompatible,\n type JsonSerializable,\n type StringifiedJson,\n} from \"@milaboratories/pl-model-common\";\nimport { createHash } from \"node:crypto\";\nimport fs from \"node:fs\";\n\nexport type HashedJson<T = unknown> =\n JsonCompatible<T> extends never\n ? never\n : string & {\n __json_hashed: T;\n };\n\nexport function hashJson<T>(value: JsonCompatible<T>): HashedJson<T>;\nexport function hashJson<T extends JsonSerializable>(value: T): string;\nexport function hashJson(value: unknown): string {\n const hash = createHash(\"sha256\");\n hash.update(canonicalizeJson(value));\n return hash.digest().toString(\"hex\");\n}\n\nexport async function readJson<T extends JsonSerializable>(\n filePath: string,\n signal?: AbortSignal,\n): Promise<T> {\n const content = await fs.promises.readFile(filePath, { encoding: \"utf8\", signal });\n return parseJson(content as StringifiedJson<T>);\n}\n\nexport function readJsonSync<T extends JsonSerializable>(filePath: string): T {\n const content = fs.readFileSync(filePath, { encoding: \"utf8\" });\n return parseJson(content as StringifiedJson<T>);\n}\n"],"mappings":";;;;AAmBA,SAAgB,SAAS,OAAwB;CAC/C,MAAM,OAAO,WAAW,
|
|
1
|
+
{"version":3,"file":"json.js","names":[],"sources":["../src/json.ts"],"sourcesContent":["import {\n canonicalizeJson,\n parseJson,\n type JsonCompatible,\n type JsonSerializable,\n type StringifiedJson,\n} from \"@milaboratories/pl-model-common\";\nimport { createHash } from \"node:crypto\";\nimport fs from \"node:fs\";\n\nexport type HashedJson<T = unknown> =\n JsonCompatible<T> extends never\n ? never\n : string & {\n __json_hashed: T;\n };\n\nexport function hashJson<T>(value: JsonCompatible<T>): HashedJson<T>;\nexport function hashJson<T extends JsonSerializable>(value: T): string;\nexport function hashJson(value: unknown): string {\n const hash = createHash(\"sha256\");\n hash.update(canonicalizeJson(value));\n return hash.digest().toString(\"hex\");\n}\n\nexport async function readJson<T extends JsonSerializable>(\n filePath: string,\n signal?: AbortSignal,\n): Promise<T> {\n const content = await fs.promises.readFile(filePath, { encoding: \"utf8\", signal });\n return parseJson(content as StringifiedJson<T>);\n}\n\nexport function readJsonSync<T extends JsonSerializable>(filePath: string): T {\n const content = fs.readFileSync(filePath, { encoding: \"utf8\" });\n return parseJson(content as StringifiedJson<T>);\n}\n"],"mappings":";;;;AAmBA,SAAgB,SAAS,OAAwB;CAC/C,MAAM,OAAO,WAAW,QAAQ;CAChC,KAAK,OAAO,iBAAiB,KAAK,CAAC;CACnC,OAAO,KAAK,OAAO,CAAC,CAAC,SAAS,KAAK;AACrC;AAEA,eAAsB,SACpB,UACA,QACY;CAEZ,OAAO,UAAU,MADK,GAAG,SAAS,SAAS,UAAU;EAAE,UAAU;EAAQ;CAAO,CAAC,CACnC;AAChD;AAEA,SAAgB,aAAyC,UAAqB;CAE5E,OAAO,UADS,GAAG,aAAa,UAAU,EAAE,UAAU,OAAO,CACtC,CAAuB;AAChD"}
|
package/dist/pframe/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import { index_d_exports } from "./internal_api/index.js";
|
|
1
|
+
import { index_d_exports } from "./internal_api/index.js";
|
|
2
|
+
export { index_d_exports as PFrameInternal };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_factory.d.ts","names":[],"sources":["../../../src/pframe/internal_api/api_factory.ts"],"mappings":";;;;;cAca,aAAA;AAAb;AAAA,cAGa,iBAAA;;KAGD,YAAA,GAAe,
|
|
1
|
+
{"version":3,"file":"api_factory.d.ts","names":[],"sources":["../../../src/pframe/internal_api/api_factory.ts"],"mappings":";;;;;cAca,aAAA;AAAb;AAAA,cAGa,iBAAA;;KAGD,YAAA,GAAe,OAAO;AANW;AAG7C;AAH6C,KAUjC,QAAA;;UAGK,kBAAA;EAVoC;AAGrD;;;;EAaE,WAAA,CAAY,OAAA,EAAS,YAAA,KAAiB,OAAA;EAT5B;EAYV,kBAAA,CAAmB,MAAA,EAAQ,YAAA,GAAe,OAAA,CAAQ,UAAA;;;AAZhC;AAGpB;EAeE,aAAA,GAAgB,cAAA;AAAA;;;;;;KAQN,oBAAA;EAAA,SACD,IAAA,EAAM,aAAA;EAAA,SACN,MAAA,EAAQ,eAAe;AAAA;;;;;;;KAStB,QAAA,UACR,YAAA,GACA,uBAAA,CAAwB,IAAA,IACxB,yBAAA,CAA0B,IAAA,IAC1B,0BAAA,CAA2B,YAAA,CAAa,IAAA;EA7BQ;;;;EAAA,SAmCzC,QAAA,GAAW,oBAAA;AAAA;;;;;;;;;KAWV,UAAA,SAAmB,QAAA,CAAS,IAAA;EAAA,SAC7B,QAAA,EAAU,oBAAA;AAAA;;;;;;UAQJ,gBAAA;EA1B2B;EAAA,SA4BjC,EAAA,EAAI,SAAA;EA5BX;EAAA,SA8BO,IAAA,EAAM,UAAA,CAAW,YAAA;AAAA;;;;;;UAQX,kBAAA,SAA2B,UAAA;EAvCd;EAyC5B,aAAA,CAAc,UAAA,EAAY,kBAAA;EAxCG;;;;;EA+C7B,UAAA,CACE,OAAA,EAAS,gBAAA,IACT,OAAA;IACE,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA;EAnCiB;;EAuCpB,OAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_read.d.ts","names":[],"sources":["../../../src/pframe/internal_api/api_read.ts"],"mappings":";;;;;;;AAeA;;;;UAAiB,qBAAA;EAEI;EAAA,SAAV,QAAA,EAAU,SAAA;EASV;;;;EAAA,SAHA,SAAA;EA0BM;EAAA,SAvBN,OAAA,EAAS,
|
|
1
|
+
{"version":3,"file":"api_read.d.ts","names":[],"sources":["../../../src/pframe/internal_api/api_read.ts"],"mappings":";;;;;;;AAeA;;;;UAAiB,qBAAA;EAEI;EAAA,SAAV,QAAA,EAAU,SAAA;EASV;;;;EAAA,SAHA,SAAA;EA0BM;EAAA,SAvBN,OAAA,EAAS,0BAA0B;;WAGnC,KAAA;AAAA;;;;;;;;;;;;;;;;;;UAoBM,gBAAA;EAOb;EALF,WAAA,CAAY,OAAA,EAAS,QAAA,EAAU,SAAA,EAAW,SAAA,GAAY,SAAA;EAQ3C;EALX,eAAA,CACE,OAAA,EAAS,qBAAA,EACT,GAAA;IACE,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA,CAAQ,oBAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_wasm.d.ts","names":[],"sources":["../../../src/pframe/internal_api/api_wasm.ts"],"mappings":";;;;;;;;AAiCA;;;;;;UAAiB,eAAA;EAUa;;;EAN5B,YAAA,CAAa,IAAA,EAAM,MAAA,SAAe,WAAA,IAAe,YAAA;EAiBd;;;;EAXnC,UAAA,CAAW,IAAA,EAAM,QAAA,GAAW,MAAA;EAoCf;;;EA/Bb,YAAA,CAAa,GAAA,EAAK,MAAA,GAAS,QAAA;E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,CAAU,SAAA,GApCa;EAsC5B,OAAA,GAAU,kBAAA,IAnCiB;EAqC3B,OAAA,GAAU,aAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","names":[],"sources":["../../../src/pframe/internal_api/common.ts"],"mappings":";;;KAOY,MAAA,IAAU,KAAA,6BAAkC,
|
|
1
|
+
{"version":3,"file":"common.d.ts","names":[],"sources":["../../../src/pframe/internal_api/common.ts"],"mappings":";;;KAOY,MAAA,IAAU,KAAA,6BAAkC,OAAe;AAAA,KAE3D,QAAA,GAAW,YAAY;AAAA,KAEvB,QAAA,GAAW,YAAY;AAAA,UAElB,iBAAA;EACf,IAAA,EAAM,kBAAA;EACN,aAAA,EAAe,MAAM;AAAA;AAAA,UAGN,4BAAA;EACf,QAAA,EAAU,QAAA;EACV,cAAA,EAAgB,iBAAiB;AAAA;AAAA,KAGvB,kBAAA;EACV,IAAA;EACA,SAAA;EACA,QAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create_table.d.ts","names":[],"sources":["../../../src/pframe/internal_api/create_table.ts"],"mappings":";;;;UAQiB,eAAA;EACf,IAAA;EACA,QAAA,EAAU,
|
|
1
|
+
{"version":3,"file":"create_table.d.ts","names":[],"sources":["../../../src/pframe/internal_api/create_table.ts"],"mappings":";;;;UAQiB,eAAA;EACf,IAAA;EACA,QAAA,EAAU,SAAS;AAAA;AAAA,UAGJ,qBAAA;EAAA,SACN,IAAA;EAAA,SACA,QAAA,EAAU,SAAA;EAAA,SACV,KAAA,EAAO,SAAA;EAAA,SACP,WAAA,EAAa,kBAAA;AAAA;AAAA,UAGP,yBAAA;EAAA,SACN,IAAA;EAAA,SACA,QAAA,EAAU,SAAA;EAAA,SACV,KAAA,EAAO,SAAS;EAAA,SAChB,WAAA;AAAA;AAAA,UAGM,qBAAA;EAAA,SACN,IAAA;EAAA,SACA,KAAA,EAAO,SAAA;EAAA,SACP,IAAA,EAAM,WAAA;EAAA,SACN,QAAA,EAAU,YAAA;AAAA;AAAA,UAGJ,WAAA;EACf,IAAA;EACA,OAAA,EAAS,WAAW;AAAA;AAAA,UAGL,UAAA;EACf,IAAA;EACA,OAAA,EAAS,WAAW;AAAA;AAAA,UAGL,WAAA;EACf,IAAA;EACA,OAAA,EAAS,WAAA;EACT,SAAA,EAAW,WAAW;AAAA;AAAA,KAGZ,WAAA,GACR,eAAA,GACA,qBAAA,GACA,yBAAA,GACA,qBAAA,GACA,WAAA,GACA,UAAA,GACA,WAAA;AAAA,UAEa,oBAAA;EACf,GAAA,EAAK,WAAA;EACL,OAAA,EAAS,kBAAkB;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete_column.d.ts","names":[],"sources":["../../../src/pframe/internal_api/delete_column.ts"],"mappings":";;;UAEiB,8BAAA;EACf,OAAA,EAAS,
|
|
1
|
+
{"version":3,"file":"delete_column.d.ts","names":[],"sources":["../../../src/pframe/internal_api/delete_column.ts"],"mappings":";;;UAEiB,8BAAA;EACf,OAAA,EAAS,4BAA4B;EADtB;EAIf,MAAA;AAAA;AAAA,UAGe,+BAAA;EACf,OAAA,EAAS,4BAA4B;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover_columns.d.ts","names":[],"sources":["../../../src/pframe/internal_api/discover_columns.ts"],"mappings":";;;;;KAWY,aAAA;EAAkB,IAAA;EAAe,KAAA;AAAA;EAAoB,IAAA;EAAe,KAAA;AAAA;;KAGpE,UAAA,GAAa,
|
|
1
|
+
{"version":3,"file":"discover_columns.d.ts","names":[],"sources":["../../../src/pframe/internal_api/discover_columns.ts"],"mappings":";;;;;KAWY,aAAA;EAAkB,IAAA;EAAe,KAAA;AAAA;EAAoB,IAAA;EAAe,KAAA;AAAA;;KAGpE,UAAA,GAAa,MAAM,SAAS,aAAA;AAH6C;AAAA,UAMpE,iBAAA;EAHK;EAAA,SAKX,IAAA,GAAO,aAAA;EALO;EAAA,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gB,
|
|
1
|
+
{"version":3,"file":"find_columns.d.ts","names":[],"sources":["../../../src/pframe/internal_api/find_columns.ts"],"mappings":";;;;UAGiB,kBAAA;EACf,YAAA,EAAc,YAAA;EACd,cAAA,EAAgB,4BAA4B;EAC5C,kBAAA;AAAA;AAAA,UAGe,gCAAA;EACf,UAAA,EAAY,iBAAA;EACZ,MAAA,EAAQ,iBAAiB;AAAA;AAAA,UAGV,yBAAA;EACf,cAAA,EAAgB,gCAAA;EAChB,yBAAA,EAA2B,gCAAgC;AAAA;AAAA,UAG5C,sBAAA;EACf,GAAA,EAAK,gBAAA;EACL,eAAA,EAAiB,yBAAyB;AAAA;AAAA,UAG3B,mBAAA;EACf,IAAA,EAAM,sBAAsB;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http_helpers.cjs","names":[],"sources":["../../../src/pframe/internal_api/http_helpers.ts"],"sourcesContent":["import type { Readable } from \"node:stream\";\nimport type { RequestListener } from \"node:http\";\nimport type { Branded, Base64Encoded } from \"@milaboratories/pl-model-common\";\nimport type { Logger } from \"./common\";\n\n/** Parquet file extension */\nexport const ParquetExtension = \".parquet\" as const;\n\n/** Parquet file name */\nexport type ParquetFileName = Branded<`${string}.parquet`, \"PFrameInternal.ParquetFileName\">;\n\nexport type FileRange = {\n /** Start byte position (inclusive) */\n start: number;\n /** End byte position (inclusive) */\n end: number;\n};\n\n/** HTTP range as of RFC 9110 <https://datatracker.ietf.org/doc/html/rfc9110#name-range> */\nexport type HttpRange =\n | {\n /**\n * Get file content in the specified byte range\n *\n * @example\n * ```\n * GET /file.parquet HTTP/1.1\n * Range: bytes=0-1023\n * ```\n */\n type: \"bounded\";\n /** Start byte position (inclusive) */\n start: number;\n /** End byte position (inclusive) */\n end: number;\n }\n | {\n /**\n * Get byte range starting from the specified offset\n *\n * @example\n * ```\n * GET /file.parquet HTTP/1.1\n * Range: bytes=1024-\n * ```\n */\n type: \"offset\";\n /** Start byte position (inclusive) */\n offset: number;\n }\n | {\n /**\n * Get byte range starting from the specified suffix\n *\n * @example\n * ```\n * GET /file.parquet HTTP/1.1\n * Range: bytes=-1024\n * ```\n */\n type: \"suffix\";\n /** End byte position (inclusive) */\n suffix: number;\n };\n\n/** HTTP method passed to object store */\nexport type HttpMethod = \"GET\" | \"HEAD\";\n\n/** HTTP response from object store */\nexport type ObjectStoreResponse =\n | {\n /**\n * Will be translated to 500 Internal Server Error by the handler\n * or 408 Request Timeout if the request was aborted\n */\n type: \"InternalError\";\n }\n | {\n /** Will be translated to 404 Not Found by the handler */\n type: \"NotFound\";\n }\n | {\n /** Will be translated to 416 Range Not Satisfiable by the handler */\n type: \"RangeNotSatisfiable\";\n /** Total file size in bytes */\n size: number;\n }\n | {\n /** Will be translated to 200 OK or 206 Partial Content by the handler */\n type: \"Ok\";\n /** Total file size in bytes */\n size: number;\n /** File range translated from HTTP range */\n range: FileRange;\n /** Stream of file content, undefined for HEAD requests */\n data?: Readable;\n };\n\n/** Common options for object store creation */\nexport interface ObjectStoreOptions {\n /** Logger instance, no logging is performed when not provided */\n logger?: Logger;\n}\n\n/** Options for file system object store creation */\nexport interface FsStoreOptions extends ObjectStoreOptions {\n /** Local directory to serve files from */\n rootDir: string;\n}\n\nexport interface ObjectStore {\n /**\n * Proxy HTTP(S) request for parquet file to object store.\n * Callback promise resolves when stream is closed by handler @see HttpHelpers.createRequestHandler\n * Callback API is used so that ObjectStore can limit the number of concurrent requests.\n */\n request(\n filename: ParquetFileName,\n params: {\n method: HttpMethod;\n range?: HttpRange;\n signal: AbortSignal;\n callback: (response: ObjectStoreResponse) => Promise<void>;\n },\n ): void;\n}\n\n/** File system abstraction for request handler factory, @see HttpHelpers.createRequestHandler */\nexport abstract class BaseObjectStore implements ObjectStore {\n protected readonly logger: Logger;\n\n constructor(options: ObjectStoreOptions) {\n this.logger = options.logger ?? (() => {});\n }\n\n /** Translate HTTP range to file range, @returns null if the range is not satisfiable */\n protected translate(fileSize: number, range?: HttpRange): FileRange | null {\n if (!range) return { start: 0, end: fileSize - 1 };\n switch (range.type) {\n case \"bounded\":\n if (range.end >= fileSize) return null;\n return { start: range.start, end: range.end };\n case \"offset\":\n if (range.offset >= fileSize) return null;\n return { start: range.offset, end: fileSize - 1 };\n case \"suffix\":\n if (range.suffix > fileSize) return null;\n return { start: fileSize - range.suffix, end: fileSize - 1 };\n }\n }\n\n /**\n * Proxy HTTP(S) request for parquet file to object store.\n * Callback promise resolves when stream is closed by handler @see HttpHelpers.createRequestHandler\n * Callback API is used so that ObjectStore can limit the number of concurrent requests.\n */\n abstract request(\n filename: ParquetFileName,\n params: {\n method: HttpMethod;\n range?: HttpRange;\n signal: AbortSignal;\n callback: (response: ObjectStoreResponse) => Promise<void>;\n },\n ): Promise<void>;\n}\n\n/** Configuration for {@link HttpHelpers.createCachingObjectStore} */\nexport type CacheConfig = {\n /** Filesystem path where the cache persists its data */\n cachePath: string;\n /** Hard total size budget in bytes; the cache self-stabilizes near this size */\n maxSizeBytes: number;\n /**\n * Max share of the budget a single file may occupy (0..1); when a file exceeds it, that\n * file's oldest ranges are evicted first. Stops one large scan from flushing the working set.\n */\n admissionFraction: number;\n /** Upper bound on previously-evicted (ghost) files remembered to guide readmission; resident files are already byte-bounded */\n maxFilesTracked: number;\n};\n\n/**\n * Cumulative cache event counters. Surfaced both as lifetime totals (persisted across restarts)\n * and as a per-process session view, @see CacheMetrics.\n */\nexport type CacheCounters = {\n /** Requests fully served from cache */\n hits: number;\n /** Requests that fell through to upstream */\n misses: number;\n /** Bytes served from cache */\n bytesServed: number;\n /**\n * Bytes requested by clients that were not cached; compare with {@link bytesFetched} for read-ahead\n * amplification.\n */\n bytesMissed: number;\n /** Bytes downloaded from upstream on misses, including read-ahead and read-behind */\n bytesFetched: number;\n /** Bytes evicted to keep the cache within its total size budget, @see CacheConfig.maxSizeBytes */\n bytesEvictedByBudget: number;\n /** Bytes evicted because a single file exceeded its allowed share of the budget, @see CacheConfig.admissionFraction */\n bytesEvictedByFileCap: number;\n /** Files promoted on observed reuse, so they are retained longer than first-time entries */\n promotions: number;\n /** Previously evicted files that were re-requested and readmitted */\n ghostReadmissions: number;\n};\n\n/** Snapshot of cache state and counters, @see CachingObjectStore.getMetrics */\nexport type CacheMetrics = {\n /** Current resident bytes */\n sizeBytes: number;\n /** Number of files with resident (cached) bytes */\n residentFiles: number;\n /** Number of previously-evicted (ghost) files remembered, <= @see CacheConfig.maxFilesTracked */\n ghostFiles: number;\n /** Counters cumulative across all sessions (persisted) */\n lifetime: CacheCounters;\n /** The same counters scoped to the current process */\n session: CacheCounters;\n};\n\n/**\n * Options for caching object store creation, @see HttpHelpers.createCachingObjectStore.\n * Standalone (not extending {@link ObjectStoreOptions}): a caching store is a decorator over\n * `upstream`, so source-store options do not apply to it.\n */\nexport interface CachingObjectStoreOptions {\n /** Upstream store consulted on cache misses */\n upstream: ObjectStore;\n /** Cache configuration */\n config: CacheConfig;\n /** Logger instance, no logging is performed when not provided */\n logger?: Logger;\n}\n\n/**\n * An {@link ObjectStore} that serves byte ranges from a persistent local cache, fetching misses\n * from an upstream store. This is the single handle for the cache: pass it as\n * {@link RequestHandlerOptions.store}, read {@link CachingObjectStore.getMetrics}, and dispose it\n * to release the cache, @see HttpHelpers.createCachingObjectStore.\n */\nexport interface CachingObjectStore extends ObjectStore, AsyncDisposable {\n /** Instantaneous cache state plus lifetime/session counters */\n getMetrics(): CacheMetrics;\n /** Drop all cached data and zero the counters (test/benchmark use) */\n reset(): Promise<void>;\n}\n\n/** Object store base URL in format accepted by Apache DataFusion and DuckDB */\nexport type ObjectStoreUrl = Branded<string, \"PFrameInternal.ObjectStoreUrl\">;\n\n/** HTTP(S) request handler creation options */\nexport type RequestHandlerOptions = {\n /**\n * Object store to serve files from. Compose caching by wrapping the upstream store with\n * {@link HttpHelpers.createCachingObjectStore} and passing the result here,\n * @see HttpHelpers.createFsStore\n */\n store: ObjectStore;\n};\n\n/** Server configuration options */\nexport type HttpServerOptions = {\n /** HTTP(S) request handler function, @see HttpHelpers.createRequestHandler */\n handler: RequestListener;\n /** Port to bind to, @default 0 for auto-assignment */\n port?: number;\n /** Do not apply authorization middleware to @param handler */\n noAuth?: true;\n /** Downgrade default HTTPS server to plain HTTP, @warning use only for testing */\n noHttps?: true;\n};\n\n/**\n * Long unique opaque string for use in Bearer authorization header\n *\n * @example\n * ```ts\n * request.setHeader('Authorization', `Bearer ${authToken}`);\n * ```\n */\nexport type HttpAuthorizationToken = Branded<string, \"PFrameInternal.HttpAuthorizationToken\">;\n\n/**\n * TLS certificate in PEM format\n *\n * @example\n * ```txt\n * -----BEGIN CERTIFICATE-----\n * MIIC2zCCAcOgAwIBAgIJaVW7...\n * ...\n * ...Yf9CRK8fgnukKM7TJ\n * -----END CERTIFICATE-----\n * ```\n */\nexport type PemCertificate = Branded<string, \"PFrameInternal.PemCertificate\">;\n\n/** HTTP(S) server connection settings, {@link HttpHelpers.createHttpServer} */\nexport type HttpServerInfo = {\n /** URL of the HTTP(S) server formatted as `http{s}://<host>:<port>/` */\n url: ObjectStoreUrl;\n /** Authorization token for Bearer scheme, undefined when @see HttpServerOptions.noAuth flag is set */\n authToken?: HttpAuthorizationToken;\n /** Encoded CA certificate of HTTPS server, undefined when @see HttpServerOptions.noHttps flag is set */\n encodedCaCert?: Base64Encoded<PemCertificate>;\n};\n\n/** HTTP(S) server information and controls, @see HttpHelpers.createHttpServer */\nexport interface HttpServer {\n /** Server configuration information for initiating connections from clients */\n get info(): HttpServerInfo;\n /** Promise that resolves when the server is stopped */\n get stopped(): Promise<void>;\n /** Request server stop, returns the same promise as @see HttpServer.stopped */\n stop(): Promise<void>;\n}\n\n/** List of HTTP(S) related helper functions exposed by PFrame module */\nexport interface HttpHelpers {\n /**\n * Create an object store for serving files from a local directory.\n * Rejects if the provided path does not exist or is not a directory.\n */\n createFsStore(options: FsStoreOptions): Promise<ObjectStore>;\n\n /**\n * Wrap an upstream object store in a persistent byte-range cache backed by SQLite.\n * The returned store is itself an {@link ObjectStore} (pass it to {@link createRequestHandler})\n * and additionally exposes metrics and reset. Dispose it to close the cache database.\n */\n createCachingObjectStore(options: CachingObjectStoreOptions): Promise<CachingObjectStore>;\n\n /**\n * Create an HTTP request handler for serving files from an object store.\n * Accepts only paths of the form `/<filename>.parquet`, returns 410 otherwise.\n * Assumes that files are immutable (and sets cache headers accordingly).\n */\n createRequestHandler(options: RequestHandlerOptions): RequestListener;\n\n /**\n * Serve HTTP(S) requests using the provided handler on localhost port.\n * @returns promise that resolves when the server has stopped.\n *\n * @example\n * ```ts\n * const rootDir = '/path/to/directory/with/parquet/files';\n *\n * let store = await HttpHelpers.createFsStore({ rootDir }).catch((err: unknown) => {\n * throw new Error(`Failed to create file store for ${rootDir} - ${ensureError(err)}`);\n * });\n *\n * const server = await HttpHelpers.createHttpServer({\n * handler: HttpHelpers.createRequestHandler({ store }),\n * }).catch((err: unknown) => {\n * throw new Error(`Failed to start HTTPS server - ${ensureError(err)}`);\n * });\n *\n * const { url, authToken, encodedCaCert } = server.info;\n *\n * await server.stop();\n * ```\n */\n createHttpServer(options: HttpServerOptions): Promise<HttpServer>;\n}\n"],"mappings":";;AAMA,MAAa,mBAAmB;;AA0HhC,IAAsB,kBAAtB,MAA6D;CAC3D;CAEA,YAAY,SAA6B;AACvC,OAAK,SAAS,QAAQ,iBAAiB;;;CAIzC,UAAoB,UAAkB,OAAqC;AACzE,MAAI,CAAC,MAAO,QAAO;GAAE,OAAO;GAAG,KAAK,WAAW;GAAG;AAClD,UAAQ,MAAM,MAAd;GACE,KAAK;AACH,QAAI,MAAM,OAAO,SAAU,QAAO;AAClC,WAAO;KAAE,OAAO,MAAM;KAAO,KAAK,MAAM;KAAK;GAC/C,KAAK;AACH,QAAI,MAAM,UAAU,SAAU,QAAO;AACrC,WAAO;KAAE,OAAO,MAAM;KAAQ,KAAK,WAAW;KAAG;GACnD,KAAK;AACH,QAAI,MAAM,SAAS,SAAU,QAAO;AACpC,WAAO;KAAE,OAAO,WAAW,MAAM;KAAQ,KAAK,WAAW;KAAG"}
|
|
1
|
+
{"version":3,"file":"http_helpers.cjs","names":[],"sources":["../../../src/pframe/internal_api/http_helpers.ts"],"sourcesContent":["import type { Readable } from \"node:stream\";\nimport type { RequestListener } from \"node:http\";\nimport type { Branded, Base64Encoded } from \"@milaboratories/pl-model-common\";\nimport type { Logger } from \"./common\";\n\n/** Parquet file extension */\nexport const ParquetExtension = \".parquet\" as const;\n\n/** Parquet file name */\nexport type ParquetFileName = Branded<`${string}.parquet`, \"PFrameInternal.ParquetFileName\">;\n\nexport type FileRange = {\n /** Start byte position (inclusive) */\n start: number;\n /** End byte position (inclusive) */\n end: number;\n};\n\n/** HTTP range as of RFC 9110 <https://datatracker.ietf.org/doc/html/rfc9110#name-range> */\nexport type HttpRange =\n | {\n /**\n * Get file content in the specified byte range\n *\n * @example\n * ```\n * GET /file.parquet HTTP/1.1\n * Range: bytes=0-1023\n * ```\n */\n type: \"bounded\";\n /** Start byte position (inclusive) */\n start: number;\n /** End byte position (inclusive) */\n end: number;\n }\n | {\n /**\n * Get byte range starting from the specified offset\n *\n * @example\n * ```\n * GET /file.parquet HTTP/1.1\n * Range: bytes=1024-\n * ```\n */\n type: \"offset\";\n /** Start byte position (inclusive) */\n offset: number;\n }\n | {\n /**\n * Get byte range starting from the specified suffix\n *\n * @example\n * ```\n * GET /file.parquet HTTP/1.1\n * Range: bytes=-1024\n * ```\n */\n type: \"suffix\";\n /** End byte position (inclusive) */\n suffix: number;\n };\n\n/** HTTP method passed to object store */\nexport type HttpMethod = \"GET\" | \"HEAD\";\n\n/** HTTP response from object store */\nexport type ObjectStoreResponse =\n | {\n /**\n * Will be translated to 500 Internal Server Error by the handler\n * or 408 Request Timeout if the request was aborted\n */\n type: \"InternalError\";\n }\n | {\n /** Will be translated to 404 Not Found by the handler */\n type: \"NotFound\";\n }\n | {\n /** Will be translated to 416 Range Not Satisfiable by the handler */\n type: \"RangeNotSatisfiable\";\n /** Total file size in bytes */\n size: number;\n }\n | {\n /** Will be translated to 200 OK or 206 Partial Content by the handler */\n type: \"Ok\";\n /** Total file size in bytes */\n size: number;\n /** File range translated from HTTP range */\n range: FileRange;\n /** Stream of file content, undefined for HEAD requests */\n data?: Readable;\n };\n\n/** Common options for object store creation */\nexport interface ObjectStoreOptions {\n /** Logger instance, no logging is performed when not provided */\n logger?: Logger;\n}\n\n/** Options for file system object store creation */\nexport interface FsStoreOptions extends ObjectStoreOptions {\n /** Local directory to serve files from */\n rootDir: string;\n}\n\nexport interface ObjectStore {\n /**\n * Proxy HTTP(S) request for parquet file to object store.\n * Callback promise resolves when stream is closed by handler @see HttpHelpers.createRequestHandler\n * Callback API is used so that ObjectStore can limit the number of concurrent requests.\n */\n request(\n filename: ParquetFileName,\n params: {\n method: HttpMethod;\n range?: HttpRange;\n signal: AbortSignal;\n callback: (response: ObjectStoreResponse) => Promise<void>;\n },\n ): void;\n}\n\n/** File system abstraction for request handler factory, @see HttpHelpers.createRequestHandler */\nexport abstract class BaseObjectStore implements ObjectStore {\n protected readonly logger: Logger;\n\n constructor(options: ObjectStoreOptions) {\n this.logger = options.logger ?? (() => {});\n }\n\n /** Translate HTTP range to file range, @returns null if the range is not satisfiable */\n protected translate(fileSize: number, range?: HttpRange): FileRange | null {\n if (!range) return { start: 0, end: fileSize - 1 };\n switch (range.type) {\n case \"bounded\":\n if (range.end >= fileSize) return null;\n return { start: range.start, end: range.end };\n case \"offset\":\n if (range.offset >= fileSize) return null;\n return { start: range.offset, end: fileSize - 1 };\n case \"suffix\":\n if (range.suffix > fileSize) return null;\n return { start: fileSize - range.suffix, end: fileSize - 1 };\n }\n }\n\n /**\n * Proxy HTTP(S) request for parquet file to object store.\n * Callback promise resolves when stream is closed by handler @see HttpHelpers.createRequestHandler\n * Callback API is used so that ObjectStore can limit the number of concurrent requests.\n */\n abstract request(\n filename: ParquetFileName,\n params: {\n method: HttpMethod;\n range?: HttpRange;\n signal: AbortSignal;\n callback: (response: ObjectStoreResponse) => Promise<void>;\n },\n ): Promise<void>;\n}\n\n/** Configuration for {@link HttpHelpers.createCachingObjectStore} */\nexport type CacheConfig = {\n /** Filesystem path where the cache persists its data */\n cachePath: string;\n /** Hard total size budget in bytes; the cache self-stabilizes near this size */\n maxSizeBytes: number;\n /**\n * Max share of the budget a single file may occupy (0..1); when a file exceeds it, that\n * file's oldest ranges are evicted first. Stops one large scan from flushing the working set.\n */\n admissionFraction: number;\n /** Upper bound on previously-evicted (ghost) files remembered to guide readmission; resident files are already byte-bounded */\n maxFilesTracked: number;\n};\n\n/**\n * Cumulative cache event counters. Surfaced both as lifetime totals (persisted across restarts)\n * and as a per-process session view, @see CacheMetrics.\n */\nexport type CacheCounters = {\n /** Requests fully served from cache */\n hits: number;\n /** Requests that fell through to upstream */\n misses: number;\n /** Bytes served from cache */\n bytesServed: number;\n /**\n * Bytes requested by clients that were not cached; compare with {@link bytesFetched} for read-ahead\n * amplification.\n */\n bytesMissed: number;\n /** Bytes downloaded from upstream on misses, including read-ahead and read-behind */\n bytesFetched: number;\n /** Bytes evicted to keep the cache within its total size budget, @see CacheConfig.maxSizeBytes */\n bytesEvictedByBudget: number;\n /** Bytes evicted because a single file exceeded its allowed share of the budget, @see CacheConfig.admissionFraction */\n bytesEvictedByFileCap: number;\n /** Files promoted on observed reuse, so they are retained longer than first-time entries */\n promotions: number;\n /** Previously evicted files that were re-requested and readmitted */\n ghostReadmissions: number;\n};\n\n/** Snapshot of cache state and counters, @see CachingObjectStore.getMetrics */\nexport type CacheMetrics = {\n /** Current resident bytes */\n sizeBytes: number;\n /** Number of files with resident (cached) bytes */\n residentFiles: number;\n /** Number of previously-evicted (ghost) files remembered, <= @see CacheConfig.maxFilesTracked */\n ghostFiles: number;\n /** Counters cumulative across all sessions (persisted) */\n lifetime: CacheCounters;\n /** The same counters scoped to the current process */\n session: CacheCounters;\n};\n\n/**\n * Options for caching object store creation, @see HttpHelpers.createCachingObjectStore.\n * Standalone (not extending {@link ObjectStoreOptions}): a caching store is a decorator over\n * `upstream`, so source-store options do not apply to it.\n */\nexport interface CachingObjectStoreOptions {\n /** Upstream store consulted on cache misses */\n upstream: ObjectStore;\n /** Cache configuration */\n config: CacheConfig;\n /** Logger instance, no logging is performed when not provided */\n logger?: Logger;\n}\n\n/**\n * An {@link ObjectStore} that serves byte ranges from a persistent local cache, fetching misses\n * from an upstream store. This is the single handle for the cache: pass it as\n * {@link RequestHandlerOptions.store}, read {@link CachingObjectStore.getMetrics}, and dispose it\n * to release the cache, @see HttpHelpers.createCachingObjectStore.\n */\nexport interface CachingObjectStore extends ObjectStore, AsyncDisposable {\n /** Instantaneous cache state plus lifetime/session counters */\n getMetrics(): CacheMetrics;\n /** Drop all cached data and zero the counters (test/benchmark use) */\n reset(): Promise<void>;\n}\n\n/** Object store base URL in format accepted by Apache DataFusion and DuckDB */\nexport type ObjectStoreUrl = Branded<string, \"PFrameInternal.ObjectStoreUrl\">;\n\n/** HTTP(S) request handler creation options */\nexport type RequestHandlerOptions = {\n /**\n * Object store to serve files from. Compose caching by wrapping the upstream store with\n * {@link HttpHelpers.createCachingObjectStore} and passing the result here,\n * @see HttpHelpers.createFsStore\n */\n store: ObjectStore;\n};\n\n/** Server configuration options */\nexport type HttpServerOptions = {\n /** HTTP(S) request handler function, @see HttpHelpers.createRequestHandler */\n handler: RequestListener;\n /** Port to bind to, @default 0 for auto-assignment */\n port?: number;\n /** Do not apply authorization middleware to @param handler */\n noAuth?: true;\n /** Downgrade default HTTPS server to plain HTTP, @warning use only for testing */\n noHttps?: true;\n};\n\n/**\n * Long unique opaque string for use in Bearer authorization header\n *\n * @example\n * ```ts\n * request.setHeader('Authorization', `Bearer ${authToken}`);\n * ```\n */\nexport type HttpAuthorizationToken = Branded<string, \"PFrameInternal.HttpAuthorizationToken\">;\n\n/**\n * TLS certificate in PEM format\n *\n * @example\n * ```txt\n * -----BEGIN CERTIFICATE-----\n * MIIC2zCCAcOgAwIBAgIJaVW7...\n * ...\n * ...Yf9CRK8fgnukKM7TJ\n * -----END CERTIFICATE-----\n * ```\n */\nexport type PemCertificate = Branded<string, \"PFrameInternal.PemCertificate\">;\n\n/** HTTP(S) server connection settings, {@link HttpHelpers.createHttpServer} */\nexport type HttpServerInfo = {\n /** URL of the HTTP(S) server formatted as `http{s}://<host>:<port>/` */\n url: ObjectStoreUrl;\n /** Authorization token for Bearer scheme, undefined when @see HttpServerOptions.noAuth flag is set */\n authToken?: HttpAuthorizationToken;\n /** Encoded CA certificate of HTTPS server, undefined when @see HttpServerOptions.noHttps flag is set */\n encodedCaCert?: Base64Encoded<PemCertificate>;\n};\n\n/** HTTP(S) server information and controls, @see HttpHelpers.createHttpServer */\nexport interface HttpServer {\n /** Server configuration information for initiating connections from clients */\n get info(): HttpServerInfo;\n /** Promise that resolves when the server is stopped */\n get stopped(): Promise<void>;\n /** Request server stop, returns the same promise as @see HttpServer.stopped */\n stop(): Promise<void>;\n}\n\n/** List of HTTP(S) related helper functions exposed by PFrame module */\nexport interface HttpHelpers {\n /**\n * Create an object store for serving files from a local directory.\n * Rejects if the provided path does not exist or is not a directory.\n */\n createFsStore(options: FsStoreOptions): Promise<ObjectStore>;\n\n /**\n * Wrap an upstream object store in a persistent byte-range cache backed by SQLite.\n * The returned store is itself an {@link ObjectStore} (pass it to {@link createRequestHandler})\n * and additionally exposes metrics and reset. Dispose it to close the cache database.\n */\n createCachingObjectStore(options: CachingObjectStoreOptions): Promise<CachingObjectStore>;\n\n /**\n * Create an HTTP request handler for serving files from an object store.\n * Accepts only paths of the form `/<filename>.parquet`, returns 410 otherwise.\n * Assumes that files are immutable (and sets cache headers accordingly).\n */\n createRequestHandler(options: RequestHandlerOptions): RequestListener;\n\n /**\n * Serve HTTP(S) requests using the provided handler on localhost port.\n * @returns promise that resolves when the server has stopped.\n *\n * @example\n * ```ts\n * const rootDir = '/path/to/directory/with/parquet/files';\n *\n * let store = await HttpHelpers.createFsStore({ rootDir }).catch((err: unknown) => {\n * throw new Error(`Failed to create file store for ${rootDir} - ${ensureError(err)}`);\n * });\n *\n * const server = await HttpHelpers.createHttpServer({\n * handler: HttpHelpers.createRequestHandler({ store }),\n * }).catch((err: unknown) => {\n * throw new Error(`Failed to start HTTPS server - ${ensureError(err)}`);\n * });\n *\n * const { url, authToken, encodedCaCert } = server.info;\n *\n * await server.stop();\n * ```\n */\n createHttpServer(options: HttpServerOptions): Promise<HttpServer>;\n}\n"],"mappings":";;AAMA,MAAa,mBAAmB;;AA0HhC,IAAsB,kBAAtB,MAA6D;CAC3D;CAEA,YAAY,SAA6B;EACvC,KAAK,SAAS,QAAQ,iBAAiB,CAAC;CAC1C;;CAGA,UAAoB,UAAkB,OAAqC;EACzE,IAAI,CAAC,OAAO,OAAO;GAAE,OAAO;GAAG,KAAK,WAAW;EAAE;EACjD,QAAQ,MAAM,MAAd;GACE,KAAK;IACH,IAAI,MAAM,OAAO,UAAU,OAAO;IAClC,OAAO;KAAE,OAAO,MAAM;KAAO,KAAK,MAAM;IAAI;GAC9C,KAAK;IACH,IAAI,MAAM,UAAU,UAAU,OAAO;IACrC,OAAO;KAAE,OAAO,MAAM;KAAQ,KAAK,WAAW;IAAE;GAClD,KAAK;IACH,IAAI,MAAM,SAAS,UAAU,OAAO;IACpC,OAAO;KAAE,OAAO,WAAW,MAAM;KAAQ,KAAK,WAAW;IAAE;EAC/D;CACF;AAgBF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http_helpers.d.ts","names":[],"sources":["../../../src/pframe/internal_api/http_helpers.ts"],"mappings":";;;;;;;cAMa,gBAAA;AAAb;AAAA,KAGY,eAAA,GAAkB,
|
|
1
|
+
{"version":3,"file":"http_helpers.d.ts","names":[],"sources":["../../../src/pframe/internal_api/http_helpers.ts"],"mappings":";;;;;;;cAMa,gBAAA;AAAb;AAAA,KAGY,eAAA,GAAkB,OAAO;AAAA,KAEzB,SAAA;EALuC,sCAOjD,KAAA,UAJU;EAMV,GAAG;AAAA;;KAIO,SAAA;EARA;;;;AAIP;AAIL;;;;EAWM,IAAA,aAEA;EAAA,KAAA,UAcA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BAAA,GAA4B,OAAA,CAAQ,kBAAA;EAApC;;;;;EAOlC,oBAAA,CAAqB,OAAA,EAAS,qBAAA,GAAwB,eAAA;EAyBA;;;;;;;;;;;;;;;;;;;;;;;EAAtD,gBAAA,CAAiB,OAAA,EAAS,iBAAA,GAAoB,OAAA,CAAQ,UAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http_helpers.js","names":[],"sources":["../../../src/pframe/internal_api/http_helpers.ts"],"sourcesContent":["import type { Readable } from \"node:stream\";\nimport type { RequestListener } from \"node:http\";\nimport type { Branded, Base64Encoded } from \"@milaboratories/pl-model-common\";\nimport type { Logger } from \"./common\";\n\n/** Parquet file extension */\nexport const ParquetExtension = \".parquet\" as const;\n\n/** Parquet file name */\nexport type ParquetFileName = Branded<`${string}.parquet`, \"PFrameInternal.ParquetFileName\">;\n\nexport type FileRange = {\n /** Start byte position (inclusive) */\n start: number;\n /** End byte position (inclusive) */\n end: number;\n};\n\n/** HTTP range as of RFC 9110 <https://datatracker.ietf.org/doc/html/rfc9110#name-range> */\nexport type HttpRange =\n | {\n /**\n * Get file content in the specified byte range\n *\n * @example\n * ```\n * GET /file.parquet HTTP/1.1\n * Range: bytes=0-1023\n * ```\n */\n type: \"bounded\";\n /** Start byte position (inclusive) */\n start: number;\n /** End byte position (inclusive) */\n end: number;\n }\n | {\n /**\n * Get byte range starting from the specified offset\n *\n * @example\n * ```\n * GET /file.parquet HTTP/1.1\n * Range: bytes=1024-\n * ```\n */\n type: \"offset\";\n /** Start byte position (inclusive) */\n offset: number;\n }\n | {\n /**\n * Get byte range starting from the specified suffix\n *\n * @example\n * ```\n * GET /file.parquet HTTP/1.1\n * Range: bytes=-1024\n * ```\n */\n type: \"suffix\";\n /** End byte position (inclusive) */\n suffix: number;\n };\n\n/** HTTP method passed to object store */\nexport type HttpMethod = \"GET\" | \"HEAD\";\n\n/** HTTP response from object store */\nexport type ObjectStoreResponse =\n | {\n /**\n * Will be translated to 500 Internal Server Error by the handler\n * or 408 Request Timeout if the request was aborted\n */\n type: \"InternalError\";\n }\n | {\n /** Will be translated to 404 Not Found by the handler */\n type: \"NotFound\";\n }\n | {\n /** Will be translated to 416 Range Not Satisfiable by the handler */\n type: \"RangeNotSatisfiable\";\n /** Total file size in bytes */\n size: number;\n }\n | {\n /** Will be translated to 200 OK or 206 Partial Content by the handler */\n type: \"Ok\";\n /** Total file size in bytes */\n size: number;\n /** File range translated from HTTP range */\n range: FileRange;\n /** Stream of file content, undefined for HEAD requests */\n data?: Readable;\n };\n\n/** Common options for object store creation */\nexport interface ObjectStoreOptions {\n /** Logger instance, no logging is performed when not provided */\n logger?: Logger;\n}\n\n/** Options for file system object store creation */\nexport interface FsStoreOptions extends ObjectStoreOptions {\n /** Local directory to serve files from */\n rootDir: string;\n}\n\nexport interface ObjectStore {\n /**\n * Proxy HTTP(S) request for parquet file to object store.\n * Callback promise resolves when stream is closed by handler @see HttpHelpers.createRequestHandler\n * Callback API is used so that ObjectStore can limit the number of concurrent requests.\n */\n request(\n filename: ParquetFileName,\n params: {\n method: HttpMethod;\n range?: HttpRange;\n signal: AbortSignal;\n callback: (response: ObjectStoreResponse) => Promise<void>;\n },\n ): void;\n}\n\n/** File system abstraction for request handler factory, @see HttpHelpers.createRequestHandler */\nexport abstract class BaseObjectStore implements ObjectStore {\n protected readonly logger: Logger;\n\n constructor(options: ObjectStoreOptions) {\n this.logger = options.logger ?? (() => {});\n }\n\n /** Translate HTTP range to file range, @returns null if the range is not satisfiable */\n protected translate(fileSize: number, range?: HttpRange): FileRange | null {\n if (!range) return { start: 0, end: fileSize - 1 };\n switch (range.type) {\n case \"bounded\":\n if (range.end >= fileSize) return null;\n return { start: range.start, end: range.end };\n case \"offset\":\n if (range.offset >= fileSize) return null;\n return { start: range.offset, end: fileSize - 1 };\n case \"suffix\":\n if (range.suffix > fileSize) return null;\n return { start: fileSize - range.suffix, end: fileSize - 1 };\n }\n }\n\n /**\n * Proxy HTTP(S) request for parquet file to object store.\n * Callback promise resolves when stream is closed by handler @see HttpHelpers.createRequestHandler\n * Callback API is used so that ObjectStore can limit the number of concurrent requests.\n */\n abstract request(\n filename: ParquetFileName,\n params: {\n method: HttpMethod;\n range?: HttpRange;\n signal: AbortSignal;\n callback: (response: ObjectStoreResponse) => Promise<void>;\n },\n ): Promise<void>;\n}\n\n/** Configuration for {@link HttpHelpers.createCachingObjectStore} */\nexport type CacheConfig = {\n /** Filesystem path where the cache persists its data */\n cachePath: string;\n /** Hard total size budget in bytes; the cache self-stabilizes near this size */\n maxSizeBytes: number;\n /**\n * Max share of the budget a single file may occupy (0..1); when a file exceeds it, that\n * file's oldest ranges are evicted first. Stops one large scan from flushing the working set.\n */\n admissionFraction: number;\n /** Upper bound on previously-evicted (ghost) files remembered to guide readmission; resident files are already byte-bounded */\n maxFilesTracked: number;\n};\n\n/**\n * Cumulative cache event counters. Surfaced both as lifetime totals (persisted across restarts)\n * and as a per-process session view, @see CacheMetrics.\n */\nexport type CacheCounters = {\n /** Requests fully served from cache */\n hits: number;\n /** Requests that fell through to upstream */\n misses: number;\n /** Bytes served from cache */\n bytesServed: number;\n /**\n * Bytes requested by clients that were not cached; compare with {@link bytesFetched} for read-ahead\n * amplification.\n */\n bytesMissed: number;\n /** Bytes downloaded from upstream on misses, including read-ahead and read-behind */\n bytesFetched: number;\n /** Bytes evicted to keep the cache within its total size budget, @see CacheConfig.maxSizeBytes */\n bytesEvictedByBudget: number;\n /** Bytes evicted because a single file exceeded its allowed share of the budget, @see CacheConfig.admissionFraction */\n bytesEvictedByFileCap: number;\n /** Files promoted on observed reuse, so they are retained longer than first-time entries */\n promotions: number;\n /** Previously evicted files that were re-requested and readmitted */\n ghostReadmissions: number;\n};\n\n/** Snapshot of cache state and counters, @see CachingObjectStore.getMetrics */\nexport type CacheMetrics = {\n /** Current resident bytes */\n sizeBytes: number;\n /** Number of files with resident (cached) bytes */\n residentFiles: number;\n /** Number of previously-evicted (ghost) files remembered, <= @see CacheConfig.maxFilesTracked */\n ghostFiles: number;\n /** Counters cumulative across all sessions (persisted) */\n lifetime: CacheCounters;\n /** The same counters scoped to the current process */\n session: CacheCounters;\n};\n\n/**\n * Options for caching object store creation, @see HttpHelpers.createCachingObjectStore.\n * Standalone (not extending {@link ObjectStoreOptions}): a caching store is a decorator over\n * `upstream`, so source-store options do not apply to it.\n */\nexport interface CachingObjectStoreOptions {\n /** Upstream store consulted on cache misses */\n upstream: ObjectStore;\n /** Cache configuration */\n config: CacheConfig;\n /** Logger instance, no logging is performed when not provided */\n logger?: Logger;\n}\n\n/**\n * An {@link ObjectStore} that serves byte ranges from a persistent local cache, fetching misses\n * from an upstream store. This is the single handle for the cache: pass it as\n * {@link RequestHandlerOptions.store}, read {@link CachingObjectStore.getMetrics}, and dispose it\n * to release the cache, @see HttpHelpers.createCachingObjectStore.\n */\nexport interface CachingObjectStore extends ObjectStore, AsyncDisposable {\n /** Instantaneous cache state plus lifetime/session counters */\n getMetrics(): CacheMetrics;\n /** Drop all cached data and zero the counters (test/benchmark use) */\n reset(): Promise<void>;\n}\n\n/** Object store base URL in format accepted by Apache DataFusion and DuckDB */\nexport type ObjectStoreUrl = Branded<string, \"PFrameInternal.ObjectStoreUrl\">;\n\n/** HTTP(S) request handler creation options */\nexport type RequestHandlerOptions = {\n /**\n * Object store to serve files from. Compose caching by wrapping the upstream store with\n * {@link HttpHelpers.createCachingObjectStore} and passing the result here,\n * @see HttpHelpers.createFsStore\n */\n store: ObjectStore;\n};\n\n/** Server configuration options */\nexport type HttpServerOptions = {\n /** HTTP(S) request handler function, @see HttpHelpers.createRequestHandler */\n handler: RequestListener;\n /** Port to bind to, @default 0 for auto-assignment */\n port?: number;\n /** Do not apply authorization middleware to @param handler */\n noAuth?: true;\n /** Downgrade default HTTPS server to plain HTTP, @warning use only for testing */\n noHttps?: true;\n};\n\n/**\n * Long unique opaque string for use in Bearer authorization header\n *\n * @example\n * ```ts\n * request.setHeader('Authorization', `Bearer ${authToken}`);\n * ```\n */\nexport type HttpAuthorizationToken = Branded<string, \"PFrameInternal.HttpAuthorizationToken\">;\n\n/**\n * TLS certificate in PEM format\n *\n * @example\n * ```txt\n * -----BEGIN CERTIFICATE-----\n * MIIC2zCCAcOgAwIBAgIJaVW7...\n * ...\n * ...Yf9CRK8fgnukKM7TJ\n * -----END CERTIFICATE-----\n * ```\n */\nexport type PemCertificate = Branded<string, \"PFrameInternal.PemCertificate\">;\n\n/** HTTP(S) server connection settings, {@link HttpHelpers.createHttpServer} */\nexport type HttpServerInfo = {\n /** URL of the HTTP(S) server formatted as `http{s}://<host>:<port>/` */\n url: ObjectStoreUrl;\n /** Authorization token for Bearer scheme, undefined when @see HttpServerOptions.noAuth flag is set */\n authToken?: HttpAuthorizationToken;\n /** Encoded CA certificate of HTTPS server, undefined when @see HttpServerOptions.noHttps flag is set */\n encodedCaCert?: Base64Encoded<PemCertificate>;\n};\n\n/** HTTP(S) server information and controls, @see HttpHelpers.createHttpServer */\nexport interface HttpServer {\n /** Server configuration information for initiating connections from clients */\n get info(): HttpServerInfo;\n /** Promise that resolves when the server is stopped */\n get stopped(): Promise<void>;\n /** Request server stop, returns the same promise as @see HttpServer.stopped */\n stop(): Promise<void>;\n}\n\n/** List of HTTP(S) related helper functions exposed by PFrame module */\nexport interface HttpHelpers {\n /**\n * Create an object store for serving files from a local directory.\n * Rejects if the provided path does not exist or is not a directory.\n */\n createFsStore(options: FsStoreOptions): Promise<ObjectStore>;\n\n /**\n * Wrap an upstream object store in a persistent byte-range cache backed by SQLite.\n * The returned store is itself an {@link ObjectStore} (pass it to {@link createRequestHandler})\n * and additionally exposes metrics and reset. Dispose it to close the cache database.\n */\n createCachingObjectStore(options: CachingObjectStoreOptions): Promise<CachingObjectStore>;\n\n /**\n * Create an HTTP request handler for serving files from an object store.\n * Accepts only paths of the form `/<filename>.parquet`, returns 410 otherwise.\n * Assumes that files are immutable (and sets cache headers accordingly).\n */\n createRequestHandler(options: RequestHandlerOptions): RequestListener;\n\n /**\n * Serve HTTP(S) requests using the provided handler on localhost port.\n * @returns promise that resolves when the server has stopped.\n *\n * @example\n * ```ts\n * const rootDir = '/path/to/directory/with/parquet/files';\n *\n * let store = await HttpHelpers.createFsStore({ rootDir }).catch((err: unknown) => {\n * throw new Error(`Failed to create file store for ${rootDir} - ${ensureError(err)}`);\n * });\n *\n * const server = await HttpHelpers.createHttpServer({\n * handler: HttpHelpers.createRequestHandler({ store }),\n * }).catch((err: unknown) => {\n * throw new Error(`Failed to start HTTPS server - ${ensureError(err)}`);\n * });\n *\n * const { url, authToken, encodedCaCert } = server.info;\n *\n * await server.stop();\n * ```\n */\n createHttpServer(options: HttpServerOptions): Promise<HttpServer>;\n}\n"],"mappings":";;AAMA,MAAa,mBAAmB;;AA0HhC,IAAsB,kBAAtB,MAA6D;CAC3D;CAEA,YAAY,SAA6B;AACvC,OAAK,SAAS,QAAQ,iBAAiB;;;CAIzC,UAAoB,UAAkB,OAAqC;AACzE,MAAI,CAAC,MAAO,QAAO;GAAE,OAAO;GAAG,KAAK,WAAW;GAAG;AAClD,UAAQ,MAAM,MAAd;GACE,KAAK;AACH,QAAI,MAAM,OAAO,SAAU,QAAO;AAClC,WAAO;KAAE,OAAO,MAAM;KAAO,KAAK,MAAM;KAAK;GAC/C,KAAK;AACH,QAAI,MAAM,UAAU,SAAU,QAAO;AACrC,WAAO;KAAE,OAAO,MAAM;KAAQ,KAAK,WAAW;KAAG;GACnD,KAAK;AACH,QAAI,MAAM,SAAS,SAAU,QAAO;AACpC,WAAO;KAAE,OAAO,WAAW,MAAM;KAAQ,KAAK,WAAW;KAAG"}
|
|
1
|
+
{"version":3,"file":"http_helpers.js","names":[],"sources":["../../../src/pframe/internal_api/http_helpers.ts"],"sourcesContent":["import type { Readable } from \"node:stream\";\nimport type { RequestListener } from \"node:http\";\nimport type { Branded, Base64Encoded } from \"@milaboratories/pl-model-common\";\nimport type { Logger } from \"./common\";\n\n/** Parquet file extension */\nexport const ParquetExtension = \".parquet\" as const;\n\n/** Parquet file name */\nexport type ParquetFileName = Branded<`${string}.parquet`, \"PFrameInternal.ParquetFileName\">;\n\nexport type FileRange = {\n /** Start byte position (inclusive) */\n start: number;\n /** End byte position (inclusive) */\n end: number;\n};\n\n/** HTTP range as of RFC 9110 <https://datatracker.ietf.org/doc/html/rfc9110#name-range> */\nexport type HttpRange =\n | {\n /**\n * Get file content in the specified byte range\n *\n * @example\n * ```\n * GET /file.parquet HTTP/1.1\n * Range: bytes=0-1023\n * ```\n */\n type: \"bounded\";\n /** Start byte position (inclusive) */\n start: number;\n /** End byte position (inclusive) */\n end: number;\n }\n | {\n /**\n * Get byte range starting from the specified offset\n *\n * @example\n * ```\n * GET /file.parquet HTTP/1.1\n * Range: bytes=1024-\n * ```\n */\n type: \"offset\";\n /** Start byte position (inclusive) */\n offset: number;\n }\n | {\n /**\n * Get byte range starting from the specified suffix\n *\n * @example\n * ```\n * GET /file.parquet HTTP/1.1\n * Range: bytes=-1024\n * ```\n */\n type: \"suffix\";\n /** End byte position (inclusive) */\n suffix: number;\n };\n\n/** HTTP method passed to object store */\nexport type HttpMethod = \"GET\" | \"HEAD\";\n\n/** HTTP response from object store */\nexport type ObjectStoreResponse =\n | {\n /**\n * Will be translated to 500 Internal Server Error by the handler\n * or 408 Request Timeout if the request was aborted\n */\n type: \"InternalError\";\n }\n | {\n /** Will be translated to 404 Not Found by the handler */\n type: \"NotFound\";\n }\n | {\n /** Will be translated to 416 Range Not Satisfiable by the handler */\n type: \"RangeNotSatisfiable\";\n /** Total file size in bytes */\n size: number;\n }\n | {\n /** Will be translated to 200 OK or 206 Partial Content by the handler */\n type: \"Ok\";\n /** Total file size in bytes */\n size: number;\n /** File range translated from HTTP range */\n range: FileRange;\n /** Stream of file content, undefined for HEAD requests */\n data?: Readable;\n };\n\n/** Common options for object store creation */\nexport interface ObjectStoreOptions {\n /** Logger instance, no logging is performed when not provided */\n logger?: Logger;\n}\n\n/** Options for file system object store creation */\nexport interface FsStoreOptions extends ObjectStoreOptions {\n /** Local directory to serve files from */\n rootDir: string;\n}\n\nexport interface ObjectStore {\n /**\n * Proxy HTTP(S) request for parquet file to object store.\n * Callback promise resolves when stream is closed by handler @see HttpHelpers.createRequestHandler\n * Callback API is used so that ObjectStore can limit the number of concurrent requests.\n */\n request(\n filename: ParquetFileName,\n params: {\n method: HttpMethod;\n range?: HttpRange;\n signal: AbortSignal;\n callback: (response: ObjectStoreResponse) => Promise<void>;\n },\n ): void;\n}\n\n/** File system abstraction for request handler factory, @see HttpHelpers.createRequestHandler */\nexport abstract class BaseObjectStore implements ObjectStore {\n protected readonly logger: Logger;\n\n constructor(options: ObjectStoreOptions) {\n this.logger = options.logger ?? (() => {});\n }\n\n /** Translate HTTP range to file range, @returns null if the range is not satisfiable */\n protected translate(fileSize: number, range?: HttpRange): FileRange | null {\n if (!range) return { start: 0, end: fileSize - 1 };\n switch (range.type) {\n case \"bounded\":\n if (range.end >= fileSize) return null;\n return { start: range.start, end: range.end };\n case \"offset\":\n if (range.offset >= fileSize) return null;\n return { start: range.offset, end: fileSize - 1 };\n case \"suffix\":\n if (range.suffix > fileSize) return null;\n return { start: fileSize - range.suffix, end: fileSize - 1 };\n }\n }\n\n /**\n * Proxy HTTP(S) request for parquet file to object store.\n * Callback promise resolves when stream is closed by handler @see HttpHelpers.createRequestHandler\n * Callback API is used so that ObjectStore can limit the number of concurrent requests.\n */\n abstract request(\n filename: ParquetFileName,\n params: {\n method: HttpMethod;\n range?: HttpRange;\n signal: AbortSignal;\n callback: (response: ObjectStoreResponse) => Promise<void>;\n },\n ): Promise<void>;\n}\n\n/** Configuration for {@link HttpHelpers.createCachingObjectStore} */\nexport type CacheConfig = {\n /** Filesystem path where the cache persists its data */\n cachePath: string;\n /** Hard total size budget in bytes; the cache self-stabilizes near this size */\n maxSizeBytes: number;\n /**\n * Max share of the budget a single file may occupy (0..1); when a file exceeds it, that\n * file's oldest ranges are evicted first. Stops one large scan from flushing the working set.\n */\n admissionFraction: number;\n /** Upper bound on previously-evicted (ghost) files remembered to guide readmission; resident files are already byte-bounded */\n maxFilesTracked: number;\n};\n\n/**\n * Cumulative cache event counters. Surfaced both as lifetime totals (persisted across restarts)\n * and as a per-process session view, @see CacheMetrics.\n */\nexport type CacheCounters = {\n /** Requests fully served from cache */\n hits: number;\n /** Requests that fell through to upstream */\n misses: number;\n /** Bytes served from cache */\n bytesServed: number;\n /**\n * Bytes requested by clients that were not cached; compare with {@link bytesFetched} for read-ahead\n * amplification.\n */\n bytesMissed: number;\n /** Bytes downloaded from upstream on misses, including read-ahead and read-behind */\n bytesFetched: number;\n /** Bytes evicted to keep the cache within its total size budget, @see CacheConfig.maxSizeBytes */\n bytesEvictedByBudget: number;\n /** Bytes evicted because a single file exceeded its allowed share of the budget, @see CacheConfig.admissionFraction */\n bytesEvictedByFileCap: number;\n /** Files promoted on observed reuse, so they are retained longer than first-time entries */\n promotions: number;\n /** Previously evicted files that were re-requested and readmitted */\n ghostReadmissions: number;\n};\n\n/** Snapshot of cache state and counters, @see CachingObjectStore.getMetrics */\nexport type CacheMetrics = {\n /** Current resident bytes */\n sizeBytes: number;\n /** Number of files with resident (cached) bytes */\n residentFiles: number;\n /** Number of previously-evicted (ghost) files remembered, <= @see CacheConfig.maxFilesTracked */\n ghostFiles: number;\n /** Counters cumulative across all sessions (persisted) */\n lifetime: CacheCounters;\n /** The same counters scoped to the current process */\n session: CacheCounters;\n};\n\n/**\n * Options for caching object store creation, @see HttpHelpers.createCachingObjectStore.\n * Standalone (not extending {@link ObjectStoreOptions}): a caching store is a decorator over\n * `upstream`, so source-store options do not apply to it.\n */\nexport interface CachingObjectStoreOptions {\n /** Upstream store consulted on cache misses */\n upstream: ObjectStore;\n /** Cache configuration */\n config: CacheConfig;\n /** Logger instance, no logging is performed when not provided */\n logger?: Logger;\n}\n\n/**\n * An {@link ObjectStore} that serves byte ranges from a persistent local cache, fetching misses\n * from an upstream store. This is the single handle for the cache: pass it as\n * {@link RequestHandlerOptions.store}, read {@link CachingObjectStore.getMetrics}, and dispose it\n * to release the cache, @see HttpHelpers.createCachingObjectStore.\n */\nexport interface CachingObjectStore extends ObjectStore, AsyncDisposable {\n /** Instantaneous cache state plus lifetime/session counters */\n getMetrics(): CacheMetrics;\n /** Drop all cached data and zero the counters (test/benchmark use) */\n reset(): Promise<void>;\n}\n\n/** Object store base URL in format accepted by Apache DataFusion and DuckDB */\nexport type ObjectStoreUrl = Branded<string, \"PFrameInternal.ObjectStoreUrl\">;\n\n/** HTTP(S) request handler creation options */\nexport type RequestHandlerOptions = {\n /**\n * Object store to serve files from. Compose caching by wrapping the upstream store with\n * {@link HttpHelpers.createCachingObjectStore} and passing the result here,\n * @see HttpHelpers.createFsStore\n */\n store: ObjectStore;\n};\n\n/** Server configuration options */\nexport type HttpServerOptions = {\n /** HTTP(S) request handler function, @see HttpHelpers.createRequestHandler */\n handler: RequestListener;\n /** Port to bind to, @default 0 for auto-assignment */\n port?: number;\n /** Do not apply authorization middleware to @param handler */\n noAuth?: true;\n /** Downgrade default HTTPS server to plain HTTP, @warning use only for testing */\n noHttps?: true;\n};\n\n/**\n * Long unique opaque string for use in Bearer authorization header\n *\n * @example\n * ```ts\n * request.setHeader('Authorization', `Bearer ${authToken}`);\n * ```\n */\nexport type HttpAuthorizationToken = Branded<string, \"PFrameInternal.HttpAuthorizationToken\">;\n\n/**\n * TLS certificate in PEM format\n *\n * @example\n * ```txt\n * -----BEGIN CERTIFICATE-----\n * MIIC2zCCAcOgAwIBAgIJaVW7...\n * ...\n * ...Yf9CRK8fgnukKM7TJ\n * -----END CERTIFICATE-----\n * ```\n */\nexport type PemCertificate = Branded<string, \"PFrameInternal.PemCertificate\">;\n\n/** HTTP(S) server connection settings, {@link HttpHelpers.createHttpServer} */\nexport type HttpServerInfo = {\n /** URL of the HTTP(S) server formatted as `http{s}://<host>:<port>/` */\n url: ObjectStoreUrl;\n /** Authorization token for Bearer scheme, undefined when @see HttpServerOptions.noAuth flag is set */\n authToken?: HttpAuthorizationToken;\n /** Encoded CA certificate of HTTPS server, undefined when @see HttpServerOptions.noHttps flag is set */\n encodedCaCert?: Base64Encoded<PemCertificate>;\n};\n\n/** HTTP(S) server information and controls, @see HttpHelpers.createHttpServer */\nexport interface HttpServer {\n /** Server configuration information for initiating connections from clients */\n get info(): HttpServerInfo;\n /** Promise that resolves when the server is stopped */\n get stopped(): Promise<void>;\n /** Request server stop, returns the same promise as @see HttpServer.stopped */\n stop(): Promise<void>;\n}\n\n/** List of HTTP(S) related helper functions exposed by PFrame module */\nexport interface HttpHelpers {\n /**\n * Create an object store for serving files from a local directory.\n * Rejects if the provided path does not exist or is not a directory.\n */\n createFsStore(options: FsStoreOptions): Promise<ObjectStore>;\n\n /**\n * Wrap an upstream object store in a persistent byte-range cache backed by SQLite.\n * The returned store is itself an {@link ObjectStore} (pass it to {@link createRequestHandler})\n * and additionally exposes metrics and reset. Dispose it to close the cache database.\n */\n createCachingObjectStore(options: CachingObjectStoreOptions): Promise<CachingObjectStore>;\n\n /**\n * Create an HTTP request handler for serving files from an object store.\n * Accepts only paths of the form `/<filename>.parquet`, returns 410 otherwise.\n * Assumes that files are immutable (and sets cache headers accordingly).\n */\n createRequestHandler(options: RequestHandlerOptions): RequestListener;\n\n /**\n * Serve HTTP(S) requests using the provided handler on localhost port.\n * @returns promise that resolves when the server has stopped.\n *\n * @example\n * ```ts\n * const rootDir = '/path/to/directory/with/parquet/files';\n *\n * let store = await HttpHelpers.createFsStore({ rootDir }).catch((err: unknown) => {\n * throw new Error(`Failed to create file store for ${rootDir} - ${ensureError(err)}`);\n * });\n *\n * const server = await HttpHelpers.createHttpServer({\n * handler: HttpHelpers.createRequestHandler({ store }),\n * }).catch((err: unknown) => {\n * throw new Error(`Failed to start HTTPS server - ${ensureError(err)}`);\n * });\n *\n * const { url, authToken, encodedCaCert } = server.info;\n *\n * await server.stop();\n * ```\n */\n createHttpServer(options: HttpServerOptions): Promise<HttpServer>;\n}\n"],"mappings":";;AAMA,MAAa,mBAAmB;;AA0HhC,IAAsB,kBAAtB,MAA6D;CAC3D;CAEA,YAAY,SAA6B;EACvC,KAAK,SAAS,QAAQ,iBAAiB,CAAC;CAC1C;;CAGA,UAAoB,UAAkB,OAAqC;EACzE,IAAI,CAAC,OAAO,OAAO;GAAE,OAAO;GAAG,KAAK,WAAW;EAAE;EACjD,QAAQ,MAAM,MAAd;GACE,KAAK;IACH,IAAI,MAAM,OAAO,UAAU,OAAO;IAClC,OAAO;KAAE,OAAO,MAAM;KAAO,KAAK,MAAM;IAAI;GAC9C,KAAK;IACH,IAAI,MAAM,UAAU,UAAU,OAAO;IACrC,OAAO;KAAE,OAAO,MAAM;KAAQ,KAAK,WAAW;IAAE;GAClD,KAAK;IACH,IAAI,MAAM,SAAS,UAAU,OAAO;IACpC,OAAO;KAAE,OAAO,WAAW,MAAM;KAAQ,KAAK,WAAW;IAAE;EAC/D;CACF;AAgBF"}
|
|
@@ -9,6 +9,10 @@ var internal_api_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
9
9
|
SpecExtension: () => require_api_factory.SpecExtension
|
|
10
10
|
});
|
|
11
11
|
//#endregion
|
|
12
|
+
exports.BaseObjectStore = require_http_helpers.BaseObjectStore;
|
|
13
|
+
exports.DataInfoExtension = require_api_factory.DataInfoExtension;
|
|
14
|
+
exports.ParquetExtension = require_http_helpers.ParquetExtension;
|
|
15
|
+
exports.SpecExtension = require_api_factory.SpecExtension;
|
|
12
16
|
Object.defineProperty(exports, "internal_api_exports", {
|
|
13
17
|
enumerable: true,
|
|
14
18
|
get: function() {
|