@pikku/addon-meta-conversions 0.1.5 → 0.1.7

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 (269) hide show
  1. package/dist/.pikku/addon/agent/index.d.ts +1 -1
  2. package/dist/.pikku/addon/agent/index.js +1 -1
  3. package/dist/.pikku/addon/agent/index.ts +1 -1
  4. package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +1 -1
  5. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +47 -6
  6. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts.map +1 -1
  7. package/dist/.pikku/addon/agent/pikku-agent-types.gen.js +41 -0
  8. package/dist/.pikku/addon/agent/pikku-agent-types.gen.js.map +1 -1
  9. package/dist/.pikku/addon/agent/pikku-agent-types.gen.ts +42 -1
  10. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
  11. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.ts +1 -1
  12. package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +1 -1
  13. package/dist/.pikku/addon/analytics/index.d.ts +8 -0
  14. package/dist/.pikku/addon/analytics/index.d.ts.map +1 -0
  15. package/dist/.pikku/addon/analytics/index.js +8 -0
  16. package/dist/.pikku/addon/analytics/index.js.map +1 -0
  17. package/dist/.pikku/addon/analytics/index.ts +8 -0
  18. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts +6 -0
  19. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts.map +1 -0
  20. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js +5 -0
  21. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js.map +1 -0
  22. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.ts +25 -0
  23. package/dist/.pikku/addon/auth/index.d.ts +1 -1
  24. package/dist/.pikku/addon/auth/index.js +1 -1
  25. package/dist/.pikku/addon/auth/index.ts +1 -1
  26. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +10 -20
  27. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts.map +1 -1
  28. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +2 -19
  29. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js.map +1 -1
  30. package/dist/.pikku/addon/auth/pikku-auth-types.gen.ts +10 -20
  31. package/dist/.pikku/addon/channel/index.d.ts +1 -1
  32. package/dist/.pikku/addon/channel/index.js +1 -1
  33. package/dist/.pikku/addon/channel/index.ts +1 -1
  34. package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +10 -20
  35. package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts.map +1 -1
  36. package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +7 -1
  37. package/dist/.pikku/addon/channel/pikku-channel-types.gen.js.map +1 -1
  38. package/dist/.pikku/addon/channel/pikku-channel-types.gen.ts +8 -18
  39. package/dist/.pikku/addon/cli/index.d.ts +8 -0
  40. package/dist/.pikku/addon/cli/index.d.ts.map +1 -0
  41. package/dist/.pikku/addon/cli/index.js +8 -0
  42. package/dist/.pikku/addon/cli/index.js.map +1 -0
  43. package/dist/.pikku/addon/cli/index.ts +8 -0
  44. package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts +62 -0
  45. package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts.map +1 -0
  46. package/dist/.pikku/addon/cli/pikku-cli-types.gen.js +49 -0
  47. package/dist/.pikku/addon/cli/pikku-cli-types.gen.js.map +1 -0
  48. package/dist/.pikku/addon/cli/pikku-cli-types.gen.ts +88 -0
  49. package/dist/.pikku/addon/db/pikku-db-meta.gen.json +1 -0
  50. package/dist/.pikku/addon/error/index.d.ts +1 -1
  51. package/dist/.pikku/addon/error/index.js +1 -1
  52. package/dist/.pikku/addon/error/index.ts +1 -1
  53. package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +1 -1
  54. package/dist/.pikku/addon/error/pikku-error-types.gen.js +1 -1
  55. package/dist/.pikku/addon/error/pikku-error-types.gen.ts +1 -1
  56. package/dist/.pikku/addon/function/index.d.ts +1 -1
  57. package/dist/.pikku/addon/function/index.js +1 -1
  58. package/dist/.pikku/addon/function/index.ts +1 -1
  59. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +57 -47
  60. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts.map +1 -1
  61. package/dist/.pikku/addon/function/pikku-function-types.gen.js +21 -9
  62. package/dist/.pikku/addon/function/pikku-function-types.gen.js.map +1 -1
  63. package/dist/.pikku/addon/function/pikku-function-types.gen.ts +56 -44
  64. package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +2 -1
  65. package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
  66. package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +1 -0
  67. package/dist/.pikku/addon/function/pikku-functions-meta.gen.ts +1 -1
  68. package/dist/.pikku/addon/function/pikku-functions.gen.js +1 -1
  69. package/dist/.pikku/addon/function/pikku-functions.gen.ts +1 -1
  70. package/dist/.pikku/addon/http/index.d.ts +1 -1
  71. package/dist/.pikku/addon/http/index.js +1 -1
  72. package/dist/.pikku/addon/http/index.ts +1 -1
  73. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +3 -1
  74. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts.map +1 -1
  75. package/dist/.pikku/addon/http/pikku-http-types.gen.js +1 -1
  76. package/dist/.pikku/addon/http/pikku-http-types.gen.js.map +1 -1
  77. package/dist/.pikku/addon/http/pikku-http-types.gen.ts +3 -1
  78. package/dist/.pikku/addon/mcp/index.d.ts +1 -1
  79. package/dist/.pikku/addon/mcp/index.js +1 -1
  80. package/dist/.pikku/addon/mcp/index.ts +1 -1
  81. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts +7 -1
  82. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts.map +1 -1
  83. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +1 -1
  84. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js.map +1 -1
  85. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.ts +7 -1
  86. package/dist/.pikku/addon/middleware/index.d.ts +1 -1
  87. package/dist/.pikku/addon/middleware/index.js +1 -1
  88. package/dist/.pikku/addon/middleware/index.ts +1 -1
  89. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +42 -26
  90. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts.map +1 -1
  91. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +29 -24
  92. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js.map +1 -1
  93. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.ts +43 -26
  94. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  95. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +1 -1
  96. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.ts +1 -1
  97. package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +1 -1
  98. package/dist/.pikku/addon/pikku-bootstrap.gen.js +1 -1
  99. package/dist/.pikku/addon/pikku-bootstrap.gen.ts +1 -1
  100. package/dist/.pikku/addon/pikku-local-services.gen.d.ts +29 -0
  101. package/dist/.pikku/addon/pikku-local-services.gen.d.ts.map +1 -0
  102. package/dist/.pikku/addon/pikku-local-services.gen.js +42 -0
  103. package/dist/.pikku/addon/pikku-local-services.gen.js.map +1 -0
  104. package/dist/.pikku/addon/pikku-local-services.gen.ts +85 -0
  105. package/dist/.pikku/addon/pikku-package.gen.js +1 -1
  106. package/dist/.pikku/addon/pikku-package.gen.ts +1 -1
  107. package/dist/.pikku/addon/pikku-services.gen.d.ts +9 -1
  108. package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -1
  109. package/dist/.pikku/addon/pikku-services.gen.js +8 -0
  110. package/dist/.pikku/addon/pikku-services.gen.js.map +1 -1
  111. package/dist/.pikku/addon/pikku-services.gen.ts +9 -1
  112. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -3
  113. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +2 -3
  114. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +2 -3
  115. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  116. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.ts +1 -1
  117. package/dist/.pikku/addon/scenarios/index.d.ts +1 -1
  118. package/dist/.pikku/addon/scenarios/index.js +1 -1
  119. package/dist/.pikku/addon/scenarios/index.ts +1 -1
  120. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
  121. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.ts +1 -1
  122. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  123. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.ts +1 -1
  124. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +53 -35
  125. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -1
  126. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js +7 -3
  127. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -1
  128. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.ts +57 -40
  129. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
  130. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.ts +1 -1
  131. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  132. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.ts +1 -1
  133. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.d.ts +33 -0
  134. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.d.ts.map +1 -0
  135. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.js +29 -0
  136. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.js.map +1 -0
  137. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.ts +52 -0
  138. package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +1 -1
  139. package/dist/.pikku/addon/scenarios/schemas/register.gen.js +1 -1
  140. package/dist/.pikku/addon/scenarios/schemas/register.gen.ts +1 -1
  141. package/dist/.pikku/addon/schemas/register.gen.js +1 -1
  142. package/dist/.pikku/addon/schemas/register.gen.ts +1 -1
  143. package/dist/.pikku/addon/scopes/index.d.ts +2 -1
  144. package/dist/.pikku/addon/scopes/index.d.ts.map +1 -1
  145. package/dist/.pikku/addon/scopes/index.js +2 -1
  146. package/dist/.pikku/addon/scopes/index.js.map +1 -1
  147. package/dist/.pikku/addon/scopes/index.ts +2 -1
  148. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.d.ts +41 -0
  149. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.d.ts.map +1 -0
  150. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.js +35 -0
  151. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.js.map +1 -0
  152. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.ts +52 -0
  153. package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts +9 -0
  154. package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts.map +1 -0
  155. package/dist/.pikku/addon/scopes/pikku-flags.gen.js +2 -0
  156. package/dist/.pikku/addon/scopes/pikku-flags.gen.js.map +1 -0
  157. package/dist/.pikku/addon/scopes/pikku-flags.gen.ts +8 -0
  158. package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
  159. package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts.map +1 -1
  160. package/dist/.pikku/addon/scopes/pikku-roles.gen.ts +1 -1
  161. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +2 -1
  162. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts.map +1 -1
  163. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +2 -1
  164. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js.map +1 -1
  165. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.ts +2 -1
  166. package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +1 -1
  167. package/dist/.pikku/addon/scopes/pikku-scopes.gen.ts +1 -1
  168. package/dist/.pikku/addon/scopes/pikku-virtual-users-meta.gen.json +1 -0
  169. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.d.ts +27 -0
  170. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.d.ts.map +1 -0
  171. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.js +16 -0
  172. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.js.map +1 -0
  173. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.ts +39 -0
  174. package/dist/.pikku/addon/secrets/index.d.ts +1 -1
  175. package/dist/.pikku/addon/secrets/index.js +1 -1
  176. package/dist/.pikku/addon/secrets/index.ts +1 -1
  177. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +1 -1
  178. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +1 -1
  179. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.ts +1 -1
  180. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +9 -1
  181. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts.map +1 -1
  182. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +5 -1
  183. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js.map +1 -1
  184. package/dist/.pikku/addon/secrets/pikku-secrets.gen.ts +9 -1
  185. package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
  186. package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts.map +1 -1
  187. package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
  188. package/dist/.pikku/addon/services/pikku-meta-service.gen.ts +1 -1
  189. package/dist/.pikku/addon/setup/index.d.ts +1 -1
  190. package/dist/.pikku/addon/setup/index.js +1 -1
  191. package/dist/.pikku/addon/setup/index.ts +1 -1
  192. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +4 -4
  193. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts.map +1 -1
  194. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +1 -1
  195. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.ts +1 -1
  196. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +8 -20
  197. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts.map +1 -1
  198. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +11 -19
  199. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js.map +1 -1
  200. package/dist/.pikku/addon/setup/pikku-setup-types.gen.ts +19 -19
  201. package/dist/.pikku/addon/surface-usage.gen.json +326 -26
  202. package/dist/.pikku/addon/trigger/index.d.ts +1 -1
  203. package/dist/.pikku/addon/trigger/index.js +1 -1
  204. package/dist/.pikku/addon/trigger/index.ts +1 -1
  205. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +64 -1
  206. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts.map +1 -1
  207. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +17 -1
  208. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js.map +1 -1
  209. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.ts +58 -1
  210. package/dist/.pikku/addon/utils/index.d.ts +8 -0
  211. package/dist/.pikku/addon/utils/index.d.ts.map +1 -0
  212. package/dist/.pikku/addon/utils/index.js +8 -0
  213. package/dist/.pikku/addon/utils/index.js.map +1 -0
  214. package/dist/.pikku/addon/utils/index.ts +8 -0
  215. package/dist/.pikku/addon/utils/pikku-utils-types.gen.d.ts +5 -0
  216. package/dist/.pikku/addon/utils/pikku-utils-types.gen.d.ts.map +1 -0
  217. package/dist/.pikku/addon/utils/pikku-utils-types.gen.js +5 -0
  218. package/dist/.pikku/addon/utils/pikku-utils-types.gen.js.map +1 -0
  219. package/dist/.pikku/addon/utils/pikku-utils-types.gen.ts +4 -0
  220. package/dist/.pikku/addon/variables/index.d.ts +1 -1
  221. package/dist/.pikku/addon/variables/index.js +1 -1
  222. package/dist/.pikku/addon/variables/index.ts +1 -1
  223. package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +1 -1
  224. package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +1 -1
  225. package/dist/.pikku/addon/variables/pikku-variable-types.gen.ts +1 -1
  226. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +9 -1
  227. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -1
  228. package/dist/.pikku/addon/variables/pikku-variables.gen.js +5 -1
  229. package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -1
  230. package/dist/.pikku/addon/variables/pikku-variables.gen.ts +9 -1
  231. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks-meta.gen.json +1 -0
  232. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts +12 -0
  233. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts.map +1 -0
  234. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js +3 -0
  235. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js.map +1 -0
  236. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.ts +15 -0
  237. package/dist/.pikku/addon/workflow/index.d.ts +1 -1
  238. package/dist/.pikku/addon/workflow/index.js +1 -1
  239. package/dist/.pikku/addon/workflow/index.ts +1 -1
  240. package/dist/.pikku/addon/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
  241. package/dist/.pikku/addon/workflow/pikku-workflow-map.gen.d.ts +1 -1
  242. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +30 -6
  243. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  244. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +8 -1
  245. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js.map +1 -1
  246. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.ts +33 -2
  247. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  248. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.ts +1 -1
  249. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  250. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +1 -1
  251. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.ts +1 -1
  252. package/dist/.pikku/addon/workflow/virtual-users.gen.json +1 -0
  253. package/dist/.pikku/runs/mvcetam5.all.jsonl +3 -0
  254. package/dist/src/functions/events/send.function.d.ts +21 -21
  255. package/dist/src/functions/events/send.function.d.ts.map +1 -1
  256. package/dist/src/meta-conversions-api.service.d.ts.map +1 -1
  257. package/package.json +13 -10
  258. package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts +0 -18
  259. package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +0 -1
  260. package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +0 -18
  261. package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +0 -1
  262. package/dist/.pikku/addon/scenarios/pikku-personas.gen.ts +0 -36
  263. package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts +0 -29
  264. package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts.map +0 -1
  265. package/dist/.pikku/addon/scopes/pikku-personas.gen.js +0 -18
  266. package/dist/.pikku/addon/scopes/pikku-personas.gen.js.map +0 -1
  267. package/dist/.pikku/addon/scopes/pikku-personas.gen.ts +0 -41
  268. /package/dist/.pikku/addon/{scopes/pikku-personas-meta.gen.json → analytics/pikku-analytics-meta.gen.json} +0 -0
  269. /package/dist/.pikku/addon/{workflow/personas.gen.json → scopes/pikku-flags-meta.gen.json} +0 -0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.107
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Core function types for all wirings
@@ -14,6 +14,7 @@ import type { PikkuMiddleware } from '../middleware/pikku-middleware-types.gen.j
14
14
  import type { PikkuPermission } from '../auth/pikku-auth-types.gen.js';
