space-data-module-sdk 0.8.4 → 0.8.5

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.
Files changed (354) hide show
  1. package/README.md +117 -20
  2. package/bin/space-data-module.js +263 -0
  3. package/docs/.nojekyll +1 -0
  4. package/docs/AGENTS.md +34 -0
  5. package/docs/architecture.svg +141 -0
  6. package/docs/browser-wasmedge-isomorphic.md +179 -0
  7. package/docs/flatsql-streaming-standard.md +341 -0
  8. package/docs/gpu-module-abi.md +193 -0
  9. package/docs/index.html +125 -0
  10. package/docs/isomorphic-pthreads.md +188 -0
  11. package/docs/isomorphic-sdn-runtime-plan.md +167 -0
  12. package/docs/language-runtime-matrix.md +82 -0
  13. package/docs/manifest-structure.svg +114 -0
  14. package/docs/module-bundle-runtime-plan.md +19 -0
  15. package/docs/module-lifecycle.svg +70 -0
  16. package/docs/module-publication-standard.md +540 -0
  17. package/docs/node-red-default-node-parity.md +88 -0
  18. package/docs/protocol-installation.md +196 -0
  19. package/docs/secrets-capability.md +152 -0
  20. package/docs/styles.css +288 -0
  21. package/docs/testing-harness.md +408 -0
  22. package/docs/tri-runtime-parity.md +132 -0
  23. package/docs/wallet-callback.html +2 -0
  24. package/package.json +25 -6
  25. package/schemas/HttpRequestAbi.fbs +41 -0
  26. package/schemas/HttpResponseAbi.fbs +36 -0
  27. package/schemas/PluginManifest.fbs +2 -1
  28. package/src/AGENTS.md +1 -1
  29. package/src/app/codec.js +548 -0
  30. package/src/app/index.js +6 -0
  31. package/src/browser.js +5 -0
  32. package/src/bundle/constants.js +1 -0
  33. package/src/bundle/index.js +15 -0
  34. package/src/bundle/sigdomain.js +179 -0
  35. package/src/bundle/signing.js +767 -0
  36. package/src/bundle/wasm.js +3 -2
  37. package/src/capabilities.js +3 -0
  38. package/src/compat/index.js +7 -0
  39. package/src/compat/sdnLegacy.js +449 -0
  40. package/src/compiler/compileModule.js +556 -55
  41. package/src/compiler/flatcSupport.js +41 -27
  42. package/src/compiler/index.d.ts +2 -0
  43. package/src/compiler/index.js +18 -0
  44. package/src/compiler/invokeGlue.js +1212 -183
  45. package/src/compiler/pthreadArtifactGuard.js +910 -0
  46. package/src/compiler/sdnShimGenerator.js +323 -0
  47. package/src/compiler/wasiThreadsToolchain.js +150 -0
  48. package/src/compliance/index.js +11 -1
  49. package/src/compliance/legacyWildcardPorts.js +228 -0
  50. package/src/compliance/pluginCompliance.js +1000 -96
  51. package/src/field-stream/index.d.ts +31 -0
  52. package/src/field-stream/index.js +119 -0
  53. package/src/flow/dependencyStreamBridge.js +234 -0
  54. package/src/flow/flatsqlLinkShim.js +304 -0
  55. package/src/flow/flowCodec.js +107 -0
  56. package/src/flow/flowCompiler.js +2900 -0
  57. package/src/flow/flowRuntimeHost.js +877 -0
  58. package/src/flow/index.d.ts +117 -0
  59. package/src/flow/index.js +31 -0
  60. package/src/flow/isomorphicFlowHost.js +384 -0
  61. package/src/flow/jsFlowRuntime.js +275 -0
  62. package/src/flow/normalize.js +294 -0
  63. package/src/flow/runtime-src/flow_runtime.cpp +1699 -0
  64. package/src/flow/vendor/sdn-flow/MethodRegistry.js +400 -0
  65. package/src/flow/vendor/sdn-flow/constants.js +39 -0
  66. package/src/flow/vendor/sdn-flow/index.js +29 -0
  67. package/src/flow/vendor/sdn-flow/normalize.js +506 -0
  68. package/src/flow/vendor/sdn-flow/wasmCompatibility.js +189 -0
  69. package/src/generated/http/cpp/HttpRequestAbi_generated.h +285 -0
  70. package/src/generated/http/cpp/HttpResponseAbi_generated.h +192 -0
  71. package/src/generated/http/sdn/http/http-header.js +53 -0
  72. package/src/generated/http/sdn/http/http-header.ts +67 -0
  73. package/src/generated/http/sdn/http/http-request.js +132 -0
  74. package/src/generated/http/sdn/http/http-request.ts +179 -0
  75. package/src/generated/http/sdn/http/http-response.js +144 -0
  76. package/src/generated/http/sdn/http/http-response.ts +168 -0
  77. package/src/generated/http/sdn/http.js +11 -0
  78. package/src/generated/http/sdn/http.ts +4 -0
  79. package/src/generated/orbpro/flow/backpressure-policy.d.ts +12 -0
  80. package/src/generated/orbpro/flow/backpressure-policy.d.ts.map +1 -0
  81. package/src/generated/orbpro/flow/backpressure-policy.js +17 -0
  82. package/src/generated/orbpro/flow/backpressure-policy.js.map +1 -0
  83. package/src/generated/orbpro/flow/backpressure-policy.ts +15 -0
  84. package/src/generated/orbpro/flow/flow-bundle-manifest.d.ts +142 -0
  85. package/src/generated/orbpro/flow/flow-bundle-manifest.d.ts.map +1 -0
  86. package/src/generated/orbpro/flow/flow-bundle-manifest.js +304 -0
  87. package/src/generated/orbpro/flow/flow-bundle-manifest.js.map +1 -0
  88. package/src/generated/orbpro/flow/flow-bundle-manifest.ts +399 -0
  89. package/src/generated/orbpro/flow/flow-edge.d.ts +113 -0
  90. package/src/generated/orbpro/flow/flow-edge.d.ts.map +1 -0
  91. package/src/generated/orbpro/flow/flow-edge.js +221 -0
  92. package/src/generated/orbpro/flow/flow-edge.js.map +1 -0
  93. package/src/generated/orbpro/flow/flow-edge.ts +292 -0
  94. package/src/generated/orbpro/flow/flow-node.d.ts +80 -0
  95. package/src/generated/orbpro/flow/flow-node.d.ts.map +1 -0
  96. package/src/generated/orbpro/flow/flow-node.js +158 -0
  97. package/src/generated/orbpro/flow/flow-node.js.map +1 -0
  98. package/src/generated/orbpro/flow/flow-node.ts +202 -0
  99. package/src/generated/orbpro/flow/flow-program.d.ts +164 -0
  100. package/src/generated/orbpro/flow/flow-program.d.ts.map +1 -0
  101. package/src/generated/orbpro/flow/flow-program.js +350 -0
  102. package/src/generated/orbpro/flow/flow-program.js.map +1 -0
  103. package/src/generated/orbpro/flow/flow-program.ts +477 -0
  104. package/src/generated/orbpro/flow/flow-trigger.d.ts +108 -0
  105. package/src/generated/orbpro/flow/flow-trigger.d.ts.map +1 -0
  106. package/src/generated/orbpro/flow/flow-trigger.js +207 -0
  107. package/src/generated/orbpro/flow/flow-trigger.js.map +1 -0
  108. package/src/generated/orbpro/flow/flow-trigger.ts +276 -0
  109. package/src/generated/orbpro/flow/node-kind.d.ts +13 -0
  110. package/src/generated/orbpro/flow/node-kind.d.ts.map +1 -0
  111. package/src/generated/orbpro/flow/node-kind.js +16 -0
  112. package/src/generated/orbpro/flow/node-kind.js.map +1 -0
  113. package/src/generated/orbpro/{invoke.ts → flow/node-kind.ts} +12 -2
  114. package/src/generated/orbpro/flow/plugin-version-binding.d.ts +52 -0
  115. package/src/generated/orbpro/flow/plugin-version-binding.d.ts.map +1 -0
  116. package/src/generated/orbpro/flow/plugin-version-binding.js +85 -0
  117. package/src/generated/orbpro/flow/plugin-version-binding.js.map +1 -0
  118. package/src/generated/orbpro/flow/plugin-version-binding.ts +121 -0
  119. package/src/generated/orbpro/flow/schema-hash-binding.d.ts +70 -0
  120. package/src/generated/orbpro/flow/schema-hash-binding.d.ts.map +1 -0
  121. package/src/generated/orbpro/flow/schema-hash-binding.js +143 -0
  122. package/src/generated/orbpro/flow/schema-hash-binding.js.map +1 -0
  123. package/src/generated/orbpro/flow/schema-hash-binding.ts +189 -0
  124. package/src/generated/orbpro/flow/trigger-binding.d.ts +71 -0
  125. package/src/generated/orbpro/flow/trigger-binding.d.ts.map +1 -0
  126. package/src/generated/orbpro/flow/trigger-binding.js +142 -0
  127. package/src/generated/orbpro/flow/trigger-binding.js.map +1 -0
  128. package/src/generated/orbpro/flow/trigger-binding.ts +181 -0
  129. package/src/generated/orbpro/flow/trigger-kind.d.ts +14 -0
  130. package/src/generated/orbpro/flow/trigger-kind.d.ts.map +1 -0
  131. package/src/generated/orbpro/flow/trigger-kind.js +17 -0
  132. package/src/generated/orbpro/flow/trigger-kind.js.map +1 -0
  133. package/src/generated/orbpro/flow/trigger-kind.ts +17 -0
  134. package/src/generated/orbpro/flow.d.ts +21 -0
  135. package/src/generated/orbpro/flow.d.ts.map +1 -0
  136. package/src/generated/orbpro/flow.js +23 -0
  137. package/src/generated/orbpro/flow.js.map +1 -0
  138. package/src/generated/orbpro/flow.ts +24 -0
  139. package/src/generated/orbpro/manifest/capability-kind.d.ts +2 -1
  140. package/src/generated/orbpro/manifest/capability-kind.js +1 -0
  141. package/src/generated/orbpro/manifest/capability-kind.ts +1 -0
  142. package/src/generated/orbpro/plugin/stream-invoke-request.d.ts +93 -0
  143. package/src/generated/orbpro/plugin/stream-invoke-request.js +160 -0
  144. package/src/generated/orbpro/plugin/stream-invoke-request.ts +211 -0
  145. package/src/generated/orbpro/plugin/stream-invoke-response.d.ts +99 -0
  146. package/src/generated/orbpro/plugin/stream-invoke-response.js +175 -0
  147. package/src/generated/orbpro/plugin/stream-invoke-response.ts +226 -0
  148. package/src/generated/orbpro/plugin.js +8 -0
  149. package/src/generated/orbpro/stream.d.ts +12 -0
  150. package/src/generated/orbpro/stream.js +14 -0
  151. package/src/generated/orbpro/stream.ts +15 -0
  152. package/src/generated/spacedatastandards/plg/EntryFunction.d.ts +52 -0
  153. package/src/generated/spacedatastandards/plg/EntryFunction.d.ts.map +1 -0
  154. package/src/generated/spacedatastandards/plg/EntryFunction.js +106 -0
  155. package/src/generated/spacedatastandards/plg/EntryFunction.ts +162 -0
  156. package/src/generated/spacedatastandards/plg/FlatBufferTypeRef.d.ts +90 -0
  157. package/src/generated/spacedatastandards/plg/FlatBufferTypeRef.d.ts.map +1 -0
  158. package/src/generated/spacedatastandards/plg/FlatBufferTypeRef.js +189 -0
  159. package/src/generated/spacedatastandards/plg/FlatBufferTypeRef.ts +270 -0
  160. package/src/generated/spacedatastandards/plg/PLG.d.ts +492 -0
  161. package/src/generated/spacedatastandards/plg/PLG.d.ts.map +1 -0
  162. package/src/generated/spacedatastandards/plg/PLG.js +1139 -0
  163. package/src/generated/spacedatastandards/plg/PLG.ts +1600 -0
  164. package/src/generated/spacedatastandards/plg/PLGAcceptedTypeSet.d.ts +63 -0
  165. package/src/generated/spacedatastandards/plg/PLGAcceptedTypeSet.d.ts.map +1 -0
  166. package/src/generated/spacedatastandards/plg/PLGAcceptedTypeSet.js +138 -0
  167. package/src/generated/spacedatastandards/plg/PLGAcceptedTypeSet.ts +189 -0
  168. package/src/generated/spacedatastandards/plg/PLGBuildArtifact.d.ts +41 -0
  169. package/src/generated/spacedatastandards/plg/PLGBuildArtifact.d.ts.map +1 -0
  170. package/src/generated/spacedatastandards/plg/PLGBuildArtifact.js +104 -0
  171. package/src/generated/spacedatastandards/plg/PLGBuildArtifact.ts +151 -0
  172. package/src/generated/spacedatastandards/plg/PLGFlowEdge.d.ts +68 -0
  173. package/src/generated/spacedatastandards/plg/PLGFlowEdge.d.ts.map +1 -0
  174. package/src/generated/spacedatastandards/plg/PLGFlowEdge.js +124 -0
  175. package/src/generated/spacedatastandards/plg/PLGFlowEdge.ts +184 -0
  176. package/src/generated/spacedatastandards/plg/PLGFlowEdgeContract.d.ts +58 -0
  177. package/src/generated/spacedatastandards/plg/PLGFlowEdgeContract.d.ts.map +1 -0
  178. package/src/generated/spacedatastandards/plg/PLGFlowEdgeContract.js +126 -0
  179. package/src/generated/spacedatastandards/plg/PLGFlowEdgeContract.ts +161 -0
  180. package/src/generated/spacedatastandards/plg/PLGFlowNode.d.ts +82 -0
  181. package/src/generated/spacedatastandards/plg/PLGFlowNode.d.ts.map +1 -0
  182. package/src/generated/spacedatastandards/plg/PLGFlowNode.js +164 -0
  183. package/src/generated/spacedatastandards/plg/PLGFlowNode.ts +244 -0
  184. package/src/generated/spacedatastandards/plg/PLGFlowTrigger.d.ts +55 -0
  185. package/src/generated/spacedatastandards/plg/PLGFlowTrigger.d.ts.map +1 -0
  186. package/src/generated/spacedatastandards/plg/PLGFlowTrigger.js +105 -0
  187. package/src/generated/spacedatastandards/plg/PLGFlowTrigger.ts +162 -0
  188. package/src/generated/spacedatastandards/plg/PLGFlowTriggerBinding.d.ts +42 -0
  189. package/src/generated/spacedatastandards/plg/PLGFlowTriggerBinding.d.ts.map +1 -0
  190. package/src/generated/spacedatastandards/plg/PLGFlowTriggerBinding.js +83 -0
  191. package/src/generated/spacedatastandards/plg/PLGFlowTriggerBinding.ts +127 -0
  192. package/src/generated/spacedatastandards/plg/PLGHostCapability.d.ts +36 -0
  193. package/src/generated/spacedatastandards/plg/PLGHostCapability.d.ts.map +1 -0
  194. package/src/generated/spacedatastandards/plg/PLGHostCapability.js +90 -0
  195. package/src/generated/spacedatastandards/plg/PLGHostCapability.ts +127 -0
  196. package/src/generated/spacedatastandards/plg/PLGMethodManifest.d.ts +53 -0
  197. package/src/generated/spacedatastandards/plg/PLGMethodManifest.d.ts.map +1 -0
  198. package/src/generated/spacedatastandards/plg/PLGMethodManifest.js +153 -0
  199. package/src/generated/spacedatastandards/plg/PLGMethodManifest.ts +210 -0
  200. package/src/generated/spacedatastandards/plg/PLGPortManifest.d.ts +70 -0
  201. package/src/generated/spacedatastandards/plg/PLGPortManifest.d.ts.map +1 -0
  202. package/src/generated/spacedatastandards/plg/PLGPortManifest.js +149 -0
  203. package/src/generated/spacedatastandards/plg/PLGPortManifest.ts +212 -0
  204. package/src/generated/spacedatastandards/plg/PLGProtocolSpec.d.ts +73 -0
  205. package/src/generated/spacedatastandards/plg/PLGProtocolSpec.d.ts.map +1 -0
  206. package/src/generated/spacedatastandards/plg/PLGProtocolSpec.js +199 -0
  207. package/src/generated/spacedatastandards/plg/PLGProtocolSpec.ts +292 -0
  208. package/src/generated/spacedatastandards/plg/PLGTimerSpec.d.ts +40 -0
  209. package/src/generated/spacedatastandards/plg/PLGTimerSpec.d.ts.map +1 -0
  210. package/src/generated/spacedatastandards/plg/PLGTimerSpec.js +103 -0
  211. package/src/generated/spacedatastandards/plg/PLGTimerSpec.ts +148 -0
  212. package/src/generated/spacedatastandards/plg/PluginCapability.d.ts +41 -0
  213. package/src/generated/spacedatastandards/plg/PluginCapability.d.ts.map +1 -0
  214. package/src/generated/spacedatastandards/plg/PluginCapability.js +82 -0
  215. package/src/generated/spacedatastandards/plg/{plugin-capability.ts → PluginCapability.ts} +55 -18
  216. package/src/generated/spacedatastandards/plg/PluginDependency.d.ts +42 -0
  217. package/src/generated/spacedatastandards/plg/PluginDependency.d.ts.map +1 -0
  218. package/src/generated/spacedatastandards/plg/PluginDependency.js +80 -0
  219. package/src/generated/spacedatastandards/plg/PluginDependency.ts +124 -0
  220. package/src/generated/spacedatastandards/plg/TAB.d.ts +85 -0
  221. package/src/generated/spacedatastandards/plg/TAB.d.ts.map +1 -0
  222. package/src/generated/spacedatastandards/plg/TAB.js +173 -0
  223. package/src/generated/spacedatastandards/plg/TAB.ts +228 -0
  224. package/src/generated/spacedatastandards/plg/bufferMutability.d.ts +18 -0
  225. package/src/generated/spacedatastandards/plg/bufferMutability.d.ts.map +1 -0
  226. package/src/generated/spacedatastandards/plg/bufferMutability.js +20 -0
  227. package/src/generated/spacedatastandards/plg/bufferMutability.ts +23 -0
  228. package/src/generated/spacedatastandards/plg/bufferOwnership.d.ts +18 -0
  229. package/src/generated/spacedatastandards/plg/bufferOwnership.d.ts.map +1 -0
  230. package/src/generated/spacedatastandards/plg/bufferOwnership.js +20 -0
  231. package/src/generated/spacedatastandards/plg/bufferOwnership.ts +23 -0
  232. package/src/generated/spacedatastandards/plg/drainBehavior.d.ts +20 -0
  233. package/src/generated/spacedatastandards/plg/drainBehavior.d.ts.map +1 -0
  234. package/src/generated/spacedatastandards/plg/drainBehavior.js +22 -0
  235. package/src/generated/spacedatastandards/plg/drainBehavior.ts +25 -0
  236. package/src/generated/spacedatastandards/plg/flowEdgeRoutePolicy.d.ts +10 -0
  237. package/src/generated/spacedatastandards/plg/flowEdgeRoutePolicy.d.ts.map +1 -0
  238. package/src/generated/spacedatastandards/plg/flowEdgeRoutePolicy.js +12 -0
  239. package/src/generated/spacedatastandards/plg/flowEdgeRoutePolicy.ts +13 -0
  240. package/src/generated/spacedatastandards/plg/hostCapabilityKind.d.ts +51 -0
  241. package/src/generated/spacedatastandards/plg/hostCapabilityKind.d.ts.map +1 -0
  242. package/src/generated/spacedatastandards/plg/hostCapabilityKind.js +53 -0
  243. package/src/generated/spacedatastandards/plg/hostCapabilityKind.ts +55 -0
  244. package/src/generated/spacedatastandards/plg/invokeSurfaceKind.d.ts +15 -0
  245. package/src/generated/spacedatastandards/plg/invokeSurfaceKind.d.ts.map +1 -0
  246. package/src/generated/spacedatastandards/plg/invokeSurfaceKind.js +17 -0
  247. package/src/generated/spacedatastandards/plg/invokeSurfaceKind.ts +19 -0
  248. package/src/generated/spacedatastandards/plg/main.d.ts +29 -0
  249. package/src/generated/spacedatastandards/plg/main.d.ts.map +1 -0
  250. package/src/generated/spacedatastandards/plg/main.js +30 -0
  251. package/src/generated/spacedatastandards/plg/main.ts +32 -0
  252. package/src/generated/spacedatastandards/plg/payloadWireFormat.d.ts +17 -0
  253. package/src/generated/spacedatastandards/plg/payloadWireFormat.d.ts.map +1 -0
  254. package/src/generated/spacedatastandards/plg/payloadWireFormat.js +19 -0
  255. package/src/generated/spacedatastandards/plg/payloadWireFormat.ts +21 -0
  256. package/src/generated/spacedatastandards/plg/pluginCategory.d.ts +82 -0
  257. package/src/generated/spacedatastandards/plg/pluginCategory.d.ts.map +1 -0
  258. package/src/generated/spacedatastandards/plg/pluginCategory.js +84 -0
  259. package/src/generated/spacedatastandards/plg/pluginCategory.ts +103 -0
  260. package/src/generated/spacedatastandards/plg/publicationState.d.ts +18 -0
  261. package/src/generated/spacedatastandards/plg/publicationState.d.ts.map +1 -0
  262. package/src/generated/spacedatastandards/plg/publicationState.js +20 -0
  263. package/src/generated/spacedatastandards/plg/purchaseTier.d.ts +18 -0
  264. package/src/generated/spacedatastandards/plg/purchaseTier.d.ts.map +1 -0
  265. package/src/generated/spacedatastandards/plg/purchaseTier.js +20 -0
  266. package/src/host/AGENTS.md +2 -2
  267. package/src/host/abi.js +53 -66
  268. package/src/host/browserHost.js +355 -8
  269. package/src/host/cpp/keyslotClient.hpp +231 -0
  270. package/src/host/cpp/secretsClient.hpp +583 -0
  271. package/src/host/hostcallWire.js +183 -0
  272. package/src/host/index.js +2 -0
  273. package/src/host/isomorphicLoader.js +44 -7
  274. package/src/host/nodeHost.js +227 -8
  275. package/src/host/sabHostcallChannel.js +206 -0
  276. package/src/host/timerDriver.js +203 -0
  277. package/src/host/wasiShim.js +41 -1
  278. package/src/host/wasiThreadBrowserWorker.mjs +48 -0
  279. package/src/host/wasiThreadHost.js +393 -0
  280. package/src/host/wasiThreadWorker.mjs +32 -0
  281. package/src/host/wasiThreadWorkerRuntime.js +93 -0
  282. package/src/http/index.js +339 -0
  283. package/src/index.d.ts +716 -10
  284. package/src/index.js +4 -0
  285. package/src/invoke/codec.js +1202 -128
  286. package/src/invoke/index.js +5 -1
  287. package/src/licensing/index.d.ts +2 -0
  288. package/src/licensing/index.js +2 -0
  289. package/src/licensing/records.js +287 -8
  290. package/src/manifest/codec.js +62 -14
  291. package/src/manifest/index.js +2 -0
  292. package/src/manifest/legacyToPlg.js +164 -25
  293. package/src/manifest/normalize.js +1 -0
  294. package/src/manifest/plgCodec.js +1303 -62
  295. package/src/manifest/typeRefs.js +162 -24
  296. package/src/runtime/compiledRuntimeAbi.js +47 -0
  297. package/src/runtime/compiledRuntimeAbi.json +33 -0
  298. package/src/runtime/index.d.ts +32 -0
  299. package/src/runtime/index.js +1 -0
  300. package/src/runtime-host/index.js +3 -0
  301. package/src/runtime-host/methodRegistry.js +55 -0
  302. package/src/standards/index.js +200 -56
  303. package/src/standards/sharedCatalog.js +16 -0
  304. package/src/testing/browserModuleHarness.js +604 -31
  305. package/src/testing/docker/wasmedge-parity.Dockerfile +39 -0
  306. package/src/testing/index.d.ts +151 -0
  307. package/src/testing/index.js +21 -0
  308. package/src/testing/native/wasmedge_emscripten_pthread_runner.c +25 -1
  309. package/src/testing/parityBrowserRunner.js +138 -0
  310. package/src/testing/parityHarness.js +616 -0
  311. package/src/testing/parityLanes.js +537 -0
  312. package/src/testing/processInvoke.js +29 -21
  313. package/src/testing/streamInvokeCodec.js +10 -175
  314. package/src/testing/wasmedgePin.json +6 -0
  315. package/src/testing/workerModuleHarness.js +242 -0
  316. package/src/testing/workerModuleHarnessWorker.js +176 -0
  317. package/src/transport/index.js +3 -0
  318. package/src/transport/pki.js +299 -11
  319. package/src/transport/records.js +16 -7
  320. package/src/utils/ecdsaDer.js +106 -0
  321. package/src/utils/wasmCrypto.js +0 -43
  322. package/templates/gpu-module/README.md +48 -0
  323. package/templates/gpu-module/include/space_data_gpu_abi.h +122 -0
  324. package/templates/gpu-module/manifest.json +84 -0
  325. package/schemas/PluginInvokeRequest.fbs +0 -18
  326. package/schemas/PluginInvokeResponse.fbs +0 -30
  327. package/schemas/spacedatastandards/PLG.fbs +0 -191
  328. package/src/generated/orbpro/invoke/plugin-invoke-request.d.ts +0 -51
  329. package/src/generated/orbpro/invoke/plugin-invoke-request.d.ts.map +0 -1
  330. package/src/generated/orbpro/invoke/plugin-invoke-request.js +0 -131
  331. package/src/generated/orbpro/invoke/plugin-invoke-request.js.map +0 -1
  332. package/src/generated/orbpro/invoke/plugin-invoke-request.ts +0 -173
  333. package/src/generated/orbpro/invoke/plugin-invoke-response.d.ts +0 -76
  334. package/src/generated/orbpro/invoke/plugin-invoke-response.d.ts.map +0 -1
  335. package/src/generated/orbpro/invoke/plugin-invoke-response.js +0 -184
  336. package/src/generated/orbpro/invoke/plugin-invoke-response.js.map +0 -1
  337. package/src/generated/orbpro/invoke/plugin-invoke-response.ts +0 -243
  338. package/src/generated/orbpro/invoke.d.ts +0 -3
  339. package/src/generated/orbpro/invoke.js +0 -5
  340. package/src/generated/spacedatastandards/plg/entry-function.js +0 -86
  341. package/src/generated/spacedatastandards/plg/entry-function.ts +0 -119
  342. package/src/generated/spacedatastandards/plg/index.js +0 -16
  343. package/src/generated/spacedatastandards/plg/index.ts +0 -11
  344. package/src/generated/spacedatastandards/plg/plg.js +0 -657
  345. package/src/generated/spacedatastandards/plg/plg.ts +0 -924
  346. package/src/generated/spacedatastandards/plg/plugin-capability.js +0 -66
  347. package/src/generated/spacedatastandards/plg/plugin-category.js +0 -15
  348. package/src/generated/spacedatastandards/plg/plugin-category.ts +0 -53
  349. package/src/generated/spacedatastandards/plg/plugin-dependency.js +0 -63
  350. package/src/generated/spacedatastandards/plg/plugin-dependency.ts +0 -86
  351. package/src/generated/spacedatastandards/plg/publication-state.js +0 -9
  352. package/src/generated/spacedatastandards/plg/purchase-tier.js +0 -9
  353. /package/src/generated/spacedatastandards/plg/{publication-state.ts → publicationState.ts} +0 -0
  354. /package/src/generated/spacedatastandards/plg/{purchase-tier.ts → purchaseTier.ts} +0 -0
