@pikku/addon-console 0.12.22 → 0.12.23

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 (283) hide show
  1. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
  2. package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
  3. package/dist/.pikku/addon/pikku-package.gen.js +1 -1
  4. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
  5. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
  6. package/dist/.pikku/auth/auth.types.d.ts +1 -1
  7. package/dist/.pikku/auth/auth.types.js +1 -1
  8. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
  9. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  10. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  11. package/dist/.pikku/function/pikku-function-types.gen.d.ts +1 -1
  12. package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
  13. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  14. package/dist/.pikku/function/pikku-functions-meta.gen.json +637 -215
  15. package/dist/.pikku/function/pikku-functions.gen.js +7 -1
  16. package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
  17. package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
  18. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  19. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  20. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  21. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  22. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  23. package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
  24. package/dist/.pikku/pikku-meta-service.gen.js +1 -1
  25. package/dist/.pikku/pikku-services.gen.d.ts +1 -1
  26. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  27. package/dist/.pikku/pikku-types.gen.js +1 -1
  28. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  29. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  30. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +7 -3
  31. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +7 -3
  32. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  33. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +3 -0
  34. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  35. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  36. package/dist/.pikku/schemas/register.gen.js +5 -1
  37. package/dist/.pikku/schemas/register.gen.js.map +1 -1
  38. package/dist/.pikku/schemas/schemas/AddonPackageInfo.schema.json +1 -1
  39. package/dist/.pikku/schemas/schemas/AgentCredentialCheckInput.schema.json +1 -1
  40. package/dist/.pikku/schemas/schemas/GetAddonMetaOutput.schema.json +1 -1
  41. package/dist/.pikku/schemas/schemas/SecurityAuditReport.schema.json +1 -0
  42. package/dist/.pikku/schemas/schemas/UpdateDependencyInput.schema.json +1 -0
  43. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  44. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  45. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  46. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  47. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  48. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  49. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  50. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  51. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  52. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  53. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
  54. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
  55. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
  56. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  57. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  58. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  59. package/dist/src/functions/agent-credential-check.function.d.ts +2 -5
  60. package/dist/src/functions/agent-credential-check.function.d.ts.map +1 -1
  61. package/dist/src/functions/agent-credential-check.function.js +7 -4
  62. package/dist/src/functions/agent-credential-check.function.js.map +1 -1
  63. package/dist/src/functions/credential-delete.function.d.ts +2 -2
  64. package/dist/src/functions/credential-delete.function.js +2 -2
  65. package/dist/src/functions/credential-delete.function.js.map +1 -1
  66. package/dist/src/functions/credential-get.function.d.ts +2 -2
  67. package/dist/src/functions/credential-get.function.js +2 -2
  68. package/dist/src/functions/credential-get.function.js.map +1 -1
  69. package/dist/src/functions/credential-list-users.function.d.ts +2 -2
  70. package/dist/src/functions/credential-list-users.function.js +2 -2
  71. package/dist/src/functions/credential-list-users.function.js.map +1 -1
  72. package/dist/src/functions/credential-set.function.d.ts +2 -2
  73. package/dist/src/functions/credential-set.function.js +2 -2
  74. package/dist/src/functions/credential-set.function.js.map +1 -1
  75. package/dist/src/functions/credential-status.function.d.ts +2 -2
  76. package/dist/src/functions/credential-status.function.js +2 -2
  77. package/dist/src/functions/credential-status.function.js.map +1 -1
  78. package/dist/src/functions/credential-users.function.d.ts +2 -2
  79. package/dist/src/functions/credential-users.function.js +2 -2
  80. package/dist/src/functions/credential-users.function.js.map +1 -1
  81. package/dist/src/functions/delete-agent-thread.function.d.ts +2 -2
  82. package/dist/src/functions/delete-agent-thread.function.d.ts.map +1 -1
  83. package/dist/src/functions/delete-agent-thread.function.js +2 -3
  84. package/dist/src/functions/delete-agent-thread.function.js.map +1 -1
  85. package/dist/src/functions/delete-workflow-run.function.d.ts +2 -2
  86. package/dist/src/functions/delete-workflow-run.function.d.ts.map +1 -1
  87. package/dist/src/functions/delete-workflow-run.function.js +2 -3
  88. package/dist/src/functions/delete-workflow-run.function.js.map +1 -1
  89. package/dist/src/functions/get-addon-icon.function.d.ts +2 -2
  90. package/dist/src/functions/get-addon-icon.function.d.ts.map +1 -1
  91. package/dist/src/functions/get-addon-icon.function.js +2 -3
  92. package/dist/src/functions/get-addon-icon.function.js.map +1 -1
  93. package/dist/src/functions/get-addon-meta.function.d.ts +1 -1
  94. package/dist/src/functions/get-addon-meta.function.d.ts.map +1 -1
  95. package/dist/src/functions/get-addon-meta.function.js +2 -3
  96. package/dist/src/functions/get-addon-meta.function.js.map +1 -1
  97. package/dist/src/functions/get-addon-package.function.d.ts +2 -2
  98. package/dist/src/functions/get-addon-package.function.d.ts.map +1 -1
  99. package/dist/src/functions/get-addon-package.function.js +2 -3
  100. package/dist/src/functions/get-addon-package.function.js.map +1 -1
  101. package/dist/src/functions/get-agent-thread-messages.function.d.ts +2 -2
  102. package/dist/src/functions/get-agent-thread-messages.function.d.ts.map +1 -1
  103. package/dist/src/functions/get-agent-thread-messages.function.js +2 -3
  104. package/dist/src/functions/get-agent-thread-messages.function.js.map +1 -1
  105. package/dist/src/functions/get-agent-thread-runs.function.d.ts +2 -2
  106. package/dist/src/functions/get-agent-thread-runs.function.d.ts.map +1 -1
  107. package/dist/src/functions/get-agent-thread-runs.function.js +2 -3
  108. package/dist/src/functions/get-agent-thread-runs.function.js.map +1 -1
  109. package/dist/src/functions/get-agent-threads.function.d.ts +2 -2
  110. package/dist/src/functions/get-agent-threads.function.d.ts.map +1 -1
  111. package/dist/src/functions/get-agent-threads.function.js +2 -3
  112. package/dist/src/functions/get-agent-threads.function.js.map +1 -1
  113. package/dist/src/functions/get-ai-workflows.function.d.ts +2 -2
  114. package/dist/src/functions/get-ai-workflows.function.d.ts.map +1 -1
  115. package/dist/src/functions/get-ai-workflows.function.js +2 -3
  116. package/dist/src/functions/get-ai-workflows.function.js.map +1 -1
  117. package/dist/src/functions/get-all-meta.function.d.ts +1 -1
  118. package/dist/src/functions/get-all-meta.function.d.ts.map +1 -1
  119. package/dist/src/functions/get-all-meta.function.js +2 -3
  120. package/dist/src/functions/get-all-meta.function.js.map +1 -1
  121. package/dist/src/functions/get-auth-providers.function.d.ts +1 -1
  122. package/dist/src/functions/get-auth-providers.function.d.ts.map +1 -1
  123. package/dist/src/functions/get-auth-providers.function.js +2 -3
  124. package/dist/src/functions/get-auth-providers.function.js.map +1 -1
  125. package/dist/src/functions/get-channel-snippets.function.d.ts +2 -2
  126. package/dist/src/functions/get-channel-snippets.function.d.ts.map +1 -1
  127. package/dist/src/functions/get-channel-snippets.function.js +2 -3
  128. package/dist/src/functions/get-channel-snippets.function.js.map +1 -1
  129. package/dist/src/functions/get-db-schema.function.d.ts +1 -1
  130. package/dist/src/functions/get-db-schema.function.d.ts.map +1 -1
  131. package/dist/src/functions/get-db-schema.function.js +2 -3
  132. package/dist/src/functions/get-db-schema.function.js.map +1 -1
  133. package/dist/src/functions/get-function-coverage.function.d.ts +1 -1
  134. package/dist/src/functions/get-function-coverage.function.d.ts.map +1 -1
  135. package/dist/src/functions/get-function-coverage.function.js +2 -3
  136. package/dist/src/functions/get-function-coverage.function.js.map +1 -1
  137. package/dist/src/functions/get-functions-meta.function.d.ts +1 -1
  138. package/dist/src/functions/get-functions-meta.function.d.ts.map +1 -1
  139. package/dist/src/functions/get-functions-meta.function.js +2 -3
  140. package/dist/src/functions/get-functions-meta.function.js.map +1 -1
  141. package/dist/src/functions/get-installed-addons.function.d.ts +1 -1
  142. package/dist/src/functions/get-installed-addons.function.d.ts.map +1 -1
  143. package/dist/src/functions/get-installed-addons.function.js +2 -3
  144. package/dist/src/functions/get-installed-addons.function.js.map +1 -1
  145. package/dist/src/functions/get-installed-package.function.d.ts +2 -2
  146. package/dist/src/functions/get-installed-package.function.d.ts.map +1 -1
  147. package/dist/src/functions/get-installed-package.function.js +2 -3
  148. package/dist/src/functions/get-installed-package.function.js.map +1 -1
  149. package/dist/src/functions/get-openapi-detail.function.d.ts +2 -2
  150. package/dist/src/functions/get-openapi-detail.function.d.ts.map +1 -1
  151. package/dist/src/functions/get-openapi-detail.function.js +2 -3
  152. package/dist/src/functions/get-openapi-detail.function.js.map +1 -1
  153. package/dist/src/functions/get-openapis.function.d.ts +2 -2
  154. package/dist/src/functions/get-openapis.function.d.ts.map +1 -1
  155. package/dist/src/functions/get-openapis.function.js +2 -3
  156. package/dist/src/functions/get-openapis.function.js.map +1 -1
  157. package/dist/src/functions/get-schema.function.d.ts +2 -2
  158. package/dist/src/functions/get-schema.function.d.ts.map +1 -1
  159. package/dist/src/functions/get-schema.function.js +2 -3
  160. package/dist/src/functions/get-schema.function.js.map +1 -1
  161. package/dist/src/functions/get-security-audit.function.d.ts +3 -0
  162. package/dist/src/functions/get-security-audit.function.d.ts.map +1 -0
  163. package/dist/src/functions/get-security-audit.function.js +9 -0
  164. package/dist/src/functions/get-security-audit.function.js.map +1 -0
  165. package/dist/src/functions/get-security-audit.function.test.d.ts +2 -0
  166. package/dist/src/functions/get-security-audit.function.test.d.ts.map +1 -0
  167. package/dist/src/functions/get-security-audit.function.test.js +53 -0
  168. package/dist/src/functions/get-security-audit.function.test.js.map +1 -0
  169. package/dist/src/functions/get-state-diff.function.d.ts +2 -2
  170. package/dist/src/functions/get-state-diff.function.js +2 -2
  171. package/dist/src/functions/get-state-diff.function.js.map +1 -1
  172. package/dist/src/functions/get-workflow-meta-by-id.function.d.ts +2 -2
  173. package/dist/src/functions/get-workflow-meta-by-id.function.d.ts.map +1 -1
  174. package/dist/src/functions/get-workflow-meta-by-id.function.js +2 -3
  175. package/dist/src/functions/get-workflow-meta-by-id.function.js.map +1 -1
  176. package/dist/src/functions/get-workflow-run-history.function.d.ts +2 -2
  177. package/dist/src/functions/get-workflow-run-history.function.d.ts.map +1 -1
  178. package/dist/src/functions/get-workflow-run-history.function.js +3 -4
  179. package/dist/src/functions/get-workflow-run-history.function.js.map +1 -1
  180. package/dist/src/functions/get-workflow-run-names.function.d.ts +1 -1
  181. package/dist/src/functions/get-workflow-run-names.function.d.ts.map +1 -1
  182. package/dist/src/functions/get-workflow-run-names.function.js +3 -4
  183. package/dist/src/functions/get-workflow-run-names.function.js.map +1 -1
  184. package/dist/src/functions/get-workflow-run-steps.function.d.ts +2 -2
  185. package/dist/src/functions/get-workflow-run-steps.function.d.ts.map +1 -1
  186. package/dist/src/functions/get-workflow-run-steps.function.js +2 -3
  187. package/dist/src/functions/get-workflow-run-steps.function.js.map +1 -1
  188. package/dist/src/functions/get-workflow-run.function.d.ts +2 -2
  189. package/dist/src/functions/get-workflow-run.function.d.ts.map +1 -1
  190. package/dist/src/functions/get-workflow-run.function.js +2 -3
  191. package/dist/src/functions/get-workflow-run.function.js.map +1 -1
  192. package/dist/src/functions/get-workflow-runs.function.d.ts +2 -2
  193. package/dist/src/functions/get-workflow-runs.function.d.ts.map +1 -1
  194. package/dist/src/functions/get-workflow-runs.function.js +2 -3
  195. package/dist/src/functions/get-workflow-runs.function.js.map +1 -1
  196. package/dist/src/functions/get-workflow-version.function.d.ts +2 -2
  197. package/dist/src/functions/get-workflow-version.function.d.ts.map +1 -1
  198. package/dist/src/functions/get-workflow-version.function.js +2 -3
  199. package/dist/src/functions/get-workflow-version.function.js.map +1 -1
  200. package/dist/src/functions/install-addon.function.d.ts.map +1 -1
  201. package/dist/src/functions/install-addon.function.js +2 -1
  202. package/dist/src/functions/install-addon.function.js.map +1 -1
  203. package/dist/src/functions/install-openapi-addon.function.d.ts.map +1 -1
  204. package/dist/src/functions/install-openapi-addon.function.js +2 -1
  205. package/dist/src/functions/install-openapi-addon.function.js.map +1 -1
  206. package/dist/src/functions/oauth-connect.function.d.ts +2 -2
  207. package/dist/src/functions/oauth-connect.function.js +2 -2
  208. package/dist/src/functions/oauth-connect.function.js.map +1 -1
  209. package/dist/src/functions/oauth-disconnect.function.d.ts +2 -2
  210. package/dist/src/functions/oauth-disconnect.function.js +2 -2
  211. package/dist/src/functions/oauth-disconnect.function.js.map +1 -1
  212. package/dist/src/functions/oauth-exchange-tokens.function.d.ts +2 -2
  213. package/dist/src/functions/oauth-exchange-tokens.function.js +2 -2
  214. package/dist/src/functions/oauth-exchange-tokens.function.js.map +1 -1
  215. package/dist/src/functions/oauth-refresh-token.function.d.ts +2 -2
  216. package/dist/src/functions/oauth-refresh-token.function.js +2 -2
  217. package/dist/src/functions/oauth-refresh-token.function.js.map +1 -1
  218. package/dist/src/functions/oauth-status.function.d.ts +2 -2
  219. package/dist/src/functions/oauth-status.function.js +2 -2
  220. package/dist/src/functions/oauth-status.function.js.map +1 -1
  221. package/dist/src/functions/oauth-test-token.function.d.ts +2 -2
  222. package/dist/src/functions/oauth-test-token.function.js +2 -2
  223. package/dist/src/functions/oauth-test-token.function.js.map +1 -1
  224. package/dist/src/functions/ping.function.d.ts +2 -2
  225. package/dist/src/functions/ping.function.d.ts.map +1 -1
  226. package/dist/src/functions/ping.function.js +2 -3
  227. package/dist/src/functions/ping.function.js.map +1 -1
  228. package/dist/src/functions/read-agent-source.function.d.ts +2 -2
  229. package/dist/src/functions/read-agent-source.function.d.ts.map +1 -1
  230. package/dist/src/functions/read-agent-source.function.js +2 -3
  231. package/dist/src/functions/read-agent-source.function.js.map +1 -1
  232. package/dist/src/functions/read-function-body.function.d.ts +2 -2
  233. package/dist/src/functions/read-function-body.function.d.ts.map +1 -1
  234. package/dist/src/functions/read-function-body.function.js +2 -3
  235. package/dist/src/functions/read-function-body.function.js.map +1 -1
  236. package/dist/src/functions/read-function-source.function.d.ts +2 -2
  237. package/dist/src/functions/read-function-source.function.d.ts.map +1 -1
  238. package/dist/src/functions/read-function-source.function.js +2 -3
  239. package/dist/src/functions/read-function-source.function.js.map +1 -1
  240. package/dist/src/functions/render-email-preview.function.d.ts +1 -1
  241. package/dist/src/functions/render-email-preview.function.d.ts.map +1 -1
  242. package/dist/src/functions/render-email-preview.function.js +2 -3
  243. package/dist/src/functions/render-email-preview.function.js.map +1 -1
  244. package/dist/src/functions/run-function-tests.function.d.ts +1 -1
  245. package/dist/src/functions/run-function-tests.function.d.ts.map +1 -1
  246. package/dist/src/functions/run-function-tests.function.js +2 -3
  247. package/dist/src/functions/run-function-tests.function.js.map +1 -1
  248. package/dist/src/functions/run-security-audit.function.d.ts +3 -0
  249. package/dist/src/functions/run-security-audit.function.d.ts.map +1 -0
  250. package/dist/src/functions/run-security-audit.function.js +18 -0
  251. package/dist/src/functions/run-security-audit.function.js.map +1 -0
  252. package/dist/src/functions/update-agent-config.function.d.ts +2 -2
  253. package/dist/src/functions/update-agent-config.function.d.ts.map +1 -1
  254. package/dist/src/functions/update-agent-config.function.js +2 -3
  255. package/dist/src/functions/update-agent-config.function.js.map +1 -1
  256. package/dist/src/functions/update-dependency.function.d.ts +12 -0
  257. package/dist/src/functions/update-dependency.function.d.ts.map +1 -0
  258. package/dist/src/functions/update-dependency.function.js +62 -0
  259. package/dist/src/functions/update-dependency.function.js.map +1 -0
  260. package/dist/src/functions/update-email-template.function.d.ts +2 -2
  261. package/dist/src/functions/update-email-template.function.d.ts.map +1 -1
  262. package/dist/src/functions/update-email-template.function.js +2 -3
  263. package/dist/src/functions/update-email-template.function.js.map +1 -1
  264. package/dist/src/functions/update-function-body.function.d.ts +2 -2
  265. package/dist/src/functions/update-function-body.function.d.ts.map +1 -1
  266. package/dist/src/functions/update-function-body.function.js +2 -3
  267. package/dist/src/functions/update-function-body.function.js.map +1 -1
  268. package/dist/src/functions/update-function-config.function.d.ts +2 -2
  269. package/dist/src/functions/update-function-config.function.d.ts.map +1 -1
  270. package/dist/src/functions/update-function-config.function.js +2 -3
  271. package/dist/src/functions/update-function-config.function.js.map +1 -1
  272. package/dist/src/lib/audit-exec.d.ts +10 -0
  273. package/dist/src/lib/audit-exec.d.ts.map +1 -0
  274. package/dist/src/lib/audit-exec.js +75 -0
  275. package/dist/src/lib/audit-exec.js.map +1 -0
  276. package/dist/src/lib/find-project-root.d.ts +9 -0
  277. package/dist/src/lib/find-project-root.d.ts.map +1 -0
  278. package/dist/src/lib/find-project-root.js +21 -0
  279. package/dist/src/lib/find-project-root.js.map +1 -0
  280. package/dist/src/services.d.ts.map +1 -1
  281. package/dist/src/services.js +2 -2
  282. package/dist/src/services.js.map +1 -1
  283. package/package.json +4 -4
