space-data-module-sdk 0.8.4 → 0.8.6
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 +117 -20
- package/bin/space-data-module.js +263 -0
- package/docs/.nojekyll +1 -0
- package/docs/AGENTS.md +34 -0
- package/docs/architecture.svg +141 -0
- package/docs/browser-wasmedge-isomorphic.md +179 -0
- package/docs/flatsql-streaming-standard.md +341 -0
- package/docs/gpu-module-abi.md +193 -0
- package/docs/index.html +125 -0
- package/docs/isomorphic-pthreads.md +188 -0
- package/docs/isomorphic-sdn-runtime-plan.md +167 -0
- package/docs/language-runtime-matrix.md +82 -0
- package/docs/manifest-structure.svg +114 -0
- package/docs/module-bundle-runtime-plan.md +19 -0
- package/docs/module-lifecycle.svg +70 -0
- package/docs/module-publication-standard.md +540 -0
- package/docs/node-red-default-node-parity.md +88 -0
- package/docs/protocol-installation.md +196 -0
- package/docs/secrets-capability.md +152 -0
- package/docs/styles.css +288 -0
- package/docs/testing-harness.md +408 -0
- package/docs/tri-runtime-parity.md +132 -0
- package/docs/wallet-callback.html +2 -0
- package/package.json +25 -6
- package/schemas/HttpRequestAbi.fbs +41 -0
- package/schemas/HttpResponseAbi.fbs +36 -0
- package/schemas/PluginManifest.fbs +2 -1
- package/src/AGENTS.md +1 -1
- package/src/app/codec.js +548 -0
- package/src/app/index.js +6 -0
- package/src/browser.js +5 -0
- package/src/bundle/constants.js +1 -0
- package/src/bundle/index.js +15 -0
- package/src/bundle/sigdomain.js +179 -0
- package/src/bundle/signing.js +767 -0
- package/src/bundle/wasm.js +3 -2
- package/src/capabilities.js +3 -0
- package/src/compat/index.js +7 -0
- package/src/compat/sdnLegacy.js +449 -0
- package/src/compiler/compileModule.js +556 -55
- package/src/compiler/flatcSupport.js +41 -27
- package/src/compiler/index.d.ts +2 -0
- package/src/compiler/index.js +18 -0
- package/src/compiler/invokeGlue.js +1212 -183
- package/src/compiler/pthreadArtifactGuard.js +910 -0
- package/src/compiler/sdnShimGenerator.js +323 -0
- package/src/compiler/wasiThreadsToolchain.js +150 -0
- package/src/compliance/index.js +11 -1
- package/src/compliance/legacyWildcardPorts.js +228 -0
- package/src/compliance/pluginCompliance.js +1000 -96
- package/src/field-stream/index.d.ts +31 -0
- package/src/field-stream/index.js +119 -0
- package/src/flow/dependencyStreamBridge.js +234 -0
- package/src/flow/flatsqlLinkShim.js +304 -0
- package/src/flow/flowCodec.js +107 -0
- package/src/flow/flowCompiler.js +2900 -0
- package/src/flow/flowRuntimeHost.js +877 -0
- package/src/flow/index.d.ts +117 -0
- package/src/flow/index.js +31 -0
- package/src/flow/isomorphicFlowHost.js +384 -0
- package/src/flow/jsFlowRuntime.js +275 -0
- package/src/flow/normalize.js +294 -0
- package/src/flow/runtime-src/flow_runtime.cpp +1699 -0
- package/src/flow/vendor/sdn-flow/MethodRegistry.js +400 -0
- package/src/flow/vendor/sdn-flow/constants.js +39 -0
- package/src/flow/vendor/sdn-flow/index.js +29 -0
- package/src/flow/vendor/sdn-flow/normalize.js +506 -0
- package/src/flow/vendor/sdn-flow/wasmCompatibility.js +189 -0
- package/src/generated/http/cpp/HttpRequestAbi_generated.h +285 -0
- package/src/generated/http/cpp/HttpResponseAbi_generated.h +192 -0
- package/src/generated/http/sdn/http/http-header.js +53 -0
- package/src/generated/http/sdn/http/http-header.ts +67 -0
- package/src/generated/http/sdn/http/http-request.js +132 -0
- package/src/generated/http/sdn/http/http-request.ts +179 -0
- package/src/generated/http/sdn/http/http-response.js +144 -0
- package/src/generated/http/sdn/http/http-response.ts +168 -0
- package/src/generated/http/sdn/http.js +11 -0
- package/src/generated/http/sdn/http.ts +4 -0
- package/src/generated/orbpro/flow/backpressure-policy.d.ts +12 -0
- package/src/generated/orbpro/flow/backpressure-policy.d.ts.map +1 -0
- package/src/generated/orbpro/flow/backpressure-policy.js +17 -0
- package/src/generated/orbpro/flow/backpressure-policy.js.map +1 -0
- package/src/generated/orbpro/flow/backpressure-policy.ts +15 -0
- package/src/generated/orbpro/flow/flow-bundle-manifest.d.ts +142 -0
- package/src/generated/orbpro/flow/flow-bundle-manifest.d.ts.map +1 -0
- package/src/generated/orbpro/flow/flow-bundle-manifest.js +304 -0
- package/src/generated/orbpro/flow/flow-bundle-manifest.js.map +1 -0
- package/src/generated/orbpro/flow/flow-bundle-manifest.ts +399 -0
- package/src/generated/orbpro/flow/flow-edge.d.ts +113 -0
- package/src/generated/orbpro/flow/flow-edge.d.ts.map +1 -0
- package/src/generated/orbpro/flow/flow-edge.js +221 -0
- package/src/generated/orbpro/flow/flow-edge.js.map +1 -0
- package/src/generated/orbpro/flow/flow-edge.ts +292 -0
- package/src/generated/orbpro/flow/flow-node.d.ts +80 -0
- package/src/generated/orbpro/flow/flow-node.d.ts.map +1 -0
- package/src/generated/orbpro/flow/flow-node.js +158 -0
- package/src/generated/orbpro/flow/flow-node.js.map +1 -0
- package/src/generated/orbpro/flow/flow-node.ts +202 -0
- package/src/generated/orbpro/flow/flow-program.d.ts +164 -0
- package/src/generated/orbpro/flow/flow-program.d.ts.map +1 -0
- package/src/generated/orbpro/flow/flow-program.js +350 -0
- package/src/generated/orbpro/flow/flow-program.js.map +1 -0
- package/src/generated/orbpro/flow/flow-program.ts +477 -0
- package/src/generated/orbpro/flow/flow-trigger.d.ts +108 -0
- package/src/generated/orbpro/flow/flow-trigger.d.ts.map +1 -0
- package/src/generated/orbpro/flow/flow-trigger.js +207 -0
- package/src/generated/orbpro/flow/flow-trigger.js.map +1 -0
- package/src/generated/orbpro/flow/flow-trigger.ts +276 -0
- package/src/generated/orbpro/flow/node-kind.d.ts +13 -0
- package/src/generated/orbpro/flow/node-kind.d.ts.map +1 -0
- package/src/generated/orbpro/flow/node-kind.js +16 -0
- package/src/generated/orbpro/flow/node-kind.js.map +1 -0
- package/src/generated/orbpro/{invoke.ts → flow/node-kind.ts} +12 -2
- package/src/generated/orbpro/flow/plugin-version-binding.d.ts +52 -0
- package/src/generated/orbpro/flow/plugin-version-binding.d.ts.map +1 -0
- package/src/generated/orbpro/flow/plugin-version-binding.js +85 -0
- package/src/generated/orbpro/flow/plugin-version-binding.js.map +1 -0
- package/src/generated/orbpro/flow/plugin-version-binding.ts +121 -0
- package/src/generated/orbpro/flow/schema-hash-binding.d.ts +70 -0
- package/src/generated/orbpro/flow/schema-hash-binding.d.ts.map +1 -0
- package/src/generated/orbpro/flow/schema-hash-binding.js +143 -0
- package/src/generated/orbpro/flow/schema-hash-binding.js.map +1 -0
- package/src/generated/orbpro/flow/schema-hash-binding.ts +189 -0
- package/src/generated/orbpro/flow/trigger-binding.d.ts +71 -0
- package/src/generated/orbpro/flow/trigger-binding.d.ts.map +1 -0
- package/src/generated/orbpro/flow/trigger-binding.js +142 -0
- package/src/generated/orbpro/flow/trigger-binding.js.map +1 -0
- package/src/generated/orbpro/flow/trigger-binding.ts +181 -0
- package/src/generated/orbpro/flow/trigger-kind.d.ts +14 -0
- package/src/generated/orbpro/flow/trigger-kind.d.ts.map +1 -0
- package/src/generated/orbpro/flow/trigger-kind.js +17 -0
- package/src/generated/orbpro/flow/trigger-kind.js.map +1 -0
- package/src/generated/orbpro/flow/trigger-kind.ts +17 -0
- package/src/generated/orbpro/flow.d.ts +21 -0
- package/src/generated/orbpro/flow.d.ts.map +1 -0
- package/src/generated/orbpro/flow.js +23 -0
- package/src/generated/orbpro/flow.js.map +1 -0
- package/src/generated/orbpro/flow.ts +24 -0
- package/src/generated/orbpro/manifest/capability-kind.d.ts +2 -1
- package/src/generated/orbpro/manifest/capability-kind.js +1 -0
- package/src/generated/orbpro/manifest/capability-kind.ts +1 -0
- package/src/generated/orbpro/plugin/stream-invoke-request.d.ts +93 -0
- package/src/generated/orbpro/plugin/stream-invoke-request.js +160 -0
- package/src/generated/orbpro/plugin/stream-invoke-request.ts +211 -0
- package/src/generated/orbpro/plugin/stream-invoke-response.d.ts +99 -0
- package/src/generated/orbpro/plugin/stream-invoke-response.js +175 -0
- package/src/generated/orbpro/plugin/stream-invoke-response.ts +226 -0
- package/src/generated/orbpro/plugin.js +8 -0
- package/src/generated/orbpro/stream.d.ts +12 -0
- package/src/generated/orbpro/stream.js +14 -0
- package/src/generated/orbpro/stream.ts +15 -0
- package/src/generated/spacedatastandards/plg/EntryFunction.d.ts +52 -0
- package/src/generated/spacedatastandards/plg/EntryFunction.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/EntryFunction.js +106 -0
- package/src/generated/spacedatastandards/plg/EntryFunction.ts +162 -0
- package/src/generated/spacedatastandards/plg/FlatBufferTypeRef.d.ts +90 -0
- package/src/generated/spacedatastandards/plg/FlatBufferTypeRef.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/FlatBufferTypeRef.js +189 -0
- package/src/generated/spacedatastandards/plg/FlatBufferTypeRef.ts +270 -0
- package/src/generated/spacedatastandards/plg/PLG.d.ts +492 -0
- package/src/generated/spacedatastandards/plg/PLG.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/PLG.js +1139 -0
- package/src/generated/spacedatastandards/plg/PLG.ts +1600 -0
- package/src/generated/spacedatastandards/plg/PLGAcceptedTypeSet.d.ts +63 -0
- package/src/generated/spacedatastandards/plg/PLGAcceptedTypeSet.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/PLGAcceptedTypeSet.js +138 -0
- package/src/generated/spacedatastandards/plg/PLGAcceptedTypeSet.ts +189 -0
- package/src/generated/spacedatastandards/plg/PLGBuildArtifact.d.ts +41 -0
- package/src/generated/spacedatastandards/plg/PLGBuildArtifact.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/PLGBuildArtifact.js +104 -0
- package/src/generated/spacedatastandards/plg/PLGBuildArtifact.ts +151 -0
- package/src/generated/spacedatastandards/plg/PLGFlowEdge.d.ts +68 -0
- package/src/generated/spacedatastandards/plg/PLGFlowEdge.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/PLGFlowEdge.js +124 -0
- package/src/generated/spacedatastandards/plg/PLGFlowEdge.ts +184 -0
- package/src/generated/spacedatastandards/plg/PLGFlowEdgeContract.d.ts +58 -0
- package/src/generated/spacedatastandards/plg/PLGFlowEdgeContract.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/PLGFlowEdgeContract.js +126 -0
- package/src/generated/spacedatastandards/plg/PLGFlowEdgeContract.ts +161 -0
- package/src/generated/spacedatastandards/plg/PLGFlowNode.d.ts +82 -0
- package/src/generated/spacedatastandards/plg/PLGFlowNode.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/PLGFlowNode.js +164 -0
- package/src/generated/spacedatastandards/plg/PLGFlowNode.ts +244 -0
- package/src/generated/spacedatastandards/plg/PLGFlowTrigger.d.ts +55 -0
- package/src/generated/spacedatastandards/plg/PLGFlowTrigger.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/PLGFlowTrigger.js +105 -0
- package/src/generated/spacedatastandards/plg/PLGFlowTrigger.ts +162 -0
- package/src/generated/spacedatastandards/plg/PLGFlowTriggerBinding.d.ts +42 -0
- package/src/generated/spacedatastandards/plg/PLGFlowTriggerBinding.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/PLGFlowTriggerBinding.js +83 -0
- package/src/generated/spacedatastandards/plg/PLGFlowTriggerBinding.ts +127 -0
- package/src/generated/spacedatastandards/plg/PLGHostCapability.d.ts +36 -0
- package/src/generated/spacedatastandards/plg/PLGHostCapability.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/PLGHostCapability.js +90 -0
- package/src/generated/spacedatastandards/plg/PLGHostCapability.ts +127 -0
- package/src/generated/spacedatastandards/plg/PLGMethodManifest.d.ts +53 -0
- package/src/generated/spacedatastandards/plg/PLGMethodManifest.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/PLGMethodManifest.js +153 -0
- package/src/generated/spacedatastandards/plg/PLGMethodManifest.ts +210 -0
- package/src/generated/spacedatastandards/plg/PLGPortManifest.d.ts +70 -0
- package/src/generated/spacedatastandards/plg/PLGPortManifest.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/PLGPortManifest.js +149 -0
- package/src/generated/spacedatastandards/plg/PLGPortManifest.ts +212 -0
- package/src/generated/spacedatastandards/plg/PLGProtocolSpec.d.ts +73 -0
- package/src/generated/spacedatastandards/plg/PLGProtocolSpec.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/PLGProtocolSpec.js +199 -0
- package/src/generated/spacedatastandards/plg/PLGProtocolSpec.ts +292 -0
- package/src/generated/spacedatastandards/plg/PLGTimerSpec.d.ts +40 -0
- package/src/generated/spacedatastandards/plg/PLGTimerSpec.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/PLGTimerSpec.js +103 -0
- package/src/generated/spacedatastandards/plg/PLGTimerSpec.ts +148 -0
- package/src/generated/spacedatastandards/plg/PluginCapability.d.ts +41 -0
- package/src/generated/spacedatastandards/plg/PluginCapability.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/PluginCapability.js +82 -0
- package/src/generated/spacedatastandards/plg/{plugin-capability.ts → PluginCapability.ts} +55 -18
- package/src/generated/spacedatastandards/plg/PluginDependency.d.ts +42 -0
- package/src/generated/spacedatastandards/plg/PluginDependency.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/PluginDependency.js +80 -0
- package/src/generated/spacedatastandards/plg/PluginDependency.ts +124 -0
- package/src/generated/spacedatastandards/plg/TAB.d.ts +85 -0
- package/src/generated/spacedatastandards/plg/TAB.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/TAB.js +173 -0
- package/src/generated/spacedatastandards/plg/TAB.ts +228 -0
- package/src/generated/spacedatastandards/plg/bufferMutability.d.ts +18 -0
- package/src/generated/spacedatastandards/plg/bufferMutability.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/bufferMutability.js +20 -0
- package/src/generated/spacedatastandards/plg/bufferMutability.ts +23 -0
- package/src/generated/spacedatastandards/plg/bufferOwnership.d.ts +18 -0
- package/src/generated/spacedatastandards/plg/bufferOwnership.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/bufferOwnership.js +20 -0
- package/src/generated/spacedatastandards/plg/bufferOwnership.ts +23 -0
- package/src/generated/spacedatastandards/plg/drainBehavior.d.ts +20 -0
- package/src/generated/spacedatastandards/plg/drainBehavior.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/drainBehavior.js +22 -0
- package/src/generated/spacedatastandards/plg/drainBehavior.ts +25 -0
- package/src/generated/spacedatastandards/plg/flowEdgeRoutePolicy.d.ts +10 -0
- package/src/generated/spacedatastandards/plg/flowEdgeRoutePolicy.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/flowEdgeRoutePolicy.js +12 -0
- package/src/generated/spacedatastandards/plg/flowEdgeRoutePolicy.ts +13 -0
- package/src/generated/spacedatastandards/plg/hostCapabilityKind.d.ts +51 -0
- package/src/generated/spacedatastandards/plg/hostCapabilityKind.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/hostCapabilityKind.js +53 -0
- package/src/generated/spacedatastandards/plg/hostCapabilityKind.ts +55 -0
- package/src/generated/spacedatastandards/plg/invokeSurfaceKind.d.ts +15 -0
- package/src/generated/spacedatastandards/plg/invokeSurfaceKind.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/invokeSurfaceKind.js +17 -0
- package/src/generated/spacedatastandards/plg/invokeSurfaceKind.ts +19 -0
- package/src/generated/spacedatastandards/plg/main.d.ts +29 -0
- package/src/generated/spacedatastandards/plg/main.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/main.js +30 -0
- package/src/generated/spacedatastandards/plg/main.ts +32 -0
- package/src/generated/spacedatastandards/plg/payloadWireFormat.d.ts +17 -0
- package/src/generated/spacedatastandards/plg/payloadWireFormat.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/payloadWireFormat.js +19 -0
- package/src/generated/spacedatastandards/plg/payloadWireFormat.ts +21 -0
- package/src/generated/spacedatastandards/plg/pluginCategory.d.ts +82 -0
- package/src/generated/spacedatastandards/plg/pluginCategory.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/pluginCategory.js +84 -0
- package/src/generated/spacedatastandards/plg/pluginCategory.ts +103 -0
- package/src/generated/spacedatastandards/plg/publicationState.d.ts +18 -0
- package/src/generated/spacedatastandards/plg/publicationState.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/publicationState.js +20 -0
- package/src/generated/spacedatastandards/plg/purchaseTier.d.ts +18 -0
- package/src/generated/spacedatastandards/plg/purchaseTier.d.ts.map +1 -0
- package/src/generated/spacedatastandards/plg/purchaseTier.js +20 -0
- package/src/host/AGENTS.md +2 -2
- package/src/host/abi.js +53 -66
- package/src/host/browserHost.js +355 -8
- package/src/host/cpp/keyslotClient.hpp +231 -0
- package/src/host/cpp/secretsClient.hpp +583 -0
- package/src/host/hostcallWire.js +183 -0
- package/src/host/index.js +2 -0
- package/src/host/isomorphicLoader.js +44 -7
- package/src/host/nodeHost.js +227 -8
- package/src/host/sabHostcallChannel.js +206 -0
- package/src/host/timerDriver.js +203 -0
- package/src/host/wasiShim.js +41 -1
- package/src/host/wasiThreadBrowserWorker.mjs +48 -0
- package/src/host/wasiThreadHost.js +393 -0
- package/src/host/wasiThreadWorker.mjs +32 -0
- package/src/host/wasiThreadWorkerRuntime.js +93 -0
- package/src/http/index.js +339 -0
- package/src/index.d.ts +725 -11
- package/src/index.js +4 -0
- package/src/invoke/codec.js +1202 -128
- package/src/invoke/index.js +5 -1
- package/src/licensing/index.d.ts +2 -0
- package/src/licensing/index.js +2 -0
- package/src/licensing/records.js +287 -8
- package/src/manifest/codec.js +62 -14
- package/src/manifest/index.js +2 -0
- package/src/manifest/legacyToPlg.js +164 -25
- package/src/manifest/normalize.js +1 -0
- package/src/manifest/plgCodec.js +1303 -62
- package/src/manifest/typeRefs.js +162 -24
- package/src/runtime/compiledRuntimeAbi.js +47 -0
- package/src/runtime/compiledRuntimeAbi.json +33 -0
- package/src/runtime/index.d.ts +32 -0
- package/src/runtime/index.js +1 -0
- package/src/runtime-host/index.js +3 -0
- package/src/runtime-host/methodRegistry.js +55 -0
- package/src/standards/index.js +200 -56
- package/src/standards/sharedCatalog.js +16 -0
- package/src/testing/browserModuleHarness.js +604 -31
- package/src/testing/docker/wasmedge-parity.Dockerfile +39 -0
- package/src/testing/index.d.ts +151 -0
- package/src/testing/index.js +21 -0
- package/src/testing/native/wasmedge_emscripten_pthread_runner.c +25 -1
- package/src/testing/parityBrowserRunner.js +138 -0
- package/src/testing/parityHarness.js +616 -0
- package/src/testing/parityLanes.js +537 -0
- package/src/testing/processInvoke.js +29 -21
- package/src/testing/streamInvokeCodec.js +10 -175
- package/src/testing/wasmedgePin.json +6 -0
- package/src/testing/workerModuleHarness.js +242 -0
- package/src/testing/workerModuleHarnessWorker.js +176 -0
- package/src/transport/index.js +3 -0
- package/src/transport/pki.js +352 -14
- package/src/transport/records.js +16 -7
- package/src/utils/ecdsaDer.js +106 -0
- package/src/utils/wasmCrypto.js +0 -43
- package/templates/gpu-module/README.md +48 -0
- package/templates/gpu-module/include/space_data_gpu_abi.h +122 -0
- package/templates/gpu-module/manifest.json +84 -0
- package/schemas/PluginInvokeRequest.fbs +0 -18
- package/schemas/PluginInvokeResponse.fbs +0 -30
- package/schemas/spacedatastandards/PLG.fbs +0 -191
- package/src/generated/orbpro/invoke/plugin-invoke-request.d.ts +0 -51
- package/src/generated/orbpro/invoke/plugin-invoke-request.d.ts.map +0 -1
- package/src/generated/orbpro/invoke/plugin-invoke-request.js +0 -131
- package/src/generated/orbpro/invoke/plugin-invoke-request.js.map +0 -1
- package/src/generated/orbpro/invoke/plugin-invoke-request.ts +0 -173
- package/src/generated/orbpro/invoke/plugin-invoke-response.d.ts +0 -76
- package/src/generated/orbpro/invoke/plugin-invoke-response.d.ts.map +0 -1
- package/src/generated/orbpro/invoke/plugin-invoke-response.js +0 -184
- package/src/generated/orbpro/invoke/plugin-invoke-response.js.map +0 -1
- package/src/generated/orbpro/invoke/plugin-invoke-response.ts +0 -243
- package/src/generated/orbpro/invoke.d.ts +0 -3
- package/src/generated/orbpro/invoke.js +0 -5
- package/src/generated/spacedatastandards/plg/entry-function.js +0 -86
- package/src/generated/spacedatastandards/plg/entry-function.ts +0 -119
- package/src/generated/spacedatastandards/plg/index.js +0 -16
- package/src/generated/spacedatastandards/plg/index.ts +0 -11
- package/src/generated/spacedatastandards/plg/plg.js +0 -657
- package/src/generated/spacedatastandards/plg/plg.ts +0 -924
- package/src/generated/spacedatastandards/plg/plugin-capability.js +0 -66
- package/src/generated/spacedatastandards/plg/plugin-category.js +0 -15
- package/src/generated/spacedatastandards/plg/plugin-category.ts +0 -53
- package/src/generated/spacedatastandards/plg/plugin-dependency.js +0 -63
- package/src/generated/spacedatastandards/plg/plugin-dependency.ts +0 -86
- package/src/generated/spacedatastandards/plg/publication-state.js +0 -9
- package/src/generated/spacedatastandards/plg/purchase-tier.js +0 -9
- /package/src/generated/spacedatastandards/plg/{publication-state.ts → publicationState.ts} +0 -0
- /package/src/generated/spacedatastandards/plg/{purchase-tier.ts → purchaseTier.ts} +0 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
3
|
+
import * as flatbuffers from 'flatbuffers';
|
|
4
|
+
import { FlatBufferTypeRef } from './FlatBufferTypeRef.js';
|
|
5
|
+
import { flowEdgeRoutePolicy } from './flowEdgeRoutePolicy.js';
|
|
6
|
+
/**
|
|
7
|
+
* Exact validated SDS and representation contract bound into a signed flow
|
|
8
|
+
* edge. CANONICAL_TYPE and ALIGNED_TYPE describe the same logical schema;
|
|
9
|
+
* ALIGNED_TYPE carries its fixed layout in TAB.FlatBufferTypeRef.
|
|
10
|
+
*/
|
|
11
|
+
export class PLGFlowEdgeContract {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.bb = null;
|
|
14
|
+
this.bb_pos = 0;
|
|
15
|
+
}
|
|
16
|
+
__init(i, bb) {
|
|
17
|
+
this.bb_pos = i;
|
|
18
|
+
this.bb = bb;
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
21
|
+
static getRootAsPLGFlowEdgeContract(bb, obj) {
|
|
22
|
+
return (obj || new PLGFlowEdgeContract()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
23
|
+
}
|
|
24
|
+
static getSizePrefixedRootAsPLGFlowEdgeContract(bb, obj) {
|
|
25
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
26
|
+
return (obj || new PLGFlowEdgeContract()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Canonical SDS identity carried by the edge. NOT `required`: an edge may
|
|
30
|
+
* be opaque by design (see OPAQUE), and a signer must never be forced to
|
|
31
|
+
* invent an identity to satisfy the schema. A contract MUST carry exactly
|
|
32
|
+
* one of CANONICAL_TYPE or OPAQUE = true; a contract with neither, or with
|
|
33
|
+
* both, is invalid and MUST be rejected by the compiler that signs the flow.
|
|
34
|
+
*/
|
|
35
|
+
CANONICAL_TYPE(obj) {
|
|
36
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
37
|
+
return offset ? (obj || new FlatBufferTypeRef()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
38
|
+
}
|
|
39
|
+
ALIGNED_TYPE(obj) {
|
|
40
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
41
|
+
return offset ? (obj || new FlatBufferTypeRef()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
42
|
+
}
|
|
43
|
+
CANONICAL_FALLBACK_AVAILABLE() {
|
|
44
|
+
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
45
|
+
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : true;
|
|
46
|
+
}
|
|
47
|
+
ALIGNED_ELIGIBLE() {
|
|
48
|
+
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
49
|
+
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
|
|
50
|
+
}
|
|
51
|
+
ROUTE_POLICY() {
|
|
52
|
+
const offset = this.bb.__offset(this.bb_pos, 12);
|
|
53
|
+
return offset ? this.bb.readUint8(this.bb_pos + offset) : flowEdgeRoutePolicy.CANONICAL_ONLY;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The edge carries bytes with no SDS identity BY DESIGN — an
|
|
57
|
+
* application-blind host-capability adapter (an HTTP body, a raw file
|
|
58
|
+
* chunk) or a timer TICK frame with no payload at all. This is a deliberate
|
|
59
|
+
* signed assertion of opacity, which is why it is an explicit flag rather
|
|
60
|
+
* than an absent CANONICAL_TYPE: a missing type must stay distinguishable
|
|
61
|
+
* from a declared-opaque one. An opaque edge is ineligible for the aligned
|
|
62
|
+
* route, so ALIGNED_ELIGIBLE MUST be false when OPAQUE is true.
|
|
63
|
+
*/
|
|
64
|
+
OPAQUE() {
|
|
65
|
+
const offset = this.bb.__offset(this.bb_pos, 14);
|
|
66
|
+
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
|
|
67
|
+
}
|
|
68
|
+
static startPLGFlowEdgeContract(builder) {
|
|
69
|
+
builder.startObject(6);
|
|
70
|
+
}
|
|
71
|
+
static addCanonicalType(builder, CANONICAL_TYPEOffset) {
|
|
72
|
+
builder.addFieldOffset(0, CANONICAL_TYPEOffset, 0);
|
|
73
|
+
}
|
|
74
|
+
static addAlignedType(builder, ALIGNED_TYPEOffset) {
|
|
75
|
+
builder.addFieldOffset(1, ALIGNED_TYPEOffset, 0);
|
|
76
|
+
}
|
|
77
|
+
static addCanonicalFallbackAvailable(builder, CANONICAL_FALLBACK_AVAILABLE) {
|
|
78
|
+
builder.addFieldInt8(2, +CANONICAL_FALLBACK_AVAILABLE, +true);
|
|
79
|
+
}
|
|
80
|
+
static addAlignedEligible(builder, ALIGNED_ELIGIBLE) {
|
|
81
|
+
builder.addFieldInt8(3, +ALIGNED_ELIGIBLE, +false);
|
|
82
|
+
}
|
|
83
|
+
static addRoutePolicy(builder, ROUTE_POLICY) {
|
|
84
|
+
builder.addFieldInt8(4, ROUTE_POLICY, flowEdgeRoutePolicy.CANONICAL_ONLY);
|
|
85
|
+
}
|
|
86
|
+
static addOpaque(builder, OPAQUE) {
|
|
87
|
+
builder.addFieldInt8(5, +OPAQUE, +false);
|
|
88
|
+
}
|
|
89
|
+
static endPLGFlowEdgeContract(builder) {
|
|
90
|
+
const offset = builder.endObject();
|
|
91
|
+
return offset;
|
|
92
|
+
}
|
|
93
|
+
unpack() {
|
|
94
|
+
return new PLGFlowEdgeContractT((this.CANONICAL_TYPE() !== null ? this.CANONICAL_TYPE().unpack() : null), (this.ALIGNED_TYPE() !== null ? this.ALIGNED_TYPE().unpack() : null), this.CANONICAL_FALLBACK_AVAILABLE(), this.ALIGNED_ELIGIBLE(), this.ROUTE_POLICY(), this.OPAQUE());
|
|
95
|
+
}
|
|
96
|
+
unpackTo(_o) {
|
|
97
|
+
_o.CANONICAL_TYPE = (this.CANONICAL_TYPE() !== null ? this.CANONICAL_TYPE().unpack() : null);
|
|
98
|
+
_o.ALIGNED_TYPE = (this.ALIGNED_TYPE() !== null ? this.ALIGNED_TYPE().unpack() : null);
|
|
99
|
+
_o.CANONICAL_FALLBACK_AVAILABLE = this.CANONICAL_FALLBACK_AVAILABLE();
|
|
100
|
+
_o.ALIGNED_ELIGIBLE = this.ALIGNED_ELIGIBLE();
|
|
101
|
+
_o.ROUTE_POLICY = this.ROUTE_POLICY();
|
|
102
|
+
_o.OPAQUE = this.OPAQUE();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
export class PLGFlowEdgeContractT {
|
|
106
|
+
constructor(CANONICAL_TYPE = null, ALIGNED_TYPE = null, CANONICAL_FALLBACK_AVAILABLE = true, ALIGNED_ELIGIBLE = false, ROUTE_POLICY = flowEdgeRoutePolicy.CANONICAL_ONLY, OPAQUE = false) {
|
|
107
|
+
this.CANONICAL_TYPE = CANONICAL_TYPE;
|
|
108
|
+
this.ALIGNED_TYPE = ALIGNED_TYPE;
|
|
109
|
+
this.CANONICAL_FALLBACK_AVAILABLE = CANONICAL_FALLBACK_AVAILABLE;
|
|
110
|
+
this.ALIGNED_ELIGIBLE = ALIGNED_ELIGIBLE;
|
|
111
|
+
this.ROUTE_POLICY = ROUTE_POLICY;
|
|
112
|
+
this.OPAQUE = OPAQUE;
|
|
113
|
+
}
|
|
114
|
+
pack(builder) {
|
|
115
|
+
const CANONICAL_TYPE = (this.CANONICAL_TYPE !== null ? this.CANONICAL_TYPE.pack(builder) : 0);
|
|
116
|
+
const ALIGNED_TYPE = (this.ALIGNED_TYPE !== null ? this.ALIGNED_TYPE.pack(builder) : 0);
|
|
117
|
+
PLGFlowEdgeContract.startPLGFlowEdgeContract(builder);
|
|
118
|
+
PLGFlowEdgeContract.addCanonicalType(builder, CANONICAL_TYPE);
|
|
119
|
+
PLGFlowEdgeContract.addAlignedType(builder, ALIGNED_TYPE);
|
|
120
|
+
PLGFlowEdgeContract.addCanonicalFallbackAvailable(builder, this.CANONICAL_FALLBACK_AVAILABLE);
|
|
121
|
+
PLGFlowEdgeContract.addAlignedEligible(builder, this.ALIGNED_ELIGIBLE);
|
|
122
|
+
PLGFlowEdgeContract.addRoutePolicy(builder, this.ROUTE_POLICY);
|
|
123
|
+
PLGFlowEdgeContract.addOpaque(builder, this.OPAQUE);
|
|
124
|
+
return PLGFlowEdgeContract.endPLGFlowEdgeContract(builder);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
4
|
+
|
|
5
|
+
import * as flatbuffers from 'flatbuffers';
|
|
6
|
+
|
|
7
|
+
import { FlatBufferTypeRef, FlatBufferTypeRefT } from './FlatBufferTypeRef.js';
|
|
8
|
+
import { flowEdgeRoutePolicy } from './flowEdgeRoutePolicy.js';
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Exact validated SDS and representation contract bound into a signed flow
|
|
13
|
+
* edge. CANONICAL_TYPE and ALIGNED_TYPE describe the same logical schema;
|
|
14
|
+
* ALIGNED_TYPE carries its fixed layout in TAB.FlatBufferTypeRef.
|
|
15
|
+
*/
|
|
16
|
+
export class PLGFlowEdgeContract implements flatbuffers.IUnpackableObject<PLGFlowEdgeContractT> {
|
|
17
|
+
bb: flatbuffers.ByteBuffer|null = null;
|
|
18
|
+
bb_pos = 0;
|
|
19
|
+
__init(i:number, bb:flatbuffers.ByteBuffer):PLGFlowEdgeContract {
|
|
20
|
+
this.bb_pos = i;
|
|
21
|
+
this.bb = bb;
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static getRootAsPLGFlowEdgeContract(bb:flatbuffers.ByteBuffer, obj?:PLGFlowEdgeContract):PLGFlowEdgeContract {
|
|
26
|
+
return (obj || new PLGFlowEdgeContract()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static getSizePrefixedRootAsPLGFlowEdgeContract(bb:flatbuffers.ByteBuffer, obj?:PLGFlowEdgeContract):PLGFlowEdgeContract {
|
|
30
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
31
|
+
return (obj || new PLGFlowEdgeContract()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Canonical SDS identity carried by the edge. NOT `required`: an edge may
|
|
36
|
+
* be opaque by design (see OPAQUE), and a signer must never be forced to
|
|
37
|
+
* invent an identity to satisfy the schema. A contract MUST carry exactly
|
|
38
|
+
* one of CANONICAL_TYPE or OPAQUE = true; a contract with neither, or with
|
|
39
|
+
* both, is invalid and MUST be rejected by the compiler that signs the flow.
|
|
40
|
+
*/
|
|
41
|
+
CANONICAL_TYPE(obj?:FlatBufferTypeRef):FlatBufferTypeRef|null {
|
|
42
|
+
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
43
|
+
return offset ? (obj || new FlatBufferTypeRef()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
ALIGNED_TYPE(obj?:FlatBufferTypeRef):FlatBufferTypeRef|null {
|
|
47
|
+
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
48
|
+
return offset ? (obj || new FlatBufferTypeRef()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
CANONICAL_FALLBACK_AVAILABLE():boolean {
|
|
52
|
+
const offset = this.bb!.__offset(this.bb_pos, 8);
|
|
53
|
+
return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
ALIGNED_ELIGIBLE():boolean {
|
|
57
|
+
const offset = this.bb!.__offset(this.bb_pos, 10);
|
|
58
|
+
return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : false;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
ROUTE_POLICY():flowEdgeRoutePolicy {
|
|
62
|
+
const offset = this.bb!.__offset(this.bb_pos, 12);
|
|
63
|
+
return offset ? this.bb!.readUint8(this.bb_pos + offset) : flowEdgeRoutePolicy.CANONICAL_ONLY;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The edge carries bytes with no SDS identity BY DESIGN — an
|
|
68
|
+
* application-blind host-capability adapter (an HTTP body, a raw file
|
|
69
|
+
* chunk) or a timer TICK frame with no payload at all. This is a deliberate
|
|
70
|
+
* signed assertion of opacity, which is why it is an explicit flag rather
|
|
71
|
+
* than an absent CANONICAL_TYPE: a missing type must stay distinguishable
|
|
72
|
+
* from a declared-opaque one. An opaque edge is ineligible for the aligned
|
|
73
|
+
* route, so ALIGNED_ELIGIBLE MUST be false when OPAQUE is true.
|
|
74
|
+
*/
|
|
75
|
+
OPAQUE():boolean {
|
|
76
|
+
const offset = this.bb!.__offset(this.bb_pos, 14);
|
|
77
|
+
return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : false;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
static startPLGFlowEdgeContract(builder:flatbuffers.Builder) {
|
|
81
|
+
builder.startObject(6);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
static addCanonicalType(builder:flatbuffers.Builder, CANONICAL_TYPEOffset:flatbuffers.Offset) {
|
|
85
|
+
builder.addFieldOffset(0, CANONICAL_TYPEOffset, 0);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
static addAlignedType(builder:flatbuffers.Builder, ALIGNED_TYPEOffset:flatbuffers.Offset) {
|
|
89
|
+
builder.addFieldOffset(1, ALIGNED_TYPEOffset, 0);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
static addCanonicalFallbackAvailable(builder:flatbuffers.Builder, CANONICAL_FALLBACK_AVAILABLE:boolean) {
|
|
93
|
+
builder.addFieldInt8(2, +CANONICAL_FALLBACK_AVAILABLE, +true);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
static addAlignedEligible(builder:flatbuffers.Builder, ALIGNED_ELIGIBLE:boolean) {
|
|
97
|
+
builder.addFieldInt8(3, +ALIGNED_ELIGIBLE, +false);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
static addRoutePolicy(builder:flatbuffers.Builder, ROUTE_POLICY:flowEdgeRoutePolicy) {
|
|
101
|
+
builder.addFieldInt8(4, ROUTE_POLICY, flowEdgeRoutePolicy.CANONICAL_ONLY);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
static addOpaque(builder:flatbuffers.Builder, OPAQUE:boolean) {
|
|
105
|
+
builder.addFieldInt8(5, +OPAQUE, +false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
static endPLGFlowEdgeContract(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
109
|
+
const offset = builder.endObject();
|
|
110
|
+
return offset;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
unpack(): PLGFlowEdgeContractT {
|
|
115
|
+
return new PLGFlowEdgeContractT(
|
|
116
|
+
(this.CANONICAL_TYPE() !== null ? this.CANONICAL_TYPE()!.unpack() : null),
|
|
117
|
+
(this.ALIGNED_TYPE() !== null ? this.ALIGNED_TYPE()!.unpack() : null),
|
|
118
|
+
this.CANONICAL_FALLBACK_AVAILABLE(),
|
|
119
|
+
this.ALIGNED_ELIGIBLE(),
|
|
120
|
+
this.ROUTE_POLICY(),
|
|
121
|
+
this.OPAQUE()
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
unpackTo(_o: PLGFlowEdgeContractT): void {
|
|
127
|
+
_o.CANONICAL_TYPE = (this.CANONICAL_TYPE() !== null ? this.CANONICAL_TYPE()!.unpack() : null);
|
|
128
|
+
_o.ALIGNED_TYPE = (this.ALIGNED_TYPE() !== null ? this.ALIGNED_TYPE()!.unpack() : null);
|
|
129
|
+
_o.CANONICAL_FALLBACK_AVAILABLE = this.CANONICAL_FALLBACK_AVAILABLE();
|
|
130
|
+
_o.ALIGNED_ELIGIBLE = this.ALIGNED_ELIGIBLE();
|
|
131
|
+
_o.ROUTE_POLICY = this.ROUTE_POLICY();
|
|
132
|
+
_o.OPAQUE = this.OPAQUE();
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export class PLGFlowEdgeContractT implements flatbuffers.IGeneratedObject {
|
|
137
|
+
constructor(
|
|
138
|
+
public CANONICAL_TYPE: FlatBufferTypeRefT|null = null,
|
|
139
|
+
public ALIGNED_TYPE: FlatBufferTypeRefT|null = null,
|
|
140
|
+
public CANONICAL_FALLBACK_AVAILABLE: boolean = true,
|
|
141
|
+
public ALIGNED_ELIGIBLE: boolean = false,
|
|
142
|
+
public ROUTE_POLICY: flowEdgeRoutePolicy = flowEdgeRoutePolicy.CANONICAL_ONLY,
|
|
143
|
+
public OPAQUE: boolean = false
|
|
144
|
+
){}
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
|
148
|
+
const CANONICAL_TYPE = (this.CANONICAL_TYPE !== null ? this.CANONICAL_TYPE!.pack(builder) : 0);
|
|
149
|
+
const ALIGNED_TYPE = (this.ALIGNED_TYPE !== null ? this.ALIGNED_TYPE!.pack(builder) : 0);
|
|
150
|
+
|
|
151
|
+
PLGFlowEdgeContract.startPLGFlowEdgeContract(builder);
|
|
152
|
+
PLGFlowEdgeContract.addCanonicalType(builder, CANONICAL_TYPE);
|
|
153
|
+
PLGFlowEdgeContract.addAlignedType(builder, ALIGNED_TYPE);
|
|
154
|
+
PLGFlowEdgeContract.addCanonicalFallbackAvailable(builder, this.CANONICAL_FALLBACK_AVAILABLE);
|
|
155
|
+
PLGFlowEdgeContract.addAlignedEligible(builder, this.ALIGNED_ELIGIBLE);
|
|
156
|
+
PLGFlowEdgeContract.addRoutePolicy(builder, this.ROUTE_POLICY);
|
|
157
|
+
PLGFlowEdgeContract.addOpaque(builder, this.OPAQUE);
|
|
158
|
+
|
|
159
|
+
return PLGFlowEdgeContract.endPLGFlowEdgeContract(builder);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
/**
|
|
3
|
+
* One node in a composed flow graph. A degenerate flow IS a module: a leaf
|
|
4
|
+
* module leaves the flow-graph fields on PLG empty; a composed flow populates
|
|
5
|
+
* them. This is how flows reuse the module schema rather than a separate one.
|
|
6
|
+
*/
|
|
7
|
+
export declare class PLGFlowNode implements flatbuffers.IUnpackableObject<PLGFlowNodeT> {
|
|
8
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
9
|
+
bb_pos: number;
|
|
10
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): PLGFlowNode;
|
|
11
|
+
static getRootAsPLGFlowNode(bb: flatbuffers.ByteBuffer, obj?: PLGFlowNode): PLGFlowNode;
|
|
12
|
+
static getSizePrefixedRootAsPLGFlowNode(bb: flatbuffers.ByteBuffer, obj?: PLGFlowNode): PLGFlowNode;
|
|
13
|
+
/**
|
|
14
|
+
* Stable node identifier within this flow
|
|
15
|
+
*/
|
|
16
|
+
NODE_ID(): string;
|
|
17
|
+
NODE_ID(optionalEncoding: flatbuffers.Encoding): string | Uint8Array;
|
|
18
|
+
/**
|
|
19
|
+
* Plugin id of the module this node invokes
|
|
20
|
+
*/
|
|
21
|
+
PLUGIN_ID(): string;
|
|
22
|
+
PLUGIN_ID(optionalEncoding: flatbuffers.Encoding): string | Uint8Array;
|
|
23
|
+
/**
|
|
24
|
+
* Method id invoked on the module
|
|
25
|
+
*/
|
|
26
|
+
METHOD_ID(): string | null;
|
|
27
|
+
METHOD_ID(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
28
|
+
/**
|
|
29
|
+
* Node kind, e.g. "transform", "trigger", "capability"
|
|
30
|
+
*/
|
|
31
|
+
KIND(): string | null;
|
|
32
|
+
KIND(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
33
|
+
/**
|
|
34
|
+
* Dispatch model: empty = linked-direct (in-wasm), "isomorphic" = an
|
|
35
|
+
* independently instantiated signed WASM node, and "host-capability" = a
|
|
36
|
+
* generic host adapter.
|
|
37
|
+
*/
|
|
38
|
+
DISPATCH_MODEL(): string | null;
|
|
39
|
+
DISPATCH_MODEL(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
40
|
+
/**
|
|
41
|
+
* Opaque per-node configuration (FlatBuffer or raw bytes; never JSON)
|
|
42
|
+
*/
|
|
43
|
+
CONFIG(index: number): number | null;
|
|
44
|
+
configLength(): number;
|
|
45
|
+
configArray(): Uint8Array | null;
|
|
46
|
+
/**
|
|
47
|
+
* Editor layout X position
|
|
48
|
+
*/
|
|
49
|
+
UI_X(): number;
|
|
50
|
+
/**
|
|
51
|
+
* Editor layout Y position
|
|
52
|
+
*/
|
|
53
|
+
UI_Y(): number;
|
|
54
|
+
static startPLGFlowNode(builder: flatbuffers.Builder): void;
|
|
55
|
+
static addNodeId(builder: flatbuffers.Builder, NODE_IDOffset: flatbuffers.Offset): void;
|
|
56
|
+
static addPluginId(builder: flatbuffers.Builder, PLUGIN_IDOffset: flatbuffers.Offset): void;
|
|
57
|
+
static addMethodId(builder: flatbuffers.Builder, METHOD_IDOffset: flatbuffers.Offset): void;
|
|
58
|
+
static addKind(builder: flatbuffers.Builder, KINDOffset: flatbuffers.Offset): void;
|
|
59
|
+
static addDispatchModel(builder: flatbuffers.Builder, DISPATCH_MODELOffset: flatbuffers.Offset): void;
|
|
60
|
+
static addConfig(builder: flatbuffers.Builder, CONFIGOffset: flatbuffers.Offset): void;
|
|
61
|
+
static createConfigVector(builder: flatbuffers.Builder, data: number[] | Uint8Array): flatbuffers.Offset;
|
|
62
|
+
static startConfigVector(builder: flatbuffers.Builder, numElems: number): void;
|
|
63
|
+
static addUiX(builder: flatbuffers.Builder, UI_X: number): void;
|
|
64
|
+
static addUiY(builder: flatbuffers.Builder, UI_Y: number): void;
|
|
65
|
+
static endPLGFlowNode(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
66
|
+
static createPLGFlowNode(builder: flatbuffers.Builder, NODE_IDOffset: flatbuffers.Offset, PLUGIN_IDOffset: flatbuffers.Offset, METHOD_IDOffset: flatbuffers.Offset, KINDOffset: flatbuffers.Offset, DISPATCH_MODELOffset: flatbuffers.Offset, CONFIGOffset: flatbuffers.Offset, UI_X: number, UI_Y: number): flatbuffers.Offset;
|
|
67
|
+
unpack(): PLGFlowNodeT;
|
|
68
|
+
unpackTo(_o: PLGFlowNodeT): void;
|
|
69
|
+
}
|
|
70
|
+
export declare class PLGFlowNodeT implements flatbuffers.IGeneratedObject {
|
|
71
|
+
NODE_ID: string | Uint8Array | null;
|
|
72
|
+
PLUGIN_ID: string | Uint8Array | null;
|
|
73
|
+
METHOD_ID: string | Uint8Array | null;
|
|
74
|
+
KIND: string | Uint8Array | null;
|
|
75
|
+
DISPATCH_MODEL: string | Uint8Array | null;
|
|
76
|
+
CONFIG: (number)[];
|
|
77
|
+
UI_X: number;
|
|
78
|
+
UI_Y: number;
|
|
79
|
+
constructor(NODE_ID?: string | Uint8Array | null, PLUGIN_ID?: string | Uint8Array | null, METHOD_ID?: string | Uint8Array | null, KIND?: string | Uint8Array | null, DISPATCH_MODEL?: string | Uint8Array | null, CONFIG?: (number)[], UI_X?: number, UI_Y?: number);
|
|
80
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=PLGFlowNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PLGFlowNode.d.ts","sourceRoot":"","sources":["../../../ts/PLG/PLGFlowNode.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
3
|
+
import * as flatbuffers from 'flatbuffers';
|
|
4
|
+
/**
|
|
5
|
+
* One node in a composed flow graph. A degenerate flow IS a module: a leaf
|
|
6
|
+
* module leaves the flow-graph fields on PLG empty; a composed flow populates
|
|
7
|
+
* them. This is how flows reuse the module schema rather than a separate one.
|
|
8
|
+
*/
|
|
9
|
+
export class PLGFlowNode {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.bb = null;
|
|
12
|
+
this.bb_pos = 0;
|
|
13
|
+
}
|
|
14
|
+
__init(i, bb) {
|
|
15
|
+
this.bb_pos = i;
|
|
16
|
+
this.bb = bb;
|
|
17
|
+
return this;
|
|
18
|
+
}
|
|
19
|
+
static getRootAsPLGFlowNode(bb, obj) {
|
|
20
|
+
return (obj || new PLGFlowNode()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
+
}
|
|
22
|
+
static getSizePrefixedRootAsPLGFlowNode(bb, obj) {
|
|
23
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
24
|
+
return (obj || new PLGFlowNode()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
25
|
+
}
|
|
26
|
+
NODE_ID(optionalEncoding) {
|
|
27
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
28
|
+
return this.bb.__string(this.bb_pos + offset, optionalEncoding);
|
|
29
|
+
}
|
|
30
|
+
PLUGIN_ID(optionalEncoding) {
|
|
31
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
32
|
+
return this.bb.__string(this.bb_pos + offset, optionalEncoding);
|
|
33
|
+
}
|
|
34
|
+
METHOD_ID(optionalEncoding) {
|
|
35
|
+
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
36
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
37
|
+
}
|
|
38
|
+
KIND(optionalEncoding) {
|
|
39
|
+
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
40
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
41
|
+
}
|
|
42
|
+
DISPATCH_MODEL(optionalEncoding) {
|
|
43
|
+
const offset = this.bb.__offset(this.bb_pos, 12);
|
|
44
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Opaque per-node configuration (FlatBuffer or raw bytes; never JSON)
|
|
48
|
+
*/
|
|
49
|
+
CONFIG(index) {
|
|
50
|
+
const offset = this.bb.__offset(this.bb_pos, 14);
|
|
51
|
+
return offset ? this.bb.readUint8(this.bb.__vector(this.bb_pos + offset) + index) : 0;
|
|
52
|
+
}
|
|
53
|
+
configLength() {
|
|
54
|
+
const offset = this.bb.__offset(this.bb_pos, 14);
|
|
55
|
+
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
56
|
+
}
|
|
57
|
+
configArray() {
|
|
58
|
+
const offset = this.bb.__offset(this.bb_pos, 14);
|
|
59
|
+
return offset ? new Uint8Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + offset), this.bb.__vector_len(this.bb_pos + offset)) : null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Editor layout X position
|
|
63
|
+
*/
|
|
64
|
+
UI_X() {
|
|
65
|
+
const offset = this.bb.__offset(this.bb_pos, 16);
|
|
66
|
+
return offset ? this.bb.readFloat32(this.bb_pos + offset) : 0.0;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Editor layout Y position
|
|
70
|
+
*/
|
|
71
|
+
UI_Y() {
|
|
72
|
+
const offset = this.bb.__offset(this.bb_pos, 18);
|
|
73
|
+
return offset ? this.bb.readFloat32(this.bb_pos + offset) : 0.0;
|
|
74
|
+
}
|
|
75
|
+
static startPLGFlowNode(builder) {
|
|
76
|
+
builder.startObject(8);
|
|
77
|
+
}
|
|
78
|
+
static addNodeId(builder, NODE_IDOffset) {
|
|
79
|
+
builder.addFieldOffset(0, NODE_IDOffset, 0);
|
|
80
|
+
}
|
|
81
|
+
static addPluginId(builder, PLUGIN_IDOffset) {
|
|
82
|
+
builder.addFieldOffset(1, PLUGIN_IDOffset, 0);
|
|
83
|
+
}
|
|
84
|
+
static addMethodId(builder, METHOD_IDOffset) {
|
|
85
|
+
builder.addFieldOffset(2, METHOD_IDOffset, 0);
|
|
86
|
+
}
|
|
87
|
+
static addKind(builder, KINDOffset) {
|
|
88
|
+
builder.addFieldOffset(3, KINDOffset, 0);
|
|
89
|
+
}
|
|
90
|
+
static addDispatchModel(builder, DISPATCH_MODELOffset) {
|
|
91
|
+
builder.addFieldOffset(4, DISPATCH_MODELOffset, 0);
|
|
92
|
+
}
|
|
93
|
+
static addConfig(builder, CONFIGOffset) {
|
|
94
|
+
builder.addFieldOffset(5, CONFIGOffset, 0);
|
|
95
|
+
}
|
|
96
|
+
static createConfigVector(builder, data) {
|
|
97
|
+
builder.startVector(1, data.length, 1);
|
|
98
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
99
|
+
builder.addInt8(data[i]);
|
|
100
|
+
}
|
|
101
|
+
return builder.endVector();
|
|
102
|
+
}
|
|
103
|
+
static startConfigVector(builder, numElems) {
|
|
104
|
+
builder.startVector(1, numElems, 1);
|
|
105
|
+
}
|
|
106
|
+
static addUiX(builder, UI_X) {
|
|
107
|
+
builder.addFieldFloat32(6, UI_X, 0.0);
|
|
108
|
+
}
|
|
109
|
+
static addUiY(builder, UI_Y) {
|
|
110
|
+
builder.addFieldFloat32(7, UI_Y, 0.0);
|
|
111
|
+
}
|
|
112
|
+
static endPLGFlowNode(builder) {
|
|
113
|
+
const offset = builder.endObject();
|
|
114
|
+
builder.requiredField(offset, 4); // NODE_ID
|
|
115
|
+
builder.requiredField(offset, 6); // PLUGIN_ID
|
|
116
|
+
return offset;
|
|
117
|
+
}
|
|
118
|
+
static createPLGFlowNode(builder, NODE_IDOffset, PLUGIN_IDOffset, METHOD_IDOffset, KINDOffset, DISPATCH_MODELOffset, CONFIGOffset, UI_X, UI_Y) {
|
|
119
|
+
PLGFlowNode.startPLGFlowNode(builder);
|
|
120
|
+
PLGFlowNode.addNodeId(builder, NODE_IDOffset);
|
|
121
|
+
PLGFlowNode.addPluginId(builder, PLUGIN_IDOffset);
|
|
122
|
+
PLGFlowNode.addMethodId(builder, METHOD_IDOffset);
|
|
123
|
+
PLGFlowNode.addKind(builder, KINDOffset);
|
|
124
|
+
PLGFlowNode.addDispatchModel(builder, DISPATCH_MODELOffset);
|
|
125
|
+
PLGFlowNode.addConfig(builder, CONFIGOffset);
|
|
126
|
+
PLGFlowNode.addUiX(builder, UI_X);
|
|
127
|
+
PLGFlowNode.addUiY(builder, UI_Y);
|
|
128
|
+
return PLGFlowNode.endPLGFlowNode(builder);
|
|
129
|
+
}
|
|
130
|
+
unpack() {
|
|
131
|
+
return new PLGFlowNodeT(this.NODE_ID(), this.PLUGIN_ID(), this.METHOD_ID(), this.KIND(), this.DISPATCH_MODEL(), this.bb.createScalarList(this.CONFIG.bind(this), this.configLength()), this.UI_X(), this.UI_Y());
|
|
132
|
+
}
|
|
133
|
+
unpackTo(_o) {
|
|
134
|
+
_o.NODE_ID = this.NODE_ID();
|
|
135
|
+
_o.PLUGIN_ID = this.PLUGIN_ID();
|
|
136
|
+
_o.METHOD_ID = this.METHOD_ID();
|
|
137
|
+
_o.KIND = this.KIND();
|
|
138
|
+
_o.DISPATCH_MODEL = this.DISPATCH_MODEL();
|
|
139
|
+
_o.CONFIG = this.bb.createScalarList(this.CONFIG.bind(this), this.configLength());
|
|
140
|
+
_o.UI_X = this.UI_X();
|
|
141
|
+
_o.UI_Y = this.UI_Y();
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
export class PLGFlowNodeT {
|
|
145
|
+
constructor(NODE_ID = null, PLUGIN_ID = null, METHOD_ID = null, KIND = null, DISPATCH_MODEL = null, CONFIG = [], UI_X = 0.0, UI_Y = 0.0) {
|
|
146
|
+
this.NODE_ID = NODE_ID;
|
|
147
|
+
this.PLUGIN_ID = PLUGIN_ID;
|
|
148
|
+
this.METHOD_ID = METHOD_ID;
|
|
149
|
+
this.KIND = KIND;
|
|
150
|
+
this.DISPATCH_MODEL = DISPATCH_MODEL;
|
|
151
|
+
this.CONFIG = CONFIG;
|
|
152
|
+
this.UI_X = UI_X;
|
|
153
|
+
this.UI_Y = UI_Y;
|
|
154
|
+
}
|
|
155
|
+
pack(builder) {
|
|
156
|
+
const NODE_ID = (this.NODE_ID !== null ? builder.createString(this.NODE_ID) : 0);
|
|
157
|
+
const PLUGIN_ID = (this.PLUGIN_ID !== null ? builder.createString(this.PLUGIN_ID) : 0);
|
|
158
|
+
const METHOD_ID = (this.METHOD_ID !== null ? builder.createString(this.METHOD_ID) : 0);
|
|
159
|
+
const KIND = (this.KIND !== null ? builder.createString(this.KIND) : 0);
|
|
160
|
+
const DISPATCH_MODEL = (this.DISPATCH_MODEL !== null ? builder.createString(this.DISPATCH_MODEL) : 0);
|
|
161
|
+
const CONFIG = PLGFlowNode.createConfigVector(builder, this.CONFIG);
|
|
162
|
+
return PLGFlowNode.createPLGFlowNode(builder, NODE_ID, PLUGIN_ID, METHOD_ID, KIND, DISPATCH_MODEL, CONFIG, this.UI_X, this.UI_Y);
|
|
163
|
+
}
|
|
164
|
+
}
|