@pikku/addon-mindee 0.0.4 → 0.0.6

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 (446) hide show
  1. package/dist/.pikku/addon/agent/index.d.ts +8 -0
  2. package/dist/.pikku/addon/agent/index.d.ts.map +1 -0
  3. package/dist/.pikku/addon/agent/index.js +8 -0
  4. package/dist/.pikku/addon/agent/index.js.map +1 -0
  5. package/dist/.pikku/addon/agent/index.ts +8 -0
  6. package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +4 -0
  7. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +54 -0
  8. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts.map +1 -0
  9. package/dist/.pikku/{agent → addon/agent}/pikku-agent-types.gen.js +5 -6
  10. package/dist/.pikku/addon/agent/pikku-agent-types.gen.js.map +1 -0
  11. package/dist/.pikku/{agent → addon/agent}/pikku-agent-types.gen.ts +24 -30
  12. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.d.ts.map +1 -0
  13. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +6 -0
  14. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js.map +1 -0
  15. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.ts +6 -0
  16. package/dist/.pikku/{agent → addon/agent}/pikku-scorer-names.gen.d.ts +1 -1
  17. package/dist/.pikku/addon/auth/index.d.ts +8 -0
  18. package/dist/.pikku/addon/auth/index.d.ts.map +1 -0
  19. package/dist/.pikku/addon/auth/index.js +8 -0
  20. package/dist/.pikku/addon/auth/index.js.map +1 -0
  21. package/dist/.pikku/addon/auth/index.ts +8 -0
  22. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +126 -0
  23. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts.map +1 -0
  24. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +93 -0
  25. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js.map +1 -0
  26. package/dist/.pikku/addon/auth/pikku-auth-types.gen.ts +163 -0
  27. package/dist/.pikku/addon/channel/index.d.ts +8 -0
  28. package/dist/.pikku/addon/channel/index.d.ts.map +1 -0
  29. package/dist/.pikku/addon/channel/index.js +8 -0
  30. package/dist/.pikku/addon/channel/index.js.map +1 -0
  31. package/dist/.pikku/addon/channel/index.ts +8 -0
  32. package/dist/.pikku/{channel → addon/channel}/pikku-channel-types.gen.d.ts +5 -26
  33. package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts.map +1 -0
  34. package/dist/.pikku/{channel → addon/channel}/pikku-channel-types.gen.js +2 -19
  35. package/dist/.pikku/addon/channel/pikku-channel-types.gen.js.map +1 -0
  36. package/dist/.pikku/{channel → addon/channel}/pikku-channel-types.gen.ts +7 -49
  37. package/dist/.pikku/addon/credentials/index.d.ts +8 -0
  38. package/dist/.pikku/addon/credentials/index.d.ts.map +1 -0
  39. package/dist/.pikku/addon/credentials/index.js +8 -0
  40. package/dist/.pikku/addon/credentials/index.js.map +1 -0
  41. package/dist/.pikku/addon/credentials/index.ts +8 -0
  42. package/dist/.pikku/{credentials → addon/credentials}/pikku-credentials.gen.d.ts +4 -5
  43. package/dist/.pikku/addon/credentials/pikku-credentials.gen.d.ts.map +1 -0
  44. package/dist/.pikku/{credentials → addon/credentials}/pikku-credentials.gen.js +1 -1
  45. package/dist/.pikku/addon/credentials/pikku-credentials.gen.js.map +1 -0
  46. package/dist/.pikku/{credentials → addon/credentials}/pikku-credentials.gen.ts +5 -6
  47. package/dist/.pikku/addon/error/index.d.ts +8 -0
  48. package/dist/.pikku/addon/error/index.d.ts.map +1 -0
  49. package/dist/.pikku/addon/error/index.js +8 -0
  50. package/dist/.pikku/addon/error/index.js.map +1 -0
  51. package/dist/.pikku/addon/error/index.ts +8 -0
  52. package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +8 -0
  53. package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts.map +1 -0
  54. package/dist/.pikku/addon/error/pikku-error-types.gen.js +8 -0
  55. package/dist/.pikku/addon/error/pikku-error-types.gen.js.map +1 -0
  56. package/dist/.pikku/addon/error/pikku-error-types.gen.ts +8 -0
  57. package/dist/.pikku/addon/function/index.d.ts +8 -0
  58. package/dist/.pikku/addon/function/index.d.ts.map +1 -0
  59. package/dist/.pikku/addon/function/index.js +8 -0
  60. package/dist/.pikku/addon/function/index.js.map +1 -0
  61. package/dist/.pikku/addon/function/index.ts +8 -0
  62. package/dist/.pikku/{function → addon/function}/pikku-function-types.gen.d.ts +40 -262
  63. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts.map +1 -0
  64. package/dist/.pikku/addon/function/pikku-function-types.gen.js +117 -0
  65. package/dist/.pikku/addon/function/pikku-function-types.gen.js.map +1 -0
  66. package/dist/.pikku/{function → addon/function}/pikku-function-types.gen.ts +51 -362
  67. package/dist/.pikku/addon/function/pikku-functions-meta.gen.d.ts.map +1 -0
  68. package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +7 -0
  69. package/dist/.pikku/addon/function/pikku-functions-meta.gen.js.map +1 -0
  70. package/dist/.pikku/addon/function/pikku-functions-meta.gen.ts +7 -0
  71. package/dist/.pikku/addon/function/pikku-functions.gen.d.ts.map +1 -0
  72. package/dist/.pikku/addon/function/pikku-functions.gen.js +10 -0
  73. package/dist/.pikku/addon/function/pikku-functions.gen.js.map +1 -0
  74. package/dist/.pikku/{function → addon/function}/pikku-functions.gen.ts +3 -3
  75. package/dist/.pikku/addon/http/index.d.ts +8 -0
  76. package/dist/.pikku/addon/http/index.d.ts.map +1 -0
  77. package/dist/.pikku/addon/http/index.js +8 -0
  78. package/dist/.pikku/addon/http/index.js.map +1 -0
  79. package/dist/.pikku/addon/http/index.ts +8 -0
  80. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +50 -0
  81. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts.map +1 -0
  82. package/dist/.pikku/addon/http/pikku-http-types.gen.js +11 -0
  83. package/dist/.pikku/addon/http/pikku-http-types.gen.js.map +1 -0
  84. package/dist/.pikku/addon/http/pikku-http-types.gen.ts +62 -0
  85. package/dist/.pikku/addon/mcp/index.d.ts +8 -0
  86. package/dist/.pikku/addon/mcp/index.d.ts.map +1 -0
  87. package/dist/.pikku/addon/mcp/index.js +8 -0
  88. package/dist/.pikku/addon/mcp/index.js.map +1 -0
  89. package/dist/.pikku/addon/mcp/index.ts +8 -0
  90. package/dist/.pikku/{mcp → addon/mcp}/pikku-mcp-types.gen.d.ts +7 -36
  91. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
  92. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +16 -0
  93. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js.map +1 -0
  94. package/dist/.pikku/{mcp → addon/mcp}/pikku-mcp-types.gen.ts +6 -50
  95. package/dist/.pikku/addon/middleware/index.d.ts +8 -0
  96. package/dist/.pikku/addon/middleware/index.d.ts.map +1 -0
  97. package/dist/.pikku/addon/middleware/index.js +8 -0
  98. package/dist/.pikku/addon/middleware/index.js.map +1 -0
  99. package/dist/.pikku/addon/middleware/index.ts +8 -0
  100. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +125 -0
  101. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts.map +1 -0
  102. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +109 -0
  103. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js.map +1 -0
  104. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.ts +175 -0
  105. package/dist/.pikku/{pikku-bootstrap-scenarios.gen.d.ts → addon/pikku-bootstrap-scenarios.gen.d.ts} +1 -1
  106. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
  107. package/dist/.pikku/{pikku-bootstrap-scenarios.gen.js → addon/pikku-bootstrap-scenarios.gen.js} +1 -1
  108. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js.map +1 -0
  109. package/dist/.pikku/{pikku-bootstrap-scenarios.gen.ts → addon/pikku-bootstrap-scenarios.gen.ts} +1 -1
  110. package/dist/.pikku/{pikku-bootstrap.gen.d.ts → addon/pikku-bootstrap.gen.d.ts} +2 -2
  111. package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts.map +1 -0
  112. package/dist/.pikku/{pikku-bootstrap.gen.js → addon/pikku-bootstrap.gen.js} +2 -2
  113. package/dist/.pikku/addon/pikku-bootstrap.gen.js.map +1 -0
  114. package/dist/.pikku/{pikku-bootstrap.gen.ts → addon/pikku-bootstrap.gen.ts} +2 -2
  115. package/dist/.pikku/addon/pikku-package.gen.js +2 -2
  116. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  117. package/dist/.pikku/addon/pikku-package.gen.ts +2 -2
  118. package/dist/.pikku/{pikku-services.gen.d.ts → addon/pikku-services.gen.d.ts} +8 -8
  119. package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -0
  120. package/dist/.pikku/{pikku-services.gen.js → addon/pikku-services.gen.js} +4 -4
  121. package/dist/.pikku/addon/pikku-services.gen.js.map +1 -0
  122. package/dist/.pikku/{pikku-services.gen.ts → addon/pikku-services.gen.ts} +8 -8
  123. package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.gen.d.ts +6 -6
  124. package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.internal.gen.d.ts +6 -6
  125. package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.remote.gen.d.ts +6 -6
  126. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
  127. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
  128. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
  129. package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-meta.internal.gen.ts +2 -2
  130. package/dist/.pikku/addon/scenarios/index.d.ts +8 -0
  131. package/dist/.pikku/addon/scenarios/index.d.ts.map +1 -0
  132. package/dist/.pikku/addon/scenarios/index.js +8 -0
  133. package/dist/.pikku/addon/scenarios/index.js.map +1 -0
  134. package/dist/.pikku/addon/scenarios/index.ts +8 -0
  135. package/dist/.pikku/{workflow → addon/scenarios}/pikku-personas.gen.d.ts +2 -1
  136. package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +1 -0
  137. package/dist/.pikku/{workflow → addon/scenarios}/pikku-personas.gen.js +1 -1
  138. package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +1 -0
  139. package/dist/.pikku/{workflow → addon/scenarios}/pikku-personas.gen.ts +3 -2
  140. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
  141. package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.js +2 -2
  142. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
  143. package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.ts +3 -3
  144. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +5 -0
  145. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -0
  146. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.js.map +1 -0
  147. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.ts +4 -0
  148. package/dist/.pikku/{workflow/pikku-workflow-types.gen.d.ts → addon/scenarios/pikku-scenario-types.gen.d.ts} +57 -94
  149. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -0
  150. package/dist/.pikku/{workflow/pikku-workflow-types.gen.js → addon/scenarios/pikku-scenario-types.gen.js} +9 -16
  151. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -0
  152. package/dist/.pikku/{workflow/pikku-workflow-types.gen.ts → addon/scenarios/pikku-scenario-types.gen.ts} +90 -187
  153. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
  154. package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings-meta.gen.js +2 -2
  155. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -0
  156. package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings-meta.gen.ts +3 -3
  157. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +5 -0
  158. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -0
  159. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.js.map +1 -0
  160. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.ts +4 -0
  161. package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +5 -0
  162. package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts.map +1 -0
  163. package/dist/.pikku/addon/scenarios/schemas/register.gen.js +5 -0
  164. package/dist/.pikku/addon/scenarios/schemas/register.gen.js.map +1 -0
  165. package/dist/.pikku/addon/scenarios/schemas/register.gen.ts +4 -0
  166. package/dist/.pikku/addon/schemas/register.gen.d.ts.map +1 -0
  167. package/dist/.pikku/{schemas → addon/schemas}/register.gen.js +1 -1
  168. package/dist/.pikku/addon/schemas/register.gen.js.map +1 -0
  169. package/dist/.pikku/{schemas → addon/schemas}/register.gen.ts +1 -1
  170. package/dist/.pikku/addon/scopes/index.d.ts +8 -0
  171. package/dist/.pikku/addon/scopes/index.d.ts.map +1 -0
  172. package/dist/.pikku/addon/scopes/index.js +8 -0
  173. package/dist/.pikku/addon/scopes/index.js.map +1 -0
  174. package/dist/.pikku/addon/scopes/index.ts +8 -0
  175. package/dist/.pikku/{scopes → addon/scopes}/pikku-personas.gen.d.ts +5 -13
  176. package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts.map +1 -0
  177. package/dist/.pikku/{scopes → addon/scopes}/pikku-personas.gen.js +1 -1
  178. package/dist/.pikku/addon/scopes/pikku-personas.gen.js.map +1 -0
  179. package/dist/.pikku/{scopes → addon/scopes}/pikku-personas.gen.ts +5 -16
  180. package/dist/.pikku/{scopes → addon/scopes}/pikku-roles.gen.d.ts +1 -1
  181. package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts.map +1 -0
  182. package/dist/.pikku/addon/scopes/pikku-roles.gen.js.map +1 -0
  183. package/dist/.pikku/{scopes → addon/scopes}/pikku-roles.gen.ts +1 -1
  184. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +6 -0
  185. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts.map +1 -0
  186. package/dist/.pikku/{scopes → addon/scopes}/pikku-scope-types.gen.js +1 -1
  187. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js.map +1 -0
  188. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.ts +5 -0
  189. package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.d.ts +1 -1
  190. package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts.map +1 -0
  191. package/dist/.pikku/addon/scopes/pikku-scopes.gen.js.map +1 -0
  192. package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.ts +1 -1
  193. package/dist/.pikku/addon/secrets/index.d.ts +9 -0
  194. package/dist/.pikku/addon/secrets/index.d.ts.map +1 -0
  195. package/dist/.pikku/addon/secrets/index.js +9 -0
  196. package/dist/.pikku/addon/secrets/index.js.map +1 -0
  197. package/dist/.pikku/addon/secrets/index.ts +9 -0
  198. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +5 -0
  199. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts.map +1 -0
  200. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +5 -0
  201. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js.map +1 -0
  202. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.ts +4 -0
  203. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +18 -0
  204. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts.map +1 -0
  205. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +19 -0
  206. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js.map +1 -0
  207. package/dist/.pikku/addon/secrets/pikku-secrets.gen.ts +28 -0
  208. package/dist/.pikku/{pikku-meta-service.gen.d.ts → addon/services/pikku-meta-service.gen.d.ts} +1 -1
  209. package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts.map +1 -0
  210. package/dist/.pikku/{pikku-meta-service.gen.js → addon/services/pikku-meta-service.gen.js} +2 -2
  211. package/dist/.pikku/addon/services/pikku-meta-service.gen.js.map +1 -0
  212. package/dist/.pikku/{pikku-meta-service.gen.ts → addon/services/pikku-meta-service.gen.ts} +2 -2
  213. package/dist/.pikku/addon/setup/index.d.ts +9 -0
  214. package/dist/.pikku/addon/setup/index.d.ts.map +1 -0
  215. package/dist/.pikku/addon/setup/index.js +9 -0
  216. package/dist/.pikku/addon/setup/index.js.map +1 -0
  217. package/dist/.pikku/addon/setup/index.ts +9 -0
  218. package/dist/.pikku/addon/{pikku-addon-types.gen.d.ts → setup/pikku-addon-setup-types.gen.d.ts} +6 -5
  219. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts.map +1 -0
  220. package/dist/.pikku/addon/{pikku-addon-types.gen.js → setup/pikku-addon-setup-types.gen.js} +2 -2
  221. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js.map +1 -0
  222. package/dist/.pikku/addon/{pikku-addon-types.gen.ts → setup/pikku-addon-setup-types.gen.ts} +5 -4
  223. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +67 -0
  224. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts.map +1 -0
  225. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +88 -0
  226. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js.map +1 -0
  227. package/dist/.pikku/addon/setup/pikku-setup-types.gen.ts +105 -0
  228. package/dist/.pikku/addon/surface-usage.gen.json +1702 -0
  229. package/dist/.pikku/addon/trigger/index.d.ts +8 -0
  230. package/dist/.pikku/addon/trigger/index.d.ts.map +1 -0
  231. package/dist/.pikku/addon/trigger/index.js +8 -0
  232. package/dist/.pikku/addon/trigger/index.js.map +1 -0
  233. package/dist/.pikku/addon/trigger/index.ts +8 -0
  234. package/dist/.pikku/{trigger → addon/trigger}/pikku-trigger-types.gen.d.ts +6 -37
  235. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts.map +1 -0
  236. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +13 -0
  237. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js.map +1 -0
  238. package/dist/.pikku/{trigger → addon/trigger}/pikku-trigger-types.gen.ts +9 -45
  239. package/dist/.pikku/addon/variables/index.d.ts +9 -0
  240. package/dist/.pikku/addon/variables/index.d.ts.map +1 -0
  241. package/dist/.pikku/addon/variables/index.js +9 -0
  242. package/dist/.pikku/addon/variables/index.js.map +1 -0
  243. package/dist/.pikku/addon/variables/index.ts +9 -0
  244. package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +5 -0
  245. package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts.map +1 -0
  246. package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +5 -0
  247. package/dist/.pikku/addon/variables/pikku-variable-types.gen.js.map +1 -0
  248. package/dist/.pikku/addon/variables/pikku-variable-types.gen.ts +4 -0
  249. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +22 -0
  250. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -0
  251. package/dist/.pikku/addon/variables/pikku-variables.gen.js +21 -0
  252. package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -0
  253. package/dist/.pikku/addon/variables/pikku-variables.gen.ts +32 -0
  254. package/dist/.pikku/addon/workflow/index.d.ts +8 -0
  255. package/dist/.pikku/addon/workflow/index.d.ts.map +1 -0
  256. package/dist/.pikku/addon/workflow/index.js +8 -0
  257. package/dist/.pikku/addon/workflow/index.js.map +1 -0
  258. package/dist/.pikku/addon/workflow/index.ts +8 -0
  259. package/dist/.pikku/{workflow → addon/workflow}/pikku-scenario-step-map.gen.d.ts +1 -1
  260. package/dist/.pikku/{workflow → addon/workflow}/pikku-workflow-map.gen.d.ts +1 -1
  261. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +106 -0
  262. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts.map +1 -0
  263. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +16 -0
  264. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js.map +1 -0
  265. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.ts +200 -0
  266. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +1 -0
  267. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +7 -0
  268. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -0
  269. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
  270. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +5 -0
  271. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts.map +1 -0
  272. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +5 -0
  273. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js.map +1 -0
  274. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.ts +3 -0
  275. package/dist/src/functions/invoicePredict.function.d.ts +4 -4
  276. package/dist/src/functions/invoicePredict.function.d.ts.map +1 -1
  277. package/dist/src/functions/invoicePredict.function.js +1 -1
  278. package/dist/src/functions/invoicePredict.function.js.map +1 -1
  279. package/dist/src/functions/receiptPredict.function.d.ts +4 -4
  280. package/dist/src/functions/receiptPredict.function.d.ts.map +1 -1
  281. package/dist/src/functions/receiptPredict.function.js +1 -1
  282. package/dist/src/functions/receiptPredict.function.js.map +1 -1
  283. package/dist/src/mindee-api.service.d.ts +1 -1
  284. package/dist/src/mindee-api.service.d.ts.map +1 -1
  285. package/dist/src/services.js +1 -1
  286. package/dist/src/services.js.map +1 -1
  287. package/dist/types/application-types.d.ts +1 -6
  288. package/package.json +12 -9
  289. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +0 -1
  290. package/dist/.pikku/addon/pikku-addon-types.gen.js.map +0 -1
  291. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +0 -4
  292. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +0 -53
  293. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +0 -1
  294. package/dist/.pikku/agent/pikku-agent-types.gen.js.map +0 -1
  295. package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts.map +0 -1
  296. package/dist/.pikku/agent/pikku-model-aliases.gen.js +0 -6
  297. package/dist/.pikku/agent/pikku-model-aliases.gen.js.map +0 -1
  298. package/dist/.pikku/agent/pikku-model-aliases.gen.ts +0 -6
  299. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +0 -1
  300. package/dist/.pikku/channel/pikku-channel-types.gen.js.map +0 -1
  301. package/dist/.pikku/console/pikku-node-types.gen.d.ts +0 -7
  302. package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +0 -1
  303. package/dist/.pikku/console/pikku-node-types.gen.js +0 -2
  304. package/dist/.pikku/console/pikku-node-types.gen.js.map +0 -1
  305. package/dist/.pikku/console/pikku-node-types.gen.ts +0 -8
  306. package/dist/.pikku/credentials/pikku-credentials.gen.d.ts.map +0 -1
  307. package/dist/.pikku/credentials/pikku-credentials.gen.js.map +0 -1
  308. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +0 -1
  309. package/dist/.pikku/function/pikku-function-types.gen.js +0 -351
  310. package/dist/.pikku/function/pikku-function-types.gen.js.map +0 -1
  311. package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +0 -1
  312. package/dist/.pikku/function/pikku-functions-meta.gen.js +0 -7
  313. package/dist/.pikku/function/pikku-functions-meta.gen.js.map +0 -1
  314. package/dist/.pikku/function/pikku-functions-meta.gen.ts +0 -7
  315. package/dist/.pikku/function/pikku-functions.gen.d.ts.map +0 -1
  316. package/dist/.pikku/function/pikku-functions.gen.js +0 -10
  317. package/dist/.pikku/function/pikku-functions.gen.js.map +0 -1
  318. package/dist/.pikku/http/pikku-http-types.gen.d.ts +0 -98
  319. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +0 -1
  320. package/dist/.pikku/http/pikku-http-types.gen.js +0 -50
  321. package/dist/.pikku/http/pikku-http-types.gen.js.map +0 -1
  322. package/dist/.pikku/http/pikku-http-types.gen.ts +0 -119
  323. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +0 -1
  324. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +0 -38
  325. package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +0 -1
  326. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +0 -1
  327. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +0 -1
  328. package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +0 -1
  329. package/dist/.pikku/pikku-bootstrap.gen.js.map +0 -1
  330. package/dist/.pikku/pikku-meta-service.gen.d.ts.map +0 -1
  331. package/dist/.pikku/pikku-meta-service.gen.js.map +0 -1
  332. package/dist/.pikku/pikku-services.gen.d.ts.map +0 -1
  333. package/dist/.pikku/pikku-services.gen.js.map +0 -1
  334. package/dist/.pikku/pikku-types.gen.d.ts +0 -13
  335. package/dist/.pikku/pikku-types.gen.d.ts.map +0 -1
  336. package/dist/.pikku/pikku-types.gen.js +0 -19
  337. package/dist/.pikku/pikku-types.gen.js.map +0 -1
  338. package/dist/.pikku/pikku-types.gen.ts +0 -24
  339. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +0 -24
  340. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +0 -1
  341. package/dist/.pikku/queue/pikku-queue-types.gen.js +0 -17
  342. package/dist/.pikku/queue/pikku-queue-types.gen.js.map +0 -1
  343. package/dist/.pikku/queue/pikku-queue-types.gen.ts +0 -27
  344. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +0 -1
  345. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +0 -7
  346. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +0 -1
  347. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +0 -1
  348. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +0 -1
  349. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +0 -5
  350. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +0 -1
  351. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +0 -1
  352. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.ts +0 -4
  353. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +0 -1
  354. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +0 -1
  355. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +0 -5
  356. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +0 -1
  357. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +0 -1
  358. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.ts +0 -4
  359. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +0 -5
  360. package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +0 -1
  361. package/dist/.pikku/scenarios/schemas/register.gen.js +0 -5
  362. package/dist/.pikku/scenarios/schemas/register.gen.js.map +0 -1
  363. package/dist/.pikku/scenarios/schemas/register.gen.ts +0 -4
  364. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +0 -22
  365. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +0 -1
  366. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +0 -17
  367. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +0 -1
  368. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +0 -25
  369. package/dist/.pikku/schemas/register.gen.d.ts.map +0 -1
  370. package/dist/.pikku/schemas/register.gen.js.map +0 -1
  371. package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +0 -1
  372. package/dist/.pikku/scopes/pikku-personas.gen.js.map +0 -1
  373. package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +0 -1
  374. package/dist/.pikku/scopes/pikku-roles.gen.js.map +0 -1
  375. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +0 -8
  376. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +0 -1
  377. package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +0 -1
  378. package/dist/.pikku/scopes/pikku-scope-types.gen.ts +0 -7
  379. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +0 -1
  380. package/dist/.pikku/scopes/pikku-scopes.gen.js.map +0 -1
  381. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +0 -6
  382. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +0 -1
  383. package/dist/.pikku/secrets/pikku-secret-types.gen.js +0 -5
  384. package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +0 -1
  385. package/dist/.pikku/secrets/pikku-secret-types.gen.ts +0 -5
  386. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +0 -22
  387. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +0 -1
  388. package/dist/.pikku/secrets/pikku-secrets.gen.js +0 -21
  389. package/dist/.pikku/secrets/pikku-secrets.gen.js.map +0 -1
  390. package/dist/.pikku/secrets/pikku-secrets.gen.ts +0 -34
  391. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +0 -1
  392. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +0 -34
  393. package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +0 -1
  394. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +0 -6
  395. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +0 -1
  396. package/dist/.pikku/variables/pikku-variable-types.gen.js +0 -5
  397. package/dist/.pikku/variables/pikku-variable-types.gen.js.map +0 -1
  398. package/dist/.pikku/variables/pikku-variable-types.gen.ts +0 -5
  399. package/dist/.pikku/variables/pikku-variables.gen.d.ts +0 -25
  400. package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +0 -1
  401. package/dist/.pikku/variables/pikku-variables.gen.js +0 -23
  402. package/dist/.pikku/variables/pikku-variables.gen.js.map +0 -1
  403. package/dist/.pikku/variables/pikku-variables.gen.ts +0 -36
  404. package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +0 -1
  405. package/dist/.pikku/workflow/pikku-personas.gen.js.map +0 -1
  406. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +0 -1
  407. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +0 -1
  408. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +0 -1
  409. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +0 -7
  410. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +0 -1
  411. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +0 -9
  412. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +0 -5
  413. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts.map +0 -1
  414. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +0 -5
  415. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js.map +0 -1
  416. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +0 -3
  417. /package/dist/.pikku/{agent → addon/agent}/pikku-model-aliases.gen.d.ts +0 -0
  418. /package/dist/.pikku/{credentials → addon/credentials}/pikku-credentials-meta.gen.json +0 -0
  419. /package/dist/.pikku/{function → addon/function}/pikku-functions-meta-verbose.gen.json +0 -0
  420. /package/dist/.pikku/{function → addon/function}/pikku-functions-meta.gen.d.ts +0 -0
  421. /package/dist/.pikku/{function → addon/function}/pikku-functions-meta.gen.json +0 -0
  422. /package/dist/.pikku/{function → addon/function}/pikku-functions.gen.d.ts +0 -0
  423. /package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-meta.internal.gen.d.ts +0 -0
  424. /package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-meta.internal.gen.json +0 -0
  425. /package/dist/.pikku/{scenarios → addon/scenarios}/features.gen.json +0 -0
  426. /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.d.ts +0 -0
  427. /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.json +0 -0
  428. /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions.gen.js +0 -0
  429. /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings-meta.gen.d.ts +0 -0
  430. /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings.gen.js +0 -0
  431. /package/dist/.pikku/{schemas → addon/schemas}/register.gen.d.ts +0 -0
  432. /package/dist/.pikku/{schemas → addon/schemas}/schemas/CredentialSchema_mindee.schema.json +0 -0
  433. /package/dist/.pikku/{schemas → addon/schemas}/schemas/InvoicePredictInput.schema.json +0 -0
  434. /package/dist/.pikku/{schemas → addon/schemas}/schemas/InvoicePredictOutput.schema.json +0 -0
  435. /package/dist/.pikku/{schemas → addon/schemas}/schemas/ReceiptPredictInput.schema.json +0 -0
  436. /package/dist/.pikku/{schemas → addon/schemas}/schemas/ReceiptPredictOutput.schema.json +0 -0
  437. /package/dist/.pikku/{schemas → addon/schemas}/schemas/VariableSchema_MINDEE_BASE_URL.schema.json +0 -0
  438. /package/dist/.pikku/{scopes → addon/scopes}/pikku-personas-meta.gen.json +0 -0
  439. /package/dist/.pikku/{scopes → addon/scopes}/pikku-roles-meta.gen.json +0 -0
  440. /package/dist/.pikku/{scopes → addon/scopes}/pikku-roles.gen.js +0 -0
  441. /package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes-meta.gen.json +0 -0
  442. /package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.js +0 -0
  443. /package/dist/.pikku/{secrets → addon/secrets}/pikku-secrets-meta.gen.json +0 -0
  444. /package/dist/.pikku/{variables → addon/variables}/pikku-variables-meta.gen.json +0 -0
  445. /package/dist/.pikku/{workflow → addon/workflow}/personas.gen.json +0 -0
  446. /package/dist/.pikku/{workflow → addon/workflow}/pikku-workflow-wirings-meta.gen.d.ts +0 -0
