@pikku/addon-meta-conversions 0.1.1 → 0.1.3

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 (258) hide show
  1. package/.pikku/addon/pikku-addon-types.gen.ts +105 -0
  2. package/.pikku/addon/pikku-package.gen.ts +11 -0
  3. package/.pikku/agent/pikku-agent-map.gen.d.ts +4 -0
  4. package/.pikku/agent/pikku-agent-types.gen.ts +84 -0
  5. package/.pikku/channel/pikku-channel-types.gen.ts +177 -0
  6. package/.pikku/console/pikku-addon-meta.gen.json +36 -0
  7. package/.pikku/console/pikku-node-types.gen.ts +8 -0
  8. package/.pikku/function/pikku-function-types.gen.ts +797 -0
  9. package/.pikku/function/pikku-functions-meta-verbose.gen.json +33 -0
  10. package/.pikku/function/pikku-functions-meta.gen.json +27 -0
  11. package/.pikku/function/pikku-functions-meta.gen.ts +7 -0
  12. package/.pikku/function/pikku-functions.gen.ts +8 -0
  13. package/.pikku/http/pikku-http-types.gen.ts +119 -0
  14. package/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
  15. package/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
  16. package/.pikku/pikku-bootstrap.gen.ts +8 -0
  17. package/.pikku/pikku-meta-service.gen.ts +10 -0
  18. package/.pikku/pikku-services.gen.ts +50 -0
  19. package/.pikku/pikku-types.gen.ts +24 -0
  20. package/.pikku/queue/pikku-queue-types.gen.ts +27 -0
  21. package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +135 -0
  22. package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +136 -0
  23. package/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +135 -0
  24. package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +3 -0
  25. package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
  26. package/.pikku/scenarios/features.gen.json +1 -0
  27. package/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
  28. package/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
  29. package/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
  30. package/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
  31. package/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
  32. package/.pikku/scenarios/schemas/register.gen.ts +4 -0
  33. package/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
  34. package/.pikku/schemas/register.gen.ts +15 -0
  35. package/.pikku/schemas/schemas/EventSendInput.schema.json +1 -0
  36. package/.pikku/schemas/schemas/EventSendOutput.schema.json +1 -0
  37. package/.pikku/schemas/schemas/SecretSchema_metaConversions.schema.json +1 -0
  38. package/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
  39. package/.pikku/scopes/pikku-personas.gen.ts +52 -0
  40. package/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
  41. package/.pikku/scopes/pikku-roles.gen.ts +41 -0
  42. package/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
  43. package/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
  44. package/.pikku/scopes/pikku-scopes.gen.ts +58 -0
  45. package/.pikku/secrets/pikku-secret-types.gen.ts +5 -0
  46. package/.pikku/secrets/pikku-secrets-meta.gen.json +10 -0
  47. package/.pikku/secrets/pikku-secrets.gen.ts +36 -0
  48. package/.pikku/trigger/pikku-trigger-types.gen.ts +160 -0
  49. package/.pikku/variables/pikku-variable-types.gen.ts +5 -0
  50. package/.pikku/variables/pikku-variables-meta.gen.json +1 -0
  51. package/.pikku/variables/pikku-variables.gen.ts +34 -0
  52. package/.pikku/workflow/personas.gen.json +1 -0
  53. package/.pikku/workflow/pikku-personas.gen.ts +38 -0
  54. package/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
  55. package/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
  56. package/.pikku/workflow/pikku-workflow-types.gen.ts +591 -0
  57. package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
  58. package/.pikku/workflow/pikku-workflow-wirings.gen.ts +3 -0
  59. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +4 -4
  60. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -1
  61. package/dist/.pikku/addon/pikku-addon-types.gen.js +7 -3
  62. package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -1
  63. package/dist/.pikku/addon/pikku-addon-types.gen.ts +11 -6
  64. package/dist/.pikku/addon/pikku-package.gen.js +2 -1
  65. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  66. package/dist/.pikku/addon/pikku-package.gen.ts +3 -1
  67. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +2 -14
  68. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +8 -6
  69. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
  70. package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
  71. package/dist/.pikku/agent/pikku-agent-types.gen.ts +15 -7
  72. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
  73. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
  74. package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
  75. package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
  76. package/dist/.pikku/channel/pikku-channel-types.gen.ts +177 -0
  77. package/dist/.pikku/console/pikku-addon-meta.gen.json +4 -1
  78. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  79. package/dist/.pikku/console/pikku-node-types.gen.ts +1 -1
  80. package/dist/.pikku/function/pikku-function-types.gen.d.ts +133 -133
  81. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
  82. package/dist/.pikku/function/pikku-function-types.gen.js +98 -61
  83. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
  84. package/dist/.pikku/function/pikku-function-types.gen.ts +268 -157
  85. package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +5 -0
  86. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  87. package/dist/.pikku/function/pikku-functions-meta.gen.json +8 -1
  88. package/dist/.pikku/function/pikku-functions-meta.gen.ts +1 -1
  89. package/dist/.pikku/function/pikku-functions.gen.js +2 -2
  90. package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
  91. package/dist/.pikku/function/pikku-functions.gen.ts +2 -2
  92. package/dist/.pikku/http/pikku-http-types.gen.d.ts +98 -0
  93. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
  94. package/dist/.pikku/http/pikku-http-types.gen.js +50 -0
  95. package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
  96. package/dist/.pikku/http/pikku-http-types.gen.ts +119 -0
  97. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
  98. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
  99. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
  100. package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
  101. package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
  102. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +10 -0
  103. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
  104. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +10 -0
  105. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +1 -0
  106. package/dist/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
  107. package/dist/.pikku/pikku-bootstrap.gen.d.ts +4 -2
  108. package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
  109. package/dist/.pikku/pikku-bootstrap.gen.js +2 -10
  110. package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
  111. package/dist/.pikku/pikku-bootstrap.gen.ts +2 -9
  112. package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
  113. package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
  114. package/dist/.pikku/pikku-meta-service.gen.js +10 -0
  115. package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
  116. package/dist/.pikku/pikku-meta-service.gen.ts +10 -0
  117. package/dist/.pikku/pikku-services.gen.d.ts +15 -2
  118. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
  119. package/dist/.pikku/pikku-services.gen.js +14 -0
  120. package/dist/.pikku/pikku-services.gen.js.map +1 -1
  121. package/dist/.pikku/pikku-services.gen.ts +17 -2
  122. package/dist/.pikku/pikku-types.gen.d.ts +2 -1
  123. package/dist/.pikku/pikku-types.gen.d.ts.map +1 -1
  124. package/dist/.pikku/pikku-types.gen.js +3 -1
  125. package/dist/.pikku/pikku-types.gen.js.map +1 -1
  126. package/dist/.pikku/pikku-types.gen.ts +4 -1
  127. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
  128. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
  129. package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
  130. package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
  131. package/dist/.pikku/queue/pikku-queue-types.gen.ts +27 -0
  132. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +28 -8
  133. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +28 -8
  134. package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +135 -0
  135. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -0
  136. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
  137. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
  138. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
  139. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +3 -0
  140. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
  141. package/dist/.pikku/scenarios/features.gen.json +1 -0
  142. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts +2 -0
  143. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
  144. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +11 -0
  145. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
  146. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
  147. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
  148. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +5 -0
  149. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -0
  150. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js +2 -0
  151. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +1 -0
  152. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
  153. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts +2 -0
  154. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
  155. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +11 -0
  156. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -0
  157. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
  158. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +5 -0
  159. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -0
  160. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js +2 -0
  161. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +1 -0
  162. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
  163. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +5 -0
  164. package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +1 -0
  165. package/dist/.pikku/scenarios/schemas/register.gen.js +5 -0
  166. package/dist/.pikku/scenarios/schemas/register.gen.js.map +1 -0
  167. package/dist/.pikku/scenarios/schemas/register.gen.ts +4 -0
  168. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
  169. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
  170. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
  171. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
  172. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
  173. package/dist/.pikku/schemas/register.gen.js +1 -1
  174. package/dist/.pikku/schemas/register.gen.ts +1 -1
  175. package/dist/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
  176. package/dist/.pikku/scopes/pikku-personas.gen.d.ts +37 -0
  177. package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +1 -0
  178. package/dist/.pikku/scopes/pikku-personas.gen.js +18 -0
  179. package/dist/.pikku/scopes/pikku-personas.gen.js.map +1 -0
  180. package/dist/.pikku/scopes/pikku-personas.gen.ts +52 -0
  181. package/dist/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
  182. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +31 -0
  183. package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +1 -0
  184. package/dist/.pikku/scopes/pikku-roles.gen.js +19 -0
  185. package/dist/.pikku/scopes/pikku-roles.gen.js.map +1 -0
  186. package/dist/.pikku/scopes/pikku-roles.gen.ts +41 -0
  187. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +8 -0
  188. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +1 -0
  189. package/dist/.pikku/scopes/pikku-scope-types.gen.js +6 -0
  190. package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +1 -0
  191. package/dist/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
  192. package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
  193. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +36 -0
  194. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +1 -0
  195. package/dist/.pikku/scopes/pikku-scopes.gen.js +28 -0
  196. package/dist/.pikku/scopes/pikku-scopes.gen.js.map +1 -0
  197. package/dist/.pikku/scopes/pikku-scopes.gen.ts +58 -0
  198. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +2 -2
  199. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -1
  200. package/dist/.pikku/secrets/pikku-secret-types.gen.js +2 -2
  201. package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -1
  202. package/dist/.pikku/secrets/pikku-secret-types.gen.ts +2 -2
  203. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +11 -1
  204. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -1
  205. package/dist/.pikku/secrets/pikku-secrets.gen.js +12 -2
  206. package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -1
  207. package/dist/.pikku/secrets/pikku-secrets.gen.ts +15 -2
  208. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  209. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  210. package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
  211. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +2 -2
  212. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -1
  213. package/dist/.pikku/variables/pikku-variable-types.gen.js +2 -2
  214. package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -1
  215. package/dist/.pikku/variables/pikku-variable-types.gen.ts +2 -2
  216. package/dist/.pikku/variables/pikku-variables.gen.d.ts +11 -1
  217. package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -1
  218. package/dist/.pikku/variables/pikku-variables.gen.js +13 -3
  219. package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -1
  220. package/dist/.pikku/variables/pikku-variables.gen.ts +16 -3
  221. package/dist/.pikku/workflow/personas.gen.json +1 -0
  222. package/dist/.pikku/workflow/pikku-personas.gen.d.ts +16 -0
  223. package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +1 -0
  224. package/dist/.pikku/workflow/pikku-personas.gen.js +18 -0
  225. package/dist/.pikku/workflow/pikku-personas.gen.js.map +1 -0
  226. package/dist/.pikku/workflow/pikku-personas.gen.ts +38 -0
  227. package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
  228. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +9 -5
  229. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +289 -31
  230. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  231. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +66 -18
  232. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
  233. package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +494 -61
  234. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  235. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
  236. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +3 -3
  237. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  238. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  239. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
  240. package/dist/src/functions/events/send.function.d.ts +2 -2
  241. package/dist/src/functions/events/send.function.d.ts.map +1 -1
  242. package/dist/src/meta-conversions.secret.js +2 -2
  243. package/dist/src/meta-conversions.secret.js.map +1 -1
  244. package/dist/src/services.d.ts.map +1 -1
  245. package/dist/src/services.js +1 -1
  246. package/dist/src/services.js.map +1 -1
  247. package/package.json +7 -6
  248. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts +0 -2
  249. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts.map +0 -1
  250. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js +0 -7
  251. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js.map +0 -1
  252. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.json +0 -3
  253. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.ts +0 -7
  254. package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts +0 -5
  255. package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts.map +0 -1
  256. package/dist/.pikku/agent/pikku-agent-wirings.gen.js +0 -5
  257. package/dist/.pikku/agent/pikku-agent-wirings.gen.js.map +0 -1
  258. package/dist/.pikku/agent/pikku-agent-wirings.gen.ts +0 -3