15
15
  import type { ScopeId } from '../scopes/pikku-scopes.gen.js';
16
16
  type CredentialsMap = Record<string, unknown>;
17
+ import type { FeatureFlagName } from '../scopes/pikku-flags.gen.js';
17
18
  import type { StandardSchemaV1 } from '@standard-schema/spec';
18
19
  import { CorePikkuFunction, CorePikkuFunctionSessionless } from '@pikku/core/function';
19
20
  import type { UserSession } from '../../../types/application-types.d.js';
@@ -22,9 +23,22 @@ import type { Services } from '../../../types/application-types.d.js';
22
23
  import type { TypedPikkuRPC, FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js';
23
24
  import type { RequiredSingletonServices } from '../pikku-services.gen.js';
24
25
  import type { TypedWorkflow } from '../workflow/pikku-workflow-types.gen.js';
25
- import type { TypedScenario, TypedPersonas } from '../scenarios/pikku-scenario-types.gen.js';
26
+ import type { TypedScenario, TypedVirtualUsers } from '../scenarios/pikku-scenario-types.gen.js';
27
+ /**
28
+ * The services that live for the process — the ones built once in `createConfig`/
29
+ * `createSingletonServices` and shared by every request.
30
+ */
26
31
  export type { SingletonServices as SingletonServices };
32
+ /**
33
+ * Everything a function is handed as its first argument: the singleton services
34
+ * plus whatever is built per request. This is the type to widen when you add a
35
+ * service.
36
+ */
27
37
  export type { Services as Services };
38
+ /**
39
+ * The signed-in user as this project defines it. Reached on the wire as
40
+ * `session`, and replaced with `setSession`.
41
+ */
28
42
  export type Session = UserSession;
29
43
  /**
30
44
  * The services a wired function actually receives. The inspector records which
@@ -33,8 +47,18 @@ export type Session = UserSession;
33
47
  * services **non-optional** at every call site. A service is optional only when
34
48
  * nothing destructures it — in which case it is never created either. This is
35
49
  * why an `if (!service)` guard inside a function body is always dead code.
50
+ *
51
+ * Only the wire-services half lives here. The singleton half is declared by the
52
+ * auth and middleware leaves that use it, because whether a name earns its
53
+ * export is measured rather than chosen: emit declarations for a project and
54
+ * `WiredServices` is named by 147 of its `.d.ts` files, while the singleton
55
+ * intersection is named by none outside the leaves that declare it. Export the
56
+ * latter and it is a compatibility promise nothing asked for; unexport
57
+ * `WiredServices` and every wired module inlines the intersection instead,
58
+ * which asks it to name each member service through a specifier it does not
59
+ * have — 3308 TS2883s. `--noEmit` cannot surface any of that, so re-check with
60
+ * `tsc --declaration --emitDeclarationOnly` before moving either one.
36
61
  */
37
- export type WiredSingletonServices = RequiredSingletonServices & SingletonServices;
38
62
  export type WiredServices = SecretlessServices<RequiredSingletonServices & Services>;
39
63
  /**
40
64
  * Inline node configuration for function definitions.
@@ -79,7 +103,7 @@ export declare const pikkuApprovalDescription: <In = unknown, RequiredServices e
79
103
  * type vary with its return type and cost a `func` written against the
80
104
  * `PikkuFunction | PikkuFunctionSessionless` union its contextual typing.
81
105
  */
82
- export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices, ScenarioOut = unknown> = CorePikkuFunctionSessionless<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario<ScenarioOut>, TypedPersonas, CredentialsMap>, RequiredWires>>;
106
+ export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices, ScenarioOut = unknown> = CorePikkuFunctionSessionless<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario<ScenarioOut>, TypedVirtualUsers, CredentialsMap>, RequiredWires>>;
83
107
  /**
84
108
  * A session-aware API function that requires user authentication.
85
109
  * Use this for protected endpoints that need access to user session data.
@@ -88,7 +112,7 @@ export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires ex
88
112
  * @template Out - The output type that the function returns
89
113
  * @template RequiredServices - Services required by this function
90
114
  */
91
- export type PikkuFunction<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = 'session', RequiredServices extends SecretlessServices<Services> = WiredServices> = CorePikkuFunction<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedPersonas, CredentialsMap>, RequiredWires>>;
115
+ export type PikkuFunction<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = 'session', RequiredServices extends SecretlessServices<Services> = WiredServices> = CorePikkuFunction<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedVirtualUsers, CredentialsMap>, RequiredWires>>;
92
116
  /**
93
117
  * Helper type to infer the output type from a Standard Schema
94
118
  */
@@ -101,14 +125,14 @@ export type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output>
101
125
  * @template Out - The output type
102
126
  * @template PikkuFunc - The function type (can be narrowed to PikkuFunction or PikkuFunctionSessionless)
103
127
  */
104
- export type PikkuFunctionConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunction<In, Out, RequiredWires, any> | PikkuFunctionSessionless<In, Out, RequiredWires, any, any> = PikkuFunction<In, Out, RequiredWires> | PikkuFunctionSessionless<In, Out, RequiredWires>, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = Omit<CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId>, 'node'> & {
128
+ export type PikkuFunctionConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunction<In, Out, RequiredWires, any> | PikkuFunctionSessionless<In, Out, RequiredWires, any, any> = PikkuFunction<In, Out, RequiredWires> | PikkuFunctionSessionless<In, Out, RequiredWires>, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = Omit<CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId, FeatureFlagName>, 'node'> & {
105
129
  node?: NodeConfig;
106
130
  };
107
131
  /**
108
132
  * {@link PikkuFunctionConfig} for a function that runs without a session.
109
133
  * Has no `scopes`: an anonymous caller holds none, so none can ever be met.
110
134
  */
111
- type PikkuFunctionSessionlessConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunctionSessionless<In, Out, RequiredWires, any> = PikkuFunctionSessionless<In, Out, RequiredWires>, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = Omit<CorePikkuSessionlessFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema>, 'node'> & {
135
+ type PikkuFunctionSessionlessConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunctionSessionless<In, Out, RequiredWires, any> = PikkuFunctionSessionless<In, Out, RequiredWires>, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = Omit<CorePikkuSessionlessFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, FeatureFlagName>, 'node'> & {
112
136
  node?: NodeConfig;
113
137
  };
114
138
  /**
@@ -121,7 +145,7 @@ type SchemaInferred<S, Fallback = unknown> = S extends StandardSchemaV1 ? InferS
121
145
  * Schema-overload variant for pikkuFunc. Derived from CorePikkuFunctionConfig
122
146
  * so adding a field on the core type automatically propagates here.
123
147
  */
124
- type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices> = Omit<CorePikkuFunctionConfig<PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>, CorePikkuPermission<any>, PikkuMiddleware, undefined, undefined, ScopeId>, 'func' | 'input' | 'output' | 'permissions' | 'approvalDescription' | 'node'> & {
148
+ type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices> = Omit<CorePikkuFunctionConfig<PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>, CorePikkuPermission<any>, PikkuMiddleware, undefined, undefined, ScopeId, FeatureFlagName>, 'func' | 'input' | 'output' | 'permissions' | 'approvalDescription' | 'node'> & {
125
149
  func: PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>;
126
150
  input?: InputSchema;
127
151
  output?: OutputSchema;
@@ -139,25 +163,18 @@ type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefi
139
163
  * @param config - Function definition with `input`/`output` Zod schemas and `func`.
140
164
  * @returns The normalized configuration object
141
165
  *
142
- * @example
143
- * ```typescript
144
- * const createUserInput = z.object({ name: z.string(), email: z.string() })
145
- * const createUserOutput = z.object({ id: z.number() })
146
- *
147
- * const createUser = pikkuFunc({
148
- * input: createUserInput,
149
- * output: createUserOutput,
150
- * func: async ({db}, input) => {
151
- * // input is typed as { name: string, email: string }
152
- * const user = await db.users.create(input)
153
- * return { id: user.id } // must match output schema
154
- * }
155
- * })
156
- * ```
166
+ * @example snippet: sessionFunction
157
167
  */
158
168
  export declare function pikkuFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
159
169
  export declare function pikkuFunc<In, Out = unknown>(func: PikkuFunction<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
160
- export declare const pikkuListFunc: <F extends Record<string, unknown> = {}, Row = unknown, S extends string = never>(config: PikkuFunctionConfig<ListInput<F, S>, ListOutput<Row>, "session" | "rpc">) => PikkuFunctionConfig<ListInput<F, S>, ListOutput<Row>, "session" | "rpc">;
170
+ /**
171
+ * A `pikkuFunc` whose input and output are already the shared list shape —
172
+ * filters, sort, paging in; rows and a total out — so a listing endpoint pages
173
+ * the same way everywhere.
174
+ *
175
+ * @example snippet: listFunction
176
+ */
177
+ export declare const pikkuListFunc: <F extends Record<string, unknown> = {}, Row = unknown, S extends string = never>(config: PikkuFunctionConfig<ListInput<F, S>, ListOutput<Row>, 'session' | 'rpc'>) => PikkuFunctionConfig<ListInput<F, S>, ListOutput<Row>, 'session' | 'rpc'>;
161
178
  /**
162
179
  * Configuration object for sessionless Pikku functions with Zod schema validation.
163
180
  */
@@ -184,19 +201,7 @@ type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchema
184
201
  * @param config - Function definition with `input`/`output` Zod schemas and `func`.
185
202
  * @returns The normalized configuration object
186
203
  *
187
- * @example
188
- * ```typescript
189
- * const greetInput = z.object({ name: z.string() })
190
- * const greetOutput = z.object({ message: z.string() })
191
- *
192
- * const greet = pikkuSessionlessFunc({
193
- * input: greetInput,
194
- * output: greetOutput,
195
- * func: async (_services, { name }) => {
196
- * return { message: `Hello, ${name}!` }
197
- * }
198
- * })
199
- * ```
204
+ * @example snippet: readFunction
200
205
  */
201
206
  export declare function pikkuSessionlessFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredServices extends SecretlessServices<Services> = WiredServices>(config: PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc', RequiredServices>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
202
207
  export declare function pikkuSessionlessFunc<In, Out = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices>(func: PikkuFunctionSessionless<In, Out, 'session' | 'rpc', RequiredServices> | PikkuFunctionSessionlessConfig<In, Out, 'session' | 'rpc', PikkuFunctionSessionless<In, Out, 'session' | 'rpc', RequiredServices>>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
@@ -207,16 +212,9 @@ export declare function pikkuSessionlessFunc<In, Out = unknown, RequiredServices
207
212
  * @param func - Function definition, either direct function or configuration object
208
213
  * @returns The normalized configuration object
209
214
  *
210
- * @example
211
- * ```typescript
212
- * const cleanupTempFiles = pikkuVoidFunc(async ({fileSystem, logger}) => {
213
- * logger.info('Starting cleanup of temporary files')
214
- * await fileSystem.deleteDirectory('/tmp/uploads')
215
- * logger.info('Cleanup completed')
216
- * })
217
- * ```
215
+ * @example snippet: cleanupFunction
218
216
  */
219
- export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, "session" | "rpc"> | PikkuFunctionSessionlessConfig<void, void, "session" | "rpc">) => PikkuFunctionConfig<void, void, "session" | "rpc">;
217
+ export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, 'session' | 'rpc'> | PikkuFunctionSessionlessConfig<void, void, 'session' | 'rpc'>) => PikkuFunctionConfig<void, void, 'session' | 'rpc'>;
220
218
  /**
221
219
  * References a registered function by name for use in any wiring.
222
220
  * Works for both local and addon functions — resolves via RPC at runtime.
@@ -234,7 +232,7 @@ export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void,
234
232
  * wireHTTP({ route: '/greet', method: 'post', func: ref('greet') })
235
233
  * ```
236
234
  */
237
- export declare const ref: <Name extends keyof FlattenedRPCMap>(rpcName: Name) => PikkuFunctionConfig<FlattenedRPCMap[Name]["input"], FlattenedRPCMap[Name]["output"], "session" | "rpc">;
235
+ export declare const ref: <Name extends keyof FlattenedRPCMap>(rpcName: Name) => PikkuFunctionConfig<FlattenedRPCMap[Name]['input'], FlattenedRPCMap[Name]['output'], 'session' | 'rpc'>;
238
236
  /**
239
237
  * Declares a capability the connected client answers, reachable from any
240
238
  * `wireChannel` function as `channel.remote(name, input)`.
@@ -262,9 +260,21 @@ export declare function pikkuRemoteChannelFunc<InputSchema extends StandardSchem
262
260
  declare const __addonHttp: {};
263
261
  declare const __addonChannel: {};
264
262
  declare const __addonCli: {};
263
+ /**
264
+ * Names an HTTP route an installed addon wires, so you can link or redirect to
265
+ * it without hardcoding a path the addon may move.
266
+ */
265
267
  export declare const refHTTP: <Name extends keyof typeof __addonHttp>(name: Name, options?: {
266
268
  basePath?: string;
267
269
  }) => (typeof __addonHttp)[Name];
270
+ /**
271
+ * Names a channel an installed addon wires, for connecting to it without
272
+ * hardcoding its name.
273
+ */
268
274
  export declare const refChannel: <Name extends keyof typeof __addonChannel>(name: Name) => (typeof __addonChannel)[Name];
275
+ /**
276
+ * Names a CLI command an installed addon wires, for invoking it without
277
+ * hardcoding its name.
278
+ */
269
279
  export declare const refCLI: <Name extends keyof typeof __addonCli>(name: Name) => (typeof __addonCli)[Name];
270
280
  //# sourceMappingURL=pikku-function-types.gen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-function-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-function-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,KAAK,EACV,uBAAuB,EACvB,kCAAkC,EAClC,mBAAmB,EACpB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAA;AAC5D,KAAK,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EACL,iBAAiB,EACjB,4BAA4B,EAC7B,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAA;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAA;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAA;A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,SAAS,EAC5D,YAAY,SAAS,gBAAgB,GAAG,SAAS,GAAG,SAAS,EAE7D,MAAM,EAAE,IAAI,CACV,wCAAwC,CAAC,WAAW,EAAE,YAAY,EAAE,SAAS,GAAG,KAAK,CAAC,EACtF,MAAM,CACP,GACA,mBAAmB,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC,CASnG;AAKD;;;;GAIG;AACH,QAAA,MAAM,WAAW,IAAc,CAAA;AAC/B,QAAA,MAAM,cAAc,IAAc,CAAA;AAClC,QAAA,MAAM,UAAU,IAAc,CAAA;AAE9B,eAAO,MAAM,OAAO,GAAI,IAAI,SAAS,MAAM,OAAO,WAAW,EAC3D,MAAM,IAAI,EACV,UAAU;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,KAC9B,CAAC,OAAO,WAAW,EAAE,IAAI,CAO3B,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,IAAI,SAAS,MAAM,OAAO,cAAc,EACjE,MAAM,IAAI,KACT,CAAC,OAAO,cAAc,EAAE,IAAI,CAAyB,CAAA;AAExD,eAAO,MAAM,MAAM,GAAI,IAAI,SAAS,MAAM,OAAO,UAAU,EACzD,MAAM,IAAI,KACT,CAAC,OAAO,UAAU,EAAE,IAAI,CAAqB,CAAA"}
1
+ {"version":3,"file":"pikku-function-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-function-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAA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AAC,EAAE,MAAM,CAAA;CAAE,KAC9B,CAAC,OAAO,WAAW,CAAC,CAAC,IAAI,CAO3B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,IAAI,SAAS,MAAM,OAAO,cAAc,QAC3D,IAAI,KACT,CAAC,OAAO,cAAc,CAAC,CAAC,IAAI,CAAyB,CAAA;AAExD;;;GAGG;AACH,eAAO,MAAM,MAAM,GAAI,IAAI,SAAS,MAAM,OAAO,UAAU,QACnD,IAAI,KACT,CAAC,OAAO,UAAU,CAAC,CAAC,IAAI,CAAqB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.107
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Core function types for all wirings
@@ -23,6 +23,13 @@ export const pikkuApprovalDescription = (fn) => {
23
23
  export function pikkuFunc(func) {
24
24
  return typeof func === 'function' ? { func } : func;
25
25
  }
26
+ /**
27
+ * A `pikkuFunc` whose input and output are already the shared list shape —
28
+ * filters, sort, paging in; rows and a total out — so a listing endpoint pages
29
+ * the same way everywhere.
30
+ *
31
+ * @example snippet: listFunction
32
+ */
26
33
  export const pikkuListFunc = (config) => {
27
34
  return pikkuFunc(config);
28
35
  };
@@ -36,14 +43,7 @@ export function pikkuSessionlessFunc(func) {
36
43
  * @param func - Function definition, either direct function or configuration object
37
44
  * @returns The normalized configuration object
38
45
  *
39
- * @example
40
- * ```typescript
41
- * const cleanupTempFiles = pikkuVoidFunc(async ({fileSystem, logger}) => {
42
- * logger.info('Starting cleanup of temporary files')
43
- * await fileSystem.deleteDirectory('/tmp/uploads')
44
- * logger.info('Cleanup completed')
45
- * })
46
- * ```
46
+ * @example snippet: cleanupFunction
47
47
  */
48
48
  export const pikkuVoidFunc = (func) => {
49
49
  return typeof func === 'function' ? { func } : func;
@@ -106,12 +106,24 @@ export function pikkuRemoteChannelFunc(config) {
106
106
  const __addonHttp = {};
107
107
  const __addonChannel = {};
108
108
  const __addonCli = {};
109
+ /**
110
+ * Names an HTTP route an installed addon wires, so you can link or redirect to
111
+ * it without hardcoding a path the addon may move.
112
+ */
109
113
  export const refHTTP = (name, options) => {
110
114
  const contract = __addonHttp[name];
111
115
  return (options?.basePath !== undefined
112
116
  ? { ...contract, basePath: options.basePath }
113
117
  : contract);
114
118
  };
119
+ /**
120
+ * Names a channel an installed addon wires, for connecting to it without
121
+ * hardcoding its name.
122
+ */
115
123
  export const refChannel = (name) => __addonChannel[name];
124
+ /**
125
+ * Names a CLI command an installed addon wires, for invoking it without
126
+ * hardcoding its name.
127
+ */
116
128
  export const refCLI = (name) => __addonCli[name];
117
129
  //# sourceMappingURL=pikku-function-types.gen.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-function-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-function-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAmEH;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,EAAkD,EACF,EAAE;IAClD,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AA2KD,MAAM,UAAU,SAAS,CAAC,IAAS;IACjC,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,CAK3B,MAIC,EACyE,EAAE;IAC5E,OAAO,SAAS,CAAC,MAAM,CAAC,CAAA;AAC1B,CAAC,CAAA;AA0ED,MAAM,UAAU,oBAAoB,CAAC,IAAS;IAC5C,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,IAEiE,EACb,EAAE;IACtD,O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,MAAM,CAAC,MAAM,MAAM,GAAG,CACpB,IAAU,EACiB,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA"}
1
+ {"version":3,"file":"pikku-function-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-function-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AA2FH;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,EAAkD,EACF,EAAE;IAClD,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AA8JD,MAAM,UAAU,SAAS,CAAC,IAAS;IACjC,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAK3B,MAIC,EACyE,EAAE;IAC5E,OAAO,SAAS,CAAC,MAAM,CAAC,CAAA;AAC1B,CAAC,CAAA;AA8DD,MAAM,UAAU,oBAAoB,CAAC,IAAS;IAC5C,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,IAEiE,EACb,EAAE;IACtD,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,CACjB,OAAa,EAKb,EAAE;IACF,OAAO;QACL,IAAI,EAAE,KAAK,EAAE,SAAc,EAAE,IAAoC,EAAE,EAAE,GAAG,EAAO,EAAE,EAAE;YACjF,OAAO,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;QAClC,CAAC;KAKF,CAAA;AACH,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,sBAAsB,CAIpC,MAGC;IAED,OAAO;QACL,GAAG,MAAM;QACT,IAAI,EAAE,KAAK,EAAE,SAAc,EAAE,KAAU,EAAE,KAAU,EAAE,EAAE;YACrD,MAAM,IAAI,KAAK,CACb,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,0IAA0I,CACpK,CAAA;QACH,CAAC;KACK,CAAA;AACV,CAAC;AAMD;;;;GAIG;AACH,MAAM,WAAW,GAAG,EAAW,CAAA;AAC/B,MAAM,cAAc,GAAG,EAAW,CAAA;AAClC,MAAM,UAAU,GAAG,EAAW,CAAA;AAE9B;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CACrB,IAAU,EACV,OAA+B,EACH,EAAE;IAC9B,MAAM,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAQ,CAAA;IACzC,OAAO,CACL,OAAO,EAAE,QAAQ,KAAK,SAAS;QAC7B,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE;QAC7C,CAAC,CAAC,QAAQ,CACiB,CAAA;AACjC,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,IAAU,EACqB,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;AAExD;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CACpB,IAAU,EACiB,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.107
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Core function types for all wirings
@@ -19,6 +19,7 @@ import type { PikkuMiddleware } from '../middleware/pikku-middleware-types.gen.j
19
19
  import type { PikkuPermission } from '../auth/pikku-auth-types.gen.js'
20
20
  import type { ScopeId } from '../scopes/pikku-scopes.gen.js'
21
21
  type CredentialsMap = Record<string, unknown>
22
+ import type { FeatureFlagName } from '../scopes/pikku-flags.gen.js'
22
23
  import type { StandardSchemaV1 } from '@standard-schema/spec'
23
24
  import {
24
25
  CorePikkuFunction,
@@ -31,10 +32,23 @@ import type { Services } from '../../../types/application-types.d.js'
31
32
  import type { TypedPikkuRPC, FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js'
32
33
  import type { RequiredSingletonServices } from '../pikku-services.gen.js'
33
34
  import type { TypedWorkflow } from '../workflow/pikku-workflow-types.gen.js'
34
- import type { TypedScenario, TypedPersonas } from '../scenarios/pikku-scenario-types.gen.js'
35
+ import type { TypedScenario, TypedVirtualUsers } from '../scenarios/pikku-scenario-types.gen.js'
35
36
 
37
+ /**
38
+ * The services that live for the process — the ones built once in `createConfig`/
39
+ * `createSingletonServices` and shared by every request.
40
+ */
36
41
  export type { SingletonServices as SingletonServices }
42
+ /**
43
+ * Everything a function is handed as its first argument: the singleton services
44
+ * plus whatever is built per request. This is the type to widen when you add a
45
+ * service.
46
+ */
37
47
  export type { Services as Services }
48
+ /**
49
+ * The signed-in user as this project defines it. Reached on the wire as
50
+ * `session`, and replaced with `setSession`.
51
+ */
38
52
  export type Session = UserSession
39
53
 
40
54
  /**
@@ -44,8 +58,18 @@ export type Session = UserSession
44
58
  * services **non-optional** at every call site. A service is optional only when
45
59
  * nothing destructures it — in which case it is never created either. This is
46
60
  * why an `if (!service)` guard inside a function body is always dead code.
61
+ *
62
+ * Only the wire-services half lives here. The singleton half is declared by the
63
+ * auth and middleware leaves that use it, because whether a name earns its
64
+ * export is measured rather than chosen: emit declarations for a project and
65
+ * `WiredServices` is named by 147 of its `.d.ts` files, while the singleton
66
+ * intersection is named by none outside the leaves that declare it. Export the
67
+ * latter and it is a compatibility promise nothing asked for; unexport
68
+ * `WiredServices` and every wired module inlines the intersection instead,
69
+ * which asks it to name each member service through a specifier it does not
70
+ * have — 3308 TS2883s. `--noEmit` cannot surface any of that, so re-check with
71
+ * `tsc --declaration --emitDeclarationOnly` before moving either one.
47
72
  */
48
- export type WiredSingletonServices = RequiredSingletonServices & SingletonServices
49
73
  export type WiredServices = SecretlessServices<RequiredSingletonServices & Services>
50
74
 
51
75
  /**
@@ -112,7 +136,7 @@ export type PikkuFunctionSessionless<
112
136
  Out,
113
137
  RequiredServices,
114
138
  Session,
115
- PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario<ScenarioOut>, TypedPersonas, CredentialsMap>, RequiredWires>
139
+ PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario<ScenarioOut>, TypedVirtualUsers, CredentialsMap>, RequiredWires>
116
140
  >
117
141
 
118
142
  /**
@@ -133,7 +157,7 @@ export type PikkuFunction<
133
157
  Out,
134
158
  RequiredServices,
135
159
  Session,
136
- PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedPersonas, CredentialsMap>, RequiredWires>
160
+ PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedVirtualUsers, CredentialsMap>, RequiredWires>
137
161
  >
138
162
 
139
163
  /**
@@ -158,7 +182,7 @@ export type PikkuFunctionConfig<
158
182
  PikkuFunc extends PikkuFunction<In, Out, RequiredWires, any> | PikkuFunctionSessionless<In, Out, RequiredWires, any, any> = PikkuFunction<In, Out, RequiredWires> | PikkuFunctionSessionless<In, Out, RequiredWires>,
159
183
  InputSchema extends StandardSchemaV1 | undefined = undefined,
160
184
  OutputSchema extends StandardSchemaV1 | undefined = undefined
161
- > = Omit<CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId>, 'node'> & {
185
+ > = Omit<CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId, FeatureFlagName>, 'node'> & {
162
186
  node?: NodeConfig
163
187
  }
164
188
 
@@ -173,7 +197,7 @@ type PikkuFunctionSessionlessConfig<
173
197
  PikkuFunc extends PikkuFunctionSessionless<In, Out, RequiredWires, any> = PikkuFunctionSessionless<In, Out, RequiredWires>,
174
198
  InputSchema extends StandardSchemaV1 | undefined = undefined,
175
199
  OutputSchema extends StandardSchemaV1 | undefined = undefined
176
- > = Omit<CorePikkuSessionlessFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema>, 'node'> & {
200
+ > = Omit<CorePikkuSessionlessFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, FeatureFlagName>, 'node'> & {
177
201
  node?: NodeConfig
178
202
  }
179
203
 
@@ -203,7 +227,8 @@ type PikkuFunctionConfigWithSchema<
203
227
  PikkuMiddleware,
204
228
  undefined,
205
229
  undefined,
206
- ScopeId
230
+ ScopeId,
231
+ FeatureFlagName
207
232
  >,
208
233
  'func' | 'input' | 'output' | 'permissions' | 'approvalDescription' | 'node'
209
234
  > & {
@@ -231,21 +256,7 @@ type PikkuFunctionConfigWithSchema<
231
256
  * @param config - Function definition with `input`/`output` Zod schemas and `func`.
232
257
  * @returns The normalized configuration object
233
258
  *
234
- * @example
235
- * ```typescript
236
- * const createUserInput = z.object({ name: z.string(), email: z.string() })
237
- * const createUserOutput = z.object({ id: z.number() })
238
- *
239
- * const createUser = pikkuFunc({
240
- * input: createUserInput,
241
- * output: createUserOutput,
242
- * func: async ({db}, input) => {
243
- * // input is typed as { name: string, email: string }
244
- * const user = await db.users.create(input)
245
- * return { id: user.id } // must match output schema
246
- * }
247
- * })
248
- * ```
259
+ * @example snippet: sessionFunction
249
260
  */
250
261
  export function pikkuFunc<
251
262
  InputSchema extends StandardSchemaV1 | undefined = undefined,
@@ -262,6 +273,13 @@ export function pikkuFunc(func: any) {
262
273
  return typeof func === 'function' ? { func } : func
263
274
  }
264
275
 
276
+ /**
277
+ * A `pikkuFunc` whose input and output are already the shared list shape —
278
+ * filters, sort, paging in; rows and a total out — so a listing endpoint pages
279
+ * the same way everywhere.
280
+ *
281
+ * @example snippet: listFunction
282
+ */
265
283
  export const pikkuListFunc = <
266
284
  F extends Record<string, unknown> = {},
267
285
  Row = unknown,
@@ -322,19 +340,7 @@ type PikkuFunctionSessionlessConfigWithSchema<
322
340
  * @param config - Function definition with `input`/`output` Zod schemas and `func`.
323
341
  * @returns The normalized configuration object
324
342
  *
325
- * @example
326
- * ```typescript
327
- * const greetInput = z.object({ name: z.string() })
328
- * const greetOutput = z.object({ message: z.string() })
329
- *
330
- * const greet = pikkuSessionlessFunc({
331
- * input: greetInput,
332
- * output: greetOutput,
333
- * func: async (_services, { name }) => {
334
- * return { message: `Hello, ${name}!` }
335
- * }
336
- * })
337
- * ```
343
+ * @example snippet: readFunction
338
344
  */
339
345
  export function pikkuSessionlessFunc<
340
346
  InputSchema extends StandardSchemaV1 | undefined = undefined,
@@ -359,14 +365,7 @@ export function pikkuSessionlessFunc(func: any) {
359
365
  * @param func - Function definition, either direct function or configuration object
360
366
  * @returns The normalized configuration object
361
367
  *
362
- * @example
363
- * ```typescript
364
- * const cleanupTempFiles = pikkuVoidFunc(async ({fileSystem, logger}) => {
365
- * logger.info('Starting cleanup of temporary files')
366
- * await fileSystem.deleteDirectory('/tmp/uploads')
367
- * logger.info('Cleanup completed')
368
- * })
369
- * ```
368
+ * @example snippet: cleanupFunction
370
369
  */
371
370
  export const pikkuVoidFunc = (
372
371
  func:
@@ -451,6 +450,7 @@ export function pikkuRemoteChannelFunc<
451
450
 
452
451
 
453
452
 
453
+
454
454
  /**
455
455
  * Addon contract references. Generated from each wired addon's published
456
456
  * contract metadata — no addon source is imported. Functions are proxied via
@@ -460,6 +460,10 @@ const __addonHttp = {} as const
460
460
  const __addonChannel = {} as const
461
461
  const __addonCli = {} as const
462
462
 
463
+ /**
464
+ * Names an HTTP route an installed addon wires, so you can link or redirect to
465
+ * it without hardcoding a path the addon may move.
466
+ */
463
467
  export const refHTTP = <Name extends keyof typeof __addonHttp>(
464
468
  name: Name,
465
469
  options?: { basePath?: string }
@@ -472,10 +476,18 @@ export const refHTTP = <Name extends keyof typeof __addonHttp>(
472
476
  ) as (typeof __addonHttp)[Name]
473
477
  }
474
478
 
479
+ /**
480
+ * Names a channel an installed addon wires, for connecting to it without
481
+ * hardcoding its name.
482
+ */
475
483
  export const refChannel = <Name extends keyof typeof __addonChannel>(
476
484
  name: Name
477
485
  ): (typeof __addonChannel)[Name] => __addonChannel[name]
478
486
 
487
+ /**
488
+ * Names a CLI command an installed addon wires, for invoking it without
489
+ * hardcoding its name.
490
+ */
479
491
  export const refCLI = <Name extends keyof typeof __addonCli>(
480
492
  name: Name
481
493
  ): (typeof __addonCli)[Name] => __addonCli[name]
@@ -28,6 +28,7 @@
28
28
  "bodyEnd": 49,
29
29
  "contractHash": "5864ea42d4379da5",
30
30
  "inputHash": "0030f99c",
31
- "outputHash": "39d1f240"
31
+ "outputHash": "39d1f240",
32
+ "singletonServicesOnly": true
32
33
  }
33
34
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.107
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  import metaData from './pikku-functions-meta.gen.json' with { type: 'json' };
@@ -17,6 +17,7 @@
17
17
  "contractHash": "5864ea42d4379da5",
18
18
  "inputHash": "0030f99c",
19
19
  "outputHash": "39d1f240",
20
+ "singletonServicesOnly": true,
20
21
  "services": {
21
22
  "optimized": true,
22
23
  "services": [
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.107
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state'
5
5
  import type { FunctionsMeta } from '@pikku/core/services'
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.107
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /* Import and register functions used by RPCs */
5
5
  import { addFunction } from '@pikku/core/function';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.107
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /* Import and register functions used by RPCs */
5
5
  import { addFunction } from '@pikku/core/function'
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.107
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/http` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.107
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/http` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.107
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/http` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.107
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * HTTP-specific type definitions for tree-shaking optimization
@@ -41,6 +41,8 @@ type TypedHTTPRoutesGroupConfig = {
41
41
  };
42
42
  /**
43
43
  * Type-safe helper for defining route contracts that can be composed.
44
+ *
45
+ * @example snippet: wireHttp
44
46
  */
45
47
  export declare function defineHTTPRoutes<T extends TypedHTTPRouteMap>(routes: T): TypedHTTPRouteContract<T>;
46
48
  export declare function defineHTTPRoutes<T extends TypedHTTPRouteMap>(config: TypedHTTPRoutesGroupConfig & {