@@ -1,23 +1,28 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.103
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
- * Core function, middleware, and permission types for all wirings
5
+ * Core function types for all wirings
6
6
  */
7
- import type { CorePikkuMiddleware, CorePermissionGroup, ListInput, ListOutput, PikkuWire, PickRequired, SecretlessServices } from '@pikku/core';
8
- import type { CorePikkuFunctionConfig, CorePikkuSessionlessFunctionConfig, CorePikkuAuth, CorePikkuAuthConfig, CorePikkuPermission } from '@pikku/core/function';
9
- import { CreateWireServices } from '@pikku/core/ecosystem';
7
+ import type { PickRequired } from '@pikku/core/utils';
8
+ import type { ListInput, ListOutput } from '@pikku/core/function';
9
+ import type { CorePermissionGroup } from '@pikku/core/function';
10
+ import type { PikkuWire, SecretlessServices } from '@pikku/core/types';
11
+ import type { CorePikkuFunctionConfig, CorePikkuSessionlessFunctionConfig, CorePikkuPermission } from '@pikku/core/function';
10
12
  import type { NodeType } from '@pikku/core/node';
13
+ import type { PikkuMiddleware } from '../middleware/pikku-middleware-types.gen.js';
14
+ import type { PikkuPermission } from '../auth/pikku-auth-types.gen.js';
11
15
  import type { ScopeId } from '../scopes/pikku-scopes.gen.js';
