@toa.io/definitions 1.0.0-alpha.288

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 (378) hide show
  1. package/digest/extensions.cadence.json +1 -0
  2. package/digest/extensions.configuration.json +1 -0
  3. package/digest/extensions.exposition.json +1 -0
  4. package/digest/extensions.introspection.json +1 -0
  5. package/digest/extensions.realtime.json +1 -0
  6. package/package.json +42 -0
  7. package/readme.md +75 -0
  8. package/schemas/extensions.cadence/annotation.cos.yaml +9 -0
  9. package/schemas/extensions.cadence/declaration.cos.yaml +20 -0
  10. package/schemas/extensions.configuration/annotation.cos.yaml +29 -0
  11. package/schemas/extensions.configuration/manifest.cos.yaml +9 -0
  12. package/schemas/extensions.exposition/annotation.cos.yaml +125 -0
  13. package/schemas/extensions.exposition/call.cos.yaml +18 -0
  14. package/schemas/extensions.exposition/directive.cos.yaml +7 -0
  15. package/schemas/extensions.exposition/method.cos.yaml +23 -0
  16. package/schemas/extensions.exposition/node.cos.yaml +22 -0
  17. package/schemas/extensions.exposition/query.cos.yaml +31 -0
  18. package/schemas/extensions.exposition/querystring.cos.yaml +19 -0
  19. package/schemas/extensions.exposition/range.cos.yaml +10 -0
  20. package/schemas/extensions.exposition/route.cos.yaml +6 -0
  21. package/schemas/extensions.introspection/annotation.cos.yaml +31 -0
  22. package/schemas/extensions.introspection/declaration.cos.yaml +5 -0
  23. package/schemas/extensions.storages/annotation.cos.yaml +11 -0
  24. package/schemas/extensions.storages/cloudinary.cos.yaml +38 -0
  25. package/schemas/extensions.storages/fs.cos.yaml +13 -0
  26. package/schemas/extensions.storages/s3.cos.yaml +17 -0
  27. package/schemas/extensions.storages/spaces.cos.yaml +16 -0
  28. package/schemas/extensions.storages/test.cos.yaml +10 -0
  29. package/schemas/extensions.storages/tmp.cos.yaml +10 -0
  30. package/source/bindings.amqp/annotation.ts +26 -0
  31. package/source/bindings.amqp/context.ts +68 -0
  32. package/source/bindings.amqp/deployment.ts +14 -0
  33. package/source/bindings.amqp/index.ts +9 -0
  34. package/source/bindings.amqp/instance.ts +3 -0
  35. package/source/bindings.amqp/sources.ts +39 -0
  36. package/source/bindings.loop/index.ts +3 -0
  37. package/source/bridges.bash/const.ts +2 -0
  38. package/source/bridges.bash/define.ts +38 -0
  39. package/source/bridges.bash/index.ts +2 -0
  40. package/source/bridges.node/define.ts +69 -0
  41. package/source/bridges.node/exports.ts +175 -0
  42. package/source/bridges.node/index.ts +6 -0
  43. package/source/bridges.node/operations.ts +127 -0
  44. package/source/bridges.node/sources.ts +44 -0
  45. package/source/definition.ts +38 -0
  46. package/source/digest/generate.ts +77 -0
  47. package/source/digest/read.ts +39 -0
  48. package/source/extensions.cadence/components.ts +6 -0
  49. package/source/extensions.cadence/const.ts +31 -0
  50. package/source/extensions.cadence/context.ts +10 -0
  51. package/source/extensions.cadence/deployment.ts +37 -0
  52. package/source/extensions.cadence/index.ts +8 -0
  53. package/source/extensions.cadence/manifest.ts +64 -0
  54. package/source/extensions.cadence/schemas.ts +10 -0
  55. package/source/extensions.cadence/types.ts +41 -0
  56. package/source/extensions.configuration/components.ts +6 -0
  57. package/source/extensions.configuration/const.ts +30 -0
  58. package/source/extensions.configuration/context.ts +13 -0
  59. package/source/extensions.configuration/deployment.ts +159 -0
  60. package/source/extensions.configuration/epoch.ts +22 -0
  61. package/source/extensions.configuration/index.ts +10 -0
  62. package/source/extensions.configuration/manifest.ts +12 -0
  63. package/source/extensions.configuration/schemas.ts +9 -0
  64. package/source/extensions.exposition/Annotation.ts +91 -0
  65. package/source/extensions.exposition/components.ts +6 -0
  66. package/source/extensions.exposition/const.ts +45 -0
  67. package/source/extensions.exposition/deployment.ts +95 -0
  68. package/source/extensions.exposition/index.ts +16 -0
  69. package/source/extensions.exposition/manifest.ts +56 -0
  70. package/source/extensions.exposition/schemas.ts +16 -0
  71. package/source/extensions.exposition/shortcuts.ts +14 -0
  72. package/source/extensions.exposition/syntax/index.ts +2 -0
  73. package/source/extensions.exposition/syntax/parse.ts +171 -0
  74. package/source/extensions.exposition/syntax/types.ts +69 -0
  75. package/source/extensions.fetch/context.ts +10 -0
  76. package/source/extensions.fetch/index.ts +1 -0
  77. package/source/extensions.introspection/annotation.ts +87 -0
  78. package/source/extensions.introspection/components.ts +13 -0
  79. package/source/extensions.introspection/const.ts +46 -0
  80. package/source/extensions.introspection/deployment.ts +48 -0
  81. package/source/extensions.introspection/index.ts +6 -0
  82. package/source/extensions.introspection/manifest.ts +18 -0
  83. package/source/extensions.introspection/schemas.ts +12 -0
  84. package/source/extensions.realtime/components.ts +5 -0
  85. package/source/extensions.realtime/deployment.ts +89 -0
  86. package/source/extensions.realtime/index.ts +4 -0
  87. package/source/extensions.stash/context.ts +10 -0
  88. package/source/extensions.stash/deployment.ts +22 -0
  89. package/source/extensions.stash/index.ts +2 -0
  90. package/source/extensions.state/context.ts +9 -0
  91. package/source/extensions.state/index.ts +1 -0
  92. package/source/extensions.storages/Annotation.ts +57 -0
  93. package/source/extensions.storages/context.ts +14 -0
  94. package/source/extensions.storages/deployment.ts +91 -0
  95. package/source/extensions.storages/index.ts +9 -0
  96. package/source/extensions.storages/manifest.ts +7 -0
  97. package/source/extensions.storages/schemas.ts +15 -0
  98. package/source/extensions.storages/secrets.ts +22 -0
  99. package/source/extensions.telemetry/const.ts +6 -0
  100. package/source/extensions.telemetry/context.ts +11 -0
  101. package/source/extensions.telemetry/deployment.ts +91 -0
  102. package/source/extensions.telemetry/index.ts +5 -0
  103. package/source/extensions.telemetry/ready.ts +33 -0
  104. package/source/index.ts +2 -0
  105. package/source/storages.mongodb/deployment.ts +22 -0
  106. package/source/storages.mongodb/index.ts +1 -0
  107. package/source/version.ts +10 -0
  108. package/transpiled/bindings.amqp/annotation.d.ts +10 -0
  109. package/transpiled/bindings.amqp/annotation.js +16 -0
  110. package/transpiled/bindings.amqp/annotation.js.map +1 -0
  111. package/transpiled/bindings.amqp/annotation.test.d.ts +1 -0
  112. package/transpiled/bindings.amqp/annotation.test.js +36 -0
  113. package/transpiled/bindings.amqp/annotation.test.js.map +1 -0
  114. package/transpiled/bindings.amqp/context.d.ts +7 -0
  115. package/transpiled/bindings.amqp/context.js +47 -0
  116. package/transpiled/bindings.amqp/context.js.map +1 -0
  117. package/transpiled/bindings.amqp/deployment.d.ts +4 -0
  118. package/transpiled/bindings.amqp/deployment.js +11 -0
  119. package/transpiled/bindings.amqp/deployment.js.map +1 -0
  120. package/transpiled/bindings.amqp/index.d.ts +6 -0
  121. package/transpiled/bindings.amqp/index.js +5 -0
  122. package/transpiled/bindings.amqp/index.js.map +1 -0
  123. package/transpiled/bindings.amqp/instance.d.ts +2 -0
  124. package/transpiled/bindings.amqp/instance.js +2 -0
  125. package/transpiled/bindings.amqp/instance.js.map +1 -0
  126. package/transpiled/bindings.amqp/properties.test.d.ts +1 -0
  127. package/transpiled/bindings.amqp/properties.test.js +7 -0
  128. package/transpiled/bindings.amqp/properties.test.js.map +1 -0
  129. package/transpiled/bindings.amqp/sources.d.ts +7 -0
  130. package/transpiled/bindings.amqp/sources.js +27 -0
  131. package/transpiled/bindings.amqp/sources.js.map +1 -0
  132. package/transpiled/bindings.loop/index.d.ts +2 -0
  133. package/transpiled/bindings.loop/index.js +2 -0
  134. package/transpiled/bindings.loop/index.js.map +1 -0
  135. package/transpiled/bindings.loop/properties.test.d.ts +1 -0
  136. package/transpiled/bindings.loop/properties.test.js +7 -0
  137. package/transpiled/bindings.loop/properties.test.js.map +1 -0
  138. package/transpiled/bridges.bash/const.d.ts +2 -0
  139. package/transpiled/bridges.bash/const.js +3 -0
  140. package/transpiled/bridges.bash/const.js.map +1 -0
  141. package/transpiled/bridges.bash/define.d.ts +3 -0
  142. package/transpiled/bridges.bash/define.js +25 -0
  143. package/transpiled/bridges.bash/define.js.map +1 -0
  144. package/transpiled/bridges.bash/index.d.ts +2 -0
  145. package/transpiled/bridges.bash/index.js +3 -0
  146. package/transpiled/bridges.bash/index.js.map +1 -0
  147. package/transpiled/bridges.node/define.d.ts +18 -0
  148. package/transpiled/bridges.node/define.js +46 -0
  149. package/transpiled/bridges.node/define.js.map +1 -0
  150. package/transpiled/bridges.node/exports.d.ts +16 -0
  151. package/transpiled/bridges.node/exports.js +134 -0
  152. package/transpiled/bridges.node/exports.js.map +1 -0
  153. package/transpiled/bridges.node/exports.test.d.ts +1 -0
  154. package/transpiled/bridges.node/exports.test.js +88 -0
  155. package/transpiled/bridges.node/exports.test.js.map +1 -0
  156. package/transpiled/bridges.node/index.d.ts +5 -0
  157. package/transpiled/bridges.node/index.js +4 -0
  158. package/transpiled/bridges.node/index.js.map +1 -0
  159. package/transpiled/bridges.node/operations.d.ts +13 -0
  160. package/transpiled/bridges.node/operations.js +96 -0
  161. package/transpiled/bridges.node/operations.js.map +1 -0
  162. package/transpiled/bridges.node/operations.test.d.ts +1 -0
  163. package/transpiled/bridges.node/operations.test.js +108 -0
  164. package/transpiled/bridges.node/operations.test.js.map +1 -0
  165. package/transpiled/bridges.node/sources.d.ts +7 -0
  166. package/transpiled/bridges.node/sources.js +36 -0
  167. package/transpiled/bridges.node/sources.js.map +1 -0
  168. package/transpiled/definition.d.ts +7 -0
  169. package/transpiled/definition.js +34 -0
  170. package/transpiled/definition.js.map +1 -0
  171. package/transpiled/digest/generate.d.ts +1 -0
  172. package/transpiled/digest/generate.js +60 -0
  173. package/transpiled/digest/generate.js.map +1 -0
  174. package/transpiled/digest/read.d.ts +16 -0
  175. package/transpiled/digest/read.js +22 -0
  176. package/transpiled/digest/read.js.map +1 -0
  177. package/transpiled/extensions.cadence/components.d.ts +3 -0
  178. package/transpiled/extensions.cadence/components.js +6 -0
  179. package/transpiled/extensions.cadence/components.js.map +1 -0
  180. package/transpiled/extensions.cadence/const.d.ts +21 -0
  181. package/transpiled/extensions.cadence/const.js +26 -0
  182. package/transpiled/extensions.cadence/const.js.map +1 -0
  183. package/transpiled/extensions.cadence/context.d.ts +3 -0
  184. package/transpiled/extensions.cadence/context.js +9 -0
  185. package/transpiled/extensions.cadence/context.js.map +1 -0
  186. package/transpiled/extensions.cadence/deployment.d.ts +9 -0
  187. package/transpiled/extensions.cadence/deployment.js +28 -0
  188. package/transpiled/extensions.cadence/deployment.js.map +1 -0
  189. package/transpiled/extensions.cadence/index.d.ts +7 -0
  190. package/transpiled/extensions.cadence/index.js +7 -0
  191. package/transpiled/extensions.cadence/index.js.map +1 -0
  192. package/transpiled/extensions.cadence/manifest.d.ts +11 -0
  193. package/transpiled/extensions.cadence/manifest.js +42 -0
  194. package/transpiled/extensions.cadence/manifest.js.map +1 -0
  195. package/transpiled/extensions.cadence/manifest.test.d.ts +1 -0
  196. package/transpiled/extensions.cadence/manifest.test.js +41 -0
  197. package/transpiled/extensions.cadence/manifest.test.js.map +1 -0
  198. package/transpiled/extensions.cadence/schemas.d.ts +4 -0
  199. package/transpiled/extensions.cadence/schemas.js +7 -0
  200. package/transpiled/extensions.cadence/schemas.js.map +1 -0
  201. package/transpiled/extensions.cadence/types.d.ts +34 -0
  202. package/transpiled/extensions.cadence/types.js +2 -0
  203. package/transpiled/extensions.cadence/types.js.map +1 -0
  204. package/transpiled/extensions.configuration/components.d.ts +3 -0
  205. package/transpiled/extensions.configuration/components.js +6 -0
  206. package/transpiled/extensions.configuration/components.js.map +1 -0
  207. package/transpiled/extensions.configuration/const.d.ts +18 -0
  208. package/transpiled/extensions.configuration/const.js +22 -0
  209. package/transpiled/extensions.configuration/const.js.map +1 -0
  210. package/transpiled/extensions.configuration/context.d.ts +4 -0
  211. package/transpiled/extensions.configuration/context.js +9 -0
  212. package/transpiled/extensions.configuration/context.js.map +1 -0
  213. package/transpiled/extensions.configuration/deployment.d.ts +17 -0
  214. package/transpiled/extensions.configuration/deployment.js +106 -0
  215. package/transpiled/extensions.configuration/deployment.js.map +1 -0
  216. package/transpiled/extensions.configuration/deployment.test.d.ts +1 -0
  217. package/transpiled/extensions.configuration/deployment.test.js +74 -0
  218. package/transpiled/extensions.configuration/deployment.test.js.map +1 -0
  219. package/transpiled/extensions.configuration/epoch.d.ts +2 -0
  220. package/transpiled/extensions.configuration/epoch.js +19 -0
  221. package/transpiled/extensions.configuration/epoch.js.map +1 -0
  222. package/transpiled/extensions.configuration/index.d.ts +9 -0
  223. package/transpiled/extensions.configuration/index.js +8 -0
  224. package/transpiled/extensions.configuration/index.js.map +1 -0
  225. package/transpiled/extensions.configuration/manifest.d.ts +5 -0
  226. package/transpiled/extensions.configuration/manifest.js +6 -0
  227. package/transpiled/extensions.configuration/manifest.js.map +1 -0
  228. package/transpiled/extensions.configuration/manifest.test.d.ts +1 -0
  229. package/transpiled/extensions.configuration/manifest.test.js +14 -0
  230. package/transpiled/extensions.configuration/manifest.test.js.map +1 -0
  231. package/transpiled/extensions.configuration/schemas.d.ts +3 -0
  232. package/transpiled/extensions.configuration/schemas.js +7 -0
  233. package/transpiled/extensions.configuration/schemas.js.map +1 -0
  234. package/transpiled/extensions.exposition/Annotation.d.ts +71 -0
  235. package/transpiled/extensions.exposition/Annotation.js +2 -0
  236. package/transpiled/extensions.exposition/Annotation.js.map +1 -0
  237. package/transpiled/extensions.exposition/components.d.ts +3 -0
  238. package/transpiled/extensions.exposition/components.js +6 -0
  239. package/transpiled/extensions.exposition/components.js.map +1 -0
  240. package/transpiled/extensions.exposition/const.d.ts +36 -0
  241. package/transpiled/extensions.exposition/const.js +37 -0
  242. package/transpiled/extensions.exposition/const.js.map +1 -0
  243. package/transpiled/extensions.exposition/deployment.d.ts +6 -0
  244. package/transpiled/extensions.exposition/deployment.js +75 -0
  245. package/transpiled/extensions.exposition/deployment.js.map +1 -0
  246. package/transpiled/extensions.exposition/index.d.ts +8 -0
  247. package/transpiled/extensions.exposition/index.js +8 -0
  248. package/transpiled/extensions.exposition/index.js.map +1 -0
  249. package/transpiled/extensions.exposition/manifest.d.ts +3 -0
  250. package/transpiled/extensions.exposition/manifest.js +39 -0
  251. package/transpiled/extensions.exposition/manifest.js.map +1 -0
  252. package/transpiled/extensions.exposition/manifest.test.d.ts +1 -0
  253. package/transpiled/extensions.exposition/manifest.test.js +38 -0
  254. package/transpiled/extensions.exposition/manifest.test.js.map +1 -0
  255. package/transpiled/extensions.exposition/schemas.d.ts +7 -0
  256. package/transpiled/extensions.exposition/schemas.js +10 -0
  257. package/transpiled/extensions.exposition/schemas.js.map +1 -0
  258. package/transpiled/extensions.exposition/schemas.test.d.ts +1 -0
  259. package/transpiled/extensions.exposition/schemas.test.js +22 -0
  260. package/transpiled/extensions.exposition/schemas.test.js.map +1 -0
  261. package/transpiled/extensions.exposition/shortcuts.d.ts +3 -0
  262. package/transpiled/extensions.exposition/shortcuts.js +13 -0
  263. package/transpiled/extensions.exposition/shortcuts.js.map +1 -0
  264. package/transpiled/extensions.exposition/syntax/index.d.ts +2 -0
  265. package/transpiled/extensions.exposition/syntax/index.js +3 -0
  266. package/transpiled/extensions.exposition/syntax/index.js.map +1 -0
  267. package/transpiled/extensions.exposition/syntax/parse.d.ts +4 -0
  268. package/transpiled/extensions.exposition/syntax/parse.js +112 -0
  269. package/transpiled/extensions.exposition/syntax/parse.js.map +1 -0
  270. package/transpiled/extensions.exposition/syntax/parse.test.d.ts +1 -0
  271. package/transpiled/extensions.exposition/syntax/parse.test.js +156 -0
  272. package/transpiled/extensions.exposition/syntax/parse.test.js.map +1 -0
  273. package/transpiled/extensions.exposition/syntax/types.d.ts +52 -0
  274. package/transpiled/extensions.exposition/syntax/types.js +11 -0
  275. package/transpiled/extensions.exposition/syntax/types.js.map +1 -0
  276. package/transpiled/extensions.fetch/context.d.ts +3 -0
  277. package/transpiled/extensions.fetch/context.js +9 -0
  278. package/transpiled/extensions.fetch/context.js.map +1 -0
  279. package/transpiled/extensions.fetch/index.d.ts +1 -0
  280. package/transpiled/extensions.fetch/index.js +2 -0
  281. package/transpiled/extensions.fetch/index.js.map +1 -0
  282. package/transpiled/extensions.introspection/annotation.d.ts +40 -0
  283. package/transpiled/extensions.introspection/annotation.js +39 -0
  284. package/transpiled/extensions.introspection/annotation.js.map +1 -0
  285. package/transpiled/extensions.introspection/components.d.ts +8 -0
  286. package/transpiled/extensions.introspection/components.js +12 -0
  287. package/transpiled/extensions.introspection/components.js.map +1 -0
  288. package/transpiled/extensions.introspection/const.d.ts +30 -0
  289. package/transpiled/extensions.introspection/const.js +35 -0
  290. package/transpiled/extensions.introspection/const.js.map +1 -0
  291. package/transpiled/extensions.introspection/deployment.d.ts +14 -0
  292. package/transpiled/extensions.introspection/deployment.js +41 -0
  293. package/transpiled/extensions.introspection/deployment.js.map +1 -0
  294. package/transpiled/extensions.introspection/index.d.ts +6 -0
  295. package/transpiled/extensions.introspection/index.js +7 -0
  296. package/transpiled/extensions.introspection/index.js.map +1 -0
  297. package/transpiled/extensions.introspection/manifest.d.ts +9 -0
  298. package/transpiled/extensions.introspection/manifest.js +16 -0
  299. package/transpiled/extensions.introspection/manifest.js.map +1 -0
  300. package/transpiled/extensions.introspection/schemas.d.ts +4 -0
  301. package/transpiled/extensions.introspection/schemas.js +7 -0
  302. package/transpiled/extensions.introspection/schemas.js.map +1 -0
  303. package/transpiled/extensions.realtime/components.d.ts +2 -0
  304. package/transpiled/extensions.realtime/components.js +5 -0
  305. package/transpiled/extensions.realtime/components.js.map +1 -0
  306. package/transpiled/extensions.realtime/deployment.d.ts +22 -0
  307. package/transpiled/extensions.realtime/deployment.js +53 -0
  308. package/transpiled/extensions.realtime/deployment.js.map +1 -0
  309. package/transpiled/extensions.realtime/index.d.ts +3 -0
  310. package/transpiled/extensions.realtime/index.js +3 -0
  311. package/transpiled/extensions.realtime/index.js.map +1 -0
  312. package/transpiled/extensions.stash/context.d.ts +3 -0
  313. package/transpiled/extensions.stash/context.js +9 -0
  314. package/transpiled/extensions.stash/context.js.map +1 -0
  315. package/transpiled/extensions.stash/deployment.d.ts +5 -0
  316. package/transpiled/extensions.stash/deployment.js +14 -0
  317. package/transpiled/extensions.stash/deployment.js.map +1 -0
  318. package/transpiled/extensions.stash/index.d.ts +2 -0
  319. package/transpiled/extensions.stash/index.js +3 -0
  320. package/transpiled/extensions.stash/index.js.map +1 -0
  321. package/transpiled/extensions.state/context.d.ts +6 -0
  322. package/transpiled/extensions.state/context.js +8 -0
  323. package/transpiled/extensions.state/context.js.map +1 -0
  324. package/transpiled/extensions.state/index.d.ts +1 -0
  325. package/transpiled/extensions.state/index.js +2 -0
  326. package/transpiled/extensions.state/index.js.map +1 -0
  327. package/transpiled/extensions.storages/Annotation.d.ts +8 -0
  328. package/transpiled/extensions.storages/Annotation.js +31 -0
  329. package/transpiled/extensions.storages/Annotation.js.map +1 -0
  330. package/transpiled/extensions.storages/context.d.ts +3 -0
  331. package/transpiled/extensions.storages/context.js +12 -0
  332. package/transpiled/extensions.storages/context.js.map +1 -0
  333. package/transpiled/extensions.storages/deployment.d.ts +5 -0
  334. package/transpiled/extensions.storages/deployment.js +64 -0
  335. package/transpiled/extensions.storages/deployment.js.map +1 -0
  336. package/transpiled/extensions.storages/index.d.ts +8 -0
  337. package/transpiled/extensions.storages/index.js +7 -0
  338. package/transpiled/extensions.storages/index.js.map +1 -0
  339. package/transpiled/extensions.storages/manifest.d.ts +1 -0
  340. package/transpiled/extensions.storages/manifest.js +8 -0
  341. package/transpiled/extensions.storages/manifest.js.map +1 -0
  342. package/transpiled/extensions.storages/schemas.d.ts +9 -0
  343. package/transpiled/extensions.storages/schemas.js +12 -0
  344. package/transpiled/extensions.storages/schemas.js.map +1 -0
  345. package/transpiled/extensions.storages/schemas.test.d.ts +1 -0
  346. package/transpiled/extensions.storages/schemas.test.js +59 -0
  347. package/transpiled/extensions.storages/schemas.test.js.map +1 -0
  348. package/transpiled/extensions.storages/secrets.d.ts +10 -0
  349. package/transpiled/extensions.storages/secrets.js +16 -0
  350. package/transpiled/extensions.storages/secrets.js.map +1 -0
  351. package/transpiled/extensions.telemetry/const.d.ts +4 -0
  352. package/transpiled/extensions.telemetry/const.js +6 -0
  353. package/transpiled/extensions.telemetry/const.js.map +1 -0
  354. package/transpiled/extensions.telemetry/context.d.ts +3 -0
  355. package/transpiled/extensions.telemetry/context.js +9 -0
  356. package/transpiled/extensions.telemetry/context.js.map +1 -0
  357. package/transpiled/extensions.telemetry/deployment.d.ts +18 -0
  358. package/transpiled/extensions.telemetry/deployment.js +49 -0
  359. package/transpiled/extensions.telemetry/deployment.js.map +1 -0
  360. package/transpiled/extensions.telemetry/index.d.ts +5 -0
  361. package/transpiled/extensions.telemetry/index.js +5 -0
  362. package/transpiled/extensions.telemetry/index.js.map +1 -0
  363. package/transpiled/extensions.telemetry/ready.d.ts +14 -0
  364. package/transpiled/extensions.telemetry/ready.js +16 -0
  365. package/transpiled/extensions.telemetry/ready.js.map +1 -0
  366. package/transpiled/index.d.ts +2 -0
  367. package/transpiled/index.js +3 -0
  368. package/transpiled/index.js.map +1 -0
  369. package/transpiled/storages.mongodb/deployment.d.ts +5 -0
  370. package/transpiled/storages.mongodb/deployment.js +14 -0
  371. package/transpiled/storages.mongodb/deployment.js.map +1 -0
  372. package/transpiled/storages.mongodb/index.d.ts +1 -0
  373. package/transpiled/storages.mongodb/index.js +2 -0
  374. package/transpiled/storages.mongodb/index.js.map +1 -0
  375. package/transpiled/version.d.ts +5 -0
  376. package/transpiled/version.js +8 -0
  377. package/transpiled/version.js.map +1 -0
  378. package/tsconfig.json +10 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse.test.js","sourceRoot":"","sources":["../../../source/extensions.exposition/syntax/parse.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,MAAM,MAAM,oBAAoB,CAAA;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;IACtB,EAAE,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;QAClC,MAAM,WAAW,GAAG;YAClB,GAAG,EAAE,EAAE;YACP,MAAM,EAAE,EAAE;SACX,CAAA;QAED,MAAM,IAAI,GAAG,KAAK,CAAC,WAAW,CAAC,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sB,CAAC,KAAK,EAAE;QACnC,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;QACjC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;KACnC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -0,0 +1,52 @@