@@ -1,13 +1,14 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.6
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * Core function, middleware, and permission types for all wirings
6
6
  */
7
- import { CorePikkuFunctionConfig, CorePikkuAuth, CorePikkuAuthConfig, CorePikkuPermission, CorePikkuMiddleware, CorePermissionGroup, PikkuWire, PickRequired } from '@pikku/core';
7
+ import type { CorePikkuMiddleware, CorePermissionGroup, ListInput, ListOutput, PikkuWire, PickRequired, SecretlessServices, SecretService } from '@pikku/core';
8
+ import type { CorePikkuFunctionConfig, CorePikkuAuth, CorePikkuAuthConfig, CorePikkuPermission } from '@pikku/core/function';
8
9
  import { CreateWireServices } from '@pikku/core/internal';
9
- import { PikkuError } from '@pikku/core/errors';
10
10
  import type { NodeType } from '@pikku/core/node';
11
+ import type { ScopeId } from '../scopes/pikku-scopes.gen.js';
11
12
  import type { StandardSchemaV1 } from '@standard-schema/spec';
12
13
  import { CorePikkuFunction, CorePikkuFunctionSessionless } from '@pikku/core/function';
13
14
  import type { UserSession } from '../../types/application-types.d.js';
@@ -16,10 +17,33 @@ import type { Services } from '../../types/application-types.d.js';
16
17
  import type { Config } from '../../types/application-types.d.js';