16
+ type CredentialsMap = Record<string, unknown>;
12
17
  import type { StandardSchemaV1 } from '@standard-schema/spec';
13
18
  import { CorePikkuFunction, CorePikkuFunctionSessionless } from '@pikku/core/function';
14
- import type { UserSession } from '../../types/application-types.d.js';
15
- import type { SingletonServices } from '../../types/application-types.d.js';
16
- import type { Services } from '../../types/application-types.d.js';
17
- import type { Config } from '../../types/application-types.d.js';
19
+ import type { UserSession } from '../../../types/application-types.d.js';
20
+ import type { SingletonServices } from '../../../types/application-types.d.js';
21
+ import type { Services } from '../../../types/application-types.d.js';
18
22
  import type { TypedPikkuRPC, FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js';
19
- import type { RequiredSingletonServices, RequiredWireServices } from '../pikku-services.gen.js';
20
- import type { TypedWorkflow, TypedScenario, TypedPersonas } from '../workflow/pikku-workflow-types.gen.js';
23
+ import type { RequiredSingletonServices } from '../pikku-services.gen.js';
24
+ import type { TypedWorkflow } from '../workflow/pikku-workflow-types.gen.js';
25
+ import type { TypedScenario, TypedPersonas } from '../scenarios/pikku-scenario-types.gen.js';
21
26
  export type { SingletonServices as SingletonServices };
22
27
  export type { Services as Services };
23
28
  export type Session = UserSession;
@@ -28,11 +33,19 @@ export type Session = UserSession;
28
33
  * services **non-optional** at every call site. A service is optional only when
29
34
  * nothing destructures it — in which case it is never created either. This is
30
35
  * why an `if (!service)` guard inside a function body is always dead code.
36
+ *
37
+ * Only the wire-services half lives here. The singleton half is declared by the
38
+ * auth and middleware leaves that use it, because whether a name earns its
39
+ * export is measured rather than chosen: emit declarations for a project and
40
+ * `WiredServices` is named by 147 of its `.d.ts` files, while the singleton
41
+ * intersection is named by none outside the leaves that declare it. Export the
42
+ * latter and it is a compatibility promise nothing asked for; unexport
43
+ * `WiredServices` and every wired module inlines the intersection instead,
44
+ * which asks it to name each member service through a specifier it does not
45
+ * have — 3308 TS2883s. `--noEmit` cannot surface any of that, so re-check with
46
+ * `tsc --declaration --emitDeclarationOnly` before moving either one.
31
47
  */
32
- export type WiredSingletonServices = RequiredSingletonServices & SingletonServices;
33
48
  export type WiredServices = SecretlessServices<RequiredSingletonServices & Services>;
34
- /** `WiredSingletonServices` without `secrets`, for auth gates. */
35
- export type WiredAuthServices = SecretlessServices<WiredSingletonServices>;
36
49
  /**
37
50
  * Inline node configuration for function definitions.
38
51
  */
@@ -42,162 +55,6 @@ export type NodeConfig = {
42
55
  type: NodeType;
43
56
  errorOutput?: boolean;
44
57
  };
45
- /**
46
- * Type-safe API permission definition that integrates with your application's session type.
47
- * Use this to define authorization logic for your API endpoints.
48
- *
49
- * @template In - The input type that the permission check will receive
50
- * @template RequiredServices - The services required for this permission check
51
- */
52
- export type PikkuPermission<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = CorePikkuPermission<In, RequiredServices, PikkuWire<In, never, false, Session>>;
53
- /**
54
- * Type-safe middleware definition that can access your application's services and session.
55
- * Use this to define reusable middleware that can be applied to multiple wirings.
56
- *
57
- * @template RequiredServices - The services required for this middleware
58
- */
59
- export type PikkuMiddleware<RequiredServices extends SingletonServices = WiredSingletonServices> = CorePikkuMiddleware<RequiredServices>;
60
- /**
61
- * Configuration object for creating a permission with metadata
62
- */
63
- export type PikkuPermissionConfig<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = {
64
- /** The permission function */
65
- func: PikkuPermission<In, RequiredServices>;
66
- /** Optional human-readable name for the permission */
67
- name?: string;
68
- /** Optional description of what the permission checks */
69
- description?: string;
70
- };
71
- /**
72
- * Factory function for creating permissions with tree-shaking support.
73
- * Supports both direct function and configuration object syntax.
74
- *
75
- * @example
76
- * ```typescript
77
- * // Direct function syntax
78
- * const permission = pikkuPermission(async ({ logger }, data, { session }) => {
79
- * const session = await session?.get()
80
- * return session?.role === 'admin'
81
- * })
82
- *
83
- * // Configuration object syntax with metadata
84
- * const adminPermission = pikkuPermission({
85
- * name: 'Admin Permission',
86
- * description: 'Checks if user has admin role',
87
- * func: async ({ logger }, data, { session }) => {
88
- * const session = await session?.get()
89
- * return session?.role === 'admin'
90
- * }
91
- * })
92
- * ```
93
- */
94
- export declare const pikkuPermission: <In>(permission: PikkuPermission<In> | PikkuPermissionConfig<In>) => PikkuPermission<In>;
95
- /**
96
- * Type-safe auth-only permission that only needs services and session.
97
- * Use this for upfront authorization gates (MCP tools, AI agents, workflows)
98
- * where request data isn't available yet.
99
- *
100
- * @template RequiredServices - The services required for this auth check
101
- */
102
- export type PikkuAuth<RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices> = CorePikkuAuth<RequiredServices, Session>;
103
- /**
104
- * Configuration object for creating an auth permission with metadata
105
- */
106
- export type PikkuAuthConfig<RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices> = CorePikkuAuthConfig<RequiredServices, Session>;
107
- /**
108
- * Factory function for creating auth-only permissions with tree-shaking support.
109
- * Auth permissions only receive services and session (no request data),
110
- * making them evaluable before request data is available.
111
- *
112
- * @example
113
- * \`\`\`typescript
114
- * const isAuthenticated = pikkuAuth(async ({ logger }, session) => {
115
- * return !!session
116
- * })
117
- *
118
- * const isAdmin = pikkuAuth({
119
- * name: 'Admin Auth',
120
- * description: 'Checks if user is an admin',
121
- * func: async ({ logger }, session) => {
122
- * return session?.role === 'admin'
123
- * }
124
- * })
125
- * \`\`\`
126
- */
127
- export declare const pikkuAuth: <RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices>(auth: PikkuAuth<RequiredServices> | PikkuAuthConfig<RequiredServices>) => PikkuPermission<any, any>;
128
- /**
129
- * Configuration object for creating middleware with metadata
130
- */
131
- export type PikkuMiddlewareConfig<RequiredServices extends SingletonServices = WiredSingletonServices> = {
132
- /** The middleware function */
133
- func: PikkuMiddleware<RequiredServices>;
134
- /** Optional human-readable name for the middleware */
135
- name?: string;
136
- /** Optional description of what the middleware does */
137
- description?: string;
138
- };
139
- /**
140
- * Factory function for creating middleware with tree-shaking support.
141
- * Supports both direct function and configuration object syntax.
142
- *
143
- * @example
144
- * ```typescript
145
- * // Direct function syntax
146
- * const middleware = pikkuMiddleware(({ logger }, wires, next) => {
147
- * logger.info('Middleware executed')
148
- * await next()
149
- * })
150
- *
151
- * // Configuration object syntax with metadata
152
- * const logMiddleware = pikkuMiddleware({
153
- * name: 'Request Logger',
154
- * description: 'Logs all incoming requests',
155
- * func: async ({ logger }, wires, next) => {
156
- * logger.info('Request started')
157
- * await next()
158
- * }
159
- * })
160
- * ```
161
- */
162
- export declare const pikkuMiddleware: <RequiredServices extends SingletonServices = WiredSingletonServices>(middleware: PikkuMiddleware<RequiredServices> | PikkuMiddlewareConfig<RequiredServices>) => PikkuMiddleware<RequiredServices>;
163
- /**
164
- * Factory function for creating middleware factories
165
- * Use this when your middleware needs configuration/input parameters
166
- *
167
- * @example
168
- * ```typescript
169
- * export const logMiddleware = pikkuMiddlewareFactory<LogOptions>(({
170
- * message,
171
- * level = 'info'
172
- * }) => {
173
- * return pikkuMiddleware(async ({ logger }, next) => {
174
- * logger[level](message)
175
- * await next()
176
- * })
177
- * })
178
- * ```
179
- */
180
- export declare const pikkuMiddlewareFactory: <In = any>(factory: (input: In) => PikkuMiddleware) => ((input: In) => PikkuMiddleware);
181
- /**
182
- * Factory function for creating permission factories
183
- * Use this when your permission needs configuration/input parameters
184
- *
185
- * @example
186
- * ```typescript
187
- * export const requireRole = pikkuPermissionFactory<{ role: string }>(({
188
- * role
189
- * }) => {
190
- * return pikkuPermission(async ({ logger }, data, { session }) => {
191
- * if (!session || session.role !== role) {
192
- * logger.warn(`Permission denied: required role '${role}'`)
193
- * return false
194
- * }
195
- * return true
196
- * })
197
- * })
198
- * ```
199
- */
200
- export declare const pikkuPermissionFactory: <In = any>(factory: (input: In) => PikkuPermission<any>) => ((input: In) => PikkuPermission<any>);
201
58
  /**
202
59
  * A function that generates a human-readable description of a pending approval action.
203
60
  * Used by AI agents to show meaningful approval prompts instead of raw tool arguments.
@@ -232,7 +89,7 @@ export declare const pikkuApprovalDescription: <In = unknown, RequiredServices e
232
89
  * type vary with its return type and cost a `func` written against the
233
90
  * `PikkuFunction | PikkuFunctionSessionless` union its contextual typing.
234
91
  */
235
- 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>, RequiredWires>>;
92
+ 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>>;
236
93
  /**
237
94
  * A session-aware API function that requires user authentication.
238
95
  * Use this for protected endpoints that need access to user session data.
@@ -241,7 +98,7 @@ export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires ex
241
98
  * @template Out - The output type that the function returns
242
99
  * @template RequiredServices - Services required by this function
243
100
  */
244
- 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>, RequiredWires>>;
101
+ 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>>;
245
102
  /**
246
103
  * Helper type to infer the output type from a Standard Schema
247
104
  */
@@ -254,12 +111,16 @@ export type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output>
254
111
  * @template Out - The output type
255
112
  * @template PikkuFunc - The function type (can be narrowed to PikkuFunction or PikkuFunctionSessionless)
256
113
  */
257
- 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> = CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId>;
114
+ 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'> & {
115
+ node?: NodeConfig;
116
+ };
258
117
  /**
259
118
  * {@link PikkuFunctionConfig} for a function that runs without a session.
260
119
  * Has no `scopes`: an anonymous caller holds none, so none can ever be met.
261
120
  */