1
+ export interface Node {
2
+ protected?: boolean;
3
+ isolated?: boolean;
4
+ forward?: string;
5
+ routes: Route[];
6
+ methods: Method[];
7
+ directives: Directive[];
8
+ }
9
+ export interface Route {
10
+ path: string;
11
+ node: Node;
12
+ }
13
+ export interface Method {
14
+ verb: string;
15
+ mapping?: Mapping;
16
+ directives: Directive[];
17
+ }
18
+ export interface Directive {
19
+ family: string;
20
+ name: string;
21
+ value: any;
22
+ }
23
+ export interface Mapping {
24
+ namespace?: string;
25
+ component?: string;
26
+ endpoint: string;
27
+ query?: Query | null;
28
+ /**
29
+ * Whether the operation this maps to answers a page of a collection, and so takes the
30
+ * `omit` and `limit` a page is taken by. Written where the component's manifest is read,
31
+ * beside `namespace` and `component`, and not declared.
32
+ */
33
+ paged?: boolean;
34
+ }
35
+ export interface Query {
36
+ id?: string;
37
+ criteria?: string;
38
+ search?: boolean;
39
+ sample?: number;
40
+ sort?: string;
41
+ omit?: Range;
42
+ limit?: Range;
43
+ selectors?: string[];
44
+ projection?: string[];
45
+ parameters?: string[];
46
+ deleted?: boolean;
47
+ }
48
+ export interface Range {
49
+ value?: number;
50
+ range: [number, number];
51
+ }
52
+ export declare const verbs: Set<string>;
@@ -0,0 +1,11 @@
1
+ export const verbs = new Set([
2
+ 'GET',
3
+ 'HEAD',
4
+ 'POST',
5
+ 'PUT',
6
+ 'PATCH',
7
+ 'DELETE',
8
+ 'LOCK',
9
+ 'UNLOCK'
10
+ ]);
11
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../source/extensions.exposition/syntax/types.ts"],"names":[],"mappings":"AA2DA,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAS;IACnC,KAAK;IACL,MAAM;IACN,MAAM;IACN,KAAK;IACL,OAAO;IACP,QAAQ;IACR,MAAM;IACN,QAAQ;CACT,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Contribution } from '@toa.io/core/types';
2
+ /** What this extension puts on the context of every component, being declared for all. */
3
+ export declare function context(): Contribution;
@@ -0,0 +1,9 @@
1
+ /** What this extension puts on the context of every component, being declared for all. */
2
+ export function context() {
3
+ return {
4
+ name: 'fetch',
5
+ type: '(input: string | URL | Request, init?: FetchInit) => Promise<Response>',
6
+ imports: { '@toa.io/extensions.fetch': ['FetchInit'] }
7
+ };
8
+ }
9
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../source/extensions.fetch/context.ts"],"names":[],"mappings":"AAEA,0FAA0F;AAC1F,MAAM,UAAU,OAAO;IACrB,OAAO;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,wEAAwE;QAC9E,OAAO,EAAE,EAAE,0BAA0B,EAAE,CAAC,WAAW,CAAC,EAAE;KACvD,CAAA;AACH,CAAC"}
@@ -0,0 +1 @@
1
+ export { context } from './context.js';
@@ -0,0 +1,2 @@
1
+ export { context } from './context.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/extensions.fetch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,40 @@
1
+ import type { Resources } from '@toa.io/operations';
2
+ /** `context.toa.yaml` */
3
+ export type Annotation = false | {
4
+ /** Capture real payloads. Off by default: this is production data. */
5
+ samples?: boolean;
6
+ /** Flush period, seconds. */
7
+ interval?: number;
8
+ /** Flush as soon as this many distinct edges are buffered. */
9
+ threshold?: number;
10
+ /** Publish the UI. On by default. */
11
+ ui?: boolean;
12
+ resources?: Resources;
13
+ };
14
+ /** `manifest.toa.yaml` */
15
+ export type Declaration = false | {
16
+ samples?: boolean;
17
+ };
18
+ /** What `deployment()` encodes into the environment. */
19
+ export interface Options {
20
+ samples: boolean;
21
+ interval: number;
22
+ threshold: number;
23
+ ui: boolean;
24
+ }
25
+ /** The effective per-component decision. */
26
+ export interface Settings {
27
+ enabled: boolean;
28
+ samples: boolean;
29
+ }
30
+ export declare const DISABLED: Settings;
31
+ export declare function options(annotation?: Annotation): Options;
32
+ /** Reads what `deployment()` has put into the environment. */
33
+ export declare function environment(): Options | null;
34
+ export declare function component(declaration: Declaration | null | undefined): Declaration;
35
+ /**
36
+ * Both levels must agree, and either can veto: the context is the environment
37
+ * ceiling, the manifest is the component's own call. A component handling
38
+ * personal data opts out for good, and no context flag overrides that.
39
+ */
40
+ export declare function settings(namespace: string, declaration: Declaration, opts: Options | null): Settings;
@@ -0,0 +1,39 @@
1
+ import { DEFAULT_INTERVAL, DEFAULT_THRESHOLD, DENIED, ENV } from './const.js';
2
+ import { environment as variables } from '@toa.io/generic';
3
+ export const DISABLED = { enabled: false, samples: false };
4
+ export function options(annotation) {
5
+ const declaration = annotation === undefined || annotation === false ? {} : annotation;
6
+ return {
7
+ samples: declaration.samples === true,
8
+ interval: declaration.interval ?? DEFAULT_INTERVAL,
9
+ threshold: declaration.threshold ?? DEFAULT_THRESHOLD,
10
+ ui: declaration.ui !== false
11
+ };
12
+ }
13
+ /** Reads what `deployment()` has put into the environment. */
14
+ export function environment() {
15
+ const value = variables.get(ENV);
16
+ if (value === undefined)
17
+ return null;
18
+ return JSON.parse(value);
19
+ }
20
+ export function component(declaration) {
21
+ if (declaration === false)
22
+ return false;
23
+ // predefined extensions arrive as null for components that say nothing
24
+ if (declaration === null || declaration === undefined)
25
+ return {};
26
+ return declaration.samples === undefined ? {} : { samples: declaration.samples };
27
+ }
28
+ /**
29
+ * Both levels must agree, and either can veto: the context is the environment
30
+ * ceiling, the manifest is the component's own call. A component handling
31
+ * personal data opts out for good, and no context flag overrides that.
32
+ */
33
+ export function settings(namespace, declaration, opts) {
34
+ if (opts === null || declaration === false)
35
+ return DISABLED;
36
+ const samples = opts.samples && declaration.samples !== false && !DENIED.has(namespace);
37
+ return { enabled: true, samples };
38
+ }
39
+ //# sourceMappingURL=annotation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"annotation.js","sourceRoot":"","sources":["../../source/extensions.introspection/annotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAC7E,OAAO,EAAE,WAAW,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAuC1D,MAAM,CAAC,MAAM,QAAQ,GAAa,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA;AAEpE,MAAM,UAAU,OAAO,CAAC,UAAuB;IAC7C,MAAM,WAAW,GAAG,UAAU,KAAK,SAAS,IAAI,UAAU,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAA;IAEtF,OAAO;QACL,OAAO,EAAE,WAAW,CAAC,OAAO,KAAK,IAAI;QACrC,QAAQ,EAAE,WAAW,CAAC,QAAQ,IAAI,gBAAgB;QAClD,SAAS,EAAE,WAAW,CAAC,SAAS,IAAI,iBAAiB;QACrD,EAAE,EAAE,WAAW,CAAC,EAAE,KAAK,KAAK;KAC7B,CAAA;AACH,CAAC;AAED,8DAA8D;AAC9D,MAAM,UAAU,WAAW;IACzB,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAEhC,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,IAAI,CAAA;IAEpC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAY,CAAA;AACrC,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,WAA2C;IACnE,IAAI,WAAW,KAAK,KAAK;QAAE,OAAO,KAAK,CAAA;IAEvC,uEAAuE;IACvE,IAAI,WAAW,KAAK,IAAI,IAAI,WAAW,KAAK,SAAS;QAAE,OAAO,EAAE,CAAA;IAEhE,OAAO,WAAW,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,OAAO,EAAE,CAAA;AAClF,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CACtB,SAAiB,EACjB,WAAwB,EACxB,IAAoB;IAEpB,IAAI,IAAI,KAAK,IAAI,IAAI,WAAW,KAAK,KAAK;QAAE,OAAO,QAAQ,CAAA;IAE3D,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,WAAW,CAAC,OAAO,KAAK,KAAK,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;IAEvF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;AACnC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type Components } from '../digest/read.js';
2
+ import type { Annotation } from './annotation.js';
3
+ /**
4
+ * The extension is predefined, so an application that turns introspection off
5
+ * must not end up with the explorer components — nor with the exposition
6
+ * dependency they bring in.
7
+ */
8
+ export declare function components(annotation?: Annotation): Components;
@@ -0,0 +1,12 @@
1
+ import { components as digest } from '../digest/read.js';
2
+ /**
3
+ * The extension is predefined, so an application that turns introspection off
4
+ * must not end up with the explorer components — nor with the exposition
5
+ * dependency they bring in.
6
+ */
7
+ export function components(annotation) {
8
+ if (annotation === false)
9
+ return { labels: [], manifests: [] };
10
+ return digest('extensions.introspection');
11
+ }
12
+ //# sourceMappingURL=components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.js","sourceRoot":"","sources":["../../source/extensions.introspection/components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,MAAM,EAAmB,MAAM,mBAAmB,CAAA;AAGzE;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,UAAuB;IAChD,IAAI,UAAU,KAAK,KAAK;QAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,CAAA;IAE9D,OAAO,MAAM,CAAC,0BAA0B,CAAC,CAAA;AAC3C,CAAC"}
@@ -0,0 +1,30 @@
1
+ export declare const ID = "introspection";
2
+ export declare const NAMESPACE = "introspection";
3
+ export declare const ENV = "TOA_INTROSPECTION";
4
+ export declare const NODES = "nodes";
5
+ export declare const EDGES = "edges";
6
+ /** Where the UI is mounted; `/introspection/*` belongs to the components' own API. */
7
+ export declare const UI_PATH = "/.introspection";
8
+ export declare const UI_PORT = 8002;
9
+ /**
10
+ * The port the UI is served on. `UI_PORT` is what a deployment publishes and what the chart
11
+ * renders; the variable is for a machine that runs more than one Toa process — a Toa checkout
12
+ * beside an application, or two applications — where one of them has to give it up.
13
+ */
14
+ export declare const UI_PORT_ENV = "TOA_INTROSPECTION_UI_PORT";
15
+ export declare function uiPort(): number;
16
+ export declare const DEFAULT_INTERVAL = 300;
17
+ export declare const DEFAULT_THRESHOLD = 1024;
18
+ /** How often a component re-announces its description, so that removed components fade out. */
19
+ export declare const ANNOUNCE_INTERVAL = 1800000;
20
+ /**
21
+ * `source` arrives over the wire, so the number of distinct edges a process
22
+ * can hold must be bounded regardless of what peers send.
23
+ */
24
+ export declare const MAX_EDGES = 4096;
25
+ /** Never capture samples for these namespaces, whatever the annotation says. */
26
+ export declare const DENIED: Set<string>;
27
+ /** Keys never stored in a sample, even when sampling is on. */
28
+ export declare const REDACTED: RegExp;
29
+ /** Serialized size cap of a single sample. */
30
+ export declare const SAMPLE_LIMIT = 4096;
@@ -0,0 +1,35 @@
1
+ import { environment } from '@toa.io/generic';
2
+ export const ID = 'introspection';
3
+ export const NAMESPACE = 'introspection';
4
+ export const ENV = 'TOA_INTROSPECTION';
5
+ export const NODES = 'nodes';
6
+ export const EDGES = 'edges';
7
+ /** Where the UI is mounted; `/introspection/*` belongs to the components' own API. */
8
+ export const UI_PATH = '/.introspection';
9
+ export const UI_PORT = 8002;
10
+ /**
11
+ * The port the UI is served on. `UI_PORT` is what a deployment publishes and what the chart
12
+ * renders; the variable is for a machine that runs more than one Toa process — a Toa checkout
13
+ * beside an application, or two applications — where one of them has to give it up.
14
+ */
15
+ export const UI_PORT_ENV = 'TOA_INTROSPECTION_UI_PORT';
16
+ export function uiPort() {
17
+ const value = environment.get(UI_PORT_ENV);
18
+ return value === undefined ? UI_PORT : Number(value);
19
+ }
20
+ export const DEFAULT_INTERVAL = 300;
21
+ export const DEFAULT_THRESHOLD = 1024;
22
+ /** How often a component re-announces its description, so that removed components fade out. */
23
+ export const ANNOUNCE_INTERVAL = 1_800_000;
24
+ /**
25
+ * `source` arrives over the wire, so the number of distinct edges a process
26
+ * can hold must be bounded regardless of what peers send.
27
+ */
28
+ export const MAX_EDGES = 4096;
29
+ /** Never capture samples for these namespaces, whatever the annotation says. */
30
+ export const DENIED = new Set(['identity', 'introspection']);
31
+ /** Keys never stored in a sample, even when sampling is on. */
32
+ export const REDACTED = /^(password|secret|token|credentials?|key|authorization|cookie)$/i;
33
+ /** Serialized size cap of a single sample. */
34
+ export const SAMPLE_LIMIT = 4096;
35
+ //# sourceMappingURL=const.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"const.js","sourceRoot":"","sources":["../../source/extensions.introspection/const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE7C,MAAM,CAAC,MAAM,EAAE,GAAG,eAAe,CAAA;AACjC,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAA;AAExC,MAAM,CAAC,MAAM,GAAG,GAAG,mBAAmB,CAAA;AAEtC,MAAM,CAAC,MAAM,KAAK,GAAG,OAAO,CAAA;AAC5B,MAAM,CAAC,MAAM,KAAK,GAAG,OAAO,CAAA;AAE5B,sFAAsF;AACtF,MAAM,CAAC,MAAM,OAAO,GAAG,iBAAiB,CAAA;AACxC,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,CAAA;AAE3B;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,2BAA2B,CAAA;AACtD,MAAM,UAAU,MAAM;IACpB,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;IAE1C,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AACtD,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;AACnC,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,CAAA;AAErC,+FAA+F;AAC/F,MAAM,CAAC,MAAM,iBAAiB,GAAG,SAAS,CAAA;AAE1C;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAA;AAE7B,gFAAgF;AAChF,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC,CAAA;AAE5D,+DAA+D;AAC/D,MAAM,CAAC,MAAM,QAAQ,GAAG,kEAAkE,CAAA;AAE1F,8CAA8C;AAC9C,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { Annotation } from './annotation.js';
2
+ import type { Dependency, Instances } from '@toa.io/operations';
3
+ /** Where Toa's release publishes this service's image. An application takes it
4
+ * instead of building one when its context says `registry.services: published`. */
5
+ export declare const image = "ghcr.io/toa-io/extension-introspection-explorer";
6
+ export declare const standalone = true;
7
+ /**
8
+ * The explorer hosts the introspection components, exactly as the exposition
9
+ * gateway hosts the identity ones. Collection is on unless the context says
10
+ * `introspection: false`, and the environment variable is emitted together
11
+ * with the service — never on its own, or tasks would pile up in a queue
12
+ * nothing consumes.
13
+ */
14
+ export declare function deployment(_: Instances<unknown>, annotation?: Annotation): Dependency;
@@ -0,0 +1,41 @@
1
+ import { options } from './annotation.js';
2
+ import { components } from './components.js';
3
+ import { version } from '../version.js';
4
+ import { ENV, UI_PATH, UI_PORT } from './const.js';
5
+ import * as schemas from './schemas.js';
6
+ /** Where Toa's release publishes this service's image. An application takes it
7
+ * instead of building one when its context says `registry.services: published`. */
8
+ export const image = 'ghcr.io/toa-io/extension-introspection-explorer';
9
+ export const standalone = true;
10
+ /**
11
+ * The explorer hosts the introspection components, exactly as the exposition
12
+ * gateway hosts the identity ones. Collection is on unless the context says
13
+ * `introspection: false`, and the environment variable is emitted together
14
+ * with the service — never on its own, or tasks would pile up in a queue
15
+ * nothing consumes.
16
+ */
17
+ export function deployment(_, annotation) {
18
+ if (annotation === false)
19
+ return {};
20
+ if (annotation !== undefined)
21
+ schemas.annotation.validate(annotation);
22
+ const opts = options(annotation);
23
+ const service = {
24
+ group: 'introspection',
25
+ name: 'explorer',
26
+ image,
27
+ version,
28
+ components: components().labels,
29
+ resources: annotation?.resources,
30
+ variables: []
31
+ };
32
+ if (opts.ui) {
33
+ service.port = UI_PORT;
34
+ service.ingress = { path: UI_PATH };
35
+ }
36
+ return {
37
+ services: [service],
38
+ variables: { global: [{ name: ENV, value: JSON.stringify(opts) }] }
39
+ };
40
+ }
41
+ //# sourceMappingURL=deployment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment.js","sourceRoot":"","sources":["../../source/extensions.introspection/deployment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAIvC;oFACoF;AACpF,MAAM,CAAC,MAAM,KAAK,GAAG,iDAAiD,CAAA;AAEtE,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAA;AAE9B;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CAAC,CAAqB,EAAE,UAAuB;IACvE,IAAI,UAAU,KAAK,KAAK;QAAE,OAAO,EAAE,CAAA;IAEnC,IAAI,UAAU,KAAK,SAAS;QAAE,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;IAErE,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;IAEhC,MAAM,OAAO,GAAY;QACvB,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,UAAU;QAChB,KAAK;QACL,OAAO;QACP,UAAU,EAAE,UAAU,EAAE,CAAC,MAAM;QAC/B,SAAS,EAAE,UAAU,EAAE,SAAS;QAChC,SAAS,EAAE,EAAE;KACd,CAAA;IAED,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC;QACZ,OAAO,CAAC,IAAI,GAAG,OAAO,CAAA;QACtB,OAAO,CAAC,OAAO,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;IACrC,CAAC;IAED,OAAO;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;KACpE,CAAA;AACH,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { manifest } from './manifest.js';
2
+ export { components } from './components.js';
3
+ export { deployment, image, standalone } from './deployment.js';
4
+ export * from './annotation.js';
5
+ export * from './const.js';
6
+ export * as schemas from './schemas.js';
@@ -0,0 +1,7 @@
1
+ export { manifest } from './manifest.js';
2
+ export { components } from './components.js';
3
+ export { deployment, image, standalone } from './deployment.js';
4
+ export * from './annotation.js';
5
+ export * from './const.js';
6
+ export * as schemas from './schemas.js';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/extensions.introspection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC/D,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { Declaration } from './annotation.js';
2
+ /**
3
+ * The component level of the annotation.
4
+ *
5
+ * The extension is predefined, so most components say nothing and the
6
+ * declaration arrives as `null` — which still has to produce a value,
7
+ * or norm rejects the extension.
8
+ */
9
+ export declare function manifest(declaration: Declaration | null | undefined): Declaration;
@@ -0,0 +1,16 @@
1
+ import { component } from './annotation.js';
2
+ import * as schemas from './schemas.js';
3
+ /**
4
+ * The component level of the annotation.
5
+ *
6
+ * The extension is predefined, so most components say nothing and the
7
+ * declaration arrives as `null` — which still has to produce a value,
8
+ * or norm rejects the extension.
9
+ */
10
+ export function manifest(declaration) {
11
+ const normalized = component(declaration);
12
+ if (normalized !== false)
13
+ schemas.declaration.validate(normalized);
14
+ return normalized;
15
+ }
16
+ //# sourceMappingURL=manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../source/extensions.introspection/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAGvC;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CAAC,WAA2C;IAClE,MAAM,UAAU,GAAG,SAAS,CAAC,WAAW,CAAC,CAAA;IAEzC,IAAI,UAAU,KAAK,KAAK;QAAE,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;IAElE,OAAO,UAAU,CAAA;AACnB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Schema } from '@toa.io/schemas';
2
+ import type { Annotation, Declaration } from './annotation.js';
3
+ export declare const annotation: Schema<Exclude<Annotation, false>>;
4
+ export declare const declaration: Schema<Exclude<Declaration, false>>;
@@ -0,0 +1,7 @@
1
+ import { resolve } from 'node:path';
2
+ import * as schemas from '@toa.io/schemas';
3
+ const path = resolve(import.meta.dirname, '../../schemas/extensions.introspection');
4
+ const namespace = schemas.namespace(path);
5
+ export const annotation = namespace.schema('annotation');
6
+ export const declaration = namespace.schema('declaration');
7
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../source/extensions.introspection/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAI1C,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,IAAI,CAAC,OAAO,EAAE,wCAAwC,CAAC,CAAA;AACnF,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;AAEzC,MAAM,CAAC,MAAM,UAAU,GACrB,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;AAChC,MAAM,CAAC,MAAM,WAAW,GACtB,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { type Components } from '../digest/read.js';
2
+ export declare function components(): Components;
@@ -0,0 +1,5 @@
1
+ import { components as digest } from '../digest/read.js';
2
+ export function components() {
3
+ return digest('extensions.realtime');
4
+ }
5
+ //# sourceMappingURL=components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.js","sourceRoot":"","sources":["../../source/extensions.realtime/components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,MAAM,EAAmB,MAAM,mBAAmB,CAAA;AAEzE,MAAM,UAAU,UAAU;IACxB,OAAO,MAAM,CAAC,qBAAqB,CAAC,CAAA;AACtC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { Dependency, Instances, Resources } from '@toa.io/operations';
2
+ /** Where Toa's release publishes this service's image. An application takes it
3
+ * instead of building one when its context says `registry.services: published`. */
4
+ export declare const image = "ghcr.io/toa-io/extension-realtime-streams";
5
+ export declare const standalone = true;
6
+ export declare function deployment(instances: Instances<Declaration>, annotation?: Declaration & Annotation): Dependency;
7
+ export declare function parse(declaration: Declaration): Route[];
8
+ export type Entry = string | string[] | RouteDeclaration;
9
+ export type Declaration = Record<string, Entry>;
10
+ export interface RouteDeclaration {
11
+ key: string | string[];
12
+ expose?: string[];
13
+ }
14
+ export interface Route {
15
+ event: string;
16
+ properties: string[];
17
+ expose?: string[];
18
+ }
19
+ interface Annotation {
20
+ resources?: Resources;
21
+ }
22
+ export {};
@@ -0,0 +1,53 @@
1
+ import { components } from './components.js';
2
+ import { version } from '../version.js';
3
+ /** Where Toa's release publishes this service's image. An application takes it
4
+ * instead of building one when its context says `registry.services: published`. */
5
+ export const image = 'ghcr.io/toa-io/extension-realtime-streams';
6
+ export const standalone = true;
7
+ export function deployment(instances, annotation) {
8
+ const routes = [];
9
+ const { resources, ...annotatedRoutes } = annotation ?? {};
10
+ const labels = components().labels;
11
+ if (annotatedRoutes !== undefined)
12
+ routes.push(...parse(annotatedRoutes));
13
+ for (const instance of instances) {
14
+ const completed = {};
15
+ for (const [key, value] of Object.entries(instance.manifest)) {
16
+ const event = instance.locator.id + '.' + key;
17
+ completed[event] = value;
18
+ }
19
+ routes.push(...parse(completed));
20
+ }
21
+ const service = {
22
+ group: 'realtime',
23
+ name: 'streams',
24
+ image,
25
+ version,
26
+ components: labels,
27
+ resources,
28
+ variables: [
29
+ {
30
+ name: 'TOA_REALTIME',
31
+ value: JSON.stringify(routes)
32
+ }
33
+ ]
34
+ };
35
+ return { services: [service], events: routes.map((route) => route.event) };
36
+ }
37
+ export function parse(declaration) {
38
+ const routes = [];
39
+ for (const [event, value] of Object.entries(declaration))
40
+ if (isObject(value)) {
41
+ const properties = Array.isArray(value.key) ? value.key : [value.key];
42
+ routes.push({ event, properties, expose: value.expose });
43
+ }
44
+ else {
45
+ const properties = Array.isArray(value) ? value : [value];
46
+ routes.push({ event, properties });
47
+ }
48
+ return routes;
49
+ }
50
+ function isObject(value) {
51
+ return typeof value === 'object' && !Array.isArray(value);
52
+ }
53
+ //# sourceMappingURL=deployment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment.js","sourceRoot":"","sources":["../../source/extensions.realtime/deployment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAGvC;oFACoF;AACpF,MAAM,CAAC,MAAM,KAAK,GAAG,2CAA2C,CAAA;AAEhE,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAA;AAE9B,MAAM,UAAU,UAAU,CACxB,SAAiC,EACjC,UAAqC;IAErC,MAAM,MAAM,GAAG,EAAE,CAAA;IACjB,MAAM,EAAE,SAAS,EAAE,GAAG,eAAe,EAAE,GAAG,UAAU,IAAI,EAAE,CAAA;IAC1D,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC,MAAM,CAAA;IAElC,IAAI,eAAe,KAAK,SAAS;QAAE,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,eAAe,CAAC,CAAC,CAAA;IAEzE,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;QACjC,MAAM,SAAS,GAAgB,EAAE,CAAA;QAEjC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,QAA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KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;YAEzD,MAAM,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAA;QACpC,CAAC;IAEH,OAAO,MAAM,CAAA;AACf,CAAC;AAED,SAAS,QAAQ,CAAC,KAAY;IAC5B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;AAC3D,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { deployment, image, standalone, parse } from './deployment.js';
2
+ export { components } from './components.js';
3
+ export type { Declaration, Entry, Route, RouteDeclaration } from './deployment.js';
@@ -0,0 +1,3 @@
1
+ export { deployment, image, standalone, parse } from './deployment.js';
2
+ export { components } from './components.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/extensions.realtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Contribution } from '@toa.io/core/types';
2
+ /** What this extension puts on the context of a component that declares it. */
3
+ export declare function context(): Contribution;
@@ -0,0 +1,9 @@
1
+ /** What this extension puts on the context of a component that declares it. */
2
+ export function context() {
3
+ return {
4
+ name: 'stash',
5
+ type: 'Stash',
6
+ imports: { '@toa.io/extensions.stash': ['Stash'] }
7
+ };
8
+ }
9
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../source/extensions.stash/context.ts"],"names":[],"mappings":"AAEA,+EAA+E;AAC/E,MAAM,UAAU,OAAO;IACrB,OAAO;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,EAAE,0BAA0B,EAAE,CAAC,OAAO,CAAC,EAAE;KACnD,CAAA;AACH,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type URIMap } from '@toa.io/pointer';
2
+ import type { context } from '@toa.io/norm';
3
+ import type { Dependency } from '@toa.io/operations';
4
+ export declare function deployment(instances: context.Dependency[], annotation: URIMap): Dependency;
5
+ export declare const ID = "stash";
@@ -0,0 +1,14 @@
1
+ import { createVariables } from '@toa.io/pointer';
2
+ export function deployment(instances, annotation) {
3
+ const requests = instances.map((instance) => createRequest(instance));
4
+ const variables = createVariables(ID, annotation, requests);
5
+ return { variables };
6
+ }
7
+ function createRequest(instance) {
8
+ return {
9
+ group: instance.locator.label,
10
+ selectors: [instance.locator.id]
11
+ };
12
+ }
13
+ export const ID = 'stash';
14
+ //# sourceMappingURL=deployment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment.js","sourceRoot":"","sources":["../../source/extensions.stash/deployment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAA6B,MAAM,iBAAiB,CAAA;AAI5E,MAAM,UAAU,UAAU,CACxB,SAA+B,EAC/B,UAAkB;IAElB,MAAM,QAAQ,GAAc,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAA;IAChF,MAAM,SAAS,GAAG,eAAe,CAAC,EAAE,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAA;IAE3D,OAAO,EAAE,SAAS,EAAE,CAAA;AACtB,CAAC;AAED,SAAS,aAAa,CAAC,QAA4B;IACjD,OAAO;QACL,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,KAAK;QAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;KACjC,CAAA;AACH,CAAC;AAED,MAAM,CAAC,MAAM,EAAE,GAAG,OAAO,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { deployment, ID } from './deployment.js';
2
+ export { context } from './context.js';
@@ -0,0 +1,3 @@
1
+ export { deployment, ID } from './deployment.js';
2
+ export { context } from './context.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/extensions.stash/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { Contribution } from '@toa.io/core/types';
2
+ /**
3
+ * What this extension puts on the context of a component that declares it. What a component
4
+ * keeps there is its own, and nothing declares it.
5
+ */
6
+ export declare function context(): Contribution;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * What this extension puts on the context of a component that declares it. What a component
3
+ * keeps there is its own, and nothing declares it.
4
+ */
5
+ export function context() {
6
+ return { name: 'state', type: 'Record<string, any>' };
7
+ }
8
+ //# sourceMappingURL=context.js.map