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,212 @@
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 { PLGAcceptedTypeSet, PLGAcceptedTypeSetT } from './PLGAcceptedTypeSet.js';
8
+
9
+
10
+ /**
11
+ * One input or output port on a method.
12
+ */
13
+ export class PLGPortManifest implements flatbuffers.IUnpackableObject<PLGPortManifestT> {
14
+ bb: flatbuffers.ByteBuffer|null = null;
15
+ bb_pos = 0;
16
+ __init(i:number, bb:flatbuffers.ByteBuffer):PLGPortManifest {
17
+ this.bb_pos = i;
18
+ this.bb = bb;
19
+ return this;
20
+ }
21
+
22
+ static getRootAsPLGPortManifest(bb:flatbuffers.ByteBuffer, obj?:PLGPortManifest):PLGPortManifest {
23
+ return (obj || new PLGPortManifest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
24
+ }
25
+
26
+ static getSizePrefixedRootAsPLGPortManifest(bb:flatbuffers.ByteBuffer, obj?:PLGPortManifest):PLGPortManifest {
27
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
28
+ return (obj || new PLGPortManifest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
29
+ }
30
+
31
+ /**
32
+ * Stable port identifier within the method.
33
+ */
34
+ PORT_ID():string
35
+ PORT_ID(optionalEncoding:flatbuffers.Encoding):string|Uint8Array
36
+ PORT_ID(optionalEncoding?:any):string|Uint8Array {
37
+ const offset = this.bb!.__offset(this.bb_pos, 4);
38
+ return this.bb!.__string(this.bb_pos + offset, optionalEncoding);
39
+ }
40
+
41
+ /**
42
+ * Human-readable name for UIs.
43
+ */
44
+ DISPLAY_NAME():string|null
45
+ DISPLAY_NAME(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
46
+ DISPLAY_NAME(optionalEncoding?:any):string|Uint8Array|null {
47
+ const offset = this.bb!.__offset(this.bb_pos, 6);
48
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
49
+ }
50
+
51
+ /**
52
+ * Type sets accepted on this port.
53
+ */
54
+ ACCEPTED_TYPE_SETS(index: number, obj?:PLGAcceptedTypeSet):PLGAcceptedTypeSet|null {
55
+ const offset = this.bb!.__offset(this.bb_pos, 8);
56
+ return offset ? (obj || new PLGAcceptedTypeSet()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
57
+ }
58
+
59
+ acceptedTypeSetsLength():number {
60
+ const offset = this.bb!.__offset(this.bb_pos, 8);
61
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
62
+ }
63
+
64
+ /**
65
+ * Minimum number of streams that must be connected.
66
+ */
67
+ MIN_STREAMS():number {
68
+ const offset = this.bb!.__offset(this.bb_pos, 10);
69
+ return offset ? this.bb!.readUint16(this.bb_pos + offset) : 1;
70
+ }
71
+
72
+ /**
73
+ * Maximum number of streams that may be connected.
74
+ */
75
+ MAX_STREAMS():number {
76
+ const offset = this.bb!.__offset(this.bb_pos, 12);
77
+ return offset ? this.bb!.readUint16(this.bb_pos + offset) : 1;
78
+ }
79
+
80
+ /**
81
+ * Whether the port must be connected for invocation.
82
+ */
83
+ REQUIRED():boolean {
84
+ const offset = this.bb!.__offset(this.bb_pos, 14);
85
+ return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : true;
86
+ }
87
+
88
+ /**
89
+ * Optional human-readable description.
90
+ */
91
+ DESCRIPTION():string|null
92
+ DESCRIPTION(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
93
+ DESCRIPTION(optionalEncoding?:any):string|Uint8Array|null {
94
+ const offset = this.bb!.__offset(this.bb_pos, 16);
95
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
96
+ }
97
+
98
+ static startPLGPortManifest(builder:flatbuffers.Builder) {
99
+ builder.startObject(7);
100
+ }
101
+
102
+ static addPortId(builder:flatbuffers.Builder, PORT_IDOffset:flatbuffers.Offset) {
103
+ builder.addFieldOffset(0, PORT_IDOffset, 0);
104
+ }
105
+
106
+ static addDisplayName(builder:flatbuffers.Builder, DISPLAY_NAMEOffset:flatbuffers.Offset) {
107
+ builder.addFieldOffset(1, DISPLAY_NAMEOffset, 0);
108
+ }
109
+
110
+ static addAcceptedTypeSets(builder:flatbuffers.Builder, ACCEPTED_TYPE_SETSOffset:flatbuffers.Offset) {
111
+ builder.addFieldOffset(2, ACCEPTED_TYPE_SETSOffset, 0);
112
+ }
113
+
114
+ static createAcceptedTypeSetsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
115
+ builder.startVector(4, data.length, 4);
116
+ for (let i = data.length - 1; i >= 0; i--) {
117
+ builder.addOffset(data[i]!);
118
+ }
119
+ return builder.endVector();
120
+ }
121
+
122
+ static startAcceptedTypeSetsVector(builder:flatbuffers.Builder, numElems:number) {
123
+ builder.startVector(4, numElems, 4);
124
+ }
125
+
126
+ static addMinStreams(builder:flatbuffers.Builder, MIN_STREAMS:number) {
127
+ builder.addFieldInt16(3, MIN_STREAMS, 1);
128
+ }
129
+
130
+ static addMaxStreams(builder:flatbuffers.Builder, MAX_STREAMS:number) {
131
+ builder.addFieldInt16(4, MAX_STREAMS, 1);
132
+ }
133
+
134
+ static addRequired(builder:flatbuffers.Builder, REQUIRED:boolean) {
135
+ builder.addFieldInt8(5, +REQUIRED, +true);
136
+ }
137
+
138
+ static addDescription(builder:flatbuffers.Builder, DESCRIPTIONOffset:flatbuffers.Offset) {
139
+ builder.addFieldOffset(6, DESCRIPTIONOffset, 0);
140
+ }
141
+
142
+ static endPLGPortManifest(builder:flatbuffers.Builder):flatbuffers.Offset {
143
+ const offset = builder.endObject();
144
+ builder.requiredField(offset, 4) // PORT_ID
145
+ return offset;
146
+ }
147
+
148
+ static createPLGPortManifest(builder:flatbuffers.Builder, PORT_IDOffset:flatbuffers.Offset, DISPLAY_NAMEOffset:flatbuffers.Offset, ACCEPTED_TYPE_SETSOffset:flatbuffers.Offset, MIN_STREAMS:number, MAX_STREAMS:number, REQUIRED:boolean, DESCRIPTIONOffset:flatbuffers.Offset):flatbuffers.Offset {
149
+ PLGPortManifest.startPLGPortManifest(builder);
150
+ PLGPortManifest.addPortId(builder, PORT_IDOffset);
151
+ PLGPortManifest.addDisplayName(builder, DISPLAY_NAMEOffset);
152
+ PLGPortManifest.addAcceptedTypeSets(builder, ACCEPTED_TYPE_SETSOffset);
153
+ PLGPortManifest.addMinStreams(builder, MIN_STREAMS);
154
+ PLGPortManifest.addMaxStreams(builder, MAX_STREAMS);
155
+ PLGPortManifest.addRequired(builder, REQUIRED);
156
+ PLGPortManifest.addDescription(builder, DESCRIPTIONOffset);
157
+ return PLGPortManifest.endPLGPortManifest(builder);
158
+ }
159
+
160
+ unpack(): PLGPortManifestT {
161
+ return new PLGPortManifestT(
162
+ this.PORT_ID(),
163
+ this.DISPLAY_NAME(),
164
+ this.bb!.createObjList<PLGAcceptedTypeSet, PLGAcceptedTypeSetT>(this.ACCEPTED_TYPE_SETS.bind(this), this.acceptedTypeSetsLength()),
165
+ this.MIN_STREAMS(),
166
+ this.MAX_STREAMS(),
167
+ this.REQUIRED(),
168
+ this.DESCRIPTION()
169
+ );
170
+ }
171
+
172
+
173
+ unpackTo(_o: PLGPortManifestT): void {
174
+ _o.PORT_ID = this.PORT_ID();
175
+ _o.DISPLAY_NAME = this.DISPLAY_NAME();
176
+ _o.ACCEPTED_TYPE_SETS = this.bb!.createObjList<PLGAcceptedTypeSet, PLGAcceptedTypeSetT>(this.ACCEPTED_TYPE_SETS.bind(this), this.acceptedTypeSetsLength());
177
+ _o.MIN_STREAMS = this.MIN_STREAMS();
178
+ _o.MAX_STREAMS = this.MAX_STREAMS();
179
+ _o.REQUIRED = this.REQUIRED();
180
+ _o.DESCRIPTION = this.DESCRIPTION();
181
+ }
182
+ }
183
+
184
+ export class PLGPortManifestT implements flatbuffers.IGeneratedObject {
185
+ constructor(
186
+ public PORT_ID: string|Uint8Array|null = null,
187
+ public DISPLAY_NAME: string|Uint8Array|null = null,
188
+ public ACCEPTED_TYPE_SETS: (PLGAcceptedTypeSetT)[] = [],
189
+ public MIN_STREAMS: number = 1,
190
+ public MAX_STREAMS: number = 1,
191
+ public REQUIRED: boolean = true,
192
+ public DESCRIPTION: string|Uint8Array|null = null
193
+ ){}
194
+
195
+
196
+ pack(builder:flatbuffers.Builder): flatbuffers.Offset {
197
+ const PORT_ID = (this.PORT_ID !== null ? builder.createString(this.PORT_ID!) : 0);
198
+ const DISPLAY_NAME = (this.DISPLAY_NAME !== null ? builder.createString(this.DISPLAY_NAME!) : 0);
199
+ const ACCEPTED_TYPE_SETS = PLGPortManifest.createAcceptedTypeSetsVector(builder, builder.createObjectOffsetList(this.ACCEPTED_TYPE_SETS));
200
+ const DESCRIPTION = (this.DESCRIPTION !== null ? builder.createString(this.DESCRIPTION!) : 0);
201
+
202
+ return PLGPortManifest.createPLGPortManifest(builder,
203
+ PORT_ID,
204
+ DISPLAY_NAME,
205
+ ACCEPTED_TYPE_SETS,
206
+ this.MIN_STREAMS,
207
+ this.MAX_STREAMS,
208
+ this.REQUIRED,
209
+ DESCRIPTION
210
+ );
211
+ }
212
+ }
@@ -0,0 +1,73 @@
1
+ import * as flatbuffers from 'flatbuffers';
2
+ /**
3
+ * Protocol handler declared by a plugin.
4
+ */
5
+ export declare class PLGProtocolSpec implements flatbuffers.IUnpackableObject<PLGProtocolSpecT> {
6
+ bb: flatbuffers.ByteBuffer | null;
7
+ bb_pos: number;
8
+ __init(i: number, bb: flatbuffers.ByteBuffer): PLGProtocolSpec;
9
+ static getRootAsPLGProtocolSpec(bb: flatbuffers.ByteBuffer, obj?: PLGProtocolSpec): PLGProtocolSpec;
10
+ static getSizePrefixedRootAsPLGProtocolSpec(bb: flatbuffers.ByteBuffer, obj?: PLGProtocolSpec): PLGProtocolSpec;
11
+ PROTOCOL_ID(): string;
12
+ PROTOCOL_ID(optionalEncoding: flatbuffers.Encoding): string | Uint8Array;
13
+ METHOD_ID(): string;
14
+ METHOD_ID(optionalEncoding: flatbuffers.Encoding): string | Uint8Array;
15
+ INPUT_PORT_ID(): string | null;
16
+ INPUT_PORT_ID(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
17
+ OUTPUT_PORT_ID(): string | null;
18
+ OUTPUT_PORT_ID(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
19
+ DESCRIPTION(): string | null;
20
+ DESCRIPTION(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
21
+ WIRE_ID(): string | null;
22
+ WIRE_ID(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
23
+ TRANSPORT_KIND(): string | null;
24
+ TRANSPORT_KIND(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
25
+ ROLE(): string | null;
26
+ ROLE(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
27
+ SPEC_URI(): string | null;
28
+ SPEC_URI(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
29
+ AUTO_INSTALL(): boolean;
30
+ ADVERTISE(): boolean;
31
+ DISCOVERY_KEY(): string | null;
32
+ DISCOVERY_KEY(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
33
+ DEFAULT_PORT(): number;
34
+ REQUIRE_SECURE_TRANSPORT(): boolean;
35
+ static startPLGProtocolSpec(builder: flatbuffers.Builder): void;
36
+ static addProtocolId(builder: flatbuffers.Builder, PROTOCOL_IDOffset: flatbuffers.Offset): void;
37
+ static addMethodId(builder: flatbuffers.Builder, METHOD_IDOffset: flatbuffers.Offset): void;
38
+ static addInputPortId(builder: flatbuffers.Builder, INPUT_PORT_IDOffset: flatbuffers.Offset): void;
39
+ static addOutputPortId(builder: flatbuffers.Builder, OUTPUT_PORT_IDOffset: flatbuffers.Offset): void;
40
+ static addDescription(builder: flatbuffers.Builder, DESCRIPTIONOffset: flatbuffers.Offset): void;
41
+ static addWireId(builder: flatbuffers.Builder, WIRE_IDOffset: flatbuffers.Offset): void;
42
+ static addTransportKind(builder: flatbuffers.Builder, TRANSPORT_KINDOffset: flatbuffers.Offset): void;
43
+ static addRole(builder: flatbuffers.Builder, ROLEOffset: flatbuffers.Offset): void;
44
+ static addSpecUri(builder: flatbuffers.Builder, SPEC_URIOffset: flatbuffers.Offset): void;
45
+ static addAutoInstall(builder: flatbuffers.Builder, AUTO_INSTALL: boolean): void;
46
+ static addAdvertise(builder: flatbuffers.Builder, ADVERTISE: boolean): void;
47
+ static addDiscoveryKey(builder: flatbuffers.Builder, DISCOVERY_KEYOffset: flatbuffers.Offset): void;
48
+ static addDefaultPort(builder: flatbuffers.Builder, DEFAULT_PORT: number): void;
49
+ static addRequireSecureTransport(builder: flatbuffers.Builder, REQUIRE_SECURE_TRANSPORT: boolean): void;
50
+ static endPLGProtocolSpec(builder: flatbuffers.Builder): flatbuffers.Offset;
51
+ static createPLGProtocolSpec(builder: flatbuffers.Builder, PROTOCOL_IDOffset: flatbuffers.Offset, METHOD_IDOffset: flatbuffers.Offset, INPUT_PORT_IDOffset: flatbuffers.Offset, OUTPUT_PORT_IDOffset: flatbuffers.Offset, DESCRIPTIONOffset: flatbuffers.Offset, WIRE_IDOffset: flatbuffers.Offset, TRANSPORT_KINDOffset: flatbuffers.Offset, ROLEOffset: flatbuffers.Offset, SPEC_URIOffset: flatbuffers.Offset, AUTO_INSTALL: boolean, ADVERTISE: boolean, DISCOVERY_KEYOffset: flatbuffers.Offset, DEFAULT_PORT: number, REQUIRE_SECURE_TRANSPORT: boolean): flatbuffers.Offset;
52
+ unpack(): PLGProtocolSpecT;
53
+ unpackTo(_o: PLGProtocolSpecT): void;
54
+ }
55
+ export declare class PLGProtocolSpecT implements flatbuffers.IGeneratedObject {
56
+ PROTOCOL_ID: string | Uint8Array | null;
57
+ METHOD_ID: string | Uint8Array | null;
58
+ INPUT_PORT_ID: string | Uint8Array | null;
59
+ OUTPUT_PORT_ID: string | Uint8Array | null;
60
+ DESCRIPTION: string | Uint8Array | null;
61
+ WIRE_ID: string | Uint8Array | null;
62
+ TRANSPORT_KIND: string | Uint8Array | null;
63
+ ROLE: string | Uint8Array | null;
64
+ SPEC_URI: string | Uint8Array | null;
65
+ AUTO_INSTALL: boolean;
66
+ ADVERTISE: boolean;
67
+ DISCOVERY_KEY: string | Uint8Array | null;
68
+ DEFAULT_PORT: number;
69
+ REQUIRE_SECURE_TRANSPORT: boolean;
70
+ constructor(PROTOCOL_ID?: string | Uint8Array | null, METHOD_ID?: string | Uint8Array | null, INPUT_PORT_ID?: string | Uint8Array | null, OUTPUT_PORT_ID?: string | Uint8Array | null, DESCRIPTION?: string | Uint8Array | null, WIRE_ID?: string | Uint8Array | null, TRANSPORT_KIND?: string | Uint8Array | null, ROLE?: string | Uint8Array | null, SPEC_URI?: string | Uint8Array | null, AUTO_INSTALL?: boolean, ADVERTISE?: boolean, DISCOVERY_KEY?: string | Uint8Array | null, DEFAULT_PORT?: number, REQUIRE_SECURE_TRANSPORT?: boolean);
71
+ pack(builder: flatbuffers.Builder): flatbuffers.Offset;
72
+ }
73
+ //# sourceMappingURL=PLGProtocolSpec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PLGProtocolSpec.d.ts","sourceRoot":"","sources":["../../../ts/PLG/PLGProtocolSpec.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAI3C;;GAEG;AACH,qBAAa,eAAgB,YAAW,WAAW,CAAC,iBAAiB,CAAC,gBAAgB,CAAC;IACrF,EAAE,EAAE,WAAW,CAAC,UA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AAE,MAAM,GAAC,UAAU,GAAC,IAAW,EAC5C,YAAY,GAAE,MAAU,EACxB,wBAAwB,GAAE,OAAe;IAIlD,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CA6BpD"}
@@ -0,0 +1,199 @@
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
+ * Protocol handler declared by a plugin.
6
+ */
7
+ export class PLGProtocolSpec {
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 getRootAsPLGProtocolSpec(bb, obj) {
18
+ return (obj || new PLGProtocolSpec()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19
+ }
20
+ static getSizePrefixedRootAsPLGProtocolSpec(bb, obj) {
21
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
22
+ return (obj || new PLGProtocolSpec()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
23
+ }
24
+ PROTOCOL_ID(optionalEncoding) {
25
+ const offset = this.bb.__offset(this.bb_pos, 4);
26
+ return this.bb.__string(this.bb_pos + offset, optionalEncoding);
27
+ }
28
+ METHOD_ID(optionalEncoding) {
29
+ const offset = this.bb.__offset(this.bb_pos, 6);
30
+ return this.bb.__string(this.bb_pos + offset, optionalEncoding);
31
+ }
32
+ INPUT_PORT_ID(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
+ OUTPUT_PORT_ID(optionalEncoding) {
37
+ const offset = this.bb.__offset(this.bb_pos, 10);
38
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
39
+ }
40
+ DESCRIPTION(optionalEncoding) {
41
+ const offset = this.bb.__offset(this.bb_pos, 12);
42
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
43
+ }
44
+ WIRE_ID(optionalEncoding) {
45
+ const offset = this.bb.__offset(this.bb_pos, 14);
46
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
47
+ }
48
+ TRANSPORT_KIND(optionalEncoding) {
49
+ const offset = this.bb.__offset(this.bb_pos, 16);
50
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
51
+ }
52
+ ROLE(optionalEncoding) {
53
+ const offset = this.bb.__offset(this.bb_pos, 18);
54
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
55
+ }
56
+ SPEC_URI(optionalEncoding) {
57
+ const offset = this.bb.__offset(this.bb_pos, 20);
58
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
59
+ }
60
+ AUTO_INSTALL() {
61
+ const offset = this.bb.__offset(this.bb_pos, 22);
62
+ return offset ? !!this.bb.readInt8(this.bb_pos + offset) : true;
63
+ }
64
+ ADVERTISE() {
65
+ const offset = this.bb.__offset(this.bb_pos, 24);
66
+ return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
67
+ }
68
+ DISCOVERY_KEY(optionalEncoding) {
69
+ const offset = this.bb.__offset(this.bb_pos, 26);
70
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
71
+ }
72
+ DEFAULT_PORT() {
73
+ const offset = this.bb.__offset(this.bb_pos, 28);
74
+ return offset ? this.bb.readUint16(this.bb_pos + offset) : 0;
75
+ }
76
+ REQUIRE_SECURE_TRANSPORT() {
77
+ const offset = this.bb.__offset(this.bb_pos, 30);
78
+ return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
79
+ }
80
+ static startPLGProtocolSpec(builder) {
81
+ builder.startObject(14);
82
+ }
83
+ static addProtocolId(builder, PROTOCOL_IDOffset) {
84
+ builder.addFieldOffset(0, PROTOCOL_IDOffset, 0);
85
+ }
86
+ static addMethodId(builder, METHOD_IDOffset) {
87
+ builder.addFieldOffset(1, METHOD_IDOffset, 0);
88
+ }
89
+ static addInputPortId(builder, INPUT_PORT_IDOffset) {
90
+ builder.addFieldOffset(2, INPUT_PORT_IDOffset, 0);
91
+ }
92
+ static addOutputPortId(builder, OUTPUT_PORT_IDOffset) {
93
+ builder.addFieldOffset(3, OUTPUT_PORT_IDOffset, 0);
94
+ }
95
+ static addDescription(builder, DESCRIPTIONOffset) {
96
+ builder.addFieldOffset(4, DESCRIPTIONOffset, 0);
97
+ }
98
+ static addWireId(builder, WIRE_IDOffset) {
99
+ builder.addFieldOffset(5, WIRE_IDOffset, 0);
100
+ }
101
+ static addTransportKind(builder, TRANSPORT_KINDOffset) {
102
+ builder.addFieldOffset(6, TRANSPORT_KINDOffset, 0);
103
+ }
104
+ static addRole(builder, ROLEOffset) {
105
+ builder.addFieldOffset(7, ROLEOffset, 0);
106
+ }
107
+ static addSpecUri(builder, SPEC_URIOffset) {
108
+ builder.addFieldOffset(8, SPEC_URIOffset, 0);
109
+ }
110
+ static addAutoInstall(builder, AUTO_INSTALL) {
111
+ builder.addFieldInt8(9, +AUTO_INSTALL, +true);
112
+ }
113
+ static addAdvertise(builder, ADVERTISE) {
114
+ builder.addFieldInt8(10, +ADVERTISE, +false);
115
+ }
116
+ static addDiscoveryKey(builder, DISCOVERY_KEYOffset) {
117
+ builder.addFieldOffset(11, DISCOVERY_KEYOffset, 0);
118
+ }
119
+ static addDefaultPort(builder, DEFAULT_PORT) {
120
+ builder.addFieldInt16(12, DEFAULT_PORT, 0);
121
+ }
122
+ static addRequireSecureTransport(builder, REQUIRE_SECURE_TRANSPORT) {
123
+ builder.addFieldInt8(13, +REQUIRE_SECURE_TRANSPORT, +false);
124
+ }
125
+ static endPLGProtocolSpec(builder) {
126
+ const offset = builder.endObject();
127
+ builder.requiredField(offset, 4); // PROTOCOL_ID
128
+ builder.requiredField(offset, 6); // METHOD_ID
129
+ return offset;
130
+ }
131
+ static createPLGProtocolSpec(builder, PROTOCOL_IDOffset, METHOD_IDOffset, INPUT_PORT_IDOffset, OUTPUT_PORT_IDOffset, DESCRIPTIONOffset, WIRE_IDOffset, TRANSPORT_KINDOffset, ROLEOffset, SPEC_URIOffset, AUTO_INSTALL, ADVERTISE, DISCOVERY_KEYOffset, DEFAULT_PORT, REQUIRE_SECURE_TRANSPORT) {
132
+ PLGProtocolSpec.startPLGProtocolSpec(builder);
133
+ PLGProtocolSpec.addProtocolId(builder, PROTOCOL_IDOffset);
134
+ PLGProtocolSpec.addMethodId(builder, METHOD_IDOffset);
135
+ PLGProtocolSpec.addInputPortId(builder, INPUT_PORT_IDOffset);
136
+ PLGProtocolSpec.addOutputPortId(builder, OUTPUT_PORT_IDOffset);
137
+ PLGProtocolSpec.addDescription(builder, DESCRIPTIONOffset);
138
+ PLGProtocolSpec.addWireId(builder, WIRE_IDOffset);
139
+ PLGProtocolSpec.addTransportKind(builder, TRANSPORT_KINDOffset);
140
+ PLGProtocolSpec.addRole(builder, ROLEOffset);
141
+ PLGProtocolSpec.addSpecUri(builder, SPEC_URIOffset);
142
+ PLGProtocolSpec.addAutoInstall(builder, AUTO_INSTALL);
143
+ PLGProtocolSpec.addAdvertise(builder, ADVERTISE);
144
+ PLGProtocolSpec.addDiscoveryKey(builder, DISCOVERY_KEYOffset);
145
+ PLGProtocolSpec.addDefaultPort(builder, DEFAULT_PORT);
146
+ PLGProtocolSpec.addRequireSecureTransport(builder, REQUIRE_SECURE_TRANSPORT);
147
+ return PLGProtocolSpec.endPLGProtocolSpec(builder);
148
+ }
149
+ unpack() {
150
+ return new PLGProtocolSpecT(this.PROTOCOL_ID(), this.METHOD_ID(), this.INPUT_PORT_ID(), this.OUTPUT_PORT_ID(), this.DESCRIPTION(), this.WIRE_ID(), this.TRANSPORT_KIND(), this.ROLE(), this.SPEC_URI(), this.AUTO_INSTALL(), this.ADVERTISE(), this.DISCOVERY_KEY(), this.DEFAULT_PORT(), this.REQUIRE_SECURE_TRANSPORT());
151
+ }
152
+ unpackTo(_o) {
153
+ _o.PROTOCOL_ID = this.PROTOCOL_ID();
154
+ _o.METHOD_ID = this.METHOD_ID();
155
+ _o.INPUT_PORT_ID = this.INPUT_PORT_ID();
156
+ _o.OUTPUT_PORT_ID = this.OUTPUT_PORT_ID();
157
+ _o.DESCRIPTION = this.DESCRIPTION();
158
+ _o.WIRE_ID = this.WIRE_ID();
159
+ _o.TRANSPORT_KIND = this.TRANSPORT_KIND();
160
+ _o.ROLE = this.ROLE();
161
+ _o.SPEC_URI = this.SPEC_URI();
162
+ _o.AUTO_INSTALL = this.AUTO_INSTALL();
163
+ _o.ADVERTISE = this.ADVERTISE();
164
+ _o.DISCOVERY_KEY = this.DISCOVERY_KEY();
165
+ _o.DEFAULT_PORT = this.DEFAULT_PORT();
166
+ _o.REQUIRE_SECURE_TRANSPORT = this.REQUIRE_SECURE_TRANSPORT();
167
+ }
168
+ }
169
+ export class PLGProtocolSpecT {
170
+ constructor(PROTOCOL_ID = null, METHOD_ID = null, INPUT_PORT_ID = null, OUTPUT_PORT_ID = null, DESCRIPTION = null, WIRE_ID = null, TRANSPORT_KIND = null, ROLE = null, SPEC_URI = null, AUTO_INSTALL = true, ADVERTISE = false, DISCOVERY_KEY = null, DEFAULT_PORT = 0, REQUIRE_SECURE_TRANSPORT = false) {
171
+ this.PROTOCOL_ID = PROTOCOL_ID;
172
+ this.METHOD_ID = METHOD_ID;
173
+ this.INPUT_PORT_ID = INPUT_PORT_ID;
174
+ this.OUTPUT_PORT_ID = OUTPUT_PORT_ID;
175
+ this.DESCRIPTION = DESCRIPTION;
176
+ this.WIRE_ID = WIRE_ID;
177
+ this.TRANSPORT_KIND = TRANSPORT_KIND;
178
+ this.ROLE = ROLE;
179
+ this.SPEC_URI = SPEC_URI;
180
+ this.AUTO_INSTALL = AUTO_INSTALL;
181
+ this.ADVERTISE = ADVERTISE;
182
+ this.DISCOVERY_KEY = DISCOVERY_KEY;
183
+ this.DEFAULT_PORT = DEFAULT_PORT;
184
+ this.REQUIRE_SECURE_TRANSPORT = REQUIRE_SECURE_TRANSPORT;
185
+ }
186
+ pack(builder) {
187
+ const PROTOCOL_ID = (this.PROTOCOL_ID !== null ? builder.createString(this.PROTOCOL_ID) : 0);
188
+ const METHOD_ID = (this.METHOD_ID !== null ? builder.createString(this.METHOD_ID) : 0);
189
+ const INPUT_PORT_ID = (this.INPUT_PORT_ID !== null ? builder.createString(this.INPUT_PORT_ID) : 0);
190
+ const OUTPUT_PORT_ID = (this.OUTPUT_PORT_ID !== null ? builder.createString(this.OUTPUT_PORT_ID) : 0);
191
+ const DESCRIPTION = (this.DESCRIPTION !== null ? builder.createString(this.DESCRIPTION) : 0);
192
+ const WIRE_ID = (this.WIRE_ID !== null ? builder.createString(this.WIRE_ID) : 0);
193
+ const TRANSPORT_KIND = (this.TRANSPORT_KIND !== null ? builder.createString(this.TRANSPORT_KIND) : 0);
194
+ const ROLE = (this.ROLE !== null ? builder.createString(this.ROLE) : 0);
195
+ const SPEC_URI = (this.SPEC_URI !== null ? builder.createString(this.SPEC_URI) : 0);
196
+ const DISCOVERY_KEY = (this.DISCOVERY_KEY !== null ? builder.createString(this.DISCOVERY_KEY) : 0);
197
+ return PLGProtocolSpec.createPLGProtocolSpec(builder, PROTOCOL_ID, METHOD_ID, INPUT_PORT_ID, OUTPUT_PORT_ID, DESCRIPTION, WIRE_ID, TRANSPORT_KIND, ROLE, SPEC_URI, this.AUTO_INSTALL, this.ADVERTISE, DISCOVERY_KEY, this.DEFAULT_PORT, this.REQUIRE_SECURE_TRANSPORT);
198
+ }
199
+ }