@@ -1 +1 @@
1
- { "$schema": "http://json-schema.org/draft-07/schema#", "type": "array", "items": { "$ref": "#/definitions/AddonPackageInfo" }, "definitions": { "AddonPackageInfo": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "displayName": { "type": "string" }, "version": { "type": "string" }, "description": { "type": "string" }, "author": { "type": "string" }, "repository": { "type": "string" }, "license": { "type": "string" }, "readme": { "type": "string" }, "icon": { "type": "string" }, "publishedAt": { "type": "string" }, "updatedAt": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "categories": { "type": "array", "items": { "type": "string" } }, "functions": { "$ref": "#/definitions/FunctionsMeta" }, "agents": { "type": "object", "additionalProperties": {} }, "secrets": { "type": "object", "additionalProperties": {} }, "variables": { "type": "object", "additionalProperties": {} }, "httpRoutes": { "$ref": "#/definitions/HTTPWiringsMeta" }, "channels": { "$ref": "#/definitions/ChannelsMeta" }, "cli": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLIProgramMeta" } }, "mcp": { "anyOf": [{ "$ref": "#/definitions/McpMeta" }, { "type": "null" }] }, "schemas": { "type": "object", "additionalProperties": {} } }, "required": ["id", "name", "displayName", "version", "description", "author", "publishedAt", "updatedAt", "tags", "categories", "functions", "agents", "secrets", "variables", "httpRoutes", "channels", "cli", "mcp", "schemas"], "additionalProperties": false }, "FunctionsMeta": { "type": "object", "additionalProperties": { "$ref": "#/definitions/FunctionMeta" } }, "FunctionMeta": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "functionType": { "type": "string", "enum": ["user", "inline", "helper"] }, "funcWrapper": { "type": "string" }, "services": { "$ref": "#/definitions/FunctionServicesMeta" }, "wires": { "$ref": "#/definitions/FunctionWiresMeta" }, "inputs": { "anyOf": [{ "type": "array", "items": { "type": "string" } }, { "type": "null" }] }, "outputs": { "anyOf": [{ "type": "array", "items": { "type": "string" } }, { "type": "null" }] }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "isDirectFunction": { "type": "boolean" }, "sourceFile": { "type": "string" }, "exportedName": { "type": "string" }, "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "title": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "inputSchemaName": { "type": ["string", "null"] }, "outputSchemaName": { "type": ["string", "null"] }, "expose": { "type": "boolean" }, "remote": { "type": "boolean" }, "mcp": { "type": "boolean" }, "readonly": { "type": "boolean" }, "deploy": { "type": "string", "enum": ["serverless", "server", "auto"] }, "sessionless": { "type": "boolean" }, "workflowQueued": { "type": "boolean", "description": "When true, workflow steps calling this function are dispatched via the queue. No queue service configured is a hard error." }, "workflowRetries": { "type": "number", "description": "Retry count when this function is used as a workflow step." }, "workflowTimeout": { "type": "string", "description": "Timeout when this function is used as a workflow step (e.g. '30s', '5m')." }, "version": { "type": "number" }, "approvalRequired": { "type": "boolean" }, "approvalDescription": { "type": "string" }, "implementationHash": { "type": "string" }, "contractHash": { "type": "string" }, "inputHash": { "type": "string" }, "outputHash": { "type": "string" } }, "required": ["inputSchemaName", "outputSchemaName", "pikkuFuncId"] }, "FunctionServicesMeta": { "type": "object", "properties": { "optimized": { "type": "boolean" }, "services": { "type": "array", "items": { "type": "string" } } }, "required": ["optimized", "services"], "additionalProperties": false }, "FunctionWiresMeta": { "type": "object", "properties": { "optimized": { "type": "boolean" }, "wires": { "type": "array", "items": { "type": "string" } } }, "required": ["optimized", "wires"], "additionalProperties": false }, "MiddlewareMetadata": { "anyOf": [{ "type": "object", "properties": { "type": { "type": "string", "const": "http" }, "route": { "type": "string" } }, "required": ["type", "route"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "tag" }, "tag": { "type": "string" } }, "required": ["type", "tag"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "wire" }, "name": { "type": "string" }, "inline": { "type": "boolean" } }, "required": ["type", "name"], "additionalProperties": false }], "description": "Metadata for middleware at any level\n- type: 'http' = HTTP route middleware group (references httpGroup in pikkuState)\n- type: 'tag' = Tag-based middleware group (references tagGroup in pikkuState)\n- type: 'wire' = Wire-level individual middleware" }, "PermissionMetadata": { "anyOf": [{ "type": "object", "properties": { "type": { "type": "string", "const": "http" }, "route": { "type": "string" } }, "required": ["type", "route"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "tag" }, "tag": { "type": "string" } }, "required": ["type", "tag"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "wire" }, "name": { "type": "string" }, "inline": { "type": "boolean" } }, "required": ["type", "name"], "additionalProperties": false }], "description": "Metadata for permissions at any level\n- type: 'http' = HTTP route permission group (references httpGroup in pikkuState)\n- type: 'tag' = Tag-based permission group (references tagGroup in pikkuState)\n- type: 'wire' = Wire-level individual permission" }, "HTTPWiringsMeta": { "type": "object", "properties": { "post": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "get": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "delete": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "patch": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "head": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "put": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "options": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } } }, "required": ["post", "get", "delete", "patch", "head", "put", "options"], "additionalProperties": false }, "HTTPWiringMeta": { "type": "object", "additionalProperties": false, "properties": { "route": { "type": "string" }, "method": { "$ref": "#/definitions/HTTPMethod" }, "params": { "type": "array", "items": { "type": "string" } }, "query": { "type": "array", "items": { "type": "string" } }, "inputTypes": { "$ref": "#/definitions/HTTPFunctionMetaInputTypes" }, "headersSchemaName": { "type": "string" }, "sse": { "type": "boolean", "const": true }, "groupBasePath": { "type": "string" }, "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "title": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } } }, "required": ["method", "pikkuFuncId", "route"], "description": "Represents metadata for a set of HTTP wirings, including HTTP wiring details, methods, input/output types, and documentation." }, "HTTPMethod": { "type": "string", "enum": ["post", "get", "delete", "patch", "head", "put", "options"], "description": "Represents the HTTP methods supported for API HTTP wirings." }, "HTTPFunctionMetaInputTypes": { "type": "object", "properties": { "params": { "type": "string" }, "query": { "type": "string" }, "body": { "type": "string" } }, "additionalProperties": false, "description": "Represents the input types for HTTP wiring metadata, including parameters, query, and body types." }, "ChannelsMeta": { "type": "object", "additionalProperties": { "$ref": "#/definitions/ChannelMeta" } }, "ChannelMeta": { "type": "object", "properties": { "name": { "type": "string" }, "route": { "type": "string" }, "params": { "type": "array", "items": { "type": "string" } }, "query": { "type": "array", "items": { "type": "string" } }, "input": { "type": ["string", "null"] }, "inputTypes": { "$ref": "#/definitions/HTTPFunctionMetaInputTypes" }, "connect": { "anyOf": [{ "$ref": "#/definitions/ChannelMessageMeta" }, { "type": "null" }] }, "disconnect": { "anyOf": [{ "$ref": "#/definitions/ChannelMessageMeta" }, { "type": "null" }] }, "message": { "anyOf": [{ "$ref": "#/definitions/ChannelMessageMeta" }, { "type": "null" }] }, "messageWirings": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "$ref": "#/definitions/ChannelMessageMeta" } } }, "binary": { "type": ["boolean", "null"] }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "channelMiddleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } } }, "required": ["name", "route", "input", "connect", "disconnect", "message", "messageWirings"], "additionalProperties": false }, "ChannelMessageMeta": { "type": "object", "properties": { "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } } }, "required": ["pikkuFuncId"], "additionalProperties": false }, "CLIProgramMeta": { "type": "object", "properties": { "program": { "type": "string" }, "commands": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLICommandMeta" } }, "options": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLIOption" } }, "defaultRenderName": { "type": "string" } }, "required": ["program", "commands", "options"], "additionalProperties": false, "description": "CLI metadata collection (per program)" }, "CLICommandMeta": { "type": "object", "properties": { "parameters": { "type": "string" }, "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "positionals": { "type": "array", "items": { "$ref": "#/definitions/CLIPositional" } }, "options": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLIOption" } }, "renderName": { "type": "string" }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "subcommands": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLICommandMeta" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "isDefault": { "type": "boolean" } }, "required": ["pikkuFuncId", "positionals", "options"], "additionalProperties": false, "description": "CLI command metadata for runtime" }, "CLIPositional": { "type": "object", "properties": { "name": { "type": "string" }, "required": { "type": "boolean" }, "variadic": { "type": "boolean" } }, "required": ["name", "required"], "additionalProperties": false, "description": "Positional argument definition" }, "CLIOption": { "type": "object", "properties": { "description": { "type": "string" }, "short": { "type": "string" }, "default": {}, "choices": { "type": "array", "items": {} }, "array": { "type": "boolean" }, "required": { "type": "boolean" } }, "required": ["description"], "additionalProperties": false, "description": "CLI option definition" }, "McpMeta": { "type": "object", "properties": { "toolsMeta": { "$ref": "#/definitions/MCPToolMeta" }, "resourcesMeta": { "$ref": "#/definitions/MCPResourceMeta" }, "promptsMeta": { "$ref": "#/definitions/MCPPromptMeta" } }, "required": ["toolsMeta", "resourcesMeta", "promptsMeta"], "additionalProperties": false }, "MCPToolMeta": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": false, "properties": { "pikkuFuncId": { "type": "string" }, "inputSchema": { "type": ["string", "null"] }, "outputSchema": { "type": ["string", "null"] }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "name": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "summary": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "streaming": { "type": "boolean" } }, "required": ["inputSchema", "name", "outputSchema", "pikkuFuncId"] }, "description": "Represents metadata for MCP tools, including name, description, and documentation." }, "MCPResourceMeta": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": false, "properties": { "pikkuFuncId": { "type": "string" }, "inputSchema": { "type": ["string", "null"] }, "outputSchema": { "type": ["string", "null"] }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "uri": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "summary": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "mimeType": { "type": "string" }, "size": { "type": "number" }, "streaming": { "type": "boolean" }, "tags": { "type": "array", "items": { "type": "string" } } }, "required": ["description", "inputSchema", "outputSchema", "pikkuFuncId", "title", "uri"] }, "description": "Represents metadata for MCP resources, including name, description, and documentation." }, "MCPPromptMeta": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": false, "properties": { "pikkuFuncId": { "type": "string" }, "inputSchema": { "type": ["string", "null"] }, "outputSchema": { "type": ["string", "null"] }, "arguments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "required": { "type": "boolean" } }, "required": ["name", "description", "required"], "additionalProperties": false } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "name": { "type": "string" }, "description": { "type": "string" }, "summary": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } } }, "required": ["arguments", "description", "inputSchema", "name", "outputSchema", "pikkuFuncId"] }, "description": "Represents metadata for MCP prompts, including name, description, and arguments." } } }
1
+ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "array", "items": { "$ref": "#/definitions/AddonPackageInfo" }, "definitions": { "AddonPackageInfo": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "displayName": { "type": "string" }, "version": { "type": "string" }, "description": { "type": "string" }, "author": { "type": "string" }, "repository": { "type": "string" }, "license": { "type": "string" }, "readme": { "type": "string" }, "icon": { "type": "string" }, "publishedAt": { "type": "string" }, "updatedAt": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "categories": { "type": "array", "items": { "type": "string" } }, "functions": { "$ref": "#/definitions/FunctionsMeta" }, "agents": { "type": "object", "additionalProperties": {} }, "secrets": { "type": "object", "additionalProperties": {} }, "variables": { "type": "object", "additionalProperties": {} }, "httpRoutes": { "$ref": "#/definitions/HTTPWiringsMeta" }, "channels": { "$ref": "#/definitions/ChannelsMeta" }, "cli": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLIProgramMeta" } }, "mcp": { "anyOf": [{ "$ref": "#/definitions/McpMeta" }, { "type": "null" }] }, "schemas": { "type": "object", "additionalProperties": {} } }, "required": ["id", "name", "displayName", "version", "description", "author", "publishedAt", "updatedAt", "tags", "categories", "functions", "agents", "secrets", "variables", "httpRoutes", "channels", "cli", "mcp", "schemas"], "additionalProperties": false }, "FunctionsMeta": { "type": "object", "additionalProperties": { "$ref": "#/definitions/FunctionMeta" } }, "FunctionMeta": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "functionType": { "type": "string", "enum": ["user", "inline", "helper"] }, "funcWrapper": { "type": "string" }, "services": { "$ref": "#/definitions/FunctionServicesMeta" }, "wires": { "$ref": "#/definitions/FunctionWiresMeta" }, "inputs": { "anyOf": [{ "type": "array", "items": { "type": "string" } }, { "type": "null" }] }, "outputs": { "anyOf": [{ "type": "array", "items": { "type": "string" } }, { "type": "null" }] }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "isDirectFunction": { "type": "boolean" }, "sourceFile": { "type": "string" }, "exportedName": { "type": "string" }, "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "title": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "inputSchemaName": { "type": ["string", "null"] }, "outputSchemaName": { "type": ["string", "null"] }, "expose": { "type": "boolean" }, "remote": { "type": "boolean" }, "mcp": { "type": "boolean" }, "readonly": { "type": "boolean" }, "deploy": { "type": "string", "enum": ["serverless", "server", "auto"] }, "sessionless": { "type": "boolean" }, "workflowQueued": { "type": "boolean", "description": "When true, workflow steps calling this function are dispatched via the queue. No queue service configured is a hard error." }, "workflowRetries": { "type": "number", "description": "Retry count when this function is used as a workflow step." }, "workflowTimeout": { "type": "string", "description": "Timeout when this function is used as a workflow step (e.g. '30s', '5m')." }, "version": { "type": "number" }, "approvalRequired": { "type": "boolean" }, "approvalDescription": { "type": "string" }, "implementationHash": { "type": "string" }, "contractHash": { "type": "string" }, "inputHash": { "type": "string" }, "outputHash": { "type": "string" } }, "required": ["inputSchemaName", "outputSchemaName", "pikkuFuncId"] }, "FunctionServicesMeta": { "type": "object", "properties": { "optimized": { "type": "boolean" }, "services": { "type": "array", "items": { "type": "string" } } }, "required": ["optimized", "services"], "additionalProperties": false }, "FunctionWiresMeta": { "type": "object", "properties": { "optimized": { "type": "boolean" }, "wires": { "type": "array", "items": { "type": "string" } } }, "required": ["optimized", "wires"], "additionalProperties": false }, "MiddlewareMetadata": { "anyOf": [{ "type": "object", "properties": { "type": { "type": "string", "const": "http" }, "route": { "type": "string" } }, "required": ["type", "route"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "tag" }, "tag": { "type": "string" } }, "required": ["type", "tag"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "wire" }, "name": { "type": "string" }, "inline": { "type": "boolean" } }, "required": ["type", "name"], "additionalProperties": false }], "description": "Metadata for middleware at any level\n- type: 'http' = HTTP route middleware group (references httpGroup in pikkuState)\n- type: 'tag' = Tag-based middleware group (references tagGroup in pikkuState)\n- type: 'wire' = Wire-level individual middleware" }, "PermissionMetadata": { "anyOf": [{ "type": "object", "properties": { "type": { "type": "string", "const": "http" }, "route": { "type": "string" } }, "required": ["type", "route"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "tag" }, "tag": { "type": "string" } }, "required": ["type", "tag"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "wire" }, "name": { "type": "string" }, "inline": { "type": "boolean" } }, "required": ["type", "name"], "additionalProperties": false }], "description": "Metadata for permissions at any level\n- type: 'http' = HTTP route permission group (references httpGroup in pikkuState)\n- type: 'tag' = Tag-based permission group (references tagGroup in pikkuState)\n- type: 'wire' = Wire-level individual permission" }, "HTTPWiringsMeta": { "type": "object", "properties": { "post": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "get": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "delete": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "patch": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "head": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "put": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } }, "options": { "type": "object", "additionalProperties": { "$ref": "#/definitions/HTTPWiringMeta" } } }, "required": ["post", "get", "delete", "patch", "head", "put", "options"], "additionalProperties": false }, "HTTPWiringMeta": { "type": "object", "additionalProperties": false, "properties": { "route": { "type": "string" }, "method": { "$ref": "#/definitions/HTTPMethod" }, "refTarget": { "type": "string" }, "params": { "type": "array", "items": { "type": "string" } }, "query": { "type": "array", "items": { "type": "string" } }, "inputTypes": { "$ref": "#/definitions/HTTPFunctionMetaInputTypes" }, "headersSchemaName": { "type": "string" }, "sse": { "type": "boolean", "const": true }, "groupBasePath": { "type": "string" }, "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "title": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } } }, "required": ["method", "pikkuFuncId", "route"], "description": "Represents metadata for a set of HTTP wirings, including HTTP wiring details, methods, input/output types, and documentation." }, "HTTPMethod": { "type": "string", "enum": ["post", "get", "delete", "patch", "head", "put", "options"], "description": "Represents the HTTP methods supported for API HTTP wirings." }, "HTTPFunctionMetaInputTypes": { "type": "object", "properties": { "params": { "type": "string" }, "query": { "type": "string" }, "body": { "type": "string" } }, "additionalProperties": false, "description": "Represents the input types for HTTP wiring metadata, including parameters, query, and body types." }, "ChannelsMeta": { "type": "object", "additionalProperties": { "$ref": "#/definitions/ChannelMeta" } }, "ChannelMeta": { "type": "object", "properties": { "name": { "type": "string" }, "route": { "type": "string" }, "params": { "type": "array", "items": { "type": "string" } }, "query": { "type": "array", "items": { "type": "string" } }, "input": { "type": ["string", "null"] }, "inputTypes": { "$ref": "#/definitions/HTTPFunctionMetaInputTypes" }, "connect": { "anyOf": [{ "$ref": "#/definitions/ChannelMessageMeta" }, { "type": "null" }] }, "disconnect": { "anyOf": [{ "$ref": "#/definitions/ChannelMessageMeta" }, { "type": "null" }] }, "message": { "anyOf": [{ "$ref": "#/definitions/ChannelMessageMeta" }, { "type": "null" }] }, "messageWirings": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "$ref": "#/definitions/ChannelMessageMeta" } } }, "binary": { "type": ["boolean", "null"] }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "channelMiddleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } } }, "required": ["name", "route", "input", "connect", "disconnect", "message", "messageWirings"], "additionalProperties": false }, "ChannelMessageMeta": { "type": "object", "properties": { "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } } }, "required": ["pikkuFuncId"], "additionalProperties": false }, "CLIProgramMeta": { "type": "object", "properties": { "program": { "type": "string" }, "commands": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLICommandMeta" } }, "options": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLIOption" } }, "defaultRenderName": { "type": "string" } }, "required": ["program", "commands", "options"], "additionalProperties": false, "description": "CLI metadata collection (per program)" }, "CLICommandMeta": { "type": "object", "properties": { "parameters": { "type": "string" }, "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "positionals": { "type": "array", "items": { "$ref": "#/definitions/CLIPositional" } }, "options": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLIOption" } }, "renderName": { "type": "string" }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "subcommands": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CLICommandMeta" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "isDefault": { "type": "boolean" } }, "required": ["pikkuFuncId", "positionals", "options"], "additionalProperties": false, "description": "CLI command metadata for runtime" }, "CLIPositional": { "type": "object", "properties": { "name": { "type": "string" }, "required": { "type": "boolean" }, "variadic": { "type": "boolean" } }, "required": ["name", "required"], "additionalProperties": false, "description": "Positional argument definition" }, "CLIOption": { "type": "object", "properties": { "description": { "type": "string" }, "short": { "type": "string" }, "default": {}, "choices": { "type": "array", "items": {} }, "array": { "type": "boolean" }, "required": { "type": "boolean" } }, "required": ["description"], "additionalProperties": false, "description": "CLI option definition" }, "McpMeta": { "type": "object", "properties": { "toolsMeta": { "$ref": "#/definitions/MCPToolMeta" }, "resourcesMeta": { "$ref": "#/definitions/MCPResourceMeta" }, "promptsMeta": { "$ref": "#/definitions/MCPPromptMeta" } }, "required": ["toolsMeta", "resourcesMeta", "promptsMeta"], "additionalProperties": false }, "MCPToolMeta": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": false, "properties": { "pikkuFuncId": { "type": "string" }, "inputSchema": { "type": ["string", "null"] }, "outputSchema": { "type": ["string", "null"] }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "name": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "summary": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "streaming": { "type": "boolean" } }, "required": ["inputSchema", "name", "outputSchema", "pikkuFuncId"] }, "description": "Represents metadata for MCP tools, including name, description, and documentation." }, "MCPResourceMeta": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": false, "properties": { "pikkuFuncId": { "type": "string" }, "inputSchema": { "type": ["string", "null"] }, "outputSchema": { "type": ["string", "null"] }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "uri": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "summary": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "mimeType": { "type": "string" }, "size": { "type": "number" }, "streaming": { "type": "boolean" }, "tags": { "type": "array", "items": { "type": "string" } } }, "required": ["description", "inputSchema", "outputSchema", "pikkuFuncId", "title", "uri"] }, "description": "Represents metadata for MCP resources, including name, description, and documentation." }, "MCPPromptMeta": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": false, "properties": { "pikkuFuncId": { "type": "string" }, "inputSchema": { "type": ["string", "null"] }, "outputSchema": { "type": ["string", "null"] }, "arguments": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "required": { "type": "boolean" } }, "required": ["name", "description", "required"], "additionalProperties": false } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } }, "name": { "type": "string" }, "description": { "type": "string" }, "summary": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } } }, "required": ["arguments", "description", "inputSchema", "name", "outputSchema", "pikkuFuncId"] }, "description": "Represents metadata for MCP prompts, including name, description, and arguments." } } }
@@ -0,0 +1 @@
1
+ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "schemaVersion": { "type": "number" }, "tool": { "type": "string" }, "generatedAt": { "type": "string" }, "note": { "type": "string" }, "issues": { "type": "array", "items": { "$ref": "#/definitions/SecurityAuditIssue" } }, "updates": { "type": "array", "items": { "$ref": "#/definitions/SecurityAuditUpdate" } }, "summary": { "$ref": "#/definitions/SecurityAuditSummary" } }, "required": ["schemaVersion", "tool", "generatedAt", "issues", "updates", "summary"], "additionalProperties": false, "definitions": { "SecurityAuditIssue": { "type": "object", "properties": { "package": { "type": "string" }, "severity": { "$ref": "#/definitions/SecuritySeverity" }, "title": { "type": "string" }, "advisoryId": { "type": "string" }, "url": { "type": "string" }, "vulnerableVersions": { "type": "string" }, "cwe": { "type": "array", "items": { "type": "string" } }, "cvssScore": { "type": ["number", "null"] }, "recommendedVersion": { "type": ["string", "null"] } }, "required": ["package", "severity", "title", "advisoryId", "url", "vulnerableVersions", "cwe", "cvssScore", "recommendedVersion"], "additionalProperties": false }, "SecuritySeverity": { "type": "string", "enum": ["critical", "high", "moderate", "low", "info"], "description": "Dependency security audit artifact — the shape of `.pikku/audit.json` written by `pikku audit`. Canonical home for the type shared by the CLI (writer), the console addon (reader), and the console UI (renderer)." }, "SecurityAuditUpdate": { "type": "object", "properties": { "package": { "type": "string" }, "current": { "type": "string" }, "latest": { "type": "string" }, "level": { "$ref": "#/definitions/SecurityUpdateLevel" } }, "required": ["package", "current", "latest", "level"], "additionalProperties": false }, "SecurityUpdateLevel": { "type": "string", "enum": ["major", "minor", "patch", "unknown"] }, "SecurityAuditSummary": { "type": "object", "properties": { "totalIssues": { "type": "number" }, "critical": { "type": "number" }, "high": { "type": "number" }, "moderate": { "type": "number" }, "low": { "type": "number" }, "totalUpdates": { "type": "number" }, "major": { "type": "number" }, "minor": { "type": "number" }, "patch": { "type": "number" } }, "required": ["totalIssues", "critical", "high", "moderate", "low", "totalUpdates", "major", "minor", "patch"], "additionalProperties": false } } }
@@ -0,0 +1 @@
1
+ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "package": { "type": "string" }, "version": { "type": "string" } }, "required": ["package", "version"], "additionalProperties": false, "definitions": {} }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.66
2
+ * This file was generated by @pikku/cli@0.12.67
3
3
  */