17
18
  import type { TypedPikkuRPC, FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js';
18
19
  import type { RequiredSingletonServices, RequiredWireServices } from '../pikku-services.gen.js';
19
- import type { TypedWorkflow } from '../workflow/pikku-workflow-types.gen.js';
20
+ import type { TypedWorkflow, TypedScenario, TypedPersonas } from '../workflow/pikku-workflow-types.gen.js';
20
21
  export type { SingletonServices as SingletonServices };
21
22
  export type { Services as Services };
22
23
  export type Session = UserSession;
24
+ /**
25
+ * The services a wired function actually receives. The inspector records which
26
+ * services each wired `func`, `permissions` and `middleware` destructures and
27
+ * emits them as `RequiredSingletonServices`; intersecting that here makes those
28
+ * services **non-optional** at every call site. A service is optional only when
29
+ * nothing destructures it — in which case it is never created either. This is
30
+ * why an `if (!service)` guard inside a function body is always dead code.
31
+ */
32
+ export type WiredSingletonServices = RequiredSingletonServices & SingletonServices;
33
+ export type WiredServices = SecretlessServices<RequiredSingletonServices & Services>;
34
+ /** `WiredSingletonServices` without `secrets`, for auth gates. */
35
+ export type WiredAuthServices = SecretlessServices<WiredSingletonServices>;
36
+ /**
37
+ * `WiredServices` with `secrets` restored, for the console's secret-admin
38
+ * functions. Reached by declaring `secretBroker: true` on a `pikkuFunc` config.
39
+ *
40
+ * Declaring it does not grant the service. The runner hands out the real
41
+ * `SecretService` only to the functions the inspector marks as secret brokers;
42
+ * every other function still receives the throwing accessor.
43
+ */
44
+ export type WiredSecretBrokerServices = WiredServices & {
45
+ secrets: SecretService;
46
+ };
23
47
  /**
24
48
  * Inline node configuration for function definitions.
25
49
  */
@@ -36,18 +60,18 @@ export type NodeConfig = {
36
60
  * @template In - The input type that the permission check will receive
37
61
  * @template RequiredServices - The services required for this permission check
38
62
  */
39
- export type PikkuPermission<In = unknown, RequiredServices extends Services = Services> = CorePikkuPermission<In, RequiredServices, PikkuWire<In, never, false, Session>>;
63
+ export type PikkuPermission<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = CorePikkuPermission<In, RequiredServices, PikkuWire<In, never, false, Session>>;
40
64
  /**
41
65
  * Type-safe middleware definition that can access your application's services and session.
42
66
  * Use this to define reusable middleware that can be applied to multiple wirings.
43
67
  *
44
68
  * @template RequiredServices - The services required for this middleware
45
69
  */
46
- export type PikkuMiddleware<RequiredServices extends SingletonServices = SingletonServices> = CorePikkuMiddleware<RequiredServices>;
70
+ export type PikkuMiddleware<RequiredServices extends SingletonServices = WiredSingletonServices> = CorePikkuMiddleware<RequiredServices>;
47
71
  /**
48
72
  * Configuration object for creating a permission with metadata
49
73
  */
50
- export type PikkuPermissionConfig<In = unknown, RequiredServices extends Services = Services> = {
74
+ export type PikkuPermissionConfig<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = {
51
75
  /** The permission function */
52
76
  func: PikkuPermission<In, RequiredServices>;
53
77
  /** Optional human-readable name for the permission */
@@ -86,11 +110,11 @@ export declare const pikkuPermission: <In>(permission: PikkuPermission<In> | Pik
86
110
  *
87
111
  * @template RequiredServices - The services required for this auth check
88
112
  */
89
- export type PikkuAuth<RequiredServices extends SingletonServices = SingletonServices> = CorePikkuAuth<RequiredServices, Session>;
113
+ export type PikkuAuth<RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices> = CorePikkuAuth<RequiredServices, Session>;
90
114
  /**
91
115
  * Configuration object for creating an auth permission with metadata
92
116
  */
93
- export type PikkuAuthConfig<RequiredServices extends SingletonServices = SingletonServices> = CorePikkuAuthConfig<RequiredServices, Session>;
117
+ export type PikkuAuthConfig<RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices> = CorePikkuAuthConfig<RequiredServices, Session>;
94
118
  /**
95
119
  * Factory function for creating auth-only permissions with tree-shaking support.
96
120
  * Auth permissions only receive services and session (no request data),
@@ -111,11 +135,11 @@ export type PikkuAuthConfig<RequiredServices extends SingletonServices = Singlet
111
135
  * })
112
136
  * \`\`\`
113
137
  */
114
- export declare const pikkuAuth: <RequiredServices extends SingletonServices = SingletonServices>(auth: PikkuAuth<RequiredServices> | PikkuAuthConfig<RequiredServices>) => PikkuPermission<any, any>;
138
+ export declare const pikkuAuth: <RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices>(auth: PikkuAuth<RequiredServices> | PikkuAuthConfig<RequiredServices>) => PikkuPermission<any, any>;
115
139
  /**
116
140
  * Configuration object for creating middleware with metadata
117
141
  */
118
- export type PikkuMiddlewareConfig<RequiredServices extends SingletonServices = SingletonServices> = {
142
+ export type PikkuMiddlewareConfig<RequiredServices extends SingletonServices = WiredSingletonServices> = {
119
143
  /** The middleware function */
120
144
  func: PikkuMiddleware<RequiredServices>;
121
145
  /** Optional human-readable name for the middleware */
@@ -146,7 +170,7 @@ export type PikkuMiddlewareConfig<RequiredServices extends SingletonServices = S
146
170
  * })
147
171
  * ```
148
172
  */
149
- export declare const pikkuMiddleware: <RequiredServices extends SingletonServices = SingletonServices>(middleware: PikkuMiddleware<RequiredServices> | PikkuMiddlewareConfig<RequiredServices>) => PikkuMiddleware<RequiredServices>;
173
+ export declare const pikkuMiddleware: <RequiredServices extends SingletonServices = WiredSingletonServices>(middleware: PikkuMiddleware<RequiredServices> | PikkuMiddlewareConfig<RequiredServices>) => PikkuMiddleware<RequiredServices>;
150
174
  /**
151
175
  * Factory function for creating middleware factories
152
176
  * Use this when your middleware needs configuration/input parameters
@@ -192,7 +216,7 @@ export declare const pikkuPermissionFactory: <In = any>(factory: (input: In) =>
192
216
  * @template In - The input type (same as the function it describes)
193
217
  * @template RequiredServices - The services required for this description function
194
218
  */
195
- export type PikkuApprovalDescription<In = unknown, RequiredServices extends Services = Services> = (services: RequiredServices, data: In) => Promise<string>;
219
+ export type PikkuApprovalDescription<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = (services: RequiredServices, data: In) => Promise<string>;
196
220
  /**
197
221
  * Factory function for creating approval description functions with tree-shaking support.
198
222
  *
@@ -206,7 +230,7 @@ export type PikkuApprovalDescription<In = unknown, RequiredServices extends Serv
206
230
  * )
207
231
  * ```
208
232
  */
209
- export declare const pikkuApprovalDescription: <In = unknown, RequiredServices extends Services = Services>(fn: PikkuApprovalDescription<In, RequiredServices>) => PikkuApprovalDescription<In, RequiredServices>;
233
+ export declare const pikkuApprovalDescription: <In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices>(fn: PikkuApprovalDescription<In, RequiredServices>) => PikkuApprovalDescription<In, RequiredServices>;
210
234
  /**
211
235
  * A sessionless API function that doesn't require user authentication.
212
236
  * Use this for public endpoints, health checks, or operations that don't need user context.
@@ -215,7 +239,7 @@ export declare const pikkuApprovalDescription: <In = unknown, RequiredServices e
215
239
  * @template Out - The output type that the function returns
216
240
  * @template RequiredServices - Services required by this function
217
241
  */
218
- export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = never, RequiredServices extends Services = Services> = CorePikkuFunctionSessionless<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow>, RequiredWires>>;
242
+ export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices> = CorePikkuFunctionSessionless<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedPersonas>, RequiredWires>>;
219
243
  /**
220
244
  * A session-aware API function that requires user authentication.
221
245
  * Use this for protected endpoints that need access to user session data.
@@ -224,7 +248,7 @@ export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires ex
224
248
  * @template Out - The output type that the function returns
225
249
  * @template RequiredServices - Services required by this function
226
250
  */
227
- export type PikkuFunction<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = 'session', RequiredServices extends Services = Services> = CorePikkuFunction<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow>, RequiredWires>>;
251
+ 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>>;
228
252
  /**
229
253
  * Helper type to infer the output type from a Standard Schema
230
254
  */
@@ -237,53 +261,36 @@ export type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output>
237
261
  * @template Out - The output type
238
262
  * @template PikkuFunc - The function type (can be narrowed to PikkuFunction or PikkuFunctionSessionless)
239
263
  */
240
- export type PikkuFunctionConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunction<In, Out, RequiredWires> | PikkuFunctionSessionless<In, Out, RequiredWires> = 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>;
264
+ export type PikkuFunctionConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunction<In, Out, RequiredWires, any> | PikkuFunctionSessionless<In, Out, RequiredWires, 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>;
241
265
  /**
242
266
  * Configuration object for Pikku functions with Zod schema validation.
243
267
  * Use this when you want to define input/output schemas using Zod.
244
268
  * Types are automatically inferred from the schemas.
245
269
  */
246
- export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never> = {
247
- name?: string;
248
- tags?: string[];
249
- expose?: boolean;
250
- mcp?: boolean;
251
- internal?: boolean;
252
- approvalRequired?: boolean;
253
- approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
254
- func: PikkuFunction<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, RequiredWires> | PikkuFunctionSessionless<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, RequiredWires>;
255
- auth?: boolean;
256
- permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
257
- middleware?: PikkuMiddleware[];
270
+ type SchemaInferred<S, Fallback = unknown> = S extends StandardSchemaV1 ? InferSchemaOutput<S> : Fallback;
271
+ /**
272
+ * Schema-overload variant for pikkuFunc. Derived from CorePikkuFunctionConfig
273
+ * so adding a field on the core type automatically propagates here.
274
+ */
275
+ 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'> & {
276
+ func: PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>;
258
277
  input?: InputSchema;
259
278
  output?: OutputSchema;
260
- node?: NodeConfig;
261
- errors?: Array<typeof PikkuError>;
279
+ permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
280
+ approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
262
281
  };
263
282
  /**
264
283
  * Creates a Pikku function that can be either session-aware or sessionless.
265
284
  * This is the main function wrapper for creating API endpoints.
266
285
  *
267
- * Supports two patterns:
268
- * 1. Generic types: `pikkuFunc<Input, Output>({ func: ... })`
269
- * 2. Zod schemas: `pikkuFunc({ input: z.object(...), output: z.object(...), func: ... })`
286
+ * Define the input and output with Zod schemas — the function's types are
287
+ * inferred from them, and the schemas double as runtime validation.
270
288
  *
271
- * @template In - Input type for the function (inferred from schema if provided)
272
- * @template Out - Output type for the function (inferred from schema if provided)
273
- * @param func - Function definition, either direct function or configuration object
289
+ * @param config - Function definition with `input`/`output` Zod schemas and `func`.
274
290
  * @returns The normalized configuration object
275
291
  *
276
292
  * @example
277
293
  * ```typescript
278
- * // Pattern 1: Using generic types
279
- * const createUser = pikkuFunc<{name: string, email: string}, {id: number}>({
280
- * func: async ({db}, input) => {
281
- * const user = await db.users.create(input)
282
- * return { id: user.id }
283
- * }
284
- * })
285
- *
286
- * // Pattern 2: Using Zod schemas (types inferred automatically)
287
294
  * const createUserInput = z.object({ name: z.string(), email: z.string() })
288
295
  * const createUserOutput = z.object({ id: z.number() })
289
296
  *
@@ -298,53 +305,39 @@ export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 |
298
305
  * })
299
306
  * ```
300
307
  */
308
+ export declare function pikkuFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc', WiredSecretBrokerServices> & {
309
+ secretBroker: true;
310
+ }): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
301
311
  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'>;
302
312
  export declare function pikkuFunc<In, Out = unknown>(func: PikkuFunction<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
313
+ 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'>;
314
+ 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">;
303
315
  /**
304
316
  * Configuration object for sessionless Pikku functions with Zod schema validation.
305
317
  */
306
- export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never> = {
307
- name?: string;
308
- description?: string;
309
- tags?: string[];
310
- expose?: boolean;
311
- mcp?: boolean;
312
- internal?: boolean;
313
- remote?: boolean;
314
- approvalRequired?: boolean;
315
- approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
316
- func: PikkuFunctionSessionless<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, RequiredWires>;
317
- auth?: boolean;
318
- permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
319
- middleware?: PikkuMiddleware[];
318
+ /**
319
+ * Schema-overload variant for pikkuSessionlessFunc. Derived from
320
+ * CorePikkuFunctionConfig to stay in sync with the generic-typed config.
321
+ */
322
+ export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices> = Omit<CorePikkuFunctionConfig<PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>>, 'func' | 'input' | 'output' | 'permissions' | 'approvalDescription'> & {
323
+ func: PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>;
320
324
  input?: InputSchema;
321
325
  output?: OutputSchema;
322
- node?: NodeConfig;
323
- errors?: Array<typeof PikkuError>;
326
+ permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
327
+ approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
324
328
  };
325
329
  /**
326
330
  * Creates a sessionless Pikku function that doesn't require user authentication.
327
331
  * Use this for public endpoints, webhooks, or background tasks.
328
332
  *
329
- * Supports two patterns:
330
- * 1. Generic types: `pikkuSessionlessFunc<Input, Output>({ func: ... })`
331
- * 2. Zod schemas: `pikkuSessionlessFunc({ input: z.object(...), func: ... })`
333
+ * Define the input and output with Zod schemas — the function's types are
334
+ * inferred from them, and the schemas double as runtime validation.
332
335
  *
333
- * @template In - Input type for the function (inferred from schema if provided)
334
- * @template Out - Output type for the function (inferred from schema if provided)
335
- * @param func - Function definition, either direct function or configuration object
336
+ * @param config - Function definition with `input`/`output` Zod schemas and `func`.
336
337
  * @returns The normalized configuration object
337
338
  *
338
339
  * @example
339
340
  * ```typescript
340
- * // Pattern 1: Using generic types
341
- * const healthCheck = pikkuSessionlessFunc<void, {status: string}>({
342
- * func: async ({logger}) => {
343
- * return { status: 'healthy' }
344
- * }
345
- * })
346
- *
347
- * // Pattern 2: Using Zod schemas
348
341
  * const greetInput = z.object({ name: z.string() })
349
342
  * const greetOutput = z.object({ message: z.string() })
350
343
  *
@@ -357,8 +350,8 @@ export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends Standar
357
350
  * })
358
351
  * ```
359
352
  */
360
- export declare function pikkuSessionlessFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
361
- export declare function pikkuSessionlessFunc<In, Out = unknown>(func: PikkuFunctionSessionless<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
353
+ 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'>;
354
+ export declare function pikkuSessionlessFunc<In, Out = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices>(func: PikkuFunctionSessionless<In, Out, 'session' | 'rpc', RequiredServices> | PikkuFunctionConfig<In, Out, 'session' | 'rpc', PikkuFunctionSessionless<In, Out, 'session' | 'rpc', RequiredServices>>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
362
355
  /**
363
356
  * Creates a function that takes no input and returns no output.
364
357
  * Useful for health checks, triggers, or cleanup operations.
@@ -375,29 +368,44 @@ export declare function pikkuSessionlessFunc<In, Out = unknown>(func: PikkuFunct
375
368
  * })
376
369
  * ```
377
370
  */
378
- export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, "session" | "rpc"> | PikkuFunctionConfig<void, void, "session" | "rpc">) => PikkuFunctionConfig<void, void, "rpc" | "session", PikkuFunctionSessionless<void, void, "rpc" | "session", Services> | PikkuFunction<void, void, "rpc" | "session", Services>, undefined, undefined>;
371
+ export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, "session" | "rpc"> | PikkuFunctionConfig<void, void, "session" | "rpc">) => PikkuFunctionConfig<void, void, "rpc" | "session", PikkuFunctionSessionless<void, void, "rpc" | "session", WiredServices> | PikkuFunction<void, void, "rpc" | "session", WiredServices>, undefined, undefined>;
372
+ /**
373
+ * References a registered function by name for use in any wiring.
374
+ * Works for both local and addon functions — resolves via RPC at runtime.
375
+ *
376
+ * @template Name - The function name (must be a key in FlattenedRPCMap)
377
+ * @param rpcName - The name of the function to reference
378
+ * @returns A Pikku function config that proxies calls via RPC
379
+ *
380
+ * @example
381
+ * ```typescript
382
+ * // Use in agent tools
383
+ * tools: [ref('todos:listTodos'), ref('myLocalFunc')]
384
+ *
385
+ * // Use in HTTP wiring
386
+ * wireHTTP({ route: '/greet', method: 'post', func: ref('greet') })
387
+ * ```
388
+ */
389
+ export declare const ref: <Name extends keyof FlattenedRPCMap>(rpcName: Name) => PikkuFunctionConfig<FlattenedRPCMap[Name]["input"], FlattenedRPCMap[Name]["output"], "session" | "rpc">;
379
390
  /**
380
- * Creates a wrapper function for addon package functions that are exposed via RPC.
381
- * This allows you to wire addon functions to any wiring type (HTTP, queue, etc.)
382
- * without type compatibility issues.
391
+ * Declares a capability the connected client answers, reachable from any
392
+ * `wireChannel` function as `channel.remote(name, input)`.
383
393
  *
384
- * @template Name - The RPC method name (must be a key in FlattenedRPCMap)
385
- * @param rpcName - The name of the RPC method to invoke
386
- * @returns A Pikku function that proxies calls to the addon RPC method
394
+ * There is no `func`: this side owns the contract, the client owns the body.
395
+ * The `description` is what a person is shown when asked to approve the call,
396
+ * so write it for them rather than for the caller.
387
397
  *
388
398
  * @example
389
399
  * ```typescript
390
- * // Wire an addon function via HTTP
391
- * wireHTTP({
392
- * auth: false,
393
- * method: 'get',
394
- * route: '/addon/hello',
395
- * func: addon('ext:hello'),
396
- * tags: ['addon'],
400
+ * export const localCheckoutOutput = z.object({ sha: z.string(), branch: z.string() })
401
+ *
402
+ * export const localCheckout = pikkuRemoteChannelFunc({
403
+ * description: 'Read the current commit and branch of your working tree',
404
+ * output: localCheckoutOutput,
397
405
  * })
398
406
  * ```
399
407
  */
400
- export declare const addon: <Name extends keyof FlattenedRPCMap>(rpcName: Name) => PikkuFunctionConfig<FlattenedRPCMap[Name]["input"], FlattenedRPCMap[Name]["output"], "session" | "rpc">;
408
+ 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'>;
401
409
  /**
402
410
  * Creates a Pikku config factory.
403
411
  * Use this to define your application's configuration factory.
@@ -434,7 +442,7 @@ export declare const pikkuConfig: (func: (variables?: any, ...args: any[]) => Pr
434
442
  * })
435
443
  * ```
436
444
  */
437
- export declare const pikkuServices: (func: (config: Config, existingServices: Partial<SingletonServices>) => Promise<RequiredSingletonServices>) => (config: Config, existingServices?: Partial<SingletonServices>) => Promise<RequiredSingletonServices>;
445
+ export declare const pikkuServices: (func: (config: Config, existingServices: Partial<SingletonServices>) => Promise<Partial<Omit<RequiredSingletonServices, "auth">>>) => (config: Config, existingServices?: Partial<SingletonServices>) => Promise<RequiredSingletonServices>;
438
446
  /**
439
447
  * Creates a Pikku wire services factory.
440
448
  * Use this to define services that are created per-request/session.
@@ -454,53 +462,45 @@ export declare const pikkuServices: (func: (config: Config, existingServices: Pa
454
462
  */
455
463
  export declare const pikkuWireServices: (func: (services: SingletonServices, wire: any) => Promise<RequiredWireServices>) => CreateWireServices;
456
464
  /**
457
- * Adds global middleware for a specific tag.
458
- *
459
- * This function allows you to register middleware that will be applied to
460
- * any wiring (HTTP, Channel, Queue, Scheduler, MCP) that includes the matching tag.
461
- *
462
- * @param tag - The tag that the middleware should apply to.
463
- * @param middleware - The middleware array to apply for the specified tag.
464
- *
465
- * @throws Error if middleware for the tag already exists.
465
+ * Tag-scoped middleware. Applies to any wiring that carries the matching tag.
466
466
  *
467
467
  * @example
468
- * ```typescript
469
- * // Add admin middleware for admin endpoints
470
- * addMiddleware('admin', [adminMiddleware])
471
- *
472
- * // Add authentication middleware for auth endpoints
473
- * addMiddleware('auth', [authMiddleware])
474
- *
475
- * // Add logging middleware for all API endpoints
476
- * addMiddleware('api', [loggingMiddleware])
477
- * ```
468
+ * addTagMiddleware('admin', [adminMiddleware])
478
469
  */
479
- export declare const addMiddleware: (tag: string, middleware: PikkuMiddleware[]) => void;
470
+ export declare const addTagMiddleware: (tag: string, middleware: PikkuMiddleware[]) => void;
480
471
  /**
481
- * Adds global permissions for a specific tag.
482
- *
483
- * This function allows you to register permissions that will be applied to
484
- * any wiring (HTTP, Channel, Queue, Scheduler, MCP) that includes the matching tag.
485
- *
486
- * @param tag - The tag that the permissions should apply to.
487
- * @param permissions - The permissions array or object to apply for the specified tag.
472
+ * Wire-agnostic global middleware. Runs at the top of every wiring's
473
+ * middleware chain — before wire-, tag-, and function-level entries.
488
474
  *
489
- * @throws Error if permissions for the tag already exist.
475
+ * Resolution order: global -> wire -> tag -> function.
490
476
  *
491
477
  * @example
492
- * ```typescript
493
- * // Add admin permissions for admin endpoints
494
- * addPermission('admin', [adminPermission])
478
+ * addGlobalMiddleware([telemetryMiddleware])
479
+ */
480
+ export declare const addGlobalMiddleware: (middleware: PikkuMiddleware[]) => void;
481
+ /**
482
+ * Wire-agnostic global permissions. Runs at the top of every wiring's
483
+ * permission resolution — before wire-, tag-, and function-level entries.
495
484
  *
496
- * // Add authentication permissions for auth endpoints
497
- * addPermission('auth', [authPermission])
485
+ * Resolution order: global -> wire -> tag -> function.
498
486
  *
499
- * // Add read permissions for all API endpoints (as object)
500
- * addPermission('api', { read: readPermission })
501
- * ```
487
+ * @example
488
+ * addGlobalPermission([signedInUser])
489
+ */
490
+ export declare const addGlobalPermission: <In = unknown>(permissions: CorePermissionGroup<PikkuPermission<In>> | PikkuPermission<In>[]) => void;
491
+ export { wireAddon, wireRemoteAddon } from '@pikku/core/rpc';
492
+ export type { WireAddonConfig, WireRemoteAddonConfig, RemoteAddonAuth } from '@pikku/core/rpc';
493
+ /**
494
+ * Addon contract references. Generated from each wired addon's published
495
+ * contract metadata — no addon source is imported. Functions are proxied via
496
+ * ref() (RPC) exactly like ref('namespace:fn').
502
497
  */
503
- export declare const addPermission: <In = unknown>(tag: string, permissions: CorePermissionGroup<PikkuPermission<In>> | PikkuPermission<In>[]) => void;
504
- export { wireAddon } from '@pikku/core';
505
- export type { WireAddonConfig } from '@pikku/core';
498
+ declare const __addonHttp: {};
499
+ declare const __addonChannel: {};
500
+ declare const __addonCli: {};
501
+ export declare const refHTTP: <Name extends keyof typeof __addonHttp>(name: Name, options?: {
502
+ basePath?: string;
503
+ }) => (typeof __addonHttp)[Name];
504
+ export declare const refChannel: <Name extends keyof typeof __addonChannel>(name: Name) => (typeof __addonChannel)[Name];
505
+ export declare const refCLI: <Name extends keyof typeof __addonCli>(name: Name) => (typeof __addonCli)[Name];
506
506
  //# sourceMappingURL=pikku-function-types.gen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-function-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/function/pikku-function-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EAA0E,SAAS,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AACzP,OAAO,EAA8B,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAErF,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAA;AAEtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAA;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAA;AAC3E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAA;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAA;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAA;AACpG,OAAO,KAAK,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAA;AAE5E,YAAY,EAAE,iBAAiB,IAAI,iBAAiB,EAAE,CAAA;AACtD,YAAY,EAAE,QAAQ,IAAI,QAAQ,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