262
- export 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> = CorePikkuSessionlessFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema>;
121
+ 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'> & {
122
+ node?: NodeConfig;
123
+ };
263
124
  /**
264
125
  * Configuration object for Pikku functions with Zod schema validation.
265
126
  * Use this when you want to define input/output schemas using Zod.
@@ -270,10 +131,11 @@ type SchemaInferred<S, Fallback = unknown> = S extends StandardSchemaV1 ? InferS
270
131
  * Schema-overload variant for pikkuFunc. Derived from CorePikkuFunctionConfig
271
132
  * so adding a field on the core type automatically propagates here.
272
133
  */
273
- export 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'> & {
134
+ 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'> & {
274
135
  func: PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>;
275
136
  input?: InputSchema;
276
137
  output?: OutputSchema;
138
+ node?: NodeConfig;
277
139
  permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
278
140
  approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
279
141
  };
@@ -305,7 +167,6 @@ export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 |
305
167
  */
306
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'>;
307
169
  export declare function pikkuFunc<In, Out = unknown>(func: PikkuFunction<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
308
- export type PikkuListFunction<F extends Record<string, unknown> = {}, Row = unknown, S extends string = never> = PikkuFunction<ListInput<F, S>, ListOutput<Row>, 'session' | 'rpc'> | PikkuFunctionSessionless<ListInput<F, S>, ListOutput<Row>, 'session' | 'rpc'>;
309
170
  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">;
310
171
  /**
311
172
  * Configuration object for sessionless Pikku functions with Zod schema validation.
@@ -315,10 +176,11 @@ export declare const pikkuListFunc: <F extends Record<string, unknown> = {}, Row
315
176
  * CorePikkuSessionlessFunctionConfig to stay in sync with the generic-typed
316
177
  * config — so it has no `scopes` either.
317
178
  */
318
- export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices> = Omit<CorePikkuSessionlessFunctionConfig<PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>>, 'func' | 'input' | 'output' | 'permissions' | 'approvalDescription'> & {
179
+ type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices> = Omit<CorePikkuSessionlessFunctionConfig<PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>>, 'func' | 'input' | 'output' | 'permissions' | 'approvalDescription' | 'node'> & {
319
180
  func: PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>;
320
181
  input?: InputSchema;
321
182
  output?: OutputSchema;
183
+ node?: NodeConfig;
322
184
  permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
323
185
  approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
324
186
  };
@@ -364,7 +226,7 @@ export declare function pikkuSessionlessFunc<In, Out = unknown, RequiredServices
364
226
  * })