4
4
  export { wireSecret } from '@pikku/core/secret';
5
5
  export type { CoreSecret, SecretDefinitionMeta, SecretDefinitionsMeta } from '@pikku/core/secret';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.66
2
+ * This file was generated by @pikku/cli@0.12.67
3
3
  */
4
4
  export { wireSecret } from '@pikku/core/secret';
5
5
  //# sourceMappingURL=pikku-secret-types.gen.js.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.66
2
+ * This file was generated by @pikku/cli@0.12.67
3
3
  */
4
4
  import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
5
5
  import type { SecretService } from '@pikku/core/services';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.66
2
+ * This file was generated by @pikku/cli@0.12.67
3
3
  */
4
4
  import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
5
5
  const CREDENTIALS_META = {};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.66
2
+ * This file was generated by @pikku/cli@0.12.67
3
3
  */
4
4
  /**
5
5
  * Trigger-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.66
2
+ * This file was generated by @pikku/cli@0.12.67
3
3
  */
4
4
  /**
5
5
  * Trigger-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.66
2
+ * This file was generated by @pikku/cli@0.12.67
3
3
  */
4
4
  export { wireVariable } from '@pikku/core/variable';
5
5
  export type { CoreVariable, VariableDefinitionMeta, VariableDefinitionsMeta } from '@pikku/core/variable';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.66
