@prisma/orm-framework 8.0.0-rc.2-dev.3 → 8.0.0-rc.20-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -5
- package/dist/{apply-specifier-default-control-policy-CAxiXxKg.d.mts → apply-specifier-default-control-policy-Dlz0iwnK.d.mts} +2 -2
- package/dist/apply-specifier-default-control-policy-Dlz0iwnK.d.mts.map +1 -0
- package/dist/{assertions-Cz-GWH8P.mjs → assertions-Dw1lZz_Q.mjs} +2 -2
- package/dist/{assertions-Cz-GWH8P.mjs.map → assertions-Dw1lZz_Q.mjs.map} +1 -1
- package/dist/authoring-CNUti739.mjs +764 -0
- package/dist/authoring-CNUti739.mjs.map +1 -0
- package/dist/authoring-CjwinhU5.d.mts +206 -0
- package/dist/authoring-CjwinhU5.d.mts.map +1 -0
- package/dist/binder-D_4RBHbt-BJ6VKwEZ.d.mts +515 -0
- package/dist/binder-D_4RBHbt-BJ6VKwEZ.d.mts.map +1 -0
- package/dist/{canonicalization-DFpB09nP-4OdB2nsy.d.mts → canonicalization-CyrrXGmj-CeKUkht1.d.mts} +3 -3
- package/dist/{canonicalization-DFpB09nP-4OdB2nsy.d.mts.map → canonicalization-CyrrXGmj-CeKUkht1.d.mts.map} +1 -1
- package/dist/{hashing-utils-DQgS3nOe.mjs → canonicalization-path-match-D88xLEq6-BFQC39ZG.mjs} +23 -3
- package/dist/canonicalization-path-match-D88xLEq6-BFQC39ZG.mjs.map +1 -0
- package/dist/{utils-DMAM0unR.mjs → canonicalize-json-ZPawceQR-Dua1VNEB.mjs} +2 -2
- package/dist/canonicalize-json-ZPawceQR-Dua1VNEB.mjs.map +1 -0
- package/dist/codec-B4ypaota.d.mts +289 -0
- package/dist/codec-B4ypaota.d.mts.map +1 -0
- package/dist/codec-Do8tfXqk.mjs +457 -0
- package/dist/codec-Do8tfXqk.mjs.map +1 -0
- package/dist/codec-descriptor-D0oY-hgs-C5e11ola.mjs +93 -0
- package/dist/codec-descriptor-D0oY-hgs-C5e11ola.mjs.map +1 -0
- package/dist/codec-types-BXLUbk-Y-DpGfKGK0.mjs +22 -0
- package/dist/codec-types-BXLUbk-Y-DpGfKGK0.mjs.map +1 -0
- package/dist/codec-types-CPgEZoIq-BL9hisr8.d.mts +384 -0
- package/dist/codec-types-CPgEZoIq-BL9hisr8.d.mts.map +1 -0
- package/dist/{components-dZRz3T5y.mjs → components-BaV9iCkq.mjs} +34 -3
- package/dist/components-BaV9iCkq.mjs.map +1 -0
- package/dist/components-CRBcIta_.d.mts +86 -0
- package/dist/components-CRBcIta_.d.mts.map +1 -0
- package/dist/components.d.mts +19 -17
- package/dist/components.mjs +16 -12
- package/dist/components__authoring.d.mts +4 -3
- package/dist/components__authoring.mjs +3 -2
- package/dist/components__codec.d.mts +3 -3
- package/dist/components__codec.mjs +6 -4
- package/dist/components__components.d.mts +6 -4
- package/dist/components__components.mjs +4 -3
- package/dist/components__control.d.mts +5 -4
- package/dist/components__control.mjs +3 -2
- package/dist/components__emission.d.mts +4 -4
- package/dist/components__execution.d.mts +1 -1
- package/dist/components__ir.d.mts +1 -1
- package/dist/components__ir.mjs +2 -1
- package/dist/components__psl-ast.d.mts +4 -4
- package/dist/components__psl-ast.mjs +2 -2
- package/dist/components__runtime.d.mts +3 -2
- package/dist/components__runtime.mjs +2 -2
- package/dist/components__utils.mjs +1 -1
- package/dist/{config-types-CW4PDwMC.d.mts → config-types-BTFT7QfJ.d.mts} +73 -41
- package/dist/config-types-BTFT7QfJ.d.mts.map +1 -0
- package/dist/config-types-D0mYyP62.mjs +61 -0
- package/dist/config-types-D0mYyP62.mjs.map +1 -0
- package/dist/config.d.mts +2 -3
- package/dist/config.mjs +2 -3
- package/dist/config__config-types.d.mts +2 -2
- package/dist/config__config-types.mjs +2 -2
- package/dist/contract-authoring.d.mts +152 -17
- package/dist/contract-authoring.d.mts.map +1 -1
- package/dist/contract-authoring.mjs +190 -9
- package/dist/contract-authoring.mjs.map +1 -1
- package/dist/{contract-types-CkdMH7F7-9EHXSwbH.d.mts → contract-types-DEIEpzU_-DvAVuBr5.d.mts} +14 -8
- package/dist/contract-types-DEIEpzU_-DvAVuBr5.d.mts.map +1 -0
- package/dist/{contract-validation-error-DEiWp_EI-CRwtUgRw.mjs → contract-validation-error-CAnTGhkt-DSnujRaK.mjs} +6 -3
- package/dist/contract-validation-error-CAnTGhkt-DSnujRaK.mjs.map +1 -0
- package/dist/{contract-validation-error-R7cMoK04.d.mts → contract-validation-error-D1QAeOh5.d.mts} +4 -2
- package/dist/contract-validation-error-D1QAeOh5.d.mts.map +1 -0
- package/dist/contract.d.mts +13 -12
- package/dist/contract.mjs +9 -9
- package/dist/contract__apply-specifier-default-control-policy.d.mts +1 -1
- package/dist/contract__contract-validation-error.d.mts +1 -1
- package/dist/contract__contract-validation-error.mjs +1 -1
- package/dist/contract__default-namespace.mjs +1 -1
- package/dist/contract__enum-accessor.d.mts +2 -2
- package/dist/contract__enum-accessor.mjs +1 -1
- package/dist/contract__hashing-utils.d.mts +2 -2
- package/dist/contract__hashing-utils.mjs +2 -3
- package/dist/contract__hashing.d.mts +3 -3
- package/dist/contract__hashing.mjs +2 -2
- package/dist/contract__resolve-domain-model.d.mts +1 -1
- package/dist/contract__types.d.mts +5 -5
- package/dist/contract__types.mjs +3 -3
- package/dist/contract__validate-domain.d.mts +1 -1
- package/dist/contract__validate-domain.mjs +1 -1
- package/dist/contract__validate-once.d.mts +2 -0
- package/dist/contract__validate-once.mjs +2 -0
- package/dist/{control-ql9N9u4f-r3Vv41kZ.d.mts → control-B5ezUWD2-BIAYxeSk.d.mts} +34 -6
- package/dist/control-B5ezUWD2-BIAYxeSk.d.mts.map +1 -0
- package/dist/{control-DLEm6u5m.mjs → control-DMJqhnwU.mjs} +309 -36
- package/dist/control-DMJqhnwU.mjs.map +1 -0
- package/dist/control-DrDTlxCS.d.mts +1 -0
- package/dist/{control-BD96JZi8-NUhO5Kkw.mjs → control-KsXr4fYD-D2Ows0NI.mjs} +70 -24
- package/dist/control-KsXr4fYD-D2Ows0NI.mjs.map +1 -0
- package/dist/{control-BF8qzdnM.d.mts → control-s5ECUABR.d.mts} +635 -156
- package/dist/control-s5ECUABR.d.mts.map +1 -0
- package/dist/data-type-V6mcDhcG-DVQAPOQT.mjs +275 -0
- package/dist/data-type-V6mcDhcG-DVQAPOQT.mjs.map +1 -0
- package/dist/declarations-BgUAq1RG-Dz_-EI1Q.mjs +459 -0
- package/dist/declarations-BgUAq1RG-Dz_-EI1Q.mjs.map +1 -0
- package/dist/{default-namespace-D4vCwkXg-lzVN7gSc.mjs → default-namespace-D4vCwkXg-BEZbN38y.mjs} +2 -2
- package/dist/{default-namespace-D4vCwkXg-lzVN7gSc.mjs.map → default-namespace-D4vCwkXg-BEZbN38y.mjs.map} +1 -1
- package/dist/{dist-Dqbo77p7.mjs → dist-D1f6xr7F.mjs} +51 -24
- package/dist/dist-D1f6xr7F.mjs.map +1 -0
- package/dist/{domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts → domain-envelope-CN721GnP-4huRt7Wc.d.mts} +27 -13
- package/dist/domain-envelope-CN721GnP-4huRt7Wc.d.mts.map +1 -0
- package/dist/emission-BtJvV97M.d.mts +2 -0
- package/dist/{emission-types-DLXP34Ki-CFms3VrX.d.mts → emission-types-B-jKEbjI-D7BW8Gk1.d.mts} +17 -16
- package/dist/emission-types-B-jKEbjI-D7BW8Gk1.d.mts.map +1 -0
- package/dist/enum-accessor-2OZgavDX.d.mts +104 -0
- package/dist/enum-accessor-2OZgavDX.d.mts.map +1 -0
- package/dist/enum-accessor-B-A2wNok.mjs +122 -0
- package/dist/enum-accessor-B-A2wNok.mjs.map +1 -0
- package/dist/errors.d.mts +5 -4
- package/dist/errors.mjs +4 -4
- package/dist/errors__control.d.mts +3 -2
- package/dist/errors__control.mjs +2 -2
- package/dist/errors__execution.d.mts +2 -2
- package/dist/errors__execution.mjs +2 -2
- package/dist/errors__migration.d.mts +2 -2
- package/dist/errors__migration.mjs +2 -2
- package/dist/execution-CjX5CCTb.d.mts +76 -0
- package/dist/execution-CjX5CCTb.d.mts.map +1 -0
- package/dist/{execution-CSnQT8EX.d.mts → execution-lMPVFj5o.d.mts} +2 -2
- package/dist/{execution-CSnQT8EX.d.mts.map → execution-lMPVFj5o.d.mts.map} +1 -1
- package/dist/execution-vfY4d-SZ.mjs +138 -0
- package/dist/execution-vfY4d-SZ.mjs.map +1 -0
- package/dist/{declarations-DR6To8_k-BFwkCGeP.mjs → expressions-CMQzbnHk-BL2zN0Iv.mjs} +199 -350
- package/dist/expressions-CMQzbnHk-BL2zN0Iv.mjs.map +1 -0
- package/dist/framework-authoring-DDxddXZm-uZYdhoE0.d.mts +1096 -0
- package/dist/framework-authoring-DDxddXZm-uZYdhoE0.d.mts.map +1 -0
- package/dist/{framework-components-hZ2tO-KH-CdRXBOYd.d.mts → framework-components-DKoQnPdB-lax1COaf.d.mts} +28 -91
- package/dist/framework-components-DKoQnPdB-lax1COaf.d.mts.map +1 -0
- package/dist/generator-functions-CXbQfvYu-BIFU1Ryx.mjs +271 -0
- package/dist/generator-functions-CXbQfvYu-BIFU1Ryx.mjs.map +1 -0
- package/dist/{hash-content-DwEUh-Rx.d.mts → hash-content-Bde14N2-.d.mts} +2 -2
- package/dist/{hash-content-DwEUh-Rx.d.mts.map → hash-content-Bde14N2-.d.mts.map} +1 -1
- package/dist/{hash-content-Bugg_nZn.mjs → hash-content-Bdl-HSfq.mjs} +2 -2
- package/dist/hash-content-Bdl-HSfq.mjs.map +1 -0
- package/dist/{hashing-BtIZVNYX.mjs → hashing-CLRfNAxh.mjs} +28 -9
- package/dist/hashing-CLRfNAxh.mjs.map +1 -0
- package/dist/hashing-D-DHz0zl.d.mts +36 -0
- package/dist/hashing-D-DHz0zl.d.mts.map +1 -0
- package/dist/{hashing-utils-qKu59RSC.d.mts → hashing-utils-DiGHKd3b.d.mts} +4 -3
- package/dist/{hashing-utils-qKu59RSC.d.mts.map → hashing-utils-DiGHKd3b.d.mts.map} +1 -1
- package/dist/ids.d.mts +90 -13
- package/dist/ids.d.mts.map +1 -1
- package/dist/ids.mjs +45 -59
- package/dist/ids.mjs.map +1 -1
- package/dist/ids__runtime.d.mts +1 -1
- package/dist/ids__runtime.mjs +1 -1
- package/dist/{index-CDk9yEbw.d.mts → index-MU-ksXsh.d.mts} +23 -6
- package/dist/index-MU-ksXsh.d.mts.map +1 -0
- package/dist/{internal-error-kK8QvlDE.d.mts → internal-error-2fJ9fcZX.d.mts} +2 -2
- package/dist/{internal-error-kK8QvlDE.d.mts.map → internal-error-2fJ9fcZX.d.mts.map} +1 -1
- package/dist/{internal-error-BIc-ehme-ouBQPoEL.mjs → internal-error-ChGYPVpq-DhUD05u0.mjs} +3 -3
- package/dist/internal-error-ChGYPVpq-DhUD05u0.mjs.map +1 -0
- package/dist/{ir-BvE7L9FK.d.mts → ir-LV4tXsw3.d.mts} +6 -5
- package/dist/{ir-BvE7L9FK.d.mts.map → ir-LV4tXsw3.d.mts.map} +1 -1
- package/dist/{ir-ChmSSAhX.mjs → ir-uDGU9vaj.mjs} +7 -53
- package/dist/ir-uDGU9vaj.mjs.map +1 -0
- package/dist/{migration-BvrgDZXw.d.mts → migration-Dluwnqe9.d.mts} +20 -3
- package/dist/migration-Dluwnqe9.d.mts.map +1 -0
- package/dist/{migration-C57VKLUY.mjs → migration-uC-bSKA4.mjs} +30 -4
- package/dist/migration-uC-bSKA4.mjs.map +1 -0
- package/dist/namespace-VUH2dgnS-By5y75h9.mjs +53 -0
- package/dist/namespace-VUH2dgnS-By5y75h9.mjs.map +1 -0
- package/dist/operations.mjs +1 -1
- package/dist/{parse-GbZGfMUj-BFSrD2AN.mjs → parse-bZgfjovA-BNgYhylT.mjs} +311 -55
- package/dist/parse-bZgfjovA-BNgYhylT.mjs.map +1 -0
- package/dist/{parse-0ZJjj_2N-DhQpSVmQ.d.mts → parse-djL5wker-B610mXG4.d.mts} +181 -52
- package/dist/parse-djL5wker-B610mXG4.d.mts.map +1 -0
- package/dist/psl-ast-COcYtLlz.d.mts +2 -0
- package/dist/psl-ast-CyvE6CR-.mjs +116 -0
- package/dist/psl-ast-CyvE6CR-.mjs.map +1 -0
- package/dist/{psl-ast-CWJQF8LA-Vr5JNPdn.d.mts → psl-ast-rY25o3Ze-ClLY3CYt.d.mts} +10 -40
- package/dist/psl-ast-rY25o3Ze-ClLY3CYt.d.mts.map +1 -0
- package/dist/psl-parser.d.mts +415 -101
- package/dist/psl-parser.d.mts.map +1 -1
- package/dist/psl-parser.mjs +2451 -537
- package/dist/psl-parser.mjs.map +1 -1
- package/dist/psl-parser__format.d.mts +8 -2
- package/dist/psl-parser__format.d.mts.map +1 -1
- package/dist/psl-parser__format.mjs +65 -34
- package/dist/psl-parser__format.mjs.map +1 -1
- package/dist/psl-parser__interpret.d.mts +98 -10
- package/dist/psl-parser__interpret.d.mts.map +1 -1
- package/dist/psl-parser__interpret.mjs +393 -2
- package/dist/psl-parser__interpret.mjs.map +1 -1
- package/dist/psl-parser__syntax.d.mts +3 -3
- package/dist/psl-parser__syntax.mjs +4 -43
- package/dist/psl-parser__tokenizer.d.mts +1 -1
- package/dist/psl-parser__tokenizer.mjs +1 -1
- package/dist/psl-printer.d.mts +7 -17
- package/dist/psl-printer.d.mts.map +1 -1
- package/dist/psl-printer.mjs +35 -104
- package/dist/psl-printer.mjs.map +1 -1
- package/dist/resolve-codec-qqMjZrmn-Cok8elAo.mjs +74 -0
- package/dist/resolve-codec-qqMjZrmn-Cok8elAo.mjs.map +1 -0
- package/dist/{resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts → resolve-domain-model-BNr1glea-BLuR-phK.d.mts} +3 -3
- package/dist/resolve-domain-model-BNr1glea-BLuR-phK.d.mts.map +1 -0
- package/dist/{result-CBZ8X9mU.mjs → result-8OXF26MN.mjs} +14 -3
- package/dist/{result-CBZ8X9mU.mjs.map → result-8OXF26MN.mjs.map} +1 -1
- package/dist/{result-Bpupv5vO.d.mts → result-BYCOANWy.d.mts} +4 -2
- package/dist/result-BYCOANWy.d.mts.map +1 -0
- package/dist/runtime-B-YYuWy2.d.mts +899 -0
- package/dist/runtime-B-YYuWy2.d.mts.map +1 -0
- package/dist/runtime-DSYSc98Y.mjs +1059 -0
- package/dist/runtime-DSYSc98Y.mjs.map +1 -0
- package/dist/runtime-error-CO4MA3Px-YW5SCUcH.d.mts +19 -0
- package/dist/runtime-error-CO4MA3Px-YW5SCUcH.d.mts.map +1 -0
- package/dist/{structured-error-CgiSMpdU.mjs → structured-error-BXbihKQ-.mjs} +3 -3
- package/dist/{structured-error-CgiSMpdU.mjs.map → structured-error-BXbihKQ-.mjs.map} +1 -1
- package/dist/{structured-error-BsNT4Hun.d.mts → structured-error-Cc7AIRsp.d.mts} +19 -5
- package/dist/structured-error-Cc7AIRsp.d.mts.map +1 -0
- package/dist/suppress-idle-connection-errors-CKrTbp5P.d.mts +18 -0
- package/dist/suppress-idle-connection-errors-CKrTbp5P.d.mts.map +1 -0
- package/dist/suppress-idle-connection-errors-DzApeUb3.mjs +22 -0
- package/dist/suppress-idle-connection-errors-DzApeUb3.mjs.map +1 -0
- package/dist/temporal-presets-5TK1pTYJ-DmhrnMP1.mjs +1276 -0
- package/dist/temporal-presets-5TK1pTYJ-DmhrnMP1.mjs.map +1 -0
- package/dist/temporal-presets-BuMqk7h8-DZSuu4Z_.d.mts +258 -0
- package/dist/temporal-presets-BuMqk7h8-DZSuu4Z_.d.mts.map +1 -0
- package/dist/text-C3TTEtgd.mjs +35 -0
- package/dist/text-C3TTEtgd.mjs.map +1 -0
- package/dist/text-C8_-rheN.d.mts +15 -0
- package/dist/text-C8_-rheN.d.mts.map +1 -0
- package/dist/{tokenizer-1hAHZzmp-QGPORvmA.mjs → tokenizer-C-GTKKjR-B1vOzJy0.mjs} +54 -10
- package/dist/tokenizer-C-GTKKjR-B1vOzJy0.mjs.map +1 -0
- package/dist/{tokenizer-DcYI0Xrq-C-nNE9mE.d.mts → tokenizer-i8RaVWVa-7fRwlCPP.d.mts} +9 -4
- package/dist/tokenizer-i8RaVWVa-7fRwlCPP.d.mts.map +1 -0
- package/dist/ts-render.d.mts +2 -2
- package/dist/ts-render.mjs +2 -2
- package/dist/type-constructor-calls-BLf-HsFy-D_jbIqj8.mjs +261 -0
- package/dist/type-constructor-calls-BLf-HsFy-D_jbIqj8.mjs.map +1 -0
- package/dist/{types-BnH4zYvN.mjs → types-B8ULzMAX.mjs} +36 -3
- package/dist/types-B8ULzMAX.mjs.map +1 -0
- package/dist/types-GNXJ7xW2.d.mts +131 -0
- package/dist/types-GNXJ7xW2.d.mts.map +1 -0
- package/dist/{types-import-spec-3mjbVBhI-DQI6BvKU.d.mts → types-import-spec-DQjfX-gM-zVncuzs0.d.mts} +6 -6
- package/dist/types-import-spec-DQjfX-gM-zVncuzs0.d.mts.map +1 -0
- package/dist/utils.d.mts +7 -5
- package/dist/utils.mjs +9 -7
- package/dist/utils__assertions.mjs +1 -1
- package/dist/utils__hash-content.d.mts +1 -1
- package/dist/utils__hash-content.mjs +1 -1
- package/dist/utils__internal-error.d.mts +1 -1
- package/dist/utils__internal-error.mjs +1 -1
- package/dist/utils__result.d.mts +2 -2
- package/dist/utils__result.mjs +2 -2
- package/dist/utils__structured-error.d.mts +2 -2
- package/dist/utils__structured-error.mjs +1 -1
- package/dist/utils__suppress-idle-connection-errors.d.mts +2 -0
- package/dist/utils__suppress-idle-connection-errors.mjs +2 -0
- package/dist/utils__text.d.mts +2 -0
- package/dist/utils__text.mjs +2 -0
- package/dist/{validate-domain-BNBs-TVv.d.mts → validate-domain-B5kmlBFB.d.mts} +10 -6
- package/dist/validate-domain-B5kmlBFB.d.mts.map +1 -0
- package/dist/{validate-domain-BkvFlY3B.mjs → validate-domain-CbXHDYpF.mjs} +43 -22
- package/dist/validate-domain-CbXHDYpF.mjs.map +1 -0
- package/dist/validate-once-D-IwXHYP.mjs +42 -0
- package/dist/validate-once-D-IwXHYP.mjs.map +1 -0
- package/dist/validate-once-gfCOHsDh.d.mts +16 -0
- package/dist/validate-once-gfCOHsDh.d.mts.map +1 -0
- package/package.json +24 -20
- package/dist/apply-specifier-default-control-policy-CAxiXxKg.d.mts.map +0 -1
- package/dist/authoring-B2H-9qCv.d.mts +0 -1
- package/dist/canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs +0 -25
- package/dist/canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs.map +0 -1
- package/dist/capabilities-BCEONw9w-C-lo3rF8.mjs +0 -120
- package/dist/capabilities-BCEONw9w-C-lo3rF8.mjs.map +0 -1
- package/dist/codec-Cd0QcxAx.mjs +0 -63
- package/dist/codec-Cd0QcxAx.mjs.map +0 -1
- package/dist/codec-Ce07W3Mz.d.mts +0 -112
- package/dist/codec-Ce07W3Mz.d.mts.map +0 -1
- package/dist/codec-types-D6VRj2RE-BLElXc-O.d.mts +0 -223
- package/dist/codec-types-D6VRj2RE-BLElXc-O.d.mts.map +0 -1
- package/dist/codec-types-DcNvNeY1-BO6kUiH0.mjs +0 -30
- package/dist/codec-types-DcNvNeY1-BO6kUiH0.mjs.map +0 -1
- package/dist/components-CGA_WwEG.d.mts +0 -50
- package/dist/components-CGA_WwEG.d.mts.map +0 -1
- package/dist/components-dZRz3T5y.mjs.map +0 -1
- package/dist/config-types-BqhNxw0z.mjs +0 -67
- package/dist/config-types-BqhNxw0z.mjs.map +0 -1
- package/dist/config-types-CW4PDwMC.d.mts.map +0 -1
- package/dist/config-validation-DPt5hwQx.mjs +0 -168
- package/dist/config-validation-DPt5hwQx.mjs.map +0 -1
- package/dist/config-validation-Wiqew2J9.d.mts +0 -21
- package/dist/config-validation-Wiqew2J9.d.mts.map +0 -1
- package/dist/config__config-validation.d.mts +0 -2
- package/dist/config__config-validation.mjs +0 -2
- package/dist/contract-types-CkdMH7F7-9EHXSwbH.d.mts.map +0 -1
- package/dist/contract-validation-error-DEiWp_EI-CRwtUgRw.mjs.map +0 -1
- package/dist/contract-validation-error-R7cMoK04.d.mts.map +0 -1
- package/dist/control-BD96JZi8-NUhO5Kkw.mjs.map +0 -1
- package/dist/control-BF8qzdnM.d.mts.map +0 -1
- package/dist/control-DLEm6u5m.mjs.map +0 -1
- package/dist/control-ql9N9u4f-r3Vv41kZ.d.mts.map +0 -1
- package/dist/declarations-DR6To8_k-BFwkCGeP.mjs.map +0 -1
- package/dist/dist-Dqbo77p7.mjs.map +0 -1
- package/dist/domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts.map +0 -1
- package/dist/emission-CmUO03gQ.d.mts +0 -2
- package/dist/emission-types-DLXP34Ki-CFms3VrX.d.mts.map +0 -1
- package/dist/enum-accessor-Db5DaTNX.mjs +0 -35
- package/dist/enum-accessor-Db5DaTNX.mjs.map +0 -1
- package/dist/enum-accessor-PH5vjghI.d.mts +0 -85
- package/dist/enum-accessor-PH5vjghI.d.mts.map +0 -1
- package/dist/execution-Crk6IfTs.mjs +0 -218
- package/dist/execution-Crk6IfTs.mjs.map +0 -1
- package/dist/execution-Cyl2dXxX.d.mts +0 -115
- package/dist/execution-Cyl2dXxX.d.mts.map +0 -1
- package/dist/framework-authoring-BhctBwih-DQ_6noDM.d.mts +0 -777
- package/dist/framework-authoring-BhctBwih-DQ_6noDM.d.mts.map +0 -1
- package/dist/framework-authoring-CDEvlouU-DKklu-fL.mjs +0 -698
- package/dist/framework-authoring-CDEvlouU-DKklu-fL.mjs.map +0 -1
- package/dist/framework-components-hZ2tO-KH-CdRXBOYd.d.mts.map +0 -1
- package/dist/hash-content-Bugg_nZn.mjs.map +0 -1
- package/dist/hashing-BtIZVNYX.mjs.map +0 -1
- package/dist/hashing-CccSPELN.d.mts +0 -25
- package/dist/hashing-CccSPELN.d.mts.map +0 -1
- package/dist/hashing-utils-DQgS3nOe.mjs.map +0 -1
- package/dist/index-CDk9yEbw.d.mts.map +0 -1
- package/dist/internal-error-BIc-ehme-ouBQPoEL.mjs.map +0 -1
- package/dist/ir-ChmSSAhX.mjs.map +0 -1
- package/dist/migration-BvrgDZXw.d.mts.map +0 -1
- package/dist/migration-C57VKLUY.mjs.map +0 -1
- package/dist/parse-0ZJjj_2N-DhQpSVmQ.d.mts.map +0 -1
- package/dist/parse-GbZGfMUj-BFSrD2AN.mjs.map +0 -1
- package/dist/psl-ast-BXZoFQBk.d.mts +0 -37
- package/dist/psl-ast-BXZoFQBk.d.mts.map +0 -1
- package/dist/psl-ast-CWJQF8LA-Vr5JNPdn.d.mts.map +0 -1
- package/dist/psl-ast-DUCvVXbB.mjs +0 -239
- package/dist/psl-ast-DUCvVXbB.mjs.map +0 -1
- package/dist/psl-parser__syntax.mjs.map +0 -1
- package/dist/resolve-codec-BZF8TZh_-D-xORT9Q.mjs +0 -59
- package/dist/resolve-codec-BZF8TZh_-D-xORT9Q.mjs.map +0 -1
- package/dist/resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts.map +0 -1
- package/dist/result-Bpupv5vO.d.mts.map +0 -1
- package/dist/runtime-BqzioOmU.mjs +0 -670
- package/dist/runtime-BqzioOmU.mjs.map +0 -1
- package/dist/runtime-Cuxw8obj.d.mts +0 -1038
- package/dist/runtime-Cuxw8obj.d.mts.map +0 -1
- package/dist/structured-error-BsNT4Hun.d.mts.map +0 -1
- package/dist/symbol-table-CZ7EVCTL-CR-ncCpD.d.mts +0 -125
- package/dist/symbol-table-CZ7EVCTL-CR-ncCpD.d.mts.map +0 -1
- package/dist/tokenizer-1hAHZzmp-QGPORvmA.mjs.map +0 -1
- package/dist/tokenizer-DcYI0Xrq-C-nNE9mE.d.mts.map +0 -1
- package/dist/types-BnH4zYvN.mjs.map +0 -1
- package/dist/types-ByeQhU9p.d.mts +0 -17
- package/dist/types-ByeQhU9p.d.mts.map +0 -1
- package/dist/types-import-spec-3mjbVBhI-DQI6BvKU.d.mts.map +0 -1
- package/dist/utils-DMAM0unR.mjs.map +0 -1
- package/dist/validate-domain-BNBs-TVv.d.mts.map +0 -1
- package/dist/validate-domain-BkvFlY3B.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hashing-CLRfNAxh.mjs","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/hashing.mjs"],"sourcesContent":["import { t as isPlainRecord } from \"./is-plain-record-CUofyVQ7.mjs\";\nimport { i as compareCodeUnits, n as matchesPathPattern } from \"./canonicalization-path-match-D88xLEq6.mjs\";\nimport { blindCast, castAs } from \"@internal/utils/casts\";\nimport { createHash } from \"node:crypto\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { isArrayEqual } from \"@internal/utils/array-equal\";\n//#region src/canonicalization.ts\nconst DOMAIN_NAMESPACE_SLOT_PATTERN = [\n\t\"domain\",\n\t\"namespaces\",\n\t\"*\"\n];\nconst DOMAIN_MODELS_CONTAINER_PATTERN = [\n\t\"domain\",\n\t\"namespaces\",\n\t\"*\",\n\t\"models\"\n];\nconst DOMAIN_MODEL_RELATIONS_PATTERN = [\n\t\"domain\",\n\t\"namespaces\",\n\t\"*\",\n\t\"models\",\n\t\"*\",\n\t\"relations\"\n];\nconst DOMAIN_MODEL_STORAGE_PATTERN = [\n\t\"domain\",\n\t\"namespaces\",\n\t\"*\",\n\t\"models\",\n\t\"*\",\n\t\"storage\"\n];\nconst STORAGE_NAMESPACE_ENTRIES_PATTERN = [\n\t\"storage\",\n\t\"namespaces\",\n\t\"*\",\n\t\"entries\"\n];\nconst TOP_LEVEL_ORDER = [\n\t\"schemaVersion\",\n\t\"canonicalVersion\",\n\t\"targetFamily\",\n\t\"target\",\n\t\"profileHash\",\n\t\"roots\",\n\t\"domain\",\n\t\"storage\",\n\t\"execution\",\n\t\"capabilities\",\n\t\"extensions\",\n\t\"defaultControlPolicy\",\n\t\"meta\"\n];\nfunction isDefaultValue(value) {\n\tif (value === false) return true;\n\tif (value === null) return false;\n\tif (Array.isArray(value) && value.length === 0) return true;\n\tif (typeof value === \"object\" && value !== null) return Object.keys(value).length === 0;\n\treturn false;\n}\nfunction omitDefaults(obj, path, shouldPreserveEmpty) {\n\tif (obj === null || typeof obj !== \"object\") return obj;\n\tif (Array.isArray(obj)) return obj.map((item) => omitDefaults(item, path, shouldPreserveEmpty));\n\tconst result = {};\n\tfor (const [key, value] of Object.entries(obj)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (key === \"_generated\") continue;\n\t\tif (key === \"generated\" && value === false) continue;\n\t\tif ((key === \"onDelete\" || key === \"onUpdate\") && value === \"noAction\") continue;\n\t\tif (isDefaultValue(value)) {\n\t\t\tconst isRequiredDomainNamespaces = isArrayEqual(currentPath, [\"domain\", \"namespaces\"]);\n\t\t\tconst isDomainNamespaceSlot = matchesPathPattern(currentPath, DOMAIN_NAMESPACE_SLOT_PATTERN);\n\t\t\tconst isRequiredDomainModels = matchesPathPattern(currentPath, DOMAIN_MODELS_CONTAINER_PATTERN);\n\t\t\tconst isRequiredStorageNamespaces = isArrayEqual(currentPath, [\"storage\", \"namespaces\"]);\n\t\t\tconst isStorageNamespaceEntries = matchesPathPattern(currentPath, STORAGE_NAMESPACE_ENTRIES_PATTERN);\n\t\t\tconst isRequiredRoots = isArrayEqual(currentPath, [\"roots\"]);\n\t\t\tconst isRequiredExtensions = isArrayEqual(currentPath, [\"extensions\"]);\n\t\t\tconst isRequiredCapabilities = isArrayEqual(currentPath, [\"capabilities\"]);\n\t\t\tconst isRequiredMeta = isArrayEqual(currentPath, [\"meta\"]);\n\t\t\tconst isRequiredExecutionDefaults = isArrayEqual(currentPath, [\n\t\t\t\t\"execution\",\n\t\t\t\t\"mutations\",\n\t\t\t\t\"defaults\"\n\t\t\t]);\n\t\t\tconst isExtensionNamespace = currentPath.length === 2 && currentPath[0] === \"extensions\";\n\t\t\tconst isModelRelations = matchesPathPattern(currentPath, DOMAIN_MODEL_RELATIONS_PATTERN);\n\t\t\tconst isModelStorage = matchesPathPattern(currentPath, DOMAIN_MODEL_STORAGE_PATTERN);\n\t\t\tconst isNullableField = key === \"nullable\";\n\t\t\tconst isManyElementNullable = key === \"elementNullable\" && path.at(-1) === \"many\";\n\t\t\tconst isFamilyPreserved = shouldPreserveEmpty?.(currentPath) ?? false;\n\t\t\tif (!isRequiredDomainNamespaces && !isDomainNamespaceSlot && !isRequiredDomainModels && !isRequiredStorageNamespaces && !isStorageNamespaceEntries && !isRequiredRoots && !isRequiredExtensions && !isRequiredCapabilities && !isRequiredMeta && !isRequiredExecutionDefaults && !isExtensionNamespace && !isModelRelations && !isModelStorage && !isNullableField && !isManyElementNullable && !isFamilyPreserved) continue;\n\t\t}\n\t\tresult[key] = omitDefaults(value, currentPath, shouldPreserveEmpty);\n\t}\n\treturn result;\n}\nfunction sortObjectKeys(obj) {\n\tif (obj === null || typeof obj !== \"object\") return obj;\n\tif (Array.isArray(obj)) return obj.map((item) => sortObjectKeys(item));\n\tconst sorted = {};\n\tconst keys = Object.keys(obj).sort();\n\tfor (const key of keys) sorted[key] = sortObjectKeys(blindCast(obj)[key]);\n\treturn sorted;\n}\nfunction orderTopLevel(obj) {\n\tconst ordered = {};\n\tconst remaining = new Set(Object.keys(obj));\n\tfor (const key of TOP_LEVEL_ORDER) if (remaining.has(key)) {\n\t\tordered[key] = obj[key];\n\t\tremaining.delete(key);\n\t}\n\tfor (const key of Array.from(remaining).sort()) ordered[key] = obj[key];\n\treturn ordered;\n}\n/**\n* Object-form variant of {@link canonicalizeContract}. Exported because the\n* emitter writes the canonical contract through a separate JSON-stringify\n* pass and consumes the structured object directly.\n*/\nfunction canonicalizeContractToObject(contract, options) {\n\tconst serialized = options.serializeContract(contract);\n\tconst withDefaultsOmitted = blindCast(omitDefaults({\n\t\t...ifDefined(\"schemaVersion\", options.schemaVersion),\n\t\ttargetFamily: serialized[\"targetFamily\"],\n\t\ttarget: serialized[\"target\"],\n\t\tprofileHash: serialized[\"profileHash\"],\n\t\troots: serialized[\"roots\"],\n\t\tdomain: serialized[\"domain\"],\n\t\tstorage: serialized[\"storage\"],\n\t\t...ifDefined(\"execution\", serialized[\"execution\"]),\n\t\textensions: serialized[\"extensions\"],\n\t\tcapabilities: serialized[\"capabilities\"],\n\t\t...ifDefined(\"defaultControlPolicy\", serialized[\"defaultControlPolicy\"]),\n\t\tmeta: serialized[\"meta\"]\n\t}, [], options.shouldPreserveEmpty));\n\treturn orderTopLevel(blindCast(sortObjectKeys(options.sortStorage ? {\n\t\t...withDefaultsOmitted,\n\t\tstorage: options.sortStorage(withDefaultsOmitted[\"storage\"])\n\t} : withDefaultsOmitted)));\n}\nfunction canonicalizeContract(contract, options) {\n\treturn JSON.stringify(canonicalizeContractToObject(contract, options), null, 2);\n}\n//#endregion\n//#region src/hashing.ts\nconst SCHEMA_VERSION = \"1\";\nfunction omitNamespaceKindsForHash(storage) {\n\tif (!isPlainRecord(storage)) return storage;\n\tconst namespaces = storage[\"namespaces\"];\n\tif (!isPlainRecord(namespaces)) return storage;\n\tconst stripped = {};\n\tfor (const [nsId, ns] of Object.entries(namespaces)) if (isPlainRecord(ns)) {\n\t\tconst { kind: _kind, ...rest } = ns;\n\t\tstripped[nsId] = rest;\n\t} else stripped[nsId] = ns;\n\treturn {\n\t\t...storage,\n\t\tnamespaces: stripped\n\t};\n}\nfunction sha256(content) {\n\tconst hash = createHash(\"sha256\");\n\thash.update(content);\n\treturn hash.digest(\"hex\");\n}\nfunction hashContract(section) {\n\tconst { shouldPreserveEmpty, sortStorage, ...sectionData } = section;\n\tconst storageForHash = omitNamespaceKindsForHash(sectionData[\"storage\"] ?? {});\n\treturn canonicalizeContract(blindCast({\n\t\ttargetFamily: sectionData[\"targetFamily\"],\n\t\ttarget: sectionData[\"target\"],\n\t\troots: {},\n\t\tdomain: { namespaces: {} },\n\t\texecution: sectionData[\"execution\"],\n\t\textensions: {},\n\t\tcapabilities: sectionData[\"capabilities\"] ?? {},\n\t\tmeta: {},\n\t\tprofileHash: \"\",\n\t\t...sectionData,\n\t\tstorage: storageForHash\n\t}), {\n\t\tschemaVersion: SCHEMA_VERSION,\n\t\tserializeContract: (c) => castAs(JSON.parse(JSON.stringify(c))),\n\t\t...ifDefined(\"shouldPreserveEmpty\", shouldPreserveEmpty),\n\t\t...ifDefined(\"sortStorage\", sortStorage)\n\t});\n}\nfunction computeStorageHash(args) {\n\treturn blindCast(sha256(hashContract(args)));\n}\nfunction computeExecutionHash(args) {\n\treturn blindCast(sha256(hashContract(args)));\n}\nfunction computeProfileHash(args) {\n\treturn blindCast(sha256(hashContract(args)));\n}\n//#endregion\n//#region src/build-execution-section.ts\nfunction compareRefs(a, b) {\n\treturn compareCodeUnits(a.ref.namespace, b.ref.namespace) || compareCodeUnits(a.ref.entry, b.ref.entry) || compareCodeUnits(a.ref.field, b.ref.field);\n}\n/**\n* Builds a contract's `execution` section from its mutation defaults: sorted by namespace, entry and field in UTF-16 code-unit order, and hashed for the target. Every authoring path calls this, so they emit the same section and hash for the same defaults.\n*/\nfunction buildExecutionSection(input) {\n\tif (input.defaults.length === 0) return;\n\tconst execution = { mutations: { defaults: [...input.defaults].sort(compareRefs) } };\n\treturn {\n\t\texecutionHash: computeExecutionHash({\n\t\t\ttarget: input.target,\n\t\t\ttargetFamily: input.targetFamily,\n\t\t\texecution\n\t\t}),\n\t\t...execution\n\t};\n}\n//#endregion\nexport { buildExecutionSection, canonicalizeContract, canonicalizeContractToObject, computeExecutionHash, computeProfileHash, computeStorageHash };\n\n//# sourceMappingURL=hashing.mjs.map"],"mappings":";;;;;;;AAOA,MAAM,gCAAgC;CACrC;CACA;CACA;AACD;AACA,MAAM,kCAAkC;CACvC;CACA;CACA;CACA;AACD;AACA,MAAM,iCAAiC;CACtC;CACA;CACA;CACA;CACA;CACA;AACD;AACA,MAAM,+BAA+B;CACpC;CACA;CACA;CACA;CACA;CACA;AACD;AACA,MAAM,oCAAoC;CACzC;CACA;CACA;CACA;AACD;AACA,MAAM,kBAAkB;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD;AACA,SAAS,eAAe,OAAO;CAC9B,IAAI,UAAU,OAAO,OAAO;CAC5B,IAAI,UAAU,MAAM,OAAO;CAC3B,IAAI,MAAM,QA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c,YAAY;EAC1B,QAAQ,YAAY;EACpB,OAAO,CAAC;EACR,QAAQ,EAAE,YAAY,CAAC,EAAE;EACzB,WAAW,YAAY;EACvB,YAAY,CAAC;EACb,cAAc,YAAY,mBAAmB,CAAC;EAC9C,MAAM,CAAC;EACP,aAAa;EACb,GAAG;EACH,SAAS;CACV,CAAC,GAAG;EACH,eAAe;EACf,oBAAoB,MAAM,OAAO,KAAK,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC;EAC9D,GAAG,UAAU,uBAAuB,mBAAmB;EACvD,GAAG,UAAU,eAAe,WAAW;CACxC,CAAC;AACF;AACA,SAAS,mBAAmB,MAAM;CACjC,OAAO,UAAU,OAAO,aAAa,IAAI,CAAC,CAAC;AAC5C;AACA,SAAS,qBAAqB,MAAM;CACnC,OAAO,UAAU,OAAO,aAAa,IAAI,CAAC,CAAC;AAC5C;AACA,SAAS,mBAAmB,MAAM;CACjC,OAAO,UAAU,OAAO,aAAa,IAAI,CAAC,CAAC;AAC5C;AAGA,SAAS,YAAY,GAAG,GAAG;CAC1B,OAAO,iBAAiB,EAAE,IAAI,WAAW,EAAE,IAAI,SAAS,KAAK,iBAAiB,EAAE,IAAI,OAAO,EAAE,IAAI,KAAK,KAAK,iBAAiB,EAAE,IAAI,OAAO,EAAE,IAAI,KAAK;AACrJ;;;;AAIA,SAAS,sBAAsB,OAAO;CACrC,IAAI,MAAM,SAAS,WAAW,GAAG;CACjC,MAAM,YAAY,EAAE,WAAW,EAAE,UAAU,CAAC,GAAG,MAAM,QAAQ,CAAC,CAAC,KAAK,WAAW,EAAE,EAAE;CACnF,OAAO;EACN,eAAe,qBAAqB;GACnC,QAAQ,MAAM;GACd,cAAc,MAAM;GACpB;EACD,CAAC;EACD,GAAG;CACJ;AACD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { G as ProfileHashBase, M as ExecutionMutationDefault, Z as StorageHashBase, j as ExecutionHashBase } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
|
+
import { n as ContractExecutionSection } from "./contract-types-DEIEpzU_-DvAVuBr5.mjs";
|
|
3
|
+
import { i as StorageSort, n as PreserveEmptyPredicate } from "./canonicalization-CyrrXGmj-CeKUkht1.mjs";
|
|
4
|
+
//#region ../../../1-framework/0-foundation/contract/dist/hashing.d.mts
|
|
5
|
+
//#region src/build-execution-section.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Builds a contract's `execution` section from its mutation defaults: sorted by namespace, entry and field in UTF-16 code-unit order, and hashed for the target. Every authoring path calls this, so they emit the same section and hash for the same defaults.
|
|
8
|
+
*/
|
|
9
|
+
declare function buildExecutionSection(input: {
|
|
10
|
+
readonly target: string;
|
|
11
|
+
readonly targetFamily: string;
|
|
12
|
+
readonly defaults: ReadonlyArray<ExecutionMutationDefault>;
|
|
13
|
+
}): ContractExecutionSection | undefined;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/hashing.d.ts
|
|
16
|
+
type ComputeStorageHashArgs = {
|
|
17
|
+
target: string;
|
|
18
|
+
targetFamily: string;
|
|
19
|
+
storage: Record<string, unknown>;
|
|
20
|
+
readonly shouldPreserveEmpty?: PreserveEmptyPredicate;
|
|
21
|
+
readonly sortStorage?: StorageSort;
|
|
22
|
+
};
|
|
23
|
+
declare function computeStorageHash(args: ComputeStorageHashArgs): StorageHashBase<string>;
|
|
24
|
+
declare function computeExecutionHash(args: {
|
|
25
|
+
target: string;
|
|
26
|
+
targetFamily: string;
|
|
27
|
+
execution: Record<string, unknown>;
|
|
28
|
+
}): ExecutionHashBase<string>;
|
|
29
|
+
declare function computeProfileHash(args: {
|
|
30
|
+
target: string;
|
|
31
|
+
targetFamily: string;
|
|
32
|
+
capabilities: Record<string, Record<string, boolean>>;
|
|
33
|
+
}): ProfileHashBase<string>;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { computeStorageHash as i, computeExecutionHash as n, computeProfileHash as r, buildExecutionSection as t };
|
|
36
|
+
//# sourceMappingURL=hashing-D-DHz0zl.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hashing-D-DHz0zl.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/hashing.d.mts"],"mappings":";;;;;;;;iBAOiB,sBAAsB;WAC5B;WACA;WACA,UAAU,cAAc;IAC/B;;;KAGC;EACH;EACA;EACA,SAAS;WACA,sBAAsB;WACtB,cAAc;;iBAER,mBAAmB,MAAM,yBAAyB;iBAClD,qBAAqB;EACpC;EACA;EACA,WAAW;IACT;iBACa,mBAAmB;EAClC;EACA;EACA,cAAc,eAAe;IAC3B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as StorageSort, n as PreserveEmptyPredicate } from "./canonicalization-
|
|
1
|
+
import { i as StorageSort, n as PreserveEmptyPredicate } from "./canonicalization-CyrrXGmj-CeKUkht1.mjs";
|
|
2
2
|
//#region ../../../1-framework/0-foundation/contract/dist/hashing-utils.d.mts
|
|
3
3
|
//#region src/canonicalization-path-match.d.ts
|
|
4
4
|
type PathSegment = string | '*' | readonly string[];
|
|
@@ -12,8 +12,9 @@ interface NamedArraySortTarget {
|
|
|
12
12
|
readonly path: readonly PathSegment$1[];
|
|
13
13
|
readonly arrayKeys: readonly string[];
|
|
14
14
|
}
|
|
15
|
+
declare function compareCodeUnits(a: string, b: string): number;
|
|
15
16
|
declare function compareByNameProperty(a: unknown, b: unknown): number;
|
|
16
17
|
declare function createStorageSort(targets: readonly NamedArraySortTarget[], compare?: (a: unknown, b: unknown) => number): StorageSort;
|
|
17
18
|
//#endregion
|
|
18
|
-
export { compareByNameProperty as a,
|
|
19
|
-
//# sourceMappingURL=hashing-utils-
|
|
19
|
+
export { compareByNameProperty as a, createStorageSort as c, PathSegment$1 as i, matchesPathPattern as l, PathPattern as n, compareCodeUnits as o, PathSegment as r, createPreserveEmptyPredicate as s, NamedArraySortTarget as t };
|
|
20
|
+
//# sourceMappingURL=hashing-utils-DiGHKd3b.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hashing-utils-
|
|
1
|
+
{"version":3,"file":"hashing-utils-DiGHKd3b.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/hashing-utils.d.mts"],"mappings":";;;KAEK;KACA,uBAAuB;iBACX,mBAAmB,yBAAyB,SAAS;iBACrD,6BAA6B,mBAAmB,gBAAgB;;;KAG5E;UACK;WACC,eAAe;WACf;;iBAEM,iBAAiB,WAAW;iBAC5B,sBAAsB,YAAY;iBAClC,kBAAkB,kBAAkB,wBAAwB,WAAW,YAAY,wBAAwB"}
|
package/dist/ids.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { P as ExecutionMutationDefaultValue } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
|
+
import { s as ColumnTypeDescriptor } from "./codec-B4ypaota.mjs";
|
|
3
3
|
import { cuid2 as cuid2$1 } from "uniku/cuid2";
|
|
4
4
|
import { ksuid as ksuid$1 } from "uniku/ksuid";
|
|
5
5
|
import { nanoid as nanoid$1 } from "uniku/nanoid";
|
|
@@ -22,23 +22,100 @@ type IdGeneratorOptionsById = {
|
|
|
22
22
|
readonly ksuid: FirstArg<typeof ksuid$1>;
|
|
23
23
|
};
|
|
24
24
|
//#endregion
|
|
25
|
+
//#region src/generator-limits.d.ts
|
|
26
|
+
/** The UUID versions `uuid(version)` generates. */
|
|
27
|
+
declare const UUID_VERSIONS: {
|
|
28
|
+
readonly v4: 4;
|
|
29
|
+
readonly v7: 7;
|
|
30
|
+
};
|
|
31
|
+
/** The one CUID version `cuid(version)` generates. */
|
|
32
|
+
declare const CUID_VERSION = 2;
|
|
33
|
+
/** The sizes a Nano ID may have, inclusive. */
|
|
34
|
+
declare const NANOID_SIZE: {
|
|
35
|
+
readonly min: 2;
|
|
36
|
+
readonly max: 255;
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
25
39
|
//#region src/index.d.ts
|
|
26
|
-
declare const
|
|
27
|
-
readonly
|
|
28
|
-
|
|
29
|
-
|
|
40
|
+
declare const GENERATED_CHAR_TYPE: {
|
|
41
|
+
readonly codecId: "sql/char@1";
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* The explicit storage a generator's TS spec helper bundles: a `character(N)`
|
|
45
|
+
* type sized to the generator's output. Calling a helper *is* an explicit
|
|
46
|
+
* storage request (the storage is part of the helper's contract), unlike a
|
|
47
|
+
* PSL `@default(<generator>)`, which never influences the field's storage
|
|
48
|
+
* type — the PSL interpreter never consults this metadata.
|
|
49
|
+
*/
|
|
50
|
+
type GeneratedStorage<Length extends number = number> = {
|
|
51
|
+
readonly type: ColumnTypeDescriptor<typeof GENERATED_CHAR_TYPE.codecId>;
|
|
52
|
+
readonly typeParams: {
|
|
53
|
+
readonly length: Length;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
declare const NANOID_DEFAULT_SIZE = 21;
|
|
57
|
+
type NanoidOptions = IdGeneratorOptionsById['nanoid'];
|
|
58
|
+
/** The number of characters the built-in generator `id` writes under `params`, such as 36 for a UUID or a Nano ID's size. */
|
|
59
|
+
declare function generatedLength(id: BuiltinGeneratorId, params: Readonly<Record<string, unknown>> | undefined): number;
|
|
30
60
|
type GeneratedColumnSpec<TCodecId extends string = string> = {
|
|
31
61
|
readonly type: ColumnTypeDescriptor<TCodecId>;
|
|
32
62
|
readonly nullable?: false;
|
|
33
63
|
readonly typeParams?: Record<string, unknown>;
|
|
34
64
|
readonly generated: ExecutionMutationDefaultValue;
|
|
35
65
|
};
|
|
36
|
-
declare
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
66
|
+
declare function createGeneratedSpec<TId extends BuiltinGeneratorId, Length extends number>(id: TId, storage: GeneratedStorage<Length>, options: IdGeneratorOptionsById[TId] | undefined): {
|
|
67
|
+
readonly type: ColumnTypeDescriptor<"sql/char@1">;
|
|
68
|
+
readonly nullable: false;
|
|
69
|
+
readonly typeParams: {
|
|
70
|
+
readonly length: Length;
|
|
71
|
+
};
|
|
72
|
+
readonly generated: ExecutionMutationDefaultValue;
|
|
73
|
+
};
|
|
74
|
+
declare const ulid: (options?: IdGeneratorOptionsById["ulid"]) => {
|
|
75
|
+
readonly type: ColumnTypeDescriptor<"sql/char@1">;
|
|
76
|
+
readonly nullable: false;
|
|
77
|
+
readonly typeParams: {
|
|
78
|
+
readonly length: 26;
|
|
79
|
+
};
|
|
80
|
+
readonly generated: ExecutionMutationDefaultValue;
|
|
81
|
+
};
|
|
82
|
+
declare const uuidv7: (options?: IdGeneratorOptionsById["uuidv7"]) => {
|
|
83
|
+
readonly type: ColumnTypeDescriptor<"sql/char@1">;
|
|
84
|
+
readonly nullable: false;
|
|
85
|
+
readonly typeParams: {
|
|
86
|
+
readonly length: 36;
|
|
87
|
+
};
|
|
88
|
+
readonly generated: ExecutionMutationDefaultValue;
|
|
89
|
+
};
|
|
90
|
+
declare const uuidv4: (options?: IdGeneratorOptionsById["uuidv4"]) => {
|
|
91
|
+
readonly type: ColumnTypeDescriptor<"sql/char@1">;
|
|
92
|
+
readonly nullable: false;
|
|
93
|
+
readonly typeParams: {
|
|
94
|
+
readonly length: 36;
|
|
95
|
+
};
|
|
96
|
+
readonly generated: ExecutionMutationDefaultValue;
|
|
97
|
+
};
|
|
98
|
+
declare const cuid2: (options?: IdGeneratorOptionsById["cuid2"]) => {
|
|
99
|
+
readonly type: ColumnTypeDescriptor<"sql/char@1">;
|
|
100
|
+
readonly nullable: false;
|
|
101
|
+
readonly typeParams: {
|
|
102
|
+
readonly length: 24;
|
|
103
|
+
};
|
|
104
|
+
readonly generated: ExecutionMutationDefaultValue;
|
|
105
|
+
};
|
|
106
|
+
declare const ksuid: (options?: IdGeneratorOptionsById["ksuid"]) => {
|
|
107
|
+
readonly type: ColumnTypeDescriptor<"sql/char@1">;
|
|
108
|
+
readonly nullable: false;
|
|
109
|
+
readonly typeParams: {
|
|
110
|
+
readonly length: 27;
|
|
111
|
+
};
|
|
112
|
+
readonly generated: ExecutionMutationDefaultValue;
|
|
113
|
+
};
|
|
114
|
+
declare function nanoid(): ReturnType<typeof createGeneratedSpec<'nanoid', typeof NANOID_DEFAULT_SIZE>>;
|
|
115
|
+
declare function nanoid<const Size extends number>(options: {
|
|
116
|
+
readonly size: Size;
|
|
117
|
+
}): ReturnType<typeof createGeneratedSpec<'nanoid', Size>>;
|
|
118
|
+
declare function nanoid(options?: NanoidOptions): ReturnType<typeof createGeneratedSpec<'nanoid', number>>;
|
|
42
119
|
//#endregion
|
|
43
|
-
export { GeneratedColumnSpec,
|
|
120
|
+
export { type BuiltinGeneratorId, CUID_VERSION, GeneratedColumnSpec, NANOID_SIZE, UUID_VERSIONS, builtinGeneratorIds, cuid2, generatedLength, ksuid, nanoid, ulid, uuidv4, uuidv7 };
|
|
44
121
|
//# sourceMappingURL=ids.d.mts.map
|
package/dist/ids.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/ids/dist/index.d.mts"],"mappings":";;;;;;;;;;cASc;KACT,6BAA6B;;;KAG7B,SAAS,aAAa,uBAAuB,YAAY,qBAAqB,+BAA+B;KAC7G;WACM,MAAM,gBAAgB;WACtB,QAAQ,gBAAgB;WACxB,QAAQ,gBAAgB;WACxB,QAAQ,gBAAgB;WACxB,OAAO,gBAAgB;WACvB,OAAO,gBAAgB;;;;
|
|
1
|
+
{"version":3,"file":"ids.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/ids/dist/index.d.mts"],"mappings":";;;;;;;;;;cASc;KACT,6BAA6B;;;KAG7B,SAAS,aAAa,uBAAuB,YAAY,qBAAqB,+BAA+B;KAC7G;WACM,MAAM,gBAAgB;WACtB,QAAQ,gBAAgB;WACxB,QAAQ,gBAAgB;WACxB,QAAQ,gBAAgB;WACxB,OAAO,gBAAgB;WACvB,OAAO,gBAAgB;;;;;cAKpB;WACH;WACA;;;cAGG;;cAEA;WACH;WACA;;;;cAIG;WACH;;;;;;;;;KASN,iBAAiB;WACX,MAAM,4BAA4B,oBAAoB;WACtD;aACE,QAAQ;;;cAGP;KACT,gBAAgB;;iBAEJ,gBAAgB,IAAI,oBAAoB,QAAQ,SAAS;KACrE,oBAAoB;WACd,MAAM,qBAAqB;WAC3B;WACA,aAAa;WACb,WAAW;;iBAEL,oBAAoB,YAAY,oBAAoB,uBAAuB,IAAI,KAAK,SAAS,iBAAiB,SAAS,SAAS,uBAAuB;WAC7J,MAAM;WACN;WACA;aACE,QAAQ;;WAEV,WAAW;;cAER,OAAO,UAAU;WACpB,MAAM;WACN;WACA;aACE;;WAEF,WAAW;;cAER,SAAS,UAAU;WACtB,MAAM;WACN;WACA;aACE;;WAEF,WAAW;;cAER,SAAS,UAAU;WACtB,MAAM;WACN;WACA;aACE;;WAEF,WAAW;;cAER,QAAQ,UAAU;WACrB,MAAM;WACN;WACA;aACE;;WAEF,WAAW;;cAER,QAAQ,UAAU;WACrB,MAAM;WACN;WACA;aACE;;WAEF,WAAW;;iBAEL,UAAU,kBAAkB,qCAAqC;iBACjE,aAAa,qBAAqB;WACxC,MAAM;IACb,kBAAkB,8BAA8B;iBACnC,OAAO,UAAU,gBAAgB,kBAAkB"}
|
package/dist/ids.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { t as blindCast } from "./casts-DpaahrlC-Bd5n2coI.mjs";
|
|
1
2
|
import { t as ifDefined } from "./defined-BQWA85QH-BRSBMULx.mjs";
|
|
2
|
-
import { o as structuredError } from "./structured-error-
|
|
3
|
+
import { o as structuredError } from "./structured-error-BXbihKQ-.mjs";
|
|
3
4
|
//#region ../../../1-framework/2-authoring/ids/dist/index.mjs
|
|
4
5
|
function contractError(code, message, options) {
|
|
5
6
|
return structuredError(code, message, options);
|
|
@@ -12,20 +13,30 @@ const builtinGeneratorIds = [
|
|
|
12
13
|
"cuid2",
|
|
13
14
|
"ksuid"
|
|
14
15
|
];
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
/** The UUID versions `uuid(version)` generates. */
|
|
17
|
+
const UUID_VERSIONS = {
|
|
18
|
+
v4: 4,
|
|
19
|
+
v7: 7
|
|
18
20
|
};
|
|
21
|
+
/** The one CUID version `cuid(version)` generates. */
|
|
22
|
+
const CUID_VERSION = 2;
|
|
23
|
+
/** The sizes a Nano ID may have, inclusive. */
|
|
24
|
+
const NANOID_SIZE = {
|
|
25
|
+
min: 2,
|
|
26
|
+
max: 255
|
|
27
|
+
};
|
|
28
|
+
const GENERATED_CHAR_TYPE = { codecId: "sql/char@1" };
|
|
19
29
|
function charStorage(length) {
|
|
20
30
|
return {
|
|
21
31
|
type: GENERATED_CHAR_TYPE,
|
|
22
32
|
typeParams: { length }
|
|
23
33
|
};
|
|
24
34
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
if (
|
|
35
|
+
const NANOID_DEFAULT_SIZE = 21;
|
|
36
|
+
function nanoidStorage(options) {
|
|
37
|
+
const rawSize = options?.size;
|
|
38
|
+
if (rawSize === void 0) return charStorage(NANOID_DEFAULT_SIZE);
|
|
39
|
+
if (typeof rawSize !== "number" || !Number.isInteger(rawSize) || rawSize < NANOID_SIZE.min || rawSize > NANOID_SIZE.max) throw contractError("CONTRACT.ARGUMENT_INVALID", `nanoid size must be an integer between ${NANOID_SIZE.min} and ${NANOID_SIZE.max}`, { meta: {
|
|
29
40
|
helperPath: "nanoid",
|
|
30
41
|
paramName: "size",
|
|
31
42
|
received: rawSize
|
|
@@ -33,64 +44,39 @@ function nanoidStorage(params) {
|
|
|
33
44
|
return charStorage(rawSize);
|
|
34
45
|
}
|
|
35
46
|
const builtinGeneratorMetadataById = {
|
|
36
|
-
ulid: {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
generatedStorage: nanoidStorage
|
|
43
|
-
},
|
|
44
|
-
uuidv7: {
|
|
45
|
-
applicableCodecIds: [
|
|
46
|
-
"pg/text@1",
|
|
47
|
-
"sql/char@1",
|
|
48
|
-
"pg/uuid@1"
|
|
49
|
-
],
|
|
50
|
-
generatedStorage: () => charStorage(36)
|
|
51
|
-
},
|
|
52
|
-
uuidv4: {
|
|
53
|
-
applicableCodecIds: [
|
|
54
|
-
"pg/text@1",
|
|
55
|
-
"sql/char@1",
|
|
56
|
-
"pg/uuid@1"
|
|
57
|
-
],
|
|
58
|
-
generatedStorage: () => charStorage(36)
|
|
59
|
-
},
|
|
60
|
-
cuid2: {
|
|
61
|
-
applicableCodecIds: ["pg/text@1", "sql/char@1"],
|
|
62
|
-
generatedStorage: () => charStorage(24)
|
|
63
|
-
},
|
|
64
|
-
ksuid: {
|
|
65
|
-
applicableCodecIds: ["pg/text@1", "sql/char@1"],
|
|
66
|
-
generatedStorage: () => charStorage(27)
|
|
67
|
-
}
|
|
47
|
+
ulid: { generatedStorage: () => charStorage(26) },
|
|
48
|
+
nanoid: { generatedStorage: nanoidStorage },
|
|
49
|
+
uuidv7: { generatedStorage: () => charStorage(36) },
|
|
50
|
+
uuidv4: { generatedStorage: () => charStorage(36) },
|
|
51
|
+
cuid2: { generatedStorage: () => charStorage(24) },
|
|
52
|
+
ksuid: { generatedStorage: () => charStorage(27) }
|
|
68
53
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
function createGeneratedSpec(id, options) {
|
|
74
|
-
const
|
|
75
|
-
|
|
54
|
+
/** The number of characters the built-in generator `id` writes under `params`, such as 36 for a UUID or a Nano ID's size. */
|
|
55
|
+
function generatedLength(id, params) {
|
|
56
|
+
return builtinGeneratorMetadataById[id].generatedStorage(blindCast(params)).typeParams.length;
|
|
57
|
+
}
|
|
58
|
+
function createGeneratedSpec(id, storage, options) {
|
|
59
|
+
const generated = {
|
|
60
|
+
kind: "generator",
|
|
61
|
+
id,
|
|
62
|
+
...ifDefined("params", options)
|
|
63
|
+
};
|
|
76
64
|
return {
|
|
77
65
|
type: storage.type,
|
|
78
66
|
nullable: false,
|
|
79
67
|
typeParams: storage.typeParams,
|
|
80
|
-
generated
|
|
81
|
-
kind: "generator",
|
|
82
|
-
id,
|
|
83
|
-
...ifDefined("params", params)
|
|
84
|
-
}
|
|
68
|
+
generated
|
|
85
69
|
};
|
|
86
70
|
}
|
|
87
|
-
const ulid = (options) => createGeneratedSpec("ulid", options);
|
|
88
|
-
const
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
|
|
71
|
+
const ulid = (options) => createGeneratedSpec("ulid", builtinGeneratorMetadataById.ulid.generatedStorage(), options);
|
|
72
|
+
const uuidv7 = (options) => createGeneratedSpec("uuidv7", builtinGeneratorMetadataById.uuidv7.generatedStorage(), options);
|
|
73
|
+
const uuidv4 = (options) => createGeneratedSpec("uuidv4", builtinGeneratorMetadataById.uuidv4.generatedStorage(), options);
|
|
74
|
+
const cuid2 = (options) => createGeneratedSpec("cuid2", builtinGeneratorMetadataById.cuid2.generatedStorage(), options);
|
|
75
|
+
const ksuid = (options) => createGeneratedSpec("ksuid", builtinGeneratorMetadataById.ksuid.generatedStorage(), options);
|
|
76
|
+
function nanoid(options) {
|
|
77
|
+
return createGeneratedSpec("nanoid", builtinGeneratorMetadataById.nanoid.generatedStorage(options), options);
|
|
78
|
+
}
|
|
93
79
|
//#endregion
|
|
94
|
-
export {
|
|
80
|
+
export { CUID_VERSION, NANOID_SIZE, UUID_VERSIONS, builtinGeneratorIds, cuid2, generatedLength, ksuid, nanoid, ulid, uuidv4, uuidv7 };
|
|
95
81
|
|
|
96
82
|
//# sourceMappingURL=ids.mjs.map
|
package/dist/ids.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids.mjs","names":[],"sources":["../../../../1-framework/2-authoring/ids/dist/index.mjs"],"sourcesContent":["import { ifDefined } from \"@internal/utils/defined\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/generator-ids.ts\nconst builtinGeneratorIds = [\n\t\"ulid\",\n\t\"nanoid\",\n\t\"uuidv7\",\n\t\"uuidv4\",\n\t\"cuid2\",\n\t\"ksuid\"\n];\n//#endregion\n//#region src/
|
|
1
|
+
{"version":3,"file":"ids.mjs","names":[],"sources":["../../../../1-framework/2-authoring/ids/dist/index.mjs"],"sourcesContent":["import { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/generator-ids.ts\nconst builtinGeneratorIds = [\n\t\"ulid\",\n\t\"nanoid\",\n\t\"uuidv7\",\n\t\"uuidv4\",\n\t\"cuid2\",\n\t\"ksuid\"\n];\n//#endregion\n//#region src/generator-limits.ts\n/** The UUID versions `uuid(version)` generates. */\nconst UUID_VERSIONS = {\n\tv4: 4,\n\tv7: 7\n};\n/** The one CUID version `cuid(version)` generates. */\nconst CUID_VERSION = 2;\n/** The sizes a Nano ID may have, inclusive. */\nconst NANOID_SIZE = {\n\tmin: 2,\n\tmax: 255\n};\n//#endregion\n//#region src/index.ts\nconst GENERATED_CHAR_TYPE = { codecId: \"sql/char@1\" };\nfunction charStorage(length) {\n\treturn {\n\t\ttype: GENERATED_CHAR_TYPE,\n\t\ttypeParams: { length }\n\t};\n}\nconst NANOID_DEFAULT_SIZE = 21;\nfunction nanoidStorage(options) {\n\tconst rawSize = options?.size;\n\tif (rawSize === void 0) return charStorage(NANOID_DEFAULT_SIZE);\n\tif (typeof rawSize !== \"number\" || !Number.isInteger(rawSize) || rawSize < NANOID_SIZE.min || rawSize > NANOID_SIZE.max) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", `nanoid size must be an integer between ${NANOID_SIZE.min} and ${NANOID_SIZE.max}`, { meta: {\n\t\thelperPath: \"nanoid\",\n\t\tparamName: \"size\",\n\t\treceived: rawSize\n\t} });\n\treturn charStorage(rawSize);\n}\nconst builtinGeneratorMetadataById = {\n\tulid: { generatedStorage: () => charStorage(26) },\n\tnanoid: { generatedStorage: nanoidStorage },\n\tuuidv7: { generatedStorage: () => charStorage(36) },\n\tuuidv4: { generatedStorage: () => charStorage(36) },\n\tcuid2: { generatedStorage: () => charStorage(24) },\n\tksuid: { generatedStorage: () => charStorage(27) }\n};\n/** The number of characters the built-in generator `id` writes under `params`, such as 36 for a UUID or a Nano ID's size. */\nfunction generatedLength(id, params) {\n\treturn builtinGeneratorMetadataById[id].generatedStorage(blindCast(params)).typeParams.length;\n}\nfunction createGeneratedSpec(id, storage, options) {\n\tconst generated = {\n\t\tkind: \"generator\",\n\t\tid,\n\t\t...ifDefined(\"params\", options)\n\t};\n\treturn {\n\t\ttype: storage.type,\n\t\tnullable: false,\n\t\ttypeParams: storage.typeParams,\n\t\tgenerated\n\t};\n}\nconst ulid = (options) => createGeneratedSpec(\"ulid\", builtinGeneratorMetadataById.ulid.generatedStorage(), options);\nconst uuidv7 = (options) => createGeneratedSpec(\"uuidv7\", builtinGeneratorMetadataById.uuidv7.generatedStorage(), options);\nconst uuidv4 = (options) => createGeneratedSpec(\"uuidv4\", builtinGeneratorMetadataById.uuidv4.generatedStorage(), options);\nconst cuid2 = (options) => createGeneratedSpec(\"cuid2\", builtinGeneratorMetadataById.cuid2.generatedStorage(), options);\nconst ksuid = (options) => createGeneratedSpec(\"ksuid\", builtinGeneratorMetadataById.ksuid.generatedStorage(), options);\nfunction nanoid(options) {\n\treturn createGeneratedSpec(\"nanoid\", builtinGeneratorMetadataById.nanoid.generatedStorage(options), options);\n}\n//#endregion\nexport { CUID_VERSION, NANOID_SIZE, UUID_VERSIONS, builtinGeneratorIds, cuid2, generatedLength, ksuid, nanoid, ulid, uuidv4, uuidv7 };\n\n//# sourceMappingURL=index.mjs.map"],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ACN;EACA,GAAG,UAAU,UAAU,OAAO;CAC/B;CACA,OAAO;EACN,MAAM,QAAQ;EACd,UAAU;EACV,YAAY,QAAQ;EACpB;CACD;AACD;AACA,MAAM,QAAQ,YAAY,oBAAoB,QAAQ,6BAA6B,KAAK,iBAAiB,GAAG,OAAO;AACnH,MAAM,UAAU,YAAY,oBAAoB,UAAU,6BAA6B,OAAO,iBAAiB,GAAG,OAAO;AACzH,MAAM,UAAU,YAAY,oBAAoB,UAAU,6BAA6B,OAAO,iBAAiB,GAAG,OAAO;AACzH,MAAM,SAAS,YAAY,oBAAoB,SAAS,6BAA6B,MAAM,iBAAiB,GAAG,OAAO;AACtH,MAAM,SAAS,YAAY,oBAAoB,SAAS,6BAA6B,MAAM,iBAAiB,GAAG,OAAO;AACtH,SAAS,OAAO,SAAS;CACxB,OAAO,oBAAoB,UAAU,6BAA6B,OAAO,iBAAiB,OAAO,GAAG,OAAO;AAC5G"}
|
package/dist/ids__runtime.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as GeneratedValueSpec } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
2
|
//#region ../../../1-framework/2-authoring/ids/dist/runtime.d.mts
|
|
3
3
|
//#region src/runtime.d.ts
|
|
4
4
|
declare function generateId(spec: GeneratedValueSpec): string;
|
package/dist/ids__runtime.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as InternalError } from "./internal-error-
|
|
1
|
+
import { t as InternalError } from "./internal-error-ChGYPVpq-DhUD05u0.mjs";
|
|
2
2
|
import { cuid2 } from "uniku/cuid2";
|
|
3
3
|
import { ksuid } from "uniku/ksuid";
|
|
4
4
|
import { nanoid } from "uniku/nanoid";
|
|
@@ -5,16 +5,20 @@
|
|
|
5
5
|
*
|
|
6
6
|
* This module is the second stage of the codec → TS pipeline:
|
|
7
7
|
*
|
|
8
|
-
* jsValue → codec.
|
|
8
|
+
* jsValue → codec.toDataTypeValue → JsonValue → jsonToTsSource → TS source text
|
|
9
9
|
*
|
|
10
|
-
* Stage 1 (`codec.
|
|
10
|
+
* Stage 1 (`codec.toDataTypeValue`, whose value holds the stored JSON) is a codec and data type responsibility — date serialization,
|
|
11
11
|
* opaque domain types (vector, bigint, uuid), JSON canonicalization. Stage 2
|
|
12
12
|
* (this module) is a pure JSON-to-TS printer that must never grow type-specific
|
|
13
13
|
* branches.
|
|
14
14
|
*
|
|
15
15
|
* To render a non-JSON JS value (Date, Vector, BigInt, Buffer, …), encode it
|
|
16
|
-
* through the relevant codec's `
|
|
16
|
+
* through the relevant codec's `toDataTypeValue` first. Adding special cases to
|
|
17
17
|
* this file is not the answer — that's what codecs are for.
|
|
18
|
+
*
|
|
19
|
+
* The file also exports `tsObjectSource` and `tsArraySource`, the object and
|
|
20
|
+
* array layouts `jsonToTsSource` uses, for callers that render some values
|
|
21
|
+
* themselves.
|
|
18
22
|
*/
|
|
19
23
|
type JsonValue = string | number | boolean | null | readonly JsonValue[] | JsonObject;
|
|
20
24
|
type JsonObject = {
|
|
@@ -29,6 +33,10 @@ type JsonObject = {
|
|
|
29
33
|
* Non-JSON values (Date, Symbol, Function, etc.) throw at runtime.
|
|
30
34
|
*/
|
|
31
35
|
declare function jsonToTsSource(value: unknown): string;
|
|
36
|
+
/** An object literal from entries whose values are already TypeScript source, laid out as `jsonToTsSource` lays out objects. */
|
|
37
|
+
declare function tsObjectSource(entries: readonly (readonly [key: string, source: string])[]): string;
|
|
38
|
+
/** An array literal from items that are already TypeScript source, laid out as `jsonToTsSource` lays out arrays. */
|
|
39
|
+
declare function tsArraySource(items: readonly string[]): string;
|
|
32
40
|
//#endregion
|
|
33
41
|
//#region src/ts-expression.d.ts
|
|
34
42
|
/**
|
|
@@ -122,7 +130,8 @@ declare function renderImports(requirements: readonly ImportRequirement[]): stri
|
|
|
122
130
|
*
|
|
123
131
|
* `JSON.stringify` already escapes quotes, backslashes, and control characters
|
|
124
132
|
* exactly as TypeScript needs; it leaves U+2028/U+2029 unescaped, which legacy
|
|
125
|
-
* parsers treat as line terminators,
|
|
133
|
+
* parsers treat as line terminators, and DEL (U+007F), which is invisible, so
|
|
134
|
+
* those are escaped explicitly.
|
|
126
135
|
*
|
|
127
136
|
* Used for both value literals (`jsonToTsSource`) and type-level literals /
|
|
128
137
|
* property keys (the contract emitter), so a physical name that a store admits
|
|
@@ -130,6 +139,14 @@ declare function renderImports(requirements: readonly ImportRequirement[]): stri
|
|
|
130
139
|
* way everywhere.
|
|
131
140
|
*/
|
|
132
141
|
declare function tsStringLiteral(value: string): string;
|
|
142
|
+
/**
|
|
143
|
+
* TypeScript source for a string: an untagged template literal when the text holds both quote kinds, so neither quote
|
|
144
|
+
* is escaped; otherwise `tsStringLiteral(text)`. Text holding a control character (below U+0020, or U+007F), U+2028,
|
|
145
|
+
* U+2029 or a lone surrogate is always `tsStringLiteral(text)`.
|
|
146
|
+
*/
|
|
147
|
+
declare function tsQuotedTextSource(text: string): string;
|
|
148
|
+
/** `text` escaped for the inside of a TypeScript template literal: `\`, a backtick and `${` are escaped; nothing else is. */
|
|
149
|
+
declare function tsTemplateText(text: string): string;
|
|
133
150
|
//#endregion
|
|
134
|
-
export { jsonToTsSource as a, TsExpression as i, JsonObject as n, renderImports as o, JsonValue as r,
|
|
135
|
-
//# sourceMappingURL=index-
|
|
151
|
+
export { jsonToTsSource as a, tsObjectSource as c, tsTemplateText as d, TsExpression as i, tsQuotedTextSource as l, JsonObject as n, renderImports as o, JsonValue as r, tsArraySource as s, ImportRequirement as t, tsStringLiteral as u };
|
|
152
|
+
//# sourceMappingURL=index-MU-ksXsh.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-MU-ksXsh.d.mts","names":[],"sources":["../../../../1-framework/1-core/ts-render/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;KAqBK,wDAAwD,cAAc;KACtE;YACO,cAAc;;;;;;;;;;iBAUT,eAAe;;iBAEf,eAAe,6BAA6B,aAAa;;iBAEzD,cAAc;;;;;;;;;;;;;;;;;;;;UAoBrB;WACC;WACA;WACA;WACA,aAAa,SAAS;WACtB;WACA;;;;;;;;;;uBAUY;WACZ;WACA,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgDzB,cAAc,uBAAuB;;;;;;;;;;;;;;;;iBAgBrC,gBAAgB;;;;;;iBAMhB,mBAAmB;;iBAEnB,eAAe"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region ../../../1-framework/0-foundation/utils/dist/internal-error.d.mts
|
|
2
2
|
//#region src/internal-error.d.ts
|
|
3
3
|
/**
|
|
4
|
-
* A bug in Prisma
|
|
4
|
+
* A bug in Prisma 8, not a user error. Never catch this except at the
|
|
5
5
|
* outermost boundary for crash reporting — an InternalError means an invariant
|
|
6
6
|
* broke and the process cannot reliably continue. User-facing failures use
|
|
7
7
|
* `structuredError` with a dotted code instead.
|
|
@@ -16,4 +16,4 @@ declare function isInternalError(e: unknown): e is InternalError;
|
|
|
16
16
|
declare function assertNever(value: never, message?: string): never;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { assertNever as n, isInternalError as r, InternalError as t };
|
|
19
|
-
//# sourceMappingURL=internal-error-
|
|
19
|
+
//# sourceMappingURL=internal-error-2fJ9fcZX.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-error-
|
|
1
|
+
{"version":3,"file":"internal-error-2fJ9fcZX.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/utils/dist/internal-error.d.mts"],"mappings":";;;;;;;;cAOc,sBAAsB;WACzB;EACT,YAAY,iBAAiB;aAClB;;;iBAGI,gBAAgB,aAAa,KAAK;iBAClC,YAAY,cAAc"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//#region ../../../1-framework/0-foundation/utils/dist/internal-error-
|
|
1
|
+
//#region ../../../1-framework/0-foundation/utils/dist/internal-error-ChGYPVpq.mjs
|
|
2
2
|
/**
|
|
3
|
-
* A bug in Prisma
|
|
3
|
+
* A bug in Prisma 8, not a user error. Never catch this except at the
|
|
4
4
|
* outermost boundary for crash reporting — an InternalError means an invariant
|
|
5
5
|
* broke and the process cannot reliably continue. User-facing failures use
|
|
6
6
|
* `structuredError` with a dotted code instead.
|
|
@@ -21,4 +21,4 @@ function assertNever(value, message) {
|
|
|
21
21
|
//#endregion
|
|
22
22
|
export { assertNever as n, isInternalError as r, InternalError as t };
|
|
23
23
|
|
|
24
|
-
//# sourceMappingURL=internal-error-
|
|
24
|
+
//# sourceMappingURL=internal-error-ChGYPVpq-DhUD05u0.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-error-ChGYPVpq-DhUD05u0.mjs","names":[],"sources":["../../../../1-framework/0-foundation/utils/dist/internal-error-ChGYPVpq.mjs"],"sourcesContent":["//#region src/internal-error.ts\n/**\n* A bug in Prisma 8, not a user error. Never catch this except at the\n* outermost boundary for crash reporting — an InternalError means an invariant\n* broke and the process cannot reliably continue. User-facing failures use\n* `structuredError` with a dotted code instead.\n*/\nvar InternalError = class extends Error {\n\tisPrismaInternalError = true;\n\tconstructor(message, options) {\n\t\tsuper(message, options?.cause !== void 0 ? { cause: options.cause } : void 0);\n\t\tthis.name = \"InternalError\";\n\t}\n};\nfunction isInternalError(e) {\n\treturn typeof e === \"object\" && e !== null && \"isPrismaInternalError\" in e && e.isPrismaInternalError === true;\n}\nfunction assertNever(value, message) {\n\tthrow new InternalError(message ?? `Unreachable: unexpected value ${String(value)}`);\n}\n//#endregion\nexport { assertNever as n, isInternalError as r, InternalError as t };\n\n//# sourceMappingURL=internal-error-ChGYPVpq.mjs.map"],"mappings":";;;;;;;AAOA,IAAI,gBAAgB,cAAc,MAAM;CACvC,wBAAwB;CACxB,YAAY,SAAS,SAAS;EAC7B,MAAM,SAAS,SAAS,UAAU,KAAK,IAAI,EAAE,OAAO,QAAQ,MAAM,IAAI,KAAK,CAAC;EAC5E,KAAK,OAAO;CACb;AACD;AACA,SAAS,gBAAgB,GAAG;CAC3B,OAAO,OAAO,MAAM,YAAY,MAAM,QAAQ,2BAA2B,KAAK,EAAE,0BAA0B;AAC3G;AACA,SAAS,YAAY,OAAO,SAAS;CACpC,MAAM,IAAI,cAAc,WAAW,iCAAiC,OAAO,KAAK,GAAG;AACpF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Q as StorageNamespace, Y as StorageBase, n as ApplicationDomain } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
2
|
import { Type } from "arktype";
|
|
3
3
|
//#region ../../../1-framework/1-core/framework-components/dist/ir.d.mts
|
|
4
4
|
//#region src/ir/ir-node.d.ts
|
|
@@ -27,7 +27,7 @@ import { Type } from "arktype";
|
|
|
27
27
|
* lives in the free `freezeNode` helper below. Keeping `freezeNode` out
|
|
28
28
|
* of the class type means an emitted contract literal type
|
|
29
29
|
* (`{ readonly kind: 'mongo-collection', ... }` or an unkeyed literal
|
|
30
|
-
* like `{
|
|
30
|
+
* like `{ dataType, codecId, nullable }`) is structurally assignable
|
|
31
31
|
* to its class type — a `protected freeze()` instance method would
|
|
32
32
|
* otherwise leak into the public type surface and require the literal
|
|
33
33
|
* to carry it too.
|
|
@@ -296,8 +296,9 @@ declare function promoteBuiltinKinds<TView>(entries: Readonly<Record<string, unk
|
|
|
296
296
|
declare function buildSingleNamespaceView<TView>(storage: Storage, builtinKinds: readonly string[]): TView;
|
|
297
297
|
/**
|
|
298
298
|
* Builds the namespace-keyed entity-view map (`{ <nsId>: SingleNamespaceView }`)
|
|
299
|
-
* for every namespace in the storage, keyed by raw namespace id.
|
|
300
|
-
* `buildNamespacedEnums(domain)
|
|
299
|
+
* for every namespace in the storage, keyed by raw namespace id. It is the storage-side
|
|
300
|
+
* counterpart of `buildNamespacedEnums(domain, codecFor)`, which builds the same map of enum
|
|
301
|
+
* accessors from the domain, reading each enum through the codec `codecFor` returns.
|
|
301
302
|
*/
|
|
302
303
|
declare function buildNamespacedEntities<TMap>(storage: Storage, builtinKinds: readonly string[]): TMap;
|
|
303
304
|
//#endregion
|
|
@@ -356,4 +357,4 @@ interface StorageType extends IRNode {
|
|
|
356
357
|
}
|
|
357
358
|
//#endregion
|
|
358
359
|
export { promoteBuiltinKinds as S, domainElementCoordinates as _, IRNode as a, freezeNode as b, NamespaceBase as c, Storage as d, StorageType as f, coordinateKey as g, buildSingleNamespaceView as h, EntityKindDescriptor as i, NamespacedEntities as l, buildNamespacedEntities as m, DefaultNamespaceEntries as n, IRNodeBase as o, UNBOUND_NAMESPACE_ID as p, EntityCoordinate as r, Namespace as s, AnyEntityKindDescriptor as t, SingleNamespaceView as u, elementCoordinates as v, hydrateNamespaceEntities as x, entityAt as y };
|
|
359
|
-
//# sourceMappingURL=ir-
|
|
360
|
+
//# sourceMappingURL=ir-LV4tXsw3.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ir-
|
|
1
|
+
{"version":3,"file":"ir-LV4tXsw3.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/ir.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA4CU;WACC;;uBAEY,sBAAsB;oBACzB;;;;;;;;;;;iBAWH,WAAW,UAAU,QAAQ,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;cA0B1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiCJ,kBAAkB,QAAQ;WACzB;WACA,SAAS,SAAS,eAAe,SAAS;;;;;;;WAO1C;;uBAEY,sBAAsB,sBAAsB;oBAC/C;oBACA,SAAS,SAAS,eAAe,SAAS;oBAC1C;;;;;;MAMd;;;;;;;;;;;;;;;;;;;;UAoBI;WACC;WACA;WACA;WACA;;;;;;;;;;;;;iBAaM,mBAAmB,SAAS,KAAK,6BAA6B,UAAU;;;;;;;;;;;;;;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