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,1600 @@
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 { EntryFunction, EntryFunctionT } from './EntryFunction.js';
8
+ import { FlatBufferTypeRef, FlatBufferTypeRefT } from './FlatBufferTypeRef.js';
9
+ import { PLGBuildArtifact, PLGBuildArtifactT } from './PLGBuildArtifact.js';
10
+ import { PLGFlowEdge, PLGFlowEdgeT } from './PLGFlowEdge.js';
11
+ import { PLGFlowNode, PLGFlowNodeT } from './PLGFlowNode.js';
12
+ import { PLGFlowTrigger, PLGFlowTriggerT } from './PLGFlowTrigger.js';
13
+ import { PLGFlowTriggerBinding, PLGFlowTriggerBindingT } from './PLGFlowTriggerBinding.js';
14
+ import { PLGHostCapability, PLGHostCapabilityT } from './PLGHostCapability.js';
15
+ import { PLGMethodManifest, PLGMethodManifestT } from './PLGMethodManifest.js';
16
+ import { PLGProtocolSpec, PLGProtocolSpecT } from './PLGProtocolSpec.js';
17
+ import { PLGTimerSpec, PLGTimerSpecT } from './PLGTimerSpec.js';
18
+ import { PluginCapability, PluginCapabilityT } from './PluginCapability.js';
19
+ import { PluginDependency, PluginDependencyT } from './PluginDependency.js';
20
+ import { invokeSurfaceKind } from './invokeSurfaceKind.js';
21
+ import { pluginCategory } from './pluginCategory.js';
22
+ import { publicationState } from './publicationState.js';
23
+ import { purchaseTier } from './purchaseTier.js';
24
+
25
+
26
+ /**
27
+ * Plugin Manifest - canonical signed storefront and WASM distribution record
28
+ */
29
+ export class PLG implements flatbuffers.IUnpackableObject<PLGT> {
30
+ bb: flatbuffers.ByteBuffer|null = null;
31
+ bb_pos = 0;
32
+ __init(i:number, bb:flatbuffers.ByteBuffer):PLG {
33
+ this.bb_pos = i;
34
+ this.bb = bb;
35
+ return this;
36
+ }
37
+
38
+ static getRootAsPLG(bb:flatbuffers.ByteBuffer, obj?:PLG):PLG {
39
+ return (obj || new PLG()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
40
+ }
41
+
42
+ static getSizePrefixedRootAsPLG(bb:flatbuffers.ByteBuffer, obj?:PLG):PLG {
43
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
44
+ return (obj || new PLG()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
45
+ }
46
+
47
+ static bufferHasIdentifier(bb:flatbuffers.ByteBuffer):boolean {
48
+ return bb.__has_identifier('$PLG');
49
+ }
50
+
51
+ /**
52
+ * Unique identifier for the plugin
53
+ */
54
+ PLUGIN_ID():string
55
+ PLUGIN_ID(optionalEncoding:flatbuffers.Encoding):string|Uint8Array
56
+ PLUGIN_ID(optionalEncoding?:any):string|Uint8Array {
57
+ const offset = this.bb!.__offset(this.bb_pos, 4);
58
+ return this.bb!.__string(this.bb_pos + offset, optionalEncoding);
59
+ }
60
+
61
+ /**
62
+ * Human-readable plugin name
63
+ */
64
+ NAME():string
65
+ NAME(optionalEncoding:flatbuffers.Encoding):string|Uint8Array
66
+ NAME(optionalEncoding?:any):string|Uint8Array {
67
+ const offset = this.bb!.__offset(this.bb_pos, 6);
68
+ return this.bb!.__string(this.bb_pos + offset, optionalEncoding);
69
+ }
70
+
71
+ /**
72
+ * Plugin version (semver format)
73
+ */
74
+ VERSION():string
75
+ VERSION(optionalEncoding:flatbuffers.Encoding):string|Uint8Array
76
+ VERSION(optionalEncoding?:any):string|Uint8Array {
77
+ const offset = this.bb!.__offset(this.bb_pos, 8);
78
+ return this.bb!.__string(this.bb_pos + offset, optionalEncoding);
79
+ }
80
+
81
+ /**
82
+ * Detailed description of plugin functionality
83
+ */
84
+ DESCRIPTION():string|null
85
+ DESCRIPTION(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
86
+ DESCRIPTION(optionalEncoding?:any):string|Uint8Array|null {
87
+ const offset = this.bb!.__offset(this.bb_pos, 10);
88
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
89
+ }
90
+
91
+ /**
92
+ * Short marketing summary shown in storefront listings
93
+ */
94
+ TAGLINE():string|null
95
+ TAGLINE(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
96
+ TAGLINE(optionalEncoding?:any):string|Uint8Array|null {
97
+ const offset = this.bb!.__offset(this.bb_pos, 12);
98
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
99
+ }
100
+
101
+ /**
102
+ * Type/category of the plugin
103
+ */
104
+ PLUGIN_TYPE():pluginCategory {
105
+ const offset = this.bb!.__offset(this.bb_pos, 14);
106
+ return offset ? this.bb!.readInt8(this.bb_pos + offset) : pluginCategory.Sensor;
107
+ }
108
+
109
+ /**
110
+ * Human-readable publisher or organization name
111
+ */
112
+ PUBLISHER_NAME():string|null
113
+ PUBLISHER_NAME(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
114
+ PUBLISHER_NAME(optionalEncoding?:any):string|Uint8Array|null {
115
+ const offset = this.bb!.__offset(this.bb_pos, 16);
116
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
117
+ }
118
+
119
+ /**
120
+ * Publisher handle or username
121
+ */
122
+ PUBLISHER_HANDLE():string|null
123
+ PUBLISHER_HANDLE(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
124
+ PUBLISHER_HANDLE(optionalEncoding?:any):string|Uint8Array|null {
125
+ const offset = this.bb!.__offset(this.bb_pos, 18);
126
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
127
+ }
128
+
129
+ /**
130
+ * Canonical publisher website
131
+ */
132
+ PUBLISHER_URL():string|null
133
+ PUBLISHER_URL(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
134
+ PUBLISHER_URL(optionalEncoding?:any):string|Uint8Array|null {
135
+ const offset = this.bb!.__offset(this.bb_pos, 20);
136
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
137
+ }
138
+
139
+ /**
140
+ * Support or helpdesk URL for this plugin
141
+ */
142
+ SUPPORT_URL():string|null
143
+ SUPPORT_URL(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
144
+ SUPPORT_URL(optionalEncoding?:any):string|Uint8Array|null {
145
+ const offset = this.bb!.__offset(this.bb_pos, 22);
146
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
147
+ }
148
+
149
+ /**
150
+ * Search and categorization tags for discovery
151
+ */
152
+ TAGS(index: number):string
153
+ TAGS(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
154
+ TAGS(index: number,optionalEncoding?:any):string|Uint8Array|null {
155
+ const offset = this.bb!.__offset(this.bb_pos, 24);
156
+ return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
157
+ }
158
+
159
+ tagsLength():number {
160
+ const offset = this.bb!.__offset(this.bb_pos, 24);
161
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
162
+ }
163
+
164
+ /**
165
+ * Short feature bullets highlighted in storefront listings
166
+ */
167
+ FEATURES(index: number):string
168
+ FEATURES(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
169
+ FEATURES(index: number,optionalEncoding?:any):string|Uint8Array|null {
170
+ const offset = this.bb!.__offset(this.bb_pos, 26);
171
+ return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
172
+ }
173
+
174
+ featuresLength():number {
175
+ const offset = this.bb!.__offset(this.bb_pos, 26);
176
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
177
+ }
178
+
179
+ /**
180
+ * Screenshot URLs showing the plugin in use
181
+ */
182
+ SCREENSHOT_URLS(index: number):string
183
+ SCREENSHOT_URLS(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
184
+ SCREENSHOT_URLS(index: number,optionalEncoding?:any):string|Uint8Array|null {
185
+ const offset = this.bb!.__offset(this.bb_pos, 28);
186
+ return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
187
+ }
188
+
189
+ screenshotUrlsLength():number {
190
+ const offset = this.bb!.__offset(this.bb_pos, 28);
191
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
192
+ }
193
+
194
+ /**
195
+ * Optional hero/banner image URL for the listing
196
+ */
197
+ BANNER_URL():string|null
198
+ BANNER_URL(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
199
+ BANNER_URL(optionalEncoding?:any):string|Uint8Array|null {
200
+ const offset = this.bb!.__offset(this.bb_pos, 30);
201
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
202
+ }
203
+
204
+ /**
205
+ * ABI version for compatibility checking
206
+ */
207
+ ABI_VERSION():number {
208
+ const offset = this.bb!.__offset(this.bb_pos, 32);
209
+ return offset ? this.bb!.readUint32(this.bb_pos + offset) : 1;
210
+ }
211
+
212
+ /**
213
+ * SHA256 hash of the decrypted WASM binary
214
+ */
215
+ WASM_HASH(index: number):number|null {
216
+ const offset = this.bb!.__offset(this.bb_pos, 34);
217
+ return offset ? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index) : 0;
218
+ }
219
+
220
+ wasmHashLength():number {
221
+ const offset = this.bb!.__offset(this.bb_pos, 34);
222
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
223
+ }
224
+
225
+ wasmHashArray():Uint8Array|null {
226
+ const offset = this.bb!.__offset(this.bb_pos, 34);
227
+ 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;
228
+ }
229
+
230
+ /**
231
+ * Size of decrypted WASM binary in bytes
232
+ */
233
+ WASM_SIZE():bigint {
234
+ const offset = this.bb!.__offset(this.bb_pos, 36);
235
+ return offset ? this.bb!.readUint64(this.bb_pos + offset) : BigInt('0');
236
+ }
237
+
238
+ /**
239
+ * IPFS CID of the encrypted WASM binary
240
+ */
241
+ WASM_CID():string|null
242
+ WASM_CID(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
243
+ WASM_CID(optionalEncoding?:any):string|Uint8Array|null {
244
+ const offset = this.bb!.__offset(this.bb_pos, 38);
245
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
246
+ }
247
+
248
+ /**
249
+ * SHA256 hash of the encrypted delivery artifact bytes
250
+ */
251
+ ENCRYPTED_WASM_HASH(index: number):number|null {
252
+ const offset = this.bb!.__offset(this.bb_pos, 40);
253
+ return offset ? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index) : 0;
254
+ }
255
+
256
+ encryptedWasmHashLength():number {
257
+ const offset = this.bb!.__offset(this.bb_pos, 40);
258
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
259
+ }
260
+
261
+ encryptedWasmHashArray():Uint8Array|null {
262
+ const offset = this.bb!.__offset(this.bb_pos, 40);
263
+ 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;
264
+ }
265
+
266
+ /**
267
+ * Size of the encrypted delivery artifact in bytes
268
+ */
269
+ ENCRYPTED_WASM_SIZE():bigint {
270
+ const offset = this.bb!.__offset(this.bb_pos, 42);
271
+ return offset ? this.bb!.readUint64(this.bb_pos + offset) : BigInt('0');
272
+ }
273
+
274
+ /**
275
+ * Entry point functions exported by the plugin
276
+ */
277
+ ENTRY_FUNCTIONS(index: number, obj?:EntryFunction):EntryFunction|null {
278
+ const offset = this.bb!.__offset(this.bb_pos, 44);
279
+ return offset ? (obj || new EntryFunction()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
280
+ }
281
+
282
+ entryFunctionsLength():number {
283
+ const offset = this.bb!.__offset(this.bb_pos, 44);
284
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
285
+ }
286
+
287
+ /**
288
+ * FlatBuffer schemas required by this plugin
289
+ */
290
+ REQUIRED_SCHEMAS(index: number):string
291
+ REQUIRED_SCHEMAS(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
292
+ REQUIRED_SCHEMAS(index: number,optionalEncoding?:any):string|Uint8Array|null {
293
+ const offset = this.bb!.__offset(this.bb_pos, 46);
294
+ return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
295
+ }
296
+
297
+ requiredSchemasLength():number {
298
+ const offset = this.bb!.__offset(this.bb_pos, 46);
299
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
300
+ }
301
+
302
+ /**
303
+ * Other plugins this depends on
304
+ */
305
+ DEPENDENCIES(index: number, obj?:PluginDependency):PluginDependency|null {
306
+ const offset = this.bb!.__offset(this.bb_pos, 48);
307
+ return offset ? (obj || new PluginDependency()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
308
+ }
309
+
310
+ dependenciesLength():number {
311
+ const offset = this.bb!.__offset(this.bb_pos, 48);
312
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
313
+ }
314
+
315
+ /**
316
+ * Capabilities provided by this plugin
317
+ */
318
+ CAPABILITIES(index: number, obj?:PluginCapability):PluginCapability|null {
319
+ const offset = this.bb!.__offset(this.bb_pos, 50);
320
+ return offset ? (obj || new PluginCapability()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
321
+ }
322
+
323
+ capabilitiesLength():number {
324
+ const offset = this.bb!.__offset(this.bb_pos, 50);
325
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
326
+ }
327
+
328
+ /**
329
+ * Peer ID of the plugin provider
330
+ */
331
+ PROVIDER_PEER_ID():string|null
332
+ PROVIDER_PEER_ID(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
333
+ PROVIDER_PEER_ID(optionalEncoding?:any):string|Uint8Array|null {
334
+ const offset = this.bb!.__offset(this.bb_pos, 52);
335
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
336
+ }
337
+
338
+ /**
339
+ * IPFS CID of provider's EPM (Entity Profile Message)
340
+ */
341
+ PROVIDER_EPM_CID():string|null
342
+ PROVIDER_EPM_CID(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
343
+ PROVIDER_EPM_CID(optionalEncoding?:any):string|Uint8Array|null {
344
+ const offset = this.bb!.__offset(this.bb_pos, 54);
345
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
346
+ }
347
+
348
+ /**
349
+ * Whether the WASM binary is encrypted
350
+ */
351
+ ENCRYPTED():boolean {
352
+ const offset = this.bb!.__offset(this.bb_pos, 56);
353
+ return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : true;
354
+ }
355
+
356
+ /**
357
+ * Canonical required scope for grant issuance
358
+ */
359
+ REQUIRED_SCOPE():string|null
360
+ REQUIRED_SCOPE(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
361
+ REQUIRED_SCOPE(optionalEncoding?:any):string|Uint8Array|null {
362
+ const offset = this.bb!.__offset(this.bb_pos, 58);
363
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
364
+ }
365
+
366
+ /**
367
+ * Provider-local identifier for the module content key
368
+ */
369
+ KEY_ID():string|null
370
+ KEY_ID(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
371
+ KEY_ID(optionalEncoding?:any):string|Uint8Array|null {
372
+ const offset = this.bb!.__offset(this.bb_pos, 60);
373
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
374
+ }
375
+
376
+ /**
377
+ * Maximum grant timeout allowed for this module publication
378
+ */
379
+ MAX_GRANT_TIMEOUT_MS():bigint {
380
+ const offset = this.bb!.__offset(this.bb_pos, 62);
381
+ return offset ? this.bb!.readUint64(this.bb_pos + offset) : BigInt('0');
382
+ }
383
+
384
+ /**
385
+ * Minimum permissions required to run
386
+ */
387
+ MIN_PERMISSIONS(index: number):string
388
+ MIN_PERMISSIONS(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
389
+ MIN_PERMISSIONS(index: number,optionalEncoding?:any):string|Uint8Array|null {
390
+ const offset = this.bb!.__offset(this.bb_pos, 64);
391
+ return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
392
+ }
393
+
394
+ minPermissionsLength():number {
395
+ const offset = this.bb!.__offset(this.bb_pos, 64);
396
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
397
+ }
398
+
399
+ /**
400
+ * Unix timestamp when plugin was created
401
+ */
402
+ CREATED_AT():bigint {
403
+ const offset = this.bb!.__offset(this.bb_pos, 66);
404
+ return offset ? this.bb!.readUint64(this.bb_pos + offset) : BigInt('0');
405
+ }
406
+
407
+ /**
408
+ * Unix timestamp when plugin was last updated
409
+ */
410
+ UPDATED_AT():bigint {
411
+ const offset = this.bb!.__offset(this.bb_pos, 68);
412
+ return offset ? this.bb!.readUint64(this.bb_pos + offset) : BigInt('0');
413
+ }
414
+
415
+ /**
416
+ * URL to plugin documentation
417
+ */
418
+ DOCUMENTATION_URL():string|null
419
+ DOCUMENTATION_URL(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
420
+ DOCUMENTATION_URL(optionalEncoding?:any):string|Uint8Array|null {
421
+ const offset = this.bb!.__offset(this.bb_pos, 70);
422
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
423
+ }
424
+
425
+ /**
426
+ * URL to plugin changelog or release notes
427
+ */
428
+ CHANGELOG_URL():string|null
429
+ CHANGELOG_URL(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
430
+ CHANGELOG_URL(optionalEncoding?:any):string|Uint8Array|null {
431
+ const offset = this.bb!.__offset(this.bb_pos, 72);
432
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
433
+ }
434
+
435
+ /**
436
+ * URL to plugin icon/logo
437
+ */
438
+ ICON_URL():string|null
439
+ ICON_URL(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
440
+ ICON_URL(optionalEncoding?:any):string|Uint8Array|null {
441
+ const offset = this.bb!.__offset(this.bb_pos, 74);
442
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
443
+ }
444
+
445
+ /**
446
+ * License identifier (SPDX format)
447
+ */
448
+ LICENSE():string|null
449
+ LICENSE(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
450
+ LICENSE(optionalEncoding?:any):string|Uint8Array|null {
451
+ const offset = this.bb!.__offset(this.bb_pos, 76);
452
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
453
+ }
454
+
455
+ /**
456
+ * Commercial model used for storefront purchase flows
457
+ */
458
+ PAYMENT_MODEL():purchaseTier {
459
+ const offset = this.bb!.__offset(this.bb_pos, 78);
460
+ return offset ? this.bb!.readInt8(this.bb_pos + offset) : purchaseTier.Free;
461
+ }
462
+
463
+ /**
464
+ * Price in USD cents for one-time purchase or subscription period
465
+ */
466
+ PRICE_USD_CENTS():number {
467
+ const offset = this.bb!.__offset(this.bb_pos, 80);
468
+ return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
469
+ }
470
+
471
+ /**
472
+ * Subscription billing period length in days
473
+ */
474
+ SUBSCRIPTION_PERIOD_DAYS():number {
475
+ const offset = this.bb!.__offset(this.bb_pos, 82);
476
+ return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
477
+ }
478
+
479
+ /**
480
+ * Accepted payment methods, e.g. "stripe", "sol", "usdc"
481
+ */
482
+ ACCEPTED_PAYMENT_METHODS(index: number):string
483
+ ACCEPTED_PAYMENT_METHODS(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
484
+ ACCEPTED_PAYMENT_METHODS(index: number,optionalEncoding?:any):string|Uint8Array|null {
485
+ const offset = this.bb!.__offset(this.bb_pos, 84);
486
+ return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
487
+ }
488
+
489
+ acceptedPaymentMethodsLength():number {
490
+ const offset = this.bb!.__offset(this.bb_pos, 84);
491
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
492
+ }
493
+
494
+ /**
495
+ * Storefront publication state for this manifest version
496
+ */
497
+ LISTING_STATUS():publicationState {
498
+ const offset = this.bb!.__offset(this.bb_pos, 86);
499
+ return offset ? this.bb!.readInt8(this.bb_pos + offset) : publicationState.Public;
500
+ }
501
+
502
+ /**
503
+ * Ed25519 signature from provider over manifest
504
+ */
505
+ SIGNATURE(index: number):number|null {
506
+ const offset = this.bb!.__offset(this.bb_pos, 88);
507
+ return offset ? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index) : 0;
508
+ }
509
+
510
+ signatureLength():number {
511
+ const offset = this.bb!.__offset(this.bb_pos, 88);
512
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
513
+ }
514
+
515
+ signatureArray():Uint8Array|null {
516
+ const offset = this.bb!.__offset(this.bb_pos, 88);
517
+ 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;
518
+ }
519
+
520
+ /**
521
+ * Canonical invoke surfaces this artifact exposes. A single plugin
522
+ * MAY list both DIRECT and COMMAND when it supports both.
523
+ */
524
+ INVOKE_SURFACES(index: number):invokeSurfaceKind|null {
525
+ const offset = this.bb!.__offset(this.bb_pos, 90);
526
+ return offset ? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index) : null;
527
+ }
528
+
529
+ invokeSurfacesLength():number {
530
+ const offset = this.bb!.__offset(this.bb_pos, 90);
531
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
532
+ }
533
+
534
+ invokeSurfacesArray():Uint8Array|null {
535
+ const offset = this.bb!.__offset(this.bb_pos, 90);
536
+ 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;
537
+ }
538
+
539
+ /**
540
+ * Rich per-method invoke manifests (port shape, drain semantics,
541
+ * accepted wire formats). ENTRY_FUNCTIONS retains the slim
542
+ * name+input_schemas+output_schema summary; METHODS carries the full
543
+ * invoke-surface detail including aligned-binary advertisement.
544
+ */
545
+ METHODS(index: number, obj?:PLGMethodManifest):PLGMethodManifest|null {
546
+ const offset = this.bb!.__offset(this.bb_pos, 92);
547
+ return offset ? (obj || new PLGMethodManifest()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
548
+ }
549
+
550
+ methodsLength():number {
551
+ const offset = this.bb!.__offset(this.bb_pos, 92);
552
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
553
+ }
554
+
555
+ /**
556
+ * Enum-typed host capability dependencies (richer than CAPABILITIES,
557
+ * which is string-tagged metadata).
558
+ */
559
+ HOST_CAPABILITIES(index: number, obj?:PLGHostCapability):PLGHostCapability|null {
560
+ const offset = this.bb!.__offset(this.bb_pos, 94);
561
+ return offset ? (obj || new PLGHostCapability()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
562
+ }
563
+
564
+ hostCapabilitiesLength():number {
565
+ const offset = this.bb!.__offset(this.bb_pos, 94);
566
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
567
+ }
568
+
569
+ /**
570
+ * Timer declarations for scheduled invocations.
571
+ */
572
+ TIMERS(index: number, obj?:PLGTimerSpec):PLGTimerSpec|null {
573
+ const offset = this.bb!.__offset(this.bb_pos, 96);
574
+ return offset ? (obj || new PLGTimerSpec()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
575
+ }
576
+
577
+ timersLength():number {
578
+ const offset = this.bb!.__offset(this.bb_pos, 96);
579
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
580
+ }
581
+
582
+ /**
583
+ * Protocol handler declarations.
584
+ */
585
+ PROTOCOLS(index: number, obj?:PLGProtocolSpec):PLGProtocolSpec|null {
586
+ const offset = this.bb!.__offset(this.bb_pos, 98);
587
+ return offset ? (obj || new PLGProtocolSpec()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
588
+ }
589
+
590
+ protocolsLength():number {
591
+ const offset = this.bb!.__offset(this.bb_pos, 98);
592
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
593
+ }
594
+
595
+ /**
596
+ * FlatBuffer schemas this plugin depends on at the invoke surface.
597
+ */
598
+ SCHEMAS_USED(index: number, obj?:FlatBufferTypeRef):FlatBufferTypeRef|null {
599
+ const offset = this.bb!.__offset(this.bb_pos, 100);
600
+ return offset ? (obj || new FlatBufferTypeRef()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
601
+ }
602
+
603
+ schemasUsedLength():number {
604
+ const offset = this.bb!.__offset(this.bb_pos, 100);
605
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
606
+ }
607
+
608
+ /**
609
+ * Build artifacts emitted by the toolchain (WASM, bindings, etc.).
610
+ */
611
+ BUILD_ARTIFACTS(index: number, obj?:PLGBuildArtifact):PLGBuildArtifact|null {
612
+ const offset = this.bb!.__offset(this.bb_pos, 102);
613
+ return offset ? (obj || new PLGBuildArtifact()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
614
+ }
615
+
616
+ buildArtifactsLength():number {
617
+ const offset = this.bb!.__offset(this.bb_pos, 102);
618
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
619
+ }
620
+
621
+ /**
622
+ * Opaque runtime-target tags (e.g. "wasmtime", "wasmedge", "browser").
623
+ */
624
+ RUNTIME_TARGETS(index: number):string
625
+ RUNTIME_TARGETS(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
626
+ RUNTIME_TARGETS(index: number,optionalEncoding?:any):string|Uint8Array|null {
627
+ const offset = this.bb!.__offset(this.bb_pos, 104);
628
+ return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
629
+ }
630
+
631
+ runtimeTargetsLength():number {
632
+ const offset = this.bb!.__offset(this.bb_pos, 104);
633
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
634
+ }
635
+
636
+ /**
637
+ * Allowed requester xpub identities (BIP-32 account xpubs) for module grants:
638
+ * a requester whose verified EPM binds an xpub in this list is granted (PKI
639
+ * identity authorization). Empty list = no xpub allowlist gate.
640
+ */
641
+ ALLOWED_XPUBS(index: number):string
642
+ ALLOWED_XPUBS(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
643
+ ALLOWED_XPUBS(index: number,optionalEncoding?:any):string|Uint8Array|null {
644
+ const offset = this.bb!.__offset(this.bb_pos, 106);
645
+ return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
646
+ }
647
+
648
+ allowedXpubsLength():number {
649
+ const offset = this.bb!.__offset(this.bb_pos, 106);
650
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
651
+ }
652
+
653
+ /**
654
+ * Composition graph (a degenerate flow is a module): the nodes this flow
655
+ * invokes. Empty for a leaf module; populated for a composed flow. The flow
656
+ * definition is this PLG FlatBuffer, not a bespoke JSON graph.
657
+ */
658
+ FLOW_NODES(index: number, obj?:PLGFlowNode):PLGFlowNode|null {
659
+ const offset = this.bb!.__offset(this.bb_pos, 108);
660
+ return offset ? (obj || new PLGFlowNode()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
661
+ }
662
+
663
+ flowNodesLength():number {
664
+ const offset = this.bb!.__offset(this.bb_pos, 108);
665
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
666
+ }
667
+
668
+ /**
669
+ * Composition-graph edges wiring node output ports to input ports.
670
+ */
671
+ FLOW_EDGES(index: number, obj?:PLGFlowEdge):PLGFlowEdge|null {
672
+ const offset = this.bb!.__offset(this.bb_pos, 110);
673
+ return offset ? (obj || new PLGFlowEdge()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
674
+ }
675
+
676
+ flowEdgesLength():number {
677
+ const offset = this.bb!.__offset(this.bb_pos, 110);
678
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
679
+ }
680
+
681
+ /**
682
+ * Flow triggers (timer/http) that start a drain.
683
+ */
684
+ FLOW_TRIGGERS(index: number, obj?:PLGFlowTrigger):PLGFlowTrigger|null {
685
+ const offset = this.bb!.__offset(this.bb_pos, 112);
686
+ return offset ? (obj || new PLGFlowTrigger()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
687
+ }
688
+
689
+ flowTriggersLength():number {
690
+ const offset = this.bb!.__offset(this.bb_pos, 112);
691
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
692
+ }
693
+
694
+ /**
695
+ * Bindings from triggers to the node + input port they deliver to.
696
+ */
697
+ FLOW_TRIGGER_BINDINGS(index: number, obj?:PLGFlowTriggerBinding):PLGFlowTriggerBinding|null {
698
+ const offset = this.bb!.__offset(this.bb_pos, 114);
699
+ return offset ? (obj || new PLGFlowTriggerBinding()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
700
+ }
701
+
702
+ flowTriggerBindingsLength():number {
703
+ const offset = this.bb!.__offset(this.bb_pos, 114);
704
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
705
+ }
706
+
707
+ static startPLG(builder:flatbuffers.Builder) {
708
+ builder.startObject(56);
709
+ }
710
+
711
+ static addPluginId(builder:flatbuffers.Builder, PLUGIN_IDOffset:flatbuffers.Offset) {
712
+ builder.addFieldOffset(0, PLUGIN_IDOffset, 0);
713
+ }
714
+
715
+ static addName(builder:flatbuffers.Builder, NAMEOffset:flatbuffers.Offset) {
716
+ builder.addFieldOffset(1, NAMEOffset, 0);
717
+ }
718
+
719
+ static addVersion(builder:flatbuffers.Builder, VERSIONOffset:flatbuffers.Offset) {
720
+ builder.addFieldOffset(2, VERSIONOffset, 0);
721
+ }
722
+
723
+ static addDescription(builder:flatbuffers.Builder, DESCRIPTIONOffset:flatbuffers.Offset) {
724
+ builder.addFieldOffset(3, DESCRIPTIONOffset, 0);
725
+ }
726
+
727
+ static addTagline(builder:flatbuffers.Builder, TAGLINEOffset:flatbuffers.Offset) {
728
+ builder.addFieldOffset(4, TAGLINEOffset, 0);
729
+ }
730
+
731
+ static addPluginType(builder:flatbuffers.Builder, PLUGIN_TYPE:pluginCategory) {
732
+ builder.addFieldInt8(5, PLUGIN_TYPE, pluginCategory.Sensor);
733
+ }
734
+
735
+ static addPublisherName(builder:flatbuffers.Builder, PUBLISHER_NAMEOffset:flatbuffers.Offset) {
736
+ builder.addFieldOffset(6, PUBLISHER_NAMEOffset, 0);
737
+ }
738
+
739
+ static addPublisherHandle(builder:flatbuffers.Builder, PUBLISHER_HANDLEOffset:flatbuffers.Offset) {
740
+ builder.addFieldOffset(7, PUBLISHER_HANDLEOffset, 0);
741
+ }
742
+
743
+ static addPublisherUrl(builder:flatbuffers.Builder, PUBLISHER_URLOffset:flatbuffers.Offset) {
744
+ builder.addFieldOffset(8, PUBLISHER_URLOffset, 0);
745
+ }
746
+
747
+ static addSupportUrl(builder:flatbuffers.Builder, SUPPORT_URLOffset:flatbuffers.Offset) {
748
+ builder.addFieldOffset(9, SUPPORT_URLOffset, 0);
749
+ }
750
+
751
+ static addTags(builder:flatbuffers.Builder, TAGSOffset:flatbuffers.Offset) {
752
+ builder.addFieldOffset(10, TAGSOffset, 0);
753
+ }
754
+
755
+ static createTagsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
756
+ builder.startVector(4, data.length, 4);
757
+ for (let i = data.length - 1; i >= 0; i--) {
758
+ builder.addOffset(data[i]!);
759
+ }
760
+ return builder.endVector();
761
+ }
762
+
763
+ static startTagsVector(builder:flatbuffers.Builder, numElems:number) {
764
+ builder.startVector(4, numElems, 4);
765
+ }
766
+
767
+ static addFeatures(builder:flatbuffers.Builder, FEATURESOffset:flatbuffers.Offset) {
768
+ builder.addFieldOffset(11, FEATURESOffset, 0);
769
+ }
770
+
771
+ static createFeaturesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
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
+
779
+ static startFeaturesVector(builder:flatbuffers.Builder, numElems:number) {
780
+ builder.startVector(4, numElems, 4);
781
+ }
782
+
783
+ static addScreenshotUrls(builder:flatbuffers.Builder, SCREENSHOT_URLSOffset:flatbuffers.Offset) {
784
+ builder.addFieldOffset(12, SCREENSHOT_URLSOffset, 0);
785
+ }
786
+
787
+ static createScreenshotUrlsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
788
+ builder.startVector(4, data.length, 4);
789
+ for (let i = data.length - 1; i >= 0; i--) {
790
+ builder.addOffset(data[i]!);
791
+ }
792
+ return builder.endVector();
793
+ }
794
+
795
+ static startScreenshotUrlsVector(builder:flatbuffers.Builder, numElems:number) {
796
+ builder.startVector(4, numElems, 4);
797
+ }
798
+
799
+ static addBannerUrl(builder:flatbuffers.Builder, BANNER_URLOffset:flatbuffers.Offset) {
800
+ builder.addFieldOffset(13, BANNER_URLOffset, 0);
801
+ }
802
+
803
+ static addAbiVersion(builder:flatbuffers.Builder, ABI_VERSION:number) {
804
+ builder.addFieldInt32(14, ABI_VERSION, 1);
805
+ }
806
+
807
+ static addWasmHash(builder:flatbuffers.Builder, WASM_HASHOffset:flatbuffers.Offset) {
808
+ builder.addFieldOffset(15, WASM_HASHOffset, 0);
809
+ }
810
+
811
+ static createWasmHashVector(builder:flatbuffers.Builder, data:number[]|Uint8Array):flatbuffers.Offset {
812
+ builder.startVector(1, data.length, 1);
813
+ for (let i = data.length - 1; i >= 0; i--) {
814
+ builder.addInt8(data[i]!);
815
+ }
816
+ return builder.endVector();
817
+ }
818
+
819
+ static startWasmHashVector(builder:flatbuffers.Builder, numElems:number) {
820
+ builder.startVector(1, numElems, 1);
821
+ }
822
+
823
+ static addWasmSize(builder:flatbuffers.Builder, WASM_SIZE:bigint) {
824
+ builder.addFieldInt64(16, WASM_SIZE, BigInt('0'));
825
+ }
826
+
827
+ static addWasmCid(builder:flatbuffers.Builder, WASM_CIDOffset:flatbuffers.Offset) {
828
+ builder.addFieldOffset(17, WASM_CIDOffset, 0);
829
+ }
830
+
831
+ static addEncryptedWasmHash(builder:flatbuffers.Builder, ENCRYPTED_WASM_HASHOffset:flatbuffers.Offset) {
832
+ builder.addFieldOffset(18, ENCRYPTED_WASM_HASHOffset, 0);
833
+ }
834
+
835
+ static createEncryptedWasmHashVector(builder:flatbuffers.Builder, data:number[]|Uint8Array):flatbuffers.Offset {
836
+ builder.startVector(1, data.length, 1);
837
+ for (let i = data.length - 1; i >= 0; i--) {
838
+ builder.addInt8(data[i]!);
839
+ }
840
+ return builder.endVector();
841
+ }
842
+
843
+ static startEncryptedWasmHashVector(builder:flatbuffers.Builder, numElems:number) {
844
+ builder.startVector(1, numElems, 1);
845
+ }
846
+
847
+ static addEncryptedWasmSize(builder:flatbuffers.Builder, ENCRYPTED_WASM_SIZE:bigint) {
848
+ builder.addFieldInt64(19, ENCRYPTED_WASM_SIZE, BigInt('0'));
849
+ }
850
+
851
+ static addEntryFunctions(builder:flatbuffers.Builder, ENTRY_FUNCTIONSOffset:flatbuffers.Offset) {
852
+ builder.addFieldOffset(20, ENTRY_FUNCTIONSOffset, 0);
853
+ }
854
+
855
+ static createEntryFunctionsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
856
+ builder.startVector(4, data.length, 4);
857
+ for (let i = data.length - 1; i >= 0; i--) {
858
+ builder.addOffset(data[i]!);
859
+ }
860
+ return builder.endVector();
861
+ }
862
+
863
+ static startEntryFunctionsVector(builder:flatbuffers.Builder, numElems:number) {
864
+ builder.startVector(4, numElems, 4);
865
+ }
866
+
867
+ static addRequiredSchemas(builder:flatbuffers.Builder, REQUIRED_SCHEMASOffset:flatbuffers.Offset) {
868
+ builder.addFieldOffset(21, REQUIRED_SCHEMASOffset, 0);
869
+ }
870
+
871
+ static createRequiredSchemasVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
872
+ builder.startVector(4, data.length, 4);
873
+ for (let i = data.length - 1; i >= 0; i--) {
874
+ builder.addOffset(data[i]!);
875
+ }
876
+ return builder.endVector();
877
+ }
878
+
879
+ static startRequiredSchemasVector(builder:flatbuffers.Builder, numElems:number) {
880
+ builder.startVector(4, numElems, 4);
881
+ }
882
+
883
+ static addDependencies(builder:flatbuffers.Builder, DEPENDENCIESOffset:flatbuffers.Offset) {
884
+ builder.addFieldOffset(22, DEPENDENCIESOffset, 0);
885
+ }
886
+
887
+ static createDependenciesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
888
+ builder.startVector(4, data.length, 4);
889
+ for (let i = data.length - 1; i >= 0; i--) {
890
+ builder.addOffset(data[i]!);
891
+ }
892
+ return builder.endVector();
893
+ }
894
+
895
+ static startDependenciesVector(builder:flatbuffers.Builder, numElems:number) {
896
+ builder.startVector(4, numElems, 4);
897
+ }
898
+
899
+ static addCapabilities(builder:flatbuffers.Builder, CAPABILITIESOffset:flatbuffers.Offset) {
900
+ builder.addFieldOffset(23, CAPABILITIESOffset, 0);
901
+ }
902
+
903
+ static createCapabilitiesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
904
+ builder.startVector(4, data.length, 4);
905
+ for (let i = data.length - 1; i >= 0; i--) {
906
+ builder.addOffset(data[i]!);
907
+ }
908
+ return builder.endVector();
909
+ }
910
+
911
+ static startCapabilitiesVector(builder:flatbuffers.Builder, numElems:number) {
912
+ builder.startVector(4, numElems, 4);
913
+ }
914
+
915
+ static addProviderPeerId(builder:flatbuffers.Builder, PROVIDER_PEER_IDOffset:flatbuffers.Offset) {
916
+ builder.addFieldOffset(24, PROVIDER_PEER_IDOffset, 0);
917
+ }
918
+
919
+ static addProviderEpmCid(builder:flatbuffers.Builder, PROVIDER_EPM_CIDOffset:flatbuffers.Offset) {
920
+ builder.addFieldOffset(25, PROVIDER_EPM_CIDOffset, 0);
921
+ }
922
+
923
+ static addEncrypted(builder:flatbuffers.Builder, ENCRYPTED:boolean) {
924
+ builder.addFieldInt8(26, +ENCRYPTED, +true);
925
+ }
926
+
927
+ static addRequiredScope(builder:flatbuffers.Builder, REQUIRED_SCOPEOffset:flatbuffers.Offset) {
928
+ builder.addFieldOffset(27, REQUIRED_SCOPEOffset, 0);
929
+ }
930
+
931
+ static addKeyId(builder:flatbuffers.Builder, KEY_IDOffset:flatbuffers.Offset) {
932
+ builder.addFieldOffset(28, KEY_IDOffset, 0);
933
+ }
934
+
935
+ static addMaxGrantTimeoutMs(builder:flatbuffers.Builder, MAX_GRANT_TIMEOUT_MS:bigint) {
936
+ builder.addFieldInt64(29, MAX_GRANT_TIMEOUT_MS, BigInt('0'));
937
+ }
938
+
939
+ static addMinPermissions(builder:flatbuffers.Builder, MIN_PERMISSIONSOffset:flatbuffers.Offset) {
940
+ builder.addFieldOffset(30, MIN_PERMISSIONSOffset, 0);
941
+ }
942
+
943
+ static createMinPermissionsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
944
+ builder.startVector(4, data.length, 4);
945
+ for (let i = data.length - 1; i >= 0; i--) {
946
+ builder.addOffset(data[i]!);
947
+ }
948
+ return builder.endVector();
949
+ }
950
+
951
+ static startMinPermissionsVector(builder:flatbuffers.Builder, numElems:number) {
952
+ builder.startVector(4, numElems, 4);
953
+ }
954
+
955
+ static addCreatedAt(builder:flatbuffers.Builder, CREATED_AT:bigint) {
956
+ builder.addFieldInt64(31, CREATED_AT, BigInt('0'));
957
+ }
958
+
959
+ static addUpdatedAt(builder:flatbuffers.Builder, UPDATED_AT:bigint) {
960
+ builder.addFieldInt64(32, UPDATED_AT, BigInt('0'));
961
+ }
962
+
963
+ static addDocumentationUrl(builder:flatbuffers.Builder, DOCUMENTATION_URLOffset:flatbuffers.Offset) {
964
+ builder.addFieldOffset(33, DOCUMENTATION_URLOffset, 0);
965
+ }
966
+
967
+ static addChangelogUrl(builder:flatbuffers.Builder, CHANGELOG_URLOffset:flatbuffers.Offset) {
968
+ builder.addFieldOffset(34, CHANGELOG_URLOffset, 0);
969
+ }
970
+
971
+ static addIconUrl(builder:flatbuffers.Builder, ICON_URLOffset:flatbuffers.Offset) {
972
+ builder.addFieldOffset(35, ICON_URLOffset, 0);
973
+ }
974
+
975
+ static addLicense(builder:flatbuffers.Builder, LICENSEOffset:flatbuffers.Offset) {
976
+ builder.addFieldOffset(36, LICENSEOffset, 0);
977
+ }
978
+
979
+ static addPaymentModel(builder:flatbuffers.Builder, PAYMENT_MODEL:purchaseTier) {
980
+ builder.addFieldInt8(37, PAYMENT_MODEL, purchaseTier.Free);
981
+ }
982
+
983
+ static addPriceUsdCents(builder:flatbuffers.Builder, PRICE_USD_CENTS:number) {
984
+ builder.addFieldInt32(38, PRICE_USD_CENTS, 0);
985
+ }
986
+
987
+ static addSubscriptionPeriodDays(builder:flatbuffers.Builder, SUBSCRIPTION_PERIOD_DAYS:number) {
988
+ builder.addFieldInt32(39, SUBSCRIPTION_PERIOD_DAYS, 0);
989
+ }
990
+
991
+ static addAcceptedPaymentMethods(builder:flatbuffers.Builder, ACCEPTED_PAYMENT_METHODSOffset:flatbuffers.Offset) {
992
+ builder.addFieldOffset(40, ACCEPTED_PAYMENT_METHODSOffset, 0);
993
+ }
994
+
995
+ static createAcceptedPaymentMethodsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
996
+ builder.startVector(4, data.length, 4);
997
+ for (let i = data.length - 1; i >= 0; i--) {
998
+ builder.addOffset(data[i]!);
999
+ }
1000
+ return builder.endVector();
1001
+ }
1002
+
1003
+ static startAcceptedPaymentMethodsVector(builder:flatbuffers.Builder, numElems:number) {
1004
+ builder.startVector(4, numElems, 4);
1005
+ }
1006
+
1007
+ static addListingStatus(builder:flatbuffers.Builder, LISTING_STATUS:publicationState) {
1008
+ builder.addFieldInt8(41, LISTING_STATUS, publicationState.Public);
1009
+ }
1010
+
1011
+ static addSignature(builder:flatbuffers.Builder, SIGNATUREOffset:flatbuffers.Offset) {
1012
+ builder.addFieldOffset(42, SIGNATUREOffset, 0);
1013
+ }
1014
+
1015
+ static createSignatureVector(builder:flatbuffers.Builder, data:number[]|Uint8Array):flatbuffers.Offset {
1016
+ builder.startVector(1, data.length, 1);
1017
+ for (let i = data.length - 1; i >= 0; i--) {
1018
+ builder.addInt8(data[i]!);
1019
+ }
1020
+ return builder.endVector();
1021
+ }
1022
+
1023
+ static startSignatureVector(builder:flatbuffers.Builder, numElems:number) {
1024
+ builder.startVector(1, numElems, 1);
1025
+ }
1026
+
1027
+ static addInvokeSurfaces(builder:flatbuffers.Builder, INVOKE_SURFACESOffset:flatbuffers.Offset) {
1028
+ builder.addFieldOffset(43, INVOKE_SURFACESOffset, 0);
1029
+ }
1030
+
1031
+ static createInvokeSurfacesVector(builder:flatbuffers.Builder, data:invokeSurfaceKind[]):flatbuffers.Offset {
1032
+ builder.startVector(1, data.length, 1);
1033
+ for (let i = data.length - 1; i >= 0; i--) {
1034
+ builder.addInt8(data[i]!);
1035
+ }
1036
+ return builder.endVector();
1037
+ }
1038
+
1039
+ static startInvokeSurfacesVector(builder:flatbuffers.Builder, numElems:number) {
1040
+ builder.startVector(1, numElems, 1);
1041
+ }
1042
+
1043
+ static addMethods(builder:flatbuffers.Builder, METHODSOffset:flatbuffers.Offset) {
1044
+ builder.addFieldOffset(44, METHODSOffset, 0);
1045
+ }
1046
+
1047
+ static createMethodsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
1048
+ builder.startVector(4, data.length, 4);
1049
+ for (let i = data.length - 1; i >= 0; i--) {
1050
+ builder.addOffset(data[i]!);
1051
+ }
1052
+ return builder.endVector();
1053
+ }
1054
+
1055
+ static startMethodsVector(builder:flatbuffers.Builder, numElems:number) {
1056
+ builder.startVector(4, numElems, 4);
1057
+ }
1058
+
1059
+ static addHostCapabilities(builder:flatbuffers.Builder, HOST_CAPABILITIESOffset:flatbuffers.Offset) {
1060
+ builder.addFieldOffset(45, HOST_CAPABILITIESOffset, 0);
1061
+ }
1062
+
1063
+ static createHostCapabilitiesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
1064
+ builder.startVector(4, data.length, 4);
1065
+ for (let i = data.length - 1; i >= 0; i--) {
1066
+ builder.addOffset(data[i]!);
1067
+ }
1068
+ return builder.endVector();
1069
+ }
1070
+
1071
+ static startHostCapabilitiesVector(builder:flatbuffers.Builder, numElems:number) {
1072
+ builder.startVector(4, numElems, 4);
1073
+ }
1074
+
1075
+ static addTimers(builder:flatbuffers.Builder, TIMERSOffset:flatbuffers.Offset) {
1076
+ builder.addFieldOffset(46, TIMERSOffset, 0);
1077
+ }
1078
+
1079
+ static createTimersVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
1080
+ builder.startVector(4, data.length, 4);
1081
+ for (let i = data.length - 1; i >= 0; i--) {
1082
+ builder.addOffset(data[i]!);
1083
+ }
1084
+ return builder.endVector();
1085
+ }
1086
+
1087
+ static startTimersVector(builder:flatbuffers.Builder, numElems:number) {
1088
+ builder.startVector(4, numElems, 4);
1089
+ }
1090
+
1091
+ static addProtocols(builder:flatbuffers.Builder, PROTOCOLSOffset:flatbuffers.Offset) {
1092
+ builder.addFieldOffset(47, PROTOCOLSOffset, 0);
1093
+ }
1094
+
1095
+ static createProtocolsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
1096
+ builder.startVector(4, data.length, 4);
1097
+ for (let i = data.length - 1; i >= 0; i--) {
1098
+ builder.addOffset(data[i]!);
1099
+ }
1100
+ return builder.endVector();
1101
+ }
1102
+
1103
+ static startProtocolsVector(builder:flatbuffers.Builder, numElems:number) {
1104
+ builder.startVector(4, numElems, 4);
1105
+ }
1106
+
1107
+ static addSchemasUsed(builder:flatbuffers.Builder, SCHEMAS_USEDOffset:flatbuffers.Offset) {
1108
+ builder.addFieldOffset(48, SCHEMAS_USEDOffset, 0);
1109
+ }
1110
+
1111
+ static createSchemasUsedVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
1112
+ builder.startVector(4, data.length, 4);
1113
+ for (let i = data.length - 1; i >= 0; i--) {
1114
+ builder.addOffset(data[i]!);
1115
+ }
1116
+ return builder.endVector();
1117
+ }
1118
+
1119
+ static startSchemasUsedVector(builder:flatbuffers.Builder, numElems:number) {
1120
+ builder.startVector(4, numElems, 4);
1121
+ }
1122
+
1123
+ static addBuildArtifacts(builder:flatbuffers.Builder, BUILD_ARTIFACTSOffset:flatbuffers.Offset) {
1124
+ builder.addFieldOffset(49, BUILD_ARTIFACTSOffset, 0);
1125
+ }
1126
+
1127
+ static createBuildArtifactsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
1128
+ builder.startVector(4, data.length, 4);
1129
+ for (let i = data.length - 1; i >= 0; i--) {
1130
+ builder.addOffset(data[i]!);
1131
+ }
1132
+ return builder.endVector();
1133
+ }
1134
+
1135
+ static startBuildArtifactsVector(builder:flatbuffers.Builder, numElems:number) {
1136
+ builder.startVector(4, numElems, 4);
1137
+ }
1138
+
1139
+ static addRuntimeTargets(builder:flatbuffers.Builder, RUNTIME_TARGETSOffset:flatbuffers.Offset) {
1140
+ builder.addFieldOffset(50, RUNTIME_TARGETSOffset, 0);
1141
+ }
1142
+
1143
+ static createRuntimeTargetsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
1144
+ builder.startVector(4, data.length, 4);
1145
+ for (let i = data.length - 1; i >= 0; i--) {
1146
+ builder.addOffset(data[i]!);
1147
+ }
1148
+ return builder.endVector();
1149
+ }
1150
+
1151
+ static startRuntimeTargetsVector(builder:flatbuffers.Builder, numElems:number) {
1152
+ builder.startVector(4, numElems, 4);
1153
+ }
1154
+
1155
+ static addAllowedXpubs(builder:flatbuffers.Builder, ALLOWED_XPUBSOffset:flatbuffers.Offset) {
1156
+ builder.addFieldOffset(51, ALLOWED_XPUBSOffset, 0);
1157
+ }
1158
+
1159
+ static createAllowedXpubsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
1160
+ builder.startVector(4, data.length, 4);
1161
+ for (let i = data.length - 1; i >= 0; i--) {
1162
+ builder.addOffset(data[i]!);
1163
+ }
1164
+ return builder.endVector();
1165
+ }
1166
+
1167
+ static startAllowedXpubsVector(builder:flatbuffers.Builder, numElems:number) {
1168
+ builder.startVector(4, numElems, 4);
1169
+ }
1170
+
1171
+ static addFlowNodes(builder:flatbuffers.Builder, FLOW_NODESOffset:flatbuffers.Offset) {
1172
+ builder.addFieldOffset(52, FLOW_NODESOffset, 0);
1173
+ }
1174
+
1175
+ static createFlowNodesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
1176
+ builder.startVector(4, data.length, 4);
1177
+ for (let i = data.length - 1; i >= 0; i--) {
1178
+ builder.addOffset(data[i]!);
1179
+ }
1180
+ return builder.endVector();
1181
+ }
1182
+
1183
+ static startFlowNodesVector(builder:flatbuffers.Builder, numElems:number) {
1184
+ builder.startVector(4, numElems, 4);
1185
+ }
1186
+
1187
+ static addFlowEdges(builder:flatbuffers.Builder, FLOW_EDGESOffset:flatbuffers.Offset) {
1188
+ builder.addFieldOffset(53, FLOW_EDGESOffset, 0);
1189
+ }
1190
+
1191
+ static createFlowEdgesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
1192
+ builder.startVector(4, data.length, 4);
1193
+ for (let i = data.length - 1; i >= 0; i--) {
1194
+ builder.addOffset(data[i]!);
1195
+ }
1196
+ return builder.endVector();
1197
+ }
1198
+
1199
+ static startFlowEdgesVector(builder:flatbuffers.Builder, numElems:number) {
1200
+ builder.startVector(4, numElems, 4);
1201
+ }
1202
+
1203
+ static addFlowTriggers(builder:flatbuffers.Builder, FLOW_TRIGGERSOffset:flatbuffers.Offset) {
1204
+ builder.addFieldOffset(54, FLOW_TRIGGERSOffset, 0);
1205
+ }
1206
+
1207
+ static createFlowTriggersVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
1208
+ builder.startVector(4, data.length, 4);
1209
+ for (let i = data.length - 1; i >= 0; i--) {
1210
+ builder.addOffset(data[i]!);
1211
+ }
1212
+ return builder.endVector();
1213
+ }
1214
+
1215
+ static startFlowTriggersVector(builder:flatbuffers.Builder, numElems:number) {
1216
+ builder.startVector(4, numElems, 4);
1217
+ }
1218
+
1219
+ static addFlowTriggerBindings(builder:flatbuffers.Builder, FLOW_TRIGGER_BINDINGSOffset:flatbuffers.Offset) {
1220
+ builder.addFieldOffset(55, FLOW_TRIGGER_BINDINGSOffset, 0);
1221
+ }
1222
+
1223
+ static createFlowTriggerBindingsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
1224
+ builder.startVector(4, data.length, 4);
1225
+ for (let i = data.length - 1; i >= 0; i--) {
1226
+ builder.addOffset(data[i]!);
1227
+ }
1228
+ return builder.endVector();
1229
+ }
1230
+
1231
+ static startFlowTriggerBindingsVector(builder:flatbuffers.Builder, numElems:number) {
1232
+ builder.startVector(4, numElems, 4);
1233
+ }
1234
+
1235
+ static endPLG(builder:flatbuffers.Builder):flatbuffers.Offset {
1236
+ const offset = builder.endObject();
1237
+ builder.requiredField(offset, 4) // PLUGIN_ID
1238
+ builder.requiredField(offset, 6) // NAME
1239
+ builder.requiredField(offset, 8) // VERSION
1240
+ return offset;
1241
+ }
1242
+
1243
+ static finishPLGBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
1244
+ builder.finish(offset, '$PLG');
1245
+ }
1246
+
1247
+ static finishSizePrefixedPLGBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
1248
+ builder.finish(offset, '$PLG', true);
1249
+ }
1250
+
1251
+ static createPLG(builder:flatbuffers.Builder, PLUGIN_IDOffset:flatbuffers.Offset, NAMEOffset:flatbuffers.Offset, VERSIONOffset:flatbuffers.Offset, DESCRIPTIONOffset:flatbuffers.Offset, TAGLINEOffset:flatbuffers.Offset, PLUGIN_TYPE:pluginCategory, PUBLISHER_NAMEOffset:flatbuffers.Offset, PUBLISHER_HANDLEOffset:flatbuffers.Offset, PUBLISHER_URLOffset:flatbuffers.Offset, SUPPORT_URLOffset:flatbuffers.Offset, TAGSOffset:flatbuffers.Offset, FEATURESOffset:flatbuffers.Offset, SCREENSHOT_URLSOffset:flatbuffers.Offset, BANNER_URLOffset:flatbuffers.Offset, ABI_VERSION:number, WASM_HASHOffset:flatbuffers.Offset, WASM_SIZE:bigint, WASM_CIDOffset:flatbuffers.Offset, ENCRYPTED_WASM_HASHOffset:flatbuffers.Offset, ENCRYPTED_WASM_SIZE:bigint, ENTRY_FUNCTIONSOffset:flatbuffers.Offset, REQUIRED_SCHEMASOffset:flatbuffers.Offset, DEPENDENCIESOffset:flatbuffers.Offset, CAPABILITIESOffset:flatbuffers.Offset, PROVIDER_PEER_IDOffset:flatbuffers.Offset, PROVIDER_EPM_CIDOffset:flatbuffers.Offset, ENCRYPTED:boolean, REQUIRED_SCOPEOffset:flatbuffers.Offset, KEY_IDOffset:flatbuffers.Offset, MAX_GRANT_TIMEOUT_MS:bigint, MIN_PERMISSIONSOffset:flatbuffers.Offset, CREATED_AT:bigint, UPDATED_AT:bigint, DOCUMENTATION_URLOffset:flatbuffers.Offset, CHANGELOG_URLOffset:flatbuffers.Offset, ICON_URLOffset:flatbuffers.Offset, LICENSEOffset:flatbuffers.Offset, PAYMENT_MODEL:purchaseTier, PRICE_USD_CENTS:number, SUBSCRIPTION_PERIOD_DAYS:number, ACCEPTED_PAYMENT_METHODSOffset:flatbuffers.Offset, LISTING_STATUS:publicationState, SIGNATUREOffset:flatbuffers.Offset, INVOKE_SURFACESOffset:flatbuffers.Offset, METHODSOffset:flatbuffers.Offset, HOST_CAPABILITIESOffset:flatbuffers.Offset, TIMERSOffset:flatbuffers.Offset, PROTOCOLSOffset:flatbuffers.Offset, SCHEMAS_USEDOffset:flatbuffers.Offset, BUILD_ARTIFACTSOffset:flatbuffers.Offset, RUNTIME_TARGETSOffset:flatbuffers.Offset, ALLOWED_XPUBSOffset:flatbuffers.Offset, FLOW_NODESOffset:flatbuffers.Offset, FLOW_EDGESOffset:flatbuffers.Offset, FLOW_TRIGGERSOffset:flatbuffers.Offset, FLOW_TRIGGER_BINDINGSOffset:flatbuffers.Offset):flatbuffers.Offset {
1252
+ PLG.startPLG(builder);
1253
+ PLG.addPluginId(builder, PLUGIN_IDOffset);
1254
+ PLG.addName(builder, NAMEOffset);
1255
+ PLG.addVersion(builder, VERSIONOffset);
1256
+ PLG.addDescription(builder, DESCRIPTIONOffset);
1257
+ PLG.addTagline(builder, TAGLINEOffset);
1258
+ PLG.addPluginType(builder, PLUGIN_TYPE);
1259
+ PLG.addPublisherName(builder, PUBLISHER_NAMEOffset);
1260
+ PLG.addPublisherHandle(builder, PUBLISHER_HANDLEOffset);
1261
+ PLG.addPublisherUrl(builder, PUBLISHER_URLOffset);
1262
+ PLG.addSupportUrl(builder, SUPPORT_URLOffset);
1263
+ PLG.addTags(builder, TAGSOffset);
1264
+ PLG.addFeatures(builder, FEATURESOffset);
1265
+ PLG.addScreenshotUrls(builder, SCREENSHOT_URLSOffset);
1266
+ PLG.addBannerUrl(builder, BANNER_URLOffset);
1267
+ PLG.addAbiVersion(builder, ABI_VERSION);
1268
+ PLG.addWasmHash(builder, WASM_HASHOffset);
1269
+ PLG.addWasmSize(builder, WASM_SIZE);
1270
+ PLG.addWasmCid(builder, WASM_CIDOffset);
1271
+ PLG.addEncryptedWasmHash(builder, ENCRYPTED_WASM_HASHOffset);
1272
+ PLG.addEncryptedWasmSize(builder, ENCRYPTED_WASM_SIZE);
1273
+ PLG.addEntryFunctions(builder, ENTRY_FUNCTIONSOffset);
1274
+ PLG.addRequiredSchemas(builder, REQUIRED_SCHEMASOffset);
1275
+ PLG.addDependencies(builder, DEPENDENCIESOffset);
1276
+ PLG.addCapabilities(builder, CAPABILITIESOffset);
1277
+ PLG.addProviderPeerId(builder, PROVIDER_PEER_IDOffset);
1278
+ PLG.addProviderEpmCid(builder, PROVIDER_EPM_CIDOffset);
1279
+ PLG.addEncrypted(builder, ENCRYPTED);
1280
+ PLG.addRequiredScope(builder, REQUIRED_SCOPEOffset);
1281
+ PLG.addKeyId(builder, KEY_IDOffset);
1282
+ PLG.addMaxGrantTimeoutMs(builder, MAX_GRANT_TIMEOUT_MS);
1283
+ PLG.addMinPermissions(builder, MIN_PERMISSIONSOffset);
1284
+ PLG.addCreatedAt(builder, CREATED_AT);
1285
+ PLG.addUpdatedAt(builder, UPDATED_AT);
1286
+ PLG.addDocumentationUrl(builder, DOCUMENTATION_URLOffset);
1287
+ PLG.addChangelogUrl(builder, CHANGELOG_URLOffset);
1288
+ PLG.addIconUrl(builder, ICON_URLOffset);
1289
+ PLG.addLicense(builder, LICENSEOffset);
1290
+ PLG.addPaymentModel(builder, PAYMENT_MODEL);
1291
+ PLG.addPriceUsdCents(builder, PRICE_USD_CENTS);
1292
+ PLG.addSubscriptionPeriodDays(builder, SUBSCRIPTION_PERIOD_DAYS);
1293
+ PLG.addAcceptedPaymentMethods(builder, ACCEPTED_PAYMENT_METHODSOffset);
1294
+ PLG.addListingStatus(builder, LISTING_STATUS);
1295
+ PLG.addSignature(builder, SIGNATUREOffset);
1296
+ PLG.addInvokeSurfaces(builder, INVOKE_SURFACESOffset);
1297
+ PLG.addMethods(builder, METHODSOffset);
1298
+ PLG.addHostCapabilities(builder, HOST_CAPABILITIESOffset);
1299
+ PLG.addTimers(builder, TIMERSOffset);
1300
+ PLG.addProtocols(builder, PROTOCOLSOffset);
1301
+ PLG.addSchemasUsed(builder, SCHEMAS_USEDOffset);
1302
+ PLG.addBuildArtifacts(builder, BUILD_ARTIFACTSOffset);
1303
+ PLG.addRuntimeTargets(builder, RUNTIME_TARGETSOffset);
1304
+ PLG.addAllowedXpubs(builder, ALLOWED_XPUBSOffset);
1305
+ PLG.addFlowNodes(builder, FLOW_NODESOffset);
1306
+ PLG.addFlowEdges(builder, FLOW_EDGESOffset);
1307
+ PLG.addFlowTriggers(builder, FLOW_TRIGGERSOffset);
1308
+ PLG.addFlowTriggerBindings(builder, FLOW_TRIGGER_BINDINGSOffset);
1309
+ return PLG.endPLG(builder);
1310
+ }
1311
+
1312
+ unpack(): PLGT {
1313
+ return new PLGT(
1314
+ this.PLUGIN_ID(),
1315
+ this.NAME(),
1316
+ this.VERSION(),
1317
+ this.DESCRIPTION(),
1318
+ this.TAGLINE(),
1319
+ this.PLUGIN_TYPE(),
1320
+ this.PUBLISHER_NAME(),
1321
+ this.PUBLISHER_HANDLE(),
1322
+ this.PUBLISHER_URL(),
1323
+ this.SUPPORT_URL(),
1324
+ this.bb!.createScalarList<string>(this.TAGS.bind(this), this.tagsLength()),
1325
+ this.bb!.createScalarList<string>(this.FEATURES.bind(this), this.featuresLength()),
1326
+ this.bb!.createScalarList<string>(this.SCREENSHOT_URLS.bind(this), this.screenshotUrlsLength()),
1327
+ this.BANNER_URL(),
1328
+ this.ABI_VERSION(),
1329
+ this.bb!.createScalarList<number>(this.WASM_HASH.bind(this), this.wasmHashLength()),
1330
+ this.WASM_SIZE(),
1331
+ this.WASM_CID(),
1332
+ this.bb!.createScalarList<number>(this.ENCRYPTED_WASM_HASH.bind(this), this.encryptedWasmHashLength()),
1333
+ this.ENCRYPTED_WASM_SIZE(),
1334
+ this.bb!.createObjList<EntryFunction, EntryFunctionT>(this.ENTRY_FUNCTIONS.bind(this), this.entryFunctionsLength()),
1335
+ this.bb!.createScalarList<string>(this.REQUIRED_SCHEMAS.bind(this), this.requiredSchemasLength()),
1336
+ this.bb!.createObjList<PluginDependency, PluginDependencyT>(this.DEPENDENCIES.bind(this), this.dependenciesLength()),
1337
+ this.bb!.createObjList<PluginCapability, PluginCapabilityT>(this.CAPABILITIES.bind(this), this.capabilitiesLength()),
1338
+ this.PROVIDER_PEER_ID(),
1339
+ this.PROVIDER_EPM_CID(),
1340
+ this.ENCRYPTED(),
1341
+ this.REQUIRED_SCOPE(),
1342
+ this.KEY_ID(),
1343
+ this.MAX_GRANT_TIMEOUT_MS(),
1344
+ this.bb!.createScalarList<string>(this.MIN_PERMISSIONS.bind(this), this.minPermissionsLength()),
1345
+ this.CREATED_AT(),
1346
+ this.UPDATED_AT(),
1347
+ this.DOCUMENTATION_URL(),
1348
+ this.CHANGELOG_URL(),
1349
+ this.ICON_URL(),
1350
+ this.LICENSE(),
1351
+ this.PAYMENT_MODEL(),
1352
+ this.PRICE_USD_CENTS(),
1353
+ this.SUBSCRIPTION_PERIOD_DAYS(),
1354
+ this.bb!.createScalarList<string>(this.ACCEPTED_PAYMENT_METHODS.bind(this), this.acceptedPaymentMethodsLength()),
1355
+ this.LISTING_STATUS(),
1356
+ this.bb!.createScalarList<number>(this.SIGNATURE.bind(this), this.signatureLength()),
1357
+ this.bb!.createScalarList<invokeSurfaceKind>(this.INVOKE_SURFACES.bind(this), this.invokeSurfacesLength()),
1358
+ this.bb!.createObjList<PLGMethodManifest, PLGMethodManifestT>(this.METHODS.bind(this), this.methodsLength()),
1359
+ this.bb!.createObjList<PLGHostCapability, PLGHostCapabilityT>(this.HOST_CAPABILITIES.bind(this), this.hostCapabilitiesLength()),
1360
+ this.bb!.createObjList<PLGTimerSpec, PLGTimerSpecT>(this.TIMERS.bind(this), this.timersLength()),
1361
+ this.bb!.createObjList<PLGProtocolSpec, PLGProtocolSpecT>(this.PROTOCOLS.bind(this), this.protocolsLength()),
1362
+ this.bb!.createObjList<FlatBufferTypeRef, FlatBufferTypeRefT>(this.SCHEMAS_USED.bind(this), this.schemasUsedLength()),
1363
+ this.bb!.createObjList<PLGBuildArtifact, PLGBuildArtifactT>(this.BUILD_ARTIFACTS.bind(this), this.buildArtifactsLength()),
1364
+ this.bb!.createScalarList<string>(this.RUNTIME_TARGETS.bind(this), this.runtimeTargetsLength()),
1365
+ this.bb!.createScalarList<string>(this.ALLOWED_XPUBS.bind(this), this.allowedXpubsLength()),
1366
+ this.bb!.createObjList<PLGFlowNode, PLGFlowNodeT>(this.FLOW_NODES.bind(this), this.flowNodesLength()),
1367
+ this.bb!.createObjList<PLGFlowEdge, PLGFlowEdgeT>(this.FLOW_EDGES.bind(this), this.flowEdgesLength()),
1368
+ this.bb!.createObjList<PLGFlowTrigger, PLGFlowTriggerT>(this.FLOW_TRIGGERS.bind(this), this.flowTriggersLength()),
1369
+ this.bb!.createObjList<PLGFlowTriggerBinding, PLGFlowTriggerBindingT>(this.FLOW_TRIGGER_BINDINGS.bind(this), this.flowTriggerBindingsLength())
1370
+ );
1371
+ }
1372
+
1373
+
1374
+ unpackTo(_o: PLGT): void {
1375
+ _o.PLUGIN_ID = this.PLUGIN_ID();
1376
+ _o.NAME = this.NAME();
1377
+ _o.VERSION = this.VERSION();
1378
+ _o.DESCRIPTION = this.DESCRIPTION();
1379
+ _o.TAGLINE = this.TAGLINE();
1380
+ _o.PLUGIN_TYPE = this.PLUGIN_TYPE();
1381
+ _o.PUBLISHER_NAME = this.PUBLISHER_NAME();
1382
+ _o.PUBLISHER_HANDLE = this.PUBLISHER_HANDLE();
1383
+ _o.PUBLISHER_URL = this.PUBLISHER_URL();
1384
+ _o.SUPPORT_URL = this.SUPPORT_URL();
1385
+ _o.TAGS = this.bb!.createScalarList<string>(this.TAGS.bind(this), this.tagsLength());
1386
+ _o.FEATURES = this.bb!.createScalarList<string>(this.FEATURES.bind(this), this.featuresLength());
1387
+ _o.SCREENSHOT_URLS = this.bb!.createScalarList<string>(this.SCREENSHOT_URLS.bind(this), this.screenshotUrlsLength());
1388
+ _o.BANNER_URL = this.BANNER_URL();
1389
+ _o.ABI_VERSION = this.ABI_VERSION();
1390
+ _o.WASM_HASH = this.bb!.createScalarList<number>(this.WASM_HASH.bind(this), this.wasmHashLength());
1391
+ _o.WASM_SIZE = this.WASM_SIZE();
1392
+ _o.WASM_CID = this.WASM_CID();
1393
+ _o.ENCRYPTED_WASM_HASH = this.bb!.createScalarList<number>(this.ENCRYPTED_WASM_HASH.bind(this), this.encryptedWasmHashLength());
1394
+ _o.ENCRYPTED_WASM_SIZE = this.ENCRYPTED_WASM_SIZE();
1395
+ _o.ENTRY_FUNCTIONS = this.bb!.createObjList<EntryFunction, EntryFunctionT>(this.ENTRY_FUNCTIONS.bind(this), this.entryFunctionsLength());
1396
+ _o.REQUIRED_SCHEMAS = this.bb!.createScalarList<string>(this.REQUIRED_SCHEMAS.bind(this), this.requiredSchemasLength());
1397
+ _o.DEPENDENCIES = this.bb!.createObjList<PluginDependency, PluginDependencyT>(this.DEPENDENCIES.bind(this), this.dependenciesLength());
1398
+ _o.CAPABILITIES = this.bb!.createObjList<PluginCapability, PluginCapabilityT>(this.CAPABILITIES.bind(this), this.capabilitiesLength());
1399
+ _o.PROVIDER_PEER_ID = this.PROVIDER_PEER_ID();
1400
+ _o.PROVIDER_EPM_CID = this.PROVIDER_EPM_CID();
1401
+ _o.ENCRYPTED = this.ENCRYPTED();
1402
+ _o.REQUIRED_SCOPE = this.REQUIRED_SCOPE();
1403
+ _o.KEY_ID = this.KEY_ID();
1404
+ _o.MAX_GRANT_TIMEOUT_MS = this.MAX_GRANT_TIMEOUT_MS();
1405
+ _o.MIN_PERMISSIONS = this.bb!.createScalarList<string>(this.MIN_PERMISSIONS.bind(this), this.minPermissionsLength());
1406
+ _o.CREATED_AT = this.CREATED_AT();
1407
+ _o.UPDATED_AT = this.UPDATED_AT();
1408
+ _o.DOCUMENTATION_URL = this.DOCUMENTATION_URL();
1409
+ _o.CHANGELOG_URL = this.CHANGELOG_URL();
1410
+ _o.ICON_URL = this.ICON_URL();
1411
+ _o.LICENSE = this.LICENSE();
1412
+ _o.PAYMENT_MODEL = this.PAYMENT_MODEL();
1413
+ _o.PRICE_USD_CENTS = this.PRICE_USD_CENTS();
1414
+ _o.SUBSCRIPTION_PERIOD_DAYS = this.SUBSCRIPTION_PERIOD_DAYS();
1415
+ _o.ACCEPTED_PAYMENT_METHODS = this.bb!.createScalarList<string>(this.ACCEPTED_PAYMENT_METHODS.bind(this), this.acceptedPaymentMethodsLength());
1416
+ _o.LISTING_STATUS = this.LISTING_STATUS();
1417
+ _o.SIGNATURE = this.bb!.createScalarList<number>(this.SIGNATURE.bind(this), this.signatureLength());
1418
+ _o.INVOKE_SURFACES = this.bb!.createScalarList<invokeSurfaceKind>(this.INVOKE_SURFACES.bind(this), this.invokeSurfacesLength());
1419
+ _o.METHODS = this.bb!.createObjList<PLGMethodManifest, PLGMethodManifestT>(this.METHODS.bind(this), this.methodsLength());
1420
+ _o.HOST_CAPABILITIES = this.bb!.createObjList<PLGHostCapability, PLGHostCapabilityT>(this.HOST_CAPABILITIES.bind(this), this.hostCapabilitiesLength());
1421
+ _o.TIMERS = this.bb!.createObjList<PLGTimerSpec, PLGTimerSpecT>(this.TIMERS.bind(this), this.timersLength());
1422
+ _o.PROTOCOLS = this.bb!.createObjList<PLGProtocolSpec, PLGProtocolSpecT>(this.PROTOCOLS.bind(this), this.protocolsLength());
1423
+ _o.SCHEMAS_USED = this.bb!.createObjList<FlatBufferTypeRef, FlatBufferTypeRefT>(this.SCHEMAS_USED.bind(this), this.schemasUsedLength());
1424
+ _o.BUILD_ARTIFACTS = this.bb!.createObjList<PLGBuildArtifact, PLGBuildArtifactT>(this.BUILD_ARTIFACTS.bind(this), this.buildArtifactsLength());
1425
+ _o.RUNTIME_TARGETS = this.bb!.createScalarList<string>(this.RUNTIME_TARGETS.bind(this), this.runtimeTargetsLength());
1426
+ _o.ALLOWED_XPUBS = this.bb!.createScalarList<string>(this.ALLOWED_XPUBS.bind(this), this.allowedXpubsLength());
1427
+ _o.FLOW_NODES = this.bb!.createObjList<PLGFlowNode, PLGFlowNodeT>(this.FLOW_NODES.bind(this), this.flowNodesLength());
1428
+ _o.FLOW_EDGES = this.bb!.createObjList<PLGFlowEdge, PLGFlowEdgeT>(this.FLOW_EDGES.bind(this), this.flowEdgesLength());
1429
+ _o.FLOW_TRIGGERS = this.bb!.createObjList<PLGFlowTrigger, PLGFlowTriggerT>(this.FLOW_TRIGGERS.bind(this), this.flowTriggersLength());
1430
+ _o.FLOW_TRIGGER_BINDINGS = this.bb!.createObjList<PLGFlowTriggerBinding, PLGFlowTriggerBindingT>(this.FLOW_TRIGGER_BINDINGS.bind(this), this.flowTriggerBindingsLength());
1431
+ }
1432
+ }
1433
+
1434
+ export class PLGT implements flatbuffers.IGeneratedObject {
1435
+ constructor(
1436
+ public PLUGIN_ID: string|Uint8Array|null = null,
1437
+ public NAME: string|Uint8Array|null = null,
1438
+ public VERSION: string|Uint8Array|null = null,
1439
+ public DESCRIPTION: string|Uint8Array|null = null,
1440
+ public TAGLINE: string|Uint8Array|null = null,
1441
+ public PLUGIN_TYPE: pluginCategory = pluginCategory.Sensor,
1442
+ public PUBLISHER_NAME: string|Uint8Array|null = null,
1443
+ public PUBLISHER_HANDLE: string|Uint8Array|null = null,
1444
+ public PUBLISHER_URL: string|Uint8Array|null = null,
1445
+ public SUPPORT_URL: string|Uint8Array|null = null,
1446
+ public TAGS: (string)[] = [],
1447
+ public FEATURES: (string)[] = [],
1448
+ public SCREENSHOT_URLS: (string)[] = [],
1449
+ public BANNER_URL: string|Uint8Array|null = null,
1450
+ public ABI_VERSION: number = 1,
1451
+ public WASM_HASH: (number)[] = [],
1452
+ public WASM_SIZE: bigint = BigInt('0'),
1453
+ public WASM_CID: string|Uint8Array|null = null,
1454
+ public ENCRYPTED_WASM_HASH: (number)[] = [],
1455
+ public ENCRYPTED_WASM_SIZE: bigint = BigInt('0'),
1456
+ public ENTRY_FUNCTIONS: (EntryFunctionT)[] = [],
1457
+ public REQUIRED_SCHEMAS: (string)[] = [],
1458
+ public DEPENDENCIES: (PluginDependencyT)[] = [],
1459
+ public CAPABILITIES: (PluginCapabilityT)[] = [],
1460
+ public PROVIDER_PEER_ID: string|Uint8Array|null = null,
1461
+ public PROVIDER_EPM_CID: string|Uint8Array|null = null,
1462
+ public ENCRYPTED: boolean = true,
1463
+ public REQUIRED_SCOPE: string|Uint8Array|null = null,
1464
+ public KEY_ID: string|Uint8Array|null = null,
1465
+ public MAX_GRANT_TIMEOUT_MS: bigint = BigInt('0'),
1466
+ public MIN_PERMISSIONS: (string)[] = [],
1467
+ public CREATED_AT: bigint = BigInt('0'),
1468
+ public UPDATED_AT: bigint = BigInt('0'),
1469
+ public DOCUMENTATION_URL: string|Uint8Array|null = null,
1470
+ public CHANGELOG_URL: string|Uint8Array|null = null,
1471
+ public ICON_URL: string|Uint8Array|null = null,
1472
+ public LICENSE: string|Uint8Array|null = null,
1473
+ public PAYMENT_MODEL: purchaseTier = purchaseTier.Free,
1474
+ public PRICE_USD_CENTS: number = 0,
1475
+ public SUBSCRIPTION_PERIOD_DAYS: number = 0,
1476
+ public ACCEPTED_PAYMENT_METHODS: (string)[] = [],
1477
+ public LISTING_STATUS: publicationState = publicationState.Public,
1478
+ public SIGNATURE: (number)[] = [],
1479
+ public INVOKE_SURFACES: (invokeSurfaceKind)[] = [],
1480
+ public METHODS: (PLGMethodManifestT)[] = [],
1481
+ public HOST_CAPABILITIES: (PLGHostCapabilityT)[] = [],
1482
+ public TIMERS: (PLGTimerSpecT)[] = [],
1483
+ public PROTOCOLS: (PLGProtocolSpecT)[] = [],
1484
+ public SCHEMAS_USED: (FlatBufferTypeRefT)[] = [],
1485
+ public BUILD_ARTIFACTS: (PLGBuildArtifactT)[] = [],
1486
+ public RUNTIME_TARGETS: (string)[] = [],
1487
+ public ALLOWED_XPUBS: (string)[] = [],
1488
+ public FLOW_NODES: (PLGFlowNodeT)[] = [],
1489
+ public FLOW_EDGES: (PLGFlowEdgeT)[] = [],
1490
+ public FLOW_TRIGGERS: (PLGFlowTriggerT)[] = [],
1491
+ public FLOW_TRIGGER_BINDINGS: (PLGFlowTriggerBindingT)[] = []
1492
+ ){}
1493
+
1494
+
1495
+ pack(builder:flatbuffers.Builder): flatbuffers.Offset {
1496
+ const PLUGIN_ID = (this.PLUGIN_ID !== null ? builder.createString(this.PLUGIN_ID!) : 0);
1497
+ const NAME = (this.NAME !== null ? builder.createString(this.NAME!) : 0);
1498
+ const VERSION = (this.VERSION !== null ? builder.createString(this.VERSION!) : 0);
1499
+ const DESCRIPTION = (this.DESCRIPTION !== null ? builder.createString(this.DESCRIPTION!) : 0);
1500
+ const TAGLINE = (this.TAGLINE !== null ? builder.createString(this.TAGLINE!) : 0);
1501
+ const PUBLISHER_NAME = (this.PUBLISHER_NAME !== null ? builder.createString(this.PUBLISHER_NAME!) : 0);
1502
+ const PUBLISHER_HANDLE = (this.PUBLISHER_HANDLE !== null ? builder.createString(this.PUBLISHER_HANDLE!) : 0);
1503
+ const PUBLISHER_URL = (this.PUBLISHER_URL !== null ? builder.createString(this.PUBLISHER_URL!) : 0);
1504
+ const SUPPORT_URL = (this.SUPPORT_URL !== null ? builder.createString(this.SUPPORT_URL!) : 0);
1505
+ const TAGS = PLG.createTagsVector(builder, builder.createObjectOffsetList(this.TAGS));
1506
+ const FEATURES = PLG.createFeaturesVector(builder, builder.createObjectOffsetList(this.FEATURES));
1507
+ const SCREENSHOT_URLS = PLG.createScreenshotUrlsVector(builder, builder.createObjectOffsetList(this.SCREENSHOT_URLS));
1508
+ const BANNER_URL = (this.BANNER_URL !== null ? builder.createString(this.BANNER_URL!) : 0);
1509
+ const WASM_HASH = PLG.createWasmHashVector(builder, this.WASM_HASH);
1510
+ const WASM_CID = (this.WASM_CID !== null ? builder.createString(this.WASM_CID!) : 0);
1511
+ const ENCRYPTED_WASM_HASH = PLG.createEncryptedWasmHashVector(builder, this.ENCRYPTED_WASM_HASH);
1512
+ const ENTRY_FUNCTIONS = PLG.createEntryFunctionsVector(builder, builder.createObjectOffsetList(this.ENTRY_FUNCTIONS));
1513
+ const REQUIRED_SCHEMAS = PLG.createRequiredSchemasVector(builder, builder.createObjectOffsetList(this.REQUIRED_SCHEMAS));
1514
+ const DEPENDENCIES = PLG.createDependenciesVector(builder, builder.createObjectOffsetList(this.DEPENDENCIES));
1515
+ const CAPABILITIES = PLG.createCapabilitiesVector(builder, builder.createObjectOffsetList(this.CAPABILITIES));
1516
+ const PROVIDER_PEER_ID = (this.PROVIDER_PEER_ID !== null ? builder.createString(this.PROVIDER_PEER_ID!) : 0);
1517
+ const PROVIDER_EPM_CID = (this.PROVIDER_EPM_CID !== null ? builder.createString(this.PROVIDER_EPM_CID!) : 0);
1518
+ const REQUIRED_SCOPE = (this.REQUIRED_SCOPE !== null ? builder.createString(this.REQUIRED_SCOPE!) : 0);
1519
+ const KEY_ID = (this.KEY_ID !== null ? builder.createString(this.KEY_ID!) : 0);
1520
+ const MIN_PERMISSIONS = PLG.createMinPermissionsVector(builder, builder.createObjectOffsetList(this.MIN_PERMISSIONS));
1521
+ const DOCUMENTATION_URL = (this.DOCUMENTATION_URL !== null ? builder.createString(this.DOCUMENTATION_URL!) : 0);
1522
+ const CHANGELOG_URL = (this.CHANGELOG_URL !== null ? builder.createString(this.CHANGELOG_URL!) : 0);
1523
+ const ICON_URL = (this.ICON_URL !== null ? builder.createString(this.ICON_URL!) : 0);
1524
+ const LICENSE = (this.LICENSE !== null ? builder.createString(this.LICENSE!) : 0);
1525
+ const ACCEPTED_PAYMENT_METHODS = PLG.createAcceptedPaymentMethodsVector(builder, builder.createObjectOffsetList(this.ACCEPTED_PAYMENT_METHODS));
1526
+ const SIGNATURE = PLG.createSignatureVector(builder, this.SIGNATURE);
1527
+ const INVOKE_SURFACES = PLG.createInvokeSurfacesVector(builder, this.INVOKE_SURFACES);
1528
+ const METHODS = PLG.createMethodsVector(builder, builder.createObjectOffsetList(this.METHODS));
1529
+ const HOST_CAPABILITIES = PLG.createHostCapabilitiesVector(builder, builder.createObjectOffsetList(this.HOST_CAPABILITIES));
1530
+ const TIMERS = PLG.createTimersVector(builder, builder.createObjectOffsetList(this.TIMERS));
1531
+ const PROTOCOLS = PLG.createProtocolsVector(builder, builder.createObjectOffsetList(this.PROTOCOLS));
1532
+ const SCHEMAS_USED = PLG.createSchemasUsedVector(builder, builder.createObjectOffsetList(this.SCHEMAS_USED));
1533
+ const BUILD_ARTIFACTS = PLG.createBuildArtifactsVector(builder, builder.createObjectOffsetList(this.BUILD_ARTIFACTS));
1534
+ const RUNTIME_TARGETS = PLG.createRuntimeTargetsVector(builder, builder.createObjectOffsetList(this.RUNTIME_TARGETS));
1535
+ const ALLOWED_XPUBS = PLG.createAllowedXpubsVector(builder, builder.createObjectOffsetList(this.ALLOWED_XPUBS));
1536
+ const FLOW_NODES = PLG.createFlowNodesVector(builder, builder.createObjectOffsetList(this.FLOW_NODES));
1537
+ const FLOW_EDGES = PLG.createFlowEdgesVector(builder, builder.createObjectOffsetList(this.FLOW_EDGES));
1538
+ const FLOW_TRIGGERS = PLG.createFlowTriggersVector(builder, builder.createObjectOffsetList(this.FLOW_TRIGGERS));
1539
+ const FLOW_TRIGGER_BINDINGS = PLG.createFlowTriggerBindingsVector(builder, builder.createObjectOffsetList(this.FLOW_TRIGGER_BINDINGS));
1540
+
1541
+ return PLG.createPLG(builder,
1542
+ PLUGIN_ID,
1543
+ NAME,
1544
+ VERSION,
1545
+ DESCRIPTION,
1546
+ TAGLINE,
1547
+ this.PLUGIN_TYPE,
1548
+ PUBLISHER_NAME,
1549
+ PUBLISHER_HANDLE,
1550
+ PUBLISHER_URL,
1551
+ SUPPORT_URL,
1552
+ TAGS,
1553
+ FEATURES,
1554
+ SCREENSHOT_URLS,
1555
+ BANNER_URL,
1556
+ this.ABI_VERSION,
1557
+ WASM_HASH,
1558
+ this.WASM_SIZE,
1559
+ WASM_CID,
1560
+ ENCRYPTED_WASM_HASH,
1561
+ this.ENCRYPTED_WASM_SIZE,
1562
+ ENTRY_FUNCTIONS,
1563
+ REQUIRED_SCHEMAS,
1564
+ DEPENDENCIES,
1565
+ CAPABILITIES,
1566
+ PROVIDER_PEER_ID,
1567
+ PROVIDER_EPM_CID,
1568
+ this.ENCRYPTED,
1569
+ REQUIRED_SCOPE,
1570
+ KEY_ID,
1571
+ this.MAX_GRANT_TIMEOUT_MS,
1572
+ MIN_PERMISSIONS,
1573
+ this.CREATED_AT,
1574
+ this.UPDATED_AT,
1575
+ DOCUMENTATION_URL,
1576
+ CHANGELOG_URL,
1577
+ ICON_URL,
1578
+ LICENSE,
1579
+ this.PAYMENT_MODEL,
1580
+ this.PRICE_USD_CENTS,
1581
+ this.SUBSCRIPTION_PERIOD_DAYS,
1582
+ ACCEPTED_PAYMENT_METHODS,
1583
+ this.LISTING_STATUS,
1584
+ SIGNATURE,
1585
+ INVOKE_SURFACES,
1586
+ METHODS,
1587
+ HOST_CAPABILITIES,
1588
+ TIMERS,
1589
+ PROTOCOLS,
1590
+ SCHEMAS_USED,
1591
+ BUILD_ARTIFACTS,
1592
+ RUNTIME_TARGETS,
1593
+ ALLOWED_XPUBS,
1594
+ FLOW_NODES,
1595
+ FLOW_EDGES,
1596
+ FLOW_TRIGGERS,
1597
+ FLOW_TRIGGER_BINDINGS
1598
+ );
1599
+ }
1600
+ }