365
227
  * ```
366
228
  */
367
- export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, "session" | "rpc"> | PikkuFunctionSessionlessConfig<void, void, "session" | "rpc">) => PikkuFunctionSessionlessConfig<void, void, "rpc" | "session", PikkuFunctionSessionless<void, void, "rpc" | "session", WiredServices, unknown>, undefined, undefined>;
229
+ export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, "session" | "rpc"> | PikkuFunctionSessionlessConfig<void, void, "session" | "rpc">) => PikkuFunctionConfig<void, void, "session" | "rpc">;
368
230
  /**
369
231
  * References a registered function by name for use in any wiring.
370
232
  * Works for both local and addon functions — resolves via RPC at runtime.
@@ -402,90 +264,6 @@ export declare const ref: <Name extends keyof FlattenedRPCMap>(rpcName: Name) =>
402
264
  * ```
403
265
  */
404
266
  export declare function pikkuRemoteChannelFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: Omit<PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>, 'func'>): PikkuFunctionConfig<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, 'session' | 'rpc'>;
405
- /**
406
- * Creates a Pikku config factory.
407
- * Use this to define your application's configuration factory.
408
- *
409
- * @param func - Config factory function that returns your application's config
410
- * @returns The config factory function
411
- *
412
- * @example
413
- * ```typescript
414
- * export const createConfig = pikkuConfig(async () => {
415
- * return {
416
- * apiUrl: process.env.API_URL || 'http://localhost:3000',
417
- * dbUrl: process.env.DATABASE_URL
418
- * }
419
- * })
420
- * ```
421
- */
422
- export declare const pikkuConfig: (func: (variables?: any, ...args: any[]) => Promise<Config>) => (variables?: any, ...args: any[]) => Promise<Config>;
423
- /**
424
- * Creates a Pikku singleton services factory.
425
- * Use this to define services that are created once and shared across all requests.
426
- *
427
- * @param func - Singleton services factory function
428
- * @returns The singleton services factory function
429
- *
430
- * @example
431
- * ```typescript
432
- * export const createSingletonServices = pikkuServices(async (config, existingServices) => {
433
- * return {
434
- * config,
435
- * logger: new CustomLogger(),
436
- * db: await createDatabaseConnection(config.dbUrl)
437
- * }
438
- * })
439
- * ```
440
- */
441
- export declare const pikkuServices: (func: (config: Config, existingServices: Partial<SingletonServices>) => Promise<Partial<Omit<RequiredSingletonServices, "auth">>>) => (config: Config, existingServices?: Partial<SingletonServices>) => Promise<RequiredSingletonServices>;
442
- /**
443
- * Creates a Pikku wire services factory.
444
- * Use this to define services that are created per-request/session.
445
- *
446
- * @param func - Wire services factory function
447
- * @returns The wire services factory function
448
- *
449
- * @example
450
- * ```typescript
451
- * export const createWireServices = pikkuWireServices(async (services, wire) => {
452
- * const session = await wire.session?.get()
453
- * return {
454
- * userCache: new UserCache(session?.userId)
455
- * }
456
- * })
457
- * ```
458
- */
459
- export declare const pikkuWireServices: (func: (services: SingletonServices, wire: any) => Promise<RequiredWireServices>) => CreateWireServices;
460
- /**
461
- * Tag-scoped middleware. Applies to any wiring that carries the matching tag.
462
- *
463
- * @example
464
- * addTagMiddleware('admin', [adminMiddleware])
465
- */
466
- export declare const addTagMiddleware: (tag: string, middleware: PikkuMiddleware[]) => void;
467
- /**
468
- * Wire-agnostic global middleware. Runs at the top of every wiring's
469
- * middleware chain — before wire-, tag-, and function-level entries.
470
- *
471
- * Resolution order: global -> wire -> tag -> function.
472
- *
473
- * @example
474
- * addGlobalMiddleware([telemetryMiddleware])
475
- */
476
- export declare const addGlobalMiddleware: (middleware: PikkuMiddleware[]) => void;
477
- /**
478
- * Wire-agnostic global permissions. Runs at the top of every wiring's
479
- * permission resolution — before wire-, tag-, and function-level entries.
480
- *
481
- * Resolution order: global -> wire -> tag -> function.
482
- *
483
- * @example
484
- * addGlobalPermission([signedInUser])
485
- */
486
- export declare const addGlobalPermission: <In = unknown>(permissions: CorePermissionGroup<PikkuPermission<In>> | PikkuPermission<In>[]) => void;
487
- export { wireAddon, wireRemoteAddon } from '@pikku/core/rpc';
488
- export type { WireAddonConfig, WireRemoteAddonConfig, RemoteAddonAuth } from '@pikku/core/rpc';
489
267
  /**
490
268
  * Addon contract references. Generated from each wired addon's published
491
269
  * contract metadata — no addon source is imported. Functions are proxied via
@@ -0,0 +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;AACrE,OAAO,KAAK,EAA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AM,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"}
@@ -0,0 +1,117 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.111
3
+ */
4
+ /**
5
+ * Core function types for all wirings
6
+ */
7
+ /**
8
+ * Factory function for creating approval description functions with tree-shaking support.
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * export const deleteTodoApproval = pikkuApprovalDescription(
13
+ * async ({ todoStore }, { id }) => {
14
+ * const todo = await todoStore.get(id)
15
+ * return \`Delete todo: "${todo.title}"\`
16
+ * }
17
+ * )
18
+ * ```
19
+ */
20
+ export const pikkuApprovalDescription = (fn) => {
21
+ return fn;
22
+ };
23
+ export function pikkuFunc(func) {
24
+ return typeof func === 'function' ? { func } : func;
25
+ }
26
+ export const pikkuListFunc = (config) => {
27
+ return pikkuFunc(config);
28
+ };
29
+ export function pikkuSessionlessFunc(func) {
30
+ return typeof func === 'function' ? { func } : func;
31
+ }
32
+ /**
33
+ * Creates a function that takes no input and returns no output.
34
+ * Useful for health checks, triggers, or cleanup operations.
35
+ *
36
+ * @param func - Function definition, either direct function or configuration object
37
+ * @returns The normalized configuration object
38
+ *
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
+ * ```
47
+ */
48
+ export const pikkuVoidFunc = (func) => {
49
+ return typeof func === 'function' ? { func } : func;
50
+ };
51
+ /**
52
+ * References a registered function by name for use in any wiring.
53
+ * Works for both local and addon functions — resolves via RPC at runtime.
54
+ *
55
+ * @template Name - The function name (must be a key in FlattenedRPCMap)
56
+ * @param rpcName - The name of the function to reference
57
+ * @returns A Pikku function config that proxies calls via RPC
58
+ *
59
+ * @example
60
+ * ```typescript
61
+ * // Use in agent tools
62
+ * tools: [ref('todos:listTodos'), ref('myLocalFunc')]
63
+ *
64
+ * // Use in HTTP wiring
65
+ * wireHTTP({ route: '/greet', method: 'post', func: ref('greet') })
66
+ * ```
67
+ */
68
+ export const ref = (rpcName) => {
69
+ return {
70
+ func: async (_services, data, { rpc }) => {
71
+ return rpc.invoke(rpcName, data);
72
+ }
73
+ };
74
+ };
75
+ /**
76
+ * Declares a capability the connected client answers, reachable from any
77
+ * `wireChannel` function as `channel.remote(name, input)`.
78
+ *
79
+ * There is no `func`: this side owns the contract, the client owns the body.
80
+ * The `description` is what a person is shown when asked to approve the call,
81
+ * so write it for them rather than for the caller.
82
+ *
83
+ * @example
84
+ * ```typescript
85
+ * export const localCheckoutOutput = z.object({ sha: z.string(), branch: z.string() })
86
+ *
87
+ * export const localCheckout = pikkuRemoteChannelFunc({
88
+ * description: 'Read the current commit and branch of your working tree',
89
+ * output: localCheckoutOutput,
90
+ * })
91
+ * ```
92
+ */
93
+ export function pikkuRemoteChannelFunc(config) {
94
+ return {
95
+ ...config,
96
+ func: async (_services, _data, _wire) => {
97
+ throw new Error(`${config.title ?? 'This'} is a remote channel capability and has no local implementation — reach it with channel.remote() on the channel whose client exposes it.`);
98
+ },
99
+ };
100
+ }
101
+ /**
102
+ * Addon contract references. Generated from each wired addon's published
103
+ * contract metadata — no addon source is imported. Functions are proxied via
104
+ * ref() (RPC) exactly like ref('namespace:fn').
105
+ */
106
+ const __addonHttp = {};
107
+ const __addonChannel = {};
108
+ const __addonCli = {};
109
+ export const refHTTP = (name, options) => {
110
+ const contract = __addonHttp[name];
111
+ return (options?.basePath !== undefined
112
+ ? { ...contract, basePath: options.basePath }
113
+ : contract);
114
+ };
115
+ export const refChannel = (name) => __addonChannel[name];
116
+ export const refCLI = (name) => __addonCli[name];
117
+ //# sourceMappingURL=pikku-function-types.gen.js.map
@@ -0,0 +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;AA6EH;;;;;;;;;;;;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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