@@ -0,0 +1,82 @@
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
+ * Plugin capability declaration
6
+ */
7
+ export class PluginCapability {
8
+ constructor() {
9
+ this.bb = null;
10
+ this.bb_pos = 0;
11
+ }
12
+ __init(i, bb) {
13
+ this.bb_pos = i;
14
+ this.bb = bb;
15
+ return this;
16
+ }
17
+ static getRootAsPluginCapability(bb, obj) {
18
+ return (obj || new PluginCapability()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19
+ }
20
+ static getSizePrefixedRootAsPluginCapability(bb, obj) {
21
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
22
+ return (obj || new PluginCapability()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
23
+ }
24
+ NAME(optionalEncoding) {
25
+ const offset = this.bb.__offset(this.bb_pos, 4);
26
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
27
+ }
28
+ VERSION(optionalEncoding) {
29
+ const offset = this.bb.__offset(this.bb_pos, 6);
30
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
31
+ }
32
+ /**
33
+ * Whether this capability is required
34
+ */
35
+ REQUIRED() {
36
+ const offset = this.bb.__offset(this.bb_pos, 8);
37
+ return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
38
+ }
39
+ static startPluginCapability(builder) {
40
+ builder.startObject(3);
41
+ }
42
+ static addName(builder, NAMEOffset) {
43
+ builder.addFieldOffset(0, NAMEOffset, 0);
44
+ }
45
+ static addVersion(builder, VERSIONOffset) {
46
+ builder.addFieldOffset(1, VERSIONOffset, 0);
47
+ }
48
+ static addRequired(builder, REQUIRED) {
49
+ builder.addFieldInt8(2, +REQUIRED, +false);
50
+ }
51
+ static endPluginCapability(builder) {
52
+ const offset = builder.endObject();
53
+ return offset;
54
+ }
55
+ static createPluginCapability(builder, NAMEOffset, VERSIONOffset, REQUIRED) {
56
+ PluginCapability.startPluginCapability(builder);
57
+ PluginCapability.addName(builder, NAMEOffset);
58
+ PluginCapability.addVersion(builder, VERSIONOffset);
59
+ PluginCapability.addRequired(builder, REQUIRED);
60
+ return PluginCapability.endPluginCapability(builder);
61
+ }
62
+ unpack() {
63
+ return new PluginCapabilityT(this.NAME(), this.VERSION(), this.REQUIRED());
64
+ }
65
+ unpackTo(_o) {
66
+ _o.NAME = this.NAME();
67
+ _o.VERSION = this.VERSION();
68
+ _o.REQUIRED = this.REQUIRED();
69
+ }
70
+ }
71
+ export class PluginCapabilityT {
72
+ constructor(NAME = null, VERSION = null, REQUIRED = false) {
73
+ this.NAME = NAME;
74
+ this.VERSION = VERSION;
75
+ this.REQUIRED = REQUIRED;
76
+ }
77
+ pack(builder) {
78
+ const NAME = (this.NAME !== null ? builder.createString(this.NAME) : 0);
79
+ const VERSION = (this.VERSION !== null ? builder.createString(this.VERSION) : 0);
80
+ return PluginCapability.createPluginCapability(builder, NAME, VERSION, this.REQUIRED);
81
+ }
82
+ }
@@ -4,10 +4,12 @@
4
4
 
5
5
  import * as flatbuffers from 'flatbuffers';
6
6
 
7
+
8
+
7
9
  /**
8
10
  * Plugin capability declaration
9
11
  */
10
- export class PluginCapability {
12
+ export class PluginCapability implements flatbuffers.IUnpackableObject<PluginCapabilityT> {
11
13
  bb: flatbuffers.ByteBuffer|null = null;
12
14
  bb_pos = 0;
13
15
  __init(i:number, bb:flatbuffers.ByteBuffer):PluginCapability {
@@ -28,9 +30,9 @@ static getSizePrefixedRootAsPluginCapability(bb:flatbuffers.ByteBuffer, obj?:Plu
28
30
  /**
29
31
  * Capability name, e.g., "gpu_compute", "wasm_simd"
30
32
  */
31
- name():string|null
32
- name(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
33
- name(optionalEncoding?:any):string|Uint8Array|null {
33
+ NAME():string|null
34
+ NAME(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
35
+ NAME(optionalEncoding?:any):string|Uint8Array|null {
34
36
  const offset = this.bb!.__offset(this.bb_pos, 4);
35
37
  return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
36
38
  }
@@ -38,9 +40,9 @@ name(optionalEncoding?:any):string|Uint8Array|null {
38
40
  /**
39
41
  * Capability version
40
42
  */
41
- version():string|null
42
- version(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
43
- version(optionalEncoding?:any):string|Uint8Array|null {
43
+ VERSION():string|null
44
+ VERSION(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
45
+ VERSION(optionalEncoding?:any):string|Uint8Array|null {
44
46
  const offset = this.bb!.__offset(this.bb_pos, 6);
45
47
  return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
46
48
  }
@@ -48,7 +50,7 @@ version(optionalEncoding?:any):string|Uint8Array|null {
48
50
  /**
49
51
  * Whether this capability is required
50
52
  */
51
- required():boolean {
53
+ REQUIRED():boolean {
52
54
  const offset = this.bb!.__offset(this.bb_pos, 8);
53
55
  return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : false;
54
56
  }
@@ -57,16 +59,16 @@ static startPluginCapability(builder:flatbuffers.Builder) {
57
59
  builder.startObject(3);
58
60
  }
59
61
 
60
- static addName(builder:flatbuffers.Builder, nameOffset:flatbuffers.Offset) {
61
- builder.addFieldOffset(0, nameOffset, 0);
62
+ static addName(builder:flatbuffers.Builder, NAMEOffset:flatbuffers.Offset) {
63
+ builder.addFieldOffset(0, NAMEOffset, 0);
62
64
  }
63
65
 
64
- static addVersion(builder:flatbuffers.Builder, versionOffset:flatbuffers.Offset) {
65
- builder.addFieldOffset(1, versionOffset, 0);
66
+ static addVersion(builder:flatbuffers.Builder, VERSIONOffset:flatbuffers.Offset) {
67
+ builder.addFieldOffset(1, VERSIONOffset, 0);
66
68
  }
67
69
 
68
- static addRequired(builder:flatbuffers.Builder, required:boolean) {
69
- builder.addFieldInt8(2, +required, +false);
70
+ static addRequired(builder:flatbuffers.Builder, REQUIRED:boolean) {
71
+ builder.addFieldInt8(2, +REQUIRED, +false);
70
72
  }
71
73
 
72
74
  static endPluginCapability(builder:flatbuffers.Builder):flatbuffers.Offset {
@@ -74,11 +76,46 @@ static endPluginCapability(builder:flatbuffers.Builder):flatbuffers.Offset {
74
76
  return offset;
75
77
  }
76
78
 
77
- static createPluginCapability(builder:flatbuffers.Builder, nameOffset:flatbuffers.Offset, versionOffset:flatbuffers.Offset, required:boolean):flatbuffers.Offset {
79
+ static createPluginCapability(builder:flatbuffers.Builder, NAMEOffset:flatbuffers.Offset, VERSIONOffset:flatbuffers.Offset, REQUIRED:boolean):flatbuffers.Offset {
78
80
  PluginCapability.startPluginCapability(builder);
79
- PluginCapability.addName(builder, nameOffset);
80
- PluginCapability.addVersion(builder, versionOffset);
81
- PluginCapability.addRequired(builder, required);
81
+ PluginCapability.addName(builder, NAMEOffset);
82
+ PluginCapability.addVersion(builder, VERSIONOffset);
83
+ PluginCapability.addRequired(builder, REQUIRED);
82
84
  return PluginCapability.endPluginCapability(builder);
83
85
  }
86
+
87
+ unpack(): PluginCapabilityT {
88
+ return new PluginCapabilityT(
89
+ this.NAME(),
90
+ this.VERSION(),
91
+ this.REQUIRED()
92
+ );
93
+ }
94
+
95
+
96
+ unpackTo(_o: PluginCapabilityT): void {
97
+ _o.NAME = this.NAME();
98
+ _o.VERSION = this.VERSION();
99
+ _o.REQUIRED = this.REQUIRED();
100
+ }
101
+ }
102
+
103
+ export class PluginCapabilityT implements flatbuffers.IGeneratedObject {
104
+ constructor(
105
+ public NAME: string|Uint8Array|null = null,
106
+ public VERSION: string|Uint8Array|null = null,
107
+ public REQUIRED: boolean = false
108
+ ){}
109
+
110
+
111
+ pack(builder:flatbuffers.Builder): flatbuffers.Offset {
112
+ const NAME = (this.NAME !== null ? builder.createString(this.NAME!) : 0);
113
+ const VERSION = (this.VERSION !== null ? builder.createString(this.VERSION!) : 0);
114
+
115
+ return PluginCapability.createPluginCapability(builder,
116
+ NAME,
117
+ VERSION,
118
+ this.REQUIRED
119
+ );
120
+ }
84
121
  }
@@ -0,0 +1,42 @@
1
+ import * as flatbuffers from 'flatbuffers';
2
+ /**
3
+ * Plugin dependency on another plugin
4
+ */
5
+ export declare class PluginDependency implements flatbuffers.IUnpackableObject<PluginDependencyT> {
6
+ bb: flatbuffers.ByteBuffer | null;
7
+ bb_pos: number;
8
+ __init(i: number, bb: flatbuffers.ByteBuffer): PluginDependency;
9
+ static getRootAsPluginDependency(bb: flatbuffers.ByteBuffer, obj?: PluginDependency): PluginDependency;
10
+ static getSizePrefixedRootAsPluginDependency(bb: flatbuffers.ByteBuffer, obj?: PluginDependency): PluginDependency;
11
+ /**
12
+ * Plugin ID of the dependency
13
+ */
14
+ PLUGIN_ID(): string | null;
15
+ PLUGIN_ID(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
16
+ /**
17
+ * Minimum version required (semver)
18
+ */
19
+ MIN_VERSION(): string | null;
20
+ MIN_VERSION(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
21
+ /**
22
+ * Maximum version allowed (optional)
23
+ */
24
+ MAX_VERSION(): string | null;
25
+ MAX_VERSION(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
26
+ static startPluginDependency(builder: flatbuffers.Builder): void;
27
+ static addPluginId(builder: flatbuffers.Builder, PLUGIN_IDOffset: flatbuffers.Offset): void;
28
+ static addMinVersion(builder: flatbuffers.Builder, MIN_VERSIONOffset: flatbuffers.Offset): void;
29
+ static addMaxVersion(builder: flatbuffers.Builder, MAX_VERSIONOffset: flatbuffers.Offset): void;
30
+ static endPluginDependency(builder: flatbuffers.Builder): flatbuffers.Offset;
31
+ static createPluginDependency(builder: flatbuffers.Builder, PLUGIN_IDOffset: flatbuffers.Offset, MIN_VERSIONOffset: flatbuffers.Offset, MAX_VERSIONOffset: flatbuffers.Offset): flatbuffers.Offset;
32
+ unpack(): PluginDependencyT;
33
+ unpackTo(_o: PluginDependencyT): void;
34
+ }
35
+ export declare class PluginDependencyT implements flatbuffers.IGeneratedObject {
36
+ PLUGIN_ID: string | Uint8Array | null;
37
+ MIN_VERSION: string | Uint8Array | null;
38
+ MAX_VERSION: string | Uint8Array | null;
39
+ constructor(PLUGIN_ID?: string | Uint8Array | null, MIN_VERSION?: string | Uint8Array | null, MAX_VERSION?: string | Uint8Array | null);
40
+ pack(builder: flatbuffers.Builder): flatbuffers.Offset;
41
+ }
42
+ //# sourceMappingURL=PluginDependency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginDependency.d.ts","sourceRoot":"","sources":["../../../ts/PLG/PluginDependency.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAI3C;;GAEG;AACH,qBAAa,gBAAiB,YAAW,WAAW,CAAC,iBAAiB,CAAC,iBAAiB,CAAC;IACvF,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,gBAAgB;IAM9D,MAAM,CAAC,yBAAyB,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,gBAAgB,GAAE,gBAAgB;IAInG,MAAM,CAAC,qCAAqC,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,gBAAgB,GAAE,gBAAgB;IAK/G;;OAEG;IACH,SAAS,IAAG,MAA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,GAAC,UAAU,GAAC,IAAI;IACnC,WAAW,EAAE,MAAM,GAAC,UAAU,GAAC,IAAI;gBAFnC,SAAS,GAAE,MAAM,GAAC,UAAU,GAAC,IAAW,EACxC,WAAW,GAAE,MAAM,GAAC,UAAU,GAAC,IAAW,EAC1C,WAAW,GAAE,MAAM,GAAC,UAAU,GAAC,IAAW;IAInD,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAWpD"}
@@ -0,0 +1,80 @@
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
+ * Plugin dependency on another plugin
6
+ */
7
+ export class PluginDependency {
8
+ constructor() {
9
+ this.bb = null;
10
+ this.bb_pos = 0;
11
+ }
12
+ __init(i, bb) {
13
+ this.bb_pos = i;
14
+ this.bb = bb;
15
+ return this;
16
+ }
17
+ static getRootAsPluginDependency(bb, obj) {
18
+ return (obj || new PluginDependency()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19
+ }
20
+ static getSizePrefixedRootAsPluginDependency(bb, obj) {
21
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
22
+ return (obj || new PluginDependency()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
23
+ }
24
+ PLUGIN_ID(optionalEncoding) {
25
+ const offset = this.bb.__offset(this.bb_pos, 4);
26
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
27
+ }
28
+ MIN_VERSION(optionalEncoding) {
29
+ const offset = this.bb.__offset(this.bb_pos, 6);
30
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
31
+ }
32
+ MAX_VERSION(optionalEncoding) {
33
+ const offset = this.bb.__offset(this.bb_pos, 8);
34
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
35
+ }
36
+ static startPluginDependency(builder) {
37
+ builder.startObject(3);
38
+ }
39
+ static addPluginId(builder, PLUGIN_IDOffset) {
40
+ builder.addFieldOffset(0, PLUGIN_IDOffset, 0);
41
+ }
42
+ static addMinVersion(builder, MIN_VERSIONOffset) {
43
+ builder.addFieldOffset(1, MIN_VERSIONOffset, 0);
44
+ }
45
+ static addMaxVersion(builder, MAX_VERSIONOffset) {
46
+ builder.addFieldOffset(2, MAX_VERSIONOffset, 0);
47
+ }
48
+ static endPluginDependency(builder) {
49
+ const offset = builder.endObject();
50
+ return offset;
51
+ }
52
+ static createPluginDependency(builder, PLUGIN_IDOffset, MIN_VERSIONOffset, MAX_VERSIONOffset) {
53
+ PluginDependency.startPluginDependency(builder);
54
+ PluginDependency.addPluginId(builder, PLUGIN_IDOffset);
55
+ PluginDependency.addMinVersion(builder, MIN_VERSIONOffset);
56
+ PluginDependency.addMaxVersion(builder, MAX_VERSIONOffset);
57
+ return PluginDependency.endPluginDependency(builder);
58
+ }
59
+ unpack() {
60
+ return new PluginDependencyT(this.PLUGIN_ID(), this.MIN_VERSION(), this.MAX_VERSION());
61
+ }
62
+ unpackTo(_o) {
63
+ _o.PLUGIN_ID = this.PLUGIN_ID();
64
+ _o.MIN_VERSION = this.MIN_VERSION();
65
+ _o.MAX_VERSION = this.MAX_VERSION();
66
+ }
67
+ }
68
+ export class PluginDependencyT {
69
+ constructor(PLUGIN_ID = null, MIN_VERSION = null, MAX_VERSION = null) {
70
+ this.PLUGIN_ID = PLUGIN_ID;
71
+ this.MIN_VERSION = MIN_VERSION;
72
+ this.MAX_VERSION = MAX_VERSION;
73
+ }
74
+ pack(builder) {
75
+ const PLUGIN_ID = (this.PLUGIN_ID !== null ? builder.createString(this.PLUGIN_ID) : 0);
76
+ const MIN_VERSION = (this.MIN_VERSION !== null ? builder.createString(this.MIN_VERSION) : 0);
77
+ const MAX_VERSION = (this.MAX_VERSION !== null ? builder.createString(this.MAX_VERSION) : 0);
78
+ return PluginDependency.createPluginDependency(builder, PLUGIN_ID, MIN_VERSION, MAX_VERSION);
79
+ }
80
+ }
@@ -0,0 +1,124 @@
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
+
8
+
9
+ /**
10
+ * Plugin dependency on another plugin
11
+ */
12
+ export class PluginDependency implements flatbuffers.IUnpackableObject<PluginDependencyT> {
13
+ bb: flatbuffers.ByteBuffer|null = null;
14
+ bb_pos = 0;
15
+ __init(i:number, bb:flatbuffers.ByteBuffer):PluginDependency {
16
+ this.bb_pos = i;
17
+ this.bb = bb;
18
+ return this;
19
+ }
20
+
21
+ static getRootAsPluginDependency(bb:flatbuffers.ByteBuffer, obj?:PluginDependency):PluginDependency {
22
+ return (obj || new PluginDependency()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
23
+ }
24
+
25
+ static getSizePrefixedRootAsPluginDependency(bb:flatbuffers.ByteBuffer, obj?:PluginDependency):PluginDependency {
26
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
27
+ return (obj || new PluginDependency()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
28
+ }
29
+
30
+ /**
31
+ * Plugin ID of the dependency
32
+ */
33
+ PLUGIN_ID():string|null
34
+ PLUGIN_ID(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
35
+ PLUGIN_ID(optionalEncoding?:any):string|Uint8Array|null {
36
+ const offset = this.bb!.__offset(this.bb_pos, 4);
37
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
38
+ }
39
+
40
+ /**
41
+ * Minimum version required (semver)
42
+ */
43
+ MIN_VERSION():string|null
44
+ MIN_VERSION(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
45
+ MIN_VERSION(optionalEncoding?:any):string|Uint8Array|null {
46
+ const offset = this.bb!.__offset(this.bb_pos, 6);
47
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
48
+ }
49
+
50
+ /**
51
+ * Maximum version allowed (optional)
52
+ */
53
+ MAX_VERSION():string|null
54
+ MAX_VERSION(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
55
+ MAX_VERSION(optionalEncoding?:any):string|Uint8Array|null {
56
+ const offset = this.bb!.__offset(this.bb_pos, 8);
57
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
58
+ }
59
+
60
+ static startPluginDependency(builder:flatbuffers.Builder) {
61
+ builder.startObject(3);
62
+ }
63
+
64
+ static addPluginId(builder:flatbuffers.Builder, PLUGIN_IDOffset:flatbuffers.Offset) {
65
+ builder.addFieldOffset(0, PLUGIN_IDOffset, 0);
66
+ }
67
+
68
+ static addMinVersion(builder:flatbuffers.Builder, MIN_VERSIONOffset:flatbuffers.Offset) {
69
+ builder.addFieldOffset(1, MIN_VERSIONOffset, 0);
70
+ }
71
+
72
+ static addMaxVersion(builder:flatbuffers.Builder, MAX_VERSIONOffset:flatbuffers.Offset) {
73
+ builder.addFieldOffset(2, MAX_VERSIONOffset, 0);
74
+ }
75
+
76
+ static endPluginDependency(builder:flatbuffers.Builder):flatbuffers.Offset {
77
+ const offset = builder.endObject();
78
+ return offset;
79
+ }
80
+
81
+ static createPluginDependency(builder:flatbuffers.Builder, PLUGIN_IDOffset:flatbuffers.Offset, MIN_VERSIONOffset:flatbuffers.Offset, MAX_VERSIONOffset:flatbuffers.Offset):flatbuffers.Offset {
82
+ PluginDependency.startPluginDependency(builder);
83
+ PluginDependency.addPluginId(builder, PLUGIN_IDOffset);
84
+ PluginDependency.addMinVersion(builder, MIN_VERSIONOffset);
85
+ PluginDependency.addMaxVersion(builder, MAX_VERSIONOffset);
86
+ return PluginDependency.endPluginDependency(builder);
87
+ }
88
+
89
+ unpack(): PluginDependencyT {
90
+ return new PluginDependencyT(
91
+ this.PLUGIN_ID(),
92
+ this.MIN_VERSION(),
93
+ this.MAX_VERSION()
94
+ );
95
+ }
96
+
97
+
98
+ unpackTo(_o: PluginDependencyT): void {
99
+ _o.PLUGIN_ID = this.PLUGIN_ID();
100
+ _o.MIN_VERSION = this.MIN_VERSION();
101
+ _o.MAX_VERSION = this.MAX_VERSION();
102
+ }
103
+ }
104
+
105
+ export class PluginDependencyT implements flatbuffers.IGeneratedObject {
106
+ constructor(
107
+ public PLUGIN_ID: string|Uint8Array|null = null,
108
+ public MIN_VERSION: string|Uint8Array|null = null,
109
+ public MAX_VERSION: string|Uint8Array|null = null
110
+ ){}
111
+
112
+
113
+ pack(builder:flatbuffers.Builder): flatbuffers.Offset {
114
+ const PLUGIN_ID = (this.PLUGIN_ID !== null ? builder.createString(this.PLUGIN_ID!) : 0);
115
+ const MIN_VERSION = (this.MIN_VERSION !== null ? builder.createString(this.MIN_VERSION!) : 0);
116
+ const MAX_VERSION = (this.MAX_VERSION !== null ? builder.createString(this.MAX_VERSION!) : 0);
117
+
118
+ return PluginDependency.createPluginDependency(builder,
119
+ PLUGIN_ID,
120
+ MIN_VERSION,
121
+ MAX_VERSION
122
+ );
123
+ }
124
+ }
@@ -0,0 +1,85 @@
1
+ import * as flatbuffers from 'flatbuffers';
2
+ import { FlatBufferTypeRef, FlatBufferTypeRefT } from './FlatBufferTypeRef.js';
3
+ import { bufferMutability } from './bufferMutability.js';
4
+ import { bufferOwnership } from './bufferOwnership.js';
5
+ import { payloadWireFormat } from './payloadWireFormat.js';
6
+ /**
7
+ * Typed Arena Buffer — one descriptor for a payload slot in a shared arena.
8
+ */
9
+ export declare class TAB implements flatbuffers.IUnpackableObject<TABT> {
10
+ bb: flatbuffers.ByteBuffer | null;
11
+ bb_pos: number;
12
+ __init(i: number, bb: flatbuffers.ByteBuffer): TAB;
13
+ static getRootAsTAB(bb: flatbuffers.ByteBuffer, obj?: TAB): TAB;
14
+ static getSizePrefixedRootAsTAB(bb: flatbuffers.ByteBuffer, obj?: TAB): TAB;
15
+ static bufferHasIdentifier(bb: flatbuffers.ByteBuffer): boolean;
16
+ /**
17
+ * Byte offset of the payload body within the arena.
18
+ */
19
+ OFFSET(): number;
20
+ /**
21
+ * Byte length of the payload body.
22
+ */
23
+ SIZE(): number;
24
+ /**
25
+ * Required start alignment of the payload body (in bytes).
26
+ */
27
+ ALIGNMENT(): number;
28
+ /**
29
+ * Wire format for the body.
30
+ */
31
+ WIRE_FORMAT(): payloadWireFormat;
32
+ /**
33
+ * Optional payload schema identity.
34
+ */
35
+ TYPE_REF(obj?: FlatBufferTypeRef): FlatBufferTypeRef | null;
36
+ /**
37
+ * Mutability contract for the slot.
38
+ */
39
+ MUTABILITY(): bufferMutability;
40
+ /**
41
+ * Ownership contract for the slot.
42
+ */
43
+ OWNERSHIP(): bufferOwnership;
44
+ /**
45
+ * Optional opaque frame identifier for stream bookkeeping.
46
+ */
47
+ FRAME_ID(): bigint;
48
+ /**
49
+ * Optional port identifier for frames that route to/from a named
50
+ * input or output port on a method (maps to
51
+ * `PLG.PLGPortManifest.PORT_ID`). Empty for arena frames that carry
52
+ * no port routing hint.
53
+ */
54
+ PORT_ID(): string | null;
55
+ PORT_ID(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
56
+ static startTAB(builder: flatbuffers.Builder): void;
57
+ static addOffset(builder: flatbuffers.Builder, OFFSET: number): void;
58
+ static addSize(builder: flatbuffers.Builder, SIZE: number): void;
59
+ static addAlignment(builder: flatbuffers.Builder, ALIGNMENT: number): void;
60
+ static addWireFormat(builder: flatbuffers.Builder, WIRE_FORMAT: payloadWireFormat): void;
61
+ static addTypeRef(builder: flatbuffers.Builder, TYPE_REFOffset: flatbuffers.Offset): void;
62
+ static addMutability(builder: flatbuffers.Builder, MUTABILITY: bufferMutability): void;
63
+ static addOwnership(builder: flatbuffers.Builder, OWNERSHIP: bufferOwnership): void;
64
+ static addFrameId(builder: flatbuffers.Builder, FRAME_ID: bigint): void;
65
+ static addPortId(builder: flatbuffers.Builder, PORT_IDOffset: flatbuffers.Offset): void;
66
+ static endTAB(builder: flatbuffers.Builder): flatbuffers.Offset;
67
+ static finishTABBuffer(builder: flatbuffers.Builder, offset: flatbuffers.Offset): void;
68
+ static finishSizePrefixedTABBuffer(builder: flatbuffers.Builder, offset: flatbuffers.Offset): void;
69
+ unpack(): TABT;
70
+ unpackTo(_o: TABT): void;
71
+ }
72
+ export declare class TABT implements flatbuffers.IGeneratedObject {
73
+ OFFSET: number;
74
+ SIZE: number;
75
+ ALIGNMENT: number;
76
+ WIRE_FORMAT: payloadWireFormat;
77
+ TYPE_REF: FlatBufferTypeRefT | null;
78
+ MUTABILITY: bufferMutability;
79
+ OWNERSHIP: bufferOwnership;
80
+ FRAME_ID: bigint;
81
+ PORT_ID: string | Uint8Array | null;
82
+ constructor(OFFSET?: number, SIZE?: number, ALIGNMENT?: number, WIRE_FORMAT?: payloadWireFormat, TYPE_REF?: FlatBufferTypeRefT | null, MUTABILITY?: bufferMutability, OWNERSHIP?: bufferOwnership, FRAME_ID?: bigint, PORT_ID?: string | Uint8Array | null);
83
+ pack(builder: flatbuffers.Builder): flatbuffers.Offset;
84
+ }
85
+ //# sourceMappingURL=TAB.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TAB.d.ts","sourceRoot":"","sources":["../../../ts/PLG/TAB.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D;;GAEG;AACH,qBAAa,GAAI,YAAW,WAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC;IAC7D,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC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