space-data-module-sdk 0.8.3 → 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 +26 -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,1139 @@
1
+ // automatically generated by the FlatBuffers compiler, do not modify
2
+ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
3
+ import * as flatbuffers from 'flatbuffers';
4
+ import { EntryFunction } from './EntryFunction.js';
5
+ import { FlatBufferTypeRef } from './FlatBufferTypeRef.js';
6
+ import { PLGBuildArtifact } from './PLGBuildArtifact.js';
7
+ import { PLGFlowEdge } from './PLGFlowEdge.js';
8
+ import { PLGFlowNode } from './PLGFlowNode.js';
9
+ import { PLGFlowTrigger } from './PLGFlowTrigger.js';
10
+ import { PLGFlowTriggerBinding } from './PLGFlowTriggerBinding.js';
11
+ import { PLGHostCapability } from './PLGHostCapability.js';
12
+ import { PLGMethodManifest } from './PLGMethodManifest.js';
13
+ import { PLGProtocolSpec } from './PLGProtocolSpec.js';
14
+ import { PLGTimerSpec } from './PLGTimerSpec.js';
15
+ import { PluginCapability } from './PluginCapability.js';
16
+ import { PluginDependency } from './PluginDependency.js';
17
+ import { pluginCategory } from './pluginCategory.js';
18
+ import { publicationState } from './publicationState.js';
19
+ import { purchaseTier } from './purchaseTier.js';
20
+ /**
21
+ * Plugin Manifest - canonical signed storefront and WASM distribution record
22
+ */
23
+ export class PLG {
24
+ constructor() {
25
+ this.bb = null;
26
+ this.bb_pos = 0;
27
+ }
28
+ __init(i, bb) {
29
+ this.bb_pos = i;
30
+ this.bb = bb;
31
+ return this;
32
+ }
33
+ static getRootAsPLG(bb, obj) {
34
+ return (obj || new PLG()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
35
+ }
36
+ static getSizePrefixedRootAsPLG(bb, obj) {
37
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
38
+ return (obj || new PLG()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
39
+ }
40
+ static bufferHasIdentifier(bb) {
41
+ return bb.__has_identifier('$PLG');
42
+ }
43
+ PLUGIN_ID(optionalEncoding) {
44
+ const offset = this.bb.__offset(this.bb_pos, 4);
45
+ return this.bb.__string(this.bb_pos + offset, optionalEncoding);
46
+ }
47
+ NAME(optionalEncoding) {
48
+ const offset = this.bb.__offset(this.bb_pos, 6);
49
+ return this.bb.__string(this.bb_pos + offset, optionalEncoding);
50
+ }
51
+ VERSION(optionalEncoding) {
52
+ const offset = this.bb.__offset(this.bb_pos, 8);
53
+ return this.bb.__string(this.bb_pos + offset, optionalEncoding);
54
+ }
55
+ DESCRIPTION(optionalEncoding) {
56
+ const offset = this.bb.__offset(this.bb_pos, 10);
57
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
58
+ }
59
+ TAGLINE(optionalEncoding) {
60
+ const offset = this.bb.__offset(this.bb_pos, 12);
61
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
62
+ }
63
+ /**
64
+ * Type/category of the plugin
65
+ */
66
+ PLUGIN_TYPE() {
67
+ const offset = this.bb.__offset(this.bb_pos, 14);
68
+ return offset ? this.bb.readInt8(this.bb_pos + offset) : pluginCategory.Sensor;
69
+ }
70
+ PUBLISHER_NAME(optionalEncoding) {
71
+ const offset = this.bb.__offset(this.bb_pos, 16);
72
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
73
+ }
74
+ PUBLISHER_HANDLE(optionalEncoding) {
75
+ const offset = this.bb.__offset(this.bb_pos, 18);
76
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
77
+ }
78
+ PUBLISHER_URL(optionalEncoding) {
79
+ const offset = this.bb.__offset(this.bb_pos, 20);
80
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
81
+ }
82
+ SUPPORT_URL(optionalEncoding) {
83
+ const offset = this.bb.__offset(this.bb_pos, 22);
84
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
85
+ }
86
+ TAGS(index, optionalEncoding) {
87
+ const offset = this.bb.__offset(this.bb_pos, 24);
88
+ return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
89
+ }
90
+ tagsLength() {
91
+ const offset = this.bb.__offset(this.bb_pos, 24);
92
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
93
+ }
94
+ FEATURES(index, optionalEncoding) {
95
+ const offset = this.bb.__offset(this.bb_pos, 26);
96
+ return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
97
+ }
98
+ featuresLength() {
99
+ const offset = this.bb.__offset(this.bb_pos, 26);
100
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
101
+ }
102
+ SCREENSHOT_URLS(index, optionalEncoding) {
103
+ const offset = this.bb.__offset(this.bb_pos, 28);
104
+ return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
105
+ }
106
+ screenshotUrlsLength() {
107
+ const offset = this.bb.__offset(this.bb_pos, 28);
108
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
109
+ }
110
+ BANNER_URL(optionalEncoding) {
111
+ const offset = this.bb.__offset(this.bb_pos, 30);
112
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
113
+ }
114
+ /**
115
+ * ABI version for compatibility checking
116
+ */
117
+ ABI_VERSION() {
118
+ const offset = this.bb.__offset(this.bb_pos, 32);
119
+ return offset ? this.bb.readUint32(this.bb_pos + offset) : 1;
120
+ }
121
+ /**
122
+ * SHA256 hash of the decrypted WASM binary
123
+ */
124
+ WASM_HASH(index) {
125
+ const offset = this.bb.__offset(this.bb_pos, 34);
126
+ return offset ? this.bb.readUint8(this.bb.__vector(this.bb_pos + offset) + index) : 0;
127
+ }
128
+ wasmHashLength() {
129
+ const offset = this.bb.__offset(this.bb_pos, 34);
130
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
131
+ }
132
+ wasmHashArray() {
133
+ const offset = this.bb.__offset(this.bb_pos, 34);
134
+ return offset ? new Uint8Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + offset), this.bb.__vector_len(this.bb_pos + offset)) : null;
135
+ }
136
+ /**
137
+ * Size of decrypted WASM binary in bytes
138
+ */
139
+ WASM_SIZE() {
140
+ const offset = this.bb.__offset(this.bb_pos, 36);
141
+ return offset ? this.bb.readUint64(this.bb_pos + offset) : BigInt('0');
142
+ }
143
+ WASM_CID(optionalEncoding) {
144
+ const offset = this.bb.__offset(this.bb_pos, 38);
145
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
146
+ }
147
+ /**
148
+ * SHA256 hash of the encrypted delivery artifact bytes
149
+ */
150
+ ENCRYPTED_WASM_HASH(index) {
151
+ const offset = this.bb.__offset(this.bb_pos, 40);
152
+ return offset ? this.bb.readUint8(this.bb.__vector(this.bb_pos + offset) + index) : 0;
153
+ }
154
+ encryptedWasmHashLength() {
155
+ const offset = this.bb.__offset(this.bb_pos, 40);
156
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
157
+ }
158
+ encryptedWasmHashArray() {
159
+ const offset = this.bb.__offset(this.bb_pos, 40);
160
+ return offset ? new Uint8Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + offset), this.bb.__vector_len(this.bb_pos + offset)) : null;
161
+ }
162
+ /**
163
+ * Size of the encrypted delivery artifact in bytes
164
+ */
165
+ ENCRYPTED_WASM_SIZE() {
166
+ const offset = this.bb.__offset(this.bb_pos, 42);
167
+ return offset ? this.bb.readUint64(this.bb_pos + offset) : BigInt('0');
168
+ }
169
+ /**
170
+ * Entry point functions exported by the plugin
171
+ */
172
+ ENTRY_FUNCTIONS(index, obj) {
173
+ const offset = this.bb.__offset(this.bb_pos, 44);
174
+ return offset ? (obj || new EntryFunction()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
175
+ }
176
+ entryFunctionsLength() {
177
+ const offset = this.bb.__offset(this.bb_pos, 44);
178
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
179
+ }
180
+ REQUIRED_SCHEMAS(index, optionalEncoding) {
181
+ const offset = this.bb.__offset(this.bb_pos, 46);
182
+ return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
183
+ }
184
+ requiredSchemasLength() {
185
+ const offset = this.bb.__offset(this.bb_pos, 46);
186
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
187
+ }
188
+ /**
189
+ * Other plugins this depends on
190
+ */
191
+ DEPENDENCIES(index, obj) {
192
+ const offset = this.bb.__offset(this.bb_pos, 48);
193
+ return offset ? (obj || new PluginDependency()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
194
+ }
195
+ dependenciesLength() {
196
+ const offset = this.bb.__offset(this.bb_pos, 48);
197
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
198
+ }
199
+ /**
200
+ * Capabilities provided by this plugin
201
+ */
202
+ CAPABILITIES(index, obj) {
203
+ const offset = this.bb.__offset(this.bb_pos, 50);
204
+ return offset ? (obj || new PluginCapability()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
205
+ }
206
+ capabilitiesLength() {
207
+ const offset = this.bb.__offset(this.bb_pos, 50);
208
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
209
+ }
210
+ PROVIDER_PEER_ID(optionalEncoding) {
211
+ const offset = this.bb.__offset(this.bb_pos, 52);
212
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
213
+ }
214
+ PROVIDER_EPM_CID(optionalEncoding) {
215
+ const offset = this.bb.__offset(this.bb_pos, 54);
216
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
217
+ }
218
+ /**
219
+ * Whether the WASM binary is encrypted
220
+ */
221
+ ENCRYPTED() {
222
+ const offset = this.bb.__offset(this.bb_pos, 56);
223
+ return offset ? !!this.bb.readInt8(this.bb_pos + offset) : true;
224
+ }
225
+ REQUIRED_SCOPE(optionalEncoding) {
226
+ const offset = this.bb.__offset(this.bb_pos, 58);
227
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
228
+ }
229
+ KEY_ID(optionalEncoding) {
230
+ const offset = this.bb.__offset(this.bb_pos, 60);
231
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
232
+ }
233
+ /**
234
+ * Maximum grant timeout allowed for this module publication
235
+ */
236
+ MAX_GRANT_TIMEOUT_MS() {
237
+ const offset = this.bb.__offset(this.bb_pos, 62);
238
+ return offset ? this.bb.readUint64(this.bb_pos + offset) : BigInt('0');
239
+ }
240
+ MIN_PERMISSIONS(index, optionalEncoding) {
241
+ const offset = this.bb.__offset(this.bb_pos, 64);
242
+ return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
243
+ }
244
+ minPermissionsLength() {
245
+ const offset = this.bb.__offset(this.bb_pos, 64);
246
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
247
+ }
248
+ /**
249
+ * Unix timestamp when plugin was created
250
+ */
251
+ CREATED_AT() {
252
+ const offset = this.bb.__offset(this.bb_pos, 66);
253
+ return offset ? this.bb.readUint64(this.bb_pos + offset) : BigInt('0');
254
+ }
255
+ /**
256
+ * Unix timestamp when plugin was last updated
257
+ */
258
+ UPDATED_AT() {
259
+ const offset = this.bb.__offset(this.bb_pos, 68);
260
+ return offset ? this.bb.readUint64(this.bb_pos + offset) : BigInt('0');
261
+ }
262
+ DOCUMENTATION_URL(optionalEncoding) {
263
+ const offset = this.bb.__offset(this.bb_pos, 70);
264
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
265
+ }
266
+ CHANGELOG_URL(optionalEncoding) {
267
+ const offset = this.bb.__offset(this.bb_pos, 72);
268
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
269
+ }
270
+ ICON_URL(optionalEncoding) {
271
+ const offset = this.bb.__offset(this.bb_pos, 74);
272
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
273
+ }
274
+ LICENSE(optionalEncoding) {
275
+ const offset = this.bb.__offset(this.bb_pos, 76);
276
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
277
+ }
278
+ /**
279
+ * Commercial model used for storefront purchase flows
280
+ */
281
+ PAYMENT_MODEL() {
282
+ const offset = this.bb.__offset(this.bb_pos, 78);
283
+ return offset ? this.bb.readInt8(this.bb_pos + offset) : purchaseTier.Free;
284
+ }
285
+ /**
286
+ * Price in USD cents for one-time purchase or subscription period
287
+ */
288
+ PRICE_USD_CENTS() {
289
+ const offset = this.bb.__offset(this.bb_pos, 80);
290
+ return offset ? this.bb.readUint32(this.bb_pos + offset) : 0;
291
+ }
292
+ /**
293
+ * Subscription billing period length in days
294
+ */
295
+ SUBSCRIPTION_PERIOD_DAYS() {
296
+ const offset = this.bb.__offset(this.bb_pos, 82);
297
+ return offset ? this.bb.readUint32(this.bb_pos + offset) : 0;
298
+ }
299
+ ACCEPTED_PAYMENT_METHODS(index, optionalEncoding) {
300
+ const offset = this.bb.__offset(this.bb_pos, 84);
301
+ return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
302
+ }
303
+ acceptedPaymentMethodsLength() {
304
+ const offset = this.bb.__offset(this.bb_pos, 84);
305
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
306
+ }
307
+ /**
308
+ * Storefront publication state for this manifest version
309
+ */
310
+ LISTING_STATUS() {
311
+ const offset = this.bb.__offset(this.bb_pos, 86);
312
+ return offset ? this.bb.readInt8(this.bb_pos + offset) : publicationState.Public;
313
+ }
314
+ /**
315
+ * Ed25519 signature from provider over manifest
316
+ */
317
+ SIGNATURE(index) {
318
+ const offset = this.bb.__offset(this.bb_pos, 88);
319
+ return offset ? this.bb.readUint8(this.bb.__vector(this.bb_pos + offset) + index) : 0;
320
+ }
321
+ signatureLength() {
322
+ const offset = this.bb.__offset(this.bb_pos, 88);
323
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
324
+ }
325
+ signatureArray() {
326
+ const offset = this.bb.__offset(this.bb_pos, 88);
327
+ return offset ? new Uint8Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + offset), this.bb.__vector_len(this.bb_pos + offset)) : null;
328
+ }
329
+ /**
330
+ * Canonical invoke surfaces this artifact exposes. A single plugin
331
+ * MAY list both DIRECT and COMMAND when it supports both.
332
+ */
333
+ INVOKE_SURFACES(index) {
334
+ const offset = this.bb.__offset(this.bb_pos, 90);
335
+ return offset ? this.bb.readUint8(this.bb.__vector(this.bb_pos + offset) + index) : null;
336
+ }
337
+ invokeSurfacesLength() {
338
+ const offset = this.bb.__offset(this.bb_pos, 90);
339
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
340
+ }
341
+ invokeSurfacesArray() {
342
+ const offset = this.bb.__offset(this.bb_pos, 90);
343
+ return offset ? new Uint8Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + offset), this.bb.__vector_len(this.bb_pos + offset)) : null;
344
+ }
345
+ /**
346
+ * Rich per-method invoke manifests (port shape, drain semantics,
347
+ * accepted wire formats). ENTRY_FUNCTIONS retains the slim
348
+ * name+input_schemas+output_schema summary; METHODS carries the full
349
+ * invoke-surface detail including aligned-binary advertisement.
350
+ */
351
+ METHODS(index, obj) {
352
+ const offset = this.bb.__offset(this.bb_pos, 92);
353
+ return offset ? (obj || new PLGMethodManifest()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
354
+ }
355
+ methodsLength() {
356
+ const offset = this.bb.__offset(this.bb_pos, 92);
357
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
358
+ }
359
+ /**
360
+ * Enum-typed host capability dependencies (richer than CAPABILITIES,
361
+ * which is string-tagged metadata).
362
+ */
363
+ HOST_CAPABILITIES(index, obj) {
364
+ const offset = this.bb.__offset(this.bb_pos, 94);
365
+ return offset ? (obj || new PLGHostCapability()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
366
+ }
367
+ hostCapabilitiesLength() {
368
+ const offset = this.bb.__offset(this.bb_pos, 94);
369
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
370
+ }
371
+ /**
372
+ * Timer declarations for scheduled invocations.
373
+ */
374
+ TIMERS(index, obj) {
375
+ const offset = this.bb.__offset(this.bb_pos, 96);
376
+ return offset ? (obj || new PLGTimerSpec()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
377
+ }
378
+ timersLength() {
379
+ const offset = this.bb.__offset(this.bb_pos, 96);
380
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
381
+ }
382
+ /**
383
+ * Protocol handler declarations.
384
+ */
385
+ PROTOCOLS(index, obj) {
386
+ const offset = this.bb.__offset(this.bb_pos, 98);
387
+ return offset ? (obj || new PLGProtocolSpec()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
388
+ }
389
+ protocolsLength() {
390
+ const offset = this.bb.__offset(this.bb_pos, 98);
391
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
392
+ }
393
+ /**
394
+ * FlatBuffer schemas this plugin depends on at the invoke surface.
395
+ */
396
+ SCHEMAS_USED(index, obj) {
397
+ const offset = this.bb.__offset(this.bb_pos, 100);
398
+ return offset ? (obj || new FlatBufferTypeRef()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
399
+ }
400
+ schemasUsedLength() {
401
+ const offset = this.bb.__offset(this.bb_pos, 100);
402
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
403
+ }
404
+ /**
405
+ * Build artifacts emitted by the toolchain (WASM, bindings, etc.).
406
+ */
407
+ BUILD_ARTIFACTS(index, obj) {
408
+ const offset = this.bb.__offset(this.bb_pos, 102);
409
+ return offset ? (obj || new PLGBuildArtifact()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
410
+ }
411
+ buildArtifactsLength() {
412
+ const offset = this.bb.__offset(this.bb_pos, 102);
413
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
414
+ }
415
+ RUNTIME_TARGETS(index, optionalEncoding) {
416
+ const offset = this.bb.__offset(this.bb_pos, 104);
417
+ return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
418
+ }
419
+ runtimeTargetsLength() {
420
+ const offset = this.bb.__offset(this.bb_pos, 104);
421
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
422
+ }
423
+ ALLOWED_XPUBS(index, optionalEncoding) {
424
+ const offset = this.bb.__offset(this.bb_pos, 106);
425
+ return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
426
+ }
427
+ allowedXpubsLength() {
428
+ const offset = this.bb.__offset(this.bb_pos, 106);
429
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
430
+ }
431
+ /**
432
+ * Composition graph (a degenerate flow is a module): the nodes this flow
433
+ * invokes. Empty for a leaf module; populated for a composed flow. The flow
434
+ * definition is this PLG FlatBuffer, not a bespoke JSON graph.
435
+ */
436
+ FLOW_NODES(index, obj) {
437
+ const offset = this.bb.__offset(this.bb_pos, 108);
438
+ return offset ? (obj || new PLGFlowNode()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
439
+ }
440
+ flowNodesLength() {
441
+ const offset = this.bb.__offset(this.bb_pos, 108);
442
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
443
+ }
444
+ /**
445
+ * Composition-graph edges wiring node output ports to input ports.
446
+ */
447
+ FLOW_EDGES(index, obj) {
448
+ const offset = this.bb.__offset(this.bb_pos, 110);
449
+ return offset ? (obj || new PLGFlowEdge()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
450
+ }
451
+ flowEdgesLength() {
452
+ const offset = this.bb.__offset(this.bb_pos, 110);
453
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
454
+ }
455
+ /**
456
+ * Flow triggers (timer/http) that start a drain.
457
+ */
458
+ FLOW_TRIGGERS(index, obj) {
459
+ const offset = this.bb.__offset(this.bb_pos, 112);
460
+ return offset ? (obj || new PLGFlowTrigger()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
461
+ }
462
+ flowTriggersLength() {
463
+ const offset = this.bb.__offset(this.bb_pos, 112);
464
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
465
+ }
466
+ /**
467
+ * Bindings from triggers to the node + input port they deliver to.
468
+ */
469
+ FLOW_TRIGGER_BINDINGS(index, obj) {
470
+ const offset = this.bb.__offset(this.bb_pos, 114);
471
+ return offset ? (obj || new PLGFlowTriggerBinding()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
472
+ }
473
+ flowTriggerBindingsLength() {
474
+ const offset = this.bb.__offset(this.bb_pos, 114);
475
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
476
+ }
477
+ static startPLG(builder) {
478
+ builder.startObject(56);
479
+ }
480
+ static addPluginId(builder, PLUGIN_IDOffset) {
481
+ builder.addFieldOffset(0, PLUGIN_IDOffset, 0);
482
+ }
483
+ static addName(builder, NAMEOffset) {
484
+ builder.addFieldOffset(1, NAMEOffset, 0);
485
+ }
486
+ static addVersion(builder, VERSIONOffset) {
487
+ builder.addFieldOffset(2, VERSIONOffset, 0);
488
+ }
489
+ static addDescription(builder, DESCRIPTIONOffset) {
490
+ builder.addFieldOffset(3, DESCRIPTIONOffset, 0);
491
+ }
492
+ static addTagline(builder, TAGLINEOffset) {
493
+ builder.addFieldOffset(4, TAGLINEOffset, 0);
494
+ }
495
+ static addPluginType(builder, PLUGIN_TYPE) {
496
+ builder.addFieldInt8(5, PLUGIN_TYPE, pluginCategory.Sensor);
497
+ }
498
+ static addPublisherName(builder, PUBLISHER_NAMEOffset) {
499
+ builder.addFieldOffset(6, PUBLISHER_NAMEOffset, 0);
500
+ }
501
+ static addPublisherHandle(builder, PUBLISHER_HANDLEOffset) {
502
+ builder.addFieldOffset(7, PUBLISHER_HANDLEOffset, 0);
503
+ }
504
+ static addPublisherUrl(builder, PUBLISHER_URLOffset) {
505
+ builder.addFieldOffset(8, PUBLISHER_URLOffset, 0);
506
+ }
507
+ static addSupportUrl(builder, SUPPORT_URLOffset) {
508
+ builder.addFieldOffset(9, SUPPORT_URLOffset, 0);
509
+ }
510
+ static addTags(builder, TAGSOffset) {
511
+ builder.addFieldOffset(10, TAGSOffset, 0);
512
+ }
513
+ static createTagsVector(builder, data) {
514
+ builder.startVector(4, data.length, 4);
515
+ for (let i = data.length - 1; i >= 0; i--) {
516
+ builder.addOffset(data[i]);
517
+ }
518
+ return builder.endVector();
519
+ }
520
+ static startTagsVector(builder, numElems) {
521
+ builder.startVector(4, numElems, 4);
522
+ }
523
+ static addFeatures(builder, FEATURESOffset) {
524
+ builder.addFieldOffset(11, FEATURESOffset, 0);
525
+ }
526
+ static createFeaturesVector(builder, data) {
527
+ builder.startVector(4, data.length, 4);
528
+ for (let i = data.length - 1; i >= 0; i--) {
529
+ builder.addOffset(data[i]);
530
+ }
531
+ return builder.endVector();
532
+ }
533
+ static startFeaturesVector(builder, numElems) {
534
+ builder.startVector(4, numElems, 4);
535
+ }
536
+ static addScreenshotUrls(builder, SCREENSHOT_URLSOffset) {
537
+ builder.addFieldOffset(12, SCREENSHOT_URLSOffset, 0);
538
+ }
539
+ static createScreenshotUrlsVector(builder, data) {
540
+ builder.startVector(4, data.length, 4);
541
+ for (let i = data.length - 1; i >= 0; i--) {
542
+ builder.addOffset(data[i]);
543
+ }
544
+ return builder.endVector();
545
+ }
546
+ static startScreenshotUrlsVector(builder, numElems) {
547
+ builder.startVector(4, numElems, 4);
548
+ }
549
+ static addBannerUrl(builder, BANNER_URLOffset) {
550
+ builder.addFieldOffset(13, BANNER_URLOffset, 0);
551
+ }
552
+ static addAbiVersion(builder, ABI_VERSION) {
553
+ builder.addFieldInt32(14, ABI_VERSION, 1);
554
+ }
555
+ static addWasmHash(builder, WASM_HASHOffset) {
556
+ builder.addFieldOffset(15, WASM_HASHOffset, 0);
557
+ }
558
+ static createWasmHashVector(builder, data) {
559
+ builder.startVector(1, data.length, 1);
560
+ for (let i = data.length - 1; i >= 0; i--) {
561
+ builder.addInt8(data[i]);
562
+ }
563
+ return builder.endVector();
564
+ }
565
+ static startWasmHashVector(builder, numElems) {
566
+ builder.startVector(1, numElems, 1);
567
+ }
568
+ static addWasmSize(builder, WASM_SIZE) {
569
+ builder.addFieldInt64(16, WASM_SIZE, BigInt('0'));
570
+ }
571
+ static addWasmCid(builder, WASM_CIDOffset) {
572
+ builder.addFieldOffset(17, WASM_CIDOffset, 0);
573
+ }
574
+ static addEncryptedWasmHash(builder, ENCRYPTED_WASM_HASHOffset) {
575
+ builder.addFieldOffset(18, ENCRYPTED_WASM_HASHOffset, 0);
576
+ }
577
+ static createEncryptedWasmHashVector(builder, data) {
578
+ builder.startVector(1, data.length, 1);
579
+ for (let i = data.length - 1; i >= 0; i--) {
580
+ builder.addInt8(data[i]);
581
+ }
582
+ return builder.endVector();
583
+ }
584
+ static startEncryptedWasmHashVector(builder, numElems) {
585
+ builder.startVector(1, numElems, 1);
586
+ }
587
+ static addEncryptedWasmSize(builder, ENCRYPTED_WASM_SIZE) {
588
+ builder.addFieldInt64(19, ENCRYPTED_WASM_SIZE, BigInt('0'));
589
+ }
590
+ static addEntryFunctions(builder, ENTRY_FUNCTIONSOffset) {
591
+ builder.addFieldOffset(20, ENTRY_FUNCTIONSOffset, 0);
592
+ }
593
+ static createEntryFunctionsVector(builder, data) {
594
+ builder.startVector(4, data.length, 4);
595
+ for (let i = data.length - 1; i >= 0; i--) {
596
+ builder.addOffset(data[i]);
597
+ }
598
+ return builder.endVector();
599
+ }
600
+ static startEntryFunctionsVector(builder, numElems) {
601
+ builder.startVector(4, numElems, 4);
602
+ }
603
+ static addRequiredSchemas(builder, REQUIRED_SCHEMASOffset) {
604
+ builder.addFieldOffset(21, REQUIRED_SCHEMASOffset, 0);
605
+ }
606
+ static createRequiredSchemasVector(builder, data) {
607
+ builder.startVector(4, data.length, 4);
608
+ for (let i = data.length - 1; i >= 0; i--) {
609
+ builder.addOffset(data[i]);
610
+ }
611
+ return builder.endVector();
612
+ }
613
+ static startRequiredSchemasVector(builder, numElems) {
614
+ builder.startVector(4, numElems, 4);
615
+ }
616
+ static addDependencies(builder, DEPENDENCIESOffset) {
617
+ builder.addFieldOffset(22, DEPENDENCIESOffset, 0);
618
+ }
619
+ static createDependenciesVector(builder, data) {
620
+ builder.startVector(4, data.length, 4);
621
+ for (let i = data.length - 1; i >= 0; i--) {
622
+ builder.addOffset(data[i]);
623
+ }
624
+ return builder.endVector();
625
+ }
626
+ static startDependenciesVector(builder, numElems) {
627
+ builder.startVector(4, numElems, 4);
628
+ }
629
+ static addCapabilities(builder, CAPABILITIESOffset) {
630
+ builder.addFieldOffset(23, CAPABILITIESOffset, 0);
631
+ }
632
+ static createCapabilitiesVector(builder, data) {
633
+ builder.startVector(4, data.length, 4);
634
+ for (let i = data.length - 1; i >= 0; i--) {
635
+ builder.addOffset(data[i]);
636
+ }
637
+ return builder.endVector();
638
+ }
639
+ static startCapabilitiesVector(builder, numElems) {
640
+ builder.startVector(4, numElems, 4);
641
+ }
642
+ static addProviderPeerId(builder, PROVIDER_PEER_IDOffset) {
643
+ builder.addFieldOffset(24, PROVIDER_PEER_IDOffset, 0);
644
+ }
645
+ static addProviderEpmCid(builder, PROVIDER_EPM_CIDOffset) {
646
+ builder.addFieldOffset(25, PROVIDER_EPM_CIDOffset, 0);
647
+ }
648
+ static addEncrypted(builder, ENCRYPTED) {
649
+ builder.addFieldInt8(26, +ENCRYPTED, +true);
650
+ }
651
+ static addRequiredScope(builder, REQUIRED_SCOPEOffset) {
652
+ builder.addFieldOffset(27, REQUIRED_SCOPEOffset, 0);
653
+ }
654
+ static addKeyId(builder, KEY_IDOffset) {
655
+ builder.addFieldOffset(28, KEY_IDOffset, 0);
656
+ }
657
+ static addMaxGrantTimeoutMs(builder, MAX_GRANT_TIMEOUT_MS) {
658
+ builder.addFieldInt64(29, MAX_GRANT_TIMEOUT_MS, BigInt('0'));
659
+ }
660
+ static addMinPermissions(builder, MIN_PERMISSIONSOffset) {
661
+ builder.addFieldOffset(30, MIN_PERMISSIONSOffset, 0);
662
+ }
663
+ static createMinPermissionsVector(builder, data) {
664
+ builder.startVector(4, data.length, 4);
665
+ for (let i = data.length - 1; i >= 0; i--) {
666
+ builder.addOffset(data[i]);
667
+ }
668
+ return builder.endVector();
669
+ }
670
+ static startMinPermissionsVector(builder, numElems) {
671
+ builder.startVector(4, numElems, 4);
672
+ }
673
+ static addCreatedAt(builder, CREATED_AT) {
674
+ builder.addFieldInt64(31, CREATED_AT, BigInt('0'));
675
+ }
676
+ static addUpdatedAt(builder, UPDATED_AT) {
677
+ builder.addFieldInt64(32, UPDATED_AT, BigInt('0'));
678
+ }
679
+ static addDocumentationUrl(builder, DOCUMENTATION_URLOffset) {
680
+ builder.addFieldOffset(33, DOCUMENTATION_URLOffset, 0);
681
+ }
682
+ static addChangelogUrl(builder, CHANGELOG_URLOffset) {
683
+ builder.addFieldOffset(34, CHANGELOG_URLOffset, 0);
684
+ }
685
+ static addIconUrl(builder, ICON_URLOffset) {
686
+ builder.addFieldOffset(35, ICON_URLOffset, 0);
687
+ }
688
+ static addLicense(builder, LICENSEOffset) {
689
+ builder.addFieldOffset(36, LICENSEOffset, 0);
690
+ }
691
+ static addPaymentModel(builder, PAYMENT_MODEL) {
692
+ builder.addFieldInt8(37, PAYMENT_MODEL, purchaseTier.Free);
693
+ }
694
+ static addPriceUsdCents(builder, PRICE_USD_CENTS) {
695
+ builder.addFieldInt32(38, PRICE_USD_CENTS, 0);
696
+ }
697
+ static addSubscriptionPeriodDays(builder, SUBSCRIPTION_PERIOD_DAYS) {
698
+ builder.addFieldInt32(39, SUBSCRIPTION_PERIOD_DAYS, 0);
699
+ }
700
+ static addAcceptedPaymentMethods(builder, ACCEPTED_PAYMENT_METHODSOffset) {
701
+ builder.addFieldOffset(40, ACCEPTED_PAYMENT_METHODSOffset, 0);
702
+ }
703
+ static createAcceptedPaymentMethodsVector(builder, data) {
704
+ builder.startVector(4, data.length, 4);
705
+ for (let i = data.length - 1; i >= 0; i--) {
706
+ builder.addOffset(data[i]);
707
+ }
708
+ return builder.endVector();
709
+ }
710
+ static startAcceptedPaymentMethodsVector(builder, numElems) {
711
+ builder.startVector(4, numElems, 4);
712
+ }
713
+ static addListingStatus(builder, LISTING_STATUS) {
714
+ builder.addFieldInt8(41, LISTING_STATUS, publicationState.Public);
715
+ }
716
+ static addSignature(builder, SIGNATUREOffset) {
717
+ builder.addFieldOffset(42, SIGNATUREOffset, 0);
718
+ }
719
+ static createSignatureVector(builder, data) {
720
+ builder.startVector(1, data.length, 1);
721
+ for (let i = data.length - 1; i >= 0; i--) {
722
+ builder.addInt8(data[i]);
723
+ }
724
+ return builder.endVector();
725
+ }
726
+ static startSignatureVector(builder, numElems) {
727
+ builder.startVector(1, numElems, 1);
728
+ }
729
+ static addInvokeSurfaces(builder, INVOKE_SURFACESOffset) {
730
+ builder.addFieldOffset(43, INVOKE_SURFACESOffset, 0);
731
+ }
732
+ static createInvokeSurfacesVector(builder, data) {
733
+ builder.startVector(1, data.length, 1);
734
+ for (let i = data.length - 1; i >= 0; i--) {
735
+ builder.addInt8(data[i]);
736
+ }
737
+ return builder.endVector();
738
+ }
739
+ static startInvokeSurfacesVector(builder, numElems) {
740
+ builder.startVector(1, numElems, 1);
741
+ }
742
+ static addMethods(builder, METHODSOffset) {
743
+ builder.addFieldOffset(44, METHODSOffset, 0);
744
+ }
745
+ static createMethodsVector(builder, data) {
746
+ builder.startVector(4, data.length, 4);
747
+ for (let i = data.length - 1; i >= 0; i--) {
748
+ builder.addOffset(data[i]);
749
+ }
750
+ return builder.endVector();
751
+ }
752
+ static startMethodsVector(builder, numElems) {
753
+ builder.startVector(4, numElems, 4);
754
+ }
755
+ static addHostCapabilities(builder, HOST_CAPABILITIESOffset) {
756
+ builder.addFieldOffset(45, HOST_CAPABILITIESOffset, 0);
757
+ }
758
+ static createHostCapabilitiesVector(builder, data) {
759
+ builder.startVector(4, data.length, 4);
760
+ for (let i = data.length - 1; i >= 0; i--) {
761
+ builder.addOffset(data[i]);
762
+ }
763
+ return builder.endVector();
764
+ }
765
+ static startHostCapabilitiesVector(builder, numElems) {
766
+ builder.startVector(4, numElems, 4);
767
+ }
768
+ static addTimers(builder, TIMERSOffset) {
769
+ builder.addFieldOffset(46, TIMERSOffset, 0);
770
+ }
771
+ static createTimersVector(builder, data) {
772
+ builder.startVector(4, data.length, 4);
773
+ for (let i = data.length - 1; i >= 0; i--) {
774
+ builder.addOffset(data[i]);
775
+ }
776
+ return builder.endVector();
777
+ }
778
+ static startTimersVector(builder, numElems) {
779
+ builder.startVector(4, numElems, 4);
780
+ }
781
+ static addProtocols(builder, PROTOCOLSOffset) {
782
+ builder.addFieldOffset(47, PROTOCOLSOffset, 0);
783
+ }
784
+ static createProtocolsVector(builder, data) {
785
+ builder.startVector(4, data.length, 4);
786
+ for (let i = data.length - 1; i >= 0; i--) {
787
+ builder.addOffset(data[i]);
788
+ }
789
+ return builder.endVector();
790
+ }
791
+ static startProtocolsVector(builder, numElems) {
792
+ builder.startVector(4, numElems, 4);
793
+ }
794
+ static addSchemasUsed(builder, SCHEMAS_USEDOffset) {
795
+ builder.addFieldOffset(48, SCHEMAS_USEDOffset, 0);
796
+ }
797
+ static createSchemasUsedVector(builder, data) {
798
+ builder.startVector(4, data.length, 4);
799
+ for (let i = data.length - 1; i >= 0; i--) {
800
+ builder.addOffset(data[i]);
801
+ }
802
+ return builder.endVector();
803
+ }
804
+ static startSchemasUsedVector(builder, numElems) {
805
+ builder.startVector(4, numElems, 4);
806
+ }
807
+ static addBuildArtifacts(builder, BUILD_ARTIFACTSOffset) {
808
+ builder.addFieldOffset(49, BUILD_ARTIFACTSOffset, 0);
809
+ }
810
+ static createBuildArtifactsVector(builder, data) {
811
+ builder.startVector(4, data.length, 4);
812
+ for (let i = data.length - 1; i >= 0; i--) {
813
+ builder.addOffset(data[i]);
814
+ }
815
+ return builder.endVector();
816
+ }
817
+ static startBuildArtifactsVector(builder, numElems) {
818
+ builder.startVector(4, numElems, 4);
819
+ }
820
+ static addRuntimeTargets(builder, RUNTIME_TARGETSOffset) {
821
+ builder.addFieldOffset(50, RUNTIME_TARGETSOffset, 0);
822
+ }
823
+ static createRuntimeTargetsVector(builder, data) {
824
+ builder.startVector(4, data.length, 4);
825
+ for (let i = data.length - 1; i >= 0; i--) {
826
+ builder.addOffset(data[i]);
827
+ }
828
+ return builder.endVector();
829
+ }
830
+ static startRuntimeTargetsVector(builder, numElems) {
831
+ builder.startVector(4, numElems, 4);
832
+ }
833
+ static addAllowedXpubs(builder, ALLOWED_XPUBSOffset) {
834
+ builder.addFieldOffset(51, ALLOWED_XPUBSOffset, 0);
835
+ }
836
+ static createAllowedXpubsVector(builder, data) {
837
+ builder.startVector(4, data.length, 4);
838
+ for (let i = data.length - 1; i >= 0; i--) {
839
+ builder.addOffset(data[i]);
840
+ }
841
+ return builder.endVector();
842
+ }
843
+ static startAllowedXpubsVector(builder, numElems) {
844
+ builder.startVector(4, numElems, 4);
845
+ }
846
+ static addFlowNodes(builder, FLOW_NODESOffset) {
847
+ builder.addFieldOffset(52, FLOW_NODESOffset, 0);
848
+ }
849
+ static createFlowNodesVector(builder, data) {
850
+ builder.startVector(4, data.length, 4);
851
+ for (let i = data.length - 1; i >= 0; i--) {
852
+ builder.addOffset(data[i]);
853
+ }
854
+ return builder.endVector();
855
+ }
856
+ static startFlowNodesVector(builder, numElems) {
857
+ builder.startVector(4, numElems, 4);
858
+ }
859
+ static addFlowEdges(builder, FLOW_EDGESOffset) {
860
+ builder.addFieldOffset(53, FLOW_EDGESOffset, 0);
861
+ }
862
+ static createFlowEdgesVector(builder, data) {
863
+ builder.startVector(4, data.length, 4);
864
+ for (let i = data.length - 1; i >= 0; i--) {
865
+ builder.addOffset(data[i]);
866
+ }
867
+ return builder.endVector();
868
+ }
869
+ static startFlowEdgesVector(builder, numElems) {
870
+ builder.startVector(4, numElems, 4);
871
+ }
872
+ static addFlowTriggers(builder, FLOW_TRIGGERSOffset) {
873
+ builder.addFieldOffset(54, FLOW_TRIGGERSOffset, 0);
874
+ }
875
+ static createFlowTriggersVector(builder, data) {
876
+ builder.startVector(4, data.length, 4);
877
+ for (let i = data.length - 1; i >= 0; i--) {
878
+ builder.addOffset(data[i]);
879
+ }
880
+ return builder.endVector();
881
+ }
882
+ static startFlowTriggersVector(builder, numElems) {
883
+ builder.startVector(4, numElems, 4);
884
+ }
885
+ static addFlowTriggerBindings(builder, FLOW_TRIGGER_BINDINGSOffset) {
886
+ builder.addFieldOffset(55, FLOW_TRIGGER_BINDINGSOffset, 0);
887
+ }
888
+ static createFlowTriggerBindingsVector(builder, data) {
889
+ builder.startVector(4, data.length, 4);
890
+ for (let i = data.length - 1; i >= 0; i--) {
891
+ builder.addOffset(data[i]);
892
+ }
893
+ return builder.endVector();
894
+ }
895
+ static startFlowTriggerBindingsVector(builder, numElems) {
896
+ builder.startVector(4, numElems, 4);
897
+ }
898
+ static endPLG(builder) {
899
+ const offset = builder.endObject();
900
+ builder.requiredField(offset, 4); // PLUGIN_ID
901
+ builder.requiredField(offset, 6); // NAME
902
+ builder.requiredField(offset, 8); // VERSION
903
+ return offset;
904
+ }
905
+ static finishPLGBuffer(builder, offset) {
906
+ builder.finish(offset, '$PLG');
907
+ }
908
+ static finishSizePrefixedPLGBuffer(builder, offset) {
909
+ builder.finish(offset, '$PLG', true);
910
+ }
911
+ static createPLG(builder, PLUGIN_IDOffset, NAMEOffset, VERSIONOffset, DESCRIPTIONOffset, TAGLINEOffset, PLUGIN_TYPE, PUBLISHER_NAMEOffset, PUBLISHER_HANDLEOffset, PUBLISHER_URLOffset, SUPPORT_URLOffset, TAGSOffset, FEATURESOffset, SCREENSHOT_URLSOffset, BANNER_URLOffset, ABI_VERSION, WASM_HASHOffset, WASM_SIZE, WASM_CIDOffset, ENCRYPTED_WASM_HASHOffset, ENCRYPTED_WASM_SIZE, ENTRY_FUNCTIONSOffset, REQUIRED_SCHEMASOffset, DEPENDENCIESOffset, CAPABILITIESOffset, PROVIDER_PEER_IDOffset, PROVIDER_EPM_CIDOffset, ENCRYPTED, REQUIRED_SCOPEOffset, KEY_IDOffset, MAX_GRANT_TIMEOUT_MS, MIN_PERMISSIONSOffset, CREATED_AT, UPDATED_AT, DOCUMENTATION_URLOffset, CHANGELOG_URLOffset, ICON_URLOffset, LICENSEOffset, PAYMENT_MODEL, PRICE_USD_CENTS, SUBSCRIPTION_PERIOD_DAYS, ACCEPTED_PAYMENT_METHODSOffset, LISTING_STATUS, SIGNATUREOffset, INVOKE_SURFACESOffset, METHODSOffset, HOST_CAPABILITIESOffset, TIMERSOffset, PROTOCOLSOffset, SCHEMAS_USEDOffset, BUILD_ARTIFACTSOffset, RUNTIME_TARGETSOffset, ALLOWED_XPUBSOffset, FLOW_NODESOffset, FLOW_EDGESOffset, FLOW_TRIGGERSOffset, FLOW_TRIGGER_BINDINGSOffset) {
912
+ PLG.startPLG(builder);
913
+ PLG.addPluginId(builder, PLUGIN_IDOffset);
914
+ PLG.addName(builder, NAMEOffset);
915
+ PLG.addVersion(builder, VERSIONOffset);
916
+ PLG.addDescription(builder, DESCRIPTIONOffset);
917
+ PLG.addTagline(builder, TAGLINEOffset);
918
+ PLG.addPluginType(builder, PLUGIN_TYPE);
919
+ PLG.addPublisherName(builder, PUBLISHER_NAMEOffset);
920
+ PLG.addPublisherHandle(builder, PUBLISHER_HANDLEOffset);
921
+ PLG.addPublisherUrl(builder, PUBLISHER_URLOffset);
922
+ PLG.addSupportUrl(builder, SUPPORT_URLOffset);
923
+ PLG.addTags(builder, TAGSOffset);
924
+ PLG.addFeatures(builder, FEATURESOffset);
925
+ PLG.addScreenshotUrls(builder, SCREENSHOT_URLSOffset);
926
+ PLG.addBannerUrl(builder, BANNER_URLOffset);
927
+ PLG.addAbiVersion(builder, ABI_VERSION);
928
+ PLG.addWasmHash(builder, WASM_HASHOffset);
929
+ PLG.addWasmSize(builder, WASM_SIZE);
930
+ PLG.addWasmCid(builder, WASM_CIDOffset);
931
+ PLG.addEncryptedWasmHash(builder, ENCRYPTED_WASM_HASHOffset);
932
+ PLG.addEncryptedWasmSize(builder, ENCRYPTED_WASM_SIZE);
933
+ PLG.addEntryFunctions(builder, ENTRY_FUNCTIONSOffset);
934
+ PLG.addRequiredSchemas(builder, REQUIRED_SCHEMASOffset);
935
+ PLG.addDependencies(builder, DEPENDENCIESOffset);
936
+ PLG.addCapabilities(builder, CAPABILITIESOffset);
937
+ PLG.addProviderPeerId(builder, PROVIDER_PEER_IDOffset);
938
+ PLG.addProviderEpmCid(builder, PROVIDER_EPM_CIDOffset);
939
+ PLG.addEncrypted(builder, ENCRYPTED);
940
+ PLG.addRequiredScope(builder, REQUIRED_SCOPEOffset);
941
+ PLG.addKeyId(builder, KEY_IDOffset);
942
+ PLG.addMaxGrantTimeoutMs(builder, MAX_GRANT_TIMEOUT_MS);
943
+ PLG.addMinPermissions(builder, MIN_PERMISSIONSOffset);
944
+ PLG.addCreatedAt(builder, CREATED_AT);
945
+ PLG.addUpdatedAt(builder, UPDATED_AT);
946
+ PLG.addDocumentationUrl(builder, DOCUMENTATION_URLOffset);
947
+ PLG.addChangelogUrl(builder, CHANGELOG_URLOffset);
948
+ PLG.addIconUrl(builder, ICON_URLOffset);
949
+ PLG.addLicense(builder, LICENSEOffset);
950
+ PLG.addPaymentModel(builder, PAYMENT_MODEL);
951
+ PLG.addPriceUsdCents(builder, PRICE_USD_CENTS);
952
+ PLG.addSubscriptionPeriodDays(builder, SUBSCRIPTION_PERIOD_DAYS);
953
+ PLG.addAcceptedPaymentMethods(builder, ACCEPTED_PAYMENT_METHODSOffset);
954
+ PLG.addListingStatus(builder, LISTING_STATUS);
955
+ PLG.addSignature(builder, SIGNATUREOffset);
956
+ PLG.addInvokeSurfaces(builder, INVOKE_SURFACESOffset);
957
+ PLG.addMethods(builder, METHODSOffset);
958
+ PLG.addHostCapabilities(builder, HOST_CAPABILITIESOffset);
959
+ PLG.addTimers(builder, TIMERSOffset);
960
+ PLG.addProtocols(builder, PROTOCOLSOffset);
961
+ PLG.addSchemasUsed(builder, SCHEMAS_USEDOffset);
962
+ PLG.addBuildArtifacts(builder, BUILD_ARTIFACTSOffset);
963
+ PLG.addRuntimeTargets(builder, RUNTIME_TARGETSOffset);
964
+ PLG.addAllowedXpubs(builder, ALLOWED_XPUBSOffset);
965
+ PLG.addFlowNodes(builder, FLOW_NODESOffset);
966
+ PLG.addFlowEdges(builder, FLOW_EDGESOffset);
967
+ PLG.addFlowTriggers(builder, FLOW_TRIGGERSOffset);
968
+ PLG.addFlowTriggerBindings(builder, FLOW_TRIGGER_BINDINGSOffset);
969
+ return PLG.endPLG(builder);
970
+ }
971
+ unpack() {
972
+ return new PLGT(this.PLUGIN_ID(), this.NAME(), this.VERSION(), this.DESCRIPTION(), this.TAGLINE(), this.PLUGIN_TYPE(), this.PUBLISHER_NAME(), this.PUBLISHER_HANDLE(), this.PUBLISHER_URL(), this.SUPPORT_URL(), this.bb.createScalarList(this.TAGS.bind(this), this.tagsLength()), this.bb.createScalarList(this.FEATURES.bind(this), this.featuresLength()), this.bb.createScalarList(this.SCREENSHOT_URLS.bind(this), this.screenshotUrlsLength()), this.BANNER_URL(), this.ABI_VERSION(), this.bb.createScalarList(this.WASM_HASH.bind(this), this.wasmHashLength()), this.WASM_SIZE(), this.WASM_CID(), this.bb.createScalarList(this.ENCRYPTED_WASM_HASH.bind(this), this.encryptedWasmHashLength()), this.ENCRYPTED_WASM_SIZE(), this.bb.createObjList(this.ENTRY_FUNCTIONS.bind(this), this.entryFunctionsLength()), this.bb.createScalarList(this.REQUIRED_SCHEMAS.bind(this), this.requiredSchemasLength()), this.bb.createObjList(this.DEPENDENCIES.bind(this), this.dependenciesLength()), this.bb.createObjList(this.CAPABILITIES.bind(this), this.capabilitiesLength()), this.PROVIDER_PEER_ID(), this.PROVIDER_EPM_CID(), this.ENCRYPTED(), this.REQUIRED_SCOPE(), this.KEY_ID(), this.MAX_GRANT_TIMEOUT_MS(), this.bb.createScalarList(this.MIN_PERMISSIONS.bind(this), this.minPermissionsLength()), this.CREATED_AT(), this.UPDATED_AT(), this.DOCUMENTATION_URL(), this.CHANGELOG_URL(), this.ICON_URL(), this.LICENSE(), this.PAYMENT_MODEL(), this.PRICE_USD_CENTS(), this.SUBSCRIPTION_PERIOD_DAYS(), this.bb.createScalarList(this.ACCEPTED_PAYMENT_METHODS.bind(this), this.acceptedPaymentMethodsLength()), this.LISTING_STATUS(), this.bb.createScalarList(this.SIGNATURE.bind(this), this.signatureLength()), this.bb.createScalarList(this.INVOKE_SURFACES.bind(this), this.invokeSurfacesLength()), this.bb.createObjList(this.METHODS.bind(this), this.methodsLength()), this.bb.createObjList(this.HOST_CAPABILITIES.bind(this), this.hostCapabilitiesLength()), this.bb.createObjList(this.TIMERS.bind(this), this.timersLength()), this.bb.createObjList(this.PROTOCOLS.bind(this), this.protocolsLength()), this.bb.createObjList(this.SCHEMAS_USED.bind(this), this.schemasUsedLength()), this.bb.createObjList(this.BUILD_ARTIFACTS.bind(this), this.buildArtifactsLength()), this.bb.createScalarList(this.RUNTIME_TARGETS.bind(this), this.runtimeTargetsLength()), this.bb.createScalarList(this.ALLOWED_XPUBS.bind(this), this.allowedXpubsLength()), this.bb.createObjList(this.FLOW_NODES.bind(this), this.flowNodesLength()), this.bb.createObjList(this.FLOW_EDGES.bind(this), this.flowEdgesLength()), this.bb.createObjList(this.FLOW_TRIGGERS.bind(this), this.flowTriggersLength()), this.bb.createObjList(this.FLOW_TRIGGER_BINDINGS.bind(this), this.flowTriggerBindingsLength()));
973
+ }
974
+ unpackTo(_o) {
975
+ _o.PLUGIN_ID = this.PLUGIN_ID();
976
+ _o.NAME = this.NAME();
977
+ _o.VERSION = this.VERSION();
978
+ _o.DESCRIPTION = this.DESCRIPTION();
979
+ _o.TAGLINE = this.TAGLINE();
980
+ _o.PLUGIN_TYPE = this.PLUGIN_TYPE();
981
+ _o.PUBLISHER_NAME = this.PUBLISHER_NAME();
982
+ _o.PUBLISHER_HANDLE = this.PUBLISHER_HANDLE();
983
+ _o.PUBLISHER_URL = this.PUBLISHER_URL();
984
+ _o.SUPPORT_URL = this.SUPPORT_URL();
985
+ _o.TAGS = this.bb.createScalarList(this.TAGS.bind(this), this.tagsLength());
986
+ _o.FEATURES = this.bb.createScalarList(this.FEATURES.bind(this), this.featuresLength());
987
+ _o.SCREENSHOT_URLS = this.bb.createScalarList(this.SCREENSHOT_URLS.bind(this), this.screenshotUrlsLength());
988
+ _o.BANNER_URL = this.BANNER_URL();
989
+ _o.ABI_VERSION = this.ABI_VERSION();
990
+ _o.WASM_HASH = this.bb.createScalarList(this.WASM_HASH.bind(this), this.wasmHashLength());
991
+ _o.WASM_SIZE = this.WASM_SIZE();
992
+ _o.WASM_CID = this.WASM_CID();
993
+ _o.ENCRYPTED_WASM_HASH = this.bb.createScalarList(this.ENCRYPTED_WASM_HASH.bind(this), this.encryptedWasmHashLength());
994
+ _o.ENCRYPTED_WASM_SIZE = this.ENCRYPTED_WASM_SIZE();
995
+ _o.ENTRY_FUNCTIONS = this.bb.createObjList(this.ENTRY_FUNCTIONS.bind(this), this.entryFunctionsLength());
996
+ _o.REQUIRED_SCHEMAS = this.bb.createScalarList(this.REQUIRED_SCHEMAS.bind(this), this.requiredSchemasLength());
997
+ _o.DEPENDENCIES = this.bb.createObjList(this.DEPENDENCIES.bind(this), this.dependenciesLength());
998
+ _o.CAPABILITIES = this.bb.createObjList(this.CAPABILITIES.bind(this), this.capabilitiesLength());
999
+ _o.PROVIDER_PEER_ID = this.PROVIDER_PEER_ID();
1000
+ _o.PROVIDER_EPM_CID = this.PROVIDER_EPM_CID();
1001
+ _o.ENCRYPTED = this.ENCRYPTED();
1002
+ _o.REQUIRED_SCOPE = this.REQUIRED_SCOPE();
1003
+ _o.KEY_ID = this.KEY_ID();
1004
+ _o.MAX_GRANT_TIMEOUT_MS = this.MAX_GRANT_TIMEOUT_MS();
1005
+ _o.MIN_PERMISSIONS = this.bb.createScalarList(this.MIN_PERMISSIONS.bind(this), this.minPermissionsLength());
1006
+ _o.CREATED_AT = this.CREATED_AT();
1007
+ _o.UPDATED_AT = this.UPDATED_AT();
1008
+ _o.DOCUMENTATION_URL = this.DOCUMENTATION_URL();
1009
+ _o.CHANGELOG_URL = this.CHANGELOG_URL();
1010
+ _o.ICON_URL = this.ICON_URL();
1011
+ _o.LICENSE = this.LICENSE();
1012
+ _o.PAYMENT_MODEL = this.PAYMENT_MODEL();
1013
+ _o.PRICE_USD_CENTS = this.PRICE_USD_CENTS();
1014
+ _o.SUBSCRIPTION_PERIOD_DAYS = this.SUBSCRIPTION_PERIOD_DAYS();
1015
+ _o.ACCEPTED_PAYMENT_METHODS = this.bb.createScalarList(this.ACCEPTED_PAYMENT_METHODS.bind(this), this.acceptedPaymentMethodsLength());
1016
+ _o.LISTING_STATUS = this.LISTING_STATUS();
1017
+ _o.SIGNATURE = this.bb.createScalarList(this.SIGNATURE.bind(this), this.signatureLength());
1018
+ _o.INVOKE_SURFACES = this.bb.createScalarList(this.INVOKE_SURFACES.bind(this), this.invokeSurfacesLength());
1019
+ _o.METHODS = this.bb.createObjList(this.METHODS.bind(this), this.methodsLength());
1020
+ _o.HOST_CAPABILITIES = this.bb.createObjList(this.HOST_CAPABILITIES.bind(this), this.hostCapabilitiesLength());
1021
+ _o.TIMERS = this.bb.createObjList(this.TIMERS.bind(this), this.timersLength());
1022
+ _o.PROTOCOLS = this.bb.createObjList(this.PROTOCOLS.bind(this), this.protocolsLength());
1023
+ _o.SCHEMAS_USED = this.bb.createObjList(this.SCHEMAS_USED.bind(this), this.schemasUsedLength());
1024
+ _o.BUILD_ARTIFACTS = this.bb.createObjList(this.BUILD_ARTIFACTS.bind(this), this.buildArtifactsLength());
1025
+ _o.RUNTIME_TARGETS = this.bb.createScalarList(this.RUNTIME_TARGETS.bind(this), this.runtimeTargetsLength());
1026
+ _o.ALLOWED_XPUBS = this.bb.createScalarList(this.ALLOWED_XPUBS.bind(this), this.allowedXpubsLength());
1027
+ _o.FLOW_NODES = this.bb.createObjList(this.FLOW_NODES.bind(this), this.flowNodesLength());
1028
+ _o.FLOW_EDGES = this.bb.createObjList(this.FLOW_EDGES.bind(this), this.flowEdgesLength());
1029
+ _o.FLOW_TRIGGERS = this.bb.createObjList(this.FLOW_TRIGGERS.bind(this), this.flowTriggersLength());
1030
+ _o.FLOW_TRIGGER_BINDINGS = this.bb.createObjList(this.FLOW_TRIGGER_BINDINGS.bind(this), this.flowTriggerBindingsLength());
1031
+ }
1032
+ }
1033
+ export class PLGT {
1034
+ constructor(PLUGIN_ID = null, NAME = null, VERSION = null, DESCRIPTION = null, TAGLINE = null, PLUGIN_TYPE = pluginCategory.Sensor, PUBLISHER_NAME = null, PUBLISHER_HANDLE = null, PUBLISHER_URL = null, SUPPORT_URL = null, TAGS = [], FEATURES = [], SCREENSHOT_URLS = [], BANNER_URL = null, ABI_VERSION = 1, WASM_HASH = [], WASM_SIZE = BigInt('0'), WASM_CID = null, ENCRYPTED_WASM_HASH = [], ENCRYPTED_WASM_SIZE = BigInt('0'), ENTRY_FUNCTIONS = [], REQUIRED_SCHEMAS = [], DEPENDENCIES = [], CAPABILITIES = [], PROVIDER_PEER_ID = null, PROVIDER_EPM_CID = null, ENCRYPTED = true, REQUIRED_SCOPE = null, KEY_ID = null, MAX_GRANT_TIMEOUT_MS = BigInt('0'), MIN_PERMISSIONS = [], CREATED_AT = BigInt('0'), UPDATED_AT = BigInt('0'), DOCUMENTATION_URL = null, CHANGELOG_URL = null, ICON_URL = null, LICENSE = null, PAYMENT_MODEL = purchaseTier.Free, PRICE_USD_CENTS = 0, SUBSCRIPTION_PERIOD_DAYS = 0, ACCEPTED_PAYMENT_METHODS = [], LISTING_STATUS = publicationState.Public, SIGNATURE = [], INVOKE_SURFACES = [], METHODS = [], HOST_CAPABILITIES = [], TIMERS = [], PROTOCOLS = [], SCHEMAS_USED = [], BUILD_ARTIFACTS = [], RUNTIME_TARGETS = [], ALLOWED_XPUBS = [], FLOW_NODES = [], FLOW_EDGES = [], FLOW_TRIGGERS = [], FLOW_TRIGGER_BINDINGS = []) {
1035
+ this.PLUGIN_ID = PLUGIN_ID;
1036
+ this.NAME = NAME;
1037
+ this.VERSION = VERSION;
1038
+ this.DESCRIPTION = DESCRIPTION;
1039
+ this.TAGLINE = TAGLINE;
1040
+ this.PLUGIN_TYPE = PLUGIN_TYPE;
1041
+ this.PUBLISHER_NAME = PUBLISHER_NAME;
1042
+ this.PUBLISHER_HANDLE = PUBLISHER_HANDLE;
1043
+ this.PUBLISHER_URL = PUBLISHER_URL;
1044
+ this.SUPPORT_URL = SUPPORT_URL;
1045
+ this.TAGS = TAGS;
1046
+ this.FEATURES = FEATURES;
1047
+ this.SCREENSHOT_URLS = SCREENSHOT_URLS;
1048
+ this.BANNER_URL = BANNER_URL;
1049
+ this.ABI_VERSION = ABI_VERSION;
1050
+ this.WASM_HASH = WASM_HASH;
1051
+ this.WASM_SIZE = WASM_SIZE;
1052
+ this.WASM_CID = WASM_CID;
1053
+ this.ENCRYPTED_WASM_HASH = ENCRYPTED_WASM_HASH;
1054
+ this.ENCRYPTED_WASM_SIZE = ENCRYPTED_WASM_SIZE;
1055
+ this.ENTRY_FUNCTIONS = ENTRY_FUNCTIONS;
1056
+ this.REQUIRED_SCHEMAS = REQUIRED_SCHEMAS;
1057
+ this.DEPENDENCIES = DEPENDENCIES;
1058
+ this.CAPABILITIES = CAPABILITIES;
1059
+ this.PROVIDER_PEER_ID = PROVIDER_PEER_ID;
1060
+ this.PROVIDER_EPM_CID = PROVIDER_EPM_CID;
1061
+ this.ENCRYPTED = ENCRYPTED;
1062
+ this.REQUIRED_SCOPE = REQUIRED_SCOPE;
1063
+ this.KEY_ID = KEY_ID;
1064
+ this.MAX_GRANT_TIMEOUT_MS = MAX_GRANT_TIMEOUT_MS;
1065
+ this.MIN_PERMISSIONS = MIN_PERMISSIONS;
1066
+ this.CREATED_AT = CREATED_AT;
1067
+ this.UPDATED_AT = UPDATED_AT;
1068
+ this.DOCUMENTATION_URL = DOCUMENTATION_URL;
1069
+ this.CHANGELOG_URL = CHANGELOG_URL;
1070
+ this.ICON_URL = ICON_URL;
1071
+ this.LICENSE = LICENSE;
1072
+ this.PAYMENT_MODEL = PAYMENT_MODEL;
1073
+ this.PRICE_USD_CENTS = PRICE_USD_CENTS;
1074
+ this.SUBSCRIPTION_PERIOD_DAYS = SUBSCRIPTION_PERIOD_DAYS;
1075
+ this.ACCEPTED_PAYMENT_METHODS = ACCEPTED_PAYMENT_METHODS;
1076
+ this.LISTING_STATUS = LISTING_STATUS;
1077
+ this.SIGNATURE = SIGNATURE;
1078
+ this.INVOKE_SURFACES = INVOKE_SURFACES;
1079
+ this.METHODS = METHODS;
1080
+ this.HOST_CAPABILITIES = HOST_CAPABILITIES;
1081
+ this.TIMERS = TIMERS;
1082
+ this.PROTOCOLS = PROTOCOLS;
1083
+ this.SCHEMAS_USED = SCHEMAS_USED;
1084
+ this.BUILD_ARTIFACTS = BUILD_ARTIFACTS;
1085
+ this.RUNTIME_TARGETS = RUNTIME_TARGETS;
1086
+ this.ALLOWED_XPUBS = ALLOWED_XPUBS;
1087
+ this.FLOW_NODES = FLOW_NODES;
1088
+ this.FLOW_EDGES = FLOW_EDGES;
1089
+ this.FLOW_TRIGGERS = FLOW_TRIGGERS;
1090
+ this.FLOW_TRIGGER_BINDINGS = FLOW_TRIGGER_BINDINGS;
1091
+ }
1092
+ pack(builder) {
1093
+ const PLUGIN_ID = (this.PLUGIN_ID !== null ? builder.createString(this.PLUGIN_ID) : 0);
1094
+ const NAME = (this.NAME !== null ? builder.createString(this.NAME) : 0);
1095
+ const VERSION = (this.VERSION !== null ? builder.createString(this.VERSION) : 0);
1096
+ const DESCRIPTION = (this.DESCRIPTION !== null ? builder.createString(this.DESCRIPTION) : 0);
1097
+ const TAGLINE = (this.TAGLINE !== null ? builder.createString(this.TAGLINE) : 0);
1098
+ const PUBLISHER_NAME = (this.PUBLISHER_NAME !== null ? builder.createString(this.PUBLISHER_NAME) : 0);
1099
+ const PUBLISHER_HANDLE = (this.PUBLISHER_HANDLE !== null ? builder.createString(this.PUBLISHER_HANDLE) : 0);
1100
+ const PUBLISHER_URL = (this.PUBLISHER_URL !== null ? builder.createString(this.PUBLISHER_URL) : 0);
1101
+ const SUPPORT_URL = (this.SUPPORT_URL !== null ? builder.createString(this.SUPPORT_URL) : 0);
1102
+ const TAGS = PLG.createTagsVector(builder, builder.createObjectOffsetList(this.TAGS));
1103
+ const FEATURES = PLG.createFeaturesVector(builder, builder.createObjectOffsetList(this.FEATURES));
1104
+ const SCREENSHOT_URLS = PLG.createScreenshotUrlsVector(builder, builder.createObjectOffsetList(this.SCREENSHOT_URLS));
1105
+ const BANNER_URL = (this.BANNER_URL !== null ? builder.createString(this.BANNER_URL) : 0);
1106
+ const WASM_HASH = PLG.createWasmHashVector(builder, this.WASM_HASH);
1107
+ const WASM_CID = (this.WASM_CID !== null ? builder.createString(this.WASM_CID) : 0);
1108
+ const ENCRYPTED_WASM_HASH = PLG.createEncryptedWasmHashVector(builder, this.ENCRYPTED_WASM_HASH);
1109
+ const ENTRY_FUNCTIONS = PLG.createEntryFunctionsVector(builder, builder.createObjectOffsetList(this.ENTRY_FUNCTIONS));
1110
+ const REQUIRED_SCHEMAS = PLG.createRequiredSchemasVector(builder, builder.createObjectOffsetList(this.REQUIRED_SCHEMAS));
1111
+ const DEPENDENCIES = PLG.createDependenciesVector(builder, builder.createObjectOffsetList(this.DEPENDENCIES));
1112
+ const CAPABILITIES = PLG.createCapabilitiesVector(builder, builder.createObjectOffsetList(this.CAPABILITIES));
1113
+ const PROVIDER_PEER_ID = (this.PROVIDER_PEER_ID !== null ? builder.createString(this.PROVIDER_PEER_ID) : 0);
1114
+ const PROVIDER_EPM_CID = (this.PROVIDER_EPM_CID !== null ? builder.createString(this.PROVIDER_EPM_CID) : 0);
1115
+ const REQUIRED_SCOPE = (this.REQUIRED_SCOPE !== null ? builder.createString(this.REQUIRED_SCOPE) : 0);
1116
+ const KEY_ID = (this.KEY_ID !== null ? builder.createString(this.KEY_ID) : 0);
1117
+ const MIN_PERMISSIONS = PLG.createMinPermissionsVector(builder, builder.createObjectOffsetList(this.MIN_PERMISSIONS));
1118
+ const DOCUMENTATION_URL = (this.DOCUMENTATION_URL !== null ? builder.createString(this.DOCUMENTATION_URL) : 0);
1119
+ const CHANGELOG_URL = (this.CHANGELOG_URL !== null ? builder.createString(this.CHANGELOG_URL) : 0);
1120
+ const ICON_URL = (this.ICON_URL !== null ? builder.createString(this.ICON_URL) : 0);
1121
+ const LICENSE = (this.LICENSE !== null ? builder.createString(this.LICENSE) : 0);
1122
+ const ACCEPTED_PAYMENT_METHODS = PLG.createAcceptedPaymentMethodsVector(builder, builder.createObjectOffsetList(this.ACCEPTED_PAYMENT_METHODS));
1123
+ const SIGNATURE = PLG.createSignatureVector(builder, this.SIGNATURE);
1124
+ const INVOKE_SURFACES = PLG.createInvokeSurfacesVector(builder, this.INVOKE_SURFACES);
1125
+ const METHODS = PLG.createMethodsVector(builder, builder.createObjectOffsetList(this.METHODS));
1126
+ const HOST_CAPABILITIES = PLG.createHostCapabilitiesVector(builder, builder.createObjectOffsetList(this.HOST_CAPABILITIES));
1127
+ const TIMERS = PLG.createTimersVector(builder, builder.createObjectOffsetList(this.TIMERS));
1128
+ const PROTOCOLS = PLG.createProtocolsVector(builder, builder.createObjectOffsetList(this.PROTOCOLS));
1129
+ const SCHEMAS_USED = PLG.createSchemasUsedVector(builder, builder.createObjectOffsetList(this.SCHEMAS_USED));
1130
+ const BUILD_ARTIFACTS = PLG.createBuildArtifactsVector(builder, builder.createObjectOffsetList(this.BUILD_ARTIFACTS));
1131
+ const RUNTIME_TARGETS = PLG.createRuntimeTargetsVector(builder, builder.createObjectOffsetList(this.RUNTIME_TARGETS));
1132
+ const ALLOWED_XPUBS = PLG.createAllowedXpubsVector(builder, builder.createObjectOffsetList(this.ALLOWED_XPUBS));
1133
+ const FLOW_NODES = PLG.createFlowNodesVector(builder, builder.createObjectOffsetList(this.FLOW_NODES));
1134
+ const FLOW_EDGES = PLG.createFlowEdgesVector(builder, builder.createObjectOffsetList(this.FLOW_EDGES));
1135
+ const FLOW_TRIGGERS = PLG.createFlowTriggersVector(builder, builder.createObjectOffsetList(this.FLOW_TRIGGERS));
1136
+ const FLOW_TRIGGER_BINDINGS = PLG.createFlowTriggerBindingsVector(builder, builder.createObjectOffsetList(this.FLOW_TRIGGER_BINDINGS));
1137
+ return PLG.createPLG(builder, PLUGIN_ID, NAME, VERSION, DESCRIPTION, TAGLINE, this.PLUGIN_TYPE, PUBLISHER_NAME, PUBLISHER_HANDLE, PUBLISHER_URL, SUPPORT_URL, TAGS, FEATURES, SCREENSHOT_URLS, BANNER_URL, this.ABI_VERSION, WASM_HASH, this.WASM_SIZE, WASM_CID, ENCRYPTED_WASM_HASH, this.ENCRYPTED_WASM_SIZE, ENTRY_FUNCTIONS, REQUIRED_SCHEMAS, DEPENDENCIES, CAPABILITIES, PROVIDER_PEER_ID, PROVIDER_EPM_CID, this.ENCRYPTED, REQUIRED_SCOPE, KEY_ID, this.MAX_GRANT_TIMEOUT_MS, MIN_PERMISSIONS, this.CREATED_AT, this.UPDATED_AT, DOCUMENTATION_URL, CHANGELOG_URL, ICON_URL, LICENSE, this.PAYMENT_MODEL, this.PRICE_USD_CENTS, this.SUBSCRIPTION_PERIOD_DAYS, ACCEPTED_PAYMENT_METHODS, this.LISTING_STATUS, SIGNATURE, INVOKE_SURFACES, METHODS, HOST_CAPABILITIES, TIMERS, PROTOCOLS, SCHEMAS_USED, BUILD_ARTIFACTS, RUNTIME_TARGETS, ALLOWED_XPUBS, FLOW_NODES, FLOW_EDGES, FLOW_TRIGGERS, FLOW_TRIGGER_BINDINGS);
1138
+ }
1139
+ }