2
+ * This file was generated by @pikku/cli@0.12.67
3
3
  */
4
4
  export { wireVariable } from '@pikku/core/variable';
5
5
  //# sourceMappingURL=pikku-variable-types.gen.js.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.66
2
+ * This file was generated by @pikku/cli@0.12.67
3
3
  */
4
4
  import { TypedVariablesService as CoreTypedVariablesService } from '@pikku/core/services';
5
5
  import type { VariablesService } from '@pikku/core/services';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.66
2
+ * This file was generated by @pikku/cli@0.12.67
3
3
  */
4
4
  import { TypedVariablesService as CoreTypedVariablesService } from '@pikku/core/services';
5
5
  const VARIABLES_META = {};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.66
2
+ * This file was generated by @pikku/cli@0.12.67
3
3
  */
4
4
  /**
5
5
  * Workflow type map with input/output types for each workflow
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.66
2
+ * This file was generated by @pikku/cli@0.12.67
3
3
  */
4
4
  import { WorkflowCancelledException } from '@pikku/core/workflow';
5
5
  import { template } from '@pikku/core/workflow';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.66
2
+ * This file was generated by @pikku/cli@0.12.67
3
3
  */
4
4
  import { WorkflowCancelledException } from '@pikku/core/workflow';
5
5
  import { template } from '@pikku/core/workflow';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.66
