@iota-uz/sdk 0.46.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/client-host/identity.d.ts +4 -4
- package/dist/client-host/identity.js +2 -2
- package/dist/lens/{CascadePanel-Bha4qY7J.js → CascadePanel-BlYJd18G.js} +1 -1
- package/dist/lens/{ChartDataEquivalent-Bwgn4yYB.js → ChartDataEquivalent-B6xSOdzC.js} +1 -1
- package/dist/lens/{ChartPanel-BZpzBuwl.js → ChartPanel-BIJjrs5D.js} +159 -159
- package/dist/lens/{CoveragePanel-D40AuKkD.js → CoveragePanel-CHtXDMtt.js} +1 -1
- package/dist/lens/{GaugePanel-C9k2TuJH.js → GaugePanel-By0TOJPa.js} +1 -1
- package/dist/lens/LensDashboard.d.ts +13 -0
- package/dist/lens/LensDashboard.d.ts.map +1 -1
- package/dist/lens/{MapPanel-ZYxfDsPM.js → MapPanel-Cw4ELCiM.js} +3 -3
- package/dist/lens/{MetricFlowPanel-CmESLoLK.js → MetricFlowPanel-Gr5wi3nI.js} +2 -2
- package/dist/lens/{MetricHierarchyPanel-UZVuJ5P2.js → MetricHierarchyPanel-VLA_5LXX.js} +2 -2
- package/dist/lens/{MetricRelationshipPanel-CXLdScAy.js → MetricRelationshipPanel-DFP566_c.js} +2 -2
- package/dist/lens/{PrintReport-lrfdCTZO.js → PrintReport-C0OV1iHP.js} +5 -5
- package/dist/lens/{QualityChip-BYz-DHfs.js → QualityChip-DTi-0jdh.js} +1 -1
- package/dist/lens/SaveInvestigation-CX1Abyl8.js +309 -0
- package/dist/lens/TablePanel-BusKU7cU.js +994 -0
- package/dist/lens/{adapter-CeAqYWqm.js → adapter-CQg4-M7p.js} +7 -7
- package/dist/lens/contract/schemas.d.ts +2 -0
- package/dist/lens/contract/schemas.d.ts.map +1 -1
- package/dist/lens/contract/types.d.ts +12 -0
- package/dist/lens/contract/types.d.ts.map +1 -1
- package/dist/lens/{dashboardEdit-DKVE_6J_.js → dashboardEdit-CJgCVfi_.js} +1 -1
- package/dist/lens/explore/DrillOverlay.d.ts +38 -0
- package/dist/lens/explore/DrillOverlay.d.ts.map +1 -1
- package/dist/lens/explore/ExplorePanel.d.ts.map +1 -1
- package/dist/lens/explore/SaveInvestigation.d.ts +21 -0
- package/dist/lens/explore/SaveInvestigation.d.ts.map +1 -0
- package/dist/lens/explore/drillHost.d.ts +25 -0
- package/dist/lens/explore/drillHost.d.ts.map +1 -0
- package/dist/lens/explore/investigation.d.ts +174 -0
- package/dist/lens/explore/investigation.d.ts.map +1 -0
- package/dist/lens/explore/provenanceLabels.d.ts +10 -0
- package/dist/lens/explore/provenanceLabels.d.ts.map +1 -0
- package/dist/lens/index-DR7Hf8Km.js +19805 -0
- package/dist/lens/{index-DkVTXC8W.js → index-DZFw4cqF.js} +1 -1
- package/dist/lens/index.d.ts +7 -1
- package/dist/lens/index.d.ts.map +1 -1
- package/dist/lens/index.js +67 -53
- package/dist/lens/{install-CQ_iMuAE.js → install-B2lTK6uo.js} +1 -1
- package/dist/lens/{install-Ch0_qifK.js → install-BXr4Mnc0.js} +1 -1
- package/dist/lens/{install-CKmxqMe1.js → install-CicNQ_ks.js} +1 -1
- package/dist/lens/{install-BwD_xNlp.js → install-d8A0WPiw.js} +1 -1
- package/dist/lens/{keys-BBmWdfaH.js → keys-C-Akc9lZ.js} +2 -2
- package/dist/lens/panels/ChartPanel.d.ts.map +1 -1
- package/dist/lens/panels/TablePanel.d.ts.map +1 -1
- package/dist/lens/panels/actions.d.ts.map +1 -1
- package/dist/lens/panels/panelFailure.d.ts.map +1 -1
- package/dist/lens/{prefetch-BXoUIIgq.js → prefetch-C9kxuIs8.js} +2 -2
- package/dist/lens/{prefetchPanels-a-zs_bDm.js → prefetchPanels-gbY9RIqL.js} +1 -1
- package/dist/lens/{print-CpgWJxDG.js → print-CllsAP3d.js} +1 -1
- package/dist/lens/reports/ReportCompositionEditor.d.ts +8 -2
- package/dist/lens/reports/ReportCompositionEditor.d.ts.map +1 -1
- package/dist/lens/reports/ReportDefinitionEditor.d.ts +54 -0
- package/dist/lens/reports/ReportDefinitionEditor.d.ts.map +1 -0
- package/dist/lens/reports/ReportPicker.d.ts +6 -0
- package/dist/lens/reports/ReportPicker.d.ts.map +1 -1
- package/dist/lens/reports/dashboardEdit.d.ts +3 -0
- package/dist/lens/reports/dashboardEdit.d.ts.map +1 -1
- package/dist/lens/reports/editing.d.ts +35 -0
- package/dist/lens/reports/editing.d.ts.map +1 -1
- package/dist/lens/reports/picker.d.ts +4 -1
- package/dist/lens/reports/picker.d.ts.map +1 -1
- package/dist/lens/runtime/index.d.ts +0 -1
- package/dist/lens/runtime/index.d.ts.map +1 -1
- package/dist/lens/runtime/messages.d.ts +2 -2
- package/dist/lens/runtime/messages.d.ts.map +1 -1
- package/dist/lens/runtime/provider.d.ts +5 -1
- package/dist/lens/runtime/provider.d.ts.map +1 -1
- package/dist/lens/runtime/returnContext.d.ts +62 -0
- package/dist/lens/runtime/returnContext.d.ts.map +1 -0
- package/dist/lens/runtime/tableSummary.d.ts +9 -0
- package/dist/lens/runtime/tableSummary.d.ts.map +1 -0
- package/dist/lens/{scales-BLf9OweG.js → scales-CO6Q9RtG.js} +1 -1
- package/dist/lens/style.css +1 -1
- package/dist/runtime/README.md +24 -0
- package/dist/runtime/assert.d.ts +51 -0
- package/dist/runtime/assert.js +172 -0
- package/dist/runtime/build/README.txt +1 -0
- package/dist/runtime/build/extract.mjs +342 -0
- package/dist/runtime/build/shared-exports.json +388 -0
- package/dist/runtime/build/test-child.mjs +136 -0
- package/dist/runtime/build/theme/tailwind.config.js +121 -0
- package/dist/runtime/build/theme/theme.css +462 -0
- package/dist/runtime/build/theme/utilities.css +1 -0
- package/dist/runtime/build/vendor/lib/lib.d.ts +22 -0
- package/dist/runtime/build/vendor/lib/lib.decorators.d.ts +384 -0
- package/dist/runtime/build/vendor/lib/lib.decorators.legacy.d.ts +22 -0
- package/dist/runtime/build/vendor/lib/lib.dom.asynciterable.d.ts +41 -0
- package/dist/runtime/build/vendor/lib/lib.dom.d.ts +28983 -0
- package/dist/runtime/build/vendor/lib/lib.dom.iterable.d.ts +491 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.collection.d.ts +147 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.core.d.ts +597 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.d.ts +28 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.generator.d.ts +77 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.iterable.d.ts +590 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.promise.d.ts +81 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.proxy.d.ts +128 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.reflect.d.ts +144 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.symbol.d.ts +46 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
- package/dist/runtime/build/vendor/lib/lib.es2016.array.include.d.ts +116 -0
- package/dist/runtime/build/vendor/lib/lib.es2016.d.ts +21 -0
- package/dist/runtime/build/vendor/lib/lib.es2016.full.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.es2016.intl.d.ts +31 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.arraybuffer.d.ts +21 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.d.ts +26 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.date.d.ts +31 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.full.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.intl.d.ts +44 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.object.d.ts +49 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.sharedmemory.d.ts +135 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.string.d.ts +45 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.typedarrays.d.ts +53 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.asyncgenerator.d.ts +77 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.asynciterable.d.ts +53 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.intl.d.ts +83 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.promise.d.ts +30 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.regexp.d.ts +37 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.array.d.ts +79 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.intl.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.object.d.ts +33 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.string.d.ts +37 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.symbol.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.bigint.d.ts +731 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.d.ts +27 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.date.d.ts +42 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.intl.d.ts +474 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.number.d.ts +28 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.promise.d.ts +47 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.sharedmemory.d.ts +99 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.string.d.ts +44 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.intl.d.ts +166 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.promise.d.ts +48 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.string.d.ts +33 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.weakref.d.ts +78 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.array.d.ts +121 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.d.ts +25 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.error.d.ts +75 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.intl.d.ts +121 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.object.d.ts +26 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.regexp.d.ts +39 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.string.d.ts +25 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.array.d.ts +924 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.collection.d.ts +21 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.d.ts +22 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.intl.d.ts +56 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.arraybuffer.d.ts +65 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.collection.d.ts +29 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.d.ts +26 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.object.d.ts +29 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.promise.d.ts +35 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.regexp.d.ts +25 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.sharedmemory.d.ts +68 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.string.d.ts +29 -0
- package/dist/runtime/build/vendor/lib/lib.es5.d.ts +4585 -0
- package/dist/runtime/build/vendor/lib/lib.es6.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.array.d.ts +35 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.collection.d.ts +96 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.d.ts +25 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.decorators.d.ts +28 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.disposable.d.ts +193 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.intl.d.ts +21 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.iterator.d.ts +148 -0
- package/dist/runtime/build/vendor/node-types/assert/strict.d.ts +111 -0
- package/dist/runtime/build/vendor/node-types/assert.d.ts +1115 -0
- package/dist/runtime/build/vendor/node-types/async_hooks.d.ts +619 -0
- package/dist/runtime/build/vendor/node-types/buffer.buffer.d.ts +477 -0
- package/dist/runtime/build/vendor/node-types/buffer.d.ts +1941 -0
- package/dist/runtime/build/vendor/node-types/child_process.d.ts +1480 -0
- package/dist/runtime/build/vendor/node-types/cluster.d.ts +578 -0
- package/dist/runtime/build/vendor/node-types/compatibility/iterators.d.ts +21 -0
- package/dist/runtime/build/vendor/node-types/console.d.ts +453 -0
- package/dist/runtime/build/vendor/node-types/constants.d.ts +21 -0
- package/dist/runtime/build/vendor/node-types/crypto.d.ts +5484 -0
- package/dist/runtime/build/vendor/node-types/dgram.d.ts +715 -0
- package/dist/runtime/build/vendor/node-types/diagnostics_channel.d.ts +576 -0
- package/dist/runtime/build/vendor/node-types/dns/promises.d.ts +503 -0
- package/dist/runtime/build/vendor/node-types/dns.d.ts +923 -0
- package/dist/runtime/build/vendor/node-types/domain.d.ts +166 -0
- package/dist/runtime/build/vendor/node-types/events.d.ts +967 -0
- package/dist/runtime/build/vendor/node-types/fs/promises.d.ts +1354 -0
- package/dist/runtime/build/vendor/node-types/fs.d.ts +4777 -0
- package/dist/runtime/build/vendor/node-types/globals.d.ts +170 -0
- package/dist/runtime/build/vendor/node-types/globals.typedarray.d.ts +41 -0
- package/dist/runtime/build/vendor/node-types/http.d.ts +2246 -0
- package/dist/runtime/build/vendor/node-types/http2.d.ts +2882 -0
- package/dist/runtime/build/vendor/node-types/https.d.ts +585 -0
- package/dist/runtime/build/vendor/node-types/index.d.ts +101 -0
- package/dist/runtime/build/vendor/node-types/inspector.d.ts +323 -0
- package/dist/runtime/build/vendor/node-types/inspector.generated.d.ts +4406 -0
- package/dist/runtime/build/vendor/node-types/module.d.ts +844 -0
- package/dist/runtime/build/vendor/node-types/net.d.ts +1197 -0
- package/dist/runtime/build/vendor/node-types/os.d.ts +507 -0
- package/dist/runtime/build/vendor/node-types/package.json +140 -0
- package/dist/runtime/build/vendor/node-types/path.d.ts +200 -0
- package/dist/runtime/build/vendor/node-types/perf_hooks.d.ts +1054 -0
- package/dist/runtime/build/vendor/node-types/process.d.ts +2101 -0
- package/dist/runtime/build/vendor/node-types/punycode.d.ts +117 -0
- package/dist/runtime/build/vendor/node-types/querystring.d.ts +152 -0
- package/dist/runtime/build/vendor/node-types/readline/promises.d.ts +161 -0
- package/dist/runtime/build/vendor/node-types/readline.d.ts +600 -0
- package/dist/runtime/build/vendor/node-types/repl.d.ts +438 -0
- package/dist/runtime/build/vendor/node-types/sea.d.ts +162 -0
- package/dist/runtime/build/vendor/node-types/sqlite.d.ts +1182 -0
- package/dist/runtime/build/vendor/node-types/stream/consumers.d.ts +45 -0
- package/dist/runtime/build/vendor/node-types/stream/promises.d.ts +90 -0
- package/dist/runtime/build/vendor/node-types/stream/web.d.ts +596 -0
- package/dist/runtime/build/vendor/node-types/stream.d.ts +1707 -0
- package/dist/runtime/build/vendor/node-types/string_decoder.d.ts +67 -0
- package/dist/runtime/build/vendor/node-types/test.d.ts +2656 -0
- package/dist/runtime/build/vendor/node-types/timers/promises.d.ts +108 -0
- package/dist/runtime/build/vendor/node-types/timers.d.ts +285 -0
- package/dist/runtime/build/vendor/node-types/tls.d.ts +1314 -0
- package/dist/runtime/build/vendor/node-types/trace_events.d.ts +197 -0
- package/dist/runtime/build/vendor/node-types/ts5.6/buffer.buffer.d.ts +473 -0
- package/dist/runtime/build/vendor/node-types/ts5.6/compatibility/float16array.d.ts +71 -0
- package/dist/runtime/build/vendor/node-types/ts5.6/globals.typedarray.d.ts +36 -0
- package/dist/runtime/build/vendor/node-types/ts5.6/index.d.ts +103 -0
- package/dist/runtime/build/vendor/node-types/ts5.7/compatibility/float16array.d.ts +72 -0
- package/dist/runtime/build/vendor/node-types/ts5.7/index.d.ts +103 -0
- package/dist/runtime/build/vendor/node-types/tty.d.ts +209 -0
- package/dist/runtime/build/vendor/node-types/url.d.ts +1103 -0
- package/dist/runtime/build/vendor/node-types/util.d.ts +2379 -0
- package/dist/runtime/build/vendor/node-types/v8.d.ts +1010 -0
- package/dist/runtime/build/vendor/node-types/vm.d.ts +1160 -0
- package/dist/runtime/build/vendor/node-types/wasi.d.ts +202 -0
- package/dist/runtime/build/vendor/node-types/web-globals/abortcontroller.d.ts +34 -0
- package/dist/runtime/build/vendor/node-types/web-globals/crypto.d.ts +32 -0
- package/dist/runtime/build/vendor/node-types/web-globals/domexception.d.ts +68 -0
- package/dist/runtime/build/vendor/node-types/web-globals/events.d.ts +97 -0
- package/dist/runtime/build/vendor/node-types/web-globals/fetch.d.ts +62 -0
- package/dist/runtime/build/vendor/node-types/web-globals/navigator.d.ts +25 -0
- package/dist/runtime/build/vendor/node-types/web-globals/storage.d.ts +24 -0
- package/dist/runtime/build/vendor/node-types/web-globals/streams.d.ts +22 -0
- package/dist/runtime/build/vendor/node-types/worker_threads.d.ts +894 -0
- package/dist/runtime/build/vendor/node-types/zlib.d.ts +768 -0
- package/dist/runtime/build/vendor/node_modules/csstype/LICENSE +19 -0
- package/dist/runtime/build/vendor/node_modules/csstype/index.d.ts +22569 -0
- package/dist/runtime/build/vendor/node_modules/csstype/index.js.flow +6863 -0
- package/dist/runtime/build/vendor/node_modules/csstype/package.json +70 -0
- package/dist/runtime/build/vendor/node_modules/seroval/LICENSE +7 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/cjs/development/index.cjs +4232 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/cjs/production/index.cjs +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/esm/development/index.mjs +4209 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/esm/production/index.mjs +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/Serializer.d.ts +28 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/base-primitives.d.ts +28 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/compat.d.ts +15 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/constants.d.ts +105 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/constructors.d.ts +50 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/async-parser.d.ts +20 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/deserializer.d.ts +52 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/parser.d.ts +62 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/serializer.d.ts +103 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/sync-parser.d.ts +61 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/cross/index.d.ts +24 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/errors.d.ts +47 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/function-string.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/keys.d.ts +4 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/literals.d.ts +10 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/node.d.ts +8 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/opaque-reference.d.ts +9 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/plugin.d.ts +52 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/reference.d.ts +6 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/sequence.d.ts +11 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/special-reference.d.ts +16 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/stream.d.ts +17 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/string.d.ts +4 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/symbols.d.ts +14 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/tree/index.d.ts +21 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/types.d.ts +233 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/error.d.ts +6 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/get-identifier.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/get-object-flag.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/is-valid-identifier.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/promise-to-result.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/typed-array.d.ts +6 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/valid-properties.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/index.d.ts +18 -0
- package/dist/runtime/build/vendor/node_modules/seroval/package.json +67 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/Serializer.ts +119 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/base-primitives.ts +537 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/compat.ts +23 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/constants.ts +202 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/constructors.ts +265 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/async-parser.ts +666 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/deserializer.ts +832 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/parser.ts +335 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/serializer.ts +1524 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/sync-parser.ts +943 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/cross/index.ts +190 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/errors.ts +196 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/function-string.ts +31 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/keys.ts +17 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/literals.ts +43 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/node.ts +40 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/opaque-reference.ts +9 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/plugin.ts +105 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/reference.ts +66 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/sequence.ts +59 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/special-reference.ts +42 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/stream.ts +71 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/string.ts +86 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/symbols.ts +20 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/tree/index.ts +134 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/types.ts +377 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/error.ts +73 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/get-identifier.ts +18 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/get-object-flag.ts +14 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/is-valid-identifier.ts +12 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/promise-to-result.ts +9 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/typed-array.ts +56 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/valid-properties.ts +34 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/index.ts +36 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/LICENSE +7 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/cjs/development/web.cjs +826 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/cjs/production/web.cjs +1 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/esm/development/web.mjs +803 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/esm/production/web.mjs +1 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/abort-signal.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/blob.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/custom-event.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/dom-exception.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/event.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/file.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/form-data.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/headers.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/image-data.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/index.d.ts +15 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/readable-stream.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/request.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/response.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/url-search-params.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/url.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/package.json +70 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/abort-signal.ts +131 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/blob.ts +41 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/custom-event.ts +66 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/dom-exception.ts +57 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/event.ts +62 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/file.ts +50 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/form-data.ts +105 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/headers.ts +49 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/image-data.ts +74 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/index.ts +14 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/readable-stream.ts +148 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/request.ts +82 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/response.ts +65 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/url-search-params.ts +40 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/url.ts +37 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/dist/server.cjs +824 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/dist/server.js +770 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/dist/solid.cjs +1808 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/dist/solid.js +1753 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/jsx-runtime.d.ts +1 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/package.json +243 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/server.cjs +133 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/server.js +121 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/store.cjs +463 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/store.js +454 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/package.json +46 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/index.d.ts +12 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/modifiers.d.ts +6 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/mutable.d.ts +5 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/server.d.ts +17 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/store.d.ts +108 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/index.d.ts +23 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/jsx.d.ts +4253 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/array.d.ts +44 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/observable.d.ts +36 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/scheduler.d.ts +10 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/signal.d.ts +581 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/Suspense.d.ts +26 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/component.d.ts +111 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/flow.d.ts +118 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/hydration.d.ts +24 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/index.d.ts +4 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/server/index.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/server/reactive.d.ts +98 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/server/rendering.d.ts +160 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/server.cjs +900 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/server.js +786 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/web.cjs +884 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/web.js +772 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/package.json +46 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/dist/storage.cjs +12 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/dist/storage.js +10 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/package.json +15 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/types/index.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/client.d.ts +93 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/core.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/index.d.ts +50 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/jsx.d.ts +1 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/server-mock.d.ts +65 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/server.d.ts +187 -0
- package/dist/runtime/build/worker.mjs +293415 -0
- package/dist/runtime/catalog/sdk-natives.json +655 -0
- package/dist/runtime/cli/iota-ext.mjs +1028 -0
- package/dist/runtime/client-host/entry.d.ts +10 -0
- package/dist/runtime/client-host/entry.js +124 -0
- package/dist/runtime/client-host/hooks.d.ts +43 -0
- package/dist/runtime/client-host/hooks.js +94 -0
- package/dist/runtime/client-host/index.d.ts +9 -0
- package/dist/runtime/client-host/index.js +9 -0
- package/dist/runtime/client-host/islands.d.ts +44 -0
- package/dist/runtime/client-host/islands.js +165 -0
- package/dist/runtime/client-host/kit.d.ts +10 -0
- package/dist/runtime/client-host/kit.js +37 -0
- package/dist/runtime/client-host/page.d.ts +53 -0
- package/dist/runtime/client-host/page.js +217 -0
- package/dist/runtime/client-host/params.d.ts +8 -0
- package/dist/runtime/client-host/params.js +36 -0
- package/dist/runtime/client-host/protocol.d.ts +78 -0
- package/dist/runtime/client-host/protocol.js +26 -0
- package/dist/runtime/client-host/shared.d.ts +12 -0
- package/dist/runtime/client-host/shared.js +49 -0
- package/dist/runtime/client-host/shell.d.ts +88 -0
- package/dist/runtime/client-host/shell.js +195 -0
- package/dist/runtime/client-host/slots.d.ts +54 -0
- package/dist/runtime/client-host/slots.js +90 -0
- package/dist/runtime/client-host/styles.d.ts +7 -0
- package/dist/runtime/client-host/styles.js +61 -0
- package/dist/runtime/client-host/transport.d.ts +45 -0
- package/dist/runtime/client-host/transport.js +115 -0
- package/dist/runtime/client.d.ts +226 -0
- package/dist/runtime/client.js +121 -0
- package/dist/runtime/contracts.d.ts +204 -0
- package/dist/runtime/contracts.js +195 -0
- package/dist/runtime/docs/authoring.md +1609 -0
- package/dist/runtime/docs/example/docs/en/admin/limits.md +10 -0
- package/dist/runtime/docs/example/docs/en/getting-started.md +13 -0
- package/dist/runtime/docs/example/docs/en/points.md +9 -0
- package/dist/runtime/docs/example/docs/ru/getting-started.md +12 -0
- package/dist/runtime/docs/example/package.json +27 -0
- package/dist/runtime/docs/example/src/ClientScreen.tsx +10 -0
- package/dist/runtime/docs/example/src/RedemptionScreen.tsx +7 -0
- package/dist/runtime/docs/example/src/RewardsScreen.module.css +13 -0
- package/dist/runtime/docs/example/src/RewardsScreen.tsx +51 -0
- package/dist/runtime/docs/example/src/client.tsx +40 -0
- package/dist/runtime/docs/example/src/contracts.ts +132 -0
- package/dist/runtime/docs/example/src/css-modules.d.ts +5 -0
- package/dist/runtime/docs/example/src/server.test.ts +156 -0
- package/dist/runtime/docs/example/src/server.ts +188 -0
- package/dist/runtime/docs/example/tsconfig.json +16 -0
- package/dist/runtime/entity.d.ts +237 -0
- package/dist/runtime/entity.js +201 -0
- package/dist/runtime/fakes.d.ts +80 -0
- package/dist/runtime/fakes.js +88 -0
- package/dist/runtime/fixtures.d.ts +34 -0
- package/dist/runtime/fixtures.js +60 -0
- package/dist/runtime/help.d.ts +22 -0
- package/dist/runtime/help.js +51 -0
- package/dist/runtime/host/context.mjs +392 -0
- package/dist/runtime/host/errors.mjs +64 -0
- package/dist/runtime/host/loader.mjs +28 -0
- package/dist/runtime/host/protocol.mjs +4 -0
- package/dist/runtime/host/register.mjs +8 -0
- package/dist/runtime/host/sdk/assert.mjs +153 -0
- package/dist/runtime/host/sdk/client-host/hooks.mjs +86 -0
- package/dist/runtime/host/sdk/client-host/protocol.mjs +30 -0
- package/dist/runtime/host/sdk/client-host/slots.mjs +82 -0
- package/dist/runtime/host/sdk/client-host/styles.mjs +45 -0
- package/dist/runtime/host/sdk/client-host/transport.mjs +102 -0
- package/dist/runtime/host/sdk/client.mjs +115 -0
- package/dist/runtime/host/sdk/contracts.mjs +185 -0
- package/dist/runtime/host/sdk/entity.mjs +183 -0
- package/dist/runtime/host/sdk/fakes.mjs +88 -0
- package/dist/runtime/host/sdk/fixtures.mjs +56 -0
- package/dist/runtime/host/sdk/help.mjs +37 -0
- package/dist/runtime/host/sdk/index.mjs +83 -0
- package/dist/runtime/host/sdk/kit.mjs +11 -0
- package/dist/runtime/host/sdk/manifest.mjs +276 -0
- package/dist/runtime/host/sdk/model.mjs +4 -0
- package/dist/runtime/host/sdk/resource.mjs +34 -0
- package/dist/runtime/host/sdk/schema.mjs +75 -0
- package/dist/runtime/host/sdk/server.mjs +43 -0
- package/dist/runtime/host/sdk/testhost.mjs +992 -0
- package/dist/runtime/host/sdk/testing.mjs +21 -0
- package/dist/runtime/host/sdk/wire.mjs +207 -0
- package/dist/runtime/host/worker.mjs +252 -0
- package/dist/runtime/index.d.ts +10 -0
- package/dist/runtime/index.js +5 -0
- package/dist/runtime/kit.d.ts +5 -0
- package/dist/runtime/kit.js +14 -0
- package/dist/runtime/manifest.d.ts +17 -0
- package/dist/runtime/manifest.js +323 -0
- package/dist/runtime/model.d.ts +224 -0
- package/dist/runtime/model.js +3 -0
- package/dist/runtime/resource.d.ts +31 -0
- package/dist/runtime/resource.js +35 -0
- package/dist/runtime/schema.d.ts +97 -0
- package/dist/runtime/schema.js +73 -0
- package/dist/runtime/server.d.ts +445 -0
- package/dist/runtime/server.js +41 -0
- package/dist/runtime/testhost.d.ts +216 -0
- package/dist/runtime/testhost.js +1146 -0
- package/dist/runtime/testing.d.ts +10 -0
- package/dist/runtime/testing.js +7 -0
- package/dist/runtime/wire.d.ts +26 -0
- package/dist/runtime/wire.js +236 -0
- package/dist/sdk-identity.cjs +3 -3
- package/dist/sdk-identity.js +3 -3
- package/dist/sdk-identity.json +2 -2
- package/dist/solid-ui/embedded-css.d.ts +2 -0
- package/dist/solid-ui/embedded-css.js +1 -0
- package/dist/solid-ui/embedded.css +2 -0
- package/dist/testing/components.d.ts +73 -0
- package/dist/testing/components.js +96 -0
- package/dist/testing/htmx.d.ts +44 -0
- package/dist/testing/htmx.js +284 -0
- package/dist/testing/index.d.ts +4 -41
- package/dist/testing/index.js +3 -206
- package/dist/testing/scenarios.d.ts +83 -0
- package/dist/testing/scenarios.js +74 -0
- package/dist/testing/wait.d.ts +7 -0
- package/dist/testing/wait.js +19 -0
- package/package.json +33 -2
- package/dist/lens/TablePanel-C09tzJOL.js +0 -980
- package/dist/lens/index-DcVtZneD.js +0 -18473
- package/dist/lens/runtime/recovery.d.ts +0 -26
- package/dist/lens/runtime/recovery.d.ts.map +0 -1
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { MANIFEST_SCHEMA } from "./model.mjs";
|
|
2
|
+
import { isBranded, isContract, isKitIssued } from "./resource.mjs";
|
|
3
|
+
class ManifestError extends Error {
|
|
4
|
+
problems;
|
|
5
|
+
constructor(problems) {
|
|
6
|
+
super(`invalid extension package:
|
|
7
|
+
${problems.map((p) => ` - ${p}`).join("\n")}`);
|
|
8
|
+
this.name = "ManifestError";
|
|
9
|
+
this.problems = problems;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
const NAMESPACE_PATTERN = /^[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*$/;
|
|
13
|
+
const ID_PATTERN = /^[a-z][a-z0-9]*(\.[a-z][a-zA-Z0-9_]*)+$/;
|
|
14
|
+
const CRON_PATTERN = /^(@[a-z]+|\S+(\s+\S+){4})$/;
|
|
15
|
+
const CLIENT_KINDS = /* @__PURE__ */ new Set(["page", "navigation", "slot", "cell", "shell"]);
|
|
16
|
+
const CHANNELS = ["sms", "email", "inApp", "push"];
|
|
17
|
+
const IMPLEMENTABLE = {
|
|
18
|
+
operation: () => "operation",
|
|
19
|
+
command: (c) => c.atomic === true ? "atomic" : "command",
|
|
20
|
+
query: () => "query",
|
|
21
|
+
workflow: () => "workflow",
|
|
22
|
+
contactResolver: () => "contactResolver",
|
|
23
|
+
deliveryPolicy: () => "deliveryPolicy"
|
|
24
|
+
};
|
|
25
|
+
function typeRefs(type, out) {
|
|
26
|
+
if (!type) return;
|
|
27
|
+
if (type.kind === "ref" && type.entity) out.push(type.entity);
|
|
28
|
+
type.properties?.forEach((p) => typeRefs(p.type, out));
|
|
29
|
+
typeRefs(type.items, out);
|
|
30
|
+
}
|
|
31
|
+
function referencedIds(r) {
|
|
32
|
+
const out = [];
|
|
33
|
+
r.fields?.forEach((f) => typeRefs(f.type, out));
|
|
34
|
+
for (const t of [r.input, r.output, r.params, r.payload, r.props]) typeRefs(t, out);
|
|
35
|
+
Object.values(r.signals ?? {}).forEach((t) => typeRefs(t, out));
|
|
36
|
+
out.push(...r.errors ?? []);
|
|
37
|
+
for (const id of [r.base, r.subject, r.permission, r.route, r.overlay]) if (id) out.push(id);
|
|
38
|
+
if ((r.kind === "slot" || r.kind === "cell") && r.target) out.push(r.target);
|
|
39
|
+
return out;
|
|
40
|
+
}
|
|
41
|
+
function checkNavigation(resources, namespace, inPackage, problems) {
|
|
42
|
+
const ids = new Set(resources.map((r) => r.id));
|
|
43
|
+
const groups = new Set(resources.flatMap((r) => r.kind === "navigation" ? (r.groups ?? []).map((g) => g.id) : []));
|
|
44
|
+
const known = (id) => ids.has(id) || groups.has(id);
|
|
45
|
+
for (const r of resources) {
|
|
46
|
+
const where = `resource "${r.id}"`;
|
|
47
|
+
if (r.nav?.group && inPackage(r.nav.group) && !groups.has(r.nav.group)) {
|
|
48
|
+
problems.push(`${where}: nav.group "${r.nav.group}" is not declared by a navigation(...) groups entry of "${namespace}"`);
|
|
49
|
+
}
|
|
50
|
+
if (r.nav?.parent && inPackage(r.nav.parent) && !known(r.nav.parent)) {
|
|
51
|
+
problems.push(`${where}: nav.parent "${r.nav.parent}" is not a page or group of "${namespace}"`);
|
|
52
|
+
}
|
|
53
|
+
for (const entry of r.palette ?? []) {
|
|
54
|
+
if (inPackage(entry.target) && !ids.has(entry.target)) {
|
|
55
|
+
problems.push(`${where}: palette entry "${entry.id}" targets "${entry.target}", which is not exported by "${namespace}"`);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
for (const patch of r.patches ?? []) {
|
|
59
|
+
for (const id of [patch.ref, patch.parent]) {
|
|
60
|
+
if (id && inPackage(id) && !known(id)) problems.push(`${where}: nav patch references "${id}", which is not declared by "${namespace}"`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const lowerFirst = (name) => name.charAt(0).toLowerCase() + name.slice(1);
|
|
66
|
+
const MAX_SCAN_DEPTH = 6;
|
|
67
|
+
function nestedBranded(value, seen = /* @__PURE__ */ new Set(), depth = 0) {
|
|
68
|
+
if (typeof value !== "object" || value === null || depth > MAX_SCAN_DEPTH || seen.has(value)) return void 0;
|
|
69
|
+
seen.add(value);
|
|
70
|
+
const proto = Object.getPrototypeOf(value);
|
|
71
|
+
if (!Array.isArray(value) && proto !== Object.prototype && proto !== null) return void 0;
|
|
72
|
+
for (const [key, inner] of Object.entries(value)) {
|
|
73
|
+
if (isBranded(inner)) return key;
|
|
74
|
+
const found = nestedBranded(inner, seen, depth + 1);
|
|
75
|
+
if (found !== void 0) return `${key}.${found}`;
|
|
76
|
+
}
|
|
77
|
+
return void 0;
|
|
78
|
+
}
|
|
79
|
+
function collectManifest(input) {
|
|
80
|
+
const problems = [];
|
|
81
|
+
const { namespace } = input;
|
|
82
|
+
const inPackage = (id) => id === namespace || id.startsWith(`${namespace}.`);
|
|
83
|
+
if (!NAMESPACE_PATTERN.test(namespace)) problems.push(`invalid namespace "${namespace}"`);
|
|
84
|
+
const owned = /* @__PURE__ */ new Map();
|
|
85
|
+
const claim = (id, where) => {
|
|
86
|
+
if (!ID_PATTERN.test(id)) {
|
|
87
|
+
problems.push(`${where}: invalid id "${id}"`);
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
if (!id.startsWith(`${namespace}.`)) {
|
|
91
|
+
problems.push(`${where}: id "${id}" is outside namespace "${namespace}"`);
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
const prior = owned.get(id);
|
|
95
|
+
if (prior !== void 0) {
|
|
96
|
+
problems.push(`${where}: id "${id}" is already declared by ${prior}`);
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
owned.set(id, where);
|
|
100
|
+
return true;
|
|
101
|
+
};
|
|
102
|
+
const resources = [];
|
|
103
|
+
const seen = /* @__PURE__ */ new Set();
|
|
104
|
+
const declared = (id, where) => {
|
|
105
|
+
if (!resources.some((r) => r.id === id)) problems.push(`${where}: references "${id}" which is not exported by the contracts graph`);
|
|
106
|
+
};
|
|
107
|
+
const external = (c, where) => {
|
|
108
|
+
if (!isKitIssued(c)) problems.push(`${where}: "${c.id}" is marked foreign but was not issued by the developer kit`);
|
|
109
|
+
else if (inPackage(c.id)) problems.push(`${where}: kit contract "${c.id}" is inside this package's own namespace "${namespace}"`);
|
|
110
|
+
};
|
|
111
|
+
const reference = (c, where) => {
|
|
112
|
+
if (c.foreign) external(c, where);
|
|
113
|
+
else if (!inPackage(c.id)) problems.push(`${where}: "${c.id}" is outside namespace "${namespace}"; contracts of other packages come from the developer kit`);
|
|
114
|
+
else declared(c.id, where);
|
|
115
|
+
};
|
|
116
|
+
const collectResources = (graph, ns) => {
|
|
117
|
+
for (const [name, value] of Object.entries(ns)) {
|
|
118
|
+
const where = `${graph} export "${name}"`;
|
|
119
|
+
if (!isBranded(value)) {
|
|
120
|
+
const inner = nestedBranded(value);
|
|
121
|
+
if (inner !== void 0) problems.push(`${where}: contains "${inner}"; export resources as top-level named exports`);
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
if (!isContract(value)) {
|
|
125
|
+
problems.push(`${where}: server value exported from the ${graph} graph`);
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
if (seen.has(value)) continue;
|
|
129
|
+
seen.add(value);
|
|
130
|
+
if (value.foreign) {
|
|
131
|
+
external(value, where);
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
134
|
+
const isClient = CLIENT_KINDS.has(value.kind) && !(value.kind === "slot" && value.resource.target === void 0);
|
|
135
|
+
if (graph === "contracts" && isClient) {
|
|
136
|
+
problems.push(`${where}: ${value.kind} belongs to the client graph`);
|
|
137
|
+
continue;
|
|
138
|
+
}
|
|
139
|
+
if (graph === "client" && !isClient) {
|
|
140
|
+
problems.push(`${where}: ${value.kind} contract must be declared and exported from the contracts graph`);
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
const resource = { ...value.resource };
|
|
144
|
+
if (isClient) {
|
|
145
|
+
const implicit = value.implicitId;
|
|
146
|
+
if (implicit === "export") resource.id = `${namespace}.${lowerFirst(name)}`;
|
|
147
|
+
else if (implicit === "navigation") resource.id = `${namespace}.navigation`;
|
|
148
|
+
else if (implicit === "shell") resource.id = `${namespace}.shell`;
|
|
149
|
+
if (value.kind !== "navigation") resource.export = name;
|
|
150
|
+
}
|
|
151
|
+
if (claim(resource.id, where)) resources.push(resource);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
collectResources("contracts", input.contracts);
|
|
155
|
+
collectResources("client", input.client);
|
|
156
|
+
for (const r of resources) for (const id of referencedIds(r)) if (inPackage(id)) declared(id, `resource "${r.id}"`);
|
|
157
|
+
checkNavigation(resources, namespace, inPackage, problems);
|
|
158
|
+
const implementations = [];
|
|
159
|
+
const subscriptions = [];
|
|
160
|
+
const guards = [];
|
|
161
|
+
const templates = [];
|
|
162
|
+
const schedules = [];
|
|
163
|
+
const endpoints = [];
|
|
164
|
+
const implemented = /* @__PURE__ */ new Map();
|
|
165
|
+
const templated = /* @__PURE__ */ new Map();
|
|
166
|
+
for (const [name, value] of Object.entries(input.server)) {
|
|
167
|
+
const where = `server export "${name}"`;
|
|
168
|
+
if (!isBranded(value)) {
|
|
169
|
+
const inner = nestedBranded(value);
|
|
170
|
+
if (inner !== void 0) problems.push(`${where}: contains "${inner}"; export resources as top-level named exports`);
|
|
171
|
+
continue;
|
|
172
|
+
}
|
|
173
|
+
if (isContract(value)) {
|
|
174
|
+
problems.push(`${where}: contract exported from the server graph; declare it in the contracts graph`);
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
if (seen.has(value)) continue;
|
|
178
|
+
seen.add(value);
|
|
179
|
+
const sv = value;
|
|
180
|
+
switch (sv.serverKind) {
|
|
181
|
+
case "implementation": {
|
|
182
|
+
const c = sv.contract;
|
|
183
|
+
const kind = IMPLEMENTABLE[c.kind]?.(c);
|
|
184
|
+
if (kind === void 0) {
|
|
185
|
+
problems.push(`${where}: cannot implement contract "${c.id}" of kind "${c.kind}"`);
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
reference(c, where);
|
|
189
|
+
const prior = implemented.get(c.id);
|
|
190
|
+
if (prior !== void 0) {
|
|
191
|
+
problems.push(`${where}: "${c.id}" is already implemented by export "${prior}"`);
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
implemented.set(c.id, name);
|
|
195
|
+
implementations.push({ export: name, implements: c.id, kind });
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
case "subscription": {
|
|
199
|
+
reference(sv.event, where);
|
|
200
|
+
if (claim(sv.id, where)) subscriptions.push({ id: sv.id, export: name, event: sv.event.id });
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
case "guard": {
|
|
204
|
+
const g = sv;
|
|
205
|
+
const target = g.target;
|
|
206
|
+
const ok = g.phase === "input" && target.kind === "command" && !target.atomic || g.phase === "operation" && (target.kind === "operation" || target.kind === "command" && target.atomic) || g.phase === "write" && target.kind === "entity";
|
|
207
|
+
if (!ok) {
|
|
208
|
+
problems.push(`${where}: ${g.phase} guard cannot target ${target.kind} "${target.id}"`);
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
reference(target, where);
|
|
212
|
+
if (claim(g.id, where)) guards.push({ id: g.id, export: name, target: target.id, phase: g.phase });
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
case "templates": {
|
|
216
|
+
const channels = CHANNELS.filter((ch) => typeof sv.renderers[ch] === "function");
|
|
217
|
+
const prior = templated.get(sv.notice.id);
|
|
218
|
+
if (prior !== void 0) {
|
|
219
|
+
problems.push(`${where}: notice "${sv.notice.id}" already has templates in export "${prior}"`);
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
if (channels.length === 0) {
|
|
223
|
+
problems.push(`${where}: templates for "${sv.notice.id}" define no channel`);
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
reference(sv.notice, where);
|
|
227
|
+
templated.set(sv.notice.id, name);
|
|
228
|
+
templates.push({ export: name, notice: sv.notice.id, channels });
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
case "schedule": {
|
|
232
|
+
if (!CRON_PATTERN.test(sv.cron.trim())) problems.push(`${where}: invalid cron "${sv.cron}"`);
|
|
233
|
+
else if (claim(sv.id, where)) {
|
|
234
|
+
schedules.push({ id: sv.id, export: name, cron: sv.cron.trim(), ...sv.timezone ? { timezone: sv.timezone } : {} });
|
|
235
|
+
}
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
case "endpoint": {
|
|
239
|
+
if (!sv.spec.path.startsWith("/")) problems.push(`${where}: endpoint path must start with "/"`);
|
|
240
|
+
else if (claim(sv.id, where)) {
|
|
241
|
+
endpoints.push({ id: sv.id, export: name, method: sv.spec.method, path: sv.spec.path, ...sv.spec.public ? { public: true } : {} });
|
|
242
|
+
}
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
default:
|
|
246
|
+
problems.push(`${where}: unknown server value`);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
if (problems.length > 0) throw new ManifestError(problems);
|
|
250
|
+
const byId = (a, b) => a.id.localeCompare(b.id);
|
|
251
|
+
const byExport = (a, b) => a.export.localeCompare(b.export);
|
|
252
|
+
const manifest = {
|
|
253
|
+
schema: MANIFEST_SCHEMA,
|
|
254
|
+
namespace,
|
|
255
|
+
resources: resources.sort(byId)
|
|
256
|
+
};
|
|
257
|
+
if (implementations.length > 0) manifest.implementations = implementations.sort(byExport);
|
|
258
|
+
if (subscriptions.length > 0) manifest.subscriptions = subscriptions.sort(byId);
|
|
259
|
+
if (guards.length > 0) manifest.guards = guards.sort(byId);
|
|
260
|
+
if (templates.length > 0) manifest.templates = templates.sort(byExport);
|
|
261
|
+
if (schedules.length > 0) manifest.schedules = schedules.sort(byId);
|
|
262
|
+
if (endpoints.length > 0) manifest.endpoints = endpoints.sort(byId);
|
|
263
|
+
manifest.capabilities = capabilitiesOf(input.capabilities);
|
|
264
|
+
if (input.dependencies && Object.keys(input.dependencies).length > 0) manifest.dependencies = { ...input.dependencies };
|
|
265
|
+
return manifest;
|
|
266
|
+
}
|
|
267
|
+
function capabilitiesOf(c) {
|
|
268
|
+
const out = {};
|
|
269
|
+
if (c?.network?.length) out.network = [...c.network];
|
|
270
|
+
if (c?.secrets?.length) out.secrets = [...c.secrets];
|
|
271
|
+
return out;
|
|
272
|
+
}
|
|
273
|
+
export {
|
|
274
|
+
ManifestError,
|
|
275
|
+
collectManifest
|
|
276
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const RESOURCE = Symbol.for("iota.resource");
|
|
2
|
+
const KIT = Symbol.for("iota.kit");
|
|
3
|
+
function isBranded(value) {
|
|
4
|
+
return typeof value === "object" && value !== null && value[RESOURCE] === true;
|
|
5
|
+
}
|
|
6
|
+
function isContract(value) {
|
|
7
|
+
if (!isBranded(value)) return false;
|
|
8
|
+
const v = value;
|
|
9
|
+
return typeof v.id === "string" && typeof v.kind === "string" && typeof v.resource === "object";
|
|
10
|
+
}
|
|
11
|
+
function isKitIssued(value) {
|
|
12
|
+
return value.foreign && value[KIT] === true;
|
|
13
|
+
}
|
|
14
|
+
function contract(resource, foreign = false) {
|
|
15
|
+
const base = { [RESOURCE]: true, id: resource.id, kind: resource.kind, resource, foreign };
|
|
16
|
+
return foreign ? { ...base, [KIT]: true } : base;
|
|
17
|
+
}
|
|
18
|
+
function omitEmpty(value) {
|
|
19
|
+
const out = {};
|
|
20
|
+
for (const [k, v] of Object.entries(value)) {
|
|
21
|
+
if (v === void 0 || v === false || v === "" || Array.isArray(v) && v.length === 0) continue;
|
|
22
|
+
out[k] = v;
|
|
23
|
+
}
|
|
24
|
+
return out;
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
KIT,
|
|
28
|
+
RESOURCE,
|
|
29
|
+
contract,
|
|
30
|
+
isBranded,
|
|
31
|
+
isContract,
|
|
32
|
+
isKitIssued,
|
|
33
|
+
omitEmpty
|
|
34
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
function makeSchema(type) {
|
|
2
|
+
return {
|
|
3
|
+
type,
|
|
4
|
+
optional: () => makeSchema({ ...type, optional: true }),
|
|
5
|
+
nullable: () => makeSchema({ ...type, nullable: true })
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
function scalar(kind, extra = {}) {
|
|
9
|
+
return makeSchema({ kind, ...extra });
|
|
10
|
+
}
|
|
11
|
+
function entityId(e) {
|
|
12
|
+
return e.id;
|
|
13
|
+
}
|
|
14
|
+
function rowType(type) {
|
|
15
|
+
const { optional: _optional, ...rest } = type;
|
|
16
|
+
return rest;
|
|
17
|
+
}
|
|
18
|
+
function objectOf(properties) {
|
|
19
|
+
return makeSchema(properties.length > 0 ? { kind: "object", properties } : { kind: "object" });
|
|
20
|
+
}
|
|
21
|
+
function fieldProperties(source, pick) {
|
|
22
|
+
const keys = pick ?? Object.keys(source.fields);
|
|
23
|
+
return keys.map((name) => {
|
|
24
|
+
const f = source.fields[name];
|
|
25
|
+
if (f === void 0) throw new Error(`${source.id}: no field "${name}"`);
|
|
26
|
+
return { name, type: rowType(f.type) };
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
const KEY_KIND = { int64: "int64", uuid: "uuid", string: "string" };
|
|
30
|
+
const t = {
|
|
31
|
+
string: (o = {}) => scalar("string", o.maxLength ? { maxLength: o.maxLength } : {}),
|
|
32
|
+
int: () => scalar("int"),
|
|
33
|
+
int64: () => scalar("int64"),
|
|
34
|
+
decimal: (o) => scalar("decimal", { precision: o.precision, scale: o.scale }),
|
|
35
|
+
bool: () => scalar("bool"),
|
|
36
|
+
date: () => scalar("date"),
|
|
37
|
+
datetime: () => scalar("datetime"),
|
|
38
|
+
uuid: () => scalar("uuid"),
|
|
39
|
+
enum: (values) => scalar("enum", { values: [...values] }),
|
|
40
|
+
/** Any JSON value except `null`; add `.nullable()` for null. `T` must be JSON (interfaces with JSON members are fine). */
|
|
41
|
+
json: () => scalar("json"),
|
|
42
|
+
ref: (entity) => scalar("ref", { entity: entityId(entity) }),
|
|
43
|
+
object: (shape) => {
|
|
44
|
+
const properties = Object.entries(shape).map(([name, s]) => ({ name, type: s.type }));
|
|
45
|
+
const base = makeSchema(properties.length > 0 ? { kind: "object", properties } : { kind: "object" });
|
|
46
|
+
return { ...base, shape };
|
|
47
|
+
},
|
|
48
|
+
array: (items) => scalar("array", { items: items.type }),
|
|
49
|
+
/**
|
|
50
|
+
* The record `tx.get` / `tx.find` / `tx.insert` / `tx.update` return for `source`: `key`, `createdAt`, `updatedAt`,
|
|
51
|
+
* `rowVersion`, `ref` and every declared field (optional fields read `null`). Overlays: `baseKey` and the fields.
|
|
52
|
+
* Lets a command output return rows without re-declaring them.
|
|
53
|
+
*/
|
|
54
|
+
row: (source) => {
|
|
55
|
+
if ("base" in source) {
|
|
56
|
+
const keyKind2 = KEY_KIND[source.base.keyType] ?? "string";
|
|
57
|
+
return objectOf([{ name: "baseKey", type: { kind: keyKind2 } }, ...fieldProperties(source)]);
|
|
58
|
+
}
|
|
59
|
+
const keyKind = source.entityKind === "native" ? KEY_KIND[source.keyType] ?? "string" : "uuid";
|
|
60
|
+
return objectOf([
|
|
61
|
+
{ name: "key", type: { kind: keyKind } },
|
|
62
|
+
{ name: "createdAt", type: { kind: "datetime" } },
|
|
63
|
+
{ name: "updatedAt", type: { kind: "datetime" } },
|
|
64
|
+
{ name: "rowVersion", type: { kind: "int" } },
|
|
65
|
+
{ name: "ref", type: { kind: "ref", entity: source.id } },
|
|
66
|
+
...fieldProperties(source)
|
|
67
|
+
]);
|
|
68
|
+
},
|
|
69
|
+
/** Declared fields of `source` as they read from a row (no system columns), optionally only `pick`ed keys. */
|
|
70
|
+
fields: (source, pick) => objectOf(fieldProperties(source, pick))
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
makeSchema,
|
|
74
|
+
t
|
|
75
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { RESOURCE } from "./resource.mjs";
|
|
2
|
+
const recipient = {
|
|
3
|
+
/** An ERP user: only a ref to the platform's `core.user`. */
|
|
4
|
+
user: (user) => ({ kind: "user", user }),
|
|
5
|
+
record: (record) => ({ kind: "record", record }),
|
|
6
|
+
address: (address) => ({ kind: "address", address })
|
|
7
|
+
};
|
|
8
|
+
function implement(contract, handler) {
|
|
9
|
+
return { [RESOURCE]: true, serverKind: "implementation", contract, handler };
|
|
10
|
+
}
|
|
11
|
+
function subscribe(id, event, handler) {
|
|
12
|
+
return { [RESOURCE]: true, serverKind: "subscription", id, event, handler };
|
|
13
|
+
}
|
|
14
|
+
function precheck(id, command, handler) {
|
|
15
|
+
return { [RESOURCE]: true, serverKind: "guard", phase: "input", id, target: command, handler };
|
|
16
|
+
}
|
|
17
|
+
function guard(id, target, handler) {
|
|
18
|
+
return { [RESOURCE]: true, serverKind: "guard", phase: "operation", id, target, handler };
|
|
19
|
+
}
|
|
20
|
+
function writeRule(id, entity, handler) {
|
|
21
|
+
return { [RESOURCE]: true, serverKind: "guard", phase: "write", id, target: entity, handler };
|
|
22
|
+
}
|
|
23
|
+
function templates(notice, renderers) {
|
|
24
|
+
return { [RESOURCE]: true, serverKind: "templates", notice, renderers };
|
|
25
|
+
}
|
|
26
|
+
function schedule(id, cron, handler) {
|
|
27
|
+
const spec = typeof cron === "string" ? { cron } : cron;
|
|
28
|
+
return { [RESOURCE]: true, serverKind: "schedule", id, ...spec, handler };
|
|
29
|
+
}
|
|
30
|
+
function endpoint(id, spec, handler) {
|
|
31
|
+
return { [RESOURCE]: true, serverKind: "endpoint", id, spec, handler };
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
endpoint,
|
|
35
|
+
guard,
|
|
36
|
+
implement,
|
|
37
|
+
precheck,
|
|
38
|
+
recipient,
|
|
39
|
+
schedule,
|
|
40
|
+
subscribe,
|
|
41
|
+
templates,
|
|
42
|
+
writeRule
|
|
43
|
+
};
|