2
+ * This file was generated by @pikku/cli@0.12.67
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/internal';
5
5
  const workflowsMeta = {};
@@ -1,5 +1,5 @@
1
1
  export {};
2
2
  /**
3
- * This file was generated by @pikku/cli@0.12.66
3
+ * This file was generated by @pikku/cli@0.12.67
4
4
  */
5
5
  //# sourceMappingURL=pikku-workflow-wirings.gen.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export {};
2
2
  /**
3
- * This file was generated by @pikku/cli@0.12.66
3
+ * This file was generated by @pikku/cli@0.12.67
4
4
  */
5
5
  //# sourceMappingURL=pikku-workflow-wirings.gen.js.map
@@ -6,19 +6,16 @@ export interface AgentCredentialRequirement {
6
6
  }
7
7
  export declare const agentCredentialCheck: import("#pikku").PikkuFunctionConfig<{
8
8
  agentName: string;
9
- userId?: string;
10
9
  }, {
11
10
  requirements: AgentCredentialRequirement[];
12
11
  allConnected: boolean;
13
- }, "rpc" | "session", import("#pikku").PikkuFunctionSessionless<{
12
+ }, "rpc" | "session", import("#pikku").PikkuFunction<{
14
13
  agentName: string;
15
- userId?: string;
16
14
  }, {
17
15
  requirements: AgentCredentialRequirement[];
18
16
  allConnected: boolean;
19
- }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunction<{
17
+ }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunctionSessionless<{
20
18
  agentName: string;
21
- userId?: string;
22
19
  }, {
23
20
  requirements: AgentCredentialRequirement[];
24
21
  allConnected: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"agent-credential-check.function.d.ts","sourceRoot":"","sources":["../../../src/functions/agent-credential-check.function.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,0BAA0B;IACzC,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,oBAAoB;eAClB,MAAM;aAAW,MAAM;;kBACpB,0BAA0B,EAAE;kBAAgB,OAAO;;eADtD,MAAM;aAAW,MAAM;;kBACpB,0BAA0B,EAAE;kBAAgB,OAAO;;eADtD,MAAM;aAAW,MAAM;;kBACpB,0BAA0B,EAAE;kBAAgB,OAAO;uEAuDnE,CAAA"}
1
+ {"version":3,"file":"agent-credential-check.function.d.ts","sourceRoot":"","sources":["../../../src/functions/agent-credential-check.function.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,0BAA0B;IACzC,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,oBAAoB;eAClB,MAAM;;kBACH,0BAA0B,EAAE;kBAAgB,OAAO;;eADtD,MAAM;;kBACH,0BAA0B,EAAE;kBAAgB,OAAO;;eADtD,MAAM;;kBACH,0BAA0B,EAAE;kBAAgB,OAAO;uEA8DnE,CAAA"}
@@ -1,10 +1,13 @@
1
- import { pikkuSessionlessFunc } from '#pikku';
1
+ import { pikkuFunc } from '#pikku';
2
2
  import { pikkuState } from '@pikku/core/internal';
3
- export const agentCredentialCheck = pikkuSessionlessFunc({
3
+ export const agentCredentialCheck = pikkuFunc({
4
4
  title: 'Agent Credential Check',
5
- description: 'Checks which OAuth credentials an agent needs and whether the user has connected them.',
5
+ description: 'Checks which OAuth credentials an agent needs and whether the authenticated user has connected them.',
6
6
  expose: true,
7
- func: async ({ credentialService, wiringService }, { agentName, userId }) => {
7
+ func: async ({ credentialService, wiringService }, { agentName }, { session }) => {
8
+ // Scope to the caller's own session — never accept an arbitrary userId from
9
+ // input, which would let a caller probe another user's connected credentials.
10
+ const userId = session?.userId;
8
11
  const allMeta = await wiringService.readAllMeta();
9
12
  const agentMeta = allMeta.agentsMeta?.[agentName];
10
13
  if (!agentMeta?.tools?.length) {
@@ -1 +1 @@
1
- {"version":3,"file":"agent-credential-check.function.js","sourceRoot":"","sources":["../../../src/functions/agent-credential-check.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AASjD,MAAM,CAAC,MAAM,oBAAoB,GAAG,oBAAoB,CAGtD;IACA,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EACT,wFAAwF;IAC1F,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,aAAa,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE;QAC1E,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,WAAW,EAAE,CAAA;QACjD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,CAAA;QACjD,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;YAC9B,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAA;QACjD,CAAC;QAED,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAA;QACrD,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAA;QAC9B,MAAM,YAAY,GAAiC,EAAE,CAAA;QAErD,KAAK,MAAM,QAAQ,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC;YACvC,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;YACxC,IAAI,UAAU,KAAK,CAAC,CAAC;gBAAE,SAAQ;YAE/B,MAAM,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,CAAA;YACnD,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;YACvC,IAAI,CAAC,SAAS;gBAAE,SAAQ;YAExB,MAAM,SAAS,GAAG,UAAU,CAC1B,SAAS,CAAC,OAAO,EACjB,SAAS,EACT,iBAAiB,CAClB,CAAA;YACD,IAAI,CAAC,SAAS;gBAAE,SAAQ;YAExB,KAAK,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CACvC,SAAgC,CACjC,EAAE,CAAC;gBACF,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC3D,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;oBACd,MAAM,SAAS,GAAG,iBAAiB;wBACjC,CAAC,CAAC,MAAM,iBAAiB,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC;wBAC3C,CAAC,CAAC,KAAK,CAAA;oBACT,YAAY,CAAC,IAAI,CAAC;wBAChB,cAAc,EAAE,IAAI;wBACpB,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,IAAI;wBACrC,cAAc,EAAE,SAAS;wBACzB,SAAS;qBACV,CAAC,CAAA;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO;YACL,YAAY;YACZ,YAAY,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;SACrD,CAAA;IACH,CAAC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"agent-credential-check.function.js","sourceRoot":"","sources":["../../../src/functions/agent-credential-check.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AASjD,MAAM,CAAC,MAAM,oBAAoB,GAAG,SAAS,CAG3C;IACA,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EACT,sGAAsG;IACxG,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EACT,EAAE,iBAAiB,EAAE,aAAa,EAAE,EACpC,EAAE,SAAS,EAAE,EACb,EAAE,OAAO,EAAE,EACX,EAAE;QACF,4EAA4E;QAC5E,8EAA8E;QAC9E,MAAM,MAAM,GAAG,OAAO,EAAE,MAAM,CAAA;QAC9B,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,WAAW,EAAE,CAAA;QACjD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,CAAA;QACjD,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;YAC9B,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAA;QACjD,CAAC;QAED,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAA;QACrD,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAA;QAC9B,MAAM,YAAY,GAAiC,EAAE,CAAA;QAErD,KAAK,MAAM,QAAQ,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC;YACvC,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;YACxC,IAAI,UAAU,KAAK,CAAC,CAAC;gBAAE,SAAQ;YAE/B,MAAM,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,CAAA;YACnD,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;YACvC,IAAI,CAAC,SAAS;gBAAE,SAAQ;YAExB,MAAM,SAAS,GAAG,UAAU,CAC1B,SAAS,CAAC,OAAO,EACjB,SAAS,EACT,iBAAiB,CAClB,CAAA;YACD,IAAI,CAAC,SAAS;gBAAE,SAAQ;YAExB,KAAK,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CACvC,SAAgC,CACjC,EAAE,CAAC;gBACF,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC3D,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;oBACd,MAAM,SAAS,GAAG,iBAAiB;wBACjC,CAAC,CAAC,MAAM,iBAAiB,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC;wBAC3C,CAAC,CAAC,KAAK,CAAA;oBACT,YAAY,CAAC,IAAI,CAAC;wBAChB,cAAc,EAAE,IAAI;wBACpB,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,IAAI;wBACrC,cAAc,EAAE,SAAS;wBACzB,SAAS;qBACV,CAAC,CAAA;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO;YACL,YAAY;YACZ,YAAY,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;SACrD,CAAA;IACH,CAAC;CACF,CAAC,CAAA"}
@@ -3,12 +3,12 @@ export declare const credentialDelete: import("#pikku").PikkuFunctionConfig<{
3
3
  userId?: string;
4
4
  }, {
5
5
  success: boolean;
6
- }, "rpc" | "session", import("#pikku").PikkuFunctionSessionless<{
6
+ }, "rpc" | "session", import("#pikku").PikkuFunction<{
7
7
  name: string;
8
8
  userId?: string;
9
9
  }, {
10
10
  success: boolean;
11
- }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunction<{
11
+ }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunctionSessionless<{
12
12
  name: string;
13
13
  userId?: string;
14
14
  }, {
@@ -1,6 +1,6 @@
1
1
  import { MissingServiceError } from '@pikku/core/errors';
2
- import { pikkuSessionlessFunc } from '#pikku';
3
- export const credentialDelete = pikkuSessionlessFunc({
2
+ import { pikkuFunc } from '#pikku';
3
+ export const credentialDelete = pikkuFunc({
4
4
  title: 'Delete Credential',
5
5
  description: 'Deletes a credential, optionally scoped to a user.',
6
6
  expose: true,
@@ -1 +1 @@
1
- {"version":3,"file":"credential-delete.function.js","sourceRoot":"","sources":["../../../src/functions/credential-delete.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAE7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,oBAAoB,CAGlD;IACA,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,oDAAoD;IACjE,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE;QACtD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,IAAI,mBAAmB,CAAC,qCAAqC,CAAC,CAAA;QACtE,CAAC;QACD,MAAM,iBAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;QAC5C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"credential-delete.function.js","sourceRoot":"","sources":["../../../src/functions/credential-delete.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,CAGvC;IACA,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,oDAAoD;IACjE,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE;QACtD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,IAAI,mBAAmB,CAAC,qCAAqC,CAAC,CAAA;QACtE,CAAC;QACD,MAAM,iBAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;QAC5C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACF,CAAC,CAAA"}
@@ -3,12 +3,12 @@ export declare const credentialGet: import("#pikku").PikkuFunctionConfig<{
3
3
  userId?: string;
4
4
  }, {
5
5
  value: unknown;
6
- }, "rpc" | "session", import("#pikku").PikkuFunctionSessionless<{
6
+ }, "rpc" | "session", import("#pikku").PikkuFunction<{
7
7
  name: string;
8
8
  userId?: string;
9
9
  }, {
10
10
  value: unknown;
11
- }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunction<{
11
+ }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunctionSessionless<{
12
12
  name: string;
13
13
  userId?: string;
14
14
  }, {
@@ -1,6 +1,6 @@
1
1
  import { MissingServiceError } from '@pikku/core/errors';
2
- import { pikkuSessionlessFunc } from '#pikku';
3
- export const credentialGet = pikkuSessionlessFunc({
2
+ import { pikkuFunc } from '#pikku';
3
+ export const credentialGet = pikkuFunc({
4
4
  title: 'Get Credential',
5
5
  description: 'Retrieves a credential value, optionally scoped to a user.',
6
6
  expose: true,
@@ -1 +1 @@
1
- {"version":3,"file":"credential-get.function.js","sourceRoot":"","sources":["../../../src/functions/credential-get.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAE7C,MAAM,CAAC,MAAM,aAAa,GAAG,oBAAoB,CAG/C;IACA,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,4DAA4D;IACzE,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE;QACtD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,IAAI,mBAAmB,CAAC,qCAAqC,CAAC,CAAA;QACtE,CAAC;QACD,MAAM,KAAK,GAAG,MAAM,iBAAiB,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;QACvD,OAAO,EAAE,KAAK,EAAE,CAAA;IAClB,CAAC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"credential-get.function.js","sourceRoot":"","sources":["../../../src/functions/credential-get.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,MAAM,CAAC,MAAM,aAAa,GAAG,SAAS,CAGpC;IACA,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,4DAA4D;IACzE,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE;QACtD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,IAAI,mBAAmB,CAAC,qCAAqC,CAAC,CAAA;QACtE,CAAC;QACD,MAAM,KAAK,GAAG,MAAM,iBAAiB,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;QACvD,OAAO,EAAE,KAAK,EAAE,CAAA;IAClB,CAAC;CACF,CAAC,CAAA"}
@@ -4,9 +4,9 @@ export type CredentialUserEntry = {
4
4
  };
5
5
  export declare const credentialListUsers: import("#pikku").PikkuFunctionConfig<null, {
6
6
  users: CredentialUserEntry[];
7
- }, "rpc" | "session", import("#pikku").PikkuFunctionSessionless<null, {
7
+ }, "rpc" | "session", import("#pikku").PikkuFunction<null, {
8
8
  users: CredentialUserEntry[];
9
- }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunction<null, {
9
+ }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunctionSessionless<null, {
10
10
  users: CredentialUserEntry[];
11
11
  }, "rpc" | "session", import("#pikku").Services>, undefined, undefined>;
12
12
  //# sourceMappingURL=credential-list-users.function.d.ts.map
@@ -1,5 +1,5 @@
1
- import { pikkuSessionlessFunc } from '#pikku';
2
- export const credentialListUsers = pikkuSessionlessFunc({
1
+ import { pikkuFunc } from '#pikku';
2
+ export const credentialListUsers = pikkuFunc({
3
3
  title: 'List Credential Users',
4
4
  description: 'Lists all users and their credential status for each declared credential.',
5
5
  expose: true,
@@ -1 +1 @@
1
- {"version":3,"file":"credential-list-users.function.js","sourceRoot":"","sources":["../../../src/functions/credential-list-users.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAO7C,MAAM,CAAC,MAAM,mBAAmB,GAAG,oBAAoB,CAGrD;IACA,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,2EAA2E;IAC7E,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,WAAW,EAAE,EAAE,EAAE;QACjD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;QACtB,CAAC;QAED,MAAM,eAAe,GAAG,MAAM,WAAW,CAAC,kBAAkB,EAAE,CAAA;QAC9D,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;QACpD,MAAM,UAAU,GAAG,MAAM,iBAAiB,CAAC,WAAW,EAAE,CAAA;QAExD,MAAM,KAAK,GAA0B,EAAE,CAAA;QACvC,KAAK,MAAM,MAAM,IAAI,UAAU,EAAE,CAAC;YAChC,MAAM,SAAS,GAAG,MAAM,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;YACxD,MAAM,WAAW,GAA4B,EAAE,CAAA;YAC/C,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE,CAAC;gBACnC,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,SAAS,CAAA;YACvC,CAAC;YACD,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAA;QACrC,CAAC;QAED,OAAO,EAAE,KAAK,EAAE,CAAA;IAClB,CAAC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"credential-list-users.function.js","sourceRoot":"","sources":["../../../src/functions/credential-list-users.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAOlC,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAG1C;IACA,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,2EAA2E;IAC7E,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,WAAW,EAAE,EAAE,EAAE;QACjD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;QACtB,CAAC;QAED,MAAM,eAAe,GAAG,MAAM,WAAW,CAAC,kBAAkB,EAAE,CAAA;QAC9D,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;QACpD,MAAM,UAAU,GAAG,MAAM,iBAAiB,CAAC,WAAW,EAAE,CAAA;QAExD,MAAM,KAAK,GAA0B,EAAE,CAAA;QACvC,KAAK,MAAM,MAAM,IAAI,UAAU,EAAE,CAAC;YAChC,MAAM,SAAS,GAAG,MAAM,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;YACxD,MAAM,WAAW,GAA4B,EAAE,CAAA;YAC/C,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE,CAAC;gBACnC,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,SAAS,CAAA;YACvC,CAAC;YACD,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAA;QACrC,CAAC;QAED,OAAO,EAAE,KAAK,EAAE,CAAA;IAClB,CAAC;CACF,CAAC,CAAA"}
@@ -4,13 +4,13 @@ export declare const credentialSet: import("#pikku").PikkuFunctionConfig<{
4
4
  userId?: string;
5
5
  }, {
6
6
  success: boolean;
7
- }, "rpc" | "session", import("#pikku").PikkuFunctionSessionless<{
7
+ }, "rpc" | "session", import("#pikku").PikkuFunction<{
8
8
  name: string;
9
9
  value: unknown;
10
10
  userId?: string;
11
11
  }, {
12
12
  success: boolean;
13
- }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunction<{
13
+ }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunctionSessionless<{
14
14
  name: string;
15
15
  value: unknown;
16
16
  userId?: string;
@@ -1,6 +1,6 @@
1
1
  import { MissingServiceError } from '@pikku/core/errors';
2
- import { pikkuSessionlessFunc } from '#pikku';
3
- export const credentialSet = pikkuSessionlessFunc({
2
+ import { pikkuFunc } from '#pikku';
3
+ export const credentialSet = pikkuFunc({
4
4
  title: 'Set Credential',
5
5
  description: 'Stores a credential value, optionally scoped to a user.',
6
6
  expose: true,
@@ -1 +1 @@
1
- {"version":3,"file":"credential-set.function.js","sourceRoot":"","sources":["../../../src/functions/credential-set.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAE7C,MAAM,CAAC,MAAM,aAAa,GAAG,oBAAoB,CAG/C;IACA,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,yDAAyD;IACtE,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE;QAC7D,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,IAAI,mBAAmB,CAAC,qCAAqC,CAAC,CAAA;QACtE,CAAC;QACD,MAAM,iBAAiB,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;QAChD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"credential-set.function.js","sourceRoot":"","sources":["../../../src/functions/credential-set.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,MAAM,CAAC,MAAM,aAAa,GAAG,SAAS,CAGpC;IACA,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,yDAAyD;IACtE,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE;QAC7D,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,IAAI,mBAAmB,CAAC,qCAAqC,CAAC,CAAA;QACtE,CAAC;QACD,MAAM,iBAAiB,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;QAChD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACF,CAAC,CAAA"}
@@ -3,12 +3,12 @@ export declare const credentialStatus: import("#pikku").PikkuFunctionConfig<{
3
3
  userId?: string;
4
4
  }, {
5
5
  statuses: Record<string, boolean>;
6
- }, "rpc" | "session", import("#pikku").PikkuFunctionSessionless<{
6
+ }, "rpc" | "session", import("#pikku").PikkuFunction<{
7
7
  names: string[];
8
8
  userId?: string;
9
9
  }, {
10
10
  statuses: Record<string, boolean>;
11
- }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunction<{
11
+ }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunctionSessionless<{
12
12
  names: string[];
13
13
  userId?: string;
14
14
  }, {
@@ -1,6 +1,6 @@
1
1
  import { MissingServiceError } from '@pikku/core/errors';
2
- import { pikkuSessionlessFunc } from '#pikku';
3
- export const credentialStatus = pikkuSessionlessFunc({
2
+ import { pikkuFunc } from '#pikku';
3
+ export const credentialStatus = pikkuFunc({
4
4
  title: 'Credential Status',
5
5
  description: 'Checks which of the given credential names are configured. Optionally scoped to a user.',
6
6
  expose: true,
@@ -1 +1 @@
1
- {"version":3,"file":"credential-status.function.js","sourceRoot":"","sources":["../../../src/functions/credential-status.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAE7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,oBAAoB,CAGlD;IACA,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EACT,yFAAyF;IAC3F,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE;QACvD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,IAAI,mBAAmB,CAAC,qCAAqC,CAAC,CAAA;QACtE,CAAC;QACD,MAAM,QAAQ,GAA4B,EAAE,CAAA;QAC5C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,QAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,iBAAiB,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;QAC5D,CAAC;QACD,OAAO,EAAE,QAAQ,EAAE,CAAA;IACrB,CAAC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"credential-status.function.js","sourceRoot":"","sources":["../../../src/functions/credential-status.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,CAGvC;IACA,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EACT,yFAAyF;IAC3F,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE;QACvD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,IAAI,mBAAmB,CAAC,qCAAqC,CAAC,CAAA;QACtE,CAAC;QACD,MAAM,QAAQ,GAA4B,EAAE,CAAA;QAC5C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,QAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,iBAAiB,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;QAC5D,CAAC;QACD,OAAO,EAAE,QAAQ,EAAE,CAAA;IACrB,CAAC;CACF,CAAC,CAAA"}
@@ -2,11 +2,11 @@ export declare const credentialUsers: import("#pikku").PikkuFunctionConfig<{
2
2
  name: string;
3
3
  }, {
4
4
  userIds: string[];
5
- }, "rpc" | "session", import("#pikku").PikkuFunctionSessionless<{
5
+ }, "rpc" | "session", import("#pikku").PikkuFunction<{
6
6
  name: string;
7
7
  }, {
8
8
  userIds: string[];
9
- }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunction<{
9
+ }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunctionSessionless<{
10
10
  name: string;
11
11
  }, {
12
12
  userIds: string[];
@@ -1,6 +1,6 @@
1
1
  import { MissingServiceError } from '@pikku/core/errors';
2
- import { pikkuSessionlessFunc } from '#pikku';
3
- export const credentialUsers = pikkuSessionlessFunc({
2
+ import { pikkuFunc } from '#pikku';
3
+ export const credentialUsers = pikkuFunc({
4
4
  title: 'Credential Users',
5
5
  description: 'Lists all user IDs that have a specific credential configured.',
6
6
  expose: true,
@@ -1 +1 @@
1
- {"version":3,"file":"credential-users.function.js","sourceRoot":"","sources":["../../../src/functions/credential-users.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAE7C,MAAM,CAAC,MAAM,eAAe,GAAG,oBAAoB,CAGjD;IACA,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,gEAAgE;IAC7E,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QAC9C,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,IAAI,mBAAmB,CAAC,qCAAqC,CAAC,CAAA;QACtE,CAAC;QACD,MAAM,OAAO,GAAG,MAAM,iBAAiB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAA;QACpE,OAAO,EAAE,OAAO,EAAE,CAAA;IACpB,CAAC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"credential-users.function.js","sourceRoot":"","sources":["../../../src/functions/credential-users.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,MAAM,CAAC,MAAM,eAAe,GAAG,SAAS,CAGtC;IACA,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,gEAAgE;IAC7E,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QAC9C,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,IAAI,mBAAmB,CAAC,qCAAqC,CAAC,CAAA;QACtE,CAAC;QACD,MAAM,OAAO,GAAG,MAAM,iBAAiB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAA;QACpE,OAAO,EAAE,OAAO,EAAE,CAAA;IACpB,CAAC;CACF,CAAC,CAAA"}
@@ -2,11 +2,11 @@ export declare const deleteAgentThread: import("#pikku").PikkuFunctionConfig<{
2
2
  threadId: string;
3
3
  }, {
4
4
  deleted: boolean;
5
- }, "rpc" | "session", import("#pikku").PikkuFunctionSessionless<{
5
+ }, "rpc" | "session", import("#pikku").PikkuFunction<{
6
6
  threadId: string;
7
7
  }, {
8
8
  deleted: boolean;
9
- }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunction<{
9
+ }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunctionSessionless<{
10
10
  threadId: string;
11
11
  }, {
12
12
  deleted: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"delete-agent-thread.function.d.ts","sourceRoot":"","sources":["../../../src/functions/delete-agent-thread.function.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB;cAChB,MAAM;;aACP,OAAO;;cADN,MAAM;;aACP,OAAO;;cADN,MAAM;;aACP,OAAO;uEAalB,CAAA"}
1
+ {"version":3,"file":"delete-agent-thread.function.d.ts","sourceRoot":"","sources":["../../../src/functions/delete-agent-thread.function.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB;cAChB,MAAM;;aACP,OAAO;;cADN,MAAM;;aACP,OAAO;;cADN,MAAM;;aACP,OAAO;uEAYlB,CAAA"}
@@ -1,10 +1,9 @@
1
1
  import { MissingServiceError } from '@pikku/core/errors';
2
- import { pikkuSessionlessFunc } from '#pikku';
3
- export const deleteAgentThread = pikkuSessionlessFunc({
2
+ import { pikkuFunc } from '#pikku';
3
+ export const deleteAgentThread = pikkuFunc({
4
4
  title: 'Delete Agent Thread',
5
5
  description: 'Deletes an AI agent thread and all its associated messages and runs via cascade.',
6
6
  expose: true,
7
- auth: false,
8
7
  func: async ({ agentRunService }, input) => {
9
8
  if (!agentRunService)
10
9
  throw new MissingServiceError('agentRunService is not available');
@@ -1 +1 @@
1
- {"version":3,"file":"delete-agent-thread.function.js","sourceRoot":"","sources":["../../../src/functions/delete-agent-thread.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAE7C,MAAM,CAAC,MAAM,iBAAiB,GAAG,oBAAoB,CAGnD;IACA,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EACT,kFAAkF;IACpF,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,EAAE,KAAK,EAAE,EAAE;QACzC,IAAI,CAAC,eAAe;YAClB,MAAM,IAAI,mBAAmB,CAAC,kCAAkC,CAAC,CAAA;QACnE,MAAM,OAAO,GAAG,MAAM,eAAe,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;QAClE,OAAO,EAAE,OAAO,EAAE,CAAA;IACpB,CAAC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"delete-agent-thread.function.js","sourceRoot":"","sources":["../../../src/functions/delete-agent-thread.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,MAAM,CAAC,MAAM,iBAAiB,GAAG,SAAS,CAGxC;IACA,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EACT,kFAAkF;IACpF,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,EAAE,KAAK,EAAE,EAAE;QACzC,IAAI,CAAC,eAAe;YAClB,MAAM,IAAI,mBAAmB,CAAC,kCAAkC,CAAC,CAAA;QACnE,MAAM,OAAO,GAAG,MAAM,eAAe,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;QAClE,OAAO,EAAE,OAAO,EAAE,CAAA;IACpB,CAAC;CACF,CAAC,CAAA"}
@@ -2,11 +2,11 @@ export declare const deleteWorkflowRun: import("#pikku").PikkuFunctionConfig<{
2
2
  runId: string;
3
3
  }, {
4
4
  deleted: boolean;
5
- }, "rpc" | "session", import("#pikku").PikkuFunctionSessionless<{
5
+ }, "rpc" | "session", import("#pikku").PikkuFunction<{
6
6
  runId: string;
7
7
  }, {
8
8
  deleted: boolean;
9
- }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunction<{
9
+ }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunctionSessionless<{
10
10
  runId: string;
11
11
  }, {
12
12
  deleted: boolean;